@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.
@@ -1,7 +1,7 @@
1
1
  import { Badge } from './chunk-Q27ILZE6.mjs';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
 
4
- var PACKAGE_VERSION = "0.0.62" ;
4
+ var PACKAGE_VERSION = "0.0.63" ;
5
5
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
6
6
  function VersionBadge({
7
7
  className,
@@ -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 SwitchRoot({ className, ...props }) {
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 };
@@ -3,7 +3,7 @@
3
3
  var chunkWGHPQZR3_js = require('./chunk-WGHPQZR3.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
 
6
- var PACKAGE_VERSION = "0.0.62" ;
6
+ var PACKAGE_VERSION = "0.0.63" ;
7
7
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
8
8
  function VersionBadge({
9
9
  className,