@vuer-ai/vuer-uikit 0.0.62 → 0.0.64

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkJ5OXYTB6_js = require('./chunk-J5OXYTB6.js');
4
4
  var chunkFURER5TR_js = require('./chunk-FURER5TR.js');
5
- var chunkJ2GBP6H3_js = require('./chunk-J2GBP6H3.js');
5
+ var chunkZN3ZE5MC_js = require('./chunk-ZN3ZE5MC.js');
6
6
  var chunkKVN35F5P_js = require('./chunk-KVN35F5P.js');
7
7
  var chunkLWUN6L6Z_js = require('./chunk-LWUN6L6Z.js');
8
8
  var chunkKYN7K2XM_js = require('./chunk-KYN7K2XM.js');
@@ -11,7 +11,7 @@ var chunkKYN7K2XM_js = require('./chunk-KYN7K2XM.js');
11
11
  var CursorButton = chunkKYN7K2XM_js.withCursor(chunkLWUN6L6Z_js.Button);
12
12
  var CursorTabs = chunkKYN7K2XM_js.withCursor(chunkJ5OXYTB6_js.Tabs);
13
13
  var CursorInputRoot = chunkKYN7K2XM_js.withCursor(chunkKVN35F5P_js.InputRoot);
14
- var CursorSelectTrigger = chunkKYN7K2XM_js.withCursor(chunkJ2GBP6H3_js.SelectTrigger);
14
+ var CursorSelectTrigger = chunkKYN7K2XM_js.withCursor(chunkZN3ZE5MC_js.SelectTrigger);
15
15
  var CursorTextarea = chunkKYN7K2XM_js.withCursor(chunkFURER5TR_js.Textarea);
16
16
 
17
17
  exports.CursorButton = CursorButton;
