@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.
Files changed (113) hide show
  1. package/dist/{Button-VbCAu4hd.js → Button-BMFbEXg1.js} +7 -7
  2. package/dist/{Color-BpLubxWI.js → Color-B-cqXgPz.js} +5 -17
  3. package/dist/{ColorSwatch-CinC14s3.js → ColorSwatch-B6s54Jb3.js} +4 -4
  4. package/dist/ComboBox-VR9-vNZv.js +1886 -0
  5. package/dist/Dialog-BlYTPzgB.js +2177 -0
  6. package/dist/{FieldError-BttM1Nxd.js → FieldError-DKicm3R0.js} +2 -2
  7. package/dist/{FocusScope-CtCX0OGo.js → FocusScope-EoLYfbMp.js} +11 -12
  8. package/dist/{Group-XzWUooix.js → Group-D96edUPC.js} +5 -5
  9. package/dist/{Heading-DZelepHV.js → Heading-GytTjUsy.js} +1 -1
  10. package/dist/{Hidden-CcFqOzrp.js → Hidden-D3hHnmPI.js} +2 -2
  11. package/dist/{Input-CV1qVS6t.js → Input-BXSxJ_44.js} +10 -10
  12. package/dist/{Label-BwqMVkuV.js → Label-BtoiUpt8.js} +2 -2
  13. package/dist/{List-Bx2anbX-.js → List-Ct3nzFZG.js} +1 -1
  14. package/dist/{ListBox-DuZPdnkk.js → ListBox-BMpo-Cem.js} +19 -18
  15. package/dist/{NumberFormatter-U_Gx0UDq.js → NumberFormatter-DA8u1Ot7.js} +4 -6
  16. package/dist/OverlayArrow-4epQ99-E.js +567 -0
  17. package/dist/{Select-c7902d94.esm-DtzFQzf-.js → Select-aab027f3.esm-C7BxKjSc.js} +4 -4
  18. package/dist/{SelectionManager-x27KqnAT.js → SelectionManager-D-89MUJW.js} +276 -291
  19. package/dist/{Separator-BM58t3PP.js → Separator-DUhFmbD-.js} +62 -52
  20. package/dist/{Slider-D9Cs6yKr.js → Slider-QNPrj4N9.js} +16 -14
  21. package/dist/{Text-BVIXT8qq.js → Text-DNDWaukZ.js} +1 -1
  22. package/dist/{VisuallyHidden-WhC7vZaL.js → VisuallyHidden-BHNhi-ls.js} +2 -2
  23. package/dist/assets/style.css +1 -1
  24. package/dist/assets/wp-ui-enhancements.css +1 -1
  25. package/dist/components/animated-visibility/animated-visibility.js +67 -7245
  26. package/dist/components/base-control/base-control.js +1 -1
  27. package/dist/components/button/button.js +10 -7
  28. package/dist/components/checkbox/checkbox.js +22 -13
  29. package/dist/components/color-pickers/color-picker.js +1 -1
  30. package/dist/components/color-pickers/color-swatch.js +3 -3
  31. package/dist/components/color-pickers/gradient-editor.js +2 -2
  32. package/dist/components/color-pickers/solid-color-picker.js +21 -21
  33. package/dist/components/component-toggle/component-toggle.js +1 -1
  34. package/dist/components/container-panel/container-panel.js +6 -4
  35. package/dist/components/draggable/draggable-handle.js +2 -2
  36. package/dist/components/draggable/draggable.js +2 -2
  37. package/dist/components/draggable-list/draggable-list-item.js +2 -2
  38. package/dist/components/draggable-list/draggable-list.js +2 -2
  39. package/dist/components/expandable/expandable.js +221 -26
  40. package/dist/components/index.js +8 -4
  41. package/dist/components/input-field/input-field.js +7 -7
  42. package/dist/components/item-collection/item-collection.js +1 -1
  43. package/dist/components/link-input/link-input.js +10 -1872
  44. package/dist/components/list-box/list-box.js +2 -2
  45. package/dist/components/matrix-align/matrix-align.js +2 -2
  46. package/dist/components/menu/menu.js +7 -974
  47. package/dist/components/modal/modal.js +7 -7
  48. package/dist/components/number-picker/number-picker.js +10 -10
  49. package/dist/components/option-select/option-select.js +1 -1
  50. package/dist/components/options-panel/options-panel.js +1 -1
  51. package/dist/components/placeholders/file-placeholder.js +1 -1
  52. package/dist/components/popover/popover.js +2 -2
  53. package/dist/components/radio/radio.js +13 -13
  54. package/dist/components/repeater/repeater-item.js +1 -1
  55. package/dist/components/repeater/repeater.js +2 -2
  56. package/dist/components/responsive/mini-responsive.js +3 -3
  57. package/dist/components/responsive/responsive-legacy.js +2 -2
  58. package/dist/components/responsive/responsive.js +2 -2
  59. package/dist/components/responsive-preview/responsive-preview.js +1 -1
  60. package/dist/components/select/async-multi-select.js +3 -3
  61. package/dist/components/select/async-single-select.js +2 -2
  62. package/dist/components/select/custom-select-default-components.js +1 -1
  63. package/dist/components/select/multi-select-components.js +1 -1
  64. package/dist/components/select/multi-select.js +3 -3
  65. package/dist/components/select/react-select-component-wrappers.js +1 -1
  66. package/dist/components/select/single-select.js +2 -2
  67. package/dist/components/select/v2/async-select.js +307 -0
  68. package/dist/components/select/v2/shared.js +24 -0
  69. package/dist/components/select/v2/single-select.js +993 -0
  70. package/dist/components/slider/column-config-slider.js +3 -3
  71. package/dist/components/slider/slider.js +3 -3
  72. package/dist/components/slider/utils.js +1 -1
  73. package/dist/components/tabs/tabs.js +16 -16
  74. package/dist/components/toggle/switch.js +6 -6
  75. package/dist/components/toggle/toggle.js +1 -1
  76. package/dist/components/toggle-button/toggle-button.js +55 -12
  77. package/dist/components/tooltip/tooltip.js +532 -8
  78. package/dist/{context-Cs-ZD1nu.js → context-KeRYAbEi.js} +2 -2
  79. package/dist/{default-i18n-DRnM8y4w.js → default-i18n-CM1-Xvzf.js} +183 -176
  80. package/dist/{focusSafely-CgFLw4FA.js → focusSafely-CZY36ssv.js} +14 -14
  81. package/dist/icons/icons.js +131 -0
  82. package/dist/icons/jsx-svg.js +16 -3
  83. package/dist/{index-a301f526.esm-BMg114iK.js → index-641ee5b8.esm-DEB-c58F.js} +226 -75
  84. package/dist/index-BYHhzLf-.js +444 -0
  85. package/dist/index.js +7 -3
  86. package/dist/{multi-select-components-DTvEidE3.js → multi-select-components-DM3GsNfb.js} +112 -45
  87. package/dist/{react-jsx-parser.min-B5HVwW_W.js → react-jsx-parser.min-CVit0rZn.js} +5620 -7409
  88. package/dist/{react-select-async.esm-CxA8wpeT.js → react-select-async.esm-Bq3N1-Wi.js} +3 -3
  89. package/dist/{react-select.esm-CeE7o5M9.js → react-select.esm-B38nY7_U.js} +3 -3
  90. package/dist/{textSelection-CvK0YHTZ.js → textSelection-G2G-nukT.js} +1 -1
  91. package/dist/{useButton-Cy9eEev7.js → useButton-CFtcz1T6.js} +4 -4
  92. package/dist/{useEvent-LZebwyrb.js → useEvent-B0yfN_Zu.js} +1 -1
  93. package/dist/{useFocusRing-BMOTWmOx.js → useFocusRing-DMAlRYjX.js} +1 -1
  94. package/dist/{useFocusable-ByyKSVQv.js → useFocusable-BlkOMLma.js} +4 -4
  95. package/dist/{useFormReset-B8m1uz1J.js → useFormReset-BAEM0o25.js} +1 -1
  96. package/dist/{useFormValidationState-BjMhz_VI.js → useFormValidation-BNzOc2t9.js} +92 -88
  97. package/dist/{useLabel-B6uO0wVK.js → useLabel-D6FSp5_M.js} +2 -2
  98. package/dist/{useLabels-5dFkeiXx.js → useLabels-CraZ2Sej.js} +1 -1
  99. package/dist/{useListState-eKxv7HPC.js → useListState-C3dnPq2F.js} +1 -1
  100. package/dist/{useLocalizedStringFormatter-BaKmjFNp.js → useLocalizedStringFormatter-B73fhEA7.js} +1 -1
  101. package/dist/{useNumberField-DMMUTZ-h.js → useNumberField-CQP9-nH5.js} +27 -20
  102. package/dist/{useNumberFormatter-Cyx5Dxkf.js → useNumberFormatter-Cdctl6fg.js} +2 -2
  103. package/dist/{usePress-D8nPoIQm.js → usePress-xTkcGUkt.js} +4 -4
  104. package/dist/{useSingleSelectListState-CABciySJ.js → useSingleSelectListState-BGXQSTy7.js} +2 -2
  105. package/dist/{useToggle-BmltE9Zr.js → useToggle-Dpw3WpSw.js} +4 -4
  106. package/dist/{useToggleState-DZXLEnA_.js → useToggleState-BSKwCUIW.js} +1 -1
  107. package/dist/{utils-BCJajCwh.js → utils-BSLBwuuO.js} +16 -15
  108. package/package.json +30 -31
  109. package/dist/Dialog-BN5EE7UH.js +0 -934
  110. package/dist/index-BTCzc3zb.js +0 -28261
  111. package/dist/isScrollable-Dh9D9IOd.js +0 -9
  112. package/dist/tooltip-eKaARDoV.js +0 -1084
  113. 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
