@mt-gloss/ui 0.0.9 → 0.0.10

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 (271) hide show
  1. package/catalog.d.ts +7 -0
  2. package/catalog.js +614 -0
  3. package/index.d.ts +274 -2
  4. package/index.js +2217 -18330
  5. package/internals.d.ts +64 -0
  6. package/internals.js +279 -0
  7. package/lib/base/BaseAccordion/BaseAccordion.d.ts +51 -0
  8. package/lib/base/BaseAlert/BaseAlert.d.ts +28 -0
  9. package/lib/base/BaseAsyncButton/BaseAsyncButton.d.ts +22 -0
  10. package/lib/base/BaseAvatar/BaseAvatar.d.ts +28 -0
  11. package/lib/base/BaseBadge/BaseBadge.d.ts +31 -0
  12. package/lib/base/BaseBox/BaseBox.d.ts +35 -0
  13. package/lib/base/BaseBreadcrumbs/BaseBreadcrumbs.d.ts +26 -0
  14. package/lib/base/BaseButton/BaseButton.d.ts +38 -0
  15. package/lib/base/BaseCard/BaseCard.d.ts +109 -0
  16. package/lib/base/BaseCheckbox/BaseCheckbox.d.ts +23 -0
  17. package/lib/base/BaseChip/BaseChip.d.ts +38 -0
  18. package/lib/base/BaseColorPicker/BaseColorPicker.d.ts +77 -0
  19. package/lib/base/BaseDatePicker/BaseDatePicker.d.ts +76 -0
  20. package/lib/base/BaseDateRangePicker/BaseDateRangePicker.d.ts +47 -0
  21. package/lib/base/BaseDialog/BaseDialog.d.ts +54 -0
  22. package/lib/base/BaseDivider/BaseDivider.d.ts +24 -0
  23. package/lib/base/BaseFileUpload/BaseFileUpload.d.ts +57 -0
  24. package/lib/base/BaseIcon/BaseIcon.d.ts +23 -0
  25. package/lib/base/BaseInput/BaseInput.d.ts +34 -0
  26. package/lib/base/BaseLabel/BaseLabel.d.ts +21 -0
  27. package/lib/base/BaseLink/BaseLink.d.ts +29 -0
  28. package/lib/base/BaseMaskedInput/BaseMaskedInput.d.ts +31 -0
  29. package/lib/base/BaseMenu/BaseMenu.d.ts +70 -0
  30. package/lib/base/BaseNumberInput/BaseNumberInput.d.ts +31 -0
  31. package/lib/base/BaseOverlay/BaseOverlay.d.ts +39 -0
  32. package/lib/base/BaseOverlay/useOverlayDismiss.d.ts +15 -0
  33. package/lib/base/BaseOverlay/useOverlayPositioning.d.ts +13 -0
  34. package/lib/base/BasePopover/BasePopover.d.ts +40 -0
  35. package/lib/base/BaseProgressBar/BaseProgressBar.d.ts +27 -0
  36. package/lib/base/BaseRadio/BaseRadio.d.ts +20 -0
  37. package/lib/base/BaseRangeSlider/BaseRangeSlider.d.ts +31 -0
  38. package/lib/base/BaseRating/BaseRating.d.ts +25 -0
  39. package/lib/base/BaseSegmentedControl/BaseSegmentedControl.d.ts +26 -0
  40. package/lib/base/BaseSelect/BaseSelect.d.ts +83 -0
  41. package/lib/base/BaseSlider/BaseSlider.d.ts +29 -0
  42. package/lib/base/BaseStack/BaseStack.d.ts +26 -0
  43. package/lib/base/BaseTable/BaseTable.d.ts +97 -0
  44. package/lib/base/BaseText/BaseText.d.ts +19 -0
  45. package/lib/base/BaseTextarea/BaseTextarea.d.ts +37 -0
  46. package/lib/base/BaseTimePicker/BaseTimePicker.d.ts +55 -0
  47. package/lib/base/BaseTitle/BaseTitle.d.ts +22 -0
  48. package/lib/base/BaseToast/BaseToast.d.ts +35 -0
  49. package/lib/base/BaseToggle/BaseToggle.d.ts +22 -0
  50. package/lib/base/BaseTooltip/BaseTooltip.d.ts +27 -0
  51. package/lib/base/BaseTypography/BaseTypography.d.ts +30 -0
  52. package/lib/base/BaseValue/BaseValue.d.ts +20 -0
  53. package/lib/base/index.d.ts +65 -0
  54. package/lib/base/types.d.ts +9 -0
  55. package/lib/base/utils.d.ts +18 -0
  56. package/lib/composites/controls/ThresholdRamp/ThresholdRamp.d.ts +24 -0
  57. package/lib/composites/controls/ThresholdRamp/index.d.ts +2 -0
  58. package/lib/composites/controls/index.d.ts +1 -0
  59. package/lib/composites/dashboard/QuickConfigPanel/QuickConfigPanel.d.ts +14 -0
  60. package/lib/composites/dashboard/QuickConfigPanel/index.d.ts +2 -0
  61. package/lib/composites/dashboard/QuickConfigPanel/types.d.ts +38 -0
  62. package/lib/composites/data/DataTable.d.ts +61 -0
  63. package/lib/composites/data/PinToMetric/PinToMetric.d.ts +11 -0
  64. package/lib/composites/data/PinToMetric/index.d.ts +2 -0
  65. package/lib/composites/data/PinToMetric/types.d.ts +17 -0
  66. package/lib/composites/data/index.d.ts +4 -0
  67. package/lib/composites/index.d.ts +5 -0
  68. package/lib/composites/inputs/Autocomplete.d.ts +36 -0
  69. package/lib/composites/inputs/EntityPicker.d.ts +36 -0
  70. package/lib/composites/inputs/FilterChip.d.ts +29 -0
  71. package/lib/composites/inputs/MultiSelect.d.ts +38 -0
  72. package/lib/composites/inputs/index.d.ts +8 -0
  73. package/lib/composites/navigation/Stepper.d.ts +40 -0
  74. package/lib/composites/navigation/index.d.ts +2 -0
  75. package/lib/composites/overlay/Dropdown/Dropdown.d.ts +22 -0
  76. package/lib/composites/overlay/Dropdown/index.d.ts +2 -0
  77. package/lib/composites/overlay/FormDialog.d.ts +38 -0
  78. package/lib/composites/overlay/InlineNudge/InlineNudge.d.ts +26 -0
  79. package/lib/composites/overlay/InlineNudge/index.d.ts +12 -0
  80. package/lib/composites/overlay/MergePrompt/MergePrompt.d.ts +16 -0
  81. package/lib/composites/overlay/MergePrompt/index.d.ts +2 -0
  82. package/lib/composites/overlay/MergePrompt/types.d.ts +15 -0
  83. package/lib/composites/overlay/SplitButton/SplitButton.d.ts +27 -0
  84. package/lib/composites/overlay/SplitButton/index.d.ts +2 -0
  85. package/lib/composites/overlay/index.d.ts +6 -0
  86. package/lib/compositions/feedback/DestructiveModal.d.ts +1 -1
  87. package/lib/compositions/filters/OrderFilterBar.d.ts +35 -0
  88. package/lib/compositions/filters/index.d.ts +2 -0
  89. package/lib/compositions/forms/AddressGroup.d.ts +13 -1
  90. package/lib/compositions/forms/ContactForm.d.ts +31 -0
  91. package/lib/compositions/forms/CreditCardForm.d.ts +3 -1
  92. package/lib/compositions/forms/LoginForm.d.ts +3 -1
  93. package/lib/compositions/forms/PaymentForm.d.ts +50 -0
  94. package/lib/compositions/forms/RegistrationForm.d.ts +39 -0
  95. package/lib/compositions/forms/index.d.ts +3 -0
  96. package/lib/compositions/index.d.ts +3 -0
  97. package/lib/compositions/navigation/ImportWizard.d.ts +28 -0
  98. package/lib/compositions/navigation/index.d.ts +2 -0
  99. package/lib/compositions/panels/EntitySearchPanel.d.ts +41 -0
  100. package/lib/compositions/panels/ProfileCard.d.ts +34 -0
  101. package/lib/compositions/panels/index.d.ts +4 -0
  102. package/lib/containers/ContainerCard/ContainerCard.d.ts +13 -0
  103. package/lib/containers/ContainerDialog/ContainerDialog.d.ts +27 -0
  104. package/lib/containers/ContainerForm/ContainerForm.d.ts +45 -0
  105. package/lib/containers/ContainerFormField/ContainerFormField.d.ts +31 -0
  106. package/lib/containers/ContainerFormSection/ContainerFormSection.d.ts +13 -0
  107. package/lib/containers/ContainerPanel/ContainerPanel.d.ts +14 -0
  108. package/lib/containers/ContainerTable/ContainerTable.d.ts +12 -0
  109. package/lib/containers/ContainerToolbar/ContainerToolbar.d.ts +11 -0
  110. package/lib/containers/UIContext.d.ts +26 -0
  111. package/lib/containers/index.d.ts +18 -0
  112. package/lib/dictionary/border.d.ts +11 -0
  113. package/lib/dictionary/breakpoint.d.ts +12 -0
  114. package/lib/dictionary/color.d.ts +67 -0
  115. package/lib/dictionary/elevation.d.ts +16 -0
  116. package/lib/dictionary/index.d.ts +14 -0
  117. package/lib/dictionary/motion.d.ts +13 -0
  118. package/lib/dictionary/opacity.d.ts +11 -0
  119. package/lib/dictionary/radius.d.ts +14 -0
  120. package/lib/dictionary/spacing.d.ts +18 -0
  121. package/lib/dictionary/typography.d.ts +25 -0
  122. package/lib/dictionary/z-index.d.ts +13 -0
  123. package/lib/facade/composites.d.ts +56 -0
  124. package/lib/facade/compositions.d.ts +27 -0
  125. package/lib/facade/containers.d.ts +8 -0
  126. package/lib/facade/data-display.d.ts +41 -0
  127. package/lib/facade/display.d.ts +50 -0
  128. package/lib/facade/feedback.d.ts +6 -0
  129. package/lib/facade/index.d.ts +17 -0
  130. package/lib/facade/inputs.d.ts +43 -0
  131. package/lib/facade/layout.d.ts +8 -0
  132. package/lib/facade/overlay.d.ts +26 -0
  133. package/lib/facade/typography.d.ts +12 -0
  134. package/lib/facade/wrappers.d.ts +26 -0
  135. package/lib/presets/PresetAccordion/PresetAccordion.d.ts +21 -0
  136. package/lib/presets/PresetAlert/PresetAlert.d.ts +17 -0
  137. package/lib/presets/PresetAsyncButton/PresetAsyncButton.d.ts +22 -0
  138. package/lib/presets/PresetAsyncLoader/PresetAsyncLoader.d.ts +6 -0
  139. package/lib/presets/PresetAvatar/PresetAvatar.d.ts +18 -0
  140. package/lib/presets/PresetBadge/PresetBadge.d.ts +15 -0
  141. package/lib/presets/PresetBreadcrumbs/PresetBreadcrumbs.d.ts +15 -0
  142. package/lib/presets/PresetButton/PresetButton.d.ts +27 -0
  143. package/lib/presets/PresetButtonGroup/PresetButtonGroup.d.ts +6 -0
  144. package/lib/presets/PresetCard/PresetCard.d.ts +45 -0
  145. package/lib/presets/PresetCheckbox/PresetCheckbox.d.ts +23 -0
  146. package/lib/presets/PresetCheckboxGroup/PresetCheckboxGroup.d.ts +6 -0
  147. package/lib/presets/PresetChip/PresetChip.d.ts +22 -0
  148. package/lib/presets/PresetColorPicker/PresetColorPicker.d.ts +22 -0
  149. package/lib/presets/PresetDatePicker/PresetDatePicker.d.ts +29 -0
  150. package/lib/presets/PresetDateRangePicker/PresetDateRangePicker.d.ts +37 -0
  151. package/lib/presets/PresetDialog/PresetDialog.d.ts +46 -0
  152. package/lib/presets/PresetDivider/PresetDivider.d.ts +13 -0
  153. package/lib/presets/PresetDropdown/PresetDropdown.d.ts +6 -0
  154. package/lib/presets/PresetFileUpload/PresetFileUpload.d.ts +35 -0
  155. package/lib/presets/PresetForm/PresetForm.d.ts +6 -0
  156. package/lib/presets/PresetFormField/PresetFormField.d.ts +6 -0
  157. package/lib/presets/PresetInput/PresetInput.d.ts +24 -0
  158. package/lib/presets/PresetInputGroup/PresetInputGroup.d.ts +6 -0
  159. package/lib/presets/PresetLabel/PresetLabel.d.ts +18 -0
  160. package/lib/presets/PresetLink/PresetLink.d.ts +21 -0
  161. package/lib/presets/PresetMaskedInput/PresetMaskedInput.d.ts +41 -0
  162. package/lib/presets/PresetMenu/PresetMenu.d.ts +33 -0
  163. package/lib/presets/PresetNumberInput/PresetNumberInput.d.ts +26 -0
  164. package/lib/presets/PresetPopover/PresetPopover.d.ts +17 -0
  165. package/lib/presets/PresetProgressBar/PresetProgressBar.d.ts +19 -0
  166. package/lib/presets/PresetRadio/PresetRadio.d.ts +21 -0
  167. package/lib/presets/PresetRadioGroup/PresetRadioGroup.d.ts +6 -0
  168. package/lib/presets/PresetRangeSlider/PresetRangeSlider.d.ts +30 -0
  169. package/lib/presets/PresetRating/PresetRating.d.ts +19 -0
  170. package/lib/presets/PresetSegmentedControl/PresetSegmentedControl.d.ts +28 -0
  171. package/lib/presets/PresetSelect/PresetSelect.d.ts +63 -0
  172. package/lib/presets/PresetSlider/PresetSlider.d.ts +29 -0
  173. package/lib/presets/PresetSplitButton/PresetSplitButton.d.ts +6 -0
  174. package/lib/presets/PresetSwatchRow/PresetSwatchRow.d.ts +28 -0
  175. package/lib/presets/PresetSwatchRow/index.d.ts +2 -0
  176. package/lib/presets/PresetText/PresetText.d.ts +17 -0
  177. package/lib/presets/PresetTextarea/PresetTextarea.d.ts +25 -0
  178. package/lib/presets/PresetTimePicker/PresetTimePicker.d.ts +27 -0
  179. package/lib/presets/PresetTitle/PresetTitle.d.ts +19 -0
  180. package/lib/presets/PresetToast/PresetToast.d.ts +19 -0
  181. package/lib/presets/PresetToggle/PresetToggle.d.ts +21 -0
  182. package/lib/presets/PresetTooltip/PresetTooltip.d.ts +20 -0
  183. package/lib/presets/PresetTransition/PresetTransition.d.ts +6 -0
  184. package/lib/presets/PresetValue/PresetValue.d.ts +15 -0
  185. package/lib/presets/createPreset.d.ts +64 -0
  186. package/lib/presets/index.d.ts +86 -0
  187. package/lib/presets/types.d.ts +13 -0
  188. package/lib/primitives/Accordion.d.ts +12 -102
  189. package/lib/primitives/AsyncLoader.d.ts +4 -39
  190. package/lib/primitives/Badge.d.ts +5 -40
  191. package/lib/primitives/Button.d.ts +4 -71
  192. package/lib/primitives/ButtonGroup.d.ts +4 -70
  193. package/lib/primitives/Card.d.ts +20 -138
  194. package/lib/primitives/Checkbox.d.ts +4 -68
  195. package/lib/primitives/CheckboxGroup.d.ts +4 -160
  196. package/lib/primitives/Chip.d.ts +5 -66
  197. package/lib/primitives/ColorPicker.d.ts +4 -80
  198. package/lib/primitives/DatePicker.d.ts +4 -100
  199. package/lib/primitives/DateRangePicker.d.ts +4 -107
  200. package/lib/primitives/Dropdown.d.ts +4 -63
  201. package/lib/primitives/FileUpload.d.ts +4 -107
  202. package/lib/primitives/Form.d.ts +4 -117
  203. package/lib/primitives/FormField.d.ts +4 -67
  204. package/lib/primitives/Input.d.ts +4 -87
  205. package/lib/primitives/InputGroup.d.ts +4 -57
  206. package/lib/primitives/Link.d.ts +4 -67
  207. package/lib/primitives/MaskedInput.d.ts +4 -93
  208. package/lib/primitives/Menu.d.ts +12 -131
  209. package/lib/primitives/NumberInput.d.ts +4 -79
  210. package/lib/primitives/Radio.d.ts +4 -58
  211. package/lib/primitives/RadioGroup.d.ts +4 -161
  212. package/lib/primitives/RangeSlider.d.ts +4 -103
  213. package/lib/primitives/Rating.d.ts +4 -113
  214. package/lib/primitives/SegmentedControl.d.ts +4 -94
  215. package/lib/primitives/Select.d.ts +5 -203
  216. package/lib/primitives/Slider.d.ts +4 -109
  217. package/lib/primitives/SplitButton.d.ts +4 -82
  218. package/lib/primitives/Textarea.d.ts +4 -57
  219. package/lib/primitives/TimePicker.d.ts +4 -91
  220. package/lib/primitives/Toggle.d.ts +4 -66
  221. package/lib/primitives/Tooltip.d.ts +6 -86
  222. package/lib/primitives/Transition.d.ts +4 -105
  223. package/lib/primitives/dashboard/MetricCard/CardBack.d.ts +17 -2
  224. package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
  225. package/lib/primitives/dashboard/MetricCard/EdgeHoverHandle.d.ts +20 -0
  226. package/lib/primitives/dashboard/MetricCard/GhostPreview.d.ts +24 -0
  227. package/lib/primitives/dashboard/MetricCard/GutterActions.d.ts +12 -2
  228. package/lib/primitives/dashboard/MetricCard/MetricCard.d.ts +0 -28
  229. package/lib/primitives/dashboard/MetricCard/StatusModeCard.d.ts +5 -0
  230. package/lib/primitives/dashboard/MetricCard/StatusSlotChipMenu.d.ts +28 -0
  231. package/lib/primitives/dashboard/MetricCard/flipAndStage/FlipAndStageProvider.d.ts +29 -0
  232. package/lib/primitives/dashboard/MetricCard/flipAndStage/index.d.ts +15 -0
  233. package/lib/primitives/dashboard/MetricCard/flipAndStage/types.d.ts +83 -0
  234. package/lib/primitives/dashboard/MetricCard/flipAndStage/useFlipAndStage.d.ts +10 -0
  235. package/lib/primitives/dashboard/MetricCard/index.d.ts +10 -0
  236. package/lib/primitives/dashboard/MetricCard/types.d.ts +48 -4
  237. package/lib/primitives/dashboard/MetricCard/useEdgeHoverResize.d.ts +52 -0
  238. package/lib/primitives/dashboard/MetricCard/useSlotCapacity.d.ts +12 -0
  239. package/lib/primitives/dashboard/MetricCardGrid/MetricCardGrid.d.ts +21 -19
  240. package/lib/primitives/dashboard/MetricCardGrid/types.d.ts +8 -1
  241. package/lib/primitives/dashboard/MetricGroupContainer/MetricGroupContainer.d.ts +5 -0
  242. package/lib/primitives/dashboard/MetricGroupContainer/__tests__/fixtures.d.ts +13 -0
  243. package/lib/primitives/dashboard/MetricGroupContainer/index.d.ts +2 -0
  244. package/lib/primitives/dashboard/MetricGroupContainer/types.d.ts +34 -0
  245. package/lib/primitives/dashboard/PageChip/PageChip.d.ts +27 -0
  246. package/lib/primitives/dashboard/PageChip/PageDropdown.d.ts +29 -0
  247. package/lib/primitives/dashboard/PageChip/index.d.ts +3 -0
  248. package/lib/primitives/dashboard/PageChip/types.d.ts +36 -0
  249. package/lib/primitives/dashboard/TimeFrame/SimpleSelector.d.ts +9 -0
  250. package/lib/primitives/dashboard/TimeFrame/index.d.ts +2 -0
  251. package/lib/primitives/dashboard/TimeFrame/types.d.ts +8 -0
  252. package/lib/primitives/dashboard/UnifiedContextMenu/types.d.ts +2 -0
  253. package/lib/primitives/dashboard/index.d.ts +2 -0
  254. package/lib/wrappers/Actionable/Actionable.d.ts +17 -0
  255. package/lib/wrappers/AsyncLoader/AsyncLoader.d.ts +13 -0
  256. package/lib/wrappers/ButtonGroup/ButtonGroup.d.ts +23 -0
  257. package/lib/wrappers/CheckboxGroup/CheckboxGroup.d.ts +52 -0
  258. package/lib/wrappers/Dismissible/Dismissible.d.ts +24 -0
  259. package/lib/wrappers/Expandable/Expandable.d.ts +23 -0
  260. package/lib/wrappers/InputGroup/InputGroup.d.ts +20 -0
  261. package/lib/wrappers/RadioGroup/RadioGroup.d.ts +52 -0
  262. package/lib/wrappers/Selectable/Selectable.d.ts +19 -0
  263. package/lib/wrappers/Sortable/Sortable.d.ts +27 -0
  264. package/lib/wrappers/SortableZones/SortableZones.d.ts +32 -0
  265. package/lib/wrappers/SortableZones/index.d.ts +4 -0
  266. package/lib/wrappers/SortableZones/useSortableZones.d.ts +66 -0
  267. package/lib/wrappers/Transition/Transition.d.ts +49 -0
  268. package/lib/wrappers/index.d.ts +25 -0
  269. package/lib/wrappers/utils.d.ts +10 -0
  270. package/package.json +36 -2
  271. package/index.css +0 -1
