@innovaccer/design-system 4.23.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 +76 -0
- package/README.md +3 -3
- package/css/dist/index.css +1226 -325
- 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 +5 -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 +187 -18
- package/css/src/components/calendar.module.css +49 -0
- 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 +34 -0
- package/css/src/components/dropdown.module.css +7 -0
- package/css/src/components/dropzone.module.css +36 -0
- package/css/src/components/grid.module.css +29 -12
- package/css/src/components/horizontalNav.module.css +15 -0
- package/css/src/components/link.module.css +59 -6
- package/css/src/components/linkButton.module.css +82 -10
- package/css/src/components/listbox.module.css +85 -1
- package/css/src/components/metricInput.module.css +89 -35
- package/css/src/components/modal.module.css +8 -0
- package/css/src/components/segmentedControl.module.css +1 -1
- package/css/src/components/select.module.css +7 -0
- package/css/src/components/selectionCard.module.css +38 -0
- package/css/src/components/sidesheet.module.css +8 -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 +10 -0
- package/css/src/components/tooltip.module.css +1 -0
- 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/components/atoms/link/Link.d.ts +4 -2
- package/dist/core/components/atoms/linkButton/LinkButton.d.ts +1 -0
- package/dist/core/components/atoms/message/Message.d.ts +1 -0
- package/dist/core/components/atoms/outsideClick/OutsideClick.d.ts +1 -0
- package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +1 -0
- package/dist/core/components/atoms/progressBar/ProgressBar.d.ts +2 -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/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/dropzone/Dropzone.d.ts +1 -0
- package/dist/core/components/molecules/editableInput/EditableInput.d.ts +4 -0
- package/dist/core/components/molecules/inputMask/InputMask.d.ts +1 -0
- package/dist/core/components/molecules/popover/Popover.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/listbox/reorderList/Draggable.d.ts +11 -0
- package/dist/core/components/organisms/menu/SubMenuContext.d.ts +1 -0
- package/dist/core/components/organisms/textField/TextFieldCommon.d.ts +1 -0
- package/dist/core/components/organisms/verticalNav/VerticalNav.d.ts +2 -0
- package/dist/esm/index.js +1695 -709
- package/dist/gzip/index.js +1 -1
- package/dist/gzip/index.js.gz +0 -0
- package/dist/index.js +1536 -570
- package/dist/index.js.map +1 -1
- package/dist/index.umd.css +1216 -315
- package/dist/index.umd.js +1 -1
- package/dist/types/tsconfig.type.tsbuildinfo +152 -114
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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;
|
|
@@ -13,6 +13,7 @@ export interface PopperWrapperProps {
|
|
|
13
13
|
trigger: React.ReactElement<any>;
|
|
14
14
|
boundaryElement?: Element | null;
|
|
15
15
|
triggerClass?: string;
|
|
16
|
+
wrapperElement?: 'div' | 'span';
|
|
16
17
|
placement: PositionType;
|
|
17
18
|
children: React.ReactElement<any>;
|
|
18
19
|
style: React.CSSProperties;
|
|
@@ -8,6 +8,8 @@ export interface ProgressBarProps extends BaseProps {
|
|
|
8
8
|
size: ProgressBarSize;
|
|
9
9
|
state?: ProgressBarState;
|
|
10
10
|
'aria-label'?: string;
|
|
11
|
+
'aria-labelledby'?: string;
|
|
12
|
+
id?: string;
|
|
11
13
|
}
|
|
12
14
|
export declare const ProgressBar: {
|
|
13
15
|
(props: ProgressBarProps): React.JSX.Element;
|
|
@@ -5,6 +5,9 @@ export interface ProgressRingProps extends BaseProps {
|
|
|
5
5
|
size: ProgressRingSize;
|
|
6
6
|
value: number;
|
|
7
7
|
max: number;
|
|
8
|
+
'aria-label'?: string;
|
|
9
|
+
'aria-labelledby'?: string;
|
|
10
|
+
id?: string;
|
|
8
11
|
}
|
|
9
12
|
export declare const ProgressRing: {
|
|
10
13
|
(props: ProgressRingProps): React.JSX.Element;
|
|
@@ -12,6 +12,8 @@ export interface SegmentedControlProps extends BaseProps {
|
|
|
12
12
|
isEqualWidth?: boolean;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
children: React.ReactElement<SegmentedControlItemProps> | React.ReactElement<SegmentedControlItemProps>[];
|
|
15
|
+
'aria-label'?: string;
|
|
16
|
+
'aria-labelledby'?: string;
|
|
15
17
|
}
|
|
16
18
|
export declare const SegmentedControl: {
|
|
17
19
|
(props: SegmentedControlProps): React.JSX.Element | null;
|
|
@@ -11,6 +11,9 @@ export interface ToastProps extends BaseProps {
|
|
|
11
11
|
message?: string;
|
|
12
12
|
actions?: Action[];
|
|
13
13
|
onClose?: () => void;
|
|
14
|
+
'aria-label'?: string;
|
|
15
|
+
'aria-atomic'?: 'true' | 'false' | boolean;
|
|
16
|
+
id?: string;
|
|
14
17
|
}
|
|
15
18
|
export declare const Toast: {
|
|
16
19
|
(props: ToastProps): React.JSX.Element;
|
|
@@ -2,6 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { BaseProps } from "../../../utils/types";
|
|
3
3
|
export interface ChatProps extends BaseProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
+
role?: string;
|
|
6
|
+
'aria-live'?: 'polite' | 'assertive' | 'off';
|
|
7
|
+
'aria-label'?: string;
|
|
5
8
|
}
|
|
6
9
|
export declare const Chat: {
|
|
7
10
|
(props: ChatProps): React.JSX.Element;
|
|
@@ -18,6 +18,7 @@ export interface IncomingOptionProps extends BaseProps {
|
|
|
18
18
|
urgentMessage?: () => JSX.Element;
|
|
19
19
|
avatarData?: ChatAvatarProps;
|
|
20
20
|
showAvatar?: boolean;
|
|
21
|
+
'aria-label'?: string;
|
|
21
22
|
}
|
|
22
23
|
export declare const IncomingBubble: {
|
|
23
24
|
(props: IncomingOptionProps): React.JSX.Element;
|
|
@@ -9,6 +9,7 @@ export interface OutgoingOptionProps extends BaseProps {
|
|
|
9
9
|
actionBar?: () => JSX.Element;
|
|
10
10
|
urgentMessage?: () => JSX.Element;
|
|
11
11
|
failedMessage?: () => JSX.Element;
|
|
12
|
+
'aria-label'?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const OutgoingBubble: {
|
|
14
15
|
(props: OutgoingOptionProps): React.JSX.Element;
|
|
@@ -14,6 +14,7 @@ export interface ChatInputProps extends BaseProps {
|
|
|
14
14
|
onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
15
15
|
onSend?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>, value?: string) => void;
|
|
16
16
|
onStopGenerating?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
17
|
+
'aria-label'?: string;
|
|
17
18
|
}
|
|
18
19
|
declare const ChatInput: React.FC<ChatInputProps>;
|
|
19
20
|
export default ChatInput;
|
|
@@ -2,6 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { BaseProps } from "../../../../utils/types";
|
|
3
3
|
export interface UnreadMessageProps extends BaseProps {
|
|
4
4
|
text: string;
|
|
5
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
6
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
7
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
5
8
|
}
|
|
6
9
|
declare const UnreadMessage: React.FC<UnreadMessageProps>;
|
|
7
10
|
export default UnreadMessage;
|
|
@@ -10,6 +10,10 @@ export interface EditableInputProps extends BaseProps {
|
|
|
10
10
|
errorMessage?: string;
|
|
11
11
|
inputOptions: Omit<InputProps, 'error' | 'value' | 'defaultValue' | 'size' | 'placeholder'>;
|
|
12
12
|
onChange?: (value: string) => void;
|
|
13
|
+
'aria-label'?: string;
|
|
14
|
+
'aria-labelledby'?: string;
|
|
15
|
+
'aria-describedby'?: string;
|
|
16
|
+
id?: string;
|
|
13
17
|
}
|
|
14
18
|
export declare const EditableInput: {
|
|
15
19
|
(props: EditableInputProps): React.JSX.Element;
|
|
@@ -13,6 +13,7 @@ export interface MaskProps extends BaseProps {
|
|
|
13
13
|
onPaste?: (e: React.ClipboardEvent<HTMLInputElement>, val?: string) => void;
|
|
14
14
|
clearOnEmptyBlur?: boolean;
|
|
15
15
|
helpText?: string;
|
|
16
|
+
useDefaultValueOnEmpty?: boolean;
|
|
16
17
|
}
|
|
17
18
|
export declare type InputMaskProps = InputProps & MaskProps;
|
|
18
19
|
declare type InputMaskType = React.ForwardRefExoticComponent<InputProps & MaskProps & React.RefAttributes<HTMLInputElement>> & {
|
|
@@ -19,6 +19,7 @@ export interface PopoverProps extends Pick<PopperWrapperProps, PopperProps>, Bas
|
|
|
19
19
|
dark?: boolean;
|
|
20
20
|
customStyle: CustomStyle;
|
|
21
21
|
triggerClass?: string;
|
|
22
|
+
wrapperElement?: 'div' | 'span';
|
|
22
23
|
hideOnReferenceEscape?: boolean;
|
|
23
24
|
boundaryElement: React.RefObject<HTMLElement> | Element;
|
|
24
25
|
animationClass?: {
|
|
@@ -156,6 +156,7 @@ export interface GridState {
|
|
|
156
156
|
export declare class Grid extends React.Component<GridProps, GridState> {
|
|
157
157
|
static defaultProps: GridProps;
|
|
158
158
|
gridRef: GridRef;
|
|
159
|
+
gridId: string;
|
|
159
160
|
isHeadSyncing: boolean;
|
|
160
161
|
isBodySyncing: boolean;
|
|
161
162
|
constructor(props: GridProps);
|
|
@@ -9,6 +9,7 @@ interface VirtualScrollProps extends BaseProps {
|
|
|
9
9
|
totalLength: number;
|
|
10
10
|
renderItem: (index: number, item?: object) => React.ReactElement;
|
|
11
11
|
onScroll?: (event: Event, element: HTMLElement) => void;
|
|
12
|
+
role?: React.AriaRole;
|
|
12
13
|
}
|
|
13
14
|
declare const VirtualList: (props: VirtualScrollProps) => React.JSX.Element;
|
|
14
15
|
export default VirtualList;
|
|
@@ -9,6 +9,9 @@ declare class Draggable<Value = string> extends React.Component<IProps<Value>> {
|
|
|
9
9
|
lastScroll: number;
|
|
10
10
|
lastYOffset: number;
|
|
11
11
|
lastListYOffset: number;
|
|
12
|
+
mouseDownX: number;
|
|
13
|
+
mouseDownY: number;
|
|
14
|
+
hasDragStarted: boolean;
|
|
12
15
|
dropTimeout?: number;
|
|
13
16
|
needle: number;
|
|
14
17
|
afterIndex: number;
|
|
@@ -25,6 +28,8 @@ declare class Draggable<Value = string> extends React.Component<IProps<Value>> {
|
|
|
25
28
|
targetWidth: number;
|
|
26
29
|
scrollingSpeed: number;
|
|
27
30
|
scrollWindow: boolean;
|
|
31
|
+
isClickAndFollow: boolean;
|
|
32
|
+
ariaMessage: string;
|
|
28
33
|
};
|
|
29
34
|
schdOnMouseMove: {
|
|
30
35
|
(e: MouseEvent): void;
|
|
@@ -44,6 +49,7 @@ declare class Draggable<Value = string> extends React.Component<IProps<Value>> {
|
|
|
44
49
|
scrollingSpeed: number;
|
|
45
50
|
}): void;
|
|
46
51
|
componentWillUnmount(): void;
|
|
52
|
+
ensureKeyboardReorderVisible: (pickedIndex: number, needleIndex: number) => void;
|
|
47
53
|
doScrolling: () => void;
|
|
48
54
|
getChildren: () => Element[];
|
|
49
55
|
static defaultProps: {
|
|
@@ -64,8 +70,13 @@ declare class Draggable<Value = string> extends React.Component<IProps<Value>> {
|
|
|
64
70
|
autoScrolling: (clientY: number) => void;
|
|
65
71
|
animateItems: (needle: number, movedItem: number, offset: number, animateMovedItem?: boolean) => void;
|
|
66
72
|
isDraggedItemOutOfBounds: () => boolean;
|
|
73
|
+
finalizeActivePointerDrop: () => void;
|
|
74
|
+
completeClickAndFollowDropAtFocusedIndex: (index: number) => void;
|
|
67
75
|
onEnd: (e: TouchEvent & MouseEvent) => void;
|
|
68
76
|
finishDrop: () => void;
|
|
77
|
+
cancelKeyboardPick: () => void;
|
|
78
|
+
commitKeyboardReorder: () => void;
|
|
79
|
+
advanceTabFocusFromActiveElement: (shiftKey: boolean) => void;
|
|
69
80
|
onKeyDown: (e: React.KeyboardEvent) => void;
|
|
70
81
|
render(): React.JSX.Element;
|
|
71
82
|
}
|
|
@@ -5,6 +5,7 @@ export declare type ContextProps = {
|
|
|
5
5
|
parentListRef?: React.RefObject<HTMLDivElement>;
|
|
6
6
|
menuID?: string;
|
|
7
7
|
triggerID?: string;
|
|
8
|
+
parentMenuTriggerRef?: React.RefObject<HTMLButtonElement>;
|
|
8
9
|
};
|
|
9
10
|
export declare const SubMenuContext: React.Context<ContextProps>;
|
|
10
11
|
export default SubMenuContext;
|
|
@@ -12,6 +12,8 @@ export interface VerticalNavProps extends BaseProps {
|
|
|
12
12
|
customItemRenderer?: (props: MenuItemProps) => JSX.Element;
|
|
13
13
|
customOptionRenderer?: (props: MenuItemProps) => JSX.Element;
|
|
14
14
|
showTooltip: boolean;
|
|
15
|
+
'aria-label'?: string;
|
|
16
|
+
'aria-labelledby'?: string;
|
|
15
17
|
}
|
|
16
18
|
export declare const VerticalNav: {
|
|
17
19
|
(props: VerticalNavProps): React.JSX.Element;
|