hds-web 1.6.7 → 1.6.8

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 (53) hide show
  1. package/dist/index.css +2 -5
  2. package/dist/index.es.css +2 -5
  3. package/dist/index.es.js +13 -13
  4. package/dist/index.js +13 -13
  5. package/package.json +1 -1
  6. package/src/HDS/assets/icons/calendar-plus-01.svg +1 -1
  7. package/src/HDS/assets/icons/calendar-plus-02.svg +1 -1
  8. package/src/HDS/components/Avatars/hasConAv.js +10 -9
  9. package/src/HDS/components/Avatars/profileAvatar.js +29 -10
  10. package/src/HDS/components/BadgesCaption/badges.js +4 -7
  11. package/src/HDS/components/Buttons/button.js +14 -25
  12. package/src/HDS/components/Cards/Dropdown/v3Dropdown.js +1 -1
  13. package/src/HDS/components/Cards/Feedback/feedback.js +1 -1
  14. package/src/HDS/components/Cards/Link/link.js +13 -19
  15. package/src/HDS/components/Cards/Menu/flyout.js +4 -5
  16. package/src/HDS/components/Cards/Menu/flyoutA.js +4 -5
  17. package/src/HDS/components/Cards/Menu/flyoutFull.js +0 -1
  18. package/src/HDS/components/Cards/Misc/iconCard.js +60 -71
  19. package/src/HDS/components/Cards/Misc/index.js +0 -1
  20. package/src/HDS/components/Cards/Misc/talkCard.js +18 -19
  21. package/src/HDS/components/Cards/TalkDetailCard/talkDetailCard.js +52 -83
  22. package/src/HDS/components/Carousels/carouselCard.js +90 -101
  23. package/src/HDS/components/Headers/v3Header.js +85 -111
  24. package/src/HDS/components/Hero/h2.js +36 -58
  25. package/src/HDS/components/Hero/index.js +1 -2
  26. package/src/HDS/components/Tables/index.js +1 -2
  27. package/src/HDS/components/Tables/tableB.js +10 -10
  28. package/src/HDS/components/Tables/tableC.js +23 -20
  29. package/src/HDS/components/Tabs/tab.js +16 -47
  30. package/src/HDS/components/common-components/Icon/IconMap.js +0 -6
  31. package/src/HDS/components/index.js +1 -2
  32. package/src/HDS/foundation/ColorPalette/color.js +1 -193
  33. package/src/HDS/foundation/Typography/Typography.js +1 -2
  34. package/src/HDS/helpers/index.js +1 -2
  35. package/src/HDS/modules/TextCard/textCard.js +71 -8
  36. package/src/HDS/modules/index.js +1 -2
  37. package/src/index.css +1 -39
  38. package/src/styles/tailwind.css +1842 -3151
  39. package/tailwind.config.js +3 -6
  40. package/src/HDS/assets/icons/hasura-1.svg +0 -3
  41. package/src/HDS/assets/icons/hasura-2.svg +0 -3
  42. package/src/HDS/assets/icons/hasura-3.svg +0 -3
  43. package/src/HDS/components/Cards/ImageBox/imagebox.js +0 -51
  44. package/src/HDS/components/Cards/ImageBox/index.js +0 -1
  45. package/src/HDS/components/Cards/Misc/talkcard2.js +0 -118
  46. package/src/HDS/components/Hero/h3.js +0 -413
  47. package/src/HDS/components/Tables/tableD.js +0 -326
  48. package/src/HDS/helpers/Grid/grid.js +0 -64
  49. package/src/HDS/helpers/Grid/index.js +0 -1
  50. package/src/HDS/helpers/Media/index.js +0 -1
  51. package/src/HDS/helpers/Media/mediabox.js +0 -75
  52. package/src/HDS/modules/navCard/index.js +0 -1
  53. package/src/HDS/modules/navCard/navCard.js +0 -82
@@ -1,11 +1,10 @@
1
- import React, {useState} from 'react';
1
+ import React from 'react';
2
2
  import { Fragment } from 'react';
3
3
  import { Popover, Transition } from '@headlessui/react';
4
4
  import { Icon } from '../common-components/Icon';
5
5
  import { Typography } from '../../foundation/Typography';
