@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.
- 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 -2
- package/index.css +0 -1
|
@@ -1,84 +1,6 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ButtonVariant } from './Button';
|
|
3
|
-
import { IconValue } from '../types/icon';
|
|
4
|
-
export interface SplitButtonMenuItem {
|
|
5
|
-
/**
|
|
6
|
-
* Menu item label
|
|
7
|
-
*/
|
|
8
|
-
label: React.ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Click handler
|
|
11
|
-
*/
|
|
12
|
-
onClick: () => void;
|
|
13
|
-
/**
|
|
14
|
-
* Optional icon
|
|
15
|
-
*/
|
|
16
|
-
icon?: IconValue;
|
|
17
|
-
/**
|
|
18
|
-
* Disabled state
|
|
19
|
-
*/
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Render a divider before this item
|
|
23
|
-
*/
|
|
24
|
-
divider?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface SplitButtonProps {
|
|
27
|
-
/**
|
|
28
|
-
* Main button content
|
|
29
|
-
*/
|
|
30
|
-
children: React.ReactNode;
|
|
31
|
-
/**
|
|
32
|
-
* Main button click handler
|
|
33
|
-
*/
|
|
34
|
-
onClick?: () => void;
|
|
35
|
-
/**
|
|
36
|
-
* Dropdown menu items
|
|
37
|
-
*/
|
|
38
|
-
menuItems: SplitButtonMenuItem[];
|
|
39
|
-
/**
|
|
40
|
-
* Button variant
|
|
41
|
-
* @default 'primary'
|
|
42
|
-
*/
|
|
43
|
-
variant?: ButtonVariant;
|
|
44
|
-
/**
|
|
45
|
-
* Button size
|
|
46
|
-
* @default 'md'
|
|
47
|
-
*/
|
|
48
|
-
size?: 'sm' | 'md' | 'lg';
|
|
49
|
-
/**
|
|
50
|
-
* Disabled state for both buttons
|
|
51
|
-
*/
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Icon for dropdown trigger button
|
|
55
|
-
* @default 'chevron-down'
|
|
56
|
-
*/
|
|
57
|
-
dropdownIcon?: IconValue;
|
|
58
|
-
/**
|
|
59
|
-
* Left icon for main button
|
|
60
|
-
*/
|
|
61
|
-
leftIcon?: IconValue;
|
|
62
|
-
/**
|
|
63
|
-
* Additional CSS class names
|
|
64
|
-
*/
|
|
65
|
-
className?: string;
|
|
66
|
-
}
|
|
67
1
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```tsx
|
|
72
|
-
* <SplitButton
|
|
73
|
-
* onClick={() => console.log('Save')}
|
|
74
|
-
* menuItems={[
|
|
75
|
-
* { label: 'Save as draft', onClick: () => {} },
|
|
76
|
-
* { label: 'Save and publish', onClick: () => {} },
|
|
77
|
-
* { divider: true, label: 'Delete', onClick: () => {}, icon: 'trash' },
|
|
78
|
-
* ]}
|
|
79
|
-
* >
|
|
80
|
-
* Save
|
|
81
|
-
* </SplitButton>
|
|
82
|
-
* ```
|
|
2
|
+
* @deprecated Import directly from '@mt-gloss/ui' instead.
|
|
3
|
+
* This file will be removed in Phase 23.
|
|
83
4
|
*/
|
|
84
|
-
export
|
|
5
|
+
export { SplitButton } from '../composites/overlay/SplitButton/SplitButton';
|
|
6
|
+
export type { SplitButtonProps, SplitButtonMenuItem } from '../composites/overlay/SplitButton/SplitButton';
|
|
@@ -1,59 +1,6 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'prefix'> {
|
|
3
|
-
/**
|
|
4
|
-
* Label text for the textarea
|
|
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 textarea
|
|
14
|
-
*/
|
|
15
|
-
helperText?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Whether the field is required
|
|
18
|
-
*/
|
|
19
|
-
required?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Enable auto-resize based on content
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
autoResize?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Minimum rows when auto-resizing
|
|
27
|
-
* @default 3
|
|
28
|
-
*/
|
|
29
|
-
minRows?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Maximum rows when auto-resizing
|
|
32
|
-
* @default 10
|
|
33
|
-
*/
|
|
34
|
-
maxRows?: number;
|
|
35
|
-
/**
|
|
36
|
-
* Show character counter (requires maxLength to be set)
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
|
-
showCounter?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Custom counter renderer
|
|
42
|
-
*/
|
|
43
|
-
renderCounter?: (current: number, max: number) => React.ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* Additional CSS class names
|
|
46
|
-
*/
|
|
47
|
-
className?: string;
|
|
48
|
-
}
|
|
49
1
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```tsx
|
|
54
|
-
* <Textarea label="Description" placeholder="Enter description..." />
|
|
55
|
-
* <Textarea autoResize minRows={2} maxRows={6} />
|
|
56
|
-
* <Textarea maxLength={500} showCounter />
|
|
57
|
-
* ```
|
|
2
|
+
* @deprecated Import directly from '@mt-gloss/ui' instead.
|
|
3
|
+
* This file will be removed in Phase 23.
|
|
58
4
|
*/
|
|
59
|
-
export
|
|
5
|
+
export { PresetTextarea as Textarea } from '../presets/PresetTextarea/PresetTextarea';
|
|
6
|
+
export type { PresetTextareaProps as TextareaProps } from '../presets/PresetTextarea/PresetTextarea';
|
|
@@ -1,93 +1,6 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface TimePickerProps {
|
|
3
|
-
/**
|
|
4
|
-
* Current time value (HH:mm or HH:mm:ss format)
|
|
5
|
-
*/
|
|
6
|
-
value?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Default time value
|
|
9
|
-
*/
|
|
10
|
-
defaultValue?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Callback when time changes
|
|
13
|
-
*/
|
|
14
|
-
onChange?: (time: string) => void;
|
|
15
|
-
/**
|
|
16
|
-
* Time format
|
|
17
|
-
* @default '12h'
|
|
18
|
-
*/
|
|
19
|
-
format?: '12h' | '24h';
|
|
20
|
-
/**
|
|
21
|
-
* Whether to show seconds
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
showSeconds?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Step in minutes for the dropdown options
|
|
27
|
-
* @default 30
|
|
28
|
-
*/
|
|
29
|
-
step?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Minimum selectable time (HH:mm format)
|
|
32
|
-
*/
|
|
33
|
-
minTime?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Maximum selectable time (HH:mm format)
|
|
36
|
-
*/
|
|
37
|
-
maxTime?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Placeholder text
|
|
40
|
-
* @default 'Select time'
|
|
41
|
-
*/
|
|
42
|
-
placeholder?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Label text
|
|
45
|
-
*/
|
|
46
|
-
label?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Helper text
|
|
49
|
-
*/
|
|
50
|
-
helperText?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Validation status
|
|
53
|
-
* @default 'default'
|
|
54
|
-
*/
|
|
55
|
-
status?: 'default' | 'success' | 'error';
|
|
56
|
-
/**
|
|
57
|
-
* Whether the input is disabled
|
|
58
|
-
*/
|
|
59
|
-
disabled?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Whether to show clear button
|
|
62
|
-
* @default true
|
|
63
|
-
*/
|
|
64
|
-
clearable?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Additional CSS class names
|
|
67
|
-
*/
|
|
68
|
-
className?: string;
|
|
69
|
-
/**
|
|
70
|
-
* ID for the input
|
|
71
|
-
*/
|
|
72
|
-
id?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Name for form submission
|
|
75
|
-
*/
|
|
76
|
-
name?: string;
|
|
77
|
-
}
|
|
78
1
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* Features 12/24 hour format, step intervals, and keyboard support.
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```tsx
|
|
85
|
-
* <TimePicker
|
|
86
|
-
* value={time}
|
|
87
|
-
* onChange={setTime}
|
|
88
|
-
* format="12h"
|
|
89
|
-
* step={15}
|
|
90
|
-
* />
|
|
91
|
-
* ```
|
|
2
|
+
* @deprecated Import directly from '@mt-gloss/ui' instead.
|
|
3
|
+
* This file will be removed in Phase 23.
|
|
92
4
|
*/
|
|
93
|
-
export
|
|
5
|
+
export { PresetTimePicker as TimePicker } from '../presets/PresetTimePicker/PresetTimePicker';
|
|
6
|
+
export type { PresetTimePickerProps as TimePickerProps } from '../presets/PresetTimePicker/PresetTimePicker';
|
|
@@ -1,68 +1,6 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface ToggleProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
|
|
3
|
-
/**
|
|
4
|
-
* Whether the toggle is on (controlled)
|
|
5
|
-
*/
|
|
6
|
-
checked?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Default on state (uncontrolled)
|
|
9
|
-
*/
|
|
10
|
-
defaultChecked?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Callback when toggle state changes
|
|
13
|
-
*/
|
|
14
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
-
/**
|
|
16
|
-
* Callback with just the boolean value (convenience)
|
|
17
|
-
*/
|
|
18
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Label text displayed next to the toggle
|
|
21
|
-
*/
|
|
22
|
-
label?: React.ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* Text displayed inside the track when on
|
|
25
|
-
*/
|
|
26
|
-
onLabel?: React.ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Text displayed inside the track when off
|
|
29
|
-
*/
|
|
30
|
-
offLabel?: React.ReactNode;
|
|
31
|
-
/**
|
|
32
|
-
* Helper text displayed below the toggle
|
|
33
|
-
*/
|
|
34
|
-
helperText?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Validation/status state
|
|
37
|
-
* @default 'default'
|
|
38
|
-
*/
|
|
39
|
-
status?: 'default' | 'success' | 'error';
|
|
40
|
-
/**
|
|
41
|
-
* Size of the toggle
|
|
42
|
-
* @default 'md'
|
|
43
|
-
*/
|
|
44
|
-
size?: 'sm' | 'md' | 'lg';
|
|
45
|
-
/**
|
|
46
|
-
* Position of the label relative to the toggle
|
|
47
|
-
* @default 'right'
|
|
48
|
-
*/
|
|
49
|
-
labelPosition?: 'left' | 'right';
|
|
50
|
-
/**
|
|
51
|
-
* Additional CSS class names
|
|
52
|
-
*/
|
|
53
|
-
className?: string;
|
|
54
|
-
}
|
|
55
1
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* Uses spring physics for the thumb movement and smooth color transitions.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```tsx
|
|
62
|
-
* <Toggle label="Enable notifications" />
|
|
63
|
-
* <Toggle label="Dark mode" defaultChecked />
|
|
64
|
-
* <Toggle label="Auto-save" onLabel="ON" offLabel="OFF" />
|
|
65
|
-
* <Toggle label="Feature flag" size="sm" disabled />
|
|
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 { PresetToggle as Toggle } from '../presets/PresetToggle/PresetToggle';
|
|
6
|
+
export type { PresetToggleProps as ToggleProps } from '../presets/PresetToggle/PresetToggle';
|
|
@@ -1,89 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import directly from '@mt-gloss/ui' instead.
|
|
3
|
+
* This file will be removed in Phase 23.
|
|
4
|
+
*/
|
|
5
|
+
export { PresetTooltip as Tooltip } from '../presets/PresetTooltip/PresetTooltip';
|
|
6
|
+
export type { PresetTooltipProps as TooltipProps } from '../presets/PresetTooltip/PresetTooltip';
|
|
2
7
|
export type TooltipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
3
8
|
export type TooltipVariant = 'dark' | 'light' | 'primary' | 'success' | 'warning' | 'error';
|
|
4
9
|
export type TooltipTrigger = 'hover' | 'click' | 'focus' | 'manual';
|
|
5
|
-
export interface TooltipProps {
|
|
6
|
-
/**
|
|
7
|
-
* Tooltip content
|
|
8
|
-
*/
|
|
9
|
-
content: React.ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* Element that triggers the tooltip
|
|
12
|
-
*/
|
|
13
|
-
children: React.ReactElement;
|
|
14
|
-
/**
|
|
15
|
-
* Tooltip placement
|
|
16
|
-
* @default 'top'
|
|
17
|
-
*/
|
|
18
|
-
placement?: TooltipPlacement;
|
|
19
|
-
/**
|
|
20
|
-
* Color variant
|
|
21
|
-
* @default 'dark'
|
|
22
|
-
*/
|
|
23
|
-
variant?: TooltipVariant;
|
|
24
|
-
/**
|
|
25
|
-
* What triggers the tooltip
|
|
26
|
-
* @default 'hover'
|
|
27
|
-
*/
|
|
28
|
-
trigger?: TooltipTrigger;
|
|
29
|
-
/**
|
|
30
|
-
* Delay before showing tooltip (ms)
|
|
31
|
-
* @default 200
|
|
32
|
-
*/
|
|
33
|
-
delay?: number;
|
|
34
|
-
/**
|
|
35
|
-
* Delay before hiding tooltip (ms)
|
|
36
|
-
* @default 0
|
|
37
|
-
*/
|
|
38
|
-
hideDelay?: number;
|
|
39
|
-
/**
|
|
40
|
-
* Disable the tooltip
|
|
41
|
-
*/
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Render tooltip in a portal (useful for overflow containers)
|
|
45
|
-
* @default true
|
|
46
|
-
*/
|
|
47
|
-
portal?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Additional CSS class for tooltip content
|
|
50
|
-
*/
|
|
51
|
-
className?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Max width of tooltip
|
|
54
|
-
* @default 250
|
|
55
|
-
*/
|
|
56
|
-
maxWidth?: number;
|
|
57
|
-
/**
|
|
58
|
-
* Controlled open state (for trigger='manual')
|
|
59
|
-
*/
|
|
60
|
-
open?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Callback when open state changes
|
|
63
|
-
*/
|
|
64
|
-
onOpenChange?: (open: boolean) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Show arrow pointer
|
|
67
|
-
* @default true
|
|
68
|
-
*/
|
|
69
|
-
arrow?: boolean;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Tooltip component for displaying contextual information
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```tsx
|
|
76
|
-
* <Tooltip content="Save your changes">
|
|
77
|
-
* <Button iconOnly leftIcon="save" aria-label="Save" />
|
|
78
|
-
* </Tooltip>
|
|
79
|
-
*
|
|
80
|
-
* <Tooltip content="This action cannot be undone" placement="bottom" variant="error">
|
|
81
|
-
* <Button variant="danger">Delete</Button>
|
|
82
|
-
* </Tooltip>
|
|
83
|
-
*
|
|
84
|
-
* <Tooltip content="Click to copy" trigger="click">
|
|
85
|
-
* <Button>Copy to clipboard</Button>
|
|
86
|
-
* </Tooltip>
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
export declare const Tooltip: React.FC<TooltipProps>;
|
|
@@ -1,107 +1,6 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { AnimationPresetName } from '../utils/animations';
|
|
3
|
-
interface AnimatedElementProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
'data-state'?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface TransitionProps {
|
|
9
|
-
/**
|
|
10
|
-
* Whether the component is visible
|
|
11
|
-
*/
|
|
12
|
-
show: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Animation preset name or custom config
|
|
15
|
-
*/
|
|
16
|
-
animation?: AnimationPresetName | {
|
|
17
|
-
enter: {
|
|
18
|
-
from: React.CSSProperties;
|
|
19
|
-
to: React.CSSProperties;
|
|
20
|
-
};
|
|
21
|
-
exit: {
|
|
22
|
-
from: React.CSSProperties;
|
|
23
|
-
to: React.CSSProperties;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Animation duration in ms
|
|
28
|
-
* @default 200
|
|
29
|
-
*/
|
|
30
|
-
duration?: number;
|
|
31
|
-
/**
|
|
32
|
-
* CSS easing function
|
|
33
|
-
* @default 'ease-out'
|
|
34
|
-
*/
|
|
35
|
-
easing?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Delay before animation starts
|
|
38
|
-
* @default 0
|
|
39
|
-
*/
|
|
40
|
-
delay?: number;
|
|
41
|
-
/**
|
|
42
|
-
* Whether to unmount when hidden
|
|
43
|
-
* @default true
|
|
44
|
-
*/
|
|
45
|
-
unmountOnExit?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Callback when enter animation starts
|
|
48
|
-
*/
|
|
49
|
-
onEnter?: () => void;
|
|
50
|
-
/**
|
|
51
|
-
* Callback when enter animation ends
|
|
52
|
-
*/
|
|
53
|
-
onEntered?: () => void;
|
|
54
|
-
/**
|
|
55
|
-
* Callback when exit animation starts
|
|
56
|
-
*/
|
|
57
|
-
onExit?: () => void;
|
|
58
|
-
/**
|
|
59
|
-
* Callback when exit animation ends
|
|
60
|
-
*/
|
|
61
|
-
onExited?: () => void;
|
|
62
|
-
/**
|
|
63
|
-
* Child element to animate
|
|
64
|
-
*/
|
|
65
|
-
children: React.ReactElement<AnimatedElementProps>;
|
|
66
|
-
/**
|
|
67
|
-
* Additional class name
|
|
68
|
-
*/
|
|
69
|
-
className?: string;
|
|
70
|
-
}
|
|
71
1
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```tsx
|
|
76
|
-
* <Transition show={isOpen} animation="fadeScale">
|
|
77
|
-
* <div className="dropdown">Content</div>
|
|
78
|
-
* </Transition>
|
|
79
|
-
*
|
|
80
|
-
* <Transition
|
|
81
|
-
* show={visible}
|
|
82
|
-
* animation={{
|
|
83
|
-
* enter: { from: { opacity: 0 }, to: { opacity: 1 } },
|
|
84
|
-
* exit: { from: { opacity: 1 }, to: { opacity: 0 } }
|
|
85
|
-
* }}
|
|
86
|
-
* duration={300}
|
|
87
|
-
* >
|
|
88
|
-
* <div>Custom animation</div>
|
|
89
|
-
* </Transition>
|
|
90
|
-
* ```
|
|
2
|
+
* @deprecated Import directly from '@mt-gloss/ui' instead.
|
|
3
|
+
* This file will be removed in Phase 23.
|
|
91
4
|
*/
|
|
92
|
-
export
|
|
93
|
-
|
|
94
|
-
* TransitionGroup component for managing lists with animations
|
|
95
|
-
*/
|
|
96
|
-
export interface TransitionGroupProps {
|
|
97
|
-
/**
|
|
98
|
-
* Child Transition components
|
|
99
|
-
*/
|
|
100
|
-
children: React.ReactNode;
|
|
101
|
-
/**
|
|
102
|
-
* Additional class name
|
|
103
|
-
*/
|
|
104
|
-
className?: string;
|
|
105
|
-
}
|
|
106
|
-
export declare const TransitionGroup: React.FC<TransitionGroupProps>;
|
|
107
|
-
export {};
|
|
5
|
+
export { Transition, TransitionGroup } from '../wrappers/Transition/Transition';
|
|
6
|
+
export type { TransitionProps, TransitionGroupProps } from '../wrappers/Transition/Transition';
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
+
/** A single dimension entry for dimension-chooser mode (D-11). */
|
|
2
|
+
export interface DimensionEntry {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
1
6
|
export interface CardBackProps {
|
|
2
7
|
currentTimeframe?: string;
|
|
3
8
|
onSelectTimeframe?: (presetId: string) => void;
|
|
4
9
|
title?: string;
|
|
5
|
-
mode?: 'single' | 'stacked';
|
|
10
|
+
mode?: 'single' | 'stacked' | 'dimension-chooser';
|
|
6
11
|
currentStackedTimeframes?: string[];
|
|
7
12
|
onSelectStackedTimeframes?: (timeframes: string[]) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Dimensions to display in 'dimension-chooser' mode.
|
|
15
|
+
* Clicking a dimension calls onBeginConfig with its id.
|
|
16
|
+
*/
|
|
17
|
+
dimensions?: DimensionEntry[];
|
|
18
|
+
/**
|
|
19
|
+
* Called when a dimension is selected in 'dimension-chooser' mode.
|
|
20
|
+
* Receives the selected dimension's id.
|
|
21
|
+
*/
|
|
22
|
+
onBeginConfig?: (dimensionId: string) => void;
|
|
8
23
|
}
|
|
9
24
|
/**
|
|
10
25
|
* CardBack - Back face of the 3D flipped card.
|
|
@@ -26,6 +41,6 @@ export interface CardBackProps {
|
|
|
26
41
|
* ```
|
|
27
42
|
*/
|
|
28
43
|
export declare const CardBack: {
|
|
29
|
-
({ currentTimeframe, onSelectTimeframe, title, mode, currentStackedTimeframes, onSelectStackedTimeframes, }: CardBackProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
({ currentTimeframe, onSelectTimeframe, title, mode, currentStackedTimeframes, onSelectStackedTimeframes, dimensions, onBeginConfig, }: CardBackProps): import("react/jsx-runtime").JSX.Element;
|
|
30
45
|
displayName: string;
|
|
31
46
|
};
|
|
@@ -17,6 +17,6 @@ import { CardShellProps } from './types';
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
export declare const CardShell: {
|
|
20
|
-
({ children, colSpan, isStale, isRetrying, beta, disabled, style, onGraph, onDetails, onCustomize, onRemove, onWhatsThis, onExpand, onShrink, onMove, onReplace, onNavigate, onRetry, onRefresh, enableQuickSettings, onUpdateTimeframe, instanceTimeframe, cardTitle, onViewAsStack, onUnstack, isStackedGroup, onUpdateStackedTimeframes, instanceStackedTimeframes, isGraphActive, isTableActive, isGraphCard, canExpand, cardRef: externalCardRef, }: CardShellProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
({ contentSlot, children, colSpan, isStale, isRetrying, beta, disabled, style, accentRing, onGraph, onDetails, onCustomize, onRemove, onWhatsThis, onExpand, onShrink, onMove, onReplace, onNavigate, onRetry, onRefresh, enableQuickSettings, onUpdateTimeframe, instanceTimeframe, cardTitle, onViewAsStack, onUnstack, isStackedGroup, onUpdateStackedTimeframes, instanceStackedTimeframes, isGraphActive, isTableActive, isGraphCard, canExpand, cardRef: externalCardRef, }: CardShellProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
displayName: string;
|
|
22
22
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ResizeState } from './useEdgeHoverResize';
|
|
2
|
+
export interface EdgeHoverHandleProps {
|
|
3
|
+
state: ResizeState;
|
|
4
|
+
onPointerDown: (e: React.PointerEvent) => void;
|
|
5
|
+
onPointerUp: (e: React.PointerEvent) => void;
|
|
6
|
+
/** Which card edge the handle is positioned on. Default: 'right' */
|
|
7
|
+
edge?: 'right' | 'left';
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* EdgeHoverHandle — Corner/edge handle affordance for the resize gesture.
|
|
12
|
+
*
|
|
13
|
+
* Visibility is derived from resize state: only visible when state is
|
|
14
|
+
* 'handle-visible' or 'dragging'. Invisible at 'idle' to avoid colliding
|
|
15
|
+
* with the chip-menu click target on the value/row area.
|
|
16
|
+
*
|
|
17
|
+
* Motion contract (AN-06): opacity transitions driven by edge-hover.scss
|
|
18
|
+
* using enterMs=180ms (enter) / exitMs=120ms (exit via ghost-preview).
|
|
19
|
+
*/
|
|
20
|
+
export declare const EdgeHoverHandle: import('react').ForwardRefExoticComponent<EdgeHoverHandleProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface GhostPreviewProps {
|
|
2
|
+
/** Whether the ghost overlay is currently visible (active during drag). */
|
|
3
|
+
visible: boolean;
|
|
4
|
+
/** The target column span being previewed. */
|
|
5
|
+
targetColSpan: 1 | 2 | 3;
|
|
6
|
+
/** AN-06 enter duration in ms. Default: 180ms */
|
|
7
|
+
enterMs?: number;
|
|
8
|
+
/** AN-06 exit duration in ms. Default: 120ms */
|
|
9
|
+
exitMs?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* GhostPreview — Dashed outline overlay rendered during an active resize drag.
|
|
13
|
+
*
|
|
14
|
+
* Provides visual feedback of the target card size before the user commits
|
|
15
|
+
* by releasing the pointer. Uses the same ghost-preview vocabulary as the
|
|
16
|
+
* existing chart-area resize affordance.
|
|
17
|
+
*
|
|
18
|
+
* Hidden via aria-hidden — purely decorative visual feedback.
|
|
19
|
+
* Motion contract (AN-06): enter 180ms, exit 120ms.
|
|
20
|
+
*/
|
|
21
|
+
export declare function GhostPreview({ visible, targetColSpan, enterMs, exitMs, }: GhostPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare namespace GhostPreview {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
@@ -21,13 +21,23 @@ export interface GutterActionsProps {
|
|
|
21
21
|
onUnstack?: () => void;
|
|
22
22
|
canExpand?: boolean;
|
|
23
23
|
isGraphCard?: boolean;
|
|
24
|
-
colSpan?: 1 | 2;
|
|
24
|
+
colSpan?: 1 | 2 | 3;
|
|
25
25
|
isGraphActive?: boolean;
|
|
26
26
|
isTableActive?: boolean;
|
|
27
27
|
/** Label for graph pill button (injected, no registry dependency). */
|
|
28
28
|
graphLabel?: string;
|
|
29
29
|
/** Label for details pill button (injected, no registry dependency). */
|
|
30
30
|
detailsLabel?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Pill variant:
|
|
33
|
+
* - 'default': standard pill with graph/details/more controls
|
|
34
|
+
* - 'config': replaces 'more' with Save (Check) + Cancel (Close) pills (D-10)
|
|
35
|
+
*/
|
|
36
|
+
variant?: 'default' | 'config';
|
|
37
|
+
/** Called when Save pill is clicked in config variant. */
|
|
38
|
+
onConfigSave?: () => void;
|
|
39
|
+
/** Called when Cancel pill is clicked in config variant. */
|
|
40
|
+
onConfigCancel?: () => void;
|
|
31
41
|
}
|
|
32
42
|
/**
|
|
33
43
|
* GutterActions - Pill + overflow menu interaction system.
|
|
@@ -51,6 +61,6 @@ export interface GutterActionsProps {
|
|
|
51
61
|
* ```
|
|
52
62
|
*/
|
|
53
63
|
export declare const GutterActions: {
|
|
54
|
-
({ visible, menuOpen, onMenuToggle, onGraph, onDetails, onCustomize, onRemove, onWhatsThis, onExpand, onShrink, onMove, onReplace, onNavigate, onRetry, onRefresh, onQuickSettings, onFlipBack, isFlipped, onViewAsStack, onUnstack, canExpand, isGraphCard, colSpan, isGraphActive, isTableActive, graphLabel, detailsLabel, }: GutterActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
({ visible, menuOpen, onMenuToggle, onGraph, onDetails, onCustomize, onRemove, onWhatsThis, onExpand, onShrink, onMove, onReplace, onNavigate, onRetry, onRefresh, onQuickSettings, onFlipBack, isFlipped, onViewAsStack, onUnstack, canExpand, isGraphCard, colSpan, isGraphActive, isTableActive, graphLabel, detailsLabel, variant, onConfigSave, onConfigCancel, }: GutterActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
55
65
|
displayName: string;
|
|
56
66
|
};
|
|
@@ -1,32 +1,4 @@
|
|
|
1
1
|
import { MetricCardProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* MetricCard -- Unified display component handling 9 variants via props.
|
|
4
|
-
*
|
|
5
|
-
* All variants share a Zone A/B/C layout:
|
|
6
|
-
* Zone A (Label): Fixed 28px height, 10.5px uppercase
|
|
7
|
-
* Zone B (Value): flex:1, dynamic font size based on formatted string length
|
|
8
|
-
* Zone C (Subtitle + Trend): flex row, min-height 18px
|
|
9
|
-
*
|
|
10
|
-
* Renders as a fragment -- CardShell provides the outer container with padding,
|
|
11
|
-
* flex column, and hover states.
|
|
12
|
-
*
|
|
13
|
-
* Props use a discriminated union keyed on `variant`. Each variant carries its
|
|
14
|
-
* own required extra fields (e.g. sparklineData for sparkline, segments for segmented).
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* import { MetricCard } from '@mt-gloss/ui';
|
|
19
|
-
*
|
|
20
|
-
* <MetricCard
|
|
21
|
-
* variant="standard"
|
|
22
|
-
* label="Total Revenue"
|
|
23
|
-
* value={125430}
|
|
24
|
-
* valueFormat={{ prefix: '$', abbreviated: true }}
|
|
25
|
-
* trend={{ value: 12.5, direction: 'up' }}
|
|
26
|
-
* subtitle="MTD"
|
|
27
|
-
* />
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
2
|
export declare const MetricCard: {
|
|
31
3
|
(props: MetricCardProps): import("react/jsx-runtime").JSX.Element;
|
|
32
4
|
displayName: string;
|