@@ -1,109 +1,6 @@
1
- import { default as React } from 'react';
2
- export interface DateRange {
3
- start: Date | null;
4
- end: Date | null;
5
- }
6
- export interface DateRangePreset {
7
- label: string;
8
- range: DateRange;
9
- }
10
- export interface DateRangePickerProps {
11
- /**
12
- * Current date range (controlled)
13
- */
14
- value?: DateRange;
15
- /**
16
- * Default date range (uncontrolled)
17
- */
18
- defaultValue?: DateRange;
19
- /**
20
- * Callback when range changes
21
- */
22
- onChange?: (range: DateRange) => void;
23
- /**
24
- * Minimum selectable date
25
- */
26
- minDate?: Date;
27
- /**
28
- * Maximum selectable date
29
- */
30
- maxDate?: Date;
31
- /**
32
- * Maximum number of days in range
33
- */
34
- maxDays?: number;
35
- /**
36
- * Preset date ranges
37
- */
38
- presets?: DateRangePreset[];
39
- /**
40
- * Whether to show presets panel
41
- * @default false
42
- */
43
- showPresets?: boolean;
44
- /**
45
- * Date format for display
46
- * @default 'MM/DD/YYYY'
47
- */
48
- format?: string;
49
- /**
50
- * Placeholder text
51
- * @default 'Select dates'
52
- */
53
- placeholder?: string;
54
- /**
55
- * First day of the week
56
- * @default 0
57
- */
58
- weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
59
- /**
60
- * Label text
61
- */
62
- label?: string;
63
- /**
64
- * Helper text
65
- */
66
- helperText?: string;
67
- /**
68
- * Validation status
69
- * @default 'default'
70
- */
71
- status?: 'default' | 'success' | 'error';
72
- /**
73
- * Whether the input is disabled
74
- */
75
- disabled?: boolean;
76
- /**
77
- * Whether to show clear button
78
- * @default true
79
- */
80
- clearable?: boolean;
81
- /**
82
- * Additional CSS class names
83
- */
84
- className?: string;
85
- /**
86
- * ID for the input
87
- */
88
- id?: string;
89
- /**
90
- * Name for form submission
91
- */
92
- name?: string;
93
- }
94
1
  /**
95
- * DateRangePicker - Date range selection with dual calendar
96
- *
97
- * Features preset ranges, two-month view, and keyboard support.
98
- *
99
- * @example
100
- * ```tsx
101
- * <DateRangePicker
102
- * value={dateRange}
103
- * onChange={setDateRange}
104
- * showPresets
105
- * presets={customPresets}
106
- * />
107
- * ```
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
108
4
  */
