@innovaccer/design-system 2.21.0 → 2.22.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/css/dist/MaterialSymbolsRounded.woff2 +0 -0
  3. package/css/dist/index.css +101 -15
  4. package/css/dist/index.css.map +1 -1
  5. package/css/gulpfile.js +1 -1
  6. package/css/material-design-icons/iconfont/MaterialSymbolsRounded.woff2 +0 -0
  7. package/css/material-design-icons/iconfont/material-icons.css +9 -15
  8. package/css/src/components/selectionCard.css +91 -0
  9. package/dist/.lib/tsconfig.type.tsbuildinfo +138 -64
  10. package/dist/core/common.type.d.ts +1 -6
  11. package/dist/core/components/atoms/_chip/index.d.ts +2 -2
  12. package/dist/core/components/atoms/button/Button.d.ts +2 -2
  13. package/dist/core/components/atoms/chip/Chip.d.ts +2 -2
  14. package/dist/core/components/atoms/dropdown/Dropdown.d.ts +3 -0
  15. package/dist/core/components/atoms/dropdown/DropdownButton.d.ts +2 -2
  16. package/dist/core/components/atoms/dropdown/DropdownList.d.ts +8 -0
  17. package/dist/core/components/atoms/dropdown/ErrorTemplate.d.ts +9 -0
  18. package/dist/core/components/atoms/dropdown/option/index.d.ts +2 -2
  19. package/dist/core/components/atoms/icon/Icon.d.ts +0 -7
  20. package/dist/core/components/atoms/input/Input.d.ts +2 -2
  21. package/dist/core/components/atoms/input/actionButton/ActionButton.d.ts +2 -2
  22. package/dist/core/components/atoms/linkButton/LinkButton.d.ts +2 -2
  23. package/dist/core/components/atoms/metaList/Meta.d.ts +2 -2
  24. package/dist/core/components/atoms/metricInput/MetricInput.d.ts +2 -2
  25. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +15 -15
  26. package/dist/core/components/atoms/selectionCard/SelectionCard.d.ts +23 -0
  27. package/dist/core/components/atoms/selectionCard/hooks/index.d.ts +2 -0
  28. package/dist/core/components/atoms/selectionCard/hooks/useMultiSelect.d.ts +6 -0
  29. package/dist/core/components/atoms/selectionCard/hooks/useSingleSelect.d.ts +6 -0
  30. package/dist/core/components/atoms/selectionCard/index.d.ts +2 -0
  31. package/dist/core/components/molecules/chipInput/ChipInput.d.ts +1 -1
  32. package/dist/core/components/molecules/tabs/Tabs.d.ts +2 -2
  33. package/dist/core/index.d.ts +1 -0
  34. package/dist/core/index.type.d.ts +1 -0
  35. package/dist/core/utils/navigationHelper.d.ts +2 -2
  36. package/dist/index.esm.js +355 -256
  37. package/dist/index.js +263 -181
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.umd.js +1 -1
  40. package/dist/index.umd.js.br +0 -0
  41. package/dist/index.umd.js.gz +0 -0
  42. package/package.json +1 -1
  43. package/css/dist/MaterialSymbolsOutlined.ttf +0 -0
  44. package/css/dist/MaterialSymbolsRounded.ttf +0 -0
  45. package/css/material-design-icons/iconfont/MaterialSymbolsOutlined.ttf +0 -0
  46. package/css/material-design-icons/iconfont/MaterialSymbolsRounded.ttf +0 -0
  47. package/dist/core/components/atoms/icon/utils.d.ts +0 -7
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { BaseProps } from "../../../utils/types";
3
- import { FontVariationType } from "../../../common.type";
3
+ import { IconType } from "../../../common.type";
4
4
  export declare type ChipType = 'action' | 'selection' | 'input';
5
5
  export declare type Name = number | string | object;
