@zenpatient-org/healthspan-marketing-ui 0.1.37 → 0.1.38
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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),a=require("../Typography/Typography.cjs.js"),d=require("../../utils/cn/cn.cjs.js"),e=require("./coloredDivider.module.css.cjs.js"),t=({label:i,variant:o})=>r.jsxs("div",{className:e.default.root,children:[i&&r.jsxs(a.Typography,{as:"h3",defaultVariant:"headingLg",mobileVariant:"headingSm",className:e.default.label,children:["(",i,")"]}),r.jsx("div",{className:d.cn(e.default.divider,e.default[o])})]});exports.ColoredDivider=t;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
SENESCENCE = "senescence",
|
|
3
|
-
GREY = "grey",
|
|
4
|
-
LABS = "labs",
|
|
5
|
-
ENERGY = "energy",
|
|
6
|
-
METABOLISM = "metabolism"
|
|
7
|
-
}
|
|
1
|
+
export type TDividerColorVariant = 'senescence' | 'grey' | 'labs' | 'energy' | 'metabolism';
|
|
8
2
|
export type ColoredDividerProps = {
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
variant: TDividerColorVariant;
|
|
4
|
+
label?: string;
|
|
11
5
|
};
|
|
12
6
|
export declare const ColoredDivider: ({ label, variant }: ColoredDividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { cn as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/* @__PURE__ */ r(t, { as: "h3", defaultVariant: "headingLg", mobileVariant: "headingSm", className: a.label, children: [
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as m } from "../Typography/Typography.es.js";
|
|
3
|
+
import { cn as s } from "../../utils/cn/cn.es.js";
|
|
4
|
+
import r from "./coloredDivider.module.css.es.js";
|
|
5
|
+
const c = ({ label: i, variant: a }) => /* @__PURE__ */ o("div", { className: r.root, children: [
|
|
6
|
+
i && /* @__PURE__ */ o(m, { as: "h3", defaultVariant: "headingLg", mobileVariant: "headingSm", className: r.label, children: [
|
|
8
7
|
"(",
|
|
9
|
-
|
|
8
|
+
i,
|
|
10
9
|
")"
|
|
11
10
|
] }),
|
|
12
|
-
/* @__PURE__ */
|
|
11
|
+
/* @__PURE__ */ e("div", { className: s(r.divider, r[a]) })
|
|
13
12
|
] });
|
|
14
13
|
export {
|
|
15
|
-
|
|
16
|
-
i as TDividerColor
|
|
14
|
+
c as ColoredDivider
|
|
17
15
|
};
|