- (function(exports) {
70
- !function() {
71
- var re = {
72
- not_string: /[^s]/,
73
- not_bool: /[^t]/,
74
- not_type: /[^T]/,
75
- not_primitive: /[^v]/,
76
- number: /[diefg]/,
77
- numeric_arg: /[bcdiefguxX]/,
78
- json: /[j]/,
79
- not_json: /[^j]/,
80
- text: /^[^\x25]+/,
81
- modulo: /^\x25{2}/,
82
- placeholder: /^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,
83
- key: /^([a-z_][a-z_\d]*)/i,
84
- key_access: /^\.([a-z_][a-z_\d]*)/i,
85
- index_access: /^\[(\d+)\]/,
86
- sign: /^[+-]/
87
- };
88
- function sprintf2(key) {
89
- return sprintf_format(sprintf_parse(key), arguments);
90
- }
91
- function vsprintf(fmt, argv) {
92
- return sprintf2.apply(null, [fmt].concat(argv || []));
93
- }
94
- function sprintf_format(parse_tree, argv) {
95
- var cursor = 1, tree_length = parse_tree.length, arg, output = "", i, k, ph, pad, pad_character, pad_length, is_positive, sign;
96
- for (i = 0; i < tree_length; i++) {
97
- if (typeof parse_tree[i] === "string") {
98
- output += parse_tree[i];
99
- } else if (typeof parse_tree[i] === "object") {
100
- ph = parse_tree[i];
101
- if (ph.keys) {
102
- arg = argv[cursor];
103
- for (k = 0; k < ph.keys.length; k++) {
104
- if (arg == void 0) {
105
- throw new Error(sprintf2('[sprintf] Cannot access property "%s" of undefined value "%s"', ph.keys[k], ph.keys[k - 1]));
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
- arg = arg[ph.keys[k]];
113
+ } else if (ph.param_no) {
114
+ arg = argv[ph.param_no];
115
+ } else {
116
+ arg = argv[cursor++];
108
117
  }
109
- } else if (ph.param_no) {
110
- arg = argv[ph.param_no];
111
- } else {
112
- arg = argv[cursor++];
113
- }
114
- if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) {
115
- arg = arg();
116
- }
117
- if (re.numeric_arg.test(ph.type) && (typeof arg !== "number" && isNaN(arg))) {
118
- throw new TypeError(sprintf2("[sprintf] expecting number but found %T", arg));
119
- }
120
- if (re.number.test(ph.type)) {
121
- is_positive = arg >= 0;
122
- }
123
- switch (ph.type) {
124
- case "b":
125
- arg = parseInt(arg, 10).toString(2);
126
- break;
127
- case "c":
128
- arg = String.fromCharCode(parseInt(arg, 10));
129
- break;
130
- case "d":
131
- case "i":
132
- arg = parseInt(arg, 10);
133
- break;
134
- case "j":
135
- arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0);
136
- break;
137
- case "e":
138
- arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential();
139
- break;
140
- case "f":
141
- arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg);
142
- break;
143
- case "g":
144
- arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg);
145
- break;
146
- case "o":
147
- arg = (parseInt(arg, 10) >>> 0).toString(8);
148
- break;
149
- case "s":
150
- arg = String(arg);
151
- arg = ph.precision ? arg.substring(0, ph.precision) : arg;
152
- break;
153
- case "t":
154
- arg = String(!!arg);
155
- arg = ph.precision ? arg.substring(0, ph.precision) : arg;
156
- break;
157
- case "T":
158
- arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase();
159
- arg = ph.precision ? arg.substring(0, ph.precision) : arg;
160
- break;
161
- case "u":
162
- arg = parseInt(arg, 10) >>> 0;
163
- break;
164
- case "v":
165
- arg = arg.valueOf();
166
- arg = ph.precision ? arg.substring(0, ph.precision) : arg;
167
- break;
168
- case "x":
169
- arg = (parseInt(arg, 10) >>> 0).toString(16);
170
- break;
171
- case "X":
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
- return output;
192
- }
193
- var sprintf_cache = /* @__PURE__ */ Object.create(null);
194
- function sprintf_parse(fmt) {
195
- if (sprintf_cache[fmt]) {
196
- return sprintf_cache[fmt];
197
- }
198
- var _fmt = fmt, match, parse_tree = [], arg_names = 0;
199
- while (_fmt) {
200
- if ((match = re.text.exec(_fmt)) !== null) {
201
- parse_tree.push(match[0]);
202
- } else if ((match = re.modulo.exec(_fmt)) !== null) {
203
- parse_tree.push("%");
204
- } else if ((match = re.placeholder.exec(_fmt)) !== null) {
205
- if (match[2]) {
206
- arg_names |= 1;
207
- var field_list = [], replacement_field = match[2], field_match = [];
208
- if ((field_match = re.key.exec(replacement_field)) !== null) {
209
- field_list.push(field_match[1]);
210
- while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
211
- if ((field_match = re.key_access.exec(replacement_field)) !== null) {
212
- field_list.push(field_match[1]);
213
- } else if ((field_match = re.index_access.exec(replacement_field)) !== null) {
214
- field_list.push(field_match[1]);
215
- } else {
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
- throw new SyntaxError("[sprintf] failed to parse named argument key");
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
- match[2] = field_list;
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
- arg_names |= 2;
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
- parse_tree.push(
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
- _fmt = _fmt.substring(match[0].length);
251
+ return sprintf_cache[fmt] = parse_tree;
246
252
  }
247
- return sprintf_cache[fmt] = parse_tree;
248
- }
249
- {
250
- exports["sprintf"] = sprintf2;
251
- exports["vsprintf"] = vsprintf;
252
- }
253
- if (typeof window !== "undefined") {
254
- window["sprintf"] = sprintf2;
255
- window["vsprintf"] = vsprintf;
256
- }
257
- }();
258
- })(sprintf$1);
259
- const sprintfjs = /* @__PURE__ */ getDefaultExportFromCjs(sprintf$1);
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 { j as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-BCJajCwh.js";
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 (e) {
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
- $7215afc6de606d6b$export$de79e2c695e052f3 as m,
681
- $c87311424ea30a05$export$9ac100e40613ea10 as n,
682
- $c87311424ea30a05$export$78551043582a6a98 as o,
683
- $c87311424ea30a05$export$b7d78993b74f766d as p,
684
- $c87311424ea30a05$export$7bef049ce92e4224 as q,
685
- $6a7db85432448f7f$export$29bf1b5f2c56cf63 as r,
686
- $6a7db85432448f7f$export$60278871457622de as s,
687
- $507fabe10e71c6fb$export$98e20ec92f614cfe as t,
688
- $507fabe10e71c6fb$export$630ff653c5ada6a9 as u,
689
- $c87311424ea30a05$export$a11b0059900ceec8 as v,
690
- $c87311424ea30a05$export$e1865c3bedcd822b as w,
691
- $c87311424ea30a05$export$186c6964ca17d99 as x
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
  };
@@ -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 = {
@@ -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-B5HVwW_W.js";
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
  };