@innovaccer/design-system 2.19.0 → 2.21.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 (52) hide show
  1. package/CHANGELOG.md +99 -0
  2. package/css/dist/MaterialSymbolsOutlined.ttf +0 -0
  3. package/css/dist/MaterialSymbolsRounded.ttf +0 -0
  4. package/css/dist/index.css +94 -87
  5. package/css/dist/index.css.map +1 -1
  6. package/css/gulpfile.js +7 -11
  7. package/css/material-design-icons/iconfont/MaterialSymbolsOutlined.ttf +0 -0
  8. package/css/material-design-icons/iconfont/MaterialSymbolsRounded.ttf +0 -0
  9. package/css/material-design-icons/iconfont/material-icons.css +10 -88
  10. package/css/src/components/actionCard.css +40 -0
  11. package/css/src/components/calendar.css +33 -0
  12. package/css/src/components/chipInput.css +9 -0
  13. package/dist/.lib/tsconfig.type.tsbuildinfo +101 -48
  14. package/dist/core/common.type.d.ts +6 -0
  15. package/dist/core/components/atoms/_chip/index.d.ts +2 -0
  16. package/dist/core/components/atoms/actionCard/ActionCard.d.ts +13 -0
  17. package/dist/core/components/atoms/actionCard/index.d.ts +2 -0
  18. package/dist/core/components/atoms/button/Button.d.ts +3 -1
  19. package/dist/core/components/atoms/chip/Chip.d.ts +2 -0
  20. package/dist/core/components/atoms/dropdown/DropdownButton.d.ts +2 -0
  21. package/dist/core/components/atoms/dropdown/option/index.d.ts +2 -1
  22. package/dist/core/components/atoms/icon/Icon.d.ts +7 -0
  23. package/dist/core/components/atoms/icon/utils.d.ts +7 -0
  24. package/dist/core/components/atoms/input/Input.d.ts +2 -1
  25. package/dist/core/components/atoms/input/actionButton/ActionButton.d.ts +3 -1
  26. package/dist/core/components/atoms/linkButton/LinkButton.d.ts +2 -0
  27. package/dist/core/components/atoms/metaList/Meta.d.ts +2 -0
  28. package/dist/core/components/atoms/metricInput/MetricInput.d.ts +2 -1
  29. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +20 -20
  30. package/dist/core/components/molecules/chipInput/ChipInput.d.ts +2 -0
  31. package/dist/core/components/molecules/tabs/Tabs.d.ts +2 -0
  32. package/dist/core/components/organisms/calendar/utility.d.ts +1 -0
  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 -0
  36. package/dist/index.esm.js +381 -170
  37. package/dist/index.js +313 -102
  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/MaterialIcons-Regular.ttf +0 -0
  44. package/css/dist/MaterialIconsOutlined-Regular.otf +0 -0
  45. package/css/dist/MaterialIconsRound-Regular.otf +0 -0
  46. package/css/dist/MaterialIconsSharp-Regular.otf +0 -0
  47. package/css/dist/MaterialIconsTwoTone-Regular.otf +0 -0
  48. package/css/material-design-icons/iconfont/MaterialIcons-Regular.ttf +0 -0
  49. package/css/material-design-icons/iconfont/MaterialIconsOutlined-Regular.otf +0 -0
  50. package/css/material-design-icons/iconfont/MaterialIconsRound-Regular.otf +0 -0
  51. package/css/material-design-icons/iconfont/MaterialIconsSharp-Regular.otf +0 -0
  52. package/css/material-design-icons/iconfont/MaterialIconsTwoTone-Regular.otf +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,102 @@
