@ssa-ui-kit/core 3.19.1 → 3.20.1
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/dist/components/AccordionGroup/Accordion.d.ts +3 -3
- package/dist/components/AccordionGroup/AccordionContent.d.ts +3 -3
- package/dist/components/AccordionGroup/AccordionGroup.d.ts +1 -1
- package/dist/components/AccordionGroup/AccordionTitle.d.ts +3 -3
- package/dist/components/AccordionGroup/types.d.ts +55 -5
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/Breadcrumbs/types.d.ts +11 -1
- package/dist/components/Button/Button.d.ts +6 -0
- package/dist/components/Button/fixtures.d.ts +11 -6
- package/dist/components/Button/styles.d.ts +10 -0
- package/dist/components/Button/types.d.ts +14 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +28 -1
- package/dist/components/ButtonGroup/ButtonGroupButton.d.ts +22 -0
- package/dist/components/ButtonGroup/ButtonGroupButtonBase.d.ts +23 -0
- package/dist/components/ButtonGroup/ButtonGroupContext.d.ts +9 -0
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/types.d.ts +92 -4
- package/dist/components/CardContent/CardContent.d.ts +9 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/types.d.ts +29 -5
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker/types.d.ts +19 -5
- package/dist/components/Counter/Counter.d.ts +1 -1
- package/dist/components/Counter/types.d.ts +0 -5
- package/dist/components/Drawer/useDrawer.d.ts +27 -3
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/types.d.ts +4 -0
- package/dist/components/DropdownOption/DropdownOption.d.ts +17 -6
- package/dist/components/DropdownOptions/DropdownOptions.d.ts +1 -1
- package/dist/components/DropdownOptions/types.d.ts +8 -0
- package/dist/components/DropdownToggle/DropdownToggle.d.ts +2 -2
- package/dist/components/DropdownToggle/types.d.ts +24 -2
- package/dist/components/FileAttachment/FileAttachment.d.ts +1 -1
- package/dist/components/FileAttachment/types.d.ts +5 -0
- package/dist/components/FiltersMultiSelect/index.d.ts +1 -1
- package/dist/components/FiltersMultiSelect/useFiltersMultiSelect.d.ts +35 -3
- package/dist/components/IconButton/IconButton.d.ts +8 -1
- package/dist/components/IconButton/styles.d.ts +5 -1
- package/dist/components/IconButton/types.d.ts +20 -2
- package/dist/components/JsonSchemaForm/utils/selectWidget.d.ts +7 -1
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/types.d.ts +5 -0
- package/dist/components/LargeTab/LargeTab.d.ts +1 -1
- package/dist/components/Link/Link.d.ts +24 -1
- package/dist/components/Link/Link.types.d.ts +14 -1
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +13 -5
- package/dist/components/Modal/types.d.ts +32 -4
- package/dist/components/ModalDialog/ModalDialog.d.ts +2 -2
- package/dist/components/ModalDialog/types.d.ts +10 -3
- package/dist/components/MultipleDropdown/types.d.ts +7 -0
- package/dist/components/MultipleDropdownOptions/MultipleDropdownOptions.d.ts +1 -1
- package/dist/components/MultipleDropdownOptions/types.d.ts +12 -0
- package/dist/components/Pagination/ArrowButton.d.ts +2 -2
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Pagination/PaginationButtons.d.ts +2 -2
- package/dist/components/Pagination/types.d.ts +36 -0
- package/dist/components/Popover/types.d.ts +7 -0
- package/dist/components/ProgressBar/types.d.ts +18 -0
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +1 -1
- package/dist/components/ProgressCircle/types.d.ts +10 -0
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/types.d.ts +13 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup/types.d.ts +18 -1
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/types.d.ts +7 -0
- package/dist/components/Tab/Tab.d.ts +1 -1
- package/dist/components/TabBar/types.d.ts +8 -0
- package/dist/components/TableBody/TableBody.d.ts +1 -1
- package/dist/components/TableFilters/TableFiltersAccordionContent.d.ts +1 -1
- package/dist/components/TableFilters/types.d.ts +14 -0
- package/dist/components/TableRow/types.d.ts +8 -1
- package/dist/components/Tooltip/types.d.ts +21 -1
- package/dist/components/Typeahead/Typeahead.d.ts +2 -2
- package/dist/components/Typeahead/types.d.ts +26 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4274 -1628
- package/dist/index.mjs +61628 -0
- package/dist/test-utils/axe.d.ts +23 -0
- package/dist/tsbuildcache +1 -0
- package/dist/utils/deprecation.d.ts +135 -0
- package/dist/utils/detectDuplicateInstance.d.ts +27 -0
- package/dist/utils/environment.d.ts +27 -0
- package/package.json +10 -9
|
@@ -36,6 +36,13 @@ export type DropdownProps<P extends DropdownOptionProps> = {
|
|
|
36
36
|
* Disables the dropdown, preventing any user interaction
|
|
37
37
|
* @default false
|
|
38
38
|
*/
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Disables the dropdown, preventing any user interaction
|
|
42
|
+
*
|
|
43
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
39
46
|
isDisabled?: boolean;
|
|
40
47
|
/**
|
|
41
48
|
* Placeholder shown in the toggle button when no item is selected
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DropdownItemsListProps } from './types';
|
|
2
|
-
declare const MultipleDropdownOptions: ({ ariaLabelledby, id, children, }: DropdownItemsListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MultipleDropdownOptions: ({ "aria-labelledby": ariaLabelledbyNative, ariaLabelledby, id, children, }: DropdownItemsListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MultipleDropdownOptions;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
export type DropdownOptionType = Record<string, string | number>;
|
|
2
2
|
export interface DropdownItemsListProps {
|
|
3
|
+
/**
|
|
4
|
+
* ARIA label reference
|
|
5
|
+
* Associates the listbox with its label
|
|
6
|
+
*/
|
|
7
|
+
'aria-labelledby'?: string;
|
|
8
|
+
/**
|
|
9
|
+
* ARIA label reference
|
|
10
|
+
* Associates the listbox with its label
|
|
11
|
+
*
|
|
12
|
+
* @deprecated Use `aria-labelledby` instead — `ariaLabelledby` is removed in
|
|
13
|
+
* the next major release.
|
|
14
|
+
*/
|
|
3
15
|
ariaLabelledby?: string;
|
|
4
16
|
id?: string;
|
|
5
17
|
children?: React.ReactNode;
|
|
@@ -15,7 +15,7 @@ import { ArrowButtonProps } from './types';
|
|
|
15
15
|
* <ArrowButton
|
|
16
16
|
* direction="left"
|
|
17
17
|
* onClick={() => goToPreviousPage()}
|
|
18
|
-
*
|
|
18
|
+
* disabled={isFirstPage}
|
|
19
19
|
* />
|
|
20
20
|
* ```
|
|
21
21
|
*
|
|
@@ -31,4 +31,4 @@ import { ArrowButtonProps } from './types';
|
|
|
31
31
|
* - Keyboard navigation support via Button component
|
|
32
32
|
* - Screen reader friendly
|
|
33
33
|
*/
|
|
34
|
-
export declare const ArrowButton: ({ direction, onClick, isDisabled, className, }: ArrowButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const ArrowButton: ({ direction, onClick, disabled, isDisabled, className, }: ArrowButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -64,7 +64,7 @@ import { PaginationProps } from './types';
|
|
|
64
64
|
* ```tsx
|
|
65
65
|
* // Disabled pagination
|
|
66
66
|
* <PaginationContextProvider selectedPage={5}>
|
|
67
|
-
* <Pagination pagesCount={10}
|
|
67
|
+
* <Pagination pagesCount={10} disabled />
|
|
68
68
|
* </PaginationContextProvider>
|
|
69
69
|
* ```
|
|
70
70
|
*
|
|
@@ -80,5 +80,5 @@ import { PaginationProps } from './types';
|
|
|
80
80
|
* - Screen reader friendly
|
|
81
81
|
* - Proper focus management
|
|
82
82
|
*/
|
|
83
|
-
declare const Pagination: ({ pagesCount, className, as, ariaLabel, isDisabled, pageNumberPlaceholder, errorTooltip, isPageSettingVisible, isPageFromCountVisible, isRowPerPageVisible, rowPerPageProps, manualPageNumberProps, renderPageCount, }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
83
|
+
declare const Pagination: ({ pagesCount, className, as, "aria-label": ariaLabelNative, ariaLabel, disabled, isDisabled, pageNumberPlaceholder, errorTooltip, isPageSettingVisible, isPageFromCountVisible, isRowPerPageVisible, rowPerPageProps, manualPageNumberProps, renderPageCount, }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
84
84
|
export default Pagination;
|
|
@@ -16,7 +16,7 @@ import { PaginationButtonsProps } from './types';
|
|
|
16
16
|
* range={[1, 2, 3, -1, 10]} // -1 represents ellipsis break
|
|
17
17
|
* selectedPage={2}
|
|
18
18
|
* onClick={(page) => setPage(page)}
|
|
19
|
-
*
|
|
19
|
+
* disabled={false}
|
|
20
20
|
* />
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
@@ -34,4 +34,4 @@ import { PaginationButtonsProps } from './types';
|
|
|
34
34
|
* - Screen reader friendly
|
|
35
35
|
* - Proper focus management
|
|
36
36
|
*/
|
|
37
|
-
export declare const PaginationButtons: ({ range, selectedPage, onClick, isDisabled, }: PaginationButtonsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const PaginationButtons: ({ range, selectedPage, onClick, disabled, isDisabled, }: PaginationButtonsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -55,12 +55,27 @@ export interface PaginationProps extends CommonProps {
|
|
|
55
55
|
* ARIA label for the pagination navigation
|
|
56
56
|
* @default 'Pagination'
|
|
57
57
|
*/
|
|
58
|
+
'aria-label'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* ARIA label for the pagination navigation
|
|
61
|
+
*
|
|
62
|
+
* @deprecated Use `aria-label` instead — `ariaLabel` is removed in the next
|
|
63
|
+
* major release.
|
|
64
|
+
* @default 'Pagination'
|
|
65
|
+
*/
|
|
58
66
|
ariaLabel?: string;
|
|
59
67
|
/**
|
|
60
68
|
* Whether the pagination is disabled
|
|
61
69
|
* Disabled pagination prevents all navigation actions
|
|
62
70
|
* @default false
|
|
63
71
|
*/
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the pagination is disabled
|
|
75
|
+
*
|
|
76
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
64
79
|
isDisabled?: boolean;
|
|
65
80
|
/**
|
|
66
81
|
* Placeholder text for manual page input
|
|
@@ -134,6 +149,13 @@ export interface PaginationButtonsProps {
|
|
|
134
149
|
* Whether the buttons are disabled
|
|
135
150
|
* @default false
|
|
136
151
|
*/
|
|
152
|
+
disabled?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Whether the buttons are disabled
|
|
155
|
+
*
|
|
156
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
157
|
+
* @default false
|
|
158
|
+
*/
|
|
137
159
|
isDisabled?: boolean;
|
|
138
160
|
}
|
|
139
161
|
/**
|
|
@@ -153,6 +175,13 @@ export interface ArrowButtonProps {
|
|
|
153
175
|
* Whether the button is disabled
|
|
154
176
|
* @default false
|
|
155
177
|
*/
|
|
178
|
+
disabled?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Whether the button is disabled
|
|
181
|
+
*
|
|
182
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
183
|
+
* @default false
|
|
184
|
+
*/
|
|
156
185
|
isDisabled?: boolean;
|
|
157
186
|
/**
|
|
158
187
|
* Custom CSS class name
|
|
@@ -180,6 +209,13 @@ export interface PageButtonProps {
|
|
|
180
209
|
* Whether the button is disabled
|
|
181
210
|
* @default false
|
|
182
211
|
*/
|
|
212
|
+
disabled?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Whether the button is disabled
|
|
215
|
+
*
|
|
216
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
217
|
+
* @default false
|
|
218
|
+
*/
|
|
183
219
|
isDisabled?: boolean;
|
|
184
220
|
}
|
|
185
221
|
/**
|
|
@@ -39,6 +39,13 @@ export interface PopoverOptions {
|
|
|
39
39
|
* Initial open state for uncontrolled popover
|
|
40
40
|
* @default false
|
|
41
41
|
*/
|
|
42
|
+
defaultOpen?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Initial open state for uncontrolled popover
|
|
45
|
+
*
|
|
46
|
+
* @deprecated Use `defaultOpen` instead — `initialOpen` is removed in the
|
|
47
|
+
* next major release.
|
|
48
|
+
*/
|
|
42
49
|
initialOpen?: boolean;
|
|
43
50
|
/**
|
|
44
51
|
* Preferred placement of the popover relative to trigger
|
|
@@ -4,4 +4,22 @@ export interface ProgressBarProps {
|
|
|
4
4
|
vertical?: boolean;
|
|
5
5
|
bgColor?: string;
|
|
6
6
|
size?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Accessible name for the progress bar.
|
|
9
|
+
*
|
|
10
|
+
* A `role="progressbar"` node must have an accessible name, otherwise screen
|
|
11
|
+
* readers announce only "progress bar" with no indication of what is
|
|
12
|
+
* progressing. Provide either this or `aria-labelledby`.
|
|
13
|
+
*/
|
|
14
|
+
'aria-label'?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Id of the element that labels this progress bar — use instead of
|
|
17
|
+
* `aria-label` when a visible label already exists.
|
|
18
|
+
*/
|
|
19
|
+
'aria-labelledby'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Human-readable form of the current value, for when a bare percentage would
|
|
22
|
+
* be unhelpful (e.g. "3 of 8 steps"). Maps to `aria-valuetext`.
|
|
23
|
+
*/
|
|
24
|
+
valueText?: string;
|
|
7
25
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ProgressCircleProps } from './types';
|
|
2
|
-
declare const ProgressCircle: ({ max, currentValue, color, size, infoContent, mode, classnames, }: ProgressCircleProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ProgressCircle: ({ max, currentValue, color, size, infoContent, mode, classnames, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: ProgressCircleProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ProgressCircle;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
export interface ProgressCircleProps {
|
|
2
2
|
max: number;
|
|
3
3
|
currentValue: number;
|
|
4
|
+
/**
|
|
5
|
+
* Accessible name for the progress circle.
|
|
6
|
+
*
|
|
7
|
+
* A `role="progressbar"` node must have an accessible name, otherwise screen
|
|
8
|
+
* readers announce only "progress bar". Provide this or `aria-labelledby`.
|
|
9
|
+
* `infoContent` is not used as the name — it is often purely decorative.
|
|
10
|
+
*/
|
|
11
|
+
'aria-label'?: string;
|
|
12
|
+
/** Id of an existing visible label, as an alternative to `aria-label`. */
|
|
13
|
+
'aria-labelledby'?: string;
|
|
4
14
|
size?: number;
|
|
5
15
|
color?: keyof MainColors;
|
|
6
16
|
infoContent?: React.ReactNode | string;
|
|
@@ -66,5 +66,5 @@ import { RadioProps } from './types';
|
|
|
66
66
|
* - Screen reader friendly
|
|
67
67
|
* - Focus management with visible focus indicators
|
|
68
68
|
*/
|
|
69
|
-
declare const Radio: ({ id, name, value, isChecked, isDisabled, isRequired, text, color, colors, className, onChange, }: RadioProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
69
|
+
declare const Radio: ({ id, name, value, checked, isChecked, disabled, isDisabled, isRequired, text, color, colors, className, onChange, }: RadioProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
70
70
|
export default Radio;
|
|
@@ -75,12 +75,25 @@ export interface RadioProps {
|
|
|
75
75
|
* Whether the radio button is checked
|
|
76
76
|
* Use for controlled component pattern
|
|
77
77
|
*/
|
|
78
|
+
checked?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the radio button is checked
|
|
81
|
+
*
|
|
82
|
+
* @deprecated Use `checked` instead. Removed in the next major release.
|
|
83
|
+
*/
|
|
78
84
|
isChecked?: boolean;
|
|
79
85
|
/**
|
|
80
86
|
* Whether the radio button is disabled
|
|
81
87
|
* Disabled radios cannot be selected
|
|
82
88
|
* @default false
|
|
83
89
|
*/
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the radio button is disabled
|
|
93
|
+
*
|
|
94
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
84
97
|
isDisabled?: boolean;
|
|
85
98
|
/**
|
|
86
99
|
* Whether the radio button is required for form validation
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RadioGroupProps } from './types';
|
|
2
|
-
declare const RadioGroup: (
|
|
2
|
+
declare const RadioGroup: (props: RadioGroupProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default RadioGroup;
|
|
@@ -14,7 +14,7 @@ import { RadioProps } from '../Radio/types';
|
|
|
14
14
|
* <RadioGroup name="fruit" onChange={(value) => console.log(value)}>
|
|
15
15
|
* <Radio id="r1" value="apple" text="Apple" />
|
|
16
16
|
* <Radio id="r2" value="orange" text="Orange" />
|
|
17
|
-
* <Radio id="r3" value="banana" text="Banana"
|
|
17
|
+
* <Radio id="r3" value="banana" text="Banana" disabled />
|
|
18
18
|
* </RadioGroup>
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
@@ -35,6 +35,23 @@ import { RadioProps } from '../Radio/types';
|
|
|
35
35
|
export interface RadioGroupProps {
|
|
36
36
|
name: string;
|
|
37
37
|
isRequired?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Selected value, for the controlled pattern. When provided, the parent owns
|
|
40
|
+
* the selection and the group only reports intent through `onChange`.
|
|
41
|
+
*/
|
|
42
|
+
value?: string | number;
|
|
43
|
+
/**
|
|
44
|
+
* Initially selected value. Only used when neither `value` nor the
|
|
45
|
+
* deprecated `externalState` is provided — both of those track the parent
|
|
46
|
+
* for the group's whole lifetime and so outrank an initial value.
|
|
47
|
+
*/
|
|
48
|
+
defaultValue?: string | number;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Use `value` instead. Removed in the next major release.
|
|
51
|
+
* Note the semantics differ slightly: `externalState` is synced *into*
|
|
52
|
+
* internal state, so the group still moves on click even when the parent
|
|
53
|
+
* ignores `onChange`. `value` is fully controlled.
|
|
54
|
+
*/
|
|
38
55
|
externalState?: string | number;
|
|
39
56
|
className?: string;
|
|
40
57
|
onChange: (value: string | number) => void;
|
|
@@ -39,7 +39,7 @@ import { SwitchProps } from './types';
|
|
|
39
39
|
* ```tsx
|
|
40
40
|
* // Disabled (muted grey, cannot toggle)
|
|
41
41
|
* <SwitchContextProvider initialState={true}>
|
|
42
|
-
* <Switch label="Locked feature"
|
|
42
|
+
* <Switch label="Locked feature" disabled />
|
|
43
43
|
* </SwitchContextProvider>
|
|
44
44
|
* ```
|
|
45
45
|
*
|
|
@@ -66,5 +66,5 @@ import { SwitchProps } from './types';
|
|
|
66
66
|
*
|
|
67
67
|
* @requires SwitchContextProvider - Must be wrapped in SwitchContextProvider
|
|
68
68
|
*/
|
|
69
|
-
declare const Switch: ({ label, isDisabled, color, colors, }: SwitchProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
69
|
+
declare const Switch: ({ label, disabled, isDisabled, color, colors, }: SwitchProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
70
70
|
export default Switch;
|
|
@@ -60,6 +60,13 @@ export interface SwitchProps {
|
|
|
60
60
|
* Disabled switches cannot be toggled; background becomes `greySelectedMenuItem`
|
|
61
61
|
* @default false
|
|
62
62
|
*/
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Whether the switch is disabled
|
|
66
|
+
*
|
|
67
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
63
70
|
isDisabled?: boolean;
|
|
64
71
|
/**
|
|
65
72
|
* Palette-based color variant.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SmallTabProps } from '../TabBar/types';
|
|
2
|
-
declare const Tab: ({ onClick, isActive, text, ariaControls, tabId, className, }: SmallTabProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Tab: ({ onClick, isActive, text, "aria-controls": ariaControlsNative, ariaControls, tabId, className, }: SmallTabProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Tab;
|
|
@@ -8,6 +8,14 @@ export interface TabProps extends CommonProps {
|
|
|
8
8
|
}, arg?: unknown) => React.ReactNode;
|
|
9
9
|
isActive?: boolean;
|
|
10
10
|
onClick?: (event?: React.MouseEvent<HTMLDivElement>) => void;
|
|
11
|
+
/** Id of the panel this tab controls. */
|
|
12
|
+
'aria-controls'?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Id of the panel this tab controls.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated Use `aria-controls` instead — `ariaControls` is removed in the
|
|
17
|
+
* next major release.
|
|
18
|
+
*/
|
|
11
19
|
ariaControls?: string;
|
|
12
20
|
[prop: string | number | symbol]: unknown;
|
|
13
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RenderContentProps } from '../AccordionGroup';
|
|
2
|
-
export declare const TableFiltersAccordionContent: ({
|
|
2
|
+
export declare const TableFiltersAccordionContent: ({ open, children, ...rest }: RenderContentProps & {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -25,6 +25,13 @@ export interface SingleItem {
|
|
|
25
25
|
* Whether the item is disabled
|
|
26
26
|
* @default false
|
|
27
27
|
*/
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the item is disabled
|
|
31
|
+
*
|
|
32
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
28
35
|
isDisabled?: boolean;
|
|
29
36
|
/**
|
|
30
37
|
* Item content configuration
|
|
@@ -65,6 +72,13 @@ export interface AccordionInfo {
|
|
|
65
72
|
* Whether the entire group is disabled
|
|
66
73
|
* @default false
|
|
67
74
|
*/
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the entire group is disabled
|
|
78
|
+
*
|
|
79
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
68
82
|
isDisabled?: boolean;
|
|
69
83
|
/**
|
|
70
84
|
* Filter items within this group
|
|
@@ -18,7 +18,7 @@ import { CommonProps } from '../../types/emotion';
|
|
|
18
18
|
* @example
|
|
19
19
|
* ```tsx
|
|
20
20
|
* // Disabled table row (aria-disabled is automatically set)
|
|
21
|
-
* <TableRow
|
|
21
|
+
* <TableRow disabled>
|
|
22
22
|
* <TableCell>Disabled Row</TableCell>
|
|
23
23
|
* </TableRow>
|
|
24
24
|
* ```
|
|
@@ -30,5 +30,12 @@ export interface TableRowProps extends CommonProps, HTMLAttributes<HTMLTableRowE
|
|
|
30
30
|
* Automatically sets aria-disabled attribute when true.
|
|
31
31
|
* @default false
|
|
32
32
|
*/
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the row is disabled
|
|
36
|
+
*
|
|
37
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
33
40
|
isDisabled?: boolean;
|
|
34
41
|
}
|
|
@@ -94,7 +94,27 @@ export interface TooltipProps extends CommonProps {
|
|
|
94
94
|
arrowProps?: TooltipArrowProps;
|
|
95
95
|
/**
|
|
96
96
|
* Controlled open state
|
|
97
|
-
* When provided,
|
|
97
|
+
* When provided, the tooltip is fully controlled and the parent must update
|
|
98
|
+
* this value from `onOpenChange`
|
|
99
|
+
*/
|
|
100
|
+
open?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Initial open state for an uncontrolled tooltip
|
|
103
|
+
* @default false
|
|
104
|
+
*/
|
|
105
|
+
defaultOpen?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Called whenever the tooltip wants to open or close — hover, click, dismiss
|
|
108
|
+
* or Escape
|
|
109
|
+
*/
|
|
110
|
+
onOpenChange?: (open: boolean) => void;
|
|
111
|
+
/**
|
|
112
|
+
* Initial open state.
|
|
113
|
+
*
|
|
114
|
+
* @deprecated Use `defaultOpen` instead. Despite the name, `isOpen` never
|
|
115
|
+
* controlled the tooltip — it only seeded the initial state, so a changing
|
|
116
|
+
* value had no effect. Pass `open` together with `onOpenChange` for real
|
|
117
|
+
* controlled behaviour. Removed in the next major release.
|
|
98
118
|
*/
|
|
99
119
|
isOpen?: boolean;
|
|
100
120
|
}
|
|
@@ -44,7 +44,7 @@ import { TypeaheadProps } from './types';
|
|
|
44
44
|
* name="tags"
|
|
45
45
|
* isMultiple
|
|
46
46
|
* label="Tags"
|
|
47
|
-
*
|
|
47
|
+
* value={selected}
|
|
48
48
|
* onChange={(item, isSelected) => handleToggle(item, isSelected)}>
|
|
49
49
|
* {options.map(opt => (
|
|
50
50
|
* <TypeaheadOption key={opt.id} value={opt.id}>
|
|
@@ -172,4 +172,4 @@ import { TypeaheadProps } from './types';
|
|
|
172
172
|
*
|
|
173
173
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
174
174
|
*/
|
|
175
|
-
export declare const Typeahead: ({ name, label, selectedItems, defaultSelectedItems, isOpen, isDisabled, isMultiple, children, className, startIcon, endIcon, error, success, helperText, validationSchema, placeholder, startIconClassName, endIconClassName, popoverClassName, optionsClassName, wrapperClassName, filterOptions, autoSelect, allowCustomValues, width, onChange, onEmptyChange, onClearAll, onRemoveSelectedClick, renderOption, }: TypeaheadProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
175
|
+
export declare const Typeahead: ({ name, label, value, defaultValue, selectedItems, defaultSelectedItems, isOpen, disabled, isDisabled, isMultiple, children, className, startIcon, endIcon, error, success, helperText, validationSchema, placeholder, startIconClassName, endIconClassName, popoverClassName, optionsClassName, wrapperClassName, filterOptions, autoSelect, allowCustomValues, width, onChange, onEmptyChange, onClearAll, onRemoveSelectedClick, renderOption, }: TypeaheadProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -33,13 +33,25 @@ export type TypeaheadOptionProps = Record<string, TypeaheadValue>;
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export interface TypeaheadProps {
|
|
36
|
+
/**
|
|
37
|
+
* Controlled selected values (array, even in single-select mode).
|
|
38
|
+
* When provided, controls the selection externally.
|
|
39
|
+
*/
|
|
40
|
+
value?: Array<TypeaheadValue>;
|
|
41
|
+
/**
|
|
42
|
+
* Initially selected values, for uncontrolled mode.
|
|
43
|
+
*/
|
|
44
|
+
defaultValue?: Array<TypeaheadValue>;
|
|
36
45
|
/**
|
|
37
46
|
* Controlled selected items (array of values)
|
|
38
|
-
*
|
|
47
|
+
*
|
|
48
|
+
* @deprecated Use `value` instead. Removed in the next major release.
|
|
39
49
|
*/
|
|
40
50
|
selectedItems?: Array<TypeaheadValue>;
|
|
41
51
|
/**
|
|
42
52
|
* Default selected items for uncontrolled mode
|
|
53
|
+
*
|
|
54
|
+
* @deprecated Use `defaultValue` instead. Removed in the next major release.
|
|
43
55
|
*/
|
|
44
56
|
defaultSelectedItems?: Array<TypeaheadValue>;
|
|
45
57
|
/**
|
|
@@ -53,6 +65,13 @@ export interface TypeaheadProps {
|
|
|
53
65
|
* Disabled typeahead cannot be interacted with
|
|
54
66
|
* @default false
|
|
55
67
|
*/
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the component is disabled
|
|
71
|
+
*
|
|
72
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
56
75
|
isDisabled?: boolean;
|
|
57
76
|
/**
|
|
58
77
|
* TypeaheadOption components as children
|
|
@@ -205,6 +224,12 @@ export interface TypeaheadItemProps extends CommonProps {
|
|
|
205
224
|
/**
|
|
206
225
|
* Whether this option is disabled
|
|
207
226
|
*/
|
|
227
|
+
disabled?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Whether this option is disabled
|
|
230
|
+
*
|
|
231
|
+
* @deprecated Use `disabled` instead. Removed in the next major release.
|
|
232
|
+
*/
|
|
208
233
|
isDisabled?: boolean;
|
|
209
234
|
/**
|
|
210
235
|
* Value of the option (must be unique)
|
|
@@ -122,6 +122,7 @@ export * from './History';
|
|
|
122
122
|
export type * from './History/types';
|
|
123
123
|
export * from './Pagination';
|
|
124
124
|
export { default as Link } from './Link';
|
|
125
|
+
export type { LinkProps } from './Link/Link.types';
|
|
125
126
|
export * from './WithLink';
|
|
126
127
|
export { default as Wrapper } from './Wrapper';
|
|
127
128
|
export * from './Wrapper';
|
package/dist/index.d.ts
CHANGED