@vuer-ai/vuer-uikit 0.0.2 → 0.0.4
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/README.md +80 -0
- package/dist/chunk-25GQKTNF.mjs +105 -0
- package/dist/chunk-277NQUJD.js +99 -0
- package/dist/chunk-3FR3WKI4.mjs +24 -0
- package/dist/chunk-3Q75Z2CT.mjs +76 -0
- package/dist/chunk-5BIQ3IN7.js +93 -0
- package/dist/chunk-5GPQ7U5B.mjs +50 -0
- package/dist/chunk-66JQXJEV.mjs +272 -0
- package/dist/chunk-6ILSFDR5.mjs +161 -0
- package/dist/chunk-6L4KPPOD.mjs +90 -0
- package/dist/chunk-75QDQ67T.js +56 -0
- package/dist/chunk-7A7VNE3J.mjs +31 -0
- package/dist/chunk-7SXCVFSA.mjs +200 -0
- package/dist/chunk-7V4ELMOH.js +52 -0
- package/dist/chunk-7WUQTWQX.js +303 -0
- package/dist/chunk-A2Z57NAA.js +202 -0
- package/dist/chunk-ATDHGFVI.mjs +82 -0
- package/dist/chunk-ATEHWT2R.mjs +78 -0
- package/dist/chunk-B5EMQBVL.js +93 -0
- package/dist/chunk-CLTLT5XW.js +27 -0
- package/dist/chunk-COFRS37Z.mjs +337 -0
- package/dist/chunk-CP7QYV4N.mjs +110 -0
- package/dist/chunk-CZSRIDXN.mjs +165 -0
- package/dist/chunk-D4C5V4EN.mjs +53 -0
- package/dist/chunk-DWIK2CUV.mjs +45 -0
- package/dist/chunk-ECWCQWV5.js +148 -0
- package/dist/chunk-ENZI5WM7.js +108 -0
- package/dist/chunk-FVT46HEE.js +21 -0
- package/dist/chunk-FXIL4NQZ.js +58 -0
- package/dist/chunk-FYS6YECN.js +33 -0
- package/dist/chunk-G7XNQVPB.js +187 -0
- package/dist/chunk-GSXXTAQ3.js +373 -0
- package/dist/chunk-HUQZOPYD.js +2 -0
- package/dist/chunk-HW6SLBO3.mjs +9 -0
- package/dist/chunk-IPKCIMU4.mjs +156 -0
- package/dist/chunk-J7PTSP4Q.mjs +19 -0
- package/dist/chunk-KJ42IGH6.js +2 -0
- package/dist/chunk-KO7BQ6RR.js +83 -0
- package/dist/chunk-KQHNQQUZ.js +103 -0
- package/dist/chunk-KVFK3YC7.js +187 -0
- package/dist/chunk-KYKEJFJT.js +110 -0
- package/dist/chunk-LD7Y34QT.js +79 -0
- package/dist/chunk-LVSI4HYF.mjs +409 -0
- package/dist/chunk-M3KBBKQR.mjs +15 -0
- package/dist/chunk-MASRZTZC.mjs +34 -0
- package/dist/chunk-NN7R5DNL.mjs +119 -0
- package/dist/chunk-OE56M4MX.js +93 -0
- package/dist/chunk-OTDY2E2A.js +163 -0
- package/dist/chunk-PKGNHHWG.mjs +60 -0
- package/dist/chunk-Q3APPCB2.mjs +91 -0
- package/dist/chunk-QOUX33X5.mjs +111 -0
- package/dist/chunk-QS7WS6DD.mjs +1 -0
- package/dist/chunk-QZASHJNJ.js +24 -0
- package/dist/chunk-R6XNT4PN.js +431 -0
- package/dist/chunk-RACVRWME.js +136 -0
- package/dist/chunk-S2F2GRDB.mjs +1 -0
- package/dist/chunk-SI56IQWH.js +102 -0
- package/dist/chunk-ST4P6AN6.js +2 -0
- package/dist/chunk-TOZYLDAL.mjs +72 -0
- package/dist/chunk-UFR656UY.mjs +87 -0
- package/dist/chunk-UWO6RBCE.js +11 -0
- package/dist/chunk-VGCVIHBR.mjs +1 -0
- package/dist/chunk-WOG6UIG5.mjs +71 -0
- package/dist/chunk-X2QENXCS.mjs +54 -0
- package/dist/chunk-XACRGXGF.js +75 -0
- package/dist/chunk-XPNUQSKQ.mjs +94 -0
- package/dist/chunk-YQORMF34.js +110 -0
- package/dist/chunk-Z37VNICQ.js +67 -0
- package/dist/chunk-ZJXBC33M.js +112 -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 +36 -0
- package/dist/highlight-cursor/enhanced-components.mjs +11 -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 +50 -0
- package/dist/highlight-cursor/index.mjs +13 -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 +314 -0
- package/dist/index.d.mts +51 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +425 -6744
- package/dist/index.mjs +34 -0
- package/dist/styles/theme.css +191 -0
- package/dist/styles/theme.d.mts +2 -0
- package/dist/styles/theme.d.ts +2 -0
- package/dist/styles/toast.css +58 -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 +23 -0
- package/dist/ui/avatar.mjs +2 -0
- package/dist/ui/badge.d.mts +14 -0
- package/dist/ui/badge.d.ts +14 -0
- package/dist/ui/badge.js +16 -0
- package/dist/ui/badge.mjs +3 -0
- package/dist/ui/button.d.mts +16 -0
- package/dist/ui/button.d.ts +16 -0
- package/dist/ui/button.js +12 -0
- package/dist/ui/button.mjs +3 -0
- package/dist/ui/card.d.mts +12 -0
- package/dist/ui/card.d.ts +12 -0
- package/dist/ui/card.js +36 -0
- package/dist/ui/card.mjs +3 -0
- package/dist/ui/checkbox.d.mts +11 -0
- package/dist/ui/checkbox.d.ts +11 -0
- package/dist/ui/checkbox.js +12 -0
- package/dist/ui/checkbox.mjs +3 -0
- package/dist/ui/collapsible.d.mts +9 -0
- package/dist/ui/collapsible.d.ts +9 -0
- package/dist/ui/collapsible.js +20 -0
- package/dist/ui/collapsible.mjs +3 -0
- package/dist/ui/dropdown.d.mts +28 -0
- package/dist/ui/dropdown.d.ts +28 -0
- package/dist/ui/dropdown.js +68 -0
- package/dist/ui/dropdown.mjs +3 -0
- package/dist/ui/index.d.mts +44 -0
- package/dist/ui/index.d.ts +44 -0
- package/dist/ui/index.js +398 -0
- package/dist/ui/index.mjs +29 -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 +13 -0
- package/dist/ui/input-numbers.mjs +4 -0
- package/dist/ui/input.d.mts +22 -0
- package/dist/ui/input.d.ts +22 -0
- package/dist/ui/input.js +16 -0
- package/dist/ui/input.mjs +3 -0
- package/dist/ui/layout.d.mts +12 -0
- package/dist/ui/layout.d.ts +12 -0
- package/dist/ui/layout.js +12 -0
- package/dist/ui/layout.mjs +3 -0
- package/dist/ui/modal.d.mts +28 -0
- package/dist/ui/modal.d.ts +28 -0
- package/dist/ui/modal.js +48 -0
- package/dist/ui/modal.mjs +3 -0
- package/dist/ui/popover.d.mts +10 -0
- package/dist/ui/popover.d.ts +10 -0
- package/dist/ui/popover.js +23 -0
- package/dist/ui/popover.mjs +2 -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 +16 -0
- package/dist/ui/radio-group.mjs +3 -0
- package/dist/ui/select.d.mts +28 -0
- package/dist/{types/ui → ui}/select.d.ts +18 -14
- package/dist/ui/select.js +48 -0
- package/dist/ui/select.mjs +3 -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 +12 -0
- package/dist/ui/slider.mjs +3 -0
- package/dist/ui/switch.d.mts +7 -0
- package/dist/ui/switch.d.ts +7 -0
- package/dist/ui/switch.js +12 -0
- package/dist/ui/switch.mjs +3 -0
- package/dist/ui/tabs.d.mts +16 -0
- package/dist/ui/tabs.d.ts +16 -0
- package/dist/ui/tabs.js +25 -0
- package/dist/ui/tabs.mjs +4 -0
- package/dist/ui/textarea.d.mts +16 -0
- package/dist/ui/textarea.d.ts +16 -0
- package/dist/ui/textarea.js +12 -0
- package/dist/ui/textarea.mjs +3 -0
- package/dist/ui/theme-context.d.mts +17 -0
- package/dist/{types/ui → ui}/theme-context.d.ts +5 -3
- package/dist/ui/theme-context.js +14 -0
- package/dist/ui/theme-context.mjs +1 -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 +17 -0
- package/dist/ui/toggle-group.mjs +4 -0
- package/dist/ui/toggle.d.mts +13 -0
- package/dist/ui/toggle.d.ts +13 -0
- package/dist/ui/toggle.js +16 -0
- package/dist/ui/toggle.mjs +3 -0
- package/dist/ui/tooltip.d.mts +10 -0
- package/dist/ui/tooltip.d.ts +10 -0
- package/dist/ui/tooltip.js +23 -0
- package/dist/ui/tooltip.mjs +2 -0
- package/dist/ui/tree-view.d.mts +27 -0
- package/dist/ui/tree-view.d.ts +27 -0
- package/dist/ui/tree-view.js +11 -0
- package/dist/ui/tree-view.mjs +2 -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 +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +11 -0
- package/dist/utils/index.mjs +2 -0
- package/package.json +49 -27
- package/dist/index.umd.js +0 -74
- package/dist/types/index.d.ts +0 -4
- package/dist/types/lib/utils.d.ts +0 -2
- package/dist/types/ui/button.d.ts +0 -13
- package/dist/types/ui/input.d.ts +0 -19
- package/dist/vuer-uikit.css +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { cn } from './chunk-HW6SLBO3.mjs';
|
|
2
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function Switch({ className, ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
SwitchPrimitive.Root,
|
|
8
|
+
{
|
|
9
|
+
"data-slot": "switch",
|
|
10
|
+
className: cn(
|
|
11
|
+
"group",
|
|
12
|
+
"w-[32px]",
|
|
13
|
+
"h-[16px]",
|
|
14
|
+
"rounded-[24px]",
|
|
15
|
+
"bg-bg-tertiary",
|
|
16
|
+
"data-[state=checked]:bg-brand-primary",
|
|
17
|
+
"disabled:bg-bg-secondary",
|
|
18
|
+
"disabled:cursor-not-allowed",
|
|
19
|
+
"disabled:data-[state=checked]:bg-bg-secondary",
|
|
20
|
+
"disabled:data-[state=unchecked]:bg-bg-secondary",
|
|
21
|
+
className
|
|
22
|
+
),
|
|
23
|
+
...props,
|
|
24
|
+
children: /* @__PURE__ */ jsx(
|
|
25
|
+
SwitchPrimitive.Thumb,
|
|
26
|
+
{
|
|
27
|
+
"data-slot": "switch-thumb",
|
|
28
|
+
className: cn(
|
|
29
|
+
"block",
|
|
30
|
+
"size-[12px]",
|
|
31
|
+
"rounded-full",
|
|
32
|
+
"bg-icon-withbg",
|
|
33
|
+
"group-disabled:bg-bg-primary",
|
|
34
|
+
"transition-transform",
|
|
35
|
+
"duration-200",
|
|
36
|
+
"translate-x-[2px]",
|
|
37
|
+
"data-[state=checked]:translate-x-[18px]"
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { Switch };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
|
|
4
|
+
var SheetPrimitive = require('@radix-ui/react-dialog');
|
|
5
|
+
var lucideReact = require('lucide-react');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var SheetPrimitive__namespace = /*#__PURE__*/_interopNamespace(SheetPrimitive);
|
|
27
|
+
|
|
28
|
+
function Sheet({ ...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Root, { "data-slot": "sheet", ...props });
|
|
30
|
+
}
|
|
31
|
+
function SheetTrigger({
|
|
32
|
+
...props
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
35
|
+
}
|
|
36
|
+
function SheetClose({
|
|
37
|
+
...props
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Close, { "data-slot": "sheet-close", className: chunkUWO6RBCE_js.cn("focus:outline-none focus:ring-0"), ...props });
|
|
40
|
+
}
|
|
41
|
+
function SheetPortal({
|
|
42
|
+
...props
|
|
43
|
+
}) {
|
|
44
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Portal, { "data-slot": "sheet-portal", ...props });
|
|
45
|
+
}
|
|
46
|
+
function SheetOverlay({
|
|
47
|
+
className,
|
|
48
|
+
...props
|
|
49
|
+
}) {
|
|
50
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
51
|
+
SheetPrimitive__namespace.Overlay,
|
|
52
|
+
{
|
|
53
|
+
"data-slot": "sheet-overlay",
|
|
54
|
+
className: chunkUWO6RBCE_js.cn(
|
|
55
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-bg-primary/50",
|
|
56
|
+
className
|
|
57
|
+
),
|
|
58
|
+
...props
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
function SheetContent({
|
|
63
|
+
className,
|
|
64
|
+
children,
|
|
65
|
+
side = "right",
|
|
66
|
+
...props
|
|
67
|
+
}) {
|
|
68
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
69
|
+
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
70
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
71
|
+
SheetPrimitive__namespace.Content,
|
|
72
|
+
{
|
|
73
|
+
"data-slot": "sheet-content",
|
|
74
|
+
className: chunkUWO6RBCE_js.cn(
|
|
75
|
+
"liquid:liquid-bg bg-bg-primary data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 p-xl",
|
|
76
|
+
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]",
|
|
77
|
+
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]",
|
|
78
|
+
side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto",
|
|
79
|
+
side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto",
|
|
80
|
+
className
|
|
81
|
+
),
|
|
82
|
+
...props,
|
|
83
|
+
children: [
|
|
84
|
+
children,
|
|
85
|
+
/* @__PURE__ */ jsxRuntime.jsxs(SheetPrimitive__namespace.Close, { className: "text-icon-primary hover:text-icon-highlight absolute top-4 right-4 disabled:pointer-events-none", children: [
|
|
86
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { className: "size-4" }),
|
|
87
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
88
|
+
] })
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
] });
|
|
93
|
+
}
|
|
94
|
+
function SheetHeader({ className, ...props }) {
|
|
95
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "sheet-header",
|
|
99
|
+
className: chunkUWO6RBCE_js.cn("flex flex-col gap-md pb-xl", className),
|
|
100
|
+
...props
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function SheetFooter({ className, ...props }) {
|
|
105
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
"data-slot": "sheet-footer",
|
|
109
|
+
className: chunkUWO6RBCE_js.cn("mt-auto flex flex-col gap-lg pt-xl", className),
|
|
110
|
+
...props
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
function SheetTitle({
|
|
115
|
+
className,
|
|
116
|
+
...props
|
|
117
|
+
}) {
|
|
118
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
119
|
+
SheetPrimitive__namespace.Title,
|
|
120
|
+
{
|
|
121
|
+
"data-slot": "sheet-title",
|
|
122
|
+
className: chunkUWO6RBCE_js.cn("text-[14px] text-text-highlight font-medium", className),
|
|
123
|
+
...props
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
function SheetDescription({
|
|
128
|
+
className,
|
|
129
|
+
...props
|
|
130
|
+
}) {
|
|
131
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
132
|
+
SheetPrimitive__namespace.Description,
|
|
133
|
+
{
|
|
134
|
+
"data-slot": "sheet-description",
|
|
135
|
+
className: chunkUWO6RBCE_js.cn("text-[12px] text-text-secondary", className),
|
|
136
|
+
...props
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
exports.Sheet = Sheet;
|
|
142
|
+
exports.SheetClose = SheetClose;
|
|
143
|
+
exports.SheetContent = SheetContent;
|
|
144
|
+
exports.SheetDescription = SheetDescription;
|
|
145
|
+
exports.SheetFooter = SheetFooter;
|
|
146
|
+
exports.SheetHeader = SheetHeader;
|
|
147
|
+
exports.SheetTitle = SheetTitle;
|
|
148
|
+
exports.SheetTrigger = SheetTrigger;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
|
|
4
|
+
var reactComposeRefs = require('@radix-ui/react-compose-refs');
|
|
5
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
+
var react = require('react');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
|
|
9
|
+
var inputRootVariants = classVarianceAuthority.cva(
|
|
10
|
+
[
|
|
11
|
+
"px-1.5",
|
|
12
|
+
"flex",
|
|
13
|
+
"gap-md",
|
|
14
|
+
"items-center",
|
|
15
|
+
"rounded-uk-sm",
|
|
16
|
+
"overflow-hidden",
|
|
17
|
+
"bg-bg-secondary"
|
|
18
|
+
],
|
|
19
|
+
{
|
|
20
|
+
variants: {
|
|
21
|
+
state: {
|
|
22
|
+
default: ["hover:bg-bg-tertiary", "has-[input:focus]:bg-bg-quaternary"],
|
|
23
|
+
disabled: ["disabled:cursor-not-allowed", "bg-bg-tertiary", "text-text-tertiary"],
|
|
24
|
+
error: ["hover:bg-danger-primary/10", "bg-danger-primary/20"]
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
default: ["h-9 ", "text-xs"],
|
|
28
|
+
sm: ["h-6 ", "text-sm ", "[&_.input-slot>svg:not([class*='size-'])]:size-xl"]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
state: "default",
|
|
33
|
+
size: "default"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
var InputRoot = react.forwardRef(function InputRoot2({ style, className, side, children, disabled, state, size, name, inputClassName, ...props }, ref) {
|
|
38
|
+
const inputRef = react.useRef(null);
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
style,
|
|
43
|
+
"data-input": true,
|
|
44
|
+
className: chunkUWO6RBCE_js.cn(inputRootVariants({ size, state: disabled ? "disabled" : state }), className),
|
|
45
|
+
onClick: (event) => {
|
|
46
|
+
const target = event.target;
|
|
47
|
+
if (target.closest("input, button, a")) return;
|
|
48
|
+
const input = inputRef.current;
|
|
49
|
+
if (!input) return;
|
|
50
|
+
const isRightSlot = target.closest(`
|
|
51
|
+
.input-slot[data-side='right'],
|
|
52
|
+
.input-slot:not([data-side='right']) ~ .input-slot:not([data-side='left'])
|
|
53
|
+
`);
|
|
54
|
+
const cursorPosition = isRightSlot ? input.value.length : 0;
|
|
55
|
+
requestAnimationFrame(() => {
|
|
56
|
+
try {
|
|
57
|
+
input.setSelectionRange(cursorPosition, cursorPosition);
|
|
58
|
+
} catch {
|
|
59
|
+
}
|
|
60
|
+
input.focus();
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
65
|
+
"input",
|
|
66
|
+
{
|
|
67
|
+
spellCheck: "false",
|
|
68
|
+
...props,
|
|
69
|
+
"data-side": side,
|
|
70
|
+
disabled,
|
|
71
|
+
name: name ?? "text",
|
|
72
|
+
ref: reactComposeRefs.composeRefs(inputRef, ref),
|
|
73
|
+
className: chunkUWO6RBCE_js.cn(
|
|
74
|
+
["data-[side=right]:text-right", "outline-none", "w-full", "h-full"],
|
|
75
|
+
inputClassName
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
children
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
});
|
|
84
|
+
var InputSlot = react.forwardRef(function({ className, children, side = "left", ...props }, ref) {
|
|
85
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
"data-side": side,
|
|
89
|
+
...props,
|
|
90
|
+
ref,
|
|
91
|
+
className: chunkUWO6RBCE_js.cn(
|
|
92
|
+
[
|
|
93
|
+
"input-slot",
|
|
94
|
+
"cursor-text",
|
|
95
|
+
"shrink-0",
|
|
96
|
+
"order-[0]",
|
|
97
|
+
"data-[side=left]:-order-1",
|
|
98
|
+
"text-text-tertiary"
|
|
99
|
+
],
|
|
100
|
+
className
|
|
101
|
+
),
|
|
102
|
+
children
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
exports.InputRoot = InputRoot;
|
|
108
|
+
exports.InputSlot = InputSlot;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkRACVRWME_js = require('./chunk-RACVRWME.js');
|
|
4
|
+
var chunk7V4ELMOH_js = require('./chunk-7V4ELMOH.js');
|
|
5
|
+
var chunk7WUQTWQX_js = require('./chunk-7WUQTWQX.js');
|
|
6
|
+
var chunk5BIQ3IN7_js = require('./chunk-5BIQ3IN7.js');
|
|
7
|
+
var chunkENZI5WM7_js = require('./chunk-ENZI5WM7.js');
|
|
8
|
+
var chunkZJXBC33M_js = require('./chunk-ZJXBC33M.js');
|
|
9
|
+
|
|
10
|
+
// src/highlight-cursor/enhanced-components.tsx
|
|
11
|
+
var CursorButton = chunkZJXBC33M_js.withCursor(chunk5BIQ3IN7_js.Button);
|
|
12
|
+
var CursorTabs = chunkZJXBC33M_js.withCursor(chunkRACVRWME_js.Tabs);
|
|
13
|
+
var CursorInputRoot = chunkZJXBC33M_js.withCursor(chunkENZI5WM7_js.InputRoot);
|
|
14
|
+
var CursorSelectTrigger = chunkZJXBC33M_js.withCursor(chunk7WUQTWQX_js.SelectTrigger);
|
|
15
|
+
var CursorTextarea = chunkZJXBC33M_js.withCursor(chunk7V4ELMOH_js.Textarea);
|
|
16
|
+
|
|
17
|
+
exports.CursorButton = CursorButton;
|
|
18
|
+
exports.CursorInputRoot = CursorInputRoot;
|
|
19
|
+
exports.CursorSelectTrigger = CursorSelectTrigger;
|
|
20
|
+
exports.CursorTabs = CursorTabs;
|
|
21
|
+
exports.CursorTextarea = CursorTextarea;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
|
|
4
|
+
var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var CollapsiblePrimitive__namespace = /*#__PURE__*/_interopNamespace(CollapsiblePrimitive);
|
|
26
|
+
|
|
27
|
+
function Collapsible({ ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollapsiblePrimitive__namespace.Root, { "data-slot": "collapsible", ...props });
|
|
29
|
+
}
|
|
30
|
+
function CollapsibleTrigger2({
|
|
31
|
+
...props
|
|
32
|
+
}) {
|
|
33
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollapsiblePrimitive__namespace.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...props });
|
|
34
|
+
}
|
|
35
|
+
function CollapsibleContent2({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
+
CollapsiblePrimitive__namespace.CollapsibleContent,
|
|
41
|
+
{
|
|
42
|
+
"data-slot": "collapsible-content",
|
|
43
|
+
className: chunkUWO6RBCE_js.cn(
|
|
44
|
+
[
|
|
45
|
+
"overflow-hidden",
|
|
46
|
+
"data-[state=open]:animate-collapsible-down",
|
|
47
|
+
"data-[state=closed]:animate-collapsible-up"
|
|
48
|
+
],
|
|
49
|
+
className
|
|
50
|
+
),
|
|
51
|
+
...props
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
exports.Collapsible = Collapsible;
|
|
57
|
+
exports.CollapsibleContent = CollapsibleContent2;
|
|
58
|
+
exports.CollapsibleTrigger = CollapsibleTrigger2;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
|
|
4
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
function Layout({
|
|
8
|
+
asChild,
|
|
9
|
+
className,
|
|
10
|
+
children,
|
|
11
|
+
align = "start",
|
|
12
|
+
orientation = "horizontal"
|
|
13
|
+
}) {
|
|
14
|
+
const Com = asChild ? reactSlot.Slot : "div";
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16
|
+
Com,
|
|
17
|
+
{
|
|
18
|
+
className: chunkUWO6RBCE_js.cn(
|
|
19
|
+
{
|
|
20
|
+
"gap-xs flex flex-col": orientation === "horizontal",
|
|
21
|
+
"gap-xs grid grid-cols-[1fr_2fr] text-center": orientation === "vertical",
|
|
22
|
+
"items-baseline": align === "start",
|
|
23
|
+
"items-center": align === "center",
|
|
24
|
+
"items-end": align === "end"
|
|
25
|
+
},
|
|
26
|
+
className
|
|
27
|
+
),
|
|
28
|
+
children
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.Layout = Layout;
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.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: chunkUWO6RBCE_js.cn(modalOverlayVariants(), className),
|
|
55
|
+
...props
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
var modalContentVariants = classVarianceAuthority.cva([
|
|
60
|
+
"px-xl",
|
|
61
|
+
"pb-xl",
|
|
62
|
+
"bg-bg-primary",
|
|
63
|
+
"rounded-xl",
|
|
64
|
+
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
65
|
+
"w-[320px]",
|
|
66
|
+
"min-w-[280px]",
|
|
67
|
+
"duration-200",
|
|
68
|
+
"transition-all",
|
|
69
|
+
"fixed",
|
|
70
|
+
"translate-x-[-50%]",
|
|
71
|
+
"translate-y-[-50%]",
|
|
72
|
+
"z-101",
|
|
73
|
+
"left-1/2",
|
|
74
|
+
"top-1/2",
|
|
75
|
+
"data-[state=open]:animate-in",
|
|
76
|
+
"data-[state=closed]:animate-out",
|
|
77
|
+
"data-[state=closed]:fade-out-0",
|
|
78
|
+
"data-[state=open]:fade-in-0",
|
|
79
|
+
"data-[state=closed]:zoom-out-95",
|
|
80
|
+
"data-[state=open]:zoom-in-95",
|
|
81
|
+
"liquid:liquid-bg"
|
|
82
|
+
]);
|
|
83
|
+
function ModalContent({
|
|
84
|
+
className,
|
|
85
|
+
children,
|
|
86
|
+
showCloseButton = true,
|
|
87
|
+
...props
|
|
88
|
+
}) {
|
|
89
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ModalPortal, { children: [
|
|
90
|
+
/* @__PURE__ */ jsxRuntime.jsx(ModalOverlay, {}),
|
|
91
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
92
|
+
DialogPrimitive__namespace.Content,
|
|
93
|
+
{
|
|
94
|
+
"data-slot": "modal-content",
|
|
95
|
+
className: chunkUWO6RBCE_js.cn(modalContentVariants(), className),
|
|
96
|
+
...props,
|
|
97
|
+
children: [
|
|
98
|
+
children,
|
|
99
|
+
showCloseButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
100
|
+
DialogPrimitive__namespace.Close,
|
|
101
|
+
{
|
|
102
|
+
"data-slot": "modal-close",
|
|
103
|
+
className: chunkUWO6RBCE_js.cn(
|
|
104
|
+
"absolute",
|
|
105
|
+
"right-[16px]",
|
|
106
|
+
"top-[16px]",
|
|
107
|
+
"w-[16px]",
|
|
108
|
+
"h-[16px]",
|
|
109
|
+
"rounded-sm",
|
|
110
|
+
"cursor-pointer",
|
|
111
|
+
"hover:text-icon-highlight",
|
|
112
|
+
"text-icon-primary",
|
|
113
|
+
"flex",
|
|
114
|
+
"items-center",
|
|
115
|
+
"justify-center"
|
|
116
|
+
),
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, {}),
|
|
119
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
] });
|
|
127
|
+
}
|
|
128
|
+
function ModalHeader({ className, ...props }) {
|
|
129
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "modal-header", className: chunkUWO6RBCE_js.cn("flex flex-col", className), ...props });
|
|
130
|
+
}
|
|
131
|
+
function ModalTitle({ className, ...props }) {
|
|
132
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
133
|
+
DialogPrimitive__namespace.Title,
|
|
134
|
+
{
|
|
135
|
+
"data-slot": "modal-title",
|
|
136
|
+
className: chunkUWO6RBCE_js.cn(
|
|
137
|
+
"text-text-highlight",
|
|
138
|
+
"text-[14px]",
|
|
139
|
+
"leading-[20px]",
|
|
140
|
+
"font-medium",
|
|
141
|
+
"py-lg",
|
|
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: chunkUWO6RBCE_js.cn(
|
|
155
|
+
"text-text-primary",
|
|
156
|
+
"text-[14px]",
|
|
157
|
+
"leading-[20px]",
|
|
158
|
+
"font-normal",
|
|
159
|
+
"pb-lg",
|
|
160
|
+
"text-start",
|
|
161
|
+
className
|
|
162
|
+
),
|
|
163
|
+
...props
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
function ModalFooter({ className, ...props }) {
|
|
168
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
169
|
+
"div",
|
|
170
|
+
{
|
|
171
|
+
"data-slot": "modal-footer",
|
|
172
|
+
className: chunkUWO6RBCE_js.cn("w-full", "flex", "justify-end", "gap-[8px]", className),
|
|
173
|
+
...props
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
exports.Modal = Modal;
|
|
179
|
+
exports.ModalClose = ModalClose;
|
|
180
|
+
exports.ModalContent = ModalContent;
|
|
181
|
+
exports.ModalDescription = ModalDescription;
|
|
182
|
+
exports.ModalFooter = ModalFooter;
|
|
183
|
+
exports.ModalHeader = ModalHeader;
|
|
184
|
+
exports.ModalOverlay = ModalOverlay;
|
|
185
|
+
exports.ModalPortal = ModalPortal;
|
|
186
|
+
exports.ModalTitle = ModalTitle;
|
|
187
|
+
exports.ModalTrigger = ModalTrigger;
|