hds-web 1.6.2 → 1.6.4

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.6.2",
3
+ "version": "1.6.4",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -38,12 +38,22 @@ const Buttonclasses = {
38
38
  'default': {
39
39
  'base': 'db:w-fit tb:w-fit w-full justify-center border-2 border-blue-500 text-blue-500',
40
40
 
41
- 'hover': 'hover:text-neutral-0 hover:bg-blue-700 hover:border-2 hover:border-blue-700 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:delay-100 hover:duration-300',
41
+ 'hover': 'hover:text-neutral-0 hover:bg-blue-700 hover:border-2 hover:border-blue-700 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:duration-300',
42
42
 
43
43
  'focus': 'focus:bg-blue-200 focus:text-blue-500 focus:border-2 border-blue-500 focus:shadow-[0px_0px_0px_4px_#DFE8FF] focus:outline-none focus:text-blue-500',
44
44
  },
45
45
  'disabled': 'bg-neutral-200 text-neutral-400',
46
46
  },
47
+ 'secondaryWhite': {
48
+ 'default': {
49
+ 'base': 'db:w-fit tb:w-fit w-full justify-center border-2 border-neutral-0 text-neutral-0 ',
50
+
51
+ 'hover': 'hover:text-neutral-0 hover:border-2 hover:border-neutral-0 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:duration-300',
52
+
53
+ 'focus': 'focus:text-neutrak-0 focus:border-2 border-neutral-0 focus:outline-none focus:text-neutral-0',
54
+ },
55
+ 'disabled': 'bg-neutral-200 text-neutral-400',
56
+ },
47
57
 
48
58
  'ghost': {
49
59
  'default': {
@@ -6,13 +6,11 @@ import { Typography } from '../../../foundation/Typography'
6
6
 
7
7
 
8
8
  export default function LinkCard(props) {
9
- const cardBgColorClass = HDSColor(props.cardBgColor)
10
- const cardHoverClasses = HDSColor(`hover:${props.cardHoverBg}`);
11
9
  return (
12
10
  <>
13
11
  <a
14
12
  href={props.linkUrl}
15
- className={`${cardHoverClasses} ${cardBgColorClass} hover:shadow-xl rounded-2xl p-6 h-full block`}
13
+ className={`rounded-2xl p-6 h-full block`}
16
14
  >
17
15
  {props.brandImageUrl ?
18
16
  (
@@ -85,7 +83,6 @@ LinkCard.defaultProps = {
85
83
  brandImageUrl: '',
86
84
  brandImageAlt:'',
87
85
  linkUrl: '#',
88
- cardHoverBg: 'bg-pink-600',
89
86
  iconVariant: 'videorecorder',
90
87
  iconStrokeColor: 'blue-500',
91
88
  iconArrowVariant: 'arrownarrowupright',
@@ -7,8 +7,7 @@ export default function Tab(props) {
7
7
  const {
8
8
  tabs,
9
9
  onTabClick,
10
- pillColor
11
-
10
+ pillColor,
12
11
  } = props;
13
12
  const [activeTab, setActiveTab] = useState(tabs.find(tab => tab.current) || tabs[0]);
14
13
  const pillRef = useRef(null);
@@ -16,6 +15,7 @@ export default function Tab(props) {
16
15
  if(pillColor){
17
16
  pillColorClass = HDSColor(pillColor);
18
17
  }
18
+
19
19
 
20
20
  const handleTabClick = (event, clickedTab) => {
21
21
  event.preventDefault();
@@ -36,10 +36,19 @@ export default function Tab(props) {
36
36
  pill.style.width = `${pillWidth}px`;
37
37
  }
38
38
  };
39
+ let tabTextClass = '';
39
40
 
40
41
  function tabClass(name) {
42
+
43
+ // console.log(currentTab['tabTextColorClass']);
44
+
45
+ if(activeTab['tabTextColorClass']){
46
+ tabTextClass = HDSColor(activeTab['tabTextColorClass']);
47
+ }
48
+ else tabTextClass = 'text-neutral-500'
49
+
41
50
  let classActive = ' text-neutral-0 transition-all rounded-full ' + pillColorClass;
42
- let clasnInActive = ' text-neutral-500 flex-nowrap rounded-full';
51
+ let clasnInActive = ' flex-nowrap rounded-full ' + tabTextClass;
43
52
  if (activeTab.name === name) {
44
53
  return classActive;
45
54
  }
@@ -56,7 +65,11 @@ export default function Tab(props) {
56
65
  key={tab.name}
57
66
  onClick={(event) => handleTabClick(event, tab)}
58
67
  >
59
- <Typography className={`${tabClass(tab.name)} cursor-pointer px-3 py-1 z-[2] relative whitespace-nowrap`} textStyle='body3c-medium'>{tab.name}</Typography>
68
+ <Typography
69
+ className={`${tabClass(tab.name)} cursor-pointer px-3 py-1 z-[2] relative whitespace-nowrap`}
70
+ textStyle='body3c-medium'>
71
+ {tab.name}
72
+ </Typography>
60
73
  </div>
61
74
  ))}
62
75
  <span
@@ -75,5 +88,5 @@ export default function Tab(props) {
75
88
  }
76
89
 
77
90
  Tab.defaultProps = {
78
- pillColor: 'bg-blue-500'
91
+ pillColor: 'bg-blue-500',
79
92
  }
@@ -57,7 +57,7 @@ export default function TextCard(props) {
57
57
  const imgBgColor = HDSColor(list.tab_img_bg_class)
58
58
  return (
59
59
  <div className='border-b border-b-neutral-150 last:border-b-0 cursor-pointer' onClick={()=>setImgActive(list.title)}>
60
- <div className={'m-2 p-0 tb:p-6 rounded-lg hover:bg-neutral-50' + ((imgActive === list.title) ? " bg-neutral-100" : "")} key={i}>
60
+ <div className={'m-2 p-0 tb:p-6 rounded-lg transition-all ease-in duration-75 hover:bg-neutral-50' + ((imgActive === list.title) ? " bg-neutral-100" : "")} key={i}>
61
61
  <div className='flex items-center pb-4'>
62
62
  <Icon
63
63
  height={`w-6 h-6 mr-2 stroke-[1.5px]` }
@@ -6961,6 +6961,10 @@ select {
6961
6961
  transition-duration: 500ms;
6962
6962
  }
6963
6963
 
6964
+ .duration-75 {
6965
+ transition-duration: 75ms;
6966
+ }
6967
+
6964
6968
  .ease-in {
6965
6969
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
6966
6970
  }
@@ -8103,6 +8107,11 @@ select {
8103
8107
  border-color: rgb(210 214 219 / var(--tw-border-opacity));
8104
8108
  }
8105
8109
 
8110
+ .hover\:border-neutral-0:hover {
8111
+ --tw-border-opacity: 1;
8112
+ border-color: rgb(255 255 255 / var(--tw-border-opacity));
8113
+ }
8114
+
8106
8115
  .hover\:bg-blue-100:hover {
8107
8116
  --tw-bg-opacity: 1;
8108
8117
  background-color: rgb(240 244 255 / var(--tw-bg-opacity));