@innovaccer/design-system 2.14.1 → 2.15.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 CHANGED
@@ -1,3 +1,86 @@
1
+ ## 2.15.0 (2023-03-06)
2
+
3
+ ### Highlights
4
+
5
+ - feat(docs): add functionality to preview images using Light box on documentation site (970fe8bc)
6
+ - fix(input): update copy-paste behavior of dates in Input for DatePicker and DateRangePicker component (925af578)
7
+
8
+ ### Breaking changes
9
+
10
+ NA
11
+
12
+ ### Migration guide
13
+
14
+ NA
15
+
16
+ ### Deprecations
17
+
18
+ NA
19
+
20
+ ### Features
21
+
22
+ - feat(docs): add functionality to preview images using Light box on documentation site (970fe8bc)
23
+
24
+ ### Fixes
25
+
26
+ - fix(input): update copy-paste behavior of dates in Input for DatePicker and DateRangePicker component (925af578)
27
+ - fix(chip): fix disabled and active state for all types of Chip component and update focus state for input Chip component (46d09832)
28
+
29
+ ### Improvements
30
+
31
+ - fix(calendar): update hover and active states for Calendar and DateRangePicker component (e7007a91)
32
+ - fix(toast): update states for close action icon in Toast component (9dcb30e6)
33
+ - fix(switch): update states and shadow for knob in Switch component (6325915e)
34
+ - feat(dropdown): add different placeholder sizes in loading state of Dropdown component (5944d391)
35
+
36
+ ### Documentation
37
+
38
+ - docs(docs): update documentation and usage guidelines for Chips component (46d09832)
39
+
40
+ ---
41
+
42
+ ## 2.14.2-0 (2023-02-07)
43
+
44
+ ### Highlights
45
+
46
+ - feat(docs): add satismeter feedback form support (f880e6a8)
47
+ - feat(checkbox): add error state in checkbox (f9677fd5)
48
+
49
+ ### Breaking changes
50
+
51
+ NA
52
+
53
+ ### Migration guide
54
+
55
+ NA
56
+
57
+ ### Deprecations
58
+
59
+ NA
60
+
61
+ ### Features
62
+
63
+ - feat(docs): add satismeter feedback form support (f880e6a8)
64
+ - feat(checkbox): add error state in checkbox (f9677fd5)
65
+
66
+ ### Fixes
67
+
68
+ - fix(docs): update cypress test for images (3108592d)
69
+ - fix(dropdown): add support to enable apply button on same option label selection(0e743737)
70
+
71
+ ### Improvements
72
+
73
+ - fix(fileList): update color of other file type (72704373)
74
+ - fix(checkbox): replace checkbox icons with svg (6e179d5f)
75
+ - fix(stepper): update state of stepper item (e224df82)
76
+ - fix(horizontalNav): update focus ring on disabled state (9be66388)
77
+
78
+ ### Documentation
79
+
80
+ NA
81
+
82
+ ---
83
+
1
84
  ## 2.14.1-1 (2023-01-22)
2
85
 
3
86
  ### Highlights
@@ -1451,15 +1451,15 @@ body {
1451
1451
  width: 212px;
1452
1452
  }
1453
1453
 
