svelte-tweakpane-ui 1.1.1 → 1.1.3

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 (31) hide show
  1. package/dist/{core → control}/Button.svelte.d.ts +1 -1
  2. package/dist/control/ButtonGrid.svelte.d.ts +1 -1
  3. package/dist/control/Checkbox.svelte.d.ts +1 -1
  4. package/dist/control/Color.svelte.d.ts +1 -1
  5. package/dist/control/CubicBezier.svelte.d.ts +1 -1
  6. package/dist/control/IntervalSlider.svelte.d.ts +1 -1
  7. package/dist/control/List.svelte.d.ts +1 -1
  8. package/dist/control/Point.svelte.d.ts +1 -1
  9. package/dist/control/RadioGrid.svelte.d.ts +1 -1
  10. package/dist/control/Ring.svelte.d.ts +1 -1
  11. package/dist/control/RotationEuler.svelte.d.ts +1 -1
  12. package/dist/control/RotationQuaternion.svelte.d.ts +1 -1
  13. package/dist/control/Slider.svelte.d.ts +1 -1
  14. package/dist/control/Text.svelte.d.ts +1 -1
  15. package/dist/control/Textarea.svelte +1 -1
  16. package/dist/control/Textarea.svelte.d.ts +1 -1
  17. package/dist/control/Wheel.svelte.d.ts +1 -1
  18. package/dist/core/Separator.svelte.d.ts +1 -1
  19. package/dist/extra/AutoValue.svelte.d.ts +1 -1
  20. package/dist/extra/Element.svelte.d.ts +1 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +2 -2
  23. package/dist/internal/InternalMonitorBoolean.svelte.d.ts +1 -1
  24. package/dist/internal/InternalMonitorNumber.svelte.d.ts +1 -1
  25. package/dist/internal/InternalMonitorString.svelte.d.ts +1 -1
  26. package/dist/monitor/FpsGraph.svelte.d.ts +1 -1
  27. package/dist/monitor/Monitor.svelte.d.ts +4 -4
  28. package/dist/monitor/Profiler.svelte.d.ts +1 -1
  29. package/dist/monitor/WaveformMonitor.svelte.d.ts +1 -1
  30. package/package.json +5 -5
  31. /package/dist/{core → control}/Button.svelte +0 -0
