@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
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorValue } from '../../dictionary/color';
|
|
3
|
+
import { SpacingValue } from '../../dictionary/spacing';
|
|
4
|
+
import { RadiusValue } from '../../dictionary/radius';
|
|
5
|
+
export interface BaseTimePickerDefinition {
|
|
6
|
+
bg?: ColorValue | string;
|
|
7
|
+
borderColor?: ColorValue | string;
|
|
8
|
+
radius?: RadiusValue | string;
|
|
9
|
+
elevation?: string;
|
|
10
|
+
padding?: SpacingValue | string;
|
|
11
|
+
cellHeight?: string;
|
|
12
|
+
}
|
|
13
|
+
interface BaseTimePickerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
14
|
+
definition?: BaseTimePickerDefinition;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* Structural time picker with scrollable column layout.
|
|
22
|
+
* No time generation or selection logic -- Preset layer handles that.
|
|
23
|
+
*/
|
|
24
|
+
export declare function BaseTimePicker({ definition, className, style, children, ...rest }: BaseTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare namespace BaseTimePicker {
|
|
26
|
+
var displayName: string;
|
|
27
|
+
}
|
|
28
|
+
interface BaseTimePickerColumnProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
29
|
+
className?: string;
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* Scrollable column for hour/minute/period selection.
|
|
36
|
+
*/
|
|
37
|
+
export declare function BaseTimePickerColumn({ className, style, children, ...rest }: BaseTimePickerColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare namespace BaseTimePickerColumn {
|
|
39
|
+
var displayName: string;
|
|
40
|
+
}
|
|
41
|
+
interface BaseTimePickerCellProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'style'> {
|
|
42
|
+
className?: string;
|
|
43
|
+
style?: React.CSSProperties;
|
|
44
|
+
selected?: boolean;
|
|
45
|
+
children?: React.ReactNode;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* Individual time option cell.
|
|
50
|
+
*/
|
|
51
|
+
export declare function BaseTimePickerCell({ className, style, selected, disabled, children, ...rest }: BaseTimePickerCellProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare namespace BaseTimePickerCell {
|
|
53
|
+
var displayName: string;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseTypographyDefinition } from '../BaseTypography/BaseTypography';
|
|
3
|
+
import { PolymorphicProps } from '../types';
|
|
4
|
+
export type BaseTitleDefinition = BaseTypographyDefinition;
|
|
5
|
+
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
|
+
interface BaseTitleProps {
|
|
7
|
+
definition?: BaseTitleDefinition;
|
|
8
|
+
level?: HeadingLevel;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
* Semantic heading wrapper around BaseTypography. Defaults to <h2>.
|
|
16
|
+
* Use `level` prop to select h1-h6.
|
|
17
|
+
*/
|
|
18
|
+
export declare const BaseTitle: {
|
|
19
|
+
<C extends React.ElementType = "h2">(props: PolymorphicProps<C, BaseTitleProps>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorValue } from '../../dictionary/color';
|
|
3
|
+
import { ElevationValue } from '../../dictionary/elevation';
|
|
4
|
+
import { RadiusValue } from '../../dictionary/radius';
|
|
5
|
+
import { SpacingValue } from '../../dictionary/spacing';
|
|
6
|
+
import { ZIndexValue } from '../../dictionary/z-index';
|
|
7
|
+
export type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
|
|
8
|
+
export interface BaseToastDefinition {
|
|
9
|
+
bg?: ColorValue | string;
|
|
10
|
+
shadow?: ElevationValue | string;
|
|
11
|
+
radius?: RadiusValue | string;
|
|
12
|
+
padding?: SpacingValue | string;
|
|
13
|
+
zIndex?: ZIndexValue | string;
|
|
14
|
+
position?: ToastPosition;
|
|
15
|
+
/** Auto-dismiss duration in ms. 0 = no auto-dismiss. */
|
|
16
|
+
duration?: number;
|
|
17
|
+
}
|
|
18
|
+
interface BaseToastProps {
|
|
19
|
+
definition?: BaseToastDefinition;
|
|
20
|
+
open: boolean;
|
|
21
|
+
onDismiss?: () => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* Positioned notification with auto-dismiss timer.
|
|
29
|
+
* Composes BaseOverlay for portal rendering. Position is CSS-driven (fixed).
|
|
30
|
+
*/
|
|
31
|
+
export declare function BaseToast({ definition, open, onDismiss, className, style, children, }: BaseToastProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare namespace BaseToast {
|
|
33
|
+
var displayName: string;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorValue } from '../../dictionary/color';
|
|
3
|
+
export interface BaseToggleDefinition {
|
|
4
|
+
trackBg?: ColorValue | string;
|
|
5
|
+
trackBgActive?: ColorValue | string;
|
|
6
|
+
thumbBg?: ColorValue | string;
|
|
7
|
+
trackWidth?: string;
|
|
8
|
+
trackHeight?: string;
|
|
9
|
+
thumbSize?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface BaseToggleProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size' | 'className' | 'style'> {
|
|
12
|
+
definition?: BaseToggleDefinition;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
* Structural toggle/switch chassis with hidden input + track + thumb.
|
|
20
|
+
* No colors, no animations -- those belong in the Preset layer.
|
|
21
|
+
*/
|
|
22
|
+
export declare const BaseToggle: React.ForwardRefExoticComponent<BaseToggleProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorValue } from '../../dictionary/color';
|
|
3
|
+
import { RadiusValue } from '../../dictionary/radius';
|
|
4
|
+
import { SpacingValue } from '../../dictionary/spacing';
|
|
5
|
+
export interface BaseTooltipDefinition {
|
|
6
|
+
bg?: ColorValue | string;
|
|
7
|
+
color?: ColorValue | string;
|
|
8
|
+
radius?: RadiusValue | string;
|
|
9
|
+
padding?: SpacingValue | string;
|
|
10
|
+
fontSize?: string;
|
|
11
|
+
maxWidth?: string;
|
|
12
|
+
arrowSize?: string;
|
|
13
|
+
}
|
|
14
|
+
interface BaseTooltipProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
15
|
+
definition?: BaseTooltipDefinition;
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
* Structural tooltip container. Self-contained (no BaseOverlay dependency).
|
|
24
|
+
* Positioning and show/hide logic live in the Preset layer.
|
|
25
|
+
*/
|
|
26
|
+
export declare const BaseTooltip: React.ForwardRefExoticComponent<BaseTooltipProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicProps } from '../types';
|
|
3
|
+
import { TypographyValue } from '../../dictionary/typography';
|
|
4
|
+
import { ColorValue } from '../../dictionary/color';
|
|
5
|
+
export interface BaseTypographyDefinition {
|
|
6
|
+
fontFamily?: TypographyValue | string;
|
|
7
|
+
fontSize?: TypographyValue | string;
|
|
8
|
+
fontWeight?: TypographyValue | string;
|
|
9
|
+
lineHeight?: TypographyValue | string;
|
|
10
|
+
letterSpacing?: string;
|
|
11
|
+
color?: ColorValue | string;
|
|
12
|
+
align?: 'left' | 'center' | 'right';
|
|
13
|
+
truncate?: boolean;
|
|
14
|
+
wrap?: 'normal' | 'nowrap' | 'balance';
|
|
15
|
+
}
|
|
16
|
+
interface BaseTypographyProps {
|
|
17
|
+
definition?: BaseTypographyDefinition;
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: React.CSSProperties;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* Text rendering primitive with Dictionary-driven font, size, weight, and color.
|
|
25
|
+
*/
|
|
26
|
+
export declare function BaseTypography<C extends React.ElementType = 'span'>(props: PolymorphicProps<C, BaseTypographyProps>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare namespace BaseTypography {
|
|
28
|
+
var displayName: string;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseTypographyDefinition } from '../BaseTypography/BaseTypography';
|
|
3
|
+
import { PolymorphicProps } from '../types';
|
|
4
|
+
export type BaseValueDefinition = BaseTypographyDefinition;
|
|
5
|
+
interface BaseValueProps {
|
|
6
|
+
definition?: BaseValueDefinition;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
* Semantic data value wrapper around BaseTypography. Defaults to <span>.
|
|
14
|
+
* Adds data-role="value" for SCSS targeting and tabular-nums for alignment.
|
|
15
|
+
*/
|
|
16
|
+
export declare const BaseValue: {
|
|
17
|
+
<C extends React.ElementType = "span">(props: PolymorphicProps<C, BaseValueProps>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export { BaseBox } from './BaseBox/BaseBox';
|
|
2
|
+
export { BaseStack } from './BaseStack/BaseStack';
|
|
3
|
+
export { BaseDivider } from './BaseDivider/BaseDivider';
|
|
4
|
+
export { BaseTypography } from './BaseTypography/BaseTypography';
|
|
5
|
+
export { BaseIcon } from './BaseIcon/BaseIcon';
|
|
6
|
+
export { BaseOverlay } from './BaseOverlay/BaseOverlay';
|
|
7
|
+
export { BaseTable, BaseTableHead, BaseTableBody, BaseTableRow, BaseTableCell } from './BaseTable/BaseTable';
|
|
8
|
+
export { BaseButton } from './BaseButton/BaseButton';
|
|
9
|
+
export { BaseInput } from './BaseInput/BaseInput';
|
|
10
|
+
export { BaseTextarea } from './BaseTextarea/BaseTextarea';
|
|
11
|
+
export { BaseCheckbox } from './BaseCheckbox/BaseCheckbox';
|
|
12
|
+
export { BaseRadio } from './BaseRadio/BaseRadio';
|
|
13
|
+
export { BaseToggle } from './BaseToggle/BaseToggle';
|
|
14
|
+
export { BaseSelect, BaseSelectTrigger, BaseSelectDropdown, BaseSelectOption, BaseSelectGroup } from './BaseSelect/BaseSelect';
|
|
15
|
+
export { BaseSlider } from './BaseSlider/BaseSlider';
|
|
16
|
+
export { BaseCard, BaseCardHeader, BaseCardBody, BaseCardFooter, BaseCardMedia, BaseCardTitle, BaseCardSubtitle, BaseCardActions } from './BaseCard/BaseCard';
|
|
17
|
+
export { BaseAccordion, BaseAccordionItem, BaseAccordionTrigger, BaseAccordionContent } from './BaseAccordion/BaseAccordion';
|
|
18
|
+
export { BaseMenu, BaseMenuGroup, BaseMenuItem, BaseMenuDivider } from './BaseMenu/BaseMenu';
|
|
19
|
+
export { BaseTooltip } from './BaseTooltip/BaseTooltip';
|
|
20
|
+
export { BaseRating } from './BaseRating/BaseRating';
|
|
21
|
+
export { BaseSegmentedControl } from './BaseSegmentedControl/BaseSegmentedControl';
|
|
22
|
+
export { BaseDatePicker, BaseDatePickerHeader, BaseDatePickerCalendar, BaseDatePickerDay } from './BaseDatePicker/BaseDatePicker';
|
|
23
|
+
export { BaseTimePicker, BaseTimePickerColumn, BaseTimePickerCell } from './BaseTimePicker/BaseTimePicker';
|
|
24
|
+
export { BaseDateRangePicker, BaseDateRangePickerDay } from './BaseDateRangePicker/BaseDateRangePicker';
|
|
25
|
+
export { BaseNumberInput } from './BaseNumberInput/BaseNumberInput';
|
|
26
|
+
export { BaseMaskedInput } from './BaseMaskedInput/BaseMaskedInput';
|
|
27
|
+
export { BaseFileUpload, BaseFileUploadList, BaseFileUploadItem } from './BaseFileUpload/BaseFileUpload';
|
|
28
|
+
export { BaseColorPicker, BaseColorPickerSaturation, BaseColorPickerHue, BaseColorPickerAlpha, BaseColorPickerSwatch } from './BaseColorPicker/BaseColorPicker';
|
|
29
|
+
export { BaseRangeSlider } from './BaseRangeSlider/BaseRangeSlider';
|
|
30
|
+
export { BaseBadge } from './BaseBadge/BaseBadge';
|
|
31
|
+
export { BaseChip } from './BaseChip/BaseChip';
|
|
32
|
+
export { BaseLink } from './BaseLink/BaseLink';
|
|
33
|
+
export type { BaseBoxDefinition } from './BaseBox/BaseBox';
|
|
34
|
+
export type { BaseStackDefinition } from './BaseStack/BaseStack';
|
|
35
|
+
export type { BaseDividerDefinition } from './BaseDivider/BaseDivider';
|
|
36
|
+
export type { BaseTypographyDefinition } from './BaseTypography/BaseTypography';
|
|
37
|
+
export type { BaseIconDefinition } from './BaseIcon/BaseIcon';
|
|
38
|
+
export type { BaseOverlayDefinition } from './BaseOverlay/BaseOverlay';
|
|
39
|
+
export type { BaseTableDefinition, BaseTableHeadDefinition, BaseTableRowDefinition, BaseTableCellDefinition } from './BaseTable/BaseTable';
|
|
40
|
+
export type { BaseButtonDefinition } from './BaseButton/BaseButton';
|
|
41
|
+
export type { BaseInputDefinition } from './BaseInput/BaseInput';
|
|
42
|
+
export type { BaseTextareaDefinition } from './BaseTextarea/BaseTextarea';
|
|
43
|
+
export type { BaseCheckboxDefinition } from './BaseCheckbox/BaseCheckbox';
|
|
44
|
+
export type { BaseRadioDefinition } from './BaseRadio/BaseRadio';
|
|
45
|
+
export type { BaseToggleDefinition } from './BaseToggle/BaseToggle';
|
|
46
|
+
export type { BaseSelectDefinition, BaseSelectDropdownDefinition } from './BaseSelect/BaseSelect';
|
|
47
|
+
export type { BaseSliderDefinition } from './BaseSlider/BaseSlider';
|
|
48
|
+
export type { BaseCardDefinition, BaseCardHeaderDefinition, BaseCardBodyDefinition, BaseCardFooterDefinition } from './BaseCard/BaseCard';
|
|
49
|
+
export type { BaseAccordionDefinition } from './BaseAccordion/BaseAccordion';
|
|
50
|
+
export type { BaseMenuDefinition, BaseMenuItemDefinition } from './BaseMenu/BaseMenu';
|
|
51
|
+
export type { BaseTooltipDefinition } from './BaseTooltip/BaseTooltip';
|
|
52
|
+
export type { BaseRatingDefinition } from './BaseRating/BaseRating';
|
|
53
|
+
export type { BaseSegmentedControlDefinition } from './BaseSegmentedControl/BaseSegmentedControl';
|
|
54
|
+
export type { BaseDatePickerDefinition, BaseDatePickerDayDefinition } from './BaseDatePicker/BaseDatePicker';
|
|
55
|
+
export type { BaseTimePickerDefinition } from './BaseTimePicker/BaseTimePicker';
|
|
56
|
+
export type { BaseDateRangePickerDefinition } from './BaseDateRangePicker/BaseDateRangePicker';
|
|
57
|
+
export type { BaseNumberInputDefinition } from './BaseNumberInput/BaseNumberInput';
|
|
58
|
+
export type { BaseMaskedInputDefinition } from './BaseMaskedInput/BaseMaskedInput';
|
|
59
|
+
export type { BaseFileUploadDefinition } from './BaseFileUpload/BaseFileUpload';
|
|
60
|
+
export type { BaseColorPickerDefinition } from './BaseColorPicker/BaseColorPicker';
|
|
61
|
+
export type { BaseRangeSliderDefinition } from './BaseRangeSlider/BaseRangeSlider';
|
|
62
|
+
export type { BaseBadgeDefinition } from './BaseBadge/BaseBadge';
|
|
63
|
+
export type { BaseChipDefinition } from './BaseChip/BaseChip';
|
|
64
|
+
export type { BaseLinkDefinition } from './BaseLink/BaseLink';
|
|
65
|
+
export { applyDefinition } from './utils';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* Polymorphic component type helpers for Base Primitives.
|
|
5
|
+
*/
|
|
6
|
+
export type AsProp<C extends React.ElementType> = {
|
|
7
|
+
as?: C;
|
|
8
|
+
};
|
|
9
|
+
export type PolymorphicProps<C extends React.ElementType, Props = object> = Props & AsProp<C> & Omit<React.ComponentPropsWithRef<C>, keyof Props | 'as'>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* Maps a definition object to CSS custom properties (--_*) and data attributes.
|
|
5
|
+
*
|
|
6
|
+
* cssVarMap: maps definition key -> CSS custom property name
|
|
7
|
+
* e.g., { bg: '--_bg', color: '--_color', padding: '--_padding' }
|
|
8
|
+
*
|
|
9
|
+
* dataAttrMap: maps definition key -> data attribute name (for enum values)
|
|
10
|
+
* e.g., { display: 'data-display', direction: 'data-direction' }
|
|
11
|
+
*
|
|
12
|
+
* booleanAttrs: definition keys that become boolean data attributes (presence = true)
|
|
13
|
+
* e.g., ['disabled', 'loading', 'truncate']
|
|
14
|
+
*/
|
|
15
|
+
export declare function applyDefinition<D extends object>(definition: D | undefined, cssVarMap: Partial<Record<keyof D, string>>, dataAttrMap?: Partial<Record<keyof D, string>>, booleanAttrs?: (keyof D)[]): {
|
|
16
|
+
style: React.CSSProperties;
|
|
17
|
+
dataAttrs: Record<string, string | boolean>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface ThresholdStop {
|
|
2
|
+
id: string;
|
|
3
|
+
value: number;
|
|
4
|
+
colorToken?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ThresholdRampProps {
|
|
10
|
+
stops: ThresholdStop[];
|
|
11
|
+
onChange: (stops: ThresholdStop[]) => void;
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* ThresholdRamp — composite control for Phase A reconfig.
|
|
18
|
+
* Renders a token-driven gradient strip with draggable stop handles.
|
|
19
|
+
* Generic — no reptime domain strings. D-01, D-10, D-11 compliant.
|
|
20
|
+
*/
|
|
21
|
+
export declare function ThresholdRamp({ stops, onChange, min, max, disabled, }: ThresholdRampProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare namespace ThresholdRamp {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ThresholdRamp';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { QuickConfigPanelProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* QuickConfigPanel — opaque-props panel composite.
|
|
4
|
+
*
|
|
5
|
+
* Renders an array of `QuickConfigSection` items supplied by the consumer.
|
|
6
|
+
* Provides header + pill-menu chrome (Save / Cancel buttons).
|
|
7
|
+
*
|
|
8
|
+
* D-01: Generic — no reptime/entityType/metricInfo domain knowledge.
|
|
9
|
+
* D-03: Panel width uses CSS var `--gloss-slot-width` (MetricGroupContainer slot sizing reuse; 180px fallback).
|
|
10
|
+
* D-19: NOT a modal — role is not "dialog"; no aria-modal; no focus trap.
|
|
11
|
+
* AN-01: `will-change: transform` on root element; panel transitions use transform/opacity only.
|
|
12
|
+
*/
|
|
13
|
+
export declare function QuickConfigPanel({ sections, onCommit, onCancel, anchorRect: _anchorRect, // accepted for position math by consumer — not used internally
|
|
14
|
+
title, }: QuickConfigPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A single section of the QuickConfigPanel.
|
|
4
|
+
* Consumers supply an opaque render function — the panel does not know what content renders.
|
|
5
|
+
* D-02: generic shape; no reptime domain strings.
|
|
6
|
+
*/
|
|
7
|
+
export interface QuickConfigSection {
|
|
8
|
+
/** Unique identifier for the section; used as React key */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Human-readable section heading rendered in the panel chrome */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Returns the ReactNode to mount inside this section */
|
|
13
|
+
render: () => ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Props for QuickConfigPanel.
|
|
17
|
+
* D-01: opaque — no reptime/entityType/metricInfo semantics.
|
|
18
|
+
* D-03: anchorRect provides DOMRect for position math via MetricGroupContainer slot sizing.
|
|
19
|
+
* D-19: Panel is NOT a modal — role is not "dialog".
|
|
20
|
+
*/
|
|
21
|
+
export interface QuickConfigPanelProps {
|
|
22
|
+
/** Sections to render in the panel body */
|
|
23
|
+
sections: QuickConfigSection[];
|
|
24
|
+
/** Fired when the user clicks the Save pill */
|
|
25
|
+
onCommit: () => void;
|
|
26
|
+
/** Fired when the user clicks the Cancel pill */
|
|
27
|
+
onCancel: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* DOMRect of the anchor card — used for extrude position math (D-03).
|
|
30
|
+
* Panel does not crash when undefined; layout defaults apply.
|
|
31
|
+
*/
|
|
32
|
+
anchorRect?: DOMRect;
|
|
33
|
+
/**
|
|
34
|
+
* Panel title shown in the header chrome.
|
|
35
|
+
* Defaults to "Configure" when omitted.
|
|
36
|
+
*/
|
|
37
|
+
title?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface DataTableColumn<T> {
|
|
3
|
+
key: keyof T & string;
|
|
4
|
+
header: string;
|
|
5
|
+
sortable?: boolean;
|
|
6
|
+
width?: string;
|
|
7
|
+
align?: 'left' | 'center' | 'right';
|
|
8
|
+
render?: (value: T[keyof T & string], row: T) => React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface DataTableProps<T> {
|
|
11
|
+
/** Column definitions */
|
|
12
|
+
columns: DataTableColumn<T>[];
|
|
13
|
+
/** Row data */
|
|
14
|
+
data: T[];
|
|
15
|
+
/** Unique key for each row */
|
|
16
|
+
rowKey: keyof T & string;
|
|
17
|
+
/** Custom header cell rendering */
|
|
18
|
+
headerSlot?: (column: DataTableColumn<T>) => React.ReactNode;
|
|
19
|
+
/** Custom cell rendering */
|
|
20
|
+
cellSlot?: (column: DataTableColumn<T>, row: T) => React.ReactNode;
|
|
21
|
+
/** Custom row action rendering */
|
|
22
|
+
rowActionSlot?: (row: T) => React.ReactNode;
|
|
23
|
+
/** Empty state content */
|
|
24
|
+
emptySlot?: React.ReactNode;
|
|
25
|
+
/** Footer content */
|
|
26
|
+
footerSlot?: React.ReactNode;
|
|
27
|
+
/** Enable row selection */
|
|
28
|
+
selectable?: boolean;
|
|
29
|
+
/** Selected row keys */
|
|
30
|
+
selectedKeys?: Set<string>;
|
|
31
|
+
/** Selection change handler */
|
|
32
|
+
onSelectionChange?: (keys: Set<string>) => void;
|
|
33
|
+
/** Active sort column key */
|
|
34
|
+
sortColumn?: string;
|
|
35
|
+
/** Active sort direction */
|
|
36
|
+
sortDirection?: 'asc' | 'desc';
|
|
37
|
+
/** Sort change handler */
|
|
38
|
+
onSort?: (column: string, direction: 'asc' | 'desc') => void;
|
|
39
|
+
/** Current page (1-based) */
|
|
40
|
+
page?: number;
|
|
41
|
+
/** Rows per page */
|
|
42
|
+
pageSize?: number;
|
|
43
|
+
/** Total number of rows (for pagination info) */
|
|
44
|
+
totalCount?: number;
|
|
45
|
+
/** Page change handler */
|
|
46
|
+
onPageChange?: (page: number) => void;
|
|
47
|
+
/** Show loading skeleton */
|
|
48
|
+
loading?: boolean;
|
|
49
|
+
/** Alternate row striping */
|
|
50
|
+
striped?: boolean;
|
|
51
|
+
/** Additional class name */
|
|
52
|
+
className?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* DataTable composite -- typed column definitions with sort, pagination,
|
|
56
|
+
* selection, loading skeletons, and named slots.
|
|
57
|
+
*/
|
|
58
|
+
export declare function DataTable<T extends Record<string, unknown>>(props: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export declare namespace DataTable {
|
|
60
|
+
var displayName: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PinToMetricProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* PinToMetric — pin-icon button that opens an aggregation picker popover.
|
|
4
|
+
*
|
|
5
|
+
* VO-03: filterPayload is opaque; component never reads its shape.
|
|
6
|
+
* D-03: when disabled=true, returns null entirely (no button rendered).
|
|
7
|
+
*/
|
|
8
|
+
export declare function PinToMetric({ filterDescription, filterPayload: _filterPayload, onConfirm, disabled, }: PinToMetricProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export declare namespace PinToMetric {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PinToMetric types.
|
|
3
|
+
*
|
|
4
|
+
* filterPayload is typed `unknown` (IP-06, VO-03) — the component never inspects it.
|
|
5
|
+
* The caller owns the domain type and receives it back via onConfirm.
|
|
6
|
+
*/
|
|
7
|
+
export type AggregationType = 'count' | 'total' | 'average';
|
|
8
|
+
export interface PinToMetricProps {
|
|
9
|
+
/** Human-readable description of the active filters (e.g. "Status: Open, Retailer: Acme") */
|
|
10
|
+
filterDescription: string;
|
|
11
|
+
/** Opaque filter payload — passed through to onConfirm; never inspected by gloss (VO-03) */
|
|
12
|
+
filterPayload: unknown;
|
|
13
|
+
/** Called when user confirms aggregation selection */
|
|
14
|
+
onConfirm: (aggregation: AggregationType) => void;
|
|
15
|
+
/** When true, button is absent entirely (caller detects no-filters state) */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface AutocompleteProps<T = string> {
|
|
3
|
+
/** Available options to filter from */
|
|
4
|
+
options: T[];
|
|
5
|
+
/** Currently selected value */
|
|
6
|
+
value?: T | null;
|
|
7
|
+
/** Called when a value is selected */
|
|
8
|
+
onChange?: (value: T | null) => void;
|
|
9
|
+
/** Extract display label from option */
|
|
10
|
+
getOptionLabel?: (option: T) => string;
|
|
11
|
+
/** Async search callback (debounced 300ms internally) */
|
|
12
|
+
onSearch?: (query: string) => void;
|
|
13
|
+
/** Custom result item rendering */
|
|
14
|
+
resultSlot?: (option: T, isHighlighted: boolean) => React.ReactNode;
|
|
15
|
+
/** Content to show when no matches found */
|
|
16
|
+
emptySlot?: React.ReactNode;
|
|
17
|
+
/** Content to show while loading */
|
|
18
|
+
loadingSlot?: React.ReactNode;
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
label?: string;
|
|
21
|
+
helperText?: string;
|
|
22
|
+
error?: boolean;
|
|
23
|
+
errorText?: string;
|
|
24
|
+
isLoading?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
size?: 'sm' | 'md' | 'lg';
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Autocomplete composite -- Input + Popover with filtered results, keyboard navigation,
|
|
31
|
+
* and debounced search. Uses named slot props (no children).
|
|
32
|
+
*/
|
|
33
|
+
export declare function Autocomplete<T = string>(props: AutocompleteProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare namespace Autocomplete {
|
|
35
|
+
var displayName: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface EntityPickerEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
avatarUrl?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface EntityPickerProps {
|
|
10
|
+
/** Available entities to search */
|
|
11
|
+
entities: EntityPickerEntity[];
|
|
12
|
+
/** Currently selected entity */
|
|
13
|
+
value?: EntityPickerEntity | null;
|
|
14
|
+
/** Selection change handler */
|
|
15
|
+
onChange?: (entity: EntityPickerEntity | null) => void;
|
|
16
|
+
/** Async search handler */
|
|
17
|
+
onSearch?: (query: string) => void;
|
|
18
|
+
/** Custom result item rendering */
|
|
19
|
+
resultSlot?: (entity: EntityPickerEntity, isHighlighted: boolean) => React.ReactNode;
|
|
20
|
+
/** Custom selected entity display */
|
|
21
|
+
selectedSlot?: (entity: EntityPickerEntity) => React.ReactNode;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
label?: string;
|
|
24
|
+
isLoading?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
size?: 'sm' | 'md' | 'lg';
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* EntityPicker composite -- wraps Autocomplete with avatar/icon display for entity search and selection.
|
|
31
|
+
* Uses named slot props (no children).
|
|
32
|
+
*/
|
|
33
|
+
export declare function EntityPicker({ entities, value, onChange, onSearch, resultSlot, selectedSlot, placeholder, label, isLoading, disabled, size, className, }: EntityPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare namespace EntityPicker {
|
|
35
|
+
var displayName: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface FilterValue {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number | boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface FilterChipProps {
|
|
8
|
+
/** The filter this chip represents */
|
|
9
|
+
filter: FilterValue;
|
|
10
|
+
/** Whether the filter is currently active */
|
|
11
|
+
active?: boolean;
|
|
12
|
+
/** Called when chip is clicked (toggle active) */
|
|
13
|
+
onToggle?: (filter: FilterValue) => void;
|
|
14
|
+
/** Called when chip is removed */
|
|
15
|
+
onRemove?: (filter: FilterValue) => void;
|
|
16
|
+
/** Custom label rendering */
|
|
17
|
+
labelSlot?: (filter: FilterValue) => React.ReactNode;
|
|
18
|
+
/** Disabled state */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Size variant */
|
|
21
|
+
size?: 'sm' | 'md';
|
|
22
|
+
/** Additional class name */
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* FilterChip -- Composite wrapping PresetChip with typed filter semantics.
|
|
27
|
+
* Enforces Slot compliance (D-04): no children prop.
|
|
28
|
+
*/
|
|
29
|
+
export declare const FilterChip: React.ForwardRefExoticComponent<FilterChipProps & React.RefAttributes<HTMLDivElement>>;
|