@dynatrace/strato-components 0.85.100 → 0.85.120
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 +17 -17
- package/buttons/button/Button.d.ts +1 -0
- package/buttons/button/Button.js +1 -0
- package/buttons/button/Button.sty.js +4 -4
- package/buttons/intent-button/IntentButton.js +4 -0
- package/content/progress/ProgressBar.css +73 -26
- package/content/progress/ProgressBar.d.ts +1 -1
- package/content/progress/ProgressBar.js +75 -63
- package/content/progress/ProgressBar.sty.d.ts +15 -20
- package/content/progress/ProgressBar.sty.js +9 -4
- package/content/progress/ProgressBarIcon.css +2 -2
- package/content/progress/ProgressBarIcon.js +1 -11
- package/content/progress/ProgressBarIcon.sty.js +2 -2
- package/content/progress/ProgressBarLabel.css +4 -4
- package/content/progress/ProgressBarLabel.js +1 -6
- package/content/progress/ProgressBarLabel.sty.js +1 -2
- package/content/progress/ProgressBarValue.css +5 -20
- package/content/progress/ProgressBarValue.js +2 -2
- package/content/progress/ProgressBarValue.sty.d.ts +0 -20
- package/content/progress/ProgressBarValue.sty.js +2 -1
- package/content/progress/ProgressCircle.css +51 -19
- package/content/progress/ProgressCircle.d.ts +1 -1
- package/content/progress/ProgressCircle.js +24 -15
- package/content/progress/ProgressCircle.sty.d.ts +41 -14
- package/content/progress/ProgressCircle.sty.js +7 -11
- package/content/progress/contexts/SharedProgressBarPropsContext.d.ts +0 -2
- package/content/progress/contexts/SharedProgressBarPropsContext.js +1 -2
- package/content/progress/hooks/useProgressBarPropsContext.d.ts +5 -2
- package/content/progress/hooks/useProgressBarPropsContext.js +2 -3
- package/content/skeleton/Skeleton.css +6 -6
- package/content/skeleton/Skeleton.sty.js +1 -1
- package/core/components/focus-scope/FocusScope.d.ts +2 -2
- package/core/hooks/useFontsUpdated.d.ts +1 -1
- package/core/hooks/useFontsUpdated.js +2 -2
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/core/styles/focusRing.css +66 -66
- package/core/styles/focusRing.sty.js +2 -2
- package/core/styles/useFocusRing.d.ts +0 -1
- package/core/utils/colorUtils.css +60 -65
- package/core/utils/colorUtils.sty.d.ts +0 -5
- package/core/utils/colorUtils.sty.js +2 -2
- package/esm/buttons/button/Button.css +17 -17
- package/esm/buttons/button/Button.js +1 -0
- 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/intent-button/IntentButton.js +4 -0
- package/esm/buttons/intent-button/IntentButton.js.map +2 -2
- package/esm/content/progress/ProgressBar.css +73 -26
- package/esm/content/progress/ProgressBar.js +80 -64
- package/esm/content/progress/ProgressBar.js.map +2 -2
- package/esm/content/progress/ProgressBar.sty.js +9 -4
- package/esm/content/progress/ProgressBar.sty.js.map +2 -2
- package/esm/content/progress/ProgressBarIcon.css +2 -2
- package/esm/content/progress/ProgressBarIcon.js +1 -11
- package/esm/content/progress/ProgressBarIcon.js.map +2 -2
- package/esm/content/progress/ProgressBarIcon.sty.js +2 -2
- package/esm/content/progress/ProgressBarIcon.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarLabel.css +4 -4
- package/esm/content/progress/ProgressBarLabel.js +2 -7
- package/esm/content/progress/ProgressBarLabel.js.map +2 -2
- package/esm/content/progress/ProgressBarLabel.sty.js +1 -2
- package/esm/content/progress/ProgressBarLabel.sty.js.map +2 -2
- package/esm/content/progress/ProgressBarValue.css +5 -20
- package/esm/content/progress/ProgressBarValue.js +3 -3
- package/esm/content/progress/ProgressBarValue.js.map +2 -2
- package/esm/content/progress/ProgressBarValue.sty.js +2 -1
- package/esm/content/progress/ProgressBarValue.sty.js.map +2 -2
- package/esm/content/progress/ProgressCircle.css +51 -19
- package/esm/content/progress/ProgressCircle.js +25 -17
- package/esm/content/progress/ProgressCircle.js.map +2 -2
- package/esm/content/progress/ProgressCircle.sty.js +7 -11
- package/esm/content/progress/ProgressCircle.sty.js.map +2 -2
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js +1 -2
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js.map +2 -2
- package/esm/content/progress/hooks/useProgressBarPropsContext.js +2 -3
- package/esm/content/progress/hooks/useProgressBarPropsContext.js.map +2 -2
- package/esm/content/skeleton/Skeleton.css +6 -6
- package/esm/content/skeleton/Skeleton.sty.js +1 -1
- package/esm/content/skeleton/Skeleton.sty.js.map +1 -1
- package/esm/core/components/focus-scope/FocusScope.js.map +1 -1
- package/esm/core/hooks/useFontsUpdated.js +2 -2
- package/esm/core/hooks/useFontsUpdated.js.map +2 -2
- package/esm/core/index.js +1 -1
- package/esm/core/index.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 +2 -2
- package/esm/core/types/role-variant.js.map +2 -2
- package/esm/core/utils/colorUtils.css +60 -65
- package/esm/core/utils/colorUtils.sty.js +2 -2
- package/esm/core/utils/colorUtils.sty.js.map +2 -2
- package/esm/layouts/container/Container.css +4 -4
- package/esm/layouts/container/Container.js +22 -4
- 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.sty.js +1 -1
- package/esm/layouts/divider/Divider.sty.js.map +1 -1
- package/esm/layouts/hooks/useBreakpoint.js +3 -0
- package/esm/layouts/hooks/useBreakpoint.js.map +2 -2
- package/esm/layouts/index.js +5 -1
- package/esm/layouts/index.js.map +2 -2
- package/esm/layouts/input-group/InputGroup.css +4 -4
- package/esm/layouts/input-group/InputGroup.sty.js +2 -2
- package/esm/layouts/input-group/InputGroup.sty.js.map +1 -1
- package/esm/layouts/surface/Surface.css +39 -39
- 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 -65
- package/esm/styles/colorUtils.sty.js +2 -2
- package/esm/styles/colorUtils.sty.js.map +2 -2
- 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/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.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.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.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.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.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.sty.js +1 -1
- package/esm/typography/highlight/Highlight.sty.js.map +1 -1
- package/esm/typography/index.js +12 -12
- package/esm/typography/index.js.map +2 -2
- package/esm/typography/link/Link.css +4 -4
- 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.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.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.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.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.sty.js +1 -1
- package/esm/typography/text/Text.sty.js.map +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.css +4 -4
- package/esm/typography/text-ellipsis/TextEllipsis.js +45 -45
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +1 -1
- package/esm/typography/utils.js +19 -19
- package/esm/typography/utils.js.map +2 -2
- package/layouts/container/Container.css +4 -4
- package/layouts/container/Container.d.ts +20 -0
- package/layouts/container/Container.js +16 -3
- package/layouts/container/Container.sty.js +1 -1
- package/layouts/divider/Divider.css +6 -6
- package/layouts/divider/Divider.sty.js +1 -1
- package/layouts/hooks/useBreakpoint.js +3 -0
- package/layouts/index.d.ts +1 -1
- package/layouts/index.js +1 -0
- package/layouts/input-group/InputGroup.css +4 -4
- package/layouts/input-group/InputGroup.sty.js +2 -2
- package/layouts/surface/Surface.css +39 -39
- package/layouts/surface/Surface.sty.js +2 -2
- package/layouts/surface/variables.sty.js +1 -1
- package/package.json +1 -1
- package/styles/colorUtils.css +60 -65
- package/styles/colorUtils.sty.d.ts +0 -5
- 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/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.sty.js +1 -1
- package/typography/code/Code.css +1 -1
- package/typography/code/Code.sty.js +1 -1
- package/typography/emphasis/Emphasis.css +1 -1
- package/typography/emphasis/Emphasis.sty.js +1 -1
- package/typography/external-link/ExternalLink.css +6 -6
- package/typography/external-link/ExternalLink.sty.js +1 -1
- package/typography/heading/Heading.css +7 -7
- package/typography/heading/Heading.sty.js +1 -1
- package/typography/highlight/Highlight.css +1 -1
- package/typography/highlight/Highlight.sty.js +1 -1
- package/typography/index.d.ts +3 -3
- package/typography/index.js +6 -6
- package/typography/link/Link.css +4 -4
- package/typography/link/Link.sty.js +1 -1
- package/typography/list/List.css +4 -4
- package/typography/list/List.sty.js +2 -2
- package/typography/paragraph/Paragraph.css +3 -3
- package/typography/paragraph/Paragraph.sty.js +1 -1
- package/typography/strikethrough/Strikethrough.css +1 -1
- package/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/typography/strong/Strong.css +1 -1
- package/typography/strong/Strong.sty.js +1 -1
- package/typography/text/Text.css +3 -3
- package/typography/text/Text.sty.js +1 -1
- package/typography/text-ellipsis/TextEllipsis.css +4 -4
- package/typography/text-ellipsis/TextEllipsis.d.ts +2 -2
- package/typography/text-ellipsis/TextEllipsis.js +44 -44
- package/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
- package/typography/utils.d.ts +14 -11
- package/typography/utils.js +19 -19
package/esm/core/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/core/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { AppRoot, type AppRootProps } from './components/app-root/AppRoot.js';\nexport {\n FocusScope
|
|
5
|
-
"mappings": "AAAA,SAAS,eAAkC;AAC3C;AAAA,
|
|
4
|
+
"sourcesContent": ["export { AppRoot, type AppRootProps } from './components/app-root/AppRoot.js';\nexport {\n FocusScope,\n type FocusScopeProps,\n} from './components/focus-scope/FocusScope.js';\n\nexport { type FocusContextProps as _FocusContextProps } from './contexts/FocusContext.js';\n\nexport { useCurrentTheme } from './hooks/useCurrentTheme.js';\nexport { useFocusContext as _useFocusContext } from './hooks/useFocusContext.js';\nexport {\n FocusProvider as _FocusProvider,\n type Modality as _Modality,\n} from './providers/FocusProvider.js';\nexport type { MaskingProps } from './types/masking-props.js';\nexport type { DataTestId } from './types/data-props.js';\nexport type { StylingProps } from './types/styling-props.js';\nexport type { WithChildren } from './types/with-children.js';\nexport type {\n PolymorphOwnProps,\n PolymorphProps,\n PolymorphicComponentProps,\n} from './types/polymorph.js';\nexport { attemptFocus as _attemptFocus } from './utils/focus-management/attempt-focus.js';\nexport { focusFirstDescendant as _focusFirstDescendant } from './utils/focus-management/focus-first-descendant.js';\nexport { getFirstFocusableChild as _getFirstFocusableChild } from './utils/focus-management/get-first-focusable-child.js';\nexport { getLastFocusableChild as _getLastFocusableChild } from './utils/focus-management/get-last-focusable-child.js';\nexport { isFocusable as _isFocusable } from './utils/focus-management/is-focusable.js';\nexport { isBrowser as _isBrowser } from './utils/isBrowser.js';\nexport {\n mergeProps as _mergeProps,\n type NullToObject as _NullToObject,\n type TupleTypes as _TupleTypes,\n type UnionToIntersection as _UnionToIntersection,\n} from './utils/merge-props.js';\nexport { type _HeadingLevel, type _HeadingTag } from './types/heading.js';\nexport { useAriaLabelingProps as _useAriaLabelingProps } from './hooks/useAriaLabelingProps.js';\nexport { useId as _useId } from './hooks/useId.js';\nexport { useSafeForwardProps as _useSafeForwardProps } from './hooks/useSafeForwardProps.js';\nexport type { UseSafeForwardReturnProps as _UseSafeForwardReturnProps } from './hooks/useSafeForwardProps.js';\nexport type {\n AriaDisabledProps,\n AriaLabelingProps,\n} from './types/a11y-props.js';\nexport type { DOMProps } from './types/dom.js';\n// eslint-disable-next-line deprecation/deprecation\nexport { roleVariants } from './types/role-variant.js';\n// eslint-disable-next-line deprecation/deprecation\nexport type { RoleVariantType } from './types/role-variant.js';\nexport { uuidv4 as _uuidv4 } from './utils/uuidv4.js';\nexport { isStringChildren as _isStringChildren } from './utils/_is-string-children.js';\nexport { parseBoolean as _parseBoolean } from './utils/parse-boolean.js';\nexport { mulberry32 as _mulberry32 } from './utils/seed-random.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,eAAkC;AAC3C;AAAA,EACE;AAAA,OAEK;AAIP,SAAS,uBAAuB;AAChC,SAA4B,uBAAwB;AACpD;AAAA,EACmB;AAAA,OAEZ;AAUP,SAAyB,oBAAqB;AAC9C,SAAiC,4BAA6B;AAC9D,SAAmC,8BAA+B;AAClE,SAAkC,6BAA8B;AAChE,SAAwB,mBAAoB;AAC5C,SAAsB,iBAAkB;AACxC;AAAA,EACgB;AAAA,OAIT;AAEP,SAAiC,4BAA6B;AAC9D,SAAkB,aAAc;AAChC,SAAgC,2BAA4B;AAQ5D,SAAS,oBAAoB;AAG7B,SAAmB,cAAe;AAClC,SAA6B,wBAAyB;AACtD,SAAyB,oBAAqB;AAC9C,SAAuB,kBAAmB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
._z2r50s3-0-85-
|
|
1
|
+
._z2r50s3-0-85-120 {
|
|
2
2
|
outline: none;
|
|
3
3
|
}
|
|
4
|
-
._z2r50s3-0-85-
|
|
4
|
+
._z2r50s3-0-85-120:focus-visible {
|
|
5
5
|
outline: none;
|
|
6
6
|
}
|
|
7
|
-
._z2r50s4-0-85-
|
|
7
|
+
._z2r50s4-0-85-120 {
|
|
8
8
|
border-radius: calc(var(--dt-borders-radius-field-subdued, 4px) / 2);
|
|
9
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-0-85-
|
|
10
|
-
background-color: var(--_z2r50s2-0-85-
|
|
11
|
-
}
|
|
12
|
-
._z2r50s5-0-85-
|
|
13
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-0-85-
|
|
14
|
-
}
|
|
15
|
-
._z2r50s6-0-85-
|
|
16
|
-
--_z2r50s0-0-85-
|
|
17
|
-
--_z2r50s1-0-85-
|
|
18
|
-
--_z2r50s2-0-85-
|
|
19
|
-
}
|
|
20
|
-
._z2r50s7-0-85-
|
|
21
|
-
--_z2r50s0-0-85-
|
|
22
|
-
--_z2r50s1-0-85-
|
|
23
|
-
--_z2r50s2-0-85-
|
|
24
|
-
}
|
|
25
|
-
._z2r50s8-0-85-
|
|
26
|
-
--_z2r50s0-0-85-
|
|
27
|
-
--_z2r50s1-0-85-
|
|
28
|
-
--_z2r50s2-0-85-
|
|
29
|
-
}
|
|
30
|
-
._z2r50s9-0-85-
|
|
31
|
-
--_z2r50s0-0-85-
|
|
32
|
-
--_z2r50s1-0-85-
|
|
33
|
-
--_z2r50s2-0-85-
|
|
34
|
-
}
|
|
35
|
-
._z2r50sa-0-85-
|
|
36
|
-
--_z2r50s0-0-85-
|
|
37
|
-
--_z2r50s1-0-85-
|
|
38
|
-
--_z2r50s2-0-85-
|
|
39
|
-
}
|
|
40
|
-
._z2r50sb-0-85-
|
|
9
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-0-85-120);
|
|
10
|
+
background-color: var(--_z2r50s2-0-85-120);
|
|
11
|
+
}
|
|
12
|
+
._z2r50s5-0-85-120._z2r50s5-0-85-120 {
|
|
13
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-0-85-120), inset 0 0 0 calc(var(--dt-borders-width-emphasized, 2px) + 1px) var(--_z2r50s1-0-85-120);
|
|
14
|
+
}
|
|
15
|
+
._z2r50s6-0-85-120 {
|
|
16
|
+
--_z2r50s0-0-85-120: var(--dt-colors-border-neutral-accent, #545587);
|
|
17
|
+
--_z2r50s1-0-85-120: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
18
|
+
--_z2r50s2-0-85-120: var(--dt-colors-background-field-neutral-emphasized, #dadbe7);
|
|
19
|
+
}
|
|
20
|
+
._z2r50s7-0-85-120 {
|
|
21
|
+
--_z2r50s0-0-85-120: var(--dt-colors-border-primary-accent, #454cc9);
|
|
22
|
+
--_z2r50s1-0-85-120: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
23
|
+
--_z2r50s2-0-85-120: var(--dt-colors-background-field-primary-emphasized, #d6dbf4);
|
|
24
|
+
}
|
|
25
|
+
._z2r50s8-0-85-120 {
|
|
26
|
+
--_z2r50s0-0-85-120: var(--dt-colors-border-success-accent, #2c6360);
|
|
27
|
+
--_z2r50s1-0-85-120: var(--dt-colors-border-success-default, #cad6d7);
|
|
28
|
+
--_z2r50s2-0-85-120: var(--dt-colors-background-field-success-emphasized, #d4dddf);
|
|
29
|
+
}
|
|
30
|
+
._z2r50s9-0-85-120 {
|
|
31
|
+
--_z2r50s0-0-85-120: var(--dt-colors-border-warning-accent, #805100);
|
|
32
|
+
--_z2r50s1-0-85-120: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
33
|
+
--_z2r50s2-0-85-120: var(--dt-colors-background-field-warning-emphasized, #f4e8de);
|
|
34
|
+
}
|
|
35
|
+
._z2r50sa-0-85-120 {
|
|
36
|
+
--_z2r50s0-0-85-120: var(--dt-colors-border-critical-accent, #b80031);
|
|
37
|
+
--_z2r50s1-0-85-120: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
38
|
+
--_z2r50s2-0-85-120: var(--dt-colors-background-field-critical-emphasized, #f2d7d9);
|
|
39
|
+
}
|
|
40
|
+
._z2r50sb-0-85-120:focus-within {
|
|
41
41
|
outline: none;
|
|
42
42
|
}
|
|
43
|
-
._z2r50sc-0-85-
|
|
43
|
+
._z2r50sc-0-85-120:focus-within {
|
|
44
44
|
border-radius: calc(var(--dt-borders-radius-field-subdued, 4px) / 2);
|
|
45
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-0-85-
|
|
46
|
-
background-color: var(--_z2r50s2-0-85-
|
|
47
|
-
}
|
|
48
|
-
._z2r50sd-0-85-
|
|
49
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-0-85-
|
|
50
|
-
}
|
|
51
|
-
._z2r50se-0-85-
|
|
52
|
-
--_z2r50s0-0-85-
|
|
53
|
-
--_z2r50s1-0-85-
|
|
54
|
-
--_z2r50s2-0-85-
|
|
55
|
-
}
|
|
56
|
-
._z2r50sf-0-85-
|
|
57
|
-
--_z2r50s0-0-85-
|
|
58
|
-
--_z2r50s1-0-85-
|
|
59
|
-
--_z2r50s2-0-85-
|
|
60
|
-
}
|
|
61
|
-
._z2r50sg-0-85-
|
|
62
|
-
--_z2r50s0-0-85-
|
|
63
|
-
--_z2r50s1-0-85-
|
|
64
|
-
--_z2r50s2-0-85-
|
|
65
|
-
}
|
|
66
|
-
._z2r50sh-0-85-
|
|
67
|
-
--_z2r50s0-0-85-
|
|
68
|
-
--_z2r50s1-0-85-
|
|
69
|
-
--_z2r50s2-0-85-
|
|
70
|
-
}
|
|
71
|
-
._z2r50si-0-85-
|
|
72
|
-
--_z2r50s0-0-85-
|
|
73
|
-
--_z2r50s1-0-85-
|
|
74
|
-
--_z2r50s2-0-85-
|
|
45
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-0-85-120);
|
|
46
|
+
background-color: var(--_z2r50s2-0-85-120);
|
|
47
|
+
}
|
|
48
|
+
._z2r50sd-0-85-120:focus-within {
|
|
49
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-0-85-120), inset 0 0 0 calc(var(--dt-borders-width-emphasized, 2px) + 1px) var(--_z2r50s1-0-85-120);
|
|
50
|
+
}
|
|
51
|
+
._z2r50se-0-85-120 {
|
|
52
|
+
--_z2r50s0-0-85-120: var(--dt-colors-border-neutral-accent, #545587);
|
|
53
|
+
--_z2r50s1-0-85-120: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
54
|
+
--_z2r50s2-0-85-120: var(--dt-colors-background-field-neutral-emphasized, #dadbe7);
|
|
55
|
+
}
|
|
56
|
+
._z2r50sf-0-85-120 {
|
|
57
|
+
--_z2r50s0-0-85-120: var(--dt-colors-border-primary-accent, #454cc9);
|
|
58
|
+
--_z2r50s1-0-85-120: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
59
|
+
--_z2r50s2-0-85-120: var(--dt-colors-background-field-primary-emphasized, #d6dbf4);
|
|
60
|
+
}
|
|
61
|
+
._z2r50sg-0-85-120 {
|
|
62
|
+
--_z2r50s0-0-85-120: var(--dt-colors-border-success-accent, #2c6360);
|
|
63
|
+
--_z2r50s1-0-85-120: var(--dt-colors-border-success-default, #cad6d7);
|
|
64
|
+
--_z2r50s2-0-85-120: var(--dt-colors-background-field-success-emphasized, #d4dddf);
|
|
65
|
+
}
|
|
66
|
+
._z2r50sh-0-85-120 {
|
|
67
|
+
--_z2r50s0-0-85-120: var(--dt-colors-border-warning-accent, #805100);
|
|
68
|
+
--_z2r50s1-0-85-120: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
69
|
+
--_z2r50s2-0-85-120: var(--dt-colors-background-field-warning-emphasized, #f4e8de);
|
|
70
|
+
}
|
|
71
|
+
._z2r50si-0-85-120 {
|
|
72
|
+
--_z2r50s0-0-85-120: var(--dt-colors-border-critical-accent, #b80031);
|
|
73
|
+
--_z2r50s1-0-85-120: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
74
|
+
--_z2r50s2-0-85-120: var(--dt-colors-background-field-critical-emphasized, #f2d7d9);
|
|
75
75
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./focusRing.css";
|
|
2
2
|
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
-
var focusRingCSS = _7a468({ defaultClassName: "_z2r50s3-0-85-
|
|
4
|
-
var focusRingFocusWithinCSS = _7a468({ defaultClassName: "_z2r50sb-0-85-
|
|
3
|
+
var focusRingCSS = _7a468({ defaultClassName: "_z2r50s3-0-85-120", variantClassNames: { minimal: { true: "_z2r50s4-0-85-120", false: "_z2r50s5-0-85-120" }, variant: { neutral: "_z2r50s6-0-85-120", primary: "_z2r50s7-0-85-120", success: "_z2r50s8-0-85-120", warning: "_z2r50s9-0-85-120", critical: "_z2r50sa-0-85-120" } }, defaultVariants: {}, compoundVariants: [] });
|
|
4
|
+
var focusRingFocusWithinCSS = _7a468({ defaultClassName: "_z2r50sb-0-85-120", variantClassNames: { minimal: { true: "_z2r50sc-0-85-120", false: "_z2r50sd-0-85-120" }, variant: { neutral: "_z2r50se-0-85-120", primary: "_z2r50sf-0-85-120", success: "_z2r50sg-0-85-120", warning: "_z2r50sh-0-85-120", critical: "_z2r50si-0-85-120" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5
5
|
export {
|
|
6
6
|
focusRingCSS,
|
|
7
7
|
focusRingFocusWithinCSS
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/core/styles/focusRing.css.ts"],
|
|
4
|
-
"sourcesContent": ["import './focusRing.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var focusRingCSS = _7a468({defaultClassName:'_z2r50s3-0-85-
|
|
4
|
+
"sourcesContent": ["import './focusRing.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var focusRingCSS = _7a468({defaultClassName:'_z2r50s3-0-85-120',variantClassNames:{minimal:{true:'_z2r50s4-0-85-120',false:'_z2r50s5-0-85-120'},variant:{neutral:'_z2r50s6-0-85-120',primary:'_z2r50s7-0-85-120',success:'_z2r50s8-0-85-120',warning:'_z2r50s9-0-85-120',critical:'_z2r50sa-0-85-120'}},defaultVariants:{},compoundVariants:[]});\nexport var focusRingFocusWithinCSS = _7a468({defaultClassName:'_z2r50sb-0-85-120',variantClassNames:{minimal:{true:'_z2r50sc-0-85-120',false:'_z2r50sd-0-85-120'},variant:{neutral:'_z2r50se-0-85-120',primary:'_z2r50sf-0-85-120',success:'_z2r50sg-0-85-120',warning:'_z2r50sh-0-85-120',critical:'_z2r50si-0-85-120'}},defaultVariants:{},compoundVariants:[]});"],
|
|
5
5
|
"mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,eAAe,OAAO,EAAC,kBAAiB,qBAAoB,mBAAkB,EAAC,SAAQ,EAAC,MAAK,qBAAoB,OAAM,oBAAmB,GAAE,SAAQ,EAAC,SAAQ,qBAAoB,SAAQ,qBAAoB,SAAQ,qBAAoB,SAAQ,qBAAoB,UAAS,oBAAmB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;AAC/U,IAAI,0BAA0B,OAAO,EAAC,kBAAiB,qBAAoB,mBAAkB,EAAC,SAAQ,EAAC,MAAK,qBAAoB,OAAM,oBAAmB,GAAE,SAAQ,EAAC,SAAQ,qBAAoB,SAAQ,qBAAoB,SAAQ,qBAAoB,SAAQ,qBAAoB,UAAS,oBAAmB,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/core/styles/useFocusRing.ts"],
|
|
4
|
-
"sourcesContent": ["import {\n FocusEvent,\n FocusEventHandler,\n useCallback,\n useEffect,\n useState,\n} from 'react';\n\nimport { focusRingCSS, focusRingFocusWithinCSS } from './focusRing.sty.js';\nimport { _useFocusContext } from '../index.js';\n\
|
|
5
|
-
"mappings": "AAAA;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,cAAc,+BAA+B;AACtD,SAAS,wBAAwB;
|
|
4
|
+
"sourcesContent": ["import {\n FocusEvent,\n FocusEventHandler,\n useCallback,\n useEffect,\n useState,\n} from 'react';\n\nimport { focusRingCSS, focusRingFocusWithinCSS } from './focusRing.sty.js';\nimport { _useFocusContext } from '../index.js';\n\n/** @internal */\nexport type VariantType =\n | 'neutral'\n | 'primary'\n | 'success'\n | 'warning'\n | 'critical';\n/** @internal */\nexport type UseFocusRingProps = {\n /**\n * A minimal focus outline is available for smaller content elements like links. This variant is applied when set to true.\n * @defaultValue false\n */\n isMinimal?: boolean;\n\n /**\n * Whether or not the modality should be ignored, so that the focus ring is also present if users clicks the element (not just by tabbing to it).\n * @defaultValue false\n */\n ignoreModality?: boolean;\n\n /**\n * The styling variant of the element.\n * @defaultValue neutral\n */\n variant?: VariantType;\n\n /**\n * Apply the focus ring styling if an embedded element gains the focus\n */\n focusWithin?: boolean;\n\n /**\n * Whether the element is disabled. If disabled changes to true, the focus will be removed.\n */\n disabled?: boolean;\n};\n\nexport type FocusRingProps = {\n /** The focus styles that depend on modality. */\n focusClassName: string;\n /** Focus handlers used to manage the focus state. Must be applied to the element that receives the focus.*/\n focusProps: {\n onFocus: (e: FocusEvent) => void;\n onBlur: (e: FocusEvent) => void;\n };\n /** Whether or not the element got focus via keyboard. */\n isFocusVisible: boolean;\n};\n\n/**\n * Custom hook used to determine focus styling depending on modality.\n * Returns the css classes (vanilla) that can be applied to the component in order to show the correct focus outline.\n * @internal\n */\nexport function useFocusRing(props: UseFocusRingProps = {}): FocusRingProps {\n const {\n variant = 'neutral',\n ignoreModality = false,\n isMinimal = false,\n focusWithin = false,\n disabled = false,\n } = props;\n const [isFocused, setIsFocused] = useState(false);\n const { modality } = _useFocusContext();\n\n useEffect(() => {\n if (disabled) {\n setIsFocused(false);\n }\n }, [disabled]);\n\n const onBlur = useCallback<FocusEventHandler>((e) => {\n // trigger only when the self element is unfocused (stopPropagation)\n if (e.currentTarget === e.target) {\n setIsFocused(false);\n }\n }, []);\n\n const onFocus = useCallback<FocusEventHandler>((e) => {\n // trigger only when the self element is focused (stopPropagation)\n if (e.currentTarget === e.target) {\n setIsFocused(true);\n }\n }, []);\n\n const focusProps = {\n onFocus,\n onBlur,\n };\n\n if (\n ((ignoreModality || modality === 'keyboard') && isFocused) ||\n focusWithin\n ) {\n if (isMinimal) {\n return {\n focusClassName: focusWithin\n ? focusRingFocusWithinCSS({ minimal: true, variant })\n : focusRingCSS({ minimal: true, variant }),\n isFocusVisible: !focusWithin,\n focusProps,\n };\n }\n\n return {\n focusClassName: focusWithin\n ? focusRingFocusWithinCSS({ minimal: false, variant })\n : focusRingCSS({ minimal: false, variant }),\n isFocusVisible: !focusWithin,\n focusProps,\n };\n }\n\n return {\n focusClassName: focusWithin ? focusRingFocusWithinCSS() : focusRingCSS(),\n isFocusVisible: false,\n focusProps,\n };\n}\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,cAAc,+BAA+B;AACtD,SAAS,wBAAwB;AAyD1B,SAAS,aAAa,QAA2B,CAAC,GAAmB;AAC1E,QAAM;AAAA,IACJ,UAAU;AAAA,IACV,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,WAAW;AAAA,EACb,IAAI;AACJ,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,KAAK;AAChD,QAAM,EAAE,SAAS,IAAI,iBAAiB;AAEtC,YAAU,MAAM;AACd,QAAI,UAAU;AACZ,mBAAa,KAAK;AAAA,IACpB;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AAEb,QAAM,SAAS,YAA+B,CAAC,MAAM;AAEnD,QAAI,EAAE,kBAAkB,EAAE,QAAQ;AAChC,mBAAa,KAAK;AAAA,IACpB;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,QAAM,UAAU,YAA+B,CAAC,MAAM;AAEpD,QAAI,EAAE,kBAAkB,EAAE,QAAQ;AAChC,mBAAa,IAAI;AAAA,IACnB;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,QAAM,aAAa;AAAA,IACjB;AAAA,IACA;AAAA,EACF;AAEA,OACI,kBAAkB,aAAa,eAAe,aAChD,aACA;AACA,QAAI,WAAW;AACb,aAAO;AAAA,QACL,gBAAgB,cACZ,wBAAwB,EAAE,SAAS,MAAM,QAAQ,CAAC,IAClD,aAAa,EAAE,SAAS,MAAM,QAAQ,CAAC;AAAA,QAC3C,gBAAgB,CAAC;AAAA,QACjB;AAAA,MACF;AAAA,IACF;AAEA,WAAO;AAAA,MACL,gBAAgB,cACZ,wBAAwB,EAAE,SAAS,OAAO,QAAQ,CAAC,IACnD,aAAa,EAAE,SAAS,OAAO,QAAQ,CAAC;AAAA,MAC5C,gBAAgB,CAAC;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AAAA,IACL,gBAAgB,cAAc,wBAAwB,IAAI,aAAa;AAAA,IACvE,gBAAgB;AAAA,IAChB;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/core/types/role-variant.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * Defines role / color variants\n * @public\n * @deprecated Will be removed.\n */\nexport const roleVariants = [\n 'neutral',\n 'primary',\n 'success',\n 'warning',\n 'critical',\n 'onAccent',\n] as const;\n\n/**\n * Defines the types of role variants\n * @public\n * @deprecated Will be removed. You can use 'neutral' | 'primary' | 'success' | 'warning' | 'critical' instead.\n */\nexport type RoleVariantType = (typeof roleVariants)[number];\n"],
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/* eslint-disable deprecation/deprecation */\n\n/**\n * Defines role / color variants\n * @public\n * @deprecated Will be removed.\n */\nexport const roleVariants = [\n 'neutral',\n 'primary',\n 'success',\n 'warning',\n 'critical',\n 'onAccent',\n] as const;\n\n/**\n * Defines the types of role variants\n * @public\n * @deprecated Will be removed. You can use 'neutral' | 'primary' | 'success' | 'warning' | 'critical' instead.\n */\nexport type RoleVariantType = (typeof roleVariants)[number];\n"],
|
|
5
|
+
"mappings": "AAOO,MAAM,eAAe;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,80 +1,75 @@
|
|
|
1
|
-
._k096v44-0-85-
|
|
2
|
-
--_k096v40-0-85-
|
|
3
|
-
--_k096v41-0-85-
|
|
4
|
-
--_k096v42-0-85-
|
|
1
|
+
._k096v44-0-85-120 {
|
|
2
|
+
--_k096v40-0-85-120: var(--dt-colors-text-critical-default, #b80031);
|
|
3
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-critical-default, #b80031);
|
|
4
|
+
--_k096v42-0-85-120: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
5
5
|
}
|
|
6
|
-
._k096v45-0-85-
|
|
7
|
-
--_k096v40-0-85-
|
|
8
|
-
--_k096v41-0-85-
|
|
9
|
-
--_k096v42-0-85-
|
|
6
|
+
._k096v45-0-85-120 {
|
|
7
|
+
--_k096v40-0-85-120: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
8
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-neutral-default, #2b2a58);
|
|
9
|
+
--_k096v42-0-85-120: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
10
10
|
}
|
|
11
|
-
._k096v46-0-85-
|
|
12
|
-
--_k096v40-0-85-
|
|
13
|
-
--_k096v41-0-85-
|
|
14
|
-
--_k096v42-0-85-
|
|
11
|
+
._k096v46-0-85-120 {
|
|
12
|
+
--_k096v40-0-85-120: var(--dt-colors-text-primary-default, #454cc9);
|
|
13
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-primary-default, #454cc9);
|
|
14
|
+
--_k096v42-0-85-120: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
15
15
|
}
|
|
16
|
-
._k096v47-0-85-
|
|
17
|
-
--_k096v40-0-85-
|
|
18
|
-
--_k096v41-0-85-
|
|
19
|
-
--_k096v42-0-85-
|
|
16
|
+
._k096v47-0-85-120 {
|
|
17
|
+
--_k096v40-0-85-120: var(--dt-colors-text-success-default, #2c6360);
|
|
18
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-success-default, #2c6360);
|
|
19
|
+
--_k096v42-0-85-120: var(--dt-colors-border-success-default, #cad6d7);
|
|
20
20
|
}
|
|
21
|
-
._k096v48-0-85-
|
|
22
|
-
--_k096v40-0-85-
|
|
23
|
-
--_k096v41-0-85-
|
|
24
|
-
--_k096v42-0-85-
|
|
21
|
+
._k096v48-0-85-120 {
|
|
22
|
+
--_k096v40-0-85-120: var(--dt-colors-text-warning-default, #805100);
|
|
23
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-warning-default, #805100);
|
|
24
|
+
--_k096v42-0-85-120: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
27
|
-
--_k096v40-0-85-
|
|
28
|
-
--_k096v41-0-85-
|
|
29
|
-
--_k096v42-0-85-
|
|
26
|
+
._k096v4d-0-85-120 {
|
|
27
|
+
--_k096v40-0-85-120: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
|
|
28
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-primary-on-accent-default, #f4f4fb);
|
|
29
|
+
--_k096v42-0-85-120: var(--dt-colors-border-primary-accent, #454cc9);
|
|
30
30
|
}
|
|
31
|
-
._k096v4e-0-85-
|
|
32
|
-
--_k096v40-0-85-
|
|
33
|
-
--_k096v41-0-85-
|
|
34
|
-
--_k096v42-0-85-
|
|
31
|
+
._k096v4e-0-85-120 {
|
|
32
|
+
--_k096v40-0-85-120: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
|
|
33
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-success-on-accent-default, #f1f4f4);
|
|
34
|
+
--_k096v42-0-85-120: var(--dt-colors-border-success-accent, #2c6360);
|
|
35
35
|
}
|
|
36
|
-
._k096v4f-0-85-
|
|
37
|
-
--_k096v40-0-85-
|
|
38
|
-
--_k096v41-0-85-
|
|
39
|
-
--_k096v42-0-85-
|
|
36
|
+
._k096v4f-0-85-120 {
|
|
37
|
+
--_k096v40-0-85-120: var(--dt-colors-text-warning-on-accent-default, #272025);
|
|
38
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-warning-on-accent-default, #272025);
|
|
39
|
+
--_k096v42-0-85-120: var(--dt-colors-border-warning-accent, #805100);
|
|
40
40
|
}
|
|
41
|
-
._k096v4g-0-85-
|
|
42
|
-
--_k096v40-0-85-
|
|
43
|
-
--_k096v41-0-85-
|
|
44
|
-
--_k096v42-0-85-
|
|
41
|
+
._k096v4g-0-85-120 {
|
|
42
|
+
--_k096v40-0-85-120: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
|
|
43
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-critical-on-accent-default, #f9f1f3);
|
|
44
|
+
--_k096v42-0-85-120: var(--dt-colors-border-critical-accent, #b80031);
|
|
45
45
|
}
|
|
46
|
-
._k096v4h-0-85-
|
|
47
|
-
--_k096v40-0-85-
|
|
48
|
-
--_k096v41-0-85-
|
|
49
|
-
--_k096v42-0-85-
|
|
46
|
+
._k096v4h-0-85-120 {
|
|
47
|
+
--_k096v40-0-85-120: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
48
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
|
|
49
|
+
--_k096v42-0-85-120: var(--dt-colors-border-neutral-accent, #545587);
|
|
50
50
|
}
|
|
51
|
-
._k096v4i-0-85-
|
|
52
|
-
--_k096v40-0-85-
|
|
53
|
-
--_k096v41-0-85-
|
|
54
|
-
--_k096v42-0-85-
|
|
51
|
+
._k096v4i-0-85-120 {
|
|
52
|
+
--_k096v40-0-85-120: var(--dt-colors-text-primary-disabled, #54558780);
|
|
53
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-primary-disabled, #54558780);
|
|
54
|
+
--_k096v42-0-85-120: var(--dt-colors-border-primary-disabled, #d2d3e180);
|
|
55
55
|
}
|
|
56
|
-
._k096v4j-0-85-
|
|
57
|
-
--_k096v40-0-85-
|
|
58
|
-
--_k096v41-0-85-
|
|
59
|
-
--_k096v42-0-85-
|
|
56
|
+
._k096v4j-0-85-120 {
|
|
57
|
+
--_k096v40-0-85-120: var(--dt-colors-text-success-disabled, #54558780);
|
|
58
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-success-disabled, #54558780);
|
|
59
|
+
--_k096v42-0-85-120: var(--dt-colors-border-success-disabled, #d2d3e180);
|
|
60
60
|
}
|
|
61
|
-
._k096v4k-0-85-
|
|
62
|
-
--_k096v40-0-85-
|
|
63
|
-
--_k096v41-0-85-
|
|
64
|
-
--_k096v42-0-85-
|
|
61
|
+
._k096v4k-0-85-120 {
|
|
62
|
+
--_k096v40-0-85-120: var(--dt-colors-text-warning-disabled, #54558780);
|
|
63
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-warning-disabled, #54558780);
|
|
64
|
+
--_k096v42-0-85-120: var(--dt-colors-border-warning-disabled, #d2d3e180);
|
|
65
65
|
}
|
|
66
|
-
._k096v4l-0-85-
|
|
67
|
-
--_k096v40-0-85-
|
|
68
|
-
--_k096v41-0-85-
|
|
69
|
-
--_k096v42-0-85-
|
|
66
|
+
._k096v4l-0-85-120 {
|
|
67
|
+
--_k096v40-0-85-120: var(--dt-colors-text-critical-disabled, #54558780);
|
|
68
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-critical-disabled, #54558780);
|
|
69
|
+
--_k096v42-0-85-120: var(--dt-colors-border-critical-disabled, #d2d3e180);
|
|
70
70
|
}
|
|
71
|
-
._k096v4m-0-85-
|
|
72
|
-
--_k096v40-0-85-
|
|
73
|
-
--_k096v41-0-85-
|
|
74
|
-
--_k096v42-0-85-
|
|
75
|
-
}
|
|
76
|
-
._k096v4n-0-85-100 {
|
|
77
|
-
--_k096v40-0-85-100: var(--dt-colors-text-neutral-disabled, #54558780);
|
|
78
|
-
--_k096v41-0-85-100: var(--dt-colors-icon-neutral-disabled, #54558780);
|
|
79
|
-
--_k096v42-0-85-100: var(--dt-colors-border-neutral-disabled, #d2d3e180);
|
|
71
|
+
._k096v4m-0-85-120 {
|
|
72
|
+
--_k096v40-0-85-120: var(--dt-colors-text-neutral-disabled, #54558780);
|
|
73
|
+
--_k096v41-0-85-120: var(--dt-colors-icon-neutral-disabled, #54558780);
|
|
74
|
+
--_k096v42-0-85-120: var(--dt-colors-border-neutral-disabled, #d2d3e180);
|
|
80
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: "_k096v43-0-85-
|
|
4
|
-
var colorUtilsVars = { text: "var(--_k096v40-0-85-
|
|
3
|
+
var colorUtilsCSS = _7a468({ defaultClassName: "_k096v43-0-85-120", variantClassNames: { color: { critical: "_k096v44-0-85-120", neutral: "_k096v45-0-85-120", primary: "_k096v46-0-85-120", success: "_k096v47-0-85-120", warning: "_k096v48-0-85-120" }, variant: { "default": "_k096v49-0-85-120", accent: "_k096v4a-0-85-120" }, disabled: { true: "_k096v4b-0-85-120", false: "_k096v4c-0-85-120" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "_k096v4d-0-85-120"], [{ color: "success", variant: "accent" }, "_k096v4e-0-85-120"], [{ color: "warning", variant: "accent" }, "_k096v4f-0-85-120"], [{ color: "critical", variant: "accent" }, "_k096v4g-0-85-120"], [{ color: "neutral", variant: "accent" }, "_k096v4h-0-85-120"], [{ color: "primary", disabled: true }, "_k096v4i-0-85-120"], [{ color: "success", disabled: true }, "_k096v4j-0-85-120"], [{ color: "warning", disabled: true }, "_k096v4k-0-85-120"], [{ color: "critical", disabled: true }, "_k096v4l-0-85-120"], [{ color: "neutral", disabled: true }, "_k096v4m-0-85-120"]] });
|
|
4
|
+
var colorUtilsVars = { text: "var(--_k096v40-0-85-120)", icon: "var(--_k096v41-0-85-120)", borderColor: "var(--_k096v42-0-85-120)" };
|
|
5
5
|
export {
|
|
6
6
|
colorUtilsCSS,
|
|
7
7
|
colorUtilsVars
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/core/utils/colorUtils.css.ts"],
|
|
4
|
-
"sourcesContent": ["import './colorUtils.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var colorUtilsCSS = _7a468({defaultClassName:'_k096v43-0-85-
|
|
5
|
-
"mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,gBAAgB,OAAO,EAAC,kBAAiB,qBAAoB,mBAAkB,EAAC,OAAM,EAAC,UAAS,qBAAoB,SAAQ,qBAAoB,SAAQ,qBAAoB,SAAQ,qBAAoB,SAAQ,
|
|
4
|
+
"sourcesContent": ["import './colorUtils.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var colorUtilsCSS = _7a468({defaultClassName:'_k096v43-0-85-120',variantClassNames:{color:{critical:'_k096v44-0-85-120',neutral:'_k096v45-0-85-120',primary:'_k096v46-0-85-120',success:'_k096v47-0-85-120',warning:'_k096v48-0-85-120'},variant:{'default':'_k096v49-0-85-120',accent:'_k096v4a-0-85-120'},disabled:{true:'_k096v4b-0-85-120',false:'_k096v4c-0-85-120'}},defaultVariants:{},compoundVariants:[[{color:'primary',variant:'accent'},'_k096v4d-0-85-120'],[{color:'success',variant:'accent'},'_k096v4e-0-85-120'],[{color:'warning',variant:'accent'},'_k096v4f-0-85-120'],[{color:'critical',variant:'accent'},'_k096v4g-0-85-120'],[{color:'neutral',variant:'accent'},'_k096v4h-0-85-120'],[{color:'primary',disabled:true},'_k096v4i-0-85-120'],[{color:'success',disabled:true},'_k096v4j-0-85-120'],[{color:'warning',disabled:true},'_k096v4k-0-85-120'],[{color:'critical',disabled:true},'_k096v4l-0-85-120'],[{color:'neutral',disabled:true},'_k096v4m-0-85-120']]});\nexport var colorUtilsVars = {text:'var(--_k096v40-0-85-120)',icon:'var(--_k096v41-0-85-120)',borderColor:'var(--_k096v42-0-85-120)'};"],
|
|
5
|
+
"mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,gBAAgB,OAAO,EAAC,kBAAiB,qBAAoB,mBAAkB,EAAC,OAAM,EAAC,UAAS,qBAAoB,SAAQ,qBAAoB,SAAQ,qBAAoB,SAAQ,qBAAoB,SAAQ,oBAAmB,GAAE,SAAQ,EAAC,WAAU,qBAAoB,QAAO,oBAAmB,GAAE,UAAS,EAAC,MAAK,qBAAoB,OAAM,oBAAmB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,mBAAmB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,mBAAmB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,mBAAmB,GAAE,CAAC,EAAC,OAAM,YAAW,SAAQ,SAAQ,GAAE,mBAAmB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,mBAAmB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,mBAAmB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,mBAAmB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,mBAAmB,GAAE,CAAC,EAAC,OAAM,YAAW,UAAS,KAAI,GAAE,mBAAmB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,mBAAmB,CAAC,EAAC,CAAC;AAC97B,IAAI,iBAAiB,EAAC,MAAK,4BAA2B,MAAK,4BAA2B,aAAY,2BAA0B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
._f32lcd0-0-85-
|
|
1
|
+
._f32lcd0-0-85-120 {
|
|
2
2
|
border-style: var(--dt-borders-style-default, solid);
|
|
3
3
|
border-width: var(--dt-borders-width-emphasized, 2px);
|
|
4
4
|
border-radius: var(--dt-borders-radius-container-default, 12px);
|
|
5
|
-
color: var(--_6levse0-0-85-
|
|
6
|
-
border-color: var(--_6levse2-0-85-
|
|
7
|
-
background-color: var(--_6levse1-0-85-
|
|
5
|
+
color: var(--_6levse0-0-85-120);
|
|
6
|
+
border-color: var(--_6levse2-0-85-120);
|
|
7
|
+
background-color: var(--_6levse1-0-85-120);
|
|
8
8
|
}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
|
-
import React, {
|
|
2
|
+
import React, {
|
|
3
|
+
createContext,
|
|
4
|
+
forwardRef,
|
|
5
|
+
useContext,
|
|
6
|
+
useMemo
|
|
7
|
+
} from "react";
|
|
3
8
|
import { containerCSS } from "./Container.sty.js";
|
|
4
9
|
import { containerColorsCSS } from "../../styles/container.sty.js";
|
|
5
10
|
import {
|
|
6
11
|
_getLayoutSizeStyles as getLayoutSizeStyles,
|
|
7
12
|
_getSpacingSprinkles as getSpacingSprinkles
|
|
8
13
|
} from "../../styles/index.js";
|
|
14
|
+
const ContainerColoringContext = createContext({
|
|
15
|
+
variant: "default",
|
|
16
|
+
color: "neutral",
|
|
17
|
+
default: true
|
|
18
|
+
});
|
|
19
|
+
const useContainerColoring = () => {
|
|
20
|
+
return useContext(ContainerColoringContext);
|
|
21
|
+
};
|
|
9
22
|
const Container = /* @__PURE__ */ forwardRef(
|
|
10
23
|
({
|
|
11
24
|
as,
|
|
@@ -25,7 +38,11 @@ const Container = /* @__PURE__ */ forwardRef(
|
|
|
25
38
|
);
|
|
26
39
|
const [sizeStyles, sizeRestProps] = getLayoutSizeStyles(sprinkleRestProps);
|
|
27
40
|
const Component = as || "div";
|
|
28
|
-
|
|
41
|
+
const context = useMemo(
|
|
42
|
+
() => ({ color, variant, default: false }),
|
|
43
|
+
[color, variant]
|
|
44
|
+
);
|
|
45
|
+
return /* @__PURE__ */ React.createElement(ContainerColoringContext.Provider, { value: context }, /* @__PURE__ */ React.createElement(
|
|
29
46
|
Component,
|
|
30
47
|
{
|
|
31
48
|
ref,
|
|
@@ -45,11 +62,12 @@ const Container = /* @__PURE__ */ forwardRef(
|
|
|
45
62
|
...sizeRestProps
|
|
46
63
|
},
|
|
47
64
|
children
|
|
48
|
-
);
|
|
65
|
+
));
|
|
49
66
|
}
|
|
50
67
|
);
|
|
51
68
|
Container.displayName = "Container";
|
|
52
69
|
export {
|
|
53
|
-
Container
|
|
70
|
+
Container,
|
|
71
|
+
useContainerColoring
|
|
54
72
|
};
|
|
55
73
|
//# sourceMappingURL=Container.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/container/Container.tsx"],
|
|
4
|
-
"sourcesContent": ["import clsx from 'clsx';\nimport React, {
|
|
5
|
-
"mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport React, {\n createContext,\n forwardRef,\n useContext,\n useMemo,\n type ElementType,\n type ReactElement,\n} from 'react';\n\nimport { containerCSS } from './Container.sty.js';\nimport type { DataTestId } from '../../core/types/data-props.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\nimport type { PolymorphicComponentProps } from '../../core/types/polymorph.js';\nimport type { StylingProps } from '../../core/types/styling-props.js';\nimport type { WithChildren } from '../../core/types/with-children.js';\nimport { containerColorsCSS } from '../../styles/container.sty.js';\nimport {\n _getLayoutSizeStyles as getLayoutSizeStyles,\n _getSpacingSprinkles as getSpacingSprinkles,\n type LayoutSizeProps,\n type SpacingProps,\n} from '../../styles/index.js';\n\n/** @internal */\nexport type ContainerColoring = {\n /**\n * The visual style of the container.\n * @defaultValue 'default'\n */\n variant: 'minimal' | 'default' | 'emphasized' | 'accent';\n /**\n * The color of the container. This should be chosen based on the context\n * the container is used in.\n * @defaultValue 'neutral'\n */\n color: 'primary' | 'neutral' | 'success' | 'warning' | 'critical';\n\n default: boolean;\n};\n\nconst ContainerColoringContext = createContext<ContainerColoring>({\n variant: 'default',\n color: 'neutral',\n default: true,\n});\n\n/**\n * Context used for passing down color and variant information for accent inheritance\n * @internal\n */\nexport const useContainerColoring = () => {\n return useContext(ContainerColoringContext);\n};\n\n/**\n * Accepted properties for Container\n * @public\n */\nexport interface ContainerOwnProps\n extends WithChildren,\n DataTestId,\n StylingProps,\n SpacingProps,\n LayoutSizeProps,\n MaskingProps {\n /**\n * The visual style of the container.\n * @defaultValue 'default'\n */\n variant?: 'minimal' | 'default' | 'emphasized' | 'accent';\n /**\n * The color of the container. This should be chosen based on the context\n * the container is used in.\n * @defaultValue 'neutral'\n */\n color?: 'primary' | 'neutral' | 'success' | 'warning' | 'critical';\n}\n\n/**\n * Merge own props with others inherited from the underlying element type\n * @public\n */\nexport type ContainerProps<E extends ElementType> = PolymorphicComponentProps<\n E,\n ContainerOwnProps\n>;\n\n/**\n * Containers can be used to group content that is related. Additionally, they emphasize and highlight your grouped content.\n * @public\n */\nexport const Container: <E extends ElementType = 'div'>(\n props: ContainerProps<E>,\n) => ReactElement | null = /* @__PURE__ */ forwardRef(\n <E extends ElementType>(\n {\n as,\n children,\n variant = 'default',\n color = 'neutral',\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n ...remainingProps\n }: ContainerProps<E>,\n ref: typeof remainingProps.ref,\n ) => {\n const [spacingClasses, sprinkleRestProps] = getSpacingSprinkles(\n remainingProps,\n { padding: 16 },\n );\n\n const [sizeStyles, sizeRestProps] = getLayoutSizeStyles(sprinkleRestProps);\n\n // Make the component polymorphic\n const Component = as || 'div';\n\n const context = useMemo(\n () => ({ color, variant, default: false }),\n [color, variant],\n );\n\n return (\n <ContainerColoringContext.Provider value={context}>\n <Component\n ref={ref}\n className={clsx(\n containerColorsCSS({ color, variant }),\n containerCSS,\n spacingClasses,\n consumerClassName,\n )}\n style={{\n ...sizeStyles,\n ...consumerStyle,\n }}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n {...sizeRestProps}\n >\n {children}\n </Component>\n </ContainerColoringContext.Provider>\n );\n },\n);\n\n(Container as typeof Container & { displayName: string }).displayName =\n 'Container';\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,UAAU;AACjB,OAAO;AAAA,EACL;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AAEP,SAAS,oBAAoB;AAM7B,SAAS,0BAA0B;AACnC;AAAA,EACE,wBAAwB;AAAA,EACxB,wBAAwB;AAAA,OAGnB;AAmBP,MAAM,2BAA2B,cAAiC;AAAA,EAChE,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AACX,CAAC;AAMM,MAAM,uBAAuB,MAAM;AACxC,SAAO,WAAW,wBAAwB;AAC5C;AAuCO,MAAM,YAE8B;AAAA,EACzC,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,OAAO;AAAA,IACP,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,oBAAoB;AAAA,IACpB,GAAG;AAAA,EACL,GACA,QACG;AACH,UAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,MAC1C;AAAA,MACA,EAAE,SAAS,GAAG;AAAA,IAChB;AAEA,UAAM,CAAC,YAAY,aAAa,IAAI,oBAAoB,iBAAiB;AAGzE,UAAM,YAAY,MAAM;AAExB,UAAM,UAAU;AAAA,MACd,OAAO,EAAE,OAAO,SAAS,SAAS,MAAM;AAAA,MACxC,CAAC,OAAO,OAAO;AAAA,IACjB;AAEA,WACE,oCAAC,yBAAyB,UAAzB,EAAkC,OAAO,WACxC;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT,mBAAmB,EAAE,OAAO,QAAQ,CAAC;AAAA,UACrC;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,OAAO;AAAA,UACL,GAAG;AAAA,UACH,GAAG;AAAA,QACL;AAAA,QACA,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QACjB,GAAG;AAAA;AAAA,MAEH;AAAA,IACH,CACF;AAAA,EAEJ;AACF;AAEC,UAAyD,cACxD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/container/Container.css.ts"],
|
|
4
|
-
"sourcesContent": ["import '../../styles/container.css';\nimport './Container.css';\nexport var containerCSS = '_f32lcd0-0-85-
|
|
4
|
+
"sourcesContent": ["import '../../styles/container.css';\nimport './Container.css';\nexport var containerCSS = '_f32lcd0-0-85-120';"],
|
|
5
5
|
"mappings": "AAAA,OAAO;AACP,OAAO;AACA,IAAI,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
._1thxv8m0-0-85-
|
|
1
|
+
._1thxv8m0-0-85-120 {
|
|
2
2
|
border: none;
|
|
3
3
|
margin: 0;
|
|
4
4
|
overflow-wrap: break-word;
|
|
5
|
-
background-color: var(--_k096v42-0-85-
|
|
5
|
+
background-color: var(--_k096v42-0-85-120);
|
|
6
6
|
}
|
|
7
|
-
._1thxv8m1-0-85-
|
|
7
|
+
._1thxv8m1-0-85-120 {
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: var(--dt-borders-width-default, 1px);
|
|
10
10
|
}
|
|
11
|
-
._1thxv8m2-0-85-
|
|
11
|
+
._1thxv8m2-0-85-120 {
|
|
12
12
|
width: var(--dt-borders-width-default, 1px);
|
|
13
13
|
height: 100%;
|
|
14
14
|
}
|
|
15
|
-
._1thxv8m5-0-85-
|
|
15
|
+
._1thxv8m5-0-85-120 {
|
|
16
16
|
flex-shrink: 0;
|
|
17
17
|
}
|
|
18
|
-
._1thxv8m6-0-85-
|
|
18
|
+
._1thxv8m6-0-85-120 {
|
|
19
19
|
flex-shrink: 0;
|
|
20
20
|
width: var(--dt-borders-width-default, 1px);
|
|
21
21
|
height: auto;
|
|
@@ -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-0-85-
|
|
4
|
+
var dividerCSS = _7a468({ defaultClassName: "_1thxv8m0-0-85-120", variantClassNames: { orientation: { horizontal: "_1thxv8m1-0-85-120", vertical: "_1thxv8m2-0-85-120" }, flexItem: { true: "_1thxv8m3-0-85-120", false: "_1thxv8m4-0-85-120" } }, defaultVariants: {}, compoundVariants: [[{ orientation: "horizontal", flexItem: false }, "_1thxv8m5-0-85-120"], [{ orientation: "vertical", flexItem: true }, "_1thxv8m6-0-85-120"]] });
|
|
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-0-85-
|
|
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-0-85-120',variantClassNames:{orientation:{horizontal:'_1thxv8m1-0-85-120',vertical:'_1thxv8m2-0-85-120'},flexItem:{true:'_1thxv8m3-0-85-120',false:'_1thxv8m4-0-85-120'}},defaultVariants:{},compoundVariants:[[{orientation:'horizontal',flexItem:false},'_1thxv8m5-0-85-120'],[{orientation:'vertical',flexItem:true},'_1thxv8m6-0-85-120']]});"],
|
|
5
5
|
"mappings": "AAAA,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,aAAa,OAAO,EAAC,kBAAiB,sBAAqB,mBAAkB,EAAC,aAAY,EAAC,YAAW,sBAAqB,UAAS,qBAAoB,GAAE,UAAS,EAAC,MAAK,sBAAqB,OAAM,qBAAoB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,aAAY,cAAa,UAAS,MAAK,GAAE,oBAAoB,GAAE,CAAC,EAAC,aAAY,YAAW,UAAS,KAAI,GAAE,oBAAoB,CAAC,EAAC,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,9 @@ import { useCallback, useMemo, useSyncExternalStore } from "react";
|
|
|
2
2
|
function useBreakpoint(queries, ssrInitialValue) {
|
|
3
3
|
const _ssrInitialValue = ssrInitialValue ?? (Array.isArray(queries) ? [] : false);
|
|
4
4
|
const mediaQueryLists = useMemo(() => {
|
|
5
|
+
if (typeof window === "undefined") {
|
|
6
|
+
return [];
|
|
7
|
+
}
|
|
5
8
|
const queryStrings = Array.isArray(queries) ? queries : [queries];
|
|
6
9
|
return queryStrings.map((q) => window.matchMedia(q));
|
|
7
10
|
}, [queries]);
|