@mt-gloss/ui 0.1.106 → 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.
@@ -1,19 +1,20 @@
1
- import { jsx as n, jsxs as b } from "react/jsx-runtime";
2
- import p, { useState as C, createContext as x, useContext as $ } from "react";
3
- import { createPortal as w } from "react-dom";
4
- import { useFloating as R, autoUpdate as P, offset as z, flip as T, shift as M, useDismiss as D, useRole as I, useInteractions as V } from "@floating-ui/react";
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 u(s, a, e, o) {
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(a)) {
10
- const i = s[r];
11
- i != null && i !== !1 && (t[d] = String(i));
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 (e)
14
- for (const [r, d] of Object.entries(e)) {
15
- const i = s[r];
16
- i != null && i !== !1 && (l[d] = String(i));
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
- }, F = {
33
+ }, G = {
33
34
  display: "data-display"
34
35
  };
35
- function G(s) {
36
- const { as: a, definition: e, className: o, style: t, children: l, disabled: r, loading: d, ...i } = s, c = a || "button", { style: g, dataAttrs: _ } = u(e, H, F);
37
- return r && (_["data-disabled"] = ""), d && (_["data-loading"] = ""), /* @__PURE__ */ n(
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
- ...i,
45
+ ...n,
45
46
  children: l
46
47
  }
47
48
  );
48
49
  }
49
- G.displayName = "BaseButton";
50
- const Ga = {
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
- }, La = {
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
- }, Wa = {
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
- }, Xa = {
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
- }, ja = {
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
- }, Ua = {
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: a, definition: e, className: o, style: t, children: l, ...r } = s, d = a || "div", i = { ...t };
184
- e?.padding && (i["--_padding"] = e.padding), e?.paddingX && (i["--_px"] = e.paddingX), e?.paddingY && (i["--_py"] = e.paddingY), e?.margin && (i["--_margin"] = e.margin), e?.gap && (i["--_gap"] = e.gap), e?.bg && (i["--_bg"] = e.bg), e?.border && (i["--_border"] = e.border), e?.radius && (i["--_radius"] = e.radius);
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 e?.display && (c["data-display"] = e.display), e?.direction && (c["data-direction"] = e.direction), e?.align && (c["data-align"] = e.align), e?.justify && (c["data-justify"] = e.justify), e?.wrap && (c["data-wrap"] = ""), e?.paddingX && (c["data-has-px"] = ""), e?.paddingY && (c["data-has-py"] = ""), /* @__PURE__ */ n(
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: i,
191
+ style: n,
207
192
  ...c,
208
193
  ...r,
209
194
  children: l
210
195
  }
211
196
  );
212
197
  }