@@ -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.64" ;
7
7
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
8
8
  function VersionBadge({
9
9
  className,
@@ -3,17 +3,19 @@ import { cn } from './chunk-KVFUDYD3.mjs';
3
3
  import * as SelectPrimitive from '@radix-ui/react-select';
4
4
  import { cva } from 'class-variance-authority';
5
5
  import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
6
+ import { createContext, useContext } from 'react';
6
7
  import { jsx, jsxs } from 'react/jsx-runtime';
7
8
 
9
+ var SelectContext = createContext({ font: "mono", align: "left" });
8
10
  function SelectRoot({ font = "mono", align = "left", ...props }) {
9
- return /* @__PURE__ */ jsx(SelectPrimitive.Root, { "data-slot": "select", "data-font": font, "data-align": align, ...props });
11
+ return /* @__PURE__ */ jsx(SelectContext.Provider, { value: { font, align }, children: /* @__PURE__ */ jsx(SelectPrimitive.Root, { "data-slot": "select", "data-font": font, "data-align": align, ...props }) });
10
12
  }
11
13
  function SelectFallback({
12
14
  font = "mono",
13
15
  align = "left",
14
16
  ...props
15
17
  }) {
16
- return /* @__PURE__ */ jsx("div", { "data-slot": "select", "data-font": font, "data-align": align, ...props });
18
+ return /* @__PURE__ */ jsx(SelectContext.Provider, { value: { font, align }, children: /* @__PURE__ */ jsx("div", { "data-slot": "select", "data-font": font, "data-align": align, ...props }) });
17
19
  }
18
20
  var Select = createClientOnlyComponent(
19
21
  SelectRoot,
@@ -165,10 +167,12 @@ function SelectContentRoot({
165
167
  position = "item-aligned",
166
168
  ...props
167
169
  }) {
170
+ const { font } = useContext(SelectContext);
168
171
  return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
169
172
  SelectPrimitive.Content,
170
173
  {
171
174
  "data-slot": "select-content",
175
+ "data-font": font,
172
176
  className: cn(
173
177
  [
174
178
  "bg-bg-primary",
@@ -190,7 +194,8 @@ function SelectContentRoot({
190
194
  "overflow-y-auto",
191
195
  "rounded-uk-md",
192
196
  "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
193
- "liquid:liquid-bg"
197
+ "liquid:liquid-bg",
198
+ font === "standard" ? "font-sans" : "font-number-input"
194
199
  ],
195
200
  {
196
201
  "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1": position === "popper",
@@ -217,6 +222,7 @@ function SelectContentRoot({
217
222
  ) });
218
223
  }
219
224
  function SelectContentFallback({ className, children, ...props }) {
225
+ const { font } = useContext(SelectContext);
220
226
  return /* @__PURE__ */ jsx(
221
227
  "div",
222
228
  {
@@ -230,10 +236,12 @@ function SelectContentFallback({ className, children, ...props }) {
230
236
  "overflow-y-auto",
231
237
  "rounded-uk-md",
232
238
  "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
233
- "liquid:liquid-bg"
239
+ "liquid:liquid-bg",
240
+ font === "standard" ? "font-sans" : "font-number-input"
234
241
  ],
235
242
  className
236
243
  ),
244
+ "data-font": font,
237
245
  ...props,
238
246
  children: /* @__PURE__ */ jsx("div", { className: "p-md", children })
239
247
  }
@@ -373,7 +381,7 @@ function SelectItemFallback({
373
381
  "flex",
374
382
  "gap-md",
375
383
  "items-center",
376
- "px-0",
384
+ "px-sm",
377
385
  "py-xs",
378
386
  "relative",
379
387
  "cursor-default",
@@ -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.64" ;
5
5
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
6
6
  function VersionBadge({
7
7
  className,
@@ -1,6 +1,6 @@
1
1
  import { Tabs } from './chunk-WM25JXCI.mjs';
2
2
  import { Textarea } from './chunk-MXXKPTX3.mjs';
3
- import { SelectTrigger } from './chunk-4SECPMPM.mjs';
3
+ import { SelectTrigger } from './chunk-ITIBO5FR.mjs';
4
4
  import { InputRoot } from './chunk-F3TKXHNH.mjs';
5
5
  import { Button } from './chunk-3MSEMXKG.mjs';
6
6
  import { withCursor } from './chunk-RAHKRYQJ.mjs';
@@ -5,6 +5,7 @@ var chunkYUTSR2OT_js = require('./chunk-YUTSR2OT.js');
5
5
  var SelectPrimitive = require('@radix-ui/react-select');
6
6
  var classVarianceAuthority = require('class-variance-authority');
7
7
  var lucideReact = require('lucide-react');
8
+ var react = require('react');
8
9
  var jsxRuntime = require('react/jsx-runtime');
9
10
 
10
11
  function _interopNamespace(e) {
@@ -27,15 +28,16 @@ function _interopNamespace(e) {
27
28
 
28
29
  var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
29
30
 
31
+ var SelectContext = react.createContext({ font: "mono", align: "left" });
30
32
  function SelectRoot({ font = "mono", align = "left", ...props }) {
31
- return /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Root, { "data-slot": "select", "data-font": font, "data-align": align, ...props });
33
+ return /* @__PURE__ */ jsxRuntime.jsx(SelectContext.Provider, { value: { font, align }, children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Root, { "data-slot": "select", "data-font": font, "data-align": align, ...props }) });
32
34
  }
33
35
  function SelectFallback({
34
36
  font = "mono",
35
37
  align = "left",
36
38
  ...props
37
39
  }) {
38
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "select", "data-font": font, "data-align": align, ...props });
40
+ return /* @__PURE__ */ jsxRuntime.jsx(SelectContext.Provider, { value: { font, align }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "select", "data-font": font, "data-align": align, ...props }) });
39
41
  }
40
42
  var Select = chunkQG7ZF6TO_js.createClientOnlyComponent(
41
43
  SelectRoot,
@@ -187,10 +189,12 @@ function SelectContentRoot({
187
189
  position = "item-aligned",
188
190
  ...props
189
191
  }) {
192
+ const { font } = react.useContext(SelectContext);
190
193
  return /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
191
194
  SelectPrimitive__namespace.Content,
192
195
  {
193
196
  "data-slot": "select-content",
197
+ "data-font": font,
194
198
  className: chunkYUTSR2OT_js.cn(
195
199
  [
196
200
  "bg-bg-primary",
@@ -212,7 +216,8 @@ function SelectContentRoot({
212
216
  "overflow-y-auto",
213
217
  "rounded-uk-md",
214
218
  "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
215
- "liquid:liquid-bg"
219
+ "liquid:liquid-bg",
220
+ font === "standard" ? "font-sans" : "font-number-input"
216
221
  ],
217
222
  {
218
223
  "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1": position === "popper",
@@ -239,6 +244,7 @@ function SelectContentRoot({
239
244
  ) });
240
245
  }
241
246
  function SelectContentFallback({ className, children, ...props }) {
247
+ const { font } = react.useContext(SelectContext);
242
248
  return /* @__PURE__ */ jsxRuntime.jsx(
243
249
  "div",
244
250
  {
@@ -252,10 +258,12 @@ function SelectContentFallback({ className, children, ...props }) {
252
258
  "overflow-y-auto",
253
259
  "rounded-uk-md",
254
260
  "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
255
- "liquid:liquid-bg"
261
+ "liquid:liquid-bg",
262
+ font === "standard" ? "font-sans" : "font-number-input"
256
263
  ],
257
264
  className
258
265
  ),
266
+ "data-font": font,
259
267
  ...props,
260
268
  children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-md", children })
261
269
  }
@@ -395,7 +403,7 @@ function SelectItemFallback({
395
403
  "flex",
396
404
  "gap-md",
397
405
  "items-center",
398
- "px-0",
406
+ "px-sm",
399
407
  "py-xs",
400
408
  "relative",
401
409
  "cursor-default",
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkS7UYK47Y_js = require('../chunk-S7UYK47Y.js');
3
+ var chunk3WSYT7QI_js = require('../chunk-3WSYT7QI.js');
4
4
  require('../chunk-J5OXYTB6.js');
5
5
  require('../chunk-FURER5TR.js');
6
- require('../chunk-J2GBP6H3.js');
6
+ require('../chunk-ZN3ZE5MC.js');
7
7
  require('../chunk-KVN35F5P.js');
8
8
  require('../chunk-LWUN6L6Z.js');
9
9
  require('../chunk-KYN7K2XM.js');
@@ -21,21 +21,21 @@ require('../chunk-OTPUWWEB.js');
21
21
 
22
22
  Object.defineProperty(exports, "CursorButton", {
23
23
  enumerable: true,
24
- get: function () { return chunkS7UYK47Y_js.CursorButton; }
24
+ get: function () { return chunk3WSYT7QI_js.CursorButton; }
25
25
  });
26
26
  Object.defineProperty(exports, "CursorInputRoot", {
27
27
  enumerable: true,
28
- get: function () { return chunkS7UYK47Y_js.CursorInputRoot; }
28
+ get: function () { return chunk3WSYT7QI_js.CursorInputRoot; }
29
29
  });
30
30
  Object.defineProperty(exports, "CursorSelectTrigger", {
31
31
  enumerable: true,
32
- get: function () { return chunkS7UYK47Y_js.CursorSelectTrigger; }
32
+ get: function () { return chunk3WSYT7QI_js.CursorSelectTrigger; }
33
33
  });
34
34
  Object.defineProperty(exports, "CursorTabs", {
35
35
  enumerable: true,
36
- get: function () { return chunkS7UYK47Y_js.CursorTabs; }
36
+ get: function () { return chunk3WSYT7QI_js.CursorTabs; }
37
37
  });
38
38
  Object.defineProperty(exports, "CursorTextarea", {
39
39
  enumerable: true,
40
- get: function () { return chunkS7UYK47Y_js.CursorTextarea; }
40
+ get: function () { return chunk3WSYT7QI_js.CursorTextarea; }
41
41
  });
@@ -1,7 +1,7 @@
1
- export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from '../chunk-WHIR6MGP.mjs';
1
+ export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from '../chunk-TQRNISIG.mjs';
2
2
  import '../chunk-WM25JXCI.mjs';
3
3
  import '../chunk-MXXKPTX3.mjs';
4
- import '../chunk-4SECPMPM.mjs';
4
+ import '../chunk-ITIBO5FR.mjs';
5
5
  import '../chunk-F3TKXHNH.mjs';
6
6
  import '../chunk-3MSEMXKG.mjs';
7
7
  import '../chunk-RAHKRYQJ.mjs';
@@ -2,10 +2,10 @@
2
2
 
3
3
  require('../chunk-KJ42IGH6.js');
4
4
  var chunkHLIIVIL6_js = require('../chunk-HLIIVIL6.js');
5
- var chunkS7UYK47Y_js = require('../chunk-S7UYK47Y.js');
5
+ var chunk3WSYT7QI_js = require('../chunk-3WSYT7QI.js');
6
6
  require('../chunk-J5OXYTB6.js');
7
7
  require('../chunk-FURER5TR.js');
8
- require('../chunk-J2GBP6H3.js');
8
+ require('../chunk-ZN3ZE5MC.js');
9
9
  require('../chunk-KVN35F5P.js');
10
10
  require('../chunk-LWUN6L6Z.js');
11
11
  var chunkKYN7K2XM_js = require('../chunk-KYN7K2XM.js');
@@ -27,23 +27,23 @@ Object.defineProperty(exports, "CursorProvider", {
27
27
  });
28
28
  Object.defineProperty(exports, "CursorButton", {
29
29
  enumerable: true,
30
- get: function () { return chunkS7UYK47Y_js.CursorButton; }
30
+ get: function () { return chunk3WSYT7QI_js.CursorButton; }
31
31
  });
32
32
  Object.defineProperty(exports, "CursorInputRoot", {
33
33
  enumerable: true,
34
- get: function () { return chunkS7UYK47Y_js.CursorInputRoot; }
34
+ get: function () { return chunk3WSYT7QI_js.CursorInputRoot; }
35
35
  });
36
36
  Object.defineProperty(exports, "CursorSelectTrigger", {
37
37
  enumerable: true,
38
- get: function () { return chunkS7UYK47Y_js.CursorSelectTrigger; }
38
+ get: function () { return chunk3WSYT7QI_js.CursorSelectTrigger; }
39
39
  });
40
40
  Object.defineProperty(exports, "CursorTabs", {
41
41
  enumerable: true,
42
- get: function () { return chunkS7UYK47Y_js.CursorTabs; }
42
+ get: function () { return chunk3WSYT7QI_js.CursorTabs; }
43
43
  });
44
44
  Object.defineProperty(exports, "CursorTextarea", {
45
45
  enumerable: true,
46
- get: function () { return chunkS7UYK47Y_js.CursorTextarea; }
46
+ get: function () { return chunk3WSYT7QI_js.CursorTextarea; }
47
47
  });
48
48
  Object.defineProperty(exports, "withCursor", {
49
49
  enumerable: true,
@@ -1,9 +1,9 @@
1
1
  import '../chunk-VGCVIHBR.mjs';
2
2
  export { CursorProvider } from '../chunk-5T7CZMWF.mjs';
3
- export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from '../chunk-WHIR6MGP.mjs';
3
+ export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from '../chunk-TQRNISIG.mjs';
4
4
  import '../chunk-WM25JXCI.mjs';
5
5
  import '../chunk-MXXKPTX3.mjs';
6
- import '../chunk-4SECPMPM.mjs';
6
+ import '../chunk-ITIBO5FR.mjs';
7
7
  import '../chunk-F3TKXHNH.mjs';
8
8
  import '../chunk-3MSEMXKG.mjs';
9
9
  export { withCursor } from '../chunk-RAHKRYQJ.mjs';