@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
|
@@ -1,24 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { RefAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const Slider: ForwardRefExoticComponent<SliderProperties & RefAttributes<HTMLDivElement>>;
|
|
5
|
+
|
|
6
|
+
declare const SLIDER_ORIENTATIONS: readonly ["horizontal", "vertical"];
|
|
7
|
+
|
|
8
|
+
export declare type SliderOrientation = (typeof SLIDER_ORIENTATIONS)[number];
|
|
9
|
+
|
|
10
|
+
export declare interface SliderProperties {
|
|
11
|
+
/**
|
|
12
|
+
* Controlled value — one number per thumb. A single slider is a
|
|
13
|
+
* 1-element array; a range is a 2-element array. `[start, end]`.
|
|
14
|
+
* @default [0]
|
|
15
|
+
*/
|
|
16
|
+
value?: number[];
|
|
17
|
+
/** Change handler — receives the next value for every thumb. */
|
|
18
|
+
onValueChange?: (value: number[]) => void;
|
|
19
|
+
/** @default 0 */
|
|
20
|
+
min?: number;
|
|
21
|
+
/** @default 100 */
|
|
22
|
+
max?: number;
|
|
23
|
+
/** @default 1 */
|
|
24
|
+
step?: number;
|
|
25
|
+
/** @default 'horizontal' */
|
|
26
|
+
orientation?: SliderOrientation;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
invalid?: boolean;
|
|
29
|
+
id?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { }
|
package/dist/snackbar/index.js
CHANGED
|
@@ -1,42 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
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
|
-
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { RefObject } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare function createSnackbar(config?: SnackbarConfig): SnackbarController;
|
|
6
|
+
|
|
7
|
+
export declare function Snackbar({ controller, portalContainer }: SnackbarProperties): JSX_2.Element;
|
|
8
|
+
|
|
9
|
+
declare const SNACKBAR_SEVERITIES: readonly ["contrast", "secondary", "error"];
|
|
10
|
+
|
|
11
|
+
export declare interface SnackbarConfig {
|
|
12
|
+
/** @default 'bottom-center' */
|
|
13
|
+
placement?: SnackbarPlacement;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Returned by `createSnackbar()`. Mirrors the legacy `useToast()` service —
|
|
17
|
+
* mount ONE `<Snackbar controller={controller} />` per controller, then push
|
|
18
|
+
* messages into it from anywhere via `controller.show(...)`. */
|
|
19
|
+
export declare interface SnackbarController {
|
|
20
|
+
/** Pushes a new message, returns its id. */
|
|
21
|
+
show(options: SnackbarShowOptions): string;
|
|
22
|
+
/** Dismisses one message by id, or every message in this controller if omitted. */
|
|
23
|
+
dismiss(id?: string): void;
|
|
24
|
+
update(id: string, options: Partial<SnackbarShowOptions>): void;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** No 'center' — Ark's Toast placement is edge-anchored (stack management),
|
|
28
|
+
* unlike the legacy PrimeVue Toast which could float mid-viewport. Dropped:
|
|
29
|
+
* no real usage exercised it (SnackbarBasic/SnackbarImage both use
|
|
30
|
+
* corner/edge placements) and faking it would fight Ark's own --x/--y/--scale
|
|
31
|
+
* stacking math instead of using it. */
|
|
32
|
+
export declare type SnackbarPlacement = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
33
|
+
|
|
34
|
+
export declare interface SnackbarProperties {
|
|
35
|
+
controller: SnackbarController;
|
|
36
|
+
/** Where the toast stack portals to. Override if your app scopes
|
|
37
|
+
* `data-theme` to a sub-tree rather than the document root. */
|
|
38
|
+
portalContainer?: RefObject<HTMLElement | null>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare type SnackbarSeverity = (typeof SNACKBAR_SEVERITIES)[number];
|
|
42
|
+
|
|
43
|
+
/** The payload for `controller.show()`/`.update()`. Framework-shaped on
|
|
44
|
+
* purpose (ReactNode `detail`/`leading`) — this is why it lives in the
|
|
45
|
+
* adapter, not in core alongside `SnackbarSeverity`/`SnackbarPlacement`. */
|
|
46
|
+
export declare interface SnackbarShowOptions {
|
|
47
|
+
/** @default 'contrast' */
|
|
48
|
+
severity?: SnackbarSeverity;
|
|
49
|
+
detail: ReactNode;
|
|
50
|
+
/** Icon or image shown before the detail text. Mutually exclusive with
|
|
51
|
+
* nothing in particular — it's just whatever `ReactNode` you pass. */
|
|
52
|
+
leading?: ReactNode;
|
|
53
|
+
/** @default 3000, and never resolves lower than that. */
|
|
54
|
+
life?: number;
|
|
55
|
+
/** Progress bar filling over `life`, indicating time until auto-dismiss. @default false */
|
|
56
|
+
progressBar?: boolean;
|
|
57
|
+
action?: {
|
|
58
|
+
label: string;
|
|
59
|
+
onClick: () => void;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { }
|
package/dist/stepper/index.js
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare interface StepItemData {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
/** Consumer-defined extras (icon, content…) resolved in the adapter. */
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare function Stepper({ items, step, defaultStep, onStepChange, onStepComplete, linear, orientation, indicatorVariant, isStepValid, isStepSkippable, }: StepperProperties): JSX_2.Element;
|
|
11
|
+
|
|
12
|
+
declare const STEPPER_ORIENTATIONS: readonly ["horizontal", "vertical"];
|
|
13
|
+
|
|
14
|
+
/** Visual weight of the current/completed indicator — mirrors the legacy
|
|
15
|
+
* Vue `completeItem` mode ('default': accent only on current; 'strong':
|
|
16
|
+
* accent on current AND completed alike). */
|
|
17
|
+
export declare type StepperIndicatorVariant = 'default' | 'strong';
|
|
18
|
+
|
|
19
|
+
export declare type StepperOrientation = (typeof STEPPER_ORIENTATIONS)[number];
|
|
20
|
+
|
|
21
|
+
export declare interface StepperProperties {
|
|
22
|
+
items: StepItemData[];
|
|
23
|
+
/** Controlled current step index (0-based). Omit to let Ark manage it. */
|
|
24
|
+
step?: number;
|
|
25
|
+
defaultStep?: number;
|
|
26
|
+
onStepChange?: (step: number) => void;
|
|
27
|
+
onStepComplete?: () => void;
|
|
28
|
+
/** Requires steps to be completed in order — blocks jumping ahead. */
|
|
29
|
+
linear?: boolean;
|
|
30
|
+
orientation?: StepperOrientation;
|
|
31
|
+
/** 'default': completed steps stay weak-accent. 'strong': completed steps
|
|
32
|
+
* get the same full-accent treatment as the current one. */
|
|
33
|
+
indicatorVariant?: StepperIndicatorVariant;
|
|
34
|
+
isStepValid?: (index: number) => boolean;
|
|
35
|
+
isStepSkippable?: (index: number) => boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { }
|
package/dist/switch/index.js
CHANGED
|
@@ -1,59 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ReactNode } from 'react';
|
|
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
|
-
* @default
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { RefAttributes } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare const Switch: ForwardRefExoticComponent<SwitchProperties & RefAttributes<HTMLInputElement>>;
|
|
6
|
+
|
|
7
|
+
declare const SWITCH_SIZES: readonly ["small", "medium", "large"];
|
|
8
|
+
|
|
9
|
+
export declare interface SwitchProperties {
|
|
10
|
+
/**
|
|
11
|
+
* The controlled checked state.
|
|
12
|
+
*/
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Initial checked state (uncontrolled mode).
|
|
16
|
+
*/
|
|
17
|
+
defaultChecked?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Handler called when checked state changes.
|
|
20
|
+
*/
|
|
21
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
22
|
+
/**
|
|
23
|
+
* The switch label (also usable via children).
|
|
24
|
+
*/
|
|
25
|
+
children?: ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Size variant.
|
|
28
|
+
* @default 'small'
|
|
29
|
+
*/
|
|
30
|
+
size?: SwitchSize;
|
|
31
|
+
/**
|
|
32
|
+
* Disables interaction.
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Marks the switch as invalid (red border).
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
invalid?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Makes the switch read-only.
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
readOnly?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Marks the switch as required for form validation.
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
required?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The name attribute for form submission.
|
|
53
|
+
*/
|
|
54
|
+
name?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The value submitted with the form when checked.
|
|
57
|
+
* @default 'on'
|
|
58
|
+
*/
|
|
59
|
+
value?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Unique identifier for the switch.
|
|
62
|
+
*/
|
|
63
|
+
id?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export declare type SwitchSize = (typeof SWITCH_SIZES)[number];
|
|
67
|
+
|
|
68
|
+
export { }
|
package/dist/tabs/index.js
CHANGED
package/dist/tabs.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const TAB_SIZES: readonly ["small", "medium"];
|
|
5
|
+
|
|
6
|
+
export declare interface TabItem {
|
|
7
|
+
/** Unique id; matches the panel. */
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export declare function Tabs({ value, onValueChange, items, size, fluid, renderTab, renderPanel, }: TabsReactProperties): JSX_2.Element;
|
|
14
|
+
|
|
15
|
+
export declare type TabSize = (typeof TAB_SIZES)[number];
|
|
16
|
+
|
|
17
|
+
export declare interface TabsProperties {
|
|
18
|
+
items: TabItem[];
|
|
19
|
+
size?: TabSize;
|
|
20
|
+
fluid?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare interface TabsReactProperties extends TabsProperties {
|
|
24
|
+
value?: string;
|
|
25
|
+
onValueChange?: (value: string) => void;
|
|
26
|
+
renderTab?: (item: TabItem) => ReactNode;
|
|
27
|
+
renderPanel?: (item: TabItem) => ReactNode;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { }
|
package/dist/tag-chip/index.js
CHANGED
|
@@ -1,21 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const TAG_CHIP_SEVERITIES: readonly ["default", "accent"];
|
|
5
|
+
|
|
6
|
+
declare const TAG_CHIP_SIZES: readonly ["small", "medium"];
|
|
7
|
+
|
|
8
|
+
export declare function TagChip({ severity, size, disabled, icon, image, imageAlt, removable, onRemove, removeLabel, children, }: TagChipProperties): JSX_2.Element;
|
|
9
|
+
|
|
10
|
+
export declare interface TagChipProperties {
|
|
11
|
+
/** @default 'default' */
|
|
12
|
+
severity?: TagChipSeverity;
|
|
13
|
+
/** @default 'small' */
|
|
14
|
+
size?: TagChipSize;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Leading content icon. */
|
|
17
|
+
icon?: ReactNode;
|
|
18
|
+
/** Avatar image URL, rendered before the label. */
|
|
19
|
+
image?: string;
|
|
20
|
+
imageAlt?: string;
|
|
21
|
+
/** Shows a remove button and fires onRemove when clicked. @default false */
|
|
22
|
+
removable?: boolean;
|
|
23
|
+
onRemove?: () => void;
|
|
24
|
+
/** Accessible label for the remove button. @default 'Remove' */
|
|
25
|
+
removeLabel?: string;
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare type TagChipSeverity = (typeof TAG_CHIP_SEVERITIES)[number];
|
|
30
|
+
|
|
31
|
+
export declare type TagChipSize = (typeof TAG_CHIP_SIZES)[number];
|
|
32
|
+
|
|
33
|
+
export { }
|
package/dist/tag.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare function Tag({ severity, size, icon, children, }: TagProperties): JSX_2.Element;
|
|
5
|
+
|
|
6
|
+
declare const TAG_SEVERITIES: readonly ["accent", "accent-weak", "neutral", "positive", "warning", "danger"];
|
|
7
|
+
|
|
8
|
+
declare const TAG_SIZES: readonly ["small", "medium", "large"];
|
|
9
|
+
|
|
10
|
+
export declare interface TagProperties {
|
|
11
|
+
/** @default 'accent' */
|
|
12
|
+
severity?: TagSeverity;
|
|
13
|
+
/** @default 'small' */
|
|
14
|
+
size?: TagSize;
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export declare type TagSeverity = (typeof TAG_SEVERITIES)[number];
|
|
20
|
+
|
|
21
|
+
export declare type TagSize = (typeof TAG_SIZES)[number];
|
|
22
|
+
|
|
23
|
+
export { }
|
package/dist/textarea/index.js
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { RefAttributes } from 'react';
|
|
3
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
4
|
+
|
|
5
|
+
declare type ForwardedNativeProperties = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChange' | 'className' | 'style'>;
|
|
6
|
+
|
|
7
|
+
declare const INPUT_TEXT_SIZES: readonly ["small", "medium"];
|
|
8
|
+
|
|
9
|
+
declare type InputTextSize = (typeof INPUT_TEXT_SIZES)[number];
|
|
10
|
+
|
|
11
|
+
export declare const Textarea: ForwardRefExoticComponent<TextareaProperties & RefAttributes<HTMLTextAreaElement>>;
|
|
12
|
+
|
|
13
|
+
export declare interface TextareaProperties extends ForwardedNativeProperties {
|
|
14
|
+
/** Valor controlado. Omítelo para dejar el campo uncontrolled (el DOM
|
|
15
|
+
* guarda el valor y `defaultValue` aplica). */
|
|
16
|
+
value?: string;
|
|
17
|
+
/** Controlled change handler — receives the next string value. */
|
|
18
|
+
onValueChange?: (value: string) => void;
|
|
19
|
+
size?: InputTextSize;
|
|
20
|
+
invalid?: boolean;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Grows the textarea to fit its content instead of showing a scrollbar. */
|
|
23
|
+
autoresize?: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tpc-mare/mare-ui-components-react",
|
|
3
3
|
"description": "Mare components for React (headless base, MIT). Framework-agnostic design system, React adapter.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "The Palace Company",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"main": "./dist/index/index.js",
|
|
14
14
|
"module": "./dist/index/index.js",
|
|
15
|
-
"types": "./dist/index
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/index
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
25
|
"import": "./dist/index/index.js"
|
|
26
26
|
},
|
|
27
27
|
"./styles.css": "./dist/styles.css",
|
|
@@ -33,30 +33,35 @@
|
|
|
33
33
|
"./themes/baglioni-resorts.css": "./dist/themes/baglioni-resorts.css",
|
|
34
34
|
"./utilities-standalone.css": "./dist/utilities-standalone.css",
|
|
35
35
|
"./*": {
|
|
36
|
-
"types": "./dist
|
|
36
|
+
"types": "./dist/*.d.ts",
|
|
37
37
|
"import": "./dist/*/index.js"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "vite build",
|
|
42
|
+
"test": "vitest run",
|
|
42
43
|
"build-storybook": "storybook build",
|
|
43
44
|
"dev": "vite build --watch",
|
|
44
45
|
"storybook": "storybook dev -p 6100"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
|
-
"@ark-ui/react": "
|
|
48
|
+
"@ark-ui/react": ">=5.37.0",
|
|
49
|
+
"@tabler/icons-react": ">=3.0.0",
|
|
48
50
|
"react": ">=18.0.0",
|
|
49
51
|
"react-dom": ">=18.0.0"
|
|
50
52
|
},
|
|
51
53
|
"dependencies": {
|
|
52
|
-
"@internationalized/date": "3.12.
|
|
53
|
-
"@tabler/icons-react": "^3.44.0",
|
|
54
|
+
"@internationalized/date": "^3.12.0",
|
|
54
55
|
"tailwind-merge": "^3.4.0"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@ark-ui/react": "^5.37.2",
|
|
59
|
+
"@tabler/icons-react": "^3.44.0",
|
|
58
60
|
"@storybook/react-vite": "10.5.10",
|
|
59
61
|
"@tailwindcss/vite": "^4.1.17",
|
|
62
|
+
"@testing-library/dom": "^10.4.1",
|
|
63
|
+
"@testing-library/react": "^16.3.3",
|
|
64
|
+
"@testing-library/user-event": "^14.6.7",
|
|
60
65
|
"@tpc-development/mare-ui-components-core": "workspace:^",
|
|
61
66
|
"@tpc-development/mare-ui-core-styles": "workspace:^",
|
|
62
67
|
"@tpc-development/mare-ui-storybook-addon": "workspace:^",
|
|
@@ -64,10 +69,12 @@
|
|
|
64
69
|
"@types/react": "^18.3.12",
|
|
65
70
|
"@types/react-dom": "^18.3.1",
|
|
66
71
|
"@vitejs/plugin-react-swc": "^4.3.1",
|
|
72
|
+
"jsdom": "^30.0.1",
|
|
67
73
|
"react": "^18.3.1",
|
|
68
74
|
"react-dom": "^18.3.1",
|
|
69
75
|
"typescript": "^5.9.3",
|
|
70
76
|
"vite": "^7.2.4",
|
|
71
|
-
"vite-plugin-dts": "^4.5.4"
|
|
77
|
+
"vite-plugin-dts": "^4.5.4",
|
|
78
|
+
"vitest": "^3.2.7"
|
|
72
79
|
}
|
|
73
80
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { AccordionItemData } from '@tpc-development/mare-ui-components-core/accordion';
|
|
3
|
-
export type { AccordionItemData } from '@tpc-development/mare-ui-components-core/accordion';
|
|
4
|
-
export interface AccordionItemProperties extends AccordionItemData {
|
|
5
|
-
subtitle?: ReactNode;
|
|
6
|
-
content: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export interface AccordionProperties {
|
|
9
|
-
items: AccordionItemProperties[];
|
|
10
|
-
/** Controlled expanded item values. Omit to let Ark manage it. */
|
|
11
|
-
value?: string[];
|
|
12
|
-
defaultValue?: string[];
|
|
13
|
-
onValueChange?: (value: string[]) => void;
|
|
14
|
-
/** Whether multiple items can be expanded at once.
|
|
15
|
-
* @default false */
|
|
16
|
-
multiple?: boolean;
|
|
17
|
-
/** Whether an expanded item can be collapsed back by clicking it again.
|
|
18
|
-
* @default true */
|
|
19
|
-
collapsible?: boolean;
|
|
20
|
-
}
|
package/dist/avatar/Avatar.d.ts
DELETED
package/dist/avatar/index.d.ts
DELETED