@mt-gloss/ui 0.0.9 → 0.0.11

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 (275) hide show
  1. package/BaseAsyncButton-XBXVlXMl.js +223 -0
  2. package/Expandable-SuZVwO7Z.js +13366 -0
  3. package/UIContext-CEp38xw-.js +1673 -0
  4. package/catalog.d.ts +7 -0
  5. package/catalog.js +614 -0
  6. package/index.d.ts +274 -2
  7. package/index.js +2217 -18330
  8. package/internals.d.ts +64 -0
  9. package/internals.js +279 -0
  10. package/lib/base/BaseAccordion/BaseAccordion.d.ts +51 -0
  11. package/lib/base/BaseAlert/BaseAlert.d.ts +28 -0
  12. package/lib/base/BaseAsyncButton/BaseAsyncButton.d.ts +22 -0
  13. package/lib/base/BaseAvatar/BaseAvatar.d.ts +28 -0
  14. package/lib/base/BaseBadge/BaseBadge.d.ts +31 -0
  15. package/lib/base/BaseBox/BaseBox.d.ts +35 -0
  16. package/lib/base/BaseBreadcrumbs/BaseBreadcrumbs.d.ts +26 -0
  17. package/lib/base/BaseButton/BaseButton.d.ts +38 -0
  18. package/lib/base/BaseCard/BaseCard.d.ts +109 -0
  19. package/lib/base/BaseCheckbox/BaseCheckbox.d.ts +23 -0
  20. package/lib/base/BaseChip/BaseChip.d.ts +38 -0
  21. package/lib/base/BaseColorPicker/BaseColorPicker.d.ts +77 -0
  22. package/lib/base/BaseDatePicker/BaseDatePicker.d.ts +76 -0
  23. package/lib/base/BaseDateRangePicker/BaseDateRangePicker.d.ts +47 -0
  24. package/lib/base/BaseDialog/BaseDialog.d.ts +54 -0
  25. package/lib/base/BaseDivider/BaseDivider.d.ts +24 -0
  26. package/lib/base/BaseFileUpload/BaseFileUpload.d.ts +57 -0
  27. package/lib/base/BaseIcon/BaseIcon.d.ts +23 -0
  28. package/lib/base/BaseInput/BaseInput.d.ts +34 -0
  29. package/lib/base/BaseLabel/BaseLabel.d.ts +21 -0
  30. package/lib/base/BaseLink/BaseLink.d.ts +29 -0
  31. package/lib/base/BaseMaskedInput/BaseMaskedInput.d.ts +31 -0
  32. package/lib/base/BaseMenu/BaseMenu.d.ts +70 -0
  33. package/lib/base/BaseNumberInput/BaseNumberInput.d.ts +31 -0
  34. package/lib/base/BaseOverlay/BaseOverlay.d.ts +39 -0
  35. package/lib/base/BaseOverlay/useOverlayDismiss.d.ts +15 -0
  36. package/lib/base/BaseOverlay/useOverlayPositioning.d.ts +13 -0
  37. package/lib/base/BasePopover/BasePopover.d.ts +40 -0
  38. package/lib/base/BaseProgressBar/BaseProgressBar.d.ts +27 -0
  39. package/lib/base/BaseRadio/BaseRadio.d.ts +20 -0
  40. package/lib/base/BaseRangeSlider/BaseRangeSlider.d.ts +31 -0
  41. package/lib/base/BaseRating/BaseRating.d.ts +25 -0
  42. package/lib/base/BaseSegmentedControl/BaseSegmentedControl.d.ts +26 -0
  43. package/lib/base/BaseSelect/BaseSelect.d.ts +83 -0
  44. package/lib/base/BaseSlider/BaseSlider.d.ts +29 -0
  45. package/lib/base/BaseStack/BaseStack.d.ts +26 -0
  46. package/lib/base/BaseTable/BaseTable.d.ts +97 -0
  47. package/lib/base/BaseText/BaseText.d.ts +19 -0
  48. package/lib/base/BaseTextarea/BaseTextarea.d.ts +37 -0
  49. package/lib/base/BaseTimePicker/BaseTimePicker.d.ts +55 -0
  50. package/lib/base/BaseTitle/BaseTitle.d.ts +22 -0
  51. package/lib/base/BaseToast/BaseToast.d.ts +35 -0
  52. package/lib/base/BaseToggle/BaseToggle.d.ts +22 -0
  53. package/lib/base/BaseTooltip/BaseTooltip.d.ts +27 -0
  54. package/lib/base/BaseTypography/BaseTypography.d.ts +30 -0
  55. package/lib/base/BaseValue/BaseValue.d.ts +20 -0
  56. package/lib/base/index.d.ts +65 -0
  57. package/lib/base/types.d.ts +9 -0
  58. package/lib/base/utils.d.ts +18 -0
  59. package/lib/composites/controls/ThresholdRamp/ThresholdRamp.d.ts +24 -0
  60. package/lib/composites/controls/ThresholdRamp/index.d.ts +2 -0
  61. package/lib/composites/controls/index.d.ts +1 -0
  62. package/lib/composites/dashboard/QuickConfigPanel/QuickConfigPanel.d.ts +14 -0
  63. package/lib/composites/dashboard/QuickConfigPanel/index.d.ts +2 -0
  64. package/lib/composites/dashboard/QuickConfigPanel/types.d.ts +38 -0
  65. package/lib/composites/data/DataTable.d.ts +61 -0
  66. package/lib/composites/data/PinToMetric/PinToMetric.d.ts +11 -0
  67. package/lib/composites/data/PinToMetric/index.d.ts +2 -0
  68. package/lib/composites/data/PinToMetric/types.d.ts +17 -0
  69. package/lib/composites/data/index.d.ts +4 -0
  70. package/lib/composites/index.d.ts +5 -0
  71. package/lib/composites/inputs/Autocomplete.d.ts +36 -0
  72. package/lib/composites/inputs/EntityPicker.d.ts +36 -0
  73. package/lib/composites/inputs/FilterChip.d.ts +29 -0
  74. package/lib/composites/inputs/MultiSelect.d.ts +38 -0
  75. package/lib/composites/inputs/index.d.ts +8 -0
  76. package/lib/composites/navigation/Stepper.d.ts +40 -0
  77. package/lib/composites/navigation/index.d.ts +2 -0
  78. package/lib/composites/overlay/Dropdown/Dropdown.d.ts +22 -0
  79. package/lib/composites/overlay/Dropdown/index.d.ts +2 -0
  80. package/lib/composites/overlay/FormDialog.d.ts +38 -0
  81. package/lib/composites/overlay/InlineNudge/InlineNudge.d.ts +26 -0
  82. package/lib/composites/overlay/InlineNudge/index.d.ts +12 -0
  83. package/lib/composites/overlay/MergePrompt/MergePrompt.d.ts +16 -0
  84. package/lib/composites/overlay/MergePrompt/index.d.ts +2 -0
  85. package/lib/composites/overlay/MergePrompt/types.d.ts +15 -0
  86. package/lib/composites/overlay/SplitButton/SplitButton.d.ts +27 -0
  87. package/lib/composites/overlay/SplitButton/index.d.ts +2 -0
  88. package/lib/composites/overlay/index.d.ts +6 -0
  89. package/lib/compositions/feedback/DestructiveModal.d.ts +1 -1
  90. package/lib/compositions/filters/OrderFilterBar.d.ts +35 -0
  91. package/lib/compositions/filters/index.d.ts +2 -0
  92. package/lib/compositions/forms/AddressGroup.d.ts +13 -1
  93. package/lib/compositions/forms/ContactForm.d.ts +31 -0
  94. package/lib/compositions/forms/CreditCardForm.d.ts +3 -1
  95. package/lib/compositions/forms/LoginForm.d.ts +3 -1
  96. package/lib/compositions/forms/PaymentForm.d.ts +50 -0
  97. package/lib/compositions/forms/RegistrationForm.d.ts +39 -0
  98. package/lib/compositions/forms/index.d.ts +3 -0
  99. package/lib/compositions/index.d.ts +3 -0
  100. package/lib/compositions/navigation/ImportWizard.d.ts +28 -0
  101. package/lib/compositions/navigation/index.d.ts +2 -0
  102. package/lib/compositions/panels/EntitySearchPanel.d.ts +41 -0
  103. package/lib/compositions/panels/ProfileCard.d.ts +34 -0
  104. package/lib/compositions/panels/index.d.ts +4 -0
  105. package/lib/containers/ContainerCard/ContainerCard.d.ts +13 -0
  106. package/lib/containers/ContainerDialog/ContainerDialog.d.ts +27 -0
  107. package/lib/containers/ContainerForm/ContainerForm.d.ts +45 -0
  108. package/lib/containers/ContainerFormField/ContainerFormField.d.ts +31 -0
  109. package/lib/containers/ContainerFormSection/ContainerFormSection.d.ts +13 -0
  110. package/lib/containers/ContainerPanel/ContainerPanel.d.ts +14 -0
  111. package/lib/containers/ContainerTable/ContainerTable.d.ts +12 -0
  112. package/lib/containers/ContainerToolbar/ContainerToolbar.d.ts +11 -0
  113. package/lib/containers/UIContext.d.ts +26 -0
  114. package/lib/containers/index.d.ts +18 -0
  115. package/lib/dictionary/border.d.ts +11 -0
  116. package/lib/dictionary/breakpoint.d.ts +12 -0
  117. package/lib/dictionary/color.d.ts +67 -0
  118. package/lib/dictionary/elevation.d.ts +16 -0
  119. package/lib/dictionary/index.d.ts +14 -0
  120. package/lib/dictionary/motion.d.ts +13 -0
  121. package/lib/dictionary/opacity.d.ts +11 -0
  122. package/lib/dictionary/radius.d.ts +14 -0
  123. package/lib/dictionary/spacing.d.ts +18 -0
  124. package/lib/dictionary/typography.d.ts +25 -0
  125. package/lib/dictionary/z-index.d.ts +13 -0
  126. package/lib/facade/composites.d.ts +56 -0
  127. package/lib/facade/compositions.d.ts +27 -0
  128. package/lib/facade/containers.d.ts +8 -0
  129. package/lib/facade/data-display.d.ts +41 -0
  130. package/lib/facade/display.d.ts +50 -0
  131. package/lib/facade/feedback.d.ts +6 -0
  132. package/lib/facade/index.d.ts +17 -0
  133. package/lib/facade/inputs.d.ts +43 -0
  134. package/lib/facade/layout.d.ts +8 -0
  135. package/lib/facade/overlay.d.ts +26 -0
  136. package/lib/facade/typography.d.ts +12 -0
  137. package/lib/facade/wrappers.d.ts +26 -0
  138. package/lib/presets/PresetAccordion/PresetAccordion.d.ts +21 -0
  139. package/lib/presets/PresetAlert/PresetAlert.d.ts +17 -0
  140. package/lib/presets/PresetAsyncButton/PresetAsyncButton.d.ts +22 -0
  141. package/lib/presets/PresetAsyncLoader/PresetAsyncLoader.d.ts +6 -0
  142. package/lib/presets/PresetAvatar/PresetAvatar.d.ts +18 -0
  143. package/lib/presets/PresetBadge/PresetBadge.d.ts +15 -0
  144. package/lib/presets/PresetBreadcrumbs/PresetBreadcrumbs.d.ts +15 -0
  145. package/lib/presets/PresetButton/PresetButton.d.ts +27 -0
  146. package/lib/presets/PresetButtonGroup/PresetButtonGroup.d.ts +6 -0
  147. package/lib/presets/PresetCard/PresetCard.d.ts +45 -0
  148. package/lib/presets/PresetCheckbox/PresetCheckbox.d.ts +23 -0
  149. package/lib/presets/PresetCheckboxGroup/PresetCheckboxGroup.d.ts +6 -0
  150. package/lib/presets/PresetChip/PresetChip.d.ts +22 -0
  151. package/lib/presets/PresetColorPicker/PresetColorPicker.d.ts +22 -0
  152. package/lib/presets/PresetDatePicker/PresetDatePicker.d.ts +29 -0
  153. package/lib/presets/PresetDateRangePicker/PresetDateRangePicker.d.ts +37 -0
  154. package/lib/presets/PresetDialog/PresetDialog.d.ts +46 -0
  155. package/lib/presets/PresetDivider/PresetDivider.d.ts +13 -0
  156. package/lib/presets/PresetDropdown/PresetDropdown.d.ts +6 -0
  157. package/lib/presets/PresetFileUpload/PresetFileUpload.d.ts +35 -0
  158. package/lib/presets/PresetForm/PresetForm.d.ts +6 -0
  159. package/lib/presets/PresetFormField/PresetFormField.d.ts +6 -0
  160. package/lib/presets/PresetInput/PresetInput.d.ts +24 -0
  161. package/lib/presets/PresetInputGroup/PresetInputGroup.d.ts +6 -0
  162. package/lib/presets/PresetLabel/PresetLabel.d.ts +18 -0
  163. package/lib/presets/PresetLink/PresetLink.d.ts +21 -0
  164. package/lib/presets/PresetMaskedInput/PresetMaskedInput.d.ts +41 -0
  165. package/lib/presets/PresetMenu/PresetMenu.d.ts +33 -0
  166. package/lib/presets/PresetNumberInput/PresetNumberInput.d.ts +26 -0
  167. package/lib/presets/PresetPopover/PresetPopover.d.ts +17 -0
  168. package/lib/presets/PresetProgressBar/PresetProgressBar.d.ts +19 -0
  169. package/lib/presets/PresetRadio/PresetRadio.d.ts +21 -0
  170. package/lib/presets/PresetRadioGroup/PresetRadioGroup.d.ts +6 -0
  171. package/lib/presets/PresetRangeSlider/PresetRangeSlider.d.ts +30 -0
  172. package/lib/presets/PresetRating/PresetRating.d.ts +19 -0
  173. package/lib/presets/PresetSegmentedControl/PresetSegmentedControl.d.ts +28 -0
  174. package/lib/presets/PresetSelect/PresetSelect.d.ts +63 -0
  175. package/lib/presets/PresetSlider/PresetSlider.d.ts +29 -0
  176. package/lib/presets/PresetSplitButton/PresetSplitButton.d.ts +6 -0
  177. package/lib/presets/PresetSwatchRow/PresetSwatchRow.d.ts +28 -0
  178. package/lib/presets/PresetSwatchRow/index.d.ts +2 -0
  179. package/lib/presets/PresetText/PresetText.d.ts +17 -0
  180. package/lib/presets/PresetTextarea/PresetTextarea.d.ts +25 -0
  181. package/lib/presets/PresetTimePicker/PresetTimePicker.d.ts +27 -0
  182. package/lib/presets/PresetTitle/PresetTitle.d.ts +19 -0
  183. package/lib/presets/PresetToast/PresetToast.d.ts +19 -0
  184. package/lib/presets/PresetToggle/PresetToggle.d.ts +21 -0
  185. package/lib/presets/PresetTooltip/PresetTooltip.d.ts +20 -0
  186. package/lib/presets/PresetTransition/PresetTransition.d.ts +6 -0
  187. package/lib/presets/PresetValue/PresetValue.d.ts +15 -0
  188. package/lib/presets/createPreset.d.ts +64 -0
  189. package/lib/presets/index.d.ts +86 -0
  190. package/lib/presets/types.d.ts +13 -0
  191. package/lib/primitives/Accordion.d.ts +12 -102
  192. package/lib/primitives/AsyncLoader.d.ts +4 -39
  193. package/lib/primitives/Badge.d.ts +5 -40
  194. package/lib/primitives/Button.d.ts +4 -71
  195. package/lib/primitives/ButtonGroup.d.ts +4 -70
  196. package/lib/primitives/Card.d.ts +20 -138
  197. package/lib/primitives/Checkbox.d.ts +4 -68
  198. package/lib/primitives/CheckboxGroup.d.ts +4 -160
  199. package/lib/primitives/Chip.d.ts +5 -66
  200. package/lib/primitives/ColorPicker.d.ts +4 -80
  201. package/lib/primitives/DatePicker.d.ts +4 -100
  202. package/lib/primitives/DateRangePicker.d.ts +4 -107
  203. package/lib/primitives/Dropdown.d.ts +4 -63
  204. package/lib/primitives/FileUpload.d.ts +4 -107
  205. package/lib/primitives/Form.d.ts +4 -117
  206. package/lib/primitives/FormField.d.ts +4 -67
  207. package/lib/primitives/Input.d.ts +4 -87
  208. package/lib/primitives/InputGroup.d.ts +4 -57
  209. package/lib/primitives/Link.d.ts +4 -67
  210. package/lib/primitives/MaskedInput.d.ts +4 -93
  211. package/lib/primitives/Menu.d.ts +12 -131
  212. package/lib/primitives/NumberInput.d.ts +4 -79
  213. package/lib/primitives/Radio.d.ts +4 -58
  214. package/lib/primitives/RadioGroup.d.ts +4 -161
  215. package/lib/primitives/RangeSlider.d.ts +4 -103
  216. package/lib/primitives/Rating.d.ts +4 -113
  217. package/lib/primitives/SegmentedControl.d.ts +4 -94
  218. package/lib/primitives/Select.d.ts +5 -203
  219. package/lib/primitives/Slider.d.ts +4 -109
  220. package/lib/primitives/SplitButton.d.ts +4 -82
  221. package/lib/primitives/Textarea.d.ts +4 -57
  222. package/lib/primitives/TimePicker.d.ts +4 -91
  223. package/lib/primitives/Toggle.d.ts +4 -66
  224. package/lib/primitives/Tooltip.d.ts +6 -86
  225. package/lib/primitives/Transition.d.ts +4 -105
  226. package/lib/primitives/dashboard/MetricCard/CardBack.d.ts +17 -2
  227. package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
  228. package/lib/primitives/dashboard/MetricCard/EdgeHoverHandle.d.ts +20 -0
  229. package/lib/primitives/dashboard/MetricCard/GhostPreview.d.ts +24 -0
  230. package/lib/primitives/dashboard/MetricCard/GutterActions.d.ts +12 -2
  231. package/lib/primitives/dashboard/MetricCard/MetricCard.d.ts +0 -28
  232. package/lib/primitives/dashboard/MetricCard/StatusModeCard.d.ts +5 -0
  233. package/lib/primitives/dashboard/MetricCard/StatusSlotChipMenu.d.ts +28 -0
  234. package/lib/primitives/dashboard/MetricCard/flipAndStage/FlipAndStageProvider.d.ts +29 -0
  235. package/lib/primitives/dashboard/MetricCard/flipAndStage/index.d.ts +15 -0
  236. package/lib/primitives/dashboard/MetricCard/flipAndStage/types.d.ts +83 -0
  237. package/lib/primitives/dashboard/MetricCard/flipAndStage/useFlipAndStage.d.ts +10 -0
  238. package/lib/primitives/dashboard/MetricCard/index.d.ts +10 -0
  239. package/lib/primitives/dashboard/MetricCard/types.d.ts +48 -4
  240. package/lib/primitives/dashboard/MetricCard/useEdgeHoverResize.d.ts +52 -0
  241. package/lib/primitives/dashboard/MetricCard/useSlotCapacity.d.ts +12 -0
  242. package/lib/primitives/dashboard/MetricCardGrid/MetricCardGrid.d.ts +21 -19
  243. package/lib/primitives/dashboard/MetricCardGrid/types.d.ts +8 -1
  244. package/lib/primitives/dashboard/MetricGroupContainer/MetricGroupContainer.d.ts +5 -0
  245. package/lib/primitives/dashboard/MetricGroupContainer/__tests__/fixtures.d.ts +13 -0
  246. package/lib/primitives/dashboard/MetricGroupContainer/index.d.ts +2 -0
  247. package/lib/primitives/dashboard/MetricGroupContainer/types.d.ts +34 -0
  248. package/lib/primitives/dashboard/PageChip/PageChip.d.ts +27 -0
  249. package/lib/primitives/dashboard/PageChip/PageDropdown.d.ts +29 -0
  250. package/lib/primitives/dashboard/PageChip/index.d.ts +3 -0
  251. package/lib/primitives/dashboard/PageChip/types.d.ts +36 -0
  252. package/lib/primitives/dashboard/TimeFrame/SimpleSelector.d.ts +9 -0
  253. package/lib/primitives/dashboard/TimeFrame/index.d.ts +2 -0
  254. package/lib/primitives/dashboard/TimeFrame/types.d.ts +8 -0
  255. package/lib/primitives/dashboard/UnifiedContextMenu/types.d.ts +2 -0
  256. package/lib/primitives/dashboard/index.d.ts +2 -0
  257. package/lib/wrappers/Actionable/Actionable.d.ts +17 -0
  258. package/lib/wrappers/AsyncLoader/AsyncLoader.d.ts +13 -0
  259. package/lib/wrappers/ButtonGroup/ButtonGroup.d.ts +23 -0
  260. package/lib/wrappers/CheckboxGroup/CheckboxGroup.d.ts +52 -0
  261. package/lib/wrappers/Dismissible/Dismissible.d.ts +24 -0
  262. package/lib/wrappers/Expandable/Expandable.d.ts +23 -0
  263. package/lib/wrappers/InputGroup/InputGroup.d.ts +20 -0
  264. package/lib/wrappers/RadioGroup/RadioGroup.d.ts +52 -0
  265. package/lib/wrappers/Selectable/Selectable.d.ts +19 -0
  266. package/lib/wrappers/Sortable/Sortable.d.ts +27 -0
  267. package/lib/wrappers/SortableZones/SortableZones.d.ts +32 -0
  268. package/lib/wrappers/SortableZones/index.d.ts +4 -0
  269. package/lib/wrappers/SortableZones/useSortableZones.d.ts +66 -0
  270. package/lib/wrappers/Transition/Transition.d.ts +49 -0
  271. package/lib/wrappers/index.d.ts +25 -0
  272. package/lib/wrappers/utils.d.ts +10 -0
  273. package/package.json +36 -5
  274. package/ui.css +1 -0
  275. package/index.css +0 -1
