@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/css/gulpfile.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const postcss = require('gulp-postcss');
2
2
  const gulp = require('gulp');
3
- const autoprefixer = require('autoprefixer')
4
- const sourcemaps = require('gulp-sourcemaps')
3
+ const autoprefixer = require('autoprefixer');
4
+ const sourcemaps = require('gulp-sourcemaps');
5
5
  const concat = require('gulp-concat');
6
6
  const postcssColorMod = require('postcss-color-mod-function');
7
7
  const cleaner = require('gulp-clean');
@@ -18,10 +18,8 @@ const sources = [
18
18
  './src/utils/*.css',
19
19
  ];
20
20
 
21
- function clean () {
22
- return gulp
23
- .src('./dist/*', { allowEmpty: true })
24
- .pipe(cleaner());
21
+ function clean() {
22
+ return gulp.src('./dist/*', { allowEmpty: true }).pipe(cleaner());
25
23
  }
26
24
 
27
25
  function css() {
@@ -36,9 +34,7 @@ function css() {
36
34
  }
37
35
 
38
36
  function font() {
39
- return gulp
40
- .src(materialFont)
41
- .pipe(gulp.dest('./dist'));
37
+ return gulp.src([materialFont]).pipe(gulp.dest('./dist'));
42
38
  }
43
39
 
44
40
  exports.build = gulp.series(clean, gulp.parallel(css, font));
@@ -46,5 +42,5 @@ exports.build = gulp.series(clean, gulp.parallel(css, font));
46
42
  exports.clean = clean;
47
43
 
48
44
  gulp.task('watch', () => {
49
- gulp.watch(sources, gulp.series(css))
50
- });
45
+ gulp.watch(sources, gulp.series(css));
46
+ });
@@ -1,37 +1,13 @@
1
- /* fallback */
2
1
  @font-face {
3
- font-family: 'Material Icons';
4
- font-style: normal;
5
- font-weight: 400;
6
- src: url(MaterialIcons-Regular.ttf);
7
- }
8
- /* fallback */
9
- @font-face {
10
- font-family: 'Material Icons Outlined';
11
- font-style: normal;
12
- font-weight: 400;
13
- src: url(MaterialIconsOutlined-Regular.otf);
14
- }
15
- /* fallback */
16
- @font-face {
17
- font-family: 'Material Icons Round';
18
- font-style: normal;
19
- font-weight: 400;
20
- src: url(MaterialIconsRound-Regular.otf);
21
- }
22
- /* fallback */
23
- @font-face {
24
- font-family: 'Material Icons Sharp';
2
+ font-family: 'Material Symbols Outlined';
25
3
  font-style: normal;
26
- font-weight: 400;
27
- src: url(MaterialIconsSharp-Regular.otf);
4
+ src: url(MaterialSymbolsOutlined.ttf);
28
5
  }
29
- /* fallback */
6
+
30
7
  @font-face {
31
- font-family: 'Material Icons Two Tone';
8
+ font-family: 'Material Symbols Rounded';
32
9
  font-style: normal;
33
- font-weight: 400;
34
- src: url(MaterialIconsTwoTone-Regular.otf);
10
+ src: url(MaterialSymbolsRounded.ttf);
35
11
  }
36
12
 
37
13
  .material-icons {
@@ -51,65 +27,11 @@
51
27
  }
52
28
 
53
29
  .material-icons-outlined {
54
- font-family: 'Material Icons Outlined';
55
- font-weight: normal;
56
- font-style: normal;
57
- font-size: 16px; /* preferred icon size */
58
- line-height: 1;
59
- letter-spacing: normal;
60
- text-transform: none;
61
- display: inline-block;
62
- white-space: nowrap;
63
- word-wrap: normal;
64
- direction: ltr;
65
- -webkit-font-feature-settings: 'liga';
66
- -webkit-font-smoothing: antialiased;
67
- }
68
-
69
- .material-icons-round {
70
- font-family: 'Material Icons Round';
71
- font-weight: normal;
72
- font-style: normal;
73
- font-size: 16px; /* preferred icon size */
74
- line-height: 1;
75
- letter-spacing: normal;
76
- text-transform: none;
77
- display: inline-block;
78
- white-space: nowrap;
79
- word-wrap: normal;
80
- direction: ltr;
81
- -webkit-font-feature-settings: 'liga';
82
- -webkit-font-smoothing: antialiased;
30
+ font-family: 'Material Symbols Outlined';
31
+ font-size: 24px; /* Preferred icon size */
83
32
  }
84
33
 