6
6
  import { HDSButton } from '../Buttons';
7
7
  import { V3Dropdown } from '../Cards/Dropdown'
8
- import { HDSColor } from '../../foundation/ColorPalette';
9
8
 
10
9
  const solutions = [
11
10
  {
@@ -34,7 +33,6 @@ function classNames(...classes) {
34
33
 
35
34
  export default function V3Header(props) {
36
35
 
37
- const [isShowing, setIsShowing] = useState(false)
38
36
 
39
37
  const dropdown = (solutions) => (
40
38
  <Transition
@@ -47,9 +45,11 @@ export default function V3Header(props) {
47
45
  leaveTo="opacity-0 translate-y-1"
48
46
  >
49
47
  <Popover.Panel className="fixed left-0 ml z-10 mt-3 transform ">
50
-
48
+ <div className='ml-[9.55rem]'>
49
+ <Icon variant='triangle' height='h-6 w-6 fill-neutral-100' strokeClass='stroke-neutral-100'/>
50
+ </div>
51
51
  <div className=" p-2 bg-neutral-100 rounded-lg">
52
-
52
+
53
53
  <V3Dropdown
54
54
  primaryCard={{
55
55
  iconVariant: 'home03',
@@ -106,7 +106,7 @@ export default function V3Header(props) {
106
106
  }
107
107
  ]}
108
108
  />
109
-
109
+
110
110
  </div>
111
111
  </Popover.Panel>
112
112
  </Transition>
@@ -116,28 +116,17 @@ export default function V3Header(props) {
116
116
  (
117
117
  <>
118
118
  {HEADER_LIST.map((item, index) => (
119
- <Popover className="relative" key={index}>
120
- {({ open }) => (
119
+ <Popover className="relative">
120
+ {({ open }) => (
121
121
  <>
122
122
  <Popover.Button
123
123
  className={classNames(
124
- open ? '' : 'text-gray-500',
124
+ open ? 'text-pink-800' : 'text-gray-500',
125
125
  'group inline-flex items-center rounded-md bg-white hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2'
126
126
  )}
127
- onMouseEnter={() => setIsShowing(true)}
128
- onMouseLeave={() => setIsShowing(false)}
129
-
130
127
  >
131
- <div className='flex flex-col items-center'>
132
128
  <Typography textStyle='body3c-medium' className=''>{`${item['title']}`}</Typography>
133
- {open && (
134
- <div className='absolute z-20 top-8'>
135
- {/* <Icon variant='triangle' height='h-4 w-4' strokeClass='stroke-neutral-1000' /> */}
136
-
137
- </div>
138
-
139
- )}
140
- </div>
129
+ {/* <Icon height='h-5' variant={'home03'} strokeColor={'#1EA7FD'} /> */}
141
130
  </Popover.Button>
142
131
  <div className=''>
143
132
  {dropdown(item['titleDropdown'])}
@@ -153,71 +142,59 @@ export default function V3Header(props) {
153
142
  )
154
143
 
155
144
  return (
156
- <Popover className="relative">
157
- <div className={`flex items-center ${HDSColor(props.headerBg)} justify-between p-6 tb-l:justify-between tb-l:space-x-6`}>
158
- <div className='flex items-center'>
159
- <a href={props.headerUrl} className="flex items-center">
160
- <Icon height='w-[103px] h-[33px]' variant={'hasuraPrimary'} strokeColor={''} />
145
+ <Popover className="relative bg-white">
146
+ <div className="flex items-center bg-neutral-50 justify-between p-6 md:justify-start md:space-x-6">
147
+ <div>
148
+ <a href="#" className="flex items-center">
149
+ <Icon variant={'hasuraPrimary'} strokeColor={''} />
161
150
  </a>
162
- <Popover.Group as="nav" className="hidden tb-l:pl-8 tb-l:flex tb-l:space-x-6">
151
+ </div>
152
+ <div className="-my-2 -mr-2 md:hidden">
153
+ <Popover.Button className="inline-flex items-center justify-center rounded-md bg-white p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
154
+ <span className="sr-only">Open menu</span>
155
+ <div className=' gap-6 flex'>
156
+ <Icon height={'h-5 w-5'} variant={'searchsm'} strokeColor={'#3970FD'} />
157
+ <Icon height={'h-5 w-5'} variant={'menu05'} strokeColor={'#3970FD'} />
158
+ </div>
159
+ </Popover.Button>
160
+ </div>
161
+ <div className="hidden md:flex md:flex-1 md:items-center md:justify-between">
162
+ <Popover.Group as="nav" className="flex space-x-6">
163
163
  {headerListfn(props.HEADER_LIST)}
164
164
  </Popover.Group>
165
- </div>
166
- <div className='flex tb-l:justify-between'>
167
- <div className=" tb-l:flex tb-l:flex-1 tb-l:items-center tb-l:justify-between">
168
165
 
169
- <div className="flex items-center gap-4 tb-l:ml-12">
170
166
 
171
- {/* <Icon height={'h-6'} variant={'searchsm'} strokeColor={'#3970FD'} /> */}
172
- <div>
167
+ <div className="flex items-center gap-6 md:ml-12">
168
+
169
+ <Icon height={'h-6'} variant={'searchsm'} strokeColor={'#3970FD'} />
170
+ <HDSButton
171
+ label="Log In"
172
+ type='tonal'
173
+ leftIconVariant='none'
174
+ rightIconVariant='none'
175
+ state='default'
176
+ size='sm'
177
+ rightAnimatedArrow='true'
178
+ rightAnimatedArrowColor='#3970FD'
179
+ animatedHoverStroke='group-hover:stroke-neutral-0'
180
+ />
181
+ <HDSButton
182
+ label="Get Started"
183
+ type='primary'
184
+ leftIconVariant='none'
185
+ rightIconVariant='none'
186
+ state='default'
187
+ size='sm'
188
+ rightAnimatedArrow='true'
189
+ rightAnimatedArrowColor='#ffffff'
190
+ animatedHoverStroke='group-hover:stroke-neutral-0'
191
+ />
173
192
 
174
- </div>
175
- <a href='' className='hidden tb:flex'>
176
- <Typography textStyle='body3c-medium' className='text-neutral-800'>
177
- Contact Sales
178
- </Typography>
179
- </a>
180
- <HDSButton
181
- label="Log In"
182
- type='tonal'
183
- leftIconVariant='none'
184
- rightIconVariant='none'
185
- state='default'
186
- size='sm'
187
- rightAnimatedArrow='true'
188
- rightAnimatedArrowColor='#3970FD'
189
- animatedHoverStroke='group-hover:stroke-neutral-0'
190
- className='hidden tb-l:flex'
191
- />
192
- <HDSButton
193
- label="Get Started"
194
- type='primary'
195
- leftIconVariant='none'
196
- rightIconVariant='none'
197
- state='default'
198
- size='sm'
199
- rightAnimatedArrow='true'
200
- rightAnimatedArrowColor='#ffffff'
201
- animatedHoverStroke='group-hover:stroke-neutral-0'
202
- className='hidden tb:flex'
203
- />
204
-
205
- </div>
193
+ </div>
206
194
 
207
195
 
208
196
 
209
- </div>
210
- <div className="tb-l:hidden flex items-center">
211
- <Popover.Button className="inline-flex items-center justify-center rounded-md bg-white pl-6 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
212
- <span className="sr-only">Open menu</span>
213
- <div className=' gap-6 flex'>
214
- {/* <Icon height={'h-5 w-5'} variant={'searchsm'} strokeColor={'#3970FD'} /> */}
215
- <Icon height={'h-5 w-5'} variant={'menu05'} strokeColor={'#3970FD'} />
216
- </div>
217
- </Popover.Button>
218
- </div>
219
197
  </div>
220
-
221
198
  </div>
222
199
 
223
200
  <Transition
@@ -229,12 +206,12 @@ export default function V3Header(props) {
229
206
  leaveFrom="opacity-100 scale-100"
230
207
  leaveTo="opacity-0 scale-95"
231
208
  >
232
- <Popover.Panel focus className="absolute h-[calc(100%-112px)] bg-base-0 z-[1] inset-x-0 top-0 origin-top-right transform transition tb-l:hidden">
233
- <div className=" rounded-lg bg-neutral-0 h-[calc(100%-112px)] shadow-lg">
234
- <div className="bg-neutral-0">
209
+ <Popover.Panel focus className="absolute h-[calc(100%-112px)] bg-base-0 z-[1] inset-x-0 top-0 origin-top-right transform transition md:hidden">
210
+ <div className=" rounded-lg bg-white h-[calc(100%-112px)] shadow-lg">
211
+ <div className="">
235
212
  <div className="flex items-center justify-end">
236
213
  <div className="">
237
- <Popover.Button className="inline-flex items-center justify-center pt-4 pr-4 w-full focus:ring-0">
214
+ <Popover.Button className="inline-flex items-center justify-center rounded-md bg-white p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 w-full">
238
215
  <Icon height={'h-5 w-5'} variant={'xclose'} strokeColor={'#3970FD'} />
239
216
  </Popover.Button>
240
217
  </div>
@@ -275,35 +252,33 @@ export default function V3Header(props) {
275
252
  <div className="py-6 px-5 ">
276
253
  <div className="mt-6 ">
277
254
  <div className='flex flex-row justify-around'>
278
- <div className='w-full flex gap-2'>
279
- <div className='w-1/2'>
280
- <HDSButton
281
- label="Log In"
282
- type='tonal'
283
- leftIconVariant='none'
284
- rightIconVariant='none'
285
- state='default'
286
- size='sm'
287
- rightAnimatedArrow='true'
288
- rightAnimatedArrowColor='#3970FD'
289
- animatedHoverStroke='group-hover:stroke-neutral-0'
290
-
291
-
292
- />
293
- </div>
294
- <div className='w-1/2'>
295
- <HDSButton
296
- label="Sign up"
297
- type='primary'
298
- leftIconVariant='none'
299
- rightIconVariant='none'
300
- state='default'
301
- size='sm'
302
- rightAnimatedArrow='true'
303
- rightAnimatedArrowColor='#ffffff'
304
- animatedHoverStroke='group-hover:stroke-neutral-0'
305
- />
306
- </div>
255
+ <div className='w-full '>
256
+ <HDSButton
257
+ label="Log In"
258
+ type='tonal'
259
+ leftIconVariant='none'
260
+ rightIconVariant='none'
261
+ state='default'
262
+ size='sm'
263
+ rightAnimatedArrow='true'
264
+ rightAnimatedArrowColor='#3970FD'
265
+ animatedHoverStroke='group-hover:stroke-neutral-0'
266
+
267
+ />
268
+ </div>
269
+ <div className='w-full'>
270
+ <HDSButton
271
+ label="Sign up"
272
+ type='primary'
273
+ leftIconVariant='none'
274
+ rightIconVariant='none'
275
+ state='default'
276
+ size='sm'
277
+ rightAnimatedArrow='true'
278
+ rightAnimatedArrowColor='#ffffff'
279
+ animatedHoverStroke='group-hover:stroke-neutral-0'
280
+
281
+ />
307
282
  </div>
308
283
  </div>
309
284
  </div>
@@ -389,6 +364,5 @@ V3Header.defaultProps = {
389
364
  ]
390
365
  },
391
366
 
392
- ],
393
- headerUrl: 'https://hasura.io/'
367
+ ]
394
368
  }
@@ -9,19 +9,6 @@ import { v4 as uuidv4 } from 'uuid';
9
9
 
10
10
  export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize }) {
11
11
  const [valumeMuteIcon, setValumeMuteIcon] = useState("volumex");
12
-
13
- const scrollToNextDiv = (element) => {
14
- const nextDiv = element.nextElementSibling;
15
- if (nextDiv) {
16
- nextDiv.scrollIntoView({ behavior: 'smooth' });
17
- }
18
- };
19
-
20
- const handleClick = (event) => {
21
- const arrowIcon = event.target;
22
- const arrowContainer = arrowIcon.parentNode;
23
- scrollToNextDiv(arrowContainer);
24
- };
25
12
  const videoMute = () => {
26
13
  if (heroData.video_url) {
27
14
  const videoEle = document.getElementById("hero_vid");
@@ -108,34 +95,34 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
108
95
  const heroButton = () => (
109
96
  heroData.buttons && (
110
97
  <div className={" gap-6 flex items-center tb:justify-center tb-l:justify-start db:justify-start pt-6" + ((heroData.video_url) ? " tb:justify-center" : " tb:justify-start")}>
111
-
112
-
113
- {heroData.buttons[0] &&
114
- <HDSButton
98
+
99
+
100
+ {heroData.buttons[0] &&
101
+ <HDSButton
115
102
  type="secondary"
116
103
  btnTextColorClass={HDSColor('text-neutral-0')}
117
- leftIconVariant='none'
118
- rightIconVariant='none'
119
- label={heroData.buttons[0].cta_text}
120
- state='default'
121
- size='lg'
122
- rightAnimatedArrow='true'
123
- rightAnimatedArrowColor='#ffffff'
124
- />
125
- }
126
- {heroData.buttons[1] && <HDSButton
127
- type="primaryLink"
128
- btnTextColorClass={HDSColor('text-neutral-0')}
129
- leftIconVariant='none'
130
- rightIconVariant='none'
131
- label={heroData.buttons[1].cta_text}
132
- state='default'
133
- size='lg'
134
- rightAnimatedArrow='true'
135
- rightAnimatedArrowColor='#ffffff'
136
- />}
137
-
138
-
104
+ leftIconVariant='none'
105
+ rightIconVariant='none'
106
+ label={heroData.buttons[0].cta_text}
107
+ state='default'
108
+ size='lg'
109
+ rightAnimatedArrow='true'
110
+ rightAnimatedArrowColor='#ffffff'
111
+ />
112
+ }
113
+ {heroData.buttons[1] && <HDSButton
114
+ type="primaryLink"
115
+ btnTextColorClass={HDSColor('text-neutral-0')}
116
+ leftIconVariant='none'
117
+ rightIconVariant='none'
118
+ label={heroData.buttons[1].cta_text}
119
+ state='default'
120
+ size='lg'
121
+ rightAnimatedArrow='true'
122
+ rightAnimatedArrowColor='#ffffff'
123
+ />}
124
+
125
+
139
126
  </div>
140
127
  )
141
128
  )
@@ -166,20 +153,20 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
166
153
 
167
154
  const imageCard = (heroData) => (
168
155
  heroData.imageUrl && (
169
- <div className="">
170
- <img src={heroData.imageUrl} alt={heroData.imageAlt} className='tb-l:w-full w-1/2' />
156
+ <div className="w-1/2 tb-l:w-full tb:flex tb:flex-col tb:justify-center">
157
+ <img src={heroData.imageUrl} alt={heroData.imageAlt} className='w-full ' />
171
158
  </div>
172
159
  )
173
160
  )
174
-
161
+
175
162
  const videoGradientBg = HDSColor(heroData.video_gradient_bg);
176
163
  return (
177
164
  <div className="">
178
165
  <div className="">
179
166
  <div className={"max-w-7xl mx-auto px-20 py-20 rounded-3xl overflow-hidden " + ((heroData.bg_color) ? heroData.bg_color : "")} >
180
167
  <div className="w-full">
181
- <div className={"tb-l:flex tb-l:justify-between tb-l:items-center tb-l:flex-row db:w-full flex flex-col-reverse tb:gap-x-16 db:gap-x-10 min-[1880px]:gap-x-72" + ((heroData.video_url) ? " " : " tb:flex")}>
182
- <div className='max-w-[29.18rem] w-full tb:flex items-start tb:flex-col mt-4 tb:mt-0'
168
+ <div className={"tb-l:flex tb-l:items-center tb-l:flex-row db:w-full flex flex-col-reverse tb:gap-x-16 db:gap-x-10 min-[1880px]:gap-x-72" + ((heroData.video_url) ? " " : " tb:flex")}>
169
+ <div className='w-full tb:flex items-start tb:flex-col mt-4 tb:mt-0'
183
170
  >
184
171
  {
185
172
  heroData.tag_line && (
@@ -201,18 +188,14 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
201
188
 
202
189
  {
203
190
  heroData.description && (
204
- <Typography textStyle="sub1" className="db:text-left text-neutral-0 [&>*]:mb-8 last:[&>*]:mb-0">{heroData.description}</Typography>
191
+ <Typography textStyle="sub1" className="tb-l:text-center db:text-left text-neutral-0 [&>*]:mb-8 last:[&>*]:mb-0">{heroData.description}</Typography>
205
192
  )
206
193
  }
207
194
  {heroButton(heroData)}
208
195
 
209
-
196
+
210
197
  </div>
211
- <div className="">
212
-
213
-
214
198
  {imageCard(heroData)}
215
- </div>
216
199
  </div>
217
200
 
218
201
  {LinkCardsFn(heroData)}
@@ -220,14 +203,9 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
220
203
  </div>
221
204
  </div>
222
205
  {
223
- heroData.scrollArrow && (
224
- <a className="flex justify-center flex-row z-10" onClick={(e) => scrollToNextDiv(e.currentTarget)}>
225
- <div className="flex bg-neutral-0 shadow-md -mt-5 animate-bounce justify-center rounded-full items-center w-12 h-12" onClick={handleClick} >
226
- <Icon
227
- variant='chevrondowndouble'
228
- strokeClass='stroke-neutral-800' height='h-6 w-6' />
229
- </div>
230
- </a>
206
+ scrollArrow && (
207
+ <>
208
+ </>
231
209
  )
232
210
  }
233
211
  </div>
@@ -1,3 +1,2 @@
1
1
  export {default as Hero1} from './h1'
2
- export {default as HeroSecondary} from './h2'
3
- export {default as HeroCapability} from './h3'
2
+ export {default as HeroSecondary} from './h2'
@@ -1,4 +1,3 @@
1
1
  export {default as TableA} from './tableA';
2
2
  export {default as TableB} from './tableB';
3
- export {default as TableC} from './tableC';
4
- export {default as PricingTableB} from './tableD';
3
+ export {default as TableC} from './tableC';
@@ -7,9 +7,9 @@ import { Tab } from '../Tabs'
7
7
  import ReactMarkdown from "react-markdown";
8
8
 
9
9
  const tabs = [
10
- { name: 'Tier 1', href: '', current: true },
11
- { name: 'Tier 2', href: '', current: false },
12
- { name: 'Tier 3', href: '', current: false },
10
+ { name: 'Level 1', href: '', current: true },
11
+ { name: 'Level 2', href: '', current: false },
12
+ { name: 'Level 3', href: '', current: false },
13
13
  ]
14
14
 
15
15
 
@@ -66,9 +66,9 @@ export default function TableB(props) {
66
66
  const [activeTab, setActiveTab] = useState(1);
67
67
 
68
68
  function handleTabClick(tab) {
69
- if (tab.name === 'Tier 1') setActiveTab(1);
70
- if (tab.name === 'Tier 2') setActiveTab(2);
71
- if (tab.name === 'Tier 3') setActiveTab(3);
69
+ if (tab.name === 'Level 1') setActiveTab(1);
70
+ if (tab.name === 'Level 2') setActiveTab(2);
71
+ if (tab.name === 'Level 3') setActiveTab(3);
72
72
  // Perform any other actions based on the clicked tab
73
73
  }
74
74
 
@@ -94,7 +94,7 @@ export default function TableB(props) {
94
94
  </Typography>
95
95
  )}
96
96
  </div>
97
- <div className=' mt-11 p-2 bg-neutral-0 rounded-full shadow tb-l:hidden'>
97
+ <div className=' mt-11 rounded-full shadow tb-l:hidden'>
98
98
  <Tab onTabClick={handleTabClick} tabs={tabs} />
99
99
  </div>
100
100
  </div>
@@ -170,7 +170,7 @@ export default function TableB(props) {
170
170
  <div className="mt-12 bg-neutral-0 rounded-3xl ">
171
171
  <table className="min-w-full shadow tableclss rounded-3xl ">
172
172
  <thead>
173
- <tr className='divide-x border-b border-neutral-200 divide-neutral-200 text-center rounded-t-3xl'>
173
+ <tr className='divide-x divide-neutral-200 text-center rounded-t-3xl'>
174
174
  {Object.keys(TABLE_HEADER).map((key, index) => (
175
175
  <th
176
176
  key={index}
@@ -179,7 +179,7 @@ export default function TableB(props) {
179
179
  >
180
180
  <div className=''>
181
181
  <div className='flex flex-col justify-center items-center text-center'>
182
- <div className={'flex items-center gap-2 w-full justify-center'}>
182
+ <div className={'flex items-center gap-2'}>
183
183
  {TABLE_HEADER[key]['icon'] &&
184
184
  (
185
185
  <Icon
@@ -192,7 +192,7 @@ export default function TableB(props) {
192
192
  TABLE_HEADER[key]['title'] && key == 0 && (
193
193
  <Typography
194
194
  textStyle='h5'
195
- className={`w-full text-left ${HDSColor(TABLE_HEADER[key]['title_text_color'])}`}>
195
+ className={HDSColor(TABLE_HEADER[key]['title_text_color'])}>
196
196
  {TABLE_HEADER[key]['title']}
197
197
  </Typography>)
198
198
  }
@@ -9,7 +9,9 @@ export default function TableA(props) {
9
9
  children
10
10
 
11
11
  } = props;
12
- const firstObjectLength = Object.keys(tableValue[0]).length;
12
+ console.log(tableValue.length);
13
+ const tableLength = tableValue.length;
14
+
13
15
  return (
14
16
  <div className=" ">
15
17
  <div className="sm:flex sm:items-center ">
@@ -17,50 +19,51 @@ export default function TableA(props) {
17
19
  <h1 className="text-base font-semibold leading-6 text-gray-900">{head}</h1>
18
20
  <p className="mt-2 text-sm text-gray-700">{description}</p>
19
21
  </div>
20
-
22
+
21
23
  </div>
24
+
22
25
  <div>
23
- <div className="border border-neutral-100 rounded-2xl">
26
+ <div className="border bg-neutral-50 border-neutral-100 rounded-2xl">
24
27
  <table className="min-w-full divide-y divide-neutral-100 ">
28
+ <div>
29
+
30
+
25
31
  <thead>
26
32
  <tr className='divide-x divide-neutral-100'>
27
- {Object.keys(tableValue[0]).map((key, index) => (
33
+ {Object.keys(tableValue[0]).map((key) => (
28
34
  <th
29
35
  key={key}
30
36
  scope="col"
31
- className={(index === 0) ? 'rounded-tl-2xl text-left sm:table-cell bg-neutral-50' : 'text-left sm:table-cell bg-neutral-50 rounded-tr-2xl'}
37
+ className="text-left sm:table-cell"
32
38
  >
33
39
  <Typography className='p-6' textStyle='body3c-bold'>{key}</Typography>
34
-
40
+
35
41
  </th>
36
42
  ))}
37
-
38
43
  </tr>
39
44
  </thead>
40
- <tbody className="divide-y rounded-b-3xl divide-neutral-100 ">
41
- {tableValue.slice(1).map((value, index) => (
42
- <tr key={index} className='divide-x divide-neutral-100 '>
45
+
46
+ <tbody className="divide-y rounded-b-3xl divide-neutral-100 bg-white">
47
+ {tableValue.map((value,index) => (
48
+ <tr key={index} className='divide-x divide-neutral-100'>
43
49
  {Object.keys(value).map((key, index2) => (
44
-
45
-
46
-
47
50
  <td
48
- key={index2 + index}
51
+ key={index2+index}
49
52
  className={
50
- 'p-6 ' + ((index == `${tableValue.length - 2}`) ? 'rounded-3xl' : '')
53
+ 'p-6 bg-neutral-0 ' + ((index == `${tableValue.length-1}`) ? 'rounded-3xl' : '')
51
54
  }
52
55
  >
53
-
54
- <Typography textStyle='body3c-bold' className='bg-transparent text-neutral-800'>{key.toString()}</Typography>
55
- <Typography textStyle='body3' className='text-neutral-800 mt-2'>{value[key].toString()}</Typography>
56
+
57
+ <Typography textStyle='body3c-bold' className='bg-transparent text-neutral-800'>{key}</Typography>
58
+ <Typography textStyle='body3' className='text-neutral-800 mt-2'>Endless hours spent writing boilerplate code, resolvers, or mapping logic.</Typography>
56
59
 
57
60
  </td>
58
-
59
61
  ))}
60
62
  </tr>
61
63
  ))}
62
64
  </tbody>
63
- </table>
65
+ </div>
66
+ </table>
64
67
  </div>
65
68
  </div>
66
69
  </div>