@innovaccer/design-system 2.31.1 → 2.32.1

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 (43) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/css/dist/index.css +69 -64
  3. package/css/dist/index.css.map +1 -1
  4. package/css/src/components/actionCard.css +1 -1
  5. package/css/src/components/backdrop.css +3 -3
  6. package/css/src/components/chipInput.css +1 -1
  7. package/css/src/components/dropdown.css +5 -5
  8. package/css/src/components/fullscreenModal.css +2 -2
  9. package/css/src/components/grid.css +13 -11
  10. package/css/src/components/horizontalNav.css +1 -1
  11. package/css/src/components/input.css +2 -2
  12. package/css/src/components/listbox.css +3 -3
  13. package/css/src/components/menu.css +1 -1
  14. package/css/src/components/message.css +4 -4
  15. package/css/src/components/navigation.css +1 -1
  16. package/css/src/components/pills.css +2 -2
  17. package/css/src/components/popover.css +1 -1
  18. package/css/src/components/select.css +4 -0
  19. package/css/src/components/selectionCard.css +5 -5
  20. package/css/src/components/statusHints.css +1 -1
  21. package/css/src/components/switch.css +2 -2
  22. package/css/src/components/tabs.css +1 -1
  23. package/css/src/components/toast.css +7 -7
  24. package/css/src/components/verticalNav.css +2 -2
  25. package/css/src/core/typography.css +3 -3
  26. package/css/src/variables/index.css +22 -23
  27. package/dist/.lib/tsconfig.type.tsbuildinfo +29 -29
  28. package/dist/core/components/atoms/avatarSelection/avatarPopover/AvatarSelectionOption.d.ts +2 -0
  29. package/dist/core/components/atoms/checkbox/Checkbox.d.ts +1 -0
  30. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +0 -1
  31. package/dist/core/components/molecules/tooltip/Tooltip.d.ts +1 -0
  32. package/dist/core/components/organisms/menu/MenuItem.d.ts +2 -0
  33. package/dist/core/components/organisms/select/SearchInput.d.ts +2 -2
  34. package/dist/core/components/organisms/select/Select.d.ts +2 -0
  35. package/dist/core/components/organisms/select/SelectContext.d.ts +1 -0
  36. package/dist/core/components/organisms/select/SelectEmptyTemplate.d.ts +2 -2
  37. package/dist/index.esm.js +122 -65
  38. package/dist/index.js +86 -44
  39. package/dist/index.js.map +1 -1
  40. package/dist/index.umd.js +1 -1
  41. package/dist/index.umd.js.br +0 -0
  42. package/dist/index.umd.js.gz +0 -0
  43. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,98 @@
1
+ ## 2.32.1 (2024-05-08)
2
+
3
+ ### Highlights
4
+
5
+ - feat(spacing): implement 6px token and replace hardcoded value (292e6e2e)
6
+
7
+ ### Breaking changes
8
+
9
+ NA
10
+
11
+ ### Migration guide
12
+
13
+ NA
14
+
15
+ ### Deprecations
16
+
17
+ NA
18
+
19
+ ### Features
20
+
21
+ - feat(listbox): add selected and activated type in listbox stories (46c24416)
22
+ - feat(spacing): implement 6px token and replace hardcoded value (292e6e2e)
23
+ - feat(select): add appendToBody and boundary element props support
24
+
25
+ ### Fixes
26
+
27
+ - fix(select): make title description optional in empty template (42ae0d79)
28
+
29
+ ### Improvements
30
+
31
+ NA
32
+
33
+ ### Documentation
34
+
35
+ - docs(spacing): add 6px token documentation (93d299e7)
36
+
37
+ ---
38
+
39
+ ## 2.32.0 (2024-05-01)
40
+
41
+ ### Highlights
42
+
43
+ - feat(opacity): update values of opacity with tokens in components (e9701951)
44
+ - feat(storybook): update storybook structure in alphabetical order (81c5261a)
45
+ - feat(docs): update storybook preview link in markdown (5c367b4c)
46
+ - feat(menu): add overflow behavior in option items (4b2f4239)
47
+ - feat(combobox): add overflow behavior for option items (ef09ab38)
48
+ - feat(avatarSelection): add overflow behavior for popover options (0d0bed91)
49
+ - feat(select): add overflow behavior in option item and trigger (999ff9d3)
50
+ - docs(node): node 20 migration (e3737cd8)
51
+
52
+ ### Breaking changes
53
+
54
+ NA
55
+
56
+ ### Migration guide
57
+
58
+ NA
59
+
60
+ ### Deprecations
61
+
62
+ NA
63
+
64
+ ### Features
65
+
66
+ - feat(opacity): update values of opacity with tokens in components (e9701951)
67
+ - feat(storybook): update storybook structure in alphabetical order (81c5261a)
68
+ - feat(docs): update storybook preview link in markdown (5c367b4c)
69
+ - feat(menu): add overflow behavior in option items (4b2f4239)
70
+ - feat(combobox): add overflow behavior for option items (ef09ab38)
71
+ - feat(avatarSelection): add overflow behavior for popover options (0d0bed91)
72
+ - feat(select): add overflow behavior in option item and trigger (999ff9d3)
73
+ - docs(node): node 20 migration (e3737cd8)
74
+
75
+ ### Fixes
76
+
77
+ - fix(tooltip): tooltip not appearing on consecutive list hover (670e3a4e)
78
+ - fix: update material symbols link on codesandbox (ad7c15a7)
79
+ - fix(grid): update style for pinned columns (d68c7300)
80
+ - fix(dropdown): fix width of error template in dropdown (5fd99771)
81
+ - docs(node): fix cypress test cases (f6fd95c7)
82
+
83
+ ### Improvements
84
+
85
+ - chore: add launch config for jest test case debugging in VS Code (9bcc8016)
86
+ - chore: update jest config to exclude type definition files from coverage (589c2b58)
87
+ - test(accessibility): add test cases for accessibility utils (6f27cee8)
88
+ - fix: update name of overflow stories of select, menu, combobox (e2ab96d9)
89
+
90
+ ### Documentation
91
+
92
+ - docs(combobox): update image for overflow behavior of option item (619cf381)
93
+
94
+ ---
95
+
1
96
  ## 2.31.1 (2024-04-19)
