@zenpatient-org/healthspan-marketing-ui 0.1.144 → 0.1.146
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/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.cjs.js +1 -1
- package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.es.js +33 -32
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.cjs.js +1 -1
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.es.js +33 -30
- package/dist/components/ComplexImageCarousel/useComplexImageCarousel.cjs.js +1 -1
- package/dist/components/ComplexImageCarousel/useComplexImageCarousel.d.ts +1 -0
- package/dist/components/ComplexImageCarousel/useComplexImageCarousel.es.js +160 -122
- package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
- package/dist/components/ContentTabs/ContentTabs.es.js +10 -10
- package/dist/components/Tabs/TabsWithFade.cjs.js +1 -1
- package/dist/components/Tabs/TabsWithFade.es.js +1 -1
- package/dist/healthspan-marketing-ui.css +1 -1
- package/package.json +1 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as i, jsxs as o } from "react/jsx-runtime";
|
|
3
3
|
import { cn as l } from "../../utils/cn/cn.es.js";
|
|
4
4
|
import { Typography as t } from "../Typography/Typography.es.js";
|
|
5
5
|
import { IconBracket as d } from "../IconBracket/IconBracket.es.js";
|
|
6
6
|
import { Icon as p } from "../Icon/Icon.es.js";
|
|
7
7
|
import e from "./contentTabs.module.css.es.js";
|
|
8
|
-
function b({ tabs: m, activeTab:
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
function b({ tabs: m, activeTab: r, colorScheme: a, activeWithArrow: s, onTabClick: c }) {
|
|
9
|
+
return /* @__PURE__ */ i("div", { className: l(e.root, e[a]), children: m.map((n) => /* @__PURE__ */ o("div", { className: e.tabWrap, children: [
|
|
10
10
|
/* @__PURE__ */ o(
|
|
11
11
|
"button",
|
|
12
12
|
{
|
|
13
13
|
className: l(e.tab, {
|
|
14
|
-
[e.activeTab]:
|
|
14
|
+
[e.activeTab]: r.label === n.label
|
|
15
15
|
}),
|
|
16
16
|
onClick: () => c(n),
|
|
17
17
|
children: [
|
|
18
|
-
|
|
19
|
-
n.icon && /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
18
|
+
r.label === n.label && s && /* @__PURE__ */ i("div", { className: e.arrow, children: /* @__PURE__ */ i(d, { variant: "arrow", size: "md", colorScheme: a }) }),
|
|
19
|
+
n.icon && /* @__PURE__ */ i(p, { name: n.icon, className: e.icon }),
|
|
20
|
+
/* @__PURE__ */ i(t, { defaultVariant: "headingXxs", children: n.label })
|
|
21
21
|
]
|
|
22
22
|
}
|
|
23
23
|
),
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ i(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
|
-
className: l(e.itemContent, { [e.itemContentOpen]:
|
|
28
|
-
children: /* @__PURE__ */
|
|
27
|
+
className: l(e.itemContent, { [e.itemContentOpen]: r.label === n.label }),
|
|
28
|
+
children: /* @__PURE__ */ i("div", { className: e.itemContentInner, children: /* @__PURE__ */ i(t, { as: "div", defaultVariant: "bodySm", children: n.description }) })
|
|
29
29
|
}
|
|
30
30
|
)
|
|
31
31
|
] }, String(n.label))) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),s=require("react"),d=require("../../utils/cn/cn.cjs.js"),f=require("./Tabs.cjs.js"),r=require("./tabs.module.css.cjs.js");function h(a){const n=s.useRef(null),[l,o]=s.useState(!1),[i,u]=s.useState(!1),t=s.useCallback(()=>{const e=n.current;e&&(o(e.scrollLeft>
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),s=require("react"),d=require("../../utils/cn/cn.cjs.js"),f=require("./Tabs.cjs.js"),r=require("./tabs.module.css.cjs.js");function h(a){const n=s.useRef(null),[l,o]=s.useState(!1),[i,u]=s.useState(!1),t=s.useCallback(()=>{const e=n.current;e&&(o(e.scrollLeft>10),u(e.scrollLeft+e.clientWidth<e.scrollWidth-10))},[]);return s.useEffect(()=>{const e=n.current;if(e)return t(),e.addEventListener("scroll",t),window.addEventListener("resize",t),()=>{e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}},[t]),c.jsx("div",{className:d.cn(r.default.tabsWrapper,{[r.default.showFadeLeft]:l,[r.default.showFadeRight]:i}),children:c.jsx("div",{ref:n,className:r.default.tabsTape,children:c.jsx(f.Tabs,{...a})})})}exports.TabsWithFade=h;
|
|
@@ -7,7 +7,7 @@ import r from "./tabs.module.css.es.js";
|
|
|
7
7
|
function R(i) {
|
|
8
8
|
const s = d(null), [l, c] = n(!1), [a, f] = n(!1), t = h(() => {
|
|
9
9
|
const e = s.current;
|
|
10
|
-
e && (c(e.scrollLeft >
|
|
10
|
+
e && (c(e.scrollLeft > 10), f(e.scrollLeft + e.clientWidth < e.scrollWidth - 10));
|
|
11
11
|
}, []);
|
|
12
12
|
return m(() => {
|
|
13
13
|
const e = s.current;
|