node_modules ignore

This commit is contained in:
oier committed 2025-05-08 23:43:47 +02:00
1 parent e19d52f172
commit 4574544c9f
65041 files changed
+10593536

No files matched your search

@@ -0,0 +1,122 @@
'use strict';
var jsxRuntime = require('react/jsx-runtime');
require('react');
var designSystem = require('@strapi/design-system');
var icons = require('@strapi/icons');
var reactIntl = require('react-intl');
var styledComponents = require('styled-components');
var balloon = require('../assets/balloon.png.js');
const CTA_LEARN_MORE_HREF = 'https://strapi.io/pricing-cloud';
const CTA_SALES_HREF = 'https://strapi.io/contact-sales';
const Title = ({ children })=>{
return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Modal.Title, {
variant: "alpha",
children: children
});
};
const Body = ({ children })=>{
return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
variant: "omega",
children: children
});
};
const CallToActions = ()=>{
const { formatMessage } = reactIntl.useIntl();
return /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
gap: 2,
paddingTop: 4,
children: [
/*#__PURE__*/ jsxRuntime.jsx(designSystem.LinkButton, {
variant: "default",
isExternal: true,
href: CTA_LEARN_MORE_HREF,
children: formatMessage({
id: 'Settings.review-workflows.limit.cta.learn',
defaultMessage: 'Learn more'
})
}),
/*#__PURE__*/ jsxRuntime.jsx(designSystem.LinkButton, {
variant: "tertiary",
isExternal: true,
href: CTA_SALES_HREF,
children: formatMessage({
id: 'Settings.review-workflows.limit.cta.sales',
defaultMessage: 'Contact Sales'
})
})
]
});
};
const BalloonImage = styledComponents.styled.img`
// Margin top|right reverse the padding of ModalBody
margin-right: ${({ theme })=>`-${theme.spaces[7]}`};
margin-top: ${({ theme })=>`-${theme.spaces[7]}`};
width: 360px;
`;
const Root = ({ children, open = false, onOpenChange })=>{
const { formatMessage } = reactIntl.useIntl();
return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Modal.Root, {
open: open,
onOpenChange: onOpenChange,
children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Modal.Content, {
children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Modal.Body, {
children: /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
gap: 2,
paddingLeft: 7,
position: "relative",
children: [
/*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
alignItems: "start",
direction: "column",
gap: 2,
width: "60%",
children: [
children,
/*#__PURE__*/ jsxRuntime.jsx(CallToActions, {})
]
}),
/*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
justifyContent: "end",
height: "100%",
width: "40%",
children: [
/*#__PURE__*/ jsxRuntime.jsx(BalloonImage, {
src: balloon,
"aria-hidden": true,
alt: "",
loading: "lazy"
}),
/*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
display: "flex",
position: "absolute",
right: 0,
top: 0,
children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Modal.Close, {
children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.IconButton, {
withTooltip: false,
label: formatMessage({
id: 'global.close',
defaultMessage: 'Close'
}),
children: /*#__PURE__*/ jsxRuntime.jsx(icons.Cross, {})
})
})
})
]
})
]
})
})
})
});
};
const LimitsModal = {
Title,
Body,
Root
};
exports.LimitsModal = LimitsModal;
//# sourceMappingURL=LimitsModal.js.map
@@ -0,0 +1 @@
{"version":3,"file":"LimitsModal.js","sources":["../../../admin/src/components/LimitsModal.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Box, Flex, IconButton, Modal, Typography, LinkButton } from '@strapi/design-system';\nimport { Cross } from '@strapi/icons';\nimport { useIntl } from 'react-intl';\nimport { styled } from 'styled-components';\n\nimport balloonImageSrc from '../assets/balloon.png';\n\nconst CTA_LEARN_MORE_HREF = 'https://strapi.io/pricing-cloud';\nconst CTA_SALES_HREF = 'https://strapi.io/contact-sales';\n\nconst Title: React.FC<React.PropsWithChildren> = ({ children }) => {\n return <Modal.Title variant=\"alpha\">{children}</Modal.Title>;\n};\n\nconst Body: React.FC<React.PropsWithChildren> = ({ children }) => {\n return <Typography variant=\"omega\">{children}</Typography>;\n};\n\nconst CallToActions = () => {\n const { formatMessage } = useIntl();\n\n return (\n <Flex gap={2} paddingTop={4}>\n <LinkButton variant=\"default\" isExternal href={CTA_LEARN_MORE_HREF}>\n {formatMessage({\n id: 'Settings.review-workflows.limit.cta.learn',\n defaultMessage: 'Learn more',\n })}\n </LinkButton>\n\n <LinkButton variant=\"tertiary\" isExternal href={CTA_SALES_HREF}>\n {formatMessage({\n id: 'Settings.review-workflows.limit.cta.sales',\n defaultMessage: 'Contact Sales',\n })}\n </LinkButton>\n </Flex>\n );\n};\n\nconst BalloonImage = styled.img`\n // Margin top|right reverse the padding of ModalBody\n margin-right: ${({ theme }) => `-${theme.spaces[7]}`};\n margin-top: ${({ theme }) => `-${theme.spaces[7]}`};\n width: 360px;\n`;\n\nexport type LimitsModalProps = Pick<Modal.Props, 'open' | 'onOpenChange'>;\n\nconst Root: React.FC<React.PropsWithChildren<LimitsModalProps>> = ({\n children,\n open = false,\n onOpenChange,\n}) => {\n const { formatMessage } = useIntl();\n\n return (\n <Modal.Root open={open} onOpenChange={onOpenChange}>\n <Modal.Content>\n <Modal.Body>\n <Flex gap={2} paddingLeft={7} position=\"relative\">\n <Flex alignItems=\"start\" direction=\"column\" gap={2} width=\"60%\">\n {children}\n\n <CallToActions />\n </Flex>\n\n <Flex justifyContent=\"end\" height=\"100%\" width=\"40%\">\n <BalloonImage src={balloonImageSrc} aria-hidden alt=\"\" loading=\"lazy\" />\n\n <Box display=\"flex\" position=\"absolute\" right={0} top={0}>\n <Modal.Close>\n <IconButton\n withTooltip={false}\n label={formatMessage({\n id: 'global.close',\n defaultMessage: 'Close',\n })}\n >\n <Cross />\n </IconButton>\n </Modal.Close>\n </Box>\n </Flex>\n </Flex>\n </Modal.Body>\n </Modal.Content>\n </Modal.Root>\n );\n};\n\nconst LimitsModal = {\n Title,\n Body,\n Root,\n};\n\nexport { LimitsModal };\n"],"names":["CTA_LEARN_MORE_HREF","CTA_SALES_HREF","Title","children","_jsx","Modal","variant","Body","Typography","CallToActions","formatMessage","useIntl","_jsxs","Flex","gap","paddingTop","LinkButton","isExternal","href","id","defaultMessage","BalloonImage","styled","img","theme","spaces","Root","open","onOpenChange","Content","paddingLeft","position","alignItems","direction","width","justifyContent","height","src","balloonImageSrc","aria-hidden","alt","loading","Box","display","right","top","Close","IconButton","withTooltip","label","Cross","LimitsModal"],"mappings":";;;;;;;;;;AASA,MAAMA,mBAAsB,GAAA,iCAAA;AAC5B,MAAMC,cAAiB,GAAA,iCAAA;AAEvB,MAAMC,KAA2C,GAAA,CAAC,EAAEC,QAAQ,EAAE,GAAA;IAC5D,qBAAOC,cAAA,CAACC,mBAAMH,KAAK,EAAA;QAACI,OAAQ,EAAA,OAAA;AAASH,QAAAA,QAAAA,EAAAA;;AACvC,CAAA;AAEA,MAAMI,IAA0C,GAAA,CAAC,EAAEJ,QAAQ,EAAE,GAAA;AAC3D,IAAA,qBAAOC,cAACI,CAAAA,uBAAAA,EAAAA;QAAWF,OAAQ,EAAA,OAAA;AAASH,QAAAA,QAAAA,EAAAA;;AACtC,CAAA;AAEA,MAAMM,aAAgB,GAAA,IAAA;IACpB,MAAM,EAAEC,aAAa,EAAE,GAAGC,iBAAAA,EAAAA;AAE1B,IAAA,qBACEC,eAACC,CAAAA,iBAAAA,EAAAA;QAAKC,GAAK,EAAA,CAAA;QAAGC,UAAY,EAAA,CAAA;;0BACxBX,cAACY,CAAAA,uBAAAA,EAAAA;gBAAWV,OAAQ,EAAA,SAAA;gBAAUW,UAAU,EAAA,IAAA;gBAACC,IAAMlB,EAAAA,mBAAAA;0BAC5CU,aAAc,CAAA;oBACbS,EAAI,EAAA,2CAAA;oBACJC,cAAgB,EAAA;AAClB,iBAAA;;0BAGFhB,cAACY,CAAAA,uBAAAA,EAAAA;gBAAWV,OAAQ,EAAA,UAAA;gBAAWW,UAAU,EAAA,IAAA;gBAACC,IAAMjB,EAAAA,cAAAA;0BAC7CS,aAAc,CAAA;oBACbS,EAAI,EAAA,2CAAA;oBACJC,cAAgB,EAAA;AAClB,iBAAA;;;;AAIR,CAAA;AAEA,MAAMC,YAAAA,GAAeC,uBAAOC,CAAAA,GAAG;;AAEf,gBAAA,EAAE,CAAC,EAAEC,KAAK,EAAE,GAAK,CAAC,CAAC,EAAEA,KAAAA,CAAMC,MAAM,CAAC,CAAE,CAAA,CAAC,CAAC,CAAC;AACzC,cAAA,EAAE,CAAC,EAAED,KAAK,EAAE,GAAK,CAAC,CAAC,EAAEA,KAAAA,CAAMC,MAAM,CAAC,CAAE,CAAA,CAAC,CAAC,CAAC;;AAErD,CAAC;AAID,MAAMC,IAAAA,GAA4D,CAAC,EACjEvB,QAAQ,EACRwB,IAAO,GAAA,KAAK,EACZC,YAAY,EACb,GAAA;IACC,MAAM,EAAElB,aAAa,EAAE,GAAGC,iBAAAA,EAAAA;IAE1B,qBACEP,cALine truncated
@@ -0,0 +1,120 @@
import { jsx, jsxs } from 'react/jsx-runtime';
import 'react';
import { Modal, Typography, Flex, Box, IconButton, LinkButton } from '@strapi/design-system';
import { Cross } from '@strapi/icons';
import { useIntl } from 'react-intl';
import { styled } from 'styled-components';
import img from '../assets/balloon.png.mjs';
const CTA_LEARN_MORE_HREF = 'https://strapi.io/pricing-cloud';
const CTA_SALES_HREF = 'https://strapi.io/contact-sales';
const Title = ({ children })=>{
return /*#__PURE__*/ jsx(Modal.Title, {
variant: "alpha",
children: children
});
};
const Body = ({ children })=>{
return /*#__PURE__*/ jsx(Typography, {
variant: "omega",
children: children
});
};
const CallToActions = ()=>{
const { formatMessage } = useIntl();
return /*#__PURE__*/ jsxs(Flex, {
gap: 2,
paddingTop: 4,
children: [
/*#__PURE__*/ jsx(LinkButton, {
variant: "default",
isExternal: true,
href: CTA_LEARN_MORE_HREF,
children: formatMessage({
id: 'Settings.review-workflows.limit.cta.learn',
defaultMessage: 'Learn more'
})
}),
/*#__PURE__*/ jsx(LinkButton, {
variant: "tertiary",
isExternal: true,
href: CTA_SALES_HREF,
children: formatMessage({
id: 'Settings.review-workflows.limit.cta.sales',
defaultMessage: 'Contact Sales'
})
})
]
});
};
const BalloonImage = styled.img`
// Margin top|right reverse the padding of ModalBody
margin-right: ${({ theme })=>`-${theme.spaces[7]}`};
margin-top: ${({ theme })=>`-${theme.spaces[7]}`};
width: 360px;
`;
const Root = ({ children, open = false, onOpenChange })=>{
const { formatMessage } = useIntl();
return /*#__PURE__*/ jsx(Modal.Root, {
open: open,
onOpenChange: onOpenChange,
children: /*#__PURE__*/ jsx(Modal.Content, {
children: /*#__PURE__*/ jsx(Modal.Body, {
children: /*#__PURE__*/ jsxs(Flex, {
gap: 2,
paddingLeft: 7,
position: "relative",
children: [
/*#__PURE__*/ jsxs(Flex, {
alignItems: "start",
direction: "column",
gap: 2,
width: "60%",
children: [
children,
/*#__PURE__*/ jsx(CallToActions, {})
]
}),
/*#__PURE__*/ jsxs(Flex, {
justifyContent: "end",
height: "100%",
width: "40%",
children: [
/*#__PURE__*/ jsx(BalloonImage, {
src: img,
"aria-hidden": true,
alt: "",
loading: "lazy"
}),
/*#__PURE__*/ jsx(Box, {
display: "flex",
position: "absolute",
right: 0,
top: 0,
children: /*#__PURE__*/ jsx(Modal.Close, {
children: /*#__PURE__*/ jsx(IconButton, {
withTooltip: false,
label: formatMessage({
id: 'global.close',
defaultMessage: 'Close'
}),
children: /*#__PURE__*/ jsx(Cross, {})
})
})
})
]
})
]
})
})
})
});
};
const LimitsModal = {
Title,
Body,
Root
};
export { LimitsModal };
//# sourceMappingURL=LimitsModal.mjs.map
@@ -0,0 +1 @@
{"version":3,"file":"LimitsModal.mjs","sources":["../../../admin/src/components/LimitsModal.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Box, Flex, IconButton, Modal, Typography, LinkButton } from '@strapi/design-system';\nimport { Cross } from '@strapi/icons';\nimport { useIntl } from 'react-intl';\nimport { styled } from 'styled-components';\n\nimport balloonImageSrc from '../assets/balloon.png';\n\nconst CTA_LEARN_MORE_HREF = 'https://strapi.io/pricing-cloud';\nconst CTA_SALES_HREF = 'https://strapi.io/contact-sales';\n\nconst Title: React.FC<React.PropsWithChildren> = ({ children }) => {\n return <Modal.Title variant=\"alpha\">{children}</Modal.Title>;\n};\n\nconst Body: React.FC<React.PropsWithChildren> = ({ children }) => {\n return <Typography variant=\"omega\">{children}</Typography>;\n};\n\nconst CallToActions = () => {\n const { formatMessage } = useIntl();\n\n return (\n <Flex gap={2} paddingTop={4}>\n <LinkButton variant=\"default\" isExternal href={CTA_LEARN_MORE_HREF}>\n {formatMessage({\n id: 'Settings.review-workflows.limit.cta.learn',\n defaultMessage: 'Learn more',\n })}\n </LinkButton>\n\n <LinkButton variant=\"tertiary\" isExternal href={CTA_SALES_HREF}>\n {formatMessage({\n id: 'Settings.review-workflows.limit.cta.sales',\n defaultMessage: 'Contact Sales',\n })}\n </LinkButton>\n </Flex>\n );\n};\n\nconst BalloonImage = styled.img`\n // Margin top|right reverse the padding of ModalBody\n margin-right: ${({ theme }) => `-${theme.spaces[7]}`};\n margin-top: ${({ theme }) => `-${theme.spaces[7]}`};\n width: 360px;\n`;\n\nexport type LimitsModalProps = Pick<Modal.Props, 'open' | 'onOpenChange'>;\n\nconst Root: React.FC<React.PropsWithChildren<LimitsModalProps>> = ({\n children,\n open = false,\n onOpenChange,\n}) => {\n const { formatMessage } = useIntl();\n\n return (\n <Modal.Root open={open} onOpenChange={onOpenChange}>\n <Modal.Content>\n <Modal.Body>\n <Flex gap={2} paddingLeft={7} position=\"relative\">\n <Flex alignItems=\"start\" direction=\"column\" gap={2} width=\"60%\">\n {children}\n\n <CallToActions />\n </Flex>\n\n <Flex justifyContent=\"end\" height=\"100%\" width=\"40%\">\n <BalloonImage src={balloonImageSrc} aria-hidden alt=\"\" loading=\"lazy\" />\n\n <Box display=\"flex\" position=\"absolute\" right={0} top={0}>\n <Modal.Close>\n <IconButton\n withTooltip={false}\n label={formatMessage({\n id: 'global.close',\n defaultMessage: 'Close',\n })}\n >\n <Cross />\n </IconButton>\n </Modal.Close>\n </Box>\n </Flex>\n </Flex>\n </Modal.Body>\n </Modal.Content>\n </Modal.Root>\n );\n};\n\nconst LimitsModal = {\n Title,\n Body,\n Root,\n};\n\nexport { LimitsModal };\n"],"names":["CTA_LEARN_MORE_HREF","CTA_SALES_HREF","Title","children","_jsx","Modal","variant","Body","Typography","CallToActions","formatMessage","useIntl","_jsxs","Flex","gap","paddingTop","LinkButton","isExternal","href","id","defaultMessage","BalloonImage","styled","img","theme","spaces","Root","open","onOpenChange","Content","paddingLeft","position","alignItems","direction","width","justifyContent","height","src","balloonImageSrc","aria-hidden","alt","loading","Box","display","right","top","Close","IconButton","withTooltip","label","Cross","LimitsModal"],"mappings":";;;;;;;;AASA,MAAMA,mBAAsB,GAAA,iCAAA;AAC5B,MAAMC,cAAiB,GAAA,iCAAA;AAEvB,MAAMC,KAA2C,GAAA,CAAC,EAAEC,QAAQ,EAAE,GAAA;IAC5D,qBAAOC,GAAA,CAACC,MAAMH,KAAK,EAAA;QAACI,OAAQ,EAAA,OAAA;AAASH,QAAAA,QAAAA,EAAAA;;AACvC,CAAA;AAEA,MAAMI,IAA0C,GAAA,CAAC,EAAEJ,QAAQ,EAAE,GAAA;AAC3D,IAAA,qBAAOC,GAACI,CAAAA,UAAAA,EAAAA;QAAWF,OAAQ,EAAA,OAAA;AAASH,QAAAA,QAAAA,EAAAA;;AACtC,CAAA;AAEA,MAAMM,aAAgB,GAAA,IAAA;IACpB,MAAM,EAAEC,aAAa,EAAE,GAAGC,OAAAA,EAAAA;AAE1B,IAAA,qBACEC,IAACC,CAAAA,IAAAA,EAAAA;QAAKC,GAAK,EAAA,CAAA;QAAGC,UAAY,EAAA,CAAA;;0BACxBX,GAACY,CAAAA,UAAAA,EAAAA;gBAAWV,OAAQ,EAAA,SAAA;gBAAUW,UAAU,EAAA,IAAA;gBAACC,IAAMlB,EAAAA,mBAAAA;0BAC5CU,aAAc,CAAA;oBACbS,EAAI,EAAA,2CAAA;oBACJC,cAAgB,EAAA;AAClB,iBAAA;;0BAGFhB,GAACY,CAAAA,UAAAA,EAAAA;gBAAWV,OAAQ,EAAA,UAAA;gBAAWW,UAAU,EAAA,IAAA;gBAACC,IAAMjB,EAAAA,cAAAA;0BAC7CS,aAAc,CAAA;oBACbS,EAAI,EAAA,2CAAA;oBACJC,cAAgB,EAAA;AAClB,iBAAA;;;;AAIR,CAAA;AAEA,MAAMC,YAAAA,GAAeC,MAAOC,CAAAA,GAAG;;AAEf,gBAAA,EAAE,CAAC,EAAEC,KAAK,EAAE,GAAK,CAAC,CAAC,EAAEA,KAAAA,CAAMC,MAAM,CAAC,CAAE,CAAA,CAAC,CAAC,CAAC;AACzC,cAAA,EAAE,CAAC,EAAED,KAAK,EAAE,GAAK,CAAC,CAAC,EAAEA,KAAAA,CAAMC,MAAM,CAAC,CAAE,CAAA,CAAC,CAAC,CAAC;;AAErD,CAAC;AAID,MAAMC,IAAAA,GAA4D,CAAC,EACjEvB,QAAQ,EACRwB,IAAO,GAAA,KAAK,EACZC,YAAY,EACb,GAAA;IACC,MAAM,EAAElB,aAAa,EAAE,GAAGC,OAAAA,EAAAA;IAE1B,qBACEP,GAAA,CAACC,Line truncated