dialkit 1.2.1 → 1.4.0

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 (88) hide show
  1. package/README.md +653 -6
  2. package/dist/dropdown-position.d.ts +15 -0
  3. package/dist/dropdown-position.js +22 -0
  4. package/dist/dropdown-position.js.map +1 -0
  5. package/dist/icons.d.ts +4 -1
  6. package/dist/icons.js +13 -0
  7. package/dist/icons.js.map +1 -1
  8. package/dist/index.cjs +3796 -768
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.d.cts +315 -10
  11. package/dist/index.d.ts +315 -10
  12. package/dist/index.js +3733 -711
  13. package/dist/index.js.map +1 -1
  14. package/dist/panel-drag.d.ts +19 -0
  15. package/dist/panel-drag.js +72 -0
  16. package/dist/panel-drag.js.map +1 -0
  17. package/dist/solid/index.d.ts +264 -5
  18. package/dist/solid/index.js +5277 -1632
  19. package/dist/solid/index.js.map +1 -1
  20. package/dist/store/index.cjs +329 -57
  21. package/dist/store/index.cjs.map +1 -1
  22. package/dist/store/index.d.cts +43 -4
  23. package/dist/store/index.d.ts +43 -4
  24. package/dist/store/index.js +321 -56
  25. package/dist/store/index.js.map +1 -1
  26. package/dist/styles.css +809 -7
  27. package/dist/svelte/components/ControlRenderer.svelte +5 -2
  28. package/dist/svelte/components/ControlRenderer.svelte.d.ts +2 -0
  29. package/dist/svelte/components/ControlRenderer.svelte.d.ts.map +1 -1
  30. package/dist/svelte/components/DialRoot.svelte +218 -16
  31. package/dist/svelte/components/DialRoot.svelte.d.ts +1 -0
  32. package/dist/svelte/components/DialRoot.svelte.d.ts.map +1 -1
  33. package/dist/svelte/components/Folder.svelte +24 -13
  34. package/dist/svelte/components/Folder.svelte.d.ts +1 -0
  35. package/dist/svelte/components/Folder.svelte.d.ts.map +1 -1
  36. package/dist/svelte/components/Panel.svelte +104 -71
  37. package/dist/svelte/components/Panel.svelte.d.ts +4 -0
  38. package/dist/svelte/components/Panel.svelte.d.ts.map +1 -1
  39. package/dist/svelte/components/PresetManager.svelte +5 -5
  40. package/dist/svelte/components/PresetManager.svelte.d.ts.map +1 -1
  41. package/dist/svelte/components/SelectControl.svelte +6 -14
  42. package/dist/svelte/components/SelectControl.svelte.d.ts.map +1 -1
  43. package/dist/svelte/components/Timeline/ClipPopover.svelte +206 -0
  44. package/dist/svelte/components/Timeline/ClipPopover.svelte.d.ts +26 -0
  45. package/dist/svelte/components/Timeline/ClipPopover.svelte.d.ts.map +1 -0
  46. package/dist/svelte/components/Timeline/DialTimeline.svelte +76 -0
  47. package/dist/svelte/components/Timeline/DialTimeline.svelte.d.ts +13 -0
  48. package/dist/svelte/components/Timeline/DialTimeline.svelte.d.ts.map +1 -0
  49. package/dist/svelte/components/Timeline/TimelineClip.svelte +233 -0
  50. package/dist/svelte/components/Timeline/TimelineClip.svelte.d.ts +24 -0
  51. package/dist/svelte/components/Timeline/TimelineClip.svelte.d.ts.map +1 -0
  52. package/dist/svelte/components/Timeline/TimelineSection.svelte +756 -0
  53. package/dist/svelte/components/Timeline/TimelineSection.svelte.d.ts +12 -0
  54. package/dist/svelte/components/Timeline/TimelineSection.svelte.d.ts.map +1 -0
  55. package/dist/svelte/components/Timeline/TimelineToggleButton.svelte +25 -0
  56. package/dist/svelte/components/Timeline/TimelineToggleButton.svelte.d.ts +4 -0
  57. package/dist/svelte/components/Timeline/TimelineToggleButton.svelte.d.ts.map +1 -0
  58. package/dist/svelte/components/TransitionControl.svelte +26 -11
  59. package/dist/svelte/components/TransitionControl.svelte.d.ts +9 -0
  60. package/dist/svelte/components/TransitionControl.svelte.d.ts.map +1 -1
  61. package/dist/svelte/createDialKit.svelte.d.ts +11 -1
  62. package/dist/svelte/createDialKit.svelte.d.ts.map +1 -1
  63. package/dist/svelte/createDialKit.svelte.js +61 -34
  64. package/dist/svelte/createDialTimeline.svelte.d.ts +4 -0
  65. package/dist/svelte/createDialTimeline.svelte.d.ts.map +1 -0
  66. package/dist/svelte/createDialTimeline.svelte.js +73 -0
  67. package/dist/svelte/index.d.ts +7 -3
  68. package/dist/svelte/index.d.ts.map +1 -1
  69. package/dist/svelte/index.js +4 -1
  70. package/dist/svelte/theme-css.d.ts +1 -1
  71. package/dist/svelte/theme-css.d.ts.map +1 -1
  72. package/dist/svelte/theme-css.js +809 -7
  73. package/dist/timeline/index.cjs +1288 -0
  74. package/dist/timeline/index.cjs.map +1 -0
  75. package/dist/timeline/index.d.cts +443 -0
  76. package/dist/timeline/index.d.ts +443 -0
  77. package/dist/timeline/index.js +1233 -0
  78. package/dist/timeline/index.js.map +1 -0
  79. package/dist/vue/index.d.ts +325 -12
  80. package/dist/vue/index.js +3226 -280
  81. package/dist/vue/index.js.map +1 -1
  82. package/package.json +23 -13
  83. package/dist/solid/index.cjs +0 -3079
  84. package/dist/solid/index.cjs.map +0 -1
  85. package/dist/solid/index.d.cts +0 -258
  86. package/dist/vue/index.cjs +0 -3056
  87. package/dist/vue/index.cjs.map +0 -1
  88. package/dist/vue/index.d.cts +0 -675
