@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
package/dist/badge/Badge.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { BadgeSeverity } from '@tpc-development/mare-ui-components-core/badge';
|
|
3
|
-
export type { BadgeSeverity } from '@tpc-development/mare-ui-components-core/badge';
|
|
4
|
-
export interface BadgeProperties {
|
|
5
|
-
/** @default 'accent' */
|
|
6
|
-
severity?: BadgeSeverity;
|
|
7
|
-
/** Shown next to (or instead of) `children`. */
|
|
8
|
-
icon?: ReactNode;
|
|
9
|
-
/** The count/label. A bare dot renders when neither this nor `icon` is set. */
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
}
|
package/dist/badge/index.d.ts
DELETED
package/dist/banner/Banner.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { BannerSeverity } from '@tpc-development/mare-ui-components-core/banner';
|
|
3
|
-
export type { BannerSeverity } from '@tpc-development/mare-ui-components-core/banner';
|
|
4
|
-
export interface BannerProperties {
|
|
5
|
-
/** @default 'neutral' */
|
|
6
|
-
severity?: BannerSeverity;
|
|
7
|
-
title?: string;
|
|
8
|
-
icon?: ReactNode;
|
|
9
|
-
/** @default false */
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** @default false */
|
|
12
|
-
closable?: boolean;
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
}
|
package/dist/banner/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { BreadcrumbItemData } from '@tpc-development/mare-ui-components-core/breadcrumbs';
|
|
3
|
-
export type { BreadcrumbItemData } from '@tpc-development/mare-ui-components-core/breadcrumbs';
|
|
4
|
-
export interface BreadcrumbsProperties {
|
|
5
|
-
items: BreadcrumbItemData[];
|
|
6
|
-
/** Rendered between items. Defaults to `'/'`, matching the Vue DS. */
|
|
7
|
-
separator?: ReactNode;
|
|
8
|
-
/** Custom render for an item's content (icon + label). Defaults to
|
|
9
|
-
* `item.icon` (if any) + `item.label`. */
|
|
10
|
-
renderItem?: (item: BreadcrumbItemData) => ReactNode;
|
|
11
|
-
}
|
package/dist/button/Button.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { ButtonSeverity, ButtonSize, ButtonVariant, IconPosition } from '@tpc-development/mare-ui-components-core/button';
|
|
3
|
-
export type { ButtonSeverity, ButtonSize, ButtonVariant, IconPosition, } from '@tpc-development/mare-ui-components-core/button';
|
|
4
|
-
type ForwardedNativeProperties = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'style' | 'children' | 'color'>;
|
|
5
|
-
export interface ButtonProperties extends ForwardedNativeProperties {
|
|
6
|
-
label?: string;
|
|
7
|
-
severity?: ButtonSeverity;
|
|
8
|
-
size?: ButtonSize;
|
|
9
|
-
variant?: ButtonVariant;
|
|
10
|
-
iconOnly?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
loading?: boolean;
|
|
13
|
-
link?: boolean;
|
|
14
|
-
linkAnimation?: boolean;
|
|
15
|
-
/** Elevation shadow + the taller raised sizing (what makes a FAB a FAB).
|
|
16
|
-
* @default false */
|
|
17
|
-
raised?: boolean;
|
|
18
|
-
/** Fully rounded corners — pill with a label, circle with iconOnly.
|
|
19
|
-
* @default false */
|
|
20
|
-
rounded?: boolean;
|
|
21
|
-
icon?: ReactNode;
|
|
22
|
-
iconPos?: IconPosition;
|
|
23
|
-
children?: ReactNode;
|
|
24
|
-
}
|
package/dist/button/index.d.ts
DELETED
package/dist/checkbox/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ComboboxProperties, ComboboxOptionItem } from './Combobox.types';
|
|
3
|
-
interface ComboboxReactProperties extends ComboboxProperties {
|
|
4
|
-
value?: string | null;
|
|
5
|
-
onValueChange?: (value: string | null) => void;
|
|
6
|
-
leadingIcon?: ReactNode;
|
|
7
|
-
triggerIcon?: ReactNode;
|
|
8
|
-
checkIcon?: ReactNode;
|
|
9
|
-
clearIcon?: ReactNode;
|
|
10
|
-
renderOption?: (option: ComboboxOptionItem) => ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare function Combobox({ value, onValueChange, options, placeholder, searchPlaceholder, size, disabled, invalid, clearable, emptyText, label, leadingIcon, triggerIcon, checkIcon, clearIcon, renderOption, }: ComboboxReactProperties): import("react").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ComboboxSize, ComboboxOptionItem } from '@tpc-development/mare-ui-components-core/combobox';
|
|
2
|
-
export type { ComboboxSize, ComboboxOptionItem, } from '@tpc-development/mare-ui-components-core/combobox';
|
|
3
|
-
export interface ComboboxProperties {
|
|
4
|
-
options: ComboboxOptionItem[];
|
|
5
|
-
/** Text shown in the trigger when nothing is selected. */
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
/** Placeholder for the search input inside the panel. */
|
|
8
|
-
searchPlaceholder?: string;
|
|
9
|
-
size?: ComboboxSize;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
invalid?: boolean;
|
|
12
|
-
/** Show a '×' button in the trigger to clear the selected value. */
|
|
13
|
-
clearable?: boolean;
|
|
14
|
-
label?: string;
|
|
15
|
-
emptyText?: string;
|
|
16
|
-
}
|
package/dist/combobox/index.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { ConfirmDialogProperties } from './ConfirmDialog.types';
|
|
2
|
-
export declare function ConfirmDialog({ open, onOpenChange, header, message, severity, layout, icon, acceptLabel, rejectLabel, onAccept, onReject, portalContainer, }: ConfirmDialogProperties): import("react").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { ConfirmDialogSeverity, ConfirmDialogLayout } from '@tpc-development/mare-ui-components-core/confirm-dialog';
|
|
3
|
-
export type { ConfirmDialogSeverity, ConfirmDialogLayout, } from '@tpc-development/mare-ui-components-core/confirm-dialog';
|
|
4
|
-
export interface ConfirmDialogProperties {
|
|
5
|
-
open: boolean;
|
|
6
|
-
onOpenChange?: (open: boolean) => void;
|
|
7
|
-
header: string;
|
|
8
|
-
message: string;
|
|
9
|
-
/** @default 'none' — 'warning' also swaps the accept button to `danger` severity. */
|
|
10
|
-
severity?: ConfirmDialogSeverity;
|
|
11
|
-
/** @default 'row' */
|
|
12
|
-
layout?: ConfirmDialogLayout;
|
|
13
|
-
icon?: ReactNode;
|
|
14
|
-
/** @default 'Confirm' */
|
|
15
|
-
acceptLabel?: string;
|
|
16
|
-
/** @default 'Cancel' */
|
|
17
|
-
rejectLabel?: string;
|
|
18
|
-
onAccept?: () => void;
|
|
19
|
-
onReject?: () => void;
|
|
20
|
-
portalContainer?: RefObject<HTMLElement | null>;
|
|
21
|
-
}
|
package/dist/counter/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { DatePickerProperties } from './DatePicker.types';
|
|
3
|
-
export declare function DatePicker({ value, onValueChange, selectionMode, size, label, placeholder, disabled, invalid, minDate, maxDate, navigation, doubleMonth, inline, clearable, prices, currency, locale, showTime, timeOnly, showSeconds, footer, leadingIcon, portalContainer, onOpenChange, onVisibleMonthsChange, }: DatePickerProperties): ReactNode;
|
package/dist/dialog/Dialog.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { DialogProperties } from './Dialog.types';
|
|
2
|
-
export declare function Dialog({ open, onOpenChange, size, fullScreen, modal, closeOnEscape, dismissableMask, maskColor, portalContainer, header, footer, children, 'aria-label': ariaLabel, }: DialogProperties): import("react").JSX.Element;
|
package/dist/dialog/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { DividerLayout } from '@tpc-development/mare-ui-components-core/divider';
|
|
3
|
-
export type { DividerLayout } from '@tpc-development/mare-ui-components-core/divider';
|
|
4
|
-
type ForwardedNativeProperties = Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'style' | 'children'>;
|
|
5
|
-
export interface DividerProperties extends ForwardedNativeProperties {
|
|
6
|
-
layout?: DividerLayout;
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
}
|
package/dist/divider/index.d.ts
DELETED
package/dist/drawer/Drawer.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { DrawerProperties } from './Drawer.types';
|
|
2
|
-
export declare function Drawer({ open, onOpenChange, position, modal, closeOnEscape, dismissableMask, maskColor, shadow, portalContainer, header, footer, children, 'aria-label': ariaLabel, }: DrawerProperties): import("react").JSX.Element;
|
package/dist/drawer/index.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { FilterChipProperties } from './FilterChip.types';
|
|
2
|
-
export declare function FilterChip({ value, size, disabled, dropdown, selected: selectedProp, onSelectedChange, dropdownOpen, onDropdownOpenChange, onToggleDropdown, children, }: FilterChipProperties): import("react").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { FilterChipDropdownMultipleProperties, FilterChipOptionItem } from './FilterChipDropdownMultiple.types';
|
|
3
|
-
interface FilterChipDropdownMultipleReactProperties extends FilterChipDropdownMultipleProperties {
|
|
4
|
-
value?: string[];
|
|
5
|
-
onValueChange?: (value: string[]) => void;
|
|
6
|
-
renderOption?: (option: FilterChipOptionItem) => ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare function FilterChipDropdownMultiple({ value, onValueChange, options, placeholder, size, disabled, invalid, filter, headerLabel, hasCheckbox, showToggleAll, renderOption, }: FilterChipDropdownMultipleReactProperties): import("react").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FilterChipDropdownSize, FilterChipOptionItem } from '@tpc-development/mare-ui-components-core/filter-chip-dropdown-multiple';
|
|
2
|
-
export type { FilterChipDropdownSize, FilterChipOptionItem, } from '@tpc-development/mare-ui-components-core/filter-chip-dropdown-multiple';
|
|
3
|
-
export interface FilterChipDropdownMultipleProperties {
|
|
4
|
-
options: FilterChipOptionItem[];
|
|
5
|
-
/** @default 'Select…' */
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
/** @default 'medium' */
|
|
8
|
-
size?: FilterChipDropdownSize;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
invalid?: boolean;
|
|
11
|
-
/** Shows a search field inside the panel. @default false */
|
|
12
|
-
filter?: boolean;
|
|
13
|
-
/** Text shown in the panel header, above the option list. */
|
|
14
|
-
headerLabel?: string;
|
|
15
|
-
/** Shows a checkbox next to each option (and in the header, when showToggleAll is on). @default true */
|
|
16
|
-
hasCheckbox?: boolean;
|
|
17
|
-
/** Shows the "select all" header row. @default false */
|
|
18
|
-
showToggleAll?: boolean;
|
|
19
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { FilterChipDropdownSingleProperties, FilterChipOptionItem } from './FilterChipDropdownSingle.types';
|
|
3
|
-
interface FilterChipDropdownSingleReactProperties extends FilterChipDropdownSingleProperties {
|
|
4
|
-
value?: string | null;
|
|
5
|
-
onValueChange?: (value: string | null) => void;
|
|
6
|
-
renderOption?: (option: FilterChipOptionItem) => ReactNode;
|
|
7
|
-
checkIcon?: ReactNode;
|
|
8
|
-
clearIcon?: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare function FilterChipDropdownSingle({ value, onValueChange, options, placeholder, size, disabled, invalid, filter, clearable, renderOption, checkIcon, clearIcon, }: FilterChipDropdownSingleReactProperties): import("react").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FilterChipDropdownSize, FilterChipOptionItem } from '@tpc-development/mare-ui-components-core/filter-chip-dropdown-single';
|
|
2
|
-
export type { FilterChipDropdownSize, FilterChipOptionItem, } from '@tpc-development/mare-ui-components-core/filter-chip-dropdown-single';
|
|
3
|
-
export interface FilterChipDropdownSingleProperties {
|
|
4
|
-
options: FilterChipOptionItem[];
|
|
5
|
-
/** @default 'Select…' */
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
/** @default 'medium' */
|
|
8
|
-
size?: FilterChipDropdownSize;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
invalid?: boolean;
|
|
11
|
-
/** Shows a search field inside the panel. @default false */
|
|
12
|
-
filter?: boolean;
|
|
13
|
-
/** Shows a '×' button in the trigger to clear the selected value. @default false */
|
|
14
|
-
clearable?: boolean;
|
|
15
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FilterChipGroupProperties } from './FilterChipGroup.types';
|
|
2
|
-
interface FilterChipGroupContextValue {
|
|
3
|
-
isSelected: (value: string) => boolean;
|
|
4
|
-
toggle: (value: string) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const FilterChipGroupContext: import('react').Context<FilterChipGroupContextValue | null>;
|
|
7
|
-
export declare function FilterChipGroup({ multiple, value, onValueChange, children, }: FilterChipGroupProperties): import("react").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { FilterChipGroupValue } from '@tpc-development/mare-ui-components-core/filter-chip-group';
|
|
3
|
-
export type { FilterChipGroupValue } from '@tpc-development/mare-ui-components-core/filter-chip-group';
|
|
4
|
-
export interface FilterChipGroupProperties {
|
|
5
|
-
/** @default false */
|
|
6
|
-
multiple?: boolean;
|
|
7
|
-
/** String (or undefined) when multiple is false; string[] when multiple is true. */
|
|
8
|
-
value?: FilterChipGroupValue;
|
|
9
|
-
onValueChange?: (value: FilterChipGroupValue) => void;
|
|
10
|
-
/** The FilterChip children. Each needs a distinct `value` (or string children) to be identified within the group. */
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ButtonProperties } from '../Button';
|
|
2
|
-
import { FloatingActionButtonSeverity } from '@tpc-development/mare-ui-components-core/floating-action-button';
|
|
3
|
-
export type { FloatingActionButtonSeverity } from '@tpc-development/mare-ui-components-core/floating-action-button';
|
|
4
|
-
type ForwardedButtonProperties = Omit<ButtonProperties, 'severity' | 'raised' | 'rounded'>;
|
|
5
|
-
export interface FloatingActionButtonProperties extends ForwardedButtonProperties {
|
|
6
|
-
/** Visual hierarchy. Unlike Button, 'ghost' and 'danger' are excluded.
|
|
7
|
-
* @default 'primary' */
|
|
8
|
-
severity?: FloatingActionButtonSeverity;
|
|
9
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ImageItemRatio } from '@tpc-development/mare-ui-components-core/image-item';
|
|
3
|
-
export type { ImageItemRatio } from '@tpc-development/mare-ui-components-core/image-item';
|
|
4
|
-
export interface ImageItemProperties {
|
|
5
|
-
ratio?: ImageItemRatio;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}
|
package/dist/index/index.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
export { Accordion } from '../accordion';
|
|
2
|
-
export type { AccordionProperties, AccordionItemProperties, AccordionItemData, } from '../accordion';
|
|
3
|
-
export { Avatar } from '../avatar';
|
|
4
|
-
export type { AvatarProperties, AvatarSize } from '../avatar';
|
|
5
|
-
export { Badge } from '../badge';
|
|
6
|
-
export type { BadgeProperties, BadgeSeverity } from '../badge';
|
|
7
|
-
export { OverlayBadge } from '../overlay-badge';
|
|
8
|
-
export type { OverlayBadgeProperties } from '../overlay-badge';
|
|
9
|
-
export { Tag } from '../tag';
|
|
10
|
-
export type { TagProperties, TagSeverity, TagSize } from '../tag';
|
|
11
|
-
export { TagChip } from '../tag-chip';
|
|
12
|
-
export type { TagChipProperties, TagChipSeverity, TagChipSize, } from '../tag-chip';
|
|
13
|
-
export { FilterChip } from '../filter-chip';
|
|
14
|
-
export type { FilterChipProperties, FilterChipSize, } from '../filter-chip';
|
|
15
|
-
export { FilterChipGroup } from '../filter-chip-group';
|
|
16
|
-
export type { FilterChipGroupProperties, FilterChipGroupValue, } from '../filter-chip-group';
|
|
17
|
-
export { FilterChipDropdownSingle } from '../filter-chip-dropdown-single';
|
|
18
|
-
export type { FilterChipDropdownSingleProperties, FilterChipDropdownSize as FilterChipDropdownSingleSize, FilterChipOptionItem as FilterChipDropdownSingleOptionItem, } from '../filter-chip-dropdown-single';
|
|
19
|
-
export { FilterChipDropdownMultiple } from '../filter-chip-dropdown-multiple';
|
|
20
|
-
export type { FilterChipDropdownMultipleProperties, FilterChipDropdownSize as FilterChipDropdownMultipleSize, FilterChipOptionItem as FilterChipDropdownMultipleOptionItem, } from '../filter-chip-dropdown-multiple';
|
|
21
|
-
export { Banner } from '../banner';
|
|
22
|
-
export type { BannerProperties, BannerSeverity } from '../banner';
|
|
23
|
-
export { Message } from '../message';
|
|
24
|
-
export type { MessageProperties, MessageSeverity, MessageVariant, } from '../message';
|
|
25
|
-
export { Button } from '../button';
|
|
26
|
-
export type { ButtonProperties, ButtonSeverity, ButtonSize, ButtonVariant, IconPosition, } from '../button';
|
|
27
|
-
export { FloatingActionButton } from '../floating-action-button';
|
|
28
|
-
export type { FloatingActionButtonProperties, FloatingActionButtonSeverity, } from '../floating-action-button';
|
|
29
|
-
export { Breadcrumbs } from '../breadcrumbs';
|
|
30
|
-
export type { BreadcrumbsProperties, BreadcrumbItemData, } from '../breadcrumbs';
|
|
31
|
-
export { SelectField } from '../select-field';
|
|
32
|
-
export type { SelectFieldProperties, SelectFieldSize, SelectOptionItem, } from '../select-field';
|
|
33
|
-
export { Combobox } from '../combobox';
|
|
34
|
-
export type { ComboboxProperties, ComboboxSize, ComboboxOptionItem, } from '../combobox';
|
|
35
|
-
export { MultiSelect } from '../multi-select';
|
|
36
|
-
export type { MultiSelectProperties, MultiSelectSize, MultiSelectItemSize, MultiSelectDisplay, MultiSelectOptionItem, } from '../multi-select';
|
|
37
|
-
export { Tabs } from '../tabs';
|
|
38
|
-
export type { TabsProperties, TabItem, TabSize } from '../tabs';
|
|
39
|
-
export { ProgressSpinner } from '../progress-spinner';
|
|
40
|
-
export type { ProgressSpinnerProperties } from '../progress-spinner';
|
|
41
|
-
export { ProgressBar } from '../progress-bar';
|
|
42
|
-
export type { ProgressBarProperties, ProgressBarMode, } from '../progress-bar';
|
|
43
|
-
export { InputText, CharacterCount, FormField, FloatLabel, IconField, HelperText, } from '../input-text';
|
|
44
|
-
export type { InputTextProperties, InputTextSize, CharacterCountProperties, } from '../input-text';
|
|
45
|
-
export { Textarea } from '../textarea';
|
|
46
|
-
export type { TextareaProperties } from '../textarea';
|
|
47
|
-
export { SearchField } from '../search-field';
|
|
48
|
-
export type { SearchFieldProperties } from '../search-field';
|
|
49
|
-
export { Password, PasswordFooterItem } from '../password';
|
|
50
|
-
export type { PasswordProperties } from '../password';
|
|
51
|
-
export { InputNumber } from '../input-number';
|
|
52
|
-
export type { InputNumberProperties, InputNumberSize, } from '../input-number';
|
|
53
|
-
export { InputOtp } from '../input-otp';
|
|
54
|
-
export type { InputOtpProperties, InputOtpSize } from '../input-otp';
|
|
55
|
-
export { Counter } from '../counter';
|
|
56
|
-
export type { CounterProperties, CounterSize, CounterVariant, } from '../counter';
|
|
57
|
-
export { ExpandableCounter } from '../expandable-counter';
|
|
58
|
-
export type { ExpandableCounterProperties } from '../expandable-counter';
|
|
59
|
-
export { Checkbox } from '../checkbox';
|
|
60
|
-
export type { CheckboxProperties, CheckboxSize, CheckedState, } from '../checkbox';
|
|
61
|
-
export { RadioGroup } from '../radio-group';
|
|
62
|
-
export type { RadioGroupProperties, RadioGroupSize, RadioGroupOrientation, RadioOptionItem, } from '../radio-group';
|
|
63
|
-
export { Switch } from '../switch';
|
|
64
|
-
export type { SwitchProperties, SwitchSize } from '../switch';
|
|
65
|
-
export { Dialog, DialogHeader, DialogFooter } from '../dialog';
|
|
66
|
-
export type { DialogProperties, DialogSize, DialogHeaderProperties, DialogFooterProperties, DialogFooterLayout, } from '../dialog';
|
|
67
|
-
export { ConfirmDialog } from '../confirm-dialog';
|
|
68
|
-
export type { ConfirmDialogProperties, ConfirmDialogSeverity, ConfirmDialogLayout, } from '../confirm-dialog';
|
|
69
|
-
export { Drawer, DrawerHeader, DrawerFooter } from '../drawer';
|
|
70
|
-
export type { DrawerProperties, DrawerPosition, DrawerHeaderProperties, DrawerFooterProperties, } from '../drawer';
|
|
71
|
-
export { Menu } from '../menu';
|
|
72
|
-
export type { MenuProperties, MenuItemData, MenuSeparatorEntry, MenuGroupEntry, MenuEntry, } from '../menu';
|
|
73
|
-
export { PanelMenu } from '../panel-menu';
|
|
74
|
-
export type { PanelMenuProperties, PanelMenuItemData, } from '../panel-menu';
|
|
75
|
-
export { Snackbar, createSnackbar } from '../snackbar';
|
|
76
|
-
export type { SnackbarProperties, SnackbarController, SnackbarConfig, SnackbarShowOptions, SnackbarSeverity, SnackbarPlacement, } from '../snackbar';
|
|
77
|
-
export { Stepper } from '../stepper';
|
|
78
|
-
export type { StepperProperties, StepItemData, StepperOrientation, StepperIndicatorVariant, } from '../stepper';
|
|
79
|
-
export { DatePicker } from '../date-picker';
|
|
80
|
-
export type { DatePickerProperties, DatePickerSelectionMode, DatePickerValue, DatePriceData, } from '../date-picker';
|
|
81
|
-
export { Paginator } from '../paginator';
|
|
82
|
-
export type { PaginatorProperties } from '../paginator';
|
|
83
|
-
export { ImageItem } from '../image-item';
|
|
84
|
-
export type { ImageItemProperties, ImageItemRatio, } from '../image-item';
|
|
85
|
-
export { ImageSlider } from '../image-slider';
|
|
86
|
-
export type { ImageSliderProperties } from '../image-slider';
|
|
87
|
-
export { SegmentedControl } from '../segmented-control';
|
|
88
|
-
export type { SegmentedControlProperties, SegmentedControlSize, SegmentedControlOptionWidth, SegmentedControlOptionItem, } from '../segmented-control';
|
|
89
|
-
export { Skeleton } from '../skeleton';
|
|
90
|
-
export type { SkeletonProperties, SkeletonShape } from '../skeleton';
|
|
91
|
-
export { Slider } from '../slider';
|
|
92
|
-
export type { SliderProperties, SliderOrientation } from '../slider';
|
|
93
|
-
export { Divider } from '../divider';
|
|
94
|
-
export type { DividerProperties, DividerLayout, } from '../divider';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { InputNumberProperties } from './InputNumber.types';
|
|
2
|
-
export declare function InputNumber({ value, onValueChange, size, rounded, invalid, disabled, readOnly, step, clampValueOnBlur, placeholder, id, name, min, max, formatOptions, locale, allowMouseWheel, }: InputNumberProperties): import("react").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { InputOtpProperties } from './InputOtp.types';
|
|
2
|
-
export declare function InputOtp({ length, value, defaultValue, onValueChange, onComplete, size, mask, integerOnly, placeholder, invalid, disabled, readOnly, required, autoFocus, name, id, }: InputOtpProperties): import("react").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface FormFieldProperties {
|
|
3
|
-
invalid?: boolean;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare function FormField({ invalid, disabled, required, children, }: FormFieldProperties): import("react").JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare const ICON_FIELD_POSITIONS: readonly ["left", "right"];
|
|
3
|
-
export type IconFieldPosition = (typeof ICON_FIELD_POSITIONS)[number];
|
|
4
|
-
export interface IconFieldProperties {
|
|
5
|
-
icon: ReactNode;
|
|
6
|
-
position?: IconFieldPosition;
|
|
7
|
-
/** Dims the icon to match a disabled sibling input. IconField can't see
|
|
8
|
-
* that prop on its own (it lives on the input, not on IconField) — pass
|
|
9
|
-
* it through explicitly when composing (see SearchField). @default false */
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** Makes the icon a real click target (a `<button>`, not a decorative
|
|
12
|
-
* `<span>`). @default undefined (decorative) */
|
|
13
|
-
onIconClick?: () => void;
|
|
14
|
-
/** Accessible name for the button, when `onIconClick` is set. */
|
|
15
|
-
iconLabel?: string;
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
}
|
|
18
|
-
export declare function IconField({ icon, position, disabled, onIconClick, iconLabel, children, }: IconFieldProperties): import("react").JSX.Element;
|