package/catalog.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Catalog entry point — tree-shakeable facade for consuming Gloss UI components.
3
+ *
4
+ * Usage: import * as UI from '@mt-gloss/ui/catalog';
5
+ * <UI.Text variant="body">Hello</UI.Text>
6
+ */
7
+ export * from './lib/facade/index';
package/catalog.js ADDED
@@ -0,0 +1,614 @@
1
+ import { y as x, N as I, A as B, F as C, J as F, z as D, D as A, E as M, H as v, O as z, Q as W, T as R, aX as _, U as H, aY as L, aZ as k, a_ as E, V as $, W as G, X as O } from "./Expandable-SuZVwO7Z.js";
2
+ import { b2 as De, av as Ae, ad as Me, Z as ve, aj as ze, bN as We, K as Re, a4 as _e, bl as He, P as Le, B as ke, be as Ee, bd as $e, bt as Ge, b as Oe, C as Xe, L as Ve, o as je, a9 as we, aJ as Ze, ay as Ue, am as qe, k as Je, m as Ye, aB as Ke, a7 as Qe, b4 as ea, a5 as aa, bm as ta, Y as sa, al as oa, aM as ra, b6 as ia, n as na, ai as la, a0 as da, an as ca, a2 as ga, bg as ma, a6 as pa, bF as ua, aP as ba, r as fa, I as ha, g as Ta, as as Sa, M as ya, w as Pa, ao as Na, bc as xa, bL as Ia, ak as Ba, t as Ca, bn as Fa, aO as Da, a$ as Aa, af as Ma, aG as va, ac as za, ah as Wa, aq as Ra, bP as _a, aN as Ha, bO as La, a8 as ka, c as Ea, R as $a, j as Ga, p as Oa, aD as Xa, ae as Va, aa as ja, h as wa, x as Za, b3 as Ua, ab as qa, b8 as Ja, bb as Ya, b9 as Ka, ba as Qa, i as et, b5 as at, bk as tt, S as st, bh as ot, ar as rt, b7 as it, bM as nt, ag as lt, s as dt, bG as ct, l as gt, f as mt, q as pt, _ as ut, a3 as bt, bf as ft, bs as ht, bz as Tt, ax as St, aL as yt, aA as Pt, au as Nt, aI as xt, aF as It, a1 as Bt, bj as Ct } from "./Expandable-SuZVwO7Z.js";
3
+ import { jsx as g, jsxs as y } from "react/jsx-runtime";
4
+ import { C as a, ac as X, S as s, E as u, R as p, e as V, Z as j } from "./UIContext-CEp38xw-.js";
5
+ import { T as e, B as w, a as Z, b as U, f as q, d as J, e as Y, c as K } from "./BaseAsyncButton-XBXVlXMl.js";
6
+ import { formatDateRange as Dt, resolveEvent as At, resolvePreset as Mt, smartDateFormat as vt } from "@mt-gloss/utils/dateInterpretation";
7
+ const Q = {
8
+ body: {
9
+ fontFamily: e.FontBody,
10
+ fontSize: e.TextBase,
11
+ fontWeight: e.WeightNormal,
12
+ lineHeight: e.LeadingNormal,
13
+ color: a.TextPrimary
14
+ },
15
+ caption: {
16
+ fontFamily: e.FontBody,
17
+ fontSize: e.TextSm,
18
+ fontWeight: e.WeightNormal,
19
+ lineHeight: e.LeadingNormal,
20
+ color: a.TextSecondary
21
+ },
22
+ overline: {
23
+ fontFamily: e.FontBody,
24
+ fontSize: e.TextXs,
25
+ fontWeight: e.WeightSemibold,
26
+ lineHeight: e.LeadingTight,
27
+ letterSpacing: "0.08em",
28
+ color: a.TextSecondary
29
+ }
30
+ }, ee = {
31
+ xs: { fontSize: e.TextXs },
32
+ sm: { fontSize: e.TextSm },
33
+ md: { fontSize: e.TextBase },
34
+ lg: { fontSize: e.TextLg },
35
+ xl: { fontSize: e.TextXl }
36
+ }, ae = function(i) {
37
+ const {
38
+ variant: o = "body",
39
+ size: n = "md",
40
+ children: l,
41
+ ...r
42
+ } = i, t = { ...r };
43
+ delete t.className, delete t.style, delete t.definition;
44
+ const c = {
45
+ ...Q[o],
46
+ ...ee[n]
47
+ }, m = [
48
+ "gloss-preset-text",
49
+ `gloss-preset-text--${o}`
50
+ ].join(" ");
51
+ return /* @__PURE__ */ g(
52
+ X,
53
+ {
54
+ as: t.as,
55
+ definition: c,
56
+ className: m,
57
+ ...t,
58
+ children: l
59
+ }
60
+ );
61
+ };
62
+ ae.displayName = "PresetText";
63
+ const te = {
64
+ page: {
65
+ fontFamily: e.FontDisplay,
66
+ fontSize: e.Text3xl,
67
+ fontWeight: e.WeightBold,
68
+ lineHeight: e.LeadingTight,
69
+ color: a.TextPrimary
70
+ },
71
+ section: {
72
+ fontFamily: e.FontDisplay,
73
+ fontSize: e.Text2xl,
74
+ fontWeight: e.WeightSemibold,
75
+ lineHeight: e.LeadingTight,
76
+ color: a.TextPrimary
77
+ },
78
+ subsection: {
79
+ fontFamily: e.FontDisplay,
80
+ fontSize: e.TextXl,
81
+ fontWeight: e.WeightSemibold,
82
+ lineHeight: e.LeadingTight,
83
+ color: a.TextPrimary
84
+ },
85
+ card: {
86
+ fontFamily: e.FontDisplay,
87
+ fontSize: e.TextLg,
88
+ fontWeight: e.WeightSemibold,
89
+ lineHeight: e.LeadingTight,
90
+ color: a.TextPrimary
91
+ }
92
+ }, se = function(i) {
93
+ const {
94
+ variant: o = "section",
95
+ level: n = 2,
96
+ children: l,
97
+ ...r
98
+ } = i, t = { ...r };
99
+ delete t.className, delete t.style, delete t.definition;
100
+ const c = {
101
+ ...te[o]
102
+ }, m = [
103
+ "gloss-preset-title",
104
+ `gloss-preset-title--${o}`
105
+ ].join(" ");
106
+ return /* @__PURE__ */ g(
107
+ w,
108
+ {
109
+ as: t.as,
110
+ level: n,
111
+ definition: c,
112
+ className: m,
113
+ ...t,
114
+ children: l
115
+ }
116
+ );
117
+ };
118
+ se.displayName = "PresetTitle";
119
+ const oe = {
120
+ default: {
121
+ fontFamily: e.FontBody,
122
+ fontSize: e.TextSm,
123
+ fontWeight: e.WeightMedium,
124
+ lineHeight: e.LeadingNormal,
125
+ color: a.TextPrimary
126
+ },
127
+ required: {
128
+ fontFamily: e.FontBody,
129
+ fontSize: e.TextSm,
130
+ fontWeight: e.WeightMedium,
131
+ lineHeight: e.LeadingNormal,
132
+ color: a.TextPrimary
133
+ },
134
+ optional: {
135
+ fontFamily: e.FontBody,
136
+ fontSize: e.TextSm,
137
+ fontWeight: e.WeightMedium,
138
+ lineHeight: e.LeadingNormal,
139
+ color: a.TextPrimary
140
+ }
141
+ }, re = function(i) {
142
+ const {
143
+ variant: o = "default",
144
+ htmlFor: n,
145
+ children: l,
146
+ ...r
147
+ } = i, t = { ...r };
148
+ delete t.className, delete t.style, delete t.definition;
149
+ const c = {
150
+ ...oe[o]
151
+ }, m = [
152
+ "gloss-preset-label",
153
+ `gloss-preset-label--${o}`
154
+ ].join(" ");
155
+ return /* @__PURE__ */ g(
156
+ Z,
157
+ {
158
+ as: t.as,
159
+ htmlFor: n,
160
+ definition: c,
161
+ className: m,
162
+ ...t,
163
+ children: l
164
+ }
165
+ );
166
+ };
167
+ re.displayName = "PresetLabel";
168
+ const ie = {
169
+ default: {
170
+ fontFamily: e.FontBody,
171
+ fontSize: e.TextBase,
172
+ fontWeight: e.WeightMedium,
173
+ lineHeight: e.LeadingNormal,
174
+ color: a.TextPrimary
175
+ },
176
+ highlight: {
177
+ fontFamily: e.FontBody,
178
+ fontSize: e.TextBase,
179
+ fontWeight: e.WeightBold,
180
+ lineHeight: e.LeadingNormal,
181
+ color: a.BrandPrimary
182
+ },
183
+ muted: {
184
+ fontFamily: e.FontBody,
185
+ fontSize: e.TextBase,
186
+ fontWeight: e.WeightMedium,
187
+ lineHeight: e.LeadingNormal,
188
+ color: a.TextTertiary
189
+ }
190
+ }, ne = function(i) {
191
+ const {
192
+ variant: o = "default",
193
+ children: n,
194
+ ...l
195
+ } = i, r = { ...l };
196
+ delete r.className, delete r.style, delete r.definition;
197
+ const t = {
198
+ ...ie[o]
199
+ }, c = [
200
+ "gloss-preset-value",
201
+ `gloss-preset-value--${o}`
202
+ ].join(" ");
203
+ return /* @__PURE__ */ g(
204
+ U,
205
+ {
206
+ as: r.as,
207
+ definition: t,
208
+ className: c,
209
+ ...r,
210
+ children: n
211
+ }
212
+ );
213
+ };
214
+ ne.displayName = "PresetValue";
215
+ const le = {
216
+ primary: {
217
+ bg: a.BrandPrimary,
218
+ color: a.TextInverse,
219
+ borderColor: "transparent",
220
+ elevation: u.ButtonDefault
221
+ },
222
+ secondary: {
223
+ bg: a.BgSurface,
224
+ color: a.TextPrimary,
225
+ borderColor: a.BorderDefault,
226
+ elevation: u.ButtonDefault
227
+ },
228
+ ghost: {
229
+ bg: "transparent",
230
+ color: a.TextPrimary,
231
+ borderColor: "transparent"
232
+ },
233
+ outline: {
234
+ bg: "transparent",
235
+ color: a.BrandPrimary,
236
+ borderColor: a.BrandPrimary
237
+ },
238
+ destructive: {
239
+ bg: a.Red600,
240
+ color: a.TextInverse,
241
+ borderColor: "transparent",
242
+ elevation: u.ButtonDefault
243
+ }
244
+ }, de = {
245
+ xs: { padding: s.Xs, paddingX: s.Sm, fontSize: "0.75rem", fontWeight: "500", minHeight: "24px", gap: s.Xs },
246
+ sm: { padding: s.Xs, paddingX: s.Sm, fontSize: "0.8125rem", fontWeight: "500", minHeight: "30px", gap: s.Xs },
247
+ md: { padding: s.Sm, paddingX: s.Md, fontSize: "0.875rem", fontWeight: "500", minHeight: "36px", gap: s.Sm },
248
+ lg: { padding: s.Sm, paddingX: s.Lg, fontSize: "0.9375rem", fontWeight: "500", minHeight: "42px", gap: s.Sm },
249
+ xl: { padding: s.Md, paddingX: s.Xl, fontSize: "1rem", fontWeight: "500", minHeight: "48px", gap: s.Md }
250
+ }, ce = {
251
+ radius: p.Md
252
+ };
253
+ function ge(d) {
254
+ const {
255
+ variant: i = "primary",
256
+ size: o = "md",
257
+ isLoading: n = !1,
258
+ disabled: l = !1,
259
+ leftIcon: r,
260
+ rightIcon: t,
261
+ children: c,
262
+ ...m
263
+ } = d, f = { ...m };
264
+ delete f.className, delete f.style, delete f.definition;
265
+ const P = {
266
+ ...ce,
267
+ ...le[i],
268
+ ...de[o]
269
+ }, N = [
270
+ "gloss-preset-async-button",
271
+ `gloss-preset-async-button--${i}`,
272
+ `gloss-preset-async-button--${o}`
273
+ ].join(" ");
274
+ return /* @__PURE__ */ y(
275
+ q,
276
+ {
277
+ as: f.as,
278
+ definition: P,
279
+ loading: n,
280
+ disabled: l,
281
+ className: N,
282
+ ...f,
283
+ children: [
284
+ r && /* @__PURE__ */ g("span", { className: "gloss-preset-async-button__icon gloss-preset-async-button__icon--left", children: r }),
285
+ c && /* @__PURE__ */ g("span", { className: "gloss-preset-async-button__label", children: c }),
286
+ t && /* @__PURE__ */ g("span", { className: "gloss-preset-async-button__icon gloss-preset-async-button__icon--right", children: t })
287
+ ]
288
+ }
289
+ );
290
+ }
291
+ ge.displayName = "PresetAsyncButton";
292
+ const me = {
293
+ info: {
294
+ bg: a.Blue50,
295
+ borderColor: a.Blue600,
296
+ color: a.TextPrimary,
297
+ iconColor: a.Blue600,
298
+ padding: s.Md,
299
+ radius: p.Md
300
+ },
301
+ success: {
302
+ bg: a.Green50,
303
+ borderColor: a.Green600,
304
+ color: a.TextPrimary,
305
+ iconColor: a.Green600,
306
+ padding: s.Md,
307
+ radius: p.Md
308
+ },
309
+ warning: {
310
+ bg: a.Amber100,
311
+ borderColor: a.Amber600,
312
+ color: a.TextPrimary,
313
+ iconColor: a.Amber600,
314
+ padding: s.Md,
315
+ radius: p.Md
316
+ },
317
+ error: {
318
+ bg: a.Red50,
319
+ borderColor: a.Red600,
320
+ color: a.TextPrimary,
321
+ iconColor: a.Red600,
322
+ padding: s.Md,
323
+ radius: p.Md
324
+ }
325
+ };
326
+ function pe(d) {
327
+ const {
328
+ variant: i = "info",
329
+ dismissible: o = !1,
330
+ onDismiss: n,
331
+ children: l,
332
+ ...r
333
+ } = d, t = { ...r };
334
+ delete t.className, delete t.style, delete t.definition;
335
+ const c = me[i], m = [
336
+ "gloss-preset-alert",
337
+ `gloss-preset-alert--${i}`
338
+ ].join(" ");
339
+ return /* @__PURE__ */ y(
340
+ J,
341
+ {
342
+ definition: c,
343
+ className: m,
344
+ ...t,
345
+ children: [
346
+ /* @__PURE__ */ g("div", { className: "gloss-preset-alert__content", children: l }),
347
+ o && /* @__PURE__ */ g(
348
+ "button",
349
+ {
350
+ type: "button",
351
+ className: "gloss-preset-alert__dismiss",
352
+ "aria-label": "Dismiss",
353
+ onClick: n,
354
+ children: "✕"
355
+ }
356
+ )
357
+ ]
358
+ }
359
+ );
360
+ }
361
+ pe.displayName = "PresetAlert";
362
+ const ue = {
363
+ default: { color: a.BorderDefault, thickness: "1px" },
364
+ subtle: { color: a.Gray200, thickness: "1px" },
365
+ strong: { color: a.Gray400, thickness: "2px" }
366
+ }, be = {
367
+ none: "0",
368
+ sm: s.Sm,
369
+ md: s.Md,
370
+ lg: s.Lg
371
+ };
372
+ function fe({
373
+ variant: d = "default",
374
+ orientation: i = "horizontal",
375
+ spacing: o = "md"
376
+ }) {
377
+ const n = {
378
+ ...ue[d],
379
+ orientation: i,
380
+ spacing: be[o]
381
+ };
382
+ return /* @__PURE__ */ g(
383
+ V,
384
+ {
385
+ definition: n,
386
+ className: `gloss-preset-divider gloss-preset-divider--${d}`
387
+ }
388
+ );
389
+ }
390
+ fe.displayName = "PresetDivider";
391
+ const he = {
392
+ sm: { fontSize: "0.75rem", gap: s.Xs },
393
+ md: { fontSize: "0.875rem", gap: s.Sm },
394
+ lg: { fontSize: "1rem", gap: s.Sm }
395
+ }, Te = {
396
+ color: a.TextSecondary
397
+ };
398
+ function Se(d) {
399
+ const { separator: i = "/", size: o = "md", children: n } = d, l = {
400
+ ...Te,
401
+ ...he[o]
402
+ }, r = [
403
+ "gloss-preset-breadcrumbs",
404
+ `gloss-preset-breadcrumbs--${o}`
405
+ ].join(" ");
406
+ return /* @__PURE__ */ g(
407
+ Y,
408
+ {
409
+ definition: l,
410
+ separator: i,
411
+ className: r,
412
+ children: n
413
+ }
414
+ );
415
+ }
416
+ Se.displayName = "PresetBreadcrumbs";
417
+ const b = x;
418
+ b.Header = B;
419
+ b.Body = C;
420
+ b.Footer = F;
421
+ b.Media = D;
422
+ b.Title = A;
423
+ b.Subtitle = M;
424
+ b.Actions = v;
425
+ const h = I;
426
+ h.Item = z;
427
+ h.Trigger = W;
428
+ h.Content = R;
429
+ const ye = {
430
+ info: {
431
+ bg: a.Blue50,
432
+ shadow: u.Hover,
433
+ radius: p.Md,
434
+ padding: s.Md
435
+ },
436
+ success: {
437
+ bg: a.Green50,
438
+ shadow: u.Hover,
439
+ radius: p.Md,
440
+ padding: s.Md
441
+ },
442
+ warning: {
443
+ bg: a.Amber100,
444
+ shadow: u.Hover,
445
+ radius: p.Md,
446
+ padding: s.Md
447
+ },
448
+ error: {
449
+ bg: a.Red50,
450
+ shadow: u.Hover,
451
+ radius: p.Md,
452
+ padding: s.Md
453
+ }
454
+ };
455
+ function Pe({
456
+ open: d,
457
+ onDismiss: i,
458
+ variant: o = "info",
459
+ position: n = "top-right",
460
+ duration: l = 5e3,
461
+ children: r
462
+ }) {
463
+ const t = {
464
+ ...ye[o],
465
+ zIndex: j.Toast,
466
+ position: n,
467
+ duration: l
468
+ };
469
+ return /* @__PURE__ */ g(
470
+ K,
471
+ {
472
+ definition: t,
473
+ open: d,
474
+ onDismiss: i,
475
+ className: `gloss-preset-toast gloss-preset-toast--${o}`,
476
+ children: r
477
+ }
478
+ );
479
+ }
480
+ Pe.displayName = "PresetToast";
481
+ const T = _;
482
+ T.Header = L;
483
+ T.Body = k;
484
+ T.Actions = E;
485
+ const S = H;
486
+ S.Group = $;
487
+ S.Item = G;
488
+ S.Divider = O;
489
+ export {
490
+ h as Accordion,
491
+ De as Actionable,
492
+ Ae as AddressGroup,
493
+ Me as AddressSelect,
494
+ pe as Alert,
495
+ ge as AsyncButton,
496
+ ve as AsyncLoader,
497
+ ze as Autocomplete,
498
+ We as Avatar,
499
+ Re as Badge,
500
+ _e as BarChartCard,
501
+ He as BarsBg,
502
+ Se as Breadcrumbs,
503
+ Le as Button,
504
+ ke as ButtonGroup,
505
+ b as Card,
506
+ Ee as CardBack,
507
+ $e as CardShell,
508
+ Ge as ChartControlBar,
509
+ Oe as Checkbox,
510
+ Xe as CheckboxGroup,
511
+ Ve as Chip,
512
+ je as ColorPicker,
513
+ we as ComparisonCard,
514
+ Ze as ContactForm,
515
+ Ue as CreditCardForm,
516
+ qe as DataTable,
517
+ Je as DatePicker,
518
+ Ye as DateRangePicker,
519
+ Ke as DestructiveModal,
520
+ T as Dialog,
521
+ Qe as DirectionCard,
522
+ ea as Dismissible,
523
+ aa as DistributionCard,
524
+ fe as Divider,
525
+ ta as DonutChart,
526
+ sa as Dropdown,
527
+ oa as EntityPicker,
528
+ ra as EntitySearchPanel,
529
+ ia as Expandable,
530
+ na as FileUpload,
531
+ la as FilterChip,
532
+ da as Form,
533
+ ca as FormDialog,
534
+ ga as FormField,
535
+ ma as GutterActions,
536
+ pa as HighlightCard,
537
+ ua as HybridDatePicker,
538
+ ba as ImportWizard,
539
+ fa as Input,
540
+ ha as InputGroup,
541
+ re as Label,
542
+ Ta as Link,
543
+ Sa as LoginForm,
544
+ ya as MaskPresets,
545
+ Pa as MaskedInput,
546
+ S as Menu,
547
+ Na as MergePrompt,
548
+ xa as MetricCard,
549
+ Ia as MetricCardGrid,
550
+ Ba as MultiSelect,
551
+ Ca as NumberInput,
552
+ Fa as ObjectArrow,
553
+ Da as OrderFilterBar,
554
+ Aa as Panel,
555
+ Ma as PasswordInput,
556
+ va as PaymentForm,
557
+ za as PaymentMethodSelect,
558
+ Wa as PhoneInput,
559
+ Ra as PinToMetric,
560
+ _a as Popover,
561
+ Ha as ProfileCard,
562
+ La as ProgressBar,
563
+ ka as ProgressCard,
564
+ Ea as Radio,
565
+ $a as RadioGroup,
566
+ Ga as RangeSlider,
567
+ Oa as Rating,
568
+ Xa as RegistrationForm,
569
+ Va as SearchInput,
570
+ ja as SegmentCard,
571
+ wa as SegmentedControl,
572
+ Za as Select,
573
+ Ua as Selectable,
574
+ qa as SimpleMetricCard,
575
+ Ja as Skeleton,
576
+ Ya as SkeletonCard,
577
+ Ka as SkeletonChart,
578
+ Qa as SkeletonTable,
579
+ et as Slider,
580
+ at as Sortable,
581
+ tt as SparklineBg,
582
+ st as SplitButton,
583
+ ot as StackedGroupCard,
584
+ rt as Stepper,
585
+ it as TabGroup,
586
+ nt as TabbedDataView,
587
+ lt as TagInput,
588
+ ae as Text,
589
+ dt as Textarea,
590
+ ct as TimeFrame,
591
+ gt as TimePicker,
592
+ se as Title,
593
+ Pe as Toast,
594
+ mt as Toggle,
595
+ pt as Tooltip,
596
+ ut as Transition,
597
+ bt as TrendCard,
598
+ ft as TrendIndicator,
599
+ ht as UnifiedBreakdownTable,
600
+ Tt as UnifiedContextMenu,
601
+ ne as Value,
602
+ St as addressSchema,
603
+ yt as contactSchema,
604
+ Pt as creditCardSchema,
605
+ Dt as formatDateRangeInterpretation,
606
+ Nt as loginSchema,
607
+ xt as paymentSchema,
608
+ It as registrationSchema,
609
+ At as resolveEvent,
610
+ Mt as resolvePreset,
611
+ vt as smartDateFormat,
612
+ Bt as useFormContext,
613
+ Ct as useSlideOutReveal
614
+ };