@dmitriikapustin/ui 0.4.0 → 0.4.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/index.cjs +779 -525
- package/dist/index.d.cts +106 -7
- package/dist/index.d.ts +106 -7
- package/dist/index.js +776 -527
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -561,6 +561,21 @@ var IconlyShield = ({ size = 24, color = "currentColor", className }) => /* @__P
|
|
|
561
561
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M14.615,2.375A1.089,1.089,0,0,1,15.344,3.4v6.773a7.781,7.781,0,0,1-1.9,5.1,7.771,7.771,0,0,1-2.2,1.7L7.678,18.9,4.114,16.972a7.767,7.767,0,0,1-2.208-1.7A7.783,7.783,0,0,1,0,10.172V3.4A1.089,1.089,0,0,1,.729,2.375L7.311.062a1.09,1.09,0,0,1,.722,0Z", transform: "translate(0.75 0.749)", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
562
562
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M0,2.005,1.892,3.9,5.79,0", transform: "translate(5.823 7.913)", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
563
563
|
] }) });
|
|
564
|
+
var IconlyCategory = ({ size = 24, color = "currentColor", className }) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className, children: [
|
|
565
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3", y: "3", width: "7.5", height: "7.5", rx: "2", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
566
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "13.5", y: "3", width: "7.5", height: "7.5", rx: "2", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
567
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3", y: "13.5", width: "7.5", height: "7.5", rx: "2", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
568
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "13.5", y: "13.5", width: "7.5", height: "7.5", rx: "2", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
569
|
+
] });
|
|
570
|
+
var IconlySetting = ({ size = 24, color = "currentColor", className }) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className, children: [
|
|
571
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19.622 10.395l-1.097-2.65L20 6l-2-2-1.735 1.483-2.707-1.113L12.935 2h-1.954l-.632 2.401-2.645 1.115L6 4 4 6l1.453 1.789-1.08 2.657L2 11v2l2.401.655L5.516 16.3 4 18l2 2 1.791-1.46 2.606 1.072L11 22h2l.604-2.387 2.651-1.098C16.697 18.831 18 20 18 20l2-2-1.484-1.75 1.098-2.652 2.386-.62V11l-2.378-.605z", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
572
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "2.5", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
573
|
+
] });
|
|
574
|
+
var IconlyFolder = ({ size = 24, color = "currentColor", className }) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3 7.5C3 6.119 4.119 5 5.5 5h3.879a2 2 0 0 1 1.414.586l1.207 1.207a2 2 0 0 0 1.414.586H18.5C19.881 7.379 21 8.498 21 9.879V16.5c0 1.381-1.119 2.5-2.5 2.5h-13A2.5 2.5 0 0 1 3 16.5v-9z", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
575
|
+
var IconlyLink = ({ size = 24, color = "currentColor", className }) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className, children: [
|
|
576
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
577
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
578
|
+
] });
|
|
564
579
|
var IconlySmile = IconlyActivity;
|
|
565
580
|
var IconlyAttach = IconlyActivity;
|
|
566
581
|
var IconlyInfo = IconlyActivity;
|
|
@@ -574,7 +589,6 @@ var IconlyInfoCircle = IconlyActivity;
|
|
|
574
589
|
var IconlySuccess = IconlyActivity;
|
|
575
590
|
var IconlyWarning = IconlyActivity;
|
|
576
591
|
var IconlyError = IconlyActivity;
|
|
577
|
-
var IconlyLink = IconlyActivity;
|
|
578
592
|
|
|
579
593
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/atoms/Tag.module.scss
|
|
580
594
|
__styleInject(`@charset "UTF-8";
|
|
@@ -1674,6 +1688,73 @@ function Skeleton({ variant = "line", width, height, className = "" }) {
|
|
|
1674
1688
|
);
|
|
1675
1689
|
}
|
|
1676
1690
|
|
|
1691
|
+
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/atoms/SectionHeading.module.scss
|
|
1692
|
+
__styleInject(`@charset "UTF-8";
|
|
1693
|
+
/* SectionHeading \u2014 \u0435\u0434\u0438\u043D\u0430\u044F \u0442\u0438\u043F\u043E\u0433\u0440\u0430\u0444\u0438\u043A\u0430 \u0434\u043B\u044F section-h2 \u0432 \u043F\u0430\u043A\u0435\u0442\u0435 \u0438 \u043F\u043E\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043B\u044F\u0445.
|
|
1694
|
+
\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0437\u0435\u0440\u043A\u0430\u043B\u044F\u0442 PromoSplit-module_heading / PromoTestimonials-module_heading. */
|
|
1695
|
+
.SectionHeading-module_heading {
|
|
1696
|
+
font-size: clamp(1.75rem, 4vw, 2.75rem);
|
|
1697
|
+
font-weight: 700;
|
|
1698
|
+
line-height: 1.1;
|
|
1699
|
+
letter-spacing: -0.03em;
|
|
1700
|
+
color: var(--fg);
|
|
1701
|
+
text-wrap: balance;
|
|
1702
|
+
margin: 0;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
.SectionHeading-module_alignLeft {
|
|
1706
|
+
text-align: left;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
.SectionHeading-module_alignCenter {
|
|
1710
|
+
text-align: center;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
.SectionHeading-module_wrap {
|
|
1714
|
+
display: flex;
|
|
1715
|
+
flex-direction: column;
|
|
1716
|
+
gap: 0.75rem;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
.SectionHeading-module_wrapCenter {
|
|
1720
|
+
display: flex;
|
|
1721
|
+
flex-direction: column;
|
|
1722
|
+
align-items: center;
|
|
1723
|
+
gap: 0.75rem;
|
|
1724
|
+
text-align: center;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
.SectionHeading-module_subtitle {
|
|
1728
|
+
font-size: 1rem;
|
|
1729
|
+
line-height: 1.625;
|
|
1730
|
+
color: var(--fg-secondary);
|
|
1731
|
+
margin: 0;
|
|
1732
|
+
max-width: 42rem;
|
|
1733
|
+
text-wrap: balance;
|
|
1734
|
+
}
|
|
1735
|
+
@media (min-width: 768px) {
|
|
1736
|
+
.SectionHeading-module_subtitle {
|
|
1737
|
+
font-size: 1.125rem;
|
|
1738
|
+
}
|
|
1739
|
+
}`);
|
|
1740
|
+
var __default20 = { "heading": "SectionHeading-module_heading", "alignLeft": "SectionHeading-module_alignLeft", "alignCenter": "SectionHeading-module_alignCenter", "wrap": "SectionHeading-module_wrap", "wrapCenter": "SectionHeading-module_wrapCenter", "subtitle": "SectionHeading-module_subtitle" };
|
|
1741
|
+
function SectionHeading({
|
|
1742
|
+
children,
|
|
1743
|
+
as = "h2",
|
|
1744
|
+
align = "left",
|
|
1745
|
+
subtitle,
|
|
1746
|
+
className = ""
|
|
1747
|
+
}) {
|
|
1748
|
+
const headingClass = `${__default20.heading} ${align === "center" ? __default20.alignCenter : __default20.alignLeft}${className ? ` ${className}` : ""}`;
|
|
1749
|
+
if (subtitle) {
|
|
1750
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: align === "center" ? __default20.wrapCenter : __default20.wrap, children: [
|
|
1751
|
+
react.createElement(as, { className: headingClass }, children),
|
|
1752
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default20.subtitle, children: subtitle })
|
|
1753
|
+
] });
|
|
1754
|
+
}
|
|
1755
|
+
return react.createElement(as, { className: headingClass }, children);
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1677
1758
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/atoms/TicketButton.module.scss
|
|
1678
1759
|
__styleInject(`@charset "UTF-8";
|
|
1679
1760
|
/* TicketButton SASS Module \u2014 scoped CSS replacing Tailwind group-hover utilities */
|
|
@@ -1738,7 +1819,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
1738
1819
|
align-items: center;
|
|
1739
1820
|
justify-content: center;
|
|
1740
1821
|
}`);
|
|
1741
|
-
var
|
|
1822
|
+
var __default21 = { "root": "TicketButton-module_root", "stub": "TicketButton-module_stub", "body": "TicketButton-module_body", "bodySvg": "TicketButton-module_bodySvg", "bodyText": "TicketButton-module_bodyText", "stubSvg": "TicketButton-module_stubSvg", "stubIcon": "TicketButton-module_stubIcon" };
|
|
1742
1823
|
var DefaultIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "9 18 15 12 9 6" }) });
|
|
1743
1824
|
function TicketButton(_a) {
|
|
1744
1825
|
var _b = _a, {
|
|
@@ -1761,14 +1842,14 @@ function TicketButton(_a) {
|
|
|
1761
1842
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1762
1843
|
"button",
|
|
1763
1844
|
__spreadProps(__spreadValues({
|
|
1764
|
-
className: `${
|
|
1845
|
+
className: `${__default21.root} ${className}`
|
|
1765
1846
|
}, props), {
|
|
1766
1847
|
children: [
|
|
1767
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
1848
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: __default21.body, children: [
|
|
1768
1849
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1769
1850
|
"svg",
|
|
1770
1851
|
{
|
|
1771
|
-
className:
|
|
1852
|
+
className: __default21.bodySvg,
|
|
1772
1853
|
viewBox: "0 0 140 56",
|
|
1773
1854
|
fill: "none",
|
|
1774
1855
|
preserveAspectRatio: "none",
|
|
@@ -1793,13 +1874,13 @@ function TicketButton(_a) {
|
|
|
1793
1874
|
]
|
|
1794
1875
|
}
|
|
1795
1876
|
),
|
|
1796
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1877
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default21.bodyText, style: { color: fg }, children })
|
|
1797
1878
|
] }),
|
|
1798
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
1879
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: __default21.stub, children: [
|
|
1799
1880
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1800
1881
|
"svg",
|
|
1801
1882
|
{
|
|
1802
|
-
className:
|
|
1883
|
+
className: __default21.stubSvg,
|
|
1803
1884
|
viewBox: "0 0 56 56",
|
|
1804
1885
|
fill: "none",
|
|
1805
1886
|
preserveAspectRatio: "none",
|
|
@@ -1823,7 +1904,7 @@ function TicketButton(_a) {
|
|
|
1823
1904
|
]
|
|
1824
1905
|
}
|
|
1825
1906
|
),
|
|
1826
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1907
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default21.stubIcon, style: { color: fg }, children: icon || /* @__PURE__ */ jsxRuntime.jsx(DefaultIcon, {}) })
|
|
1827
1908
|
] })
|
|
1828
1909
|
]
|
|
1829
1910
|
})
|
|
@@ -1924,7 +2005,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
1924
2005
|
.Card-module_spacer {
|
|
1925
2006
|
display: block;
|
|
1926
2007
|
}`);
|
|
1927
|
-
var
|
|
2008
|
+
var __default22 = { "root": "Card-module_root", "imageWrapper": "Card-module_imageWrapper", "image": "Card-module_image", "body": "Card-module_body", "bodyWithImage": "Card-module_bodyWithImage", "bodyNoImage": "Card-module_bodyNoImage", "titleBlock": "Card-module_titleBlock", "title": "Card-module_title", "danger": "Card-module_danger", "description": "Card-module_description", "footer": "Card-module_footer", "footerRow": "Card-module_footerRow", "badges": "Card-module_badges", "spacer": "Card-module_spacer" };
|
|
1928
2009
|
|
|
1929
2010
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/molecules/IconBadge.module.scss
|
|
1930
2011
|
__styleInject(`@charset "UTF-8";
|
|
@@ -1944,9 +2025,9 @@ __styleInject(`@charset "UTF-8";
|
|
|
1944
2025
|
width: 20px;
|
|
1945
2026
|
height: 20px;
|
|
1946
2027
|
}`);
|
|
1947
|
-
var
|
|
2028
|
+
var __default23 = { "root": "IconBadge-module_root" };
|
|
1948
2029
|
function IconBadge({ icon, className = "" }) {
|
|
1949
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
2030
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default23.root}${className ? ` ${className}` : ""}`, children: icon });
|
|
1950
2031
|
}
|
|
1951
2032
|
function Card({
|
|
1952
2033
|
image,
|
|
@@ -1963,20 +2044,20 @@ function Card({
|
|
|
1963
2044
|
const hasImage = !!image;
|
|
1964
2045
|
const hasBadgesOrAction = !!(badges && badges.length > 0 || action);
|
|
1965
2046
|
const showFooter = !!footer || hasBadgesOrAction;
|
|
1966
|
-
const variantClass = variant === "danger" ? ` ${
|
|
1967
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
1968
|
-
hasImage && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2047
|
+
const variantClass = variant === "danger" ? ` ${__default22.danger}` : "";
|
|
2048
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default22.root}${variantClass}${className ? ` ${className}` : ""}`, children: [
|
|
2049
|
+
hasImage && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default22.imageWrapper, children: typeof image === "string" ? (
|
|
1969
2050
|
// eslint-disable-next-line @next/next/no-img-element
|
|
1970
|
-
/* @__PURE__ */ jsxRuntime.jsx("img", { src: image, alt: title || "", className:
|
|
2051
|
+
/* @__PURE__ */ jsxRuntime.jsx("img", { src: image, alt: title || "", className: __default22.image })
|
|
1971
2052
|
) : image }),
|
|
1972
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
1973
|
-
(title || description) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1974
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
1975
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${
|
|
2053
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default22.body} ${hasImage ? __default22.bodyWithImage : __default22.bodyNoImage}`, children: [
|
|
2054
|
+
(title || description) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default22.titleBlock, children: [
|
|
2055
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: __default22.title, children: title }),
|
|
2056
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${__default22.description}${descriptionClassName ? ` ${descriptionClassName}` : ""}`, children: description })
|
|
1976
2057
|
] }),
|
|
1977
2058
|
children,
|
|
1978
|
-
showFooter && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1979
|
-
badges && badges.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2059
|
+
showFooter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default22.footer, children: footer || /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default22.footerRow, children: [
|
|
2060
|
+
badges && badges.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default22.badges, children: badges.map((b, i) => /* @__PURE__ */ jsxRuntime.jsx(IconBadge, { icon: b }, i)) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default22.spacer }),
|
|
1980
2061
|
action && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1981
2062
|
Button,
|
|
1982
2063
|
{
|
|
@@ -2069,7 +2150,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
2069
2150
|
height: auto;
|
|
2070
2151
|
display: block;
|
|
2071
2152
|
}`);
|
|
2072
|
-
var
|
|
2153
|
+
var __default24 = { "root": "Gallery-module_root", "title": "Gallery-module_title", "grid": "Gallery-module_grid", "gridItem": "Gallery-module_gridItem", "image": "Gallery-module_image", "masonry": "Gallery-module_masonry", "masonryItem": "Gallery-module_masonryItem" };
|
|
2073
2154
|
function Gallery({
|
|
2074
2155
|
variant = "grid",
|
|
2075
2156
|
images,
|
|
@@ -2078,10 +2159,10 @@ function Gallery({
|
|
|
2078
2159
|
}) {
|
|
2079
2160
|
if (images.length === 0) return null;
|
|
2080
2161
|
const isMasonry = variant === "masonry";
|
|
2081
|
-
const itemClass = isMasonry ?
|
|
2082
|
-
const containerClass = isMasonry ?
|
|
2083
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${
|
|
2084
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
2162
|
+
const itemClass = isMasonry ? __default24.masonryItem : __default24.gridItem;
|
|
2163
|
+
const containerClass = isMasonry ? __default24.masonry : __default24.grid;
|
|
2164
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${__default24.root}${className ? ` ${className}` : ""}`, children: [
|
|
2165
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: __default24.title, children: title }),
|
|
2085
2166
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: containerClass, children: images.map((src, i) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: itemClass, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2086
2167
|
"img",
|
|
2087
2168
|
{
|
|
@@ -2089,7 +2170,7 @@ function Gallery({
|
|
|
2089
2170
|
alt: "",
|
|
2090
2171
|
loading: i === 0 ? "eager" : "lazy",
|
|
2091
2172
|
decoding: i === 0 ? "sync" : "async",
|
|
2092
|
-
className:
|
|
2173
|
+
className: __default24.image
|
|
2093
2174
|
}
|
|
2094
2175
|
) }, `${src}-${i}`)) })
|
|
2095
2176
|
] });
|
|
@@ -2108,12 +2189,12 @@ __styleInject(`@charset "UTF-8";
|
|
|
2108
2189
|
font-size: 0.8125rem;
|
|
2109
2190
|
color: var(--fg-muted);
|
|
2110
2191
|
}`);
|
|
2111
|
-
var
|
|
2192
|
+
var __default25 = { "root": "FormField-module_root", "hint": "FormField-module_hint" };
|
|
2112
2193
|
function FormField(_a) {
|
|
2113
2194
|
var _b = _a, { label, error, hint, icon } = _b, inputProps = __objRest(_b, ["label", "error", "hint", "icon"]);
|
|
2114
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2195
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default25.root, children: [
|
|
2115
2196
|
/* @__PURE__ */ jsxRuntime.jsx(Input, __spreadValues({ label, error, icon }, inputProps)),
|
|
2116
|
-
hint && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2197
|
+
hint && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default25.hint, children: hint })
|
|
2117
2198
|
] });
|
|
2118
2199
|
}
|
|
2119
2200
|
|
|
@@ -2165,7 +2246,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
2165
2246
|
.SearchBar-module_clearBtn:hover {
|
|
2166
2247
|
color: var(--fg);
|
|
2167
2248
|
}`);
|
|
2168
|
-
var
|
|
2249
|
+
var __default26 = { "root": "SearchBar-module_root", "searchIcon": "SearchBar-module_searchIcon", "input": "SearchBar-module_input", "clearBtn": "SearchBar-module_clearBtn" };
|
|
2169
2250
|
function SearchBar({ placeholder = "Search...", value: controlledValue, onChange, className = "" }) {
|
|
2170
2251
|
const [internalValue, setInternalValue] = react.useState("");
|
|
2171
2252
|
const value = controlledValue != null ? controlledValue : internalValue;
|
|
@@ -2173,8 +2254,8 @@ function SearchBar({ placeholder = "Search...", value: controlledValue, onChange
|
|
|
2173
2254
|
setInternalValue(val);
|
|
2174
2255
|
onChange == null ? void 0 : onChange(val);
|
|
2175
2256
|
};
|
|
2176
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
2177
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2257
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default26.root}${className ? ` ${className}` : ""}`, children: [
|
|
2258
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default26.searchIcon, children: /* @__PURE__ */ jsxRuntime.jsx(IconlySearch, { size: 18 }) }),
|
|
2178
2259
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2179
2260
|
"input",
|
|
2180
2261
|
{
|
|
@@ -2183,14 +2264,14 @@ function SearchBar({ placeholder = "Search...", value: controlledValue, onChange
|
|
|
2183
2264
|
onChange: (e) => handleChange(e.target.value),
|
|
2184
2265
|
placeholder,
|
|
2185
2266
|
"aria-label": "Search",
|
|
2186
|
-
className:
|
|
2267
|
+
className: __default26.input
|
|
2187
2268
|
}
|
|
2188
2269
|
),
|
|
2189
2270
|
value && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2190
2271
|
"button",
|
|
2191
2272
|
{
|
|
2192
2273
|
onClick: () => handleChange(""),
|
|
2193
|
-
className:
|
|
2274
|
+
className: __default26.clearBtn,
|
|
2194
2275
|
"aria-label": "Clear search",
|
|
2195
2276
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconlyClose, { size: 16 })
|
|
2196
2277
|
}
|
|
@@ -2236,18 +2317,18 @@ __styleInject(`@charset "UTF-8";
|
|
|
2236
2317
|
font-size: 0.875rem;
|
|
2237
2318
|
color: var(--fg-muted);
|
|
2238
2319
|
}`);
|
|
2239
|
-
var
|
|
2320
|
+
var __default27 = { "root": "Stat-module_root", "valueRow": "Stat-module_valueRow", "value": "Stat-module_value", "trend": "Stat-module_trend", "positive": "Stat-module_positive", "negative": "Stat-module_negative", "label": "Stat-module_label" };
|
|
2240
2321
|
function Stat({ value, label, trend, className = "" }) {
|
|
2241
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
2242
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2243
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2244
|
-
trend && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: `${
|
|
2322
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default27.root}${className ? ` ${className}` : ""}`, children: [
|
|
2323
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default27.valueRow, children: [
|
|
2324
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default27.value, children: value }),
|
|
2325
|
+
trend && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: `${__default27.trend} ${trend.positive ? __default27.positive : __default27.negative}`, children: [
|
|
2245
2326
|
trend.positive ? "\u2191" : "\u2193",
|
|
2246
2327
|
" ",
|
|
2247
2328
|
trend.value
|
|
2248
2329
|
] })
|
|
2249
2330
|
] }),
|
|
2250
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2331
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default27.label, children: label })
|
|
2251
2332
|
] });
|
|
2252
2333
|
}
|
|
2253
2334
|
|
|
@@ -2314,7 +2395,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
2314
2395
|
.Alert-module_dismiss:hover {
|
|
2315
2396
|
color: var(--fg);
|
|
2316
2397
|
}`);
|
|
2317
|
-
var
|
|
2398
|
+
var __default28 = { "root": "Alert-module_root", "icon": "Alert-module_icon", "info": "Alert-module_info", "success": "Alert-module_success", "warning": "Alert-module_warning", "error": "Alert-module_error", "content": "Alert-module_content", "title": "Alert-module_title", "message": "Alert-module_message", "dismiss": "Alert-module_dismiss" };
|
|
2318
2399
|
var variantIcons = {
|
|
2319
2400
|
info: IconlyInfoCircle,
|
|
2320
2401
|
success: IconlySuccess,
|
|
@@ -2325,18 +2406,18 @@ function Alert({ variant = "info", title, children, closable = false, className
|
|
|
2325
2406
|
const [visible, setVisible] = react.useState(true);
|
|
2326
2407
|
if (!visible) return null;
|
|
2327
2408
|
const Icon = variantIcons[variant];
|
|
2328
|
-
const variantClass =
|
|
2329
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
2330
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
2331
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2332
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${
|
|
2333
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2409
|
+
const variantClass = __default28[variant];
|
|
2410
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default28.root}${className ? ` ${className}` : ""}`, children: [
|
|
2411
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default28.icon} ${variantClass}`, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 20 }) }),
|
|
2412
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default28.content, children: [
|
|
2413
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${__default28.title} ${variantClass}`, children: title }),
|
|
2414
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default28.message, children })
|
|
2334
2415
|
] }),
|
|
2335
2416
|
closable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2336
2417
|
"button",
|
|
2337
2418
|
{
|
|
2338
2419
|
onClick: () => setVisible(false),
|
|
2339
|
-
className:
|
|
2420
|
+
className: __default28.dismiss,
|
|
2340
2421
|
"aria-label": "Dismiss",
|
|
2341
2422
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconlyClose, { size: 16 })
|
|
2342
2423
|
}
|
|
@@ -2384,7 +2465,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
2384
2465
|
.Tabs-module_panel {
|
|
2385
2466
|
padding-top: 1rem;
|
|
2386
2467
|
}`);
|
|
2387
|
-
var
|
|
2468
|
+
var __default29 = { "tabList": "Tabs-module_tabList", "tab": "Tabs-module_tab", "active": "Tabs-module_active", "indicator": "Tabs-module_indicator", "panel": "Tabs-module_panel" };
|
|
2388
2469
|
function Tabs({ tabs, defaultTab, onChange, className = "" }) {
|
|
2389
2470
|
var _a, _b;
|
|
2390
2471
|
const [activeTab, setActiveTab] = react.useState(defaultTab || ((_a = tabs[0]) == null ? void 0 : _a.id));
|
|
@@ -2415,7 +2496,7 @@ function Tabs({ tabs, defaultTab, onChange, className = "" }) {
|
|
|
2415
2496
|
"div",
|
|
2416
2497
|
{
|
|
2417
2498
|
role: "tablist",
|
|
2418
|
-
className:
|
|
2499
|
+
className: __default29.tabList,
|
|
2419
2500
|
onKeyDown: handleKeyDown,
|
|
2420
2501
|
children: tabs.map((tab, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2421
2502
|
"button",
|
|
@@ -2429,10 +2510,10 @@ function Tabs({ tabs, defaultTab, onChange, className = "" }) {
|
|
|
2429
2510
|
"aria-controls": `panel-${tab.id}`,
|
|
2430
2511
|
tabIndex: activeTab === tab.id ? 0 : -1,
|
|
2431
2512
|
onClick: () => activateTab(tab.id),
|
|
2432
|
-
className: `${
|
|
2513
|
+
className: `${__default29.tab} ${activeTab === tab.id ? __default29.active : ""}`,
|
|
2433
2514
|
children: [
|
|
2434
2515
|
tab.label,
|
|
2435
|
-
activeTab === tab.id && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2516
|
+
activeTab === tab.id && /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default29.indicator })
|
|
2436
2517
|
]
|
|
2437
2518
|
},
|
|
2438
2519
|
tab.id
|
|
@@ -2445,7 +2526,7 @@ function Tabs({ tabs, defaultTab, onChange, className = "" }) {
|
|
|
2445
2526
|
role: "tabpanel",
|
|
2446
2527
|
id: `panel-${activeTab}`,
|
|
2447
2528
|
"aria-labelledby": `tab-${activeTab}`,
|
|
2448
|
-
className:
|
|
2529
|
+
className: __default29.panel,
|
|
2449
2530
|
children: activeContent
|
|
2450
2531
|
}
|
|
2451
2532
|
)
|
|
@@ -2510,7 +2591,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
2510
2591
|
align-items: center;
|
|
2511
2592
|
gap: 0.25rem;
|
|
2512
2593
|
}`);
|
|
2513
|
-
var
|
|
2594
|
+
var __default30 = { "root": "ChatInput-module_root", "contrast": "ChatInput-module_contrast", "plain": "ChatInput-module_plain", "input": "ChatInput-module_input", "actions": "ChatInput-module_actions", "actionsFull": "ChatInput-module_actionsFull", "actionsEasy": "ChatInput-module_actionsEasy", "toolGroup": "ChatInput-module_toolGroup" };
|
|
2514
2595
|
function ChatInput({
|
|
2515
2596
|
placeholder = "\u0412\u0432\u0435\u0434\u0438 \u0441\u0432\u043E\u0439 email...",
|
|
2516
2597
|
buttonText = "\u041D\u0430\u0447\u0430\u0442\u044C \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",
|
|
@@ -2536,7 +2617,7 @@ function ChatInput({
|
|
|
2536
2617
|
var _a;
|
|
2537
2618
|
return (_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
2538
2619
|
},
|
|
2539
|
-
className: `${
|
|
2620
|
+
className: `${__default30.root} ${contrast ? __default30.contrast : __default30.plain}${className ? ` ${className}` : ""}`,
|
|
2540
2621
|
children: [
|
|
2541
2622
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2542
2623
|
"input",
|
|
@@ -2546,11 +2627,11 @@ function ChatInput({
|
|
|
2546
2627
|
value,
|
|
2547
2628
|
onChange: (e) => setValue(e.target.value),
|
|
2548
2629
|
placeholder,
|
|
2549
|
-
className:
|
|
2630
|
+
className: __default30.input
|
|
2550
2631
|
}
|
|
2551
2632
|
),
|
|
2552
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
2553
|
-
type === "full" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2633
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default30.actions} ${type === "full" ? __default30.actionsFull : __default30.actionsEasy}`, children: [
|
|
2634
|
+
type === "full" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default30.toolGroup, children: [
|
|
2554
2635
|
/* @__PURE__ */ jsxRuntime.jsx(IconButton, { variant: "secondary", icon: /* @__PURE__ */ jsxRuntime.jsx(IconlySmile, { size: 20 }), type: "button", "aria-label": "Emoji" }),
|
|
2555
2636
|
/* @__PURE__ */ jsxRuntime.jsx(IconButton, { variant: "clear", icon: /* @__PURE__ */ jsxRuntime.jsx(IconlyAttach, { size: 20 }), type: "button", "aria-label": "Attach" }),
|
|
2556
2637
|
/* @__PURE__ */ jsxRuntime.jsx(IconButton, { variant: "clear", icon: /* @__PURE__ */ jsxRuntime.jsx(IconlyInfo, { size: 20 }), type: "button", "aria-label": "Info" })
|
|
@@ -2607,13 +2688,13 @@ __styleInject(`@charset "UTF-8";
|
|
|
2607
2688
|
color: var(--bg);
|
|
2608
2689
|
border-bottom-right-radius: 16px;
|
|
2609
2690
|
}`);
|
|
2610
|
-
var
|
|
2691
|
+
var __default31 = { "root": "ChatMessage-module_root", "user": "ChatMessage-module_user", "ai": "ChatMessage-module_ai", "bubble": "ChatMessage-module_bubble", "sm": "ChatMessage-module_sm", "lg": "ChatMessage-module_lg", "bubbleUser": "ChatMessage-module_bubbleUser", "bubbleAi": "ChatMessage-module_bubbleAi" };
|
|
2611
2692
|
function ChatMessage({ children, role = "user", size = "sm", className = "" }) {
|
|
2612
2693
|
const isUser = role === "user";
|
|
2613
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
2694
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default31.root} ${isUser ? __default31.user : __default31.ai}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2614
2695
|
"div",
|
|
2615
2696
|
{
|
|
2616
|
-
className: `${
|
|
2697
|
+
className: `${__default31.bubble} ${__default31[size]} ${isUser ? __default31.bubbleUser : __default31.bubbleAi}`,
|
|
2617
2698
|
children
|
|
2618
2699
|
}
|
|
2619
2700
|
) });
|
|
@@ -2633,10 +2714,10 @@ __styleInject(`@charset "UTF-8";
|
|
|
2633
2714
|
letter-spacing: -0.25px;
|
|
2634
2715
|
color: var(--fg-secondary);
|
|
2635
2716
|
}`);
|
|
2636
|
-
var
|
|
2717
|
+
var __default32 = { "root": "TopPromo-module_root", "text": "TopPromo-module_text" };
|
|
2637
2718
|
function TopPromo({ text, buttonText = "\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C", onButtonClick, className = "" }) {
|
|
2638
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
2639
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2719
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default32.root}${className ? ` ${className}` : ""}`, children: [
|
|
2720
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default32.text, children: text }),
|
|
2640
2721
|
/* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "primary", size: "md", onClick: onButtonClick, children: buttonText })
|
|
2641
2722
|
] });
|
|
2642
2723
|
}
|
|
@@ -2672,16 +2753,16 @@ __styleInject(`@charset "UTF-8";
|
|
|
2672
2753
|
.ProfileNav-module_separator {
|
|
2673
2754
|
color: var(--fg-muted);
|
|
2674
2755
|
}`);
|
|
2675
|
-
var
|
|
2756
|
+
var __default33 = { "root": "ProfileNav-module_root", "stats": "ProfileNav-module_stats", "statItem": "ProfileNav-module_statItem", "statText": "ProfileNav-module_statText", "separator": "ProfileNav-module_separator" };
|
|
2676
2757
|
function ProfileNav({ stats, avatarSrc, avatarInitials = "DK", className = "" }) {
|
|
2677
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
2678
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2679
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
2758
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default33.root}${className ? ` ${className}` : ""}`, children: [
|
|
2759
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default33.stats, children: stats.map((stat, i) => /* @__PURE__ */ jsxRuntime.jsxs("span", { className: __default33.statItem, children: [
|
|
2760
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: __default33.statText, children: [
|
|
2680
2761
|
stat.value,
|
|
2681
2762
|
" ",
|
|
2682
2763
|
stat.suffix
|
|
2683
2764
|
] }),
|
|
2684
|
-
i < stats.length - 1 && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2765
|
+
i < stats.length - 1 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default33.separator, children: " //" })
|
|
2685
2766
|
] }, i)) }),
|
|
2686
2767
|
/* @__PURE__ */ jsxRuntime.jsx(Avatar, { size: "sm", src: avatarSrc, initials: avatarInitials })
|
|
2687
2768
|
] });
|
|
@@ -2714,12 +2795,12 @@ __styleInject(`@charset "UTF-8";
|
|
|
2714
2795
|
letter-spacing: -0.25px;
|
|
2715
2796
|
white-space: nowrap;
|
|
2716
2797
|
}`);
|
|
2717
|
-
var
|
|
2798
|
+
var __default34 = { "root": "IconWithText-module_root", "icon": "IconWithText-module_icon", "text": "IconWithText-module_text" };
|
|
2718
2799
|
function IconWithText({ icon, text, side = "left", className = "" }) {
|
|
2719
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
2720
|
-
side === "left" && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2721
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2722
|
-
side === "right" && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2800
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default34.root}${className ? ` ${className}` : ""}`, children: [
|
|
2801
|
+
side === "left" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default34.icon, children: icon }),
|
|
2802
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default34.text, children: text }),
|
|
2803
|
+
side === "right" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default34.icon, children: icon })
|
|
2723
2804
|
] });
|
|
2724
2805
|
}
|
|
2725
2806
|
|
|
@@ -2741,7 +2822,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
2741
2822
|
.StampCard-module_inner {
|
|
2742
2823
|
background: var(--bg);
|
|
2743
2824
|
}`);
|
|
2744
|
-
var
|
|
2825
|
+
var __default35 = { "root": "StampCard-module_root", "plain": "StampCard-module_plain", "inner": "StampCard-module_inner" };
|
|
2745
2826
|
function StampCard({
|
|
2746
2827
|
children,
|
|
2747
2828
|
className = "",
|
|
@@ -2793,9 +2874,9 @@ function StampCard({
|
|
|
2793
2874
|
};
|
|
2794
2875
|
}, [build, stamp]);
|
|
2795
2876
|
if (!stamp) {
|
|
2796
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
2877
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default35.plain} ${className}`, children });
|
|
2797
2878
|
}
|
|
2798
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: outerRef, className: `${
|
|
2879
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: outerRef, className: `${__default35.root} ${className}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: { filter: "drop-shadow(0 1px 3px rgba(0,0,0,0.25)) drop-shadow(0 4px 12px rgba(0,0,0,0.20))" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2799
2880
|
"div",
|
|
2800
2881
|
{
|
|
2801
2882
|
style: {
|
|
@@ -2804,7 +2885,7 @@ function StampCard({
|
|
|
2804
2885
|
WebkitMaskSize: "100% 100%",
|
|
2805
2886
|
maskSize: "100% 100%"
|
|
2806
2887
|
},
|
|
2807
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2888
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default35.inner, children })
|
|
2808
2889
|
}
|
|
2809
2890
|
) }) });
|
|
2810
2891
|
}
|
|
@@ -2818,7 +2899,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
2818
2899
|
justify-content: center;
|
|
2819
2900
|
cursor: pointer;
|
|
2820
2901
|
}`);
|
|
2821
|
-
var
|
|
2902
|
+
var __default36 = { "toggle": "PasswordInput-module_toggle" };
|
|
2822
2903
|
function PasswordInput(_a) {
|
|
2823
2904
|
var props = __objRest(_a, []);
|
|
2824
2905
|
const [showPassword, setShowPassword] = react.useState(false);
|
|
@@ -2831,7 +2912,7 @@ function PasswordInput(_a) {
|
|
|
2831
2912
|
{
|
|
2832
2913
|
type: "button",
|
|
2833
2914
|
onClick: () => setShowPassword((prev) => !prev),
|
|
2834
|
-
className:
|
|
2915
|
+
className: __default36.toggle,
|
|
2835
2916
|
"aria-label": showPassword ? "Hide password" : "Show password",
|
|
2836
2917
|
tabIndex: -1,
|
|
2837
2918
|
children: showPassword ? /* @__PURE__ */ jsxRuntime.jsx(IconlyEyeOff, { size: 18 }) : /* @__PURE__ */ jsxRuntime.jsx(IconlyEye, { size: 18 })
|
|
@@ -2878,21 +2959,21 @@ __styleInject(`@charset "UTF-8";
|
|
|
2878
2959
|
.Breadcrumbs-module_link:hover {
|
|
2879
2960
|
color: var(--fg);
|
|
2880
2961
|
}`);
|
|
2881
|
-
var
|
|
2962
|
+
var __default37 = { "list": "Breadcrumbs-module_list", "item": "Breadcrumbs-module_item", "separator": "Breadcrumbs-module_separator", "active": "Breadcrumbs-module_active", "link": "Breadcrumbs-module_link" };
|
|
2882
2963
|
function Breadcrumbs({
|
|
2883
2964
|
items,
|
|
2884
2965
|
separator = /* @__PURE__ */ jsxRuntime.jsx(IconlyChevronRight, { size: 14 })
|
|
2885
2966
|
}) {
|
|
2886
|
-
return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className:
|
|
2967
|
+
return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: __default37.list, children: items.map((item, index) => {
|
|
2887
2968
|
var _a;
|
|
2888
2969
|
const isLast = index === items.length - 1;
|
|
2889
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("li", { className:
|
|
2890
|
-
index > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2891
|
-
isLast ? /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2970
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: __default37.item, children: [
|
|
2971
|
+
index > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default37.separator, "aria-hidden": "true", children: separator }),
|
|
2972
|
+
isLast ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default37.active, "aria-current": "page", children: item.label }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2892
2973
|
"a",
|
|
2893
2974
|
{
|
|
2894
2975
|
href: (_a = item.href) != null ? _a : "#",
|
|
2895
|
-
className:
|
|
2976
|
+
className: __default37.link,
|
|
2896
2977
|
children: item.label
|
|
2897
2978
|
}
|
|
2898
2979
|
)
|
|
@@ -2969,7 +3050,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
2969
3050
|
.Toast-module_dismiss:hover {
|
|
2970
3051
|
color: var(--fg);
|
|
2971
3052
|
}`);
|
|
2972
|
-
var
|
|
3053
|
+
var __default38 = { "root": "Toast-module_root", "icon": "Toast-module_icon", "info": "Toast-module_info", "success": "Toast-module_success", "warning": "Toast-module_warning", "error": "Toast-module_error", "content": "Toast-module_content", "title": "Toast-module_title", "message": "Toast-module_message", "dismiss": "Toast-module_dismiss" };
|
|
2973
3054
|
var variantIcons2 = {
|
|
2974
3055
|
info: IconlyInfoCircle,
|
|
2975
3056
|
success: IconlySuccess,
|
|
@@ -2992,24 +3073,24 @@ function Toast({
|
|
|
2992
3073
|
}, [visible, duration, onClose]);
|
|
2993
3074
|
if (!visible) return null;
|
|
2994
3075
|
const Icon = variantIcons2[variant];
|
|
2995
|
-
const variantClass =
|
|
3076
|
+
const variantClass = __default38[variant];
|
|
2996
3077
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2997
3078
|
"div",
|
|
2998
3079
|
{
|
|
2999
3080
|
role: "alert",
|
|
3000
3081
|
"aria-live": "assertive",
|
|
3001
|
-
className: `${
|
|
3082
|
+
className: `${__default38.root}${className ? ` ${className}` : ""}`,
|
|
3002
3083
|
children: [
|
|
3003
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
3004
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3005
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${
|
|
3006
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
3084
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default38.icon} ${variantClass}`, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 20 }) }),
|
|
3085
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default38.content, children: [
|
|
3086
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${__default38.title} ${variantClass}`, children: title }),
|
|
3087
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default38.message, children: message })
|
|
3007
3088
|
] }),
|
|
3008
3089
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3009
3090
|
"button",
|
|
3010
3091
|
{
|
|
3011
3092
|
onClick: onClose,
|
|
3012
|
-
className:
|
|
3093
|
+
className: __default38.dismiss,
|
|
3013
3094
|
"aria-label": "Dismiss",
|
|
3014
3095
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconlyClose, { size: 16 })
|
|
3015
3096
|
}
|
|
@@ -3089,7 +3170,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
3089
3170
|
opacity: 0.5;
|
|
3090
3171
|
cursor: not-allowed;
|
|
3091
3172
|
}`);
|
|
3092
|
-
var
|
|
3173
|
+
var __default39 = { "root": "Pagination-module_root", "pageBtn": "Pagination-module_pageBtn", "activePage": "Pagination-module_activePage", "ellipsis": "Pagination-module_ellipsis", "nav": "Pagination-module_nav" };
|
|
3093
3174
|
function getPageRange(current, total, siblings) {
|
|
3094
3175
|
const range = /* @__PURE__ */ new Set();
|
|
3095
3176
|
range.add(1);
|
|
@@ -3118,24 +3199,24 @@ function Pagination({
|
|
|
3118
3199
|
const pages = getPageRange(currentPage, totalPages, siblingCount);
|
|
3119
3200
|
const isFirst = currentPage === 1;
|
|
3120
3201
|
const isLast = currentPage === totalPages;
|
|
3121
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("nav", { "aria-label": "Pagination", className: `${
|
|
3202
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("nav", { "aria-label": "Pagination", className: `${__default39.root} ${className}`, children: [
|
|
3122
3203
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3123
3204
|
"button",
|
|
3124
3205
|
{
|
|
3125
3206
|
onClick: () => onPageChange(currentPage - 1),
|
|
3126
3207
|
disabled: isFirst,
|
|
3127
3208
|
"aria-label": "Previous page",
|
|
3128
|
-
className:
|
|
3209
|
+
className: __default39.nav,
|
|
3129
3210
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconlyChevronLeft, { size: 18 })
|
|
3130
3211
|
}
|
|
3131
3212
|
),
|
|
3132
3213
|
pages.map(
|
|
3133
|
-
(page, i) => page === "\u2026" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3214
|
+
(page, i) => page === "\u2026" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default39.ellipsis, children: "\u2026" }, `ellipsis-${i}`) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3134
3215
|
"button",
|
|
3135
3216
|
{
|
|
3136
3217
|
onClick: () => onPageChange(page),
|
|
3137
3218
|
"aria-current": page === currentPage ? "page" : void 0,
|
|
3138
|
-
className: `${
|
|
3219
|
+
className: `${__default39.pageBtn} ${page === currentPage ? __default39.activePage : ""}`,
|
|
3139
3220
|
children: page
|
|
3140
3221
|
},
|
|
3141
3222
|
page
|
|
@@ -3147,7 +3228,7 @@ function Pagination({
|
|
|
3147
3228
|
onClick: () => onPageChange(currentPage + 1),
|
|
3148
3229
|
disabled: isLast,
|
|
3149
3230
|
"aria-label": "Next page",
|
|
3150
|
-
className:
|
|
3231
|
+
className: __default39.nav,
|
|
3151
3232
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconlyChevronRight, { size: 18 })
|
|
3152
3233
|
}
|
|
3153
3234
|
)
|
|
@@ -3203,7 +3284,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
3203
3284
|
letter-spacing: -0.25px;
|
|
3204
3285
|
color: var(--color-error);
|
|
3205
3286
|
}`);
|
|
3206
|
-
var
|
|
3287
|
+
var __default40 = { "root": "CodeInput-module_root", "label": "CodeInput-module_label", "group": "CodeInput-module_group", "digitInput": "CodeInput-module_digitInput", "digitError": "CodeInput-module_digitError", "errorText": "CodeInput-module_errorText" };
|
|
3207
3288
|
function CodeInput({
|
|
3208
3289
|
length,
|
|
3209
3290
|
value,
|
|
@@ -3256,9 +3337,9 @@ function CodeInput({
|
|
|
3256
3337
|
[length, onChange, focusInput]
|
|
3257
3338
|
);
|
|
3258
3339
|
const inputId = label == null ? void 0 : label.toLowerCase().replace(/\s+/g, "-");
|
|
3259
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
3260
|
-
label && /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: inputId, className:
|
|
3261
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3340
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default40.root} ${className}`, children: [
|
|
3341
|
+
label && /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: inputId, className: __default40.label, children: label }),
|
|
3342
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default40.group, role: "group", "aria-label": label || "Code input", children: Array.from({ length }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3262
3343
|
"input",
|
|
3263
3344
|
{
|
|
3264
3345
|
id: i === 0 ? inputId : void 0,
|
|
@@ -3273,12 +3354,12 @@ function CodeInput({
|
|
|
3273
3354
|
onKeyDown: handleKeyDown(i),
|
|
3274
3355
|
onPaste: handlePaste,
|
|
3275
3356
|
autoComplete: "one-time-code",
|
|
3276
|
-
className: `${
|
|
3357
|
+
className: `${__default40.digitInput} ${error ? __default40.digitError : ""}`,
|
|
3277
3358
|
"aria-label": `Digit ${i + 1}`
|
|
3278
3359
|
},
|
|
3279
3360
|
i
|
|
3280
3361
|
)) }),
|
|
3281
|
-
error && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
3362
|
+
error && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default40.errorText, children: error })
|
|
3282
3363
|
] });
|
|
3283
3364
|
}
|
|
3284
3365
|
|
|
@@ -3342,7 +3423,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
3342
3423
|
justify-content: flex-end;
|
|
3343
3424
|
margin-top: 1.5rem;
|
|
3344
3425
|
}`);
|
|
3345
|
-
var
|
|
3426
|
+
var __default41 = { "dialog": "Modal-module_dialog", "content": "Modal-module_content", "header": "Modal-module_header", "title": "Modal-module_title", "closeBtn": "Modal-module_closeBtn", "body": "Modal-module_body", "footer": "Modal-module_footer" };
|
|
3346
3427
|
function Modal({
|
|
3347
3428
|
open,
|
|
3348
3429
|
onClose,
|
|
@@ -3372,23 +3453,23 @@ function Modal({
|
|
|
3372
3453
|
ref: dialogRef,
|
|
3373
3454
|
onClose,
|
|
3374
3455
|
onClick: handleBackdropClick,
|
|
3375
|
-
className: `${
|
|
3376
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3377
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3378
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
3456
|
+
className: `${__default41.dialog}${className ? ` ${className}` : ""}`,
|
|
3457
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default41.content, children: [
|
|
3458
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default41.header, children: [
|
|
3459
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: __default41.title, children: title }),
|
|
3379
3460
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3380
3461
|
"button",
|
|
3381
3462
|
{
|
|
3382
3463
|
type: "button",
|
|
3383
3464
|
onClick: onClose,
|
|
3384
|
-
className:
|
|
3465
|
+
className: __default41.closeBtn,
|
|
3385
3466
|
"aria-label": "Close",
|
|
3386
3467
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconlyClose, { size: 20 })
|
|
3387
3468
|
}
|
|
3388
3469
|
)
|
|
3389
3470
|
] }),
|
|
3390
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3391
|
-
footer && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3471
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default41.body, children }),
|
|
3472
|
+
footer && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default41.footer, children: footer })
|
|
3392
3473
|
] })
|
|
3393
3474
|
}
|
|
3394
3475
|
);
|
|
@@ -3479,7 +3560,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
3479
3560
|
border: none;
|
|
3480
3561
|
border-top: 1px solid var(--border-color);
|
|
3481
3562
|
}`);
|
|
3482
|
-
var
|
|
3563
|
+
var __default42 = { "root": "DropdownMenu-module_root", "trigger": "DropdownMenu-module_trigger", "menu": "DropdownMenu-module_menu", "alignLeft": "DropdownMenu-module_alignLeft", "alignRight": "DropdownMenu-module_alignRight", "item": "DropdownMenu-module_item", "itemIcon": "DropdownMenu-module_itemIcon", "divider": "DropdownMenu-module_divider" };
|
|
3483
3564
|
function DropdownMenu({
|
|
3484
3565
|
trigger,
|
|
3485
3566
|
items,
|
|
@@ -3547,7 +3628,7 @@ function DropdownMenu({
|
|
|
3547
3628
|
openMenu();
|
|
3548
3629
|
}
|
|
3549
3630
|
};
|
|
3550
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: `${
|
|
3631
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: `${__default42.root} ${className}`, children: [
|
|
3551
3632
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3552
3633
|
"div",
|
|
3553
3634
|
{
|
|
@@ -3556,7 +3637,7 @@ function DropdownMenu({
|
|
|
3556
3637
|
tabIndex: 0,
|
|
3557
3638
|
onClick: () => isOpen ? closeMenu() : openMenu(),
|
|
3558
3639
|
onKeyDown: handleTriggerKeyDown,
|
|
3559
|
-
className:
|
|
3640
|
+
className: __default42.trigger,
|
|
3560
3641
|
"aria-haspopup": "true",
|
|
3561
3642
|
"aria-expanded": isOpen,
|
|
3562
3643
|
children: trigger
|
|
@@ -3567,9 +3648,9 @@ function DropdownMenu({
|
|
|
3567
3648
|
{
|
|
3568
3649
|
role: "menu",
|
|
3569
3650
|
onKeyDown: handleMenuKeyDown,
|
|
3570
|
-
className: `${
|
|
3651
|
+
className: `${__default42.menu} ${align === "right" ? __default42.alignRight : __default42.alignLeft}`,
|
|
3571
3652
|
children: items.map((item, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
3572
|
-
item.divider && /* @__PURE__ */ jsxRuntime.jsx("hr", { className:
|
|
3653
|
+
item.divider && /* @__PURE__ */ jsxRuntime.jsx("hr", { className: __default42.divider }),
|
|
3573
3654
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3574
3655
|
"button",
|
|
3575
3656
|
{
|
|
@@ -3583,9 +3664,9 @@ function DropdownMenu({
|
|
|
3583
3664
|
item.onClick();
|
|
3584
3665
|
closeMenu();
|
|
3585
3666
|
},
|
|
3586
|
-
className:
|
|
3667
|
+
className: __default42.item,
|
|
3587
3668
|
children: [
|
|
3588
|
-
item.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3669
|
+
item.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default42.itemIcon, children: item.icon }),
|
|
3589
3670
|
item.label
|
|
3590
3671
|
]
|
|
3591
3672
|
}
|
|
@@ -3596,6 +3677,105 @@ function DropdownMenu({
|
|
|
3596
3677
|
] });
|
|
3597
3678
|
}
|
|
3598
3679
|
|
|
3680
|
+
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/molecules/SegmentedControl.module.scss
|
|
3681
|
+
__styleInject(`@charset "UTF-8";
|
|
3682
|
+
/* SegmentedControl \u2014 pill-\u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0441 N \u0441\u0435\u0433\u043C\u0435\u043D\u0442\u0430\u043C\u0438, \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D. */
|
|
3683
|
+
.SegmentedControl-module_root {
|
|
3684
|
+
display: inline-flex;
|
|
3685
|
+
align-items: stretch;
|
|
3686
|
+
border: 1px solid var(--border-color);
|
|
3687
|
+
border-radius: var(--radius-full);
|
|
3688
|
+
padding: 2px;
|
|
3689
|
+
background: var(--bg);
|
|
3690
|
+
line-height: 1;
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
/* \u2014 \u0420\u0430\u0437\u043C\u0435\u0440\u044B (parity \u0441 Button/Toggle) \u2014 */
|
|
3694
|
+
.SegmentedControl-module_sm {
|
|
3695
|
+
height: 28px;
|
|
3696
|
+
}
|
|
3697
|
+
.SegmentedControl-module_sm .SegmentedControl-module_segment {
|
|
3698
|
+
padding: 0 0.625rem;
|
|
3699
|
+
font-size: 11px;
|
|
3700
|
+
font-weight: 600;
|
|
3701
|
+
letter-spacing: 0.04em;
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3704
|
+
.SegmentedControl-module_md {
|
|
3705
|
+
height: 32px;
|
|
3706
|
+
}
|
|
3707
|
+
.SegmentedControl-module_md .SegmentedControl-module_segment {
|
|
3708
|
+
padding: 0 0.875rem;
|
|
3709
|
+
font-size: 13px;
|
|
3710
|
+
font-weight: 600;
|
|
3711
|
+
letter-spacing: -0.25px;
|
|
3712
|
+
}
|
|
3713
|
+
|
|
3714
|
+
/* \u2014 Segment (button) \u2014 */
|
|
3715
|
+
.SegmentedControl-module_segment {
|
|
3716
|
+
appearance: none;
|
|
3717
|
+
border: none;
|
|
3718
|
+
background: transparent;
|
|
3719
|
+
color: var(--fg-muted);
|
|
3720
|
+
border-radius: var(--radius-full);
|
|
3721
|
+
cursor: pointer;
|
|
3722
|
+
transition: color var(--transition-fast), background var(--transition-fast);
|
|
3723
|
+
}
|
|
3724
|
+
.SegmentedControl-module_segment:hover:not(.SegmentedControl-module_segmentActive):not(:disabled) {
|
|
3725
|
+
color: var(--fg);
|
|
3726
|
+
}
|
|
3727
|
+
.SegmentedControl-module_segment:focus-visible {
|
|
3728
|
+
outline: 2px solid var(--brand-primary);
|
|
3729
|
+
outline-offset: 2px;
|
|
3730
|
+
}
|
|
3731
|
+
.SegmentedControl-module_segment:disabled {
|
|
3732
|
+
cursor: not-allowed;
|
|
3733
|
+
opacity: 0.5;
|
|
3734
|
+
}
|
|
3735
|
+
|
|
3736
|
+
.SegmentedControl-module_segmentActive {
|
|
3737
|
+
background: var(--fg);
|
|
3738
|
+
color: var(--bg);
|
|
3739
|
+
cursor: default;
|
|
3740
|
+
}`);
|
|
3741
|
+
var __default43 = { "root": "SegmentedControl-module_root", "sm": "SegmentedControl-module_sm", "segment": "SegmentedControl-module_segment", "md": "SegmentedControl-module_md", "segmentActive": "SegmentedControl-module_segmentActive" };
|
|
3742
|
+
function SegmentedControl({
|
|
3743
|
+
options,
|
|
3744
|
+
value,
|
|
3745
|
+
onChange,
|
|
3746
|
+
size = "md",
|
|
3747
|
+
ariaLabel,
|
|
3748
|
+
className = ""
|
|
3749
|
+
}) {
|
|
3750
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3751
|
+
"div",
|
|
3752
|
+
{
|
|
3753
|
+
role: "group",
|
|
3754
|
+
"aria-label": ariaLabel,
|
|
3755
|
+
className: `${__default43.root} ${__default43[size]}${className ? ` ${className}` : ""}`,
|
|
3756
|
+
children: options.map((option) => {
|
|
3757
|
+
const isActive = option.value === value;
|
|
3758
|
+
const isDisabled = option.disabled || false;
|
|
3759
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3760
|
+
"button",
|
|
3761
|
+
{
|
|
3762
|
+
type: "button",
|
|
3763
|
+
"aria-pressed": isActive,
|
|
3764
|
+
disabled: isDisabled,
|
|
3765
|
+
className: `${__default43.segment}${isActive ? ` ${__default43.segmentActive}` : ""}`,
|
|
3766
|
+
onClick: () => {
|
|
3767
|
+
if (isActive || isDisabled) return;
|
|
3768
|
+
onChange(option.value);
|
|
3769
|
+
},
|
|
3770
|
+
children: option.label
|
|
3771
|
+
},
|
|
3772
|
+
option.value
|
|
3773
|
+
);
|
|
3774
|
+
})
|
|
3775
|
+
}
|
|
3776
|
+
);
|
|
3777
|
+
}
|
|
3778
|
+
|
|
3599
3779
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/organisms/Header.module.scss
|
|
3600
3780
|
__styleInject(`@charset "UTF-8";
|
|
3601
3781
|
/* Header \u2014 pill-style (border + radius + margin) by default */
|
|
@@ -3708,25 +3888,25 @@ __styleInject(`@charset "UTF-8";
|
|
|
3708
3888
|
padding-top: 1rem;
|
|
3709
3889
|
border-top: 1px solid var(--border-color);
|
|
3710
3890
|
}`);
|
|
3711
|
-
var
|
|
3891
|
+
var __default44 = { "root": "Header-module_root", "container": "Header-module_container", "bar": "Header-module_bar", "leftGroup": "Header-module_leftGroup", "desktopNav": "Header-module_desktopNav", "navLink": "Header-module_navLink", "desktopActions": "Header-module_desktopActions", "mobileToggle": "Header-module_mobileToggle", "mobileMenu": "Header-module_mobileMenu", "mobileNav": "Header-module_mobileNav", "mobileActions": "Header-module_mobileActions" };
|
|
3712
3892
|
function Header({ logo, navItems = [], actions, className = "" }) {
|
|
3713
3893
|
const [mobileOpen, setMobileOpen] = react.useState(false);
|
|
3714
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("header", { className: `${
|
|
3715
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3716
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3894
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("header", { className: `${__default44.root}${className ? ` ${className}` : ""}`, children: [
|
|
3895
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default44.container, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default44.bar, children: [
|
|
3896
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default44.leftGroup, children: [
|
|
3717
3897
|
logo,
|
|
3718
|
-
/* @__PURE__ */ jsxRuntime.jsx("nav", { className:
|
|
3898
|
+
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: __default44.desktopNav, children: navItems.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3719
3899
|
"a",
|
|
3720
3900
|
{
|
|
3721
3901
|
href: item.href,
|
|
3722
|
-
className:
|
|
3902
|
+
className: __default44.navLink,
|
|
3723
3903
|
children: item.label
|
|
3724
3904
|
},
|
|
3725
3905
|
item.label
|
|
3726
3906
|
)) })
|
|
3727
3907
|
] }),
|
|
3728
|
-
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3729
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3908
|
+
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default44.desktopActions, children: actions }),
|
|
3909
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default44.mobileToggle, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3730
3910
|
IconButton,
|
|
3731
3911
|
{
|
|
3732
3912
|
variant: "primary",
|
|
@@ -3736,17 +3916,17 @@ function Header({ logo, navItems = [], actions, className = "" }) {
|
|
|
3736
3916
|
}
|
|
3737
3917
|
) })
|
|
3738
3918
|
] }) }),
|
|
3739
|
-
mobileOpen && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3740
|
-
/* @__PURE__ */ jsxRuntime.jsx("nav", { className:
|
|
3919
|
+
mobileOpen && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default44.mobileMenu, children: [
|
|
3920
|
+
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: __default44.mobileNav, children: navItems.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3741
3921
|
"a",
|
|
3742
3922
|
{
|
|
3743
3923
|
href: item.href,
|
|
3744
|
-
className:
|
|
3924
|
+
className: __default44.navLink,
|
|
3745
3925
|
children: item.label
|
|
3746
3926
|
},
|
|
3747
3927
|
item.label
|
|
3748
3928
|
)) }),
|
|
3749
|
-
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3929
|
+
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default44.mobileActions, children: actions })
|
|
3750
3930
|
] })
|
|
3751
3931
|
] });
|
|
3752
3932
|
}
|
|
@@ -3880,7 +4060,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
3880
4060
|
.Footer-module_socialLink:hover {
|
|
3881
4061
|
color: var(--fg);
|
|
3882
4062
|
}`);
|
|
3883
|
-
var
|
|
4063
|
+
var __default45 = { "root": "Footer-module_root", "container": "Footer-module_container", "grid": "Footer-module_grid", "brandCell": "Footer-module_brandCell", "tagline": "Footer-module_tagline", "columnTitle": "Footer-module_columnTitle", "linkList": "Footer-module_linkList", "link": "Footer-module_link", "bottom": "Footer-module_bottom", "copyright": "Footer-module_copyright", "socials": "Footer-module_socials", "socialLink": "Footer-module_socialLink" };
|
|
3884
4064
|
function Footer({
|
|
3885
4065
|
brand,
|
|
3886
4066
|
columns,
|
|
@@ -3891,24 +4071,24 @@ function Footer({
|
|
|
3891
4071
|
const hasBrand = !!(brand && (brand.logo || brand.tagline));
|
|
3892
4072
|
const hasGrid = hasBrand || columns && columns.length > 0;
|
|
3893
4073
|
const hasBottom = !!copyright || socials && socials.length > 0;
|
|
3894
|
-
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className: `${
|
|
3895
|
-
hasGrid && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3896
|
-
hasBrand && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4074
|
+
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className: `${__default45.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default45.container, children: [
|
|
4075
|
+
hasGrid && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default45.grid, children: [
|
|
4076
|
+
hasBrand && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default45.brandCell, children: [
|
|
3897
4077
|
brand == null ? void 0 : brand.logo,
|
|
3898
|
-
(brand == null ? void 0 : brand.tagline) && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
4078
|
+
(brand == null ? void 0 : brand.tagline) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default45.tagline, children: brand.tagline })
|
|
3899
4079
|
] }),
|
|
3900
4080
|
columns == null ? void 0 : columns.map((col, ci) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
3901
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className:
|
|
3902
|
-
/* @__PURE__ */ jsxRuntime.jsx("ul", { className:
|
|
4081
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: __default45.columnTitle, children: col.title }),
|
|
4082
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: __default45.linkList, children: col.links.map((link, li) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: link.href, className: __default45.link, children: link.label }) }, `${ci}-${li}-${link.label}`)) })
|
|
3903
4083
|
] }, `${ci}-${col.title}`))
|
|
3904
4084
|
] }),
|
|
3905
|
-
hasBottom && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3906
|
-
copyright && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
3907
|
-
socials && socials.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4085
|
+
hasBottom && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default45.bottom, children: [
|
|
4086
|
+
copyright && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default45.copyright, children: copyright }),
|
|
4087
|
+
socials && socials.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default45.socials, children: socials.map((social, si) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3908
4088
|
"a",
|
|
3909
4089
|
{
|
|
3910
4090
|
href: social.href,
|
|
3911
|
-
className:
|
|
4091
|
+
className: __default45.socialLink,
|
|
3912
4092
|
children: social.label
|
|
3913
4093
|
},
|
|
3914
4094
|
`${si}-${social.label}`
|
|
@@ -4004,7 +4184,7 @@ __styleInject(`.PricingCard-module_root {
|
|
|
4004
4184
|
.PricingCard-module_cta {
|
|
4005
4185
|
width: 100%;
|
|
4006
4186
|
}`);
|
|
4007
|
-
var
|
|
4187
|
+
var __default46 = { "root": "PricingCard-module_root", "highlighted": "PricingCard-module_highlighted", "badgeWrap": "PricingCard-module_badgeWrap", "header": "PricingCard-module_header", "plan": "PricingCard-module_plan", "description": "PricingCard-module_description", "priceBlock": "PricingCard-module_priceBlock", "price": "PricingCard-module_price", "period": "PricingCard-module_period", "features": "PricingCard-module_features", "featureItem": "PricingCard-module_featureItem", "featureItemExcluded": "PricingCard-module_featureItemExcluded", "featureIcon": "PricingCard-module_featureIcon", "featureIconExcluded": "PricingCard-module_featureIconExcluded", "cta": "PricingCard-module_cta" };
|
|
4008
4188
|
function PricingCard({
|
|
4009
4189
|
plan,
|
|
4010
4190
|
price,
|
|
@@ -4019,26 +4199,26 @@ function PricingCard({
|
|
|
4019
4199
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4020
4200
|
"div",
|
|
4021
4201
|
{
|
|
4022
|
-
className: `${
|
|
4202
|
+
className: `${__default46.root}${highlighted ? ` ${__default46.highlighted}` : ""}${className ? ` ${className}` : ""}`,
|
|
4023
4203
|
children: [
|
|
4024
|
-
badge && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4025
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4026
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
4027
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
4204
|
+
badge && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default46.badgeWrap, children: /* @__PURE__ */ jsxRuntime.jsx(Badge, { color: "info", children: badge }) }),
|
|
4205
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default46.header, children: [
|
|
4206
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: __default46.plan, children: plan }),
|
|
4207
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default46.description, children: description })
|
|
4028
4208
|
] }),
|
|
4029
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4030
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
4031
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
4209
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default46.priceBlock, children: [
|
|
4210
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default46.price, children: price }),
|
|
4211
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default46.period, children: period })
|
|
4032
4212
|
] }),
|
|
4033
|
-
/* @__PURE__ */ jsxRuntime.jsx("ul", { className:
|
|
4213
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: __default46.features, children: features.map((feature, i) => {
|
|
4034
4214
|
const text = typeof feature === "string" ? feature : feature.text;
|
|
4035
4215
|
const isExcluded = typeof feature === "object" && feature.included === false;
|
|
4036
4216
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4037
4217
|
"li",
|
|
4038
4218
|
{
|
|
4039
|
-
className: `${
|
|
4219
|
+
className: `${__default46.featureItem}${isExcluded ? ` ${__default46.featureItemExcluded}` : ""}`,
|
|
4040
4220
|
children: [
|
|
4041
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: `${
|
|
4221
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: `${__default46.featureIcon}${isExcluded ? ` ${__default46.featureIconExcluded}` : ""}`, children: isExcluded ? /* @__PURE__ */ jsxRuntime.jsx(IconlyClose, { size: 16 }) : /* @__PURE__ */ jsxRuntime.jsx(IconlyCheck, { size: 16 }) }),
|
|
4042
4222
|
text
|
|
4043
4223
|
]
|
|
4044
4224
|
},
|
|
@@ -4049,7 +4229,7 @@ function PricingCard({
|
|
|
4049
4229
|
Button,
|
|
4050
4230
|
{
|
|
4051
4231
|
variant: highlighted ? "primary" : "outline",
|
|
4052
|
-
className:
|
|
4232
|
+
className: __default46.cta,
|
|
4053
4233
|
onClick: cta.onClick,
|
|
4054
4234
|
children: cta.label
|
|
4055
4235
|
}
|
|
@@ -4097,21 +4277,21 @@ __styleInject(`.TestimonialCard-module_root {
|
|
|
4097
4277
|
font-size: 0.75rem;
|
|
4098
4278
|
color: var(--fg-muted);
|
|
4099
4279
|
}`);
|
|
4100
|
-
var
|
|
4280
|
+
var __default47 = { "root": "TestimonialCard-module_root", "quoteIcon": "TestimonialCard-module_quoteIcon", "quoteText": "TestimonialCard-module_quoteText", "author": "TestimonialCard-module_author", "authorName": "TestimonialCard-module_authorName", "authorRole": "TestimonialCard-module_authorRole" };
|
|
4101
4281
|
function TestimonialCard({ quote, name, role, avatarSrc, className = "" }) {
|
|
4102
4282
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase();
|
|
4103
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
4104
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4105
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className:
|
|
4283
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default47.root}${className ? ` ${className}` : ""}`, children: [
|
|
4284
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default47.quoteIcon, children: /* @__PURE__ */ jsxRuntime.jsx(IconlyQuote, { size: 32 }) }),
|
|
4285
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: __default47.quoteText, children: [
|
|
4106
4286
|
"\u201C",
|
|
4107
4287
|
quote,
|
|
4108
4288
|
"\u201D"
|
|
4109
4289
|
] }),
|
|
4110
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4290
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default47.author, children: [
|
|
4111
4291
|
/* @__PURE__ */ jsxRuntime.jsx(Avatar, { src: avatarSrc, initials, size: "sm" }),
|
|
4112
4292
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
4113
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
4114
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
4293
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default47.authorName, children: name }),
|
|
4294
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default47.authorRole, children: role })
|
|
4115
4295
|
] })
|
|
4116
4296
|
] })
|
|
4117
4297
|
] });
|
|
@@ -4183,17 +4363,17 @@ __styleInject(`.FeatureGrid-module_root {
|
|
|
4183
4363
|
color: var(--fg-muted);
|
|
4184
4364
|
line-height: 1.625;
|
|
4185
4365
|
}`);
|
|
4186
|
-
var
|
|
4366
|
+
var __default48 = { "root": "FeatureGrid-module_root", "cols2": "FeatureGrid-module_cols2", "cols3": "FeatureGrid-module_cols3", "cols4": "FeatureGrid-module_cols4", "card": "FeatureGrid-module_card", "cardIcon": "FeatureGrid-module_cardIcon", "cardTitle": "FeatureGrid-module_cardTitle", "cardDescription": "FeatureGrid-module_cardDescription" };
|
|
4187
4367
|
function FeatureGrid({ features, columns = 3, className = "" }) {
|
|
4188
4368
|
const colsClass = {
|
|
4189
|
-
2:
|
|
4190
|
-
3:
|
|
4191
|
-
4:
|
|
4369
|
+
2: __default48.cols2,
|
|
4370
|
+
3: __default48.cols3,
|
|
4371
|
+
4: __default48.cols4
|
|
4192
4372
|
};
|
|
4193
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
4194
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4195
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
4196
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
4373
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default48.root} ${colsClass[columns]}${className ? ` ${className}` : ""}`, children: features.map((feature, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default48.card, children: [
|
|
4374
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default48.cardIcon, children: feature.icon }),
|
|
4375
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: __default48.cardTitle, children: feature.title }),
|
|
4376
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default48.cardDescription, children: feature.description })
|
|
4197
4377
|
] }, i)) });
|
|
4198
4378
|
}
|
|
4199
4379
|
|
|
@@ -4294,7 +4474,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
4294
4474
|
display: block;
|
|
4295
4475
|
}
|
|
4296
4476
|
}`);
|
|
4297
|
-
var
|
|
4477
|
+
var __default49 = { "root": "Sidebar-module_root", "menu": "Sidebar-module_menu", "courseSubmenu": "Sidebar-module_courseSubmenu", "logo": "Sidebar-module_logo", "compact": "Sidebar-module_compact", "footer": "Sidebar-module_footer", "nav": "Sidebar-module_nav", "legal": "Sidebar-module_legal", "overlay": "Sidebar-module_overlay", "collapsed": "Sidebar-module_collapsed", "open": "Sidebar-module_open", "overlayVisible": "Sidebar-module_overlayVisible" };
|
|
4298
4478
|
var defaultMenuItems = [
|
|
4299
4479
|
"\u0413\u043B\u0430\u0432\u043D\u0430\u044F",
|
|
4300
4480
|
"\u041C\u043E\u0438 \u043A\u0443\u0440\u0441\u044B",
|
|
@@ -4338,19 +4518,19 @@ function Sidebar({
|
|
|
4338
4518
|
const items = normaliseItems(rawItems);
|
|
4339
4519
|
const [internalActive, setInternalActive] = react.useState(0);
|
|
4340
4520
|
const isControlled = activeId !== void 0;
|
|
4341
|
-
const widthClass = type === "courseSubmenu" ?
|
|
4521
|
+
const widthClass = type === "courseSubmenu" ? __default49.courseSubmenu : __default49.menu;
|
|
4342
4522
|
const showLegal = legalText !== null;
|
|
4343
4523
|
const legalContent = legalText === void 0 ? DEFAULT_LEGAL : legalText;
|
|
4344
4524
|
const isOpen = collapsed === false;
|
|
4345
4525
|
const collapseClasses = [
|
|
4346
|
-
collapsed ?
|
|
4347
|
-
isOpen ?
|
|
4526
|
+
collapsed ? __default49.collapsed : "",
|
|
4527
|
+
isOpen ? __default49.open : ""
|
|
4348
4528
|
].filter(Boolean).join(" ");
|
|
4349
4529
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4350
4530
|
onToggle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4351
4531
|
"div",
|
|
4352
4532
|
{
|
|
4353
|
-
className: `${
|
|
4533
|
+
className: `${__default49.overlay}${isOpen ? ` ${__default49.overlayVisible}` : ""}`,
|
|
4354
4534
|
onClick: onToggle,
|
|
4355
4535
|
"aria-hidden": "true"
|
|
4356
4536
|
}
|
|
@@ -4358,10 +4538,10 @@ function Sidebar({
|
|
|
4358
4538
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4359
4539
|
"aside",
|
|
4360
4540
|
{
|
|
4361
|
-
className: `${
|
|
4541
|
+
className: `${__default49.root} ${widthClass}${layout === "compact" ? ` ${__default49.compact}` : ""}${collapseClasses ? ` ${collapseClasses}` : ""}${className ? ` ${className}` : ""}`,
|
|
4362
4542
|
children: [
|
|
4363
|
-
logo && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4364
|
-
/* @__PURE__ */ jsxRuntime.jsx("nav", { className:
|
|
4543
|
+
logo && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default49.logo, children: logo }),
|
|
4544
|
+
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: __default49.nav, children: items.map((item, i) => {
|
|
4365
4545
|
const isActive = isControlled ? item.id === activeId : i === internalActive;
|
|
4366
4546
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4367
4547
|
MenuItem,
|
|
@@ -4377,9 +4557,9 @@ function Sidebar({
|
|
|
4377
4557
|
item.id
|
|
4378
4558
|
);
|
|
4379
4559
|
}) }),
|
|
4380
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4560
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default49.footer, children: [
|
|
4381
4561
|
type === "menu" && footer,
|
|
4382
|
-
showLegal && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
4562
|
+
showLegal && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default49.legal, children: legalContent })
|
|
4383
4563
|
] })
|
|
4384
4564
|
]
|
|
4385
4565
|
}
|
|
@@ -4489,7 +4669,7 @@ __styleInject(`.AppCard-module_defaultCard {
|
|
|
4489
4669
|
.AppCard-module_stampBg {
|
|
4490
4670
|
background: var(--bg);
|
|
4491
4671
|
}`);
|
|
4492
|
-
var
|
|
4672
|
+
var __default50 = { "defaultCard": "AppCard-module_defaultCard", "stampCard": "AppCard-module_stampCard", "imageWrap": "AppCard-module_imageWrap", "imageWrapRounded": "AppCard-module_imageWrapRounded AppCard-module_imageWrap", "image": "AppCard-module_image", "contentDefaultNoImage": "AppCard-module_contentDefaultNoImage AppCard-module_contentDefault AppCard-module_contentArea", "contentDefaultWithImage": "AppCard-module_contentDefaultWithImage AppCard-module_contentDefault AppCard-module_contentArea", "contentStamp": "AppCard-module_contentStamp AppCard-module_contentArea", "textGroup": "AppCard-module_textGroup", "cardTitle": "AppCard-module_cardTitle", "cardDesc": "AppCard-module_cardDesc", "footer": "AppCard-module_footer", "iconRow": "AppCard-module_iconRow", "shadowWrap": "AppCard-module_shadowWrap", "stampBg": "AppCard-module_stampBg" };
|
|
4493
4673
|
var HOLE_R = 4;
|
|
4494
4674
|
var HOLE_SP = 16;
|
|
4495
4675
|
function buildStampMask(w, h) {
|
|
@@ -4516,18 +4696,18 @@ function CardContent({
|
|
|
4516
4696
|
isStamp
|
|
4517
4697
|
}) {
|
|
4518
4698
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4519
|
-
image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: isStamp ?
|
|
4699
|
+
image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: isStamp ? __default50.imageWrap : __default50.imageWrapRounded, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: image, alt: title, className: __default50.image }) }),
|
|
4520
4700
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4521
4701
|
"div",
|
|
4522
4702
|
{
|
|
4523
|
-
className: isStamp ?
|
|
4703
|
+
className: isStamp ? __default50.contentStamp : image ? __default50.contentDefaultWithImage : __default50.contentDefaultNoImage,
|
|
4524
4704
|
children: [
|
|
4525
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4526
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
4527
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
4705
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default50.textGroup, children: [
|
|
4706
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: __default50.cardTitle, children: title }),
|
|
4707
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default50.cardDesc, children: description })
|
|
4528
4708
|
] }),
|
|
4529
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4530
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4709
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default50.footer, children: [
|
|
4710
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default50.iconRow, children: icons }),
|
|
4531
4711
|
/* @__PURE__ */ jsxRuntime.jsx(Button, { variant: buttonVariant === "outline" ? "outline" : "primary", size: "md", onClick: onButtonClick, children: buttonText })
|
|
4532
4712
|
] })
|
|
4533
4713
|
]
|
|
@@ -4544,7 +4724,7 @@ function AppCard(_a) {
|
|
|
4544
4724
|
"className"
|
|
4545
4725
|
]);
|
|
4546
4726
|
if (variant === "default") {
|
|
4547
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
4727
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default50.defaultCard}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx(CardContent, __spreadProps(__spreadValues({}, contentProps), { isStamp: false })) });
|
|
4548
4728
|
}
|
|
4549
4729
|
const padded = variant === "stamp-padded";
|
|
4550
4730
|
return /* @__PURE__ */ jsxRuntime.jsx(StampWrapper, { className, padded, children: /* @__PURE__ */ jsxRuntime.jsx(CardContent, __spreadProps(__spreadValues({}, contentProps), { isStamp: true })) });
|
|
@@ -4570,7 +4750,7 @@ function StampWrapper({ children, className, padded }) {
|
|
|
4570
4750
|
ro.disconnect();
|
|
4571
4751
|
};
|
|
4572
4752
|
}, [build]);
|
|
4573
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: `${
|
|
4753
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: `${__default50.stampCard}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default50.shadowWrap, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4574
4754
|
"div",
|
|
4575
4755
|
{
|
|
4576
4756
|
style: {
|
|
@@ -4579,7 +4759,7 @@ function StampWrapper({ children, className, padded }) {
|
|
|
4579
4759
|
WebkitMaskSize: "100% 100%",
|
|
4580
4760
|
maskSize: "100% 100%"
|
|
4581
4761
|
},
|
|
4582
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4762
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default50.stampBg, style: padded ? { padding: STAMP_PADDING } : void 0, children })
|
|
4583
4763
|
}
|
|
4584
4764
|
) }) });
|
|
4585
4765
|
}
|
|
@@ -4592,7 +4772,7 @@ __styleInject(`.AppTopLine-module_root {
|
|
|
4592
4772
|
justify-content: space-between;
|
|
4593
4773
|
width: 100%;
|
|
4594
4774
|
}`);
|
|
4595
|
-
var
|
|
4775
|
+
var __default51 = { "root": "AppTopLine-module_root" };
|
|
4596
4776
|
function AppTopLine({
|
|
4597
4777
|
promoText = "\u0412\u0430\u043C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u043A\u0438\u0434\u043A\u0430 10% \u043D\u0430 \u0432\u0441\u0435 \u043F\u043B\u0430\u0442\u043D\u044B\u0435 \u043A\u0443\u0440\u0441\u044B",
|
|
4598
4778
|
promoButtonText = "\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",
|
|
@@ -4605,7 +4785,7 @@ function AppTopLine({
|
|
|
4605
4785
|
avatarSrc,
|
|
4606
4786
|
className = ""
|
|
4607
4787
|
}) {
|
|
4608
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
4788
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default51.root}${className ? ` ${className}` : ""}`, children: [
|
|
4609
4789
|
/* @__PURE__ */ jsxRuntime.jsx(TopPromo, { text: promoText, buttonText: promoButtonText }),
|
|
4610
4790
|
/* @__PURE__ */ jsxRuntime.jsx(ProfileNav, { stats, avatarSrc })
|
|
4611
4791
|
] });
|
|
@@ -4646,13 +4826,13 @@ __styleInject(`.EmptyState-module_root {
|
|
|
4646
4826
|
.EmptyState-module_action {
|
|
4647
4827
|
margin-top: 1.25rem;
|
|
4648
4828
|
}`);
|
|
4649
|
-
var
|
|
4829
|
+
var __default52 = { "root": "EmptyState-module_root", "icon": "EmptyState-module_icon", "title": "EmptyState-module_title", "description": "EmptyState-module_description", "action": "EmptyState-module_action" };
|
|
4650
4830
|
function EmptyState({ icon, title, description, action, className = "" }) {
|
|
4651
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
4652
|
-
icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4653
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
4654
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
4655
|
-
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4831
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default52.root}${className ? ` ${className}` : ""}`, children: [
|
|
4832
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default52.icon, children: icon }),
|
|
4833
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: __default52.title, children: title }),
|
|
4834
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default52.description, children: description }),
|
|
4835
|
+
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default52.action, children: action })
|
|
4656
4836
|
] });
|
|
4657
4837
|
}
|
|
4658
4838
|
|
|
@@ -4700,6 +4880,18 @@ __styleInject(`@charset "UTF-8";
|
|
|
4700
4880
|
}
|
|
4701
4881
|
}
|
|
4702
4882
|
|
|
4883
|
+
/* Opt-in \u0434\u043B\u044F consumer'\u043E\u0432, \u0443 \u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C \u0443\u0436\u0435 \u0437\u0430\u0434\u0430\u0451\u0442 vertical rhythm.
|
|
4884
|
+
\u041E\u0431\u044A\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \`.inner\` / \`.innerCompact\` \u2014 \u043F\u0440\u0438 applied \u043A\u0430\u043A \u0432\u0442\u043E\u0440\u043E\u0439
|
|
4885
|
+
\u043A\u043B\u0430\u0441\u0441 \u043F\u0435\u0440\u0435\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0438\u0445 \`padding-block\` \u0437\u0430 \u0441\u0447\u0451\u0442 source-order specificity. */
|
|
4886
|
+
.HeroSection-module_innerNoVertical {
|
|
4887
|
+
padding-block: 0;
|
|
4888
|
+
}
|
|
4889
|
+
@media (min-width: 768px) {
|
|
4890
|
+
.HeroSection-module_innerNoVertical {
|
|
4891
|
+
padding-block: 0;
|
|
4892
|
+
}
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4703
4895
|
.HeroSection-module_content {
|
|
4704
4896
|
max-width: 56rem;
|
|
4705
4897
|
}
|
|
@@ -4844,7 +5036,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
4844
5036
|
overflow: hidden;
|
|
4845
5037
|
background: var(--bg-secondary);
|
|
4846
5038
|
}`);
|
|
4847
|
-
var
|
|
5039
|
+
var __default53 = { "root": "HeroSection-module_root", "bgGlow": "HeroSection-module_bgGlow", "glowOrb": "HeroSection-module_glowOrb", "inner": "HeroSection-module_inner", "innerCompact": "HeroSection-module_innerCompact", "innerNoVertical": "HeroSection-module_innerNoVertical", "content": "HeroSection-module_content", "contentCenter": "HeroSection-module_contentCenter HeroSection-module_content", "eyebrowWrap": "HeroSection-module_eyebrowWrap", "eyebrowCenter": "HeroSection-module_eyebrowCenter", "eyebrow": "HeroSection-module_eyebrow", "eyebrowDot": "HeroSection-module_eyebrowDot", "title": "HeroSection-module_title", "subtitle": "HeroSection-module_subtitle", "subtitleCenter": "HeroSection-module_subtitleCenter", "actions": "HeroSection-module_actions", "actionsCenter": "HeroSection-module_actionsCenter", "mediaWrapCenter": "HeroSection-module_mediaWrapCenter HeroSection-module_mediaWrap", "mediaWrapLeft": "HeroSection-module_mediaWrapLeft HeroSection-module_mediaWrap", "splitGrid": "HeroSection-module_splitGrid", "mediaSplit": "HeroSection-module_mediaSplit", "mediaBox": "HeroSection-module_mediaBox" };
|
|
4848
5040
|
function HeroSection({
|
|
4849
5041
|
eyebrow,
|
|
4850
5042
|
title,
|
|
@@ -4854,36 +5046,43 @@ function HeroSection({
|
|
|
4854
5046
|
align = "center",
|
|
4855
5047
|
size = "default",
|
|
4856
5048
|
mediaPosition = "left",
|
|
5049
|
+
verticalPadding = "default",
|
|
4857
5050
|
className = ""
|
|
4858
5051
|
}) {
|
|
4859
5052
|
const isCenter = align === "center";
|
|
4860
5053
|
const isCompact = size === "compact";
|
|
4861
5054
|
const isSplitRight = !isCenter && mediaPosition === "right" && !!media;
|
|
4862
|
-
const contentBlock = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: isCenter ?
|
|
4863
|
-
eyebrow && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
4864
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5055
|
+
const contentBlock = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: isCenter ? __default53.contentCenter : __default53.content, children: [
|
|
5056
|
+
eyebrow && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default53.eyebrowWrap}${isCenter ? ` ${__default53.eyebrowCenter}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: __default53.eyebrow, children: [
|
|
5057
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default53.eyebrowDot }),
|
|
4865
5058
|
eyebrow
|
|
4866
5059
|
] }) }),
|
|
4867
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
4868
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${
|
|
4869
|
-
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
5060
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: __default53.title, children: title }),
|
|
5061
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${__default53.subtitle}${isCenter ? ` ${__default53.subtitleCenter}` : ""}`, children: subtitle }),
|
|
5062
|
+
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default53.actions}${isCenter ? ` ${__default53.actionsCenter}` : ""}`, children: actions })
|
|
4870
5063
|
] });
|
|
4871
5064
|
const mediaBlock = media && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4872
5065
|
"div",
|
|
4873
5066
|
{
|
|
4874
|
-
className: isSplitRight ?
|
|
4875
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5067
|
+
className: isSplitRight ? __default53.mediaSplit : isCenter ? __default53.mediaWrapCenter : __default53.mediaWrapLeft,
|
|
5068
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default53.mediaBox, children: media })
|
|
4876
5069
|
}
|
|
4877
5070
|
);
|
|
4878
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${
|
|
4879
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4880
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
5071
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${__default53.root}${className ? ` ${className}` : ""}`, children: [
|
|
5072
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default53.bgGlow, "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default53.glowOrb }) }),
|
|
5073
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5074
|
+
"div",
|
|
5075
|
+
{
|
|
5076
|
+
className: `${isCompact ? __default53.innerCompact : __default53.inner}${verticalPadding === "none" ? ` ${__default53.innerNoVertical}` : ""}`,
|
|
5077
|
+
children: isSplitRight ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default53.splitGrid, children: [
|
|
5078
|
+
contentBlock,
|
|
5079
|
+
mediaBlock
|
|
5080
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5081
|
+
contentBlock,
|
|
5082
|
+
mediaBlock
|
|
5083
|
+
] })
|
|
5084
|
+
}
|
|
5085
|
+
)
|
|
4887
5086
|
] });
|
|
4888
5087
|
}
|
|
4889
5088
|
|
|
@@ -4955,15 +5154,15 @@ __styleInject(`.LogoCloud-module_root {
|
|
|
4955
5154
|
font-size: 1rem;
|
|
4956
5155
|
}
|
|
4957
5156
|
}`);
|
|
4958
|
-
var
|
|
5157
|
+
var __default54 = { "root": "LogoCloud-module_root", "label": "LogoCloud-module_label", "grid": "LogoCloud-module_grid", "logoItem": "LogoCloud-module_logoItem", "logoImg": "LogoCloud-module_logoImg", "logoText": "LogoCloud-module_logoText" };
|
|
4959
5158
|
function LogoCloud({
|
|
4960
5159
|
label = "Trusted by teams at",
|
|
4961
5160
|
logos,
|
|
4962
5161
|
className = ""
|
|
4963
5162
|
}) {
|
|
4964
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${
|
|
4965
|
-
label && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
4966
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5163
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${__default54.root}${className ? ` ${className}` : ""}`, children: [
|
|
5164
|
+
label && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default54.label, children: label }),
|
|
5165
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default54.grid, children: logos.map((logo) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default54.logoItem, children: logo.src ? (
|
|
4967
5166
|
// eslint-disable-next-line @next/next/no-img-element
|
|
4968
5167
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4969
5168
|
"img",
|
|
@@ -4971,10 +5170,10 @@ function LogoCloud({
|
|
|
4971
5170
|
src: logo.src,
|
|
4972
5171
|
alt: logo.name,
|
|
4973
5172
|
width: logo.width || 100,
|
|
4974
|
-
className: `${
|
|
5173
|
+
className: `${__default54.logoImg} logo-img`
|
|
4975
5174
|
}
|
|
4976
5175
|
)
|
|
4977
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5176
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default54.logoText, children: logo.name }) }, logo.name)) })
|
|
4978
5177
|
] });
|
|
4979
5178
|
}
|
|
4980
5179
|
|
|
@@ -5070,18 +5269,18 @@ __styleInject(`@charset "UTF-8";
|
|
|
5070
5269
|
color: var(--fg-muted);
|
|
5071
5270
|
letter-spacing: -0.25px;
|
|
5072
5271
|
}`);
|
|
5073
|
-
var
|
|
5272
|
+
var __default55 = { "root": "StatsBar-module_root", "inline": "StatsBar-module_inline", "inlineGrid": "StatsBar-module_inlineGrid", "inlineItem": "StatsBar-module_inlineItem", "cardsGrid": "StatsBar-module_cardsGrid", "card": "StatsBar-module_card", "cardIconWrap": "StatsBar-module_cardIconWrap", "statValue": "StatsBar-module_statValue", "statLabel": "StatsBar-module_statLabel" };
|
|
5074
5273
|
function StatsBar({ stats, variant = "inline", className = "" }) {
|
|
5075
5274
|
if (variant === "cards") {
|
|
5076
|
-
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${
|
|
5077
|
-
stat.icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5078
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5079
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5275
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${__default55.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default55.cardsGrid, children: stats.map((stat, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default55.card, children: [
|
|
5276
|
+
stat.icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default55.cardIconWrap, children: stat.icon }),
|
|
5277
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default55.statValue, children: stat.value }),
|
|
5278
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default55.statLabel, children: stat.label })
|
|
5080
5279
|
] }, i)) }) });
|
|
5081
5280
|
}
|
|
5082
|
-
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${
|
|
5083
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5084
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5281
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${__default55.root} ${__default55.inline}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default55.inlineGrid, children: stats.map((stat, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default55.inlineItem, children: [
|
|
5282
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default55.statValue, children: stat.value }),
|
|
5283
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default55.statLabel, children: stat.label })
|
|
5085
5284
|
] }, i)) }) });
|
|
5086
5285
|
}
|
|
5087
5286
|
|
|
@@ -5101,6 +5300,16 @@ __styleInject(`@charset "UTF-8";
|
|
|
5101
5300
|
}
|
|
5102
5301
|
}
|
|
5103
5302
|
|
|
5303
|
+
/* Opt-in \u0434\u043B\u044F default variant \u2014 \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C \u0443\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u0442 vertical rhythm. */
|
|
5304
|
+
.CTASection-module_defaultNoVertical {
|
|
5305
|
+
padding-block: 0;
|
|
5306
|
+
}
|
|
5307
|
+
@media (min-width: 768px) {
|
|
5308
|
+
.CTASection-module_defaultNoVertical {
|
|
5309
|
+
padding-block: 0;
|
|
5310
|
+
}
|
|
5311
|
+
}
|
|
5312
|
+
|
|
5104
5313
|
/* \u2500\u2500\u2500 Variant: filled \u2500\u2500\u2500 */
|
|
5105
5314
|
.CTASection-module_filled {
|
|
5106
5315
|
padding-block: 3rem;
|
|
@@ -5171,24 +5380,27 @@ __styleInject(`@charset "UTF-8";
|
|
|
5171
5380
|
gap: 0.75rem;
|
|
5172
5381
|
justify-content: center;
|
|
5173
5382
|
}`);
|
|
5174
|
-
var
|
|
5383
|
+
var __default56 = { "root": "CTASection-module_root", "default": "CTASection-module_default", "defaultNoVertical": "CTASection-module_defaultNoVertical", "filled": "CTASection-module_filled", "bordered": "CTASection-module_bordered", "inner": "CTASection-module_inner", "title": "CTASection-module_title", "titleFilled": "CTASection-module_titleFilled", "description": "CTASection-module_description", "descriptionFilled": "CTASection-module_descriptionFilled", "actions": "CTASection-module_actions" };
|
|
5175
5384
|
function CTASection({
|
|
5176
5385
|
title,
|
|
5177
5386
|
description,
|
|
5178
5387
|
actions,
|
|
5179
5388
|
variant = "default",
|
|
5389
|
+
verticalPadding = "default",
|
|
5180
5390
|
className = ""
|
|
5181
5391
|
}) {
|
|
5182
5392
|
const isFilled = variant === "filled";
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5393
|
+
const noVerticalClass = variant === "default" && verticalPadding === "none" ? ` ${__default56.defaultNoVertical}` : "";
|
|
5394
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${__default56.root} ${__default56[variant]}${noVerticalClass}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default56.inner, children: [
|
|
5395
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: `${__default56.title}${isFilled ? ` ${__default56.titleFilled}` : ""}`, children: title }),
|
|
5396
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${__default56.description}${isFilled ? ` ${__default56.descriptionFilled}` : ""}`, children: description }),
|
|
5397
|
+
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default56.actions, children: actions })
|
|
5187
5398
|
] }) });
|
|
5188
5399
|
}
|
|
5189
5400
|
|
|
5190
5401
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/organisms/BentoGrid.module.scss
|
|
5191
|
-
__styleInject(
|
|
5402
|
+
__styleInject(`@charset "UTF-8";
|
|
5403
|
+
.BentoGrid-module_root {
|
|
5192
5404
|
padding-block: 2.5rem;
|
|
5193
5405
|
}
|
|
5194
5406
|
@media (min-width: 768px) {
|
|
@@ -5197,6 +5409,16 @@ __styleInject(`.BentoGrid-module_root {
|
|
|
5197
5409
|
}
|
|
5198
5410
|
}
|
|
5199
5411
|
|
|
5412
|
+
/* Opt-in \u0434\u043B\u044F consumer'\u043E\u0432 \u0441 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u043C vertical rhythm wrapper'\u043E\u043C. */
|
|
5413
|
+
.BentoGrid-module_rootNoVertical {
|
|
5414
|
+
padding-block: 0;
|
|
5415
|
+
}
|
|
5416
|
+
@media (min-width: 768px) {
|
|
5417
|
+
.BentoGrid-module_rootNoVertical {
|
|
5418
|
+
padding-block: 0;
|
|
5419
|
+
}
|
|
5420
|
+
}
|
|
5421
|
+
|
|
5200
5422
|
.BentoGrid-module_grid {
|
|
5201
5423
|
display: grid;
|
|
5202
5424
|
grid-template-columns: 1fr;
|
|
@@ -5279,21 +5501,22 @@ __styleInject(`.BentoGrid-module_root {
|
|
|
5279
5501
|
line-height: 1.625;
|
|
5280
5502
|
letter-spacing: -0.25px;
|
|
5281
5503
|
}`);
|
|
5282
|
-
var
|
|
5283
|
-
function BentoGrid({ items, className = "" }) {
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
const
|
|
5504
|
+
var __default57 = { "root": "BentoGrid-module_root", "rootNoVertical": "BentoGrid-module_rootNoVertical", "grid": "BentoGrid-module_grid", "item": "BentoGrid-module_item", "colSpan2": "BentoGrid-module_colSpan2", "rowSpan2": "BentoGrid-module_rowSpan2", "mediaWrap": "BentoGrid-module_mediaWrap", "content": "BentoGrid-module_content", "contentTall": "BentoGrid-module_contentTall", "itemIcon": "BentoGrid-module_itemIcon", "itemTitle": "BentoGrid-module_itemTitle", "itemDescription": "BentoGrid-module_itemDescription" };
|
|
5505
|
+
function BentoGrid({ items, verticalPadding = "default", className = "" }) {
|
|
5506
|
+
const noVerticalClass = verticalPadding === "none" ? ` ${__default57.rootNoVertical}` : "";
|
|
5507
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${__default57.root}${noVerticalClass}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default57.grid, children: items.map((item, i) => {
|
|
5508
|
+
const spanClass = item.span === 2 ? ` ${__default57.colSpan2}` : "";
|
|
5509
|
+
const rowClass = item.rowSpan === 2 ? ` ${__default57.rowSpan2}` : "";
|
|
5287
5510
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5288
5511
|
"div",
|
|
5289
5512
|
{
|
|
5290
|
-
className: `${
|
|
5513
|
+
className: `${__default57.item}${spanClass}${rowClass}${item.className ? ` ${item.className}` : ""}`,
|
|
5291
5514
|
children: [
|
|
5292
|
-
item.media && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5293
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
5294
|
-
item.icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5295
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
5296
|
-
item.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
5515
|
+
item.media && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default57.mediaWrap, children: item.media }),
|
|
5516
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default57.content}${item.rowSpan === 2 ? ` ${__default57.contentTall}` : ""}`, children: [
|
|
5517
|
+
item.icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default57.itemIcon, children: item.icon }),
|
|
5518
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: __default57.itemTitle, children: item.title }),
|
|
5519
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default57.itemDescription, children: item.description })
|
|
5297
5520
|
] })
|
|
5298
5521
|
]
|
|
5299
5522
|
},
|
|
@@ -5408,7 +5631,7 @@ __styleInject(`.FAQSection-module_root {
|
|
|
5408
5631
|
line-height: 1.625;
|
|
5409
5632
|
padding-right: 2rem;
|
|
5410
5633
|
}`);
|
|
5411
|
-
var
|
|
5634
|
+
var __default58 = { "root": "FAQSection-module_root", "container": "FAQSection-module_container", "title": "FAQSection-module_title", "subtitle": "FAQSection-module_subtitle", "list": "FAQSection-module_list", "item": "FAQSection-module_item", "question": "FAQSection-module_question", "questionText": "FAQSection-module_questionText", "toggleIcon": "FAQSection-module_toggleIcon", "toggleIconOpen": "FAQSection-module_toggleIconOpen FAQSection-module_toggleIcon", "answerOpen": "FAQSection-module_answerOpen FAQSection-module_answer", "answerClosed": "FAQSection-module_answerClosed FAQSection-module_answer", "answerText": "FAQSection-module_answerText" };
|
|
5412
5635
|
function FAQSection({
|
|
5413
5636
|
title = "Frequently asked questions",
|
|
5414
5637
|
subtitle,
|
|
@@ -5417,25 +5640,25 @@ function FAQSection({
|
|
|
5417
5640
|
}) {
|
|
5418
5641
|
const [openIndex, setOpenIndex] = react.useState(null);
|
|
5419
5642
|
const toggle = (i) => setOpenIndex(openIndex === i ? null : i);
|
|
5420
|
-
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${
|
|
5421
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
5422
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
5423
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: title || subtitle ?
|
|
5643
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${__default58.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default58.container, children: [
|
|
5644
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: __default58.title, children: title }),
|
|
5645
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default58.subtitle, children: subtitle }),
|
|
5646
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: title || subtitle ? __default58.list : "", children: items.map((item, i) => {
|
|
5424
5647
|
const isOpen = openIndex === i;
|
|
5425
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
5648
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default58.item, children: [
|
|
5426
5649
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5427
5650
|
"button",
|
|
5428
5651
|
{
|
|
5429
5652
|
onClick: () => toggle(i),
|
|
5430
|
-
className:
|
|
5653
|
+
className: __default58.question,
|
|
5431
5654
|
"aria-expanded": isOpen,
|
|
5432
5655
|
children: [
|
|
5433
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5434
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: isOpen ?
|
|
5656
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default58.questionText, children: item.question }),
|
|
5657
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: isOpen ? __default58.toggleIconOpen : __default58.toggleIcon, children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M7 1v12M1 7h12", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }) })
|
|
5435
5658
|
]
|
|
5436
5659
|
}
|
|
5437
5660
|
),
|
|
5438
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: isOpen ?
|
|
5661
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: isOpen ? __default58.answerOpen : __default58.answerClosed, children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default58.answerText, children: item.answer }) })
|
|
5439
5662
|
] }, i);
|
|
5440
5663
|
}) })
|
|
5441
5664
|
] }) });
|
|
@@ -5525,32 +5748,32 @@ __styleInject(`.ComparisonTable-module_root {
|
|
|
5525
5748
|
font-weight: 500;
|
|
5526
5749
|
color: var(--fg);
|
|
5527
5750
|
}`);
|
|
5528
|
-
var
|
|
5751
|
+
var __default59 = { "root": "ComparisonTable-module_root", "scrollWrap": "ComparisonTable-module_scrollWrap", "table": "ComparisonTable-module_table", "headerCell": "ComparisonTable-module_headerCell", "columnHeader": "ComparisonTable-module_columnHeader", "columnHeaderHighlighted": "ComparisonTable-module_columnHeaderHighlighted ComparisonTable-module_columnHeader", "bodyRow": "ComparisonTable-module_bodyRow", "featureCell": "ComparisonTable-module_featureCell", "valueCell": "ComparisonTable-module_valueCell", "valueCellHighlighted": "ComparisonTable-module_valueCellHighlighted ComparisonTable-module_valueCell", "valueCellHighlightedLast": "ComparisonTable-module_valueCellHighlightedLast ComparisonTable-module_valueCellHighlighted ComparisonTable-module_valueCell", "iconSuccess": "ComparisonTable-module_iconSuccess", "iconMuted": "ComparisonTable-module_iconMuted", "textValue": "ComparisonTable-module_textValue" };
|
|
5529
5752
|
function ComparisonTable({ columns, rows, className = "" }) {
|
|
5530
|
-
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${
|
|
5753
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${__default59.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default59.scrollWrap, children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: __default59.table, children: [
|
|
5531
5754
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
5532
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className:
|
|
5755
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: __default59.headerCell }),
|
|
5533
5756
|
columns.map((col, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5534
5757
|
"th",
|
|
5535
5758
|
{
|
|
5536
|
-
className: col.highlighted ?
|
|
5759
|
+
className: col.highlighted ? __default59.columnHeaderHighlighted : __default59.columnHeader,
|
|
5537
5760
|
children: col.label
|
|
5538
5761
|
},
|
|
5539
5762
|
i
|
|
5540
5763
|
))
|
|
5541
5764
|
] }) }),
|
|
5542
|
-
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: rows.map((row, ri) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className:
|
|
5543
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { className:
|
|
5765
|
+
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: rows.map((row, ri) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: __default59.bodyRow, children: [
|
|
5766
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { className: __default59.featureCell, children: row.feature }),
|
|
5544
5767
|
row.values.map((val, vi) => {
|
|
5545
5768
|
var _a;
|
|
5546
5769
|
const isHighlighted = (_a = columns[vi]) == null ? void 0 : _a.highlighted;
|
|
5547
5770
|
const isLast = ri === rows.length - 1;
|
|
5548
|
-
const cellClass = isHighlighted ? isLast ?
|
|
5771
|
+
const cellClass = isHighlighted ? isLast ? __default59.valueCellHighlightedLast : __default59.valueCellHighlighted : __default59.valueCell;
|
|
5549
5772
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5550
5773
|
"td",
|
|
5551
5774
|
{
|
|
5552
5775
|
className: cellClass,
|
|
5553
|
-
children: typeof val === "boolean" ? val ? /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5776
|
+
children: typeof val === "boolean" ? val ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default59.iconSuccess, children: /* @__PURE__ */ jsxRuntime.jsx(IconlyCheck, { size: 18 }) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default59.iconMuted, children: /* @__PURE__ */ jsxRuntime.jsx(IconlyClose, { size: 18 }) }) : typeof val === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default59.textValue, children: val }) : val
|
|
5554
5777
|
},
|
|
5555
5778
|
vi
|
|
5556
5779
|
);
|
|
@@ -5715,7 +5938,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
5715
5938
|
background: var(--border-color-strong);
|
|
5716
5939
|
transition: background var(--transition-fast), width var(--transition-fast);
|
|
5717
5940
|
}`);
|
|
5718
|
-
var
|
|
5941
|
+
var __default60 = { "root": "BottomSheet-module_root", "trigger": "BottomSheet-module_trigger", "bar": "BottomSheet-module_bar", "barHandle": "BottomSheet-module_barHandle", "handleBar": "BottomSheet-module_handleBar", "barActions": "BottomSheet-module_barActions", "backdrop": "BottomSheet-module_backdrop", "backdropOpen": "BottomSheet-module_backdropOpen", "panel": "BottomSheet-module_panel", "panelOpen": "BottomSheet-module_panelOpen", "handle": "BottomSheet-module_handle" };
|
|
5719
5942
|
var BottomSheetContext = react.createContext(null);
|
|
5720
5943
|
function useBottomSheet(part) {
|
|
5721
5944
|
const ctx = react.useContext(BottomSheetContext);
|
|
@@ -5787,13 +6010,13 @@ function BottomSheet({
|
|
|
5787
6010
|
BottomSheetContext.Provider,
|
|
5788
6011
|
{
|
|
5789
6012
|
value: { open, setOpen, dragY, isDragging, onDragStart, onDragMove, onDragEnd },
|
|
5790
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
6013
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default60.root}${className ? ` ${className}` : ""}`, children })
|
|
5791
6014
|
}
|
|
5792
6015
|
);
|
|
5793
6016
|
}
|
|
5794
6017
|
function Bar({ children, className = "" }) {
|
|
5795
6018
|
const { setOpen, onDragStart, onDragMove, onDragEnd } = useBottomSheet("Bar");
|
|
5796
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
6019
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default60.bar}${className ? ` ${className}` : ""}`, children: [
|
|
5797
6020
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5798
6021
|
"button",
|
|
5799
6022
|
{
|
|
@@ -5803,12 +6026,12 @@ function Bar({ children, className = "" }) {
|
|
|
5803
6026
|
onTouchMove: (e) => onDragMove(e.touches[0].clientY),
|
|
5804
6027
|
onTouchEnd: onDragEnd,
|
|
5805
6028
|
onTouchCancel: onDragEnd,
|
|
5806
|
-
className:
|
|
6029
|
+
className: __default60.barHandle,
|
|
5807
6030
|
"aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E",
|
|
5808
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6031
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default60.handleBar })
|
|
5809
6032
|
}
|
|
5810
6033
|
),
|
|
5811
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6034
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default60.barActions, children })
|
|
5812
6035
|
] });
|
|
5813
6036
|
}
|
|
5814
6037
|
function Panel({ children, className = "" }) {
|
|
@@ -5829,7 +6052,7 @@ function Panel({ children, className = "" }) {
|
|
|
5829
6052
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5830
6053
|
"div",
|
|
5831
6054
|
{
|
|
5832
|
-
className: `${
|
|
6055
|
+
className: `${__default60.backdrop}${open || isDraggingOpen ? ` ${__default60.backdropOpen}` : ""}`,
|
|
5833
6056
|
onClick: () => setOpen(false),
|
|
5834
6057
|
"aria-hidden": "true"
|
|
5835
6058
|
}
|
|
@@ -5837,7 +6060,7 @@ function Panel({ children, className = "" }) {
|
|
|
5837
6060
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5838
6061
|
"div",
|
|
5839
6062
|
{
|
|
5840
|
-
className: `${
|
|
6063
|
+
className: `${__default60.panel}${open ? ` ${__default60.panelOpen}` : ""}${className ? ` ${className}` : ""}`,
|
|
5841
6064
|
role: "dialog",
|
|
5842
6065
|
"aria-modal": open,
|
|
5843
6066
|
"aria-hidden": !open && !isDraggingOpen,
|
|
@@ -5870,9 +6093,9 @@ function Handle({ className = "" }) {
|
|
|
5870
6093
|
if (e.pointerType === "mouse") return;
|
|
5871
6094
|
onDragEnd();
|
|
5872
6095
|
},
|
|
5873
|
-
className: `${
|
|
6096
|
+
className: `${__default60.handle}${className ? ` ${className}` : ""}`,
|
|
5874
6097
|
"aria-label": open ? "\u0417\u0430\u043A\u0440\u044B\u0442\u044C" : "\u041E\u0442\u043A\u0440\u044B\u0442\u044C",
|
|
5875
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6098
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default60.handleBar })
|
|
5876
6099
|
}
|
|
5877
6100
|
);
|
|
5878
6101
|
}
|
|
@@ -5882,7 +6105,7 @@ function Trigger({ children, className = "" }) {
|
|
|
5882
6105
|
"div",
|
|
5883
6106
|
{
|
|
5884
6107
|
onClick: () => setOpen(!open),
|
|
5885
|
-
className: `${
|
|
6108
|
+
className: `${__default60.trigger}${className ? ` ${className}` : ""}`,
|
|
5886
6109
|
children
|
|
5887
6110
|
}
|
|
5888
6111
|
);
|
|
@@ -6051,21 +6274,21 @@ __styleInject(`.PromoBento-module_root {
|
|
|
6051
6274
|
.PromoBento-module_cardCta {
|
|
6052
6275
|
margin-top: 0.25rem;
|
|
6053
6276
|
}`);
|
|
6054
|
-
var
|
|
6277
|
+
var __default61 = { "root": "PromoBento-module_root", "header": "PromoBento-module_header", "heading": "PromoBento-module_heading", "subtitle": "PromoBento-module_subtitle", "grid": "PromoBento-module_grid", "card": "PromoBento-module_card", "cardMedia": "PromoBento-module_cardMedia", "cardMediaInner": "PromoBento-module_cardMediaInner", "cardFade": "PromoBento-module_cardFade", "cardContent": "PromoBento-module_cardContent", "pill": "PromoBento-module_pill", "pillInner": "PromoBento-module_pillInner", "pillIcon": "PromoBento-module_pillIcon", "cardTitle": "PromoBento-module_cardTitle", "cardDesc": "PromoBento-module_cardDesc", "cardCta": "PromoBento-module_cardCta" };
|
|
6055
6278
|
function PromoBentoCard({ pill, title, description, cta, media, className = "" }) {
|
|
6056
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
6057
|
-
media && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
6058
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6059
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6279
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default61.card}${className ? ` ${className}` : ""}`, children: [
|
|
6280
|
+
media && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default61.cardMedia, children: [
|
|
6281
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default61.cardMediaInner, children: media }),
|
|
6282
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default61.cardFade })
|
|
6060
6283
|
] }),
|
|
6061
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
6062
|
-
pill && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6063
|
-
pill.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6284
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default61.cardContent, children: [
|
|
6285
|
+
pill && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default61.pill, children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: __default61.pillInner, children: [
|
|
6286
|
+
pill.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default61.pillIcon, children: pill.icon }),
|
|
6064
6287
|
pill.label
|
|
6065
6288
|
] }) }),
|
|
6066
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
6067
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
6068
|
-
cta && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6289
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: __default61.cardTitle, children: title }),
|
|
6290
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default61.cardDesc, children: description }),
|
|
6291
|
+
cta && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default61.cardCta, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6069
6292
|
Button,
|
|
6070
6293
|
{
|
|
6071
6294
|
variant: "outline",
|
|
@@ -6078,12 +6301,12 @@ function PromoBentoCard({ pill, title, description, cta, media, className = "" }
|
|
|
6078
6301
|
] });
|
|
6079
6302
|
}
|
|
6080
6303
|
function PromoBento({ heading, subtitle, items, className = "" }) {
|
|
6081
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${
|
|
6082
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
6083
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
6084
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
6304
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${__default61.root}${className ? ` ${className}` : ""}`, children: [
|
|
6305
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default61.header, children: [
|
|
6306
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: __default61.heading, children: heading }),
|
|
6307
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default61.subtitle, children: subtitle })
|
|
6085
6308
|
] }),
|
|
6086
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6309
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default61.grid, children: items.map((item, i) => /* @__PURE__ */ jsxRuntime.jsx(PromoBentoCard, __spreadValues({}, item), i)) })
|
|
6087
6310
|
] });
|
|
6088
6311
|
}
|
|
6089
6312
|
|
|
@@ -6205,26 +6428,26 @@ __styleInject(`.PromoShowcase-module_root {
|
|
|
6205
6428
|
padding: 2.5rem;
|
|
6206
6429
|
}
|
|
6207
6430
|
}`);
|
|
6208
|
-
var
|
|
6431
|
+
var __default62 = { "root": "PromoShowcase-module_root", "heading": "PromoShowcase-module_heading", "headingText": "PromoShowcase-module_headingText", "body": "PromoShowcase-module_body", "stepper": "PromoShowcase-module_stepper", "stepButton": "PromoShowcase-module_stepButton", "stepButtonActive": "PromoShowcase-module_stepButtonActive", "contentArea": "PromoShowcase-module_contentArea", "panel": "PromoShowcase-module_panel", "panelActive": "PromoShowcase-module_panelActive", "panelInner": "PromoShowcase-module_panelInner" };
|
|
6209
6432
|
function PromoShowcase({ heading, steps, className = "" }) {
|
|
6210
6433
|
const [activeIndex, setActiveIndex] = react.useState(0);
|
|
6211
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${
|
|
6212
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6213
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
6214
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6434
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${__default62.root}${className ? ` ${className}` : ""}`, children: [
|
|
6435
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default62.heading, children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: __default62.headingText, children: heading }) }),
|
|
6436
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default62.body, children: [
|
|
6437
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default62.stepper, children: steps.map((step, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6215
6438
|
"button",
|
|
6216
6439
|
{
|
|
6217
6440
|
onClick: () => setActiveIndex(i),
|
|
6218
|
-
className: `${
|
|
6441
|
+
className: `${__default62.stepButton}${i === activeIndex ? ` ${__default62.stepButtonActive}` : ""}`,
|
|
6219
6442
|
children: step.label
|
|
6220
6443
|
},
|
|
6221
6444
|
i
|
|
6222
6445
|
)) }),
|
|
6223
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6446
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default62.contentArea, children: steps.map((step, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6224
6447
|
"div",
|
|
6225
6448
|
{
|
|
6226
|
-
className: `${
|
|
6227
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6449
|
+
className: `${__default62.panel}${i === activeIndex ? ` ${__default62.panelActive}` : ""}`,
|
|
6450
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default62.panelInner, children: step.content })
|
|
6228
6451
|
},
|
|
6229
6452
|
i
|
|
6230
6453
|
)) })
|
|
@@ -6233,7 +6456,8 @@ function PromoShowcase({ heading, steps, className = "" }) {
|
|
|
6233
6456
|
}
|
|
6234
6457
|
|
|
6235
6458
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/organisms/PromoSplit.module.scss
|
|
6236
|
-
__styleInject(
|
|
6459
|
+
__styleInject(`@charset "UTF-8";
|
|
6460
|
+
.PromoSplit-module_root {
|
|
6237
6461
|
padding: 4rem 0;
|
|
6238
6462
|
}
|
|
6239
6463
|
@media (min-width: 768px) {
|
|
@@ -6242,6 +6466,16 @@ __styleInject(`.PromoSplit-module_root {
|
|
|
6242
6466
|
}
|
|
6243
6467
|
}
|
|
6244
6468
|
|
|
6469
|
+
/* Opt-in \u0434\u043B\u044F consumer'\u043E\u0432 \u0441 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u043C vertical rhythm wrapper'\u043E\u043C. */
|
|
6470
|
+
.PromoSplit-module_rootNoVertical {
|
|
6471
|
+
padding-block: 0;
|
|
6472
|
+
}
|
|
6473
|
+
@media (min-width: 768px) {
|
|
6474
|
+
.PromoSplit-module_rootNoVertical {
|
|
6475
|
+
padding-block: 0;
|
|
6476
|
+
}
|
|
6477
|
+
}
|
|
6478
|
+
|
|
6245
6479
|
.PromoSplit-module_grid {
|
|
6246
6480
|
display: grid;
|
|
6247
6481
|
grid-template-columns: 1fr;
|
|
@@ -6373,26 +6607,28 @@ __styleInject(`.PromoSplit-module_root {
|
|
|
6373
6607
|
align-items: center;
|
|
6374
6608
|
justify-content: center;
|
|
6375
6609
|
}`);
|
|
6376
|
-
var
|
|
6610
|
+
var __default63 = { "root": "PromoSplit-module_root", "rootNoVertical": "PromoSplit-module_rootNoVertical", "grid": "PromoSplit-module_grid", "gridReversed": "PromoSplit-module_gridReversed PromoSplit-module_grid", "textColumn": "PromoSplit-module_textColumn", "textColumnLtr": "PromoSplit-module_textColumnLtr", "heading": "PromoSplit-module_heading", "description": "PromoSplit-module_description", "features": "PromoSplit-module_features", "feature": "PromoSplit-module_feature", "featureTitle": "PromoSplit-module_featureTitle", "featureDesc": "PromoSplit-module_featureDesc", "mediaColumn": "PromoSplit-module_mediaColumn", "mediaColumnLtr": "PromoSplit-module_mediaColumnLtr", "mediaBox": "PromoSplit-module_mediaBox", "mediaContent": "PromoSplit-module_mediaContent", "mediaPlaceholder": "PromoSplit-module_mediaPlaceholder", "placeholderCircle": "PromoSplit-module_placeholderCircle" };
|
|
6377
6611
|
function PromoSplit({
|
|
6378
6612
|
heading,
|
|
6379
6613
|
description,
|
|
6380
6614
|
features,
|
|
6381
6615
|
media,
|
|
6382
6616
|
mediaPosition = "right",
|
|
6617
|
+
verticalPadding = "default",
|
|
6383
6618
|
className = ""
|
|
6384
6619
|
}) {
|
|
6385
6620
|
const isLeft = mediaPosition === "left";
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
/* @__PURE__ */ jsxRuntime.jsx("
|
|
6621
|
+
const noVerticalClass = verticalPadding === "none" ? ` ${__default63.rootNoVertical}` : "";
|
|
6622
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${__default63.root}${noVerticalClass}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: isLeft ? __default63.gridReversed : __default63.grid, children: [
|
|
6623
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default63.textColumn}${isLeft ? ` ${__default63.textColumnLtr}` : ""}`, children: [
|
|
6624
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: __default63.heading, children: heading }),
|
|
6625
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default63.description, children: description }),
|
|
6626
|
+
features && features.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default63.features, children: features.map((feature, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default63.feature, children: [
|
|
6627
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: __default63.featureTitle, children: feature.title }),
|
|
6628
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default63.featureDesc, children: feature.description })
|
|
6393
6629
|
] }, i)) })
|
|
6394
6630
|
] }),
|
|
6395
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
6631
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default63.mediaColumn}${isLeft ? ` ${__default63.mediaColumnLtr}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default63.mediaBox, children: media ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default63.mediaContent, children: media }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default63.mediaPlaceholder, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default63.placeholderCircle, children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "var(--fg-muted)", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
6396
6632
|
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
6397
6633
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "8.5", cy: "8.5", r: "1.5" }),
|
|
6398
6634
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m21 15-5-5L5 21" })
|
|
@@ -6509,16 +6745,16 @@ __styleInject(`.PromoTrustGrid-module_root {
|
|
|
6509
6745
|
justify-content: center;
|
|
6510
6746
|
padding: 1.5rem;
|
|
6511
6747
|
}`);
|
|
6512
|
-
var
|
|
6748
|
+
var __default64 = { "root": "PromoTrustGrid-module_root", "heading": "PromoTrustGrid-module_heading", "headingText": "PromoTrustGrid-module_headingText", "grid": "PromoTrustGrid-module_grid", "featureCard": "PromoTrustGrid-module_featureCard", "featureIcon": "PromoTrustGrid-module_featureIcon", "featureTitle": "PromoTrustGrid-module_featureTitle", "featureDescription": "PromoTrustGrid-module_featureDescription", "media": "PromoTrustGrid-module_media", "mediaInner": "PromoTrustGrid-module_mediaInner" };
|
|
6513
6749
|
function PromoTrustGrid({ heading, features, media, className = "" }) {
|
|
6514
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${
|
|
6515
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6516
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6517
|
-
feature.icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6518
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
6519
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
6750
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${__default64.root}${className ? ` ${className}` : ""}`, children: [
|
|
6751
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default64.heading, children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: __default64.headingText, children: heading }) }),
|
|
6752
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default64.grid, children: features.map((feature, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default64.featureCard, children: [
|
|
6753
|
+
feature.icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default64.featureIcon, children: feature.icon }),
|
|
6754
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: __default64.featureTitle, children: feature.title }),
|
|
6755
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default64.featureDescription, children: feature.description })
|
|
6520
6756
|
] }, i)) }),
|
|
6521
|
-
media && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6757
|
+
media && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default64.media, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default64.mediaInner, children: media }) })
|
|
6522
6758
|
] });
|
|
6523
6759
|
}
|
|
6524
6760
|
|
|
@@ -6705,36 +6941,37 @@ __styleInject(`@charset "UTF-8";
|
|
|
6705
6941
|
border-radius: clamp(8px, 1.5vw, 16px);
|
|
6706
6942
|
background: var(--bg-tertiary);
|
|
6707
6943
|
}`);
|
|
6708
|
-
var
|
|
6944
|
+
var __default65 = { "root": "PromoDevicesCTA-module_root", "textBlock": "PromoDevicesCTA-module_textBlock", "heading": "PromoDevicesCTA-module_heading", "description": "PromoDevicesCTA-module_description", "ctaWrap": "PromoDevicesCTA-module_ctaWrap", "devices": "PromoDevicesCTA-module_devices", "laptop": "PromoDevicesCTA-module_laptop", "laptopScreen": "PromoDevicesCTA-module_laptopScreen", "laptopScreenInner": "PromoDevicesCTA-module_laptopScreenInner", "laptopHinge": "PromoDevicesCTA-module_laptopHinge", "laptopBase": "PromoDevicesCTA-module_laptopBase", "tablet": "PromoDevicesCTA-module_tablet", "tabletShell": "PromoDevicesCTA-module_tabletShell", "tabletScreen": "PromoDevicesCTA-module_tabletScreen", "phone": "PromoDevicesCTA-module_phone", "phoneShell": "PromoDevicesCTA-module_phoneShell", "phoneNotch": "PromoDevicesCTA-module_phoneNotch", "phoneScreen": "PromoDevicesCTA-module_phoneScreen" };
|
|
6709
6945
|
function PromoDevicesCTA({
|
|
6710
6946
|
heading,
|
|
6711
6947
|
description,
|
|
6712
6948
|
cta,
|
|
6713
6949
|
className = ""
|
|
6714
6950
|
}) {
|
|
6715
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${
|
|
6716
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
6717
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
6718
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
6719
|
-
cta && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6951
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${__default65.root}${className ? ` ${className}` : ""}`, children: [
|
|
6952
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default65.textBlock, children: [
|
|
6953
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: __default65.heading, children: heading }),
|
|
6954
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default65.description, children: description }),
|
|
6955
|
+
cta && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default65.ctaWrap, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "primary", onClick: cta.onClick, children: cta.label }) })
|
|
6720
6956
|
] }),
|
|
6721
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
6722
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
6723
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6724
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6725
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6957
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default65.devices, children: [
|
|
6958
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default65.laptop, children: [
|
|
6959
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default65.laptopScreen, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default65.laptopScreenInner }) }),
|
|
6960
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default65.laptopHinge }),
|
|
6961
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default65.laptopBase })
|
|
6726
6962
|
] }),
|
|
6727
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6728
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6729
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6730
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
6963
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default65.tablet, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default65.tabletShell, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default65.tabletScreen }) }) }),
|
|
6964
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default65.phone, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default65.phoneShell, children: [
|
|
6965
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default65.phoneNotch }),
|
|
6966
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default65.phoneScreen })
|
|
6731
6967
|
] }) })
|
|
6732
6968
|
] })
|
|
6733
6969
|
] });
|
|
6734
6970
|
}
|
|
6735
6971
|
|
|
6736
6972
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/organisms/PromoTestimonials.module.scss
|
|
6737
|
-
__styleInject(
|
|
6973
|
+
__styleInject(`@charset "UTF-8";
|
|
6974
|
+
.PromoTestimonials-module_root {
|
|
6738
6975
|
padding: 4rem 0;
|
|
6739
6976
|
}
|
|
6740
6977
|
@media (min-width: 768px) {
|
|
@@ -6743,6 +6980,16 @@ __styleInject(`.PromoTestimonials-module_root {
|
|
|
6743
6980
|
}
|
|
6744
6981
|
}
|
|
6745
6982
|
|
|
6983
|
+
/* Opt-in \u0434\u043B\u044F consumer'\u043E\u0432 \u0441 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u043C vertical rhythm wrapper'\u043E\u043C. */
|
|
6984
|
+
.PromoTestimonials-module_rootNoVertical {
|
|
6985
|
+
padding-block: 0;
|
|
6986
|
+
}
|
|
6987
|
+
@media (min-width: 768px) {
|
|
6988
|
+
.PromoTestimonials-module_rootNoVertical {
|
|
6989
|
+
padding-block: 0;
|
|
6990
|
+
}
|
|
6991
|
+
}
|
|
6992
|
+
|
|
6746
6993
|
.PromoTestimonials-module_wrapper {
|
|
6747
6994
|
position: relative;
|
|
6748
6995
|
border-radius: clamp(20px, 3vw, 40px);
|
|
@@ -6916,22 +7163,24 @@ __styleInject(`.PromoTestimonials-module_root {
|
|
|
6916
7163
|
background: var(--bg-secondary);
|
|
6917
7164
|
overflow: hidden;
|
|
6918
7165
|
}`);
|
|
6919
|
-
var
|
|
7166
|
+
var __default66 = { "root": "PromoTestimonials-module_root", "rootNoVertical": "PromoTestimonials-module_rootNoVertical", "wrapper": "PromoTestimonials-module_wrapper", "avatarSection": "PromoTestimonials-module_avatarSection", "avatarStack": "PromoTestimonials-module_avatarStack", "avatarRing": "PromoTestimonials-module_avatarRing", "overflowBadge": "PromoTestimonials-module_overflowBadge", "overflowCircle": "PromoTestimonials-module_overflowCircle", "headingSection": "PromoTestimonials-module_headingSection", "heading": "PromoTestimonials-module_heading", "subtitle": "PromoTestimonials-module_subtitle", "cardsSection": "PromoTestimonials-module_cardsSection", "cardsGrid": "PromoTestimonials-module_cardsGrid", "card": "PromoTestimonials-module_card", "quote": "PromoTestimonials-module_quote", "author": "PromoTestimonials-module_author", "authorInfo": "PromoTestimonials-module_authorInfo", "authorName": "PromoTestimonials-module_authorName", "authorRole": "PromoTestimonials-module_authorRole", "mediaSection": "PromoTestimonials-module_mediaSection", "mediaBox": "PromoTestimonials-module_mediaBox" };
|
|
6920
7167
|
function PromoTestimonials({
|
|
6921
7168
|
heading,
|
|
6922
7169
|
subtitle,
|
|
6923
7170
|
testimonials,
|
|
6924
7171
|
media,
|
|
7172
|
+
verticalPadding = "default",
|
|
6925
7173
|
className = ""
|
|
6926
7174
|
}) {
|
|
6927
|
-
|
|
6928
|
-
|
|
7175
|
+
const noVerticalClass = verticalPadding === "none" ? ` ${__default66.rootNoVertical}` : "";
|
|
7176
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${__default66.root}${noVerticalClass}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default66.wrapper, children: [
|
|
7177
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default66.avatarSection, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default66.avatarStack, children: [
|
|
6929
7178
|
testimonials.slice(0, 5).map((t, i) => {
|
|
6930
7179
|
const initials = t.name.split(" ").map((n) => n[0]).join("").toUpperCase();
|
|
6931
7180
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6932
7181
|
"div",
|
|
6933
7182
|
{
|
|
6934
|
-
className:
|
|
7183
|
+
className: __default66.avatarRing,
|
|
6935
7184
|
style: { zIndex: 10 - i },
|
|
6936
7185
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6937
7186
|
Avatar,
|
|
@@ -6945,32 +7194,32 @@ function PromoTestimonials({
|
|
|
6945
7194
|
i
|
|
6946
7195
|
);
|
|
6947
7196
|
}),
|
|
6948
|
-
testimonials.length > 5 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
7197
|
+
testimonials.length > 5 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default66.overflowBadge, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default66.overflowCircle, children: [
|
|
6949
7198
|
"+",
|
|
6950
7199
|
testimonials.length - 5
|
|
6951
7200
|
] }) })
|
|
6952
7201
|
] }) }),
|
|
6953
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
6954
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
6955
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
7202
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default66.headingSection, children: [
|
|
7203
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: __default66.heading, children: heading }),
|
|
7204
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default66.subtitle, children: subtitle })
|
|
6956
7205
|
] }),
|
|
6957
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
7206
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default66.cardsSection, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default66.cardsGrid, children: testimonials.map((t, i) => {
|
|
6958
7207
|
const initials = t.name.split(" ").map((n) => n[0]).join("").toUpperCase();
|
|
6959
7208
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6960
7209
|
"div",
|
|
6961
7210
|
{
|
|
6962
|
-
className:
|
|
7211
|
+
className: __default66.card,
|
|
6963
7212
|
children: [
|
|
6964
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className:
|
|
7213
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: __default66.quote, children: [
|
|
6965
7214
|
"\u201C",
|
|
6966
7215
|
t.quote,
|
|
6967
7216
|
"\u201D"
|
|
6968
7217
|
] }),
|
|
6969
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7218
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default66.author, children: [
|
|
6970
7219
|
/* @__PURE__ */ jsxRuntime.jsx(Avatar, { size: "sm", src: t.avatarSrc, initials }),
|
|
6971
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
6972
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
6973
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
7220
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default66.authorInfo, children: [
|
|
7221
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default66.authorName, children: t.name }),
|
|
7222
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default66.authorRole, children: t.role })
|
|
6974
7223
|
] })
|
|
6975
7224
|
] })
|
|
6976
7225
|
]
|
|
@@ -6978,7 +7227,7 @@ function PromoTestimonials({
|
|
|
6978
7227
|
i
|
|
6979
7228
|
);
|
|
6980
7229
|
}) }) }),
|
|
6981
|
-
media && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
7230
|
+
media && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default66.mediaSection, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default66.mediaBox, children: media }) })
|
|
6982
7231
|
] }) });
|
|
6983
7232
|
}
|
|
6984
7233
|
|
|
@@ -7130,7 +7379,7 @@ __styleInject(`.PromoHero-module_root {
|
|
|
7130
7379
|
align-items: center;
|
|
7131
7380
|
justify-content: center;
|
|
7132
7381
|
}`);
|
|
7133
|
-
var
|
|
7382
|
+
var __default67 = { "root": "PromoHero-module_root", "dark": "PromoHero-module_dark", "light": "PromoHero-module_light", "gradient": "PromoHero-module_gradient", "glowLayer": "PromoHero-module_glowLayer", "glowTop": "PromoHero-module_glowTop", "glowBottom": "PromoHero-module_glowBottom", "inner": "PromoHero-module_inner", "textColumn": "PromoHero-module_textColumn", "title": "PromoHero-module_title", "subtitle": "PromoHero-module_subtitle", "subtitleDark": "PromoHero-module_subtitleDark", "subtitleLight": "PromoHero-module_subtitleLight", "actions": "PromoHero-module_actions", "ctaDark": "PromoHero-module_ctaDark", "ghostDark": "PromoHero-module_ghostDark", "mediaColumn": "PromoHero-module_mediaColumn" };
|
|
7134
7383
|
function PromoHero({
|
|
7135
7384
|
title,
|
|
7136
7385
|
subtitle,
|
|
@@ -7140,30 +7389,30 @@ function PromoHero({
|
|
|
7140
7389
|
variant = "dark",
|
|
7141
7390
|
className = ""
|
|
7142
7391
|
}) {
|
|
7143
|
-
const variantClass = variant === "dark" ?
|
|
7144
|
-
const subtitleClass = variant === "light" ?
|
|
7392
|
+
const variantClass = variant === "dark" ? __default67.dark : variant === "gradient" ? __default67.gradient : __default67.light;
|
|
7393
|
+
const subtitleClass = variant === "light" ? __default67.subtitleLight : __default67.subtitleDark;
|
|
7145
7394
|
const isLight = variant === "light";
|
|
7146
7395
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7147
7396
|
"section",
|
|
7148
7397
|
{
|
|
7149
|
-
className: `${
|
|
7398
|
+
className: `${__default67.root} ${variantClass}${className ? ` ${className}` : ""}`,
|
|
7150
7399
|
children: [
|
|
7151
|
-
!isLight && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7152
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
7153
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
7400
|
+
!isLight && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default67.glowLayer, "aria-hidden": "true", children: [
|
|
7401
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default67.glowTop }),
|
|
7402
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default67.glowBottom })
|
|
7154
7403
|
] }),
|
|
7155
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7156
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7157
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
7158
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${
|
|
7159
|
-
(cta || secondaryCta) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7404
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default67.inner, children: [
|
|
7405
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default67.textColumn, children: [
|
|
7406
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: __default67.title, children: title }),
|
|
7407
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${__default67.subtitle} ${subtitleClass}`, children: subtitle }),
|
|
7408
|
+
(cta || secondaryCta) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default67.actions, children: [
|
|
7160
7409
|
cta && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7161
7410
|
Button,
|
|
7162
7411
|
{
|
|
7163
7412
|
variant: isLight ? "primary" : "outline",
|
|
7164
7413
|
size: "hero",
|
|
7165
7414
|
onClick: cta.onClick,
|
|
7166
|
-
className: !isLight ?
|
|
7415
|
+
className: !isLight ? __default67.ctaDark : "",
|
|
7167
7416
|
children: cta.label
|
|
7168
7417
|
}
|
|
7169
7418
|
),
|
|
@@ -7173,13 +7422,13 @@ function PromoHero({
|
|
|
7173
7422
|
variant: "ghost",
|
|
7174
7423
|
size: "hero",
|
|
7175
7424
|
onClick: secondaryCta.onClick,
|
|
7176
|
-
className: !isLight ?
|
|
7425
|
+
className: !isLight ? __default67.ghostDark : "",
|
|
7177
7426
|
children: secondaryCta.label
|
|
7178
7427
|
}
|
|
7179
7428
|
)
|
|
7180
7429
|
] })
|
|
7181
7430
|
] }),
|
|
7182
|
-
media && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
7431
|
+
media && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default67.mediaColumn, children: media })
|
|
7183
7432
|
] })
|
|
7184
7433
|
]
|
|
7185
7434
|
}
|
|
@@ -7333,7 +7582,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
7333
7582
|
max-width: 640px;
|
|
7334
7583
|
width: 100%;
|
|
7335
7584
|
}`);
|
|
7336
|
-
var
|
|
7585
|
+
var __default68 = { "root": "PromoHeroForm-module_root", "inner": "PromoHeroForm-module_inner", "title": "PromoHeroForm-module_title", "subtitle": "PromoHeroForm-module_subtitle", "form": "PromoHeroForm-module_form", "formInner": "PromoHeroForm-module_formInner", "input": "PromoHeroForm-module_input", "hint": "PromoHeroForm-module_hint", "errorBox": "PromoHeroForm-module_errorBox" };
|
|
7337
7586
|
function PromoHeroForm({
|
|
7338
7587
|
title,
|
|
7339
7588
|
subtitle,
|
|
@@ -7356,17 +7605,17 @@ function PromoHeroForm({
|
|
|
7356
7605
|
onSubmit == null ? void 0 : onSubmit(trimmed);
|
|
7357
7606
|
};
|
|
7358
7607
|
const isDisabled = loading || value.trim().length === 0;
|
|
7359
|
-
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${
|
|
7360
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
7361
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
7608
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${__default68.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default68.inner, children: [
|
|
7609
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: __default68.title, children: title }),
|
|
7610
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default68.subtitle, children: subtitle }),
|
|
7362
7611
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7363
7612
|
"form",
|
|
7364
7613
|
{
|
|
7365
|
-
className:
|
|
7614
|
+
className: __default68.form,
|
|
7366
7615
|
onSubmit: handleSubmit,
|
|
7367
7616
|
"aria-busy": loading,
|
|
7368
7617
|
noValidate: true,
|
|
7369
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7618
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default68.formInner, children: [
|
|
7370
7619
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7371
7620
|
"input",
|
|
7372
7621
|
{
|
|
@@ -7375,7 +7624,7 @@ function PromoHeroForm({
|
|
|
7375
7624
|
value,
|
|
7376
7625
|
onChange: (e) => setValue(e.target.value),
|
|
7377
7626
|
disabled: loading,
|
|
7378
|
-
className:
|
|
7627
|
+
className: __default68.input,
|
|
7379
7628
|
"aria-label": inputAriaLabel || inputPlaceholder
|
|
7380
7629
|
}
|
|
7381
7630
|
),
|
|
@@ -7393,8 +7642,8 @@ function PromoHeroForm({
|
|
|
7393
7642
|
] })
|
|
7394
7643
|
}
|
|
7395
7644
|
),
|
|
7396
|
-
hint && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
7397
|
-
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
7645
|
+
hint && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default68.hint, children: hint }),
|
|
7646
|
+
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default68.errorBox, role: "alert", children: error })
|
|
7398
7647
|
] }) });
|
|
7399
7648
|
}
|
|
7400
7649
|
|
|
@@ -7672,7 +7921,7 @@ __styleInject(`.PromoPricing-module_root {
|
|
|
7672
7921
|
.PromoPricing-module_ctaWrap {
|
|
7673
7922
|
margin-top: auto;
|
|
7674
7923
|
}`);
|
|
7675
|
-
var
|
|
7924
|
+
var __default69 = { "root": "PromoPricing-module_root", "dark": "PromoPricing-module_dark", "light": "PromoPricing-module_light", "headingSection": "PromoPricing-module_headingSection", "heading": "PromoPricing-module_heading", "headingDark": "PromoPricing-module_headingDark", "headingLight": "PromoPricing-module_headingLight", "subtitle": "PromoPricing-module_subtitle", "subtitleDark": "PromoPricing-module_subtitleDark", "subtitleLight": "PromoPricing-module_subtitleLight", "tiersGrid": "PromoPricing-module_tiersGrid", "tierDefault": "PromoPricing-module_tierDefault PromoPricing-module_tierCard", "tierHighlighted": "PromoPricing-module_tierHighlighted PromoPricing-module_tierCard", "tierDark": "PromoPricing-module_tierDark PromoPricing-module_tierCard", "tierDarkHighlighted": "PromoPricing-module_tierDarkHighlighted PromoPricing-module_tierCard", "tierName": "PromoPricing-module_tierName", "tierNameMuted": "PromoPricing-module_tierNameMuted", "tierNameDark": "PromoPricing-module_tierNameDark", "tierNameHighlightedLight": "PromoPricing-module_tierNameHighlightedLight", "tierNameHighlightedDark": "PromoPricing-module_tierNameHighlightedDark", "price": "PromoPricing-module_price", "period": "PromoPricing-module_period", "periodMuted": "PromoPricing-module_periodMuted", "periodDark": "PromoPricing-module_periodDark", "periodHighlightedLight": "PromoPricing-module_periodHighlightedLight", "periodHighlightedDark": "PromoPricing-module_periodHighlightedDark", "tierDesc": "PromoPricing-module_tierDesc", "tierDescMuted": "PromoPricing-module_tierDescMuted", "tierDescDark": "PromoPricing-module_tierDescDark", "tierDescHighlightedLight": "PromoPricing-module_tierDescHighlightedLight", "tierDescHighlightedDark": "PromoPricing-module_tierDescHighlightedDark", "featureList": "PromoPricing-module_featureList", "featureItem": "PromoPricing-module_featureItem", "checkIcon": "PromoPricing-module_checkIcon", "checkDefault": "PromoPricing-module_checkDefault", "checkDark": "PromoPricing-module_checkDark", "checkHighlightedLight": "PromoPricing-module_checkHighlightedLight", "checkHighlightedDark": "PromoPricing-module_checkHighlightedDark", "featureTextMuted": "PromoPricing-module_featureTextMuted", "featureTextDark": "PromoPricing-module_featureTextDark", "featureTextHighlightedLight": "PromoPricing-module_featureTextHighlightedLight", "featureTextHighlightedDark": "PromoPricing-module_featureTextHighlightedDark", "ctaWrap": "PromoPricing-module_ctaWrap" };
|
|
7676
7925
|
function PromoPricing({
|
|
7677
7926
|
heading,
|
|
7678
7927
|
subtitle,
|
|
@@ -7682,50 +7931,50 @@ function PromoPricing({
|
|
|
7682
7931
|
}) {
|
|
7683
7932
|
const isDark = variant === "dark";
|
|
7684
7933
|
const getTierClass = (highlighted) => {
|
|
7685
|
-
if (highlighted) return isDark ?
|
|
7686
|
-
return isDark ?
|
|
7934
|
+
if (highlighted) return isDark ? __default69.tierDarkHighlighted : __default69.tierHighlighted;
|
|
7935
|
+
return isDark ? __default69.tierDark : __default69.tierDefault;
|
|
7687
7936
|
};
|
|
7688
7937
|
const getNameClass = (highlighted) => {
|
|
7689
|
-
if (highlighted) return isDark ?
|
|
7690
|
-
return isDark ?
|
|
7938
|
+
if (highlighted) return isDark ? __default69.tierNameHighlightedDark : __default69.tierNameHighlightedLight;
|
|
7939
|
+
return isDark ? __default69.tierNameDark : __default69.tierNameMuted;
|
|
7691
7940
|
};
|
|
7692
7941
|
const getPeriodClass = (highlighted) => {
|
|
7693
|
-
if (highlighted) return isDark ?
|
|
7694
|
-
return isDark ?
|
|
7942
|
+
if (highlighted) return isDark ? __default69.periodHighlightedDark : __default69.periodHighlightedLight;
|
|
7943
|
+
return isDark ? __default69.periodDark : __default69.periodMuted;
|
|
7695
7944
|
};
|
|
7696
7945
|
const getDescClass = (highlighted) => {
|
|
7697
|
-
if (highlighted) return isDark ?
|
|
7698
|
-
return isDark ?
|
|
7946
|
+
if (highlighted) return isDark ? __default69.tierDescHighlightedDark : __default69.tierDescHighlightedLight;
|
|
7947
|
+
return isDark ? __default69.tierDescDark : __default69.tierDescMuted;
|
|
7699
7948
|
};
|
|
7700
7949
|
const getCheckClass = (highlighted) => {
|
|
7701
|
-
if (highlighted) return isDark ?
|
|
7702
|
-
return isDark ?
|
|
7950
|
+
if (highlighted) return isDark ? __default69.checkHighlightedDark : __default69.checkHighlightedLight;
|
|
7951
|
+
return isDark ? __default69.checkDark : __default69.checkDefault;
|
|
7703
7952
|
};
|
|
7704
7953
|
const getFeatureTextClass = (highlighted) => {
|
|
7705
|
-
if (highlighted) return isDark ?
|
|
7706
|
-
return isDark ?
|
|
7954
|
+
if (highlighted) return isDark ? __default69.featureTextHighlightedDark : __default69.featureTextHighlightedLight;
|
|
7955
|
+
return isDark ? __default69.featureTextDark : __default69.featureTextMuted;
|
|
7707
7956
|
};
|
|
7708
7957
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7709
7958
|
"section",
|
|
7710
7959
|
{
|
|
7711
|
-
className: `${
|
|
7960
|
+
className: `${__default69.root} ${isDark ? __default69.dark : __default69.light}${className ? ` ${className}` : ""}`,
|
|
7712
7961
|
children: [
|
|
7713
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7714
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: `${
|
|
7715
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${
|
|
7962
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default69.headingSection, children: [
|
|
7963
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: `${__default69.heading} ${isDark ? __default69.headingDark : __default69.headingLight}`, children: heading }),
|
|
7964
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${__default69.subtitle} ${isDark ? __default69.subtitleDark : __default69.subtitleLight}`, children: subtitle })
|
|
7716
7965
|
] }),
|
|
7717
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
7966
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default69.tiersGrid, children: tiers.map((tier, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7718
7967
|
"div",
|
|
7719
7968
|
{
|
|
7720
7969
|
className: getTierClass(tier.highlighted),
|
|
7721
7970
|
children: [
|
|
7722
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
7723
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7971
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default69.tierName, children: /* @__PURE__ */ jsxRuntime.jsx("h3", { className: getNameClass(tier.highlighted), children: tier.name }) }),
|
|
7972
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default69.price, children: [
|
|
7724
7973
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: tier.price }),
|
|
7725
|
-
tier.period && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `${
|
|
7974
|
+
tier.period && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `${__default69.period} ${getPeriodClass(tier.highlighted)}`, children: tier.period })
|
|
7726
7975
|
] }),
|
|
7727
|
-
tier.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${
|
|
7728
|
-
/* @__PURE__ */ jsxRuntime.jsx("ul", { className:
|
|
7976
|
+
tier.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${__default69.tierDesc} ${getDescClass(tier.highlighted)}`, children: tier.description }),
|
|
7977
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: __default69.featureList, children: tier.features.map((feature, fi) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: __default69.featureItem, children: [
|
|
7729
7978
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7730
7979
|
"svg",
|
|
7731
7980
|
{
|
|
@@ -7733,13 +7982,13 @@ function PromoPricing({
|
|
|
7733
7982
|
height: "16",
|
|
7734
7983
|
viewBox: "0 0 16 16",
|
|
7735
7984
|
fill: "none",
|
|
7736
|
-
className: `${
|
|
7985
|
+
className: `${__default69.checkIcon} ${getCheckClass(tier.highlighted)}`,
|
|
7737
7986
|
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3.5 8.5L6.5 11.5L12.5 4.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
7738
7987
|
}
|
|
7739
7988
|
),
|
|
7740
7989
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: getFeatureTextClass(tier.highlighted), children: feature })
|
|
7741
7990
|
] }, fi)) }),
|
|
7742
|
-
tier.cta && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
7991
|
+
tier.cta && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default69.ctaWrap, children: tier.cta })
|
|
7743
7992
|
]
|
|
7744
7993
|
},
|
|
7745
7994
|
i
|
|
@@ -7897,7 +8146,7 @@ __styleInject(`.PromoActionCards-module_root {
|
|
|
7897
8146
|
.PromoActionCards-module_ctaBtn:hover {
|
|
7898
8147
|
opacity: 0.9;
|
|
7899
8148
|
}`);
|
|
7900
|
-
var
|
|
8149
|
+
var __default70 = { "root": "PromoActionCards-module_root", "header": "PromoActionCards-module_header", "heading": "PromoActionCards-module_heading", "subtitle": "PromoActionCards-module_subtitle", "grid2": "PromoActionCards-module_grid2 PromoActionCards-module_grid", "grid3": "PromoActionCards-module_grid3 PromoActionCards-module_grid", "card": "PromoActionCards-module_card", "cardContent": "PromoActionCards-module_cardContent", "cardTitle": "PromoActionCards-module_cardTitle", "cardDesc": "PromoActionCards-module_cardDesc", "cardFooter": "PromoActionCards-module_cardFooter", "iconGroup": "PromoActionCards-module_iconGroup", "iconCircle": "PromoActionCards-module_iconCircle", "ctaBtn": "PromoActionCards-module_ctaBtn" };
|
|
7901
8150
|
function PromoActionCards({
|
|
7902
8151
|
heading,
|
|
7903
8152
|
subtitle,
|
|
@@ -7905,28 +8154,28 @@ function PromoActionCards({
|
|
|
7905
8154
|
columns = 3,
|
|
7906
8155
|
className = ""
|
|
7907
8156
|
}) {
|
|
7908
|
-
const gridClass = columns === 2 ?
|
|
7909
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${
|
|
7910
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7911
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
7912
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
8157
|
+
const gridClass = columns === 2 ? __default70.grid2 : __default70.grid3;
|
|
8158
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${__default70.root}${className ? ` ${className}` : ""}`, children: [
|
|
8159
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default70.header, children: [
|
|
8160
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: __default70.heading, children: heading }),
|
|
8161
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default70.subtitle, children: subtitle })
|
|
7913
8162
|
] }),
|
|
7914
8163
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: gridClass, children: cards.map((card, i) => {
|
|
7915
8164
|
var _a;
|
|
7916
8165
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7917
8166
|
"div",
|
|
7918
8167
|
{
|
|
7919
|
-
className:
|
|
8168
|
+
className: __default70.card,
|
|
7920
8169
|
children: [
|
|
7921
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7922
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
7923
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
8170
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default70.cardContent, children: [
|
|
8171
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: __default70.cardTitle, children: card.title }),
|
|
8172
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default70.cardDesc, children: card.description })
|
|
7924
8173
|
] }),
|
|
7925
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
7926
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8174
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default70.cardFooter, children: [
|
|
8175
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default70.iconGroup, children: (_a = card.icons) == null ? void 0 : _a.map((icon, ii) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7927
8176
|
"span",
|
|
7928
8177
|
{
|
|
7929
|
-
className:
|
|
8178
|
+
className: __default70.iconCircle,
|
|
7930
8179
|
children: icon
|
|
7931
8180
|
},
|
|
7932
8181
|
ii
|
|
@@ -7935,7 +8184,7 @@ function PromoActionCards({
|
|
|
7935
8184
|
"button",
|
|
7936
8185
|
{
|
|
7937
8186
|
onClick: card.cta.onClick,
|
|
7938
|
-
className:
|
|
8187
|
+
className: __default70.ctaBtn,
|
|
7939
8188
|
children: [
|
|
7940
8189
|
card.cta.label,
|
|
7941
8190
|
/* @__PURE__ */ jsxRuntime.jsx("svg", { width: "11", height: "11", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4.5 2.5l4 3.5-4 3.5" }) })
|
|
@@ -8058,7 +8307,7 @@ __styleInject(`.ArticleHero-module_root {
|
|
|
8058
8307
|
color: rgba(255, 255, 255, 0.9);
|
|
8059
8308
|
line-height: 22.5px;
|
|
8060
8309
|
}`);
|
|
8061
|
-
var
|
|
8310
|
+
var __default71 = { "root": "ArticleHero-module_root", "bgLayer": "ArticleHero-module_bgLayer", "bgImage": "ArticleHero-module_bgImage", "overlay": "ArticleHero-module_overlay", "topBar": "ArticleHero-module_topBar", "logo": "ArticleHero-module_logo", "divider": "ArticleHero-module_divider", "nav": "ArticleHero-module_nav", "bottom": "ArticleHero-module_bottom", "category": "ArticleHero-module_category", "title": "ArticleHero-module_title", "subtitle": "ArticleHero-module_subtitle" };
|
|
8062
8311
|
var DEFAULT_BG = "https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&h=900&fit=crop&q=80";
|
|
8063
8312
|
function ArticleHero({
|
|
8064
8313
|
category,
|
|
@@ -8070,20 +8319,20 @@ function ArticleHero({
|
|
|
8070
8319
|
className = ""
|
|
8071
8320
|
}) {
|
|
8072
8321
|
const bgSrc = backgroundImage != null ? backgroundImage : DEFAULT_BG;
|
|
8073
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${
|
|
8074
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8075
|
-
/* @__PURE__ */ jsxRuntime.jsx("img", { src: bgSrc, alt: "", className:
|
|
8076
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8322
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: `${__default71.root}${className ? ` ${className}` : ""}`, children: [
|
|
8323
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default71.bgLayer, children: [
|
|
8324
|
+
/* @__PURE__ */ jsxRuntime.jsx("img", { src: bgSrc, alt: "", className: __default71.bgImage }),
|
|
8325
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default71.overlay })
|
|
8077
8326
|
] }),
|
|
8078
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8079
|
-
logo && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8080
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8081
|
-
nav && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8327
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default71.topBar, children: [
|
|
8328
|
+
logo && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default71.logo, children: logo }),
|
|
8329
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default71.divider }),
|
|
8330
|
+
nav && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default71.nav, children: nav })
|
|
8082
8331
|
] }),
|
|
8083
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8084
|
-
category && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
8085
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
8086
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
8332
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default71.bottom, children: [
|
|
8333
|
+
category && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default71.category, children: category }),
|
|
8334
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: __default71.title, children: title }),
|
|
8335
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default71.subtitle, children: subtitle })
|
|
8087
8336
|
] })
|
|
8088
8337
|
] });
|
|
8089
8338
|
}
|
|
@@ -8095,9 +8344,9 @@ __styleInject(`.ArticleBody-module_root {
|
|
|
8095
8344
|
color: var(--fg-secondary);
|
|
8096
8345
|
font-weight: 400;
|
|
8097
8346
|
}`);
|
|
8098
|
-
var
|
|
8347
|
+
var __default72 = { "root": "ArticleBody-module_root" };
|
|
8099
8348
|
function ArticleBody({ children, className = "" }) {
|
|
8100
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
8349
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default72.root}${className ? ` ${className}` : ""}`, children });
|
|
8101
8350
|
}
|
|
8102
8351
|
|
|
8103
8352
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/templates/ArticleHeading.module.scss
|
|
@@ -8140,10 +8389,10 @@ __styleInject(`.ArticleHeading-module_root {
|
|
|
8140
8389
|
line-height: 1.25rem;
|
|
8141
8390
|
color: var(--fg-muted);
|
|
8142
8391
|
}`);
|
|
8143
|
-
var
|
|
8392
|
+
var __default73 = { "root": "ArticleHeading-module_root", "header": "ArticleHeading-module_header", "h2": "ArticleHeading-module_h2", "h3": "ArticleHeading-module_h3", "action": "ArticleHeading-module_action", "subtitle": "ArticleHeading-module_subtitle" };
|
|
8144
8393
|
var levelClass = {
|
|
8145
|
-
2:
|
|
8146
|
-
3:
|
|
8394
|
+
2: __default73.h2,
|
|
8395
|
+
3: __default73.h3
|
|
8147
8396
|
};
|
|
8148
8397
|
function ArticleHeading({
|
|
8149
8398
|
level = 2,
|
|
@@ -8153,12 +8402,12 @@ function ArticleHeading({
|
|
|
8153
8402
|
className = ""
|
|
8154
8403
|
}) {
|
|
8155
8404
|
const Tag2 = `h${level}`;
|
|
8156
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
8157
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8405
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default73.root}${className ? ` ${className}` : ""}`, children: [
|
|
8406
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default73.header, children: [
|
|
8158
8407
|
/* @__PURE__ */ jsxRuntime.jsx(Tag2, { className: levelClass[level], children }),
|
|
8159
|
-
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8408
|
+
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default73.action, children: action })
|
|
8160
8409
|
] }),
|
|
8161
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
8410
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default73.subtitle, children: subtitle })
|
|
8162
8411
|
] });
|
|
8163
8412
|
}
|
|
8164
8413
|
|
|
@@ -8234,7 +8483,7 @@ __styleInject(`.ArticleFigure-module_root {
|
|
|
8234
8483
|
line-height: 1.25rem;
|
|
8235
8484
|
color: var(--fg-muted);
|
|
8236
8485
|
}`);
|
|
8237
|
-
var
|
|
8486
|
+
var __default74 = { "root": "ArticleFigure-module_root", "imageWrapper": "ArticleFigure-module_imageWrapper", "image": "ArticleFigure-module_image", "childWrapper": "ArticleFigure-module_childWrapper", "placeholder": "ArticleFigure-module_placeholder", "placeholderText": "ArticleFigure-module_placeholderText", "legend": "ArticleFigure-module_legend", "legendItem": "ArticleFigure-module_legendItem", "legendSwatch": "ArticleFigure-module_legendSwatch", "legendLabel": "ArticleFigure-module_legendLabel", "caption": "ArticleFigure-module_caption" };
|
|
8238
8487
|
function ArticleFigure({
|
|
8239
8488
|
src,
|
|
8240
8489
|
alt = "",
|
|
@@ -8244,35 +8493,35 @@ function ArticleFigure({
|
|
|
8244
8493
|
children,
|
|
8245
8494
|
className = ""
|
|
8246
8495
|
}) {
|
|
8247
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("figure", { className: `${
|
|
8496
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("figure", { className: `${__default74.root}${className ? ` ${className}` : ""}`, children: [
|
|
8248
8497
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8249
8498
|
"div",
|
|
8250
8499
|
{
|
|
8251
|
-
className:
|
|
8500
|
+
className: __default74.imageWrapper,
|
|
8252
8501
|
style: { minHeight: height },
|
|
8253
8502
|
children: src ? (
|
|
8254
8503
|
// eslint-disable-next-line @next/next/no-img-element
|
|
8255
|
-
/* @__PURE__ */ jsxRuntime.jsx("img", { src, alt, className:
|
|
8256
|
-
) : children ? /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8504
|
+
/* @__PURE__ */ jsxRuntime.jsx("img", { src, alt, className: __default74.image })
|
|
8505
|
+
) : children ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default74.childWrapper, children }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default74.placeholder, children: [
|
|
8257
8506
|
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "48", height: "48", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [
|
|
8258
8507
|
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
8259
8508
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3 16l5-5 4 4 4-6 5 7" })
|
|
8260
8509
|
] }),
|
|
8261
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
8510
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default74.placeholderText, children: "Figure placeholder" })
|
|
8262
8511
|
] })
|
|
8263
8512
|
}
|
|
8264
8513
|
),
|
|
8265
|
-
legend && legend.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8514
|
+
legend && legend.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default74.legend, children: legend.map((item) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default74.legendItem, children: [
|
|
8266
8515
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8267
8516
|
"span",
|
|
8268
8517
|
{
|
|
8269
|
-
className:
|
|
8518
|
+
className: __default74.legendSwatch,
|
|
8270
8519
|
style: { backgroundColor: item.color }
|
|
8271
8520
|
}
|
|
8272
8521
|
),
|
|
8273
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
8522
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default74.legendLabel, children: item.label })
|
|
8274
8523
|
] }, item.label)) }),
|
|
8275
|
-
caption && /* @__PURE__ */ jsxRuntime.jsx("figcaption", { className:
|
|
8524
|
+
caption && /* @__PURE__ */ jsxRuntime.jsx("figcaption", { className: __default74.caption, children: caption })
|
|
8276
8525
|
] });
|
|
8277
8526
|
}
|
|
8278
8527
|
|
|
@@ -8365,7 +8614,7 @@ __styleInject(`.ArticleTable-module_root {
|
|
|
8365
8614
|
.ArticleTable-module_showMore:hover {
|
|
8366
8615
|
color: var(--fg);
|
|
8367
8616
|
}`);
|
|
8368
|
-
var
|
|
8617
|
+
var __default75 = { "root": "ArticleTable-module_root", "headerRow": "ArticleTable-module_headerRow", "rankCell": "ArticleTable-module_rankCell", "headerCell": "ArticleTable-module_headerCell", "headerLabel": "ArticleTable-module_headerLabel", "row": "ArticleTable-module_row", "rankValue": "ArticleTable-module_rankValue", "cell": "ArticleTable-module_cell", "cellText": "ArticleTable-module_cellText", "badge": "ArticleTable-module_badge", "showMore": "ArticleTable-module_showMore" };
|
|
8369
8618
|
function ArticleTable({
|
|
8370
8619
|
columns,
|
|
8371
8620
|
rows,
|
|
@@ -8377,19 +8626,19 @@ function ArticleTable({
|
|
|
8377
8626
|
const limit = initialVisible != null ? initialVisible : rows.length;
|
|
8378
8627
|
const visibleRows = expanded ? rows : rows.slice(0, limit);
|
|
8379
8628
|
const hiddenCount = rows.length - limit;
|
|
8380
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
8381
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8382
|
-
showRank && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8383
|
-
columns.map((col) => /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8629
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default75.root}${className ? ` ${className}` : ""}`, children: [
|
|
8630
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default75.headerRow, children: [
|
|
8631
|
+
showRank && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default75.rankCell }),
|
|
8632
|
+
columns.map((col) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default75.headerCell, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default75.headerLabel, children: col.label }) }, col.key))
|
|
8384
8633
|
] }),
|
|
8385
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { children: visibleRows.map((row, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8386
|
-
showRank && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8634
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: visibleRows.map((row, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default75.row, children: [
|
|
8635
|
+
showRank && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default75.rankValue, children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: i + 1 }) }),
|
|
8387
8636
|
columns.map((col) => {
|
|
8388
8637
|
const value = row[col.key];
|
|
8389
8638
|
const hasBadge = row._badge && row._badgeColumn === col.key;
|
|
8390
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8391
|
-
col.render ? col.render(value, row) : /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
8392
|
-
hasBadge && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
8639
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default75.cell, children: [
|
|
8640
|
+
col.render ? col.render(value, row) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default75.cellText, children: String(value != null ? value : "") }),
|
|
8641
|
+
hasBadge && /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default75.badge, children: row._badge })
|
|
8393
8642
|
] }, col.key);
|
|
8394
8643
|
})
|
|
8395
8644
|
] }, i)) }),
|
|
@@ -8397,7 +8646,7 @@ function ArticleTable({
|
|
|
8397
8646
|
"button",
|
|
8398
8647
|
{
|
|
8399
8648
|
onClick: () => setExpanded(true),
|
|
8400
|
-
className:
|
|
8649
|
+
className: __default75.showMore,
|
|
8401
8650
|
children: [
|
|
8402
8651
|
"Show ",
|
|
8403
8652
|
hiddenCount,
|
|
@@ -8430,19 +8679,19 @@ __styleInject(`.ArticleList-module_root {
|
|
|
8430
8679
|
.ArticleList-module_item {
|
|
8431
8680
|
padding-left: 0.25rem;
|
|
8432
8681
|
}`);
|
|
8433
|
-
var
|
|
8682
|
+
var __default76 = { "root": "ArticleList-module_root", "ordered": "ArticleList-module_ordered", "unordered": "ArticleList-module_unordered", "item": "ArticleList-module_item" };
|
|
8434
8683
|
function ArticleList({
|
|
8435
8684
|
variant = "unordered",
|
|
8436
8685
|
items,
|
|
8437
8686
|
className = ""
|
|
8438
8687
|
}) {
|
|
8439
8688
|
const Tag2 = variant === "ordered" ? "ol" : "ul";
|
|
8440
|
-
const variantClass = variant === "ordered" ?
|
|
8689
|
+
const variantClass = variant === "ordered" ? __default76.ordered : __default76.unordered;
|
|
8441
8690
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8442
8691
|
Tag2,
|
|
8443
8692
|
{
|
|
8444
|
-
className: `${
|
|
8445
|
-
children: items.map((item, i) => /* @__PURE__ */ jsxRuntime.jsx("li", { className:
|
|
8693
|
+
className: `${__default76.root} ${variantClass}${className ? ` ${className}` : ""}`,
|
|
8694
|
+
children: items.map((item, i) => /* @__PURE__ */ jsxRuntime.jsx("li", { className: __default76.item, children: item }, i))
|
|
8446
8695
|
}
|
|
8447
8696
|
);
|
|
8448
8697
|
}
|
|
@@ -8454,9 +8703,9 @@ __styleInject(`.ArticleNote-module_root {
|
|
|
8454
8703
|
color: var(--fg-secondary);
|
|
8455
8704
|
font-style: italic;
|
|
8456
8705
|
}`);
|
|
8457
|
-
var
|
|
8706
|
+
var __default77 = { "root": "ArticleNote-module_root" };
|
|
8458
8707
|
function ArticleNote({ children, className = "" }) {
|
|
8459
|
-
return /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${
|
|
8708
|
+
return /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${__default77.root}${className ? ` ${className}` : ""}`, children });
|
|
8460
8709
|
}
|
|
8461
8710
|
|
|
8462
8711
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/templates/ArticleChatBlock.module.scss
|
|
@@ -8569,11 +8818,11 @@ __styleInject(`.ArticleChatBlock-module_root {
|
|
|
8569
8818
|
.ArticleChatBlock-module_showMoreBtn:hover {
|
|
8570
8819
|
color: var(--fg);
|
|
8571
8820
|
}`);
|
|
8572
|
-
var
|
|
8821
|
+
var __default78 = { "root": "ArticleChatBlock-module_root", "assistant": "ArticleChatBlock-module_assistant", "system": "ArticleChatBlock-module_system", "user": "ArticleChatBlock-module_user", "header": "ArticleChatBlock-module_header", "roleLabel": "ArticleChatBlock-module_roleLabel", "toolBadge": "ArticleChatBlock-module_toolBadge", "toolBadgeInner": "ArticleChatBlock-module_toolBadgeInner", "toolDot": "ArticleChatBlock-module_toolDot", "toolLabel": "ArticleChatBlock-module_toolLabel", "divider": "ArticleChatBlock-module_divider", "contentWrapper": "ArticleChatBlock-module_contentWrapper", "content": "ArticleChatBlock-module_content", "fadeOverlay": "ArticleChatBlock-module_fadeOverlay", "fadeGradient": "ArticleChatBlock-module_fadeGradient", "showMoreBar": "ArticleChatBlock-module_showMoreBar", "showMoreBtn": "ArticleChatBlock-module_showMoreBtn" };
|
|
8573
8822
|
var roleConfig = {
|
|
8574
|
-
assistant: { cls:
|
|
8575
|
-
system: { cls:
|
|
8576
|
-
user: { cls:
|
|
8823
|
+
assistant: { cls: __default78.assistant, gradient: "var(--bg-secondary)" },
|
|
8824
|
+
system: { cls: __default78.system, gradient: "var(--bg-tertiary)" },
|
|
8825
|
+
user: { cls: __default78.user, gradient: "var(--bg-secondary)" }
|
|
8577
8826
|
};
|
|
8578
8827
|
function ArticleChatBlock({
|
|
8579
8828
|
role,
|
|
@@ -8587,40 +8836,40 @@ function ArticleChatBlock({
|
|
|
8587
8836
|
var _a;
|
|
8588
8837
|
const [expanded, setExpanded] = react.useState(false);
|
|
8589
8838
|
const config = (_a = roleConfig[role]) != null ? _a : roleConfig.assistant;
|
|
8590
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
8591
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8839
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default78.root} ${config.cls}${className ? ` ${className}` : ""}`, children: [
|
|
8840
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default78.header, children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: __default78.roleLabel, children: [
|
|
8592
8841
|
role,
|
|
8593
8842
|
model && ` \u2022 ${model}`
|
|
8594
8843
|
] }) }),
|
|
8595
|
-
toolCall && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8596
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
8597
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
8844
|
+
toolCall && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default78.toolBadge, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default78.toolBadgeInner, children: [
|
|
8845
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default78.toolDot }),
|
|
8846
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default78.toolLabel, children: toolCall })
|
|
8598
8847
|
] }) }),
|
|
8599
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8600
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8848
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default78.divider }),
|
|
8849
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default78.contentWrapper, children: [
|
|
8601
8850
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8602
8851
|
"div",
|
|
8603
8852
|
{
|
|
8604
|
-
className:
|
|
8853
|
+
className: __default78.content,
|
|
8605
8854
|
style: collapsible && !expanded ? { maxHeight: collapsedHeight, overflow: "hidden" } : void 0,
|
|
8606
8855
|
children
|
|
8607
8856
|
}
|
|
8608
8857
|
),
|
|
8609
|
-
collapsible && !expanded && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8858
|
+
collapsible && !expanded && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default78.fadeOverlay, children: [
|
|
8610
8859
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8611
8860
|
"div",
|
|
8612
8861
|
{
|
|
8613
|
-
className:
|
|
8862
|
+
className: __default78.fadeGradient,
|
|
8614
8863
|
style: {
|
|
8615
8864
|
background: `linear-gradient(to top, ${config.gradient}, transparent)`
|
|
8616
8865
|
}
|
|
8617
8866
|
}
|
|
8618
8867
|
),
|
|
8619
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
8868
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default78.showMoreBar} ${config.cls}`, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8620
8869
|
"button",
|
|
8621
8870
|
{
|
|
8622
8871
|
onClick: () => setExpanded(true),
|
|
8623
|
-
className:
|
|
8872
|
+
className: __default78.showMoreBtn,
|
|
8624
8873
|
children: "Show more"
|
|
8625
8874
|
}
|
|
8626
8875
|
) })
|
|
@@ -8652,14 +8901,14 @@ __styleInject(`.ArticleLinkButton-module_root {
|
|
|
8652
8901
|
.ArticleLinkButton-module_root:active {
|
|
8653
8902
|
opacity: 0.8;
|
|
8654
8903
|
}`);
|
|
8655
|
-
var
|
|
8904
|
+
var __default79 = { "root": "ArticleLinkButton-module_root" };
|
|
8656
8905
|
function ArticleLinkButton({
|
|
8657
8906
|
children,
|
|
8658
8907
|
href,
|
|
8659
8908
|
onClick,
|
|
8660
8909
|
className = ""
|
|
8661
8910
|
}) {
|
|
8662
|
-
const cls = `${
|
|
8911
|
+
const cls = `${__default79.root}${className ? ` ${className}` : ""}`;
|
|
8663
8912
|
if (href) {
|
|
8664
8913
|
return /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: cls, children });
|
|
8665
8914
|
}
|
|
@@ -8696,18 +8945,18 @@ __styleInject(`.ArticleFooter-module_root {
|
|
|
8696
8945
|
line-height: 1.25rem;
|
|
8697
8946
|
color: var(--fg-muted);
|
|
8698
8947
|
}`);
|
|
8699
|
-
var
|
|
8948
|
+
var __default80 = { "root": "ArticleFooter-module_root", "topBar": "ArticleFooter-module_topBar", "logo": "ArticleFooter-module_logo", "divider": "ArticleFooter-module_divider", "copyright": "ArticleFooter-module_copyright" };
|
|
8700
8949
|
function ArticleFooter({
|
|
8701
8950
|
logo,
|
|
8702
8951
|
copyright = `\xA9 ${(/* @__PURE__ */ new Date()).getFullYear()} All rights reserved.`,
|
|
8703
8952
|
className = ""
|
|
8704
8953
|
}) {
|
|
8705
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("footer", { className: `${
|
|
8706
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8707
|
-
logo && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8708
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8954
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("footer", { className: `${__default80.root}${className ? ` ${className}` : ""}`, children: [
|
|
8955
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default80.topBar, children: [
|
|
8956
|
+
logo && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default80.logo, children: logo }),
|
|
8957
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default80.divider })
|
|
8709
8958
|
] }),
|
|
8710
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
8959
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: __default80.copyright, children: copyright })
|
|
8711
8960
|
] });
|
|
8712
8961
|
}
|
|
8713
8962
|
|
|
@@ -8730,15 +8979,15 @@ __styleInject(`.ArticleLayout-module_root {
|
|
|
8730
8979
|
width: 100%;
|
|
8731
8980
|
max-width: 720px;
|
|
8732
8981
|
}`);
|
|
8733
|
-
var
|
|
8982
|
+
var __default81 = { "root": "ArticleLayout-module_root", "wide": "ArticleLayout-module_wide", "narrow": "ArticleLayout-module_narrow" };
|
|
8734
8983
|
function ArticleLayout({ children, className = "" }) {
|
|
8735
|
-
return /* @__PURE__ */ jsxRuntime.jsx("article", { className: `${
|
|
8984
|
+
return /* @__PURE__ */ jsxRuntime.jsx("article", { className: `${__default81.root}${className ? ` ${className}` : ""}`, children });
|
|
8736
8985
|
}
|
|
8737
8986
|
function ArticleWide({ children, className = "" }) {
|
|
8738
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
8987
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default81.wide}${className ? ` ${className}` : ""}`, children });
|
|
8739
8988
|
}
|
|
8740
8989
|
function ArticleNarrow({ children, className = "" }) {
|
|
8741
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${
|
|
8990
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${__default81.narrow}${className ? ` ${className}` : ""}`, children });
|
|
8742
8991
|
}
|
|
8743
8992
|
|
|
8744
8993
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/templates/ArticleChart.module.scss
|
|
@@ -8825,7 +9074,7 @@ __styleInject(`.ArticleChart-module_figure {
|
|
|
8825
9074
|
line-height: 1rem;
|
|
8826
9075
|
color: var(--fg-secondary);
|
|
8827
9076
|
}`);
|
|
8828
|
-
var
|
|
9077
|
+
var __default82 = { "figure": "ArticleChart-module_figure", "chartWrapper": "ArticleChart-module_chartWrapper", "tooltip": "ArticleChart-module_tooltip", "tooltipLabel": "ArticleChart-module_tooltipLabel", "tooltipRow": "ArticleChart-module_tooltipRow", "tooltipDot": "ArticleChart-module_tooltipDot", "tooltipName": "ArticleChart-module_tooltipName", "tooltipValue": "ArticleChart-module_tooltipValue", "scatterTooltipLabel": "ArticleChart-module_scatterTooltipLabel", "scatterTooltipRow": "ArticleChart-module_scatterTooltipRow", "legend": "ArticleChart-module_legend", "legendItem": "ArticleChart-module_legendItem", "legendSwatch": "ArticleChart-module_legendSwatch", "legendLabel": "ArticleChart-module_legendLabel" };
|
|
8829
9078
|
function ChartTooltip({
|
|
8830
9079
|
active,
|
|
8831
9080
|
payload,
|
|
@@ -8836,15 +9085,15 @@ function ChartTooltip({
|
|
|
8836
9085
|
}) {
|
|
8837
9086
|
if (!active || !(payload == null ? void 0 : payload.length)) return null;
|
|
8838
9087
|
const fmt = valueFormatter != null ? valueFormatter : ((v) => String(v));
|
|
8839
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8840
|
-
label !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs("p", { className:
|
|
9088
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default82.tooltip, children: [
|
|
9089
|
+
label !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: __default82.tooltipLabel, children: [
|
|
8841
9090
|
xLabel ? `${xLabel}: ` : "",
|
|
8842
9091
|
label
|
|
8843
9092
|
] }),
|
|
8844
|
-
payload.map((entry, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8845
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
8846
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
8847
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
9093
|
+
payload.map((entry, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default82.tooltipRow, children: [
|
|
9094
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default82.tooltipDot, style: { backgroundColor: entry.color } }),
|
|
9095
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default82.tooltipName, children: entry.name }),
|
|
9096
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default82.tooltipValue, children: yLabel ? `${fmt(entry.value)} ` : fmt(entry.value) })
|
|
8848
9097
|
] }, i))
|
|
8849
9098
|
] });
|
|
8850
9099
|
}
|
|
@@ -8858,8 +9107,8 @@ function ArticleLineChart({
|
|
|
8858
9107
|
valueFormatter,
|
|
8859
9108
|
className = ""
|
|
8860
9109
|
}) {
|
|
8861
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("figure", { className: `${
|
|
8862
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9110
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("figure", { className: `${__default82.figure}${className ? ` ${className}` : ""}`, children: [
|
|
9111
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default82.chartWrapper, style: { height }, children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.LineChart, { data, margin: { top: 8, right: 16, bottom: 4, left: 8 }, children: [
|
|
8863
9112
|
/* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { strokeDasharray: "3 3", stroke: "var(--border-color)" }),
|
|
8864
9113
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8865
9114
|
recharts.XAxis,
|
|
@@ -8909,9 +9158,9 @@ function ArticleLineChart({
|
|
|
8909
9158
|
s.dataKey
|
|
8910
9159
|
))
|
|
8911
9160
|
] }) }) }),
|
|
8912
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8913
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
8914
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
9161
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default82.legend, children: series.map((s) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default82.legendItem, children: [
|
|
9162
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default82.legendSwatch, style: { backgroundColor: s.color } }),
|
|
9163
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default82.legendLabel, children: s.name })
|
|
8915
9164
|
] }, s.dataKey)) })
|
|
8916
9165
|
] });
|
|
8917
9166
|
}
|
|
@@ -8926,8 +9175,8 @@ function ArticleBarChart({
|
|
|
8926
9175
|
valueFormatter,
|
|
8927
9176
|
className = ""
|
|
8928
9177
|
}) {
|
|
8929
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("figure", { className: `${
|
|
8930
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9178
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("figure", { className: `${__default82.figure}${className ? ` ${className}` : ""}`, children: [
|
|
9179
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default82.chartWrapper, style: { height }, children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.BarChart, { data, margin: { top: 8, right: 16, bottom: 4, left: 8 }, children: [
|
|
8931
9180
|
/* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { strokeDasharray: "3 3", stroke: "var(--border-color)", vertical: false }),
|
|
8932
9181
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8933
9182
|
recharts.XAxis,
|
|
@@ -8975,9 +9224,9 @@ function ArticleBarChart({
|
|
|
8975
9224
|
s.dataKey
|
|
8976
9225
|
))
|
|
8977
9226
|
] }) }) }),
|
|
8978
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
8979
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
8980
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
9227
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default82.legend, children: series.map((s) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default82.legendItem, children: [
|
|
9228
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default82.legendSwatch, style: { backgroundColor: s.color } }),
|
|
9229
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: __default82.legendLabel, children: s.name })
|
|
8981
9230
|
] }, s.dataKey)) })
|
|
8982
9231
|
] });
|
|
8983
9232
|
}
|
|
@@ -8995,7 +9244,7 @@ function ArticleScatterChart({
|
|
|
8995
9244
|
var _a;
|
|
8996
9245
|
return (_a = d.color) != null ? _a : color;
|
|
8997
9246
|
});
|
|
8998
|
-
return /* @__PURE__ */ jsxRuntime.jsx("figure", { className: `${
|
|
9247
|
+
return /* @__PURE__ */ jsxRuntime.jsx("figure", { className: `${__default82.figure}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default82.chartWrapper, style: { height }, children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.ScatterChart, { margin: { top: 8, right: 16, bottom: 4, left: 8 }, children: [
|
|
8999
9248
|
/* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { strokeDasharray: "3 3", stroke: "var(--border-color)" }),
|
|
9000
9249
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9001
9250
|
recharts.XAxis,
|
|
@@ -9031,14 +9280,14 @@ function ArticleScatterChart({
|
|
|
9031
9280
|
if (!active || !(payload == null ? void 0 : payload.length)) return null;
|
|
9032
9281
|
const point = (_a = payload[0]) == null ? void 0 : _a.payload;
|
|
9033
9282
|
const fmt = valueFormatter != null ? valueFormatter : ((v) => String(v));
|
|
9034
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
9035
|
-
point.label && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
9036
|
-
xLabel && /* @__PURE__ */ jsxRuntime.jsxs("p", { className:
|
|
9283
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default82.tooltip, children: [
|
|
9284
|
+
point.label && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default82.scatterTooltipLabel, children: point.label }),
|
|
9285
|
+
xLabel && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: __default82.scatterTooltipRow, children: [
|
|
9037
9286
|
xLabel,
|
|
9038
9287
|
": ",
|
|
9039
9288
|
fmt(point.x)
|
|
9040
9289
|
] }),
|
|
9041
|
-
yLabel && /* @__PURE__ */ jsxRuntime.jsxs("p", { className:
|
|
9290
|
+
yLabel && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: __default82.scatterTooltipRow, children: [
|
|
9042
9291
|
yLabel,
|
|
9043
9292
|
": ",
|
|
9044
9293
|
fmt(point.y)
|
|
@@ -9115,7 +9364,7 @@ __styleInject(`.LandingLayout-module_headerMode {
|
|
|
9115
9364
|
padding-right: 4rem;
|
|
9116
9365
|
}
|
|
9117
9366
|
}`);
|
|
9118
|
-
var
|
|
9367
|
+
var __default83 = { "headerMode": "LandingLayout-module_headerMode", "headerMain": "LandingLayout-module_headerMain", "sidebarMode": "LandingLayout-module_sidebarMode", "sidebarNav": "LandingLayout-module_sidebarNav", "sidebarMain": "LandingLayout-module_sidebarMain", "sidebarContent": "LandingLayout-module_sidebarContent" };
|
|
9119
9368
|
function LandingLayout({
|
|
9120
9369
|
mode = "header",
|
|
9121
9370
|
nav,
|
|
@@ -9124,17 +9373,17 @@ function LandingLayout({
|
|
|
9124
9373
|
className = ""
|
|
9125
9374
|
}) {
|
|
9126
9375
|
if (mode === "sidebar") {
|
|
9127
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
9128
|
-
nav && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9129
|
-
/* @__PURE__ */ jsxRuntime.jsxs("main", { className:
|
|
9130
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
9376
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default83.sidebarMode}${className ? ` ${className}` : ""}`, children: [
|
|
9377
|
+
nav && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default83.sidebarNav, children: nav }),
|
|
9378
|
+
/* @__PURE__ */ jsxRuntime.jsxs("main", { className: __default83.sidebarMain, children: [
|
|
9379
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default83.sidebarContent, children }),
|
|
9131
9380
|
footer
|
|
9132
9381
|
] })
|
|
9133
9382
|
] });
|
|
9134
9383
|
}
|
|
9135
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${
|
|
9384
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default83.headerMode}${className ? ` ${className}` : ""}`, children: [
|
|
9136
9385
|
nav,
|
|
9137
|
-
/* @__PURE__ */ jsxRuntime.jsx("main", { className:
|
|
9386
|
+
/* @__PURE__ */ jsxRuntime.jsx("main", { className: __default83.headerMain, children }),
|
|
9138
9387
|
footer
|
|
9139
9388
|
] });
|
|
9140
9389
|
}
|
|
@@ -9187,6 +9436,7 @@ exports.IconWithText = IconWithText;
|
|
|
9187
9436
|
exports.IconlyActivity = IconlyActivity;
|
|
9188
9437
|
exports.IconlyAttach = IconlyAttach;
|
|
9189
9438
|
exports.IconlyBook = IconlyBook;
|
|
9439
|
+
exports.IconlyCategory = IconlyCategory;
|
|
9190
9440
|
exports.IconlyCheck = IconlyCheck;
|
|
9191
9441
|
exports.IconlyChevronDown = IconlyChevronDown;
|
|
9192
9442
|
exports.IconlyChevronLeft = IconlyChevronLeft;
|
|
@@ -9196,6 +9446,7 @@ exports.IconlyClose = IconlyClose;
|
|
|
9196
9446
|
exports.IconlyError = IconlyError;
|
|
9197
9447
|
exports.IconlyEye = IconlyEye;
|
|
9198
9448
|
exports.IconlyEyeOff = IconlyEyeOff;
|
|
9449
|
+
exports.IconlyFolder = IconlyFolder;
|
|
9199
9450
|
exports.IconlyHeart = IconlyHeart;
|
|
9200
9451
|
exports.IconlyInfo = IconlyInfo;
|
|
9201
9452
|
exports.IconlyInfoCircle = IconlyInfoCircle;
|
|
@@ -9209,6 +9460,7 @@ exports.IconlyRoadmap = IconlyRoadmap;
|
|
|
9209
9460
|
exports.IconlySandbox = IconlySandbox;
|
|
9210
9461
|
exports.IconlySearch = IconlySearch;
|
|
9211
9462
|
exports.IconlySend = IconlySend;
|
|
9463
|
+
exports.IconlySetting = IconlySetting;
|
|
9212
9464
|
exports.IconlyShield = IconlyShield;
|
|
9213
9465
|
exports.IconlySmile = IconlySmile;
|
|
9214
9466
|
exports.IconlyStar = IconlyStar;
|
|
@@ -9237,6 +9489,8 @@ exports.PromoTestimonials = PromoTestimonials;
|
|
|
9237
9489
|
exports.PromoTrustGrid = PromoTrustGrid;
|
|
9238
9490
|
exports.Radio = Radio;
|
|
9239
9491
|
exports.SearchBar = SearchBar;
|
|
9492
|
+
exports.SectionHeading = SectionHeading;
|
|
9493
|
+
exports.SegmentedControl = SegmentedControl;
|
|
9240
9494
|
exports.Select = Select;
|
|
9241
9495
|
exports.Sidebar = Sidebar;
|
|
9242
9496
|
exports.Skeleton = Skeleton;
|