@dmitriikapustin/ui 0.3.6 → 0.4.0
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 +576 -242
- package/dist/index.d.cts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +579 -246
- 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){
|
|
@@ -5553,6 +5553,339 @@ function ComparisonTable({ columns, rows, className = "" }) {
|
|
|
5553
5553
|
] }) }) });
|
|
5554
5554
|
}
|
|
5555
5555
|
|
|
5556
|
+
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/organisms/BottomSheet.module.scss
|
|
5557
|
+
__styleInject(`@charset "UTF-8";
|
|
5558
|
+
/* BottomSheet \u2014 sticky bar + sliding panel (mobile-first, opt-in \u0434\u043B\u044F desktop) */
|
|
5559
|
+
.BottomSheet-module_root {
|
|
5560
|
+
/* Container \u2014 context provider wrapper. \u041D\u0435 \u0432\u043B\u0438\u044F\u0435\u0442 \u043D\u0430 layout. */
|
|
5561
|
+
display: contents;
|
|
5562
|
+
}
|
|
5563
|
+
|
|
5564
|
+
/* \u2500\u2500\u2500 Trigger \u2500\u2500\u2500 */
|
|
5565
|
+
.BottomSheet-module_trigger {
|
|
5566
|
+
display: inline-flex;
|
|
5567
|
+
cursor: pointer;
|
|
5568
|
+
/* 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. */
|
|
5569
|
+
}
|
|
5570
|
+
.BottomSheet-module_trigger:focus, .BottomSheet-module_trigger:focus-visible {
|
|
5571
|
+
outline: none;
|
|
5572
|
+
}
|
|
5573
|
+
|
|
5574
|
+
/* \u2500\u2500\u2500 Bar (sticky bottom, \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u0438\u0434\u043D\u0430) \u2500\u2500\u2500 */
|
|
5575
|
+
.BottomSheet-module_bar {
|
|
5576
|
+
position: fixed;
|
|
5577
|
+
bottom: 0;
|
|
5578
|
+
left: 0;
|
|
5579
|
+
right: 0;
|
|
5580
|
+
z-index: 40;
|
|
5581
|
+
display: flex;
|
|
5582
|
+
flex-direction: column;
|
|
5583
|
+
gap: 16px;
|
|
5584
|
+
padding: 12px 16px 16px;
|
|
5585
|
+
padding-bottom: max(16px, env(safe-area-inset-bottom));
|
|
5586
|
+
background: var(--bg);
|
|
5587
|
+
border-top: 1px solid var(--border-color);
|
|
5588
|
+
border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
|
|
5589
|
+
box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
|
|
5590
|
+
}
|
|
5591
|
+
|
|
5592
|
+
/* 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. */
|
|
5593
|
+
.BottomSheet-module_barHandle {
|
|
5594
|
+
display: flex;
|
|
5595
|
+
justify-content: center;
|
|
5596
|
+
align-items: center;
|
|
5597
|
+
width: 100%;
|
|
5598
|
+
padding: 8px 0;
|
|
5599
|
+
border: none;
|
|
5600
|
+
background: transparent;
|
|
5601
|
+
cursor: grab;
|
|
5602
|
+
touch-action: none;
|
|
5603
|
+
user-select: none;
|
|
5604
|
+
-webkit-user-select: none;
|
|
5605
|
+
}
|
|
5606
|
+
.BottomSheet-module_barHandle:active {
|
|
5607
|
+
cursor: grabbing;
|
|
5608
|
+
}
|
|
5609
|
+
.BottomSheet-module_barHandle:hover .BottomSheet-module_handleBar, .BottomSheet-module_barHandle:focus-visible .BottomSheet-module_handleBar {
|
|
5610
|
+
background: var(--fg-secondary);
|
|
5611
|
+
width: 48px;
|
|
5612
|
+
}
|
|
5613
|
+
.BottomSheet-module_barHandle:focus, .BottomSheet-module_barHandle:focus-visible {
|
|
5614
|
+
outline: none;
|
|
5615
|
+
}
|
|
5616
|
+
|
|
5617
|
+
.BottomSheet-module_barActions {
|
|
5618
|
+
display: flex;
|
|
5619
|
+
align-items: stretch;
|
|
5620
|
+
gap: 12px;
|
|
5621
|
+
/* \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. */
|
|
5622
|
+
}
|
|
5623
|
+
.BottomSheet-module_barActions > * {
|
|
5624
|
+
flex: 1;
|
|
5625
|
+
min-width: 0;
|
|
5626
|
+
}
|
|
5627
|
+
|
|
5628
|
+
/* \u2500\u2500\u2500 Backdrop (\u0437\u0430\u0442\u0435\u043C\u043D\u0435\u043D\u0438\u0435 \u043F\u0440\u0438 open) \u2500\u2500\u2500 */
|
|
5629
|
+
.BottomSheet-module_backdrop {
|
|
5630
|
+
position: fixed;
|
|
5631
|
+
inset: 0;
|
|
5632
|
+
z-index: 49;
|
|
5633
|
+
background: rgba(0, 0, 0, 0.4);
|
|
5634
|
+
opacity: 0;
|
|
5635
|
+
pointer-events: none;
|
|
5636
|
+
transition: opacity 200ms ease-out;
|
|
5637
|
+
}
|
|
5638
|
+
|
|
5639
|
+
.BottomSheet-module_backdropOpen {
|
|
5640
|
+
opacity: 1;
|
|
5641
|
+
pointer-events: auto;
|
|
5642
|
+
}
|
|
5643
|
+
|
|
5644
|
+
/* \u2500\u2500\u2500 Panel (raise-from-bottom) \u2500\u2500\u2500 */
|
|
5645
|
+
.BottomSheet-module_panel {
|
|
5646
|
+
position: fixed;
|
|
5647
|
+
left: 0;
|
|
5648
|
+
right: 0;
|
|
5649
|
+
bottom: 0;
|
|
5650
|
+
z-index: 50;
|
|
5651
|
+
display: flex;
|
|
5652
|
+
flex-direction: column;
|
|
5653
|
+
max-height: 85vh;
|
|
5654
|
+
background: var(--bg);
|
|
5655
|
+
border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
|
|
5656
|
+
box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12), 0 -2px 4px rgba(0, 0, 0, 0.04);
|
|
5657
|
+
overflow-y: auto;
|
|
5658
|
+
/* 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). */
|
|
5659
|
+
overscroll-behavior: contain;
|
|
5660
|
+
/* 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. */
|
|
5661
|
+
touch-action: pan-y;
|
|
5662
|
+
transform: translateY(100%);
|
|
5663
|
+
transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
5664
|
+
padding: 0 20px 20px;
|
|
5665
|
+
padding-bottom: max(20px, env(safe-area-inset-bottom));
|
|
5666
|
+
}
|
|
5667
|
+
.BottomSheet-module_panel[aria-hidden=true] {
|
|
5668
|
+
pointer-events: none;
|
|
5669
|
+
}
|
|
5670
|
+
|
|
5671
|
+
.BottomSheet-module_panelOpen {
|
|
5672
|
+
transform: translateY(0);
|
|
5673
|
+
}
|
|
5674
|
+
|
|
5675
|
+
/* \u2500\u2500\u2500 Handle (drag indicator) \u2500\u2500\u2500 */
|
|
5676
|
+
.BottomSheet-module_handle {
|
|
5677
|
+
position: sticky;
|
|
5678
|
+
top: 0;
|
|
5679
|
+
display: flex;
|
|
5680
|
+
justify-content: center;
|
|
5681
|
+
align-items: center;
|
|
5682
|
+
width: 100%;
|
|
5683
|
+
padding: 14px 0 10px;
|
|
5684
|
+
border: none;
|
|
5685
|
+
background: var(--bg);
|
|
5686
|
+
cursor: grab;
|
|
5687
|
+
z-index: 1;
|
|
5688
|
+
/* 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. */
|
|
5689
|
+
touch-action: none;
|
|
5690
|
+
user-select: none;
|
|
5691
|
+
-webkit-user-select: none;
|
|
5692
|
+
}
|
|
5693
|
+
.BottomSheet-module_handle:active {
|
|
5694
|
+
cursor: grabbing;
|
|
5695
|
+
}
|
|
5696
|
+
.BottomSheet-module_handle:hover .BottomSheet-module_handleBar, .BottomSheet-module_handle:focus-visible .BottomSheet-module_handleBar {
|
|
5697
|
+
background: var(--fg);
|
|
5698
|
+
width: 48px;
|
|
5699
|
+
}
|
|
5700
|
+
.BottomSheet-module_handle:focus, .BottomSheet-module_handle:focus-visible {
|
|
5701
|
+
outline: none;
|
|
5702
|
+
}
|
|
5703
|
+
|
|
5704
|
+
.BottomSheet-module_handleBar {
|
|
5705
|
+
display: block;
|
|
5706
|
+
width: 40px;
|
|
5707
|
+
height: 5px;
|
|
5708
|
+
border-radius: 9999px;
|
|
5709
|
+
background: var(--border-color-strong);
|
|
5710
|
+
transition: background var(--transition-fast), width var(--transition-fast);
|
|
5711
|
+
}`);
|
|
5712
|
+
var __default58 = { "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" };
|
|
5713
|
+
var BottomSheetContext = createContext(null);
|
|
5714
|
+
function useBottomSheet(part) {
|
|
5715
|
+
const ctx = useContext(BottomSheetContext);
|
|
5716
|
+
if (!ctx) {
|
|
5717
|
+
throw new Error(`<BottomSheet.${part}> must be used within <BottomSheet>`);
|
|
5718
|
+
}
|
|
5719
|
+
return ctx;
|
|
5720
|
+
}
|
|
5721
|
+
function BottomSheet({
|
|
5722
|
+
open: controlledOpen,
|
|
5723
|
+
onOpenChange,
|
|
5724
|
+
defaultOpen = false,
|
|
5725
|
+
swipeCloseThreshold = 80,
|
|
5726
|
+
children,
|
|
5727
|
+
className = ""
|
|
5728
|
+
}) {
|
|
5729
|
+
const [internalOpen, setInternalOpen] = useState(defaultOpen);
|
|
5730
|
+
const isControlled = controlledOpen !== void 0;
|
|
5731
|
+
const open = isControlled ? controlledOpen : internalOpen;
|
|
5732
|
+
const setOpen = useCallback(
|
|
5733
|
+
(next) => {
|
|
5734
|
+
if (!isControlled) setInternalOpen(next);
|
|
5735
|
+
onOpenChange == null ? void 0 : onOpenChange(next);
|
|
5736
|
+
},
|
|
5737
|
+
[isControlled, onOpenChange]
|
|
5738
|
+
);
|
|
5739
|
+
const [dragY, setDragY] = useState(0);
|
|
5740
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
5741
|
+
const startYRef = useRef(0);
|
|
5742
|
+
const onDragStart = useCallback((clientY) => {
|
|
5743
|
+
startYRef.current = clientY;
|
|
5744
|
+
setIsDragging(true);
|
|
5745
|
+
}, []);
|
|
5746
|
+
const onDragMove = useCallback((clientY) => {
|
|
5747
|
+
setDragY(clientY - startYRef.current);
|
|
5748
|
+
}, []);
|
|
5749
|
+
const onDragEnd = useCallback(() => {
|
|
5750
|
+
setIsDragging(false);
|
|
5751
|
+
if (open && dragY > swipeCloseThreshold) {
|
|
5752
|
+
setOpen(false);
|
|
5753
|
+
} else if (!open && dragY < -swipeCloseThreshold) {
|
|
5754
|
+
setOpen(true);
|
|
5755
|
+
}
|
|
5756
|
+
setDragY(0);
|
|
5757
|
+
}, [dragY, swipeCloseThreshold, setOpen, open]);
|
|
5758
|
+
useEffect(() => {
|
|
5759
|
+
if (!open) {
|
|
5760
|
+
setDragY(0);
|
|
5761
|
+
setIsDragging(false);
|
|
5762
|
+
}
|
|
5763
|
+
}, [open]);
|
|
5764
|
+
useEffect(() => {
|
|
5765
|
+
if (!open) return;
|
|
5766
|
+
const handleKey = (e) => {
|
|
5767
|
+
if (e.key === "Escape") setOpen(false);
|
|
5768
|
+
};
|
|
5769
|
+
document.addEventListener("keydown", handleKey);
|
|
5770
|
+
return () => document.removeEventListener("keydown", handleKey);
|
|
5771
|
+
}, [open, setOpen]);
|
|
5772
|
+
useEffect(() => {
|
|
5773
|
+
if (!open) return;
|
|
5774
|
+
const prev = document.body.style.overflow;
|
|
5775
|
+
document.body.style.overflow = "hidden";
|
|
5776
|
+
return () => {
|
|
5777
|
+
document.body.style.overflow = prev;
|
|
5778
|
+
};
|
|
5779
|
+
}, [open]);
|
|
5780
|
+
return /* @__PURE__ */ jsx(
|
|
5781
|
+
BottomSheetContext.Provider,
|
|
5782
|
+
{
|
|
5783
|
+
value: { open, setOpen, dragY, isDragging, onDragStart, onDragMove, onDragEnd },
|
|
5784
|
+
children: /* @__PURE__ */ jsx("div", { className: `${__default58.root}${className ? ` ${className}` : ""}`, children })
|
|
5785
|
+
}
|
|
5786
|
+
);
|
|
5787
|
+
}
|
|
5788
|
+
function Bar({ children, className = "" }) {
|
|
5789
|
+
const { setOpen, onDragStart, onDragMove, onDragEnd } = useBottomSheet("Bar");
|
|
5790
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default58.bar}${className ? ` ${className}` : ""}`, children: [
|
|
5791
|
+
/* @__PURE__ */ jsx(
|
|
5792
|
+
"button",
|
|
5793
|
+
{
|
|
5794
|
+
type: "button",
|
|
5795
|
+
onClick: () => setOpen(true),
|
|
5796
|
+
onTouchStart: (e) => onDragStart(e.touches[0].clientY),
|
|
5797
|
+
onTouchMove: (e) => onDragMove(e.touches[0].clientY),
|
|
5798
|
+
onTouchEnd: onDragEnd,
|
|
5799
|
+
onTouchCancel: onDragEnd,
|
|
5800
|
+
className: __default58.barHandle,
|
|
5801
|
+
"aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E",
|
|
5802
|
+
children: /* @__PURE__ */ jsx("span", { className: __default58.handleBar })
|
|
5803
|
+
}
|
|
5804
|
+
),
|
|
5805
|
+
/* @__PURE__ */ jsx("div", { className: __default58.barActions, children })
|
|
5806
|
+
] });
|
|
5807
|
+
}
|
|
5808
|
+
function Panel({ children, className = "" }) {
|
|
5809
|
+
const { open, dragY, isDragging, setOpen } = useBottomSheet("Panel");
|
|
5810
|
+
let transformStyle;
|
|
5811
|
+
if (isDragging) {
|
|
5812
|
+
if (open && dragY > 0) {
|
|
5813
|
+
transformStyle = { transform: `translateY(${dragY}px)`, transition: "none" };
|
|
5814
|
+
} else if (!open && dragY < 0) {
|
|
5815
|
+
transformStyle = {
|
|
5816
|
+
transform: `translateY(calc(100% + ${dragY}px))`,
|
|
5817
|
+
transition: "none"
|
|
5818
|
+
};
|
|
5819
|
+
}
|
|
5820
|
+
}
|
|
5821
|
+
const isDraggingOpen = isDragging && !open && dragY < 0;
|
|
5822
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5823
|
+
/* @__PURE__ */ jsx(
|
|
5824
|
+
"div",
|
|
5825
|
+
{
|
|
5826
|
+
className: `${__default58.backdrop}${open || isDraggingOpen ? ` ${__default58.backdropOpen}` : ""}`,
|
|
5827
|
+
onClick: () => setOpen(false),
|
|
5828
|
+
"aria-hidden": "true"
|
|
5829
|
+
}
|
|
5830
|
+
),
|
|
5831
|
+
/* @__PURE__ */ jsx(
|
|
5832
|
+
"div",
|
|
5833
|
+
{
|
|
5834
|
+
className: `${__default58.panel}${open ? ` ${__default58.panelOpen}` : ""}${className ? ` ${className}` : ""}`,
|
|
5835
|
+
role: "dialog",
|
|
5836
|
+
"aria-modal": open,
|
|
5837
|
+
"aria-hidden": !open && !isDraggingOpen,
|
|
5838
|
+
style: transformStyle,
|
|
5839
|
+
children
|
|
5840
|
+
}
|
|
5841
|
+
)
|
|
5842
|
+
] });
|
|
5843
|
+
}
|
|
5844
|
+
function Handle({ className = "" }) {
|
|
5845
|
+
const { open, setOpen, onDragStart, onDragMove, onDragEnd } = useBottomSheet("Handle");
|
|
5846
|
+
return /* @__PURE__ */ jsx(
|
|
5847
|
+
"button",
|
|
5848
|
+
{
|
|
5849
|
+
type: "button",
|
|
5850
|
+
onClick: () => setOpen(!open),
|
|
5851
|
+
onTouchStart: (e) => onDragStart(e.touches[0].clientY),
|
|
5852
|
+
onTouchMove: (e) => onDragMove(e.touches[0].clientY),
|
|
5853
|
+
onTouchEnd: onDragEnd,
|
|
5854
|
+
onTouchCancel: onDragEnd,
|
|
5855
|
+
onPointerDown: (e) => {
|
|
5856
|
+
if (e.pointerType === "mouse") return;
|
|
5857
|
+
onDragStart(e.clientY);
|
|
5858
|
+
},
|
|
5859
|
+
onPointerMove: (e) => {
|
|
5860
|
+
if (e.pointerType === "mouse") return;
|
|
5861
|
+
onDragMove(e.clientY);
|
|
5862
|
+
},
|
|
5863
|
+
onPointerUp: (e) => {
|
|
5864
|
+
if (e.pointerType === "mouse") return;
|
|
5865
|
+
onDragEnd();
|
|
5866
|
+
},
|
|
5867
|
+
className: `${__default58.handle}${className ? ` ${className}` : ""}`,
|
|
5868
|
+
"aria-label": open ? "\u0417\u0430\u043A\u0440\u044B\u0442\u044C" : "\u041E\u0442\u043A\u0440\u044B\u0442\u044C",
|
|
5869
|
+
children: /* @__PURE__ */ jsx("span", { className: __default58.handleBar })
|
|
5870
|
+
}
|
|
5871
|
+
);
|
|
5872
|
+
}
|
|
5873
|
+
function Trigger({ children, className = "" }) {
|
|
5874
|
+
const { open, setOpen } = useBottomSheet("Trigger");
|
|
5875
|
+
return /* @__PURE__ */ jsx(
|
|
5876
|
+
"div",
|
|
5877
|
+
{
|
|
5878
|
+
onClick: () => setOpen(!open),
|
|
5879
|
+
className: `${__default58.trigger}${className ? ` ${className}` : ""}`,
|
|
5880
|
+
children
|
|
5881
|
+
}
|
|
5882
|
+
);
|
|
5883
|
+
}
|
|
5884
|
+
BottomSheet.Bar = Bar;
|
|
5885
|
+
BottomSheet.Panel = Panel;
|
|
5886
|
+
BottomSheet.Handle = Handle;
|
|
5887
|
+
BottomSheet.Trigger = Trigger;
|
|
5888
|
+
|
|
5556
5889
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/organisms/PromoBento.module.scss
|
|
5557
5890
|
__styleInject(`.PromoBento-module_root {
|
|
5558
5891
|
padding: 4rem 0;
|
|
@@ -5712,21 +6045,21 @@ __styleInject(`.PromoBento-module_root {
|
|
|
5712
6045
|
.PromoBento-module_cardCta {
|
|
5713
6046
|
margin-top: 0.25rem;
|
|
5714
6047
|
}`);
|
|
5715
|
-
var
|
|
6048
|
+
var __default59 = { "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
6049
|
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:
|
|
6050
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default59.card}${className ? ` ${className}` : ""}`, children: [
|
|
6051
|
+
media && /* @__PURE__ */ jsxs("div", { className: __default59.cardMedia, children: [
|
|
6052
|
+
/* @__PURE__ */ jsx("div", { className: __default59.cardMediaInner, children: media }),
|
|
6053
|
+
/* @__PURE__ */ jsx("div", { className: __default59.cardFade })
|
|
5721
6054
|
] }),
|
|
5722
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
5723
|
-
pill && /* @__PURE__ */ jsx("div", { className:
|
|
5724
|
-
pill.icon && /* @__PURE__ */ jsx("span", { className:
|
|
6055
|
+
/* @__PURE__ */ jsxs("div", { className: __default59.cardContent, children: [
|
|
6056
|
+
pill && /* @__PURE__ */ jsx("div", { className: __default59.pill, children: /* @__PURE__ */ jsxs("span", { className: __default59.pillInner, children: [
|
|
6057
|
+
pill.icon && /* @__PURE__ */ jsx("span", { className: __default59.pillIcon, children: pill.icon }),
|
|
5725
6058
|
pill.label
|
|
5726
6059
|
] }) }),
|
|
5727
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
5728
|
-
description && /* @__PURE__ */ jsx("p", { className:
|
|
5729
|
-
cta && /* @__PURE__ */ jsx("div", { className:
|
|
6060
|
+
/* @__PURE__ */ jsx("h3", { className: __default59.cardTitle, children: title }),
|
|
6061
|
+
description && /* @__PURE__ */ jsx("p", { className: __default59.cardDesc, children: description }),
|
|
6062
|
+
cta && /* @__PURE__ */ jsx("div", { className: __default59.cardCta, children: /* @__PURE__ */ jsx(
|
|
5730
6063
|
Button,
|
|
5731
6064
|
{
|
|
5732
6065
|
variant: "outline",
|
|
@@ -5739,12 +6072,12 @@ function PromoBentoCard({ pill, title, description, cta, media, className = "" }
|
|
|
5739
6072
|
] });
|
|
5740
6073
|
}
|
|
5741
6074
|
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:
|
|
6075
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default59.root}${className ? ` ${className}` : ""}`, children: [
|
|
6076
|
+
/* @__PURE__ */ jsxs("div", { className: __default59.header, children: [
|
|
6077
|
+
/* @__PURE__ */ jsx("h2", { className: __default59.heading, children: heading }),
|
|
6078
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default59.subtitle, children: subtitle })
|
|
5746
6079
|
] }),
|
|
5747
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6080
|
+
/* @__PURE__ */ jsx("div", { className: __default59.grid, children: items.map((item, i) => /* @__PURE__ */ jsx(PromoBentoCard, __spreadValues({}, item), i)) })
|
|
5748
6081
|
] });
|
|
5749
6082
|
}
|
|
5750
6083
|
|
|
@@ -5866,26 +6199,26 @@ __styleInject(`.PromoShowcase-module_root {
|
|
|
5866
6199
|
padding: 2.5rem;
|
|
5867
6200
|
}
|
|
5868
6201
|
}`);
|
|
5869
|
-
var
|
|
6202
|
+
var __default60 = { "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
6203
|
function PromoShowcase({ heading, steps, className = "" }) {
|
|
5871
6204
|
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:
|
|
6205
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default60.root}${className ? ` ${className}` : ""}`, children: [
|
|
6206
|
+
/* @__PURE__ */ jsx("div", { className: __default60.heading, children: /* @__PURE__ */ jsx("h2", { className: __default60.headingText, children: heading }) }),
|
|
6207
|
+
/* @__PURE__ */ jsxs("div", { className: __default60.body, children: [
|
|
6208
|
+
/* @__PURE__ */ jsx("div", { className: __default60.stepper, children: steps.map((step, i) => /* @__PURE__ */ jsx(
|
|
5876
6209
|
"button",
|
|
5877
6210
|
{
|
|
5878
6211
|
onClick: () => setActiveIndex(i),
|
|
5879
|
-
className: `${
|
|
6212
|
+
className: `${__default60.stepButton}${i === activeIndex ? ` ${__default60.stepButtonActive}` : ""}`,
|
|
5880
6213
|
children: step.label
|
|
5881
6214
|
},
|
|
5882
6215
|
i
|
|
5883
6216
|
)) }),
|
|
5884
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6217
|
+
/* @__PURE__ */ jsx("div", { className: __default60.contentArea, children: steps.map((step, i) => /* @__PURE__ */ jsx(
|
|
5885
6218
|
"div",
|
|
5886
6219
|
{
|
|
5887
|
-
className: `${
|
|
5888
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
6220
|
+
className: `${__default60.panel}${i === activeIndex ? ` ${__default60.panelActive}` : ""}`,
|
|
6221
|
+
children: /* @__PURE__ */ jsx("div", { className: __default60.panelInner, children: step.content })
|
|
5889
6222
|
},
|
|
5890
6223
|
i
|
|
5891
6224
|
)) })
|
|
@@ -6034,7 +6367,7 @@ __styleInject(`.PromoSplit-module_root {
|
|
|
6034
6367
|
align-items: center;
|
|
6035
6368
|
justify-content: center;
|
|
6036
6369
|
}`);
|
|
6037
|
-
var
|
|
6370
|
+
var __default61 = { "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
6371
|
function PromoSplit({
|
|
6039
6372
|
heading,
|
|
6040
6373
|
description,
|
|
@@ -6044,16 +6377,16 @@ function PromoSplit({
|
|
|
6044
6377
|
className = ""
|
|
6045
6378
|
}) {
|
|
6046
6379
|
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:
|
|
6380
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default61.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxs("div", { className: isLeft ? __default61.gridReversed : __default61.grid, children: [
|
|
6381
|
+
/* @__PURE__ */ jsxs("div", { className: `${__default61.textColumn}${isLeft ? ` ${__default61.textColumnLtr}` : ""}`, children: [
|
|
6382
|
+
/* @__PURE__ */ jsx("h2", { className: __default61.heading, children: heading }),
|
|
6383
|
+
description && /* @__PURE__ */ jsx("p", { className: __default61.description, children: description }),
|
|
6384
|
+
features && features.length > 0 && /* @__PURE__ */ jsx("div", { className: __default61.features, children: features.map((feature, i) => /* @__PURE__ */ jsxs("div", { className: __default61.feature, children: [
|
|
6385
|
+
/* @__PURE__ */ jsx("h3", { className: __default61.featureTitle, children: feature.title }),
|
|
6386
|
+
/* @__PURE__ */ jsx("p", { className: __default61.featureDesc, children: feature.description })
|
|
6054
6387
|
] }, i)) })
|
|
6055
6388
|
] }),
|
|
6056
|
-
/* @__PURE__ */ jsx("div", { className: `${
|
|
6389
|
+
/* @__PURE__ */ jsx("div", { className: `${__default61.mediaColumn}${isLeft ? ` ${__default61.mediaColumnLtr}` : ""}`, children: /* @__PURE__ */ jsx("div", { className: __default61.mediaBox, children: media ? /* @__PURE__ */ jsx("div", { className: __default61.mediaContent, children: media }) : /* @__PURE__ */ jsx("div", { className: __default61.mediaPlaceholder, children: /* @__PURE__ */ jsx("div", { className: __default61.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
6390
|
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
6058
6391
|
/* @__PURE__ */ jsx("circle", { cx: "8.5", cy: "8.5", r: "1.5" }),
|
|
6059
6392
|
/* @__PURE__ */ jsx("path", { d: "m21 15-5-5L5 21" })
|
|
@@ -6170,16 +6503,16 @@ __styleInject(`.PromoTrustGrid-module_root {
|
|
|
6170
6503
|
justify-content: center;
|
|
6171
6504
|
padding: 1.5rem;
|
|
6172
6505
|
}`);
|
|
6173
|
-
var
|
|
6506
|
+
var __default62 = { "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
6507
|
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:
|
|
6508
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default62.root}${className ? ` ${className}` : ""}`, children: [
|
|
6509
|
+
/* @__PURE__ */ jsx("div", { className: __default62.heading, children: /* @__PURE__ */ jsx("h2", { className: __default62.headingText, children: heading }) }),
|
|
6510
|
+
/* @__PURE__ */ jsx("div", { className: __default62.grid, children: features.map((feature, i) => /* @__PURE__ */ jsxs("div", { className: __default62.featureCard, children: [
|
|
6511
|
+
feature.icon && /* @__PURE__ */ jsx("div", { className: __default62.featureIcon, children: feature.icon }),
|
|
6512
|
+
/* @__PURE__ */ jsx("h3", { className: __default62.featureTitle, children: feature.title }),
|
|
6513
|
+
/* @__PURE__ */ jsx("p", { className: __default62.featureDescription, children: feature.description })
|
|
6181
6514
|
] }, i)) }),
|
|
6182
|
-
media && /* @__PURE__ */ jsx("div", { className:
|
|
6515
|
+
media && /* @__PURE__ */ jsx("div", { className: __default62.media, children: /* @__PURE__ */ jsx("div", { className: __default62.mediaInner, children: media }) })
|
|
6183
6516
|
] });
|
|
6184
6517
|
}
|
|
6185
6518
|
|
|
@@ -6366,29 +6699,29 @@ __styleInject(`@charset "UTF-8";
|
|
|
6366
6699
|
border-radius: clamp(8px, 1.5vw, 16px);
|
|
6367
6700
|
background: var(--bg-tertiary);
|
|
6368
6701
|
}`);
|
|
6369
|
-
var
|
|
6702
|
+
var __default63 = { "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
6703
|
function PromoDevicesCTA({
|
|
6371
6704
|
heading,
|
|
6372
6705
|
description,
|
|
6373
6706
|
cta,
|
|
6374
6707
|
className = ""
|
|
6375
6708
|
}) {
|
|
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:
|
|
6709
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default63.root}${className ? ` ${className}` : ""}`, children: [
|
|
6710
|
+
/* @__PURE__ */ jsxs("div", { className: __default63.textBlock, children: [
|
|
6711
|
+
/* @__PURE__ */ jsx("h2", { className: __default63.heading, children: heading }),
|
|
6712
|
+
description && /* @__PURE__ */ jsx("p", { className: __default63.description, children: description }),
|
|
6713
|
+
cta && /* @__PURE__ */ jsx("div", { className: __default63.ctaWrap, children: /* @__PURE__ */ jsx(Button, { variant: "primary", onClick: cta.onClick, children: cta.label }) })
|
|
6381
6714
|
] }),
|
|
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:
|
|
6715
|
+
/* @__PURE__ */ jsxs("div", { className: __default63.devices, children: [
|
|
6716
|
+
/* @__PURE__ */ jsxs("div", { className: __default63.laptop, children: [
|
|
6717
|
+
/* @__PURE__ */ jsx("div", { className: __default63.laptopScreen, children: /* @__PURE__ */ jsx("div", { className: __default63.laptopScreenInner }) }),
|
|
6718
|
+
/* @__PURE__ */ jsx("div", { className: __default63.laptopHinge }),
|
|
6719
|
+
/* @__PURE__ */ jsx("div", { className: __default63.laptopBase })
|
|
6387
6720
|
] }),
|
|
6388
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6389
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6390
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6391
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6721
|
+
/* @__PURE__ */ jsx("div", { className: __default63.tablet, children: /* @__PURE__ */ jsx("div", { className: __default63.tabletShell, children: /* @__PURE__ */ jsx("div", { className: __default63.tabletScreen }) }) }),
|
|
6722
|
+
/* @__PURE__ */ jsx("div", { className: __default63.phone, children: /* @__PURE__ */ jsxs("div", { className: __default63.phoneShell, children: [
|
|
6723
|
+
/* @__PURE__ */ jsx("div", { className: __default63.phoneNotch }),
|
|
6724
|
+
/* @__PURE__ */ jsx("div", { className: __default63.phoneScreen })
|
|
6392
6725
|
] }) })
|
|
6393
6726
|
] })
|
|
6394
6727
|
] });
|
|
@@ -6577,7 +6910,7 @@ __styleInject(`.PromoTestimonials-module_root {
|
|
|
6577
6910
|
background: var(--bg-secondary);
|
|
6578
6911
|
overflow: hidden;
|
|
6579
6912
|
}`);
|
|
6580
|
-
var
|
|
6913
|
+
var __default64 = { "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
6914
|
function PromoTestimonials({
|
|
6582
6915
|
heading,
|
|
6583
6916
|
subtitle,
|
|
@@ -6585,14 +6918,14 @@ function PromoTestimonials({
|
|
|
6585
6918
|
media,
|
|
6586
6919
|
className = ""
|
|
6587
6920
|
}) {
|
|
6588
|
-
return /* @__PURE__ */ jsx("section", { className: `${
|
|
6589
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6921
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default64.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxs("div", { className: __default64.wrapper, children: [
|
|
6922
|
+
/* @__PURE__ */ jsx("div", { className: __default64.avatarSection, children: /* @__PURE__ */ jsxs("div", { className: __default64.avatarStack, children: [
|
|
6590
6923
|
testimonials.slice(0, 5).map((t, i) => {
|
|
6591
6924
|
const initials = t.name.split(" ").map((n) => n[0]).join("").toUpperCase();
|
|
6592
6925
|
return /* @__PURE__ */ jsx(
|
|
6593
6926
|
"div",
|
|
6594
6927
|
{
|
|
6595
|
-
className:
|
|
6928
|
+
className: __default64.avatarRing,
|
|
6596
6929
|
style: { zIndex: 10 - i },
|
|
6597
6930
|
children: /* @__PURE__ */ jsx(
|
|
6598
6931
|
Avatar,
|
|
@@ -6606,32 +6939,32 @@ function PromoTestimonials({
|
|
|
6606
6939
|
i
|
|
6607
6940
|
);
|
|
6608
6941
|
}),
|
|
6609
|
-
testimonials.length > 5 && /* @__PURE__ */ jsx("div", { className:
|
|
6942
|
+
testimonials.length > 5 && /* @__PURE__ */ jsx("div", { className: __default64.overflowBadge, children: /* @__PURE__ */ jsxs("div", { className: __default64.overflowCircle, children: [
|
|
6610
6943
|
"+",
|
|
6611
6944
|
testimonials.length - 5
|
|
6612
6945
|
] }) })
|
|
6613
6946
|
] }) }),
|
|
6614
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6615
|
-
/* @__PURE__ */ jsx("h2", { className:
|
|
6616
|
-
subtitle && /* @__PURE__ */ jsx("p", { className:
|
|
6947
|
+
/* @__PURE__ */ jsxs("div", { className: __default64.headingSection, children: [
|
|
6948
|
+
/* @__PURE__ */ jsx("h2", { className: __default64.heading, children: heading }),
|
|
6949
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default64.subtitle, children: subtitle })
|
|
6617
6950
|
] }),
|
|
6618
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6951
|
+
/* @__PURE__ */ jsx("div", { className: __default64.cardsSection, children: /* @__PURE__ */ jsx("div", { className: __default64.cardsGrid, children: testimonials.map((t, i) => {
|
|
6619
6952
|
const initials = t.name.split(" ").map((n) => n[0]).join("").toUpperCase();
|
|
6620
6953
|
return /* @__PURE__ */ jsxs(
|
|
6621
6954
|
"div",
|
|
6622
6955
|
{
|
|
6623
|
-
className:
|
|
6956
|
+
className: __default64.card,
|
|
6624
6957
|
children: [
|
|
6625
|
-
/* @__PURE__ */ jsxs("p", { className:
|
|
6958
|
+
/* @__PURE__ */ jsxs("p", { className: __default64.quote, children: [
|
|
6626
6959
|
"\u201C",
|
|
6627
6960
|
t.quote,
|
|
6628
6961
|
"\u201D"
|
|
6629
6962
|
] }),
|
|
6630
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6963
|
+
/* @__PURE__ */ jsxs("div", { className: __default64.author, children: [
|
|
6631
6964
|
/* @__PURE__ */ jsx(Avatar, { size: "sm", src: t.avatarSrc, initials }),
|
|
6632
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
6633
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
6634
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
6965
|
+
/* @__PURE__ */ jsxs("div", { className: __default64.authorInfo, children: [
|
|
6966
|
+
/* @__PURE__ */ jsx("p", { className: __default64.authorName, children: t.name }),
|
|
6967
|
+
/* @__PURE__ */ jsx("p", { className: __default64.authorRole, children: t.role })
|
|
6635
6968
|
] })
|
|
6636
6969
|
] })
|
|
6637
6970
|
]
|
|
@@ -6639,7 +6972,7 @@ function PromoTestimonials({
|
|
|
6639
6972
|
i
|
|
6640
6973
|
);
|
|
6641
6974
|
}) }) }),
|
|
6642
|
-
media && /* @__PURE__ */ jsx("div", { className:
|
|
6975
|
+
media && /* @__PURE__ */ jsx("div", { className: __default64.mediaSection, children: /* @__PURE__ */ jsx("div", { className: __default64.mediaBox, children: media }) })
|
|
6643
6976
|
] }) });
|
|
6644
6977
|
}
|
|
6645
6978
|
|
|
@@ -6791,7 +7124,7 @@ __styleInject(`.PromoHero-module_root {
|
|
|
6791
7124
|
align-items: center;
|
|
6792
7125
|
justify-content: center;
|
|
6793
7126
|
}`);
|
|
6794
|
-
var
|
|
7127
|
+
var __default65 = { "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
7128
|
function PromoHero({
|
|
6796
7129
|
title,
|
|
6797
7130
|
subtitle,
|
|
@@ -6801,30 +7134,30 @@ function PromoHero({
|
|
|
6801
7134
|
variant = "dark",
|
|
6802
7135
|
className = ""
|
|
6803
7136
|
}) {
|
|
6804
|
-
const variantClass = variant === "dark" ?
|
|
6805
|
-
const subtitleClass = variant === "light" ?
|
|
7137
|
+
const variantClass = variant === "dark" ? __default65.dark : variant === "gradient" ? __default65.gradient : __default65.light;
|
|
7138
|
+
const subtitleClass = variant === "light" ? __default65.subtitleLight : __default65.subtitleDark;
|
|
6806
7139
|
const isLight = variant === "light";
|
|
6807
7140
|
return /* @__PURE__ */ jsxs(
|
|
6808
7141
|
"section",
|
|
6809
7142
|
{
|
|
6810
|
-
className: `${
|
|
7143
|
+
className: `${__default65.root} ${variantClass}${className ? ` ${className}` : ""}`,
|
|
6811
7144
|
children: [
|
|
6812
|
-
!isLight && /* @__PURE__ */ jsxs("div", { className:
|
|
6813
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
6814
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
7145
|
+
!isLight && /* @__PURE__ */ jsxs("div", { className: __default65.glowLayer, "aria-hidden": "true", children: [
|
|
7146
|
+
/* @__PURE__ */ jsx("div", { className: __default65.glowTop }),
|
|
7147
|
+
/* @__PURE__ */ jsx("div", { className: __default65.glowBottom })
|
|
6815
7148
|
] }),
|
|
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:
|
|
7149
|
+
/* @__PURE__ */ jsxs("div", { className: __default65.inner, children: [
|
|
7150
|
+
/* @__PURE__ */ jsxs("div", { className: __default65.textColumn, children: [
|
|
7151
|
+
/* @__PURE__ */ jsx("h1", { className: __default65.title, children: title }),
|
|
7152
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: `${__default65.subtitle} ${subtitleClass}`, children: subtitle }),
|
|
7153
|
+
(cta || secondaryCta) && /* @__PURE__ */ jsxs("div", { className: __default65.actions, children: [
|
|
6821
7154
|
cta && /* @__PURE__ */ jsx(
|
|
6822
7155
|
Button,
|
|
6823
7156
|
{
|
|
6824
7157
|
variant: isLight ? "primary" : "outline",
|
|
6825
7158
|
size: "hero",
|
|
6826
7159
|
onClick: cta.onClick,
|
|
6827
|
-
className: !isLight ?
|
|
7160
|
+
className: !isLight ? __default65.ctaDark : "",
|
|
6828
7161
|
children: cta.label
|
|
6829
7162
|
}
|
|
6830
7163
|
),
|
|
@@ -6834,13 +7167,13 @@ function PromoHero({
|
|
|
6834
7167
|
variant: "ghost",
|
|
6835
7168
|
size: "hero",
|
|
6836
7169
|
onClick: secondaryCta.onClick,
|
|
6837
|
-
className: !isLight ?
|
|
7170
|
+
className: !isLight ? __default65.ghostDark : "",
|
|
6838
7171
|
children: secondaryCta.label
|
|
6839
7172
|
}
|
|
6840
7173
|
)
|
|
6841
7174
|
] })
|
|
6842
7175
|
] }),
|
|
6843
|
-
media && /* @__PURE__ */ jsx("div", { className:
|
|
7176
|
+
media && /* @__PURE__ */ jsx("div", { className: __default65.mediaColumn, children: media })
|
|
6844
7177
|
] })
|
|
6845
7178
|
]
|
|
6846
7179
|
}
|
|
@@ -6994,7 +7327,7 @@ __styleInject(`@charset "UTF-8";
|
|
|
6994
7327
|
max-width: 640px;
|
|
6995
7328
|
width: 100%;
|
|
6996
7329
|
}`);
|
|
6997
|
-
var
|
|
7330
|
+
var __default66 = { "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
7331
|
function PromoHeroForm({
|
|
6999
7332
|
title,
|
|
7000
7333
|
subtitle,
|
|
@@ -7017,17 +7350,17 @@ function PromoHeroForm({
|
|
|
7017
7350
|
onSubmit == null ? void 0 : onSubmit(trimmed);
|
|
7018
7351
|
};
|
|
7019
7352
|
const isDisabled = loading || value.trim().length === 0;
|
|
7020
|
-
return /* @__PURE__ */ jsx("section", { className: `${
|
|
7021
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
7022
|
-
subtitle && /* @__PURE__ */ jsx("p", { className:
|
|
7353
|
+
return /* @__PURE__ */ jsx("section", { className: `${__default66.root}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxs("div", { className: __default66.inner, children: [
|
|
7354
|
+
/* @__PURE__ */ jsx("h1", { className: __default66.title, children: title }),
|
|
7355
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default66.subtitle, children: subtitle }),
|
|
7023
7356
|
/* @__PURE__ */ jsx(
|
|
7024
7357
|
"form",
|
|
7025
7358
|
{
|
|
7026
|
-
className:
|
|
7359
|
+
className: __default66.form,
|
|
7027
7360
|
onSubmit: handleSubmit,
|
|
7028
7361
|
"aria-busy": loading,
|
|
7029
7362
|
noValidate: true,
|
|
7030
|
-
children: /* @__PURE__ */ jsxs("div", { className:
|
|
7363
|
+
children: /* @__PURE__ */ jsxs("div", { className: __default66.formInner, children: [
|
|
7031
7364
|
/* @__PURE__ */ jsx(
|
|
7032
7365
|
"input",
|
|
7033
7366
|
{
|
|
@@ -7036,7 +7369,7 @@ function PromoHeroForm({
|
|
|
7036
7369
|
value,
|
|
7037
7370
|
onChange: (e) => setValue(e.target.value),
|
|
7038
7371
|
disabled: loading,
|
|
7039
|
-
className:
|
|
7372
|
+
className: __default66.input,
|
|
7040
7373
|
"aria-label": inputAriaLabel || inputPlaceholder
|
|
7041
7374
|
}
|
|
7042
7375
|
),
|
|
@@ -7054,8 +7387,8 @@ function PromoHeroForm({
|
|
|
7054
7387
|
] })
|
|
7055
7388
|
}
|
|
7056
7389
|
),
|
|
7057
|
-
hint && !error && /* @__PURE__ */ jsx("p", { className:
|
|
7058
|
-
error && /* @__PURE__ */ jsx("div", { className:
|
|
7390
|
+
hint && !error && /* @__PURE__ */ jsx("p", { className: __default66.hint, children: hint }),
|
|
7391
|
+
error && /* @__PURE__ */ jsx("div", { className: __default66.errorBox, role: "alert", children: error })
|
|
7059
7392
|
] }) });
|
|
7060
7393
|
}
|
|
7061
7394
|
|
|
@@ -7333,7 +7666,7 @@ __styleInject(`.PromoPricing-module_root {
|
|
|
7333
7666
|
.PromoPricing-module_ctaWrap {
|
|
7334
7667
|
margin-top: auto;
|
|
7335
7668
|
}`);
|
|
7336
|
-
var
|
|
7669
|
+
var __default67 = { "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
7670
|
function PromoPricing({
|
|
7338
7671
|
heading,
|
|
7339
7672
|
subtitle,
|
|
@@ -7343,50 +7676,50 @@ function PromoPricing({
|
|
|
7343
7676
|
}) {
|
|
7344
7677
|
const isDark = variant === "dark";
|
|
7345
7678
|
const getTierClass = (highlighted) => {
|
|
7346
|
-
if (highlighted) return isDark ?
|
|
7347
|
-
return isDark ?
|
|
7679
|
+
if (highlighted) return isDark ? __default67.tierDarkHighlighted : __default67.tierHighlighted;
|
|
7680
|
+
return isDark ? __default67.tierDark : __default67.tierDefault;
|
|
7348
7681
|
};
|
|
7349
7682
|
const getNameClass = (highlighted) => {
|
|
7350
|
-
if (highlighted) return isDark ?
|
|
7351
|
-
return isDark ?
|
|
7683
|
+
if (highlighted) return isDark ? __default67.tierNameHighlightedDark : __default67.tierNameHighlightedLight;
|
|
7684
|
+
return isDark ? __default67.tierNameDark : __default67.tierNameMuted;
|
|
7352
7685
|
};
|
|
7353
7686
|
const getPeriodClass = (highlighted) => {
|
|
7354
|
-
if (highlighted) return isDark ?
|
|
7355
|
-
return isDark ?
|
|
7687
|
+
if (highlighted) return isDark ? __default67.periodHighlightedDark : __default67.periodHighlightedLight;
|
|
7688
|
+
return isDark ? __default67.periodDark : __default67.periodMuted;
|
|
7356
7689
|
};
|
|
7357
7690
|
const getDescClass = (highlighted) => {
|
|
7358
|
-
if (highlighted) return isDark ?
|
|
7359
|
-
return isDark ?
|
|
7691
|
+
if (highlighted) return isDark ? __default67.tierDescHighlightedDark : __default67.tierDescHighlightedLight;
|
|
7692
|
+
return isDark ? __default67.tierDescDark : __default67.tierDescMuted;
|
|
7360
7693
|
};
|
|
7361
7694
|
const getCheckClass = (highlighted) => {
|
|
7362
|
-
if (highlighted) return isDark ?
|
|
7363
|
-
return isDark ?
|
|
7695
|
+
if (highlighted) return isDark ? __default67.checkHighlightedDark : __default67.checkHighlightedLight;
|
|
7696
|
+
return isDark ? __default67.checkDark : __default67.checkDefault;
|
|
7364
7697
|
};
|
|
7365
7698
|
const getFeatureTextClass = (highlighted) => {
|
|
7366
|
-
if (highlighted) return isDark ?
|
|
7367
|
-
return isDark ?
|
|
7699
|
+
if (highlighted) return isDark ? __default67.featureTextHighlightedDark : __default67.featureTextHighlightedLight;
|
|
7700
|
+
return isDark ? __default67.featureTextDark : __default67.featureTextMuted;
|
|
7368
7701
|
};
|
|
7369
7702
|
return /* @__PURE__ */ jsxs(
|
|
7370
7703
|
"section",
|
|
7371
7704
|
{
|
|
7372
|
-
className: `${
|
|
7705
|
+
className: `${__default67.root} ${isDark ? __default67.dark : __default67.light}${className ? ` ${className}` : ""}`,
|
|
7373
7706
|
children: [
|
|
7374
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7375
|
-
/* @__PURE__ */ jsx("h2", { className: `${
|
|
7376
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: `${
|
|
7707
|
+
/* @__PURE__ */ jsxs("div", { className: __default67.headingSection, children: [
|
|
7708
|
+
/* @__PURE__ */ jsx("h2", { className: `${__default67.heading} ${isDark ? __default67.headingDark : __default67.headingLight}`, children: heading }),
|
|
7709
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: `${__default67.subtitle} ${isDark ? __default67.subtitleDark : __default67.subtitleLight}`, children: subtitle })
|
|
7377
7710
|
] }),
|
|
7378
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
7711
|
+
/* @__PURE__ */ jsx("div", { className: __default67.tiersGrid, children: tiers.map((tier, i) => /* @__PURE__ */ jsxs(
|
|
7379
7712
|
"div",
|
|
7380
7713
|
{
|
|
7381
7714
|
className: getTierClass(tier.highlighted),
|
|
7382
7715
|
children: [
|
|
7383
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
7384
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7716
|
+
/* @__PURE__ */ jsx("div", { className: __default67.tierName, children: /* @__PURE__ */ jsx("h3", { className: getNameClass(tier.highlighted), children: tier.name }) }),
|
|
7717
|
+
/* @__PURE__ */ jsxs("div", { className: __default67.price, children: [
|
|
7385
7718
|
/* @__PURE__ */ jsx("span", { children: tier.price }),
|
|
7386
|
-
tier.period && /* @__PURE__ */ jsx("span", { className: `${
|
|
7719
|
+
tier.period && /* @__PURE__ */ jsx("span", { className: `${__default67.period} ${getPeriodClass(tier.highlighted)}`, children: tier.period })
|
|
7387
7720
|
] }),
|
|
7388
|
-
tier.description && /* @__PURE__ */ jsx("p", { className: `${
|
|
7389
|
-
/* @__PURE__ */ jsx("ul", { className:
|
|
7721
|
+
tier.description && /* @__PURE__ */ jsx("p", { className: `${__default67.tierDesc} ${getDescClass(tier.highlighted)}`, children: tier.description }),
|
|
7722
|
+
/* @__PURE__ */ jsx("ul", { className: __default67.featureList, children: tier.features.map((feature, fi) => /* @__PURE__ */ jsxs("li", { className: __default67.featureItem, children: [
|
|
7390
7723
|
/* @__PURE__ */ jsx(
|
|
7391
7724
|
"svg",
|
|
7392
7725
|
{
|
|
@@ -7394,13 +7727,13 @@ function PromoPricing({
|
|
|
7394
7727
|
height: "16",
|
|
7395
7728
|
viewBox: "0 0 16 16",
|
|
7396
7729
|
fill: "none",
|
|
7397
|
-
className: `${
|
|
7730
|
+
className: `${__default67.checkIcon} ${getCheckClass(tier.highlighted)}`,
|
|
7398
7731
|
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
7732
|
}
|
|
7400
7733
|
),
|
|
7401
7734
|
/* @__PURE__ */ jsx("span", { className: getFeatureTextClass(tier.highlighted), children: feature })
|
|
7402
7735
|
] }, fi)) }),
|
|
7403
|
-
tier.cta && /* @__PURE__ */ jsx("div", { className:
|
|
7736
|
+
tier.cta && /* @__PURE__ */ jsx("div", { className: __default67.ctaWrap, children: tier.cta })
|
|
7404
7737
|
]
|
|
7405
7738
|
},
|
|
7406
7739
|
i
|
|
@@ -7558,7 +7891,7 @@ __styleInject(`.PromoActionCards-module_root {
|
|
|
7558
7891
|
.PromoActionCards-module_ctaBtn:hover {
|
|
7559
7892
|
opacity: 0.9;
|
|
7560
7893
|
}`);
|
|
7561
|
-
var
|
|
7894
|
+
var __default68 = { "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
7895
|
function PromoActionCards({
|
|
7563
7896
|
heading,
|
|
7564
7897
|
subtitle,
|
|
@@ -7566,28 +7899,28 @@ function PromoActionCards({
|
|
|
7566
7899
|
columns = 3,
|
|
7567
7900
|
className = ""
|
|
7568
7901
|
}) {
|
|
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:
|
|
7902
|
+
const gridClass = columns === 2 ? __default68.grid2 : __default68.grid3;
|
|
7903
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default68.root}${className ? ` ${className}` : ""}`, children: [
|
|
7904
|
+
/* @__PURE__ */ jsxs("div", { className: __default68.header, children: [
|
|
7905
|
+
/* @__PURE__ */ jsx("h2", { className: __default68.heading, children: heading }),
|
|
7906
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default68.subtitle, children: subtitle })
|
|
7574
7907
|
] }),
|
|
7575
7908
|
/* @__PURE__ */ jsx("div", { className: gridClass, children: cards.map((card, i) => {
|
|
7576
7909
|
var _a;
|
|
7577
7910
|
return /* @__PURE__ */ jsxs(
|
|
7578
7911
|
"div",
|
|
7579
7912
|
{
|
|
7580
|
-
className:
|
|
7913
|
+
className: __default68.card,
|
|
7581
7914
|
children: [
|
|
7582
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7583
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
7584
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
7915
|
+
/* @__PURE__ */ jsxs("div", { className: __default68.cardContent, children: [
|
|
7916
|
+
/* @__PURE__ */ jsx("h3", { className: __default68.cardTitle, children: card.title }),
|
|
7917
|
+
/* @__PURE__ */ jsx("p", { className: __default68.cardDesc, children: card.description })
|
|
7585
7918
|
] }),
|
|
7586
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7587
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
7919
|
+
/* @__PURE__ */ jsxs("div", { className: __default68.cardFooter, children: [
|
|
7920
|
+
/* @__PURE__ */ jsx("div", { className: __default68.iconGroup, children: (_a = card.icons) == null ? void 0 : _a.map((icon, ii) => /* @__PURE__ */ jsx(
|
|
7588
7921
|
"span",
|
|
7589
7922
|
{
|
|
7590
|
-
className:
|
|
7923
|
+
className: __default68.iconCircle,
|
|
7591
7924
|
children: icon
|
|
7592
7925
|
},
|
|
7593
7926
|
ii
|
|
@@ -7596,7 +7929,7 @@ function PromoActionCards({
|
|
|
7596
7929
|
"button",
|
|
7597
7930
|
{
|
|
7598
7931
|
onClick: card.cta.onClick,
|
|
7599
|
-
className:
|
|
7932
|
+
className: __default68.ctaBtn,
|
|
7600
7933
|
children: [
|
|
7601
7934
|
card.cta.label,
|
|
7602
7935
|
/* @__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 +8052,7 @@ __styleInject(`.ArticleHero-module_root {
|
|
|
7719
8052
|
color: rgba(255, 255, 255, 0.9);
|
|
7720
8053
|
line-height: 22.5px;
|
|
7721
8054
|
}`);
|
|
7722
|
-
var
|
|
8055
|
+
var __default69 = { "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
8056
|
var DEFAULT_BG = "https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&h=900&fit=crop&q=80";
|
|
7724
8057
|
function ArticleHero({
|
|
7725
8058
|
category,
|
|
@@ -7731,20 +8064,20 @@ function ArticleHero({
|
|
|
7731
8064
|
className = ""
|
|
7732
8065
|
}) {
|
|
7733
8066
|
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:
|
|
8067
|
+
return /* @__PURE__ */ jsxs("section", { className: `${__default69.root}${className ? ` ${className}` : ""}`, children: [
|
|
8068
|
+
/* @__PURE__ */ jsxs("div", { className: __default69.bgLayer, children: [
|
|
8069
|
+
/* @__PURE__ */ jsx("img", { src: bgSrc, alt: "", className: __default69.bgImage }),
|
|
8070
|
+
/* @__PURE__ */ jsx("div", { className: __default69.overlay })
|
|
7738
8071
|
] }),
|
|
7739
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7740
|
-
logo && /* @__PURE__ */ jsx("div", { className:
|
|
7741
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
7742
|
-
nav && /* @__PURE__ */ jsx("div", { className:
|
|
8072
|
+
/* @__PURE__ */ jsxs("div", { className: __default69.topBar, children: [
|
|
8073
|
+
logo && /* @__PURE__ */ jsx("div", { className: __default69.logo, children: logo }),
|
|
8074
|
+
/* @__PURE__ */ jsx("div", { className: __default69.divider }),
|
|
8075
|
+
nav && /* @__PURE__ */ jsx("div", { className: __default69.nav, children: nav })
|
|
7743
8076
|
] }),
|
|
7744
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7745
|
-
category && /* @__PURE__ */ jsx("p", { className:
|
|
7746
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
7747
|
-
subtitle && /* @__PURE__ */ jsx("p", { className:
|
|
8077
|
+
/* @__PURE__ */ jsxs("div", { className: __default69.bottom, children: [
|
|
8078
|
+
category && /* @__PURE__ */ jsx("p", { className: __default69.category, children: category }),
|
|
8079
|
+
/* @__PURE__ */ jsx("h1", { className: __default69.title, children: title }),
|
|
8080
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default69.subtitle, children: subtitle })
|
|
7748
8081
|
] })
|
|
7749
8082
|
] });
|
|
7750
8083
|
}
|
|
@@ -7756,9 +8089,9 @@ __styleInject(`.ArticleBody-module_root {
|
|
|
7756
8089
|
color: var(--fg-secondary);
|
|
7757
8090
|
font-weight: 400;
|
|
7758
8091
|
}`);
|
|
7759
|
-
var
|
|
8092
|
+
var __default70 = { "root": "ArticleBody-module_root" };
|
|
7760
8093
|
function ArticleBody({ children, className = "" }) {
|
|
7761
|
-
return /* @__PURE__ */ jsx("div", { className: `${
|
|
8094
|
+
return /* @__PURE__ */ jsx("div", { className: `${__default70.root}${className ? ` ${className}` : ""}`, children });
|
|
7762
8095
|
}
|
|
7763
8096
|
|
|
7764
8097
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/templates/ArticleHeading.module.scss
|
|
@@ -7801,10 +8134,10 @@ __styleInject(`.ArticleHeading-module_root {
|
|
|
7801
8134
|
line-height: 1.25rem;
|
|
7802
8135
|
color: var(--fg-muted);
|
|
7803
8136
|
}`);
|
|
7804
|
-
var
|
|
8137
|
+
var __default71 = { "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
8138
|
var levelClass = {
|
|
7806
|
-
2:
|
|
7807
|
-
3:
|
|
8139
|
+
2: __default71.h2,
|
|
8140
|
+
3: __default71.h3
|
|
7808
8141
|
};
|
|
7809
8142
|
function ArticleHeading({
|
|
7810
8143
|
level = 2,
|
|
@@ -7814,12 +8147,12 @@ function ArticleHeading({
|
|
|
7814
8147
|
className = ""
|
|
7815
8148
|
}) {
|
|
7816
8149
|
const Tag2 = `h${level}`;
|
|
7817
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
7818
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
8150
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default71.root}${className ? ` ${className}` : ""}`, children: [
|
|
8151
|
+
/* @__PURE__ */ jsxs("div", { className: __default71.header, children: [
|
|
7819
8152
|
/* @__PURE__ */ jsx(Tag2, { className: levelClass[level], children }),
|
|
7820
|
-
action && /* @__PURE__ */ jsx("div", { className:
|
|
8153
|
+
action && /* @__PURE__ */ jsx("div", { className: __default71.action, children: action })
|
|
7821
8154
|
] }),
|
|
7822
|
-
subtitle && /* @__PURE__ */ jsx("p", { className:
|
|
8155
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: __default71.subtitle, children: subtitle })
|
|
7823
8156
|
] });
|
|
7824
8157
|
}
|
|
7825
8158
|
|
|
@@ -7895,7 +8228,7 @@ __styleInject(`.ArticleFigure-module_root {
|
|
|
7895
8228
|
line-height: 1.25rem;
|
|
7896
8229
|
color: var(--fg-muted);
|
|
7897
8230
|
}`);
|
|
7898
|
-
var
|
|
8231
|
+
var __default72 = { "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
8232
|
function ArticleFigure({
|
|
7900
8233
|
src,
|
|
7901
8234
|
alt = "",
|
|
@@ -7905,35 +8238,35 @@ function ArticleFigure({
|
|
|
7905
8238
|
children,
|
|
7906
8239
|
className = ""
|
|
7907
8240
|
}) {
|
|
7908
|
-
return /* @__PURE__ */ jsxs("figure", { className: `${
|
|
8241
|
+
return /* @__PURE__ */ jsxs("figure", { className: `${__default72.root}${className ? ` ${className}` : ""}`, children: [
|
|
7909
8242
|
/* @__PURE__ */ jsx(
|
|
7910
8243
|
"div",
|
|
7911
8244
|
{
|
|
7912
|
-
className:
|
|
8245
|
+
className: __default72.imageWrapper,
|
|
7913
8246
|
style: { minHeight: height },
|
|
7914
8247
|
children: src ? (
|
|
7915
8248
|
// eslint-disable-next-line @next/next/no-img-element
|
|
7916
|
-
/* @__PURE__ */ jsx("img", { src, alt, className:
|
|
7917
|
-
) : children ? /* @__PURE__ */ jsx("div", { className:
|
|
8249
|
+
/* @__PURE__ */ jsx("img", { src, alt, className: __default72.image })
|
|
8250
|
+
) : children ? /* @__PURE__ */ jsx("div", { className: __default72.childWrapper, children }) : /* @__PURE__ */ jsxs("div", { className: __default72.placeholder, children: [
|
|
7918
8251
|
/* @__PURE__ */ jsxs("svg", { width: "48", height: "48", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [
|
|
7919
8252
|
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
7920
8253
|
/* @__PURE__ */ jsx("path", { d: "M3 16l5-5 4 4 4-6 5 7" })
|
|
7921
8254
|
] }),
|
|
7922
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8255
|
+
/* @__PURE__ */ jsx("span", { className: __default72.placeholderText, children: "Figure placeholder" })
|
|
7923
8256
|
] })
|
|
7924
8257
|
}
|
|
7925
8258
|
),
|
|
7926
|
-
legend && legend.length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
8259
|
+
legend && legend.length > 0 && /* @__PURE__ */ jsx("div", { className: __default72.legend, children: legend.map((item) => /* @__PURE__ */ jsxs("div", { className: __default72.legendItem, children: [
|
|
7927
8260
|
/* @__PURE__ */ jsx(
|
|
7928
8261
|
"span",
|
|
7929
8262
|
{
|
|
7930
|
-
className:
|
|
8263
|
+
className: __default72.legendSwatch,
|
|
7931
8264
|
style: { backgroundColor: item.color }
|
|
7932
8265
|
}
|
|
7933
8266
|
),
|
|
7934
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8267
|
+
/* @__PURE__ */ jsx("span", { className: __default72.legendLabel, children: item.label })
|
|
7935
8268
|
] }, item.label)) }),
|
|
7936
|
-
caption && /* @__PURE__ */ jsx("figcaption", { className:
|
|
8269
|
+
caption && /* @__PURE__ */ jsx("figcaption", { className: __default72.caption, children: caption })
|
|
7937
8270
|
] });
|
|
7938
8271
|
}
|
|
7939
8272
|
|
|
@@ -8026,7 +8359,7 @@ __styleInject(`.ArticleTable-module_root {
|
|
|
8026
8359
|
.ArticleTable-module_showMore:hover {
|
|
8027
8360
|
color: var(--fg);
|
|
8028
8361
|
}`);
|
|
8029
|
-
var
|
|
8362
|
+
var __default73 = { "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
8363
|
function ArticleTable({
|
|
8031
8364
|
columns,
|
|
8032
8365
|
rows,
|
|
@@ -8038,19 +8371,19 @@ function ArticleTable({
|
|
|
8038
8371
|
const limit = initialVisible != null ? initialVisible : rows.length;
|
|
8039
8372
|
const visibleRows = expanded ? rows : rows.slice(0, limit);
|
|
8040
8373
|
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:
|
|
8374
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default73.root}${className ? ` ${className}` : ""}`, children: [
|
|
8375
|
+
/* @__PURE__ */ jsxs("div", { className: __default73.headerRow, children: [
|
|
8376
|
+
showRank && /* @__PURE__ */ jsx("div", { className: __default73.rankCell }),
|
|
8377
|
+
columns.map((col) => /* @__PURE__ */ jsx("div", { className: __default73.headerCell, children: /* @__PURE__ */ jsx("span", { className: __default73.headerLabel, children: col.label }) }, col.key))
|
|
8045
8378
|
] }),
|
|
8046
|
-
/* @__PURE__ */ jsx("div", { children: visibleRows.map((row, i) => /* @__PURE__ */ jsxs("div", { className:
|
|
8047
|
-
showRank && /* @__PURE__ */ jsx("div", { className:
|
|
8379
|
+
/* @__PURE__ */ jsx("div", { children: visibleRows.map((row, i) => /* @__PURE__ */ jsxs("div", { className: __default73.row, children: [
|
|
8380
|
+
showRank && /* @__PURE__ */ jsx("div", { className: __default73.rankValue, children: /* @__PURE__ */ jsx("span", { children: i + 1 }) }),
|
|
8048
8381
|
columns.map((col) => {
|
|
8049
8382
|
const value = row[col.key];
|
|
8050
8383
|
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:
|
|
8384
|
+
return /* @__PURE__ */ jsxs("div", { className: __default73.cell, children: [
|
|
8385
|
+
col.render ? col.render(value, row) : /* @__PURE__ */ jsx("span", { className: __default73.cellText, children: String(value != null ? value : "") }),
|
|
8386
|
+
hasBadge && /* @__PURE__ */ jsx("span", { className: __default73.badge, children: row._badge })
|
|
8054
8387
|
] }, col.key);
|
|
8055
8388
|
})
|
|
8056
8389
|
] }, i)) }),
|
|
@@ -8058,7 +8391,7 @@ function ArticleTable({
|
|
|
8058
8391
|
"button",
|
|
8059
8392
|
{
|
|
8060
8393
|
onClick: () => setExpanded(true),
|
|
8061
|
-
className:
|
|
8394
|
+
className: __default73.showMore,
|
|
8062
8395
|
children: [
|
|
8063
8396
|
"Show ",
|
|
8064
8397
|
hiddenCount,
|
|
@@ -8091,19 +8424,19 @@ __styleInject(`.ArticleList-module_root {
|
|
|
8091
8424
|
.ArticleList-module_item {
|
|
8092
8425
|
padding-left: 0.25rem;
|
|
8093
8426
|
}`);
|
|
8094
|
-
var
|
|
8427
|
+
var __default74 = { "root": "ArticleList-module_root", "ordered": "ArticleList-module_ordered", "unordered": "ArticleList-module_unordered", "item": "ArticleList-module_item" };
|
|
8095
8428
|
function ArticleList({
|
|
8096
8429
|
variant = "unordered",
|
|
8097
8430
|
items,
|
|
8098
8431
|
className = ""
|
|
8099
8432
|
}) {
|
|
8100
8433
|
const Tag2 = variant === "ordered" ? "ol" : "ul";
|
|
8101
|
-
const variantClass = variant === "ordered" ?
|
|
8434
|
+
const variantClass = variant === "ordered" ? __default74.ordered : __default74.unordered;
|
|
8102
8435
|
return /* @__PURE__ */ jsx(
|
|
8103
8436
|
Tag2,
|
|
8104
8437
|
{
|
|
8105
|
-
className: `${
|
|
8106
|
-
children: items.map((item, i) => /* @__PURE__ */ jsx("li", { className:
|
|
8438
|
+
className: `${__default74.root} ${variantClass}${className ? ` ${className}` : ""}`,
|
|
8439
|
+
children: items.map((item, i) => /* @__PURE__ */ jsx("li", { className: __default74.item, children: item }, i))
|
|
8107
8440
|
}
|
|
8108
8441
|
);
|
|
8109
8442
|
}
|
|
@@ -8115,9 +8448,9 @@ __styleInject(`.ArticleNote-module_root {
|
|
|
8115
8448
|
color: var(--fg-secondary);
|
|
8116
8449
|
font-style: italic;
|
|
8117
8450
|
}`);
|
|
8118
|
-
var
|
|
8451
|
+
var __default75 = { "root": "ArticleNote-module_root" };
|
|
8119
8452
|
function ArticleNote({ children, className = "" }) {
|
|
8120
|
-
return /* @__PURE__ */ jsx("p", { className: `${
|
|
8453
|
+
return /* @__PURE__ */ jsx("p", { className: `${__default75.root}${className ? ` ${className}` : ""}`, children });
|
|
8121
8454
|
}
|
|
8122
8455
|
|
|
8123
8456
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/templates/ArticleChatBlock.module.scss
|
|
@@ -8230,11 +8563,11 @@ __styleInject(`.ArticleChatBlock-module_root {
|
|
|
8230
8563
|
.ArticleChatBlock-module_showMoreBtn:hover {
|
|
8231
8564
|
color: var(--fg);
|
|
8232
8565
|
}`);
|
|
8233
|
-
var
|
|
8566
|
+
var __default76 = { "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
8567
|
var roleConfig = {
|
|
8235
|
-
assistant: { cls:
|
|
8236
|
-
system: { cls:
|
|
8237
|
-
user: { cls:
|
|
8568
|
+
assistant: { cls: __default76.assistant, gradient: "var(--bg-secondary)" },
|
|
8569
|
+
system: { cls: __default76.system, gradient: "var(--bg-tertiary)" },
|
|
8570
|
+
user: { cls: __default76.user, gradient: "var(--bg-secondary)" }
|
|
8238
8571
|
};
|
|
8239
8572
|
function ArticleChatBlock({
|
|
8240
8573
|
role,
|
|
@@ -8248,40 +8581,40 @@ function ArticleChatBlock({
|
|
|
8248
8581
|
var _a;
|
|
8249
8582
|
const [expanded, setExpanded] = useState(false);
|
|
8250
8583
|
const config = (_a = roleConfig[role]) != null ? _a : roleConfig.assistant;
|
|
8251
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
8252
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8584
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default76.root} ${config.cls}${className ? ` ${className}` : ""}`, children: [
|
|
8585
|
+
/* @__PURE__ */ jsx("div", { className: __default76.header, children: /* @__PURE__ */ jsxs("span", { className: __default76.roleLabel, children: [
|
|
8253
8586
|
role,
|
|
8254
8587
|
model && ` \u2022 ${model}`
|
|
8255
8588
|
] }) }),
|
|
8256
|
-
toolCall && /* @__PURE__ */ jsx("div", { className:
|
|
8257
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8258
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8589
|
+
toolCall && /* @__PURE__ */ jsx("div", { className: __default76.toolBadge, children: /* @__PURE__ */ jsxs("div", { className: __default76.toolBadgeInner, children: [
|
|
8590
|
+
/* @__PURE__ */ jsx("span", { className: __default76.toolDot }),
|
|
8591
|
+
/* @__PURE__ */ jsx("span", { className: __default76.toolLabel, children: toolCall })
|
|
8259
8592
|
] }) }),
|
|
8260
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8261
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
8593
|
+
/* @__PURE__ */ jsx("div", { className: __default76.divider }),
|
|
8594
|
+
/* @__PURE__ */ jsxs("div", { className: __default76.contentWrapper, children: [
|
|
8262
8595
|
/* @__PURE__ */ jsx(
|
|
8263
8596
|
"div",
|
|
8264
8597
|
{
|
|
8265
|
-
className:
|
|
8598
|
+
className: __default76.content,
|
|
8266
8599
|
style: collapsible && !expanded ? { maxHeight: collapsedHeight, overflow: "hidden" } : void 0,
|
|
8267
8600
|
children
|
|
8268
8601
|
}
|
|
8269
8602
|
),
|
|
8270
|
-
collapsible && !expanded && /* @__PURE__ */ jsxs("div", { className:
|
|
8603
|
+
collapsible && !expanded && /* @__PURE__ */ jsxs("div", { className: __default76.fadeOverlay, children: [
|
|
8271
8604
|
/* @__PURE__ */ jsx(
|
|
8272
8605
|
"div",
|
|
8273
8606
|
{
|
|
8274
|
-
className:
|
|
8607
|
+
className: __default76.fadeGradient,
|
|
8275
8608
|
style: {
|
|
8276
8609
|
background: `linear-gradient(to top, ${config.gradient}, transparent)`
|
|
8277
8610
|
}
|
|
8278
8611
|
}
|
|
8279
8612
|
),
|
|
8280
|
-
/* @__PURE__ */ jsx("div", { className: `${
|
|
8613
|
+
/* @__PURE__ */ jsx("div", { className: `${__default76.showMoreBar} ${config.cls}`, children: /* @__PURE__ */ jsx(
|
|
8281
8614
|
"button",
|
|
8282
8615
|
{
|
|
8283
8616
|
onClick: () => setExpanded(true),
|
|
8284
|
-
className:
|
|
8617
|
+
className: __default76.showMoreBtn,
|
|
8285
8618
|
children: "Show more"
|
|
8286
8619
|
}
|
|
8287
8620
|
) })
|
|
@@ -8313,14 +8646,14 @@ __styleInject(`.ArticleLinkButton-module_root {
|
|
|
8313
8646
|
.ArticleLinkButton-module_root:active {
|
|
8314
8647
|
opacity: 0.8;
|
|
8315
8648
|
}`);
|
|
8316
|
-
var
|
|
8649
|
+
var __default77 = { "root": "ArticleLinkButton-module_root" };
|
|
8317
8650
|
function ArticleLinkButton({
|
|
8318
8651
|
children,
|
|
8319
8652
|
href,
|
|
8320
8653
|
onClick,
|
|
8321
8654
|
className = ""
|
|
8322
8655
|
}) {
|
|
8323
|
-
const cls = `${
|
|
8656
|
+
const cls = `${__default77.root}${className ? ` ${className}` : ""}`;
|
|
8324
8657
|
if (href) {
|
|
8325
8658
|
return /* @__PURE__ */ jsx("a", { href, className: cls, children });
|
|
8326
8659
|
}
|
|
@@ -8357,18 +8690,18 @@ __styleInject(`.ArticleFooter-module_root {
|
|
|
8357
8690
|
line-height: 1.25rem;
|
|
8358
8691
|
color: var(--fg-muted);
|
|
8359
8692
|
}`);
|
|
8360
|
-
var
|
|
8693
|
+
var __default78 = { "root": "ArticleFooter-module_root", "topBar": "ArticleFooter-module_topBar", "logo": "ArticleFooter-module_logo", "divider": "ArticleFooter-module_divider", "copyright": "ArticleFooter-module_copyright" };
|
|
8361
8694
|
function ArticleFooter({
|
|
8362
8695
|
logo,
|
|
8363
8696
|
copyright = `\xA9 ${(/* @__PURE__ */ new Date()).getFullYear()} All rights reserved.`,
|
|
8364
8697
|
className = ""
|
|
8365
8698
|
}) {
|
|
8366
|
-
return /* @__PURE__ */ jsxs("footer", { className: `${
|
|
8367
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
8368
|
-
logo && /* @__PURE__ */ jsx("div", { className:
|
|
8369
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8699
|
+
return /* @__PURE__ */ jsxs("footer", { className: `${__default78.root}${className ? ` ${className}` : ""}`, children: [
|
|
8700
|
+
/* @__PURE__ */ jsxs("div", { className: __default78.topBar, children: [
|
|
8701
|
+
logo && /* @__PURE__ */ jsx("div", { className: __default78.logo, children: logo }),
|
|
8702
|
+
/* @__PURE__ */ jsx("div", { className: __default78.divider })
|
|
8370
8703
|
] }),
|
|
8371
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
8704
|
+
/* @__PURE__ */ jsx("p", { className: __default78.copyright, children: copyright })
|
|
8372
8705
|
] });
|
|
8373
8706
|
}
|
|
8374
8707
|
|
|
@@ -8391,15 +8724,15 @@ __styleInject(`.ArticleLayout-module_root {
|
|
|
8391
8724
|
width: 100%;
|
|
8392
8725
|
max-width: 720px;
|
|
8393
8726
|
}`);
|
|
8394
|
-
var
|
|
8727
|
+
var __default79 = { "root": "ArticleLayout-module_root", "wide": "ArticleLayout-module_wide", "narrow": "ArticleLayout-module_narrow" };
|
|
8395
8728
|
function ArticleLayout({ children, className = "" }) {
|
|
8396
|
-
return /* @__PURE__ */ jsx("article", { className: `${
|
|
8729
|
+
return /* @__PURE__ */ jsx("article", { className: `${__default79.root}${className ? ` ${className}` : ""}`, children });
|
|
8397
8730
|
}
|
|
8398
8731
|
function ArticleWide({ children, className = "" }) {
|
|
8399
|
-
return /* @__PURE__ */ jsx("div", { className: `${
|
|
8732
|
+
return /* @__PURE__ */ jsx("div", { className: `${__default79.wide}${className ? ` ${className}` : ""}`, children });
|
|
8400
8733
|
}
|
|
8401
8734
|
function ArticleNarrow({ children, className = "" }) {
|
|
8402
|
-
return /* @__PURE__ */ jsx("div", { className: `${
|
|
8735
|
+
return /* @__PURE__ */ jsx("div", { className: `${__default79.narrow}${className ? ` ${className}` : ""}`, children });
|
|
8403
8736
|
}
|
|
8404
8737
|
|
|
8405
8738
|
// css-inject-scss:/Users/dimakozh/Desktop/projects/kapustin.cc/packages/ui/src/templates/ArticleChart.module.scss
|
|
@@ -8486,7 +8819,7 @@ __styleInject(`.ArticleChart-module_figure {
|
|
|
8486
8819
|
line-height: 1rem;
|
|
8487
8820
|
color: var(--fg-secondary);
|
|
8488
8821
|
}`);
|
|
8489
|
-
var
|
|
8822
|
+
var __default80 = { "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
8823
|
function ChartTooltip({
|
|
8491
8824
|
active,
|
|
8492
8825
|
payload,
|
|
@@ -8497,15 +8830,15 @@ function ChartTooltip({
|
|
|
8497
8830
|
}) {
|
|
8498
8831
|
if (!active || !(payload == null ? void 0 : payload.length)) return null;
|
|
8499
8832
|
const fmt = valueFormatter != null ? valueFormatter : ((v) => String(v));
|
|
8500
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
8501
|
-
label !== void 0 && /* @__PURE__ */ jsxs("p", { className:
|
|
8833
|
+
return /* @__PURE__ */ jsxs("div", { className: __default80.tooltip, children: [
|
|
8834
|
+
label !== void 0 && /* @__PURE__ */ jsxs("p", { className: __default80.tooltipLabel, children: [
|
|
8502
8835
|
xLabel ? `${xLabel}: ` : "",
|
|
8503
8836
|
label
|
|
8504
8837
|
] }),
|
|
8505
|
-
payload.map((entry, i) => /* @__PURE__ */ jsxs("div", { className:
|
|
8506
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8507
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8508
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8838
|
+
payload.map((entry, i) => /* @__PURE__ */ jsxs("div", { className: __default80.tooltipRow, children: [
|
|
8839
|
+
/* @__PURE__ */ jsx("span", { className: __default80.tooltipDot, style: { backgroundColor: entry.color } }),
|
|
8840
|
+
/* @__PURE__ */ jsx("span", { className: __default80.tooltipName, children: entry.name }),
|
|
8841
|
+
/* @__PURE__ */ jsx("span", { className: __default80.tooltipValue, children: yLabel ? `${fmt(entry.value)} ` : fmt(entry.value) })
|
|
8509
8842
|
] }, i))
|
|
8510
8843
|
] });
|
|
8511
8844
|
}
|
|
@@ -8519,8 +8852,8 @@ function ArticleLineChart({
|
|
|
8519
8852
|
valueFormatter,
|
|
8520
8853
|
className = ""
|
|
8521
8854
|
}) {
|
|
8522
|
-
return /* @__PURE__ */ jsxs("figure", { className: `${
|
|
8523
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8855
|
+
return /* @__PURE__ */ jsxs("figure", { className: `${__default80.figure}${className ? ` ${className}` : ""}`, children: [
|
|
8856
|
+
/* @__PURE__ */ jsx("div", { className: __default80.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
8857
|
/* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", stroke: "var(--border-color)" }),
|
|
8525
8858
|
/* @__PURE__ */ jsx(
|
|
8526
8859
|
XAxis,
|
|
@@ -8570,9 +8903,9 @@ function ArticleLineChart({
|
|
|
8570
8903
|
s.dataKey
|
|
8571
8904
|
))
|
|
8572
8905
|
] }) }) }),
|
|
8573
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8574
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8575
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8906
|
+
/* @__PURE__ */ jsx("div", { className: __default80.legend, children: series.map((s) => /* @__PURE__ */ jsxs("div", { className: __default80.legendItem, children: [
|
|
8907
|
+
/* @__PURE__ */ jsx("span", { className: __default80.legendSwatch, style: { backgroundColor: s.color } }),
|
|
8908
|
+
/* @__PURE__ */ jsx("span", { className: __default80.legendLabel, children: s.name })
|
|
8576
8909
|
] }, s.dataKey)) })
|
|
8577
8910
|
] });
|
|
8578
8911
|
}
|
|
@@ -8587,8 +8920,8 @@ function ArticleBarChart({
|
|
|
8587
8920
|
valueFormatter,
|
|
8588
8921
|
className = ""
|
|
8589
8922
|
}) {
|
|
8590
|
-
return /* @__PURE__ */ jsxs("figure", { className: `${
|
|
8591
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8923
|
+
return /* @__PURE__ */ jsxs("figure", { className: `${__default80.figure}${className ? ` ${className}` : ""}`, children: [
|
|
8924
|
+
/* @__PURE__ */ jsx("div", { className: __default80.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
8925
|
/* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", stroke: "var(--border-color)", vertical: false }),
|
|
8593
8926
|
/* @__PURE__ */ jsx(
|
|
8594
8927
|
XAxis,
|
|
@@ -8625,7 +8958,7 @@ function ArticleBarChart({
|
|
|
8625
8958
|
}
|
|
8626
8959
|
),
|
|
8627
8960
|
series.map((s) => /* @__PURE__ */ jsx(
|
|
8628
|
-
Bar,
|
|
8961
|
+
Bar$1,
|
|
8629
8962
|
{
|
|
8630
8963
|
dataKey: s.dataKey,
|
|
8631
8964
|
name: s.name,
|
|
@@ -8636,9 +8969,9 @@ function ArticleBarChart({
|
|
|
8636
8969
|
s.dataKey
|
|
8637
8970
|
))
|
|
8638
8971
|
] }) }) }),
|
|
8639
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8640
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8641
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
8972
|
+
/* @__PURE__ */ jsx("div", { className: __default80.legend, children: series.map((s) => /* @__PURE__ */ jsxs("div", { className: __default80.legendItem, children: [
|
|
8973
|
+
/* @__PURE__ */ jsx("span", { className: __default80.legendSwatch, style: { backgroundColor: s.color } }),
|
|
8974
|
+
/* @__PURE__ */ jsx("span", { className: __default80.legendLabel, children: s.name })
|
|
8642
8975
|
] }, s.dataKey)) })
|
|
8643
8976
|
] });
|
|
8644
8977
|
}
|
|
@@ -8656,7 +8989,7 @@ function ArticleScatterChart({
|
|
|
8656
8989
|
var _a;
|
|
8657
8990
|
return (_a = d.color) != null ? _a : color;
|
|
8658
8991
|
});
|
|
8659
|
-
return /* @__PURE__ */ jsx("figure", { className: `${
|
|
8992
|
+
return /* @__PURE__ */ jsx("figure", { className: `${__default80.figure}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsx("div", { className: __default80.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
8993
|
/* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", stroke: "var(--border-color)" }),
|
|
8661
8994
|
/* @__PURE__ */ jsx(
|
|
8662
8995
|
XAxis,
|
|
@@ -8692,14 +9025,14 @@ function ArticleScatterChart({
|
|
|
8692
9025
|
if (!active || !(payload == null ? void 0 : payload.length)) return null;
|
|
8693
9026
|
const point = (_a = payload[0]) == null ? void 0 : _a.payload;
|
|
8694
9027
|
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:
|
|
9028
|
+
return /* @__PURE__ */ jsxs("div", { className: __default80.tooltip, children: [
|
|
9029
|
+
point.label && /* @__PURE__ */ jsx("p", { className: __default80.scatterTooltipLabel, children: point.label }),
|
|
9030
|
+
xLabel && /* @__PURE__ */ jsxs("p", { className: __default80.scatterTooltipRow, children: [
|
|
8698
9031
|
xLabel,
|
|
8699
9032
|
": ",
|
|
8700
9033
|
fmt(point.x)
|
|
8701
9034
|
] }),
|
|
8702
|
-
yLabel && /* @__PURE__ */ jsxs("p", { className:
|
|
9035
|
+
yLabel && /* @__PURE__ */ jsxs("p", { className: __default80.scatterTooltipRow, children: [
|
|
8703
9036
|
yLabel,
|
|
8704
9037
|
": ",
|
|
8705
9038
|
fmt(point.y)
|
|
@@ -8776,7 +9109,7 @@ __styleInject(`.LandingLayout-module_headerMode {
|
|
|
8776
9109
|
padding-right: 4rem;
|
|
8777
9110
|
}
|
|
8778
9111
|
}`);
|
|
8779
|
-
var
|
|
9112
|
+
var __default81 = { "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
9113
|
function LandingLayout({
|
|
8781
9114
|
mode = "header",
|
|
8782
9115
|
nav,
|
|
@@ -8785,19 +9118,19 @@ function LandingLayout({
|
|
|
8785
9118
|
className = ""
|
|
8786
9119
|
}) {
|
|
8787
9120
|
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:
|
|
9121
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default81.sidebarMode}${className ? ` ${className}` : ""}`, children: [
|
|
9122
|
+
nav && /* @__PURE__ */ jsx("div", { className: __default81.sidebarNav, children: nav }),
|
|
9123
|
+
/* @__PURE__ */ jsxs("main", { className: __default81.sidebarMain, children: [
|
|
9124
|
+
/* @__PURE__ */ jsx("div", { className: __default81.sidebarContent, children }),
|
|
8792
9125
|
footer
|
|
8793
9126
|
] })
|
|
8794
9127
|
] });
|
|
8795
9128
|
}
|
|
8796
|
-
return /* @__PURE__ */ jsxs("div", { className: `${
|
|
9129
|
+
return /* @__PURE__ */ jsxs("div", { className: `${__default81.headerMode}${className ? ` ${className}` : ""}`, children: [
|
|
8797
9130
|
nav,
|
|
8798
|
-
/* @__PURE__ */ jsx("main", { className:
|
|
9131
|
+
/* @__PURE__ */ jsx("main", { className: __default81.headerMain, children }),
|
|
8799
9132
|
footer
|
|
8800
9133
|
] });
|
|
8801
9134
|
}
|
|
8802
9135
|
|
|
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 };
|
|
9136
|
+
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, 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 };
|