@dynatrace/strato-components 1.5.1 → 1.6.2
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/buttons/button/Button.css +16 -16
- package/buttons/button/Button.d.ts +4 -4
- package/buttons/button/Button.js +47 -34
- package/buttons/button/Button.sty.js +4 -4
- package/buttons/button/Label.d.ts +2 -2
- package/buttons/button/Label.js +8 -7
- package/buttons/button/Prefix.d.ts +2 -2
- package/buttons/button/Prefix.js +6 -15
- package/buttons/button/Suffix.d.ts +3 -3
- package/buttons/button/Suffix.js +6 -15
- package/buttons/intent-button/IntentButton.d.ts +2 -2
- package/buttons/intent-button/IntentButton.js +16 -21
- package/buttons/intent-button/useIntentButton.d.ts +4 -3
- package/content/progress/ProgressBar.css +71 -71
- package/content/progress/ProgressBar.d.ts +4 -5
- package/content/progress/ProgressBar.js +49 -41
- package/content/progress/ProgressBar.sty.js +5 -5
- package/content/progress/ProgressBarIcon.css +2 -2
- package/content/progress/ProgressBarIcon.d.ts +1 -2
- package/content/progress/ProgressBarIcon.js +6 -5
- package/content/progress/ProgressBarIcon.sty.js +1 -1
- package/content/progress/ProgressBarLabel.css +3 -3
- package/content/progress/ProgressBarLabel.d.ts +1 -2
- package/content/progress/ProgressBarLabel.js +8 -7
- package/content/progress/ProgressBarLabel.sty.js +1 -1
- package/content/progress/ProgressBarValue.css +5 -5
- package/content/progress/ProgressBarValue.d.ts +1 -2
- package/content/progress/ProgressBarValue.js +8 -7
- package/content/progress/ProgressBarValue.sty.js +1 -1
- package/content/progress/ProgressCircle.css +40 -40
- package/content/progress/ProgressCircle.d.ts +1 -2
- package/content/progress/ProgressCircle.js +60 -55
- package/content/progress/ProgressCircle.sty.js +5 -5
- package/content/progress/contexts/SharedProgressBarPropsContext.d.ts +1 -2
- package/content/progress/contexts/SharedProgressBarPropsContext.js +2 -12
- package/content/skeleton/Skeleton.css +6 -6
- package/content/skeleton/Skeleton.d.ts +2 -2
- package/content/skeleton/Skeleton.js +6 -5
- package/content/skeleton/Skeleton.sty.js +1 -1
- package/content/skeleton/SkeletonText.d.ts +2 -2
- package/content/skeleton/SkeletonText.js +9 -18
- package/core/components/app-root/AppRoot.d.ts +3 -3
- package/core/components/app-root/AppRoot.js +15 -24
- package/core/components/focus-scope/FocusScope.d.ts +1 -2
- package/core/components/focus-scope/FocusScope.js +7 -16
- package/core/contexts/FocusContext.d.ts +1 -0
- package/core/contexts/FocusContext.js +2 -1
- package/core/hooks/useFontsUpdated.js +1 -1
- package/core/hooks/useMergeRefs.d.ts +2 -2
- package/core/index.d.ts +2 -1
- package/core/index.js +3 -1
- package/core/providers/FocusProvider.d.ts +1 -2
- package/core/providers/FocusProvider.js +35 -18
- package/core/styles/focusRing.css +66 -66
- package/core/styles/focusRing.sty.js +2 -2
- package/core/styles/useFocusRing.d.ts +3 -3
- package/core/types/polymorph.d.ts +1 -1
- 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 +2 -2
- package/core/utils/_is-string-children.js +2 -12
- package/core/utils/can-receive-default-text-format.d.ts +9 -0
- package/core/utils/can-receive-default-text-format.js +31 -0
- package/core/utils/colorUtils.css +60 -60
- package/core/utils/colorUtils.sty.js +2 -2
- package/core/utils/get-inert-value.d.ts +8 -0
- package/core/utils/get-inert-value.js +31 -0
- package/esm/buttons/button/Button.css +16 -16
- package/esm/buttons/button/Button.js +49 -35
- package/esm/buttons/button/Button.js.map +2 -2
- package/esm/buttons/button/Button.sty.js +4 -4
- package/esm/buttons/button/Button.sty.js.map +1 -1
- package/esm/buttons/button/Label.js +8 -7
- package/esm/buttons/button/Label.js.map +2 -2
- package/esm/buttons/button/Prefix.js +6 -5
- package/esm/buttons/button/Prefix.js.map +2 -2
- package/esm/buttons/button/Suffix.js +6 -5
- package/esm/buttons/button/Suffix.js.map +2 -2
- package/esm/buttons/intent-button/IntentButton.js +16 -11
- package/esm/buttons/intent-button/IntentButton.js.map +2 -2
- package/esm/buttons/intent-button/useIntentButton.js +4 -1
- package/esm/buttons/intent-button/useIntentButton.js.map +2 -2
- package/esm/content/progress/ProgressBar.css +71 -71
- package/esm/content/progress/ProgressBar.js +53 -41
- package/esm/content/progress/ProgressBar.js.map +2 -2
- package/esm/content/progress/ProgressBar.sty.js +5 -5
- package/esm/content/progress/ProgressBar.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarIcon.css +2 -2
- package/esm/content/progress/ProgressBarIcon.js +6 -5
- package/esm/content/progress/ProgressBarIcon.js.map +2 -2
- package/esm/content/progress/ProgressBarIcon.sty.js +1 -1
- package/esm/content/progress/ProgressBarIcon.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarLabel.css +3 -3
- package/esm/content/progress/ProgressBarLabel.js +8 -7
- package/esm/content/progress/ProgressBarLabel.js.map +2 -2
- package/esm/content/progress/ProgressBarLabel.sty.js +1 -1
- package/esm/content/progress/ProgressBarLabel.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarValue.css +5 -5
- package/esm/content/progress/ProgressBarValue.js +8 -7
- package/esm/content/progress/ProgressBarValue.js.map +2 -2
- package/esm/content/progress/ProgressBarValue.sty.js +1 -1
- package/esm/content/progress/ProgressBarValue.sty.js.map +1 -1
- package/esm/content/progress/ProgressCircle.css +40 -40
- package/esm/content/progress/ProgressCircle.js +60 -55
- package/esm/content/progress/ProgressCircle.js.map +2 -2
- package/esm/content/progress/ProgressCircle.sty.js +5 -5
- package/esm/content/progress/ProgressCircle.sty.js.map +1 -1
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js +2 -2
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js.map +2 -2
- package/esm/content/skeleton/Skeleton.css +6 -6
- package/esm/content/skeleton/Skeleton.js +6 -5
- package/esm/content/skeleton/Skeleton.js.map +2 -2
- package/esm/content/skeleton/Skeleton.sty.js +1 -1
- package/esm/content/skeleton/Skeleton.sty.js.map +1 -1
- package/esm/content/skeleton/SkeletonText.js +9 -8
- package/esm/content/skeleton/SkeletonText.js.map +2 -2
- package/esm/core/components/app-root/AppRoot.js +15 -14
- package/esm/core/components/app-root/AppRoot.js.map +2 -2
- package/esm/core/components/focus-scope/FocusScope.js +7 -6
- package/esm/core/components/focus-scope/FocusScope.js.map +2 -2
- package/esm/core/contexts/FocusContext.js +2 -1
- package/esm/core/contexts/FocusContext.js.map +2 -2
- package/esm/core/hooks/useFontsUpdated.js +1 -1
- package/esm/core/hooks/useFontsUpdated.js.map +2 -2
- package/esm/core/hooks/useMergeRefs.js +3 -1
- package/esm/core/hooks/useMergeRefs.js.map +2 -2
- package/esm/core/index.js +3 -1
- package/esm/core/index.js.map +2 -2
- package/esm/core/providers/FocusProvider.js +35 -8
- package/esm/core/providers/FocusProvider.js.map +2 -2
- package/esm/core/styles/focusRing.css +66 -66
- package/esm/core/styles/focusRing.sty.js +2 -2
- package/esm/core/styles/focusRing.sty.js.map +1 -1
- package/esm/core/styles/useFocusRing.js.map +1 -1
- package/esm/core/utils/_is-string-children.js +2 -2
- package/esm/core/utils/_is-string-children.js.map +2 -2
- package/esm/core/utils/can-receive-default-text-format.js +15 -0
- package/esm/core/utils/can-receive-default-text-format.js.map +7 -0
- package/esm/core/utils/colorUtils.css +60 -60
- package/esm/core/utils/colorUtils.sty.js +2 -2
- package/esm/core/utils/colorUtils.sty.js.map +1 -1
- package/esm/core/utils/get-inert-value.js +12 -0
- package/esm/core/utils/get-inert-value.js.map +7 -0
- package/esm/layouts/container/Container.css +4 -4
- package/esm/layouts/container/Container.js +7 -6
- package/esm/layouts/container/Container.js.map +2 -2
- package/esm/layouts/container/Container.sty.js +1 -1
- package/esm/layouts/container/Container.sty.js.map +1 -1
- package/esm/layouts/divider/Divider.css +6 -6
- package/esm/layouts/divider/Divider.js +3 -2
- package/esm/layouts/divider/Divider.js.map +2 -2
- package/esm/layouts/divider/Divider.sty.js +1 -1
- package/esm/layouts/divider/Divider.sty.js.map +1 -1
- package/esm/layouts/flex/Flex.js +6 -5
- package/esm/layouts/flex/Flex.js.map +2 -2
- package/esm/layouts/grid/Grid.js +6 -5
- package/esm/layouts/grid/Grid.js.map +2 -2
- package/esm/layouts/surface/Surface.css +39 -39
- package/esm/layouts/surface/Surface.js +17 -14
- package/esm/layouts/surface/Surface.js.map +2 -2
- package/esm/layouts/surface/Surface.sty.js +2 -2
- package/esm/layouts/surface/Surface.sty.js.map +1 -1
- package/esm/layouts/surface/variables.sty.js +1 -1
- package/esm/layouts/surface/variables.sty.js.map +1 -1
- package/esm/styles/colorUtils.css +60 -60
- package/esm/styles/colorUtils.sty.js +2 -2
- package/esm/styles/colorUtils.sty.js.map +1 -1
- package/esm/styles/container.css +47 -47
- package/esm/styles/container.sty.js +2 -2
- package/esm/styles/container.sty.js.map +1 -1
- package/esm/styles/ellipsis.css +1 -1
- package/esm/styles/ellipsis.sty.js +1 -1
- package/esm/styles/ellipsis.sty.js.map +1 -1
- package/esm/styles/field.css +153 -153
- package/esm/styles/field.sty.js +2 -2
- package/esm/styles/field.sty.js.map +1 -1
- package/esm/styles/getFlexStyles.js.map +1 -1
- package/esm/styles/getGridStyles.js.map +1 -1
- package/esm/styles/getLayoutSizeStyles.js.map +1 -1
- package/esm/styles/sprinkles.css +262 -262
- package/esm/styles/sprinkles.sty.js +1 -1
- package/esm/styles/sprinkles.sty.js.map +1 -1
- package/esm/styles/textStyle.css +8 -8
- package/esm/styles/textStyle.sty.js +1 -1
- package/esm/styles/textStyle.sty.js.map +1 -1
- package/esm/typography/block-quote/Blockquote.css +2 -2
- package/esm/typography/block-quote/Blockquote.js +6 -5
- package/esm/typography/block-quote/Blockquote.js.map +2 -2
- package/esm/typography/block-quote/Blockquote.sty.js +1 -1
- package/esm/typography/block-quote/Blockquote.sty.js.map +1 -1
- package/esm/typography/code/Code.css +1 -1
- package/esm/typography/code/Code.js +6 -5
- package/esm/typography/code/Code.js.map +2 -2
- package/esm/typography/code/Code.sty.js +1 -1
- package/esm/typography/code/Code.sty.js.map +1 -1
- package/esm/typography/emphasis/Emphasis.css +1 -1
- package/esm/typography/emphasis/Emphasis.js +6 -5
- package/esm/typography/emphasis/Emphasis.js.map +2 -2
- package/esm/typography/emphasis/Emphasis.sty.js +1 -1
- package/esm/typography/emphasis/Emphasis.sty.js.map +1 -1
- package/esm/typography/external-link/ExternalLink.css +6 -6
- package/esm/typography/external-link/ExternalLink.js +22 -16
- package/esm/typography/external-link/ExternalLink.js.map +2 -2
- package/esm/typography/external-link/ExternalLink.sty.js +1 -1
- package/esm/typography/external-link/ExternalLink.sty.js.map +1 -1
- package/esm/typography/heading/Heading.css +7 -7
- package/esm/typography/heading/Heading.js +6 -5
- package/esm/typography/heading/Heading.js.map +2 -2
- package/esm/typography/heading/Heading.sty.js +1 -1
- package/esm/typography/heading/Heading.sty.js.map +1 -1
- package/esm/typography/highlight/Highlight.css +1 -1
- package/esm/typography/highlight/Highlight.js +31 -18
- package/esm/typography/highlight/Highlight.js.map +3 -3
- package/esm/typography/highlight/Highlight.sty.js +1 -1
- package/esm/typography/highlight/Highlight.sty.js.map +1 -1
- package/esm/typography/link/Link.css +4 -4
- package/esm/typography/link/Link.js +6 -5
- package/esm/typography/link/Link.js.map +2 -2
- package/esm/typography/link/Link.sty.js +1 -1
- package/esm/typography/link/Link.sty.js.map +1 -1
- package/esm/typography/list/List.css +4 -4
- package/esm/typography/list/List.js +14 -9
- package/esm/typography/list/List.js.map +2 -2
- package/esm/typography/list/List.sty.js +2 -2
- package/esm/typography/list/List.sty.js.map +1 -1
- package/esm/typography/paragraph/Paragraph.css +3 -3
- package/esm/typography/paragraph/Paragraph.js +6 -5
- package/esm/typography/paragraph/Paragraph.js.map +2 -2
- package/esm/typography/paragraph/Paragraph.sty.js +1 -1
- package/esm/typography/paragraph/Paragraph.sty.js.map +1 -1
- package/esm/typography/strikethrough/Strikethrough.css +1 -1
- package/esm/typography/strikethrough/Strikethrough.js +6 -5
- package/esm/typography/strikethrough/Strikethrough.js.map +2 -2
- package/esm/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/esm/typography/strikethrough/Strikethrough.sty.js.map +1 -1
- package/esm/typography/strong/Strong.css +1 -1
- package/esm/typography/strong/Strong.js +6 -5
- package/esm/typography/strong/Strong.js.map +2 -2
- package/esm/typography/strong/Strong.sty.js +1 -1
- package/esm/typography/strong/Strong.sty.js.map +1 -1
- package/esm/typography/text/Text.css +3 -3
- package/esm/typography/text/Text.js +6 -5
- package/esm/typography/text/Text.js.map +2 -2
- package/esm/typography/text/Text.sty.js +1 -1
- package/esm/typography/text/Text.sty.js.map +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.css +6 -6
- package/esm/typography/text-ellipsis/TextEllipsis.js +12 -11
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +1 -1
- package/layouts/container/Container.css +4 -4
- package/layouts/container/Container.js +7 -6
- package/layouts/container/Container.sty.js +1 -1
- package/layouts/divider/Divider.css +6 -6
- package/layouts/divider/Divider.d.ts +1 -2
- package/layouts/divider/Divider.js +3 -2
- package/layouts/divider/Divider.sty.js +1 -1
- package/layouts/flex/Flex.js +6 -5
- package/layouts/grid/Grid.d.ts +1 -1
- package/layouts/grid/Grid.js +6 -5
- package/layouts/surface/Surface.css +39 -39
- package/layouts/surface/Surface.js +17 -14
- package/layouts/surface/Surface.sty.js +2 -2
- package/layouts/surface/variables.sty.js +1 -1
- package/layouts/types/layout.types.d.ts +1 -1
- package/package.json +2 -2
- package/styles/colorUtils.css +60 -60
- package/styles/colorUtils.sty.js +2 -2
- package/styles/container.css +47 -47
- package/styles/container.sty.js +2 -2
- package/styles/ellipsis.css +1 -1
- package/styles/ellipsis.sty.js +1 -1
- package/styles/field.css +153 -153
- package/styles/field.sty.js +2 -2
- package/styles/getFlexStyles.d.ts +17 -17
- package/styles/getGridStyles.d.ts +22 -22
- package/styles/getLayoutSizeStyles.d.ts +1 -1
- package/styles/sprinkles.css +262 -262
- package/styles/sprinkles.sty.js +1 -1
- package/styles/textStyle.css +8 -8
- package/styles/textStyle.sty.js +1 -1
- package/typography/block-quote/Blockquote.css +2 -2
- package/typography/block-quote/Blockquote.d.ts +1 -2
- package/typography/block-quote/Blockquote.js +6 -5
- package/typography/block-quote/Blockquote.sty.js +1 -1
- package/typography/code/Code.css +1 -1
- package/typography/code/Code.d.ts +1 -2
- package/typography/code/Code.js +6 -5
- package/typography/code/Code.sty.js +1 -1
- package/typography/emphasis/Emphasis.css +1 -1
- package/typography/emphasis/Emphasis.d.ts +1 -2
- package/typography/emphasis/Emphasis.js +6 -5
- package/typography/emphasis/Emphasis.sty.js +1 -1
- package/typography/external-link/ExternalLink.css +6 -6
- package/typography/external-link/ExternalLink.d.ts +2 -2
- package/typography/external-link/ExternalLink.js +22 -16
- package/typography/external-link/ExternalLink.sty.js +1 -1
- package/typography/heading/Heading.css +7 -7
- package/typography/heading/Heading.d.ts +1 -2
- package/typography/heading/Heading.js +6 -5
- package/typography/heading/Heading.sty.js +1 -1
- package/typography/highlight/Highlight.css +1 -1
- package/typography/highlight/Highlight.d.ts +1 -1
- package/typography/highlight/Highlight.js +21 -17
- package/typography/highlight/Highlight.sty.js +1 -1
- package/typography/link/Link.css +4 -4
- package/typography/link/Link.d.ts +1 -1
- package/typography/link/Link.js +6 -5
- package/typography/link/Link.sty.js +1 -1
- package/typography/list/List.css +4 -4
- package/typography/list/List.d.ts +1 -2
- package/typography/list/List.js +10 -9
- package/typography/list/List.sty.js +2 -2
- package/typography/paragraph/Paragraph.css +3 -3
- package/typography/paragraph/Paragraph.d.ts +1 -2
- package/typography/paragraph/Paragraph.js +6 -5
- package/typography/paragraph/Paragraph.sty.js +1 -1
- package/typography/strikethrough/Strikethrough.css +1 -1
- package/typography/strikethrough/Strikethrough.d.ts +1 -2
- package/typography/strikethrough/Strikethrough.js +6 -5
- package/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/typography/strong/Strong.css +1 -1
- package/typography/strong/Strong.d.ts +1 -2
- package/typography/strong/Strong.js +6 -5
- package/typography/strong/Strong.sty.js +1 -1
- package/typography/text/Text.css +3 -3
- package/typography/text/Text.js +6 -5
- package/typography/text/Text.sty.js +1 -1
- package/typography/text-ellipsis/TextEllipsis.css +6 -6
- package/typography/text-ellipsis/TextEllipsis.d.ts +2 -2
- package/typography/text-ellipsis/TextEllipsis.js +12 -11
- package/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/divider/Divider.tsx"],
|
|
4
|
-
"sourcesContent": ["import clsx from 'clsx';\nimport
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport { 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": "AAkEI;AAlEJ,OAAO,UAAU;AACjB,SAAS,kBAAkB;AAE3B,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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../core/utils/colorUtils.css";
|
|
2
2
|
import "./Divider.css";
|
|
3
3
|
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
|
-
var dividerCSS = _7a468({ defaultClassName: "_1thxv8m0-1-
|
|
4
|
+
var dividerCSS = _7a468({ defaultClassName: "_1thxv8m0-1-6-2", variantClassNames: { orientation: { horizontal: "_1thxv8m1-1-6-2", vertical: "_1thxv8m2-1-6-2" }, flexItem: { true: "_1thxv8m3-1-6-2", false: "_1thxv8m4-1-6-2" } }, defaultVariants: {}, compoundVariants: [[{ orientation: "horizontal", flexItem: false }, "_1thxv8m5-1-6-2"], [{ orientation: "vertical", flexItem: true }, "_1thxv8m6-1-6-2"]] });
|
|
5
5
|
export {
|
|
6
6
|
dividerCSS
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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:'_1thxv8m0-1-
|
|
4
|
+
"sourcesContent": ["import '../../core/utils/colorUtils.css';\nimport './Divider.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var dividerCSS = _7a468({defaultClassName:'_1thxv8m0-1-6-2',variantClassNames:{orientation:{horizontal:'_1thxv8m1-1-6-2',vertical:'_1thxv8m2-1-6-2'},flexItem:{true:'_1thxv8m3-1-6-2',false:'_1thxv8m4-1-6-2'}},defaultVariants:{},compoundVariants:[[{orientation:'horizontal',flexItem:false},'_1thxv8m5-1-6-2'],[{orientation:'vertical',flexItem:true},'_1thxv8m6-1-6-2']]});"],
|
|
5
5
|
"mappings": "AAAA,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,aAAa,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,aAAY,EAAC,YAAW,mBAAkB,UAAS,kBAAiB,GAAE,UAAS,EAAC,MAAK,mBAAkB,OAAM,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,aAAY,cAAa,UAAS,MAAK,GAAE,iBAAiB,GAAE,CAAC,EAAC,aAAY,YAAW,UAAS,KAAI,GAAE,iBAAiB,CAAC,EAAC,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/esm/layouts/flex/Flex.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
1
2
|
import clsx from "clsx";
|
|
2
|
-
import
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import {
|
|
4
5
|
getFlexStyles
|
|
5
6
|
} from "../../styles/getFlexStyles.js";
|
|
@@ -21,7 +22,7 @@ const Flex = /* @__PURE__ */ forwardRef(
|
|
|
21
22
|
{ gap: 8 }
|
|
22
23
|
);
|
|
23
24
|
const Component = as ?? "div";
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ jsx(
|
|
25
26
|
Component,
|
|
26
27
|
{
|
|
27
28
|
ref: forwardedRef,
|
|
@@ -34,9 +35,9 @@ const Flex = /* @__PURE__ */ forwardRef(
|
|
|
34
35
|
...flexStyles,
|
|
35
36
|
...consumerStyle
|
|
36
37
|
},
|
|
37
|
-
...nonFlexStyleProps
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
...nonFlexStyleProps,
|
|
39
|
+
children
|
|
40
|
+
}
|
|
40
41
|
);
|
|
41
42
|
}
|
|
42
43
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/flex/Flex.tsx"],
|
|
4
|
-
"sourcesContent": ["import clsx from 'clsx';\nimport
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport { 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": "AAgEM;AAhEN,OAAO,UAAU;AACjB,SAA8C,kBAAkB;AAOhE;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,QAEH;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/esm/layouts/grid/Grid.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
1
2
|
import clsx from "clsx";
|
|
2
|
-
import
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import {
|
|
4
5
|
getGridStyles
|
|
5
6
|
} from "../../styles/getGridStyles.js";
|
|
@@ -21,7 +22,7 @@ const Grid = /* @__PURE__ */ forwardRef(
|
|
|
21
22
|
{ gap: 8 }
|
|
22
23
|
);
|
|
23
24
|
const Component = as ?? "div";
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ jsx(
|
|
25
26
|
Component,
|
|
26
27
|
{
|
|
27
28
|
ref: forwardedRef,
|
|
@@ -34,9 +35,9 @@ const Grid = /* @__PURE__ */ forwardRef(
|
|
|
34
35
|
...gridStyles,
|
|
35
36
|
...consumerStyle
|
|
36
37
|
},
|
|
37
|
-
...nonGridStyleProps
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
...nonGridStyleProps,
|
|
39
|
+
children
|
|
40
|
+
}
|
|
40
41
|
);
|
|
41
42
|
}
|
|
42
43
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/grid/Grid.tsx"],
|
|
4
|
-
"sourcesContent": ["import clsx from 'clsx';\nimport
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport { 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 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": "AAgEM;AAhEN,OAAO,UAAU;AACjB,SAA8C,kBAAkB;AAOhE;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,QAEH;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
._1qto6jt6-1-
|
|
2
|
-
--_1igzksy0-1-
|
|
1
|
+
._1qto6jt6-1-6-2 {
|
|
2
|
+
--_1igzksy0-1-6-2: var(--dt-borders-radius-surface-default, 16px);
|
|
3
3
|
color: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
4
4
|
text-align: left;
|
|
5
5
|
border: none;
|
|
6
6
|
outline: none;
|
|
7
7
|
position: relative;
|
|
8
8
|
background-color: var(--dt-colors-background-surface-default, #fcfcfd);
|
|
9
|
-
border-radius: var(--_1igzksy0-1-
|
|
9
|
+
border-radius: var(--_1igzksy0-1-6-2);
|
|
10
10
|
}
|
|
11
|
-
._1qto6jt6-1-
|
|
11
|
+
._1qto6jt6-1-6-2::before, ._1qto6jt6-1-6-2::after {
|
|
12
12
|
content: "";
|
|
13
13
|
width: 100%;
|
|
14
14
|
height: 100%;
|
|
15
15
|
position: absolute;
|
|
16
16
|
left: 0;
|
|
17
17
|
top: 0;
|
|
18
|
-
border-radius: var(--_1igzksy0-1-
|
|
18
|
+
border-radius: var(--_1igzksy0-1-6-2);
|
|
19
19
|
pointer-events: none;
|
|
20
20
|
}
|
|
21
|
-
._1qto6jt6-1-
|
|
21
|
+
._1qto6jt6-1-6-2::after {
|
|
22
22
|
outline-offset: 2px;
|
|
23
|
-
outline: 2px solid var(--_17bwkb02-1-
|
|
24
|
-
opacity: var(--_1qto6jt4-1-
|
|
25
|
-
transition: var(--_1qto6jt5-1-
|
|
23
|
+
outline: 2px solid var(--_17bwkb02-1-6-2);
|
|
24
|
+
opacity: var(--_1qto6jt4-1-6-2);
|
|
25
|
+
transition: var(--_1qto6jt5-1-6-2);
|
|
26
26
|
}
|
|
27
|
-
._1qto6jt7-1-
|
|
28
|
-
--_1qto6jt4-1-
|
|
29
|
-
--_1qto6jt5-1-
|
|
27
|
+
._1qto6jt7-1-6-2 {
|
|
28
|
+
--_1qto6jt4-1-6-2: 1;
|
|
29
|
+
--_1qto6jt5-1-6-2: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
|
|
30
30
|
}
|
|
31
|
-
._1qto6jt8-1-
|
|
32
|
-
--_1qto6jt4-1-
|
|
33
|
-
--_1qto6jt5-1-
|
|
31
|
+
._1qto6jt8-1-6-2 {
|
|
32
|
+
--_1qto6jt4-1-6-2: 0;
|
|
33
|
+
--_1qto6jt5-1-6-2: var(--dt-animations-fade-out-easing, cubic-bezier(0, 0, 0.2, 1)) var(--dt-animations-fade-out-duration-fast, 150ms);
|
|
34
34
|
}
|
|
35
|
-
._1qto6jt9-1-
|
|
36
|
-
--_1qto6jt1-1-
|
|
37
|
-
--_1qto6jt2-1-
|
|
38
|
-
--_1qto6jt3-1-
|
|
35
|
+
._1qto6jt9-1-6-2 {
|
|
36
|
+
--_1qto6jt1-1-6-2: 0;
|
|
37
|
+
--_1qto6jt2-1-6-2: pointer;
|
|
38
|
+
--_1qto6jt3-1-6-2: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
39
39
|
width: 100%;
|
|
40
40
|
height: 100%;
|
|
41
41
|
position: absolute;
|
|
42
42
|
left: 0;
|
|
43
43
|
top: 0;
|
|
44
|
-
border-radius: var(--_1igzksy0-1-
|
|
44
|
+
border-radius: var(--_1igzksy0-1-6-2);
|
|
45
45
|
pointer-events: none;
|
|
46
46
|
}
|
|
47
|
-
._1qto6jt9-1-
|
|
47
|
+
._1qto6jt9-1-6-2::after,._1qto6jt9-1-6-2::before {
|
|
48
48
|
content: "";
|
|
49
49
|
width: 100%;
|
|
50
50
|
height: 100%;
|
|
51
51
|
position: absolute;
|
|
52
52
|
left: 0;
|
|
53
53
|
top: 0;
|
|
54
|
-
border-radius: var(--_1igzksy0-1-
|
|
54
|
+
border-radius: var(--_1igzksy0-1-6-2);
|
|
55
55
|
pointer-events: none;
|
|
56
56
|
transition: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
|
|
57
57
|
}
|
|
58
|
-
._1qto6jt9-1-
|
|
59
|
-
box-shadow: var(--_1qto6jt0-1-
|
|
60
|
-
opacity: var(--_1qto6jt1-1-
|
|
58
|
+
._1qto6jt9-1-6-2::after {
|
|
59
|
+
box-shadow: var(--_1qto6jt0-1-6-2);
|
|
60
|
+
opacity: var(--_1qto6jt1-1-6-2);
|
|
61
61
|
}
|
|
62
|
-
._1qto6jt9-1-
|
|
63
|
-
box-shadow: var(--_1qto6jt3-1-
|
|
62
|
+
._1qto6jt9-1-6-2::before {
|
|
63
|
+
box-shadow: var(--_1qto6jt3-1-6-2);
|
|
64
64
|
opacity: 0;
|
|
65
65
|
}
|
|
66
|
-
._1qto6jta-1-
|
|
67
|
-
--_1qto6jt0-1-
|
|
68
|
-
--_1qto6jt3-1-
|
|
66
|
+
._1qto6jta-1-6-2 {
|
|
67
|
+
--_1qto6jt0-1-6-2: var(--dt-box-shadows-surface-flat-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
68
|
+
--_1qto6jt3-1-6-2: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
69
69
|
box-shadow: var(--dt-box-shadows-surface-flat-rest, none);
|
|
70
70
|
}
|
|
71
|
-
._1qto6jtb-1-
|
|
72
|
-
--_1qto6jt0-1-
|
|
73
|
-
--_1qto6jt3-1-
|
|
71
|
+
._1qto6jtb-1-6-2 {
|
|
72
|
+
--_1qto6jt0-1-6-2: var(--dt-box-shadows-surface-raised-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
73
|
+
--_1qto6jt3-1-6-2: var(--dt-box-shadows-surface-raised-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
|
|
74
74
|
box-shadow: var(--dt-box-shadows-surface-raised-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
75
75
|
}
|
|
76
|
-
._1qto6jtc-1-
|
|
77
|
-
--_1qto6jt0-1-
|
|
78
|
-
--_1qto6jt3-1-
|
|
76
|
+
._1qto6jtc-1-6-2 {
|
|
77
|
+
--_1qto6jt0-1-6-2: var(--dt-box-shadows-surface-floating-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
78
|
+
--_1qto6jt3-1-6-2: var(--dt-box-shadows-surface-floating-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 6px 14px -2px #2d2e4e3d);
|
|
79
79
|
box-shadow: var(--dt-box-shadows-surface-floating-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
|
|
80
80
|
}
|
|
81
|
-
._1qto6jtd-1-
|
|
82
|
-
--_1qto6jt1-1-
|
|
83
|
-
--_1qto6jt2-1-
|
|
81
|
+
._1qto6jtd-1-6-2 {
|
|
82
|
+
--_1qto6jt1-1-6-2: 1;
|
|
83
|
+
--_1qto6jt2-1-6-2: grab;
|
|
84
84
|
}
|
|
85
85
|
button.strato-surface:not(:disabled), a.strato-surface:not(:disabled) {
|
|
86
86
|
cursor: pointer;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
2
|
import clsx from "clsx";
|
|
2
|
-
import
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import * as styles from "./Surface.sty.js";
|
|
4
5
|
import { useAriaLabelingProps } from "../../core/hooks/useAriaLabelingProps.js";
|
|
5
6
|
import { useFocusRing } from "../../core/styles/useFocusRing.js";
|
|
@@ -45,7 +46,7 @@ const Surface = /* @__PURE__ */ forwardRef(
|
|
|
45
46
|
)
|
|
46
47
|
};
|
|
47
48
|
const Component = as ?? "div";
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ jsxs(
|
|
49
50
|
Component,
|
|
50
51
|
{
|
|
51
52
|
...surfaceMergedProps,
|
|
@@ -62,19 +63,21 @@ const Surface = /* @__PURE__ */ forwardRef(
|
|
|
62
63
|
getSpacingSprinkles(remainingProps, { padding: 24 }),
|
|
63
64
|
textStyleCSS({ textStyle: "base" })
|
|
64
65
|
),
|
|
65
|
-
style: { ...layoutSizeStyles, ...consumerStyle }
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
66
|
+
style: { ...layoutSizeStyles, ...consumerStyle },
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ jsx(
|
|
69
|
+
"div",
|
|
70
|
+
{
|
|
71
|
+
className: clsx(
|
|
72
|
+
"surface-background",
|
|
73
|
+
styles.pseudoElement({ elevation, dragged })
|
|
74
|
+
),
|
|
75
|
+
"aria-hidden": true
|
|
76
|
+
}
|
|
73
77
|
),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
children
|
|
78
|
+
children
|
|
79
|
+
]
|
|
80
|
+
}
|
|
78
81
|
);
|
|
79
82
|
}
|
|
80
83
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/surface/Surface.tsx"],
|
|
4
|
-
"sourcesContent": ["import clsx from 'clsx';\nimport
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport { type ElementType, type ReactElement, forwardRef } from 'react';\n\nimport * as styles from './Surface.sty.js';\nimport { useAriaLabelingProps } from '../../core/hooks/useAriaLabelingProps.js';\nimport { useFocusRing } from '../../core/styles/useFocusRing.js';\nimport type { AriaLabelingProps } from '../../core/types/a11y-props.js';\nimport type { DataTestId } from '../../core/types/data-props.js';\nimport type { DOMProps } from '../../core/types/dom.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 { mergeProps } from '../../core/utils/merge-props.js';\nimport { colorUtilsCSS } from '../../styles/colorUtils.sty.js';\nimport {\n getSpacingSprinkles,\n type SpacingProps,\n} from '../../styles/getSpacingSprinkles.js';\nimport { textStyleCSS } from '../../styles/textStyle.sty.js';\nimport { useLayoutStyles } from '../hooks/useLayoutStyles.js';\nimport type { LayoutSizeCSS } from '../types/layout.types.js';\n\n//#region Typings\n\n/**\n * Accepted properties for Surface\n * @public\n */\nexport interface SurfaceOwnProps\n extends AriaLabelingProps,\n SpacingProps,\n LayoutSizeCSS,\n DOMProps,\n WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {\n /**\n * Color of the border when the surface has focus or is selected.\n * @defaultValue 'neutral'\n */\n color?: 'neutral' | 'primary' | 'success' | 'critical' | 'warning';\n /**\n * Defines if the surface is selected and should indicate that state with a border.\n * @defaultValue false\n */\n selected?: boolean;\n /**\n * Indicates if the surface is currently dragged and then applies the corresponding styles.\n * @defaultValue false\n */\n dragged?: boolean;\n /**\n * Defines the surface's elevation to the background.\n * @defaultValue 'flat'\n */\n elevation?: 'flat' | 'raised' | 'floating';\n}\n\n/**\n * Merge own props with others inherited from the underlying element type\n * @public\n */\nexport type SurfaceProps<E extends ElementType> = PolymorphicComponentProps<\n E,\n SurfaceOwnProps\n>;\n//#endregion\n\n/**\n * The Surface component is used to structure content on a page.\n * @public\n */\nexport const Surface: <E extends ElementType = 'div'>(\n props: SurfaceProps<E>,\n) => ReactElement | null = /* @__PURE__ */ forwardRef(\n <E extends ElementType>(\n props: SurfaceProps<E>,\n forwardedRef: typeof props.ref,\n ) => {\n const {\n elevation = 'flat',\n dragged = false,\n selected = false,\n color = 'neutral',\n children,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n as,\n ...remainingProps\n }: SurfaceProps<E> = props;\n\n const ariaLabelingProps = useAriaLabelingProps(remainingProps);\n\n const { layoutSizeStyles, remainingProps: surfaceProps } = useLayoutStyles(\n remainingProps,\n { paddingDefaults: { padding: 24 } },\n );\n\n const { focusProps, focusClassName } = useFocusRing({\n variant: color,\n });\n\n const surfaceMergedProps = {\n ...mergeProps(\n // Need to cast this one as the inference of mergeProps would generate\n // a not allowed overlap. The remainingProps type is too complex due to the\n // polymorphic inheritance.\n surfaceProps as Record<string, unknown>,\n focusProps,\n ariaLabelingProps,\n ),\n };\n\n const Component = as ?? 'div';\n\n return (\n <Component\n {...surfaceMergedProps}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n ref={forwardedRef}\n className={clsx(\n 'strato-surface',\n colorUtilsCSS({ color, variant: selected ? 'accent' : 'default' }),\n styles.surface({ selected }),\n focusClassName,\n consumerClassName,\n getSpacingSprinkles(remainingProps, { padding: 24 }),\n textStyleCSS({ textStyle: 'base' }),\n )}\n style={{ ...layoutSizeStyles, ...consumerStyle }}\n >\n <div\n className={clsx(\n 'surface-background',\n styles.pseudoElement({ elevation, dragged }),\n )}\n aria-hidden={true}\n />\n {children}\n </Component>\n );\n },\n);\n"],
|
|
5
|
+
"mappings": "AAyHM,SAiBE,KAjBF;AAzHN,OAAO,UAAU;AACjB,SAA8C,kBAAkB;AAEhE,YAAY,YAAY;AACxB,SAAS,4BAA4B;AACrC,SAAS,oBAAoB;AAQ7B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,OAEK;AACP,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAsDzB,MAAM,UAE8B;AAAA,EACzC,CACE,OACA,iBACG;AACH,UAAM;AAAA,MACJ,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,WAAW;AAAA,MACX,QAAQ;AAAA,MACR;AAAA,MACA,WAAW;AAAA,MACX,OAAO;AAAA,MACP,eAAe;AAAA,MACf,mBAAmB;AAAA,MACnB,oBAAoB;AAAA,MACpB;AAAA,MACA,GAAG;AAAA,IACL,IAAqB;AAErB,UAAM,oBAAoB,qBAAqB,cAAc;AAE7D,UAAM,EAAE,kBAAkB,gBAAgB,aAAa,IAAI;AAAA,MACzD;AAAA,MACA,EAAE,iBAAiB,EAAE,SAAS,GAAG,EAAE;AAAA,IACrC;AAEA,UAAM,EAAE,YAAY,eAAe,IAAI,aAAa;AAAA,MAClD,SAAS;AAAA,IACX,CAAC;AAED,UAAM,qBAAqB;AAAA,MACzB,GAAG;AAAA;AAAA;AAAA;AAAA,QAID;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAEA,UAAM,YAAY,MAAM;AAExB,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QAClB,KAAK;AAAA,QACL,WAAW;AAAA,UACT;AAAA,UACA,cAAc,EAAE,OAAO,SAAS,WAAW,WAAW,UAAU,CAAC;AAAA,UACjE,OAAO,QAAQ,EAAE,SAAS,CAAC;AAAA,UAC3B;AAAA,UACA;AAAA,UACA,oBAAoB,gBAAgB,EAAE,SAAS,GAAG,CAAC;AAAA,UACnD,aAAa,EAAE,WAAW,OAAO,CAAC;AAAA,QACpC;AAAA,QACA,OAAO,EAAE,GAAG,kBAAkB,GAAG,cAAc;AAAA,QAE/C;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT;AAAA,gBACA,OAAO,cAAc,EAAE,WAAW,QAAQ,CAAC;AAAA,cAC7C;AAAA,cACA,eAAa;AAAA;AAAA,UACf;AAAA,UACC;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../styles/colorUtils.css";
|
|
2
2
|
import "./Surface.css";
|
|
3
3
|
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
|
-
var pseudoElement = _7a468({ defaultClassName: "_1qto6jt9-1-
|
|
5
|
-
var surface = _7a468({ defaultClassName: "_1qto6jt6-1-
|
|
4
|
+
var pseudoElement = _7a468({ defaultClassName: "_1qto6jt9-1-6-2", variantClassNames: { elevation: { flat: "_1qto6jta-1-6-2", raised: "_1qto6jtb-1-6-2", floating: "_1qto6jtc-1-6-2" }, dragged: { true: "_1qto6jtd-1-6-2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5
|
+
var surface = _7a468({ defaultClassName: "_1qto6jt6-1-6-2", variantClassNames: { selected: { true: "_1qto6jt7-1-6-2", false: "_1qto6jt8-1-6-2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
6
6
|
export {
|
|
7
7
|
pseudoElement,
|
|
8
8
|
surface
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/surface/Surface.css.ts"],
|
|
4
|
-
"sourcesContent": ["import '../../styles/colorUtils.css';\nimport './Surface.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var pseudoElement = _7a468({defaultClassName:'_1qto6jt9-1-
|
|
4
|
+
"sourcesContent": ["import '../../styles/colorUtils.css';\nimport './Surface.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var pseudoElement = _7a468({defaultClassName:'_1qto6jt9-1-6-2',variantClassNames:{elevation:{flat:'_1qto6jta-1-6-2',raised:'_1qto6jtb-1-6-2',floating:'_1qto6jtc-1-6-2'},dragged:{true:'_1qto6jtd-1-6-2'}},defaultVariants:{},compoundVariants:[]});\nexport var surface = _7a468({defaultClassName:'_1qto6jt6-1-6-2',variantClassNames:{selected:{true:'_1qto6jt7-1-6-2',false:'_1qto6jt8-1-6-2'}},defaultVariants:{},compoundVariants:[]});"],
|
|
5
5
|
"mappings": "AAAA,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,gBAAgB,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,WAAU,EAAC,MAAK,mBAAkB,QAAO,mBAAkB,UAAS,kBAAiB,GAAE,SAAQ,EAAC,MAAK,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;AAClP,IAAI,UAAU,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,UAAS,EAAC,MAAK,mBAAkB,OAAM,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/surface/variables.css.ts"],
|
|
4
|
-
"sourcesContent": ["export var surfaceBorderRadius = 'var(--_1igzksy0-1-
|
|
4
|
+
"sourcesContent": ["export var surfaceBorderRadius = 'var(--_1igzksy0-1-6-2)';"],
|
|
5
5
|
"mappings": "AAAO,IAAI,sBAAsB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
._17bwkb04-1-
|
|
2
|
-
--_17bwkb00-1-
|
|
3
|
-
--_17bwkb01-1-
|
|
4
|
-
--_17bwkb02-1-
|
|
1
|
+
._17bwkb04-1-6-2 {
|
|
2
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-critical-default, #b80031);
|
|
3
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-critical-default, #b80031);
|
|
4
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
5
5
|
}
|
|
6
|
-
._17bwkb05-1-
|
|
7
|
-
--_17bwkb00-1-
|
|
8
|
-
--_17bwkb01-1-
|
|
9
|
-
--_17bwkb02-1-
|
|
6
|
+
._17bwkb05-1-6-2 {
|
|
7
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
8
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-neutral-default, #2b2a58);
|
|
9
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
10
10
|
}
|
|
11
|
-
._17bwkb06-1-
|
|
12
|
-
--_17bwkb00-1-
|
|
13
|
-
--_17bwkb01-1-
|
|
14
|
-
--_17bwkb02-1-
|
|
11
|
+
._17bwkb06-1-6-2 {
|
|
12
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-primary-default, #454cc9);
|
|
13
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-primary-default, #454cc9);
|
|
14
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
15
15
|
}
|
|
16
|
-
._17bwkb07-1-
|
|
17
|
-
--_17bwkb00-1-
|
|
18
|
-
--_17bwkb01-1-
|
|
19
|
-
--_17bwkb02-1-
|
|
16
|
+
._17bwkb07-1-6-2 {
|
|
17
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-success-default, #2c6360);
|
|
18
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-success-default, #2c6360);
|
|
19
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-success-default, #cad6d7);
|
|
20
20
|
}
|
|
21
|
-
._17bwkb08-1-
|
|
22
|
-
--_17bwkb00-1-
|
|
23
|
-
--_17bwkb01-1-
|
|
24
|
-
--_17bwkb02-1-
|
|
21
|
+
._17bwkb08-1-6-2 {
|
|
22
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-warning-default, #805100);
|
|
23
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-warning-default, #805100);
|
|
24
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
25
25
|
}
|
|
26
|
-
._17bwkb0d-1-
|
|
27
|
-
--_17bwkb00-1-
|
|
28
|
-
--_17bwkb01-1-
|
|
29
|
-
--_17bwkb02-1-
|
|
26
|
+
._17bwkb0d-1-6-2 {
|
|
27
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
|
|
28
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-primary-on-accent-default, #f4f4fb);
|
|
29
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-primary-accent, #454cc9);
|
|
30
30
|
}
|
|
31
|
-
._17bwkb0e-1-
|
|
32
|
-
--_17bwkb00-1-
|
|
33
|
-
--_17bwkb01-1-
|
|
34
|
-
--_17bwkb02-1-
|
|
31
|
+
._17bwkb0e-1-6-2 {
|
|
32
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
|
|
33
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-success-on-accent-default, #f1f4f4);
|
|
34
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-success-accent, #2c6360);
|
|
35
35
|
}
|
|
36
|
-
._17bwkb0f-1-
|
|
37
|
-
--_17bwkb00-1-
|
|
38
|
-
--_17bwkb01-1-
|
|
39
|
-
--_17bwkb02-1-
|
|
36
|
+
._17bwkb0f-1-6-2 {
|
|
37
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-warning-on-accent-default, #272025);
|
|
38
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-warning-on-accent-default, #272025);
|
|
39
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-warning-accent, #805100);
|
|
40
40
|
}
|
|
41
|
-
._17bwkb0g-1-
|
|
42
|
-
--_17bwkb00-1-
|
|
43
|
-
--_17bwkb01-1-
|
|
44
|
-
--_17bwkb02-1-
|
|
41
|
+
._17bwkb0g-1-6-2 {
|
|
42
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
|
|
43
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-critical-on-accent-default, #f9f1f3);
|
|
44
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-critical-accent, #b80031);
|
|
45
45
|
}
|
|
46
|
-
._17bwkb0h-1-
|
|
47
|
-
--_17bwkb00-1-
|
|
48
|
-
--_17bwkb01-1-
|
|
49
|
-
--_17bwkb02-1-
|
|
46
|
+
._17bwkb0h-1-6-2 {
|
|
47
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
48
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
|
|
49
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-neutral-accent, #545587);
|
|
50
50
|
}
|
|
51
|
-
._17bwkb0i-1-
|
|
52
|
-
--_17bwkb00-1-
|
|
53
|
-
--_17bwkb01-1-
|
|
54
|
-
--_17bwkb02-1-
|
|
51
|
+
._17bwkb0i-1-6-2 {
|
|
52
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-primary-disabled, #54558780);
|
|
53
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-primary-disabled, #54558780);
|
|
54
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-primary-disabled, #d2d3e180);
|
|
55
55
|
}
|
|
56
|
-
._17bwkb0j-1-
|
|
57
|
-
--_17bwkb00-1-
|
|
58
|
-
--_17bwkb01-1-
|
|
59
|
-
--_17bwkb02-1-
|
|
56
|
+
._17bwkb0j-1-6-2 {
|
|
57
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-success-disabled, #54558780);
|
|
58
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-success-disabled, #54558780);
|
|
59
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-success-disabled, #d2d3e180);
|
|
60
60
|
}
|
|
61
|
-
._17bwkb0k-1-
|
|
62
|
-
--_17bwkb00-1-
|
|
63
|
-
--_17bwkb01-1-
|
|
64
|
-
--_17bwkb02-1-
|
|
61
|
+
._17bwkb0k-1-6-2 {
|
|
62
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-warning-disabled, #54558780);
|
|
63
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-warning-disabled, #54558780);
|
|
64
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-warning-disabled, #d2d3e180);
|
|
65
65
|
}
|
|
66
|
-
._17bwkb0l-1-
|
|
67
|
-
--_17bwkb00-1-
|
|
68
|
-
--_17bwkb01-1-
|
|
69
|
-
--_17bwkb02-1-
|
|
66
|
+
._17bwkb0l-1-6-2 {
|
|
67
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-critical-disabled, #54558780);
|
|
68
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-critical-disabled, #54558780);
|
|
69
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-critical-disabled, #d2d3e180);
|
|
70
70
|
}
|
|
71
|
-
._17bwkb0m-1-
|
|
72
|
-
--_17bwkb00-1-
|
|
73
|
-
--_17bwkb01-1-
|
|
74
|
-
--_17bwkb02-1-
|
|
71
|
+
._17bwkb0m-1-6-2 {
|
|
72
|
+
--_17bwkb00-1-6-2: var(--dt-colors-text-neutral-disabled, #54558780);
|
|
73
|
+
--_17bwkb01-1-6-2: var(--dt-colors-icon-neutral-disabled, #54558780);
|
|
74
|
+
--_17bwkb02-1-6-2: var(--dt-colors-border-neutral-disabled, #d2d3e180);
|
|
75
75
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./colorUtils.css";
|
|
2
2
|
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
-
var colorUtilsCSS = _7a468({ defaultClassName: "_17bwkb03-1-
|
|
4
|
-
var colorUtilsVars = { text: "var(--_17bwkb00-1-
|
|
3
|
+
var colorUtilsCSS = _7a468({ defaultClassName: "_17bwkb03-1-6-2", variantClassNames: { color: { critical: "_17bwkb04-1-6-2", neutral: "_17bwkb05-1-6-2", primary: "_17bwkb06-1-6-2", success: "_17bwkb07-1-6-2", warning: "_17bwkb08-1-6-2" }, variant: { "default": "_17bwkb09-1-6-2", accent: "_17bwkb0a-1-6-2" }, disabled: { true: "_17bwkb0b-1-6-2", false: "_17bwkb0c-1-6-2" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "_17bwkb0d-1-6-2"], [{ color: "success", variant: "accent" }, "_17bwkb0e-1-6-2"], [{ color: "warning", variant: "accent" }, "_17bwkb0f-1-6-2"], [{ color: "critical", variant: "accent" }, "_17bwkb0g-1-6-2"], [{ color: "neutral", variant: "accent" }, "_17bwkb0h-1-6-2"], [{ color: "primary", disabled: true }, "_17bwkb0i-1-6-2"], [{ color: "success", disabled: true }, "_17bwkb0j-1-6-2"], [{ color: "warning", disabled: true }, "_17bwkb0k-1-6-2"], [{ color: "critical", disabled: true }, "_17bwkb0l-1-6-2"], [{ color: "neutral", disabled: true }, "_17bwkb0m-1-6-2"]] });
|
|
4
|
+
var colorUtilsVars = { text: "var(--_17bwkb00-1-6-2)", icon: "var(--_17bwkb01-1-6-2)", borderColor: "var(--_17bwkb02-1-6-2)" };
|
|
5
5
|
export {
|
|
6
6
|
colorUtilsCSS,
|
|
7
7
|
colorUtilsVars
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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:'_17bwkb03-1-
|
|
4
|
+
"sourcesContent": ["import './colorUtils.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var colorUtilsCSS = _7a468({defaultClassName:'_17bwkb03-1-6-2',variantClassNames:{color:{critical:'_17bwkb04-1-6-2',neutral:'_17bwkb05-1-6-2',primary:'_17bwkb06-1-6-2',success:'_17bwkb07-1-6-2',warning:'_17bwkb08-1-6-2'},variant:{'default':'_17bwkb09-1-6-2',accent:'_17bwkb0a-1-6-2'},disabled:{true:'_17bwkb0b-1-6-2',false:'_17bwkb0c-1-6-2'}},defaultVariants:{},compoundVariants:[[{color:'primary',variant:'accent'},'_17bwkb0d-1-6-2'],[{color:'success',variant:'accent'},'_17bwkb0e-1-6-2'],[{color:'warning',variant:'accent'},'_17bwkb0f-1-6-2'],[{color:'critical',variant:'accent'},'_17bwkb0g-1-6-2'],[{color:'neutral',variant:'accent'},'_17bwkb0h-1-6-2'],[{color:'primary',disabled:true},'_17bwkb0i-1-6-2'],[{color:'success',disabled:true},'_17bwkb0j-1-6-2'],[{color:'warning',disabled:true},'_17bwkb0k-1-6-2'],[{color:'critical',disabled:true},'_17bwkb0l-1-6-2'],[{color:'neutral',disabled:true},'_17bwkb0m-1-6-2']]});\nexport var colorUtilsVars = {text:'var(--_17bwkb00-1-6-2)',icon:'var(--_17bwkb01-1-6-2)',borderColor:'var(--_17bwkb02-1-6-2)'};"],
|
|
5
5
|
"mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,gBAAgB,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,OAAM,EAAC,UAAS,mBAAkB,SAAQ,mBAAkB,SAAQ,mBAAkB,SAAQ,mBAAkB,SAAQ,kBAAiB,GAAE,SAAQ,EAAC,WAAU,mBAAkB,QAAO,kBAAiB,GAAE,UAAS,EAAC,MAAK,mBAAkB,OAAM,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,YAAW,SAAQ,SAAQ,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,YAAW,UAAS,KAAI,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,iBAAiB,CAAC,EAAC,CAAC;AACt5B,IAAI,iBAAiB,EAAC,MAAK,0BAAyB,MAAK,0BAAyB,aAAY,yBAAwB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|