hds-web 1.19.3 → 1.19.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.19.3",
3
+ "version": "1.19.4",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -17,6 +17,7 @@ export default function AnnouncementMd(props) {
17
17
  const bgClass = props.bgColorClass ? HDSColor(props.bgColorClass) : 'bg-neutral-0';
18
18
  const linkTextClass = props.linkTextColorClass ? HDSColor(props.linkTextColorClass) : 'text-neutral-600';
19
19
  const tagClass = props.tagColor ? props.tagColor : 'purple';
20
+ const iconBgClass = props.iconBgColor ? HDSColor(props.iconBgColor) : 'bg-blue-200'
20
21
  if (isBannerActive) {
21
22
  return (
22
23
  <div className="py-6">
@@ -24,8 +25,15 @@ export default function AnnouncementMd(props) {
24
25
  <div className="block items-center tb:flex tb:justify-center">
25
26
  {
26
27
  props.brandImg && (
27
- <div className="pl-3 tb:pl-14">
28
- <img className="max-h-[34px]" src={props.brandImg} alt={props.brandImgAlt} />
28
+ <div className="pl-3 tb:pl-14 tb:pr-2">
29
+ <img className="max-h-[32px]" src={props.brandImg} alt={props.brandImgAlt} />
30
+ </div>
31
+ )
32
+ }
33
+ {
34
+ props.iconBgColor && (
35
+ <div className={`${iconBgClass} ml-3 tb:ml-14 tb:mr-2 w-8 h-8 min-w-[32px] rounded-full flex items-center justify-center`}>
36
+ <Icon height={'block w-5 h-5 stroke-[2px] transition ease-in-out'} variant={props.iconVariant} strokeClass='stroke-neutral-1000' />
29
37
  </div>
30
38
  )
31
39
  }
@@ -21,21 +21,21 @@ export default function FeedbackCard(props) {
21
21
  avatarVariant="circle"
22
22
  avatarType="secondary"
23
23
  />
24
- <div className={((props.dividerClass) ? "py-8" : "py-8")}>
25
- <Typography textStyle='quote' className='text-neutral-1000'>{props.description}</Typography>
24
+ <div className={((props.dividerClass) ? "py-8" : "py-6")}>
25
+ <Typography textStyle='sub2' className='text-neutral-600'>{props.description}</Typography>
26
26
  </div>
27
27
  </div>
28
28
  <div className=" self-end">
29
29
  {
30
30
  props.dividerClass && (
31
- <div className={`${HDSColor(props.dividerClass)} mb-2 tb:mb-8 `}></div>
31
+ <div className={`${HDSColor(props.dividerClass)} mb-2`}></div>
32
32
  )
33
33
  }
34
- <div className={"tb:flex pt-1 tb:pt-0 items-start" + ((props.dividerClass) ? " pt-6" : "mt-0")}>
35
- <div className={"border border-neutral-150 p-2 flex items-center justify-center rounded-[0.7rem] " + logoBg + ((props.dividerClass) ? " w-[80px] h-[60px] min-w-[80px]" : " w-[80px] h-[60px] ")}>
34
+ <div className={"mb-s:flex items-start" + ((props.dividerClass) ? " pt-6" : "mt-0")}>
35
+ <div className={"border border-neutral-150 p-2 flex items-center justify-center rounded-2xl " + logoBg + ((props.dividerClass) ? " w-[72px] h-[56px] min-w-[72px]" : " w-[112px] h-[90px] min-w-[112px] ")}>
36
36
  <img className="max-h-[20px]" src={props.brandImgUrl} alt={props.brandImgAlt}/>
37
37
  </div>
38
- <div className={"pt-4 tb:pt-0 " + ((props.dividerClass) ? "tb:pl-6" : "tb:pl-8")}>
38
+ <div className={"pt-4 mb-s:pt-0 " + ((props.dividerClass) ? "mb-s:pl-6" : "mb-s:pl-8")}>
39
39
  <Typography textStyle={((props.dividerClass) ? "body2" : "body1")} className='text-neutral-600 pb-1'>{props.blurb}</Typography>
40
40
  <div className="flex">
41
41
  <HDSButton
@@ -43,7 +43,7 @@ export default function Typography(props) {
43
43
  'body3c-medium': 'text-hds-m-body3c-medium tb:text-hds-t-body3c-medium db:text-hds-d-body3c-medium',
44
44
  'body3c-semi-bold': 'text-hds-m-body3c-semi-bold tb:text-hds-t-body3c-semi-bold db:text-hds-d-body3c-semi-bold',
45
45
  'body3c-bold': 'text-hds-m-body3c-bold tb:text-hds-t-body3c-bold db:text-hds-d-body3c-bold',
46
- 'quote': 'font-petrona italic text-hds-m-quote tb:text-hds-t-quote db:text-hds-d-quote',
46
+ 'quote': 'font-petrona font-normal italic text-hds-m-quote tb:text-hds-t-quote db:text-hds-d-quote',
47
47
  'code1': 'text-hds-m-code1 tb:text-hds-t-code1 db:text-hds-d-code1',
48
48
  'code2': 'text-hds-m-code2 tb:text-hds-t-code2 db:text-hds-d-code2',
49
49
  }
@@ -1459,10 +1459,6 @@ select{
1459
1459
  margin-top: 70px;
1460
1460
  }
1461
1461
 
1462
- .mb-8{
1463
- margin-bottom: 2rem;
1464
- }
1465
-
1466
1462
  .line-clamp-3{
1467
1463
  overflow: hidden;
1468
1464
  display: -webkit-box;
@@ -1622,6 +1618,10 @@ select{
1622
1618
  height: 436px;
1623
1619
  }
1624
1620
 
1621
+ .h-\[56px\]{
1622
+ height: 56px;
1623
+ }
1624
+
1625
1625
  .h-\[600px\]{
1626
1626
  height: 600px;
1627
1627
  }
@@ -1634,6 +1634,10 @@ select{
1634
1634
  height: 80px;
1635
1635
  }
1636
1636
 
1637
+ .h-\[90px\]{
1638
+ height: 90px;
1639
+ }
1640
+
1637
1641
  .h-\[calc\(100\%-16px\)\]{
1638
1642
  height: calc(100% - 16px);
1639
1643
  }
@@ -1682,6 +1686,10 @@ select{
1682
1686
  max-height: 100vh;
1683
1687
  }
1684
1688
 
1689
+ .max-h-\[32px\]{
1690
+ max-height: 32px;
1691
+ }
1692
+
1685
1693
  .min-h-\[12px\]{
1686
1694
  min-height: 12px;
1687
1695
  }
@@ -1794,6 +1802,10 @@ select{
1794
1802
  width: 103px;
1795
1803
  }
1796
1804
 
1805
+ .w-\[112px\]{
1806
+ width: 112px;
1807
+ }
1808
+
1797
1809
  .w-\[147px\]{
1798
1810
  width: 147px;
1799
1811
  }
@@ -1842,12 +1854,12 @@ select{
1842
1854
  width: 709px;
1843
1855
  }
1844
1856
 
1845
- .w-\[80\%\]{
1846
- width: 80%;
1857
+ .w-\[72px\]{
1858
+ width: 72px;
1847
1859
  }
1848
1860
 
1849
- .w-\[80px\]{
1850
- width: 80px;
1861
+ .w-\[80\%\]{
1862
+ width: 80%;
1851
1863
  }
1852
1864
 
1853
1865
  .w-\[90\%\]{
@@ -1880,6 +1892,10 @@ select{
1880
1892
  min-width: 11.5rem;
1881
1893
  }
1882
1894
 
1895
+ .min-w-\[112px\]{
1896
+ min-width: 112px;
1897
+ }
1898
+
1883
1899
  .min-w-\[12px\]{
1884
1900
  min-width: 12px;
1885
1901
  }
@@ -1920,8 +1936,8 @@ select{
1920
1936
  min-width: 64px;
1921
1937
  }
1922
1938
 
1923
- .min-w-\[80px\]{
1924
- min-width: 80px;
1939
+ .min-w-\[72px\]{
1940
+ min-width: 72px;
1925
1941
  }
1926
1942
 
1927
1943
  .min-w-fit{
@@ -2602,10 +2618,6 @@ select{
2602
2618
  border-radius: 1.5rem;
2603
2619
  }
2604
2620
 
2605
- .rounded-\[0\.7rem\]{
2606
- border-radius: 0.7rem;
2607
- }
2608
-
2609
2621
  .rounded-\[32px\]{
2610
2622
  border-radius: 32px;
2611
2623
  }
@@ -6456,10 +6468,6 @@ select{
6456
6468
  padding-top: 0px;
6457
6469
  }
6458
6470
 
6459
- .pt-1{
6460
- padding-top: 0.25rem;
6461
- }
6462
-
6463
6471
  .pt-10{
6464
6472
  padding-top: 2.5rem;
6465
6473
  }
@@ -6784,9 +6792,9 @@ select{
6784
6792
  }
6785
6793
 
6786
6794
  .text-hds-m-quote{
6787
- font-size: 1.75rem;
6788
- line-height: 1.5;
6789
- letter-spacing: -0.016em;
6795
+ font-size: 1.125rem;
6796
+ line-height: 1.75rem;
6797
+ letter-spacing: -0.01em;
6790
6798
  font-weight: 400;
6791
6799
  }
6792
6800
 
@@ -10216,6 +10224,18 @@ select{
10216
10224
  .mb-s\:rounded-tr-none{
10217
10225
  border-top-right-radius: 0px;
10218
10226
  }
10227
+
10228
+ .mb-s\:pl-6{
10229
+ padding-left: 1.5rem;
10230
+ }
10231
+
10232
+ .mb-s\:pl-8{
10233
+ padding-left: 2rem;
10234
+ }
10235
+
10236
+ .mb-s\:pt-0{
10237
+ padding-top: 0px;
10238
+ }
10219
10239
  }
10220
10240
 
10221
10241
  @media (min-width: 400px){
@@ -10340,8 +10360,8 @@ select{
10340
10360
  margin-top: -4px;
10341
10361
  }
10342
10362
 
10343
- .tb\:mb-8{
10344
- margin-bottom: 2rem;
10363
+ .tb\:mr-2{
10364
+ margin-right: 0.5rem;
10345
10365
  }
10346
10366
 
10347
10367
  .tb\:block{
@@ -10684,14 +10704,6 @@ select{
10684
10704
  padding-left: 3.5rem;
10685
10705
  }
10686
10706
 
10687
- .tb\:pl-6{
10688
- padding-left: 1.5rem;
10689
- }
10690
-
10691
- .tb\:pl-8{
10692
- padding-left: 2rem;
10693
- }
10694
-
10695
10707
  .tb\:pr-0{
10696
10708
  padding-right: 0px;
10697
10709
  }
@@ -10728,6 +10740,10 @@ select{
10728
10740
  padding-top: 2.875rem;
10729
10741
  }
10730
10742
 
10743
+ .tb\:pr-2{
10744
+ padding-right: 0.5rem;
10745
+ }
10746
+
10731
10747
  .tb\:text-left{
10732
10748
  text-align: left;
10733
10749
  }
@@ -10968,9 +10984,9 @@ select{
10968
10984
  }
10969
10985
 
10970
10986
  .tb\:text-hds-t-quote{
10971
- font-size: 1.75rem;
10972
- line-height: 1.4;
10973
- letter-spacing: -0.016em;
10987
+ font-size: 1.125rem;
10988
+ line-height: 1.75rem;
10989
+ letter-spacing: -0.01em;
10974
10990
  font-weight: 400;
10975
10991
  }
10976
10992
 
@@ -12029,9 +12045,9 @@ select{
12029
12045
  }
12030
12046
 
12031
12047
  .db\:text-hds-d-quote{
12032
- font-size: 2rem;
12033
- line-height: 1.4;
12034
- letter-spacing: -0.016em;
12048
+ font-size: 1.5rem;
12049
+ line-height: 2.25rem;
12050
+ letter-spacing: -0.01em;
12035
12051
  font-weight: 400;
12036
12052
  }
12037
12053
 
@@ -155,7 +155,6 @@ module.exports = {
155
155
  },
156
156
  letterSpacing: {
157
157
  tightest: '-.02em',
158
- tighter2: '-0.016em',
159
158
  tighter: '-.015em',
160
159
  tight: '-.01em',
161
160
  normal: '0',
@@ -794,21 +793,21 @@ module.exports = {
794
793
  // add more for more breakpoints
795
794
 
796
795
  // quote-style
797
- 'hds-m-quote': ['1.75rem', {
798
- lineHeight: '1.5',
799
- letterSpacing: '-0.016em',
796
+ 'hds-m-quote': ['1.125rem', {
797
+ lineHeight: '1.75rem',
798
+ letterSpacing: '-0.01em',
800
799
  fontWeight: '400',
801
800
  fontStyle: 'italic',
802
801
  }],
803
- 'hds-t-quote': ['1.75rem', {
804
- lineHeight: '1.4',
805
- letterSpacing: '-0.016em',
802
+ 'hds-t-quote': ['1.125rem', {
803
+ lineHeight: '1.75rem',
804
+ letterSpacing: '-0.01em',
806
805
  fontWeight: '400',
807
806
  fontStyle: 'italic',
808
807
  }],
809
- 'hds-d-quote': ['2rem', {
810
- lineHeight: '1.4',
811
- letterSpacing: '-0.016em',
808
+ 'hds-d-quote': ['1.5rem', {
809
+ lineHeight: '2.25rem',
810
+ letterSpacing: '-0.01em',
812
811
  fontWeight: '400',
813
812
  fontStyle: 'italic',
814
813
  }],