@ux-builder/ui 0.0.0-stage → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +274 -0
- package/README.md +293 -2
- package/THIRD-PARTY-NOTICES.md +195 -0
- package/catalogue.json +19411 -0
- package/dist/icons.js +2 -0
- package/dist/index.js +537 -0
- package/dist/index.js.map +1 -0
- package/dist/patterns.css +900 -0
- package/dist/patterns.js +4235 -0
- package/dist/patterns.js.map +1 -0
- package/dist/shared-Bom_GJww.js +18858 -0
- package/dist/shared-Bom_GJww.js.map +1 -0
- package/dist/shared-DspdvNFe.js +1488 -0
- package/dist/shared-DspdvNFe.js.map +1 -0
- package/dist/ui.css +997 -0
- package/licenses/carbon.LICENSE +201 -0
- package/licenses/fluent.LICENSE +24 -0
- package/licenses/lucide.LICENSE +43 -0
- package/licenses/material.LICENSE +202 -0
- package/licenses/vendored.json +214 -0
- package/lint/core.mjs +158 -0
- package/lint/eslint.mjs +128 -0
- package/lint/stylelint.mjs +35 -0
- package/package.json +104 -4
- package/skill/ux-builder-ui/SKILL.md +279 -0
|
@@ -0,0 +1,1488 @@
|
|
|
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
|
+
], p = [
|
|
70
|
+
{
|
|
71
|
+
name: "databricks",
|
|
72
|
+
title: "Databricks",
|
|
73
|
+
appearances: ["light", "dark"]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "plain",
|
|
77
|
+
title: "Plain",
|
|
78
|
+
appearances: ["light"]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "praxis-v2",
|
|
82
|
+
title: "Praxis V2",
|
|
83
|
+
appearances: ["light", "dark"]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: "praxis",
|
|
87
|
+
title: "Praxis",
|
|
88
|
+
appearances: ["dark", "light"]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: "synaptiq",
|
|
92
|
+
title: "Synaptiq",
|
|
93
|
+
appearances: ["light", "dark"]
|
|
94
|
+
}
|
|
95
|
+
], 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 = {
|
|
96
|
+
svg: "image/svg+xml",
|
|
97
|
+
png: "image/png",
|
|
98
|
+
webp: "image/webp",
|
|
99
|
+
ico: "image/x-icon"
|
|
100
|
+
};
|
|
101
|
+
function _(e) {
|
|
102
|
+
if (typeof window > "u" || !e) return null;
|
|
103
|
+
let t = getComputedStyle(e).getPropertyValue("--piq-brand-favicon").trim();
|
|
104
|
+
return /url\(\s*["']?([^"')]+)["']?\s*\)/.exec(t)?.[1] ?? null;
|
|
105
|
+
}
|
|
106
|
+
function v(e = typeof document > "u" ? null : document.documentElement) {
|
|
107
|
+
if (typeof document > "u" || !e) return null;
|
|
108
|
+
let t = _(e), n = document.head.querySelector(`link[${h}]`);
|
|
109
|
+
if (!t) return n?.remove(), null;
|
|
110
|
+
n || (n = document.createElement("link"), n.rel = "icon", n.setAttribute(h, ""));
|
|
111
|
+
let r = g[/\.(\w+)(?:[?#].*)?$/.exec(t)?.[1]?.toLowerCase()];
|
|
112
|
+
return r ? n.type = r : n.removeAttribute("type"), n.getAttribute("href") !== t && n.setAttribute("href", t), document.head.appendChild(n), t;
|
|
113
|
+
}
|
|
114
|
+
function y() {
|
|
115
|
+
typeof document < "u" && document.head.querySelector(`link[${h}]`)?.remove();
|
|
116
|
+
}
|
|
117
|
+
function b() {
|
|
118
|
+
return r(() => {
|
|
119
|
+
let e = document.documentElement, t = () => v(e);
|
|
120
|
+
t();
|
|
121
|
+
let n = new MutationObserver(t);
|
|
122
|
+
n.observe(e, {
|
|
123
|
+
attributes: !0,
|
|
124
|
+
attributeFilter: ["data-theme", "data-appearance"]
|
|
125
|
+
});
|
|
126
|
+
let r = window.matchMedia?.("(prefers-color-scheme: dark)");
|
|
127
|
+
return r?.addEventListener("change", t), () => {
|
|
128
|
+
n.disconnect(), r?.removeEventListener("change", t), y();
|
|
129
|
+
};
|
|
130
|
+
}, []), null;
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/ThemeProvider.jsx
|
|
134
|
+
var x = e(null), S = new Map(f.map((e) => [e.name, e])), C = "(prefers-color-scheme: dark)", w = "piq:set-theme", T = !0;
|
|
135
|
+
try {
|
|
136
|
+
T = process.env.NODE_ENV !== "production";
|
|
137
|
+
} catch {}
|
|
138
|
+
var E = (e) => {
|
|
139
|
+
T && console.warn(`@ux-builder/ui ThemeProvider: ${e}`);
|
|
140
|
+
};
|
|
141
|
+
function D() {
|
|
142
|
+
return typeof window > "u" || !window.matchMedia ? null : window.matchMedia(C).matches ? "dark" : "light";
|
|
143
|
+
}
|
|
144
|
+
function O(e, t, n = D()) {
|
|
145
|
+
let r = t === "system" ? n : t, i = S.get(e);
|
|
146
|
+
return i ? r && i.appearances.includes(r) ? r : i.default : r ?? null;
|
|
147
|
+
}
|
|
148
|
+
var k = typeof window > "u" ? r : a, A = (e) => ({
|
|
149
|
+
...Object.fromEntries(m.map((e) => [`--${e}`, "initial"])),
|
|
150
|
+
...Object.fromEntries(Object.entries(e).filter(([, e]) => !String(e).startsWith("url(")).map(([e, t]) => [`--${e}`, t]))
|
|
151
|
+
});
|
|
152
|
+
function j({ theme: e, appearance: i = "system", tokens: a, favicon: l = !0, onChange: d, as: p = "div", style: m, children: h, ...g }) {
|
|
153
|
+
let _ = n(x), b = s(null), [T, j] = c(e), [M, N] = c(i), [P, F] = c(D);
|
|
154
|
+
r(() => j(e), [e]), r(() => N(i), [i]), k(() => {
|
|
155
|
+
if (M !== "system" || typeof window > "u" || !window.matchMedia) return;
|
|
156
|
+
let e = window.matchMedia(C), t = () => F(e.matches ? "dark" : "light");
|
|
157
|
+
return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
158
|
+
}, [M]);
|
|
159
|
+
let I = a ? M === "system" ? P ?? "light" : M : O(T, M, P);
|
|
160
|
+
r(() => {
|
|
161
|
+
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}`));
|
|
162
|
+
}, [
|
|
163
|
+
T,
|
|
164
|
+
M,
|
|
165
|
+
I,
|
|
166
|
+
a
|
|
167
|
+
]);
|
|
168
|
+
let L = l && !a && !_;
|
|
169
|
+
k(() => {
|
|
170
|
+
L && v(b.current);
|
|
171
|
+
}, [
|
|
172
|
+
L,
|
|
173
|
+
T,
|
|
174
|
+
I
|
|
175
|
+
]), r(() => L ? y : void 0, [L]);
|
|
176
|
+
let R = t((e) => {
|
|
177
|
+
j(e), d?.({
|
|
178
|
+
theme: e,
|
|
179
|
+
appearance: M
|
|
180
|
+
});
|
|
181
|
+
}, [d, M]), z = t((e) => {
|
|
182
|
+
N(e), d?.({
|
|
183
|
+
theme: T,
|
|
184
|
+
appearance: e
|
|
185
|
+
});
|
|
186
|
+
}, [d, T]), B = !a && !_;
|
|
187
|
+
r(() => {
|
|
188
|
+
if (!B || typeof window > "u") return;
|
|
189
|
+
let e = (e) => {
|
|
190
|
+
let { theme: t, appearance: n } = e.detail ?? {};
|
|
191
|
+
t && j(t), n && N(n), (t || n) && d?.({
|
|
192
|
+
theme: t ?? T,
|
|
193
|
+
appearance: n ?? M
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
return window.addEventListener(w, e), () => window.removeEventListener(w, e);
|
|
197
|
+
}, [
|
|
198
|
+
B,
|
|
199
|
+
d,
|
|
200
|
+
T,
|
|
201
|
+
M
|
|
202
|
+
]);
|
|
203
|
+
let V = o(() => ({
|
|
204
|
+
theme: a ? null : T,
|
|
205
|
+
appearance: I,
|
|
206
|
+
preference: M,
|
|
207
|
+
themes: f,
|
|
208
|
+
setTheme: R,
|
|
209
|
+
setAppearance: z
|
|
210
|
+
}), [
|
|
211
|
+
T,
|
|
212
|
+
I,
|
|
213
|
+
M,
|
|
214
|
+
a,
|
|
215
|
+
R,
|
|
216
|
+
z
|
|
217
|
+
]), H = a ? { style: {
|
|
218
|
+
...A(a),
|
|
219
|
+
colorScheme: I ?? void 0,
|
|
220
|
+
...m
|
|
221
|
+
} } : {
|
|
222
|
+
"data-theme": T,
|
|
223
|
+
...I && { "data-appearance": I },
|
|
224
|
+
style: {
|
|
225
|
+
colorScheme: I ?? void 0,
|
|
226
|
+
...m
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
return /* @__PURE__ */ u(x.Provider, {
|
|
230
|
+
value: V,
|
|
231
|
+
children: /* @__PURE__ */ u(p, {
|
|
232
|
+
ref: b,
|
|
233
|
+
...g,
|
|
234
|
+
...H,
|
|
235
|
+
children: h
|
|
236
|
+
})
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function M() {
|
|
240
|
+
let e = n(x);
|
|
241
|
+
if (!e) throw Error("useTheme() needs a <ThemeProvider> above it");
|
|
242
|
+
return e;
|
|
243
|
+
}
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/icons/glyphs.generated.js
|
|
246
|
+
var N = {
|
|
247
|
+
material: {
|
|
248
|
+
package: "@material-symbols/svg-400",
|
|
249
|
+
version: "0.47.6",
|
|
250
|
+
license: "Apache-2.0",
|
|
251
|
+
svg: { fill: "currentColor" }
|
|
252
|
+
},
|
|
253
|
+
fluent: {
|
|
254
|
+
package: "@fluentui/svg-icons",
|
|
255
|
+
version: "1.1.343",
|
|
256
|
+
license: "MIT",
|
|
257
|
+
svg: { fill: "currentColor" }
|
|
258
|
+
},
|
|
259
|
+
carbon: {
|
|
260
|
+
package: "@carbon/icons",
|
|
261
|
+
version: "11.89.0",
|
|
262
|
+
license: "Apache-2.0",
|
|
263
|
+
svg: { fill: "currentColor" }
|
|
264
|
+
},
|
|
265
|
+
lucide: {
|
|
266
|
+
package: "lucide-static",
|
|
267
|
+
version: "1.52.0",
|
|
268
|
+
license: "ISC",
|
|
269
|
+
svg: {
|
|
270
|
+
fill: "none",
|
|
271
|
+
stroke: "currentColor",
|
|
272
|
+
"stroke-width": "2",
|
|
273
|
+
"stroke-linecap": "round",
|
|
274
|
+
"stroke-linejoin": "round"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}, P = {
|
|
278
|
+
material: {
|
|
279
|
+
add: {
|
|
280
|
+
viewBox: "0 -960 960 960",
|
|
281
|
+
body: "<path d=\"M450-450H200v-60h250v-250h60v250h250v60H510v250h-60v-250Z\"/>"
|
|
282
|
+
},
|
|
283
|
+
"arrow-left": {
|
|
284
|
+
viewBox: "0 -960 960 960",
|
|
285
|
+
body: "<path d=\"m274-450 248 248-42 42-320-320 320-320 42 42-248 248h526v60H274Z\"/>"
|
|
286
|
+
},
|
|
287
|
+
"arrow-right": {
|
|
288
|
+
viewBox: "0 -960 960 960",
|
|
289
|
+
body: "<path d=\"M686-450H160v-60h526L438-758l42-42 320 320-320 320-42-42 248-248Z\"/>"
|
|
290
|
+
},
|
|
291
|
+
calendar: {
|
|
292
|
+
viewBox: "0 -960 960 960",
|
|
293
|
+
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\"/>"
|
|
294
|
+
},
|
|
295
|
+
check: {
|
|
296
|
+
viewBox: "0 -960 960 960",
|
|
297
|
+
body: "<path d=\"M378-246 154-470l43-43 181 181 384-384 43 43-427 427Z\"/>"
|
|
298
|
+
},
|
|
299
|
+
"check-circle": {
|
|
300
|
+
viewBox: "0 -960 960 960",
|
|
301
|
+
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\"/>"
|
|
302
|
+
},
|
|
303
|
+
"chevron-down": {
|
|
304
|
+
viewBox: "0 -960 960 960",
|
|
305
|
+
body: "<path d=\"M480-344 240-584l43-43 197 197 197-197 43 43-240 240Z\"/>"
|
|
306
|
+
},
|
|
307
|
+
"chevron-left": {
|
|
308
|
+
viewBox: "0 -960 960 960",
|
|
309
|
+
body: "<path d=\"M561-240 320-481l241-241 43 43-198 198 198 198-43 43Z\"/>"
|
|
310
|
+
},
|
|
311
|
+
"chevron-right": {
|
|
312
|
+
viewBox: "0 -960 960 960",
|
|
313
|
+
body: "<path d=\"M530-481 332-679l43-43 241 241-241 241-43-43 198-198Z\"/>"
|
|
314
|
+
},
|
|
315
|
+
"chevron-up": {
|
|
316
|
+
viewBox: "0 -960 960 960",
|
|
317
|
+
body: "<path d=\"M480-554 283-357l-43-43 240-240 240 240-43 43-197-197Z\"/>"
|
|
318
|
+
},
|
|
319
|
+
close: {
|
|
320
|
+
viewBox: "0 -960 960 960",
|
|
321
|
+
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\"/>"
|
|
322
|
+
},
|
|
323
|
+
copy: {
|
|
324
|
+
viewBox: "0 -960 960 960",
|
|
325
|
+
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\"/>"
|
|
326
|
+
},
|
|
327
|
+
delete: {
|
|
328
|
+
viewBox: "0 -960 960 960",
|
|
329
|
+
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\"/>"
|
|
330
|
+
},
|
|
331
|
+
download: {
|
|
332
|
+
viewBox: "0 -960 960 960",
|
|
333
|
+
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\"/>"
|
|
334
|
+
},
|
|
335
|
+
edit: {
|
|
336
|
+
viewBox: "0 -960 960 960",
|
|
337
|
+
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\"/>"
|
|
338
|
+
},
|
|
339
|
+
error: {
|
|
340
|
+
viewBox: "0 -960 960 960",
|
|
341
|
+
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\"/>"
|
|
342
|
+
},
|
|
343
|
+
"external-link": {
|
|
344
|
+
viewBox: "0 -960 960 960",
|
|
345
|
+
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\"/>"
|
|
346
|
+
},
|
|
347
|
+
filter: {
|
|
348
|
+
viewBox: "0 -960 960 960",
|
|
349
|
+
body: "<path d=\"M400-240v-60h160v60H400ZM240-450v-60h480v60H240ZM120-660v-60h720v60H120Z\"/>"
|
|
350
|
+
},
|
|
351
|
+
help: {
|
|
352
|
+
viewBox: "0 -960 960 960",
|
|
353
|
+
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\"/>"
|
|
354
|
+
},
|
|
355
|
+
home: {
|
|
356
|
+
viewBox: "0 -960 960 960",
|
|
357
|
+
body: "<path d=\"M220-180h150v-250h220v250h150v-390L480-765 220-570v390Zm-60 60v-480l320-240 320 240v480H530v-250H430v250H160Zm320-353Z\"/>"
|
|
358
|
+
},
|
|
359
|
+
info: {
|
|
360
|
+
viewBox: "0 -960 960 960",
|
|
361
|
+
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\"/>"
|
|
362
|
+
},
|
|
363
|
+
lock: {
|
|
364
|
+
viewBox: "0 -960 960 960",
|
|
365
|
+
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\"/>"
|
|
366
|
+
},
|
|
367
|
+
menu: {
|
|
368
|
+
viewBox: "0 -960 960 960",
|
|
369
|
+
body: "<path d=\"M120-240v-60h720v60H120Zm0-210v-60h720v60H120Zm0-210v-60h720v60H120Z\"/>"
|
|
370
|
+
},
|
|
371
|
+
more: {
|
|
372
|
+
viewBox: "0 -960 960 960",
|
|
373
|
+
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\"/>"
|
|
374
|
+
},
|
|
375
|
+
refresh: {
|
|
376
|
+
viewBox: "0 -960 960 960",
|
|
377
|
+
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\"/>"
|
|
378
|
+
},
|
|
379
|
+
search: {
|
|
380
|
+
viewBox: "0 -960 960 960",
|
|
381
|
+
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\"/>"
|
|
382
|
+
},
|
|
383
|
+
settings: {
|
|
384
|
+
viewBox: "0 -960 960 960",
|
|
385
|
+
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\"/>"
|
|
386
|
+
},
|
|
387
|
+
"sort-ascending": {
|
|
388
|
+
viewBox: "0 -960 960 960",
|
|
389
|
+
body: "<path d=\"M450-160v-526L202-438l-42-42 320-320 320 320-42 42-248-248v526h-60Z\"/>"
|
|
390
|
+
},
|
|
391
|
+
"sort-descending": {
|
|
392
|
+
viewBox: "0 -960 960 960",
|
|
393
|
+
body: "<path d=\"M450-800v526L202-522l-42 42 320 320 320-320-42-42-248 248v-526h-60Z\"/>"
|
|
394
|
+
},
|
|
395
|
+
upload: {
|
|
396
|
+
viewBox: "0 -960 960 960",
|
|
397
|
+
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\"/>"
|
|
398
|
+
},
|
|
399
|
+
user: {
|
|
400
|
+
viewBox: "0 -960 960 960",
|
|
401
|
+
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\"/>"
|
|
402
|
+
},
|
|
403
|
+
view: {
|
|
404
|
+
viewBox: "0 -960 960 960",
|
|
405
|
+
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\"/>"
|
|
406
|
+
},
|
|
407
|
+
warning: {
|
|
408
|
+
viewBox: "0 -960 960 960",
|
|
409
|
+
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\"/>"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
fluent: {
|
|
413
|
+
add: {
|
|
414
|
+
viewBox: "0 0 24 24",
|
|
415
|
+
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\"/>"
|
|
416
|
+
},
|
|
417
|
+
"arrow-left": {
|
|
418
|
+
viewBox: "0 0 24 24",
|
|
419
|
+
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\"/>"
|
|
420
|
+
},
|
|
421
|
+
"arrow-right": {
|
|
422
|
+
viewBox: "0 0 24 24",
|
|
423
|
+
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\"/>"
|
|
424
|
+
},
|
|
425
|
+
calendar: {
|
|
426
|
+
viewBox: "0 0 24 24",
|
|
427
|
+
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\"/>"
|
|
428
|
+
},
|
|
429
|
+
check: {
|
|
430
|
+
viewBox: "0 0 24 24",
|
|
431
|
+
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\"/>"
|
|
432
|
+
},
|
|
433
|
+
"check-circle": {
|
|
434
|
+
viewBox: "0 0 24 24",
|
|
435
|
+
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\"/>"
|
|
436
|
+
},
|
|
437
|
+
"chevron-down": {
|
|
438
|
+
viewBox: "0 0 24 24",
|
|
439
|
+
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\"/>"
|
|
440
|
+
},
|
|
441
|
+
"chevron-left": {
|
|
442
|
+
viewBox: "0 0 24 24",
|
|
443
|
+
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\"/>"
|
|
444
|
+
},
|
|
445
|
+
"chevron-right": {
|
|
446
|
+
viewBox: "0 0 24 24",
|
|
447
|
+
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\"/>"
|
|
448
|
+
},
|
|
449
|
+
"chevron-up": {
|
|
450
|
+
viewBox: "0 0 24 24",
|
|
451
|
+
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\"/>"
|
|
452
|
+
},
|
|
453
|
+
close: {
|
|
454
|
+
viewBox: "0 0 24 24",
|
|
455
|
+
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\"/>"
|
|
456
|
+
},
|
|
457
|
+
copy: {
|
|
458
|
+
viewBox: "0 0 24 24",
|
|
459
|
+
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\"/>"
|
|
460
|
+
},
|
|
461
|
+
delete: {
|
|
462
|
+
viewBox: "0 0 24 24",
|
|
463
|
+
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\"/>"
|
|
464
|
+
},
|
|
465
|
+
download: {
|
|
466
|
+
viewBox: "0 0 24 24",
|
|
467
|
+
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\"/>"
|
|
468
|
+
},
|
|
469
|
+
edit: {
|
|
470
|
+
viewBox: "0 0 24 24",
|
|
471
|
+
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\"/>"
|
|
472
|
+
},
|
|
473
|
+
error: {
|
|
474
|
+
viewBox: "0 0 24 24",
|
|
475
|
+
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\"/>"
|
|
476
|
+
},
|
|
477
|
+
"external-link": {
|
|
478
|
+
viewBox: "0 0 24 24",
|
|
479
|
+
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\"/>"
|
|
480
|
+
},
|
|
481
|
+
filter: {
|
|
482
|
+
viewBox: "0 0 24 24",
|
|
483
|
+
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\"/>"
|
|
484
|
+
},
|
|
485
|
+
help: {
|
|
486
|
+
viewBox: "0 0 24 24",
|
|
487
|
+
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\"/>"
|
|
488
|
+
},
|
|
489
|
+
home: {
|
|
490
|
+
viewBox: "0 0 24 24",
|
|
491
|
+
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\"/>"
|
|
492
|
+
},
|
|
493
|
+
info: {
|
|
494
|
+
viewBox: "0 0 24 24",
|
|
495
|
+
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\"/>"
|
|
496
|
+
},
|
|
497
|
+
lock: {
|
|
498
|
+
viewBox: "0 0 24 24",
|
|
499
|
+
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\"/>"
|
|
500
|
+
},
|
|
501
|
+
menu: {
|
|
502
|
+
viewBox: "0 0 24 24",
|
|
503
|
+
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\"/>"
|
|
504
|
+
},
|
|
505
|
+
more: {
|
|
506
|
+
viewBox: "0 0 24 24",
|
|
507
|
+
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\"/>"
|
|
508
|
+
},
|
|
509
|
+
refresh: {
|
|
510
|
+
viewBox: "0 0 24 24",
|
|
511
|
+
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\"/>"
|
|
512
|
+
},
|
|
513
|
+
search: {
|
|
514
|
+
viewBox: "0 0 24 24",
|
|
515
|
+
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\"/>"
|
|
516
|
+
},
|
|
517
|
+
settings: {
|
|
518
|
+
viewBox: "0 0 24 24",
|
|
519
|
+
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\"/>"
|
|
520
|
+
},
|
|
521
|
+
"sort-ascending": {
|
|
522
|
+
viewBox: "0 0 24 24",
|
|
523
|
+
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\"/>"
|
|
524
|
+
},
|
|
525
|
+
"sort-descending": {
|
|
526
|
+
viewBox: "0 0 24 24",
|
|
527
|
+
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\"/>"
|
|
528
|
+
},
|
|
529
|
+
upload: {
|
|
530
|
+
viewBox: "0 0 24 24",
|
|
531
|
+
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\"/>"
|
|
532
|
+
},
|
|
533
|
+
user: {
|
|
534
|
+
viewBox: "0 0 24 24",
|
|
535
|
+
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\"/>"
|
|
536
|
+
},
|
|
537
|
+
view: {
|
|
538
|
+
viewBox: "0 0 24 24",
|
|
539
|
+
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\"/>"
|
|
540
|
+
},
|
|
541
|
+
warning: {
|
|
542
|
+
viewBox: "0 0 24 24",
|
|
543
|
+
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\"/>"
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
carbon: {
|
|
547
|
+
add: {
|
|
548
|
+
viewBox: "0 0 32 32",
|
|
549
|
+
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\"/>"
|
|
550
|
+
},
|
|
551
|
+
"arrow-left": {
|
|
552
|
+
viewBox: "0 0 32 32",
|
|
553
|
+
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\"/>"
|
|
554
|
+
},
|
|
555
|
+
"arrow-right": {
|
|
556
|
+
viewBox: "0 0 32 32",
|
|
557
|
+
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\"/>"
|
|
558
|
+
},
|
|
559
|
+
calendar: {
|
|
560
|
+
viewBox: "0 0 32 32",
|
|
561
|
+
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\"/>"
|
|
562
|
+
},
|
|
563
|
+
check: {
|
|
564
|
+
viewBox: "0 0 32 32",
|
|
565
|
+
body: "<path d=\"M13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z\"/>"
|
|
566
|
+
},
|
|
567
|
+
"check-circle": {
|
|
568
|
+
viewBox: "0 0 32 32",
|
|
569
|
+
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\"/>"
|
|
570
|
+
},
|
|
571
|
+
"chevron-down": {
|
|
572
|
+
viewBox: "0 0 32 32",
|
|
573
|
+
body: "<path d=\"M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z\"/>"
|
|
574
|
+
},
|
|
575
|
+
"chevron-left": {
|
|
576
|
+
viewBox: "0 0 32 32",
|
|
577
|
+
body: "<path d=\"M10 16 20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z\"/>"
|
|
578
|
+
},
|
|
579
|
+
"chevron-right": {
|
|
580
|
+
viewBox: "0 0 32 32",
|
|
581
|
+
body: "<path d=\"M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z\"/>"
|
|
582
|
+
},
|
|
583
|
+
"chevron-up": {
|
|
584
|
+
viewBox: "0 0 32 32",
|
|
585
|
+
body: "<path d=\"M16 10 26 20 24.6 21.4 16 12.8 7.4 21.4 6 20z\"/>"
|
|
586
|
+
},
|
|
587
|
+
close: {
|
|
588
|
+
viewBox: "0 0 32 32",
|
|
589
|
+
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\"/>"
|
|
590
|
+
},
|
|
591
|
+
copy: {
|
|
592
|
+
viewBox: "0 0 32 32",
|
|
593
|
+
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\"/>"
|
|
594
|
+
},
|
|
595
|
+
delete: {
|
|
596
|
+
viewBox: "0 0 32 32",
|
|
597
|
+
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\"/>"
|
|
598
|
+
},
|
|
599
|
+
download: {
|
|
600
|
+
viewBox: "0 0 32 32",
|
|
601
|
+
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\"/>"
|
|
602
|
+
},
|
|
603
|
+
edit: {
|
|
604
|
+
viewBox: "0 0 32 32",
|
|
605
|
+
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\"/>"
|
|
606
|
+
},
|
|
607
|
+
error: {
|
|
608
|
+
viewBox: "0 0 32 32",
|
|
609
|
+
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\"/>"
|
|
610
|
+
},
|
|
611
|
+
"external-link": {
|
|
612
|
+
viewBox: "0 0 32 32",
|
|
613
|
+
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\"/>"
|
|
614
|
+
},
|
|
615
|
+
filter: {
|
|
616
|
+
viewBox: "0 0 32 32",
|
|
617
|
+
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\"/>"
|
|
618
|
+
},
|
|
619
|
+
help: {
|
|
620
|
+
viewBox: "0 0 32 32",
|
|
621
|
+
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\"/>"
|
|
622
|
+
},
|
|
623
|
+
home: {
|
|
624
|
+
viewBox: "0 0 32 32",
|
|
625
|
+
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\"/>"
|
|
626
|
+
},
|
|
627
|
+
info: {
|
|
628
|
+
viewBox: "0 0 32 32",
|
|
629
|
+
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\"/>"
|
|
630
|
+
},
|
|
631
|
+
lock: {
|
|
632
|
+
viewBox: "0 0 32 32",
|
|
633
|
+
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\"/>"
|
|
634
|
+
},
|
|
635
|
+
menu: {
|
|
636
|
+
viewBox: "0 0 32 32",
|
|
637
|
+
body: "<path d=\"M4 6H28V8H4z\"/><path d=\"M4 24H28V26H4z\"/><path d=\"M4 12H28V14H4z\"/><path d=\"M4 18H28V20H4z\"/>"
|
|
638
|
+
},
|
|
639
|
+
more: {
|
|
640
|
+
viewBox: "0 0 32 32",
|
|
641
|
+
body: "<circle cx=\"8\" cy=\"16\" r=\"2\"/><circle cx=\"16\" cy=\"16\" r=\"2\"/><circle cx=\"24\" cy=\"16\" r=\"2\"/>"
|
|
642
|
+
},
|
|
643
|
+
refresh: {
|
|
644
|
+
viewBox: "0 0 32 32",
|
|
645
|
+
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\"/>"
|
|
646
|
+
},
|
|
647
|
+
search: {
|
|
648
|
+
viewBox: "0 0 32 32",
|
|
649
|
+
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\"/>"
|
|
650
|
+
},
|
|
651
|
+
settings: {
|
|
652
|
+
viewBox: "0 0 32 32",
|
|
653
|
+
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\"/>"
|
|
654
|
+
},
|
|
655
|
+
"sort-ascending": {
|
|
656
|
+
viewBox: "0 0 32 32",
|
|
657
|
+
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\"/>"
|
|
658
|
+
},
|
|
659
|
+
"sort-descending": {
|
|
660
|
+
viewBox: "0 0 32 32",
|
|
661
|
+
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\"/>"
|
|
662
|
+
},
|
|
663
|
+
upload: {
|
|
664
|
+
viewBox: "0 0 32 32",
|
|
665
|
+
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\"/>"
|
|
666
|
+
},
|
|
667
|
+
user: {
|
|
668
|
+
viewBox: "0 0 32 32",
|
|
669
|
+
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\"/>"
|
|
670
|
+
},
|
|
671
|
+
view: {
|
|
672
|
+
viewBox: "0 0 32 32",
|
|
673
|
+
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\"/>"
|
|
674
|
+
},
|
|
675
|
+
warning: {
|
|
676
|
+
viewBox: "0 0 32 32",
|
|
677
|
+
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\"/>"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
lucide: {
|
|
681
|
+
add: {
|
|
682
|
+
viewBox: "0 0 24 24",
|
|
683
|
+
body: "<path d=\"M5 12h14\" /><path d=\"M12 5v14\" />"
|
|
684
|
+
},
|
|
685
|
+
"arrow-left": {
|
|
686
|
+
viewBox: "0 0 24 24",
|
|
687
|
+
body: "<path d=\"m12 19-7-7 7-7\" /><path d=\"M19 12H5\" />"
|
|
688
|
+
},
|
|
689
|
+
"arrow-right": {
|
|
690
|
+
viewBox: "0 0 24 24",
|
|
691
|
+
body: "<path d=\"M5 12h14\" /><path d=\"m12 5 7 7-7 7\" />"
|
|
692
|
+
},
|
|
693
|
+
calendar: {
|
|
694
|
+
viewBox: "0 0 24 24",
|
|
695
|
+
body: "<path d=\"M8 2v3\" /><path d=\"M16 2v3\" /><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" /><path d=\"M3 9h18\" />"
|
|
696
|
+
},
|
|
697
|
+
check: {
|
|
698
|
+
viewBox: "0 0 24 24",
|
|
699
|
+
body: "<path d=\"M20 6 9 17l-5-5\" />"
|
|
700
|
+
},
|
|
701
|
+
"check-circle": {
|
|
702
|
+
viewBox: "0 0 24 24",
|
|
703
|
+
body: "<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m16 9-5.5 5.5L8 12\" />"
|
|
704
|
+
},
|
|
705
|
+
"chevron-down": {
|
|
706
|
+
viewBox: "0 0 24 24",
|
|
707
|
+
body: "<path d=\"m6 9 6 6 6-6\" />"
|
|
708
|
+
},
|
|
709
|
+
"chevron-left": {
|
|
710
|
+
viewBox: "0 0 24 24",
|
|
711
|
+
body: "<path d=\"m15 18-6-6 6-6\" />"
|
|
712
|
+
},
|
|
713
|
+
"chevron-right": {
|
|
714
|
+
viewBox: "0 0 24 24",
|
|
715
|
+
body: "<path d=\"m9 18 6-6-6-6\" />"
|
|
716
|
+
},
|
|
717
|
+
"chevron-up": {
|
|
718
|
+
viewBox: "0 0 24 24",
|
|
719
|
+
body: "<path d=\"m18 15-6-6-6 6\" />"
|
|
720
|
+
},
|
|
721
|
+
close: {
|
|
722
|
+
viewBox: "0 0 24 24",
|
|
723
|
+
body: "<path d=\"M18 6 6 18\" /><path d=\"m6 6 12 12\" />"
|
|
724
|
+
},
|
|
725
|
+
copy: {
|
|
726
|
+
viewBox: "0 0 24 24",
|
|
727
|
+
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\" />"
|
|
728
|
+
},
|
|
729
|
+
delete: {
|
|
730
|
+
viewBox: "0 0 24 24",
|
|
731
|
+
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\" />"
|
|
732
|
+
},
|
|
733
|
+
download: {
|
|
734
|
+
viewBox: "0 0 24 24",
|
|
735
|
+
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\" />"
|
|
736
|
+
},
|
|
737
|
+
edit: {
|
|
738
|
+
viewBox: "0 0 24 24",
|
|
739
|
+
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\" />"
|
|
740
|
+
},
|
|
741
|
+
error: {
|
|
742
|
+
viewBox: "0 0 24 24",
|
|
743
|
+
body: "<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m15 9-6 6\" /><path d=\"m9 9 6 6\" />"
|
|
744
|
+
},
|
|
745
|
+
"external-link": {
|
|
746
|
+
viewBox: "0 0 24 24",
|
|
747
|
+
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\" />"
|
|
748
|
+
},
|
|
749
|
+
filter: {
|
|
750
|
+
viewBox: "0 0 24 24",
|
|
751
|
+
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\" />"
|
|
752
|
+
},
|
|
753
|
+
help: {
|
|
754
|
+
viewBox: "0 0 24 24",
|
|
755
|
+
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\" />"
|
|
756
|
+
},
|
|
757
|
+
home: {
|
|
758
|
+
viewBox: "0 0 24 24",
|
|
759
|
+
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\" />"
|
|
760
|
+
},
|
|
761
|
+
info: {
|
|
762
|
+
viewBox: "0 0 24 24",
|
|
763
|
+
body: "<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M12 16v-4\" /><path d=\"M12 8h.01\" />"
|
|
764
|
+
},
|
|
765
|
+
lock: {
|
|
766
|
+
viewBox: "0 0 24 24",
|
|
767
|
+
body: "<rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\" /><path d=\"M7 11V7a5 5 0 0 1 10 0v4\" />"
|
|
768
|
+
},
|
|
769
|
+
menu: {
|
|
770
|
+
viewBox: "0 0 24 24",
|
|
771
|
+
body: "<path d=\"M4 5h16\" /><path d=\"M4 12h16\" /><path d=\"M4 19h16\" />"
|
|
772
|
+
},
|
|
773
|
+
more: {
|
|
774
|
+
viewBox: "0 0 24 24",
|
|
775
|
+
body: "<circle cx=\"12\" cy=\"12\" r=\"1\" /><circle cx=\"19\" cy=\"12\" r=\"1\" /><circle cx=\"5\" cy=\"12\" r=\"1\" />"
|
|
776
|
+
},
|
|
777
|
+
refresh: {
|
|
778
|
+
viewBox: "0 0 24 24",
|
|
779
|
+
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\" />"
|
|
780
|
+
},
|
|
781
|
+
search: {
|
|
782
|
+
viewBox: "0 0 24 24",
|
|
783
|
+
body: "<path d=\"m21 21-4.34-4.34\" /><circle cx=\"11\" cy=\"11\" r=\"8\" />"
|
|
784
|
+
},
|
|
785
|
+
settings: {
|
|
786
|
+
viewBox: "0 0 24 24",
|
|
787
|
+
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\" />"
|
|
788
|
+
},
|
|
789
|
+
"sort-ascending": {
|
|
790
|
+
viewBox: "0 0 24 24",
|
|
791
|
+
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\" />"
|
|
792
|
+
},
|
|
793
|
+
"sort-descending": {
|
|
794
|
+
viewBox: "0 0 24 24",
|
|
795
|
+
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\" />"
|
|
796
|
+
},
|
|
797
|
+
upload: {
|
|
798
|
+
viewBox: "0 0 24 24",
|
|
799
|
+
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\" />"
|
|
800
|
+
},
|
|
801
|
+
user: {
|
|
802
|
+
viewBox: "0 0 24 24",
|
|
803
|
+
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\" />"
|
|
804
|
+
},
|
|
805
|
+
view: {
|
|
806
|
+
viewBox: "0 0 24 24",
|
|
807
|
+
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\" />"
|
|
808
|
+
},
|
|
809
|
+
warning: {
|
|
810
|
+
viewBox: "0 0 24 24",
|
|
811
|
+
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\" />"
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}, F = new Map(f.map((e) => [e.name, e])), I = /* @__PURE__ */ new Set([
|
|
815
|
+
"material",
|
|
816
|
+
"fluent",
|
|
817
|
+
"carbon"
|
|
818
|
+
]), L = Object.keys(P.lucide).sort(), R = !0;
|
|
819
|
+
try {
|
|
820
|
+
R = process.env.NODE_ENV !== "production";
|
|
821
|
+
} catch {}
|
|
822
|
+
function z(e) {
|
|
823
|
+
let t = F.get(e)?.designSystem;
|
|
824
|
+
return I.has(t) ? t : "lucide";
|
|
825
|
+
}
|
|
826
|
+
function B(e, t, n = P) {
|
|
827
|
+
return n[t]?.[e] ? [n[t][e], t] : n.lucide?.[e] ? [n.lucide[e], "lucide"] : [null, null];
|
|
828
|
+
}
|
|
829
|
+
var V = /* @__PURE__ */ new Map(), H = /<script|\son\w+\s*=|\shref\s*=|<foreignObject/i, ee = (e, t) => {
|
|
830
|
+
let n = e.glyphs;
|
|
831
|
+
if (n[t]) return [n[t], t];
|
|
832
|
+
if (n.lucide) return [n.lucide, "lucide"];
|
|
833
|
+
let r = Object.keys(N).find((e) => n[e]);
|
|
834
|
+
return r ? [n[r], r] : [null, null];
|
|
835
|
+
};
|
|
836
|
+
function te(...e) {
|
|
837
|
+
let t = [];
|
|
838
|
+
for (let n of e.flat()) {
|
|
839
|
+
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 } } }`);
|
|
840
|
+
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`);
|
|
841
|
+
V.set(n.name, n), t.push(n.name);
|
|
842
|
+
}
|
|
843
|
+
return t;
|
|
844
|
+
}
|
|
845
|
+
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;
|
|
846
|
+
function G({ name: e, icon: t, set: r, size: i = "1em", label: a, className: o = "", ...l }) {
|
|
847
|
+
let d = n(x), f = s(null), [p, m] = c(null), [h, g] = c(null);
|
|
848
|
+
W(() => {
|
|
849
|
+
if (r || !f.current) return;
|
|
850
|
+
let e = getComputedStyle(f.current).getPropertyValue("--piq-icon-set").trim().replace(/^["']|["']$/g, "");
|
|
851
|
+
g(P[e] ? e : null), d?.theme || m(f.current.closest?.("[data-theme]")?.getAttribute("data-theme") ?? null);
|
|
852
|
+
});
|
|
853
|
+
let _ = r ?? h ?? z(d?.theme ?? p), v = t ?? (P.lucide[e] ? null : V.get(e)), [y, b] = v ? ee(v, _) : B(e, _);
|
|
854
|
+
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;
|
|
855
|
+
let S = a ? {
|
|
856
|
+
role: "img",
|
|
857
|
+
"aria-label": a
|
|
858
|
+
} : {
|
|
859
|
+
"aria-hidden": "true",
|
|
860
|
+
focusable: "false"
|
|
861
|
+
};
|
|
862
|
+
return /* @__PURE__ */ u("svg", {
|
|
863
|
+
ref: f,
|
|
864
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
865
|
+
viewBox: y.viewBox,
|
|
866
|
+
width: i,
|
|
867
|
+
height: i,
|
|
868
|
+
className: `piq-icon${o ? ` ${o}` : ""}`,
|
|
869
|
+
"data-icon": v?.name ?? e,
|
|
870
|
+
"data-icon-set": b,
|
|
871
|
+
...U[b],
|
|
872
|
+
...S,
|
|
873
|
+
...l,
|
|
874
|
+
dangerouslySetInnerHTML: { __html: y.body }
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
//#endregion
|
|
878
|
+
//#region src/widgets/Loading.jsx
|
|
879
|
+
var re = (e, t, n) => Math.min(n, Math.max(t, e)), K = (e) => typeof e == "number" ? `${e}px` : e;
|
|
880
|
+
function ie({ label: e, value: t, max: n = 100, valueText: r, showValue: a = !1, hideLabel: o = !1, className: s = "", ...c }) {
|
|
881
|
+
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;
|
|
882
|
+
return /* @__PURE__ */ d("div", {
|
|
883
|
+
className: `piq-progress${p ? "" : " piq-progress--indeterminate"}${s ? ` ${s}` : ""}`,
|
|
884
|
+
...c,
|
|
885
|
+
children: [/* @__PURE__ */ d("div", {
|
|
886
|
+
className: o ? "piq-visually-hidden" : "piq-progress__head",
|
|
887
|
+
children: [/* @__PURE__ */ u("span", {
|
|
888
|
+
id: l,
|
|
889
|
+
className: "piq-progress__label",
|
|
890
|
+
children: e
|
|
891
|
+
}), p && a && /* @__PURE__ */ u("span", {
|
|
892
|
+
className: "piq-progress__value",
|
|
893
|
+
"aria-hidden": "true",
|
|
894
|
+
children: r ?? `${h}%`
|
|
895
|
+
})]
|
|
896
|
+
}), /* @__PURE__ */ u("div", {
|
|
897
|
+
className: "piq-progress__track",
|
|
898
|
+
role: "progressbar",
|
|
899
|
+
"aria-labelledby": l,
|
|
900
|
+
"aria-valuemin": 0,
|
|
901
|
+
"aria-valuemax": f,
|
|
902
|
+
"aria-valuenow": p ? m : void 0,
|
|
903
|
+
"aria-valuetext": p && r ? r : void 0,
|
|
904
|
+
children: /* @__PURE__ */ u("div", {
|
|
905
|
+
className: "piq-progress__fill",
|
|
906
|
+
style: p ? { width: `${h}%` } : void 0
|
|
907
|
+
})
|
|
908
|
+
})]
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
function q() {
|
|
912
|
+
return /* @__PURE__ */ d("svg", {
|
|
913
|
+
className: "piq-spinner__glyph",
|
|
914
|
+
viewBox: "0 0 24 24",
|
|
915
|
+
"aria-hidden": "true",
|
|
916
|
+
focusable: "false",
|
|
917
|
+
children: [/* @__PURE__ */ u("circle", {
|
|
918
|
+
className: "piq-spinner__track",
|
|
919
|
+
cx: "12",
|
|
920
|
+
cy: "12",
|
|
921
|
+
r: "10",
|
|
922
|
+
fill: "none"
|
|
923
|
+
}), /* @__PURE__ */ u("circle", {
|
|
924
|
+
className: "piq-spinner__arc",
|
|
925
|
+
cx: "12",
|
|
926
|
+
cy: "12",
|
|
927
|
+
r: "10",
|
|
928
|
+
fill: "none",
|
|
929
|
+
pathLength: "100"
|
|
930
|
+
})]
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
function ae({ size: e = "md", label: t = "Loading", showLabel: n = !1, className: r = "", ...i }) {
|
|
934
|
+
return /* @__PURE__ */ d("span", {
|
|
935
|
+
className: `piq-spinner piq-spinner--${e}${r ? ` ${r}` : ""}`,
|
|
936
|
+
role: "status",
|
|
937
|
+
...i,
|
|
938
|
+
children: [/* @__PURE__ */ u(q, {}), /* @__PURE__ */ u("span", {
|
|
939
|
+
className: n ? "piq-spinner__label" : "piq-visually-hidden",
|
|
940
|
+
children: t
|
|
941
|
+
})]
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
function oe({ variant: e = "text", lines: t = 1, width: n, height: r, className: i = "", style: a, ...o }) {
|
|
945
|
+
let s = `piq-skeleton piq-skeleton--${e}${i ? ` ${i}` : ""}`;
|
|
946
|
+
if (e === "text") {
|
|
947
|
+
let e = Math.max(1, Math.floor(t));
|
|
948
|
+
return /* @__PURE__ */ u("span", {
|
|
949
|
+
className: s,
|
|
950
|
+
"aria-hidden": "true",
|
|
951
|
+
style: {
|
|
952
|
+
width: K(n),
|
|
953
|
+
...a
|
|
954
|
+
},
|
|
955
|
+
...o,
|
|
956
|
+
children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ u("span", { className: "piq-skeleton__line" }, t))
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
let c = e === "circle" ? {
|
|
960
|
+
width: K(n ?? r ?? 40),
|
|
961
|
+
height: K(r ?? n ?? 40)
|
|
962
|
+
} : {
|
|
963
|
+
width: K(n),
|
|
964
|
+
height: K(r)
|
|
965
|
+
};
|
|
966
|
+
return /* @__PURE__ */ u("span", {
|
|
967
|
+
className: s,
|
|
968
|
+
"aria-hidden": "true",
|
|
969
|
+
style: {
|
|
970
|
+
...c,
|
|
971
|
+
...a
|
|
972
|
+
},
|
|
973
|
+
...o
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
//#endregion
|
|
977
|
+
//#region src/widgets/Button.jsx
|
|
978
|
+
var se = {
|
|
979
|
+
primary: "",
|
|
980
|
+
secondary: " piq-btn--secondary",
|
|
981
|
+
text: " piq-btn--text"
|
|
982
|
+
};
|
|
983
|
+
function J({ variant: e = "primary", size: t, badge: n, busy: r = !1, type: i = "button", className: a = "", onClick: o, children: s, ...c }) {
|
|
984
|
+
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", {
|
|
985
|
+
className: "piq-btn__badge",
|
|
986
|
+
children: n
|
|
987
|
+
})] });
|
|
988
|
+
return r ? /* @__PURE__ */ d("button", {
|
|
989
|
+
type: i,
|
|
990
|
+
className: f,
|
|
991
|
+
...c,
|
|
992
|
+
"aria-busy": "true",
|
|
993
|
+
"aria-disabled": "true",
|
|
994
|
+
onClick: (e) => e.preventDefault(),
|
|
995
|
+
children: [/* @__PURE__ */ u("span", {
|
|
996
|
+
className: "piq-btn__label",
|
|
997
|
+
children: p
|
|
998
|
+
}), /* @__PURE__ */ u("span", {
|
|
999
|
+
className: "piq-btn__spinner",
|
|
1000
|
+
children: /* @__PURE__ */ u(q, {})
|
|
1001
|
+
})]
|
|
1002
|
+
}) : /* @__PURE__ */ u("button", {
|
|
1003
|
+
type: i,
|
|
1004
|
+
className: f,
|
|
1005
|
+
onClick: o,
|
|
1006
|
+
...c,
|
|
1007
|
+
children: p
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
//#endregion
|
|
1011
|
+
//#region src/widgets/Choice.jsx
|
|
1012
|
+
function ce({ label: e, className: t = "", ...n }) {
|
|
1013
|
+
return /* @__PURE__ */ d("label", {
|
|
1014
|
+
className: `piq-check${t ? ` ${t}` : ""}`,
|
|
1015
|
+
children: [/* @__PURE__ */ u("input", {
|
|
1016
|
+
type: "checkbox",
|
|
1017
|
+
className: "piq-check__box",
|
|
1018
|
+
...n
|
|
1019
|
+
}), /* @__PURE__ */ u("span", { children: e })]
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
function le({ label: e, className: t = "", ...n }) {
|
|
1023
|
+
return /* @__PURE__ */ d("label", {
|
|
1024
|
+
className: `piq-check piq-switch${t ? ` ${t}` : ""}`,
|
|
1025
|
+
children: [/* @__PURE__ */ u("input", {
|
|
1026
|
+
type: "checkbox",
|
|
1027
|
+
role: "switch",
|
|
1028
|
+
className: "piq-switch__track",
|
|
1029
|
+
...n
|
|
1030
|
+
}), /* @__PURE__ */ u("span", { children: e })]
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
function ue({ label: e, options: t, name: n, value: r, defaultValue: a, onChange: o, disabled: s }) {
|
|
1034
|
+
let c = i(), l = n ?? c;
|
|
1035
|
+
return /* @__PURE__ */ d("fieldset", {
|
|
1036
|
+
className: "piq-radios",
|
|
1037
|
+
disabled: s,
|
|
1038
|
+
children: [/* @__PURE__ */ u("legend", {
|
|
1039
|
+
className: "piq-field__label",
|
|
1040
|
+
children: e
|
|
1041
|
+
}), t.map((e) => /* @__PURE__ */ d("label", {
|
|
1042
|
+
className: "piq-check",
|
|
1043
|
+
children: [/* @__PURE__ */ u("input", {
|
|
1044
|
+
type: "radio",
|
|
1045
|
+
className: "piq-radio",
|
|
1046
|
+
name: l,
|
|
1047
|
+
value: e.value,
|
|
1048
|
+
disabled: e.disabled,
|
|
1049
|
+
...r === void 0 ? { defaultChecked: a === e.value } : {
|
|
1050
|
+
checked: r === e.value,
|
|
1051
|
+
onChange: () => o?.(e.value)
|
|
1052
|
+
}
|
|
1053
|
+
}), /* @__PURE__ */ u("span", { children: e.label })]
|
|
1054
|
+
}, e.value))]
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
//#endregion
|
|
1058
|
+
//#region src/widgets/Field.jsx
|
|
1059
|
+
function Y({ label: e, hint: t, error: n, id: r, className: a, children: o }) {
|
|
1060
|
+
let s = i(), c = r ?? s, l = t ? `${c}-hint` : void 0, f = n ? `${c}-error` : void 0, p = {
|
|
1061
|
+
id: c,
|
|
1062
|
+
"aria-invalid": n ? "true" : void 0,
|
|
1063
|
+
"aria-describedby": [f, l].filter(Boolean).join(" ") || void 0
|
|
1064
|
+
};
|
|
1065
|
+
return /* @__PURE__ */ d("div", {
|
|
1066
|
+
className: `piq-field${a ? ` ${a}` : ""}`,
|
|
1067
|
+
children: [
|
|
1068
|
+
/* @__PURE__ */ u("label", {
|
|
1069
|
+
className: "piq-field__label",
|
|
1070
|
+
htmlFor: c,
|
|
1071
|
+
children: e
|
|
1072
|
+
}),
|
|
1073
|
+
o(p),
|
|
1074
|
+
n && /* @__PURE__ */ u("span", {
|
|
1075
|
+
id: f,
|
|
1076
|
+
className: "piq-field__error",
|
|
1077
|
+
children: n
|
|
1078
|
+
}),
|
|
1079
|
+
t && /* @__PURE__ */ u("span", {
|
|
1080
|
+
id: l,
|
|
1081
|
+
className: "piq-field__hint",
|
|
1082
|
+
children: t
|
|
1083
|
+
})
|
|
1084
|
+
]
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
function X({ label: e, hint: t, error: n, id: r, className: i = "", ...a }) {
|
|
1088
|
+
return /* @__PURE__ */ u(Y, {
|
|
1089
|
+
label: e,
|
|
1090
|
+
hint: t,
|
|
1091
|
+
error: n,
|
|
1092
|
+
id: r,
|
|
1093
|
+
className: i,
|
|
1094
|
+
children: (e) => /* @__PURE__ */ u("input", {
|
|
1095
|
+
type: "text",
|
|
1096
|
+
className: "piq-field__input",
|
|
1097
|
+
...e,
|
|
1098
|
+
...a
|
|
1099
|
+
})
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
function de({ label: e, hint: t, error: n, id: r, className: i = "", rows: a = 4, ...o }) {
|
|
1103
|
+
return /* @__PURE__ */ u(Y, {
|
|
1104
|
+
label: e,
|
|
1105
|
+
hint: t,
|
|
1106
|
+
error: n,
|
|
1107
|
+
id: r,
|
|
1108
|
+
className: i,
|
|
1109
|
+
children: (e) => /* @__PURE__ */ u("textarea", {
|
|
1110
|
+
rows: a,
|
|
1111
|
+
className: "piq-field__input piq-field__input--multi",
|
|
1112
|
+
...e,
|
|
1113
|
+
...o
|
|
1114
|
+
})
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
function Z({ label: e, hint: t, error: n, id: r, className: i = "", options: a, placeholder: o, ...s }) {
|
|
1118
|
+
return /* @__PURE__ */ u(Y, {
|
|
1119
|
+
label: e,
|
|
1120
|
+
hint: t,
|
|
1121
|
+
error: n,
|
|
1122
|
+
id: r,
|
|
1123
|
+
className: i,
|
|
1124
|
+
children: (e) => /* @__PURE__ */ u("span", {
|
|
1125
|
+
className: "piq-select",
|
|
1126
|
+
children: /* @__PURE__ */ d("select", {
|
|
1127
|
+
className: "piq-field__input piq-select__input",
|
|
1128
|
+
...e,
|
|
1129
|
+
...s,
|
|
1130
|
+
children: [o && /* @__PURE__ */ u("option", {
|
|
1131
|
+
value: "",
|
|
1132
|
+
disabled: !0,
|
|
1133
|
+
children: o
|
|
1134
|
+
}), a.map((e) => /* @__PURE__ */ u("option", {
|
|
1135
|
+
value: e.value,
|
|
1136
|
+
disabled: e.disabled,
|
|
1137
|
+
children: e.label
|
|
1138
|
+
}, e.value))]
|
|
1139
|
+
})
|
|
1140
|
+
})
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
//#endregion
|
|
1144
|
+
//#region src/widgets/DatePicker.jsx
|
|
1145
|
+
function Q({ label: e, value: t, onChange: n, min: r, max: i, hint: a, error: o, id: s, className: c }) {
|
|
1146
|
+
return /* @__PURE__ */ u(X, {
|
|
1147
|
+
type: "date",
|
|
1148
|
+
label: e,
|
|
1149
|
+
value: t ?? "",
|
|
1150
|
+
min: r,
|
|
1151
|
+
max: i,
|
|
1152
|
+
hint: a,
|
|
1153
|
+
error: o,
|
|
1154
|
+
id: s,
|
|
1155
|
+
className: c,
|
|
1156
|
+
onChange: (e) => n?.(e.target.value)
|
|
1157
|
+
});
|
|
1158
|
+
}
|
|
1159
|
+
function fe({ label: e, from: t, to: n, onChange: r, min: a, max: o, fromLabel: s = "From", toLabel: c = "To", className: l }) {
|
|
1160
|
+
let f = i();
|
|
1161
|
+
return /* @__PURE__ */ d("fieldset", {
|
|
1162
|
+
className: `piq-date-range${l ? ` ${l}` : ""}`,
|
|
1163
|
+
children: [/* @__PURE__ */ u("legend", {
|
|
1164
|
+
className: "piq-field__label",
|
|
1165
|
+
children: e
|
|
1166
|
+
}), /* @__PURE__ */ d("div", {
|
|
1167
|
+
className: "piq-date-range__fields",
|
|
1168
|
+
children: [/* @__PURE__ */ u(Q, {
|
|
1169
|
+
id: `${f}-from`,
|
|
1170
|
+
label: s,
|
|
1171
|
+
value: t,
|
|
1172
|
+
min: a,
|
|
1173
|
+
max: n || o,
|
|
1174
|
+
onChange: (e) => r?.({
|
|
1175
|
+
from: e,
|
|
1176
|
+
to: n
|
|
1177
|
+
})
|
|
1178
|
+
}), /* @__PURE__ */ u(Q, {
|
|
1179
|
+
id: `${f}-to`,
|
|
1180
|
+
label: c,
|
|
1181
|
+
value: n,
|
|
1182
|
+
min: t || a,
|
|
1183
|
+
max: o,
|
|
1184
|
+
onChange: (e) => r?.({
|
|
1185
|
+
from: t,
|
|
1186
|
+
to: e
|
|
1187
|
+
})
|
|
1188
|
+
})]
|
|
1189
|
+
})]
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
//#endregion
|
|
1193
|
+
//#region src/widgets/modal.js
|
|
1194
|
+
function $(e, t) {
|
|
1195
|
+
let n = s(null), i = s(null);
|
|
1196
|
+
return r(() => {
|
|
1197
|
+
let r = n.current;
|
|
1198
|
+
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?.()));
|
|
1199
|
+
}, [e, t]), r(() => () => {
|
|
1200
|
+
n.current?.open && n.current.close();
|
|
1201
|
+
}, []), n;
|
|
1202
|
+
}
|
|
1203
|
+
//#endregion
|
|
1204
|
+
//#region src/widgets/Dialog.jsx
|
|
1205
|
+
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 }) {
|
|
1206
|
+
let m = $(e, s), h = i(), g = i();
|
|
1207
|
+
return /* @__PURE__ */ d("dialog", {
|
|
1208
|
+
ref: m,
|
|
1209
|
+
role: c,
|
|
1210
|
+
className: `piq-dialog${l ? ` ${l}` : ""}`,
|
|
1211
|
+
"aria-labelledby": h,
|
|
1212
|
+
"aria-describedby": r ? g : void 0,
|
|
1213
|
+
onCancel: (e) => {
|
|
1214
|
+
e.preventDefault(), t?.();
|
|
1215
|
+
},
|
|
1216
|
+
...p,
|
|
1217
|
+
children: [
|
|
1218
|
+
/* @__PURE__ */ d("div", {
|
|
1219
|
+
className: "piq-dialog__head",
|
|
1220
|
+
children: [/* @__PURE__ */ u("h2", {
|
|
1221
|
+
id: h,
|
|
1222
|
+
className: "piq-dialog__title",
|
|
1223
|
+
children: n
|
|
1224
|
+
}), t && /* @__PURE__ */ u(J, {
|
|
1225
|
+
variant: "text",
|
|
1226
|
+
className: "piq-dialog__close",
|
|
1227
|
+
"aria-label": o,
|
|
1228
|
+
onClick: () => t(),
|
|
1229
|
+
children: /* @__PURE__ */ u(G, { name: "close" })
|
|
1230
|
+
})]
|
|
1231
|
+
}),
|
|
1232
|
+
r && /* @__PURE__ */ u("p", {
|
|
1233
|
+
id: g,
|
|
1234
|
+
className: "piq-dialog__description",
|
|
1235
|
+
children: r
|
|
1236
|
+
}),
|
|
1237
|
+
f && /* @__PURE__ */ u("div", {
|
|
1238
|
+
className: "piq-dialog__body",
|
|
1239
|
+
children: f
|
|
1240
|
+
}),
|
|
1241
|
+
a && /* @__PURE__ */ u("div", {
|
|
1242
|
+
className: "piq-dialog__actions",
|
|
1243
|
+
children: a
|
|
1244
|
+
})
|
|
1245
|
+
]
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
//#endregion
|
|
1249
|
+
//#region src/widgets/MenuButton.jsx
|
|
1250
|
+
function me({ label: e, items: t = [], icon: n, variant: a = "secondary", size: o, align: l = "start", buttonLabel: f, className: p, ...m }) {
|
|
1251
|
+
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) => {
|
|
1252
|
+
g(!0), v(e === "last" ? S.at(-1) : S[0]);
|
|
1253
|
+
}, w = (e = !0) => {
|
|
1254
|
+
g(!1), v(-1), e && y.current?.focus();
|
|
1255
|
+
}, T = (e) => v((t) => S[(S.indexOf(t) + e + S.length) % S.length]);
|
|
1256
|
+
r(() => {
|
|
1257
|
+
h && _ >= 0 && b.current?.querySelectorAll("[data-index]")[_]?.focus();
|
|
1258
|
+
}, [h, _]), r(() => {
|
|
1259
|
+
if (!h) return;
|
|
1260
|
+
let e = (e) => {
|
|
1261
|
+
!y.current?.contains(e.target) && !b.current?.contains(e.target) && w(!1);
|
|
1262
|
+
};
|
|
1263
|
+
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
1264
|
+
}, [h]);
|
|
1265
|
+
function E(e) {
|
|
1266
|
+
[
|
|
1267
|
+
"ArrowDown",
|
|
1268
|
+
"Enter",
|
|
1269
|
+
" "
|
|
1270
|
+
].includes(e.key) ? (e.preventDefault(), C("first")) : e.key === "ArrowUp" && (e.preventDefault(), C("last"));
|
|
1271
|
+
}
|
|
1272
|
+
function D(e) {
|
|
1273
|
+
if (e.key === "ArrowDown") e.preventDefault(), T(1);
|
|
1274
|
+
else if (e.key === "ArrowUp") e.preventDefault(), T(-1);
|
|
1275
|
+
else if (e.key === "Home") e.preventDefault(), v(S[0]);
|
|
1276
|
+
else if (e.key === "End") e.preventDefault(), v(S.at(-1));
|
|
1277
|
+
else if (e.key === "Escape") e.preventDefault(), w();
|
|
1278
|
+
else if (e.key === "Tab") w(!1);
|
|
1279
|
+
else if (e.key.length === 1 && /\S/.test(e.key)) {
|
|
1280
|
+
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()));
|
|
1281
|
+
r !== void 0 && v(r);
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
function O(e, t) {
|
|
1285
|
+
if (e.disabled) {
|
|
1286
|
+
t.preventDefault();
|
|
1287
|
+
return;
|
|
1288
|
+
}
|
|
1289
|
+
w(), e.onSelect?.(t);
|
|
1290
|
+
}
|
|
1291
|
+
let k = typeof e == "string" && e || f;
|
|
1292
|
+
return /* @__PURE__ */ d("div", {
|
|
1293
|
+
className: `piq-menubutton${p ? ` ${p}` : ""}`,
|
|
1294
|
+
"data-align": l,
|
|
1295
|
+
...m,
|
|
1296
|
+
children: [/* @__PURE__ */ d(J, {
|
|
1297
|
+
ref: y,
|
|
1298
|
+
variant: a,
|
|
1299
|
+
size: o,
|
|
1300
|
+
"aria-haspopup": "menu",
|
|
1301
|
+
"aria-expanded": h,
|
|
1302
|
+
"aria-controls": h ? x : void 0,
|
|
1303
|
+
"aria-label": f,
|
|
1304
|
+
onClick: () => h ? w() : C("first"),
|
|
1305
|
+
onKeyDown: E,
|
|
1306
|
+
children: [
|
|
1307
|
+
n && /* @__PURE__ */ u(G, { name: n }),
|
|
1308
|
+
e,
|
|
1309
|
+
/* @__PURE__ */ u(G, {
|
|
1310
|
+
name: "chevron-down",
|
|
1311
|
+
className: "piq-menubutton__chevron"
|
|
1312
|
+
})
|
|
1313
|
+
]
|
|
1314
|
+
}), h && /* @__PURE__ */ u("ul", {
|
|
1315
|
+
ref: b,
|
|
1316
|
+
id: x,
|
|
1317
|
+
role: "menu",
|
|
1318
|
+
"aria-label": k,
|
|
1319
|
+
className: "piq-menu piq-menubutton__menu",
|
|
1320
|
+
onKeyDown: D,
|
|
1321
|
+
children: t.map((e, t) => {
|
|
1322
|
+
let n = {
|
|
1323
|
+
"data-index": t,
|
|
1324
|
+
tabIndex: -1,
|
|
1325
|
+
className: `piq-menu__item${t === _ ? " is-hover" : ""}`,
|
|
1326
|
+
role: e.checked === void 0 ? "menuitem" : "menuitemradio",
|
|
1327
|
+
"aria-checked": e.checked === void 0 ? void 0 : !!e.checked,
|
|
1328
|
+
"aria-disabled": e.disabled || void 0,
|
|
1329
|
+
onClick: (t) => O(e, t),
|
|
1330
|
+
onMouseEnter: () => !e.disabled && v(t)
|
|
1331
|
+
};
|
|
1332
|
+
return /* @__PURE__ */ u("li", {
|
|
1333
|
+
role: "none",
|
|
1334
|
+
children: e.href ? /* @__PURE__ */ u("a", {
|
|
1335
|
+
href: e.href,
|
|
1336
|
+
...n,
|
|
1337
|
+
children: e.label
|
|
1338
|
+
}) : /* @__PURE__ */ u("button", {
|
|
1339
|
+
type: "button",
|
|
1340
|
+
...n,
|
|
1341
|
+
children: e.label
|
|
1342
|
+
})
|
|
1343
|
+
}, t);
|
|
1344
|
+
})
|
|
1345
|
+
})]
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1348
|
+
//#endregion
|
|
1349
|
+
//#region src/widgets/Pagination.jsx
|
|
1350
|
+
function he({ page: e = 1, pageSize: t = 20, total: n = 0, onPageChange: r, pageSizes: i = [
|
|
1351
|
+
10,
|
|
1352
|
+
20,
|
|
1353
|
+
50,
|
|
1354
|
+
100
|
|
1355
|
+
], onPageSizeChange: a, label: o = "Pagination", ofLabel: s = "of", previousLabel: c = "Previous page", nextLabel: l = "Next page", pageSizeLabel: f = "Rows per page", className: p }) {
|
|
1356
|
+
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);
|
|
1357
|
+
return /* @__PURE__ */ d("nav", {
|
|
1358
|
+
"aria-label": o,
|
|
1359
|
+
className: `piq-pagination${p ? ` ${p}` : ""}`,
|
|
1360
|
+
children: [
|
|
1361
|
+
a && /* @__PURE__ */ u(Z, {
|
|
1362
|
+
label: f,
|
|
1363
|
+
className: "piq-pagination__size",
|
|
1364
|
+
value: String(t),
|
|
1365
|
+
options: i.map((e) => ({
|
|
1366
|
+
value: String(e),
|
|
1367
|
+
label: String(e)
|
|
1368
|
+
})),
|
|
1369
|
+
onChange: (e) => a(Number(e.target.value))
|
|
1370
|
+
}),
|
|
1371
|
+
/* @__PURE__ */ u("p", {
|
|
1372
|
+
className: "piq-pagination__position",
|
|
1373
|
+
"aria-live": "polite",
|
|
1374
|
+
children: `${g}–${_} ${s} ${n}`
|
|
1375
|
+
}),
|
|
1376
|
+
/* @__PURE__ */ d("div", {
|
|
1377
|
+
className: "piq-pagination__steps",
|
|
1378
|
+
children: [/* @__PURE__ */ u(J, {
|
|
1379
|
+
variant: "secondary",
|
|
1380
|
+
size: "sm",
|
|
1381
|
+
"aria-label": c,
|
|
1382
|
+
disabled: h <= 1,
|
|
1383
|
+
onClick: () => r?.(h - 1),
|
|
1384
|
+
children: /* @__PURE__ */ u(G, { name: "chevron-left" })
|
|
1385
|
+
}), /* @__PURE__ */ u(J, {
|
|
1386
|
+
variant: "secondary",
|
|
1387
|
+
size: "sm",
|
|
1388
|
+
"aria-label": l,
|
|
1389
|
+
disabled: h >= m,
|
|
1390
|
+
onClick: () => r?.(h + 1),
|
|
1391
|
+
children: /* @__PURE__ */ u(G, { name: "chevron-right" })
|
|
1392
|
+
})]
|
|
1393
|
+
})
|
|
1394
|
+
]
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
//#endregion
|
|
1398
|
+
//#region src/widgets/Sheet.jsx
|
|
1399
|
+
function ge({ open: e = !1, onClose: t, title: n, label: r, side: a = "start", closeLabel: o = "Close", initialFocus: s, className: c, children: l, ...f }) {
|
|
1400
|
+
let p = $(e, s), m = i();
|
|
1401
|
+
return /* @__PURE__ */ u("dialog", {
|
|
1402
|
+
ref: p,
|
|
1403
|
+
className: `piq-sheet${c ? ` ${c}` : ""}`,
|
|
1404
|
+
"data-side": a,
|
|
1405
|
+
"aria-labelledby": n ? m : void 0,
|
|
1406
|
+
"aria-label": n ? void 0 : r,
|
|
1407
|
+
onCancel: (e) => {
|
|
1408
|
+
e.preventDefault(), t?.();
|
|
1409
|
+
},
|
|
1410
|
+
onClick: (e) => {
|
|
1411
|
+
e.target === p.current && t?.();
|
|
1412
|
+
},
|
|
1413
|
+
...f,
|
|
1414
|
+
children: /* @__PURE__ */ d("div", {
|
|
1415
|
+
className: "piq-sheet__body",
|
|
1416
|
+
children: [/* @__PURE__ */ d("div", {
|
|
1417
|
+
className: "piq-sheet__head",
|
|
1418
|
+
children: [n && /* @__PURE__ */ u("h2", {
|
|
1419
|
+
id: m,
|
|
1420
|
+
className: "piq-sheet__title",
|
|
1421
|
+
children: n
|
|
1422
|
+
}), /* @__PURE__ */ u(J, {
|
|
1423
|
+
variant: "text",
|
|
1424
|
+
className: "piq-sheet__close",
|
|
1425
|
+
"aria-label": o,
|
|
1426
|
+
onClick: () => t?.(),
|
|
1427
|
+
children: /* @__PURE__ */ u(G, { name: "close" })
|
|
1428
|
+
})]
|
|
1429
|
+
}), l]
|
|
1430
|
+
})
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1433
|
+
//#endregion
|
|
1434
|
+
//#region src/widgets/Tabs.jsx
|
|
1435
|
+
function _e({ tabs: e = [], value: t, defaultValue: n, onChange: r, label: a, className: o, ...l }) {
|
|
1436
|
+
let [f, p] = c(n ?? e[0]?.id), m = t ?? f, h = i(), g = s(null);
|
|
1437
|
+
function _(e, n) {
|
|
1438
|
+
t === void 0 && p(e), e !== m && r?.(e), n && [...g.current?.querySelectorAll("[role=\"tab\"]") ?? []].find((t) => t.dataset.tab === String(e))?.focus();
|
|
1439
|
+
}
|
|
1440
|
+
function v(t) {
|
|
1441
|
+
let n = e.findIndex((e) => e.id === m), r = getComputedStyle(t.currentTarget).direction === "rtl", i = {
|
|
1442
|
+
ArrowRight: r ? -1 : 1,
|
|
1443
|
+
ArrowLeft: r ? 1 : -1
|
|
1444
|
+
}[t.key], a = null;
|
|
1445
|
+
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));
|
|
1446
|
+
}
|
|
1447
|
+
return /* @__PURE__ */ d("div", {
|
|
1448
|
+
className: `piq-tabs${o ? ` ${o}` : ""}`,
|
|
1449
|
+
...l,
|
|
1450
|
+
children: [/* @__PURE__ */ u("div", {
|
|
1451
|
+
ref: g,
|
|
1452
|
+
role: "tablist",
|
|
1453
|
+
"aria-label": a,
|
|
1454
|
+
className: "piq-tabs__list",
|
|
1455
|
+
onKeyDown: v,
|
|
1456
|
+
children: e.map((e) => {
|
|
1457
|
+
let t = e.id === m;
|
|
1458
|
+
return /* @__PURE__ */ d("button", {
|
|
1459
|
+
type: "button",
|
|
1460
|
+
role: "tab",
|
|
1461
|
+
"data-tab": e.id,
|
|
1462
|
+
id: `${h}-tab-${e.id}`,
|
|
1463
|
+
"aria-selected": t,
|
|
1464
|
+
"aria-controls": `${h}-panel-${e.id}`,
|
|
1465
|
+
tabIndex: t ? 0 : -1,
|
|
1466
|
+
className: "piq-tabs__tab",
|
|
1467
|
+
onClick: () => _(e.id),
|
|
1468
|
+
children: [e.label, e.count != null && /* @__PURE__ */ u("span", {
|
|
1469
|
+
className: "piq-tabs__count",
|
|
1470
|
+
children: e.count
|
|
1471
|
+
})]
|
|
1472
|
+
}, e.id);
|
|
1473
|
+
})
|
|
1474
|
+
}), e.map((e) => /* @__PURE__ */ u("div", {
|
|
1475
|
+
role: "tabpanel",
|
|
1476
|
+
id: `${h}-panel-${e.id}`,
|
|
1477
|
+
"aria-labelledby": `${h}-tab-${e.id}`,
|
|
1478
|
+
tabIndex: 0,
|
|
1479
|
+
hidden: e.id !== m,
|
|
1480
|
+
className: "piq-tabs__panel",
|
|
1481
|
+
children: e.panel
|
|
1482
|
+
}, e.id))]
|
|
1483
|
+
});
|
|
1484
|
+
}
|
|
1485
|
+
//#endregion
|
|
1486
|
+
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 };
|
|
1487
|
+
|
|
1488
|
+
//# sourceMappingURL=shared-DspdvNFe.js.map
|