hds-web 1.10.1 → 1.10.3

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.10.1",
3
+ "version": "1.10.3",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -10,14 +10,14 @@ export default function AnnouncementSM(props) {
10
10
  const linkTextClass = props.linkTextColorClass ? HDSColor(props.linkTextColorClass) : 'text-neutral-600';
11
11
 
12
12
  return (
13
- <div className={`${bgClass} rounded-full shadow-md py-2 px-3 inline-flex items-center`}>
14
- <div className={`${tagBgClass} hidden tb:block py-1 px-3 rounded-full mr-4`}>
13
+ <div className={`${bgClass} rounded-full shadow py-2 px-3 inline-flex items-center`}>
14
+ <div className={`${tagBgClass} hidden mb-m:block py-1 px-3 rounded-full mr-4`}>
15
15
  <Typography textStyle="body2-medium" className={`${tagTextClass}`}>{props.tagText}</Typography>
16
16
  </div>
17
17
  <a href={props.linkUrl}>
18
18
  <Typography textStyle="body2-medium" className={`${linkTextClass} group flex items-center`}>
19
19
  {props.linkText}
20
- <Icon height={'hidden tb:block w-6 h-6 stroke-[2px] ml-3 transition ease-in-out group-hover:translate-x-[5px]'} variant='arrownarrowright' strokeClass='stroke-blue-500' />
20
+ <Icon height={'block w-6 h-6 stroke-[2px] ml-3 transition ease-in-out group-hover:translate-x-[5px]'} variant='arrownarrowright' strokeClass='stroke-blue-500' />
21
21
  </Typography>
22
22
 
23
23
  </a>
@@ -5,7 +5,7 @@ import { FlyoutB, FlyoutA } from '../Menu'
5
5
 
6
6
  export default function DropdownA(props) {
7
7
  return (
8
- <div className='flex mx-auto w-screen flex-col tb:flex-row gap-2'>
8
+ <div className='flex w-fit flex-col tb:flex-row gap-2'>
9
9
  <div className=' bg-neutral-0 rounded-2xl tb:min-w-[28.063rem]'>
10
10
  <FlyoutB
11
11
  {...props.primaryCard}
@@ -54,6 +54,18 @@ DropdownA.defaultProps = {
54
54
  icon: 'cube01',
55
55
  name: 'Security'
56
56
  },
57
+ {
58
+ description: '',
59
+ href: '#',
60
+ icon: 'cube01',
61
+ name: 'Security'
62
+ },
63
+ {
64
+ description: '',
65
+ href: '#',
66
+ icon: 'cube01',
67
+ name: 'Security'
68
+ },
57
69
  ],
58
70
  label:"Label1"
59
71
  },
@@ -15,31 +15,31 @@ export default function FlyoutA(props) {
15
15
  <div
16
16
  className="w-full rounded-2xl "
17
17
  >
18
- <div className="p-6 min-w-[348px]">
18
+ <div className={` ${(childArray.length > 3) ? 'min-w-[348px]' : 'min-w-[169px]'} p-6 `}>
19
19
  {label && <Typography
20
20
  textStyle='h6'
21
21
  className=' uppercase text-neutral-500 mb-4'>
22
22
  {label}
23
23
  </Typography>}
24
- <div className='tb:grid tb:grid-cols-2'>
24
+ <div className={` ${(childArray.length > 3) ? 'tb:grid tb:grid-cols-2 tb:gap-x-4' : 'tb:grid tb:grid-cols-1 gap-x-4'} `}>
25
25
  {childArray && childArray.map((item) => (
26
26
  <div
27
27
  key={item.name}
28
- className="group relative py-1 flex rounded-lg items-center">
28
+ className="group relative pb-2 flex rounded-lg items-center">
29
29
  <div
30
- className="mt-1 flex rounded-lg items-center group-hover:bg-white">
30
+ className="flex rounded-lg items-center group-hover:bg-white">
31
31
  {item.icon && (
32
32
  <Icon
33
- height={'h-6'}
33
+ height={'h-5 w-5'}
34
34
  variant={item.icon}
35
- strokeColor={'#6C737F'}
35
+ strokeClass={item.strokeClass}
36
36
  />
37
37
  )}
38
38
  </div>
39
39
  <div>
40
40
  <a href={item.href}>
41
41
  <Typography
42
- textStyle='h-6'
42
+ textStyle='body3c-medium'
43
43
  className='text-neutral-700 px-2 py-2.5'>
44
44
  {item.name}
45
45
  </Typography>
@@ -35,7 +35,9 @@ export default function FlyoutB(props) {
35
35
  size='sm'
36
36
  rightAnimatedArrow={true}
37
37
  rightAnimatedArrowColor='#6C737F'
38
+ animatedHoverStroke='group-hover:stroke-neutral-1000'
38
39
  className='mt-4'
40
+ btnTextHoverClass='hover:text-neutral-1000'
39
41
  />
40
42
  </div>
41
43
  <Typography className='mt-2 text-neutral-800' textStyle='body3'>{mainDescription}</Typography>
@@ -43,7 +45,7 @@ export default function FlyoutB(props) {
43
45
 
44
46
  <div className="grid grid-cols-2 justify-around border-t divide-x divide-neutral-150 border-neutral-150">
45
47
  {secondaryBtn.map((btn, index) => (
46
- <a key={index} href='#' className="py-6 flex ">
48
+ <a key={index} href={btn.cta_link} className="py-6 flex ">
47
49
  <HDSButton
48
50
  leftIconVariant={btn.cta_leftVariantIcon}
49
51
  leftIconColor={btn.cta_leftVariantIconColor}
@@ -54,7 +56,9 @@ export default function FlyoutB(props) {
54
56
  size='lg'
55
57
  rightAnimatedArrow={true}
56
58
  rightAnimatedArrowColor='#6C737F'
59
+ animatedHoverStroke='group-hover:stroke-neutral-1000'
57
60
  className='pl-6'
61
+ btnTextHoverClass='hover:text-neutral-1000'
58
62
  />
59
63
  </a>
60
64
  ))}
@@ -39,7 +39,7 @@ export default function IconCard(props) {
39
39
  const iconBG = HDSColor(props.iconBg);
40
40
  return (
41
41
  <div
42
- className={`bg-neutral-0 grid h-full rounded-3xl shadow ${cardVariant[props.cardType]['cardStyle']}`}
42
+ className={`bg-neutral-0 grid h-full transition-all ease-in-out rounded-3xl ${cardVariant[props.cardType]['cardStyle']} ` + ((props.cardBorder) ? props.cardBorder : 'shadow') + ((props.readMoreBtn || props.button) ? ' hover:shadow-lg' : '')}
43
43
  >
44
44
  <div className=" self-start">
45
45
  <div
@@ -2,27 +2,27 @@ import React from "react"
2
2
  import { HDSColor } from "../../../foundation/ColorPalette"
3
3
  import { Typography } from "../../../foundation/Typography"
4
4
  import {Badges} from "../../BadgesCaption"
5
- export default function ImageBadgeCard (card){
5
+ export default function ImageBadgeCard(card) {
6
6
 
7
- return(
8
- <>
9
- <div className={`${HDSColor(card.cardBg)}bg-neutral-0 min-w-[312px] tb:max-w-[700px] min-h-[245px] rounded-3xl tb:p-8 p-4`}>
10
- <div className='flex flex-col tb:flex-row justify-between gap-4'>
11
- <div className='tb:max-w-[400px]'>
12
- <Badges
13
- color={card.badge.color}
14
- children={card.badge.label}
15
- text_color='text-neutral-0'
16
- />
17
- <Typography textStyle='h4' className='mt-2 text-neutral-1000'>{card.title}</Typography>
18
- <Typography textStyle='sub2' className='mt-2 text-neutral-600'>{card.subTitle}</Typography>
19
- </div>
20
- <div className="flex justify-center">
21
- <img src={card.imageUrl} alt={card.title} className='tb:max-w-[290px] tb:max-h-[181px]' />
7
+ return (
8
+ <>
9
+ <div className={`${HDSColor(card.cardBg)}bg-neutral-0 min-h-[443px] min-w-[312px] tb:max-w-[763px] tb:min-h-[245px] rounded-3xl tb:p-8 p-4`}>
10
+ <div className='flex flex-col-reverse tb:flex-row justify-between gap-4 items-center'>
11
+ <div className='tb:max-w-[393px] mt-8 tb:mt-0'>
12
+ <Badges
13
+ color={card.badge.color}
14
+ children={card.badge.label}
15
+ text_color='text-neutral-0'
16
+ />
17
+ <Typography textStyle='h4' className='mt-2 text-neutral-1000 max-w-[326px]'>{card.title}</Typography>
18
+ <Typography textStyle='sub2' className='mt-2 text-neutral-600'>{card.subTitle}</Typography>
19
+ </div>
20
+ <div className="flex justify-center h-full items-center">
21
+ <img src={card.imageUrl} alt={card.title} className='tb:max-w-[290px] rounded-lg flex items-center justify-center tb:max-h-[181px]' />
22
22
 
23
+ </div>
23
24
  </div>
24
25
  </div>
25
- </div>
26
- </>
27
- )
26
+ </>
27
+ )
28
28
  }
@@ -105,14 +105,14 @@ export default function CustomCarousel(props) {
105
105
  {showAllCards
106
106
  ? props.cards.map((item, i) => (
107
107
  <div className="my-5" key={i} ref={refs[i]}>
108
- <div className="rounded-3xl min-w-[312px] overflow-hidden">
108
+ <div className="rounded-3xl shadow min-w-[312px] overflow-hidden">
109
109
  {React.createElement(props.component, item)}
110
110
  </div>
111
111
  </div>
112
112
  ))
113
113
  : props.cards.slice(0, maxVisibleCards).map((item, i) => (
114
114
  <div className="my-5" key={i} ref={refs[i]}>
115
- <div className="rounded-3xl overflow-hidden">
115
+ <div className="rounded-3xl shadow overflow-hidden">
116
116
  {React.createElement(props.component, item)}
117
117
  </div>
118
118
  </div>
@@ -175,8 +175,8 @@ export default function CustomCarousel(props) {
175
175
 
176
176
  {props.cards.map((item, i) => (
177
177
  // <div className="max-[1140px]:snap-always tb:snap-always mx-5 max-[1140px]:shrink-0" key={i} ref={refs[i]}>
178
- <div className=" snap-center mx-5 shrink-0" key={i} ref={refs[i]}>
179
- <div className="w-full select-none rounded-3xl object-contain">
178
+ <div className=" snap-center mx-5 shrink-0 py-1" key={i} ref={refs[i]}>
179
+ <div className="w-full select-none rounded-3xl object-contain shadow">
180
180
  {React.createElement(props.component, item)}
181
181
  </div>
182
182
 
@@ -78,7 +78,7 @@ export default function V3Footer(props) {
78
78
  <img src={props.brandUrl} alt={props.brandAlt} />
79
79
  </a>
80
80
  </div>
81
- <div className='flex justify-start tb-l:justify-between flex-1 flex-wrap gap-y-10 tb:gap-y-16'>
81
+ <div className='flex justify-between tb:justify-start tb-l:justify-between flex-1 flex-wrap gap-y-10 tb:gap-y-16'>
82
82
  {
83
83
  props.footerLinks.map((footerLink, index) =>(
84
84
  <div key={index} className='min-w-[140px] db-s:min-w-fit'>
@@ -106,7 +106,7 @@ export default function V3Footer(props) {
106
106
  }
107
107
  </div>
108
108
  {isItems && !isError && (
109
- <div className=' bg-neutral-0 rounded-full shadow-md px-4 py-2 inline-flex justify-center items-center'>
109
+ <div className=' bg-neutral-0 rounded-full shadow px-4 py-2 inline-flex justify-center items-center'>
110
110
  <div className='w-4 h-4 bg-green-400 rounded-full mr-2'></div>
111
111
  <Typography textStyle='body3' className='text-neutral-1000'>{isItems?.status.description}</Typography>
112
112
  </div>
@@ -167,7 +167,7 @@ V3Footer.defaultProps = {
167
167
  },
168
168
  {
169
169
  linkText: 'Federation',
170
- linkUrl: 'https://hasura.io/product/federation/',
170
+ linkUrl: 'https://hasura.io/docs/latest/data-federation/overview/',
171
171
  },
172
172
  {
173
173
  linkText: 'Observability',