@innovaccer/design-system 4.25.0 → 4.26.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 +66 -0
- 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/common.type.d.ts +1 -1
- package/dist/core/components/atoms/avatar/Avatar.d.ts +4 -0
- package/dist/core/components/atoms/avatarSelection/avatarsSelection/SelectionAvatar.d.ts +5 -0
- package/dist/core/components/atoms/dropdown/DropdownButton.d.ts +1 -0
- package/dist/core/components/organisms/grid/utility.d.ts +2 -1
- package/dist/esm/index.js +278 -217
- package/dist/gzip/index.js +1 -1
- package/dist/gzip/index.js.gz +0 -0
- package/dist/index.js +276 -226
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/tsconfig.type.tsbuildinfo +26 -26
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare type FileStatus = 'uploading' | 'completed' | 'error';
|
|
|
6
6
|
export declare type FooterOptions = {
|
|
7
7
|
actions: OverlayFooterProps['actions'];
|
|
8
8
|
};
|
|
9
|
-
export declare type AutoComplete = '
|
|
9
|
+
export declare type AutoComplete = NonNullable<React.InputHTMLAttributes<HTMLInputElement>['autoComplete']>;
|
|
10
10
|
export declare type NumberRange = [number, number];
|
|
11
11
|
export declare type ChangeEvent = React.ChangeEvent<HTMLInputElement>;
|
|
12
12
|
export declare type TextColor = 'white' | 'primary' | 'secondary' | 'success' | 'alert' | 'warning' | 'accent1' | 'accent2' | 'accent3' | 'accent4' | 'inverse' | 'primary-dark' | 'secondary-dark' | 'success-dark' | 'alert-dark' | 'warning-dark' | 'accent1-dark' | 'accent2-dark' | 'accent3-dark' | 'accent4-dark' | 'primary-darker' | 'success-darker' | 'alert-darker' | 'warning-darker' | 'accent1-darker' | 'accent2-darker' | 'accent3-darker' | 'accent4-darker' | 'primary-light' | 'secondary-light' | 'success-light' | 'alert-light' | 'warning-light' | 'accent1-light' | 'accent2-light' | 'accent3-light' | 'accent4-light' | 'inverse-light' | 'primary-lighter' | 'secondary-lighter' | 'success-lighter' | 'alert-lighter' | 'warning-lighter' | 'accent1-lighter' | 'accent2-lighter' | 'accent3-lighter' | 'accent4-lighter' | 'inverse-lighter' | 'primary-lightest' | 'secondary-lightest' | 'success-lightest' | 'alert-lightest' | 'warning-lightest' | 'accent1-lightest' | 'accent2-lightest' | 'accent3-lightest' | 'accent4-lightest' | 'inverse-lightest' | 'primary-shadow' | 'secondary-shadow' | 'success-shadow' | 'alert-shadow' | 'warning-shadow' | 'accent1-shadow' | 'accent2-shadow' | 'accent3-shadow' | 'accent4-shadow' | 'inverse-shadow';
|
|
@@ -17,6 +17,10 @@ export interface AvatarProps extends BaseProps {
|
|
|
17
17
|
role?: string;
|
|
18
18
|
tabIndex?: number;
|
|
19
19
|
'aria-label'?: string;
|
|
20
|
+
'aria-checked'?: boolean | 'true' | 'false' | 'mixed';
|
|
21
|
+
'aria-disabled'?: boolean;
|
|
22
|
+
onClick?: (event: React.MouseEvent<HTMLSpanElement>) => void;
|
|
23
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLSpanElement>) => void;
|
|
20
24
|
presence?: TPresence;
|
|
21
25
|
status?: React.ReactNode;
|
|
22
26
|
strokeColor?: string;
|
|
@@ -13,6 +13,11 @@ interface SelectionAvatarProps {
|
|
|
13
13
|
tooltipPosition?: TooltipProps['position'];
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
tooltipSuffix?: string;
|
|
16
|
+
'aria-label'?: string;
|
|
17
|
+
'aria-checked'?: boolean;
|
|
18
|
+
'aria-disabled'?: boolean;
|
|
19
|
+
onClick?: (event: React.MouseEvent<HTMLSpanElement>) => void;
|
|
20
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLSpanElement>) => void;
|
|
16
21
|
}
|
|
17
22
|
export declare const SelectionAvatar: (props: SelectionAvatarProps) => React.JSX.Element;
|
|
18
23
|
export default SelectionAvatar;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { IconType } from "../../../common.type";
|
|
3
3
|
export declare type DropDownButtonSize = 'tiny' | 'regular';
|
|
4
4
|
export interface TriggerProps {
|
|
5
|
+
id?: string;
|
|
5
6
|
triggerSize?: DropDownButtonSize;
|
|
6
7
|
icon?: string;
|
|
7
8
|
iconType?: IconType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Data, Schema } from "./Grid";
|
|
1
|
+
import { Data, Schema, SortType } from "./Grid";
|
|
2
2
|
import { GridProps } from "../../../index.type";
|
|
3
3
|
export * from "./columnUtility";
|
|
4
4
|
export * from "./rowUtility";
|
|
@@ -11,4 +11,5 @@ export declare const getSelectAll: (tableData: Data, selectDisabledRow?: boolean
|
|
|
11
11
|
export declare const hasSchema: (schema: Schema) => boolean;
|
|
12
12
|
export declare const getSchema: (schema: GridProps['schema'], loading: GridProps['loading'], loaderSchema: GridProps['loaderSchema']) => GridProps['schema'];
|
|
13
13
|
export declare const getPluralSuffix: (count: number) => "" | "s";
|
|
14
|
+
export declare const getSortButtonAriaLabel: (displayName: string, sorted: SortType | null) => string;
|
|
14
15
|
export declare const isScrollAtTop: (enableRowVirtualization?: boolean | undefined, ref?: HTMLDivElement | undefined) => boolean;
|