@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,14 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { InputTextSize } from '@tpc-development/mare-ui-components-core/input-text';
|
|
3
|
-
export type { InputTextSize } from '@tpc-development/mare-ui-components-core/input-text';
|
|
4
|
-
type ForwardedNativeProperties = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'size' | 'className' | 'style'>;
|
|
5
|
-
export interface InputTextProperties extends ForwardedNativeProperties {
|
|
6
|
-
/** Controlled value. */
|
|
7
|
-
value?: string;
|
|
8
|
-
/** Controlled change handler — receives the next string value. */
|
|
9
|
-
onValueChange?: (value: string) => void;
|
|
10
|
-
size?: InputTextSize;
|
|
11
|
-
rounded?: boolean;
|
|
12
|
-
invalid?: boolean;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface FieldLayout {
|
|
2
|
-
hasFloatLabel: boolean;
|
|
3
|
-
iconSide: 'left' | 'right' | 'both' | null;
|
|
4
|
-
}
|
|
5
|
-
export declare const FieldLayoutContext: import('react').Context<FieldLayout | null>;
|
|
6
|
-
export declare const useFieldLayout: () => FieldLayout | null;
|
|
7
|
-
/** Combines a parent IconField's side (if any) with this one's — nesting two
|
|
8
|
-
* IconFields (one 'left', one 'right') around the same input, e.g.
|
|
9
|
-
* SearchField's search + clear icons, needs both padded, not just the
|
|
10
|
-
* nearest one. Two IconFields on the SAME side is a consumer error; last one
|
|
11
|
-
* wins rather than throwing. */
|
|
12
|
-
export declare const mergeIconSide: (parentSide: FieldLayout["iconSide"], ownSide: "left" | "right") => FieldLayout["iconSide"];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { InputText } from './InputText';
|
|
2
|
-
export { CharacterCount } from './CharacterCount';
|
|
3
|
-
export { FormField } from './FormField';
|
|
4
|
-
export { FloatLabel } from './FloatLabel';
|
|
5
|
-
export { IconField } from './IconField';
|
|
6
|
-
export { HelperText } from './HelperText';
|
|
7
|
-
export type { InputTextProperties, InputTextSize } from './InputText.types';
|
|
8
|
-
export type { CharacterCountProperties } from './CharacterCount';
|
|
9
|
-
export type { FormFieldProperties } from './FormField';
|
|
10
|
-
export type { FloatLabelProperties } from './FloatLabel';
|
|
11
|
-
export type { IconFieldProperties } from './IconField';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { KeyboardCommandTarget, ScrollAreaOptions, KeyboardCommand, KbdHintContext, KbdHintEntry } from '@tpc-development/mare-ui-components-core/keyboard-commands';
|
|
2
|
-
export interface UseKeyboardCommandsOptions {
|
|
3
|
-
commands?: KeyboardCommand[];
|
|
4
|
-
hintContext?: KbdHintContext;
|
|
5
|
-
hintCommands?: KbdHintEntry[];
|
|
6
|
-
depth?: number;
|
|
7
|
-
/** Default: true. */
|
|
8
|
-
visible?: boolean;
|
|
9
|
-
autoFocus?: boolean;
|
|
10
|
-
scrollable?: boolean | ScrollAreaOptions;
|
|
11
|
-
ariaAttributes?: Record<string, string>;
|
|
12
|
-
capture?: boolean;
|
|
13
|
-
triggerOn?: 'keydown' | 'keyup' | 'both';
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* React adapter for the keyboard-commands engine — same core (chord
|
|
17
|
-
* matching, ARIA injection, scroll handling, overlay depth-guard) as the Vue
|
|
18
|
-
* `useKeyboardCommands` composable, wired with hooks instead of Vue
|
|
19
|
-
* reactivity. `targetRef` is a plain ref object (window, or an element ref
|
|
20
|
-
* attached via JSX `ref={...}`); bind/rebind happens once on mount.
|
|
21
|
-
*/
|
|
22
|
-
export declare function useKeyboardCommands(targetRef: {
|
|
23
|
-
current: KeyboardCommandTarget | null;
|
|
24
|
-
}, options?: UseKeyboardCommandsOptions): {
|
|
25
|
-
commandGroupId: string;
|
|
26
|
-
isActive: boolean;
|
|
27
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface NavGridCell {
|
|
2
|
-
row: number;
|
|
3
|
-
col: number;
|
|
4
|
-
}
|
|
5
|
-
export interface UseKeyboardNavGridOptions {
|
|
6
|
-
rows: number;
|
|
7
|
-
cols: number;
|
|
8
|
-
depth?: number;
|
|
9
|
-
wrap?: boolean;
|
|
10
|
-
onSelect?: (cell: NavGridCell) => void;
|
|
11
|
-
onActivate?: (cell: NavGridCell) => void;
|
|
12
|
-
}
|
|
13
|
-
export interface UseKeyboardNavGridReturn {
|
|
14
|
-
focused: NavGridCell;
|
|
15
|
-
containerRef: (node: HTMLElement | null) => void;
|
|
16
|
-
focus: (cell: NavGridCell, instant?: boolean) => void;
|
|
17
|
-
isFocused: (row: number, col: number) => boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare function useKeyboardNavGrid(options: UseKeyboardNavGridOptions): UseKeyboardNavGridReturn;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface UseKeyboardNavListOptions<T> {
|
|
2
|
-
items: readonly T[];
|
|
3
|
-
depth?: number;
|
|
4
|
-
wrap?: boolean;
|
|
5
|
-
onSelect?: (item: T, index: number) => void;
|
|
6
|
-
onActivate?: (item: T, index: number) => void;
|
|
7
|
-
}
|
|
8
|
-
export interface UseKeyboardNavListReturn<T> {
|
|
9
|
-
focusedIndex: number;
|
|
10
|
-
focusedItem: T | null;
|
|
11
|
-
containerRef: (node: HTMLElement | null) => void;
|
|
12
|
-
focus: (index: number) => void;
|
|
13
|
-
focusFirst: () => void;
|
|
14
|
-
focusLast: () => void;
|
|
15
|
-
clearFocus: () => void;
|
|
16
|
-
}
|
|
17
|
-
export declare function useKeyboardNavList<T>(options: UseKeyboardNavListOptions<T>): UseKeyboardNavListReturn<T>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { onScopeDepthChange, getActiveDepth, ScopeDepth } from '@tpc-development/mare-ui-components-core/keyboard-commands';
|
|
2
|
-
export { onScopeDepthChange, getActiveDepth, type ScopeDepth };
|
|
3
|
-
export interface UseKeyboardScopeOptions {
|
|
4
|
-
/** Higher number = closer to the user (like z-index). Default: 1. Base page = 0. */
|
|
5
|
-
depth?: ScopeDepth;
|
|
6
|
-
/** When false, this scope is removed from the global stack. Default: true. */
|
|
7
|
-
visible?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Registers/unregisters this component's keyboard scope with the global
|
|
11
|
-
* stack shared across both the Vue and React adapters. Use this inside
|
|
12
|
-
* overlay components so keyboard commands only fire when the overlay is the
|
|
13
|
-
* topmost one.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* const { scopeId } = useKeyboardScope({ visible: isOpen, depth: 1 });
|
|
17
|
-
*/
|
|
18
|
-
export declare function useKeyboardScope(options?: UseKeyboardScopeOptions): {
|
|
19
|
-
scopeId: string;
|
|
20
|
-
};
|
package/dist/menu/Menu.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { MenuEntry, MenuItemData } from '@tpc-development/mare-ui-components-core/menu';
|
|
3
|
-
export type { MenuItemData, MenuSeparatorEntry, MenuGroupEntry, MenuEntry, } from '@tpc-development/mare-ui-components-core/menu';
|
|
4
|
-
export interface MenuProperties {
|
|
5
|
-
/** The element that opens the menu on click — typically a `<Button>`. */
|
|
6
|
-
trigger: ReactNode;
|
|
7
|
-
items: MenuEntry[];
|
|
8
|
-
/** Called with the selected item's `value` when an item (or an item
|
|
9
|
-
* inside a group) is chosen. */
|
|
10
|
-
onSelect?: (value: string) => void;
|
|
11
|
-
/** Custom render for an item's content (icon + label). Defaults to
|
|
12
|
-
* `item.icon` (if any) + `item.label`. */
|
|
13
|
-
renderItem?: (item: MenuItemData) => ReactNode;
|
|
14
|
-
/** Where the menu portals to. Ark defaults to `document.body` — override
|
|
15
|
-
* this if your app scopes `data-theme` (or any other CSS custom property)
|
|
16
|
-
* to a sub-tree rather than the document root, otherwise the portaled
|
|
17
|
-
* menu renders outside that scope and loses the tokens. */
|
|
18
|
-
portalContainer?: RefObject<HTMLElement | null>;
|
|
19
|
-
}
|
package/dist/menu/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { MessageSeverity, MessageVariant } from '@tpc-development/mare-ui-components-core/message';
|
|
3
|
-
export type { MessageSeverity, MessageVariant, } from '@tpc-development/mare-ui-components-core/message';
|
|
4
|
-
export interface MessageProperties {
|
|
5
|
-
/** @default 'neutral' */
|
|
6
|
-
severity?: MessageSeverity;
|
|
7
|
-
/** @default 'simple' */
|
|
8
|
-
variant?: MessageVariant;
|
|
9
|
-
title?: string;
|
|
10
|
-
icon?: ReactNode;
|
|
11
|
-
/** @default false */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** @default false */
|
|
14
|
-
closable?: boolean;
|
|
15
|
-
onClose?: () => void;
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
}
|
package/dist/message/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { MultiSelectProperties, MultiSelectOptionItem } from './MultiSelect.types';
|
|
3
|
-
interface MultiSelectReactProperties extends MultiSelectProperties {
|
|
4
|
-
value?: string[];
|
|
5
|
-
onValueChange?: (value: string[]) => void;
|
|
6
|
-
indicator?: ReactNode;
|
|
7
|
-
clearIcon?: ReactNode;
|
|
8
|
-
filterIcon?: ReactNode;
|
|
9
|
-
renderOption?: (option: MultiSelectOptionItem) => ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare function MultiSelect({ value, onValueChange, options, placeholder, searchPlaceholder, size, itemSize, disabled, invalid, loading, clearable, filterable, hasCheckbox, showToggleAll, headerLabel, display, maxSelectedLabels, label, emptyText, indicator, clearIcon, filterIcon, renderOption, }: MultiSelectReactProperties): import("react").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { PaginatorProperties } from './Paginator.types';
|
|
2
|
-
export declare function Paginator({ count, page, defaultPage, onPageChange, pageSize, defaultPageSize, onPageSizeChange, pageLinkSize, showFirstLastLinks, rowsPerPageOptions, rowsPerPageOptionsLabel, }: PaginatorProperties): import("react").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { PanelMenuItemData } from '@tpc-development/mare-ui-components-core/panel-menu';
|
|
3
|
-
export type { PanelMenuItemData } from '@tpc-development/mare-ui-components-core/panel-menu';
|
|
4
|
-
export interface PanelMenuProperties {
|
|
5
|
-
items: PanelMenuItemData[];
|
|
6
|
-
/** Controlled expanded branch values. Omit to let Ark manage it (uncontrolled). */
|
|
7
|
-
expandedValue?: string[];
|
|
8
|
-
defaultExpandedValue?: string[];
|
|
9
|
-
onExpandedChange?: (value: string[]) => void;
|
|
10
|
-
/** Override the default icon + label row entirely. */
|
|
11
|
-
renderItem?: (item: PanelMenuItemData) => ReactNode;
|
|
12
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { PasswordProperties } from './Password.types';
|
|
3
|
-
export declare function Password({ value, onValueChange, size, rounded, invalid, disabled, toggleMask, showIcon, hideIcon, feedback, header, footer, promptLabel, weakLabel, mediumLabel, strongLabel, mediumRegex, strongRegex, ...native }: PasswordProperties): import("react").JSX.Element;
|
|
4
|
-
/** A single requirement row for `footer` (e.g. "At least one uppercase"). */
|
|
5
|
-
export declare function PasswordFooterItem({ children }: {
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
}): import("react").JSX.Element;
|
package/dist/password/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { InputTextProperties } from '../InputText';
|
|
3
|
-
/** Native passthrough same as InputText, minus what SearchField owns/reshapes. */
|
|
4
|
-
type ForwardedInputProperties = Omit<InputTextProperties, 'value' | 'onValueChange' | 'rounded'>;
|
|
5
|
-
export interface SearchFieldProperties extends ForwardedInputProperties {
|
|
6
|
-
/** Controlled value. */
|
|
7
|
-
value?: string;
|
|
8
|
-
/** Controlled change handler — receives the next string value. */
|
|
9
|
-
onValueChange?: (value: string) => void;
|
|
10
|
-
/** Shows a spinner instead of the clear icon. @default false */
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
/** Shows a clear (X) button when there's a value. @default false */
|
|
13
|
-
clearable?: boolean;
|
|
14
|
-
/** Overrides the left icon. @default a search icon */
|
|
15
|
-
leftIcon?: ReactNode;
|
|
16
|
-
/** Overrides the clear button's icon. @default a close (X) icon */
|
|
17
|
-
clearIcon?: ReactNode;
|
|
18
|
-
/** Replaces the clear/spinner logic entirely with your own right-side
|
|
19
|
-
* content (matches the legacy: a custom right icon takes over from the
|
|
20
|
-
* built-in clear button). @default undefined */
|
|
21
|
-
rightIcon?: ReactNode;
|
|
22
|
-
/** Fires when the built-in clear button is clicked (clears `value` too).
|
|
23
|
-
* Does NOT fire for a custom `rightIcon` — wire that yourself. */
|
|
24
|
-
onClear?: () => void;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { SegmentedControlProperties } from './SegmentedControl.types';
|
|
2
|
-
export declare function SegmentedControl({ items, value, defaultValue, onValueChange, size, optionWidth, disabled, renderOption, name, form, id, }: SegmentedControlProperties): import("react").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { SelectFieldProperties, SelectOptionItem } from './SelectField.types';
|
|
3
|
-
interface SelectFieldReactProperties extends SelectFieldProperties {
|
|
4
|
-
value?: string | null;
|
|
5
|
-
onValueChange?: (value: string | null) => void;
|
|
6
|
-
leadingIcon?: ReactNode;
|
|
7
|
-
indicator?: ReactNode;
|
|
8
|
-
clearIcon?: ReactNode;
|
|
9
|
-
checkIcon?: ReactNode;
|
|
10
|
-
renderValue?: (item: SelectOptionItem) => ReactNode;
|
|
11
|
-
renderOption?: (option: SelectOptionItem) => ReactNode;
|
|
12
|
-
}
|
|
13
|
-
export declare function SelectField({ value, onValueChange, options, placeholder, size, disabled, invalid, clearable, label, leadingIcon, indicator, clearIcon, checkIcon, renderValue, renderOption, }: SelectFieldReactProperties): import("react").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SelectFieldSize, SelectOptionItem } from '@tpc-development/mare-ui-components-core/select-field';
|
|
2
|
-
export type { SelectFieldSize, SelectOptionItem, } from '@tpc-development/mare-ui-components-core/select-field';
|
|
3
|
-
export interface SelectFieldProperties {
|
|
4
|
-
options: SelectOptionItem[];
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
size?: SelectFieldSize;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
invalid?: boolean;
|
|
9
|
-
clearable?: boolean;
|
|
10
|
-
label?: string;
|
|
11
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useState as T, useMemo as b } from "react";
|
|
3
|
-
import { createListCollection as V, ComboboxRoot as _, ComboboxLabel as $, ComboboxControl as j, ComboboxTrigger as q, ComboboxClearTrigger as D, ComboboxPositioner as E, ComboboxContent as M, ComboboxInput as O, ComboboxEmpty as P, ComboboxItem as Q, ComboboxItemText as R, ComboboxItemIndicator as X } from "@ark-ui/react/combobox";
|
|
4
|
-
import { o as A } from "./index-ByQ37VXf.js";
|
|
5
|
-
import { I as B } from "./IconX-CpPADKjZ.js";
|
|
6
|
-
import { I as F } from "./IconChevronDown-ev2ML7Ex.js";
|
|
7
|
-
import { I as G } from "./IconSearch-CgM6jEUh.js";
|
|
8
|
-
import { I as H } from "./IconCheck-DzZA6b2U.js";
|
|
9
|
-
const J = ["small", "medium"], K = {
|
|
10
|
-
small: "mare:h-10",
|
|
11
|
-
medium: "mare:h-12"
|
|
12
|
-
}, f = {
|
|
13
|
-
small: "mare:tpc-typography-body-s",
|
|
14
|
-
medium: "mare:tpc-typography-body-m"
|
|
15
|
-
}, U = (r) => `
|
|
16
|
-
mare:relative mare:flex mare:items-center mare:gap-2
|
|
17
|
-
${K[r]}
|
|
18
|
-
mare:px-3 mare:rounded-input mare:border mare:border-strong mare:bg-default
|
|
19
|
-
mare:focus-within:outline-solid mare:focus-within:outline-2 mare:focus-within:outline-accent mare:focus-within:-outline-offset-2
|
|
20
|
-
mare:ark-disabled:text-disabled mare:ark-disabled:border-disabled-default mare:ark-disabled:cursor-not-allowed
|
|
21
|
-
mare:data-[invalid]:outline-solid mare:data-[invalid]:outline-2 mare:data-[invalid]:outline-danger mare:data-[invalid]:-outline-offset-2
|
|
22
|
-
`, p = "mare:flex mare:items-center mare:shrink-0 mare:text-weak mare:[&>svg]:size-5", W = (r) => `
|
|
23
|
-
mare:flex-auto mare:flex mare:items-center mare:cursor-pointer
|
|
24
|
-
mare:bg-transparent mare:text-left mare:truncate mare:text-default ${f[r]}
|
|
25
|
-
`, Y = `
|
|
26
|
-
mare:flex mare:items-center mare:gap-2 mare:mb-1 mare:px-3 mare:h-10
|
|
27
|
-
mare:rounded-input mare:border mare:border-strong mare:bg-default
|
|
28
|
-
mare:focus-within:outline-solid mare:focus-within:outline-2 mare:focus-within:outline-accent mare:focus-within:-outline-offset-2
|
|
29
|
-
`, Z = (r) => `
|
|
30
|
-
mare:flex-auto mare:bg-transparent mare:outline-none mare:text-default
|
|
31
|
-
mare:placeholder:text-weak ${f[r]}
|
|
32
|
-
`, ee = "mare:flex mare:items-center mare:shrink-0 mare:text-base mare:cursor-pointer mare:text-default mare:hover:text-weak", ae = "mare:flex mare:items-center mare:shrink-0 mare:text-lg mare:transition-transform mare:ark-open:rotate-180 mare:text-default", re = `
|
|
33
|
-
mare:flex mare:flex-col mare:gap-0.5 mare:p-1
|
|
34
|
-
mare:rounded-input mare:border mare:border-default mare:bg-raised
|
|
35
|
-
mare:shadow-[0_2px_6px_0_rgba(0,0,0,0.16)]
|
|
36
|
-
mare:max-h-72 mare:overflow-y-auto
|
|
37
|
-
mare:min-w-[var(--reference-width)]
|
|
38
|
-
mare:z-50
|
|
39
|
-
mare:[&[hidden]]:hidden
|
|
40
|
-
`, me = `
|
|
41
|
-
mare:group/option mare:flex mare:items-center mare:justify-between mare:gap-2
|
|
42
|
-
mare:w-full mare:min-h-8 mare:py-2 mare:px-3 mare:cursor-pointer mare:rounded-menu-item
|
|
43
|
-
mare:tpc-typography-body-s mare:text-default
|
|
44
|
-
mare:ark-highlighted:bg-hover
|
|
45
|
-
mare:ark-selected:bg-accent-weak mare:ark-selected:text-accent
|
|
46
|
-
mare:ark-disabled:text-disabled mare:ark-disabled:cursor-not-allowed
|
|
47
|
-
`, te = "mare:flex mare:items-center mare:text-accent", oe = "mare:py-2 mare:px-3 mare:tpc-typography-body-s mare:text-weak", le = "mare:tpc-typography-label-s mare:text-weak mare:mb-1.5 mare:block";
|
|
48
|
-
function fe({
|
|
49
|
-
value: r = null,
|
|
50
|
-
onValueChange: h,
|
|
51
|
-
options: t,
|
|
52
|
-
placeholder: x = "Select…",
|
|
53
|
-
searchPlaceholder: g = "",
|
|
54
|
-
size: w = "small",
|
|
55
|
-
disabled: C = !1,
|
|
56
|
-
invalid: k = !1,
|
|
57
|
-
clearable: y = !1,
|
|
58
|
-
emptyText: v = "Sin resultados",
|
|
59
|
-
label: i,
|
|
60
|
-
leadingIcon: s,
|
|
61
|
-
triggerIcon: I,
|
|
62
|
-
checkIcon: N,
|
|
63
|
-
clearIcon: z,
|
|
64
|
-
renderOption: c
|
|
65
|
-
}) {
|
|
66
|
-
const o = A(w, J, "small"), [l, d] = T(""), n = b(() => {
|
|
67
|
-
const e = l.trim().toLowerCase();
|
|
68
|
-
return e ? t.filter((L) => L.label.toLowerCase().includes(e)) : t;
|
|
69
|
-
}, [l, t]), S = b(
|
|
70
|
-
() => V({
|
|
71
|
-
items: n,
|
|
72
|
-
itemToValue: (e) => e.value,
|
|
73
|
-
itemToString: (e) => e.label,
|
|
74
|
-
isItemDisabled: (e) => !!e.disabled
|
|
75
|
-
}),
|
|
76
|
-
[n]
|
|
77
|
-
), u = t.find((e) => e.value === r)?.label ?? null;
|
|
78
|
-
return /* @__PURE__ */ m(
|
|
79
|
-
_,
|
|
80
|
-
{
|
|
81
|
-
collection: S,
|
|
82
|
-
value: r == null ? [] : [r],
|
|
83
|
-
disabled: C,
|
|
84
|
-
invalid: k,
|
|
85
|
-
openOnClick: !0,
|
|
86
|
-
inputValue: l,
|
|
87
|
-
onValueChange: (e) => h?.(e.value[0] ?? null),
|
|
88
|
-
onInputValueChange: (e) => {
|
|
89
|
-
e.reason === "input-change" && d(e.inputValue);
|
|
90
|
-
},
|
|
91
|
-
onOpenChange: (e) => {
|
|
92
|
-
e.open || d("");
|
|
93
|
-
},
|
|
94
|
-
children: [
|
|
95
|
-
i && /* @__PURE__ */ a($, { className: le, children: i }),
|
|
96
|
-
/* @__PURE__ */ m(j, { className: U(o), children: [
|
|
97
|
-
s && /* @__PURE__ */ a("span", { className: p, children: s }),
|
|
98
|
-
/* @__PURE__ */ a(q, { className: W(o), children: u ? /* @__PURE__ */ a("span", { children: u }) : /* @__PURE__ */ a("span", { className: "mare:text-weak", children: x }) }),
|
|
99
|
-
y && /* @__PURE__ */ a(D, { className: ee, children: z ?? /* @__PURE__ */ a(B, { size: "1em" }) }),
|
|
100
|
-
/* @__PURE__ */ a("span", { className: ae, children: I ?? /* @__PURE__ */ a(F, { size: "1em" }) })
|
|
101
|
-
] }),
|
|
102
|
-
/* @__PURE__ */ a(E, { children: /* @__PURE__ */ m(M, { className: re, children: [
|
|
103
|
-
/* @__PURE__ */ m("div", { className: Y, children: [
|
|
104
|
-
/* @__PURE__ */ a(
|
|
105
|
-
O,
|
|
106
|
-
{
|
|
107
|
-
placeholder: g,
|
|
108
|
-
className: Z(o)
|
|
109
|
-
}
|
|
110
|
-
),
|
|
111
|
-
/* @__PURE__ */ a("span", { className: p, children: /* @__PURE__ */ a(G, {}) })
|
|
112
|
-
] }),
|
|
113
|
-
/* @__PURE__ */ a(P, { className: oe, children: v }),
|
|
114
|
-
n.map((e) => /* @__PURE__ */ m(
|
|
115
|
-
Q,
|
|
116
|
-
{
|
|
117
|
-
item: e,
|
|
118
|
-
className: me,
|
|
119
|
-
children: [
|
|
120
|
-
/* @__PURE__ */ a(R, { children: c ? c(e) : e.label }),
|
|
121
|
-
/* @__PURE__ */ a(
|
|
122
|
-
X,
|
|
123
|
-
{
|
|
124
|
-
className: te,
|
|
125
|
-
children: N ?? /* @__PURE__ */ a(H, { size: "1em" })
|
|
126
|
-
}
|
|
127
|
-
)
|
|
128
|
-
]
|
|
129
|
-
},
|
|
130
|
-
e.value
|
|
131
|
-
))
|
|
132
|
-
] }) })
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
export {
|
|
138
|
-
fe as C
|
|
139
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { a as i, B as n } from "./Button-C2ULmKj3.js";
|
|
3
|
-
import { o as a } from "./index-ByQ37VXf.js";
|
|
4
|
-
const s = i.filter(
|
|
5
|
-
(r) => r !== "ghost" && r !== "danger"
|
|
6
|
-
);
|
|
7
|
-
function p({
|
|
8
|
-
severity: r = "primary",
|
|
9
|
-
...t
|
|
10
|
-
}) {
|
|
11
|
-
const o = a(
|
|
12
|
-
r,
|
|
13
|
-
s,
|
|
14
|
-
"primary"
|
|
15
|
-
);
|
|
16
|
-
return /* @__PURE__ */ e(
|
|
17
|
-
n,
|
|
18
|
-
{
|
|
19
|
-
...t,
|
|
20
|
-
severity: o,
|
|
21
|
-
raised: !0,
|
|
22
|
-
rounded: !0
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
p as F
|
|
28
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { c as o } from "./createReactComponent-Cb6Pzf10.js";
|
|
2
|
-
const e = [["path", { d: "M15 6l-6 6l6 6", key: "svg-0" }]], c = o("outline", "chevron-left", "ChevronLeft", e);
|
|
3
|
-
const t = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], h = o("outline", "chevron-right", "ChevronRight", t);
|
|
4
|
-
export {
|
|
5
|
-
c as I,
|
|
6
|
-
h as a
|
|
7
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as L } from "react/jsx-runtime";
|
|
2
|
-
import { useFieldContext as b, FieldInput as v, FieldRoot as I } from "@ark-ui/react/field";
|
|
3
|
-
import { m as N } from "./InputText.types-KhlkzHMw-BtRY371_.js";
|
|
4
|
-
import { u as f, d as g, m as x, f as y, F as C } from "./field-layout-o6bDLvVU.js";
|
|
5
|
-
import { o as d } from "./index-ByQ37VXf.js";
|
|
6
|
-
function _({
|
|
7
|
-
value: o = "",
|
|
8
|
-
onValueChange: r,
|
|
9
|
-
size: s = "medium",
|
|
10
|
-
rounded: e = !1,
|
|
11
|
-
invalid: c = !1,
|
|
12
|
-
disabled: m = !1,
|
|
13
|
-
placeholder: a,
|
|
14
|
-
...i
|
|
15
|
-
}) {
|
|
16
|
-
const t = f(), n = !b(), h = d(s, N, "medium"), p = g({
|
|
17
|
-
size: h,
|
|
18
|
-
rounded: e,
|
|
19
|
-
hasFloatLabel: t?.hasFloatLabel ?? !1,
|
|
20
|
-
iconSide: t?.iconSide ?? null
|
|
21
|
-
}), F = t?.hasFloatLabel ? " " : a, u = /* @__PURE__ */ l(
|
|
22
|
-
v,
|
|
23
|
-
{
|
|
24
|
-
...i,
|
|
25
|
-
className: p,
|
|
26
|
-
placeholder: F,
|
|
27
|
-
value: o,
|
|
28
|
-
onChange: (S) => r?.(S.target.value)
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
return n ? /* @__PURE__ */ l(
|
|
32
|
-
I,
|
|
33
|
-
{
|
|
34
|
-
invalid: c,
|
|
35
|
-
disabled: m,
|
|
36
|
-
className: "mare:w-full",
|
|
37
|
-
children: u
|
|
38
|
-
}
|
|
39
|
-
) : u;
|
|
40
|
-
}
|
|
41
|
-
const P = ["left", "right"];
|
|
42
|
-
function D({
|
|
43
|
-
icon: o,
|
|
44
|
-
position: r = "left",
|
|
45
|
-
disabled: s = !1,
|
|
46
|
-
onIconClick: e,
|
|
47
|
-
iconLabel: c,
|
|
48
|
-
children: m
|
|
49
|
-
}) {
|
|
50
|
-
const a = d(r, P, "left"), i = f(), t = {
|
|
51
|
-
hasFloatLabel: i?.hasFloatLabel ?? !1,
|
|
52
|
-
iconSide: x(i?.iconSide ?? null, a)
|
|
53
|
-
}, n = y(a, {
|
|
54
|
-
disabled: s,
|
|
55
|
-
interactive: !!e
|
|
56
|
-
});
|
|
57
|
-
return /* @__PURE__ */ l(C.Provider, { value: t, children: /* @__PURE__ */ L(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
className: `mare:relative mare:w-full mare:group ${a === "left" ? "mare-icon-left" : "mare-icon-right"}`,
|
|
61
|
-
children: [
|
|
62
|
-
m,
|
|
63
|
-
e ? /* @__PURE__ */ l(
|
|
64
|
-
"button",
|
|
65
|
-
{
|
|
66
|
-
type: "button",
|
|
67
|
-
disabled: s,
|
|
68
|
-
onClick: e,
|
|
69
|
-
"aria-label": c,
|
|
70
|
-
className: n,
|
|
71
|
-
children: o
|
|
72
|
-
}
|
|
73
|
-
) : /* @__PURE__ */ l("span", { className: n, children: o })
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
) });
|
|
77
|
-
}
|
|
78
|
-
export {
|
|
79
|
-
D as I,
|
|
80
|
-
_ as a
|
|
81
|
-
};
|