@@ -59,7 +59,7 @@ export type ButtonSlots = typeof __propDef.slots;
59
59
  * ```
60
60
  *
61
61
  * @sourceLink
62
- * [Button.svelte](https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/src/lib/core/Button.svelte)
62
+ * [Button.svelte](https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/src/lib/control/Button.svelte)
63
63
  */
64
64
  export default class Button extends SvelteComponent<ButtonProps, ButtonEvents, ButtonSlots> {}
65
65
  export {};
@@ -50,7 +50,7 @@ declare const __propDef: {
50
50
  */
51
51
  plugin?: import('tweakpane').TpPluginBundle | undefined;
52
52
  },
53
- 'options' | 'ref' | 'plugin'
53
+ 'ref' | 'options' | 'plugin'
54
54
  > & {
55
55
  /**
56
56
  * Array of names, each of which will become the title of a button in the grid.
@@ -70,7 +70,7 @@ declare const __propDef: {
70
70
  */
71
71
  value: boolean;
72
72
  },
73
- 'options' | 'ref' | 'plugin'
73
+ 'ref' | 'options' | 'plugin'
74
74
  >;
75
75
  events: {
76
76
  [evt: string]: CustomEvent<any>;
@@ -113,7 +113,7 @@ declare const __propDef: {
113
113
  */
114
114
  userExpandable?: boolean | undefined;
115
115
  },
116
- 'options' | 'ref' | 'plugin' | 'buttonClass'
116
+ 'ref' | 'options' | 'plugin' | 'buttonClass'
117
117
  > & {
118
118
  /**
119
119
  * A color value to control.
@@ -75,7 +75,7 @@ declare const __propDef: {
75
75
  */
76
76
  userExpandable?: boolean | undefined;
77
77
  },
78
- 'options' | 'ref' | 'plugin' | 'buttonClass'
78
+ 'ref' | 'options' | 'plugin' | 'buttonClass'
79
79
  > & {
80
80
  /**
81
81
  * The cubic bezier value to control.
@@ -119,7 +119,7 @@ declare const __propDef: {
119
119
  */
120
120
  step?: number | undefined;
121
121
  },
122
- 'options' | 'ref' | 'plugin'
122
+ 'ref' | 'options' | 'plugin'
123
123
  > & {
124
124
  /**
125
125
  * Interval value to control.
@@ -52,7 +52,7 @@ declare class __sveltets_Render<T extends any> {
52
52
  */
53
53
  plugin?: import('tweakpane').TpPluginBundle | undefined;
54
54
  },
55
- 'options' | 'ref' | 'plugin'
55
+ 'ref' | 'options' | 'plugin'
56
56
  > & {
57
57
  /**
58
58
  * Value of the selected `options` item.
@@ -141,7 +141,7 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
141
141
  */
142
142
  userExpandable?: boolean | undefined;
143
143
  },
144
- 'options' | 'ref' | 'plugin' | 'buttonClass'
144
+ 'ref' | 'options' | 'plugin' | 'buttonClass'
145
145
  > & {
146
146
  /**
147
147
  * A 2D, 3D, or 4D point object to control.
@@ -86,7 +86,7 @@ declare class __sveltets_Render<T extends number | string | boolean> {
86
86
  */
87
87
  value: T;
88
88
  },
89
- 'options' | 'ref' | 'plugin'
89
+ 'ref' | 'options' | 'plugin'
90
90
  > & {
91
91
  /**
92
92
  * Value of selected radio button.
@@ -136,7 +136,7 @@ declare const __propDef: {
136
136
  */
137
137
  step?: number | undefined;
138
138
  },
139
- 'options' | 'ref' | 'plugin'
139
+ 'ref' | 'options' | 'plugin'
140
140
  > & {
141
141
  /**
142
142
  * A `number` value to control.
@@ -176,7 +176,7 @@ declare const __propDef: {
176
176
  */
177
177
  userExpandable?: boolean | undefined;
178
178
  },
179
- 'options' | 'ref' | 'plugin' | 'buttonClass'
179
+ 'ref' | 'options' | 'plugin' | 'buttonClass'
180
180
  > & {
181
181
  /**
182
182
  * The rotation value to control.
@@ -109,7 +109,7 @@ declare const __propDef: {
109
109
  */
110
110
  userExpandable?: boolean | undefined;
111
111
  },
112
- 'options' | 'ref' | 'plugin' | 'buttonClass'
112
+ 'ref' | 'options' | 'plugin' | 'buttonClass'
113
113
  > & {
114
114
  /**
115
115
  * The quaternion value to control.
@@ -110,7 +110,7 @@ declare const __propDef: {
110
110
  */
111
111
  step?: number | undefined;
112
112
  },
113
- 'options' | 'ref' | 'plugin'
113
+ 'ref' | 'options' | 'plugin'
114
114
  > & {
115
115
  /**
116
116
  * A `number` value to control.
@@ -71,7 +71,7 @@ declare const __propDef: {
71
71
  */
72
72
  value: string;
73
73
  },
74
- 'options' | 'ref' | 'plugin'
74
+ 'ref' | 'options' | 'plugin'
75
75
  > & {
76
76
  /**
77
77
  * A `string` value to control.
@@ -40,6 +40,6 @@
40
40
  <GenericInput value={_value} bind:ref {options} plugin={pluginModule} {...$$restProps} />
41
41
  {#if !BROWSER}
42
42
  <!-- TODO magic numbers -->
43
- <div style:background="red" style:height={`calc(${16 * (rows ?? 3)}px - 14px)`} />
43
+ <div style:height={`calc(${16 * (rows ?? 3)}px - 14px)`} />
44
44
  <!-- <ClsPad keysAdd={fillWith('containerUnitSize', 1)} theme={$$props.theme} /> -->
45
45
  {/if}
@@ -72,7 +72,7 @@ declare const __propDef: {
72
72
  */
73
73
  value: string;
74
74
  },
75
- 'options' | 'ref' | 'plugin'
75
+ 'ref' | 'options' | 'plugin'
76
76
  > & {
77
77
  /**
78
78
  * A `string` value to control.
@@ -110,7 +110,7 @@ declare const __propDef: {
110
110
  */
111
111
  step?: number | undefined;
112
112
  },
113
- 'options' | 'ref' | 'plugin'
113
+ 'ref' | 'options' | 'plugin'
114
114
  > & {
115
115
  /**
116
116
  * A `number` value to control.
@@ -44,7 +44,7 @@ declare const __propDef: {
44
44
  */
45
45
  plugin?: import('tweakpane').TpPluginBundle | undefined;
46
46
  },
47
- 'options' | 'ref' | 'plugin'
47
+ 'ref' | 'options' | 'plugin'
48
48
  >;
49
49
  events: {
50
50
  [evt: string]: CustomEvent<any>;
@@ -71,7 +71,7 @@ declare const __propDef: {
71
71
  */
72
72
  value: string | number | boolean | object;
73
73
  },
74
- 'options' | 'ref' | 'plugin'
74
+ 'ref' | 'options' | 'plugin'
75
75
  >;
76
76
  events: {
77
77
  [evt: string]: CustomEvent<any>;
@@ -41,7 +41,7 @@ declare const __propDef: {
41
41
  */
42
42
  plugin?: import('tweakpane').TpPluginBundle | undefined;
43
43
  },
44
- 'options' | 'disabled' | 'ref' | 'plugin'
44
+ 'ref' | 'disabled' | 'options' | 'plugin'
45
45
  > & {
46
46
  /**
47
47
  * Maximum height of the element block, in pixels. By default, the element
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { type ButtonClickEvent, default as Button } from './control/Button.svelte';
1
2
  export { type ButtonGridClickEvent, default as ButtonGrid } from './control/ButtonGrid.svelte';
2
3
  export { default as Checkbox } from './control/Checkbox.svelte';
3
4
  export {
@@ -66,7 +67,6 @@ export { default as Textarea } from './control/Textarea.svelte';
66
67
  export { default as Wheel } from './control/Wheel.svelte';
67
68
  export { type BindingOptions, type BindingRef, default as Binding } from './core/Binding.svelte';
68
69
  export { type BladeOptions, type BladeRef, default as Blade } from './core/Blade.svelte';
69
- export { type ButtonClickEvent, default as Button } from './core/Button.svelte';
70
70
  export { default as Folder } from './core/Folder.svelte';
71
71
  export { type PanePosition, default as Pane } from './core/Pane.svelte';
72
72
  export { default as Separator } from './core/Separator.svelte';
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // Components
2
- // essentials (1st party plugins)
2
+ export { default as Button } from './control/Button.svelte';
3
+ // Essentials (1st party plugins)
3
4
  export { default as ButtonGrid } from './control/ButtonGrid.svelte';
4
5
  export { default as Checkbox } from './control/Checkbox.svelte';
5
6
  export { default as Color } from './control/Color.svelte';
@@ -21,7 +22,6 @@ export { default as Wheel } from './control/Wheel.svelte';
21
22
  // Core (tweakpane building blocks)
22
23
  export { default as Binding } from './core/Binding.svelte';
23
24
  export { default as Blade } from './core/Blade.svelte';
24
- export { default as Button } from './core/Button.svelte';
25
25
  export { default as Folder } from './core/Folder.svelte';
26
26
  export { default as Pane } from './core/Pane.svelte';
27
27
  export { default as Separator } from './core/Separator.svelte';
@@ -94,7 +94,7 @@ declare const __propDef: {
94
94
  */
95
95
  rows?: number | undefined;
96
96
  },
97
- 'options' | 'ref' | 'plugin' | 'interval'
97
+ 'ref' | 'options' | 'plugin' | 'interval'
98
98
  > & {
99
99
  /**
100
100
  * A `boolean` value to monitor.
@@ -94,7 +94,7 @@ declare const __propDef: {
94
94
  */
95
95
  rows?: number | undefined;
96
96
  },
97
- 'options' | 'ref' | 'plugin'
97
+ 'ref' | 'options' | 'plugin'
98
98
  > & {
99
99
  /**
100
100
  * A `number` value to monitor.
@@ -94,7 +94,7 @@ declare const __propDef: {
94
94
  */
95
95
  rows?: number | undefined;
96
96
  },
97
- 'options' | 'ref' | 'plugin' | 'interval'
97
+ 'ref' | 'options' | 'plugin' | 'interval'
98
98
  > & {
99
99
  /**
100
100
  * A `string` value to monitor.
@@ -60,7 +60,7 @@ declare const __propDef: {
60
60
  */
61
61
  plugin?: import('tweakpane').TpPluginBundle | undefined;
62
62
  },
63
- 'options' | 'ref' | 'plugin'
63
+ 'ref' | 'options' | 'plugin'
64
64
  > & {
65
65
  /**
66
66
  * Lower bound of the FPS graph.
@@ -101,7 +101,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
101
101
  */
102
102
  rows?: number | undefined;
103
103
  },
104
- 'options' | 'ref' | 'plugin'
104
+ 'ref' | 'options' | 'plugin'
105
105
  > &
106
106
  (W extends string
107
107
  ? Omit<
@@ -197,7 +197,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
197
197
  */
198
198
  rows?: number | undefined;
199
199
  },
200
- 'options' | 'ref' | 'plugin' | 'interval'
200
+ 'ref' | 'options' | 'plugin' | 'interval'
201
201
  > & {
202
202
  /**
203
203
  * A value to monitor.
@@ -304,7 +304,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
304
304
  */
305
305
  rows?: number | undefined;
306
306
  },
307
- 'options' | 'ref' | 'plugin' | 'interval'
307
+ 'ref' | 'options' | 'plugin' | 'interval'
308
308
  > & {
309
309
  /**
310
310
  * A value to monitor.
@@ -406,7 +406,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
406
406
  */
407
407
  rows?: number | undefined;
408
408
  },
409
- 'options' | 'ref' | 'plugin'
409
+ 'ref' | 'options' | 'plugin'
410
410
  > & {
411
411
  /**
412
412
  * A value to monitor.
@@ -76,7 +76,7 @@ declare const __propDef: {
76
76
  */
77
77
  plugin?: import('tweakpane').TpPluginBundle | undefined;
78
78
  },
79
- 'options' | 'ref' | 'plugin'
79
+ 'ref' | 'options' | 'plugin'
80
80
  > & {
81
81
  /**
82
82
  * Number of duration samples from which to calculate the delta value when `calcMode` is
@@ -104,7 +104,7 @@ declare const __propDef: {
104
104
  * @bindable
105
105
  * */;
106
106
  },
107
- 'options' | 'ref' | 'plugin'
107
+ 'ref' | 'options' | 'plugin'
108
108
  > & {
109
109
  /**
110
110
  * Waveform values.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-tweakpane-ui",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "type": "module",
5
5
  "description": "Wraps UI elements from Tweakpane in a collection of idiomatic Svelte components, and augments Tweakpane with a few extra features for your convenience and enjoyment.",
6
6
  "repository": {
@@ -27,6 +27,10 @@
27
27
  "types": "./dist/index.d.ts",
28
28
  "svelte": "./dist/index.js"
29
29
  },
30
+ "./Button.svelte": {
31
+ "types": "./dist/control/Button.svelte.d.ts",
32
+ "svelte": "./dist/control/Button.svelte"
33
+ },
30
34
  "./ButtonGrid.svelte": {
31
35
  "types": "./dist/control/ButtonGrid.svelte.d.ts",
32
36
  "svelte": "./dist/control/ButtonGrid.svelte"
@@ -99,10 +103,6 @@
99
103
  "types": "./dist/core/Blade.svelte.d.ts",
100
104
  "svelte": "./dist/core/Blade.svelte"
101
105
  },
102
- "./Button.svelte": {
103
- "types": "./dist/core/Button.svelte.d.ts",
104
- "svelte": "./dist/core/Button.svelte"
105
- },
106
106
  "./Folder.svelte": {
107
107
  "types": "./dist/core/Folder.svelte.d.ts",
108
108
  "svelte": "./dist/core/Folder.svelte"
File without changes