@innovaccer/design-system 2.18.0 → 2.20.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.
- package/CHANGELOG.md +83 -0
- package/css/dist/MaterialSymbolsOutlined.ttf +0 -0
- package/css/dist/MaterialSymbolsRounded.ttf +0 -0
- package/css/dist/index.css +134 -87
- package/css/dist/index.css.map +1 -1
- package/css/gulpfile.js +7 -11
- package/css/material-design-icons/iconfont/MaterialSymbolsOutlined.ttf +0 -0
- package/css/material-design-icons/iconfont/MaterialSymbolsRounded.ttf +0 -0
- package/css/material-design-icons/iconfont/material-icons.css +10 -88
- package/css/src/components/actionCard.css +40 -0
- package/css/src/components/calendar.css +33 -0
- package/css/src/components/chipInput.css +23 -0
- package/css/src/components/toast.css +2 -0
- package/css/src/utils/text.css +23 -0
- package/dist/.lib/tsconfig.type.tsbuildinfo +70 -24
- package/dist/core/common.type.d.ts +6 -0
- package/dist/core/components/atoms/actionCard/ActionCard.d.ts +13 -0
- package/dist/core/components/atoms/actionCard/index.d.ts +2 -0
- package/dist/core/components/atoms/button/Button.d.ts +3 -1
- package/dist/core/components/atoms/icon/Icon.d.ts +7 -0
- package/dist/core/components/atoms/icon/utils.d.ts +7 -0
- package/dist/core/components/atoms/input/actionButton/ActionButton.d.ts +3 -1
- package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +20 -20
- package/dist/core/components/molecules/chipInput/ChipInput.d.ts +1 -0
- package/dist/core/components/organisms/calendar/utility.d.ts +1 -0
- package/dist/core/components/organisms/timePicker/TimePickerWithInput.d.ts +1 -0
- package/dist/core/components/organisms/timePicker/TimePickerWithSearch.d.ts +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.type.d.ts +1 -0
- package/dist/index.esm.js +346 -158
- package/dist/index.js +274 -86
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.br +0 -0
- package/dist/index.umd.js.gz +0 -0
- package/package.json +1 -1
- package/css/dist/MaterialIcons-Regular.ttf +0 -0
- package/css/dist/MaterialIconsOutlined-Regular.otf +0 -0
- package/css/dist/MaterialIconsRound-Regular.otf +0 -0
- package/css/dist/MaterialIconsSharp-Regular.otf +0 -0
- package/css/dist/MaterialIconsTwoTone-Regular.otf +0 -0
- package/css/material-design-icons/iconfont/MaterialIcons-Regular.ttf +0 -0
- package/css/material-design-icons/iconfont/MaterialIconsOutlined-Regular.otf +0 -0
- package/css/material-design-icons/iconfont/MaterialIconsRound-Regular.otf +0 -0
- package/css/material-design-icons/iconfont/MaterialIconsSharp-Regular.otf +0 -0
- package/css/material-design-icons/iconfont/MaterialIconsTwoTone-Regular.otf +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,86 @@
|
|
|
1
|
+
## 2.20.0 (2023-09-08)
|
|
2
|
+
|
|
3
|
+
### Highlights
|
|
4
|
+
|
|
5
|
+
- feat(icon): migration to material symbols from material icons
|
|
6
|
+
- feat(card): add action card component
|
|
7
|
+
|
|
8
|
+
### Breaking changes
|
|
9
|
+
|
|
10
|
+
NA
|
|
11
|
+
|
|
12
|
+
### Migration guide
|
|
13
|
+
|
|
14
|
+
- feat(icon): material icons are migrated to material symbols. Need to update the test snapshots to update icon name (if used anywhere).
|
|
15
|
+
|
|
16
|
+
### Deprecations
|
|
17
|
+
|
|
18
|
+
NA
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
- feat(icon): migration to material symbols from material icons
|
|
23
|
+
- feat(card): add action card component
|
|
24
|
+
- feat(button): add icon variations property in button component
|
|
25
|
+
- feat(input): add icon variations property in action button in input component
|
|
26
|
+
|
|
27
|
+
### Fixes
|
|
28
|
+
|
|
29
|
+
- fix(datepicker): update selection chip to action chip in preset story in patterns
|
|
30
|
+
- fix(dateRangePicker): fix range selection behaviour
|
|
31
|
+
- fix(chipinput): update chipinput error state
|
|
32
|
+
- fix(input): update icon to icon component in action button
|
|
33
|
+
|
|
34
|
+
### Improvements
|
|
35
|
+
|
|
36
|
+
NA
|
|
37
|
+
|
|
38
|
+
### Documentation
|
|
39
|
+
|
|
40
|
+
NA
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 2.19.0 (2023-08-25)
|
|
45
|
+
|
|
46
|
+
### Highlights
|
|
47
|
+
|
|
48
|
+
- style(text): add text alignment css classes (f64a919)
|
|
49
|
+
- feat(timepicker): add error state support for timepicker (9b1078a5)
|
|
50
|
+
|
|
51
|
+
### Breaking changes
|
|
52
|
+
|
|
53
|
+
NA
|
|
54
|
+
|
|
55
|
+
### Migration guide
|
|
56
|
+
|
|
57
|
+
NA
|
|
58
|
+
|
|
59
|
+
### Deprecations
|
|
60
|
+
|
|
61
|
+
NA
|
|
62
|
+
|
|
63
|
+
### Features
|
|
64
|
+
|
|
65
|
+
- style(text): add text alignment css classes (f64a919)
|
|
66
|
+
- feat(timepicker): add error state support for timepicker (9b1078a5)
|
|
67
|
+
|
|
68
|
+
### Fixes
|
|
69
|
+
|
|
70
|
+
- fix(chipInput): update chipInput background of hover state (e330274)
|
|
71
|
+
- fix(toast): fix height of toast action icon (e73b5ef4)
|
|
72
|
+
- fix(toast): fix toast right icon spacing (bd9cfdb5)
|
|
73
|
+
|
|
74
|
+
### Improvements
|
|
75
|
+
|
|
76
|
+
- fix(packages): update package-lock file (2b05ef23)
|
|
77
|
+
|
|
78
|
+
### Documentation
|
|
79
|
+
|
|
80
|
+
- docs(toast): add usage guidelines for overuse and actions of toast (645be26)
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
1
84
|
## 2.18.0 (2023-08-08)
|
|
2
85
|
|
|
3
86
|
### Highlights
|
|
Binary file
|
|
Binary file
|
package/css/dist/index.css
CHANGED
|
@@ -274,40 +274,16 @@
|
|
|
274
274
|
--duration--slow-02: 720ms;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
/* fallback */
|
|
278
277
|
@font-face {
|
|
279
|
-
font-family: 'Material
|
|
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
|
-
|
|
303
|
-
src: url(MaterialIconsSharp-Regular.otf);
|
|
280
|
+
src: url(MaterialSymbolsOutlined.ttf);
|
|
304
281
|
}
|
|
305
|
-
|
|
282
|
+
|
|
306
283
|
@font-face {
|
|
307
|
-
font-family: 'Material
|
|
284
|
+
font-family: 'Material Symbols Rounded';
|
|
308
285
|
font-style: normal;
|
|
309
|
-
|
|
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
|
|
331
|
-
font-
|
|
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-
|
|
362
|
-
font-family: 'Material
|
|
363
|
-
font-
|
|
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 {
|
|
@@ -2291,8 +2289,14 @@ body {
|
|
|
2291
2289
|
outline: var(--spacing-xs) var(--primary);
|
|
2292
2290
|
}
|
|
2293
2291
|
|
|
2292
|
+
.ChipInput:hover {
|
|
2293
|
+
background: var(--secondary-lighter);
|
|
2294
|
+
border-color: var(--secondary-dark);
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2294
2297
|
.ChipInput:focus-within {
|
|
2295
2298
|
box-shadow: inset 0 0 0 var(--spacing-xs) var(--primary);
|
|
2299
|
+
background: var(--white);
|
|
2296
2300
|
}
|
|
2297
2301
|
|
|
2298
2302
|
.ChipInput--disabled {
|
|
@@ -2305,6 +2309,11 @@ body {
|
|
|
2305
2309
|
padding-right: var(--spacing);
|
|
2306
2310
|
}
|
|
2307
2311
|
|
|
2312
|
+
.ChipInput--error,
|
|
2313
|
+
.ChipInput--error:focus-within {
|
|
2314
|
+
box-shadow: inset 0 0 0 var(--spacing-xs) var(--alert);
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2308
2317
|
.ChipInput-wrapper {
|
|
2309
2318
|
display: flex;
|
|
2310
2319
|
flex: 100%;
|
|
@@ -2317,6 +2326,10 @@ body {
|
|
|
2317
2326
|
box-shadow: var(--shadow-spread) var(--primary-shadow);
|
|
2318
2327
|
}
|
|
2319
2328
|
|
|
2329
|
+
.ChipInput-border--error:focus-within {
|
|
2330
|
+
box-shadow: var(--shadow-spread) var(--alert-shadow);
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2320
2333
|
.ChipInput-input {
|
|
2321
2334
|
border: none;
|
|
2322
2335
|
outline: none;
|
|
@@ -2332,6 +2345,14 @@ body {
|
|
|
2332
2345
|
font-size: var(--font-size);
|
|
2333
2346
|
}
|
|
2334
2347
|
|
|
2348
|
+
.ChipInput:hover .ChipInput-input {
|
|
2349
|
+
background: var(--secondary-lighter);
|
|
2350
|
+
}
|
|
2351
|
+
|
|
2352
|
+
.ChipInput:focus-within .ChipInput-input {
|
|
2353
|
+
background: var(--white);
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2335
2356
|
.ChipInput-icon {
|
|
2336
2357
|
height: var(--spacing-2);
|
|
2337
2358
|
padding: var(--spacing-s);
|
|
@@ -6557,6 +6578,8 @@ body {
|
|
|
6557
6578
|
align-items: center;
|
|
6558
6579
|
padding-right: var(--spacing-m);
|
|
6559
6580
|
padding-left: var(--spacing-m);
|
|
6581
|
+
height: var(--spacing-xl);
|
|
6582
|
+
box-sizing: initial;
|
|
6560
6583
|
}
|
|
6561
6584
|
|
|
6562
6585
|
.Toast-icon--info,
|
|
@@ -8851,6 +8874,30 @@ body {
|
|
|
8851
8874
|
padding-left: auto !important;
|
|
8852
8875
|
}
|
|
8853
8876
|
|
|
8877
|
+
.text-align-start {
|
|
8878
|
+
text-align: start !important;
|
|
8879
|
+
}
|
|
8880
|
+
|
|
8881
|
+
.text-align-end {
|
|
8882
|
+
text-align: end !important;
|
|
8883
|
+
}
|
|
8884
|
+
|
|
8885
|
+
.text-align-center {
|
|
8886
|
+
text-align: center !important;
|
|
8887
|
+
}
|
|
8888
|
+
|
|
8889
|
+
.text-align-justify {
|
|
8890
|
+
text-align: justify !important;
|
|
8891
|
+
}
|
|
8892
|
+
|
|
8893
|
+
.text-align-left {
|
|
8894
|
+
text-align: left !important;
|
|
8895
|
+
}
|
|
8896
|
+
|
|
8897
|
+
.text-align-right {
|
|
8898
|
+
text-align: right !important;
|
|
8899
|
+
}
|
|
8900
|
+
|
|
8854
8901
|
.color-white {
|
|
8855
8902
|
color: var(--white);
|
|
8856
8903
|
}
|