1
+ ## 2.21.0 (2023-09-18)
2
+
3
+ ### Highlights
4
+
5
+ - feat(metricInput): add icon variations property in metric input component (3469d1b7)
6
+ - feat(linkButton): add icon variations property in link button component (1c51679b)
7
+ - feat(chip): add icon variations property in chip component (9770c92a)
8
+ - feat(chipGroup): add icon variations property in chip group component (53682f18)
9
+ - feat(chip): add icon variations property in chip input component (cf29c673)
10
+ - feat(input): add icon variations property in input component (59902576)
11
+ - feat(verticalNav): add icon variations property in vertical nav component (828a7066)
12
+ - feat(horizontalNav): add icon variations property in horizontal nav component (d058d919)
13
+ - feat(tab): add icon variations property in tab component (b3a6615a)
14
+ - feat(dropdown): add icon variations property in dropdown component (bfcae4bd)
15
+ - feat(metalist): add icon variations property in metalist component (ce7daba2)
16
+
17
+ ### Breaking changes
18
+
19
+ NA
20
+
21
+ ### Migration guide
22
+
23
+ NA
24
+
25
+ ### Deprecations
26
+
27
+ NA
28
+
29
+ ### Features
30
+
31
+ - feat(metricInput): add icon variations property in metric input component (3469d1b7)
32
+ - feat(linkButton): add icon variations property in link button component (1c51679b)
33
+ - feat(chip): add icon variations property in chip component (9770c92a)
34
+ - feat(chipGroup): add icon variations property in chip group component (53682f18)
35
+ - feat(chip): add icon variations property in chip input component (cf29c673)
36
+ - feat(input): add icon variations property in input component (59902576)
37
+ - feat(verticalNav): add icon variations property in vertical nav component (828a7066)
38
+ - feat(horizontalNav): add icon variations property in horizontal nav component (d058d919)
39
+ - feat(tab): add icon variations property in tab component (b3a6615a)
40
+ - feat(dropdown): add icon variations property in dropdown component (bfcae4bd)
41
+ - feat(metalist): add icon variations property in metalist component (ce7daba2)
42
+
43
+ ### Fixes
44
+
45
+ NA
46
+
47
+ ### Improvements
48
+
49
+ NA
50
+
51
+ ### Documentation
52
+
53
+ NA
54
+
55
+ ---
56
+
57
+ ## 2.20.0 (2023-09-08)
58
+
59
+ ### Highlights
60
+
61
+ - feat(icon): migration to material symbols from material icons (b4677f51)
62
+ - feat(card): add action card component (1f6f2a86)
63
+
64
+ ### Breaking changes
65
+
66
+ NA
67
+
68
+ ### Migration guide
69
+
70
+ - feat(icon): material icons are migrated to material symbols. Need to update the test snapshots to update icon name (if used anywhere). (b4677f51)
71
+
72
+ ### Deprecations
73
+
74
+ NA
75
+
76
+ ### Features
77
+
78
+ - feat(icon): migration to material symbols from material icons (b4677f51)
79
+ - feat(card): add action card component (1f6f2a86)
80
+ - feat(button): add icon variations property in button component (615bde8f)
81
+ - feat(input): add icon variations property in action button in input component (336dc41e)
82
+
83
+ ### Fixes
84
+
85
+ - fix(datepicker): update selection chip to action chip in preset story in patterns (db5d8275)
86
+ - fix(dateRangePicker): fix range selection behaviour (2181bf0c)
87
+ - fix(chipinput): update chipinput error state (f5aa019d)
88
+ - fix(input): update icon to icon component in action button (336dc41e)
89
+
90
+ ### Improvements
91
+
92
+ - chore(deps-dev): bump word-wrap from 1.2.3 to 1.2.5 (a0f9cd0e)
93
+
94
+ ### Documentation
95
+
96
+ NA
97
+
98
+ ---
99
+
1
100
  ## 2.19.0 (2023-08-25)
2
101
 
3
102
  ### Highlights
@@ -274,40 +274,16 @@
274
274
  --duration--slow-02: 720ms;
275
275
  }
276
276
 
277
- /* fallback */
278
277
  @font-face {
279
- font-family: 'Material Icons';
280
- font-style: normal;
281
- font-weight: 400;
282
- src: url(MaterialIcons-Regular.ttf);
283
- }
284
- /* fallback */
285
- @font-face {
286
- font-family: 'Material Icons Outlined';
287
- font-style: normal;
288
- font-weight: 400;
289
- src: url(MaterialIconsOutlined-Regular.otf);
290
- }
291
- /* fallback */
292
- @font-face {
293
- font-family: 'Material Icons Round';
294
- font-style: normal;
295
- font-weight: 400;
296
- src: url(MaterialIconsRound-Regular.otf);
297
- }
298
- /* fallback */
299
- @font-face {
300
- font-family: 'Material Icons Sharp';
278
+ font-family: 'Material Symbols Outlined';
301
279
  font-style: normal;
302
- font-weight: 400;
303
- src: url(MaterialIconsSharp-Regular.otf);
280
+ src: url(MaterialSymbolsOutlined.ttf);
304
281
  }
