@zenpatient-org/healthspan-marketing-ui 0.1.40 → 0.1.41

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.
@@ -11,5 +11,5 @@ interface BaseButtonProps {
11
11
  suffixIcon?: EIconName;
12
12
  }
13
13
  export type ButtonProps = BaseButtonProps & ButtonHTMLAttributes<HTMLButtonElement> & AnchorHTMLAttributes<HTMLAnchorElement>;
14
- export declare const Button: React.ForwardRefExoticComponent<BaseButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLElement>>;
14
+ export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "className"> & React.RefAttributes<HTMLElement>>;
15
15
  export {};
@@ -10,5 +10,5 @@ interface BaseButtonProps {
10
10
  as?: ElementType;
11
11
  }
12
12
  export type ButtonProps = BaseButtonProps & ButtonHTMLAttributes<HTMLButtonElement> & AnchorHTMLAttributes<HTMLAnchorElement>;
13
- export declare const IconButton: ({ iconName, variant, size, as: Component, disabled, ...props }: Omit<ButtonProps, "children">) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const IconButton: ({ iconName, variant, size, as: Component, disabled, ...props }: Omit<ButtonProps, "children" | "className">) => import("react/jsx-runtime").JSX.Element;
14
14
  export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../styles/typography.module.css.cjs.js"),m=require("../../utils/cn/cn.cjs.js"),s=require("../Icon/Icon.cjs.js"),t=require("./tag.module.css.cjs.js"),g={md:l.default.labelMd,lg:l.default.labelLg},j=({value:r,children:o,active:d,disabled:u,size:a="md",prefixIcon:n,suffixIcon:c,onClick:i})=>e.jsx("button",{className:m.cn(t.default.tag,g[a],{[t.default.active]:d},t.default[a]),disabled:u,onClick:()=>i(r),children:e.jsxs("div",{className:t.default.content,children:[n&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(s.Icon,{name:n})}),e.jsx("p",{children:o}),c&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(s.Icon,{name:c})})]})});exports.Tag=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../styles/typography.module.css.cjs.js"),m=require("../../utils/cn/cn.cjs.js"),d=require("../Icon/Icon.cjs.js"),t=require("./tag.module.css.cjs.js"),g={md:l.default.labelMd,lg:l.default.labelLg},j=({value:n,children:u,active:o,disabled:i,size:s="md",prefixIcon:c,suffixIcon:r,onClick:a})=>e.jsx("button",{className:m.cn(t.default.tag,g[s],{[t.default.active]:o},t.default[s]),disabled:i,onClick:()=>n&&(a==null?void 0:a(n)),children:e.jsxs("div",{className:t.default.content,children:[c&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(d.Icon,{name:c})}),e.jsx("p",{children:u}),r&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(d.Icon,{name:r})})]})});exports.Tag=j;
@@ -3,14 +3,14 @@ import { EIconName } from '../Icon';
3
3
 
4
4
  type Props = {
5
5
  children: ReactNode;
6
- value: string;
6
+ value?: string;
7
7
  active?: boolean;
8
8
  size?: 'md' | 'lg';
9
9
  disabled?: boolean;
10
10
  prefixIcon?: EIconName;
11
11
  suffixIcon?: EIconName;
12
12
  iconPosition?: 'left' | 'right';
13
- onClick: (value: string) => void;
13
+ onClick?: (value: string) => void;
14
14
  };
