@aveonline/ui-react 2.19.1 → 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
@@ -13580,6 +13580,7 @@ const Rue = Ye((e, t) => {
13580
13580
  autoComplete: s,
13581
13581
  intlConfig: { locale: "es-CO", currency: "COP" },
13582
13582
  value: M,
13583
+ maxLength: I == null ? void 0 : I.maxLength,
13583
13584
  defaultValue: M,
13584
13585
  disabled: i,
13585
13586
  allowNegativeValue: !1,
@@ -41635,13 +41636,13 @@ function Yue({
41635
41636
  }
41636
41637
  );
41637
41638
  }
41638
- function Uue({ infoItems: e }) {
41639
- const t = pe(null), n = () => {
41640
- var i;
41641
- (i = t.current) == null || i.scrollBy({ left: -t.current.offsetWidth });
41642
- }, r = () => {
41643
- var i;
41644
- (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 });
41645
41646
  };
41646
41647
  return /* @__PURE__ */ m.jsxs("div", { className: "flex w-full items-center justify-center mt-4", children: [
41647
41648
  /* @__PURE__ */ m.jsx(
@@ -41650,30 +41651,31 @@ function Uue({ infoItems: e }) {
41650
41651
  size: "sm",
41651
41652
  variant: "plain-monochrome",
41652
41653
  className: "rounded-full",
41653
- onClick: n,
41654
+ onClick: r,
41654
41655
  children: /* @__PURE__ */ m.jsx(lt, { size: "sm", kind: "page-back" })
41655
41656
  }
41656
41657
  ),
41657
- /* @__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(
41658
41659
  "div",
41659
41660
  {
41660
41661
  className: "slider-item border border-surface-active rounded-sm",
41662
+ onClick: () => t == null ? void 0 : t(a),
41661
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: [
41662
41664
  /* @__PURE__ */ m.jsx(
41663
41665
  "img",
41664
41666
  {
41665
41667
  className: "rounded-full size-[50px] object-cover",
41666
- src: i.imageUrl,
41668
+ src: a.imageUrl,
41667
41669
  alt: "image transport"
41668
41670
  }
41669
41671
  ),
41670
- /* @__PURE__ */ m.jsx(Ie, { className: "text-center mt-4 font-extrabold", children: i.title }),
41671
- /* @__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 })
41672
41674
  ] }) })
41673
41675
  },
41674
- i.value
41676
+ a.value
41675
41677
  )) }),
41676
- /* @__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" }) })
41677
41679
  ] });
41678
41680
  }
41679
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.1",
5
+ "version": "2.19.3",
6
6
  "types": "./dist/index.d.ts",
7
7
  "files": [
8
8
  "dist"