hds-web 1.26.9 → 1.27.0

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.26.9",
3
+ "version": "1.27.0",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -28,11 +28,11 @@ const tabCard = (Content) => (
28
28
  <div className='flex items-center flex-wrap flex-row gap-2'>
29
29
  {Content.buttons.map((btn, index) => (
30
30
  <Fragment key={index}>
31
- {btn.cta_link && btn.cta_text && btn.cta_type && (
32
- <a href={btn.cta_link} key={index} className='flex pt-6'>
31
+ {btn.url && btn.text && btn.type && (
32
+ <a href={btn.url} key={index} className='flex pt-6'>
33
33
  <HDSButton
34
- label={btn.cta_text}
35
- type={ btn.cta_type}
34
+ label={btn.text}
35
+ type={ btn.type}
36
36
  leftIconVariant='none'
37
37
  rightIconVariant='none'
38
38
  state='default'
@@ -40,7 +40,7 @@ const tabCard = (Content) => (
40
40
  rightAnimatedArrow={true}
41
41
  rightAnimatedArrowColor='#3970FD'
42
42
  animatedHoverStroke='group-hover:stroke-neutral-0'
43
- className={'flex ' + ((btn.cta_type === 'ghost') ?
43
+ className={'flex ' + ((btn.type === 'ghost') ?
44
44
  ' border-opacity-0 hover:border-opacity-100 border-2 border-purple-800 rounded-full ' : '') }
45
45
  // btnTextColorClass={HDSColor('text-neutral-0')}
46
46
  btnbgHoverClass={btn.btnBgColorClass}
@@ -84,11 +84,11 @@ export default function HeroLinkCard(props) {
84
84
  );
85
85
  };
86
86
 
87
-
87
+
88
88
  return (
89
89
  <div>
90
90
  <div className="flex flex-col-reverse tb:flex tb:flex-row tb:justify-between">
91
- <div className="tb:w-1/2 db:max-w-[535px]">
91
+ <div className={`tb:w-1/2 db:max-w-[${props.contentWd ? props.contentWd : '535px'}]`}>
92
92
  {props &&
93
93
  tabCard(props)}
94
94
  </div>
@@ -143,4 +143,4 @@ export default function HeroLinkCard(props) {
143
143
  </div>
144
144
  </div>
145
145
  );
146
- }
146
+ }