@vuer-ai/vuer-uikit 0.0.88 → 0.0.89
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/SyncScroll/SyncScroll.cjs +3 -3
- package/dist/SyncScroll/SyncScroll.mjs +3 -3
- package/dist/SyncScroll/index.cjs +3 -3
- package/dist/SyncScroll/index.mjs +3 -3
- package/dist/{chunk-DKDXGIOU.cjs → chunk-2LIAVSDV.cjs} +2 -2
- package/dist/{chunk-VI67LD6E.mjs → chunk-3HUKXFD4.mjs} +1 -1
- package/dist/chunk-43ZAEQYD.cjs +564 -0
- package/dist/chunk-5PDZWPUI.cjs +208 -0
- package/dist/chunk-6FY4AL6N.mjs +15 -0
- package/dist/{chunk-XIAVCKC3.mjs → chunk-7YRIF5K4.mjs} +1 -1
- package/dist/chunk-AFJ6DMZW.cjs +54 -0
- package/dist/{chunk-UKSD5GPI.cjs → chunk-AI2OGSMP.cjs} +2 -2
- package/dist/{chunk-URUEOOWI.cjs → chunk-AUCWPDXH.cjs} +2 -2
- package/dist/chunk-AUENXQXS.mjs +206 -0
- package/dist/{chunk-I2UIJ23T.mjs → chunk-AXTZ2RY6.mjs} +1 -1
- package/dist/chunk-C4VVMAPU.cjs +285 -0
- package/dist/chunk-CGNTK3WP.cjs +494 -0
- package/dist/{chunk-IWS7VNJQ.mjs → chunk-D3U5PLHK.mjs} +1 -1
- package/dist/chunk-DG3DDLXZ.mjs +599 -0
- package/dist/chunk-E4AGCYEF.mjs +545 -0
- package/dist/chunk-EAQAIANE.mjs +20 -0
- package/dist/{chunk-BGYHKHMQ.mjs → chunk-FBPAIVBH.mjs} +1 -1
- package/dist/{chunk-TKV4YQPL.cjs → chunk-FR6JWEU4.cjs} +1 -1
- package/dist/chunk-G5JZGNKY.cjs +308 -0
- package/dist/{chunk-YSUCUNBJ.mjs → chunk-GMGAUN57.mjs} +1 -1
- package/dist/{chunk-LY5RLGFY.cjs → chunk-GPSSQ7XQ.cjs} +2 -2
- package/dist/chunk-H5LP5KMB.cjs +624 -0
- package/dist/{chunk-ALQIRJAV.mjs → chunk-HOF7YOYS.mjs} +1 -1
- package/dist/{chunk-NQVD3ZW4.cjs → chunk-I22QSUB7.cjs} +1 -1
- package/dist/{chunk-ZQNV64BB.cjs → chunk-IBSCKXGA.cjs} +2 -2
- package/dist/{chunk-6K3HTR4W.cjs → chunk-IPBOH3RD.cjs} +2 -2
- package/dist/chunk-ISLTDEPI.cjs +99 -0
- package/dist/{chunk-X3RZDN2C.cjs → chunk-IZNQXFZ6.cjs} +2 -2
- package/dist/{chunk-JWS7MZGX.mjs → chunk-J2RFARFN.mjs} +1 -1
- package/dist/{chunk-6NUAFTM5.cjs → chunk-JO5TYMHM.cjs} +2 -2
- package/dist/{chunk-7WS53WEO.cjs → chunk-JSUB7URV.cjs} +2 -2
- package/dist/chunk-KVRUJWH2.mjs +283 -0
- package/dist/chunk-KZP7AY75.cjs +22 -0
- package/dist/{chunk-4V5DMSTZ.mjs → chunk-LQWJ34PD.mjs} +1 -1
- package/dist/{chunk-7CP6EUTM.mjs → chunk-M7CWV3WR.mjs} +1 -1
- package/dist/{chunk-OLCFDXGF.mjs → chunk-OBYDDCUD.mjs} +1 -1
- package/dist/chunk-PDOFOJ4P.mjs +300 -0
- package/dist/{chunk-IV3CZ27Q.cjs → chunk-PHRBUOTG.cjs} +2 -2
- package/dist/{chunk-ZE7BMGJN.mjs → chunk-PXVFCVUE.mjs} +1 -1
- package/dist/{chunk-QN5Q5OCZ.mjs → chunk-QAERXYKR.mjs} +28 -4
- package/dist/{chunk-HMGDXKPW.cjs → chunk-QGGJXDBC.cjs} +2 -2
- package/dist/chunk-QKQFSQ6A.mjs +489 -0
- package/dist/{chunk-I7NPMMUG.cjs → chunk-RBKCE3N7.cjs} +28 -4
- package/dist/{chunk-VWPT77VT.mjs → chunk-SGYNKN5X.mjs} +1 -1
- package/dist/chunk-SH4FDQTB.mjs +94 -0
- package/dist/{chunk-U2CXSVXD.cjs → chunk-SJPXQV2G.cjs} +2 -2
- package/dist/{chunk-SCQQZUQV.mjs → chunk-SQBCVWEA.mjs} +1 -1
- package/dist/{chunk-72Q6YVID.cjs → chunk-TG4B5Y3I.cjs} +2 -2
- package/dist/chunk-VE3XLQLO.cjs +21 -0
- package/dist/chunk-WHRN67N6.mjs +51 -0
- package/dist/{chunk-4JAPZTNY.mjs → chunk-XTE66VZ3.mjs} +1 -1
- package/dist/dial/DialPanel.cjs +121 -0
- package/dist/dial/DialPanel.d.cts +9 -0
- package/dist/dial/DialPanel.d.ts +9 -0
- package/dist/dial/DialPanel.mjs +112 -0
- package/dist/dial/DialProvider.cjs +14 -0
- package/dist/dial/DialProvider.d.cts +48 -0
- package/dist/dial/DialProvider.d.ts +48 -0
- package/dist/dial/DialProvider.mjs +1 -0
- package/dist/dial/index.cjs +193 -0
- package/dist/dial/index.d.cts +5 -0
- package/dist/dial/index.d.ts +5 -0
- package/dist/dial/index.mjs +112 -0
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +137 -0
- package/dist/dial/wrapped-inputs/ControlledInputs.d.cts +21 -0
- package/dist/dial/wrapped-inputs/ControlledInputs.d.ts +21 -0
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +112 -0
- package/dist/dial/wrapped-inputs/DialVectorNInput.cjs +121 -0
- package/dist/dial/wrapped-inputs/DialVectorNInput.d.cts +15 -0
- package/dist/dial/wrapped-inputs/DialVectorNInput.d.ts +15 -0
- package/dist/dial/wrapped-inputs/DialVectorNInput.mjs +112 -0
- package/dist/dial/wrapped-inputs/DialWrappedInputs.cjs +161 -0
- package/dist/dial/wrapped-inputs/DialWrappedInputs.d.cts +24 -0
- package/dist/dial/wrapped-inputs/DialWrappedInputs.d.ts +24 -0
- package/dist/dial/wrapped-inputs/DialWrappedInputs.mjs +112 -0
- package/dist/dial/wrapped-inputs/index.cjs +185 -0
- package/dist/dial/wrapped-inputs/index.d.cts +4 -0
- package/dist/dial/wrapped-inputs/index.d.ts +4 -0
- package/dist/dial/wrapped-inputs/index.mjs +112 -0
- package/dist/highlight-cursor/enhanced-components.cjs +10 -10
- package/dist/highlight-cursor/enhanced-components.mjs +5 -5
- package/dist/highlight-cursor/index.cjs +10 -10
- package/dist/highlight-cursor/index.mjs +5 -5
- package/dist/hooks/index.cjs +12 -12
- package/dist/hooks/index.mjs +3 -3
- package/dist/hooks/useQueryParams.cjs +3 -3
- package/dist/hooks/useQueryParams.mjs +2 -2
- package/dist/index.cjs +475 -397
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +55 -53
- package/dist/ui/UIKitBadge.cjs +8 -8
- package/dist/ui/UIKitBadge.mjs +4 -4
- package/dist/ui/avatar.cjs +3 -3
- package/dist/ui/avatar.mjs +3 -3
- package/dist/ui/badge.cjs +3 -3
- package/dist/ui/badge.d.cts +1 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.mjs +3 -3
- package/dist/ui/button.cjs +3 -3
- package/dist/ui/button.mjs +3 -3
- package/dist/ui/card.cjs +3 -3
- package/dist/ui/card.mjs +3 -3
- package/dist/ui/checkbox.cjs +3 -3
- package/dist/ui/checkbox.mjs +3 -3
- package/dist/ui/collapsible.cjs +3 -3
- package/dist/ui/collapsible.mjs +3 -3
- package/dist/ui/drawer.cjs +3 -3
- package/dist/ui/drawer.mjs +3 -3
- package/dist/ui/dropdown.cjs +3 -3
- package/dist/ui/dropdown.mjs +3 -3
- package/dist/ui/index.cjs +390 -390
- package/dist/ui/index.mjs +52 -52
- package/dist/ui/inputs/color-input.cjs +3 -3
- package/dist/ui/inputs/color-input.mjs +3 -3
- package/dist/ui/inputs/index.cjs +39 -39
- package/dist/ui/inputs/index.mjs +18 -18
- package/dist/ui/inputs/input-numbers.cjs +5 -5
- package/dist/ui/inputs/input-numbers.d.cts +7 -2
- package/dist/ui/inputs/input-numbers.d.ts +7 -2
- package/dist/ui/inputs/input-numbers.mjs +4 -4
- package/dist/ui/inputs/input.cjs +3 -3
- package/dist/ui/inputs/input.d.cts +1 -1
- package/dist/ui/inputs/input.d.ts +1 -1
- package/dist/ui/inputs/input.mjs +3 -3
- package/dist/ui/inputs/number-inputs/CmInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/CmInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/DegInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/DegInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/EulerInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/EulerInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/InchInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/InchInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/IntInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/IntInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/KVectorInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/KVectorInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/RadInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/RadInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/TimeInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/TimeInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/Vec3Input.cjs +7 -7
- package/dist/ui/inputs/number-inputs/Vec3Input.mjs +6 -6
- package/dist/ui/inputs/number-inputs/VectorInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/VectorInput.d.cts +6 -0
- package/dist/ui/inputs/number-inputs/VectorInput.d.ts +6 -0
- package/dist/ui/inputs/number-inputs/VectorInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/index.cjs +36 -36
- package/dist/ui/inputs/number-inputs/index.mjs +17 -17
- package/dist/ui/inputs/presets-input.cjs +6 -6
- package/dist/ui/inputs/presets-input.mjs +5 -5
- package/dist/ui/label.cjs +3 -3
- package/dist/ui/label.mjs +3 -3
- package/dist/ui/layout.cjs +5 -5
- package/dist/ui/layout.mjs +4 -4
- package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +3 -3
- package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +3 -3
- package/dist/ui/layouts/dock-layout/LayoutSlots.cjs +3 -3
- package/dist/ui/layouts/dock-layout/LayoutSlots.mjs +3 -3
- package/dist/ui/layouts/dock-layout/index.cjs +3 -3
- package/dist/ui/layouts/dock-layout/index.mjs +3 -3
- package/dist/ui/layouts/index.cjs +9 -9
- package/dist/ui/layouts/index.mjs +5 -5
- package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +3 -3
- package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +3 -3
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +3 -3
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +3 -3
- package/dist/ui/layouts/liquid-layout/index.cjs +3 -3
- package/dist/ui/layouts/liquid-layout/index.mjs +3 -3
- package/dist/ui/modal.cjs +3 -3
- package/dist/ui/modal.mjs +3 -3
- package/dist/ui/navigation.cjs +3 -3
- package/dist/ui/navigation.mjs +3 -3
- package/dist/ui/pagination.cjs +3 -3
- package/dist/ui/pagination.mjs +3 -3
- package/dist/ui/panel.cjs +3 -3
- package/dist/ui/panel.mjs +3 -3
- package/dist/ui/popover.cjs +3 -3
- package/dist/ui/popover.mjs +3 -3
- package/dist/ui/radio-group.cjs +3 -3
- package/dist/ui/radio-group.mjs +3 -3
- package/dist/ui/resizable.cjs +3 -3
- package/dist/ui/resizable.mjs +3 -3
- package/dist/ui/select.cjs +3 -3
- package/dist/ui/select.d.cts +1 -1
- package/dist/ui/select.d.ts +1 -1
- package/dist/ui/select.mjs +3 -3
- package/dist/ui/separator.cjs +3 -3
- package/dist/ui/separator.mjs +3 -3
- package/dist/ui/sheet.cjs +3 -3
- package/dist/ui/sheet.mjs +3 -3
- package/dist/ui/sidebar.cjs +29 -29
- package/dist/ui/sidebar.mjs +5 -5
- package/dist/ui/simple-tree-view.cjs +3 -3
- package/dist/ui/simple-tree-view.mjs +3 -3
- package/dist/ui/skeleton.cjs +3 -3
- package/dist/ui/skeleton.mjs +3 -3
- package/dist/ui/slider.cjs +3 -3
- package/dist/ui/slider.mjs +3 -3
- package/dist/ui/switch.cjs +3 -3
- package/dist/ui/switch.mjs +3 -3
- package/dist/ui/table.cjs +3 -3
- package/dist/ui/table.mjs +3 -3
- package/dist/ui/tabs.cjs +3 -3
- package/dist/ui/tabs.mjs +3 -3
- package/dist/ui/textarea.cjs +3 -3
- package/dist/ui/textarea.d.cts +1 -1
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/textarea.mjs +3 -3
- package/dist/ui/theme/ThemeToggles.cjs +3 -3
- package/dist/ui/theme/ThemeToggles.mjs +3 -3
- package/dist/ui/theme/index.cjs +3 -3
- package/dist/ui/theme/index.mjs +3 -3
- package/dist/ui/toggle-buttons.cjs +3 -3
- package/dist/ui/toggle-buttons.mjs +3 -3
- package/dist/ui/toggle-group.cjs +3 -3
- package/dist/ui/toggle-group.mjs +3 -3
- package/dist/ui/toggle.cjs +3 -3
- package/dist/ui/toggle.mjs +3 -3
- package/dist/ui/toolbar.cjs +3 -3
- package/dist/ui/toolbar.mjs +3 -3
- package/dist/ui/tooltip.cjs +3 -3
- package/dist/ui/tooltip.mjs +3 -3
- package/dist/ui/tree-view/TreeSearchBar.cjs +3 -3
- package/dist/ui/tree-view/TreeSearchBar.mjs +3 -3
- package/dist/ui/tree-view/TreeView.cjs +3 -3
- package/dist/ui/tree-view/TreeView.mjs +3 -3
- package/dist/ui/tree-view/index.cjs +4 -4
- package/dist/ui/tree-view/index.mjs +4 -4
- package/dist/ui/tree-view-legacy.cjs +3 -3
- package/dist/ui/tree-view-legacy.mjs +3 -3
- package/dist/ui/waterfall/CursorOverlay.cjs +3 -3
- package/dist/ui/waterfall/CursorOverlay.mjs +3 -3
- package/dist/ui/waterfall/TimelineEvent.cjs +3 -3
- package/dist/ui/waterfall/TimelineEvent.mjs +3 -3
- package/dist/ui/waterfall/TimelineProcessBar.cjs +3 -3
- package/dist/ui/waterfall/TimelineProcessBar.mjs +3 -3
- package/dist/ui/waterfall/Wedges.cjs +3 -3
- package/dist/ui/waterfall/Wedges.mjs +3 -3
- package/dist/ui/waterfall/index.cjs +11 -11
- package/dist/ui/waterfall/index.mjs +10 -10
- package/package.json +1 -1
- package/dist/chunk-VFSVU357.cjs +0 -11
- package/dist/chunk-XOZ6S53T.mjs +0 -9
- package/dist/{chunk-6U6BHFK4.cjs → chunk-245M2MZD.cjs} +4 -4
- package/dist/{chunk-A2PCEL5S.mjs → chunk-4AOAH77D.mjs} +2 -2
- package/dist/{chunk-K6FXUV3A.mjs → chunk-4EGKBNF2.mjs} +1 -1
- package/dist/{chunk-7QRSUUA2.cjs → chunk-74ETKEMH.cjs} +2 -2
- package/dist/{chunk-N22BVDJM.mjs → chunk-K4DBU34E.mjs} +4 -4
- package/dist/{chunk-Q4XH2Z5M.cjs → chunk-LYZJNEOR.cjs} +1 -1
- package/dist/{chunk-U3LN5NB6.mjs → chunk-OEIF3JCH.mjs} +1 -1
- package/dist/{chunk-QUFZWF4E.cjs → chunk-POGM4FXC.cjs} +1 -1
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var chunkVBBJSIY7_cjs = require('../chunk-VBBJSIY7.cjs');
|
|
4
4
|
require('../chunk-G4FJGNY5.cjs');
|
|
5
5
|
require('../chunk-QN4N4I3Z.cjs');
|
|
6
|
+
require('../chunk-LBWMTA5T.cjs');
|
|
6
7
|
require('../chunk-Q7E73DVJ.cjs');
|
|
7
8
|
require('../chunk-JR4TVE43.cjs');
|
|
8
9
|
require('../chunk-VXZURKMQ.cjs');
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-6BOWMGFG.cjs');
|
|
10
|
+
require('../chunk-LYZJNEOR.cjs');
|
|
11
11
|
require('../chunk-YZIR6LIY.cjs');
|
|
12
|
+
require('../chunk-6BOWMGFG.cjs');
|
|
12
13
|
require('../chunk-RPTRTGC2.cjs');
|
|
13
|
-
require('../chunk-LBWMTA5T.cjs');
|
|
14
14
|
require('../chunk-OHIB3TEN.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { SyncDrag, SyncDragSlave, SyncDragSlaveX, SyncDragX, SyncDragY, SyncScroll, SyncScrollSlave } from '../chunk-BEJIZ56L.mjs';
|
|
2
2
|
import '../chunk-SAGQV2YZ.mjs';
|
|
3
3
|
import '../chunk-F7ZHPSLA.mjs';
|
|
4
|
+
import '../chunk-IDUVYPN7.mjs';
|
|
4
5
|
import '../chunk-3QT5VABC.mjs';
|
|
5
6
|
import '../chunk-XHJDRQD7.mjs';
|
|
6
7
|
import '../chunk-LQOPO4KU.mjs';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-IZARTVYN.mjs';
|
|
8
|
+
import '../chunk-OEIF3JCH.mjs';
|
|
9
9
|
import '../chunk-VA4LUFKD.mjs';
|
|
10
|
+
import '../chunk-IZARTVYN.mjs';
|
|
10
11
|
import '../chunk-4F2GSF2T.mjs';
|
|
11
|
-
import '../chunk-IDUVYPN7.mjs';
|
|
12
12
|
import '../chunk-HMN4IKTG.mjs';
|
|
@@ -4,14 +4,14 @@ require('../chunk-JMCH2AFN.cjs');
|
|
|
4
4
|
var chunkVBBJSIY7_cjs = require('../chunk-VBBJSIY7.cjs');
|
|
5
5
|
var chunkG4FJGNY5_cjs = require('../chunk-G4FJGNY5.cjs');
|
|
6
6
|
require('../chunk-QN4N4I3Z.cjs');
|
|
7
|
+
require('../chunk-LBWMTA5T.cjs');
|
|
7
8
|
require('../chunk-Q7E73DVJ.cjs');
|
|
8
9
|
require('../chunk-JR4TVE43.cjs');
|
|
9
10
|
require('../chunk-VXZURKMQ.cjs');
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-6BOWMGFG.cjs');
|
|
11
|
+
require('../chunk-LYZJNEOR.cjs');
|
|
12
12
|
require('../chunk-YZIR6LIY.cjs');
|
|
13
|
+
require('../chunk-6BOWMGFG.cjs');
|
|
13
14
|
require('../chunk-RPTRTGC2.cjs');
|
|
14
|
-
require('../chunk-LBWMTA5T.cjs');
|
|
15
15
|
require('../chunk-OHIB3TEN.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
@@ -2,12 +2,12 @@ import '../chunk-BNDRHLLZ.mjs';
|
|
|
2
2
|
export { SyncDrag, SyncDragSlave, SyncDragSlaveX, SyncDragX, SyncDragY, SyncScroll, SyncScrollSlave } from '../chunk-BEJIZ56L.mjs';
|
|
3
3
|
export { SyncScrollProvider, useScrollSlave, useSyncDrag, useSyncScroll } from '../chunk-SAGQV2YZ.mjs';
|
|
4
4
|
import '../chunk-F7ZHPSLA.mjs';
|
|
5
|
+
import '../chunk-IDUVYPN7.mjs';
|
|
5
6
|
import '../chunk-3QT5VABC.mjs';
|
|
6
7
|
import '../chunk-XHJDRQD7.mjs';
|
|
7
8
|
import '../chunk-LQOPO4KU.mjs';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-IZARTVYN.mjs';
|
|
9
|
+
import '../chunk-OEIF3JCH.mjs';
|
|
10
10
|
import '../chunk-VA4LUFKD.mjs';
|
|
11
|
+
import '../chunk-IZARTVYN.mjs';
|
|
11
12
|
import '../chunk-4F2GSF2T.mjs';
|
|
12
|
-
import '../chunk-IDUVYPN7.mjs';
|
|
13
13
|
import '../chunk-HMN4IKTG.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRBKCE3N7_cjs = require('./chunk-RBKCE3N7.cjs');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ var IntInput = react.forwardRef(function IntInput2({ value = 0, onChange, ...pro
|
|
|
22
22
|
[onChange]
|
|
23
23
|
);
|
|
24
24
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25
|
-
|
|
25
|
+
chunkRBKCE3N7_cjs.InputNumbers,
|
|
26
26
|
{
|
|
27
27
|
ref,
|
|
28
28
|
value: [value],
|
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkGPSSQ7XQ_cjs = require('./chunk-GPSSQ7XQ.cjs');
|
|
4
|
+
var chunkTG4B5Y3I_cjs = require('./chunk-TG4B5Y3I.cjs');
|
|
5
|
+
var chunkJO5TYMHM_cjs = require('./chunk-JO5TYMHM.cjs');
|
|
6
|
+
var chunkJSUB7URV_cjs = require('./chunk-JSUB7URV.cjs');
|
|
7
|
+
var chunkAI2OGSMP_cjs = require('./chunk-AI2OGSMP.cjs');
|
|
8
|
+
var chunkIBSCKXGA_cjs = require('./chunk-IBSCKXGA.cjs');
|
|
9
|
+
var chunkPHRBUOTG_cjs = require('./chunk-PHRBUOTG.cjs');
|
|
10
|
+
var chunk2LIAVSDV_cjs = require('./chunk-2LIAVSDV.cjs');
|
|
11
|
+
var chunkAUCWPDXH_cjs = require('./chunk-AUCWPDXH.cjs');
|
|
12
|
+
var chunkKZP7AY75_cjs = require('./chunk-KZP7AY75.cjs');
|
|
13
|
+
var chunkSJPXQV2G_cjs = require('./chunk-SJPXQV2G.cjs');
|
|
14
|
+
var chunkVJN3GGLZ_cjs = require('./chunk-VJN3GGLZ.cjs');
|
|
15
|
+
var chunkM4IHJGJE_cjs = require('./chunk-M4IHJGJE.cjs');
|
|
16
|
+
var chunkI22QSUB7_cjs = require('./chunk-I22QSUB7.cjs');
|
|
17
|
+
var chunkAFJ6DMZW_cjs = require('./chunk-AFJ6DMZW.cjs');
|
|
18
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
19
|
+
|
|
20
|
+
var DialInputWrapper = ({ label, column = false, children }) => {
|
|
21
|
+
if (!label) {
|
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
23
|
+
}
|
|
24
|
+
const orientation = column ? "horizontal" : "vertical";
|
|
25
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkI22QSUB7_cjs.Layout, { orientation, align: "center", children: [
|
|
26
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkM4IHJGJE_cjs.Label, { size: "sm", children: label }),
|
|
27
|
+
/* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children })
|
|
28
|
+
] });
|
|
29
|
+
};
|
|
30
|
+
var DialVec3Input = ({
|
|
31
|
+
name,
|
|
32
|
+
label,
|
|
33
|
+
size = "sm",
|
|
34
|
+
step,
|
|
35
|
+
column = false
|
|
36
|
+
}) => {
|
|
37
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
38
|
+
const value = getValue(name) ?? [0, 0, 0];
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
+
chunkJO5TYMHM_cjs.Vec3Input,
|
|
41
|
+
{
|
|
42
|
+
value,
|
|
43
|
+
onValuesChange: (val) => setValue(name, val),
|
|
44
|
+
size,
|
|
45
|
+
step
|
|
46
|
+
}
|
|
47
|
+
) });
|
|
48
|
+
};
|
|
49
|
+
var DialEulerInput = ({
|
|
50
|
+
name,
|
|
51
|
+
label,
|
|
52
|
+
size = "sm",
|
|
53
|
+
step,
|
|
54
|
+
column = false
|
|
55
|
+
}) => {
|
|
56
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
57
|
+
const value = getValue(name) ?? [0, 0, 0];
|
|
58
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
59
|
+
chunkIBSCKXGA_cjs.EulerInput,
|
|
60
|
+
{
|
|
61
|
+
value,
|
|
62
|
+
onValuesChange: (val) => setValue(name, val),
|
|
63
|
+
size,
|
|
64
|
+
step
|
|
65
|
+
}
|
|
66
|
+
) });
|
|
67
|
+
};
|
|
68
|
+
var DialEulerDegInput = ({
|
|
69
|
+
name,
|
|
70
|
+
label,
|
|
71
|
+
size = "sm",
|
|
72
|
+
step,
|
|
73
|
+
column = false
|
|
74
|
+
}) => {
|
|
75
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
76
|
+
const value = getValue(name) ?? [0, 0, 0];
|
|
77
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
78
|
+
chunkAI2OGSMP_cjs.EulerDegInput,
|
|
79
|
+
{
|
|
80
|
+
value,
|
|
81
|
+
onValuesChange: (val) => setValue(name, val),
|
|
82
|
+
size,
|
|
83
|
+
step
|
|
84
|
+
}
|
|
85
|
+
) });
|
|
86
|
+
};
|
|
87
|
+
var DialQuaternionInput = ({
|
|
88
|
+
name,
|
|
89
|
+
label,
|
|
90
|
+
size = "sm",
|
|
91
|
+
step,
|
|
92
|
+
column = false
|
|
93
|
+
}) => {
|
|
94
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
95
|
+
const value = getValue(name) ?? [1, 0, 0, 0];
|
|
96
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
+
chunkAUCWPDXH_cjs.QuaternionInput,
|
|
98
|
+
{
|
|
99
|
+
value,
|
|
100
|
+
onValuesChange: (val) => setValue(name, val),
|
|
101
|
+
size,
|
|
102
|
+
step
|
|
103
|
+
}
|
|
104
|
+
) });
|
|
105
|
+
};
|
|
106
|
+
var DialVectorInput = ({
|
|
107
|
+
name,
|
|
108
|
+
label,
|
|
109
|
+
size = "sm",
|
|
110
|
+
step,
|
|
111
|
+
dimensions = 3,
|
|
112
|
+
column = false
|
|
113
|
+
}) => {
|
|
114
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
115
|
+
const value = getValue(name) ?? new Array(dimensions).fill(0);
|
|
116
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
117
|
+
chunkKZP7AY75_cjs.VectorInput,
|
|
118
|
+
{
|
|
119
|
+
value,
|
|
120
|
+
onValuesChange: (val) => setValue(name, val),
|
|
121
|
+
size,
|
|
122
|
+
step
|
|
123
|
+
}
|
|
124
|
+
) });
|
|
125
|
+
};
|
|
126
|
+
var DialIntInput = ({
|
|
127
|
+
name,
|
|
128
|
+
label,
|
|
129
|
+
size = "sm",
|
|
130
|
+
step = 1,
|
|
131
|
+
column = false
|
|
132
|
+
}) => {
|
|
133
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
134
|
+
const value = getValue(name) ?? 0;
|
|
135
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
136
|
+
chunk2LIAVSDV_cjs.IntInput,
|
|
137
|
+
{
|
|
138
|
+
value,
|
|
139
|
+
onChange: (val) => setValue(name, val),
|
|
140
|
+
size,
|
|
141
|
+
step
|
|
142
|
+
}
|
|
143
|
+
) });
|
|
144
|
+
};
|
|
145
|
+
var DialDegInput = ({
|
|
146
|
+
name,
|
|
147
|
+
label,
|
|
148
|
+
size = "sm",
|
|
149
|
+
step,
|
|
150
|
+
column = false
|
|
151
|
+
}) => {
|
|
152
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
153
|
+
const value = getValue(name) ?? 0;
|
|
154
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
155
|
+
chunkJSUB7URV_cjs.DegInput,
|
|
156
|
+
{
|
|
157
|
+
value,
|
|
158
|
+
onChange: (val) => setValue(name, val),
|
|
159
|
+
size,
|
|
160
|
+
step
|
|
161
|
+
}
|
|
162
|
+
) });
|
|
163
|
+
};
|
|
164
|
+
var DialRadInput = ({
|
|
165
|
+
name,
|
|
166
|
+
label,
|
|
167
|
+
size = "sm",
|
|
168
|
+
step,
|
|
169
|
+
column = false
|
|
170
|
+
}) => {
|
|
171
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
172
|
+
const value = getValue(name) ?? 0;
|
|
173
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
174
|
+
chunkGPSSQ7XQ_cjs.RadInput,
|
|
175
|
+
{
|
|
176
|
+
value,
|
|
177
|
+
onChange: (val) => setValue(name, val),
|
|
178
|
+
size,
|
|
179
|
+
step
|
|
180
|
+
}
|
|
181
|
+
) });
|
|
182
|
+
};
|
|
183
|
+
var DialCmInput = ({
|
|
184
|
+
name,
|
|
185
|
+
label,
|
|
186
|
+
size = "sm",
|
|
187
|
+
step,
|
|
188
|
+
column = false
|
|
189
|
+
}) => {
|
|
190
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
191
|
+
const value = getValue(name) ?? 0;
|
|
192
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
193
|
+
chunkSJPXQV2G_cjs.CmInput,
|
|
194
|
+
{
|
|
195
|
+
value,
|
|
196
|
+
onChange: (val) => setValue(name, val),
|
|
197
|
+
size,
|
|
198
|
+
step
|
|
199
|
+
}
|
|
200
|
+
) });
|
|
201
|
+
};
|
|
202
|
+
var DialInchInput = ({
|
|
203
|
+
name,
|
|
204
|
+
label,
|
|
205
|
+
size = "sm",
|
|
206
|
+
step,
|
|
207
|
+
column = false
|
|
208
|
+
}) => {
|
|
209
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
210
|
+
const value = getValue(name) ?? 0;
|
|
211
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
212
|
+
chunkPHRBUOTG_cjs.InchInput,
|
|
213
|
+
{
|
|
214
|
+
value,
|
|
215
|
+
onChange: (val) => setValue(name, val),
|
|
216
|
+
size,
|
|
217
|
+
step
|
|
218
|
+
}
|
|
219
|
+
) });
|
|
220
|
+
};
|
|
221
|
+
var DialTimeInput = ({
|
|
222
|
+
name,
|
|
223
|
+
label,
|
|
224
|
+
size = "sm",
|
|
225
|
+
step,
|
|
226
|
+
column = false
|
|
227
|
+
}) => {
|
|
228
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
229
|
+
const value = getValue(name) ?? 0;
|
|
230
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
231
|
+
chunkTG4B5Y3I_cjs.TimeInput,
|
|
232
|
+
{
|
|
233
|
+
value,
|
|
234
|
+
onChange: (val) => setValue(name, val),
|
|
235
|
+
size,
|
|
236
|
+
step
|
|
237
|
+
}
|
|
238
|
+
) });
|
|
239
|
+
};
|
|
240
|
+
var DialVectorNInput = ({
|
|
241
|
+
name,
|
|
242
|
+
label,
|
|
243
|
+
column = false,
|
|
244
|
+
size = "sm"
|
|
245
|
+
}) => {
|
|
246
|
+
const { getValue, setValue, schemas } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
247
|
+
const schema = schemas.find((s) => s.name === name);
|
|
248
|
+
if (!schema) {
|
|
249
|
+
return null;
|
|
250
|
+
}
|
|
251
|
+
const value = getValue(name) || [];
|
|
252
|
+
const dimensions = schema.dimensions || schema.placeholders?.length || schema.dtypes?.length || (Array.isArray(value) ? value.length : 6);
|
|
253
|
+
const placeholders = schema.placeholders || [];
|
|
254
|
+
const dtypes = schema.dtypes || [];
|
|
255
|
+
const steps = schema.steps || [];
|
|
256
|
+
const tags = schema.tags || {};
|
|
257
|
+
let gridAutoFlow;
|
|
258
|
+
let gridColumns;
|
|
259
|
+
let gridRows;
|
|
260
|
+
if (typeof tags.col === "number") {
|
|
261
|
+
gridAutoFlow = "column";
|
|
262
|
+
gridRows = tags.col;
|
|
263
|
+
gridColumns = void 0;
|
|
264
|
+
} else if (typeof tags.row === "number") {
|
|
265
|
+
gridAutoFlow = "row";
|
|
266
|
+
gridColumns = tags.row;
|
|
267
|
+
gridRows = void 0;
|
|
268
|
+
} else {
|
|
269
|
+
gridAutoFlow = "row";
|
|
270
|
+
gridColumns = void 0;
|
|
271
|
+
gridRows = void 0;
|
|
272
|
+
}
|
|
273
|
+
const vectorValue = Array.isArray(value) ? value.concat(Array(Math.max(0, dimensions - value.length)).fill(0)) : Array(dimensions).fill(0);
|
|
274
|
+
const inputSteps = Array.from({ length: dimensions }, (_, i) => {
|
|
275
|
+
if (steps[i] !== void 0) {
|
|
276
|
+
return steps[i];
|
|
277
|
+
}
|
|
278
|
+
const dtype = dtypes[i];
|
|
279
|
+
return dtype === "number-int" ? 1 : 0.01;
|
|
280
|
+
});
|
|
281
|
+
const labels = placeholders.length > 0 ? placeholders.map((p) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs", children: p })) : void 0;
|
|
282
|
+
const handleValuesChange = (newValues) => {
|
|
283
|
+
setValue(name, newValues);
|
|
284
|
+
};
|
|
285
|
+
const orientation = column ? "horizontal" : "vertical";
|
|
286
|
+
const inputComponent = /* @__PURE__ */ jsxRuntime.jsx(
|
|
287
|
+
chunkKZP7AY75_cjs.VectorInput,
|
|
288
|
+
{
|
|
289
|
+
value: vectorValue,
|
|
290
|
+
onValuesChange: handleValuesChange,
|
|
291
|
+
size,
|
|
292
|
+
step: inputSteps,
|
|
293
|
+
labels,
|
|
294
|
+
gridAutoFlow,
|
|
295
|
+
columns: gridColumns,
|
|
296
|
+
rows: gridRows
|
|
297
|
+
}
|
|
298
|
+
);
|
|
299
|
+
if (!label) {
|
|
300
|
+
return inputComponent;
|
|
301
|
+
}
|
|
302
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkI22QSUB7_cjs.Layout, { orientation, align: "start", children: [
|
|
303
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
304
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkM4IHJGJE_cjs.Label, { size: "sm", children: label }),
|
|
305
|
+
schema.helpText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
306
|
+
"span",
|
|
307
|
+
{
|
|
308
|
+
className: "text-xs text-gray-500 cursor-help",
|
|
309
|
+
title: schema.helpText,
|
|
310
|
+
children: "\u24D8"
|
|
311
|
+
}
|
|
312
|
+
)
|
|
313
|
+
] }),
|
|
314
|
+
inputComponent
|
|
315
|
+
] });
|
|
316
|
+
};
|
|
317
|
+
var DialPanel = ({ schemas }) => {
|
|
318
|
+
const groups = {};
|
|
319
|
+
const ungrouped = [];
|
|
320
|
+
schemas.forEach((schema) => {
|
|
321
|
+
const grouping = schema.tags?.grouping;
|
|
322
|
+
if (grouping) {
|
|
323
|
+
if (!groups[grouping]) {
|
|
324
|
+
groups[grouping] = [];
|
|
325
|
+
}
|
|
326
|
+
groups[grouping].push(schema);
|
|
327
|
+
} else {
|
|
328
|
+
ungrouped.push(schema);
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
const renderSchemaInput = (schema) => {
|
|
332
|
+
const { name, dtype, min, max, step, options, tags } = schema;
|
|
333
|
+
const column = tags?.col === true;
|
|
334
|
+
const label = name.charAt(0).toUpperCase() + name.slice(1);
|
|
335
|
+
switch (dtype) {
|
|
336
|
+
case "vector3":
|
|
337
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialVec3Input, { name, label, step, column }, name);
|
|
338
|
+
case "euler":
|
|
339
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialEulerDegInput, { name, label, step, column }, name);
|
|
340
|
+
case "vector":
|
|
341
|
+
case "vector-6":
|
|
342
|
+
case "number-group":
|
|
343
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialVectorNInput, { name, label, column }, name);
|
|
344
|
+
case "boolean":
|
|
345
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialBooleanInput, { name, label, col: column }, name);
|
|
346
|
+
case "number-int":
|
|
347
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialIntInput, { name, label, step: step || 1, column }, name);
|
|
348
|
+
case "number":
|
|
349
|
+
if (min !== void 0 && max !== void 0 && !options) {
|
|
350
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
351
|
+
DialSliderInput,
|
|
352
|
+
{
|
|
353
|
+
name,
|
|
354
|
+
label,
|
|
355
|
+
min,
|
|
356
|
+
max,
|
|
357
|
+
step,
|
|
358
|
+
col: column
|
|
359
|
+
},
|
|
360
|
+
name
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
if (options && options.length > 0) {
|
|
364
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialSelectInput, { name, label, options, col: column }, name);
|
|
365
|
+
}
|
|
366
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
367
|
+
DialNumberInput,
|
|
368
|
+
{
|
|
369
|
+
name,
|
|
370
|
+
label,
|
|
371
|
+
min,
|
|
372
|
+
max,
|
|
373
|
+
step,
|
|
374
|
+
col: column
|
|
375
|
+
},
|
|
376
|
+
name
|
|
377
|
+
);
|
|
378
|
+
case "string":
|
|
379
|
+
if (options && options.length > 0) {
|
|
380
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialSelectInput, { name, label, options, col: column }, name);
|
|
381
|
+
}
|
|
382
|
+
return null;
|
|
383
|
+
default:
|
|
384
|
+
return null;
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "dial-schema-renderer space-y-4", children: [
|
|
388
|
+
Object.entries(groups).map(([groupName, groupSchemas]) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "dial-group", children: [
|
|
389
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 font-medium", children: groupName }),
|
|
390
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "dial-row flex flex-row gap-4 rounded-lg bg-gray-50 p-3", children: groupSchemas.map(renderSchemaInput) })
|
|
391
|
+
] }, groupName)),
|
|
392
|
+
ungrouped.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dial-group", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dial-row flex flex-row gap-4 rounded-lg bg-gray-50 p-3", children: ungrouped.map(renderSchemaInput) }) })
|
|
393
|
+
] });
|
|
394
|
+
};
|
|
395
|
+
var DialNumberInput = ({
|
|
396
|
+
name,
|
|
397
|
+
min,
|
|
398
|
+
max,
|
|
399
|
+
step = 1,
|
|
400
|
+
label,
|
|
401
|
+
col = false
|
|
402
|
+
}) => {
|
|
403
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
404
|
+
const value = getValue(name) ?? 0;
|
|
405
|
+
const containerClass = col ? "flex flex-col gap-1" : "flex flex-row gap-2 items-center";
|
|
406
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: containerClass, children: [
|
|
407
|
+
label && /* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700", children: label || name }),
|
|
408
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
409
|
+
"input",
|
|
410
|
+
{
|
|
411
|
+
type: "number",
|
|
412
|
+
value,
|
|
413
|
+
min,
|
|
414
|
+
max,
|
|
415
|
+
step,
|
|
416
|
+
onChange: (e) => setValue(name, parseFloat(e.target.value)),
|
|
417
|
+
className: "px-2 py-1 border rounded-md text-sm"
|
|
418
|
+
}
|
|
419
|
+
)
|
|
420
|
+
] });
|
|
421
|
+
};
|
|
422
|
+
var DialVectorInput2 = ({
|
|
423
|
+
name,
|
|
424
|
+
min,
|
|
425
|
+
max,
|
|
426
|
+
step = 0.1,
|
|
427
|
+
label,
|
|
428
|
+
col = false,
|
|
429
|
+
dimensions = 3
|
|
430
|
+
}) => {
|
|
431
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
432
|
+
const value = getValue(name) ?? new Array(dimensions).fill(0);
|
|
433
|
+
const handleChange = (index, newValue) => {
|
|
434
|
+
const updated = [...value];
|
|
435
|
+
updated[index] = newValue;
|
|
436
|
+
setValue(name, updated);
|
|
437
|
+
};
|
|
438
|
+
const containerClass = col ? "flex flex-col gap-2" : "flex flex-row gap-2 items-center";
|
|
439
|
+
const labels = ["x", "y", "z", "w"];
|
|
440
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: containerClass, children: [
|
|
441
|
+
label && /* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700", children: label || name }),
|
|
442
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-2", children: value.map((v, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
443
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs text-gray-500", children: [
|
|
444
|
+
labels[i],
|
|
445
|
+
":"
|
|
446
|
+
] }),
|
|
447
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
448
|
+
"input",
|
|
449
|
+
{
|
|
450
|
+
type: "number",
|
|
451
|
+
value: v,
|
|
452
|
+
min,
|
|
453
|
+
max,
|
|
454
|
+
step,
|
|
455
|
+
onChange: (e) => handleChange(i, parseFloat(e.target.value)),
|
|
456
|
+
className: "w-20 px-2 py-1 border rounded-md text-sm"
|
|
457
|
+
}
|
|
458
|
+
)
|
|
459
|
+
] }, i)) })
|
|
460
|
+
] });
|
|
461
|
+
};
|
|
462
|
+
var DialBooleanInput = ({
|
|
463
|
+
name,
|
|
464
|
+
label,
|
|
465
|
+
col = false
|
|
466
|
+
}) => {
|
|
467
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
468
|
+
const value = getValue(name) ?? false;
|
|
469
|
+
const orientation = col ? "horizontal" : "vertical";
|
|
470
|
+
if (!label) {
|
|
471
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
472
|
+
chunkVJN3GGLZ_cjs.Switch,
|
|
473
|
+
{
|
|
474
|
+
checked: value,
|
|
475
|
+
onCheckedChange: (checked) => setValue(name, checked)
|
|
476
|
+
}
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkI22QSUB7_cjs.Layout, { orientation, align: "center", children: [
|
|
480
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkM4IHJGJE_cjs.Label, { size: "sm", children: label || name }),
|
|
481
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
482
|
+
chunkVJN3GGLZ_cjs.Switch,
|
|
483
|
+
{
|
|
484
|
+
checked: value,
|
|
485
|
+
onCheckedChange: (checked) => setValue(name, checked)
|
|
486
|
+
}
|
|
487
|
+
)
|
|
488
|
+
] });
|
|
489
|
+
};
|
|
490
|
+
var DialSelectInput = ({
|
|
491
|
+
name,
|
|
492
|
+
options = [],
|
|
493
|
+
label,
|
|
494
|
+
col = false
|
|
495
|
+
}) => {
|
|
496
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
497
|
+
const value = getValue(name);
|
|
498
|
+
const containerClass = col ? "flex flex-col gap-1" : "flex flex-row gap-2 items-center";
|
|
499
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: containerClass, children: [
|
|
500
|
+
label && /* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700", children: label || name }),
|
|
501
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
502
|
+
"select",
|
|
503
|
+
{
|
|
504
|
+
value,
|
|
505
|
+
onChange: (e) => {
|
|
506
|
+
const val = e.target.value;
|
|
507
|
+
const parsed = !isNaN(Number(val)) ? Number(val) : val;
|
|
508
|
+
setValue(name, parsed);
|
|
509
|
+
},
|
|
510
|
+
className: "px-2 py-1 border rounded-md text-sm",
|
|
511
|
+
children: options.map((opt, i) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: opt, children: opt }, i))
|
|
512
|
+
}
|
|
513
|
+
)
|
|
514
|
+
] });
|
|
515
|
+
};
|
|
516
|
+
var DialSliderInput = ({
|
|
517
|
+
name,
|
|
518
|
+
min = 0,
|
|
519
|
+
max = 100,
|
|
520
|
+
step = 1,
|
|
521
|
+
label,
|
|
522
|
+
col = false
|
|
523
|
+
}) => {
|
|
524
|
+
const { getValue, setValue } = chunkAFJ6DMZW_cjs.useDialSchema();
|
|
525
|
+
const value = getValue(name) ?? min;
|
|
526
|
+
const containerClass = col ? "flex flex-col gap-1" : "flex flex-row gap-2 items-center";
|
|
527
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: containerClass, children: [
|
|
528
|
+
label && /* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700", children: label || name }),
|
|
529
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
530
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
531
|
+
"input",
|
|
532
|
+
{
|
|
533
|
+
type: "range",
|
|
534
|
+
value,
|
|
535
|
+
min,
|
|
536
|
+
max,
|
|
537
|
+
step,
|
|
538
|
+
onChange: (e) => setValue(name, parseFloat(e.target.value)),
|
|
539
|
+
className: "flex-1"
|
|
540
|
+
}
|
|
541
|
+
),
|
|
542
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-gray-600 w-12 text-right", children: value })
|
|
543
|
+
] })
|
|
544
|
+
] });
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
exports.DialBooleanInput = DialBooleanInput;
|
|
548
|
+
exports.DialCmInput = DialCmInput;
|
|
549
|
+
exports.DialDegInput = DialDegInput;
|
|
550
|
+
exports.DialEulerDegInput = DialEulerDegInput;
|
|
551
|
+
exports.DialEulerInput = DialEulerInput;
|
|
552
|
+
exports.DialInchInput = DialInchInput;
|
|
553
|
+
exports.DialIntInput = DialIntInput;
|
|
554
|
+
exports.DialNumberInput = DialNumberInput;
|
|
555
|
+
exports.DialPanel = DialPanel;
|
|
556
|
+
exports.DialQuaternionInput = DialQuaternionInput;
|
|
557
|
+
exports.DialRadInput = DialRadInput;
|
|
558
|
+
exports.DialSelectInput = DialSelectInput;
|
|
559
|
+
exports.DialSliderInput = DialSliderInput;
|
|
560
|
+
exports.DialTimeInput = DialTimeInput;
|
|
561
|
+
exports.DialVec3Input = DialVec3Input;
|
|
562
|
+
exports.DialVectorInput = DialVectorInput2;
|
|
563
|
+
exports.DialVectorInput2 = DialVectorInput;
|
|
564
|
+
exports.DialVectorNInput = DialVectorNInput;
|