@mt-gloss/ui 0.1.139 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/{BaseAsyncButton-CJlY7Uik.js → BaseAsyncButton-Cq_l7clO.js} +29 -30
  2. package/COMMITS-Dm8qIHaq.js +444 -0
  3. package/Expandable-BcmIxWR8.js +13807 -0
  4. package/UIContext-DP6JGCto.js +1731 -0
  5. package/catalog.js +120 -122
  6. package/composites-panels.js +581 -1404
  7. package/index.d.ts +4 -2
  8. package/index.js +2368 -2029
  9. package/internals.js +80 -81
  10. package/lib/base/BaseAccordion/BaseAccordion.d.ts +4 -24
  11. package/lib/base/BaseCard/BaseCard.d.ts +8 -48
  12. package/lib/base/BaseCheckbox/BaseCheckbox.d.ts +1 -6
  13. package/lib/base/BaseInput/BaseInput.d.ts +1 -6
  14. package/lib/base/BaseMaskedInput/BaseMaskedInput.d.ts +1 -6
  15. package/lib/base/BaseMenu/BaseMenu.d.ts +2 -12
  16. package/lib/base/BaseRadio/BaseRadio.d.ts +1 -6
  17. package/lib/base/BaseRating/BaseRating.d.ts +1 -6
  18. package/lib/base/BaseSegmentedControl/BaseSegmentedControl.d.ts +1 -6
  19. package/lib/base/BaseSelect/BaseSelect.d.ts +2 -12
  20. package/lib/base/BaseTextarea/BaseTextarea.d.ts +1 -6
  21. package/lib/base/BaseToggle/BaseToggle.d.ts +1 -6
  22. package/lib/base/BaseTooltip/BaseTooltip.d.ts +1 -6
  23. package/lib/composites/dashboard/BellPopover/BellPopover.d.ts +0 -12
  24. package/lib/composites/forms/PasswordInput.d.ts +1 -6
  25. package/lib/composites/forms/PhoneInput.d.ts +1 -6
  26. package/lib/composites/forms/SearchInput.d.ts +1 -6
  27. package/lib/composites/forms/TagInput.d.ts +1 -6
  28. package/lib/composites/inputs/FilterChip.d.ts +1 -6
  29. package/lib/composites/overlay/SplitButton/SplitButton.d.ts +1 -6
  30. package/lib/composites/panels/PanelChrome.d.ts +1 -23
  31. package/lib/composites/panels/PanelSlot.d.ts +3 -14
  32. package/lib/composites/panels/coordinator/types.d.ts +1 -12
  33. package/lib/composites/panels/index.d.ts +4 -7
  34. package/lib/composites/panels/shells/CatalogAddShell.d.ts +8 -21
  35. package/lib/composites/panels/shells/CatalogReplaceShell.d.ts +4 -9
  36. package/lib/composites/panels/shells/PageMgmtShell.d.ts +3 -28
  37. package/lib/composites/panels/shells/SettingsShell.d.ts +3 -57
  38. package/lib/composites/panels/shells/index.d.ts +2 -4
  39. package/lib/composites/panels/shells/internals/CatalogLensPicker.d.ts +1 -14
  40. package/lib/composites/panels/shells/internals/CatalogTileGrid.d.ts +1 -18
  41. package/lib/composites/panels/shells/internals/PageMgmtFooter.d.ts +0 -11
  42. package/lib/composites/panels/shells/internals/PageMgmtRow.d.ts +1 -6
  43. package/lib/composites/panels/shells/internals/catalog-mocks.d.ts +8 -145
  44. package/lib/composites/panels/stage3d/CloneStage.d.ts +1 -11
  45. package/lib/containers/ContainerDialog/ContainerDialog.d.ts +3 -18
  46. package/lib/containers/ContainerFormSection/ContainerFormSection.d.ts +1 -6
  47. package/lib/containers/ContainerPanel/ContainerPanel.d.ts +1 -6
  48. package/lib/containers/ContainerTable/ContainerTable.d.ts +1 -6
  49. package/lib/containers/ContainerToolbar/ContainerToolbar.d.ts +1 -6
  50. package/lib/presets/PresetAccordion/PresetAccordion.d.ts +4 -24
  51. package/lib/presets/PresetBadge/PresetBadge.d.ts +1 -6
  52. package/lib/presets/PresetCard/PresetCard.d.ts +8 -48
  53. package/lib/presets/PresetCheckbox/PresetCheckbox.d.ts +1 -6
  54. package/lib/presets/PresetChip/PresetChip.d.ts +1 -6
  55. package/lib/presets/PresetColorPicker/PresetColorPicker.d.ts +1 -6
  56. package/lib/presets/PresetDatePicker/PresetDatePicker.d.ts +1 -6
  57. package/lib/presets/PresetDateRangePicker/PresetDateRangePicker.d.ts +1 -6
  58. package/lib/presets/PresetFileUpload/PresetFileUpload.d.ts +1 -6
  59. package/lib/presets/PresetInput/PresetInput.d.ts +1 -6
  60. package/lib/presets/PresetLink/PresetLink.d.ts +1 -6
  61. package/lib/presets/PresetMaskedInput/PresetMaskedInput.d.ts +1 -6
  62. package/lib/presets/PresetMenu/PresetMenu.d.ts +2 -12
  63. package/lib/presets/PresetNumberInput/PresetNumberInput.d.ts +1 -6
  64. package/lib/presets/PresetRadio/PresetRadio.d.ts +1 -6
  65. package/lib/presets/PresetRangeSlider/PresetRangeSlider.d.ts +1 -6
  66. package/lib/presets/PresetRating/PresetRating.d.ts +1 -6
  67. package/lib/presets/PresetTextarea/PresetTextarea.d.ts +1 -6
  68. package/lib/presets/PresetTimePicker/PresetTimePicker.d.ts +1 -6
  69. package/lib/presets/PresetToggle/PresetToggle.d.ts +1 -6
  70. package/lib/primitives/dashboard/ResizePill/ResizePill.d.ts +1 -7
  71. package/lib/primitives/dashboard/index.d.ts +0 -1
  72. package/lib/wrappers/Actionable/Actionable.d.ts +1 -6
  73. package/lib/wrappers/AsyncLoader/AsyncLoader.d.ts +1 -6
  74. package/lib/wrappers/ButtonGroup/ButtonGroup.d.ts +1 -6
  75. package/lib/wrappers/CheckboxGroup/CheckboxGroup.d.ts +1 -6
  76. package/lib/wrappers/Dismissible/Dismissible.d.ts +1 -6
  77. package/lib/wrappers/Expandable/Expandable.d.ts +1 -6
  78. package/lib/wrappers/InputGroup/InputGroup.d.ts +2 -12
  79. package/lib/wrappers/RadioGroup/RadioGroup.d.ts +1 -6
  80. package/lib/wrappers/Selectable/Selectable.d.ts +1 -6
  81. package/lib/wrappers/Sortable/Sortable.d.ts +1 -6
  82. package/package.json +1 -1
  83. package/ui.css +1 -1
  84. package/BaseText-Dxbk1JJa.js +0 -66
  85. package/COMMITS-DEdHYT0E.js +0 -963
  86. package/Expandable-DA4NFzCR.js +0 -13243
  87. package/MetricCard-DOPtBpek.js +0 -698
  88. package/UIContext-CGQI_KJk.js +0 -1808
  89. package/lib/composites/panels/chrome-v2/PanelBody.d.ts +0 -5
  90. package/lib/composites/panels/chrome-v2/PanelChromeV2.d.ts +0 -18
  91. package/lib/composites/panels/chrome-v2/PanelFooter.d.ts +0 -6
  92. package/lib/composites/panels/chrome-v2/PanelFooterMessage.d.ts +0 -6
  93. package/lib/composites/panels/chrome-v2/PanelHeader.d.ts +0 -10
  94. package/lib/composites/panels/chrome-v2/PanelNavigation.d.ts +0 -5
  95. package/lib/composites/panels/chrome-v2/PanelStage.d.ts +0 -5
  96. package/lib/composites/panels/chrome-v2/index.d.ts +0 -23
  97. package/lib/composites/panels/coordinator/settingsBufferSchemas.d.ts +0 -13
  98. package/lib/composites/panels/hooks/useEditingCardId.d.ts +0 -16
  99. package/lib/composites/panels/shells/MetricInfoShell.d.ts +0 -29
  100. package/lib/composites/panels/shells/NotificationCenterShell.d.ts +0 -2
  101. package/lib/composites/panels/shells/settings/GhostSlotPill.d.ts +0 -7
  102. package/lib/composites/panels/shells/settings/SlotsControls.d.ts +0 -11
  103. package/lib/composites/panels/shells/settings/TimeframeControls.d.ts +0 -6
  104. package/lib/composites/panels/shells/settings/index.d.ts +0 -14
  105. package/lib/primitives/dashboard/SettingsTabStrip/SettingsTabStrip.d.ts +0 -17
  106. package/lib/primitives/dashboard/SettingsTabStrip/index.d.ts +0 -6
  107. package/lib/primitives/dashboard/SettingsTabStrip/types.d.ts +0 -12