1454
- .Calendar--date--small {
1454
+ .Calendar-date--small {
1455
1455
  height: 248px;
1456
1456
  }
1457
1457
 
1458
- .Calendar--month--small {
1458
+ .Calendar-month--small {
1459
1459
  height: 192px;
1460
1460
  }
1461
1461
 
1462
- .Calendar--year--small {
1462
+ .Calendar-year--small {
1463
1463
  height: 192px;
1464
1464
  }
1465
1465
 
@@ -1471,15 +1471,15 @@ body {
1471
1471
  width: 316px;
1472
1472
  }
1473
1473
 
1474
- .Calendar--date--large {
1474
+ .Calendar-date--large {
1475
1475
  height: 324px;
1476
1476
  }
1477
1477
 
1478
- .Calendar--month--large {
1478
+ .Calendar-month--large {
1479
1479
  height: 272px;
1480
1480
  }
1481
1481
 
1482
- .Calendar--year--large {
1482
+ .Calendar-year--large {
1483
1483
  height: 272px;
1484
1484
  }
1485
1485
 
@@ -1556,6 +1556,14 @@ body {
1556
1556
  background: var(--primary-lightest);
1557
1557
  }
1558
1558
 
1559
+ .Calendar-valueWrapper--inRange .Calendar-inRangeValue:hover {
1560
+ background: var(--primary-lighter);
1561
+ }
1562
+
1563
+ .Calendar-valueWrapper--inRange .Calendar-inRangeValue:active {
1564
+ background: var(--primary-light);
1565
+ }
1566
+
1559
1567
  .Calendar-valueWrapper--inRangeError {
1560
1568
  background: var(--alert-lightest);
1561
1569
  }
@@ -1597,6 +1605,10 @@ body {
1597
1605
  }
1598
1606
 
1599
1607
  .Calendar-value:hover {
1608
+ background: var(--secondary-light);
1609
+ }
1610
+
1611
+ .Calendar-value:active {
1600
1612
  background: var(--secondary);
1601
1613
  }
1602
1614
 
@@ -1620,19 +1632,30 @@ body {
1620
1632
  background: var(--alert-lightest);
1621
1633
  }
1622
1634
 
1623
- .Calendar-value--currDateMonthYear,
1635
+ .Calendar-value--currDateMonthYear {
1636
+ background: var(--primary-lightest);
1637
+ }
1638
+
1624
1639
  .Calendar-value--currDateMonthYear:hover {
1625
- background: var(--primary-lightest) !important;
1640
+ background: var(--primary-lighter);
1626
1641
  }
1627
1642
 
1628
- .Calendar-value--active,
1629
- .Calendar-value--active:hover {
1630
- background: var(--primary) !important;
1643
+ .Calendar-value--currDateMonthYear:active {
1644
+ background: var(--primary-lighter);
1645
+ color: var(--primary-dark);
1646
+ }
1647
+
1648
+ .Calendar-value--currDateMonthYear:active .Calendar-text {
1649
+ color: var(--primary-dark);
1650
+ }
1651
+
1652
+ .Calendar-value--active {
1653
+ background: var(--primary);
1631
1654
  font-weight: var(--font-weight-bold);
1632
1655
  }
1633
1656
 
1634
- .Calendar-yearValue,
1635
- .Calendar-monthValue {
1657
+ .Calendar-value--active:hover {
1658
+ background: var(--primary-dark);
1636
1659
  }
1637
1660
 
1638
1661
  .Calendar-yearValue--small,
@@ -1647,9 +1670,6 @@ body {
1647
1670
  width: var(--spacing-5);
1648
1671
  }
1649
1672
 
1650
- .Calendar-dateValue {
1651
- }
1652
-
1653
1673
  .Calendar-dateValue--small {
1654
1674
  height: var(--spacing-xl);
1655
1675
  width: var(--spacing-xl);
@@ -1801,8 +1821,6 @@ body {
1801
1821
  display: block;
1802
1822
  }
1803
1823
 
1804
- /* badge */
1805
-
1806
1824
  .Checkbox {
1807
1825
  display: flex;
1808
1826
  -webkit-user-select: none;
@@ -1857,13 +1875,13 @@ body {
1857
1875
  .Checkbox-wrapper {
1858
1876
  top: 0;
1859
1877
  left: 0;
1860
- border: var(--border);
1861
1878
  border-radius: var(--spacing-s);
1862
1879
  display: flex;
1863
1880
  align-items: center;
1864
1881
  box-sizing: border-box;
1865
1882
  height: 100%;
1866
1883
  width: 100%;
1884
+ justify-content: center;
1867
1885
  transition: var(--duration--fast-01) var(--standard-productive-curve);
1868
1886
  }
1869
1887
 
@@ -1871,25 +1889,30 @@ body {
1871
1889
  outline: 0;
1872
1890
  }
1873
1891
 
1874
- .Checkbox-input:focus ~ .Checkbox-wrapper {
1892
+ .Checkbox-input ~ .Checkbox-wrapper--default {
1893
+ border: var(--spacing-xs) solid var(--secondary-dark);
1894
+ background-color: var(--shadow-0);
1895
+ }
1896
+
1897
+ .Checkbox-input:focus ~ .Checkbox-wrapper--default {
1875
1898
  box-shadow: var(--shadow-spread) var(--secondary-shadow);
1876
1899
  }
1877
1900
 
1878
- .Checkbox-input:hover ~ .Checkbox-wrapper {
1901
+ .Checkbox-input:hover ~ .Checkbox-wrapper--default {
1879
1902
  border: var(--spacing-xs) solid var(--inverse-lightest);
1880
1903
  background-color: var(--shadow-0);
1881
1904
  }
1882
1905
 
1883
- .Checkbox-input:active ~ .Checkbox-wrapper {
1906
+ .Checkbox-input:active ~ .Checkbox-wrapper--default {
1884
1907
  border: var(--spacing-xs) solid var(--inverse-lightest);
1885
- background-color: var(--shadow-0);
1908
+ background-color: var(--secondary-light);
1886
1909
  }
1887
1910
 
1888
1911
  .Checkbox--disabled {
1889
1912
  pointer-events: none;
1890
1913
  }
1891
1914
 
1892
- .Checkbox--disabled .Checkbox-wrapper {
1915
+ .Checkbox--disabled .Checkbox-wrapper--default {
1893
1916
  border: var(--spacing-xs) solid var(--secondary-light);
1894
1917
  background-color: var(--secondary-lightest);
1895
1918
  }
@@ -1927,6 +1950,59 @@ body {
1927
1950
  border: 0;
1928
1951
  }
1929
1952
 
1953
+ /* Error State -> Default */
1954
+
1955
+ .Checkbox-wrapper--error {
1956
+ border: var(--spacing-xs) solid var(--alert);
1957
+ }
1958
+
1959
+ .Checkbox-input:focus ~ .Checkbox-wrapper--error {
1960
+ box-shadow: var(--shadow-spread) var(--alert-shadow);
1961
+ }
1962
+
1963
+ .Checkbox-input:hover ~ .Checkbox-wrapper--error {
1964
+ border: var(--spacing-xs) solid var(--alert-dark);
1965
+ }
1966
+
1967
+ .Checkbox-input:active ~ .Checkbox-wrapper--error {
1968
+ border: var(--spacing-xs) solid var(--alert-darker);
1969
+ background-color: var(--secondary-light);
1970
+ }
1971
+
1972
+ .Checkbox--disabled .Checkbox-wrapper--error {
1973
+ border: var(--spacing-xs) solid var(--alert-lighter);
1974
+ background-color: var(--secondary-lightest);
1975
+ }
1976
+
1977
+ /* Error State -> Checked & Indeterminate */
1978
+
1979
+ .Checkbox-input--checked ~ .Checkbox-wrapper--error,
1980
+ .Checkbox-input--indeterminate ~ .Checkbox-wrapper--error {
1981
+ border: var(--spacing-xs) solid var(--alert);
1982
+ }
1983
+
1984
+ .Checkbox-input--checked:focus ~ .Checkbox-wrapper--error,
1985
+ .Checkbox-input--indeterminate:focus ~ .Checkbox-wrapper--error {
1986
+ border: var(--spacing-xs) solid var(--alert);
1987
+ box-shadow: var(--shadow-spread) var(--primary-shadow);
1988
+ }
1989
+
1990
+ .Checkbox-input--checked:hover ~ .Checkbox-wrapper--error,
1991
+ .Checkbox-input--indeterminate:hover ~ .Checkbox-wrapper--error {
1992
+ border: var(--spacing-xs) solid var(--alert-dark);
1993
+ }
1994
+
1995
+ .Checkbox-input--checked:active ~ .Checkbox-wrapper--error,
1996
+ .Checkbox-input--indeterminate:active ~ .Checkbox-wrapper--error {
1997
+ background-color: var(--primary-darker);
1998
+ border: var(--spacing-xs) solid var(--alert-darker);
1999
+ }
2000
+
2001
+ .Checkbox--disabled .Checkbox-input--checked ~ .Checkbox-wrapper--error,
2002
+ .Checkbox--disabled .Checkbox-input--indeterminate ~ .Checkbox-wrapper--error {
2003
+ border: var(--spacing-xs) solid var(--alert-lighter);
2004
+ }
2005
+
1930
2006
  .Chip {
1931
2007
  display: flex;
1932
2008
  box-sizing: border-box;
@@ -1954,7 +2030,7 @@ body {
1954
2030
  }
1955
2031
 
1956
2032
  .Chip-icon--left {
1957
- padding-right: var(--spacing-m);
2033
+ margin-right: var(--spacing-m);
1958
2034
  display: flex;
1959
2035
  align-items: center;
1960
2036
  }
@@ -2058,13 +2134,18 @@ body {
2058
2134
  background: var(--secondary);
2059
2135
  }
2060
2136
 
2061
- .Chip--input:focus-visible {
2137
+ .Chip--input:focus-visible,
2138
+ .Chip--input:focus {
2062
2139
  box-shadow: var(--shadow-spread) var(--secondary-shadow);
2063
2140
  outline: none;
2064
2141
  }
2065
2142
 
2143
+ .Chip--input:active {
2144
+ background: var(--secondary-dark);
2145
+ }
2146
+
2066
2147
  .Chip-input--disabled {
2067
- background: var(--secondary-light);
2148
+ background: var(--secondary-lighter);
2068
2149
  border: 0px;
2069
2150
  }
2070
2151
 
@@ -2932,8 +3013,8 @@ body {
2932
3013
  color: var(--accent3);
2933
3014
  }
2934
3015
  .FileIcon--others {
2935
- background: var(--warning-lightest);
2936
- color: var(--warning);
3016
+ background: var(--success-lightest);
3017
+ color: var(--success);
2937
3018
  }
2938
3019
  .FileIcon--animate {
2939
3020
  -webkit-animation: fadeIn var(--duration--moderate-01) var(--entrance-productive-curve);
@@ -3626,6 +3707,10 @@ body {
3626
3707
  pointer-events: none;
3627
3708
  }
3628
3709
 
3710
+ .HorizontalNav-menu--disabled:focus-visible {
3711
+ outline: none;
3712
+ }
3713
+
3629
3714
  .HorizontalNav-menu--default:focus-visible {
3630
3715
  box-shadow: var(--shadow-spread) var(--secondary-shadow);
3631
3716
  outline: none;
@@ -5745,20 +5830,20 @@ body {
5745
5830
 
5746
5831
  .Switch-input:focus ~ .Switch-wrapper {
5747
5832
  box-shadow: var(--shadow-spread) var(--secondary-shadow);
5833
+ background-color: var(--secondary-light);
5748
5834
  }
5749
5835
 
5750
5836
  .Switch-input:focus ~ .Switch-wrapper--checked {
5751
5837
  box-shadow: var(--shadow-spread) var(--primary-shadow);
5838
+ background-color: var(--primary);
5752
5839
  }
5753
5840
 
5754
5841
  .Switch-input:hover ~ .Switch-wrapper {
5755
- background-color: var(--secondary-light);
5756
- box-shadow: var(--shadow-s);
5842
+ background-color: var(--secondary);
5757
5843
  }
5758
5844
 
5759
5845
  .Switch-input:hover ~ .Switch-wrapper--checked {
5760
5846
  background-color: var(--primary-dark);
5761
- box-shadow: var(--shadow-s);
5762
5847
  }
5763
5848
 
5764
5849
  .Switch-input:active ~ .Switch-wrapper {
@@ -5786,7 +5871,7 @@ body {
5786
5871
  height: 100%;
5787
5872
  width: 50%;
5788
5873
  background-color: var(--shadow-0);
5789
- box-shadow: 0 0 var(--spacing-xs) 0 var(--shadow-20);
5874
+ box-shadow: var(--shadow-m);
5790
5875
  border-radius: 50%;
5791
5876
  box-sizing: border-box;
5792
5877
  transition-duration: 80ms;
@@ -5808,8 +5893,8 @@ body {
5808
5893
  pointer-events: none;
5809
5894
  }
5810
5895
 
5811
- .Switch-wrapper--disabled:before {
5812
- background-color: var(--secondary-lightest);
5896
+ .Switch-wrapper--disabled {
5897
+ background-color: var(--secondary-lighter);
5813
5898
  }
5814
5899
 
5815
5900
  .Switch-wrapper--checkedDisabled {
@@ -6106,6 +6191,11 @@ body {
6106
6191
  .Toast-icon--right {
6107
6192
  cursor: pointer;
6108
6193
  margin-left: var(--spacing-2);
6194
+ border-radius: 50%;
6195
+ display: flex;
6196
+ align-items: center;
6197
+ padding-right: var(--spacing-m);
6198
+ padding-left: var(--spacing-m);
6109
6199
  }
6110
6200
 
6111
6201
  .Toast-icon--info,
@@ -6119,6 +6209,50 @@ body {
6119
6209
  color: var(--warning-darker);
6120
6210
  }
6121
6211
 
6212
+ .Toast-close-icon--warning:focus,
6213
+ .Toast-close-icon--warning:focus-visible {
6214
+ outline: none;
6215
+ box-shadow: var(--shadow-spread) rgba(183, 135, 7, 0.16);
6216
+ }
6217
+
6218
+ .Toast-close-icon--warning:hover,
6219
+ .Toast-close-icon--warning:active {
6220
+ background: var(--warning-dark);
6221
+ }
6222
+
6223
+ .Toast-close-icon--success:focus,
6224
+ .Toast-close-icon--success:focus-visible {
6225
+ outline: none;
6226
+ box-shadow: var(--shadow-spread) rgba(34, 121, 52, 0.16);
6227
+ }
6228
+
6229
+ .Toast-close-icon--success:hover,
6230
+ .Toast-close-icon--success:active {
6231
+ background: var(--success-dark);
6232
+ }
6233
+
6234
+ .Toast-close-icon--info:focus,
6235
+ .Toast-close-icon--info:focus-visible {
6236
+ outline: none;
6237
+ box-shadow: var(--shadow-spread) rgba(0, 80, 159, 0.16);
6238
+ }
6239
+
6240
+ .Toast-close-icon--info:hover,
6241
+ .Toast-close-icon--info:active {
6242
+ background: var(--primary-dark);
6243
+ }
6244
+
6245
+ .Toast-close-icon--alert:focus,
6246
+ .Toast-close-icon--alert:focus-visible {
6247
+ outline: none;
6248
+ box-shadow: var(--shadow-spread) rgba(156, 40, 40, 0.16);
6249
+ }
6250
+
6251
+ .Toast-close-icon--alert:hover,
6252
+ .Toast-close-icon--alert:active {
6253
+ background: var(--alert-dark);
6254
+ }
6255
+
6122
6256
  .Toast-body {
6123
6257
  display: flex;
6124
6258
  flex-direction: column;