2
97
 
3
98
  ### Highlights
@@ -163,6 +163,7 @@
163
163
  --spacing-xs: 1px;
164
164
  --spacing-s: 2px;
165
165
  --spacing-m: 4px;
166
+ --spacing-0-75: 6px;
166
167
  --spacing: 8px;
167
168
  --spacing-l: 12px;
168
169
  /* 8 * 2 */
@@ -273,19 +274,17 @@
273
274
  --duration--slow-01: 400ms;
274
275
  --duration--slow-02: 720ms;
275
276
 
276
- /**** Opacity ****/
277
- --opacity-0: 0;
278
- --opacity-4: 0.04;
279
- --opacity-8: 0.08;
280
- --opacity-12: 0.12;
281
- --opacity-16: 0.16;
282
- --opacity-24: 0.24;
283
- --opacity-32: 0.32;
284
- --opacity-40: 0.4;
285
- --opacity-48: 0.48;
286
- --opacity-64: 0.64;
287
- --opacity-80: 0.8;
288
- --opacity-100: 1;
277
+ /* Opacity */
278
+ --opacity-1: 0.04;
279
+ --opacity-2: 0.08;
280
+ --opacity-3: 0.12;
281
+ --opacity-4: 0.16;
282
+ --opacity-6: 0.24;
283
+ --opacity-8: 0.32;
284
+ --opacity-10: 0.4;
285
+ --opacity-12: 0.48;
286
+ --opacity-16: 0.64;
287
+ --opacity-20: 0.8;
289
288
  }
290
289
 
291
290
  /* fallback */
@@ -682,12 +681,12 @@ body {
682
681
  }
683
682
 
684
683
  .Label-requiredIndicator {
685
- height: 6px;
686
- width: 6px;
684
+ height: var(--spacing-0-75);
685
+ width: var(--spacing-0-75);
687
686
  border-radius: 50%;
688
687
  background: var(--alert);
689
688
  margin-left: var(--spacing-m);
690
- margin-bottom: 6px;
689
+ margin-bottom: var(--spacing-0-75);
691
690
  display: inline-flex;
692
691
  }
693
692
 
@@ -870,7 +869,7 @@ body {
870
869
  bottom: 0;
871
870
  left: 0;
872
871
  z-index: 2;
873
- opacity: 50%;
872
+ opacity: var(--opacity-10);
874
873
  background: var(--secondary-light);
875
874
  }
876
875
 
@@ -1126,7 +1125,7 @@ body {
1126
1125
  opacity: 0;
1127
1126
  }
1128
1127
  to {
1129
- opacity: 60;
1128
+ opacity: var(--opacity-16);
1130
1129
  }
1131
1130
  }
1132
1131
 
@@ -1135,13 +1134,13 @@ body {
1135
1134
  opacity: 0;
1136
1135
  }
