@zenpatient-org/healthspan-marketing-ui 0.1.33 → 0.1.34
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/ComplexImageCarousel/ComplexImageCarousel.cjs.js +1 -1
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +1 -1
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.es.js +46 -123
- package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.cjs.js +1 -1
- package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.es.js +19 -14
- package/dist/components/ComplexImageCarousel/useComplexImageCarousel.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/useComplexImageCarousel.d.ts +19 -0
- package/dist/components/ComplexImageCarousel/useComplexImageCarousel.es.js +133 -0
- package/dist/components/FilterMenu/FilterMenu.cjs.js +1 -1
- package/dist/components/FilterMenu/FilterMenu.d.ts +4 -1
- package/dist/components/FilterMenu/FilterMenu.es.js +51 -38
- package/dist/components/FilterMenu/filterMenu.module.css.cjs.js +1 -1
- package/dist/components/FilterMenu/filterMenu.module.css.es.js +8 -6
- package/dist/components/Pagination/Pagination.cjs.js +1 -1
- package/dist/components/Pagination/Pagination.es.js +24 -24
- package/dist/components/RatingStars/RatingStars.cjs.js +1 -1
- package/dist/components/RatingStars/RatingStars.es.js +10 -16
- package/dist/components/RatingStars/ratingStars.module.css.cjs.js +1 -1
- package/dist/components/RatingStars/ratingStars.module.css.es.js +3 -5
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/icons/social/star-half.svg.cjs.js +1 -1
- package/dist/icons/social/star-half.svg.es.js +2 -2
- package/dist/pageComponents/ContactUs/ContactUs.cjs.js +1 -0
- package/dist/pageComponents/ContactUs/ContactUs.d.ts +1 -0
- package/dist/pageComponents/ContactUs/ContactUs.es.js +79 -0
- package/dist/pageComponents/ContactUs/contactUs.module.css.cjs.js +1 -0
- package/dist/pageComponents/ContactUs/contactUs.module.css.es.js +37 -0
- package/dist/pageComponents/ContactUs/index.d.ts +1 -0
- package/package.json +6 -1
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useMemo as
|
|
2
|
+
import { jsxs as N, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as h } from "react";
|
|
4
4
|
import { cn as s } from "../../utils/cn/cn.es.js";
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { EIconName as
|
|
5
|
+
import { Icon as d } from "../Icon/Icon.es.js";
|
|
6
|
+
import { EIconName as i } from "../Icon/constants.es.js";
|
|
7
7
|
import { Typography as x } from "../Typography/Typography.es.js";
|
|
8
8
|
import o from "./pagination.module.css.es.js";
|
|
9
9
|
const A = (r, t, a) => {
|
|
10
10
|
if (t <= a)
|
|
11
|
-
return Array.from({ length: t }, (
|
|
11
|
+
return Array.from({ length: t }, (c, f) => f + 1);
|
|
12
12
|
const n = Math.floor(a / 2);
|
|
13
|
-
let
|
|
14
|
-
return m > t && (m = t,
|
|
15
|
-
},
|
|
16
|
-
const m =
|
|
13
|
+
let l = Math.max(1, r - n), m = l + a - 1;
|
|
14
|
+
return m > t && (m = t, l = m - a + 1), Array.from({ length: a }, (c, f) => l + f);
|
|
15
|
+
}, k = ({ page: r, pagesCount: t, visiblePagesLimit: a, disabled: n, onPageChange: l }) => {
|
|
16
|
+
const m = h(
|
|
17
17
|
() => A(r, t, a),
|
|
18
18
|
[r, t, a]
|
|
19
19
|
);
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
|
|
20
|
+
return /* @__PURE__ */ N("div", { className: o.root, children: [
|
|
21
|
+
/* @__PURE__ */ e(
|
|
22
22
|
"button",
|
|
23
23
|
{
|
|
24
24
|
className: s(o.arrow, o.arrowPrev),
|
|
25
|
-
onClick: () =>
|
|
26
|
-
disabled: n,
|
|
25
|
+
onClick: () => l(r - 1),
|
|
26
|
+
disabled: n || r <= 1,
|
|
27
27
|
"aria-label": "Previous page",
|
|
28
|
-
children: /* @__PURE__ */ e(
|
|
28
|
+
children: /* @__PURE__ */ e(d, { name: i.ARROW_BACK, className: o.icon })
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
|
-
m.map((
|
|
31
|
+
m.map((c) => /* @__PURE__ */ e(
|
|
32
32
|
"button",
|
|
33
33
|
{
|
|
34
|
-
className: s(o.page,
|
|
35
|
-
onClick: () => c
|
|
36
|
-
children: /* @__PURE__ */ e(x, { defaultVariant: "labelXl", weight: "regular", children:
|
|
34
|
+
className: s(o.page, c === r && o.activePage),
|
|
35
|
+
onClick: () => l(c),
|
|
36
|
+
children: /* @__PURE__ */ e(x, { defaultVariant: "labelXl", weight: "regular", children: c.toString().padStart(2, "0") })
|
|
37
37
|
},
|
|
38
|
-
|
|
38
|
+
c
|
|
39
39
|
)),
|
|
40
|
-
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
41
|
"button",
|
|
42
42
|
{
|
|
43
43
|
className: s(o.arrow, o.arrowNext),
|
|
44
|
-
onClick: () =>
|
|
45
|
-
disabled: n,
|
|
44
|
+
onClick: () => l(r + 1),
|
|
45
|
+
disabled: n || r >= t,
|
|
46
46
|
"aria-label": "Next page",
|
|
47
|
-
children: /* @__PURE__ */ e(
|
|
47
|
+
children: /* @__PURE__ */ e(d, { name: i.ARROW_FORWARD, className: o.icon })
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
50
|
] });
|
|
51
51
|
};
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
k as Pagination
|
|
54
54
|
};
|
|
@@ -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"),l=require("../../utils/cn/cn.cjs.js"),u=require("../Icon/Icon.cjs.js"),s=require("../Icon/constants.cjs.js"),a=require("./ratingStars.module.css.cjs.js"),i=(e,t)=>{const n=t<Math.floor(e),o=!n&&t<e;return n?s.EIconName.STAR_FILL:o?s.EIconName.STAR_HALF:s.EIconName.STAR_OUTLINE},m=({rating:e,className:t,size:n})=>r.jsx("div",{className:l.cn(a.default.stars,t),"data-size":n,children:Array.from({length:5}).map((o,c)=>r.jsx("div",{className:a.default.starContainer,children:r.jsx(u.Icon,{name:i(e,c),className:a.default.starIcon})},c))});exports.RatingStars=m;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { jsx as a
|
|
2
|
-
import { cn as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { EIconName as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
return
|
|
9
|
-
},
|
|
10
|
-
const l = N(t, c);
|
|
11
|
-
return /* @__PURE__ */ a("div", { className: s.starContainer, children: l === r.STAR_HALF ? /* @__PURE__ */ i(f, { children: [
|
|
12
|
-
/* @__PURE__ */ a(n, { name: r.STAR_OUTLINE, className: s.starIcon }),
|
|
13
|
-
/* @__PURE__ */ a(n, { name: r.STAR_HALF, className: s.starIconHalf })
|
|
14
|
-
] }) : /* @__PURE__ */ a(n, { name: l, className: s.starIcon }) }, c);
|
|
15
|
-
}) });
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cn as c } from "../../utils/cn/cn.es.js";
|
|
3
|
+
import { Icon as l } from "../Icon/Icon.es.js";
|
|
4
|
+
import { EIconName as s } from "../Icon/constants.es.js";
|
|
5
|
+
import e from "./ratingStars.module.css.es.js";
|
|
6
|
+
const f = (r, t) => {
|
|
7
|
+
const o = t < Math.floor(r), m = !o && t < r;
|
|
8
|
+
return o ? s.STAR_FILL : m ? s.STAR_HALF : s.STAR_OUTLINE;
|
|
9
|
+
}, u = ({ rating: r, className: t, size: o }) => /* @__PURE__ */ a("div", { className: c(e.stars, t), "data-size": o, children: Array.from({ length: 5 }).map((m, n) => /* @__PURE__ */ a("div", { className: e.starContainer, children: /* @__PURE__ */ a(l, { name: f(r, n), className: e.starIcon }) }, n)) });
|
|
16
10
|
export {
|
|
17
|
-
|
|
11
|
+
u as RatingStars
|
|
18
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="ratingStars-module__stars___s-x3L",s="ratingStars-module__starContainer___2ch9S",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="ratingStars-module__stars___s-x3L",s="ratingStars-module__starContainer___2ch9S",r="ratingStars-module__starIcon___skV9D",a={stars:t,starContainer:s,starIcon:r};exports.default=a;exports.starContainer=s;exports.starIcon=r;exports.stars=t;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
const t = "ratingStars-module__stars___s-x3L", s = "ratingStars-module__starContainer___2ch9S", a = "ratingStars-module__starIcon___skV9D", r =
|
|
1
|
+
const t = "ratingStars-module__stars___s-x3L", s = "ratingStars-module__starContainer___2ch9S", a = "ratingStars-module__starIcon___skV9D", r = {
|
|
2
2
|
stars: t,
|
|
3
3
|
starContainer: s,
|
|
4
|
-
starIcon: a
|
|
5
|
-
starIconHalf: r
|
|
4
|
+
starIcon: a
|
|
6
5
|
};
|
|
7
6
|
export {
|
|
8
|
-
|
|
7
|
+
r as default,
|
|
9
8
|
s as starContainer,
|
|
10
9
|
a as starIcon,
|
|
11
|
-
r as starIconHalf,
|
|
12
10
|
t as stars
|
|
13
11
|
};
|