@vuer-ai/vuer-uikit 0.0.100 → 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.
Files changed (56) hide show
  1. package/dist/chunk-LPA6WYFD.cjs +26 -0
  2. package/dist/{chunk-OEI7NCF6.cjs → chunk-M5UZ3SBY.cjs} +46 -2
  3. package/dist/{chunk-QHPFLC2O.mjs → chunk-MEE3IHTT.mjs} +46 -3
  4. package/dist/{chunk-XBTBTLID.cjs → chunk-QBFOBDBC.cjs} +2 -2
  5. package/dist/chunk-TPPM276W.mjs +24 -0
  6. package/dist/{chunk-XGXWOY3U.mjs → chunk-VO3C6RE2.mjs} +2 -2
  7. package/dist/dial/DialPanel.cjs +12 -11
  8. package/dist/dial/DialPanel.mjs +11 -10
  9. package/dist/dial/index.cjs +28 -27
  10. package/dist/dial/index.mjs +11 -10
  11. package/dist/dial/wrapped-inputs/ControlledInputs.cjs +15 -14
  12. package/dist/dial/wrapped-inputs/ControlledInputs.mjs +11 -10
  13. package/dist/dial/wrapped-inputs/DialInputs.cjs +26 -21
  14. package/dist/dial/wrapped-inputs/DialInputs.d.cts +4 -1
  15. package/dist/dial/wrapped-inputs/DialInputs.d.ts +4 -1
  16. package/dist/dial/wrapped-inputs/DialInputs.mjs +11 -10
  17. package/dist/dial/wrapped-inputs/DialVectorInput.cjs +12 -11
  18. package/dist/dial/wrapped-inputs/DialVectorInput.mjs +11 -10
  19. package/dist/dial/wrapped-inputs/index.cjs +31 -26
  20. package/dist/dial/wrapped-inputs/index.d.cts +1 -1
  21. package/dist/dial/wrapped-inputs/index.d.ts +1 -1
  22. package/dist/dial/wrapped-inputs/index.mjs +11 -10
  23. package/dist/index.cjs +63 -58
  24. package/dist/index.d.cts +1 -0
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.mjs +11 -10
  27. package/dist/ui/UIKitBadge.cjs +5 -5
  28. package/dist/ui/UIKitBadge.mjs +1 -1
  29. package/dist/ui/index.cjs +45 -40
  30. package/dist/ui/index.d.cts +1 -0
  31. package/dist/ui/index.d.ts +1 -0
  32. package/dist/ui/index.mjs +10 -9
  33. package/dist/ui/inputs/index.cjs +11 -6
  34. package/dist/ui/inputs/index.d.cts +1 -0
  35. package/dist/ui/inputs/index.d.ts +1 -0
  36. package/dist/ui/inputs/index.mjs +3 -2
  37. package/dist/ui/inputs/number-inputs/index.cjs +5 -5
  38. package/dist/ui/inputs/number-inputs/index.mjs +1 -1
  39. package/dist/ui/inputs/text-input.cjs +21 -0
  40. package/dist/ui/inputs/text-input.d.cts +27 -0
  41. package/dist/ui/inputs/text-input.d.ts +27 -0
  42. package/dist/ui/inputs/text-input.mjs +12 -0
  43. package/dist/ui/layouts/index.cjs +6 -6
  44. package/dist/ui/layouts/index.mjs +2 -2
  45. package/dist/ui/waterfall/index.cjs +5 -5
  46. package/dist/ui/waterfall/index.mjs +4 -4
  47. package/package.json +1 -1
  48. package/src/dial/DialPanel.tsx +12 -2
  49. package/src/dial/wrapped-inputs/DialInputs.tsx +36 -0
  50. package/src/dial/wrapped-inputs/index.ts +1 -0
  51. package/src/ui/inputs/index.tsx +1 -0
  52. package/src/ui/inputs/text-input.tsx +43 -0
  53. package/dist/{chunk-FIWBOGQV.mjs → chunk-ADYUCJMQ.mjs} +0 -0
  54. package/dist/{chunk-KXKEZ3MH.mjs → chunk-AJYO5W6O.mjs} +2 -2
  55. package/dist/{chunk-K4I4YU6N.cjs → chunk-G7FYBSFO.cjs} +2 -2
  56. /package/dist/{chunk-65OSA4MM.cjs → chunk-SQRAUVEP.cjs} +0 -0
