@eightshift/ui-components 1.7.2 → 1.9.0
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/{Button-VbCAu4hd.js → Button-BMFbEXg1.js} +7 -7
- package/dist/{Color-BpLubxWI.js → Color-B-cqXgPz.js} +5 -17
- package/dist/{ColorSwatch-CinC14s3.js → ColorSwatch-B6s54Jb3.js} +4 -4
- package/dist/ComboBox-VR9-vNZv.js +1886 -0
- package/dist/Dialog-BlYTPzgB.js +2177 -0
- package/dist/{FieldError-BttM1Nxd.js → FieldError-DKicm3R0.js} +2 -2
- package/dist/{FocusScope-CtCX0OGo.js → FocusScope-EoLYfbMp.js} +11 -12
- package/dist/{Group-XzWUooix.js → Group-D96edUPC.js} +5 -5
- package/dist/{Heading-DZelepHV.js → Heading-GytTjUsy.js} +1 -1
- package/dist/{Hidden-CcFqOzrp.js → Hidden-D3hHnmPI.js} +2 -2
- package/dist/{Input-CV1qVS6t.js → Input-BXSxJ_44.js} +10 -10
- package/dist/{Label-BwqMVkuV.js → Label-BtoiUpt8.js} +2 -2
- package/dist/{List-Bx2anbX-.js → List-Ct3nzFZG.js} +1 -1
- package/dist/{ListBox-DuZPdnkk.js → ListBox-BMpo-Cem.js} +19 -18
- package/dist/{NumberFormatter-U_Gx0UDq.js → NumberFormatter-DA8u1Ot7.js} +4 -6
- package/dist/OverlayArrow-4epQ99-E.js +567 -0
- package/dist/{Select-c7902d94.esm-DtzFQzf-.js → Select-aab027f3.esm-C7BxKjSc.js} +4 -4
- package/dist/{SelectionManager-x27KqnAT.js → SelectionManager-D-89MUJW.js} +276 -291
- package/dist/{Separator-BM58t3PP.js → Separator-DUhFmbD-.js} +62 -52
- package/dist/{Slider-D9Cs6yKr.js → Slider-QNPrj4N9.js} +16 -14
- package/dist/{Text-BVIXT8qq.js → Text-DNDWaukZ.js} +1 -1
- package/dist/{VisuallyHidden-WhC7vZaL.js → VisuallyHidden-BHNhi-ls.js} +2 -2
- package/dist/assets/style.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/components/animated-visibility/animated-visibility.js +67 -7245
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +10 -7
- package/dist/components/checkbox/checkbox.js +22 -13
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +2 -2
- package/dist/components/color-pickers/solid-color-picker.js +21 -21
- package/dist/components/component-toggle/component-toggle.js +1 -1
- package/dist/components/container-panel/container-panel.js +6 -4
- package/dist/components/draggable/draggable-handle.js +2 -2
- package/dist/components/draggable/draggable.js +2 -2
- package/dist/components/draggable-list/draggable-list-item.js +2 -2
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +221 -26
- package/dist/components/index.js +8 -4
- package/dist/components/input-field/input-field.js +7 -7
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +10 -1872
- package/dist/components/list-box/list-box.js +2 -2
- package/dist/components/matrix-align/matrix-align.js +2 -2
- package/dist/components/menu/menu.js +7 -974
- package/dist/components/modal/modal.js +7 -7
- package/dist/components/number-picker/number-picker.js +10 -10
- package/dist/components/option-select/option-select.js +1 -1
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +13 -13
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +2 -2
- package/dist/components/responsive/mini-responsive.js +3 -3
- package/dist/components/responsive/responsive-legacy.js +2 -2
- package/dist/components/responsive/responsive.js +2 -2
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/v2/async-select.js +307 -0
- package/dist/components/select/v2/shared.js +24 -0
- package/dist/components/select/v2/single-select.js +993 -0
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/tabs/tabs.js +16 -16
- package/dist/components/toggle/switch.js +6 -6
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +55 -12
- package/dist/components/tooltip/tooltip.js +532 -8
- package/dist/{context-Cs-ZD1nu.js → context-KeRYAbEi.js} +2 -2
- package/dist/{default-i18n-DRnM8y4w.js → default-i18n-CM1-Xvzf.js} +183 -176
- package/dist/{focusSafely-CgFLw4FA.js → focusSafely-CZY36ssv.js} +14 -14
- package/dist/icons/icons.js +131 -0
- package/dist/icons/jsx-svg.js +16 -3
- package/dist/{index-a301f526.esm-BMg114iK.js → index-641ee5b8.esm-DEB-c58F.js} +226 -75
- package/dist/index-BYHhzLf-.js +444 -0
- package/dist/index.js +7 -3
- package/dist/{multi-select-components-DTvEidE3.js → multi-select-components-DM3GsNfb.js} +112 -45
- package/dist/{react-jsx-parser.min-B5HVwW_W.js → react-jsx-parser.min-CVit0rZn.js} +5620 -7409
- package/dist/{react-select-async.esm-CxA8wpeT.js → react-select-async.esm-Bq3N1-Wi.js} +3 -3
- package/dist/{react-select.esm-CeE7o5M9.js → react-select.esm-B38nY7_U.js} +3 -3
- package/dist/{textSelection-CvK0YHTZ.js → textSelection-G2G-nukT.js} +1 -1
- package/dist/{useButton-Cy9eEev7.js → useButton-CFtcz1T6.js} +4 -4
- package/dist/{useEvent-LZebwyrb.js → useEvent-B0yfN_Zu.js} +1 -1
- package/dist/{useFocusRing-BMOTWmOx.js → useFocusRing-DMAlRYjX.js} +1 -1
- package/dist/{useFocusable-ByyKSVQv.js → useFocusable-BlkOMLma.js} +4 -4
- package/dist/{useFormReset-B8m1uz1J.js → useFormReset-BAEM0o25.js} +1 -1
- package/dist/{useFormValidationState-BjMhz_VI.js → useFormValidation-BNzOc2t9.js} +92 -88
- package/dist/{useLabel-B6uO0wVK.js → useLabel-D6FSp5_M.js} +2 -2
- package/dist/{useLabels-5dFkeiXx.js → useLabels-CraZ2Sej.js} +1 -1
- package/dist/{useListState-eKxv7HPC.js → useListState-C3dnPq2F.js} +1 -1
- package/dist/{useLocalizedStringFormatter-BaKmjFNp.js → useLocalizedStringFormatter-B73fhEA7.js} +1 -1
- package/dist/{useNumberField-DMMUTZ-h.js → useNumberField-CQP9-nH5.js} +27 -20
- package/dist/{useNumberFormatter-Cyx5Dxkf.js → useNumberFormatter-Cdctl6fg.js} +2 -2
- package/dist/{usePress-D8nPoIQm.js → usePress-xTkcGUkt.js} +4 -4
- package/dist/{useSingleSelectListState-CABciySJ.js → useSingleSelectListState-BGXQSTy7.js} +2 -2
- package/dist/{useToggle-BmltE9Zr.js → useToggle-Dpw3WpSw.js} +4 -4
- package/dist/{useToggleState-DZXLEnA_.js → useToggleState-BSKwCUIW.js} +1 -1
- package/dist/{utils-BCJajCwh.js → utils-BSLBwuuO.js} +16 -15
- package/package.json +30 -31
- package/dist/Dialog-BN5EE7UH.js +0 -934
- package/dist/index-BTCzc3zb.js +0 -28261
- package/dist/isScrollable-Dh9D9IOd.js +0 -9
- package/dist/tooltip-eKaARDoV.js +0 -1084
- package/dist/useMenuTrigger-4fwEmto8.js +0 -246
|
@@ -66,197 +66,204 @@ function memize(fn, options) {
|
|
|
66
66
|
return memoized;
|
|
67
67
|
}
|
|
68
68
|
var sprintf$1 = {};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
69
|
+
var hasRequiredSprintf;
|
|
70
|
+
function requireSprintf() {
|
|
71
|
+
if (hasRequiredSprintf) return sprintf$1;
|
|
72
|
+
hasRequiredSprintf = 1;
|
|
73
|
+
(function(exports) {
|
|
74
|
+
!function() {
|
|
75
|
+
var re = {
|
|
76
|
+
not_string: /[^s]/,
|
|
77
|
+
not_bool: /[^t]/,
|
|
78
|
+
not_type: /[^T]/,
|
|
79
|
+
not_primitive: /[^v]/,
|
|
80
|
+
number: /[diefg]/,
|
|
81
|
+
numeric_arg: /[bcdiefguxX]/,
|
|
82
|
+
json: /[j]/,
|
|
83
|
+
not_json: /[^j]/,
|
|
84
|
+
text: /^[^\x25]+/,
|
|
85
|
+
modulo: /^\x25{2}/,
|
|
86
|
+
placeholder: /^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,
|
|
87
|
+
key: /^([a-z_][a-z_\d]*)/i,
|
|
88
|
+
key_access: /^\.([a-z_][a-z_\d]*)/i,
|
|
89
|
+
index_access: /^\[(\d+)\]/,
|
|
90
|
+
sign: /^[+-]/
|
|
91
|
+
};
|
|
92
|
+
function sprintf2(key) {
|
|
93
|
+
return sprintf_format(sprintf_parse(key), arguments);
|
|
94
|
+
}
|
|
95
|
+
function vsprintf(fmt, argv) {
|
|
96
|
+
return sprintf2.apply(null, [fmt].concat(argv || []));
|
|
97
|
+
}
|
|
98
|
+
function sprintf_format(parse_tree, argv) {
|
|
99
|
+
var cursor = 1, tree_length = parse_tree.length, arg, output = "", i, k, ph, pad, pad_character, pad_length, is_positive, sign;
|
|
100
|
+
for (i = 0; i < tree_length; i++) {
|
|
101
|
+
if (typeof parse_tree[i] === "string") {
|
|
102
|
+
output += parse_tree[i];
|
|
103
|
+
} else if (typeof parse_tree[i] === "object") {
|
|
104
|
+
ph = parse_tree[i];
|
|
105
|
+
if (ph.keys) {
|
|
106
|
+
arg = argv[cursor];
|
|
107
|
+
for (k = 0; k < ph.keys.length; k++) {
|
|
108
|
+
if (arg == void 0) {
|
|
109
|
+
throw new Error(sprintf2('[sprintf] Cannot access property "%s" of undefined value "%s"', ph.keys[k], ph.keys[k - 1]));
|
|
110
|
+
}
|
|
111
|
+
arg = arg[ph.keys[k]];
|
|
106
112
|
}
|
|
107
|
-
|
|
113
|
+
} else if (ph.param_no) {
|
|
114
|
+
arg = argv[ph.param_no];
|
|
115
|
+
} else {
|
|
116
|
+
arg = argv[cursor++];
|
|
108
117
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
arg
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase();
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
if (re.json.test(ph.type)) {
|
|
176
|
-
output += arg;
|
|
177
|
-
} else {
|
|
178
|
-
if (re.number.test(ph.type) && (!is_positive || ph.sign)) {
|
|
179
|
-
sign = is_positive ? "+" : "-";
|
|
180
|
-
arg = arg.toString().replace(re.sign, "");
|
|
118
|
+
if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) {
|
|
119
|
+
arg = arg();
|
|
120
|
+
}
|
|
121
|
+
if (re.numeric_arg.test(ph.type) && (typeof arg !== "number" && isNaN(arg))) {
|
|
122
|
+
throw new TypeError(sprintf2("[sprintf] expecting number but found %T", arg));
|
|
123
|
+
}
|
|
124
|
+
if (re.number.test(ph.type)) {
|
|
125
|
+
is_positive = arg >= 0;
|
|
126
|
+
}
|
|
127
|
+
switch (ph.type) {
|
|
128
|
+
case "b":
|
|
129
|
+
arg = parseInt(arg, 10).toString(2);
|
|
130
|
+
break;
|
|
131
|
+
case "c":
|
|
132
|
+
arg = String.fromCharCode(parseInt(arg, 10));
|
|
133
|
+
break;
|
|
134
|
+
case "d":
|
|
135
|
+
case "i":
|
|
136
|
+
arg = parseInt(arg, 10);
|
|
137
|
+
break;
|
|
138
|
+
case "j":
|
|
139
|
+
arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0);
|
|
140
|
+
break;
|
|
141
|
+
case "e":
|
|
142
|
+
arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential();
|
|
143
|
+
break;
|
|
144
|
+
case "f":
|
|
145
|
+
arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg);
|
|
146
|
+
break;
|
|
147
|
+
case "g":
|
|
148
|
+
arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg);
|
|
149
|
+
break;
|
|
150
|
+
case "o":
|
|
151
|
+
arg = (parseInt(arg, 10) >>> 0).toString(8);
|
|
152
|
+
break;
|
|
153
|
+
case "s":
|
|
154
|
+
arg = String(arg);
|
|
155
|
+
arg = ph.precision ? arg.substring(0, ph.precision) : arg;
|
|
156
|
+
break;
|
|
157
|
+
case "t":
|
|
158
|
+
arg = String(!!arg);
|
|
159
|
+
arg = ph.precision ? arg.substring(0, ph.precision) : arg;
|
|
160
|
+
break;
|
|
161
|
+
case "T":
|
|
162
|
+
arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase();
|
|
163
|
+
arg = ph.precision ? arg.substring(0, ph.precision) : arg;
|
|
164
|
+
break;
|
|
165
|
+
case "u":
|
|
166
|
+
arg = parseInt(arg, 10) >>> 0;
|
|
167
|
+
break;
|
|
168
|
+
case "v":
|
|
169
|
+
arg = arg.valueOf();
|
|
170
|
+
arg = ph.precision ? arg.substring(0, ph.precision) : arg;
|
|
171
|
+
break;
|
|
172
|
+
case "x":
|
|
173
|
+
arg = (parseInt(arg, 10) >>> 0).toString(16);
|
|
174
|
+
break;
|
|
175
|
+
case "X":
|
|
176
|
+
arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase();
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
if (re.json.test(ph.type)) {
|
|
180
|
+
output += arg;
|
|
181
181
|
} else {
|
|
182
|
-
sign
|
|
182
|
+
if (re.number.test(ph.type) && (!is_positive || ph.sign)) {
|
|
183
|
+
sign = is_positive ? "+" : "-";
|
|
184
|
+
arg = arg.toString().replace(re.sign, "");
|
|
185
|
+
} else {
|
|
186
|
+
sign = "";
|
|
187
|
+
}
|
|
188
|
+
pad_character = ph.pad_char ? ph.pad_char === "0" ? "0" : ph.pad_char.charAt(1) : " ";
|
|
189
|
+
pad_length = ph.width - (sign + arg).length;
|
|
190
|
+
pad = ph.width ? pad_length > 0 ? pad_character.repeat(pad_length) : "" : "";
|
|
191
|
+
output += ph.align ? sign + arg + pad : pad_character === "0" ? sign + pad + arg : pad + sign + arg;
|
|
183
192
|
}
|
|
184
|
-
pad_character = ph.pad_char ? ph.pad_char === "0" ? "0" : ph.pad_char.charAt(1) : " ";
|
|
185
|
-
pad_length = ph.width - (sign + arg).length;
|
|
186
|
-
pad = ph.width ? pad_length > 0 ? pad_character.repeat(pad_length) : "" : "";
|
|
187
|
-
output += ph.align ? sign + arg + pad : pad_character === "0" ? sign + pad + arg : pad + sign + arg;
|
|
188
193
|
}
|
|
189
194
|
}
|
|
195
|
+
return output;
|
|
190
196
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
throw new SyntaxError("[sprintf] failed to parse named argument key");
|
|
197
|
+
var sprintf_cache = /* @__PURE__ */ Object.create(null);
|
|
198
|
+
function sprintf_parse(fmt) {
|
|
199
|
+
if (sprintf_cache[fmt]) {
|
|
200
|
+
return sprintf_cache[fmt];
|
|
201
|
+
}
|
|
202
|
+
var _fmt = fmt, match, parse_tree = [], arg_names = 0;
|
|
203
|
+
while (_fmt) {
|
|
204
|
+
if ((match = re.text.exec(_fmt)) !== null) {
|
|
205
|
+
parse_tree.push(match[0]);
|
|
206
|
+
} else if ((match = re.modulo.exec(_fmt)) !== null) {
|
|
207
|
+
parse_tree.push("%");
|
|
208
|
+
} else if ((match = re.placeholder.exec(_fmt)) !== null) {
|
|
209
|
+
if (match[2]) {
|
|
210
|
+
arg_names |= 1;
|
|
211
|
+
var field_list = [], replacement_field = match[2], field_match = [];
|
|
212
|
+
if ((field_match = re.key.exec(replacement_field)) !== null) {
|
|
213
|
+
field_list.push(field_match[1]);
|
|
214
|
+
while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
|
|
215
|
+
if ((field_match = re.key_access.exec(replacement_field)) !== null) {
|
|
216
|
+
field_list.push(field_match[1]);
|
|
217
|
+
} else if ((field_match = re.index_access.exec(replacement_field)) !== null) {
|
|
218
|
+
field_list.push(field_match[1]);
|
|
219
|
+
} else {
|
|
220
|
+
throw new SyntaxError("[sprintf] failed to parse named argument key");
|
|
221
|
+
}
|
|
217
222
|
}
|
|
223
|
+
} else {
|
|
224
|
+
throw new SyntaxError("[sprintf] failed to parse named argument key");
|
|
218
225
|
}
|
|
226
|
+
match[2] = field_list;
|
|
219
227
|
} else {
|
|
220
|
-
|
|
228
|
+
arg_names |= 2;
|
|
229
|
+
}
|
|
230
|
+
if (arg_names === 3) {
|
|
231
|
+
throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");
|
|
221
232
|
}
|
|
222
|
-
|
|
233
|
+
parse_tree.push(
|
|
234
|
+
{
|
|
235
|
+
placeholder: match[0],
|
|
236
|
+
param_no: match[1],
|
|
237
|
+
keys: match[2],
|
|
238
|
+
sign: match[3],
|
|
239
|
+
pad_char: match[4],
|
|
240
|
+
align: match[5],
|
|
241
|
+
width: match[6],
|
|
242
|
+
precision: match[7],
|
|
243
|
+
type: match[8]
|
|
244
|
+
}
|
|
245
|
+
);
|
|
223
246
|
} else {
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
if (arg_names === 3) {
|
|
227
|
-
throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");
|
|
247
|
+
throw new SyntaxError("[sprintf] unexpected placeholder");
|
|
228
248
|
}
|
|
229
|
-
|
|
230
|
-
{
|
|
231
|
-
placeholder: match[0],
|
|
232
|
-
param_no: match[1],
|
|
233
|
-
keys: match[2],
|
|
234
|
-
sign: match[3],
|
|
235
|
-
pad_char: match[4],
|
|
236
|
-
align: match[5],
|
|
237
|
-
width: match[6],
|
|
238
|
-
precision: match[7],
|
|
239
|
-
type: match[8]
|
|
240
|
-
}
|
|
241
|
-
);
|
|
242
|
-
} else {
|
|
243
|
-
throw new SyntaxError("[sprintf] unexpected placeholder");
|
|
249
|
+
_fmt = _fmt.substring(match[0].length);
|
|
244
250
|
}
|
|
245
|
-
|
|
251
|
+
return sprintf_cache[fmt] = parse_tree;
|
|
246
252
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
|
|
253
|
+
{
|
|
254
|
+
exports["sprintf"] = sprintf2;
|
|
255
|
+
exports["vsprintf"] = vsprintf;
|
|
256
|
+
}
|
|
257
|
+
if (typeof window !== "undefined") {
|
|
258
|
+
window["sprintf"] = sprintf2;
|
|
259
|
+
window["vsprintf"] = vsprintf;
|
|
260
|
+
}
|
|
261
|
+
}();
|
|
262
|
+
})(sprintf$1);
|
|
263
|
+
return sprintf$1;
|
|
264
|
+
}
|
|
265
|
+
var sprintfExports = requireSprintf();
|
|
266
|
+
const sprintfjs = /* @__PURE__ */ getDefaultExportFromCjs(sprintfExports);
|
|
260
267
|
const logErrorOnce = memize(console.error);
|
|
261
268
|
function sprintf(format, ...args) {
|
|
262
269
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-BSLBwuuO.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
3
3
|
const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
|
|
4
4
|
var _el_ownerDocument;
|
|
@@ -31,7 +31,7 @@ function $7215afc6de606d6b$var$supportsPreventScroll() {
|
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
} catch
|
|
34
|
+
} catch {
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
return $7215afc6de606d6b$var$supportsPreventScrollCached;
|
|
@@ -677,16 +677,16 @@ export {
|
|
|
677
677
|
$c87311424ea30a05$export$fedb369cb70207f1 as j,
|
|
678
678
|
$bbed8b41f857bcc0$export$24490316f764c430 as k,
|
|
679
679
|
$e7801be82b4b2a53$export$4debdb1a3f0fa79e as l,
|
|
680
|
-
$
|
|
681
|
-
$
|
|
682
|
-
$c87311424ea30a05$export$
|
|
683
|
-
$c87311424ea30a05$export$
|
|
684
|
-
$c87311424ea30a05$export$
|
|
685
|
-
$
|
|
686
|
-
$6a7db85432448f7f$export$
|
|
687
|
-
$
|
|
688
|
-
$
|
|
689
|
-
$c87311424ea30a05$export$
|
|
690
|
-
$c87311424ea30a05$export$
|
|
691
|
-
$
|
|
680
|
+
$507fabe10e71c6fb$export$630ff653c5ada6a9 as m,
|
|
681
|
+
$7215afc6de606d6b$export$de79e2c695e052f3 as n,
|
|
682
|
+
$c87311424ea30a05$export$9ac100e40613ea10 as o,
|
|
683
|
+
$c87311424ea30a05$export$78551043582a6a98 as p,
|
|
684
|
+
$c87311424ea30a05$export$b7d78993b74f766d as q,
|
|
685
|
+
$c87311424ea30a05$export$7bef049ce92e4224 as r,
|
|
686
|
+
$6a7db85432448f7f$export$29bf1b5f2c56cf63 as s,
|
|
687
|
+
$6a7db85432448f7f$export$60278871457622de as t,
|
|
688
|
+
$c87311424ea30a05$export$a11b0059900ceec8 as u,
|
|
689
|
+
$c87311424ea30a05$export$e1865c3bedcd822b as v,
|
|
690
|
+
$c87311424ea30a05$export$186c6964ca17d99 as w,
|
|
691
|
+
$507fabe10e71c6fb$export$98e20ec92f614cfe as x
|
|
692
692
|
};
|
package/dist/icons/icons.js
CHANGED
|
@@ -29665,6 +29665,137 @@ const icons = {
|
|
|
29665
29665
|
)
|
|
29666
29666
|
]
|
|
29667
29667
|
}
|
|
29668
|
+
),
|
|
29669
|
+
loader: /* @__PURE__ */ jsx(
|
|
29670
|
+
"svg",
|
|
29671
|
+
{
|
|
29672
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29673
|
+
width: "20",
|
|
29674
|
+
height: "20",
|
|
29675
|
+
viewBox: "0 0 20 20",
|
|
29676
|
+
fill: "none",
|
|
29677
|
+
children: /* @__PURE__ */ jsx(
|
|
29678
|
+
"path",
|
|
29679
|
+
{
|
|
29680
|
+
d: "M10 19v-2m-9-7h2m13.364 6.364L14.95 14.95M3.636 16.364 5.05 14.95M10 3V1m7 9h2M5.05 5.05 3.636 3.636M14.95 5.05l1.414-1.414",
|
|
29681
|
+
stroke: "currentColor",
|
|
29682
|
+
strokeLinecap: "round",
|
|
29683
|
+
fill: "none"
|
|
29684
|
+
}
|
|
29685
|
+
)
|
|
29686
|
+
}
|
|
29687
|
+
),
|
|
29688
|
+
verticalAlignBetween: /* @__PURE__ */ jsxs(
|
|
29689
|
+
"svg",
|
|
29690
|
+
{
|
|
29691
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29692
|
+
viewBox: "0 0 20 20",
|
|
29693
|
+
width: "20",
|
|
29694
|
+
height: "20",
|
|
29695
|
+
fill: "none",
|
|
29696
|
+
children: [
|
|
29697
|
+
/* @__PURE__ */ jsx(
|
|
29698
|
+
"path",
|
|
29699
|
+
{
|
|
29700
|
+
d: "m18.996 13.5-2 2m0 0-2-2m2 2v-11m2 2-2-2m0 0-2 2",
|
|
29701
|
+
stroke: "currentColor",
|
|
29702
|
+
strokeLinecap: "round",
|
|
29703
|
+
strokeLinejoin: "round",
|
|
29704
|
+
fill: "none"
|
|
29705
|
+
}
|
|
29706
|
+
),
|
|
29707
|
+
/* @__PURE__ */ jsx(
|
|
29708
|
+
"path",
|
|
29709
|
+
{
|
|
29710
|
+
d: "M.996 1h18m-18 18h18",
|
|
29711
|
+
stroke: "currentColor",
|
|
29712
|
+
strokeLinecap: "round",
|
|
29713
|
+
fill: "none"
|
|
29714
|
+
}
|
|
29715
|
+
),
|
|
29716
|
+
/* @__PURE__ */ jsx(
|
|
29717
|
+
"rect",
|
|
29718
|
+
{
|
|
29719
|
+
x: "9",
|
|
29720
|
+
y: "3",
|
|
29721
|
+
width: "4.5",
|
|
29722
|
+
height: "8",
|
|
29723
|
+
rx: "1.5",
|
|
29724
|
+
transform: "rotate(90 9 3)",
|
|
29725
|
+
fill: "currentColor",
|
|
29726
|
+
fillOpacity: "0.5"
|
|
29727
|
+
}
|
|
29728
|
+
),
|
|
29729
|
+
/* @__PURE__ */ jsx(
|
|
29730
|
+
"rect",
|
|
29731
|
+
{
|
|
29732
|
+
x: "13",
|
|
29733
|
+
y: "12.5",
|
|
29734
|
+
width: "4.5",
|
|
29735
|
+
height: "12",
|
|
29736
|
+
rx: "1.5",
|
|
29737
|
+
transform: "rotate(90 13 12.5)",
|
|
29738
|
+
fill: "currentColor",
|
|
29739
|
+
fillOpacity: "0.5"
|
|
29740
|
+
}
|
|
29741
|
+
)
|
|
29742
|
+
]
|
|
29743
|
+
}
|
|
29744
|
+
),
|
|
29745
|
+
horizontalAlignBetween: /* @__PURE__ */ jsxs(
|
|
29746
|
+
"svg",
|
|
29747
|
+
{
|
|
29748
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29749
|
+
viewBox: "0 0 20 20",
|
|
29750
|
+
width: "20",
|
|
29751
|
+
height: "20",
|
|
29752
|
+
fill: "none",
|
|
29753
|
+
children: [
|
|
29754
|
+
/* @__PURE__ */ jsx(
|
|
29755
|
+
"path",
|
|
29756
|
+
{
|
|
29757
|
+
d: "m13.496 1 2 2m0 0-2 2m2-2h-11m2-2-2 2m0 0 2 2",
|
|
29758
|
+
stroke: "currentColor",
|
|
29759
|
+
strokeLinecap: "round",
|
|
29760
|
+
strokeLinejoin: "round",
|
|
29761
|
+
fill: "none"
|
|
29762
|
+
}
|
|
29763
|
+
),
|
|
29764
|
+
/* @__PURE__ */ jsx(
|
|
29765
|
+
"path",
|
|
29766
|
+
{
|
|
29767
|
+
d: "M.996 19V1m18 18V1",
|
|
29768
|
+
stroke: "currentColor",
|
|
29769
|
+
strokeLinecap: "round",
|
|
29770
|
+
fill: "none"
|
|
29771
|
+
}
|
|
29772
|
+
),
|
|
29773
|
+
/* @__PURE__ */ jsx(
|
|
29774
|
+
"rect",
|
|
29775
|
+
{
|
|
29776
|
+
x: "2.99609",
|
|
29777
|
+
y: "10.9961",
|
|
29778
|
+
width: "4.5",
|
|
29779
|
+
height: "8",
|
|
29780
|
+
rx: "1.5",
|
|
29781
|
+
fill: "currentColor",
|
|
29782
|
+
fillOpacity: "0.5"
|
|
29783
|
+
}
|
|
29784
|
+
),
|
|
29785
|
+
/* @__PURE__ */ jsx(
|
|
29786
|
+
"rect",
|
|
29787
|
+
{
|
|
29788
|
+
x: "12.4961",
|
|
29789
|
+
y: "6.99609",
|
|
29790
|
+
width: "4.5",
|
|
29791
|
+
height: "12",
|
|
29792
|
+
rx: "1.5",
|
|
29793
|
+
fill: "currentColor",
|
|
29794
|
+
fillOpacity: "0.5"
|
|
29795
|
+
}
|
|
29796
|
+
)
|
|
29797
|
+
]
|
|
29798
|
+
}
|
|
29668
29799
|
)
|
|
29669
29800
|
};
|
|
29670
29801
|
const illustrations = {
|
package/dist/icons/jsx-svg.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { s as svgToJsxString, a as source_default } from "../react-jsx-parser.min-
|
|
2
|
+
import { s as svgToJsxString, a as source_default } from "../react-jsx-parser.min-CVit0rZn.js";
|
|
3
3
|
/**
|
|
4
4
|
* Renders SVG string as JSX SVGs.
|
|
5
5
|
*
|
|
@@ -7,16 +7,22 @@ import { s as svgToJsxString, a as source_default } from "../react-jsx-parser.mi
|
|
|
7
7
|
* @param {Object} props - Component props.
|
|
8
8
|
* @param {string} props.svg - The SVG string to render.
|
|
9
9
|
* @param {string} [props.className] - The class name to apply to the SVG. **Note**: Make sure the SVG doesn't include a class name already!
|
|
10
|
+
* @param {boolean} [props.ariaHidden] - Set to `true` if the image is decorative.
|
|
11
|
+
* @param {string} [props.customProps] - Custom props to add to the SVG.
|
|
12
|
+
* @param {Object} [props.customPropBindings] - Dynamic bindings for custom props.
|
|
10
13
|
*
|
|
11
14
|
* @returns {JSX.Element} The JsxSvg component.
|
|
12
15
|
*
|
|
13
16
|
* @example
|
|
14
17
|
* <JsxSvg svg="<svg ..." />
|
|
15
18
|
*
|
|
19
|
+
* @example
|
|
20
|
+
* <JsxSvg customProps='className={demo}' customPropBindings={{demo: demoAttr ? 'lorem' : 'ipsum}} svg="<svg ..." />
|
|
21
|
+
*
|
|
16
22
|
* @preserve
|
|
17
23
|
*/
|
|
18
24
|
const JsxSvg = (props) => {
|
|
19
|
-
const { svg, className } = props;
|
|
25
|
+
const { svg, className, customProps, customPropBindings, "aria-hidden": ariaHiddenProp, ariaHidden } = props;
|
|
20
26
|
if (!svg || typeof svg !== "string") {
|
|
21
27
|
return null;
|
|
22
28
|
}
|
|
@@ -24,11 +30,18 @@ const JsxSvg = (props) => {
|
|
|
24
30
|
if ((className == null ? void 0 : className.length) > 0) {
|
|
25
31
|
jsxString = jsxString.replace("<svg ", `<svg className="${className}" `);
|
|
26
32
|
}
|
|
33
|
+
if (ariaHiddenProp || ariaHidden) {
|
|
34
|
+
jsxString = jsxString.replace("<svg ", `<svg aria-hidden="true" `);
|
|
35
|
+
}
|
|
36
|
+
if (customProps) {
|
|
37
|
+
jsxString = jsxString.replace("<svg ", `<svg ${customProps} `);
|
|
38
|
+
}
|
|
27
39
|
return /* @__PURE__ */ jsx(
|
|
28
40
|
source_default,
|
|
29
41
|
{
|
|
30
42
|
renderInWrapper: false,
|
|
31
|
-
jsx: jsxString
|
|
43
|
+
jsx: jsxString,
|
|
44
|
+
bindings: customPropBindings
|
|
32
45
|
}
|
|
33
46
|
);
|
|
34
47
|
};
|