@zenpatient-org/healthspan-marketing-ui 0.1.158 → 0.1.160
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/Callback/Callback.cjs.js +1 -1
- package/dist/components/Callback/Callback.d.ts +3 -2
- package/dist/components/Callback/Callback.es.js +39 -24
- package/dist/components/Callback/callback.module.css.cjs.js +1 -1
- package/dist/components/Callback/callback.module.css.es.js +10 -8
- package/dist/components/Callback/index.d.ts +1 -1
- package/dist/components/Callback/types.d.ts +1 -0
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/Callback/Callback.cjs.js +1 -1
- package/dist/modules/Callback/Callback.d.ts +3 -2
- package/dist/modules/Callback/Callback.es.js +12 -11
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../utils/cn/cn.cjs.js"),m=require("../Button/Button.cjs.js"),r=require("../Typography/Typography.cjs.js"),a=require("./callback.module.css.cjs.js"),l=require("./constants.cjs.js"),E=({image:c,title:n,description:i,price:d,button:o,size:t="lg",shape:u="square"})=>{const _=a.default[t]||"";return e.jsxs("div",{className:s.cn(a.default.root,_),children:[e.jsxs("div",{className:a.default.productInfo,children:[e.jsx("img",{src:c,alt:"product image",className:s.cn(a.default.productImage,{[a.default.circle]:u==="circle"})}),e.jsxs("div",{className:a.default.textContainer,children:[e.jsx("div",{className:a.default.titleContainer,children:e.jsx(r.Typography,{defaultVariant:l.TITLE_BY_SIZE_DESKTOP[t],mobileVariant:l.TITLE_BY_SIZE_MOBILE[t],className:a.default.title,children:n})}),e.jsx("div",{className:a.default.divider}),e.jsxs("div",{className:a.default.descriptionContainer,children:[e.jsx(r.Typography,{defaultVariant:l.DESC_BY_SIZE_DESKTOP[t],mobileVariant:l.DESC_BY_SIZE_MOBILE[t],className:a.default.description,children:i}),e.jsxs(r.Typography,{defaultVariant:l.PRICE_BY_SIZE_DESKTOP[t],mobileVariant:l.PRICE_BY_SIZE_MOBILE[t],className:a.default.price,children:["Starting at ",d]})]})]})]}),e.jsx("div",{className:a.default.buttonContainer,children:e.jsx(m.Button,{...o,as:"a",size:l.BUTTON_BY_SIZE[t],children:"GET STARTED"})})]})};exports.Callback=E;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from '../Button';
|
|
2
|
-
import { CallbackSize } from './types';
|
|
2
|
+
import { CallbackShape, CallbackSize } from './types';
|
|
3
3
|
|
|
4
4
|
export type CallbackProps = {
|
|
5
5
|
image: string;
|
|
@@ -8,5 +8,6 @@ export type CallbackProps = {
|
|
|
8
8
|
price: string;
|
|
9
9
|
button: ButtonProps;
|
|
10
10
|
size: CallbackSize;
|
|
11
|
+
shape?: CallbackShape;
|
|
11
12
|
};
|
|
12
|
-
export declare const Callback: ({ image, title, description, price, button, size }: CallbackProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Callback: ({ image, title, description, price, button, size, shape, }: CallbackProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,53 +1,68 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { Button as
|
|
1
|
+
import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "../../utils/cn/cn.es.js";
|
|
3
|
+
import { Button as _ } from "../Button/Button.es.js";
|
|
4
4
|
import { Typography as e } from "../Typography/Typography.es.js";
|
|
5
5
|
import a from "./callback.module.css.es.js";
|
|
6
|
-
import { TITLE_BY_SIZE_MOBILE as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
import { TITLE_BY_SIZE_MOBILE as I, TITLE_BY_SIZE_DESKTOP as p, DESC_BY_SIZE_MOBILE as S, DESC_BY_SIZE_DESKTOP as T, PRICE_BY_SIZE_MOBILE as B, PRICE_BY_SIZE_DESKTOP as N, BUTTON_BY_SIZE as h } from "./constants.es.js";
|
|
7
|
+
const Z = ({
|
|
8
|
+
image: c,
|
|
9
|
+
title: n,
|
|
10
|
+
description: o,
|
|
11
|
+
price: s,
|
|
12
|
+
button: m,
|
|
13
|
+
size: r = "lg",
|
|
14
|
+
shape: d = "square"
|
|
15
|
+
}) => {
|
|
16
|
+
const E = a[r] || "";
|
|
17
|
+
return /* @__PURE__ */ t("div", { className: l(a.root, E), children: [
|
|
18
|
+
/* @__PURE__ */ t("div", { className: a.productInfo, children: [
|
|
19
|
+
/* @__PURE__ */ i(
|
|
20
|
+
"img",
|
|
21
|
+
{
|
|
22
|
+
src: c,
|
|
23
|
+
alt: "product image",
|
|
24
|
+
className: l(a.productImage, { [a.circle]: d === "circle" })
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ t("div", { className: a.textContainer, children: [
|
|
28
|
+
/* @__PURE__ */ i("div", { className: a.titleContainer, children: /* @__PURE__ */ i(
|
|
14
29
|
e,
|
|
15
30
|
{
|
|
16
|
-
defaultVariant:
|
|
17
|
-
mobileVariant:
|
|
31
|
+
defaultVariant: p[r],
|
|
32
|
+
mobileVariant: I[r],
|
|
18
33
|
className: a.title,
|
|
19
34
|
children: n
|
|
20
35
|
}
|
|
21
36
|
) }),
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ i("div", { className: a.divider }),
|
|
38
|
+
/* @__PURE__ */ t("div", { className: a.descriptionContainer, children: [
|
|
39
|
+
/* @__PURE__ */ i(
|
|
25
40
|
e,
|
|
26
41
|
{
|
|
27
|
-
defaultVariant:
|
|
28
|
-
mobileVariant:
|
|
42
|
+
defaultVariant: T[r],
|
|
43
|
+
mobileVariant: S[r],
|
|
29
44
|
className: a.description,
|
|
30
45
|
children: o
|
|
31
46
|
}
|
|
32
47
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ t(
|
|
34
49
|
e,
|
|
35
50
|
{
|
|
36
|
-
defaultVariant:
|
|
37
|
-
mobileVariant:
|
|
51
|
+
defaultVariant: N[r],
|
|
52
|
+
mobileVariant: B[r],
|
|
38
53
|
className: a.price,
|
|
39
54
|
children: [
|
|
40
55
|
"Starting at ",
|
|
41
|
-
|
|
56
|
+
s
|
|
42
57
|
]
|
|
43
58
|
}
|
|
44
59
|
)
|
|
45
60
|
] })
|
|
46
61
|
] })
|
|
47
62
|
] }),
|
|
48
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ i("div", { className: a.buttonContainer, children: /* @__PURE__ */ i(_, { ...m, as: "a", size: h[r], children: "GET STARTED" }) })
|
|
49
64
|
] });
|
|
50
65
|
};
|
|
51
66
|
export {
|
|
52
|
-
|
|
67
|
+
Z as Callback
|
|
53
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="callback-module__root___G-me-",o="callback-module__productInfo___RaPzp",e="callback-module__productImage___JhQy1",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="callback-module__root___G-me-",o="callback-module__productInfo___RaPzp",e="callback-module__productImage___JhQy1",c="callback-module__textContainer___yiFoh",_="callback-module__title___dv3yl",l="callback-module__titleContainer___1-66k",n="callback-module__description___T5Cev",i="callback-module__divider___FqQuQ",a="callback-module__descriptionContainer___bnvkI",r="callback-module__price___b9xMh",d="callback-module__buttonContainer___YNYzQ",u="callback-module__lg___oScD-",s="callback-module__circle___ttISl",m="callback-module__sm___uKfE9",b={root:t,productInfo:o,productImage:e,textContainer:c,title:_,titleContainer:l,description:n,divider:i,descriptionContainer:a,price:r,buttonContainer:d,lg:u,circle:s,sm:m};exports.buttonContainer=d;exports.circle=s;exports.default=b;exports.description=n;exports.descriptionContainer=a;exports.divider=i;exports.lg=u;exports.price=r;exports.productImage=e;exports.productInfo=o;exports.root=t;exports.sm=m;exports.textContainer=c;exports.title=_;exports.titleContainer=l;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const t = "callback-module__root___G-me-",
|
|
1
|
+
const t = "callback-module__root___G-me-", _ = "callback-module__productInfo___RaPzp", o = "callback-module__productImage___JhQy1", c = "callback-module__textContainer___yiFoh", e = "callback-module__title___dv3yl", l = "callback-module__titleContainer___1-66k", n = "callback-module__description___T5Cev", a = "callback-module__divider___FqQuQ", i = "callback-module__descriptionContainer___bnvkI", r = "callback-module__price___b9xMh", d = "callback-module__buttonContainer___YNYzQ", s = "callback-module__lg___oScD-", u = "callback-module__circle___ttISl", m = "callback-module__sm___uKfE9", b = {
|
|
2
2
|
root: t,
|
|
3
|
-
productInfo:
|
|
4
|
-
productImage:
|
|
3
|
+
productInfo: _,
|
|
4
|
+
productImage: o,
|
|
5
5
|
textContainer: c,
|
|
6
6
|
title: e,
|
|
7
7
|
titleContainer: l,
|
|
@@ -11,20 +11,22 @@ const t = "callback-module__root___G-me-", o = "callback-module__productInfo___R
|
|
|
11
11
|
price: r,
|
|
12
12
|
buttonContainer: d,
|
|
13
13
|
lg: s,
|
|
14
|
-
|
|
14
|
+
circle: u,
|
|
15
|
+
sm: m
|
|
15
16
|
};
|
|
16
17
|
export {
|
|
17
18
|
d as buttonContainer,
|
|
18
|
-
|
|
19
|
+
u as circle,
|
|
20
|
+
b as default,
|
|
19
21
|
n as description,
|
|
20
22
|
i as descriptionContainer,
|
|
21
23
|
a as divider,
|
|
22
24
|
s as lg,
|
|
23
25
|
r as price,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
o as productImage,
|
|
27
|
+
_ as productInfo,
|
|
26
28
|
t as root,
|
|
27
|
-
|
|
29
|
+
m as sm,
|
|
28
30
|
c as textContainer,
|
|
29
31
|
e as title,
|
|
30
32
|
l as titleContainer
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Callback, type CallbackProps } from './Callback';
|
|
2
|
-
export type { CallbackSize } from './types';
|
|
2
|
+
export type { CallbackSize, CallbackShape } from './types';
|