@@ -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
- // For now, skip pure string inputs (could add text input later)
169
- return null;
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
+ };
@@ -19,6 +19,7 @@ export {
19
19
  DialCmInput,
20
20
  DialInchInput,
21
21
  DialTimeInput,
22
+ DialTextInput,
22
23
  } from "./DialInputs";
23
24
 
24
25
  // Variable-dimension vector input
@@ -3,3 +3,4 @@ export * from "./input-numbers";
3
3
  export * from "./color-input";
4
4
  export * from "./presets-input";
5
5
  export * from "./number-inputs";
6
+ export * from "./text-input";
@@ -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
+ });
File without changes
@@ -1,17 +1,17 @@
1
1
  import { useTimelineState } from './chunk-JWKOW2OV.mjs';
2
2
  import { useViewport } from './chunk-VPQ5SSY3.mjs';
3
+ import { NavigationControls } from './chunk-5EXV5EWF.mjs';
3
4
  import { Tick } from './chunk-K22BEXUA.mjs';
4
5
  import { TimeRuleEventDot } from './chunk-OC4HRPZU.mjs';
5
6
  import { TimelineEvent } from './chunk-N6DSPSMM.mjs';
6
7
  import { TimelineProcessBar } from './chunk-CO6EASQO.mjs';
8
+ import { rightWedgeClasses, leftWedgeClasses, TOTAL_DURATION } from './chunk-4U232QAX.mjs';
7
9
  import { LeftWedge, RightWedge } from './chunk-IR334P7F.mjs';
8
10
  import { WheelZoomContext } from './chunk-CIPI2V54.mjs';
9
11
  import { TreeSearchBar } from './chunk-73VF2W3D.mjs';
10
12
  import { TreeView } from './chunk-VQPJ7TLB.mjs';
11
13
  import { useTreeState, useTreeSearch } from './chunk-PC5DHSC4.mjs';
12
14
  import { CursorOverlay } from './chunk-SA5WKLYB.mjs';
13
- import { NavigationControls } from './chunk-5EXV5EWF.mjs';
14
- import { rightWedgeClasses, leftWedgeClasses, TOTAL_DURATION } from './chunk-4U232QAX.mjs';
15
15
  import { TooltipProvider } from './chunk-ZNPI2TYG.mjs';
16
16
  import { SyncScroll, SyncDragY, SyncScrollSlave } from './chunk-PDOFOJ4P.mjs';
17
17
  import { cn } from './chunk-HMN4IKTG.mjs';
@@ -2,18 +2,18 @@
2
2
 
3
3
  var chunkWJL5HMO6_cjs = require('./chunk-WJL5HMO6.cjs');
4
4
  var chunkRJ7I6ZQK_cjs = require('./chunk-RJ7I6ZQK.cjs');
5
+ var chunkLP3AGGRK_cjs = require('./chunk-LP3AGGRK.cjs');
5
6
  var chunk6TSA7KXX_cjs = require('./chunk-6TSA7KXX.cjs');
6
7
  var chunkMVAFOQ67_cjs = require('./chunk-MVAFOQ67.cjs');
7
8
  var chunkTUYG6BYZ_cjs = require('./chunk-TUYG6BYZ.cjs');
8
9
  var chunkYXFHJKNW_cjs = require('./chunk-YXFHJKNW.cjs');
10
+ var chunkG2ZYONQO_cjs = require('./chunk-G2ZYONQO.cjs');
9
11
  var chunk5MNZYCN2_cjs = require('./chunk-5MNZYCN2.cjs');
10
12
  var chunkZ6UDRPC2_cjs = require('./chunk-Z6UDRPC2.cjs');
11
13
  var chunk55RSKLJ5_cjs = require('./chunk-55RSKLJ5.cjs');
12
14
  var chunkHAVTMZR3_cjs = require('./chunk-HAVTMZR3.cjs');
13
15
  var chunkEEGQLTSQ_cjs = require('./chunk-EEGQLTSQ.cjs');
14
16
  var chunk2J75MYQA_cjs = require('./chunk-2J75MYQA.cjs');
15
- var chunkLP3AGGRK_cjs = require('./chunk-LP3AGGRK.cjs');
16
- var chunkG2ZYONQO_cjs = require('./chunk-G2ZYONQO.cjs');
17
17
  var chunk2CZEFXEW_cjs = require('./chunk-2CZEFXEW.cjs');
18
18
  var chunkG5JZGNKY_cjs = require('./chunk-G5JZGNKY.cjs');
19
19
  var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
File without changes