@mezzanine-ui/react 1.0.0-beta.6 → 1.0.0-beta.7
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/Accordion/Accordion.d.ts +23 -1
- package/Accordion/Accordion.js +59 -11
- package/Accordion/AccordionActions.d.ts +13 -0
- package/Accordion/AccordionActions.js +24 -0
- package/Accordion/AccordionContent.d.ts +9 -0
- package/Accordion/{AccordionDetails.js → AccordionContent.js} +4 -6
- package/Accordion/AccordionControlContext.d.ts +2 -2
- package/Accordion/AccordionGroup.d.ts +10 -0
- package/Accordion/AccordionGroup.js +26 -0
- package/Accordion/AccordionTitle.d.ts +14 -0
- package/Accordion/AccordionTitle.js +56 -0
- package/Accordion/index.d.ts +8 -4
- package/Accordion/index.js +4 -2
- package/AutoComplete/AutoComplete.d.ts +20 -6
- package/AutoComplete/AutoComplete.js +118 -30
- package/Backdrop/Backdrop.js +15 -19
- package/Calendar/CalendarDays.js +1 -1
- package/Card/BaseCard.d.ts +11 -0
- package/Card/BaseCard.js +48 -0
- package/Card/BaseCardSkeleton.d.ts +14 -0
- package/Card/BaseCardSkeleton.js +18 -0
- package/Card/CardGroup.d.ts +47 -0
- package/Card/CardGroup.js +147 -0
- package/Card/FourThumbnailCard.d.ts +14 -0
- package/Card/FourThumbnailCard.js +73 -0
- package/Card/FourThumbnailCardSkeleton.d.ts +14 -0
- package/Card/FourThumbnailCardSkeleton.js +20 -0
- package/Card/QuickActionCard.d.ts +12 -0
- package/Card/QuickActionCard.js +23 -0
- package/Card/QuickActionCardSkeleton.d.ts +14 -0
- package/Card/QuickActionCardSkeleton.js +18 -0
- package/Card/SingleThumbnailCard.d.ts +13 -0
- package/Card/SingleThumbnailCard.js +44 -0
- package/Card/SingleThumbnailCardSkeleton.d.ts +19 -0
- package/Card/SingleThumbnailCardSkeleton.js +18 -0
- package/Card/Thumbnail.d.ts +12 -0
- package/Card/Thumbnail.js +18 -0
- package/Card/ThumbnailCardInfo.d.ts +34 -0
- package/Card/ThumbnailCardInfo.js +43 -0
- package/Card/index.d.ts +43 -4
- package/Card/index.js +19 -2
- package/Card/typings.d.ts +442 -0
- package/Checkbox/Checkbox.d.ts +8 -0
- package/Checkbox/Checkbox.js +3 -2
- package/Checkbox/CheckboxGroup.js +1 -1
- package/ContentHeader/ContentHeader.d.ts +22 -70
- package/ContentHeader/ContentHeader.js +1 -1
- package/ContentHeader/ContentHeaderResponsive.d.ts +9 -0
- package/ContentHeader/ContentHeaderResponsive.js +7 -0
- package/ContentHeader/utils.d.ts +3 -3
- package/ContentHeader/utils.js +66 -20
- package/Cropper/Cropper.d.ts +66 -0
- package/Cropper/Cropper.js +115 -0
- package/Cropper/CropperElement.d.ts +10 -0
- package/Cropper/CropperElement.js +892 -0
- package/Cropper/index.d.ts +18 -0
- package/Cropper/index.js +8 -0
- package/Cropper/tools.d.ts +90 -0
- package/Cropper/tools.js +143 -0
- package/Cropper/typings.d.ts +69 -0
- package/Cropper/utils/cropper-calculations.d.ts +39 -0
- package/Cropper/utils/cropper-calculations.js +95 -0
- package/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.js +14 -1
- package/Dropdown/Dropdown.d.ts +7 -1
- package/Dropdown/Dropdown.js +31 -14
- package/Dropdown/DropdownItem.d.ts +7 -1
- package/Dropdown/DropdownItem.js +36 -6
- package/Dropdown/DropdownItemCard.js +2 -1
- package/FloatingButton/FloatingButton.d.ts +21 -0
- package/FloatingButton/FloatingButton.js +18 -0
- package/FloatingButton/index.d.ts +2 -0
- package/FloatingButton/index.js +1 -0
- package/Form/FormField.d.ts +21 -10
- package/Form/FormField.js +12 -4
- package/Input/Input.js +9 -2
- package/Message/Message.js +1 -1
- package/MultipleDatePicker/MultipleDatePicker.js +2 -2
- package/Navigation/NavigationHeader.js +1 -1
- package/Picker/FormattedInput.d.ts +1 -1
- package/Picker/FormattedInput.js +2 -1
- package/Picker/PickerTriggerWithSeparator.d.ts +10 -0
- package/Picker/PickerTriggerWithSeparator.js +2 -2
- package/Picker/useDateInputFormatter.d.ts +6 -0
- package/Picker/useDateInputFormatter.js +4 -1
- package/Select/Select.d.ts +2 -8
- package/Select/Select.js +12 -33
- package/Select/SelectTrigger.js +21 -7
- package/Select/index.d.ts +0 -4
- package/Select/index.js +0 -2
- package/Select/typings.d.ts +0 -4
- package/Select/useSelectTriggerTags.d.ts +1 -1
- package/Select/useSelectTriggerTags.js +9 -6
- package/Separator/Separator.d.ts +14 -0
- package/Separator/Separator.js +17 -0
- package/Separator/index.d.ts +2 -0
- package/Separator/index.js +1 -0
- package/Table/utils/useTableRowSelection.js +6 -0
- package/Tag/TagGroup.d.ts +4 -2
- package/Tag/TagGroup.js +7 -4
- package/TextField/TextField.d.ts +1 -1
- package/TextField/TextField.js +63 -9
- package/TimePanel/TimePanelColumn.js +19 -12
- package/index.d.ts +27 -28
- package/index.js +23 -25
- package/package.json +4 -4
- package/Accordion/AccordionDetails.d.ts +0 -9
- package/Accordion/AccordionSummary.d.ts +0 -18
- package/Accordion/AccordionSummary.js +0 -51
- package/Alert/Alert.d.ts +0 -20
- package/Alert/Alert.js +0 -18
- package/Alert/index.d.ts +0 -3
- package/Alert/index.js +0 -1
- package/Card/Card.d.ts +0 -51
- package/Card/Card.js +0 -20
- package/Card/CardActions.d.ts +0 -34
- package/Card/CardActions.js +0 -15
- package/ConfirmActions/ConfirmActions.d.ts +0 -46
- package/ConfirmActions/ConfirmActions.js +0 -15
- package/ConfirmActions/index.d.ts +0 -2
- package/ConfirmActions/index.js +0 -1
- package/Select/Option.d.ts +0 -18
- package/Select/Option.js +0 -45
- package/Select/TreeSelect.d.ts +0 -72
- package/Select/TreeSelect.js +0 -205
- package/Tree/Tree.d.ts +0 -70
- package/Tree/Tree.js +0 -139
- package/Tree/TreeNode.d.ts +0 -40
- package/Tree/TreeNode.js +0 -50
- package/Tree/TreeNodeList.d.ts +0 -24
- package/Tree/TreeNodeList.js +0 -28
- package/Tree/getTreeNodeEntities.d.ts +0 -11
- package/Tree/getTreeNodeEntities.js +0 -92
- package/Tree/index.d.ts +0 -13
- package/Tree/index.js +0 -7
- package/Tree/toggleValue.d.ts +0 -4
- package/Tree/toggleValue.js +0 -19
- package/Tree/traverseTree.d.ts +0 -2
- package/Tree/traverseTree.js +0 -11
- package/Tree/typings.d.ts +0 -16
- package/Tree/useTreeExpandedValue.d.ts +0 -14
- package/Tree/useTreeExpandedValue.js +0 -33
package/index.js
CHANGED
|
@@ -28,13 +28,16 @@ export { useSelectValueControl } from './Form/useSelectValueControl.js';
|
|
|
28
28
|
export { useSwitchControlValue } from './Form/useSwitchControlValue.js';
|
|
29
29
|
export { default as Button } from './Button/Button.js';
|
|
30
30
|
export { default as ButtonGroup } from './Button/ButtonGroup.js';
|
|
31
|
+
export { default as Cropper } from './Cropper/Cropper.js';
|
|
31
32
|
export { default as Typography } from './Typography/Typography.js';
|
|
33
|
+
export { BaseCardGeneric as BaseCard, FourThumbnailCardGeneric as FourThumbnailCard, QuickActionCardGeneric as QuickActionCard, SingleThumbnailCardGeneric as SingleThumbnailCard, ThumbnailGeneric as Thumbnail } from './Card/index.js';
|
|
32
34
|
export { default as Selection } from './Selection/Selection.js';
|
|
33
35
|
export { default as DropdownAction } from './Dropdown/DropdownAction.js';
|
|
34
36
|
export { default as DropdownItem } from './Dropdown/DropdownItem.js';
|
|
35
37
|
export { default as DropdownItemCard } from './Dropdown/DropdownItemCard.js';
|
|
36
38
|
export { default as DropdownStatus } from './Dropdown/DropdownStatus.js';
|
|
37
39
|
export { default as Icon } from './Icon/Icon.js';
|
|
40
|
+
export { default as Separator } from './Separator/Separator.js';
|
|
38
41
|
export { default as Breadcrumb } from './Breadcrumb/Breadcrumb.js';
|
|
39
42
|
export { default as Drawer } from './Drawer/Drawer.js';
|
|
40
43
|
export { default as Menu } from './Menu/Menu.js';
|
|
@@ -55,13 +58,17 @@ export { default as Stepper } from './Stepper/Stepper.js';
|
|
|
55
58
|
export { default as Tab } from './Tab/Tab.js';
|
|
56
59
|
export { default as TabItem } from './Tab/TabItem.js';
|
|
57
60
|
export { default as Accordion } from './Accordion/Accordion.js';
|
|
58
|
-
export { default as
|
|
59
|
-
export { default as
|
|
61
|
+
export { default as AccordionActions } from './Accordion/AccordionActions.js';
|
|
62
|
+
export { default as AccordionContent } from './Accordion/AccordionContent.js';
|
|
63
|
+
export { default as AccordionGroup } from './Accordion/AccordionGroup.js';
|
|
64
|
+
export { default as AccordionTitle } from './Accordion/AccordionTitle.js';
|
|
60
65
|
export { default as Badge } from './Badge/Badge.js';
|
|
61
66
|
export { default as BadgeContainer } from './Badge/BadgeContainer.js';
|
|
62
|
-
export { default as
|
|
63
|
-
export { default as
|
|
64
|
-
export { default as
|
|
67
|
+
export { default as BaseCardSkeleton } from './Card/BaseCardSkeleton.js';
|
|
68
|
+
export { default as CardGroup } from './Card/CardGroup.js';
|
|
69
|
+
export { default as FourThumbnailCardSkeleton } from './Card/FourThumbnailCardSkeleton.js';
|
|
70
|
+
export { default as QuickActionCardSkeleton } from './Card/QuickActionCardSkeleton.js';
|
|
71
|
+
export { default as SingleThumbnailCardSkeleton } from './Card/SingleThumbnailCardSkeleton.js';
|
|
65
72
|
export { default as Description } from './Description/Description.js';
|
|
66
73
|
export { default as DescriptionContent } from './Description/DescriptionContent.js';
|
|
67
74
|
export { default as DescriptionGroup } from './Description/DescriptionGroup.js';
|
|
@@ -72,13 +79,11 @@ export { default as Pagination } from './Pagination/Pagination.js';
|
|
|
72
79
|
export { default as PaginationItem } from './Pagination/PaginationItem.js';
|
|
73
80
|
export { default as PaginationJumper } from './Pagination/PaginationJumper.js';
|
|
74
81
|
export { default as PaginationPageSize } from './Pagination/PaginationPageSize.js';
|
|
82
|
+
export { default as Section } from './Section/Section.js';
|
|
75
83
|
export { Table } from './Table/Table.js';
|
|
76
84
|
export { default as Tag } from './Tag/Tag.js';
|
|
77
85
|
export { default as TagGroup } from './Tag/TagGroup.js';
|
|
78
86
|
export { default as Tooltip } from './Tooltip/Tooltip.js';
|
|
79
|
-
export { default as Tree } from './Tree/Tree.js';
|
|
80
|
-
export { default as TreeNode } from './Tree/TreeNode.js';
|
|
81
|
-
export { default as TreeNodeList } from './Tree/TreeNodeList.js';
|
|
82
87
|
export { default as AutoComplete } from './AutoComplete/AutoComplete.js';
|
|
83
88
|
export { default as CheckAll } from './Checkbox/CheckAll.js';
|
|
84
89
|
export { default as Checkbox } from './Checkbox/Checkbox.js';
|
|
@@ -89,24 +94,22 @@ export { default as DateRangePicker } from './DateRangePicker/DateRangePicker.js
|
|
|
89
94
|
export { default as DateRangePickerCalendar } from './DateRangePicker/DateRangePickerCalendar.js';
|
|
90
95
|
export { default as DateTimePicker } from './DateTimePicker/DateTimePicker.js';
|
|
91
96
|
export { default as DateTimeRangePicker } from './DateTimeRangePicker/DateTimeRangePicker.js';
|
|
92
|
-
export { default as
|
|
93
|
-
export { default as
|
|
97
|
+
export { default as Filter } from './FilterArea/Filter.js';
|
|
98
|
+
export { default as FilterArea } from './FilterArea/FilterArea.js';
|
|
99
|
+
export { default as FilterLine } from './FilterArea/FilterLine.js';
|
|
94
100
|
export { default as FormField } from './Form/FormField.js';
|
|
95
101
|
export { default as FormHintText } from './Form/FormHintText.js';
|
|
96
102
|
export { default as FormLabel } from './Form/FormLabel.js';
|
|
97
|
-
export { default as FilterArea } from './FilterArea/FilterArea.js';
|
|
98
|
-
export { default as FilterLine } from './FilterArea/FilterLine.js';
|
|
99
|
-
export { default as Filter } from './FilterArea/Filter.js';
|
|
100
103
|
export { default as Input } from './Input/Input.js';
|
|
104
|
+
export { default as MultipleDatePicker } from './MultipleDatePicker/MultipleDatePicker.js';
|
|
105
|
+
export { default as MultipleDatePickerTrigger } from './MultipleDatePicker/MultipleDatePickerTrigger.js';
|
|
101
106
|
export { default as PickerTrigger } from './Picker/PickerTrigger.js';
|
|
102
107
|
export { default as RangePickerTrigger } from './Picker/RangePickerTrigger.js';
|
|
103
108
|
export { default as Radio } from './Radio/Radio.js';
|
|
104
109
|
export { default as RadioGroup } from './Radio/RadioGroup.js';
|
|
105
|
-
export { default as Option } from './Select/Option.js';
|
|
106
110
|
export { default as Select } from './Select/Select.js';
|
|
107
111
|
export { default as SelectTrigger } from './Select/SelectTrigger.js';
|
|
108
112
|
export { default as SelectTriggerTags } from './Select/SelectTriggerTags.js';
|
|
109
|
-
export { default as TreeSelect } from './Select/TreeSelect.js';
|
|
110
113
|
export { default as Slider } from './Slider/Slider.js';
|
|
111
114
|
export { default as Textarea } from './Textarea/Textarea.js';
|
|
112
115
|
export { default as TextField } from './TextField/TextField.js';
|
|
@@ -115,11 +118,9 @@ export { default as TimePickerPanel } from './TimePicker/TimePickerPanel.js';
|
|
|
115
118
|
export { default as TimeRangePicker } from './TimeRangePicker/TimeRangePicker.js';
|
|
116
119
|
export { default as Switch } from './Toggle/Toggle.js';
|
|
117
120
|
export { default as Upload } from './Upload/Upload.js';
|
|
118
|
-
export { default as Uploader } from './Upload/Uploader.js';
|
|
119
121
|
export { default as UploadItem } from './Upload/UploadItem.js';
|
|
120
122
|
export { default as UploadPictureCard } from './Upload/UploadPictureCard.js';
|
|
121
|
-
export { default as
|
|
122
|
-
export { default as ConfirmActions } from './ConfirmActions/ConfirmActions.js';
|
|
123
|
+
export { default as Uploader } from './Upload/Uploader.js';
|
|
123
124
|
export { default as Message } from './Message/Message.js';
|
|
124
125
|
export { default as Modal } from './Modal/Modal.js';
|
|
125
126
|
export { default as ModalBodyForVerification } from './Modal/ModalBodyForVerification.js';
|
|
@@ -133,10 +134,11 @@ export { default as Spin } from './Spin/Spin.js';
|
|
|
133
134
|
export { default as InlineMessage } from './InlineMessage/InlineMessage.js';
|
|
134
135
|
export { default as InlineMessageGroup } from './InlineMessage/InlineMessageGroup.js';
|
|
135
136
|
export { default as ResultState } from './ResultState/ResultState.js';
|
|
137
|
+
export { default as AlertBanner } from './AlertBanner/AlertBanner.js';
|
|
136
138
|
export { default as Anchor } from './Anchor/Anchor.js';
|
|
137
139
|
export { default as AnchorGroup } from './Anchor/AnchorGroup.js';
|
|
138
140
|
export { default as Backdrop } from './Backdrop/Backdrop.js';
|
|
139
|
-
export { default as
|
|
141
|
+
export { default as FloatingButton } from './FloatingButton/FloatingButton.js';
|
|
140
142
|
export { default as Calendar } from './Calendar/Calendar.js';
|
|
141
143
|
export { default as CalendarCell } from './Calendar/CalendarCell.js';
|
|
142
144
|
export { default as CalendarConfigProvider, CalendarContext, useCalendarContext } from './Calendar/CalendarContext.js';
|
|
@@ -166,18 +168,14 @@ export { default as ConfigProvider } from './Provider/ConfigProvider.js';
|
|
|
166
168
|
export { default as Dropdown } from './Dropdown/Dropdown.js';
|
|
167
169
|
export { useStepper } from './Stepper/useStepper.js';
|
|
168
170
|
export { usePagination } from './Pagination/usePagination.js';
|
|
169
|
-
export { getCellAlignClass, getRowKey } from '@mezzanine-ui/core/table';
|
|
170
171
|
export { TableContext, TableDataContext, TableSuperContext, useTableContext, useTableDataContext, useTableSuperContext } from './Table/TableContext.js';
|
|
172
|
+
export { getCellAlignClass, getRowKey } from '@mezzanine-ui/core/table';
|
|
171
173
|
export { useTableDataSource } from './Table/hooks/useTableDataSource.js';
|
|
172
174
|
export { useTableRowSelection } from './Table/utils/useTableRowSelection.js';
|
|
173
|
-
export { getTreeNodeEntities } from './Tree/getTreeNodeEntities.js';
|
|
174
|
-
export { toggleValue, toggleValueWithStatusControl, uniqueArray } from './Tree/toggleValue.js';
|
|
175
|
-
export { traverseTree } from './Tree/traverseTree.js';
|
|
176
|
-
export { useTreeExpandedValue } from './Tree/useTreeExpandedValue.js';
|
|
177
175
|
export { useDateRangeCalendarControls } from './DateRangePicker/useDateRangeCalendarControls.js';
|
|
178
176
|
export { useDateRangePickerValue } from './DateRangePicker/useDateRangePickerValue.js';
|
|
179
|
-
export { useMultipleDatePickerValue } from './MultipleDatePicker/useMultipleDatePickerValue.js';
|
|
180
177
|
export { FormControlContext } from './Form/FormControlContext.js';
|
|
178
|
+
export { useMultipleDatePickerValue } from './MultipleDatePicker/useMultipleDatePickerValue.js';
|
|
181
179
|
export { usePickerDocumentEventClose } from './Picker/usePickerDocumentEventClose.js';
|
|
182
180
|
export { usePickerValue } from './Picker/usePickerValue.js';
|
|
183
181
|
export { useTabKeyClose } from './Picker/useTabKeyClose.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mezzanine-ui/react",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.7",
|
|
4
4
|
"description": "React components for mezzanine-ui",
|
|
5
5
|
"author": "Mezzanine",
|
|
6
6
|
"repository": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"@floating-ui/dom": "^1.7.4",
|
|
32
32
|
"@floating-ui/react-dom": "^2.1.6",
|
|
33
33
|
"@hello-pangea/dnd": "^18.0.1",
|
|
34
|
-
"@mezzanine-ui/core": "1.0.0-beta.
|
|
35
|
-
"@mezzanine-ui/icons": "1.0.0-beta.
|
|
36
|
-
"@mezzanine-ui/system": "1.0.0-beta.
|
|
34
|
+
"@mezzanine-ui/core": "1.0.0-beta.7",
|
|
35
|
+
"@mezzanine-ui/icons": "1.0.0-beta.7",
|
|
36
|
+
"@mezzanine-ui/system": "1.0.0-beta.7",
|
|
37
37
|
"@tanstack/react-virtual": "^3.13.13",
|
|
38
38
|
"@types/react-transition-group": "^4.4.12",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
2
|
-
export interface AccordionDetailsProps extends NativeElementPropsWithoutKeyAndRef<'div'> {
|
|
3
|
-
/**
|
|
4
|
-
* If true, expands the details, otherwise collapse it.
|
|
5
|
-
*/
|
|
6
|
-
expanded?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const AccordionDetails: import("react").ForwardRefExoticComponent<AccordionDetailsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export default AccordionDetails;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReactNode, type JSX } from 'react';
|
|
2
|
-
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
3
|
-
export interface AccordionSummaryProps extends NativeElementPropsWithoutKeyAndRef<'div'> {
|
|
4
|
-
/**
|
|
5
|
-
* custom chevronDown icon className
|
|
6
|
-
*/
|
|
7
|
-
iconClassName?: string;
|
|
8
|
-
/**
|
|
9
|
-
* custom prefix icon element when `suffixActions` prop is given
|
|
10
|
-
*/
|
|
11
|
-
prefixIcon?: JSX.Element;
|
|
12
|
-
/**
|
|
13
|
-
* custom suffix actions
|
|
14
|
-
*/
|
|
15
|
-
suffixActions?: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
declare const AccordionSummary: import("react").ForwardRefExoticComponent<AccordionSummaryProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export default AccordionSummary;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { forwardRef, useContext, useCallback, useMemo } from 'react';
|
|
4
|
-
import { ChevronDownIcon } from '@mezzanine-ui/icons';
|
|
5
|
-
import { accordionClasses } from '@mezzanine-ui/core/accordion';
|
|
6
|
-
import { AccordionControlContext } from './AccordionControlContext.js';
|
|
7
|
-
import Icon from '../Icon/Icon.js';
|
|
8
|
-
import cx from 'clsx';
|
|
9
|
-
|
|
10
|
-
const AccordionSummary = forwardRef(function AccordionSummary(props, ref) {
|
|
11
|
-
const { className, children, iconClassName: iconClassNameProp, prefixIcon, suffixActions, ...rest } = props;
|
|
12
|
-
const { detailsId, disabled, expanded, toggleExpanded } = useContext(AccordionControlContext) || {};
|
|
13
|
-
const onToggle = useCallback((e) => {
|
|
14
|
-
e.stopPropagation();
|
|
15
|
-
if (typeof toggleExpanded === 'function' && !disabled) {
|
|
16
|
-
toggleExpanded(!expanded);
|
|
17
|
-
}
|
|
18
|
-
}, [disabled, expanded, toggleExpanded]);
|
|
19
|
-
const onKeyDown = (e) => {
|
|
20
|
-
switch (e.code) {
|
|
21
|
-
case 'Enter':
|
|
22
|
-
onToggle(e);
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
const ariaProps = useMemo(() => {
|
|
27
|
-
let result = {
|
|
28
|
-
'aria-expanded': expanded,
|
|
29
|
-
};
|
|
30
|
-
if (detailsId) {
|
|
31
|
-
result = {
|
|
32
|
-
...result,
|
|
33
|
-
'aria-controls': detailsId,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
return result;
|
|
37
|
-
}, [detailsId, expanded]);
|
|
38
|
-
const defaultIconElement = useMemo(() => (jsx(Icon, { color: disabled ? 'neutral-faint' : 'neutral', className: cx(accordionClasses.summaryIcon, {
|
|
39
|
-
[accordionClasses.summaryIconExpanded]: expanded,
|
|
40
|
-
[accordionClasses.summaryIconDisabled]: disabled,
|
|
41
|
-
}, iconClassNameProp), icon: ChevronDownIcon, onClick: onToggle, onMouseDown: (evt) => evt.preventDefault(), role: "button" })), [disabled, expanded, iconClassNameProp, onToggle]);
|
|
42
|
-
const defaultIconWithPrefixClassName = useMemo(() => (jsx(Icon, { color: disabled ? 'neutral-faint' : 'neutral', className: cx(accordionClasses.summaryIcon, {
|
|
43
|
-
[accordionClasses.summaryIconExpanded]: expanded,
|
|
44
|
-
[accordionClasses.summaryIconDisabled]: disabled,
|
|
45
|
-
}, accordionClasses.summaryMainPartPrefix, iconClassNameProp), icon: ChevronDownIcon, onClick: onToggle, onMouseDown: (evt) => evt.preventDefault(), role: "button" })), [disabled, expanded, iconClassNameProp, onToggle]);
|
|
46
|
-
return (jsxs("div", { ...rest, ...ariaProps, ref: ref, className: cx(accordionClasses.summary, {
|
|
47
|
-
[accordionClasses.summaryDisabled]: disabled,
|
|
48
|
-
}, className), onClick: onToggle, onKeyDown: onKeyDown, role: "button", tabIndex: 0, children: [jsxs("div", { className: accordionClasses.summaryMainPart, children: [suffixActions ? prefixIcon || defaultIconWithPrefixClassName : null, children] }), suffixActions || defaultIconElement] }));
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export { AccordionSummary as default };
|
package/Alert/Alert.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MouseEventHandler } from 'react';
|
|
2
|
-
import { AlertSeverity } from '@mezzanine-ui/core/alert';
|
|
3
|
-
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
4
|
-
export interface AlertProps extends NativeElementPropsWithoutKeyAndRef<'div'> {
|
|
5
|
-
/**
|
|
6
|
-
* Close handler.
|
|
7
|
-
*/
|
|
8
|
-
onClose?: MouseEventHandler;
|
|
9
|
-
/**
|
|
10
|
-
* The severity of alert.
|
|
11
|
-
* @default success
|
|
12
|
-
*/
|
|
13
|
-
severity?: AlertSeverity;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* The react component for `mezzanine` alert.
|
|
17
|
-
* This component should always be full width of its parent.
|
|
18
|
-
*/
|
|
19
|
-
declare const Alert: import("react").ForwardRefExoticComponent<AlertProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
-
export default Alert;
|
package/Alert/Alert.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import { alertIcons, alertClasses } from '@mezzanine-ui/core/alert';
|
|
4
|
-
import { TimesIcon } from '@mezzanine-ui/icons';
|
|
5
|
-
import Icon from '../Icon/Icon.js';
|
|
6
|
-
import cx from 'clsx';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* The react component for `mezzanine` alert.
|
|
10
|
-
* This component should always be full width of its parent.
|
|
11
|
-
*/
|
|
12
|
-
const Alert = forwardRef(function Alert(props, ref) {
|
|
13
|
-
const { className, children, onClose, severity = 'success', ...rest } = props;
|
|
14
|
-
const targetIcon = alertIcons[severity];
|
|
15
|
-
return (jsxs("div", { ref: ref, className: cx(alertClasses.host, alertClasses.severity(severity), className), ...rest, children: [jsx(Icon, { className: alertClasses.icon, icon: targetIcon }), jsx("p", { className: alertClasses.message, children: children }), jsx(Icon, { className: alertClasses.closeIcon, icon: TimesIcon, onClick: onClose, role: "button" })] }));
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
export { Alert as default };
|
package/Alert/index.d.ts
DELETED
package/Alert/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Alert.js';
|
package/Card/Card.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
3
|
-
import { TypographyProps } from '../Typography';
|
|
4
|
-
export interface CardProps extends Omit<NativeElementPropsWithoutKeyAndRef<'div'>, 'title' | 'children'> {
|
|
5
|
-
/**
|
|
6
|
-
* Card footer actions.
|
|
7
|
-
*/
|
|
8
|
-
actions?: ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Card cover.
|
|
11
|
-
*/
|
|
12
|
-
cover?: ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* The container of the text content(title, subtitle and description).
|
|
15
|
-
*/
|
|
16
|
-
contentProps?: Omit<NativeElementPropsWithoutKeyAndRef<'div'>, 'children'>;
|
|
17
|
-
/**
|
|
18
|
-
* Description under the subtitle. visible if value is not empty.
|
|
19
|
-
*/
|
|
20
|
-
description?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Description props
|
|
23
|
-
*/
|
|
24
|
-
descriptionProps?: Omit<TypographyProps, 'children'>;
|
|
25
|
-
/**
|
|
26
|
-
* The container of the content and actions.
|
|
27
|
-
*/
|
|
28
|
-
metaProps?: Omit<NativeElementPropsWithoutKeyAndRef<'div'>, 'children'>;
|
|
29
|
-
/**
|
|
30
|
-
* Subtitle under the title. visible if value is not empty.
|
|
31
|
-
*/
|
|
32
|
-
subtitle?: ReactNode;
|
|
33
|
-
/**
|
|
34
|
-
* Subtitle props
|
|
35
|
-
*/
|
|
36
|
-
subtitleProps?: Omit<TypographyProps, 'children'>;
|
|
37
|
-
/**
|
|
38
|
-
* Card title, visible if value is not empty.
|
|
39
|
-
*/
|
|
40
|
-
title?: ReactNode;
|
|
41
|
-
/**
|
|
42
|
-
* Card title props
|
|
43
|
-
* @default 'variant: h3'
|
|
44
|
-
*/
|
|
45
|
-
titleProps?: Omit<TypographyProps, 'children'>;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* The react component for `mezzanine` card.
|
|
49
|
-
*/
|
|
50
|
-
declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
51
|
-
export default Card;
|
package/Card/Card.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import { cardClasses } from '@mezzanine-ui/core/card';
|
|
4
|
-
import Typography from '../Typography/Typography.js';
|
|
5
|
-
import cx from 'clsx';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The react component for `mezzanine` card.
|
|
9
|
-
*/
|
|
10
|
-
const Card = forwardRef(function Card(props, ref) {
|
|
11
|
-
const { actions, className, contentProps, cover, description, descriptionProps, metaProps, subtitle, subtitleProps, title, titleProps, ...rest } = props;
|
|
12
|
-
const { variant = 'h3' } = titleProps || {};
|
|
13
|
-
const titleTypography = title ? (jsx(Typography, { variant: variant, ...titleProps, children: title })) : null;
|
|
14
|
-
const subtitleTypography = subtitle ? (jsx(Typography, { ...subtitleProps, children: subtitle })) : null;
|
|
15
|
-
const contentHeader = titleTypography || subtitleTypography ? (jsxs("div", { className: cardClasses.metaContentsHeader, children: [titleTypography, subtitleTypography] })) : null;
|
|
16
|
-
const descriptionTypography = description ? (jsx(Typography, { ...descriptionProps, children: description })) : null;
|
|
17
|
-
return (jsxs("div", { ref: ref, className: cx(cardClasses.host, className), ...rest, children: [cover, jsxs("div", { className: cardClasses.meta, ...metaProps, children: [jsxs("div", { className: cardClasses.metaContents, ...contentProps, children: [contentHeader, descriptionTypography] }), actions] })] }));
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
export { Card as default };
|
package/Card/CardActions.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ButtonProps } from '../Button';
|
|
3
|
-
import { ConfirmActionsProps } from '../ConfirmActions';
|
|
4
|
-
export interface CardActionsProps extends ConfirmActionsProps {
|
|
5
|
-
/**
|
|
6
|
-
* Content of cancel button. not render if value is empty.
|
|
7
|
-
*/
|
|
8
|
-
cancelText?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Content of confirm button. not render if value is empty.
|
|
11
|
-
*/
|
|
12
|
-
confirmText?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Click handler for cancel button.
|
|
15
|
-
*/
|
|
16
|
-
onCancel?: ButtonProps['onClick'];
|
|
17
|
-
/**
|
|
18
|
-
* Click handler for confirm button.
|
|
19
|
-
*/
|
|
20
|
-
onConfirm?: ButtonProps['onClick'];
|
|
21
|
-
/**
|
|
22
|
-
* Indicate whether confirm button loading and cancel button disabled.
|
|
23
|
-
*/
|
|
24
|
-
loading?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* The action bottom on the left. not render if value is empty.
|
|
27
|
-
*/
|
|
28
|
-
otherActions?: ReactNode;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* The react component for `mezzanine` cardActions.
|
|
32
|
-
*/
|
|
33
|
-
declare const CardActions: import("react").ForwardRefExoticComponent<CardActionsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
34
|
-
export default CardActions;
|
package/Card/CardActions.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import { cardActionsClasses } from '@mezzanine-ui/core/card';
|
|
4
|
-
import ConfirmActions from '../ConfirmActions/ConfirmActions.js';
|
|
5
|
-
import cx from 'clsx';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The react component for `mezzanine` cardActions.
|
|
9
|
-
*/
|
|
10
|
-
const CardActions = forwardRef(function CardActions(props, ref) {
|
|
11
|
-
const { cancelText, cancelButtonProps, className, confirmText, confirmButtonProps, hideCancelButton, hideConfirmButton, loading, onCancel, onConfirm, otherActions, ...rest } = props;
|
|
12
|
-
return (jsxs("div", { ref: ref, className: cx(cardActionsClasses.host, className), ...rest, children: [otherActions || jsx("div", {}), jsx(ConfirmActions, { cancelText: cancelText, confirmText: confirmText, cancelButtonProps: cancelButtonProps, confirmButtonProps: confirmButtonProps, hideCancelButton: hideCancelButton || !cancelText, hideConfirmButton: hideConfirmButton || !confirmText, loading: loading, onCancel: onCancel, onConfirm: onConfirm })] }));
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export { CardActions as default };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ButtonProps } from '../Button/Button';
|
|
3
|
-
import { ButtonGroupProps } from '../Button/ButtonGroup';
|
|
4
|
-
export interface ConfirmActionsProps extends Omit<ButtonGroupProps, 'children'> {
|
|
5
|
-
/**
|
|
6
|
-
* Other props of cancel button.
|
|
7
|
-
*/
|
|
8
|
-
cancelButtonProps?: ButtonProps;
|
|
9
|
-
/**
|
|
10
|
-
* Content of cancel button.
|
|
11
|
-
*/
|
|
12
|
-
cancelText?: ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Other props of confirm button.
|
|
15
|
-
*/
|
|
16
|
-
confirmButtonProps?: ButtonProps;
|
|
17
|
-
/**
|
|
18
|
-
* Content of confirm button.
|
|
19
|
-
*/
|
|
20
|
-
confirmText?: ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Whether to hide cancel button.
|
|
23
|
-
*/
|
|
24
|
-
hideCancelButton?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Whether to hide confirm button.
|
|
27
|
-
*/
|
|
28
|
-
hideConfirmButton?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Indicate whether confirm button loading and cancel button disabled.
|
|
31
|
-
*/
|
|
32
|
-
loading?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Click handler for cancel button.
|
|
35
|
-
*/
|
|
36
|
-
onCancel?: ButtonProps['onClick'];
|
|
37
|
-
/**
|
|
38
|
-
* Click handler for confirm button.
|
|
39
|
-
*/
|
|
40
|
-
onConfirm?: ButtonProps['onClick'];
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* The react component for `mezzanine` confirm actions.
|
|
44
|
-
*/
|
|
45
|
-
declare const ConfirmActions: import("react").ForwardRefExoticComponent<ConfirmActionsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
46
|
-
export default ConfirmActions;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import Button from '../Button/Button.js';
|
|
4
|
-
import ButtonGroup from '../Button/ButtonGroup.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* The react component for `mezzanine` confirm actions.
|
|
8
|
-
*/
|
|
9
|
-
const ConfirmActions = forwardRef(function ConfirmActions(props, ref) {
|
|
10
|
-
const { cancelButtonProps, cancelText, confirmButtonProps, confirmText, hideCancelButton, hideConfirmButton, loading, onCancel, onConfirm, ...rest } = props;
|
|
11
|
-
const { disabled: cancelButtonDisabled = loading } = cancelButtonProps || {};
|
|
12
|
-
return (jsxs(ButtonGroup, { ...rest, ref: ref, children: [!hideCancelButton && (jsx(Button, { variant: "outlined", ...cancelButtonProps, disabled: cancelButtonDisabled, onClick: onCancel, children: cancelText })), !hideConfirmButton && (jsx(Button, { variant: "contained", ...confirmButtonProps, loading: loading, onClick: onConfirm, children: confirmText }))] }));
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export { ConfirmActions as default };
|
package/ConfirmActions/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ConfirmActions.js';
|
package/Select/Option.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MenuItemProps } from '../Menu';
|
|
2
|
-
export interface OptionProps extends Omit<MenuItemProps, 'children' | 'role'> {
|
|
3
|
-
/**
|
|
4
|
-
* option children (often means the option name)
|
|
5
|
-
*/
|
|
6
|
-
children: string;
|
|
7
|
-
/**
|
|
8
|
-
* The role of menu item.
|
|
9
|
-
* @default 'option'
|
|
10
|
-
*/
|
|
11
|
-
role?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The value of option
|
|
14
|
-
*/
|
|
15
|
-
value: string;
|
|
16
|
-
}
|
|
17
|
-
declare const Option: import("react").ForwardRefExoticComponent<OptionProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
18
|
-
export default Option;
|
package/Select/Option.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { forwardRef, useContext } from 'react';
|
|
4
|
-
import { SelectControlContext } from './SelectControlContext.js';
|
|
5
|
-
import MenuItem from '../Menu/MenuItem.js';
|
|
6
|
-
|
|
7
|
-
const Option = forwardRef(function Option(props, ref) {
|
|
8
|
-
const { active: activeProp, children, role = 'option', value, ...rest } = props;
|
|
9
|
-
const selectControl = useContext(SelectControlContext);
|
|
10
|
-
const { onChange, value: selectedValue } = selectControl || {};
|
|
11
|
-
const getActive = () => {
|
|
12
|
-
if (activeProp) {
|
|
13
|
-
return activeProp;
|
|
14
|
-
}
|
|
15
|
-
if (selectedValue) {
|
|
16
|
-
if (Array.isArray(selectedValue)) {
|
|
17
|
-
return selectedValue.find((sv) => sv.id === value);
|
|
18
|
-
}
|
|
19
|
-
return selectedValue.id === value;
|
|
20
|
-
}
|
|
21
|
-
return false;
|
|
22
|
-
};
|
|
23
|
-
const active = Boolean(getActive());
|
|
24
|
-
const onSelect = () => {
|
|
25
|
-
if (typeof onChange === 'function' && value) {
|
|
26
|
-
onChange({
|
|
27
|
-
id: value,
|
|
28
|
-
name: children,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const onKeyDown = (evt) => {
|
|
33
|
-
switch (evt.code) {
|
|
34
|
-
case 'Enter':
|
|
35
|
-
onSelect();
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
return (jsx(MenuItem, { ...rest, ref: ref, active: active, "aria-selected": active, id: value, onClick: (evt) => {
|
|
40
|
-
evt.stopPropagation();
|
|
41
|
-
onSelect();
|
|
42
|
-
}, onKeyDown: onKeyDown, role: role, tabIndex: 0, children: children }));
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
export { Option as default };
|
package/Select/TreeSelect.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { SelectInputSize } from '@mezzanine-ui/core/select';
|
|
2
|
-
import { FormElementFocusHandlers } from '../Form';
|
|
3
|
-
import { MenuProps } from '../Menu';
|
|
4
|
-
import { TreeProps } from '../Tree';
|
|
5
|
-
import { InputTriggerPopperProps } from '../_internal/InputTriggerPopper';
|
|
6
|
-
import { PickRenameMulti } from '../utils/general';
|
|
7
|
-
import { SelectTriggerInputProps, SelectTriggerProps, SelectValue, TreeSelectOption } from './typings';
|
|
8
|
-
export interface TreeSelectProps extends Omit<SelectTriggerProps, 'active' | 'onBlur' | 'onChange' | 'onClear' | 'onClick' | 'onFocus' | 'onKeyDown' | 'readOnly' | 'searchInputProps'>, FormElementFocusHandlers, Pick<TreeProps, 'defaultExpandAll' | 'disabledValues' | 'expandControllerRef' | 'onExpand'>, PickRenameMulti<Pick<MenuProps, 'itemsInView' | 'maxHeight' | 'role' | 'size'>, {
|
|
9
|
-
maxHeight: 'menuMaxHeight';
|
|
10
|
-
role: 'menuRole';
|
|
11
|
-
size: 'menuSize';
|
|
12
|
-
}>, PickRenameMulti<Pick<InputTriggerPopperProps, 'options'>, {
|
|
13
|
-
options: 'popperOptions';
|
|
14
|
-
}> {
|
|
15
|
-
/**
|
|
16
|
-
* The width of options panel will be calculated based on the depth of your options.
|
|
17
|
-
* If you know how many layers in your object, pass it via this prop will have better performance.
|
|
18
|
-
*/
|
|
19
|
-
depth?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The other native props for input element.
|
|
22
|
-
*/
|
|
23
|
-
inputProps?: Omit<SelectTriggerInputProps, 'onBlur' | 'onChange' | 'onFocus' | 'placeholder' | 'role' | 'value' | `aria-${'expanded'}`>;
|
|
24
|
-
/**
|
|
25
|
-
* Other props you may provide to `Menu`.
|
|
26
|
-
*/
|
|
27
|
-
menuProps?: Omit<MenuProps, 'itemsInView' | 'maxHeight' | 'role' | 'size'>;
|
|
28
|
-
/**
|
|
29
|
-
* The change event handler of input element.
|
|
30
|
-
*/
|
|
31
|
-
onChange?(newOptions: SelectValue[]): any;
|
|
32
|
-
/**
|
|
33
|
-
* The nested options for `TreeSelect`
|
|
34
|
-
*/
|
|
35
|
-
options: TreeSelectOption[];
|
|
36
|
-
/**
|
|
37
|
-
* select input placeholder
|
|
38
|
-
*/
|
|
39
|
-
placeholder?: string;
|
|
40
|
-
/**
|
|
41
|
-
* To customize rendering select input value.
|
|
42
|
-
* For single mode, receives the first value from the array.
|
|
43
|
-
* For multiple mode, receives the full array.
|
|
44
|
-
*/
|
|
45
|
-
renderValue?: (value?: SelectValue | SelectValue[] | null) => string;
|
|
46
|
-
/**
|
|
47
|
-
* Whether the selection is required.
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
required?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* If true, the panel will have its min-width be same as the trigger width.
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
sameWidth?: InputTriggerPopperProps['sameWidth'];
|
|
56
|
-
/**
|
|
57
|
-
* The size of input.
|
|
58
|
-
* @default 'medium'
|
|
59
|
-
*/
|
|
60
|
-
size?: SelectInputSize;
|
|
61
|
-
/**
|
|
62
|
-
* Other props you may provide to `Tree`
|
|
63
|
-
*/
|
|
64
|
-
treeProps?: Omit<TreeProps, 'defaultExpandAll' | 'disabledValues' | 'expandControllerRef' | 'expandedValues' | 'nodes' | 'onExpand' | 'onSelect' | 'selectMethod' | 'selectable' | 'values'>;
|
|
65
|
-
/**
|
|
66
|
-
* The value of selection.
|
|
67
|
-
* @default undefined
|
|
68
|
-
*/
|
|
69
|
-
value?: SelectValue[];
|
|
70
|
-
}
|
|
71
|
-
declare const TreeSelect: import("react").ForwardRefExoticComponent<TreeSelectProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
72
|
-
export default TreeSelect;
|