@zenpatient-org/healthspan-marketing-ui 0.1.131 → 0.1.132

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 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../utils/cn/cn.cjs.js"),s=require("../Typography/Typography.cjs.js"),d=require("../IconBracket/IconBracket.cjs.js"),u=require("../Icon/Icon.cjs.js"),n=require("./contentTabs.module.css.cjs.js");function m({tabs:c,activeTab:l,colorScheme:r,activeWithArrow:o,onTabClick:i}){return e.jsx("div",{className:t.cn(n.default.root,n.default[r]),children:c.map(a=>e.jsxs("div",{className:n.default.tabWrap,children:[e.jsxs("button",{className:t.cn(n.default.tab,{[n.default.activeTab]:l.label===a.label}),onClick:()=>i(a),children:[l.label===a.label&&o&&e.jsx("div",{className:n.default.arrow,children:e.jsx(d.IconBracket,{variant:"arrow",size:"md",colorScheme:r})}),a.icon&&e.jsx("div",{className:n.default.icon,children:e.jsx(u.Icon,{name:a.icon})}),e.jsx(s.Typography,{defaultVariant:"headingXs",children:a.label})]}),e.jsx("div",{className:t.cn(n.default.itemContent,{[n.default.itemContentOpen]:l.label===a.label}),children:e.jsx("div",{className:n.default.itemContentInner,children:e.jsx(s.Typography,{as:"p",defaultVariant:"bodySm",children:a.description})})})]},String(a.label)))})}exports.ContentTabs=m;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../utils/cn/cn.cjs.js"),s=require("../Typography/Typography.cjs.js"),d=require("../IconBracket/IconBracket.cjs.js"),u=require("../Icon/Icon.cjs.js"),n=require("./contentTabs.module.css.cjs.js");function m({tabs:c,activeTab:t,colorScheme:r,activeWithArrow:o,onTabClick:i}){return e.jsx("div",{className:l.cn(n.default.root,n.default[r]),children:c.map(a=>e.jsxs("div",{className:n.default.tabWrap,children:[e.jsxs("button",{className:l.cn(n.default.tab,{[n.default.activeTab]:t.label===a.label}),onClick:()=>i(a),children:[t.label===a.label&&o&&e.jsx("div",{className:n.default.arrow,children:e.jsx(d.IconBracket,{variant:"arrow",size:"md",colorScheme:r})}),a.icon&&e.jsx(u.Icon,{name:a.icon,className:n.default.icon}),e.jsx(s.Typography,{defaultVariant:"headingXxs",children:a.label})]}),e.jsx("div",{className:l.cn(n.default.itemContent,{[n.default.itemContentOpen]:t.label===a.label}),children:e.jsx("div",{className:n.default.itemContentInner,children:e.jsx(s.Typography,{as:"p",defaultVariant:"bodySm",children:a.description})})})]},String(a.label)))})}exports.ContentTabs=m;
@@ -1,31 +1,31 @@
1
1
  "use client";
2
- import { jsx as i, jsxs as o } from "react/jsx-runtime";
2
+ import { jsx as r, 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: 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: [
8
+ function b({ tabs: m, activeTab: i, colorScheme: a, activeWithArrow: s, onTabClick: c }) {
9
+ return /* @__PURE__ */ r("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]: r.label === n.label
14
+ [e.activeTab]: i.label === n.label
15
15
  }),
16
16
  onClick: () => c(n),
17
17
  children: [
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("div", { className: e.icon, children: /* @__PURE__ */ i(p, { name: n.icon }) }),
20
- /* @__PURE__ */ i(t, { defaultVariant: "headingXs", children: n.label })
18
+ i.label === n.label && s && /* @__PURE__ */ r("div", { className: e.arrow, children: /* @__PURE__ */ r(d, { variant: "arrow", size: "md", colorScheme: a }) }),
19
+ n.icon && /* @__PURE__ */ r(p, { name: n.icon, className: e.icon }),
20
+ /* @__PURE__ */ r(t, { defaultVariant: "headingXxs", children: n.label })
21
21
  ]
22
22
  }
23
23
  ),
24
- /* @__PURE__ */ i(
24
+ /* @__PURE__ */ r(
25
25
  "div",
26
26
  {
27
- className: l(e.itemContent, { [e.itemContentOpen]: r.label === n.label }),
28
- children: /* @__PURE__ */ i("div", { className: e.itemContentInner, children: /* @__PURE__ */ i(t, { as: "p", defaultVariant: "bodySm", children: n.description }) })
27
+ className: l(e.itemContent, { [e.itemContentOpen]: i.label === n.label }),
28
+ children: /* @__PURE__ */ r("div", { className: e.itemContentInner, children: /* @__PURE__ */ r(t, { as: "p", defaultVariant: "bodySm", children: n.description }) })
29
29
  }
30
30
  )
31
31
  ] }, String(n.label))) });