@pelatform/ui 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/components/image-input.css +2 -2
- package/css/components/patterns.css +2 -2
- package/css/theme.css +13 -12
- package/dist/animation.cjs +8 -8
- package/dist/animation.js +8 -8
- package/dist/aria.cjs +3 -3
- package/dist/aria.js +1 -1
- package/dist/base.cjs +119 -119
- package/dist/base.d.cts +3 -3
- package/dist/base.d.ts +3 -3
- package/dist/base.js +118 -118
- package/dist/{chunk-VECBSKBC.cjs → chunk-BXUKTDPN.cjs} +33 -33
- package/dist/{chunk-VSLPH2IR.cjs → chunk-DBE4IGCP.cjs} +9 -9
- package/dist/{chunk-OMPNDLGS.js → chunk-TB6DU23O.js} +33 -33
- package/dist/{chunk-CYFW37N5.js → chunk-TYEFU7IG.js} +7 -7
- package/dist/components.cjs +81 -84
- package/dist/components.js +10 -13
- package/dist/default.cjs +161 -162
- package/dist/default.js +58 -59
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +6 -6
package/dist/components.cjs
CHANGED
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkDBE4IGCPcjs = require('./chunk-DBE4IGCP.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkBXUKTDPNcjs = require('./chunk-BXUKTDPN.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
@@ -75,9 +75,9 @@ function AlertToast({
|
|
|
75
75
|
variant = "mono"
|
|
76
76
|
}) {
|
|
77
77
|
_sonner.toast.custom(
|
|
78
|
-
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
79
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
80
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
|
+
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Alert, { variant, icon, children: [
|
|
79
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertIcon, { children: iconMap[_nullishCoalesce(icon, () => ( "success"))] }),
|
|
80
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertTitle, { children: message })
|
|
81
81
|
] }),
|
|
82
82
|
{
|
|
83
83
|
// Auto-dismiss after 4 seconds
|
|
@@ -103,9 +103,9 @@ function AlertNotification({ message, variant = "info" }) {
|
|
|
103
103
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Info, {});
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
107
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
108
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
106
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Alert, { variant, children: [
|
|
107
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertIcon, { children: getIcon() }),
|
|
108
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertTitle, { children: message })
|
|
109
109
|
] });
|
|
110
110
|
}
|
|
111
111
|
var AlertComingsoon = ({
|
|
@@ -114,9 +114,9 @@ var AlertComingsoon = ({
|
|
|
114
114
|
variant = "mono"
|
|
115
115
|
} = {}) => {
|
|
116
116
|
_sonner.toast.custom(
|
|
117
|
-
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
118
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
119
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
117
|
+
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Alert, { variant, icon, children: [
|
|
118
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertIcon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CircleAlert, {}) }),
|
|
119
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertTitle, { children: message })
|
|
120
120
|
] }),
|
|
121
121
|
{
|
|
122
122
|
// Toast configuration for better UX
|
|
@@ -149,14 +149,14 @@ var ConfirmDismissDialog = ({
|
|
|
149
149
|
onOpenChange(false);
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
153
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
154
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
155
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
152
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertDialog, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.AlertDialogContent, { className: maxWidth, children: [
|
|
153
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.AlertDialogHeader, { children: [
|
|
154
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertDialogTitle, { children: title }),
|
|
155
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertDialogDescription, { children: description })
|
|
156
156
|
] }),
|
|
157
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
158
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
159
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
157
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.AlertDialogFooter, { children: [
|
|
158
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertDialogCancel, { onClick: handleCancel, children: cancelText }),
|
|
159
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertDialogAction, { onClick: onConfirm, children: confirmText })
|
|
160
160
|
] })
|
|
161
161
|
] }) });
|
|
162
162
|
};
|
|
@@ -326,7 +326,7 @@ function SiteHeader({ className, children }) {
|
|
|
326
326
|
// src/components/layout/wrapper.tsx
|
|
327
327
|
|
|
328
328
|
function MaxWidthWrapper({ className, children }) {
|
|
329
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCJXIPSTGcjs.cn.call(void 0, "mx-auto w-full max-w-
|
|
329
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCJXIPSTGcjs.cn.call(void 0, "mx-auto w-full max-w-7xl p-3 lg:px-10", className), children });
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
// src/components/mdx/code-display.tsx
|
|
@@ -345,7 +345,7 @@ function CodeDisplay({
|
|
|
345
345
|
|
|
346
346
|
|
|
347
347
|
function DownloadFile({ children, className, href }) {
|
|
348
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
348
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBXUKTDPNcjs.Button, { size: "lg", className: _chunkCJXIPSTGcjs.cn.call(void 0, "rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", children: [
|
|
349
349
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Download, { className: "mr-2 size-5" }),
|
|
350
350
|
children
|
|
351
351
|
] }) }) });
|
|
@@ -437,7 +437,7 @@ function BackLink({ Link = DefaultLink, children, href, className }) {
|
|
|
437
437
|
),
|
|
438
438
|
children: [
|
|
439
439
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
440
|
-
|
|
440
|
+
_chunkBXUKTDPNcjs.Button,
|
|
441
441
|
{
|
|
442
442
|
variant: "secondary",
|
|
443
443
|
mode: "icon",
|
|
@@ -511,7 +511,7 @@ function CommandMenu({
|
|
|
511
511
|
}, [handleButtonClick]);
|
|
512
512
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
513
513
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
514
|
-
|
|
514
|
+
_chunkBXUKTDPNcjs.Button,
|
|
515
515
|
{
|
|
516
516
|
variant: "outline",
|
|
517
517
|
mode: "input",
|
|
@@ -535,17 +535,17 @@ function CommandMenu({
|
|
|
535
535
|
}
|
|
536
536
|
),
|
|
537
537
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
538
|
-
|
|
538
|
+
_chunkDBE4IGCPcjs.CommandDialog,
|
|
539
539
|
{
|
|
540
540
|
open,
|
|
541
541
|
onOpenChange: setOpen,
|
|
542
542
|
className: _chunkCJXIPSTGcjs.cn.call(void 0,
|
|
543
|
-
"
|
|
543
|
+
"**:data-dialog-close:end-[0.925rem] **:data-dialog-close:top-[0.925rem]",
|
|
544
544
|
classDialog
|
|
545
545
|
),
|
|
546
546
|
children: [
|
|
547
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
547
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.CommandInput, { placeholder: commandInputPlaceholder, "aria-label": "Search commands" }),
|
|
548
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.CommandList, { children })
|
|
549
549
|
]
|
|
550
550
|
}
|
|
551
551
|
)
|
|
@@ -566,8 +566,8 @@ function NavItemRenderer({ Link = DefaultLink, item, pathname, level }) {
|
|
|
566
566
|
)]), () => ( false)))
|
|
567
567
|
)]), () => ( false)) : item.href === pathname || item.href !== "/" && item.href && _optionalChain([pathname, 'optionalAccess', _12 => _12.startsWith, 'call', _13 => _13(item.href)]);
|
|
568
568
|
if (hasChildren && level <= 3) {
|
|
569
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
570
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
569
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.DropdownMenu, { children: [
|
|
570
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
571
571
|
"button",
|
|
572
572
|
{
|
|
573
573
|
className: _chunkCJXIPSTGcjs.cn.call(void 0,
|
|
@@ -582,7 +582,7 @@ function NavItemRenderer({ Link = DefaultLink, item, pathname, level }) {
|
|
|
582
582
|
}
|
|
583
583
|
) }),
|
|
584
584
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
585
|
-
|
|
585
|
+
_chunkDBE4IGCPcjs.DropdownMenuContent,
|
|
586
586
|
{
|
|
587
587
|
className: "min-w-[150px] overflow-visible",
|
|
588
588
|
side: "bottom",
|
|
@@ -626,9 +626,9 @@ function ChildNavItemRenderer({ Link = DefaultLink, item, pathname, level }) {
|
|
|
626
626
|
(grandchild) => grandchild.href === pathname || grandchild.href !== "/" && grandchild.href && _optionalChain([pathname, 'optionalAccess', _22 => _22.startsWith, 'call', _23 => _23(grandchild.href)])
|
|
627
627
|
)]), () => ( false)));
|
|
628
628
|
if (hasChildren && level <= 3) {
|
|
629
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
629
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.DropdownMenuSub, { children: [
|
|
630
630
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
631
|
-
|
|
631
|
+
_chunkDBE4IGCPcjs.DropdownMenuSubTrigger,
|
|
632
632
|
{
|
|
633
633
|
className: _chunkCJXIPSTGcjs.cn.call(void 0,
|
|
634
634
|
"flex w-full items-center justify-between text-muted-foreground hover:text-foreground",
|
|
@@ -640,7 +640,7 @@ function ChildNavItemRenderer({ Link = DefaultLink, item, pathname, level }) {
|
|
|
640
640
|
]
|
|
641
641
|
}
|
|
642
642
|
),
|
|
643
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
643
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.DropdownMenuSubContent, { className: "min-w-[150px]", children: _optionalChain([item, 'access', _24 => _24.children, 'optionalAccess', _25 => _25.map, 'call', _26 => _26((child) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
644
644
|
ChildNavItemRenderer,
|
|
645
645
|
{
|
|
646
646
|
item: child,
|
|
@@ -651,7 +651,7 @@ function ChildNavItemRenderer({ Link = DefaultLink, item, pathname, level }) {
|
|
|
651
651
|
))]) })
|
|
652
652
|
] });
|
|
653
653
|
}
|
|
654
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
654
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
655
655
|
Link,
|
|
656
656
|
{
|
|
657
657
|
href: item.href || "",
|
|
@@ -696,15 +696,15 @@ function MobileNav({ children, className }) {
|
|
|
696
696
|
},
|
|
697
697
|
[setMetaColor, metaColor]
|
|
698
698
|
);
|
|
699
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCJXIPSTGcjs.cn.call(void 0, "flex items-center gap-2.5 md:hidden", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
700
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
699
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCJXIPSTGcjs.cn.call(void 0, "flex items-center gap-2.5 md:hidden", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Drawer, { open, onOpenChange, children: [
|
|
700
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.DrawerTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBXUKTDPNcjs.Button, { variant: "ghost", className: "group/toggle size-8 px-0 text-foreground", children: [
|
|
701
701
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Menu, {}),
|
|
702
702
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Toggle Menu" })
|
|
703
703
|
] }) }),
|
|
704
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
705
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
704
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.DrawerContent, { className: "max-h-[60svh] p-0", children: [
|
|
705
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.DrawerTitle, { className: "sr-only", children: "Mobile menu" }),
|
|
706
706
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-auto p-6", children }),
|
|
707
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
707
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.DrawerDescription, { className: "sr-only", children: "Mobile menu" })
|
|
708
708
|
] })
|
|
709
709
|
] }) });
|
|
710
710
|
}
|
|
@@ -726,9 +726,9 @@ function MobileNavItemRenderer({
|
|
|
726
726
|
)]), () => ( false)) : item.href === pathname || item.href !== "/" && item.href && _optionalChain([pathname, 'optionalAccess', _37 => _37.startsWith, 'call', _38 => _38(item.href)]);
|
|
727
727
|
if (hasChildren && level <= 3) {
|
|
728
728
|
console.log(item);
|
|
729
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
729
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Collapsible, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
730
730
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
731
|
-
|
|
731
|
+
_chunkDBE4IGCPcjs.CollapsibleTrigger,
|
|
732
732
|
{
|
|
733
733
|
className: _chunkCJXIPSTGcjs.cn.call(void 0,
|
|
734
734
|
"flex w-full cursor-pointer items-center gap-1 text-sm transition-colors",
|
|
@@ -749,7 +749,7 @@ function MobileNavItemRenderer({
|
|
|
749
749
|
]
|
|
750
750
|
}
|
|
751
751
|
),
|
|
752
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
752
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.CollapsibleContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCJXIPSTGcjs.cn.call(void 0, "flex flex-col space-y-2.5 pt-3", `ps-5`), children: item.children.map((child) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
753
753
|
MobileNavItemRenderer,
|
|
754
754
|
{
|
|
755
755
|
item: child,
|
|
@@ -836,9 +836,9 @@ var QueryProvider = ({ children }) => {
|
|
|
836
836
|
});
|
|
837
837
|
}
|
|
838
838
|
_sonner.toast.custom(
|
|
839
|
-
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
840
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
841
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
839
|
+
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Alert, { variant: "mono", icon: "destructive", close: false, children: [
|
|
840
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertIcon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CircleAlert, {}) }),
|
|
841
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertTitle, { children: message })
|
|
842
842
|
] }),
|
|
843
843
|
{
|
|
844
844
|
position: "top-center",
|
|
@@ -870,7 +870,7 @@ function ThemeProvider({ children, ...props }) {
|
|
|
870
870
|
storageKey: "theme",
|
|
871
871
|
themes: [_chunkI46SELBAcjs.THEME_MODES.LIGHT, _chunkI46SELBAcjs.THEME_MODES.DARK, _chunkI46SELBAcjs.THEME_MODES.SYSTEM],
|
|
872
872
|
...props,
|
|
873
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
873
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.TooltipProvider, { delayDuration: 0, children })
|
|
874
874
|
}
|
|
875
875
|
);
|
|
876
876
|
}
|
|
@@ -883,7 +883,7 @@ var Announcement = ({
|
|
|
883
883
|
className,
|
|
884
884
|
...props
|
|
885
885
|
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
886
|
-
|
|
886
|
+
_chunkDBE4IGCPcjs.Badge,
|
|
887
887
|
{
|
|
888
888
|
variant,
|
|
889
889
|
className: _chunkCJXIPSTGcjs.cn.call(void 0,
|
|
@@ -966,14 +966,14 @@ function Book(props) {
|
|
|
966
966
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
967
967
|
"div",
|
|
968
968
|
{
|
|
969
|
-
className: _chunkCJXIPSTGcjs.cn.call(void 0, "group inline-block w-fit
|
|
969
|
+
className: _chunkCJXIPSTGcjs.cn.call(void 0, "group perspective-[900px] inline-block w-fit"),
|
|
970
970
|
style: {
|
|
971
971
|
"--book-color": color,
|
|
972
972
|
"--text-color": textColor,
|
|
973
973
|
"--book-depth": `${depth || 4}cqw`,
|
|
974
974
|
"--book-width": `${width || 196}px`
|
|
975
975
|
},
|
|
976
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative aspect-
|
|
976
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "transform-3d group-hover:transform-[rotateY(-20deg)_scale(1.066)translateX(-8px)] relative aspect-49/60 w-fit min-w-[calc(var(--book-width))] rotate-0 transition-transform duration-500 ease-out contain-inline-size", children: [
|
|
977
977
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
978
978
|
Stack,
|
|
979
979
|
{
|
|
@@ -987,7 +987,7 @@ function Book(props) {
|
|
|
987
987
|
grow: true,
|
|
988
988
|
direction: "row",
|
|
989
989
|
className: _chunkCJXIPSTGcjs.cn.call(void 0,
|
|
990
|
-
"relative min-w-[calc(var(--book-width))] overflow-hidden bg-
|
|
990
|
+
"relative min-w-[calc(var(--book-width))] overflow-hidden bg-(--book-color)"
|
|
991
991
|
),
|
|
992
992
|
children: [
|
|
993
993
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute inset-y-0 min-w-[8.2%] bg-book-bind-bg opacity-100 mix-blend-overlay" }),
|
|
@@ -1023,7 +1023,7 @@ function Book(props) {
|
|
|
1023
1023
|
"div",
|
|
1024
1024
|
{
|
|
1025
1025
|
"aria-hidden": true,
|
|
1026
|
-
className: "book-bg absolute left-0 h-full w-full rounded-r rounded-l-md bg-
|
|
1026
|
+
className: "book-bg absolute left-0 h-full w-full rounded-r rounded-l-md bg-(--book-color)",
|
|
1027
1027
|
style: {
|
|
1028
1028
|
transform: "translateZ(calc(-1 * var(--book-depth)))"
|
|
1029
1029
|
}
|
|
@@ -1782,7 +1782,7 @@ function ModeSwitcher({
|
|
|
1782
1782
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Sun, {});
|
|
1783
1783
|
};
|
|
1784
1784
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1785
|
-
|
|
1785
|
+
_chunkBXUKTDPNcjs.Button,
|
|
1786
1786
|
{
|
|
1787
1787
|
variant,
|
|
1788
1788
|
size,
|
|
@@ -1820,10 +1820,7 @@ function MovingLabel({
|
|
|
1820
1820
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1821
1821
|
Component,
|
|
1822
1822
|
{
|
|
1823
|
-
className: _chunkCJXIPSTGcjs.cn.call(void 0,
|
|
1824
|
-
"relative h-9 overflow-hidden bg-transparent p-[1px] text-xl",
|
|
1825
|
-
containerClassName
|
|
1826
|
-
),
|
|
1823
|
+
className: _chunkCJXIPSTGcjs.cn.call(void 0, "relative h-9 overflow-hidden bg-transparent p-px text-xl", containerClassName),
|
|
1827
1824
|
style: {
|
|
1828
1825
|
borderRadius
|
|
1829
1826
|
},
|
|
@@ -1842,7 +1839,7 @@ function MovingLabel({
|
|
|
1842
1839
|
"div",
|
|
1843
1840
|
{
|
|
1844
1841
|
className: _chunkCJXIPSTGcjs.cn.call(void 0,
|
|
1845
|
-
"relative flex h-full w-full items-center justify-center border border-slate-800 bg-slate-900/
|
|
1842
|
+
"relative flex h-full w-full items-center justify-center border border-slate-800 bg-slate-900/50 text-sm text-white antialiased backdrop-blur-xl",
|
|
1846
1843
|
className
|
|
1847
1844
|
),
|
|
1848
1845
|
style: {
|
|
@@ -1936,9 +1933,9 @@ function RecaptchaPopover({
|
|
|
1936
1933
|
const token = getToken();
|
|
1937
1934
|
if (!token) {
|
|
1938
1935
|
_sonner.toast.custom(
|
|
1939
|
-
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1940
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1941
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1936
|
+
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Alert, { variant: "mono", icon: "destructive", children: [
|
|
1937
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertIcon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CircleAlert, {}) }),
|
|
1938
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertTitle, { children: "Please complete the reCAPTCHA verification." })
|
|
1942
1939
|
] }),
|
|
1943
1940
|
{
|
|
1944
1941
|
position: "top-center"
|
|
@@ -1950,9 +1947,9 @@ function RecaptchaPopover({
|
|
|
1950
1947
|
} catch (error) {
|
|
1951
1948
|
console.error("Error getting reCAPTCHA token:", error);
|
|
1952
1949
|
_sonner.toast.custom(
|
|
1953
|
-
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1954
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1950
|
+
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Alert, { variant: "mono", icon: "destructive", children: [
|
|
1951
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertIcon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CircleAlert, {}) }),
|
|
1952
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertTitle, { children: "Please complete the reCAPTCHA verification." })
|
|
1956
1953
|
] }),
|
|
1957
1954
|
{
|
|
1958
1955
|
position: "top-center"
|
|
@@ -1977,7 +1974,7 @@ function RecaptchaPopover({
|
|
|
1977
1974
|
children: [
|
|
1978
1975
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4", children: [
|
|
1979
1976
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: containerRef, className: "min-h-[78px]" }),
|
|
1980
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1977
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBXUKTDPNcjs.Button, { type: "button", variant: "mono", onClick: handleVerify, className: "w-full", children: verifyButtonText })
|
|
1981
1978
|
] }),
|
|
1982
1979
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.Popover.Arrow, { className: "fill-white" })
|
|
1983
1980
|
]
|
|
@@ -2008,9 +2005,9 @@ function Subscribe({
|
|
|
2008
2005
|
const validateEmail = () => {
|
|
2009
2006
|
if (!email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)) {
|
|
2010
2007
|
_sonner.toast.custom(
|
|
2011
|
-
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2012
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2013
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2008
|
+
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Alert, { variant: "mono", icon: "destructive", children: [
|
|
2009
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertIcon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CircleAlert, {}) }),
|
|
2010
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertTitle, { children: invalidEmailMessage })
|
|
2014
2011
|
] }),
|
|
2015
2012
|
{
|
|
2016
2013
|
position: "top-center"
|
|
@@ -2031,9 +2028,9 @@ function Subscribe({
|
|
|
2031
2028
|
const handleVerifiedSubmit = async (token) => {
|
|
2032
2029
|
if (!token) {
|
|
2033
2030
|
_sonner.toast.custom(
|
|
2034
|
-
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2035
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2036
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2031
|
+
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Alert, { variant: "mono", icon: "destructive", children: [
|
|
2032
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertIcon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CircleAlert, {}) }),
|
|
2033
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertTitle, { children: recaptchaMessage })
|
|
2037
2034
|
] }),
|
|
2038
2035
|
{
|
|
2039
2036
|
position: "top-center"
|
|
@@ -2063,9 +2060,9 @@ function Subscribe({
|
|
|
2063
2060
|
const data = await res.json();
|
|
2064
2061
|
if (res.ok) {
|
|
2065
2062
|
_sonner.toast.custom(
|
|
2066
|
-
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2067
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2068
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2063
|
+
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Alert, { variant: "mono", icon: "success", children: [
|
|
2064
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertIcon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CircleCheck, {}) }),
|
|
2065
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertTitle, { children: successMessage })
|
|
2069
2066
|
] }),
|
|
2070
2067
|
{
|
|
2071
2068
|
position: "top-center"
|
|
@@ -2082,9 +2079,9 @@ function Subscribe({
|
|
|
2082
2079
|
setEmail("");
|
|
2083
2080
|
} else {
|
|
2084
2081
|
_sonner.toast.custom(
|
|
2085
|
-
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2086
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2087
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2082
|
+
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Alert, { variant: "mono", icon: "destructive", children: [
|
|
2083
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertIcon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CircleAlert, {}) }),
|
|
2084
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertTitle, { children: data.message || errorMessage })
|
|
2088
2085
|
] }),
|
|
2089
2086
|
{
|
|
2090
2087
|
position: "top-center"
|
|
@@ -2094,9 +2091,9 @@ function Subscribe({
|
|
|
2094
2091
|
} catch (err) {
|
|
2095
2092
|
console.error("Newsletter subscription error:", err);
|
|
2096
2093
|
_sonner.toast.custom(
|
|
2097
|
-
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2098
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2099
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2094
|
+
() => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Alert, { variant: "mono", icon: "destructive", children: [
|
|
2095
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertIcon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CircleAlert, {}) }),
|
|
2096
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AlertTitle, { children: errorMessage })
|
|
2100
2097
|
] }),
|
|
2101
2098
|
{
|
|
2102
2099
|
position: "top-center"
|
|
@@ -2121,7 +2118,7 @@ function Subscribe({
|
|
|
2121
2118
|
] }),
|
|
2122
2119
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex gap-2.5", children: [
|
|
2123
2120
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2124
|
-
|
|
2121
|
+
_chunkBXUKTDPNcjs.Input,
|
|
2125
2122
|
{
|
|
2126
2123
|
type: "email",
|
|
2127
2124
|
value: email,
|
|
@@ -2146,7 +2143,7 @@ function Subscribe({
|
|
|
2146
2143
|
onVerify: handleVerifiedSubmit,
|
|
2147
2144
|
verifyButtonText,
|
|
2148
2145
|
trigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2149
|
-
|
|
2146
|
+
_chunkBXUKTDPNcjs.Button,
|
|
2150
2147
|
{
|
|
2151
2148
|
type: "submit",
|
|
2152
2149
|
className: "h-auto rounded-lg bg-white px-5 py-3 font-semibold text-black/80 hover:bg-white hover:text-black",
|
|
@@ -2182,10 +2179,10 @@ var ToolbarActions = ({ children }) => {
|
|
|
2182
2179
|
function UserAvatar({ className, indicator = false, src, alt }) {
|
|
2183
2180
|
const name = _nullishCoalesce(alt, () => ( "User"));
|
|
2184
2181
|
const initial = getInitials(name);
|
|
2185
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2186
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2187
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2188
|
-
indicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2182
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDBE4IGCPcjs.Avatar, { className, children: [
|
|
2183
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AvatarImage, { src: _nullishCoalesce(src, () => ( void 0)), alt: name }),
|
|
2184
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AvatarFallback, { children: initial }),
|
|
2185
|
+
indicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AvatarIndicator, { className: "-end-2 -top-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBE4IGCPcjs.AvatarStatus, { variant: "online", className: "size-2.5" }) })
|
|
2189
2186
|
] });
|
|
2190
2187
|
}
|
|
2191
2188
|
var getInitials = (name, count) => {
|
package/dist/components.js
CHANGED
|
@@ -38,11 +38,11 @@ import {
|
|
|
38
38
|
DropdownMenuSubTrigger,
|
|
39
39
|
DropdownMenuTrigger,
|
|
40
40
|
TooltipProvider
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-TYEFU7IG.js";
|
|
42
42
|
import {
|
|
43
43
|
Button,
|
|
44
44
|
Input
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-TB6DU23O.js";
|
|
46
46
|
import {
|
|
47
47
|
useMetaColor,
|
|
48
48
|
useRecaptchaV2
|
|
@@ -326,7 +326,7 @@ function SiteHeader({ className, children }) {
|
|
|
326
326
|
// src/components/layout/wrapper.tsx
|
|
327
327
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
328
328
|
function MaxWidthWrapper({ className, children }) {
|
|
329
|
-
return /* @__PURE__ */ jsx10("div", { className: cn("mx-auto w-full max-w-
|
|
329
|
+
return /* @__PURE__ */ jsx10("div", { className: cn("mx-auto w-full max-w-7xl p-3 lg:px-10", className), children });
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
// src/components/mdx/code-display.tsx
|
|
@@ -540,7 +540,7 @@ function CommandMenu({
|
|
|
540
540
|
open,
|
|
541
541
|
onOpenChange: setOpen,
|
|
542
542
|
className: cn(
|
|
543
|
-
"
|
|
543
|
+
"**:data-dialog-close:end-[0.925rem] **:data-dialog-close:top-[0.925rem]",
|
|
544
544
|
classDialog
|
|
545
545
|
),
|
|
546
546
|
children: [
|
|
@@ -966,14 +966,14 @@ function Book(props) {
|
|
|
966
966
|
return /* @__PURE__ */ jsx26(
|
|
967
967
|
"div",
|
|
968
968
|
{
|
|
969
|
-
className: cn("group inline-block w-fit
|
|
969
|
+
className: cn("group perspective-[900px] inline-block w-fit"),
|
|
970
970
|
style: {
|
|
971
971
|
"--book-color": color,
|
|
972
972
|
"--text-color": textColor,
|
|
973
973
|
"--book-depth": `${depth || 4}cqw`,
|
|
974
974
|
"--book-width": `${width || 196}px`
|
|
975
975
|
},
|
|
976
|
-
children: /* @__PURE__ */ jsxs15("div", { className: "relative aspect-
|
|
976
|
+
children: /* @__PURE__ */ jsxs15("div", { className: "transform-3d group-hover:transform-[rotateY(-20deg)_scale(1.066)translateX(-8px)] relative aspect-49/60 w-fit min-w-[calc(var(--book-width))] rotate-0 transition-transform duration-500 ease-out contain-inline-size", children: [
|
|
977
977
|
/* @__PURE__ */ jsxs15(
|
|
978
978
|
Stack,
|
|
979
979
|
{
|
|
@@ -987,7 +987,7 @@ function Book(props) {
|
|
|
987
987
|
grow: true,
|
|
988
988
|
direction: "row",
|
|
989
989
|
className: cn(
|
|
990
|
-
"relative min-w-[calc(var(--book-width))] overflow-hidden bg-
|
|
990
|
+
"relative min-w-[calc(var(--book-width))] overflow-hidden bg-(--book-color)"
|
|
991
991
|
),
|
|
992
992
|
children: [
|
|
993
993
|
/* @__PURE__ */ jsx26("div", { className: "absolute inset-y-0 min-w-[8.2%] bg-book-bind-bg opacity-100 mix-blend-overlay" }),
|
|
@@ -1023,7 +1023,7 @@ function Book(props) {
|
|
|
1023
1023
|
"div",
|
|
1024
1024
|
{
|
|
1025
1025
|
"aria-hidden": true,
|
|
1026
|
-
className: "book-bg absolute left-0 h-full w-full rounded-r rounded-l-md bg-
|
|
1026
|
+
className: "book-bg absolute left-0 h-full w-full rounded-r rounded-l-md bg-(--book-color)",
|
|
1027
1027
|
style: {
|
|
1028
1028
|
transform: "translateZ(calc(-1 * var(--book-depth)))"
|
|
1029
1029
|
}
|
|
@@ -1820,10 +1820,7 @@ function MovingLabel({
|
|
|
1820
1820
|
return /* @__PURE__ */ jsxs20(
|
|
1821
1821
|
Component,
|
|
1822
1822
|
{
|
|
1823
|
-
className: cn(
|
|
1824
|
-
"relative h-9 overflow-hidden bg-transparent p-[1px] text-xl",
|
|
1825
|
-
containerClassName
|
|
1826
|
-
),
|
|
1823
|
+
className: cn("relative h-9 overflow-hidden bg-transparent p-px text-xl", containerClassName),
|
|
1827
1824
|
style: {
|
|
1828
1825
|
borderRadius
|
|
1829
1826
|
},
|
|
@@ -1842,7 +1839,7 @@ function MovingLabel({
|
|
|
1842
1839
|
"div",
|
|
1843
1840
|
{
|
|
1844
1841
|
className: cn(
|
|
1845
|
-
"relative flex h-full w-full items-center justify-center border border-slate-800 bg-slate-900/
|
|
1842
|
+
"relative flex h-full w-full items-center justify-center border border-slate-800 bg-slate-900/50 text-sm text-white antialiased backdrop-blur-xl",
|
|
1846
1843
|
className
|
|
1847
1844
|
),
|
|
1848
1845
|
style: {
|