@vuer-ai/vuer-uikit 0.0.37 → 0.0.40

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.
Files changed (119) hide show
  1. package/dist/chunk-2QBMOSVM.js +22 -0
  2. package/dist/chunk-3LJI6I2O.mjs +20 -0
  3. package/dist/{chunk-IODCQKTM.mjs → chunk-3QG5RA46.mjs} +4 -17
  4. package/dist/{chunk-4ZJRDAXG.js → chunk-3YODEBOY.js} +1 -0
  5. package/dist/chunk-43FK6CBY.mjs +18 -0
  6. package/dist/chunk-4PWIOKV6.mjs +18 -0
  7. package/dist/chunk-4UGXCXXM.mjs +18 -0
  8. package/dist/chunk-5UHOCEWC.mjs +18 -0
  9. package/dist/chunk-6AWSAY7A.js +24 -0
  10. package/dist/chunk-6N2Q4EQ2.js +20 -0
  11. package/dist/chunk-6N3UJ4AX.mjs +20 -0
  12. package/dist/{chunk-SFFLVUWV.js → chunk-72PCXNEI.js} +3 -3
  13. package/dist/chunk-7KVGTDDO.js +20 -0
  14. package/dist/{chunk-PBQSATSN.js → chunk-7TD2RBQJ.js} +3 -3
  15. package/dist/chunk-A77ETENM.js +20 -0
  16. package/dist/chunk-AB4GGLJ5.mjs +18 -0
  17. package/dist/chunk-ADOYBPJS.mjs +18 -0
  18. package/dist/chunk-CPZIDU2J.js +20 -0
  19. package/dist/chunk-E2UGNYWU.js +22 -0
  20. package/dist/chunk-EGYK5FED.mjs +18 -0
  21. package/dist/chunk-EJ7D53ZF.js +20 -0
  22. package/dist/{chunk-DRL527OZ.js → chunk-FWXGL3VA.js} +1 -1
  23. package/dist/{chunk-WCK3EIS2.js → chunk-HE63LZKF.js} +2 -2
  24. package/dist/chunk-ICRVQLUS.mjs +22 -0
  25. package/dist/{chunk-4HURANFT.mjs → chunk-INX2EB5H.mjs} +1 -0
  26. package/dist/chunk-IOVNKUJ6.js +16 -0
  27. package/dist/chunk-JHHA2CGJ.mjs +14 -0
  28. package/dist/{chunk-A3EJLDGW.js → chunk-KEVAPLWO.js} +5 -18
  29. package/dist/chunk-LCS67P4A.mjs +18 -0
  30. package/dist/chunk-LD32BCCX.js +20 -0
  31. package/dist/{chunk-HQX4LDOI.mjs → chunk-LZE22ZNH.mjs} +1 -1
  32. package/dist/{chunk-VN2N7EAO.mjs → chunk-M3S7NSGR.mjs} +1 -1
  33. package/dist/{chunk-DXZEM4KQ.mjs → chunk-MS5G6UZ4.mjs} +3 -3
  34. package/dist/chunk-MYRZ2ZV5.mjs +21 -0
  35. package/dist/{chunk-6MEYAIYL.mjs → chunk-MZDJH3M7.mjs} +1 -1
  36. package/dist/chunk-NACWD4CC.js +2 -0
  37. package/dist/chunk-NBG65POR.js +20 -0
  38. package/dist/chunk-TBFX36YV.mjs +18 -0
  39. package/dist/chunk-TPX5AJ7Z.js +23 -0
  40. package/dist/chunk-TWQSUO5Q.js +20 -0
  41. package/dist/chunk-UQQPHWTA.js +20 -0
  42. package/dist/chunk-YRM45Z7N.mjs +1 -0
  43. package/dist/highlight-cursor/enhanced-components.js +7 -7
  44. package/dist/highlight-cursor/enhanced-components.mjs +2 -2
  45. package/dist/highlight-cursor/index.js +7 -7
  46. package/dist/highlight-cursor/index.mjs +2 -2
  47. package/dist/index.css +3 -3
  48. package/dist/index.js +95 -24
  49. package/dist/index.mjs +22 -7
  50. package/dist/styles/theme.css +3 -3
  51. package/dist/styles/variables.css +2 -2
  52. package/dist/ui/form/CmInput.js +18 -0
  53. package/dist/ui/form/CmInput.mjs +9 -0
  54. package/dist/ui/form/DegInput.js +18 -0
  55. package/dist/ui/form/DegInput.mjs +9 -0
  56. package/dist/ui/form/EulerDegInput.js +20 -0
  57. package/dist/ui/form/EulerDegInput.mjs +11 -0
  58. package/dist/ui/form/EulerInput.js +19 -0
  59. package/dist/ui/form/EulerInput.mjs +10 -0
  60. package/dist/ui/form/EulerRadInput.js +20 -0
  61. package/dist/ui/form/EulerRadInput.mjs +11 -0
  62. package/dist/ui/form/InchInput.js +18 -0
  63. package/dist/ui/form/InchInput.mjs +9 -0
  64. package/dist/ui/form/IntInput.js +18 -0
  65. package/dist/ui/form/IntInput.mjs +9 -0
  66. package/dist/ui/form/KVectorInput.js +19 -0
  67. package/dist/ui/form/KVectorInput.mjs +10 -0
  68. package/dist/ui/form/NumberInput.js +17 -0
  69. package/dist/ui/form/NumberInput.mjs +8 -0
  70. package/dist/ui/form/QuaternionInput.js +19 -0
  71. package/dist/ui/form/QuaternionInput.mjs +10 -0
  72. package/dist/ui/form/RadInput.js +18 -0
  73. package/dist/ui/form/RadInput.mjs +9 -0
  74. package/dist/ui/form/TimeInput.js +18 -0
  75. package/dist/ui/form/TimeInput.mjs +9 -0
  76. package/dist/ui/form/Vec3Input.js +19 -0
  77. package/dist/ui/form/Vec3Input.mjs +10 -0
  78. package/dist/ui/form/VectorInput.js +18 -0
  79. package/dist/ui/form/VectorInput.mjs +9 -0
  80. package/dist/ui/form/index.js +84 -0
  81. package/dist/ui/form/index.mjs +23 -0
  82. package/dist/ui/index.js +89 -18
  83. package/dist/ui/index.mjs +21 -6
  84. package/dist/ui/input-numbers.js +3 -3
  85. package/dist/ui/input-numbers.mjs +2 -2
  86. package/dist/ui/input.js +3 -3
  87. package/dist/ui/input.mjs +1 -1
  88. package/dist/ui/theme/ThemeProvider.js +4 -4
  89. package/dist/ui/theme/ThemeProvider.mjs +2 -2
  90. package/dist/ui/theme/index.js +5 -5
  91. package/dist/ui/theme/index.mjs +2 -2
  92. package/dist/ui/theme/themeScript.js +2 -2
  93. package/dist/ui/theme/themeScript.mjs +1 -1
  94. package/dist/ui/version-badge.js +2 -2
  95. package/dist/ui/version-badge.mjs +1 -1
  96. package/package.json +1 -1
  97. package/src/styles/theme.css +1 -1
  98. package/src/styles/variables.css +2 -2
  99. package/src/ui/form/CmInput.tsx +19 -0
  100. package/src/ui/form/DegInput.tsx +19 -0
  101. package/src/ui/form/EulerDegInput.tsx +19 -0
  102. package/src/ui/form/EulerInput.tsx +28 -0
  103. package/src/ui/form/EulerRadInput.tsx +19 -0
  104. package/src/ui/form/InchInput.tsx +19 -0
  105. package/src/ui/form/IntInput.tsx +19 -0
  106. package/src/ui/form/KVectorInput.tsx +25 -0
  107. package/src/ui/form/NumberInput.tsx +24 -0
  108. package/src/ui/form/QuaternionInput.tsx +24 -0
  109. package/src/ui/form/RadInput.tsx +19 -0
  110. package/src/ui/form/TimeInput.tsx +19 -0
  111. package/src/ui/form/Vec3Input.tsx +24 -0
  112. package/src/ui/form/VectorInput.tsx +23 -0
  113. package/src/ui/form/index.ts +41 -0
  114. package/src/ui/index.ts +1 -0
  115. package/src/ui/input.tsx +3 -2
  116. package/src/ui/theme/ThemeProvider.tsx +4 -16
  117. package/src/ui/theme/themeScript.tsx +5 -3
  118. /package/dist/{chunk-2TBYBUF4.js → chunk-GVDU3F7X.js} +0 -0
  119. /package/dist/{chunk-L3LDQABD.mjs → chunk-OJUTHWTF.mjs} +0 -0
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var chunkCPZIDU2J_js = require('./chunk-CPZIDU2J.js');
4
+ var react = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var QuaternionInput = react.forwardRef(
8
+ function QuaternionInput2({ value, onValuesChange, ...props }, ref) {
9
+ return /* @__PURE__ */ jsxRuntime.jsx(
10
+ chunkCPZIDU2J_js.VectorInput,
11
+ {
12
+ ref,
13
+ value,
14
+ onValuesChange,
15
+ labels: ["w", "x", "y", "z"],
16
+ ...props
17
+ }
18
+ );
19
+ }
20
+ );
21
+
22
+ exports.QuaternionInput = QuaternionInput;
@@ -0,0 +1,20 @@
1
+ import { VectorInput } from './chunk-43FK6CBY.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var Vec3Input = forwardRef(
6
+ function Vec3Input2({ value, onValuesChange, ...props }, ref) {
7
+ return /* @__PURE__ */ jsx(
8
+ VectorInput,
9
+ {
10
+ ref,
11
+ value,
12
+ onValuesChange,
13
+ labels: ["x", "y", "z"],
14
+ ...props
15
+ }
16
+ );
17
+ }
18
+ );
19
+
20
+ export { Vec3Input };
@@ -1,8 +1,7 @@
1
- import { ThemeScript } from './chunk-DXZEM4KQ.mjs';
1
+ import { ThemeScript } from './chunk-MS5G6UZ4.mjs';
2
2
  import { createContext, useContext, useState, useCallback, useEffect, useMemo } from 'react';
