@innovaccer/design-system 2.20.0 → 2.22.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 +110 -12
- package/css/dist/MaterialSymbolsRounded.woff2 +0 -0
- package/css/dist/index.css +101 -15
- package/css/dist/index.css.map +1 -1
- package/css/gulpfile.js +1 -1
- package/css/material-design-icons/iconfont/MaterialSymbolsRounded.woff2 +0 -0
- package/css/material-design-icons/iconfont/material-icons.css +9 -15
- package/css/src/components/selectionCard.css +91 -0
- package/dist/.lib/tsconfig.type.tsbuildinfo +145 -64
- package/dist/core/common.type.d.ts +1 -6
- package/dist/core/components/atoms/_chip/index.d.ts +2 -0
- package/dist/core/components/atoms/button/Button.d.ts +2 -2
- package/dist/core/components/atoms/chip/Chip.d.ts +2 -0
- package/dist/core/components/atoms/dropdown/Dropdown.d.ts +3 -0
- package/dist/core/components/atoms/dropdown/DropdownButton.d.ts +2 -0
- package/dist/core/components/atoms/dropdown/DropdownList.d.ts +8 -0
- package/dist/core/components/atoms/dropdown/ErrorTemplate.d.ts +9 -0
- package/dist/core/components/atoms/dropdown/option/index.d.ts +2 -1
- package/dist/core/components/atoms/icon/Icon.d.ts +0 -7
- package/dist/core/components/atoms/input/Input.d.ts +2 -1
- package/dist/core/components/atoms/input/actionButton/ActionButton.d.ts +2 -2
- package/dist/core/components/atoms/linkButton/LinkButton.d.ts +2 -0
- package/dist/core/components/atoms/metaList/Meta.d.ts +2 -0
- package/dist/core/components/atoms/metricInput/MetricInput.d.ts +2 -1
- package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +15 -15
- package/dist/core/components/atoms/selectionCard/SelectionCard.d.ts +23 -0
- package/dist/core/components/atoms/selectionCard/hooks/index.d.ts +2 -0
- package/dist/core/components/atoms/selectionCard/hooks/useMultiSelect.d.ts +6 -0
- package/dist/core/components/atoms/selectionCard/hooks/useSingleSelect.d.ts +6 -0
- package/dist/core/components/atoms/selectionCard/index.d.ts +2 -0
- package/dist/core/components/molecules/chipInput/ChipInput.d.ts +1 -0
- package/dist/core/components/molecules/tabs/Tabs.d.ts +2 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.type.d.ts +1 -0
- package/dist/core/utils/navigationHelper.d.ts +2 -0
- package/dist/index.esm.js +370 -244
- package/dist/index.js +278 -169
- 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/MaterialSymbolsOutlined.ttf +0 -0
- package/css/dist/MaterialSymbolsRounded.ttf +0 -0
- package/css/material-design-icons/iconfont/MaterialSymbolsOutlined.ttf +0 -0
- package/css/material-design-icons/iconfont/MaterialSymbolsRounded.ttf +0 -0
- package/dist/core/components/atoms/icon/utils.d.ts +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,60 @@
|
|
|
1
|
-
## 2.
|
|
1
|
+
## 2.22.0 (2023-09-28)
|
|
2
|
+
|
|
3
|
+
### Highlights
|
|
4
|
+
|
|
5
|
+
- feat(card): add selection card component (c88947a8)
|
|
6
|
+
- feat(Icon): migration to material symbols from material icons (55ea8882)
|
|
7
|
+
- feat: add iconType prop in components to switch between icon types (16c567a1)
|
|
8
|
+
- feat(dropdown): add error and empty state template in dropdown component (3f84aa6b)
|
|
9
|
+
|
|
10
|
+
### Breaking changes
|
|
11
|
+
|
|
12
|
+
NA
|
|
13
|
+
|
|
14
|
+
### Migration guide
|
|
15
|
+
|
|
16
|
+
NA
|
|
17
|
+
|
|
18
|
+
### Deprecations
|
|
19
|
+
|
|
20
|
+
NA
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
- feat(card): add selection card component (c88947a8)
|
|
25
|
+
- feat(Icon): migration to material symbols from material icons (55ea8882)
|
|
26
|
+
- feat: add iconType prop in components to switch between icon types (16c567a1)
|
|
27
|
+
|
|
28
|
+
### Fixes
|
|
29
|
+
|
|
30
|
+
NA
|
|
31
|
+
|
|
32
|
+
### Improvements
|
|
33
|
+
|
|
34
|
+
- feat(table): add story for column sorting for number type values (3dc74351)
|
|
35
|
+
- feat(dropdown): add error and empty state template in dropdown component (3f84aa6b)
|
|
36
|
+
|
|
37
|
+
### Documentation
|
|
38
|
+
|
|
39
|
+
NA
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 2.21.0 (2023-09-18)
|
|
2
44
|
|
|
3
45
|
### Highlights
|
|
4
46
|
|
|
5
|
-
- feat(
|
|
6
|
-
- feat(
|
|
47
|
+
- feat(metricInput): add icon variations property in metric input component (3469d1b7)
|
|
48
|
+
- feat(linkButton): add icon variations property in link button component (1c51679b)
|
|
49
|
+
- feat(chip): add icon variations property in chip component (9770c92a)
|
|
50
|
+
- feat(chipGroup): add icon variations property in chip group component (53682f18)
|
|
51
|
+
- feat(chip): add icon variations property in chip input component (cf29c673)
|
|
52
|
+
- feat(input): add icon variations property in input component (59902576)
|
|
53
|
+
- feat(verticalNav): add icon variations property in vertical nav component (828a7066)
|
|
54
|
+
- feat(horizontalNav): add icon variations property in horizontal nav component (d058d919)
|
|
55
|
+
- feat(tab): add icon variations property in tab component (b3a6615a)
|
|
56
|
+
- feat(dropdown): add icon variations property in dropdown component (bfcae4bd)
|
|
57
|
+
- feat(metalist): add icon variations property in metalist component (ce7daba2)
|
|
7
58
|
|
|
8
59
|
### Breaking changes
|
|
9
60
|
|
|
@@ -11,7 +62,7 @@ NA
|
|
|
11
62
|
|
|
12
63
|
### Migration guide
|
|
13
64
|
|
|
14
|
-
|
|
65
|
+
NA
|
|
15
66
|
|
|
16
67
|
### Deprecations
|
|
17
68
|
|
|
@@ -19,17 +70,21 @@ NA
|
|
|
19
70
|
|
|
20
71
|
### Features
|
|
21
72
|
|
|
22
|
-
- feat(
|
|
23
|
-
- feat(
|
|
24
|
-
- feat(
|
|
25
|
-
- feat(
|
|
73
|
+
- feat(metricInput): add icon variations property in metric input component (3469d1b7)
|
|
74
|
+
- feat(linkButton): add icon variations property in link button component (1c51679b)
|
|
75
|
+
- feat(chip): add icon variations property in chip component (9770c92a)
|
|
76
|
+
- feat(chipGroup): add icon variations property in chip group component (53682f18)
|
|
77
|
+
- feat(chip): add icon variations property in chip input component (cf29c673)
|
|
78
|
+
- feat(input): add icon variations property in input component (59902576)
|
|
79
|
+
- feat(verticalNav): add icon variations property in vertical nav component (828a7066)
|
|
80
|
+
- feat(horizontalNav): add icon variations property in horizontal nav component (d058d919)
|
|
81
|
+
- feat(tab): add icon variations property in tab component (b3a6615a)
|
|
82
|
+
- feat(dropdown): add icon variations property in dropdown component (bfcae4bd)
|
|
83
|
+
- feat(metalist): add icon variations property in metalist component (ce7daba2)
|
|
26
84
|
|
|
27
85
|
### Fixes
|
|
28
86
|
|
|
29
|
-
|
|
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
|
|
87
|
+
NA
|
|
33
88
|
|
|
34
89
|
### Improvements
|
|
35
90
|
|
|
@@ -41,6 +96,49 @@ NA
|
|
|
41
96
|
|
|
42
97
|
---
|
|
43
98
|
|
|
99
|
+
## 2.20.0 (2023-09-08)
|
|
100
|
+
|
|
101
|
+
### Highlights
|
|
102
|
+
|
|
103
|
+
- feat(icon): migration to material symbols from material icons (b4677f51)
|
|
104
|
+
- feat(card): add action card component (1f6f2a86)
|
|
105
|
+
|
|
106
|
+
### Breaking changes
|
|
107
|
+
|
|
108
|
+
NA
|
|
109
|
+
|
|
110
|
+
### Migration guide
|
|
111
|
+
|
|
112
|
+
- feat(icon): material icons are migrated to material symbols. Need to update the test snapshots to update icon name (if used anywhere). (b4677f51)
|
|
113
|
+
|
|
114
|
+
### Deprecations
|
|
115
|
+
|
|
116
|
+
NA
|
|
117
|
+
|
|
118
|
+
### Features
|
|
119
|
+
|
|
120
|
+
- feat(icon): migration to material symbols from material icons (b4677f51)
|
|
121
|
+
- feat(card): add action card component (1f6f2a86)
|
|
122
|
+
- feat(button): add icon variations property in button component (615bde8f)
|
|
123
|
+
- feat(input): add icon variations property in action button in input component (336dc41e)
|
|
124
|
+
|
|
125
|
+
### Fixes
|
|
126
|
+
|
|
127
|
+
- fix(datepicker): update selection chip to action chip in preset story in patterns (db5d8275)
|
|
128
|
+
- fix(dateRangePicker): fix range selection behaviour (2181bf0c)
|
|
129
|
+
- fix(chipinput): update chipinput error state (f5aa019d)
|
|
130
|
+
- fix(input): update icon to icon component in action button (336dc41e)
|
|
131
|
+
|
|
132
|
+
### Improvements
|
|
133
|
+
|
|
134
|
+
- chore(deps-dev): bump word-wrap from 1.2.3 to 1.2.5 (a0f9cd0e)
|
|
135
|
+
|
|
136
|
+
### Documentation
|
|
137
|
+
|
|
138
|
+
NA
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
44
142
|
## 2.19.0 (2023-08-25)
|
|
45
143
|
|
|
46
144
|
### Highlights
|
|
Binary file
|
package/css/dist/index.css
CHANGED
|
@@ -274,23 +274,19 @@
|
|
|
274
274
|
--duration--slow-02: 720ms;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
|
|
278
|
-
font-family: 'Material Symbols Outlined';
|
|
279
|
-
font-style: normal;
|
|
280
|
-
src: url(MaterialSymbolsOutlined.ttf);
|
|
281
|
-
}
|
|
282
|
-
|
|
277
|
+
/* fallback */
|
|
283
278
|
@font-face {
|
|
284
279
|
font-family: 'Material Symbols Rounded';
|
|
285
280
|
font-style: normal;
|
|
286
|
-
|
|
281
|
+
font-weight: 300;
|
|
282
|
+
src: url(MaterialSymbolsRounded.woff2) format('woff2');
|
|
287
283
|
}
|
|
288
284
|
|
|
289
285
|
.material-icons {
|
|
290
|
-
font-family: 'Material
|
|
286
|
+
font-family: 'Material Symbols Rounded';
|
|
291
287
|
font-weight: normal;
|
|
292
288
|
font-style: normal;
|
|
293
|
-
font-size:
|
|
289
|
+
font-size: 24px;
|
|
294
290
|
line-height: 1;
|
|
295
291
|
letter-spacing: normal;
|
|
296
292
|
text-transform: none;
|
|
@@ -302,14 +298,12 @@
|
|
|
302
298
|
-webkit-font-smoothing: antialiased;
|
|
303
299
|
}
|
|
304
300
|
|
|
305
|
-
.material-icons-
|
|
306
|
-
font-
|
|
307
|
-
font-size: 24px; /* Preferred icon size */
|
|
301
|
+
.material-icons-rounded {
|
|
302
|
+
font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24;
|
|
308
303
|
}
|
|
309
304
|
|
|
310
|
-
.material-icons-
|
|
311
|
-
font-
|
|
312
|
-
font-size: 24px; /* Preferred icon size */
|
|
305
|
+
.material-icons-outlined {
|
|
306
|
+
font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
|
|
313
307
|
}
|
|
314
308
|
|
|
315
309
|
@-webkit-keyframes fadeIn {
|
|
@@ -5684,6 +5678,98 @@ body {
|
|
|
5684
5678
|
box-shadow: none;
|
|
5685
5679
|
}
|
|
5686
5680
|
|
|
5681
|
+
.Selection-card {
|
|
5682
|
+
cursor: pointer;
|
|
5683
|
+
border-radius: var(--spacing-m);
|
|
5684
|
+
position: relative;
|
|
5685
|
+
box-shadow: inset 0 0 0 var(--spacing-xs) var(--secondary-dark);
|
|
5686
|
+
transition: var(--duration--fast-01) var(--standard-productive-curve);
|
|
5687
|
+
}
|
|
5688
|
+
|
|
5689
|
+
.Selection-card:hover {
|
|
5690
|
+
box-shadow: inset 0 0 0 var(--spacing-s) var(--inverse-lightest);
|
|
5691
|
+
transition: var(--duration--fast-01) var(--standard-productive-curve);
|
|
5692
|
+
}
|
|
5693
|
+
|
|
5694
|
+
.Selection-card:focus,
|
|
5695
|
+
.Selection-card:focus-visible {
|
|
5696
|
+
outline: none;
|
|
5697
|
+
box-shadow: var(--shadow-spread) var(--secondary-shadow), inset 0 0 0 var(--spacing-xs) var(--secondary-light);
|
|
5698
|
+
}
|
|
5699
|
+
|
|
5700
|
+
.Selection-card:active {
|
|
5701
|
+
box-shadow: inset 0 0 0 var(--spacing-s) var(--primary);
|
|
5702
|
+
transition: var(--duration--fast-01) var(--standard-productive-curve);
|
|
5703
|
+
}
|
|
5704
|
+
|
|
5705
|
+
.Selection-card--disabled {
|
|
5706
|
+
pointer-events: none;
|
|
5707
|
+
box-shadow: inset 0 0 0 var(--spacing-xs) var(--secondary-lighter);
|
|
5708
|
+
}
|
|
5709
|
+
|
|
5710
|
+
/* selected states */
|
|
5711
|
+
|
|
5712
|
+
.Selection-card--selected {
|
|
5713
|
+
box-shadow: inset 0 0 0 var(--spacing-s) var(--primary);
|
|
5714
|
+
}
|
|
5715
|
+
|
|
5716
|
+
.Selection-card--selected:hover {
|
|
5717
|
+
box-shadow: inset 0 0 0 var(--spacing-s) var(--primary-dark);
|
|
5718
|
+
}
|
|
5719
|
+
|
|
5720
|
+
.Selection-card--selected:focus,
|
|
5721
|
+
.Selection-card--selected:focus-visible {
|
|
5722
|
+
outline: none;
|
|
5723
|
+
box-shadow: var(--shadow-spread) var(--primary-shadow), inset 0 0 0 var(--spacing-s) var(--primary);
|
|
5724
|
+
}
|
|
5725
|
+
|
|
5726
|
+
.Selection-card--selected:active {
|
|
5727
|
+
box-shadow: inset 0 0 0 var(--spacing-s) var(--primary-darker);
|
|
5728
|
+
}
|
|
5729
|
+
|
|
5730
|
+
.Selection-card--selected-disabled {
|
|
5731
|
+
pointer-events: none;
|
|
5732
|
+
box-shadow: inset 0 0 0 var(--spacing-xs) var(--primary-lighter);
|
|
5733
|
+
}
|
|
5734
|
+
|
|
5735
|
+
/* overlay classes */
|
|
5736
|
+
|
|
5737
|
+
.Selection-card-overlay {
|
|
5738
|
+
top: 0;
|
|
5739
|
+
right: 0;
|
|
5740
|
+
bottom: 0;
|
|
5741
|
+
left: 0;
|
|
5742
|
+
z-index: 2;
|
|
5743
|
+
position: absolute;
|
|
5744
|
+
pointer-events: none;
|
|
5745
|
+
border-radius: var(--spacing-m);
|
|
5746
|
+
}
|
|
5747
|
+
|
|
5748
|
+
.Selection-card:active .Selection-card-overlay {
|
|
5749
|
+
background-color: var(--primary);
|
|
5750
|
+
opacity: 10%;
|
|
5751
|
+
}
|
|
5752
|
+
|
|
5753
|
+
.Selection-card--disabled .Selection-card-overlay {
|
|
5754
|
+
background-color: var(--secondary-lightest);
|
|
5755
|
+
opacity: 50%;
|
|
5756
|
+
}
|
|
5757
|
+
|
|
5758
|
+
.Selection-card--selected .Selection-card-overlay {
|
|
5759
|
+
background-color: var(--primary);
|
|
5760
|
+
opacity: 4%;
|
|
5761
|
+
}
|
|
5762
|
+
|
|
5763
|
+
.Selection-card--selected:active .Selection-card-overlay {
|
|
5764
|
+
background-color: var(--primary);
|
|
5765
|
+
opacity: 4%;
|
|
5766
|
+
}
|
|
5767
|
+
|
|
5768
|
+
.Selection-card--selected-disabled .Selection-card-overlay {
|
|
5769
|
+
background-color: var(--primary-lightest);
|
|
5770
|
+
opacity: 50%;
|
|
5771
|
+
}
|
|
5772
|
+
|
|
5687
5773
|
@-webkit-keyframes sidesheet-open {
|
|
5688
5774
|
from {
|
|
5689
5775
|
right: -100%;
|