@iit/precision-ui 0.7.0 → 0.7.2
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/ui/textarea/TextareaWithLabel.d.ts.map +1 -1
- package/dist/index.d.ts +19 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +89 -82
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es12.js +1 -1
- package/dist/index.es13.js +79 -24
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es14.js +83 -26
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es15.js +19 -19
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es16.js +28 -25
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es17.js +24 -69
- package/dist/index.es17.js.map +1 -1
- package/dist/index.es18.js +22 -32
- package/dist/index.es18.js.map +1 -1
- package/dist/index.es19.js +72 -31
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +24 -19
- package/dist/index.es20.js.map +1 -1
- package/dist/index.es21.js +31 -18
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es22.js +28 -44
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es23.js +18 -36
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es24.js +40 -48
- package/dist/index.es24.js.map +1 -1
- package/dist/index.es25.js +37 -14
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es26.js +53 -5
- package/dist/index.es26.js.map +1 -1
- package/dist/index.es27.js +13 -52
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es28.js +5 -26
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es29.js +50 -94
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es3.js +2 -2
- package/dist/index.es30.js +24 -53
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es31.js +77 -72
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +38 -80
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +90 -11
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +87 -34
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +13 -24
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +42 -25
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +18 -204
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +37 -50
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +25 -55
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es40.js +205 -56
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +50 -18
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +57 -18
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +59 -89
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +18 -88
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +19 -33
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +88 -74
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +76 -29
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +31 -9
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +77 -6
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es50.js +42 -21
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +10 -19
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +6 -20
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +21 -84
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +20 -39
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +19 -26
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +44 -13
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +26 -46
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +16 -4
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es60.js +7 -0
- package/dist/index.es60.js.map +1 -0
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/package.json +1 -1
package/dist/index.es41.js
CHANGED
|
@@ -1,23 +1,55 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import i from "./index.es42.js";
|
|
2
|
+
import p from "./index.es44.js";
|
|
3
|
+
import e from "react";
|
|
4
|
+
import r from "./index.es45.js";
|
|
5
|
+
import { getAdapter as d } from "./index.es9.js";
|
|
6
|
+
const g = [
|
|
7
|
+
"/partners/rostelekom.svg",
|
|
8
|
+
"/partners/mts.svg",
|
|
9
|
+
"/partners/uralsib.svg",
|
|
10
|
+
"/partners/sberbank.svg",
|
|
11
|
+
"/partners/rosbank.svg",
|
|
12
|
+
"/partners/pochtabank.svg",
|
|
13
|
+
"/partners/vtb.svg",
|
|
14
|
+
"/partners/alfa.svg",
|
|
15
|
+
"/partners/otkrytie.svg"
|
|
16
|
+
// "МТС",
|
|
17
|
+
// "Уралсиб",
|
|
18
|
+
// "Сбербанк",
|
|
19
|
+
// "Росбанк",
|
|
20
|
+
// "Почта Банк",
|
|
21
|
+
// "ВТБ",
|
|
22
|
+
// "РосБанк",
|
|
23
|
+
// "Открытие",
|
|
24
|
+
], v = ({
|
|
25
|
+
variant: a,
|
|
26
|
+
withoutTopPadding: s,
|
|
27
|
+
withoutBottomPadding: n,
|
|
28
|
+
withTopMargin: l,
|
|
29
|
+
withBottomMargin: o
|
|
30
|
+
}) => {
|
|
31
|
+
const m = d("ImageWrapper");
|
|
32
|
+
return /* @__PURE__ */ e.createElement(
|
|
33
|
+
i,
|
|
34
|
+
{
|
|
35
|
+
title: "",
|
|
36
|
+
variant: a,
|
|
37
|
+
withoutTopPadding: s,
|
|
38
|
+
withoutBottomPadding: n,
|
|
39
|
+
withTopMargin: l,
|
|
40
|
+
withBottomMargin: o
|
|
41
|
+
},
|
|
42
|
+
/* @__PURE__ */ e.createElement("div", { className: "grid grid-cols-1 sm:auto-rows-[222px] sm:grid-cols-3 lg:grid-cols-6 gap-3 mt-4" }, /* @__PURE__ */ e.createElement("div", { className: "p-6 bg-whitish rounded-lg col-span-1 sm:col-span-3 row-start-1 row-end-3 flex flex-col justify-between" }, /* @__PURE__ */ e.createElement(p, { level: 2 }, "Более 500", " ", /* @__PURE__ */ e.createElement("span", { className: "text-navy-opacity-40" }, "компаний работают с нами")), /* @__PURE__ */ e.createElement(r, { variant: "body", className: "w-[87.5%]" }, "Среди наших клиентов — крупнейшие холдинги, государственные учреждения, финансовые и производственные компании, а также более 50 000 представителей малого и среднего бизнеса.")), g.map((t, c) => /* @__PURE__ */ e.createElement(
|
|
43
|
+
"div",
|
|
8
44
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
className: `${m}${t ? ` ${t}` : ""}`,
|
|
12
|
-
...i
|
|
45
|
+
key: c,
|
|
46
|
+
className: "rounded-lg border border-solid border-navy-opacity-16 flex align-middle justify-center items-center"
|
|
13
47
|
},
|
|
14
|
-
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
e.displayName = "Heading";
|
|
19
|
-
const l = e;
|
|
48
|
+
/* @__PURE__ */ e.createElement(m, { src: t, width: 160, height: 64, alt: t })
|
|
49
|
+
)), /* @__PURE__ */ e.createElement("div", { className: "bg-whitish rounded-lg flex items-center justify-center" }, /* @__PURE__ */ e.createElement(r, { variant: "body", className: "text-navy-opacity-40 py-6 sm:py-0" }, "500+")))
|
|
50
|
+
);
|
|
51
|
+
}, x = v;
|
|
20
52
|
export {
|
|
21
|
-
|
|
53
|
+
x as default
|
|
22
54
|
};
|
|
23
55
|
//# sourceMappingURL=index.es41.js.map
|
package/dist/index.es41.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es41.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.es41.js","sources":["../src/sections/Partners.tsx"],"sourcesContent":["import Section, { SectionProps } from './Section'\r\n\r\nimport Heading from '@/components/core/typography/Heading'\r\nimport React from 'react'\r\nimport Text from '@/components/core/typography/Text'\r\nimport { getAdapter } from '@/Adapters'\r\n\r\nconst partners = [\r\n '/partners/rostelekom.svg',\r\n '/partners/mts.svg',\r\n '/partners/uralsib.svg',\r\n '/partners/sberbank.svg',\r\n '/partners/rosbank.svg',\r\n '/partners/pochtabank.svg',\r\n '/partners/vtb.svg',\r\n '/partners/alfa.svg',\r\n '/partners/otkrytie.svg',\r\n // \"МТС\",\r\n // \"Уралсиб\",\r\n // \"Сбербанк\",\r\n // \"Росбанк\",\r\n // \"Почта Банк\",\r\n // \"ВТБ\",\r\n // \"РосБанк\",\r\n // \"Открытие\",\r\n]\r\n\r\nexport interface PartnersProps {\r\n variant?: SectionProps['variant']\r\n withoutTopPadding?: boolean\r\n withoutBottomPadding?: boolean\r\n withTopMargin?: boolean\r\n withBottomMargin?: boolean\r\n}\r\n\r\nconst Partners: React.FC<PartnersProps> = ({\r\n variant,\r\n withoutTopPadding,\r\n withoutBottomPadding,\r\n withTopMargin,\r\n withBottomMargin,\r\n}) => {\r\n const ImageWrapper = getAdapter('ImageWrapper')\r\n\r\n return (\r\n <Section\r\n title=\"\"\r\n variant={variant}\r\n withoutTopPadding={withoutTopPadding}\r\n withoutBottomPadding={withoutBottomPadding}\r\n withTopMargin={withTopMargin}\r\n withBottomMargin={withBottomMargin}\r\n >\r\n <div className=\"grid grid-cols-1 sm:auto-rows-[222px] sm:grid-cols-3 lg:grid-cols-6 gap-3 mt-4\">\r\n <div className=\"p-6 bg-whitish rounded-lg col-span-1 sm:col-span-3 row-start-1 row-end-3 flex flex-col justify-between\">\r\n <Heading level={2}>\r\n Более 500{' '}\r\n <span className=\"text-navy-opacity-40\">\r\n компаний работают с нами\r\n </span>\r\n </Heading>\r\n\r\n <Text variant=\"body\" className=\"w-[87.5%]\">\r\n Среди наших клиентов — крупнейшие холдинги, государственные\r\n учреждения, финансовые и производственные компании, а также более 50\r\n 000 представителей малого и среднего бизнеса.\r\n </Text>\r\n </div>\r\n {partners.map((partner, index) => (\r\n <div\r\n key={index}\r\n className=\"rounded-lg border border-solid border-navy-opacity-16 flex align-middle justify-center items-center\"\r\n >\r\n <ImageWrapper src={partner} width={160} height={64} alt={partner} />\r\n </div>\r\n ))}\r\n <div className=\"bg-whitish rounded-lg flex items-center justify-center\">\r\n <Text variant=\"body\" className=\"text-navy-opacity-40 py-6 sm:py-0\">\r\n 500+\r\n </Text>\r\n </div>\r\n </div>\r\n </Section>\r\n )\r\n}\r\n\r\nexport default Partners\r\n"],"names":["partners","Partners","variant","withoutTopPadding","withoutBottomPadding","withTopMargin","withBottomMargin","ImageWrapper","getAdapter","React","Section","Heading","Text","partner","index","Partners$1"],"mappings":";;;;;AAOA,MAAMA,IAAW;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASF,GAUMC,IAAoC,CAAC;AAAA,EACzC,SAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,kBAAAC;AACF,MAAM;AACE,QAAAC,IAAeC,EAAW,cAAc;AAG5C,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAM;AAAA,MACN,SAAAR;AAAA,MACA,mBAAAC;AAAA,MACA,sBAAAC;AAAA,MACA,eAAAC;AAAA,MACA,kBAAAC;AAAA,IAAA;AAAA,IAECG,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAU,iFAAA,mCACZ,OAAI,EAAA,WAAU,4GACbA,gBAAAA,EAAA,cAACE,KAAQ,OAAO,KAAG,aACP,qCACT,QAAK,EAAA,WAAU,uBAAuB,GAAA,0BAEvC,CACF,GAECF,gBAAAA,EAAA,cAAAG,GAAA,EAAK,SAAQ,QAAO,WAAU,YAAY,GAAA,gLAI3C,CACF,GACCZ,EAAS,IAAI,CAACa,GAASC,MACtBL,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAKK;AAAA,QACL,WAAU;AAAA,MAAA;AAAA,MAEVL,gBAAAA,EAAA,cAACF,KAAa,KAAKM,GAAS,OAAO,KAAK,QAAQ,IAAI,KAAKA,EAAS,CAAA;AAAA,IAAA,CAErE,GACAJ,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAU,yDACb,GAAAA,gBAAAA,EAAA,cAACG,GAAK,EAAA,SAAQ,QAAO,WAAU,oCAAoC,GAAA,MAEnE,CACF,CACF;AAAA,EAAA;AAGN,GAEAG,IAAed;"}
|
package/dist/index.es42.js
CHANGED
|
@@ -1,22 +1,61 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { cva as y } from "class-variance-authority";
|
|
3
|
+
import { cn as v } from "./index.es52.js";
|
|
4
|
+
import E from "./index.es44.js";
|
|
5
|
+
import N from "./index.es45.js";
|
|
6
|
+
import b from "./index.es4.js";
|
|
7
|
+
const g = y("space-y-12", {
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "py-[120px]",
|
|
11
|
+
muted: "bg-grey-2 py-[88px] px-6"
|
|
12
|
+
},
|
|
13
|
+
corners: {
|
|
14
|
+
default: "rounded-2xl",
|
|
15
|
+
onlyTop: "rounded-t-2xl",
|
|
16
|
+
onlyBottom: "rounded-b-2xl"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "default",
|
|
21
|
+
corners: "default"
|
|
15
22
|
}
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
}), B = ({
|
|
24
|
+
title: t,
|
|
25
|
+
sectionId: n,
|
|
26
|
+
desc: a,
|
|
27
|
+
children: l,
|
|
28
|
+
moreLink: r,
|
|
29
|
+
moreText: o = "Подробнее",
|
|
30
|
+
withTopMargin: s = !1,
|
|
31
|
+
withBottomMargin: c = !1,
|
|
32
|
+
withoutTopPadding: m = !1,
|
|
33
|
+
withoutBottomPadding: i = !1,
|
|
34
|
+
variant: f,
|
|
35
|
+
corners: p,
|
|
36
|
+
className: d
|
|
37
|
+
}) => {
|
|
38
|
+
const x = [
|
|
39
|
+
"container",
|
|
40
|
+
s && "mt-6",
|
|
41
|
+
c && "mb-6"
|
|
42
|
+
].filter(Boolean).map((u) => u).join(" ").trim();
|
|
43
|
+
return /* @__PURE__ */ e.createElement("section", { className: x, id: n }, /* @__PURE__ */ e.createElement(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
className: v(
|
|
47
|
+
g({ variant: f, corners: p }),
|
|
48
|
+
m && "pt-0",
|
|
49
|
+
i && "pb-0",
|
|
50
|
+
d
|
|
51
|
+
)
|
|
52
|
+
},
|
|
53
|
+
t && /* @__PURE__ */ e.createElement("div", { className: "space-y-4 flex flex-col items-center" }, /* @__PURE__ */ e.createElement(E, { level: 2, className: "text-center max-w-[900px]" }, t), a && /* @__PURE__ */ e.createElement(N, { className: "text-center max-w-6xl" }, a)),
|
|
54
|
+
l,
|
|
55
|
+
r && /* @__PURE__ */ e.createElement("div", { className: "flex justify-center" }, /* @__PURE__ */ e.createElement(b, { href: r }, o))
|
|
56
|
+
));
|
|
57
|
+
}, h = B;
|
|
19
58
|
export {
|
|
20
|
-
|
|
59
|
+
h as default
|
|
21
60
|
};
|
|
22
61
|
//# sourceMappingURL=index.es42.js.map
|
package/dist/index.es42.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es42.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.es42.js","sources":["../src/sections/Section.tsx"],"sourcesContent":["import React from 'react'\r\nimport { cva, type VariantProps } from 'class-variance-authority'\r\nimport { cn } from '@/lib/utils/cn'\r\nimport Heading from '@/components/core/typography/Heading'\r\nimport Text from '@/components/core/typography/Text'\r\nimport ButtonPrimary from '@/components/ui/button/ButtonPrimary'\r\n\r\nconst sectionVariants = cva('space-y-12', {\r\n variants: {\r\n variant: {\r\n default: 'py-[120px]',\r\n muted: 'bg-grey-2 py-[88px] px-6',\r\n },\r\n corners: {\r\n default: 'rounded-2xl',\r\n onlyTop: 'rounded-t-2xl',\r\n onlyBottom: 'rounded-b-2xl',\r\n },\r\n },\r\n defaultVariants: {\r\n variant: 'default',\r\n corners: 'default',\r\n },\r\n})\r\n\r\nexport interface SectionProps\r\n extends React.HTMLAttributes<HTMLDivElement>,\r\n VariantProps<typeof sectionVariants> {\r\n title: string\r\n sectionId?: string\r\n desc?: string\r\n children?: React.ReactNode\r\n moreLink?: string\r\n moreText?: string\r\n withTopMargin?: boolean\r\n withBottomMargin?: boolean\r\n withoutTopPadding?: boolean\r\n withoutBottomPadding?: boolean\r\n className?: string\r\n}\r\n\r\nconst Section: React.FC<SectionProps> = ({\r\n title,\r\n sectionId,\r\n desc,\r\n children,\r\n moreLink,\r\n moreText = 'Подробнее',\r\n withTopMargin = false,\r\n withBottomMargin = false,\r\n withoutTopPadding = false,\r\n withoutBottomPadding = false,\r\n variant,\r\n corners,\r\n className,\r\n}) => {\r\n const sectionClasses = [\r\n 'container',\r\n withTopMargin && 'mt-6',\r\n withBottomMargin && 'mb-6',\r\n ]\r\n .filter(Boolean)\r\n .map((item) => item)\r\n .join(' ')\r\n .trim()\r\n\r\n return (\r\n <section className={sectionClasses} id={sectionId}>\r\n <div\r\n className={cn(\r\n sectionVariants({ variant, corners }),\r\n withoutTopPadding && 'pt-0',\r\n withoutBottomPadding && 'pb-0',\r\n className\r\n )}\r\n >\r\n {title && (\r\n <div className=\"space-y-4 flex flex-col items-center\">\r\n <Heading level={2} className=\"text-center max-w-[900px]\">\r\n {title}\r\n </Heading>\r\n {desc && <Text className=\"text-center max-w-6xl\">{desc}</Text>}\r\n </div>\r\n )}\r\n {children}\r\n {moreLink && (\r\n <div className=\"flex justify-center\">\r\n <ButtonPrimary href={moreLink}>{moreText}</ButtonPrimary>\r\n </div>\r\n )}\r\n </div>\r\n </section>\r\n )\r\n}\r\n\r\nexport default Section\r\n"],"names":["sectionVariants","cva","Section","title","sectionId","desc","children","moreLink","moreText","withTopMargin","withBottomMargin","withoutTopPadding","withoutBottomPadding","variant","corners","className","sectionClasses","item","React","cn","Heading","Text","ButtonPrimary","Section$1"],"mappings":";;;;;;AAOA,MAAMA,IAAkBC,EAAI,cAAc;AAAA,EACxC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,OAAO;AAAA,IACT;AAAA,IACA,SAAS;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,MACT,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,SAAS;AAAA,EACX;AACF,CAAC,GAkBKC,IAAkC,CAAC;AAAA,EACvC,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,eAAAC,IAAgB;AAAA,EAChB,kBAAAC,IAAmB;AAAA,EACnB,mBAAAC,IAAoB;AAAA,EACpB,sBAAAC,IAAuB;AAAA,EACvB,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AACF,MAAM;AACJ,QAAMC,IAAiB;AAAA,IACrB;AAAA,IACAP,KAAiB;AAAA,IACjBC,KAAoB;AAAA,EAEnB,EAAA,OAAO,OAAO,EACd,IAAI,CAACO,MAASA,CAAI,EAClB,KAAK,GAAG,EACR,KAAK;AAER,SACGC,gBAAAA,EAAA,cAAA,WAAA,EAAQ,WAAWF,GAAgB,IAAIZ,KACtCc,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACTnB,EAAgB,EAAE,SAAAa,GAAS,SAAAC,GAAS;AAAA,QACpCH,KAAqB;AAAA,QACrBC,KAAwB;AAAA,QACxBG;AAAA,MACF;AAAA,IAAA;AAAA,IAECZ,KACEe,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAU,uCACb,GAAAA,gBAAAA,EAAA,cAACE,KAAQ,OAAO,GAAG,WAAU,4BAC1B,GAAAjB,CACH,GACCE,KAAQa,gBAAAA,EAAA,cAACG,KAAK,WAAU,wBAAA,GAAyBhB,CAAK,CACzD;AAAA,IAEDC;AAAA,IACAC,KACEW,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAU,sBAAA,mCACZI,GAAc,EAAA,MAAMf,EAAW,GAAAC,CAAS,CAC3C;AAAA,EAAA,CAGN;AAEJ,GAEAe,IAAerB;"}
|
package/dist/index.es43.js
CHANGED
|
@@ -1,94 +1,64 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import G from "./index.es42.js";
|
|
2
|
+
import e from "./index.es23.js";
|
|
3
|
+
import S from "./index.es24.js";
|
|
4
|
+
import I from "./index.es29.js";
|
|
5
|
+
import P from "./index.es38.js";
|
|
6
|
+
import R from "./index.es32.js";
|
|
7
|
+
import _ from "./index.es33.js";
|
|
8
|
+
import k from "./index.es34.js";
|
|
9
|
+
import t from "react";
|
|
10
|
+
const x = {
|
|
11
|
+
Advantage: e,
|
|
12
|
+
Advantage2: S,
|
|
13
|
+
Rate: k,
|
|
14
|
+
Product: _,
|
|
15
|
+
FeaturedCard: I,
|
|
16
|
+
Plate: R
|
|
17
|
+
}, y = ({
|
|
18
|
+
title: r,
|
|
19
|
+
sectionId: o,
|
|
20
|
+
desc: a,
|
|
21
|
+
items: m,
|
|
22
|
+
component: n = "Advantage",
|
|
23
|
+
withoutTopPadding: f = !1,
|
|
24
|
+
withTopMargin: i = !1,
|
|
25
|
+
withBottomMargin: d = !1,
|
|
26
|
+
withoutBottomPadding: c = !1,
|
|
27
|
+
variant: p,
|
|
28
|
+
corners: s,
|
|
29
|
+
columns: l,
|
|
30
|
+
hideControlsOnDesktop: u,
|
|
31
|
+
withoutCarousel: C,
|
|
32
|
+
footnote: g
|
|
33
|
+
}) => {
|
|
34
|
+
const v = x[n] || e;
|
|
35
|
+
return /* @__PURE__ */ t.createElement(
|
|
36
|
+
G,
|
|
34
37
|
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const { error: r, formItemId: m, formDescriptionId: n, formMessageId: s } = i();
|
|
45
|
-
return /* @__PURE__ */ e.createElement(
|
|
46
|
-
I,
|
|
47
|
-
{
|
|
48
|
-
ref: o,
|
|
49
|
-
id: m,
|
|
50
|
-
"aria-describedby": r ? `${n} ${s}` : `${n}`,
|
|
51
|
-
"aria-invalid": !!r,
|
|
52
|
-
...t
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
});
|
|
56
|
-
g.displayName = "FormControl";
|
|
57
|
-
const v = e.forwardRef(({ className: t, ...o }, r) => {
|
|
58
|
-
const { formDescriptionId: m } = i();
|
|
59
|
-
return /* @__PURE__ */ e.createElement(
|
|
60
|
-
"p",
|
|
61
|
-
{
|
|
62
|
-
ref: r,
|
|
63
|
-
id: m,
|
|
64
|
-
className: a("text-sm text-muted-foreground", t),
|
|
65
|
-
...o
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
});
|
|
69
|
-
v.displayName = "FormDescription";
|
|
70
|
-
const E = e.forwardRef(({ className: t, children: o, ...r }, m) => {
|
|
71
|
-
const { error: n, formMessageId: s } = i(), d = n ? String(n?.message) : o;
|
|
72
|
-
return d ? /* @__PURE__ */ e.createElement(
|
|
73
|
-
"p",
|
|
74
|
-
{
|
|
75
|
-
ref: m,
|
|
76
|
-
id: s,
|
|
77
|
-
className: a("text-sm font-medium text-destructive", t),
|
|
78
|
-
...r
|
|
38
|
+
title: r,
|
|
39
|
+
sectionId: o,
|
|
40
|
+
desc: a,
|
|
41
|
+
variant: p,
|
|
42
|
+
corners: s,
|
|
43
|
+
withoutTopPadding: f,
|
|
44
|
+
withTopMargin: i,
|
|
45
|
+
withBottomMargin: d,
|
|
46
|
+
withoutBottomPadding: c
|
|
79
47
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
48
|
+
/* @__PURE__ */ t.createElement(
|
|
49
|
+
P,
|
|
50
|
+
{
|
|
51
|
+
items: m,
|
|
52
|
+
columns: l,
|
|
53
|
+
hideControlsOnDesktop: u,
|
|
54
|
+
withoutCarousel: C,
|
|
55
|
+
renderItem: (A, E) => /* @__PURE__ */ t.createElement(v, { key: E, ...A }),
|
|
56
|
+
footnote: g
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
);
|
|
60
|
+
}, B = y;
|
|
84
61
|
export {
|
|
85
|
-
|
|
86
|
-
g as FormControl,
|
|
87
|
-
v as FormDescription,
|
|
88
|
-
$ as FormField,
|
|
89
|
-
x as FormItem,
|
|
90
|
-
C as FormLabel,
|
|
91
|
-
E as FormMessage,
|
|
92
|
-
i as useFormField
|
|
62
|
+
B as default
|
|
93
63
|
};
|
|
94
64
|
//# sourceMappingURL=index.es43.js.map
|
package/dist/index.es43.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es43.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.es43.js","sources":["../src/sections/CardsGridSection.tsx"],"sourcesContent":["import Section, { SectionProps } from './Section'\r\n\r\nimport Advantage from '@/components/cards/Advantage'\r\nimport Advantage2 from '@/components/cards/Advantage2'\r\nimport FeaturedCard from '@/components/cards/FeaturedCard'\r\nimport GridIterator from '@/components/GridIterator'\r\nimport Plate from '@/components/cards/Plate'\r\nimport Product from '@/components/cards/Product'\r\nimport Rate from '@/components/cards/Rate'\r\nimport React from 'react'\r\n\r\n// Map component names to actual components\r\nconst componentMap: { [key: string]: React.ElementType } = {\r\n Advantage,\r\n Advantage2,\r\n Rate,\r\n Product,\r\n FeaturedCard,\r\n Plate,\r\n}\r\n\r\ninterface CardsGridSectionProps<T> {\r\n title: string\r\n sectionId?: string\r\n desc?: string\r\n items: T[]\r\n component?: string\r\n withoutTopPadding?: boolean\r\n withoutBottomPadding?: boolean\r\n withTopMargin?: boolean\r\n withBottomMargin?: boolean\r\n variant?: SectionProps['variant']\r\n corners?: SectionProps['corners']\r\n columns?: number\r\n hideControlsOnDesktop?: boolean\r\n withoutCarousel?: boolean\r\n footnote?: string\r\n}\r\n\r\nconst CardsGridSection = <T,>({\r\n title,\r\n sectionId,\r\n desc,\r\n items,\r\n component = 'Advantage',\r\n withoutTopPadding = false,\r\n withTopMargin = false,\r\n withBottomMargin = false,\r\n withoutBottomPadding = false,\r\n variant,\r\n corners,\r\n columns,\r\n hideControlsOnDesktop,\r\n withoutCarousel,\r\n footnote,\r\n}: CardsGridSectionProps<T>) => {\r\n const Component = componentMap[component] || Advantage\r\n\r\n return (\r\n <Section\r\n title={title}\r\n sectionId={sectionId}\r\n desc={desc}\r\n variant={variant}\r\n corners={corners}\r\n withoutTopPadding={withoutTopPadding}\r\n withTopMargin={withTopMargin}\r\n withBottomMargin={withBottomMargin}\r\n withoutBottomPadding={withoutBottomPadding}\r\n >\r\n <GridIterator\r\n items={items}\r\n columns={columns}\r\n hideControlsOnDesktop={hideControlsOnDesktop}\r\n withoutCarousel={withoutCarousel}\r\n renderItem={(item, index) => <Component key={index} {...item} />}\r\n footnote={footnote}\r\n />\r\n </Section>\r\n )\r\n}\r\n\r\nexport default CardsGridSection\r\n"],"names":["componentMap","Advantage","Advantage2","Rate","Product","FeaturedCard","Plate","CardsGridSection","title","sectionId","desc","items","component","withoutTopPadding","withTopMargin","withBottomMargin","withoutBottomPadding","variant","corners","columns","hideControlsOnDesktop","withoutCarousel","footnote","Component","React","Section","GridIterator","item","index","CardsGridSection$1"],"mappings":";;;;;;;;;AAYA,MAAMA,IAAqD;AAAA,EACzD,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,cAAAC;AAAA,EACA,OAAAC;AACF,GAoBMC,IAAmB,CAAK;AAAA,EAC5B,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,mBAAAC,IAAoB;AAAA,EACpB,eAAAC,IAAgB;AAAA,EAChB,kBAAAC,IAAmB;AAAA,EACnB,sBAAAC,IAAuB;AAAA,EACvB,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,UAAAC;AACF,MAAgC;AACxB,QAAAC,IAAYvB,EAAaY,CAAS,KAAKX;AAG3C,SAAAuB,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAjB;AAAA,MACA,WAAAC;AAAA,MACA,MAAAC;AAAA,MACA,SAAAO;AAAA,MACA,SAAAC;AAAA,MACA,mBAAAL;AAAA,MACA,eAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,sBAAAC;AAAA,IAAA;AAAA,IAEAQ,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,OAAAf;AAAA,QACA,SAAAQ;AAAA,QACA,uBAAAC;AAAA,QACA,iBAAAC;AAAA,QACA,YAAY,CAACM,GAAMC,sCAAWL,GAAU,EAAA,KAAKK,GAAQ,GAAGD,EAAM,CAAA;AAAA,QAC9D,UAAAL;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN,GAEAO,IAAetB;"}
|
package/dist/index.es44.js
CHANGED
|
@@ -1,93 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
));
|
|
17
|
-
n.displayName = a.Overlay.displayName;
|
|
18
|
-
const m = e.forwardRef(({ className: t, children: o, ...s }, r) => /* @__PURE__ */ e.createElement(c, null, /* @__PURE__ */ e.createElement(n, null), /* @__PURE__ */ e.createElement(
|
|
19
|
-
a.Content,
|
|
20
|
-
{
|
|
21
|
-
ref: r,
|
|
22
|
-
className: l(
|
|
23
|
-
"fixed left-[50%] top-[50%] z-50 grid max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg overflow-hidden max-h-[calc(100dvh-0.75rem)] w-[calc(100dvw-0.75rem)] p-0",
|
|
24
|
-
t
|
|
25
|
-
),
|
|
26
|
-
...s
|
|
27
|
-
},
|
|
28
|
-
/* @__PURE__ */ e.createElement(i, { className: "max-h-[calc(100dvh-1rem)]" }, /* @__PURE__ */ e.createElement("div", { className: "p-6" }, o)),
|
|
29
|
-
/* @__PURE__ */ e.createElement(a.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ e.createElement(d, { className: "h-4 w-4" }), /* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "Close"))
|
|
30
|
-
)));
|
|
31
|
-
m.displayName = a.Content.displayName;
|
|
32
|
-
const f = ({
|
|
33
|
-
className: t,
|
|
34
|
-
...o
|
|
35
|
-
}) => /* @__PURE__ */ e.createElement(
|
|
36
|
-
"div",
|
|
37
|
-
{
|
|
38
|
-
className: l(
|
|
39
|
-
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
40
|
-
t
|
|
41
|
-
),
|
|
42
|
-
...o
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
f.displayName = "DialogHeader";
|
|
46
|
-
const p = ({
|
|
47
|
-
className: t,
|
|
48
|
-
...o
|
|
49
|
-
}) => /* @__PURE__ */ e.createElement(
|
|
50
|
-
"div",
|
|
51
|
-
{
|
|
52
|
-
className: l(
|
|
53
|
-
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
54
|
-
t
|
|
55
|
-
),
|
|
56
|
-
...o
|
|
1
|
+
import c, { forwardRef as f } from "react";
|
|
2
|
+
import { typeVariants as p } from "./index.es57.js";
|
|
3
|
+
const e = f(
|
|
4
|
+
({ level: a, as: n, className: t = "", children: r, id: o, ...i }, s) => {
|
|
5
|
+
const d = n || `h${a}`, m = p({ variant: `h${a}` });
|
|
6
|
+
return /* @__PURE__ */ c.createElement(
|
|
7
|
+
d,
|
|
8
|
+
{
|
|
9
|
+
ref: s,
|
|
10
|
+
id: o,
|
|
11
|
+
className: `${m}${t ? ` ${t}` : ""}`,
|
|
12
|
+
...i
|
|
13
|
+
},
|
|
14
|
+
r
|
|
15
|
+
);
|
|
57
16
|
}
|
|
58
17
|
);
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
a.Title,
|
|
62
|
-
{
|
|
63
|
-
ref: s,
|
|
64
|
-
className: l(
|
|
65
|
-
"text-lg font-semibold leading-none tracking-tight",
|
|
66
|
-
t
|
|
67
|
-
),
|
|
68
|
-
...o
|
|
69
|
-
}
|
|
70
|
-
));
|
|
71
|
-
g.displayName = a.Title.displayName;
|
|
72
|
-
const u = e.forwardRef(({ className: t, ...o }, s) => /* @__PURE__ */ e.createElement(
|
|
73
|
-
a.Description,
|
|
74
|
-
{
|
|
75
|
-
ref: s,
|
|
76
|
-
className: l("text-sm text-muted-foreground", t),
|
|
77
|
-
...o
|
|
78
|
-
}
|
|
79
|
-
));
|
|
80
|
-
u.displayName = a.Description.displayName;
|
|
18
|
+
e.displayName = "Heading";
|
|
19
|
+
const l = e;
|
|
81
20
|
export {
|
|
82
|
-
|
|
83
|
-
E as DialogClose,
|
|
84
|
-
m as DialogContent,
|
|
85
|
-
u as DialogDescription,
|
|
86
|
-
p as DialogFooter,
|
|
87
|
-
f as DialogHeader,
|
|
88
|
-
n as DialogOverlay,
|
|
89
|
-
c as DialogPortal,
|
|
90
|
-
g as DialogTitle,
|
|
91
|
-
v as DialogTrigger
|
|
21
|
+
l as default
|
|
92
22
|
};
|
|
93
23
|
//# sourceMappingURL=index.es44.js.map
|
package/dist/index.es44.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es44.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es44.js","sources":["../src/components/core/typography/Heading.tsx"],"sourcesContent":["import React, { ElementType, ReactNode, forwardRef } from \"react\";\r\n\r\nimport { typeVariants } from \"./typeVariants\";\r\n\r\ninterface HeadingProps {\r\n level: 1 | 2 | 3 | 4 | 5 | 6;\r\n as?: ElementType;\r\n className?: string;\r\n children: ReactNode;\r\n id?: string;\r\n}\r\n\r\nconst Heading = forwardRef<HTMLHeadingElement, HeadingProps>(\r\n ({ level, as, className = \"\", children, id, ...props }, ref) => {\r\n const Component = as || `h${level}`;\r\n const variantClass = typeVariants({ variant: `h${level}` });\r\n\r\n return (\r\n <Component\r\n ref={ref}\r\n id={id}\r\n className={`${variantClass}${className ? ` ${className}` : \"\"}`}\r\n {...props}\r\n >\r\n {children}\r\n </Component>\r\n );\r\n }\r\n);\r\n\r\nHeading.displayName = \"Heading\";\r\n\r\nexport default Heading;\r\n"],"names":["Heading","forwardRef","level","as","className","children","id","props","ref","Component","variantClass","typeVariants","React","Heading$1"],"mappings":";;AAYA,MAAMA,IAAUC;AAAA,EACd,CAAC,EAAE,OAAAC,GAAO,IAAAC,GAAI,WAAAC,IAAY,IAAI,UAAAC,GAAU,IAAAC,GAAI,GAAGC,EAAM,GAAGC,MAAQ;AACxD,UAAAC,IAAYN,KAAM,IAAID,CAAK,IAC3BQ,IAAeC,EAAa,EAAE,SAAS,IAAIT,CAAK,IAAI;AAGxD,WAAAU,gBAAAA,EAAA;AAAA,MAACH;AAAA,MAAA;AAAA,QACC,KAAAD;AAAA,QACA,IAAAF;AAAA,QACA,WAAW,GAAGI,CAAY,GAAGN,IAAY,IAAIA,CAAS,KAAK,EAAE;AAAA,QAC5D,GAAGG;AAAA,MAAA;AAAA,MAEHF;AAAA,IAAA;AAAA,EAGP;AACF;AAEAL,EAAQ,cAAc;AAEtB,MAAAa,IAAeb;"}
|
package/dist/index.es45.js
CHANGED
|
@@ -1,36 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
ref: t,
|
|
20
|
-
orientation: l,
|
|
21
|
-
className: c(
|
|
22
|
-
"flex touch-none select-none transition-colors",
|
|
23
|
-
l === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
24
|
-
l === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
25
|
-
a
|
|
26
|
-
),
|
|
27
|
-
...o
|
|
28
|
-
},
|
|
29
|
-
/* @__PURE__ */ e.createElement(r.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
30
|
-
));
|
|
31
|
-
n.displayName = r.ScrollAreaScrollbar.displayName;
|
|
1
|
+
import c, { forwardRef as f } from "react";
|
|
2
|
+
import { typeVariants as d } from "./index.es57.js";
|
|
3
|
+
const e = f(
|
|
4
|
+
({ variant: a = "body", as: o, className: t = "", children: r, ...n }, s) => {
|
|
5
|
+
const m = o || "p", p = d({ variant: a });
|
|
6
|
+
return /* @__PURE__ */ c.createElement(
|
|
7
|
+
m,
|
|
8
|
+
{
|
|
9
|
+
ref: s,
|
|
10
|
+
className: `${p}${t ? ` ${t}` : ""}`,
|
|
11
|
+
...n
|
|
12
|
+
},
|
|
13
|
+
r
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
e.displayName = "Text";
|
|
18
|
+
const x = e;
|
|
32
19
|
export {
|
|
33
|
-
|
|
34
|
-
n as ScrollBar
|
|
20
|
+
x as default
|
|
35
21
|
};
|
|
36
22
|
//# sourceMappingURL=index.es45.js.map
|
package/dist/index.es45.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es45.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es45.js","sources":["../src/components/core/typography/Text.tsx"],"sourcesContent":["import React, { ElementType, ReactNode, forwardRef } from \"react\";\r\n\r\nimport { typeVariants } from \"./typeVariants\";\r\n\r\ninterface TextProps {\r\n variant?:\r\n | \"factoid\"\r\n | \"subtitle-1\"\r\n | \"subtitle-2\"\r\n | \"overline\"\r\n | \"lead-text\"\r\n | \"body\"\r\n | \"small-body\"\r\n | \"caption\"\r\n | \"button\"\r\n | \"link\";\r\n as?: ElementType;\r\n className?: string;\r\n children: ReactNode;\r\n}\r\n\r\nconst Text = forwardRef<HTMLParagraphElement, TextProps>(\r\n ({ variant = \"body\", as, className = \"\", children, ...props }, ref) => {\r\n const Component = as || \"p\";\r\n const variantClass = typeVariants({ variant });\r\n\r\n return (\r\n <Component\r\n ref={ref}\r\n className={`${variantClass}${className ? ` ${className}` : \"\"}`}\r\n {...props}\r\n >\r\n {children}\r\n </Component>\r\n );\r\n }\r\n);\r\n\r\nText.displayName = \"Text\";\r\n\r\nexport default Text;\r\n"],"names":["Text","forwardRef","variant","as","className","children","props","ref","Component","variantClass","typeVariants","React","Text$1"],"mappings":";;AAqBA,MAAMA,IAAOC;AAAA,EACX,CAAC,EAAE,SAAAC,IAAU,QAAQ,IAAAC,GAAI,WAAAC,IAAY,IAAI,UAAAC,GAAU,GAAGC,EAAM,GAAGC,MAAQ;AACrE,UAAMC,IAAYL,KAAM,KAClBM,IAAeC,EAAa,EAAE,SAAAR,EAAS,CAAA;AAG3C,WAAAS,gBAAAA,EAAA;AAAA,MAACH;AAAA,MAAA;AAAA,QACC,KAAAD;AAAA,QACA,WAAW,GAAGE,CAAY,GAAGL,IAAY,IAAIA,CAAS,KAAK,EAAE;AAAA,QAC5D,GAAGE;AAAA,MAAA;AAAA,MAEHD;AAAA,IAAA;AAAA,EAGP;AACF;AAEAL,EAAK,cAAc;AAEnB,MAAAY,IAAeZ;"}
|