109
- export declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLInputElement>>;
5
+ export { PresetDateRangePicker as DateRangePicker } from '../presets/PresetDateRangePicker/PresetDateRangePicker';
6
+ export type { PresetDateRangePickerProps as DateRangePickerProps, DateRange, DateRangePreset } from '../presets/PresetDateRangePicker/PresetDateRangePicker';
@@ -1,65 +1,6 @@
1
- import { default as React } from 'react';
2
- export interface DropdownItem {
3
- label: string;
4
- value: string;
5
- icon?: string;
6
- }
7
- export interface DropdownProps {
8
- /**
9
- * Trigger element (ReactNode) or text for the dropdown
10
- */
11
- trigger?: React.ReactNode;
12
- /**
13
- * Array of dropdown items
14
- */
15
- items: DropdownItem[];
16
- /**
17
- * Currently selected value
18
- */
19
- value?: string;
20
- /**
21
- * Callback when selection changes
22
- */
23
- onChange?: (value: string) => void;
24
- /**
25
- * Additional CSS class names
26
- */
27
- className?: string;
28
- }
29
1
  /**
30
- * Dropdown component with concave trigger and convex menu
31
- *
32
- * @deprecated Use `Select` component instead for rich content support.
33
- * The Select component supports arbitrary ReactNode content in options,
34
- * multi-line displays, icons, and custom render functions.
35
- *
36
- * DOM Structure:
37
- * - `.gloss-dropdown` wrapper
38
- * - `.gloss-dropdown__trigger` (with `--active` when open)
39
- * - `.gloss-dropdown__menu` (conditionally rendered)
40
- * - `.gloss-dropdown__item` (with `--selected` for active item)
41
- *
42
- * @example
43
- * ```tsx
44
- * // Deprecated usage:
45
- * <Dropdown
46
- * items={[
47
- * { label: 'Active', value: 'active' },
48
- * { label: 'Pending', value: 'pending' }
49
- * ]}
50
- * value="active"
51
- * onChange={(val) => console.log(val)}
52
- * />
53
- *
54
- * // Migrate to Select:
55
- * <Select
56
- * options={[
57
- * { label: 'Active', value: 'active' },
58
- * { label: 'Pending', value: 'pending' }
59
- * ]}
60
- * value="active"
61
- * onChange={(val) => console.log(val)}
62
- * />
63
- * ```
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
64
4
  */
