@carbon/react 1.48.0 → 1.49.0-rc.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/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +984 -984
- package/es/components/Accordion/Accordion.Skeleton.d.ts +1 -2
- package/es/components/Accordion/Accordion.d.ts +1 -1
- package/es/components/Accordion/AccordionItem.d.ts +1 -1
- package/es/components/Accordion/AccordionItem.js +5 -0
- package/es/components/Accordion/AccordionProvider.d.ts +1 -1
- package/es/components/AspectRatio/AspectRatio.d.ts +1 -1
- package/es/components/Breadcrumb/Breadcrumb.Skeleton.d.ts +1 -1
- package/es/components/Checkbox/Checkbox.Skeleton.d.ts +1 -1
- package/es/components/ClassPrefix/index.d.ts +1 -1
- package/es/components/ContentSwitcher/ContentSwitcher.d.ts +1 -1
- package/es/components/DataTable/Table.d.ts +1 -1
- package/es/components/DataTable/TableBatchAction.d.ts +1 -1
- package/es/components/DataTable/TableBody.d.ts +1 -1
- package/es/components/DataTable/TableContainer.d.ts +1 -1
- package/es/components/DataTable/TableExpandHeader.d.ts +1 -1
- package/es/components/DataTable/TableExpandedRow.d.ts +1 -1
- package/es/components/DataTable/TableRow.d.ts +1 -1
- package/es/components/DataTable/TableSelectAll.d.ts +1 -1
- package/es/components/DataTable/TableSelectRow.d.ts +1 -1
- package/es/components/DataTable/TableSlugRow.d.ts +1 -1
- package/es/components/DataTable/TableToolbarMenu.d.ts +1 -1
- package/es/components/DataTable/TableToolbarSearch.d.ts +1 -1
- package/es/components/DatePicker/DatePicker.Skeleton.d.ts +1 -1
- package/es/components/DatePicker/DatePicker.d.ts +1 -3
- package/es/components/ExpandableSearch/ExpandableSearch.d.ts +1 -1
- package/es/components/FileUploader/FileUploader.Skeleton.d.ts +1 -2
- package/es/components/FileUploader/FileUploader.d.ts +1 -1
- package/es/components/FileUploader/FileUploaderButton.d.ts +1 -1
- package/es/components/FileUploader/FileUploaderDropContainer.d.ts +1 -1
- package/es/components/FileUploader/FileUploaderItem.d.ts +1 -1
- package/es/components/FileUploader/Filename.d.ts +1 -1
- package/es/components/Form/Form.d.ts +1 -1
- package/es/components/FormGroup/FormGroup.d.ts +1 -1
- package/es/components/FormItem/FormItem.d.ts +1 -1
- package/es/components/FormLabel/FormLabel.d.ts +1 -1
- package/es/components/Heading/index.d.ts +5 -5
- package/es/components/Icon/Icon.Skeleton.d.ts +1 -1
- package/es/components/InlineLoading/InlineLoading.d.ts +1 -1
- package/es/components/ListBox/ListBoxMenu.d.ts +1 -0
- package/es/components/ListItem/ListItem.d.ts +1 -1
- package/es/components/Loading/Loading.d.ts +1 -2
- package/es/components/Loading/Loading.js +2 -2
- package/es/components/ModalWrapper/ModalWrapper.d.ts +1 -1
- package/es/components/Notification/Notification.d.ts +8 -6
- package/es/components/Notification/Notification.js +2 -1
- package/es/components/NumberInput/NumberInput.Skeleton.d.ts +1 -1
- package/es/components/OrderedList/OrderedList.d.ts +1 -1
- package/es/components/PrimaryButton/PrimaryButton.d.ts +1 -1
- package/es/components/ProgressBar/ProgressBar.d.ts +1 -2
- package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.d.ts +1 -2
- package/es/components/ProgressIndicator/ProgressIndicator.d.ts +2 -2
- package/es/components/RadioButton/RadioButton.Skeleton.d.ts +1 -1
- package/es/components/Search/Search.Skeleton.d.ts +1 -1
- package/es/components/SecondaryButton/SecondaryButton.d.ts +1 -1
- package/es/components/Select/Select.Skeleton.d.ts +1 -1
- package/es/components/Select/Select.d.ts +1 -1
- package/es/components/SelectItem/SelectItem.d.ts +1 -1
- package/es/components/SelectItemGroup/SelectItemGroup.d.ts +1 -1
- package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.d.ts +1 -1
- package/es/components/SkeletonText/SkeletonText.d.ts +1 -1
- package/es/components/Slider/Slider.Skeleton.d.ts +1 -1
- package/es/components/Slider/Slider.d.ts +1 -1
- package/es/components/Slider/SliderHandles.d.ts +4 -4
- package/es/components/Stack/index.d.ts +4 -3
- package/es/components/StructuredList/StructuredList.Skeleton.d.ts +1 -2
- package/es/components/StructuredList/StructuredList.d.ts +6 -6
- package/es/components/TabContent/TabContent.d.ts +1 -1
- package/es/components/Tabs/Tabs.Skeleton.d.ts +1 -1
- package/es/components/Tabs/Tabs.d.ts +3 -3
- package/es/components/Tag/Tag.Skeleton.d.ts +1 -1
- package/es/components/Tag/Tag.d.ts +1 -1
- package/es/components/Text/Text.d.ts +1 -1
- package/es/components/Text/TextDirection.d.ts +1 -1
- package/es/components/Text/createTextComponent.d.ts +1 -1
- package/es/components/Text/index.d.ts +2 -2
- package/es/components/TextArea/TextArea.Skeleton.d.ts +1 -1
- package/es/components/TextInput/TextInput.Skeleton.d.ts +1 -1
- package/es/components/Theme/index.d.ts +4 -2
- package/es/components/TileGroup/TileGroup.d.ts +1 -1
- package/es/components/Toggle/Toggle.d.ts +1 -1
- package/es/components/Toggletip/index.d.ts +5 -5
- package/es/components/Tooltip/Tooltip.d.ts +1 -1
- package/es/components/UIShell/Content.d.ts +61 -49
- package/es/components/UIShell/HeaderContainer.d.ts +1 -1
- package/es/components/UIShell/HeaderMenuButton.d.ts +1 -1
- package/es/components/UIShell/HeaderName.d.ts +1 -1
- package/es/components/UIShell/HeaderNavigation.d.ts +1 -1
- package/es/components/UIShell/HeaderSideNavItems.d.ts +1 -1
- package/es/components/UIShell/SideNav.d.ts +1 -1
- package/es/components/UIShell/SideNavDetails.d.ts +1 -1
- package/es/components/UIShell/SideNavFooter.d.ts +1 -1
- package/es/components/UIShell/SideNavLinkText.d.ts +1 -1
- package/es/components/UIShell/SkipToContent.d.ts +1 -1
- package/es/components/UnorderedList/UnorderedList.d.ts +1 -1
- package/lib/components/Accordion/Accordion.Skeleton.d.ts +1 -2
- package/lib/components/Accordion/Accordion.d.ts +1 -1
- package/lib/components/Accordion/AccordionItem.d.ts +1 -1
- package/lib/components/Accordion/AccordionItem.js +5 -0
- package/lib/components/Accordion/AccordionProvider.d.ts +1 -1
- package/lib/components/AspectRatio/AspectRatio.d.ts +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.Skeleton.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.Skeleton.d.ts +1 -1
- package/lib/components/ClassPrefix/index.d.ts +1 -1
- package/lib/components/ContentSwitcher/ContentSwitcher.d.ts +1 -1
- package/lib/components/DataTable/Table.d.ts +1 -1
- package/lib/components/DataTable/TableBatchAction.d.ts +1 -1
- package/lib/components/DataTable/TableBody.d.ts +1 -1
- package/lib/components/DataTable/TableContainer.d.ts +1 -1
- package/lib/components/DataTable/TableExpandHeader.d.ts +1 -1
- package/lib/components/DataTable/TableExpandedRow.d.ts +1 -1
- package/lib/components/DataTable/TableRow.d.ts +1 -1
- package/lib/components/DataTable/TableSelectAll.d.ts +1 -1
- package/lib/components/DataTable/TableSelectRow.d.ts +1 -1
- package/lib/components/DataTable/TableSlugRow.d.ts +1 -1
- package/lib/components/DataTable/TableToolbarMenu.d.ts +1 -1
- package/lib/components/DataTable/TableToolbarSearch.d.ts +1 -1
- package/lib/components/DatePicker/DatePicker.Skeleton.d.ts +1 -1
- package/lib/components/DatePicker/DatePicker.d.ts +1 -3
- package/lib/components/ExpandableSearch/ExpandableSearch.d.ts +1 -1
- package/lib/components/FileUploader/FileUploader.Skeleton.d.ts +1 -2
- package/lib/components/FileUploader/FileUploader.d.ts +1 -1
- package/lib/components/FileUploader/FileUploaderButton.d.ts +1 -1
- package/lib/components/FileUploader/FileUploaderDropContainer.d.ts +1 -1
- package/lib/components/FileUploader/FileUploaderItem.d.ts +1 -1
- package/lib/components/FileUploader/Filename.d.ts +1 -1
- package/lib/components/Form/Form.d.ts +1 -1
- package/lib/components/FormGroup/FormGroup.d.ts +1 -1
- package/lib/components/FormItem/FormItem.d.ts +1 -1
- package/lib/components/FormLabel/FormLabel.d.ts +1 -1
- package/lib/components/Heading/index.d.ts +5 -5
- package/lib/components/Icon/Icon.Skeleton.d.ts +1 -1
- package/lib/components/InlineLoading/InlineLoading.d.ts +1 -1
- package/lib/components/ListBox/ListBoxMenu.d.ts +1 -0
- package/lib/components/ListItem/ListItem.d.ts +1 -1
- package/lib/components/Loading/Loading.d.ts +1 -2
- package/lib/components/Loading/Loading.js +2 -2
- package/lib/components/ModalWrapper/ModalWrapper.d.ts +1 -1
- package/lib/components/Notification/Notification.d.ts +8 -6
- package/lib/components/Notification/Notification.js +2 -1
- package/lib/components/NumberInput/NumberInput.Skeleton.d.ts +1 -1
- package/lib/components/OrderedList/OrderedList.d.ts +1 -1
- package/lib/components/PrimaryButton/PrimaryButton.d.ts +1 -1
- package/lib/components/ProgressBar/ProgressBar.d.ts +1 -2
- package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.d.ts +1 -2
- package/lib/components/ProgressIndicator/ProgressIndicator.d.ts +2 -2
- package/lib/components/RadioButton/RadioButton.Skeleton.d.ts +1 -1
- package/lib/components/Search/Search.Skeleton.d.ts +1 -1
- package/lib/components/SecondaryButton/SecondaryButton.d.ts +1 -1
- package/lib/components/Select/Select.Skeleton.d.ts +1 -1
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/SelectItem/SelectItem.d.ts +1 -1
- package/lib/components/SelectItemGroup/SelectItemGroup.d.ts +1 -1
- package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.d.ts +1 -1
- package/lib/components/SkeletonText/SkeletonText.d.ts +1 -1
- package/lib/components/Slider/Slider.Skeleton.d.ts +1 -1
- package/lib/components/Slider/Slider.d.ts +1 -1
- package/lib/components/Slider/SliderHandles.d.ts +4 -4
- package/lib/components/Stack/index.d.ts +4 -3
- package/lib/components/StructuredList/StructuredList.Skeleton.d.ts +1 -2
- package/lib/components/StructuredList/StructuredList.d.ts +6 -6
- package/lib/components/TabContent/TabContent.d.ts +1 -1
- package/lib/components/Tabs/Tabs.Skeleton.d.ts +1 -1
- package/lib/components/Tabs/Tabs.d.ts +3 -3
- package/lib/components/Tag/Tag.Skeleton.d.ts +1 -1
- package/lib/components/Tag/Tag.d.ts +1 -1
- package/lib/components/Text/Text.d.ts +1 -1
- package/lib/components/Text/TextDirection.d.ts +1 -1
- package/lib/components/Text/createTextComponent.d.ts +1 -1
- package/lib/components/Text/index.d.ts +2 -2
- package/lib/components/TextArea/TextArea.Skeleton.d.ts +1 -1
- package/lib/components/TextInput/TextInput.Skeleton.d.ts +1 -1
- package/lib/components/Theme/index.d.ts +4 -2
- package/lib/components/TileGroup/TileGroup.d.ts +1 -1
- package/lib/components/Toggle/Toggle.d.ts +1 -1
- package/lib/components/Toggletip/index.d.ts +5 -5
- package/lib/components/Tooltip/Tooltip.d.ts +1 -1
- package/lib/components/UIShell/Content.d.ts +61 -49
- package/lib/components/UIShell/HeaderContainer.d.ts +1 -1
- package/lib/components/UIShell/HeaderMenuButton.d.ts +1 -1
- package/lib/components/UIShell/HeaderName.d.ts +1 -1
- package/lib/components/UIShell/HeaderNavigation.d.ts +1 -1
- package/lib/components/UIShell/HeaderSideNavItems.d.ts +1 -1
- package/lib/components/UIShell/SideNav.d.ts +1 -1
- package/lib/components/UIShell/SideNavDetails.d.ts +1 -1
- package/lib/components/UIShell/SideNavFooter.d.ts +1 -1
- package/lib/components/UIShell/SideNavLinkText.d.ts +1 -1
- package/lib/components/UIShell/SkipToContent.d.ts +1 -1
- package/lib/components/UnorderedList/UnorderedList.d.ts +1 -1
- package/package.json +6 -6
|
@@ -28,6 +28,7 @@ declare const Content: {
|
|
|
28
28
|
suppressContentEditableWarning?: boolean | undefined;
|
|
29
29
|
suppressHydrationWarning?: boolean | undefined;
|
|
30
30
|
accessKey?: string | undefined;
|
|
31
|
+
autoFocus?: boolean | undefined;
|
|
31
32
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
32
33
|
contextMenu?: string | undefined;
|
|
33
34
|
dir?: string | undefined;
|
|
@@ -35,6 +36,7 @@ declare const Content: {
|
|
|
35
36
|
hidden?: boolean | undefined;
|
|
36
37
|
id?: string | undefined;
|
|
37
38
|
lang?: string | undefined;
|
|
39
|
+
nonce?: string | undefined;
|
|
38
40
|
placeholder?: string | undefined;
|
|
39
41
|
slot?: string | undefined;
|
|
40
42
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -45,11 +47,14 @@ declare const Content: {
|
|
|
45
47
|
radioGroup?: string | undefined;
|
|
46
48
|
role?: React.AriaRole | undefined;
|
|
47
49
|
about?: string | undefined;
|
|
50
|
+
content?: string | undefined;
|
|
48
51
|
datatype?: string | undefined;
|
|
49
52
|
inlist?: any;
|
|
50
53
|
prefix?: string | undefined;
|
|
51
54
|
property?: string | undefined;
|
|
55
|
+
rel?: string | undefined;
|
|
52
56
|
resource?: string | undefined;
|
|
57
|
+
rev?: string | undefined;
|
|
53
58
|
typeof?: string | undefined;
|
|
54
59
|
vocab?: string | undefined;
|
|
55
60
|
autoCapitalize?: string | undefined;
|
|
@@ -66,56 +71,61 @@ declare const Content: {
|
|
|
66
71
|
unselectable?: "on" | "off" | undefined;
|
|
67
72
|
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
68
73
|
is?: string | undefined;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
74
|
+
"aria-activedescendant"?: string | undefined;
|
|
75
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
76
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
77
|
+
"aria-braillelabel"?: string | undefined;
|
|
78
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
79
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
80
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
81
|
+
"aria-colcount"?: number | undefined;
|
|
82
|
+
"aria-colindex"?: number | undefined;
|
|
83
|
+
"aria-colindextext"?: string | undefined;
|
|
84
|
+
"aria-colspan"?: number | undefined;
|
|
85
|
+
"aria-controls"?: string | undefined;
|
|
86
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
87
|
+
"aria-describedby"?: string | undefined;
|
|
88
|
+
"aria-description"?: string | undefined;
|
|
89
|
+
"aria-details"?: string | undefined;
|
|
90
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
91
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
92
|
+
"aria-errormessage"?: string | undefined;
|
|
93
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
94
|
+
"aria-flowto"?: string | undefined;
|
|
95
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
96
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
|
|
97
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
98
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
99
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
100
|
+
"aria-label"?: string | undefined;
|
|
101
|
+
"aria-labelledby"?: string | undefined;
|
|
102
|
+
"aria-level"?: number | undefined;
|
|
103
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
104
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
105
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
106
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
107
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
108
|
+
"aria-owns"?: string | undefined;
|
|
109
|
+
"aria-placeholder"?: string | undefined;
|
|
110
|
+
"aria-posinset"?: number | undefined;
|
|
111
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
112
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
113
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
114
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
115
|
+
"aria-roledescription"?: string | undefined;
|
|
116
|
+
"aria-rowcount"?: number | undefined;
|
|
117
|
+
"aria-rowindex"?: number | undefined;
|
|
118
|
+
"aria-rowindextext"?: string | undefined;
|
|
119
|
+
"aria-rowspan"?: number | undefined;
|
|
120
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
121
|
+
"aria-setsize"?: number | undefined;
|
|
122
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
123
|
+
"aria-valuemax"?: number | undefined;
|
|
124
|
+
"aria-valuemin"?: number | undefined;
|
|
125
|
+
"aria-valuenow"?: number | undefined;
|
|
126
|
+
"aria-valuetext"?: string | undefined;
|
|
117
127
|
dangerouslySetInnerHTML?: {
|
|
118
|
-
__html: string;
|
|
128
|
+
__html: string | TrustedHTML;
|
|
119
129
|
} | undefined;
|
|
120
130
|
onCopy?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
121
131
|
onCopyCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
@@ -185,6 +195,8 @@ declare const Content: {
|
|
|
185
195
|
onProgressCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
186
196
|
onRateChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
187
197
|
onRateChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
198
|
+
onResize?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
199
|
+
onResizeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
188
200
|
onSeeked?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
189
201
|
onSeekedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
190
202
|
onSeeking?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
@@ -14,7 +14,7 @@ export interface HeaderContainerProps {
|
|
|
14
14
|
isSideNavExpanded?: boolean;
|
|
15
15
|
render: React.ComponentType<HeaderContainerRenderProps>;
|
|
16
16
|
}
|
|
17
|
-
declare function HeaderContainer({ render: Children, isSideNavExpanded, }: HeaderContainerProps): JSX.Element;
|
|
17
|
+
declare function HeaderContainer({ render: Children, isSideNavExpanded, }: HeaderContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
declare namespace HeaderContainer {
|
|
19
19
|
var propTypes: {
|
|
20
20
|
/**
|
|
@@ -16,7 +16,7 @@ export interface HeaderMenuButtonProps extends HeaderMenuButtonBaseProps {
|
|
|
16
16
|
isActive?: boolean;
|
|
17
17
|
isCollapsible?: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare function HeaderMenuButton({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, className: customClassName, renderMenuIcon, renderCloseIcon, isActive, isCollapsible, ...rest }: HeaderMenuButtonProps): JSX.Element;
|
|
19
|
+
declare function HeaderMenuButton({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, className: customClassName, renderMenuIcon, renderCloseIcon, isActive, isCollapsible, ...rest }: HeaderMenuButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
declare namespace HeaderMenuButton {
|
|
21
21
|
var propTypes: {
|
|
22
22
|
/**
|
|
@@ -10,7 +10,7 @@ import { type LinkProps } from './Link';
|
|
|
10
10
|
export type HeaderNameProps<E extends ElementType> = LinkProps<E> & {
|
|
11
11
|
prefix?: string | undefined;
|
|
12
12
|
};
|
|
13
|
-
declare function HeaderName<E extends ElementType = 'a'>({ children, className: customClassName, prefix, ...rest }: HeaderNameProps<E>): JSX.Element;
|
|
13
|
+
declare function HeaderName<E extends ElementType = 'a'>({ children, className: customClassName, prefix, ...rest }: HeaderNameProps<E>): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
declare namespace HeaderName {
|
|
15
15
|
var propTypes: {
|
|
16
16
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { type ComponentProps } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
export type HeaderNavigationProps = ComponentProps<'nav'>;
|
|
10
|
-
declare function HeaderNavigation({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, children, className: customClassName, ...rest }: HeaderNavigationProps): JSX.Element;
|
|
10
|
+
declare function HeaderNavigation({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, children, className: customClassName, ...rest }: HeaderNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare namespace HeaderNavigation {
|
|
12
12
|
var propTypes: {
|
|
13
13
|
/**
|
|
@@ -11,7 +11,7 @@ export interface HeaderSideNavItemsProps {
|
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
hasDivider?: boolean | undefined;
|
|
13
13
|
}
|
|
14
|
-
declare function HeaderSideNavItems({ className: customClassName, children, hasDivider, }: HeaderSideNavItemsProps): JSX.Element;
|
|
14
|
+
declare function HeaderSideNavItems({ className: customClassName, children, hasDivider, }: HeaderSideNavItemsProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
declare namespace HeaderSideNavItems {
|
|
16
16
|
var propTypes: {
|
|
17
17
|
/**
|
|
@@ -25,5 +25,5 @@ interface SideNavContextData {
|
|
|
25
25
|
isRail?: boolean | undefined;
|
|
26
26
|
}
|
|
27
27
|
export declare const SideNavContext: React.Context<SideNavContextData>;
|
|
28
|
-
declare const SideNav: React.ForwardRefExoticComponent<
|
|
28
|
+
declare const SideNav: React.ForwardRefExoticComponent<Omit<SideNavProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
29
29
|
export default SideNav;
|
|
@@ -12,7 +12,7 @@ export interface SideNavDetailsProps {
|
|
|
12
12
|
title: string;
|
|
13
13
|
}
|
|
14
14
|
declare const SideNavDetails: {
|
|
15
|
-
({ children, className: customClassName, title, ...rest }: SideNavDetailsProps): JSX.Element;
|
|
15
|
+
({ children, className: customClassName, title, ...rest }: SideNavDetailsProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
propTypes: {
|
|
17
17
|
/**
|
|
18
18
|
* Provide optional children to render in `SideNavDetails`. Useful for
|
|
@@ -28,7 +28,7 @@ export interface SideNavFooterProps {
|
|
|
28
28
|
* navigation that is a part of the UI Shell. It is responsible for handling the
|
|
29
29
|
* user interaction to expand or collapse the side navigation.
|
|
30
30
|
*/
|
|
31
|
-
declare function SideNavFooter({ assistiveText, className: customClassName, expanded, onToggle, }: SideNavFooterProps): JSX.Element;
|
|
31
|
+
declare function SideNavFooter({ assistiveText, className: customClassName, expanded, onToggle, }: SideNavFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
declare namespace SideNavFooter {
|
|
33
33
|
var displayName: string;
|
|
34
34
|
var propTypes: {
|
|
@@ -10,7 +10,7 @@ export interface SideNavLinkTextProps {
|
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
declare function SideNavLinkText({ className: customClassName, children, ...rest }: SideNavLinkTextProps): JSX.Element;
|
|
13
|
+
declare function SideNavLinkText({ className: customClassName, children, ...rest }: SideNavLinkTextProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
declare namespace SideNavLinkText {
|
|
15
15
|
var propTypes: {
|
|
16
16
|
/**
|
|
@@ -9,7 +9,7 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
export type SkipToContentProps = Omit<ComponentProps<'a'>, 'children'> & {
|
|
10
10
|
children?: string | undefined;
|
|
11
11
|
};
|
|
12
|
-
declare function SkipToContent({ children, className: customClassName, href, tabIndex, ...rest }: SkipToContentProps): JSX.Element;
|
|
12
|
+
declare function SkipToContent({ children, className: customClassName, href, tabIndex, ...rest }: SkipToContentProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare namespace SkipToContent {
|
|
14
14
|
var propTypes: {
|
|
15
15
|
/**
|
|
@@ -10,7 +10,7 @@ interface UnorderedListProps extends ComponentProps<'ul'> {
|
|
|
10
10
|
nested?: boolean | undefined;
|
|
11
11
|
isExpressive?: boolean | undefined;
|
|
12
12
|
}
|
|
13
|
-
declare function UnorderedList({ className, nested, isExpressive, ...other }: UnorderedListProps): JSX.Element;
|
|
13
|
+
declare function UnorderedList({ className, nested, isExpressive, ...other }: UnorderedListProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
declare namespace UnorderedList {
|
|
15
15
|
var propTypes: {
|
|
16
16
|
/**
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import PropTypes from 'prop-types';
|
|
9
8
|
interface AccordionSkeletonProps {
|
|
10
9
|
/**
|
|
@@ -30,7 +29,7 @@ interface AccordionSkeletonProps {
|
|
|
30
29
|
*/
|
|
31
30
|
open?: boolean;
|
|
32
31
|
}
|
|
33
|
-
declare function AccordionSkeleton({ align, className, count, isFlush, open, ...rest }: AccordionSkeletonProps): JSX.Element;
|
|
32
|
+
declare function AccordionSkeleton({ align, className, count, isFlush, open, ...rest }: AccordionSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
34
33
|
declare namespace AccordionSkeleton {
|
|
35
34
|
var propTypes: {
|
|
36
35
|
/**
|
|
@@ -33,7 +33,7 @@ interface AccordionProps {
|
|
|
33
33
|
*/
|
|
34
34
|
size?: 'sm' | 'md' | 'lg';
|
|
35
35
|
}
|
|
36
|
-
declare function Accordion({ align, children, className: customClassName, disabled, isFlush, size, ...rest }: PropsWithChildren<AccordionProps>): JSX.Element;
|
|
36
|
+
declare function Accordion({ align, children, className: customClassName, disabled, isFlush, size, ...rest }: PropsWithChildren<AccordionProps>): import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
declare namespace Accordion {
|
|
38
38
|
var propTypes: {
|
|
39
39
|
/**
|
|
@@ -59,7 +59,7 @@ interface AccordionToggleProps {
|
|
|
59
59
|
type?: 'button';
|
|
60
60
|
}
|
|
61
61
|
declare function AccordionItem({ children, className: customClassName, open, onHeadingClick, renderExpando, // remove renderExpando in next major release
|
|
62
|
-
renderToggle, title, disabled: controlledDisabled, handleAnimationEnd, ...rest }: PropsWithChildren<AccordionItemProps>): JSX.Element;
|
|
62
|
+
renderToggle, title, disabled: controlledDisabled, handleAnimationEnd, ...rest }: PropsWithChildren<AccordionItemProps>): import("react/jsx-runtime").JSX.Element;
|
|
63
63
|
declare namespace AccordionItem {
|
|
64
64
|
var propTypes: {
|
|
65
65
|
/**
|
|
@@ -47,6 +47,7 @@ function AccordionItem(_ref) {
|
|
|
47
47
|
...rest
|
|
48
48
|
} = _ref;
|
|
49
49
|
const [isOpen, setIsOpen] = React.useState(open);
|
|
50
|
+
const [prevIsOpen, setPrevIsOpen] = React.useState(open);
|
|
50
51
|
const accordionState = React.useContext(AccordionProvider.AccordionContext);
|
|
51
52
|
const disabledIsControlled = typeof controlledDisabled === 'boolean';
|
|
52
53
|
const disabled = disabledIsControlled ? controlledDisabled : accordionState.disabled;
|
|
@@ -61,6 +62,10 @@ function AccordionItem(_ref) {
|
|
|
61
62
|
const Toggle = renderToggle || renderExpando; // remove renderExpando in next major release
|
|
62
63
|
|
|
63
64
|
const content = React.useRef(null);
|
|
65
|
+
if (open !== prevIsOpen) {
|
|
66
|
+
setIsOpen(open);
|
|
67
|
+
setPrevIsOpen(open);
|
|
68
|
+
}
|
|
64
69
|
|
|
65
70
|
// When the AccordionItem heading is clicked, toggle the open state of the
|
|
66
71
|
// panel
|
|
@@ -16,5 +16,5 @@ type AccordionProviderProp = {
|
|
|
16
16
|
export declare const AccordionContext: React.Context<{
|
|
17
17
|
disabled: boolean;
|
|
18
18
|
}>;
|
|
19
|
-
export declare const AccordionProvider: ({ disabled, children, }: PropsWithChildren<AccordionProviderProp>) => JSX.Element;
|
|
19
|
+
export declare const AccordionProvider: ({ disabled, children, }: PropsWithChildren<AccordionProviderProp>) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -37,7 +37,7 @@ interface AspectRatioProps {
|
|
|
37
37
|
* images or videos.
|
|
38
38
|
*/
|
|
39
39
|
declare const AspectRatio: {
|
|
40
|
-
({ as: BaseComponent, className: containerClassName, children, ratio, ...rest }: PropsWithChildren<AspectRatioProps>): JSX.Element;
|
|
40
|
+
({ as: BaseComponent, className: containerClassName, children, ratio, ...rest }: PropsWithChildren<AspectRatioProps>): import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
propTypes: {
|
|
42
42
|
/**
|
|
43
43
|
* Provide a custom component or string to be rendered as the outermost node
|
|
@@ -12,7 +12,7 @@ export interface BreadcrumbSkeletonProps extends React.HTMLAttributes<HTMLDivEle
|
|
|
12
12
|
*/
|
|
13
13
|
className?: string;
|
|
14
14
|
}
|
|
15
|
-
declare function BreadcrumbSkeleton({ className, ...rest }: BreadcrumbSkeletonProps): JSX.Element;
|
|
15
|
+
declare function BreadcrumbSkeleton({ className, ...rest }: BreadcrumbSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
declare namespace BreadcrumbSkeleton {
|
|
17
17
|
var propTypes: {
|
|
18
18
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { HTMLAttributes } from 'react';
|
|
9
9
|
declare const CheckboxSkeleton: {
|
|
10
|
-
({ className, ...rest }: HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
10
|
+
({ className, ...rest }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
propTypes: {
|
|
12
12
|
/**
|
|
13
13
|
* Specify an optional className to add.
|
|
@@ -13,7 +13,7 @@ interface ClassPrefixProps {
|
|
|
13
13
|
*/
|
|
14
14
|
prefix: string;
|
|
15
15
|
}
|
|
16
|
-
declare function ClassPrefix({ children, prefix, }: PropsWithChildren<ClassPrefixProps>): JSX.Element;
|
|
16
|
+
declare function ClassPrefix({ children, prefix, }: PropsWithChildren<ClassPrefixProps>): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
declare namespace ClassPrefix {
|
|
18
18
|
var propTypes: {
|
|
19
19
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -99,6 +99,6 @@ export default class ContentSwitcher extends React.Component<ContentSwitcherProp
|
|
|
99
99
|
} | null;
|
|
100
100
|
handleItemRef: (index: any) => (ref: any) => void;
|
|
101
101
|
handleChildChange: (data: any) => void;
|
|
102
|
-
render(): JSX.Element;
|
|
102
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
103
103
|
}
|
|
104
104
|
export {};
|
|
@@ -35,7 +35,7 @@ interface TableProps {
|
|
|
35
35
|
useZebraStyles?: boolean;
|
|
36
36
|
}
|
|
37
37
|
export declare const Table: {
|
|
38
|
-
({ className, children, useZebraStyles, size, isSortable, useStaticWidth, stickyHeader, overflowMenuOnHover, experimentalAutoAlign, ...other }: PropsWithChildren<TableProps>): JSX.Element;
|
|
38
|
+
({ className, children, useZebraStyles, size, isSortable, useStaticWidth, stickyHeader, overflowMenuOnHover, experimentalAutoAlign, ...other }: PropsWithChildren<TableProps>): import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
propTypes: {
|
|
40
40
|
/**
|
|
41
41
|
* Pass in the children that will be rendered within the Table
|
|
@@ -26,7 +26,7 @@ declare const TableBatchAction: {
|
|
|
26
26
|
[x: string]: any;
|
|
27
27
|
renderIcon?: import("@carbon/icons-react/lib/CarbonIcon").CarbonIconType | undefined;
|
|
28
28
|
iconDescription?: string | undefined;
|
|
29
|
-
}): JSX.Element;
|
|
29
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
propTypes: {
|
|
31
31
|
/**
|
|
32
32
|
* Specify if the button is an icon-only button
|
|
@@ -13,7 +13,7 @@ export interface TableBodyProps extends ReactAttr<HTMLTableSectionElement> {
|
|
|
13
13
|
'aria-live'?: 'polite' | 'assertive' | 'off';
|
|
14
14
|
}
|
|
15
15
|
declare const TableBody: {
|
|
16
|
-
({ children, className, ...rest }: TableBodyProps): JSX.Element;
|
|
16
|
+
({ children, className, ...rest }: TableBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
propTypes: {
|
|
18
18
|
/**
|
|
19
19
|
* `polite` Adjust the notification behavior of screen readers
|
|
@@ -26,7 +26,7 @@ export interface TableContainerProps extends Omit<ReactAttr<HTMLDivElement>, 'ti
|
|
|
26
26
|
title?: React.ReactNode;
|
|
27
27
|
}
|
|
28
28
|
declare const TableContainer: {
|
|
29
|
-
({ className, children, title, description, stickyHeader, useStaticWidth, ...rest }: TableContainerProps): JSX.Element;
|
|
29
|
+
({ className, children, title, description, stickyHeader, useStaticWidth, ...rest }: TableContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
propTypes: {
|
|
31
31
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
32
32
|
className: PropTypes.Requireable<string>;
|
|
@@ -59,7 +59,7 @@ type TableExpandHeaderPropsWithExpando = Omit<TableExpandHeaderPropsBase, 'ariaL
|
|
|
59
59
|
};
|
|
60
60
|
export type TableExpandHeaderProps = TableExpandHeaderPropsWithToggle | TableExpandHeaderPropsWithExpando | TableExpandHeaderPropsBase;
|
|
61
61
|
declare const TableExpandHeader: {
|
|
62
|
-
({ ["aria-controls"]: ariaControls, ["aria-label"]: ariaLabel, ariaLabel: deprecatedAriaLabel, className: headerClassName, enableExpando, enableToggle, id, isExpanded, onExpand, expandIconDescription, children, ...rest }: TableExpandHeaderProps): JSX.Element;
|
|
62
|
+
({ ["aria-controls"]: ariaControls, ["aria-label"]: ariaLabel, ariaLabel: deprecatedAriaLabel, className: headerClassName, enableExpando, enableToggle, id, isExpanded, onExpand, expandIconDescription, children, ...rest }: TableExpandHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
63
63
|
propTypes: {
|
|
64
64
|
/**
|
|
65
65
|
* Space separated list of one or more ID values referencing the TableExpandedRow(s) being controlled by the TableExpandHeader
|
|
@@ -13,7 +13,7 @@ interface TableExpandedRowProps extends ReactAttr<HTMLTableRowElement> {
|
|
|
13
13
|
colSpan: number;
|
|
14
14
|
}
|
|
15
15
|
declare const TableExpandedRow: {
|
|
16
|
-
({ className: customClassName, children, colSpan, ...rest }: TableExpandedRowProps): JSX.Element;
|
|
16
|
+
({ className: customClassName, children, colSpan, ...rest }: TableExpandedRowProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
propTypes: {
|
|
18
18
|
/**
|
|
19
19
|
* Pass in the contents for your TableExpandedRow
|
|
@@ -17,7 +17,7 @@ export interface TableRowProps extends ReactAttr<HTMLTableRowElement> {
|
|
|
17
17
|
isSelected?: boolean;
|
|
18
18
|
}
|
|
19
19
|
declare const TableRow: {
|
|
20
|
-
(props: TableRowProps): JSX.Element;
|
|
20
|
+
(props: TableRowProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
propTypes: {
|
|
22
22
|
/**
|
|
23
23
|
* Specify an optional className to be applied to the container node
|
|
@@ -41,7 +41,7 @@ interface TableSelectAllProps {
|
|
|
41
41
|
onSelect: React.MouseEventHandler<HTMLInputElement>;
|
|
42
42
|
}
|
|
43
43
|
declare const TableSelectAll: {
|
|
44
|
-
({ ariaLabel, checked, id, indeterminate, name, onSelect, disabled, className, }: TableSelectAllProps): JSX.Element;
|
|
44
|
+
({ ariaLabel, checked, id, indeterminate, name, onSelect, disabled, className, }: TableSelectAllProps): import("react/jsx-runtime").JSX.Element;
|
|
45
45
|
propTypes: {
|
|
46
46
|
/**
|
|
47
47
|
* Specify the aria label for the underlying input control
|
|
@@ -45,7 +45,7 @@ export interface TableSelectRowProps {
|
|
|
45
45
|
radio?: boolean;
|
|
46
46
|
}
|
|
47
47
|
declare const TableSelectRow: {
|
|
48
|
-
({ ariaLabel, checked, id, name, onSelect, onChange, disabled, radio, className, }: TableSelectRowProps): JSX.Element;
|
|
48
|
+
({ ariaLabel, checked, id, name, onSelect, onChange, disabled, radio, className, }: TableSelectRowProps): import("react/jsx-runtime").JSX.Element;
|
|
49
49
|
propTypes: {
|
|
50
50
|
/**
|
|
51
51
|
* Specify the aria label for the underlying input control
|
|
@@ -16,7 +16,7 @@ export interface TableSlugRowProps {
|
|
|
16
16
|
slug?: ReactNodeLike;
|
|
17
17
|
}
|
|
18
18
|
declare const TableSlugRow: {
|
|
19
|
-
({ className, slug }: TableSlugRowProps): JSX.Element;
|
|
19
|
+
({ className, slug }: TableSlugRowProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
propTypes: {
|
|
21
21
|
/**
|
|
22
22
|
* The CSS class names of the cell that wraps the underlying input control
|
|
@@ -18,7 +18,7 @@ export interface TableToolbarMenuProps extends React.HTMLAttributes<HTMLDivEleme
|
|
|
18
18
|
/**
|
|
19
19
|
* Optional prop to allow overriding the default menu icon
|
|
20
20
|
*/
|
|
21
|
-
renderIcon?:
|
|
21
|
+
renderIcon?: any;
|
|
22
22
|
}
|
|
23
23
|
declare const TableToolbarMenu: React.FC<TableToolbarMenuProps>;
|
|
24
24
|
export default TableToolbarMenu;
|
|
@@ -86,7 +86,7 @@ export interface TableToolbarSearchProps {
|
|
|
86
86
|
translateWithId?: (id: string) => string;
|
|
87
87
|
}
|
|
88
88
|
declare const TableToolbarSearch: {
|
|
89
|
-
({ className, searchContainerClass, onChange: onChangeProp, onClear, translateWithId: t, placeholder, labelText, expanded: expandedProp, defaultExpanded, defaultValue, disabled, onExpand, persistent, id, onBlur, onFocus, size, tabIndex, ...rest }: TableToolbarSearchProps): JSX.Element;
|
|
89
|
+
({ className, searchContainerClass, onChange: onChangeProp, onClear, translateWithId: t, placeholder, labelText, expanded: expandedProp, defaultExpanded, defaultValue, disabled, onExpand, persistent, id, onBlur, onFocus, size, tabIndex, ...rest }: TableToolbarSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
90
90
|
propTypes: {
|
|
91
91
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
92
92
|
/**
|
|
@@ -14,7 +14,7 @@ export interface DatePickerSkeletonProps extends HTMLAttributes<HTMLDivElement>
|
|
|
14
14
|
hideLabel?: boolean;
|
|
15
15
|
}
|
|
16
16
|
declare const DatePickerSkeleton: {
|
|
17
|
-
({ range, id, hideLabel, className, ...rest }: DatePickerSkeletonProps): JSX.Element;
|
|
17
|
+
({ range, id, hideLabel, className, ...rest }: DatePickerSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
propTypes: {
|
|
19
19
|
/**
|
|
20
20
|
* Specify an optional className to add.
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
import { ReactNodeLike } from 'prop-types';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import flatpickr from 'flatpickr';
|
|
10
|
-
import { ReactAttr } from '../../types/common';
|
|
11
|
-
type ExcludedAttributes = 'value' | 'onChange' | 'locale';
|
|
12
10
|
export type DatePickerTypes = 'simple' | 'single' | 'range';
|
|
13
11
|
export type CalRef = {
|
|
14
12
|
inline: boolean;
|
|
@@ -22,7 +20,7 @@ export type CalRef = {
|
|
|
22
20
|
plugins: [];
|
|
23
21
|
clickOpens: any;
|
|
24
22
|
};
|
|
25
|
-
interface DatePickerProps
|
|
23
|
+
interface DatePickerProps {
|
|
26
24
|
/**
|
|
27
25
|
* Flatpickr prop passthrough enables direct date input, and when set to false,
|
|
28
26
|
* we must clear dates manually by resetting the value prop to empty string making it a controlled input.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { type SearchProps } from '../Search';
|
|
9
|
-
declare function ExpandableSearch({ onBlur, onChange, onExpand, onKeyDown, defaultValue, isExpanded, ...props }: SearchProps): JSX.Element;
|
|
9
|
+
declare function ExpandableSearch({ onBlur, onChange, onExpand, onKeyDown, defaultValue, isExpanded, ...props }: SearchProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare namespace ExpandableSearch {
|
|
11
11
|
var propTypes: React.WeakValidationMap<SearchProps & React.RefAttributes<HTMLInputElement>> | undefined;
|
|
12
12
|
var displayName: string;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import PropTypes from 'prop-types';
|
|
9
8
|
import { ReactAttr } from '../../types/common';
|
|
10
9
|
export interface FileUploaderSkeletonProps extends ReactAttr<HTMLDivElement> {
|
|
@@ -13,7 +12,7 @@ export interface FileUploaderSkeletonProps extends ReactAttr<HTMLDivElement> {
|
|
|
13
12
|
*/
|
|
14
13
|
className?: string;
|
|
15
14
|
}
|
|
16
|
-
declare function FileUploaderSkeleton({ className, ...rest }: FileUploaderSkeletonProps): JSX.Element;
|
|
15
|
+
declare function FileUploaderSkeleton({ className, ...rest }: FileUploaderSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
declare namespace FileUploaderSkeleton {
|
|
18
17
|
var propTypes: {
|
|
19
18
|
/**
|
|
@@ -71,7 +71,7 @@ export interface FileUploaderButtonProps extends Omit<ReactAttr<HTMLButtonElemen
|
|
|
71
71
|
tabIndex?: number | string;
|
|
72
72
|
innerRef?: React.RefObject<HTMLLabelElement>;
|
|
73
73
|
}
|
|
74
|
-
declare function FileUploaderButton({ accept, buttonKind, className, disabled, disableLabelChanges, id, labelText: ownerLabelText, multiple, onChange, name, size, innerRef, ...other }: FileUploaderButtonProps): JSX.Element;
|
|
74
|
+
declare function FileUploaderButton({ accept, buttonKind, className, disabled, disableLabelChanges, id, labelText: ownerLabelText, multiple, onChange, name, size, innerRef, ...other }: FileUploaderButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
75
75
|
declare namespace FileUploaderButton {
|
|
76
76
|
var propTypes: {
|
|
77
77
|
/**
|
|
@@ -65,7 +65,7 @@ export interface FileUploaderDropContainerProps extends Omit<ReactAttr<HTMLButto
|
|
|
65
65
|
*/
|
|
66
66
|
tabIndex?: number | string;
|
|
67
67
|
}
|
|
68
|
-
declare function FileUploaderDropContainer({ accept, className, id, disabled, labelText, multiple, name, onAddFiles, onClick, pattern, innerRef, ...rest }: FileUploaderDropContainerProps): JSX.Element;
|
|
68
|
+
declare function FileUploaderDropContainer({ accept, className, id, disabled, labelText, multiple, name, onAddFiles, onClick, pattern, innerRef, ...rest }: FileUploaderDropContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
69
69
|
declare namespace FileUploaderDropContainer {
|
|
70
70
|
var propTypes: {
|
|
71
71
|
/**
|