@innovaccer/design-system 2.17.0 → 2.18.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.
@@ -9,7 +9,7 @@
9
9
  overflow: hidden;
10
10
  text-transform: uppercase;
11
11
  border-radius: 50%;
12
- cursor: pointer;
12
+ cursor: default;
13
13
  }
14
14
 
15
15
  .Avatar--regular {
@@ -22,11 +22,11 @@
22
22
  }
23
23
 
24
24
  .Calendar-month--small {
25
- height: 192px;
25
+ height: 200px;
26
26
  }
27
27
 
28
28
  .Calendar-year--small {
29
- height: 192px;
29
+ height: 200px;
30
30
  }
31
31
 
32
32
  .Calendar--large {
@@ -42,7 +42,7 @@
42
42
  }
43
43
 
44
44
  .Calendar-month--large {
45
- height: 272px;
45
+ height: 276px;
46
46
  }
47
47
 
48
48
  .Calendar-year--large {
@@ -62,7 +62,7 @@
62
62
  display: flex;
63
63
  justify-content: center;
64
64
  align-items: center;
65
- padding-bottom: var(--spacing-m);
65
+ padding-bottom: var(--spacing);
66
66
  }
67
67
 
68
68
  .Calendar-headerIcon {
@@ -95,7 +95,7 @@
95
95
  display: flex;
96
96
  flex-direction: column;
97
97
  flex-grow: 1;
98
- justify-content: space-around;
98
+ justify-content: space-between;
99
99
  }
100
100
 
