@react-spectrum/s2 3.0.0-nightly-e7053dd8f-250108 → 3.0.0-nightly-e4497fdb6-250110
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/dist/Accordion.cjs +3 -3
- package/dist/Accordion.css +2 -2
- package/dist/Accordion.mjs +3 -3
- package/dist/ActionBar.cjs +32 -32
- package/dist/ActionBar.css +34 -34
- package/dist/ActionBar.mjs +32 -32
- package/dist/ActionButton.cjs +61 -61
- package/dist/ActionButton.css +57 -57
- package/dist/ActionButton.mjs +61 -61
- package/dist/ActionButtonGroup.cjs +4 -4
- package/dist/ActionButtonGroup.css +3 -3
- package/dist/ActionButtonGroup.mjs +4 -4
- package/dist/Avatar.cjs +10 -10
- package/dist/Avatar.css +11 -11
- package/dist/Avatar.mjs +10 -10
- package/dist/AvatarGroup.cjs +97 -97
- package/dist/AvatarGroup.css +31 -31
- package/dist/AvatarGroup.mjs +97 -97
- package/dist/Badge.cjs +31 -31
- package/dist/Badge.css +33 -33
- package/dist/Badge.mjs +31 -31
- package/dist/Breadcrumbs.cjs +83 -82
- package/dist/Breadcrumbs.cjs.map +1 -1
- package/dist/Breadcrumbs.css +66 -60
- package/dist/Breadcrumbs.css.map +1 -1
- package/dist/Breadcrumbs.mjs +83 -82
- package/dist/Breadcrumbs.mjs.map +1 -1
- package/dist/Button.cjs +179 -144
- package/dist/Button.cjs.map +1 -1
- package/dist/Button.css +167 -86
- package/dist/Button.css.map +1 -1
- package/dist/Button.mjs +180 -145
- package/dist/Button.mjs.map +1 -1
- package/dist/ButtonGroup.cjs +15 -15
- package/dist/ButtonGroup.css +11 -11
- package/dist/ButtonGroup.mjs +15 -15
- package/dist/Card.cjs +163 -163
- package/dist/Card.css +118 -118
- package/dist/Card.mjs +163 -163
- package/dist/CardView.cjs +13 -13
- package/dist/CardView.css +14 -14
- package/dist/CardView.mjs +13 -13
- package/dist/CenterBaseline.cjs +1 -1
- package/dist/CenterBaseline.css +2 -2
- package/dist/CenterBaseline.mjs +1 -1
- package/dist/Checkbox.cjs +46 -46
- package/dist/Checkbox.css +44 -44
- package/dist/Checkbox.mjs +46 -46
- package/dist/CheckboxGroup.cjs +39 -39
- package/dist/CheckboxGroup.css +32 -32
- package/dist/CheckboxGroup.mjs +39 -39
- package/dist/ClearButton.cjs +5 -5
- package/dist/ClearButton.css +5 -5
- package/dist/ClearButton.mjs +5 -5
- package/dist/CloseButton.cjs +17 -15
- package/dist/CloseButton.cjs.map +1 -1
- package/dist/CloseButton.css +24 -16
- package/dist/CloseButton.css.map +1 -1
- package/dist/CloseButton.mjs +17 -15
- package/dist/CloseButton.mjs.map +1 -1
- package/dist/ColorArea.cjs +9 -9
- package/dist/ColorArea.css +9 -9
- package/dist/ColorArea.mjs +9 -9
- package/dist/ColorField.cjs +29 -29
- package/dist/ColorField.css +24 -24
- package/dist/ColorField.mjs +29 -29
- package/dist/ColorHandle.cjs +9 -9
- package/dist/ColorHandle.css +16 -16
- package/dist/ColorHandle.mjs +9 -9
- package/dist/ColorSlider.cjs +40 -40
- package/dist/ColorSlider.css +42 -42
- package/dist/ColorSlider.mjs +40 -40
- package/dist/ColorSwatch.cjs +6 -6
- package/dist/ColorSwatch.css +14 -14
- package/dist/ColorSwatch.mjs +6 -6
- package/dist/ColorSwatchPicker.cjs +12 -12
- package/dist/ColorSwatchPicker.css +32 -32
- package/dist/ColorSwatchPicker.mjs +12 -12
- package/dist/ColorWheel.cjs +14 -14
- package/dist/ColorWheel.css +14 -14
- package/dist/ColorWheel.mjs +14 -14
- package/dist/ComboBox.cjs +54 -51
- package/dist/ComboBox.cjs.map +1 -1
- package/dist/ComboBox.css +48 -48
- package/dist/ComboBox.css.map +1 -1
- package/dist/ComboBox.mjs +54 -51
- package/dist/ComboBox.mjs.map +1 -1
- package/dist/ContextualHelp.cjs +5 -5
- package/dist/ContextualHelp.css +23 -23
- package/dist/ContextualHelp.mjs +5 -5
- package/dist/CustomDialog.cjs +8 -8
- package/dist/CustomDialog.css +9 -9
- package/dist/CustomDialog.mjs +8 -8
- package/dist/Dialog.cjs +10 -10
- package/dist/Dialog.css +39 -39
- package/dist/Dialog.mjs +10 -10
- package/dist/Disclosure.cjs +53 -53
- package/dist/Disclosure.css +48 -48
- package/dist/Disclosure.mjs +53 -53
- package/dist/Divider.cjs +5 -5
- package/dist/Divider.css +5 -5
- package/dist/Divider.mjs +5 -5
- package/dist/DropZone.cjs +24 -24
- package/dist/DropZone.css +24 -24
- package/dist/DropZone.mjs +24 -24
- package/dist/Field.cjs +107 -107
- package/dist/Field.cjs.map +1 -1
- package/dist/Field.css +69 -69
- package/dist/Field.mjs +107 -107
- package/dist/Field.mjs.map +1 -1
- package/dist/Form.cjs +4 -4
- package/dist/Form.css +3 -3
- package/dist/Form.mjs +4 -4
- package/dist/FullscreenDialog.cjs +5 -5
- package/dist/FullscreenDialog.css +54 -54
- package/dist/FullscreenDialog.mjs +5 -5
- package/dist/IllustratedMessage.cjs +126 -126
- package/dist/IllustratedMessage.css +58 -58
- package/dist/IllustratedMessage.mjs +126 -126
- package/dist/Image.cjs +10 -10
- package/dist/Image.css +11 -11
- package/dist/Image.mjs +10 -10
- package/dist/InlineAlert.cjs +50 -50
- package/dist/InlineAlert.css +44 -44
- package/dist/InlineAlert.mjs +50 -50
- package/dist/Link.cjs +27 -27
- package/dist/Link.css +28 -28
- package/dist/Link.mjs +27 -27
- package/dist/Menu.cjs +292 -221
- package/dist/Menu.cjs.map +1 -1
- package/dist/Menu.css +115 -113
- package/dist/Menu.css.map +1 -1
- package/dist/Menu.mjs +292 -221
- package/dist/Menu.mjs.map +1 -1
- package/dist/Meter.cjs +51 -51
- package/dist/Meter.css +51 -51
- package/dist/Meter.mjs +51 -51
- package/dist/Modal.cjs +37 -37
- package/dist/Modal.css +35 -35
- package/dist/Modal.mjs +37 -37
- package/dist/NumberField.cjs +60 -60
- package/dist/NumberField.css +66 -66
- package/dist/NumberField.mjs +60 -60
- package/dist/Picker.cjs +117 -114
- package/dist/Picker.cjs.map +1 -1
- package/dist/Picker.css +80 -80
- package/dist/Picker.css.map +1 -1
- package/dist/Picker.mjs +117 -114
- package/dist/Picker.mjs.map +1 -1
- package/dist/Popover.cjs +40 -40
- package/dist/Popover.css +37 -37
- package/dist/Popover.mjs +40 -40
- package/dist/ProgressBar.cjs +63 -63
- package/dist/ProgressBar.css +61 -61
- package/dist/ProgressBar.mjs +63 -63
- package/dist/ProgressCircle.cjs +3 -3
- package/dist/ProgressCircle.css +2 -2
- package/dist/ProgressCircle.mjs +3 -3
- package/dist/Provider.cjs +4 -4
- package/dist/Provider.css +5 -5
- package/dist/Provider.mjs +4 -4
- package/dist/Radio.cjs +46 -46
- package/dist/Radio.css +44 -44
- package/dist/Radio.mjs +46 -46
- package/dist/RadioGroup.cjs +37 -37
- package/dist/RadioGroup.css +32 -32
- package/dist/RadioGroup.mjs +37 -37
- package/dist/SearchField.cjs +31 -31
- package/dist/SearchField.css +29 -29
- package/dist/SearchField.mjs +31 -31
- package/dist/SegmentedControl.cjs +54 -54
- package/dist/SegmentedControl.css +55 -55
- package/dist/SegmentedControl.mjs +54 -54
- package/dist/Slider.cjs +101 -101
- package/dist/Slider.css +82 -82
- package/dist/Slider.mjs +101 -101
- package/dist/StatusLight.cjs +26 -26
- package/dist/StatusLight.css +26 -26
- package/dist/StatusLight.mjs +26 -26
- package/dist/Switch.cjs +47 -47
- package/dist/Switch.css +42 -42
- package/dist/Switch.mjs +47 -47
- package/dist/TableView.cjs +137 -137
- package/dist/TableView.css +76 -76
- package/dist/TableView.mjs +137 -137
- package/dist/Tabs.cjs +60 -60
- package/dist/Tabs.css +53 -53
- package/dist/Tabs.mjs +60 -60
- package/dist/TabsPicker.cjs +69 -69
- package/dist/TabsPicker.css +62 -62
- package/dist/TabsPicker.mjs +69 -69
- package/dist/TagGroup.cjs +108 -108
- package/dist/TagGroup.css +85 -85
- package/dist/TagGroup.mjs +108 -108
- package/dist/TextField.cjs +36 -36
- package/dist/TextField.css +33 -33
- package/dist/TextField.mjs +36 -36
- package/dist/ToggleButton.cjs +3 -3
- package/dist/ToggleButton.css +7 -7
- package/dist/ToggleButton.mjs +3 -3
- package/dist/Tooltip.cjs +32 -32
- package/dist/Tooltip.css +34 -34
- package/dist/Tooltip.mjs +32 -32
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/icons/Skeleton.cjs +2 -2
- package/icons/Skeleton.css +5 -5
- package/icons/Skeleton.mjs +2 -2
- package/package.json +19 -19
- package/src/Button.tsx +107 -75
- package/src/CloseButton.tsx +4 -0
- package/src/ComboBox.tsx +2 -1
- package/src/Menu.tsx +40 -17
- package/src/Picker.tsx +2 -1
- package/style/dist/spectrum-theme.cjs +54 -5
- package/style/dist/spectrum-theme.cjs.map +1 -1
- package/style/dist/spectrum-theme.mjs +54 -5
- package/style/dist/spectrum-theme.mjs.map +1 -1
- package/style/dist/style-macro.cjs +1 -1
- package/style/dist/style-macro.cjs.map +1 -1
- package/style/dist/style-macro.mjs +1 -1
- package/style/dist/style-macro.mjs.map +1 -1
- package/style/dist/types.d.ts +10 -3
- package/style/dist/types.d.ts.map +1 -1
- package/style/spectrum-theme.ts +66 -7
- package/style/style-macro.ts +3 -3
- package/style/types.ts +1 -1
package/dist/CloseButton.css
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
@layer _.a {
|
|
6
|
-
.
|
|
6
|
+
._Ma {
|
|
7
7
|
outline-style: none;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.
|
|
10
|
+
._Mb {
|
|
11
11
|
outline-style: solid;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
outline-color: lch(from var(--s2-container-bg) calc((49.44 - l) * infinity) 0 0 / 1);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
22
|
+
._Oc {
|
|
23
23
|
outline-width: 2px;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.
|
|
26
|
+
._N-3t1z {
|
|
27
27
|
outline-offset: 2px;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
--s2-container-bg: black;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.
|
|
38
|
+
._0d {
|
|
39
39
|
display: flex;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.
|
|
42
|
+
._2c {
|
|
43
43
|
align-items: center;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.
|
|
46
|
+
._3d {
|
|
47
47
|
justify-content: center;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -87,23 +87,23 @@
|
|
|
87
87
|
height: calc(3rem * var(--s2-scale));
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.
|
|
90
|
+
._9-3t1x {
|
|
91
91
|
flex-shrink: 0;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.
|
|
94
|
+
._wf {
|
|
95
95
|
border-start-start-radius: 9999px;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.
|
|
98
|
+
._xf {
|
|
99
99
|
border-start-end-radius: 9999px;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
.
|
|
102
|
+
._yf {
|
|
103
103
|
border-end-start-radius: 9999px;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.
|
|
106
|
+
._zf {
|
|
107
107
|
border-end-end-radius: 9999px;
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -127,15 +127,15 @@
|
|
|
127
127
|
border-style: none;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.
|
|
131
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, translate, scale, rotate, filter,
|
|
130
|
+
._Pa {
|
|
131
|
+
transition-property: color, background-color, var(--gp), border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, translate, scale, rotate, filter, backdrop-filter;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
.
|
|
134
|
+
._R-375x7f {
|
|
135
135
|
transition-duration: .15s;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
.
|
|
138
|
+
._Sa {
|
|
139
139
|
transition-timing-function: cubic-bezier(.45, 0, .4, 1);
|
|
140
140
|
}
|
|
141
141
|
|
|
@@ -183,6 +183,14 @@
|
|
|
183
183
|
.da_____M {
|
|
184
184
|
outline-color: highlight;
|
|
185
185
|
}
|
|
186
|
+
|
|
187
|
+
.-rwx0fg_a-a_____K {
|
|
188
|
+
--iconPrimary: ButtonText;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.-rwx0fg_a-a_____O {
|
|
192
|
+
--iconPrimary: GrayText;
|
|
193
|
+
}
|
|
186
194
|
}
|
|
187
195
|
}
|
|
188
196
|
/*# sourceMappingURL=CloseButton.css.map */
|
package/dist/CloseButton.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAyCe;;;;AAAA;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;AAAA;;AAAA;EAAA;IAAA","sources":["packages/@react-spectrum/s2/src/CloseButton.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {baseColor, focusRing, style} from '../style' with {type: 'macro'};\nimport {Button, ButtonProps, ContextValue} from 'react-aria-components';\nimport {createContext, forwardRef} from 'react';\nimport CrossIcon from '../ui-icons/Cross';\nimport {FocusableRef, FocusableRefValue} from '@react-types/shared';\nimport {getAllowedOverrides, staticColor, StyleProps} from './style-utils' with {type: 'macro'};\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {pressScale} from './pressScale';\nimport {useFocusableRef} from '@react-spectrum/utils';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface CloseButtonProps extends Pick<ButtonProps, 'isDisabled' | 'onPress'>, StyleProps {\n /**\n * The size of the CloseButton.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL',\n /** The static color style to apply. Useful when the Button appears over a color background. */\n staticColor?: 'white' | 'black' | 'auto'\n}\n\nconst hoverBackground = {\n default: 'gray-200',\n isStaticColor: 'transparent-overlay-200'\n} as const;\n\nconst styles = style({\n ...focusRing(),\n ...staticColor(),\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n size: 'control',\n flexShrink: 0,\n borderRadius: 'full',\n padding: 0,\n borderStyle: 'none',\n transition: 'default',\n backgroundColor: {\n default: 'transparent',\n isHovered: hoverBackground,\n isFocusVisible: hoverBackground,\n isPressed: hoverBackground\n },\n '--iconPrimary': {\n type: 'color',\n value: {\n default: 'neutral',\n isDisabled: 'disabled',\n isStaticColor: {\n default: baseColor('transparent-overlay-800'),\n isDisabled: 'transparent-overlay-400'\n }\n }\n },\n outlineColor: {\n default: 'focus-ring',\n isStaticColor: 'transparent-overlay-1000',\n forcedColors: 'Highlight'\n }\n}, getAllowedOverrides());\n\nexport const CloseButtonContext = createContext<ContextValue<CloseButtonProps, FocusableRefValue<HTMLButtonElement>>>(null);\n\n/**\n * A CloseButton allows a user to dismiss a dialog.\n */\nexport const CloseButton = forwardRef(function CloseButton(props: CloseButtonProps, ref: FocusableRef<HTMLButtonElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, CloseButtonContext);\n let {UNSAFE_style, UNSAFE_className = ''} = props;\n let domRef = useFocusableRef(ref);\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2');\n return (\n <Button\n {...props}\n ref={domRef}\n slot=\"close\"\n aria-label={props['aria-label'] || stringFormatter.format('dialog.dismiss')}\n style={pressScale(domRef, UNSAFE_style)}\n className={renderProps => UNSAFE_className + styles({...renderProps, staticColor: props.staticColor, isStaticColor: !!props.staticColor}, props.styles)}>\n <CrossIcon size={({S: 'L', M: 'XL', L: 'XXL', XL: 'XXXL'} as const)[props.size || 'M']} />\n </Button>\n );\n});\n"],"names":[],"version":3,"file":"CloseButton.css.map"}
|
|
1
|
+
{"mappings":"AAyCe;;;;AAAA;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;AAAA;;AAAA;EAAA;IAAA;;;;IAAA;;;;IAAA","sources":["packages/@react-spectrum/s2/src/CloseButton.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {baseColor, focusRing, style} from '../style' with {type: 'macro'};\nimport {Button, ButtonProps, ContextValue} from 'react-aria-components';\nimport {createContext, forwardRef} from 'react';\nimport CrossIcon from '../ui-icons/Cross';\nimport {FocusableRef, FocusableRefValue} from '@react-types/shared';\nimport {getAllowedOverrides, staticColor, StyleProps} from './style-utils' with {type: 'macro'};\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {pressScale} from './pressScale';\nimport {useFocusableRef} from '@react-spectrum/utils';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface CloseButtonProps extends Pick<ButtonProps, 'isDisabled' | 'onPress'>, StyleProps {\n /**\n * The size of the CloseButton.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL',\n /** The static color style to apply. Useful when the Button appears over a color background. */\n staticColor?: 'white' | 'black' | 'auto'\n}\n\nconst hoverBackground = {\n default: 'gray-200',\n isStaticColor: 'transparent-overlay-200'\n} as const;\n\nconst styles = style({\n ...focusRing(),\n ...staticColor(),\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n size: 'control',\n flexShrink: 0,\n borderRadius: 'full',\n padding: 0,\n borderStyle: 'none',\n transition: 'default',\n backgroundColor: {\n default: 'transparent',\n isHovered: hoverBackground,\n isFocusVisible: hoverBackground,\n isPressed: hoverBackground\n },\n '--iconPrimary': {\n type: 'color',\n value: {\n default: 'neutral',\n isDisabled: 'disabled',\n isStaticColor: {\n default: baseColor('transparent-overlay-800'),\n isDisabled: 'transparent-overlay-400'\n },\n forcedColors: {\n default: 'ButtonText',\n isDisabled: 'GrayText'\n }\n }\n },\n outlineColor: {\n default: 'focus-ring',\n isStaticColor: 'transparent-overlay-1000',\n forcedColors: 'Highlight'\n }\n}, getAllowedOverrides());\n\nexport const CloseButtonContext = createContext<ContextValue<CloseButtonProps, FocusableRefValue<HTMLButtonElement>>>(null);\n\n/**\n * A CloseButton allows a user to dismiss a dialog.\n */\nexport const CloseButton = forwardRef(function CloseButton(props: CloseButtonProps, ref: FocusableRef<HTMLButtonElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, CloseButtonContext);\n let {UNSAFE_style, UNSAFE_className = ''} = props;\n let domRef = useFocusableRef(ref);\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2');\n return (\n <Button\n {...props}\n ref={domRef}\n slot=\"close\"\n aria-label={props['aria-label'] || stringFormatter.format('dialog.dismiss')}\n style={pressScale(domRef, UNSAFE_style)}\n className={renderProps => UNSAFE_className + styles({...renderProps, staticColor: props.staticColor, isStaticColor: !!props.staticColor}, props.styles)}>\n <CrossIcon size={({S: 'L', M: 'XL', L: 'XXL', XL: 'XXXL'} as const)[props.size || 'M']} />\n </Button>\n );\n});\n"],"names":[],"version":3,"file":"CloseButton.css.map"}
|
package/dist/CloseButton.mjs
CHANGED
|
@@ -38,26 +38,26 @@ const $a9cda54c4f47ce52$var$hoverBackground = {
|
|
|
38
38
|
};
|
|
39
39
|
const $a9cda54c4f47ce52$var$styles = function anonymous(props, overrides) {
|
|
40
40
|
let rules = " .";
|
|
41
|
-
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|_9|
|
|
41
|
+
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|__a|_9|h|_6|_5|__B|__d|__e|__b|__c|V|__R|Y|_a|W|X|l|q|r)[^\s]+/g) || [];
|
|
42
42
|
rules += matches.join('');
|
|
43
43
|
let $l = false;
|
|
44
|
-
let $
|
|
44
|
+
let $_9 = false;
|
|
45
45
|
for (let p of matches){
|
|
46
46
|
if (/^\s*l/.test(p)) $l = true;
|
|
47
|
-
if (/^\s*
|
|
47
|
+
if (/^\s*_9/.test(p)) $_9 = true;
|
|
48
48
|
}
|
|
49
|
-
if (props.isFocusVisible) rules += '
|
|
50
|
-
else rules += '
|
|
49
|
+
if (props.isFocusVisible) rules += ' _Mb';
|
|
50
|
+
else rules += ' _Ma';
|
|
51
51
|
rules += ' da_____M';
|
|
52
52
|
if (props.isStaticColor) rules += ' d_____G';
|
|
53
53
|
else rules += ' dx';
|
|
54
|
-
rules += '
|
|
55
|
-
rules += '
|
|
54
|
+
rules += ' _Oc';
|
|
55
|
+
rules += ' _N-3t1z';
|
|
56
56
|
if (props.staticColor === "white") rules += ' -_1de2x0q_b-b';
|
|
57
57
|
else if (props.staticColor === "black") rules += ' -_1de2x0q_b-c';
|
|
58
|
-
rules += '
|
|
59
|
-
rules += '
|
|
60
|
-
rules += '
|
|
58
|
+
rules += ' _0d';
|
|
59
|
+
rules += ' _2c';
|
|
60
|
+
rules += ' _3d';
|
|
61
61
|
if (!$l) {
|
|
62
62
|
if (props.size === "XL") rules += ' lj';
|
|
63
63
|
else if (props.size === "L") rules += ' li';
|
|
@@ -70,19 +70,19 @@ const $a9cda54c4f47ce52$var$styles = function anonymous(props, overrides) {
|
|
|
70
70
|
else if (props.size === "S") rules += ' kh';
|
|
71
71
|
else if (props.size === "XS") rules += ' kg';
|
|
72
72
|
else rules += ' kf';
|
|
73
|
-
if (!$
|
|
74
|
-
rules += ' _vf';
|
|
73
|
+
if (!$_9) rules += ' _9-3t1x';
|
|
75
74
|
rules += ' _wf';
|
|
76
75
|
rules += ' _xf';
|
|
77
76
|
rules += ' _yf';
|
|
77
|
+
rules += ' _zf';
|
|
78
78
|
rules += ' Ea';
|
|
79
79
|
rules += ' Fa';
|
|
80
80
|
rules += ' Ca';
|
|
81
81
|
rules += ' Da';
|
|
82
82
|
rules += ' wf';
|
|
83
|
-
rules += '
|
|
84
|
-
rules += '
|
|
85
|
-
rules += '
|
|
83
|
+
rules += ' _Pa';
|
|
84
|
+
rules += ' _R-375x7f';
|
|
85
|
+
rules += ' _Sa';
|
|
86
86
|
if (props.isPressed) {
|
|
87
87
|
if (props.isStaticColor) rules += ' b_____y';
|
|
88
88
|
else rules += ' bh';
|
|
@@ -93,6 +93,8 @@ const $a9cda54c4f47ce52$var$styles = function anonymous(props, overrides) {
|
|
|
93
93
|
if (props.isStaticColor) rules += ' b_____y';
|
|
94
94
|
else rules += ' bh';
|
|
95
95
|
} else rules += ' ba';
|
|
96
|
+
if (props.isDisabled) rules += ' -rwx0fg_a-a_____O';
|
|
97
|
+
else rules += ' -rwx0fg_a-a_____K';
|
|
96
98
|
if (props.isStaticColor) {
|
|
97
99
|
if (props.isDisabled) rules += ' -rwx0fg_a-_____A';
|
|
98
100
|
else {
|
package/dist/CloseButton.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AA0BD,MAAM,wCAAkB;IACtB,SAAS;IACT,eAAe;AACjB;AAEA,MAAM
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AA0BD,MAAM,wCAAkB;IACtB,SAAS;IACT,eAAe;AACjB;AAEA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCC,MAAM,0DAAqB,CAAA,GAAA,oBAAY,EAAwE;AAK/G,MAAM,0DAAc,CAAA,GAAA,iBAAS,EAAE,SAAS,YAAY,KAAuB,EAAE,GAAoC;IACtH,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,gBAAC,YAAY,oBAAE,mBAAmB,IAAG,GAAG;IAC5C,IAAI,SAAS,CAAA,GAAA,sBAAc,EAAE;IAC7B,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,+CAAW,GAAG;IAChE,qBACE,gBAAC,CAAA,GAAA,aAAK;QACH,GAAG,KAAK;QACT,KAAK;QACL,MAAK;QACL,cAAY,KAAK,CAAC,aAAa,IAAI,gBAAgB,MAAM,CAAC;QAC1D,OAAO,CAAA,GAAA,yCAAS,EAAE,QAAQ;QAC1B,WAAW,CAAA,cAAe,mBAAmB,6BAAO;gBAAC,GAAG,WAAW;gBAAE,aAAa,MAAM,WAAW;gBAAE,eAAe,CAAC,CAAC,MAAM,WAAW;YAAA,GAAG,MAAM,MAAM;kBACtJ,cAAA,gBAAC,CAAA,GAAA,wCAAQ;YAAE,MAAM,AAAC;gBAAC,GAAG;gBAAK,GAAG;gBAAM,GAAG;gBAAO,IAAI;YAAM,CAAW,CAAC,MAAM,IAAI,IAAI,IAAI;;;AAG5F","sources":["packages/@react-spectrum/s2/src/CloseButton.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {baseColor, focusRing, style} from '../style' with {type: 'macro'};\nimport {Button, ButtonProps, ContextValue} from 'react-aria-components';\nimport {createContext, forwardRef} from 'react';\nimport CrossIcon from '../ui-icons/Cross';\nimport {FocusableRef, FocusableRefValue} from '@react-types/shared';\nimport {getAllowedOverrides, staticColor, StyleProps} from './style-utils' with {type: 'macro'};\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {pressScale} from './pressScale';\nimport {useFocusableRef} from '@react-spectrum/utils';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface CloseButtonProps extends Pick<ButtonProps, 'isDisabled' | 'onPress'>, StyleProps {\n /**\n * The size of the CloseButton.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL',\n /** The static color style to apply. Useful when the Button appears over a color background. */\n staticColor?: 'white' | 'black' | 'auto'\n}\n\nconst hoverBackground = {\n default: 'gray-200',\n isStaticColor: 'transparent-overlay-200'\n} as const;\n\nconst styles = style({\n ...focusRing(),\n ...staticColor(),\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n size: 'control',\n flexShrink: 0,\n borderRadius: 'full',\n padding: 0,\n borderStyle: 'none',\n transition: 'default',\n backgroundColor: {\n default: 'transparent',\n isHovered: hoverBackground,\n isFocusVisible: hoverBackground,\n isPressed: hoverBackground\n },\n '--iconPrimary': {\n type: 'color',\n value: {\n default: 'neutral',\n isDisabled: 'disabled',\n isStaticColor: {\n default: baseColor('transparent-overlay-800'),\n isDisabled: 'transparent-overlay-400'\n },\n forcedColors: {\n default: 'ButtonText',\n isDisabled: 'GrayText'\n }\n }\n },\n outlineColor: {\n default: 'focus-ring',\n isStaticColor: 'transparent-overlay-1000',\n forcedColors: 'Highlight'\n }\n}, getAllowedOverrides());\n\nexport const CloseButtonContext = createContext<ContextValue<CloseButtonProps, FocusableRefValue<HTMLButtonElement>>>(null);\n\n/**\n * A CloseButton allows a user to dismiss a dialog.\n */\nexport const CloseButton = forwardRef(function CloseButton(props: CloseButtonProps, ref: FocusableRef<HTMLButtonElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, CloseButtonContext);\n let {UNSAFE_style, UNSAFE_className = ''} = props;\n let domRef = useFocusableRef(ref);\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2');\n return (\n <Button\n {...props}\n ref={domRef}\n slot=\"close\"\n aria-label={props['aria-label'] || stringFormatter.format('dialog.dismiss')}\n style={pressScale(domRef, UNSAFE_style)}\n className={renderProps => UNSAFE_className + styles({...renderProps, staticColor: props.staticColor, isStaticColor: !!props.staticColor}, props.styles)}>\n <CrossIcon size={({S: 'L', M: 'XL', L: 'XXL', XL: 'XXXL'} as const)[props.size || 'M']} />\n </Button>\n );\n});\n"],"names":[],"version":3,"file":"CloseButton.mjs.map"}
|
package/dist/ColorArea.cjs
CHANGED
|
@@ -46,35 +46,35 @@ const $4c6639e34959fe36$export$b2103f68a961418e = /*#__PURE__*/ (0, $lfrPf$react
|
|
|
46
46
|
}),
|
|
47
47
|
className: (renderProps)=>UNSAFE_className + function anonymous(props, overrides) {
|
|
48
48
|
let rules = " .";
|
|
49
|
-
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|_9|
|
|
49
|
+
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|__a|_9|h|_6|_5|__B|__d|__e|__b|__c|V|__R|Y|_a|W|X|l|q|r|k|o|p)[^\s]+/g) || [];
|
|
50
50
|
rules += matches.join('');
|
|
51
|
-
let $
|
|
51
|
+
let $V = false;
|
|
52
52
|
let $l = false;
|
|
53
53
|
let $k = false;
|
|
54
54
|
let $q = false;
|
|
55
55
|
let $o = false;
|
|
56
56
|
for (let p of matches){
|
|
57
|
-
if (/^\s*
|
|
57
|
+
if (/^\s*V/.test(p)) $V = true;
|
|
58
58
|
if (/^\s*l/.test(p)) $l = true;
|
|
59
59
|
if (/^\s*k/.test(p)) $k = true;
|
|
60
60
|
if (/^\s*q/.test(p)) $q = true;
|
|
61
61
|
if (/^\s*o/.test(p)) $o = true;
|
|
62
62
|
}
|
|
63
|
-
if (!$
|
|
63
|
+
if (!$V) rules += ' Vc';
|
|
64
64
|
if (!$l) rules += ' l___u';
|
|
65
65
|
if (!$k) rules += ' k___u';
|
|
66
66
|
if (!$q) rules += ' q_q';
|
|
67
67
|
if (!$o) rules += ' o_q';
|
|
68
|
-
rules += ' _vc';
|
|
69
68
|
rules += ' _wc';
|
|
70
69
|
rules += ' _xc';
|
|
71
70
|
rules += ' _yc';
|
|
71
|
+
rules += ' _zc';
|
|
72
72
|
rules += ' da_____I';
|
|
73
73
|
rules += ' dp10';
|
|
74
|
-
rules += '
|
|
75
|
-
rules += '
|
|
76
|
-
if (props.isDisabled) rules += '
|
|
77
|
-
else rules += '
|
|
74
|
+
rules += ' _Ob';
|
|
75
|
+
rules += ' _N-3hmpv';
|
|
76
|
+
if (props.isDisabled) rules += ' _Ma';
|
|
77
|
+
else rules += ' _Mb';
|
|
78
78
|
if (props.isDisabled) rules += ' bg';
|
|
79
79
|
return rules;
|
|
80
80
|
}(renderProps, styles),
|
package/dist/ColorArea.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
@layer _.a {
|
|
6
|
-
.
|
|
6
|
+
.Vc {
|
|
7
7
|
position: relative;
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
min-height: calc(4rem * var(--s2-scale));
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.
|
|
26
|
+
._wc {
|
|
27
27
|
border-start-start-radius: .5rem;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
._xc {
|
|
31
31
|
border-start-end-radius: .5rem;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.
|
|
34
|
+
._yc {
|
|
35
35
|
border-end-start-radius: .5rem;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.
|
|
38
|
+
._zc {
|
|
39
39
|
border-end-end-radius: .5rem;
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
outline-color: var(--lightningcss-light, #0000001a) var(--lightningcss-dark, #ffffff1a);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.
|
|
46
|
+
._Ob {
|
|
47
47
|
outline-width: 1px;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.
|
|
50
|
+
._N-3hmpv {
|
|
51
51
|
outline-offset: -1px;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.
|
|
54
|
+
._Mb {
|
|
55
55
|
outline-style: solid;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.
|
|
58
|
+
._Ma {
|
|
59
59
|
outline-style: none;
|
|
60
60
|
}
|
|
61
61
|
|
package/dist/ColorArea.mjs
CHANGED
|
@@ -39,35 +39,35 @@ const $40a2b649525568ab$export$b2103f68a961418e = /*#__PURE__*/ (0, $dNfSU$forwa
|
|
|
39
39
|
}),
|
|
40
40
|
className: (renderProps)=>UNSAFE_className + function anonymous(props, overrides) {
|
|
41
41
|
let rules = " .";
|
|
42
|
-
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|_9|
|
|
42
|
+
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|__a|_9|h|_6|_5|__B|__d|__e|__b|__c|V|__R|Y|_a|W|X|l|q|r|k|o|p)[^\s]+/g) || [];
|
|
43
43
|
rules += matches.join('');
|
|
44
|
-
let $
|
|
44
|
+
let $V = false;
|
|
45
45
|
let $l = false;
|
|
46
46
|
let $k = false;
|
|
47
47
|
let $q = false;
|
|
48
48
|
let $o = false;
|
|
49
49
|
for (let p of matches){
|
|
50
|
-
if (/^\s*
|
|
50
|
+
if (/^\s*V/.test(p)) $V = true;
|
|
51
51
|
if (/^\s*l/.test(p)) $l = true;
|
|
52
52
|
if (/^\s*k/.test(p)) $k = true;
|
|
53
53
|
if (/^\s*q/.test(p)) $q = true;
|
|
54
54
|
if (/^\s*o/.test(p)) $o = true;
|
|
55
55
|
}
|
|
56
|
-
if (!$
|
|
56
|
+
if (!$V) rules += ' Vc';
|
|
57
57
|
if (!$l) rules += ' l___u';
|
|
58
58
|
if (!$k) rules += ' k___u';
|
|
59
59
|
if (!$q) rules += ' q_q';
|
|
60
60
|
if (!$o) rules += ' o_q';
|
|
61
|
-
rules += ' _vc';
|
|
62
61
|
rules += ' _wc';
|
|
63
62
|
rules += ' _xc';
|
|
64
63
|
rules += ' _yc';
|
|
64
|
+
rules += ' _zc';
|
|
65
65
|
rules += ' da_____I';
|
|
66
66
|
rules += ' dp10';
|
|
67
|
-
rules += '
|
|
68
|
-
rules += '
|
|
69
|
-
if (props.isDisabled) rules += '
|
|
70
|
-
else rules += '
|
|
67
|
+
rules += ' _Ob';
|
|
68
|
+
rules += ' _N-3hmpv';
|
|
69
|
+
if (props.isDisabled) rules += ' _Ma';
|
|
70
|
+
else rules += ' _Mb';
|
|
71
71
|
if (props.isDisabled) rules += ' bg';
|
|
72
72
|
return rules;
|
|
73
73
|
}(renderProps, styles),
|
package/dist/ColorField.cjs
CHANGED
|
@@ -55,51 +55,51 @@ const $c7ab41f1e9757931$export$b865d4358897bb17 = /*#__PURE__*/ (0, $4UooL$react
|
|
|
55
55
|
style: UNSAFE_style,
|
|
56
56
|
className: UNSAFE_className + function anonymous(props, overrides) {
|
|
57
57
|
let rules = " .";
|
|
58
|
-
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|_9|
|
|
58
|
+
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|__a|_9|h|_6|_5|__B|__d|__e|__b|__c|V|__R|Y|_a|W|X|l|q|r)[^\s]+/g) || [];
|
|
59
59
|
rules += matches.join('');
|
|
60
|
-
let $__a = false;
|
|
61
60
|
let $__b = false;
|
|
61
|
+
let $__c = false;
|
|
62
62
|
for (let p of matches){
|
|
63
|
-
if (/^\s*__a/.test(p)) $__a = true;
|
|
64
63
|
if (/^\s*__b/.test(p)) $__b = true;
|
|
64
|
+
if (/^\s*__c/.test(p)) $__c = true;
|
|
65
65
|
}
|
|
66
|
-
rules += '
|
|
67
|
-
if (!$__a) {
|
|
68
|
-
if (props.isInForm) rules += ' __a-3t1y';
|
|
69
|
-
}
|
|
66
|
+
rules += ' _0f';
|
|
70
67
|
if (!$__b) {
|
|
68
|
+
if (props.isInForm) rules += ' __b-3t1y';
|
|
69
|
+
}
|
|
70
|
+
if (!$__c) {
|
|
71
71
|
if (props.isInForm) {
|
|
72
|
-
if (props.labelPosition === "side") rules += '
|
|
72
|
+
if (props.labelPosition === "side") rules += ' __c-yqnebx';
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
if (props.isInForm) rules += '
|
|
75
|
+
if (props.isInForm) rules += ' __i-1a97rzt';
|
|
76
76
|
else {
|
|
77
|
-
if (props.labelPosition === "side") rules += '
|
|
78
|
-
else if (props.labelPosition === "top") rules += '
|
|
77
|
+
if (props.labelPosition === "side") rules += ' __i-ar5vcf';
|
|
78
|
+
else if (props.labelPosition === "top") rules += ' __i-2wzs0i';
|
|
79
79
|
}
|
|
80
|
-
if (props.labelPosition === "side") rules += '
|
|
81
|
-
else if (props.labelPosition === "top") rules += '
|
|
82
|
-
if (props.labelPosition === "side") rules += '
|
|
83
|
-
else if (props.labelPosition === "top") rules += '
|
|
80
|
+
if (props.labelPosition === "side") rules += ' __j-ar5vcf';
|
|
81
|
+
else if (props.labelPosition === "top") rules += ' __j-1a6w430';
|
|
82
|
+
if (props.labelPosition === "side") rules += ' __k-18h2yqz';
|
|
83
|
+
else if (props.labelPosition === "top") rules += ' __k-1srn173';
|
|
84
84
|
if (props.size === "XL") {
|
|
85
|
-
rules += '
|
|
86
|
-
rules += '
|
|
85
|
+
rules += ' _ebj';
|
|
86
|
+
rules += ' _ei';
|
|
87
87
|
} else if (props.size === "L") {
|
|
88
|
-
rules += '
|
|
89
|
-
rules += '
|
|
88
|
+
rules += ' _ebh';
|
|
89
|
+
rules += ' _eg';
|
|
90
90
|
} else if (props.size === "S") {
|
|
91
|
-
rules += '
|
|
92
|
-
rules += '
|
|
91
|
+
rules += ' _ebd';
|
|
92
|
+
rules += ' _ec';
|
|
93
93
|
} else if (props.size === "XS") {
|
|
94
|
-
rules += '
|
|
95
|
-
rules += '
|
|
94
|
+
rules += ' _ebb';
|
|
95
|
+
rules += ' _ea';
|
|
96
96
|
} else {
|
|
97
|
-
rules += '
|
|
98
|
-
rules += '
|
|
97
|
+
rules += ' _ebf';
|
|
98
|
+
rules += ' _ee';
|
|
99
99
|
}
|
|
100
|
-
rules += '
|
|
101
|
-
rules += '
|
|
102
|
-
rules += '
|
|
100
|
+
rules += ' _2d';
|
|
101
|
+
rules += ' _g-1x99dlob';
|
|
102
|
+
rules += ' _ga';
|
|
103
103
|
if (props.size === "XL") rules += ' -aqrvqh_k-j';
|
|
104
104
|
else if (props.size === "L") rules += ' -aqrvqh_k-i';
|
|
105
105
|
else if (props.size === "S") rules += ' -aqrvqh_k-h';
|
|
@@ -107,7 +107,7 @@ const $c7ab41f1e9757931$export$b865d4358897bb17 = /*#__PURE__*/ (0, $4UooL$react
|
|
|
107
107
|
else rules += ' -aqrvqh_k-f';
|
|
108
108
|
rules += ' -_1inj1bc_i--prjw07';
|
|
109
109
|
rules += ' je';
|
|
110
|
-
rules += '
|
|
110
|
+
rules += ' __S-yksgrp';
|
|
111
111
|
return rules;
|
|
112
112
|
}({
|
|
113
113
|
size: props.size,
|
package/dist/ColorField.css
CHANGED
|
@@ -3,74 +3,74 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
@layer _.a {
|
|
6
|
-
.
|
|
6
|
+
._0f {
|
|
7
7
|
display: grid;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.
|
|
10
|
+
.__b-3t1y {
|
|
11
11
|
grid-column-start: 1;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.
|
|
14
|
+
.__c-yqnebx {
|
|
15
15
|
grid-column-end: span 2;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.
|
|
18
|
+
.__i-2wzs0i {
|
|
19
19
|
grid-template-columns: 1fr;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
22
|
+
.__i-ar5vcf {
|
|
23
23
|
grid-template-columns: auto 1fr;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.
|
|
26
|
+
.__i-1a97rzt {
|
|
27
27
|
grid-template-columns: subgrid;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
.__j-1a6w430 {
|
|
31
31
|
grid-template-rows: auto 1fr auto;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.
|
|
34
|
+
.__j-ar5vcf {
|
|
35
35
|
grid-template-rows: auto 1fr;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.
|
|
38
|
+
.__k-1srn173 {
|
|
39
39
|
grid-template-areas: "label"
|
|
40
40
|
"input"
|
|
41
41
|
"helptext";
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.
|
|
44
|
+
.__k-18h2yqz {
|
|
45
45
|
grid-template-areas: "label input"
|
|
46
46
|
"label helptext";
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.
|
|
49
|
+
._ee {
|
|
50
50
|
font-size: .875rem;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.
|
|
53
|
+
._ea {
|
|
54
54
|
font-size: .6875rem;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.
|
|
57
|
+
._ec {
|
|
58
58
|
font-size: .75rem;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.
|
|
61
|
+
._eg {
|
|
62
62
|
font-size: 1rem;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.
|
|
65
|
+
._ei {
|
|
66
66
|
font-size: 1.125rem;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.
|
|
69
|
+
._2d {
|
|
70
70
|
align-items: baseline;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.
|
|
73
|
+
._ga {
|
|
74
74
|
line-height: 1.3;
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -102,13 +102,13 @@
|
|
|
102
102
|
column-gap: .75rem;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
.
|
|
105
|
+
.__S-yksgrp {
|
|
106
106
|
-webkit-tap-highlight-color: #0000;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
@layer _.b {
|
|
111
|
-
.
|
|
111
|
+
._g-1x99dlob:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
|
|
112
112
|
line-height: 1.5;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -117,23 +117,23 @@
|
|
|
117
117
|
|
|
118
118
|
@layer _.b.b {
|
|
119
119
|
@media not ((hover: hover) and (pointer: fine)) {
|
|
120
|
-
.
|
|
120
|
+
._ebf {
|
|
121
121
|
font-size: 1.0625rem;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.
|
|
124
|
+
._ebb {
|
|
125
125
|
font-size: .8125rem;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
.
|
|
128
|
+
._ebd {
|
|
129
129
|
font-size: .9375rem;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
.
|
|
132
|
+
._ebh {
|
|
133
133
|
font-size: 1.1875rem;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.
|
|
136
|
+
._ebj {
|
|
137
137
|
font-size: 1.375rem;
|
|
138
138
|
}
|
|
139
139
|
}
|