@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,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DataTestId } from '../../core/types/data-props.js';
|
|
3
|
+
import { type StylingProps } from '../../core/types/styling-props.js';
|
|
4
|
+
/** @public
|
|
5
|
+
* Divider component props.
|
|
6
|
+
*/
|
|
7
|
+
export interface DividerProps extends StylingProps, DataTestId {
|
|
8
|
+
/**
|
|
9
|
+
* Orientation of the Divider component.
|
|
10
|
+
* @defaultValue 'horizontal'
|
|
11
|
+
*/
|
|
12
|
+
orientation?: 'horizontal' | 'vertical';
|
|
13
|
+
/**
|
|
14
|
+
* Control the HTML tag used for rendering the Divider.
|
|
15
|
+
* @defaultValue 'div'
|
|
16
|
+
*/
|
|
17
|
+
as?: 'hr' | 'div';
|
|
18
|
+
/**
|
|
19
|
+
* Indicate whether the Divider is used inside a Flex component to apply the right styling.
|
|
20
|
+
* If set to false, make sure to have an explicit width/height style set on a parent HTML tag.
|
|
21
|
+
* @defaultValue true
|
|
22
|
+
*/
|
|
23
|
+
flexItem?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The color of the Divider.
|
|
26
|
+
* @defaultValue 'neutral'
|
|
27
|
+
*/
|
|
28
|
+
color?: 'primary' | 'neutral' | 'success' | 'warning' | 'critical';
|
|
29
|
+
/**
|
|
30
|
+
* The visual style of the Divider.
|
|
31
|
+
* @defaultValue 'default'
|
|
32
|
+
*/
|
|
33
|
+
variant?: 'default' | 'accent';
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The `Divider` component visually separates groups of content.
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export declare const Divider: (props: DividerProps & React.RefAttributes<HTMLDivElement | HTMLHRElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var Divider_exports = {};
|
|
29
|
+
__export(Divider_exports, {
|
|
30
|
+
Divider: () => Divider
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(Divider_exports);
|
|
33
|
+
var import_clsx = __toESM(require("clsx"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_Divider_css = require("./Divider.sty.js");
|
|
36
|
+
var import_colorUtils_css = require("../../core/utils/colorUtils.sty.js");
|
|
37
|
+
const Divider = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
|
|
38
|
+
const {
|
|
39
|
+
orientation = "horizontal",
|
|
40
|
+
flexItem = true,
|
|
41
|
+
as = "div",
|
|
42
|
+
color = "neutral",
|
|
43
|
+
variant = "default",
|
|
44
|
+
"data-testid": dataTestId,
|
|
45
|
+
className: consumerClassName,
|
|
46
|
+
style: consumerStyle,
|
|
47
|
+
...remainingProps
|
|
48
|
+
} = props;
|
|
49
|
+
const DividerTag = as;
|
|
50
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
51
|
+
DividerTag,
|
|
52
|
+
{
|
|
53
|
+
role: "separator",
|
|
54
|
+
"aria-orientation": orientation === "vertical" ? orientation : void 0,
|
|
55
|
+
ref,
|
|
56
|
+
"data-testid": dataTestId,
|
|
57
|
+
className: (0, import_clsx.default)(
|
|
58
|
+
(0, import_colorUtils_css.colorUtilsCSS)({ color, variant }),
|
|
59
|
+
(0, import_Divider_css.dividerCSS)({ orientation, flexItem }),
|
|
60
|
+
consumerClassName
|
|
61
|
+
),
|
|
62
|
+
style: consumerStyle,
|
|
63
|
+
...remainingProps
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
});
|
|
67
|
+
Divider.displayName = "Divider";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const dividerCSS: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
orientation: {
|
|
3
|
+
horizontal: {
|
|
4
|
+
width: "100%";
|
|
5
|
+
height: string;
|
|
6
|
+
};
|
|
7
|
+
vertical: {
|
|
8
|
+
width: string;
|
|
9
|
+
height: "100%";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
flexItem: {
|
|
13
|
+
true: {};
|
|
14
|
+
false: {};
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var Divider_css_exports = {};
|
|
19
|
+
__export(Divider_css_exports, {
|
|
20
|
+
dividerCSS: () => dividerCSS
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(Divider_css_exports);
|
|
23
|
+
var import_colorUtils_css_ts_vanilla = require("../../core/utils/colorUtils.css");
|
|
24
|
+
var import_Divider_css_ts_vanilla = require("./Divider.css");
|
|
25
|
+
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
+
var dividerCSS = (0, import_createRuntimeFn.createRuntimeFn)({ 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"]] });
|
|
@@ -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,34 @@
|
|
|
1
|
+
import { type ElementType, type ReactElement } from 'react';
|
|
2
|
+
import type { DataTestId } from '../../core/types/data-props.js';
|
|
3
|
+
import type { MaskingProps } from '../../core/types/masking-props.js';
|
|
4
|
+
import type { PolymorphicComponentProps } from '../../core/types/polymorph.js';
|
|
5
|
+
import type { StylingProps } from '../../core/types/styling-props.js';
|
|
6
|
+
import type { WithChildren } from '../../core/types/with-children.js';
|
|
7
|
+
import { type LayoutSizeProps, type SpacingProps } from '../../styles/index.js';
|
|
8
|
+
/**
|
|
9
|
+
* Accepted properties for Container
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export interface ContainerOwnProps extends WithChildren, DataTestId, StylingProps, SpacingProps, LayoutSizeProps, MaskingProps {
|
|
13
|
+
/**
|
|
14
|
+
* The visual style of the container.
|
|
15
|
+
* @defaultValue 'default'
|
|
16
|
+
*/
|
|
17
|
+
variant?: 'minimal' | 'default' | 'emphasized' | 'accent';
|
|
18
|
+
/**
|
|
19
|
+
* The color of the container. This should be chosen based on the context
|
|
20
|
+
* the container is used in.
|
|
21
|
+
* @defaultValue 'neutral'
|
|
22
|
+
*/
|
|
23
|
+
color?: 'primary' | 'neutral' | 'success' | 'warning' | 'critical';
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Merge own props with others inherited from the underlying element type
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export type ContainerProps<E extends ElementType> = PolymorphicComponentProps<E, ContainerOwnProps>;
|
|
30
|
+
/**
|
|
31
|
+
* Containers can be used to group content that is related. Additionally, they emphasize and highlight your grouped content.
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export declare const Container: <E extends ElementType = 'div'>(props: ContainerProps<E>) => ReactElement | null;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var Container_exports = {};
|
|
29
|
+
__export(Container_exports, {
|
|
30
|
+
Container: () => Container
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(Container_exports);
|
|
33
|
+
var import_clsx = __toESM(require("clsx"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_Container_css = require("./Container.sty.js");
|
|
36
|
+
var import_container_css = require("../../styles/container.sty.js");
|
|
37
|
+
var import_styles = require("../../styles/index.js");
|
|
38
|
+
const Container = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
39
|
+
({
|
|
40
|
+
as,
|
|
41
|
+
children,
|
|
42
|
+
variant = "default",
|
|
43
|
+
color = "neutral",
|
|
44
|
+
className: consumerClassName,
|
|
45
|
+
style: consumerStyle,
|
|
46
|
+
"data-testid": dataTestId,
|
|
47
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
48
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
49
|
+
...remainingProps
|
|
50
|
+
}, ref) => {
|
|
51
|
+
const [spacingClasses, sprinkleRestProps] = (0, import_styles._getSpacingSprinkles)(
|
|
52
|
+
remainingProps,
|
|
53
|
+
{ padding: 16 }
|
|
54
|
+
);
|
|
55
|
+
const [sizeStyles, sizeRestProps] = (0, import_styles._getLayoutSizeStyles)(sprinkleRestProps);
|
|
56
|
+
const Component = as || "div";
|
|
57
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
58
|
+
Component,
|
|
59
|
+
{
|
|
60
|
+
ref,
|
|
61
|
+
className: (0, import_clsx.default)(
|
|
62
|
+
(0, import_container_css.containerColorsCSS)({ color, variant }),
|
|
63
|
+
import_Container_css.containerCSS,
|
|
64
|
+
spacingClasses,
|
|
65
|
+
consumerClassName
|
|
66
|
+
),
|
|
67
|
+
style: {
|
|
68
|
+
...sizeStyles,
|
|
69
|
+
...consumerStyle
|
|
70
|
+
},
|
|
71
|
+
"data-testid": dataTestId,
|
|
72
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
73
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
74
|
+
...sizeRestProps
|
|
75
|
+
},
|
|
76
|
+
children
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
Container.displayName = "Container";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const containerCSS: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var Container_css_exports = {};
|
|
19
|
+
__export(Container_css_exports, {
|
|
20
|
+
containerCSS: () => containerCSS
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(Container_css_exports);
|
|
23
|
+
var import_container_css_ts_vanilla = require("../../styles/container.css");
|
|
24
|
+
var import_Container_css_ts_vanilla = require("./Container.css");
|
|
25
|
+
var containerCSS = "Container_containerCSS__f32lcd0";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ElementType, type ReactElement } from 'react';
|
|
2
|
+
import { type DataTestId } from '../../core/types/data-props.js';
|
|
3
|
+
import { type MaskingProps } from '../../core/types/masking-props.js';
|
|
4
|
+
import { type PolymorphicComponentProps } from '../../core/types/polymorph.js';
|
|
5
|
+
import { type StylingProps } from '../../core/types/styling-props.js';
|
|
6
|
+
import { type WithChildren } from '../../core/types/with-children.js';
|
|
7
|
+
import { type FlexStyleProps } from '../../styles/getFlexStyles.js';
|
|
8
|
+
/**
|
|
9
|
+
* Flex own props.
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type FlexOwnProps = WithChildren & StylingProps & FlexStyleProps & DataTestId & MaskingProps;
|
|
13
|
+
/**
|
|
14
|
+
* Merge own props with others inherited from the underlying element type.
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type FlexProps<E extends ElementType> = PolymorphicComponentProps<E, FlexOwnProps>;
|
|
18
|
+
/**
|
|
19
|
+
* The `Flex` component can be used to layout its children with Flexbox.
|
|
20
|
+
* The component can be customized with flexbox props.
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export declare const Flex: <E extends ElementType = 'div'>(props: FlexProps<E>) => ReactElement | null;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var Flex_exports = {};
|
|
29
|
+
__export(Flex_exports, {
|
|
30
|
+
Flex: () => Flex
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(Flex_exports);
|
|
33
|
+
var import_clsx = __toESM(require("clsx"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_getFlexStyles = require("../../styles/getFlexStyles.js");
|
|
36
|
+
const Flex = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
37
|
+
(props, forwardedRef) => {
|
|
38
|
+
const {
|
|
39
|
+
children,
|
|
40
|
+
id,
|
|
41
|
+
as,
|
|
42
|
+
className: consumerClassName,
|
|
43
|
+
style: consumerStyle,
|
|
44
|
+
"data-testid": dataTestId,
|
|
45
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
46
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
47
|
+
...remainingProps
|
|
48
|
+
} = props;
|
|
49
|
+
const [flexClassNames, flexStyles, nonFlexStyleProps] = (0, import_getFlexStyles.getFlexStyles)(
|
|
50
|
+
remainingProps,
|
|
51
|
+
{ gap: 8 }
|
|
52
|
+
);
|
|
53
|
+
const Component = as ?? "div";
|
|
54
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
55
|
+
Component,
|
|
56
|
+
{
|
|
57
|
+
ref: forwardedRef,
|
|
58
|
+
id,
|
|
59
|
+
"data-testid": dataTestId,
|
|
60
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
61
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
62
|
+
className: (0, import_clsx.default)(flexClassNames, consumerClassName),
|
|
63
|
+
style: {
|
|
64
|
+
...flexStyles,
|
|
65
|
+
...consumerStyle
|
|
66
|
+
},
|
|
67
|
+
...nonFlexStyleProps
|
|
68
|
+
},
|
|
69
|
+
children
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ElementType, ReactElement } from 'react';
|
|
2
|
+
import { type DataTestId } from '../../core/types/data-props.js';
|
|
3
|
+
import { type MaskingProps } from '../../core/types/masking-props.js';
|
|
4
|
+
import { type PolymorphicComponentProps } from '../../core/types/polymorph.js';
|
|
5
|
+
import { type StylingProps } from '../../core/types/styling-props.js';
|
|
6
|
+
import { type WithChildren } from '../../core/types/with-children.js';
|
|
7
|
+
import { type GridStyleProps } from '../../styles/getGridStyles.js';
|
|
8
|
+
/**
|
|
9
|
+
* Defines grid own props.
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type GridOwnProps = WithChildren & StylingProps & GridStyleProps & DataTestId & MaskingProps;
|
|
13
|
+
/**
|
|
14
|
+
* Merge own props with others inherited from the underlying element type.
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type GridProps<E extends ElementType> = PolymorphicComponentProps<E, GridOwnProps>;
|
|
18
|
+
/**
|
|
19
|
+
* The `Grid` component can be used to layout its children with the help of CSS Grid.
|
|
20
|
+
* The component can be customized with CSS grid props.
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export declare const Grid: <E extends ElementType = 'div'>(props: GridProps<E>) => ReactElement | null;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var Grid_exports = {};
|
|
29
|
+
__export(Grid_exports, {
|
|
30
|
+
Grid: () => Grid
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(Grid_exports);
|
|
33
|
+
var import_clsx = __toESM(require("clsx"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_getGridStyles = require("../../styles/getGridStyles.js");
|
|
36
|
+
const Grid = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
37
|
+
(props, forwardedRef) => {
|
|
38
|
+
const {
|
|
39
|
+
children,
|
|
40
|
+
id,
|
|
41
|
+
as = "div",
|
|
42
|
+
className: consumerClassName,
|
|
43
|
+
style: consumerStyle,
|
|
44
|
+
"data-testid": dataTestId,
|
|
45
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
46
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
47
|
+
...remainingProps
|
|
48
|
+
} = props;
|
|
49
|
+
const [gridClassNames, gridStyles, nonGridStyleProps] = (0, import_getGridStyles.getGridStyles)(
|
|
50
|
+
remainingProps,
|
|
51
|
+
{ gap: 8 }
|
|
52
|
+
);
|
|
53
|
+
const Component = as ?? "div";
|
|
54
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
55
|
+
Component,
|
|
56
|
+
{
|
|
57
|
+
ref: forwardedRef,
|
|
58
|
+
"data-testid": dataTestId,
|
|
59
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
60
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
61
|
+
id,
|
|
62
|
+
className: (0, import_clsx.default)(gridClassNames, consumerClassName),
|
|
63
|
+
style: {
|
|
64
|
+
...gridStyles,
|
|
65
|
+
...consumerStyle
|
|
66
|
+
},
|
|
67
|
+
...nonGridStyleProps
|
|
68
|
+
},
|
|
69
|
+
children
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Flex, type FlexOwnProps, type FlexProps } from './flex/Flex.js';
|
|
2
|
+
export { Grid, type GridOwnProps, type GridProps } from './grid/Grid.js';
|
|
3
|
+
export { Divider } from './Divider/Divider.js';
|
|
4
|
+
export type { DividerProps } from './Divider/Divider.js';
|
|
5
|
+
export { Container } from './container/Container.js';
|
|
6
|
+
export type { ContainerOwnProps, ContainerProps, } from './container/Container.js';
|
package/layouts/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var layouts_exports = {};
|
|
19
|
+
__export(layouts_exports, {
|
|
20
|
+
Container: () => import_Container.Container,
|
|
21
|
+
Divider: () => import_Divider.Divider,
|
|
22
|
+
Flex: () => import_Flex.Flex,
|
|
23
|
+
Grid: () => import_Grid.Grid
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(layouts_exports);
|
|
26
|
+
var import_Flex = require("./flex/Flex.js");
|
|
27
|
+
var import_Grid = require("./grid/Grid.js");
|
|
28
|
+
var import_Divider = require("./Divider/Divider.js");
|
|
29
|
+
var import_Container = require("./container/Container.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/strato-components",
|
|
3
|
-
"version": "0.84.
|
|
3
|
+
"version": "0.84.51",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"lang": "lang/uncompiled",
|
|
@@ -19,6 +19,13 @@
|
|
|
19
19
|
"module": "./esm/index.js",
|
|
20
20
|
"import": "./esm/index.js"
|
|
21
21
|
},
|
|
22
|
+
"./content": {
|
|
23
|
+
"types": "./content/index.d.ts",
|
|
24
|
+
"require": "./content/index.js",
|
|
25
|
+
"browser": "./esm/content/index.js",
|
|
26
|
+
"module": "./esm/content/index.js",
|
|
27
|
+
"import": "./esm/content/index.js"
|
|
28
|
+
},
|
|
22
29
|
"./core": {
|
|
23
30
|
"types": "./core/index.d.ts",
|
|
24
31
|
"require": "./core/index.js",
|
|
@@ -26,6 +33,27 @@
|
|
|
26
33
|
"module": "./esm/core/index.js",
|
|
27
34
|
"import": "./esm/core/index.js"
|
|
28
35
|
},
|
|
36
|
+
"./layouts": {
|
|
37
|
+
"types": "./layouts/index.d.ts",
|
|
38
|
+
"require": "./layouts/index.js",
|
|
39
|
+
"browser": "./esm/layouts/index.js",
|
|
40
|
+
"module": "./esm/layouts/index.js",
|
|
41
|
+
"import": "./esm/layouts/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./styles": {
|
|
44
|
+
"types": "./styles/index.d.ts",
|
|
45
|
+
"require": "./styles/index.js",
|
|
46
|
+
"browser": "./esm/styles/index.js",
|
|
47
|
+
"module": "./esm/styles/index.js",
|
|
48
|
+
"import": "./esm/styles/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./typography": {
|
|
51
|
+
"types": "./typography/index.d.ts",
|
|
52
|
+
"require": "./typography/index.js",
|
|
53
|
+
"browser": "./esm/typography/index.js",
|
|
54
|
+
"module": "./esm/typography/index.js",
|
|
55
|
+
"import": "./esm/typography/index.js"
|
|
56
|
+
},
|
|
29
57
|
"./testing": {
|
|
30
58
|
"types": "./testing/index.d.ts",
|
|
31
59
|
"require": "./testing/index.js"
|
|
@@ -36,14 +64,16 @@
|
|
|
36
64
|
}
|
|
37
65
|
},
|
|
38
66
|
"dependencies": {
|
|
67
|
+
"@dynatrace-sdk/units": "^0.13.1",
|
|
39
68
|
"@dynatrace/devkit": "^0.3.2",
|
|
40
69
|
"@formatjs/icu-messageformat-parser": "^2.0.18",
|
|
41
70
|
"@jest/globals": "^29.7.0",
|
|
42
|
-
"clsx": "^2.1.
|
|
71
|
+
"clsx": "^2.1.1",
|
|
43
72
|
"lodash-es": "^4.17.21",
|
|
44
73
|
"wicg-inert": "^3.1.2",
|
|
45
|
-
"
|
|
46
|
-
"@dynatrace/strato-
|
|
74
|
+
"use-resize-observer": "^9.1.0",
|
|
75
|
+
"@dynatrace/strato-design-tokens": "0.20.30",
|
|
76
|
+
"@dynatrace/strato-icons": "0.38.0"
|
|
47
77
|
},
|
|
48
78
|
"peerDependencies": {
|
|
49
79
|
"@dynatrace-sdk/app-environment": ">= 1.0.0 < 2",
|