65
- export declare const Dropdown: React.FC<DropdownProps>;
5
+ export { Dropdown } from '../composites/overlay/Dropdown/Dropdown';
6
+ export type { DropdownProps, DropdownItem } from '../composites/overlay/Dropdown/Dropdown';
@@ -1,109 +1,6 @@
1
- import { default as React } from 'react';
2
- export interface FileUploadFile {
3
- file: File;
4
- id: string;
5
- progress?: number;
6
- error?: string;
7
- preview?: string;
8
- }
9
- export interface FileUploadProps {
10
- /**
11
- * Current files (controlled)
12
- */
13
- value?: FileUploadFile[];
14
- /**
15
- * Callback when files change
16
- */
17
- onChange?: (files: FileUploadFile[]) => void;
18
- /**
19
- * Accepted file types (e.g., 'image/*', '.pdf')
20
- */
21
- accept?: string;
22
- /**
23
- * Maximum file size in bytes
24
- */
25
- maxSize?: number;
26
- /**
27
- * Maximum number of files
28
- */
29
- maxFiles?: number;
30
- /**
31
- * Allow multiple file selection
32
- * @default false
33
- */
34
- multiple?: boolean;
35
- /**
36
- * Display variant
37
- * @default 'dropzone'
38
- */
39
- variant?: 'dropzone' | 'button' | 'compact';
40
- /**
41
- * Show file previews (for images)
42
- * @default true
43
- */
44
- showPreview?: boolean;
45
- /**
46
- * Custom preview renderer
47
- */
48
- renderPreview?: (file: FileUploadFile) => React.ReactNode;
49
- /**
50
- * Text displayed in dropzone
51
- * @default 'Drag and drop files here, or click to browse'
52
- */
53
- dropzoneText?: string;
54
- /**
55
- * Button text for button variant
56
- * @default 'Upload file'
57
- */
58
- buttonText?: string;
59
- /**
60
- * Label text
61
- */
62
- label?: string;
63
- /**
64
- * Helper text
65
- */
66
- helperText?: string;
67
- /**
68
- * Validation status
69
- * @default 'default'
70
- */
71
- status?: 'default' | 'success' | 'error';
72
- /**
73
- * Whether the upload is disabled
74
- */
75
- disabled?: boolean;
76
- /**
77
- * Callback when validation error occurs
78
- */
79
- onError?: (error: string) => void;
80
- /**
81
- * Additional CSS class names
82
- */
83
- className?: string;
84
- /**
85
- * ID for the input
86
- */
87
- id?: string;
88
- /**
89
- * Name for form submission
90
- */
91
- name?: string;
92
- }
93
1
  /**
94
- * FileUpload - File upload with drag and drop support
95
- *
96
- * Features dropzone, file previews, progress indicators, and validation.
97
- *
98
- * @example
99
- * ```tsx
100
- * <FileUpload
101
- * accept="image/*"
102
- * maxSize={5 * 1024 * 1024}
103
- * maxFiles={3}
104
- * multiple
105
- * onChange={handleFiles}
106
- * />
107
- * ```
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
108
4
  */