6
6
  export interface ChipProps extends BaseProps {
7
7
  label: string | React.ReactElement;
8
8
  labelPrefix?: string;
9
9
  icon?: string;
10
- iconVariations?: FontVariationType;
10
+ iconType?: IconType;
11
11
  clearButton?: boolean;
12
12
  disabled?: boolean;
13
13
  selected?: boolean;
@@ -8,6 +8,7 @@ declare type fetchOptionsFunction = (searchTerm: string) => Promise<{
8
8
  count: number;
9
9
  options: OptionSchema[];
10
10
  }>;
11
+ export declare type ErrorType = 'DEFAULT' | 'NO_RECORDS_FOUND' | 'FAILED_TO_FETCH';
11
12
  export declare type EventType = 'select-option' | 'deselect-option' | 'select-all' | 'deselect-all' | 'clear-all' | 'apply-selected' | 'cancel-selected';
12
13
  interface ControlledProps {
13
14
  selected?: OptionSchema[];
@@ -60,6 +61,7 @@ interface DropdownState {
60
61
  tempSelected: OptionSchema[];
61
62
  previousSelected: OptionSchema[];
62
63
  scrollIndex?: number;
64
+ errorType: ErrorType;
63
65
  }
64
66
  export declare class Dropdown extends React.Component<DropdownProps, DropdownState> {
65
67
  staticLimit: number;
@@ -88,6 +90,7 @@ export declare class Dropdown extends React.Component<DropdownProps, DropdownSta
88
90
  onSelect: (option: OptionSchema, checked: boolean) => void;
89
91
  onSelectAll: (event: ChangeEvent) => void;
90
92
  debounceSearch: import("throttle-debounce").throttle<() => void>;
93
+ reload: () => void;
91
94
  debounceClear: import("throttle-debounce").throttle<() => void>;
92
95
  onClearOptions: () => void;
93
96
  onTogglePopper: (type: string) => void;
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
- import { FontVariationType } from "../../../common.type";
2
+ import { IconType } from "../../../common.type";
3
3
  export declare type DropDownButtonSize = 'tiny' | 'regular';
4
4
  export interface TriggerProps {
5
5
  triggerSize?: DropDownButtonSize;
6
6
  icon?: string;
7
- iconVariations?: FontVariationType;
7
+ iconType?: IconType;
8
8
  placeholder?: string;
9
9
  inlineLabel?: string;
10
10
  disabled?: boolean;
@@ -4,6 +4,7 @@ import { TriggerProps } from "./DropdownButton";
4
4
  import { OptionRendererProps, OptionSchema } from "./option";
5
5
  import { BaseProps } from "../../../utils/types";
6
6
  import { ChangeEvent } from "../../../common.type";
7
+ import { ErrorType } from "./Dropdown";
7
8
  export declare type DropdownAlign = 'left' | 'right';
8
9
  export declare type OptionType = 'DEFAULT' | 'WITH_ICON' | 'WITH_META' | 'ICON_WITH_META';
9
10
  export interface Selected {
@@ -20,9 +21,13 @@ interface PopoverOptions {
20
21
  boundaryElement?: PopoverProps['boundaryElement'];
21
22
  }
22
23
  declare type TriggerAndOptionProps = TriggerProps & OptionRendererProps;
24
+ export interface ErrorTemplateProps {
25
+ errorType?: ErrorType;
26
+ }
23
27
  export interface DropdownListProps extends TriggerAndOptionProps {
24
28
  align?: DropdownAlign;
25
29
  noResultMessage?: string;
30
+ errorTemplate?: React.FunctionComponent<ErrorTemplateProps>;
26
31
  selectAllLabel?: string;
27
32
  footerLabel?: string;
28
33
  selectedSectionLabel?: string;
@@ -68,6 +73,9 @@ interface OptionsProps extends DropdownListProps, BaseProps {
68
73
  onSearchChange?: (searchText: string) => void;
69
74
  onOptionSelect: (selected: any[] | any) => void;
70
75
  onSelect: (option: OptionSchema, checked: boolean) => void;
76
+ updateOptions: () => void;
77
+ errorType: ErrorType;
78
+ errorTemplate?: React.FunctionComponent<ErrorTemplateProps>;
71
79
  }
72
80
  export declare const usePrevious: (value: any) => undefined;
73
81
  declare const DropdownList: {
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { ErrorType } from "./Dropdown";
3
+ interface ErrorTemplateProps {
4
+ dropdownStyle: React.CSSProperties;
5
+ errorType: ErrorType;
6
+ updateOptions: () => void;
7
+ }
8
+ export declare const ErrorTemplate: React.FC<ErrorTemplateProps>;
9
+ export {};
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { MetaListProps, IconProps, TextProps } from "../../../../index.type";
3
3
  import { OptionType } from "../DropdownList";
4
- import { ChangeEvent, FontVariationType } from "../../../../common.type";
4
+ import { ChangeEvent, IconType } from "../../../../common.type";
5
5
  export declare type ClickEvent = React.MouseEvent<HTMLDivElement>;
6
6
  export interface OptionRendererProps {
7
7
  optionRenderer?: (props: OptionProps) => React.ReactElement;
@@ -16,7 +16,7 @@ export interface OptionSchema extends Record<string, any> {
16
16
  selected?: boolean;
17
17
  disabled?: boolean;
18
18
  group?: string;
19
- iconVariations?: FontVariationType;
19
+ iconType?: IconType;
20
20
  }
21
21
  export interface OptionTypeProps {
22
22
  className: string;
@@ -2,18 +2,11 @@ import * as React from 'react';
2
2
  import { BaseProps } from "../../../utils/types";
3
3
  export declare type IconAppearance = 'default' | 'destructive' | 'white' | 'subtle' | 'disabled' | 'info' | 'alert' | 'warning' | 'success' | 'primary_lighter' | 'primary' | 'primary_dark' | 'alert_lighter' | 'alert_dark' | 'warning_lighter' | 'warning_dark' | 'success_lighter' | 'success_dark' | 'accent1' | 'accent1_lighter' | 'accent1_dark' | 'accent2' | 'accent2_lighter' | 'accent2_dark' | 'accent3' | 'accent3_lighter' | 'accent3_dark' | 'accent4' | 'accent4_lighter' | 'accent4_dark' | 'inverse';
4
4
  export declare type IconType = 'filled' | 'outlined' | 'outline' | 'rounded' | 'round' | 'two-tone' | 'sharp';
5
- export declare type FontVariationType = {
6
- fill?: number;
7
- weight?: number;
8
- grade?: number;
9
- opticalSize?: number;
10
- };
11
5
  export interface IconProps extends BaseProps {
12
6
  name?: string;
13
7
  size: number;
14
8
  type?: IconType;
15
9
  appearance?: IconAppearance;
16
- variations?: FontVariationType;
17
10
  onClick?: (e: React.MouseEvent<HTMLElement>) => void;
18
11
  onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => void;
19
12
  children?: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { IconProps } from "../../../index.type";
3
3
  import { BaseHtmlProps, BaseProps } from "../../../utils/types";
4
- import { AutoComplete, FontVariationType } from "../../../common.type";
4
+ import { AutoComplete, IconType } from "../../../common.type";
5
5
  export declare type InputType = 'text' | 'password' | 'number' | 'email' | 'tel' | 'url';
6
6
  export declare type InputSize = 'tiny' | 'regular' | 'large';
7
7
  export interface InputProps extends BaseProps, BaseHtmlProps<HTMLInputElement> {
@@ -12,7 +12,7 @@ export interface InputProps extends BaseProps, BaseHtmlProps<HTMLInputElement> {
12
12
  placeholder?: string;
13
13
  size?: InputSize;
14
14
  icon?: string;
15
- iconVariations?: FontVariationType;
15
+ iconType?: IconType;
16
16
  inlineLabel?: string;
17
17
  disabled?: boolean;
18
18
  required?: boolean;
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { BaseProps } from "../../../../utils/types";
3
- import { FontVariationType } from "../../../../common.type";
3
+ import { IconType } from "../../../../common.type";
4
4
  export declare type ActionButtonType = 'outlined' | 'rounded';
5
5
  export interface ActionButtonProps extends BaseProps {
6
6
  name?: string;
7
7
  size: number;
8
8
  type?: ActionButtonType;
9
- iconVariations?: FontVariationType;
9
+ iconType?: IconType;
10
10
  onClick?: (e: React.MouseEvent<HTMLElement>) => void;
11
11
  onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => void;
12
12
  children?: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { BaseProps, BaseHtmlProps } from "../../../utils/types";
3
- import { FontVariationType } from "../../../common.type";
3
+ import { IconType } from "../../../common.type";
4
4
  export declare type ButtonType = 'button' | 'submit' | 'reset';
5
5
  export declare type LinkButtonSize = 'tiny' | 'regular';
6
6
  export declare type IconAlignment = 'left' | 'right';
@@ -10,7 +10,7 @@ export interface LinkButtonProps extends BaseProps, BaseHtmlProps<HTMLButtonElem
10
10
  disabled?: boolean;
11
11
  icon?: string;
12
12
  iconAlign?: IconAlignment;
13
- iconVariations?: FontVariationType;
13
+ iconType?: IconType;
14
14
  children: React.ReactText;
15
15
  tabIndex?: number;
16
16
  autoFocus?: boolean;
@@ -1,10 +1,10 @@
1
1
  import { MetaSize } from "./MetaList";
2
- import { FontVariationType } from "../../../common.type";
2
+ import { IconType } from "../../../common.type";
3
3
  export interface MetaProps {
4
4
  label: string;
5
5
  icon?: string;
6
6
  size?: MetaSize;
7
- iconVariations?: FontVariationType;
7
+ iconType?: IconType;
8
8
  }
9
9
  export declare const Meta: {
10
10
  (props: MetaProps): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { BaseHtmlProps, BaseProps } from "../../../utils/types";
3
- import { AutoComplete, FontVariationType } from "../../../common.type";
3
+ import { AutoComplete, IconType } from "../../../common.type";
4
4
  export declare type MetricInputSize = 'regular' | 'large';
5
5
  export interface MetricInputProps extends BaseProps, BaseHtmlProps<HTMLInputElement> {
6
6
  name?: string;
@@ -9,7 +9,7 @@ export interface MetricInputProps extends BaseProps, BaseHtmlProps<HTMLInputElem
9
9
  placeholder?: string;
10
10
  size?: MetricInputSize;
11
11
  icon?: string;
12
- iconVariations?: FontVariationType;
12
+ iconType?: IconType;
13
13
  prefix?: string;
14
14
  suffix?: string;
15
15
  disabled?: boolean;
@@ -113,7 +113,7 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
113
113
  borderEndEndRadius?: string | number | (string & {}) | undefined;
114
114
  borderEndStartRadius?: string | number | (string & {}) | undefined;
115
115
  borderImageOutset?: string | number | (string & {}) | (number & {}) | undefined;
116
- borderImageRepeat?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "round" | "space" | "stretch" | undefined;
116
+ borderImageRepeat?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "round" | "stretch" | "space" | undefined;
117
117
  borderImageSlice?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | (number & {}) | undefined;
118
118
  borderImageSource?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | undefined;
119
119
  borderImageWidth?: string | number | (string & {}) | (number & {}) | undefined;
@@ -249,7 +249,7 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
249
249
  marginTop?: string | number | (string & {}) | undefined;
250
250
  maskBorderMode?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "alpha" | "luminance" | undefined;
251
251
  maskBorderOutset?: string | number | (string & {}) | (number & {}) | undefined;
252
- maskBorderRepeat?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "round" | "space" | "stretch" | undefined;
252
+ maskBorderRepeat?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "round" | "stretch" | "space" | undefined;
253
253
  maskBorderSlice?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | (number & {}) | undefined;
254
254
  maskBorderSource?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | undefined;
255
255
  maskBorderWidth?: string | number | (string & {}) | (number & {}) | undefined;
@@ -276,7 +276,7 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
276
276
  motionDistance?: string | number | (string & {}) | undefined;
277
277
  motionPath?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "border-box" | "content-box" | "padding-box" | "fill-box" | "margin-box" | "stroke-box" | "view-box" | undefined;
278
278
  motionRotation?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto" | "reverse" | undefined;
279
- objectFit?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "fill" | "contain" | "cover" | "scale-down" | undefined;
279
+ objectFit?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "contain" | "cover" | "fill" | "scale-down" | undefined;
280
280
  objectPosition?: string | number | (string & {}) | undefined;
281
281
  offsetAnchor?: string | number | (string & {}) | undefined;
282
282
  offsetDistance?: string | number | (string & {}) | undefined;
@@ -315,11 +315,11 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
315
315
  pageBreakAfter?: "left" | "right" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto" | "always" | "avoid" | "recto" | "verso" | undefined;
316
316
  pageBreakBefore?: "left" | "right" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto" | "always" | "avoid" | "recto" | "verso" | undefined;
317
317
  pageBreakInside?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto" | "avoid" | undefined;
318
- paintOrder?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "fill" | "normal" | "markers" | "stroke" | undefined;
318
+ paintOrder?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "normal" | "fill" | "markers" | "stroke" | undefined;
319
319
  perspective?: string | number | undefined;
320
320
  perspectiveOrigin?: string | number | (string & {}) | undefined;
321
321
  placeContent?: "start" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "center" | "end" | "space-around" | "space-between" | "space-evenly" | "stretch" | "flex-end" | "flex-start" | "baseline" | "normal" | undefined;
322
- pointerEvents?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "auto" | "all" | "fill" | "visible" | "stroke" | "painted" | "visibleFill" | "visiblePainted" | "visibleStroke" | undefined;
322
+ pointerEvents?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "auto" | "all" | "visible" | "fill" | "stroke" | "painted" | "visibleFill" | "visiblePainted" | "visibleStroke" | undefined;
323
323
  position?: "fixed" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "-webkit-sticky" | "absolute" | "relative" | "static" | "sticky" | undefined;
324
324
  quotes?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "auto" | undefined;
325
325
  resize?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "inline" | "both" | "horizontal" | "vertical" | "block" | undefined;
@@ -427,7 +427,7 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
427
427
  borderBlockStart?: string | number | (string & {}) | undefined;
428
428
  borderBottom?: string | number | (string & {}) | undefined;
429
429
  borderColor?: "white" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "transparent" | "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "whitesmoke" | "yellow" | "yellowgreen" | "ActiveBorder" | "ActiveCaption" | "AppWorkspace" | "Background" | "ButtonFace" | "ButtonHighlight" | "ButtonShadow" | "ButtonText" | "CaptionText" | "GrayText" | "Highlight" | "HighlightText" | "InactiveBorder" | "InactiveCaption" | "InactiveCaptionText" | "InfoBackground" | "InfoText" | "Menu" | "MenuText" | "Scrollbar" | "ThreeDDarkShadow" | "ThreeDFace" | "ThreeDHighlight" | "ThreeDLightShadow" | "ThreeDShadow" | "Window" | "WindowFrame" | "WindowText" | "currentcolor" | undefined;
430
- borderImage?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "space" | "stretch" | undefined;
430
+ borderImage?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "stretch" | "space" | undefined;
431
431
  borderInline?: string | number | (string & {}) | undefined;
432
432
  borderInlineEnd?: string | number | (string & {}) | undefined;
433
433
  borderInlineStart?: string | number | (string & {}) | undefined;
@@ -452,7 +452,7 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
452
452
  listStyle?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "inside" | "outside" | undefined;
453
453
  margin?: string | number | (string & {}) | undefined;
454
454
  mask?: string | number | (string & {}) | undefined;
455
- maskBorder?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "space" | "stretch" | "alpha" | "luminance" | undefined;
455
+ maskBorder?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "stretch" | "space" | "alpha" | "luminance" | undefined;
456
456
  motion?: string | number | (string & {}) | undefined;
457
457
  offset?: string | number | (string & {}) | undefined;
458
458
  outline?: string | number | (string & {}) | undefined;
@@ -638,7 +638,7 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
638
638
  WebkitMarginStart?: string | number | (string & {}) | undefined;
639
639
  WebkitMaskAttachment?: "fixed" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "scroll" | "local" | undefined;
640
640
  WebkitMaskBoxImageOutset?: string | number | (string & {}) | (number & {}) | undefined;
641
- WebkitMaskBoxImageRepeat?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "round" | "space" | "stretch" | undefined;
641
+ WebkitMaskBoxImageRepeat?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "round" | "stretch" | "space" | undefined;
642
642
  WebkitMaskBoxImageSlice?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | (number & {}) | undefined;
643
643
  WebkitMaskBoxImageSource?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | undefined;
644
644
  WebkitMaskBoxImageWidth?: string | number | (string & {}) | (number & {}) | undefined;
@@ -691,7 +691,7 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
691
691
  WebkitUserSelect?: "text" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "auto" | "all" | "contain" | "-moz-none" | "element" | undefined;
692
692
  WebkitWritingMode?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "horizontal-tb" | "sideways-lr" | "sideways-rl" | "vertical-lr" | "vertical-rl" | undefined;
693
693
  MozAnimation?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "both" | "normal" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear" | undefined;
694
- MozBorderImage?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "space" | "stretch" | undefined;
694
+ MozBorderImage?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "stretch" | "space" | undefined;
695
695
  MozColumnRule?: string | number | (string & {}) | undefined;
696
696
  MozColumns?: string | number | (string & {}) | (number & {}) | undefined;
697
697
  MozTransition?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "all" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear" | undefined;
@@ -704,14 +704,14 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
704
704
  msTransition?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "all" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear" | undefined;
705
705
  WebkitAnimation?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "both" | "normal" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear" | undefined;
706
706
  WebkitBorderBefore?: string | number | (string & {}) | undefined;
707
- WebkitBorderImage?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "space" | "stretch" | undefined;
707
+ WebkitBorderImage?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "stretch" | "space" | undefined;
708
708
  WebkitBorderRadius?: string | number | (string & {}) | undefined;
709
709
  WebkitColumnRule?: string | number | (string & {}) | undefined;
710
710
  WebkitColumns?: string | number | (string & {}) | (number & {}) | undefined;
711
711
  WebkitFlex?: string | number | (string & {}) | (number & {}) | undefined;
712
712
  WebkitFlexFlow?: "wrap" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | "nowrap" | "wrap-reverse" | undefined;
713
713
  WebkitMask?: string | number | (string & {}) | undefined;
714
- WebkitMaskBoxImage?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "space" | "stretch" | "alpha" | "luminance" | undefined;
714
+ WebkitMaskBoxImage?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "stretch" | "space" | "alpha" | "luminance" | undefined;
715
715
  WebkitTextEmphasis?: "open" | "circle" | "white" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "transparent" | "filled" | "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "whitesmoke" | "yellow" | "yellowgreen" | "ActiveBorder" | "ActiveCaption" | "AppWorkspace" | "Background" | "ButtonFace" | "ButtonHighlight" | "ButtonShadow" | "ButtonText" | "CaptionText" | "GrayText" | "Highlight" | "HighlightText" | "InactiveBorder" | "InactiveCaption" | "InactiveCaptionText" | "InfoBackground" | "InfoText" | "Menu" | "MenuText" | "Scrollbar" | "ThreeDDarkShadow" | "ThreeDFace" | "ThreeDHighlight" | "ThreeDLightShadow" | "ThreeDShadow" | "Window" | "WindowFrame" | "WindowText" | "currentcolor" | "dot" | "double-circle" | "sesame" | "triangle" | undefined;
716
716
  WebkitTextStroke?: string | number | (string & {}) | undefined;
717
717
  WebkitTransition?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "all" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear" | undefined;
@@ -729,7 +729,7 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
729
729
  gridColumnGap?: string | number | (string & {}) | undefined;
730
730
  gridGap?: string | number | (string & {}) | undefined;
731
731
  gridRowGap?: string | number | (string & {}) | undefined;
732
- imeMode?: "disabled" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto" | "active" | "normal" | "inactive" | undefined;
732
+ imeMode?: "disabled" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto" | "normal" | "active" | "inactive" | undefined;
733
733
  offsetBlock?: string | number | (string & {}) | undefined;
734
734
  offsetBlockEnd?: string | number | (string & {}) | undefined;
735
735
  offsetBlockStart?: string | number | (string & {}) | undefined;
@@ -788,7 +788,7 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
788
788
  MozTextDecorationLine?: "blink" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "grammar-error" | "line-through" | "overline" | "spelling-error" | "underline" | undefined;
789
789
  MozTextDecorationStyle?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "solid" | "wavy" | undefined;
790
790
  MozUserInput?: "disabled" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "auto" | "enabled" | undefined;
791
- msImeMode?: "disabled" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto" | "active" | "normal" | "inactive" | undefined;
791
+ msImeMode?: "disabled" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto" | "normal" | "active" | "inactive" | undefined;
792
792
  msScrollbarTrackColor?: "white" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "transparent" | "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "whitesmoke" | "yellow" | "yellowgreen" | "ActiveBorder" | "ActiveCaption" | "AppWorkspace" | "Background" | "ButtonFace" | "ButtonHighlight" | "ButtonShadow" | "ButtonText" | "CaptionText" | "GrayText" | "Highlight" | "HighlightText" | "InactiveBorder" | "InactiveCaption" | "InactiveCaptionText" | "InfoBackground" | "InfoText" | "Menu" | "MenuText" | "Scrollbar" | "ThreeDDarkShadow" | "ThreeDFace" | "ThreeDHighlight" | "ThreeDLightShadow" | "ThreeDShadow" | "Window" | "WindowFrame" | "WindowText" | "currentcolor" | undefined;
793
793
  OAnimation?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "both" | "normal" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear" | undefined;
794
794
  OAnimationDelay?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | undefined;
@@ -800,8 +800,8 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
800
800
  OAnimationPlayState?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "paused" | "running" | undefined;
801
801
  OAnimationTimingFunction?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear" | undefined;
802
802
  OBackgroundSize?: string | number | (string & {}) | undefined;
803
- OBorderImage?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "space" | "stretch" | undefined;
804
- OObjectFit?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "fill" | "contain" | "cover" | "scale-down" | undefined;
803
+ OBorderImage?: "repeat" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | (number & {}) | "round" | "stretch" | "space" | undefined;
804
+ OObjectFit?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "contain" | "cover" | "fill" | "scale-down" | undefined;
805
805
  OObjectPosition?: string | number | (string & {}) | undefined;
806
806
  OTabSize?: string | number | (string & {}) | (number & {}) | undefined;
807
807
  OTextOverflow?: (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "clip" | "ellipsis" | undefined;
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { BaseProps, BaseHtmlProps } from "../../../utils/types";
3
+ import { useMultiSelect, useSingleSelect } from "./hooks";
4
+ declare type ClickEventType = React.MouseEvent<HTMLDivElement> | React.KeyboardEvent;
5
+ export interface SelectionCardProps extends BaseProps, BaseHtmlProps<HTMLDivElement> {
6
+ children: React.ReactNode;
7
+ id: string;
8
+ cardValue?: object;
9
+ disabled?: boolean;
10
+ onClick?: (event: ClickEventType, id?: string, cardValue?: object) => void;
11
+ overlayZIndex?: number;
12
+ selected?: boolean;
13
+ }
14
+ export declare const SelectionCard: {
15
+ (props: SelectionCardProps): JSX.Element;
16
+ defaultProps: {
17
+ disabled: boolean;
18
+ overlayZIndex: number;
19
+ };
20
+ useMultiSelect: typeof useMultiSelect;
21
+ useSingleSelect: typeof useSingleSelect;
22
+ };
23
+ export default SelectionCard;
@@ -0,0 +1,2 @@
1
+ export * from "./useMultiSelect";
2
+ export * from "./useSingleSelect";
@@ -0,0 +1,6 @@
1
+ export declare function useMultiSelect(): {
2
+ selectedCardIds: string[];
3
+ selectedCardValues: Map<any, any>;
4
+ isCardSelected: (id: string) => boolean;
5
+ updateCardSelection: (id: string, value?: object | undefined) => void;
6
+ };
@@ -0,0 +1,6 @@
1
+ export declare function useSingleSelect(): {
2
+ selectedCardIds: string[];
3
+ selectedCardValues: object[];
4
+ isCardSelected: (id: string) => boolean;
5
+ updateCardSelection: (id: string, value?: object | undefined) => void;
6
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from "./SelectionCard";
2
+ export * from "./SelectionCard";
@@ -4,7 +4,7 @@ import { BaseProps } from "../../../utils/types";
4
4
  declare type ChipOptions = {
5
5
  icon?: ChipProps['icon'];
6
6
  type?: ChipProps['type'];
7
- iconVariations?: ChipProps['iconVariations'];
7
+ iconType?: ChipProps['iconType'];
8
8
  clearButton?: ChipProps['clearButton'];
9
9
  onClick?: (value: string, index: number) => void;
10
10
  };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { BaseProps, SingleOrArray } from "../../../utils/types";
3
- import { FontVariationType } from "../../../common.type";
3
+ import { IconType } from "../../../common.type";
4
4
  interface TabInfo {
5
5
  label: string;
6
6
  activeIndex: number;
@@ -14,7 +14,7 @@ export interface TabConfig {
14
14
  className?: string;
15
15
  isDismissible?: boolean;
16
16
  onDismiss?: (tabInfo: TabInfo) => void;
17
- iconVariations?: FontVariationType;
17
+ iconType?: IconType;
18
18
  }
19
19
  export interface TabsProps extends BaseProps {
20
20
  activeIndex?: number;
@@ -85,4 +85,5 @@ export { Divider } from "./components/atoms/divider";
85
85
  export { HelpText } from "./components/atoms/helpText";
86
86
  export { LinkButton } from "./components/atoms/linkButton";
87
87
  export { ActionCard } from "./components/atoms/actionCard";
88
+ export { SelectionCard } from "./components/atoms/selectionCard";
88
89
  export { version } from "../package.json";
@@ -83,3 +83,4 @@ export { DividerProps } from "./components/atoms/divider";
83
83
  export { HelpTextProps } from "./components/atoms/helpText";
84
84
  export { LinkButtonProps } from "./components/atoms/linkButton";
85
85
  export { ActionCardProps } from "./components/atoms/actionCard";
86
+ export { SelectionCardProps } from "./components/atoms/selectionCard";
@@ -1,4 +1,4 @@
1
- import { FontVariationType } from "../common.type";
1
+ import { IconType } from "../common.type";
2
2
  export declare type Menu = {
3
3
  name: string;
4
4
  label: string;
@@ -8,7 +8,7 @@ export declare type Menu = {
8
8
  count?: number;
9
9
  disabled?: boolean;
10
10
  subMenu?: Menu[];
11
- iconVariations?: FontVariationType;
11
+ iconType?: IconType;
12
12
  };
13
13
  export declare type ActiveMenu = ({
14
14
  name: string;