@react-spectrum/s2 3.0.0-nightly-326f48154-241216 → 3.0.0-nightly-fee532d6a-241217
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/ActionButton.cjs +58 -80
- package/dist/ActionButton.cjs.map +1 -1
- package/dist/ActionButton.css +76 -96
- package/dist/ActionButton.css.map +1 -1
- package/dist/ActionButton.mjs +58 -80
- package/dist/ActionButton.mjs.map +1 -1
- package/dist/ActionButtonGroup.cjs.map +1 -1
- package/dist/ActionButtonGroup.css.map +1 -1
- package/dist/ActionButtonGroup.mjs.map +1 -1
- package/dist/Badge.cjs +66 -66
- package/dist/Badge.css +43 -43
- package/dist/Badge.mjs +66 -66
- package/dist/Breadcrumbs.cjs +6 -6
- package/dist/Breadcrumbs.css +4 -4
- package/dist/Breadcrumbs.mjs +6 -6
- package/dist/Button.cjs +89 -134
- package/dist/Button.cjs.map +1 -1
- package/dist/Button.css +102 -134
- package/dist/Button.css.map +1 -1
- package/dist/Button.mjs +89 -134
- package/dist/Button.mjs.map +1 -1
- package/dist/Card.cjs +4 -4
- package/dist/Card.css +3 -3
- package/dist/Card.mjs +4 -4
- package/dist/CardView.cjs +1 -1
- package/dist/CardView.css +1 -1
- package/dist/CardView.mjs +1 -1
- package/dist/Checkbox.cjs +10 -10
- package/dist/Checkbox.css +10 -10
- package/dist/Checkbox.mjs +10 -10
- package/dist/CloseButton.cjs +17 -28
- package/dist/CloseButton.cjs.map +1 -1
- package/dist/CloseButton.css +19 -31
- package/dist/CloseButton.css.map +1 -1
- package/dist/CloseButton.mjs +17 -28
- package/dist/CloseButton.mjs.map +1 -1
- package/dist/ColorArea.cjs +1 -1
- package/dist/ColorArea.css +1 -1
- package/dist/ColorArea.mjs +1 -1
- package/dist/ColorHandle.cjs +3 -3
- package/dist/ColorHandle.css +3 -3
- package/dist/ColorHandle.mjs +3 -3
- package/dist/ColorSlider.cjs +1 -1
- package/dist/ColorSlider.css +1 -1
- package/dist/ColorSlider.mjs +1 -1
- package/dist/ColorSwatchPicker.cjs +1 -1
- package/dist/ColorSwatchPicker.css +1 -1
- package/dist/ColorSwatchPicker.mjs +1 -1
- package/dist/ColorWheel.cjs +2 -2
- package/dist/ColorWheel.css +1 -1
- package/dist/ColorWheel.mjs +2 -2
- package/dist/ComboBox.cjs +5 -5
- package/dist/ComboBox.css +4 -4
- package/dist/ComboBox.mjs +5 -5
- package/dist/Disclosure.cjs +1 -1
- package/dist/Disclosure.css +1 -1
- package/dist/Disclosure.mjs +1 -1
- package/dist/Divider.cjs +8 -8
- package/dist/Divider.cjs.map +1 -1
- package/dist/Divider.css +13 -13
- package/dist/Divider.css.map +1 -1
- package/dist/Divider.mjs +8 -8
- package/dist/Divider.mjs.map +1 -1
- package/dist/DropZone.cjs +4 -4
- package/dist/DropZone.css +2 -2
- package/dist/DropZone.mjs +4 -4
- package/dist/Field.cjs +7 -8
- package/dist/Field.cjs.map +1 -1
- package/dist/Field.css +7 -11
- package/dist/Field.css.map +1 -1
- package/dist/Field.mjs +7 -8
- package/dist/Field.mjs.map +1 -1
- package/dist/InlineAlert.cjs +23 -23
- package/dist/InlineAlert.css +15 -15
- package/dist/InlineAlert.mjs +23 -23
- package/dist/Link.cjs +7 -6
- package/dist/Link.cjs.map +1 -1
- package/dist/Link.css +14 -14
- package/dist/Link.css.map +1 -1
- package/dist/Link.mjs +7 -6
- package/dist/Link.mjs.map +1 -1
- package/dist/Menu.cjs +26 -6
- package/dist/Menu.cjs.map +1 -1
- package/dist/Menu.css +3 -3
- package/dist/Menu.css.map +1 -1
- package/dist/Menu.mjs +27 -7
- package/dist/Menu.mjs.map +1 -1
- package/dist/Meter.cjs +13 -13
- package/dist/Meter.cjs.map +1 -1
- package/dist/Meter.css +18 -22
- package/dist/Meter.css.map +1 -1
- package/dist/Meter.mjs +13 -13
- package/dist/Meter.mjs.map +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.css +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NumberField.cjs +4 -4
- package/dist/NumberField.css +4 -4
- package/dist/NumberField.mjs +4 -4
- package/dist/Picker.cjs +4 -4
- package/dist/Picker.css +4 -4
- package/dist/Picker.mjs +4 -4
- package/dist/Popover.cjs +3 -3
- package/dist/Popover.css +3 -3
- package/dist/Popover.mjs +3 -3
- package/dist/ProgressBar.cjs +20 -18
- package/dist/ProgressBar.cjs.map +1 -1
- package/dist/ProgressBar.css +20 -24
- package/dist/ProgressBar.css.map +1 -1
- package/dist/ProgressBar.mjs +20 -18
- package/dist/ProgressBar.mjs.map +1 -1
- package/dist/ProgressCircle.cjs +11 -9
- package/dist/ProgressCircle.cjs.map +1 -1
- package/dist/ProgressCircle.css +14 -14
- package/dist/ProgressCircle.css.map +1 -1
- package/dist/ProgressCircle.mjs +11 -9
- package/dist/ProgressCircle.mjs.map +1 -1
- package/dist/Provider.cjs +1 -1
- package/dist/Provider.css +1 -1
- package/dist/Provider.mjs +1 -1
- package/dist/Radio.cjs +6 -6
- package/dist/Radio.css +6 -6
- package/dist/Radio.mjs +6 -6
- package/dist/SearchField.cjs +1 -1
- package/dist/SearchField.css +1 -1
- package/dist/SearchField.mjs +1 -1
- package/dist/SegmentedControl.cjs +8 -8
- package/dist/SegmentedControl.css +8 -8
- package/dist/SegmentedControl.mjs +8 -8
- package/dist/Slider.cjs +8 -8
- package/dist/Slider.css +5 -5
- package/dist/Slider.mjs +8 -8
- package/dist/Switch.cjs +7 -7
- package/dist/Switch.css +6 -6
- package/dist/Switch.mjs +7 -7
- package/dist/TableView.cjs +17 -17
- package/dist/TableView.css +11 -11
- package/dist/TableView.mjs +17 -17
- package/dist/Tabs.cjs +5 -5
- package/dist/Tabs.css +5 -5
- package/dist/Tabs.mjs +5 -5
- package/dist/TabsPicker.cjs +1 -1
- package/dist/TabsPicker.css +1 -1
- package/dist/TabsPicker.mjs +1 -1
- package/dist/TagGroup.cjs +10 -10
- package/dist/TagGroup.css +8 -8
- package/dist/TagGroup.mjs +10 -10
- package/dist/ToggleButton.cjs +1 -0
- package/dist/ToggleButton.cjs.map +1 -1
- package/dist/ToggleButton.css.map +1 -1
- package/dist/ToggleButton.mjs +1 -0
- package/dist/ToggleButton.mjs.map +1 -1
- package/dist/Tooltip.cjs +1 -1
- package/dist/Tooltip.css +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/types.d.ts +9 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +18 -18
- package/src/ActionButton.tsx +19 -43
- package/src/ActionButtonGroup.tsx +1 -1
- package/src/Button.tsx +36 -79
- package/src/CloseButton.tsx +10 -20
- package/src/Divider.tsx +10 -16
- package/src/Field.tsx +2 -2
- package/src/Link.tsx +7 -12
- package/src/Menu.tsx +22 -6
- package/src/Meter.tsx +7 -14
- package/src/ProgressBar.tsx +8 -15
- package/src/ProgressCircle.tsx +12 -15
- package/src/ToggleButton.tsx +1 -0
- package/src/bar-utils.ts +3 -10
- package/src/style-utils.ts +15 -8
- package/style/dist/spectrum-theme.cjs +15 -1
- package/style/dist/spectrum-theme.cjs.map +1 -1
- package/style/dist/spectrum-theme.mjs +15 -1
- package/style/dist/spectrum-theme.mjs.map +1 -1
- package/style/dist/types.d.ts +40 -27
- package/style/dist/types.d.ts.map +1 -1
- package/style/spectrum-theme.ts +4 -2
- package/style/tokens.ts +30 -0
package/dist/Meter.cjs
CHANGED
|
@@ -46,6 +46,8 @@ const $f53cdf036c04454a$var$wrapper = function anonymous(props, overrides) {
|
|
|
46
46
|
if (/^\s*q/.test(p)) $q = true;
|
|
47
47
|
if (/^\s*r/.test(p)) $r = true;
|
|
48
48
|
}
|
|
49
|
+
if (props.staticColor === "white") rules += ' -_1de2x0q_b-b';
|
|
50
|
+
else if (props.staticColor === "black") rules += ' -_1de2x0q_b-c';
|
|
49
51
|
if (!$U) rules += ' Uc';
|
|
50
52
|
rules += ' _Zf';
|
|
51
53
|
if (props.labelPosition === "side") rules += ' __h-jyg4vb';
|
|
@@ -95,9 +97,8 @@ const $f53cdf036c04454a$var$valueStyles = function anonymous(props) {
|
|
|
95
97
|
rules += ' _eb';
|
|
96
98
|
rules += ' _f-1x99dlob';
|
|
97
99
|
rules += ' _fa';
|
|
98
|
-
rules += '
|
|
99
|
-
if (props.
|
|
100
|
-
else if (props.staticColor === "white") rules += ' a_____d';
|
|
100
|
+
rules += ' aa_____K';
|
|
101
|
+
if (props.isStaticColor) rules += ' a_____G';
|
|
101
102
|
else if (props.isDisabled) rules += ' aj';
|
|
102
103
|
else {
|
|
103
104
|
if (props.isPressed) rules += ' an';
|
|
@@ -136,15 +137,14 @@ const $f53cdf036c04454a$var$trackStyles = function anonymous(props) {
|
|
|
136
137
|
rules += ' _wf';
|
|
137
138
|
rules += ' _xf';
|
|
138
139
|
rules += ' _yf';
|
|
139
|
-
rules += '
|
|
140
|
-
if (props.
|
|
141
|
-
else if (props.staticColor === "white") rules += ' b____7';
|
|
140
|
+
rules += ' ba_____J';
|
|
141
|
+
if (props.isStaticColor) rules += ' b_____z';
|
|
142
142
|
else rules += ' bi';
|
|
143
143
|
rules += ' _Nab';
|
|
144
144
|
rules += ' _Na';
|
|
145
145
|
rules += ' _Lab';
|
|
146
146
|
rules += ' _La';
|
|
147
|
-
rules += '
|
|
147
|
+
rules += ' da_____K';
|
|
148
148
|
rules += ' da';
|
|
149
149
|
rules += ' __Q-3t1y';
|
|
150
150
|
if (props.size === "XL") rules += ' ky';
|
|
@@ -162,9 +162,8 @@ const $f53cdf036c04454a$var$fillStyles = function anonymous(props) {
|
|
|
162
162
|
rules += ' _wf';
|
|
163
163
|
rules += ' _xf';
|
|
164
164
|
rules += ' _yf';
|
|
165
|
-
rules += '
|
|
166
|
-
if (props.
|
|
167
|
-
else if (props.staticColor === "white") rules += ' b_____f';
|
|
165
|
+
rules += ' ba_____K';
|
|
166
|
+
if (props.isStaticColor) rules += ' b_____F';
|
|
168
167
|
else if (props.variant === "negative") rules += ' b-awl6xt';
|
|
169
168
|
else if (props.variant === "notice") rules += ' b-1c1g5qb';
|
|
170
169
|
else if (props.variant === "positive") rules += ' b-32o7sp';
|
|
@@ -175,6 +174,7 @@ const $f53cdf036c04454a$export$62e3ae2a4090b879 = /*#__PURE__*/ (0, $aQdtU$react
|
|
|
175
174
|
[props, ref] = (0, $ac757a4c2bd72aee$exports.useSpectrumContextProps)(props, ref, $f53cdf036c04454a$export$8b645da15a96b44f);
|
|
176
175
|
let domRef = (0, $aQdtU$reactspectrumutils.useDOMRef)(ref);
|
|
177
176
|
let { label: label, size: size = 'M', staticColor: staticColor, styles: styles, UNSAFE_className: UNSAFE_className = '', UNSAFE_style: UNSAFE_style, variant: variant = 'informative', labelPosition: labelPosition = 'top', ...groupProps } = props;
|
|
177
|
+
let isStaticColor = !!staticColor;
|
|
178
178
|
return /*#__PURE__*/ (0, $aQdtU$reactjsxruntime.jsx)((0, $aQdtU$reactariacomponents.Meter), {
|
|
179
179
|
...groupProps,
|
|
180
180
|
ref: domRef,
|
|
@@ -198,19 +198,19 @@ const $f53cdf036c04454a$export$62e3ae2a4090b879 = /*#__PURE__*/ (0, $aQdtU$react
|
|
|
198
198
|
styles: $f53cdf036c04454a$var$valueStyles({
|
|
199
199
|
size: size,
|
|
200
200
|
labelAlign: 'end',
|
|
201
|
-
|
|
201
|
+
isStaticColor: isStaticColor
|
|
202
202
|
}),
|
|
203
203
|
children: valueText
|
|
204
204
|
}),
|
|
205
205
|
/*#__PURE__*/ (0, $aQdtU$reactjsxruntime.jsx)((0, $5eb75e0c130e0669$exports.SkeletonWrapper), {
|
|
206
206
|
children: /*#__PURE__*/ (0, $aQdtU$reactjsxruntime.jsx)("div", {
|
|
207
207
|
className: $f53cdf036c04454a$var$trackStyles({
|
|
208
|
-
|
|
208
|
+
isStaticColor: isStaticColor,
|
|
209
209
|
size: size
|
|
210
210
|
}),
|
|
211
211
|
children: /*#__PURE__*/ (0, $aQdtU$reactjsxruntime.jsx)("div", {
|
|
212
212
|
className: $f53cdf036c04454a$var$fillStyles({
|
|
213
|
-
|
|
213
|
+
isStaticColor: isStaticColor,
|
|
214
214
|
variant: variant
|
|
215
215
|
}),
|
|
216
216
|
style: {
|
package/dist/Meter.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AA6CM,MAAM,0DAAe,CAAA,GAAA,0BAAY,EAAyD;AAEjG,MAAM
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AA6CM,MAAM,0DAAe,CAAA,GAAA,0BAAY,EAAyD;AAEjG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaN,MAAM;;;;;;;;;;;;;;;;AAoBC,MAAM,0DAAQ,CAAA,GAAA,uBAAS,EAAE,SAAS,MAAM,KAAiB,EAAE,GAA2B;IAC3F,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,iDAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,IAAI,SACF,KAAK,QACL,OAAO,kBACP,WAAW,UACX,MAAM,oBACN,mBAAmB,kBACnB,YAAY,WACZ,UAAU,8BACV,gBAAgB,OAChB,GAAG,YACJ,GAAG;IACJ,IAAI,gBAAgB,CAAC,CAAC;IAEtB,qBACE,gCAAC,CAAA,GAAA,gCAAQ;QACN,GAAG,UAAU;QACd,KAAK;QACL,OAAO;QACP,WAAW,mBAAmB,8BAAQ;kBACpC;qBACA;yBACA;2BACA;QACF,GAAG;kBACF,CAAC,cAAC,UAAU,aAAE,SAAS,EAAC,iBACvB;;oBACG,uBAAS,gCAAC,CAAA,GAAA,oCAAS;wBAAE,MAAM;wBAAM,YAAW;wBAAQ,eAAe;wBAAe,aAAa;kCAAc;;oBAC7G,uBAAS,gCAAC,CAAA,GAAA,8BAAG;wBAAE,QAAQ,kCAAY;kCAAC;4BAAM,YAAY;2CAAO;wBAAa;kCAAK;;kCAChF,gCAAC,CAAA,GAAA,yCAAc;kCACb,cAAA,gCAAC;4BAAI,WAAW,kCAAY;+CAAC;sCAAe;4BAAI;sCAC9C,cAAA,gCAAC;gCAAI,WAAW,iCAAW;mDAAC;6CAAe;gCAAO;gCAAI,OAAO;oCAAC,OAAO,aAAa;gCAAG;;;;;;;AAOnG","sources":["packages/@react-spectrum/s2/src/Meter.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 {\n Meter as AriaMeter,\n MeterProps as AriaMeterProps,\n ContextValue\n} from 'react-aria-components';\nimport {bar, track} from './bar-utils' with {type: 'macro'};\nimport {createContext, forwardRef, ReactNode} from 'react';\nimport {DOMRef, DOMRefValue, LabelPosition} from '@react-types/shared';\nimport {FieldLabel} from './Field';\nimport {fieldLabel, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {lightDark, style} from '../style' with {type: 'macro'};\nimport {SkeletonWrapper} from './Skeleton';\nimport {Text} from './Content';\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\ninterface MeterStyleProps {\n /** The [visual style](https://spectrum.adobe.com/page/meter/#-Options) of the Meter.\n * @default 'informative'\n */\n variant?: 'informative' | 'positive' | 'notice' | 'negative',\n /**\n * The size of the Meter.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL',\n /**\n * The static color style to apply. Useful when the button appears over a color background.\n */\n staticColor?: 'white' | 'black' | 'auto',\n /**\n * The label's overall position relative to the element it is labeling.\n * @default 'top'\n */\n labelPosition?: LabelPosition\n}\n\nexport interface MeterProps extends Omit<AriaMeterProps, 'children' | 'className' | 'style'>, MeterStyleProps, StyleProps {\n /** The content to display as the label. */\n label?: ReactNode\n}\n\nexport const MeterContext = createContext<ContextValue<MeterProps, DOMRefValue<HTMLDivElement>>>(null);\n\nconst wrapper = style({\n ...bar()\n}, getAllowedOverrides());\n\nconst valueStyles = style({\n ...fieldLabel(),\n gridArea: 'value'\n});\n\nconst trackStyles = style({\n ...track(),\n height: {\n default: 6,\n size: {\n S: 4, // progress-bar-thickness-small\n M: 6, // progress-bar-thickness-medium\n L: 8, // progress-bar-thickness-large\n XL: 10 // progress-bar-thickness-extra-large\n }\n }\n});\n\nconst fillStyles = style<MeterStyleProps & {isStaticColor: boolean}>({\n height: 'full',\n borderStyle: 'none',\n borderRadius: 'full',\n backgroundColor: {\n default: lightDark('informative-800', 'informative-900'), // 'informative-visual',\n variant: {\n positive: lightDark('positive-800', 'positive-900'), // 'positive-visual',\n notice: lightDark('notice-800', 'notice-900'), // 'notice-visual',\n negative: lightDark('negative-800', 'negative-900') // 'negative-visual'\n },\n isStaticColor: 'transparent-overlay-900',\n forcedColors: 'ButtonText'\n }\n});\n\n/**\n * Meters are visual representations of a quantity or an achievement.\n * Their progress is determined by user actions, rather than system actions.\n */\nexport const Meter = forwardRef(function Meter(props: MeterProps, ref: DOMRef<HTMLDivElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, MeterContext);\n let domRef = useDOMRef(ref);\n\n let {\n label,\n size = 'M',\n staticColor,\n styles,\n UNSAFE_className = '',\n UNSAFE_style,\n variant = 'informative',\n labelPosition = 'top',\n ...groupProps\n } = props;\n let isStaticColor = !!staticColor;\n\n return (\n <AriaMeter\n {...groupProps}\n ref={domRef}\n style={UNSAFE_style}\n className={UNSAFE_className + wrapper({\n size,\n variant,\n staticColor,\n labelPosition\n }, styles)}>\n {({percentage, valueText}) => (\n <>\n {label && <FieldLabel size={size} labelAlign=\"start\" labelPosition={labelPosition} staticColor={staticColor}>{label}</FieldLabel>}\n {label && <Text styles={valueStyles({size, labelAlign: 'end', isStaticColor})}>{valueText}</Text>}\n <SkeletonWrapper>\n <div className={trackStyles({isStaticColor, size})}>\n <div className={fillStyles({isStaticColor, variant})} style={{width: percentage + '%'}} />\n </div>\n </SkeletonWrapper>\n </>\n )}\n </AriaMeter>\n );\n});\n"],"names":[],"version":3,"file":"Meter.cjs.map"}
|
package/dist/Meter.css
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
@layer _.a {
|
|
2
|
+
.-_1de2x0q_b-c {
|
|
3
|
+
--s2-container-bg: white;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.-_1de2x0q_b-b {
|
|
7
|
+
--s2-container-bg: black;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
.Uc {
|
|
3
11
|
position: relative;
|
|
4
12
|
}
|
|
@@ -118,12 +126,8 @@
|
|
|
118
126
|
color: var(--lightningcss-light, #c6c6c6) var(--lightningcss-dark, #444);
|
|
119
127
|
}
|
|
120
128
|
|
|
121
|
-
.
|
|
122
|
-
color:
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.a_____s {
|
|
126
|
-
color: #000000ed;
|
|
129
|
+
.a_____G {
|
|
130
|
+
color: lch(from var(--s2-container-bg) calc((49.44 - l) * infinity) 0 0 / 1);
|
|
127
131
|
}
|
|
128
132
|
|
|
129
133
|
.__Hb {
|
|
@@ -218,12 +222,8 @@
|
|
|
218
222
|
background-color: var(--lightningcss-light, #dadada) var(--lightningcss-dark, #393939);
|
|
219
223
|
}
|
|
220
224
|
|
|
221
|
-
.
|
|
222
|
-
background-color:
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.b_____n {
|
|
226
|
-
background-color: #00000038;
|
|
225
|
+
.b_____z {
|
|
226
|
+
background-color: lch(from var(--s2-container-bg) calc((49.44 - l) * infinity) 0 0 / .17);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
._Na {
|
|
@@ -298,12 +298,8 @@
|
|
|
298
298
|
background-color: var(--lightningcss-light, #f03823) var(--lightningcss-dark, #fc432e);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
.
|
|
302
|
-
background-color:
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.b_____s {
|
|
306
|
-
background-color: #000000ed;
|
|
301
|
+
.b_____F {
|
|
302
|
+
background-color: lch(from var(--s2-container-bg) calc((49.44 - l) * infinity) 0 0 / .94);
|
|
307
303
|
}
|
|
308
304
|
}
|
|
309
305
|
|
|
@@ -381,11 +377,11 @@
|
|
|
381
377
|
|
|
382
378
|
@layer _.b.a {
|
|
383
379
|
@media (forced-colors: active) {
|
|
384
|
-
.
|
|
380
|
+
.aa_____K {
|
|
385
381
|
color: buttontext;
|
|
386
382
|
}
|
|
387
383
|
|
|
388
|
-
.
|
|
384
|
+
.ba_____J {
|
|
389
385
|
background-color: buttonface;
|
|
390
386
|
}
|
|
391
387
|
|
|
@@ -397,11 +393,11 @@
|
|
|
397
393
|
outline-style: solid;
|
|
398
394
|
}
|
|
399
395
|
|
|
400
|
-
.
|
|
396
|
+
.da_____K {
|
|
401
397
|
outline-color: buttontext;
|
|
402
398
|
}
|
|
403
399
|
|
|
404
|
-
.
|
|
400
|
+
.ba_____K {
|
|
405
401
|
background-color: buttontext;
|
|
406
402
|
}
|
|
407
403
|
}
|
package/dist/Meter.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"ACyDgB;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAII;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;
|
|
1
|
+
{"mappings":"ACyDgB;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAII;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAKA;;;;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;;;;EAaD;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;AAtBH;EAII;;;;EAAA;;;;;AAJJ;;AAII;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;;;AAAA;EAAA;IAAA;;;;IAKA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAaD;;;;;;AAbC;EAAA;IAAA;;;;;;AAaD","sources":["9248845643c61064","packages/@react-spectrum/s2/src/Meter.tsx"],"sourcesContent":["@import \"a82baabbcb8c2181\";\n@import \"387ba29f17cbbc9f\";\n@import \"ae93cf6195cc0b20\";\n@import \"c4a3f6bd0d23c6e6\";\n","/*\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 {\n Meter as AriaMeter,\n MeterProps as AriaMeterProps,\n ContextValue\n} from 'react-aria-components';\nimport {bar, track} from './bar-utils' with {type: 'macro'};\nimport {createContext, forwardRef, ReactNode} from 'react';\nimport {DOMRef, DOMRefValue, LabelPosition} from '@react-types/shared';\nimport {FieldLabel} from './Field';\nimport {fieldLabel, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {lightDark, style} from '../style' with {type: 'macro'};\nimport {SkeletonWrapper} from './Skeleton';\nimport {Text} from './Content';\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\ninterface MeterStyleProps {\n /** The [visual style](https://spectrum.adobe.com/page/meter/#-Options) of the Meter.\n * @default 'informative'\n */\n variant?: 'informative' | 'positive' | 'notice' | 'negative',\n /**\n * The size of the Meter.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL',\n /**\n * The static color style to apply. Useful when the button appears over a color background.\n */\n staticColor?: 'white' | 'black' | 'auto',\n /**\n * The label's overall position relative to the element it is labeling.\n * @default 'top'\n */\n labelPosition?: LabelPosition\n}\n\nexport interface MeterProps extends Omit<AriaMeterProps, 'children' | 'className' | 'style'>, MeterStyleProps, StyleProps {\n /** The content to display as the label. */\n label?: ReactNode\n}\n\nexport const MeterContext = createContext<ContextValue<MeterProps, DOMRefValue<HTMLDivElement>>>(null);\n\nconst wrapper = style({\n ...bar()\n}, getAllowedOverrides());\n\nconst valueStyles = style({\n ...fieldLabel(),\n gridArea: 'value'\n});\n\nconst trackStyles = style({\n ...track(),\n height: {\n default: 6,\n size: {\n S: 4, // progress-bar-thickness-small\n M: 6, // progress-bar-thickness-medium\n L: 8, // progress-bar-thickness-large\n XL: 10 // progress-bar-thickness-extra-large\n }\n }\n});\n\nconst fillStyles = style<MeterStyleProps & {isStaticColor: boolean}>({\n height: 'full',\n borderStyle: 'none',\n borderRadius: 'full',\n backgroundColor: {\n default: lightDark('informative-800', 'informative-900'), // 'informative-visual',\n variant: {\n positive: lightDark('positive-800', 'positive-900'), // 'positive-visual',\n notice: lightDark('notice-800', 'notice-900'), // 'notice-visual',\n negative: lightDark('negative-800', 'negative-900') // 'negative-visual'\n },\n isStaticColor: 'transparent-overlay-900',\n forcedColors: 'ButtonText'\n }\n});\n\n/**\n * Meters are visual representations of a quantity or an achievement.\n * Their progress is determined by user actions, rather than system actions.\n */\nexport const Meter = forwardRef(function Meter(props: MeterProps, ref: DOMRef<HTMLDivElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, MeterContext);\n let domRef = useDOMRef(ref);\n\n let {\n label,\n size = 'M',\n staticColor,\n styles,\n UNSAFE_className = '',\n UNSAFE_style,\n variant = 'informative',\n labelPosition = 'top',\n ...groupProps\n } = props;\n let isStaticColor = !!staticColor;\n\n return (\n <AriaMeter\n {...groupProps}\n ref={domRef}\n style={UNSAFE_style}\n className={UNSAFE_className + wrapper({\n size,\n variant,\n staticColor,\n labelPosition\n }, styles)}>\n {({percentage, valueText}) => (\n <>\n {label && <FieldLabel size={size} labelAlign=\"start\" labelPosition={labelPosition} staticColor={staticColor}>{label}</FieldLabel>}\n {label && <Text styles={valueStyles({size, labelAlign: 'end', isStaticColor})}>{valueText}</Text>}\n <SkeletonWrapper>\n <div className={trackStyles({isStaticColor, size})}>\n <div className={fillStyles({isStaticColor, variant})} style={{width: percentage + '%'}} />\n </div>\n </SkeletonWrapper>\n </>\n )}\n </AriaMeter>\n );\n});\n"],"names":[],"version":3,"file":"Meter.css.map"}
|
package/dist/Meter.mjs
CHANGED
|
@@ -39,6 +39,8 @@ const $bb56943300b294c6$var$wrapper = function anonymous(props, overrides) {
|
|
|
39
39
|
if (/^\s*q/.test(p)) $q = true;
|
|
40
40
|
if (/^\s*r/.test(p)) $r = true;
|
|
41
41
|
}
|
|
42
|
+
if (props.staticColor === "white") rules += ' -_1de2x0q_b-b';
|
|
43
|
+
else if (props.staticColor === "black") rules += ' -_1de2x0q_b-c';
|
|
42
44
|
if (!$U) rules += ' Uc';
|
|
43
45
|
rules += ' _Zf';
|
|
44
46
|
if (props.labelPosition === "side") rules += ' __h-jyg4vb';
|
|
@@ -88,9 +90,8 @@ const $bb56943300b294c6$var$valueStyles = function anonymous(props) {
|
|
|
88
90
|
rules += ' _eb';
|
|
89
91
|
rules += ' _f-1x99dlob';
|
|
90
92
|
rules += ' _fa';
|
|
91
|
-
rules += '
|
|
92
|
-
if (props.
|
|
93
|
-
else if (props.staticColor === "white") rules += ' a_____d';
|
|
93
|
+
rules += ' aa_____K';
|
|
94
|
+
if (props.isStaticColor) rules += ' a_____G';
|
|
94
95
|
else if (props.isDisabled) rules += ' aj';
|
|
95
96
|
else {
|
|
96
97
|
if (props.isPressed) rules += ' an';
|
|
@@ -129,15 +130,14 @@ const $bb56943300b294c6$var$trackStyles = function anonymous(props) {
|
|
|
129
130
|
rules += ' _wf';
|
|
130
131
|
rules += ' _xf';
|
|
131
132
|
rules += ' _yf';
|
|
132
|
-
rules += '
|
|
133
|
-
if (props.
|
|
134
|
-
else if (props.staticColor === "white") rules += ' b____7';
|
|
133
|
+
rules += ' ba_____J';
|
|
134
|
+
if (props.isStaticColor) rules += ' b_____z';
|
|
135
135
|
else rules += ' bi';
|
|
136
136
|
rules += ' _Nab';
|
|
137
137
|
rules += ' _Na';
|
|
138
138
|
rules += ' _Lab';
|
|
139
139
|
rules += ' _La';
|
|
140
|
-
rules += '
|
|
140
|
+
rules += ' da_____K';
|
|
141
141
|
rules += ' da';
|
|
142
142
|
rules += ' __Q-3t1y';
|
|
143
143
|
if (props.size === "XL") rules += ' ky';
|
|
@@ -155,9 +155,8 @@ const $bb56943300b294c6$var$fillStyles = function anonymous(props) {
|
|
|
155
155
|
rules += ' _wf';
|
|
156
156
|
rules += ' _xf';
|
|
157
157
|
rules += ' _yf';
|
|
158
|
-
rules += '
|
|
159
|
-
if (props.
|
|
160
|
-
else if (props.staticColor === "white") rules += ' b_____f';
|
|
158
|
+
rules += ' ba_____K';
|
|
159
|
+
if (props.isStaticColor) rules += ' b_____F';
|
|
161
160
|
else if (props.variant === "negative") rules += ' b-awl6xt';
|
|
162
161
|
else if (props.variant === "notice") rules += ' b-1c1g5qb';
|
|
163
162
|
else if (props.variant === "positive") rules += ' b-32o7sp';
|
|
@@ -168,6 +167,7 @@ const $bb56943300b294c6$export$62e3ae2a4090b879 = /*#__PURE__*/ (0, $blcZa$forwa
|
|
|
168
167
|
[props, ref] = (0, $5ce63c423902f47d$export$764f6146fadd77f7)(props, ref, $bb56943300b294c6$export$8b645da15a96b44f);
|
|
169
168
|
let domRef = (0, $blcZa$useDOMRef)(ref);
|
|
170
169
|
let { label: label, size: size = 'M', staticColor: staticColor, styles: styles, UNSAFE_className: UNSAFE_className = '', UNSAFE_style: UNSAFE_style, variant: variant = 'informative', labelPosition: labelPosition = 'top', ...groupProps } = props;
|
|
170
|
+
let isStaticColor = !!staticColor;
|
|
171
171
|
return /*#__PURE__*/ (0, $blcZa$jsx)((0, $blcZa$Meter), {
|
|
172
172
|
...groupProps,
|
|
173
173
|
ref: domRef,
|
|
@@ -191,19 +191,19 @@ const $bb56943300b294c6$export$62e3ae2a4090b879 = /*#__PURE__*/ (0, $blcZa$forwa
|
|
|
191
191
|
styles: $bb56943300b294c6$var$valueStyles({
|
|
192
192
|
size: size,
|
|
193
193
|
labelAlign: 'end',
|
|
194
|
-
|
|
194
|
+
isStaticColor: isStaticColor
|
|
195
195
|
}),
|
|
196
196
|
children: valueText
|
|
197
197
|
}),
|
|
198
198
|
/*#__PURE__*/ (0, $blcZa$jsx)((0, $5ad421ec19460c48$export$6069cbe61f690103), {
|
|
199
199
|
children: /*#__PURE__*/ (0, $blcZa$jsx)("div", {
|
|
200
200
|
className: $bb56943300b294c6$var$trackStyles({
|
|
201
|
-
|
|
201
|
+
isStaticColor: isStaticColor,
|
|
202
202
|
size: size
|
|
203
203
|
}),
|
|
204
204
|
children: /*#__PURE__*/ (0, $blcZa$jsx)("div", {
|
|
205
205
|
className: $bb56943300b294c6$var$fillStyles({
|
|
206
|
-
|
|
206
|
+
isStaticColor: isStaticColor,
|
|
207
207
|
variant: variant
|
|
208
208
|
}),
|
|
209
209
|
style: {
|
package/dist/Meter.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AA6CM,MAAM,0DAAe,CAAA,GAAA,oBAAY,EAAyD;AAEjG,MAAM
|
|
1
|
+
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AA6CM,MAAM,0DAAe,CAAA,GAAA,oBAAY,EAAyD;AAEjG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaN,MAAM;;;;;;;;;;;;;;;;AAoBC,MAAM,0DAAQ,CAAA,GAAA,iBAAS,EAAE,SAAS,MAAM,KAAiB,EAAE,GAA2B;IAC3F,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,IAAI,SACF,KAAK,QACL,OAAO,kBACP,WAAW,UACX,MAAM,oBACN,mBAAmB,kBACnB,YAAY,WACZ,UAAU,8BACV,gBAAgB,OAChB,GAAG,YACJ,GAAG;IACJ,IAAI,gBAAgB,CAAC,CAAC;IAEtB,qBACE,gBAAC,CAAA,GAAA,YAAQ;QACN,GAAG,UAAU;QACd,KAAK;QACL,OAAO;QACP,WAAW,mBAAmB,8BAAQ;kBACpC;qBACA;yBACA;2BACA;QACF,GAAG;kBACF,CAAC,cAAC,UAAU,aAAE,SAAS,EAAC,iBACvB;;oBACG,uBAAS,gBAAC,CAAA,GAAA,yCAAS;wBAAE,MAAM;wBAAM,YAAW;wBAAQ,eAAe;wBAAe,aAAa;kCAAc;;oBAC7G,uBAAS,gBAAC,CAAA,GAAA,yCAAG;wBAAE,QAAQ,kCAAY;kCAAC;4BAAM,YAAY;2CAAO;wBAAa;kCAAK;;kCAChF,gBAAC,CAAA,GAAA,yCAAc;kCACb,cAAA,gBAAC;4BAAI,WAAW,kCAAY;+CAAC;sCAAe;4BAAI;sCAC9C,cAAA,gBAAC;gCAAI,WAAW,iCAAW;mDAAC;6CAAe;gCAAO;gCAAI,OAAO;oCAAC,OAAO,aAAa;gCAAG;;;;;;;AAOnG","sources":["packages/@react-spectrum/s2/src/Meter.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 {\n Meter as AriaMeter,\n MeterProps as AriaMeterProps,\n ContextValue\n} from 'react-aria-components';\nimport {bar, track} from './bar-utils' with {type: 'macro'};\nimport {createContext, forwardRef, ReactNode} from 'react';\nimport {DOMRef, DOMRefValue, LabelPosition} from '@react-types/shared';\nimport {FieldLabel} from './Field';\nimport {fieldLabel, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {lightDark, style} from '../style' with {type: 'macro'};\nimport {SkeletonWrapper} from './Skeleton';\nimport {Text} from './Content';\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\ninterface MeterStyleProps {\n /** The [visual style](https://spectrum.adobe.com/page/meter/#-Options) of the Meter.\n * @default 'informative'\n */\n variant?: 'informative' | 'positive' | 'notice' | 'negative',\n /**\n * The size of the Meter.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL',\n /**\n * The static color style to apply. Useful when the button appears over a color background.\n */\n staticColor?: 'white' | 'black' | 'auto',\n /**\n * The label's overall position relative to the element it is labeling.\n * @default 'top'\n */\n labelPosition?: LabelPosition\n}\n\nexport interface MeterProps extends Omit<AriaMeterProps, 'children' | 'className' | 'style'>, MeterStyleProps, StyleProps {\n /** The content to display as the label. */\n label?: ReactNode\n}\n\nexport const MeterContext = createContext<ContextValue<MeterProps, DOMRefValue<HTMLDivElement>>>(null);\n\nconst wrapper = style({\n ...bar()\n}, getAllowedOverrides());\n\nconst valueStyles = style({\n ...fieldLabel(),\n gridArea: 'value'\n});\n\nconst trackStyles = style({\n ...track(),\n height: {\n default: 6,\n size: {\n S: 4, // progress-bar-thickness-small\n M: 6, // progress-bar-thickness-medium\n L: 8, // progress-bar-thickness-large\n XL: 10 // progress-bar-thickness-extra-large\n }\n }\n});\n\nconst fillStyles = style<MeterStyleProps & {isStaticColor: boolean}>({\n height: 'full',\n borderStyle: 'none',\n borderRadius: 'full',\n backgroundColor: {\n default: lightDark('informative-800', 'informative-900'), // 'informative-visual',\n variant: {\n positive: lightDark('positive-800', 'positive-900'), // 'positive-visual',\n notice: lightDark('notice-800', 'notice-900'), // 'notice-visual',\n negative: lightDark('negative-800', 'negative-900') // 'negative-visual'\n },\n isStaticColor: 'transparent-overlay-900',\n forcedColors: 'ButtonText'\n }\n});\n\n/**\n * Meters are visual representations of a quantity or an achievement.\n * Their progress is determined by user actions, rather than system actions.\n */\nexport const Meter = forwardRef(function Meter(props: MeterProps, ref: DOMRef<HTMLDivElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, MeterContext);\n let domRef = useDOMRef(ref);\n\n let {\n label,\n size = 'M',\n staticColor,\n styles,\n UNSAFE_className = '',\n UNSAFE_style,\n variant = 'informative',\n labelPosition = 'top',\n ...groupProps\n } = props;\n let isStaticColor = !!staticColor;\n\n return (\n <AriaMeter\n {...groupProps}\n ref={domRef}\n style={UNSAFE_style}\n className={UNSAFE_className + wrapper({\n size,\n variant,\n staticColor,\n labelPosition\n }, styles)}>\n {({percentage, valueText}) => (\n <>\n {label && <FieldLabel size={size} labelAlign=\"start\" labelPosition={labelPosition} staticColor={staticColor}>{label}</FieldLabel>}\n {label && <Text styles={valueStyles({size, labelAlign: 'end', isStaticColor})}>{valueText}</Text>}\n <SkeletonWrapper>\n <div className={trackStyles({isStaticColor, size})}>\n <div className={fillStyles({isStaticColor, variant})} style={{width: percentage + '%'}} />\n </div>\n </SkeletonWrapper>\n </>\n )}\n </AriaMeter>\n );\n});\n"],"names":[],"version":3,"file":"Meter.mjs.map"}
|
package/dist/Modal.cjs
CHANGED
|
@@ -104,7 +104,7 @@ const $8e678305a8c10028$export$2b77a92f1a5ad772 = /*#__PURE__*/ (0, $j6TWk$react
|
|
|
104
104
|
if (props.size === "fullscreenTakeover") rules += ' po';
|
|
105
105
|
else if (props.size === "fullscreen") rules += ' po';
|
|
106
106
|
else rules += ' p-yjhhbg';
|
|
107
|
-
rules += ' -_1de2x0q_b-
|
|
107
|
+
rules += ' -_1de2x0q_b-______x';
|
|
108
108
|
rules += ' b-1de2x0q';
|
|
109
109
|
if (props.isExiting) rules += ' _S-1nys8p3';
|
|
110
110
|
else if (props.isEntering) rules += ' _S-3zirke';
|
package/dist/Modal.css
CHANGED
package/dist/Modal.mjs
CHANGED
|
@@ -98,7 +98,7 @@ const $c46d159bd615e407$export$2b77a92f1a5ad772 = /*#__PURE__*/ (0, $fdAcL$forwa
|
|
|
98
98
|
if (props.size === "fullscreenTakeover") rules += ' po';
|
|
99
99
|
else if (props.size === "fullscreen") rules += ' po';
|
|
100
100
|
else rules += ' p-yjhhbg';
|
|
101
|
-
rules += ' -_1de2x0q_b-
|
|
101
|
+
rules += ' -_1de2x0q_b-______x';
|
|
102
102
|
rules += ' b-1de2x0q';
|
|
103
103
|
if (props.isExiting) rules += ' _S-1nys8p3';
|
|
104
104
|
else if (props.isEntering) rules += ' _S-3zirke';
|
package/dist/NumberField.cjs
CHANGED
|
@@ -94,9 +94,9 @@ const $a366ef8f467b1cb5$var$inputButton = function anonymous(props) {
|
|
|
94
94
|
rules += ' _Q-375x7f';
|
|
95
95
|
rules += ' _Raa';
|
|
96
96
|
rules += ' _Ra';
|
|
97
|
-
if (props.isDisabled) rules += '
|
|
98
|
-
else if (props.isHovered) rules += '
|
|
99
|
-
else rules += '
|
|
97
|
+
if (props.isDisabled) rules += ' ba_____O';
|
|
98
|
+
else if (props.isHovered) rules += ' ba_____M';
|
|
99
|
+
else rules += ' ba_____K';
|
|
100
100
|
if (props.isDisabled) rules += ' bg';
|
|
101
101
|
else {
|
|
102
102
|
if (props.isPressed) rules += ' bh';
|
|
@@ -104,7 +104,7 @@ const $a366ef8f467b1cb5$var$inputButton = function anonymous(props) {
|
|
|
104
104
|
else if (props.isHovered) rules += ' bh';
|
|
105
105
|
else rules += ' bg';
|
|
106
106
|
}
|
|
107
|
-
rules += '
|
|
107
|
+
rules += ' aa_____J';
|
|
108
108
|
if (props.isDisabled) rules += ' aj';
|
|
109
109
|
else {
|
|
110
110
|
if (props.isPressed) rules += ' ao';
|
package/dist/NumberField.css
CHANGED
|
@@ -433,19 +433,19 @@
|
|
|
433
433
|
transition-timing-function: cubic-bezier(.45, 0, .4, 1);
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
.
|
|
436
|
+
.ba_____K {
|
|
437
437
|
background-color: buttontext;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
.
|
|
440
|
+
.ba_____M {
|
|
441
441
|
background-color: highlight;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
.
|
|
444
|
+
.ba_____O {
|
|
445
445
|
background-color: graytext;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
.
|
|
448
|
+
.aa_____J {
|
|
449
449
|
color: buttonface;
|
|
450
450
|
}
|
|
451
451
|
}
|
package/dist/NumberField.mjs
CHANGED
|
@@ -87,9 +87,9 @@ const $675eca1a78ccd399$var$inputButton = function anonymous(props) {
|
|
|
87
87
|
rules += ' _Q-375x7f';
|
|
88
88
|
rules += ' _Raa';
|
|
89
89
|
rules += ' _Ra';
|
|
90
|
-
if (props.isDisabled) rules += '
|
|
91
|
-
else if (props.isHovered) rules += '
|
|
92
|
-
else rules += '
|
|
90
|
+
if (props.isDisabled) rules += ' ba_____O';
|
|
91
|
+
else if (props.isHovered) rules += ' ba_____M';
|
|
92
|
+
else rules += ' ba_____K';
|
|
93
93
|
if (props.isDisabled) rules += ' bg';
|
|
94
94
|
else {
|
|
95
95
|
if (props.isPressed) rules += ' bh';
|
|
@@ -97,7 +97,7 @@ const $675eca1a78ccd399$var$inputButton = function anonymous(props) {
|
|
|
97
97
|
else if (props.isHovered) rules += ' bh';
|
|
98
98
|
else rules += ' bg';
|
|
99
99
|
}
|
|
100
|
-
rules += '
|
|
100
|
+
rules += ' aa_____J';
|
|
101
101
|
if (props.isDisabled) rules += ' aj';
|
|
102
102
|
else {
|
|
103
103
|
if (props.isPressed) rules += ' ao';
|
package/dist/Picker.cjs
CHANGED
|
@@ -64,7 +64,7 @@ const $b9c30139cd63c62a$var$inputButton = function anonymous(props) {
|
|
|
64
64
|
if (props.isQuiet) rules += ' _La';
|
|
65
65
|
else if (props.isFocusVisible) rules += ' _Lb';
|
|
66
66
|
else rules += ' _La';
|
|
67
|
-
rules += '
|
|
67
|
+
rules += ' da_____M';
|
|
68
68
|
rules += ' dx';
|
|
69
69
|
rules += ' _Nc';
|
|
70
70
|
rules += ' _M-3t1z';
|
|
@@ -123,8 +123,8 @@ const $b9c30139cd63c62a$var$inputButton = function anonymous(props) {
|
|
|
123
123
|
rules += ' _ja';
|
|
124
124
|
rules += ' waa';
|
|
125
125
|
rules += ' wf';
|
|
126
|
-
if (props.isDisabled) rules += '
|
|
127
|
-
else rules += '
|
|
126
|
+
if (props.isDisabled) rules += ' ca_____O';
|
|
127
|
+
else rules += ' ca_____K';
|
|
128
128
|
rules += ' _vh';
|
|
129
129
|
rules += ' _wh';
|
|
130
130
|
rules += ' _xh';
|
|
@@ -162,7 +162,7 @@ const $b9c30139cd63c62a$var$inputButton = function anonymous(props) {
|
|
|
162
162
|
else rules += ' -_375toq_k-f';
|
|
163
163
|
return rules;
|
|
164
164
|
};
|
|
165
|
-
const $b9c30139cd63c62a$var$quietFocusLine = " . lb k-375zlr Ua Za _vf _wf _xf _yf bx
|
|
165
|
+
const $b9c30139cd63c62a$var$quietFocusLine = " . lb k-375zlr Ua Za _vf _wf _xf _yf bx ba_____M";
|
|
166
166
|
let $b9c30139cd63c62a$export$b1e5508a851be14d = function anonymous(props) {
|
|
167
167
|
let rules = " .";
|
|
168
168
|
rules += ' _La';
|
package/dist/Picker.css
CHANGED
|
@@ -575,7 +575,7 @@
|
|
|
575
575
|
|
|
576
576
|
@layer _.b.a {
|
|
577
577
|
@media (forced-colors: active) {
|
|
578
|
-
.
|
|
578
|
+
.da_____M {
|
|
579
579
|
outline-color: highlight;
|
|
580
580
|
}
|
|
581
581
|
|
|
@@ -583,15 +583,15 @@
|
|
|
583
583
|
border-style: solid;
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
-
.
|
|
586
|
+
.ca_____K {
|
|
587
587
|
border-color: buttontext;
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
.
|
|
590
|
+
.ca_____O {
|
|
591
591
|
border-color: graytext;
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
-
.
|
|
594
|
+
.ba_____M {
|
|
595
595
|
background-color: highlight;
|
|
596
596
|
}
|
|
597
597
|
}
|
package/dist/Picker.mjs
CHANGED
|
@@ -54,7 +54,7 @@ const $b41c15d27fbaff7d$var$inputButton = function anonymous(props) {
|
|
|
54
54
|
if (props.isQuiet) rules += ' _La';
|
|
55
55
|
else if (props.isFocusVisible) rules += ' _Lb';
|
|
56
56
|
else rules += ' _La';
|
|
57
|
-
rules += '
|
|
57
|
+
rules += ' da_____M';
|
|
58
58
|
rules += ' dx';
|
|
59
59
|
rules += ' _Nc';
|
|
60
60
|
rules += ' _M-3t1z';
|
|
@@ -113,8 +113,8 @@ const $b41c15d27fbaff7d$var$inputButton = function anonymous(props) {
|
|
|
113
113
|
rules += ' _ja';
|
|
114
114
|
rules += ' waa';
|
|
115
115
|
rules += ' wf';
|
|
116
|
-
if (props.isDisabled) rules += '
|
|
117
|
-
else rules += '
|
|
116
|
+
if (props.isDisabled) rules += ' ca_____O';
|
|
117
|
+
else rules += ' ca_____K';
|
|
118
118
|
rules += ' _vh';
|
|
119
119
|
rules += ' _wh';
|
|
120
120
|
rules += ' _xh';
|
|
@@ -152,7 +152,7 @@ const $b41c15d27fbaff7d$var$inputButton = function anonymous(props) {
|
|
|
152
152
|
else rules += ' -_375toq_k-f';
|
|
153
153
|
return rules;
|
|
154
154
|
};
|
|
155
|
-
const $b41c15d27fbaff7d$var$quietFocusLine = " . lb k-375zlr Ua Za _vf _wf _xf _yf bx
|
|
155
|
+
const $b41c15d27fbaff7d$var$quietFocusLine = " . lb k-375zlr Ua Za _vf _wf _xf _yf bx ba_____M";
|
|
156
156
|
let $b41c15d27fbaff7d$export$b1e5508a851be14d = function anonymous(props) {
|
|
157
157
|
let rules = " .";
|
|
158
158
|
rules += ' _La';
|
package/dist/Popover.cjs
CHANGED
|
@@ -48,7 +48,7 @@ let $493371ef39bf7a55$var$popover = function anonymous(props, overrides) {
|
|
|
48
48
|
else if (props.colorScheme === "light") rules += ' _Aa';
|
|
49
49
|
else if (props.colorScheme === "light dark") rules += ' _Ac';
|
|
50
50
|
else rules += ' _A-10jn6wd';
|
|
51
|
-
rules += ' -_1de2x0q_b-
|
|
51
|
+
rules += ' -_1de2x0q_b-______x';
|
|
52
52
|
rules += ' b-1de2x0q';
|
|
53
53
|
rules += ' _vd';
|
|
54
54
|
rules += ' _wd';
|
|
@@ -62,7 +62,7 @@ let $493371ef39bf7a55$var$popover = function anonymous(props, overrides) {
|
|
|
62
62
|
rules += ' vb';
|
|
63
63
|
rules += ' sb';
|
|
64
64
|
rules += ' tb';
|
|
65
|
-
rules += '
|
|
65
|
+
rules += ' ca_____I';
|
|
66
66
|
rules += ' ch';
|
|
67
67
|
if (!$l) {
|
|
68
68
|
if (props.size === "L") rules += ' l_________G';
|
|
@@ -123,7 +123,7 @@ let $493371ef39bf7a55$var$arrow = function anonymous(props) {
|
|
|
123
123
|
if (props.placement === "right") rules += ' Pc';
|
|
124
124
|
else if (props.placement === "left") rules += ' PF';
|
|
125
125
|
rules += ' xb';
|
|
126
|
-
rules += '
|
|
126
|
+
rules += ' fa_____K';
|
|
127
127
|
rules += ' fj';
|
|
128
128
|
return rules;
|
|
129
129
|
};
|
package/dist/Popover.css
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
color-scheme: dark;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.-_1de2x0q_b-
|
|
81
|
+
.-_1de2x0q_b-______x {
|
|
82
82
|
--s2-container-bg: var(--lightningcss-light, #fff) var(--lightningcss-dark, #222);
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -349,11 +349,11 @@
|
|
|
349
349
|
|
|
350
350
|
@layer _.b.a {
|
|
351
351
|
@media (forced-colors: active) {
|
|
352
|
-
.
|
|
352
|
+
.ca_____I {
|
|
353
353
|
border-color: buttonborder;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
.
|
|
356
|
+
.fa_____K {
|
|
357
357
|
stroke: buttonborder;
|
|
358
358
|
}
|
|
359
359
|
}
|
package/dist/Popover.mjs
CHANGED
|
@@ -41,7 +41,7 @@ let $88b746eba92c8d0d$var$popover = function anonymous(props, overrides) {
|
|
|
41
41
|
else if (props.colorScheme === "light") rules += ' _Aa';
|
|
42
42
|
else if (props.colorScheme === "light dark") rules += ' _Ac';
|
|
43
43
|
else rules += ' _A-10jn6wd';
|
|
44
|
-
rules += ' -_1de2x0q_b-
|
|
44
|
+
rules += ' -_1de2x0q_b-______x';
|
|
45
45
|
rules += ' b-1de2x0q';
|
|
46
46
|
rules += ' _vd';
|
|
47
47
|
rules += ' _wd';
|
|
@@ -55,7 +55,7 @@ let $88b746eba92c8d0d$var$popover = function anonymous(props, overrides) {
|
|
|
55
55
|
rules += ' vb';
|
|
56
56
|
rules += ' sb';
|
|
57
57
|
rules += ' tb';
|
|
58
|
-
rules += '
|
|
58
|
+
rules += ' ca_____I';
|
|
59
59
|
rules += ' ch';
|
|
60
60
|
if (!$l) {
|
|
61
61
|
if (props.size === "L") rules += ' l_________G';
|
|
@@ -116,7 +116,7 @@ let $88b746eba92c8d0d$var$arrow = function anonymous(props) {
|
|
|
116
116
|
if (props.placement === "right") rules += ' Pc';
|
|
117
117
|
else if (props.placement === "left") rules += ' PF';
|
|
118
118
|
rules += ' xb';
|
|
119
|
-
rules += '
|
|
119
|
+
rules += ' fa_____K';
|
|
120
120
|
rules += ' fj';
|
|
121
121
|
return rules;
|
|
122
122
|
};
|