@ux-builder/ui 0.0.0-stage → 0.6.1

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.
@@ -0,0 +1,1501 @@
1
+ import { createContext as e, useCallback as t, useContext as n, useEffect as r, useId as i, useLayoutEffect as a, useMemo as o, useRef as s, useState as c } from "react";
2
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
3
+ //#region ../tokens/dist/manifest.json
4
+ var f = [
5
+ {
6
+ name: "databricks",
7
+ title: "Databricks",
8
+ brand: "databricks",
9
+ designSystem: "databricks",
10
+ default: "light",
11
+ appearances: ["dark", "light"]
12
+ },
13
+ {
14
+ name: "plain",
15
+ title: "Plain",
16
+ brand: "plain",
17
+ designSystem: null,
18
+ default: "light",
19
+ appearances: ["light"]
20
+ },
21
+ {
22
+ name: "praxis-carbon",
23
+ title: "Praxis Carbon",
24
+ brand: "praxis",
25
+ designSystem: "carbon",
26
+ default: "dark",
27
+ appearances: ["dark", "light"]
28
+ },
29
+ {
30
+ name: "praxis-fluentui",
31
+ title: "Praxis Fluent",
32
+ brand: "praxis",
33
+ designSystem: "fluent",
34
+ default: "dark",
35
+ appearances: ["dark", "light"]
36
+ },
37
+ {
38
+ name: "praxis-material",
39
+ title: "Praxis Material",
40
+ brand: "praxis",
41
+ designSystem: "material",
42
+ default: "dark",
43
+ appearances: ["dark", "light"]
44
+ },
45
+ {
46
+ name: "praxis-v2-databricks",
47
+ title: "Praxis V2 Databricks",
48
+ brand: "praxis-v2",
49
+ designSystem: "databricks",
50
+ default: "light",
51
+ appearances: ["dark", "light"]
52
+ },
53
+ {
54
+ name: "praxis",
55
+ title: "Praxis",
56
+ brand: "praxis",
57
+ designSystem: null,
58
+ default: "dark",
59
+ appearances: ["dark", "light"]
60
+ },
61
+ {
62
+ name: "synaptiq",
63
+ title: "Synaptiq",
64
+ brand: "synaptiq",
65
+ designSystem: null,
66
+ default: "light",
67
+ appearances: ["dark", "light"]
68
+ },
69
+ {
70
+ name: "ux-builder-databricks",
71
+ title: "UX Builder Databricks",
72
+ brand: "ux-builder",
73
+ designSystem: "databricks",
74
+ default: "light",
75
+ appearances: ["dark", "light"]
76
+ }
77
+ ], p = [
78
+ {
79
+ name: "databricks",
80
+ title: "Databricks",
81
+ appearances: ["light", "dark"]
82
+ },
83
+ {
84
+ name: "plain",
85
+ title: "Plain",
86
+ appearances: ["light"]
87
+ },
88
+ {
89
+ name: "praxis-v2",
90
+ title: "Praxis V2",
91
+ appearances: ["light", "dark"]
92
+ },
93
+ {
94
+ name: "praxis",
95
+ title: "Praxis",
96
+ appearances: ["dark", "light"]
97
+ },
98
+ {
99
+ name: "synaptiq",
100
+ title: "Synaptiq",
101
+ appearances: ["light", "dark"]
102
+ },
103
+ {
104
+ name: "ux-builder",
105
+ title: "UX Builder",
106
+ appearances: ["light", "dark"]
107
+ }
108
+ ], m = /* @__PURE__ */ "accent.badge-bg.badge-fg.badge-radius.badge-size.body.border.btn-focus-offset.btn-focus-ring.btn-hover-mix.btn-lift.btn-lift-hover.btn-lift-press.btn-lift-quiet.btn-min-height.btn-pad-x.btn-press-mix.btn-radius.btn-secondary-bg.btn-secondary-border.btn-secondary-fg.btn-shift-hover.btn-shift-press.btn-size.btn-text-fg.btn-weight.card-bg.card-border.card-pad.check-border.check-on-bg.check-on-fg.check-radius.check-size.favicon.field-bg.field-border.field-border-bottom.field-focus-offset.field-focus-outline.field-focus-shadow.field-height.field-hover-edge.field-invalid-shadow.field-label-fg.field-label-size.field-label-tracking.field-label-transform.field-label-weight.field-pad-x.field-radius.font-body.font-display.font-heading.font-mono.ink.leading-body.leading-tight.logo-aspect.logo-bg.logo-height.logo-height-sm.logo-image.logo-mask.logo-paint.mark-bg.mark-image.mark-mask.measure.menu-bg.menu-border.menu-item-height.menu-item-hover.menu-item-on-bg.menu-item-on-fg.menu-item-on-mark.menu-item-on-weight.menu-pad-y.menu-radius.menu-shadow.muted.muted-2.navy.notice-bg.notice-border-width.notice-edge-mix.notice-radius.notice-stripe.notice-tint.paper.pill-bg.pill-border.pill-dot-size.pill-gap.pill-pad.pill-radius.pill-size.pill-tracking.pill-transform.pill-weight.piq-badge-bg.piq-badge-fg.piq-badge-font-size.piq-badge-radius.piq-border-default.piq-brand-favicon.piq-brand-logo-aspect.piq-brand-logo-bg.piq-brand-logo-height.piq-brand-logo-height-sm.piq-brand-logo-image.piq-brand-logo-mask.piq-brand-logo-paint.piq-brand-mark-bg.piq-brand-mark-image.piq-brand-mark-mask.piq-button-font-size.piq-button-font-weight.piq-button-ghost-fg.piq-button-height.piq-button-offset-hover.piq-button-offset-press.piq-button-padding-x.piq-button-radius.piq-button-secondary-bg.piq-button-secondary-border.piq-button-secondary-fg.piq-button-shadow.piq-button-shadow-flat.piq-button-shadow-hover.piq-button-shadow-press.piq-card-bg.piq-card-border.piq-card-padding.piq-check-border.piq-check-checked-bg.piq-check-checked-fg.piq-check-radius.piq-check-size.piq-choice-picker-border.piq-choice-picker-divider.piq-choice-picker-font-size.piq-choice-picker-font-weight.piq-choice-picker-gap.piq-choice-picker-height.piq-choice-picker-option-bg.piq-choice-picker-option-border.piq-choice-picker-option-fg.piq-choice-picker-option-hover-bg.piq-choice-picker-option-radius.piq-choice-picker-option-selected-bg.piq-choice-picker-option-selected-check.piq-choice-picker-option-selected-fg.piq-choice-picker-padding-x.piq-choice-picker-radius.piq-color-accent.piq-color-border.piq-color-ground.piq-color-ground-recessed.piq-color-on-accent.piq-color-structure.piq-color-surface.piq-color-surface-sunken.piq-color-text.piq-color-text-muted.piq-color-text-strong.piq-color-text-subtle.piq-field-bg.piq-field-border.piq-field-border-bottom.piq-field-border-hover.piq-field-focus-offset.piq-field-focus-outline.piq-field-focus-shadow.piq-field-height.piq-field-invalid-shadow.piq-field-label-fg.piq-field-label-font-size.piq-field-label-font-weight.piq-field-label-letter-spacing.piq-field-label-text-transform.piq-field-padding-x.piq-field-radius.piq-focus-offset.piq-focus-ring.piq-font-body.piq-font-display.piq-font-heading.piq-font-mono.piq-font-size-body.piq-font-size-display.piq-font-size-heading.piq-font-size-label.piq-font-size-lead.piq-font-size-small.piq-font-size-title.piq-font-weight-regular.piq-font-weight-strong.piq-icon-set.piq-letter-spacing-eyebrow.piq-letter-spacing-label.piq-line-height-body.piq-line-height-tight.piq-menu-bg.piq-menu-border.piq-menu-item-height.piq-menu-item-hover-bg.piq-menu-item-selected-bg.piq-menu-item-selected-fg.piq-menu-item-selected-font-weight.piq-menu-item-selected-indicator.piq-menu-padding-y.piq-menu-radius.piq-menu-shadow.piq-nav-bar-height.piq-nav-item-direction.piq-nav-item-gap.piq-nav-item-label-font-size.piq-nav-item-selected-bg.piq-nav-item-selected-border.piq-nav-width.piq-notice-bg.piq-notice-border-tone-mix.piq-notice-border-width.piq-notice-radius.piq-notice-stripe-width.piq-notice-tone-mix.piq-page-header-gap.piq-page-header-padding-y.piq-page-header-title-font-size.piq-pill-bg.piq-pill-border.piq-pill-dot-size.piq-pill-font-size.piq-pill-font-weight.piq-pill-gap.piq-pill-letter-spacing.piq-pill-padding.piq-pill-radius.piq-pill-text-transform.piq-progress-fill-bg.piq-progress-height.piq-progress-radius.piq-progress-track-bg.piq-radius-card.piq-radius-control.piq-shadow-card.piq-shadow-overlay.piq-size-breakpoint-expanded.piq-size-breakpoint-extra-large.piq-size-breakpoint-large.piq-size-breakpoint-medium.piq-size-content-form.piq-size-content-page.piq-size-measure.piq-size-target-minimum.piq-size-target-touch.piq-skeleton-bg.piq-skeleton-effect.piq-skeleton-radius.piq-space-1.piq-space-2.piq-space-3.piq-space-4.piq-space-5.piq-space-6.piq-space-7.piq-space-8.piq-space-gutter-compact.piq-space-gutter-expanded.piq-space-gutter-extra-large.piq-space-gutter-large.piq-space-gutter-medium.piq-spinner-line-cap.piq-spinner-stroke-width.piq-spinner-track-color.piq-state-closed.piq-state-evaluation.piq-state-layer-hover.piq-state-layer-press.piq-state-limited.piq-state-live.piq-state-purchasing.piq-switch-checked-thumb-bg.piq-switch-checked-thumb-size.piq-switch-checked-track-bg.piq-switch-height.piq-switch-radius.piq-switch-thumb-bg.piq-switch-thumb-inset.piq-switch-thumb-size.piq-switch-track-bg.piq-switch-track-border.piq-switch-width.piq-table-cell-padding-x.piq-table-cell-padding-y.piq-table-font-size.piq-table-header-bg.piq-table-header-border.piq-table-header-fg.piq-table-header-font-size.piq-table-header-font-weight.piq-table-header-height.piq-table-header-letter-spacing.piq-table-header-text-transform.piq-table-row-border.piq-table-row-height.piq-table-row-hover-bg.piq-table-row-stripe-bg.piq-tabs-indicator-height.piq-tabs-list-border.piq-tabs-tab-bg-selected.piq-tabs-tab-padding-x.piq-tabs-tab-radius.piq-toast-action-fg.piq-toast-bg.piq-toast-fg.piq-toast-radius.piq-toast-shadow.piq-toast-stripe-width.radius.radius-card.rail.rule.seg-bg.seg-divider.seg-fg.seg-gap.seg-height.seg-hover-bg.seg-on-bg.seg-on-fg.seg-opt-border.seg-opt-radius.seg-outline.seg-pad-x.seg-radius.seg-size.seg-tick.seg-weight.shadow-card.shadow-raised.size-body.size-display.size-heading.size-intro.size-label.size-small.size-title.space-1.space-2.space-3.space-4.space-5.space-6.space-7.space-8.state-closed.state-evaluation.state-limited.state-live.state-purchasing.surface.surface-sunken.switch-height.switch-inset.switch-off-bg.switch-off-border.switch-on-bg.switch-radius.switch-thumb-off.switch-thumb-off-bg.switch-thumb-on.switch-thumb-on-bg.switch-width.table-head-bg.table-head-border.table-head-fg.table-head-height.table-head-size.table-head-tracking.table-head-transform.table-head-weight.table-pad-x.table-pad-y.table-row-height.table-row-hover.table-size.toast-action-fg.toast-bg.toast-fg.toast-radius.toast-shadow.toast-stripe.tracking-kicker.tracking-label.weight-bold.weight-normal".split("."), h = "data-piq-favicon", g = {
109
+ svg: "image/svg+xml",
110
+ png: "image/png",
111
+ webp: "image/webp",
112
+ ico: "image/x-icon"
113
+ };
114
+ function _(e) {
115
+ if (typeof window > "u" || !e) return null;
116
+ let t = getComputedStyle(e).getPropertyValue("--piq-brand-favicon").trim();
117
+ return /url\(\s*["']?([^"')]+)["']?\s*\)/.exec(t)?.[1] ?? null;
118
+ }
119
+ function v(e = typeof document > "u" ? null : document.documentElement) {
120
+ if (typeof document > "u" || !e) return null;
121
+ let t = _(e), n = document.head.querySelector(`link[${h}]`);
122
+ if (!t) return n?.remove(), null;
123
+ n || (n = document.createElement("link"), n.rel = "icon", n.setAttribute(h, ""));
124
+ let r = g[/\.(\w+)(?:[?#].*)?$/.exec(t)?.[1]?.toLowerCase()];
125
+ return r ? n.type = r : n.removeAttribute("type"), n.getAttribute("href") !== t && n.setAttribute("href", t), document.head.appendChild(n), t;
126
+ }
127
+ function y() {
128
+ typeof document < "u" && document.head.querySelector(`link[${h}]`)?.remove();
129
+ }
130
+ function b() {
131
+ return r(() => {
132
+ let e = document.documentElement, t = () => v(e);
133
+ t();
134
+ let n = new MutationObserver(t);
135
+ n.observe(e, {
136
+ attributes: !0,
137
+ attributeFilter: ["data-theme", "data-appearance"]
138
+ });
139
+ let r = window.matchMedia?.("(prefers-color-scheme: dark)");
140
+ return r?.addEventListener("change", t), () => {
141
+ n.disconnect(), r?.removeEventListener("change", t), y();
142
+ };
143
+ }, []), null;
144
+ }
145
+ //#endregion
146
+ //#region src/ThemeProvider.jsx
147
+ var x = e(null), S = new Map(f.map((e) => [e.name, e])), C = "(prefers-color-scheme: dark)", w = "piq:set-theme", T = !0;
148
+ try {
149
+ T = process.env.NODE_ENV !== "production";
150
+ } catch {}
151
+ var E = (e) => {
152
+ T && console.warn(`@ux-builder/ui ThemeProvider: ${e}`);
153
+ };
154
+ function D() {
155
+ return typeof window > "u" || !window.matchMedia ? null : window.matchMedia(C).matches ? "dark" : "light";
156
+ }
157
+ function O(e, t, n = D()) {
158
+ let r = t === "system" ? n : t, i = S.get(e);
159
+ return i ? r && i.appearances.includes(r) ? r : i.default : r ?? null;
160
+ }
161
+ var k = typeof window > "u" ? r : a, A = (e) => ({
162
+ ...Object.fromEntries(m.map((e) => [`--${e}`, "initial"])),
163
+ ...Object.fromEntries(Object.entries(e).filter(([, e]) => !String(e).startsWith("url(")).map(([e, t]) => [`--${e}`, t]))
164
+ });
165
+ function j({ theme: e, appearance: i = "system", tokens: a, favicon: l = !0, onChange: d, as: p = "div", style: m, children: h, ...g }) {
166
+ let _ = n(x), b = s(null), [T, j] = c(e), [M, N] = c(i), [P, F] = c(D);
167
+ r(() => j(e), [e]), r(() => N(i), [i]), k(() => {
168
+ if (M !== "system" || typeof window > "u" || !window.matchMedia) return;
169
+ let e = window.matchMedia(C), t = () => F(e.matches ? "dark" : "light");
170
+ return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
171
+ }, [M]);
172
+ let I = a ? M === "system" ? P ?? "light" : M : O(T, M, P);
173
+ r(() => {
174
+ a || (T && !S.has(T) ? E(`unknown theme "${T}"; known: ${[...S.keys()].join(", ")}`) : T && M !== "system" && I !== M && E(`theme "${T}" has no ${M} appearance; using ${I}`));
175
+ }, [
176
+ T,
177
+ M,
178
+ I,
179
+ a
180
+ ]);
181
+ let L = l && !a && !_;
182
+ k(() => {
183
+ L && v(b.current);
184
+ }, [
185
+ L,
186
+ T,
187
+ I
188
+ ]), r(() => L ? y : void 0, [L]);
189
+ let R = t((e) => {
190
+ j(e), d?.({
191
+ theme: e,
192
+ appearance: M
193
+ });
194
+ }, [d, M]), z = t((e) => {
195
+ N(e), d?.({
196
+ theme: T,
197
+ appearance: e
198
+ });
199
+ }, [d, T]), B = !a && !_;
200
+ r(() => {
201
+ if (!B || typeof window > "u") return;
202
+ let e = (e) => {
203
+ let { theme: t, appearance: n } = e.detail ?? {};
204
+ t && j(t), n && N(n), (t || n) && d?.({
205
+ theme: t ?? T,
206
+ appearance: n ?? M
207
+ });
208
+ };
209
+ return window.addEventListener(w, e), () => window.removeEventListener(w, e);
210
+ }, [
211
+ B,
212
+ d,
213
+ T,
214
+ M
215
+ ]);
216
+ let V = o(() => ({
217
+ theme: a ? null : T,
218
+ appearance: I,
219
+ preference: M,
220
+ themes: f,
221
+ setTheme: R,
222
+ setAppearance: z
223
+ }), [
224
+ T,
225
+ I,
226
+ M,
227
+ a,
228
+ R,
229
+ z
230
+ ]), H = a ? { style: {
231
+ ...A(a),
232
+ colorScheme: I ?? void 0,
233
+ ...m
234
+ } } : {
235
+ "data-theme": T,
236
+ ...I && { "data-appearance": I },
237
+ style: {
238
+ colorScheme: I ?? void 0,
239
+ ...m
240
+ }
241
+ };
242
+ return /* @__PURE__ */ u(x.Provider, {
243
+ value: V,
244
+ children: /* @__PURE__ */ u(p, {
245
+ ref: b,
246
+ ...g,
247
+ ...H,
248
+ children: h
249
+ })
250
+ });
251
+ }
252
+ function M() {
253
+ let e = n(x);
254
+ if (!e) throw Error("useTheme() needs a <ThemeProvider> above it");
255
+ return e;
256
+ }
257
+ //#endregion
258
+ //#region src/icons/glyphs.generated.js
259
+ var N = {
260
+ material: {
261
+ package: "@material-symbols/svg-400",
262
+ version: "0.47.6",
263
+ license: "Apache-2.0",
264
+ svg: { fill: "currentColor" }
265
+ },
266
+ fluent: {
267
+ package: "@fluentui/svg-icons",
268
+ version: "1.1.343",
269
+ license: "MIT",
270
+ svg: { fill: "currentColor" }
271
+ },
272
+ carbon: {
273
+ package: "@carbon/icons",
274
+ version: "11.89.0",
275
+ license: "Apache-2.0",
276
+ svg: { fill: "currentColor" }
277
+ },
278
+ lucide: {
279
+ package: "lucide-static",
280
+ version: "1.52.0",
281
+ license: "ISC",
282
+ svg: {
283
+ fill: "none",
284
+ stroke: "currentColor",
285
+ "stroke-width": "2",
286
+ "stroke-linecap": "round",
287
+ "stroke-linejoin": "round"
288
+ }
289
+ }
290
+ }, P = {
291
+ material: {
292
+ add: {
293
+ viewBox: "0 -960 960 960",
294
+ body: "<path d=\"M450-450H200v-60h250v-250h60v250h250v60H510v250h-60v-250Z\"/>"
295
+ },
296
+ "arrow-left": {
297
+ viewBox: "0 -960 960 960",
298
+ body: "<path d=\"m274-450 248 248-42 42-320-320 320-320 42 42-248 248h526v60H274Z\"/>"
299
+ },
300
+ "arrow-right": {
301
+ viewBox: "0 -960 960 960",
302
+ body: "<path d=\"M686-450H160v-60h526L438-758l42-42 320 320-320 320-42-42 248-248Z\"/>"
303
+ },
304
+ calendar: {
305
+ viewBox: "0 -960 960 960",
306
+ body: "<path d=\"M180-80q-24 0-42-18t-18-42v-620q0-24 18-42t42-18h65v-60h65v60h340v-60h65v60h65q24 0 42 18t18 42v620q0 24-18 42t-42 18H180Zm0-60h600v-430H180v430Zm0-490h600v-130H180v130Zm0 0v-130 130Z\"/>"
307
+ },
308
+ check: {
309
+ viewBox: "0 -960 960 960",
310
+ body: "<path d=\"M378-246 154-470l43-43 181 181 384-384 43 43-427 427Z\"/>"
311
+ },
312
+ "check-circle": {
313
+ viewBox: "0 -960 960 960",
314
+ body: "<path d=\"m421-298 283-283-46-45-237 237-120-120-45 45 165 166Zm59 218q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-156t86-127Q252-817 325-848.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 82-31.5 155T763-197.5q-54 54.5-127 86T480-80Zm0-60q142 0 241-99.5T820-480q0-142-99-241t-241-99q-141 0-240.5 99T140-480q0 141 99.5 240.5T480-140Zm0-340Z\"/>"
315
+ },
316
+ "chevron-down": {
317
+ viewBox: "0 -960 960 960",
318
+ body: "<path d=\"M480-344 240-584l43-43 197 197 197-197 43 43-240 240Z\"/>"
319
+ },
320
+ "chevron-left": {
321
+ viewBox: "0 -960 960 960",
322
+ body: "<path d=\"M561-240 320-481l241-241 43 43-198 198 198 198-43 43Z\"/>"
323
+ },
324
+ "chevron-right": {
325
+ viewBox: "0 -960 960 960",
326
+ body: "<path d=\"M530-481 332-679l43-43 241 241-241 241-43-43 198-198Z\"/>"
327
+ },
328
+ "chevron-up": {
329
+ viewBox: "0 -960 960 960",
330
+ body: "<path d=\"M480-554 283-357l-43-43 240-240 240 240-43 43-197-197Z\"/>"
331
+ },
332
+ close: {
333
+ viewBox: "0 -960 960 960",
334
+ body: "<path d=\"m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z\"/>"
335
+ },
336
+ copy: {
337
+ viewBox: "0 -960 960 960",
338
+ body: "<path d=\"M300-200q-24 0-42-18t-18-42v-560q0-24 18-42t42-18h440q24 0 42 18t18 42v560q0 24-18 42t-42 18H300Zm0-60h440v-560H300v560ZM180-80q-24 0-42-18t-18-42v-620h60v620h500v60H180Zm120-180v-560 560Z\"/>"
339
+ },
340
+ delete: {
341
+ viewBox: "0 -960 960 960",
342
+ body: "<path d=\"M261-120q-24.75 0-42.37-17.63Q201-155.25 201-180v-570h-41v-60h188v-30h264v30h188v60h-41v570q0 24-18 42t-42 18H261Zm438-630H261v570h438v-570ZM367-266h60v-399h-60v399Zm166 0h60v-399h-60v399ZM261-750v570-570Z\"/>"
343
+ },
344
+ download: {
345
+ viewBox: "0 -960 960 960",
346
+ body: "<path d=\"M480-313 287-506l43-43 120 120v-371h60v371l120-120 43 43-193 193ZM220-160q-24 0-42-18t-18-42v-143h60v143h520v-143h60v143q0 24-18 42t-42 18H220Z\"/>"
347
+ },
348
+ edit: {
349
+ viewBox: "0 -960 960 960",
350
+ body: "<path d=\"M180-180h44l472-471-44-44-472 471v44Zm-60 60v-128l575-574q8-8 19-12.5t23-4.5q11 0 22 4.5t20 12.5l44 44q9 9 13 20t4 22q0 11-4.5 22.5T823-694L248-120H120Zm659-617-41-41 41 41Zm-105 64-22-22 44 44-22-22Z\"/>"
351
+ },
352
+ error: {
353
+ viewBox: "0 -960 960 960",
354
+ body: "<path d=\"M503.5-289.48q9.5-9.48 9.5-23.5t-9.48-23.52q-9.48-9.5-23.5-9.5t-23.52 9.48q-9.5 9.48-9.5 23.5t9.48 23.52q9.48 9.5 23.5 9.5t23.52-9.48ZM453-433h60v-253h-60v253Zm27.27 353q-82.74 0-155.5-31.5Q252-143 197.5-197.5t-86-127.34Q80-397.68 80-480.5t31.5-155.66Q143-709 197.5-763t127.34-85.5Q397.68-880 480.5-880t155.66 31.5Q709-817 763-763t85.5 127Q880-563 880-480.27q0 82.74-31.5 155.5Q817-252 763-197.68q-54 54.31-127 86Q563-80 480.27-80Zm.23-60Q622-140 721-239.5t99-241Q820-622 721.19-721T480-820q-141 0-240.5 98.81T140-480q0 141 99.5 240.5t241 99.5Zm-.5-340Z\"/>"
355
+ },
356
+ "external-link": {
357
+ viewBox: "0 -960 960 960",
358
+ body: "<path d=\"M180-120q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h279v60H180v600h600v-279h60v279q0 24-18 42t-42 18H180Zm202-219-42-43 398-398H519v-60h321v321h-60v-218L382-339Z\"/>"
359
+ },
360
+ filter: {
361
+ viewBox: "0 -960 960 960",
362
+ body: "<path d=\"M400-240v-60h160v60H400ZM240-450v-60h480v60H240ZM120-660v-60h720v60H120Z\"/>"
363
+ },
364
+ help: {
365
+ viewBox: "0 -960 960 960",
366
+ body: "<path d=\"M511-258q11-11 11-27t-11-27q-11-11-27-11t-27 11q-11 11-11 27t11 27q11 11 27 11t27-11Zm-62-135h59q0-26 6.5-47.5T555-490q31-26 44-51t13-55q0-53-34.5-85T486-713q-49 0-86.5 24.5T345-621l53 20q11-28 33-43.5t52-15.5q34 0 55 18.5t21 47.5q0 22-13 41.5T508-512q-30 26-44.5 51.5T449-393Zm31 313q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-156t86-127Q252-817 325-848.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 82-31.5 155T763-197.5q-54 54.5-127 86T480-80Zm0-60q142 0 241-99.5T820-480q0-142-99-241t-241-99q-141 0-240.5 99T140-480q0 141 99.5 240.5T480-140Zm0-340Z\"/>"
367
+ },
368
+ home: {
369
+ viewBox: "0 -960 960 960",
370
+ body: "<path d=\"M220-180h150v-250h220v250h150v-390L480-765 220-570v390Zm-60 60v-480l320-240 320 240v480H530v-250H430v250H160Zm320-353Z\"/>"
371
+ },
372
+ info: {
373
+ viewBox: "0 -960 960 960",
374
+ body: "<path d=\"M453-280h60v-240h-60v240Zm50.5-323.2q9.5-9.2 9.5-22.8 0-14.45-9.48-24.22-9.48-9.78-23.5-9.78t-23.52 9.78Q447-640.45 447-626q0 13.6 9.48 22.8 9.48 9.2 23.5 9.2t23.52-9.2ZM480.27-80q-82.74 0-155.5-31.5Q252-143 197.5-197.5t-86-127.34Q80-397.68 80-480.5t31.5-155.66Q143-709 197.5-763t127.34-85.5Q397.68-880 480.5-880t155.66 31.5Q709-817 763-763t85.5 127Q880-563 880-480.27q0 82.74-31.5 155.5Q817-252 763-197.68q-54 54.31-127 86Q563-80 480.27-80Zm.23-60Q622-140 721-239.5t99-241Q820-622 721.19-721T480-820q-141 0-240.5 98.81T140-480q0 141 99.5 240.5t241 99.5Zm-.5-340Z\"/>"
375
+ },
376
+ lock: {
377
+ viewBox: "0 -960 960 960",
378
+ body: "<path d=\"M220-80q-24.75 0-42.37-17.63Q160-115.25 160-140v-434q0-24.75 17.63-42.38Q195.25-634 220-634h70v-96q0-78.85 55.61-134.42Q401.21-920 480.11-920q78.89 0 134.39 55.58Q670-808.85 670-730v96h70q24.75 0 42.38 17.62Q800-598.75 800-574v434q0 24.75-17.62 42.37Q764.75-80 740-80H220Zm0-60h520v-434H220v434Zm314.5-162.03Q557-324.06 557-355q0-30-22.67-54.5t-54.5-24.5q-31.83 0-54.33 24.5t-22.5 55q0 30.5 22.67 52.5t54.5 22q31.83 0 54.33-22.03ZM350-634h260v-96q0-54.17-37.88-92.08-37.88-37.92-92-37.92T388-822.08q-38 37.91-38 92.08v96ZM220-140v-434 434Z\"/>"
379
+ },
380
+ menu: {
381
+ viewBox: "0 -960 960 960",
382
+ body: "<path d=\"M120-240v-60h720v60H120Zm0-210v-60h720v60H120Zm0-210v-60h720v60H120Z\"/>"
383
+ },
384
+ more: {
385
+ viewBox: "0 -960 960 960",
386
+ body: "<path d=\"M207.86-432Q188-432 174-446.14t-14-34Q160-500 174.14-514t34-14Q228-528 242-513.86t14 34Q256-460 241.86-446t-34 14Zm272 0Q460-432 446-446.14t-14-34Q432-500 446.14-514t34-14Q500-528 514-513.86t14 34Q528-460 513.86-446t-34 14Zm272 0Q732-432 718-446.14t-14-34Q704-500 718.14-514t34-14Q772-528 786-513.86t14 34Q800-460 785.86-446t-34 14Z\"/>"
387
+ },
388
+ refresh: {
389
+ viewBox: "0 -960 960 960",
390
+ body: "<path d=\"M480-160q-133 0-226.5-93.5T160-480q0-133 93.5-226.5T480-800q85 0 149 34.5T740-671v-129h60v254H546v-60h168q-38-60-97-97t-137-37q-109 0-184.5 75.5T220-480q0 109 75.5 184.5T480-220q83 0 152-47.5T728-393h62q-29 105-115 169t-195 64Z\"/>"
391
+ },
392
+ search: {
393
+ viewBox: "0 -960 960 960",
394
+ body: "<path d=\"M796-121 533-384q-30 26-70 40.5T378-329q-108 0-183-75t-75-181q0-106 75-181t182-75q106 0 180.5 75T632-585q0 43-14 83t-42 75l264 262-44 44ZM377-389q81 0 138-57.5T572-585q0-81-57-138.5T377-781q-82 0-139.5 57.5T180-585q0 81 57.5 138.5T377-389Z\"/>"
395
+ },
396
+ settings: {
397
+ viewBox: "0 -960 960 960",
398
+ body: "<path d=\"m388-80-20-126q-19-7-40-19t-37-25l-118 54-93-164 108-79q-2-9-2.5-20.5T185-480q0-9 .5-20.5T188-521L80-600l93-164 118 54q16-13 37-25t40-18l20-127h184l20 126q19 7 40.5 18.5T669-710l118-54 93 164-108 77q2 10 2.5 21.5t.5 21.5q0 10-.5 21t-2.5 21l108 78-93 164-118-54q-16 13-36.5 25.5T592-206L572-80H388Zm48-60h88l14-112q33-8 62.5-25t53.5-41l106 46 40-72-94-69q4-17 6.5-33.5T715-480q0-17-2-33.5t-7-33.5l94-69-40-72-106 46q-23-26-52-43.5T538-708l-14-112h-88l-14 112q-34 7-63.5 24T306-642l-106-46-40 72 94 69q-4 17-6.5 33.5T245-480q0 17 2.5 33.5T254-413l-94 69 40 72 106-46q24 24 53.5 41t62.5 25l14 112Zm44-210q54 0 92-38t38-92q0-54-38-92t-92-38q-54 0-92 38t-38 92q0 54 38 92t92 38Zm0-130Z\"/>"
399
+ },
400
+ "sort-ascending": {
401
+ viewBox: "0 -960 960 960",
402
+ body: "<path d=\"M450-160v-526L202-438l-42-42 320-320 320 320-42 42-248-248v526h-60Z\"/>"
403
+ },
404
+ "sort-descending": {
405
+ viewBox: "0 -960 960 960",
406
+ body: "<path d=\"M450-800v526L202-522l-42 42 320 320 320-320-42-42-248 248v-526h-60Z\"/>"
407
+ },
408
+ upload: {
409
+ viewBox: "0 -960 960 960",
410
+ body: "<path d=\"M450-313v-371L330-564l-43-43 193-193 193 193-43 43-120-120v371h-60ZM220-160q-24 0-42-18t-18-42v-143h60v143h520v-143h60v143q0 24-18 42t-42 18H220Z\"/>"
411
+ },
412
+ user: {
413
+ viewBox: "0 -960 960 960",
414
+ body: "<path d=\"M372-523q-42-42-42-108t42-108q42-42 108-42t108 42q42 42 42 108t-42 108q-42 42-108 42t-108-42ZM160-160v-94q0-38 19-65t49-41q67-30 128.5-45T480-420q62 0 123 15.5T731-360q31 14 50 41t19 65v94H160Zm60-60h520v-34q0-16-9.5-30.5T707-306q-64-31-117-42.5T480-360q-57 0-111 11.5T252-306q-14 7-23 21.5t-9 30.5v34Zm324.5-346.5Q570-592 570-631t-25.5-64.5Q519-721 480-721t-64.5 25.5Q390-670 390-631t25.5 64.5Q441-541 480-541t64.5-25.5ZM480-631Zm0 411Z\"/>"
415
+ },
416
+ view: {
417
+ viewBox: "0 -960 960 960",
418
+ body: "<path d=\"M600.5-379.5Q650-429 650-500t-49.5-120.5Q551-670 480-670t-120.5 49.5Q310-571 310-500t49.5 120.5Q409-330 480-330t120.5-49.5Zm-200-41Q368-453 368-500t32.5-79.5Q433-612 480-612t79.5 32.5Q592-547 592-500t-32.5 79.5Q527-388 480-388t-79.5-32.5ZM216-283Q98-366 40-500q58-134 176-217t264-83q146 0 264 83t176 217q-58 134-176 217t-264 83q-146 0-264-83Zm264-217Zm222.5 174.5Q804-391 857-500q-53-109-154.5-174.5T480-740q-121 0-222.5 65.5T102-500q54 109 155.5 174.5T480-260q121 0 222.5-65.5Z\"/>"
419
+ },
420
+ warning: {
421
+ viewBox: "0 -960 960 960",
422
+ body: "<path d=\"m40-120 440-760 440 760H40Zm104-60h672L480-760 144-180Zm361.5-65.68q8.5-8.67 8.5-21.5 0-12.82-8.68-21.32-8.67-8.5-21.5-8.5-12.82 0-21.32 8.68-8.5 8.67-8.5 21.5 0 12.82 8.68 21.32 8.67 8.5 21.5 8.5 12.82 0 21.32-8.68ZM454-348h60v-224h-60v224Zm26-122Z\"/>"
423
+ }
424
+ },
425
+ fluent: {
426
+ add: {
427
+ viewBox: "0 0 24 24",
428
+ body: "<path d=\"M12 3.25c.41 0 .75.34.75.75v7.25H20a.75.75 0 0 1 0 1.5h-7.25V20a.75.75 0 0 1-1.5 0v-7.25H4a.75.75 0 0 1 0-1.5h7.25V4c0-.41.34-.75.75-.75\"/>"
429
+ },
430
+ "arrow-left": {
431
+ viewBox: "0 0 24 24",
432
+ body: "<path d=\"M10.73 19.8a.75.75 0 0 0 1.04-1.1l-6.25-5.95h14.73a.75.75 0 0 0 0-1.5H5.52l6.25-5.95a.75.75 0 0 0-1.04-1.1l-7.42 7.08a1 1 0 0 0 0 1.44z\"/>"
433
+ },
434
+ "arrow-right": {
435
+ viewBox: "0 0 24 24",
436
+ body: "<path d=\"M13.27 4.2a.75.75 0 0 0-1.04 1.1l6.25 5.95H3.75a.75.75 0 0 0 0 1.5h14.73l-6.25 5.95a.75.75 0 0 0 1.04 1.1l7.42-7.08a1 1 0 0 0 0-1.44z\"/>"
437
+ },
438
+ calendar: {
439
+ viewBox: "0 0 24 24",
440
+ body: "<path d=\"M17.75 3C19.55 3 21 4.46 21 6.25v11.5c0 1.8-1.46 3.25-3.25 3.25H6.25A3.25 3.25 0 0 1 3 17.75V6.25C3 4.45 4.46 3 6.25 3zm1.75 5.5h-15v9.25c0 .97.78 1.75 1.75 1.75h11.5c.97 0 1.75-.78 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.5-6H6.25c-.97 0-1.75.78-1.75 1.75V7h15v-.75c0-.97-.78-1.75-1.75-1.75\"/>"
441
+ },
442
+ check: {
443
+ viewBox: "0 0 24 24",
444
+ body: "<path d=\"M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5c.3.3.77.3 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94z\"/>"
445
+ },
446
+ "check-circle": {
447
+ viewBox: "0 0 24 24",
448
+ body: "<path d=\"M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-1.25 9.94 4.47-4.47a.75.75 0 0 1 1.13.98l-.07.08-5 5a.75.75 0 0 1-.98.07l-.08-.07-2.5-2.5a.75.75 0 0 1 .98-1.13l.08.07zl4.47-4.47z\"/>"
449
+ },
450
+ "chevron-down": {
451
+ viewBox: "0 0 24 24",
452
+ body: "<path d=\"M4.22 8.47c.3-.3.77-.3 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25c-.3.3-.77.3-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06\"/>"
453
+ },
454
+ "chevron-left": {
455
+ viewBox: "0 0 24 24",
456
+ body: "<path d=\"M15.53 4.22c.3.3.3.77 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25c.3-.3.77-.3 1.06 0\"/>"
457
+ },
458
+ "chevron-right": {
459
+ viewBox: "0 0 24 24",
460
+ body: "<path d=\"M8.47 4.22c-.3.3-.3.77 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25c.3-.3.3-.77 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0\"/>"
461
+ },
462
+ "chevron-up": {
463
+ viewBox: "0 0 24 24",
464
+ body: "<path d=\"M4.22 15.53c.3.3.77.3 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25c-.3.3-.3.77 0 1.06\"/>"
465
+ },
466
+ close: {
467
+ viewBox: "0 0 24 24",
468
+ body: "<path d=\"m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08z\"/>"
469
+ },
470
+ copy: {
471
+ viewBox: "0 0 24 24",
472
+ body: "<path d=\"M8.5 8.5H6.25c-.97 0-1.75.78-1.75 1.75v7.5c0 .97.78 1.75 1.75 1.75h5c.88 0 1.6-.65 1.73-1.5h1.5a3.25 3.25 0 0 1-3.23 3h-5A3.25 3.25 0 0 1 3 17.75v-7.5C3 8.45 4.46 7 6.25 7H8.5zM17.75 3C19.55 3 21 4.46 21 6.25v7.5c0 1.8-1.46 3.25-3.25 3.25h-5a3.25 3.25 0 0 1-3.25-3.25v-7.5C9.5 4.45 10.96 3 12.75 3zm-5 1.5c-.97 0-1.75.78-1.75 1.75v7.5c0 .97.78 1.75 1.75 1.75h5c.97 0 1.75-.78 1.75-1.75v-7.5c0-.97-.78-1.75-1.75-1.75z\"/>"
473
+ },
474
+ delete: {
475
+ viewBox: "0 0 24 24",
476
+ body: "<path d=\"M10 5h4a2 2 0 1 0-4 0M8.5 5a3.5 3.5 0 1 1 7 0h5.75a.75.75 0 0 1 0 1.5h-1.32l-1.17 12.11A3.75 3.75 0 0 1 15.03 22H8.97a3.75 3.75 0 0 1-3.73-3.39L4.07 6.5H2.75a.75.75 0 0 1 0-1.5zm2 4.75a.75.75 0 0 0-1.5 0v7.5a.75.75 0 0 0 1.5 0zM14.25 9c.41 0 .75.34.75.75v7.5a.75.75 0 0 1-1.5 0v-7.5c0-.41.34-.75.75-.75m-7.52 9.47a2.25 2.25 0 0 0 2.24 2.03h6.06c1.15 0 2.12-.88 2.24-2.03L18.42 6.5H5.58z\"/>"
477
+ },
478
+ download: {
479
+ viewBox: "0 0 24 24",
480
+ body: "<path d=\"M18.25 20.5a.75.75 0 1 1 0 1.5h-13a.75.75 0 1 1 0-1.5zm-6.6-18.49h.1c.38 0 .7.28.74.64l.01.1v13.7l3.72-3.73a.75.75 0 0 1 .98-.07l.08.07c.27.27.3.68.07.98l-.07.08-5 5a.75.75 0 0 1-.97.07l-.09-.07-5-5a.75.75 0 0 1 .98-1.13l.08.07L11 16.43V2.76c0-.38.28-.7.65-.75h.1z\"/>"
481
+ },
482
+ edit: {
483
+ viewBox: "0 0 24 24",
484
+ body: "<path d=\"M20.95 3.05a3.6 3.6 0 0 0-5.06 0L3.94 15c-.4.4-.7.92-.82 1.48l-1.1 4.6a.75.75 0 0 0 .9.9l4.6-1.1A3 3 0 0 0 9 20.07L20.95 8.11a3.6 3.6 0 0 0 0-5.06m-4 1.06a2.08 2.08 0 1 1 2.94 2.94l-.89.89L16.06 5zM15 6.06 17.94 9l-10 10a1.6 1.6 0 0 1-.76.43l-3.42.8.82-3.4q.1-.45.42-.77z\"/>"
485
+ },
486
+ error: {
487
+ viewBox: "0 0 24 24",
488
+ body: "<path d=\"M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m0 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2M12 7c.37 0 .69.28.74.65v4.6a.75.75 0 0 1-1.48.1l-.01-.1v-4.5c0-.41.33-.75.74-.75\"/>"
489
+ },
490
+ "external-link": {
491
+ viewBox: "0 0 24 24",
492
+ body: "<path d=\"M6.25 4.5c-.97 0-1.75.78-1.75 1.75v11.5c0 .97.78 1.75 1.75 1.75h11.5c.97 0 1.75-.78 1.75-1.75v-4a.75.75 0 0 1 1.5 0v4c0 1.8-1.46 3.25-3.25 3.25H6.25A3.25 3.25 0 0 1 3 17.75V6.25C3 4.45 4.46 3 6.25 3h4a.75.75 0 0 1 0 1.5zM13 3.75c0-.41.34-.75.75-.75h6.5c.41 0 .75.34.75.75v6.5a.75.75 0 0 1-1.5 0V5.56l-5.22 5.22a.75.75 0 0 1-1.06-1.06l5.22-5.22h-4.69a.75.75 0 0 1-.75-.75\"/>"
493
+ },
494
+ filter: {
495
+ viewBox: "0 0 24 24",
496
+ body: "<path d=\"M13.5 16a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5zm3-5a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1 0-1.5zm3-5a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1 0-1.5z\"/>"
497
+ },
498
+ help: {
499
+ viewBox: "0 0 24 24",
500
+ body: "<path d=\"M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m0 1.67a8.34 8.34 0 0 0 0 16.66 8.34 8.34 0 0 0 0-16.66m0 11.83a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-8.75a2.75 2.75 0 0 1 2.75 2.75c0 1.01-.3 1.57-1.05 2.36l-.17.17c-.62.62-.78.89-.78 1.47a.75.75 0 0 1-1.5 0c0-1.01.3-1.57 1.05-2.36l.17-.17c.62-.62.78-.89.78-1.47a1.25 1.25 0 0 0-2.5-.13v.13a.75.75 0 0 1-1.5 0A2.75 2.75 0 0 1 12 6.75\"/>"
501
+ },
502
+ home: {
503
+ viewBox: "0 0 24 24",
504
+ body: "<path d=\"M10.55 2.53c.84-.7 2.06-.7 2.9 0l6.75 5.7c.5.42.8 1.05.8 1.71v9.31c0 .97-.78 1.75-1.75 1.75h-3.5c-.97 0-1.75-.78-1.75-1.75v-5a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25v5c0 .97-.78 1.75-1.75 1.75h-3.5C3.78 21 3 20.22 3 19.25v-9.3c0-.67.3-1.3.8-1.73zm1.93 1.15a.75.75 0 0 0-.96 0l-6.75 5.7a.8.8 0 0 0-.27.56v9.31c0 .14.11.25.25.25h3.5q.23-.01.25-.25v-5c0-.97.78-1.75 1.75-1.75h3.5c.97 0 1.75.78 1.75 1.75v5q.02.23.25.25h3.5q.23-.01.25-.25v-9.3q0-.36-.27-.58z\"/>"
505
+ },
506
+ info: {
507
+ viewBox: "0 0 24 24",
508
+ body: "<path d=\"M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m0 7c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0v-5c0-.41.34-.75.75-.75M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2\"/>"
509
+ },
510
+ lock: {
511
+ viewBox: "0 0 24 24",
512
+ body: "<path d=\"M12 1a5 5 0 0 1 5 5v2.01c1.68.13 3 1.53 3 3.24v7.5c0 1.8-1.46 3.25-3.25 3.25h-9.5A3.25 3.25 0 0 1 4 18.75v-7.5a3.25 3.25 0 0 1 3-3.24V6a5 5 0 0 1 5-5M7.25 9.5c-.97 0-1.75.78-1.75 1.75v7.5c0 .97.78 1.75 1.75 1.75h9.5c.97 0 1.75-.78 1.75-1.75v-7.5c0-.97-.78-1.75-1.75-1.75zM12 13.75a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5M12 2.5A3.5 3.5 0 0 0 8.5 6v2h7V6A3.5 3.5 0 0 0 12 2.5\"/>"
513
+ },
514
+ menu: {
515
+ viewBox: "0 0 24 24",
516
+ body: "<path d=\"M2.75 18h18.5a.75.75 0 0 1 .1 1.5H2.75a.75.75 0 0 1-.1-1.5zh18.5zm0-6.5h18.5a.75.75 0 0 1 .1 1.5H2.75a.75.75 0 0 1-.1-1.5zh18.5zm0-6.5h18.5a.75.75 0 0 1 .1 1.5H2.75a.75.75 0 0 1-.1-1.49zh18.5z\"/>"
517
+ },
518
+ more: {
519
+ viewBox: "0 0 24 24",
520
+ body: "<path d=\"M7.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0m6 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M18 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5\"/>"
521
+ },
522
+ refresh: {
523
+ viewBox: "0 0 24 24",
524
+ body: "<path d=\"M12 4.5a7.5 7.5 0 1 0 7.42 6.4c-.07-.46.26-.9.72-.9.37 0 .7.26.76.62q.1.67.1 1.38a9 9 0 1 1-3-6.7V4.24a.75.75 0 0 1 1.5 0v3c0 .41-.34.75-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.5 7.5 0 0 0-5.1-2\"/>"
525
+ },
526
+ search: {
527
+ viewBox: "0 0 24 24",
528
+ body: "<path d=\"M16.1 17.16a8 8 0 1 1 1.06-1.06l4.62 4.62a.75.75 0 1 1-1.06 1.06zM17.5 11a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0\"/>"
529
+ },
530
+ settings: {
531
+ viewBox: "0 0 24 24",
532
+ body: "<path d=\"M12.01 2.25q1.11.01 2.18.25c.32.07.55.33.59.65l.17 1.53a1.38 1.38 0 0 0 1.92 1.11l1.4-.61c.3-.13.64-.06.85.17a10 10 0 0 1 2.2 3.8c.1.3 0 .63-.26.82l-1.25.92a1.38 1.38 0 0 0 0 2.22l1.25.92c.26.19.36.52.27.82a10 10 0 0 1-2.2 3.8.75.75 0 0 1-.85.17l-1.4-.62a1.38 1.38 0 0 0-1.93 1.12l-.17 1.52a.75.75 0 0 1-.58.65 9.5 9.5 0 0 1-4.4 0 .75.75 0 0 1-.57-.65l-.17-1.52a1.38 1.38 0 0 0-1.93-1.11l-1.4.62a.75.75 0 0 1-.85-.18 10 10 0 0 1-2.2-3.8c-.1-.3 0-.63.26-.82l1.25-.92a1.38 1.38 0 0 0 0-2.22l-1.24-.92a.75.75 0 0 1-.28-.82 10 10 0 0 1 2.2-3.8c.23-.23.57-.3.86-.17l1.4.62c.4.17.86.15 1.25-.08.38-.22.63-.6.68-1.04l.17-1.53a.75.75 0 0 1 .58-.65q1.08-.24 2.2-.25m0 1.5q-.67 0-1.35.12l-.11.97a2.9 2.9 0 0 1-4.03 2.33l-.9-.4A8 8 0 0 0 4.29 9.1l.8.59a2.88 2.88 0 0 1 0 4.64l-.8.59a8 8 0 0 0 1.35 2.32l.9-.4a2.88 2.88 0 0 1 4.02 2.32l.1.99q1.35.22 2.7 0l.1-.99a2.88 2.88 0 0 1 4.02-2.32l.9.4a8 8 0 0 0 1.35-2.32l-.8-.59a2.88 2.88 0 0 1 0-4.64l.8-.59a8 8 0 0 0-1.35-2.32l-.9.4q-.55.24-1.15.24c-1.47 0-2.7-1.1-2.86-2.57l-.11-.97q-.68-.11-1.34-.12M12 8.25a3.75 3.75 0 1 1 0 7.5 3.75 3.75 0 0 1 0-7.5m0 1.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5\"/>"
533
+ },
534
+ "sort-ascending": {
535
+ viewBox: "0 0 24 24",
536
+ body: "<path d=\"m6.72 8.71 4.5-4.49a.75.75 0 0 1 .97-.07l.08.07 4.5 4.5a.75.75 0 0 1-.97 1.13l-.08-.07-3.22-3.22v12.7c0 .37-.28.69-.65.74h-.1a.75.75 0 0 1-.75-.64V6.56L7.78 9.78a.75.75 0 0 1-.98.07l-.08-.07a.75.75 0 0 1-.07-.98zl4.5-4.49z\"/>"
537
+ },
538
+ "sort-descending": {
539
+ viewBox: "0 0 24 24",
540
+ body: "<path d=\"M11.65 4h.1c.38 0 .7.28.74.65l.01.1v12.7l3.22-3.23c.27-.26.68-.29.98-.07l.08.07c.27.27.3.69.07.98l-.07.09-4.5 4.5a.75.75 0 0 1-.97.07l-.09-.07-4.5-4.5a.75.75 0 0 1 .98-1.14l.08.07L11 17.44V4.75c0-.38.28-.7.65-.74l.1-.01z\"/>"
541
+ },
542
+ upload: {
543
+ viewBox: "0 0 24 24",
544
+ body: "<path d=\"M18.25 3.51a.75.75 0 1 0 0-1.5h-13a.75.75 0 1 0 0 1.5zM11.65 22h.1c.38 0 .7-.28.74-.64l.01-.1V7.56l3.72 3.72c.27.27.68.29.98.07l.08-.07a.75.75 0 0 0 .07-.98l-.07-.08-5-5a.75.75 0 0 0-.97-.07l-.09.07-5 5a.75.75 0 0 0 .98 1.13l.08-.07L11 7.58v13.67c0 .38.28.7.65.75\"/>"
545
+ },
546
+ user: {
547
+ viewBox: "0 0 24 24",
548
+ body: "<path d=\"M17.75 14C19 14 20 15 20 16.25v.57c0 .9-.32 1.76-.9 2.44Q16.74 22.01 12 22q-4.74.01-7.1-2.74a3.8 3.8 0 0 1-.9-2.43v-.58C4 15 5.01 14 6.25 14zm0 1.5H6.25a.75.75 0 0 0-.75.75v.58c0 .53.2 1.05.54 1.46C7.3 19.76 9.26 20.5 12 20.5q4.09 0 5.96-2.21c.35-.41.54-.93.54-1.47v-.57a.75.75 0 0 0-.75-.75M12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10m0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7\"/>"
549
+ },
550
+ view: {
551
+ viewBox: "0 0 24 24",
552
+ body: "<path d=\"M12 9a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 1.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0-5a10 10 0 0 1 9.7 7.56.75.75 0 1 1-1.45.37 8.5 8.5 0 0 0-16.5 0 .75.75 0 0 1-1.45-.36A10 10 0 0 1 12 5.5\"/>"
553
+ },
554
+ warning: {
555
+ viewBox: "0 0 24 24",
556
+ body: "<path d=\"M9.14 3.7a3.25 3.25 0 0 1 5.72 0l6.74 12.5a3.25 3.25 0 0 1-2.86 4.8H5.25a3.25 3.25 0 0 1-2.86-4.8zm4.4.72a1.75 1.75 0 0 0-3.08 0L3.7 16.92a1.75 1.75 0 0 0 1.54 2.58h13.5a1.75 1.75 0 0 0 1.53-2.58zM12 15a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-7.5c.41 0 .75.34.75.75v4.5a.75.75 0 0 1-1.5 0v-4.5c0-.41.34-.75.75-.75\"/>"
557
+ }
558
+ },
559
+ carbon: {
560
+ add: {
561
+ viewBox: "0 0 32 32",
562
+ body: "<path d=\"M17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z\"/>"
563
+ },
564
+ "arrow-left": {
565
+ viewBox: "0 0 32 32",
566
+ body: "<path d=\"M14 26 15.41 24.59 7.83 17 28 17 28 15 7.83 15 15.41 7.41 14 6 4 16 14 26z\"/>"
567
+ },
568
+ "arrow-right": {
569
+ viewBox: "0 0 32 32",
570
+ body: "<path d=\"M18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z\"/>"
571
+ },
572
+ calendar: {
573
+ viewBox: "0 0 32 32",
574
+ body: "<path d=\"M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z\"/>"
575
+ },
576
+ check: {
577
+ viewBox: "0 0 32 32",
578
+ body: "<path d=\"M13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z\"/>"
579
+ },
580
+ "check-circle": {
581
+ viewBox: "0 0 32 32",
582
+ body: "<path d=\"M14 21.414 9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z\"/><path d=\"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"/>"
583
+ },
584
+ "chevron-down": {
585
+ viewBox: "0 0 32 32",
586
+ body: "<path d=\"M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z\"/>"
587
+ },
588
+ "chevron-left": {
589
+ viewBox: "0 0 32 32",
590
+ body: "<path d=\"M10 16 20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z\"/>"
591
+ },
592
+ "chevron-right": {
593
+ viewBox: "0 0 32 32",
594
+ body: "<path d=\"M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z\"/>"
595
+ },
596
+ "chevron-up": {
597
+ viewBox: "0 0 32 32",
598
+ body: "<path d=\"M16 10 26 20 24.6 21.4 16 12.8 7.4 21.4 6 20z\"/>"
599
+ },
600
+ close: {
601
+ viewBox: "0 0 32 32",
602
+ body: "<path d=\"M17.4141 16 24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z\"/>"
603
+ },
604
+ copy: {
605
+ viewBox: "0 0 32 32",
606
+ body: "<path d=\"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z\"/><path d=\"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z\"/>"
607
+ },
608
+ delete: {
609
+ viewBox: "0 0 32 32",
610
+ body: "<path d=\"M12 12H14V24H12z\"/><path d=\"M18 12H20V24H18z\"/><path d=\"M4,6V8H6V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V8h2V6ZM8,28V8H24V28Z\"/><path d=\"M12 2H20V4H12z\"/>"
611
+ },
612
+ download: {
613
+ viewBox: "0 0 32 32",
614
+ body: "<path d=\"M26,24v4H6V24H4v4H4a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2h0V24Z\"/><path d=\"M26 14 24.59 12.59 17 20.17 17 2 15 2 15 20.17 7.41 12.59 6 14 16 24 26 14z\"/>"
615
+ },
616
+ edit: {
617
+ viewBox: "0 0 32 32",
618
+ body: "<path d=\"M2 26H30V28H2z\"/><path d=\"M25.4,9c0.8-0.8,0.8-2,0-2.8c0,0,0,0,0,0l-3.6-3.6c-0.8-0.8-2-0.8-2.8,0c0,0,0,0,0,0l-15,15V24h6.4L25.4,9z M20.4,4L24,7.6 l-3,3L17.4,7L20.4,4z M6,22v-3.6l10-10l3.6,3.6l-10,10H6z\"/>"
619
+ },
620
+ error: {
621
+ viewBox: "0 0 32 32",
622
+ body: "<path d=\"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z\"/>"
623
+ },
624
+ "external-link": {
625
+ viewBox: "0 0 32 32",
626
+ body: "<path d=\"M26,28H6a2.0027,2.0027,0,0,1-2-2V6A2.0027,2.0027,0,0,1,6,4H16V6H6V26H26V16h2V26A2.0027,2.0027,0,0,1,26,28Z\"/><path d=\"M20 2 20 4 26.586 4 18 12.586 19.414 14 28 5.414 28 12 30 12 30 2 20 2z\"/>"
627
+ },
628
+ filter: {
629
+ viewBox: "0 0 32 32",
630
+ body: "<path d=\"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z\"/>"
631
+ },
632
+ help: {
633
+ viewBox: "0 0 32 32",
634
+ body: "<path d=\"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"/><circle cx=\"16\" cy=\"23.5\" r=\"1.5\"/><path d=\"M17,8H15.5A4.49,4.49,0,0,0,11,12.5V13h2v-.5A2.5,2.5,0,0,1,15.5,10H17a2.5,2.5,0,0,1,0,5H15v4.5h2V17a4.5,4.5,0,0,0,0-9Z\"/>"
635
+ },
636
+ home: {
637
+ viewBox: "0 0 32 32",
638
+ body: "<path d=\"M16.6123,2.2138a1.01,1.01,0,0,0-1.2427,0L1,13.4194l1.2427,1.5717L4,13.6209V26a2.0041,2.0041,0,0,0,2,2H26a2.0037,2.0037,0,0,0,2-2V13.63L29.7573,15,31,13.4282ZM18,26H14V18h4Zm2,0V18a2.0023,2.0023,0,0,0-2-2H14a2.002,2.002,0,0,0-2,2v8H6V12.0615l10-7.79,10,7.8005V26Z\"/>"
639
+ },
640
+ info: {
641
+ viewBox: "0 0 32 32",
642
+ body: "<path d=\"M17 22 17 14 13 14 13 16 15 16 15 22 12 22 12 24 20 24 20 22 17 22z\"/><path d=\"M16,8a1.5,1.5,0,1,0,1.5,1.5A1.5,1.5,0,0,0,16,8Z\"/><path d=\"M16,30A14,14,0,1,1,30,16,14,14,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12,12,0,0,0,16,4Z\"/>"
643
+ },
644
+ lock: {
645
+ viewBox: "0 0 32 32",
646
+ body: "<path d=\"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z\"/>"
647
+ },
648
+ menu: {
649
+ viewBox: "0 0 32 32",
650
+ body: "<path d=\"M4 6H28V8H4z\"/><path d=\"M4 24H28V26H4z\"/><path d=\"M4 12H28V14H4z\"/><path d=\"M4 18H28V20H4z\"/>"
651
+ },
652
+ more: {
653
+ viewBox: "0 0 32 32",
654
+ body: "<circle cx=\"8\" cy=\"16\" r=\"2\"/><circle cx=\"16\" cy=\"16\" r=\"2\"/><circle cx=\"24\" cy=\"16\" r=\"2\"/>"
655
+ },
656
+ refresh: {
657
+ viewBox: "0 0 32 32",
658
+ body: "<path d=\"M12,10H6.78A11,11,0,0,1,27,16h2A13,13,0,0,0,6,7.68V4H4v8h8Z\"/><path d=\"M20,22h5.22A11,11,0,0,1,5,16H3a13,13,0,0,0,23,8.32V28h2V20H20Z\"/>"
659
+ },
660
+ search: {
661
+ viewBox: "0 0 32 32",
662
+ body: "<path d=\"M29,27.5859l-7.5521-7.5521a11.0177,11.0177,0,1,0-1.4141,1.4141L27.5859,29ZM4,13a9,9,0,1,1,9,9A9.01,9.01,0,0,1,4,13Z\"/>"
663
+ },
664
+ settings: {
665
+ viewBox: "0 0 32 32",
666
+ body: "<path d=\"M27,16.76c0-.25,0-.5,0-.76s0-.51,0-.77l1.92-1.68A2,2,0,0,0,29.3,11L26.94,7a2,2,0,0,0-1.73-1,2,2,0,0,0-.64.1l-2.43.82a11.35,11.35,0,0,0-1.31-.75l-.51-2.52a2,2,0,0,0-2-1.61H13.64a2,2,0,0,0-2,1.61l-.51,2.52a11.48,11.48,0,0,0-1.32.75L7.43,6.06A2,2,0,0,0,6.79,6,2,2,0,0,0,5.06,7L2.7,11a2,2,0,0,0,.41,2.51L5,15.24c0,.25,0,.5,0,.76s0,.51,0,.77L3.11,18.45A2,2,0,0,0,2.7,21L5.06,25a2,2,0,0,0,1.73,1,2,2,0,0,0,.64-.1l2.43-.82a11.35,11.35,0,0,0,1.31.75l.51,2.52a2,2,0,0,0,2,1.61h4.72a2,2,0,0,0,2-1.61l.51-2.52a11.48,11.48,0,0,0,1.32-.75l2.42.82a2,2,0,0,0,.64.1,2,2,0,0,0,1.73-1L29.3,21a2,2,0,0,0-.41-2.51ZM25.21,24l-3.43-1.16a8.86,8.86,0,0,1-2.71,1.57L18.36,28H13.64l-.71-3.55a9.36,9.36,0,0,1-2.7-1.57L6.79,24,4.43,20l2.72-2.4a8.9,8.9,0,0,1,0-3.13L4.43,12,6.79,8l3.43,1.16a8.86,8.86,0,0,1,2.71-1.57L13.64,4h4.72l.71,3.55a9.36,9.36,0,0,1,2.7,1.57L25.21,8,27.57,12l-2.72,2.4a8.9,8.9,0,0,1,0,3.13L27.57,20Z\"/><path d=\"M16,22a6,6,0,1,1,6-6A5.94,5.94,0,0,1,16,22Zm0-10a3.91,3.91,0,0,0-4,4,3.91,3.91,0,0,0,4,4,3.91,3.91,0,0,0,4-4A3.91,3.91,0,0,0,16,12Z\"/>"
667
+ },
668
+ "sort-ascending": {
669
+ viewBox: "0 0 32 32",
670
+ body: "<path d=\"M18 22 19.414 20.586 23 24.172 23 4 25 4 25 24.172 28.586 20.586 30 22 24 28 18 22z\"/><path d=\"M2 18H16V20H2z\"/><path d=\"M6 12H16V14H6z\"/><path d=\"M10 6H16V8H10z\"/>"
671
+ },
672
+ "sort-descending": {
673
+ viewBox: "0 0 32 32",
674
+ body: "<path d=\"M18 22 19.414 20.586 23 24.172 23 4 25 4 25 24.172 28.586 20.586 30 22 24 28 18 22z\"/><path d=\"M2 6H16V8H2z\"/><path d=\"M6 12H16V14H6z\"/><path d=\"M10 18H16V20H10z\"/>"
675
+ },
676
+ upload: {
677
+ viewBox: "0 0 32 32",
678
+ body: "<path d=\"M6 18 7.41 19.41 15 11.83 15 30 17 30 17 11.83 24.59 19.41 26 18 16 8 6 18z\"/><path d=\"M6,8V4H26V8h2V4a2,2,0,0,0-2-2H6A2,2,0,0,0,4,4V8Z\"/>"
679
+ },
680
+ user: {
681
+ viewBox: "0 0 32 32",
682
+ body: "<path d=\"M16,4a5,5,0,1,1-5,5,5,5,0,0,1,5-5m0-2a7,7,0,1,0,7,7A7,7,0,0,0,16,2Z\"/><path d=\"M26,30H24V25a5,5,0,0,0-5-5H13a5,5,0,0,0-5,5v5H6V25a7,7,0,0,1,7-7h6a7,7,0,0,1,7,7Z\"/>"
683
+ },
684
+ view: {
685
+ viewBox: "0 0 32 32",
686
+ body: "<path d=\"M30.94,15.66A16.69,16.69,0,0,0,16,5,16.69,16.69,0,0,0,1.06,15.66a1,1,0,0,0,0,.68A16.69,16.69,0,0,0,16,27,16.69,16.69,0,0,0,30.94,16.34,1,1,0,0,0,30.94,15.66ZM16,25c-5.3,0-10.9-3.93-12.93-9C5.1,10.93,10.7,7,16,7s10.9,3.93,12.93,9C26.9,21.07,21.3,25,16,25Z\"/><path d=\"M16,10a6,6,0,1,0,6,6A6,6,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z\"/>"
687
+ },
688
+ warning: {
689
+ viewBox: "0 0 32 32",
690
+ body: "<path d=\"M16,23a1.5,1.5,0,1,0,1.5,1.5A1.5,1.5,0,0,0,16,23Z\"/><path d=\"M15 12H17V21H15z\"/><path d=\"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z\"/>"
691
+ }
692
+ },
693
+ lucide: {
694
+ add: {
695
+ viewBox: "0 0 24 24",
696
+ body: "<path d=\"M5 12h14\" /><path d=\"M12 5v14\" />"
697
+ },
698
+ "arrow-left": {
699
+ viewBox: "0 0 24 24",
700
+ body: "<path d=\"m12 19-7-7 7-7\" /><path d=\"M19 12H5\" />"
701
+ },
702
+ "arrow-right": {
703
+ viewBox: "0 0 24 24",
704
+ body: "<path d=\"M5 12h14\" /><path d=\"m12 5 7 7-7 7\" />"
705
+ },
706
+ calendar: {
707
+ viewBox: "0 0 24 24",
708
+ body: "<path d=\"M8 2v3\" /><path d=\"M16 2v3\" /><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" /><path d=\"M3 9h18\" />"
709
+ },
710
+ check: {
711
+ viewBox: "0 0 24 24",
712
+ body: "<path d=\"M20 6 9 17l-5-5\" />"
713
+ },
714
+ "check-circle": {
715
+ viewBox: "0 0 24 24",
716
+ body: "<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m16 9-5.5 5.5L8 12\" />"
717
+ },
718
+ "chevron-down": {
719
+ viewBox: "0 0 24 24",
720
+ body: "<path d=\"m6 9 6 6 6-6\" />"
721
+ },
722
+ "chevron-left": {
723
+ viewBox: "0 0 24 24",
724
+ body: "<path d=\"m15 18-6-6 6-6\" />"
725
+ },
726
+ "chevron-right": {
727
+ viewBox: "0 0 24 24",
728
+ body: "<path d=\"m9 18 6-6-6-6\" />"
729
+ },
730
+ "chevron-up": {
731
+ viewBox: "0 0 24 24",
732
+ body: "<path d=\"m18 15-6-6-6 6\" />"
733
+ },
734
+ close: {
735
+ viewBox: "0 0 24 24",
736
+ body: "<path d=\"M18 6 6 18\" /><path d=\"m6 6 12 12\" />"
737
+ },
738
+ copy: {
739
+ viewBox: "0 0 24 24",
740
+ body: "<rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" /><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />"
741
+ },
742
+ delete: {
743
+ viewBox: "0 0 24 24",
744
+ body: "<path d=\"M10 11v6\" /><path d=\"M14 11v6\" /><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\" /><path d=\"M3 6h18\" /><path d=\"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\" />"
745
+ },
746
+ download: {
747
+ viewBox: "0 0 24 24",
748
+ body: "<path d=\"M12 15V3\" /><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\" /><path d=\"m7 10 5 5 5-5\" />"
749
+ },
750
+ edit: {
751
+ viewBox: "0 0 24 24",
752
+ body: "<path d=\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\" /><path d=\"m15 5 4 4\" />"
753
+ },
754
+ error: {
755
+ viewBox: "0 0 24 24",
756
+ body: "<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m15 9-6 6\" /><path d=\"m9 9 6 6\" />"
757
+ },
758
+ "external-link": {
759
+ viewBox: "0 0 24 24",
760
+ body: "<path d=\"M15 3h6v6\" /><path d=\"M10 14 21 3\" /><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" />"
761
+ },
762
+ filter: {
763
+ viewBox: "0 0 24 24",
764
+ body: "<path d=\"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z\" />"
765
+ },
766
+ help: {
767
+ viewBox: "0 0 24 24",
768
+ body: "<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\" /><path d=\"M12 17h.01\" />"
769
+ },
770
+ home: {
771
+ viewBox: "0 0 24 24",
772
+ body: "<path d=\"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\" /><path d=\"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" />"
773
+ },
774
+ info: {
775
+ viewBox: "0 0 24 24",
776
+ body: "<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M12 16v-4\" /><path d=\"M12 8h.01\" />"
777
+ },
778
+ lock: {
779
+ viewBox: "0 0 24 24",
780
+ body: "<rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\" /><path d=\"M7 11V7a5 5 0 0 1 10 0v4\" />"
781
+ },
782
+ menu: {
783
+ viewBox: "0 0 24 24",
784
+ body: "<path d=\"M4 5h16\" /><path d=\"M4 12h16\" /><path d=\"M4 19h16\" />"
785
+ },
786
+ more: {
787
+ viewBox: "0 0 24 24",
788
+ body: "<circle cx=\"12\" cy=\"12\" r=\"1\" /><circle cx=\"19\" cy=\"12\" r=\"1\" /><circle cx=\"5\" cy=\"12\" r=\"1\" />"
789
+ },
790
+ refresh: {
791
+ viewBox: "0 0 24 24",
792
+ body: "<path d=\"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\" /><path d=\"M21 3v5h-5\" /><path d=\"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\" /><path d=\"M8 16H3v5\" />"
793
+ },
794
+ search: {
795
+ viewBox: "0 0 24 24",
796
+ body: "<path d=\"m21 21-4.34-4.34\" /><circle cx=\"11\" cy=\"11\" r=\"8\" />"
797
+ },
798
+ settings: {
799
+ viewBox: "0 0 24 24",
800
+ body: "<path d=\"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915\" /><circle cx=\"12\" cy=\"12\" r=\"3\" />"
801
+ },
802
+ "sort-ascending": {
803
+ viewBox: "0 0 24 24",
804
+ body: "<path d=\"m3 8 4-4 4 4\" /><path d=\"M7 4v16\" /><path d=\"M11 12h4\" /><path d=\"M11 16h7\" /><path d=\"M11 20h10\" />"
805
+ },
806
+ "sort-descending": {
807
+ viewBox: "0 0 24 24",
808
+ body: "<path d=\"m3 16 4 4 4-4\" /><path d=\"M7 20V4\" /><path d=\"M11 4h10\" /><path d=\"M11 8h7\" /><path d=\"M11 12h4\" />"
809
+ },
810
+ upload: {
811
+ viewBox: "0 0 24 24",
812
+ body: "<path d=\"M12 3v12\" /><path d=\"m17 8-5-5-5 5\" /><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\" />"
813
+ },
814
+ user: {
815
+ viewBox: "0 0 24 24",
816
+ body: "<path d=\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\" /><circle cx=\"12\" cy=\"7\" r=\"4\" />"
817
+ },
818
+ view: {
819
+ viewBox: "0 0 24 24",
820
+ body: "<path d=\"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\" /><circle cx=\"12\" cy=\"12\" r=\"3\" />"
821
+ },
822
+ warning: {
823
+ viewBox: "0 0 24 24",
824
+ body: "<path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" /><path d=\"M12 9v4\" /><path d=\"M12 17h.01\" />"
825
+ }
826
+ }
827
+ }, F = new Map(f.map((e) => [e.name, e])), I = /* @__PURE__ */ new Set([
828
+ "material",
829
+ "fluent",
830
+ "carbon"
831
+ ]), L = Object.keys(P.lucide).sort(), R = !0;
832
+ try {
833
+ R = process.env.NODE_ENV !== "production";
834
+ } catch {}
835
+ function z(e) {
836
+ let t = F.get(e)?.designSystem;
837
+ return I.has(t) ? t : "lucide";
838
+ }
839
+ function B(e, t, n = P) {
840
+ return n[t]?.[e] ? [n[t][e], t] : n.lucide?.[e] ? [n.lucide[e], "lucide"] : [null, null];
841
+ }
842
+ var V = /* @__PURE__ */ new Map(), H = /<script|\son\w+\s*=|\shref\s*=|<foreignObject/i, ee = (e, t) => {
843
+ let n = e.glyphs;
844
+ if (n[t]) return [n[t], t];
845
+ if (n.lucide) return [n.lucide, "lucide"];
846
+ let r = Object.keys(N).find((e) => n[e]);
847
+ return r ? [n[r], r] : [null, null];
848
+ };
849
+ function te(...e) {
850
+ let t = [];
851
+ for (let n of e.flat()) {
852
+ if (!(n && typeof n.name == "string" && n.glyphs && Object.keys(n.glyphs).length > 0 && Object.keys(n.glyphs).every((e) => N[e]))) throw Error(`@ux-builder/ui registerIcons: an icon is { name, glyphs: { ${Object.keys(N).join(" | ")}: { viewBox, body } } }`);
853
+ for (let [e, t] of Object.entries(n.glyphs)) if (typeof t?.viewBox != "string" || typeof t?.body != "string" || H.test(t.body)) throw Error(`@ux-builder/ui registerIcons: ${n.name} (${e}) needs a viewBox and markup without scripts, handlers or links`);
854
+ V.set(n.name, n), t.push(n.name);
855
+ }
856
+ return t;
857
+ }
858
+ var ne = (e) => e.replace(/-([a-z])/g, (e, t) => t.toUpperCase()), U = Object.fromEntries(Object.entries(N).map(([e, t]) => [e, Object.fromEntries(Object.entries(t.svg).map(([e, t]) => [ne(e), t]))])), W = typeof window > "u" ? r : a;
859
+ function G({ name: e, icon: t, set: r, size: i = "1em", label: a, className: o = "", ...l }) {
860
+ let d = n(x), f = s(null), [p, m] = c(null), [h, g] = c(null);
861
+ W(() => {
862
+ if (r || !f.current) return;
863
+ let e = getComputedStyle(f.current).getPropertyValue("--piq-icon-set").trim().replace(/^["']|["']$/g, "");
864
+ g(P[e] ? e : null), d?.theme || m(f.current.closest?.("[data-theme]")?.getAttribute("data-theme") ?? null);
865
+ });
866
+ let _ = r ?? h ?? z(d?.theme ?? p), v = t ?? (P.lucide[e] ? null : V.get(e)), [y, b] = v ? ee(v, _) : B(e, _);
867
+ if (!y) return R && console.warn(`@ux-builder/ui Icon: no icon "${e}". Shared names: ${L.join(", ")}. Every Lucide icon is in @ux-builder/ui/icons: import it (e.g. import { iconPin } from "@ux-builder/ui/icons") and pass icon={iconPin}, or registerIcons(iconPin) once.`), null;
868
+ let S = a ? {
869
+ role: "img",
870
+ "aria-label": a
871
+ } : {
872
+ "aria-hidden": "true",
873
+ focusable: "false"
874
+ };
875
+ return /* @__PURE__ */ u("svg", {
876
+ ref: f,
877
+ xmlns: "http://www.w3.org/2000/svg",
878
+ viewBox: y.viewBox,
879
+ width: i,
880
+ height: i,
881
+ className: `piq-icon${o ? ` ${o}` : ""}`,
882
+ "data-icon": v?.name ?? e,
883
+ "data-icon-set": b,
884
+ ...U[b],
885
+ ...S,
886
+ ...l,
887
+ dangerouslySetInnerHTML: { __html: y.body }
888
+ });
889
+ }
890
+ //#endregion
891
+ //#region src/widgets/Loading.jsx
892
+ var re = (e, t, n) => Math.min(n, Math.max(t, e)), K = (e) => typeof e == "number" ? `${e}px` : e;
893
+ function ie({ label: e, value: t, max: n = 100, valueText: r, showValue: a = !1, hideLabel: o = !1, className: s = "", ...c }) {
894
+ let l = i(), f = n > 0 ? n : 100, p = typeof t == "number" && Number.isFinite(t), m = p ? re(t, 0, f) : null, h = p ? Math.round(m / f * 100) : null;
895
+ return /* @__PURE__ */ d("div", {
896
+ className: `piq-progress${p ? "" : " piq-progress--indeterminate"}${s ? ` ${s}` : ""}`,
897
+ ...c,
898
+ children: [/* @__PURE__ */ d("div", {
899
+ className: o ? "piq-visually-hidden" : "piq-progress__head",
900
+ children: [/* @__PURE__ */ u("span", {
901
+ id: l,
902
+ className: "piq-progress__label",
903
+ children: e
904
+ }), p && a && /* @__PURE__ */ u("span", {
905
+ className: "piq-progress__value",
906
+ "aria-hidden": "true",
907
+ children: r ?? `${h}%`
908
+ })]
909
+ }), /* @__PURE__ */ u("div", {
910
+ className: "piq-progress__track",
911
+ role: "progressbar",
912
+ "aria-labelledby": l,
913
+ "aria-valuemin": 0,
914
+ "aria-valuemax": f,
915
+ "aria-valuenow": p ? m : void 0,
916
+ "aria-valuetext": p && r ? r : void 0,
917
+ children: /* @__PURE__ */ u("div", {
918
+ className: "piq-progress__fill",
919
+ style: p ? { width: `${h}%` } : void 0
920
+ })
921
+ })]
922
+ });
923
+ }
924
+ function q() {
925
+ return /* @__PURE__ */ d("svg", {
926
+ className: "piq-spinner__glyph",
927
+ viewBox: "0 0 24 24",
928
+ "aria-hidden": "true",
929
+ focusable: "false",
930
+ children: [/* @__PURE__ */ u("circle", {
931
+ className: "piq-spinner__track",
932
+ cx: "12",
933
+ cy: "12",
934
+ r: "10",
935
+ fill: "none"
936
+ }), /* @__PURE__ */ u("circle", {
937
+ className: "piq-spinner__arc",
938
+ cx: "12",
939
+ cy: "12",
940
+ r: "10",
941
+ fill: "none",
942
+ pathLength: "100"
943
+ })]
944
+ });
945
+ }
946
+ function ae({ size: e = "md", label: t = "Loading", showLabel: n = !1, className: r = "", ...i }) {
947
+ return /* @__PURE__ */ d("span", {
948
+ className: `piq-spinner piq-spinner--${e}${r ? ` ${r}` : ""}`,
949
+ role: "status",
950
+ ...i,
951
+ children: [/* @__PURE__ */ u(q, {}), /* @__PURE__ */ u("span", {
952
+ className: n ? "piq-spinner__label" : "piq-visually-hidden",
953
+ children: t
954
+ })]
955
+ });
956
+ }
957
+ function oe({ variant: e = "text", lines: t = 1, width: n, height: r, className: i = "", style: a, ...o }) {
958
+ let s = `piq-skeleton piq-skeleton--${e}${i ? ` ${i}` : ""}`;
959
+ if (e === "text") {
960
+ let e = Math.max(1, Math.floor(t));
961
+ return /* @__PURE__ */ u("span", {
962
+ className: s,
963
+ "aria-hidden": "true",
964
+ style: {
965
+ width: K(n),
966
+ ...a
967
+ },
968
+ ...o,
969
+ children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ u("span", { className: "piq-skeleton__line" }, t))
970
+ });
971
+ }
972
+ let c = e === "circle" ? {
973
+ width: K(n ?? r ?? 40),
974
+ height: K(r ?? n ?? 40)
975
+ } : {
976
+ width: K(n),
977
+ height: K(r)
978
+ };
979
+ return /* @__PURE__ */ u("span", {
980
+ className: s,
981
+ "aria-hidden": "true",
982
+ style: {
983
+ ...c,
984
+ ...a
985
+ },
986
+ ...o
987
+ });
988
+ }
989
+ //#endregion
990
+ //#region src/widgets/Button.jsx
991
+ var se = {
992
+ primary: "",
993
+ secondary: " piq-btn--secondary",
994
+ text: " piq-btn--text"
995
+ };
996
+ function J({ variant: e = "primary", size: t, badge: n, busy: r = !1, type: i = "button", className: a = "", onClick: o, children: s, ...c }) {
997
+ let f = `piq-btn${se[e] ?? ""}${t === "sm" ? " piq-btn--sm" : ""}${r ? " piq-btn--busy" : ""}${a ? ` ${a}` : ""}`, p = /* @__PURE__ */ d(l, { children: [s, n != null && /* @__PURE__ */ u("span", {
998
+ className: "piq-btn__badge",
999
+ children: n
1000
+ })] });
1001
+ return r ? /* @__PURE__ */ d("button", {
1002
+ type: i,
1003
+ className: f,
1004
+ ...c,
1005
+ "aria-busy": "true",
1006
+ "aria-disabled": "true",
1007
+ onClick: (e) => e.preventDefault(),
1008
+ children: [/* @__PURE__ */ u("span", {
1009
+ className: "piq-btn__label",
1010
+ children: p
1011
+ }), /* @__PURE__ */ u("span", {
1012
+ className: "piq-btn__spinner",
1013
+ children: /* @__PURE__ */ u(q, {})
1014
+ })]
1015
+ }) : /* @__PURE__ */ u("button", {
1016
+ type: i,
1017
+ className: f,
1018
+ onClick: o,
1019
+ ...c,
1020
+ children: p
1021
+ });
1022
+ }
1023
+ //#endregion
1024
+ //#region src/widgets/Choice.jsx
1025
+ function ce({ label: e, className: t = "", ...n }) {
1026
+ return /* @__PURE__ */ d("label", {
1027
+ className: `piq-check${t ? ` ${t}` : ""}`,
1028
+ children: [/* @__PURE__ */ u("input", {
1029
+ type: "checkbox",
1030
+ className: "piq-check__box",
1031
+ ...n
1032
+ }), /* @__PURE__ */ u("span", { children: e })]
1033
+ });
1034
+ }
1035
+ function le({ label: e, className: t = "", ...n }) {
1036
+ return /* @__PURE__ */ d("label", {
1037
+ className: `piq-check piq-switch${t ? ` ${t}` : ""}`,
1038
+ children: [/* @__PURE__ */ u("input", {
1039
+ type: "checkbox",
1040
+ role: "switch",
1041
+ className: "piq-switch__track",
1042
+ ...n
1043
+ }), /* @__PURE__ */ u("span", { children: e })]
1044
+ });
1045
+ }
1046
+ function ue({ label: e, options: t, name: n, value: r, defaultValue: a, onChange: o, disabled: s }) {
1047
+ let c = i(), l = n ?? c;
1048
+ return /* @__PURE__ */ d("fieldset", {
1049
+ className: "piq-radios",
1050
+ disabled: s,
1051
+ children: [/* @__PURE__ */ u("legend", {
1052
+ className: "piq-field__label",
1053
+ children: e
1054
+ }), t.map((e) => /* @__PURE__ */ d("label", {
1055
+ className: "piq-check",
1056
+ children: [/* @__PURE__ */ u("input", {
1057
+ type: "radio",
1058
+ className: "piq-radio",
1059
+ name: l,
1060
+ value: e.value,
1061
+ disabled: e.disabled,
1062
+ ...r === void 0 ? { defaultChecked: a === e.value } : {
1063
+ checked: r === e.value,
1064
+ onChange: () => o?.(e.value)
1065
+ }
1066
+ }), /* @__PURE__ */ u("span", { children: e.label })]
1067
+ }, e.value))]
1068
+ });
1069
+ }
1070
+ //#endregion
1071
+ //#region src/widgets/Field.jsx
1072
+ function Y({ label: e, hint: t, error: n, id: r, className: a, children: o }) {
1073
+ let s = i(), c = r ?? s, l = t ? `${c}-hint` : void 0, f = n ? `${c}-error` : void 0, p = {
1074
+ id: c,
1075
+ "aria-invalid": n ? "true" : void 0,
1076
+ "aria-describedby": [f, l].filter(Boolean).join(" ") || void 0
1077
+ };
1078
+ return /* @__PURE__ */ d("div", {
1079
+ className: `piq-field${a ? ` ${a}` : ""}`,
1080
+ children: [
1081
+ /* @__PURE__ */ u("label", {
1082
+ className: "piq-field__label",
1083
+ htmlFor: c,
1084
+ children: e
1085
+ }),
1086
+ o(p),
1087
+ n && /* @__PURE__ */ u("span", {
1088
+ id: f,
1089
+ className: "piq-field__error",
1090
+ children: n
1091
+ }),
1092
+ t && /* @__PURE__ */ u("span", {
1093
+ id: l,
1094
+ className: "piq-field__hint",
1095
+ children: t
1096
+ })
1097
+ ]
1098
+ });
1099
+ }
1100
+ function X({ label: e, hint: t, error: n, id: r, className: i = "", ...a }) {
1101
+ return /* @__PURE__ */ u(Y, {
1102
+ label: e,
1103
+ hint: t,
1104
+ error: n,
1105
+ id: r,
1106
+ className: i,
1107
+ children: (e) => /* @__PURE__ */ u("input", {
1108
+ type: "text",
1109
+ className: "piq-field__input",
1110
+ ...e,
1111
+ ...a
1112
+ })
1113
+ });
1114
+ }
1115
+ function de({ label: e, hint: t, error: n, id: r, className: i = "", rows: a = 4, ...o }) {
1116
+ return /* @__PURE__ */ u(Y, {
1117
+ label: e,
1118
+ hint: t,
1119
+ error: n,
1120
+ id: r,
1121
+ className: i,
1122
+ children: (e) => /* @__PURE__ */ u("textarea", {
1123
+ rows: a,
1124
+ className: "piq-field__input piq-field__input--multi",
1125
+ ...e,
1126
+ ...o
1127
+ })
1128
+ });
1129
+ }
1130
+ function Z({ label: e, hint: t, error: n, id: r, className: i = "", options: a, placeholder: o, ...s }) {
1131
+ return /* @__PURE__ */ u(Y, {
1132
+ label: e,
1133
+ hint: t,
1134
+ error: n,
1135
+ id: r,
1136
+ className: i,
1137
+ children: (e) => /* @__PURE__ */ u("span", {
1138
+ className: "piq-select",
1139
+ children: /* @__PURE__ */ d("select", {
1140
+ className: "piq-field__input piq-select__input",
1141
+ ...e,
1142
+ ...s,
1143
+ children: [o && /* @__PURE__ */ u("option", {
1144
+ value: "",
1145
+ disabled: !0,
1146
+ children: o
1147
+ }), a.map((e) => /* @__PURE__ */ u("option", {
1148
+ value: e.value,
1149
+ disabled: e.disabled,
1150
+ children: e.label
1151
+ }, e.value))]
1152
+ })
1153
+ })
1154
+ });
1155
+ }
1156
+ //#endregion
1157
+ //#region src/widgets/DatePicker.jsx
1158
+ function Q({ label: e, value: t, onChange: n, min: r, max: i, hint: a, error: o, id: s, className: c }) {
1159
+ return /* @__PURE__ */ u(X, {
1160
+ type: "date",
1161
+ label: e,
1162
+ value: t ?? "",
1163
+ min: r,
1164
+ max: i,
1165
+ hint: a,
1166
+ error: o,
1167
+ id: s,
1168
+ className: c,
1169
+ onChange: (e) => n?.(e.target.value)
1170
+ });
1171
+ }
1172
+ function fe({ label: e, from: t, to: n, onChange: r, min: a, max: o, fromLabel: s = "From", toLabel: c = "To", className: l }) {
1173
+ let f = i();
1174
+ return /* @__PURE__ */ d("fieldset", {
1175
+ className: `piq-date-range${l ? ` ${l}` : ""}`,
1176
+ children: [/* @__PURE__ */ u("legend", {
1177
+ className: "piq-field__label",
1178
+ children: e
1179
+ }), /* @__PURE__ */ d("div", {
1180
+ className: "piq-date-range__fields",
1181
+ children: [/* @__PURE__ */ u(Q, {
1182
+ id: `${f}-from`,
1183
+ label: s,
1184
+ value: t,
1185
+ min: a,
1186
+ max: n || o,
1187
+ onChange: (e) => r?.({
1188
+ from: e,
1189
+ to: n
1190
+ })
1191
+ }), /* @__PURE__ */ u(Q, {
1192
+ id: `${f}-to`,
1193
+ label: c,
1194
+ value: n,
1195
+ min: t || a,
1196
+ max: o,
1197
+ onChange: (e) => r?.({
1198
+ from: t,
1199
+ to: e
1200
+ })
1201
+ })]
1202
+ })]
1203
+ });
1204
+ }
1205
+ //#endregion
1206
+ //#region src/widgets/modal.js
1207
+ function $(e, t) {
1208
+ let n = s(null), i = s(null);
1209
+ return r(() => {
1210
+ let r = n.current;
1211
+ r && (e && !r.open ? (i.current = document.activeElement, typeof r.showModal == "function" ? r.showModal() : r.setAttribute("open", ""), t?.current?.focus()) : !e && r.open && (r.close(), i.current?.focus?.()));
1212
+ }, [e, t]), r(() => () => {
1213
+ n.current?.open && n.current.close();
1214
+ }, []), n;
1215
+ }
1216
+ //#endregion
1217
+ //#region src/widgets/Dialog.jsx
1218
+ function pe({ open: e = !1, onClose: t, title: n, description: r, actions: a, closeLabel: o = "Close", initialFocus: s, role: c, className: l, children: f, ...p }) {
1219
+ let m = $(e, s), h = i(), g = i();
1220
+ return /* @__PURE__ */ d("dialog", {
1221
+ ref: m,
1222
+ role: c,
1223
+ className: `piq-dialog${l ? ` ${l}` : ""}`,
1224
+ "aria-labelledby": h,
1225
+ "aria-describedby": r ? g : void 0,
1226
+ onCancel: (e) => {
1227
+ e.preventDefault(), t?.();
1228
+ },
1229
+ ...p,
1230
+ children: [
1231
+ /* @__PURE__ */ d("div", {
1232
+ className: "piq-dialog__head",
1233
+ children: [/* @__PURE__ */ u("h2", {
1234
+ id: h,
1235
+ className: "piq-dialog__title",
1236
+ children: n
1237
+ }), t && /* @__PURE__ */ u(J, {
1238
+ variant: "text",
1239
+ className: "piq-dialog__close",
1240
+ "aria-label": o,
1241
+ onClick: () => t(),
1242
+ children: /* @__PURE__ */ u(G, { name: "close" })
1243
+ })]
1244
+ }),
1245
+ r && /* @__PURE__ */ u("p", {
1246
+ id: g,
1247
+ className: "piq-dialog__description",
1248
+ children: r
1249
+ }),
1250
+ f && /* @__PURE__ */ u("div", {
1251
+ className: "piq-dialog__body",
1252
+ children: f
1253
+ }),
1254
+ a && /* @__PURE__ */ u("div", {
1255
+ className: "piq-dialog__actions",
1256
+ children: a
1257
+ })
1258
+ ]
1259
+ });
1260
+ }
1261
+ //#endregion
1262
+ //#region src/widgets/MenuButton.jsx
1263
+ function me({ label: e, items: t = [], icon: n, variant: a = "secondary", size: o, align: l = "start", buttonLabel: f, className: p, ...m }) {
1264
+ let [h, g] = c(!1), [_, v] = c(-1), y = s(null), b = s(null), x = i(), S = t.map((e, t) => e.disabled ? -1 : t).filter((e) => e >= 0), C = (e) => {
1265
+ g(!0), v(e === "last" ? S.at(-1) : S[0]);
1266
+ }, w = (e = !0) => {
1267
+ g(!1), v(-1), e && y.current?.focus();
1268
+ }, T = (e) => v((t) => S[(S.indexOf(t) + e + S.length) % S.length]);
1269
+ r(() => {
1270
+ h && _ >= 0 && b.current?.querySelectorAll("[data-index]")[_]?.focus();
1271
+ }, [h, _]), r(() => {
1272
+ if (!h) return;
1273
+ let e = (e) => {
1274
+ !y.current?.contains(e.target) && !b.current?.contains(e.target) && w(!1);
1275
+ };
1276
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1277
+ }, [h]);
1278
+ function E(e) {
1279
+ [
1280
+ "ArrowDown",
1281
+ "Enter",
1282
+ " "
1283
+ ].includes(e.key) ? (e.preventDefault(), C("first")) : e.key === "ArrowUp" && (e.preventDefault(), C("last"));
1284
+ }
1285
+ function D(e) {
1286
+ if (e.key === "ArrowDown") e.preventDefault(), T(1);
1287
+ else if (e.key === "ArrowUp") e.preventDefault(), T(-1);
1288
+ else if (e.key === "Home") e.preventDefault(), v(S[0]);
1289
+ else if (e.key === "End") e.preventDefault(), v(S.at(-1));
1290
+ else if (e.key === "Escape") e.preventDefault(), w();
1291
+ else if (e.key === "Tab") w(!1);
1292
+ else if (e.key.length === 1 && /\S/.test(e.key)) {
1293
+ let n = S.indexOf(_), r = [...S.slice(n + 1), ...S.slice(0, n + 1)].find((n) => String(t[n].label).toLowerCase().startsWith(e.key.toLowerCase()));
1294
+ r !== void 0 && v(r);
1295
+ }
1296
+ }
1297
+ function O(e, t) {
1298
+ if (e.disabled) {
1299
+ t.preventDefault();
1300
+ return;
1301
+ }
1302
+ w(), e.onSelect?.(t);
1303
+ }
1304
+ let k = typeof e == "string" && e || f;
1305
+ return /* @__PURE__ */ d("div", {
1306
+ className: `piq-menubutton${p ? ` ${p}` : ""}`,
1307
+ "data-align": l,
1308
+ ...m,
1309
+ children: [/* @__PURE__ */ d(J, {
1310
+ ref: y,
1311
+ variant: a,
1312
+ size: o,
1313
+ "aria-haspopup": "menu",
1314
+ "aria-expanded": h,
1315
+ "aria-controls": h ? x : void 0,
1316
+ "aria-label": f,
1317
+ onClick: () => h ? w() : C("first"),
1318
+ onKeyDown: E,
1319
+ children: [
1320
+ n && /* @__PURE__ */ u(G, { name: n }),
1321
+ e,
1322
+ /* @__PURE__ */ u(G, {
1323
+ name: "chevron-down",
1324
+ className: "piq-menubutton__chevron"
1325
+ })
1326
+ ]
1327
+ }), h && /* @__PURE__ */ u("ul", {
1328
+ ref: b,
1329
+ id: x,
1330
+ role: "menu",
1331
+ "aria-label": k,
1332
+ className: "piq-menu piq-menubutton__menu",
1333
+ onKeyDown: D,
1334
+ children: t.map((e, t) => {
1335
+ let n = {
1336
+ "data-index": t,
1337
+ tabIndex: -1,
1338
+ className: `piq-menu__item${t === _ ? " is-hover" : ""}`,
1339
+ role: e.checked === void 0 ? "menuitem" : "menuitemradio",
1340
+ "aria-checked": e.checked === void 0 ? void 0 : !!e.checked,
1341
+ "aria-disabled": e.disabled || void 0,
1342
+ onClick: (t) => O(e, t),
1343
+ onMouseEnter: () => !e.disabled && v(t)
1344
+ };
1345
+ return /* @__PURE__ */ u("li", {
1346
+ role: "none",
1347
+ children: e.href ? /* @__PURE__ */ u("a", {
1348
+ href: e.href,
1349
+ ...n,
1350
+ children: e.label
1351
+ }) : /* @__PURE__ */ u("button", {
1352
+ type: "button",
1353
+ ...n,
1354
+ children: e.label
1355
+ })
1356
+ }, t);
1357
+ })
1358
+ })]
1359
+ });
1360
+ }
1361
+ //#endregion
1362
+ //#region src/widgets/Pagination.jsx
1363
+ function he({ page: e = 1, pageSize: t = 20, total: n = 0, onPageChange: r, pageSizes: i = [
1364
+ 10,
1365
+ 20,
1366
+ 50,
1367
+ 100
1368
+ ], onPageSizeChange: a, label: o = "Pagination", ofLabel: s = "of", previousLabel: c = "Previous page", nextLabel: l = "Next page", pageSizeLabel: f = "Rows per page", className: p }) {
1369
+ let m = Math.max(1, Math.ceil(n / t)), h = Math.min(Math.max(1, e), m), g = n ? (h - 1) * t + 1 : 0, _ = Math.min(n, h * t);
1370
+ return /* @__PURE__ */ d("nav", {
1371
+ "aria-label": o,
1372
+ className: `piq-pagination${p ? ` ${p}` : ""}`,
1373
+ children: [
1374
+ a && /* @__PURE__ */ u(Z, {
1375
+ label: f,
1376
+ className: "piq-pagination__size",
1377
+ value: String(t),
1378
+ options: i.map((e) => ({
1379
+ value: String(e),
1380
+ label: String(e)
1381
+ })),
1382
+ onChange: (e) => a(Number(e.target.value))
1383
+ }),
1384
+ /* @__PURE__ */ u("p", {
1385
+ className: "piq-pagination__position",
1386
+ "aria-live": "polite",
1387
+ children: `${g}–${_} ${s} ${n}`
1388
+ }),
1389
+ /* @__PURE__ */ d("div", {
1390
+ className: "piq-pagination__steps",
1391
+ children: [/* @__PURE__ */ u(J, {
1392
+ variant: "secondary",
1393
+ size: "sm",
1394
+ "aria-label": c,
1395
+ disabled: h <= 1,
1396
+ onClick: () => r?.(h - 1),
1397
+ children: /* @__PURE__ */ u(G, { name: "chevron-left" })
1398
+ }), /* @__PURE__ */ u(J, {
1399
+ variant: "secondary",
1400
+ size: "sm",
1401
+ "aria-label": l,
1402
+ disabled: h >= m,
1403
+ onClick: () => r?.(h + 1),
1404
+ children: /* @__PURE__ */ u(G, { name: "chevron-right" })
1405
+ })]
1406
+ })
1407
+ ]
1408
+ });
1409
+ }
1410
+ //#endregion
1411
+ //#region src/widgets/Sheet.jsx
1412
+ function ge({ open: e = !1, onClose: t, title: n, label: r, side: a = "start", closeLabel: o = "Close", initialFocus: s, className: c, children: l, ...f }) {
1413
+ let p = $(e, s), m = i();
1414
+ return /* @__PURE__ */ u("dialog", {
1415
+ ref: p,
1416
+ className: `piq-sheet${c ? ` ${c}` : ""}`,
1417
+ "data-side": a,
1418
+ "aria-labelledby": n ? m : void 0,
1419
+ "aria-label": n ? void 0 : r,
1420
+ onCancel: (e) => {
1421
+ e.preventDefault(), t?.();
1422
+ },
1423
+ onClick: (e) => {
1424
+ e.target === p.current && t?.();
1425
+ },
1426
+ ...f,
1427
+ children: /* @__PURE__ */ d("div", {
1428
+ className: "piq-sheet__body",
1429
+ children: [/* @__PURE__ */ d("div", {
1430
+ className: "piq-sheet__head",
1431
+ children: [n && /* @__PURE__ */ u("h2", {
1432
+ id: m,
1433
+ className: "piq-sheet__title",
1434
+ children: n
1435
+ }), /* @__PURE__ */ u(J, {
1436
+ variant: "text",
1437
+ className: "piq-sheet__close",
1438
+ "aria-label": o,
1439
+ onClick: () => t?.(),
1440
+ children: /* @__PURE__ */ u(G, { name: "close" })
1441
+ })]
1442
+ }), l]
1443
+ })
1444
+ });
1445
+ }
1446
+ //#endregion
1447
+ //#region src/widgets/Tabs.jsx
1448
+ function _e({ tabs: e = [], value: t, defaultValue: n, onChange: r, label: a, className: o, ...l }) {
1449
+ let [f, p] = c(n ?? e[0]?.id), m = t ?? f, h = i(), g = s(null);
1450
+ function _(e, n) {
1451
+ t === void 0 && p(e), e !== m && r?.(e), n && [...g.current?.querySelectorAll("[role=\"tab\"]") ?? []].find((t) => t.dataset.tab === String(e))?.focus();
1452
+ }
1453
+ function v(t) {
1454
+ let n = e.findIndex((e) => e.id === m), r = getComputedStyle(t.currentTarget).direction === "rtl", i = {
1455
+ ArrowRight: r ? -1 : 1,
1456
+ ArrowLeft: r ? 1 : -1
1457
+ }[t.key], a = null;
1458
+ i ? a = (n + i + e.length) % e.length : t.key === "Home" ? a = 0 : t.key === "End" && (a = e.length - 1), a !== null && (t.preventDefault(), _(e[a].id, !0));
1459
+ }
1460
+ return /* @__PURE__ */ d("div", {
1461
+ className: `piq-tabs${o ? ` ${o}` : ""}`,
1462
+ ...l,
1463
+ children: [/* @__PURE__ */ u("div", {
1464
+ ref: g,
1465
+ role: "tablist",
1466
+ "aria-label": a,
1467
+ className: "piq-tabs__list",
1468
+ onKeyDown: v,
1469
+ children: e.map((e) => {
1470
+ let t = e.id === m;
1471
+ return /* @__PURE__ */ d("button", {
1472
+ type: "button",
1473
+ role: "tab",
1474
+ "data-tab": e.id,
1475
+ id: `${h}-tab-${e.id}`,
1476
+ "aria-selected": t,
1477
+ "aria-controls": `${h}-panel-${e.id}`,
1478
+ tabIndex: t ? 0 : -1,
1479
+ className: "piq-tabs__tab",
1480
+ onClick: () => _(e.id),
1481
+ children: [e.label, e.count != null && /* @__PURE__ */ u("span", {
1482
+ className: "piq-tabs__count",
1483
+ children: e.count
1484
+ })]
1485
+ }, e.id);
1486
+ })
1487
+ }), e.map((e) => /* @__PURE__ */ u("div", {
1488
+ role: "tabpanel",
1489
+ id: `${h}-panel-${e.id}`,
1490
+ "aria-labelledby": `${h}-tab-${e.id}`,
1491
+ tabIndex: 0,
1492
+ hidden: e.id !== m,
1493
+ className: "piq-tabs__panel",
1494
+ children: e.panel
1495
+ }, e.id))]
1496
+ });
1497
+ }
1498
+ //#endregion
1499
+ export { p as A, te as C, M as D, O as E, b as O, B as S, j as T, oe as _, pe as a, G as b, Y as c, X as d, ce as f, ie as g, J as h, me as i, f as j, v as k, Z as l, le as m, ge as n, Q as o, ue as p, he as r, fe as s, _e as t, de as u, ae as v, x as w, z as x, L as y };
1500
+
1501
+ //# sourceMappingURL=shared-CjrUPFqv.js.map