package/dist/index.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
2
3
  import { ReactNode } from 'react';
3
4
 
4
5
  type SpringConfig = {
@@ -43,6 +44,9 @@ type DialConfig = {
43
44
  type ResolvedValues<T extends DialConfig> = {
44
45
  [K in keyof T]: T[K] extends [number, number, number, number?] ? number : T[K] extends SpringConfig ? TransitionConfig : T[K] extends EasingConfig ? TransitionConfig : T[K] extends SelectConfig ? string : T[K] extends ColorConfig ? string : T[K] extends TextConfig ? string : T[K] extends DialConfig ? ResolvedValues<T[K]> : T[K];
45
46
  };
47
+ type DialKitValueUpdates<T extends DialConfig> = {
48
+ [K in keyof T as K extends '_collapsed' ? never : K]?: T[K] extends [number, number, number, number?] ? number : T[K] extends SpringConfig | EasingConfig ? TransitionConfig : T[K] extends ActionConfig ? never : T[K] extends SelectConfig | ColorConfig | TextConfig ? string : T[K] extends DialConfig ? DialKitValueUpdates<T[K]> : T[K];
49
+ };
46
50
  type ShortcutMode = 'fine' | 'normal' | 'coarse';
47
51
  type ShortcutInteraction = 'scroll' | 'drag' | 'move' | 'scroll-only';
48
52
  type ShortcutConfig = {
@@ -73,16 +77,30 @@ type PanelConfig = {
73
77
  controls: ControlMeta[];
74
78
  values: Record<string, DialValue>;
75
79
  shortcuts: Record<string, ShortcutConfig>;
80
+ kind?: 'timeline';
76
81
  };
77
- type Listener = () => void;
82
+ type Listener$1 = () => void;
78
83
  type ActionListener = (action: string) => void;
79
84
  type Preset = {
80
85
  id: string;
81
86
  name: string;
82
87
  values: Record<string, DialValue>;
83
88
  };
89
+ type DialKitPersistOptions = boolean | {
90
+ key?: string;
91
+ storage?: 'localStorage' | 'sessionStorage';
92
+ presets?: boolean;
93
+ };
94
+ type DialStorePanelOptions = {
95
+ retainOnUnmount?: boolean;
96
+ persist?: DialKitPersistOptions;
97
+ kind?: 'timeline';
98
+ };
84
99
  declare class DialStoreClass {
85
100
  private panels;
101
+ private panelsSnapshot;
102
+ private standardPanelsSnapshot;
103
+ private timelinePanelsSnapshot;
86
104
  private listeners;
87
105
  private globalListeners;
88
106
  private snapshots;
@@ -90,20 +108,26 @@ declare class DialStoreClass {
90
108
  private presets;
91
109
  private activePreset;
92
110
  private baseValues;
93
- registerPanel(id: string, name: string, config: DialConfig, shortcuts?: Record<string, ShortcutConfig>): void;
94
- updatePanel(id: string, name: string, config: DialConfig, shortcuts?: Record<string, ShortcutConfig>): void;
111
+ private defaultValues;
112
+ private registrationCounts;
113
+ private retainedPanels;
114
+ private persistConfigs;
115
+ registerPanel(id: string, name: string, config: DialConfig, shortcuts?: Record<string, ShortcutConfig>, options?: DialStorePanelOptions): void;
116
+ updatePanel(id: string, name: string, config: DialConfig, shortcuts?: Record<string, ShortcutConfig>, options?: DialStorePanelOptions): void;
95
117
  unregisterPanel(id: string): void;
96
118
  updateValue(panelId: string, path: string, value: DialValue): void;
119
+ updateValues(panelId: string, updates: Record<string, DialValue>): void;
120
+ resetValues(panelId: string): void;
97
121
  updateSpringMode(panelId: string, path: string, mode: 'simple' | 'advanced'): void;
98
122
  getSpringMode(panelId: string, path: string): 'simple' | 'advanced';
99
123
  updateTransitionMode(panelId: string, path: string, mode: 'easing' | 'simple' | 'advanced'): void;
100
124
  getTransitionMode(panelId: string, path: string): 'easing' | 'simple' | 'advanced';
101
125
  getValue(panelId: string, path: string): DialValue | undefined;
102
126
  getValues(panelId: string): Record<string, DialValue>;
103
- getPanels(): PanelConfig[];
127
+ getPanels(kind?: 'panel' | 'timeline'): PanelConfig[];
104
128
  getPanel(id: string): PanelConfig | undefined;
105
- subscribe(panelId: string, listener: Listener): () => void;
106
- subscribeGlobal(listener: Listener): () => void;
129
+ subscribe(panelId: string, listener: Listener$1): () => void;
130
+ subscribeGlobal(listener: Listener$1): () => void;
107
131
  subscribeActions(panelId: string, listener: ActionListener): () => void;
108
132
  triggerAction(panelId: string, path: string): void;
109
133
  savePreset(panelId: string, name: string): string;
@@ -123,6 +147,13 @@ declare class DialStoreClass {
123
147
  control: ControlMeta;
124
148
  shortcut: ShortcutConfig;
125
149
  }>;
150
+ private configurePanelRetention;
151
+ private reconcileValues;
152
+ private reconcilePresets;
153
+ private normalizePersistConfig;
154
+ private loadPersistedPanel;
155
+ private persistPanel;
156
+ private getStorage;
126
157
  private findControlByPath;
127
158
  private notify;
128
159
  private notifyGlobal;
@@ -147,10 +178,20 @@ declare class DialStoreClass {
147
178
  declare const DialStore: DialStoreClass;
148
179
 
149
180
  interface UseDialOptions {
181
+ id?: string;
182
+ persist?: DialKitPersistOptions;
150
183
  onAction?: (action: string) => void;
151
184
  shortcuts?: Record<string, ShortcutConfig>;
152
185
  }
186
+ interface DialKitController<T extends DialConfig> {
187
+ values: ResolvedValues<T>;
188
+ setValue: (path: string, value: DialValue) => void;
189
+ setValues: (values: DialKitValueUpdates<T>) => void;
190
+ resetValues: () => void;
191
+ getValues: () => ResolvedValues<T>;
192
+ }
153
193
  declare function useDialKit<T extends DialConfig>(name: string, config: T, options?: UseDialOptions): ResolvedValues<T>;
194
+ declare function useDialKitController<T extends DialConfig>(name: string, config: T, options?: UseDialOptions): DialKitController<T>;
154
195
 
155
196
  type DialPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
156
197
  type DialMode = 'popover' | 'inline';
@@ -161,8 +202,261 @@ interface DialRootProps {
161
202
  mode?: DialMode;
162
203
  theme?: DialTheme;
163
204
  productionEnabled?: boolean;
205
+ onOpenChange?: (open: boolean) => void;
206
+ }
207
+ declare function DialRoot({ position, defaultOpen, mode, theme, productionEnabled, onOpenChange }: DialRootProps): react_jsx_runtime.JSX.Element | null;
208
+
209
+ type TimelineClipTrackMeta = {
210
+ prop: string;
211
+ /** Step folder keys when the track is a sequence. */
212
+ stepKeys?: string[];
213
+ };
214
+ type TimelineClipMeta = {
215
+ key: string;
216
+ label: string;
217
+ color: string;
218
+ /** Code-defined playback behavior; intentionally not exposed as a dial. */
219
+ loop: 'off' | 'repeat';
220
+ /** Group key when the clip lives inside a nested layer, e.g. "circle". */
221
+ group?: string;
222
+ /** Step folder keys for sequence clips, e.g. ["step1", "step2"]. */
223
+ stepKeys?: string[];
224
+ /** Independent property tracks of a props clip — full rows when expanded. */
225
+ tracks?: TimelineClipTrackMeta[];
226
+ };
227
+ type TimelineMeta = {
228
+ id: string;
229
+ name: string;
230
+ duration: number;
231
+ loop: boolean;
232
+ /** Loop wraps back to this time, not 0 — clips before it play once
233
+ * (intro-then-idle). 0 loops the whole timeline. */
234
+ loopStart: number;
235
+ clips: TimelineClipMeta[];
236
+ };
237
+ type TimelineTransport = {
238
+ time: number;
239
+ playing: boolean;
240
+ duration: number;
241
+ /** Completed loop passes — keeps looping clips phase-continuous across
242
+ * timeline wraps. Reset by seek/replay so scrubbing stays deterministic. */
243
+ wraps: number;
244
+ };
245
+ type Listener = () => void;
246
+ declare class TimelineStoreClass {
247
+ private timelines;
248
+ private transports;
249
+ private listeners;
250
+ private globalListeners;
251
+ private registrationCounts;
252
+ private listCache;
253
+ private rafId;
254
+ private lastTick;
255
+ register(meta: TimelineMeta, options: {
256
+ autoplay: boolean;
257
+ }): void;
258
+ update(meta: TimelineMeta): void;
259
+ unregister(id: string): void;
260
+ play(id: string): void;
261
+ pause(id: string): void;
262
+ replay(id: string): void;
263
+ seek(id: string, time: number): void;
264
+ getTransport(id: string): TimelineTransport;
265
+ getTimeline(id: string): TimelineMeta | undefined;
266
+ getTimelines(): TimelineMeta[];
267
+ subscribe(id: string, listener: Listener): () => void;
268
+ subscribeGlobal(listener: Listener): () => void;
269
+ private applyMeta;
270
+ private ensureLoop;
271
+ private tick;
272
+ private notify;
273
+ private notifyGlobal;
274
+ }
275
+ declare const TimelineStore: TimelineStoreClass;
276
+
277
+ type TimelineClipLoop = 'off' | 'repeat';
278
+ type TimelineStepValues = {
279
+ [key: string]: DialConfig[string] | undefined;
280
+ };
281
+ type TimelineStepConfig = {
282
+ duration?: number;
283
+ to?: TimelineStepValues;
284
+ transition?: TransitionConfig;
285
+ };
286
+ type TimelinePropStepConfig = {
287
+ duration?: number;
288
+ to?: number | string;
289
+ transition?: TransitionConfig;
290
+ };
291
+ type TimelinePropConfig = {
292
+ from?: number | string;
293
+ to?: number | string;
294
+ duration?: number;
295
+ /** Offset from the clip's `at` in seconds. */
296
+ delay?: number;
297
+ transition?: TransitionConfig;
298
+ steps?: TimelinePropStepConfig[];
299
+ };
300
+ type TimelineClipBase = {
301
+ at: number;
302
+ duration?: number;
303
+ transition?: TransitionConfig;
304
+ loop?: boolean | TimelineClipLoop;
305
+ };
306
+ type TimelineClipConfig = TimelineClipBase & ({
307
+ from?: DialConfig;
308
+ to?: DialConfig;
309
+ steps?: never;
310
+ props?: never;
311
+ } | {
312
+ from?: DialConfig;
313
+ to?: never;
314
+ /** Sequential legs on one row — a segmented bar; boundaries retime legs. */
315
+ steps: TimelineStepConfig[];
316
+ props?: never;
317
+ } | {
318
+ from?: never;
319
+ to?: never;
320
+ steps?: never;
321
+ /** Independent per-property tracks — mutually exclusive with from/to/steps. */
322
+ props: {
323
+ [prop: string]: TimelinePropConfig;
324
+ };
325
+ });
326
+ /** Nested keys group clips into a collapsible layer — purely presentational. */
327
+ type TimelineGroupConfig = {
328
+ [key: string]: TimelineClipConfig;
329
+ };
330
+ type TimelineConfig = {
331
+ /** Total timeline length in seconds. Inferred from the last clip when omitted. */
332
+ duration?: number;
333
+ } & {
334
+ [key: string]: TimelineClipConfig | TimelineGroupConfig | number | undefined;
335
+ };
336
+ /** CSS-friendly output for consumers not using Motion — spread into a style. */
337
+ type TimelineClipCss = {
338
+ transitionDuration: string;
339
+ transitionTimingFunction: string;
340
+ };
341
+ type TimelineClipValues<C extends TimelineClipConfig = TimelineClipConfig> = {
342
+ at: number;
343
+ duration: number;
344
+ /** Effective code-defined loop mode. */
345
+ loop: TimelineClipLoop;
346
+ /** Playhead is at or past the clip start. */
347
+ started: boolean;
348
+ /** Playhead is inside the clip — for looping clips, inside any cycle. */
349
+ active: boolean;
350
+ /** Playhead is past the clip end (for looping clips, past the timeline end). */
351
+ done: boolean;
352
+ /**
353
+ * 0–1 position of the playhead within the clip — cycle progress (a
354
+ * sawtooth) for looping clips, sequence progress for steps clips.
355
+ */
356
+ progress: number;
357
+ /** Index of the leg under the playhead, for sequence clips. */
358
+ step: C['steps'] extends TimelineStepConfig[] ? number : undefined;
359
+ from: C['props'] extends Record<string, TimelinePropConfig> ? {
360
+ [K in keyof C['props']]: number | string;
361
+ } : C['from'] extends DialConfig ? ResolvedValues<C['from']> : undefined;
362
+ to: C['props'] extends Record<string, TimelinePropConfig> ? {
363
+ [K in keyof C['props']]: number | string;
364
+ } : C['steps'] extends TimelineStepConfig[] ? C['from'] extends DialConfig ? ResolvedValues<C['from']> : Record<string, number | string> : C['to'] extends DialConfig ? ResolvedValues<C['to']> : undefined;
365
+ /** `to` once the clip has started, `from` before — hand it to Motion's animate.
366
+ * For sequences this is the final merged state; for props clips, per-track
367
+ * endpoint records. */
368
+ animate: C['props'] extends Record<string, TimelinePropConfig> ? {
369
+ [K in keyof C['props']]: number | string;
370
+ } : C['steps'] extends TimelineStepConfig[] ? C['from'] extends DialConfig ? ResolvedValues<C['from']> : Record<string, number | string> | undefined : C['to'] extends DialConfig ? C['from'] extends DialConfig ? ResolvedValues<C['from']> | ResolvedValues<C['to']> : ResolvedValues<C['to']> | undefined : undefined;
371
+ /** The clip's editable curve — single-curve clips only. */
372
+ transition: C['props'] extends Record<string, TimelinePropConfig> ? undefined : C['steps'] extends TimelineStepConfig[] ? undefined : C extends {
373
+ transition: TransitionConfig;
374
+ } | {
375
+ from: DialConfig;
376
+ } | {
377
+ to: DialConfig;
378
+ } ? TransitionConfig : undefined;
379
+ /** Duration + timing-function for native CSS transitions — single-curve clips only. */
380
+ css: C['props'] extends Record<string, TimelinePropConfig> ? undefined : C['steps'] extends TimelineStepConfig[] ? undefined : C extends {
381
+ transition: TransitionConfig;
382
+ } | {
383
+ from: DialConfig;
384
+ } | {
385
+ to: DialConfig;
386
+ } ? TimelineClipCss : undefined;
387
+ /**
388
+ * Values interpolated through the clip's curves at the current playhead —
389
+ * bind to style for true scrubbing: the element is exactly at this point
390
+ * in time whether playing, paused, or scrubbing. Sequence clips report the
391
+ * merged state of all legs (declare every animated property in `from`);
392
+ * props clips report every track's value.
393
+ */
394
+ current: C['props'] extends Record<string, TimelinePropConfig> ? {
395
+ [K in keyof C['props']]: number | string;
396
+ } : C['steps'] extends TimelineStepConfig[] ? C['from'] extends DialConfig ? ResolvedValues<C['from']> : Record<string, number | string> : C['to'] extends DialConfig ? C['from'] extends DialConfig ? ResolvedValues<C['from']> | ResolvedValues<C['to']> : undefined : undefined;
397
+ };
398
+ type TimelineGroupValues<G extends TimelineGroupConfig> = {
399
+ [K in keyof G as G[K] extends TimelineClipConfig ? K : never]: TimelineClipValues<Extract<G[K], TimelineClipConfig>>;
400
+ };
401
+ type DialTimelineValues<T extends TimelineConfig> = {
402
+ time: number;
403
+ playing: boolean;
404
+ duration: number;
405
+ play: () => void;
406
+ pause: () => void;
407
+ replay: () => void;
408
+ seek: (time: number) => void;
409
+ } & {
410
+ [K in keyof T as T[K] extends TimelineClipConfig ? K : never]: TimelineClipValues<Extract<T[K], TimelineClipConfig>>;
411
+ } & {
412
+ [K in keyof T as T[K] extends TimelineClipConfig ? never : T[K] extends TimelineGroupConfig ? K : never]: TimelineGroupValues<Extract<T[K], TimelineGroupConfig>>;
413
+ };
414
+ declare function formatClock(time: number, tenths?: boolean): string;
415
+
416
+ interface DialTimelineOptions {
417
+ id?: string;
418
+ persist?: DialKitPersistOptions;
419
+ /** Start playing on mount. Defaults to true. */
420
+ autoplay?: boolean;
421
+ /**
422
+ * Loop when the playhead reaches the end. `true` restarts the whole
423
+ * timeline; `{ from }` wraps back to that time instead, so clips before it
424
+ * play once and looping clips keep cycling forever. Defaults to false.
425
+ */
426
+ loop?: boolean | {
427
+ from: number;
428
+ };
429
+ }
430
+
431
+ type UseDialTimelineOptions = DialTimelineOptions;
432
+ declare function useDialTimeline<T extends TimelineConfig>(name: string, config: T, options?: UseDialTimelineOptions): DialTimelineValues<T>;
433
+
434
+ interface DialTimelineProps {
435
+ theme?: DialTheme;
436
+ /** Initial dock visibility. Expansion is controlled separately by defaultOpen. */
437
+ defaultVisible?: boolean;
438
+ /** Controlled dock visibility. */
439
+ visible?: boolean;
440
+ onVisibilityChange?: (visible: boolean) => void;
441
+ defaultOpen?: boolean;
442
+ productionEnabled?: boolean;
443
+ }
444
+ declare const DialTimeline: react.NamedExoticComponent<DialTimelineProps>;
445
+
446
+ interface ControlRendererProps {
447
+ panelId: string;
448
+ controls: ControlMeta[];
449
+ values: Record<string, DialValue>;
450
+ /** Optional timeline-owned duration rendered inside the transition editor. */
451
+ transitionDuration?: {
452
+ value: number;
453
+ onChange: (value: number) => void;
454
+ min?: number;
455
+ max?: number;
456
+ step?: number;
457
+ };
164
458
  }
165
- declare function DialRoot({ position, defaultOpen, mode, theme, productionEnabled }: DialRootProps): react_jsx_runtime.JSX.Element | null;
459
+ declare function ControlRenderer({ panelId, controls, values, transitionDuration }: ControlRendererProps): react_jsx_runtime.JSX.Element;
166
460
 
167
461
  interface SliderProps {
168
462
  label: string;
@@ -194,8 +488,9 @@ interface FolderProps {
194
488
  inline?: boolean;
195
489
  onOpenChange?: (isOpen: boolean) => void;
196
490
  toolbar?: ReactNode;
491
+ panelHeightOffset?: number;
197
492
  }
198
- declare function Folder({ title, children, defaultOpen, isRoot, inline, onOpenChange, toolbar }: FolderProps): react_jsx_runtime.JSX.Element;
493
+ declare function Folder({ title, children, defaultOpen, isRoot, inline, onOpenChange, toolbar, panelHeightOffset }: FolderProps): react_jsx_runtime.JSX.Element;
199
494
 
200
495
  interface ButtonGroupProps {
201
496
  buttons: Array<{
@@ -226,8 +521,18 @@ interface TransitionControlProps {
226
521
  label: string;
227
522
  value: TransitionConfig;
228
523
  onChange: (value: TransitionConfig) => void;
524
+ /** Hide duration sliders when something else owns the duration (e.g. a timeline clip bar). */
525
+ hideDuration?: boolean;
526
+ /** Route duration edits through an external owner while keeping this control's layout. */
527
+ durationControl?: {
528
+ value: number;
529
+ onChange: (value: number) => void;
530
+ min?: number;
531
+ max?: number;
532
+ step?: number;
533
+ };
229
534
  }
230
- declare function TransitionControl({ panelId, path, label, value, onChange }: TransitionControlProps): react_jsx_runtime.JSX.Element;
535
+ declare function TransitionControl({ panelId, path, label, value, onChange, hideDuration, durationControl, }: TransitionControlProps): react_jsx_runtime.JSX.Element;
231
536
 
232
537
  interface EasingVisualizationProps {
233
538
  easing: EasingConfig;
@@ -274,4 +579,4 @@ interface ShortcutsMenuProps {
274
579
  }
275
580
  declare function ShortcutsMenu({ panelId }: ShortcutsMenuProps): react_jsx_runtime.JSX.Element | null;
276
581
 
277
- export { type ActionConfig, ButtonGroup, type ColorConfig, ColorControl, type ControlMeta, type DialConfig, type DialMode, type DialPosition, DialRoot, DialStore, type DialTheme, type DialValue, type EasingConfig, EasingVisualization, Folder, type PanelConfig, type Preset, PresetManager, type ResolvedValues, type SelectConfig, SelectControl, type ShortcutConfig, type ShortcutInteraction, type ShortcutMode, ShortcutsMenu, Slider, type SpringConfig, SpringControl, SpringVisualization, type TextConfig, TextControl, Toggle, type TransitionConfig, TransitionControl, type UseDialOptions, useDialKit };
582
+ export { type ActionConfig, ButtonGroup, type ColorConfig, ColorControl, type ControlMeta, ControlRenderer, type DialConfig, type DialKitController, type DialKitPersistOptions, type DialKitValueUpdates, type DialMode, type DialPosition, DialRoot, DialStore, type DialTheme, DialTimeline, type DialTimelineProps, type DialTimelineValues, type DialValue, type EasingConfig, EasingVisualization, Folder, type PanelConfig, type Preset, PresetManager, type ResolvedValues, type SelectConfig, SelectControl, type ShortcutConfig, type ShortcutInteraction, type ShortcutMode, ShortcutsMenu, Slider, type SpringConfig, SpringControl, SpringVisualization, type TextConfig, TextControl, type TimelineClipConfig, type TimelineClipCss, type TimelineClipLoop, type TimelineClipMeta, type TimelineClipTrackMeta, type TimelineClipValues, type TimelineConfig, type TimelineGroupConfig, type TimelineGroupValues, type TimelineMeta, type TimelinePropConfig, type TimelinePropStepConfig, type TimelineStepConfig, type TimelineStepValues, TimelineStore, type TimelineTransport, Toggle, type TransitionConfig, TransitionControl, type UseDialOptions, type UseDialTimelineOptions, formatClock, useDialKit, useDialKitController, useDialTimeline };