@zenpatient-org/healthspan-marketing-ui 0.2.68 → 0.2.70
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/ImageGallery/ImageGallery.cjs.js +1 -1
- package/dist/components/ImageGallery/ImageGallery.d.ts +2 -1
- package/dist/components/ImageGallery/ImageGallery.es.js +54 -54
- package/dist/components/ImageGallery/components/ImageGalleryPagination/imageGalleryPagination.module.css +33 -28
- package/dist/components/ImageGallery/imageGallery.module.css +1 -2
- package/dist/components/Profile/Profile.cjs.js +1 -0
- package/dist/components/Profile/Profile.d.ts +10 -0
- package/dist/components/Profile/Profile.es.js +18 -0
- package/dist/components/Profile/index.d.ts +1 -0
- package/dist/components/Profile/styles.module.css +106 -0
- package/dist/components/Profile/utils.cjs.js +1 -0
- package/dist/components/Profile/utils.d.ts +7 -0
- package/dist/components/Profile/utils.es.js +8 -0
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Typography/typography.module.css +81 -0
- package/package.json +6 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),w=require("swiper/modules"),h=require("swiper/react"),P=require("../../utils/useSwiper/useSwiper.cjs.js"),N=require("../../utils/cn/cn.cjs.js");;/* empty css */;/* empty css */;/* empty css */const n=require("../../src/components/ImageGallery/imageGallery.module.css"),m=require("./components/ImageGalleryPagination/ImageGalleryPagination.cjs.js"),g=require("../GalleryPagination/GalleryPagination.cjs.js"),b=require("../Label/Label.cjs.js"),v=[w.Navigation],G=({images:r,label:o,className:S,type:s="primary",paginationType:t})=>{const{activeIndex:i,handleSlideTo:d,handleSlideChange:p,onSwiperInit:j,handleSwiperResize:x,handleUserInteraction:a}=P.useSwiperWithAutoPlay(3e3),l=u.useCallback(c=>{a(),d(c)},[a,d]),y=u.useMemo(()=>t?t==="thumbnail"?e.jsx(m.ImageGalleryPagination,{images:r,activeIndex:i,onSelect:l}):e.jsx(g.GalleryPagination,{count:r.length,activeIndex:i,onSelect:l}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:n.hideOnMobile,children:e.jsx(m.ImageGalleryPagination,{images:r,activeIndex:i,onSelect:l})}),e.jsx("div",{className:n.hideOnDesktop,children:e.jsx(g.GalleryPagination,{count:r.length,activeIndex:i,onSelect:l})})]}),[r.length,i,l,t]);return e.jsxs("div",{className:N.cn(n.root,S,{[n.primary]:s==="primary",[n.secondary]:s==="secondary"}),children:[o&&e.jsx("div",{className:n.labelWrap,children:e.jsx(b.Label,{color:"black",size:"sm",children:o})}),e.jsx(h.Swiper,{onSwiper:j,onResize:x,onSlideChange:p,onTouchStart:a,onTouchEnd:a,modules:v,spaceBetween:0,slidesPerView:1,className:n.swiper,children:r.map((c,q)=>e.jsx(h.SwiperSlide,{children:e.jsx("div",{className:n.imageContainer,children:e.jsx("div",{className:n.imageWrapper,children:e.jsx("img",{src:c,alt:"product image",width:s==="primary"?600:492,height:s==="primary"?600:389,className:n.image,onClick:a})})})},q))}),y]})};exports.ImageGallery=G;
|
|
@@ -4,5 +4,6 @@ export type ImageGalleryProps = {
|
|
|
4
4
|
label?: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
type?: 'primary' | 'secondary';
|
|
7
|
+
paginationType?: 'thumbnail' | 'bullet';
|
|
7
8
|
};
|
|
8
|
-
export declare const ImageGallery: ({ images, label, className, type }: ImageGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ImageGallery: ({ images, label, className, type, paginationType }: ImageGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import { Navigation as
|
|
5
|
-
import { Swiper as
|
|
6
|
-
import { useSwiperWithAutoPlay as
|
|
7
|
-
import { cn as
|
|
2
|
+
import { jsxs as d, Fragment as v, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback as y, useMemo as I } from "react";
|
|
4
|
+
import { Navigation as P } from "swiper/modules";
|
|
5
|
+
import { Swiper as b, SwiperSlide as C } from "swiper/react";
|
|
6
|
+
import { useSwiperWithAutoPlay as k } from "../../utils/useSwiper/useSwiper.es.js";
|
|
7
|
+
import { cn as x } from "../../utils/cn/cn.es.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
const
|
|
16
|
-
const { activeIndex: n, handleSlideTo:
|
|
17
|
-
(
|
|
18
|
-
|
|
11
|
+
import r from "../../components/ImageGallery/imageGallery.module.css";
|
|
12
|
+
import { ImageGalleryPagination as h } from "./components/ImageGalleryPagination/ImageGalleryPagination.es.js";
|
|
13
|
+
import { GalleryPagination as p } from "../GalleryPagination/GalleryPagination.es.js";
|
|
14
|
+
import { Label as W } from "../Label/Label.es.js";
|
|
15
|
+
const z = [P], V = ({ images: i, label: m, className: S, type: l = "primary", paginationType: t }) => {
|
|
16
|
+
const { activeIndex: n, handleSlideTo: s, handleSlideChange: u, onSwiperInit: f, handleSwiperResize: g, handleUserInteraction: o } = k(3e3), a = y(
|
|
17
|
+
(c) => {
|
|
18
|
+
o(), s(c);
|
|
19
19
|
},
|
|
20
|
-
[
|
|
21
|
-
)
|
|
22
|
-
|
|
20
|
+
[o, s]
|
|
21
|
+
), w = I(() => t ? t === "thumbnail" ? /* @__PURE__ */ e(h, { images: i, activeIndex: n, onSelect: a }) : /* @__PURE__ */ e(p, { count: i.length, activeIndex: n, onSelect: a }) : /* @__PURE__ */ d(v, { children: [
|
|
22
|
+
/* @__PURE__ */ e("div", { className: r.hideOnMobile, children: /* @__PURE__ */ e(
|
|
23
|
+
h,
|
|
24
|
+
{
|
|
25
|
+
images: i,
|
|
26
|
+
activeIndex: n,
|
|
27
|
+
onSelect: a
|
|
28
|
+
}
|
|
29
|
+
) }),
|
|
30
|
+
/* @__PURE__ */ e("div", { className: r.hideOnDesktop, children: /* @__PURE__ */ e(
|
|
31
|
+
p,
|
|
32
|
+
{
|
|
33
|
+
count: i.length,
|
|
34
|
+
activeIndex: n,
|
|
35
|
+
onSelect: a
|
|
36
|
+
}
|
|
37
|
+
) })
|
|
38
|
+
] }), [i.length, n, a, t]);
|
|
39
|
+
return /* @__PURE__ */ d(
|
|
23
40
|
"div",
|
|
24
41
|
{
|
|
25
|
-
className:
|
|
26
|
-
[
|
|
27
|
-
[
|
|
42
|
+
className: x(r.root, S, {
|
|
43
|
+
[r.primary]: l === "primary",
|
|
44
|
+
[r.secondary]: l === "secondary"
|
|
28
45
|
}),
|
|
29
46
|
children: [
|
|
30
|
-
m && /* @__PURE__ */ e("div", { className:
|
|
47
|
+
m && /* @__PURE__ */ e("div", { className: r.labelWrap, children: /* @__PURE__ */ e(W, { color: "black", size: "sm", children: m }) }),
|
|
31
48
|
/* @__PURE__ */ e(
|
|
32
|
-
|
|
49
|
+
b,
|
|
33
50
|
{
|
|
34
|
-
onSwiper:
|
|
51
|
+
onSwiper: f,
|
|
35
52
|
onResize: g,
|
|
36
|
-
onSlideChange:
|
|
37
|
-
onTouchStart:
|
|
38
|
-
onTouchEnd:
|
|
39
|
-
modules:
|
|
53
|
+
onSlideChange: u,
|
|
54
|
+
onTouchStart: o,
|
|
55
|
+
onTouchEnd: o,
|
|
56
|
+
modules: z,
|
|
40
57
|
spaceBetween: 0,
|
|
41
58
|
slidesPerView: 1,
|
|
42
|
-
className:
|
|
43
|
-
children:
|
|
59
|
+
className: r.swiper,
|
|
60
|
+
children: i.map((c, N) => /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e("div", { className: r.imageContainer, children: /* @__PURE__ */ e("div", { className: r.imageWrapper, children: /* @__PURE__ */ e(
|
|
44
61
|
"img",
|
|
45
62
|
{
|
|
46
|
-
src:
|
|
63
|
+
src: c,
|
|
47
64
|
alt: "product image",
|
|
48
|
-
width:
|
|
49
|
-
height:
|
|
50
|
-
className:
|
|
51
|
-
onClick:
|
|
65
|
+
width: l === "primary" ? 600 : 492,
|
|
66
|
+
height: l === "primary" ? 600 : 389,
|
|
67
|
+
className: r.image,
|
|
68
|
+
onClick: o
|
|
52
69
|
}
|
|
53
|
-
) }) }) },
|
|
70
|
+
) }) }) }, N))
|
|
54
71
|
}
|
|
55
72
|
),
|
|
56
|
-
|
|
57
|
-
/* @__PURE__ */ e("div", { className: i.hideOnMobile, children: /* @__PURE__ */ e(
|
|
58
|
-
b,
|
|
59
|
-
{
|
|
60
|
-
images: o,
|
|
61
|
-
activeIndex: n,
|
|
62
|
-
onSelect: l
|
|
63
|
-
}
|
|
64
|
-
) }),
|
|
65
|
-
/* @__PURE__ */ e("div", { className: i.hideOnDesktop, children: /* @__PURE__ */ e(
|
|
66
|
-
d,
|
|
67
|
-
{
|
|
68
|
-
count: o.length,
|
|
69
|
-
activeIndex: n,
|
|
70
|
-
onSelect: l
|
|
71
|
-
}
|
|
72
|
-
) })
|
|
73
|
-
] }) : /* @__PURE__ */ e(d, { count: o.length, activeIndex: n, onSelect: l })
|
|
73
|
+
w
|
|
74
74
|
]
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
};
|
|
78
78
|
export {
|
|
79
|
-
|
|
79
|
+
V as ImageGallery
|
|
80
80
|
};
|
|
@@ -1,32 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
.root {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
padding: 0 24px;
|
|
6
|
+
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
.thumbnailButton {
|
|
9
|
+
width: 64px;
|
|
10
|
+
height: 64px;
|
|
11
|
+
padding: 0;
|
|
12
|
+
border: 1px solid var(--color-neutral-200);
|
|
13
|
+
border-radius: var(--border-radius-xs);
|
|
14
|
+
background: none;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
opacity: 0.5;
|
|
17
|
+
transition: opacity 0.3s ease;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
.thumbnailButton.active {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
border-color: var(--color-neutral-200);
|
|
24
|
+
}
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
26
|
+
.thumbnailImage {
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
object-fit: cover;
|
|
32
30
|
}
|
|
31
|
+
|
|
32
|
+
@media (width <= 768px) {
|
|
33
|
+
.thumbnailButton {
|
|
34
|
+
width: 48px;
|
|
35
|
+
height: 48px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../Typography/Typography.cjs.js"),i=require("./utils.cjs.js"),s=require("../../src/components/Profile/styles.module.css"),m=require("../Icon/Icon.cjs.js"),d=require("../Icon/constants.cjs.js"),p={xl:"profileXl",lg:"profileLg",md:"profileMd",sm:"profileSm"},u=({firstName:o,lastName:r,image:a,size:n="md",editable:t=!1,onEdit:c})=>e.jsxs("div",{className:s.root,"data-size":n,children:[a?e.jsx("div",{className:s.imageContainer,children:e.jsx("img",{src:a,alt:i.getFullName({firstName:o,lastName:r}),className:s.image})}):e.jsx("div",{className:s.textContainer,children:e.jsx(l.Typography,{defaultVariant:p[n],className:s.name,children:i.getInitials({firstName:o,lastName:r})})}),t&&n!=="sm"&&e.jsx("div",{className:s.editableContainer,onClick:c,children:e.jsx(m.Icon,{name:d.EIconName.PLUS,className:s.editableIcon})})]});exports.Profile=u;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ProfileProps = {
|
|
2
|
+
firstName: string;
|
|
3
|
+
lastName: string;
|
|
4
|
+
image?: string;
|
|
5
|
+
size?: ProfileSizeVariant;
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
onEdit?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export type ProfileSizeVariant = 'xl' | 'lg' | 'md' | 'sm';
|
|
10
|
+
export declare const Profile: ({ firstName, lastName, image, size, editable, onEdit }: ProfileProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as n } from "../Typography/Typography.es.js";
|
|
3
|
+
import { getFullName as c, getInitials as d } from "./utils.es.js";
|
|
4
|
+
import e from "../../components/Profile/styles.module.css";
|
|
5
|
+
import { Icon as p } from "../Icon/Icon.es.js";
|
|
6
|
+
import { EIconName as f } from "../Icon/constants.es.js";
|
|
7
|
+
const g = {
|
|
8
|
+
xl: "profileXl",
|
|
9
|
+
lg: "profileLg",
|
|
10
|
+
md: "profileMd",
|
|
11
|
+
sm: "profileSm"
|
|
12
|
+
}, u = ({ firstName: i, lastName: o, image: l, size: r = "md", editable: m = !1, onEdit: s }) => /* @__PURE__ */ t("div", { className: e.root, "data-size": r, children: [
|
|
13
|
+
l ? /* @__PURE__ */ a("div", { className: e.imageContainer, children: /* @__PURE__ */ a("img", { src: l, alt: c({ firstName: i, lastName: o }), className: e.image }) }) : /* @__PURE__ */ a("div", { className: e.textContainer, children: /* @__PURE__ */ a(n, { defaultVariant: g[r], className: e.name, children: d({ firstName: i, lastName: o }) }) }),
|
|
14
|
+
m && r !== "sm" && /* @__PURE__ */ a("div", { className: e.editableContainer, onClick: s, children: /* @__PURE__ */ a(p, { name: f.PLUS, className: e.editableIcon }) })
|
|
15
|
+
] });
|
|
16
|
+
export {
|
|
17
|
+
u as Profile
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Profile } from './Profile';
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
flex: 0 0 auto;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
position: relative;
|
|
8
|
+
border-radius: var(--border-radius-full);
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.root[data-size="xl"] {
|
|
13
|
+
width: 96px;
|
|
14
|
+
height: 96px;
|
|
15
|
+
|
|
16
|
+
& .editableIcon {
|
|
17
|
+
width: 24px;
|
|
18
|
+
height: 24px;
|
|
19
|
+
padding: 3px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.root[data-size="lg"] {
|
|
24
|
+
width: 64px;
|
|
25
|
+
height: 64px;
|
|
26
|
+
|
|
27
|
+
& .editableIcon {
|
|
28
|
+
width: 16px;
|
|
29
|
+
height: 16px;
|
|
30
|
+
padding: 2px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.root[data-size="md"] {
|
|
35
|
+
width: 48px;
|
|
36
|
+
height: 48px;
|
|
37
|
+
|
|
38
|
+
& .editableIcon {
|
|
39
|
+
width: 12px;
|
|
40
|
+
height: 12px;
|
|
41
|
+
padding: 1px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.root[data-size="sm"] {
|
|
46
|
+
width: 32px;
|
|
47
|
+
height: 32px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.imageContainer {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%;
|
|
57
|
+
border-radius: var(--border-radius-full);
|
|
58
|
+
border: var(--border-width-sm) solid #F8F4EE;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.image {
|
|
63
|
+
display: block;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
object-fit: cover;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.textContainer {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
border-radius: var(--border-radius-full);
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
background-color: var(--color-bg-fill-primary);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.name {
|
|
82
|
+
color: var(--color-text-primary-inverted);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.editableContainer {
|
|
86
|
+
display: none;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 31%;
|
|
91
|
+
background-color: rgba(20, 18, 16, 0.80);
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
position: absolute;
|
|
94
|
+
bottom: 0;
|
|
95
|
+
left: 0;
|
|
96
|
+
right: 0;
|
|
97
|
+
z-index: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.root:hover .editableContainer {
|
|
101
|
+
display: flex;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.editableIcon {
|
|
105
|
+
color: #FFFEFC;
|
|
106
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=({firstName:t,lastName:n})=>!t&&!n?"":`${t||""} ${n||""}`.trim(),o=({firstName:t,lastName:n})=>{const r=(t==null?void 0:t.charAt(0).toUpperCase())||"",e=(n==null?void 0:n.charAt(0).toUpperCase())||"";return`${r} ${e}`.trim()};exports.getFullName=i;exports.getInitials=o;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const c = ({ firstName: t, lastName: n }) => !t && !n ? "" : `${t || ""} ${n || ""}`.trim(), i = ({ firstName: t, lastName: n }) => {
|
|
2
|
+
const r = (t == null ? void 0 : t.charAt(0).toUpperCase()) || "", o = (n == null ? void 0 : n.charAt(0).toUpperCase()) || "";
|
|
3
|
+
return `${r} ${o}`.trim();
|
|
4
|
+
};
|
|
5
|
+
export {
|
|
6
|
+
c as getFullName,
|
|
7
|
+
i as getInitials
|
|
8
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React, ElementType } from 'react';
|
|
2
2
|
|
|
3
|
-
export type TypographyVariant = 'displayXl' | 'displayLg' | 'displayMd' | 'displaySm' | 'displayXs' | 'headingXl' | 'headingLg' | 'headingMd' | 'headingSm' | 'headingXs' | 'headingXxs' | 'preambleLg' | 'preambleMd' | 'preambleSm' | 'bodyXl' | 'bodyLg' | 'bodyMd' | 'bodySm' | 'bodyXs' | 'linkLg' | 'linkMd' | 'linkSm' | 'linkXs' | 'labelXl' | 'labelLg' | 'labelMd' | 'labelSm' | 'labelXs';
|
|
3
|
+
export type TypographyVariant = 'displayXl' | 'displayLg' | 'displayMd' | 'displaySm' | 'displayXs' | 'headingXl' | 'headingLg' | 'headingMd' | 'headingSm' | 'headingXs' | 'headingXxs' | 'preambleLg' | 'preambleMd' | 'preambleSm' | 'bodyXl' | 'bodyLg' | 'bodyMd' | 'bodySm' | 'bodyXs' | 'linkLg' | 'linkMd' | 'linkSm' | 'linkXs' | 'labelXl' | 'labelLg' | 'labelMd' | 'labelSm' | 'labelXs' | 'profileXl' | 'profileLg' | 'profileMd' | 'profileSm';
|
|
4
4
|
type FontWeight = 'regular' | 'medium';
|
|
5
5
|
export interface TypographyProps {
|
|
6
6
|
defaultVariant: TypographyVariant;
|
|
@@ -284,6 +284,51 @@
|
|
|
284
284
|
letter-spacing: var(--letter-spacing-xl);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
+
.profileXl {
|
|
288
|
+
font-family: var(--font-default), sans-serif;
|
|
289
|
+
line-height: var(--line-height-sm);
|
|
290
|
+
letter-spacing: var(--letter-spacing-xxl);
|
|
291
|
+
font-weight: var(--font-weight-regular);
|
|
292
|
+
font-style: normal;
|
|
293
|
+
font-size: var(--font-size-heading-lg);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.profileLg {
|
|
297
|
+
font-family: var(--font-default), sans-serif;
|
|
298
|
+
line-height: var(--line-height-sm);
|
|
299
|
+
letter-spacing: var(--letter-spacing-xxl);
|
|
300
|
+
font-weight: var(--font-weight-regular);
|
|
301
|
+
font-style: normal;
|
|
302
|
+
font-size: var(--font-size-xxl);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.profileMd {
|
|
306
|
+
font-family: var(--font-default), sans-serif;
|
|
307
|
+
line-height: var(--line-height-sm);
|
|
308
|
+
letter-spacing: var(--letter-spacing-xxl);
|
|
309
|
+
font-weight: var(--font-weight-regular);
|
|
310
|
+
font-style: normal;
|
|
311
|
+
font-size: var(--font-size-lg);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.profileSm {
|
|
315
|
+
font-family: var(--font-default), sans-serif;
|
|
316
|
+
line-height: var(--line-height-xs);
|
|
317
|
+
letter-spacing: var(--letter-spacing-xxl);
|
|
318
|
+
font-weight: var(--font-weight-regular);
|
|
319
|
+
font-style: normal;
|
|
320
|
+
font-size: var(--font-size-xs);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.profileXs {
|
|
324
|
+
font-family: var(--font-default), sans-serif;
|
|
325
|
+
line-height: var(--line-height-xs);
|
|
326
|
+
letter-spacing: var(--letter-spacing-xxl);
|
|
327
|
+
font-weight: var(--font-weight-regular);
|
|
328
|
+
font-style: normal;
|
|
329
|
+
font-size: var(--font-size-3xs);
|
|
330
|
+
}
|
|
331
|
+
|
|
287
332
|
.weightRegular {
|
|
288
333
|
font-weight: var(--font-weight-regular);
|
|
289
334
|
}
|
|
@@ -591,6 +636,42 @@
|
|
|
591
636
|
letter-spacing: var(--letter-spacing-xl);
|
|
592
637
|
}
|
|
593
638
|
|
|
639
|
+
.profileXl {
|
|
640
|
+
font-family: var(--font-default), sans-serif;
|
|
641
|
+
line-height: var(--line-height-sm);
|
|
642
|
+
letter-spacing: var(--letter-spacing-xxl);
|
|
643
|
+
font-weight: var(--font-weight-regular);
|
|
644
|
+
font-style: normal;
|
|
645
|
+
font-size: var(--font-size-heading-lg);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.profileLg {
|
|
649
|
+
font-family: var(--font-default), sans-serif;
|
|
650
|
+
line-height: var(--line-height-sm);
|
|
651
|
+
letter-spacing: var(--letter-spacing-xxl);
|
|
652
|
+
font-weight: var(--font-weight-regular);
|
|
653
|
+
font-style: normal;
|
|
654
|
+
font-size: var(--font-size-xxl);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.profileMd {
|
|
658
|
+
font-family: var(--font-default), sans-serif;
|
|
659
|
+
line-height: var(--line-height-sm);
|
|
660
|
+
letter-spacing: var(--letter-spacing-xxl);
|
|
661
|
+
font-weight: var(--font-weight-regular);
|
|
662
|
+
font-style: normal;
|
|
663
|
+
font-size: var(--font-size-lg);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.profileSm {
|
|
667
|
+
font-family: var(--font-default), sans-serif;
|
|
668
|
+
line-height: var(--line-height-xs);
|
|
669
|
+
letter-spacing: var(--letter-spacing-xxl);
|
|
670
|
+
font-weight: var(--font-weight-regular);
|
|
671
|
+
font-style: normal;
|
|
672
|
+
font-size: var(--font-size-xs);
|
|
673
|
+
}
|
|
674
|
+
|
|
594
675
|
.weightRegular {
|
|
595
676
|
font-weight: var(--font-weight-regular);
|
|
596
677
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenpatient-org/healthspan-marketing-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.70",
|
|
4
4
|
"description": "Design system",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -341,6 +341,11 @@
|
|
|
341
341
|
"import": "./dist/components/FilterError/FilterError.es.js",
|
|
342
342
|
"require": "./dist/components/FilterError/FilterError.cjs.js"
|
|
343
343
|
},
|
|
344
|
+
"./Profile": {
|
|
345
|
+
"types": "./dist/components/Profile/Profile.d.ts",
|
|
346
|
+
"import": "./dist/components/Profile/Profile.es.js",
|
|
347
|
+
"require": "./dist/components/Profile/Profile.cjs.js"
|
|
348
|
+
},
|
|
344
349
|
"./CallbackModule": {
|
|
345
350
|
"types": "./dist/modules/Callback/Callback.d.ts",
|
|
346
351
|
"import": "./dist/modules/Callback/Callback.es.js",
|