3
3
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
4
4
 
5
- var colorSchemes = ["light", "dark"];
6
5
  var MEDIA = "(prefers-color-scheme: dark)";
7
6
  var isServer = typeof window === "undefined";
8
7
  var ThemeContext = createContext(void 0);
@@ -67,20 +66,8 @@ var Theme = ({
67
66
  if (Array.isArray(attribute)) attribute.forEach(handleAttribute);
68
67
  else handleAttribute(attribute);
69
68
  if (enableColorScheme) {
70
- let fallback = "light";
71
- const c = colorSchemes.reduce(
72
- (schema, currentValue) => {
73
- if (defaultTheme.includes(currentValue)) {
74
- fallback = currentValue;
75
- }
76
- if (resolved.includes(currentValue)) {
77
- return currentValue;
78
- }
79
- return schema;
80
- },
81
- void 0
82
- );
83
- d.style.colorScheme = c ?? fallback;
69
+ const isDark = resolved.includes("dark");
70
+ d.style.colorScheme = isDark ? "dark" : "light";
84
71
  }
85
72
  enable == null ? void 0 : enable();
86
73
  },
@@ -115,7 +102,7 @@ var Theme = ({
115
102
  const resolved = getSystemTheme(e);
116
103
  setResolvedTheme(resolved);
117
104
  if (theme === "system" && enableSystem && !forcedTheme) {
118
- applyTheme("system");
105
+ applyTheme(resolved);
119
106
  }
120
107
  },
121
108
  [theme, enableSystem, forcedTheme, applyTheme]
@@ -78,6 +78,7 @@ var InputRoot = react.forwardRef(function InputRoot2({ style, className, side, c
78
78
  "h-full",
79
79
  "outline-none",
80
80
  "data-[side=right]:text-right",
81
+ "data-[side=center]:text-center",
81
82
  "[input[type=number]]:font-number-input",
82
83
  "[&::-webkit-inner-spin-button]:appearance-none",
83
84
  "[&::-webkit-outer-spin-button]:appearance-none"
@@ -0,0 +1,18 @@
1
+ import { InputNumbers } from './chunk-LZE22ZNH.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var VectorInput = forwardRef(
6
+ function VectorInput2({ labels, prefix, ...props }, ref) {
7
+ return /* @__PURE__ */ jsx(
8
+ InputNumbers,
9
+ {
10
+ ref,
11
+ prefix: labels || prefix,
12
+ ...props
13
+ }
14
+ );
15
+ }
16
+ );
17
+
18
+ export { VectorInput };
@@ -0,0 +1,18 @@
1
+ import { NumberInput } from './chunk-JHHA2CGJ.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var IntInput = forwardRef(
6
+ function IntInput2(props, ref) {
7
+ return /* @__PURE__ */ jsx(
8
+ NumberInput,
9
+ {
10
+ ref,
11
+ step: 1,
12
+ ...props
13
+ }
14
+ );
15
+ }
16
+ );
17
+
18
+ export { IntInput };
@@ -0,0 +1,18 @@
1
+ import { NumberInput } from './chunk-JHHA2CGJ.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var TimeInput = forwardRef(
6
+ function TimeInput2(props, ref) {
7
+ return /* @__PURE__ */ jsx(
8
+ NumberInput,
9
+ {
10
+ ref,
11
+ unit: "s",
12
+ ...props
13
+ }
14
+ );
15
+ }
16
+ );
17
+
18
+ export { TimeInput };
@@ -0,0 +1,18 @@
1
+ import { NumberInput } from './chunk-JHHA2CGJ.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var RadInput = forwardRef(
6
+ function RadInput2(props, ref) {
7
+ return /* @__PURE__ */ jsx(
8
+ NumberInput,
9
+ {
10
+ ref,
11
+ unit: "rad",
12
+ ...props
13
+ }
14
+ );
15
+ }
16
+ );
17
+
18
+ export { RadInput };
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var chunkCPZIDU2J_js = require('./chunk-CPZIDU2J.js');
4
+ var react = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var EulerInput = react.forwardRef(
8
+ function EulerInput2({ value, onValuesChange, unit = "deg", ...props }, ref) {
9
+ const unitSymbol = unit === "deg" ? "\xB0" : "rad";
10
+ const labels = [`x${unitSymbol}`, `y${unitSymbol}`, `z${unitSymbol}`];
11
+ return /* @__PURE__ */ jsxRuntime.jsx(
12
+ chunkCPZIDU2J_js.VectorInput,
13
+ {
14
+ ref,
15
+ value,
16
+ onValuesChange,
17
+ labels,
18
+ ...props
19
+ }
20
+ );
21
+ }
22
+ );
23
+
24
+ exports.EulerInput = EulerInput;
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var chunkIOVNKUJ6_js = require('./chunk-IOVNKUJ6.js');
4
+ var react = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var RadInput = react.forwardRef(
8
+ function RadInput2(props, ref) {
9
+ return /* @__PURE__ */ jsxRuntime.jsx(
10
+ chunkIOVNKUJ6_js.NumberInput,
11
+ {
12
+ ref,
13
+ unit: "rad",
14
+ ...props
15
+ }
16
+ );
17
+ }
18
+ );
19
+
20
+ exports.RadInput = RadInput;
@@ -0,0 +1,20 @@
1
+ import { VectorInput } from './chunk-43FK6CBY.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var QuaternionInput = forwardRef(
6
+ function QuaternionInput2({ value, onValuesChange, ...props }, ref) {
7
+ return /* @__PURE__ */ jsx(
8
+ VectorInput,
9
+ {
10
+ ref,
11
+ value,
12
+ onValuesChange,
13
+ labels: ["w", "x", "y", "z"],
14
+ ...props
15
+ }
16
+ );
17
+ }
18
+ );
19
+
20
+ export { QuaternionInput };
@@ -6,7 +6,6 @@ var jsxRuntime = require('react/jsx-runtime');
6
6
  // src/ui/theme/themeScript.tsx
