hds-web 1.0.1 → 1.0.3

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.
Files changed (32) hide show
  1. package/dist/index.css +2 -2
  2. package/dist/index.es.css +2 -2
  3. package/dist/index.es.js +4 -4
  4. package/dist/index.js +4 -4
  5. package/package.json +1 -1
  6. package/src/HDS/components/Avatars/profileAvatar.js +28 -16
  7. package/src/HDS/components/BadgesCaption/badges.js +10 -10
  8. package/src/HDS/components/Buttons/button.js +18 -7
  9. package/src/HDS/components/Cards/Feedback/feedback.js +25 -0
  10. package/src/HDS/components/Cards/Feedback/index.js +1 -0
  11. package/src/HDS/components/Cards/Link/index.js +2 -0
  12. package/src/HDS/components/Cards/Link/link.js +86 -0
  13. package/src/HDS/components/Cards/Link/resources.js +53 -0
  14. package/src/HDS/components/Cards/Menu/flyoutB.js +1 -0
  15. package/src/HDS/components/Cards/Misc/talkCard.js +22 -18
  16. package/src/HDS/components/Cards/TalkDetailCard/index.js +1 -0
  17. package/src/HDS/components/Cards/TalkDetailCard/talkDetailCard.js +68 -0
  18. package/src/HDS/components/Hero/h1.js +0 -1
  19. package/src/HDS/components/Hero/h2.js +198 -0
  20. package/src/HDS/components/Hero/index.js +2 -1
  21. package/src/HDS/components/Tables/index.js +2 -1
  22. package/src/HDS/components/Tables/tableB.js +146 -0
  23. package/src/HDS/components/Tabs/tab.js +2 -2
  24. package/src/HDS/components/common-components/Icon/IconMap.js +6 -4
  25. package/src/HDS/foundation/ColorPalette/color.js +97 -2
  26. package/src/HDS/helpers/Time/time.js +70 -48
  27. package/src/HDS/index.js +2 -1
  28. package/src/HDS/modules/TextCard/index.js +1 -0
  29. package/src/HDS/modules/TextCard/textCard.js +132 -0
  30. package/src/HDS/modules/index.js +1 -0
  31. package/src/styles/tailwind.css +647 -34
  32. package/tailwind.config.js +22 -0
@@ -0,0 +1,132 @@
1
+ import React from "react";
2
+ import { Typography } from "../../foundation/Typography";
3
+ import { HDSColor } from "../../foundation/ColorPalette";
4
+ import { HDSButton } from '../../components/Buttons';
5
+ import { Icon } from '../../components/common-components/Icon';
6
+
7
+ export default function TextCard(props) {
8
+ const titleColor = HDSColor(props.title_color);
9
+ console.log(props.descriptions);
10
+ return (
11
+ <>
12
+ {
13
+ props.feature_cards_links && (<Typography textStyle="h3" as="h3" className={`${titleColor} pb-8 tb-l:w-1/2`}>{props.title}</Typography>)
14
+ }
15
+ <div className={'grid grid-cols-1 tb:grid-cols-2 gap-10' + ((props.feature_cards_links) ? ' tb:gap-0 tb-l:gap-0' : ' tb:gap-16 tb-l:gap-36')}>
16
+ <div>
17
+ {
18
+ !props.feature_cards_links && (<Typography textStyle="h3" as="h3" className={`${titleColor} pb-6`}>{props.title}</Typography>)
19
+ }
20
+ {
21
+ props.descriptions && props.descriptions.map((desc, i) => (
22
+ <Typography key={i} textStyle="body1" className="pb-6">{desc.description}</Typography>
23
+ ))
24
+ }
25
+ {
26
+ props.descriptions_list && (
27
+ <div className="pb-6">
28
+ {
29
+ props.descriptions_list && props.descriptions_list.map((descList, j) => {
30
+ const iconBgColor = HDSColor(descList.icon_bg_color);
31
+ const iconColor = HDSColor(descList.icon_color);
32
+ return (
33
+ <div className='flex items-start pb-4 last:pb-0' key={j}>
34
+ <div className={`${iconBgColor} w-6 h-6 rounded-full mr-2 flex items-center justify-center`}>
35
+ <Icon
36
+ height={`h-3 w-3 stroke-[1.5px]` }
37
+ variant={descList.icon_name}
38
+ strokeColor={iconColor}
39
+ />
40
+ </div>
41
+ <Typography textStyle='body1' className='text-neutral-1000'>{descList.description}</Typography>
42
+ </div>
43
+ )
44
+ })
45
+ }
46
+ </div>
47
+ )
48
+ }
49
+ {
50
+ props.feature_cards_links && (
51
+ <div className='border border-neutral-150 rounded-2xl tb:rounded-e-none'>
52
+ {
53
+ props.feature_cards_links.map((list, i) => {
54
+ const currentStrokeColor = HDSColor(list.icon_color)
55
+ return (
56
+ <div className='border-b border-b-neutral-150 last:border-b-0'>
57
+ <div className='m-2 p-6 rounded-lg hover:bg-neutral-100' key={i}>
58
+ <div className='flex items-center pb-4'>
59
+ <Icon
60
+ height={`w-6 h-6 mr-2 stroke-[1.5px]` }
61
+ variant={list.icon_name}
62
+ strokeColor={currentStrokeColor}
63
+ />
64
+ <Typography textStyle='h5' as='h5' className='text-neutral-1000'>{list.title}</Typography>
65
+ </div>
66
+ {list.description && <Typography textStyle='body3' className='pb-4 text-neutral-1000'>{list.description}</Typography>}
67
+ {
68
+ list.descriptions_list && list.descriptions_list.map((descList, j) => {
69
+ const iconBgColor = HDSColor(descList.icon_bg_color);
70
+ const iconColor = HDSColor(descList.icon_color);
71
+ return (
72
+ <div className='flex items-start pb-4 last:pb-0' key={j}>
73
+ <div className={`${iconBgColor} w-5 h-5 rounded-full mr-2 flex items-center justify-center`}>
74
+ <Icon
75
+ height={`h-3 w-3 stroke-[1.5px]` }
76
+ variant={descList.icon_name}
77
+ strokeColor={iconColor}
78
+ />
79
+ </div>
80
+ <Typography textStyle='body3' className='text-neutral-1000'>{descList.description}</Typography>
81
+ </div>
82
+ )
83
+ })
84
+ }
85
+ {
86
+ props.button && (
87
+ <HDSButton
88
+ label={props.button.cta_text}
89
+ type='primaryLink'
90
+ leftIconVariant='none'
91
+ rightIconVariant='none'
92
+ state='default'
93
+ size='md'
94
+ rightAnimatedArrow={true}
95
+ rightAnimatedArrowColor='#3970FD'
96
+ />
97
+ )
98
+ }
99
+ </div>
100
+ </div>
101
+ )
102
+ })
103
+ }
104
+ </div>
105
+ )
106
+ }
107
+ {
108
+ props.button && (
109
+ <HDSButton
110
+ label={props.button.cta_text}
111
+ type='secondary'
112
+ leftIconVariant='none'
113
+ rightIconVariant='none'
114
+ state='default'
115
+ size='md'
116
+ rightAnimatedArrow={true}
117
+ rightAnimatedArrowColor='#3970FD'
118
+ />
119
+ )
120
+ }
121
+ </div>
122
+ <div>
123
+ {
124
+ props.img_url && (
125
+ <img src={props.img_url} alt={props.title} />
126
+ )
127
+ }
128
+ </div>
129
+ </div>
130
+ </>
131
+ )
132
+ }
@@ -0,0 +1 @@
1
+ export * from './TextCard';