109
- export declare const FileUpload: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<HTMLInputElement>>;
5
+ export { PresetFileUpload as FileUpload } from '../presets/PresetFileUpload/PresetFileUpload';
6
+ export type { PresetFileUploadProps as FileUploadProps, FileUploadFile } from '../presets/PresetFileUpload/PresetFileUpload';
@@ -1,119 +1,6 @@
1
- import { default as React } from 'react';
2
- export interface FormErrors {
3
- [key: string]: string | undefined;
4
- }
5
- export interface FormTouched {
6
- [key: string]: boolean;
7
- }
8
- export interface FormContextValue {
9
- /**
10
- * Form values
11
- */
12
- values: Record<string, unknown>;
13
- /**
14
- * Form errors
15
- */
16
- errors: FormErrors;
17
- /**
18
- * Touched fields
19
- */
20
- touched: FormTouched;
21
- /**
22
- * Whether form is submitting
23
- */
24
- isSubmitting: boolean;
25
- /**
26
- * Whether form is valid
27
- */
28
- isValid: boolean;
29
- /**
30
- * Set a field value
31
- */
32
- setFieldValue: (name: string, value: unknown) => void;
33
- /**
34
- * Set a field error
35
- */
36
- setFieldError: (name: string, error: string | undefined) => void;
37
- /**
38
- * Mark a field as touched
39
- */
40
- setFieldTouched: (name: string, touched?: boolean) => void;
41
- /**
42
- * Get field props for binding to input
43
- */
44
- getFieldProps: (name: string) => {
45
- value: unknown;
46
- onChange: (value: unknown) => void;
47
- onBlur: () => void;
48
- name: string;
49
- error: string | undefined;
50
- touched: boolean;
51
- };
52
- }
53
- export declare function useFormContext(): FormContextValue;
54
- export interface FormProps<T extends Record<string, unknown>> {
55
- /**
56
- * Initial form values
57
- */
58
- initialValues: T;
59
- /**
60
- * Validation function
61
- */
62
- validate?: (values: T) => FormErrors | Promise<FormErrors>;
63
- /**
64
- * Submit handler
65
- */
66
- onSubmit: (values: T) => void | Promise<void>;
67
- /**
68
- * Validate on change
69
- * @default true
70
- */
71
- validateOnChange?: boolean;
72
- /**
73
- * Validate on blur
74
- * @default true
75
- */
76
- validateOnBlur?: boolean;
77
- /**
78
- * Form children (can be render prop)
79
- */
80
- children: React.ReactNode | ((context: FormContextValue) => React.ReactNode);
81
- /**
82
- * Additional class name
83
- */
84
- className?: string;
85
- /**
86
- * Prevent default form submission
87
- * @default true
88
- */
89
- preventDefault?: boolean;
90
- }
91
1
  /**
92
- * Form component with validation and state management
93
- *
94
- * @example
95
- * ```tsx
96
- * <Form
97
- * initialValues={{ email: '', password: '' }}
98
- * validate={(values) => {
99
- * const errors: FormErrors = {};
100
- * if (!values.email) errors.email = 'Required';
101
- * if (!values.password) errors.password = 'Required';
102
- * return errors;
103
- * }}
104
- * onSubmit={(values) => console.log(values)}
105
- * >
106
- * <FormField name="email" label="Email">
107
- * <Input />
108
- * </FormField>
109
- * <FormField name="password" label="Password">
110
- * <Input type="password" />
111
- * </FormField>
112
- * <Button type="submit">Submit</Button>
113
- * </Form>
114
- * ```
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
115
4
  */