7
7
  var themeScript = (defaultTheme, storageKey, attribute, themes, value, forcedTheme, enableSystem, enableColorScheme) => {
8
8
  const el = document.documentElement;
9
- const systemThemes = ["light", "dark"];
10
9
  function updateDOM(theme) {
11
10
  const attributes = Array.isArray(attribute) ? attribute : [attribute];
12
11
  attributes.forEach((attr) => {
@@ -22,8 +21,9 @@ var themeScript = (defaultTheme, storageKey, attribute, themes, value, forcedThe
22
21
  setColorScheme(theme);
23
22
  }
24
23
  function setColorScheme(theme) {
25
- if (enableColorScheme && systemThemes.includes(theme)) {
26
- el.style.colorScheme = theme;
24
+ if (enableColorScheme) {
25
+ const isDark = theme.includes("dark");
26
+ el.style.colorScheme = isDark ? "dark" : "light";
27
27
  }
28
28
  }
29
29
  function getSystemTheme() {
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var chunkIOVNKUJ6_js = require('./chunk-IOVNKUJ6.js');
4
+ var react = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var IntInput = react.forwardRef(
8
+ function IntInput2(props, ref) {
9
+ return /* @__PURE__ */ jsxRuntime.jsx(
10
+ chunkIOVNKUJ6_js.NumberInput,
11
+ {
12
+ ref,
13
+ step: 1,
14
+ ...props
15
+ }
16
+ );
17
+ }
18
+ );
19
+
20
+ exports.IntInput = IntInput;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk4ZJRDAXG_js = require('./chunk-4ZJRDAXG.js');
3
+ var chunk3YODEBOY_js = require('./chunk-3YODEBOY.js');
4
4
  var chunk7KYAICHB_js = require('./chunk-7KYAICHB.js');
5
5
  var React = require('react');
6
6
  var jsxRuntime = require('react/jsx-runtime');
@@ -187,7 +187,7 @@ var InputNumbers = React.forwardRef(function InputNumbers2({ size, value, onValu
187
187
  "data-[hover=y]:cursor-ns-resize"
188
188
  ]),
189
189
  children: value.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
190
- chunk4ZJRDAXG_js.InputRoot,
190
+ chunk3YODEBOY_js.InputRoot,
191
191
  {
192
192
  ref: (r) => {
193
193
  inputs.current.set(index.toString(), r);
@@ -218,7 +218,7 @@ var InputNumbers = React.forwardRef(function InputNumbers2({ size, value, onValu
218
218
  "group-data-[hover=y]/number-input:cursor-ns-resize"
219
219
  ]),
220
220
  children: /* @__PURE__ */ jsxRuntime.jsx(
221
- chunk4ZJRDAXG_js.InputSlot,
221
+ chunk3YODEBOY_js.InputSlot,
222
222
  {
223
223
  className: chunk7KYAICHB_js.cn(
224
224
  "cursor-text",
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var chunk6AWSAY7A_js = require('./chunk-6AWSAY7A.js');
4
+ var react = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var EulerDegInput = react.forwardRef(
8
+ function EulerDegInput2(props, ref) {
9
+ return /* @__PURE__ */ jsxRuntime.jsx(
10
+ chunk6AWSAY7A_js.EulerInput,
11
+ {
12
+ ref,
13
+ unit: "deg",
14
+ ...props
15
+ }
16
+ );
17
+ }
18
+ );
19
+
20
+ exports.EulerDegInput = EulerDegInput;
@@ -0,0 +1,18 @@
1
+ import { NumberInput } from './chunk-JHHA2CGJ.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var InchInput = forwardRef(
6
+ function InchInput2(props, ref) {
7
+ return /* @__PURE__ */ jsx(
8
+ NumberInput,
9
+ {
10
+ ref,
11
+ unit: "in",
12
+ ...props
13
+ }
14
+ );
15
+ }
16
+ );
17
+
18
+ export { InchInput };
@@ -0,0 +1,18 @@
1
+ import { EulerInput } from './chunk-ICRVQLUS.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var EulerDegInput = forwardRef(
6
+ function EulerDegInput2(props, ref) {
7
+ return /* @__PURE__ */ jsx(
8
+ EulerInput,
9
+ {
10
+ ref,
11
+ unit: "deg",
12
+ ...props
13
+ }
14
+ );
15
+ }
16
+ );
17
+
18
+ export { EulerDegInput };
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var chunk7TD2RBQJ_js = require('./chunk-7TD2RBQJ.js');
4
+ var react = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var VectorInput = react.forwardRef(
8
+ function VectorInput2({ labels, prefix, ...props }, ref) {
9
+ return /* @__PURE__ */ jsxRuntime.jsx(
10
+ chunk7TD2RBQJ_js.InputNumbers,
11
+ {
12
+ ref,
13
+ prefix: labels || prefix,
14
+ ...props
15
+ }
16
+ );
17
+ }
18
+ );
19
+
20
+ exports.VectorInput = VectorInput;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var chunkCPZIDU2J_js = require('./chunk-CPZIDU2J.js');
4
+ var react = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var Vec3Input = react.forwardRef(
8
+ function Vec3Input2({ value, onValuesChange, ...props }, ref) {
9
+ return /* @__PURE__ */ jsxRuntime.jsx(
10
+ chunkCPZIDU2J_js.VectorInput,
11
+ {
12
+ ref,
13
+ value,
14
+ onValuesChange,
15
+ labels: ["x", "y", "z"],
16
+ ...props
17
+ }
18
+ );
19
+ }
20
+ );
21
+
22
+ exports.Vec3Input = Vec3Input;
@@ -0,0 +1,18 @@
1
+ import { NumberInput } from './chunk-JHHA2CGJ.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var DegInput = forwardRef(
6
+ function DegInput2(props, ref) {
7
+ return /* @__PURE__ */ jsx(
8
+ NumberInput,
9
+ {
10
+ ref,
11
+ unit: "\xB0",
12
+ ...props
13
+ }
14
+ );
15
+ }
16
+ );
17
+
18
+ export { DegInput };
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var chunkIOVNKUJ6_js = require('./chunk-IOVNKUJ6.js');
4
+ var react = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var DegInput = react.forwardRef(
8
+ function DegInput2(props, ref) {
9
+ return /* @__PURE__ */ jsxRuntime.jsx(
10
+ chunkIOVNKUJ6_js.NumberInput,
11
+ {
12
+ ref,
13
+ unit: "\xB0",
14
+ ...props
15
+ }
16
+ );
17
+ }
18
+ );
19
+
20
+ exports.DegInput = DegInput;
@@ -3,7 +3,7 @@
3
3
  var chunkILJK43VJ_js = require('./chunk-ILJK43VJ.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
 
6
- var PACKAGE_VERSION = "0.0.37" ;
6
+ var PACKAGE_VERSION = "0.0.40" ;
7
7
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
8
8
  function VersionBadge({
9
9
  className,
@@ -3,14 +3,14 @@
3
3
  var chunkCZBGKVGH_js = require('./chunk-CZBGKVGH.js');
4
4
  var chunkW3AIC7FW_js = require('./chunk-W3AIC7FW.js');
5
5
  var chunkKCA5PXNO_js = require('./chunk-KCA5PXNO.js');
6
- var chunk4ZJRDAXG_js = require('./chunk-4ZJRDAXG.js');
6
+ var chunk3YODEBOY_js = require('./chunk-3YODEBOY.js');
7
7
  var chunkKDRYDUQT_js = require('./chunk-KDRYDUQT.js');
8
8
  var chunkUFHMEEGL_js = require('./chunk-UFHMEEGL.js');
9
9
 
10
10
  // src/highlight-cursor/enhanced-components.tsx
11
11
  var CursorButton = chunkUFHMEEGL_js.withCursor(chunkKDRYDUQT_js.Button);
12
12
  var CursorTabs = chunkUFHMEEGL_js.withCursor(chunkW3AIC7FW_js.Tabs);
13
- var CursorInputRoot = chunkUFHMEEGL_js.withCursor(chunk4ZJRDAXG_js.InputRoot);
13
+ var CursorInputRoot = chunkUFHMEEGL_js.withCursor(chunk3YODEBOY_js.InputRoot);
14
14
  var CursorSelectTrigger = chunkUFHMEEGL_js.withCursor(chunkCZBGKVGH_js.SelectTrigger);
15
15
  var CursorTextarea = chunkUFHMEEGL_js.withCursor(chunkKCA5PXNO_js.Textarea);
16
16
 
@@ -0,0 +1,22 @@
1
+ import { VectorInput } from './chunk-43FK6CBY.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var EulerInput = forwardRef(
6
+ function EulerInput2({ value, onValuesChange, unit = "deg", ...props }, ref) {
7
+ const unitSymbol = unit === "deg" ? "\xB0" : "rad";
8
+ const labels = [`x${unitSymbol}`, `y${unitSymbol}`, `z${unitSymbol}`];
9
+ return /* @__PURE__ */ jsx(
10
+ VectorInput,
11
+ {
12
+ ref,
13
+ value,
14
+ onValuesChange,
15
+ labels,
16
+ ...props
17
+ }
18
+ );
19
+ }
20
+ );
21
+
22
+ export { EulerInput };
@@ -76,6 +76,7 @@ var InputRoot = forwardRef(function InputRoot2({ style, className, side, childre
76
76
  "h-full",
77
77
  "outline-none",
78
78
  "data-[side=right]:text-right",
79
+ "data-[side=center]:text-center",
79
80
  "[input[type=number]]:font-number-input",
80
81
  "[&::-webkit-inner-spin-button]:appearance-none",
81
82
  "[&::-webkit-outer-spin-button]:appearance-none"
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunk3YODEBOY_js = require('./chunk-3YODEBOY.js');
4
+ var react = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var NumberInput = react.forwardRef(
8
+ function NumberInput2({ unit, children, ...props }, ref) {
9
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunk3YODEBOY_js.InputRoot, { ref, type: "number", ...props, children: [
10
+ children,
11
+ unit && /* @__PURE__ */ jsxRuntime.jsx(chunk3YODEBOY_js.InputSlot, { side: "right", children: unit })
12
+ ] });
13
+ }
14
+ );
15
+
16
+ exports.NumberInput = NumberInput;
@@ -0,0 +1,14 @@
1
+ import { InputRoot, InputSlot } from './chunk-INX2EB5H.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+
5
+ var NumberInput = forwardRef(
6
+ function NumberInput2({ unit, children, ...props }, ref) {
7
+ return /* @__PURE__ */ jsxs(InputRoot, { ref, type: "number", ...props, children: [
8
+ children,
9
+ unit && /* @__PURE__ */ jsx(InputSlot, { side: "right", children: unit })
10
+ ] });
11
+ }
12
+ );
13
+
14
+ export { NumberInput };
@@ -1,10 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkSFFLVUWV_js = require('./chunk-SFFLVUWV.js');
3
+ var chunk72PCXNEI_js = require('./chunk-72PCXNEI.js');
4
4
  var react = require('react');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
 
7
- var colorSchemes = ["light", "dark"];
8
7
  var MEDIA = "(prefers-color-scheme: dark)";
9
8
  var isServer = typeof window === "undefined";
10
9
  var ThemeContext = react.createContext(void 0);
@@ -69,20 +68,8 @@ var Theme = ({
69
68
  if (Array.isArray(attribute)) attribute.forEach(handleAttribute);
70
69
  else handleAttribute(attribute);
71
70
  if (enableColorScheme) {
72
- let fallback = "light";
73
- const c = colorSchemes.reduce(
74
- (schema, currentValue) => {
75
- if (defaultTheme.includes(currentValue)) {
76
- fallback = currentValue;
77
- }
78
- if (resolved.includes(currentValue)) {
79
- return currentValue;
80
- }
81
- return schema;
82
- },
83
- void 0
84
- );
85
- d.style.colorScheme = c ?? fallback;
71
+ const isDark = resolved.includes("dark");
72
+ d.style.colorScheme = isDark ? "dark" : "light";
86
73
  }
87
74
  enable == null ? void 0 : enable();
88
75
  },
@@ -117,7 +104,7 @@ var Theme = ({
117
104
  const resolved = getSystemTheme(e);
118
105
  setResolvedTheme(resolved);
119
106
  if (theme === "system" && enableSystem && !forcedTheme) {
120
- applyTheme("system");
107
+ applyTheme(resolved);
121
108
  }
122
109
  },
123
110
  [theme, enableSystem, forcedTheme, applyTheme]
@@ -161,7 +148,7 @@ var Theme = ({
161
148
  ),
162
149
  children: [
163
150
  /* @__PURE__ */ jsxRuntime.jsx(
164
- chunkSFFLVUWV_js.ThemeScript,
151
+ chunk72PCXNEI_js.ThemeScript,
165
152
  {
166
153
  ...{
167
154
  forcedTheme,
@@ -0,0 +1,18 @@
1
+ import { NumberInput } from './chunk-JHHA2CGJ.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var CmInput = forwardRef(
6
+ function CmInput2(props, ref) {
7
+ return /* @__PURE__ */ jsx(
8
+ NumberInput,
9
+ {
10
+ ref,
11
+ unit: "cm",
12
+ ...props
13
+ }
14
+ );
15
+ }
16
+ );
17
+
18
+ export { CmInput };
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var chunkIOVNKUJ6_js = require('./chunk-IOVNKUJ6.js');
4
+ var react = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var TimeInput = react.forwardRef(
8
+ function TimeInput2(props, ref) {
9
+ return /* @__PURE__ */ jsxRuntime.jsx(
10
+ chunkIOVNKUJ6_js.NumberInput,
11
+ {
12
+ ref,
13
+ unit: "s",
14
+ ...props
15
+ }
16
+ );
17
+ }
18
+ );
19
+
20
+ exports.TimeInput = TimeInput;
@@ -1,4 +1,4 @@
1
- import { InputRoot, InputSlot } from './chunk-4HURANFT.mjs';
1
+ import { InputRoot, InputSlot } from './chunk-INX2EB5H.mjs';
2
2
  import { cn } from './chunk-WM2VP7MI.mjs';
3
3
  import React, { forwardRef, useRef, useState, useCallback } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,7 +1,7 @@
1
1
  import { SelectTrigger } from './chunk-TZLILQLV.mjs';
2
2
  import { Tabs } from './chunk-EXM36UYZ.mjs';
3
3
  import { Textarea } from './chunk-MWJQTO2F.mjs';
4
- import { InputRoot } from './chunk-4HURANFT.mjs';
4
+ import { InputRoot } from './chunk-INX2EB5H.mjs';
5
5
  import { Button } from './chunk-I5UCKLLT.mjs';
6
6
  import { withCursor } from './chunk-44KW6PTD.mjs';
7
7