1137
1136
  to {
1138
- opacity: 60;
1137
+ opacity: var(--opacity-16);
1139
1138
  }
1140
1139
  }
1141
1140
 
1142
1141
  @-webkit-keyframes backdrop-close {
1143
1142
  from {
1144
- opacity: 60;
1143
+ opacity: var(--opacity-16);
1145
1144
  }
1146
1145
  to {
1147
1146
  opacity: 0;
@@ -1150,7 +1149,7 @@ body {
1150
1149
 
1151
1150
  @keyframes backdrop-close {
1152
1151
  from {
1153
- opacity: 60;
1152
+ opacity: var(--opacity-16);
1154
1153
  }
1155
1154
  to {
1156
1155
  opacity: 0;
@@ -1158,7 +1157,7 @@ body {
1158
1157
  }
1159
1158
 
1160
1159
  .Backdrop {
1161
- background-color: rgba(47, 47, 47, 0.6);
1160
+ background-color: rgba(47, 47, 47, 0.64);
1162
1161
  height: 100vh;
1163
1162
  width: 100vw;
1164
1163
  position: fixed;
@@ -2530,7 +2529,7 @@ body {
2530
2529
  height: var(--spacing-2);
2531
2530
  padding: var(--spacing-s);
2532
2531
  margin-left: var(--spacing);
2533
- margin-top: 6px;
2532
+ margin-top: var(--spacing-0-75);
2534
2533
  cursor: pointer;
2535
2534
  border-radius: 10px;
2536
2535
  }
@@ -2725,7 +2724,7 @@ body {
2725
2724
  align-items: center;
2726
2725
  margin-left: var(--spacing-l);
2727
2726
  margin-top: var(--spacing-l);
2728
- margin-bottom: 6px;
2727
+ margin-bottom: var(--spacing-0-75);
2729
2728
  }
2730
2729
 
2731
2730
  .Dropdown-section--withClear {
@@ -2756,8 +2755,8 @@ body {
2756
2755
 
2757
2756
  .Option,
2758
2757
  .Option-loading {
2759
- padding-top: 6px;
2760
- padding-bottom: 6px;
2758
+ padding-top: var(--spacing-0-75);
2759
+ padding-bottom: var(--spacing-0-75);
2761
2760
  padding-left: var(--spacing-l);
2762
2761
  padding-right: var(--spacing);
2763
2762
  }
@@ -2773,8 +2772,8 @@ body {
2773
2772
  .OptionCheckbox {
2774
2773
  width: 100%;
2775
2774
  padding-left: var(--spacing-l);
2776
- padding-top: 6px;
2777
- padding-bottom: 6px;
2775
+ padding-top: var(--spacing-0-75);
2776
+ padding-bottom: var(--spacing-0-75);
2778
2777
  }
2779
2778
 
2780
2779
  .Option--active,
@@ -3449,7 +3448,7 @@ body {
3449
3448
  transform: translateY(20px);
3450
3449
  }
3451
3450
  to {
3452
- opacity: 100;
3451
+ opacity: 1;
3453
3452
  transform: translateY(0px);
3454
3453
  }
3455
3454
  }
@@ -3460,14 +3459,14 @@ body {
3460
3459
  transform: translateY(20px);
3461
3460
  }
3462
3461
  to {
3463
- opacity: 100;
3462
+ opacity: 1;
3464
3463
  transform: translateY(0px);
3465
3464
  }
3466
3465
  }
3467
3466
 
3468
3467
  @-webkit-keyframes fullscreenModal-close {
3469
3468
  from {
3470
- opacity: 100;
3469
+ opacity: 1;
3471
3470
  transform: translateY(0px);
3472
3471
  }
3473
3472
  to {
@@ -3478,7 +3477,7 @@ body {
3478
3477
 
3479
3478
  @keyframes fullscreenModal-close {
3480
3479
  from {
3481
- opacity: 100;
3480
+ opacity: 1;
3482
3481
  transform: translateY(0px);
3483
3482
  }
3484
3483
  to {
@@ -3778,7 +3777,7 @@ body {
3778
3777
  } */
3779
3778
 
3780
3779
  .Grid-row--disabled {
3781
- opacity: var(--opacity-40);
3780
+ opacity: var(--opacity-10);
3782
3781
  pointer-events: none;
3783
3782
  }
3784
3783
 
@@ -3870,20 +3869,21 @@ body {
3870
3869
 
3871
3870
  .Grid-cellGroup--pinned-left {
3872
3871
  left: 0;
3873
- border-right: var(--border);
3872
+ border-style: inset;
3873
+ border-right: var(--spacing-xs) solid rgba(213, 213, 213, var(--opacity-3));
3874
3874
  border-right-width: 4px;
3875
3875
  -o-border-image: linear-gradient(
3876
3876
  to right,
3877
- var(--secondary),
3878
- var(--secondary) 25%,
3877
+ var(--secondary-light),
3878
+ var(--secondary-light) 25%,
3879
3879
  rgba(213, 213, 213, 0.1) 25%,
3880
3880
  rgba(213, 213, 213, 0.1)
3881
3881
  )
3882
3882
  1 100%;
3883
3883
  border-image: linear-gradient(
3884
3884
  to right,
3885
- var(--secondary),
3886
- var(--secondary) 25%,
3885
+ var(--secondary-light),
3886
+ var(--secondary-light) 25%,
3887
3887
  rgba(213, 213, 213, 0.1) 25%,
3888
3888
  rgba(213, 213, 213, 0.1)
3889
3889
  )
@@ -3892,20 +3892,21 @@ body {
3892
3892
 
3893
3893
  .Grid-cellGroup--pinned-right {
3894
3894
  right: 0;
3895
- border-left: var(--border);
3895
+ border-style: inset;
3896
+ border-left: var(--spacing-xs) solid rgba(213, 213, 213, var(--opacity-3));
3896
3897
  border-left-width: 4px;
3897
3898
  -o-border-image: linear-gradient(
3898
3899
  to left,
3899
- var(--secondary),
3900
- var(--secondary) 25%,
3900
+ var(--secondary-light),
3901
+ var(--secondary-light) 25%,
3901
3902
  rgba(213, 213, 213, 0.1) 25%,
3902
3903
  rgba(213, 213, 213, 0.1)
3903
3904
  )
3904
3905
  1 100%;
3905
3906
  border-image: linear-gradient(
3906
3907
  to left,
3907
- var(--secondary),
3908
- var(--secondary) 25%,
3908
+ var(--secondary-light),
3909
+ var(--secondary-light) 25%,
3909
3910
  rgba(213, 213, 213, 0.1) 25%,
3910
3911
  rgba(213, 213, 213, 0.1)
3911
3912
  )
@@ -4167,7 +4168,7 @@ body {
4167
4168
  }
4168
4169
 
4169
4170
  .HorizontalNav-pills--disabled {
4170
- opacity: 0.6;
4171
+ opacity: var(--opacity-10);
4171
4172
  }
4172
4173
 
4173
4174
  /* Although the icons in the font can be scaled to any size, in accordance with material design icons guidelines,
@@ -4423,8 +4424,8 @@ body {
4423
4424
 
4424
4425
  .Input--regular {
4425
4426
  height: var(--font-height-l);
4426
- padding-top: 6px;
4427
- padding-bottom: 6px;
4427
+ padding-top: var(--spacing-0-75);
4428
+ padding-bottom: var(--spacing-0-75);
4428
4429
  }
4429
4430
 
4430
4431
  .Input--large {
@@ -4870,7 +4871,7 @@ body {
4870
4871
  /* Listbox type - disabled */
4871
4872
 
4872
4873
  .Listbox-item--disabled {
4873
- opacity: var(--opacity-40);
4874
+ opacity: var(--opacity-10);
4874
4875
  pointer-events: none;
4875
4876
  }
4876
4877
 
@@ -4912,7 +4913,7 @@ body {
4912
4913
  .Menu-Group-Label {
4913
4914
  display: flex;
4914
4915
  align-items: center;
4915
- padding-bottom: 6px;
4916
+ padding-bottom: var(--spacing-0-75);
4916
4917
  padding-top: var(--spacing-l);
4917
4918
  padding-left: var(--spacing-2);
4918
4919
  padding-right: var(--spacing-l);
@@ -5409,7 +5410,7 @@ body {
5409
5410
  }
5410
5411
 
5411
5412
  .Navigation-horizontalPills--disabled {
5412
- opacity: 0.6;
5413
+ opacity: var(--opacity-10);
5413
5414
  }
5414
5415
 
5415
5416
  .Navigation-footer {
@@ -5600,8 +5601,8 @@ body {
5600
5601
  font-size: var(--font-size-s);
5601
5602
  line-height: var(--font-height-s);
5602
5603
  text-transform: uppercase;
5603
- padding-right: 6px;
5604
- padding-left: 6px;
5604
+ padding-right: var(--spacing-0-75);
5605
+ padding-left: var(--spacing-0-75);
5605
5606
  padding-top: var(--spacing-s);
5606
5607
  padding-bottom: var(--spacing-s);
5607
5608
  border-radius: 20px;
@@ -5810,7 +5811,7 @@ body {
5810
5811
  opacity: 0;
5811
5812
  }
5812
5813
  80% {
5813
- opacity: 0.2;
5814
+ opacity: var(--opacity-6);
5814
5815
  }
5815
5816
  100% {
5816
5817
  opacity: 1;
@@ -5822,7 +5823,7 @@ body {
5822
5823
  opacity: 0;
5823
5824
  }
5824
5825
  80% {
5825
- opacity: 0.2;
5826
+ opacity: var(--opacity-6);
5826
5827
  }
5827
5828
  100% {
5828
5829
  opacity: 1;
@@ -6159,6 +6160,10 @@ body {
6159
6160
  white-space: nowrap;
6160
6161
  overflow: hidden;
6161
6162
  text-overflow: ellipsis;
6163
+ max-width: 100%;
6164
+ margin: 0;
6165
+ font-size: var(--font-size);
6166
+ line-height: var(--font-height);
6162
6167
  }
6163
6168
 
6164
6169
  .Select-trigger--regular {
@@ -6280,27 +6285,27 @@ body {
6280
6285
 
6281
6286
  .Selection-card:active .Selection-card-overlay {
6282
6287
  background-color: var(--primary);
6283
- opacity: 10%;
6288
+ opacity: var(--opacity-3);
6284
6289
  }
6285
6290
 
6286
6291
  .Selection-card--disabled .Selection-card-overlay {
6287
6292
  background-color: var(--secondary-lightest);
6288
- opacity: 50%;
6293
+ opacity: var(--opacity-10);
6289
6294
  }
6290
6295
 
6291
6296
  .Selection-card--selected .Selection-card-overlay {
6292
6297
  background-color: var(--primary);
6293
- opacity: 4%;
6298
+ opacity: var(--opacity-1);
6294
6299
  }
6295
6300
 
6296
6301
  .Selection-card--selected:active .Selection-card-overlay {
6297
6302
  background-color: var(--primary);
6298
- opacity: 4%;
6303
+ opacity: var(--opacity-1);
6299
6304
  }
6300
6305
 
6301
6306
  .Selection-card--selected-disabled .Selection-card-overlay {
6302
6307
  background-color: var(--primary-lightest);
6303
- opacity: 50%;
6308
+ opacity: var(--opacity-10);
6304
6309
  }
6305
6310
 
6306
6311
  @-webkit-keyframes sidesheet-open {
@@ -6673,7 +6678,7 @@ body {
6673
6678
  height: var(--spacing);
6674
6679
  width: var(--spacing);
6675
6680
  margin-right: var(--spacing);
6676
- margin-top: 6px;
6681
+ margin-top: var(--spacing-0-75);
6677
6682
  }
6678
6683
 
6679
6684
  .StatusHint--alert {
@@ -6826,7 +6831,7 @@ body {
6826
6831
  width: 100%;
6827
6832
  background-color: var(--secondary-light);
6828
6833
  transition: background 120ms ease;
6829
- padding-right: 6px;
6834
+ padding-right: var(--spacing-0-75);
6830
6835
  }
6831
6836
 
6832
6837
  .Switch-input:focus ~ .Switch-wrapper {
@@ -6881,7 +6886,7 @@ body {
6881
6886
  .Switch-wrapper--checked {
6882
6887
  background-color: var(--primary);
6883
6888
  transition: background 120ms ease;
6884
- padding-left: 6px;
6889
+ padding-left: var(--spacing-0-75);
6885
6890
  padding-right: 2px !important;
6886
6891
  }
6887
6892
 
@@ -7065,7 +7070,7 @@ body {
7065
7070
  }
7066
7071
 
7067
7072
  .Tab-pills--disabled {
7068
- opacity: 60%;
7073
+ opacity: var(--opacity-10);
7069
7074
  cursor: not-allowed;
7070
7075
  }
7071
7076
 
@@ -7640,7 +7645,7 @@ body {
7640
7645
  text-transform: uppercase;
7641
7646
  padding-left: var(--spacing-2);
7642
7647
  padding-top: var(--spacing-l);
7643
- padding-bottom: 6px;
7648
+ padding-bottom: var(--spacing-0-75);
7644
7649
  margin-top: var(--spacing);
7645
7650
  }
7646
7651
 
@@ -7753,7 +7758,7 @@ body {
7753
7758
  }
7754
7759
 
7755
7760
  .MenuItem-count--disabled {
7756
- opacity: 0.6;
7761
+ opacity: var(--opacity-10);
7757
7762
  color: var(--text);
7758
7763
  }
7759
7764