116
- export declare function Form<T extends Record<string, unknown>>({ initialValues, validate, onSubmit, validateOnChange, validateOnBlur, children, className, preventDefault, }: FormProps<T>): import("react/jsx-runtime").JSX.Element;
117
- export declare namespace Form {
118
- var displayName: string;
119
- }
5
+ export { ContainerForm as Form, useFormContext } from '../containers/ContainerForm/ContainerForm';
6
+ export type { ContainerFormProps as FormProps, FormContextValue, FormErrors, FormTouched } from '../containers/ContainerForm/ContainerForm';
@@ -1,69 +1,6 @@
1
- import { default as React } from 'react';
2
- interface FormControlProps {
3
- id?: string;
4
- name?: string;
5
- value?: unknown;
6
- onChange?: (value: unknown) => void;
7
- onBlur?: (event: React.FocusEvent) => void;
8
- status?: string;
9
- 'aria-describedby'?: string;
10
- 'aria-invalid'?: boolean;
11
- 'aria-required'?: boolean;
12
- }
13
- export interface FormFieldProps {
14
- /**
15
- * Field name (must match a key in form values)
16
- */
17
- name: string;
18
- /**
19
- * Field label
20
- */
21
- label?: React.ReactNode;
22
- /**
23
- * Helper text shown below the field
24
- */
25
- helperText?: React.ReactNode;
26
- /**
27
- * Whether the field is required
28
- * @default false
29
- */
30
- required?: boolean;
31
- /**
32
- * Child form control (Input, Select, Textarea, etc.)
33
- */
34
- children: React.ReactElement<FormControlProps>;
35
- /**
36
- * Additional class name
37
- */
38
- className?: string;
39
- /**
40
- * Label position
41
- * @default 'top'
42
- */
43
- labelPosition?: 'top' | 'left' | 'right';
44
- /**
45
- * Hide the label visually (still accessible)
46
- * @default false
47
- */
48
- hideLabel?: boolean;
49
- }
50
1
  /**
51
- * FormField component for wrapping form controls
52
- *
53
- * Automatically connects to Form context for:
54
- * - Value binding
55
- * - Error display
56
- * - Touched state
57
- * - Accessibility (labels, descriptions)
58
- *
59
- * @example
60
- * ```tsx
61
- * <Form initialValues={{ email: '' }} onSubmit={handleSubmit}>
62
- * <FormField name="email" label="Email" required helperText="We'll never share your email">
63
- * <Input type="email" placeholder="Enter your email" />
64
- * </FormField>
65
- * </Form>
66
- * ```
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
67
4
  */
