@dmitriikapustin/ui 0.3.7 → 0.4.1
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 +833 -382
- package/dist/index.d.cts +63 -2
- package/dist/index.d.ts +63 -2
- package/dist/index.js +832 -386
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useState, useEffect, useId, useRef, useCallback } from 'react';
|
|
1
|
+
import { createContext, useState, useEffect, useId, useRef, useCallback, useContext } from 'react';
|
|
2
2
|
import Lottie from 'lottie-react';
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
|
-
import { ResponsiveContainer, LineChart, CartesianGrid, XAxis, YAxis, Tooltip as Tooltip$1, Line, BarChart, Bar, ScatterChart, Scatter, Cell } from 'recharts';
|
|
4
|
+
import { ResponsiveContainer, LineChart, CartesianGrid, XAxis, YAxis, Tooltip as Tooltip$1, Line, BarChart, Bar as Bar$1, ScatterChart, Scatter, Cell } from 'recharts';
|
|
5
5
|
|
|
6
6
|
if(typeof __styleInject==="undefined"){
|
|
7
7
|
var __styleInject=function(c){
|
|
@@ -555,6 +555,21 @@ var IconlyShield = ({ size = 24, color = "currentColor", className }) => /* @__P
|
|
|
555
555
|
/* @__PURE__ */ 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" }),
|
|
556
556
|
/* @__PURE__ */ 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" })
|
|
557
557
|
] }) });
|
|
558
|
+
var IconlyCategory = ({ size = 24, color = "currentColor", className }) => /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className, children: [
|
|
559
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "7.5", height: "7.5", rx: "2", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
560
|
+
/* @__PURE__ */ jsx("rect", { x: "13.5", y: "3", width: "7.5", height: "7.5", rx: "2", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
561
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "13.5", width: "7.5", height: "7.5", rx: "2", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
562
|
+
/* @__PURE__ */ jsx("rect", { x: "13.5", y: "13.5", width: "7.5", height: "7.5", rx: "2", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
563
|
+
] });
|
|
564
|
+
var IconlySetting = ({ size = 24, color = "currentColor", className }) => /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className, children: [
|
|
565
|
+
/* @__PURE__ */ 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" }),
|
|
566
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "2.5", stroke: color, strokeWidth: STROKE, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
567
|
+
] });
|
|
568
|
+
var IconlyFolder = ({ size = 24, color = "currentColor", className }) => /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className, children: /* @__PURE__ */ 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" }) });
|
|
569
|
+
var IconlyLink = ({ size = 24, color = "currentColor", className }) => /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className, children: [
|
|
570
|
+
/* @__PURE__ */ 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" }),
|
|
571
|
+
/* @__PURE__ */ 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" })
|
|
572
|
+
] });
|
|
558
573
|
var IconlySmile = IconlyActivity;
|
|
559
574
|
var IconlyAttach = IconlyActivity;
|
|
560
575
|
var IconlyInfo = IconlyActivity;
|
|
@@ -568,7 +583,6 @@ var IconlyInfoCircle = IconlyActivity;
|
|
|
568
583
|
var IconlySuccess = IconlyActivity;
|
|
569
584
|
var IconlyWarning = IconlyActivity;
|
|
570
585
|
var IconlyError = IconlyActivity;
|
|
571
|
-
var IconlyLink = IconlyActivity;
|
|
572
586
|
|
|
573
587
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/atoms/Tag.module.scss
|
|
574
588
|
__styleInject(`@charset "UTF-8";
|
|
@@ -3590,6 +3604,105 @@ function DropdownMenu({
|
|
|
3590
3604
|
] });
|
|
3591
3605
|
}
|
|
3592
3606
|
|
|
3607
|
+
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/molecules/SegmentedControl.module.scss
|
|
3608
|
+
__styleInject(`@charset "UTF-8";
|
|
3609
|
+
/* 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. */
|
|
3610
|
+
.SegmentedControl-module_root {
|
|
3611
|
+
display: inline-flex;
|
|
3612
|
+
align-items: stretch;
|
|
3613
|
+
border: 1px solid var(--border-color);
|
|
3614
|
+
border-radius: var(--radius-full);
|
|
3615
|
+
padding: 2px;
|
|
3616
|
+
background: var(--bg);
|
|
3617
|
+
line-height: 1;
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
/* \u2014 \u0420\u0430\u0437\u043C\u0435\u0440\u044B (parity \u0441 Button/Toggle) \u2014 */
|
|
3621
|
+
.SegmentedControl-module_sm {
|
|
3622
|
+
height: 28px;
|
|
3623
|
+
}
|
|
3624
|
+
.SegmentedControl-module_sm .SegmentedControl-module_segment {
|
|
3625
|
+
padding: 0 0.625rem;
|
|
3626
|
+
font-size: 11px;
|
|
3627
|
+
font-weight: 600;
|
|
3628
|
+
letter-spacing: 0.04em;
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
.SegmentedControl-module_md {
|
|
3632
|
+
height: 32px;
|
|
3633
|
+
}
|
|
3634
|
+
.SegmentedControl-module_md .SegmentedControl-module_segment {
|
|
3635
|
+
padding: 0 0.875rem;
|
|
3636
|
+
font-size: 13px;
|
|
3637
|
+
font-weight: 600;
|
|
3638
|
+
letter-spacing: -0.25px;
|
|
3639
|
+
}
|
|
3640
|
+
|
|
3641
|
+
/* \u2014 Segment (button) \u2014 */
|
|
3642
|
+
.SegmentedControl-module_segment {
|
|
3643
|
+
appearance: none;
|
|
3644
|
+
border: none;
|
|
3645
|
+
background: transparent;
|
|
3646
|
+
color: var(--fg-muted);
|
|
3647
|
+
border-radius: var(--radius-full);
|
|
3648
|
+
cursor: pointer;
|
|
3649
|
+
transition: color var(--transition-fast), background var(--transition-fast);
|
|
3650
|
+
}
|
|
3651
|
+
.SegmentedControl-module_segment:hover:not(.SegmentedControl-module_segmentActive):not(:disabled) {
|
|
3652
|
+
color: var(--fg);
|
|
3653
|
+
}
|
|
3654
|
+
.SegmentedControl-module_segment:focus-visible {
|
|
3655
|
+
outline: 2px solid var(--brand-primary);
|
|
3656
|
+
outline-offset: 2px;
|
|
3657
|
+
}
|
|
3658
|
+
.SegmentedControl-module_segment:disabled {
|
|
3659
|
+
cursor: not-allowed;
|
|
3660
|
+
opacity: 0.5;
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
.SegmentedControl-module_segmentActive {
|
|
3664
|
+
background: var(--fg);
|
|
3665
|
+
color: var(--bg);
|
|
3666
|
+
cursor: default;
|
|
3667
|
+
}`);
|
|
3668
|
+
var __default42 = { "root": "SegmentedControl-module_root", "sm": "SegmentedControl-module_sm", "segment": "SegmentedControl-module_segment", "md": "SegmentedControl-module_md", "segmentActive": "SegmentedControl-module_segmentActive" };
|
|
3669
|
+
function SegmentedControl({
|
|
3670
|
+
options,
|
|
3671
|
+
value,
|
|
3672
|
+
onChange,
|
|
3673
|
+
size = "md",
|
|
3674
|
+
ariaLabel,
|
|
3675
|
+
className = ""
|
|
3676
|
+
}) {
|
|
3677
|
+
return /* @__PURE__ */ jsx(
|
|
3678
|
+
"div",
|
|
3679
|
+
{
|
|
3680
|
+
role: "group",
|
|
3681
|
+
"aria-label": ariaLabel,
|
|
3682
|
+
className: `${__default42.root} ${__default42[size]}${className ? ` ${className}` : ""}`,
|
|
3683
|
+
children: options.map((option) => {
|
|
3684
|
+
const isActive = option.value === value;
|
|
3685
|
+
const isDisabled = option.disabled || false;
|
|
3686
|
+
return /* @__PURE__ */ jsx(
|
|
3687
|
+
"button",
|
|
3688
|
+
{
|
|
3689
|
+
type: "button",
|
|
3690
|
+
"aria-pressed": isActive,
|
|
3691
|
+
disabled: isDisabled,
|
|
3692
|
+
className: `${__default42.segment}${isActive ? ` ${__default42.segmentActive}` : ""}`,
|
|
3693
|
+
onClick: () => {
|
|
3694
|
+
if (isActive || isDisabled) return;
|
|
3695
|
+
onChange(option.value);
|
|
3696
|
+
},
|
|
3697
|
+
children: option.label
|
|
3698
|
+
},
|
|
3699
|
+
option.value
|
|
3700
|
+
);
|
|
3701
|
+
})
|
|
3702
|
+
}
|
|
3703
|
+
);
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3593
3706
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/organisms/Header.module.scss
|
|
3594
3707
|
__styleInject(`@charset "UTF-8";
|
|
3595
3708
|
/* Header \u2014 pill-style (border + radius + margin) by default */
|
|
@@ -3702,25 +3815,25 @@ __styleInject(`@charset "UTF-8";
|
|
|
3702
3815
|
padding-top: 1rem;
|
|
3703
3816
|
border-top: 1px solid var(--border-color);
|
|
3704
3817
|
}`);
|
|
3705
|
-
var
|
|
3818
|
+
var __default43 = { "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" };
|
|
3706
3819
|
function Header({ logo, navItems = [], actions, className = "" }) {
|
|
3707
3820
|
const [mobileOpen, setMobileOpen] = useState(false);
|
|
3708
|
-
return /* @__PURE__ */ jsxs("header", { className: `${
|
|
3709
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3710
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
3821
|
+
return /* @__PURE__ */ jsxs("header", { className: `${__default43.root}${className ? ` ${className}` : ""}`, children: [
|
|
3822
|
+
/* @__PURE__ */ jsx("div", { className: __default43.container, children: /* @__PURE__ */ jsxs("div", { className: __default43.bar, children: [
|
|
3823
|
+
/* @__PURE__ */ jsxs("div", { className: __default43.leftGroup, children: [
|
|
3711
3824
|
logo,
|
|
3712
|
-
/* @__PURE__ */ jsx("nav", { className:
|
|
3825
|
+
/* @__PURE__ */ jsx("nav", { className: __default43.desktopNav, children: navItems.map((item) => /* @__PURE__ */ jsx(
|
|
3713
3826
|
"a",
|
|
3714
3827
|
{
|
|
3715
3828
|
href: item.href,
|
|
3716
|
-
className:
|
|
3829
|
+
className: __default43.navLink,
|
|
3717
3830
|
children: item.label
|
|
3718
3831
|
},
|
|
3719
3832
|
item.label
|
|
3720
3833
|
)) })
|
|
3721
3834
|
] }),
|
|
3722
|
-
actions && /* @__PURE__ */ jsx("div", { className:
|
|
3723
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3835
|
+
actions && /* @__PURE__ */ jsx("div", { className: __default43.desktopActions, children: actions }),
|
|
3836
|
+
/* @__PURE__ */ jsx("div", { className: __default43.mobileToggle, children: /* @__PURE__ */ jsx(
|
|
3724
3837
|
IconButton,
|
|
3725
3838
|
{
|
|
3726
3839
|
variant: "primary",
|
|
@@ -3730,17 +3843,17 @@ function Header({ logo, navItems = [], actions, className = "" }) {
|
|
|
3730
3843
|
}
|
|
3731
3844
|
) })
|
|
3732
3845
|
] }) }),
|
|
3733
|
-
mobileOpen && /* @__PURE__ */ jsxs("div", { className:
|
|
3734
|
-
/* @__PURE__ */ jsx("nav", { className:
|
|
3846
|
+
mobileOpen && /* @__PURE__ */ jsxs("div", { className: __default43.mobileMenu, children: [
|
|
3847
|
+
/* @__PURE__ */ jsx("nav", { className: __default43.mobileNav, children: navItems.map((item) => /* @__PURE__ */ jsx(
|
|
3735
3848
|
"a",
|
|
3736
3849
|
{
|
|
3737
3850
|
href: item.href,
|
|
3738
|
-
className:
|
|
3851
|
+
className: __default43.navLink,
|
|
3739
3852
|
children: item.label
|
|
3740
3853
|
},
|
|
3741
3854
|
item.label
|
|
3742
3855
|
)) }),
|
|
3743
|
-
actions && /* @__PURE__ */ jsx("div", { className:
|
|
3856
|
+
actions && /* @__PURE__ */ jsx("div", { className: __default43.mobileActions, children: actions })
|
|
3744
3857
|
] })
|
|
3745
3858
|
] });
|
|
3746
3859
|
}
|
|
@@ -3874,7 +3987,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
3874
3987
|
.Footer-module_socialLink:hover {
|
|
3875
3988
|
color: var(--fg);
|
|
3876
3989
|
}`);
|
|
3877
|
-
var
|
|
3990
|
+
var __default44 = { "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" };
|
|
3878
3991
|
function Footer({
|
|
3879
3992
|
brand,
|
|
3880
3993
|
columns,
|
|
@@ -3885,24 +3998,24 @@ function Footer({
|
|
|
3885
3998
|
const hasBrand = !!(brand && (brand.logo || brand.tagline));
|
|
3886
3999
|
const hasGrid = hasBrand || columns && columns.length > 0;
|
|
3887
4000
|
const hasBottom = !!copyright || socials && socials.length > 0;
|
|
3888
|
-
return /* @__PURE__ */ jsx("footer", { className: `${
|
|
3889
|
-
hasGrid && /* @__PURE__ */ jsxs("div", { className:
|
|
3890
|
-
hasBrand && /* @__PURE__ */ jsxs("div", { className:
|
|
4001
|
+
return /* @__PURE__ */ jsx("footer", { className: `${__default44.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxs("div", { className: __default44.container, children: [
|
|
4002
|
+
hasGrid && /* @__PURE__ */ jsxs("div", { className: __default44.grid, children: [
|
|
4003
|
+
hasBrand && /* @__PURE__ */ jsxs("div", { className: __default44.brandCell, children: [
|
|
3891
4004
|
brand == null ? void 0 : brand.logo,
|
|
3892
|
-
(brand == null ? void 0 : brand.tagline) && /* @__PURE__ */ jsx("p", { className:
|
|
4005
|
+
(brand == null ? void 0 : brand.tagline) && /* @__PURE__ */ jsx("p", { className: __default44.tagline, children: brand.tagline })
|
|
3893
4006
|
] }),
|
|
3894
4007
|
columns == null ? void 0 : columns.map((col, ci) => /* @__PURE__ */ jsxs("div", { children: [
|
|
3895
|
-
/* @__PURE__ */ jsx("h4", { className:
|
|
3896
|
-
/* @__PURE__ */ jsx("ul", { className:
|
|
4008
|
+
/* @__PURE__ */ jsx("h4", { className: __default44.columnTitle, children: col.title }),
|
|
4009
|
+
/* @__PURE__ */ jsx("ul", { className: __default44.linkList, children: col.links.map((link, li) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: link.href, className: __default44.link, children: link.label }) }, `${ci}-${li}-${link.label}`)) })
|
|
3897
4010
|
] }, `${ci}-${col.title}`))
|
|
3898
4011
|
] }),
|
|
3899
|
-
hasBottom && /* @__PURE__ */ jsxs("div", { className:
|
|
3900
|
-
copyright && /* @__PURE__ */ jsx("p", { className:
|
|
3901
|
-
socials && socials.length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
4012
|
+
hasBottom && /* @__PURE__ */ jsxs("div", { className: __default44.bottom, children: [
|
|
4013
|
+
copyright && /* @__PURE__ */ jsx("p", { className: __default44.copyright, children: copyright }),
|
|
4014
|
+
socials && socials.length > 0 && /* @__PURE__ */ jsx("div", { className: __default44.socials, children: socials.map((social, si) => /* @__PURE__ */ jsx(
|
|
3902
4015
|
"a",
|
|
3903
4016
|
{
|
|
3904
4017
|
href: social.href,
|
|
3905
|
-
className:
|
|
4018
|
+
className: __default44.socialLink,
|
|
3906
4019
|
children: social.label
|
|
3907
4020
|
},
|
|
3908
4021
|
`${si}-${social.label}`
|
|
@@ -3998,7 +4111,7 @@ __styleInject(`.PricingCard-module_root {
|
|
|
3998
4111
|
.PricingCard-module_cta {
|
|
3999
4112
|
width: 100%;
|
|
4000
4113
|
}`);
|
|
4001
|
-
var
|
|
4114
|
+
var __default45 = { "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" };
|
|
4002
4115
|
function PricingCard({
|
|
4003
4116
|
plan,
|
|
4004
4117
|
price,
|
|
@@ -4013,26 +4126,26 @@ function PricingCard({
|
|
|
4013
4126
|
return /* @__PURE__ */ jsxs(
|
|
4014
4127
|
"div",
|
|
4015
4128
|
{
|
|
4016
|
-
className: `${
|
|
4129
|
+
className: `${__default45.root}${highlighted ? ` ${__default45.highlighted}` : ""}${className ? ` ${className}` : ""}`,
|
|
4017
4130
|
children: [
|
|
4018
|
-
badge && /* @__PURE__ */ jsx("div", { className:
|
|
4019
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
4020
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
4021
|
-
description && /* @__PURE__ */ jsx("p", { className:
|
|
4131
|
+
badge && /* @__PURE__ */ jsx("div", { className: __default45.badgeWrap, children: /* @__PURE__ */ jsx(Badge, { color: "info", children: badge }) }),
|
|
4132
|
+
/* @__PURE__ */ jsxs("div", { className: __default45.header, children: [
|
|
4133
|
+
/* @__PURE__ */ jsx("h3", { className: __default45.plan, children: plan }),
|
|
4134
|
+
description && /* @__PURE__ */ jsx("p", { className: __default45.description, children: description })
|
|
4022
4135
|
] }),
|
|
4023
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
4024
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
4025
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
4136
|
+
/* @__PURE__ */ jsxs("div", { className: __default45.priceBlock, children: [
|
|
4137
|
+
/* @__PURE__ */ jsx("span", { className: __default45.price, children: price }),
|
|
4138
|
+
/* @__PURE__ */ jsx("span", { className: __default45.period, children: period })
|
|
4026
4139
|
] }),
|
|
4027
|
-
/* @__PURE__ */ jsx("ul", { className:
|
|
4140
|
+
/* @__PURE__ */ jsx("ul", { className: __default45.features, children: features.map((feature, i) => {
|
|
4028
4141
|
const text = typeof feature === "string" ? feature : feature.text;
|
|
4029
4142
|
const isExcluded = typeof feature === "object" && feature.included === false;
|
|
4030
4143
|
return /* @__PURE__ */ jsxs(
|
|
4031
4144
|
"li",
|
|
4032
4145
|
{
|
|
4033
|
-
className: `${
|
|
4146
|
+
className: `${__default45.featureItem}${isExcluded ? ` ${__default45.featureItemExcluded}` : ""}`,
|
|
4034
4147
|
children: [
|
|
4035
|
-
/* @__PURE__ */ jsx("span", { className: `${
|
|
4148
|
+
/* @__PURE__ */ jsx("span", { className: `${__default45.featureIcon}${isExcluded ? ` ${__default45.featureIconExcluded}` : ""}`, children: isExcluded ? /* @__PURE__ */ jsx(IconlyClose, { size: 16 }) : /* @__PURE__ */ jsx(IconlyCheck, { size: 16 }) }),
|
|
4036
4149
|
text
|
|
4037
4150
|
]
|
|
4038
4151
|
},
|
|
@@ -4043,7 +4156,7 @@ function PricingCard({
|
|
|
4043
4156
|
Button,
|
|
4044
4157
|
{
|
|
4045
4158
|
variant: highlighted ? "primary" : "outline",
|
|
4046
|
-
className:
|
|
4159
|
+
className: __default45.cta,
|
|
4047
4160
|
onClick: cta.onClick,
|
|
4048
4161
|
children: cta.label
|
|
4049
4162
|
}
|
|
@@ -4091,21 +4204,21 @@ __styleInject(`.TestimonialCard-module_root {
|
|
|
4091
4204
|
font-size: 0.75rem;
|
|
4092
4205
|
color: var(--fg-muted);
|
|
4093
4206
|
}`);
|
|
4094
|
-
var
|
|
4207
|
+
var __default46 = { "root": "TestimonialCard-module_root", "quoteIcon": "TestimonialCard-module_quoteIcon", "quoteText": "TestimonialCard-module_quoteText", "author": "TestimonialCard-module_author", "authorName": "TestimonialCard-module_authorName", "authorRole": "TestimonialCard-module_authorRole" };
|
|
4095
4208
|
function TestimonialCard({ quote, name, role, avatarSrc, className = "" }) {
|
|
4096
4209
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase();
|
|
4097
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
4098
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4099
|
-
/* @__PURE__ */ jsxs("p", { className:
|
|
4210
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default46.root}${className ? ` ${className}` : ""}`, children: [
|
|
4211
|
+
/* @__PURE__ */ jsx("div", { className: __default46.quoteIcon, children: /* @__PURE__ */ jsx(IconlyQuote, { size: 32 }) }),
|
|
4212
|
+
/* @__PURE__ */ jsxs("p", { className: __default46.quoteText, children: [
|
|
4100
4213
|
"\u201C",
|
|
4101
4214
|
quote,
|
|
4102
4215
|
"\u201D"
|
|
4103
4216
|
] }),
|
|
4104
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
4217
|
+
/* @__PURE__ */ jsxs("div", { className: __default46.author, children: [
|
|
4105
4218
|
/* @__PURE__ */ jsx(Avatar, { src: avatarSrc, initials, size: "sm" }),
|
|
4106
4219
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
4107
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
4108
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
4220
|
+
/* @__PURE__ */ jsx("p", { className: __default46.authorName, children: name }),
|
|
4221
|
+
/* @__PURE__ */ jsx("p", { className: __default46.authorRole, children: role })
|
|
4109
4222
|
] })
|
|
4110
4223
|
] })
|
|
4111
4224
|
] });
|
|
@@ -4177,17 +4290,17 @@ __styleInject(`.FeatureGrid-module_root {
|
|
|
4177
4290
|
color: var(--fg-muted);
|
|
4178
4291
|
line-height: 1.625;
|
|
4179
4292
|
}`);
|
|
4180
|
-
var
|
|
4293
|
+
var __default47 = { "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" };
|
|
4181
4294
|
function FeatureGrid({ features, columns = 3, className = "" }) {
|
|
4182
4295
|
const colsClass = {
|
|
4183
|
-
2:
|
|
4184
|
-
3:
|
|
4185
|
-
4:
|
|
4296
|
+
2: __default47.cols2,
|
|
4297
|
+
3: __default47.cols3,
|
|
4298
|
+
4: __default47.cols4
|
|
4186
4299
|
};
|
|
4187
|
-
return /* @__PURE__ */ jsx("div", { className: `${
|
|
4188
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4189
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
4190
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
4300
|
+
return /* @__PURE__ */ jsx("div", { className: `${__default47.root} ${colsClass[columns]}${className ? ` ${className}` : ""}`, children: features.map((feature, i) => /* @__PURE__ */ jsxs("div", { className: __default47.card, children: [
|
|
4301
|
+
/* @__PURE__ */ jsx("div", { className: __default47.cardIcon, children: feature.icon }),
|
|
4302
|
+
/* @__PURE__ */ jsx("h3", { className: __default47.cardTitle, children: feature.title }),
|
|
4303
|
+
/* @__PURE__ */ jsx("p", { className: __default47.cardDescription, children: feature.description })
|
|
4191
4304
|
] }, i)) });
|
|
4192
4305
|
}
|
|
4193
4306
|
|
|
@@ -4288,7 +4401,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
4288
4401
|
display: block;
|
|
4289
4402
|
}
|
|
4290
4403
|
}`);
|
|
4291
|
-
var
|
|
4404
|
+
var __default48 = { "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" };
|
|
4292
4405
|
var defaultMenuItems = [
|
|
4293
4406
|
"\u0413\u043B\u0430\u0432\u043D\u0430\u044F",
|
|
4294
4407
|
"\u041C\u043E\u0438 \u043A\u0443\u0440\u0441\u044B",
|
|
@@ -4332,19 +4445,19 @@ function Sidebar({
|
|
|
4332
4445
|
const items = normaliseItems(rawItems);
|
|
4333
4446
|
const [internalActive, setInternalActive] = useState(0);
|
|
4334
4447
|
const isControlled = activeId !== void 0;
|
|
4335
|
-
const widthClass = type === "courseSubmenu" ?
|
|
4448
|
+
const widthClass = type === "courseSubmenu" ? __default48.courseSubmenu : __default48.menu;
|
|
4336
4449
|
const showLegal = legalText !== null;
|
|
4337
4450
|
const legalContent = legalText === void 0 ? DEFAULT_LEGAL : legalText;
|
|
4338
4451
|
const isOpen = collapsed === false;
|
|
4339
4452
|
const collapseClasses = [
|
|
4340
|
-
collapsed ?
|
|
4341
|
-
isOpen ?
|
|
4453
|
+
collapsed ? __default48.collapsed : "",
|
|
4454
|
+
isOpen ? __default48.open : ""
|
|
4342
4455
|
].filter(Boolean).join(" ");
|
|
4343
4456
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4344
4457
|
onToggle && /* @__PURE__ */ jsx(
|
|
4345
4458
|
"div",
|
|
4346
4459
|
{
|
|
4347
|
-
className: `${
|
|
4460
|
+
className: `${__default48.overlay}${isOpen ? ` ${__default48.overlayVisible}` : ""}`,
|
|
4348
4461
|
onClick: onToggle,
|
|
4349
4462
|
"aria-hidden": "true"
|
|
4350
4463
|
}
|
|
@@ -4352,10 +4465,10 @@ function Sidebar({
|
|
|
4352
4465
|
/* @__PURE__ */ jsxs(
|
|
4353
4466
|
"aside",
|
|
4354
4467
|
{
|
|
4355
|
-
className: `${
|
|
4468
|
+
className: `${__default48.root} ${widthClass}${layout === "compact" ? ` ${__default48.compact}` : ""}${collapseClasses ? ` ${collapseClasses}` : ""}${className ? ` ${className}` : ""}`,
|
|
4356
4469
|
children: [
|
|
4357
|
-
logo && /* @__PURE__ */ jsx("div", { className:
|
|
4358
|
-
/* @__PURE__ */ jsx("nav", { className:
|
|
4470
|
+
logo && /* @__PURE__ */ jsx("div", { className: __default48.logo, children: logo }),
|
|
4471
|
+
/* @__PURE__ */ jsx("nav", { className: __default48.nav, children: items.map((item, i) => {
|
|
4359
4472
|
const isActive = isControlled ? item.id === activeId : i === internalActive;
|
|
4360
4473
|
return /* @__PURE__ */ jsx(
|
|
4361
4474
|
MenuItem,
|
|
@@ -4371,9 +4484,9 @@ function Sidebar({
|
|
|
4371
4484
|
item.id
|
|
4372
4485
|
);
|
|
4373
4486
|
}) }),
|
|
4374
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
4487
|
+
/* @__PURE__ */ jsxs("div", { className: __default48.footer, children: [
|
|
4375
4488
|
type === "menu" && footer,
|
|
4376
|
-
showLegal && /* @__PURE__ */ jsx("p", { className:
|
|
4489
|
+
showLegal && /* @__PURE__ */ jsx("p", { className: __default48.legal, children: legalContent })
|
|
4377
4490
|
] })
|
|
4378
4491
|
]
|
|
4379
4492
|
}
|
|
@@ -4483,7 +4596,7 @@ __styleInject(`.AppCard-module_defaultCard {
|
|
|
4483
4596
|
.AppCard-module_stampBg {
|
|
4484
4597
|
background: var(--bg);
|
|
4485
4598
|
}`);
|
|
4486
|
-
var
|
|
4599
|
+
var __default49 = { "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" };
|
|
4487
4600
|
var HOLE_R = 4;
|
|
4488
4601
|
var HOLE_SP = 16;
|
|
4489
4602
|
function buildStampMask(w, h) {
|
|
@@ -4510,18 +4623,18 @@ function CardContent({
|
|
|
4510
4623
|
isStamp
|
|
4511
4624
|
}) {
|
|
4512
4625
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4513
|
-
image && /* @__PURE__ */ jsx("div", { className: isStamp ?
|
|
4626
|
+
image && /* @__PURE__ */ jsx("div", { className: isStamp ? __default49.imageWrap : __default49.imageWrapRounded, children: /* @__PURE__ */ jsx("img", { src: image, alt: title, className: __default49.image }) }),
|
|
4514
4627
|
/* @__PURE__ */ jsxs(
|
|
4515
4628
|
"div",
|
|
4516
4629
|
{
|
|
4517
|
-
className: isStamp ?
|
|
4630
|
+
className: isStamp ? __default49.contentStamp : image ? __default49.contentDefaultWithImage : __default49.contentDefaultNoImage,
|
|
4518
4631
|
children: [
|
|
4519
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
4520
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
4521
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
4632
|
+
/* @__PURE__ */ jsxs("div", { className: __default49.textGroup, children: [
|
|
4633
|
+
/* @__PURE__ */ jsx("h3", { className: __default49.cardTitle, children: title }),
|
|
4634
|
+
/* @__PURE__ */ jsx("p", { className: __default49.cardDesc, children: description })
|
|
4522
4635
|
] }),
|
|
4523
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
4524
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4636
|
+
/* @__PURE__ */ jsxs("div", { className: __default49.footer, children: [
|
|
4637
|
+
/* @__PURE__ */ jsx("div", { className: __default49.iconRow, children: icons }),
|
|
4525
4638
|
/* @__PURE__ */ jsx(Button, { variant: buttonVariant === "outline" ? "outline" : "primary", size: "md", onClick: onButtonClick, children: buttonText })
|
|
4526
4639
|
] })
|
|
4527
4640
|
]
|
|
@@ -4538,7 +4651,7 @@ function AppCard(_a) {
|
|
|
4538
4651
|
"className"
|
|
4539
4652
|
]);
|
|
4540
4653
|
if (variant === "default") {
|
|
4541
|
-
return /* @__PURE__ */ jsx("div", { className: `${
|
|
4654
|
+
return /* @__PURE__ */ jsx("div", { className: `${__default49.defaultCard}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsx(CardContent, __spreadProps(__spreadValues({}, contentProps), { isStamp: false })) });
|
|
4542
4655
|
}
|
|
4543
4656
|
const padded = variant === "stamp-padded";
|
|
4544
4657
|
return /* @__PURE__ */ jsx(StampWrapper, { className, padded, children: /* @__PURE__ */ jsx(CardContent, __spreadProps(__spreadValues({}, contentProps), { isStamp: true })) });
|
|
@@ -4564,7 +4677,7 @@ function StampWrapper({ children, className, padded }) {
|
|
|
4564
4677
|
ro.disconnect();
|
|
4565
4678
|
};
|
|
4566
4679
|
}, [build]);
|
|
4567
|
-
return /* @__PURE__ */ jsx("div", { ref, className: `${
|
|
4680
|
+
return /* @__PURE__ */ jsx("div", { ref, className: `${__default49.stampCard}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsx("div", { className: __default49.shadowWrap, children: /* @__PURE__ */ jsx(
|
|
4568
4681
|
"div",
|
|
4569
4682
|
{
|
|
4570
4683
|
style: {
|
|
@@ -4573,7 +4686,7 @@ function StampWrapper({ children, className, padded }) {
|
|
|
4573
4686
|
WebkitMaskSize: "100% 100%",
|
|
4574
4687
|
maskSize: "100% 100%"
|
|
4575
4688
|
},
|
|
4576
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
4689
|
+
children: /* @__PURE__ */ jsx("div", { className: __default49.stampBg, style: padded ? { padding: STAMP_PADDING } : void 0, children })
|
|
4577
4690
|
}
|
|
4578
4691
|
) }) });
|
|
4579
4692
|
}
|
|
@@ -4586,7 +4699,7 @@ __styleInject(`.AppTopLine-module_root {
|
|
|
4586
4699
|
justify-content: space-between;
|
|
4587
4700
|
width: 100%;
|
|
4588
4701
|
}`);
|
|
4589
|
-
var
|
|
4702
|
+
var __default50 = { "root": "AppTopLine-module_root" };
|
|
4590
4703
|
function AppTopLine({
|
|
4591
4704
|
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",
|
|
4592
4705
|
promoButtonText = "\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",
|
|
@@ -4599,7 +4712,7 @@ function AppTopLine({
|
|
|
4599
4712
|
avatarSrc,
|
|
4600
4713
|
className = ""
|
|
4601
4714
|
}) {
|
|
4602
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
4715
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default50.root}${className ? ` ${className}` : ""}`, children: [
|
|
4603
4716
|
/* @__PURE__ */ jsx(TopPromo, { text: promoText, buttonText: promoButtonText }),
|
|
4604
4717
|
/* @__PURE__ */ jsx(ProfileNav, { stats, avatarSrc })
|
|
4605
4718
|
] });
|
|
@@ -4640,13 +4753,13 @@ __styleInject(`.EmptyState-module_root {
|
|
|
4640
4753
|
.EmptyState-module_action {
|
|
4641
4754
|
margin-top: 1.25rem;
|
|
4642
4755
|
}`);
|
|
4643
|
-
var
|
|
4756
|
+
var __default51 = { "root": "EmptyState-module_root", "icon": "EmptyState-module_icon", "title": "EmptyState-module_title", "description": "EmptyState-module_description", "action": "EmptyState-module_action" };
|
|
4644
4757
|
function EmptyState({ icon, title, description, action, className = "" }) {
|
|
4645
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
4646
|
-
icon && /* @__PURE__ */ jsx("div", { className:
|
|
4647
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
4648
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
4649
|
-
action && /* @__PURE__ */ jsx("div", { className:
|
|
4758
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default51.root}${className ? ` ${className}` : ""}`, children: [
|
|
4759
|
+
icon && /* @__PURE__ */ jsx("div", { className: __default51.icon, children: icon }),
|
|
4760
|
+
/* @__PURE__ */ jsx("h3", { className: __default51.title, children: title }),
|
|
4761
|
+
/* @__PURE__ */ jsx("p", { className: __default51.description, children: description }),
|
|
4762
|
+
action && /* @__PURE__ */ jsx("div", { className: __default51.action, children: action })
|
|
4650
4763
|
] });
|
|
4651
4764
|
}
|
|
4652
4765
|
|
|
@@ -4838,7 +4951,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
4838
4951
|
overflow: hidden;
|
|
4839
4952
|
background: var(--bg-secondary);
|
|
4840
4953
|
}`);
|
|
4841
|
-
var
|
|
4954
|
+
var __default52 = { "root": "HeroSection-module_root", "bgGlow": "HeroSection-module_bgGlow", "glowOrb": "HeroSection-module_glowOrb", "inner": "HeroSection-module_inner", "innerCompact": "HeroSection-module_innerCompact", "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" };
|
|
4842
4955
|
function HeroSection({
|
|
4843
4956
|
eyebrow,
|
|
4844
4957
|
title,
|
|
@@ -4853,25 +4966,25 @@ function HeroSection({
|
|
|
4853
4966
|
const isCenter = align === "center";
|
|
4854
4967
|
const isCompact = size === "compact";
|
|
4855
4968
|
const isSplitRight = !isCenter && mediaPosition === "right" && !!media;
|
|
4856
|
-
const contentBlock = /* @__PURE__ */ jsxs("div", { className: isCenter ?
|
|
4857
|
-
eyebrow && /* @__PURE__ */ jsx("div", { className: `${
|
|
4858
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
4969
|
+
const contentBlock = /* @__PURE__ */ jsxs("div", { className: isCenter ? __default52.contentCenter : __default52.content, children: [
|
|
4970
|
+
eyebrow && /* @__PURE__ */ jsx("div", { className: `${__default52.eyebrowWrap}${isCenter ? ` ${__default52.eyebrowCenter}` : ""}`, children: /* @__PURE__ */ jsxs("span", { className: __default52.eyebrow, children: [
|
|
4971
|
+
/* @__PURE__ */ jsx("span", { className: __default52.eyebrowDot }),
|
|
4859
4972
|
eyebrow
|
|
4860
4973
|
] }) }),
|
|
4861
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
4862
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: `${
|
|
4863
|
-
actions && /* @__PURE__ */ jsx("div", { className: `${
|
|
4974
|
+
/* @__PURE__ */ jsx("h1", { className: __default52.title, children: title }),
|
|
4975
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: `${__default52.subtitle}${isCenter ? ` ${__default52.subtitleCenter}` : ""}`, children: subtitle }),
|
|
4976
|
+
actions && /* @__PURE__ */ jsx("div", { className: `${__default52.actions}${isCenter ? ` ${__default52.actionsCenter}` : ""}`, children: actions })
|
|
4864
4977
|
] });
|
|
4865
4978
|
const mediaBlock = media && /* @__PURE__ */ jsx(
|
|
4866
4979
|
"div",
|
|
4867
4980
|
{
|
|
4868
|
-
className: isSplitRight ?
|
|
4869
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
4981
|
+
className: isSplitRight ? __default52.mediaSplit : isCenter ? __default52.mediaWrapCenter : __default52.mediaWrapLeft,
|
|
4982
|
+
children: /* @__PURE__ */ jsx("div", { className: __default52.mediaBox, children: media })
|
|
4870
4983
|
}
|
|
4871
4984
|
);
|
|
4872
|
-
return /* @__PURE__ */ jsxs("section", { className: `${
|
|
4873
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4874
|
-
/* @__PURE__ */ jsx("div", { className: isCompact ?
|
|
4985
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default52.root}${className ? ` ${className}` : ""}`, children: [
|
|
4986
|
+
/* @__PURE__ */ jsx("div", { className: __default52.bgGlow, "aria-hidden": "true", children: /* @__PURE__ */ jsx("div", { className: __default52.glowOrb }) }),
|
|
4987
|
+
/* @__PURE__ */ jsx("div", { className: isCompact ? __default52.innerCompact : __default52.inner, children: isSplitRight ? /* @__PURE__ */ jsxs("div", { className: __default52.splitGrid, children: [
|
|
4875
4988
|
contentBlock,
|
|
4876
4989
|
mediaBlock
|
|
4877
4990
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -4949,15 +5062,15 @@ __styleInject(`.LogoCloud-module_root {
|
|
|
4949
5062
|
font-size: 1rem;
|
|
4950
5063
|
}
|
|
4951
5064
|
}`);
|
|
4952
|
-
var
|
|
5065
|
+
var __default53 = { "root": "LogoCloud-module_root", "label": "LogoCloud-module_label", "grid": "LogoCloud-module_grid", "logoItem": "LogoCloud-module_logoItem", "logoImg": "LogoCloud-module_logoImg", "logoText": "LogoCloud-module_logoText" };
|
|
4953
5066
|
function LogoCloud({
|
|
4954
5067
|
label = "Trusted by teams at",
|
|
4955
5068
|
logos,
|
|
4956
5069
|
className = ""
|
|
4957
5070
|
}) {
|
|
4958
|
-
return /* @__PURE__ */ jsxs("section", { className: `${
|
|
4959
|
-
label && /* @__PURE__ */ jsx("p", { className:
|
|
4960
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5071
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default53.root}${className ? ` ${className}` : ""}`, children: [
|
|
5072
|
+
label && /* @__PURE__ */ jsx("p", { className: __default53.label, children: label }),
|
|
5073
|
+
/* @__PURE__ */ jsx("div", { className: __default53.grid, children: logos.map((logo) => /* @__PURE__ */ jsx("div", { className: __default53.logoItem, children: logo.src ? (
|
|
4961
5074
|
// eslint-disable-next-line @next/next/no-img-element
|
|
4962
5075
|
/* @__PURE__ */ jsx(
|
|
4963
5076
|
"img",
|
|
@@ -4965,10 +5078,10 @@ function LogoCloud({
|
|
|
4965
5078
|
src: logo.src,
|
|
4966
5079
|
alt: logo.name,
|
|
4967
5080
|
width: logo.width || 100,
|
|
4968
|
-
className: `${
|
|
5081
|
+
className: `${__default53.logoImg} logo-img`
|
|
4969
5082
|
}
|
|
4970
5083
|
)
|
|
4971
|
-
) : /* @__PURE__ */ jsx("span", { className:
|
|
5084
|
+
) : /* @__PURE__ */ jsx("span", { className: __default53.logoText, children: logo.name }) }, logo.name)) })
|
|
4972
5085
|
] });
|
|
4973
5086
|
}
|
|
4974
5087
|
|
|
@@ -5064,18 +5177,18 @@ __styleInject(`@charset "UTF-8";
|
|
|
5064
5177
|
color: var(--fg-muted);
|
|
5065
5178
|
letter-spacing: -0.25px;
|
|
5066
5179
|
}`);
|
|
5067
|
-
var
|
|
5180
|
+
var __default54 = { "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" };
|
|
5068
5181
|
function StatsBar({ stats, variant = "inline", className = "" }) {
|
|
5069
5182
|
if (variant === "cards") {
|
|
5070
|
-
return /* @__PURE__ */ jsx("section", { className: `${
|
|
5071
|
-
stat.icon && /* @__PURE__ */ jsx("div", { className:
|
|
5072
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5073
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5183
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default54.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsx("div", { className: __default54.cardsGrid, children: stats.map((stat, i) => /* @__PURE__ */ jsxs("div", { className: __default54.card, children: [
|
|
5184
|
+
stat.icon && /* @__PURE__ */ jsx("div", { className: __default54.cardIconWrap, children: stat.icon }),
|
|
5185
|
+
/* @__PURE__ */ jsx("div", { className: __default54.statValue, children: stat.value }),
|
|
5186
|
+
/* @__PURE__ */ jsx("div", { className: __default54.statLabel, children: stat.label })
|
|
5074
5187
|
] }, i)) }) });
|
|
5075
5188
|
}
|
|
5076
|
-
return /* @__PURE__ */ jsx("section", { className: `${
|
|
5077
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5078
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5189
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default54.root} ${__default54.inline}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsx("div", { className: __default54.inlineGrid, children: stats.map((stat, i) => /* @__PURE__ */ jsxs("div", { className: __default54.inlineItem, children: [
|
|
5190
|
+
/* @__PURE__ */ jsx("div", { className: __default54.statValue, children: stat.value }),
|
|
5191
|
+
/* @__PURE__ */ jsx("div", { className: __default54.statLabel, children: stat.label })
|
|
5079
5192
|
] }, i)) }) });
|
|
5080
5193
|
}
|
|
5081
5194
|
|
|
@@ -5165,7 +5278,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
5165
5278
|
gap: 0.75rem;
|
|
5166
5279
|
justify-content: center;
|
|
5167
5280
|
}`);
|
|
5168
|
-
var
|
|
5281
|
+
var __default55 = { "root": "CTASection-module_root", "default": "CTASection-module_default", "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" };
|
|
5169
5282
|
function CTASection({
|
|
5170
5283
|
title,
|
|
5171
5284
|
description,
|
|
@@ -5174,10 +5287,10 @@ function CTASection({
|
|
|
5174
5287
|
className = ""
|
|
5175
5288
|
}) {
|
|
5176
5289
|
const isFilled = variant === "filled";
|
|
5177
|
-
return /* @__PURE__ */ jsx("section", { className: `${
|
|
5178
|
-
/* @__PURE__ */ jsx("h2", { className: `${
|
|
5179
|
-
description && /* @__PURE__ */ jsx("p", { className: `${
|
|
5180
|
-
actions && /* @__PURE__ */ jsx("div", { className:
|
|
5290
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default55.root} ${__default55[variant]}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxs("div", { className: __default55.inner, children: [
|
|
5291
|
+
/* @__PURE__ */ jsx("h2", { className: `${__default55.title}${isFilled ? ` ${__default55.titleFilled}` : ""}`, children: title }),
|
|
5292
|
+
description && /* @__PURE__ */ jsx("p", { className: `${__default55.description}${isFilled ? ` ${__default55.descriptionFilled}` : ""}`, children: description }),
|
|
5293
|
+
actions && /* @__PURE__ */ jsx("div", { className: __default55.actions, children: actions })
|
|
5181
5294
|
] }) });
|
|
5182
5295
|
}
|
|
5183
5296
|
|
|
@@ -5273,21 +5386,21 @@ __styleInject(`.BentoGrid-module_root {
|
|
|
5273
5386
|
line-height: 1.625;
|
|
5274
5387
|
letter-spacing: -0.25px;
|
|
5275
5388
|
}`);
|
|
5276
|
-
var
|
|
5389
|
+
var __default56 = { "root": "BentoGrid-module_root", "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" };
|
|
5277
5390
|
function BentoGrid({ items, className = "" }) {
|
|
5278
|
-
return /* @__PURE__ */ jsx("section", { className: `${
|
|
5279
|
-
const spanClass = item.span === 2 ? ` ${
|
|
5280
|
-
const rowClass = item.rowSpan === 2 ? ` ${
|
|
5391
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default56.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsx("div", { className: __default56.grid, children: items.map((item, i) => {
|
|
5392
|
+
const spanClass = item.span === 2 ? ` ${__default56.colSpan2}` : "";
|
|
5393
|
+
const rowClass = item.rowSpan === 2 ? ` ${__default56.rowSpan2}` : "";
|
|
5281
5394
|
return /* @__PURE__ */ jsxs(
|
|
5282
5395
|
"div",
|
|
5283
5396
|
{
|
|
5284
|
-
className: `${
|
|
5397
|
+
className: `${__default56.item}${spanClass}${rowClass}${item.className ? ` ${item.className}` : ""}`,
|
|
5285
5398
|
children: [
|
|
5286
|
-
item.media && /* @__PURE__ */ jsx("div", { className:
|
|
5287
|
-
/* @__PURE__ */ jsxs("div", { className: `${
|
|
5288
|
-
item.icon && /* @__PURE__ */ jsx("div", { className:
|
|
5289
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
5290
|
-
item.description && /* @__PURE__ */ jsx("p", { className:
|
|
5399
|
+
item.media && /* @__PURE__ */ jsx("div", { className: __default56.mediaWrap, children: item.media }),
|
|
5400
|
+
/* @__PURE__ */ jsxs("div", { className: `${__default56.content}${item.rowSpan === 2 ? ` ${__default56.contentTall}` : ""}`, children: [
|
|
5401
|
+
item.icon && /* @__PURE__ */ jsx("div", { className: __default56.itemIcon, children: item.icon }),
|
|
5402
|
+
/* @__PURE__ */ jsx("h3", { className: __default56.itemTitle, children: item.title }),
|
|
5403
|
+
item.description && /* @__PURE__ */ jsx("p", { className: __default56.itemDescription, children: item.description })
|
|
5291
5404
|
] })
|
|
5292
5405
|
]
|
|
5293
5406
|
},
|
|
@@ -5402,7 +5515,7 @@ __styleInject(`.FAQSection-module_root {
|
|
|
5402
5515
|
line-height: 1.625;
|
|
5403
5516
|
padding-right: 2rem;
|
|
5404
5517
|
}`);
|
|
5405
|
-
var
|
|
5518
|
+
var __default57 = { "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" };
|
|
5406
5519
|
function FAQSection({
|
|
5407
5520
|
title = "Frequently asked questions",
|
|
5408
5521
|
subtitle,
|
|
@@ -5411,25 +5524,25 @@ function FAQSection({
|
|
|
5411
5524
|
}) {
|
|
5412
5525
|
const [openIndex, setOpenIndex] = useState(null);
|
|
5413
5526
|
const toggle = (i) => setOpenIndex(openIndex === i ? null : i);
|
|
5414
|
-
return /* @__PURE__ */ jsx("section", { className: `${
|
|
5415
|
-
title && /* @__PURE__ */ jsx("h2", { className:
|
|
5416
|
-
subtitle && /* @__PURE__ */ jsx("p", { className:
|
|
5417
|
-
/* @__PURE__ */ jsx("div", { className: title || subtitle ?
|
|
5527
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default57.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxs("div", { className: __default57.container, children: [
|
|
5528
|
+
title && /* @__PURE__ */ jsx("h2", { className: __default57.title, children: title }),
|
|
5529
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default57.subtitle, children: subtitle }),
|
|
5530
|
+
/* @__PURE__ */ jsx("div", { className: title || subtitle ? __default57.list : "", children: items.map((item, i) => {
|
|
5418
5531
|
const isOpen = openIndex === i;
|
|
5419
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
5532
|
+
return /* @__PURE__ */ jsxs("div", { className: __default57.item, children: [
|
|
5420
5533
|
/* @__PURE__ */ jsxs(
|
|
5421
5534
|
"button",
|
|
5422
5535
|
{
|
|
5423
5536
|
onClick: () => toggle(i),
|
|
5424
|
-
className:
|
|
5537
|
+
className: __default57.question,
|
|
5425
5538
|
"aria-expanded": isOpen,
|
|
5426
5539
|
children: [
|
|
5427
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
5428
|
-
/* @__PURE__ */ jsx("span", { className: isOpen ?
|
|
5540
|
+
/* @__PURE__ */ jsx("span", { className: __default57.questionText, children: item.question }),
|
|
5541
|
+
/* @__PURE__ */ jsx("span", { className: isOpen ? __default57.toggleIconOpen : __default57.toggleIcon, children: /* @__PURE__ */ jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M7 1v12M1 7h12", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }) })
|
|
5429
5542
|
]
|
|
5430
5543
|
}
|
|
5431
5544
|
),
|
|
5432
|
-
/* @__PURE__ */ jsx("div", { className: isOpen ?
|
|
5545
|
+
/* @__PURE__ */ jsx("div", { className: isOpen ? __default57.answerOpen : __default57.answerClosed, children: /* @__PURE__ */ jsx("p", { className: __default57.answerText, children: item.answer }) })
|
|
5433
5546
|
] }, i);
|
|
5434
5547
|
}) })
|
|
5435
5548
|
] }) });
|
|
@@ -5519,32 +5632,32 @@ __styleInject(`.ComparisonTable-module_root {
|
|
|
5519
5632
|
font-weight: 500;
|
|
5520
5633
|
color: var(--fg);
|
|
5521
5634
|
}`);
|
|
5522
|
-
var
|
|
5635
|
+
var __default58 = { "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" };
|
|
5523
5636
|
function ComparisonTable({ columns, rows, className = "" }) {
|
|
5524
|
-
return /* @__PURE__ */ jsx("section", { className: `${
|
|
5637
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default58.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsx("div", { className: __default58.scrollWrap, children: /* @__PURE__ */ jsxs("table", { className: __default58.table, children: [
|
|
5525
5638
|
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
5526
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
5639
|
+
/* @__PURE__ */ jsx("th", { className: __default58.headerCell }),
|
|
5527
5640
|
columns.map((col, i) => /* @__PURE__ */ jsx(
|
|
5528
5641
|
"th",
|
|
5529
5642
|
{
|
|
5530
|
-
className: col.highlighted ?
|
|
5643
|
+
className: col.highlighted ? __default58.columnHeaderHighlighted : __default58.columnHeader,
|
|
5531
5644
|
children: col.label
|
|
5532
5645
|
},
|
|
5533
5646
|
i
|
|
5534
5647
|
))
|
|
5535
5648
|
] }) }),
|
|
5536
|
-
/* @__PURE__ */ jsx("tbody", { children: rows.map((row, ri) => /* @__PURE__ */ jsxs("tr", { className:
|
|
5537
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
5649
|
+
/* @__PURE__ */ jsx("tbody", { children: rows.map((row, ri) => /* @__PURE__ */ jsxs("tr", { className: __default58.bodyRow, children: [
|
|
5650
|
+
/* @__PURE__ */ jsx("td", { className: __default58.featureCell, children: row.feature }),
|
|
5538
5651
|
row.values.map((val, vi) => {
|
|
5539
5652
|
var _a;
|
|
5540
5653
|
const isHighlighted = (_a = columns[vi]) == null ? void 0 : _a.highlighted;
|
|
5541
5654
|
const isLast = ri === rows.length - 1;
|
|
5542
|
-
const cellClass = isHighlighted ? isLast ?
|
|
5655
|
+
const cellClass = isHighlighted ? isLast ? __default58.valueCellHighlightedLast : __default58.valueCellHighlighted : __default58.valueCell;
|
|
5543
5656
|
return /* @__PURE__ */ jsx(
|
|
5544
5657
|
"td",
|
|
5545
5658
|
{
|
|
5546
5659
|
className: cellClass,
|
|
5547
|
-
children: typeof val === "boolean" ? val ? /* @__PURE__ */ jsx("span", { className:
|
|
5660
|
+
children: typeof val === "boolean" ? val ? /* @__PURE__ */ jsx("span", { className: __default58.iconSuccess, children: /* @__PURE__ */ jsx(IconlyCheck, { size: 18 }) }) : /* @__PURE__ */ jsx("span", { className: __default58.iconMuted, children: /* @__PURE__ */ jsx(IconlyClose, { size: 18 }) }) : typeof val === "string" ? /* @__PURE__ */ jsx("span", { className: __default58.textValue, children: val }) : val
|
|
5548
5661
|
},
|
|
5549
5662
|
vi
|
|
5550
5663
|
);
|
|
@@ -5553,6 +5666,339 @@ function ComparisonTable({ columns, rows, className = "" }) {
|
|
|
5553
5666
|
] }) }) });
|
|
5554
5667
|
}
|
|
5555
5668
|
|
|
5669
|
+
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/organisms/BottomSheet.module.scss
|
|
5670
|
+
__styleInject(`@charset "UTF-8";
|
|
5671
|
+
/* BottomSheet \u2014 sticky bar + sliding panel (mobile-first, opt-in \u0434\u043B\u044F desktop) */
|
|
5672
|
+
.BottomSheet-module_root {
|
|
5673
|
+
/* Container \u2014 context provider wrapper. \u041D\u0435 \u0432\u043B\u0438\u044F\u0435\u0442 \u043D\u0430 layout. */
|
|
5674
|
+
display: contents;
|
|
5675
|
+
}
|
|
5676
|
+
|
|
5677
|
+
/* \u2500\u2500\u2500 Trigger \u2500\u2500\u2500 */
|
|
5678
|
+
.BottomSheet-module_trigger {
|
|
5679
|
+
display: inline-flex;
|
|
5680
|
+
cursor: pointer;
|
|
5681
|
+
/* Trigger \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 focus \u043A\u0430\u043A \u043D\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0437\u043E\u043D\u0430 \u043A\u043B\u0438\u043A\u0430 \u2014 \u043D\u043E \u0444\u043E\u043A\u0443\u0441-\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u0438\u0434\u0451\u0442 \u0447\u0435\u0440\u0435\u0437 children. */
|
|
5682
|
+
}
|
|
5683
|
+
.BottomSheet-module_trigger:focus, .BottomSheet-module_trigger:focus-visible {
|
|
5684
|
+
outline: none;
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5687
|
+
/* \u2500\u2500\u2500 Bar (sticky bottom, \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u0438\u0434\u043D\u0430) \u2500\u2500\u2500 */
|
|
5688
|
+
.BottomSheet-module_bar {
|
|
5689
|
+
position: fixed;
|
|
5690
|
+
bottom: 0;
|
|
5691
|
+
left: 0;
|
|
5692
|
+
right: 0;
|
|
5693
|
+
z-index: 40;
|
|
5694
|
+
display: flex;
|
|
5695
|
+
flex-direction: column;
|
|
5696
|
+
gap: 16px;
|
|
5697
|
+
padding: 12px 16px 16px;
|
|
5698
|
+
padding-bottom: max(16px, env(safe-area-inset-bottom));
|
|
5699
|
+
background: var(--bg);
|
|
5700
|
+
border-top: 1px solid var(--border-color);
|
|
5701
|
+
border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
|
|
5702
|
+
box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
|
|
5703
|
+
}
|
|
5704
|
+
|
|
5705
|
+
/* Drag-handle \u0441\u0432\u0435\u0440\u0445\u0443 Bar \u2014 \u0438\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \xAB\u043C\u043E\u0436\u043D\u043E \u043F\u043E\u0442\u044F\u043D\u0443\u0442\u044C \u0432\u0432\u0435\u0440\u0445\xBB \u0432 closed-state. */
|
|
5706
|
+
.BottomSheet-module_barHandle {
|
|
5707
|
+
display: flex;
|
|
5708
|
+
justify-content: center;
|
|
5709
|
+
align-items: center;
|
|
5710
|
+
width: 100%;
|
|
5711
|
+
padding: 8px 0;
|
|
5712
|
+
border: none;
|
|
5713
|
+
background: transparent;
|
|
5714
|
+
cursor: grab;
|
|
5715
|
+
touch-action: none;
|
|
5716
|
+
user-select: none;
|
|
5717
|
+
-webkit-user-select: none;
|
|
5718
|
+
}
|
|
5719
|
+
.BottomSheet-module_barHandle:active {
|
|
5720
|
+
cursor: grabbing;
|
|
5721
|
+
}
|
|
5722
|
+
.BottomSheet-module_barHandle:hover .BottomSheet-module_handleBar, .BottomSheet-module_barHandle:focus-visible .BottomSheet-module_handleBar {
|
|
5723
|
+
background: var(--fg-secondary);
|
|
5724
|
+
width: 48px;
|
|
5725
|
+
}
|
|
5726
|
+
.BottomSheet-module_barHandle:focus, .BottomSheet-module_barHandle:focus-visible {
|
|
5727
|
+
outline: none;
|
|
5728
|
+
}
|
|
5729
|
+
|
|
5730
|
+
.BottomSheet-module_barActions {
|
|
5731
|
+
display: flex;
|
|
5732
|
+
align-items: stretch;
|
|
5733
|
+
gap: 12px;
|
|
5734
|
+
/* \u041A\u043D\u043E\u043F\u043A\u0438 \u0432\u043D\u0443\u0442\u0440\u0438 barActions \u0440\u0430\u0441\u0442\u044F\u0433\u0438\u0432\u0430\u044E\u0442\u0441\u044F \u0440\u0430\u0432\u043D\u044B\u043C\u0438 \u0434\u043E\u043B\u044F\u043C\u0438. */
|
|
5735
|
+
}
|
|
5736
|
+
.BottomSheet-module_barActions > * {
|
|
5737
|
+
flex: 1;
|
|
5738
|
+
min-width: 0;
|
|
5739
|
+
}
|
|
5740
|
+
|
|
5741
|
+
/* \u2500\u2500\u2500 Backdrop (\u0437\u0430\u0442\u0435\u043C\u043D\u0435\u043D\u0438\u0435 \u043F\u0440\u0438 open) \u2500\u2500\u2500 */
|
|
5742
|
+
.BottomSheet-module_backdrop {
|
|
5743
|
+
position: fixed;
|
|
5744
|
+
inset: 0;
|
|
5745
|
+
z-index: 49;
|
|
5746
|
+
background: rgba(0, 0, 0, 0.4);
|
|
5747
|
+
opacity: 0;
|
|
5748
|
+
pointer-events: none;
|
|
5749
|
+
transition: opacity 200ms ease-out;
|
|
5750
|
+
}
|
|
5751
|
+
|
|
5752
|
+
.BottomSheet-module_backdropOpen {
|
|
5753
|
+
opacity: 1;
|
|
5754
|
+
pointer-events: auto;
|
|
5755
|
+
}
|
|
5756
|
+
|
|
5757
|
+
/* \u2500\u2500\u2500 Panel (raise-from-bottom) \u2500\u2500\u2500 */
|
|
5758
|
+
.BottomSheet-module_panel {
|
|
5759
|
+
position: fixed;
|
|
5760
|
+
left: 0;
|
|
5761
|
+
right: 0;
|
|
5762
|
+
bottom: 0;
|
|
5763
|
+
z-index: 50;
|
|
5764
|
+
display: flex;
|
|
5765
|
+
flex-direction: column;
|
|
5766
|
+
max-height: 85vh;
|
|
5767
|
+
background: var(--bg);
|
|
5768
|
+
border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
|
|
5769
|
+
box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12), 0 -2px 4px rgba(0, 0, 0, 0.04);
|
|
5770
|
+
overflow-y: auto;
|
|
5771
|
+
/* overscroll-behavior \u0438\u0441\u043A\u043B\u044E\u0447\u0430\u0435\u0442 chain'\u0438\u043D\u0433 \u043F\u0440\u043E\u043A\u0440\u0443\u0442\u043A\u0438 \u043D\u0430 body (\u0442\u0438\u043F\u0438\u0447\u043D\u043E \u0434\u043B\u044F bottom-sheet'\u043E\u0432). */
|
|
5772
|
+
overscroll-behavior: contain;
|
|
5773
|
+
/* touch-action: pan-y \u0447\u0442\u043E\u0431\u044B scrolling \u0432\u043D\u0443\u0442\u0440\u0438 panel \u0440\u0430\u0431\u043E\u0442\u0430\u043B, \u0430 pinch/zoom \u2014 \u043D\u0435\u0442. */
|
|
5774
|
+
touch-action: pan-y;
|
|
5775
|
+
transform: translateY(100%);
|
|
5776
|
+
transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
5777
|
+
padding: 0 20px 20px;
|
|
5778
|
+
padding-bottom: max(20px, env(safe-area-inset-bottom));
|
|
5779
|
+
}
|
|
5780
|
+
.BottomSheet-module_panel[aria-hidden=true] {
|
|
5781
|
+
pointer-events: none;
|
|
5782
|
+
}
|
|
5783
|
+
|
|
5784
|
+
.BottomSheet-module_panelOpen {
|
|
5785
|
+
transform: translateY(0);
|
|
5786
|
+
}
|
|
5787
|
+
|
|
5788
|
+
/* \u2500\u2500\u2500 Handle (drag indicator) \u2500\u2500\u2500 */
|
|
5789
|
+
.BottomSheet-module_handle {
|
|
5790
|
+
position: sticky;
|
|
5791
|
+
top: 0;
|
|
5792
|
+
display: flex;
|
|
5793
|
+
justify-content: center;
|
|
5794
|
+
align-items: center;
|
|
5795
|
+
width: 100%;
|
|
5796
|
+
padding: 14px 0 10px;
|
|
5797
|
+
border: none;
|
|
5798
|
+
background: var(--bg);
|
|
5799
|
+
cursor: grab;
|
|
5800
|
+
z-index: 1;
|
|
5801
|
+
/* touch-action: none \u2014 handle \u0437\u0430\u0445\u0432\u0430\u0442\u044B\u0432\u0430\u0435\u0442 \u0441\u0432\u0430\u0439\u043F \u0432\u043D\u0438\u0437 \u0434\u043B\u044F drag-to-close, \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D scroll'\u0438\u0442\u044C panel. */
|
|
5802
|
+
touch-action: none;
|
|
5803
|
+
user-select: none;
|
|
5804
|
+
-webkit-user-select: none;
|
|
5805
|
+
}
|
|
5806
|
+
.BottomSheet-module_handle:active {
|
|
5807
|
+
cursor: grabbing;
|
|
5808
|
+
}
|
|
5809
|
+
.BottomSheet-module_handle:hover .BottomSheet-module_handleBar, .BottomSheet-module_handle:focus-visible .BottomSheet-module_handleBar {
|
|
5810
|
+
background: var(--fg);
|
|
5811
|
+
width: 48px;
|
|
5812
|
+
}
|
|
5813
|
+
.BottomSheet-module_handle:focus, .BottomSheet-module_handle:focus-visible {
|
|
5814
|
+
outline: none;
|
|
5815
|
+
}
|
|
5816
|
+
|
|
5817
|
+
.BottomSheet-module_handleBar {
|
|
5818
|
+
display: block;
|
|
5819
|
+
width: 40px;
|
|
5820
|
+
height: 5px;
|
|
5821
|
+
border-radius: 9999px;
|
|
5822
|
+
background: var(--border-color-strong);
|
|
5823
|
+
transition: background var(--transition-fast), width var(--transition-fast);
|
|
5824
|
+
}`);
|
|
5825
|
+
var __default59 = { "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" };
|
|
5826
|
+
var BottomSheetContext = createContext(null);
|
|
5827
|
+
function useBottomSheet(part) {
|
|
5828
|
+
const ctx = useContext(BottomSheetContext);
|
|
5829
|
+
if (!ctx) {
|
|
5830
|
+
throw new Error(`<BottomSheet.${part}> must be used within <BottomSheet>`);
|
|
5831
|
+
}
|
|
5832
|
+
return ctx;
|
|
5833
|
+
}
|
|
5834
|
+
function BottomSheet({
|
|
5835
|
+
open: controlledOpen,
|
|
5836
|
+
onOpenChange,
|
|
5837
|
+
defaultOpen = false,
|
|
5838
|
+
swipeCloseThreshold = 80,
|
|
5839
|
+
children,
|
|
5840
|
+
className = ""
|
|
5841
|
+
}) {
|
|
5842
|
+
const [internalOpen, setInternalOpen] = useState(defaultOpen);
|
|
5843
|
+
const isControlled = controlledOpen !== void 0;
|
|
5844
|
+
const open = isControlled ? controlledOpen : internalOpen;
|
|
5845
|
+
const setOpen = useCallback(
|
|
5846
|
+
(next) => {
|
|
5847
|
+
if (!isControlled) setInternalOpen(next);
|
|
5848
|
+
onOpenChange == null ? void 0 : onOpenChange(next);
|
|
5849
|
+
},
|
|
5850
|
+
[isControlled, onOpenChange]
|
|
5851
|
+
);
|
|
5852
|
+
const [dragY, setDragY] = useState(0);
|
|
5853
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
5854
|
+
const startYRef = useRef(0);
|
|
5855
|
+
const onDragStart = useCallback((clientY) => {
|
|
5856
|
+
startYRef.current = clientY;
|
|
5857
|
+
setIsDragging(true);
|
|
5858
|
+
}, []);
|
|
5859
|
+
const onDragMove = useCallback((clientY) => {
|
|
5860
|
+
setDragY(clientY - startYRef.current);
|
|
5861
|
+
}, []);
|
|
5862
|
+
const onDragEnd = useCallback(() => {
|
|
5863
|
+
setIsDragging(false);
|
|
5864
|
+
if (open && dragY > swipeCloseThreshold) {
|
|
5865
|
+
setOpen(false);
|
|
5866
|
+
} else if (!open && dragY < -swipeCloseThreshold) {
|
|
5867
|
+
setOpen(true);
|
|
5868
|
+
}
|
|
5869
|
+
setDragY(0);
|
|
5870
|
+
}, [dragY, swipeCloseThreshold, setOpen, open]);
|
|
5871
|
+
useEffect(() => {
|
|
5872
|
+
if (!open) {
|
|
5873
|
+
setDragY(0);
|
|
5874
|
+
setIsDragging(false);
|
|
5875
|
+
}
|
|
5876
|
+
}, [open]);
|
|
5877
|
+
useEffect(() => {
|
|
5878
|
+
if (!open) return;
|
|
5879
|
+
const handleKey = (e) => {
|
|
5880
|
+
if (e.key === "Escape") setOpen(false);
|
|
5881
|
+
};
|
|
5882
|
+
document.addEventListener("keydown", handleKey);
|
|
5883
|
+
return () => document.removeEventListener("keydown", handleKey);
|
|
5884
|
+
}, [open, setOpen]);
|
|
5885
|
+
useEffect(() => {
|
|
5886
|
+
if (!open) return;
|
|
5887
|
+
const prev = document.body.style.overflow;
|
|
5888
|
+
document.body.style.overflow = "hidden";
|
|
5889
|
+
return () => {
|
|
5890
|
+
document.body.style.overflow = prev;
|
|
5891
|
+
};
|
|
5892
|
+
}, [open]);
|
|
5893
|
+
return /* @__PURE__ */ jsx(
|
|
5894
|
+
BottomSheetContext.Provider,
|
|
5895
|
+
{
|
|
5896
|
+
value: { open, setOpen, dragY, isDragging, onDragStart, onDragMove, onDragEnd },
|
|
5897
|
+
children: /* @__PURE__ */ jsx("div", { className: `${__default59.root}${className ? ` ${className}` : ""}`, children })
|
|
5898
|
+
}
|
|
5899
|
+
);
|
|
5900
|
+
}
|
|
5901
|
+
function Bar({ children, className = "" }) {
|
|
5902
|
+
const { setOpen, onDragStart, onDragMove, onDragEnd } = useBottomSheet("Bar");
|
|
5903
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default59.bar}${className ? ` ${className}` : ""}`, children: [
|
|
5904
|
+
/* @__PURE__ */ jsx(
|
|
5905
|
+
"button",
|
|
5906
|
+
{
|
|
5907
|
+
type: "button",
|
|
5908
|
+
onClick: () => setOpen(true),
|
|
5909
|
+
onTouchStart: (e) => onDragStart(e.touches[0].clientY),
|
|
5910
|
+
onTouchMove: (e) => onDragMove(e.touches[0].clientY),
|
|
5911
|
+
onTouchEnd: onDragEnd,
|
|
5912
|
+
onTouchCancel: onDragEnd,
|
|
5913
|
+
className: __default59.barHandle,
|
|
5914
|
+
"aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E",
|
|
5915
|
+
children: /* @__PURE__ */ jsx("span", { className: __default59.handleBar })
|
|
5916
|
+
}
|
|
5917
|
+
),
|
|
5918
|
+
/* @__PURE__ */ jsx("div", { className: __default59.barActions, children })
|
|
5919
|
+
] });
|
|
5920
|
+
}
|
|
5921
|
+
function Panel({ children, className = "" }) {
|
|
5922
|
+
const { open, dragY, isDragging, setOpen } = useBottomSheet("Panel");
|
|
5923
|
+
let transformStyle;
|
|
5924
|
+
if (isDragging) {
|
|
5925
|
+
if (open && dragY > 0) {
|
|
5926
|
+
transformStyle = { transform: `translateY(${dragY}px)`, transition: "none" };
|
|
5927
|
+
} else if (!open && dragY < 0) {
|
|
5928
|
+
transformStyle = {
|
|
5929
|
+
transform: `translateY(calc(100% + ${dragY}px))`,
|
|
5930
|
+
transition: "none"
|
|
5931
|
+
};
|
|
5932
|
+
}
|
|
5933
|
+
}
|
|
5934
|
+
const isDraggingOpen = isDragging && !open && dragY < 0;
|
|
5935
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5936
|
+
/* @__PURE__ */ jsx(
|
|
5937
|
+
"div",
|
|
5938
|
+
{
|
|
5939
|
+
className: `${__default59.backdrop}${open || isDraggingOpen ? ` ${__default59.backdropOpen}` : ""}`,
|
|
5940
|
+
onClick: () => setOpen(false),
|
|
5941
|
+
"aria-hidden": "true"
|
|
5942
|
+
}
|
|
5943
|
+
),
|
|
5944
|
+
/* @__PURE__ */ jsx(
|
|
5945
|
+
"div",
|
|
5946
|
+
{
|
|
5947
|
+
className: `${__default59.panel}${open ? ` ${__default59.panelOpen}` : ""}${className ? ` ${className}` : ""}`,
|
|
5948
|
+
role: "dialog",
|
|
5949
|
+
"aria-modal": open,
|
|
5950
|
+
"aria-hidden": !open && !isDraggingOpen,
|
|
5951
|
+
style: transformStyle,
|
|
5952
|
+
children
|
|
5953
|
+
}
|
|
5954
|
+
)
|
|
5955
|
+
] });
|
|
5956
|
+
}
|
|
5957
|
+
function Handle({ className = "" }) {
|
|
5958
|
+
const { open, setOpen, onDragStart, onDragMove, onDragEnd } = useBottomSheet("Handle");
|
|
5959
|
+
return /* @__PURE__ */ jsx(
|
|
5960
|
+
"button",
|
|
5961
|
+
{
|
|
5962
|
+
type: "button",
|
|
5963
|
+
onClick: () => setOpen(!open),
|
|
5964
|
+
onTouchStart: (e) => onDragStart(e.touches[0].clientY),
|
|
5965
|
+
onTouchMove: (e) => onDragMove(e.touches[0].clientY),
|
|
5966
|
+
onTouchEnd: onDragEnd,
|
|
5967
|
+
onTouchCancel: onDragEnd,
|
|
5968
|
+
onPointerDown: (e) => {
|
|
5969
|
+
if (e.pointerType === "mouse") return;
|
|
5970
|
+
onDragStart(e.clientY);
|
|
5971
|
+
},
|
|
5972
|
+
onPointerMove: (e) => {
|
|
5973
|
+
if (e.pointerType === "mouse") return;
|
|
5974
|
+
onDragMove(e.clientY);
|
|
5975
|
+
},
|
|
5976
|
+
onPointerUp: (e) => {
|
|
5977
|
+
if (e.pointerType === "mouse") return;
|
|
5978
|
+
onDragEnd();
|
|
5979
|
+
},
|
|
5980
|
+
className: `${__default59.handle}${className ? ` ${className}` : ""}`,
|
|
5981
|
+
"aria-label": open ? "\u0417\u0430\u043A\u0440\u044B\u0442\u044C" : "\u041E\u0442\u043A\u0440\u044B\u0442\u044C",
|
|
5982
|
+
children: /* @__PURE__ */ jsx("span", { className: __default59.handleBar })
|
|
5983
|
+
}
|
|
5984
|
+
);
|
|
5985
|
+
}
|
|
5986
|
+
function Trigger({ children, className = "" }) {
|
|
5987
|
+
const { open, setOpen } = useBottomSheet("Trigger");
|
|
5988
|
+
return /* @__PURE__ */ jsx(
|
|
5989
|
+
"div",
|
|
5990
|
+
{
|
|
5991
|
+
onClick: () => setOpen(!open),
|
|
5992
|
+
className: `${__default59.trigger}${className ? ` ${className}` : ""}`,
|
|
5993
|
+
children
|
|
5994
|
+
}
|
|
5995
|
+
);
|
|
5996
|
+
}
|
|
5997
|
+
BottomSheet.Bar = Bar;
|
|
5998
|
+
BottomSheet.Panel = Panel;
|
|
5999
|
+
BottomSheet.Handle = Handle;
|
|
6000
|
+
BottomSheet.Trigger = Trigger;
|
|
6001
|
+
|
|
5556
6002
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/organisms/PromoBento.module.scss
|
|
5557
6003
|
__styleInject(`.PromoBento-module_root {
|
|
5558
6004
|
padding: 4rem 0;
|
|
@@ -5712,21 +6158,21 @@ __styleInject(`.PromoBento-module_root {
|
|
|
5712
6158
|
.PromoBento-module_cardCta {
|
|
5713
6159
|
margin-top: 0.25rem;
|
|
5714
6160
|
}`);
|
|
5715
|
-
var
|
|
6161
|
+
var __default60 = { "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" };
|
|
5716
6162
|
function PromoBentoCard({ pill, title, description, cta, media, className = "" }) {
|
|
5717
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
5718
|
-
media && /* @__PURE__ */ jsxs("div", { className:
|
|
5719
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5720
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6163
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default60.card}${className ? ` ${className}` : ""}`, children: [
|
|
6164
|
+
media && /* @__PURE__ */ jsxs("div", { className: __default60.cardMedia, children: [
|
|
6165
|
+
/* @__PURE__ */ jsx("div", { className: __default60.cardMediaInner, children: media }),
|
|
6166
|
+
/* @__PURE__ */ jsx("div", { className: __default60.cardFade })
|
|
5721
6167
|
] }),
|
|
5722
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
5723
|
-
pill && /* @__PURE__ */ jsx("div", { className:
|
|
5724
|
-
pill.icon && /* @__PURE__ */ jsx("span", { className:
|
|
6168
|
+
/* @__PURE__ */ jsxs("div", { className: __default60.cardContent, children: [
|
|
6169
|
+
pill && /* @__PURE__ */ jsx("div", { className: __default60.pill, children: /* @__PURE__ */ jsxs("span", { className: __default60.pillInner, children: [
|
|
6170
|
+
pill.icon && /* @__PURE__ */ jsx("span", { className: __default60.pillIcon, children: pill.icon }),
|
|
5725
6171
|
pill.label
|
|
5726
6172
|
] }) }),
|
|
5727
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
5728
|
-
description && /* @__PURE__ */ jsx("p", { className:
|
|
5729
|
-
cta && /* @__PURE__ */ jsx("div", { className:
|
|
6173
|
+
/* @__PURE__ */ jsx("h3", { className: __default60.cardTitle, children: title }),
|
|
6174
|
+
description && /* @__PURE__ */ jsx("p", { className: __default60.cardDesc, children: description }),
|
|
6175
|
+
cta && /* @__PURE__ */ jsx("div", { className: __default60.cardCta, children: /* @__PURE__ */ jsx(
|
|
5730
6176
|
Button,
|
|
5731
6177
|
{
|
|
5732
6178
|
variant: "outline",
|
|
@@ -5739,12 +6185,12 @@ function PromoBentoCard({ pill, title, description, cta, media, className = "" }
|
|
|
5739
6185
|
] });
|
|
5740
6186
|
}
|
|
5741
6187
|
function PromoBento({ heading, subtitle, items, className = "" }) {
|
|
5742
|
-
return /* @__PURE__ */ jsxs("section", { className: `${
|
|
5743
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
5744
|
-
/* @__PURE__ */ jsx("h2", { className:
|
|
5745
|
-
subtitle && /* @__PURE__ */ jsx("p", { className:
|
|
6188
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default60.root}${className ? ` ${className}` : ""}`, children: [
|
|
6189
|
+
/* @__PURE__ */ jsxs("div", { className: __default60.header, children: [
|
|
6190
|
+
/* @__PURE__ */ jsx("h2", { className: __default60.heading, children: heading }),
|
|
6191
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default60.subtitle, children: subtitle })
|
|
5746
6192
|
] }),
|
|
5747
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6193
|
+
/* @__PURE__ */ jsx("div", { className: __default60.grid, children: items.map((item, i) => /* @__PURE__ */ jsx(PromoBentoCard, __spreadValues({}, item), i)) })
|
|
5748
6194
|
] });
|
|
5749
6195
|
}
|
|
5750
6196
|
|
|
@@ -5866,26 +6312,26 @@ __styleInject(`.PromoShowcase-module_root {
|
|
|
5866
6312
|
padding: 2.5rem;
|
|
5867
6313
|
}
|
|
5868
6314
|
}`);
|
|
5869
|
-
var
|
|
6315
|
+
var __default61 = { "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" };
|
|
5870
6316
|
function PromoShowcase({ heading, steps, className = "" }) {
|
|
5871
6317
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
5872
|
-
return /* @__PURE__ */ jsxs("section", { className: `${
|
|
5873
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5874
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
5875
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6318
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default61.root}${className ? ` ${className}` : ""}`, children: [
|
|
6319
|
+
/* @__PURE__ */ jsx("div", { className: __default61.heading, children: /* @__PURE__ */ jsx("h2", { className: __default61.headingText, children: heading }) }),
|
|
6320
|
+
/* @__PURE__ */ jsxs("div", { className: __default61.body, children: [
|
|
6321
|
+
/* @__PURE__ */ jsx("div", { className: __default61.stepper, children: steps.map((step, i) => /* @__PURE__ */ jsx(
|
|
5876
6322
|
"button",
|
|
5877
6323
|
{
|
|
5878
6324
|
onClick: () => setActiveIndex(i),
|
|
5879
|
-
className: `${
|
|
6325
|
+
className: `${__default61.stepButton}${i === activeIndex ? ` ${__default61.stepButtonActive}` : ""}`,
|
|
5880
6326
|
children: step.label
|
|
5881
6327
|
},
|
|
5882
6328
|
i
|
|
5883
6329
|
)) }),
|
|
5884
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6330
|
+
/* @__PURE__ */ jsx("div", { className: __default61.contentArea, children: steps.map((step, i) => /* @__PURE__ */ jsx(
|
|
5885
6331
|
"div",
|
|
5886
6332
|
{
|
|
5887
|
-
className: `${
|
|
5888
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
6333
|
+
className: `${__default61.panel}${i === activeIndex ? ` ${__default61.panelActive}` : ""}`,
|
|
6334
|
+
children: /* @__PURE__ */ jsx("div", { className: __default61.panelInner, children: step.content })
|
|
5889
6335
|
},
|
|
5890
6336
|
i
|
|
5891
6337
|
)) })
|
|
@@ -6034,7 +6480,7 @@ __styleInject(`.PromoSplit-module_root {
|
|
|
6034
6480
|
align-items: center;
|
|
6035
6481
|
justify-content: center;
|
|
6036
6482
|
}`);
|
|
6037
|
-
var
|
|
6483
|
+
var __default62 = { "root": "PromoSplit-module_root", "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" };
|
|
6038
6484
|
function PromoSplit({
|
|
6039
6485
|
heading,
|
|
6040
6486
|
description,
|
|
@@ -6044,16 +6490,16 @@ function PromoSplit({
|
|
|
6044
6490
|
className = ""
|
|
6045
6491
|
}) {
|
|
6046
6492
|
const isLeft = mediaPosition === "left";
|
|
6047
|
-
return /* @__PURE__ */ jsx("section", { className: `${
|
|
6048
|
-
/* @__PURE__ */ jsxs("div", { className: `${
|
|
6049
|
-
/* @__PURE__ */ jsx("h2", { className:
|
|
6050
|
-
description && /* @__PURE__ */ jsx("p", { className:
|
|
6051
|
-
features && features.length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
6052
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
6053
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
6493
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default62.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxs("div", { className: isLeft ? __default62.gridReversed : __default62.grid, children: [
|
|
6494
|
+
/* @__PURE__ */ jsxs("div", { className: `${__default62.textColumn}${isLeft ? ` ${__default62.textColumnLtr}` : ""}`, children: [
|
|
6495
|
+
/* @__PURE__ */ jsx("h2", { className: __default62.heading, children: heading }),
|
|
6496
|
+
description && /* @__PURE__ */ jsx("p", { className: __default62.description, children: description }),
|
|
6497
|
+
features && features.length > 0 && /* @__PURE__ */ jsx("div", { className: __default62.features, children: features.map((feature, i) => /* @__PURE__ */ jsxs("div", { className: __default62.feature, children: [
|
|
6498
|
+
/* @__PURE__ */ jsx("h3", { className: __default62.featureTitle, children: feature.title }),
|
|
6499
|
+
/* @__PURE__ */ jsx("p", { className: __default62.featureDesc, children: feature.description })
|
|
6054
6500
|
] }, i)) })
|
|
6055
6501
|
] }),
|
|
6056
|
-
/* @__PURE__ */ jsx("div", { className: `${
|
|
6502
|
+
/* @__PURE__ */ jsx("div", { className: `${__default62.mediaColumn}${isLeft ? ` ${__default62.mediaColumnLtr}` : ""}`, children: /* @__PURE__ */ jsx("div", { className: __default62.mediaBox, children: media ? /* @__PURE__ */ jsx("div", { className: __default62.mediaContent, children: media }) : /* @__PURE__ */ jsx("div", { className: __default62.mediaPlaceholder, children: /* @__PURE__ */ jsx("div", { className: __default62.placeholderCircle, children: /* @__PURE__ */ 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: [
|
|
6057
6503
|
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
6058
6504
|
/* @__PURE__ */ jsx("circle", { cx: "8.5", cy: "8.5", r: "1.5" }),
|
|
6059
6505
|
/* @__PURE__ */ jsx("path", { d: "m21 15-5-5L5 21" })
|
|
@@ -6170,16 +6616,16 @@ __styleInject(`.PromoTrustGrid-module_root {
|
|
|
6170
6616
|
justify-content: center;
|
|
6171
6617
|
padding: 1.5rem;
|
|
6172
6618
|
}`);
|
|
6173
|
-
var
|
|
6619
|
+
var __default63 = { "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" };
|
|
6174
6620
|
function PromoTrustGrid({ heading, features, media, className = "" }) {
|
|
6175
|
-
return /* @__PURE__ */ jsxs("section", { className: `${
|
|
6176
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6177
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6178
|
-
feature.icon && /* @__PURE__ */ jsx("div", { className:
|
|
6179
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
6180
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
6621
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default63.root}${className ? ` ${className}` : ""}`, children: [
|
|
6622
|
+
/* @__PURE__ */ jsx("div", { className: __default63.heading, children: /* @__PURE__ */ jsx("h2", { className: __default63.headingText, children: heading }) }),
|
|
6623
|
+
/* @__PURE__ */ jsx("div", { className: __default63.grid, children: features.map((feature, i) => /* @__PURE__ */ jsxs("div", { className: __default63.featureCard, children: [
|
|
6624
|
+
feature.icon && /* @__PURE__ */ jsx("div", { className: __default63.featureIcon, children: feature.icon }),
|
|
6625
|
+
/* @__PURE__ */ jsx("h3", { className: __default63.featureTitle, children: feature.title }),
|
|
6626
|
+
/* @__PURE__ */ jsx("p", { className: __default63.featureDescription, children: feature.description })
|
|
6181
6627
|
] }, i)) }),
|
|
6182
|
-
media && /* @__PURE__ */ jsx("div", { className:
|
|
6628
|
+
media && /* @__PURE__ */ jsx("div", { className: __default63.media, children: /* @__PURE__ */ jsx("div", { className: __default63.mediaInner, children: media }) })
|
|
6183
6629
|
] });
|
|
6184
6630
|
}
|
|
6185
6631
|
|
|
@@ -6366,29 +6812,29 @@ __styleInject(`@charset "UTF-8";
|
|
|
6366
6812
|
border-radius: clamp(8px, 1.5vw, 16px);
|
|
6367
6813
|
background: var(--bg-tertiary);
|
|
6368
6814
|
}`);
|
|
6369
|
-
var
|
|
6815
|
+
var __default64 = { "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" };
|
|
6370
6816
|
function PromoDevicesCTA({
|
|
6371
6817
|
heading,
|
|
6372
6818
|
description,
|
|
6373
6819
|
cta,
|
|
6374
6820
|
className = ""
|
|
6375
6821
|
}) {
|
|
6376
|
-
return /* @__PURE__ */ jsxs("section", { className: `${
|
|
6377
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6378
|
-
/* @__PURE__ */ jsx("h2", { className:
|
|
6379
|
-
description && /* @__PURE__ */ jsx("p", { className:
|
|
6380
|
-
cta && /* @__PURE__ */ jsx("div", { className:
|
|
6822
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default64.root}${className ? ` ${className}` : ""}`, children: [
|
|
6823
|
+
/* @__PURE__ */ jsxs("div", { className: __default64.textBlock, children: [
|
|
6824
|
+
/* @__PURE__ */ jsx("h2", { className: __default64.heading, children: heading }),
|
|
6825
|
+
description && /* @__PURE__ */ jsx("p", { className: __default64.description, children: description }),
|
|
6826
|
+
cta && /* @__PURE__ */ jsx("div", { className: __default64.ctaWrap, children: /* @__PURE__ */ jsx(Button, { variant: "primary", onClick: cta.onClick, children: cta.label }) })
|
|
6381
6827
|
] }),
|
|
6382
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6383
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6384
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6385
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6386
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6828
|
+
/* @__PURE__ */ jsxs("div", { className: __default64.devices, children: [
|
|
6829
|
+
/* @__PURE__ */ jsxs("div", { className: __default64.laptop, children: [
|
|
6830
|
+
/* @__PURE__ */ jsx("div", { className: __default64.laptopScreen, children: /* @__PURE__ */ jsx("div", { className: __default64.laptopScreenInner }) }),
|
|
6831
|
+
/* @__PURE__ */ jsx("div", { className: __default64.laptopHinge }),
|
|
6832
|
+
/* @__PURE__ */ jsx("div", { className: __default64.laptopBase })
|
|
6387
6833
|
] }),
|
|
6388
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6389
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6390
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6391
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6834
|
+
/* @__PURE__ */ jsx("div", { className: __default64.tablet, children: /* @__PURE__ */ jsx("div", { className: __default64.tabletShell, children: /* @__PURE__ */ jsx("div", { className: __default64.tabletScreen }) }) }),
|
|
6835
|
+
/* @__PURE__ */ jsx("div", { className: __default64.phone, children: /* @__PURE__ */ jsxs("div", { className: __default64.phoneShell, children: [
|
|
6836
|
+
/* @__PURE__ */ jsx("div", { className: __default64.phoneNotch }),
|
|
6837
|
+
/* @__PURE__ */ jsx("div", { className: __default64.phoneScreen })
|
|
6392
6838
|
] }) })
|
|
6393
6839
|
] })
|
|
6394
6840
|
] });
|
|
@@ -6577,7 +7023,7 @@ __styleInject(`.PromoTestimonials-module_root {
|
|
|
6577
7023
|
background: var(--bg-secondary);
|
|
6578
7024
|
overflow: hidden;
|
|
6579
7025
|
}`);
|
|
6580
|
-
var
|
|
7026
|
+
var __default65 = { "root": "PromoTestimonials-module_root", "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" };
|
|
6581
7027
|
function PromoTestimonials({
|
|
6582
7028
|
heading,
|
|
6583
7029
|
subtitle,
|
|
@@ -6585,14 +7031,14 @@ function PromoTestimonials({
|
|
|
6585
7031
|
media,
|
|
6586
7032
|
className = ""
|
|
6587
7033
|
}) {
|
|
6588
|
-
return /* @__PURE__ */ jsx("section", { className: `${
|
|
6589
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
7034
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default65.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxs("div", { className: __default65.wrapper, children: [
|
|
7035
|
+
/* @__PURE__ */ jsx("div", { className: __default65.avatarSection, children: /* @__PURE__ */ jsxs("div", { className: __default65.avatarStack, children: [
|
|
6590
7036
|
testimonials.slice(0, 5).map((t, i) => {
|
|
6591
7037
|
const initials = t.name.split(" ").map((n) => n[0]).join("").toUpperCase();
|
|
6592
7038
|
return /* @__PURE__ */ jsx(
|
|
6593
7039
|
"div",
|
|
6594
7040
|
{
|
|
6595
|
-
className:
|
|
7041
|
+
className: __default65.avatarRing,
|
|
6596
7042
|
style: { zIndex: 10 - i },
|
|
6597
7043
|
children: /* @__PURE__ */ jsx(
|
|
6598
7044
|
Avatar,
|
|
@@ -6606,32 +7052,32 @@ function PromoTestimonials({
|
|
|
6606
7052
|
i
|
|
6607
7053
|
);
|
|
6608
7054
|
}),
|
|
6609
|
-
testimonials.length > 5 && /* @__PURE__ */ jsx("div", { className:
|
|
7055
|
+
testimonials.length > 5 && /* @__PURE__ */ jsx("div", { className: __default65.overflowBadge, children: /* @__PURE__ */ jsxs("div", { className: __default65.overflowCircle, children: [
|
|
6610
7056
|
"+",
|
|
6611
7057
|
testimonials.length - 5
|
|
6612
7058
|
] }) })
|
|
6613
7059
|
] }) }),
|
|
6614
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6615
|
-
/* @__PURE__ */ jsx("h2", { className:
|
|
6616
|
-
subtitle && /* @__PURE__ */ jsx("p", { className:
|
|
7060
|
+
/* @__PURE__ */ jsxs("div", { className: __default65.headingSection, children: [
|
|
7061
|
+
/* @__PURE__ */ jsx("h2", { className: __default65.heading, children: heading }),
|
|
7062
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default65.subtitle, children: subtitle })
|
|
6617
7063
|
] }),
|
|
6618
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
7064
|
+
/* @__PURE__ */ jsx("div", { className: __default65.cardsSection, children: /* @__PURE__ */ jsx("div", { className: __default65.cardsGrid, children: testimonials.map((t, i) => {
|
|
6619
7065
|
const initials = t.name.split(" ").map((n) => n[0]).join("").toUpperCase();
|
|
6620
7066
|
return /* @__PURE__ */ jsxs(
|
|
6621
7067
|
"div",
|
|
6622
7068
|
{
|
|
6623
|
-
className:
|
|
7069
|
+
className: __default65.card,
|
|
6624
7070
|
children: [
|
|
6625
|
-
/* @__PURE__ */ jsxs("p", { className:
|
|
7071
|
+
/* @__PURE__ */ jsxs("p", { className: __default65.quote, children: [
|
|
6626
7072
|
"\u201C",
|
|
6627
7073
|
t.quote,
|
|
6628
7074
|
"\u201D"
|
|
6629
7075
|
] }),
|
|
6630
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7076
|
+
/* @__PURE__ */ jsxs("div", { className: __default65.author, children: [
|
|
6631
7077
|
/* @__PURE__ */ jsx(Avatar, { size: "sm", src: t.avatarSrc, initials }),
|
|
6632
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6633
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
6634
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
7078
|
+
/* @__PURE__ */ jsxs("div", { className: __default65.authorInfo, children: [
|
|
7079
|
+
/* @__PURE__ */ jsx("p", { className: __default65.authorName, children: t.name }),
|
|
7080
|
+
/* @__PURE__ */ jsx("p", { className: __default65.authorRole, children: t.role })
|
|
6635
7081
|
] })
|
|
6636
7082
|
] })
|
|
6637
7083
|
]
|
|
@@ -6639,7 +7085,7 @@ function PromoTestimonials({
|
|
|
6639
7085
|
i
|
|
6640
7086
|
);
|
|
6641
7087
|
}) }) }),
|
|
6642
|
-
media && /* @__PURE__ */ jsx("div", { className:
|
|
7088
|
+
media && /* @__PURE__ */ jsx("div", { className: __default65.mediaSection, children: /* @__PURE__ */ jsx("div", { className: __default65.mediaBox, children: media }) })
|
|
6643
7089
|
] }) });
|
|
6644
7090
|
}
|
|
6645
7091
|
|
|
@@ -6791,7 +7237,7 @@ __styleInject(`.PromoHero-module_root {
|
|
|
6791
7237
|
align-items: center;
|
|
6792
7238
|
justify-content: center;
|
|
6793
7239
|
}`);
|
|
6794
|
-
var
|
|
7240
|
+
var __default66 = { "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" };
|
|
6795
7241
|
function PromoHero({
|
|
6796
7242
|
title,
|
|
6797
7243
|
subtitle,
|
|
@@ -6801,30 +7247,30 @@ function PromoHero({
|
|
|
6801
7247
|
variant = "dark",
|
|
6802
7248
|
className = ""
|
|
6803
7249
|
}) {
|
|
6804
|
-
const variantClass = variant === "dark" ?
|
|
6805
|
-
const subtitleClass = variant === "light" ?
|
|
7250
|
+
const variantClass = variant === "dark" ? __default66.dark : variant === "gradient" ? __default66.gradient : __default66.light;
|
|
7251
|
+
const subtitleClass = variant === "light" ? __default66.subtitleLight : __default66.subtitleDark;
|
|
6806
7252
|
const isLight = variant === "light";
|
|
6807
7253
|
return /* @__PURE__ */ jsxs(
|
|
6808
7254
|
"section",
|
|
6809
7255
|
{
|
|
6810
|
-
className: `${
|
|
7256
|
+
className: `${__default66.root} ${variantClass}${className ? ` ${className}` : ""}`,
|
|
6811
7257
|
children: [
|
|
6812
|
-
!isLight && /* @__PURE__ */ jsxs("div", { className:
|
|
6813
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6814
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
7258
|
+
!isLight && /* @__PURE__ */ jsxs("div", { className: __default66.glowLayer, "aria-hidden": "true", children: [
|
|
7259
|
+
/* @__PURE__ */ jsx("div", { className: __default66.glowTop }),
|
|
7260
|
+
/* @__PURE__ */ jsx("div", { className: __default66.glowBottom })
|
|
6815
7261
|
] }),
|
|
6816
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6817
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6818
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
6819
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: `${
|
|
6820
|
-
(cta || secondaryCta) && /* @__PURE__ */ jsxs("div", { className:
|
|
7262
|
+
/* @__PURE__ */ jsxs("div", { className: __default66.inner, children: [
|
|
7263
|
+
/* @__PURE__ */ jsxs("div", { className: __default66.textColumn, children: [
|
|
7264
|
+
/* @__PURE__ */ jsx("h1", { className: __default66.title, children: title }),
|
|
7265
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: `${__default66.subtitle} ${subtitleClass}`, children: subtitle }),
|
|
7266
|
+
(cta || secondaryCta) && /* @__PURE__ */ jsxs("div", { className: __default66.actions, children: [
|
|
6821
7267
|
cta && /* @__PURE__ */ jsx(
|
|
6822
7268
|
Button,
|
|
6823
7269
|
{
|
|
6824
7270
|
variant: isLight ? "primary" : "outline",
|
|
6825
7271
|
size: "hero",
|
|
6826
7272
|
onClick: cta.onClick,
|
|
6827
|
-
className: !isLight ?
|
|
7273
|
+
className: !isLight ? __default66.ctaDark : "",
|
|
6828
7274
|
children: cta.label
|
|
6829
7275
|
}
|
|
6830
7276
|
),
|
|
@@ -6834,13 +7280,13 @@ function PromoHero({
|
|
|
6834
7280
|
variant: "ghost",
|
|
6835
7281
|
size: "hero",
|
|
6836
7282
|
onClick: secondaryCta.onClick,
|
|
6837
|
-
className: !isLight ?
|
|
7283
|
+
className: !isLight ? __default66.ghostDark : "",
|
|
6838
7284
|
children: secondaryCta.label
|
|
6839
7285
|
}
|
|
6840
7286
|
)
|
|
6841
7287
|
] })
|
|
6842
7288
|
] }),
|
|
6843
|
-
media && /* @__PURE__ */ jsx("div", { className:
|
|
7289
|
+
media && /* @__PURE__ */ jsx("div", { className: __default66.mediaColumn, children: media })
|
|
6844
7290
|
] })
|
|
6845
7291
|
]
|
|
6846
7292
|
}
|
|
@@ -6994,7 +7440,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
6994
7440
|
max-width: 640px;
|
|
6995
7441
|
width: 100%;
|
|
6996
7442
|
}`);
|
|
6997
|
-
var
|
|
7443
|
+
var __default67 = { "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" };
|
|
6998
7444
|
function PromoHeroForm({
|
|
6999
7445
|
title,
|
|
7000
7446
|
subtitle,
|
|
@@ -7017,17 +7463,17 @@ function PromoHeroForm({
|
|
|
7017
7463
|
onSubmit == null ? void 0 : onSubmit(trimmed);
|
|
7018
7464
|
};
|
|
7019
7465
|
const isDisabled = loading || value.trim().length === 0;
|
|
7020
|
-
return /* @__PURE__ */ jsx("section", { className: `${
|
|
7021
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
7022
|
-
subtitle && /* @__PURE__ */ jsx("p", { className:
|
|
7466
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default67.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxs("div", { className: __default67.inner, children: [
|
|
7467
|
+
/* @__PURE__ */ jsx("h1", { className: __default67.title, children: title }),
|
|
7468
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default67.subtitle, children: subtitle }),
|
|
7023
7469
|
/* @__PURE__ */ jsx(
|
|
7024
7470
|
"form",
|
|
7025
7471
|
{
|
|
7026
|
-
className:
|
|
7472
|
+
className: __default67.form,
|
|
7027
7473
|
onSubmit: handleSubmit,
|
|
7028
7474
|
"aria-busy": loading,
|
|
7029
7475
|
noValidate: true,
|
|
7030
|
-
children: /* @__PURE__ */ jsxs("div", { className:
|
|
7476
|
+
children: /* @__PURE__ */ jsxs("div", { className: __default67.formInner, children: [
|
|
7031
7477
|
/* @__PURE__ */ jsx(
|
|
7032
7478
|
"input",
|
|
7033
7479
|
{
|
|
@@ -7036,7 +7482,7 @@ function PromoHeroForm({
|
|
|
7036
7482
|
value,
|
|
7037
7483
|
onChange: (e) => setValue(e.target.value),
|
|
7038
7484
|
disabled: loading,
|
|
7039
|
-
className:
|
|
7485
|
+
className: __default67.input,
|
|
7040
7486
|
"aria-label": inputAriaLabel || inputPlaceholder
|
|
7041
7487
|
}
|
|
7042
7488
|
),
|
|
@@ -7054,8 +7500,8 @@ function PromoHeroForm({
|
|
|
7054
7500
|
] })
|
|
7055
7501
|
}
|
|
7056
7502
|
),
|
|
7057
|
-
hint && !error && /* @__PURE__ */ jsx("p", { className:
|
|
7058
|
-
error && /* @__PURE__ */ jsx("div", { className:
|
|
7503
|
+
hint && !error && /* @__PURE__ */ jsx("p", { className: __default67.hint, children: hint }),
|
|
7504
|
+
error && /* @__PURE__ */ jsx("div", { className: __default67.errorBox, role: "alert", children: error })
|
|
7059
7505
|
] }) });
|
|
7060
7506
|
}
|
|
7061
7507
|
|
|
@@ -7333,7 +7779,7 @@ __styleInject(`.PromoPricing-module_root {
|
|
|
7333
7779
|
.PromoPricing-module_ctaWrap {
|
|
7334
7780
|
margin-top: auto;
|
|
7335
7781
|
}`);
|
|
7336
|
-
var
|
|
7782
|
+
var __default68 = { "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" };
|
|
7337
7783
|
function PromoPricing({
|
|
7338
7784
|
heading,
|
|
7339
7785
|
subtitle,
|
|
@@ -7343,50 +7789,50 @@ function PromoPricing({
|
|
|
7343
7789
|
}) {
|
|
7344
7790
|
const isDark = variant === "dark";
|
|
7345
7791
|
const getTierClass = (highlighted) => {
|
|
7346
|
-
if (highlighted) return isDark ?
|
|
7347
|
-
return isDark ?
|
|
7792
|
+
if (highlighted) return isDark ? __default68.tierDarkHighlighted : __default68.tierHighlighted;
|
|
7793
|
+
return isDark ? __default68.tierDark : __default68.tierDefault;
|
|
7348
7794
|
};
|
|
7349
7795
|
const getNameClass = (highlighted) => {
|
|
7350
|
-
if (highlighted) return isDark ?
|
|
7351
|
-
return isDark ?
|
|
7796
|
+
if (highlighted) return isDark ? __default68.tierNameHighlightedDark : __default68.tierNameHighlightedLight;
|
|
7797
|
+
return isDark ? __default68.tierNameDark : __default68.tierNameMuted;
|
|
7352
7798
|
};
|
|
7353
7799
|
const getPeriodClass = (highlighted) => {
|
|
7354
|
-
if (highlighted) return isDark ?
|
|
7355
|
-
return isDark ?
|
|
7800
|
+
if (highlighted) return isDark ? __default68.periodHighlightedDark : __default68.periodHighlightedLight;
|
|
7801
|
+
return isDark ? __default68.periodDark : __default68.periodMuted;
|
|
7356
7802
|
};
|
|
7357
7803
|
const getDescClass = (highlighted) => {
|
|
7358
|
-
if (highlighted) return isDark ?
|
|
7359
|
-
return isDark ?
|
|
7804
|
+
if (highlighted) return isDark ? __default68.tierDescHighlightedDark : __default68.tierDescHighlightedLight;
|
|
7805
|
+
return isDark ? __default68.tierDescDark : __default68.tierDescMuted;
|
|
7360
7806
|
};
|
|
7361
7807
|
const getCheckClass = (highlighted) => {
|
|
7362
|
-
if (highlighted) return isDark ?
|
|
7363
|
-
return isDark ?
|
|
7808
|
+
if (highlighted) return isDark ? __default68.checkHighlightedDark : __default68.checkHighlightedLight;
|
|
7809
|
+
return isDark ? __default68.checkDark : __default68.checkDefault;
|
|
7364
7810
|
};
|
|
7365
7811
|
const getFeatureTextClass = (highlighted) => {
|
|
7366
|
-
if (highlighted) return isDark ?
|
|
7367
|
-
return isDark ?
|
|
7812
|
+
if (highlighted) return isDark ? __default68.featureTextHighlightedDark : __default68.featureTextHighlightedLight;
|
|
7813
|
+
return isDark ? __default68.featureTextDark : __default68.featureTextMuted;
|
|
7368
7814
|
};
|
|
7369
7815
|
return /* @__PURE__ */ jsxs(
|
|
7370
7816
|
"section",
|
|
7371
7817
|
{
|
|
7372
|
-
className: `${
|
|
7818
|
+
className: `${__default68.root} ${isDark ? __default68.dark : __default68.light}${className ? ` ${className}` : ""}`,
|
|
7373
7819
|
children: [
|
|
7374
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7375
|
-
/* @__PURE__ */ jsx("h2", { className: `${
|
|
7376
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: `${
|
|
7820
|
+
/* @__PURE__ */ jsxs("div", { className: __default68.headingSection, children: [
|
|
7821
|
+
/* @__PURE__ */ jsx("h2", { className: `${__default68.heading} ${isDark ? __default68.headingDark : __default68.headingLight}`, children: heading }),
|
|
7822
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: `${__default68.subtitle} ${isDark ? __default68.subtitleDark : __default68.subtitleLight}`, children: subtitle })
|
|
7377
7823
|
] }),
|
|
7378
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
7824
|
+
/* @__PURE__ */ jsx("div", { className: __default68.tiersGrid, children: tiers.map((tier, i) => /* @__PURE__ */ jsxs(
|
|
7379
7825
|
"div",
|
|
7380
7826
|
{
|
|
7381
7827
|
className: getTierClass(tier.highlighted),
|
|
7382
7828
|
children: [
|
|
7383
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
7384
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7829
|
+
/* @__PURE__ */ jsx("div", { className: __default68.tierName, children: /* @__PURE__ */ jsx("h3", { className: getNameClass(tier.highlighted), children: tier.name }) }),
|
|
7830
|
+
/* @__PURE__ */ jsxs("div", { className: __default68.price, children: [
|
|
7385
7831
|
/* @__PURE__ */ jsx("span", { children: tier.price }),
|
|
7386
|
-
tier.period && /* @__PURE__ */ jsx("span", { className: `${
|
|
7832
|
+
tier.period && /* @__PURE__ */ jsx("span", { className: `${__default68.period} ${getPeriodClass(tier.highlighted)}`, children: tier.period })
|
|
7387
7833
|
] }),
|
|
7388
|
-
tier.description && /* @__PURE__ */ jsx("p", { className: `${
|
|
7389
|
-
/* @__PURE__ */ jsx("ul", { className:
|
|
7834
|
+
tier.description && /* @__PURE__ */ jsx("p", { className: `${__default68.tierDesc} ${getDescClass(tier.highlighted)}`, children: tier.description }),
|
|
7835
|
+
/* @__PURE__ */ jsx("ul", { className: __default68.featureList, children: tier.features.map((feature, fi) => /* @__PURE__ */ jsxs("li", { className: __default68.featureItem, children: [
|
|
7390
7836
|
/* @__PURE__ */ jsx(
|
|
7391
7837
|
"svg",
|
|
7392
7838
|
{
|
|
@@ -7394,13 +7840,13 @@ function PromoPricing({
|
|
|
7394
7840
|
height: "16",
|
|
7395
7841
|
viewBox: "0 0 16 16",
|
|
7396
7842
|
fill: "none",
|
|
7397
|
-
className: `${
|
|
7843
|
+
className: `${__default68.checkIcon} ${getCheckClass(tier.highlighted)}`,
|
|
7398
7844
|
children: /* @__PURE__ */ jsx("path", { d: "M3.5 8.5L6.5 11.5L12.5 4.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
7399
7845
|
}
|
|
7400
7846
|
),
|
|
7401
7847
|
/* @__PURE__ */ jsx("span", { className: getFeatureTextClass(tier.highlighted), children: feature })
|
|
7402
7848
|
] }, fi)) }),
|
|
7403
|
-
tier.cta && /* @__PURE__ */ jsx("div", { className:
|
|
7849
|
+
tier.cta && /* @__PURE__ */ jsx("div", { className: __default68.ctaWrap, children: tier.cta })
|
|
7404
7850
|
]
|
|
7405
7851
|
},
|
|
7406
7852
|
i
|
|
@@ -7558,7 +8004,7 @@ __styleInject(`.PromoActionCards-module_root {
|
|
|
7558
8004
|
.PromoActionCards-module_ctaBtn:hover {
|
|
7559
8005
|
opacity: 0.9;
|
|
7560
8006
|
}`);
|
|
7561
|
-
var
|
|
8007
|
+
var __default69 = { "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" };
|
|
7562
8008
|
function PromoActionCards({
|
|
7563
8009
|
heading,
|
|
7564
8010
|
subtitle,
|
|
@@ -7566,28 +8012,28 @@ function PromoActionCards({
|
|
|
7566
8012
|
columns = 3,
|
|
7567
8013
|
className = ""
|
|
7568
8014
|
}) {
|
|
7569
|
-
const gridClass = columns === 2 ?
|
|
7570
|
-
return /* @__PURE__ */ jsxs("section", { className: `${
|
|
7571
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7572
|
-
/* @__PURE__ */ jsx("h2", { className:
|
|
7573
|
-
subtitle && /* @__PURE__ */ jsx("p", { className:
|
|
8015
|
+
const gridClass = columns === 2 ? __default69.grid2 : __default69.grid3;
|
|
8016
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default69.root}${className ? ` ${className}` : ""}`, children: [
|
|
8017
|
+
/* @__PURE__ */ jsxs("div", { className: __default69.header, children: [
|
|
8018
|
+
/* @__PURE__ */ jsx("h2", { className: __default69.heading, children: heading }),
|
|
8019
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default69.subtitle, children: subtitle })
|
|
7574
8020
|
] }),
|
|
7575
8021
|
/* @__PURE__ */ jsx("div", { className: gridClass, children: cards.map((card, i) => {
|
|
7576
8022
|
var _a;
|
|
7577
8023
|
return /* @__PURE__ */ jsxs(
|
|
7578
8024
|
"div",
|
|
7579
8025
|
{
|
|
7580
|
-
className:
|
|
8026
|
+
className: __default69.card,
|
|
7581
8027
|
children: [
|
|
7582
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7583
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
7584
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
8028
|
+
/* @__PURE__ */ jsxs("div", { className: __default69.cardContent, children: [
|
|
8029
|
+
/* @__PURE__ */ jsx("h3", { className: __default69.cardTitle, children: card.title }),
|
|
8030
|
+
/* @__PURE__ */ jsx("p", { className: __default69.cardDesc, children: card.description })
|
|
7585
8031
|
] }),
|
|
7586
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7587
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8032
|
+
/* @__PURE__ */ jsxs("div", { className: __default69.cardFooter, children: [
|
|
8033
|
+
/* @__PURE__ */ jsx("div", { className: __default69.iconGroup, children: (_a = card.icons) == null ? void 0 : _a.map((icon, ii) => /* @__PURE__ */ jsx(
|
|
7588
8034
|
"span",
|
|
7589
8035
|
{
|
|
7590
|
-
className:
|
|
8036
|
+
className: __default69.iconCircle,
|
|
7591
8037
|
children: icon
|
|
7592
8038
|
},
|
|
7593
8039
|
ii
|
|
@@ -7596,7 +8042,7 @@ function PromoActionCards({
|
|
|
7596
8042
|
"button",
|
|
7597
8043
|
{
|
|
7598
8044
|
onClick: card.cta.onClick,
|
|
7599
|
-
className:
|
|
8045
|
+
className: __default69.ctaBtn,
|
|
7600
8046
|
children: [
|
|
7601
8047
|
card.cta.label,
|
|
7602
8048
|
/* @__PURE__ */ jsx("svg", { width: "11", height: "11", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M4.5 2.5l4 3.5-4 3.5" }) })
|
|
@@ -7719,7 +8165,7 @@ __styleInject(`.ArticleHero-module_root {
|
|
|
7719
8165
|
color: rgba(255, 255, 255, 0.9);
|
|
7720
8166
|
line-height: 22.5px;
|
|
7721
8167
|
}`);
|
|
7722
|
-
var
|
|
8168
|
+
var __default70 = { "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" };
|
|
7723
8169
|
var DEFAULT_BG = "https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&h=900&fit=crop&q=80";
|
|
7724
8170
|
function ArticleHero({
|
|
7725
8171
|
category,
|
|
@@ -7731,20 +8177,20 @@ function ArticleHero({
|
|
|
7731
8177
|
className = ""
|
|
7732
8178
|
}) {
|
|
7733
8179
|
const bgSrc = backgroundImage != null ? backgroundImage : DEFAULT_BG;
|
|
7734
|
-
return /* @__PURE__ */ jsxs("section", { className: `${
|
|
7735
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7736
|
-
/* @__PURE__ */ jsx("img", { src: bgSrc, alt: "", className:
|
|
7737
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8180
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default70.root}${className ? ` ${className}` : ""}`, children: [
|
|
8181
|
+
/* @__PURE__ */ jsxs("div", { className: __default70.bgLayer, children: [
|
|
8182
|
+
/* @__PURE__ */ jsx("img", { src: bgSrc, alt: "", className: __default70.bgImage }),
|
|
8183
|
+
/* @__PURE__ */ jsx("div", { className: __default70.overlay })
|
|
7738
8184
|
] }),
|
|
7739
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7740
|
-
logo && /* @__PURE__ */ jsx("div", { className:
|
|
7741
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
7742
|
-
nav && /* @__PURE__ */ jsx("div", { className:
|
|
8185
|
+
/* @__PURE__ */ jsxs("div", { className: __default70.topBar, children: [
|
|
8186
|
+
logo && /* @__PURE__ */ jsx("div", { className: __default70.logo, children: logo }),
|
|
8187
|
+
/* @__PURE__ */ jsx("div", { className: __default70.divider }),
|
|
8188
|
+
nav && /* @__PURE__ */ jsx("div", { className: __default70.nav, children: nav })
|
|
7743
8189
|
] }),
|
|
7744
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7745
|
-
category && /* @__PURE__ */ jsx("p", { className:
|
|
7746
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
7747
|
-
subtitle && /* @__PURE__ */ jsx("p", { className:
|
|
8190
|
+
/* @__PURE__ */ jsxs("div", { className: __default70.bottom, children: [
|
|
8191
|
+
category && /* @__PURE__ */ jsx("p", { className: __default70.category, children: category }),
|
|
8192
|
+
/* @__PURE__ */ jsx("h1", { className: __default70.title, children: title }),
|
|
8193
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default70.subtitle, children: subtitle })
|
|
7748
8194
|
] })
|
|
7749
8195
|
] });
|
|
7750
8196
|
}
|
|
@@ -7756,9 +8202,9 @@ __styleInject(`.ArticleBody-module_root {
|
|
|
7756
8202
|
color: var(--fg-secondary);
|
|
7757
8203
|
font-weight: 400;
|
|
7758
8204
|
}`);
|
|
7759
|
-
var
|
|
8205
|
+
var __default71 = { "root": "ArticleBody-module_root" };
|
|
7760
8206
|
function ArticleBody({ children, className = "" }) {
|
|
7761
|
-
return /* @__PURE__ */ jsx("div", { className: `${
|
|
8207
|
+
return /* @__PURE__ */ jsx("div", { className: `${__default71.root}${className ? ` ${className}` : ""}`, children });
|
|
7762
8208
|
}
|
|
7763
8209
|
|
|
7764
8210
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/templates/ArticleHeading.module.scss
|
|
@@ -7801,10 +8247,10 @@ __styleInject(`.ArticleHeading-module_root {
|
|
|
7801
8247
|
line-height: 1.25rem;
|
|
7802
8248
|
color: var(--fg-muted);
|
|
7803
8249
|
}`);
|
|
7804
|
-
var
|
|
8250
|
+
var __default72 = { "root": "ArticleHeading-module_root", "header": "ArticleHeading-module_header", "h2": "ArticleHeading-module_h2", "h3": "ArticleHeading-module_h3", "action": "ArticleHeading-module_action", "subtitle": "ArticleHeading-module_subtitle" };
|
|
7805
8251
|
var levelClass = {
|
|
7806
|
-
2:
|
|
7807
|
-
3:
|
|
8252
|
+
2: __default72.h2,
|
|
8253
|
+
3: __default72.h3
|
|
7808
8254
|
};
|
|
7809
8255
|
function ArticleHeading({
|
|
7810
8256
|
level = 2,
|
|
@@ -7814,12 +8260,12 @@ function ArticleHeading({
|
|
|
7814
8260
|
className = ""
|
|
7815
8261
|
}) {
|
|
7816
8262
|
const Tag2 = `h${level}`;
|
|
7817
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
7818
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
8263
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default72.root}${className ? ` ${className}` : ""}`, children: [
|
|
8264
|
+
/* @__PURE__ */ jsxs("div", { className: __default72.header, children: [
|
|
7819
8265
|
/* @__PURE__ */ jsx(Tag2, { className: levelClass[level], children }),
|
|
7820
|
-
action && /* @__PURE__ */ jsx("div", { className:
|
|
8266
|
+
action && /* @__PURE__ */ jsx("div", { className: __default72.action, children: action })
|
|
7821
8267
|
] }),
|
|
7822
|
-
subtitle && /* @__PURE__ */ jsx("p", { className:
|
|
8268
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default72.subtitle, children: subtitle })
|
|
7823
8269
|
] });
|
|
7824
8270
|
}
|
|
7825
8271
|
|
|
@@ -7895,7 +8341,7 @@ __styleInject(`.ArticleFigure-module_root {
|
|
|
7895
8341
|
line-height: 1.25rem;
|
|
7896
8342
|
color: var(--fg-muted);
|
|
7897
8343
|
}`);
|
|
7898
|
-
var
|
|
8344
|
+
var __default73 = { "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" };
|
|
7899
8345
|
function ArticleFigure({
|
|
7900
8346
|
src,
|
|
7901
8347
|
alt = "",
|
|
@@ -7905,35 +8351,35 @@ function ArticleFigure({
|
|
|
7905
8351
|
children,
|
|
7906
8352
|
className = ""
|
|
7907
8353
|
}) {
|
|
7908
|
-
return /* @__PURE__ */ jsxs("figure", { className: `${
|
|
8354
|
+
return /* @__PURE__ */ jsxs("figure", { className: `${__default73.root}${className ? ` ${className}` : ""}`, children: [
|
|
7909
8355
|
/* @__PURE__ */ jsx(
|
|
7910
8356
|
"div",
|
|
7911
8357
|
{
|
|
7912
|
-
className:
|
|
8358
|
+
className: __default73.imageWrapper,
|
|
7913
8359
|
style: { minHeight: height },
|
|
7914
8360
|
children: src ? (
|
|
7915
8361
|
// eslint-disable-next-line @next/next/no-img-element
|
|
7916
|
-
/* @__PURE__ */ jsx("img", { src, alt, className:
|
|
7917
|
-
) : children ? /* @__PURE__ */ jsx("div", { className:
|
|
8362
|
+
/* @__PURE__ */ jsx("img", { src, alt, className: __default73.image })
|
|
8363
|
+
) : children ? /* @__PURE__ */ jsx("div", { className: __default73.childWrapper, children }) : /* @__PURE__ */ jsxs("div", { className: __default73.placeholder, children: [
|
|
7918
8364
|
/* @__PURE__ */ jsxs("svg", { width: "48", height: "48", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [
|
|
7919
8365
|
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
7920
8366
|
/* @__PURE__ */ jsx("path", { d: "M3 16l5-5 4 4 4-6 5 7" })
|
|
7921
8367
|
] }),
|
|
7922
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8368
|
+
/* @__PURE__ */ jsx("span", { className: __default73.placeholderText, children: "Figure placeholder" })
|
|
7923
8369
|
] })
|
|
7924
8370
|
}
|
|
7925
8371
|
),
|
|
7926
|
-
legend && legend.length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
8372
|
+
legend && legend.length > 0 && /* @__PURE__ */ jsx("div", { className: __default73.legend, children: legend.map((item) => /* @__PURE__ */ jsxs("div", { className: __default73.legendItem, children: [
|
|
7927
8373
|
/* @__PURE__ */ jsx(
|
|
7928
8374
|
"span",
|
|
7929
8375
|
{
|
|
7930
|
-
className:
|
|
8376
|
+
className: __default73.legendSwatch,
|
|
7931
8377
|
style: { backgroundColor: item.color }
|
|
7932
8378
|
}
|
|
7933
8379
|
),
|
|
7934
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8380
|
+
/* @__PURE__ */ jsx("span", { className: __default73.legendLabel, children: item.label })
|
|
7935
8381
|
] }, item.label)) }),
|
|
7936
|
-
caption && /* @__PURE__ */ jsx("figcaption", { className:
|
|
8382
|
+
caption && /* @__PURE__ */ jsx("figcaption", { className: __default73.caption, children: caption })
|
|
7937
8383
|
] });
|
|
7938
8384
|
}
|
|
7939
8385
|
|
|
@@ -8026,7 +8472,7 @@ __styleInject(`.ArticleTable-module_root {
|
|
|
8026
8472
|
.ArticleTable-module_showMore:hover {
|
|
8027
8473
|
color: var(--fg);
|
|
8028
8474
|
}`);
|
|
8029
|
-
var
|
|
8475
|
+
var __default74 = { "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" };
|
|
8030
8476
|
function ArticleTable({
|
|
8031
8477
|
columns,
|
|
8032
8478
|
rows,
|
|
@@ -8038,19 +8484,19 @@ function ArticleTable({
|
|
|
8038
8484
|
const limit = initialVisible != null ? initialVisible : rows.length;
|
|
8039
8485
|
const visibleRows = expanded ? rows : rows.slice(0, limit);
|
|
8040
8486
|
const hiddenCount = rows.length - limit;
|
|
8041
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
8042
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
8043
|
-
showRank && /* @__PURE__ */ jsx("div", { className:
|
|
8044
|
-
columns.map((col) => /* @__PURE__ */ jsx("div", { className:
|
|
8487
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default74.root}${className ? ` ${className}` : ""}`, children: [
|
|
8488
|
+
/* @__PURE__ */ jsxs("div", { className: __default74.headerRow, children: [
|
|
8489
|
+
showRank && /* @__PURE__ */ jsx("div", { className: __default74.rankCell }),
|
|
8490
|
+
columns.map((col) => /* @__PURE__ */ jsx("div", { className: __default74.headerCell, children: /* @__PURE__ */ jsx("span", { className: __default74.headerLabel, children: col.label }) }, col.key))
|
|
8045
8491
|
] }),
|
|
8046
|
-
/* @__PURE__ */ jsx("div", { children: visibleRows.map((row, i) => /* @__PURE__ */ jsxs("div", { className:
|
|
8047
|
-
showRank && /* @__PURE__ */ jsx("div", { className:
|
|
8492
|
+
/* @__PURE__ */ jsx("div", { children: visibleRows.map((row, i) => /* @__PURE__ */ jsxs("div", { className: __default74.row, children: [
|
|
8493
|
+
showRank && /* @__PURE__ */ jsx("div", { className: __default74.rankValue, children: /* @__PURE__ */ jsx("span", { children: i + 1 }) }),
|
|
8048
8494
|
columns.map((col) => {
|
|
8049
8495
|
const value = row[col.key];
|
|
8050
8496
|
const hasBadge = row._badge && row._badgeColumn === col.key;
|
|
8051
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
8052
|
-
col.render ? col.render(value, row) : /* @__PURE__ */ jsx("span", { className:
|
|
8053
|
-
hasBadge && /* @__PURE__ */ jsx("span", { className:
|
|
8497
|
+
return /* @__PURE__ */ jsxs("div", { className: __default74.cell, children: [
|
|
8498
|
+
col.render ? col.render(value, row) : /* @__PURE__ */ jsx("span", { className: __default74.cellText, children: String(value != null ? value : "") }),
|
|
8499
|
+
hasBadge && /* @__PURE__ */ jsx("span", { className: __default74.badge, children: row._badge })
|
|
8054
8500
|
] }, col.key);
|
|
8055
8501
|
})
|
|
8056
8502
|
] }, i)) }),
|
|
@@ -8058,7 +8504,7 @@ function ArticleTable({
|
|
|
8058
8504
|
"button",
|
|
8059
8505
|
{
|
|
8060
8506
|
onClick: () => setExpanded(true),
|
|
8061
|
-
className:
|
|
8507
|
+
className: __default74.showMore,
|
|
8062
8508
|
children: [
|
|
8063
8509
|
"Show ",
|
|
8064
8510
|
hiddenCount,
|
|
@@ -8091,19 +8537,19 @@ __styleInject(`.ArticleList-module_root {
|
|
|
8091
8537
|
.ArticleList-module_item {
|
|
8092
8538
|
padding-left: 0.25rem;
|
|
8093
8539
|
}`);
|
|
8094
|
-
var
|
|
8540
|
+
var __default75 = { "root": "ArticleList-module_root", "ordered": "ArticleList-module_ordered", "unordered": "ArticleList-module_unordered", "item": "ArticleList-module_item" };
|
|
8095
8541
|
function ArticleList({
|
|
8096
8542
|
variant = "unordered",
|
|
8097
8543
|
items,
|
|
8098
8544
|
className = ""
|
|
8099
8545
|
}) {
|
|
8100
8546
|
const Tag2 = variant === "ordered" ? "ol" : "ul";
|
|
8101
|
-
const variantClass = variant === "ordered" ?
|
|
8547
|
+
const variantClass = variant === "ordered" ? __default75.ordered : __default75.unordered;
|
|
8102
8548
|
return /* @__PURE__ */ jsx(
|
|
8103
8549
|
Tag2,
|
|
8104
8550
|
{
|
|
8105
|
-
className: `${
|
|
8106
|
-
children: items.map((item, i) => /* @__PURE__ */ jsx("li", { className:
|
|
8551
|
+
className: `${__default75.root} ${variantClass}${className ? ` ${className}` : ""}`,
|
|
8552
|
+
children: items.map((item, i) => /* @__PURE__ */ jsx("li", { className: __default75.item, children: item }, i))
|
|
8107
8553
|
}
|
|
8108
8554
|
);
|
|
8109
8555
|
}
|
|
@@ -8115,9 +8561,9 @@ __styleInject(`.ArticleNote-module_root {
|
|
|
8115
8561
|
color: var(--fg-secondary);
|
|
8116
8562
|
font-style: italic;
|
|
8117
8563
|
}`);
|
|
8118
|
-
var
|
|
8564
|
+
var __default76 = { "root": "ArticleNote-module_root" };
|
|
8119
8565
|
function ArticleNote({ children, className = "" }) {
|
|
8120
|
-
return /* @__PURE__ */ jsx("p", { className: `${
|
|
8566
|
+
return /* @__PURE__ */ jsx("p", { className: `${__default76.root}${className ? ` ${className}` : ""}`, children });
|
|
8121
8567
|
}
|
|
8122
8568
|
|
|
8123
8569
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/templates/ArticleChatBlock.module.scss
|
|
@@ -8230,11 +8676,11 @@ __styleInject(`.ArticleChatBlock-module_root {
|
|
|
8230
8676
|
.ArticleChatBlock-module_showMoreBtn:hover {
|
|
8231
8677
|
color: var(--fg);
|
|
8232
8678
|
}`);
|
|
8233
|
-
var
|
|
8679
|
+
var __default77 = { "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" };
|
|
8234
8680
|
var roleConfig = {
|
|
8235
|
-
assistant: { cls:
|
|
8236
|
-
system: { cls:
|
|
8237
|
-
user: { cls:
|
|
8681
|
+
assistant: { cls: __default77.assistant, gradient: "var(--bg-secondary)" },
|
|
8682
|
+
system: { cls: __default77.system, gradient: "var(--bg-tertiary)" },
|
|
8683
|
+
user: { cls: __default77.user, gradient: "var(--bg-secondary)" }
|
|
8238
8684
|
};
|
|
8239
8685
|
function ArticleChatBlock({
|
|
8240
8686
|
role,
|
|
@@ -8248,40 +8694,40 @@ function ArticleChatBlock({
|
|
|
8248
8694
|
var _a;
|
|
8249
8695
|
const [expanded, setExpanded] = useState(false);
|
|
8250
8696
|
const config = (_a = roleConfig[role]) != null ? _a : roleConfig.assistant;
|
|
8251
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
8252
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8697
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default77.root} ${config.cls}${className ? ` ${className}` : ""}`, children: [
|
|
8698
|
+
/* @__PURE__ */ jsx("div", { className: __default77.header, children: /* @__PURE__ */ jsxs("span", { className: __default77.roleLabel, children: [
|
|
8253
8699
|
role,
|
|
8254
8700
|
model && ` \u2022 ${model}`
|
|
8255
8701
|
] }) }),
|
|
8256
|
-
toolCall && /* @__PURE__ */ jsx("div", { className:
|
|
8257
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8258
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8702
|
+
toolCall && /* @__PURE__ */ jsx("div", { className: __default77.toolBadge, children: /* @__PURE__ */ jsxs("div", { className: __default77.toolBadgeInner, children: [
|
|
8703
|
+
/* @__PURE__ */ jsx("span", { className: __default77.toolDot }),
|
|
8704
|
+
/* @__PURE__ */ jsx("span", { className: __default77.toolLabel, children: toolCall })
|
|
8259
8705
|
] }) }),
|
|
8260
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8261
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
8706
|
+
/* @__PURE__ */ jsx("div", { className: __default77.divider }),
|
|
8707
|
+
/* @__PURE__ */ jsxs("div", { className: __default77.contentWrapper, children: [
|
|
8262
8708
|
/* @__PURE__ */ jsx(
|
|
8263
8709
|
"div",
|
|
8264
8710
|
{
|
|
8265
|
-
className:
|
|
8711
|
+
className: __default77.content,
|
|
8266
8712
|
style: collapsible && !expanded ? { maxHeight: collapsedHeight, overflow: "hidden" } : void 0,
|
|
8267
8713
|
children
|
|
8268
8714
|
}
|
|
8269
8715
|
),
|
|
8270
|
-
collapsible && !expanded && /* @__PURE__ */ jsxs("div", { className:
|
|
8716
|
+
collapsible && !expanded && /* @__PURE__ */ jsxs("div", { className: __default77.fadeOverlay, children: [
|
|
8271
8717
|
/* @__PURE__ */ jsx(
|
|
8272
8718
|
"div",
|
|
8273
8719
|
{
|
|
8274
|
-
className:
|
|
8720
|
+
className: __default77.fadeGradient,
|
|
8275
8721
|
style: {
|
|
8276
8722
|
background: `linear-gradient(to top, ${config.gradient}, transparent)`
|
|
8277
8723
|
}
|
|
8278
8724
|
}
|
|
8279
8725
|
),
|
|
8280
|
-
/* @__PURE__ */ jsx("div", { className: `${
|
|
8726
|
+
/* @__PURE__ */ jsx("div", { className: `${__default77.showMoreBar} ${config.cls}`, children: /* @__PURE__ */ jsx(
|
|
8281
8727
|
"button",
|
|
8282
8728
|
{
|
|
8283
8729
|
onClick: () => setExpanded(true),
|
|
8284
|
-
className:
|
|
8730
|
+
className: __default77.showMoreBtn,
|
|
8285
8731
|
children: "Show more"
|
|
8286
8732
|
}
|
|
8287
8733
|
) })
|
|
@@ -8313,14 +8759,14 @@ __styleInject(`.ArticleLinkButton-module_root {
|
|
|
8313
8759
|
.ArticleLinkButton-module_root:active {
|
|
8314
8760
|
opacity: 0.8;
|
|
8315
8761
|
}`);
|
|
8316
|
-
var
|
|
8762
|
+
var __default78 = { "root": "ArticleLinkButton-module_root" };
|
|
8317
8763
|
function ArticleLinkButton({
|
|
8318
8764
|
children,
|
|
8319
8765
|
href,
|
|
8320
8766
|
onClick,
|
|
8321
8767
|
className = ""
|
|
8322
8768
|
}) {
|
|
8323
|
-
const cls = `${
|
|
8769
|
+
const cls = `${__default78.root}${className ? ` ${className}` : ""}`;
|
|
8324
8770
|
if (href) {
|
|
8325
8771
|
return /* @__PURE__ */ jsx("a", { href, className: cls, children });
|
|
8326
8772
|
}
|
|
@@ -8357,18 +8803,18 @@ __styleInject(`.ArticleFooter-module_root {
|
|
|
8357
8803
|
line-height: 1.25rem;
|
|
8358
8804
|
color: var(--fg-muted);
|
|
8359
8805
|
}`);
|
|
8360
|
-
var
|
|
8806
|
+
var __default79 = { "root": "ArticleFooter-module_root", "topBar": "ArticleFooter-module_topBar", "logo": "ArticleFooter-module_logo", "divider": "ArticleFooter-module_divider", "copyright": "ArticleFooter-module_copyright" };
|
|
8361
8807
|
function ArticleFooter({
|
|
8362
8808
|
logo,
|
|
8363
8809
|
copyright = `\xA9 ${(/* @__PURE__ */ new Date()).getFullYear()} All rights reserved.`,
|
|
8364
8810
|
className = ""
|
|
8365
8811
|
}) {
|
|
8366
|
-
return /* @__PURE__ */ jsxs("footer", { className: `${
|
|
8367
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
8368
|
-
logo && /* @__PURE__ */ jsx("div", { className:
|
|
8369
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8812
|
+
return /* @__PURE__ */ jsxs("footer", { className: `${__default79.root}${className ? ` ${className}` : ""}`, children: [
|
|
8813
|
+
/* @__PURE__ */ jsxs("div", { className: __default79.topBar, children: [
|
|
8814
|
+
logo && /* @__PURE__ */ jsx("div", { className: __default79.logo, children: logo }),
|
|
8815
|
+
/* @__PURE__ */ jsx("div", { className: __default79.divider })
|
|
8370
8816
|
] }),
|
|
8371
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
8817
|
+
/* @__PURE__ */ jsx("p", { className: __default79.copyright, children: copyright })
|
|
8372
8818
|
] });
|
|
8373
8819
|
}
|
|
8374
8820
|
|
|
@@ -8391,15 +8837,15 @@ __styleInject(`.ArticleLayout-module_root {
|
|
|
8391
8837
|
width: 100%;
|
|
8392
8838
|
max-width: 720px;
|
|
8393
8839
|
}`);
|
|
8394
|
-
var
|
|
8840
|
+
var __default80 = { "root": "ArticleLayout-module_root", "wide": "ArticleLayout-module_wide", "narrow": "ArticleLayout-module_narrow" };
|
|
8395
8841
|
function ArticleLayout({ children, className = "" }) {
|
|
8396
|
-
return /* @__PURE__ */ jsx("article", { className: `${
|
|
8842
|
+
return /* @__PURE__ */ jsx("article", { className: `${__default80.root}${className ? ` ${className}` : ""}`, children });
|
|
8397
8843
|
}
|
|
8398
8844
|
function ArticleWide({ children, className = "" }) {
|
|
8399
|
-
return /* @__PURE__ */ jsx("div", { className: `${
|
|
8845
|
+
return /* @__PURE__ */ jsx("div", { className: `${__default80.wide}${className ? ` ${className}` : ""}`, children });
|
|
8400
8846
|
}
|
|
8401
8847
|
function ArticleNarrow({ children, className = "" }) {
|
|
8402
|
-
return /* @__PURE__ */ jsx("div", { className: `${
|
|
8848
|
+
return /* @__PURE__ */ jsx("div", { className: `${__default80.narrow}${className ? ` ${className}` : ""}`, children });
|
|
8403
8849
|
}
|
|
8404
8850
|
|
|
8405
8851
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/templates/ArticleChart.module.scss
|
|
@@ -8486,7 +8932,7 @@ __styleInject(`.ArticleChart-module_figure {
|
|
|
8486
8932
|
line-height: 1rem;
|
|
8487
8933
|
color: var(--fg-secondary);
|
|
8488
8934
|
}`);
|
|
8489
|
-
var
|
|
8935
|
+
var __default81 = { "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" };
|
|
8490
8936
|
function ChartTooltip({
|
|
8491
8937
|
active,
|
|
8492
8938
|
payload,
|
|
@@ -8497,15 +8943,15 @@ function ChartTooltip({
|
|
|
8497
8943
|
}) {
|
|
8498
8944
|
if (!active || !(payload == null ? void 0 : payload.length)) return null;
|
|
8499
8945
|
const fmt = valueFormatter != null ? valueFormatter : ((v) => String(v));
|
|
8500
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
8501
|
-
label !== void 0 && /* @__PURE__ */ jsxs("p", { className:
|
|
8946
|
+
return /* @__PURE__ */ jsxs("div", { className: __default81.tooltip, children: [
|
|
8947
|
+
label !== void 0 && /* @__PURE__ */ jsxs("p", { className: __default81.tooltipLabel, children: [
|
|
8502
8948
|
xLabel ? `${xLabel}: ` : "",
|
|
8503
8949
|
label
|
|
8504
8950
|
] }),
|
|
8505
|
-
payload.map((entry, i) => /* @__PURE__ */ jsxs("div", { className:
|
|
8506
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8507
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8508
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8951
|
+
payload.map((entry, i) => /* @__PURE__ */ jsxs("div", { className: __default81.tooltipRow, children: [
|
|
8952
|
+
/* @__PURE__ */ jsx("span", { className: __default81.tooltipDot, style: { backgroundColor: entry.color } }),
|
|
8953
|
+
/* @__PURE__ */ jsx("span", { className: __default81.tooltipName, children: entry.name }),
|
|
8954
|
+
/* @__PURE__ */ jsx("span", { className: __default81.tooltipValue, children: yLabel ? `${fmt(entry.value)} ` : fmt(entry.value) })
|
|
8509
8955
|
] }, i))
|
|
8510
8956
|
] });
|
|
8511
8957
|
}
|
|
@@ -8519,8 +8965,8 @@ function ArticleLineChart({
|
|
|
8519
8965
|
valueFormatter,
|
|
8520
8966
|
className = ""
|
|
8521
8967
|
}) {
|
|
8522
|
-
return /* @__PURE__ */ jsxs("figure", { className: `${
|
|
8523
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8968
|
+
return /* @__PURE__ */ jsxs("figure", { className: `${__default81.figure}${className ? ` ${className}` : ""}`, children: [
|
|
8969
|
+
/* @__PURE__ */ jsx("div", { className: __default81.chartWrapper, style: { height }, children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(LineChart, { data, margin: { top: 8, right: 16, bottom: 4, left: 8 }, children: [
|
|
8524
8970
|
/* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", stroke: "var(--border-color)" }),
|
|
8525
8971
|
/* @__PURE__ */ jsx(
|
|
8526
8972
|
XAxis,
|
|
@@ -8570,9 +9016,9 @@ function ArticleLineChart({
|
|
|
8570
9016
|
s.dataKey
|
|
8571
9017
|
))
|
|
8572
9018
|
] }) }) }),
|
|
8573
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8574
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8575
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
9019
|
+
/* @__PURE__ */ jsx("div", { className: __default81.legend, children: series.map((s) => /* @__PURE__ */ jsxs("div", { className: __default81.legendItem, children: [
|
|
9020
|
+
/* @__PURE__ */ jsx("span", { className: __default81.legendSwatch, style: { backgroundColor: s.color } }),
|
|
9021
|
+
/* @__PURE__ */ jsx("span", { className: __default81.legendLabel, children: s.name })
|
|
8576
9022
|
] }, s.dataKey)) })
|
|
8577
9023
|
] });
|
|
8578
9024
|
}
|
|
@@ -8587,8 +9033,8 @@ function ArticleBarChart({
|
|
|
8587
9033
|
valueFormatter,
|
|
8588
9034
|
className = ""
|
|
8589
9035
|
}) {
|
|
8590
|
-
return /* @__PURE__ */ jsxs("figure", { className: `${
|
|
8591
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
9036
|
+
return /* @__PURE__ */ jsxs("figure", { className: `${__default81.figure}${className ? ` ${className}` : ""}`, children: [
|
|
9037
|
+
/* @__PURE__ */ jsx("div", { className: __default81.chartWrapper, style: { height }, children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(BarChart, { data, margin: { top: 8, right: 16, bottom: 4, left: 8 }, children: [
|
|
8592
9038
|
/* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", stroke: "var(--border-color)", vertical: false }),
|
|
8593
9039
|
/* @__PURE__ */ jsx(
|
|
8594
9040
|
XAxis,
|
|
@@ -8625,7 +9071,7 @@ function ArticleBarChart({
|
|
|
8625
9071
|
}
|
|
8626
9072
|
),
|
|
8627
9073
|
series.map((s) => /* @__PURE__ */ jsx(
|
|
8628
|
-
Bar,
|
|
9074
|
+
Bar$1,
|
|
8629
9075
|
{
|
|
8630
9076
|
dataKey: s.dataKey,
|
|
8631
9077
|
name: s.name,
|
|
@@ -8636,9 +9082,9 @@ function ArticleBarChart({
|
|
|
8636
9082
|
s.dataKey
|
|
8637
9083
|
))
|
|
8638
9084
|
] }) }) }),
|
|
8639
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8640
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8641
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
9085
|
+
/* @__PURE__ */ jsx("div", { className: __default81.legend, children: series.map((s) => /* @__PURE__ */ jsxs("div", { className: __default81.legendItem, children: [
|
|
9086
|
+
/* @__PURE__ */ jsx("span", { className: __default81.legendSwatch, style: { backgroundColor: s.color } }),
|
|
9087
|
+
/* @__PURE__ */ jsx("span", { className: __default81.legendLabel, children: s.name })
|
|
8642
9088
|
] }, s.dataKey)) })
|
|
8643
9089
|
] });
|
|
8644
9090
|
}
|
|
@@ -8656,7 +9102,7 @@ function ArticleScatterChart({
|
|
|
8656
9102
|
var _a;
|
|
8657
9103
|
return (_a = d.color) != null ? _a : color;
|
|
8658
9104
|
});
|
|
8659
|
-
return /* @__PURE__ */ jsx("figure", { className: `${
|
|
9105
|
+
return /* @__PURE__ */ jsx("figure", { className: `${__default81.figure}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsx("div", { className: __default81.chartWrapper, style: { height }, children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(ScatterChart, { margin: { top: 8, right: 16, bottom: 4, left: 8 }, children: [
|
|
8660
9106
|
/* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", stroke: "var(--border-color)" }),
|
|
8661
9107
|
/* @__PURE__ */ jsx(
|
|
8662
9108
|
XAxis,
|
|
@@ -8692,14 +9138,14 @@ function ArticleScatterChart({
|
|
|
8692
9138
|
if (!active || !(payload == null ? void 0 : payload.length)) return null;
|
|
8693
9139
|
const point = (_a = payload[0]) == null ? void 0 : _a.payload;
|
|
8694
9140
|
const fmt = valueFormatter != null ? valueFormatter : ((v) => String(v));
|
|
8695
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
8696
|
-
point.label && /* @__PURE__ */ jsx("p", { className:
|
|
8697
|
-
xLabel && /* @__PURE__ */ jsxs("p", { className:
|
|
9141
|
+
return /* @__PURE__ */ jsxs("div", { className: __default81.tooltip, children: [
|
|
9142
|
+
point.label && /* @__PURE__ */ jsx("p", { className: __default81.scatterTooltipLabel, children: point.label }),
|
|
9143
|
+
xLabel && /* @__PURE__ */ jsxs("p", { className: __default81.scatterTooltipRow, children: [
|
|
8698
9144
|
xLabel,
|
|
8699
9145
|
": ",
|
|
8700
9146
|
fmt(point.x)
|
|
8701
9147
|
] }),
|
|
8702
|
-
yLabel && /* @__PURE__ */ jsxs("p", { className:
|
|
9148
|
+
yLabel && /* @__PURE__ */ jsxs("p", { className: __default81.scatterTooltipRow, children: [
|
|
8703
9149
|
yLabel,
|
|
8704
9150
|
": ",
|
|
8705
9151
|
fmt(point.y)
|
|
@@ -8776,7 +9222,7 @@ __styleInject(`.LandingLayout-module_headerMode {
|
|
|
8776
9222
|
padding-right: 4rem;
|
|
8777
9223
|
}
|
|
8778
9224
|
}`);
|
|
8779
|
-
var
|
|
9225
|
+
var __default82 = { "headerMode": "LandingLayout-module_headerMode", "headerMain": "LandingLayout-module_headerMain", "sidebarMode": "LandingLayout-module_sidebarMode", "sidebarNav": "LandingLayout-module_sidebarNav", "sidebarMain": "LandingLayout-module_sidebarMain", "sidebarContent": "LandingLayout-module_sidebarContent" };
|
|
8780
9226
|
function LandingLayout({
|
|
8781
9227
|
mode = "header",
|
|
8782
9228
|
nav,
|
|
@@ -8785,19 +9231,19 @@ function LandingLayout({
|
|
|
8785
9231
|
className = ""
|
|
8786
9232
|
}) {
|
|
8787
9233
|
if (mode === "sidebar") {
|
|
8788
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
8789
|
-
nav && /* @__PURE__ */ jsx("div", { className:
|
|
8790
|
-
/* @__PURE__ */ jsxs("main", { className:
|
|
8791
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
9234
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default82.sidebarMode}${className ? ` ${className}` : ""}`, children: [
|
|
9235
|
+
nav && /* @__PURE__ */ jsx("div", { className: __default82.sidebarNav, children: nav }),
|
|
9236
|
+
/* @__PURE__ */ jsxs("main", { className: __default82.sidebarMain, children: [
|
|
9237
|
+
/* @__PURE__ */ jsx("div", { className: __default82.sidebarContent, children }),
|
|
8792
9238
|
footer
|
|
8793
9239
|
] })
|
|
8794
9240
|
] });
|
|
8795
9241
|
}
|
|
8796
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
9242
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default82.headerMode}${className ? ` ${className}` : ""}`, children: [
|
|
8797
9243
|
nav,
|
|
8798
|
-
/* @__PURE__ */ jsx("main", { className:
|
|
9244
|
+
/* @__PURE__ */ jsx("main", { className: __default82.headerMain, children }),
|
|
8799
9245
|
footer
|
|
8800
9246
|
] });
|
|
8801
9247
|
}
|
|
8802
9248
|
|
|
8803
|
-
export { Alert, AppCard, AppTopLine, ArticleBarChart, ArticleBody, ArticleChatBlock, ArticleFigure, ArticleFooter, ArticleHeading, ArticleHero, ArticleLayout, ArticleLineChart, ArticleLinkButton, ArticleList, ArticleNarrow, ArticleNote, ArticleScatterChart, ArticleTable, ArticleWide, Avatar, Badge, BentoGrid, Breadcrumbs, Button, CTASection, Card, ChatInput, ChatMessage, Checkbox, CodeInput, ComparisonTable, Divider, DropdownMenu, EmptyState, FAQSection, FeatureGrid, Footer, FormField, Gallery, Header, HeroSection, IconBadge, IconButton, IconWithText, IconlyActivity, IconlyAttach, IconlyBook, IconlyCheck, IconlyChevronDown, IconlyChevronLeft, IconlyChevronRight, IconlyClock, IconlyClose, IconlyError, IconlyEye, IconlyEyeOff, IconlyHeart, IconlyInfo, IconlyInfoCircle, IconlyLink, IconlyLock, IconlyMail, IconlyMenu, IconlyMoon, IconlyQuote, IconlyRoadmap, IconlySandbox, IconlySearch, IconlySend, IconlyShield, IconlySmile, IconlyStar, IconlySuccess, IconlySun, IconlyWarning, Input, LandingLayout, Logo, LogoCloud, MenuItem, Modal, Pagination, PasswordInput, PricingCard, ProfileNav, PromoActionCards, PromoBento, PromoDevicesCTA, PromoHero, PromoHeroForm, PromoPricing, PromoShowcase, PromoSplit, PromoTestimonials, PromoTrustGrid, Radio, SearchBar, Select, Sidebar, Skeleton, Spinner, StampCard, Stat, StatBadge, StatsBar, Link as StyledLink, Tabs, Tag, TestimonialCard, Textarea, TicketButton, Toast, Toggle, Tooltip, TopPromo };
|
|
9249
|
+
export { Alert, AppCard, AppTopLine, ArticleBarChart, ArticleBody, ArticleChatBlock, ArticleFigure, ArticleFooter, ArticleHeading, ArticleHero, ArticleLayout, ArticleLineChart, ArticleLinkButton, ArticleList, ArticleNarrow, ArticleNote, ArticleScatterChart, ArticleTable, ArticleWide, Avatar, Badge, BentoGrid, BottomSheet, Breadcrumbs, Button, CTASection, Card, ChatInput, ChatMessage, Checkbox, CodeInput, ComparisonTable, Divider, DropdownMenu, EmptyState, FAQSection, FeatureGrid, Footer, FormField, Gallery, Header, HeroSection, IconBadge, IconButton, IconWithText, IconlyActivity, IconlyAttach, IconlyBook, IconlyCategory, IconlyCheck, IconlyChevronDown, IconlyChevronLeft, IconlyChevronRight, IconlyClock, IconlyClose, IconlyError, IconlyEye, IconlyEyeOff, IconlyFolder, IconlyHeart, IconlyInfo, IconlyInfoCircle, IconlyLink, IconlyLock, IconlyMail, IconlyMenu, IconlyMoon, IconlyQuote, IconlyRoadmap, IconlySandbox, IconlySearch, IconlySend, IconlySetting, IconlyShield, IconlySmile, IconlyStar, IconlySuccess, IconlySun, IconlyWarning, Input, LandingLayout, Logo, LogoCloud, MenuItem, Modal, Pagination, PasswordInput, PricingCard, ProfileNav, PromoActionCards, PromoBento, PromoDevicesCTA, PromoHero, PromoHeroForm, PromoPricing, PromoShowcase, PromoSplit, PromoTestimonials, PromoTrustGrid, Radio, SearchBar, SegmentedControl, Select, Sidebar, Skeleton, Spinner, StampCard, Stat, StatBadge, StatsBar, Link as StyledLink, Tabs, Tag, TestimonialCard, Textarea, TicketButton, Toast, Toggle, Tooltip, TopPromo };
|