@mt-gloss/ui 0.0.8 → 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 +37 -3
  271. package/index.css +0 -1
@@ -1,140 +1,22 @@
1
- import { default as React } from 'react';
2
- export type CardVariant = 'elevated' | 'outlined' | 'filled';
1
+ /**
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
4
+ */
5
+ export { PresetCard as Card } from '../presets/PresetCard/PresetCard';
6
+ export { PresetCardMedia as CardMedia } from '../presets/PresetCard/PresetCard';
7
+ export { PresetCardHeader as CardHeader } from '../presets/PresetCard/PresetCard';
8
+ export { PresetCardTitle as CardTitle } from '../presets/PresetCard/PresetCard';
9
+ export { PresetCardSubtitle as CardSubtitle } from '../presets/PresetCard/PresetCard';
10
+ export { PresetCardBody as CardBody } from '../presets/PresetCard/PresetCard';
11
+ export { PresetCardActions as CardActions } from '../presets/PresetCard/PresetCard';
12
+ export { PresetCardFooter as CardFooter } from '../presets/PresetCard/PresetCard';
13
+ export type { PresetCardProps as CardProps, PresetCardVariant as CardVariant } from '../presets/PresetCard/PresetCard';
14
+ export type { PresetCardMediaProps as CardMediaProps } from '../presets/PresetCard/PresetCard';
15
+ export type { PresetCardHeaderProps as CardHeaderProps } from '../presets/PresetCard/PresetCard';
16
+ export type { PresetCardTitleProps as CardTitleProps } from '../presets/PresetCard/PresetCard';
17
+ export type { PresetCardSubtitleProps as CardSubtitleProps } from '../presets/PresetCard/PresetCard';
18
+ export type { PresetCardBodyProps as CardBodyProps } from '../presets/PresetCard/PresetCard';
19
+ export type { PresetCardActionsProps as CardActionsProps } from '../presets/PresetCard/PresetCard';
20
+ export type { PresetCardFooterProps as CardFooterProps } from '../presets/PresetCard/PresetCard';
3
21
  export type CardSize = 'sm' | 'md' | 'lg';
4
22
  export type CardPadding = 'none' | 'sm' | 'md' | 'lg';
