@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,70 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorValue } from '../../dictionary/color';
|
|
3
|
+
import { RadiusValue } from '../../dictionary/radius';
|
|
4
|
+
import { ElevationValue } from '../../dictionary/elevation';
|
|
5
|
+
import { SpacingValue } from '../../dictionary/spacing';
|
|
6
|
+
export interface BaseMenuDefinition {
|
|
7
|
+
bg?: ColorValue | string;
|
|
8
|
+
borderColor?: ColorValue | string;
|
|
9
|
+
radius?: RadiusValue | string;
|
|
10
|
+
elevation?: ElevationValue | string;
|
|
11
|
+
padding?: SpacingValue | string;
|
|
12
|
+
minWidth?: string;
|
|
13
|
+
}
|
|
14
|
+
interface BaseMenuProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
15
|
+
definition?: BaseMenuDefinition;
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* Structural menu container with definition-driven styling.
|
|
23
|
+
*/
|
|
24
|
+
export declare const BaseMenu: React.ForwardRefExoticComponent<BaseMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
interface BaseMenuGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
26
|
+
label?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* Structural menu group with optional label.
|
|
34
|
+
*/
|
|
35
|
+
export declare function BaseMenuGroup({ label, className, style, children, ...rest }: BaseMenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare namespace BaseMenuGroup {
|
|
37
|
+
var displayName: string;
|
|
38
|
+
}
|
|
39
|
+
export interface BaseMenuItemDefinition {
|
|
40
|
+
padding?: SpacingValue | string;
|
|
41
|
+
fontSize?: string;
|
|
42
|
+
color?: ColorValue | string;
|
|
43
|
+
hoverBg?: ColorValue | string;
|
|
44
|
+
}
|
|
45
|
+
interface BaseMenuItemProps extends Omit<React.HTMLAttributes<HTMLElement>, 'className' | 'style'> {
|
|
46
|
+
definition?: BaseMenuItemDefinition;
|
|
47
|
+
className?: string;
|
|
48
|
+
style?: React.CSSProperties;
|
|
49
|
+
children?: React.ReactNode;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
active?: boolean;
|
|
52
|
+
as?: React.ElementType;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Structural menu item element. Supports polymorphic `as` prop.
|
|
57
|
+
*/
|
|
58
|
+
export declare const BaseMenuItem: React.ForwardRefExoticComponent<BaseMenuItemProps & React.RefAttributes<HTMLElement>>;
|
|
59
|
+
interface BaseMenuDividerProps {
|
|
60
|
+
className?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* Structural menu divider separator.
|
|
65
|
+
*/
|
|
66
|
+
export declare function BaseMenuDivider({ className }: BaseMenuDividerProps): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
export declare namespace BaseMenuDivider {
|
|
68
|
+
var displayName: string;
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 BaseNumberInputDefinition {
|
|
6
|
+
bg?: ColorValue | string;
|
|
7
|
+
color?: ColorValue | string;
|
|
8
|
+
borderColor?: ColorValue | string;
|
|
9
|
+
radius?: RadiusValue | string;
|
|
10
|
+
fontSize?: string;
|
|
11
|
+
padding?: SpacingValue | string;
|
|
12
|
+
buttonBg?: ColorValue | string;
|
|
13
|
+
minHeight?: string;
|
|
14
|
+
}
|
|
15
|
+
interface BaseNumberInputProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
16
|
+
definition?: BaseNumberInputDefinition;
|
|
17
|
+
className?: string;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* Structural number input with increment/decrement button slots.
|
|
25
|
+
* No value clamping or step logic -- Preset layer handles that.
|
|
26
|
+
*/
|
|
27
|
+
export declare function BaseNumberInput({ definition, className, style, disabled, children, ...rest }: BaseNumberInputProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare namespace BaseNumberInput {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Placement } from '@floating-ui/react';
|
|
3
|
+
import { ColorValue } from '../../dictionary/color';
|
|
4
|
+
import { ElevationValue } from '../../dictionary/elevation';
|
|
5
|
+
import { RadiusValue } from '../../dictionary/radius';
|
|
6
|
+
import { SpacingValue } from '../../dictionary/spacing';
|
|
7
|
+
import { ZIndexValue } from '../../dictionary/z-index';
|
|
8
|
+
export interface BaseOverlayDefinition {
|
|
9
|
+
placement?: Placement;
|
|
10
|
+
offset?: number;
|
|
11
|
+
portal?: boolean;
|
|
12
|
+
dismissOnClickOutside?: boolean;
|
|
13
|
+
dismissOnEscape?: boolean;
|
|
14
|
+
role?: 'dialog' | 'listbox' | 'menu' | 'tooltip';
|
|
15
|
+
bg?: ColorValue | string;
|
|
16
|
+
shadow?: ElevationValue | string;
|
|
17
|
+
radius?: RadiusValue | string;
|
|
18
|
+
padding?: SpacingValue | string;
|
|
19
|
+
zIndex?: ZIndexValue | string;
|
|
20
|
+
}
|
|
21
|
+
interface BaseOverlayProps {
|
|
22
|
+
definition?: BaseOverlayDefinition;
|
|
23
|
+
open: boolean;
|
|
24
|
+
onDismiss?: () => void;
|
|
25
|
+
anchorRef?: React.RefObject<HTMLElement | null>;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: React.CSSProperties;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* Floating content positioning engine with Floating UI + Framer Motion animations.
|
|
33
|
+
* Renders via portal by default. Dismisses on click-outside and Escape key.
|
|
34
|
+
*/
|
|
35
|
+
export declare function BaseOverlay(props: BaseOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare namespace BaseOverlay {
|
|
37
|
+
var displayName: string;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FloatingContext } from '@floating-ui/react';
|
|
2
|
+
export interface UseOverlayDismissOptions {
|
|
3
|
+
context: FloatingContext;
|
|
4
|
+
outsidePress?: boolean;
|
|
5
|
+
escapeKey?: boolean;
|
|
6
|
+
role?: 'dialog' | 'listbox' | 'menu' | 'tooltip';
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* Wraps Floating UI dismiss + role + interactions for overlay dismiss behavior.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useOverlayDismiss(options: UseOverlayDismissOptions): {
|
|
13
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
14
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Placement, UseFloatingReturn } from '@floating-ui/react';
|
|
2
|
+
export interface UseOverlayPositioningOptions {
|
|
3
|
+
open: boolean;
|
|
4
|
+
placement?: Placement;
|
|
5
|
+
offsetValue?: number;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
anchorEl?: HTMLElement | null;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
* Wraps Floating UI's useFloating with sensible defaults for overlay positioning.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useOverlayPositioning(options: UseOverlayPositioningOptions): UseFloatingReturn;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Placement } from '@floating-ui/react';
|
|
3
|
+
import { ColorValue } from '../../dictionary/color';
|
|
4
|
+
import { ElevationValue } from '../../dictionary/elevation';
|
|
5
|
+
import { RadiusValue } from '../../dictionary/radius';
|
|
6
|
+
import { SpacingValue } from '../../dictionary/spacing';
|
|
7
|
+
import { ZIndexValue } from '../../dictionary/z-index';
|
|
8
|
+
export interface BasePopoverDefinition {
|
|
9
|
+
placement?: Placement;
|
|
10
|
+
offset?: number;
|
|
11
|
+
portal?: boolean;
|
|
12
|
+
dismissOnClickOutside?: boolean;
|
|
13
|
+
dismissOnEscape?: boolean;
|
|
14
|
+
bg?: ColorValue | string;
|
|
15
|
+
shadow?: ElevationValue | string;
|
|
16
|
+
radius?: RadiusValue | string;
|
|
17
|
+
padding?: SpacingValue | string;
|
|
18
|
+
zIndex?: ZIndexValue | string;
|
|
19
|
+
showArrow?: boolean;
|
|
20
|
+
arrowSize?: number;
|
|
21
|
+
}
|
|
22
|
+
interface BasePopoverProps {
|
|
23
|
+
definition?: BasePopoverDefinition;
|
|
24
|
+
open: boolean;
|
|
25
|
+
onDismiss?: () => void;
|
|
26
|
+
anchorRef: React.RefObject<HTMLElement | null>;
|
|
27
|
+
className?: string;
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* Anchored floating content panel. Composes BaseOverlay with required anchor positioning.
|
|
34
|
+
* Supports optional arrow rendering via definition.showArrow.
|
|
35
|
+
*/
|
|
36
|
+
export declare function BasePopover({ definition, open, onDismiss, anchorRef, className, style, children, }: BasePopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare namespace BasePopover {
|
|
38
|
+
var displayName: string;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorValue } from '../../dictionary/color';
|
|
3
|
+
import { RadiusValue } from '../../dictionary/radius';
|
|
4
|
+
export interface BaseProgressBarDefinition {
|
|
5
|
+
trackBg?: ColorValue | string;
|
|
6
|
+
fillBg?: ColorValue | string;
|
|
7
|
+
height?: string;
|
|
8
|
+
radius?: RadiusValue | string;
|
|
9
|
+
}
|
|
10
|
+
interface BaseProgressBarProps {
|
|
11
|
+
definition?: BaseProgressBarDefinition;
|
|
12
|
+
value?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
indeterminate?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* Structural progress bar chassis with definition-driven CSS custom properties.
|
|
21
|
+
* Supports determinate (value/max) and indeterminate modes.
|
|
22
|
+
*/
|
|
23
|
+
export declare function BaseProgressBar(props: BaseProgressBarProps & Omit<React.HTMLAttributes<HTMLDivElement>, keyof BaseProgressBarProps | 'role'>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare namespace BaseProgressBar {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorValue } from '../../dictionary/color';
|
|
3
|
+
export interface BaseRadioDefinition {
|
|
4
|
+
trackBg?: ColorValue | string;
|
|
5
|
+
trackBorder?: ColorValue | string;
|
|
6
|
+
dotColor?: ColorValue | string;
|
|
7
|
+
trackSize?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BaseRadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size' | 'className' | 'style'> {
|
|
10
|
+
definition?: BaseRadioDefinition;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
* Structural radio chassis with hidden input + circular visual track.
|
|
18
|
+
* No colors, no animations -- those belong in the Preset layer.
|
|
19
|
+
*/
|
|
20
|
+
export declare const BaseRadio: React.ForwardRefExoticComponent<BaseRadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorValue } from '../../dictionary/color';
|
|
3
|
+
export interface BaseRangeSliderDefinition {
|
|
4
|
+
trackBg?: ColorValue | string;
|
|
5
|
+
trackActiveBg?: ColorValue | string;
|
|
6
|
+
thumbBg?: ColorValue | string;
|
|
7
|
+
thumbBorder?: string;
|
|
8
|
+
thumbSize?: string;
|
|
9
|
+
trackHeight?: string;
|
|
10
|
+
thumbShadow?: string;
|
|
11
|
+
}
|
|
12
|
+
interface BaseRangeSliderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
13
|
+
definition?: BaseRangeSliderDefinition;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
orientation?: 'horizontal' | 'vertical';
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
collision?: boolean;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
* Structural range slider chassis with dual thumbs.
|
|
24
|
+
* Extends the BaseSlider visual pattern for two-thumb range selection.
|
|
25
|
+
* No range logic -- Preset layer handles thumb positioning and constraints.
|
|
26
|
+
*/
|
|
27
|
+
export declare function BaseRangeSlider({ definition, className, style, orientation, disabled, collision, children, ...rest }: BaseRangeSliderProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare namespace BaseRangeSlider {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorValue } from '../../dictionary/color';
|
|
3
|
+
import { SpacingValue } from '../../dictionary/spacing';
|
|
4
|
+
export interface BaseRatingDefinition {
|
|
5
|
+
activeColor?: ColorValue | string;
|
|
6
|
+
inactiveColor?: ColorValue | string;
|
|
7
|
+
hoverColor?: ColorValue | string;
|
|
8
|
+
starSize?: string;
|
|
9
|
+
gap?: SpacingValue | string;
|
|
10
|
+
}
|
|
11
|
+
interface BaseRatingProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
12
|
+
definition?: BaseRatingDefinition;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
readOnly?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* Structural rating container with star layout.
|
|
22
|
+
* Owns inline-flex layout and sizing. Interaction logic lives in the Preset.
|
|
23
|
+
*/
|
|
24
|
+
export declare const BaseRating: React.ForwardRefExoticComponent<BaseRatingProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
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 BaseSegmentedControlDefinition {
|
|
6
|
+
bg?: ColorValue | string;
|
|
7
|
+
activeBg?: ColorValue | string;
|
|
8
|
+
borderColor?: ColorValue | string;
|
|
9
|
+
radius?: RadiusValue | string;
|
|
10
|
+
padding?: SpacingValue | string;
|
|
11
|
+
fontSize?: string;
|
|
12
|
+
}
|
|
13
|
+
interface BaseSegmentedControlProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
14
|
+
definition?: BaseSegmentedControlDefinition;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* Structural segmented control container.
|
|
23
|
+
* Owns flex layout and segment structure. Selection state lives in Preset.
|
|
24
|
+
*/
|
|
25
|
+
export declare const BaseSegmentedControl: React.ForwardRefExoticComponent<BaseSegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import { ElevationValue } from '../../dictionary/elevation';
|
|
6
|
+
export interface BaseSelectDefinition {
|
|
7
|
+
bg?: ColorValue | string;
|
|
8
|
+
borderColor?: ColorValue | string;
|
|
9
|
+
radius?: RadiusValue | string;
|
|
10
|
+
fontSize?: string;
|
|
11
|
+
minHeight?: string;
|
|
12
|
+
padding?: SpacingValue | string;
|
|
13
|
+
}
|
|
14
|
+
interface BaseSelectProps {
|
|
15
|
+
definition?: BaseSelectDefinition;
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* Structural select container chassis. Owns trigger/dropdown layout.
|
|
23
|
+
* The heavy search/multi/keyboard state lives in the Preset layer.
|
|
24
|
+
*/
|
|
25
|
+
export declare function BaseSelect(props: BaseSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare namespace BaseSelect {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|
|
29
|
+
interface BaseSelectTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
30
|
+
className?: string;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* Structural trigger button for the select dropdown.
|
|
36
|
+
*/
|
|
37
|
+
export declare const BaseSelectTrigger: React.ForwardRefExoticComponent<BaseSelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
export interface BaseSelectDropdownDefinition {
|
|
39
|
+
bg?: ColorValue | string;
|
|
40
|
+
borderColor?: ColorValue | string;
|
|
41
|
+
radius?: RadiusValue | string;
|
|
42
|
+
elevation?: ElevationValue | string;
|
|
43
|
+
maxHeight?: string;
|
|
44
|
+
}
|
|
45
|
+
interface BaseSelectDropdownProps {
|
|
46
|
+
definition?: BaseSelectDropdownDefinition;
|
|
47
|
+
className?: string;
|
|
48
|
+
style?: React.CSSProperties;
|
|
49
|
+
children?: React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Structural dropdown container for options.
|
|
54
|
+
*/
|
|
55
|
+
export declare function BaseSelectDropdown(props: BaseSelectDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare namespace BaseSelectDropdown {
|
|
57
|
+
var displayName: string;
|
|
58
|
+
}
|
|
59
|
+
interface BaseSelectOptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
60
|
+
className?: string;
|
|
61
|
+
children?: React.ReactNode;
|
|
62
|
+
selected?: boolean;
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* Structural option element in the select dropdown.
|
|
68
|
+
*/
|
|
69
|
+
export declare const BaseSelectOption: React.ForwardRefExoticComponent<BaseSelectOptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
interface BaseSelectGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
71
|
+
label?: string;
|
|
72
|
+
className?: string;
|
|
73
|
+
children?: React.ReactNode;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* Structural option group with label.
|
|
78
|
+
*/
|
|
79
|
+
export declare function BaseSelectGroup({ label, className, children, ...rest }: BaseSelectGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
export declare namespace BaseSelectGroup {
|
|
81
|
+
var displayName: string;
|
|
82
|
+
}
|
|
83
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorValue } from '../../dictionary/color';
|
|
3
|
+
export interface BaseSliderDefinition {
|
|
4
|
+
trackBg?: ColorValue | string;
|
|
5
|
+
trackActiveBg?: ColorValue | string;
|
|
6
|
+
thumbBg?: ColorValue | string;
|
|
7
|
+
thumbBorder?: string;
|
|
8
|
+
thumbSize?: string;
|
|
9
|
+
trackHeight?: string;
|
|
10
|
+
thumbShadow?: string;
|
|
11
|
+
}
|
|
12
|
+
interface BaseSliderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
13
|
+
definition?: BaseSliderDefinition;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
orientation?: 'horizontal' | 'vertical';
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* Structural slider chassis with track/thumb anatomy.
|
|
23
|
+
* Owns layout only; interaction logic lives in the Preset layer.
|
|
24
|
+
*/
|
|
25
|
+
export declare function BaseSlider({ definition, className, style, orientation, disabled, children, ...rest }: BaseSliderProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare namespace BaseSlider {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicProps } from '../types';
|
|
3
|
+
import { SpacingValue } from '../../dictionary/spacing';
|
|
4
|
+
export interface BaseStackDefinition {
|
|
5
|
+
direction?: 'horizontal' | 'vertical';
|
|
6
|
+
gap?: SpacingValue | string;
|
|
7
|
+
align?: 'center' | 'start' | 'end' | 'stretch' | 'baseline';
|
|
8
|
+
justify?: 'center' | 'start' | 'end' | 'between' | 'around';
|
|
9
|
+
wrap?: boolean;
|
|
10
|
+
padding?: SpacingValue | string;
|
|
11
|
+
}
|
|
12
|
+
interface BaseStackProps {
|
|
13
|
+
definition?: BaseStackDefinition;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* Directional layout primitive with Dictionary-driven gap and alignment.
|
|
21
|
+
*/
|
|
22
|
+
export declare function BaseStack<C extends React.ElementType = 'div'>(props: PolymorphicProps<C, BaseStackProps>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare namespace BaseStack {
|
|
24
|
+
var displayName: string;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicProps } from '../types';
|
|
3
|
+
import { ColorValue } from '../../dictionary/color';
|
|
4
|
+
import { SpacingValue } from '../../dictionary/spacing';
|
|
5
|
+
import { TypographyValue } from '../../dictionary/typography';
|
|
6
|
+
export interface BaseTableDefinition {
|
|
7
|
+
borderCollapse?: 'collapse' | 'separate';
|
|
8
|
+
layout?: 'auto' | 'fixed';
|
|
9
|
+
width?: string;
|
|
10
|
+
}
|
|
11
|
+
interface BaseTableProps {
|
|
12
|
+
definition?: BaseTableDefinition;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
* Structural table primitive with Dictionary-driven styling.
|
|
20
|
+
*/
|
|
21
|
+
export declare function BaseTable<C extends React.ElementType = 'table'>(props: PolymorphicProps<C, BaseTableProps>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare namespace BaseTable {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
25
|
+
export interface BaseTableHeadDefinition {
|
|
26
|
+
bg?: ColorValue | string;
|
|
27
|
+
borderBottom?: string;
|
|
28
|
+
}
|
|
29
|
+
interface BaseTableHeadProps {
|
|
30
|
+
definition?: BaseTableHeadDefinition;
|
|
31
|
+
className?: string;
|
|
32
|
+
style?: React.CSSProperties;
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
* Table head structural primitive.
|
|
38
|
+
*/
|
|
39
|
+
export declare function BaseTableHead<C extends React.ElementType = 'thead'>(props: PolymorphicProps<C, BaseTableHeadProps>): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare namespace BaseTableHead {
|
|
41
|
+
var displayName: string;
|
|
42
|
+
}
|
|
43
|
+
interface BaseTableBodyProps {
|
|
44
|
+
className?: string;
|
|
45
|
+
style?: React.CSSProperties;
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* Table body structural primitive.
|
|
51
|
+
*/
|
|
52
|
+
export declare function BaseTableBody<C extends React.ElementType = 'tbody'>(props: PolymorphicProps<C, BaseTableBodyProps>): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare namespace BaseTableBody {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
export interface BaseTableRowDefinition {
|
|
57
|
+
hoverBg?: ColorValue | string;
|
|
58
|
+
borderBottom?: string;
|
|
59
|
+
}
|
|
60
|
+
interface BaseTableRowProps {
|
|
61
|
+
definition?: BaseTableRowDefinition;
|
|
62
|
+
className?: string;
|
|
63
|
+
style?: React.CSSProperties;
|
|
64
|
+
children?: React.ReactNode;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* Table row structural primitive.
|
|
69
|
+
*/
|
|
70
|
+
export declare function BaseTableRow<C extends React.ElementType = 'tr'>(props: PolymorphicProps<C, BaseTableRowProps>): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
export declare namespace BaseTableRow {
|
|
72
|
+
var displayName: string;
|
|
73
|
+
}
|
|
74
|
+
export interface BaseTableCellDefinition {
|
|
75
|
+
padding?: SpacingValue | string;
|
|
76
|
+
align?: 'left' | 'center' | 'right';
|
|
77
|
+
width?: string;
|
|
78
|
+
fontSize?: TypographyValue | string;
|
|
79
|
+
fontWeight?: TypographyValue | string;
|
|
80
|
+
color?: ColorValue | string;
|
|
81
|
+
truncate?: boolean;
|
|
82
|
+
}
|
|
83
|
+
interface BaseTableCellProps {
|
|
84
|
+
definition?: BaseTableCellDefinition;
|
|
85
|
+
className?: string;
|
|
86
|
+
style?: React.CSSProperties;
|
|
87
|
+
children?: React.ReactNode;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
* Table cell structural primitive. Default td; use as="th" for header cells.
|
|
92
|
+
*/
|
|
93
|
+
export declare function BaseTableCell<C extends React.ElementType = 'td'>(props: PolymorphicProps<C, BaseTableCellProps>): import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
export declare namespace BaseTableCell {
|
|
95
|
+
var displayName: string;
|
|
96
|
+
}
|
|
97
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseTypographyDefinition } from '../BaseTypography/BaseTypography';
|
|
3
|
+
import { PolymorphicProps } from '../types';
|
|
4
|
+
export type BaseTextDefinition = BaseTypographyDefinition;
|
|
5
|
+
interface BaseTextProps {
|
|
6
|
+
definition?: BaseTextDefinition;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
* Semantic text wrapper around BaseTypography. Defaults to <span>.
|
|
14
|
+
*/
|
|
15
|
+
export declare const BaseText: {
|
|
16
|
+
<C extends React.ElementType = "span">(props: PolymorphicProps<C, BaseTextProps>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
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 BaseTextareaDefinition {
|
|
6
|
+
bg?: ColorValue | string;
|
|
7
|
+
color?: ColorValue | string;
|
|
8
|
+
borderColor?: ColorValue | string;
|
|
9
|
+
padding?: SpacingValue | string;
|
|
10
|
+
paddingX?: SpacingValue | string;
|
|
11
|
+
radius?: RadiusValue | string;
|
|
12
|
+
fontSize?: string;
|
|
13
|
+
minHeight?: string;
|
|
14
|
+
placeholderColor?: ColorValue | string;
|
|
15
|
+
minRows?: string;
|
|
16
|
+
maxRows?: string;
|
|
17
|
+
resize?: 'none' | 'vertical' | 'both';
|
|
18
|
+
}
|
|
19
|
+
export interface BaseTextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'className' | 'style'> {
|
|
20
|
+
definition?: BaseTextareaDefinition;
|
|
21
|
+
className?: string;
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
/** Structural label slot */
|
|
24
|
+
label?: React.ReactNode;
|
|
25
|
+
/** Structural helper text slot */
|
|
26
|
+
helperText?: React.ReactNode;
|
|
27
|
+
/** Required indicator in label */
|
|
28
|
+
required?: boolean;
|
|
29
|
+
/** Status data attribute for styling hooks */
|
|
30
|
+
status?: 'default' | 'error' | 'success';
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* Structural textarea chassis with label/helper anatomy.
|
|
35
|
+
* No colors, no focus rings -- those belong in the Preset layer.
|
|
36
|
+
*/
|
|
37
|
+
export declare const BaseTextarea: React.ForwardRefExoticComponent<BaseTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|