@tpc-mare/mare-ui-components-react 1.0.2 → 1.0.3
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/LICENSE +21 -0
- package/README.md +227 -0
- package/dist/accordion/index.js +1 -1
- package/dist/accordion.d.ts +36 -0
- package/dist/{avatar/Avatar.types.d.ts → avatar.d.ts} +34 -26
- package/dist/badge.d.ts +19 -0
- package/dist/banner/index.js +1 -1
- package/dist/banner.d.ts +23 -0
- package/dist/breadcrumbs/index.js +1 -1
- package/dist/breadcrumbs.d.ts +24 -0
- package/dist/button/index.js +1 -1
- package/dist/button.d.ts +45 -0
- package/dist/checkbox/index.js +1 -1
- package/dist/{checkbox/Checkbox.types.d.ts → checkbox.d.ts} +79 -69
- package/dist/combobox/index.js +1 -1
- package/dist/combobox.d.ts +43 -0
- package/dist/confirm-dialog/index.js +1 -1
- package/dist/confirm-dialog.d.ts +34 -0
- package/dist/counter/index.js +1 -1
- package/dist/{counter/Counter.types.d.ts → counter.d.ts} +34 -23
- package/dist/date-picker/index.js +1 -1
- package/dist/{date-picker/DatePicker.types.d.ts → date-picker.d.ts} +76 -52
- package/dist/dialog/index.js +2 -2
- package/dist/{dialog/Dialog.types.d.ts → dialog.d.ts} +74 -55
- package/dist/divider.d.ts +18 -0
- package/dist/drawer/index.js +1 -1
- package/dist/{drawer/Drawer.types.d.ts → drawer.d.ts} +68 -53
- package/dist/expandable-counter/index.js +1 -1
- package/dist/{expandable-counter/ExpandableCounter.types.d.ts → expandable-counter.d.ts} +25 -19
- package/dist/filter-chip/index.js +1 -1
- package/dist/filter-chip-dropdown-multiple/index.js +1 -1
- package/dist/filter-chip-dropdown-multiple.d.ts +42 -0
- package/dist/filter-chip-dropdown-single/index.js +1 -1
- package/dist/filter-chip-dropdown-single.d.ts +40 -0
- package/dist/filter-chip-group.d.ts +27 -0
- package/dist/{filter-chip/FilterChip.types.d.ts → filter-chip.d.ts} +49 -40
- package/dist/floating-action-button/index.js +1 -1
- package/dist/floating-action-button.d.ts +46 -0
- package/dist/image-item.d.ts +15 -0
- package/dist/image-slider/index.js +1 -1
- package/dist/image-slider.d.ts +12 -0
- package/dist/index/index.js +40 -40
- package/dist/index.d.ts +1693 -0
- package/dist/input-number/index.js +1 -1
- package/dist/{input-number/InputNumber.types.d.ts → input-number.d.ts} +42 -30
- package/dist/input-otp/index.js +1 -1
- package/dist/{input-otp/InputOtp.types.d.ts → input-otp.d.ts} +36 -27
- package/dist/input-text/index.js +2 -2
- package/dist/input-text.d.ts +77 -0
- package/dist/keyboard-commands/index.js +51 -31
- package/dist/keyboard-commands.d.ts +264 -0
- package/dist/menu/index.js +1 -1
- package/dist/menu.d.ts +48 -0
- package/dist/message/index.js +1 -1
- package/dist/message.d.ts +28 -0
- package/dist/multi-select/index.js +1 -1
- package/dist/{multi-select/MultiSelect.types.d.ts → multi-select.d.ts} +62 -31
- package/dist/overlay-badge/index.js +1 -1
- package/dist/{overlay-badge/OverlayBadge.types.d.ts → overlay-badge.d.ts} +25 -17
- package/dist/paginator/index.js +1 -1
- package/dist/{paginator/Paginator.types.d.ts → paginator.d.ts} +27 -21
- package/dist/panel-menu/index.js +1 -1
- package/dist/panel-menu.d.ts +29 -0
- package/dist/password/index.js +1 -1
- package/dist/{password/Password.types.d.ts → password.d.ts} +58 -39
- package/dist/{progress-bar/ProgressBar.types.d.ts → progress-bar.d.ts} +45 -38
- package/dist/{progress-spinner/ProgressSpinner.d.ts → progress-spinner.d.ts} +15 -10
- package/dist/radio-group/index.js +1 -1
- package/dist/{radio-group/RadioGroup.types.d.ts → radio-group.d.ts} +81 -62
- package/dist/search-field/index.js +1 -1
- package/dist/search-field.d.ts +55 -0
- package/dist/segmented-control/index.js +1 -1
- package/dist/{segmented-control/SegmentedControl.types.d.ts → segmented-control.d.ts} +70 -54
- package/dist/select-field/index.js +1 -1
- package/dist/select-field.d.ts +40 -0
- package/dist/shared/{Accordion-BSmOrxH6.js → Accordion-QSdlMSst.js} +9 -6
- package/dist/shared/{Banner-D4na_bM8.js → Banner-DMWwNO2K.js} +6 -3
- package/dist/shared/{Breadcrumbs-Cqr3Jitd.js → Breadcrumbs-bcs9_ByY.js} +4 -1
- package/dist/shared/{Button-C2ULmKj3.js → Button-BqFuDnSs.js} +98 -92
- package/dist/shared/{Checkbox-DCq3_MWz.js → Checkbox-DgZAQsbr.js} +94 -87
- package/dist/shared/Combobox-CiaEi_RG.js +148 -0
- package/dist/shared/{ConfirmDialog-cmLTBBNs.js → ConfirmDialog-DHsPafOo.js} +8 -3
- package/dist/shared/{Counter-0siKQRKc.js → Counter-lqywtgF6.js} +25 -27
- package/dist/shared/{DatePicker-DhIWE0V_.js → DatePicker-t6xP4UWu.js} +370 -346
- package/dist/shared/{DialogFooter-Cx7G-GHH.js → DialogFooter-DKFuHOJl.js} +4 -1
- package/dist/shared/{DialogHeader-DdVPFxGf.js → DialogHeader-D0dg5FBI.js} +14 -14
- package/dist/shared/{DrawerFooter-DEb2gqW-.js → DrawerFooter-CGrPQoLH.js} +35 -26
- package/dist/shared/{ExpandableCounter-pPJIrd6L.js → ExpandableCounter-BOCHfuye.js} +23 -22
- package/dist/shared/{FilterChip-TpKF-4vP.js → FilterChip-Cc4BBVz3.js} +21 -21
- package/dist/shared/{FilterChipDropdownMultiple-2mr_Z57i.js → FilterChipDropdownMultiple-DL3mHW9H.js} +20 -15
- package/dist/shared/{FilterChipDropdownSingle-CLmWzX9q.js → FilterChipDropdownSingle-BUrzUAmy.js} +31 -22
- package/dist/shared/FloatingActionButton-Dhqp98s7.js +27 -0
- package/dist/shared/{HelperText-zmUym82m.js → HelperText-C9TsD0wC.js} +1 -0
- package/dist/shared/IconField-Bp2H10B1.js +89 -0
- package/dist/shared/{ImageSlider-Bgb1kNQ4.js → ImageSlider-DT0B5g68.js} +5 -5
- package/dist/shared/InputNumber-CUNq3cPa.js +75 -0
- package/dist/shared/InputOtp-wTUwu1NG.js +75 -0
- package/dist/shared/{Menu-Cv9dU1iA.js → Menu-DBHlDgtQ.js} +5 -2
- package/dist/shared/{Message-CQUdM9rR.js → Message-B36kcrfu.js} +4 -4
- package/dist/shared/MultiSelect-CfKm_FPp.js +248 -0
- package/dist/shared/{OverlayBadge-Dkosm3Il.js → OverlayBadge-CnQI_NE0.js} +1 -0
- package/dist/shared/{Paginator-QTDpAJ-N.js → Paginator-BRQx1GRQ.js} +48 -49
- package/dist/shared/{PanelMenu-BpjNM7O_.js → PanelMenu-Dw-K6H2C.js} +14 -4
- package/dist/shared/Password-BWNvygrO.js +113 -0
- package/dist/shared/RadioGroup-CHgzVvZO.js +145 -0
- package/dist/shared/SearchField-Cuw3MVaD.js +73 -0
- package/dist/shared/{SegmentedControl-BfE3jNM6.js → SegmentedControl-D3znmx9l.js} +4 -1
- package/dist/shared/SelectField-BAuctVIF.js +120 -0
- package/dist/shared/Slider-D_iNiPxa.js +110 -0
- package/dist/shared/{Snackbar-BhORbyt-.js → Snackbar-DP-b4GWx.js} +50 -17
- package/dist/shared/{Stepper-DrKKSn_j.js → Stepper-CudtdHSg.js} +26 -18
- package/dist/shared/Switch-C1dd2rX1.js +114 -0
- package/dist/shared/{Tabs-DuufYBV2.js → Tabs-lGGLALGR.js} +4 -1
- package/dist/shared/{TagChip-CP3aX2_G.js → TagChip-QQ6p0JgU.js} +1 -1
- package/dist/shared/Textarea-CJfNbqGA.js +51 -0
- package/dist/shared/useControllableValue-DhckT_e1.js +13 -0
- package/dist/skeleton.d.ts +30 -0
- package/dist/slider/index.js +1 -1
- package/dist/{slider/Slider.types.d.ts → slider.d.ts} +33 -24
- package/dist/snackbar/index.js +1 -1
- package/dist/{snackbar/Snackbar.types.d.ts → snackbar.d.ts} +63 -42
- package/dist/stepper/index.js +1 -1
- package/dist/stepper.d.ts +38 -0
- package/dist/switch/index.js +1 -1
- package/dist/{switch/Switch.types.d.ts → switch.d.ts} +68 -59
- package/dist/tabs/index.js +1 -1
- package/dist/tabs.d.ts +30 -0
- package/dist/tag-chip/index.js +1 -1
- package/dist/{tag-chip/TagChip.types.d.ts → tag-chip.d.ts} +33 -21
- package/dist/tag.d.ts +23 -0
- package/dist/textarea/index.js +1 -1
- package/dist/textarea.d.ts +26 -0
- package/package.json +15 -8
- package/dist/.storybook/main.d.ts +0 -3
- package/dist/.storybook/manager.d.ts +0 -1
- package/dist/.storybook/preview.d.ts +0 -3
- package/dist/accordion/Accordion.d.ts +0 -2
- package/dist/accordion/Accordion.types.d.ts +0 -20
- package/dist/accordion/index.d.ts +0 -2
- package/dist/avatar/Avatar.d.ts +0 -2
- package/dist/avatar/index.d.ts +0 -2
- package/dist/badge/Badge.d.ts +0 -2
- package/dist/badge/Badge.types.d.ts +0 -11
- package/dist/badge/index.d.ts +0 -2
- package/dist/banner/Banner.d.ts +0 -2
- package/dist/banner/Banner.types.d.ts +0 -15
- package/dist/banner/index.d.ts +0 -2
- package/dist/breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/dist/breadcrumbs/Breadcrumbs.types.d.ts +0 -11
- package/dist/breadcrumbs/index.d.ts +0 -2
- package/dist/button/Button.d.ts +0 -2
- package/dist/button/Button.types.d.ts +0 -24
- package/dist/button/index.d.ts +0 -2
- package/dist/checkbox/Checkbox.d.ts +0 -2
- package/dist/checkbox/index.d.ts +0 -2
- package/dist/combobox/Combobox.d.ts +0 -13
- package/dist/combobox/Combobox.types.d.ts +0 -16
- package/dist/combobox/index.d.ts +0 -2
- package/dist/confirm-dialog/ConfirmDialog.d.ts +0 -2
- package/dist/confirm-dialog/ConfirmDialog.types.d.ts +0 -21
- package/dist/confirm-dialog/index.d.ts +0 -2
- package/dist/counter/Counter.d.ts +0 -2
- package/dist/counter/index.d.ts +0 -2
- package/dist/date-picker/DatePicker.d.ts +0 -3
- package/dist/date-picker/index.d.ts +0 -2
- package/dist/dialog/Dialog.d.ts +0 -2
- package/dist/dialog/DialogFooter.d.ts +0 -2
- package/dist/dialog/DialogHeader.d.ts +0 -2
- package/dist/dialog/index.d.ts +0 -4
- package/dist/divider/Divider.d.ts +0 -2
- package/dist/divider/Divider.types.d.ts +0 -8
- package/dist/divider/index.d.ts +0 -2
- package/dist/drawer/Drawer.d.ts +0 -2
- package/dist/drawer/DrawerFooter.d.ts +0 -2
- package/dist/drawer/DrawerHeader.d.ts +0 -2
- package/dist/drawer/index.d.ts +0 -4
- package/dist/expandable-counter/ExpandableCounter.d.ts +0 -2
- package/dist/expandable-counter/index.d.ts +0 -2
- package/dist/filter-chip/FilterChip.d.ts +0 -2
- package/dist/filter-chip/index.d.ts +0 -2
- package/dist/filter-chip-dropdown-multiple/FilterChipDropdownMultiple.d.ts +0 -9
- package/dist/filter-chip-dropdown-multiple/FilterChipDropdownMultiple.types.d.ts +0 -19
- package/dist/filter-chip-dropdown-multiple/index.d.ts +0 -2
- package/dist/filter-chip-dropdown-single/FilterChipDropdownSingle.d.ts +0 -11
- package/dist/filter-chip-dropdown-single/FilterChipDropdownSingle.types.d.ts +0 -15
- package/dist/filter-chip-dropdown-single/index.d.ts +0 -2
- package/dist/filter-chip-group/FilterChipGroup.d.ts +0 -8
- package/dist/filter-chip-group/FilterChipGroup.types.d.ts +0 -12
- package/dist/filter-chip-group/index.d.ts +0 -2
- package/dist/floating-action-button/FloatingActionButton.d.ts +0 -2
- package/dist/floating-action-button/FloatingActionButton.types.d.ts +0 -9
- package/dist/floating-action-button/index.d.ts +0 -2
- package/dist/image-item/ImageItem.d.ts +0 -2
- package/dist/image-item/ImageItem.types.d.ts +0 -7
- package/dist/image-item/index.d.ts +0 -2
- package/dist/image-slider/ImageSlider.d.ts +0 -2
- package/dist/image-slider/ImageSlider.types.d.ts +0 -6
- package/dist/image-slider/index.d.ts +0 -2
- package/dist/index/index.d.ts +0 -94
- package/dist/input-number/InputNumber.d.ts +0 -2
- package/dist/input-number/index.d.ts +0 -2
- package/dist/input-otp/InputOtp.d.ts +0 -2
- package/dist/input-otp/index.d.ts +0 -2
- package/dist/input-text/CharacterCount.d.ts +0 -5
- package/dist/input-text/FloatLabel.d.ts +0 -6
- package/dist/input-text/FormField.d.ts +0 -8
- package/dist/input-text/HelperText.d.ts +0 -4
- package/dist/input-text/IconField.d.ts +0 -18
- package/dist/input-text/InputText.d.ts +0 -2
- package/dist/input-text/InputText.types.d.ts +0 -14
- package/dist/input-text/field-layout.d.ts +0 -12
- package/dist/input-text/index.d.ts +0 -11
- package/dist/keyboard-commands/index.d.ts +0 -5
- package/dist/keyboard-commands/useKeyboardCommands.d.ts +0 -27
- package/dist/keyboard-commands/useKeyboardNavGrid.d.ts +0 -19
- package/dist/keyboard-commands/useKeyboardNavList.d.ts +0 -17
- package/dist/keyboard-commands/useKeyboardScope.d.ts +0 -20
- package/dist/menu/Menu.d.ts +0 -2
- package/dist/menu/Menu.types.d.ts +0 -19
- package/dist/menu/index.d.ts +0 -2
- package/dist/message/Message.d.ts +0 -2
- package/dist/message/Message.types.d.ts +0 -17
- package/dist/message/index.d.ts +0 -2
- package/dist/multi-select/MultiSelect.d.ts +0 -12
- package/dist/multi-select/index.d.ts +0 -2
- package/dist/overlay-badge/OverlayBadge.d.ts +0 -2
- package/dist/overlay-badge/index.d.ts +0 -2
- package/dist/paginator/Paginator.d.ts +0 -2
- package/dist/paginator/index.d.ts +0 -2
- package/dist/panel-menu/PanelMenu.d.ts +0 -2
- package/dist/panel-menu/PanelMenu.types.d.ts +0 -12
- package/dist/panel-menu/index.d.ts +0 -2
- package/dist/password/Password.d.ts +0 -7
- package/dist/password/index.d.ts +0 -2
- package/dist/progress-bar/ProgressBar.d.ts +0 -2
- package/dist/progress-bar/index.d.ts +0 -2
- package/dist/progress-spinner/index.d.ts +0 -2
- package/dist/radio-group/RadioGroup.d.ts +0 -2
- package/dist/radio-group/index.d.ts +0 -2
- package/dist/search-field/SearchField.d.ts +0 -2
- package/dist/search-field/SearchField.types.d.ts +0 -26
- package/dist/search-field/index.d.ts +0 -2
- package/dist/segmented-control/SegmentedControl.d.ts +0 -2
- package/dist/segmented-control/index.d.ts +0 -2
- package/dist/select-field/SelectField.d.ts +0 -14
- package/dist/select-field/SelectField.types.d.ts +0 -11
- package/dist/select-field/index.d.ts +0 -2
- package/dist/shared/Combobox-DrkeDMW0.js +0 -139
- package/dist/shared/FloatingActionButton-BWB5Taeg.js +0 -28
- package/dist/shared/IconCheck-DzZA6b2U.js +0 -5
- package/dist/shared/IconChevronDown-ev2ML7Ex.js +0 -5
- package/dist/shared/IconChevronRight-DEIDRsvg.js +0 -7
- package/dist/shared/IconField-CqKydKep.js +0 -81
- package/dist/shared/IconMinus-fS_GL0Et.js +0 -5
- package/dist/shared/IconSearch-CgM6jEUh.js +0 -5
- package/dist/shared/IconX-CpPADKjZ.js +0 -5
- package/dist/shared/InputNumber-nxus9h5s.js +0 -64
- package/dist/shared/InputOtp-BxBc6Vhs.js +0 -73
- package/dist/shared/MultiSelect-DlaYWcPo.js +0 -248
- package/dist/shared/Password-D4PRaleH.js +0 -97
- package/dist/shared/RadioGroup-B8CXU8-l.js +0 -139
- package/dist/shared/SearchField-DIsFhJ22.js +0 -64
- package/dist/shared/SelectField-CcnbnPEi.js +0 -121
- package/dist/shared/Slider-Cl9PyH2q.js +0 -102
- package/dist/shared/Switch-B5DSQLFL.js +0 -106
- package/dist/shared/Textarea-DHJIWBRM.js +0 -42
- package/dist/shared/createReactComponent-Cb6Pzf10.js +0 -48
- package/dist/shared/useMediaQuery.d.ts +0 -5
- package/dist/skeleton/Skeleton.d.ts +0 -2
- package/dist/skeleton/Skeleton.types.d.ts +0 -20
- package/dist/skeleton/index.d.ts +0 -2
- package/dist/slider/Slider.d.ts +0 -2
- package/dist/slider/index.d.ts +0 -2
- package/dist/snackbar/Snackbar.d.ts +0 -3
- package/dist/snackbar/Snackbar.test.d.ts +0 -1
- package/dist/snackbar/index.d.ts +0 -2
- package/dist/stepper/Stepper.d.ts +0 -2
- package/dist/stepper/Stepper.types.d.ts +0 -18
- package/dist/stepper/index.d.ts +0 -2
- package/dist/switch/Switch.d.ts +0 -2
- package/dist/switch/index.d.ts +0 -2
- package/dist/tabs/Tabs.d.ts +0 -10
- package/dist/tabs/Tabs.types.d.ts +0 -7
- package/dist/tabs/index.d.ts +0 -2
- package/dist/tag/Tag.d.ts +0 -2
- package/dist/tag/Tag.types.d.ts +0 -11
- package/dist/tag/index.d.ts +0 -2
- package/dist/tag-chip/TagChip.d.ts +0 -2
- package/dist/tag-chip/index.d.ts +0 -2
- package/dist/textarea/Textarea.d.ts +0 -2
- package/dist/textarea/Textarea.types.d.ts +0 -15
- package/dist/textarea/index.d.ts +0 -2
- package/dist/vite.config.d.ts +0 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { RefAttributes } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare const Combobox: ForwardRefExoticComponent<ComboboxReactProperties & RefAttributes<HTMLDivElement>>;
|
|
6
|
+
|
|
7
|
+
declare const COMBOBOX_SIZES: readonly ["small", "medium"];
|
|
8
|
+
|
|
9
|
+
export declare interface ComboboxOptionItem {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare interface ComboboxProperties {
|
|
17
|
+
options: ComboboxOptionItem[];
|
|
18
|
+
/** Text shown in the trigger when nothing is selected. */
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
/** Placeholder for the search input inside the panel. */
|
|
21
|
+
searchPlaceholder?: string;
|
|
22
|
+
size?: ComboboxSize;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
invalid?: boolean;
|
|
25
|
+
/** Show a '×' button in the trigger to clear the selected value. */
|
|
26
|
+
clearable?: boolean;
|
|
27
|
+
label?: string;
|
|
28
|
+
emptyText?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare interface ComboboxReactProperties extends ComboboxProperties {
|
|
32
|
+
value?: string | null;
|
|
33
|
+
onValueChange?: (value: string | null) => void;
|
|
34
|
+
leadingIcon?: ReactNode;
|
|
35
|
+
triggerIcon?: ReactNode;
|
|
36
|
+
checkIcon?: ReactNode;
|
|
37
|
+
clearIcon?: ReactNode;
|
|
38
|
+
renderOption?: (option: ComboboxOptionItem) => ReactNode;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare type ComboboxSize = (typeof COMBOBOX_SIZES)[number];
|
|
42
|
+
|
|
43
|
+
export { }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { RefObject } from 'react';
|
|
4
|
+
|
|
5
|
+
declare const CONFIRM_DIALOG_LAYOUTS: readonly ["row", "column"];
|
|
6
|
+
|
|
7
|
+
declare const CONFIRM_DIALOG_SEVERITIES: readonly ["none", "warning", "positive"];
|
|
8
|
+
|
|
9
|
+
export declare function ConfirmDialog({ open, onOpenChange, header, message, severity, layout, icon, acceptLabel, rejectLabel, onAccept, onReject, portalContainer, }: ConfirmDialogProperties): JSX_2.Element;
|
|
10
|
+
|
|
11
|
+
export declare type ConfirmDialogLayout = (typeof CONFIRM_DIALOG_LAYOUTS)[number];
|
|
12
|
+
|
|
13
|
+
export declare interface ConfirmDialogProperties {
|
|
14
|
+
open: boolean;
|
|
15
|
+
onOpenChange?: (open: boolean) => void;
|
|
16
|
+
header: string;
|
|
17
|
+
message: string;
|
|
18
|
+
/** @default 'none' — 'warning' also swaps the accept button to `danger` severity. */
|
|
19
|
+
severity?: ConfirmDialogSeverity;
|
|
20
|
+
/** @default 'row' */
|
|
21
|
+
layout?: ConfirmDialogLayout;
|
|
22
|
+
icon?: ReactNode;
|
|
23
|
+
/** @default 'Confirm' */
|
|
24
|
+
acceptLabel?: string;
|
|
25
|
+
/** @default 'Cancel' */
|
|
26
|
+
rejectLabel?: string;
|
|
27
|
+
onAccept?: () => void;
|
|
28
|
+
onReject?: () => void;
|
|
29
|
+
portalContainer?: RefObject<HTMLElement | null>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export declare type ConfirmDialogSeverity = (typeof CONFIRM_DIALOG_SEVERITIES)[number];
|
|
33
|
+
|
|
34
|
+
export { }
|
package/dist/counter/index.js
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare function Counter({ value, onValueChange, size, variant, disabled, disabledIncrement, disabledDecrement, step, id, name, min, max, }: CounterProperties): JSX_2.Element;
|
|
4
|
+
|
|
5
|
+
declare const COUNTER_SIZES: readonly ["small", "medium", "large"];
|
|
6
|
+
|
|
7
|
+
export declare interface CounterProperties {
|
|
8
|
+
/** Controlled numeric value. `null` when the field is empty. */
|
|
9
|
+
value?: number | null;
|
|
10
|
+
/** Change handler — receives the next number, or `null` when cleared. */
|
|
11
|
+
onValueChange?: (value: number | null) => void;
|
|
12
|
+
size?: CounterSize;
|
|
13
|
+
variant?: CounterVariant;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Disables only the increment ("+") trigger, regardless of `max`. */
|
|
16
|
+
disabledIncrement?: boolean;
|
|
17
|
+
/** Disables only the decrement ("-") trigger, regardless of `min`. */
|
|
18
|
+
disabledDecrement?: boolean;
|
|
19
|
+
id?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
/** Minimum allowed value. */
|
|
22
|
+
min?: number;
|
|
23
|
+
/** Maximum allowed value. */
|
|
24
|
+
max?: number;
|
|
25
|
+
/** Step for the +/- triggers. @default 1 */
|
|
26
|
+
step?: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare type CounterSize = (typeof COUNTER_SIZES)[number];
|
|
30
|
+
|
|
31
|
+
/** 'default' = square secondary buttons. 'expandable' = pill-shaped, ghost buttons. */
|
|
32
|
+
export declare type CounterVariant = 'default' | 'expandable';
|
|
33
|
+
|
|
34
|
+
export { }
|
|
@@ -1,52 +1,76 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/** Show
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* `
|
|
50
|
-
*
|
|
51
|
-
|
|
52
|
-
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { RefAttributes } from 'react';
|
|
4
|
+
import { RefObject } from 'react';
|
|
5
|
+
|
|
6
|
+
declare const DATE_PICKER_SELECTION_MODES: readonly ["single", "range"];
|
|
7
|
+
|
|
8
|
+
export declare const DatePicker: ForwardRefExoticComponent<DatePickerProperties & RefAttributes<HTMLDivElement>>;
|
|
9
|
+
|
|
10
|
+
export declare interface DatePickerProperties {
|
|
11
|
+
value?: DatePickerValue;
|
|
12
|
+
onValueChange?: (value: DatePickerValue) => void;
|
|
13
|
+
selectionMode?: DatePickerSelectionMode;
|
|
14
|
+
size?: InputTextSize;
|
|
15
|
+
label?: string;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
invalid?: boolean;
|
|
19
|
+
/** Inclusive bounds. Also clamps the time-of-day when `showTime`/`timeOnly`. */
|
|
20
|
+
minDate?: Date;
|
|
21
|
+
maxDate?: Date;
|
|
22
|
+
/** Show prev/next + the clickable month/year view switcher. @default true */
|
|
23
|
+
navigation?: boolean;
|
|
24
|
+
/** Two months side-by-side at/above the `sm` breakpoint. @default false */
|
|
25
|
+
doubleMonth?: boolean;
|
|
26
|
+
/** Render the calendar in normal flow — no field, no floating panel. @default false */
|
|
27
|
+
inline?: boolean;
|
|
28
|
+
/** Show the '×' clear trigger once a value is selected. @default true */
|
|
29
|
+
clearable?: boolean;
|
|
30
|
+
/** Price badge under each day — the booking-calendar use case. */
|
|
31
|
+
prices?: DatePriceData[];
|
|
32
|
+
currency?: string;
|
|
33
|
+
/** BCP 47 tag, e.g. "es-MX". @default "en-US" */
|
|
34
|
+
locale?: string;
|
|
35
|
+
/** Show a native time input under the calendar. @default false */
|
|
36
|
+
showTime?: boolean;
|
|
37
|
+
/** Time-only — the calendar view is hidden, only the time input shows. @default false */
|
|
38
|
+
timeOnly?: boolean;
|
|
39
|
+
showSeconds?: boolean;
|
|
40
|
+
/** Render prop so consumers compose their own Clear/Apply buttons (e.g. Mare's
|
|
41
|
+
* own `<Button>`) instead of Mare hardcoding a footer. */
|
|
42
|
+
footer?: (helpers: {
|
|
43
|
+
close: () => void;
|
|
44
|
+
clear: () => void;
|
|
45
|
+
}) => ReactNode;
|
|
46
|
+
leadingIcon?: ReactNode;
|
|
47
|
+
/** Passed straight through to Ark's `<Portal container>` — see the
|
|
48
|
+
* mare-migrate-component skill's Portal section for why this must be
|
|
49
|
+
* exposed (a single `data-theme` on the document root is the default,
|
|
50
|
+
* correct, common case — this is only for multi-theme layouts). */
|
|
51
|
+
portalContainer?: RefObject<HTMLElement | null>;
|
|
52
|
+
onOpenChange?: (open: boolean) => void;
|
|
53
|
+
/** Fires whenever the visible month(s) change (navigation or open). The Vue
|
|
54
|
+
* DS also had a separate `month-change` event — every real consumer just
|
|
55
|
+
* `console.log`'d both with identical payloads, so this adapter exposes
|
|
56
|
+
* the one Ark already gives us (`onVisibleRangeChange`) instead of two. */
|
|
57
|
+
onVisibleMonthsChange?: (months: Date[]) => void;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare type DatePickerSelectionMode = (typeof DATE_PICKER_SELECTION_MODES)[number];
|
|
61
|
+
|
|
62
|
+
export declare type DatePickerValue = Date | [Date | null, Date | null] | null;
|
|
63
|
+
|
|
64
|
+
/** A day's price badge, rendered under its cell (booking-calendar use case). */
|
|
65
|
+
export declare interface DatePriceData {
|
|
66
|
+
date: Date;
|
|
67
|
+
price: number;
|
|
68
|
+
positive: boolean;
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare const INPUT_TEXT_SIZES: readonly ["small", "medium"];
|
|
73
|
+
|
|
74
|
+
export declare type InputTextSize = (typeof INPUT_TEXT_SIZES)[number];
|
|
75
|
+
|
|
76
|
+
export { }
|
package/dist/dialog/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as r, a as e } from "../shared/DialogFooter-
|
|
2
|
-
import { D as g } from "../shared/DialogHeader-
|
|
1
|
+
import { D as r, a as e } from "../shared/DialogFooter-DKFuHOJl.js";
|
|
2
|
+
import { D as g } from "../shared/DialogHeader-D0dg5FBI.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Dialog,
|
|
5
5
|
e as DialogFooter,
|
|
@@ -1,55 +1,74 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { RefObject } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare function Dialog({ open, onOpenChange, size, fullScreen, modal, closeOnEscape, dismissableMask, maskColor, portalContainer, header, footer, children, 'aria-label': ariaLabel, }: DialogProperties): JSX_2.Element;
|
|
6
|
+
|
|
7
|
+
declare const DIALOG_FOOTER_LAYOUTS: readonly ["row", "column"];
|
|
8
|
+
|
|
9
|
+
declare const DIALOG_SIZES: readonly ["small", "medium", "large"];
|
|
10
|
+
|
|
11
|
+
export declare function DialogFooter({ layout, border, children, }: DialogFooterProperties): JSX_2.Element;
|
|
12
|
+
|
|
13
|
+
export declare type DialogFooterLayout = (typeof DIALOG_FOOTER_LAYOUTS)[number];
|
|
14
|
+
|
|
15
|
+
export declare interface DialogFooterProperties {
|
|
16
|
+
/** @default 'row' */
|
|
17
|
+
layout?: DialogFooterLayout;
|
|
18
|
+
/** @default false */
|
|
19
|
+
border?: boolean;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export declare function DialogHeader({ title, leftIcon, rightIcon, onLeftIconClick, onRightIconClick, border, }: DialogHeaderProperties): JSX_2.Element;
|
|
24
|
+
|
|
25
|
+
export declare interface DialogHeaderProperties {
|
|
26
|
+
title?: string;
|
|
27
|
+
/** Closes the dialog on click (matches the legacy DialogHeader: the LEFT
|
|
28
|
+
* icon always closes, regardless of which glyph it shows). @default a close (X) icon */
|
|
29
|
+
leftIcon?: ReactNode;
|
|
30
|
+
/** Does NOT close the dialog on click — wire that yourself if you need it. @default undefined (no button) */
|
|
31
|
+
rightIcon?: ReactNode;
|
|
32
|
+
onLeftIconClick?: () => void;
|
|
33
|
+
onRightIconClick?: () => void;
|
|
34
|
+
/** @default false */
|
|
35
|
+
border?: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export declare interface DialogProperties {
|
|
39
|
+
/** Controlled open state. */
|
|
40
|
+
open: boolean;
|
|
41
|
+
/** Change handler — receives the next open state. */
|
|
42
|
+
onOpenChange?: (open: boolean) => void;
|
|
43
|
+
/** Desktop width. Mobile is always full-width regardless. @default 'medium' */
|
|
44
|
+
size?: DialogSize;
|
|
45
|
+
/** Stretches to fill the screen on mobile (no top rounding); barely
|
|
46
|
+
* changes desktop (just max-height, same as the non-fullScreen case).
|
|
47
|
+
* @default false */
|
|
48
|
+
fullScreen?: boolean;
|
|
49
|
+
/** @default true */
|
|
50
|
+
modal?: boolean;
|
|
51
|
+
/** @default true */
|
|
52
|
+
closeOnEscape?: boolean;
|
|
53
|
+
/** Close when clicking the backdrop. @default true */
|
|
54
|
+
dismissableMask?: boolean;
|
|
55
|
+
/** Overrides the backdrop's background class. @default undefined (uses the token overlay color) */
|
|
56
|
+
maskColor?: string;
|
|
57
|
+
/** Where the dialog portals to. Ark defaults to `document.body` — override
|
|
58
|
+
* this if your app scopes `data-theme` (or any other CSS custom property)
|
|
59
|
+
* to a sub-tree rather than the document root, otherwise the portaled
|
|
60
|
+
* dialog renders outside that scope and loses the tokens. */
|
|
61
|
+
portalContainer?: RefObject<HTMLElement | null>;
|
|
62
|
+
/** Typically a `<DialogHeader />`. */
|
|
63
|
+
header?: ReactNode;
|
|
64
|
+
/** Typically a `<DialogFooter>` with action buttons. */
|
|
65
|
+
footer?: ReactNode;
|
|
66
|
+
/** The scrollable body, between header and footer. */
|
|
67
|
+
children?: ReactNode;
|
|
68
|
+
/** Fallback accessible label when no title is rendered in the header. */
|
|
69
|
+
'aria-label'?: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export declare type DialogSize = (typeof DIALOG_SIZES)[number];
|
|
73
|
+
|
|
74
|
+
export { }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { JSX as JSX_2 } from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare function Divider({ layout, children, ...native }: DividerProperties): JSX_2.Element;
|
|
6
|
+
|
|
7
|
+
declare const DIVIDER_LAYOUTS: readonly ["horizontal", "vertical"];
|
|
8
|
+
|
|
9
|
+
export declare type DividerLayout = (typeof DIVIDER_LAYOUTS)[number];
|
|
10
|
+
|
|
11
|
+
export declare interface DividerProperties extends ForwardedNativeProperties {
|
|
12
|
+
layout?: DividerLayout;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare type ForwardedNativeProperties = Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'style' | 'children'>;
|
|
17
|
+
|
|
18
|
+
export { }
|
package/dist/drawer/index.js
CHANGED
|
@@ -1,53 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { RefObject } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare function Drawer({ open, onOpenChange, position, modal, closeOnEscape, dismissableMask, maskColor, shadow, portalContainer, header, footer, children, 'aria-label': ariaLabel, }: DrawerProperties): JSX_2.Element;
|
|
6
|
+
|
|
7
|
+
declare const DRAWER_POSITIONS: readonly ["left", "right", "top", "bottom", "full"];
|
|
8
|
+
|
|
9
|
+
export declare function DrawerFooter({ border, children, }: DrawerFooterProperties): JSX_2.Element;
|
|
10
|
+
|
|
11
|
+
export declare interface DrawerFooterProperties {
|
|
12
|
+
/** @default false */
|
|
13
|
+
border?: boolean;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare function DrawerHeader({ title, leftIcon, rightIcon, onLeftIconClick, onRightIconClick, border, compact, }: DrawerHeaderProperties): JSX_2.Element;
|
|
18
|
+
|
|
19
|
+
export declare interface DrawerHeaderProperties {
|
|
20
|
+
title?: string;
|
|
21
|
+
/** Closes the drawer on click (matches the legacy header: the LEFT icon
|
|
22
|
+
* always closes, regardless of which glyph it shows). @default a close (X) icon */
|
|
23
|
+
leftIcon?: ReactNode;
|
|
24
|
+
/** Does NOT close the drawer on click — wire that yourself if you need it. @default undefined (no button) */
|
|
25
|
+
rightIcon?: ReactNode;
|
|
26
|
+
onLeftIconClick?: () => void;
|
|
27
|
+
onRightIconClick?: () => void;
|
|
28
|
+
/** @default false */
|
|
29
|
+
border?: boolean;
|
|
30
|
+
/** Shorter header, smaller inline padding — legacy's "slim" variant. @default false */
|
|
31
|
+
compact?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export declare type DrawerPosition = (typeof DRAWER_POSITIONS)[number];
|
|
35
|
+
|
|
36
|
+
export declare interface DrawerProperties {
|
|
37
|
+
/** Controlled open state. */
|
|
38
|
+
open: boolean;
|
|
39
|
+
/** Change handler — receives the next open state. */
|
|
40
|
+
onOpenChange?: (open: boolean) => void;
|
|
41
|
+
/** Which edge the panel docks to and slides in from. @default 'left' */
|
|
42
|
+
position?: DrawerPosition;
|
|
43
|
+
/** @default true */
|
|
44
|
+
modal?: boolean;
|
|
45
|
+
/** @default true */
|
|
46
|
+
closeOnEscape?: boolean;
|
|
47
|
+
/** Close when clicking the backdrop. @default true */
|
|
48
|
+
dismissableMask?: boolean;
|
|
49
|
+
/** Overrides the backdrop's background class. @default undefined (uses the token overlay color) */
|
|
50
|
+
maskColor?: string;
|
|
51
|
+
/** @default true */
|
|
52
|
+
shadow?: boolean;
|
|
53
|
+
/** Where the drawer portals to. Ark defaults to `document.body` — override
|
|
54
|
+
* this if your app scopes `data-theme` (or any other CSS custom property)
|
|
55
|
+
* to a sub-tree rather than the document root, otherwise the portaled
|
|
56
|
+
* drawer renders outside that scope and loses the tokens. */
|
|
57
|
+
portalContainer?: RefObject<HTMLElement | null>;
|
|
58
|
+
/** Typically a `<DrawerHeader />`. */
|
|
59
|
+
header?: ReactNode;
|
|
60
|
+
/** Typically a `<DrawerFooter>` with action buttons. */
|
|
61
|
+
footer?: ReactNode;
|
|
62
|
+
/** The scrollable body, between header and footer. */
|
|
63
|
+
children?: ReactNode;
|
|
64
|
+
/** Fallback accessible label when no title is rendered in the header. */
|
|
65
|
+
'aria-label'?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { }
|