@react-spectrum/s2 3.0.0-nightly-e7053dd8f-250108 → 3.0.0-nightly-d87cc4422-250109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.cjs +3 -3
- package/dist/Accordion.css +2 -2
- package/dist/Accordion.mjs +3 -3
- package/dist/ActionBar.cjs +32 -32
- package/dist/ActionBar.css +34 -34
- package/dist/ActionBar.mjs +32 -32
- package/dist/ActionButton.cjs +61 -61
- package/dist/ActionButton.css +56 -56
- package/dist/ActionButton.mjs +61 -61
- package/dist/ActionButtonGroup.cjs +4 -4
- package/dist/ActionButtonGroup.css +3 -3
- package/dist/ActionButtonGroup.mjs +4 -4
- package/dist/Avatar.cjs +10 -10
- package/dist/Avatar.css +11 -11
- package/dist/Avatar.mjs +10 -10
- package/dist/AvatarGroup.cjs +97 -97
- package/dist/AvatarGroup.css +31 -31
- package/dist/AvatarGroup.mjs +97 -97
- package/dist/Badge.cjs +31 -31
- package/dist/Badge.css +33 -33
- package/dist/Badge.mjs +31 -31
- package/dist/Breadcrumbs.cjs +83 -82
- package/dist/Breadcrumbs.cjs.map +1 -1
- package/dist/Breadcrumbs.css +65 -59
- package/dist/Breadcrumbs.css.map +1 -1
- package/dist/Breadcrumbs.mjs +83 -82
- package/dist/Breadcrumbs.mjs.map +1 -1
- package/dist/Button.cjs +68 -68
- package/dist/Button.css +59 -59
- package/dist/Button.mjs +68 -68
- package/dist/ButtonGroup.cjs +15 -15
- package/dist/ButtonGroup.css +11 -11
- package/dist/ButtonGroup.mjs +15 -15
- package/dist/Card.cjs +157 -157
- package/dist/Card.css +117 -117
- package/dist/Card.mjs +157 -157
- package/dist/CardView.cjs +13 -13
- package/dist/CardView.css +14 -14
- package/dist/CardView.mjs +13 -13
- package/dist/CenterBaseline.cjs +1 -1
- package/dist/CenterBaseline.css +2 -2
- package/dist/CenterBaseline.mjs +1 -1
- package/dist/Checkbox.cjs +46 -46
- package/dist/Checkbox.css +42 -42
- package/dist/Checkbox.mjs +46 -46
- package/dist/CheckboxGroup.cjs +36 -36
- package/dist/CheckboxGroup.css +32 -32
- package/dist/CheckboxGroup.mjs +36 -36
- package/dist/ClearButton.cjs +5 -5
- package/dist/ClearButton.css +5 -5
- package/dist/ClearButton.mjs +5 -5
- package/dist/CloseButton.cjs +15 -15
- package/dist/CloseButton.css +15 -15
- package/dist/CloseButton.mjs +15 -15
- package/dist/ColorArea.cjs +9 -9
- package/dist/ColorArea.css +9 -9
- package/dist/ColorArea.mjs +9 -9
- package/dist/ColorField.cjs +29 -29
- package/dist/ColorField.css +24 -24
- package/dist/ColorField.mjs +29 -29
- package/dist/ColorHandle.cjs +9 -9
- package/dist/ColorHandle.css +16 -16
- package/dist/ColorHandle.mjs +9 -9
- package/dist/ColorSlider.cjs +34 -34
- package/dist/ColorSlider.css +42 -42
- package/dist/ColorSlider.mjs +34 -34
- package/dist/ColorSwatch.cjs +6 -6
- package/dist/ColorSwatch.css +14 -14
- package/dist/ColorSwatch.mjs +6 -6
- package/dist/ColorSwatchPicker.cjs +12 -12
- package/dist/ColorSwatchPicker.css +32 -32
- package/dist/ColorSwatchPicker.mjs +12 -12
- package/dist/ColorWheel.cjs +14 -14
- package/dist/ColorWheel.css +14 -14
- package/dist/ColorWheel.mjs +14 -14
- package/dist/ComboBox.cjs +51 -48
- package/dist/ComboBox.cjs.map +1 -1
- package/dist/ComboBox.css +47 -47
- package/dist/ComboBox.css.map +1 -1
- package/dist/ComboBox.mjs +51 -48
- package/dist/ComboBox.mjs.map +1 -1
- package/dist/ContextualHelp.cjs +5 -5
- package/dist/ContextualHelp.css +23 -23
- package/dist/ContextualHelp.mjs +5 -5
- package/dist/CustomDialog.cjs +8 -8
- package/dist/CustomDialog.css +9 -9
- package/dist/CustomDialog.mjs +8 -8
- package/dist/Dialog.cjs +10 -10
- package/dist/Dialog.css +39 -39
- package/dist/Dialog.mjs +10 -10
- package/dist/Disclosure.cjs +53 -53
- package/dist/Disclosure.css +47 -47
- package/dist/Disclosure.mjs +53 -53
- package/dist/Divider.cjs +5 -5
- package/dist/Divider.css +5 -5
- package/dist/Divider.mjs +5 -5
- package/dist/DropZone.cjs +24 -24
- package/dist/DropZone.css +24 -24
- package/dist/DropZone.mjs +24 -24
- package/dist/Field.cjs +98 -98
- package/dist/Field.cjs.map +1 -1
- package/dist/Field.css +68 -68
- package/dist/Field.mjs +98 -98
- package/dist/Field.mjs.map +1 -1
- package/dist/Form.cjs +4 -4
- package/dist/Form.css +3 -3
- package/dist/Form.mjs +4 -4
- package/dist/FullscreenDialog.cjs +5 -5
- package/dist/FullscreenDialog.css +54 -54
- package/dist/FullscreenDialog.mjs +5 -5
- package/dist/IllustratedMessage.cjs +117 -117
- package/dist/IllustratedMessage.css +58 -58
- package/dist/IllustratedMessage.mjs +117 -117
- package/dist/Image.cjs +10 -10
- package/dist/Image.css +11 -11
- package/dist/Image.mjs +10 -10
- package/dist/InlineAlert.cjs +41 -41
- package/dist/InlineAlert.css +44 -44
- package/dist/InlineAlert.mjs +41 -41
- package/dist/Link.cjs +27 -27
- package/dist/Link.css +27 -27
- package/dist/Link.mjs +27 -27
- package/dist/Menu.cjs +278 -207
- package/dist/Menu.cjs.map +1 -1
- package/dist/Menu.css +114 -112
- package/dist/Menu.css.map +1 -1
- package/dist/Menu.mjs +278 -207
- package/dist/Menu.mjs.map +1 -1
- package/dist/Meter.cjs +45 -45
- package/dist/Meter.css +51 -51
- package/dist/Meter.mjs +45 -45
- package/dist/Modal.cjs +37 -37
- package/dist/Modal.css +35 -35
- package/dist/Modal.mjs +37 -37
- package/dist/NumberField.cjs +57 -57
- package/dist/NumberField.css +65 -65
- package/dist/NumberField.mjs +57 -57
- package/dist/Picker.cjs +114 -111
- package/dist/Picker.cjs.map +1 -1
- package/dist/Picker.css +79 -79
- package/dist/Picker.css.map +1 -1
- package/dist/Picker.mjs +114 -111
- package/dist/Picker.mjs.map +1 -1
- package/dist/Popover.cjs +40 -40
- package/dist/Popover.css +37 -37
- package/dist/Popover.mjs +40 -40
- package/dist/ProgressBar.cjs +57 -57
- package/dist/ProgressBar.css +61 -61
- package/dist/ProgressBar.mjs +57 -57
- package/dist/ProgressCircle.cjs +3 -3
- package/dist/ProgressCircle.css +2 -2
- package/dist/ProgressCircle.mjs +3 -3
- package/dist/Provider.cjs +4 -4
- package/dist/Provider.css +5 -5
- package/dist/Provider.mjs +4 -4
- package/dist/Radio.cjs +46 -46
- package/dist/Radio.css +42 -42
- package/dist/Radio.mjs +46 -46
- package/dist/RadioGroup.cjs +34 -34
- package/dist/RadioGroup.css +32 -32
- package/dist/RadioGroup.mjs +34 -34
- package/dist/SearchField.cjs +31 -31
- package/dist/SearchField.css +29 -29
- package/dist/SearchField.mjs +31 -31
- package/dist/SegmentedControl.cjs +54 -54
- package/dist/SegmentedControl.css +54 -54
- package/dist/SegmentedControl.mjs +54 -54
- package/dist/Slider.cjs +89 -89
- package/dist/Slider.css +82 -82
- package/dist/Slider.mjs +89 -89
- package/dist/StatusLight.cjs +26 -26
- package/dist/StatusLight.css +26 -26
- package/dist/StatusLight.mjs +26 -26
- package/dist/Switch.cjs +47 -47
- package/dist/Switch.css +40 -40
- package/dist/Switch.mjs +47 -47
- package/dist/TableView.cjs +137 -137
- package/dist/TableView.css +76 -76
- package/dist/TableView.mjs +137 -137
- package/dist/Tabs.cjs +60 -60
- package/dist/Tabs.css +52 -52
- package/dist/Tabs.mjs +60 -60
- package/dist/TabsPicker.cjs +63 -63
- package/dist/TabsPicker.css +61 -61
- package/dist/TabsPicker.mjs +63 -63
- package/dist/TagGroup.cjs +102 -102
- package/dist/TagGroup.css +84 -84
- package/dist/TagGroup.mjs +102 -102
- package/dist/TextField.cjs +36 -36
- package/dist/TextField.css +33 -33
- package/dist/TextField.mjs +36 -36
- package/dist/ToggleButton.cjs +3 -3
- package/dist/ToggleButton.css +7 -7
- package/dist/ToggleButton.mjs +3 -3
- package/dist/Tooltip.cjs +29 -29
- package/dist/Tooltip.css +31 -31
- package/dist/Tooltip.mjs +29 -29
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/icons/Skeleton.cjs +2 -2
- package/icons/Skeleton.css +5 -5
- package/icons/Skeleton.mjs +2 -2
- package/package.json +19 -19
- package/src/ComboBox.tsx +2 -1
- package/src/Menu.tsx +40 -17
- package/src/Picker.tsx +2 -1
- package/style/dist/spectrum-theme.cjs +12 -1
- package/style/dist/spectrum-theme.cjs.map +1 -1
- package/style/dist/spectrum-theme.mjs +12 -1
- package/style/dist/spectrum-theme.mjs.map +1 -1
- package/style/dist/types.d.ts +2 -0
- package/style/dist/types.d.ts.map +1 -1
- package/style/spectrum-theme.ts +9 -1
package/dist/ComboBox.mjs
CHANGED
|
@@ -47,16 +47,16 @@ import {useResizeObserver as $5rXoR$useResizeObserver, mergeRefs as $5rXoR$merge
|
|
|
47
47
|
const $a2f262fac286a920$export$d414ccceff7063c3 = /*#__PURE__*/ (0, $5rXoR$createContext)(null);
|
|
48
48
|
const $a2f262fac286a920$var$inputButton = function anonymous(props) {
|
|
49
49
|
let rules = " .";
|
|
50
|
-
rules += '
|
|
51
|
-
rules += '
|
|
52
|
-
rules += '
|
|
50
|
+
rules += ' _0d';
|
|
51
|
+
rules += ' _Ma';
|
|
52
|
+
rules += ' _kb';
|
|
53
53
|
rules += ' wf';
|
|
54
|
-
rules += ' _vi';
|
|
55
54
|
rules += ' _wi';
|
|
56
55
|
rules += ' _xi';
|
|
57
56
|
rules += ' _yi';
|
|
58
|
-
rules += '
|
|
59
|
-
rules += '
|
|
57
|
+
rules += ' _zi';
|
|
58
|
+
rules += ' _2c';
|
|
59
|
+
rules += ' _3d';
|
|
60
60
|
if (props.size === "XL") rules += ' lU';
|
|
61
61
|
else if (props.size === "L") rules += ' lM';
|
|
62
62
|
else if (props.size === "M") rules += ' lI';
|
|
@@ -66,14 +66,14 @@ const $a2f262fac286a920$var$inputButton = function anonymous(props) {
|
|
|
66
66
|
else if (props.size === "M") rules += ' kI';
|
|
67
67
|
else if (props.size === "S") rules += ' kE';
|
|
68
68
|
rules += ' yF';
|
|
69
|
-
rules += '
|
|
70
|
-
rules += '
|
|
71
|
-
rules += '
|
|
72
|
-
rules += '
|
|
73
|
-
rules += '
|
|
74
|
-
rules += '
|
|
75
|
-
rules += '
|
|
76
|
-
rules += '
|
|
69
|
+
rules += ' _cb';
|
|
70
|
+
rules += ' _9-3t1x';
|
|
71
|
+
rules += ' _Pag';
|
|
72
|
+
rules += ' _Pa';
|
|
73
|
+
rules += ' _Ra-375x7f';
|
|
74
|
+
rules += ' _R-375x7f';
|
|
75
|
+
rules += ' _Saa';
|
|
76
|
+
rules += ' _Sa';
|
|
77
77
|
if (props.isDisabled) rules += ' ba_____O';
|
|
78
78
|
else if (props.isOpen) rules += ' ba_____M';
|
|
79
79
|
else if (props.isHovered) rules += ' ba_____M';
|
|
@@ -96,7 +96,7 @@ const $a2f262fac286a920$var$inputButton = function anonymous(props) {
|
|
|
96
96
|
}
|
|
97
97
|
return rules;
|
|
98
98
|
};
|
|
99
|
-
const $a2f262fac286a920$var$iconStyles = " .
|
|
99
|
+
const $a2f262fac286a920$var$iconStyles = " . _9-3t1x R-3hn0u -rwx0fg_e-b";
|
|
100
100
|
let $a2f262fac286a920$var$InternalComboboxContext = /*#__PURE__*/ (0, $5rXoR$createContext)({
|
|
101
101
|
size: 'M'
|
|
102
102
|
});
|
|
@@ -147,51 +147,51 @@ const $a2f262fac286a920$export$72b9695b8216309a = /*#__PURE__*/ (0, $5rXoR$forwa
|
|
|
147
147
|
style: UNSAFE_style,
|
|
148
148
|
className: UNSAFE_className + function anonymous(props, overrides) {
|
|
149
149
|
let rules = " .";
|
|
150
|
-
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|_9|
|
|
150
|
+
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|__a|_9|h|_6|_5|__B|__d|__e|__b|__c|V|__R|Y|_a|W|X|l|q|r)[^\s]+/g) || [];
|
|
151
151
|
rules += matches.join('');
|
|
152
|
-
let $__a = false;
|
|
153
152
|
let $__b = false;
|
|
153
|
+
let $__c = false;
|
|
154
154
|
for (let p of matches){
|
|
155
|
-
if (/^\s*__a/.test(p)) $__a = true;
|
|
156
155
|
if (/^\s*__b/.test(p)) $__b = true;
|
|
156
|
+
if (/^\s*__c/.test(p)) $__c = true;
|
|
157
157
|
}
|
|
158
|
-
rules += '
|
|
159
|
-
if (!$__a) {
|
|
160
|
-
if (props.isInForm) rules += ' __a-3t1y';
|
|
161
|
-
}
|
|
158
|
+
rules += ' _0f';
|
|
162
159
|
if (!$__b) {
|
|
160
|
+
if (props.isInForm) rules += ' __b-3t1y';
|
|
161
|
+
}
|
|
162
|
+
if (!$__c) {
|
|
163
163
|
if (props.isInForm) {
|
|
164
|
-
if (props.labelPosition === "side") rules += '
|
|
164
|
+
if (props.labelPosition === "side") rules += ' __c-7u9dhl';
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
if (props.isInForm) rules += '
|
|
167
|
+
if (props.isInForm) rules += ' __i-1cwd7ud';
|
|
168
168
|
else {
|
|
169
|
-
if (props.labelPosition === "side") rules += '
|
|
170
|
-
else if (props.labelPosition === "top") rules += '
|
|
169
|
+
if (props.labelPosition === "side") rules += ' __i-jyg4vb';
|
|
170
|
+
else if (props.labelPosition === "top") rules += ' __i-375yi6';
|
|
171
171
|
}
|
|
172
|
-
if (props.labelPosition === "side") rules += '
|
|
173
|
-
else if (props.labelPosition === "top") rules += '
|
|
174
|
-
if (props.labelPosition === "side") rules += '
|
|
175
|
-
else if (props.labelPosition === "top") rules += '
|
|
172
|
+
if (props.labelPosition === "side") rules += ' __j-jyg4vb';
|
|
173
|
+
else if (props.labelPosition === "top") rules += ' __j-fdenls';
|
|
174
|
+
if (props.labelPosition === "side") rules += ' __k-5eez8j';
|
|
175
|
+
else if (props.labelPosition === "top") rules += ' __k-xlaqir';
|
|
176
176
|
if (props.size === "XL") {
|
|
177
|
-
rules += '
|
|
178
|
-
rules += '
|
|
177
|
+
rules += ' _ebj';
|
|
178
|
+
rules += ' _ei';
|
|
179
179
|
} else if (props.size === "L") {
|
|
180
|
-
rules += '
|
|
181
|
-
rules += '
|
|
180
|
+
rules += ' _ebh';
|
|
181
|
+
rules += ' _eg';
|
|
182
182
|
} else if (props.size === "S") {
|
|
183
|
-
rules += '
|
|
184
|
-
rules += '
|
|
183
|
+
rules += ' _ebd';
|
|
184
|
+
rules += ' _ec';
|
|
185
185
|
} else if (props.size === "XS") {
|
|
186
|
-
rules += '
|
|
187
|
-
rules += '
|
|
186
|
+
rules += ' _ebb';
|
|
187
|
+
rules += ' _ea';
|
|
188
188
|
} else {
|
|
189
|
-
rules += '
|
|
190
|
-
rules += '
|
|
189
|
+
rules += ' _ebf';
|
|
190
|
+
rules += ' _ee';
|
|
191
191
|
}
|
|
192
|
-
rules += '
|
|
193
|
-
rules += '
|
|
194
|
-
rules += '
|
|
192
|
+
rules += ' _2d';
|
|
193
|
+
rules += ' _g-1x99dlob';
|
|
194
|
+
rules += ' _ga';
|
|
195
195
|
if (props.size === "XL") rules += ' -aqrvqh_k-j';
|
|
196
196
|
else if (props.size === "L") rules += ' -aqrvqh_k-i';
|
|
197
197
|
else if (props.size === "S") rules += ' -aqrvqh_k-h';
|
|
@@ -199,7 +199,7 @@ const $a2f262fac286a920$export$72b9695b8216309a = /*#__PURE__*/ (0, $5rXoR$forwa
|
|
|
199
199
|
else rules += ' -aqrvqh_k-f';
|
|
200
200
|
rules += ' -_1inj1bc_i--prjw07';
|
|
201
201
|
rules += ' je';
|
|
202
|
-
rules += '
|
|
202
|
+
rules += ' __S-yksgrp';
|
|
203
203
|
return rules;
|
|
204
204
|
}({
|
|
205
205
|
isInForm: !!formContext,
|
|
@@ -230,17 +230,17 @@ const $a2f262fac286a920$export$72b9695b8216309a = /*#__PURE__*/ (0, $5rXoR$forwa
|
|
|
230
230
|
size: size,
|
|
231
231
|
styles: function anonymous(props) {
|
|
232
232
|
let rules = " .";
|
|
233
|
-
rules += ' __a-4cfph1';
|
|
234
233
|
rules += ' __b-4cfph1';
|
|
235
234
|
rules += ' __c-4cfph1';
|
|
236
235
|
rules += ' __d-4cfph1';
|
|
236
|
+
rules += ' __e-4cfph1';
|
|
237
237
|
if (props.size === "XL") rules += ' qj';
|
|
238
238
|
else if (props.size === "L") rules += ' qi';
|
|
239
239
|
else if (props.size === "S") rules += ' qh';
|
|
240
240
|
else if (props.size === "XS") rules += ' qg';
|
|
241
241
|
else rules += ' qf';
|
|
242
|
-
if (props.isQuiet) rules += '
|
|
243
|
-
else rules += '
|
|
242
|
+
if (props.isQuiet) rules += ' __na';
|
|
243
|
+
else rules += ' __n-1s8glxue';
|
|
244
244
|
if (props.size === "XL") rules += ' -usygro_l-____g';
|
|
245
245
|
else if (props.size === "L") rules += ' -usygro_l-___0';
|
|
246
246
|
else if (props.size === "S") rules += ' -usygro_l-___u';
|
|
@@ -424,11 +424,14 @@ function $a2f262fac286a920$export$b674b8ff01584ab1(props) {
|
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
function $a2f262fac286a920$export$5510125537491b61(props) {
|
|
427
|
+
let { size: size } = (0, $5rXoR$useContext)($a2f262fac286a920$var$InternalComboboxContext);
|
|
427
428
|
return /*#__PURE__*/ (0, $5rXoR$jsxs)((0, $5rXoR$Fragment), {
|
|
428
429
|
children: [
|
|
429
430
|
/*#__PURE__*/ (0, $5rXoR$jsx)((0, $5rXoR$ListBoxSection), {
|
|
430
431
|
...props,
|
|
431
|
-
className: (0, $13afb0ea5f0ed767$export$fe2e36411d703b3d)
|
|
432
|
+
className: (0, $13afb0ea5f0ed767$export$fe2e36411d703b3d)({
|
|
433
|
+
size: size
|
|
434
|
+
}),
|
|
432
435
|
children: props.children
|
|
433
436
|
}),
|
|
434
437
|
/*#__PURE__*/ (0, $5rXoR$jsx)((0, $13afb0ea5f0ed767$export$2e0a83ec2e27ecbb), {})
|
package/dist/ComboBox.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,QAAQ,CAAA,GAAA,yCAAU,EAAE;4CAAC,GAAG,WAAW;kDAAE;wCAAI;oCAAE;gCAC3D;4BACF;yBAAE;qBACH;;wBACA,CAAC,wBAAU,gBAAC,CAAA,GAAA,wCAAY;4BAAE,MAAM,uCAAiB,CAAC,KAAK;4BAAE,WAAW,CAAA,GAAA,wCAAQ,EAAE;gCAAC,GAAG,WAAW;sCAAE;4BAAI;;wBACnG,OAAO,aAAa,yBAAW,gBAAC,CAAA,GAAA,yCAAG;4BAAE,MAAK;sCAAS;6BAAmB;;;;QAI/E;;AAGN;AAGO,SAAS,0CAAkC,KAA8B;IAC9E,qBACE;;0BACE,gBAAC,CAAA,GAAA,qBAAiB;gBACf,GAAG,KAAK;gBACT,WAAW,CAAA,GAAA,yCAAM;0BAChB,MAAM,QAAQ;;0BAEjB,gBAAC,CAAA,GAAA,yCAAM;;;AAGb","sources":["packages/@react-spectrum/s2/src/ComboBox.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 ComboBox as AriaComboBox,\n ComboBoxProps as AriaComboBoxProps,\n ListBoxSection as AriaListBoxSection,\n PopoverProps as AriaPopoverProps,\n Button,\n ContextValue,\n InputContext,\n ListBox,\n ListBoxItem,\n ListBoxItemProps,\n ListBoxProps,\n Provider,\n SectionProps\n} from 'react-aria-components';\nimport {baseColor, style} from '../style' with {type: 'macro'};\nimport {centerBaseline} from './CenterBaseline';\nimport {\n checkmark,\n description,\n Divider,\n icon,\n iconCenterWrapper,\n label,\n menuitem,\n section,\n sectionHeader,\n sectionHeading\n} from './Menu';\nimport CheckmarkIcon from '../ui-icons/Checkmark';\nimport ChevronIcon from '../ui-icons/Chevron';\nimport {createContext, CSSProperties, forwardRef, ReactNode, Ref, useCallback, useContext, useImperativeHandle, useRef, useState} from 'react';\nimport {createFocusableRef} from '@react-spectrum/utils';\nimport {field, fieldInput, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {FieldErrorIcon, FieldGroup, FieldLabel, HelpText, Input} from './Field';\nimport {FormContext, useFormProps} from './Form';\nimport {forwardRefType} from './types';\nimport {HeaderContext, HeadingContext, Text, TextContext} from './Content';\nimport {HelpTextProps, SpectrumLabelableProps} from '@react-types/shared';\nimport {IconContext} from './Icon';\nimport {menu} from './Picker';\nimport {mergeRefs, useResizeObserver} from '@react-aria/utils';\nimport {Placement} from 'react-aria';\nimport {PopoverBase} from './Popover';\nimport {pressScale} from './pressScale';\nimport {TextFieldRef} from '@react-types/textfield';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\n\nexport interface ComboboxStyleProps {\n /**\n * The size of the Combobox.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL'\n}\nexport interface ComboBoxProps<T extends object> extends\n Omit<AriaComboBoxProps<T>, 'children' | 'style' | 'className' | 'defaultFilter' | 'allowsEmptyCollection'>,\n ComboboxStyleProps,\n StyleProps,\n SpectrumLabelableProps,\n HelpTextProps,\n Pick<ListBoxProps<T>, 'items'>,\n Pick<AriaPopoverProps, 'shouldFlip'> {\n /** The contents of the collection. */\n children: ReactNode | ((item: T) => ReactNode),\n /**\n * Direction the menu will render relative to the Picker.\n *\n * @default 'bottom'\n */\n direction?: 'bottom' | 'top',\n /**\n * Alignment of the menu relative to the input target.\n *\n * @default 'start'\n */\n align?: 'start' | 'end',\n /** Width of the menu. By default, matches width of the trigger. Note that the minimum width of the dropdown is always equal to the trigger's width. */\n menuWidth?: number\n}\n\nexport const ComboBoxContext = createContext<ContextValue<Partial<ComboBoxProps<any>>, TextFieldRef>>(null);\n\nconst inputButton = style({\n display: 'flex',\n outlineStyle: 'none',\n textAlign: 'center',\n borderStyle: 'none',\n borderRadius: 'control-sm',\n alignItems: 'center',\n justifyContent: 'center',\n size: {\n size: {\n S: 16,\n M: 20,\n L: 24,\n XL: 32\n }\n },\n marginStart: 'text-to-control',\n aspectRatio: 'square',\n flexShrink: 0,\n transition: {\n default: 'default',\n forcedColors: 'none'\n },\n backgroundColor: {\n default: baseColor('gray-100'),\n isOpen: 'gray-200',\n isDisabled: 'disabled',\n forcedColors: {\n default: 'ButtonText',\n isHovered: 'Highlight',\n isOpen: 'Highlight',\n isDisabled: 'GrayText'\n }\n },\n color: {\n default: 'neutral',\n isDisabled: 'disabled',\n forcedColors: {\n default: 'ButtonFace'\n }\n }\n});\n\nconst iconStyles = style({\n flexShrink: 0,\n rotate: 90,\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n }\n});\n\nlet InternalComboboxContext = createContext<{size: 'S' | 'M' | 'L' | 'XL'}>({size: 'M'});\n\n/**\n * ComboBox allow users to choose a single option from a collapsible list of options when space is limited.\n */\nexport const ComboBox = /*#__PURE__*/ (forwardRef as forwardRefType)(function ComboBox<T extends object>(props: ComboBoxProps<T>, ref: Ref<TextFieldRef>) {\n [props, ref] = useSpectrumContextProps(props, ref, ComboBoxContext);\n let inputRef = useRef<HTMLInputElement>(null);\n let domRef = useRef<HTMLDivElement>(null);\n let buttonRef = useRef<HTMLButtonElement>(null);\n let formContext = useContext(FormContext);\n props = useFormProps(props);\n let {\n direction = 'bottom',\n align = 'start',\n shouldFlip = true,\n menuWidth,\n label,\n description: descriptionMessage,\n errorMessage,\n children,\n items,\n size = 'M',\n labelPosition = 'top',\n labelAlign = 'start',\n necessityIndicator,\n UNSAFE_className = '',\n UNSAFE_style,\n ...pickerProps\n } = props;\n\n // Expose imperative interface for ref\n useImperativeHandle(ref, () => ({\n ...createFocusableRef(domRef, inputRef),\n select() {\n if (inputRef.current) {\n inputRef.current.select();\n }\n },\n getInputElement() {\n return inputRef.current;\n }\n }));\n\n // Better way to encode this into a style? need to account for flipping\n let menuOffset: number;\n if (size === 'S') {\n menuOffset = 6;\n } else if (size === 'M') {\n menuOffset = 6;\n } else if (size === 'L') {\n menuOffset = 7;\n } else {\n menuOffset = 8;\n }\n\n let triggerRef = useRef<HTMLDivElement>(null);\n // Make menu width match input + button\n let [triggerWidth, setTriggerWidth] = useState<string | null>(null);\n let onResize = useCallback(() => {\n if (triggerRef.current) {\n let inputRect = triggerRef.current.getBoundingClientRect();\n let minX = inputRect.left;\n let maxX = inputRect.right;\n setTriggerWidth((maxX - minX) + 'px');\n }\n }, [triggerRef, setTriggerWidth]);\n\n useResizeObserver({\n ref: triggerRef,\n onResize: onResize\n });\n\n return (\n <AriaComboBox\n {...pickerProps}\n style={UNSAFE_style}\n className={UNSAFE_className + style(field(), getAllowedOverrides())({\n isInForm: !!formContext,\n labelPosition,\n size\n }, props.styles)}>\n {({isDisabled, isOpen, isRequired, isInvalid}) => (\n <>\n <InternalComboboxContext.Provider value={{size}}>\n <FieldLabel\n isDisabled={isDisabled}\n isRequired={isRequired}\n size={size}\n labelPosition={labelPosition}\n labelAlign={labelAlign}\n necessityIndicator={necessityIndicator}\n contextualHelp={props.contextualHelp}>\n {label}\n </FieldLabel>\n <FieldGroup\n ref={triggerRef}\n role=\"presentation\"\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n size={size}\n styles={style({\n ...fieldInput(),\n paddingStart: 'edge-to-text',\n // better way to do this one? it's not actually half, they are\n // [9, 4], [12, 6], [15, 8], [18, 8]\n // also noticed that our measurement is including the border, making the padding too much\n paddingEnd: '[calc(self(height, self(minHeight)) * 3 / 16)]'\n })({size})}>\n <InputContext.Consumer>\n {ctx => (\n <InputContext.Provider value={{...ctx, ref: mergeRefs((ctx as any)?.ref, inputRef)}}>\n <Input />\n </InputContext.Provider>\n )}\n </InputContext.Consumer>\n {isInvalid && <FieldErrorIcon isDisabled={isDisabled} />}\n <Button\n ref={buttonRef}\n // Prevent press scale from sticking while ComboBox is open.\n // @ts-ignore\n isPressed={false}\n style={renderProps => pressScale(buttonRef)(renderProps)}\n className={renderProps => inputButton({\n ...renderProps,\n size,\n isOpen\n })}>\n <ChevronIcon\n size={size}\n className={iconStyles} />\n </Button>\n </FieldGroup>\n <HelpText\n size={size}\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n description={descriptionMessage}>\n {errorMessage}\n </HelpText>\n <PopoverBase\n hideArrow\n triggerRef={triggerRef}\n offset={menuOffset}\n placement={`${direction} ${align}` as Placement}\n shouldFlip={shouldFlip}\n UNSAFE_style={{\n width: menuWidth ? `${menuWidth}px` : undefined,\n // manually subtract border as we can't set Popover to border-box, it causes the contents to spill out\n '--trigger-width': `calc(${triggerWidth} - 2px)`\n } as CSSProperties}\n styles={style({\n minWidth: '[var(--trigger-width)]',\n width: '[var(--trigger-width)]'\n })}>\n <Provider\n values={[\n [HeaderContext, {styles: sectionHeader({size})}],\n [HeadingContext, {styles: sectionHeading}],\n [TextContext, {\n slots: {\n 'description': {styles: description({size})}\n }\n }]\n ]}>\n <ListBox\n items={items}\n className={menu({size})}>\n {children}\n </ListBox>\n </Provider>\n </PopoverBase>\n </InternalComboboxContext.Provider>\n </>\n )}\n </AriaComboBox>\n );\n});\n\n\nexport interface ComboBoxItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className'>, StyleProps {\n children: ReactNode\n}\n\nconst checkmarkIconSize = {\n S: 'XS',\n M: 'M',\n L: 'L',\n XL: 'XL'\n} as const;\n\nexport function ComboBoxItem(props: ComboBoxItemProps) {\n let ref = useRef(null);\n let isLink = props.href != null;\n let {size} = useContext(InternalComboboxContext);\n return (\n <ListBoxItem\n {...props}\n ref={ref}\n textValue={props.textValue || (typeof props.children === 'string' ? props.children as string : undefined)}\n style={pressScale(ref, props.UNSAFE_style)}\n className={renderProps => (props.UNSAFE_className || '') + menuitem({...renderProps, size, isLink}, props.styles)}>\n {(renderProps) => {\n let {children} = props;\n return (\n <>\n <Provider\n values={[\n [IconContext, {\n slots: {\n icon: {render: centerBaseline({slot: 'icon', styles: iconCenterWrapper}), styles: icon}\n }\n }],\n [TextContext, {\n slots: {\n label: {styles: label({size})},\n description: {styles: description({...renderProps, size})}\n }\n }]\n ]}>\n {!isLink && <CheckmarkIcon size={checkmarkIconSize[size]} className={checkmark({...renderProps, size})} />}\n {typeof children === 'string' ? <Text slot=\"label\">{children}</Text> : children}\n </Provider>\n </>\n );\n }}\n </ListBoxItem>\n );\n}\n\nexport interface ComboBoxSectionProps<T extends object> extends SectionProps<T> {}\nexport function ComboBoxSection<T extends object>(props: ComboBoxSectionProps<T>) {\n return (\n <>\n <AriaListBoxSection\n {...props}\n className={section}>\n {props.children}\n </AriaListBoxSection>\n <Divider />\n </>\n );\n}\n"],"names":[],"version":3,"file":"ComboBox.mjs.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;AAqFM,MAAM,0DAAkB,CAAA,GAAA,oBAAY,EAA2D;AAEtG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CN,MAAM;AASN,IAAI,8DAA0B,CAAA,GAAA,oBAAY,EAAkC;IAAC,MAAM;AAAG;AAK/E,MAAM,4CAAyB,AAAd,WAAW,GAAI,CAAA,GAAA,iBAAS,EAAqB,SAAS,SAA2B,MAAuB,EAAE,GAAsB;IACtJ,CAAC,QAAO,IAAI,GAAG,CAAA,GAAA,yCAAsB,EAAE,QAAO,KAAK;IACnD,IAAI,WAAW,CAAA,GAAA,aAAK,EAAoB;IACxC,IAAI,SAAS,CAAA,GAAA,aAAK,EAAkB;IACpC,IAAI,YAAY,CAAA,GAAA,aAAK,EAAqB;IAC1C,IAAI,cAAc,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,yCAAU;IACvC,SAAQ,CAAA,GAAA,yCAAW,EAAE;IACrB,IAAI,aACF,YAAY,iBACZ,QA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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 ComboBox as AriaComboBox,\n ComboBoxProps as AriaComboBoxProps,\n ListBoxSection as AriaListBoxSection,\n PopoverProps as AriaPopoverProps,\n Button,\n ContextValue,\n InputContext,\n ListBox,\n ListBoxItem,\n ListBoxItemProps,\n ListBoxProps,\n Provider,\n SectionProps\n} from 'react-aria-components';\nimport {baseColor, style} from '../style' with {type: 'macro'};\nimport {centerBaseline} from './CenterBaseline';\nimport {\n checkmark,\n description,\n Divider,\n icon,\n iconCenterWrapper,\n label,\n menuitem,\n section,\n sectionHeader,\n sectionHeading\n} from './Menu';\nimport CheckmarkIcon from '../ui-icons/Checkmark';\nimport ChevronIcon from '../ui-icons/Chevron';\nimport {createContext, CSSProperties, forwardRef, ReactNode, Ref, useCallback, useContext, useImperativeHandle, useRef, useState} from 'react';\nimport {createFocusableRef} from '@react-spectrum/utils';\nimport {field, fieldInput, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {FieldErrorIcon, FieldGroup, FieldLabel, HelpText, Input} from './Field';\nimport {FormContext, useFormProps} from './Form';\nimport {forwardRefType} from './types';\nimport {HeaderContext, HeadingContext, Text, TextContext} from './Content';\nimport {HelpTextProps, SpectrumLabelableProps} from '@react-types/shared';\nimport {IconContext} from './Icon';\nimport {menu} from './Picker';\nimport {mergeRefs, useResizeObserver} from '@react-aria/utils';\nimport {Placement} from 'react-aria';\nimport {PopoverBase} from './Popover';\nimport {pressScale} from './pressScale';\nimport {TextFieldRef} from '@react-types/textfield';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\n\nexport interface ComboboxStyleProps {\n /**\n * The size of the Combobox.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL'\n}\nexport interface ComboBoxProps<T extends object> extends\n Omit<AriaComboBoxProps<T>, 'children' | 'style' | 'className' | 'defaultFilter' | 'allowsEmptyCollection'>,\n ComboboxStyleProps,\n StyleProps,\n SpectrumLabelableProps,\n HelpTextProps,\n Pick<ListBoxProps<T>, 'items'>,\n Pick<AriaPopoverProps, 'shouldFlip'> {\n /** The contents of the collection. */\n children: ReactNode | ((item: T) => ReactNode),\n /**\n * Direction the menu will render relative to the Picker.\n *\n * @default 'bottom'\n */\n direction?: 'bottom' | 'top',\n /**\n * Alignment of the menu relative to the input target.\n *\n * @default 'start'\n */\n align?: 'start' | 'end',\n /** Width of the menu. By default, matches width of the trigger. Note that the minimum width of the dropdown is always equal to the trigger's width. */\n menuWidth?: number\n}\n\nexport const ComboBoxContext = createContext<ContextValue<Partial<ComboBoxProps<any>>, TextFieldRef>>(null);\n\nconst inputButton = style({\n display: 'flex',\n outlineStyle: 'none',\n textAlign: 'center',\n borderStyle: 'none',\n borderRadius: 'control-sm',\n alignItems: 'center',\n justifyContent: 'center',\n size: {\n size: {\n S: 16,\n M: 20,\n L: 24,\n XL: 32\n }\n },\n marginStart: 'text-to-control',\n aspectRatio: 'square',\n flexShrink: 0,\n transition: {\n default: 'default',\n forcedColors: 'none'\n },\n backgroundColor: {\n default: baseColor('gray-100'),\n isOpen: 'gray-200',\n isDisabled: 'disabled',\n forcedColors: {\n default: 'ButtonText',\n isHovered: 'Highlight',\n isOpen: 'Highlight',\n isDisabled: 'GrayText'\n }\n },\n color: {\n default: 'neutral',\n isDisabled: 'disabled',\n forcedColors: {\n default: 'ButtonFace'\n }\n }\n});\n\nconst iconStyles = style({\n flexShrink: 0,\n rotate: 90,\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n }\n});\n\nlet InternalComboboxContext = createContext<{size: 'S' | 'M' | 'L' | 'XL'}>({size: 'M'});\n\n/**\n * ComboBox allow users to choose a single option from a collapsible list of options when space is limited.\n */\nexport const ComboBox = /*#__PURE__*/ (forwardRef as forwardRefType)(function ComboBox<T extends object>(props: ComboBoxProps<T>, ref: Ref<TextFieldRef>) {\n [props, ref] = useSpectrumContextProps(props, ref, ComboBoxContext);\n let inputRef = useRef<HTMLInputElement>(null);\n let domRef = useRef<HTMLDivElement>(null);\n let buttonRef = useRef<HTMLButtonElement>(null);\n let formContext = useContext(FormContext);\n props = useFormProps(props);\n let {\n direction = 'bottom',\n align = 'start',\n shouldFlip = true,\n menuWidth,\n label,\n description: descriptionMessage,\n errorMessage,\n children,\n items,\n size = 'M',\n labelPosition = 'top',\n labelAlign = 'start',\n necessityIndicator,\n UNSAFE_className = '',\n UNSAFE_style,\n ...pickerProps\n } = props;\n\n // Expose imperative interface for ref\n useImperativeHandle(ref, () => ({\n ...createFocusableRef(domRef, inputRef),\n select() {\n if (inputRef.current) {\n inputRef.current.select();\n }\n },\n getInputElement() {\n return inputRef.current;\n }\n }));\n\n // Better way to encode this into a style? need to account for flipping\n let menuOffset: number;\n if (size === 'S') {\n menuOffset = 6;\n } else if (size === 'M') {\n menuOffset = 6;\n } else if (size === 'L') {\n menuOffset = 7;\n } else {\n menuOffset = 8;\n }\n\n let triggerRef = useRef<HTMLDivElement>(null);\n // Make menu width match input + button\n let [triggerWidth, setTriggerWidth] = useState<string | null>(null);\n let onResize = useCallback(() => {\n if (triggerRef.current) {\n let inputRect = triggerRef.current.getBoundingClientRect();\n let minX = inputRect.left;\n let maxX = inputRect.right;\n setTriggerWidth((maxX - minX) + 'px');\n }\n }, [triggerRef, setTriggerWidth]);\n\n useResizeObserver({\n ref: triggerRef,\n onResize: onResize\n });\n\n return (\n <AriaComboBox\n {...pickerProps}\n style={UNSAFE_style}\n className={UNSAFE_className + style(field(), getAllowedOverrides())({\n isInForm: !!formContext,\n labelPosition,\n size\n }, props.styles)}>\n {({isDisabled, isOpen, isRequired, isInvalid}) => (\n <>\n <InternalComboboxContext.Provider value={{size}}>\n <FieldLabel\n isDisabled={isDisabled}\n isRequired={isRequired}\n size={size}\n labelPosition={labelPosition}\n labelAlign={labelAlign}\n necessityIndicator={necessityIndicator}\n contextualHelp={props.contextualHelp}>\n {label}\n </FieldLabel>\n <FieldGroup\n ref={triggerRef}\n role=\"presentation\"\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n size={size}\n styles={style({\n ...fieldInput(),\n paddingStart: 'edge-to-text',\n // better way to do this one? it's not actually half, they are\n // [9, 4], [12, 6], [15, 8], [18, 8]\n // also noticed that our measurement is including the border, making the padding too much\n paddingEnd: '[calc(self(height, self(minHeight)) * 3 / 16)]'\n })({size})}>\n <InputContext.Consumer>\n {ctx => (\n <InputContext.Provider value={{...ctx, ref: mergeRefs((ctx as any)?.ref, inputRef)}}>\n <Input />\n </InputContext.Provider>\n )}\n </InputContext.Consumer>\n {isInvalid && <FieldErrorIcon isDisabled={isDisabled} />}\n <Button\n ref={buttonRef}\n // Prevent press scale from sticking while ComboBox is open.\n // @ts-ignore\n isPressed={false}\n style={renderProps => pressScale(buttonRef)(renderProps)}\n className={renderProps => inputButton({\n ...renderProps,\n size,\n isOpen\n })}>\n <ChevronIcon\n size={size}\n className={iconStyles} />\n </Button>\n </FieldGroup>\n <HelpText\n size={size}\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n description={descriptionMessage}>\n {errorMessage}\n </HelpText>\n <PopoverBase\n hideArrow\n triggerRef={triggerRef}\n offset={menuOffset}\n placement={`${direction} ${align}` as Placement}\n shouldFlip={shouldFlip}\n UNSAFE_style={{\n width: menuWidth ? `${menuWidth}px` : undefined,\n // manually subtract border as we can't set Popover to border-box, it causes the contents to spill out\n '--trigger-width': `calc(${triggerWidth} - 2px)`\n } as CSSProperties}\n styles={style({\n minWidth: '[var(--trigger-width)]',\n width: '[var(--trigger-width)]'\n })}>\n <Provider\n values={[\n [HeaderContext, {styles: sectionHeader({size})}],\n [HeadingContext, {styles: sectionHeading}],\n [TextContext, {\n slots: {\n 'description': {styles: description({size})}\n }\n }]\n ]}>\n <ListBox\n items={items}\n className={menu({size})}>\n {children}\n </ListBox>\n </Provider>\n </PopoverBase>\n </InternalComboboxContext.Provider>\n </>\n )}\n </AriaComboBox>\n );\n});\n\n\nexport interface ComboBoxItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className'>, StyleProps {\n children: ReactNode\n}\n\nconst checkmarkIconSize = {\n S: 'XS',\n M: 'M',\n L: 'L',\n XL: 'XL'\n} as const;\n\nexport function ComboBoxItem(props: ComboBoxItemProps) {\n let ref = useRef(null);\n let isLink = props.href != null;\n let {size} = useContext(InternalComboboxContext);\n return (\n <ListBoxItem\n {...props}\n ref={ref}\n textValue={props.textValue || (typeof props.children === 'string' ? props.children as string : undefined)}\n style={pressScale(ref, props.UNSAFE_style)}\n className={renderProps => (props.UNSAFE_className || '') + menuitem({...renderProps, size, isLink}, props.styles)}>\n {(renderProps) => {\n let {children} = props;\n return (\n <>\n <Provider\n values={[\n [IconContext, {\n slots: {\n icon: {render: centerBaseline({slot: 'icon', styles: iconCenterWrapper}), styles: icon}\n }\n }],\n [TextContext, {\n slots: {\n label: {styles: label({size})},\n description: {styles: description({...renderProps, size})}\n }\n }]\n ]}>\n {!isLink && <CheckmarkIcon size={checkmarkIconSize[size]} className={checkmark({...renderProps, size})} />}\n {typeof children === 'string' ? <Text slot=\"label\">{children}</Text> : children}\n </Provider>\n </>\n );\n }}\n </ListBoxItem>\n );\n}\n\nexport interface ComboBoxSectionProps<T extends object> extends SectionProps<T> {}\nexport function ComboBoxSection<T extends object>(props: ComboBoxSectionProps<T>) {\n let {size} = useContext(InternalComboboxContext);\n return (\n <>\n <AriaListBoxSection\n {...props}\n className={section({size})}>\n {props.children}\n </AriaListBoxSection>\n <Divider />\n </>\n );\n}\n"],"names":[],"version":3,"file":"ComboBox.mjs.map"}
|
package/dist/ContextualHelp.cjs
CHANGED
|
@@ -41,7 +41,7 @@ $parcel$export(module.exports, "ContextualHelp", () => $bab829476f85a155$export$
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
const $bab829476f85a155$var$popover = " .
|
|
44
|
+
const $bab829476f85a155$var$popover = " . _da _d-enzrfpb _d-enzwzjc _d-enzykdd _d-enzzrge _d-eo0c6sf _d-1uotwbwg _d-bc1l9oh q___U l___U Eh Fh Ch Dh";
|
|
45
45
|
const $bab829476f85a155$export$41b9afaaba473494 = /*#__PURE__*/ (0, $44GE8$react.createContext)(null);
|
|
46
46
|
const $bab829476f85a155$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $44GE8$react.forwardRef)(function ContextualHelp(props, ref) {
|
|
47
47
|
let stringFormatter = (0, $44GE8$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($4526404114e78c80$exports))), '@react-spectrum/s2');
|
|
@@ -82,7 +82,7 @@ const $bab829476f85a155$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $44GE8$react
|
|
|
82
82
|
hideArrow: true,
|
|
83
83
|
UNSAFE_className: $bab829476f85a155$var$popover,
|
|
84
84
|
children: /*#__PURE__*/ (0, $44GE8$reactjsxruntime.jsx)((0, $44GE8$reactariacomponents.Dialog), {
|
|
85
|
-
className: (0, $308b180f49d82d28$exports.mergeStyles)((0, $0f4636c7093b9233$exports.dialogInner), " .
|
|
85
|
+
className: (0, $308b180f49d82d28$exports.mergeStyles)((0, $0f4636c7093b9233$exports.dialogInner), " . _wa _xa _ya _za AP BP yP zP Eh Fh Ch Dh"),
|
|
86
86
|
children: /*#__PURE__*/ (0, $44GE8$reactjsxruntime.jsx)((0, $44GE8$reactariacomponents.Provider), {
|
|
87
87
|
values: [
|
|
88
88
|
[
|
|
@@ -96,19 +96,19 @@ const $bab829476f85a155$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $44GE8$react
|
|
|
96
96
|
[
|
|
97
97
|
(0, $6367bc87eb7d24ad$exports.HeadingContext),
|
|
98
98
|
{
|
|
99
|
-
styles: " .
|
|
99
|
+
styles: " . _da _d-enzrfpb _d-enzwzjc _d-enzykdd _d-enzzrge _d-eo0c6sf _d-1uotwbwg _d-bc1l9oh _ei _ebj _fe _f-1x99dloe _ga _g-1x99dlob ao Aa B-y6pz8c ya za"
|
|
100
100
|
}
|
|
101
101
|
],
|
|
102
102
|
[
|
|
103
103
|
(0, $6367bc87eb7d24ad$exports.ContentContext),
|
|
104
104
|
{
|
|
105
|
-
styles: " .
|
|
105
|
+
styles: " . _da _d-enzrfpb _d-enzwzjc _d-enzykdd _d-enzzrge _d-eo0c6sf _d-1uotwbwg _d-bc1l9oh _ee _ebf _fb _gb _g-1x99dloc an"
|
|
106
106
|
}
|
|
107
107
|
],
|
|
108
108
|
[
|
|
109
109
|
(0, $6367bc87eb7d24ad$exports.FooterContext),
|
|
110
110
|
{
|
|
111
|
-
styles: " .
|
|
111
|
+
styles: " . _da _d-enzrfpb _d-enzwzjc _d-enzykdd _d-enzzrge _d-eo0c6sf _d-1uotwbwg _d-bc1l9oh _ee _ebf _fb _gb _g-1x99dloc an Af"
|
|
112
112
|
}
|
|
113
113
|
]
|
|
114
114
|
],
|
package/dist/ContextualHelp.css
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
width: calc(13.625rem * var(--s2-scale));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.
|
|
10
|
+
._wa {
|
|
11
11
|
border-start-start-radius: 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.
|
|
14
|
+
._xa {
|
|
15
15
|
border-start-end-radius: 0;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.
|
|
18
|
+
._ya {
|
|
19
19
|
border-end-start-radius: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
22
|
+
._za {
|
|
23
23
|
border-end-end-radius: 0;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
padding-inline-end: 1.5rem;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.
|
|
58
|
+
._ei {
|
|
59
59
|
font-size: 1.125rem;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.
|
|
62
|
+
._fe {
|
|
63
63
|
font-variation-settings: "wght" 800;
|
|
64
64
|
font-synthesis-weight: none;
|
|
65
65
|
font-weight: 800;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.
|
|
68
|
+
._ga {
|
|
69
69
|
line-height: 1.3;
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -89,21 +89,21 @@
|
|
|
89
89
|
margin-inline-end: 0;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.
|
|
92
|
+
._da {
|
|
93
93
|
font-family: adobe-clean-variable, adobe-clean, ui-sans-serif, system-ui, sans-serif;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.
|
|
96
|
+
._ee {
|
|
97
97
|
font-size: .875rem;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.
|
|
100
|
+
._fb {
|
|
101
101
|
font-variation-settings: "wght" 400;
|
|
102
102
|
font-synthesis-weight: none;
|
|
103
103
|
font-weight: 400;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.
|
|
106
|
+
._gb {
|
|
107
107
|
line-height: 1.5;
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -117,57 +117,57 @@
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
@layer _.b {
|
|
120
|
-
.
|
|
120
|
+
._f-1x99dloe:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
|
|
121
121
|
font-variation-settings: "wght" 800;
|
|
122
122
|
font-synthesis-weight: none;
|
|
123
123
|
font-weight: 800;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.
|
|
126
|
+
._g-1x99dlob:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
|
|
127
127
|
line-height: 1.5;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.
|
|
130
|
+
._d-enzrfpb:lang(ar) {
|
|
131
131
|
font-family: myriad-arabic, ui-sans-serif, system-ui, sans-serif;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
.
|
|
134
|
+
._g-1x99dloc:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
|
|
135
135
|
line-height: 1.7;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
@layer _.c {
|
|
140
|
-
.
|
|
140
|
+
._d-enzwzjc:lang(he) {
|
|
141
141
|
font-family: myriad-hebrew, ui-sans-serif, system-ui, sans-serif;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
@layer _.d {
|
|
146
|
-
.
|
|
146
|
+
._d-enzykdd:lang(ja) {
|
|
147
147
|
font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
@layer _.e {
|
|
152
|
-
.
|
|
152
|
+
._d-enzzrge:lang(ko) {
|
|
153
153
|
font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
@layer _.f {
|
|
158
|
-
.
|
|
158
|
+
._d-eo0c6sf:lang(zh) {
|
|
159
159
|
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
@layer _.g {
|
|
164
|
-
.
|
|
164
|
+
._d-1uotwbwg:lang(zh-hant) {
|
|
165
165
|
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
@layer _.h {
|
|
170
|
-
.
|
|
170
|
+
._d-bc1l9oh:is(:lang(zh-Hans), :lang(zh-CN), :lang(zh-SG)) {
|
|
171
171
|
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -176,11 +176,11 @@
|
|
|
176
176
|
|
|
177
177
|
@layer _.b.b {
|
|
178
178
|
@media not ((hover: hover) and (pointer: fine)) {
|
|
179
|
-
.
|
|
179
|
+
._ebj {
|
|
180
180
|
font-size: 1.375rem;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
.
|
|
183
|
+
._ebf {
|
|
184
184
|
font-size: 1.0625rem;
|
|
185
185
|
}
|
|
186
186
|
}
|
package/dist/ContextualHelp.mjs
CHANGED
|
@@ -34,7 +34,7 @@ function $parcel$interopDefault(a) {
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
const $8e176595bc49ca3f$var$popover = " .
|
|
37
|
+
const $8e176595bc49ca3f$var$popover = " . _da _d-enzrfpb _d-enzwzjc _d-enzykdd _d-enzzrge _d-eo0c6sf _d-1uotwbwg _d-bc1l9oh q___U l___U Eh Fh Ch Dh";
|
|
38
38
|
const $8e176595bc49ca3f$export$41b9afaaba473494 = /*#__PURE__*/ (0, $bcd4U$createContext)(null);
|
|
39
39
|
const $8e176595bc49ca3f$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $bcd4U$forwardRef)(function ContextualHelp(props, ref) {
|
|
40
40
|
let stringFormatter = (0, $bcd4U$useLocalizedStringFormatter)((0, ($parcel$interopDefault($bcd4U$intlStringsmjs))), '@react-spectrum/s2');
|
|
@@ -75,7 +75,7 @@ const $8e176595bc49ca3f$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $bcd4U$forwa
|
|
|
75
75
|
hideArrow: true,
|
|
76
76
|
UNSAFE_className: $8e176595bc49ca3f$var$popover,
|
|
77
77
|
children: /*#__PURE__*/ (0, $bcd4U$jsx)((0, $bcd4U$Dialog), {
|
|
78
|
-
className: (0, $feb886035e0d4633$export$e618dc39ac9ad607)((0, $9bbc115952dac5a6$export$6af31f836f9aa6f2), " .
|
|
78
|
+
className: (0, $feb886035e0d4633$export$e618dc39ac9ad607)((0, $9bbc115952dac5a6$export$6af31f836f9aa6f2), " . _wa _xa _ya _za AP BP yP zP Eh Fh Ch Dh"),
|
|
79
79
|
children: /*#__PURE__*/ (0, $bcd4U$jsx)((0, $bcd4U$Provider), {
|
|
80
80
|
values: [
|
|
81
81
|
[
|
|
@@ -89,19 +89,19 @@ const $8e176595bc49ca3f$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $bcd4U$forwa
|
|
|
89
89
|
[
|
|
90
90
|
(0, $8e847109a6ab556d$export$d688439359537581),
|
|
91
91
|
{
|
|
92
|
-
styles: " .
|
|
92
|
+
styles: " . _da _d-enzrfpb _d-enzwzjc _d-enzykdd _d-enzzrge _d-eo0c6sf _d-1uotwbwg _d-bc1l9oh _ei _ebj _fe _f-1x99dloe _ga _g-1x99dlob ao Aa B-y6pz8c ya za"
|
|
93
93
|
}
|
|
94
94
|
],
|
|
95
95
|
[
|
|
96
96
|
(0, $8e847109a6ab556d$export$1cbdd774077931b4),
|
|
97
97
|
{
|
|
98
|
-
styles: " .
|
|
98
|
+
styles: " . _da _d-enzrfpb _d-enzwzjc _d-enzykdd _d-enzzrge _d-eo0c6sf _d-1uotwbwg _d-bc1l9oh _ee _ebf _fb _gb _g-1x99dloc an"
|
|
99
99
|
}
|
|
100
100
|
],
|
|
101
101
|
[
|
|
102
102
|
(0, $8e847109a6ab556d$export$5630640b68817ed6),
|
|
103
103
|
{
|
|
104
|
-
styles: " .
|
|
104
|
+
styles: " . _da _d-enzrfpb _d-enzwzjc _d-enzykdd _d-enzzrge _d-eo0c6sf _d-1uotwbwg _d-bc1l9oh _ee _ebf _fb _gb _g-1x99dloc an Af"
|
|
105
105
|
}
|
|
106
106
|
]
|
|
107
107
|
],
|
package/dist/CustomDialog.cjs
CHANGED
|
@@ -28,15 +28,15 @@ $parcel$export(module.exports, "CustomDialog", () => $a05aa0b0345f1846$export$82
|
|
|
28
28
|
|
|
29
29
|
const $a05aa0b0345f1846$var$dialogStyle = function anonymous(props, overrides) {
|
|
30
30
|
let rules = " .";
|
|
31
|
-
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|_9|
|
|
31
|
+
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|__a|_9|h|_6|_5|__B|__d|__e|__b|__c|V|__R|Y|_a|W|X|l|q|r|k|o|p)[^\s]+/g) || [];
|
|
32
32
|
rules += matches.join('');
|
|
33
|
-
let $
|
|
33
|
+
let $V = false;
|
|
34
34
|
let $l = false;
|
|
35
35
|
let $k = false;
|
|
36
36
|
let $r = false;
|
|
37
37
|
let $p = false;
|
|
38
38
|
for (let p of matches){
|
|
39
|
-
if (/^\s*
|
|
39
|
+
if (/^\s*V/.test(p)) $V = true;
|
|
40
40
|
if (/^\s*l/.test(p)) $l = true;
|
|
41
41
|
if (/^\s*k/.test(p)) $k = true;
|
|
42
42
|
if (/^\s*r/.test(p)) $r = true;
|
|
@@ -62,15 +62,15 @@ const $a05aa0b0345f1846$var$dialogStyle = function anonymous(props, overrides) {
|
|
|
62
62
|
rules += ' Dcj';
|
|
63
63
|
rules += ' Dh';
|
|
64
64
|
}
|
|
65
|
-
rules += '
|
|
66
|
-
rules += '
|
|
67
|
-
rules += ' _v-17zqamw';
|
|
65
|
+
rules += ' __oa';
|
|
66
|
+
rules += ' _Ma';
|
|
68
67
|
rules += ' _w-17zqamw';
|
|
69
68
|
rules += ' _x-17zqamw';
|
|
70
69
|
rules += ' _y-17zqamw';
|
|
71
|
-
rules += '
|
|
70
|
+
rules += ' _z-17zqamw';
|
|
72
71
|
rules += ' __wa';
|
|
73
|
-
|
|
72
|
+
rules += ' __xa';
|
|
73
|
+
if (!$V) rules += ' Vc';
|
|
74
74
|
if (!$l) rules += ' lb';
|
|
75
75
|
if (!$k) rules += ' kb';
|
|
76
76
|
if (!$r) rules += ' r-17zqamw';
|
package/dist/CustomDialog.css
CHANGED
|
@@ -35,39 +35,39 @@
|
|
|
35
35
|
padding-inline-end: 0;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.
|
|
38
|
+
.__oa {
|
|
39
39
|
box-sizing: border-box;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.
|
|
42
|
+
._Ma {
|
|
43
43
|
outline-style: none;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.
|
|
46
|
+
._w-17zqamw {
|
|
47
47
|
border-start-start-radius: inherit;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.
|
|
50
|
+
._x-17zqamw {
|
|
51
51
|
border-start-end-radius: inherit;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.
|
|
54
|
+
._y-17zqamw {
|
|
55
55
|
border-end-start-radius: inherit;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.
|
|
58
|
+
._z-17zqamw {
|
|
59
59
|
border-end-end-radius: inherit;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.
|
|
62
|
+
.__wa {
|
|
63
63
|
overflow-x: auto;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.
|
|
66
|
+
.__xa {
|
|
67
67
|
overflow-y: auto;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.
|
|
70
|
+
.Vc {
|
|
71
71
|
position: relative;
|
|
72
72
|
}
|
|
73
73
|
|
package/dist/CustomDialog.mjs
CHANGED
|
@@ -22,15 +22,15 @@ import {useDOMRef as $4wOFe$useDOMRef} from "@react-spectrum/utils";
|
|
|
22
22
|
|
|
23
23
|
const $6e8e8fdd66697ef1$var$dialogStyle = function anonymous(props, overrides) {
|
|
24
24
|
let rules = " .";
|
|
25
|
-
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|_9|
|
|
25
|
+
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|__a|_9|h|_6|_5|__B|__d|__e|__b|__c|V|__R|Y|_a|W|X|l|q|r|k|o|p)[^\s]+/g) || [];
|
|
26
26
|
rules += matches.join('');
|
|
27
|
-
let $
|
|
27
|
+
let $V = false;
|
|
28
28
|
let $l = false;
|
|
29
29
|
let $k = false;
|
|
30
30
|
let $r = false;
|
|
31
31
|
let $p = false;
|
|
32
32
|
for (let p of matches){
|
|
33
|
-
if (/^\s*
|
|
33
|
+
if (/^\s*V/.test(p)) $V = true;
|
|
34
34
|
if (/^\s*l/.test(p)) $l = true;
|
|
35
35
|
if (/^\s*k/.test(p)) $k = true;
|
|
36
36
|
if (/^\s*r/.test(p)) $r = true;
|
|
@@ -56,15 +56,15 @@ const $6e8e8fdd66697ef1$var$dialogStyle = function anonymous(props, overrides) {
|
|
|
56
56
|
rules += ' Dcj';
|
|
57
57
|
rules += ' Dh';
|
|
58
58
|
}
|
|
59
|
-
rules += '
|
|
60
|
-
rules += '
|
|
61
|
-
rules += ' _v-17zqamw';
|
|
59
|
+
rules += ' __oa';
|
|
60
|
+
rules += ' _Ma';
|
|
62
61
|
rules += ' _w-17zqamw';
|
|
63
62
|
rules += ' _x-17zqamw';
|
|
64
63
|
rules += ' _y-17zqamw';
|
|
65
|
-
rules += '
|
|
64
|
+
rules += ' _z-17zqamw';
|
|
66
65
|
rules += ' __wa';
|
|
67
|
-
|
|
66
|
+
rules += ' __xa';
|
|
67
|
+
if (!$V) rules += ' Vc';
|
|
68
68
|
if (!$l) rules += ' lb';
|
|
69
69
|
if (!$k) rules += ' kb';
|
|
70
70
|
if (!$r) rules += ' r-17zqamw';
|