213
- W.displayName = "BaseStack";
214
- function X(s) {
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
- }, S = ({
204
+ }, B = ({
251
205
  name: s,
252
- size: a = "md",
253
- className: e = "",
206
+ size: e = "md",
207
+ className: a = "",
254
208
  ...o
255
209
  }) => {
256
- const t = j[a];
257
- return /* @__PURE__ */ n(
210
+ const t = W[e];
211
+ return /* @__PURE__ */ i(
258
212
  "svg",
259
213
  {
260
214
  width: t,
261
215
  height: t,
262
- className: e,
216
+ className: a,
263
217
  "aria-hidden": "true",
264
218
  focusable: "false",
265
219
  ...o,
266
- children: /* @__PURE__ */ n("use", { href: `#${s}` })
220
+ children: /* @__PURE__ */ i("use", { href: `#${s}` })
267
221
  }
268
222
  );
269
223
  };
270
- S.displayName = "Icon";
224
+ B.displayName = "Icon";
271
225
  function U(s) {
272
- const { definition: a, name: e, icon: o, className: t, style: l } = s;
273
- if (!e && !o) return null;
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
- a?.color && (r["--_color"] = a.color);
229
+ e?.color && (r["--_color"] = e.color);
276
230
  const d = {};
277
- return a?.size && (d["data-size"] = a.size), /* @__PURE__ */ n(
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: e ? /* @__PURE__ */ n(S, { name: e, size: a?.size ?? "md" }) : o
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 Y(s) {
242
+ function X(s) {
289
243
  const {
290
- open: a,
291
- placement: e = "bottom",
244
+ open: e,
245
+ placement: a = "bottom",
292
246
  offsetValue: o = 8,
293
247
  onOpenChange: t
294
248
  } = s;
295
- return R({
296
- open: a,
249
+ return P({
250
+ open: e,
297
251
  onOpenChange: t,
298
- placement: e,
299
- middleware: [z(o), T(), M()],
300
- whileElementsMounted: P,
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 K(s) {
264
+ function j(s) {
311
265
  const {
312
- context: a,
313
- outsidePress: e = !0,
266
+ context: e,
267
+ outsidePress: a = !0,
314
268
  escapeKey: o = !0,
315
269
  role: t = "dialog"
316
- } = s, l = D(a, { outsidePress: e, escapeKey: o }), r = I(a, { role: t }), { getFloatingProps: d, getReferenceProps: i } = V([
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: i };
274
+ return { getFloatingProps: d, getReferenceProps: n };
321
275
  }
322
- function A(s) {
323
- const { definition: a, open: e, onDismiss: o, anchorRef: t, className: l, style: r, children: d } = s, i = (N) => {
324
- !N && o && o();
325
- }, [c, g] = p.useState(
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
- p.useEffect(() => {
282
+ u.useEffect(() => {
329
283
  g(t?.current ?? null);
330
284
  });
331
- const _ = Y({
332
- open: e,
333
- placement: a?.placement,
334
- offsetValue: a?.offset,
335
- onOpenChange: i
285
+ const _ = X({
286
+ open: a,
287
+ placement: e?.placement,
288
+ offsetValue: e?.offset,
289
+ onOpenChange: n
336
290
  });
337
- p.useEffect(() => {
291
+ u.useEffect(() => {
338
292
  c && (_.refs.setReference(c), _.update());
339
293
  }, [c, _.refs, _.update]);
340
- const { getFloatingProps: f } = K({
294
+ const { getFloatingProps: f } = j({
341
295
  context: _.context,
342
- outsidePress: a?.dismissOnClickOutside ?? !0,
343
- escapeKey: a?.dismissOnEscape ?? !0,
344
- role: a?.role ?? "dialog"
296
+ outsidePress: e?.dismissOnClickOutside ?? !0,
297
+ escapeKey: e?.dismissOnEscape ?? !0,
298
+ role: e?.role ?? "dialog"
345
299
  }), m = { ...r };
346
- a?.bg && (m["--_bg"] = a.bg), a?.shadow && (m["--_shadow"] = a.shadow), a?.radius && (m["--_radius"] = a.radius), a?.padding && (m["--_padding"] = a.padding), a?.zIndex && (m["--_z-index"] = a.zIndex);
347
- const v = a?.portal !== !1, y = !!c, B = /* @__PURE__ */ n(E, { children: e && /* @__PURE__ */ n(
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" ? w(B, document.body) : B;
315
+ return v && typeof document < "u" ? $(h, document.body) : h;
362
316
  }
363
- A.displayName = "BaseOverlay";
364
- const Z = {
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
- }, q = {}, J = p.forwardRef(
375
- ({ definition: s, className: a, style: e, label: o, helperText: t, required: l, status: r = "default", ...d }, i) => {
376
- const { style: c, dataAttrs: g } = u(s, Z, q);
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__ */ n(
332
+ const _ = /* @__PURE__ */ i(
379
333
  "input",
380
334
  {
381
- ref: i,
382
- className: a ? `gloss-base-input ${a}` : "gloss-base-input",
383
- style: { ...c, ...e },
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__ */ n("span", { className: "gloss-base-input__required", children: "*" })
346
+ l && /* @__PURE__ */ i("span", { className: "gloss-base-input__required", children: "*" })
393
347
  ] }),
394
348
  _,
395
- t && /* @__PURE__ */ n("div", { className: "gloss-base-input__helper", children: t })
349
+ t && /* @__PURE__ */ i("div", { className: "gloss-base-input__helper", children: t })
396
350
  ] });
397
351
  }
398
352
  );
399
- J.displayName = "BaseInput";
400
- const Q = {
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
- }, ee = {
366
+ }, J = {
413
367
  resize: "data-resize"
414
- }, ae = p.forwardRef(
415
- ({ definition: s, className: a, style: e, label: o, helperText: t, required: l, status: r = "default", ...d }, i) => {
416
- const { style: c, dataAttrs: g } = u(s, Q, ee);
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__ */ n(
372
+ const _ = /* @__PURE__ */ i(
419
373
  "textarea",
420
374
  {
421
- ref: i,
422
- className: a ? `gloss-base-textarea ${a}` : "gloss-base-textarea",
423
- style: { ...c, ...e },
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__ */ n("span", { className: "gloss-base-textarea__required", children: "*" })
386
+ l && /* @__PURE__ */ i("span", { className: "gloss-base-textarea__required", children: "*" })
433
387
  ] }),
434
388
  _,
435
- t && /* @__PURE__ */ n("div", { className: "gloss-base-textarea__helper", children: t })
389
+ t && /* @__PURE__ */ i("div", { className: "gloss-base-textarea__helper", children: t })
436
390
  ] });
437
391
  }
438
392
  );
439
- ae.displayName = "BaseTextarea";
440
- const se = {
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
- }, oe = p.forwardRef(
447
- ({ definition: s, className: a, style: e, indeterminate: o, children: t, checked: l, disabled: r, ...d }, i) => {
448
- const { style: c, dataAttrs: g } = u(s, se);
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 _ = p.useCallback(
404
+ const _ = u.useCallback(
451
405
  (f) => {
452
- f && (f.indeterminate = !!o), typeof i == "function" ? i(f) : i && (i.current = f);
406
+ f && (f.indeterminate = !!o), typeof n == "function" ? n(f) : n && (n.current = f);
453
407
  },
454
- [o, i]
408
+ [o, n]
455
409
  );
456
410
  return /* @__PURE__ */ b(
457
411
  "label",
458
412
  {
459
- className: a ? `gloss-base-checkbox ${a}` : "gloss-base-checkbox",
460
- style: { ...c, ...e },
413
+ className: e ? `gloss-base-checkbox ${e}` : "gloss-base-checkbox",
414
+ style: { ...c, ...a },
461
415
  ...g,
462
416
  children: [
463
- /* @__PURE__ */ n(
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__ */ n("span", { className: "gloss-base-checkbox__track" }),
428
+ /* @__PURE__ */ i("span", { className: "gloss-base-checkbox__track" }),
475
429
  t
476
430
  ]
477
431
  }
478
432
  );
479
433
  }
480
434
  );
481
- oe.displayName = "BaseCheckbox";
482
- const te = {
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
- }, re = p.forwardRef(
488
- ({ definition: s, className: a, style: e, children: o, checked: t, disabled: l, ...r }, d) => {
489
- const { style: i, dataAttrs: c } = u(s, te);
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: a ? `gloss-base-radio ${a}` : "gloss-base-radio",
494
- style: { ...i, ...e },
447
+ className: e ? `gloss-base-radio ${e}` : "gloss-base-radio",
448
+ style: { ...n, ...a },
495
449
  ...c,
496
450
  children: [
497
- /* @__PURE__ */ n(
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__ */ n("span", { className: "gloss-base-radio__track" }),
462
+ /* @__PURE__ */ i("span", { className: "gloss-base-radio__track" }),
509
463
  o
510
464
  ]
511
465
  }
512
466
  );
513
467
  }
514
468
  );
515
- re.displayName = "BaseRadio";
516
- const le = {
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
- }, ie = p.forwardRef(
524
- ({ definition: s, className: a, style: e, children: o, checked: t, disabled: l, ...r }, d) => {
525
- const { style: i, dataAttrs: c } = u(s, le);
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: a ? `gloss-base-toggle ${a}` : "gloss-base-toggle",
530
- style: { ...i, ...e },
483
+ className: e ? `gloss-base-toggle ${e}` : "gloss-base-toggle",
484
+ style: { ...n, ...a },
531
485
  ...c,
532
486
  children: [
533
- /* @__PURE__ */ n(
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__ */ n("span", { className: "gloss-base-toggle__track", children: /* @__PURE__ */ n("span", { className: "gloss-base-toggle__thumb" }) }),
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
- ie.displayName = "BaseToggle";
553
- const de = {
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 ne(s) {
562
- const { definition: a, className: e, style: o, children: t, ...l } = s, { style: r, dataAttrs: d } = u(a, de);
563
- return /* @__PURE__ */ n(
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: e ? `gloss-base-select ${e}` : "gloss-base-select",
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
- ne.displayName = "BaseSelect";
575
- const ce = p.forwardRef(
576
- ({ className: s, children: a, ...e }, o) => /* @__PURE__ */ n(
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
- ...e,
583
- children: a
536
+ ...a,
537
+ children: e
584
538
  }
585
539
  )
586
540
  );
587
- ce.displayName = "BaseSelectTrigger";
588
- const ge = {
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 _e(s) {
596
- const { definition: a, className: e, style: o, children: t, ...l } = s, { style: r } = u(a, ge);
597
- return /* @__PURE__ */ n(
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: e ? `gloss-base-select__dropdown ${e}` : "gloss-base-select__dropdown",
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
- _e.displayName = "BaseSelectDropdown";
609
- const pe = p.forwardRef(
610
- ({ className: s, children: a, selected: e, disabled: o, ...t }, l) => {
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 e && (r["data-selected"] = ""), o && (r["data-disabled"] = ""), /* @__PURE__ */ n(
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": e,
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: a
576
+ children: e
623
577
  }
624
578
  );
625
579
  }
626
580
  );
627
- pe.displayName = "BaseSelectOption";
628
- function ue({ label: s, className: a, children: e, ...o }) {
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: a ? `gloss-base-select__group ${a}` : "gloss-base-select__group",
588
+ className: e ? `gloss-base-select__group ${e}` : "gloss-base-select__group",
635
589
  ...o,
636
590
  children: [
637
- s && /* @__PURE__ */ n("div", { className: "gloss-base-select__group-label", children: s }),
638
- e
591
+ s && /* @__PURE__ */ i("div", { className: "gloss-base-select__group-label", children: s }),
592
+ a
639
593
  ]
640
594
  }
641
595
  );
642
596
  }
643
- ue.displayName = "BaseSelectGroup";
644
- const be = {
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
- }, fe = {};
653
- function me({
606
+ }, pe = {};
607
+ function be({
654
608
  definition: s,
655
- className: a,
656
- style: e,
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: i } = u(s, be, fe);
663
- return o !== "horizontal" && (i["data-orientation"] = o), t && (i["data-disabled"] = ""), /* @__PURE__ */ n(
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: a ? `gloss-base-slider ${a}` : "gloss-base-slider",
667
- style: { ...d, ...e },
668
- ...i,
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
- me.displayName = "BaseSlider";
675
- const ye = {
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
- }, ve = p.forwardRef(
682
- ({ definition: s, className: a, style: e, children: o, ...t }, l) => {
683
- const { style: r, dataAttrs: d } = u(s, ye);
684
- return /* @__PURE__ */ n(
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: a ? `gloss-base-card ${a}` : "gloss-base-card",
689
- style: { ...r, ...e },
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
- ve.displayName = "BaseCard";
698
- const he = p.forwardRef(
699
- ({ definition: s, className: a, style: e, children: o, ...t }, l) => {
700
- const r = { ...e };
701
- return s?.padding && (r["--_header-padding"] = s.padding), /* @__PURE__ */ n(
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: a ? `gloss-base-card__header ${a}` : "gloss-base-card__header",
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
- he.displayName = "BaseCardHeader";
714
- const Be = p.forwardRef(
715
- ({ definition: s, className: a, style: e, children: o, ...t }, l) => {
716
- const r = { ...e };
717
- return s?.padding && (r["--_body-padding"] = s.padding), /* @__PURE__ */ n(
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: a ? `gloss-base-card__body ${a}` : "gloss-base-card__body",
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
- Be.displayName = "BaseCardBody";
730
- const Se = p.forwardRef(
731
- ({ definition: s, className: a, style: e, children: o, ...t }, l) => {
732
- const r = { ...e };
733
- return s?.padding && (r["--_footer-padding"] = s.padding), /* @__PURE__ */ n(
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: a ? `gloss-base-card__footer ${a}` : "gloss-base-card__footer",
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
- Se.displayName = "BaseCardFooter";
746
- const Ae = p.forwardRef(
747
- ({ src: s, alt: a, height: e, className: o, style: t, children: l, ...r }, d) => {
748
- const i = { ...t };
749
- return e && (i.height = e), /* @__PURE__ */ n(
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: i,
708
+ style: n,
755
709
  ...r,
756
- children: s ? /* @__PURE__ */ n("img", { src: s, alt: a || "" }) : l
710
+ children: s ? /* @__PURE__ */ i("img", { src: s, alt: e || "" }) : l
757
711
  }
758
712
  );
759
713
  }
760
714
  );
761
- Ae.displayName = "BaseCardMedia";
762
- const ke = p.forwardRef(
763
- ({ className: s, children: a, ...e }, o) => /* @__PURE__ */ n(
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
- ...e,
769
- children: a
722
+ ...a,
723
+ children: e
770
724
  }
771
725
  )
772
726
  );
773
- ke.displayName = "BaseCardTitle";
774
- const Ne = p.forwardRef(
775
- ({ className: s, children: a, ...e }, o) => /* @__PURE__ */ n(
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
- ...e,
781
- children: a
734
+ ...a,
735
+ children: e
782
736
  }
783
737
  )
784
738
  );
785
- Ne.displayName = "BaseCardSubtitle";
786
- const Ce = p.forwardRef(
787
- ({ className: s, children: a, ...e }, o) => /* @__PURE__ */ n(
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
- ...e,
793
- children: a
746
+ ...a,
747
+ children: e
794
748
  }
795
749
  )
796
750
  );
797
- Ce.displayName = "BaseCardActions";
798
- const xe = {
751
+ ke.displayName = "BaseCardActions";
752
+ const Ne = {
799
753
  borderColor: "--_border-color",
800
754
  radius: "--_radius",
801
755
  gap: "--_gap"
802
- }, $e = p.forwardRef(
803
- ({ definition: s, className: a, style: e, children: o, ...t }, l) => {
804
- const { style: r, dataAttrs: d } = u(s, xe);
805
- return /* @__PURE__ */ n(
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: a ? `gloss-base-accordion ${a}` : "gloss-base-accordion",
810
- style: { ...r, ...e },
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
- $e.displayName = "BaseAccordion";
819
- const we = p.forwardRef(
820
- ({ className: s, style: a, children: e, open: o, ...t }, l) => {
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__ */ n(
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: a,
781
+ style: e,
828
782
  ...r,
829
783
  ...t,
830
- children: e
784
+ children: a
831
785
  }
832
786
  );
833
787
  }
834
788
  );
835
- we.displayName = "BaseAccordionItem";
836
- const Re = p.forwardRef(
837
- ({ className: s, children: a, ...e }, o) => /* @__PURE__ */ n(
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
- ...e,
844
- children: a
797
+ ...a,
798
+ children: e
845
799
  }
846
800
  )
847
801
  );
848
802
  Re.displayName = "BaseAccordionTrigger";
849
- const Pe = p.forwardRef(
850
- ({ className: s, style: a, children: e, ...o }, t) => /* @__PURE__ */ n(
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: a,
809
+ style: e,
856
810
  ...o,
857
- children: e
811
+ children: a
858
812
  }
859
813
  )
860
814
  );
861
- Pe.displayName = "BaseAccordionContent";
862
- const ze = {
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
- }, Te = p.forwardRef(
870
- ({ definition: s, className: a, style: e, children: o, ...t }, l) => {
871
- const { style: r, dataAttrs: d } = u(s, ze);
872
- return /* @__PURE__ */ n(
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: a ? `gloss-base-menu ${a}` : "gloss-base-menu",
878
- style: { ...r, ...e },
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
- Te.displayName = "BaseMenu";
887
- function Me({ label: s, className: a, style: e, children: o, ...t }) {
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: a ? `gloss-base-menu__group ${a}` : "gloss-base-menu__group",
894
- style: e,
847
+ className: e ? `gloss-base-menu__group ${e}` : "gloss-base-menu__group",
848
+ style: a,
895
849
  ...t,
896
850
  children: [
897
- s && /* @__PURE__ */ n("div", { className: "gloss-base-menu__group-label", children: s }),
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
- Me.displayName = "BaseMenuGroup";
904
- const De = {
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
- }, Ie = p.forwardRef(
910
- ({ definition: s, className: a, style: e, children: o, disabled: t, active: l, as: r = "div", ...d }, i) => {
911
- const { style: c, dataAttrs: g } = u(s, De);
912
- return t && (g["data-disabled"] = ""), l && (g["data-active"] = ""), /* @__PURE__ */ n(
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: i,
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: a ? `gloss-base-menu__item ${a}` : "gloss-base-menu__item",
921
- style: { ...c, ...e },
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
- Ie.displayName = "BaseMenuItem";
930
- function Ve({ className: s }) {
931
- return /* @__PURE__ */ n(
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
- Ve.displayName = "BaseMenuDivider";
940
- const Ee = {
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
- }, Oe = {}, He = p.forwardRef(
949
- ({ definition: s, className: a, style: e, children: o, placement: t = "top", ...l }, r) => {
950
- const { style: d, dataAttrs: i } = u(s, Ee, Oe);
951
- return i["data-placement"] = t, /* @__PURE__ */ b(
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: a ? `gloss-base-tooltip ${a}` : "gloss-base-tooltip",
957
- style: { ...d, ...e },
958
- ...i,
910
+ className: e ? `gloss-base-tooltip ${e}` : "gloss-base-tooltip",
911
+ style: { ...d, ...a },
912
+ ...n,
959
913
  ...l,
960
914
  children: [
961
- /* @__PURE__ */ n("div", { className: "gloss-base-tooltip__content", children: o }),
962
- /* @__PURE__ */ n("div", { className: "gloss-base-tooltip__arrow" })
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
- He.displayName = "BaseTooltip";
969
- const Fe = {
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
- }, Ge = p.forwardRef(
976
- ({ definition: s, className: a, style: e, children: o, readOnly: t, disabled: l, ...r }, d) => {
977
- const { style: i, dataAttrs: c } = u(s, Fe);
978
- return t && (c["data-readonly"] = ""), l && (c["data-disabled"] = ""), /* @__PURE__ */ n(
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: a ? `gloss-base-rating ${a}` : "gloss-base-rating",
984
- style: { ...i, ...e },
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
- Ge.displayName = "BaseRating";
993
- const Le = {
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
- }, We = p.forwardRef(
1001
- ({ definition: s, className: a, style: e, children: o, disabled: t, ...l }, r) => {
1002
- const { style: d, dataAttrs: i } = u(s, Le);
1003
- return t && (i["data-disabled"] = ""), /* @__PURE__ */ n(
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: a ? `gloss-base-segmented-control ${a}` : "gloss-base-segmented-control",
1009
- style: { ...d, ...e },
1010
- ...i,
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
- We.displayName = "BaseSegmentedControl";
1018
- const Xe = {
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 je({ definition: s, className: a, style: e, children: o, ...t }) {
1026
- const { style: l, dataAttrs: r } = u(s, Xe);
1027
- return /* @__PURE__ */ n(
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: a ? `gloss-base-datepicker ${a}` : "gloss-base-datepicker",
1031
- style: { ...l, ...e },
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
- je.displayName = "BaseDatePicker";
1039
- function Ue({ className: s, style: a, children: e, ...o }) {
1040
- return /* @__PURE__ */ n(
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: a,
998
+ style: e,
1045
999
  ...o,
1046
- children: e
1000
+ children: a
1047
1001
  }
1048
1002
  );
1049
1003
  }
1050
1004
  Ue.displayName = "BaseDatePickerHeader";
1051
- function Ye({ className: s, style: a, children: e, ...o }) {
1052
- return /* @__PURE__ */ n(
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: a,
1010
+ style: e,
1057
1011
  role: "grid",
1058
1012
  ...o,
1059
- children: e
1013
+ children: a
1060
1014
  }
1061
1015
  );
1062
1016
  }
1063
- Ye.displayName = "BaseDatePickerCalendar";
1064
- const Ke = {
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 Ze({
1024
+ function Ke({
1071
1025
  definition: s,
1072
- className: a,
1073
- style: e,
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
- ...i
1033
+ ...n
1080
1034
  }) {
1081
- const { style: c, dataAttrs: g } = u(s, Ke);
1082
- return o && (g["data-selected"] = ""), t && (g["data-today"] = ""), r && (g["data-disabled"] = ""), l && (g["data-outside-month"] = ""), /* @__PURE__ */ n(
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: a ? `gloss-base-datepicker__day ${a}` : "gloss-base-datepicker__day",
1087
- style: { ...c, ...e },
1040
+ className: e ? `gloss-base-datepicker__day ${e}` : "gloss-base-datepicker__day",
1041
+ style: { ...c, ...a },
1088
1042
  disabled: r,
1089
1043
  ...g,
1090
- ...i,
1044
+ ...n,
1091
1045
  children: d
1092
1046
  }
1093
1047
  );
1094
1048
  }
1095
- Ze.displayName = "BaseDatePickerDay";
1096
- const qe = {
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 Je({ definition: s, className: a, style: e, children: o, ...t }) {
1105
- const { style: l, dataAttrs: r } = u(s, qe);
1106
- return /* @__PURE__ */ n(
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: a ? `gloss-base-timepicker ${a}` : "gloss-base-timepicker",
1110
- style: { ...l, ...e },
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
- Je.displayName = "BaseTimePicker";
1118
- function Qe({ className: s, style: a, children: e, ...o }) {
1119
- return /* @__PURE__ */ n(
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: a,
1077
+ style: e,
1124
1078
  role: "listbox",
1125
1079
  ...o,
1126
- children: e
1080
+ children: a
1127
1081
  }
1128
1082
  );
1129
1083
  }
1130
- Qe.displayName = "BaseTimePickerColumn";
1131
- function ea({ className: s, style: a, selected: e, disabled: o, children: t, ...l }) {
1132
- return /* @__PURE__ */ n(
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: a,
1091
+ style: e,
1138
1092
  role: "option",
1139
- "aria-selected": e,
1093
+ "aria-selected": a,
1140
1094
  disabled: o,
1141
- "data-selected": e ? "" : void 0,
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
- ea.displayName = "BaseTimePickerCell";
1149
- const aa = {
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 sa({ definition: s, className: a, style: e, children: o, ...t }) {
1157
- const { style: l, dataAttrs: r } = u(s, aa);
1158
- return /* @__PURE__ */ n(
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: a ? `gloss-base-daterangepicker ${a}` : "gloss-base-daterangepicker",
1162
- style: { ...l, ...e },
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
- sa.displayName = "BaseDateRangePicker";
1170
- function oa({
1123
+ es.displayName = "BaseDateRangePicker";
1124
+ function ss({
1171
1125
  className: s,
1172
- style: a,
1173
- selected: e,
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: i,
1133
+ disabled: n,
1180
1134
  children: c,
1181
1135
  ...g
1182
1136
  }) {
1183
1137
  const _ = {};
1184
- return e && (_["data-selected"] = ""), o && (_["data-today"] = ""), t && (_["data-outside-month"] = ""), i && (_["data-disabled"] = ""), l && (_["data-range-start"] = ""), r && (_["data-range-end"] = ""), d && (_["data-in-range"] = ""), /* @__PURE__ */ n(
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: a,
1190
- disabled: i,
1143
+ style: e,
1144
+ disabled: n,
1191
1145
  ..._,
1192
1146
  ...g,
1193
1147
  children: c
1194
1148
  }
1195
1149
  );
1196
1150
  }
1197
- oa.displayName = "BaseDateRangePickerDay";
1198
- const ta = {
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 ra({ definition: s, className: a, style: e, disabled: o, children: t, ...l }) {
1209
- const { style: r, dataAttrs: d } = u(s, ta);
1210
- return o && (d["data-disabled"] = ""), /* @__PURE__ */ n(
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: a ? `gloss-base-numberinput ${a}` : "gloss-base-numberinput",
1214
- style: { ...r, ...e },
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
- ra.displayName = "BaseNumberInput";
1222
- const la = {
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
- }, ia = p.forwardRef(
1234
- ({ definition: s, className: a, style: e, label: o, helperText: t, required: l, status: r = "default", ...d }, i) => {
1235
- const { style: c, dataAttrs: g } = u(s, la);
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__ */ n(
1191
+ const _ = /* @__PURE__ */ i(
1238
1192
  "input",
1239
1193
  {
1240
- ref: i,
1241
- className: a ? `gloss-base-maskedinput ${a}` : "gloss-base-maskedinput",
1242
- style: { ...c, ...e },
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__ */ n("span", { className: "gloss-base-maskedinput__required", children: "*" })
1205
+ l && /* @__PURE__ */ i("span", { className: "gloss-base-maskedinput__required", children: "*" })
1252
1206
  ] }),
1253
1207
  _,
1254
- t && /* @__PURE__ */ n("div", { className: "gloss-base-maskedinput__helper", children: t })
1208
+ t && /* @__PURE__ */ i("div", { className: "gloss-base-maskedinput__helper", children: t })
1255
1209
  ] });
1256
1210
  }
1257
1211
  );
1258
- ia.displayName = "BaseMaskedInput";
1259
- const da = {
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 na({ definition: s, className: a, style: e, dragging: o, disabled: t, children: l, ...r }) {
1268
- const { style: d, dataAttrs: i } = u(s, da);
1269
- return o && (i["data-dragging"] = ""), t && (i["data-disabled"] = ""), /* @__PURE__ */ n(
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: a ? `gloss-base-fileupload ${a}` : "gloss-base-fileupload",
1273
- style: { ...d, ...e },
1274
- ...i,
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
- na.displayName = "BaseFileUpload";
1281
- function ca({ className: s, style: a, children: e, ...o }) {
1282
- return /* @__PURE__ */ n(
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: a,
1240
+ style: e,
1287
1241
  ...o,
1288
- children: e
1242
+ children: a
1289
1243
  }
1290
1244
  );
1291
1245
  }
1292
- ca.displayName = "BaseFileUploadList";
1293
- function ga({ className: s, style: a, error: e, children: o, ...t }) {
1294
- return /* @__PURE__ */ n(
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: a,
1299
- "data-error": e ? "" : void 0,
1252
+ style: e,
1253
+ "data-error": a ? "" : void 0,
1300
1254
  ...t,
1301
1255
  children: o
1302
1256
  }
1303
1257
  );
1304
1258
  }
1305
- ga.displayName = "BaseFileUploadItem";
1306
- const _a = {
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 pa({ definition: s, className: a, style: e, disabled: o, children: t, ...l }) {
1313
- const { style: r, dataAttrs: d } = u(s, _a);
1314
- return o && (d["data-disabled"] = ""), /* @__PURE__ */ n(
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: a ? `gloss-base-colorpicker ${a}` : "gloss-base-colorpicker",
1318
- style: { ...r, ...e },
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
- pa.displayName = "BaseColorPicker";
1326
- function ua({ className: s, style: a, children: e, ...o }) {
1327
- return /* @__PURE__ */ n(
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: a,
1285
+ style: e,
1332
1286
  ...o,
1333
- children: e
1287
+ children: a
1334
1288
  }
1335
1289
  );
1336
1290
  }
1337
- ua.displayName = "BaseColorPickerSaturation";
1338
- function ba({ className: s, style: a, children: e, ...o }) {
1339
- return /* @__PURE__ */ n(
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: a,
1297
+ style: e,
1344
1298
  ...o,
1345
- children: e
1299
+ children: a
1346
1300
  }
1347
1301
  );
1348
1302
  }
1349
- ba.displayName = "BaseColorPickerHue";
1350
- function fa({ className: s, style: a, children: e, ...o }) {
1351
- return /* @__PURE__ */ n(
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: a,
1309
+ style: e,
1356
1310
  ...o,
1357
- children: e
1311
+ children: a
1358
1312
  }
1359
1313
  );
1360
1314
  }
1361
- fa.displayName = "BaseColorPickerAlpha";
1362
- function ma({ className: s, style: a, children: e, ...o }) {
1363
- return /* @__PURE__ */ n(
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: a,
1321
+ style: e,
1368
1322
  ...o,
1369
- children: e
1323
+ children: a
1370
1324
  }
1371
1325
  );
1372
1326
  }
1373
- ma.displayName = "BaseColorPickerSwatch";
1374
- const ya = {
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 va({
1337
+ function ms({
1384
1338
  definition: s,
1385
- className: a,
1386
- style: e,
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: i, dataAttrs: c } = u(s, ya);
1394
- return o !== "horizontal" && (c["data-orientation"] = o), t && (c["data-disabled"] = ""), l && (c["data-collision"] = ""), /* @__PURE__ */ n(
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: a ? `gloss-base-rangeslider ${a}` : "gloss-base-rangeslider",
1398
- style: { ...i, ...e },
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
- va.displayName = "BaseRangeSlider";
1406
- const ha = function(a) {
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
- }, Sa = function(a) {
1426
- const { as: e, level: o = 2, className: t, ...l } = a, r = e || Ba[o];
1427
- return /* @__PURE__ */ n(
1428
- h,
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
- Sa.displayName = "BaseTitle";
1437
- function Aa({
1378
+ vs.displayName = "BaseTitle";
1379
+ function hs({
1438
1380
  definition: s,
1439
- open: a,
1440
- onDismiss: e,
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
- }, i = s?.arrowSize ?? 8, c = { ...l };
1459
- return s?.showArrow && (c["--_arrow-size"] = `${i}px`), /* @__PURE__ */ n(
1460
- A,
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: a,
1464
- onDismiss: e,
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__ */ n("div", { className: "gloss-base-popover__arrow" })
1415
+ s?.showArrow && /* @__PURE__ */ i("div", { className: "gloss-base-popover__arrow" })
1474
1416
  ]
1475
1417
  }
1476
1418
  )
1477
1419
  }
1478
1420
  );
1479
1421
  }
1480
- Aa.displayName = "BasePopover";
1481
- const ka = {
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 Na(s) {
1489
- const { definition: a, src: e, alt: o, className: t, style: l, children: r, ...d } = s, [i, c] = C(!1), { style: g, dataAttrs: _ } = u(a, ka), f = e && !i;
1490
- return /* @__PURE__ */ n(
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__ */ n(
1439
+ children: f ? /* @__PURE__ */ i(
1498
1440
  "img",
1499
1441
  {
1500
- src: e,
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
- Na.displayName = "BaseAvatar";
1509
- const Ca = {
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 xa(s) {
1516
- const { definition: a, value: e, max: o = 100, indeterminate: t = !1, className: l, style: r, ...d } = s, { style: i, dataAttrs: c } = u(a, Ca);
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, (e || 0) / (o || 100) * 100)}%`;
1519
- return /* @__PURE__ */ n(
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 : e || 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: { ...i, ...r },
1469
+ style: { ...n, ...r },
1528
1470
  ...c,
1529
1471
  ...d,
1530
- children: /* @__PURE__ */ n(
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
- xa.displayName = "BaseProgressBar";
1541
- const $a = {
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 wa(s) {
1551
- const { as: a, definition: e, className: o, style: t, dot: l, children: r, ...d } = s, i = a || "span", { style: c, dataAttrs: g } = u(e, $a);
1552
- return l && (g["data-dot"] = ""), /* @__PURE__ */ n(
1553
- i,
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
- wa.displayName = "BaseBadge";
1564
- const Ra = {
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 Pa(s) {
1517
+ function Rs(s) {
1576
1518
  const {
1577
- as: a,
1578
- definition: e,
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: i,
1526
+ avatar: n,
1585
1527
  leftIcon: c,
1586
1528
  deleteButton: g,
1587
1529
  children: _,
1588
1530
  ...f
1589
- } = s, m = a || "span", { style: v, dataAttrs: y } = u(e, Ra);
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
- i && /* @__PURE__ */ n("span", { className: "gloss-base-chip__avatar", children: i }),
1599
- c && /* @__PURE__ */ n("span", { className: "gloss-base-chip__icon", children: c }),
1600
- /* @__PURE__ */ n("span", { className: "gloss-base-chip__label", children: _ }),
1601
- g && /* @__PURE__ */ n("span", { className: "gloss-base-chip__delete", children: g })
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
- Pa.displayName = "BaseChip";
1607
- const za = {
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
- }, Ta = {
1554
+ }, Ps = {
1613
1555
  underline: "data-underline"
1614
1556
  };
1615
- function Ma(s) {
1616
- const { as: a, definition: e, className: o, style: t, disabled: l, leftIcon: r, rightIcon: d, children: i, ...c } = s, g = a || "a", { style: _, dataAttrs: f } = u(e, za, Ta);
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__ */ n("span", { className: "gloss-base-link__icon gloss-base-link__icon--left", children: r }),
1626
- /* @__PURE__ */ n("span", { className: "gloss-base-link__text", children: i }),
1627
- d && /* @__PURE__ */ n("span", { className: "gloss-base-link__icon gloss-base-link__icon--right", children: d })
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
- Ma.displayName = "BaseLink";
1633
- const Da = { region: null, density: "default" }, k = x(Da);
1634
- function Ya() {
1635
- return $(k);
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 Ia({ region: s, density: a = "default", children: e }) {
1638
- const o = { region: s, density: a };
1639
- return p.createElement(
1640
- k.Provider,
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
- p.createElement(
1584
+ u.createElement(
1643
1585
  "div",
1644
1586
  {
1645
1587
  "data-region": s,
1646
- "data-density": a,
1588
+ "data-density": e,
1647
1589
  className: "gloss-ui-context"
1648
1590
  },
1649
- e
1591
+ a
1650
1592
  )
1651
1593
  );
1652
1594
  }
1653
- Ia.displayName = "UIContextProvider";
1595
+ Ms.displayName = "UIContextProvider";
1654
1596
  export {
1655
- Qe as $,
1656
- ke as A,
1657
- Aa as B,
1658
- Ga as C,
1659
- Ne as D,
1660
- Xa as E,
1661
- Ce as F,
1662
- $e as G,
1663
- we as H,
1664
- Re as I,
1665
- Pe as J,
1666
- Te as K,
1667
- Me as L,
1668
- Ie as M,
1669
- Ve as N,
1670
- He as O,
1671
- Ge as P,
1672
- We as Q,
1673
- ja as R,
1674
- La as S,
1675
- Wa as T,
1676
- Ia as U,
1677
- je as V,
1678
- Ue as W,
1679
- Ye as X,
1680
- Ze as Y,
1681
- Ua as Z,
1682
- Je as _,
1683
- L as a,
1684
- ea as a0,
1685
- sa as a1,
1686
- oa as a2,
1687
- ra as a3,
1688
- ia as a4,
1689
- na as a5,
1690
- ca as a6,
1691
- ga as a7,
1692
- pa as a8,
1693
- ua as a9,
1694
- ba as aa,
1695
- fa as ab,
1696
- ma as ac,
1697
- va as ad,
1698
- Sa as ae,
1699
- Na as af,
1700
- xa as ag,
1701
- wa as ah,
1702
- Pa as ai,
1703
- Ma as aj,
1704
- S as ak,
1705
- u as al,
1706
- ha as b,
1707
- k as c,
1708
- A as d,
1709
- W as e,
1710
- X as f,
1711
- h as g,
1712
- U as h,
1713
- G as i,
1714
- J as j,
1715
- ae as k,
1716
- oe as l,
1717
- re as m,
1718
- ie as n,
1719
- ne as o,
1720
- ce as p,
1721
- _e as q,
1722
- pe as r,
1723
- ue as s,
1724
- me as t,
1725
- Ya as u,
1726
- ve as v,
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
  };