@@ -0,0 +1,1731 @@
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";
5
+ import { AnimatePresence as E, motion as O } from "framer-motion";
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
+ i != null && i !== !1 && (t[d] = String(i));
12
+ }
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));
17
+ }
18
+ return { style: t, dataAttrs: l };
19
+ }
20
+ const H = {
21
+ bg: "--_bg",
22
+ color: "--_color",
23
+ borderColor: "--_border-color",
24
+ padding: "--_padding",
25
+ paddingX: "--_px",
26
+ radius: "--_radius",
27
+ elevation: "--_elevation",
28
+ fontSize: "--_font-size",
29
+ fontWeight: "--_font-weight",
30
+ minHeight: "--_min-height",
31
+ gap: "--_gap"
32
+ }, F = {
33
+ display: "data-display"
34
+ };
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
+ c,
39
+ {
40
+ className: o ? `gloss-base-button ${o}` : "gloss-base-button",
41
+ style: { ...g, ...t },
42
+ disabled: r || d,
43
+ ..._,
44
+ ...i,
45
+ children: l
46
+ }
47
+ );
48
+ }
49
+ G.displayName = "BaseButton";
50
+ const Ga = {
51
+ // Brand
52
+ BrandPrimary: "var(--gloss-color-brand-primary)",
53
+ BrandPrimaryHover: "var(--gloss-color-brand-primary-hover)",
54
+ BrandPrimaryActive: "var(--gloss-color-brand-primary-active)",
55
+ // Text
56
+ TextPrimary: "var(--gloss-color-text-primary)",
57
+ TextSecondary: "var(--gloss-color-text-secondary)",
58
+ TextTertiary: "var(--gloss-color-text-tertiary)",
59
+ TextInverse: "var(--gloss-color-text-inverse)",
60
+ TextError: "var(--gloss-color-text-error)",
61
+ TextSuccess: "var(--gloss-color-text-success)",
62
+ TextLink: "var(--gloss-color-text-link)",
63
+ // Backgrounds
64
+ BgPage: "var(--gloss-color-bg-page)",
65
+ BgSurface: "var(--gloss-color-bg-surface)",
66
+ BgMuted: "var(--gloss-color-bg-muted)",
67
+ BgHover: "var(--gloss-color-bg-hover)",
68
+ BgDisabled: "var(--gloss-color-bg-disabled)",
69
+ BgError: "var(--gloss-color-bg-error)",
70
+ BgSecondary: "var(--gloss-color-bg-secondary)",
71
+ BgSidebar: "var(--gloss-color-bg-sidebar)",
72
+ // Borders
73
+ BorderDefault: "var(--gloss-color-border-default)",
74
+ BorderHover: "var(--gloss-color-border-hover)",
75
+ BorderFocus: "var(--gloss-color-border-focus)",
76
+ BorderSuccess: "var(--gloss-color-border-success)",
77
+ BorderError: "var(--gloss-color-border-error)",
78
+ // Gray scale
79
+ Gray50: "var(--gloss-color-gray-50)",
80
+ Gray100: "var(--gloss-color-gray-100)",
81
+ Gray200: "var(--gloss-color-gray-200)",
82
+ Gray300: "var(--gloss-color-gray-300)",
83
+ Gray400: "var(--gloss-color-gray-400)",
84
+ Gray500: "var(--gloss-color-gray-500)",
85
+ Gray600: "var(--gloss-color-gray-600)",
86
+ Gray700: "var(--gloss-color-gray-700)",
87
+ Gray800: "var(--gloss-color-gray-800)",
88
+ Gray900: "var(--gloss-color-gray-900)",
89
+ // Blue scale
90
+ Blue50: "var(--gloss-color-blue-50)",
91
+ Blue100: "var(--gloss-color-blue-100)",
92
+ Blue200: "var(--gloss-color-blue-200)",
93
+ Blue300: "var(--gloss-color-blue-300)",
94
+ Blue400: "var(--gloss-color-blue-400)",
95
+ Blue500: "var(--gloss-color-blue-500)",
96
+ Blue600: "var(--gloss-color-blue-600)",
97
+ Blue700: "var(--gloss-color-blue-700)",
98
+ Blue800: "var(--gloss-color-blue-800)",
99
+ Blue900: "var(--gloss-color-blue-900)",
100
+ // Green scale
101
+ Green50: "var(--gloss-color-green-50)",
102
+ Green100: "var(--gloss-color-green-100)",
103
+ Green500: "var(--gloss-color-green-500)",
104
+ Green600: "var(--gloss-color-green-600)",
105
+ Green700: "var(--gloss-color-green-700)",
106
+ // Red scale
107
+ Red50: "var(--gloss-color-red-50)",
108
+ Red100: "var(--gloss-color-red-100)",
109
+ Red200: "var(--gloss-color-red-200)",
110
+ Red400: "var(--gloss-color-red-400)",
111
+ Red500: "var(--gloss-color-red-500)",
112
+ Red600: "var(--gloss-color-red-600)",
113
+ Red700: "var(--gloss-color-red-700)",
114
+ // Amber scale
115
+ Amber100: "var(--gloss-color-amber-100)",
116
+ Amber200: "var(--gloss-color-amber-200)",
117
+ Amber500: "var(--gloss-color-amber-500)",
118
+ Amber600: "var(--gloss-color-amber-600)",
119
+ // Base
120
+ White: "var(--gloss-color-white)"
121
+ }, La = {
122
+ None: "0",
123
+ Xs: "var(--gloss-spacing-1)",
124
+ Sm: "var(--gloss-spacing-2)",
125
+ Md: "var(--gloss-spacing-3)",
126
+ Lg: "var(--gloss-spacing-4)",
127
+ Xl: "var(--gloss-spacing-5)",
128
+ "2xl": "var(--gloss-spacing-6)",
129
+ "3xl": "var(--gloss-spacing-8)",
130
+ "4xl": "var(--gloss-spacing-10)",
131
+ "5xl": "var(--gloss-spacing-12)",
132
+ "6xl": "var(--gloss-spacing-16)"
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 = {
157
+ Card: "var(--gloss-elevation-card)",
158
+ ButtonDefault: "var(--gloss-elevation-button-default)",
159
+ ButtonHover: "var(--gloss-elevation-button-hover)",
160
+ ButtonActive: "var(--gloss-elevation-button-active)",
161
+ Hover: "var(--gloss-elevation-hover)",
162
+ InputDefault: "var(--gloss-elevation-input-default)",
163
+ InputFocus: "var(--gloss-elevation-input-focus)",
164
+ Sidebar: "var(--gloss-elevation-sidebar)",
165
+ None: "none"
166
+ }, ja = {
167
+ None: "0",
168
+ Xs: "var(--gloss-radius-xs)",
169
+ Sm: "var(--gloss-radius-sm)",
170
+ Md: "var(--gloss-radius-md)",
171
+ Lg: "var(--gloss-radius-lg)",
172
+ Xl: "var(--gloss-radius-xl)",
173
+ Full: "var(--gloss-radius-full)"
174
+ }, Ua = {
175
+ Dropdown: "var(--gloss-z-dropdown)",
176
+ Sticky: "var(--gloss-z-sticky)",
177
+ Overlay: "var(--gloss-z-overlay)",
178
+ Modal: "var(--gloss-z-modal)",
179
+ Popover: "var(--gloss-z-popover)",
180
+ Toast: "var(--gloss-z-toast)"
181
+ };
182
+ 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);
185
+ 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(
203
+ d,
204
+ {
205
+ className: o ? `gloss-base-stack ${o}` : "gloss-base-stack",
206
+ style: i,
207
+ ...c,
208
+ ...r,
209
+ children: l
210
+ }
211
+ );
212
+ }
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 = {
246
+ sm: 16,
247
+ md: 20,
248
+ lg: 24,
249
+ xl: 32
250
+ }, S = ({
251
+ name: s,
252
+ size: a = "md",
253
+ className: e = "",
254
+ ...o
255
+ }) => {
256
+ const t = j[a];
257
+ return /* @__PURE__ */ n(
258
+ "svg",
259
+ {
260
+ width: t,
261
+ height: t,
262
+ className: e,
263
+ "aria-hidden": "true",
264
+ focusable: "false",
265
+ ...o,
266
+ children: /* @__PURE__ */ n("use", { href: `#${s}` })
267
+ }
268
+ );
269
+ };
270
+ S.displayName = "Icon";
271
+ function U(s) {
272
+ const { definition: a, name: e, icon: o, className: t, style: l } = s;
273
+ if (!e && !o) return null;
274
+ const r = { ...l };
275
+ a?.color && (r["--_color"] = a.color);
276
+ const d = {};
277
+ return a?.size && (d["data-size"] = a.size), /* @__PURE__ */ n(
278
+ "span",
279
+ {
280
+ className: t ? `gloss-base-icon ${t}` : "gloss-base-icon",
281
+ style: r,
282
+ ...d,
283
+ children: e ? /* @__PURE__ */ n(S, { name: e, size: a?.size ?? "md" }) : o
284
+ }
285
+ );
286
+ }
287
+ U.displayName = "BaseIcon";
288
+ function Y(s) {
289
+ const {
290
+ open: a,
291
+ placement: e = "bottom",
292
+ offsetValue: o = 8,
293
+ onOpenChange: t
294
+ } = s;
295
+ return R({
296
+ open: a,
297
+ onOpenChange: t,
298
+ placement: e,
299
+ middleware: [z(o), T(), M()],
300
+ whileElementsMounted: P,
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
308
+ });
309
+ }
310
+ function K(s) {
311
+ const {
312
+ context: a,
313
+ outsidePress: e = !0,
314
+ escapeKey: o = !0,
315
+ role: t = "dialog"
316
+ } = s, l = D(a, { outsidePress: e, escapeKey: o }), r = I(a, { role: t }), { getFloatingProps: d, getReferenceProps: i } = V([
317
+ l,
318
+ r
319
+ ]);
320
+ return { getFloatingProps: d, getReferenceProps: i };
321
+ }
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({
332
+ open: e,
333
+ placement: a?.placement,
334
+ offsetValue: a?.offset,
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,
342
+ outsidePress: a?.dismissOnClickOutside ?? !0,
343
+ escapeKey: a?.dismissOnEscape ?? !0,
344
+ role: a?.role ?? "dialog"
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(E, { children: e && /* @__PURE__ */ n(
348
+ O.div,
349
+ {
350
+ ref: _.refs.setFloating,
351
+ className: l ? `gloss-base-overlay ${l}` : "gloss-base-overlay",
352
+ style: y ? { ..._.floatingStyles, ...m } : m,
353
+ initial: { opacity: 0, scale: 0.95 },
354
+ animate: { opacity: 1, scale: 1 },
355
+ exit: { opacity: 0, scale: 0.95 },
356
+ transition: { duration: 0.15 },
357
+ ...f(),
358
+ children: d
359
+ }
360
+ ) });
361
+ return v && typeof document < "u" ? w(B, document.body) : B;
362
+ }
363
+ A.displayName = "BaseOverlay";
364
+ const Z = {
365
+ bg: "--_bg",
366
+ color: "--_color",
367
+ borderColor: "--_border-color",
368
+ padding: "--_padding",
369
+ paddingX: "--_px",
370
+ radius: "--_radius",
371
+ fontSize: "--_font-size",
372
+ minHeight: "--_min-height",
373
+ 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);
377
+ r !== "default" && (g["data-status"] = r), d.disabled && (g["data-disabled"] = ""), d.readOnly && (g["data-readonly"] = "");
378
+ const _ = /* @__PURE__ */ n(
379
+ "input",
380
+ {
381
+ ref: i,
382
+ className: a ? `gloss-base-input ${a}` : "gloss-base-input",
383
+ style: { ...c, ...e },
384
+ required: l,
385
+ ...g,
386
+ ...d
387
+ }
388
+ );
389
+ return !o && !t ? _ : /* @__PURE__ */ b("div", { className: "gloss-base-input__wrapper", children: [
390
+ o && /* @__PURE__ */ b("label", { className: "gloss-base-input__label", children: [
391
+ o,
392
+ l && /* @__PURE__ */ n("span", { className: "gloss-base-input__required", children: "*" })
393
+ ] }),
394
+ _,
395
+ t && /* @__PURE__ */ n("div", { className: "gloss-base-input__helper", children: t })
396
+ ] });
397
+ }
398
+ );
399
+ J.displayName = "BaseInput";
400
+ const Q = {
401
+ bg: "--_bg",
402
+ color: "--_color",
403
+ borderColor: "--_border-color",
404
+ padding: "--_padding",
405
+ paddingX: "--_px",
406
+ radius: "--_radius",
407
+ fontSize: "--_font-size",
408
+ minHeight: "--_min-height",
409
+ placeholderColor: "--_placeholder-color",
410
+ minRows: "--_min-rows",
411
+ maxRows: "--_max-rows"
412
+ }, ee = {
413
+ 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);
417
+ r !== "default" && (g["data-status"] = r), d.disabled && (g["data-disabled"] = ""), d.readOnly && (g["data-readonly"] = "");
418
+ const _ = /* @__PURE__ */ n(
419
+ "textarea",
420
+ {
421
+ ref: i,
422
+ className: a ? `gloss-base-textarea ${a}` : "gloss-base-textarea",
423
+ style: { ...c, ...e },
424
+ required: l,
425
+ ...g,
426
+ ...d
427
+ }
428
+ );
429
+ return !o && !t ? _ : /* @__PURE__ */ b("div", { className: "gloss-base-textarea__wrapper", children: [
430
+ o && /* @__PURE__ */ b("label", { className: "gloss-base-textarea__label", children: [
431
+ o,
432
+ l && /* @__PURE__ */ n("span", { className: "gloss-base-textarea__required", children: "*" })
433
+ ] }),
434
+ _,
435
+ t && /* @__PURE__ */ n("div", { className: "gloss-base-textarea__helper", children: t })
436
+ ] });
437
+ }
438
+ );
439
+ ae.displayName = "BaseTextarea";
440
+ const se = {
441
+ trackBg: "--_track-bg",
442
+ trackBorder: "--_track-border",
443
+ checkColor: "--_check-color",
444
+ trackSize: "--_track-size",
445
+ 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);
449
+ r && (g["data-disabled"] = ""), l && (g["data-checked"] = ""), o && (g["data-indeterminate"] = "");
450
+ const _ = p.useCallback(
451
+ (f) => {
452
+ f && (f.indeterminate = !!o), typeof i == "function" ? i(f) : i && (i.current = f);
453
+ },
454
+ [o, i]
455
+ );
456
+ return /* @__PURE__ */ b(
457
+ "label",
458
+ {
459
+ className: a ? `gloss-base-checkbox ${a}` : "gloss-base-checkbox",
460
+ style: { ...c, ...e },
461
+ ...g,
462
+ children: [
463
+ /* @__PURE__ */ n(
464
+ "input",
465
+ {
466
+ ref: _,
467
+ type: "checkbox",
468
+ className: "gloss-base-checkbox__input",
469
+ checked: l,
470
+ disabled: r,
471
+ ...d
472
+ }
473
+ ),
474
+ /* @__PURE__ */ n("span", { className: "gloss-base-checkbox__track" }),
475
+ t
476
+ ]
477
+ }
478
+ );
479
+ }
480
+ );
481
+ oe.displayName = "BaseCheckbox";
482
+ const te = {
483
+ trackBg: "--_track-bg",
484
+ trackBorder: "--_track-border",
485
+ dotColor: "--_dot-color",
486
+ 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);
490
+ return l && (c["data-disabled"] = ""), t && (c["data-checked"] = ""), /* @__PURE__ */ b(
491
+ "label",
492
+ {
493
+ className: a ? `gloss-base-radio ${a}` : "gloss-base-radio",
494
+ style: { ...i, ...e },
495
+ ...c,
496
+ children: [
497
+ /* @__PURE__ */ n(
498
+ "input",
499
+ {
500
+ ref: d,
501
+ type: "radio",
502
+ className: "gloss-base-radio__input",
503
+ checked: t,
504
+ disabled: l,
505
+ ...r
506
+ }
507
+ ),
508
+ /* @__PURE__ */ n("span", { className: "gloss-base-radio__track" }),
509
+ o
510
+ ]
511
+ }
512
+ );
513
+ }
514
+ );
515
+ re.displayName = "BaseRadio";
516
+ const le = {
517
+ trackBg: "--_track-bg",
518
+ trackBgActive: "--_track-bg-active",
519
+ thumbBg: "--_thumb-bg",
520
+ trackWidth: "--_track-width",
521
+ trackHeight: "--_track-height",
522
+ 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);
526
+ return l && (c["data-disabled"] = ""), t && (c["data-checked"] = ""), /* @__PURE__ */ b(
527
+ "label",
528
+ {
529
+ className: a ? `gloss-base-toggle ${a}` : "gloss-base-toggle",
530
+ style: { ...i, ...e },
531
+ ...c,
532
+ children: [
533
+ /* @__PURE__ */ n(
534
+ "input",
535
+ {
536
+ ref: d,
537
+ type: "checkbox",
538
+ role: "switch",
539
+ className: "gloss-base-toggle__input",
540
+ checked: t,
541
+ disabled: l,
542
+ ...r
543
+ }
544
+ ),
545
+ /* @__PURE__ */ n("span", { className: "gloss-base-toggle__track", children: /* @__PURE__ */ n("span", { className: "gloss-base-toggle__thumb" }) }),
546
+ o
547
+ ]
548
+ }
549
+ );
550
+ }
551
+ );
552
+ ie.displayName = "BaseToggle";
553
+ const de = {
554
+ bg: "--_bg",
555
+ borderColor: "--_border-color",
556
+ radius: "--_radius",
557
+ fontSize: "--_font-size",
558
+ minHeight: "--_min-height",
559
+ padding: "--_padding"
560
+ };
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(
564
+ "div",
565
+ {
566
+ className: e ? `gloss-base-select ${e}` : "gloss-base-select",
567
+ style: { ...r, ...o },
568
+ ...d,
569
+ ...l,
570
+ children: t
571
+ }
572
+ );
573
+ }
574
+ ne.displayName = "BaseSelect";
575
+ const ce = p.forwardRef(
576
+ ({ className: s, children: a, ...e }, o) => /* @__PURE__ */ n(
577
+ "button",
578
+ {
579
+ ref: o,
580
+ type: "button",
581
+ className: s ? `gloss-base-select__trigger ${s}` : "gloss-base-select__trigger",
582
+ ...e,
583
+ children: a
584
+ }
585
+ )
586
+ );
587
+ ce.displayName = "BaseSelectTrigger";
588
+ const ge = {
589
+ bg: "--_dropdown-bg",
590
+ borderColor: "--_dropdown-border-color",
591
+ radius: "--_dropdown-radius",
592
+ elevation: "--_dropdown-elevation",
593
+ maxHeight: "--_dropdown-max-height"
594
+ };
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(
598
+ "div",
599
+ {
600
+ className: e ? `gloss-base-select__dropdown ${e}` : "gloss-base-select__dropdown",
601
+ style: { ...r, ...o },
602
+ role: "listbox",
603
+ ...l,
604
+ children: t
605
+ }
606
+ );
607
+ }
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(
613
+ "div",
614
+ {
615
+ ref: l,
616
+ role: "option",
617
+ "aria-selected": e,
618
+ "aria-disabled": o,
619
+ className: s ? `gloss-base-select__option ${s}` : "gloss-base-select__option",
620
+ ...r,
621
+ ...t,
622
+ children: a
623
+ }
624
+ );
625
+ }
626
+ );
627
+ pe.displayName = "BaseSelectOption";
628
+ function ue({ label: s, className: a, children: e, ...o }) {
629
+ return /* @__PURE__ */ b(
630
+ "div",
631
+ {
632
+ role: "group",
633
+ "aria-label": s,
634
+ className: a ? `gloss-base-select__group ${a}` : "gloss-base-select__group",
635
+ ...o,
636
+ children: [
637
+ s && /* @__PURE__ */ n("div", { className: "gloss-base-select__group-label", children: s }),
638
+ e
639
+ ]
640
+ }
641
+ );
642
+ }
643
+ ue.displayName = "BaseSelectGroup";
644
+ const be = {
645
+ trackBg: "--_track-bg",
646
+ trackActiveBg: "--_track-active-bg",
647
+ thumbBg: "--_thumb-bg",
648
+ thumbBorder: "--_thumb-border",
649
+ thumbSize: "--_thumb-size",
650
+ trackHeight: "--_track-height",
651
+ thumbShadow: "--_thumb-shadow"
652
+ }, fe = {};
653
+ function me({
654
+ definition: s,
655
+ className: a,
656
+ style: e,
657
+ orientation: o = "horizontal",
658
+ disabled: t,
659
+ children: l,
660
+ ...r
661
+ }) {
662
+ const { style: d, dataAttrs: i } = u(s, be, fe);
663
+ return o !== "horizontal" && (i["data-orientation"] = o), t && (i["data-disabled"] = ""), /* @__PURE__ */ n(
664
+ "div",
665
+ {
666
+ className: a ? `gloss-base-slider ${a}` : "gloss-base-slider",
667
+ style: { ...d, ...e },
668
+ ...i,
669
+ ...r,
670
+ children: l
671
+ }
672
+ );
673
+ }
674
+ me.displayName = "BaseSlider";
675
+ const ye = {
676
+ bg: "--_bg",
677
+ border: "--_border",
678
+ radius: "--_radius",
679
+ elevation: "--_elevation",
680
+ 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(
685
+ "div",
686
+ {
687
+ ref: l,
688
+ className: a ? `gloss-base-card ${a}` : "gloss-base-card",
689
+ style: { ...r, ...e },
690
+ ...d,
691
+ ...t,
692
+ children: o
693
+ }
694
+ );
695
+ }
696
+ );
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(
702
+ "div",
703
+ {
704
+ ref: l,
705
+ className: a ? `gloss-base-card__header ${a}` : "gloss-base-card__header",
706
+ style: r,
707
+ ...t,
708
+ children: o
709
+ }
710
+ );
711
+ }
712
+ );
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(
718
+ "div",
719
+ {
720
+ ref: l,
721
+ className: a ? `gloss-base-card__body ${a}` : "gloss-base-card__body",
722
+ style: r,
723
+ ...t,
724
+ children: o
725
+ }
726
+ );
727
+ }
728
+ );
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(
734
+ "div",
735
+ {
736
+ ref: l,
737
+ className: a ? `gloss-base-card__footer ${a}` : "gloss-base-card__footer",
738
+ style: r,
739
+ ...t,
740
+ children: o
741
+ }
742
+ );
743
+ }
744
+ );
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(
750
+ "div",
751
+ {
752
+ ref: d,
753
+ className: o ? `gloss-base-card__media ${o}` : "gloss-base-card__media",
754
+ style: i,
755
+ ...r,
756
+ children: s ? /* @__PURE__ */ n("img", { src: s, alt: a || "" }) : l
757
+ }
758
+ );
759
+ }
760
+ );
761
+ Ae.displayName = "BaseCardMedia";
762
+ const ke = p.forwardRef(
763
+ ({ className: s, children: a, ...e }, o) => /* @__PURE__ */ n(
764
+ "h3",
765
+ {
766
+ ref: o,
767
+ className: s ? `gloss-base-card__title ${s}` : "gloss-base-card__title",
768
+ ...e,
769
+ children: a
770
+ }
771
+ )
772
+ );
773
+ ke.displayName = "BaseCardTitle";
774
+ const Ne = p.forwardRef(
775
+ ({ className: s, children: a, ...e }, o) => /* @__PURE__ */ n(
776
+ "p",
777
+ {
778
+ ref: o,
779
+ className: s ? `gloss-base-card__subtitle ${s}` : "gloss-base-card__subtitle",
780
+ ...e,
781
+ children: a
782
+ }
783
+ )
784
+ );
785
+ Ne.displayName = "BaseCardSubtitle";
786
+ const Ce = p.forwardRef(
787
+ ({ className: s, children: a, ...e }, o) => /* @__PURE__ */ n(
788
+ "div",
789
+ {
790
+ ref: o,
791
+ className: s ? `gloss-base-card__actions ${s}` : "gloss-base-card__actions",
792
+ ...e,
793
+ children: a
794
+ }
795
+ )
796
+ );
797
+ Ce.displayName = "BaseCardActions";
798
+ const xe = {
799
+ borderColor: "--_border-color",
800
+ radius: "--_radius",
801
+ 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(
806
+ "div",
807
+ {
808
+ ref: l,
809
+ className: a ? `gloss-base-accordion ${a}` : "gloss-base-accordion",
810
+ style: { ...r, ...e },
811
+ ...d,
812
+ ...t,
813
+ children: o
814
+ }
815
+ );
816
+ }
817
+ );
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(
823
+ "div",
824
+ {
825
+ ref: l,
826
+ className: s ? `gloss-base-accordion__item ${s}` : "gloss-base-accordion__item",
827
+ style: a,
828
+ ...r,
829
+ ...t,
830
+ children: e
831
+ }
832
+ );
833
+ }
834
+ );
835
+ we.displayName = "BaseAccordionItem";
836
+ const Re = p.forwardRef(
837
+ ({ className: s, children: a, ...e }, o) => /* @__PURE__ */ n(
838
+ "button",
839
+ {
840
+ ref: o,
841
+ type: "button",
842
+ className: s ? `gloss-base-accordion__trigger ${s}` : "gloss-base-accordion__trigger",
843
+ ...e,
844
+ children: a
845
+ }
846
+ )
847
+ );
848
+ Re.displayName = "BaseAccordionTrigger";
849
+ const Pe = p.forwardRef(
850
+ ({ className: s, style: a, children: e, ...o }, t) => /* @__PURE__ */ n(
851
+ "div",
852
+ {
853
+ ref: t,
854
+ className: s ? `gloss-base-accordion__content ${s}` : "gloss-base-accordion__content",
855
+ style: a,
856
+ ...o,
857
+ children: e
858
+ }
859
+ )
860
+ );
861
+ Pe.displayName = "BaseAccordionContent";
862
+ const ze = {
863
+ bg: "--_bg",
864
+ borderColor: "--_border-color",
865
+ radius: "--_radius",
866
+ elevation: "--_elevation",
867
+ padding: "--_padding",
868
+ 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(
873
+ "div",
874
+ {
875
+ ref: l,
876
+ role: "menu",
877
+ className: a ? `gloss-base-menu ${a}` : "gloss-base-menu",
878
+ style: { ...r, ...e },
879
+ ...d,
880
+ ...t,
881
+ children: o
882
+ }
883
+ );
884
+ }
885
+ );
886
+ Te.displayName = "BaseMenu";
887
+ function Me({ label: s, className: a, style: e, children: o, ...t }) {
888
+ return /* @__PURE__ */ b(
889
+ "div",
890
+ {
891
+ role: "group",
892
+ "aria-label": s,
893
+ className: a ? `gloss-base-menu__group ${a}` : "gloss-base-menu__group",
894
+ style: e,
895
+ ...t,
896
+ children: [
897
+ s && /* @__PURE__ */ n("div", { className: "gloss-base-menu__group-label", children: s }),
898
+ o
899
+ ]
900
+ }
901
+ );
902
+ }
903
+ Me.displayName = "BaseMenuGroup";
904
+ const De = {
905
+ padding: "--_item-padding",
906
+ fontSize: "--_item-font-size",
907
+ color: "--_item-color",
908
+ 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(
913
+ r,
914
+ {
915
+ ref: i,
916
+ role: "menuitem",
917
+ tabIndex: t ? -1 : 0,
918
+ "aria-disabled": t || void 0,
919
+ "aria-current": l ? "page" : void 0,
920
+ className: a ? `gloss-base-menu__item ${a}` : "gloss-base-menu__item",
921
+ style: { ...c, ...e },
922
+ ...g,
923
+ ...d,
924
+ children: o
925
+ }
926
+ );
927
+ }
928
+ );
929
+ Ie.displayName = "BaseMenuItem";
930
+ function Ve({ className: s }) {
931
+ return /* @__PURE__ */ n(
932
+ "div",
933
+ {
934
+ role: "separator",
935
+ className: s ? `gloss-base-menu__divider ${s}` : "gloss-base-menu__divider"
936
+ }
937
+ );
938
+ }
939
+ Ve.displayName = "BaseMenuDivider";
940
+ const Ee = {
941
+ bg: "--_bg",
942
+ color: "--_color",
943
+ radius: "--_radius",
944
+ padding: "--_padding",
945
+ fontSize: "--_font-size",
946
+ maxWidth: "--_max-width",
947
+ 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(
952
+ "div",
953
+ {
954
+ ref: r,
955
+ role: "tooltip",
956
+ className: a ? `gloss-base-tooltip ${a}` : "gloss-base-tooltip",
957
+ style: { ...d, ...e },
958
+ ...i,
959
+ ...l,
960
+ children: [
961
+ /* @__PURE__ */ n("div", { className: "gloss-base-tooltip__content", children: o }),
962
+ /* @__PURE__ */ n("div", { className: "gloss-base-tooltip__arrow" })
963
+ ]
964
+ }
965
+ );
966
+ }
967
+ );
968
+ He.displayName = "BaseTooltip";
969
+ const Fe = {
970
+ activeColor: "--_active-color",
971
+ inactiveColor: "--_inactive-color",
972
+ hoverColor: "--_hover-color",
973
+ starSize: "--_star-size",
974
+ 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(
979
+ "div",
980
+ {
981
+ ref: d,
982
+ role: "radiogroup",
983
+ className: a ? `gloss-base-rating ${a}` : "gloss-base-rating",
984
+ style: { ...i, ...e },
985
+ ...c,
986
+ ...r,
987
+ children: o
988
+ }
989
+ );
990
+ }
991
+ );
992
+ Ge.displayName = "BaseRating";
993
+ const Le = {
994
+ bg: "--_bg",
995
+ activeBg: "--_active-bg",
996
+ borderColor: "--_border-color",
997
+ radius: "--_radius",
998
+ padding: "--_padding",
999
+ 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(
1004
+ "div",
1005
+ {
1006
+ ref: r,
1007
+ role: "radiogroup",
1008
+ className: a ? `gloss-base-segmented-control ${a}` : "gloss-base-segmented-control",
1009
+ style: { ...d, ...e },
1010
+ ...i,
1011
+ ...l,
1012
+ children: o
1013
+ }
1014
+ );
1015
+ }
1016
+ );
1017
+ We.displayName = "BaseSegmentedControl";
1018
+ const Xe = {
1019
+ bg: "--_bg",
1020
+ borderColor: "--_border-color",
1021
+ radius: "--_radius",
1022
+ elevation: "--_elevation",
1023
+ padding: "--_padding"
1024
+ };
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(
1028
+ "div",
1029
+ {
1030
+ className: a ? `gloss-base-datepicker ${a}` : "gloss-base-datepicker",
1031
+ style: { ...l, ...e },
1032
+ ...r,
1033
+ ...t,
1034
+ children: o
1035
+ }
1036
+ );
1037
+ }
1038
+ je.displayName = "BaseDatePicker";
1039
+ function Ue({ className: s, style: a, children: e, ...o }) {
1040
+ return /* @__PURE__ */ n(
1041
+ "div",
1042
+ {
1043
+ className: s ? `gloss-base-datepicker__header ${s}` : "gloss-base-datepicker__header",
1044
+ style: a,
1045
+ ...o,
1046
+ children: e
1047
+ }
1048
+ );
1049
+ }
1050
+ Ue.displayName = "BaseDatePickerHeader";
1051
+ function Ye({ className: s, style: a, children: e, ...o }) {
1052
+ return /* @__PURE__ */ n(
1053
+ "div",
1054
+ {
1055
+ className: s ? `gloss-base-datepicker__calendar ${s}` : "gloss-base-datepicker__calendar",
1056
+ style: a,
1057
+ role: "grid",
1058
+ ...o,
1059
+ children: e
1060
+ }
1061
+ );
1062
+ }
1063
+ Ye.displayName = "BaseDatePickerCalendar";
1064
+ const Ke = {
1065
+ bg: "--_day-bg",
1066
+ color: "--_day-color",
1067
+ radius: "--_day-radius",
1068
+ size: "--_day-size"
1069
+ };
1070
+ function Ze({
1071
+ definition: s,
1072
+ className: a,
1073
+ style: e,
1074
+ selected: o,
1075
+ today: t,
1076
+ outsideMonth: l,
1077
+ disabled: r,
1078
+ children: d,
1079
+ ...i
1080
+ }) {
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(
1083
+ "button",
1084
+ {
1085
+ type: "button",
1086
+ className: a ? `gloss-base-datepicker__day ${a}` : "gloss-base-datepicker__day",
1087
+ style: { ...c, ...e },
1088
+ disabled: r,
1089
+ ...g,
1090
+ ...i,
1091
+ children: d
1092
+ }
1093
+ );
1094
+ }
1095
+ Ze.displayName = "BaseDatePickerDay";
1096
+ const qe = {
1097
+ bg: "--_bg",
1098
+ borderColor: "--_border-color",
1099
+ radius: "--_radius",
1100
+ elevation: "--_elevation",
1101
+ padding: "--_padding",
1102
+ cellHeight: "--_cell-height"
1103
+ };
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(
1107
+ "div",
1108
+ {
1109
+ className: a ? `gloss-base-timepicker ${a}` : "gloss-base-timepicker",
1110
+ style: { ...l, ...e },
1111
+ ...r,
1112
+ ...t,
1113
+ children: o
1114
+ }
1115
+ );
1116
+ }
1117
+ Je.displayName = "BaseTimePicker";
1118
+ function Qe({ className: s, style: a, children: e, ...o }) {
1119
+ return /* @__PURE__ */ n(
1120
+ "div",
1121
+ {
1122
+ className: s ? `gloss-base-timepicker__column ${s}` : "gloss-base-timepicker__column",
1123
+ style: a,
1124
+ role: "listbox",
1125
+ ...o,
1126
+ children: e
1127
+ }
1128
+ );
1129
+ }
1130
+ Qe.displayName = "BaseTimePickerColumn";
1131
+ function ea({ className: s, style: a, selected: e, disabled: o, children: t, ...l }) {
1132
+ return /* @__PURE__ */ n(
1133
+ "button",
1134
+ {
1135
+ type: "button",
1136
+ className: s ? `gloss-base-timepicker__cell ${s}` : "gloss-base-timepicker__cell",
1137
+ style: a,
1138
+ role: "option",
1139
+ "aria-selected": e,
1140
+ disabled: o,
1141
+ "data-selected": e ? "" : void 0,
1142
+ "data-disabled": o ? "" : void 0,
1143
+ ...l,
1144
+ children: t
1145
+ }
1146
+ );
1147
+ }
1148
+ ea.displayName = "BaseTimePickerCell";
1149
+ const aa = {
1150
+ bg: "--_bg",
1151
+ borderColor: "--_border-color",
1152
+ radius: "--_radius",
1153
+ elevation: "--_elevation",
1154
+ gap: "--_gap"
1155
+ };
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(
1159
+ "div",
1160
+ {
1161
+ className: a ? `gloss-base-daterangepicker ${a}` : "gloss-base-daterangepicker",
1162
+ style: { ...l, ...e },
1163
+ ...r,
1164
+ ...t,
1165
+ children: o
1166
+ }
1167
+ );
1168
+ }
1169
+ sa.displayName = "BaseDateRangePicker";
1170
+ function oa({
1171
+ className: s,
1172
+ style: a,
1173
+ selected: e,
1174
+ today: o,
1175
+ outsideMonth: t,
1176
+ rangeStart: l,
1177
+ rangeEnd: r,
1178
+ inRange: d,
1179
+ disabled: i,
1180
+ children: c,
1181
+ ...g
1182
+ }) {
1183
+ 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(
1185
+ "button",
1186
+ {
1187
+ type: "button",
1188
+ className: s ? `gloss-base-daterangepicker__day ${s}` : "gloss-base-daterangepicker__day",
1189
+ style: a,
1190
+ disabled: i,
1191
+ ..._,
1192
+ ...g,
1193
+ children: c
1194
+ }
1195
+ );
1196
+ }
1197
+ oa.displayName = "BaseDateRangePickerDay";
1198
+ const ta = {
1199
+ bg: "--_bg",
1200
+ color: "--_color",
1201
+ borderColor: "--_border-color",
1202
+ radius: "--_radius",
1203
+ fontSize: "--_font-size",
1204
+ padding: "--_padding",
1205
+ buttonBg: "--_button-bg",
1206
+ minHeight: "--_min-height"
1207
+ };
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(
1211
+ "div",
1212
+ {
1213
+ className: a ? `gloss-base-numberinput ${a}` : "gloss-base-numberinput",
1214
+ style: { ...r, ...e },
1215
+ ...d,
1216
+ ...l,
1217
+ children: t
1218
+ }
1219
+ );
1220
+ }
1221
+ ra.displayName = "BaseNumberInput";
1222
+ const la = {
1223
+ bg: "--_bg",
1224
+ color: "--_color",
1225
+ borderColor: "--_border-color",
1226
+ padding: "--_padding",
1227
+ paddingX: "--_px",
1228
+ radius: "--_radius",
1229
+ fontSize: "--_font-size",
1230
+ minHeight: "--_min-height",
1231
+ placeholderColor: "--_placeholder-color",
1232
+ 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);
1236
+ r !== "default" && (g["data-status"] = r), d.disabled && (g["data-disabled"] = ""), d.readOnly && (g["data-readonly"] = "");
1237
+ const _ = /* @__PURE__ */ n(
1238
+ "input",
1239
+ {
1240
+ ref: i,
1241
+ className: a ? `gloss-base-maskedinput ${a}` : "gloss-base-maskedinput",
1242
+ style: { ...c, ...e },
1243
+ required: l,
1244
+ ...g,
1245
+ ...d
1246
+ }
1247
+ );
1248
+ return !o && !t ? _ : /* @__PURE__ */ b("div", { className: "gloss-base-maskedinput__wrapper", children: [
1249
+ o && /* @__PURE__ */ b("label", { className: "gloss-base-maskedinput__label", children: [
1250
+ o,
1251
+ l && /* @__PURE__ */ n("span", { className: "gloss-base-maskedinput__required", children: "*" })
1252
+ ] }),
1253
+ _,
1254
+ t && /* @__PURE__ */ n("div", { className: "gloss-base-maskedinput__helper", children: t })
1255
+ ] });
1256
+ }
1257
+ );
1258
+ ia.displayName = "BaseMaskedInput";
1259
+ const da = {
1260
+ bg: "--_bg",
1261
+ borderColor: "--_border-color",
1262
+ borderStyle: "--_border-style",
1263
+ radius: "--_radius",
1264
+ padding: "--_padding",
1265
+ minHeight: "--_min-height"
1266
+ };
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(
1270
+ "div",
1271
+ {
1272
+ className: a ? `gloss-base-fileupload ${a}` : "gloss-base-fileupload",
1273
+ style: { ...d, ...e },
1274
+ ...i,
1275
+ ...r,
1276
+ children: l
1277
+ }
1278
+ );
1279
+ }
1280
+ na.displayName = "BaseFileUpload";
1281
+ function ca({ className: s, style: a, children: e, ...o }) {
1282
+ return /* @__PURE__ */ n(
1283
+ "div",
1284
+ {
1285
+ className: s ? `gloss-base-fileupload__list ${s}` : "gloss-base-fileupload__list",
1286
+ style: a,
1287
+ ...o,
1288
+ children: e
1289
+ }
1290
+ );
1291
+ }
1292
+ ca.displayName = "BaseFileUploadList";
1293
+ function ga({ className: s, style: a, error: e, children: o, ...t }) {
1294
+ return /* @__PURE__ */ n(
1295
+ "div",
1296
+ {
1297
+ className: s ? `gloss-base-fileupload__item ${s}` : "gloss-base-fileupload__item",
1298
+ style: a,
1299
+ "data-error": e ? "" : void 0,
1300
+ ...t,
1301
+ children: o
1302
+ }
1303
+ );
1304
+ }
1305
+ ga.displayName = "BaseFileUploadItem";
1306
+ const _a = {
1307
+ radius: "--_radius",
1308
+ elevation: "--_elevation",
1309
+ padding: "--_padding",
1310
+ swatchSize: "--_swatch-size"
1311
+ };
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(
1315
+ "div",
1316
+ {
1317
+ className: a ? `gloss-base-colorpicker ${a}` : "gloss-base-colorpicker",
1318
+ style: { ...r, ...e },
1319
+ ...d,
1320
+ ...l,
1321
+ children: t
1322
+ }
1323
+ );
1324
+ }
1325
+ pa.displayName = "BaseColorPicker";
1326
+ function ua({ className: s, style: a, children: e, ...o }) {
1327
+ return /* @__PURE__ */ n(
1328
+ "div",
1329
+ {
1330
+ className: s ? `gloss-base-colorpicker__saturation ${s}` : "gloss-base-colorpicker__saturation",
1331
+ style: a,
1332
+ ...o,
1333
+ children: e
1334
+ }
1335
+ );
1336
+ }
1337
+ ua.displayName = "BaseColorPickerSaturation";
1338
+ function ba({ className: s, style: a, children: e, ...o }) {
1339
+ return /* @__PURE__ */ n(
1340
+ "div",
1341
+ {
1342
+ className: s ? `gloss-base-colorpicker__hue ${s}` : "gloss-base-colorpicker__hue",
1343
+ style: a,
1344
+ ...o,
1345
+ children: e
1346
+ }
1347
+ );
1348
+ }
1349
+ ba.displayName = "BaseColorPickerHue";
1350
+ function fa({ className: s, style: a, children: e, ...o }) {
1351
+ return /* @__PURE__ */ n(
1352
+ "div",
1353
+ {
1354
+ className: s ? `gloss-base-colorpicker__alpha ${s}` : "gloss-base-colorpicker__alpha",
1355
+ style: a,
1356
+ ...o,
1357
+ children: e
1358
+ }
1359
+ );
1360
+ }
1361
+ fa.displayName = "BaseColorPickerAlpha";
1362
+ function ma({ className: s, style: a, children: e, ...o }) {
1363
+ return /* @__PURE__ */ n(
1364
+ "div",
1365
+ {
1366
+ className: s ? `gloss-base-colorpicker__swatch ${s}` : "gloss-base-colorpicker__swatch",
1367
+ style: a,
1368
+ ...o,
1369
+ children: e
1370
+ }
1371
+ );
1372
+ }
1373
+ ma.displayName = "BaseColorPickerSwatch";
1374
+ const ya = {
1375
+ trackBg: "--_track-bg",
1376
+ trackActiveBg: "--_track-active-bg",
1377
+ thumbBg: "--_thumb-bg",
1378
+ thumbBorder: "--_thumb-border",
1379
+ thumbSize: "--_thumb-size",
1380
+ trackHeight: "--_track-height",
1381
+ thumbShadow: "--_thumb-shadow"
1382
+ };
1383
+ function va({
1384
+ definition: s,
1385
+ className: a,
1386
+ style: e,
1387
+ orientation: o = "horizontal",
1388
+ disabled: t,
1389
+ collision: l,
1390
+ children: r,
1391
+ ...d
1392
+ }) {
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(
1395
+ "div",
1396
+ {
1397
+ className: a ? `gloss-base-rangeslider ${a}` : "gloss-base-rangeslider",
1398
+ style: { ...i, ...e },
1399
+ ...c,
1400
+ ...d,
1401
+ children: r
1402
+ }
1403
+ );
1404
+ }
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 = {
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({
1438
+ definition: s,
1439
+ open: a,
1440
+ onDismiss: e,
1441
+ anchorRef: o,
1442
+ className: t,
1443
+ style: l,
1444
+ children: r
1445
+ }) {
1446
+ const d = {
1447
+ placement: s?.placement ?? "bottom",
1448
+ offset: s?.offset ?? 8,
1449
+ portal: s?.portal,
1450
+ dismissOnClickOutside: s?.dismissOnClickOutside ?? !0,
1451
+ dismissOnEscape: s?.dismissOnEscape ?? !0,
1452
+ role: "dialog",
1453
+ bg: s?.bg,
1454
+ shadow: s?.shadow,
1455
+ radius: s?.radius,
1456
+ padding: s?.padding,
1457
+ zIndex: s?.zIndex
1458
+ }, i = s?.arrowSize ?? 8, c = { ...l };
1459
+ return s?.showArrow && (c["--_arrow-size"] = `${i}px`), /* @__PURE__ */ n(
1460
+ A,
1461
+ {
1462
+ definition: d,
1463
+ open: a,
1464
+ onDismiss: e,
1465
+ anchorRef: o,
1466
+ children: /* @__PURE__ */ b(
1467
+ "div",
1468
+ {
1469
+ className: t ? `gloss-base-popover ${t}` : "gloss-base-popover",
1470
+ style: c,
1471
+ children: [
1472
+ r,
1473
+ s?.showArrow && /* @__PURE__ */ n("div", { className: "gloss-base-popover__arrow" })
1474
+ ]
1475
+ }
1476
+ )
1477
+ }
1478
+ );
1479
+ }
1480
+ Aa.displayName = "BasePopover";
1481
+ const ka = {
1482
+ size: "--_size",
1483
+ bg: "--_bg",
1484
+ color: "--_color",
1485
+ fontSize: "--_font-size",
1486
+ radius: "--_radius"
1487
+ };
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(
1491
+ "div",
1492
+ {
1493
+ className: t ? `gloss-base-avatar ${t}` : "gloss-base-avatar",
1494
+ style: { ...g, ...l },
1495
+ ..._,
1496
+ ...d,
1497
+ children: f ? /* @__PURE__ */ n(
1498
+ "img",
1499
+ {
1500
+ src: e,
1501
+ alt: o || "",
1502
+ onError: () => c(!0)
1503
+ }
1504
+ ) : r
1505
+ }
1506
+ );
1507
+ }
1508
+ Na.displayName = "BaseAvatar";
1509
+ const Ca = {
1510
+ trackBg: "--_track-bg",
1511
+ fillBg: "--_fill-bg",
1512
+ height: "--_height",
1513
+ radius: "--_radius"
1514
+ };
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);
1517
+ t && (c["data-indeterminate"] = "");
1518
+ const g = t ? void 0 : `${Math.min(100, (e || 0) / (o || 100) * 100)}%`;
1519
+ return /* @__PURE__ */ n(
1520
+ "div",
1521
+ {
1522
+ role: "progressbar",
1523
+ "aria-valuenow": t ? void 0 : e || 0,
1524
+ "aria-valuemin": 0,
1525
+ "aria-valuemax": o,
1526
+ className: l ? `gloss-base-progress-bar ${l}` : "gloss-base-progress-bar",
1527
+ style: { ...i, ...r },
1528
+ ...c,
1529
+ ...d,
1530
+ children: /* @__PURE__ */ n(
1531
+ "div",
1532
+ {
1533
+ className: "gloss-base-progress-bar__fill",
1534
+ style: g ? { width: g } : void 0
1535
+ }
1536
+ )
1537
+ }
1538
+ );
1539
+ }
1540
+ xa.displayName = "BaseProgressBar";
1541
+ const $a = {
1542
+ bg: "--_bg",
1543
+ color: "--_color",
1544
+ padding: "--_padding",
1545
+ paddingX: "--_px",
1546
+ radius: "--_radius",
1547
+ fontSize: "--_font-size",
1548
+ fontWeight: "--_font-weight"
1549
+ };
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,
1554
+ {
1555
+ className: o ? `gloss-base-badge ${o}` : "gloss-base-badge",
1556
+ style: { ...c, ...t },
1557
+ ...g,
1558
+ ...d,
1559
+ children: !l && r
1560
+ }
1561
+ );
1562
+ }
1563
+ wa.displayName = "BaseBadge";
1564
+ const Ra = {
1565
+ bg: "--_bg",
1566
+ color: "--_color",
1567
+ borderColor: "--_border-color",
1568
+ padding: "--_padding",
1569
+ paddingX: "--_px",
1570
+ radius: "--_radius",
1571
+ fontSize: "--_font-size",
1572
+ fontWeight: "--_font-weight",
1573
+ gap: "--_gap"
1574
+ };
1575
+ function Pa(s) {
1576
+ const {
1577
+ as: a,
1578
+ definition: e,
1579
+ className: o,
1580
+ style: t,
1581
+ disabled: l,
1582
+ clickable: r,
1583
+ selected: d,
1584
+ avatar: i,
1585
+ leftIcon: c,
1586
+ deleteButton: g,
1587
+ children: _,
1588
+ ...f
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,
1592
+ {
1593
+ className: o ? `gloss-base-chip ${o}` : "gloss-base-chip",
1594
+ style: { ...v, ...t },
1595
+ ...y,
1596
+ ...f,
1597
+ 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 })
1602
+ ]
1603
+ }
1604
+ );
1605
+ }
1606
+ Pa.displayName = "BaseChip";
1607
+ const za = {
1608
+ color: "--_color",
1609
+ fontSize: "--_font-size",
1610
+ fontWeight: "--_font-weight",
1611
+ gap: "--_gap"
1612
+ }, Ta = {
1613
+ underline: "data-underline"
1614
+ };
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(
1618
+ g,
1619
+ {
1620
+ className: o ? `gloss-base-link ${o}` : "gloss-base-link",
1621
+ style: { ..._, ...t },
1622
+ ...f,
1623
+ ...c,
1624
+ 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 })
1628
+ ]
1629
+ }
1630
+ );
1631
+ }
1632
+ Ma.displayName = "BaseLink";
1633
+ const Da = { region: null, density: "default" }, k = x(Da);
1634
+ function Ya() {
1635
+ return $(k);
1636
+ }
1637
+ function Ia({ region: s, density: a = "default", children: e }) {
1638
+ const o = { region: s, density: a };
1639
+ return p.createElement(
1640
+ k.Provider,
1641
+ { value: o },
1642
+ p.createElement(
1643
+ "div",
1644
+ {
1645
+ "data-region": s,
1646
+ "data-density": a,
1647
+ className: "gloss-ui-context"
1648
+ },
1649
+ e
1650
+ )
1651
+ );
1652
+ }
1653
+ Ia.displayName = "UIContextProvider";
1654
+ 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
1731
+ };