68
- export declare const FormField: React.FC<FormFieldProps>;
69
- export {};
5
+ export { ContainerFormField as FormField } from '../containers/ContainerFormField/ContainerFormField';
6
+ export type { ContainerFormFieldProps as FormFieldProps } from '../containers/ContainerFormField/ContainerFormField';
@@ -1,89 +1,6 @@
1
- import { default as React } from 'react';
2
- export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'onCopy'> {
3
- /**
4
- * Label text for the input
5
- */
6
- label?: string;
7
- /**
8
- * Validation/interaction status
9
- * @default 'default'
10
- */
11
- status?: 'default' | 'success' | 'error' | 'pending';
12
- /**
13
- * Helper text displayed below the input
14
- */
15
- helperText?: string;
16
- /**
17
- * Whether the field is required
18
- */
19
- required?: boolean;
20
- /**
21
- * Icon or element displayed on the left side of the input
22
- */
23
- leftIcon?: React.ReactNode;
24
- /**
25
- * Icon or element displayed on the right side of the input
26
- */
27
- rightIcon?: React.ReactNode;
28
- /**
29
- * Vertical alignment of icons relative to input
30
- * @default 'center'
31
- */
32
- iconAlign?: 'top' | 'center';
33
- /**
34
- * Shows clear button when input has value
35
- * @default false
36
- */
37
- clearable?: boolean;
38
- /**
39
- * Callback when clear button is clicked
40
- */
41
- onClear?: () => void;
42
- /**
43
- * Shows copy button to copy input value
44
- * @default false
45
- */
46
- copyable?: boolean;
47
- /**
48
- * Callback after successful copy
49
- */
50
- onCopy?: (value: string) => void;
51
- /**
52
- * Show character counter (requires maxLength to be set)
53
- * @default false
54
- */
55
- showCounter?: boolean;
56
- /**
57
- * Custom counter renderer
58
- */
59
- renderCounter?: (current: number, max: number) => React.ReactNode;
60
- /**
61
- * @deprecated Use leftIcon instead
62
- * Prefix text or element displayed before the input (e.g., "$" for currency)
63
- */
64
- prefix?: React.ReactNode;
65
- /**
66
- * @deprecated Use rightIcon instead
67
- * Suffix text or element displayed after the input
68
- */
69
- suffix?: React.ReactNode;
70
- /**
71
- * Additional CSS class names
72
- */
73
- className?: string;
74
- }
75
1
  /**
76
- * Input component with label, status indicators, and helper text
77
- *
78
- * DOM Structure:
79
- * - If label/helper present: wraps in `.gloss-input-anatomy`
80
- * - Input: `<input class="gloss-input gloss-input--{status}">`
81
- *
82
- * @example
83
- * ```tsx
84
- * <Input label="Email" placeholder="name@example.com" />
85
- * <Input label="Username" status="success" helperText="Available!" />
86
- * <Input label="Password" status="error" helperText="Too short" required />
87
- * ```
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
88
4
  */
