@ringcentral/spring-ui 1.11.2 → 1.13.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/Accordion.js +90 -34
- package/AccordionHeader.js +72 -20
- package/Alert.js +120 -28
- package/Animation.js +2 -45
- package/Announcement.js +46 -35
- package/Autocomplete.js +1011 -580
- package/Avatar.js +134 -73
- package/AvatarGroup.js +50 -7
- package/Backdrop.js +45 -7
- package/Badge.js +77 -15
- package/Block.js +34 -12
- package/BlockHeader.js +55 -11
- package/BottomNavigation.js +181 -65
- package/BottomNavigationItem.js +93 -30
- package/Button.js +160 -24
- package/CallButton.js +53 -31
- package/Checkbox.js +88 -26
- package/Chip.js +126 -26
- package/CircularProgressIndicator.js +80 -8
- package/ClickAwayListener.js +4 -1
- package/ComponentsProps.js +1 -0
- package/DatePicker.js +611 -190
- package/DateUtilsContext.js +43 -25
- package/Dialer.js +576 -250
- package/Dialog.js +100 -45
- package/Divider.js +43 -7
- package/DragHandle.js +32 -6
- package/Drawer.js +117 -19
- package/Dropdown.js +154 -74
- package/EmptyState.js +63 -11
- package/FabButton.js +51 -17
- package/FocusTrap.js +109 -12
- package/FormField.js +106 -8
- package/FormLabel.js +81 -7
- package/Icon.js +1 -8
- package/IconButton.js +142 -26
- package/IconButtonGroup.js +35 -12
- package/InlineEditable.js +98 -44
- package/LinearProgressIndicator.js +73 -24
- package/Link.js +40 -11
- package/List.js +54 -9
- package/ListItem.js +152 -23
- package/ListItemText.js +44 -16
- package/ListNavigation.js +272 -20
- package/Menu.js +139 -23
- package/MenuActions.js +37 -12
- package/MenuDivider.js +34 -8
- package/MenuFooter.js +36 -12
- package/MenuHeader.js +54 -15
- package/MenuItem.js +402 -33
- package/MenuItemText.js +51 -8
- package/MenuList.js +87 -34
- package/Modal.js +345 -16
- package/NestedMenuContext.js +183 -11
- package/Option.js +32 -34
- package/Overlap.js +54 -7
- package/PageHeader.js +62 -24
- package/PickerTextField.js +156 -33
- package/Popover.js +262 -21
- package/Popper.js +130 -77
- package/PopperPaper.js +54 -8
- package/Portal.js +6 -1
- package/Radio.js +65 -21
- package/RadioGroup.js +56 -17
- package/Rating.js +223 -87
- package/Select.js +387 -41
- package/SingleFilter.js +148 -77
- package/Skeleton.js +68 -17
- package/Slider.js +168 -69
- package/Snackbar.js +122 -59
- package/SortableList.js +32 -12
- package/SortableListDndContext.js +69 -22
- package/SortableListItem.js +92 -47
- package/SortableVirtualizedList.js +52 -28
- package/SplitButton.js +124 -86
- package/Squircle.js +4 -7
- package/StatusIndicator.js +51 -9
- package/Step.js +63 -38
- package/StepButton.js +51 -23
- package/StepConnector.js +48 -8
- package/StepContent.js +68 -25
- package/StepIcon.js +90 -9
- package/StepLabel.js +90 -14
- package/Stepper.js +65 -23
- package/SubMenu.js +203 -99
- package/SwipeableDrawer.js +439 -194
- package/Switch.js +70 -23
- package/Tab.js +120 -57
- package/TabContext.js +59 -15
- package/TabPanel.js +40 -13
- package/Table.js +60 -17
- package/TableBody.js +42 -12
- package/TableCell.js +84 -50
- package/TableContainer.js +32 -10
- package/TableFooter.js +38 -10
- package/TableHead.js +49 -15
- package/TablePagination.js +153 -77
- package/TableRow.js +60 -21
- package/Tabs.js +593 -268
- package/Tag.js +51 -16
- package/Text.js +68 -37
- package/TextField.js +209 -29
- package/Textarea.js +51 -40
- package/TimePicker.js +490 -230
- package/Tooltip.js +48 -23
- package/Tray.js +237 -13
- package/TrayMenu.js +62 -41
- package/VirtualizedList.js +208 -109
- package/VirtualizedMenu.js +359 -29
- package/VisuallyHidden.js +29 -6
- package/chunks/1250.js +98 -0
- package/chunks/1294.js +126 -0
- package/chunks/2956.js +18 -0
- package/chunks/4476.js +460 -0
- package/chunks/4491.js +10 -0
- package/chunks/4535.js +364 -0
- package/chunks/5047.js +3 -0
- package/chunks/6335.js +24 -0
- package/chunks/7279.js +10 -0
- package/chunks/8011.js +8 -0
- package/chunks/8307.js +56 -0
- package/chunks/8467.js +8 -0
- package/chunks/8809.js +8 -0
- package/chunks/{RadioGroup.context.js → 9551.js} +12 -6
- package/chunks/987.js +8 -0
- package/index.css +2624 -2416
- package/index.js +245 -193
- package/internal/utils/index.d.ts +1 -0
- package/internal/utils/setRef.d.ts +2 -0
- package/package.json +8 -8
- package/src/Alert/Alert.type.d.ts +2 -1
- package/src/Animation/components/Fade/Fade.d.ts +4 -2
- package/src/Animation/components/Grow/Grow.d.ts +4 -2
- package/src/Animation/components/ShowHideEye/ShowHideEye.d.ts +1 -1
- package/src/Animation/components/SlideIn/SlideIn.d.ts +4 -2
- package/src/Animation/components/SlideIn/getSlideIn.d.ts +1 -1
- package/src/Animation/hooks/useMotionSafeTransition/useMotionSafeTransition.d.ts +2 -0
- package/src/Autocomplete/SuggestionList/SuggestionList.d.ts +1 -1
- package/src/Autocomplete/useAutocomplete.d.ts +18 -18
- package/src/Autocomplete/useAutocompleteTag.d.ts +18 -18
- package/src/Badge/Badge.d.ts +2 -1
- package/src/Button/Button.classes.d.ts +1 -1
- package/src/ComponentsProps.d.ts +111 -110
- package/src/DatePicker/DatePickerDataAttributes.d.ts +11 -0
- package/src/DatePicker/utils/DatePickerAriaLabelUtils.d.ts +2 -1
- package/src/DatePicker/utils/DatePickerUtils.d.ts +1 -1
- package/src/Dialer/DialDelete/DialDelete.d.ts +2 -2
- package/src/Dialer/DialPad/DialPad.d.ts +2 -2
- package/src/Dialer/Dialer.d.ts +4 -2
- package/src/Dropdown/Dropdown.type.d.ts +2 -2
- package/src/InlineEditable/InlineEditable.type.d.ts +2 -1
- package/src/ListNavigation/useListNavigation.d.ts +3 -3
- package/src/MenuActions/MenuActions.d.ts +2 -2
- package/src/MenuItem/MenuItem.type.d.ts +1 -0
- package/src/MenuItem/useMenuItem.d.ts +1 -1
- package/src/MenuItem/useVirtualizedMenuItem.d.ts +1 -1
- package/src/MenuList/MenuList.type.d.ts +1 -1
- package/src/MenuList/MenuListContext.d.ts +2 -3
- package/src/Modal/Modal.type.d.ts +1 -0
- package/src/NestedMenuContext/MenuOverlayGroupContext.d.ts +2 -2
- package/src/Popover/Popover.classes.d.ts +1 -1
- package/src/Popover/Popover.internal.d.ts +8 -0
- package/src/Popover/Popover.type.d.ts +1 -0
- package/src/Popper/Popper.type.d.ts +10 -7
- package/src/Rating/utils.d.ts +3 -2
- package/src/Select/Select.type.d.ts +7 -5
- package/src/Slider/Slider.d.ts +2 -2
- package/src/Slider/SliderThumb.d.ts +2 -1
- package/src/Squircle/Squircle.d.ts +1 -1
- package/src/StatusIndicator/StatusIndicator.d.ts +2 -1
- package/src/SubMenu/PopperMenu.type.d.ts +4 -1
- package/src/Table/Table.type.d.ts +3 -0
- package/src/Table/TableContext.d.ts +3 -0
- package/src/Table/TableRowContext.d.ts +7 -0
- package/src/Table/index.d.ts +1 -0
- package/src/TableCell/TableCell.classes.d.ts +1 -1
- package/src/TableFooter/TableFooter.classes.d.ts +1 -1
- package/src/TableFooter/TableFooter.type.d.ts +1 -0
- package/src/TableHead/TableHead.classes.d.ts +1 -1
- package/src/TableHead/TableHead.type.d.ts +1 -0
- package/src/TableRow/TableRow.type.d.ts +2 -0
- package/chunks/AccordionContext.js +0 -6
- package/chunks/Alert.js +0 -48
- package/chunks/AvatarGroup.js +0 -22
- package/chunks/Backdrop.js +0 -18
- package/chunks/Badge.js +0 -32
- package/chunks/BottomNavigationItem.js +0 -36
- package/chunks/Button.js +0 -88
- package/chunks/Chip.js +0 -73
- package/chunks/CircularProgressIndicator.js +0 -36
- package/chunks/Divider.js +0 -19
- package/chunks/DragHandle.js +0 -11
- package/chunks/Drawer.js +0 -32
- package/chunks/ExpandCollapseCaret.js +0 -24
- package/chunks/FormLabel.js +0 -27
- package/chunks/Icon.js +0 -25
- package/chunks/IconButtonLabel.js +0 -68
- package/chunks/List.js +0 -22
- package/chunks/ListItem.js +0 -83
- package/chunks/Menu.js +0 -61
- package/chunks/MenuDivider.js +0 -14
- package/chunks/MenuItemText.js +0 -17
- package/chunks/MenuList.js +0 -46
- package/chunks/Modal.js +0 -212
- package/chunks/Overlap.js +0 -25
- package/chunks/PickerTextField.js +0 -85
- package/chunks/Popover.js +0 -53
- package/chunks/PopperPaper.js +0 -15
- package/chunks/Select.js +0 -220
- package/chunks/ShowHideEye.js +0 -56
- package/chunks/SlideIn.js +0 -19
- package/chunks/SortableArrow.js +0 -73
- package/chunks/Squircle.js +0 -31
- package/chunks/StatusIndicator.js +0 -20
- package/chunks/StepConnector.js +0 -21
- package/chunks/StepIcon.js +0 -43
- package/chunks/StepLabel.js +0 -29
- package/chunks/StepperContext.js +0 -9
- package/chunks/TableContext.js +0 -6
- package/chunks/Tablelvl2Context.js +0 -6
- package/chunks/TabsContext.js +0 -6
- package/chunks/TextField.js +0 -110
- package/chunks/Tooltip.js +0 -217
- package/chunks/VirtualizedMenu.js +0 -164
- package/chunks/VisuallyHidden.js +0 -12
- package/chunks/getFade.js +0 -27
- package/chunks/getGrow.js +0 -70
- package/chunks/getSlideIn.js +0 -30
- package/chunks/hasContent.js +0 -3
- package/chunks/useAnimationFrame.js +0 -15
- package/chunks/useFocusTrapStack.js +0 -36
- package/chunks/useHelperTextId.js +0 -22
- package/chunks/useListNavigation.js +0 -199
- package/chunks/useMenuItemSelect.js +0 -273
- package/chunks/useMotionSafeTransition.js +0 -9
- package/chunks/useNestedMenuItem.js +0 -27
- package/chunks/useNestedParentMenu.js +0 -113
- package/chunks/usePrefersReducedMotion.js +0 -36
- package/chunks/useTooltipForceHide.js +0 -27
- package/chunks/useTrayNavigate.js +0 -150
- package/chunks/withTooltip.js +0 -15
|
@@ -31,22 +31,27 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
31
31
|
onKeyUp?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
32
32
|
onMouseDown?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
33
33
|
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
34
|
+
content?: string | undefined;
|
|
35
|
+
translate?: "yes" | "no" | undefined;
|
|
36
|
+
hidden?: boolean | undefined;
|
|
34
37
|
slot?: string | undefined;
|
|
35
38
|
style?: import("react").CSSProperties | undefined;
|
|
36
39
|
title?: string | undefined;
|
|
37
|
-
|
|
40
|
+
rel?: string | undefined;
|
|
41
|
+
rev?: string | undefined;
|
|
42
|
+
role?: import("react").AriaRole | undefined;
|
|
43
|
+
'aria-live'?: "assertive" | "polite" | "off" | undefined;
|
|
44
|
+
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
45
|
+
'aria-labelledby'?: string | undefined;
|
|
46
|
+
id?: string | undefined;
|
|
38
47
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
39
48
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
40
49
|
className?: string | undefined;
|
|
41
|
-
id?: string | undefined;
|
|
42
50
|
prefix?: string | undefined;
|
|
43
|
-
role?: import("react").AriaRole | undefined;
|
|
44
51
|
dir?: string | undefined;
|
|
45
52
|
accessKey?: string | undefined;
|
|
46
53
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
47
|
-
hidden?: boolean | undefined;
|
|
48
54
|
lang?: string | undefined;
|
|
49
|
-
translate?: "yes" | "no" | undefined;
|
|
50
55
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
51
56
|
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
52
57
|
nonce?: string | undefined;
|
|
@@ -55,7 +60,6 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
55
60
|
defaultChecked?: boolean | undefined;
|
|
56
61
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
57
62
|
placeholder?: string | undefined;
|
|
58
|
-
content?: string | undefined;
|
|
59
63
|
onFocus?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
60
64
|
onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
61
65
|
onMouseEnter?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
@@ -70,9 +74,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
70
74
|
datatype?: string | undefined;
|
|
71
75
|
inlist?: any;
|
|
72
76
|
property?: string | undefined;
|
|
73
|
-
rel?: string | undefined;
|
|
74
77
|
resource?: string | undefined;
|
|
75
|
-
rev?: string | undefined;
|
|
76
78
|
typeof?: string | undefined;
|
|
77
79
|
vocab?: string | undefined;
|
|
78
80
|
autoCapitalize?: string | undefined;
|
|
@@ -85,7 +87,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
85
87
|
itemRef?: string | undefined;
|
|
86
88
|
results?: number | undefined;
|
|
87
89
|
security?: string | undefined;
|
|
88
|
-
unselectable?: "
|
|
90
|
+
unselectable?: "off" | "on" | undefined;
|
|
89
91
|
is?: string | undefined;
|
|
90
92
|
'aria-activedescendant'?: string | undefined;
|
|
91
93
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
@@ -98,7 +100,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
98
100
|
'aria-colindextext'?: string | undefined;
|
|
99
101
|
'aria-colspan'?: number | undefined;
|
|
100
102
|
'aria-controls'?: string | undefined;
|
|
101
|
-
'aria-current'?: boolean | "true" | "
|
|
103
|
+
'aria-current'?: boolean | "true" | "page" | "time" | "false" | "step" | "date" | "location" | undefined;
|
|
102
104
|
'aria-describedby'?: string | undefined;
|
|
103
105
|
'aria-description'?: string | undefined;
|
|
104
106
|
'aria-details'?: string | undefined;
|
|
@@ -108,11 +110,10 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
108
110
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
109
111
|
'aria-flowto'?: string | undefined;
|
|
110
112
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
111
|
-
'aria-haspopup'?: boolean | "true" | "
|
|
113
|
+
'aria-haspopup'?: boolean | "true" | "grid" | "dialog" | "menu" | "false" | "listbox" | "tree" | undefined;
|
|
112
114
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
113
115
|
'aria-keyshortcuts'?: string | undefined;
|
|
114
116
|
'aria-label'?: string | undefined;
|
|
115
|
-
'aria-labelledby'?: string | undefined;
|
|
116
117
|
'aria-level'?: number | undefined;
|
|
117
118
|
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
118
119
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
@@ -123,7 +124,6 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
123
124
|
'aria-posinset'?: number | undefined;
|
|
124
125
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
125
126
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
126
|
-
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
127
127
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
128
128
|
'aria-roledescription'?: string | undefined;
|
|
129
129
|
'aria-rowcount'?: number | undefined;
|
|
@@ -352,7 +352,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
352
352
|
itemRef?: string | undefined;
|
|
353
353
|
results?: number | undefined;
|
|
354
354
|
security?: string | undefined;
|
|
355
|
-
unselectable?: "
|
|
355
|
+
unselectable?: "off" | "on" | undefined;
|
|
356
356
|
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
357
357
|
is?: string | undefined;
|
|
358
358
|
'aria-activedescendant'?: string | undefined;
|
|
@@ -367,7 +367,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
367
367
|
'aria-colindextext'?: string | undefined;
|
|
368
368
|
'aria-colspan'?: number | undefined;
|
|
369
369
|
'aria-controls'?: string | undefined;
|
|
370
|
-
'aria-current'?: boolean | "true" | "
|
|
370
|
+
'aria-current'?: boolean | "true" | "page" | "time" | "false" | "step" | "date" | "location" | undefined;
|
|
371
371
|
'aria-describedby'?: string | undefined;
|
|
372
372
|
'aria-description'?: string | undefined;
|
|
373
373
|
'aria-details'?: string | undefined;
|
|
@@ -377,14 +377,14 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
377
377
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
378
378
|
'aria-flowto'?: string | undefined;
|
|
379
379
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
380
|
-
'aria-haspopup'?: boolean | "true" | "
|
|
380
|
+
'aria-haspopup'?: boolean | "true" | "grid" | "dialog" | "menu" | "false" | "listbox" | "tree" | undefined;
|
|
381
381
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
382
382
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
383
383
|
'aria-keyshortcuts'?: string | undefined;
|
|
384
384
|
'aria-label'?: string | undefined;
|
|
385
385
|
'aria-labelledby'?: string | undefined;
|
|
386
386
|
'aria-level'?: number | undefined;
|
|
387
|
-
'aria-live'?: "assertive" | "
|
|
387
|
+
'aria-live'?: "assertive" | "polite" | "off" | undefined;
|
|
388
388
|
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
389
389
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
390
390
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
@@ -394,7 +394,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
394
394
|
'aria-posinset'?: number | undefined;
|
|
395
395
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
396
396
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
397
|
-
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "
|
|
397
|
+
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
398
398
|
'aria-required': boolean | "true" | "false";
|
|
399
399
|
'aria-roledescription'?: string | undefined;
|
|
400
400
|
'aria-rowcount'?: number | undefined;
|
|
@@ -84,7 +84,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
84
84
|
itemRef?: string | undefined;
|
|
85
85
|
results?: number | undefined;
|
|
86
86
|
security?: string | undefined;
|
|
87
|
-
unselectable?: "
|
|
87
|
+
unselectable?: "off" | "on" | undefined;
|
|
88
88
|
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
89
89
|
is?: string | undefined;
|
|
90
90
|
'aria-activedescendant'?: string | undefined;
|
|
@@ -99,7 +99,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
99
99
|
'aria-colindextext'?: string | undefined;
|
|
100
100
|
'aria-colspan'?: number | undefined;
|
|
101
101
|
'aria-controls'?: string | undefined;
|
|
102
|
-
'aria-current'?: boolean | "true" | "
|
|
102
|
+
'aria-current'?: boolean | "true" | "page" | "time" | "false" | "step" | "date" | "location" | undefined;
|
|
103
103
|
'aria-describedby'?: string | undefined;
|
|
104
104
|
'aria-description'?: string | undefined;
|
|
105
105
|
'aria-details'?: string | undefined;
|
|
@@ -109,14 +109,14 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
109
109
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
110
110
|
'aria-flowto'?: string | undefined;
|
|
111
111
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
112
|
-
'aria-haspopup'?: boolean | "true" | "
|
|
112
|
+
'aria-haspopup'?: boolean | "true" | "grid" | "dialog" | "menu" | "false" | "listbox" | "tree" | undefined;
|
|
113
113
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
114
114
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
115
115
|
'aria-keyshortcuts'?: string | undefined;
|
|
116
116
|
'aria-label'?: string | undefined;
|
|
117
117
|
'aria-labelledby'?: string | undefined;
|
|
118
118
|
'aria-level'?: number | undefined;
|
|
119
|
-
'aria-live'?: "assertive" | "
|
|
119
|
+
'aria-live'?: "assertive" | "polite" | "off" | undefined;
|
|
120
120
|
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
121
121
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
122
122
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
@@ -126,7 +126,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
126
126
|
'aria-posinset'?: number | undefined;
|
|
127
127
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
128
128
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
129
|
-
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "
|
|
129
|
+
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
130
130
|
'aria-required': boolean | "true" | "false";
|
|
131
131
|
'aria-roledescription'?: string | undefined;
|
|
132
132
|
'aria-rowcount'?: number | undefined;
|
|
@@ -317,22 +317,27 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
317
317
|
onKeyUp?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
318
318
|
onMouseDown?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
319
319
|
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
320
|
+
content?: string | undefined;
|
|
321
|
+
translate?: "yes" | "no" | undefined;
|
|
322
|
+
hidden?: boolean | undefined;
|
|
320
323
|
slot?: string | undefined;
|
|
321
324
|
style?: import("react").CSSProperties | undefined;
|
|
322
325
|
title?: string | undefined;
|
|
323
|
-
|
|
326
|
+
rel?: string | undefined;
|
|
327
|
+
rev?: string | undefined;
|
|
328
|
+
role?: import("react").AriaRole | undefined;
|
|
329
|
+
'aria-live'?: "assertive" | "polite" | "off" | undefined;
|
|
330
|
+
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
331
|
+
'aria-labelledby'?: string | undefined;
|
|
332
|
+
id?: string | undefined;
|
|
324
333
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
325
334
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
326
335
|
className?: string | undefined;
|
|
327
|
-
id?: string | undefined;
|
|
328
336
|
prefix?: string | undefined;
|
|
329
|
-
role?: import("react").AriaRole | undefined;
|
|
330
337
|
dir?: string | undefined;
|
|
331
338
|
accessKey?: string | undefined;
|
|
332
339
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
333
|
-
hidden?: boolean | undefined;
|
|
334
340
|
lang?: string | undefined;
|
|
335
|
-
translate?: "yes" | "no" | undefined;
|
|
336
341
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
337
342
|
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
338
343
|
nonce?: string | undefined;
|
|
@@ -341,7 +346,6 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
341
346
|
defaultChecked?: boolean | undefined;
|
|
342
347
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
343
348
|
placeholder?: string | undefined;
|
|
344
|
-
content?: string | undefined;
|
|
345
349
|
onFocus?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
346
350
|
onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
347
351
|
onMouseEnter?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
@@ -356,9 +360,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
356
360
|
datatype?: string | undefined;
|
|
357
361
|
inlist?: any;
|
|
358
362
|
property?: string | undefined;
|
|
359
|
-
rel?: string | undefined;
|
|
360
363
|
resource?: string | undefined;
|
|
361
|
-
rev?: string | undefined;
|
|
362
364
|
typeof?: string | undefined;
|
|
363
365
|
vocab?: string | undefined;
|
|
364
366
|
autoCapitalize?: string | undefined;
|
|
@@ -371,7 +373,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
371
373
|
itemRef?: string | undefined;
|
|
372
374
|
results?: number | undefined;
|
|
373
375
|
security?: string | undefined;
|
|
374
|
-
unselectable?: "
|
|
376
|
+
unselectable?: "off" | "on" | undefined;
|
|
375
377
|
is?: string | undefined;
|
|
376
378
|
'aria-activedescendant'?: string | undefined;
|
|
377
379
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
@@ -384,7 +386,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
384
386
|
'aria-colindextext'?: string | undefined;
|
|
385
387
|
'aria-colspan'?: number | undefined;
|
|
386
388
|
'aria-controls'?: string | undefined;
|
|
387
|
-
'aria-current'?: boolean | "true" | "
|
|
389
|
+
'aria-current'?: boolean | "true" | "page" | "time" | "false" | "step" | "date" | "location" | undefined;
|
|
388
390
|
'aria-describedby'?: string | undefined;
|
|
389
391
|
'aria-description'?: string | undefined;
|
|
390
392
|
'aria-details'?: string | undefined;
|
|
@@ -394,11 +396,10 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
394
396
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
395
397
|
'aria-flowto'?: string | undefined;
|
|
396
398
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
397
|
-
'aria-haspopup'?: boolean | "true" | "
|
|
399
|
+
'aria-haspopup'?: boolean | "true" | "grid" | "dialog" | "menu" | "false" | "listbox" | "tree" | undefined;
|
|
398
400
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
399
401
|
'aria-keyshortcuts'?: string | undefined;
|
|
400
402
|
'aria-label'?: string | undefined;
|
|
401
|
-
'aria-labelledby'?: string | undefined;
|
|
402
403
|
'aria-level'?: number | undefined;
|
|
403
404
|
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
404
405
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
@@ -409,7 +410,6 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
409
410
|
'aria-posinset'?: number | undefined;
|
|
410
411
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
411
412
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
412
|
-
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
413
413
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
414
414
|
'aria-roledescription'?: string | undefined;
|
|
415
415
|
'aria-rowcount'?: number | undefined;
|
package/src/Badge/Badge.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
1
2
|
import { BadgeProps } from './Badge.type';
|
|
2
3
|
import badgeStyles from './styles/Badge.css';
|
|
3
4
|
export declare const Badge: {
|
|
4
|
-
(inProps: BadgeProps):
|
|
5
|
+
(inProps: BadgeProps): ReactElement;
|
|
5
6
|
displayName: string;
|
|
6
7
|
};
|
|
7
8
|
export { badgeStyles };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
2
|
import { ButtonColor, ButtonSize, ButtonVariant } from './Button.type';
|
|
3
|
-
export type BaseButtonClassesKey = 'root' | 'loading' | 'loading-indicator' | 'content' | 'start-slot' | 'end-slot' | 'full-width' | 'hide-background' | 'has-start-slot' | 'has-end-slot' | ButtonVariant | ButtonSize | ButtonColor | `${ButtonVariant}-${ButtonColor}` | `${ButtonVariant}-${ButtonSize}` | `${ButtonSize}-start-slot` | `${ButtonSize}-end-slot` | `${ButtonVariant}-${ButtonSize}-start-slot` | `${ButtonVariant}-${ButtonSize}-end-slot` | `${ButtonVariant}-hide-background`;
|
|
3
|
+
export type BaseButtonClassesKey = 'root' | 'loading' | 'loading-indicator' | 'loading-iconless' | 'slot' | 'content' | 'start-slot' | 'center-slot' | 'end-slot' | 'full-width' | 'hide-background' | 'has-start-slot' | 'has-end-slot' | ButtonVariant | ButtonSize | ButtonColor | `${ButtonVariant}-${ButtonColor}` | `${ButtonVariant}-${ButtonSize}` | `${ButtonSize}-start-slot` | `${ButtonSize}-end-slot` | `${ButtonVariant}-${ButtonSize}-start-slot` | `${ButtonVariant}-${ButtonSize}-end-slot` | `${ButtonVariant}-hide-background`;
|
|
4
4
|
export type ButtonClassesKey = CamelCase<BaseButtonClassesKey>;
|
|
5
5
|
export type ButtonClasses = {
|
|
6
6
|
name: 'button';
|
package/src/ComponentsProps.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { PartialDeep } from 'type-fest';
|
|
2
1
|
import type { AccordionProps } from './Accordion';
|
|
3
2
|
import type { AccordionHeaderProps } from './AccordionHeader';
|
|
4
3
|
import type { AlertProps } from './Alert';
|
|
@@ -96,112 +95,114 @@ import type { StepIconProps } from './StepIcon';
|
|
|
96
95
|
import type { StepButtonProps } from './StepButton';
|
|
97
96
|
import type { StepContentProps } from './StepContent';
|
|
98
97
|
import type { RatingProps } from './Rating';
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
98
|
+
declare module '@ringcentral/spring-theme' {
|
|
99
|
+
interface ComponentsPropsRegistry {
|
|
100
|
+
Accordion?: AccordionProps;
|
|
101
|
+
AccordionHeader?: AccordionHeaderProps;
|
|
102
|
+
Alert?: AlertProps;
|
|
103
|
+
Announcement?: AnnouncementProps;
|
|
104
|
+
Avatar?: AvatarProps;
|
|
105
|
+
AvatarGroup?: AvatarGroupProps;
|
|
106
|
+
Badge?: BadgeProps;
|
|
107
|
+
Block?: BlockProps;
|
|
108
|
+
BlockHeader?: BlockHeaderProps;
|
|
109
|
+
BottomNavigation?: BottomNavigationProps;
|
|
110
|
+
BottomNavigationItem?: BottomNavigationItemProps;
|
|
111
|
+
Button?: ButtonProps;
|
|
112
|
+
CallButton?: CallButtonProps;
|
|
113
|
+
Checkbox?: CheckboxProps;
|
|
114
|
+
Chip?: ChipProps;
|
|
115
|
+
CircularProgressIndicator?: CircularProgressIndicatorProps;
|
|
116
|
+
Dialog?: DialogProps;
|
|
117
|
+
Drawer?: DrawerProps;
|
|
118
|
+
SwipeableDrawer?: SwipeableDrawerProps;
|
|
119
|
+
DialDelete?: DialDeleteProps;
|
|
120
|
+
DialPad?: DialPadProps;
|
|
121
|
+
DialTextField?: DialTextFieldProps;
|
|
122
|
+
Divider?: DividerProps;
|
|
123
|
+
Dropdown?: DropdownProps;
|
|
124
|
+
EmptyState?: EmptyStateProps;
|
|
125
|
+
FabButton?: FabButtonProps;
|
|
126
|
+
FormField?: FormFieldProps;
|
|
127
|
+
FormLabel?: FormLabelProps;
|
|
128
|
+
Icon?: IconProps;
|
|
129
|
+
IconButton?: IconButtonProps;
|
|
130
|
+
IconButtonLabel?: IconButtonLabelProps;
|
|
131
|
+
LinearProgressIndicator?: LinearProgressIndicatorProps;
|
|
132
|
+
Link?: LinkProps;
|
|
133
|
+
List?: ListProps;
|
|
134
|
+
ListItem?: ListItemProps;
|
|
135
|
+
ListItemText?: ListItemTextProps;
|
|
136
|
+
Menu?: MenuProps;
|
|
137
|
+
MenuActions?: MenuActionsProps;
|
|
138
|
+
MenuDivider?: MenuDividerProps;
|
|
139
|
+
MenuFooter?: MenuFooterProps;
|
|
140
|
+
MenuHeader?: MenuHeaderProps;
|
|
141
|
+
MenuItem?: MenuItemProps;
|
|
142
|
+
MenuItemText?: MenuItemTextProps;
|
|
143
|
+
MenuList?: MenuListProps;
|
|
144
|
+
Option?: OptionProps;
|
|
145
|
+
Overlap?: OverlapProps;
|
|
146
|
+
PageHeader?: PageHeaderProps;
|
|
147
|
+
Popover?: PopoverProps;
|
|
148
|
+
Popper?: PopperProps;
|
|
149
|
+
Radio?: RadioProps;
|
|
150
|
+
RadioGroup?: RadioGroupProps;
|
|
151
|
+
Select?: SelectProps;
|
|
152
|
+
SingleFilter?: SingleFilterProps;
|
|
153
|
+
Skeleton?: SkeletonProps;
|
|
154
|
+
SkeletonContainer?: SkeletonContainerProps;
|
|
155
|
+
Slider?: SliderProps;
|
|
156
|
+
Snackbar?: SnackbarProps;
|
|
157
|
+
SplitButton?: SplitButtonProps;
|
|
158
|
+
Squircle?: SquircleProps;
|
|
159
|
+
StatusIndicator?: StatusIndicatorProps;
|
|
160
|
+
SubMenu?: SubMenuProps;
|
|
161
|
+
Switch?: SwitchProps;
|
|
162
|
+
Tab?: TabProps;
|
|
163
|
+
Tabs?: TabsProps;
|
|
164
|
+
TabPanel?: TabPanelProps;
|
|
165
|
+
Tag?: TagProps;
|
|
166
|
+
TextField?: TextFieldProps;
|
|
167
|
+
Textarea?: TextareaProps;
|
|
168
|
+
Tooltip?: TooltipProps;
|
|
169
|
+
Tray?: TrayProps;
|
|
170
|
+
TrayPanel?: TrayPanelProps;
|
|
171
|
+
TrayMenu?: TrayMenuProps;
|
|
172
|
+
TrayMenuItem?: TrayMenuItemProps;
|
|
173
|
+
Backdrop?: BackdropProps;
|
|
174
|
+
VirtualizedList?: VirtualizedListProps;
|
|
175
|
+
VirtualizedMenu?: VirtualizedMenuProps;
|
|
176
|
+
SortableListDndContext?: SortableListDndContextProps;
|
|
177
|
+
SortableList?: SortableListProps;
|
|
178
|
+
SortableVirtualizedList?: SortableVirtualizedListProps;
|
|
179
|
+
InlineEditable?: InlineEditableProps;
|
|
180
|
+
Autocomplete?: AutocompleteProps;
|
|
181
|
+
SuggestionList?: SuggestionListProps;
|
|
182
|
+
DatePicker?: DatePickerProps;
|
|
183
|
+
TimePicker?: TimePickerProps;
|
|
184
|
+
PopperPaper?: PopperPaperProps;
|
|
185
|
+
Modal?: ModalProps;
|
|
186
|
+
Text?: TextProps;
|
|
187
|
+
Table?: TableProps;
|
|
188
|
+
TableBody?: TableBodyProps;
|
|
189
|
+
TableCell?: TableCellProps;
|
|
190
|
+
TableHead?: TableHeadProps;
|
|
191
|
+
TableRow?: TableRowProps;
|
|
192
|
+
TableContainer?: TableContainerProps;
|
|
193
|
+
Step?: StepProps;
|
|
194
|
+
Stepper?: StepperProps;
|
|
195
|
+
StepConnector?: StepConnectorProps;
|
|
196
|
+
StepLabel?: StepLabelProps;
|
|
197
|
+
StepIcon?: StepIconProps;
|
|
198
|
+
StepButton?: StepButtonProps;
|
|
199
|
+
StepContent?: StepContentProps;
|
|
200
|
+
Rating?: RatingProps;
|
|
201
|
+
PageHeaderLeft?: PageHeaderLeftProps;
|
|
202
|
+
PageHeaderCenter?: PageHeaderCenterProps;
|
|
203
|
+
PageHeaderRight?: PageHeaderRightProps;
|
|
204
|
+
PageHeaderTitle?: PageHeaderTitleProps;
|
|
205
|
+
TablePagination?: TablePaginationProps;
|
|
206
|
+
IconButtonGroup?: IconButtonGroupProps;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const DATE_PICKER_HEADER_DATA_ATTRIBUTES: {
|
|
2
|
+
readonly previousMonth: "data-sui-picker-previous-month";
|
|
3
|
+
readonly nextMonth: "data-sui-picker-next-month";
|
|
4
|
+
readonly switchYearAction: "data-sui-picker-switch-year-action";
|
|
5
|
+
};
|
|
6
|
+
declare const DATE_PICKER_HEADER_SELECTORS: {
|
|
7
|
+
readonly previousMonth: "[data-sui-picker-previous-month]";
|
|
8
|
+
readonly nextMonth: "[data-sui-picker-next-month]";
|
|
9
|
+
readonly switchYearAction: "[data-sui-picker-switch-year-action]";
|
|
10
|
+
};
|
|
11
|
+
export { DATE_PICKER_HEADER_DATA_ATTRIBUTES, DATE_PICKER_HEADER_SELECTORS };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import type { DateType } from '../DatePicker.type';
|
|
3
3
|
type DayAriaLabelContext = {
|
|
4
4
|
date: DateType;
|
|
@@ -18,6 +18,7 @@ declare const ScreenReaderContext: import("react").Context<ScreenReaderProps | n
|
|
|
18
18
|
declare const useScreenReaderContext: () => ScreenReaderProps | null;
|
|
19
19
|
type ScreenReaderProviderProps = {
|
|
20
20
|
screenReaderProps?: ScreenReaderProps;
|
|
21
|
+
children?: ReactNode;
|
|
21
22
|
};
|
|
22
23
|
declare const ScreenReaderProvider: FunctionComponent<ScreenReaderProviderProps>;
|
|
23
24
|
export { ScreenReaderContext, ScreenReaderProvider, useScreenReaderContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import DateUtils from '@date-io/dayjs';
|
|
2
2
|
import { CalendarProps } from '../Calendar';
|
|
3
3
|
import { DateType } from '../DatePicker.type';
|
|
4
|
-
export declare const focusDayElement: () =>
|
|
4
|
+
export declare const focusDayElement: (root?: ParentNode | null) => HTMLElement | null | undefined;
|
|
5
5
|
export declare const isSameYearAndMonth: ({ source, comparing }: {
|
|
6
6
|
source: DateType;
|
|
7
7
|
comparing: DateType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
1
|
+
import { FunctionComponent, ReactElement } from 'react';
|
|
2
2
|
import { DialPadOnChangeReason } from '../DialPad';
|
|
3
3
|
type DialDeleteProps = {
|
|
4
|
-
children:
|
|
4
|
+
children: ReactElement;
|
|
5
5
|
onDelete?: (e: React.MouseEvent<unknown, MouseEvent> | React.TouchEvent<unknown> | React.KeyboardEvent<unknown>, reason: DialPadOnChangeReason) => void;
|
|
6
6
|
onClear?: (e: React.MouseEvent<unknown, MouseEvent> | React.TouchEvent<unknown> | React.KeyboardEvent<unknown>, reason: DialPadOnChangeReason) => void;
|
|
7
7
|
externalWindow?: Window;
|
|
@@ -16,7 +16,7 @@ type DialPadProps = {
|
|
|
16
16
|
autoSize?: boolean;
|
|
17
17
|
action?: Ref<DialPadAction>;
|
|
18
18
|
control?: Ref<DialPadControl>;
|
|
19
|
-
getDialPadButtonProps?: (value: DIALER_PAD_ICON_VALUES) => Omit<IconButtonProps, 'value' | '
|
|
19
|
+
getDialPadButtonProps?: (value: DIALER_PAD_ICON_VALUES) => Omit<IconButtonProps, 'value' | 'onFocus'> & HTMLDataAttribute;
|
|
20
20
|
size?: 'large' | 'medium';
|
|
21
21
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> & Pick<DialPadButtonProps, 'classes'>;
|
|
22
22
|
declare const DialPad: import("react").ForwardRefExoticComponent<{
|
|
@@ -30,7 +30,7 @@ declare const DialPad: import("react").ForwardRefExoticComponent<{
|
|
|
30
30
|
autoSize?: boolean | undefined;
|
|
31
31
|
action?: Ref<DialPadAction> | undefined;
|
|
32
32
|
control?: Ref<DialPadControl> | undefined;
|
|
33
|
-
getDialPadButtonProps?: ((value: DIALER_PAD_ICON_VALUES) => Omit<IconButtonProps, 'value' | '
|
|
33
|
+
getDialPadButtonProps?: ((value: DIALER_PAD_ICON_VALUES) => Omit<IconButtonProps, 'value' | 'onFocus'> & HTMLDataAttribute) | undefined;
|
|
34
34
|
size?: "medium" | "large" | undefined;
|
|
35
35
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & Pick<DialPadButtonProps, "classes"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
36
36
|
export type { DialPadAction, DialPadOnChangeReason, DialPadProps };
|
package/src/Dialer/Dialer.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
type DialerProps = {
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
type DialerProps = {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
};
|
|
3
5
|
declare const Dialer: FunctionComponent<DialerProps>;
|
|
4
6
|
export { Dialer };
|
|
5
7
|
export type { DialerProps };
|
|
@@ -10,7 +10,7 @@ export type DropdownProps<T = string, D = unknown> = StandardProps<{
|
|
|
10
10
|
placeholder?: ReactNode;
|
|
11
11
|
rootProps?: SlotProps<'div', 'ref'>;
|
|
12
12
|
buttonProps?: SlotProps<'button'> & Pick<UseFocusVisibleOptions, 'onFocusVisible'>;
|
|
13
|
-
MenuProps?: (Omit<VirtualizedMenuProps
|
|
13
|
+
MenuProps?: (Omit<VirtualizedMenuProps<D>, 'open' | 'anchorEl' | 'onClose' | 'initialFocus' | 'data' | 'children'> | Omit<MenuProps, 'open' | 'anchorEl' | 'onClose' | 'children'>) & HTMLDataAttribute;
|
|
14
14
|
ref?: Ref<HTMLDivElement>;
|
|
15
15
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
16
16
|
virtualize?: boolean;
|
|
@@ -23,7 +23,7 @@ export type DropdownProps<T = string, D = unknown> = StandardProps<{
|
|
|
23
23
|
onOpenChange?: (isOpen: boolean) => void;
|
|
24
24
|
label?: string;
|
|
25
25
|
data: D[];
|
|
26
|
-
children: ReactNode | VirtualizedMenuProps['children'];
|
|
26
|
+
children: ReactNode | VirtualizedMenuProps<D>['children'];
|
|
27
27
|
getSelectedIndex?: (value: T) => number;
|
|
28
28
|
}, DropdownClassesKey>;
|
|
29
29
|
export interface DropdownComponent {
|