hds-web 1.34.8 → 1.34.9

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.34.8",
3
+ "version": "1.34.9",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -1,76 +1,106 @@
1
1
  import React from "react";
2
2
  import { Typography } from "../../foundation/Typography";
3
3
  import { HDSColor } from "../../foundation/ColorPalette";
4
- import { HDSButton } from '../../components/Buttons';
5
- import { Icon } from '../../components/common-components/Icon';
4
+ import { HDSButton } from "../../components/Buttons";
5
+ import { Icon } from "../../components/common-components/Icon";
6
6
 
7
7
  export default function TextIconCard(props) {
8
8
  return (
9
9
  <div className="tb-m:flex gap-14 gap-y-14 gap-x-14 tb:gap-12 db-s:gap-20 db:gap-24">
10
10
  <div className="pb-10 tb-m:pb-0 db-s:max-w-[524px] tb-m:w-1/2 w-full flex flex-col justify-between">
11
11
  <div>
12
- {
13
- props.tagline && (
14
- <Typography textStyle="h6" as="h6" className="pb-2 uppercase text-blue-400">{props.tagline}</Typography>
15
- )
16
- }
17
- {
18
- props.title && (
19
- <Typography textStyle="h3" as="h3" className="pb-2 text-neutral-1000">{props.title}</Typography>
20
- )
21
- }
22
- {
23
- props.description && (
24
- <Typography textStyle="sub2" className="pb-6 text-neutral-600">{props.description}</Typography>
25
- )
26
- }
12
+ {props.tagline && (
13
+ <Typography
14
+ textStyle="h6"
15
+ as="h6"
16
+ className="pb-2 uppercase text-blue-400"
17
+ >
18
+ {props.tagline}
19
+ </Typography>
20
+ )}
21
+ {props.title && (
22
+ <Typography
23
+ textStyle="h3"
24
+ as="h3"
25
+ className="pb-2 text-neutral-1000"
26
+ >
27
+ {props.title}
28
+ </Typography>
29
+ )}
30
+ {props.description && (
31
+ <Typography textStyle="sub2" className="pb-6 text-neutral-600">
32
+ {props.description}
33
+ </Typography>
34
+ )}
27
35
  </div>
28
36
  <div>
29
- {
30
- props.imgUrl && (
31
- <div className="pb-4 pt-2">
32
- <img className="max-w-[210px]" src={props.imgUrl} alt={((props.title) ? props.title : "Illu")} />
37
+ {props.imgUrl && (
38
+ <div className="pb-4 pt-2">
39
+ <img
40
+ className="max-w-[210px]"
41
+ src={props.imgUrl}
42
+ alt={props.title ? props.title : "Illu"}
43
+ />
33
44
  </div>
34
- )
35
- }
36
- {props.button &&
37
- <a href={props.button.cta_link} className="inline-flex " download target="_blank">
45
+ )}
46
+ {props.button && (
47
+ <a href={props.button.cta_link} className="inline-flex ">
38
48
  <HDSButton
39
49
  label={props.button.cta_text}
40
- type={props.button.cta_type || 'secondary'}
41
- leftIconVariant='none'
42
- rightIconVariant='none'
43
- state='default'
44
- size='md'
50
+ type={props.button.cta_type || "secondary"}
51
+ leftIconVariant="none"
52
+ rightIconVariant="none"
53
+ state="default"
54
+ size="md"
45
55
  rightAnimatedArrow={true}
46
- rightAnimatedArrowColor={props.button.rightAnimatedArrowColor || '#3970FD'}
56
+ rightAnimatedArrowColor={
57
+ props.button.rightAnimatedArrowColor || "#3970FD"
58
+ }
47
59
  animatedHoverStroke="group-hover:stroke-blue-600"
48
60
  btnTextHoverClass="hover:text-blue-600"
49
61
  btnTextColorClass="text-blue-500"
50
62
  />
51
63
  </a>
52
- }
64
+ )}
53
65
  </div>
54
66
  </div>
55
- {
56
- props.iconCards && (
57
- <div className="flex-1 pt-10 tb-m:pt-0 border-t border-neutral-200 tb-m:border-t-0">
58
- {
59
- props.iconCards.map((card, index) => (
60
- <div className="pb-6 tb:pb-10 tb-l:pb-16 last:pb-0 tb:flex" key={index}>
61
- <div className={"w-12 h-12 min-w-[48px] rounded-full flex justify-center items-center mr-5 " + ((card.iconBgClass) ? HDSColor(card.iconBgClass) : "bg-blue-300")}>
62
- <Icon height={'h-6 w-6 stroke-[1.5px]'} variant={((card.iconName) ? card.iconName : 'cube02')} strokeClass='stroke-neutral-1000' />
63
- </div>
64
- <div>
65
- <Typography textStyle="h4" as="h4" className="pb-2 pt-4 tb:pt-0 text-neutral-1000">{card.title}</Typography>
66
- <Typography textStyle="body1" className="text-neutral-600">{card.description}</Typography>
67
- </div>
68
- </div>
69
- ))
70
- }
71
- </div>
72
- )
73
- }
67
+ {props.iconCards && (
68
+ <div className="flex-1 pt-10 tb-m:pt-0 border-t border-neutral-200 tb-m:border-t-0">
69
+ {props.iconCards.map((card, index) => (
70
+ <div
71
+ className="pb-6 tb:pb-10 tb-l:pb-16 last:pb-0 tb:flex"
72
+ key={index}
73
+ >
74
+ <div
75
+ className={
76
+ "w-12 h-12 min-w-[48px] rounded-full flex justify-center items-center mr-5 " +
77
+ (card.iconBgClass
78
+ ? HDSColor(card.iconBgClass)
79
+ : "bg-blue-300")
80
+ }
81
+ >
82
+ <Icon
83
+ height={"h-6 w-6 stroke-[1.5px]"}
84
+ variant={card.iconName ? card.iconName : "cube02"}
85
+ strokeClass="stroke-neutral-1000"
86
+ />
87
+ </div>
88
+ <div>
89
+ <Typography
90
+ textStyle="h4"
91
+ as="h4"
92
+ className="pb-2 pt-4 tb:pt-0 text-neutral-1000"
93
+ >
94
+ {card.title}
95
+ </Typography>
96
+ <Typography textStyle="body1" className="text-neutral-600">
97
+ {card.description}
98
+ </Typography>
99
+ </div>
100
+ </div>
101
+ ))}
102
+ </div>
103
+ )}
74
104
  </div>
75
- )
105
+ );
76
106
  }