@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.
- package/BaseAsyncButton-XBXVlXMl.js +223 -0
- package/Expandable-SuZVwO7Z.js +13366 -0
- package/UIContext-CEp38xw-.js +1673 -0
- package/catalog.d.ts +7 -0
- package/catalog.js +614 -0
- package/index.d.ts +274 -2
- package/index.js +2217 -18330
- package/internals.d.ts +64 -0
- package/internals.js +279 -0
- package/lib/base/BaseAccordion/BaseAccordion.d.ts +51 -0
- package/lib/base/BaseAlert/BaseAlert.d.ts +28 -0
- package/lib/base/BaseAsyncButton/BaseAsyncButton.d.ts +22 -0
- package/lib/base/BaseAvatar/BaseAvatar.d.ts +28 -0
- package/lib/base/BaseBadge/BaseBadge.d.ts +31 -0
- package/lib/base/BaseBox/BaseBox.d.ts +35 -0
- package/lib/base/BaseBreadcrumbs/BaseBreadcrumbs.d.ts +26 -0
- package/lib/base/BaseButton/BaseButton.d.ts +38 -0
- package/lib/base/BaseCard/BaseCard.d.ts +109 -0
- package/lib/base/BaseCheckbox/BaseCheckbox.d.ts +23 -0
- package/lib/base/BaseChip/BaseChip.d.ts +38 -0
- package/lib/base/BaseColorPicker/BaseColorPicker.d.ts +77 -0
- package/lib/base/BaseDatePicker/BaseDatePicker.d.ts +76 -0
- package/lib/base/BaseDateRangePicker/BaseDateRangePicker.d.ts +47 -0
- package/lib/base/BaseDialog/BaseDialog.d.ts +54 -0
- package/lib/base/BaseDivider/BaseDivider.d.ts +24 -0
- package/lib/base/BaseFileUpload/BaseFileUpload.d.ts +57 -0
- package/lib/base/BaseIcon/BaseIcon.d.ts +23 -0
- package/lib/base/BaseInput/BaseInput.d.ts +34 -0
- package/lib/base/BaseLabel/BaseLabel.d.ts +21 -0
- package/lib/base/BaseLink/BaseLink.d.ts +29 -0
- package/lib/base/BaseMaskedInput/BaseMaskedInput.d.ts +31 -0
- package/lib/base/BaseMenu/BaseMenu.d.ts +70 -0
- package/lib/base/BaseNumberInput/BaseNumberInput.d.ts +31 -0
- package/lib/base/BaseOverlay/BaseOverlay.d.ts +39 -0
- package/lib/base/BaseOverlay/useOverlayDismiss.d.ts +15 -0
- package/lib/base/BaseOverlay/useOverlayPositioning.d.ts +13 -0
- package/lib/base/BasePopover/BasePopover.d.ts +40 -0
- package/lib/base/BaseProgressBar/BaseProgressBar.d.ts +27 -0
- package/lib/base/BaseRadio/BaseRadio.d.ts +20 -0
- package/lib/base/BaseRangeSlider/BaseRangeSlider.d.ts +31 -0
- package/lib/base/BaseRating/BaseRating.d.ts +25 -0
- package/lib/base/BaseSegmentedControl/BaseSegmentedControl.d.ts +26 -0
- package/lib/base/BaseSelect/BaseSelect.d.ts +83 -0
- package/lib/base/BaseSlider/BaseSlider.d.ts +29 -0
- package/lib/base/BaseStack/BaseStack.d.ts +26 -0
- package/lib/base/BaseTable/BaseTable.d.ts +97 -0
- package/lib/base/BaseText/BaseText.d.ts +19 -0
- package/lib/base/BaseTextarea/BaseTextarea.d.ts +37 -0
- package/lib/base/BaseTimePicker/BaseTimePicker.d.ts +55 -0
- package/lib/base/BaseTitle/BaseTitle.d.ts +22 -0
- package/lib/base/BaseToast/BaseToast.d.ts +35 -0
- package/lib/base/BaseToggle/BaseToggle.d.ts +22 -0
- package/lib/base/BaseTooltip/BaseTooltip.d.ts +27 -0
- package/lib/base/BaseTypography/BaseTypography.d.ts +30 -0
- package/lib/base/BaseValue/BaseValue.d.ts +20 -0
- package/lib/base/index.d.ts +65 -0
- package/lib/base/types.d.ts +9 -0
- package/lib/base/utils.d.ts +18 -0
- package/lib/composites/controls/ThresholdRamp/ThresholdRamp.d.ts +24 -0
- package/lib/composites/controls/ThresholdRamp/index.d.ts +2 -0
- package/lib/composites/controls/index.d.ts +1 -0
- package/lib/composites/dashboard/QuickConfigPanel/QuickConfigPanel.d.ts +14 -0
- package/lib/composites/dashboard/QuickConfigPanel/index.d.ts +2 -0
- package/lib/composites/dashboard/QuickConfigPanel/types.d.ts +38 -0
- package/lib/composites/data/DataTable.d.ts +61 -0
- package/lib/composites/data/PinToMetric/PinToMetric.d.ts +11 -0
- package/lib/composites/data/PinToMetric/index.d.ts +2 -0
- package/lib/composites/data/PinToMetric/types.d.ts +17 -0
- package/lib/composites/data/index.d.ts +4 -0
- package/lib/composites/index.d.ts +5 -0
- package/lib/composites/inputs/Autocomplete.d.ts +36 -0
- package/lib/composites/inputs/EntityPicker.d.ts +36 -0
- package/lib/composites/inputs/FilterChip.d.ts +29 -0
- package/lib/composites/inputs/MultiSelect.d.ts +38 -0
- package/lib/composites/inputs/index.d.ts +8 -0
- package/lib/composites/navigation/Stepper.d.ts +40 -0
- package/lib/composites/navigation/index.d.ts +2 -0
- package/lib/composites/overlay/Dropdown/Dropdown.d.ts +22 -0
- package/lib/composites/overlay/Dropdown/index.d.ts +2 -0
- package/lib/composites/overlay/FormDialog.d.ts +38 -0
- package/lib/composites/overlay/InlineNudge/InlineNudge.d.ts +26 -0
- package/lib/composites/overlay/InlineNudge/index.d.ts +12 -0
- package/lib/composites/overlay/MergePrompt/MergePrompt.d.ts +16 -0
- package/lib/composites/overlay/MergePrompt/index.d.ts +2 -0
- package/lib/composites/overlay/MergePrompt/types.d.ts +15 -0
- package/lib/composites/overlay/SplitButton/SplitButton.d.ts +27 -0
- package/lib/composites/overlay/SplitButton/index.d.ts +2 -0
- package/lib/composites/overlay/index.d.ts +6 -0
- package/lib/compositions/feedback/DestructiveModal.d.ts +1 -1
- package/lib/compositions/filters/OrderFilterBar.d.ts +35 -0
- package/lib/compositions/filters/index.d.ts +2 -0
- package/lib/compositions/forms/AddressGroup.d.ts +13 -1
- package/lib/compositions/forms/ContactForm.d.ts +31 -0
- package/lib/compositions/forms/CreditCardForm.d.ts +3 -1
- package/lib/compositions/forms/LoginForm.d.ts +3 -1
- package/lib/compositions/forms/PaymentForm.d.ts +50 -0
- package/lib/compositions/forms/RegistrationForm.d.ts +39 -0
- package/lib/compositions/forms/index.d.ts +3 -0
- package/lib/compositions/index.d.ts +3 -0
- package/lib/compositions/navigation/ImportWizard.d.ts +28 -0
- package/lib/compositions/navigation/index.d.ts +2 -0
- package/lib/compositions/panels/EntitySearchPanel.d.ts +41 -0
- package/lib/compositions/panels/ProfileCard.d.ts +34 -0
- package/lib/compositions/panels/index.d.ts +4 -0
- package/lib/containers/ContainerCard/ContainerCard.d.ts +13 -0
- package/lib/containers/ContainerDialog/ContainerDialog.d.ts +27 -0
- package/lib/containers/ContainerForm/ContainerForm.d.ts +45 -0
- package/lib/containers/ContainerFormField/ContainerFormField.d.ts +31 -0
- package/lib/containers/ContainerFormSection/ContainerFormSection.d.ts +13 -0
- package/lib/containers/ContainerPanel/ContainerPanel.d.ts +14 -0
- package/lib/containers/ContainerTable/ContainerTable.d.ts +12 -0
- package/lib/containers/ContainerToolbar/ContainerToolbar.d.ts +11 -0
- package/lib/containers/UIContext.d.ts +26 -0
- package/lib/containers/index.d.ts +18 -0
- package/lib/dictionary/border.d.ts +11 -0
- package/lib/dictionary/breakpoint.d.ts +12 -0
- package/lib/dictionary/color.d.ts +67 -0
- package/lib/dictionary/elevation.d.ts +16 -0
- package/lib/dictionary/index.d.ts +14 -0
- package/lib/dictionary/motion.d.ts +13 -0
- package/lib/dictionary/opacity.d.ts +11 -0
- package/lib/dictionary/radius.d.ts +14 -0
- package/lib/dictionary/spacing.d.ts +18 -0
- package/lib/dictionary/typography.d.ts +25 -0
- package/lib/dictionary/z-index.d.ts +13 -0
- package/lib/facade/composites.d.ts +56 -0
- package/lib/facade/compositions.d.ts +27 -0
- package/lib/facade/containers.d.ts +8 -0
- package/lib/facade/data-display.d.ts +41 -0
- package/lib/facade/display.d.ts +50 -0
- package/lib/facade/feedback.d.ts +6 -0
- package/lib/facade/index.d.ts +17 -0
- package/lib/facade/inputs.d.ts +43 -0
- package/lib/facade/layout.d.ts +8 -0
- package/lib/facade/overlay.d.ts +26 -0
- package/lib/facade/typography.d.ts +12 -0
- package/lib/facade/wrappers.d.ts +26 -0
- package/lib/presets/PresetAccordion/PresetAccordion.d.ts +21 -0
- package/lib/presets/PresetAlert/PresetAlert.d.ts +17 -0
- package/lib/presets/PresetAsyncButton/PresetAsyncButton.d.ts +22 -0
- package/lib/presets/PresetAsyncLoader/PresetAsyncLoader.d.ts +6 -0
- package/lib/presets/PresetAvatar/PresetAvatar.d.ts +18 -0
- package/lib/presets/PresetBadge/PresetBadge.d.ts +15 -0
- package/lib/presets/PresetBreadcrumbs/PresetBreadcrumbs.d.ts +15 -0
- package/lib/presets/PresetButton/PresetButton.d.ts +27 -0
- package/lib/presets/PresetButtonGroup/PresetButtonGroup.d.ts +6 -0
- package/lib/presets/PresetCard/PresetCard.d.ts +45 -0
- package/lib/presets/PresetCheckbox/PresetCheckbox.d.ts +23 -0
- package/lib/presets/PresetCheckboxGroup/PresetCheckboxGroup.d.ts +6 -0
- package/lib/presets/PresetChip/PresetChip.d.ts +22 -0
- package/lib/presets/PresetColorPicker/PresetColorPicker.d.ts +22 -0
- package/lib/presets/PresetDatePicker/PresetDatePicker.d.ts +29 -0
- package/lib/presets/PresetDateRangePicker/PresetDateRangePicker.d.ts +37 -0
- package/lib/presets/PresetDialog/PresetDialog.d.ts +46 -0
- package/lib/presets/PresetDivider/PresetDivider.d.ts +13 -0
- package/lib/presets/PresetDropdown/PresetDropdown.d.ts +6 -0
- package/lib/presets/PresetFileUpload/PresetFileUpload.d.ts +35 -0
- package/lib/presets/PresetForm/PresetForm.d.ts +6 -0
- package/lib/presets/PresetFormField/PresetFormField.d.ts +6 -0
- package/lib/presets/PresetInput/PresetInput.d.ts +24 -0
- package/lib/presets/PresetInputGroup/PresetInputGroup.d.ts +6 -0
- package/lib/presets/PresetLabel/PresetLabel.d.ts +18 -0
- package/lib/presets/PresetLink/PresetLink.d.ts +21 -0
- package/lib/presets/PresetMaskedInput/PresetMaskedInput.d.ts +41 -0
- package/lib/presets/PresetMenu/PresetMenu.d.ts +33 -0
- package/lib/presets/PresetNumberInput/PresetNumberInput.d.ts +26 -0
- package/lib/presets/PresetPopover/PresetPopover.d.ts +17 -0
- package/lib/presets/PresetProgressBar/PresetProgressBar.d.ts +19 -0
- package/lib/presets/PresetRadio/PresetRadio.d.ts +21 -0
- package/lib/presets/PresetRadioGroup/PresetRadioGroup.d.ts +6 -0
- package/lib/presets/PresetRangeSlider/PresetRangeSlider.d.ts +30 -0
- package/lib/presets/PresetRating/PresetRating.d.ts +19 -0
- package/lib/presets/PresetSegmentedControl/PresetSegmentedControl.d.ts +28 -0
- package/lib/presets/PresetSelect/PresetSelect.d.ts +63 -0
- package/lib/presets/PresetSlider/PresetSlider.d.ts +29 -0
- package/lib/presets/PresetSplitButton/PresetSplitButton.d.ts +6 -0
- package/lib/presets/PresetSwatchRow/PresetSwatchRow.d.ts +28 -0
- package/lib/presets/PresetSwatchRow/index.d.ts +2 -0
- package/lib/presets/PresetText/PresetText.d.ts +17 -0
- package/lib/presets/PresetTextarea/PresetTextarea.d.ts +25 -0
- package/lib/presets/PresetTimePicker/PresetTimePicker.d.ts +27 -0
- package/lib/presets/PresetTitle/PresetTitle.d.ts +19 -0
- package/lib/presets/PresetToast/PresetToast.d.ts +19 -0
- package/lib/presets/PresetToggle/PresetToggle.d.ts +21 -0
- package/lib/presets/PresetTooltip/PresetTooltip.d.ts +20 -0
- package/lib/presets/PresetTransition/PresetTransition.d.ts +6 -0
- package/lib/presets/PresetValue/PresetValue.d.ts +15 -0
- package/lib/presets/createPreset.d.ts +64 -0
- package/lib/presets/index.d.ts +86 -0
- package/lib/presets/types.d.ts +13 -0
- package/lib/primitives/Accordion.d.ts +12 -102
- package/lib/primitives/AsyncLoader.d.ts +4 -39
- package/lib/primitives/Badge.d.ts +5 -40
- package/lib/primitives/Button.d.ts +4 -71
- package/lib/primitives/ButtonGroup.d.ts +4 -70
- package/lib/primitives/Card.d.ts +20 -138
- package/lib/primitives/Checkbox.d.ts +4 -68
- package/lib/primitives/CheckboxGroup.d.ts +4 -160
- package/lib/primitives/Chip.d.ts +5 -66
- package/lib/primitives/ColorPicker.d.ts +4 -80
- package/lib/primitives/DatePicker.d.ts +4 -100
- package/lib/primitives/DateRangePicker.d.ts +4 -107
- package/lib/primitives/Dropdown.d.ts +4 -63
- package/lib/primitives/FileUpload.d.ts +4 -107
- package/lib/primitives/Form.d.ts +4 -117
- package/lib/primitives/FormField.d.ts +4 -67
- package/lib/primitives/Input.d.ts +4 -87
- package/lib/primitives/InputGroup.d.ts +4 -57
- package/lib/primitives/Link.d.ts +4 -67
- package/lib/primitives/MaskedInput.d.ts +4 -93
- package/lib/primitives/Menu.d.ts +12 -131
- package/lib/primitives/NumberInput.d.ts +4 -79
- package/lib/primitives/Radio.d.ts +4 -58
- package/lib/primitives/RadioGroup.d.ts +4 -161
- package/lib/primitives/RangeSlider.d.ts +4 -103
- package/lib/primitives/Rating.d.ts +4 -113
- package/lib/primitives/SegmentedControl.d.ts +4 -94
- package/lib/primitives/Select.d.ts +5 -203
- package/lib/primitives/Slider.d.ts +4 -109
- package/lib/primitives/SplitButton.d.ts +4 -82
- package/lib/primitives/Textarea.d.ts +4 -57
- package/lib/primitives/TimePicker.d.ts +4 -91
- package/lib/primitives/Toggle.d.ts +4 -66
- package/lib/primitives/Tooltip.d.ts +6 -86
- package/lib/primitives/Transition.d.ts +4 -105
- package/lib/primitives/dashboard/MetricCard/CardBack.d.ts +17 -2
- package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/EdgeHoverHandle.d.ts +20 -0
- package/lib/primitives/dashboard/MetricCard/GhostPreview.d.ts +24 -0
- package/lib/primitives/dashboard/MetricCard/GutterActions.d.ts +12 -2
- package/lib/primitives/dashboard/MetricCard/MetricCard.d.ts +0 -28
- package/lib/primitives/dashboard/MetricCard/StatusModeCard.d.ts +5 -0
- package/lib/primitives/dashboard/MetricCard/StatusSlotChipMenu.d.ts +28 -0
- package/lib/primitives/dashboard/MetricCard/flipAndStage/FlipAndStageProvider.d.ts +29 -0
- package/lib/primitives/dashboard/MetricCard/flipAndStage/index.d.ts +15 -0
- package/lib/primitives/dashboard/MetricCard/flipAndStage/types.d.ts +83 -0
- package/lib/primitives/dashboard/MetricCard/flipAndStage/useFlipAndStage.d.ts +10 -0
- package/lib/primitives/dashboard/MetricCard/index.d.ts +10 -0
- package/lib/primitives/dashboard/MetricCard/types.d.ts +48 -4
- package/lib/primitives/dashboard/MetricCard/useEdgeHoverResize.d.ts +52 -0
- package/lib/primitives/dashboard/MetricCard/useSlotCapacity.d.ts +12 -0
- package/lib/primitives/dashboard/MetricCardGrid/MetricCardGrid.d.ts +21 -19
- package/lib/primitives/dashboard/MetricCardGrid/types.d.ts +8 -1
- package/lib/primitives/dashboard/MetricGroupContainer/MetricGroupContainer.d.ts +5 -0
- package/lib/primitives/dashboard/MetricGroupContainer/__tests__/fixtures.d.ts +13 -0
- package/lib/primitives/dashboard/MetricGroupContainer/index.d.ts +2 -0
- package/lib/primitives/dashboard/MetricGroupContainer/types.d.ts +34 -0
- package/lib/primitives/dashboard/PageChip/PageChip.d.ts +27 -0
- package/lib/primitives/dashboard/PageChip/PageDropdown.d.ts +29 -0
- package/lib/primitives/dashboard/PageChip/index.d.ts +3 -0
- package/lib/primitives/dashboard/PageChip/types.d.ts +36 -0
- package/lib/primitives/dashboard/TimeFrame/SimpleSelector.d.ts +9 -0
- package/lib/primitives/dashboard/TimeFrame/index.d.ts +2 -0
- package/lib/primitives/dashboard/TimeFrame/types.d.ts +8 -0
- package/lib/primitives/dashboard/UnifiedContextMenu/types.d.ts +2 -0
- package/lib/primitives/dashboard/index.d.ts +2 -0
- package/lib/wrappers/Actionable/Actionable.d.ts +17 -0
- package/lib/wrappers/AsyncLoader/AsyncLoader.d.ts +13 -0
- package/lib/wrappers/ButtonGroup/ButtonGroup.d.ts +23 -0
- package/lib/wrappers/CheckboxGroup/CheckboxGroup.d.ts +52 -0
- package/lib/wrappers/Dismissible/Dismissible.d.ts +24 -0
- package/lib/wrappers/Expandable/Expandable.d.ts +23 -0
- package/lib/wrappers/InputGroup/InputGroup.d.ts +20 -0
- package/lib/wrappers/RadioGroup/RadioGroup.d.ts +52 -0
- package/lib/wrappers/Selectable/Selectable.d.ts +19 -0
- package/lib/wrappers/Sortable/Sortable.d.ts +27 -0
- package/lib/wrappers/SortableZones/SortableZones.d.ts +32 -0
- package/lib/wrappers/SortableZones/index.d.ts +4 -0
- package/lib/wrappers/SortableZones/useSortableZones.d.ts +66 -0
- package/lib/wrappers/Transition/Transition.d.ts +49 -0
- package/lib/wrappers/index.d.ts +25 -0
- package/lib/wrappers/utils.d.ts +10 -0
- package/package.json +36 -5
- package/ui.css +1 -0
- package/index.css +0 -1
package/lib/primitives/Card.d.ts
CHANGED
|
@@ -1,140 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
2
|
+
* @deprecated Import directly from '@mt-gloss/ui' instead.
|
|
3
|
+
* This file will be removed in Phase 23.
|
|
5
4
|
*/
|
|
6
|
-
export
|
|
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';
|
package/lib/primitives/Chip.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
|
5
|
+
export { PresetDatePicker as DatePicker } from '../presets/PresetDatePicker/PresetDatePicker';
|
|
6
|
+
export type { PresetDatePickerProps as DatePickerProps } from '../presets/PresetDatePicker/PresetDatePicker';
|