5
- export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
6
- /**
7
- * Visual style variant
8
- * - elevated: Default style with shadow (default)
9
- * - outlined: Border-focused, no shadow
10
- * - filled: Subtle background fill
11
- */
12
- variant?: CardVariant;
13
- /**
14
- * Size of the card (affects padding)
15
- */
16
- size?: CardSize;
17
- /**
18
- * Whether the card should have interactive hover effects
19
- */
20
- interactive?: boolean;
21
- /**
22
- * Whether the card is in a selected state
23
- */
24
- selected?: boolean;
25
- /**
26
- * Content of the card
27
- */
28
- children?: React.ReactNode;
29
- /**
30
- * Additional CSS class names
31
- */
32
- className?: string;
33
- }
34
- /**
35
- * Card component - flexible container for grouping related content
36
- *
37
- * DOM Structure: `<div class="gloss-card">`
38
- *
39
- * @example
40
- * ```tsx
41
- * <Card variant="elevated" interactive>
42
- * <CardHeader>
43
- * <CardTitle>Title</CardTitle>
44
- * </CardHeader>
45
- * <CardBody>Content here</CardBody>
46
- * <CardFooter>Actions</CardFooter>
47
- * </Card>
48
- * ```
49
- */
50
- export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
51
- export interface CardMediaProps extends React.HTMLAttributes<HTMLDivElement> {
52
- /**
53
- * Image source URL
54
- */
55
- src?: string;
56
- /**
57
- * Alt text for the image
58
- */
59
- alt?: string;
60
- /**
61
- * Height of the media container
62
- */
63
- height?: number | string;
64
- children?: React.ReactNode;
65
- className?: string;
66
- }
67
- /**
68
- * CardMedia - media/image section of a card
69
- *
70
- * DOM Structure: `<div class="gloss-card__media">`
71
- */
72
- export declare const CardMedia: React.ForwardRefExoticComponent<CardMediaProps & React.RefAttributes<HTMLDivElement>>;
73
- export interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
74
- children?: React.ReactNode;
75
- className?: string;
76
- }
77
- /**
78
- * CardHeader - header section of a card
79
- *
80
- * DOM Structure: `<div class="gloss-card__header">`
81
- */
82
- export declare const CardHeader: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
83
- export interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
84
- /**
85
- * HTML heading level (h1-h6)
86
- */
87
- as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
88
- children?: React.ReactNode;
89
- className?: string;
90
- }
91
- /**
92
- * CardTitle - title element for card headers
93
- *
94
- * DOM Structure: `<h3 class="gloss-card__title">`
95
- */
96
- export declare const CardTitle: React.ForwardRefExoticComponent<CardTitleProps & React.RefAttributes<HTMLHeadingElement>>;
97
- export interface CardSubtitleProps extends React.HTMLAttributes<HTMLParagraphElement> {
98
- children?: React.ReactNode;
99
- className?: string;
100
- }
101
- /**
102
- * CardSubtitle - subtitle element for card headers
103
- *
104
- * DOM Structure: `<p class="gloss-card__subtitle">`
105
- */
106
- export declare const CardSubtitle: React.ForwardRefExoticComponent<CardSubtitleProps & React.RefAttributes<HTMLParagraphElement>>;
107
- export interface CardBodyProps extends React.HTMLAttributes<HTMLDivElement> {
108
- children?: React.ReactNode;
109
- className?: string;
110
- }
111
- /**
112
- * CardBody - main content section of a card
113
- *
114
- * DOM Structure: `<div class="gloss-card__body">`
115
- */
116
- export declare const CardBody: React.ForwardRefExoticComponent<CardBodyProps & React.RefAttributes<HTMLDivElement>>;
117
- export interface CardActionsProps extends React.HTMLAttributes<HTMLDivElement> {
118
- /**
119
- * Alignment of actions
120
- */
121
- align?: 'start' | 'center' | 'end' | 'between';
122
- children?: React.ReactNode;
123
- className?: string;
124
- }
125
- /**
126
- * CardActions - inline action area (different from Footer, no background)
127
- *
128
- * DOM Structure: `<div class="gloss-card__actions">`
129
- */
130
- export declare const CardActions: React.ForwardRefExoticComponent<CardActionsProps & React.RefAttributes<HTMLDivElement>>;
131
- export interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
132
- children?: React.ReactNode;
133
- className?: string;
134
- }
135
- /**
136
- * CardFooter - footer/action section of a card (with background)
137
- *
138
- * DOM Structure: `<div class="gloss-card__footer">`
139
- */
140
- export declare const CardFooter: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,70 +1,6 @@
1
- import { default as React } from 'react';
2
- export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
3
- /**
4
- * Whether the checkbox is checked (controlled)
5
- */
6
- checked?: boolean;
7
- /**
8
- * Default checked state (uncontrolled)
9
- */
10
- defaultChecked?: boolean;
11
- /**
12
- * Whether the checkbox is in an indeterminate state
13
- * (represents a partially-selected parent of a group)
14
- */
15
- indeterminate?: boolean;
16
- /**
17
- * Callback when checked state changes
18
- */
19
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
20
- /**
21
- * Callback with just the boolean value (convenience)
22
- */
23
- onCheckedChange?: (checked: boolean) => void;
24
- /**
25
- * Label text displayed next to the checkbox
26
- */
27
- label?: React.ReactNode;
28
- /**
29
- * Helper text displayed below the checkbox
30
- */
31
- helperText?: string;
32
- /**
33
- * Validation/status state
34
- * @default 'default'
35
- */
36
- status?: 'default' | 'success' | 'error';
37
- /**
38
- * Whether the field is required
39
- */
40
- required?: boolean;
41
- /**
42
- * Size of the checkbox
43
- * @default 'md'
44
- */
45
- size?: 'sm' | 'md' | 'lg';
46
- /**
47
- * Position of the label relative to the checkbox
48
- * @default 'right'
49
- */
50
- labelPosition?: 'left' | 'right';
51
- /**
52
- * Additional CSS class names
53
- */
54
- className?: string;
55
- }
56
1
  /**
57
- * Checkbox component for boolean input with label support
58
- *
59
- * Supports controlled/uncontrolled modes, indeterminate state, and form integration.
60
- * Uses convex physics - checkbox elevates slightly on hover.
61
- *
62
- * @example
63
- * ```tsx
64
- * <Checkbox label="Accept terms" />
65
- * <Checkbox label="Subscribe" defaultChecked />
66
- * <Checkbox label="Select all" indeterminate />
67
- * <Checkbox label="Agree" status="error" helperText="Required" />
68
- * ```
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
69
4
  */