305
- /* fallback */
282
+
306
283
  @font-face {
307
- font-family: 'Material Icons Two Tone';
284
+ font-family: 'Material Symbols Rounded';
308
285
  font-style: normal;
309
- font-weight: 400;
310
- src: url(MaterialIconsTwoTone-Regular.otf);
286
+ src: url(MaterialSymbolsRounded.ttf);
311
287
  }
312
288
 
313
289
  .material-icons {
@@ -327,68 +303,15 @@
327
303
  }
328
304
 
329
305
  .material-icons-outlined {
330
- font-family: 'Material Icons Outlined';
331
- font-weight: normal;
332
- font-style: normal;
333
- font-size: 16px; /* preferred icon size */
334
- line-height: 1;
335
- letter-spacing: normal;
336
- text-transform: none;
337
- display: inline-block;
338
- white-space: nowrap;
339
- word-wrap: normal;
340
- direction: ltr;
341
- -webkit-font-feature-settings: 'liga';
342
- -webkit-font-smoothing: antialiased;
343
- }
344
-
345
- .material-icons-round {
346
- font-family: 'Material Icons Round';
347
- font-weight: normal;
348
- font-style: normal;
349
- font-size: 16px; /* preferred icon size */
350
- line-height: 1;
351
- letter-spacing: normal;
352
- text-transform: none;
353
- display: inline-block;
354
- white-space: nowrap;
355
- word-wrap: normal;
356
- direction: ltr;
357
- -webkit-font-feature-settings: 'liga';
358
- -webkit-font-smoothing: antialiased;
306
+ font-family: 'Material Symbols Outlined';
307
+ font-size: 24px; /* Preferred icon size */
359
308
  }
360
309
 
