@vuer-ai/vuer-uikit 0.0.99 → 0.0.101
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-LPA6WYFD.cjs +26 -0
- package/dist/{chunk-OEI7NCF6.cjs → chunk-M5UZ3SBY.cjs} +46 -2
- package/dist/{chunk-QHPFLC2O.mjs → chunk-MEE3IHTT.mjs} +46 -3
- package/dist/{chunk-WIGYDOHM.cjs → chunk-QBFOBDBC.cjs} +2 -2
- package/dist/chunk-TPPM276W.mjs +24 -0
- package/dist/{chunk-XMFU7SDD.mjs → chunk-VO3C6RE2.mjs} +2 -2
- package/dist/dial/DialPanel.cjs +17 -16
- package/dist/dial/DialPanel.mjs +16 -15
- package/dist/dial/index.cjs +33 -32
- package/dist/dial/index.mjs +16 -15
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +20 -19
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +16 -15
- package/dist/dial/wrapped-inputs/DialInputs.cjs +31 -26
- package/dist/dial/wrapped-inputs/DialInputs.d.cts +4 -1
- package/dist/dial/wrapped-inputs/DialInputs.d.ts +4 -1
- package/dist/dial/wrapped-inputs/DialInputs.mjs +16 -15
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +17 -16
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +16 -15
- package/dist/dial/wrapped-inputs/index.cjs +36 -31
- package/dist/dial/wrapped-inputs/index.d.cts +1 -1
- package/dist/dial/wrapped-inputs/index.d.ts +1 -1
- package/dist/dial/wrapped-inputs/index.mjs +16 -15
- package/dist/highlight-cursor/enhanced-components.cjs +4 -4
- package/dist/highlight-cursor/enhanced-components.mjs +4 -4
- package/dist/highlight-cursor/index.cjs +8 -8
- package/dist/highlight-cursor/index.mjs +4 -4
- 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 +105 -100
- package/dist/index.css +7 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +16 -15
- package/dist/ui/DialBadge.cjs +3 -3
- package/dist/ui/DialBadge.mjs +3 -3
- 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.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 +73 -68
- package/dist/ui/index.d.cts +1 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.mjs +14 -13
- package/dist/ui/inputs/color-input.cjs +3 -3
- package/dist/ui/inputs/color-input.mjs +3 -3
- package/dist/ui/inputs/index.cjs +14 -9
- package/dist/ui/inputs/index.d.cts +1 -0
- package/dist/ui/inputs/index.d.ts +1 -0
- package/dist/ui/inputs/index.mjs +6 -5
- package/dist/ui/inputs/input-numbers.cjs +3 -3
- package/dist/ui/inputs/input-numbers.mjs +3 -3
- package/dist/ui/inputs/input.cjs +3 -3
- package/dist/ui/inputs/input.mjs +3 -3
- package/dist/ui/inputs/number-inputs/CmInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/CmInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/DegInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/DegInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/EulerInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/EulerInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/InchInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/InchInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/IntInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/IntInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/KVectorInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/KVectorInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/RadInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/RadInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/TimeInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/TimeInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/Vec3Input.cjs +3 -3
- package/dist/ui/inputs/number-inputs/Vec3Input.mjs +3 -3
- package/dist/ui/inputs/number-inputs/VectorInput.cjs +3 -3
- package/dist/ui/inputs/number-inputs/VectorInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/index.cjs +8 -8
- package/dist/ui/inputs/number-inputs/index.mjs +4 -4
- package/dist/ui/inputs/presets-input.cjs +3 -3
- package/dist/ui/inputs/presets-input.mjs +3 -3
- package/dist/ui/inputs/text-input.cjs +21 -0
- package/dist/ui/inputs/text-input.d.cts +27 -0
- package/dist/ui/inputs/text-input.d.ts +27 -0
- package/dist/ui/inputs/text-input.mjs +12 -0
- package/dist/ui/label.cjs +3 -3
- package/dist/ui/label.mjs +3 -3
- package/dist/ui/layout.cjs +3 -3
- package/dist/ui/layout.mjs +3 -3
- 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.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 +28 -28
- package/dist/ui/sidebar.mjs +4 -4
- 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.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 +3 -3
- package/dist/ui/tree-view/index.mjs +3 -3
- 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 +8 -8
- package/dist/ui/waterfall/index.mjs +7 -7
- package/package.json +1 -5
- package/src/dial/DialPanel.tsx +12 -2
- package/src/dial/wrapped-inputs/DialInputs.tsx +36 -0
- package/src/dial/wrapped-inputs/index.ts +1 -0
- package/src/ui/inputs/index.tsx +1 -0
- package/src/ui/inputs/text-input.tsx +43 -0
- package/dial-cli/README.md +0 -137
- package/dial-cli/dial-cli.ts +0 -1136
- package/dial-cli/dist/dial-cli.js +0 -838
- package/dial-cli/node_modules/.bin/api-extractor +0 -17
- package/dial-cli/node_modules/.bin/jiti +0 -17
- package/dial-cli/node_modules/.bin/tsc +0 -17
- package/dial-cli/node_modules/.bin/tsserver +0 -17
- package/dial-cli/node_modules/.bin/tsup +0 -17
- package/dial-cli/node_modules/.bin/tsup-node +0 -17
- package/dial-cli/node_modules/.bin/tsx +0 -17
- package/dial-cli/node_modules/.bin/yaml +0 -17
- package/dial-cli/package.json +0 -47
- package/dial-cli/tsconfig.json +0 -20
- package/dial-cli/tsup.config.ts +0 -18
- package/dist/{chunk-FIWBOGQV.mjs → chunk-ADYUCJMQ.mjs} +0 -0
- package/dist/{chunk-KXKEZ3MH.mjs → chunk-AJYO5W6O.mjs} +2 -2
- package/dist/{chunk-K4VD5PPY.mjs → chunk-BIUDC66P.mjs} +1 -1
- package/dist/{chunk-K4I4YU6N.cjs → chunk-G7FYBSFO.cjs} +2 -2
- package/dist/{chunk-Q4XH2Z5M.cjs → chunk-LYZJNEOR.cjs} +1 -1
- package/dist/{chunk-U3LN5NB6.mjs → chunk-OEIF3JCH.mjs} +1 -1
- package/dist/{chunk-RKJR6RZU.cjs → chunk-OYNLQTHW.cjs} +1 -1
- /package/dist/{chunk-65OSA4MM.cjs → chunk-SQRAUVEP.cjs} +0 -0
package/src/dial/DialPanel.tsx
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
DialNumberInput,
|
|
9
9
|
DialSelectInput,
|
|
10
10
|
DialSliderInput,
|
|
11
|
+
DialTextInput,
|
|
11
12
|
DialVec3Input,
|
|
12
13
|
DialVectorInput,
|
|
13
14
|
} from "./wrapped-inputs";
|
|
@@ -153,6 +154,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
153
154
|
);
|
|
154
155
|
|
|
155
156
|
case "string":
|
|
157
|
+
case "text":
|
|
156
158
|
// If options are provided, use select
|
|
157
159
|
if (options && options.length > 0) {
|
|
158
160
|
return (
|
|
@@ -165,8 +167,16 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
165
167
|
/>
|
|
166
168
|
);
|
|
167
169
|
}
|
|
168
|
-
//
|
|
169
|
-
return
|
|
170
|
+
// Use text input for pure string values
|
|
171
|
+
return (
|
|
172
|
+
<DialTextInput
|
|
173
|
+
key={name}
|
|
174
|
+
name={name}
|
|
175
|
+
label={label}
|
|
176
|
+
placeholder={`Enter ${label.toLowerCase()}`}
|
|
177
|
+
labelPosition={labelPosition}
|
|
178
|
+
/>
|
|
179
|
+
);
|
|
170
180
|
|
|
171
181
|
default:
|
|
172
182
|
return null;
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
Label,
|
|
12
12
|
QuaternionInput,
|
|
13
13
|
RadInput,
|
|
14
|
+
TextInput,
|
|
14
15
|
TimeInput,
|
|
15
16
|
Vec3Input,
|
|
16
17
|
VectorInput,
|
|
@@ -399,3 +400,38 @@ export const DialTimeInput: React.FC<DialWrapperProps> = ({
|
|
|
399
400
|
);
|
|
400
401
|
}
|
|
401
402
|
};
|
|
403
|
+
|
|
404
|
+
// Dial-wrapped TextInput
|
|
405
|
+
export const DialTextInput: React.FC<DialWrapperProps & { placeholder?: string }> = ({
|
|
406
|
+
name,
|
|
407
|
+
label,
|
|
408
|
+
size = "sm",
|
|
409
|
+
labelPosition,
|
|
410
|
+
placeholder,
|
|
411
|
+
}) => {
|
|
412
|
+
const { getValue, setValue } = useDialSchema();
|
|
413
|
+
const value = (getValue(name) ?? "") as string;
|
|
414
|
+
|
|
415
|
+
if (labelPosition === "inline") {
|
|
416
|
+
return (
|
|
417
|
+
<TextInput
|
|
418
|
+
value={value}
|
|
419
|
+
onChange={(val) => setValue(name, val)}
|
|
420
|
+
size={size}
|
|
421
|
+
placeholder={placeholder}
|
|
422
|
+
prefix={label}
|
|
423
|
+
/>
|
|
424
|
+
);
|
|
425
|
+
} else {
|
|
426
|
+
return (
|
|
427
|
+
<DialInputWrapper label={label}>
|
|
428
|
+
<TextInput
|
|
429
|
+
value={value}
|
|
430
|
+
onChange={(val) => setValue(name, val)}
|
|
431
|
+
size={size}
|
|
432
|
+
placeholder={placeholder}
|
|
433
|
+
/>
|
|
434
|
+
</DialInputWrapper>
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
};
|
package/src/ui/inputs/index.tsx
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
|
|
3
|
+
import { InputRoot, InputRootProps, InputSlot } from "./input";
|
|
4
|
+
|
|
5
|
+
export interface TextInputProps extends Omit<InputRootProps, "type" | "value" | "onChange"> {
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
prefix?: string;
|
|
10
|
+
suffix?: string;
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Text input component for string values.
|
|
16
|
+
* Provides a simple text input with optional prefix/suffix.
|
|
17
|
+
*
|
|
18
|
+
* @param value - The current text value
|
|
19
|
+
* @param onChange - Callback when text changes
|
|
20
|
+
* @param placeholder - Placeholder text
|
|
21
|
+
* @param prefix - Optional prefix text/icon
|
|
22
|
+
* @param suffix - Optional suffix text/icon
|
|
23
|
+
* @param maxLength - Maximum character length
|
|
24
|
+
*/
|
|
25
|
+
export const TextInput = forwardRef<HTMLInputElement, TextInputProps>(function TextInput(
|
|
26
|
+
{ value = "", onChange, prefix, suffix, placeholder, maxLength, ...props },
|
|
27
|
+
ref,
|
|
28
|
+
) {
|
|
29
|
+
return (
|
|
30
|
+
<InputRoot
|
|
31
|
+
ref={ref}
|
|
32
|
+
type="text"
|
|
33
|
+
value={value}
|
|
34
|
+
onChange={(e) => onChange?.(e.target.value)}
|
|
35
|
+
placeholder={placeholder}
|
|
36
|
+
maxLength={maxLength}
|
|
37
|
+
{...props}
|
|
38
|
+
>
|
|
39
|
+
{prefix && <InputSlot side="left">{prefix}</InputSlot>}
|
|
40
|
+
{suffix && <InputSlot side="right">{suffix}</InputSlot>}
|
|
41
|
+
</InputRoot>
|
|
42
|
+
);
|
|
43
|
+
});
|
package/dial-cli/README.md
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
# @vuer-ai/dial-cli
|
|
2
|
-
|
|
3
|
-
A powerful CLI tool for generating dial metadata from TypeScript/React components. This tool parses JSDoc annotations to automatically create UI control schemas.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install -g @vuer-ai/dial-cli
|
|
9
|
-
# or
|
|
10
|
-
pnpm install -g @vuer-ai/dial-cli
|
|
11
|
-
# or
|
|
12
|
-
yarn global add @vuer-ai/dial-cli
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
dial-cli [options] <file.tsx> [file2.tsx ...]
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### Options
|
|
22
|
-
|
|
23
|
-
- `-o, --output <dir>` - Output directory for generated metadata files (default: `./metadata`)
|
|
24
|
-
- `-i, --ignore <prop>` - Property names or patterns to exclude from dial schema generation
|
|
25
|
-
- `-h, --help` - Display help message
|
|
26
|
-
- `-v, --version` - Display version information
|
|
27
|
-
- `--verbose` - Enable verbose output with detailed processing information
|
|
28
|
-
- `--quiet` - Suppress all output except errors
|
|
29
|
-
|
|
30
|
-
### Examples
|
|
31
|
-
|
|
32
|
-
Generate metadata for a single component:
|
|
33
|
-
```bash
|
|
34
|
-
dial-cli MyComponent.tsx
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
Specify a custom output directory:
|
|
38
|
-
```bash
|
|
39
|
-
dial-cli -o ./docs/metadata MyComponent.tsx
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Process multiple files:
|
|
43
|
-
```bash
|
|
44
|
-
dial-cli Component1.tsx Component2.tsx Component3.tsx
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Process all components in a directory:
|
|
48
|
-
```bash
|
|
49
|
-
dial-cli src/components/*.tsx
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Exclude specific properties:
|
|
53
|
-
```bash
|
|
54
|
-
dial-cli -i className -i style -i children MyComponent.tsx
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Dial Annotations
|
|
58
|
-
|
|
59
|
-
The tool recognizes the following `@dial` annotations in JSDoc comments:
|
|
60
|
-
|
|
61
|
-
### Grouping
|
|
62
|
-
- `@dial <group>` - Group related properties (transform, visibility, etc.)
|
|
63
|
-
|
|
64
|
-
### Property Configuration
|
|
65
|
-
- `@dial-dtype <type>` - Data type (vector3, euler, boolean, int, etc.)
|
|
66
|
-
- `@dial-min <number>` - Minimum value for numeric inputs
|
|
67
|
-
- `@dial-max <number>` - Maximum value for numeric inputs
|
|
68
|
-
- `@dial-step <number>` - Step increment for numeric inputs
|
|
69
|
-
- `@dial-default <value>` - Default value (overrides component default)
|
|
70
|
-
- `@dial-options [...]` - Array of preset values
|
|
71
|
-
- `@dial-icon <name>` - Lucide icon name for the control
|
|
72
|
-
- `@dial-ignore` - Exclude this property from dial schema generation
|
|
73
|
-
|
|
74
|
-
### Layout
|
|
75
|
-
- `@dial-col-<n>` - Display in column layout with n columns
|
|
76
|
-
- `@dial-row-<n>` - Display in row layout with n items per row
|
|
77
|
-
- `@dial-label-<pos>` - Label position (left, right, top, bottom, inline)
|
|
78
|
-
- `@dial-no-wrap` - Prevent line wrapping
|
|
79
|
-
|
|
80
|
-
### Vector Types
|
|
81
|
-
- `@dial-mins <n,n,n>` - Comma-separated min values for vector elements
|
|
82
|
-
- `@dial-maxs <n,n,n>` - Comma-separated max values for vector elements
|
|
83
|
-
- `@dial-steps <n,n,n>` - Comma-separated step values for vector elements
|
|
84
|
-
- `@dial-dtypes <t,t,t>` - Comma-separated data types for vector elements
|
|
85
|
-
|
|
86
|
-
## Example Component
|
|
87
|
-
|
|
88
|
-
```typescript
|
|
89
|
-
interface Props {
|
|
90
|
-
/**
|
|
91
|
-
* Position in 3D space
|
|
92
|
-
* @dial transform
|
|
93
|
-
* @dial-dtype vector3
|
|
94
|
-
* @dial-mins -10,-10,-10
|
|
95
|
-
* @dial-maxs 10,10,10
|
|
96
|
-
* @dial-steps 0.1,0.1,0.1
|
|
97
|
-
* @dial-icon Move3d
|
|
98
|
-
*/
|
|
99
|
-
position: [number, number, number];
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Visibility toggle
|
|
103
|
-
* @dial visibility
|
|
104
|
-
* @dial-dtype boolean
|
|
105
|
-
* @dial-icon Eye
|
|
106
|
-
*/
|
|
107
|
-
visible: boolean;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Color value
|
|
111
|
-
* @dial-ignore
|
|
112
|
-
*/
|
|
113
|
-
color: string;
|
|
114
|
-
}
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## Output Files
|
|
118
|
-
|
|
119
|
-
The tool generates three types of output files for each input:
|
|
120
|
-
|
|
121
|
-
- `*-raw.json` - Raw output from react-docgen-typescript
|
|
122
|
-
- `*-combined.json` - Enhanced metadata with dial schema information
|
|
123
|
-
- `*-schemas.json` - Just the dial schemas for UI generation
|
|
124
|
-
|
|
125
|
-
## License
|
|
126
|
-
|
|
127
|
-
MIT
|
|
128
|
-
|
|
129
|
-
## Author
|
|
130
|
-
|
|
131
|
-
Ge Yang
|
|
132
|
-
|
|
133
|
-
## Links
|
|
134
|
-
|
|
135
|
-
- [GitHub Repository](https://github.com/vuer-ai/vuer-uikit)
|
|
136
|
-
- [Issue Tracker](https://github.com/vuer-ai/vuer-uikit/issues)
|
|
137
|
-
- [Documentation](https://uikit.vuer.ai/dial)
|