101
101
  .Calendar-valueRow {
@@ -1,26 +1,21 @@
1
1
  .ChipInput {
2
- box-sizing: border-box;
3
2
  display: flex;
4
3
  border-radius: var(--spacing-m);
5
- border: var(--border);
6
- padding-left: var(--spacing-s);
7
- padding-top: var(--spacing-xs);
8
- padding-bottom: var(--spacing-xs);
4
+ box-shadow: inset 0 0 0 var(--spacing-xs) var(--secondary);
5
+ padding-left: 10px;
6
+ padding-right: 10px;
9
7
  background: var(--white);
10
8
  cursor: text;
11
9
  flex: 100%;
12
10
  }
13
11
 
14
- .ChipInput-wrapper {
15
- display: flex;
16
- flex: 100%;
17
- align-items: center;
18
- flex-wrap: wrap;
12
+ .ChipInput:focus,
13
+ .ChipInput:focus-visible {
14
+ outline: var(--spacing-xs) var(--primary);
19
15
  }
20
16
 
21
17
  .ChipInput:focus-within {
22
- border-color: var(--primary);
23
- box-shadow: var(--shadow-spread) var(--primary-shadow);
18
+ box-shadow: inset 0 0 0 var(--spacing-xs) var(--primary);
24
19
  }
25
20
 
26
21
  .ChipInput--disabled {
@@ -29,6 +24,22 @@
29
24
  pointer-events: none;
30
25
  }
31
26
 
27
+ .ChipInput--withChips {
28
+ padding-right: var(--spacing);
29
+ }
30
+
31
+ .ChipInput-wrapper {
32
+ display: flex;
33
+ flex: 100%;
34
+ align-items: center;
35
+ flex-wrap: wrap;
36
+ }
37
+
38
+ .ChipInput-border:focus-within {
39
+ border-radius: var(--spacing-m);
40
+ box-shadow: var(--shadow-spread) var(--primary-shadow);
41
+ }
42
+
32
43
  .ChipInput-input {
33
44
  border: none;
34
45
  outline: none;
@@ -38,17 +49,30 @@
38
49
  flex: 0px;
39
50
  box-sizing: border-box;
40
51
  height: var(--spacing-xl);
41
- margin-top: var(--spacing-s);
42
- margin-bottom: var(--spacing-s);
43
- padding-left: var(--spacing-m);
52
+ margin-top: var(--spacing-m);
53
+ margin-bottom: var(--spacing-m);
44
54
  font-family: var(--font-family);
45
55
  font-size: var(--font-size);
46
56
  }
47
57
 
48
58
  .ChipInput-icon {
49
59
  height: var(--spacing-2);
50
- margin-top: var(--spacing-m);
51
- padding-top: var(--spacing-s);
52
- margin-right: var(--spacing-l);
60
+ padding: var(--spacing-s);
61
+ margin-left: var(--spacing);
62
+ margin-top: 6px;
53
63
  cursor: pointer;
64
+ border-radius: 10px;
65
+ }
66
+
67
+ .ChipInput-icon:hover {
68
+ background-color: var(--secondary);
69
+ }
70
+
71
+ .ChipInput-icon:active {
72
+ background-color: var(--secondary-dark);
73
+ }
74
+
75
+ .ChipInput-icon:focus,
76
+ .ChipInput-icon:focus-visible {
77
+ outline: var(--spacing-s) solid var(--secondary-shadow);
54
78
  }
@@ -4,7 +4,7 @@
4
4
  display: flex;
5
5
  flex-direction: row;
6
6
  box-sizing: border-box;
7
-
7
+ word-break: break-word;
8
8
  width: 360px;
9
9
  border-radius: var(--spacing-m);
10
10
  padding-left: var(--spacing-2);
@@ -131,6 +131,7 @@ body {
131
131
  .Label-text {
132
132
  line-height: var(--font-height-s);
133
133
  font-weight: var(--font-weight-medium);
134
+ word-break: break-all;
134
135
  }
135
136
 
136
137
  .Label-optionalText {
@@ -148,6 +149,8 @@ body {
148
149
  border-radius: 50%;
149
150
  background: var(--alert);
150
151
  margin-left: var(--spacing-m);
152
+ margin-bottom: 6px;
153
+ display: inline-flex;
151
154
  }
152
155
 
153
156
  /* Caption */
@@ -412,8 +412,8 @@
412
412
  "affectsGlobalScope": false
413
413
  },
414
414
  "../../core/accessibility/utils/useAccessibilityProps.ts": {
415
- "version": "74e89441fbacd6365fc156ae46d2fbcb43e89e9e2dbe65ef25fde1c2e546dea1",
416
- "signature": "c52129553f95c6160380d7af23042ca969a28bfa6c1281d5e4562873b880fd7f",
415
+ "version": "05105112f6557f671bdaec3224459c2ac1e74c2626fc12ecf6b62ca64212ed04",
416
+ "signature": "223d68c9ab2fa0e155cf70bf3b20a45e9011562d86cb390de713055b42afee55",
417
417
  "affectsGlobalScope": false
418
418
  },
419
419
  "../../core/accessibility/utils/index.ts": {
@@ -447,13 +447,13 @@
447
447
  "affectsGlobalScope": false
448
448
  },
449
449
  "../../core/components/atoms/_chip/index.tsx": {
450
- "version": "24a1d37e1eaf0d1e0dc348834bd0f75f081f1b927a4c03c8a24e1345e274bea5",
451
- "signature": "aa73b69cdec375984f99e6b85935c80de6625578affaca312cb3b5f5f3241897",
450
+ "version": "ebfafc05ea02749f9c3ef5ab0cc483c8a35b9e079e78ea05a40e47f946e20509",
451
+ "signature": "9ddde0081ad6cfabc13d27fab42b167f3308671fca8ffecde6d3f892bbc1f1a7",
452
452
  "affectsGlobalScope": false
453
453
  },
454
454
  "../../core/components/atoms/chip/Chip.tsx": {
455
- "version": "ed6e03e8c2a5c5ef35854225554650d0cb48477f467bc600cb0a698a393f0a91",
456
- "signature": "41e9235d5e7908a29d5976497646b5dd211f8143d85e1eba0847a2d50b256e95",
455
+ "version": "1eed2a59759d8f1281df13156a2dccb11a52282df5a677536506b6576d4f7e7c",
456
+ "signature": "d7c0c1781f170ae67e4d15ee9be70376f7abdf6e2382ef759a79d01c50db3a90",
457
457
  "affectsGlobalScope": false
458
458
  },
459
459
  "../../core/components/atoms/chip/index.tsx": {
@@ -507,7 +507,7 @@
507
507
  "affectsGlobalScope": false
508
508
  },
509
509
  "../../core/components/organisms/datePicker/DatePicker.tsx": {
510
- "version": "8b0978faddfe783329807ab55abe45cbe46a66e9c0a1e10d224faceba38c3d11",
510
+ "version": "b1b68a5868e4d29387c601f01fcffd3a7fe2b4215884fa20043da8eaba581ef4",
511
511
  "signature": "60130413fd988c89f00840e237722c22c1cb6827bc0da4d672949b9d941e2f9b",
512
512
  "affectsGlobalScope": false
513
513
  },
@@ -682,7 +682,7 @@
682
682
  "affectsGlobalScope": false
683
683
  },
684
684
  "../../core/components/molecules/inputMask/InputMask.tsx": {
685
- "version": "c07c8718bf6a3d4c6f31e34f656fbc92efafea46909f3cb9ea624ab6d163f18c",
685
+ "version": "ee6a77bcd074d1dd7e7ce647b7cd0250708fcc16c46cd57a97818da06a0ddbf9",
686
686
  "signature": "e262e3518d5b605bc1ccdd5b3f51bfca531d27b205ac0f9dcfb6982e6110c426",
687
687
  "affectsGlobalScope": false
688
688
  },
@@ -692,7 +692,7 @@
692
692
  "affectsGlobalScope": false
693
693
  },
694
694
  "../../core/components/atoms/label/Label.tsx": {
695
- "version": "55518938fb3bfc5f36aec65e3d1e2e8292a90de59e8f214fb0cb10a00986a02d",
695
+ "version": "e7d34307fcb33e72682bc084f68721d6e0d33015f491a9ee30a1d26fd7078e78",
696
696
  "signature": "2e10ae72a9921c270de3dcc16dd1dd163670f55cc64ec95921830b6f5dcf93e1",
697
697
  "affectsGlobalScope": false
698
698
  },
@@ -1092,7 +1092,7 @@
1092
1092
  "affectsGlobalScope": false
1093
1093
  },
