@zenpatient-org/healthspan-marketing-ui 0.1.41 → 0.1.42
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/package.json +1 -1
- package/dist/modules/TextBlockAnimated/TextBlockAnimated.d.ts +0 -6
|
@@ -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<BaseButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & 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"
|
|
13
|
+
export declare const IconButton: ({ iconName, variant, size, as: Component, disabled, ...props }: Omit<ButtonProps, "children">) => 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"),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;
|
|
@@ -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 p } 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 e } from "../Icon/Icon.es.js";
|
|
5
|
+
import a 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: l, children: n, active: i, disabled: s, size: m = "md", prefixIcon: o, suffixIcon: t, onClick: d }) => /* @__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(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 }) })
|
|
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"),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,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { cn as
|
|
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";
|
|
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
|
-
|
|
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 }) }) })
|
|
8
8
|
] });
|
|
9
9
|
export {
|
|
10
10
|
f as Ingredient
|
package/package.json
CHANGED