@tpc-mare/mare-ui-components-react 1.0.2 → 1.0.3-beta.0
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,39 +1,58 @@
|
|
|
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
|
-
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { InputHTMLAttributes } from 'react';
|
|
3
|
+
import { JSX as JSX_2 } from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { RefAttributes } from 'react';
|
|
6
|
+
|
|
7
|
+
declare type ForwardedNativeProperties = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'defaultValue' | 'size' | 'type' | 'className' | 'style'>;
|
|
8
|
+
|
|
9
|
+
declare const INPUT_TEXT_SIZES: readonly ["small", "medium"];
|
|
10
|
+
|
|
11
|
+
declare type InputTextSize = (typeof INPUT_TEXT_SIZES)[number];
|
|
12
|
+
|
|
13
|
+
export declare const Password: ForwardRefExoticComponent<PasswordProperties & RefAttributes<HTMLInputElement>>;
|
|
14
|
+
|
|
15
|
+
/** A single requirement row for `footer` (e.g. "At least one uppercase"). */
|
|
16
|
+
export declare function PasswordFooterItem({ children }: {
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
}): JSX_2.Element;
|
|
19
|
+
|
|
20
|
+
export declare interface PasswordProperties extends ForwardedNativeProperties {
|
|
21
|
+
/** Valor controlado. Omítelo para dejar el campo uncontrolled. */
|
|
22
|
+
value?: string;
|
|
23
|
+
/** Valor inicial cuando el campo es uncontrolled (sin `value`). */
|
|
24
|
+
defaultValue?: string;
|
|
25
|
+
/** Controlled change handler — receives the next string value. */
|
|
26
|
+
onValueChange?: (value: string) => void;
|
|
27
|
+
size?: InputTextSize;
|
|
28
|
+
rounded?: boolean;
|
|
29
|
+
invalid?: boolean;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/** Shows a button that toggles the value between hidden/visible. @default true */
|
|
32
|
+
toggleMask?: boolean;
|
|
33
|
+
/** Icon shown when the value is hidden — click reveals it. @default an eye icon */
|
|
34
|
+
showIcon?: ReactNode;
|
|
35
|
+
/** Icon shown when the value is visible — click hides it. @default an eye-off icon */
|
|
36
|
+
hideIcon?: ReactNode;
|
|
37
|
+
/** Shows the strength-meter panel while the field has focus. @default true */
|
|
38
|
+
feedback?: boolean;
|
|
39
|
+
/** Custom content at the top of the feedback panel. */
|
|
40
|
+
header?: ReactNode;
|
|
41
|
+
/** Custom content at the bottom of the feedback panel, below a divider —
|
|
42
|
+
* e.g. a list of `PasswordFooterItem`s describing the requirements. */
|
|
43
|
+
footer?: ReactNode;
|
|
44
|
+
/** Label shown before there's a value. @default 'Please enter a password' */
|
|
45
|
+
promptLabel?: string;
|
|
46
|
+
/** @default 'Weak' */
|
|
47
|
+
weakLabel?: string;
|
|
48
|
+
/** @default 'Medium' */
|
|
49
|
+
mediumLabel?: string;
|
|
50
|
+
/** @default 'Strong' */
|
|
51
|
+
strongLabel?: string;
|
|
52
|
+
/** Regex (as a string) a value must match to count as at least 'medium'. */
|
|
53
|
+
mediumRegex?: string;
|
|
54
|
+
/** Regex (as a string) a value must match to count as 'strong'. */
|
|
55
|
+
strongRegex?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { }
|
|
@@ -1,38 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*
|
|
16
|
-
* @default
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The
|
|
21
|
-
* @default
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare function ProgressBar({ value, mode, min, max, label, showValue, id, }: ProgressBarProperties): JSX_2.Element;
|
|
4
|
+
|
|
5
|
+
export declare type ProgressBarMode = 'determinate' | 'indeterminate';
|
|
6
|
+
|
|
7
|
+
export declare interface ProgressBarProperties {
|
|
8
|
+
/**
|
|
9
|
+
* The current value. Ignored when `mode` is `'indeterminate'`.
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
value?: number;
|
|
13
|
+
/**
|
|
14
|
+
* `'determinate'` shows a filled bar sized to `value`. `'indeterminate'`
|
|
15
|
+
* shows the looping two-bar animation (no known value/ETA).
|
|
16
|
+
* @default 'determinate'
|
|
17
|
+
*/
|
|
18
|
+
mode?: ProgressBarMode;
|
|
19
|
+
/**
|
|
20
|
+
* The minimum allowed value.
|
|
21
|
+
* @default 0
|
|
22
|
+
*/
|
|
23
|
+
min?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The maximum allowed value.
|
|
26
|
+
* @default 100
|
|
27
|
+
*/
|
|
28
|
+
max?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Label rendered above the bar.
|
|
31
|
+
*/
|
|
32
|
+
label?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Shows the formatted value (e.g. "40%") next to the label.
|
|
35
|
+
* Ignored when `mode` is `'indeterminate'` (there's no value to show).
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
showValue?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Unique identifier for the progress bar.
|
|
41
|
+
*/
|
|
42
|
+
id?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { }
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare function ProgressSpinner({ circleClass, className, }: ProgressSpinnerProperties): JSX_2.Element;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Mare ProgressSpinner — React. Ark has no spinner (pure SVG + CSS), so it's
|
|
7
|
+
* Mare-owned. Identical markup to the Vue version. Dash keyframe in styles.css.
|
|
8
|
+
*/
|
|
9
|
+
export declare interface ProgressSpinnerProperties {
|
|
10
|
+
/** Extra classes for the <circle> (e.g. stroke color per Button severity). */
|
|
11
|
+
circleClass?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { }
|
|
@@ -1,62 +1,81 @@
|
|
|
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
|
-
|
|
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
|
-
*
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { RefAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const RADIO_GROUP_ORIENTATIONS: readonly ["horizontal", "vertical"];
|
|
5
|
+
|
|
6
|
+
declare const RADIO_GROUP_SIZES: readonly ["small", "medium", "large"];
|
|
7
|
+
|
|
8
|
+
export declare const RadioGroup: ForwardRefExoticComponent<RadioGroupProperties & RefAttributes<HTMLDivElement>>;
|
|
9
|
+
|
|
10
|
+
export declare type RadioGroupOrientation = (typeof RADIO_GROUP_ORIENTATIONS)[number];
|
|
11
|
+
|
|
12
|
+
export declare interface RadioGroupProperties {
|
|
13
|
+
/**
|
|
14
|
+
* The available options.
|
|
15
|
+
*/
|
|
16
|
+
items: RadioOptionItem[];
|
|
17
|
+
/**
|
|
18
|
+
* The controlled selected value.
|
|
19
|
+
*/
|
|
20
|
+
value?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Initial selected value (uncontrolled mode).
|
|
23
|
+
*/
|
|
24
|
+
defaultValue?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Handler called when the selected value changes.
|
|
27
|
+
*/
|
|
28
|
+
onValueChange?: (value: string) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Size variant.
|
|
31
|
+
* @default 'small'
|
|
32
|
+
*/
|
|
33
|
+
size?: RadioGroupSize;
|
|
34
|
+
/**
|
|
35
|
+
* Layout direction of the items.
|
|
36
|
+
* @default 'vertical'
|
|
37
|
+
*/
|
|
38
|
+
orientation?: RadioGroupOrientation;
|
|
39
|
+
/**
|
|
40
|
+
* Disables the entire group.
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Marks the group as invalid (red styling).
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
invalid?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Makes the group read-only.
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
readOnly?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Marks the group as required for form validation.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
required?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The name attribute for form submission.
|
|
61
|
+
*/
|
|
62
|
+
name?: string;
|
|
63
|
+
/**
|
|
64
|
+
* ID of an associated form element.
|
|
65
|
+
*/
|
|
66
|
+
form?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Unique identifier for the group.
|
|
69
|
+
*/
|
|
70
|
+
id?: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export declare type RadioGroupSize = (typeof RADIO_GROUP_SIZES)[number];
|
|
74
|
+
|
|
75
|
+
export declare interface RadioOptionItem {
|
|
76
|
+
value: string;
|
|
77
|
+
label: string;
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export { }
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { InputHTMLAttributes } from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { RefAttributes } from 'react';
|
|
5
|
+
|
|
6
|
+
/** Native passthrough same as InputText, minus what SearchField owns/reshapes. */
|
|
7
|
+
declare type ForwardedInputProperties = Omit<InputTextProperties, 'value' | 'onValueChange' | 'rounded' | 'defaultValue'>;
|
|
8
|
+
|
|
9
|
+
declare type ForwardedNativeProperties = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'defaultValue' | 'size' | 'className' | 'style'>;
|
|
10
|
+
|
|
11
|
+
declare const INPUT_TEXT_SIZES: readonly ["small", "medium"];
|
|
12
|
+
|
|
13
|
+
declare interface InputTextProperties 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
|
+
/** Valor inicial cuando el campo es uncontrolled (sin `value`). */
|
|
18
|
+
defaultValue?: string;
|
|
19
|
+
/** Controlled change handler — receives the next string value. */
|
|
20
|
+
onValueChange?: (value: string) => void;
|
|
21
|
+
size?: InputTextSize;
|
|
22
|
+
rounded?: boolean;
|
|
23
|
+
invalid?: boolean;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare type InputTextSize = (typeof INPUT_TEXT_SIZES)[number];
|
|
28
|
+
|
|
29
|
+
export declare const SearchField: ForwardRefExoticComponent<SearchFieldProperties & RefAttributes<HTMLInputElement>>;
|
|
30
|
+
|
|
31
|
+
export declare interface SearchFieldProperties extends ForwardedInputProperties {
|
|
32
|
+
/** Valor controlado. Omítelo para dejar el campo uncontrolled. */
|
|
33
|
+
value?: string;
|
|
34
|
+
/** Valor inicial cuando el campo es uncontrolled (sin `value`). */
|
|
35
|
+
defaultValue?: string;
|
|
36
|
+
/** Controlled change handler — receives the next string value. */
|
|
37
|
+
onValueChange?: (value: string) => void;
|
|
38
|
+
/** Shows a spinner instead of the clear icon. @default false */
|
|
39
|
+
loading?: boolean;
|
|
40
|
+
/** Shows a clear (X) button when there's a value. @default false */
|
|
41
|
+
clearable?: boolean;
|
|
42
|
+
/** Overrides the left icon. @default a search icon */
|
|
43
|
+
leftIcon?: ReactNode;
|
|
44
|
+
/** Overrides the clear button's icon. @default a close (X) icon */
|
|
45
|
+
clearIcon?: ReactNode;
|
|
46
|
+
/** Replaces the clear/spinner logic entirely with your own right-side
|
|
47
|
+
* content (matches the legacy: a custom right icon takes over from the
|
|
48
|
+
* built-in clear button). @default undefined */
|
|
49
|
+
rightIcon?: ReactNode;
|
|
50
|
+
/** Fires when the built-in clear button is clicked (clears `value` too).
|
|
51
|
+
* Does NOT fire for a custom `rightIcon` — wire that yourself. */
|
|
52
|
+
onClear?: () => void;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { }
|
|
@@ -1,54 +1,70 @@
|
|
|
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
|
-
|
|
1
|
+
import { JSX as JSX_2 } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const SEGMENTED_CONTROL_SIZES: readonly ["small", "medium"];
|
|
5
|
+
|
|
6
|
+
export declare function SegmentedControl({ items, value, defaultValue, onValueChange, size, optionWidth, disabled, renderOption, name, form, id, }: SegmentedControlProperties): JSX_2.Element;
|
|
7
|
+
|
|
8
|
+
export declare interface SegmentedControlOptionItem {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare type SegmentedControlOptionWidth = 'auto' | 'equal';
|
|
15
|
+
|
|
16
|
+
export declare interface SegmentedControlProperties {
|
|
17
|
+
/**
|
|
18
|
+
* The available segments.
|
|
19
|
+
*/
|
|
20
|
+
items: SegmentedControlOptionItem[];
|
|
21
|
+
/**
|
|
22
|
+
* The controlled selected value.
|
|
23
|
+
*/
|
|
24
|
+
value?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Initial selected value (uncontrolled mode).
|
|
27
|
+
*/
|
|
28
|
+
defaultValue?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Handler called when the selected segment changes.
|
|
31
|
+
*/
|
|
32
|
+
onValueChange?: (value: string) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Size variant.
|
|
35
|
+
* @default 'small'
|
|
36
|
+
*/
|
|
37
|
+
size?: SegmentedControlSize;
|
|
38
|
+
/**
|
|
39
|
+
* With 'equal', every segment takes up the same width (flex-1). Own Mare
|
|
40
|
+
* prop, not present in PrimeVue.
|
|
41
|
+
* @default 'auto'
|
|
42
|
+
*/
|
|
43
|
+
optionWidth?: SegmentedControlOptionWidth;
|
|
44
|
+
/**
|
|
45
|
+
* Disables the entire group.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Replaces a segment's default text content — e.g. to add a leading
|
|
51
|
+
* icon. Receives the raw item.
|
|
52
|
+
*/
|
|
53
|
+
renderOption?: (item: SegmentedControlOptionItem) => ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* The name attribute for form submission.
|
|
56
|
+
*/
|
|
57
|
+
name?: string;
|
|
58
|
+
/**
|
|
59
|
+
* ID of an associated form element.
|
|
60
|
+
*/
|
|
61
|
+
form?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Unique identifier for the group.
|
|
64
|
+
*/
|
|
65
|
+
id?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export declare type SegmentedControlSize = (typeof SEGMENTED_CONTROL_SIZES)[number];
|
|
69
|
+
|
|
70
|
+
export { }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { RefAttributes } from 'react';
|
|
4
|
+
|
|
5
|
+
declare const SELECT_FIELD_SIZES: readonly ["small", "medium"];
|
|
6
|
+
|
|
7
|
+
export declare const SelectField: ForwardRefExoticComponent<SelectFieldReactProperties & RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export declare interface SelectFieldProperties {
|
|
10
|
+
options: SelectOptionItem[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
size?: SelectFieldSize;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
invalid?: boolean;
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
label?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare interface SelectFieldReactProperties extends SelectFieldProperties {
|
|
20
|
+
value?: string | null;
|
|
21
|
+
onValueChange?: (value: string | null) => void;
|
|
22
|
+
leadingIcon?: ReactNode;
|
|
23
|
+
indicator?: ReactNode;
|
|
24
|
+
clearIcon?: ReactNode;
|
|
25
|
+
checkIcon?: ReactNode;
|
|
26
|
+
renderValue?: (item: SelectOptionItem) => ReactNode;
|
|
27
|
+
renderOption?: (option: SelectOptionItem) => ReactNode;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare type SelectFieldSize = (typeof SELECT_FIELD_SIZES)[number];
|
|
31
|
+
|
|
32
|
+
export declare interface SelectOptionItem {
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** Consumer-defined extras (icon, description…) resolved in the option slot. */
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { Accordion as r } from "@ark-ui/react/accordion";
|
|
3
|
-
import {
|
|
3
|
+
import { IconChevronDown as c } from "@tabler/icons-react";
|
|
4
4
|
const d = "mare:w-full", u = (t) => `
|
|
5
5
|
mare:flex mare:flex-col
|
|
6
6
|
${t ? "mare:border-b mare:border-default" : ""}
|
|
@@ -20,11 +20,14 @@ const d = "mare:w-full", u = (t) => `
|
|
|
20
20
|
mare:ark-closed:[animation:mare-panel-menu-branch-close_200ms_ease-in]
|
|
21
21
|
`, x = "mare:pb-4";
|
|
22
22
|
function w({
|
|
23
|
-
|
|
23
|
+
/* Default a [] aunque el tipo diga que es requerido: `items={data}`
|
|
24
|
+
* con data de un fetch sin resolver llega `undefined` en el primer
|
|
25
|
+
* render y el .map() de abajo tiraba pantalla blanca. */
|
|
26
|
+
items: t = [],
|
|
24
27
|
value: n,
|
|
25
28
|
defaultValue: o,
|
|
26
|
-
onValueChange:
|
|
27
|
-
multiple:
|
|
29
|
+
onValueChange: l,
|
|
30
|
+
multiple: s = !1,
|
|
28
31
|
collapsible: i = !0
|
|
29
32
|
}) {
|
|
30
33
|
return /* @__PURE__ */ a(
|
|
@@ -33,9 +36,9 @@ function w({
|
|
|
33
36
|
className: d,
|
|
34
37
|
value: n,
|
|
35
38
|
defaultValue: o,
|
|
36
|
-
multiple:
|
|
39
|
+
multiple: s,
|
|
37
40
|
collapsible: i,
|
|
38
|
-
onValueChange: (e) =>
|
|
41
|
+
onValueChange: (e) => l?.(e.value),
|
|
39
42
|
children: t.map((e) => /* @__PURE__ */ m(
|
|
40
43
|
r.Item,
|
|
41
44
|
{
|