@dynatrace/strato-components 0.84.31 → 0.84.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/index.d.ts +7 -0
- package/content/index.js +25 -0
- package/content/progress/ProgressBar.css +52 -0
- package/content/progress/ProgressBar.d.ts +56 -0
- package/content/progress/ProgressBar.js +191 -0
- package/content/progress/ProgressBar.sty.d.ts +42 -0
- package/content/progress/ProgressBar.sty.js +28 -0
- package/content/progress/ProgressBarIcon.css +5 -0
- package/content/progress/ProgressBarIcon.d.ts +15 -0
- package/content/progress/ProgressBarIcon.js +68 -0
- package/content/progress/ProgressBarIcon.sty.d.ts +1 -0
- package/content/progress/ProgressBarIcon.sty.js +25 -0
- package/content/progress/ProgressBarLabel.css +9 -0
- package/content/progress/ProgressBarLabel.d.ts +15 -0
- package/content/progress/ProgressBarLabel.js +75 -0
- package/content/progress/ProgressBarLabel.sty.d.ts +13 -0
- package/content/progress/ProgressBarLabel.sty.js +26 -0
- package/content/progress/ProgressBarValue.css +28 -0
- package/content/progress/ProgressBarValue.d.ts +15 -0
- package/content/progress/ProgressBarValue.js +72 -0
- package/content/progress/ProgressBarValue.sty.d.ts +34 -0
- package/content/progress/ProgressBarValue.sty.js +26 -0
- package/content/progress/ProgressCircle.css +52 -0
- package/content/progress/ProgressCircle.d.ts +51 -0
- package/content/progress/ProgressCircle.js +174 -0
- package/content/progress/ProgressCircle.sty.d.ts +41 -0
- package/content/progress/ProgressCircle.sty.js +37 -0
- package/content/progress/contexts/SharedProgressBarPropsContext.d.ts +9 -0
- package/content/progress/contexts/SharedProgressBarPropsContext.js +38 -0
- package/content/progress/hooks/useProgressAriaProps.d.ts +38 -0
- package/content/progress/hooks/useProgressAriaProps.js +63 -0
- package/content/progress/hooks/useProgressBarPropsContext.d.ts +2 -0
- package/content/progress/hooks/useProgressBarPropsContext.js +32 -0
- package/content/progress/utils.d.ts +2 -0
- package/content/progress/utils.js +50 -0
- package/core/components/app-root/AppRoot.d.ts +4 -4
- package/core/hooks/useAriaLabelingProps.d.ts +6 -0
- package/core/hooks/useAriaLabelingProps.js +30 -0
- package/core/hooks/useCurrentTheme.d.ts +1 -1
- package/core/hooks/useFontsUpdated.d.ts +9 -0
- package/core/hooks/useFontsUpdated.js +51 -0
- package/core/hooks/useId.d.ts +12 -0
- package/core/hooks/useId.js +32 -0
- package/core/hooks/useMergeRefs.d.ts +7 -0
- package/core/hooks/useMergeRefs.js +34 -0
- package/core/hooks/useSafeForwardProps.d.ts +10 -0
- package/core/hooks/useSafeForwardProps.js +34 -0
- package/core/index.d.ts +12 -0
- package/core/index.js +12 -0
- package/core/styles/focusRing.css +88 -0
- package/core/styles/focusRing.sty.d.ts +96 -0
- package/core/styles/focusRing.sty.js +27 -0
- package/core/styles/useFocusRing.d.ts +49 -0
- package/core/styles/useFocusRing.js +83 -0
- package/core/types/a11y-props.d.ts +26 -0
- package/core/types/a11y-props.js +15 -0
- package/core/types/data-props.d.ts +1 -1
- package/core/types/dom.d.ts +8 -0
- package/core/types/dom.js +15 -0
- package/core/types/heading.d.ts +9 -0
- package/core/types/heading.js +15 -0
- package/core/types/masking-props.d.ts +2 -1
- package/core/types/polymorph.d.ts +28 -0
- package/core/types/polymorph.js +15 -0
- package/core/types/role-variant.d.ts +10 -0
- package/core/types/role-variant.js +30 -0
- package/core/types/styling-props.d.ts +1 -1
- package/core/types/with-children.d.ts +1 -1
- package/core/utils/_is-string-children.d.ts +6 -0
- package/core/utils/_is-string-children.js +44 -0
- package/core/utils/colorUtils.css +80 -0
- package/core/utils/colorUtils.sty.d.ts +48 -0
- package/core/utils/colorUtils.sty.js +27 -0
- package/core/utils/isBrowser.d.ts +1 -1
- package/core/utils/merge-props.d.ts +4 -5
- package/core/utils/seed-random.d.ts +5 -0
- package/core/utils/seed-random.js +34 -0
- package/core/utils/uuidv4.d.ts +5 -0
- package/core/utils/uuidv4.js +31 -0
- package/esm/content/index.js +7 -0
- package/esm/content/index.js.map +7 -0
- package/esm/content/progress/ProgressBar.css +52 -0
- package/esm/content/progress/ProgressBar.js +163 -0
- package/esm/content/progress/ProgressBar.js.map +7 -0
- package/esm/content/progress/ProgressBar.sty.js +10 -0
- package/esm/content/progress/ProgressBar.sty.js.map +7 -0
- package/esm/content/progress/ProgressBarIcon.css +5 -0
- package/esm/content/progress/ProgressBarIcon.js +40 -0
- package/esm/content/progress/ProgressBarIcon.js.map +7 -0
- package/esm/content/progress/ProgressBarIcon.sty.js +7 -0
- package/esm/content/progress/ProgressBarIcon.sty.js.map +7 -0
- package/esm/content/progress/ProgressBarLabel.css +9 -0
- package/esm/content/progress/ProgressBarLabel.js +47 -0
- package/esm/content/progress/ProgressBarLabel.js.map +7 -0
- package/esm/content/progress/ProgressBarLabel.sty.js +8 -0
- package/esm/content/progress/ProgressBarLabel.sty.js.map +7 -0
- package/esm/content/progress/ProgressBarValue.css +28 -0
- package/esm/content/progress/ProgressBarValue.js +44 -0
- package/esm/content/progress/ProgressBarValue.js.map +7 -0
- package/esm/content/progress/ProgressBarValue.sty.js +8 -0
- package/esm/content/progress/ProgressBarValue.sty.js.map +7 -0
- package/esm/content/progress/ProgressCircle.css +52 -0
- package/esm/content/progress/ProgressCircle.js +153 -0
- package/esm/content/progress/ProgressCircle.js.map +7 -0
- package/esm/content/progress/ProgressCircle.sty.js +19 -0
- package/esm/content/progress/ProgressCircle.sty.js.map +7 -0
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js +10 -0
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js.map +7 -0
- package/esm/content/progress/hooks/useProgressAriaProps.js +45 -0
- package/esm/content/progress/hooks/useProgressAriaProps.js.map +7 -0
- package/esm/content/progress/hooks/useProgressBarPropsContext.js +16 -0
- package/esm/content/progress/hooks/useProgressBarPropsContext.js.map +7 -0
- package/esm/content/progress/utils.js +22 -0
- package/esm/content/progress/utils.js.map +7 -0
- package/esm/core/components/app-root/AppRoot.js.map +1 -1
- package/esm/core/hooks/useAriaLabelingProps.js +12 -0
- package/esm/core/hooks/useAriaLabelingProps.js.map +7 -0
- package/esm/core/hooks/useCurrentTheme.js.map +1 -1
- package/esm/core/hooks/useFontsUpdated.js +33 -0
- package/esm/core/hooks/useFontsUpdated.js.map +7 -0
- package/esm/core/hooks/useId.js +14 -0
- package/esm/core/hooks/useId.js.map +7 -0
- package/esm/core/hooks/useMergeRefs.js +16 -0
- package/esm/core/hooks/useMergeRefs.js.map +7 -0
- package/esm/core/hooks/useSafeForwardProps.js +16 -0
- package/esm/core/hooks/useSafeForwardProps.js.map +7 -0
- package/esm/core/index.js +12 -0
- package/esm/core/index.js.map +2 -2
- package/esm/core/styles/focusRing.css +88 -0
- package/esm/core/styles/focusRing.sty.js +9 -0
- package/esm/core/styles/focusRing.sty.js.map +7 -0
- package/esm/core/styles/useFocusRing.js +69 -0
- package/esm/core/styles/useFocusRing.js.map +7 -0
- package/esm/core/types/a11y-props.js +1 -0
- package/esm/core/types/a11y-props.js.map +7 -0
- package/esm/core/types/dom.js +1 -0
- package/esm/core/types/dom.js.map +7 -0
- package/esm/core/types/heading.js +1 -0
- package/esm/core/types/heading.js.map +7 -0
- package/esm/core/types/polymorph.js +1 -0
- package/esm/core/types/polymorph.js.map +7 -0
- package/esm/core/types/role-variant.js +12 -0
- package/esm/core/types/role-variant.js.map +7 -0
- package/esm/core/utils/_is-string-children.js +16 -0
- package/esm/core/utils/_is-string-children.js.map +7 -0
- package/esm/core/utils/colorUtils.css +80 -0
- package/esm/core/utils/colorUtils.sty.js +9 -0
- package/esm/core/utils/colorUtils.sty.js.map +7 -0
- package/esm/core/utils/isBrowser.js.map +1 -1
- package/esm/core/utils/merge-props.js.map +2 -2
- package/esm/core/utils/seed-random.js +16 -0
- package/esm/core/utils/seed-random.js.map +7 -0
- package/esm/core/utils/uuidv4.js +13 -0
- package/esm/core/utils/uuidv4.js.map +7 -0
- package/esm/index.js +4 -0
- package/esm/index.js.map +2 -2
- package/esm/layouts/Divider/Divider.css +23 -0
- package/esm/layouts/Divider/Divider.js +39 -0
- package/esm/layouts/Divider/Divider.js.map +7 -0
- package/esm/layouts/Divider/Divider.sty.js +8 -0
- package/esm/layouts/Divider/Divider.sty.js.map +7 -0
- package/esm/layouts/container/Container.css +8 -0
- package/esm/layouts/container/Container.js +55 -0
- package/esm/layouts/container/Container.js.map +7 -0
- package/esm/layouts/container/Container.sty.js +7 -0
- package/esm/layouts/container/Container.sty.js.map +7 -0
- package/esm/layouts/flex/Flex.js +46 -0
- package/esm/layouts/flex/Flex.js.map +7 -0
- package/esm/layouts/grid/Grid.js +46 -0
- package/esm/layouts/grid/Grid.js.map +7 -0
- package/esm/layouts/index.js +11 -0
- package/esm/layouts/index.js.map +7 -0
- package/esm/styles/colorUtils.css +80 -0
- package/esm/styles/colorUtils.sty.js +9 -0
- package/esm/styles/colorUtils.sty.js.map +7 -0
- package/esm/styles/container.css +64 -0
- package/esm/styles/container.sty.js +9 -0
- package/esm/styles/container.sty.js.map +7 -0
- package/esm/styles/ellipsis.css +5 -0
- package/esm/styles/ellipsis.sty.js +6 -0
- package/esm/styles/ellipsis.sty.js.map +7 -0
- package/esm/styles/extract-util.js +15 -0
- package/esm/styles/extract-util.js.map +7 -0
- package/esm/styles/getFlexStyles.js +69 -0
- package/esm/styles/getFlexStyles.js.map +7 -0
- package/esm/styles/getGapSprinkles.js +18 -0
- package/esm/styles/getGapSprinkles.js.map +7 -0
- package/esm/styles/getGridFlexPositionSprinkles.js +25 -0
- package/esm/styles/getGridFlexPositionSprinkles.js.map +7 -0
- package/esm/styles/getGridStyles.js +78 -0
- package/esm/styles/getGridStyles.js.map +7 -0
- package/esm/styles/getLayoutSizeStyles.js +21 -0
- package/esm/styles/getLayoutSizeStyles.js.map +7 -0
- package/esm/styles/getSpacingSprinkles.js +50 -0
- package/esm/styles/getSpacingSprinkles.js.map +7 -0
- package/esm/styles/index.js +49 -0
- package/esm/styles/index.js.map +7 -0
- package/esm/styles/safe-sprinkles.js +17 -0
- package/esm/styles/safe-sprinkles.js.map +7 -0
- package/esm/styles/sprinkle-properties.js +137 -0
- package/esm/styles/sprinkle-properties.js.map +7 -0
- package/esm/styles/sprinkles.css +786 -0
- package/esm/styles/sprinkles.sty.js +9 -0
- package/esm/styles/sprinkles.sty.js.map +7 -0
- package/esm/styles/textStyle.css +64 -0
- package/esm/styles/textStyle.sty.js +7 -0
- package/esm/styles/textStyle.sty.js.map +7 -0
- package/esm/typography/BlockQuote/Blockquote.css +17 -0
- package/esm/typography/BlockQuote/Blockquote.js +34 -0
- package/esm/typography/BlockQuote/Blockquote.js.map +7 -0
- package/esm/typography/BlockQuote/Blockquote.sty.js +6 -0
- package/esm/typography/BlockQuote/Blockquote.sty.js.map +7 -0
- package/esm/typography/Code/Code.css +16 -0
- package/esm/typography/Code/Code.js +34 -0
- package/esm/typography/Code/Code.js.map +7 -0
- package/esm/typography/Code/Code.sty.js +6 -0
- package/esm/typography/Code/Code.sty.js.map +7 -0
- package/esm/typography/Emphasis/Emphasis.css +4 -0
- package/esm/typography/Emphasis/Emphasis.js +34 -0
- package/esm/typography/Emphasis/Emphasis.js.map +7 -0
- package/esm/typography/Emphasis/Emphasis.sty.js +6 -0
- package/esm/typography/Emphasis/Emphasis.sty.js.map +7 -0
- package/esm/typography/ExternalLink/ExternalLink.css +28 -0
- package/esm/typography/ExternalLink/ExternalLink.js +56 -0
- package/esm/typography/ExternalLink/ExternalLink.js.map +7 -0
- package/esm/typography/ExternalLink/ExternalLink.sty.js +6 -0
- package/esm/typography/ExternalLink/ExternalLink.sty.js.map +7 -0
- package/esm/typography/Heading/Heading.css +54 -0
- package/esm/typography/Heading/Heading.js +36 -0
- package/esm/typography/Heading/Heading.js.map +7 -0
- package/esm/typography/Heading/Heading.sty.js +7 -0
- package/esm/typography/Heading/Heading.sty.js.map +7 -0
- package/esm/typography/Highlight/Highlight.css +4 -0
- package/esm/typography/Highlight/Highlight.js +111 -0
- package/esm/typography/Highlight/Highlight.js.map +7 -0
- package/esm/typography/Highlight/Highlight.sty.js +6 -0
- package/esm/typography/Highlight/Highlight.sty.js.map +7 -0
- package/esm/typography/Link/Link.css +15 -0
- package/esm/typography/Link/Link.js +49 -0
- package/esm/typography/Link/Link.js.map +7 -0
- package/esm/typography/Link/Link.sty.js +6 -0
- package/esm/typography/Link/Link.sty.js.map +7 -0
- package/esm/typography/List/List.css +16 -0
- package/esm/typography/List/List.js +81 -0
- package/esm/typography/List/List.js.map +7 -0
- package/esm/typography/List/List.sty.js +8 -0
- package/esm/typography/List/List.sty.js.map +7 -0
- package/esm/typography/Paragraph/Paragraph.css +19 -0
- package/esm/typography/Paragraph/Paragraph.js +49 -0
- package/esm/typography/Paragraph/Paragraph.js.map +7 -0
- package/esm/typography/Paragraph/Paragraph.sty.js +7 -0
- package/esm/typography/Paragraph/Paragraph.sty.js.map +7 -0
- package/esm/typography/Strikethrough/Strikethrough.css +5 -0
- package/esm/typography/Strikethrough/Strikethrough.js +32 -0
- package/esm/typography/Strikethrough/Strikethrough.js.map +7 -0
- package/esm/typography/Strikethrough/Strikethrough.sty.js +6 -0
- package/esm/typography/Strikethrough/Strikethrough.sty.js.map +7 -0
- package/esm/typography/Strong/Strong.css +4 -0
- package/esm/typography/Strong/Strong.js +34 -0
- package/esm/typography/Strong/Strong.js.map +7 -0
- package/esm/typography/Strong/Strong.sty.js +6 -0
- package/esm/typography/Strong/Strong.sty.js.map +7 -0
- package/esm/typography/Text/Text.css +18 -0
- package/esm/typography/Text/Text.js +43 -0
- package/esm/typography/Text/Text.js.map +7 -0
- package/esm/typography/Text/Text.sty.js +7 -0
- package/esm/typography/Text/Text.sty.js.map +7 -0
- package/esm/typography/TextEllipsis/TextEllipsis.css +22 -0
- package/esm/typography/TextEllipsis/TextEllipsis.js +143 -0
- package/esm/typography/TextEllipsis/TextEllipsis.js.map +7 -0
- package/esm/typography/TextEllipsis/TextEllipsis.sty.js +7 -0
- package/esm/typography/TextEllipsis/TextEllipsis.sty.js.map +7 -0
- package/esm/typography/index.js +43 -0
- package/esm/typography/index.js.map +7 -0
- package/esm/typography/utils.js +101 -0
- package/esm/typography/utils.js.map +7 -0
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/lang/en.json +12 -0
- package/lang/uncompiled/en.json +10 -1
- package/layouts/Divider/Divider.css +23 -0
- package/layouts/Divider/Divider.d.ts +39 -0
- package/layouts/Divider/Divider.js +67 -0
- package/layouts/Divider/Divider.sty.d.ts +16 -0
- package/layouts/Divider/Divider.sty.js +26 -0
- package/layouts/container/Container.css +8 -0
- package/layouts/container/Container.d.ts +34 -0
- package/layouts/container/Container.js +80 -0
- package/layouts/container/Container.sty.d.ts +1 -0
- package/layouts/container/Container.sty.js +25 -0
- package/layouts/flex/Flex.d.ts +23 -0
- package/layouts/flex/Flex.js +72 -0
- package/layouts/grid/Grid.d.ts +23 -0
- package/layouts/grid/Grid.js +72 -0
- package/layouts/index.d.ts +6 -0
- package/layouts/index.js +29 -0
- package/package.json +34 -4
- package/styles/colorUtils.css +80 -0
- package/styles/colorUtils.sty.d.ts +56 -0
- package/styles/colorUtils.sty.js +27 -0
- package/styles/container.css +64 -0
- package/styles/container.sty.d.ts +54 -0
- package/styles/container.sty.js +27 -0
- package/styles/ellipsis.css +5 -0
- package/styles/ellipsis.sty.d.ts +5 -0
- package/styles/ellipsis.sty.js +24 -0
- package/styles/extract-util.d.ts +9 -0
- package/styles/extract-util.js +33 -0
- package/styles/getFlexStyles.d.ts +64 -0
- package/styles/getFlexStyles.js +95 -0
- package/styles/getGapSprinkles.d.ts +19 -0
- package/styles/getGapSprinkles.js +36 -0
- package/styles/getGridFlexPositionSprinkles.d.ts +35 -0
- package/styles/getGridFlexPositionSprinkles.js +43 -0
- package/styles/getGridStyles.d.ts +74 -0
- package/styles/getGridStyles.js +100 -0
- package/styles/getLayoutSizeStyles.d.ts +29 -0
- package/styles/getLayoutSizeStyles.js +39 -0
- package/styles/getSpacingSprinkles.d.ts +74 -0
- package/styles/getSpacingSprinkles.js +68 -0
- package/styles/index.d.ts +11 -0
- package/styles/index.js +47 -0
- package/styles/safe-sprinkles.d.ts +6 -0
- package/styles/safe-sprinkles.js +35 -0
- package/styles/sprinkle-properties.d.ts +257 -0
- package/styles/sprinkle-properties.js +165 -0
- package/styles/sprinkles.css +786 -0
- package/styles/sprinkles.sty.d.ts +913 -0
- package/styles/sprinkles.sty.js +27 -0
- package/styles/textStyle.css +64 -0
- package/styles/textStyle.sty.d.ts +13 -0
- package/styles/textStyle.sty.js +25 -0
- package/testing/mocks/canvas-mock.js +6 -1
- package/testing/mocks/text-ellipsis-mock.d.ts +1 -1
- package/testing/mocks/text-ellipsis-mock.js +8 -3
- package/typography/BlockQuote/Blockquote.css +17 -0
- package/typography/BlockQuote/Blockquote.d.ts +19 -0
- package/typography/BlockQuote/Blockquote.js +62 -0
- package/typography/BlockQuote/Blockquote.sty.d.ts +1 -0
- package/typography/BlockQuote/Blockquote.sty.js +24 -0
- package/typography/Code/Code.css +16 -0
- package/typography/Code/Code.d.ts +17 -0
- package/typography/Code/Code.js +62 -0
- package/typography/Code/Code.sty.d.ts +1 -0
- package/typography/Code/Code.sty.js +24 -0
- package/typography/Emphasis/Emphasis.css +4 -0
- package/typography/Emphasis/Emphasis.d.ts +14 -0
- package/typography/Emphasis/Emphasis.js +62 -0
- package/typography/Emphasis/Emphasis.sty.d.ts +1 -0
- package/typography/Emphasis/Emphasis.sty.js +24 -0
- package/typography/ExternalLink/ExternalLink.css +28 -0
- package/typography/ExternalLink/ExternalLink.d.ts +21 -0
- package/typography/ExternalLink/ExternalLink.js +82 -0
- package/typography/ExternalLink/ExternalLink.sty.d.ts +1 -0
- package/typography/ExternalLink/ExternalLink.sty.js +24 -0
- package/typography/Heading/Heading.css +54 -0
- package/typography/Heading/Heading.d.ts +24 -0
- package/typography/Heading/Heading.js +64 -0
- package/typography/Heading/Heading.sty.d.ts +52 -0
- package/typography/Heading/Heading.sty.js +25 -0
- package/typography/Highlight/Highlight.css +4 -0
- package/typography/Highlight/Highlight.d.ts +27 -0
- package/typography/Highlight/Highlight.js +139 -0
- package/typography/Highlight/Highlight.sty.d.ts +1 -0
- package/typography/Highlight/Highlight.sty.js +24 -0
- package/typography/Link/Link.css +15 -0
- package/typography/Link/Link.d.ts +16 -0
- package/typography/Link/Link.js +75 -0
- package/typography/Link/Link.sty.d.ts +1 -0
- package/typography/Link/Link.sty.js +24 -0
- package/typography/List/List.css +16 -0
- package/typography/List/List.d.ts +39 -0
- package/typography/List/List.js +109 -0
- package/typography/List/List.sty.d.ts +2 -0
- package/typography/List/List.sty.js +26 -0
- package/typography/Paragraph/Paragraph.css +19 -0
- package/typography/Paragraph/Paragraph.d.ts +19 -0
- package/typography/Paragraph/Paragraph.js +77 -0
- package/typography/Paragraph/Paragraph.sty.d.ts +16 -0
- package/typography/Paragraph/Paragraph.sty.js +25 -0
- package/typography/Strikethrough/Strikethrough.css +5 -0
- package/typography/Strikethrough/Strikethrough.d.ts +15 -0
- package/typography/Strikethrough/Strikethrough.js +60 -0
- package/typography/Strikethrough/Strikethrough.sty.d.ts +1 -0
- package/typography/Strikethrough/Strikethrough.sty.js +24 -0
- package/typography/Strong/Strong.css +4 -0
- package/typography/Strong/Strong.d.ts +14 -0
- package/typography/Strong/Strong.js +62 -0
- package/typography/Strong/Strong.sty.d.ts +1 -0
- package/typography/Strong/Strong.sty.js +24 -0
- package/typography/Text/Text.css +18 -0
- package/typography/Text/Text.d.ts +26 -0
- package/typography/Text/Text.js +71 -0
- package/typography/Text/Text.sty.d.ts +16 -0
- package/typography/Text/Text.sty.js +25 -0
- package/typography/TextEllipsis/TextEllipsis.css +22 -0
- package/typography/TextEllipsis/TextEllipsis.d.ts +32 -0
- package/typography/TextEllipsis/TextEllipsis.js +167 -0
- package/typography/TextEllipsis/TextEllipsis.sty.d.ts +15 -0
- package/typography/TextEllipsis/TextEllipsis.sty.js +25 -0
- package/typography/index.d.ts +28 -0
- package/typography/index.js +54 -0
- package/typography/utils.d.ts +52 -0
- package/typography/utils.js +119 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/layouts/Divider/Divider.tsx"],
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport React, { forwardRef } from 'react';\n\nimport { dividerCSS } from './Divider.sty.js';\nimport { type DataTestId } from '../../core/types/data-props.js';\nimport { type StylingProps } from '../../core/types/styling-props.js';\nimport { colorUtilsCSS } from '../../core/utils/colorUtils.sty.js';\n\n// #region Typings\n\n/** @public\n * Divider component props.\n */\nexport interface DividerProps extends StylingProps, DataTestId {\n /**\n * Orientation of the Divider component.\n * @defaultValue 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical';\n /**\n * Control the HTML tag used for rendering the Divider.\n * @defaultValue 'div'\n */\n as?: 'hr' | 'div';\n /**\n * Indicate whether the Divider is used inside a Flex component to apply the right styling.\n * If set to false, make sure to have an explicit width/height style set on a parent HTML tag.\n * @defaultValue true\n */\n flexItem?: boolean;\n /**\n * The color of the Divider.\n * @defaultValue 'neutral'\n */\n color?: 'primary' | 'neutral' | 'success' | 'warning' | 'critical';\n /**\n * The visual style of the Divider.\n * @defaultValue 'default'\n */\n variant?: 'default' | 'accent';\n}\n// #endregion\n\n/**\n * The `Divider` component visually separates groups of content.\n * @public\n */\nexport const Divider = /* @__PURE__ */ forwardRef<\n HTMLDivElement | HTMLHRElement,\n DividerProps\n>((props, ref) => {\n const {\n orientation = 'horizontal',\n flexItem = true,\n as = 'div',\n color = 'neutral',\n variant = 'default',\n 'data-testid': dataTestId,\n className: consumerClassName,\n style: consumerStyle,\n ...remainingProps\n } = props;\n\n const DividerTag = as;\n\n return (\n <DividerTag\n role=\"separator\"\n aria-orientation={orientation === 'vertical' ? orientation : undefined}\n // @ts-expect-error ref can't be div and hr here\n ref={ref}\n data-testid={dataTestId}\n className={clsx(\n colorUtilsCSS({ color, variant }),\n dividerCSS({ orientation, flexItem }),\n consumerClassName,\n )}\n style={consumerStyle}\n {...remainingProps}\n />\n );\n});\n\n(Divider as typeof Divider & { displayName: string }).displayName = 'Divider';\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAAS,kBAAkB;AAElC,SAAS,kBAAkB;AAG3B,SAAS,qBAAqB;AAyCvB,MAAM,UAA0B,2BAGrC,CAAC,OAAO,QAAQ;AAChB,QAAM;AAAA,IACJ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,eAAe;AAAA,IACf,WAAW;AAAA,IACX,OAAO;AAAA,IACP,GAAG;AAAA,EACL,IAAI;AAEJ,QAAM,aAAa;AAEnB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,oBAAkB,gBAAgB,aAAa,cAAc;AAAA,MAE7D;AAAA,MACA,eAAa;AAAA,MACb,WAAW;AAAA,QACT,cAAc,EAAE,OAAO,QAAQ,CAAC;AAAA,QAChC,WAAW,EAAE,aAAa,SAAS,CAAC;AAAA,QACpC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,MACN,GAAG;AAAA;AAAA,EACN;AAEJ,CAAC;AAEA,QAAqD,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../../core/utils/colorUtils.css";
|
|
2
|
+
import "./Divider.css";
|
|
3
|
+
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
|
+
var dividerCSS = _7a468({ defaultClassName: "Divider_dividerCSS__1ljcfp90", variantClassNames: { orientation: { horizontal: "Divider_dividerCSS_orientation_horizontal__1ljcfp91", vertical: "Divider_dividerCSS_orientation_vertical__1ljcfp92" }, flexItem: { true: "Divider_dividerCSS_flexItem_true__1ljcfp93", false: "Divider_dividerCSS_flexItem_false__1ljcfp94" } }, defaultVariants: {}, compoundVariants: [[{ orientation: "horizontal", flexItem: false }, "Divider_dividerCSS_compound_0__1ljcfp95"], [{ orientation: "vertical", flexItem: true }, "Divider_dividerCSS_compound_1__1ljcfp96"]] });
|
|
5
|
+
export {
|
|
6
|
+
dividerCSS
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=Divider.sty.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/layouts/Divider/Divider.css.ts"],
|
|
4
|
+
"sourcesContent": ["import '../../core/utils/colorUtils.css';\nimport './Divider.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var dividerCSS = _7a468({defaultClassName:'Divider_dividerCSS__1ljcfp90',variantClassNames:{orientation:{horizontal:'Divider_dividerCSS_orientation_horizontal__1ljcfp91',vertical:'Divider_dividerCSS_orientation_vertical__1ljcfp92'},flexItem:{true:'Divider_dividerCSS_flexItem_true__1ljcfp93',false:'Divider_dividerCSS_flexItem_false__1ljcfp94'}},defaultVariants:{},compoundVariants:[[{orientation:'horizontal',flexItem:false},'Divider_dividerCSS_compound_0__1ljcfp95'],[{orientation:'vertical',flexItem:true},'Divider_dividerCSS_compound_1__1ljcfp96']]});"],
|
|
5
|
+
"mappings": "AAAA,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,aAAa,OAAO,EAAC,kBAAiB,gCAA+B,mBAAkB,EAAC,aAAY,EAAC,YAAW,uDAAsD,UAAS,oDAAmD,GAAE,UAAS,EAAC,MAAK,8CAA6C,OAAM,8CAA6C,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,aAAY,cAAa,UAAS,MAAK,GAAE,yCAAyC,GAAE,CAAC,EAAC,aAAY,YAAW,UAAS,KAAI,GAAE,yCAAyC,CAAC,EAAC,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
.Container_containerCSS__f32lcd0 {
|
|
2
|
+
border-style: var(--dt-borders-style-default, solid);
|
|
3
|
+
border-width: var(--dt-borders-width-emphasized, 2px);
|
|
4
|
+
border-radius: var(--dt-borders-radius-container-default, 12px);
|
|
5
|
+
color: var(--vars_text__6levse0);
|
|
6
|
+
border-color: var(--vars_borderColor__6levse2);
|
|
7
|
+
background-color: var(--vars_background__6levse1);
|
|
8
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import React, { forwardRef } from "react";
|
|
3
|
+
import { containerCSS } from "./Container.sty.js";
|
|
4
|
+
import { containerColorsCSS } from "../../styles/container.sty.js";
|
|
5
|
+
import {
|
|
6
|
+
_getLayoutSizeStyles as getLayoutSizeStyles,
|
|
7
|
+
_getSpacingSprinkles as getSpacingSprinkles
|
|
8
|
+
} from "../../styles/index.js";
|
|
9
|
+
const Container = /* @__PURE__ */ forwardRef(
|
|
10
|
+
({
|
|
11
|
+
as,
|
|
12
|
+
children,
|
|
13
|
+
variant = "default",
|
|
14
|
+
color = "neutral",
|
|
15
|
+
className: consumerClassName,
|
|
16
|
+
style: consumerStyle,
|
|
17
|
+
"data-testid": dataTestId,
|
|
18
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
19
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
20
|
+
...remainingProps
|
|
21
|
+
}, ref) => {
|
|
22
|
+
const [spacingClasses, sprinkleRestProps] = getSpacingSprinkles(
|
|
23
|
+
remainingProps,
|
|
24
|
+
{ padding: 16 }
|
|
25
|
+
);
|
|
26
|
+
const [sizeStyles, sizeRestProps] = getLayoutSizeStyles(sprinkleRestProps);
|
|
27
|
+
const Component = as || "div";
|
|
28
|
+
return /* @__PURE__ */ React.createElement(
|
|
29
|
+
Component,
|
|
30
|
+
{
|
|
31
|
+
ref,
|
|
32
|
+
className: clsx(
|
|
33
|
+
containerColorsCSS({ color, variant }),
|
|
34
|
+
containerCSS,
|
|
35
|
+
spacingClasses,
|
|
36
|
+
consumerClassName
|
|
37
|
+
),
|
|
38
|
+
style: {
|
|
39
|
+
...sizeStyles,
|
|
40
|
+
...consumerStyle
|
|
41
|
+
},
|
|
42
|
+
"data-testid": dataTestId,
|
|
43
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
44
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
45
|
+
...sizeRestProps
|
|
46
|
+
},
|
|
47
|
+
children
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
Container.displayName = "Container";
|
|
52
|
+
export {
|
|
53
|
+
Container
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=Container.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/layouts/container/Container.tsx"],
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport React, { forwardRef, type ElementType, type ReactElement } from 'react';\n\nimport { containerCSS } from './Container.sty.js';\nimport type { DataTestId } from '../../core/types/data-props.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\nimport type { PolymorphicComponentProps } from '../../core/types/polymorph.js';\nimport type { StylingProps } from '../../core/types/styling-props.js';\nimport type { WithChildren } from '../../core/types/with-children.js';\nimport { containerColorsCSS } from '../../styles/container.sty.js';\nimport {\n _getLayoutSizeStyles as getLayoutSizeStyles,\n _getSpacingSprinkles as getSpacingSprinkles,\n type LayoutSizeProps,\n type SpacingProps,\n} from '../../styles/index.js';\n\n/**\n * Accepted properties for Container\n * @public\n */\nexport interface ContainerOwnProps\n extends WithChildren,\n DataTestId,\n StylingProps,\n SpacingProps,\n LayoutSizeProps,\n MaskingProps {\n /**\n * The visual style of the container.\n * @defaultValue 'default'\n */\n variant?: 'minimal' | 'default' | 'emphasized' | 'accent';\n /**\n * The color of the container. This should be chosen based on the context\n * the container is used in.\n * @defaultValue 'neutral'\n */\n color?: 'primary' | 'neutral' | 'success' | 'warning' | 'critical';\n}\n\n/**\n * Merge own props with others inherited from the underlying element type\n * @public\n */\nexport type ContainerProps<E extends ElementType> = PolymorphicComponentProps<\n E,\n ContainerOwnProps\n>;\n\n/**\n * Containers can be used to group content that is related. Additionally, they emphasize and highlight your grouped content.\n * @public\n */\nexport const Container: <E extends ElementType = 'div'>(\n props: ContainerProps<E>,\n) => ReactElement | null = /* @__PURE__ */ forwardRef(\n <E extends ElementType>(\n {\n as,\n children,\n variant = 'default',\n color = 'neutral',\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n ...remainingProps\n }: ContainerProps<E>,\n ref: typeof remainingProps.ref,\n ) => {\n const [spacingClasses, sprinkleRestProps] = getSpacingSprinkles(\n remainingProps,\n { padding: 16 },\n );\n\n const [sizeStyles, sizeRestProps] = getLayoutSizeStyles(sprinkleRestProps);\n\n // Make the component polymorphic\n const Component = as || 'div';\n\n return (\n <Component\n ref={ref}\n className={clsx(\n containerColorsCSS({ color, variant }),\n containerCSS,\n spacingClasses,\n consumerClassName,\n )}\n style={{\n ...sizeStyles,\n ...consumerStyle,\n }}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n {...sizeRestProps}\n >\n {children}\n </Component>\n );\n },\n);\n\n(Container as typeof Container & { displayName: string }).displayName =\n 'Container';\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAAS,kBAAuD;AAEvE,SAAS,oBAAoB;AAM7B,SAAS,0BAA0B;AACnC;AAAA,EACE,wBAAwB;AAAA,EACxB,wBAAwB;AAAA,OAGnB;AAuCA,MAAM,YAE8B;AAAA,EACzC,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,OAAO;AAAA,IACP,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,oBAAoB;AAAA,IACpB,GAAG;AAAA,EACL,GACA,QACG;AACH,UAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,MAC1C;AAAA,MACA,EAAE,SAAS,GAAG;AAAA,IAChB;AAEA,UAAM,CAAC,YAAY,aAAa,IAAI,oBAAoB,iBAAiB;AAGzE,UAAM,YAAY,MAAM;AAExB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT,mBAAmB,EAAE,OAAO,QAAQ,CAAC;AAAA,UACrC;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,OAAO;AAAA,UACL,GAAG;AAAA,UACH,GAAG;AAAA,QACL;AAAA,QACA,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QACjB,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEC,UAAyD,cACxD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/layouts/container/Container.css.ts"],
|
|
4
|
+
"sourcesContent": ["import '../../styles/container.css';\nimport './Container.css';\nexport var containerCSS = 'Container_containerCSS__f32lcd0';"],
|
|
5
|
+
"mappings": "AAAA,OAAO;AACP,OAAO;AACA,IAAI,eAAe;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import React, { forwardRef } from "react";
|
|
3
|
+
import {
|
|
4
|
+
getFlexStyles
|
|
5
|
+
} from "../../styles/getFlexStyles.js";
|
|
6
|
+
const Flex = /* @__PURE__ */ forwardRef(
|
|
7
|
+
(props, forwardedRef) => {
|
|
8
|
+
const {
|
|
9
|
+
children,
|
|
10
|
+
id,
|
|
11
|
+
as,
|
|
12
|
+
className: consumerClassName,
|
|
13
|
+
style: consumerStyle,
|
|
14
|
+
"data-testid": dataTestId,
|
|
15
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
16
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
17
|
+
...remainingProps
|
|
18
|
+
} = props;
|
|
19
|
+
const [flexClassNames, flexStyles, nonFlexStyleProps] = getFlexStyles(
|
|
20
|
+
remainingProps,
|
|
21
|
+
{ gap: 8 }
|
|
22
|
+
);
|
|
23
|
+
const Component = as ?? "div";
|
|
24
|
+
return /* @__PURE__ */ React.createElement(
|
|
25
|
+
Component,
|
|
26
|
+
{
|
|
27
|
+
ref: forwardedRef,
|
|
28
|
+
id,
|
|
29
|
+
"data-testid": dataTestId,
|
|
30
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
31
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
32
|
+
className: clsx(flexClassNames, consumerClassName),
|
|
33
|
+
style: {
|
|
34
|
+
...flexStyles,
|
|
35
|
+
...consumerStyle
|
|
36
|
+
},
|
|
37
|
+
...nonFlexStyleProps
|
|
38
|
+
},
|
|
39
|
+
children
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
export {
|
|
44
|
+
Flex
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=Flex.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/layouts/flex/Flex.tsx"],
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport React, { type ElementType, type ReactElement, forwardRef } from 'react';\n\nimport { type DataTestId } from '../../core/types/data-props.js';\nimport { type MaskingProps } from '../../core/types/masking-props.js';\nimport { type PolymorphicComponentProps } from '../../core/types/polymorph.js';\nimport { type StylingProps } from '../../core/types/styling-props.js';\nimport { type WithChildren } from '../../core/types/with-children.js';\nimport {\n getFlexStyles,\n type FlexStyleProps,\n} from '../../styles/getFlexStyles.js';\n\n/**\n * Flex own props.\n * @public\n */\nexport type FlexOwnProps = WithChildren &\n StylingProps &\n FlexStyleProps &\n DataTestId &\n MaskingProps;\n\n/**\n * Merge own props with others inherited from the underlying element type.\n * @public\n */\nexport type FlexProps<E extends ElementType> = PolymorphicComponentProps<\n E,\n FlexOwnProps\n>;\n\n/**\n * The `Flex` component can be used to layout its children with Flexbox.\n * The component can be customized with flexbox props.\n * @public\n */\nexport const Flex: <E extends ElementType = 'div'>(\n props: FlexProps<E>,\n) => ReactElement | null = /* @__PURE__ */ forwardRef(\n <E extends ElementType>(\n props: FlexProps<E>,\n forwardedRef: typeof props.ref,\n ) => {\n const {\n children,\n id,\n as,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n ...remainingProps\n } = props;\n\n const [flexClassNames, flexStyles, nonFlexStyleProps] = getFlexStyles(\n remainingProps,\n { gap: 8 },\n );\n\n const Component = as ?? 'div';\n\n return (\n <Component\n ref={forwardedRef}\n id={id}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n className={clsx(flexClassNames, consumerClassName)}\n style={{\n ...flexStyles,\n ...consumerStyle,\n }}\n {...nonFlexStyleProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAA8C,kBAAkB;AAOvE;AAAA,EACE;AAAA,OAEK;AA0BA,MAAM,OAE8B;AAAA,EACzC,CACE,OACA,iBACG;AACH,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA,WAAW;AAAA,MACX,OAAO;AAAA,MACP,eAAe;AAAA,MACf,mBAAmB;AAAA,MACnB,oBAAoB;AAAA,MACpB,GAAG;AAAA,IACL,IAAI;AAEJ,UAAM,CAAC,gBAAgB,YAAY,iBAAiB,IAAI;AAAA,MACtD;AAAA,MACA,EAAE,KAAK,EAAE;AAAA,IACX;AAEA,UAAM,YAAY,MAAM;AAExB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,QACL;AAAA,QACA,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QAClB,WAAW,KAAK,gBAAgB,iBAAiB;AAAA,QACjD,OAAO;AAAA,UACL,GAAG;AAAA,UACH,GAAG;AAAA,QACL;AAAA,QACC,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import React, { forwardRef } from "react";
|
|
3
|
+
import {
|
|
4
|
+
getGridStyles
|
|
5
|
+
} from "../../styles/getGridStyles.js";
|
|
6
|
+
const Grid = /* @__PURE__ */ forwardRef(
|
|
7
|
+
(props, forwardedRef) => {
|
|
8
|
+
const {
|
|
9
|
+
children,
|
|
10
|
+
id,
|
|
11
|
+
as = "div",
|
|
12
|
+
className: consumerClassName,
|
|
13
|
+
style: consumerStyle,
|
|
14
|
+
"data-testid": dataTestId,
|
|
15
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
16
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
17
|
+
...remainingProps
|
|
18
|
+
} = props;
|
|
19
|
+
const [gridClassNames, gridStyles, nonGridStyleProps] = getGridStyles(
|
|
20
|
+
remainingProps,
|
|
21
|
+
{ gap: 8 }
|
|
22
|
+
);
|
|
23
|
+
const Component = as ?? "div";
|
|
24
|
+
return /* @__PURE__ */ React.createElement(
|
|
25
|
+
Component,
|
|
26
|
+
{
|
|
27
|
+
ref: forwardedRef,
|
|
28
|
+
"data-testid": dataTestId,
|
|
29
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
30
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
31
|
+
id,
|
|
32
|
+
className: clsx(gridClassNames, consumerClassName),
|
|
33
|
+
style: {
|
|
34
|
+
...gridStyles,
|
|
35
|
+
...consumerStyle
|
|
36
|
+
},
|
|
37
|
+
...nonGridStyleProps
|
|
38
|
+
},
|
|
39
|
+
children
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
export {
|
|
44
|
+
Grid
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=Grid.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/layouts/grid/Grid.tsx"],
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport React, { ElementType, ReactElement, forwardRef } from 'react';\n\nimport { type DataTestId } from '../../core/types/data-props.js';\nimport { type MaskingProps } from '../../core/types/masking-props.js';\nimport { type PolymorphicComponentProps } from '../../core/types/polymorph.js';\nimport { type StylingProps } from '../../core/types/styling-props.js';\nimport { type WithChildren } from '../../core/types/with-children.js';\nimport {\n type GridStyleProps,\n getGridStyles,\n} from '../../styles/getGridStyles.js';\n\n/**\n * Defines grid own props.\n * @public\n */\nexport type GridOwnProps = WithChildren &\n StylingProps &\n GridStyleProps &\n DataTestId &\n MaskingProps;\n\n/**\n * Merge own props with others inherited from the underlying element type.\n * @public\n */\nexport type GridProps<E extends ElementType> = PolymorphicComponentProps<\n E,\n GridOwnProps\n>;\n\n/**\n * The `Grid` component can be used to layout its children with the help of CSS Grid.\n * The component can be customized with CSS grid props.\n * @public\n */\nexport const Grid: <E extends ElementType = 'div'>(\n props: GridProps<E>,\n) => ReactElement | null = /* @__PURE__ */ forwardRef(\n <E extends ElementType>(\n props: GridProps<E>,\n forwardedRef: typeof props.ref,\n ) => {\n const {\n children,\n id,\n as = 'div',\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n ...remainingProps\n } = props;\n\n const [gridClassNames, gridStyles, nonGridStyleProps] = getGridStyles(\n remainingProps,\n { gap: 8 },\n );\n\n const Component = as ?? 'div';\n\n return (\n <Component\n ref={forwardedRef}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n id={id}\n className={clsx(gridClassNames, consumerClassName)}\n style={{\n ...gridStyles,\n ...consumerStyle,\n }}\n {...nonGridStyleProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAAoC,kBAAkB;AAO7D;AAAA,EAEE;AAAA,OACK;AA0BA,MAAM,OAE8B;AAAA,EACzC,CACE,OACA,iBACG;AACH,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA,KAAK;AAAA,MACL,WAAW;AAAA,MACX,OAAO;AAAA,MACP,eAAe;AAAA,MACf,mBAAmB;AAAA,MACnB,oBAAoB;AAAA,MACpB,GAAG;AAAA,IACL,IAAI;AAEJ,UAAM,CAAC,gBAAgB,YAAY,iBAAiB,IAAI;AAAA,MACtD;AAAA,MACA,EAAE,KAAK,EAAE;AAAA,IACX;AAEA,UAAM,YAAY,MAAM;AAExB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,QACL,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QAClB;AAAA,QACA,WAAW,KAAK,gBAAgB,iBAAiB;AAAA,QACjD,OAAO;AAAA,UACL,GAAG;AAAA,UACH,GAAG;AAAA,QACL;AAAA,QACC,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Flex } from "./flex/Flex.js";
|
|
2
|
+
import { Grid } from "./grid/Grid.js";
|
|
3
|
+
import { Divider } from "./Divider/Divider.js";
|
|
4
|
+
import { Container } from "./container/Container.js";
|
|
5
|
+
export {
|
|
6
|
+
Container,
|
|
7
|
+
Divider,
|
|
8
|
+
Flex,
|
|
9
|
+
Grid
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/layouts/index.ts"],
|
|
4
|
+
"sourcesContent": ["export { Flex, type FlexOwnProps, type FlexProps } from './flex/Flex.js';\nexport { Grid, type GridOwnProps, type GridProps } from './grid/Grid.js';\nexport { Divider } from './Divider/Divider.js';\nexport type { DividerProps } from './Divider/Divider.js';\nexport { Container } from './container/Container.js';\nexport type {\n ContainerOwnProps,\n ContainerProps,\n} from './container/Container.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAA+C;AACxD,SAAS,YAA+C;AACxD,SAAS,eAAe;AAExB,SAAS,iBAAiB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.colorUtils_colorUtilsCSS_color_critical__17bwkb04 {
|
|
2
|
+
--vars_text__17bwkb00: var(--dt-colors-text-critical-default, #b80031);
|
|
3
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-critical-default, #b80031);
|
|
4
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
5
|
+
}
|
|
6
|
+
.colorUtils_colorUtilsCSS_color_neutral__17bwkb05 {
|
|
7
|
+
--vars_text__17bwkb00: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
8
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-neutral-default, #2b2a58);
|
|
9
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
10
|
+
}
|
|
11
|
+
.colorUtils_colorUtilsCSS_color_primary__17bwkb06 {
|
|
12
|
+
--vars_text__17bwkb00: var(--dt-colors-text-primary-default, #454cc9);
|
|
13
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-primary-default, #454cc9);
|
|
14
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
15
|
+
}
|
|
16
|
+
.colorUtils_colorUtilsCSS_color_success__17bwkb07 {
|
|
17
|
+
--vars_text__17bwkb00: var(--dt-colors-text-success-default, #2c6360);
|
|
18
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-success-default, #2c6360);
|
|
19
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-success-default, #cad6d7);
|
|
20
|
+
}
|
|
21
|
+
.colorUtils_colorUtilsCSS_color_warning__17bwkb08 {
|
|
22
|
+
--vars_text__17bwkb00: var(--dt-colors-text-warning-default, #805100);
|
|
23
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-warning-default, #805100);
|
|
24
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
25
|
+
}
|
|
26
|
+
.colorUtils_colorUtilsCSS_color_onAccent__17bwkb09 {
|
|
27
|
+
--vars_text__17bwkb00: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
28
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
|
|
29
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-neutral-on-accent-default, #f3f3f6);
|
|
30
|
+
}
|
|
31
|
+
.colorUtils_colorUtilsCSS_compound_0__17bwkb0e {
|
|
32
|
+
--vars_text__17bwkb00: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
|
|
33
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-primary-on-accent-default, #f4f4fb);
|
|
34
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-primary-accent, #454cc9);
|
|
35
|
+
}
|
|
36
|
+
.colorUtils_colorUtilsCSS_compound_1__17bwkb0f {
|
|
37
|
+
--vars_text__17bwkb00: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
|
|
38
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-success-on-accent-default, #f1f4f4);
|
|
39
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-success-accent, #2c6360);
|
|
40
|
+
}
|
|
41
|
+
.colorUtils_colorUtilsCSS_compound_2__17bwkb0g {
|
|
42
|
+
--vars_text__17bwkb00: var(--dt-colors-text-warning-on-accent-default, #272025);
|
|
43
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-warning-on-accent-default, #272025);
|
|
44
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-warning-accent, #805100);
|
|
45
|
+
}
|
|
46
|
+
.colorUtils_colorUtilsCSS_compound_3__17bwkb0h {
|
|
47
|
+
--vars_text__17bwkb00: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
|
|
48
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-critical-on-accent-default, #f9f1f3);
|
|
49
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-critical-accent, #b80031);
|
|
50
|
+
}
|
|
51
|
+
.colorUtils_colorUtilsCSS_compound_4__17bwkb0i {
|
|
52
|
+
--vars_text__17bwkb00: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
53
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
|
|
54
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-neutral-accent, #545587);
|
|
55
|
+
}
|
|
56
|
+
.colorUtils_colorUtilsCSS_compound_5__17bwkb0j {
|
|
57
|
+
--vars_text__17bwkb00: var(--dt-colors-text-primary-disabled, #54558780);
|
|
58
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-primary-disabled, #54558780);
|
|
59
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-primary-disabled, #d2d3e180);
|
|
60
|
+
}
|
|
61
|
+
.colorUtils_colorUtilsCSS_compound_6__17bwkb0k {
|
|
62
|
+
--vars_text__17bwkb00: var(--dt-colors-text-success-disabled, #54558780);
|
|
63
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-success-disabled, #54558780);
|
|
64
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-success-disabled, #d2d3e180);
|
|
65
|
+
}
|
|
66
|
+
.colorUtils_colorUtilsCSS_compound_7__17bwkb0l {
|
|
67
|
+
--vars_text__17bwkb00: var(--dt-colors-text-warning-disabled, #54558780);
|
|
68
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-warning-disabled, #54558780);
|
|
69
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-warning-disabled, #d2d3e180);
|
|
70
|
+
}
|
|
71
|
+
.colorUtils_colorUtilsCSS_compound_8__17bwkb0m {
|
|
72
|
+
--vars_text__17bwkb00: var(--dt-colors-text-critical-disabled, #54558780);
|
|
73
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-critical-disabled, #54558780);
|
|
74
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-critical-disabled, #d2d3e180);
|
|
75
|
+
}
|
|
76
|
+
.colorUtils_colorUtilsCSS_compound_9__17bwkb0n {
|
|
77
|
+
--vars_text__17bwkb00: var(--dt-colors-text-neutral-disabled, #54558780);
|
|
78
|
+
--vars_icon__17bwkb01: var(--dt-colors-icon-neutral-disabled, #54558780);
|
|
79
|
+
--vars_borderColor__17bwkb02: var(--dt-colors-border-neutral-disabled, #d2d3e180);
|
|
80
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./colorUtils.css";
|
|
2
|
+
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
var colorUtilsCSS = _7a468({ defaultClassName: "colorUtils__17bwkb03", variantClassNames: { color: { critical: "colorUtils_colorUtilsCSS_color_critical__17bwkb04", neutral: "colorUtils_colorUtilsCSS_color_neutral__17bwkb05", primary: "colorUtils_colorUtilsCSS_color_primary__17bwkb06", success: "colorUtils_colorUtilsCSS_color_success__17bwkb07", warning: "colorUtils_colorUtilsCSS_color_warning__17bwkb08", onAccent: "colorUtils_colorUtilsCSS_color_onAccent__17bwkb09" }, variant: { "default": "colorUtils_colorUtilsCSS_variant_default__17bwkb0a", accent: "colorUtils_colorUtilsCSS_variant_accent__17bwkb0b" }, disabled: { true: "colorUtils_colorUtilsCSS_disabled_true__17bwkb0c", false: "colorUtils_colorUtilsCSS_disabled_false__17bwkb0d" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "colorUtils_colorUtilsCSS_compound_0__17bwkb0e"], [{ color: "success", variant: "accent" }, "colorUtils_colorUtilsCSS_compound_1__17bwkb0f"], [{ color: "warning", variant: "accent" }, "colorUtils_colorUtilsCSS_compound_2__17bwkb0g"], [{ color: "critical", variant: "accent" }, "colorUtils_colorUtilsCSS_compound_3__17bwkb0h"], [{ color: "neutral", variant: "accent" }, "colorUtils_colorUtilsCSS_compound_4__17bwkb0i"], [{ color: "primary", disabled: true }, "colorUtils_colorUtilsCSS_compound_5__17bwkb0j"], [{ color: "success", disabled: true }, "colorUtils_colorUtilsCSS_compound_6__17bwkb0k"], [{ color: "warning", disabled: true }, "colorUtils_colorUtilsCSS_compound_7__17bwkb0l"], [{ color: "critical", disabled: true }, "colorUtils_colorUtilsCSS_compound_8__17bwkb0m"], [{ color: "neutral", disabled: true }, "colorUtils_colorUtilsCSS_compound_9__17bwkb0n"]] });
|
|
4
|
+
var colorUtilsVars = { text: "var(--vars_text__17bwkb00)", icon: "var(--vars_icon__17bwkb01)", borderColor: "var(--vars_borderColor__17bwkb02)" };
|
|
5
|
+
export {
|
|
6
|
+
colorUtilsCSS,
|
|
7
|
+
colorUtilsVars
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=colorUtils.sty.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/styles/colorUtils.css.ts"],
|
|
4
|
+
"sourcesContent": ["import './colorUtils.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var colorUtilsCSS = _7a468({defaultClassName:'colorUtils__17bwkb03',variantClassNames:{color:{critical:'colorUtils_colorUtilsCSS_color_critical__17bwkb04',neutral:'colorUtils_colorUtilsCSS_color_neutral__17bwkb05',primary:'colorUtils_colorUtilsCSS_color_primary__17bwkb06',success:'colorUtils_colorUtilsCSS_color_success__17bwkb07',warning:'colorUtils_colorUtilsCSS_color_warning__17bwkb08',onAccent:'colorUtils_colorUtilsCSS_color_onAccent__17bwkb09'},variant:{'default':'colorUtils_colorUtilsCSS_variant_default__17bwkb0a',accent:'colorUtils_colorUtilsCSS_variant_accent__17bwkb0b'},disabled:{true:'colorUtils_colorUtilsCSS_disabled_true__17bwkb0c',false:'colorUtils_colorUtilsCSS_disabled_false__17bwkb0d'}},defaultVariants:{},compoundVariants:[[{color:'primary',variant:'accent'},'colorUtils_colorUtilsCSS_compound_0__17bwkb0e'],[{color:'success',variant:'accent'},'colorUtils_colorUtilsCSS_compound_1__17bwkb0f'],[{color:'warning',variant:'accent'},'colorUtils_colorUtilsCSS_compound_2__17bwkb0g'],[{color:'critical',variant:'accent'},'colorUtils_colorUtilsCSS_compound_3__17bwkb0h'],[{color:'neutral',variant:'accent'},'colorUtils_colorUtilsCSS_compound_4__17bwkb0i'],[{color:'primary',disabled:true},'colorUtils_colorUtilsCSS_compound_5__17bwkb0j'],[{color:'success',disabled:true},'colorUtils_colorUtilsCSS_compound_6__17bwkb0k'],[{color:'warning',disabled:true},'colorUtils_colorUtilsCSS_compound_7__17bwkb0l'],[{color:'critical',disabled:true},'colorUtils_colorUtilsCSS_compound_8__17bwkb0m'],[{color:'neutral',disabled:true},'colorUtils_colorUtilsCSS_compound_9__17bwkb0n']]});\nexport var colorUtilsVars = {text:'var(--vars_text__17bwkb00)',icon:'var(--vars_icon__17bwkb01)',borderColor:'var(--vars_borderColor__17bwkb02)'};"],
|
|
5
|
+
"mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,gBAAgB,OAAO,EAAC,kBAAiB,wBAAuB,mBAAkB,EAAC,OAAM,EAAC,UAAS,qDAAoD,SAAQ,oDAAmD,SAAQ,oDAAmD,SAAQ,oDAAmD,SAAQ,oDAAmD,UAAS,oDAAmD,GAAE,SAAQ,EAAC,WAAU,sDAAqD,QAAO,oDAAmD,GAAE,UAAS,EAAC,MAAK,oDAAmD,OAAM,oDAAmD,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,+CAA+C,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,+CAA+C,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,+CAA+C,GAAE,CAAC,EAAC,OAAM,YAAW,SAAQ,SAAQ,GAAE,+CAA+C,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,+CAA+C,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,+CAA+C,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,+CAA+C,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,+CAA+C,GAAE,CAAC,EAAC,OAAM,YAAW,UAAS,KAAI,GAAE,+CAA+C,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,+CAA+C,CAAC,EAAC,CAAC;AACljD,IAAI,iBAAiB,EAAC,MAAK,8BAA6B,MAAK,8BAA6B,aAAY,oCAAmC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.container_containerColorsCSS_color_critical__6levse4 {
|
|
2
|
+
--vars_text__6levse0: var(--dt-colors-text-critical-default, #b80031);
|
|
3
|
+
--vars_background__6levse1: var(--dt-colors-background-container-critical-default, #f3eaed);
|
|
4
|
+
--vars_borderColor__6levse2: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
5
|
+
}
|
|
6
|
+
.container_containerColorsCSS_color_neutral__6levse5 {
|
|
7
|
+
--vars_text__6levse0: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
8
|
+
--vars_background__6levse1: var(--dt-colors-background-container-neutral-default, #ebebf2);
|
|
9
|
+
--vars_borderColor__6levse2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
10
|
+
}
|
|
11
|
+
.container_containerColorsCSS_color_primary__6levse6 {
|
|
12
|
+
--vars_text__6levse0: var(--dt-colors-text-primary-default, #454cc9);
|
|
13
|
+
--vars_background__6levse1: var(--dt-colors-background-container-primary-default, #e9ebf6);
|
|
14
|
+
--vars_borderColor__6levse2: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
15
|
+
}
|
|
16
|
+
.container_containerColorsCSS_color_success__6levse7 {
|
|
17
|
+
--vars_text__6levse0: var(--dt-colors-text-success-default, #2c6360);
|
|
18
|
+
--vars_background__6levse1: var(--dt-colors-background-container-success-default, #e9ecef);
|
|
19
|
+
--vars_borderColor__6levse2: var(--dt-colors-border-success-default, #cad6d7);
|
|
20
|
+
}
|
|
21
|
+
.container_containerColorsCSS_color_warning__6levse8 {
|
|
22
|
+
--vars_text__6levse0: var(--dt-colors-text-warning-default, #805100);
|
|
23
|
+
--vars_background__6levse1: var(--dt-colors-background-container-warning-default, #f3efef);
|
|
24
|
+
--vars_borderColor__6levse2: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
25
|
+
}
|
|
26
|
+
.container_containerColorsCSS_variant_minimal__6levse9 {
|
|
27
|
+
--vars_background__6levse1: transparent;
|
|
28
|
+
background-color: none;
|
|
29
|
+
}
|
|
30
|
+
.container_containerColorsCSS_compound_0__6levsed {
|
|
31
|
+
--vars_text__6levse0: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
|
|
32
|
+
--vars_background__6levse1: var(--dt-colors-background-container-primary-accent, #474ecf);
|
|
33
|
+
}
|
|
34
|
+
.container_containerColorsCSS_compound_1__6levsee {
|
|
35
|
+
--vars_text__6levse0: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
|
|
36
|
+
--vars_background__6levse1: var(--dt-colors-background-container-success-accent, #2f6863);
|
|
37
|
+
}
|
|
38
|
+
.container_containerColorsCSS_compound_2__6levsef {
|
|
39
|
+
--vars_text__6levse0: var(--dt-colors-text-warning-on-accent-default, #272025);
|
|
40
|
+
--vars_background__6levse1: var(--dt-colors-background-container-warning-accent, #eca440);
|
|
41
|
+
}
|
|
42
|
+
.container_containerColorsCSS_compound_3__6levseg {
|
|
43
|
+
--vars_text__6levse0: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
|
|
44
|
+
--vars_background__6levse1: var(--dt-colors-background-container-critical-accent, #c4233b);
|
|
45
|
+
}
|
|
46
|
+
.container_containerColorsCSS_compound_4__6levseh {
|
|
47
|
+
--vars_text__6levse0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
48
|
+
--vars_background__6levse1: var(--dt-colors-background-container-neutral-accent, #5a5b8c);
|
|
49
|
+
}
|
|
50
|
+
.container_containerColorsCSS_compound_5__6levsei {
|
|
51
|
+
--vars_background__6levse1: var(--dt-colors-background-container-primary-emphasized, #dfe3f5);
|
|
52
|
+
}
|
|
53
|
+
.container_containerColorsCSS_compound_6__6levsej {
|
|
54
|
+
--vars_background__6levse1: var(--dt-colors-background-container-success-emphasized, #dfe4e7);
|
|
55
|
+
}
|
|
56
|
+
.container_containerColorsCSS_compound_7__6levsek {
|
|
57
|
+
--vars_background__6levse1: var(--dt-colors-background-container-warning-emphasized, #f4ece6);
|
|
58
|
+
}
|
|
59
|
+
.container_containerColorsCSS_compound_8__6levsel {
|
|
60
|
+
--vars_background__6levse1: var(--dt-colors-background-container-critical-emphasized, #f3e0e3);
|
|
61
|
+
}
|
|
62
|
+
.container_containerColorsCSS_compound_9__6levsem {
|
|
63
|
+
--vars_background__6levse1: var(--dt-colors-background-container-neutral-emphasized, #e2e3ec);
|
|
64
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./container.css";
|
|
2
|
+
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
var containerColorVars = { text: "var(--vars_text__6levse0)", background: "var(--vars_background__6levse1)", borderColor: "var(--vars_borderColor__6levse2)" };
|
|
4
|
+
var containerColorsCSS = _7a468({ defaultClassName: "container__6levse3", variantClassNames: { color: { critical: "container_containerColorsCSS_color_critical__6levse4", neutral: "container_containerColorsCSS_color_neutral__6levse5", primary: "container_containerColorsCSS_color_primary__6levse6", success: "container_containerColorsCSS_color_success__6levse7", warning: "container_containerColorsCSS_color_warning__6levse8" }, variant: { minimal: "container_containerColorsCSS_variant_minimal__6levse9", "default": "container_containerColorsCSS_variant_default__6levsea", emphasized: "container_containerColorsCSS_variant_emphasized__6levseb", accent: "container_containerColorsCSS_variant_accent__6levsec" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "container_containerColorsCSS_compound_0__6levsed"], [{ color: "success", variant: "accent" }, "container_containerColorsCSS_compound_1__6levsee"], [{ color: "warning", variant: "accent" }, "container_containerColorsCSS_compound_2__6levsef"], [{ color: "critical", variant: "accent" }, "container_containerColorsCSS_compound_3__6levseg"], [{ color: "neutral", variant: "accent" }, "container_containerColorsCSS_compound_4__6levseh"], [{ color: "primary", variant: "emphasized" }, "container_containerColorsCSS_compound_5__6levsei"], [{ color: "success", variant: "emphasized" }, "container_containerColorsCSS_compound_6__6levsej"], [{ color: "warning", variant: "emphasized" }, "container_containerColorsCSS_compound_7__6levsek"], [{ color: "critical", variant: "emphasized" }, "container_containerColorsCSS_compound_8__6levsel"], [{ color: "neutral", variant: "emphasized" }, "container_containerColorsCSS_compound_9__6levsem"]] });
|
|
5
|
+
export {
|
|
6
|
+
containerColorVars,
|
|
7
|
+
containerColorsCSS
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=container.sty.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/styles/container.css.ts"],
|
|
4
|
+
"sourcesContent": ["import './container.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var containerColorVars = {text:'var(--vars_text__6levse0)',background:'var(--vars_background__6levse1)',borderColor:'var(--vars_borderColor__6levse2)'};\nexport var containerColorsCSS = _7a468({defaultClassName:'container__6levse3',variantClassNames:{color:{critical:'container_containerColorsCSS_color_critical__6levse4',neutral:'container_containerColorsCSS_color_neutral__6levse5',primary:'container_containerColorsCSS_color_primary__6levse6',success:'container_containerColorsCSS_color_success__6levse7',warning:'container_containerColorsCSS_color_warning__6levse8'},variant:{minimal:'container_containerColorsCSS_variant_minimal__6levse9','default':'container_containerColorsCSS_variant_default__6levsea',emphasized:'container_containerColorsCSS_variant_emphasized__6levseb',accent:'container_containerColorsCSS_variant_accent__6levsec'}},defaultVariants:{},compoundVariants:[[{color:'primary',variant:'accent'},'container_containerColorsCSS_compound_0__6levsed'],[{color:'success',variant:'accent'},'container_containerColorsCSS_compound_1__6levsee'],[{color:'warning',variant:'accent'},'container_containerColorsCSS_compound_2__6levsef'],[{color:'critical',variant:'accent'},'container_containerColorsCSS_compound_3__6levseg'],[{color:'neutral',variant:'accent'},'container_containerColorsCSS_compound_4__6levseh'],[{color:'primary',variant:'emphasized'},'container_containerColorsCSS_compound_5__6levsei'],[{color:'success',variant:'emphasized'},'container_containerColorsCSS_compound_6__6levsej'],[{color:'warning',variant:'emphasized'},'container_containerColorsCSS_compound_7__6levsek'],[{color:'critical',variant:'emphasized'},'container_containerColorsCSS_compound_8__6levsel'],[{color:'neutral',variant:'emphasized'},'container_containerColorsCSS_compound_9__6levsem']]});"],
|
|
5
|
+
"mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,qBAAqB,EAAC,MAAK,6BAA4B,YAAW,mCAAkC,aAAY,mCAAkC;AACtJ,IAAI,qBAAqB,OAAO,EAAC,kBAAiB,sBAAqB,mBAAkB,EAAC,OAAM,EAAC,UAAS,wDAAuD,SAAQ,uDAAsD,SAAQ,uDAAsD,SAAQ,uDAAsD,SAAQ,sDAAqD,GAAE,SAAQ,EAAC,SAAQ,yDAAwD,WAAU,yDAAwD,YAAW,4DAA2D,QAAO,uDAAsD,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,kDAAkD,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,kDAAkD,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,kDAAkD,GAAE,CAAC,EAAC,OAAM,YAAW,SAAQ,SAAQ,GAAE,kDAAkD,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,kDAAkD,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,aAAY,GAAE,kDAAkD,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,aAAY,GAAE,kDAAkD,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,aAAY,GAAE,kDAAkD,GAAE,CAAC,EAAC,OAAM,YAAW,SAAQ,aAAY,GAAE,kDAAkD,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,aAAY,GAAE,kDAAkD,CAAC,EAAC,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function extract(obj, keys) {
|
|
2
|
+
const extracted = {};
|
|
3
|
+
const rest = { ...obj };
|
|
4
|
+
for (const key of keys) {
|
|
5
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
6
|
+
extracted[key] = obj[key];
|
|
7
|
+
delete rest[key];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
return { extracted, rest };
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
extract
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=extract-util.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/styles/extract-util.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Helper function that will extract all props from an object and will return them.\n * The rest returned are the ones that don\u00B4t belong to the object.\n * @internal\n */\nexport function extract<T extends object, K extends keyof T>(\n obj: T,\n keys: Array<K>,\n): { extracted: Pick<T, K>; rest: Omit<T, K> } {\n const extracted: Pick<T, K> = {} as Pick<T, K>;\n const rest: Omit<T, K> = { ...obj } as Omit<T, K>;\n for (const key of keys) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n extracted[key] = obj[key];\n // @ts-expect-error: Typesafety is not given for hasOwnProperty where it states that key could still be of type K\n delete rest[key];\n }\n }\n\n return { extracted, rest };\n}\n"],
|
|
5
|
+
"mappings": "AAKO,SAAS,QACd,KACA,MAC6C;AAC7C,QAAM,YAAwB,CAAC;AAC/B,QAAM,OAAmB,EAAE,GAAG,IAAI;AAClC,aAAW,OAAO,MAAM;AACtB,QAAI,OAAO,UAAU,eAAe,KAAK,KAAK,GAAG,GAAG;AAClD,gBAAU,GAAG,IAAI,IAAI,GAAG;AAExB,aAAO,KAAK,GAAG;AAAA,IACjB;AAAA,EACF;AAEA,SAAO,EAAE,WAAW,KAAK;AAC3B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import { extract } from "./extract-util.js";
|
|
3
|
+
import { getGapSprinkles } from "./getGapSprinkles.js";
|
|
4
|
+
import {
|
|
5
|
+
getGridFlexPositionSprinkles
|
|
6
|
+
} from "./getGridFlexPositionSprinkles.js";
|
|
7
|
+
import { getLayoutSizeStyles } from "./getLayoutSizeStyles.js";
|
|
8
|
+
import { getSpacingSprinkles } from "./getSpacingSprinkles.js";
|
|
9
|
+
import { globalSprinkles } from "./safe-sprinkles.js";
|
|
10
|
+
const flexItemPropKeys = ["flexItem"];
|
|
11
|
+
const flexStylePropKeys = [
|
|
12
|
+
/* Flex item props */
|
|
13
|
+
"order",
|
|
14
|
+
"flexGrow",
|
|
15
|
+
"flexShrink",
|
|
16
|
+
"flexBasis",
|
|
17
|
+
"flex",
|
|
18
|
+
/* Grid container props */
|
|
19
|
+
"flexDirection",
|
|
20
|
+
"flexWrap",
|
|
21
|
+
"flexFlow",
|
|
22
|
+
/* Grid item props */
|
|
23
|
+
"gridColumnStart",
|
|
24
|
+
"gridColumnEnd",
|
|
25
|
+
"gridRowStart",
|
|
26
|
+
"gridRowEnd",
|
|
27
|
+
"gridColumn",
|
|
28
|
+
"gridRow",
|
|
29
|
+
"gridArea"
|
|
30
|
+
];
|
|
31
|
+
function extractFlexItem(props) {
|
|
32
|
+
const { extracted, rest } = extract(props, flexItemPropKeys);
|
|
33
|
+
return { extracted, rest };
|
|
34
|
+
}
|
|
35
|
+
function getFlexStyles(props, defaults = {}) {
|
|
36
|
+
const { extracted: additionalFlexStyles, rest } = extract(
|
|
37
|
+
props,
|
|
38
|
+
flexStylePropKeys
|
|
39
|
+
);
|
|
40
|
+
const [sizeStyles, afterSizeExtraction] = getLayoutSizeStyles(rest, defaults);
|
|
41
|
+
const [gridFlexClassNames, gridFlexRemainingProps] = getGridFlexPositionSprinkles(afterSizeExtraction, defaults);
|
|
42
|
+
const [spacingClassNames, spacingRemainingProps] = getSpacingSprinkles(
|
|
43
|
+
gridFlexRemainingProps,
|
|
44
|
+
defaults
|
|
45
|
+
);
|
|
46
|
+
const [gapClassNames, gapRemainingProps] = getGapSprinkles(
|
|
47
|
+
spacingRemainingProps,
|
|
48
|
+
defaults
|
|
49
|
+
);
|
|
50
|
+
const { extracted: flexItemProps, rest: remainingProps } = extractFlexItem(gapRemainingProps);
|
|
51
|
+
const flexItemClassName = flexItemProps.flexItem ? void 0 : globalSprinkles({ display: "flex" });
|
|
52
|
+
return [
|
|
53
|
+
clsx(
|
|
54
|
+
gridFlexClassNames,
|
|
55
|
+
spacingClassNames,
|
|
56
|
+
gapClassNames,
|
|
57
|
+
flexItemClassName
|
|
58
|
+
),
|
|
59
|
+
{
|
|
60
|
+
...sizeStyles,
|
|
61
|
+
...additionalFlexStyles
|
|
62
|
+
},
|
|
63
|
+
remainingProps
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
getFlexStyles
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=getFlexStyles.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/styles/getFlexStyles.ts"],
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport React from 'react';\n\nimport { extract } from './extract-util.js';\nimport { GapProps, getGapSprinkles } from './getGapSprinkles.js';\nimport {\n GridFlexPositionProps,\n getGridFlexPositionSprinkles,\n} from './getGridFlexPositionSprinkles.js';\nimport { LayoutSizeProps, getLayoutSizeStyles } from './getLayoutSizeStyles.js';\nimport { SpacingProps, getSpacingSprinkles } from './getSpacingSprinkles.js';\nimport { globalSprinkles } from './safe-sprinkles.js';\n\n/**\n * Defines the flex item style props.\n * @public\n */\nexport interface FlexItemStyleProps {\n /**\n * Determines whether this is a flex item.\n * If true, display: 'flex' style will not be added.\n */\n flexItem?: boolean;\n}\n\n/**\n * Keys that will define the flex item.\n * @public\n */\nconst flexItemPropKeys: Array<keyof FlexItemStyleProps> = ['flexItem'];\n\n/**\n * Defines the flex props.\n * @public\n */\nexport interface FlexStyleProps\n extends GridFlexPositionProps,\n GapProps,\n LayoutSizeProps,\n SpacingProps,\n FlexItemStyleProps {\n /* Flex item props */\n /** Defines order */\n order?: React.CSSProperties['order'];\n /** Defines flex grow */\n flexGrow?: React.CSSProperties['flexGrow'];\n /** Defines flex shrink */\n flexShrink?: React.CSSProperties['flexShrink'];\n /** Defines flex basis */\n flexBasis?: React.CSSProperties['flexBasis'];\n /** Defines flex */\n flex?: React.CSSProperties['flex'];\n /* Flex container props */\n /** Defines flex direction */\n flexDirection?: React.CSSProperties['flexDirection'];\n /** Defines flex wrap */\n flexWrap?: React.CSSProperties['flexWrap'];\n /** Defines flex flow */\n flexFlow?: React.CSSProperties['flexFlow'];\n /* Grid item props */\n /** Defines grid column start */\n gridColumnStart?: React.CSSProperties['gridColumnStart'];\n /** Defines grid column end */\n gridColumnEnd?: React.CSSProperties['gridColumnEnd'];\n /** Defines grid row start */\n gridRowStart?: React.CSSProperties['gridRowStart'];\n /** Defines grid row end */\n gridRowEnd?: React.CSSProperties['gridRowEnd'];\n /** Defines grid column */\n gridColumn?: React.CSSProperties['gridColumn'];\n /** Defines grid row */\n gridRow?: React.CSSProperties['gridRow'];\n /** Defines grid area */\n gridArea?: React.CSSProperties['gridArea'];\n}\n\n/**\n * Keys that will define the flex.\n * @public\n */\nconst flexStylePropKeys: Array<keyof FlexStyleProps> = [\n /* Flex item props */\n 'order',\n 'flexGrow',\n 'flexShrink',\n 'flexBasis',\n 'flex',\n /* Grid container props */\n 'flexDirection',\n 'flexWrap',\n 'flexFlow',\n /* Grid item props */\n 'gridColumnStart',\n 'gridColumnEnd',\n 'gridRowStart',\n 'gridRowEnd',\n 'gridColumn',\n 'gridRow',\n 'gridArea',\n];\n\n// This one is split out of the getFlexStyles to ease typing, as the generic\n// would be overly complex when using inline.\n/**\n * Extracts the flexItem prop from the remaining props.\n * @public\n */\nfunction extractFlexItem<T extends FlexItemStyleProps>(\n props: T,\n): {\n extracted: Pick<T, keyof FlexItemStyleProps>;\n rest: Omit<T, keyof FlexItemStyleProps>;\n} {\n const { extracted, rest } = extract(props, flexItemPropKeys);\n return { extracted, rest };\n}\n\n/**\n * Helper function that will extract all styling relevant props for the Flex styling\n * and will return them as classnames and style attributes.\n * The remaining props returned are the ones that no longer contain any Flex styling\n * related entries.\n * @public\n */\nexport function getFlexStyles<T extends FlexStyleProps>(\n props: T,\n defaults: Partial<FlexStyleProps> = {},\n): [\n className: string,\n style: React.CSSProperties,\n remainingProps: Omit<T, keyof FlexStyleProps>,\n] {\n const { extracted: additionalFlexStyles, rest } = extract(\n props,\n flexStylePropKeys,\n );\n\n const [sizeStyles, afterSizeExtraction] = getLayoutSizeStyles(rest, defaults);\n\n const [gridFlexClassNames, gridFlexRemainingProps] =\n getGridFlexPositionSprinkles(afterSizeExtraction, defaults);\n\n const [spacingClassNames, spacingRemainingProps] = getSpacingSprinkles(\n gridFlexRemainingProps,\n defaults,\n );\n\n const [gapClassNames, gapRemainingProps] = getGapSprinkles(\n spacingRemainingProps,\n defaults,\n );\n\n const { extracted: flexItemProps, rest: remainingProps } =\n extractFlexItem(gapRemainingProps);\n\n const flexItemClassName = flexItemProps.flexItem\n ? undefined\n : globalSprinkles({ display: 'flex' });\n\n return [\n clsx(\n gridFlexClassNames,\n spacingClassNames,\n gapClassNames,\n flexItemClassName,\n ),\n {\n ...sizeStyles,\n ...additionalFlexStyles,\n },\n remainingProps as Omit<T, keyof FlexStyleProps>,\n ];\n}\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,UAAU;AAGjB,SAAS,eAAe;AACxB,SAAmB,uBAAuB;AAC1C;AAAA,EAEE;AAAA,OACK;AACP,SAA0B,2BAA2B;AACrD,SAAuB,2BAA2B;AAClD,SAAS,uBAAuB;AAkBhC,MAAM,mBAAoD,CAAC,UAAU;AAmDrE,MAAM,oBAAiD;AAAA;AAAA,EAErD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAQA,SAAS,gBACP,OAIA;AACA,QAAM,EAAE,WAAW,KAAK,IAAI,QAAQ,OAAO,gBAAgB;AAC3D,SAAO,EAAE,WAAW,KAAK;AAC3B;AASO,SAAS,cACd,OACA,WAAoC,CAAC,GAKrC;AACA,QAAM,EAAE,WAAW,sBAAsB,KAAK,IAAI;AAAA,IAChD;AAAA,IACA;AAAA,EACF;AAEA,QAAM,CAAC,YAAY,mBAAmB,IAAI,oBAAoB,MAAM,QAAQ;AAE5E,QAAM,CAAC,oBAAoB,sBAAsB,IAC/C,6BAA6B,qBAAqB,QAAQ;AAE5D,QAAM,CAAC,mBAAmB,qBAAqB,IAAI;AAAA,IACjD;AAAA,IACA;AAAA,EACF;AAEA,QAAM,CAAC,eAAe,iBAAiB,IAAI;AAAA,IACzC;AAAA,IACA;AAAA,EACF;AAEA,QAAM,EAAE,WAAW,eAAe,MAAM,eAAe,IACrD,gBAAgB,iBAAiB;AAEnC,QAAM,oBAAoB,cAAc,WACpC,SACA,gBAAgB,EAAE,SAAS,OAAO,CAAC;AAEvC,SAAO;AAAA,IACL;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|