15
15
  export declare const Tag: ({ value, children, active, disabled, size, prefixIcon, suffixIcon, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -1,21 +1,21 @@
1
- import { jsx as r, jsxs as p } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
2
  import c from "../../styles/typography.module.css.es.js";
3
3
  import { cn as g } from "../../utils/cn/cn.es.js";
4
- import { Icon as e } from "../Icon/Icon.es.js";
5
- import a from "./tag.module.css.es.js";
4
+ import { Icon as n } from "../Icon/Icon.es.js";
5
+ import m from "./tag.module.css.es.js";
6
6
  const h = {
7
7
  md: c.labelMd,
8
8
  lg: c.labelLg
9
- }, f = ({ value: l, children: n, active: i, disabled: s, size: m = "md", prefixIcon: o, suffixIcon: t, onClick: d }) => /* @__PURE__ */ r(
9
+ }, f = ({ value: t, children: d, active: l, disabled: p, size: e = "md", prefixIcon: o, suffixIcon: s, onClick: a }) => /* @__PURE__ */ r(
10
10
  "button",
11
11
  {
12
- className: g(a.tag, h[m], { [a.active]: i }, a[m]),
13
- disabled: s,
14
- onClick: () => d(l),
15
- children: /* @__PURE__ */ p("div", { className: a.content, children: [
16
- o && /* @__PURE__ */ r("div", { className: a.iconWrap, children: /* @__PURE__ */ r(e, { name: o }) }),
17
- /* @__PURE__ */ r("p", { children: n }),
18
- t && /* @__PURE__ */ r("div", { className: a.iconWrap, children: /* @__PURE__ */ r(e, { name: t }) })
12
+ className: g(m.tag, h[e], { [m.active]: l }, m[e]),
13
+ disabled: p,
14
+ onClick: () => t && (a == null ? void 0 : a(t)),
15
+ children: /* @__PURE__ */ i("div", { className: m.content, children: [
16
+ o && /* @__PURE__ */ r("div", { className: m.iconWrap, children: /* @__PURE__ */ r(n, { name: o }) }),
17
+ /* @__PURE__ */ r("p", { children: d }),
18
+ s && /* @__PURE__ */ r("div", { className: m.iconWrap, children: /* @__PURE__ */ r(n, { name: s }) })
19
19
  ] })
20
20
  }
21
21
  );
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../../../components/Typography/Typography.cjs.js"),t=require("../../../../utils/cn/cn.cjs.js"),r=require("./ingredient.module.css.cjs.js"),o=({title:d,description:a,isOpen:n,index:s,onClick:c})=>e.jsxs("div",{onClick:()=>c(s??0),className:t.cn(r.default.root,{[r.default.rootOpened]:n}),children:[e.jsx("div",{className:r.default.header,children:e.jsx(i.Typography,{defaultVariant:"headingXs",children:d})}),e.jsx("div",{className:t.cn(r.default.description,{[r.default.descriptionShow]:n}),children:e.jsx("div",{className:r.default.descriptionInner,children:e.jsx(i.Typography,{as:"p",defaultVariant:"bodySm",children:a})})})]});exports.Ingredient=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../../../components/Typography/Typography.cjs.js"),a=require("../../../../utils/cn/cn.cjs.js"),r=require("./ingredient.module.css.cjs.js"),l=({title:i,description:t,isOpen:n,index:o,onClick:c})=>e.jsxs("div",{onClick:()=>c(o??0),className:a.cn(r.default.root,{[r.default.rootOpened]:n}),children:[e.jsx("div",{className:r.default.header,children:e.jsx(d.Typography,{defaultVariant:"headingXs",color:`color-text-primary${n?"":"-disabled"}`,children:i})}),!!t&&e.jsx("div",{className:a.cn(r.default.description,{[r.default.descriptionShow]:n}),children:e.jsx("div",{className:r.default.descriptionInner,children:e.jsx(d.Typography,{as:"p",defaultVariant:"bodySm",children:t})})})]});exports.Ingredient=l;
@@ -1,10 +1,10 @@
1
- import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
- import { Typography as o } from "../../../../components/Typography/Typography.es.js";
3
- import { cn as d } from "../../../../utils/cn/cn.es.js";
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { Typography as d } from "../../../../components/Typography/Typography.es.js";
3
+ import { cn as a } from "../../../../utils/cn/cn.es.js";
4
4
  import r from "./ingredient.module.css.es.js";
5
- const f = ({ title: n, description: a, isOpen: i, index: s, onClick: t }) => /* @__PURE__ */ c("div", { onClick: () => t(s ?? 0), className: d(r.root, { [r.rootOpened]: i }), children: [
6
- /* @__PURE__ */ e("div", { className: r.header, children: /* @__PURE__ */ e(o, { defaultVariant: "headingXs", children: n }) }),
7
- /* @__PURE__ */ e("div", { className: d(r.description, { [r.descriptionShow]: i }), children: /* @__PURE__ */ e("div", { className: r.descriptionInner, children: /* @__PURE__ */ e(o, { as: "p", defaultVariant: "bodySm", children: a }) }) })
5
+ const f = ({ title: t, description: i, isOpen: o, index: n, onClick: c }) => /* @__PURE__ */ l("div", { onClick: () => c(n ?? 0), className: a(r.root, { [r.rootOpened]: o }), children: [
6
+ /* @__PURE__ */ e("div", { className: r.header, children: /* @__PURE__ */ e(d, { defaultVariant: "headingXs", color: `color-text-primary${o ? "" : "-disabled"}`, children: t }) }),
7
+ !!i && /* @__PURE__ */ e("div", { className: a(r.description, { [r.descriptionShow]: o }), children: /* @__PURE__ */ e("div", { className: r.descriptionInner, children: /* @__PURE__ */ e(d, { as: "p", defaultVariant: "bodySm", children: i }) }) })
8
8
  ] });
9
9
  export {
10
10
  f as Ingredient
@@ -1,6 +1,6 @@
1
1
  export type TIngredient = {
2
2
  title: string;
3
- description: string;
3
+ description?: string;
4
4
  index: number;
5
5
  isOpen: boolean;
6
6
  onClick: (index: number) => void;
@@ -2,6 +2,6 @@ export type TIngredientHighlight = {
2
2
  items: Array<{
3
3
  image: string;
4
4
  title: string;
5
- description: string;
5
+ description?: string;
6
6
  }>;
7
7
  };
@@ -0,0 +1,6 @@
1
+ export type TextBlockAnimatedProps = {
2
+ label?: string;
3
+ body: string;
4
+ colorScheme: 'light' | 'dark';
5
+ };
6
+ export declare function TextBlockAnimated({ label, body, colorScheme }: TextBlockAnimatedProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",