@vuer-ai/vuer-uikit 0.0.104 → 0.0.106
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 +9 -9
- package/dist/SyncScroll/SyncScroll.mjs +2 -2
- package/dist/SyncScroll/index.cjs +9 -9
- package/dist/SyncScroll/index.mjs +2 -2
- package/dist/auth/hooks/use-vuer-method.cjs +3 -3
- package/dist/auth/hooks/use-vuer-method.mjs +2 -2
- package/dist/auth/index.cjs +6 -6
- package/dist/auth/index.mjs +4 -4
- package/dist/auth/vuer-auth-provider.cjs +3 -3
- package/dist/auth/vuer-auth-provider.mjs +2 -2
- package/dist/{chunk-7WA7ZFVS.cjs → chunk-3D2DO7JG.cjs} +2 -2
- package/dist/{chunk-QZUTRJSP.mjs → chunk-BZKJA3OC.mjs} +1 -1
- package/dist/{chunk-LDFGQSE4.mjs → chunk-D422PFKZ.mjs} +2 -2
- package/dist/{chunk-2PJO5UJL.cjs → chunk-GZGPIREG.cjs} +2 -2
- package/dist/{chunk-7RHQ6DVU.cjs → chunk-MTE5PRC6.cjs} +11 -11
- package/dist/{chunk-77FMULFB.mjs → chunk-QLCSID5D.mjs} +20 -20
- package/dist/{chunk-5QDNFK4H.cjs → chunk-WMIAD3PH.cjs} +20 -20
- package/dist/{chunk-K2OC2HWQ.mjs → chunk-XV5FH2J2.mjs} +7 -7
- package/dist/dial/DialPanel.cjs +34 -34
- package/dist/dial/DialPanel.d.cts +2 -1
- package/dist/dial/DialPanel.d.ts +2 -1
- package/dist/dial/DialPanel.mjs +33 -33
- package/dist/dial/index.cjs +50 -50
- package/dist/dial/index.mjs +33 -33
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +38 -38
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +33 -33
- package/dist/dial/wrapped-inputs/DialInputs.cjs +47 -47
- package/dist/dial/wrapped-inputs/DialInputs.mjs +33 -33
- package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +34 -34
- package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +33 -33
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +34 -34
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +33 -33
- package/dist/dial/wrapped-inputs/index.cjs +54 -54
- package/dist/dial/wrapped-inputs/index.mjs +33 -33
- package/dist/highlight-cursor/cursor-provider.cjs +3 -3
- package/dist/highlight-cursor/cursor-provider.mjs +2 -2
- package/dist/highlight-cursor/enhanced-components.cjs +1 -1
- package/dist/highlight-cursor/enhanced-components.mjs +1 -1
- package/dist/highlight-cursor/index.cjs +6 -6
- package/dist/highlight-cursor/index.mjs +2 -2
- package/dist/index.cjs +149 -149
- package/dist/index.mjs +33 -33
- package/dist/ui/UIKitBadge.cjs +5 -5
- package/dist/ui/UIKitBadge.mjs +1 -1
- package/dist/ui/badge.d.cts +1 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/index.cjs +105 -105
- package/dist/ui/index.mjs +29 -29
- package/dist/ui/inputs/index.cjs +21 -21
- package/dist/ui/inputs/index.mjs +5 -5
- package/dist/ui/inputs/input.d.cts +1 -1
- package/dist/ui/inputs/input.d.ts +1 -1
- package/dist/ui/inputs/number-inputs/index.cjs +15 -15
- package/dist/ui/inputs/number-inputs/index.mjs +3 -3
- package/dist/ui/layouts/index.cjs +7 -7
- package/dist/ui/layouts/index.mjs +3 -3
- package/dist/ui/select.d.cts +1 -1
- package/dist/ui/select.d.ts +1 -1
- package/dist/ui/textarea.d.cts +1 -1
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/tree-view-legacy.cjs +7 -7
- package/dist/ui/tree-view-legacy.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/src/dial/DialPanel.tsx +16 -14
- package/dist/{chunk-XFTKHT2M.cjs → chunk-3OISKBWF.cjs} +1 -1
- package/dist/{chunk-5PDZWPUI.cjs → chunk-A5LCX2UQ.cjs} +1 -1
- package/dist/{chunk-PDOFOJ4P.mjs → chunk-BEJIZ56L.mjs} +1 -1
- package/dist/{chunk-T2D6PSA6.cjs → chunk-ESNLTYQD.cjs} +1 -1
- package/dist/{chunk-AKVHFPXH.mjs → chunk-T7XGQO7C.mjs} +1 -1
- package/dist/{chunk-5HS4PMUR.mjs → chunk-THNR4QYH.mjs} +1 -1
- package/dist/{chunk-G5JZGNKY.cjs → chunk-VBBJSIY7.cjs} +1 -1
- package/dist/{chunk-AUENXQXS.mjs → chunk-WWGF6TBZ.mjs} +1 -1
package/src/dial/DialPanel.tsx
CHANGED
|
@@ -19,9 +19,10 @@ import {
|
|
|
19
19
|
interface DialSchemaRendererProps {
|
|
20
20
|
schemas: DialSchema[];
|
|
21
21
|
groups?: DialGroupConfig[];
|
|
22
|
+
labelLayout?: LabelPositionT;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups: groupConfigs }) => {
|
|
25
|
+
export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups: groupConfigs, labelLayout }) => {
|
|
25
26
|
// Create a map of group configurations for easy lookup
|
|
26
27
|
const groupConfigMap: Record<string, DialGroupConfig> = {};
|
|
27
28
|
|
|
@@ -64,7 +65,8 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
64
65
|
// Render a single schema item as an input component
|
|
65
66
|
const renderSchemaInput = (schema: DialSchema) => {
|
|
66
67
|
const { name, dtype, min, max, step, options, tags } = schema;
|
|
67
|
-
|
|
68
|
+
// Use schema's label position if specified, otherwise fall back to panel's labelLayout prop
|
|
69
|
+
const effectiveLabelPosition = (tags?.labelPosition as LabelPositionT) || labelLayout;
|
|
68
70
|
const label = schema.label || (name.charAt(0).toUpperCase() + name.slice(1));
|
|
69
71
|
|
|
70
72
|
// Choose the right input component based on dtype
|
|
@@ -76,7 +78,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
76
78
|
name={name}
|
|
77
79
|
label={label}
|
|
78
80
|
step={step}
|
|
79
|
-
labelPosition={
|
|
81
|
+
labelPosition={effectiveLabelPosition}
|
|
80
82
|
/>
|
|
81
83
|
);
|
|
82
84
|
|
|
@@ -87,7 +89,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
87
89
|
name={name}
|
|
88
90
|
label={label}
|
|
89
91
|
step={step}
|
|
90
|
-
labelPosition={
|
|
92
|
+
labelPosition={effectiveLabelPosition}
|
|
91
93
|
/>
|
|
92
94
|
);
|
|
93
95
|
|
|
@@ -98,7 +100,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
98
100
|
name={name}
|
|
99
101
|
label={label}
|
|
100
102
|
step={step}
|
|
101
|
-
labelPosition={
|
|
103
|
+
labelPosition={effectiveLabelPosition}
|
|
102
104
|
/>
|
|
103
105
|
);
|
|
104
106
|
|
|
@@ -110,7 +112,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
110
112
|
|
|
111
113
|
case "boolean":
|
|
112
114
|
return (
|
|
113
|
-
<DialBooleanInput key={name} name={name} label={label} labelPosition={
|
|
115
|
+
<DialBooleanInput key={name} name={name} label={label} labelPosition={effectiveLabelPosition} />
|
|
114
116
|
);
|
|
115
117
|
|
|
116
118
|
case "number-slider":
|
|
@@ -123,7 +125,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
123
125
|
min={min}
|
|
124
126
|
max={max}
|
|
125
127
|
step={step}
|
|
126
|
-
labelPosition={
|
|
128
|
+
labelPosition={effectiveLabelPosition}
|
|
127
129
|
/>
|
|
128
130
|
);
|
|
129
131
|
|
|
@@ -135,7 +137,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
135
137
|
name={name}
|
|
136
138
|
label={label}
|
|
137
139
|
step={step || 1}
|
|
138
|
-
labelPosition={
|
|
140
|
+
labelPosition={effectiveLabelPosition}
|
|
139
141
|
/>
|
|
140
142
|
);
|
|
141
143
|
|
|
@@ -147,7 +149,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
147
149
|
name={name}
|
|
148
150
|
label={label}
|
|
149
151
|
step={step}
|
|
150
|
-
labelPosition={
|
|
152
|
+
labelPosition={effectiveLabelPosition}
|
|
151
153
|
/>
|
|
152
154
|
);
|
|
153
155
|
|
|
@@ -162,7 +164,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
162
164
|
min={min}
|
|
163
165
|
max={max}
|
|
164
166
|
step={step}
|
|
165
|
-
labelPosition={
|
|
167
|
+
labelPosition={effectiveLabelPosition}
|
|
166
168
|
/>
|
|
167
169
|
);
|
|
168
170
|
}
|
|
@@ -175,7 +177,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
175
177
|
name={name}
|
|
176
178
|
label={label}
|
|
177
179
|
options={options}
|
|
178
|
-
labelPosition={
|
|
180
|
+
labelPosition={effectiveLabelPosition}
|
|
179
181
|
/>
|
|
180
182
|
);
|
|
181
183
|
}
|
|
@@ -189,7 +191,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
189
191
|
min={min}
|
|
190
192
|
max={max}
|
|
191
193
|
step={step}
|
|
192
|
-
labelPosition={
|
|
194
|
+
labelPosition={effectiveLabelPosition}
|
|
193
195
|
/>
|
|
194
196
|
);
|
|
195
197
|
|
|
@@ -206,7 +208,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
206
208
|
name={name}
|
|
207
209
|
label={label}
|
|
208
210
|
options={options}
|
|
209
|
-
labelPosition={
|
|
211
|
+
labelPosition={effectiveLabelPosition}
|
|
210
212
|
/>
|
|
211
213
|
);
|
|
212
214
|
}
|
|
@@ -217,7 +219,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
217
219
|
name={name}
|
|
218
220
|
label={label}
|
|
219
221
|
placeholder={`Enter ${label.toLowerCase()}`}
|
|
220
|
-
labelPosition={
|
|
222
|
+
labelPosition={effectiveLabelPosition}
|
|
221
223
|
/>
|
|
222
224
|
);
|
|
223
225
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunk4B44SRRP_cjs = require('./chunk-4B44SRRP.cjs');
|
|
3
4
|
var chunkPB4UO2NR_cjs = require('./chunk-PB4UO2NR.cjs');
|
|
4
5
|
var chunk4CPB3XHE_cjs = require('./chunk-4CPB3XHE.cjs');
|
|
5
|
-
var chunk4B44SRRP_cjs = require('./chunk-4B44SRRP.cjs');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
|
|
8
8
|
var useVuerMethod = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkP6DICGAV_cjs = require('./chunk-P6DICGAV.cjs');
|
|
4
3
|
var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
|
|
4
|
+
var chunkP6DICGAV_cjs = require('./chunk-P6DICGAV.cjs');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var reactDom = require('react-dom');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
2
1
|
import { useSyncScroll, useScrollSlave, useSyncDrag } from './chunk-SAGQV2YZ.mjs';
|
|
2
|
+
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
3
3
|
import { Slot } from '@radix-ui/react-slot';
|
|
4
4
|
import { useState, useRef, useEffect } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkWTYBTOLO_cjs = require('./chunk-WTYBTOLO.cjs');
|
|
4
3
|
var chunkZULCZ5L6_cjs = require('./chunk-ZULCZ5L6.cjs');
|
|
4
|
+
var chunkWTYBTOLO_cjs = require('./chunk-WTYBTOLO.cjs');
|
|
5
5
|
var chunkSVWS4AL6_cjs = require('./chunk-SVWS4AL6.cjs');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { useVuerAuth } from './chunk-3IVDCAFM.mjs';
|
|
1
2
|
import { signInHandler } from './chunk-XGM57WPN.mjs';
|
|
2
3
|
import { signOutHandler } from './chunk-CGODCUQ5.mjs';
|
|
3
|
-
import { useVuerAuth } from './chunk-3IVDCAFM.mjs';
|
|
4
4
|
import { useCallback, useMemo } from 'react';
|
|
5
5
|
|
|
6
6
|
var useVuerMethod = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getSession } from './chunk-T57VFBIC.mjs';
|
|
2
1
|
import { AuthContext } from './chunk-TC3W4VRO.mjs';
|
|
2
|
+
import { getSession } from './chunk-T57VFBIC.mjs';
|
|
3
3
|
import { bearerToken } from './chunk-276VJZCV.mjs';
|
|
4
4
|
import { useState, useCallback, useEffect, useMemo } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
|
|
4
3
|
var chunkG4FJGNY5_cjs = require('./chunk-G4FJGNY5.cjs');
|
|
4
|
+
var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
|
|
5
5
|
var reactSlot = require('@radix-ui/react-slot');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CursorContext } from './chunk-3FR3WKI4.mjs';
|
|
2
1
|
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
2
|
+
import { CursorContext } from './chunk-3FR3WKI4.mjs';
|
|
3
3
|
import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|