@aveonline/ui-react 2.33.9 → 2.33.10

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,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ICarousel } from '../..';
3
- declare function Carousel({ infoItems, onItemClick }: ICarousel): JSX.Element;
3
+ declare function Carousel({ infoItems, onItemClick, clickable }: ICarousel): JSX.Element;
4
4
  export default Carousel;
@@ -9,5 +9,6 @@ interface AccordionItem {
9
9
  export interface ICarousel {
10
10
  infoItems: AccordionItem[];
11
11
  onItemClick?: (item: AccordionItem) => void;
12
+ clickable?: boolean;
12
13
  }
13
14
  export {};
package/dist/ui-react.mjs CHANGED
@@ -55981,60 +55981,63 @@ function pve({
55981
55981
  }
55982
55982
  ) });
55983
55983
  }
55984
- function mve({ infoItems: e, onItemClick: t }) {
55985
- const n = ue(null), [r, i] = pe(!1), a = () => {
55986
- var l;
55987
- (l = n.current) == null || l.scrollBy({ left: -n.current.offsetWidth });
55988
- }, o = () => {
55989
- if (!n.current)
55984
+ function mve({ infoItems: e, onItemClick: t, clickable: n = !0 }) {
55985
+ const r = ue(null), [i, a] = pe(!1), o = () => {
55986
+ var s;
55987
+ (s = r.current) == null || s.scrollBy({ left: -r.current.offsetWidth });
55988
+ }, l = () => {
55989
+ if (!r.current)
55990
55990
  return;
55991
- n.current.scrollLeft + n.current.offsetWidth >= n.current.scrollWidth ? n.current.scrollTo({ left: 0 }) : n.current.scrollBy({ left: n.current.offsetWidth });
55991
+ r.current.scrollLeft + r.current.offsetWidth >= r.current.scrollWidth ? r.current.scrollTo({ left: 0 }) : r.current.scrollBy({ left: r.current.offsetWidth });
55992
55992
  };
55993
55993
  return me(() => {
55994
- const l = () => {
55995
- if (n.current) {
55996
- const s = n.current.scrollWidth > n.current.offsetWidth;
55997
- i(s);
55994
+ const s = () => {
55995
+ if (r.current) {
55996
+ const c = r.current.scrollWidth > r.current.offsetWidth;
55997
+ a(c);
55998
55998
  }
55999
55999
  };
56000
- return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
56000
+ return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
56001
56001
  }, [e]), me(() => {
56002
- const l = setInterval(() => {
56003
- o();
56002
+ const s = setInterval(() => {
56003
+ l();
56004
56004
  }, 8e3);
56005
- return () => clearInterval(l);
56005
+ return () => clearInterval(s);
56006
56006
  }, []), /* @__PURE__ */ A.jsxs("div", { className: "flex w-full items-center justify-center mt-4", children: [
56007
- r && /* @__PURE__ */ A.jsx(
56007
+ i && /* @__PURE__ */ A.jsx(
56008
56008
  u1,
56009
56009
  {
56010
56010
  size: "sm",
56011
56011
  variant: "plain-monochrome",
56012
56012
  className: "rounded-full",
56013
- onClick: a,
56013
+ onClick: o,
56014
56014
  children: /* @__PURE__ */ A.jsx(vt, { size: "sm", kind: "page-back" })
56015
56015
  }
56016
56016
  ),
56017
- /* @__PURE__ */ A.jsx("div", { ref: n, className: "flex gap-1 overflow-hidden", children: e.map((l, s) => /* @__PURE__ */ A.jsx(
56017
+ /* @__PURE__ */ A.jsx("div", { ref: r, className: "flex gap-1 overflow-hidden", children: e.map((s, c) => /* @__PURE__ */ A.jsx(
56018
56018
  "div",
56019
56019
  {
56020
- className: "slider-item border border-surface-active rounded-sm",
56021
- onClick: () => t == null ? void 0 : t(l),
56020
+ className: `slider-item border border-surface-active rounded-sm ${n ? "cursor-pointer" : "cursor-default"}`,
56021
+ onClick: n && t ? () => t(s) : void 0,
56022
56022
  children: /* @__PURE__ */ A.jsx("div", { className: "p-4 w-[180px] h-[190px] flex items-center justify-center", children: /* @__PURE__ */ A.jsxs("div", { className: "block gap-y-2 items-center p-4", children: [
56023
- /* @__PURE__ */ A.jsx(B2, { description: l.tooltipMessage || "", children: /* @__PURE__ */ A.jsx(
56023
+ /* @__PURE__ */ A.jsx(B2, { description: s.tooltipMessage || "", children: /* @__PURE__ */ A.jsx(
56024
56024
  "img",
56025
56025
  {
56026
56026
  className: "size-[50px] rounded-full object-cover",
56027
- src: l.imageUrl,
56027
+ src: s.imageUrl,
56028
56028
  alt: "image transport"
56029
56029
  }
56030
56030
  ) }),
56031
- /* @__PURE__ */ A.jsx(Be, { className: "text-center mt-4 font-extrabold", children: l.title }),
56032
- /* @__PURE__ */ A.jsx(Be, { className: "text-center mt-2", children: l.value })
56031
+ /* @__PURE__ */ A.jsx(Be, { className: "text-center mt-4", weight: "bold", children: s.title }),
56032
+ /* @__PURE__ */ A.jsxs(Be, { className: "text-center mt-2", weight: "bold", children: [
56033
+ " ",
56034
+ s.value
56035
+ ] })
56033
56036
  ] }) })
56034
56037
  },
56035
- s
56038
+ c
56036
56039
  )) }),
56037
- r && /* @__PURE__ */ A.jsx(u1, { size: "sm", variant: "plain-monochrome", onClick: o, children: /* @__PURE__ */ A.jsx(vt, { size: "sm", kind: "page-front" }) })
56040
+ i && /* @__PURE__ */ A.jsx(u1, { size: "sm", variant: "plain-monochrome", onClick: l, children: /* @__PURE__ */ A.jsx(vt, { size: "sm", kind: "page-front" }) })
56038
56041
  ] });
56039
56042
  }
56040
56043
  function vve({ steps: e }) {
@@ -56244,7 +56247,8 @@ function Ave({
56244
56247
  {
56245
56248
  type: o,
56246
56249
  dataKey: d.dataKey,
56247
- stroke: d.stroke
56250
+ stroke: d.stroke,
56251
+ strokeWidth: 3
56248
56252
  },
56249
56253
  f
56250
56254
  ))
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.33.9",
5
+ "version": "2.33.10",
6
6
  "types": "./dist/index.d.ts",
7
7
  "files": [
8
8
  "dist"