hds-web 1.5.9 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.5.9",
3
+ "version": "1.6.0",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -12,7 +12,7 @@ export default function LinkCard(props) {
12
12
  <>
13
13
  <a
14
14
  href={props.linkUrl}
15
- className={`${cardHoverClasses} ${cardBgColorClass} rounded-2xl border border-neutral-150 p-6 block`}
15
+ className={`${cardHoverClasses} ${cardBgColorClass} rounded-2xl border border-neutral-150 p-6 h-full block`}
16
16
  >
17
17
  {props.brandImageUrl ?
18
18
  (
@@ -35,7 +35,7 @@ export default function LinkCard(props) {
35
35
  (
36
36
  <>
37
37
  <div className='flex items-center'>
38
- <div className='flex items-center flex-1'>
38
+ <div className='flex items-center flex-1 pb-2'>
39
39
  {props.iconVariant &&
40
40
  (<Icon
41
41
  height={'w-6 h-6 mr-2 stroke-[1.5px] '}
@@ -60,11 +60,17 @@ export default function LinkCard(props) {
60
60
  }
61
61
  </div>
62
62
  {props.description &&
63
- (<Typography
63
+ (
64
+ <div>
65
+
66
+ <Typography
64
67
  textStyle="body3"
65
68
  className={`${HDSColor(props.descTextColor)} mt-2`}>
66
69
  {props.description}
67
- </Typography>)}
70
+ </Typography>
71
+ </div>
72
+
73
+ )}
68
74
  </>
69
75
  )
70
76
  }
@@ -74,6 +80,8 @@ export default function LinkCard(props) {
74
80
  }
75
81
 
76
82
  LinkCard.defaultProps = {
83
+ descTextColor:'',
84
+ titleTextColor:'',
77
85
  brandImageUrl: '',
78
86
  brandImageAlt:'',
79
87
  linkUrl: '#',
@@ -10,27 +10,27 @@ const cardVariant = {
10
10
  'iconWidthStyle': 'h-20 w-20',
11
11
  'iconStyle': 'h-10 w-10',
12
12
  'titleTextStyle': 'h4',
13
- 'titleClasses': 'mb-1 text-blue-800',
13
+ 'titleClasses': 'mb-1 text-blue-800 text-hds-m-h4 tb:text-hds-t-h4 db:text-hds-d-h4',
14
14
  'descTextStyle': 'body1c',
15
- 'descClasses': 'text-neutral-1000'
15
+ 'descClasses': 'text-neutral-1000 text-hds-m-body1c tb:text-hds-t-body1c db:text-hds-d-body1c'
16
16
  },
17
17
  "withoutButton": {
18
18
  'cardStyle': 'p-6',
19
19
  'iconWidthStyle': 'h-12 w-12',
20
20
  'iconStyle': 'h-6 w-6',
21
21
  'titleTextStyle': 'h5',
22
- 'titleClasses': 'mb-1 text-blue-600',
22
+ 'titleClasses': 'mb-1 text-blue-600 text-hds-m-h5 tb:text-hds-t-h5 db:text-hds-d-h5',
23
23
  'descTextStyle': 'body1',
24
- 'descClasses': 'text-neutral-1000'
24
+ 'descClasses': 'text-neutral-1000 text-hds-m-body1 tb:text-hds-t-body1 db:text-hds-d-body1'
25
25
  },
26
26
  "sm": {
27
27
  'cardStyle': 'p-6',
28
28
  'iconWidthStyle': 'h-12 w-12',
29
29
  'iconStyle': 'h-6 w-6',
30
- 'titleTextStyle': 'body3c-bold',
31
- 'titleClasses': 'mb-1 text-neutral-800',
30
+ 'titleTextStyle': 'body3c',
31
+ 'titleClasses': 'mb-1 text-neutral-800 text-hds-m-body3c-bold tb:text-hds-t-body3c-bold db:text-hds-d-body3c-bold',
32
32
  'descTextStyle': 'body3',
33
- 'descClasses': 'text-neutral-800'
33
+ 'descClasses': 'text-neutral-800 text-hds-m-body3 tb:text-hds-t-body3 db:text-hds-d-body3'
34
34
  }
35
35
  }
36
36
 
@@ -38,7 +38,7 @@ export default function IconCard(props) {
38
38
  const iconBG = HDSColor(props.iconBg);
39
39
  return (
40
40
  <div
41
- className={`bg-neutral-0 grid rounded-3xl shadow ${cardVariant[props.cardType]['cardStyle']}`}
41
+ className={`bg-neutral-0 grid h-full rounded-3xl shadow ${cardVariant[props.cardType]['cardStyle']}`}
42
42
  >
43
43
  <div className=" self-start">
44
44
  <div
@@ -51,9 +51,9 @@ export default function HeroCapability(props) {
51
51
  const LinkCardsFn = (heroData) => {
52
52
  return (
53
53
  heroData.linkCards && (
54
- <div className="flex px-8 tb:px-0 tb:justify-center overflow-auto scrollbar-hide flex-row mt-16 gap-6 tb:flex-row ">
54
+ <div className="tb:grid tb:grid-cols-3 h-full px-8 pt-12 flex flex-row tb:px-0 db:pt-[116px] tb:justify-center overflow-scroll scrollbar-hide">
55
55
  {heroData.linkCards.map((card, index) => (
56
- <div key={index} className="w-full pb-2 min-w-[11.5rem] max-w-[22.313rem]">
56
+ <div key={index} className=" pb-2 px-3 h-full min-w-[184px] max-w-[357px] ">
57
57
  <LinkCard
58
58
  titleTextColor= {card.titleTextColor}
59
59
  descTextColor={card.descTextColor}
@@ -211,7 +211,7 @@ HeroCapability.defaultProps={
211
211
  iconArrowVariant: 'arrownarrowupright',
212
212
  iconArrowStrokeColor: 'blue-400',
213
213
  title: 'Webinar',
214
- description: 'Model Level Authorization System for GraphQL with Hasura',
214
+ description: 'GraphQL response caching',
215
215
 
216
216
 
217
217
  },
@@ -34,7 +34,7 @@ export default function TextCard(props) {
34
34
  <Icon
35
35
  height={`h-3 w-3 stroke-[1.5px]` }
36
36
  variant={descList.icon_name}
37
- strokeColor={iconColor}
37
+ strokeClass={iconColor}
38
38
  />
39
39
  </div>
40
40
  <Typography textStyle='body1' className='text-neutral-1000'>{descList.description}</Typography>
@@ -58,7 +58,7 @@ export default function TextCard(props) {
58
58
  <Icon
59
59
  height={`w-6 h-6 mr-2 stroke-[1.5px]` }
60
60
  variant={list.icon_name}
61
- strokeColor={currentStrokeColor}
61
+ strokeClass={currentStrokeColor}
62
62
  />
63
63
  <Typography textStyle='h5' as='h5' className='text-neutral-1000'>{list.title}</Typography>
64
64
  </div>
@@ -73,7 +73,7 @@ export default function TextCard(props) {
73
73
  <Icon
74
74
  height={`h-3 w-3 stroke-[1.5px]` }
75
75
  variant={descList.icon_name}
76
- strokeColor={iconColor}
76
+ strokeClass={iconColor}
77
77
  />
78
78
  </div>
79
79
  <Typography textStyle='body3' className='text-neutral-1000'>{descList.description}</Typography>
@@ -1432,6 +1432,14 @@ select {
1432
1432
  max-height: 100%;
1433
1433
  }
1434
1434
 
1435
+ .max-h-\[152px\] {
1436
+ max-height: 152px;
1437
+ }
1438
+
1439
+ .min-h-\[152px\] {
1440
+ min-height: 152px;
1441
+ }
1442
+
1435
1443
  .w-1\/2 {
1436
1444
  width: 50%;
1437
1445
  }
@@ -1580,6 +1588,10 @@ select {
1580
1588
  min-width: 100%;
1581
1589
  }
1582
1590
 
1591
+ .min-w-\[184px\] {
1592
+ min-width: 184px;
1593
+ }
1594
+
1583
1595
  .max-w-2xl {
1584
1596
  max-width: 42rem;
1585
1597
  }
@@ -1642,6 +1654,14 @@ select {
1642
1654
  max-width: min-content;
1643
1655
  }
1644
1656
 
1657
+ .max-w-\[357px\] {
1658
+ max-width: 357px;
1659
+ }
1660
+
1661
+ .max-w-\[184px\] {
1662
+ max-width: 184px;
1663
+ }
1664
+
1645
1665
  .flex-1 {
1646
1666
  flex: 1 1 0%;
1647
1667
  }
@@ -1812,6 +1832,10 @@ select {
1812
1832
  grid-template-columns: repeat(4, minmax(0, 1fr));
1813
1833
  }
1814
1834
 
1835
+ .grid-rows-1 {
1836
+ grid-template-rows: repeat(1, minmax(0, 1fr));
1837
+ }
1838
+
1815
1839
  .flex-row {
1816
1840
  flex-direction: row;
1817
1841
  }
@@ -8279,6 +8303,10 @@ select {
8279
8303
  grid-template-columns: repeat(4, minmax(0, 1fr));
8280
8304
  }
8281
8305
 
8306
+ .tb\:grid-cols-3 {
8307
+ grid-template-columns: repeat(3, minmax(0, 1fr));
8308
+ }
8309
+
8282
8310
  .tb\:flex-row {
8283
8311
  flex-direction: row;
8284
8312
  }
@@ -9063,6 +9091,10 @@ select {
9063
9091
  max-width: 625px;
9064
9092
  }
9065
9093
 
9094
+ .db\:max-w-\[357px\] {
9095
+ max-width: 357px;
9096
+ }
9097
+
9066
9098
  .db\:snap-center {
9067
9099
  scroll-snap-align: center;
9068
9100
  }
@@ -9157,6 +9189,10 @@ select {
9157
9189
  padding-top: 8rem;
9158
9190
  }
9159
9191
 
9192
+ .db\:pt-\[116px\] {
9193
+ padding-top: 116px;
9194
+ }
9195
+
9160
9196
  .db\:text-left {
9161
9197
  text-align: left;
9162
9198
  }