catchup-library-web 1.4.4 → 1.4.6

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/dist/index.js CHANGED
@@ -346,9 +346,9 @@ var BaseImage = (props) => {
346
346
  currentHeightClassName = heightClassName;
347
347
  }
348
348
  return loading ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BaseLoading_default, { size: "small", primaryColor: "#57C2D3", secondaryColor: "#57C2D3" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
349
- "div",
349
+ "span",
350
350
  {
351
- className: `${currentWidthClassName ? currentWidthClassName : ""} ${currentHeightClassName ? currentHeightClassName : ""} ${currentClassName ? currentClassName : ""} cursor-pointer`,
351
+ className: `${currentWidthClassName ? currentWidthClassName : ""} ${currentHeightClassName ? currentHeightClassName : ""} ${currentClassName ? currentClassName : ""} cursor-pointer inline-block`,
352
352
  onClick: handleOnClick,
353
353
  children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
354
354
  "img",
@@ -426,7 +426,7 @@ var PrimaryButton = ({
426
426
  iconPosition === "left" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
427
427
  BaseImage_default,
428
428
  {
429
- src: "/icons/new/primary-button-arrow-left.webp",
429
+ src: "/icons/primary-button-arrow-left.webp",
430
430
  alt: "arrow-left",
431
431
  size: "xsmall"
432
432
  }
@@ -509,7 +509,7 @@ var SecondaryButton = ({
509
509
  iconPosition === "left" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
510
510
  BaseImage_default,
511
511
  {
512
- src: "/icons/new/secondary-button-arrow-left.webp",
512
+ src: "/icons/secondary-button-arrow-left.webp",
513
513
  alt: "arrow-left",
514
514
  size: "xsmall"
515
515
  }
@@ -6750,7 +6750,7 @@ var SelectionTabFill = ({
6750
6750
  selectedId,
6751
6751
  handleSelectOnClick
6752
6752
  }) => {
6753
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center", children: optionList.map((option) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6753
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6754
6754
  "div",
6755
6755
  {
6756
6756
  className: "cursor-pointer",
@@ -6764,7 +6764,8 @@ var SelectionTabFill = ({
6764
6764
  children: option.title
6765
6765
  }
6766
6766
  )
6767
- }
6767
+ },
6768
+ index
6768
6769
  )) });
6769
6770
  };
6770
6771
  var SelectionTabFill_default = SelectionTabFill;
package/dist/index.mjs CHANGED
@@ -156,9 +156,9 @@ var BaseImage = (props) => {
156
156
  currentHeightClassName = heightClassName;
157
157
  }
158
158
  return loading ? /* @__PURE__ */ jsx2(BaseLoading_default, { size: "small", primaryColor: "#57C2D3", secondaryColor: "#57C2D3" }) : /* @__PURE__ */ jsx2(
159
- "div",
159
+ "span",
160
160
  {
161
- className: `${currentWidthClassName ? currentWidthClassName : ""} ${currentHeightClassName ? currentHeightClassName : ""} ${currentClassName ? currentClassName : ""} cursor-pointer`,
161
+ className: `${currentWidthClassName ? currentWidthClassName : ""} ${currentHeightClassName ? currentHeightClassName : ""} ${currentClassName ? currentClassName : ""} cursor-pointer inline-block`,
162
162
  onClick: handleOnClick,
163
163
  children: /* @__PURE__ */ jsx2(
164
164
  "img",
@@ -236,7 +236,7 @@ var PrimaryButton = ({
236
236
  iconPosition === "left" ? /* @__PURE__ */ jsx3(
237
237
  BaseImage_default,
238
238
  {
239
- src: "/icons/new/primary-button-arrow-left.webp",
239
+ src: "/icons/primary-button-arrow-left.webp",
240
240
  alt: "arrow-left",
241
241
  size: "xsmall"
242
242
  }
@@ -319,7 +319,7 @@ var SecondaryButton = ({
319
319
  iconPosition === "left" ? /* @__PURE__ */ jsx4(
320
320
  BaseImage_default,
321
321
  {
322
- src: "/icons/new/secondary-button-arrow-left.webp",
322
+ src: "/icons/secondary-button-arrow-left.webp",
323
323
  alt: "arrow-left",
324
324
  size: "xsmall"
325
325
  }
@@ -6560,7 +6560,7 @@ var SelectionTabFill = ({
6560
6560
  selectedId,
6561
6561
  handleSelectOnClick
6562
6562
  }) => {
6563
- return /* @__PURE__ */ jsx47("div", { className: "w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center", children: optionList.map((option) => /* @__PURE__ */ jsx47(
6563
+ return /* @__PURE__ */ jsx47("div", { className: "w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx47(
6564
6564
  "div",
6565
6565
  {
6566
6566
  className: "cursor-pointer",
@@ -6574,7 +6574,8 @@ var SelectionTabFill = ({
6574
6574
  children: option.title
6575
6575
  }
6576
6576
  )
6577
- }
6577
+ },
6578
+ index
6578
6579
  )) });
6579
6580
  };
6580
6581
  var SelectionTabFill_default = SelectionTabFill;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -64,7 +64,7 @@ const PrimaryButton = ({
64
64
  <div className="flex flex-row justify-center items-center gap-x-2 px-4">
65
65
  {iconPosition === "left" ? (
66
66
  <BaseImage
67
- src="/icons/new/primary-button-arrow-left.webp"
67
+ src="/icons/primary-button-arrow-left.webp"
68
68
  alt="arrow-left"
69
69
  size="xsmall"
70
70
  />
@@ -71,7 +71,7 @@ const SecondaryButton = ({
71
71
  <div className="flex flex-row justify-center items-center gap-x-2 px-4">
72
72
  {iconPosition === "left" ? (
73
73
  <BaseImage
74
- src="/icons/new/secondary-button-arrow-left.webp"
74
+ src="/icons/secondary-button-arrow-left.webp"
75
75
  alt="arrow-left"
76
76
  size="xsmall"
77
77
  />
@@ -72,11 +72,13 @@ const BaseImage = (props: IBaseImageProps) => {
72
72
  return loading ? (
73
73
  <BaseLoading size="small" primaryColor="#57C2D3" secondaryColor="#57C2D3" />
74
74
  ) : (
75
- <div
75
+ <span
76
76
  key={key}
77
77
  className={`${currentWidthClassName ? currentWidthClassName : ""} ${
78
78
  currentHeightClassName ? currentHeightClassName : ""
79
- } ${currentClassName ? currentClassName : ""} cursor-pointer`}
79
+ } ${
80
+ currentClassName ? currentClassName : ""
81
+ } cursor-pointer inline-block`}
80
82
  onClick={handleOnClick}
81
83
  >
82
84
  <img
@@ -91,7 +93,7 @@ const BaseImage = (props: IBaseImageProps) => {
91
93
  data-tooltip-variant={dataToolTipVariant}
92
94
  data-tooltip-html={dataToolTipHTML}
93
95
  />
94
- </div>
96
+ </span>
95
97
  );
96
98
  };
97
99
 
@@ -7,8 +7,9 @@ const SelectionTabFill = ({
7
7
  }: ISelectionTabProps) => {
8
8
  return (
9
9
  <div className="w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center">
10
- {optionList.map((option: any) => (
10
+ {optionList.map((option: any, index: number) => (
11
11
  <div
12
+ key={index}
12
13
  className="cursor-pointer"
13
14
  onClick={() => {
14
15
  handleSelectOnClick(option.id);