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