1094
1094
  "../../core/components/molecules/chipInput/ChipInput.tsx": {
1095
- "version": "4a64b478b463f7137007bc10481a7ce4f23516bad01bfc5460f4e6f9a4ce9e9d",
1095
+ "version": "80cdf7bb7037dfb381134b93db3f9f61a0b6cbfd1cf2878f641ef967bb2f4410",
1096
1096
  "signature": "7e03f5815331aceb4dcdde07a2a73a891636dae43f459ee8d91a4ecd78d6cb09",
1097
1097
  "affectsGlobalScope": false
1098
1098
  },
@@ -1142,7 +1142,7 @@
1142
1142
  "affectsGlobalScope": false
1143
1143
  },
1144
1144
  "../../core/components/molecules/editableInput/EditableInput.tsx": {
1145
- "version": "9699d150f6ad90a49a5cd287865d8529215722b988b6f59b7b8dcf727bf2694b",
1145
+ "version": "d24b5bdb12cc8080bc7f83a3f10c336f3dcfda22b16c3b947b96cb2d32ec5750",
1146
1146
  "signature": "ecfe16f129ccf80ceeed9b9bd6d2a6656f8e04e332800cead71e5f86e1d483de",
1147
1147
  "affectsGlobalScope": false
1148
1148
  },
@@ -1366,14 +1366,9 @@
1366
1366
  "signature": "45b9750de5fca677d704d53b48ba6c8542e717e1c7809461edb4f1870b3b54b6",
1367
1367
  "affectsGlobalScope": false
1368
1368
  },
1369
- "../../core/components/organisms/grid/GridNestedRow.tsx": {
1370
- "version": "a6298c169d843e5d5f0b271f9b927032669a7b5566e67e0b5b19d9d2fd0db140",
1371
- "signature": "386ef87ed06daefa64d1f6f8c0ca9393650091499109945f28811b9c7dee62db",
1372
- "affectsGlobalScope": false
1373
- },
1374
1369
  "../../core/components/organisms/grid/Cell.tsx": {
1375
- "version": "9c56431e9af7aed39ceed1308c4c9096b9f05764dee2d07cf5cb394e701791a9",
1376
- "signature": "27b7fe67efa81e771a1352c51c500b5bfb88e463445f84b0cf7513753a813f12",
1370
+ "version": "73104fd491abcbca1077685c3d5503c4eb2ad681babee44e73467b0df53921b6",
1371
+ "signature": "b1b23efb36cc3b1bcd7567c1b108157e79b087b39671ed9764180282d778597a",
1377
1372
  "affectsGlobalScope": false
1378
1373
  },
1379
1374
  "../../core/components/organisms/grid/GridHead.tsx": {
@@ -1381,8 +1376,13 @@
1381
1376
  "signature": "74985f2a6ea97b6d48bdbceda6d2e90fdd7ffdd17a2e8ee17e34315ba6b2d843",
1382
1377
  "affectsGlobalScope": false
1383
1378
  },
1379
+ "../../core/components/organisms/grid/GridNestedRow.tsx": {
1380
+ "version": "cd9c0e29a819faed46cebf3c9d3d391ae14fdb418d739ed63d1961b9aad54558",
1381
+ "signature": "0a4e9f7cc7e17a39cd24a46abb15b76074438c472dda09d1398c7547531d72cd",
1382
+ "affectsGlobalScope": false
1383
+ },
1384
1384
  "../../core/components/organisms/grid/GridRow.tsx": {
1385
- "version": "12027e830bf211e967cf1f8cb4226bfd45a0d28abc2d3c5bed6c867ac1d34585",
1385
+ "version": "50371d8993c998080f957d34f5cfe2131f363209b392b435b4ee5564b3b337ea",
1386
1386
  "signature": "e896c56db3e619dd4457355c752791be2e3f267ac73a43142d2481b1cea0a79d",
1387
1387
  "affectsGlobalScope": false
1388
1388
  },
@@ -1417,7 +1417,7 @@
1417
1417
  "affectsGlobalScope": false
1418
1418
  },
