@innovaccer/design-system 2.21.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 +42 -0
- 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 +138 -64
- package/dist/core/common.type.d.ts +1 -6
- package/dist/core/components/atoms/_chip/index.d.ts +2 -2
- package/dist/core/components/atoms/button/Button.d.ts +2 -2
- package/dist/core/components/atoms/chip/Chip.d.ts +2 -2
- package/dist/core/components/atoms/dropdown/Dropdown.d.ts +3 -0
- package/dist/core/components/atoms/dropdown/DropdownButton.d.ts +2 -2
- 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 -2
- package/dist/core/components/atoms/icon/Icon.d.ts +0 -7
- package/dist/core/components/atoms/input/Input.d.ts +2 -2
- package/dist/core/components/atoms/input/actionButton/ActionButton.d.ts +2 -2
- package/dist/core/components/atoms/linkButton/LinkButton.d.ts +2 -2
- package/dist/core/components/atoms/metaList/Meta.d.ts +2 -2
- package/dist/core/components/atoms/metricInput/MetricInput.d.ts +2 -2
- 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 -1
- package/dist/core/components/molecules/tabs/Tabs.d.ts +2 -2
- 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 -2
- package/dist/index.esm.js +355 -256
- package/dist/index.js +263 -181
- 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,3 +1,45 @@
|
|
|
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
|
+
|
|
1
43
|
## 2.21.0 (2023-09-18)
|
|
2
44
|
|
|
3
45
|
### 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%;
|