@mt-gloss/ui 0.1.132 → 0.1.134
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-aDQ_TjJi.js → BaseAsyncButton-CJlY7Uik.js} +1 -1
- package/{Expandable-CvT19-Bf.js → Expandable-DA4NFzCR.js} +2768 -2720
- package/{UIContext-Dm0GYHFT.js → UIContext-CGQI_KJk.js} +658 -519
- package/catalog.js +4 -4
- package/index.js +1233 -1215
- package/internals.js +3 -3
- package/lib/base/BaseAccordion/BaseAccordion.d.ts +24 -4
- package/lib/base/BaseCard/BaseCard.d.ts +48 -8
- package/lib/base/BaseCheckbox/BaseCheckbox.d.ts +6 -1
- package/lib/base/BaseInput/BaseInput.d.ts +6 -1
- package/lib/base/BaseMaskedInput/BaseMaskedInput.d.ts +6 -1
- package/lib/base/BaseMenu/BaseMenu.d.ts +12 -2
- package/lib/base/BaseRadio/BaseRadio.d.ts +6 -1
- package/lib/base/BaseRating/BaseRating.d.ts +6 -1
- package/lib/base/BaseSegmentedControl/BaseSegmentedControl.d.ts +6 -1
- package/lib/base/BaseSelect/BaseSelect.d.ts +12 -2
- package/lib/base/BaseTextarea/BaseTextarea.d.ts +6 -1
- package/lib/base/BaseToggle/BaseToggle.d.ts +6 -1
- package/lib/base/BaseTooltip/BaseTooltip.d.ts +6 -1
- package/lib/composites/forms/PasswordInput.d.ts +6 -1
- package/lib/composites/forms/PhoneInput.d.ts +6 -1
- package/lib/composites/forms/SearchInput.d.ts +6 -1
- package/lib/composites/forms/TagInput.d.ts +6 -1
- package/lib/composites/inputs/FilterChip.d.ts +6 -1
- package/lib/composites/overlay/SplitButton/SplitButton.d.ts +6 -1
- package/lib/containers/ContainerDialog/ContainerDialog.d.ts +18 -3
- package/lib/containers/ContainerFormSection/ContainerFormSection.d.ts +6 -1
- package/lib/containers/ContainerPanel/ContainerPanel.d.ts +6 -1
- package/lib/containers/ContainerTable/ContainerTable.d.ts +6 -1
- package/lib/containers/ContainerToolbar/ContainerToolbar.d.ts +6 -1
- package/lib/primitives/dashboard/ResizePill/ResizePill.d.ts +7 -1
- package/lib/wrappers/Actionable/Actionable.d.ts +6 -1
- package/lib/wrappers/AsyncLoader/AsyncLoader.d.ts +6 -1
- package/lib/wrappers/ButtonGroup/ButtonGroup.d.ts +6 -1
- package/lib/wrappers/CheckboxGroup/CheckboxGroup.d.ts +6 -1
- package/lib/wrappers/Dismissible/Dismissible.d.ts +6 -1
- package/lib/wrappers/Expandable/Expandable.d.ts +6 -1
- package/lib/wrappers/InputGroup/InputGroup.d.ts +12 -2
- package/lib/wrappers/RadioGroup/RadioGroup.d.ts +6 -1
- package/lib/wrappers/Selectable/Selectable.d.ts +6 -1
- package/lib/wrappers/Sortable/Sortable.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { useFloating as
|
|
1
|
+
import { jsx as i, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import f, { useState as N, createContext as C, useContext as x } from "react";
|
|
3
|
+
import { c as $ } from "./BaseText-Dxbk1JJa.js";
|
|
4
|
+
import { createPortal as P } from "react-dom";
|
|
5
|
+
import { useFloating as z, autoUpdate as R, offset as w, flip as M, shift as T, useDismiss as D, useRole as I, useInteractions as V } from "@floating-ui/react";
|
|
6
6
|
import { AnimatePresence as E, motion as O } from "framer-motion";
|
|
7
|
-
function
|
|
7
|
+
function u(s, e, a, o) {
|
|
8
8
|
const t = {}, l = {};
|
|
9
9
|
if (!s) return { style: t, dataAttrs: l };
|
|
10
10
|
for (const [r, d] of Object.entries(e)) {
|
|
@@ -34,7 +34,7 @@ const H = {
|
|
|
34
34
|
display: "data-display"
|
|
35
35
|
};
|
|
36
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: _ } =
|
|
37
|
+
const { as: e, definition: a, className: o, style: t, children: l, disabled: r, loading: d, ...n } = s, c = e || "button", { style: g, dataAttrs: _ } = u(a, H, G);
|
|
38
38
|
return r && (_["data-disabled"] = ""), d && (_["data-loading"] = ""), /* @__PURE__ */ i(
|
|
39
39
|
c,
|
|
40
40
|
{
|
|
@@ -246,12 +246,12 @@ function X(s) {
|
|
|
246
246
|
offsetValue: o = 8,
|
|
247
247
|
onOpenChange: t
|
|
248
248
|
} = s;
|
|
249
|
-
return
|
|
249
|
+
return z({
|
|
250
250
|
open: e,
|
|
251
251
|
onOpenChange: t,
|
|
252
252
|
placement: a,
|
|
253
|
-
middleware: [
|
|
254
|
-
whileElementsMounted:
|
|
253
|
+
middleware: [w(o), M(), T()],
|
|
254
|
+
whileElementsMounted: R,
|
|
255
255
|
// Phase 6.1.1 bug fix 2026-04-16: use top/left positioning (not transform).
|
|
256
256
|
// BaseOverlay wraps content in framer-motion motion.div with animate={scale},
|
|
257
257
|
// which owns the `transform` CSS property. If floating-ui writes
|
|
@@ -276,10 +276,10 @@ function j(s) {
|
|
|
276
276
|
function S(s) {
|
|
277
277
|
const { definition: e, open: a, onDismiss: o, anchorRef: t, className: l, style: r, children: d } = s, n = (k) => {
|
|
278
278
|
!k && o && o();
|
|
279
|
-
}, [c, g] =
|
|
279
|
+
}, [c, g] = f.useState(
|
|
280
280
|
t?.current ?? null
|
|
281
281
|
);
|
|
282
|
-
|
|
282
|
+
f.useEffect(() => {
|
|
283
283
|
g(t?.current ?? null);
|
|
284
284
|
});
|
|
285
285
|
const _ = X({
|
|
@@ -288,10 +288,10 @@ function S(s) {
|
|
|
288
288
|
offsetValue: e?.offset,
|
|
289
289
|
onOpenChange: n
|
|
290
290
|
});
|
|
291
|
-
|
|
291
|
+
f.useEffect(() => {
|
|
292
292
|
c && (_.refs.setReference(c), _.update());
|
|
293
293
|
}, [c, _.refs, _.update]);
|
|
294
|
-
const { getFloatingProps:
|
|
294
|
+
const { getFloatingProps: b } = j({
|
|
295
295
|
context: _.context,
|
|
296
296
|
outsidePress: e?.dismissOnClickOutside ?? !0,
|
|
297
297
|
escapeKey: e?.dismissOnEscape ?? !0,
|
|
@@ -308,11 +308,11 @@ function S(s) {
|
|
|
308
308
|
animate: { opacity: 1, scale: 1 },
|
|
309
309
|
exit: { opacity: 0, scale: 0.95 },
|
|
310
310
|
transition: { duration: 0.15 },
|
|
311
|
-
...
|
|
311
|
+
...b(),
|
|
312
312
|
children: d
|
|
313
313
|
}
|
|
314
314
|
) });
|
|
315
|
-
return v && typeof document < "u" ?
|
|
315
|
+
return v && typeof document < "u" ? P(h, document.body) : h;
|
|
316
316
|
}
|
|
317
317
|
S.displayName = "BaseOverlay";
|
|
318
318
|
const K = {
|
|
@@ -325,31 +325,39 @@ const K = {
|
|
|
325
325
|
fontSize: "--_font-size",
|
|
326
326
|
minHeight: "--_min-height",
|
|
327
327
|
placeholderColor: "--_placeholder-color"
|
|
328
|
-
}, Z = {}, Y =
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
328
|
+
}, Z = {}, Y = ({
|
|
329
|
+
ref: s,
|
|
330
|
+
definition: e,
|
|
331
|
+
className: a,
|
|
332
|
+
style: o,
|
|
333
|
+
label: t,
|
|
334
|
+
helperText: l,
|
|
335
|
+
required: r,
|
|
336
|
+
status: d = "default",
|
|
337
|
+
...n
|
|
338
|
+
}) => {
|
|
339
|
+
const { style: c, dataAttrs: g } = u(e, K, Z);
|
|
340
|
+
d !== "default" && (g["data-status"] = d), n.disabled && (g["data-disabled"] = ""), n.readOnly && (g["data-readonly"] = "");
|
|
341
|
+
const _ = /* @__PURE__ */ i(
|
|
342
|
+
"input",
|
|
343
|
+
{
|
|
344
|
+
ref: s,
|
|
345
|
+
className: a ? `gloss-base-input ${a}` : "gloss-base-input",
|
|
346
|
+
style: { ...c, ...o },
|
|
347
|
+
required: r,
|
|
348
|
+
...g,
|
|
349
|
+
...n
|
|
350
|
+
}
|
|
351
|
+
);
|
|
352
|
+
return !t && !l ? _ : /* @__PURE__ */ p("div", { className: "gloss-base-input__wrapper", children: [
|
|
353
|
+
t && /* @__PURE__ */ p("label", { className: "gloss-base-input__label", children: [
|
|
354
|
+
t,
|
|
355
|
+
r && /* @__PURE__ */ i("span", { className: "gloss-base-input__required", children: "*" })
|
|
356
|
+
] }),
|
|
357
|
+
_,
|
|
358
|
+
l && /* @__PURE__ */ i("div", { className: "gloss-base-input__helper", children: l })
|
|
359
|
+
] });
|
|
360
|
+
};
|
|
353
361
|
Y.displayName = "BaseInput";
|
|
354
362
|
const q = {
|
|
355
363
|
bg: "--_bg",
|
|
@@ -365,31 +373,39 @@ const q = {
|
|
|
365
373
|
maxRows: "--_max-rows"
|
|
366
374
|
}, J = {
|
|
367
375
|
resize: "data-resize"
|
|
368
|
-
}, Q =
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
376
|
+
}, Q = ({
|
|
377
|
+
ref: s,
|
|
378
|
+
definition: e,
|
|
379
|
+
className: a,
|
|
380
|
+
style: o,
|
|
381
|
+
label: t,
|
|
382
|
+
helperText: l,
|
|
383
|
+
required: r,
|
|
384
|
+
status: d = "default",
|
|
385
|
+
...n
|
|
386
|
+
}) => {
|
|
387
|
+
const { style: c, dataAttrs: g } = u(e, q, J);
|
|
388
|
+
d !== "default" && (g["data-status"] = d), n.disabled && (g["data-disabled"] = ""), n.readOnly && (g["data-readonly"] = "");
|
|
389
|
+
const _ = /* @__PURE__ */ i(
|
|
390
|
+
"textarea",
|
|
391
|
+
{
|
|
392
|
+
ref: s,
|
|
393
|
+
className: a ? `gloss-base-textarea ${a}` : "gloss-base-textarea",
|
|
394
|
+
style: { ...c, ...o },
|
|
395
|
+
required: r,
|
|
396
|
+
...g,
|
|
397
|
+
...n
|
|
398
|
+
}
|
|
399
|
+
);
|
|
400
|
+
return !t && !l ? _ : /* @__PURE__ */ p("div", { className: "gloss-base-textarea__wrapper", children: [
|
|
401
|
+
t && /* @__PURE__ */ p("label", { className: "gloss-base-textarea__label", children: [
|
|
402
|
+
t,
|
|
403
|
+
r && /* @__PURE__ */ i("span", { className: "gloss-base-textarea__required", children: "*" })
|
|
404
|
+
] }),
|
|
405
|
+
_,
|
|
406
|
+
l && /* @__PURE__ */ i("div", { className: "gloss-base-textarea__helper", children: l })
|
|
407
|
+
] });
|
|
408
|
+
};
|
|
393
409
|
Q.displayName = "BaseTextarea";
|
|
394
410
|
const ee = {
|
|
395
411
|
trackBg: "--_track-bg",
|
|
@@ -397,75 +413,90 @@ const ee = {
|
|
|
397
413
|
checkColor: "--_check-color",
|
|
398
414
|
trackSize: "--_track-size",
|
|
399
415
|
trackRadius: "--_track-radius"
|
|
400
|
-
}, se =
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
416
|
+
}, se = ({
|
|
417
|
+
ref: s,
|
|
418
|
+
definition: e,
|
|
419
|
+
className: a,
|
|
420
|
+
style: o,
|
|
421
|
+
indeterminate: t,
|
|
422
|
+
children: l,
|
|
423
|
+
checked: r,
|
|
424
|
+
disabled: d,
|
|
425
|
+
...n
|
|
426
|
+
}) => {
|
|
427
|
+
const { style: c, dataAttrs: g } = u(e, ee);
|
|
428
|
+
d && (g["data-disabled"] = ""), r && (g["data-checked"] = ""), t && (g["data-indeterminate"] = "");
|
|
429
|
+
const _ = f.useCallback(
|
|
430
|
+
(b) => {
|
|
431
|
+
b && (b.indeterminate = !!t), typeof s == "function" ? s(b) : s && (s.current = b);
|
|
432
|
+
},
|
|
433
|
+
[t, s]
|
|
434
|
+
);
|
|
435
|
+
return /* @__PURE__ */ p(
|
|
436
|
+
"label",
|
|
437
|
+
{
|
|
438
|
+
className: a ? `gloss-base-checkbox ${a}` : "gloss-base-checkbox",
|
|
439
|
+
style: { ...c, ...o },
|
|
440
|
+
...g,
|
|
441
|
+
children: [
|
|
442
|
+
/* @__PURE__ */ i(
|
|
443
|
+
"input",
|
|
444
|
+
{
|
|
445
|
+
ref: _,
|
|
446
|
+
type: "checkbox",
|
|
447
|
+
className: "gloss-base-checkbox__input",
|
|
448
|
+
checked: r,
|
|
449
|
+
disabled: d,
|
|
450
|
+
...n
|
|
451
|
+
}
|
|
452
|
+
),
|
|
453
|
+
/* @__PURE__ */ i("span", { className: "gloss-base-checkbox__track" }),
|
|
454
|
+
l
|
|
455
|
+
]
|
|
456
|
+
}
|
|
457
|
+
);
|
|
458
|
+
};
|
|
435
459
|
se.displayName = "BaseCheckbox";
|
|
436
460
|
const ae = {
|
|
437
461
|
trackBg: "--_track-bg",
|
|
438
462
|
trackBorder: "--_track-border",
|
|
439
463
|
dotColor: "--_dot-color",
|
|
440
464
|
trackSize: "--_track-size"
|
|
441
|
-
}, oe =
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
465
|
+
}, oe = ({
|
|
466
|
+
ref: s,
|
|
467
|
+
definition: e,
|
|
468
|
+
className: a,
|
|
469
|
+
style: o,
|
|
470
|
+
children: t,
|
|
471
|
+
checked: l,
|
|
472
|
+
disabled: r,
|
|
473
|
+
...d
|
|
474
|
+
}) => {
|
|
475
|
+
const { style: n, dataAttrs: c } = u(e, ae);
|
|
476
|
+
return r && (c["data-disabled"] = ""), l && (c["data-checked"] = ""), /* @__PURE__ */ p(
|
|
477
|
+
"label",
|
|
478
|
+
{
|
|
479
|
+
className: a ? `gloss-base-radio ${a}` : "gloss-base-radio",
|
|
480
|
+
style: { ...n, ...o },
|
|
481
|
+
...c,
|
|
482
|
+
children: [
|
|
483
|
+
/* @__PURE__ */ i(
|
|
484
|
+
"input",
|
|
485
|
+
{
|
|
486
|
+
ref: s,
|
|
487
|
+
type: "radio",
|
|
488
|
+
className: "gloss-base-radio__input",
|
|
489
|
+
checked: l,
|
|
490
|
+
disabled: r,
|
|
491
|
+
...d
|
|
492
|
+
}
|
|
493
|
+
),
|
|
494
|
+
/* @__PURE__ */ i("span", { className: "gloss-base-radio__track" }),
|
|
495
|
+
t
|
|
496
|
+
]
|
|
497
|
+
}
|
|
498
|
+
);
|
|
499
|
+
};
|
|
469
500
|
oe.displayName = "BaseRadio";
|
|
470
501
|
const te = {
|
|
471
502
|
trackBg: "--_track-bg",
|
|
@@ -474,35 +505,42 @@ const te = {
|
|
|
474
505
|
trackWidth: "--_track-width",
|
|
475
506
|
trackHeight: "--_track-height",
|
|
476
507
|
thumbSize: "--_thumb-size"
|
|
477
|
-
}, re =
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
508
|
+
}, re = ({
|
|
509
|
+
ref: s,
|
|
510
|
+
definition: e,
|
|
511
|
+
className: a,
|
|
512
|
+
style: o,
|
|
513
|
+
children: t,
|
|
514
|
+
checked: l,
|
|
515
|
+
disabled: r,
|
|
516
|
+
...d
|
|
517
|
+
}) => {
|
|
518
|
+
const { style: n, dataAttrs: c } = u(e, te);
|
|
519
|
+
return r && (c["data-disabled"] = ""), l && (c["data-checked"] = ""), /* @__PURE__ */ p(
|
|
520
|
+
"label",
|
|
521
|
+
{
|
|
522
|
+
className: a ? `gloss-base-toggle ${a}` : "gloss-base-toggle",
|
|
523
|
+
style: { ...n, ...o },
|
|
524
|
+
...c,
|
|
525
|
+
children: [
|
|
526
|
+
/* @__PURE__ */ i(
|
|
527
|
+
"input",
|
|
528
|
+
{
|
|
529
|
+
ref: s,
|
|
530
|
+
type: "checkbox",
|
|
531
|
+
role: "switch",
|
|
532
|
+
className: "gloss-base-toggle__input",
|
|
533
|
+
checked: l,
|
|
534
|
+
disabled: r,
|
|
535
|
+
...d
|
|
536
|
+
}
|
|
537
|
+
),
|
|
538
|
+
/* @__PURE__ */ i("span", { className: "gloss-base-toggle__track", children: /* @__PURE__ */ i("span", { className: "gloss-base-toggle__thumb" }) }),
|
|
539
|
+
t
|
|
540
|
+
]
|
|
541
|
+
}
|
|
542
|
+
);
|
|
543
|
+
};
|
|
506
544
|
re.displayName = "BaseToggle";
|
|
507
545
|
const le = {
|
|
508
546
|
bg: "--_bg",
|
|
@@ -513,7 +551,7 @@ const le = {
|
|
|
513
551
|
padding: "--_padding"
|
|
514
552
|
};
|
|
515
553
|
function ie(s) {
|
|
516
|
-
const { definition: e, className: a, style: o, children: t, ...l } = s, { style: r, dataAttrs: d } =
|
|
554
|
+
const { definition: e, className: a, style: o, children: t, ...l } = s, { style: r, dataAttrs: d } = u(e, le);
|
|
517
555
|
return /* @__PURE__ */ i(
|
|
518
556
|
"div",
|
|
519
557
|
{
|
|
@@ -526,17 +564,20 @@ function ie(s) {
|
|
|
526
564
|
);
|
|
527
565
|
}
|
|
528
566
|
ie.displayName = "BaseSelect";
|
|
529
|
-
const de =
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
567
|
+
const de = ({
|
|
568
|
+
ref: s,
|
|
569
|
+
className: e,
|
|
570
|
+
children: a,
|
|
571
|
+
...o
|
|
572
|
+
}) => /* @__PURE__ */ i(
|
|
573
|
+
"button",
|
|
574
|
+
{
|
|
575
|
+
ref: s,
|
|
576
|
+
type: "button",
|
|
577
|
+
className: e ? `gloss-base-select__trigger ${e}` : "gloss-base-select__trigger",
|
|
578
|
+
...o,
|
|
579
|
+
children: a
|
|
580
|
+
}
|
|
540
581
|
);
|
|
541
582
|
de.displayName = "BaseSelectTrigger";
|
|
542
583
|
const ne = {
|
|
@@ -547,7 +588,7 @@ const ne = {
|
|
|
547
588
|
maxHeight: "--_dropdown-max-height"
|
|
548
589
|
};
|
|
549
590
|
function ce(s) {
|
|
550
|
-
const { definition: e, className: a, style: o, children: t, ...l } = s, { style: r } =
|
|
591
|
+
const { definition: e, className: a, style: o, children: t, ...l } = s, { style: r } = u(e, ne);
|
|
551
592
|
return /* @__PURE__ */ i(
|
|
552
593
|
"div",
|
|
553
594
|
{
|
|
@@ -560,27 +601,32 @@ function ce(s) {
|
|
|
560
601
|
);
|
|
561
602
|
}
|
|
562
603
|
ce.displayName = "BaseSelectDropdown";
|
|
563
|
-
const ge =
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
604
|
+
const ge = ({
|
|
605
|
+
ref: s,
|
|
606
|
+
className: e,
|
|
607
|
+
children: a,
|
|
608
|
+
selected: o,
|
|
609
|
+
disabled: t,
|
|
610
|
+
...l
|
|
611
|
+
}) => {
|
|
612
|
+
const r = {};
|
|
613
|
+
return o && (r["data-selected"] = ""), t && (r["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
614
|
+
"div",
|
|
615
|
+
{
|
|
616
|
+
ref: s,
|
|
617
|
+
role: "option",
|
|
618
|
+
"aria-selected": o,
|
|
619
|
+
"aria-disabled": t,
|
|
620
|
+
className: e ? `gloss-base-select__option ${e}` : "gloss-base-select__option",
|
|
621
|
+
...r,
|
|
622
|
+
...l,
|
|
623
|
+
children: a
|
|
624
|
+
}
|
|
625
|
+
);
|
|
626
|
+
};
|
|
581
627
|
ge.displayName = "BaseSelectOption";
|
|
582
628
|
function _e({ label: s, className: e, children: a, ...o }) {
|
|
583
|
-
return /* @__PURE__ */
|
|
629
|
+
return /* @__PURE__ */ p(
|
|
584
630
|
"div",
|
|
585
631
|
{
|
|
586
632
|
role: "group",
|
|
@@ -613,7 +659,7 @@ function be({
|
|
|
613
659
|
children: l,
|
|
614
660
|
...r
|
|
615
661
|
}) {
|
|
616
|
-
const { style: d, dataAttrs: n } =
|
|
662
|
+
const { style: d, dataAttrs: n } = u(s, ue, pe);
|
|
617
663
|
return o !== "horizontal" && (n["data-orientation"] = o), t && (n["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
618
664
|
"div",
|
|
619
665
|
{
|
|
@@ -626,220 +672,278 @@ function be({
|
|
|
626
672
|
);
|
|
627
673
|
}
|
|
628
674
|
be.displayName = "BaseSlider";
|
|
629
|
-
const
|
|
675
|
+
const me = {
|
|
630
676
|
bg: "--_bg",
|
|
631
677
|
border: "--_border",
|
|
632
678
|
radius: "--_radius",
|
|
633
679
|
elevation: "--_elevation",
|
|
634
680
|
padding: "--_padding"
|
|
635
|
-
},
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
}
|
|
666
|
-
)
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
681
|
+
}, ye = ({
|
|
682
|
+
ref: s,
|
|
683
|
+
definition: e,
|
|
684
|
+
className: a,
|
|
685
|
+
style: o,
|
|
686
|
+
children: t,
|
|
687
|
+
...l
|
|
688
|
+
}) => {
|
|
689
|
+
const { style: r, dataAttrs: d } = u(e, me);
|
|
690
|
+
return /* @__PURE__ */ i(
|
|
691
|
+
"div",
|
|
692
|
+
{
|
|
693
|
+
ref: s,
|
|
694
|
+
className: a ? `gloss-base-card ${a}` : "gloss-base-card",
|
|
695
|
+
style: { ...r, ...o },
|
|
696
|
+
...d,
|
|
697
|
+
...l,
|
|
698
|
+
children: t
|
|
699
|
+
}
|
|
700
|
+
);
|
|
701
|
+
};
|
|
702
|
+
ye.displayName = "BaseCard";
|
|
703
|
+
const fe = ({
|
|
704
|
+
ref: s,
|
|
705
|
+
definition: e,
|
|
706
|
+
className: a,
|
|
707
|
+
style: o,
|
|
708
|
+
children: t,
|
|
709
|
+
...l
|
|
710
|
+
}) => {
|
|
711
|
+
const r = { ...o };
|
|
712
|
+
return e?.padding && (r["--_header-padding"] = e.padding), /* @__PURE__ */ i(
|
|
713
|
+
"div",
|
|
714
|
+
{
|
|
715
|
+
ref: s,
|
|
716
|
+
className: a ? `gloss-base-card__header ${a}` : "gloss-base-card__header",
|
|
717
|
+
style: r,
|
|
718
|
+
...l,
|
|
719
|
+
children: t
|
|
720
|
+
}
|
|
721
|
+
);
|
|
722
|
+
};
|
|
723
|
+
fe.displayName = "BaseCardHeader";
|
|
724
|
+
const ve = ({
|
|
725
|
+
ref: s,
|
|
726
|
+
definition: e,
|
|
727
|
+
className: a,
|
|
728
|
+
style: o,
|
|
729
|
+
children: t,
|
|
730
|
+
...l
|
|
731
|
+
}) => {
|
|
732
|
+
const r = { ...o };
|
|
733
|
+
return e?.padding && (r["--_body-padding"] = e.padding), /* @__PURE__ */ i(
|
|
734
|
+
"div",
|
|
735
|
+
{
|
|
736
|
+
ref: s,
|
|
737
|
+
className: a ? `gloss-base-card__body ${a}` : "gloss-base-card__body",
|
|
738
|
+
style: r,
|
|
739
|
+
...l,
|
|
740
|
+
children: t
|
|
741
|
+
}
|
|
742
|
+
);
|
|
743
|
+
};
|
|
683
744
|
ve.displayName = "BaseCardBody";
|
|
684
|
-
const he =
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
745
|
+
const he = ({
|
|
746
|
+
ref: s,
|
|
747
|
+
definition: e,
|
|
748
|
+
className: a,
|
|
749
|
+
style: o,
|
|
750
|
+
children: t,
|
|
751
|
+
...l
|
|
752
|
+
}) => {
|
|
753
|
+
const r = { ...o };
|
|
754
|
+
return e?.padding && (r["--_footer-padding"] = e.padding), /* @__PURE__ */ i(
|
|
755
|
+
"div",
|
|
756
|
+
{
|
|
757
|
+
ref: s,
|
|
758
|
+
className: a ? `gloss-base-card__footer ${a}` : "gloss-base-card__footer",
|
|
759
|
+
style: r,
|
|
760
|
+
...l,
|
|
761
|
+
children: t
|
|
762
|
+
}
|
|
763
|
+
);
|
|
764
|
+
};
|
|
699
765
|
he.displayName = "BaseCardFooter";
|
|
700
|
-
const Be =
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
}
|
|
714
|
-
);
|
|
715
|
-
Be.displayName = "BaseCardMedia";
|
|
716
|
-
const Se = u.forwardRef(
|
|
717
|
-
({ className: s, children: e, ...a }, o) => /* @__PURE__ */ i(
|
|
718
|
-
"h3",
|
|
766
|
+
const Be = ({
|
|
767
|
+
ref: s,
|
|
768
|
+
src: e,
|
|
769
|
+
alt: a,
|
|
770
|
+
height: o,
|
|
771
|
+
className: t,
|
|
772
|
+
style: l,
|
|
773
|
+
children: r,
|
|
774
|
+
...d
|
|
775
|
+
}) => {
|
|
776
|
+
const n = { ...l };
|
|
777
|
+
return o && (n.height = o), /* @__PURE__ */ i(
|
|
778
|
+
"div",
|
|
719
779
|
{
|
|
720
|
-
ref:
|
|
721
|
-
className:
|
|
722
|
-
|
|
723
|
-
|
|
780
|
+
ref: s,
|
|
781
|
+
className: t ? `gloss-base-card__media ${t}` : "gloss-base-card__media",
|
|
782
|
+
style: n,
|
|
783
|
+
...d,
|
|
784
|
+
children: e ? /* @__PURE__ */ i("img", { src: e, alt: a || "" }) : r
|
|
724
785
|
}
|
|
725
|
-
)
|
|
786
|
+
);
|
|
787
|
+
};
|
|
788
|
+
Be.displayName = "BaseCardMedia";
|
|
789
|
+
const Se = ({
|
|
790
|
+
ref: s,
|
|
791
|
+
className: e,
|
|
792
|
+
children: a,
|
|
793
|
+
...o
|
|
794
|
+
}) => /* @__PURE__ */ i(
|
|
795
|
+
"h3",
|
|
796
|
+
{
|
|
797
|
+
ref: s,
|
|
798
|
+
className: e ? `gloss-base-card__title ${e}` : "gloss-base-card__title",
|
|
799
|
+
...o,
|
|
800
|
+
children: a
|
|
801
|
+
}
|
|
726
802
|
);
|
|
727
803
|
Se.displayName = "BaseCardTitle";
|
|
728
|
-
const Ae =
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
804
|
+
const Ae = ({
|
|
805
|
+
ref: s,
|
|
806
|
+
className: e,
|
|
807
|
+
children: a,
|
|
808
|
+
...o
|
|
809
|
+
}) => /* @__PURE__ */ i(
|
|
810
|
+
"p",
|
|
811
|
+
{
|
|
812
|
+
ref: s,
|
|
813
|
+
className: e ? `gloss-base-card__subtitle ${e}` : "gloss-base-card__subtitle",
|
|
814
|
+
...o,
|
|
815
|
+
children: a
|
|
816
|
+
}
|
|
738
817
|
);
|
|
739
818
|
Ae.displayName = "BaseCardSubtitle";
|
|
740
|
-
const ke =
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
819
|
+
const ke = ({
|
|
820
|
+
ref: s,
|
|
821
|
+
className: e,
|
|
822
|
+
children: a,
|
|
823
|
+
...o
|
|
824
|
+
}) => /* @__PURE__ */ i(
|
|
825
|
+
"div",
|
|
826
|
+
{
|
|
827
|
+
ref: s,
|
|
828
|
+
className: e ? `gloss-base-card__actions ${e}` : "gloss-base-card__actions",
|
|
829
|
+
...o,
|
|
830
|
+
children: a
|
|
831
|
+
}
|
|
750
832
|
);
|
|
751
833
|
ke.displayName = "BaseCardActions";
|
|
752
834
|
const Ne = {
|
|
753
835
|
borderColor: "--_border-color",
|
|
754
836
|
radius: "--_radius",
|
|
755
837
|
gap: "--_gap"
|
|
756
|
-
}, Ce =
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
children: o
|
|
768
|
-
}
|
|
769
|
-
);
|
|
770
|
-
}
|
|
771
|
-
);
|
|
772
|
-
Ce.displayName = "BaseAccordion";
|
|
773
|
-
const xe = u.forwardRef(
|
|
774
|
-
({ className: s, style: e, children: a, open: o, ...t }, l) => {
|
|
775
|
-
const r = {};
|
|
776
|
-
return o && (r["data-open"] = ""), /* @__PURE__ */ i(
|
|
777
|
-
"div",
|
|
778
|
-
{
|
|
779
|
-
ref: l,
|
|
780
|
-
className: s ? `gloss-base-accordion__item ${s}` : "gloss-base-accordion__item",
|
|
781
|
-
style: e,
|
|
782
|
-
...r,
|
|
783
|
-
...t,
|
|
784
|
-
children: a
|
|
785
|
-
}
|
|
786
|
-
);
|
|
787
|
-
}
|
|
788
|
-
);
|
|
789
|
-
xe.displayName = "BaseAccordionItem";
|
|
790
|
-
const Re = u.forwardRef(
|
|
791
|
-
({ className: s, children: e, ...a }, o) => /* @__PURE__ */ i(
|
|
792
|
-
"button",
|
|
838
|
+
}, Ce = ({
|
|
839
|
+
ref: s,
|
|
840
|
+
definition: e,
|
|
841
|
+
className: a,
|
|
842
|
+
style: o,
|
|
843
|
+
children: t,
|
|
844
|
+
...l
|
|
845
|
+
}) => {
|
|
846
|
+
const { style: r, dataAttrs: d } = u(e, Ne);
|
|
847
|
+
return /* @__PURE__ */ i(
|
|
848
|
+
"div",
|
|
793
849
|
{
|
|
794
|
-
ref:
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
...
|
|
798
|
-
|
|
850
|
+
ref: s,
|
|
851
|
+
className: a ? `gloss-base-accordion ${a}` : "gloss-base-accordion",
|
|
852
|
+
style: { ...r, ...o },
|
|
853
|
+
...d,
|
|
854
|
+
...l,
|
|
855
|
+
children: t
|
|
799
856
|
}
|
|
800
|
-
)
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
const
|
|
804
|
-
|
|
857
|
+
);
|
|
858
|
+
};
|
|
859
|
+
Ce.displayName = "BaseAccordion";
|
|
860
|
+
const xe = ({
|
|
861
|
+
ref: s,
|
|
862
|
+
className: e,
|
|
863
|
+
style: a,
|
|
864
|
+
children: o,
|
|
865
|
+
open: t,
|
|
866
|
+
...l
|
|
867
|
+
}) => {
|
|
868
|
+
const r = {};
|
|
869
|
+
return t && (r["data-open"] = ""), /* @__PURE__ */ i(
|
|
805
870
|
"div",
|
|
806
871
|
{
|
|
807
|
-
ref:
|
|
808
|
-
className:
|
|
809
|
-
style:
|
|
810
|
-
...
|
|
811
|
-
|
|
872
|
+
ref: s,
|
|
873
|
+
className: e ? `gloss-base-accordion__item ${e}` : "gloss-base-accordion__item",
|
|
874
|
+
style: a,
|
|
875
|
+
...r,
|
|
876
|
+
...l,
|
|
877
|
+
children: o
|
|
812
878
|
}
|
|
813
|
-
)
|
|
879
|
+
);
|
|
880
|
+
};
|
|
881
|
+
xe.displayName = "BaseAccordionItem";
|
|
882
|
+
const $e = ({
|
|
883
|
+
ref: s,
|
|
884
|
+
className: e,
|
|
885
|
+
children: a,
|
|
886
|
+
...o
|
|
887
|
+
}) => /* @__PURE__ */ i(
|
|
888
|
+
"button",
|
|
889
|
+
{
|
|
890
|
+
ref: s,
|
|
891
|
+
type: "button",
|
|
892
|
+
className: e ? `gloss-base-accordion__trigger ${e}` : "gloss-base-accordion__trigger",
|
|
893
|
+
...o,
|
|
894
|
+
children: a
|
|
895
|
+
}
|
|
814
896
|
);
|
|
815
|
-
$e.displayName = "
|
|
816
|
-
const Pe = {
|
|
897
|
+
$e.displayName = "BaseAccordionTrigger";
|
|
898
|
+
const Pe = ({
|
|
899
|
+
ref: s,
|
|
900
|
+
className: e,
|
|
901
|
+
style: a,
|
|
902
|
+
children: o,
|
|
903
|
+
...t
|
|
904
|
+
}) => /* @__PURE__ */ i(
|
|
905
|
+
"div",
|
|
906
|
+
{
|
|
907
|
+
ref: s,
|
|
908
|
+
className: e ? `gloss-base-accordion__content ${e}` : "gloss-base-accordion__content",
|
|
909
|
+
style: a,
|
|
910
|
+
...t,
|
|
911
|
+
children: o
|
|
912
|
+
}
|
|
913
|
+
);
|
|
914
|
+
Pe.displayName = "BaseAccordionContent";
|
|
915
|
+
const ze = {
|
|
817
916
|
bg: "--_bg",
|
|
818
917
|
borderColor: "--_border-color",
|
|
819
918
|
radius: "--_radius",
|
|
820
919
|
elevation: "--_elevation",
|
|
821
920
|
padding: "--_padding",
|
|
822
921
|
minWidth: "--_min-width"
|
|
823
|
-
},
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
922
|
+
}, Re = ({
|
|
923
|
+
ref: s,
|
|
924
|
+
definition: e,
|
|
925
|
+
className: a,
|
|
926
|
+
style: o,
|
|
927
|
+
children: t,
|
|
928
|
+
...l
|
|
929
|
+
}) => {
|
|
930
|
+
const { style: r, dataAttrs: d } = u(e, ze);
|
|
931
|
+
return /* @__PURE__ */ i(
|
|
932
|
+
"div",
|
|
933
|
+
{
|
|
934
|
+
ref: s,
|
|
935
|
+
role: "menu",
|
|
936
|
+
className: a ? `gloss-base-menu ${a}` : "gloss-base-menu",
|
|
937
|
+
style: { ...r, ...o },
|
|
938
|
+
...d,
|
|
939
|
+
...l,
|
|
940
|
+
children: t
|
|
941
|
+
}
|
|
942
|
+
);
|
|
943
|
+
};
|
|
944
|
+
Re.displayName = "BaseMenu";
|
|
945
|
+
function we({ label: s, className: e, style: a, children: o, ...t }) {
|
|
946
|
+
return /* @__PURE__ */ p(
|
|
843
947
|
"div",
|
|
844
948
|
{
|
|
845
949
|
role: "group",
|
|
@@ -854,32 +958,40 @@ function ze({ label: s, className: e, style: a, children: o, ...t }) {
|
|
|
854
958
|
}
|
|
855
959
|
);
|
|
856
960
|
}
|
|
857
|
-
|
|
961
|
+
we.displayName = "BaseMenuGroup";
|
|
858
962
|
const Me = {
|
|
859
963
|
padding: "--_item-padding",
|
|
860
964
|
fontSize: "--_item-font-size",
|
|
861
965
|
color: "--_item-color",
|
|
862
966
|
hoverBg: "--_item-hover-bg"
|
|
863
|
-
}, Te =
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
967
|
+
}, Te = ({
|
|
968
|
+
ref: s,
|
|
969
|
+
definition: e,
|
|
970
|
+
className: a,
|
|
971
|
+
style: o,
|
|
972
|
+
children: t,
|
|
973
|
+
disabled: l,
|
|
974
|
+
active: r,
|
|
975
|
+
as: d = "div",
|
|
976
|
+
...n
|
|
977
|
+
}) => {
|
|
978
|
+
const { style: c, dataAttrs: g } = u(e, Me);
|
|
979
|
+
return l && (g["data-disabled"] = ""), r && (g["data-active"] = ""), /* @__PURE__ */ i(
|
|
980
|
+
d,
|
|
981
|
+
{
|
|
982
|
+
ref: s,
|
|
983
|
+
role: "menuitem",
|
|
984
|
+
tabIndex: l ? -1 : 0,
|
|
985
|
+
"aria-disabled": l || void 0,
|
|
986
|
+
"aria-current": r ? "page" : void 0,
|
|
987
|
+
className: a ? `gloss-base-menu__item ${a}` : "gloss-base-menu__item",
|
|
988
|
+
style: { ...c, ...o },
|
|
989
|
+
...g,
|
|
990
|
+
...n,
|
|
991
|
+
children: t
|
|
992
|
+
}
|
|
993
|
+
);
|
|
994
|
+
};
|
|
883
995
|
Te.displayName = "BaseMenuItem";
|
|
884
996
|
function De({ className: s }) {
|
|
885
997
|
return /* @__PURE__ */ i(
|
|
@@ -899,26 +1011,32 @@ const Ie = {
|
|
|
899
1011
|
fontSize: "--_font-size",
|
|
900
1012
|
maxWidth: "--_max-width",
|
|
901
1013
|
arrowSize: "--_arrow-size"
|
|
902
|
-
}, Ve = {}, Ee =
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
1014
|
+
}, Ve = {}, Ee = ({
|
|
1015
|
+
ref: s,
|
|
1016
|
+
definition: e,
|
|
1017
|
+
className: a,
|
|
1018
|
+
style: o,
|
|
1019
|
+
children: t,
|
|
1020
|
+
placement: l = "top",
|
|
1021
|
+
...r
|
|
1022
|
+
}) => {
|
|
1023
|
+
const { style: d, dataAttrs: n } = u(e, Ie, Ve);
|
|
1024
|
+
return n["data-placement"] = l, /* @__PURE__ */ p(
|
|
1025
|
+
"div",
|
|
1026
|
+
{
|
|
1027
|
+
ref: s,
|
|
1028
|
+
role: "tooltip",
|
|
1029
|
+
className: a ? `gloss-base-tooltip ${a}` : "gloss-base-tooltip",
|
|
1030
|
+
style: { ...d, ...o },
|
|
1031
|
+
...n,
|
|
1032
|
+
...r,
|
|
1033
|
+
children: [
|
|
1034
|
+
/* @__PURE__ */ i("div", { className: "gloss-base-tooltip__content", children: t }),
|
|
1035
|
+
/* @__PURE__ */ i("div", { className: "gloss-base-tooltip__arrow" })
|
|
1036
|
+
]
|
|
1037
|
+
}
|
|
1038
|
+
);
|
|
1039
|
+
};
|
|
922
1040
|
Ee.displayName = "BaseTooltip";
|
|
923
1041
|
const Oe = {
|
|
924
1042
|
activeColor: "--_active-color",
|
|
@@ -926,23 +1044,30 @@ const Oe = {
|
|
|
926
1044
|
hoverColor: "--_hover-color",
|
|
927
1045
|
starSize: "--_star-size",
|
|
928
1046
|
gap: "--_gap"
|
|
929
|
-
}, He =
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
1047
|
+
}, He = ({
|
|
1048
|
+
ref: s,
|
|
1049
|
+
definition: e,
|
|
1050
|
+
className: a,
|
|
1051
|
+
style: o,
|
|
1052
|
+
children: t,
|
|
1053
|
+
readOnly: l,
|
|
1054
|
+
disabled: r,
|
|
1055
|
+
...d
|
|
1056
|
+
}) => {
|
|
1057
|
+
const { style: n, dataAttrs: c } = u(e, Oe);
|
|
1058
|
+
return l && (c["data-readonly"] = ""), r && (c["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
1059
|
+
"div",
|
|
1060
|
+
{
|
|
1061
|
+
ref: s,
|
|
1062
|
+
role: "radiogroup",
|
|
1063
|
+
className: a ? `gloss-base-rating ${a}` : "gloss-base-rating",
|
|
1064
|
+
style: { ...n, ...o },
|
|
1065
|
+
...c,
|
|
1066
|
+
...d,
|
|
1067
|
+
children: t
|
|
1068
|
+
}
|
|
1069
|
+
);
|
|
1070
|
+
};
|
|
946
1071
|
He.displayName = "BaseRating";
|
|
947
1072
|
const Ge = {
|
|
948
1073
|
bg: "--_bg",
|
|
@@ -951,23 +1076,29 @@ const Ge = {
|
|
|
951
1076
|
radius: "--_radius",
|
|
952
1077
|
padding: "--_padding",
|
|
953
1078
|
fontSize: "--_font-size"
|
|
954
|
-
}, Fe =
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
1079
|
+
}, Fe = ({
|
|
1080
|
+
ref: s,
|
|
1081
|
+
definition: e,
|
|
1082
|
+
className: a,
|
|
1083
|
+
style: o,
|
|
1084
|
+
children: t,
|
|
1085
|
+
disabled: l,
|
|
1086
|
+
...r
|
|
1087
|
+
}) => {
|
|
1088
|
+
const { style: d, dataAttrs: n } = u(e, Ge);
|
|
1089
|
+
return l && (n["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
1090
|
+
"div",
|
|
1091
|
+
{
|
|
1092
|
+
ref: s,
|
|
1093
|
+
role: "radiogroup",
|
|
1094
|
+
className: a ? `gloss-base-segmented-control ${a}` : "gloss-base-segmented-control",
|
|
1095
|
+
style: { ...d, ...o },
|
|
1096
|
+
...n,
|
|
1097
|
+
...r,
|
|
1098
|
+
children: t
|
|
1099
|
+
}
|
|
1100
|
+
);
|
|
1101
|
+
};
|
|
971
1102
|
Fe.displayName = "BaseSegmentedControl";
|
|
972
1103
|
const Le = {
|
|
973
1104
|
bg: "--_bg",
|
|
@@ -977,7 +1108,7 @@ const Le = {
|
|
|
977
1108
|
padding: "--_padding"
|
|
978
1109
|
};
|
|
979
1110
|
function We({ definition: s, className: e, style: a, children: o, ...t }) {
|
|
980
|
-
const { style: l, dataAttrs: r } =
|
|
1111
|
+
const { style: l, dataAttrs: r } = u(s, Le);
|
|
981
1112
|
return /* @__PURE__ */ i(
|
|
982
1113
|
"div",
|
|
983
1114
|
{
|
|
@@ -1032,7 +1163,7 @@ function Ke({
|
|
|
1032
1163
|
children: d,
|
|
1033
1164
|
...n
|
|
1034
1165
|
}) {
|
|
1035
|
-
const { style: c, dataAttrs: g } =
|
|
1166
|
+
const { style: c, dataAttrs: g } = u(s, je);
|
|
1036
1167
|
return o && (g["data-selected"] = ""), t && (g["data-today"] = ""), r && (g["data-disabled"] = ""), l && (g["data-outside-month"] = ""), /* @__PURE__ */ i(
|
|
1037
1168
|
"button",
|
|
1038
1169
|
{
|
|
@@ -1056,7 +1187,7 @@ const Ze = {
|
|
|
1056
1187
|
cellHeight: "--_cell-height"
|
|
1057
1188
|
};
|
|
1058
1189
|
function Ye({ definition: s, className: e, style: a, children: o, ...t }) {
|
|
1059
|
-
const { style: l, dataAttrs: r } =
|
|
1190
|
+
const { style: l, dataAttrs: r } = u(s, Ze);
|
|
1060
1191
|
return /* @__PURE__ */ i(
|
|
1061
1192
|
"div",
|
|
1062
1193
|
{
|
|
@@ -1108,7 +1239,7 @@ const Qe = {
|
|
|
1108
1239
|
gap: "--_gap"
|
|
1109
1240
|
};
|
|
1110
1241
|
function es({ definition: s, className: e, style: a, children: o, ...t }) {
|
|
1111
|
-
const { style: l, dataAttrs: r } =
|
|
1242
|
+
const { style: l, dataAttrs: r } = u(s, Qe);
|
|
1112
1243
|
return /* @__PURE__ */ i(
|
|
1113
1244
|
"div",
|
|
1114
1245
|
{
|
|
@@ -1160,7 +1291,7 @@ const as = {
|
|
|
1160
1291
|
minHeight: "--_min-height"
|
|
1161
1292
|
};
|
|
1162
1293
|
function os({ definition: s, className: e, style: a, disabled: o, children: t, ...l }) {
|
|
1163
|
-
const { style: r, dataAttrs: d } =
|
|
1294
|
+
const { style: r, dataAttrs: d } = u(s, as);
|
|
1164
1295
|
return o && (d["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
1165
1296
|
"div",
|
|
1166
1297
|
{
|
|
@@ -1184,31 +1315,39 @@ const ts = {
|
|
|
1184
1315
|
minHeight: "--_min-height",
|
|
1185
1316
|
placeholderColor: "--_placeholder-color",
|
|
1186
1317
|
placeholderCharColor: "--_placeholder-char-color"
|
|
1187
|
-
}, rs =
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1318
|
+
}, rs = ({
|
|
1319
|
+
ref: s,
|
|
1320
|
+
definition: e,
|
|
1321
|
+
className: a,
|
|
1322
|
+
style: o,
|
|
1323
|
+
label: t,
|
|
1324
|
+
helperText: l,
|
|
1325
|
+
required: r,
|
|
1326
|
+
status: d = "default",
|
|
1327
|
+
...n
|
|
1328
|
+
}) => {
|
|
1329
|
+
const { style: c, dataAttrs: g } = u(e, ts);
|
|
1330
|
+
d !== "default" && (g["data-status"] = d), n.disabled && (g["data-disabled"] = ""), n.readOnly && (g["data-readonly"] = "");
|
|
1331
|
+
const _ = /* @__PURE__ */ i(
|
|
1332
|
+
"input",
|
|
1333
|
+
{
|
|
1334
|
+
ref: s,
|
|
1335
|
+
className: a ? `gloss-base-maskedinput ${a}` : "gloss-base-maskedinput",
|
|
1336
|
+
style: { ...c, ...o },
|
|
1337
|
+
required: r,
|
|
1338
|
+
...g,
|
|
1339
|
+
...n
|
|
1340
|
+
}
|
|
1341
|
+
);
|
|
1342
|
+
return !t && !l ? _ : /* @__PURE__ */ p("div", { className: "gloss-base-maskedinput__wrapper", children: [
|
|
1343
|
+
t && /* @__PURE__ */ p("label", { className: "gloss-base-maskedinput__label", children: [
|
|
1344
|
+
t,
|
|
1345
|
+
r && /* @__PURE__ */ i("span", { className: "gloss-base-maskedinput__required", children: "*" })
|
|
1346
|
+
] }),
|
|
1347
|
+
_,
|
|
1348
|
+
l && /* @__PURE__ */ i("div", { className: "gloss-base-maskedinput__helper", children: l })
|
|
1349
|
+
] });
|
|
1350
|
+
};
|
|
1212
1351
|
rs.displayName = "BaseMaskedInput";
|
|
1213
1352
|
const ls = {
|
|
1214
1353
|
bg: "--_bg",
|
|
@@ -1219,7 +1358,7 @@ const ls = {
|
|
|
1219
1358
|
minHeight: "--_min-height"
|
|
1220
1359
|
};
|
|
1221
1360
|
function is({ definition: s, className: e, style: a, dragging: o, disabled: t, children: l, ...r }) {
|
|
1222
|
-
const { style: d, dataAttrs: n } =
|
|
1361
|
+
const { style: d, dataAttrs: n } = u(s, ls);
|
|
1223
1362
|
return o && (n["data-dragging"] = ""), t && (n["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
1224
1363
|
"div",
|
|
1225
1364
|
{
|
|
@@ -1264,7 +1403,7 @@ const cs = {
|
|
|
1264
1403
|
swatchSize: "--_swatch-size"
|
|
1265
1404
|
};
|
|
1266
1405
|
function gs({ definition: s, className: e, style: a, disabled: o, children: t, ...l }) {
|
|
1267
|
-
const { style: r, dataAttrs: d } =
|
|
1406
|
+
const { style: r, dataAttrs: d } = u(s, cs);
|
|
1268
1407
|
return o && (d["data-disabled"] = ""), /* @__PURE__ */ i(
|
|
1269
1408
|
"div",
|
|
1270
1409
|
{
|
|
@@ -1325,7 +1464,7 @@ function bs({ className: s, style: e, children: a, ...o }) {
|
|
|
1325
1464
|
);
|
|
1326
1465
|
}
|
|
1327
1466
|
bs.displayName = "BaseColorPickerSwatch";
|
|
1328
|
-
const
|
|
1467
|
+
const ms = {
|
|
1329
1468
|
trackBg: "--_track-bg",
|
|
1330
1469
|
trackActiveBg: "--_track-active-bg",
|
|
1331
1470
|
thumbBg: "--_thumb-bg",
|
|
@@ -1334,7 +1473,7 @@ const fs = {
|
|
|
1334
1473
|
trackHeight: "--_track-height",
|
|
1335
1474
|
thumbShadow: "--_thumb-shadow"
|
|
1336
1475
|
};
|
|
1337
|
-
function
|
|
1476
|
+
function ys({
|
|
1338
1477
|
definition: s,
|
|
1339
1478
|
className: e,
|
|
1340
1479
|
style: a,
|
|
@@ -1344,7 +1483,7 @@ function ms({
|
|
|
1344
1483
|
children: r,
|
|
1345
1484
|
...d
|
|
1346
1485
|
}) {
|
|
1347
|
-
const { style: n, dataAttrs: c } =
|
|
1486
|
+
const { style: n, dataAttrs: c } = u(s, ms);
|
|
1348
1487
|
return o !== "horizontal" && (c["data-orientation"] = o), t && (c["data-disabled"] = ""), l && (c["data-collision"] = ""), /* @__PURE__ */ i(
|
|
1349
1488
|
"div",
|
|
1350
1489
|
{
|
|
@@ -1356,8 +1495,8 @@ function ms({
|
|
|
1356
1495
|
}
|
|
1357
1496
|
);
|
|
1358
1497
|
}
|
|
1359
|
-
|
|
1360
|
-
const
|
|
1498
|
+
ys.displayName = "BaseRangeSlider";
|
|
1499
|
+
const fs = {
|
|
1361
1500
|
1: "h1",
|
|
1362
1501
|
2: "h2",
|
|
1363
1502
|
3: "h3",
|
|
@@ -1365,9 +1504,9 @@ const ys = {
|
|
|
1365
1504
|
5: "h5",
|
|
1366
1505
|
6: "h6"
|
|
1367
1506
|
}, vs = function(e) {
|
|
1368
|
-
const { as: a, level: o = 2, className: t, ...l } = e, r = a ||
|
|
1507
|
+
const { as: a, level: o = 2, className: t, ...l } = e, r = a || fs[o];
|
|
1369
1508
|
return /* @__PURE__ */ i(
|
|
1370
|
-
|
|
1509
|
+
$,
|
|
1371
1510
|
{
|
|
1372
1511
|
as: r,
|
|
1373
1512
|
className: t ? `gloss-base-title ${t}` : "gloss-base-title",
|
|
@@ -1405,7 +1544,7 @@ function hs({
|
|
|
1405
1544
|
open: e,
|
|
1406
1545
|
onDismiss: a,
|
|
1407
1546
|
anchorRef: o,
|
|
1408
|
-
children: /* @__PURE__ */
|
|
1547
|
+
children: /* @__PURE__ */ p(
|
|
1409
1548
|
"div",
|
|
1410
1549
|
{
|
|
1411
1550
|
className: t ? `gloss-base-popover ${t}` : "gloss-base-popover",
|
|
@@ -1428,7 +1567,7 @@ const Bs = {
|
|
|
1428
1567
|
radius: "--_radius"
|
|
1429
1568
|
};
|
|
1430
1569
|
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: _ } =
|
|
1570
|
+
const { definition: e, src: a, alt: o, className: t, style: l, children: r, ...d } = s, [n, c] = N(!1), { style: g, dataAttrs: _ } = u(e, Bs), b = a && !n;
|
|
1432
1571
|
return /* @__PURE__ */ i(
|
|
1433
1572
|
"div",
|
|
1434
1573
|
{
|
|
@@ -1436,7 +1575,7 @@ function Ss(s) {
|
|
|
1436
1575
|
style: { ...g, ...l },
|
|
1437
1576
|
..._,
|
|
1438
1577
|
...d,
|
|
1439
|
-
children:
|
|
1578
|
+
children: b ? /* @__PURE__ */ i(
|
|
1440
1579
|
"img",
|
|
1441
1580
|
{
|
|
1442
1581
|
src: a,
|
|
@@ -1455,7 +1594,7 @@ const As = {
|
|
|
1455
1594
|
radius: "--_radius"
|
|
1456
1595
|
};
|
|
1457
1596
|
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 } =
|
|
1597
|
+
const { definition: e, value: a, max: o = 100, indeterminate: t = !1, className: l, style: r, ...d } = s, { style: n, dataAttrs: c } = u(e, As);
|
|
1459
1598
|
t && (c["data-indeterminate"] = "");
|
|
1460
1599
|
const g = t ? void 0 : `${Math.min(100, (a || 0) / (o || 100) * 100)}%`;
|
|
1461
1600
|
return /* @__PURE__ */ i(
|
|
@@ -1490,7 +1629,7 @@ const Ns = {
|
|
|
1490
1629
|
fontWeight: "--_font-weight"
|
|
1491
1630
|
};
|
|
1492
1631
|
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 } =
|
|
1632
|
+
const { as: e, definition: a, className: o, style: t, dot: l, children: r, ...d } = s, n = e || "span", { style: c, dataAttrs: g } = u(a, Ns);
|
|
1494
1633
|
return l && (g["data-dot"] = ""), /* @__PURE__ */ i(
|
|
1495
1634
|
n,
|
|
1496
1635
|
{
|
|
@@ -1514,7 +1653,7 @@ const xs = {
|
|
|
1514
1653
|
fontWeight: "--_font-weight",
|
|
1515
1654
|
gap: "--_gap"
|
|
1516
1655
|
};
|
|
1517
|
-
function
|
|
1656
|
+
function $s(s) {
|
|
1518
1657
|
const {
|
|
1519
1658
|
as: e,
|
|
1520
1659
|
definition: a,
|
|
@@ -1527,15 +1666,15 @@ function Rs(s) {
|
|
|
1527
1666
|
leftIcon: c,
|
|
1528
1667
|
deleteButton: g,
|
|
1529
1668
|
children: _,
|
|
1530
|
-
...
|
|
1531
|
-
} = s, m = e || "span", { style: v, dataAttrs: y } =
|
|
1532
|
-
return l && (y["data-disabled"] = ""), r && (y["data-clickable"] = ""), d && (y["data-selected"] = ""), /* @__PURE__ */
|
|
1669
|
+
...b
|
|
1670
|
+
} = s, m = e || "span", { style: v, dataAttrs: y } = u(a, xs);
|
|
1671
|
+
return l && (y["data-disabled"] = ""), r && (y["data-clickable"] = ""), d && (y["data-selected"] = ""), /* @__PURE__ */ p(
|
|
1533
1672
|
m,
|
|
1534
1673
|
{
|
|
1535
1674
|
className: o ? `gloss-base-chip ${o}` : "gloss-base-chip",
|
|
1536
1675
|
style: { ...v, ...t },
|
|
1537
1676
|
...y,
|
|
1538
|
-
...
|
|
1677
|
+
...b,
|
|
1539
1678
|
children: [
|
|
1540
1679
|
n && /* @__PURE__ */ i("span", { className: "gloss-base-chip__avatar", children: n }),
|
|
1541
1680
|
c && /* @__PURE__ */ i("span", { className: "gloss-base-chip__icon", children: c }),
|
|
@@ -1545,23 +1684,23 @@ function Rs(s) {
|
|
|
1545
1684
|
}
|
|
1546
1685
|
);
|
|
1547
1686
|
}
|
|
1548
|
-
|
|
1549
|
-
const
|
|
1687
|
+
$s.displayName = "BaseChip";
|
|
1688
|
+
const Ps = {
|
|
1550
1689
|
color: "--_color",
|
|
1551
1690
|
fontSize: "--_font-size",
|
|
1552
1691
|
fontWeight: "--_font-weight",
|
|
1553
1692
|
gap: "--_gap"
|
|
1554
|
-
},
|
|
1693
|
+
}, zs = {
|
|
1555
1694
|
underline: "data-underline"
|
|
1556
1695
|
};
|
|
1557
|
-
function
|
|
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:
|
|
1559
|
-
return l && (
|
|
1696
|
+
function Rs(s) {
|
|
1697
|
+
const { as: e, definition: a, className: o, style: t, disabled: l, leftIcon: r, rightIcon: d, children: n, ...c } = s, g = e || "a", { style: _, dataAttrs: b } = u(a, Ps, zs);
|
|
1698
|
+
return l && (b["data-disabled"] = ""), /* @__PURE__ */ p(
|
|
1560
1699
|
g,
|
|
1561
1700
|
{
|
|
1562
1701
|
className: o ? `gloss-base-link ${o}` : "gloss-base-link",
|
|
1563
1702
|
style: { ..._, ...t },
|
|
1564
|
-
...
|
|
1703
|
+
...b,
|
|
1565
1704
|
...c,
|
|
1566
1705
|
children: [
|
|
1567
1706
|
r && /* @__PURE__ */ i("span", { className: "gloss-base-link__icon gloss-base-link__icon--left", children: r }),
|
|
@@ -1571,17 +1710,17 @@ function ws(s) {
|
|
|
1571
1710
|
}
|
|
1572
1711
|
);
|
|
1573
1712
|
}
|
|
1574
|
-
|
|
1575
|
-
const
|
|
1713
|
+
Rs.displayName = "BaseLink";
|
|
1714
|
+
const ws = { region: null, density: "default" }, A = C(ws);
|
|
1576
1715
|
function Xs() {
|
|
1577
1716
|
return x(A);
|
|
1578
1717
|
}
|
|
1579
1718
|
function Ms({ region: s, density: e = "default", children: a }) {
|
|
1580
1719
|
const o = { region: s, density: e };
|
|
1581
|
-
return
|
|
1720
|
+
return f.createElement(
|
|
1582
1721
|
A.Provider,
|
|
1583
1722
|
{ value: o },
|
|
1584
|
-
|
|
1723
|
+
f.createElement(
|
|
1585
1724
|
"div",
|
|
1586
1725
|
{
|
|
1587
1726
|
"data-region": s,
|
|
@@ -1598,11 +1737,11 @@ export {
|
|
|
1598
1737
|
xe as A,
|
|
1599
1738
|
hs as B,
|
|
1600
1739
|
Hs as C,
|
|
1601
|
-
|
|
1740
|
+
$e as D,
|
|
1602
1741
|
Ls as E,
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1742
|
+
Pe as F,
|
|
1743
|
+
Re as G,
|
|
1744
|
+
we as H,
|
|
1606
1745
|
Te as I,
|
|
1607
1746
|
De as J,
|
|
1608
1747
|
Ee as K,
|
|
@@ -1632,15 +1771,15 @@ export {
|
|
|
1632
1771
|
us as a6,
|
|
1633
1772
|
ps as a7,
|
|
1634
1773
|
bs as a8,
|
|
1635
|
-
|
|
1774
|
+
ys as a9,
|
|
1636
1775
|
vs as aa,
|
|
1637
1776
|
Ss as ab,
|
|
1638
1777
|
ks as ac,
|
|
1639
1778
|
Cs as ad,
|
|
1640
|
-
|
|
1641
|
-
|
|
1779
|
+
$s as ae,
|
|
1780
|
+
Rs as af,
|
|
1642
1781
|
B as ag,
|
|
1643
|
-
|
|
1782
|
+
u as ah,
|
|
1644
1783
|
S as b,
|
|
1645
1784
|
L as c,
|
|
1646
1785
|
U as d,
|
|
@@ -1656,8 +1795,8 @@ export {
|
|
|
1656
1795
|
ge as n,
|
|
1657
1796
|
_e as o,
|
|
1658
1797
|
be as p,
|
|
1659
|
-
|
|
1660
|
-
|
|
1798
|
+
ye as q,
|
|
1799
|
+
fe as r,
|
|
1661
1800
|
ve as s,
|
|
1662
1801
|
he as t,
|
|
1663
1802
|
Xs as u,
|