@mt-gloss/ui 0.0.13 → 0.0.15

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