@vuer-ai/vuer-uikit 0.0.62 → 0.0.63
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-FGWHLUIE.mjs → chunk-BZ4VQAAM.mjs} +1 -1
- package/dist/{chunk-HWLHWZRI.js → chunk-DK7TS7KV.js} +1 -42
- package/dist/chunk-ERN4HL5A.mjs +43 -0
- package/dist/{chunk-OBFEPD4O.js → chunk-SOYRM7HC.js} +1 -1
- package/dist/index.js +248 -248
- package/dist/index.mjs +18 -18
- package/dist/ui/index.js +248 -248
- package/dist/ui/index.mjs +18 -18
- package/dist/ui/sidebar.js +26 -26
- package/dist/ui/sidebar.mjs +2 -2
- package/dist/ui/switch.d.mts +7 -2
- package/dist/ui/switch.d.ts +7 -2
- package/dist/ui/switch.js +2 -2
- package/dist/ui/switch.mjs +1 -1
- package/dist/ui/version-badge.js +2 -2
- package/dist/ui/version-badge.mjs +1 -1
- package/package.json +1 -2
- package/dist/chunk-SFVGTTM7.mjs +0 -84
- package/dist/{chunk-QFS3XFKL.js → chunk-QHTTHYTZ.js} +1 -1
- package/dist/{chunk-7GTXMXPC.mjs → chunk-RCOX3T47.mjs} +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkQG7ZF6TO_js = require('./chunk-QG7ZF6TO.js');
|
|
4
3
|
var chunkYUTSR2OT_js = require('./chunk-YUTSR2OT.js');
|
|
5
4
|
var SwitchPrimitive = require('@radix-ui/react-switch');
|
|
6
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -25,7 +24,7 @@ function _interopNamespace(e) {
|
|
|
25
24
|
|
|
26
25
|
var SwitchPrimitive__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitive);
|
|
27
26
|
|
|
28
|
-
function
|
|
27
|
+
function Switch({ className, ...props }) {
|
|
29
28
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30
29
|
SwitchPrimitive__namespace.Root,
|
|
31
30
|
{
|
|
@@ -62,45 +61,5 @@ function SwitchRoot({ className, ...props }) {
|
|
|
62
61
|
}
|
|
63
62
|
);
|
|
64
63
|
}
|
|
65
|
-
function SwitchFallback({ className, ...props }) {
|
|
66
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
-
"button",
|
|
68
|
-
{
|
|
69
|
-
"data-slot": "switch",
|
|
70
|
-
className: chunkYUTSR2OT_js.cn(
|
|
71
|
-
"group",
|
|
72
|
-
"w-[32px]",
|
|
73
|
-
"h-[16px]",
|
|
74
|
-
"rounded-[24px]",
|
|
75
|
-
"bg-bg-tertiary",
|
|
76
|
-
"aria-checked:bg-brand-primary",
|
|
77
|
-
"disabled:bg-bg-secondary",
|
|
78
|
-
"disabled:cursor-not-allowed",
|
|
79
|
-
"relative",
|
|
80
|
-
className
|
|
81
|
-
),
|
|
82
|
-
...props,
|
|
83
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
84
|
-
"span",
|
|
85
|
-
{
|
|
86
|
-
"data-slot": "switch-thumb",
|
|
87
|
-
className: chunkYUTSR2OT_js.cn(
|
|
88
|
-
"block",
|
|
89
|
-
"size-[12px]",
|
|
90
|
-
"rounded-full",
|
|
91
|
-
"bg-icon-withbg",
|
|
92
|
-
"group-disabled:bg-bg-primary",
|
|
93
|
-
"transition-transform",
|
|
94
|
-
"duration-200",
|
|
95
|
-
"translate-x-[2px]",
|
|
96
|
-
"absolute",
|
|
97
|
-
"top-[2px]"
|
|
98
|
-
)
|
|
99
|
-
}
|
|
100
|
-
)
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
var Switch = chunkQG7ZF6TO_js.createClientOnlyComponent(SwitchRoot, SwitchFallback);
|
|
105
64
|
|
|
106
65
|
exports.Switch = Switch;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { cn } from './chunk-KVFUDYD3.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
|
+
className,
|
|
12
|
+
"group",
|
|
13
|
+
"w-[32px]",
|
|
14
|
+
"h-[16px]",
|
|
15
|
+
"rounded-[24px]",
|
|
16
|
+
"bg-bg-tertiary",
|
|
17
|
+
"aria-checked:bg-brand-primary",
|
|
18
|
+
"disabled:bg-bg-secondary",
|
|
19
|
+
"disabled:cursor-not-allowed"
|
|
20
|
+
),
|
|
21
|
+
...props,
|
|
22
|
+
children: /* @__PURE__ */ jsx(
|
|
23
|
+
SwitchPrimitive.Thumb,
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "switch-thumb",
|
|
26
|
+
className: cn(
|
|
27
|
+
"block",
|
|
28
|
+
"size-[12px]",
|
|
29
|
+
"rounded-full",
|
|
30
|
+
"bg-icon-withbg",
|
|
31
|
+
"group-disabled:bg-bg-primary",
|
|
32
|
+
"transition-transform",
|
|
33
|
+
"duration-200",
|
|
34
|
+
"translate-x-[2px]",
|
|
35
|
+
"data-[state=checked]:translate-x-[18px]"
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { Switch };
|