@react-spectrum/s2 3.0.0-nightly-326f48154-241216 → 3.0.0-nightly-adae13c78-241218
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 +23 -18
- package/dist/Field.cjs.map +1 -1
- package/dist/Field.css +7 -15
- package/dist/Field.css.map +1 -1
- package/dist/Field.mjs +23 -18
- package/dist/Field.mjs.map +1 -1
- package/dist/InlineAlert.cjs +24 -29
- package/dist/InlineAlert.cjs.map +1 -1
- package/dist/InlineAlert.css +15 -19
- package/dist/InlineAlert.css.map +1 -1
- package/dist/InlineAlert.mjs +24 -29
- package/dist/InlineAlert.mjs.map +1 -1
- 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 +28 -8
- package/dist/Menu.cjs.map +1 -1
- package/dist/Menu.css +3 -3
- package/dist/Menu.css.map +1 -1
- package/dist/Menu.mjs +29 -9
- 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 +19 -17
- package/src/InlineAlert.tsx +0 -1
- package/src/Link.tsx +7 -12
- package/src/Menu.tsx +24 -8
- 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/Button.mjs
CHANGED
|
@@ -59,12 +59,13 @@ const $067ea9f64ccd4e8e$var$button = function anonymous(props, overrides) {
|
|
|
59
59
|
}
|
|
60
60
|
if (props.isFocusVisible) rules += ' _Lb';
|
|
61
61
|
else rules += ' _La';
|
|
62
|
-
rules += '
|
|
63
|
-
if (props.
|
|
64
|
-
else if (props.staticColor === "white") rules += ' dc';
|
|
62
|
+
rules += ' da_____M';
|
|
63
|
+
if (props.isStaticColor) rules += ' d_____G';
|
|
65
64
|
else rules += ' dx';
|
|
66
65
|
rules += ' _Nc';
|
|
67
66
|
rules += ' _M-3t1z';
|
|
67
|
+
if (props.staticColor === "white") rules += ' -_1de2x0q_b-b';
|
|
68
|
+
else if (props.staticColor === "black") rules += ' -_1de2x0q_b-c';
|
|
68
69
|
if (!$U) rules += ' Uc';
|
|
69
70
|
rules += ' _Zd';
|
|
70
71
|
rules += ' _1-soocicc';
|
|
@@ -101,41 +102,26 @@ const $067ea9f64ccd4e8e$var$button = function anonymous(props, overrides) {
|
|
|
101
102
|
rules += ' _f-1x99dlob';
|
|
102
103
|
rules += ' _fa';
|
|
103
104
|
if (props.fillStyle === "outline") {
|
|
104
|
-
if (props.isDisabled) rules += '
|
|
105
|
-
else rules += '
|
|
105
|
+
if (props.isDisabled) rules += ' aa_____O';
|
|
106
|
+
else rules += ' aa_____K';
|
|
106
107
|
} else if (props.fillStyle === "fill") {
|
|
107
|
-
if (props.isDisabled) rules += '
|
|
108
|
-
else rules += '
|
|
108
|
+
if (props.isDisabled) rules += ' aa_____N';
|
|
109
|
+
else rules += ' aa_____J';
|
|
109
110
|
}
|
|
110
|
-
if (props.
|
|
111
|
-
if (props.isDisabled) rules += '
|
|
111
|
+
if (props.isStaticColor) {
|
|
112
|
+
if (props.isDisabled) rules += ' a_____A';
|
|
112
113
|
else if (props.fillStyle === "outline") {
|
|
113
|
-
if (props.isPressed) rules += '
|
|
114
|
-
else if (props.isFocusVisible) rules += '
|
|
115
|
-
else if (props.isHovered) rules += '
|
|
116
|
-
else rules += '
|
|
114
|
+
if (props.isPressed) rules += ' a_____F';
|
|
115
|
+
else if (props.isFocusVisible) rules += ' a_____F';
|
|
116
|
+
else if (props.isHovered) rules += ' a_____F';
|
|
117
|
+
else rules += ' a_____E';
|
|
117
118
|
} else if (props.fillStyle === "fill") {
|
|
118
119
|
if (props.variant === "secondary") {
|
|
119
|
-
if (props.isPressed) rules += '
|
|
120
|
-
else if (props.isFocusVisible) rules += '
|
|
121
|
-
else if (props.isHovered) rules += '
|
|
122
|
-
else rules += '
|
|
123
|
-
} else if (props.variant === "primary") rules += '
|
|
124
|
-
}
|
|
125
|
-
} else if (props.staticColor === "white") {
|
|
126
|
-
if (props.isDisabled) rules += ' a_____a';
|
|
127
|
-
else if (props.fillStyle === "outline") {
|
|
128
|
-
if (props.isPressed) rules += ' a_____f';
|
|
129
|
-
else if (props.isFocusVisible) rules += ' a_____f';
|
|
130
|
-
else if (props.isHovered) rules += ' a_____f';
|
|
131
|
-
else rules += ' a_____e';
|
|
132
|
-
} else if (props.fillStyle === "fill") {
|
|
133
|
-
if (props.variant === "secondary") {
|
|
134
|
-
if (props.isPressed) rules += ' a_____f';
|
|
135
|
-
else if (props.isFocusVisible) rules += ' a_____f';
|
|
136
|
-
else if (props.isHovered) rules += ' a_____f';
|
|
137
|
-
else rules += ' a_____e';
|
|
138
|
-
} else if (props.variant === "primary") rules += ' ab';
|
|
120
|
+
if (props.isPressed) rules += ' a_____F';
|
|
121
|
+
else if (props.isFocusVisible) rules += ' a_____F';
|
|
122
|
+
else if (props.isHovered) rules += ' a_____F';
|
|
123
|
+
else rules += ' a_____E';
|
|
124
|
+
} else if (props.variant === "primary") rules += ' a_____R';
|
|
139
125
|
}
|
|
140
126
|
} else if (props.fillStyle === "outline") {
|
|
141
127
|
if (props.isDisabled) rules += ' aj';
|
|
@@ -192,34 +178,21 @@ const $067ea9f64ccd4e8e$var$button = function anonymous(props, overrides) {
|
|
|
192
178
|
rules += ' -_1gogtue_E--1dbqcch';
|
|
193
179
|
rules += ' -oelgqu_A--soocica';
|
|
194
180
|
rules += ' -oelgqu_A--177861o';
|
|
195
|
-
if (props.isDisabled) rules += '
|
|
196
|
-
else if (props.isHovered) rules += '
|
|
197
|
-
else rules += '
|
|
198
|
-
if (props.
|
|
199
|
-
if (props.isDisabled) rules += '
|
|
200
|
-
else if (props.variant === "secondary") {
|
|
201
|
-
if (props.isPressed) rules += ' c_____n';
|
|
202
|
-
else if (props.isFocusVisible) rules += ' c_____n';
|
|
203
|
-
else if (props.isHovered) rules += ' c_____n';
|
|
204
|
-
else rules += ' c_____m';
|
|
205
|
-
} else if (props.variant === "primary") {
|
|
206
|
-
if (props.isPressed) rules += ' c_____s';
|
|
207
|
-
else if (props.isFocusVisible) rules += ' c_____s';
|
|
208
|
-
else if (props.isHovered) rules += ' c_____s';
|
|
209
|
-
else rules += ' c_____r';
|
|
210
|
-
}
|
|
211
|
-
} else if (props.staticColor === "white") {
|
|
212
|
-
if (props.isDisabled) rules += ' c____9';
|
|
181
|
+
if (props.isDisabled) rules += ' ca_____O';
|
|
182
|
+
else if (props.isHovered) rules += ' ca_____M';
|
|
183
|
+
else rules += ' ca_____I';
|
|
184
|
+
if (props.isStaticColor) {
|
|
185
|
+
if (props.isDisabled) rules += ' c_____z';
|
|
213
186
|
else if (props.variant === "secondary") {
|
|
214
|
-
if (props.isPressed) rules += '
|
|
215
|
-
else if (props.isFocusVisible) rules += '
|
|
216
|
-
else if (props.isHovered) rules += '
|
|
217
|
-
else rules += '
|
|
187
|
+
if (props.isPressed) rules += ' c_____A';
|
|
188
|
+
else if (props.isFocusVisible) rules += ' c_____A';
|
|
189
|
+
else if (props.isHovered) rules += ' c_____A';
|
|
190
|
+
else rules += ' c_____z';
|
|
218
191
|
} else if (props.variant === "primary") {
|
|
219
|
-
if (props.isPressed) rules += '
|
|
220
|
-
else if (props.isFocusVisible) rules += '
|
|
221
|
-
else if (props.isHovered) rules += '
|
|
222
|
-
else rules += '
|
|
192
|
+
if (props.isPressed) rules += ' c_____F';
|
|
193
|
+
else if (props.isFocusVisible) rules += ' c_____F';
|
|
194
|
+
else if (props.isHovered) rules += ' c_____F';
|
|
195
|
+
else rules += ' c_____E';
|
|
223
196
|
}
|
|
224
197
|
} else if (props.isDisabled) rules += ' ci';
|
|
225
198
|
else if (props.variant === "secondary") {
|
|
@@ -233,96 +206,76 @@ const $067ea9f64ccd4e8e$var$button = function anonymous(props, overrides) {
|
|
|
233
206
|
else if (props.isHovered) rules += ' co';
|
|
234
207
|
else rules += ' cn';
|
|
235
208
|
}
|
|
236
|
-
|
|
209
|
+
rules += ' b-375toh';
|
|
210
|
+
rules += ' -rwx0fg_e-b';
|
|
211
|
+
rules += ' _zb';
|
|
212
|
+
rules += ' __R-yksgrp';
|
|
213
|
+
if (props.size === "XL") rules += ' -_375tou_o-j';
|
|
214
|
+
else if (props.size === "L") rules += ' -_375tou_o-i';
|
|
215
|
+
else if (props.size === "S") rules += ' -_375tou_o-h';
|
|
216
|
+
else if (props.size === "XS") rules += ' -_375tou_o-g';
|
|
217
|
+
else rules += ' -_375tou_o-f';
|
|
218
|
+
if (props.fillStyle === "outline") rules += ' -_375tp0_u-c';
|
|
219
|
+
else if (props.fillStyle === "fill") rules += ' -_375tp0_u-a';
|
|
220
|
+
if (props.fillStyle === "outline") rules += ' -_375tp1_v-c';
|
|
221
|
+
else if (props.fillStyle === "fill") rules += ' -_375tp1_v-a';
|
|
222
|
+
if (props.fillStyle === "outline") rules += ' -_375toh_b-a_____J';
|
|
237
223
|
else if (props.fillStyle === "fill") {
|
|
238
|
-
if (props.isDisabled) rules += '
|
|
239
|
-
else if (props.isHovered) rules += '
|
|
240
|
-
else rules += '
|
|
224
|
+
if (props.isDisabled) rules += ' -_375toh_b-a_____O';
|
|
225
|
+
else if (props.isHovered) rules += ' -_375toh_b-a_____M';
|
|
226
|
+
else rules += ' -_375toh_b-a_____K';
|
|
241
227
|
}
|
|
242
|
-
if (props.
|
|
228
|
+
if (props.isStaticColor) {
|
|
243
229
|
if (props.fillStyle === "outline") {
|
|
244
|
-
if (props.isDisabled) rules += '
|
|
245
|
-
else if (props.isFocusVisible) rules += '
|
|
246
|
-
else if (props.isPressed) rules += '
|
|
247
|
-
else if (props.isHovered) rules += '
|
|
248
|
-
else rules += '
|
|
230
|
+
if (props.isDisabled) rules += ' -_375toh_b-a';
|
|
231
|
+
else if (props.isFocusVisible) rules += ' -_375toh_b-_____x';
|
|
232
|
+
else if (props.isPressed) rules += ' -_375toh_b-_____x';
|
|
233
|
+
else if (props.isHovered) rules += ' -_375toh_b-_____x';
|
|
234
|
+
else rules += ' -_375toh_b-a';
|
|
249
235
|
} else if (props.fillStyle === "fill") {
|
|
250
|
-
if (props.isDisabled) rules += '
|
|
236
|
+
if (props.isDisabled) rules += ' -_375toh_b-_____x';
|
|
251
237
|
else if (props.variant === "secondary") {
|
|
252
|
-
if (props.isPressed) rules += '
|
|
253
|
-
else if (props.isFocusVisible) rules += '
|
|
254
|
-
else if (props.isHovered) rules += '
|
|
255
|
-
else rules += '
|
|
238
|
+
if (props.isPressed) rules += ' -_375toh_b-_____y';
|
|
239
|
+
else if (props.isFocusVisible) rules += ' -_375toh_b-_____y';
|
|
240
|
+
else if (props.isHovered) rules += ' -_375toh_b-_____y';
|
|
241
|
+
else rules += ' -_375toh_b-_____x';
|
|
256
242
|
} else if (props.variant === "primary") {
|
|
257
|
-
if (props.isPressed) rules += '
|
|
258
|
-
else if (props.isFocusVisible) rules += '
|
|
259
|
-
else if (props.isHovered) rules += '
|
|
260
|
-
else rules += '
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
} else if (props.staticColor === "white") {
|
|
264
|
-
if (props.fillStyle === "outline") {
|
|
265
|
-
if (props.isDisabled) rules += ' ba';
|
|
266
|
-
else if (props.isFocusVisible) rules += ' b____7';
|
|
267
|
-
else if (props.isPressed) rules += ' b____7';
|
|
268
|
-
else if (props.isHovered) rules += ' b____7';
|
|
269
|
-
else rules += ' ba';
|
|
270
|
-
} else if (props.fillStyle === "fill") {
|
|
271
|
-
if (props.isDisabled) rules += ' b____7';
|
|
272
|
-
else if (props.variant === "secondary") {
|
|
273
|
-
if (props.isPressed) rules += ' b____8';
|
|
274
|
-
else if (props.isFocusVisible) rules += ' b____8';
|
|
275
|
-
else if (props.isHovered) rules += ' b____8';
|
|
276
|
-
else rules += ' b____7';
|
|
277
|
-
} else if (props.variant === "primary") {
|
|
278
|
-
if (props.isPressed) rules += ' b_____f';
|
|
279
|
-
else if (props.isFocusVisible) rules += ' b_____f';
|
|
280
|
-
else if (props.isHovered) rules += ' b_____f';
|
|
281
|
-
else rules += ' b_____e';
|
|
243
|
+
if (props.isPressed) rules += ' -_375toh_b-_____F';
|
|
244
|
+
else if (props.isFocusVisible) rules += ' -_375toh_b-_____F';
|
|
245
|
+
else if (props.isHovered) rules += ' -_375toh_b-_____F';
|
|
246
|
+
else rules += ' -_375toh_b-_____E';
|
|
282
247
|
}
|
|
283
248
|
}
|
|
284
249
|
} else if (props.fillStyle === "outline") {
|
|
285
|
-
if (props.isDisabled) rules += '
|
|
286
|
-
else if (props.isFocusVisible) rules += '
|
|
287
|
-
else if (props.isPressed) rules += '
|
|
288
|
-
else if (props.isHovered) rules += '
|
|
289
|
-
else rules += '
|
|
250
|
+
if (props.isDisabled) rules += ' -_375toh_b-a';
|
|
251
|
+
else if (props.isFocusVisible) rules += ' -_375toh_b-g';
|
|
252
|
+
else if (props.isPressed) rules += ' -_375toh_b-g';
|
|
253
|
+
else if (props.isHovered) rules += ' -_375toh_b-g';
|
|
254
|
+
else rules += ' -_375toh_b-a';
|
|
290
255
|
} else if (props.fillStyle === "fill") {
|
|
291
|
-
if (props.isDisabled) rules += '
|
|
256
|
+
if (props.isDisabled) rules += ' -_375toh_b-g';
|
|
292
257
|
else if (props.variant === "negative") {
|
|
293
|
-
if (props.isPressed) rules += '
|
|
294
|
-
else if (props.isFocusVisible) rules += '
|
|
295
|
-
else if (props.isHovered) rules += '
|
|
296
|
-
else rules += '
|
|
258
|
+
if (props.isPressed) rules += ' -_375toh_b-_____Y';
|
|
259
|
+
else if (props.isFocusVisible) rules += ' -_375toh_b-_____Y';
|
|
260
|
+
else if (props.isHovered) rules += ' -_375toh_b-_____Y';
|
|
261
|
+
else rules += ' -_375toh_b-_____X';
|
|
297
262
|
} else if (props.variant === "accent") {
|
|
298
|
-
if (props.isPressed) rules += '
|
|
299
|
-
else if (props.isFocusVisible) rules += '
|
|
300
|
-
else if (props.isHovered) rules += '
|
|
301
|
-
else rules += '
|
|
263
|
+
if (props.isPressed) rules += ' -_375toh_b-_____S';
|
|
264
|
+
else if (props.isFocusVisible) rules += ' -_375toh_b-_____S';
|
|
265
|
+
else if (props.isHovered) rules += ' -_375toh_b-_____S';
|
|
266
|
+
else rules += ' -_375toh_b-_____R';
|
|
302
267
|
} else if (props.variant === "secondary") {
|
|
303
|
-
if (props.isPressed) rules += '
|
|
304
|
-
else if (props.isFocusVisible) rules += '
|
|
305
|
-
else if (props.isHovered) rules += '
|
|
306
|
-
else rules += '
|
|
268
|
+
if (props.isPressed) rules += ' -_375toh_b-h';
|
|
269
|
+
else if (props.isFocusVisible) rules += ' -_375toh_b-h';
|
|
270
|
+
else if (props.isHovered) rules += ' -_375toh_b-h';
|
|
271
|
+
else rules += ' -_375toh_b-g';
|
|
307
272
|
} else if (props.variant === "primary") {
|
|
308
|
-
if (props.isPressed) rules += '
|
|
309
|
-
else if (props.isFocusVisible) rules += '
|
|
310
|
-
else if (props.isHovered) rules += '
|
|
311
|
-
else rules += '
|
|
273
|
+
if (props.isPressed) rules += ' -_375toh_b-o';
|
|
274
|
+
else if (props.isFocusVisible) rules += ' -_375toh_b-o';
|
|
275
|
+
else if (props.isHovered) rules += ' -_375toh_b-o';
|
|
276
|
+
else rules += ' -_375toh_b-n';
|
|
312
277
|
}
|
|
313
278
|
}
|
|
314
|
-
rules += ' -rwx0fg_e-b';
|
|
315
|
-
rules += ' _zb';
|
|
316
|
-
rules += ' __R-yksgrp';
|
|
317
|
-
if (props.size === "XL") rules += ' -_375tou_o-j';
|
|
318
|
-
else if (props.size === "L") rules += ' -_375tou_o-i';
|
|
319
|
-
else if (props.size === "S") rules += ' -_375tou_o-h';
|
|
320
|
-
else if (props.size === "XS") rules += ' -_375tou_o-g';
|
|
321
|
-
else rules += ' -_375tou_o-f';
|
|
322
|
-
if (props.fillStyle === "outline") rules += ' -_375tp0_u-c';
|
|
323
|
-
else if (props.fillStyle === "fill") rules += ' -_375tp0_u-a';
|
|
324
|
-
if (props.fillStyle === "outline") rules += ' -_375tp1_v-c';
|
|
325
|
-
else if (props.fillStyle === "fill") rules += ' -_375tp1_v-a';
|
|
326
279
|
return rules;
|
|
327
280
|
};
|
|
328
281
|
const $067ea9f64ccd4e8e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $7BBHC$forwardRef)(function Button(props1, ref) {
|
|
@@ -360,7 +313,8 @@ const $067ea9f64ccd4e8e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $7BBHC$forwa
|
|
|
360
313
|
variant: variant,
|
|
361
314
|
fillStyle: fillStyle,
|
|
362
315
|
size: size,
|
|
363
|
-
staticColor: staticColor
|
|
316
|
+
staticColor: staticColor,
|
|
317
|
+
isStaticColor: !!staticColor
|
|
364
318
|
}, props1.styles),
|
|
365
319
|
children: /*#__PURE__*/ (0, $7BBHC$jsxs)((0, $7BBHC$Provider), {
|
|
366
320
|
values: [
|
|
@@ -468,6 +422,7 @@ const $067ea9f64ccd4e8e$export$29d11c0fe2fc51d8 = /*#__PURE__*/ (0, $7BBHC$forwa
|
|
|
468
422
|
fillStyle: props.fillStyle || 'fill',
|
|
469
423
|
size: props.size || 'M',
|
|
470
424
|
staticColor: props.staticColor,
|
|
425
|
+
isStaticColor: !!props.staticColor,
|
|
471
426
|
isPending: false
|
|
472
427
|
}, props.styles),
|
|
473
428
|
children: /*#__PURE__*/ (0, $7BBHC$jsx)((0, $7BBHC$Provider), {
|
package/dist/Button.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;;;AAqDM,MAAM,0DAAgB,CAAA,GAAA,oBAAY,EAAmE;AACrG,MAAM,0DAAoB,CAAA,GAAA,oBAAY,EAAmE;AAEhH,MAAM,iCAAW;AACjB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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QACT,KAAK;QACL,OAAO,CAAA,GAAA,yCAAS,EAAE,QAAQ,MAAM,YAAY;QAC5C,WAAW,CAAA,cAAe,AAAC,CAAA,MAAM,gBAAgB,IAAI,EAAC,IAAK,6BAAO;gBAChE,GAAG,WAAW;gBACd,+CAA+C;gBAC/C,WAAW,YAAY,SAAS,IAAI,qBAAqB,UAAU;gBACnE,SAAS,MAAM,OAAO,IAAI;gBAC1B,WAAW,MAAM,SAAS,IAAI;gBAC9B,MAAM,MAAM,IAAI,IAAI;gBACpB,aAAa,MAAM,WAAW;gBAC9B,WAAW;YACb,GAAG,MAAM,MAAM;kBACf,cAAA,gBAAC,CAAA,GAAA,eAAO;YACN,QAAQ;gBACN;oBAAC,CAAA,GAAA,yCAAc;oBAAG;iBAAK;gBACvB;oBAAC,CAAA,GAAA,yCAAU;oBAAG;wBACZ,MAAM;wBACN,kHAAkH;wBAClH,iBAAiB;oBACnB;iBAAE;gBACF;oBAAC,CAAA,GAAA,yCAAU;oBAAG;wBACZ,QAAQ,CAAA,GAAA,yCAAa,EAAE;4BAAC,MAAM;4BAAQ,MAAM;wBAAmB;wBAC/D,MAAM;oBACR;iBAAE;aACH;sBACA,OAAO,MAAM,QAAQ,KAAK,yBAAW,gBAAC,CAAA,GAAA,yCAAG;0BAAG,MAAM,QAAQ;iBAAW,MAAM,QAAQ;;;AAI5F","sources":["packages/@react-spectrum/s2/src/Button.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, fontRelative, style} from '../style' with {type: 'macro'};\nimport {ButtonRenderProps, ContextValue, Link, LinkProps, OverlayTriggerStateContext, Provider, Button as RACButton, ButtonProps as RACButtonProps} from 'react-aria-components';\nimport {centerBaseline} from './CenterBaseline';\nimport {centerPadding, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {createContext, forwardRef, ReactNode, useContext, useEffect, useState} from 'react';\nimport {FocusableRef, FocusableRefValue} from '@react-types/shared';\nimport {IconContext} from './Icon';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {pressScale} from './pressScale';\nimport {ProgressCircle} from './ProgressCircle';\nimport {SkeletonContext} from './Skeleton';\nimport {Text, TextContext} from './Content';\nimport {useFocusableRef} from '@react-spectrum/utils';\nimport {useFormProps} from './Form';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\ninterface ButtonStyleProps {\n /**\n * The [visual style](https://spectrum.adobe.com/page/button/#Options) of the button.\n *\n * @default 'primary'\n */\n variant?: 'primary' | 'secondary' | 'accent' | 'negative',\n /**\n * The background style of the Button.\n *\n * @default 'fill'\n */\n fillStyle?: 'fill' | 'outline',\n /**\n * The size of the Button.\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'\n}\n\nexport interface ButtonProps extends Omit<RACButtonProps, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, ButtonStyleProps {\n /** The content to display in the Button. */\n children?: ReactNode\n}\n\nexport interface LinkButtonProps extends Omit<LinkProps, 'className' | 'style' | 'children'>, StyleProps, ButtonStyleProps {\n /** The content to display in the Button. */\n children?: ReactNode\n}\n\nexport const ButtonContext = createContext<ContextValue<ButtonProps, FocusableRefValue<HTMLButtonElement>>>(null);\nexport const LinkButtonContext = createContext<ContextValue<ButtonProps, FocusableRefValue<HTMLAnchorElement>>>(null);\n\nconst iconOnly = ':has([slot=icon]):not(:has([data-rsp-slot=text]))';\nconst button = style<ButtonRenderProps & ButtonStyleProps>({\n ...focusRing(),\n position: 'relative',\n display: 'flex',\n alignItems: {\n default: 'baseline',\n [iconOnly]: 'center'\n },\n justifyContent: 'center',\n textAlign: 'start',\n columnGap: 'text-to-visual',\n font: 'control',\n fontWeight: 'bold',\n userSelect: 'none',\n minHeight: 'control',\n minWidth: {\n [iconOnly]: 'control'\n },\n borderRadius: 'pill',\n boxSizing: 'border-box',\n width: 'fit',\n textDecoration: 'none', // for link buttons\n paddingX: {\n default: 'pill',\n [iconOnly]: 0\n },\n paddingY: 0,\n aspectRatio: {\n [iconOnly]: 'square'\n },\n transition: 'default',\n borderStyle: 'solid',\n borderWidth: {\n fillStyle: {\n fill: 0,\n outline: 2\n }\n },\n '--labelPadding': {\n type: 'paddingTop',\n value: centerPadding()\n },\n '--iconMargin': {\n type: 'marginTop',\n value: {\n default: fontRelative(-2),\n [iconOnly]: 0\n }\n },\n borderColor: {\n variant: {\n primary: baseColor('gray-800'),\n secondary: baseColor('gray-300')\n },\n isDisabled: 'disabled',\n staticColor: {\n white: {\n variant: {\n primary: baseColor('transparent-white-800'),\n secondary: baseColor('transparent-white-300')\n },\n isDisabled: 'transparent-white-300'\n },\n black: {\n variant: {\n primary: baseColor('transparent-black-800'),\n secondary: baseColor('transparent-black-300')\n },\n isDisabled: 'transparent-black-300'\n }\n },\n forcedColors: {\n default: 'ButtonBorder',\n isHovered: 'Highlight',\n isDisabled: 'GrayText'\n }\n },\n backgroundColor: {\n fillStyle: {\n fill: {\n variant: {\n primary: 'neutral',\n secondary: baseColor('gray-100'),\n accent: 'accent',\n negative: 'negative'\n },\n isDisabled: 'disabled'\n },\n outline: {\n default: 'transparent',\n isHovered: 'gray-100',\n isPressed: 'gray-100',\n isFocusVisible: 'gray-100',\n isDisabled: 'transparent'\n }\n },\n staticColor: {\n white: {\n fillStyle: {\n fill: {\n variant: {\n primary: baseColor('transparent-white-800'),\n secondary: baseColor('transparent-white-100')\n },\n isDisabled: 'transparent-white-100'\n },\n outline: {\n default: 'transparent',\n isHovered: 'transparent-white-100',\n isPressed: 'transparent-white-100',\n isFocusVisible: 'transparent-white-100',\n isDisabled: 'transparent'\n }\n }\n },\n black: {\n fillStyle: {\n fill: {\n variant: {\n primary: baseColor('transparent-black-800'),\n secondary: baseColor('transparent-black-100')\n },\n isDisabled: 'transparent-black-100'\n },\n outline: {\n default: 'transparent',\n isHovered: 'transparent-black-100',\n isPressed: 'transparent-black-100',\n isFocusVisible: 'transparent-black-100',\n isDisabled: 'transparent'\n }\n }\n }\n },\n forcedColors: {\n fillStyle: {\n fill: {\n default: 'ButtonText',\n isHovered: 'Highlight',\n isDisabled: 'GrayText'\n },\n outline: 'ButtonFace'\n }\n }\n },\n color: {\n fillStyle: {\n fill: {\n variant: {\n primary: 'gray-25',\n secondary: 'neutral',\n accent: 'white',\n negative: 'white'\n },\n isDisabled: 'disabled'\n },\n outline: {\n default: 'neutral',\n isDisabled: 'disabled'\n }\n },\n staticColor: {\n white: {\n fillStyle: {\n fill: {\n variant: {\n primary: 'black',\n secondary: baseColor('transparent-white-800')\n }\n },\n outline: baseColor('transparent-white-800')\n },\n isDisabled: 'transparent-white-400'\n },\n black: {\n fillStyle: {\n fill: {\n variant: {\n primary: 'white',\n secondary: baseColor('transparent-black-800')\n }\n },\n outline: baseColor('transparent-black-800')\n },\n isDisabled: 'transparent-black-400'\n }\n },\n forcedColors: {\n fillStyle: {\n fill: {\n default: 'ButtonFace',\n isDisabled: 'HighlightText'\n },\n outline: {\n default: 'ButtonText',\n isDisabled: 'GrayText'\n }\n }\n }\n },\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n },\n outlineColor: {\n default: 'focus-ring',\n staticColor: {\n white: 'white',\n black: 'black'\n },\n forcedColors: 'Highlight'\n },\n forcedColorAdjust: 'none',\n disableTapHighlight: true\n}, getAllowedOverrides());\n\n/**\n * Buttons allow users to perform an action.\n * They have multiple styles for various needs, and are ideal for calling attention to\n * where a user needs to do something in order to move forward in a flow.\n */\nexport const Button = forwardRef(function Button(props: ButtonProps, ref: FocusableRef<HTMLButtonElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, ButtonContext);\n props = useFormProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2');\n let {\n isPending,\n variant = 'primary',\n fillStyle = 'fill',\n size = 'M',\n staticColor\n } = props;\n let domRef = useFocusableRef(ref);\n let overlayTriggerState = useContext(OverlayTriggerStateContext);\n\n let [isProgressVisible, setIsProgressVisible] = useState(false);\n useEffect(() => {\n let timeout: ReturnType<typeof setTimeout>;\n\n if (isPending) {\n // Start timer when isPending is set to true.\n timeout = setTimeout(() => {\n setIsProgressVisible(true);\n }, 1000);\n } else {\n // Exit loading state when isPending is set to false. */\n setIsProgressVisible(false);\n }\n return () => {\n // Clean up on unmount or when user removes isPending prop before entering loading state.\n clearTimeout(timeout);\n };\n }, [isPending]);\n\n return (\n <RACButton\n {...props}\n ref={domRef}\n style={pressScale(domRef, props.UNSAFE_style)}\n className={renderProps => (props.UNSAFE_className || '') + button({\n ...renderProps,\n // Retain hover styles when an overlay is open.\n isHovered: renderProps.isHovered || overlayTriggerState?.isOpen || false,\n isDisabled: renderProps.isDisabled || isProgressVisible,\n variant,\n fillStyle,\n size,\n staticColor\n }, props.styles)}>\n <Provider\n values={[\n [SkeletonContext, null],\n [TextContext, {\n styles: style({\n paddingY: '--labelPadding',\n order: 1,\n opacity: {\n default: 1,\n isProgressVisible: 0\n }\n })({isProgressVisible}),\n // @ts-ignore data-attributes allowed on all JSX elements, but adding to DOMProps has been problematic in the past\n 'data-rsp-slot': 'text'\n }],\n [IconContext, {\n render: centerBaseline({slot: 'icon', styles: style({order: 0})}),\n styles: style({\n size: fontRelative(20),\n marginStart: '--iconMargin',\n flexShrink: 0,\n opacity: {\n default: 1,\n isProgressVisible: 0\n }\n })({isProgressVisible})\n }]\n ]}>\n {typeof props.children === 'string' ? <Text>{props.children}</Text> : props.children}\n {isPending &&\n <div\n className={style({\n position: 'absolute',\n top: '[50%]',\n left: '[50%]',\n transform: 'translate(-50%, -50%)',\n opacity: {\n default: 0,\n isProgressVisible: 1\n }\n })({isProgressVisible, isPending})}>\n <ProgressCircle\n isIndeterminate\n aria-label={stringFormatter.format('button.pending')}\n size=\"S\"\n staticColor={staticColor}\n styles={style({\n size: {\n size: {\n S: 14,\n M: 18,\n L: 20,\n XL: 24\n }\n }\n })({size})} />\n </div>\n }\n </Provider>\n </RACButton>\n );\n});\n\n/**\n * A LinkButton combines the functionality of a link with the appearance of a button. Useful for allowing users to navigate to another page.\n */\nexport const LinkButton = forwardRef(function LinkButton(props: LinkButtonProps, ref: FocusableRef<HTMLAnchorElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, LinkButtonContext);\n props = useFormProps(props);\n let domRef = useFocusableRef(ref);\n let overlayTriggerState = useContext(OverlayTriggerStateContext);\n\n return (\n <Link\n {...props}\n ref={domRef}\n style={pressScale(domRef, props.UNSAFE_style)}\n className={renderProps => (props.UNSAFE_className || '') + button({\n ...renderProps,\n // Retain hover styles when an overlay is open.\n isHovered: renderProps.isHovered || overlayTriggerState?.isOpen || false,\n variant: props.variant || 'primary',\n fillStyle: props.fillStyle || 'fill',\n size: props.size || 'M',\n staticColor: props.staticColor,\n isPending: false\n }, props.styles)}>\n <Provider\n values={[\n [SkeletonContext, null],\n [TextContext, {\n styles: style({paddingY: '--labelPadding', order: 1}),\n // @ts-ignore data-attributes allowed on all JSX elements, but adding to DOMProps has been problematic in the past\n 'data-rsp-slot': 'text'\n }],\n [IconContext, {\n render: centerBaseline({slot: 'icon', styles: style({order: 0})}),\n styles: style({size: fontRelative(20), marginStart: '--iconMargin', flexShrink: 0})\n }]\n ]}>\n {typeof props.children === 'string' ? <Text>{props.children}</Text> : props.children}\n </Provider>\n </Link>\n );\n});\n"],"names":[],"version":3,"file":"Button.mjs.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;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Q,CAAA,GAAA,yCAAW,EAAE;IACrB,IAAI,SAAS,CAAA,GAAA,sBAAc,EAAE;IAC7B,IAAI,sBAAsB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,iCAAyB;IAE9D,qBACE,gBAAC,CAAA,GAAA,WAAG;QACD,GAAG,KAAK;QACT,KAAK;QACL,OAAO,CAAA,GAAA,yCAAS,EAAE,QAAQ,MAAM,YAAY;QAC5C,WAAW,CAAA,cAAe,AAAC,CAAA,MAAM,gBAAgB,IAAI,EAAC,IAAK,6BAAO;gBAChE,GAAG,WAAW;gBACd,+CAA+C;gBAC/C,WAAW,YAAY,SAAS,IAAI,qBAAqB,UAAU;gBACnE,SAAS,MAAM,OAAO,IAAI;gBAC1B,WAAW,MAAM,SAAS,IAAI;gBAC9B,MAAM,MAAM,IAAI,IAAI;gBACpB,aAAa,MAAM,WAAW;gBAC9B,eAAe,CAAC,CAAC,MAAM,WAAW;gBAClC,WAAW;YACb,GAAG,MAAM,MAAM;kBACf,cAAA,gBAAC,CAAA,GAAA,eAAO;YACN,QAAQ;gBACN;oBAAC,CAAA,GAAA,yCAAc;oBAAG;iBAAK;gBACvB;oBAAC,CAAA,GAAA,yCAAU;oBAAG;wBACZ,MAAM;wBACN,kHAAkH;wBAClH,iBAAiB;oBACnB;iBAAE;gBACF;oBAAC,CAAA,GAAA,yCAAU;oBAAG;wBACZ,QAAQ,CAAA,GAAA,yCAAa,EAAE;4BAAC,MAAM;4BAAQ,MAAM;wBAAmB;wBAC/D,MAAM;oBACR;iBAAE;aACH;sBACA,OAAO,MAAM,QAAQ,KAAK,yBAAW,gBAAC,CAAA,GAAA,yCAAG;0BAAG,MAAM,QAAQ;iBAAW,MAAM,QAAQ;;;AAI5F","sources":["packages/@react-spectrum/s2/src/Button.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, fontRelative, style} from '../style' with {type: 'macro'};\nimport {ButtonRenderProps, ContextValue, Link, LinkProps, OverlayTriggerStateContext, Provider, Button as RACButton, ButtonProps as RACButtonProps} from 'react-aria-components';\nimport {centerBaseline} from './CenterBaseline';\nimport {centerPadding, getAllowedOverrides, staticColor, StyleProps} from './style-utils' with {type: 'macro'};\nimport {createContext, forwardRef, ReactNode, useContext, useEffect, useState} from 'react';\nimport {FocusableRef, FocusableRefValue} from '@react-types/shared';\nimport {IconContext} from './Icon';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {pressScale} from './pressScale';\nimport {ProgressCircle} from './ProgressCircle';\nimport {SkeletonContext} from './Skeleton';\nimport {Text, TextContext} from './Content';\nimport {useFocusableRef} from '@react-spectrum/utils';\nimport {useFormProps} from './Form';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\ninterface ButtonStyleProps {\n /**\n * The [visual style](https://spectrum.adobe.com/page/button/#Options) of the button.\n *\n * @default 'primary'\n */\n variant?: 'primary' | 'secondary' | 'accent' | 'negative',\n /**\n * The background style of the Button.\n *\n * @default 'fill'\n */\n fillStyle?: 'fill' | 'outline',\n /**\n * The size of the Button.\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\nexport interface ButtonProps extends Omit<RACButtonProps, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, ButtonStyleProps {\n /** The content to display in the Button. */\n children?: ReactNode\n}\n\nexport interface LinkButtonProps extends Omit<LinkProps, 'className' | 'style' | 'children'>, StyleProps, ButtonStyleProps {\n /** The content to display in the Button. */\n children?: ReactNode\n}\n\nexport const ButtonContext = createContext<ContextValue<ButtonProps, FocusableRefValue<HTMLButtonElement>>>(null);\nexport const LinkButtonContext = createContext<ContextValue<ButtonProps, FocusableRefValue<HTMLAnchorElement>>>(null);\n\nconst iconOnly = ':has([slot=icon]):not(:has([data-rsp-slot=text]))';\nconst button = style<ButtonRenderProps & ButtonStyleProps & {isStaticColor: boolean}>({\n ...focusRing(),\n ...staticColor(),\n position: 'relative',\n display: 'flex',\n alignItems: {\n default: 'baseline',\n [iconOnly]: 'center'\n },\n justifyContent: 'center',\n textAlign: 'start',\n columnGap: 'text-to-visual',\n font: 'control',\n fontWeight: 'bold',\n userSelect: 'none',\n minHeight: 'control',\n minWidth: {\n [iconOnly]: 'control'\n },\n borderRadius: 'pill',\n boxSizing: 'border-box',\n width: 'fit',\n textDecoration: 'none', // for link buttons\n paddingX: {\n default: 'pill',\n [iconOnly]: 0\n },\n paddingY: 0,\n aspectRatio: {\n [iconOnly]: 'square'\n },\n transition: 'default',\n borderStyle: 'solid',\n borderWidth: {\n fillStyle: {\n fill: 0,\n outline: 2\n }\n },\n '--labelPadding': {\n type: 'paddingTop',\n value: centerPadding()\n },\n '--iconMargin': {\n type: 'marginTop',\n value: {\n default: fontRelative(-2),\n [iconOnly]: 0\n }\n },\n borderColor: {\n variant: {\n primary: baseColor('gray-800'),\n secondary: baseColor('gray-300')\n },\n isDisabled: 'disabled',\n isStaticColor: {\n variant: {\n primary: baseColor('transparent-overlay-800'),\n secondary: baseColor('transparent-overlay-300')\n },\n isDisabled: 'transparent-overlay-300'\n },\n forcedColors: {\n default: 'ButtonBorder',\n isHovered: 'Highlight',\n isDisabled: 'GrayText'\n }\n },\n backgroundColor: {\n fillStyle: {\n fill: {\n variant: {\n primary: 'neutral',\n secondary: baseColor('gray-100'),\n accent: 'accent',\n negative: 'negative'\n },\n isDisabled: 'disabled'\n },\n outline: {\n default: 'transparent',\n isHovered: 'gray-100',\n isPressed: 'gray-100',\n isFocusVisible: 'gray-100',\n isDisabled: 'transparent'\n }\n },\n isStaticColor: {\n fillStyle: {\n fill: {\n variant: {\n primary: baseColor('transparent-overlay-800'),\n secondary: baseColor('transparent-overlay-100')\n },\n isDisabled: 'transparent-overlay-100'\n },\n outline: {\n default: 'transparent',\n isHovered: 'transparent-overlay-100',\n isPressed: 'transparent-overlay-100',\n isFocusVisible: 'transparent-overlay-100',\n isDisabled: 'transparent'\n }\n }\n },\n forcedColors: {\n fillStyle: {\n fill: {\n default: 'ButtonText',\n isHovered: 'Highlight',\n isDisabled: 'GrayText'\n },\n outline: 'ButtonFace'\n }\n }\n },\n color: {\n fillStyle: {\n fill: {\n variant: {\n primary: 'gray-25',\n secondary: 'neutral',\n accent: 'white',\n negative: 'white'\n },\n isDisabled: 'disabled'\n },\n outline: {\n default: 'neutral',\n isDisabled: 'disabled'\n }\n },\n isStaticColor: {\n fillStyle: {\n fill: {\n variant: {\n primary: 'auto',\n secondary: baseColor('transparent-overlay-800')\n }\n },\n outline: baseColor('transparent-overlay-800')\n },\n isDisabled: 'transparent-overlay-400'\n },\n forcedColors: {\n fillStyle: {\n fill: {\n default: 'ButtonFace',\n isDisabled: 'HighlightText'\n },\n outline: {\n default: 'ButtonText',\n isDisabled: 'GrayText'\n }\n }\n }\n },\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n },\n outlineColor: {\n default: 'focus-ring',\n isStaticColor: 'transparent-overlay-1000',\n forcedColors: 'Highlight'\n },\n forcedColorAdjust: 'none',\n disableTapHighlight: true\n}, getAllowedOverrides());\n\n/**\n * Buttons allow users to perform an action.\n * They have multiple styles for various needs, and are ideal for calling attention to\n * where a user needs to do something in order to move forward in a flow.\n */\nexport const Button = forwardRef(function Button(props: ButtonProps, ref: FocusableRef<HTMLButtonElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, ButtonContext);\n props = useFormProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2');\n let {\n isPending,\n variant = 'primary',\n fillStyle = 'fill',\n size = 'M',\n staticColor\n } = props;\n let domRef = useFocusableRef(ref);\n let overlayTriggerState = useContext(OverlayTriggerStateContext);\n\n let [isProgressVisible, setIsProgressVisible] = useState(false);\n useEffect(() => {\n let timeout: ReturnType<typeof setTimeout>;\n\n if (isPending) {\n // Start timer when isPending is set to true.\n timeout = setTimeout(() => {\n setIsProgressVisible(true);\n }, 1000);\n } else {\n // Exit loading state when isPending is set to false. */\n setIsProgressVisible(false);\n }\n return () => {\n // Clean up on unmount or when user removes isPending prop before entering loading state.\n clearTimeout(timeout);\n };\n }, [isPending]);\n\n return (\n <RACButton\n {...props}\n ref={domRef}\n style={pressScale(domRef, props.UNSAFE_style)}\n className={renderProps => (props.UNSAFE_className || '') + button({\n ...renderProps,\n // Retain hover styles when an overlay is open.\n isHovered: renderProps.isHovered || overlayTriggerState?.isOpen || false,\n isDisabled: renderProps.isDisabled || isProgressVisible,\n variant,\n fillStyle,\n size,\n staticColor,\n isStaticColor: !!staticColor\n }, props.styles)}>\n <Provider\n values={[\n [SkeletonContext, null],\n [TextContext, {\n styles: style({\n paddingY: '--labelPadding',\n order: 1,\n opacity: {\n default: 1,\n isProgressVisible: 0\n }\n })({isProgressVisible}),\n // @ts-ignore data-attributes allowed on all JSX elements, but adding to DOMProps has been problematic in the past\n 'data-rsp-slot': 'text'\n }],\n [IconContext, {\n render: centerBaseline({slot: 'icon', styles: style({order: 0})}),\n styles: style({\n size: fontRelative(20),\n marginStart: '--iconMargin',\n flexShrink: 0,\n opacity: {\n default: 1,\n isProgressVisible: 0\n }\n })({isProgressVisible})\n }]\n ]}>\n {typeof props.children === 'string' ? <Text>{props.children}</Text> : props.children}\n {isPending &&\n <div\n className={style({\n position: 'absolute',\n top: '[50%]',\n left: '[50%]',\n transform: 'translate(-50%, -50%)',\n opacity: {\n default: 0,\n isProgressVisible: 1\n }\n })({isProgressVisible, isPending})}>\n <ProgressCircle\n isIndeterminate\n aria-label={stringFormatter.format('button.pending')}\n size=\"S\"\n staticColor={staticColor}\n styles={style({\n size: {\n size: {\n S: 14,\n M: 18,\n L: 20,\n XL: 24\n }\n }\n })({size})} />\n </div>\n }\n </Provider>\n </RACButton>\n );\n});\n\n/**\n * A LinkButton combines the functionality of a link with the appearance of a button. Useful for allowing users to navigate to another page.\n */\nexport const LinkButton = forwardRef(function LinkButton(props: LinkButtonProps, ref: FocusableRef<HTMLAnchorElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, LinkButtonContext);\n props = useFormProps(props);\n let domRef = useFocusableRef(ref);\n let overlayTriggerState = useContext(OverlayTriggerStateContext);\n\n return (\n <Link\n {...props}\n ref={domRef}\n style={pressScale(domRef, props.UNSAFE_style)}\n className={renderProps => (props.UNSAFE_className || '') + button({\n ...renderProps,\n // Retain hover styles when an overlay is open.\n isHovered: renderProps.isHovered || overlayTriggerState?.isOpen || false,\n variant: props.variant || 'primary',\n fillStyle: props.fillStyle || 'fill',\n size: props.size || 'M',\n staticColor: props.staticColor,\n isStaticColor: !!props.staticColor,\n isPending: false\n }, props.styles)}>\n <Provider\n values={[\n [SkeletonContext, null],\n [TextContext, {\n styles: style({paddingY: '--labelPadding', order: 1}),\n // @ts-ignore data-attributes allowed on all JSX elements, but adding to DOMProps has been problematic in the past\n 'data-rsp-slot': 'text'\n }],\n [IconContext, {\n render: centerBaseline({slot: 'icon', styles: style({order: 0})}),\n styles: style({size: fontRelative(20), marginStart: '--iconMargin', flexShrink: 0})\n }]\n ]}>\n {typeof props.children === 'string' ? <Text>{props.children}</Text> : props.children}\n </Provider>\n </Link>\n );\n});\n"],"names":[],"version":3,"file":"Button.mjs.map"}
|
package/dist/Card.cjs
CHANGED
|
@@ -91,9 +91,9 @@ let $230078a1c4ce81d8$var$card = function anonymous(props, overrides) {
|
|
|
91
91
|
if (props.size === "S") rules += ' _yc';
|
|
92
92
|
else if (props.size === "XS") rules += ' _yc';
|
|
93
93
|
else rules += ' _yd';
|
|
94
|
-
rules += ' -_1de2x0q_b-
|
|
94
|
+
rules += ' -_1de2x0q_b-a_____J';
|
|
95
95
|
if (props.variant === "secondary") rules += ' -_1de2x0q_b-e';
|
|
96
|
-
else if (props.variant === "primary") rules += ' -_1de2x0q_b-
|
|
96
|
+
else if (props.variant === "primary") rules += ' -_1de2x0q_b-______x';
|
|
97
97
|
if (props.variant === "quiet") rules += ' ba';
|
|
98
98
|
else if (props.variant === "tertiary") rules += ' ba';
|
|
99
99
|
else rules += ' b-1de2x0q';
|
|
@@ -171,7 +171,7 @@ let $230078a1c4ce81d8$var$card = function anonymous(props, overrides) {
|
|
|
171
171
|
if (props.variant === "quiet") rules += ' _La';
|
|
172
172
|
else if (props.isFocusVisible) rules += ' _Lb';
|
|
173
173
|
else rules += ' _La';
|
|
174
|
-
rules += '
|
|
174
|
+
rules += ' da_____M';
|
|
175
175
|
rules += ' dx';
|
|
176
176
|
rules += ' _Nc';
|
|
177
177
|
rules += ' _M-3t1z';
|
|
@@ -256,7 +256,7 @@ let $230078a1c4ce81d8$var$preview = function anonymous(props) {
|
|
|
256
256
|
if (props.isQuiet) {
|
|
257
257
|
if (props.isFocusVisible) rules += ' _Lb';
|
|
258
258
|
} else rules += ' _La';
|
|
259
|
-
rules += '
|
|
259
|
+
rules += ' da_____M';
|
|
260
260
|
rules += ' dx';
|
|
261
261
|
rules += ' _Nc';
|
|
262
262
|
rules += ' _M-3t1z';
|
package/dist/Card.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.-_1de2x0q_b-
|
|
6
|
+
.-_1de2x0q_b-______x {
|
|
7
7
|
--s2-container-bg: var(--lightningcss-light, #fff) var(--lightningcss-dark, #222);
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -790,7 +790,7 @@
|
|
|
790
790
|
|
|
791
791
|
@layer _.b.a {
|
|
792
792
|
@media (forced-colors: active) {
|
|
793
|
-
.-_1de2x0q_b-
|
|
793
|
+
.-_1de2x0q_b-a_____J {
|
|
794
794
|
--s2-container-bg: ButtonFace;
|
|
795
795
|
}
|
|
796
796
|
|
|
@@ -798,7 +798,7 @@
|
|
|
798
798
|
box-shadow: 0 0 0 1px buttonborder;
|
|
799
799
|
}
|
|
800
800
|
|
|
801
|
-
.
|
|
801
|
+
.da_____M {
|
|
802
802
|
outline-color: highlight;
|
|
803
803
|
}
|
|
804
804
|
}
|
package/dist/Card.mjs
CHANGED
|
@@ -78,9 +78,9 @@ let $68e4e6fe083e22fd$var$card = function anonymous(props, overrides) {
|
|
|
78
78
|
if (props.size === "S") rules += ' _yc';
|
|
79
79
|
else if (props.size === "XS") rules += ' _yc';
|
|
80
80
|
else rules += ' _yd';
|
|
81
|
-
rules += ' -_1de2x0q_b-
|
|
81
|
+
rules += ' -_1de2x0q_b-a_____J';
|
|
82
82
|
if (props.variant === "secondary") rules += ' -_1de2x0q_b-e';
|
|
83
|
-
else if (props.variant === "primary") rules += ' -_1de2x0q_b-
|
|
83
|
+
else if (props.variant === "primary") rules += ' -_1de2x0q_b-______x';
|
|
84
84
|
if (props.variant === "quiet") rules += ' ba';
|
|
85
85
|
else if (props.variant === "tertiary") rules += ' ba';
|
|
86
86
|
else rules += ' b-1de2x0q';
|
|
@@ -158,7 +158,7 @@ let $68e4e6fe083e22fd$var$card = function anonymous(props, overrides) {
|
|
|
158
158
|
if (props.variant === "quiet") rules += ' _La';
|
|
159
159
|
else if (props.isFocusVisible) rules += ' _Lb';
|
|
160
160
|
else rules += ' _La';
|
|
161
|
-
rules += '
|
|
161
|
+
rules += ' da_____M';
|
|
162
162
|
rules += ' dx';
|
|
163
163
|
rules += ' _Nc';
|
|
164
164
|
rules += ' _M-3t1z';
|
|
@@ -243,7 +243,7 @@ let $68e4e6fe083e22fd$var$preview = function anonymous(props) {
|
|
|
243
243
|
if (props.isQuiet) {
|
|
244
244
|
if (props.isFocusVisible) rules += ' _Lb';
|
|
245
245
|
} else rules += ' _La';
|
|
246
|
-
rules += '
|
|
246
|
+
rules += ' da_____M';
|
|
247
247
|
rules += ' dx';
|
|
248
248
|
rules += ' _Nc';
|
|
249
249
|
rules += ' _M-3t1z';
|
package/dist/CardView.cjs
CHANGED
|
@@ -394,7 +394,7 @@ const $1aaf8931044a97bd$var$cardViewStyles = function anonymous(props, overrides
|
|
|
394
394
|
if (props.isEmpty) {
|
|
395
395
|
if (props.isFocusVisible) rules += ' _Lb';
|
|
396
396
|
} else rules += ' _La';
|
|
397
|
-
rules += '
|
|
397
|
+
rules += ' da_____M';
|
|
398
398
|
rules += ' dx';
|
|
399
399
|
rules += ' _Nc';
|
|
400
400
|
rules += ' _M-3hmpw';
|
package/dist/CardView.css
CHANGED
package/dist/CardView.mjs
CHANGED
|
@@ -387,7 +387,7 @@ const $bbcff092fe610ff3$var$cardViewStyles = function anonymous(props, overrides
|
|
|
387
387
|
if (props.isEmpty) {
|
|
388
388
|
if (props.isFocusVisible) rules += ' _Lb';
|
|
389
389
|
} else rules += ' _La';
|
|
390
|
-
rules += '
|
|
390
|
+
rules += ' da_____M';
|
|
391
391
|
rules += ' dx';
|
|
392
392
|
rules += ' _Nc';
|
|
393
393
|
rules += ' _M-3hmpw';
|
package/dist/Checkbox.cjs
CHANGED
|
@@ -82,7 +82,7 @@ const $af04e099a53d3e85$var$wrapper = function anonymous(props, overrides) {
|
|
|
82
82
|
rules += ' _f-1x99dlob';
|
|
83
83
|
rules += ' _fa';
|
|
84
84
|
if (props.isDisabled) {
|
|
85
|
-
rules += '
|
|
85
|
+
rules += ' aa_____O';
|
|
86
86
|
rules += ' aj';
|
|
87
87
|
} else {
|
|
88
88
|
if (props.isPressed) rules += ' ao';
|
|
@@ -103,7 +103,7 @@ const $af04e099a53d3e85$export$827f4ee28efc37 = function anonymous(props) {
|
|
|
103
103
|
let rules = " .";
|
|
104
104
|
if (props.isFocusVisible) rules += ' _Lb';
|
|
105
105
|
else rules += ' _La';
|
|
106
|
-
rules += '
|
|
106
|
+
rules += ' da_____M';
|
|
107
107
|
rules += ' dx';
|
|
108
108
|
rules += ' _Nc';
|
|
109
109
|
rules += ' _M-3t1z';
|
|
@@ -135,16 +135,16 @@ const $af04e099a53d3e85$export$827f4ee28efc37 = function anonymous(props) {
|
|
|
135
135
|
rules += ' _zb';
|
|
136
136
|
if (props.isSelected) {
|
|
137
137
|
if (props.isDisabled) {
|
|
138
|
-
rules += '
|
|
138
|
+
rules += ' ba_____O';
|
|
139
139
|
rules += ' bj';
|
|
140
140
|
} else if (props.isInvalid) {
|
|
141
|
-
rules += '
|
|
141
|
+
rules += ' ba_____P';
|
|
142
142
|
if (props.isPressed) rules += ' bP';
|
|
143
143
|
else if (props.isFocusVisible) rules += ' bP';
|
|
144
144
|
else if (props.isHovered) rules += ' bP';
|
|
145
145
|
else rules += ' bO';
|
|
146
146
|
} else {
|
|
147
|
-
rules += '
|
|
147
|
+
rules += ' ba_____M';
|
|
148
148
|
if (props.isEmphasized) {
|
|
149
149
|
if (props.isPressed) rules += ' bz';
|
|
150
150
|
else if (props.isFocusVisible) rules += ' bz';
|
|
@@ -158,21 +158,21 @@ const $af04e099a53d3e85$export$827f4ee28efc37 = function anonymous(props) {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
} else {
|
|
161
|
-
rules += '
|
|
161
|
+
rules += ' ba_____H';
|
|
162
162
|
rules += ' bd';
|
|
163
163
|
}
|
|
164
164
|
if (props.isSelected) rules += ' ca';
|
|
165
165
|
else if (props.isDisabled) {
|
|
166
|
-
rules += '
|
|
166
|
+
rules += ' ca_____O';
|
|
167
167
|
rules += ' cj';
|
|
168
168
|
} else if (props.isInvalid) {
|
|
169
|
-
rules += '
|
|
169
|
+
rules += ' ca_____P';
|
|
170
170
|
if (props.isPressed) rules += ' cQ';
|
|
171
171
|
else if (props.isFocusVisible) rules += ' cP';
|
|
172
172
|
else if (props.isHovered) rules += ' cP';
|
|
173
173
|
else rules += ' cO';
|
|
174
174
|
} else {
|
|
175
|
-
rules += '
|
|
175
|
+
rules += ' ca_____I';
|
|
176
176
|
if (props.isPressed) rules += ' co';
|
|
177
177
|
else if (props.isFocusVisible) rules += ' co';
|
|
178
178
|
else if (props.isHovered) rules += ' co';
|
|
@@ -180,7 +180,7 @@ const $af04e099a53d3e85$export$827f4ee28efc37 = function anonymous(props) {
|
|
|
180
180
|
}
|
|
181
181
|
return rules;
|
|
182
182
|
};
|
|
183
|
-
const $af04e099a53d3e85$export$2c99b98b77550cb4 = " . -rwx0fg_e-B -rwx0fg_e-
|
|
183
|
+
const $af04e099a53d3e85$export$2c99b98b77550cb4 = " . -rwx0fg_e-B -rwx0fg_e-a______b";
|
|
184
184
|
const $af04e099a53d3e85$var$iconSize = {
|
|
185
185
|
S: 'XS',
|
|
186
186
|
M: 'S',
|
package/dist/Checkbox.css
CHANGED
|
@@ -332,43 +332,43 @@
|
|
|
332
332
|
|
|
333
333
|
@layer _.b.a {
|
|
334
334
|
@media (forced-colors: active) {
|
|
335
|
-
.
|
|
335
|
+
.aa_____O {
|
|
336
336
|
color: graytext;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
.
|
|
339
|
+
.da_____M {
|
|
340
340
|
outline-color: highlight;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
.
|
|
343
|
+
.ba_____H {
|
|
344
344
|
background-color: background;
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
-
.
|
|
347
|
+
.ba_____M {
|
|
348
348
|
background-color: highlight;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
.
|
|
351
|
+
.ba_____P {
|
|
352
352
|
background-color: mark;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
.
|
|
355
|
+
.ba_____O {
|
|
356
356
|
background-color: graytext;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
.
|
|
359
|
+
.ca_____I {
|
|
360
360
|
border-color: buttonborder;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
.
|
|
363
|
+
.ca_____P {
|
|
364
364
|
border-color: mark;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
.
|
|
367
|
+
.ca_____O {
|
|
368
368
|
border-color: graytext;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
.-rwx0fg_e-
|
|
371
|
+
.-rwx0fg_e-a______b {
|
|
372
372
|
--iconPrimary: HighlightText;
|
|
373
373
|
}
|
|
374
374
|
}
|