@mt-gloss/ui 0.1.107 → 0.1.108
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/{BaseAsyncButton-Cq_l7clO.js → BaseAsyncButton-aDQ_TjJi.js} +30 -29
- package/BaseText-Dxbk1JJa.js +66 -0
- package/{Expandable-BcmIxWR8.js → Expandable-DFHxVkCF.js} +3493 -4181
- package/MetricCard-Cyoxhb_S.js +697 -0
- package/{UIContext-DP6JGCto.js → UIContext-Dm0GYHFT.js} +564 -626
- package/catalog.js +122 -120
- package/composites-panels.js +593 -415
- package/index.js +328 -326
- package/internals.js +81 -80
- package/package.json +1 -1
- package/ui.css +1 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as i, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import u, { useState as N, createContext as C, useContext as x } from "react";
|
|
3
|
+
import { c as R } from "./BaseText-Dxbk1JJa.js";
|
|
4
|
+
import { createPortal as $ } from "react-dom";
|
|
5
|
+
import { useFloating as P, autoUpdate as w, offset as z, flip as M, shift as T, useDismiss as D, useRole as I, useInteractions as V } from "@floating-ui/react";
|
|
5
6
|
import { AnimatePresence as E, motion as O } from "framer-motion";
|
|
6
|
-
function
|
|
7
|
+
function p(s, e, a, o) {
|
|
7
8
|
const t = {}, l = {};
|
|
8
9
|
if (!s) return { style: t, dataAttrs: l };
|
|
9
|
-
for (const [r, d] of Object.entries(
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
for (const [r, d] of Object.entries(e)) {
|
|
11
|
+
const n = s[r];
|
|
12
|
+
n != null && n !== !1 && (t[d] = String(n));
|
|
12
13
|
}
|
|
13
|
-
if (
|
|
14
|
-
for (const [r, d] of Object.entries(
|
|
15
|
-
const
|
|
16
|
-
|
|
14
|
+
if (a)
|
|
15
|
+
for (const [r, d] of Object.entries(a)) {
|
|
16
|
+
const n = s[r];
|
|
17
|
+
n != null && n !== !1 && (l[d] = String(n));
|
|
17
18
|
}
|
|
18
19
|
return { style: t, dataAttrs: l };
|
|
19
20
|
}
|
|
@@ -29,25 +30,25 @@ const H = {
|
|
|
29
30
|
fontWeight: "--_font-weight",
|
|
30
31
|
minHeight: "--_min-height",
|
|
31
32
|
gap: "--_gap"
|
|
32
|
-
},
|
|
33
|
+
}, G = {
|
|
33
34
|
display: "data-display"
|
|
34
35
|
};
|
|
35
|
-
function
|
|
36
|
-
const { as:
|
|
37
|
-
return r && (_["data-disabled"] = ""), d && (_["data-loading"] = ""), /* @__PURE__ */
|
|
36
|
+
function F(s) {
|
|
37
|
+
const { as: e, definition: a, className: o, style: t, children: l, disabled: r, loading: d, ...n } = s, c = e || "button", { style: g, dataAttrs: _ } = p(a, H, G);
|
|
38
|
+
return r && (_["data-disabled"] = ""), d && (_["data-loading"] = ""), /* @__PURE__ */ i(
|
|
38
39
|
c,
|
|
39
40
|
{
|
|
40
41
|
className: o ? `gloss-base-button ${o}` : "gloss-base-button",
|
|
41
42
|
style: { ...g, ...t },
|
|
42
43
|
disabled: r || d,
|
|
43
44
|
..._,
|
|
44
|
-
...
|
|
45
|
+
...n,
|
|
45
46
|
children: l
|
|
46
47
|
}
|
|
47
48
|
);
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
-
const
|
|
50
|
+
F.displayName = "BaseButton";
|
|
51
|
+
const Hs = {
|
|
51
52
|
// Brand
|
|
52
53
|
BrandPrimary: "var(--gloss-color-brand-primary)",
|
|
53
54
|
BrandPrimaryHover: "var(--gloss-color-brand-primary-hover)",
|
|
@@ -118,7 +119,7 @@ const Ga = {
|
|
|
118
119
|
Amber600: "var(--gloss-color-amber-600)",
|
|
119
120
|
// Base
|
|
120
121
|
White: "var(--gloss-color-white)"
|
|
121
|
-
},
|
|
122
|
+
}, Gs = {
|
|
122
123
|
None: "0",
|
|
123
124
|
Xs: "var(--gloss-spacing-1)",
|
|
124
125
|
Sm: "var(--gloss-spacing-2)",
|
|
@@ -130,7 +131,7 @@ const Ga = {
|
|
|
130
131
|
"4xl": "var(--gloss-spacing-10)",
|
|
131
132
|
"5xl": "var(--gloss-spacing-12)",
|
|
132
133
|
"6xl": "var(--gloss-spacing-16)"
|
|
133
|
-
},
|
|
134
|
+
}, Fs = {
|
|
134
135
|
// Font families (CSS vars)
|
|
135
136
|
FontDisplay: "var(--gloss-font-display)",
|
|
136
137
|
FontBody: "var(--gloss-font-body)",
|
|
@@ -153,7 +154,7 @@ const Ga = {
|
|
|
153
154
|
WeightMedium: "500",
|
|
154
155
|
WeightSemibold: "600",
|
|
155
156
|
WeightBold: "700"
|
|
156
|
-
},
|
|
157
|
+
}, Ls = {
|
|
157
158
|
Card: "var(--gloss-elevation-card)",
|
|
158
159
|
ButtonDefault: "var(--gloss-elevation-button-default)",
|
|
159
160
|
ButtonHover: "var(--gloss-elevation-button-hover)",
|
|
@@ -163,7 +164,7 @@ const Ga = {
|
|
|
163
164
|
InputFocus: "var(--gloss-elevation-input-focus)",
|
|
164
165
|
Sidebar: "var(--gloss-elevation-sidebar)",
|
|
165
166
|
None: "none"
|
|
166
|
-
},
|
|
167
|
+
}, Ws = {
|
|
167
168
|
None: "0",
|
|
168
169
|
Xs: "var(--gloss-radius-xs)",
|
|
169
170
|
Sm: "var(--gloss-radius-sm)",
|
|
@@ -171,7 +172,7 @@ const Ga = {
|
|
|
171
172
|
Lg: "var(--gloss-radius-lg)",
|
|
172
173
|
Xl: "var(--gloss-radius-xl)",
|
|
173
174
|
Full: "var(--gloss-radius-full)"
|
|
174
|
-
},
|
|
175
|
+
}, Us = {
|
|
175
176
|
Dropdown: "var(--gloss-z-dropdown)",
|
|
176
177
|
Sticky: "var(--gloss-z-sticky)",
|
|
177
178
|
Overlay: "var(--gloss-z-overlay)",
|
|
@@ -180,124 +181,77 @@ const Ga = {
|
|
|
180
181
|
Toast: "var(--gloss-z-toast)"
|
|
181
182
|
};
|
|
182
183
|
function L(s) {
|
|
183
|
-
const { as:
|
|
184
|
-
|
|
184
|
+
const { as: e, definition: a, className: o, style: t, children: l, ...r } = s, d = e || "div", n = { ...t };
|
|
185
|
+
a?.gap && (n["--_gap"] = a.gap), a?.padding && (n["--_padding"] = a.padding);
|
|
185
186
|
const c = {};
|
|
186
|
-
return
|
|
187
|
-
d,
|
|
188
|
-
{
|
|
189
|
-
className: o ? `gloss-base-box ${o}` : "gloss-base-box",
|
|
190
|
-
style: i,
|
|
191
|
-
...c,
|
|
192
|
-
...r,
|
|
193
|
-
children: l
|
|
194
|
-
}
|
|
195
|
-
);
|
|
196
|
-
}
|
|
197
|
-
L.displayName = "BaseBox";
|
|
198
|
-
function W(s) {
|
|
199
|
-
const { as: a, definition: e, className: o, style: t, children: l, ...r } = s, d = a || "div", i = { ...t };
|
|
200
|
-
e?.gap && (i["--_gap"] = e.gap), e?.padding && (i["--_padding"] = e.padding);
|
|
201
|
-
const c = {};
|
|
202
|
-
return e?.direction === "horizontal" && (c["data-direction"] = "horizontal"), e?.align && (c["data-align"] = e.align), e?.justify && (c["data-justify"] = e.justify), e?.wrap && (c["data-wrap"] = ""), /* @__PURE__ */ n(
|
|
187
|
+
return a?.direction === "horizontal" && (c["data-direction"] = "horizontal"), a?.align && (c["data-align"] = a.align), a?.justify && (c["data-justify"] = a.justify), a?.wrap && (c["data-wrap"] = ""), /* @__PURE__ */ i(
|
|
203
188
|
d,
|
|
204
189
|
{
|
|
205
190
|
className: o ? `gloss-base-stack ${o}` : "gloss-base-stack",
|
|
206
|
-
style:
|
|
191
|
+
style: n,
|
|
207
192
|
...c,
|
|
208
193
|
...r,
|
|
209
194
|
children: l
|
|
210
195
|
}
|
|
211
196
|
);
|
|
212
197
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
const { as: a, definition: e, className: o, style: t, ...l } = s, r = a || "hr", d = { ...t };
|
|
216
|
-
e?.color && (d["--_color"] = e.color), e?.thickness && (d["--_thickness"] = e.thickness), e?.spacing && (d["--_spacing"] = e.spacing);
|
|
217
|
-
const i = {};
|
|
218
|
-
return e?.orientation === "vertical" && (i["data-orientation"] = "vertical"), /* @__PURE__ */ n(
|
|
219
|
-
r,
|
|
220
|
-
{
|
|
221
|
-
className: o ? `gloss-base-divider ${o}` : "gloss-base-divider",
|
|
222
|
-
style: d,
|
|
223
|
-
...i,
|
|
224
|
-
...l
|
|
225
|
-
}
|
|
226
|
-
);
|
|
227
|
-
}
|
|
228
|
-
X.displayName = "BaseDivider";
|
|
229
|
-
function h(s) {
|
|
230
|
-
const { as: a, definition: e, className: o, style: t, children: l, ...r } = s, d = a || "span", i = { ...t };
|
|
231
|
-
e?.fontFamily && (i["--_font-family"] = e.fontFamily), e?.fontSize && (i["--_font-size"] = e.fontSize), e?.fontWeight && (i["--_font-weight"] = e.fontWeight), e?.lineHeight && (i["--_line-height"] = e.lineHeight), e?.letterSpacing && (i["--_letter-spacing"] = e.letterSpacing), e?.color && (i["--_color"] = e.color);
|
|
232
|
-
const c = {};
|
|
233
|
-
return e?.align && (c["data-align"] = e.align), e?.truncate && (c["data-truncate"] = ""), e?.wrap && (c["data-wrap"] = e.wrap), /* @__PURE__ */ n(
|
|
234
|
-
d,
|
|
235
|
-
{
|
|
236
|
-
className: o ? `gloss-base-typography ${o}` : "gloss-base-typography",
|
|
237
|
-
style: i,
|
|
238
|
-
...c,
|
|
239
|
-
...r,
|
|
240
|
-
children: l
|
|
241
|
-
}
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
h.displayName = "BaseTypography";
|
|
245
|
-
const j = {
|
|
198
|
+
L.displayName = "BaseStack";
|
|
199
|
+
const W = {
|
|
246
200
|
sm: 16,
|
|
247
201
|
md: 20,
|
|
248
202
|
lg: 24,
|
|
249
203
|
xl: 32
|
|
250
|
-
},
|
|
204
|
+
}, B = ({
|
|
251
205
|
name: s,
|
|
252
|
-
size:
|
|
253
|
-
className:
|
|
206
|
+
size: e = "md",
|
|
207
|
+
className: a = "",
|
|
254
208
|
...o
|
|
255
209
|
}) => {
|
|
256
|
-
const t =
|
|
257
|
-
return /* @__PURE__ */
|
|
210
|
+
const t = W[e];
|
|
211
|
+
return /* @__PURE__ */ i(
|
|
258
212
|
"svg",
|
|
259
213
|
{
|
|
260
214
|
width: t,
|
|
261
215
|
height: t,
|
|
262
|
-
className:
|
|
216
|
+
className: a,
|
|
263
217
|
"aria-hidden": "true",
|
|
264
218
|
focusable: "false",
|
|
265
219
|
...o,
|
|
266
|
-
children: /* @__PURE__ */
|
|
220
|
+
children: /* @__PURE__ */ i("use", { href: `#${s}` })
|
|
267
221
|
}
|
|
268
222
|
);
|
|
269
223
|
};
|
|
270
|
-
|
|
224
|
+
B.displayName = "Icon";
|
|
271
225
|
function U(s) {
|
|
272
|
-
const { definition:
|
|
273
|
-
if (!
|
|
226
|
+
const { definition: e, name: a, icon: o, className: t, style: l } = s;
|
|
227
|
+
if (!a && !o) return null;
|
|
274
228
|
const r = { ...l };
|
|
275
|
-
|
|
229
|
+
e?.color && (r["--_color"] = e.color);
|
|
276
230
|
const d = {};
|
|
277
|
-
return
|
|
231
|
+
return e?.size && (d["data-size"] = e.size), /* @__PURE__ */ i(
|
|
278
232
|
"span",
|
|
279
233
|
{
|
|
280
234
|
className: t ? `gloss-base-icon ${t}` : "gloss-base-icon",
|
|
281
235
|
style: r,
|
|
282
236
|
...d,
|
|
283
|
-
children:
|
|
237
|
+
children: a ? /* @__PURE__ */ i(B, { name: a, size: e?.size ?? "md" }) : o
|
|
284
238
|
}
|
|
285
239
|
);
|
|
286
240
|
}
|
|
287
241
|
U.displayName = "BaseIcon";
|
|
288
|
-
function
|
|
242
|
+
function X(s) {
|
|
289
243
|
const {
|
|
290
|
-
open:
|
|
291
|
-
placement:
|
|
244
|
+
open: e,
|
|
245
|
+
placement: a = "bottom",
|
|
292
246
|
offsetValue: o = 8,
|
|
293
247
|
onOpenChange: t
|
|
294
248
|
} = s;
|
|
295
|
-
return
|
|
296
|
-
open:
|
|
249
|
+
return P({
|
|
250
|
+
open: e,
|
|
297
251
|
onOpenChange: t,
|
|
298
|
-
placement:
|
|
299
|
-
middleware: [z(o),
|
|
300
|
-
whileElementsMounted:
|
|
252
|
+
placement: a,
|
|
253
|
+
middleware: [z(o), M(), T()],
|
|
254
|
+
whileElementsMounted: w,
|
|
301
255
|
// Phase 6.1.1 bug fix 2026-04-16: use top/left positioning (not transform).
|
|
302
256
|
// BaseOverlay wraps content in framer-motion motion.div with animate={scale},
|
|
303
257
|
// which owns the `transform` CSS property. If floating-ui writes
|
|
@@ -307,44 +261,44 @@ function Y(s) {
|
|
|
307
261
|
transform: !1
|
|
308
262
|
});
|
|
309
263
|
}
|
|
310
|
-
function
|
|
264
|
+
function j(s) {
|
|
311
265
|
const {
|
|
312
|
-
context:
|
|
313
|
-
outsidePress:
|
|
266
|
+
context: e,
|
|
267
|
+
outsidePress: a = !0,
|
|
314
268
|
escapeKey: o = !0,
|
|
315
269
|
role: t = "dialog"
|
|
316
|
-
} = s, l = D(
|
|
270
|
+
} = s, l = D(e, { outsidePress: a, escapeKey: o }), r = I(e, { role: t }), { getFloatingProps: d, getReferenceProps: n } = V([
|
|
317
271
|
l,
|
|
318
272
|
r
|
|
319
273
|
]);
|
|
320
|
-
return { getFloatingProps: d, getReferenceProps:
|
|
274
|
+
return { getFloatingProps: d, getReferenceProps: n };
|
|
321
275
|
}
|
|
322
|
-
function
|
|
323
|
-
const { definition:
|
|
324
|
-
!
|
|
325
|
-
}, [c, g] =
|
|
276
|
+
function S(s) {
|
|
277
|
+
const { definition: e, open: a, onDismiss: o, anchorRef: t, className: l, style: r, children: d } = s, n = (k) => {
|
|
278
|
+
!k && o && o();
|
|
279
|
+
}, [c, g] = u.useState(
|
|
326
280
|
t?.current ?? null
|
|
327
281
|
);
|
|
328
|
-
|
|
282
|
+
u.useEffect(() => {
|
|
329
283
|
g(t?.current ?? null);
|
|
330
284
|
});
|
|
331
|
-
const _ =
|
|
332
|
-
open:
|
|
333
|
-
placement:
|
|
334
|
-
offsetValue:
|
|
335
|
-
onOpenChange:
|
|
285
|
+
const _ = X({
|
|
286
|
+
open: a,
|
|
287
|
+
placement: e?.placement,
|
|
288
|
+
offsetValue: e?.offset,
|
|
289
|
+
onOpenChange: n
|
|
336
290
|
});
|
|
337
|
-
|
|
291
|
+
u.useEffect(() => {
|
|
338
292
|
c && (_.refs.setReference(c), _.update());
|
|
339
293
|
}, [c, _.refs, _.update]);
|
|
340
|
-
const { getFloatingProps: f } =
|
|
294
|
+
const { getFloatingProps: f } = j({
|
|
341
295
|
context: _.context,
|
|
342
|
-
outsidePress:
|
|
343
|
-
escapeKey:
|
|
344
|
-
role:
|
|
296
|
+
outsidePress: e?.dismissOnClickOutside ?? !0,
|
|
297
|
+
escapeKey: e?.dismissOnEscape ?? !0,
|
|
298
|
+
role: e?.role ?? "dialog"
|
|
345
299
|
}), m = { ...r };
|
|
346
|
-
|
|
347
|
-
const v =
|
|
300
|
+
e?.bg && (m["--_bg"] = e.bg), e?.shadow && (m["--_shadow"] = e.shadow), e?.radius && (m["--_radius"] = e.radius), e?.padding && (m["--_padding"] = e.padding), e?.zIndex && (m["--_z-index"] = e.zIndex);
|
|
301
|
+
const v = e?.portal !== !1, y = !!c, h = /* @__PURE__ */ i(E, { children: a && /* @__PURE__ */ i(
|
|
348
302
|
O.div,
|
|
349
303
|
{
|
|
350
304
|
ref: _.refs.setFloating,
|
|
@@ -358,10 +312,10 @@ function A(s) {
|
|
|
358
312
|
children: d
|
|
359
313
|
}
|
|
360
314
|
) });
|
|
361
|
-
return v && typeof document < "u" ?
|
|
315
|
+
return v && typeof document < "u" ? $(h, document.body) : h;
|
|
362
316
|
}
|
|
363
|
-
|
|
364
|
-
const
|
|
317
|
+
S.displayName = "BaseOverlay";
|
|
318
|
+
const K = {
|
|
365
319
|
bg: "--_bg",
|
|
366
320
|
color: "--_color",
|
|
367
321
|
borderColor: "--_border-color",
|
|
@@ -371,16 +325,16 @@ const Z = {
|
|
|
371
325
|
fontSize: "--_font-size",
|
|
372
326
|
minHeight: "--_min-height",
|
|
373
327
|
placeholderColor: "--_placeholder-color"
|
|
374
|
-
},
|
|
375
|
-
({ definition: s, className:
|
|
376
|
-
const { style: c, dataAttrs: g } =
|
|
328
|
+
}, Z = {}, Y = u.forwardRef(
|
|
329
|
+
({ definition: s, className: e, style: a, label: o, helperText: t, required: l, status: r = "default", ...d }, n) => {
|
|
330
|
+
const { style: c, dataAttrs: g } = p(s, K, Z);
|
|
377
331
|
r !== "default" && (g["data-status"] = r), d.disabled && (g["data-disabled"] = ""), d.readOnly && (g["data-readonly"] = "");
|
|
378
|
-
const _ = /* @__PURE__ */
|
|
332
|
+
const _ = /* @__PURE__ */ i(
|
|
379
333
|
"input",
|
|
380
334
|
{
|
|
381
|
-
ref:
|
|
382
|
-
className:
|
|
383
|
-
style: { ...c, ...
|
|
335
|
+
ref: n,
|
|
336
|
+
className: e ? `gloss-base-input ${e}` : "gloss-base-input",
|
|
337
|
+
style: { ...c, ...a },
|
|
384
338
|
required: l,
|
|
385
339
|
...g,
|
|
386
340
|
...d
|
|
@@ -389,15 +343,15 @@ const Z = {
|
|
|
389
343
|
return !o && !t ? _ : /* @__PURE__ */ b("div", { className: "gloss-base-input__wrapper", children: [
|
|
390
344
|
o && /* @__PURE__ */ b("label", { className: "gloss-base-input__label", children: [
|
|
391
345
|
o,
|
|
392
|
-
l && /* @__PURE__ */
|
|
346
|
+
l && /* @__PURE__ */ i("span", { className: "gloss-base-input__required", children: "*" })
|
|
393
347
|
] }),
|
|
394
348
|
_,
|
|
395
|
-
t && /* @__PURE__ */
|
|
349
|
+
t && /* @__PURE__ */ i("div", { className: "gloss-base-input__helper", children: t })
|
|
396
350
|
] });
|
|
397
351
|
}
|
|
398
352
|
);
|
|
399
|
-
|
|
400
|
-
const
|
|
353
|
+
Y.displayName = "BaseInput";
|
|
354
|
+
const q = {
|
|
401
355
|
bg: "--_bg",
|
|
402
356
|
color: "--_color",
|
|
403
357
|
borderColor: "--_border-color",
|
|
@@ -409,18 +363,18 @@ const Q = {
|
|
|
409
363
|
placeholderColor: "--_placeholder-color",
|
|
410
364
|
minRows: "--_min-rows",
|
|
411
365
|
maxRows: "--_max-rows"
|
|
412
|
-
},
|
|
366
|
+
}, J = {
|
|
413
367
|
resize: "data-resize"
|
|
414
|
-
},
|
|
415
|
-
({ definition: s, className:
|
|
416
|
-
const { style: c, dataAttrs: g } =
|
|
368
|
+
}, Q = u.forwardRef(
|
|
369
|
+
({ definition: s, className: e, style: a, label: o, helperText: t, required: l, status: r = "default", ...d }, n) => {
|
|
370
|
+
const { style: c, dataAttrs: g } = p(s, q, J);
|
|
417
371
|
r !== "default" && (g["data-status"] = r), d.disabled && (g["data-disabled"] = ""), d.readOnly && (g["data-readonly"] = "");
|
|
418
|
-
const _ = /* @__PURE__ */
|
|
372
|
+
const _ = /* @__PURE__ */ i(
|
|
419
373
|
"textarea",
|
|
420
374
|
{
|
|
421
|
-
ref:
|
|
422
|
-
className:
|
|
423
|
-
style: { ...c, ...
|
|
375
|
+
ref: n,
|
|
376
|
+
className: e ? `gloss-base-textarea ${e}` : "gloss-base-textarea",
|
|
377
|
+
style: { ...c, ...a },
|
|
424
378
|
required: l,
|
|
425
379
|
...g,
|
|
426
380
|
...d
|
|
@@ -429,38 +383,38 @@ const Q = {
|
|
|
429
383
|
return !o && !t ? _ : /* @__PURE__ */ b("div", { className: "gloss-base-textarea__wrapper", children: [
|
|
430
384
|
o && /* @__PURE__ */ b("label", { className: "gloss-base-textarea__label", children: [
|
|
431
385
|
o,
|
|
432
|
-
l && /* @__PURE__ */
|
|
386
|
+
l && /* @__PURE__ */ i("span", { className: "gloss-base-textarea__required", children: "*" })
|
|
433
387
|
] }),
|
|
434
388
|
_,
|
|
435
|
-
t && /* @__PURE__ */
|
|
389
|
+
t && /* @__PURE__ */ i("div", { className: "gloss-base-textarea__helper", children: t })
|
|
436
390
|
] });
|
|
437
391
|
}
|
|
438
392
|
);
|
|
439
|
-
|
|
440
|
-
const
|
|
393
|
+
Q.displayName = "BaseTextarea";
|
|
394
|
+
const ee = {
|
|
441
395
|
trackBg: "--_track-bg",
|
|
442
396
|
trackBorder: "--_track-border",
|
|
443
397
|
checkColor: "--_check-color",
|
|
444
398
|
trackSize: "--_track-size",
|
|
445
399
|
trackRadius: "--_track-radius"
|
|
446
|
-
},
|
|
447
|
-
({ definition: s, className:
|
|
448
|
-
const { style: c, dataAttrs: g } =
|
|
400
|
+
}, se = u.forwardRef(
|
|
401
|
+
({ definition: s, className: e, style: a, indeterminate: o, children: t, checked: l, disabled: r, ...d }, n) => {
|
|
402
|
+
const { style: c, dataAttrs: g } = p(s, ee);
|
|
449
403
|
r && (g["data-disabled"] = ""), l && (g["data-checked"] = ""), o && (g["data-indeterminate"] = "");
|
|
450
|
-
const _ =
|
|
404
|
+
const _ = u.useCallback(
|
|
451
405
|
(f) => {
|
|
452
|
-
f && (f.indeterminate = !!o), typeof
|
|
406
|
+
f && (f.indeterminate = !!o), typeof n == "function" ? n(f) : n && (n.current = f);
|
|
453
407
|
},
|
|
454
|
-
[o,
|
|
408
|
+
[o, n]
|
|
455
409
|
);
|
|
456
410
|
return /* @__PURE__ */ b(
|
|
457
411
|
"label",
|
|
458
412
|
{
|
|
459
|
-
className:
|
|
460
|
-
style: { ...c, ...
|
|
413
|
+
className: e ? `gloss-base-checkbox ${e}` : "gloss-base-checkbox",
|
|
414
|
+
style: { ...c, ...a },
|
|
461
415
|
...g,
|
|
462
416
|
children: [
|
|
463
|
-
/* @__PURE__ */
|
|
417
|
+
/* @__PURE__ */ i(
|
|
464
418
|
"input",
|
|
465
419
|
{
|
|
466
420
|
ref: _,
|
|
@@ -471,30 +425,30 @@ const se = {
|
|
|
471
425
|
...d
|
|
472
426
|
}
|
|
473
427
|
),
|
|
474
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ i("span", { className: "gloss-base-checkbox__track" }),
|
|
475
429
|
t
|
|
476
430
|
]
|
|
477
431
|
}
|
|
478
432
|
);
|
|
479
433
|
}
|
|
480
434
|
);
|
|
481
|
-
|
|
482
|
-
const
|
|
435
|
+
se.displayName = "BaseCheckbox";
|
|
436
|
+
const ae = {
|
|
483
437
|
trackBg: "--_track-bg",
|
|
484
438
|
trackBorder: "--_track-border",
|
|
485
439
|
dotColor: "--_dot-color",
|
|
486
440
|
trackSize: "--_track-size"
|
|
487
|
-
},
|
|
488
|
-
({ definition: s, className:
|
|
489
|
-
const { style:
|
|
441
|
+
}, oe = u.forwardRef(
|
|
442
|
+
({ definition: s, className: e, style: a, children: o, checked: t, disabled: l, ...r }, d) => {
|
|
443
|
+
const { style: n, dataAttrs: c } = p(s, ae);
|
|
490
444
|
return l && (c["data-disabled"] = ""), t && (c["data-checked"] = ""), /* @__PURE__ */ b(
|
|
491
445
|
"label",
|
|
492
446
|
{
|
|
493
|
-
className:
|
|
494
|
-
style: { ...
|
|
447
|
+
className: e ? `gloss-base-radio ${e}` : "gloss-base-radio",
|
|
448
|
+
style: { ...n, ...a },
|
|
495
449
|
...c,
|
|
496
450
|
children: [
|
|
497
|
-
/* @__PURE__ */
|
|
451
|
+
/* @__PURE__ */ i(
|
|
498
452
|
"input",
|
|
499
453
|
{
|
|
500
454
|
ref: d,
|
|
@@ -505,32 +459,32 @@ const te = {
|
|
|
505
459
|
...r
|
|
506
460
|
}
|
|
507
461
|
),
|
|
508
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ i("span", { className: "gloss-base-radio__track" }),
|
|
509
463
|
o
|
|
510
464
|
]
|
|
511
465
|
}
|
|
512
466
|
);
|
|
513
467
|
}
|
|
514
468
|
);
|
|
515
|
-
|
|
516
|
-
const
|
|
469
|
+
oe.displayName = "BaseRadio";
|
|
470
|
+
const te = {
|
|
517
471
|
trackBg: "--_track-bg",
|
|
518
472
|
trackBgActive: "--_track-bg-active",
|
|
519
473
|
thumbBg: "--_thumb-bg",
|
|
520
474
|
trackWidth: "--_track-width",
|
|
521
475
|
trackHeight: "--_track-height",
|
|
522
476
|
thumbSize: "--_thumb-size"
|
|
523
|
-
},
|
|
524
|
-
({ definition: s, className:
|
|
525
|
-
const { style:
|
|
477
|
+
}, re = u.forwardRef(
|
|
478
|
+
({ definition: s, className: e, style: a, children: o, checked: t, disabled: l, ...r }, d) => {
|
|
479
|
+
const { style: n, dataAttrs: c } = p(s, te);
|
|
526
480
|
return l && (c["data-disabled"] = ""), t && (c["data-checked"] = ""), /* @__PURE__ */ b(
|
|
527
481
|
"label",
|
|
528
482
|
{
|
|
529
|
-
className:
|
|
530
|
-
style: { ...
|
|
483
|
+
className: e ? `gloss-base-toggle ${e}` : "gloss-base-toggle",
|
|
484
|
+
style: { ...n, ...a },
|
|
531
485
|
...c,
|
|
532
486
|
children: [
|
|
533
|
-
/* @__PURE__ */
|
|
487
|
+
/* @__PURE__ */ i(
|
|
534
488
|
"input",
|
|
535
489
|
{
|
|
536
490
|
ref: d,
|
|
@@ -542,15 +496,15 @@ const le = {
|
|
|
542
496
|
...r
|
|
543
497
|
}
|
|
544
498
|
),
|
|
545
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ i("span", { className: "gloss-base-toggle__track", children: /* @__PURE__ */ i("span", { className: "gloss-base-toggle__thumb" }) }),
|
|
546
500
|
o
|
|
547
501
|
]
|
|
548
502
|
}
|
|
549
503
|
);
|
|
550
504
|
}
|
|
551
505
|
);
|
|
552
|
-
|
|
553
|
-
const
|
|
506
|
+
re.displayName = "BaseToggle";
|
|
507
|
+
const le = {
|
|
554
508
|
bg: "--_bg",
|
|
555
509
|
borderColor: "--_border-color",
|
|
556
510
|
radius: "--_radius",
|
|
@@ -558,12 +512,12 @@ const de = {
|
|
|
558
512
|
minHeight: "--_min-height",
|
|
559
513
|
padding: "--_padding"
|
|
560
514
|
};
|
|
561
|
-
function
|
|
562
|
-
const { definition:
|
|
563
|
-
return /* @__PURE__ */
|
|
515
|
+
function ie(s) {
|
|
516
|
+
const { definition: e, className: a, style: o, children: t, ...l } = s, { style: r, dataAttrs: d } = p(e, le);
|
|
517
|
+
return /* @__PURE__ */ i(
|
|
564
518
|
"div",
|
|
565
519
|
{
|
|
566
|
-
className:
|
|
520
|
+
className: a ? `gloss-base-select ${a}` : "gloss-base-select",
|
|
567
521
|
style: { ...r, ...o },
|
|
568
522
|
...d,
|
|
569
523
|
...l,
|
|
@@ -571,33 +525,33 @@ function ne(s) {
|
|
|
571
525
|
}
|
|
572
526
|
);
|
|
573
527
|
}
|
|
574
|
-
|
|
575
|
-
const
|
|
576
|
-
({ className: s, children:
|
|
528
|
+
ie.displayName = "BaseSelect";
|
|
529
|
+
const de = u.forwardRef(
|
|
530
|
+
({ className: s, children: e, ...a }, o) => /* @__PURE__ */ i(
|
|
577
531
|
"button",
|
|
578
532
|
{
|
|
579
533
|
ref: o,
|
|
580
534
|
type: "button",
|
|
581
535
|
className: s ? `gloss-base-select__trigger ${s}` : "gloss-base-select__trigger",
|
|
582
|
-
...
|
|
583
|
-
children:
|
|
536
|
+
...a,
|
|
537
|
+
children: e
|
|
584
538
|
}
|
|
585
539
|
)
|
|
586
540
|
);
|
|
587
|
-
|
|
588
|
-
const
|
|
541
|
+
de.displayName = "BaseSelectTrigger";
|
|
542
|
+
const ne = {
|
|
589
543
|
bg: "--_dropdown-bg",
|
|
590
544
|
borderColor: "--_dropdown-border-color",
|
|
591
545
|
radius: "--_dropdown-radius",
|
|
592
546
|
elevation: "--_dropdown-elevation",
|
|
593
547
|
maxHeight: "--_dropdown-max-height"
|
|
594
548
|
};
|
|
595
|
-
function
|
|
596
|
-
const { definition:
|
|
597
|
-
return /* @__PURE__ */
|
|
549
|
+
function ce(s) {
|
|
550
|
+
const { definition: e, className: a, style: o, children: t, ...l } = s, { style: r } = p(e, ne);
|
|
551
|
+
return /* @__PURE__ */ i(
|
|
598
552
|
"div",
|
|
599
553
|
{
|
|
600
|
-
className:
|
|
554
|
+
className: a ? `gloss-base-select__dropdown ${a}` : "gloss-base-select__dropdown",
|
|
601
555
|
style: { ...r, ...o },
|
|
602
556
|
role: "listbox",
|
|
603
557
|
...l,
|
|
@@ -605,43 +559,43 @@ function _e(s) {
|
|
|
605
559
|
}
|
|
606
560
|
);
|
|
607
561
|
}
|
|
608
|
-
|
|
609
|
-
const
|
|
610
|
-
({ className: s, children:
|
|
562
|
+
ce.displayName = "BaseSelectDropdown";
|
|
563
|
+
const ge = u.forwardRef(
|
|
564
|
+
({ className: s, children: e, selected: a, disabled: o, ...t }, l) => {
|
|
611
565
|
const r = {};
|
|
612
|
-
return
|
|
566
|
+
return a && (r["data-selected"] = ""), o && (r["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
613
567
|
"div",
|
|
614
568
|
{
|
|
615
569
|
ref: l,
|
|
616
570
|
role: "option",
|
|
617
|
-
"aria-selected":
|
|
571
|
+
"aria-selected": a,
|
|
618
572
|
"aria-disabled": o,
|
|
619
573
|
className: s ? `gloss-base-select__option ${s}` : "gloss-base-select__option",
|
|
620
574
|
...r,
|
|
621
575
|
...t,
|
|
622
|
-
children:
|
|
576
|
+
children: e
|
|
623
577
|
}
|
|
624
578
|
);
|
|
625
579
|
}
|
|
626
580
|
);
|
|
627
|
-
|
|
628
|
-
function
|
|
581
|
+
ge.displayName = "BaseSelectOption";
|
|
582
|
+
function _e({ label: s, className: e, children: a, ...o }) {
|
|
629
583
|
return /* @__PURE__ */ b(
|
|
630
584
|
"div",
|
|
631
585
|
{
|
|
632
586
|
role: "group",
|
|
633
587
|
"aria-label": s,
|
|
634
|
-
className:
|
|
588
|
+
className: e ? `gloss-base-select__group ${e}` : "gloss-base-select__group",
|
|
635
589
|
...o,
|
|
636
590
|
children: [
|
|
637
|
-
s && /* @__PURE__ */
|
|
638
|
-
|
|
591
|
+
s && /* @__PURE__ */ i("div", { className: "gloss-base-select__group-label", children: s }),
|
|
592
|
+
a
|
|
639
593
|
]
|
|
640
594
|
}
|
|
641
595
|
);
|
|
642
596
|
}
|
|
643
|
-
|
|
644
|
-
const
|
|
597
|
+
_e.displayName = "BaseSelectGroup";
|
|
598
|
+
const ue = {
|
|
645
599
|
trackBg: "--_track-bg",
|
|
646
600
|
trackActiveBg: "--_track-active-bg",
|
|
647
601
|
thumbBg: "--_thumb-bg",
|
|
@@ -649,44 +603,44 @@ const be = {
|
|
|
649
603
|
thumbSize: "--_thumb-size",
|
|
650
604
|
trackHeight: "--_track-height",
|
|
651
605
|
thumbShadow: "--_thumb-shadow"
|
|
652
|
-
},
|
|
653
|
-
function
|
|
606
|
+
}, pe = {};
|
|
607
|
+
function be({
|
|
654
608
|
definition: s,
|
|
655
|
-
className:
|
|
656
|
-
style:
|
|
609
|
+
className: e,
|
|
610
|
+
style: a,
|
|
657
611
|
orientation: o = "horizontal",
|
|
658
612
|
disabled: t,
|
|
659
613
|
children: l,
|
|
660
614
|
...r
|
|
661
615
|
}) {
|
|
662
|
-
const { style: d, dataAttrs:
|
|
663
|
-
return o !== "horizontal" && (
|
|
616
|
+
const { style: d, dataAttrs: n } = p(s, ue, pe);
|
|
617
|
+
return o !== "horizontal" && (n["data-orientation"] = o), t && (n["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
664
618
|
"div",
|
|
665
619
|
{
|
|
666
|
-
className:
|
|
667
|
-
style: { ...d, ...
|
|
668
|
-
...
|
|
620
|
+
className: e ? `gloss-base-slider ${e}` : "gloss-base-slider",
|
|
621
|
+
style: { ...d, ...a },
|
|
622
|
+
...n,
|
|
669
623
|
...r,
|
|
670
624
|
children: l
|
|
671
625
|
}
|
|
672
626
|
);
|
|
673
627
|
}
|
|
674
|
-
|
|
675
|
-
const
|
|
628
|
+
be.displayName = "BaseSlider";
|
|
629
|
+
const fe = {
|
|
676
630
|
bg: "--_bg",
|
|
677
631
|
border: "--_border",
|
|
678
632
|
radius: "--_radius",
|
|
679
633
|
elevation: "--_elevation",
|
|
680
634
|
padding: "--_padding"
|
|
681
|
-
},
|
|
682
|
-
({ definition: s, className:
|
|
683
|
-
const { style: r, dataAttrs: d } =
|
|
684
|
-
return /* @__PURE__ */
|
|
635
|
+
}, me = u.forwardRef(
|
|
636
|
+
({ definition: s, className: e, style: a, children: o, ...t }, l) => {
|
|
637
|
+
const { style: r, dataAttrs: d } = p(s, fe);
|
|
638
|
+
return /* @__PURE__ */ i(
|
|
685
639
|
"div",
|
|
686
640
|
{
|
|
687
641
|
ref: l,
|
|
688
|
-
className:
|
|
689
|
-
style: { ...r, ...
|
|
642
|
+
className: e ? `gloss-base-card ${e}` : "gloss-base-card",
|
|
643
|
+
style: { ...r, ...a },
|
|
690
644
|
...d,
|
|
691
645
|
...t,
|
|
692
646
|
children: o
|
|
@@ -694,15 +648,15 @@ const ye = {
|
|
|
694
648
|
);
|
|
695
649
|
}
|
|
696
650
|
);
|
|
697
|
-
|
|
698
|
-
const
|
|
699
|
-
({ definition: s, className:
|
|
700
|
-
const r = { ...
|
|
701
|
-
return s?.padding && (r["--_header-padding"] = s.padding), /* @__PURE__ */
|
|
651
|
+
me.displayName = "BaseCard";
|
|
652
|
+
const ye = u.forwardRef(
|
|
653
|
+
({ definition: s, className: e, style: a, children: o, ...t }, l) => {
|
|
654
|
+
const r = { ...a };
|
|
655
|
+
return s?.padding && (r["--_header-padding"] = s.padding), /* @__PURE__ */ i(
|
|
702
656
|
"div",
|
|
703
657
|
{
|
|
704
658
|
ref: l,
|
|
705
|
-
className:
|
|
659
|
+
className: e ? `gloss-base-card__header ${e}` : "gloss-base-card__header",
|
|
706
660
|
style: r,
|
|
707
661
|
...t,
|
|
708
662
|
children: o
|
|
@@ -710,15 +664,15 @@ const he = p.forwardRef(
|
|
|
710
664
|
);
|
|
711
665
|
}
|
|
712
666
|
);
|
|
713
|
-
|
|
714
|
-
const
|
|
715
|
-
({ definition: s, className:
|
|
716
|
-
const r = { ...
|
|
717
|
-
return s?.padding && (r["--_body-padding"] = s.padding), /* @__PURE__ */
|
|
667
|
+
ye.displayName = "BaseCardHeader";
|
|
668
|
+
const ve = u.forwardRef(
|
|
669
|
+
({ definition: s, className: e, style: a, children: o, ...t }, l) => {
|
|
670
|
+
const r = { ...a };
|
|
671
|
+
return s?.padding && (r["--_body-padding"] = s.padding), /* @__PURE__ */ i(
|
|
718
672
|
"div",
|
|
719
673
|
{
|
|
720
674
|
ref: l,
|
|
721
|
-
className:
|
|
675
|
+
className: e ? `gloss-base-card__body ${e}` : "gloss-base-card__body",
|
|
722
676
|
style: r,
|
|
723
677
|
...t,
|
|
724
678
|
children: o
|
|
@@ -726,15 +680,15 @@ const Be = p.forwardRef(
|
|
|
726
680
|
);
|
|
727
681
|
}
|
|
728
682
|
);
|
|
729
|
-
|
|
730
|
-
const
|
|
731
|
-
({ definition: s, className:
|
|
732
|
-
const r = { ...
|
|
733
|
-
return s?.padding && (r["--_footer-padding"] = s.padding), /* @__PURE__ */
|
|
683
|
+
ve.displayName = "BaseCardBody";
|
|
684
|
+
const he = u.forwardRef(
|
|
685
|
+
({ definition: s, className: e, style: a, children: o, ...t }, l) => {
|
|
686
|
+
const r = { ...a };
|
|
687
|
+
return s?.padding && (r["--_footer-padding"] = s.padding), /* @__PURE__ */ i(
|
|
734
688
|
"div",
|
|
735
689
|
{
|
|
736
690
|
ref: l,
|
|
737
|
-
className:
|
|
691
|
+
className: e ? `gloss-base-card__footer ${e}` : "gloss-base-card__footer",
|
|
738
692
|
style: r,
|
|
739
693
|
...t,
|
|
740
694
|
children: o
|
|
@@ -742,72 +696,72 @@ const Se = p.forwardRef(
|
|
|
742
696
|
);
|
|
743
697
|
}
|
|
744
698
|
);
|
|
745
|
-
|
|
746
|
-
const
|
|
747
|
-
({ src: s, alt:
|
|
748
|
-
const
|
|
749
|
-
return
|
|
699
|
+
he.displayName = "BaseCardFooter";
|
|
700
|
+
const Be = u.forwardRef(
|
|
701
|
+
({ src: s, alt: e, height: a, className: o, style: t, children: l, ...r }, d) => {
|
|
702
|
+
const n = { ...t };
|
|
703
|
+
return a && (n.height = a), /* @__PURE__ */ i(
|
|
750
704
|
"div",
|
|
751
705
|
{
|
|
752
706
|
ref: d,
|
|
753
707
|
className: o ? `gloss-base-card__media ${o}` : "gloss-base-card__media",
|
|
754
|
-
style:
|
|
708
|
+
style: n,
|
|
755
709
|
...r,
|
|
756
|
-
children: s ? /* @__PURE__ */
|
|
710
|
+
children: s ? /* @__PURE__ */ i("img", { src: s, alt: e || "" }) : l
|
|
757
711
|
}
|
|
758
712
|
);
|
|
759
713
|
}
|
|
760
714
|
);
|
|
761
|
-
|
|
762
|
-
const
|
|
763
|
-
({ className: s, children:
|
|
715
|
+
Be.displayName = "BaseCardMedia";
|
|
716
|
+
const Se = u.forwardRef(
|
|
717
|
+
({ className: s, children: e, ...a }, o) => /* @__PURE__ */ i(
|
|
764
718
|
"h3",
|
|
765
719
|
{
|
|
766
720
|
ref: o,
|
|
767
721
|
className: s ? `gloss-base-card__title ${s}` : "gloss-base-card__title",
|
|
768
|
-
...
|
|
769
|
-
children:
|
|
722
|
+
...a,
|
|
723
|
+
children: e
|
|
770
724
|
}
|
|
771
725
|
)
|
|
772
726
|
);
|
|
773
|
-
|
|
774
|
-
const
|
|
775
|
-
({ className: s, children:
|
|
727
|
+
Se.displayName = "BaseCardTitle";
|
|
728
|
+
const Ae = u.forwardRef(
|
|
729
|
+
({ className: s, children: e, ...a }, o) => /* @__PURE__ */ i(
|
|
776
730
|
"p",
|
|
777
731
|
{
|
|
778
732
|
ref: o,
|
|
779
733
|
className: s ? `gloss-base-card__subtitle ${s}` : "gloss-base-card__subtitle",
|
|
780
|
-
...
|
|
781
|
-
children:
|
|
734
|
+
...a,
|
|
735
|
+
children: e
|
|
782
736
|
}
|
|
783
737
|
)
|
|
784
738
|
);
|
|
785
|
-
|
|
786
|
-
const
|
|
787
|
-
({ className: s, children:
|
|
739
|
+
Ae.displayName = "BaseCardSubtitle";
|
|
740
|
+
const ke = u.forwardRef(
|
|
741
|
+
({ className: s, children: e, ...a }, o) => /* @__PURE__ */ i(
|
|
788
742
|
"div",
|
|
789
743
|
{
|
|
790
744
|
ref: o,
|
|
791
745
|
className: s ? `gloss-base-card__actions ${s}` : "gloss-base-card__actions",
|
|
792
|
-
...
|
|
793
|
-
children:
|
|
746
|
+
...a,
|
|
747
|
+
children: e
|
|
794
748
|
}
|
|
795
749
|
)
|
|
796
750
|
);
|
|
797
|
-
|
|
798
|
-
const
|
|
751
|
+
ke.displayName = "BaseCardActions";
|
|
752
|
+
const Ne = {
|
|
799
753
|
borderColor: "--_border-color",
|
|
800
754
|
radius: "--_radius",
|
|
801
755
|
gap: "--_gap"
|
|
802
|
-
},
|
|
803
|
-
({ definition: s, className:
|
|
804
|
-
const { style: r, dataAttrs: d } =
|
|
805
|
-
return /* @__PURE__ */
|
|
756
|
+
}, Ce = u.forwardRef(
|
|
757
|
+
({ definition: s, className: e, style: a, children: o, ...t }, l) => {
|
|
758
|
+
const { style: r, dataAttrs: d } = p(s, Ne);
|
|
759
|
+
return /* @__PURE__ */ i(
|
|
806
760
|
"div",
|
|
807
761
|
{
|
|
808
762
|
ref: l,
|
|
809
|
-
className:
|
|
810
|
-
style: { ...r, ...
|
|
763
|
+
className: e ? `gloss-base-accordion ${e}` : "gloss-base-accordion",
|
|
764
|
+
style: { ...r, ...a },
|
|
811
765
|
...d,
|
|
812
766
|
...t,
|
|
813
767
|
children: o
|
|
@@ -815,67 +769,67 @@ const xe = {
|
|
|
815
769
|
);
|
|
816
770
|
}
|
|
817
771
|
);
|
|
818
|
-
|
|
819
|
-
const
|
|
820
|
-
({ className: s, style:
|
|
772
|
+
Ce.displayName = "BaseAccordion";
|
|
773
|
+
const xe = u.forwardRef(
|
|
774
|
+
({ className: s, style: e, children: a, open: o, ...t }, l) => {
|
|
821
775
|
const r = {};
|
|
822
|
-
return o && (r["data-open"] = ""), /* @__PURE__ */
|
|
776
|
+
return o && (r["data-open"] = ""), /* @__PURE__ */ i(
|
|
823
777
|
"div",
|
|
824
778
|
{
|
|
825
779
|
ref: l,
|
|
826
780
|
className: s ? `gloss-base-accordion__item ${s}` : "gloss-base-accordion__item",
|
|
827
|
-
style:
|
|
781
|
+
style: e,
|
|
828
782
|
...r,
|
|
829
783
|
...t,
|
|
830
|
-
children:
|
|
784
|
+
children: a
|
|
831
785
|
}
|
|
832
786
|
);
|
|
833
787
|
}
|
|
834
788
|
);
|
|
835
|
-
|
|
836
|
-
const Re =
|
|
837
|
-
({ className: s, children:
|
|
789
|
+
xe.displayName = "BaseAccordionItem";
|
|
790
|
+
const Re = u.forwardRef(
|
|
791
|
+
({ className: s, children: e, ...a }, o) => /* @__PURE__ */ i(
|
|
838
792
|
"button",
|
|
839
793
|
{
|
|
840
794
|
ref: o,
|
|
841
795
|
type: "button",
|
|
842
796
|
className: s ? `gloss-base-accordion__trigger ${s}` : "gloss-base-accordion__trigger",
|
|
843
|
-
...
|
|
844
|
-
children:
|
|
797
|
+
...a,
|
|
798
|
+
children: e
|
|
845
799
|
}
|
|
846
800
|
)
|
|
847
801
|
);
|
|
848
802
|
Re.displayName = "BaseAccordionTrigger";
|
|
849
|
-
const
|
|
850
|
-
({ className: s, style:
|
|
803
|
+
const $e = u.forwardRef(
|
|
804
|
+
({ className: s, style: e, children: a, ...o }, t) => /* @__PURE__ */ i(
|
|
851
805
|
"div",
|
|
852
806
|
{
|
|
853
807
|
ref: t,
|
|
854
808
|
className: s ? `gloss-base-accordion__content ${s}` : "gloss-base-accordion__content",
|
|
855
|
-
style:
|
|
809
|
+
style: e,
|
|
856
810
|
...o,
|
|
857
|
-
children:
|
|
811
|
+
children: a
|
|
858
812
|
}
|
|
859
813
|
)
|
|
860
814
|
);
|
|
861
|
-
|
|
862
|
-
const
|
|
815
|
+
$e.displayName = "BaseAccordionContent";
|
|
816
|
+
const Pe = {
|
|
863
817
|
bg: "--_bg",
|
|
864
818
|
borderColor: "--_border-color",
|
|
865
819
|
radius: "--_radius",
|
|
866
820
|
elevation: "--_elevation",
|
|
867
821
|
padding: "--_padding",
|
|
868
822
|
minWidth: "--_min-width"
|
|
869
|
-
},
|
|
870
|
-
({ definition: s, className:
|
|
871
|
-
const { style: r, dataAttrs: d } =
|
|
872
|
-
return /* @__PURE__ */
|
|
823
|
+
}, we = u.forwardRef(
|
|
824
|
+
({ definition: s, className: e, style: a, children: o, ...t }, l) => {
|
|
825
|
+
const { style: r, dataAttrs: d } = p(s, Pe);
|
|
826
|
+
return /* @__PURE__ */ i(
|
|
873
827
|
"div",
|
|
874
828
|
{
|
|
875
829
|
ref: l,
|
|
876
830
|
role: "menu",
|
|
877
|
-
className:
|
|
878
|
-
style: { ...r, ...
|
|
831
|
+
className: e ? `gloss-base-menu ${e}` : "gloss-base-menu",
|
|
832
|
+
style: { ...r, ...a },
|
|
879
833
|
...d,
|
|
880
834
|
...t,
|
|
881
835
|
children: o
|
|
@@ -883,42 +837,42 @@ const ze = {
|
|
|
883
837
|
);
|
|
884
838
|
}
|
|
885
839
|
);
|
|
886
|
-
|
|
887
|
-
function
|
|
840
|
+
we.displayName = "BaseMenu";
|
|
841
|
+
function ze({ label: s, className: e, style: a, children: o, ...t }) {
|
|
888
842
|
return /* @__PURE__ */ b(
|
|
889
843
|
"div",
|
|
890
844
|
{
|
|
891
845
|
role: "group",
|
|
892
846
|
"aria-label": s,
|
|
893
|
-
className:
|
|
894
|
-
style:
|
|
847
|
+
className: e ? `gloss-base-menu__group ${e}` : "gloss-base-menu__group",
|
|
848
|
+
style: a,
|
|
895
849
|
...t,
|
|
896
850
|
children: [
|
|
897
|
-
s && /* @__PURE__ */
|
|
851
|
+
s && /* @__PURE__ */ i("div", { className: "gloss-base-menu__group-label", children: s }),
|
|
898
852
|
o
|
|
899
853
|
]
|
|
900
854
|
}
|
|
901
855
|
);
|
|
902
856
|
}
|
|
903
|
-
|
|
904
|
-
const
|
|
857
|
+
ze.displayName = "BaseMenuGroup";
|
|
858
|
+
const Me = {
|
|
905
859
|
padding: "--_item-padding",
|
|
906
860
|
fontSize: "--_item-font-size",
|
|
907
861
|
color: "--_item-color",
|
|
908
862
|
hoverBg: "--_item-hover-bg"
|
|
909
|
-
},
|
|
910
|
-
({ definition: s, className:
|
|
911
|
-
const { style: c, dataAttrs: g } =
|
|
912
|
-
return t && (g["data-disabled"] = ""), l && (g["data-active"] = ""), /* @__PURE__ */
|
|
863
|
+
}, Te = u.forwardRef(
|
|
864
|
+
({ definition: s, className: e, style: a, children: o, disabled: t, active: l, as: r = "div", ...d }, n) => {
|
|
865
|
+
const { style: c, dataAttrs: g } = p(s, Me);
|
|
866
|
+
return t && (g["data-disabled"] = ""), l && (g["data-active"] = ""), /* @__PURE__ */ i(
|
|
913
867
|
r,
|
|
914
868
|
{
|
|
915
|
-
ref:
|
|
869
|
+
ref: n,
|
|
916
870
|
role: "menuitem",
|
|
917
871
|
tabIndex: t ? -1 : 0,
|
|
918
872
|
"aria-disabled": t || void 0,
|
|
919
873
|
"aria-current": l ? "page" : void 0,
|
|
920
|
-
className:
|
|
921
|
-
style: { ...c, ...
|
|
874
|
+
className: e ? `gloss-base-menu__item ${e}` : "gloss-base-menu__item",
|
|
875
|
+
style: { ...c, ...a },
|
|
922
876
|
...g,
|
|
923
877
|
...d,
|
|
924
878
|
children: o
|
|
@@ -926,9 +880,9 @@ const De = {
|
|
|
926
880
|
);
|
|
927
881
|
}
|
|
928
882
|
);
|
|
929
|
-
|
|
930
|
-
function
|
|
931
|
-
return /* @__PURE__ */
|
|
883
|
+
Te.displayName = "BaseMenuItem";
|
|
884
|
+
function De({ className: s }) {
|
|
885
|
+
return /* @__PURE__ */ i(
|
|
932
886
|
"div",
|
|
933
887
|
{
|
|
934
888
|
role: "separator",
|
|
@@ -936,8 +890,8 @@ function Ve({ className: s }) {
|
|
|
936
890
|
}
|
|
937
891
|
);
|
|
938
892
|
}
|
|
939
|
-
|
|
940
|
-
const
|
|
893
|
+
De.displayName = "BaseMenuDivider";
|
|
894
|
+
const Ie = {
|
|
941
895
|
bg: "--_bg",
|
|
942
896
|
color: "--_color",
|
|
943
897
|
radius: "--_radius",
|
|
@@ -945,43 +899,43 @@ const Ee = {
|
|
|
945
899
|
fontSize: "--_font-size",
|
|
946
900
|
maxWidth: "--_max-width",
|
|
947
901
|
arrowSize: "--_arrow-size"
|
|
948
|
-
},
|
|
949
|
-
({ definition: s, className:
|
|
950
|
-
const { style: d, dataAttrs:
|
|
951
|
-
return
|
|
902
|
+
}, Ve = {}, Ee = u.forwardRef(
|
|
903
|
+
({ definition: s, className: e, style: a, children: o, placement: t = "top", ...l }, r) => {
|
|
904
|
+
const { style: d, dataAttrs: n } = p(s, Ie, Ve);
|
|
905
|
+
return n["data-placement"] = t, /* @__PURE__ */ b(
|
|
952
906
|
"div",
|
|
953
907
|
{
|
|
954
908
|
ref: r,
|
|
955
909
|
role: "tooltip",
|
|
956
|
-
className:
|
|
957
|
-
style: { ...d, ...
|
|
958
|
-
...
|
|
910
|
+
className: e ? `gloss-base-tooltip ${e}` : "gloss-base-tooltip",
|
|
911
|
+
style: { ...d, ...a },
|
|
912
|
+
...n,
|
|
959
913
|
...l,
|
|
960
914
|
children: [
|
|
961
|
-
/* @__PURE__ */
|
|
962
|
-
/* @__PURE__ */
|
|
915
|
+
/* @__PURE__ */ i("div", { className: "gloss-base-tooltip__content", children: o }),
|
|
916
|
+
/* @__PURE__ */ i("div", { className: "gloss-base-tooltip__arrow" })
|
|
963
917
|
]
|
|
964
918
|
}
|
|
965
919
|
);
|
|
966
920
|
}
|
|
967
921
|
);
|
|
968
|
-
|
|
969
|
-
const
|
|
922
|
+
Ee.displayName = "BaseTooltip";
|
|
923
|
+
const Oe = {
|
|
970
924
|
activeColor: "--_active-color",
|
|
971
925
|
inactiveColor: "--_inactive-color",
|
|
972
926
|
hoverColor: "--_hover-color",
|
|
973
927
|
starSize: "--_star-size",
|
|
974
928
|
gap: "--_gap"
|
|
975
|
-
},
|
|
976
|
-
({ definition: s, className:
|
|
977
|
-
const { style:
|
|
978
|
-
return t && (c["data-readonly"] = ""), l && (c["data-disabled"] = ""), /* @__PURE__ */
|
|
929
|
+
}, He = u.forwardRef(
|
|
930
|
+
({ definition: s, className: e, style: a, children: o, readOnly: t, disabled: l, ...r }, d) => {
|
|
931
|
+
const { style: n, dataAttrs: c } = p(s, Oe);
|
|
932
|
+
return t && (c["data-readonly"] = ""), l && (c["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
979
933
|
"div",
|
|
980
934
|
{
|
|
981
935
|
ref: d,
|
|
982
936
|
role: "radiogroup",
|
|
983
|
-
className:
|
|
984
|
-
style: { ...
|
|
937
|
+
className: e ? `gloss-base-rating ${e}` : "gloss-base-rating",
|
|
938
|
+
style: { ...n, ...a },
|
|
985
939
|
...c,
|
|
986
940
|
...r,
|
|
987
941
|
children: o
|
|
@@ -989,111 +943,111 @@ const Fe = {
|
|
|
989
943
|
);
|
|
990
944
|
}
|
|
991
945
|
);
|
|
992
|
-
|
|
993
|
-
const
|
|
946
|
+
He.displayName = "BaseRating";
|
|
947
|
+
const Ge = {
|
|
994
948
|
bg: "--_bg",
|
|
995
949
|
activeBg: "--_active-bg",
|
|
996
950
|
borderColor: "--_border-color",
|
|
997
951
|
radius: "--_radius",
|
|
998
952
|
padding: "--_padding",
|
|
999
953
|
fontSize: "--_font-size"
|
|
1000
|
-
},
|
|
1001
|
-
({ definition: s, className:
|
|
1002
|
-
const { style: d, dataAttrs:
|
|
1003
|
-
return t && (
|
|
954
|
+
}, Fe = u.forwardRef(
|
|
955
|
+
({ definition: s, className: e, style: a, children: o, disabled: t, ...l }, r) => {
|
|
956
|
+
const { style: d, dataAttrs: n } = p(s, Ge);
|
|
957
|
+
return t && (n["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
1004
958
|
"div",
|
|
1005
959
|
{
|
|
1006
960
|
ref: r,
|
|
1007
961
|
role: "radiogroup",
|
|
1008
|
-
className:
|
|
1009
|
-
style: { ...d, ...
|
|
1010
|
-
...
|
|
962
|
+
className: e ? `gloss-base-segmented-control ${e}` : "gloss-base-segmented-control",
|
|
963
|
+
style: { ...d, ...a },
|
|
964
|
+
...n,
|
|
1011
965
|
...l,
|
|
1012
966
|
children: o
|
|
1013
967
|
}
|
|
1014
968
|
);
|
|
1015
969
|
}
|
|
1016
970
|
);
|
|
1017
|
-
|
|
1018
|
-
const
|
|
971
|
+
Fe.displayName = "BaseSegmentedControl";
|
|
972
|
+
const Le = {
|
|
1019
973
|
bg: "--_bg",
|
|
1020
974
|
borderColor: "--_border-color",
|
|
1021
975
|
radius: "--_radius",
|
|
1022
976
|
elevation: "--_elevation",
|
|
1023
977
|
padding: "--_padding"
|
|
1024
978
|
};
|
|
1025
|
-
function
|
|
1026
|
-
const { style: l, dataAttrs: r } =
|
|
1027
|
-
return /* @__PURE__ */
|
|
979
|
+
function We({ definition: s, className: e, style: a, children: o, ...t }) {
|
|
980
|
+
const { style: l, dataAttrs: r } = p(s, Le);
|
|
981
|
+
return /* @__PURE__ */ i(
|
|
1028
982
|
"div",
|
|
1029
983
|
{
|
|
1030
|
-
className:
|
|
1031
|
-
style: { ...l, ...
|
|
984
|
+
className: e ? `gloss-base-datepicker ${e}` : "gloss-base-datepicker",
|
|
985
|
+
style: { ...l, ...a },
|
|
1032
986
|
...r,
|
|
1033
987
|
...t,
|
|
1034
988
|
children: o
|
|
1035
989
|
}
|
|
1036
990
|
);
|
|
1037
991
|
}
|
|
1038
|
-
|
|
1039
|
-
function Ue({ className: s, style:
|
|
1040
|
-
return /* @__PURE__ */
|
|
992
|
+
We.displayName = "BaseDatePicker";
|
|
993
|
+
function Ue({ className: s, style: e, children: a, ...o }) {
|
|
994
|
+
return /* @__PURE__ */ i(
|
|
1041
995
|
"div",
|
|
1042
996
|
{
|
|
1043
997
|
className: s ? `gloss-base-datepicker__header ${s}` : "gloss-base-datepicker__header",
|
|
1044
|
-
style:
|
|
998
|
+
style: e,
|
|
1045
999
|
...o,
|
|
1046
|
-
children:
|
|
1000
|
+
children: a
|
|
1047
1001
|
}
|
|
1048
1002
|
);
|
|
1049
1003
|
}
|
|
1050
1004
|
Ue.displayName = "BaseDatePickerHeader";
|
|
1051
|
-
function
|
|
1052
|
-
return /* @__PURE__ */
|
|
1005
|
+
function Xe({ className: s, style: e, children: a, ...o }) {
|
|
1006
|
+
return /* @__PURE__ */ i(
|
|
1053
1007
|
"div",
|
|
1054
1008
|
{
|
|
1055
1009
|
className: s ? `gloss-base-datepicker__calendar ${s}` : "gloss-base-datepicker__calendar",
|
|
1056
|
-
style:
|
|
1010
|
+
style: e,
|
|
1057
1011
|
role: "grid",
|
|
1058
1012
|
...o,
|
|
1059
|
-
children:
|
|
1013
|
+
children: a
|
|
1060
1014
|
}
|
|
1061
1015
|
);
|
|
1062
1016
|
}
|
|
1063
|
-
|
|
1064
|
-
const
|
|
1017
|
+
Xe.displayName = "BaseDatePickerCalendar";
|
|
1018
|
+
const je = {
|
|
1065
1019
|
bg: "--_day-bg",
|
|
1066
1020
|
color: "--_day-color",
|
|
1067
1021
|
radius: "--_day-radius",
|
|
1068
1022
|
size: "--_day-size"
|
|
1069
1023
|
};
|
|
1070
|
-
function
|
|
1024
|
+
function Ke({
|
|
1071
1025
|
definition: s,
|
|
1072
|
-
className:
|
|
1073
|
-
style:
|
|
1026
|
+
className: e,
|
|
1027
|
+
style: a,
|
|
1074
1028
|
selected: o,
|
|
1075
1029
|
today: t,
|
|
1076
1030
|
outsideMonth: l,
|
|
1077
1031
|
disabled: r,
|
|
1078
1032
|
children: d,
|
|
1079
|
-
...
|
|
1033
|
+
...n
|
|
1080
1034
|
}) {
|
|
1081
|
-
const { style: c, dataAttrs: g } =
|
|
1082
|
-
return o && (g["data-selected"] = ""), t && (g["data-today"] = ""), r && (g["data-disabled"] = ""), l && (g["data-outside-month"] = ""), /* @__PURE__ */
|
|
1035
|
+
const { style: c, dataAttrs: g } = p(s, je);
|
|
1036
|
+
return o && (g["data-selected"] = ""), t && (g["data-today"] = ""), r && (g["data-disabled"] = ""), l && (g["data-outside-month"] = ""), /* @__PURE__ */ i(
|
|
1083
1037
|
"button",
|
|
1084
1038
|
{
|
|
1085
1039
|
type: "button",
|
|
1086
|
-
className:
|
|
1087
|
-
style: { ...c, ...
|
|
1040
|
+
className: e ? `gloss-base-datepicker__day ${e}` : "gloss-base-datepicker__day",
|
|
1041
|
+
style: { ...c, ...a },
|
|
1088
1042
|
disabled: r,
|
|
1089
1043
|
...g,
|
|
1090
|
-
...
|
|
1044
|
+
...n,
|
|
1091
1045
|
children: d
|
|
1092
1046
|
}
|
|
1093
1047
|
);
|
|
1094
1048
|
}
|
|
1095
|
-
|
|
1096
|
-
const
|
|
1049
|
+
Ke.displayName = "BaseDatePickerDay";
|
|
1050
|
+
const Ze = {
|
|
1097
1051
|
bg: "--_bg",
|
|
1098
1052
|
borderColor: "--_border-color",
|
|
1099
1053
|
radius: "--_radius",
|
|
@@ -1101,101 +1055,101 @@ const qe = {
|
|
|
1101
1055
|
padding: "--_padding",
|
|
1102
1056
|
cellHeight: "--_cell-height"
|
|
1103
1057
|
};
|
|
1104
|
-
function
|
|
1105
|
-
const { style: l, dataAttrs: r } =
|
|
1106
|
-
return /* @__PURE__ */
|
|
1058
|
+
function Ye({ definition: s, className: e, style: a, children: o, ...t }) {
|
|
1059
|
+
const { style: l, dataAttrs: r } = p(s, Ze);
|
|
1060
|
+
return /* @__PURE__ */ i(
|
|
1107
1061
|
"div",
|
|
1108
1062
|
{
|
|
1109
|
-
className:
|
|
1110
|
-
style: { ...l, ...
|
|
1063
|
+
className: e ? `gloss-base-timepicker ${e}` : "gloss-base-timepicker",
|
|
1064
|
+
style: { ...l, ...a },
|
|
1111
1065
|
...r,
|
|
1112
1066
|
...t,
|
|
1113
1067
|
children: o
|
|
1114
1068
|
}
|
|
1115
1069
|
);
|
|
1116
1070
|
}
|
|
1117
|
-
|
|
1118
|
-
function
|
|
1119
|
-
return /* @__PURE__ */
|
|
1071
|
+
Ye.displayName = "BaseTimePicker";
|
|
1072
|
+
function qe({ className: s, style: e, children: a, ...o }) {
|
|
1073
|
+
return /* @__PURE__ */ i(
|
|
1120
1074
|
"div",
|
|
1121
1075
|
{
|
|
1122
1076
|
className: s ? `gloss-base-timepicker__column ${s}` : "gloss-base-timepicker__column",
|
|
1123
|
-
style:
|
|
1077
|
+
style: e,
|
|
1124
1078
|
role: "listbox",
|
|
1125
1079
|
...o,
|
|
1126
|
-
children:
|
|
1080
|
+
children: a
|
|
1127
1081
|
}
|
|
1128
1082
|
);
|
|
1129
1083
|
}
|
|
1130
|
-
|
|
1131
|
-
function
|
|
1132
|
-
return /* @__PURE__ */
|
|
1084
|
+
qe.displayName = "BaseTimePickerColumn";
|
|
1085
|
+
function Je({ className: s, style: e, selected: a, disabled: o, children: t, ...l }) {
|
|
1086
|
+
return /* @__PURE__ */ i(
|
|
1133
1087
|
"button",
|
|
1134
1088
|
{
|
|
1135
1089
|
type: "button",
|
|
1136
1090
|
className: s ? `gloss-base-timepicker__cell ${s}` : "gloss-base-timepicker__cell",
|
|
1137
|
-
style:
|
|
1091
|
+
style: e,
|
|
1138
1092
|
role: "option",
|
|
1139
|
-
"aria-selected":
|
|
1093
|
+
"aria-selected": a,
|
|
1140
1094
|
disabled: o,
|
|
1141
|
-
"data-selected":
|
|
1095
|
+
"data-selected": a ? "" : void 0,
|
|
1142
1096
|
"data-disabled": o ? "" : void 0,
|
|
1143
1097
|
...l,
|
|
1144
1098
|
children: t
|
|
1145
1099
|
}
|
|
1146
1100
|
);
|
|
1147
1101
|
}
|
|
1148
|
-
|
|
1149
|
-
const
|
|
1102
|
+
Je.displayName = "BaseTimePickerCell";
|
|
1103
|
+
const Qe = {
|
|
1150
1104
|
bg: "--_bg",
|
|
1151
1105
|
borderColor: "--_border-color",
|
|
1152
1106
|
radius: "--_radius",
|
|
1153
1107
|
elevation: "--_elevation",
|
|
1154
1108
|
gap: "--_gap"
|
|
1155
1109
|
};
|
|
1156
|
-
function
|
|
1157
|
-
const { style: l, dataAttrs: r } =
|
|
1158
|
-
return /* @__PURE__ */
|
|
1110
|
+
function es({ definition: s, className: e, style: a, children: o, ...t }) {
|
|
1111
|
+
const { style: l, dataAttrs: r } = p(s, Qe);
|
|
1112
|
+
return /* @__PURE__ */ i(
|
|
1159
1113
|
"div",
|
|
1160
1114
|
{
|
|
1161
|
-
className:
|
|
1162
|
-
style: { ...l, ...
|
|
1115
|
+
className: e ? `gloss-base-daterangepicker ${e}` : "gloss-base-daterangepicker",
|
|
1116
|
+
style: { ...l, ...a },
|
|
1163
1117
|
...r,
|
|
1164
1118
|
...t,
|
|
1165
1119
|
children: o
|
|
1166
1120
|
}
|
|
1167
1121
|
);
|
|
1168
1122
|
}
|
|
1169
|
-
|
|
1170
|
-
function
|
|
1123
|
+
es.displayName = "BaseDateRangePicker";
|
|
1124
|
+
function ss({
|
|
1171
1125
|
className: s,
|
|
1172
|
-
style:
|
|
1173
|
-
selected:
|
|
1126
|
+
style: e,
|
|
1127
|
+
selected: a,
|
|
1174
1128
|
today: o,
|
|
1175
1129
|
outsideMonth: t,
|
|
1176
1130
|
rangeStart: l,
|
|
1177
1131
|
rangeEnd: r,
|
|
1178
1132
|
inRange: d,
|
|
1179
|
-
disabled:
|
|
1133
|
+
disabled: n,
|
|
1180
1134
|
children: c,
|
|
1181
1135
|
...g
|
|
1182
1136
|
}) {
|
|
1183
1137
|
const _ = {};
|
|
1184
|
-
return
|
|
1138
|
+
return a && (_["data-selected"] = ""), o && (_["data-today"] = ""), t && (_["data-outside-month"] = ""), n && (_["data-disabled"] = ""), l && (_["data-range-start"] = ""), r && (_["data-range-end"] = ""), d && (_["data-in-range"] = ""), /* @__PURE__ */ i(
|
|
1185
1139
|
"button",
|
|
1186
1140
|
{
|
|
1187
1141
|
type: "button",
|
|
1188
1142
|
className: s ? `gloss-base-daterangepicker__day ${s}` : "gloss-base-daterangepicker__day",
|
|
1189
|
-
style:
|
|
1190
|
-
disabled:
|
|
1143
|
+
style: e,
|
|
1144
|
+
disabled: n,
|
|
1191
1145
|
..._,
|
|
1192
1146
|
...g,
|
|
1193
1147
|
children: c
|
|
1194
1148
|
}
|
|
1195
1149
|
);
|
|
1196
1150
|
}
|
|
1197
|
-
|
|
1198
|
-
const
|
|
1151
|
+
ss.displayName = "BaseDateRangePickerDay";
|
|
1152
|
+
const as = {
|
|
1199
1153
|
bg: "--_bg",
|
|
1200
1154
|
color: "--_color",
|
|
1201
1155
|
borderColor: "--_border-color",
|
|
@@ -1205,21 +1159,21 @@ const ta = {
|
|
|
1205
1159
|
buttonBg: "--_button-bg",
|
|
1206
1160
|
minHeight: "--_min-height"
|
|
1207
1161
|
};
|
|
1208
|
-
function
|
|
1209
|
-
const { style: r, dataAttrs: d } =
|
|
1210
|
-
return o && (d["data-disabled"] = ""), /* @__PURE__ */
|
|
1162
|
+
function os({ definition: s, className: e, style: a, disabled: o, children: t, ...l }) {
|
|
1163
|
+
const { style: r, dataAttrs: d } = p(s, as);
|
|
1164
|
+
return o && (d["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
1211
1165
|
"div",
|
|
1212
1166
|
{
|
|
1213
|
-
className:
|
|
1214
|
-
style: { ...r, ...
|
|
1167
|
+
className: e ? `gloss-base-numberinput ${e}` : "gloss-base-numberinput",
|
|
1168
|
+
style: { ...r, ...a },
|
|
1215
1169
|
...d,
|
|
1216
1170
|
...l,
|
|
1217
1171
|
children: t
|
|
1218
1172
|
}
|
|
1219
1173
|
);
|
|
1220
1174
|
}
|
|
1221
|
-
|
|
1222
|
-
const
|
|
1175
|
+
os.displayName = "BaseNumberInput";
|
|
1176
|
+
const ts = {
|
|
1223
1177
|
bg: "--_bg",
|
|
1224
1178
|
color: "--_color",
|
|
1225
1179
|
borderColor: "--_border-color",
|
|
@@ -1230,16 +1184,16 @@ const la = {
|
|
|
1230
1184
|
minHeight: "--_min-height",
|
|
1231
1185
|
placeholderColor: "--_placeholder-color",
|
|
1232
1186
|
placeholderCharColor: "--_placeholder-char-color"
|
|
1233
|
-
},
|
|
1234
|
-
({ definition: s, className:
|
|
1235
|
-
const { style: c, dataAttrs: g } =
|
|
1187
|
+
}, rs = u.forwardRef(
|
|
1188
|
+
({ definition: s, className: e, style: a, label: o, helperText: t, required: l, status: r = "default", ...d }, n) => {
|
|
1189
|
+
const { style: c, dataAttrs: g } = p(s, ts);
|
|
1236
1190
|
r !== "default" && (g["data-status"] = r), d.disabled && (g["data-disabled"] = ""), d.readOnly && (g["data-readonly"] = "");
|
|
1237
|
-
const _ = /* @__PURE__ */
|
|
1191
|
+
const _ = /* @__PURE__ */ i(
|
|
1238
1192
|
"input",
|
|
1239
1193
|
{
|
|
1240
|
-
ref:
|
|
1241
|
-
className:
|
|
1242
|
-
style: { ...c, ...
|
|
1194
|
+
ref: n,
|
|
1195
|
+
className: e ? `gloss-base-maskedinput ${e}` : "gloss-base-maskedinput",
|
|
1196
|
+
style: { ...c, ...a },
|
|
1243
1197
|
required: l,
|
|
1244
1198
|
...g,
|
|
1245
1199
|
...d
|
|
@@ -1248,15 +1202,15 @@ const la = {
|
|
|
1248
1202
|
return !o && !t ? _ : /* @__PURE__ */ b("div", { className: "gloss-base-maskedinput__wrapper", children: [
|
|
1249
1203
|
o && /* @__PURE__ */ b("label", { className: "gloss-base-maskedinput__label", children: [
|
|
1250
1204
|
o,
|
|
1251
|
-
l && /* @__PURE__ */
|
|
1205
|
+
l && /* @__PURE__ */ i("span", { className: "gloss-base-maskedinput__required", children: "*" })
|
|
1252
1206
|
] }),
|
|
1253
1207
|
_,
|
|
1254
|
-
t && /* @__PURE__ */
|
|
1208
|
+
t && /* @__PURE__ */ i("div", { className: "gloss-base-maskedinput__helper", children: t })
|
|
1255
1209
|
] });
|
|
1256
1210
|
}
|
|
1257
1211
|
);
|
|
1258
|
-
|
|
1259
|
-
const
|
|
1212
|
+
rs.displayName = "BaseMaskedInput";
|
|
1213
|
+
const ls = {
|
|
1260
1214
|
bg: "--_bg",
|
|
1261
1215
|
borderColor: "--_border-color",
|
|
1262
1216
|
borderStyle: "--_border-style",
|
|
@@ -1264,114 +1218,114 @@ const da = {
|
|
|
1264
1218
|
padding: "--_padding",
|
|
1265
1219
|
minHeight: "--_min-height"
|
|
1266
1220
|
};
|
|
1267
|
-
function
|
|
1268
|
-
const { style: d, dataAttrs:
|
|
1269
|
-
return o && (
|
|
1221
|
+
function is({ definition: s, className: e, style: a, dragging: o, disabled: t, children: l, ...r }) {
|
|
1222
|
+
const { style: d, dataAttrs: n } = p(s, ls);
|
|
1223
|
+
return o && (n["data-dragging"] = ""), t && (n["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
1270
1224
|
"div",
|
|
1271
1225
|
{
|
|
1272
|
-
className:
|
|
1273
|
-
style: { ...d, ...
|
|
1274
|
-
...
|
|
1226
|
+
className: e ? `gloss-base-fileupload ${e}` : "gloss-base-fileupload",
|
|
1227
|
+
style: { ...d, ...a },
|
|
1228
|
+
...n,
|
|
1275
1229
|
...r,
|
|
1276
1230
|
children: l
|
|
1277
1231
|
}
|
|
1278
1232
|
);
|
|
1279
1233
|
}
|
|
1280
|
-
|
|
1281
|
-
function
|
|
1282
|
-
return /* @__PURE__ */
|
|
1234
|
+
is.displayName = "BaseFileUpload";
|
|
1235
|
+
function ds({ className: s, style: e, children: a, ...o }) {
|
|
1236
|
+
return /* @__PURE__ */ i(
|
|
1283
1237
|
"div",
|
|
1284
1238
|
{
|
|
1285
1239
|
className: s ? `gloss-base-fileupload__list ${s}` : "gloss-base-fileupload__list",
|
|
1286
|
-
style:
|
|
1240
|
+
style: e,
|
|
1287
1241
|
...o,
|
|
1288
|
-
children:
|
|
1242
|
+
children: a
|
|
1289
1243
|
}
|
|
1290
1244
|
);
|
|
1291
1245
|
}
|
|
1292
|
-
|
|
1293
|
-
function
|
|
1294
|
-
return /* @__PURE__ */
|
|
1246
|
+
ds.displayName = "BaseFileUploadList";
|
|
1247
|
+
function ns({ className: s, style: e, error: a, children: o, ...t }) {
|
|
1248
|
+
return /* @__PURE__ */ i(
|
|
1295
1249
|
"div",
|
|
1296
1250
|
{
|
|
1297
1251
|
className: s ? `gloss-base-fileupload__item ${s}` : "gloss-base-fileupload__item",
|
|
1298
|
-
style:
|
|
1299
|
-
"data-error":
|
|
1252
|
+
style: e,
|
|
1253
|
+
"data-error": a ? "" : void 0,
|
|
1300
1254
|
...t,
|
|
1301
1255
|
children: o
|
|
1302
1256
|
}
|
|
1303
1257
|
);
|
|
1304
1258
|
}
|
|
1305
|
-
|
|
1306
|
-
const
|
|
1259
|
+
ns.displayName = "BaseFileUploadItem";
|
|
1260
|
+
const cs = {
|
|
1307
1261
|
radius: "--_radius",
|
|
1308
1262
|
elevation: "--_elevation",
|
|
1309
1263
|
padding: "--_padding",
|
|
1310
1264
|
swatchSize: "--_swatch-size"
|
|
1311
1265
|
};
|
|
1312
|
-
function
|
|
1313
|
-
const { style: r, dataAttrs: d } =
|
|
1314
|
-
return o && (d["data-disabled"] = ""), /* @__PURE__ */
|
|
1266
|
+
function gs({ definition: s, className: e, style: a, disabled: o, children: t, ...l }) {
|
|
1267
|
+
const { style: r, dataAttrs: d } = p(s, cs);
|
|
1268
|
+
return o && (d["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
1315
1269
|
"div",
|
|
1316
1270
|
{
|
|
1317
|
-
className:
|
|
1318
|
-
style: { ...r, ...
|
|
1271
|
+
className: e ? `gloss-base-colorpicker ${e}` : "gloss-base-colorpicker",
|
|
1272
|
+
style: { ...r, ...a },
|
|
1319
1273
|
...d,
|
|
1320
1274
|
...l,
|
|
1321
1275
|
children: t
|
|
1322
1276
|
}
|
|
1323
1277
|
);
|
|
1324
1278
|
}
|
|
1325
|
-
|
|
1326
|
-
function
|
|
1327
|
-
return /* @__PURE__ */
|
|
1279
|
+
gs.displayName = "BaseColorPicker";
|
|
1280
|
+
function _s({ className: s, style: e, children: a, ...o }) {
|
|
1281
|
+
return /* @__PURE__ */ i(
|
|
1328
1282
|
"div",
|
|
1329
1283
|
{
|
|
1330
1284
|
className: s ? `gloss-base-colorpicker__saturation ${s}` : "gloss-base-colorpicker__saturation",
|
|
1331
|
-
style:
|
|
1285
|
+
style: e,
|
|
1332
1286
|
...o,
|
|
1333
|
-
children:
|
|
1287
|
+
children: a
|
|
1334
1288
|
}
|
|
1335
1289
|
);
|
|
1336
1290
|
}
|
|
1337
|
-
|
|
1338
|
-
function
|
|
1339
|
-
return /* @__PURE__ */
|
|
1291
|
+
_s.displayName = "BaseColorPickerSaturation";
|
|
1292
|
+
function us({ className: s, style: e, children: a, ...o }) {
|
|
1293
|
+
return /* @__PURE__ */ i(
|
|
1340
1294
|
"div",
|
|
1341
1295
|
{
|
|
1342
1296
|
className: s ? `gloss-base-colorpicker__hue ${s}` : "gloss-base-colorpicker__hue",
|
|
1343
|
-
style:
|
|
1297
|
+
style: e,
|
|
1344
1298
|
...o,
|
|
1345
|
-
children:
|
|
1299
|
+
children: a
|
|
1346
1300
|
}
|
|
1347
1301
|
);
|
|
1348
1302
|
}
|
|
1349
|
-
|
|
1350
|
-
function
|
|
1351
|
-
return /* @__PURE__ */
|
|
1303
|
+
us.displayName = "BaseColorPickerHue";
|
|
1304
|
+
function ps({ className: s, style: e, children: a, ...o }) {
|
|
1305
|
+
return /* @__PURE__ */ i(
|
|
1352
1306
|
"div",
|
|
1353
1307
|
{
|
|
1354
1308
|
className: s ? `gloss-base-colorpicker__alpha ${s}` : "gloss-base-colorpicker__alpha",
|
|
1355
|
-
style:
|
|
1309
|
+
style: e,
|
|
1356
1310
|
...o,
|
|
1357
|
-
children:
|
|
1311
|
+
children: a
|
|
1358
1312
|
}
|
|
1359
1313
|
);
|
|
1360
1314
|
}
|
|
1361
|
-
|
|
1362
|
-
function
|
|
1363
|
-
return /* @__PURE__ */
|
|
1315
|
+
ps.displayName = "BaseColorPickerAlpha";
|
|
1316
|
+
function bs({ className: s, style: e, children: a, ...o }) {
|
|
1317
|
+
return /* @__PURE__ */ i(
|
|
1364
1318
|
"div",
|
|
1365
1319
|
{
|
|
1366
1320
|
className: s ? `gloss-base-colorpicker__swatch ${s}` : "gloss-base-colorpicker__swatch",
|
|
1367
|
-
style:
|
|
1321
|
+
style: e,
|
|
1368
1322
|
...o,
|
|
1369
|
-
children:
|
|
1323
|
+
children: a
|
|
1370
1324
|
}
|
|
1371
1325
|
);
|
|
1372
1326
|
}
|
|
1373
|
-
|
|
1374
|
-
const
|
|
1327
|
+
bs.displayName = "BaseColorPickerSwatch";
|
|
1328
|
+
const fs = {
|
|
1375
1329
|
trackBg: "--_track-bg",
|
|
1376
1330
|
trackActiveBg: "--_track-active-bg",
|
|
1377
1331
|
thumbBg: "--_thumb-bg",
|
|
@@ -1380,52 +1334,40 @@ const ya = {
|
|
|
1380
1334
|
trackHeight: "--_track-height",
|
|
1381
1335
|
thumbShadow: "--_thumb-shadow"
|
|
1382
1336
|
};
|
|
1383
|
-
function
|
|
1337
|
+
function ms({
|
|
1384
1338
|
definition: s,
|
|
1385
|
-
className:
|
|
1386
|
-
style:
|
|
1339
|
+
className: e,
|
|
1340
|
+
style: a,
|
|
1387
1341
|
orientation: o = "horizontal",
|
|
1388
1342
|
disabled: t,
|
|
1389
1343
|
collision: l,
|
|
1390
1344
|
children: r,
|
|
1391
1345
|
...d
|
|
1392
1346
|
}) {
|
|
1393
|
-
const { style:
|
|
1394
|
-
return o !== "horizontal" && (c["data-orientation"] = o), t && (c["data-disabled"] = ""), l && (c["data-collision"] = ""), /* @__PURE__ */
|
|
1347
|
+
const { style: n, dataAttrs: c } = p(s, fs);
|
|
1348
|
+
return o !== "horizontal" && (c["data-orientation"] = o), t && (c["data-disabled"] = ""), l && (c["data-collision"] = ""), /* @__PURE__ */ i(
|
|
1395
1349
|
"div",
|
|
1396
1350
|
{
|
|
1397
|
-
className:
|
|
1398
|
-
style: { ...
|
|
1351
|
+
className: e ? `gloss-base-rangeslider ${e}` : "gloss-base-rangeslider",
|
|
1352
|
+
style: { ...n, ...a },
|
|
1399
1353
|
...c,
|
|
1400
1354
|
...d,
|
|
1401
1355
|
children: r
|
|
1402
1356
|
}
|
|
1403
1357
|
);
|
|
1404
1358
|
}
|
|
1405
|
-
|
|
1406
|
-
const
|
|
1407
|
-
const { as: e, className: o, ...t } = a;
|
|
1408
|
-
return /* @__PURE__ */ n(
|
|
1409
|
-
h,
|
|
1410
|
-
{
|
|
1411
|
-
as: e || "span",
|
|
1412
|
-
className: o ? `gloss-base-text ${o}` : "gloss-base-text",
|
|
1413
|
-
...t
|
|
1414
|
-
}
|
|
1415
|
-
);
|
|
1416
|
-
};
|
|
1417
|
-
ha.displayName = "BaseText";
|
|
1418
|
-
const Ba = {
|
|
1359
|
+
ms.displayName = "BaseRangeSlider";
|
|
1360
|
+
const ys = {
|
|
1419
1361
|
1: "h1",
|
|
1420
1362
|
2: "h2",
|
|
1421
1363
|
3: "h3",
|
|
1422
1364
|
4: "h4",
|
|
1423
1365
|
5: "h5",
|
|
1424
1366
|
6: "h6"
|
|
1425
|
-
},
|
|
1426
|
-
const { as:
|
|
1427
|
-
return /* @__PURE__ */
|
|
1428
|
-
|
|
1367
|
+
}, vs = function(e) {
|
|
1368
|
+
const { as: a, level: o = 2, className: t, ...l } = e, r = a || ys[o];
|
|
1369
|
+
return /* @__PURE__ */ i(
|
|
1370
|
+
R,
|
|
1429
1371
|
{
|
|
1430
1372
|
as: r,
|
|
1431
1373
|
className: t ? `gloss-base-title ${t}` : "gloss-base-title",
|
|
@@ -1433,11 +1375,11 @@ const Ba = {
|
|
|
1433
1375
|
}
|
|
1434
1376
|
);
|
|
1435
1377
|
};
|
|
1436
|
-
|
|
1437
|
-
function
|
|
1378
|
+
vs.displayName = "BaseTitle";
|
|
1379
|
+
function hs({
|
|
1438
1380
|
definition: s,
|
|
1439
|
-
open:
|
|
1440
|
-
onDismiss:
|
|
1381
|
+
open: e,
|
|
1382
|
+
onDismiss: a,
|
|
1441
1383
|
anchorRef: o,
|
|
1442
1384
|
className: t,
|
|
1443
1385
|
style: l,
|
|
@@ -1455,13 +1397,13 @@ function Aa({
|
|
|
1455
1397
|
radius: s?.radius,
|
|
1456
1398
|
padding: s?.padding,
|
|
1457
1399
|
zIndex: s?.zIndex
|
|
1458
|
-
},
|
|
1459
|
-
return s?.showArrow && (c["--_arrow-size"] = `${
|
|
1460
|
-
|
|
1400
|
+
}, n = s?.arrowSize ?? 8, c = { ...l };
|
|
1401
|
+
return s?.showArrow && (c["--_arrow-size"] = `${n}px`), /* @__PURE__ */ i(
|
|
1402
|
+
S,
|
|
1461
1403
|
{
|
|
1462
1404
|
definition: d,
|
|
1463
|
-
open:
|
|
1464
|
-
onDismiss:
|
|
1405
|
+
open: e,
|
|
1406
|
+
onDismiss: a,
|
|
1465
1407
|
anchorRef: o,
|
|
1466
1408
|
children: /* @__PURE__ */ b(
|
|
1467
1409
|
"div",
|
|
@@ -1470,34 +1412,34 @@ function Aa({
|
|
|
1470
1412
|
style: c,
|
|
1471
1413
|
children: [
|
|
1472
1414
|
r,
|
|
1473
|
-
s?.showArrow && /* @__PURE__ */
|
|
1415
|
+
s?.showArrow && /* @__PURE__ */ i("div", { className: "gloss-base-popover__arrow" })
|
|
1474
1416
|
]
|
|
1475
1417
|
}
|
|
1476
1418
|
)
|
|
1477
1419
|
}
|
|
1478
1420
|
);
|
|
1479
1421
|
}
|
|
1480
|
-
|
|
1481
|
-
const
|
|
1422
|
+
hs.displayName = "BasePopover";
|
|
1423
|
+
const Bs = {
|
|
1482
1424
|
size: "--_size",
|
|
1483
1425
|
bg: "--_bg",
|
|
1484
1426
|
color: "--_color",
|
|
1485
1427
|
fontSize: "--_font-size",
|
|
1486
1428
|
radius: "--_radius"
|
|
1487
1429
|
};
|
|
1488
|
-
function
|
|
1489
|
-
const { definition:
|
|
1490
|
-
return /* @__PURE__ */
|
|
1430
|
+
function Ss(s) {
|
|
1431
|
+
const { definition: e, src: a, alt: o, className: t, style: l, children: r, ...d } = s, [n, c] = N(!1), { style: g, dataAttrs: _ } = p(e, Bs), f = a && !n;
|
|
1432
|
+
return /* @__PURE__ */ i(
|
|
1491
1433
|
"div",
|
|
1492
1434
|
{
|
|
1493
1435
|
className: t ? `gloss-base-avatar ${t}` : "gloss-base-avatar",
|
|
1494
1436
|
style: { ...g, ...l },
|
|
1495
1437
|
..._,
|
|
1496
1438
|
...d,
|
|
1497
|
-
children: f ? /* @__PURE__ */
|
|
1439
|
+
children: f ? /* @__PURE__ */ i(
|
|
1498
1440
|
"img",
|
|
1499
1441
|
{
|
|
1500
|
-
src:
|
|
1442
|
+
src: a,
|
|
1501
1443
|
alt: o || "",
|
|
1502
1444
|
onError: () => c(!0)
|
|
1503
1445
|
}
|
|
@@ -1505,29 +1447,29 @@ function Na(s) {
|
|
|
1505
1447
|
}
|
|
1506
1448
|
);
|
|
1507
1449
|
}
|
|
1508
|
-
|
|
1509
|
-
const
|
|
1450
|
+
Ss.displayName = "BaseAvatar";
|
|
1451
|
+
const As = {
|
|
1510
1452
|
trackBg: "--_track-bg",
|
|
1511
1453
|
fillBg: "--_fill-bg",
|
|
1512
1454
|
height: "--_height",
|
|
1513
1455
|
radius: "--_radius"
|
|
1514
1456
|
};
|
|
1515
|
-
function
|
|
1516
|
-
const { definition:
|
|
1457
|
+
function ks(s) {
|
|
1458
|
+
const { definition: e, value: a, max: o = 100, indeterminate: t = !1, className: l, style: r, ...d } = s, { style: n, dataAttrs: c } = p(e, As);
|
|
1517
1459
|
t && (c["data-indeterminate"] = "");
|
|
1518
|
-
const g = t ? void 0 : `${Math.min(100, (
|
|
1519
|
-
return /* @__PURE__ */
|
|
1460
|
+
const g = t ? void 0 : `${Math.min(100, (a || 0) / (o || 100) * 100)}%`;
|
|
1461
|
+
return /* @__PURE__ */ i(
|
|
1520
1462
|
"div",
|
|
1521
1463
|
{
|
|
1522
1464
|
role: "progressbar",
|
|
1523
|
-
"aria-valuenow": t ? void 0 :
|
|
1465
|
+
"aria-valuenow": t ? void 0 : a || 0,
|
|
1524
1466
|
"aria-valuemin": 0,
|
|
1525
1467
|
"aria-valuemax": o,
|
|
1526
1468
|
className: l ? `gloss-base-progress-bar ${l}` : "gloss-base-progress-bar",
|
|
1527
|
-
style: { ...
|
|
1469
|
+
style: { ...n, ...r },
|
|
1528
1470
|
...c,
|
|
1529
1471
|
...d,
|
|
1530
|
-
children: /* @__PURE__ */
|
|
1472
|
+
children: /* @__PURE__ */ i(
|
|
1531
1473
|
"div",
|
|
1532
1474
|
{
|
|
1533
1475
|
className: "gloss-base-progress-bar__fill",
|
|
@@ -1537,8 +1479,8 @@ function xa(s) {
|
|
|
1537
1479
|
}
|
|
1538
1480
|
);
|
|
1539
1481
|
}
|
|
1540
|
-
|
|
1541
|
-
const
|
|
1482
|
+
ks.displayName = "BaseProgressBar";
|
|
1483
|
+
const Ns = {
|
|
1542
1484
|
bg: "--_bg",
|
|
1543
1485
|
color: "--_color",
|
|
1544
1486
|
padding: "--_padding",
|
|
@@ -1547,10 +1489,10 @@ const $a = {
|
|
|
1547
1489
|
fontSize: "--_font-size",
|
|
1548
1490
|
fontWeight: "--_font-weight"
|
|
1549
1491
|
};
|
|
1550
|
-
function
|
|
1551
|
-
const { as:
|
|
1552
|
-
return l && (g["data-dot"] = ""), /* @__PURE__ */
|
|
1553
|
-
|
|
1492
|
+
function Cs(s) {
|
|
1493
|
+
const { as: e, definition: a, className: o, style: t, dot: l, children: r, ...d } = s, n = e || "span", { style: c, dataAttrs: g } = p(a, Ns);
|
|
1494
|
+
return l && (g["data-dot"] = ""), /* @__PURE__ */ i(
|
|
1495
|
+
n,
|
|
1554
1496
|
{
|
|
1555
1497
|
className: o ? `gloss-base-badge ${o}` : "gloss-base-badge",
|
|
1556
1498
|
style: { ...c, ...t },
|
|
@@ -1560,8 +1502,8 @@ function wa(s) {
|
|
|
1560
1502
|
}
|
|
1561
1503
|
);
|
|
1562
1504
|
}
|
|
1563
|
-
|
|
1564
|
-
const
|
|
1505
|
+
Cs.displayName = "BaseBadge";
|
|
1506
|
+
const xs = {
|
|
1565
1507
|
bg: "--_bg",
|
|
1566
1508
|
color: "--_color",
|
|
1567
1509
|
borderColor: "--_border-color",
|
|
@@ -1572,21 +1514,21 @@ const Ra = {
|
|
|
1572
1514
|
fontWeight: "--_font-weight",
|
|
1573
1515
|
gap: "--_gap"
|
|
1574
1516
|
};
|
|
1575
|
-
function
|
|
1517
|
+
function Rs(s) {
|
|
1576
1518
|
const {
|
|
1577
|
-
as:
|
|
1578
|
-
definition:
|
|
1519
|
+
as: e,
|
|
1520
|
+
definition: a,
|
|
1579
1521
|
className: o,
|
|
1580
1522
|
style: t,
|
|
1581
1523
|
disabled: l,
|
|
1582
1524
|
clickable: r,
|
|
1583
1525
|
selected: d,
|
|
1584
|
-
avatar:
|
|
1526
|
+
avatar: n,
|
|
1585
1527
|
leftIcon: c,
|
|
1586
1528
|
deleteButton: g,
|
|
1587
1529
|
children: _,
|
|
1588
1530
|
...f
|
|
1589
|
-
} = s, m =
|
|
1531
|
+
} = s, m = e || "span", { style: v, dataAttrs: y } = p(a, xs);
|
|
1590
1532
|
return l && (y["data-disabled"] = ""), r && (y["data-clickable"] = ""), d && (y["data-selected"] = ""), /* @__PURE__ */ b(
|
|
1591
1533
|
m,
|
|
1592
1534
|
{
|
|
@@ -1595,25 +1537,25 @@ function Pa(s) {
|
|
|
1595
1537
|
...y,
|
|
1596
1538
|
...f,
|
|
1597
1539
|
children: [
|
|
1598
|
-
|
|
1599
|
-
c && /* @__PURE__ */
|
|
1600
|
-
/* @__PURE__ */
|
|
1601
|
-
g && /* @__PURE__ */
|
|
1540
|
+
n && /* @__PURE__ */ i("span", { className: "gloss-base-chip__avatar", children: n }),
|
|
1541
|
+
c && /* @__PURE__ */ i("span", { className: "gloss-base-chip__icon", children: c }),
|
|
1542
|
+
/* @__PURE__ */ i("span", { className: "gloss-base-chip__label", children: _ }),
|
|
1543
|
+
g && /* @__PURE__ */ i("span", { className: "gloss-base-chip__delete", children: g })
|
|
1602
1544
|
]
|
|
1603
1545
|
}
|
|
1604
1546
|
);
|
|
1605
1547
|
}
|
|
1606
|
-
|
|
1607
|
-
const
|
|
1548
|
+
Rs.displayName = "BaseChip";
|
|
1549
|
+
const $s = {
|
|
1608
1550
|
color: "--_color",
|
|
1609
1551
|
fontSize: "--_font-size",
|
|
1610
1552
|
fontWeight: "--_font-weight",
|
|
1611
1553
|
gap: "--_gap"
|
|
1612
|
-
},
|
|
1554
|
+
}, Ps = {
|
|
1613
1555
|
underline: "data-underline"
|
|
1614
1556
|
};
|
|
1615
|
-
function
|
|
1616
|
-
const { as:
|
|
1557
|
+
function ws(s) {
|
|
1558
|
+
const { as: e, definition: a, className: o, style: t, disabled: l, leftIcon: r, rightIcon: d, children: n, ...c } = s, g = e || "a", { style: _, dataAttrs: f } = p(a, $s, Ps);
|
|
1617
1559
|
return l && (f["data-disabled"] = ""), /* @__PURE__ */ b(
|
|
1618
1560
|
g,
|
|
1619
1561
|
{
|
|
@@ -1622,110 +1564,106 @@ function Ma(s) {
|
|
|
1622
1564
|
...f,
|
|
1623
1565
|
...c,
|
|
1624
1566
|
children: [
|
|
1625
|
-
r && /* @__PURE__ */
|
|
1626
|
-
/* @__PURE__ */
|
|
1627
|
-
d && /* @__PURE__ */
|
|
1567
|
+
r && /* @__PURE__ */ i("span", { className: "gloss-base-link__icon gloss-base-link__icon--left", children: r }),
|
|
1568
|
+
/* @__PURE__ */ i("span", { className: "gloss-base-link__text", children: n }),
|
|
1569
|
+
d && /* @__PURE__ */ i("span", { className: "gloss-base-link__icon gloss-base-link__icon--right", children: d })
|
|
1628
1570
|
]
|
|
1629
1571
|
}
|
|
1630
1572
|
);
|
|
1631
1573
|
}
|
|
1632
|
-
|
|
1633
|
-
const
|
|
1634
|
-
function
|
|
1635
|
-
return
|
|
1574
|
+
ws.displayName = "BaseLink";
|
|
1575
|
+
const zs = { region: null, density: "default" }, A = C(zs);
|
|
1576
|
+
function Xs() {
|
|
1577
|
+
return x(A);
|
|
1636
1578
|
}
|
|
1637
|
-
function
|
|
1638
|
-
const o = { region: s, density:
|
|
1639
|
-
return
|
|
1640
|
-
|
|
1579
|
+
function Ms({ region: s, density: e = "default", children: a }) {
|
|
1580
|
+
const o = { region: s, density: e };
|
|
1581
|
+
return u.createElement(
|
|
1582
|
+
A.Provider,
|
|
1641
1583
|
{ value: o },
|
|
1642
|
-
|
|
1584
|
+
u.createElement(
|
|
1643
1585
|
"div",
|
|
1644
1586
|
{
|
|
1645
1587
|
"data-region": s,
|
|
1646
|
-
"data-density":
|
|
1588
|
+
"data-density": e,
|
|
1647
1589
|
className: "gloss-ui-context"
|
|
1648
1590
|
},
|
|
1649
|
-
|
|
1591
|
+
a
|
|
1650
1592
|
)
|
|
1651
1593
|
);
|
|
1652
1594
|
}
|
|
1653
|
-
|
|
1595
|
+
Ms.displayName = "UIContextProvider";
|
|
1654
1596
|
export {
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
he as w,
|
|
1728
|
-
Be as x,
|
|
1729
|
-
Se as y,
|
|
1730
|
-
Ae as z
|
|
1597
|
+
os as $,
|
|
1598
|
+
xe as A,
|
|
1599
|
+
hs as B,
|
|
1600
|
+
Hs as C,
|
|
1601
|
+
Re as D,
|
|
1602
|
+
Ls as E,
|
|
1603
|
+
$e as F,
|
|
1604
|
+
we as G,
|
|
1605
|
+
ze as H,
|
|
1606
|
+
Te as I,
|
|
1607
|
+
De as J,
|
|
1608
|
+
Ee as K,
|
|
1609
|
+
He as L,
|
|
1610
|
+
Fe as M,
|
|
1611
|
+
We as N,
|
|
1612
|
+
Ue as O,
|
|
1613
|
+
Xe as P,
|
|
1614
|
+
Ke as Q,
|
|
1615
|
+
Ws as R,
|
|
1616
|
+
Gs as S,
|
|
1617
|
+
Fs as T,
|
|
1618
|
+
Ms as U,
|
|
1619
|
+
Ye as V,
|
|
1620
|
+
qe as W,
|
|
1621
|
+
Je as X,
|
|
1622
|
+
es as Y,
|
|
1623
|
+
Us as Z,
|
|
1624
|
+
ss as _,
|
|
1625
|
+
A as a,
|
|
1626
|
+
rs as a0,
|
|
1627
|
+
is as a1,
|
|
1628
|
+
ds as a2,
|
|
1629
|
+
ns as a3,
|
|
1630
|
+
gs as a4,
|
|
1631
|
+
_s as a5,
|
|
1632
|
+
us as a6,
|
|
1633
|
+
ps as a7,
|
|
1634
|
+
bs as a8,
|
|
1635
|
+
ms as a9,
|
|
1636
|
+
vs as aa,
|
|
1637
|
+
Ss as ab,
|
|
1638
|
+
ks as ac,
|
|
1639
|
+
Cs as ad,
|
|
1640
|
+
Rs as ae,
|
|
1641
|
+
ws as af,
|
|
1642
|
+
B as ag,
|
|
1643
|
+
p as ah,
|
|
1644
|
+
S as b,
|
|
1645
|
+
L as c,
|
|
1646
|
+
U as d,
|
|
1647
|
+
F as e,
|
|
1648
|
+
Y as f,
|
|
1649
|
+
Q as g,
|
|
1650
|
+
se as h,
|
|
1651
|
+
oe as i,
|
|
1652
|
+
re as j,
|
|
1653
|
+
ie as k,
|
|
1654
|
+
de as l,
|
|
1655
|
+
ce as m,
|
|
1656
|
+
ge as n,
|
|
1657
|
+
_e as o,
|
|
1658
|
+
be as p,
|
|
1659
|
+
me as q,
|
|
1660
|
+
ye as r,
|
|
1661
|
+
ve as s,
|
|
1662
|
+
he as t,
|
|
1663
|
+
Xs as u,
|
|
1664
|
+
Be as v,
|
|
1665
|
+
Se as w,
|
|
1666
|
+
Ae as x,
|
|
1667
|
+
ke as y,
|
|
1668
|
+
Ce as z
|
|
1731
1669
|
};
|