@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.
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/Tag/Tag.cjs.js +1 -1
- package/dist/components/Tag/Tag.d.ts +2 -2
- package/dist/components/Tag/Tag.es.js +11 -11
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.cjs.js +1 -1
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.es.js +6 -6
- package/dist/modules/IngredientHighlight/components/Ingredient/types.d.ts +1 -1
- package/dist/modules/IngredientHighlight/types.d.ts +1 -1
- package/dist/modules/TextBlockAnimated/TextBlockAnimated.d.ts +6 -0
- package/package.json +1 -1
|
@@ -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<
|
|
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"),
|
|
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
|
|
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
|
|
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
|
|
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
|
|
5
|
-
import
|
|
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:
|
|
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(
|
|
13
|
-
disabled:
|
|
14
|
-
onClick: () =>
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
o && /* @__PURE__ */ r("div", { className:
|
|
17
|
-
/* @__PURE__ */ r("p", { children:
|
|
18
|
-
|
|
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"),
|
|
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
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { cn as
|
|
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:
|
|
6
|
-
/* @__PURE__ */ e("div", { className: r.header, children: /* @__PURE__ */ e(
|
|
7
|
-
/* @__PURE__ */ e("div", { className:
|
|
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
|