@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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface MultiSelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface MultiSelectProps {
|
|
8
|
+
/** Available options */
|
|
9
|
+
options: MultiSelectOption[];
|
|
10
|
+
/** Currently selected values */
|
|
11
|
+
value: string[];
|
|
12
|
+
/** Called when selection changes */
|
|
13
|
+
onChange: (values: string[]) => void;
|
|
14
|
+
/** Custom tag chip rendering for selected values */
|
|
15
|
+
tagSlot?: (option: MultiSelectOption, onRemove: () => void) => React.ReactNode;
|
|
16
|
+
/** Custom dropdown option rendering */
|
|
17
|
+
dropdownSlot?: (option: MultiSelectOption, isSelected: boolean) => React.ReactNode;
|
|
18
|
+
/** Content when no options available */
|
|
19
|
+
emptySlot?: React.ReactNode;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
helperText?: string;
|
|
23
|
+
error?: boolean;
|
|
24
|
+
errorText?: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
size?: 'sm' | 'md' | 'lg';
|
|
27
|
+
maxSelected?: number;
|
|
28
|
+
searchable?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* MultiSelect composite -- multi-value select with tag chips, dropdown,
|
|
33
|
+
* and keyboard navigation. Uses named slot props (no children).
|
|
34
|
+
*/
|
|
35
|
+
export declare function MultiSelect(props: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare namespace MultiSelect {
|
|
37
|
+
var displayName: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { FilterChip } from './FilterChip';
|
|
2
|
+
export type { FilterChipProps, FilterValue } from './FilterChip';
|
|
3
|
+
export { Autocomplete } from './Autocomplete';
|
|
4
|
+
export type { AutocompleteProps } from './Autocomplete';
|
|
5
|
+
export { MultiSelect } from './MultiSelect';
|
|
6
|
+
export type { MultiSelectProps, MultiSelectOption } from './MultiSelect';
|
|
7
|
+
export { EntityPicker } from './EntityPicker';
|
|
8
|
+
export type { EntityPickerProps, EntityPickerEntity } from './EntityPicker';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type StepStatus = 'completed' | 'active' | 'upcoming' | 'error';
|
|
3
|
+
export interface StepDefinition {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface StepperProps {
|
|
9
|
+
/** Step definitions */
|
|
10
|
+
steps: StepDefinition[];
|
|
11
|
+
/** Current active step index (0-based) */
|
|
12
|
+
activeStep: number;
|
|
13
|
+
/** Called before advancing -- return false to block */
|
|
14
|
+
onStepValidate?: (stepIndex: number) => boolean | Promise<boolean>;
|
|
15
|
+
/** Called when step changes */
|
|
16
|
+
onStepChange?: (stepIndex: number) => void;
|
|
17
|
+
/** Custom step indicator rendering */
|
|
18
|
+
stepSlot?: (step: StepDefinition, status: StepStatus, index: number) => React.ReactNode;
|
|
19
|
+
/** Content for each step (keyed by step index) */
|
|
20
|
+
contentSlot: (stepIndex: number) => React.ReactNode;
|
|
21
|
+
/** Custom action buttons (replaces default next/back) */
|
|
22
|
+
actionSlot?: (stepIndex: number, helpers: {
|
|
23
|
+
goNext: () => void;
|
|
24
|
+
goBack: () => void;
|
|
25
|
+
isFirst: boolean;
|
|
26
|
+
isLast: boolean;
|
|
27
|
+
}) => React.ReactNode;
|
|
28
|
+
/** Step indicator layout */
|
|
29
|
+
orientation?: 'horizontal' | 'vertical';
|
|
30
|
+
/** Additional class name */
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Stepper composite -- numbered steps with linear progression, validation,
|
|
35
|
+
* and named slots for custom step indicators, content, and actions.
|
|
36
|
+
*/
|
|
37
|
+
export declare function Stepper(props: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare namespace Stepper {
|
|
39
|
+
var displayName: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface DropdownItem {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DropdownProps {
|
|
8
|
+
trigger?: React.ReactNode;
|
|
9
|
+
items: DropdownItem[];
|
|
10
|
+
value?: string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Dropdown -- Composite tier. Self-contained dropdown with trigger and menu.
|
|
15
|
+
* Orchestrates trigger + menu primitives. Strips className/style from consumer API.
|
|
16
|
+
*/
|
|
17
|
+
export declare function Dropdown(props: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare namespace Dropdown {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
export { Dropdown as PresetDropdown };
|
|
22
|
+
export type { DropdownProps as PresetDropdownProps };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface FormDialogProps {
|
|
3
|
+
/** Control open state */
|
|
4
|
+
open: boolean;
|
|
5
|
+
/** Close handler */
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
/** Submit handler -- called when submit button clicked */
|
|
8
|
+
onSubmit?: () => void | Promise<void>;
|
|
9
|
+
/** Cancel handler (defaults to onClose) */
|
|
10
|
+
onCancel?: () => void;
|
|
11
|
+
/** Dialog title */
|
|
12
|
+
title: string;
|
|
13
|
+
/** Submit button label */
|
|
14
|
+
submitLabel?: string;
|
|
15
|
+
/** Cancel button label */
|
|
16
|
+
cancelLabel?: string;
|
|
17
|
+
/** Visual variant */
|
|
18
|
+
variant?: 'default' | 'destructive';
|
|
19
|
+
/** Dialog size */
|
|
20
|
+
size?: 'sm' | 'md' | 'lg';
|
|
21
|
+
/** Show loading state on submit button */
|
|
22
|
+
isSubmitting?: boolean;
|
|
23
|
+
/** Form content rendered in Dialog.Body */
|
|
24
|
+
bodySlot: React.ReactNode;
|
|
25
|
+
/** Custom footer content (replaces default submit/cancel buttons) */
|
|
26
|
+
footerSlot?: React.ReactNode;
|
|
27
|
+
/** Additional class name */
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* FormDialog composite -- wraps ContainerDialog with form submit/cancel lifecycle.
|
|
32
|
+
* Does NOT own form field state (per Research Pitfall 6). Form content is
|
|
33
|
+
* injected via bodySlot; consumer manages field state.
|
|
34
|
+
*/
|
|
35
|
+
export declare function FormDialog(props: FormDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare namespace FormDialog {
|
|
37
|
+
var displayName: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface InlineNudgeProps {
|
|
2
|
+
/** The nudge message shown to the user. Plain text — no HTML injection. */
|
|
3
|
+
message: string;
|
|
4
|
+
/** The primary call-to-action button. */
|
|
5
|
+
primaryAction: {
|
|
6
|
+
label: string;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
};
|
|
9
|
+
/** Called when the user dismisses the nudge. */
|
|
10
|
+
onDismiss: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* DOM element to anchor the nudge near.
|
|
13
|
+
* REQUIRED: provide anchorEl OR anchorSelector.
|
|
14
|
+
*/
|
|
15
|
+
anchorEl?: HTMLElement | null;
|
|
16
|
+
/**
|
|
17
|
+
* CSS selector to resolve the anchor element.
|
|
18
|
+
* Used as fallback when anchorEl is not provided.
|
|
19
|
+
* REQUIRED: provide anchorEl OR anchorSelector.
|
|
20
|
+
*/
|
|
21
|
+
anchorSelector?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function InlineNudge({ message, primaryAction, onDismiss, anchorEl, anchorSelector, }: InlineNudgeProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare namespace InlineNudge {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InlineNudge composite barrel export.
|
|
3
|
+
*
|
|
4
|
+
* AP-07: InlineNudge MUST be mounted with anchorEl or anchorSelector.
|
|
5
|
+
* FORBIDDEN mount locations: app/components/Layout/**, app/_app.tsx
|
|
6
|
+
* Enforced in reptime-cloud/.eslintrc via no-restricted-syntax rule (see 15-03-PLAN).
|
|
7
|
+
*
|
|
8
|
+
* VO-04: Props are strictly {message, primaryAction, onDismiss, anchorEl?, anchorSelector?}.
|
|
9
|
+
* NO nudgeType prop. The behavior tracker decides content; InlineNudge is the dumb renderer.
|
|
10
|
+
*/
|
|
11
|
+
export { InlineNudge } from './InlineNudge';
|
|
12
|
+
export type { InlineNudgeProps } from './InlineNudge';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MergePromptProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* MergePrompt — non-blocking floating overlay that presents two card summaries
|
|
4
|
+
* and accept/dismiss actions for a merge suggestion.
|
|
5
|
+
*
|
|
6
|
+
* Non-blocking: the outermost wrapper has pointerEvents:'none'; only the
|
|
7
|
+
* inner content div has pointerEvents:'auto' to prevent blocking dashboard
|
|
8
|
+
* interaction while the prompt is visible.
|
|
9
|
+
*
|
|
10
|
+
* 200ms click-ignore window: prevents accidental drop-click-dismiss when
|
|
11
|
+
* the prompt appears immediately after a drag-drop action.
|
|
12
|
+
*/
|
|
13
|
+
export declare function MergePrompt({ open, cardA, cardB, categoryLabel, onAccept, onDismiss, anchorRef, }: MergePromptProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare namespace MergePrompt {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface MergePromptCardSummary {
|
|
3
|
+
label: string;
|
|
4
|
+
previewValue: string;
|
|
5
|
+
}
|
|
6
|
+
export interface MergePromptProps {
|
|
7
|
+
open: boolean;
|
|
8
|
+
cardA: MergePromptCardSummary;
|
|
9
|
+
cardB: MergePromptCardSummary;
|
|
10
|
+
/** Generic category label shown in the prompt heading, e.g. "status breakdown" */
|
|
11
|
+
categoryLabel: string;
|
|
12
|
+
onAccept: () => void;
|
|
13
|
+
onDismiss: () => void;
|
|
14
|
+
anchorRef?: React.RefObject<HTMLElement | null>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PresetButtonVariant } from '../../../presets/PresetButton/PresetButton';
|
|
3
|
+
import { IconValue } from '../../../types/icon';
|
|
4
|
+
export interface SplitButtonMenuItem {
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
icon?: IconValue;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
divider?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface SplitButtonProps {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
menuItems: SplitButtonMenuItem[];
|
|
15
|
+
variant?: PresetButtonVariant;
|
|
16
|
+
size?: 'sm' | 'md' | 'lg';
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
dropdownIcon?: React.ReactNode;
|
|
19
|
+
leftIcon?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* SplitButton -- Composite tier. Main action button with dropdown menu.
|
|
23
|
+
* Orchestrates Button + ButtonGroup + dropdown menu.
|
|
24
|
+
*/
|
|
25
|
+
export declare const SplitButton: React.ForwardRefExoticComponent<SplitButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export { SplitButton as PresetSplitButton };
|
|
27
|
+
export type { SplitButtonProps as PresetSplitButtonProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { FormDialog } from './FormDialog';
|
|
2
|
+
export type { FormDialogProps } from './FormDialog';
|
|
3
|
+
export { Dropdown, type DropdownProps, type DropdownItem } from './Dropdown';
|
|
4
|
+
export { SplitButton, type SplitButtonProps, type SplitButtonMenuItem } from './SplitButton';
|
|
5
|
+
export { MergePrompt, type MergePromptProps, type MergePromptCardSummary } from './MergePrompt';
|
|
6
|
+
export { InlineNudge, type InlineNudgeProps } from './InlineNudge';
|
|
@@ -28,4 +28,4 @@ export interface DestructiveModalProps {
|
|
|
28
28
|
icon?: string;
|
|
29
29
|
}
|
|
30
30
|
export declare const metadata: PatternMetadata;
|
|
31
|
-
export default function DestructiveModal({ isOpen, onClose, onConfirm, title, description, confirmLabel, cancelLabel, requireConfirmation, confirmationText, confirmationPlaceholder, isLoading, resourceName, icon, }: DestructiveModalProps): import("react/jsx-runtime").JSX.Element
|
|
31
|
+
export default function DestructiveModal({ isOpen, onClose, onConfirm, title, description, confirmLabel, cancelLabel, requireConfirmation, confirmationText, confirmationPlaceholder, isLoading, resourceName, icon, }: DestructiveModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DateRange } from '../../presets/PresetDateRangePicker/PresetDateRangePicker';
|
|
2
|
+
import { SelectOption } from '../../presets/PresetSelect/PresetSelect';
|
|
3
|
+
import { SegmentedControlOption } from '../../presets/PresetSegmentedControl/PresetSegmentedControl';
|
|
4
|
+
import { MultiSelectOption } from '../../composites/inputs/MultiSelect';
|
|
5
|
+
export interface OrderFilterState {
|
|
6
|
+
dateRange?: DateRange;
|
|
7
|
+
status?: string;
|
|
8
|
+
categories?: string[];
|
|
9
|
+
view?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface OrderFilterBarProps {
|
|
12
|
+
/** Current filter state */
|
|
13
|
+
value: OrderFilterState;
|
|
14
|
+
/** Called when any filter changes */
|
|
15
|
+
onChange: (state: OrderFilterState) => void;
|
|
16
|
+
/** Status options for the status Select */
|
|
17
|
+
statusOptions?: SelectOption[];
|
|
18
|
+
/** Category options for the category MultiSelect */
|
|
19
|
+
categoryOptions?: MultiSelectOption[];
|
|
20
|
+
/** View options for segmented control */
|
|
21
|
+
viewOptions?: SegmentedControlOption[];
|
|
22
|
+
/** Reset handler */
|
|
23
|
+
onReset?: () => void;
|
|
24
|
+
/** Additional class name */
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* OrderFilterBar -- Composition that arranges date/select/multi-select filter controls
|
|
29
|
+
* in a horizontal bar for filtering orders or similar entities.
|
|
30
|
+
* Non-form composition: no Zod schema (per D-07).
|
|
31
|
+
*/
|
|
32
|
+
export declare function OrderFilterBar(props: OrderFilterBarProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare namespace OrderFilterBar {
|
|
34
|
+
var displayName: string;
|
|
35
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
import { PatternMetadata } from '../types';
|
|
3
4
|
export declare const addressSchema: z.ZodObject<{
|
|
@@ -33,5 +34,16 @@ export interface AddressGroupProps {
|
|
|
33
34
|
/** External validation errors */
|
|
34
35
|
errors?: Partial<Record<keyof AddressFormValues, string>>;
|
|
35
36
|
}
|
|
37
|
+
/** Imperative ref API for AddressGroup -- use when embedded in a parent form */
|
|
38
|
+
export interface AddressGroupRef {
|
|
39
|
+
/** Validate all fields against the address schema */
|
|
40
|
+
validate: () => {
|
|
41
|
+
success: boolean;
|
|
42
|
+
errors: Record<string, string>;
|
|
43
|
+
};
|
|
44
|
+
/** Get current field values */
|
|
45
|
+
getValues: () => AddressFormValues;
|
|
46
|
+
}
|
|
36
47
|
export declare const metadata: PatternMetadata;
|
|
37
|
-
|
|
48
|
+
declare const AddressGroup: React.ForwardRefExoticComponent<AddressGroupProps & React.RefAttributes<AddressGroupRef>>;
|
|
49
|
+
export default AddressGroup;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PatternMetadata } from '../types';
|
|
3
|
+
export declare const contactSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
subject: z.ZodString;
|
|
7
|
+
message: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type ContactFormValues = z.infer<typeof contactSchema>;
|
|
10
|
+
export interface ContactFormProps {
|
|
11
|
+
/** Called when form is submitted with valid data */
|
|
12
|
+
onSubmit?: (values: ContactFormValues) => void | Promise<void>;
|
|
13
|
+
/** Raw FormData submit handler (bypasses Zod validation) */
|
|
14
|
+
onSubmitRaw?: (data: FormData) => void;
|
|
15
|
+
/** Loading state for the submit button */
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
/** Disable the entire form */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Default form values */
|
|
20
|
+
defaultValues?: Partial<ContactFormValues>;
|
|
21
|
+
/** Text for the submit button */
|
|
22
|
+
submitLabel?: string;
|
|
23
|
+
/** If provided, renders a Select instead of text Input for subject */
|
|
24
|
+
subjectOptions?: string[];
|
|
25
|
+
/** Title displayed at the top of the form */
|
|
26
|
+
title?: string;
|
|
27
|
+
/** Subtitle/description below the title */
|
|
28
|
+
subtitle?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const metadata: PatternMetadata;
|
|
31
|
+
export default function ContactForm({ onSubmit, onSubmitRaw, isLoading, disabled, defaultValues, submitLabel, subjectOptions, title, subtitle, }: ContactFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -32,10 +32,12 @@ export interface CreditCardFormProps {
|
|
|
32
32
|
defaultValues?: Partial<CreditCardFormValues>;
|
|
33
33
|
/** Called when form is submitted with valid data */
|
|
34
34
|
onSubmit?: (values: CreditCardFormValues) => void | Promise<void>;
|
|
35
|
+
/** Raw FormData submit handler (bypasses Zod validation) */
|
|
36
|
+
onSubmitRaw?: (data: FormData) => void;
|
|
35
37
|
/** Called when cancel button is clicked */
|
|
36
38
|
onCancel?: () => void;
|
|
37
39
|
/** Called when card number changes (for async BIN validation) */
|
|
38
40
|
onCardNumberChange?: (cardNumber: string) => void;
|
|
39
41
|
}
|
|
40
42
|
export declare const metadata: PatternMetadata;
|
|
41
|
-
export default function CreditCardForm({ title, subtitle, submitLabel, amount, showCancel, cancelLabel, isLoading, isValidating, disabled, showSecureIcon, defaultValues, onSubmit, onCancel, onCardNumberChange, }: CreditCardFormProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export default function CreditCardForm({ title, subtitle, submitLabel, amount, showCancel, cancelLabel, isLoading, isValidating, disabled, showSecureIcon, defaultValues, onSubmit, onSubmitRaw, onCancel, onCardNumberChange, }: CreditCardFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -31,8 +31,10 @@ export interface LoginFormProps {
|
|
|
31
31
|
defaultValues?: Partial<LoginFormValues>;
|
|
32
32
|
/** Called when form is submitted with valid data */
|
|
33
33
|
onSubmit?: (values: LoginFormValues) => void | Promise<void>;
|
|
34
|
+
/** Raw FormData submit handler (bypasses Zod validation) */
|
|
35
|
+
onSubmitRaw?: (data: FormData) => void;
|
|
34
36
|
/** Called when forgot password link is clicked */
|
|
35
37
|
onForgotPassword?: () => void;
|
|
36
38
|
}
|
|
37
39
|
export declare const metadata: PatternMetadata;
|
|
38
|
-
export default function LoginForm({ title, subtitle, submitLabel, showRememberMe, showForgotPassword, forgotPasswordUrl, showRegisterLink, registerUrl, isLoading, disabled, defaultValues, onSubmit, onForgotPassword, }: LoginFormProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export default function LoginForm({ title, subtitle, submitLabel, showRememberMe, showForgotPassword, forgotPasswordUrl, showRegisterLink, registerUrl, isLoading, disabled, defaultValues, onSubmit, onSubmitRaw, onForgotPassword, }: LoginFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PaymentMethod } from '../../composites/forms/PaymentMethodSelect';
|
|
3
|
+
import { PatternMetadata } from '../types';
|
|
4
|
+
export declare const paymentSchema: z.ZodObject<{
|
|
5
|
+
paymentMethod: z.ZodEnum<{
|
|
6
|
+
credit_card: "credit_card";
|
|
7
|
+
debit_card: "debit_card";
|
|
8
|
+
bank_transfer: "bank_transfer";
|
|
9
|
+
}>;
|
|
10
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
cardNumber: z.ZodString;
|
|
12
|
+
expiryDate: z.ZodString;
|
|
13
|
+
cvv: z.ZodString;
|
|
14
|
+
cardholderName: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
billingAddress: z.ZodObject<{
|
|
17
|
+
street: z.ZodString;
|
|
18
|
+
street2: z.ZodOptional<z.ZodString>;
|
|
19
|
+
city: z.ZodString;
|
|
20
|
+
state: z.ZodString;
|
|
21
|
+
zip: z.ZodString;
|
|
22
|
+
country: z.ZodDefault<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
savePaymentMethod: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type PaymentFormValues = z.infer<typeof paymentSchema>;
|
|
27
|
+
export interface PaymentFormProps {
|
|
28
|
+
/** Called when form is submitted with valid data */
|
|
29
|
+
onSubmit?: (values: PaymentFormValues) => void | Promise<void>;
|
|
30
|
+
/** Raw FormData submit handler (bypasses Zod validation) */
|
|
31
|
+
onSubmitRaw?: (data: FormData) => void;
|
|
32
|
+
/** Loading state for the submit button */
|
|
33
|
+
isLoading?: boolean;
|
|
34
|
+
/** Disable the entire form */
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** Default form values */
|
|
37
|
+
defaultValues?: Partial<PaymentFormValues>;
|
|
38
|
+
/** Text for the submit button */
|
|
39
|
+
submitLabel?: string;
|
|
40
|
+
/** Cancel button label */
|
|
41
|
+
cancelLabel?: string;
|
|
42
|
+
/** Called when cancel is clicked */
|
|
43
|
+
onCancel?: () => void;
|
|
44
|
+
/** Available payment methods (for saved cards selector) */
|
|
45
|
+
paymentMethods?: PaymentMethod[];
|
|
46
|
+
/** Show save payment method checkbox */
|
|
47
|
+
showSaveMethod?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare const metadata: PatternMetadata;
|
|
50
|
+
export default function PaymentForm({ onSubmit, onSubmitRaw, isLoading, disabled, defaultValues, submitLabel, cancelLabel, onCancel, paymentMethods, showSaveMethod, }: PaymentFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PatternMetadata } from '../types';
|
|
3
|
+
export declare const registrationSchema: z.ZodObject<{
|
|
4
|
+
firstName: z.ZodString;
|
|
5
|
+
lastName: z.ZodString;
|
|
6
|
+
email: z.ZodString;
|
|
7
|
+
password: z.ZodString;
|
|
8
|
+
confirmPassword: z.ZodString;
|
|
9
|
+
acceptTerms: z.ZodBoolean;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type RegistrationFormValues = z.infer<typeof registrationSchema>;
|
|
12
|
+
export interface RegistrationFormProps {
|
|
13
|
+
/** Called when form is submitted with valid data */
|
|
14
|
+
onSubmit?: (values: RegistrationFormValues) => void | Promise<void>;
|
|
15
|
+
/** Raw FormData submit handler (bypasses Zod validation) */
|
|
16
|
+
onSubmitRaw?: (data: FormData) => void;
|
|
17
|
+
/** Loading state for the submit button */
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
/** Disable the entire form */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Default form values */
|
|
22
|
+
defaultValues?: Partial<RegistrationFormValues>;
|
|
23
|
+
/** Text for the submit button */
|
|
24
|
+
submitLabel?: string;
|
|
25
|
+
/** Show a link to the terms of service */
|
|
26
|
+
showTermsLink?: boolean;
|
|
27
|
+
/** URL for terms of service */
|
|
28
|
+
termsUrl?: string;
|
|
29
|
+
/** Show a login link */
|
|
30
|
+
showLoginLink?: boolean;
|
|
31
|
+
/** URL for the login page */
|
|
32
|
+
loginUrl?: string;
|
|
33
|
+
/** Title displayed at the top of the form */
|
|
34
|
+
title?: string;
|
|
35
|
+
/** Subtitle/description below the title */
|
|
36
|
+
subtitle?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare const metadata: PatternMetadata;
|
|
39
|
+
export default function RegistrationForm({ onSubmit, onSubmitRaw, isLoading, disabled, defaultValues, submitLabel, showTermsLink, termsUrl, showLoginLink, loginUrl, title, subtitle, }: RegistrationFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export { default as LoginForm, metadata as loginFormMetadata, loginSchema, type LoginFormProps, } from './LoginForm';
|
|
2
2
|
export { default as AddressGroup, metadata as addressGroupMetadata, addressSchema, type AddressGroupProps, } from './AddressGroup';
|
|
3
3
|
export { default as CreditCardForm, metadata as creditCardFormMetadata, creditCardSchema, type CreditCardFormProps, } from './CreditCardForm';
|
|
4
|
+
export { default as RegistrationForm, metadata as registrationFormMetadata, registrationSchema, type RegistrationFormProps, type RegistrationFormValues, } from './RegistrationForm';
|
|
5
|
+
export { default as ContactForm, metadata as contactFormMetadata, contactSchema, type ContactFormProps, type ContactFormValues, } from './ContactForm';
|
|
6
|
+
export { default as PaymentForm, metadata as paymentFormMetadata, paymentSchema, type PaymentFormProps, type PaymentFormValues, } from './PaymentForm';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DataTableColumn } from '../../composites/data/DataTable';
|
|
2
|
+
export interface ImportWizardProps<T = Record<string, unknown>> {
|
|
3
|
+
/** Accepted file types (e.g., '.csv,.xlsx') */
|
|
4
|
+
acceptedTypes?: string;
|
|
5
|
+
/** Called when file is uploaded and parsed */
|
|
6
|
+
onFileParsed?: (data: T[]) => void;
|
|
7
|
+
/** Column definitions for preview table */
|
|
8
|
+
previewColumns?: DataTableColumn<T>[];
|
|
9
|
+
/** Row key for preview table */
|
|
10
|
+
previewRowKey?: keyof T & string;
|
|
11
|
+
/** Called when import is confirmed */
|
|
12
|
+
onImport: (data: T[]) => void | Promise<void>;
|
|
13
|
+
/** Loading/progress state */
|
|
14
|
+
isImporting?: boolean;
|
|
15
|
+
/** Import progress (0-100) */
|
|
16
|
+
progress?: number;
|
|
17
|
+
/** Additional class name */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* ImportWizard -- Composition that orchestrates Stepper + FileUpload + DataTable
|
|
22
|
+
* for multi-step file import workflows.
|
|
23
|
+
* Non-form composition: no Zod schema (per D-07).
|
|
24
|
+
*/
|
|
25
|
+
export declare function ImportWizard<T extends Record<string, unknown>>(props: ImportWizardProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare namespace ImportWizard {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FilterValue } from '../../composites/inputs/FilterChip';
|
|
2
|
+
import { DataTableColumn } from '../../composites/data/DataTable';
|
|
3
|
+
export interface EntitySearchPanelProps<T extends Record<string, unknown>> {
|
|
4
|
+
/** Search handler */
|
|
5
|
+
onSearch: (query: string) => void;
|
|
6
|
+
/** Active filters */
|
|
7
|
+
filters?: FilterValue[];
|
|
8
|
+
/** Filter toggle handler */
|
|
9
|
+
onFilterToggle?: (filter: FilterValue) => void;
|
|
10
|
+
/** Filter remove handler */
|
|
11
|
+
onFilterRemove?: (filter: FilterValue) => void;
|
|
12
|
+
/** Data for the results table */
|
|
13
|
+
data: T[];
|
|
14
|
+
/** Column definitions for results */
|
|
15
|
+
columns: DataTableColumn<T>[];
|
|
16
|
+
/** Row key */
|
|
17
|
+
rowKey: keyof T & string;
|
|
18
|
+
/** Loading state */
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
/** Selected row keys */
|
|
21
|
+
selectedKeys?: Set<string>;
|
|
22
|
+
/** Selection handler */
|
|
23
|
+
onSelectionChange?: (keys: Set<string>) => void;
|
|
24
|
+
/** Title text */
|
|
25
|
+
title?: string;
|
|
26
|
+
/** Search placeholder */
|
|
27
|
+
searchPlaceholder?: string;
|
|
28
|
+
/** Search value (controlled) */
|
|
29
|
+
searchValue?: string;
|
|
30
|
+
/** Additional class name */
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* EntitySearchPanel -- Composition that arranges SearchInput + FilterChip + DataTable
|
|
35
|
+
* for a dashboard-style entity search experience.
|
|
36
|
+
* Non-form composition: no Zod schema (per D-07).
|
|
37
|
+
*/
|
|
38
|
+
export declare function EntitySearchPanel<T extends Record<string, unknown>>(props: EntitySearchPanelProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare namespace EntitySearchPanel {
|
|
40
|
+
var displayName: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PresetBadgeVariant } from '../../presets/PresetBadge/PresetBadge';
|
|
2
|
+
export interface ProfileCardBadge {
|
|
3
|
+
label: string;
|
|
4
|
+
variant?: PresetBadgeVariant;
|
|
5
|
+
}
|
|
6
|
+
export interface ProfileCardMetadata {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ProfileCardProps {
|
|
11
|
+
/** Display name */
|
|
12
|
+
name: string;
|
|
13
|
+
/** Subtitle text (e.g. role, email) */
|
|
14
|
+
subtitle?: string;
|
|
15
|
+
/** Avatar image URL */
|
|
16
|
+
avatarUrl?: string;
|
|
17
|
+
/** Avatar fallback initials */
|
|
18
|
+
avatarFallback?: string;
|
|
19
|
+
/** Badges to display */
|
|
20
|
+
badges?: ProfileCardBadge[];
|
|
21
|
+
/** Metadata key-value pairs */
|
|
22
|
+
metadata?: ProfileCardMetadata[];
|
|
23
|
+
/** Additional class name */
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* ProfileCard -- Composition that arranges Avatar + Text + Badges + Metadata
|
|
28
|
+
* inside a Card layout for user/entity profile display.
|
|
29
|
+
* Non-form composition: no Zod schema (per D-07).
|
|
30
|
+
*/
|
|
31
|
+
export declare function ProfileCard(props: ProfileCardProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare namespace ProfileCard {
|
|
33
|
+
var displayName: string;
|
|
34
|
+
}
|