@innovaccer/design-system 4.22.0 → 4.24.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/CHANGELOG.md +157 -0
- package/README.md +35 -27
- package/css/dist/index.css +1570 -434
- package/css/dist/index.css.map +1 -1
- package/css/src/ai-components/button.module.css +4 -24
- package/css/src/ai-components/chip.module.css +12 -30
- package/css/src/ai-components/iconButton.module.css +2 -12
- package/css/src/components/avatarGroup.module.css +7 -0
- package/css/src/components/avatarSelection.module.css +22 -0
- package/css/src/components/badge.module.css +3 -3
- package/css/src/components/button.module.css +196 -27
- package/css/src/components/calendar.module.css +61 -20
- package/css/src/components/card.module.css +14 -0
- package/css/src/components/chatBubble.module.css +6 -1
- package/css/src/components/chatInput.module.css +14 -3
- package/css/src/components/chip.module.css +39 -4
- package/css/src/components/chipInput.module.css +19 -17
- package/css/src/components/dropdown.module.css +50 -14
- package/css/src/components/dropdownButton.module.css +5 -3
- package/css/src/components/dropzone.module.css +36 -0
- package/css/src/components/editableChipInput.module.css +48 -1
- package/css/src/components/editableDropdown.module.css +53 -0
- package/css/src/components/editableInput.module.css +31 -0
- package/css/src/components/grid.module.css +33 -13
- package/css/src/components/horizontalNav.module.css +16 -1
- package/css/src/components/input.module.css +0 -1
- package/css/src/components/label.module.css +12 -0
- package/css/src/components/link.module.css +69 -6
- package/css/src/components/linkButton.module.css +82 -10
- package/css/src/components/listbox.module.css +110 -6
- package/css/src/components/metricInput.module.css +89 -35
- package/css/src/components/modal.module.css +16 -0
- package/css/src/components/navigation.module.css +16 -0
- package/css/src/components/segmentedControl.module.css +1 -1
- package/css/src/components/select.module.css +11 -3
- package/css/src/components/selectionCard.module.css +38 -0
- package/css/src/components/sidesheet.module.css +16 -0
- package/css/src/components/slider.module.css +21 -0
- package/css/src/components/switch.module.css +39 -0
- package/css/src/components/table.module.css +32 -1
- package/css/src/components/tabs.module.css +20 -0
- package/css/src/components/timePicker.module.css +4 -0
- package/css/src/components/toast.module.css +19 -0
- package/css/src/components/tooltip.module.css +1 -0
- package/css/src/components/verticalNav.module.css +13 -5
- package/css/src/core/utilities.css +0 -23
- package/css/src/tokens/index.css +156 -156
- package/css/src/utils/utility.css +4 -0
- package/css/src/variables/index.css +116 -1
- package/dist/brotli/index.js +1 -1
- package/dist/brotli/index.js.br +0 -0
- package/dist/cjs/index.js +1 -1
- package/dist/core/accessibility/utils/useAccessibilityProps.d.ts +99 -16
- package/dist/core/components/atoms/_chip/index.d.ts +2 -0
- package/dist/core/components/atoms/_text/index.d.ts +2 -1
- package/dist/core/components/atoms/caption/Caption.d.ts +2 -2
- package/dist/core/components/atoms/chip/Chip.d.ts +2 -0
- package/dist/core/components/atoms/divider/Divider.d.ts +1 -0
- package/dist/core/components/atoms/dropdown/DropdownList.d.ts +2 -1
- package/dist/core/components/atoms/dropdown/option/index.d.ts +13 -4
- package/dist/core/components/atoms/helpText/HelpText.d.ts +1 -0
- package/dist/core/components/atoms/icon/Icon.d.ts +2 -3
- package/dist/core/components/atoms/link/Link.d.ts +4 -2
- package/dist/core/components/atoms/linkButton/LinkButton.d.ts +2 -1
- package/dist/core/components/atoms/message/Message.d.ts +1 -0
- package/dist/core/components/atoms/multiSlider/Handle.d.ts +1 -0
- package/dist/core/components/atoms/multiSlider/index.d.ts +2 -0
- package/dist/core/components/atoms/outsideClick/OutsideClick.d.ts +1 -0
- package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +51 -50
- package/dist/core/components/atoms/progressBar/ProgressBar.d.ts +3 -0
- package/dist/core/components/atoms/progressRing/ProgressRing.d.ts +3 -0
- package/dist/core/components/atoms/segmentedControl/SegmentedControl.d.ts +2 -0
- package/dist/core/components/atoms/spinner/Spinner.d.ts +1 -0
- package/dist/core/components/atoms/statusHint/StatusHint.d.ts +2 -2
- package/dist/core/components/atoms/toast/Toast.d.ts +3 -0
- package/dist/core/components/molecules/chat/Chat.d.ts +3 -0
- package/dist/core/components/molecules/chat/chatBubble/IncomingBubble.d.ts +1 -0
- package/dist/core/components/molecules/chat/chatBubble/OutgoingBubble.d.ts +1 -0
- package/dist/core/components/molecules/chat/chatInput/ChatInput.d.ts +1 -0
- package/dist/core/components/molecules/chat/unreadMessage/UnreadMessage.d.ts +3 -0
- package/dist/core/components/molecules/chipInput/ChipInput.d.ts +1 -1
- package/dist/core/components/molecules/chipInput/utils.d.ts +2 -0
- package/dist/core/components/molecules/dropzone/Dropzone.d.ts +1 -0
- package/dist/core/components/molecules/editableInput/EditableInput.d.ts +4 -0
- package/dist/core/components/molecules/fileUploader/FileUploaderButton.d.ts +2 -0
- package/dist/core/components/molecules/inputMask/InputMask.d.ts +1 -0
- package/dist/core/components/molecules/modal/Modal.d.ts +1 -0
- package/dist/core/components/molecules/popover/Popover.d.ts +1 -0
- package/dist/core/components/molecules/sidesheet/Sidesheet.d.ts +2 -1
- package/dist/core/components/molecules/stepper/Step.d.ts +1 -0
- package/dist/core/components/organisms/calendar/Calendar.d.ts +4 -3
- package/dist/core/components/organisms/calendar/utils.d.ts +6 -5
- package/dist/core/components/organisms/combobox/Combobox.d.ts +2 -0
- package/dist/core/components/organisms/combobox/ComboboxList.d.ts +1 -0
- package/dist/core/components/organisms/combobox/trigger/ComboboxTrigger.d.ts +2 -0
- package/dist/core/components/organisms/combobox/trigger/MultiselectTrigger.d.ts +1 -0
- package/dist/core/components/organisms/grid/Grid.d.ts +1 -0
- package/dist/core/components/organisms/grid/GridContext.d.ts +1 -0
- package/dist/core/components/organisms/grid/VirtualList.d.ts +1 -0
- package/dist/core/components/organisms/inlineMessage/InlineMessage.d.ts +3 -2
- package/dist/core/components/organisms/listbox/Listbox.d.ts +9 -1
- package/dist/core/components/organisms/listbox/listboxItem/ListBody.d.ts +1 -1
- package/dist/core/components/organisms/listbox/listboxItem/ListboxItem.d.ts +2 -0
- package/dist/core/components/organisms/listbox/nestedList/NestedList.d.ts +2 -0
- package/dist/core/components/organisms/listbox/reorderList/Draggable.d.ts +12 -0
- package/dist/core/components/organisms/listbox/reorderList/DraggableList.d.ts +2 -2
- package/dist/core/components/organisms/listbox/reorderList/types.d.ts +2 -0
- package/dist/core/components/organisms/listbox/utils.d.ts +3 -0
- package/dist/core/components/organisms/menu/MenuContext.d.ts +1 -0
- package/dist/core/components/organisms/menu/SubMenuContext.d.ts +1 -0
- package/dist/core/components/organisms/select/Select.d.ts +4 -1
- package/dist/core/components/organisms/select/SelectContext.d.ts +3 -1
- package/dist/core/components/organisms/select/SelectOption.d.ts +1 -0
- package/dist/core/components/organisms/select/SelectTrigger.d.ts +4 -0
- package/dist/core/components/organisms/select/utils.d.ts +7 -2
- package/dist/core/components/organisms/textField/TextFieldCommon.d.ts +1 -0
- package/dist/core/components/organisms/verticalNav/VerticalNav.d.ts +2 -0
- package/dist/core/utils/overlayHelper.d.ts +3 -2
- package/dist/esm/index.js +4343 -1784
- package/dist/gzip/index.js +1 -1
- package/dist/gzip/index.js.gz +0 -0
- package/dist/index.js +4139 -1734
- package/dist/index.js.map +1 -1
- package/dist/index.umd.css +1558 -422
- package/dist/index.umd.js +1 -1
- package/dist/scripts/setupTest.d.ts +1 -0
- package/dist/types/tsconfig.type.tsbuildinfo +399 -243
- package/package.json +8 -13
|
@@ -1,29 +1,112 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare type AriaRoleType = React.AriaRole;
|
|
3
|
-
interface IProps {
|
|
3
|
+
interface IProps extends React.AriaAttributes {
|
|
4
4
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
5
5
|
onKeyDown?: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
6
6
|
role?: AriaRoleType;
|
|
7
7
|
tabIndex?: number;
|
|
8
|
-
'aria-label'?: React.AriaAttributes['aria-label'];
|
|
9
|
-
'aria-labelledby'?: React.AriaAttributes['aria-labelledby'];
|
|
10
|
-
'aria-describedby'?: React.AriaAttributes['aria-describedby'];
|
|
11
|
-
'aria-hidden'?: React.AriaAttributes['aria-hidden'];
|
|
12
8
|
}
|
|
13
|
-
declare const useAccessibilityProps: ({ onClick, onKeyDown, role, tabIndex, ...
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
declare const useAccessibilityProps: ({ onClick, onKeyDown, role, tabIndex, ...ariaProps }: IProps) => {
|
|
10
|
+
"aria-activedescendant"?: string | undefined;
|
|
11
|
+
"aria-atomic"?: boolean | "false" | "true" | undefined;
|
|
12
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
13
|
+
"aria-busy"?: boolean | "false" | "true" | undefined;
|
|
14
|
+
"aria-checked"?: boolean | "false" | "true" | "mixed" | undefined;
|
|
15
|
+
"aria-colcount"?: number | undefined;
|
|
16
|
+
"aria-colindex"?: number | undefined;
|
|
17
|
+
"aria-colspan"?: number | undefined;
|
|
18
|
+
"aria-controls"?: string | undefined;
|
|
19
|
+
"aria-current"?: boolean | "step" | "false" | "true" | "page" | "location" | "date" | "time" | undefined;
|
|
20
|
+
"aria-describedby"?: string | undefined;
|
|
21
|
+
"aria-details"?: string | undefined;
|
|
22
|
+
"aria-disabled"?: boolean | "false" | "true" | undefined;
|
|
23
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
24
|
+
"aria-errormessage"?: string | undefined;
|
|
25
|
+
"aria-expanded"?: boolean | "false" | "true" | undefined;
|
|
26
|
+
"aria-flowto"?: string | undefined;
|
|
27
|
+
"aria-grabbed"?: boolean | "false" | "true" | undefined;
|
|
28
|
+
"aria-haspopup"?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "false" | "true" | undefined;
|
|
29
|
+
"aria-hidden"?: boolean | "false" | "true" | undefined;
|
|
30
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
31
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
32
|
+
"aria-label"?: string | undefined;
|
|
33
|
+
"aria-labelledby"?: string | undefined;
|
|
34
|
+
"aria-level"?: number | undefined;
|
|
35
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
36
|
+
"aria-modal"?: boolean | "false" | "true" | undefined;
|
|
37
|
+
"aria-multiline"?: boolean | "false" | "true" | undefined;
|
|
38
|
+
"aria-multiselectable"?: boolean | "false" | "true" | undefined;
|
|
39
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
40
|
+
"aria-owns"?: string | undefined;
|
|
41
|
+
"aria-placeholder"?: string | undefined;
|
|
42
|
+
"aria-posinset"?: number | undefined;
|
|
43
|
+
"aria-pressed"?: boolean | "false" | "true" | "mixed" | undefined;
|
|
44
|
+
"aria-readonly"?: boolean | "false" | "true" | undefined;
|
|
45
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
46
|
+
"aria-required"?: boolean | "false" | "true" | undefined;
|
|
47
|
+
"aria-roledescription"?: string | undefined;
|
|
48
|
+
"aria-rowcount"?: number | undefined;
|
|
49
|
+
"aria-rowindex"?: number | undefined;
|
|
50
|
+
"aria-rowspan"?: number | undefined;
|
|
51
|
+
"aria-selected"?: boolean | "false" | "true" | undefined;
|
|
52
|
+
"aria-setsize"?: number | undefined;
|
|
53
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
54
|
+
"aria-valuemax"?: number | undefined;
|
|
55
|
+
"aria-valuemin"?: number | undefined;
|
|
56
|
+
"aria-valuenow"?: number | undefined;
|
|
57
|
+
"aria-valuetext"?: string | undefined;
|
|
22
58
|
} | {
|
|
59
|
+
onKeyDown: (e: React.SyntheticEvent<HTMLElement>) => void;
|
|
60
|
+
"aria-activedescendant"?: string | undefined;
|
|
61
|
+
"aria-atomic"?: boolean | "false" | "true" | undefined;
|
|
62
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
63
|
+
"aria-busy"?: boolean | "false" | "true" | undefined;
|
|
64
|
+
"aria-checked"?: boolean | "false" | "true" | "mixed" | undefined;
|
|
65
|
+
"aria-colcount"?: number | undefined;
|
|
66
|
+
"aria-colindex"?: number | undefined;
|
|
67
|
+
"aria-colspan"?: number | undefined;
|
|
68
|
+
"aria-controls"?: string | undefined;
|
|
69
|
+
"aria-current"?: boolean | "step" | "false" | "true" | "page" | "location" | "date" | "time" | undefined;
|
|
70
|
+
"aria-describedby"?: string | undefined;
|
|
71
|
+
"aria-details"?: string | undefined;
|
|
72
|
+
"aria-disabled"?: boolean | "false" | "true" | undefined;
|
|
73
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
74
|
+
"aria-errormessage"?: string | undefined;
|
|
75
|
+
"aria-expanded"?: boolean | "false" | "true" | undefined;
|
|
76
|
+
"aria-flowto"?: string | undefined;
|
|
77
|
+
"aria-grabbed"?: boolean | "false" | "true" | undefined;
|
|
78
|
+
"aria-haspopup"?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "false" | "true" | undefined;
|
|
79
|
+
"aria-hidden"?: boolean | "false" | "true" | undefined;
|
|
80
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
81
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
82
|
+
"aria-label"?: string | undefined;
|
|
83
|
+
"aria-labelledby"?: string | undefined;
|
|
84
|
+
"aria-level"?: number | undefined;
|
|
85
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
86
|
+
"aria-modal"?: boolean | "false" | "true" | undefined;
|
|
87
|
+
"aria-multiline"?: boolean | "false" | "true" | undefined;
|
|
88
|
+
"aria-multiselectable"?: boolean | "false" | "true" | undefined;
|
|
89
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
90
|
+
"aria-owns"?: string | undefined;
|
|
91
|
+
"aria-placeholder"?: string | undefined;
|
|
92
|
+
"aria-posinset"?: number | undefined;
|
|
93
|
+
"aria-pressed"?: boolean | "false" | "true" | "mixed" | undefined;
|
|
94
|
+
"aria-readonly"?: boolean | "false" | "true" | undefined;
|
|
95
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
96
|
+
"aria-required"?: boolean | "false" | "true" | undefined;
|
|
97
|
+
"aria-roledescription"?: string | undefined;
|
|
98
|
+
"aria-rowcount"?: number | undefined;
|
|
99
|
+
"aria-rowindex"?: number | undefined;
|
|
100
|
+
"aria-rowspan"?: number | undefined;
|
|
101
|
+
"aria-selected"?: boolean | "false" | "true" | undefined;
|
|
102
|
+
"aria-setsize"?: number | undefined;
|
|
103
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
104
|
+
"aria-valuemax"?: number | undefined;
|
|
105
|
+
"aria-valuemin"?: number | undefined;
|
|
106
|
+
"aria-valuenow"?: number | undefined;
|
|
107
|
+
"aria-valuetext"?: string | undefined;
|
|
23
108
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
24
109
|
role: React.AriaRole;
|
|
25
110
|
tabIndex: number;
|
|
26
|
-
'aria-label': string | undefined;
|
|
27
|
-
onKeyDown: (e: React.SyntheticEvent<HTMLElement>) => void;
|
|
28
111
|
};
|
|
29
112
|
export default useAccessibilityProps;
|
|
@@ -19,6 +19,8 @@ export interface GenericChipProps extends BaseProps {
|
|
|
19
19
|
role?: string;
|
|
20
20
|
'aria-label'?: string;
|
|
21
21
|
'aria-labelledby'?: string;
|
|
22
|
+
clearButtonAriaLabel?: string;
|
|
23
|
+
tabIndex?: number;
|
|
22
24
|
}
|
|
23
25
|
export declare const GenericChip: {
|
|
24
26
|
(props: GenericChipProps): React.JSX.Element;
|
|
@@ -3,6 +3,7 @@ interface Props {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
componentType: string;
|
|
5
5
|
className?: string;
|
|
6
|
+
[key: string]: any;
|
|
6
7
|
}
|
|
7
|
-
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, React.ReactText> & React.RefAttributes<HTMLElement>>;
|
|
8
9
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BaseProps } from "../../../utils/types";
|
|
3
|
-
export interface CaptionProps extends BaseProps {
|
|
2
|
+
import { BaseHtmlProps, BaseProps } from "../../../utils/types";
|
|
3
|
+
export interface CaptionProps extends BaseProps, BaseHtmlProps<HTMLDivElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
error?: boolean;
|
|
6
6
|
hide?: boolean;
|
|
@@ -21,6 +21,8 @@ export interface ChipProps extends BaseProps {
|
|
|
21
21
|
role?: React.AriaRole;
|
|
22
22
|
'aria-label'?: string;
|
|
23
23
|
'aria-labelledby'?: string;
|
|
24
|
+
clearButtonAriaLabel?: string;
|
|
25
|
+
tabIndex?: number;
|
|
24
26
|
}
|
|
25
27
|
export declare const Chip: {
|
|
26
28
|
(props: ChipProps): React.JSX.Element;
|
|
@@ -4,6 +4,7 @@ declare type DividerType = 'basic' | 'header';
|
|
|
4
4
|
export interface DividerProps extends BaseProps {
|
|
5
5
|
vertical: boolean;
|
|
6
6
|
appearance: DividerType;
|
|
7
|
+
'aria-hidden'?: boolean | 'true' | 'false';
|
|
7
8
|
}
|
|
8
9
|
export declare const Divider: {
|
|
9
10
|
(props: DividerProps): React.JSX.Element;
|
|
@@ -24,7 +24,8 @@ declare type TriggerAndOptionProps = TriggerProps & OptionRendererProps;
|
|
|
24
24
|
export interface ErrorTemplateProps {
|
|
25
25
|
errorType?: ErrorType;
|
|
26
26
|
}
|
|
27
|
-
export interface DropdownListProps extends TriggerAndOptionProps {
|
|
27
|
+
export interface DropdownListProps extends TriggerAndOptionProps, React.AriaAttributes {
|
|
28
|
+
inert?: string;
|
|
28
29
|
align?: DropdownAlign;
|
|
29
30
|
noResultMessage?: string;
|
|
30
31
|
errorTemplate?: React.FunctionComponent<ErrorTemplateProps>;
|
|
@@ -3,10 +3,6 @@ import { MetaListProps, IconProps, TextProps } from "../../../../index.type";
|
|
|
3
3
|
import { OptionType } from "../DropdownList";
|
|
4
4
|
import { ChangeEvent, IconType } from "../../../../common.type";
|
|
5
5
|
export declare type ClickEvent = React.MouseEvent<HTMLDivElement>;
|
|
6
|
-
export interface OptionRendererProps {
|
|
7
|
-
optionRenderer?: (props: OptionProps) => React.ReactElement;
|
|
8
|
-
optionType?: OptionType;
|
|
9
|
-
}
|
|
10
6
|
export interface OptionSchema extends Record<string, any> {
|
|
11
7
|
label: string;
|
|
12
8
|
value: React.ReactText;
|
|
@@ -18,6 +14,19 @@ export interface OptionSchema extends Record<string, any> {
|
|
|
18
14
|
group?: string;
|
|
19
15
|
iconType?: IconType;
|
|
20
16
|
}
|
|
17
|
+
export interface CustomOptionRendererParams {
|
|
18
|
+
optionData: OptionSchema;
|
|
19
|
+
selected: boolean;
|
|
20
|
+
active?: boolean;
|
|
21
|
+
index: number;
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
onChange?: (event: ChangeEvent) => void;
|
|
24
|
+
id?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface OptionRendererProps {
|
|
27
|
+
optionRenderer?: (props: CustomOptionRendererParams) => React.ReactElement;
|
|
28
|
+
optionType?: OptionType;
|
|
29
|
+
}
|
|
21
30
|
export interface OptionTypeProps {
|
|
22
31
|
className: string;
|
|
23
32
|
textClassName: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BaseProps } from "../../../utils/types";
|
|
2
|
+
import { BaseProps, BaseHtmlProps } from "../../../utils/types";
|
|
3
3
|
export declare type IconAppearance = 'default' | 'destructive' | 'white' | 'subtle' | 'disabled' | 'info' | 'alert' | 'warning' | 'success' | 'primary_lighter' | 'primary' | 'primary_dark' | 'primary_darker' | 'alert_lighter' | 'alert_dark' | 'alert_darker' | 'warning_lighter' | 'warning_dark' | 'warning_darker' | 'success_lighter' | 'success_dark' | 'success_darker' | 'accent1' | 'accent1_lighter' | 'accent1_dark' | 'accent1_darker' | 'accent2' | 'accent2_lighter' | 'accent2_dark' | 'accent2_darker' | 'accent3' | 'accent3_lighter' | 'accent3_dark' | 'accent3_darker' | 'accent4' | 'accent4_lighter' | 'accent4_dark' | 'accent4_darker' | 'inverse';
|
|
4
4
|
export declare type IconType = 'filled' | 'outlined' | 'outline' | 'rounded' | 'round' | 'two-tone' | 'sharp';
|
|
5
|
-
export interface IconProps extends BaseProps {
|
|
5
|
+
export interface IconProps extends BaseProps, BaseHtmlProps<HTMLElement> {
|
|
6
6
|
name?: string;
|
|
7
7
|
size: number;
|
|
8
8
|
type?: IconType;
|
|
@@ -11,7 +11,6 @@ export interface IconProps extends BaseProps {
|
|
|
11
11
|
onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => void;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
tabIndex?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>['tabIndex'];
|
|
14
|
-
'aria-hidden'?: React.AriaAttributes['aria-hidden'];
|
|
15
14
|
}
|
|
16
15
|
export declare const Icon: {
|
|
17
16
|
(props: IconProps): React.JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { BaseProps, OmitNativeProps } from "../../../utils/types";
|
|
|
3
3
|
declare type LinkTarget = '_blank' | '_self' | '_parent' | '_top';
|
|
4
4
|
declare type LinkAppearance = 'default' | 'subtle';
|
|
5
5
|
declare type LinkSize = 'regular' | 'tiny';
|
|
6
|
-
export interface LinkProps extends BaseProps, OmitNativeProps<
|
|
6
|
+
export interface LinkProps extends BaseProps, OmitNativeProps<HTMLAnchorElement, 'onClick'> {
|
|
7
7
|
id?: string;
|
|
8
8
|
appearance: LinkAppearance;
|
|
9
9
|
size: LinkSize;
|
|
@@ -13,8 +13,10 @@ export interface LinkProps extends BaseProps, OmitNativeProps<HTMLLinkElement, '
|
|
|
13
13
|
rel?: string;
|
|
14
14
|
download?: string;
|
|
15
15
|
hreflang?: string;
|
|
16
|
-
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
16
|
+
onClick?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
|
|
17
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLAnchorElement | HTMLButtonElement>;
|
|
17
18
|
children: React.ReactNode;
|
|
19
|
+
tooltip?: string;
|
|
18
20
|
}
|
|
19
21
|
export declare const Link: {
|
|
20
22
|
(props: LinkProps): React.JSX.Element;
|
|
@@ -8,10 +8,11 @@ export interface LinkButtonProps extends BaseProps, BaseHtmlProps<HTMLButtonElem
|
|
|
8
8
|
type?: ButtonType;
|
|
9
9
|
size?: LinkButtonSize;
|
|
10
10
|
disabled?: boolean;
|
|
11
|
+
tooltip?: string;
|
|
11
12
|
icon?: string;
|
|
12
13
|
iconAlign?: IconAlignment;
|
|
13
14
|
iconType?: IconType;
|
|
14
|
-
children
|
|
15
|
+
children?: React.ReactText;
|
|
15
16
|
tabIndex?: number;
|
|
16
17
|
autoFocus?: boolean;
|
|
17
18
|
subtle?: boolean;
|
|
@@ -38,6 +38,7 @@ export declare class MultiSlider extends React.Component<InternalMultiSliderProp
|
|
|
38
38
|
static Handle: React.FunctionComponent<HandleProps>;
|
|
39
39
|
handleElements: Handle[];
|
|
40
40
|
trackElement: HTMLElement | null;
|
|
41
|
+
labelId: string;
|
|
41
42
|
constructor(props: InternalMultiSliderProps);
|
|
42
43
|
getDerivedStateFromProps(props: InternalMultiSliderProps): {
|
|
43
44
|
labelPrecision: number;
|
|
@@ -57,6 +58,7 @@ export declare class MultiSlider extends React.Component<InternalMultiSliderProp
|
|
|
57
58
|
onReleaseHandler: (newValue: number, index: number) => void;
|
|
58
59
|
onChangeHandler: (newValue: number, index: number) => void;
|
|
59
60
|
formatLabel: (value: number) => string;
|
|
61
|
+
getHandleAriaLabel: (index: number, totalHandles: number) => string;
|
|
60
62
|
renderHandles: () => React.JSX.Element[] | null;
|
|
61
63
|
renderLabels: () => React.JSX.Element[];
|
|
62
64
|
renderTrackFill: (index: number, start: HandleProps, end: HandleProps) => React.JSX.Element;
|
|
@@ -3,6 +3,7 @@ import { BaseHtmlProps, BaseProps } from "../../../utils/types";
|
|
|
3
3
|
export interface OutsideClickProps extends BaseHtmlProps<HTMLDivElement>, BaseProps {
|
|
4
4
|
onOutsideClick: (event: Event) => void;
|
|
5
5
|
children: React.ReactElement<any>;
|
|
6
|
+
wrapperElement?: 'div' | 'span';
|
|
6
7
|
}
|
|
7
8
|
export declare const OutsideClick: React.ForwardRefExoticComponent<OutsideClickProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
9
|
export default OutsideClick;
|