@aveonline/ui-react 2.19.2 → 2.19.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.
@@ -1,3 +1,3 @@
1
1
  import { ICarousel } from '../..';
2
- declare function Carousel({ infoItems }: ICarousel): JSX.Element;
2
+ declare function Carousel({ infoItems, onItemClick }: ICarousel): JSX.Element;
3
3
  export default Carousel;
@@ -3,8 +3,10 @@ interface AccordionItem {
3
3
  name?: string;
4
4
  title?: string;
5
5
  value?: string;
6
+ item?: string;
6
7
  }
7
8
  export interface ICarousel {
8
9
  infoItems: AccordionItem[];
10
+ onItemClick?: (item: AccordionItem) => void;
9
11
  }
10
12
  export {};
package/dist/ui-react.mjs CHANGED
@@ -41636,13 +41636,13 @@ function Yue({
41636
41636
  }
41637
41637
  );
41638
41638
  }
41639
- function Uue({ infoItems: e }) {
41640
- const t = pe(null), n = () => {
41641
- var i;
41642
- (i = t.current) == null || i.scrollBy({ left: -t.current.offsetWidth });
41643
- }, r = () => {
41644
- var i;
41645
- (i = t.current) == null || i.scrollBy({ left: t.current.offsetWidth });
41639
+ function Uue({ infoItems: e, onItemClick: t }) {
41640
+ const n = pe(null), r = () => {
41641
+ var a;
41642
+ (a = n.current) == null || a.scrollBy({ left: -n.current.offsetWidth });
41643
+ }, i = () => {
41644
+ var a;
41645
+ (a = n.current) == null || a.scrollBy({ left: n.current.offsetWidth });
41646
41646
  };
41647
41647
  return /* @__PURE__ */ m.jsxs("div", { className: "flex w-full items-center justify-center mt-4", children: [
41648
41648
  /* @__PURE__ */ m.jsx(
@@ -41651,30 +41651,31 @@ function Uue({ infoItems: e }) {
41651
41651
  size: "sm",
41652
41652
  variant: "plain-monochrome",
41653
41653
  className: "rounded-full",
41654
- onClick: n,
41654
+ onClick: r,
41655
41655
  children: /* @__PURE__ */ m.jsx(lt, { size: "sm", kind: "page-back" })
41656
41656
  }
41657
41657
  ),
41658
- /* @__PURE__ */ m.jsx("div", { ref: t, className: "flex gap-1 overflow-hidden", children: e.map((i) => /* @__PURE__ */ m.jsx(
41658
+ /* @__PURE__ */ m.jsx("div", { ref: n, className: "flex gap-1 overflow-hidden", children: e.map((a) => /* @__PURE__ */ m.jsx(
41659
41659
  "div",
41660
41660
  {
41661
41661
  className: "slider-item border border-surface-active rounded-sm",
41662
+ onClick: () => t == null ? void 0 : t(a),
41662
41663
  children: /* @__PURE__ */ m.jsx("div", { className: "p-4 w-[180px] h-[190px] flex items-center justify-center", children: /* @__PURE__ */ m.jsxs("div", { className: "block gap-y-2 items-center p-4", children: [
41663
41664
  /* @__PURE__ */ m.jsx(
41664
41665
  "img",
41665
41666
  {
41666
41667
  className: "rounded-full size-[50px] object-cover",
41667
- src: i.imageUrl,
41668
+ src: a.imageUrl,
41668
41669
  alt: "image transport"
41669
41670
  }
41670
41671
  ),
41671
- /* @__PURE__ */ m.jsx(Ie, { className: "text-center mt-4 font-extrabold", children: i.title }),
41672
- /* @__PURE__ */ m.jsx(Ie, { className: "text-center mt-2", children: i.value })
41672
+ /* @__PURE__ */ m.jsx(Ie, { className: "text-center mt-4 font-extrabold", children: a.title }),
41673
+ /* @__PURE__ */ m.jsx(Ie, { className: "text-center mt-2", children: a.value })
41673
41674
  ] }) })
41674
41675
  },
41675
- i.value
41676
+ a.value
41676
41677
  )) }),
41677
- /* @__PURE__ */ m.jsx(Ur, { size: "sm", variant: "plain-monochrome", onClick: r, children: /* @__PURE__ */ m.jsx(lt, { size: "sm", kind: "page-front" }) })
41678
+ /* @__PURE__ */ m.jsx(Ur, { size: "sm", variant: "plain-monochrome", onClick: i, children: /* @__PURE__ */ m.jsx(lt, { size: "sm", kind: "page-front" }) })
41678
41679
  ] });
41679
41680
  }
41680
41681
  function _ue({ steps: e }) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aveonline/ui-react",
3
3
  "description": "Home base for Aveonline design system - ecosystem react",
4
4
  "private": false,
5
- "version": "2.19.2",
5
+ "version": "2.19.3",
6
6
  "types": "./dist/index.d.ts",
7
7
  "files": [
8
8
  "dist"