@innovaccer/design-system 2.21.0 → 2.23.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 (50) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/css/dist/MaterialSymbolsRounded.woff2 +0 -0
  3. package/css/dist/index.css +108 -21
  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/pageHeader.css +7 -6
  9. package/css/src/components/selectionCard.css +91 -0
  10. package/dist/.lib/tsconfig.type.tsbuildinfo +157 -66
  11. package/dist/core/common.type.d.ts +1 -6
  12. package/dist/core/components/atoms/_chip/index.d.ts +2 -2
  13. package/dist/core/components/atoms/button/Button.d.ts +2 -2
  14. package/dist/core/components/atoms/chip/Chip.d.ts +2 -2
  15. package/dist/core/components/atoms/dropdown/Dropdown.d.ts +3 -0
  16. package/dist/core/components/atoms/dropdown/DropdownButton.d.ts +2 -2
  17. package/dist/core/components/atoms/dropdown/DropdownList.d.ts +8 -0
  18. package/dist/core/components/atoms/dropdown/ErrorTemplate.d.ts +9 -0
  19. package/dist/core/components/atoms/dropdown/option/index.d.ts +2 -2
  20. package/dist/core/components/atoms/icon/Icon.d.ts +0 -8
  21. package/dist/core/components/atoms/input/Input.d.ts +2 -2
  22. package/dist/core/components/atoms/input/actionButton/ActionButton.d.ts +2 -2
  23. package/dist/core/components/atoms/linkButton/LinkButton.d.ts +2 -2
  24. package/dist/core/components/atoms/metaList/Meta.d.ts +2 -2
  25. package/dist/core/components/atoms/metricInput/MetricInput.d.ts +2 -2
  26. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +15 -15
  27. package/dist/core/components/atoms/selectionCard/SelectionCard.d.ts +23 -0
  28. package/dist/core/components/atoms/selectionCard/hooks/index.d.ts +2 -0
  29. package/dist/core/components/atoms/selectionCard/hooks/useMultiSelect.d.ts +6 -0
  30. package/dist/core/components/atoms/selectionCard/hooks/useSingleSelect.d.ts +6 -0
  31. package/dist/core/components/atoms/selectionCard/index.d.ts +2 -0
  32. package/dist/core/components/molecules/chipInput/ChipInput.d.ts +1 -1
  33. package/dist/core/components/molecules/tabs/Tabs.d.ts +2 -2
  34. package/dist/core/components/organisms/pageHeader/PageHeader.d.ts +1 -0
  35. package/dist/core/components/organisms/pageHeader/utils.d.ts +32 -0
  36. package/dist/core/index.d.ts +1 -0
  37. package/dist/core/index.type.d.ts +1 -0
  38. package/dist/core/utils/navigationHelper.d.ts +2 -2
  39. package/dist/index.esm.js +535 -301
  40. package/dist/index.js +434 -224
  41. package/dist/index.js.map +1 -1
  42. package/dist/index.umd.js +1 -1
  43. package/dist/index.umd.js.br +0 -0
  44. package/dist/index.umd.js.gz +0 -0
  45. package/package.json +1 -1
  46. package/css/dist/MaterialSymbolsOutlined.ttf +0 -0
  47. package/css/dist/MaterialSymbolsRounded.ttf +0 -0
  48. package/css/material-design-icons/iconfont/MaterialSymbolsOutlined.ttf +0 -0
  49. package/css/material-design-icons/iconfont/MaterialSymbolsRounded.ttf +0 -0
  50. package/dist/core/components/atoms/icon/utils.d.ts +0 -7
package/css/gulpfile.js CHANGED
@@ -7,7 +7,7 @@ const postcssColorMod = require('postcss-color-mod-function');
7
7
  const cleaner = require('gulp-clean');
8
8
 
9
9
  const materialIcons = './material-design-icons/iconfont/material-icons.css';
10
- const materialFont = './material-design-icons/iconfont/*.{ttf,otf}';
10
+ const materialFont = './material-design-icons/iconfont/*.{ttf,otf,woff2}';
11
11
 
