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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.16.3",
3
+ "version": "1.16.5",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -1,3 +1,3 @@
1
1
  <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M18 6L6 18M6 6L18 18" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2
+ <path d="M18 6L6 18M6 6L18 18" 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 gap-2 tb: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 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:min-w-[169px] p-6 `}>
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 border-neutral-150 shadow rounded-l-2xl">
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 shadow h-full rounded-2xl">
115
+ <div className="hds-hidden-tbl shadow h-full rounded-2xl">
125
116
  {cardLayout(props.label, props.childArray)}
126
117
  </div>
127
118
  </>