70
- export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
5
+ export { PresetCheckbox as Checkbox } from '../presets/PresetCheckbox/PresetCheckbox';
6
+ export type { PresetCheckboxProps as CheckboxProps } from '../presets/PresetCheckbox/PresetCheckbox';
@@ -1,162 +1,6 @@
1
- import { default as React } from 'react';
2
- import { CheckboxProps } from './Checkbox';
3
1
  /**
4
- * Option definition for CheckboxGroup
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
5
4
  */
6
- export interface CheckboxGroupOption<T = string> {
7
- /**
8
- * Unique value for the option
9
- */
10
- value: T;
11
- /**
12
- * Display label for the checkbox
13
- */
14
- label: React.ReactNode;
15
- /**
16
- * Whether this option is disabled
17
- */
18
- disabled?: boolean;
19
- /**
20
- * Helper text for this specific option
21
- */
22
- helperText?: string;
23
- }
24
- export interface CheckboxGroupProps<T = string> {
25
- /**
26
- * Selected values (controlled)
27
- */
28
- value?: T[];
29
- /**
30
- * Default selected values (uncontrolled)
31
- */
32
- defaultValue?: T[];
33
- /**
34
- * Callback when selection changes
35
- */
36
- onChange?: (value: T[]) => void;
37
- /**
38
- * Array of options to render as checkboxes
39
- * If not provided, use Checkbox children
40
- */
41
- options?: CheckboxGroupOption<T>[];
42
- /**
43
- * Checkbox children (alternative to options)
44
- */
45
- children?: React.ReactNode;
46
- /**
47
- * Layout orientation
48
- * @default 'vertical'
49
- */
50
- orientation?: 'horizontal' | 'vertical';
51
- /**
52
- * Size applied to all checkboxes
53
- * @default 'md'
54
- */
55
- size?: 'sm' | 'md' | 'lg';
56
- /**
57
- * Group label displayed above the checkboxes
58
- */
59
- label?: string;
60
- /**
61
- * Helper text displayed below the group
62
- */
63
- helperText?: string;
64
- /**
65
- * Validation status
66
- * @default 'default'
67
- */
68
- status?: 'default' | 'success' | 'error';
69
- /**
70
- * Whether at least one option is required
71
- */
72
- required?: boolean;
73
- /**
74
- * Disable all checkboxes in the group
75
- */
76
- disabled?: boolean;
77
- /**
78
- * Name attribute for form submission
79
- */
80
- name?: string;
81
- /**
82
- * Additional CSS class names
83
- */
84
- className?: string;
85
- }
86
- /**
87
- * Context for sharing CheckboxGroup state with child checkboxes
88
- */
89
- export interface CheckboxGroupContextValue<T = string> {
90
- /**
91
- * Currently selected values
92
- */
93
- values: T[];
94
- /**
95
- * Toggle a value's selection state
96
- */
97
- toggle: (value: T) => void;
98
- /**
99
- * Check if a value is selected
100
- */
101
- isSelected: (value: T) => boolean;
102
- /**
103
- * Group-level props to apply to checkboxes
104
- */
105
- groupProps: {
106
- size?: 'sm' | 'md' | 'lg';
107
- status?: 'default' | 'success' | 'error';
108
- disabled?: boolean;
109
- name?: string;
110
- };
111
- /**
112
- * Whether checkbox is in a group
113
- */
114
- isInGroup: boolean;
115
- }
116
- /**
117
- * Hook to access CheckboxGroup context
118
- */
119
- export declare function useCheckboxGroupContext<T = string>(): CheckboxGroupContextValue<T> | null;
120
- /**
121
- * CheckboxGroup component for managing multiple checkbox selections
122
- *
123
- * Provides context to child checkboxes and manages selected values state.
124
- *
125
- * @example
126
- * ```tsx
127
- * // Using options prop
128
- * <CheckboxGroup
129
- * label="Select toppings"
130
- * options={[
131
- * { value: 'cheese', label: 'Extra Cheese' },
132
- * { value: 'pepperoni', label: 'Pepperoni' },
133
- * { value: 'mushrooms', label: 'Mushrooms' },
134
- * ]}
135
- * onChange={(values) => console.log(values)}
136
- * />
137
- *
138
- * // Using children
139
- * <CheckboxGroup label="Preferences" orientation="horizontal">
140
- * <Checkbox value="newsletter" label="Subscribe to newsletter" />
141
- * <Checkbox value="updates" label="Receive product updates" />
142
- * </CheckboxGroup>
143
- * ```
144
- */
145
- export declare function CheckboxGroup<T = string>({ value, defaultValue, onChange, options, children, orientation, size, label, helperText, status, required, disabled, name, className, }: CheckboxGroupProps<T>): import("react/jsx-runtime").JSX.Element;
146
- export declare namespace CheckboxGroup {
147
- var displayName: string;
148
- }
149
- /**
150
- * Wrapper to make a Checkbox work within CheckboxGroup context
151
- * This is used when rendering Checkbox children in a group
152
- */
153
- export interface GroupCheckboxProps extends Omit<CheckboxProps, 'checked' | 'onChange'> {
154
- /**
155
- * Value for this checkbox within the group
156
- */
157
- value: string;
158
- }
159
- /**
160
- * Checkbox that automatically integrates with CheckboxGroup context
161
- */
162
- export declare const GroupCheckbox: React.ForwardRefExoticComponent<GroupCheckboxProps & React.RefAttributes<HTMLInputElement>>;
5
+ export { CheckboxGroup, useCheckboxGroupContext, GroupCheckbox } from '../wrappers/CheckboxGroup/CheckboxGroup';
6
+ export type { CheckboxGroupProps, CheckboxGroupOption, CheckboxGroupContextValue, GroupCheckboxProps } from '../wrappers/CheckboxGroup/CheckboxGroup';
@@ -1,68 +1,7 @@
1
- import { default as React } from 'react';
2
- export type ChipVariant = 'default' | 'filled' | 'outlined';
3
- export type ChipColor = 'default' | 'primary' | 'success' | 'warning' | 'error';
4
- export type ChipSize = 'sm' | 'md' | 'lg';
5
- export interface ChipProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'onClick'> {
6
- /**
7
- * Visual style variant
8
- */
9
- variant?: ChipVariant;
10
- /**
11
- * Color theme
12
- */
13
- color?: ChipColor;
14
- /**
15
- * Size of the chip
16
- */
17
- size?: ChipSize;
18
- /**
19
- * Whether the chip can be deleted (shows X button)
20
- */
21
- deletable?: boolean;
22
- /**
23
- * Callback when delete button is clicked
24
- */
25
- onDelete?: () => void;
26
- /**
27
- * Whether the chip is clickable/selectable
28
- */
29
- clickable?: boolean;
30
- /**
31
- * Click handler for clickable chips
32
- */
33
- onClick?: () => void;
34
- /**
35
- * Whether the chip is in selected state
36
- */
37
- selected?: boolean;
38
- /**
39
- * Whether the chip is disabled
40
- */
41
- disabled?: boolean;
42
- /**
43
- * Icon to display before the label
44
- */
45
- icon?: React.ReactNode;
46
- /**
47
- * Content of the chip
48
- */
49
- children?: React.ReactNode;
50
- /**
51
- * Additional CSS class names
52
- */
53
- className?: string;
54
- }
55
1
  /**
56
- * Chip component - interactive tag/pill for filtering, selection, and input
57
- *
58
- * DOM Structure: `<span class="gloss-chip">`
59
- *
60
- * @example
61
- * ```tsx
62
- * <Chip>Default</Chip>
63
- * <Chip color="primary" clickable onClick={() => {}}>Clickable</Chip>
64
- * <Chip deletable onDelete={() => {}}>Removable</Chip>
65
- * <Chip icon={<Icon name="tag" />}>With Icon</Chip>
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 Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLSpanElement>>;
5
+ export { PresetChip as Chip } from '../presets/PresetChip/PresetChip';
6
+ export type { PresetChipProps as ChipProps, PresetChipVariant as ChipVariant, PresetChipColor as ChipColor } from '../presets/PresetChip/PresetChip';
7
+ export type ChipSize = 'sm' | 'md' | 'lg';
@@ -1,82 +1,6 @@
1
- import { default as React } from 'react';
2
- export type ColorFormat = 'hex' | 'rgb' | 'hsl';
3
- export interface ColorPickerProps {
4
- /**
5
- * Current color value (controlled)
6
- * Accepts hex, rgb(), or hsl() format
7
- */
8
- value?: string;
9
- /**
10
- * Default color value
11
- * @default '#3b82f6'
12
- */
13
- defaultValue?: string;
14
- /**
15
- * Callback when color changes
16
- */
17
- onChange?: (color: string) => void;
18
- /**
19
- * Output format
20
- * @default 'hex'
21
- */
22
- format?: ColorFormat;
23
- /**
24
- * Whether to show alpha channel
25
- * @default false
26
- */
27
- showAlpha?: boolean;
28
- /**
29
- * Preset color swatches
30
- */
31
- presets?: string[];
32
- /**
33
- * Display variant
34
- * @default 'compact'
35
- */
36
- variant?: 'compact' | 'full' | 'inline';
37
- /**
38
- * Label text
39
- */
40
- label?: string;
41
- /**
42
- * Helper text
43
- */
44
- helperText?: string;
45
- /**
46
- * Validation status
47
- * @default 'default'
48
- */
49
- status?: 'default' | 'success' | 'error';
50
- /**
51
- * Whether the picker is disabled
52
- */
53
- disabled?: boolean;
54
- /**
55
- * Additional CSS class names
56
- */
57
- className?: string;
58
- /**
59
- * ID for the input
60
- */
61
- id?: string;
62
- /**
63
- * Name for form submission
64
- */
65
- name?: string;
66
- }
67
1
  /**
68
- * ColorPicker - Color selection with various modes
69
- *
70
- * Features hue/saturation picker, presets, and multiple formats.
71
- *
72
- * @example
73
- * ```tsx
74
- * <ColorPicker
75
- * value={color}
76
- * onChange={setColor}
77
- * format="hex"
78
- * presets={['#ff0000', '#00ff00', '#0000ff']}
79
- * />
80
- * ```
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
81
4
  */