85
- .material-icons-sharp {
86
- font-family: 'Material Icons Sharp';
87
- font-weight: normal;
88
- font-style: normal;
89
- font-size: 16px; /* preferred icon size */
90
- line-height: 1;
91
- letter-spacing: normal;
92
- text-transform: none;
93
- display: inline-block;
94
- white-space: nowrap;
95
- word-wrap: normal;
96
- direction: ltr;
97
- -webkit-font-feature-settings: 'liga';
98
- -webkit-font-smoothing: antialiased;
34
+ .material-icons-rounded {
35
+ font-family: 'Material Symbols Rounded';
36
+ font-size: 24px; /* Preferred icon size */
99
37
  }
100
-
101
- .material-icons-two-tone {
102
- font-family: 'Material Icons Two Tone';
103
- font-weight: normal;
104
- font-style: normal;
105
- font-size: 16px; /* preferred icon size */
106
- line-height: 1;
107
- letter-spacing: normal;
108
- text-transform: none;
109
- display: inline-block;
110
- white-space: nowrap;
111
- word-wrap: normal;
112
- direction: ltr;
113
- -webkit-font-feature-settings: 'liga';
114
- -webkit-font-smoothing: antialiased;
115
- }
@@ -0,0 +1,40 @@
1
+ .ActionCard {
2
+ cursor: pointer;
3
+ border-radius: var(--spacing-m);
4
+ width: 100%;
5
+ border: var(--spacing-xs) solid var(--secondary-dark);
6
+ }
7
+
8
+ .ActionCard:hover {
9
+ box-shadow: var(--shadow-m);
10
+ transition: var(--duration--fast-01) var(--standard-productive-curve);
11
+ }
12
+
13
+ .ActionCard:focus,
14
+ .ActionCard:focus-visible {
15
+ outline: none;
16
+ border: var(--spacing-xs) solid var(--secondary-light);
17
+ box-shadow: var(--shadow-spread) var(--secondary-shadow);
18
+ }
19
+
20
+ .ActionCard:active {
21
+ box-shadow: var(--shadow-l);
22
+ transition: var(--duration--fast-01) var(--standard-productive-curve);
23
+ }
24
+
25
+ .ActionCard--disabled {
26
+ pointer-events: none;
27
+ position: relative;
28
+ border: var(--spacing-xs) solid var(--secondary-lighter);
29
+ }
30
+
31
+ .ActionCard-overlay--disabled {
32
+ position: absolute;
33
+ top: 0;
34
+ right: 0;
35
+ bottom: 0;
36
+ left: 0;
37
+ z-index: 2;
38
+ opacity: 50%;
39
+ background: var(--secondary-light);
40
+ }
@@ -142,6 +142,11 @@
142
142
  border-radius: 0 var(--spacing-m) var(--spacing-m) 0;
143
143
  }
144
144
 
145
+ .Calendar-valueWrapper--hoverDate {
146
+ background: linear-gradient(90deg, var(--primary-lightest) 10%, white 50%);
147
+ border-radius: 0 var(--spacing-m) var(--spacing-m) 0;
148
+ }
149
+
145
150
  .Calendar-valueWrapper--endError {
146
151
  background: linear-gradient(90deg, var(--alert-lightest) 50%, white 50%);
147
152
  }
@@ -169,6 +174,10 @@
169
174
  background: var(--secondary);
170
175
  }
171
176
 
177
+ .Calendar-value:active .Calendar-value--currDate {
178
+ color: var(--primary-dark);
179
+ }
180
+
172
181
  .Calendar-value--start:hover,
173
182
  .Calendar-value--end:hover {
174
183
  background: var(--primary-lightest);
@@ -201,6 +210,10 @@
201
210
  background: var(--primary-lighter);
202
211
  }
203
212
 
213
+ .Calendar-value--currDate:active {
214
+ color: var(--primary-dark);
215
+ }
216
+
204
217
  .Calendar-value--active {
205
218
  background: var(--primary);
206
219
  font-weight: var(--font-weight-bold);
@@ -277,3 +290,23 @@
277
290
  .Calendar-eventsIndicator--active {
278
291
  background-color: var(--white);
279
292
  }
293
+
294
+ .Calendar-valueWrapper--inStartRange {
295
+ background: linear-gradient(90deg, white 50%, var(--primary-lightest) 50%);
296
+ }
297
+
298
+ .Calendar-valueWrapper--inEndRange {
299
+ background: linear-gradient(90deg, var(--primary-lightest) 50%, white 50%);
300
+ }
301
+
302
+ .Calendar-valueWrapper--inEdgeRange .Calendar-inRangeValue {
303
+ background: var(--primary-lightest);
304
+ }
305
+
306
+ .Calendar-valueWrapper--inEdgeRange .Calendar-inRangeValue:hover {
307
+ background: var(--primary-lighter);
308
+ }
309
+
310
+ .Calendar-valueWrapper--inEdgeRange .Calendar-inRangeValue:active {
311
+ background: var(--primary-light);
312
+ }
@@ -34,6 +34,11 @@
34
34
  padding-right: var(--spacing);
35
35
  }
36
36
 
37
+ .ChipInput--error,
38
+ .ChipInput--error:focus-within {
39
+ box-shadow: inset 0 0 0 var(--spacing-xs) var(--alert);
40
+ }
41
+
37
42
  .ChipInput-wrapper {
38
43
  display: flex;
39
44
  flex: 100%;
@@ -46,6 +51,10 @@
46
51
  box-shadow: var(--shadow-spread) var(--primary-shadow);
47
52
  }
48
53
 
54
+ .ChipInput-border--error:focus-within {
55
+ box-shadow: var(--shadow-spread) var(--alert-shadow);
56
+ }
57
+
49
58
  .ChipInput-input {
50
59
  border: none;
51
60
  outline: none;