12
12
  const sources = [
13
13
  './src/tokens/*.css',
@@ -1,20 +1,16 @@
1
- @font-face {
2
- font-family: 'Material Symbols Outlined';
3
- font-style: normal;
4
- src: url(MaterialSymbolsOutlined.ttf);
5
- }
6
-
1
+ /* fallback */
7
2
  @font-face {
8
3
  font-family: 'Material Symbols Rounded';
9
4
  font-style: normal;
10
- src: url(MaterialSymbolsRounded.ttf);
5
+ font-weight: 300;
6
+ src: url(MaterialSymbolsRounded.woff2) format('woff2');
11
7
  }
12
8
 
13
9
  .material-icons {
14
- font-family: 'Material Icons';
10
+ font-family: 'Material Symbols Rounded';
15
11
  font-weight: normal;
16
12
  font-style: normal;
17
- font-size: 16px; /* preferred icon size */
13
+ font-size: 24px;
18
14
  line-height: 1;
19
15
  letter-spacing: normal;
20
16
  text-transform: none;
@@ -26,12 +22,10 @@
26
22
  -webkit-font-smoothing: antialiased;
27
23
  }
28
24
 
29
- .material-icons-outlined {
30
- font-family: 'Material Symbols Outlined';
31
- font-size: 24px; /* Preferred icon size */
25
+ .material-icons-rounded {
26
+ font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24;
32
27
  }
33
28
 
34
- .material-icons-rounded {
35
- font-family: 'Material Symbols Rounded';
36
- font-size: 24px; /* Preferred icon size */
29
+ .material-icons-outlined {
30
+ font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
37
31
  }
@@ -1,9 +1,9 @@
1
- .PageHeader-wrapper {
2
- padding: var(--spacing) var(--spacing-2);
1
+ .PageHeader {
2
+ width: 100%;
3
3
  }
4
4
 
5
- .PageHeader-wrapper--separator {
6
- border-bottom: var(--border);
5
+ .PageHeader-wrapper {
6
+ padding: var(--spacing) var(--spacing-2) var(--spacing) 0;
7
7
  }
8
8
 
9
9
  .PageHeader-wrapper--withTabs {
@@ -36,12 +36,12 @@
36
36
  align-items: center;
37
37
  }
38
38
 
39
- .PageHeader-statusWrapper .StatusHints {
39
+ .PageHeader-statusWrapper .StatusHint {
40
40
  margin-right: var(--spacing);
41
41
  }
42
42
 
43
43
  .PageHeader-navigationWrapper {
44
- margin-top: var(--spacing-l);
44
+ margin-top: var(--spacing-m);
45
45
  }
46
46
 
47
47
  .PageHeader .PageHeader-navigationWrapper {
@@ -50,6 +50,7 @@
50
50
  margin-top: 0 !important;
51
51
  padding-right: var(--spacing);
52
52
  padding-left: var(--spacing);
53
+ display: flex;
53
54
  }
54
55
 
55
56
  .PageHeader-title {
@@ -0,0 +1,91 @@
1
+ .Selection-card {
2
+ cursor: pointer;
3
+ border-radius: var(--spacing-m);
4
+ position: relative;
5
+ box-shadow: inset 0 0 0 var(--spacing-xs) var(--secondary-dark);
6
+ transition: var(--duration--fast-01) var(--standard-productive-curve);
7
+ }
8
+
9
+ .Selection-card:hover {
10
+ box-shadow: inset 0 0 0 var(--spacing-s) var(--inverse-lightest);
11
+ transition: var(--duration--fast-01) var(--standard-productive-curve);
12
+ }
13
+
14
+ .Selection-card:focus,
15
+ .Selection-card:focus-visible {
16
+ outline: none;
17
+ box-shadow: var(--shadow-spread) var(--secondary-shadow), inset 0 0 0 var(--spacing-xs) var(--secondary-light);
18
+ }
19
+
20
+ .Selection-card:active {
21
+ box-shadow: inset 0 0 0 var(--spacing-s) var(--primary);
22
+ transition: var(--duration--fast-01) var(--standard-productive-curve);
23
+ }
24
+
25
+ .Selection-card--disabled {
26
+ pointer-events: none;
27
+ box-shadow: inset 0 0 0 var(--spacing-xs) var(--secondary-lighter);
28
+ }
29
+
30
+ /* selected states */
31
+
32
+ .Selection-card--selected {
33
+ box-shadow: inset 0 0 0 var(--spacing-s) var(--primary);
34
+ }
35
+
36
+ .Selection-card--selected:hover {
37
+ box-shadow: inset 0 0 0 var(--spacing-s) var(--primary-dark);
38
+ }
39
+
40
+ .Selection-card--selected:focus,
41
+ .Selection-card--selected:focus-visible {
42
+ outline: none;
43
+ box-shadow: var(--shadow-spread) var(--primary-shadow), inset 0 0 0 var(--spacing-s) var(--primary);
44
+ }
45
+
46
+ .Selection-card--selected:active {
47
+ box-shadow: inset 0 0 0 var(--spacing-s) var(--primary-darker);
48
+ }
49
+
50
+ .Selection-card--selected-disabled {
51
+ pointer-events: none;
52
+ box-shadow: inset 0 0 0 var(--spacing-xs) var(--primary-lighter);
53
+ }
54
+
55
+ /* overlay classes */
56
+
57
+ .Selection-card-overlay {
58
+ top: 0;
59
+ right: 0;
60
+ bottom: 0;
61
+ left: 0;
62
+ z-index: 2;
63
+ position: absolute;
64
+ pointer-events: none;
65
+ border-radius: var(--spacing-m);
66
+ }
67
+
68
+ .Selection-card:active .Selection-card-overlay {
69
+ background-color: var(--primary);
70
+ opacity: 10%;
71
+ }
72
+
73
+ .Selection-card--disabled .Selection-card-overlay {
74
+ background-color: var(--secondary-lightest);
75
+ opacity: 50%;
76
+ }
77
+
78
+ .Selection-card--selected .Selection-card-overlay {
79
+ background-color: var(--primary);
80
+ opacity: 4%;
81
+ }
82
+
83
+ .Selection-card--selected:active .Selection-card-overlay {
84
+ background-color: var(--primary);
85
+ opacity: 4%;
86
+ }
87
+
88
+ .Selection-card--selected-disabled .Selection-card-overlay {
89
+ background-color: var(--primary-lightest);
90
+ opacity: 50%;
91
+ }