361
- .material-icons-sharp {
362
- font-family: 'Material Icons Sharp';
363
- font-weight: normal;
364
- font-style: normal;
365
- font-size: 16px; /* preferred icon size */
366
- line-height: 1;
367
- letter-spacing: normal;
368
- text-transform: none;
369
- display: inline-block;
370
- white-space: nowrap;
371
- word-wrap: normal;
372
- direction: ltr;
373
- -webkit-font-feature-settings: 'liga';
374
- -webkit-font-smoothing: antialiased;
310
+ .material-icons-rounded {
311
+ font-family: 'Material Symbols Rounded';
312
+ font-size: 24px; /* Preferred icon size */
375
313
  }
376
314
 
377
- .material-icons-two-tone {
378
- font-family: 'Material Icons Two Tone';
379
- font-weight: normal;
380
- font-style: normal;
381
- font-size: 16px; /* preferred icon size */
382
- line-height: 1;
383
- letter-spacing: normal;
384
- text-transform: none;
385
- display: inline-block;
386
- white-space: nowrap;
387
- word-wrap: normal;
388
- direction: ltr;
389
- -webkit-font-feature-settings: 'liga';
390
- -webkit-font-smoothing: antialiased;
391
- }
392
315
  @-webkit-keyframes fadeIn {
393
316
  from {
394
317
  opacity: 0;
@@ -398,6 +321,7 @@
398
321
  opacity: 1;
399
322
  }
400
323
  }
324
+
401
325
  @keyframes fadeIn {
402
326
  from {
403
327
  opacity: 0;
@@ -863,6 +787,47 @@ body {
863
787
  background-color: var(--secondary-dark);
864
788
  }
865
789
 
790
+ .ActionCard {
791
+ cursor: pointer;
792
+ border-radius: var(--spacing-m);
793
+ width: 100%;
794
+ border: var(--spacing-xs) solid var(--secondary-dark);
795
+ }
796
+
797
+ .ActionCard:hover {
798
+ box-shadow: var(--shadow-m);
799
+ transition: var(--duration--fast-01) var(--standard-productive-curve);
800
+ }
801
+
802
+ .ActionCard:focus,
803
+ .ActionCard:focus-visible {
804
+ outline: none;
805
+ border: var(--spacing-xs) solid var(--secondary-light);
806
+ box-shadow: var(--shadow-spread) var(--secondary-shadow);
807
+ }
808
+
809
+ .ActionCard:active {
810
+ box-shadow: var(--shadow-l);
811
+ transition: var(--duration--fast-01) var(--standard-productive-curve);
812
+ }
813
+
814
+ .ActionCard--disabled {
815
+ pointer-events: none;
816
+ position: relative;
817
+ border: var(--spacing-xs) solid var(--secondary-lighter);
818
+ }
819
+
820
+ .ActionCard-overlay--disabled {
821
+ position: absolute;
822
+ top: 0;
823
+ right: 0;
824
+ bottom: 0;
825
+ left: 0;
826
+ z-index: 2;
827
+ opacity: 50%;
828
+ background: var(--secondary-light);
829
+ }
830
+
866
831
  /* badge */
867
832
 
868
833
  .Avatar {
@@ -1631,6 +1596,11 @@ body {
1631
1596
  border-radius: 0 var(--spacing-m) var(--spacing-m) 0;
1632
1597
  }
1633
1598
 
1599
+ .Calendar-valueWrapper--hoverDate {
1600
+ background: linear-gradient(90deg, var(--primary-lightest) 10%, white 50%);
1601
+ border-radius: 0 var(--spacing-m) var(--spacing-m) 0;
1602
+ }
1603
+
1634
1604
  .Calendar-valueWrapper--endError {
1635
1605
  background: linear-gradient(90deg, var(--alert-lightest) 50%, white 50%);
1636
1606
  }
@@ -1661,6 +1631,10 @@ body {
1661
1631
  background: var(--secondary);
1662
1632
  }
1663
1633
 
1634
+ .Calendar-value:active .Calendar-value--currDate {
1635
+ color: var(--primary-dark);
1636
+ }
1637
+
1664
1638
  .Calendar-value--start:hover,
1665
1639
  .Calendar-value--end:hover {
1666
1640
  background: var(--primary-lightest);
@@ -1693,6 +1667,10 @@ body {
1693
1667
  background: var(--primary-lighter);
1694
1668
  }
1695
1669
 
1670
+ .Calendar-value--currDate:active {
1671
+ color: var(--primary-dark);
1672
+ }
1673
+
1696
1674
  .Calendar-value--active {
1697
1675
  background: var(--primary);
1698
1676
  font-weight: var(--font-weight-bold);
@@ -1770,6 +1748,26 @@ body {
1770
1748
  background-color: var(--white);
1771
1749
  }
1772
1750
 
1751
+ .Calendar-valueWrapper--inStartRange {
1752
+ background: linear-gradient(90deg, white 50%, var(--primary-lightest) 50%);
1753
+ }
1754
+
1755
+ .Calendar-valueWrapper--inEndRange {
1756
+ background: linear-gradient(90deg, var(--primary-lightest) 50%, white 50%);
1757
+ }
1758
+
1759
+ .Calendar-valueWrapper--inEdgeRange .Calendar-inRangeValue {
1760
+ background: var(--primary-lightest);
1761
+ }
1762
+
1763
+ .Calendar-valueWrapper--inEdgeRange .Calendar-inRangeValue:hover {
1764
+ background: var(--primary-lighter);
1765
+ }
1766
+
1767
+ .Calendar-valueWrapper--inEdgeRange .Calendar-inRangeValue:active {
1768
+ background: var(--primary-light);
1769
+ }
1770
+
1773
1771
  /* badge */
1774
1772
 
1775
1773
  .Card {
@@ -2311,6 +2309,11 @@ body {
2311
2309
  padding-right: var(--spacing);
2312
2310
  }
2313
2311
 
2312
+ .ChipInput--error,
2313
+ .ChipInput--error:focus-within {
2314
+ box-shadow: inset 0 0 0 var(--spacing-xs) var(--alert);
2315
+ }
2316
+
2314
2317
  .ChipInput-wrapper {
2315
2318
  display: flex;
2316
2319
  flex: 100%;
@@ -2323,6 +2326,10 @@ body {
2323
2326
  box-shadow: var(--shadow-spread) var(--primary-shadow);
2324
2327
  }
2325
2328
 
2329
+ .ChipInput-border--error:focus-within {
2330
+ box-shadow: var(--shadow-spread) var(--alert-shadow);
2331
+ }
2332
+
2326
2333
  .ChipInput-input {
2327
2334
  border: none;
2328
2335
  outline: none;