hds-web 1.16.5 → 1.16.7
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/dist/index.css +2 -2
- package/dist/index.es.css +2 -2
- package/dist/index.es.js +5 -5
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/HDS/assets/icons/queries.svg +1 -1
- package/src/HDS/components/Cards/Dropdown/v3Dropdown.js +1 -1
- package/src/HDS/components/Headers/v3Header.js +25 -11
- package/src/HDS/modules/TextCard/textCard.js +11 -11
- package/src/styles/tailwind.css +32 -24
package/package.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M9.08997
|
2
|
+
<path d="M9.08997 9.00007C9.32507 8.33174 9.78912 7.76818 10.3999 7.40921C11.0107 7.05023 11.7289 6.91901 12.4271 7.03879C13.1254 7.15856 13.7588 7.5216 14.215 8.0636C14.6713 8.60561 14.921 9.2916 14.92 10.0001C14.92 12.0001 11.92 13.0001 11.92 13.0001M12 17.0001H12.01M3 7.94153V16.0586C3 16.4013 3 16.5726 3.05048 16.7254C3.09515 16.8606 3.16816 16.9847 3.26463 17.0893C3.37369 17.2077 3.52345 17.2909 3.82297 17.4573L11.223 21.5684C11.5066 21.726 11.6484 21.8047 11.7985 21.8356C11.9315 21.863 12.0685 21.863 12.2015 21.8356C12.3516 21.8047 12.4934 21.726 12.777 21.5684L20.177 17.4573C20.4766 17.2909 20.6263 17.2077 20.7354 17.0893C20.8318 16.9847 20.9049 16.8606 20.9495 16.7254C21 16.5726 21 16.4013 21 16.0586V7.94153C21 7.59889 21 7.42756 20.9495 7.27477C20.9049 7.13959 20.8318 7.01551 20.7354 6.91082C20.6263 6.79248 20.4766 6.70928 20.177 6.54288L12.777 2.43177C12.4934 2.27421 12.3516 2.19543 12.2015 2.16454C12.0685 2.13721 11.9315 2.13721 11.7985 2.16454C11.6484 2.19543 11.5066 2.27421 11.223 2.43177L3.82297 6.54288C3.52345 6.70928 3.37369 6.79248 3.26463 6.91082C3.16816 7.01551 3.09515 7.13959 3.05048 7.27477C3 7.42756 3 7.59889 3 7.94153Z" stroke="#1F2A37" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
3
3
|
</svg>
|
@@ -8,7 +8,7 @@ export default function DropdownA(props) {
|
|
8
8
|
return (
|
9
9
|
<div>
|
10
10
|
|
11
|
-
<div className='tb-l:flex mb-2 tb-l:mb-0 flex w-full tb-l:bg-neutral-150 flex-col tb-l:flex-row max-w-7xl rounded-2xl '>
|
11
|
+
<div className='tb-l:flex mb-2 tb-l:mb-0 flex w-full tb-l:bg-neutral-150 flex-col tb-l:flex-row max-w-7xl tb-l:gap-2 rounded-2xl '>
|
12
12
|
|
13
13
|
{props.primaryCard &&
|
14
14
|
<div className="">
|
@@ -36,6 +36,7 @@ function classNames(...classes) {
|
|
36
36
|
|
37
37
|
|
38
38
|
export default function V3Header(props) {
|
39
|
+
const listSize = props.HEADER_LIST.length;
|
39
40
|
const [mobileNavOpen, setmobileNavOpen] = useState(false);
|
40
41
|
const [isProduct, setIsProduct] = useState(false)
|
41
42
|
const [isDeveloper, setIsDeveloper] = useState(false)
|
@@ -46,7 +47,7 @@ export default function V3Header(props) {
|
|
46
47
|
|
47
48
|
//testing
|
48
49
|
const [dropdownVisibility, setDropdownVisibility] = useState(Array(props.HEADER_LIST.length).fill(false));
|
49
|
-
|
50
|
+
console.log(mobileNavOpen, isProduct, dropdownVisibility, currentTab)
|
50
51
|
const handleDropdownEnter = (index) => {
|
51
52
|
setDropdownVisibility((prevVisibility) => {
|
52
53
|
const updatedVisibility = [...prevVisibility];
|
@@ -117,7 +118,7 @@ export default function V3Header(props) {
|
|
117
118
|
initial={{ opacity: 0 }}
|
118
119
|
animate={{ opacity: 1 }}
|
119
120
|
transition={{ ease: 'easeInOut', duration: 0.1 }}
|
120
|
-
className="absolute -left-[137px] z-[2] transform"
|
121
|
+
className={"absolute -left-[137px] z-[2] transform " + (dropdownVisibility[0] ? '-left-[137px] ' : '') + (dropdownVisibility[1] ? '-left-[218px]' : '') + (dropdownVisibility[3] ? '-left-[50px] ' : '') }
|
121
122
|
|
122
123
|
>
|
123
124
|
{renderDropdown(
|
@@ -202,20 +203,30 @@ export default function V3Header(props) {
|
|
202
203
|
setIsCompany(false);
|
203
204
|
setIsProduct(false);
|
204
205
|
setCurrentTab('')
|
206
|
+
props.HEADER_LIST.forEach((item, index) => {
|
207
|
+
// Access the values of each item and the index
|
208
|
+
handleDropdownLeave(index)
|
209
|
+
});
|
205
210
|
}
|
206
|
-
function handleBackClick(
|
207
|
-
console.log('clicked', sda);
|
211
|
+
function handleBackClick() {
|
208
212
|
setIsDeveloper(false);
|
209
213
|
setIsCompany(false);
|
210
214
|
setIsProduct(false);
|
211
215
|
setCurrentTab('');
|
216
|
+
props.HEADER_LIST.forEach((item, index) => {
|
217
|
+
// Access the values of each item and the index
|
218
|
+
handleDropdownLeave(index)
|
219
|
+
});
|
220
|
+
|
212
221
|
}
|
213
222
|
|
214
223
|
|
215
224
|
function handleMbDropdownClick(title) {
|
216
|
-
|
225
|
+
const i = props.HEADER_LIST.findIndex(item => item.title === title);
|
226
|
+
handleDropdownEnter(i);
|
217
227
|
// Implement your logic to open the additional options for the clicked dropdown
|
218
228
|
if (title === 'Developer') {
|
229
|
+
|
219
230
|
setIsDeveloper(true);
|
220
231
|
}
|
221
232
|
if (title === 'Product') {
|
@@ -252,8 +263,8 @@ export default function V3Header(props) {
|
|
252
263
|
<AlgoliaSearch {...props} />
|
253
264
|
</div>
|
254
265
|
{!(isCompany || isDeveloper || isProduct) &&
|
255
|
-
(<div onClick={() => handleMbDropdownClose()}>
|
256
|
-
<div className=' h-5
|
266
|
+
(<div className='h-5 w-5 mt-3' onClick={() => handleMbDropdownClose()}>
|
267
|
+
<div className=' h-5 cursor-pointer' >
|
257
268
|
<div aria-hidden="true" className={`${class1} block absolute h-[2px] w-[15px] bg-neutral-800 transform transition duration-500 ease-in-out`}></div>
|
258
269
|
<div aria-hidden="true" className={`${class3} block absolute h-0.5 w-[15px] bg-neutral-800 transform transition duration-500 ease-in-out`}></div>
|
259
270
|
</div>
|
@@ -323,7 +334,7 @@ export default function V3Header(props) {
|
|
323
334
|
|
324
335
|
<div className="bg-neutral-100 h-[calc(100%-80px)] rounded-2xl overflow-y-scroll scrollbar-hide">
|
325
336
|
|
326
|
-
<div className='pt-
|
337
|
+
<div className='pt-6 pb-4 tb:mr-[16px] mr-[34px] min-h-[36px] flex flex-row justify-between items-center sticky top-0 bg-neutral-100 z-50 '>
|
327
338
|
{(isCompany || isDeveloper || isProduct) &&
|
328
339
|
(
|
329
340
|
<div
|
@@ -343,13 +354,16 @@ export default function V3Header(props) {
|
|
343
354
|
</motion.div>
|
344
355
|
{(isCompany || isDeveloper || isProduct) &&
|
345
356
|
(
|
346
|
-
|
357
|
+
<motion.div
|
358
|
+
initial={{ opacity: 0 }}
|
359
|
+
animate={{ opacity: 1 }}
|
360
|
+
transition={{ duration: 0.4, opacity: { ease: "easeIn" } }}
|
347
361
|
className=' flex flex-row justify-start z-10'
|
348
|
-
|
362
|
+
onClick={() => handleMbDropdownClose()}
|
349
363
|
|
350
364
|
>
|
351
365
|
<Icon height='w-5 h-5 ml-4 stroke-2 cursor-pointer' variant={'xclose'} strokeClass='stroke-neutral-1000' />
|
352
|
-
|
366
|
+
</motion.div>)}
|
353
367
|
|
354
368
|
</div>
|
355
369
|
<AnimatePresence mode='wait' exit={false} >
|
@@ -58,7 +58,7 @@ export default function TextCard(props) {
|
|
58
58
|
<Typography
|
59
59
|
key={i}
|
60
60
|
textStyle="body1"
|
61
|
-
className="pb-6 pr-8
|
61
|
+
className="pb-6 pr-8 max-w-[412px] [&>p]:pb-2 [&>p]:text-neutral-600 last:[&>p]:pb-0 [&>ul]:ps-4 [&>ul>li]:list-disc [&>ul>li]:pb-2 last:[&>ul>li]:pb-0 [&>p>a]:text-blue-600">
|
62
62
|
<ReactMarkdown>
|
63
63
|
{desc.description}
|
64
64
|
</ReactMarkdown>
|
@@ -92,7 +92,7 @@ export default function TextCard(props) {
|
|
92
92
|
)
|
93
93
|
}
|
94
94
|
{props.addiDescription && (
|
95
|
-
<Typography textStyle='body1' className='text-neutral-600'>{props.addiDescription}</Typography>
|
95
|
+
<Typography textStyle='body1' className='text-neutral-600 max-w-[412px]'>{props.addiDescription}</Typography>
|
96
96
|
)
|
97
97
|
}
|
98
98
|
</>
|
@@ -100,14 +100,14 @@ export default function TextCard(props) {
|
|
100
100
|
}
|
101
101
|
{
|
102
102
|
props.feature_cards_links && (
|
103
|
-
<div className='tb:border border-neutral-150 rounded-3xl'>
|
103
|
+
<div className='tb:border border-neutral-150 rounded-3xl max-w-[460px]'>
|
104
104
|
{
|
105
105
|
props.feature_cards_links.map((list, i) => {
|
106
106
|
const currentStrokeColor = HDSColor(list.icon_color)
|
107
107
|
const imgBgColor = HDSColor(list.tab_img_bg_class)
|
108
108
|
return (
|
109
109
|
<div key={i} className='border-b border-b-neutral-150 last:border-b-0 cursor-pointer' onClick={() => setImgActive(list.title)}>
|
110
|
-
<div className={'m-2 p-
|
110
|
+
<div className={'my-4 tb-l:m-2 p-4 tb:p-6 rounded-2xl transition ease-in duration-200 hover:bg-neutral-50' + ((imgActive === list.title) ? " bg-neutral-150" : "")} key={i}>
|
111
111
|
<div className='flex items-center pb-4'>
|
112
112
|
<Icon
|
113
113
|
height={`w-6 h-6 mr-2 stroke-[1.5px]`}
|
@@ -117,7 +117,7 @@ export default function TextCard(props) {
|
|
117
117
|
/>
|
118
118
|
<Typography textStyle='h5' as='h5' className='text-neutral-1000'>{list.title}</Typography>
|
119
119
|
</div>
|
120
|
-
{list.description && <Typography textStyle='body3' className='pb-4 text-neutral-
|
120
|
+
{list.description && <Typography textStyle='body3' className='pb-4 text-neutral-600'>{list.description}</Typography>}
|
121
121
|
{
|
122
122
|
list.descriptions_list && list.descriptions_list.map((descList, j) => {
|
123
123
|
const iconBgColor = HDSColor(descList.icon_bg_color);
|
@@ -132,7 +132,7 @@ export default function TextCard(props) {
|
|
132
132
|
strokeColor=""
|
133
133
|
/>
|
134
134
|
</div>
|
135
|
-
<Typography textStyle='body3' className='text-neutral-
|
135
|
+
<Typography textStyle='body3' className='text-neutral-600'>{descList.description}</Typography>
|
136
136
|
</div>
|
137
137
|
)
|
138
138
|
})
|
@@ -158,7 +158,7 @@ export default function TextCard(props) {
|
|
158
158
|
}
|
159
159
|
{
|
160
160
|
list.tab_img_url && (
|
161
|
-
<div className={`${imgBgColor} tb-l:hidden p-12 rounded-2xl mt-8`}>
|
161
|
+
<div className={`${imgBgColor} tb-l:hidden p-4 tb-l:p-12 rounded-2xl mt-8`}>
|
162
162
|
<img src={list.tab_img_url} alt={list.title} loading="lazy" />
|
163
163
|
</div>
|
164
164
|
)
|
@@ -206,7 +206,7 @@ export default function TextCard(props) {
|
|
206
206
|
<Typography
|
207
207
|
key={i}
|
208
208
|
textStyle="body1"
|
209
|
-
className="pb-6 pr-8
|
209
|
+
className="pb-6 pr-8 max-w-[412px] [&>p]:pb-2 last:[&>p]:pb-0 [&>p]:text-neutral-600 [&>ul]:ps-4 [&>ul>li]:list-disc [&>ul>li]:pb-2 last:[&>ul>li]:pb-0 [&>p>a]:text-blue-600">
|
210
210
|
<ReactMarkdown>
|
211
211
|
{desc.description}
|
212
212
|
</ReactMarkdown>
|
@@ -240,7 +240,7 @@ export default function TextCard(props) {
|
|
240
240
|
)
|
241
241
|
}
|
242
242
|
{props.addiDescription && (
|
243
|
-
<Typography textStyle='body1' className='text-neutral-600'>{props.addiDescription}</Typography>
|
243
|
+
<Typography textStyle='body1' className='text-neutral-600 max-w-[412px]'>{props.addiDescription}</Typography>
|
244
244
|
)
|
245
245
|
}
|
246
246
|
</div>
|
@@ -256,7 +256,7 @@ export default function TextCard(props) {
|
|
256
256
|
<Fragment key={i}>
|
257
257
|
{
|
258
258
|
imgActive === img.title && (
|
259
|
-
<div className={((img.tab_img_bg_class === "pattern") ? "bg-neutral-100" : "") + ` hidden h-full p-12 tb-l:flex items-center justify-center rounded-2xl db:rounded-3xl relative bg-neutral-100`}>
|
259
|
+
<div className={((img.tab_img_bg_class === "pattern") ? "bg-neutral-100" : "") + ` hidden h-full p-4 tb-l:p-12 tb-l:flex items-center justify-center rounded-2xl db:rounded-3xl relative bg-neutral-100`}>
|
260
260
|
{
|
261
261
|
img.tab_img_bg_class === "pattern" && (
|
262
262
|
<div className="pattern-gradient absolute left-0 top-0 w-full h-full rounded-3xl"></div>
|
@@ -279,7 +279,7 @@ export default function TextCard(props) {
|
|
279
279
|
/>
|
280
280
|
</video>
|
281
281
|
) : (
|
282
|
-
<img className="z-[1]" src={img.tab_img_url} alt={img.title} loading="lazy" />
|
282
|
+
<img className="z-[1] max-h-[530px]" src={img.tab_img_url} alt={img.title} loading="lazy" />
|
283
283
|
)
|
284
284
|
}
|
285
285
|
</div>
|
package/src/styles/tailwind.css
CHANGED
@@ -1029,6 +1029,14 @@ select{
|
|
1029
1029
|
top: 96px;
|
1030
1030
|
}
|
1031
1031
|
|
1032
|
+
.-left-\[218px\]{
|
1033
|
+
left: -218px;
|
1034
|
+
}
|
1035
|
+
|
1036
|
+
.-left-\[50px\]{
|
1037
|
+
left: -50px;
|
1038
|
+
}
|
1039
|
+
|
1032
1040
|
.isolate{
|
1033
1041
|
isolation: isolate;
|
1034
1042
|
}
|
@@ -1081,14 +1089,6 @@ select{
|
|
1081
1089
|
z-index: 2;
|
1082
1090
|
}
|
1083
1091
|
|
1084
|
-
.z-\[5\]{
|
1085
|
-
z-index: 5;
|
1086
|
-
}
|
1087
|
-
|
1088
|
-
.z-\[6\]{
|
1089
|
-
z-index: 6;
|
1090
|
-
}
|
1091
|
-
|
1092
1092
|
.col-span-1{
|
1093
1093
|
grid-column: span 1 / span 1;
|
1094
1094
|
}
|
@@ -1268,10 +1268,6 @@ select{
|
|
1268
1268
|
margin-left: -1rem;
|
1269
1269
|
}
|
1270
1270
|
|
1271
|
-
.-ml-9{
|
1272
|
-
margin-left: -2.25rem;
|
1273
|
-
}
|
1274
|
-
|
1275
1271
|
.-ml-px{
|
1276
1272
|
margin-left: -1px;
|
1277
1273
|
}
|
@@ -1396,8 +1392,8 @@ select{
|
|
1396
1392
|
margin-right: 2rem;
|
1397
1393
|
}
|
1398
1394
|
|
1399
|
-
.mr-\[
|
1400
|
-
margin-right:
|
1395
|
+
.mr-\[16px\]{
|
1396
|
+
margin-right: 16px;
|
1401
1397
|
}
|
1402
1398
|
|
1403
1399
|
.mr-\[30px\]{
|
@@ -1468,8 +1464,8 @@ select{
|
|
1468
1464
|
margin-top: 70px;
|
1469
1465
|
}
|
1470
1466
|
|
1471
|
-
.mr-\[
|
1472
|
-
margin-right:
|
1467
|
+
.mr-\[34px\]{
|
1468
|
+
margin-right: 34px;
|
1473
1469
|
}
|
1474
1470
|
|
1475
1471
|
.line-clamp-3{
|
@@ -1715,6 +1711,10 @@ select{
|
|
1715
1711
|
min-height: 64px;
|
1716
1712
|
}
|
1717
1713
|
|
1714
|
+
.\!w-full{
|
1715
|
+
width: 100% !important;
|
1716
|
+
}
|
1717
|
+
|
1718
1718
|
.w-1\/2{
|
1719
1719
|
width: 50%;
|
1720
1720
|
}
|
@@ -1877,10 +1877,6 @@ select{
|
|
1877
1877
|
width: 100vw;
|
1878
1878
|
}
|
1879
1879
|
|
1880
|
-
.\!w-full{
|
1881
|
-
width: 100% !important;
|
1882
|
-
}
|
1883
|
-
|
1884
1880
|
.min-w-\[11\.5rem\]{
|
1885
1881
|
min-width: 11.5rem;
|
1886
1882
|
}
|
@@ -6001,10 +5997,6 @@ select{
|
|
6001
5997
|
padding-top: 2rem;
|
6002
5998
|
}
|
6003
5999
|
|
6004
|
-
.pt-9{
|
6005
|
-
padding-top: 2.25rem;
|
6006
|
-
}
|
6007
|
-
|
6008
6000
|
.pt-\[72px\]{
|
6009
6001
|
padding-top: 72px;
|
6010
6002
|
}
|
@@ -9726,6 +9718,10 @@ select{
|
|
9726
9718
|
margin-top: -4px;
|
9727
9719
|
}
|
9728
9720
|
|
9721
|
+
.tb\:mr-\[16px\]{
|
9722
|
+
margin-right: 16px;
|
9723
|
+
}
|
9724
|
+
|
9729
9725
|
.tb\:block{
|
9730
9726
|
display: block;
|
9731
9727
|
}
|
@@ -10546,6 +10542,14 @@ select{
|
|
10546
10542
|
margin-top: 0px;
|
10547
10543
|
}
|
10548
10544
|
|
10545
|
+
.tb-l\:mr-\[34px\]{
|
10546
|
+
margin-right: 34px;
|
10547
|
+
}
|
10548
|
+
|
10549
|
+
.tb-l\:mr-\[16px\]{
|
10550
|
+
margin-right: 16px;
|
10551
|
+
}
|
10552
|
+
|
10549
10553
|
.tb-l\:block{
|
10550
10554
|
display: block;
|
10551
10555
|
}
|
@@ -10644,6 +10648,10 @@ select{
|
|
10644
10648
|
gap: 0px;
|
10645
10649
|
}
|
10646
10650
|
|
10651
|
+
.tb-l\:gap-2{
|
10652
|
+
gap: 0.5rem;
|
10653
|
+
}
|
10654
|
+
|
10647
10655
|
.tb-l\:gap-20{
|
10648
10656
|
gap: 5rem;
|
10649
10657
|
}
|