1419
1419
  "../../core/components/organisms/table/Table.tsx": {
1420
- "version": "fd2fe810bee3d385f57605f566d93c489dbcd66531a8a7a7991e7e4cd0536986",
1420
+ "version": "1ff019274d2e6008aa65272bdb08fff888d1b50f1675cd6aff1ff02e884e46cc",
1421
1421
  "signature": "4b3dd8a0a3daee2fc4a0ec207dcd33ff8a559d7394730b36e2119d1a76a5a7fd",
1422
1422
  "affectsGlobalScope": false
1423
1423
  },
@@ -5925,7 +5925,8 @@
5925
5925
  "../../core/index.type.tsx",
5926
5926
  "../../core/utils/types.tsx",
5927
5927
  "../../node_modules/@types/node/util.d.ts",
5928
- "../../node_modules/@types/react/index.d.ts"
5928
+ "../../node_modules/@types/react/index.d.ts",
5929
+ "../../node_modules/classnames/index.d.ts"
5929
5930
  ],
5930
5931
  "../../core/components/organisms/datePicker/Trigger.tsx": [
5931
5932
  "../../core/components/organisms/calendar/utility.ts",
@@ -5977,7 +5978,6 @@
5977
5978
  "../../core/components/organisms/grid/Grid.tsx",
5978
5979
  "../../core/components/organisms/grid/GridContext.ts",
5979
5980
  "../../core/components/organisms/grid/GridHead.tsx",
5980
- "../../core/components/organisms/grid/GridNestedRow.tsx",
5981
5981
  "../../core/components/organisms/grid/columnUtility.tsx",
5982
5982
  "../../core/components/organisms/grid/utility.tsx",
5983
5983
  "../../core/index.tsx",
@@ -4,9 +4,10 @@ interface IProps {
4
4
  onClick?: (event: React.MouseEvent<HTMLElement>) => void;
5
5
  onKeyDown?: (event: React.KeyboardEvent<HTMLElement>) => void;
6
6
  role?: AriaRoleType;
7
+ tabIndex?: number;
7
8
  'aria-label'?: React.AriaAttributes['aria-label'];
8
9
  }
9
- declare const useAccessibilityProps: ({ onClick, onKeyDown, role, ...rest }: IProps) => {
10
+ declare const useAccessibilityProps: ({ onClick, onKeyDown, role, tabIndex, ...rest }: IProps) => {
10
11
  onClick: (event: React.MouseEvent<HTMLElement>) => void;
11
12
  role: React.AriaRole;
12
13
  tabIndex: number;
@@ -14,6 +15,7 @@ declare const useAccessibilityProps: ({ onClick, onKeyDown, role, ...rest }: IPr
14
15
  onKeyDown: (e: React.SyntheticEvent<HTMLElement>) => void;
15
16
  } | {
16
17
  role: React.AriaRole;
18
+ tabIndex: number | undefined;
17
19
  'aria-label': string | undefined;
18
20
  };
19
21
  export default useAccessibilityProps;
@@ -3,6 +3,7 @@ import { Name } from "../chip/Chip";
3
3
  import { BaseProps } from "../../../utils/types";
4
4
  export interface GenericChipProps extends BaseProps {
5
5
  label: string | React.ReactElement;
6
+ labelPrefix?: string;
6
7
  icon?: string;
7
8
  clearButton?: boolean;
8
9
  disabled?: boolean;
@@ -4,6 +4,7 @@ export declare type ChipType = 'action' | 'selection' | 'input';
4
4
  export declare type Name = number | string | object;
5
5
  export interface ChipProps extends BaseProps {
6
6
  label: string | React.ReactElement;
7
+ labelPrefix?: string;
7
8
  icon?: string;
8
9
  clearButton?: boolean;
9
10
  disabled?: boolean;
@@ -4,6 +4,7 @@ import { GridHeadProps } from "./GridHead";
4
4
  interface SharedCellProps {
5
5
  schema: ColumnSchema;
6
6
  colIndex: number;
7
+ nestedRowData?: React.ReactNode;
7
8
  }
8
9
  declare type HeaderCellProps = SharedCellProps & {
9
10
  onSelectAll: GridHeadProps['onSelectAll'];
@@ -4,12 +4,14 @@ import { RowData } from "./Grid";
4
4
  export interface GridNestedRowProps {
5
5
  data: RowData;
6
6
  rowIndex: number;
7
+ expanded?: boolean;
7
8
  }
8
9
  export interface NestedRowProps {
9
10
  rowIndex: number;
10
11
  data: RowData;
11
12
  schema: GridProps['schema'];
12
13
  loading: GridProps['loading'];
14
+ expanded?: boolean;
13
15
  }
14
16
  export declare const GridNestedRow: (props: GridNestedRowProps) => React.ReactElement<any, any> | null;
15
17
  export default GridNestedRow;