hds-web 1.16.3 → 1.16.5
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/x-close.svg +1 -1
- package/src/HDS/components/Cards/Dropdown/v3Dropdown.js +2 -2
- package/src/HDS/components/Cards/Menu/flyoutA.js +6 -15
- package/src/HDS/components/Headers/v3Header.js +438 -1009
- package/src/HDS/helpers/AlgoliaSearch/search.js +2 -1
- package/src/HDS/helpers/AlgoliaSearch/searchoverlay.js +2 -2
- package/src/HDS/helpers/AlgoliaSearch/searchwrapper.js +30 -23
- package/src/styles/tailwind.css +66 -76
- package/tailwind.config.js +1 -0
package/package.json
CHANGED
@@ -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
|
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 '>
|
12
12
|
|
13
13
|
{props.primaryCard &&
|
14
14
|
<div className="">
|
@@ -20,7 +20,7 @@ export default function DropdownA(props) {
|
|
20
20
|
|
21
21
|
</div>
|
22
22
|
}
|
23
|
-
<div className="tb-l:flex-row tb-l:flex mt-2 flex flex-col gap-2 tb:mt-0">
|
23
|
+
<div className="tb-l:flex-row tb-l:flex mt-2 flex flex-col gap-2 tb-l:mt-0">
|
24
24
|
{props.secondaryCardArr && props.secondaryCardArr.map((item, index) => (
|
25
25
|
|
26
26
|
<div key={index} className={'rounded-2xl ' + (item.card_bg) ? 'bg-neutral-0 rounded-2xl' : (HDSColor(item.card_bg))}>
|
@@ -5,24 +5,15 @@ import { Icon } from '../../common-components/Icon';
|
|
5
5
|
import { Typography } from '../../../foundation/Typography';
|
6
6
|
export default function FlyoutA(props) {
|
7
7
|
const {
|
8
|
-
label,
|
9
|
-
childArray,
|
10
|
-
buttonArray,
|
11
8
|
split
|
12
9
|
} = props
|
13
|
-
|
14
|
-
const LAYOUT_CLASSES = {
|
15
|
-
split: 'tb:grid tb:grid-cols-2 pr-6 tb:inline-grid w-full gap-x-8 tb:min-w-[150px]',
|
16
|
-
default: 'tb:tb:grid tb:tb:grid-cols-1 tb:gap-x-4 tb:min-w-[182px]'
|
17
|
-
}
|
18
|
-
|
19
10
|
const cardLayout = (label, childArray) => (
|
20
|
-
<div className=" group h-full
|
11
|
+
<div className=" group h-full ">
|
21
12
|
<div className={`w-full h-full ` + (split ? ' ' : ' rounded-2xl')}>
|
22
|
-
<div className={`w-full tb-l:
|
13
|
+
<div className={`w-full db:min-w-[169px] tb-l:max-w-[210px] tb-xl:max-w-[250px] p-6 `}>
|
23
14
|
{label ? (<Typography
|
24
15
|
textStyle='h6'
|
25
|
-
className=' uppercase group-hover:text-neutral-1000 group-hover-transition text-neutral-500 mb-4'>
|
16
|
+
className=' uppercase group-hover/split:text-neutral-1000 group-hover:text-neutral-1000 group-hover-transition text-neutral-500 mb-4'>
|
26
17
|
{label}
|
27
18
|
</Typography>) : (
|
28
19
|
<div className="mb-9">
|
@@ -112,16 +103,16 @@ export default function FlyoutA(props) {
|
|
112
103
|
<>
|
113
104
|
|
114
105
|
<div className="hds-hidden tb-l:flex h-full">
|
115
|
-
<div className="border-r
|
106
|
+
<div className="border-r border-neutral-150 shadow rounded-l-2xl">
|
116
107
|
|
117
108
|
{cardLayout(props.label, props.childArray.slice(0, Math.ceil(props.childArray.length / 2)))}
|
118
109
|
</div>
|
119
|
-
<div className="shadow rounded-r-2xl">
|
110
|
+
<div className="shadow group/split rounded-r-2xl">
|
120
111
|
|
121
112
|
{cardLayout(null, props.childArray.slice(Math.ceil(props.childArray.length / 2)))}
|
122
113
|
</div>
|
123
114
|
</div>
|
124
|
-
<div className="hds-hidden-tbl
|
115
|
+
<div className="hds-hidden-tbl shadow h-full rounded-2xl">
|
125
116
|
{cardLayout(props.label, props.childArray)}
|
126
117
|
</div>
|
127
118
|
</>
|