82
- export declare const ColorPicker: React.ForwardRefExoticComponent<ColorPickerProps & React.RefAttributes<HTMLInputElement>>;
5
+ export { PresetColorPicker as ColorPicker } from '../presets/PresetColorPicker/PresetColorPicker';
6
+ export type { PresetColorPickerProps as ColorPickerProps, ColorFormat } from '../presets/PresetColorPicker/PresetColorPicker';
@@ -1,102 +1,6 @@
1
- import { default as React } from 'react';
2
- export interface DatePickerProps {
3
- /**
4
- * Current selected date (controlled)
5
- */
6
- value?: Date | null;
7
- /**
8
- * Default selected date (uncontrolled)
9
- */
10
- defaultValue?: Date | null;
11
- /**
12
- * Callback when date changes
13
- */
14
- onChange?: (date: Date | null) => void;
15
- /**
16
- * Minimum selectable date
17
- */
18
- minDate?: Date;
19
- /**
20
- * Maximum selectable date
21
- */
22
- maxDate?: Date;
23
- /**
24
- * Array of dates that cannot be selected
25
- */
26
- disabledDates?: Date[];
27
- /**
28
- * Function to determine if a date is disabled
29
- */
30
- isDateDisabled?: (date: Date) => boolean;
31
- /**
32
- * Date format for display
33
- * @default 'MM/DD/YYYY'
34
- */
35
- format?: string;
36
- /**
37
- * Placeholder text
38
- * @default 'Select date'
39
- */
40
- placeholder?: string;
41
- /**
42
- * First day of the week (0 = Sunday, 1 = Monday)
43
- * @default 0
44
- */
45
- weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
46
- /**
47
- * Label text
48
- */
49
- label?: string;
50
- /**
51
- * Helper text
52
- */
53
- helperText?: string;
54
- /**
55
- * Validation status
56
- * @default 'default'
57
- */
58
- status?: 'default' | 'success' | 'error';
59
- /**
60
- * Whether the input is disabled
61
- */
62
- disabled?: boolean;
63
- /**
64
- * Whether to show clear button
65
- * @default true
66
- */
67
- clearable?: boolean;
68
- /**
69
- * Icon displayed in the input
70
- * @default 'calendar'
71
- */
72
- leftIcon?: string;
73
- /**
74
- * Additional CSS class names
75
- */
76
- className?: string;
77
- /**
78
- * ID for the input
79
- */
80
- id?: string;
81
- /**
82
- * Name for form submission
83
- */
84
- name?: string;
85
- }
86
1
  /**
87
- * DatePicker - Date selection with calendar dropdown
88
- *
89
- * Features month/year navigation, keyboard support, disabled dates,
90
- * and customizable date formatting.
91
- *
92
- * @example
93
- * ```tsx
94
- * <DatePicker
95
- * value={date}
96
- * onChange={setDate}
97
- * minDate={new Date()}
98
- * label="Start date"
99
- * />
100
- * ```
2
+ * @deprecated Import directly from '@mt-gloss/ui' instead.
3
+ * This file will be removed in Phase 23.
101
4
  */
102
- export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
5
+ export { PresetDatePicker as DatePicker } from '../presets/PresetDatePicker/PresetDatePicker';
6
+ export type { PresetDatePickerProps as DatePickerProps } from '../presets/PresetDatePicker/PresetDatePicker';