hds-web 1.16.5 → 1.16.6
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/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} >
|
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
|
}
|