@zenpatient-org/healthspan-marketing-ui 0.1.16 → 0.1.18
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/Benefit/Benefit.d.ts +8 -0
- package/dist/components/Benefit/index.d.ts +2 -0
- package/dist/components/Button/Button.es.js +33 -31
- package/dist/components/Callback/Callback.cjs.js +1 -1
- package/dist/components/Callback/Callback.es.js +16 -8
- package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +19 -0
- package/dist/components/ComplexTooltip/index.d.ts +1 -0
- package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
- package/dist/components/ContentTabs/ContentTabs.d.ts +1 -1
- package/dist/components/ContentTabs/ContentTabs.es.js +13 -4
- package/dist/components/Cursor/Cursor.d.ts +6 -0
- package/dist/components/Cursor/components/ClientCursor.d.ts +3 -0
- package/dist/components/Cursor/components/ServerCursor.d.ts +3 -0
- package/dist/components/Cursor/index.d.ts +1 -0
- package/dist/components/FilterMenu/FilterMenu.cjs.js +1 -1
- package/dist/components/FilterMenu/FilterMenu.d.ts +1 -1
- package/dist/components/FilterMenu/FilterMenu.es.js +82 -38
- package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
- package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +2 -2
- package/dist/components/HighlightedTitle/HighlightedTitle.es.js +33 -17
- package/dist/components/IconButton/IconButton.cjs.js +1 -1
- package/dist/components/IconButton/IconButton.es.js +16 -19
- package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +3 -0
- package/dist/components/InfiniteScroll/InfiniteScroll.es.js +80 -46
- package/dist/components/Label/Label.cjs.js +1 -1
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/Label.es.js +15 -9
- package/dist/components/Label/types.d.ts +1 -0
- package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -0
- package/dist/components/ProductGallery/ProductGallery.d.ts +8 -0
- package/dist/components/ProductGallery/ProductGallery.es.js +99 -0
- package/dist/components/ProductGallery/index.d.ts +2 -0
- package/dist/components/ProductGallery/productGallery.module.css.cjs.js +1 -0
- package/dist/components/ProductGallery/productGallery.module.css.es.js +27 -0
- package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +2 -11
- package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +67 -20
- package/dist/components/ProductGalleryCard/index.d.ts +1 -0
- package/dist/components/ProductGalleryCard/productGalleryCard.module.css.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/productGalleryCard.module.css.es.js +12 -10
- package/dist/components/ProductGalleryCard/types.d.ts +11 -0
- package/dist/components/ProductListing/ProductListing.d.ts +19 -0
- package/dist/components/ProductListing/index.d.ts +1 -0
- package/dist/components/ProgramCard/ProgramCard.d.ts +13 -0
- package/dist/components/ProgramCard/index.d.ts +1 -0
- package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -0
- package/dist/components/ProgressButton/ProgressButton.es.js +63 -0
- package/dist/components/ProgressButton/progressButton.module.css.cjs.js +1 -0
- package/dist/components/ProgressButton/progressButton.module.css.es.js +21 -0
- package/dist/components/ProgressButton/types.d.ts +1 -1
- package/dist/components/Tabs/Tabs.cjs.js +1 -1
- package/dist/components/Tabs/Tabs.d.ts +4 -2
- package/dist/components/Tabs/Tabs.es.js +17 -15
- package/dist/components/Tabs/TabsWithFade.cjs.js +1 -0
- package/dist/components/Tabs/TabsWithFade.d.ts +9 -0
- package/dist/components/Tabs/TabsWithFade.es.js +43 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/tabs.module.css.cjs.js +1 -1
- package/dist/components/Tabs/tabs.module.css.es.js +23 -15
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.es.js +10 -1
- package/dist/components/TextButton/TextButton.cjs.js +1 -0
- package/dist/components/TextButton/TextButton.es.js +39 -0
- package/dist/components/TextButton/textButton.module.css.cjs.js +1 -0
- package/dist/components/TextButton/textButton.module.css.es.js +19 -0
- package/dist/components/TypeBadge/TypeBadge.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Typography/Typography.es.js +14 -1
- package/dist/components/index.d.ts +8 -1
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +48 -36
- package/dist/modules/Comparison/Comparison.d.ts +1 -1
- package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.d.ts +1 -1
- package/dist/modules/Comparison/types.d.ts +2 -2
- package/dist/modules/FeaturedIn/FeaturedIn.d.ts +21 -0
- package/dist/modules/FeaturedIn/index.d.ts +1 -0
- package/dist/modules/FeaturesGallery/FeaturesGallery.d.ts +1 -1
- package/dist/modules/FollowTheScience/FollowTheScience.d.ts +10 -0
- package/dist/modules/FollowTheScience/index.d.ts +1 -0
- package/dist/modules/HowItWorks/HowItWorks.d.ts +11 -0
- package/dist/modules/HowItWorks/components/Content/Content.d.ts +10 -0
- package/dist/modules/HowItWorks/components/Content/index.d.ts +1 -0
- package/dist/modules/HowItWorks/index.d.ts +1 -0
- package/dist/modules/OptimalHealth/OptimalHealth.d.ts +11 -0
- package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.d.ts +7 -0
- package/dist/modules/OptimalHealth/components/ClockImages/hooks.d.ts +1 -0
- package/dist/modules/OptimalHealth/components/ClockImages/index.d.ts +1 -0
- package/dist/modules/OptimalHealth/index.d.ts +1 -0
- package/dist/modules/OptimalHealth/types.d.ts +12 -0
- package/dist/modules/OurProcess/OurProcess.d.ts +12 -0
- package/dist/modules/OurProcess/components/StepCards/StepCards.d.ts +9 -0
- package/dist/modules/OurProcess/components/StepCards/index.d.ts +1 -0
- package/dist/modules/OurProcess/index.d.ts +1 -0
- package/dist/modules/OurProcess/types.d.ts +5 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +3 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +53 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js +1 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +10 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.es.js +46 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/index.d.ts +1 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.cjs.js +1 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.es.js +9 -0
- package/dist/modules/ProductsDisplay/components/index.d.ts +1 -0
- package/dist/modules/ProductsDisplay/index.d.ts +1 -0
- package/dist/modules/ProductsDisplay/productsDisplay.module.css.cjs.js +1 -0
- package/dist/modules/ProductsDisplay/productsDisplay.module.css.es.js +11 -0
- package/dist/modules/ProductsDisplay/types.d.ts +11 -0
- package/dist/modules/ProductsDisplay/useProductsData.cjs.js +1 -0
- package/dist/modules/ProductsDisplay/useProductsData.d.ts +15 -0
- package/dist/modules/ProductsDisplay/useProductsData.es.js +26 -0
- package/dist/modules/Studies/Studies.d.ts +1 -1
- package/dist/modules/TargetedPrograms/TargetedPrograms.d.ts +7 -0
- package/dist/modules/TargetedPrograms/index.d.ts +1 -0
- package/dist/modules/TotalCare/TotalCare.cjs.js +1 -1
- package/dist/modules/TotalCare/TotalCare.d.ts +2 -2
- package/dist/modules/TotalCare/TotalCare.es.js +38 -19
- package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
- package/dist/modules/YourProtocol/YourProtocol.d.ts +1 -1
- package/dist/modules/YourProtocol/YourProtocol.es.js +20 -6
- package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.cjs.js +1 -1
- package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +48 -22
- package/dist/modules/index.d.ts +1 -0
- package/dist/node_modules/swiper/modules/navigation.cjs.js +1 -0
- package/dist/node_modules/swiper/modules/navigation.es.js +127 -0
- package/dist/node_modules/swiper/shared/create-element-if-not-defined.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/create-element-if-not-defined.es.js +12 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.es.js +135 -0
- package/dist/node_modules/swiper/shared/swiper-core.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/swiper-core.es.js +2028 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.es.js +62 -0
- package/dist/node_modules/swiper/shared/update-swiper.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/update-swiper.es.js +192 -0
- package/dist/node_modules/swiper/shared/utils.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/utils.es.js +186 -0
- package/dist/node_modules/swiper/swiper-react.cjs.js +1 -0
- package/dist/node_modules/swiper/swiper-react.es.js +242 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/useSwiper.cjs.js +1 -0
- package/dist/utils/useSwiper.d.ts +22 -0
- package/dist/utils/useSwiper.es.js +48 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +8 -6
- package/package.json +7 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const t = "progressButton-module__root___gKwbK", o = "progressButton-module__inverted___cGydv", _ = "progressButton-module__icon___wJpMj", n = "progressButton-module__divider___u6q7X", e = "progressButton-module__button___92i5d", r = "progressButton-module__buttonLeft___p3wSE", s = "progressButton-module__buttonRight___keqI6", u = "progressButton-module__iconWrap___hshXK", d = {
|
|
2
|
+
root: t,
|
|
3
|
+
inverted: o,
|
|
4
|
+
icon: _,
|
|
5
|
+
divider: n,
|
|
6
|
+
button: e,
|
|
7
|
+
buttonLeft: r,
|
|
8
|
+
buttonRight: s,
|
|
9
|
+
iconWrap: u
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
e as button,
|
|
13
|
+
r as buttonLeft,
|
|
14
|
+
s as buttonRight,
|
|
15
|
+
d as default,
|
|
16
|
+
n as divider,
|
|
17
|
+
_ as icon,
|
|
18
|
+
u as iconWrap,
|
|
19
|
+
o as inverted,
|
|
20
|
+
t as root
|
|
21
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TOrientation =
|
|
1
|
+
export type TOrientation = 'left' | 'right';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../_virtual/jsx-runtime.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../_virtual/jsx-runtime.cjs.js"),d=require("react"),x=require("../../utils/cn.cjs.js"),l=require("../Icon/Icon.cjs.js"),s=require("./tabs.module.css.cjs.js");function m({activeTab:t,tabs:i,onTabClick:o,size:r="sm",activeLinePosition:u="bottom",inverted:c},a){return n.jsxRuntimeExports.jsx("div",{ref:a,className:s.default.container,children:i.map(e=>n.jsxRuntimeExports.jsxs("button",{className:x.cn(s.default.tab,s.default[r],{[s.default.inverted]:c,[s.default.activeTab]:t===e.value,[s.default.disabled]:e.disabled,[s.default.brackets]:r==="lg"&&t===e.value&&i.length>1},s.default[u],e.className),disabled:e.disabled,onClick:()=>o(e.value),children:[e.prefixIcon&&n.jsxRuntimeExports.jsx("div",{className:s.default.iconWrap,children:n.jsxRuntimeExports.jsx(l.Icon,{name:e.prefixIcon})}),n.jsxRuntimeExports.jsx("div",{children:e.label}),e.suffixIcon&&n.jsxRuntimeExports.jsx("div",{className:s.default.iconWrap,children:n.jsxRuntimeExports.jsx(l.Icon,{name:e.suffixIcon})})]},String(e.value)))})}const f=d.forwardRef(m);exports.Tabs=f;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ForwardedRef, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { EIconName } from '../Icon';
|
|
3
3
|
|
|
4
4
|
export type Tab<T extends string | number> = {
|
|
@@ -17,5 +17,7 @@ type Props<T extends string | number> = {
|
|
|
17
17
|
inverted?: boolean;
|
|
18
18
|
onTabClick: (value: T) => void;
|
|
19
19
|
};
|
|
20
|
-
export declare
|
|
20
|
+
export declare const Tabs: <T extends string | number>(props: Props<T> & {
|
|
21
|
+
ref?: ForwardedRef<HTMLDivElement>;
|
|
22
|
+
}) => ReactElement;
|
|
21
23
|
export {};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { j as i } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
|
+
import { cn as x } from "../../utils/cn.es.js";
|
|
4
|
+
import { Icon as l } from "../Icon/Icon.es.js";
|
|
4
5
|
import s from "./tabs.module.css.es.js";
|
|
5
|
-
function
|
|
6
|
+
function p({
|
|
6
7
|
activeTab: n,
|
|
7
|
-
tabs:
|
|
8
|
+
tabs: o,
|
|
8
9
|
onTabClick: c,
|
|
9
|
-
size:
|
|
10
|
+
size: r = "sm",
|
|
10
11
|
activeLinePosition: m = "bottom",
|
|
11
|
-
inverted:
|
|
12
|
-
}) {
|
|
13
|
-
return /* @__PURE__ */ i.jsx("div", { className: s.container, children:
|
|
12
|
+
inverted: a
|
|
13
|
+
}, d) {
|
|
14
|
+
return /* @__PURE__ */ i.jsx("div", { ref: d, className: s.container, children: o.map((e) => /* @__PURE__ */ i.jsxs(
|
|
14
15
|
"button",
|
|
15
16
|
{
|
|
16
|
-
className:
|
|
17
|
+
className: x(
|
|
17
18
|
s.tab,
|
|
18
|
-
s[
|
|
19
|
+
s[r],
|
|
19
20
|
{
|
|
20
|
-
[s.inverted]:
|
|
21
|
+
[s.inverted]: a,
|
|
21
22
|
[s.activeTab]: n === e.value,
|
|
22
23
|
[s.disabled]: e.disabled,
|
|
23
|
-
[s.brackets]:
|
|
24
|
+
[s.brackets]: r === "lg" && n === e.value && o.length > 1
|
|
24
25
|
},
|
|
25
26
|
s[m],
|
|
26
27
|
e.className
|
|
@@ -28,14 +29,15 @@ function j({
|
|
|
28
29
|
disabled: e.disabled,
|
|
29
30
|
onClick: () => c(e.value),
|
|
30
31
|
children: [
|
|
31
|
-
e.prefixIcon && /* @__PURE__ */ i.jsx("div", { className: s.iconWrap, children: /* @__PURE__ */ i.jsx(
|
|
32
|
+
e.prefixIcon && /* @__PURE__ */ i.jsx("div", { className: s.iconWrap, children: /* @__PURE__ */ i.jsx(l, { name: e.prefixIcon }) }),
|
|
32
33
|
/* @__PURE__ */ i.jsx("div", { children: e.label }),
|
|
33
|
-
e.suffixIcon && /* @__PURE__ */ i.jsx("div", { className: s.iconWrap, children: /* @__PURE__ */ i.jsx(
|
|
34
|
+
e.suffixIcon && /* @__PURE__ */ i.jsx("div", { className: s.iconWrap, children: /* @__PURE__ */ i.jsx(l, { name: e.suffixIcon }) })
|
|
34
35
|
]
|
|
35
36
|
},
|
|
36
37
|
String(e.value)
|
|
37
38
|
)) });
|
|
38
39
|
}
|
|
40
|
+
const I = f(p);
|
|
39
41
|
export {
|
|
40
|
-
|
|
42
|
+
I as Tabs
|
|
41
43
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../_virtual/jsx-runtime.cjs.js"),s=require("react"),h=require("../../utils/cn.cjs.js"),b=require("./Tabs.cjs.js"),r=require("./tabs.module.css.cjs.js");function m({tabs:o,activeTab:a,onTabChange:c}){const n=s.useRef(null),[l,u]=s.useState(!1),[d,f]=s.useState(!1),t=s.useCallback(()=>{const e=n.current;e&&(u(e.scrollLeft>0),f(e.scrollLeft+e.clientWidth<e.scrollWidth))},[]);return s.useEffect(()=>{const e=n.current;if(e)return t(),e.addEventListener("scroll",t),window.addEventListener("resize",t),()=>{e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}},[t]),i.jsxRuntimeExports.jsx("div",{className:h.cn(r.default.tabsWrapper,{[r.default.showFadeLeft]:l,[r.default.showFadeRight]:d}),children:i.jsxRuntimeExports.jsx("div",{ref:n,className:r.default.tabsTape,children:i.jsxRuntimeExports.jsx(b.Tabs,{activeTab:a,tabs:o,size:"lg",activeLinePosition:"bottom",onTabClick:c})})})}exports.TabsWithFade=m;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Tab } from './Tabs';
|
|
2
|
+
|
|
3
|
+
type Props<T extends string | number> = {
|
|
4
|
+
tabs: Tab<T>[];
|
|
5
|
+
activeTab: T;
|
|
6
|
+
onTabChange: (tab: T) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function TabsWithFade<T extends string>({ tabs, activeTab, onTabChange, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { j as o } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
+
import { useRef as h, useState as i, useCallback as u, useEffect as p } from "react";
|
|
3
|
+
import { cn as w } from "../../utils/cn.es.js";
|
|
4
|
+
import { Tabs as L } from "./Tabs.es.js";
|
|
5
|
+
import s from "./tabs.module.css.es.js";
|
|
6
|
+
function j({
|
|
7
|
+
tabs: n,
|
|
8
|
+
activeTab: l,
|
|
9
|
+
onTabChange: c
|
|
10
|
+
}) {
|
|
11
|
+
const r = h(null), [a, f] = i(!1), [m, d] = i(!1), t = u(() => {
|
|
12
|
+
const e = r.current;
|
|
13
|
+
e && (f(e.scrollLeft > 0), d(e.scrollLeft + e.clientWidth < e.scrollWidth));
|
|
14
|
+
}, []);
|
|
15
|
+
return p(() => {
|
|
16
|
+
const e = r.current;
|
|
17
|
+
if (e)
|
|
18
|
+
return t(), e.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
|
|
19
|
+
e.removeEventListener("scroll", t), window.removeEventListener("resize", t);
|
|
20
|
+
};
|
|
21
|
+
}, [t]), /* @__PURE__ */ o.jsx(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
className: w(s.tabsWrapper, {
|
|
25
|
+
[s.showFadeLeft]: a,
|
|
26
|
+
[s.showFadeRight]: m
|
|
27
|
+
}),
|
|
28
|
+
children: /* @__PURE__ */ o.jsx("div", { ref: r, className: s.tabsTape, children: /* @__PURE__ */ o.jsx(
|
|
29
|
+
L,
|
|
30
|
+
{
|
|
31
|
+
activeTab: l,
|
|
32
|
+
tabs: n,
|
|
33
|
+
size: "lg",
|
|
34
|
+
activeLinePosition: "bottom",
|
|
35
|
+
onTabClick: c
|
|
36
|
+
}
|
|
37
|
+
) })
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
j as TabsWithFade
|
|
43
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="tabs-module__container___NRX40",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="tabs-module__container___NRX40",e="tabs-module__tab___McM3m",_="tabs-module__sm___m4fiR",a="tabs-module__lg___SVeHo",o="tabs-module__inverted___CBzom",s="tabs-module__disabled___AXCIC",b="tabs-module__bottom___Ho7ee",d="tabs-module__top___jthT8",c="tabs-module__activeTab___MHq7V",n="tabs-module__brackets___37Jhe",l="tabs-module__iconWrap___RY5wP",r="tabs-module__tabsTape___wsU1y",i="tabs-module__tabsWrapper___MLrX-",m="tabs-module__showFadeLeft___GGn8-",u="tabs-module__showFadeRight___a90mU",p={container:t,tab:e,sm:_,lg:a,inverted:o,disabled:s,bottom:b,top:d,activeTab:c,brackets:n,iconWrap:l,tabsTape:r,tabsWrapper:i,showFadeLeft:m,showFadeRight:u};exports.activeTab=c;exports.bottom=b;exports.brackets=n;exports.container=t;exports.default=p;exports.disabled=s;exports.iconWrap=l;exports.inverted=o;exports.lg=a;exports.showFadeLeft=m;exports.showFadeRight=u;exports.sm=_;exports.tab=e;exports.tabsTape=r;exports.tabsWrapper=i;exports.top=d;
|
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
const _ = "tabs-module__container___NRX40", t = "tabs-module__tab___McM3m",
|
|
1
|
+
const _ = "tabs-module__container___NRX40", t = "tabs-module__tab___McM3m", a = "tabs-module__sm___m4fiR", o = "tabs-module__lg___SVeHo", s = "tabs-module__inverted___CBzom", e = "tabs-module__disabled___AXCIC", b = "tabs-module__bottom___Ho7ee", d = "tabs-module__top___jthT8", c = "tabs-module__activeTab___MHq7V", n = "tabs-module__brackets___37Jhe", m = "tabs-module__iconWrap___RY5wP", l = "tabs-module__tabsTape___wsU1y", r = "tabs-module__tabsWrapper___MLrX-", i = "tabs-module__showFadeLeft___GGn8-", p = "tabs-module__showFadeRight___a90mU", u = {
|
|
2
2
|
container: _,
|
|
3
3
|
tab: t,
|
|
4
|
-
sm:
|
|
5
|
-
lg:
|
|
4
|
+
sm: a,
|
|
5
|
+
lg: o,
|
|
6
6
|
inverted: s,
|
|
7
|
-
disabled:
|
|
7
|
+
disabled: e,
|
|
8
8
|
bottom: b,
|
|
9
|
-
top:
|
|
10
|
-
activeTab:
|
|
11
|
-
brackets:
|
|
12
|
-
iconWrap: m
|
|
9
|
+
top: d,
|
|
10
|
+
activeTab: c,
|
|
11
|
+
brackets: n,
|
|
12
|
+
iconWrap: m,
|
|
13
|
+
tabsTape: l,
|
|
14
|
+
tabsWrapper: r,
|
|
15
|
+
showFadeLeft: i,
|
|
16
|
+
showFadeRight: p
|
|
13
17
|
};
|
|
14
18
|
export {
|
|
15
|
-
|
|
19
|
+
c as activeTab,
|
|
16
20
|
b as bottom,
|
|
17
|
-
|
|
21
|
+
n as brackets,
|
|
18
22
|
_ as container,
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
u as default,
|
|
24
|
+
e as disabled,
|
|
21
25
|
m as iconWrap,
|
|
22
26
|
s as inverted,
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
o as lg,
|
|
28
|
+
i as showFadeLeft,
|
|
29
|
+
p as showFadeRight,
|
|
30
|
+
a as sm,
|
|
25
31
|
t as tab,
|
|
26
|
-
|
|
32
|
+
l as tabsTape,
|
|
33
|
+
r as tabsWrapper,
|
|
34
|
+
d as top
|
|
27
35
|
};
|
|
@@ -12,5 +12,5 @@ type Props = {
|
|
|
12
12
|
iconPosition?: 'left' | 'right';
|
|
13
13
|
onClick: (value: string) => void;
|
|
14
14
|
};
|
|
15
|
-
export declare const Tag: ({ value, children, active, disabled, size, prefixIcon, suffixIcon, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Tag: ({ value, children, active, disabled, size, prefixIcon, suffixIcon, onClick, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -6,7 +6,16 @@ import r from "./tag.module.css.es.js";
|
|
|
6
6
|
const j = {
|
|
7
7
|
md: t.labelMd,
|
|
8
8
|
lg: t.labelLg
|
|
9
|
-
}, S = ({
|
|
9
|
+
}, S = ({
|
|
10
|
+
value: n,
|
|
11
|
+
children: c,
|
|
12
|
+
active: l,
|
|
13
|
+
disabled: i,
|
|
14
|
+
size: a = "md",
|
|
15
|
+
prefixIcon: m,
|
|
16
|
+
suffixIcon: o,
|
|
17
|
+
onClick: p
|
|
18
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
10
19
|
"button",
|
|
11
20
|
{
|
|
12
21
|
className: d(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs.js"),p=require("../../utils/cn.cjs.js"),o=require("../Icon/Icon.cjs.js"),e=require("./textButton.module.css.cjs.js"),R=({size:i="sm",as:r="button",disabled:s=!1,inverted:u=!1,children:l,prefixIcon:n,suffixIcon:a,hideOn:c,...d})=>{const x=e.default[i]||"",m=u?e.default.inverted:"",j=s?e.default.disabled:"";return t.jsxRuntimeExports.jsx(r,{...d,className:p.cn(e.default.button,m,x,j),disabled:s,"data-hide-on":c,children:t.jsxRuntimeExports.jsxs("div",{className:e.default.content,children:[n&&t.jsxRuntimeExports.jsx("div",{className:e.default.iconWrap,children:t.jsxRuntimeExports.jsx(o.Icon,{name:n})}),t.jsxRuntimeExports.jsx("div",{children:l}),a&&t.jsxRuntimeExports.jsx("div",{className:e.default.iconWrap,children:t.jsxRuntimeExports.jsx(o.Icon,{name:a})})]})})};exports.TextButton=R;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { j as s } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
+
import { cn as v } from "../../utils/cn.es.js";
|
|
3
|
+
import { Icon as o } from "../Icon/Icon.es.js";
|
|
4
|
+
import t from "./textButton.module.css.es.js";
|
|
5
|
+
const f = ({
|
|
6
|
+
size: r = "sm",
|
|
7
|
+
as: i = "button",
|
|
8
|
+
disabled: e = !1,
|
|
9
|
+
inverted: m = !1,
|
|
10
|
+
children: c,
|
|
11
|
+
prefixIcon: a,
|
|
12
|
+
suffixIcon: n,
|
|
13
|
+
hideOn: l,
|
|
14
|
+
...d
|
|
15
|
+
}) => {
|
|
16
|
+
const j = t[r] || "", x = m ? t.inverted : "", p = e ? t.disabled : "";
|
|
17
|
+
return /* @__PURE__ */ s.jsx(
|
|
18
|
+
i,
|
|
19
|
+
{
|
|
20
|
+
...d,
|
|
21
|
+
className: v(
|
|
22
|
+
t.button,
|
|
23
|
+
x,
|
|
24
|
+
j,
|
|
25
|
+
p
|
|
26
|
+
),
|
|
27
|
+
disabled: e,
|
|
28
|
+
"data-hide-on": l,
|
|
29
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: t.content, children: [
|
|
30
|
+
a && /* @__PURE__ */ s.jsx("div", { className: t.iconWrap, children: /* @__PURE__ */ s.jsx(o, { name: a }) }),
|
|
31
|
+
/* @__PURE__ */ s.jsx("div", { children: c }),
|
|
32
|
+
n && /* @__PURE__ */ s.jsx("div", { className: t.iconWrap, children: /* @__PURE__ */ s.jsx(o, { name: n }) })
|
|
33
|
+
] })
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
f as TextButton
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="textButton-module__button___z2efc",e="textButton-module__inverted___w-lX5",o="textButton-module__disabled___JLZRY",n="textButton-module__content___JEFSl",_="textButton-module__lg___IbJXd",u="textButton-module__sm___VsToN",d="textButton-module__iconWrap___0G9tV",l={button:t,inverted:e,disabled:o,content:n,lg:_,sm:u,iconWrap:d};exports.button=t;exports.content=n;exports.default=l;exports.disabled=o;exports.iconWrap=d;exports.inverted=e;exports.lg=_;exports.sm=u;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const t = "textButton-module__button___z2efc", _ = "textButton-module__inverted___w-lX5", o = "textButton-module__disabled___JLZRY", e = "textButton-module__content___JEFSl", n = "textButton-module__lg___IbJXd", d = "textButton-module__sm___VsToN", s = "textButton-module__iconWrap___0G9tV", u = {
|
|
2
|
+
button: t,
|
|
3
|
+
inverted: _,
|
|
4
|
+
disabled: o,
|
|
5
|
+
content: e,
|
|
6
|
+
lg: n,
|
|
7
|
+
sm: d,
|
|
8
|
+
iconWrap: s
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
t as button,
|
|
12
|
+
e as content,
|
|
13
|
+
u as default,
|
|
14
|
+
o as disabled,
|
|
15
|
+
s as iconWrap,
|
|
16
|
+
_ as inverted,
|
|
17
|
+
n as lg,
|
|
18
|
+
d as sm
|
|
19
|
+
};
|
|
@@ -9,4 +9,4 @@ export declare enum ETypeBadge {
|
|
|
9
9
|
export type TypeBadgeProps = {
|
|
10
10
|
type?: ETypeBadge;
|
|
11
11
|
};
|
|
12
|
-
export declare const TypeBadge: ({ type
|
|
12
|
+
export declare const TypeBadge: ({ type }: TypeBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,5 +12,5 @@ export interface TypographyProps {
|
|
|
12
12
|
as?: ElementType;
|
|
13
13
|
color?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare const Typography: ({ defaultVariant, children, className, weight, emphasis, as: Component, mobileVariant, color }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Typography: ({ defaultVariant, children, className, weight, emphasis, as: Component, mobileVariant, color, }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -16,7 +16,20 @@ const u = ({
|
|
|
16
16
|
let s = e;
|
|
17
17
|
r && !e && (s = "medium");
|
|
18
18
|
const n = s ? t[`weight${s.charAt(0).toUpperCase()}${s.slice(1)}`] : "", h = o.startsWith("label") && r ? t.labelEmphasis : "", f = a ? t[`mobile__${a}`] : "";
|
|
19
|
-
return /* @__PURE__ */ y.jsx(
|
|
19
|
+
return /* @__PURE__ */ y.jsx(
|
|
20
|
+
i,
|
|
21
|
+
{
|
|
22
|
+
style: g(p),
|
|
23
|
+
className: C(
|
|
24
|
+
c,
|
|
25
|
+
n,
|
|
26
|
+
h,
|
|
27
|
+
f,
|
|
28
|
+
m
|
|
29
|
+
),
|
|
30
|
+
children: l
|
|
31
|
+
}
|
|
32
|
+
);
|
|
20
33
|
};
|
|
21
34
|
export {
|
|
22
35
|
u as Typography
|
|
@@ -4,12 +4,14 @@ export { Button } from './Button';
|
|
|
4
4
|
export { Label } from './Label';
|
|
5
5
|
export type { LabelColor } from './Label';
|
|
6
6
|
export { Tag } from './Tag';
|
|
7
|
-
export { Tabs } from './Tabs';
|
|
7
|
+
export { Tabs, TabsWithFade } from './Tabs';
|
|
8
|
+
export type { Tab } from './Tabs';
|
|
8
9
|
export { TypeBadge, ETypeBadge } from './TypeBadge';
|
|
9
10
|
export { ContentTabs } from './ContentTabs';
|
|
10
11
|
export type { TContentTab } from './ContentTabs';
|
|
11
12
|
export { Icon, EIconName } from './Icon';
|
|
12
13
|
export { ProductGalleryCard } from './ProductGalleryCard';
|
|
14
|
+
export type { TProductGalleryCardView } from './ProductGalleryCard';
|
|
13
15
|
export { HighlightedTitle } from './HighlightedTitle';
|
|
14
16
|
export { Callback } from './Callback';
|
|
15
17
|
export { IconButton } from './IconButton';
|
|
@@ -17,3 +19,8 @@ export type { CallbackSize } from './Callback';
|
|
|
17
19
|
export { FilterMenu } from './FilterMenu';
|
|
18
20
|
export { InfiniteScroll } from './InfiniteScroll';
|
|
19
21
|
export type { InfiniteScrollHandle } from './InfiniteScroll';
|
|
22
|
+
export { ProductGallery } from './ProductGallery';
|
|
23
|
+
export type { TProductGalleryProps } from './ProductGallery';
|
|
24
|
+
export { ProgressButton } from './ProgressButton';
|
|
25
|
+
export type { ProgressButtonProps } from './ProgressButton';
|
|
26
|
+
export { TextButton } from './TextButton';
|