@vuer-ai/vuer-uikit 0.0.38 → 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.
- package/dist/chunk-2QBMOSVM.js +22 -0
- package/dist/chunk-3LJI6I2O.mjs +20 -0
- package/dist/{chunk-KQ6LMA4V.mjs → chunk-3QG5RA46.mjs} +1 -1
- package/dist/{chunk-4ZJRDAXG.js → chunk-3YODEBOY.js} +1 -0
- package/dist/chunk-43FK6CBY.mjs +18 -0
- package/dist/chunk-4PWIOKV6.mjs +18 -0
- package/dist/chunk-4UGXCXXM.mjs +18 -0
- package/dist/chunk-5UHOCEWC.mjs +18 -0
- package/dist/chunk-6AWSAY7A.js +24 -0
- package/dist/chunk-6N2Q4EQ2.js +20 -0
- package/dist/chunk-6N3UJ4AX.mjs +20 -0
- package/dist/chunk-7KVGTDDO.js +20 -0
- package/dist/{chunk-PBQSATSN.js → chunk-7TD2RBQJ.js} +3 -3
- package/dist/chunk-A77ETENM.js +20 -0
- package/dist/chunk-AB4GGLJ5.mjs +18 -0
- package/dist/chunk-ADOYBPJS.mjs +18 -0
- package/dist/chunk-CPZIDU2J.js +20 -0
- package/dist/chunk-E2UGNYWU.js +22 -0
- package/dist/chunk-EGYK5FED.mjs +18 -0
- package/dist/chunk-EJ7D53ZF.js +20 -0
- package/dist/{chunk-4LJVGD5N.js → chunk-FWXGL3VA.js} +1 -1
- package/dist/{chunk-WCK3EIS2.js → chunk-HE63LZKF.js} +2 -2
- package/dist/chunk-ICRVQLUS.mjs +22 -0
- package/dist/{chunk-4HURANFT.mjs → chunk-INX2EB5H.mjs} +1 -0
- package/dist/chunk-IOVNKUJ6.js +16 -0
- package/dist/chunk-JHHA2CGJ.mjs +14 -0
- package/dist/{chunk-DCURVZQ2.js → chunk-KEVAPLWO.js} +1 -1
- package/dist/chunk-LCS67P4A.mjs +18 -0
- package/dist/chunk-LD32BCCX.js +20 -0
- package/dist/{chunk-HQX4LDOI.mjs → chunk-LZE22ZNH.mjs} +1 -1
- package/dist/{chunk-VN2N7EAO.mjs → chunk-M3S7NSGR.mjs} +1 -1
- package/dist/chunk-MYRZ2ZV5.mjs +21 -0
- package/dist/{chunk-ZEK2T25J.mjs → chunk-MZDJH3M7.mjs} +1 -1
- package/dist/chunk-NACWD4CC.js +2 -0
- package/dist/chunk-NBG65POR.js +20 -0
- package/dist/chunk-TBFX36YV.mjs +18 -0
- package/dist/chunk-TPX5AJ7Z.js +23 -0
- package/dist/chunk-TWQSUO5Q.js +20 -0
- package/dist/chunk-UQQPHWTA.js +20 -0
- package/dist/chunk-YRM45Z7N.mjs +1 -0
- package/dist/highlight-cursor/enhanced-components.js +7 -7
- package/dist/highlight-cursor/enhanced-components.mjs +2 -2
- package/dist/highlight-cursor/index.js +7 -7
- package/dist/highlight-cursor/index.mjs +2 -2
- package/dist/index.css +3 -3
- package/dist/index.js +95 -24
- package/dist/index.mjs +22 -7
- package/dist/styles/theme.css +3 -3
- package/dist/styles/variables.css +2 -2
- package/dist/ui/form/CmInput.js +18 -0
- package/dist/ui/form/CmInput.mjs +9 -0
- package/dist/ui/form/DegInput.js +18 -0
- package/dist/ui/form/DegInput.mjs +9 -0
- package/dist/ui/form/EulerDegInput.js +20 -0
- package/dist/ui/form/EulerDegInput.mjs +11 -0
- package/dist/ui/form/EulerInput.js +19 -0
- package/dist/ui/form/EulerInput.mjs +10 -0
- package/dist/ui/form/EulerRadInput.js +20 -0
- package/dist/ui/form/EulerRadInput.mjs +11 -0
- package/dist/ui/form/InchInput.js +18 -0
- package/dist/ui/form/InchInput.mjs +9 -0
- package/dist/ui/form/IntInput.js +18 -0
- package/dist/ui/form/IntInput.mjs +9 -0
- package/dist/ui/form/KVectorInput.js +19 -0
- package/dist/ui/form/KVectorInput.mjs +10 -0
- package/dist/ui/form/NumberInput.js +17 -0
- package/dist/ui/form/NumberInput.mjs +8 -0
- package/dist/ui/form/QuaternionInput.js +19 -0
- package/dist/ui/form/QuaternionInput.mjs +10 -0
- package/dist/ui/form/RadInput.js +18 -0
- package/dist/ui/form/RadInput.mjs +9 -0
- package/dist/ui/form/TimeInput.js +18 -0
- package/dist/ui/form/TimeInput.mjs +9 -0
- package/dist/ui/form/Vec3Input.js +19 -0
- package/dist/ui/form/Vec3Input.mjs +10 -0
- package/dist/ui/form/VectorInput.js +18 -0
- package/dist/ui/form/VectorInput.mjs +9 -0
- package/dist/ui/form/index.js +84 -0
- package/dist/ui/form/index.mjs +23 -0
- package/dist/ui/index.js +89 -18
- package/dist/ui/index.mjs +21 -6
- package/dist/ui/input-numbers.js +3 -3
- package/dist/ui/input-numbers.mjs +2 -2
- package/dist/ui/input.js +3 -3
- package/dist/ui/input.mjs +1 -1
- package/dist/ui/theme/ThemeProvider.js +3 -3
- package/dist/ui/theme/ThemeProvider.mjs +1 -1
- package/dist/ui/theme/index.js +3 -3
- package/dist/ui/theme/index.mjs +1 -1
- package/dist/ui/version-badge.js +2 -2
- package/dist/ui/version-badge.mjs +1 -1
- package/package.json +1 -1
- package/src/styles/theme.css +1 -1
- package/src/styles/variables.css +2 -2
- package/src/ui/form/CmInput.tsx +19 -0
- package/src/ui/form/DegInput.tsx +19 -0
- package/src/ui/form/EulerDegInput.tsx +19 -0
- package/src/ui/form/EulerInput.tsx +28 -0
- package/src/ui/form/EulerRadInput.tsx +19 -0
- package/src/ui/form/InchInput.tsx +19 -0
- package/src/ui/form/IntInput.tsx +19 -0
- package/src/ui/form/KVectorInput.tsx +25 -0
- package/src/ui/form/NumberInput.tsx +24 -0
- package/src/ui/form/QuaternionInput.tsx +24 -0
- package/src/ui/form/RadInput.tsx +19 -0
- package/src/ui/form/TimeInput.tsx +19 -0
- package/src/ui/form/Vec3Input.tsx +24 -0
- package/src/ui/form/VectorInput.tsx +23 -0
- package/src/ui/form/index.ts +41 -0
- package/src/ui/index.ts +1 -0
- package/src/ui/input.tsx +3 -2
- package/src/ui/theme/ThemeProvider.tsx +1 -1
- /package/dist/{chunk-2TBYBUF4.js → chunk-GVDU3F7X.js} +0 -0
- /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 };
|
|
@@ -102,7 +102,7 @@ var Theme = ({
|
|
|
102
102
|
const resolved = getSystemTheme(e);
|
|
103
103
|
setResolvedTheme(resolved);
|
|
104
104
|
if (theme === "system" && enableSystem && !forcedTheme) {
|
|
105
|
-
applyTheme(
|
|
105
|
+
applyTheme(resolved);
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
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 };
|
|
@@ -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
|
|
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
|
-
|
|
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
|
-
|
|
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,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
|
|
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(
|
|
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 };
|
|
@@ -104,7 +104,7 @@ var Theme = ({
|
|
|
104
104
|
const resolved = getSystemTheme(e);
|
|
105
105
|
setResolvedTheme(resolved);
|
|
106
106
|
if (theme === "system" && enableSystem && !forcedTheme) {
|
|
107
|
-
applyTheme(
|
|
107
|
+
applyTheme(resolved);
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
[theme, enableSystem, forcedTheme, applyTheme]
|
|
@@ -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-
|
|
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-
|
|
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
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VectorInput } from './chunk-43FK6CBY.mjs';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var KVectorInput = forwardRef(
|
|
6
|
+
function KVectorInput2({ value, dimensions, ...props }, ref) {
|
|
7
|
+
const k = dimensions || value.length;
|
|
8
|
+
const labels = Array.from({ length: k }, (_, i) => `${i}`);
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
VectorInput,
|
|
11
|
+
{
|
|
12
|
+
ref,
|
|
13
|
+
value,
|
|
14
|
+
labels,
|
|
15
|
+
...props
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export { KVectorInput };
|
|
@@ -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 EulerRadInput = react.forwardRef(
|
|
8
|
+
function EulerRadInput2(props, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10
|
+
chunk6AWSAY7A_js.EulerInput,
|
|
11
|
+
{
|
|
12
|
+
ref,
|
|
13
|
+
unit: "rad",
|
|
14
|
+
...props
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
exports.EulerRadInput = EulerRadInput;
|
|
@@ -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 EulerRadInput = forwardRef(
|
|
6
|
+
function EulerRadInput2(props, ref) {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
EulerInput,
|
|
9
|
+
{
|
|
10
|
+
ref,
|
|
11
|
+
unit: "rad",
|
|
12
|
+
...props
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export { EulerRadInput };
|
|
@@ -0,0 +1,23 @@
|
|
|
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 KVectorInput = react.forwardRef(
|
|
8
|
+
function KVectorInput2({ value, dimensions, ...props }, ref) {
|
|
9
|
+
const k = dimensions || value.length;
|
|
10
|
+
const labels = Array.from({ length: k }, (_, i) => `${i}`);
|
|
11
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12
|
+
chunkCPZIDU2J_js.VectorInput,
|
|
13
|
+
{
|
|
14
|
+
ref,
|
|
15
|
+
value,
|
|
16
|
+
labels,
|
|
17
|
+
...props
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
exports.KVectorInput = KVectorInput;
|