hds-web 1.1.2 → 1.1.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.1.2",
3
+ "version": "1.1.4",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -7,7 +7,6 @@ import PropTypes from 'prop-types';
7
7
 
8
8
  export default function ResourcesCard(props) {
9
9
  const iconBG = HDSColor(props.iconBg);
10
- console.log(props.resourcesArr);
11
10
  return (
12
11
  <>
13
12
  <div className={`p-8 ${props.cardBg} min-w-[18rem] rounded-3xl`}>
@@ -60,7 +60,6 @@ export default function Carouseltest(props) {
60
60
  if (currentImage >= totalImages - 1) {
61
61
  scrollToImage(0);
62
62
  } else {
63
- console.log(currentImage);
64
63
  scrollToImage(currentImage + 1);
65
64
  }
66
65
  };
@@ -22,10 +22,10 @@ export default function Carouseltest(props) {
22
22
  }, 0);
23
23
  setTotalContainerWidth(totalCardsWidth);
24
24
  const noOfcardsinaview = (visibleCardsContainerWidth/cardWidth);
25
- console.log('noOfcardsinaview',noOfcardsinaview)
25
+
26
26
  const cardLength = props.length;
27
27
  setTotalCards(cardLength);
28
- console.log('cardLength',cardLength)
28
+
29
29
  setTotalClick(2*(cardLength/noOfcardsinaview));
30
30
 
31
31
 
@@ -68,7 +68,7 @@ export default function Carouseltest(props) {
68
68
  };
69
69
 
70
70
  const nextCard = () => {
71
- console.log('currentCard', currentCard,'totalClick', totalClick );
71
+
72
72
  if (currentCard >= totalCards-1 || currentCard > totalClick+1) {
73
73
  scrollToCard(0);
74
74
  } else {
@@ -94,7 +94,7 @@ export default function Carouseltest(props) {
94
94
  // let y = (totalContainerWidth/(noOfcardsinaview*visibleCardsContainerWidth))*(noOfcardsinaview*(currentCard+1));
95
95
 
96
96
  // }
97
- console.log(totalContainerWidth, visibleCardsContainerWidth, currentCard )
97
+
98
98
  let slider1 = (384/(totalCards*cardWidth)) * (328)* (currentCard+noOfcardsinaview);
99
99
  if(slider1>384){
100
100
  slider1 = 384;
@@ -25,7 +25,6 @@ function CodeSnippetWithCopy({ snippet, filename, backgroundColor }) {
25
25
 
26
26
 
27
27
  useEffect(() => {
28
- console.log(snippet)
29
28
  if (preRef.current ) {
30
29
  Prism.highlightAll();
31
30
  }
@@ -42,12 +42,12 @@ export default function Tab(props) {
42
42
  aria-current={activeTab === tab ? 'page' : undefined}
43
43
  onClick={(event) => handleTabClick(event, tab)}
44
44
  >
45
- <Typography className='z-10 whitespace-nowrap' textStyle='body3c-medium'>{tab.name}</Typography>
45
+ <Typography className='z-[2] relative whitespace-nowrap' textStyle='body3c-medium'>{tab.name}</Typography>
46
46
  </a>
47
47
  ))}
48
48
  <span
49
49
  ref={pillRef}
50
- className="absolute left-0 -z-10 bg-blue-500 rounded-full transition-all ease-in-out duration-700"
50
+ className="absolute left-0 z-[1] bg-blue-500 rounded-full transition-all ease-in-out duration-700"
51
51
  style={{
52
52
  left: `${activeTab.index * 100}%`,
53
53
  width: `${activeTab.width}px`, // Use the width of the clicked tab
@@ -580,7 +580,6 @@ const HDSColors = {
580
580
  export default function HDSColor(color = '') {
581
581
  if (!HDSColors[color]) {
582
582
  HDSColors[color] = color;
583
- console.log(color);
584
583
  }
585
584
  return HDSColors[color];
586
585
  }
@@ -6,7 +6,6 @@ import { Icon } from '../../components/common-components/Icon';
6
6
 
7
7
  export default function TextCard(props) {
8
8
  const titleColor = HDSColor(props.title_color);
9
- console.log(props.descriptions);
10
9
  return (
11
10
  <>
12
11
  {