89
- export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
5
+ export { PresetInput as Input } from '../presets/PresetInput/PresetInput';
6
+ export type { PresetInputProps as InputProps } from '../presets/PresetInput/PresetInput';
@@ -1,59 +1,6 @@
1
- import { default as React } from 'react';
2
- export interface InputGroupProps {
3
- /**
4
- * Child elements (Inputs, InputAddons, Buttons)
5
- */
6
- children: React.ReactNode;
7
- /**
8
- * Visual style for connected inputs (removes gaps, merges borders)
9
- * @default false
10
- */
11
- attached?: boolean;
12
- /**
13
- * Additional CSS class names
14
- */
15
- className?: string;
16
- }
17
- export interface InputAddonProps {
18
- /**
19
- * Addon content (text, icon, etc.)
20
- */
21
- children: React.ReactNode;
22
- /**
23
- * Position in group (affects border radius)
24
- * @default 'left'
25
- */
26
- position?: 'left' | 'right';
27
- /**
28
- * Additional CSS class names
29
- */
30
- className?: string;
31
- }
32
1
  /**
33
- * InputGroup component for grouping inputs with addons
34
- *
35
- * @example
36
- * ```tsx
37
- * <InputGroup attached>
38
- * <InputAddon position="left">https://</InputAddon>
39
- * <Input placeholder="example.com" />
40
- * </InputGroup>
41
- *
42
- * <InputGroup attached>
43
- * <InputAddon position="left">$</InputAddon>
44
- * <Input type="number" placeholder="0.00" />
45
- * <InputAddon position="right">.00</InputAddon>
46
- * </InputGroup>
47
- * ```
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
48
4
  */
49
- export declare const InputGroup: React.ForwardRefExoticComponent<InputGroupProps & React.RefAttributes<HTMLDivElement>>;
50
- /**
51
- * InputAddon component for prepending/appending content to inputs
52
- *
53
- * @example
54
- * ```tsx
55
- * <InputAddon position="left">@</InputAddon>
56
- * <InputAddon position="right">.com</InputAddon>
57
- * ```
58
- */
59
- export declare const InputAddon: React.ForwardRefExoticComponent<InputAddonProps & React.RefAttributes<HTMLSpanElement>>;
5
+ export { InputGroup, InputAddon } from '../wrappers/InputGroup/InputGroup';
6
+ export type { InputGroupProps, InputAddonProps } from '../wrappers/InputGroup/InputGroup';