@vuer-ai/vuer-uikit 0.0.19 → 0.0.21
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/chunk-2JCULHBM.js +58 -0
- package/dist/chunk-2TRYGIGT.mjs +76 -0
- package/dist/chunk-2YCL2ET2.js +431 -0
- package/dist/chunk-3FR3WKI4.mjs +24 -0
- package/dist/chunk-44KW6PTD.mjs +111 -0
- package/dist/chunk-5OUTEHVX.js +48 -0
- package/dist/chunk-5SR53QBZ.js +143 -0
- package/dist/chunk-5TVG5JK5.js +93 -0
- package/dist/chunk-5ZZC23M7.mjs +60 -0
- package/dist/chunk-6N5422RT.js +110 -0
- package/dist/chunk-AOUGWGQR.js +609 -0
- package/dist/chunk-B2E7AY66.mjs +86 -0
- package/dist/chunk-BOPZFNFS.mjs +54 -0
- package/dist/chunk-CLTLT5XW.js +27 -0
- package/dist/chunk-DDOX4EEM.mjs +46 -0
- package/dist/chunk-DZ4J7I7I.mjs +114 -0
- package/dist/chunk-E33MW663.js +179 -0
- package/dist/chunk-EAZQH4IX.mjs +27 -0
- package/dist/chunk-EFIRD3FN.js +69 -0
- package/dist/chunk-EOFYA6CS.js +53 -0
- package/dist/chunk-EUY74AXP.mjs +341 -0
- package/dist/chunk-EYIFKSU2.mjs +259 -0
- package/dist/chunk-F56ZKT7B.mjs +1 -0
- package/dist/chunk-F776EMXP.mjs +82 -0
- package/dist/chunk-FORVP7XH.js +164 -0
- package/dist/chunk-FP26SRGL.js +377 -0
- package/dist/chunk-FRT225GK.mjs +34 -0
- package/dist/chunk-G5KMD72J.mjs +162 -0
- package/dist/chunk-G6PRZVSE.mjs +71 -0
- package/dist/chunk-H5P4IX7R.js +67 -0
- package/dist/chunk-HLJ7PQA7.mjs +15 -0
- package/dist/chunk-IGBWUFZL.js +79 -0
- package/dist/chunk-IXHMIR5P.js +131 -0
- package/dist/chunk-JAMJUXBY.mjs +45 -0
- package/dist/chunk-JMPVDU2C.mjs +110 -0
- package/dist/chunk-KJ42IGH6.js +2 -0
- package/dist/chunk-KTNZSZ5Y.mjs +23 -0
- package/dist/chunk-LEPXSM36.mjs +46 -0
- package/dist/chunk-LLXRJYQB.mjs +31 -0
- package/dist/chunk-M4IVLZIH.mjs +1 -0
- package/dist/chunk-MRVMXKZO.mjs +106 -0
- package/dist/chunk-MZ4POL3U.js +301 -0
- package/dist/chunk-N7CINZS2.js +2 -0
- package/dist/chunk-NODFVSVC.mjs +39 -0
- package/dist/chunk-OOI3SJDU.mjs +206 -0
- package/dist/chunk-OQ237S4Z.js +94 -0
- package/dist/chunk-OTPUWWEB.js +98 -0
- package/dist/chunk-PIR7EZC6.js +187 -0
- package/dist/chunk-PVRQNCSJ.js +49 -0
- package/dist/chunk-Q5KEB4UK.mjs +51 -0
- package/dist/chunk-QEY7BWIR.js +208 -0
- package/dist/chunk-QJR6MCTR.js +32 -0
- package/dist/chunk-QVUX6LLD.mjs +270 -0
- package/dist/chunk-QYRRQ65X.mjs +115 -0
- package/dist/chunk-SKO72K64.js +118 -0
- package/dist/chunk-T3VSSE2L.mjs +165 -0
- package/dist/chunk-TMBKCIVQ.mjs +148 -0
- package/dist/chunk-U2ZLDPOE.js +261 -0
- package/dist/chunk-U7SNLMJR.js +110 -0
- package/dist/chunk-UFHMEEGL.js +113 -0
- package/dist/chunk-UKFVRXAR.mjs +409 -0
- package/dist/chunk-UPTTGNMB.js +41 -0
- package/dist/chunk-V4KNORQN.js +21 -0
- package/dist/chunk-VAXIFFOT.js +83 -0
- package/dist/chunk-VGCVIHBR.mjs +1 -0
- package/dist/chunk-VXHM7V6F.mjs +92 -0
- package/dist/chunk-WDUTW7HS.mjs +87 -0
- package/dist/chunk-WJ7T7FAH.js +135 -0
- package/dist/chunk-WO3WHXDP.mjs +66 -0
- package/dist/chunk-X55EAYE2.js +94 -0
- package/dist/chunk-XMG3IVGZ.mjs +95 -0
- package/dist/chunk-XWS4SIB5.js +2 -0
- package/dist/chunk-XXWQ4RVP.js +25 -0
- package/dist/chunk-Y5I2GI4V.js +33 -0
- package/dist/chunk-YXDJPCAF.js +99 -0
- package/dist/chunk-ZVG2UKKC.mjs +603 -0
- package/dist/highlight-cursor/cursor-context.d.mts +7 -0
- package/dist/highlight-cursor/cursor-context.d.ts +7 -0
- package/dist/highlight-cursor/cursor-context.js +14 -0
- package/dist/highlight-cursor/cursor-context.mjs +1 -0
- package/dist/highlight-cursor/cursor-provider.d.mts +7 -0
- package/dist/highlight-cursor/cursor-provider.d.ts +7 -0
- package/dist/highlight-cursor/cursor-provider.js +12 -0
- package/dist/highlight-cursor/cursor-provider.mjs +3 -0
- package/dist/highlight-cursor/enhanced-components.d.mts +20 -0
- package/dist/highlight-cursor/enhanced-components.d.ts +20 -0
- package/dist/highlight-cursor/enhanced-components.js +37 -0
- package/dist/highlight-cursor/enhanced-components.mjs +12 -0
- package/dist/highlight-cursor/index.d.mts +16 -0
- package/dist/highlight-cursor/index.d.ts +16 -0
- package/dist/highlight-cursor/index.js +51 -0
- package/dist/highlight-cursor/index.mjs +14 -0
- package/dist/highlight-cursor/tabs-cursor-context.d.mts +14 -0
- package/dist/highlight-cursor/tabs-cursor-context.d.ts +14 -0
- package/dist/highlight-cursor/tabs-cursor-context.js +14 -0
- package/dist/highlight-cursor/tabs-cursor-context.mjs +1 -0
- package/dist/highlight-cursor/types.d.mts +39 -0
- package/dist/highlight-cursor/types.d.ts +39 -0
- package/dist/highlight-cursor/types.js +2 -0
- package/dist/highlight-cursor/types.mjs +1 -0
- package/dist/highlight-cursor/with-cursor.d.mts +7 -0
- package/dist/highlight-cursor/with-cursor.d.ts +7 -0
- package/dist/highlight-cursor/with-cursor.js +11 -0
- package/dist/highlight-cursor/with-cursor.mjs +2 -0
- package/dist/index.css +318 -0
- package/dist/index.d.mts +55 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +131 -131
- package/dist/index.mjs +38 -0
- package/dist/styles/theme.css +192 -0
- package/dist/styles/theme.d.mts +2 -0
- package/dist/styles/theme.d.ts +2 -0
- package/dist/styles/toast.css +61 -0
- package/dist/styles/toast.d.mts +2 -0
- package/dist/styles/toast.d.ts +2 -0
- package/dist/styles/variables.css +188 -0
- package/dist/styles/variables.d.mts +2 -0
- package/dist/styles/variables.d.ts +2 -0
- package/dist/ui/avatar.d.mts +16 -0
- package/dist/ui/avatar.d.ts +16 -0
- package/dist/ui/avatar.js +25 -0
- package/dist/ui/avatar.mjs +4 -0
- package/dist/ui/badge.d.mts +14 -0
- package/dist/ui/badge.d.ts +14 -0
- package/dist/ui/badge.js +17 -0
- package/dist/ui/badge.mjs +4 -0
- package/dist/ui/button.d.mts +16 -0
- package/dist/ui/button.d.ts +16 -0
- package/dist/ui/button.js +13 -0
- package/dist/ui/button.mjs +4 -0
- package/dist/ui/card.d.mts +12 -0
- package/dist/ui/card.d.ts +12 -0
- package/dist/ui/card.js +37 -0
- package/dist/ui/card.mjs +4 -0
- package/dist/ui/checkbox.d.mts +11 -0
- package/dist/ui/checkbox.d.ts +11 -0
- package/dist/ui/checkbox.js +13 -0
- package/dist/ui/checkbox.mjs +4 -0
- package/dist/ui/collapsible.d.mts +9 -0
- package/dist/ui/collapsible.d.ts +9 -0
- package/dist/ui/collapsible.js +21 -0
- package/dist/ui/collapsible.mjs +4 -0
- package/dist/ui/dropdown.d.mts +28 -0
- package/dist/ui/dropdown.d.ts +28 -0
- package/dist/ui/dropdown.js +69 -0
- package/dist/ui/dropdown.mjs +4 -0
- package/dist/ui/index.d.mts +47 -0
- package/dist/ui/index.d.ts +47 -0
- package/dist/ui/index.js +414 -0
- package/dist/ui/index.mjs +33 -0
- package/dist/ui/input-numbers.d.mts +15 -0
- package/dist/ui/input-numbers.d.ts +15 -0
- package/dist/ui/input-numbers.js +14 -0
- package/dist/ui/input-numbers.mjs +5 -0
- package/dist/ui/input.d.mts +22 -0
- package/dist/ui/input.d.ts +22 -0
- package/dist/ui/input.js +17 -0
- package/dist/ui/input.mjs +4 -0
- package/dist/ui/layout.d.mts +12 -0
- package/dist/ui/layout.d.ts +12 -0
- package/dist/ui/layout.js +13 -0
- package/dist/ui/layout.mjs +4 -0
- package/dist/ui/modal.d.mts +28 -0
- package/dist/ui/modal.d.ts +28 -0
- package/dist/ui/modal.js +49 -0
- package/dist/ui/modal.mjs +4 -0
- package/dist/ui/popover.d.mts +10 -0
- package/dist/ui/popover.d.ts +10 -0
- package/dist/ui/popover.js +25 -0
- package/dist/ui/popover.mjs +4 -0
- package/dist/ui/radio-group.d.mts +8 -0
- package/dist/ui/radio-group.d.ts +8 -0
- package/dist/ui/radio-group.js +17 -0
- package/dist/ui/radio-group.mjs +4 -0
- package/dist/ui/select.d.mts +28 -0
- package/dist/ui/select.d.ts +28 -0
- package/dist/ui/select.js +49 -0
- package/dist/ui/select.mjs +4 -0
- package/dist/ui/sheet.d.mts +16 -0
- package/dist/ui/sheet.d.ts +16 -0
- package/dist/ui/sheet.js +39 -0
- package/dist/ui/sheet.mjs +2 -0
- package/dist/ui/slider.d.mts +10 -0
- package/dist/ui/slider.d.ts +10 -0
- package/dist/ui/slider.js +13 -0
- package/dist/ui/slider.mjs +4 -0
- package/dist/ui/switch.d.mts +7 -0
- package/dist/ui/switch.d.ts +7 -0
- package/dist/ui/switch.js +13 -0
- package/dist/ui/switch.mjs +4 -0
- package/dist/ui/tabs.d.mts +16 -0
- package/dist/ui/tabs.d.ts +16 -0
- package/dist/ui/tabs.js +26 -0
- package/dist/ui/tabs.mjs +5 -0
- package/dist/ui/textarea.d.mts +16 -0
- package/dist/ui/textarea.d.ts +16 -0
- package/dist/ui/textarea.js +13 -0
- package/dist/ui/textarea.mjs +4 -0
- package/dist/ui/theme-context.d.mts +17 -0
- package/dist/ui/theme-context.d.ts +17 -0
- package/dist/ui/theme-context.js +17 -0
- package/dist/ui/theme-context.mjs +4 -0
- package/dist/ui/timeline.d.mts +23 -0
- package/dist/ui/timeline.d.ts +23 -0
- package/dist/ui/timeline.js +15 -0
- package/dist/ui/timeline.mjs +6 -0
- package/dist/ui/toast.d.mts +7 -0
- package/dist/ui/toast.d.ts +7 -0
- package/dist/ui/toast.js +14 -0
- package/dist/ui/toast.mjs +1 -0
- package/dist/ui/toggle-group.d.mts +12 -0
- package/dist/ui/toggle-group.d.ts +12 -0
- package/dist/ui/toggle-group.js +18 -0
- package/dist/ui/toggle-group.mjs +5 -0
- package/dist/ui/toggle.d.mts +13 -0
- package/dist/ui/toggle.d.ts +13 -0
- package/dist/ui/toggle.js +17 -0
- package/dist/ui/toggle.mjs +4 -0
- package/dist/ui/tooltip.d.mts +10 -0
- package/dist/ui/tooltip.d.ts +10 -0
- package/dist/ui/tooltip.js +25 -0
- package/dist/ui/tooltip.mjs +4 -0
- package/dist/ui/tree-view-v2.d.mts +25 -0
- package/dist/ui/tree-view-v2.d.ts +25 -0
- package/dist/ui/tree-view-v2.js +14 -0
- package/dist/ui/tree-view-v2.mjs +5 -0
- package/dist/ui/tree-view.d.mts +28 -0
- package/dist/ui/tree-view.d.ts +28 -0
- package/dist/ui/tree-view.js +11 -0
- package/dist/ui/tree-view.mjs +2 -0
- package/dist/ui/version-badge.d.mts +26 -0
- package/dist/ui/version-badge.d.ts +26 -0
- package/dist/ui/version-badge.js +14 -0
- package/dist/ui/version-badge.mjs +5 -0
- package/dist/utils/cn.d.mts +5 -0
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/cn.js +10 -0
- package/dist/utils/cn.mjs +1 -0
- package/dist/utils/index.d.mts +3 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +16 -0
- package/dist/utils/index.mjs +3 -0
- package/dist/utils/use-local-storage.d.mts +3 -0
- package/dist/utils/use-local-storage.d.ts +3 -0
- package/dist/utils/use-local-storage.js +10 -0
- package/dist/utils/use-local-storage.mjs +1 -0
- package/package.json +3 -2
- package/src/ui/version-badge.tsx +5 -2
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { cn } from './chunk-KTNZSZ5Y.mjs';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
function Card({ className, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "card",
|
|
9
|
+
className: cn(
|
|
10
|
+
"flex",
|
|
11
|
+
"flex-col",
|
|
12
|
+
"gap-md",
|
|
13
|
+
"min-w-[300px]",
|
|
14
|
+
"rounded-uk-lg",
|
|
15
|
+
"p-lg",
|
|
16
|
+
"bg-bg-primary",
|
|
17
|
+
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
18
|
+
"liquid:liquid-bg",
|
|
19
|
+
className
|
|
20
|
+
),
|
|
21
|
+
...props
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
function CardHeader({ className, ...props }) {
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "card-header",
|
|
30
|
+
className: cn("flex", "flex-row", "items-center", "justify-between", "gap-lg", className),
|
|
31
|
+
...props
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
function CardTitle({ className, ...props }) {
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
"data-slot": "card-title",
|
|
40
|
+
className: cn(
|
|
41
|
+
"text-text-highlight",
|
|
42
|
+
"text-uk-md",
|
|
43
|
+
"leading-uk-md",
|
|
44
|
+
"font-medium",
|
|
45
|
+
"vertical-align-middle",
|
|
46
|
+
className
|
|
47
|
+
),
|
|
48
|
+
...props
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
function CardDescription({ className, ...props }) {
|
|
53
|
+
return /* @__PURE__ */ jsx(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
"data-slot": "card-description",
|
|
57
|
+
className: cn("text-text-secondary text-uk-sm leading-uk-sm", className),
|
|
58
|
+
...props
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
function CardAction({ className, ...props }) {
|
|
63
|
+
return /* @__PURE__ */ jsx(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
"data-slot": "card-action",
|
|
67
|
+
className: cn(
|
|
68
|
+
"text-text-secondary",
|
|
69
|
+
"text-uk-sm",
|
|
70
|
+
"leading-uk-sm",
|
|
71
|
+
"font-medium",
|
|
72
|
+
"vertical-align-middle",
|
|
73
|
+
className
|
|
74
|
+
),
|
|
75
|
+
...props
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function CardContent({ className, ...props }) {
|
|
80
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "card-content", className: cn("", className), ...props });
|
|
81
|
+
}
|
|
82
|
+
function CardFooter({ className, ...props }) {
|
|
83
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "card-footer", className: cn("flex items-center", className), ...props });
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { cn } from './chunk-KTNZSZ5Y.mjs';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function Popover({ ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
7
|
+
}
|
|
8
|
+
function PopoverTrigger({ ...props }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
10
|
+
}
|
|
11
|
+
function PopoverContent({
|
|
12
|
+
className,
|
|
13
|
+
align = "center",
|
|
14
|
+
sideOffset = 4,
|
|
15
|
+
...props
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
18
|
+
PopoverPrimitive.Content,
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "popover-content",
|
|
21
|
+
align,
|
|
22
|
+
sideOffset,
|
|
23
|
+
className: cn(
|
|
24
|
+
"bg-bg-primary",
|
|
25
|
+
"rounded-uk-lg",
|
|
26
|
+
"p-xl",
|
|
27
|
+
"w-[320px]",
|
|
28
|
+
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
29
|
+
"data-[state=open]:animate-in",
|
|
30
|
+
"data-[state=closed]:animate-out",
|
|
31
|
+
"data-[state=closed]:fade-out-0",
|
|
32
|
+
"data-[state=open]:fade-in-0",
|
|
33
|
+
"data-[state=closed]:zoom-out-95",
|
|
34
|
+
"data-[state=open]:zoom-in-95",
|
|
35
|
+
"data-[side=bottom]:slide-in-from-top-2",
|
|
36
|
+
"data-[side=left]:slide-in-from-right-2",
|
|
37
|
+
"data-[side=right]:slide-in-from-left-2",
|
|
38
|
+
"data-[side=top]:slide-in-from-bottom-2",
|
|
39
|
+
"z-50",
|
|
40
|
+
"origin-(--radix-popover-content-transform-origin)",
|
|
41
|
+
"border-none",
|
|
42
|
+
"outline-hidden",
|
|
43
|
+
"liquid:liquid-bg",
|
|
44
|
+
className
|
|
45
|
+
),
|
|
46
|
+
...props
|
|
47
|
+
}
|
|
48
|
+
) });
|
|
49
|
+
}
|
|
50
|
+
function PopoverAnchor({ ...props }) {
|
|
51
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
|
|
5
|
+
// src/highlight-cursor/cursor-context.tsx
|
|
6
|
+
var defaultDimensions = {
|
|
7
|
+
width: 0,
|
|
8
|
+
height: 0,
|
|
9
|
+
x: 0,
|
|
10
|
+
y: 0
|
|
11
|
+
};
|
|
12
|
+
var defaultContext = {
|
|
13
|
+
mousePosition: { x: 0, y: 0 },
|
|
14
|
+
hoveredElementId: null,
|
|
15
|
+
elementDimensions: defaultDimensions,
|
|
16
|
+
registerHoveredElement: () => {
|
|
17
|
+
},
|
|
18
|
+
unregisterHoveredElement: () => {
|
|
19
|
+
},
|
|
20
|
+
updateElementDimensions: () => {
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var CursorContext = react.createContext(defaultContext);
|
|
24
|
+
var useCursor = () => react.useContext(CursorContext);
|
|
25
|
+
|
|
26
|
+
exports.CursorContext = CursorContext;
|
|
27
|
+
exports.useCursor = useCursor;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { cn } from './chunk-KTNZSZ5Y.mjs';
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var textareaVariants = cva(
|
|
6
|
+
[
|
|
7
|
+
"bg-bg-secondary",
|
|
8
|
+
"disabled:bg-bg-tertiary",
|
|
9
|
+
"disabled:text-text-tertiary",
|
|
10
|
+
"disabled:cursor-not-allowed",
|
|
11
|
+
"outline-transparent",
|
|
12
|
+
"placehoder:text-text-secondary/20",
|
|
13
|
+
"min-h-16",
|
|
14
|
+
"flex",
|
|
15
|
+
"w-full"
|
|
16
|
+
],
|
|
17
|
+
{
|
|
18
|
+
variants: {
|
|
19
|
+
state: {
|
|
20
|
+
default: ["hover:bg-bg-tertiary", "focus:bg-bg-quaternary"],
|
|
21
|
+
error: ["hover:bg-danger-primary/10", "bg-danger-primary/20"]
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
sm: ["text-uk-sm", "leading-uk-sm", "rounded-uk-sm", "px-sm", "py-xs"],
|
|
25
|
+
base: ["text-uk-md", "leading-uk-md", "rounded-uk-md", "px-md", "py-sm"],
|
|
26
|
+
lg: ["text-uk-lg", "leading-uk-lg", "rounded-uk-md", "px-lg", "py-sm"]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
state: "default",
|
|
31
|
+
size: "base"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
function Textarea({ className, state, size, ...props }) {
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
37
|
+
"textarea",
|
|
38
|
+
{
|
|
39
|
+
className: cn(textareaVariants({ className, state, size })),
|
|
40
|
+
"data-slot": "textarea",
|
|
41
|
+
...props
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { Textarea };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { cn } from './chunk-KTNZSZ5Y.mjs';
|
|
2
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
import { XIcon } from 'lucide-react';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function Sheet({ ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
8
|
+
}
|
|
9
|
+
function SheetTrigger({ ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
11
|
+
}
|
|
12
|
+
function SheetClose({ ...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
SheetPrimitive.Close,
|
|
15
|
+
{
|
|
16
|
+
"data-slot": "sheet-close",
|
|
17
|
+
className: cn("focus:ring-0 focus:outline-none"),
|
|
18
|
+
...props
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
function SheetPortal({ ...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
24
|
+
}
|
|
25
|
+
function SheetOverlay({ className, ...props }) {
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
SheetPrimitive.Overlay,
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "sheet-overlay",
|
|
30
|
+
className: cn(
|
|
31
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-bg-primary/50 fixed inset-0 z-50",
|
|
32
|
+
className
|
|
33
|
+
),
|
|
34
|
+
...props
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
function SheetContent({
|
|
39
|
+
className,
|
|
40
|
+
children,
|
|
41
|
+
side = "right",
|
|
42
|
+
...props
|
|
43
|
+
}) {
|
|
44
|
+
return /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
45
|
+
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
46
|
+
/* @__PURE__ */ jsxs(
|
|
47
|
+
SheetPrimitive.Content,
|
|
48
|
+
{
|
|
49
|
+
"data-slot": "sheet-content",
|
|
50
|
+
className: cn(
|
|
51
|
+
"liquid:liquid-bg bg-bg-primary data-[state=open]:animate-in data-[state=closed]:animate-out p-xl fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
52
|
+
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-[340px]",
|
|
53
|
+
side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-[340px]",
|
|
54
|
+
side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto",
|
|
55
|
+
side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto",
|
|
56
|
+
className
|
|
57
|
+
),
|
|
58
|
+
...props,
|
|
59
|
+
children: [
|
|
60
|
+
children,
|
|
61
|
+
/* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "text-icon-primary hover:text-icon-highlight absolute top-4 right-4 disabled:pointer-events-none", children: [
|
|
62
|
+
/* @__PURE__ */ jsx(XIcon, { className: "size-4" }),
|
|
63
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
64
|
+
] })
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
] });
|
|
69
|
+
}
|
|
70
|
+
function SheetHeader({ className, ...props }) {
|
|
71
|
+
return /* @__PURE__ */ jsx(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
"data-slot": "sheet-header",
|
|
75
|
+
className: cn("gap-md pb-xl flex flex-col", className),
|
|
76
|
+
...props
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function SheetFooter({ className, ...props }) {
|
|
81
|
+
return /* @__PURE__ */ jsx(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "sheet-footer",
|
|
85
|
+
className: cn("gap-lg pt-xl mt-auto flex flex-col", className),
|
|
86
|
+
...props
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
function SheetTitle({ className, ...props }) {
|
|
91
|
+
return /* @__PURE__ */ jsx(
|
|
92
|
+
SheetPrimitive.Title,
|
|
93
|
+
{
|
|
94
|
+
"data-slot": "sheet-title",
|
|
95
|
+
className: cn("text-text-highlight text-uk-xl leading-uk-xl font-medium", className),
|
|
96
|
+
...props
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
function SheetDescription({
|
|
101
|
+
className,
|
|
102
|
+
...props
|
|
103
|
+
}) {
|
|
104
|
+
return /* @__PURE__ */ jsx(
|
|
105
|
+
SheetPrimitive.Description,
|
|
106
|
+
{
|
|
107
|
+
"data-slot": "sheet-description",
|
|
108
|
+
className: cn("text-text-secondary text-uk-md leading-uk-md", className),
|
|
109
|
+
...props
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXXWQ4RVP_js = require('./chunk-XXWQ4RVP.js');
|
|
4
|
+
var DialogPrimitive = require('@radix-ui/react-dialog');
|
|
5
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
+
var lucideReact = require('lucide-react');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
|
|
28
|
+
|
|
29
|
+
function Modal({ ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { "data-slot": "modal", ...props });
|
|
31
|
+
}
|
|
32
|
+
function ModalTrigger({ ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Trigger, { "data-slot": "modal-trigger", ...props });
|
|
34
|
+
}
|
|
35
|
+
function ModalPortal({ ...props }) {
|
|
36
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { "data-slot": "modal-portal", ...props });
|
|
37
|
+
}
|
|
38
|
+
function ModalClose({ ...props }) {
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { "data-slot": "modal-close", ...props });
|
|
40
|
+
}
|
|
41
|
+
var modalOverlayVariants = classVarianceAuthority.cva([
|
|
42
|
+
"fixed",
|
|
43
|
+
"inset-0",
|
|
44
|
+
"z-100",
|
|
45
|
+
"bg-bg-mask",
|
|
46
|
+
"transition-all",
|
|
47
|
+
"duration-200"
|
|
48
|
+
]);
|
|
49
|
+
function ModalOverlay({ className, ...props }) {
|
|
50
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
51
|
+
DialogPrimitive__namespace.Overlay,
|
|
52
|
+
{
|
|
53
|
+
"data-slot": "modal-overlay",
|
|
54
|
+
className: chunkXXWQ4RVP_js.cn(modalOverlayVariants(), className),
|
|
55
|
+
...props
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
var modalContentVariants = classVarianceAuthority.cva([
|
|
60
|
+
"pb-xl",
|
|
61
|
+
"px-xl",
|
|
62
|
+
"bg-bg-primary",
|
|
63
|
+
"rounded-uk-xl",
|
|
64
|
+
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
65
|
+
"min-w-[280px]",
|
|
66
|
+
"duration-200",
|
|
67
|
+
"transition-all",
|
|
68
|
+
"fixed",
|
|
69
|
+
"translate-x-[-50%]",
|
|
70
|
+
"translate-y-[-50%]",
|
|
71
|
+
"z-101",
|
|
72
|
+
"left-1/2",
|
|
73
|
+
"top-1/2",
|
|
74
|
+
"data-[state=open]:animate-in",
|
|
75
|
+
"data-[state=closed]:animate-out",
|
|
76
|
+
"data-[state=closed]:fade-out-0",
|
|
77
|
+
"data-[state=open]:fade-in-0",
|
|
78
|
+
"data-[state=closed]:zoom-out-95",
|
|
79
|
+
"data-[state=open]:zoom-in-95",
|
|
80
|
+
"liquid:liquid-bg"
|
|
81
|
+
]);
|
|
82
|
+
function ModalContent({
|
|
83
|
+
className,
|
|
84
|
+
children,
|
|
85
|
+
showCloseButton = true,
|
|
86
|
+
...props
|
|
87
|
+
}) {
|
|
88
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ModalPortal, { children: [
|
|
89
|
+
/* @__PURE__ */ jsxRuntime.jsx(ModalOverlay, {}),
|
|
90
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
91
|
+
DialogPrimitive__namespace.Content,
|
|
92
|
+
{
|
|
93
|
+
"data-slot": "modal-content",
|
|
94
|
+
className: chunkXXWQ4RVP_js.cn(modalContentVariants(), className),
|
|
95
|
+
...props,
|
|
96
|
+
children: [
|
|
97
|
+
children,
|
|
98
|
+
showCloseButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
99
|
+
DialogPrimitive__namespace.Close,
|
|
100
|
+
{
|
|
101
|
+
"data-slot": "modal-close",
|
|
102
|
+
className: chunkXXWQ4RVP_js.cn(
|
|
103
|
+
"absolute",
|
|
104
|
+
"right-[16px]",
|
|
105
|
+
"top-[16px]",
|
|
106
|
+
"w-[16px]",
|
|
107
|
+
"h-[16px]",
|
|
108
|
+
"rounded-uk-sm",
|
|
109
|
+
"cursor-pointer",
|
|
110
|
+
"hover:text-icon-highlight",
|
|
111
|
+
"text-icon-primary",
|
|
112
|
+
"flex",
|
|
113
|
+
"items-center",
|
|
114
|
+
"justify-center"
|
|
115
|
+
),
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, {}),
|
|
118
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
] });
|
|
126
|
+
}
|
|
127
|
+
function ModalHeader({ className, ...props }) {
|
|
128
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "modal-header", className: chunkXXWQ4RVP_js.cn("flex flex-col", className), ...props });
|
|
129
|
+
}
|
|
130
|
+
function ModalTitle({ className, ...props }) {
|
|
131
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
132
|
+
DialogPrimitive__namespace.Title,
|
|
133
|
+
{
|
|
134
|
+
"data-slot": "modal-title",
|
|
135
|
+
className: chunkXXWQ4RVP_js.cn(
|
|
136
|
+
"text-text-highlight",
|
|
137
|
+
"text-uk-lg",
|
|
138
|
+
"leading-uk-lg",
|
|
139
|
+
"font-medium",
|
|
140
|
+
"py-lg",
|
|
141
|
+
"px-xl",
|
|
142
|
+
"text-center",
|
|
143
|
+
className
|
|
144
|
+
),
|
|
145
|
+
...props
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
function ModalDescription({ className, ...props }) {
|
|
150
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
151
|
+
DialogPrimitive__namespace.Description,
|
|
152
|
+
{
|
|
153
|
+
"data-slot": "modal-description",
|
|
154
|
+
className: chunkXXWQ4RVP_js.cn("text-text-primary", "text-uk-md", "leading-uk-md", "text-start", className),
|
|
155
|
+
...props
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
function ModalFooter({ className, ...props }) {
|
|
160
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
161
|
+
"div",
|
|
162
|
+
{
|
|
163
|
+
"data-slot": "modal-footer",
|
|
164
|
+
className: chunkXXWQ4RVP_js.cn("w-full", "flex", "justify-end", "gap-xs", className),
|
|
165
|
+
...props
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
exports.Modal = Modal;
|
|
171
|
+
exports.ModalClose = ModalClose;
|
|
172
|
+
exports.ModalContent = ModalContent;
|
|
173
|
+
exports.ModalDescription = ModalDescription;
|
|
174
|
+
exports.ModalFooter = ModalFooter;
|
|
175
|
+
exports.ModalHeader = ModalHeader;
|
|
176
|
+
exports.ModalOverlay = ModalOverlay;
|
|
177
|
+
exports.ModalPortal = ModalPortal;
|
|
178
|
+
exports.ModalTitle = ModalTitle;
|
|
179
|
+
exports.ModalTrigger = ModalTrigger;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
import { Toaster as Toaster$1 } from 'sonner';
|
|
3
|
+
export { toast } from 'sonner';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// src/ui/toast.tsx
|
|
7
|
+
var Toaster = ({ ...props }) => {
|
|
8
|
+
const [isClient, setIsClient] = useState(false);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
setIsClient(true);
|
|
11
|
+
}, []);
|
|
12
|
+
if (!isClient) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
Toaster$1,
|
|
17
|
+
{
|
|
18
|
+
toastOptions: {
|
|
19
|
+
className: "vk-toast liquid:liquid-bg",
|
|
20
|
+
descriptionClassName: "vk-toast-description"
|
|
21
|
+
},
|
|
22
|
+
...props
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { Toaster };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXXWQ4RVP_js = require('./chunk-XXWQ4RVP.js');
|
|
4
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
5
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
var badgeVariants = classVarianceAuthority.cva(
|
|
9
|
+
[
|
|
10
|
+
"inline-flex",
|
|
11
|
+
"items-center",
|
|
12
|
+
"justify-center",
|
|
13
|
+
"rounded-uk-xs",
|
|
14
|
+
"px-md",
|
|
15
|
+
"py-xxs",
|
|
16
|
+
"align-middle",
|
|
17
|
+
"text-uk-sm",
|
|
18
|
+
"leading-uk-sm",
|
|
19
|
+
"w-fit",
|
|
20
|
+
"whitespace-nowrap",
|
|
21
|
+
"shrink-0",
|
|
22
|
+
"[&>svg]:size-3",
|
|
23
|
+
"[&>svg]:pointer-events-none",
|
|
24
|
+
"transition-[color,box-shadow]",
|
|
25
|
+
"overflow-hidden",
|
|
26
|
+
"text-text-withbg"
|
|
27
|
+
],
|
|
28
|
+
{
|
|
29
|
+
variants: {
|
|
30
|
+
variant: {
|
|
31
|
+
default: "bg-brand-primary text-text-primary",
|
|
32
|
+
secondary: "bg-bg-secondary",
|
|
33
|
+
destructive: "bg-danger-primary",
|
|
34
|
+
success: "bg-accent-success",
|
|
35
|
+
warning: "bg-accent-warning",
|
|
36
|
+
accent: "bg-accent-primary text-text-primary"
|
|
37
|
+
},
|
|
38
|
+
type: {
|
|
39
|
+
default: "",
|
|
40
|
+
circle: "size-[18px] !rounded-full",
|
|
41
|
+
dot: "size-[6px] rounded-full !px-0 !py-0 text-transparent"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
variant: "default",
|
|
46
|
+
type: "default"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
function Badge({
|
|
51
|
+
className,
|
|
52
|
+
variant,
|
|
53
|
+
type,
|
|
54
|
+
asChild = false,
|
|
55
|
+
...props
|
|
56
|
+
}) {
|
|
57
|
+
const Comp = asChild ? reactSlot.Slot : "span";
|
|
58
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
59
|
+
Comp,
|
|
60
|
+
{
|
|
61
|
+
"data-slot": "badge",
|
|
62
|
+
className: chunkXXWQ4RVP_js.cn(badgeVariants({ variant, type }), className),
|
|
63
|
+
...props
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
exports.Badge = Badge;
|
|
69
|
+
exports.badgeVariants = badgeVariants;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
|
|
5
|
+
// src/utils/use-local-storage.ts
|
|
6
|
+
function useLocalStorage(key, initialValue) {
|
|
7
|
+
const [storedValue, setStoredValue] = react.useState(() => {
|
|
8
|
+
if (typeof window === "undefined") {
|
|
9
|
+
return initialValue;
|
|
10
|
+
}
|
|
11
|
+
try {
|
|
12
|
+
const item = window.localStorage.getItem(key);
|
|
13
|
+
if (item === null) return initialValue;
|
|
14
|
+
if (typeof initialValue === "string") {
|
|
15
|
+
return item;
|
|
16
|
+
} else if (typeof initialValue === "number") {
|
|
17
|
+
return parseFloat(item) || initialValue;
|
|
18
|
+
} else if (typeof initialValue === "boolean") {
|
|
19
|
+
return item === "true";
|
|
20
|
+
} else {
|
|
21
|
+
return JSON.parse(item);
|
|
22
|
+
}
|
|
23
|
+
} catch (error) {
|
|
24
|
+
console.warn(`Error reading localStorage key "${key}":`, error);
|
|
25
|
+
return initialValue;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const setValue = react.useCallback(
|
|
29
|
+
(value) => {
|
|
30
|
+
try {
|
|
31
|
+
const valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
32
|
+
setStoredValue(valueToStore);
|
|
33
|
+
if (typeof window !== "undefined") {
|
|
34
|
+
let stringValue;
|
|
35
|
+
if (typeof valueToStore === "string") {
|
|
36
|
+
stringValue = valueToStore;
|
|
37
|
+
} else if (typeof valueToStore === "number" || typeof valueToStore === "boolean") {
|
|
38
|
+
stringValue = valueToStore.toString();
|
|
39
|
+
} else {
|
|
40
|
+
stringValue = JSON.stringify(valueToStore);
|
|
41
|
+
}
|
|
42
|
+
window.localStorage.setItem(key, stringValue);
|
|
43
|
+
}
|
|
44
|
+
} catch (error) {
|
|
45
|
+
console.warn(`Error setting localStorage key "${key}":`, error);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
[key, storedValue]
|
|
49
|
+
);
|
|
50
|
+
return [storedValue, setValue];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
exports.useLocalStorage = useLocalStorage;
|