svelte-tweakpane-ui 1.6.0-preview.4 → 1.6.0-preview.5

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 (95) hide show
  1. package/dist/control/Button.svelte +5 -5
  2. package/dist/control/Button.svelte.d.ts +5 -5
  3. package/dist/control/ButtonGrid.svelte +5 -5
  4. package/dist/control/ButtonGrid.svelte.d.ts +32 -34
  5. package/dist/control/Checkbox.svelte.d.ts +9 -13
  6. package/dist/control/Color.svelte +3 -4
  7. package/dist/control/Color.svelte.d.ts +94 -99
  8. package/dist/control/ColorPlus.svelte +2 -2
  9. package/dist/control/ColorPlus.svelte.d.ts +95 -99
  10. package/dist/control/CubicBezier.svelte +5 -5
  11. package/dist/control/CubicBezier.svelte.d.ts +43 -47
  12. package/dist/control/File.svelte +3 -3
  13. package/dist/control/File.svelte.d.ts +34 -38
  14. package/dist/control/Image.svelte +3 -3
  15. package/dist/control/Image.svelte.d.ts +31 -35
  16. package/dist/control/IntervalSlider.svelte +1 -1
  17. package/dist/control/IntervalSlider.svelte.d.ts +103 -108
  18. package/dist/control/List.svelte +5 -5
  19. package/dist/control/List.svelte.d.ts +24 -28
  20. package/dist/control/Point.svelte +9 -9
  21. package/dist/control/Point.svelte.d.ts +142 -147
  22. package/dist/control/RadioGrid.svelte +3 -4
  23. package/dist/control/RadioGrid.svelte.d.ts +60 -64
  24. package/dist/control/Ring.svelte +1 -1
  25. package/dist/control/Ring.svelte.d.ts +105 -109
  26. package/dist/control/RotationEuler.svelte +5 -5
  27. package/dist/control/RotationEuler.svelte.d.ts +110 -115
  28. package/dist/control/RotationQuaternion.svelte +5 -5
  29. package/dist/control/RotationQuaternion.svelte.d.ts +108 -113
  30. package/dist/control/Slider.svelte +1 -1
  31. package/dist/control/Slider.svelte.d.ts +95 -99
  32. package/dist/control/Stepper.svelte +1 -1
  33. package/dist/control/Stepper.svelte.d.ts +95 -99
  34. package/dist/control/Text.svelte +1 -1
  35. package/dist/control/Text.svelte.d.ts +25 -29
  36. package/dist/control/Textarea.svelte +2 -2
  37. package/dist/control/Textarea.svelte.d.ts +34 -38
  38. package/dist/control/Wheel.svelte +1 -1
  39. package/dist/control/Wheel.svelte.d.ts +101 -104
  40. package/dist/core/Binding.svelte +5 -5
  41. package/dist/core/Binding.svelte.d.ts +9 -14
  42. package/dist/core/Blade.svelte +3 -3
  43. package/dist/core/Blade.svelte.d.ts +5 -7
  44. package/dist/core/Folder.svelte +4 -4
  45. package/dist/core/Folder.svelte.d.ts +5 -5
  46. package/dist/core/Pane.svelte +3 -3
  47. package/dist/core/Pane.svelte.d.ts +217 -221
  48. package/dist/core/Separator.svelte +1 -1
  49. package/dist/core/Separator.svelte.d.ts +0 -2
  50. package/dist/core/TabGroup.svelte +4 -4
  51. package/dist/core/TabGroup.svelte.d.ts +3 -3
  52. package/dist/core/TabPage.svelte +4 -4
  53. package/dist/core/TabPage.svelte.d.ts +4 -4
  54. package/dist/extra/AutoObject.svelte +5 -5
  55. package/dist/extra/AutoObject.svelte.d.ts +4 -5
  56. package/dist/extra/AutoValue.svelte.d.ts +9 -13
  57. package/dist/extra/Element.svelte +1 -1
  58. package/dist/extra/Element.svelte.d.ts +23 -25
  59. package/dist/internal/ClsPad.svelte +3 -2
  60. package/dist/internal/GenericBinding.svelte +2 -2
  61. package/dist/internal/GenericBinding.svelte.d.ts +8 -11
  62. package/dist/internal/GenericBladeFolding.svelte +1 -1
  63. package/dist/internal/GenericBladeFolding.svelte.d.ts +25 -27
  64. package/dist/internal/GenericInput.svelte.d.ts +8 -11
  65. package/dist/internal/GenericInputFolding.svelte.d.ts +78 -81
  66. package/dist/internal/GenericMonitor.svelte.d.ts +76 -79
  67. package/dist/internal/GenericPane.svelte +4 -4
  68. package/dist/internal/GenericPane.svelte.d.ts +6 -7
  69. package/dist/internal/GenericSlider.svelte +1 -1
  70. package/dist/internal/GenericSlider.svelte.d.ts +100 -101
  71. package/dist/internal/InternalMonitorBoolean.svelte +2 -2
  72. package/dist/internal/InternalMonitorBoolean.svelte.d.ts +79 -82
  73. package/dist/internal/InternalMonitorNumber.svelte +3 -3
  74. package/dist/internal/InternalMonitorNumber.svelte.d.ts +100 -103
  75. package/dist/internal/InternalMonitorString.svelte +2 -2
  76. package/dist/internal/InternalMonitorString.svelte.d.ts +84 -87
  77. package/dist/internal/InternalPaneDraggable.svelte +5 -5
  78. package/dist/internal/InternalPaneDraggable.svelte.d.ts +86 -88
  79. package/dist/internal/InternalPaneFixed.svelte.d.ts +26 -27
  80. package/dist/internal/InternalPaneInline.svelte +1 -1
  81. package/dist/internal/InternalPaneInline.svelte.d.ts +13 -14
  82. package/dist/monitor/FpsGraph.svelte +5 -5
  83. package/dist/monitor/FpsGraph.svelte.d.ts +45 -47
  84. package/dist/monitor/Monitor.svelte +1 -1
  85. package/dist/monitor/Monitor.svelte.d.ts +316 -331
  86. package/dist/monitor/Profiler.svelte +3 -3
  87. package/dist/monitor/Profiler.svelte.d.ts +51 -59
  88. package/dist/monitor/WaveformMonitor.svelte +5 -5
  89. package/dist/monitor/WaveformMonitor.svelte.d.ts +102 -105
  90. package/dist/theme.d.ts +1 -1
  91. package/dist/theme.js +0 -1
  92. package/dist/utils.d.ts +5 -5
  93. package/dist/utils.js +2 -4
  94. package/license.txt +1 -1
  95. package/package.json +23 -28
@@ -1,7 +1,6 @@
1
1
  import { SvelteComponent } from 'svelte'
2
- import type { Simplify } from '../utils'
3
- import type { ValueChangeEvent } from '../utils.js'
4
2
  import type { Point2dInputParams, Point3dInputParams, Point4dInputParams } from 'tweakpane'
3
+ import type { Simplify, ValueChangeEvent } from '../utils.js'
5
4
  export type PointValue2dObject = {
6
5
  x: number
7
6
  y: number
@@ -38,56 +37,92 @@ export type PointOptions<
38
37
  : never
39
38
  export type PointChangeEvent = ValueChangeEvent<PointValue2d | PointValue3d | PointValue4d>
40
39
  declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointValue4d> {
41
- props(): {
42
- /**
43
- * A 2D, 3D, or 4D point object to control.
44
- *
45
- * Takes a tuple with a `number` value for each dimension, or an object with at least `x`
46
- * and `y` values, and optionally `z` and `w` values for additional dimensions.
47
- *
48
- * The type of this value will determine the availability of axis-specific option props.
49
- * @bindable
50
- * */
51
- value: T
52
- /**
53
- * The minimum value for all dimensions.
54
- * @default `undefined` \
55
- * No minimum.
56
- * */
57
- min?: number
58
- /**
59
- * The maximum value for all dimensions.
60
- * @default `undefined` \
61
- * No maximum.
62
- * */
63
- max?: number
64
- /**
65
- * A function to customize the point value's string representation (e.g. rounding, etc.).
66
- * @default `undefined` \
67
- * Normal `.toString()` formatting.
68
- * */
69
- format?: ((value: number) => string) | undefined
70
- /**
71
- * The unit scale for key-based input for all dimensions (e.g. the up and down arrow keys).
72
- * @default `1` \
73
- * Or `stepValue` if defined.
74
- * */
75
- keyScale?: number
76
- /**
77
- * The unit scale for pointer-based input for all dimensions.
78
- * @default `undefined` \
79
- * [Dynamic based on magnitude of
80
- * `value`](https://github.com/cocopon/tweakpane/blob/66dfbea04bfe9b7f031673c955ceda1f92356e75/packages/core/src/common/number/util.ts#L54).
81
- * */
82
- pointerScale?: number
83
- /**
84
- * The minimum step interval for all dimensions.
85
- * @default `undefined` \
86
- * No step constraint.
87
- * */
88
- step?: number
89
- } & Omit<
90
- {
40
+ props(): Omit<
41
+ Omit<
42
+ {
43
+ /**
44
+ * The binding's target object with values to manipulate.
45
+ * @bindable
46
+ */
47
+ object: import('@tweakpane/core').Bindable & Record<string, T>
48
+ /** The key for the value in the target `object` that the control should manipulate. */
49
+ key: string
50
+ /**
51
+ * Prevent interactivity and gray out the control.
52
+ * @default `false`
53
+ */
54
+ disabled?: boolean
55
+ /**
56
+ * Text displayed next to control.
57
+ * @default `undefined`
58
+ */
59
+ label?: string | undefined
60
+ /**
61
+ * Tweakpane's internal options object.
62
+ *
63
+ * See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
64
+ *
65
+ * Valid types are contingent on the type of the value `key` points to in `object`.
66
+ *
67
+ * This is intended internal use, when implementing convenience components wrapping Binding's
68
+ * functionality. Options of interest are instead exposed as top-level props in _Svelte
69
+ * Tweakpane UI_.
70
+ * @default `undefined`
71
+ */
72
+ options?:
73
+ | (T extends PointValue4d
74
+ ? Point4dInputParams
75
+ : T extends PointValue3d
76
+ ? Point3dInputParams
77
+ : T extends PointValue2d
78
+ ? Point2dInputParams
79
+ : unknown)
80
+ | undefined
81
+ /**
82
+ * Custom color scheme.
83
+ * @default `undefined` \
84
+ * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
85
+ * set with `setGlobalDefaultTheme()`.
86
+ */
87
+ theme?: import('..').Theme | undefined
88
+ /**
89
+ * Reference to internal Tweakpane
90
+ * [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
91
+ * this control.
92
+ *
93
+ * This property is exposed for advanced use cases only, such as when implementing convenience
94
+ * components wrapping `<Binding>`'s functionality.
95
+ *
96
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
97
+ * @bindable
98
+ * @readonly
99
+ */
100
+ ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined
101
+ /**
102
+ * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
103
+ * the `<Binding>`'s containing `<Pane>`.
104
+ *
105
+ * This property is exposed for advanced use cases only, such as when implementing convenience
106
+ * components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
107
+ *
108
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
109
+ * @default `undefined`
110
+ */
111
+ plugin?: import('../utils.js').Plugin | undefined
112
+ },
113
+ 'object' | 'key'
114
+ > & {
115
+ /**
116
+ * A 2D, 3D, or 4D point object to control.
117
+ *
118
+ * Takes a tuple with a `number` value for each dimension, or an object with at least `x`
119
+ * and `y` values, and optionally `z` and `w` values for additional dimensions.
120
+ *
121
+ * The type of this value will determine the availability of axis-specific option props.
122
+ * @bindable
123
+ */
124
+ value: T
125
+ } & {
91
126
  /**
92
127
  * DOM class name of the button used to expand and collapse the input's picker.
93
128
  * @default `undefined`
@@ -109,94 +144,7 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
109
144
  * @default `true`
110
145
  */
111
146
  userExpandable?: boolean
112
- } & {
113
- /**
114
- * A 2D, 3D, or 4D point object to control.
115
- *
116
- * Takes a tuple with a `number` value for each dimension, or an object with at least `x`
117
- * and `y` values, and optionally `z` and `w` values for additional dimensions.
118
- *
119
- * The type of this value will determine the availability of axis-specific option props.
120
- * @bindable
121
- */
122
- value: T
123
- } & Omit<
124
- {
125
- /**
126
- * The binding's target object with values to manipulate.
127
- * @bindable
128
- */
129
- object: import('@tweakpane/core').Bindable & Record<string, T>
130
- /** The key for the value in the target `object` that the control should manipulate. */
131
- key: string
132
- /**
133
- * Prevent interactivity and gray out the control.
134
- * @default `false`
135
- */
136
- disabled?: boolean
137
- /**
138
- * Text displayed next to control.
139
- * @default `undefined`
140
- */
141
- label?: string | undefined
142
- /**
143
- * Tweakpane's internal options object.
144
- *
145
- * See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
146
- *
147
- * Valid types are contingent on the type of the value `key` points to in `object`.
148
- *
149
- * This is intended internal use, when implementing convenience components wrapping Binding's
150
- * functionality. Options of interest are instead exposed as top-level props in _Svelte
151
- * Tweakpane UI_.
152
- * @default `undefined`
153
- */
154
- options?:
155
- | (T extends PointValue4d
156
- ? Point4dInputParams
157
- : T extends PointValue3d
158
- ? Point3dInputParams
159
- : T extends PointValue2d
160
- ? Point2dInputParams
161
- : unknown)
162
- | undefined
163
- /**
164
- * Custom color scheme.
165
- *
166
- * @default `undefined` \
167
- * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
168
- * set with `setGlobalDefaultTheme()`.
169
- */
170
- theme?: import('..').Theme | undefined
171
- /**
172
- * Reference to internal Tweakpane
173
- * [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
174
- * this control.
175
- *
176
- * This property is exposed for advanced use cases only, such as when implementing convenience
177
- * components wrapping `<Binding>`'s functionality.
178
- *
179
- * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
180
- *
181
- * @bindable
182
- * @readonly
183
- */
184
- ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined
185
- /**
186
- * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
187
- * the `<Binding>`'s containing `<Pane>`.
188
- *
189
- * This property is exposed for advanced use cases only, such as when implementing convenience
190
- * components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
191
- *
192
- * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
193
- *
194
- * @default `undefined`
195
- */
196
- plugin?: import('../utils').Plugin | undefined
197
- },
198
- 'object' | 'key'
199
- >,
147
+ },
200
148
  'ref' | 'options' | 'plugin' | 'buttonClass'
201
149
  > &
202
150
  (T extends PointValue2d | PointValue3d | PointValue4d
@@ -207,7 +155,7 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
207
155
  * Renamed from `x` in Tweakpane API to clarify that it is an object of options, not
208
156
  * a value.
209
157
  * @default `undefined`
210
- * */
158
+ */
211
159
  optionsX?:
212
160
  | (T extends infer T_1
213
161
  ? T_1 extends T
@@ -231,7 +179,7 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
231
179
  * a value.
232
180
  * @default `undefined` \
233
181
  * `inverted` is `false`
234
- * */
182
+ */
235
183
  optionsY?:
236
184
  | (T extends infer T_2
237
185
  ? T_2 extends T
@@ -255,7 +203,7 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
255
203
  * Renamed from `z` in Tweakpane API to clarify that it is an object of options,
256
204
  * not a value.
257
205
  * @default `undefined`
258
- * */
206
+ */
259
207
  optionsZ?:
260
208
  | (T extends infer T_3
261
209
  ? T_3 extends T
@@ -279,7 +227,7 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
279
227
  * Renamed from `w` in Tweakpane API to clarify that it is an object of options,
280
228
  * not a value.
281
229
  * @default `undefined`
282
- * */
230
+ */
283
231
  optionsW?:
284
232
  | (T extends infer T_4
285
233
  ? T_4 extends T
@@ -294,7 +242,55 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
294
242
  : never)['w']
295
243
  | undefined
296
244
  }
297
- : unknown)
245
+ : unknown) & {
246
+ /**
247
+ * A 2D, 3D, or 4D point object to control.
248
+ *
249
+ * Takes a tuple with a `number` value for each dimension, or an object with at least `x`
250
+ * and `y` values, and optionally `z` and `w` values for additional dimensions.
251
+ *
252
+ * The type of this value will determine the availability of axis-specific option props.
253
+ * @bindable
254
+ */
255
+ value: T
256
+ /**
257
+ * The minimum value for all dimensions.
258
+ * @default `undefined` \
259
+ * No minimum.
260
+ */
261
+ min?: number
262
+ /**
263
+ * The maximum value for all dimensions.
264
+ * @default `undefined` \
265
+ * No maximum.
266
+ */
267
+ max?: number
268
+ /**
269
+ * A function to customize the point value's string representation (e.g. rounding, etc.).
270
+ * @default `undefined` \
271
+ * Normal `.toString()` formatting.
272
+ */
273
+ format?: ((value: number) => string) | undefined
274
+ /**
275
+ * The unit scale for key-based input for all dimensions (e.g. the up and down arrow keys).
276
+ * @default `1` \
277
+ * Or `stepValue` if defined.
278
+ */
279
+ keyScale?: number
280
+ /**
281
+ * The unit scale for pointer-based input for all dimensions.
282
+ * @default `undefined` \
283
+ * [Dynamic based on magnitude of
284
+ * `value`](https://github.com/cocopon/tweakpane/blob/66dfbea04bfe9b7f031673c955ceda1f92356e75/packages/core/src/common/number/util.ts#L54).
285
+ */
286
+ pointerScale?: number
287
+ /**
288
+ * The minimum step interval for all dimensions.
289
+ * @default `undefined` \
290
+ * No step constraint.
291
+ */
292
+ step?: number
293
+ }
298
294
  events(): {
299
295
  /**
300
296
  * Fires when `value` changes.
@@ -303,10 +299,9 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
303
299
  *
304
300
  * The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
305
301
  * and changes resulting from programmatic manipulation of the `value` (`external`).
306
- *
307
302
  * @extends ValueChangeEvent
308
303
  * @event
309
- * */
304
+ */
310
305
  change: PointChangeEvent
311
306
  }
312
307
  slots(): {}
@@ -1,13 +1,12 @@
1
1
  <script context="module"></script>
2
2
 
3
3
  <script generics="T extends boolean | number | string">
4
- import ClsPad from '../internal/ClsPad.svelte'
5
- import GenericInput from '../internal/GenericInput.svelte'
6
- import { fillWith } from '../utils'
7
- import { getGridDimensions } from '../utils.js'
8
4
  import * as pluginModule from '@kitschpatrol/tweakpane-plugin-essentials'
9
5
  import { BROWSER } from 'esm-env'
10
6
  import { nanoid } from 'nanoid'
7
+ import ClsPad from '../internal/ClsPad.svelte'
8
+ import GenericInput from '../internal/GenericInput.svelte'
9
+ import { fillWith, getGridDimensions } from '../utils.js'
11
10
  const defaultGroupName = nanoid()
12
11
  export let groupName = void 0
13
12
  export let values
@@ -2,61 +2,8 @@ import { SvelteComponent } from 'svelte'
2
2
  import type { ValueChangeEvent } from '../utils.js'
3
3
  export type RadioGridChangeEvent = ValueChangeEvent<boolean | number | string>
4
4
  declare class __sveltets_Render<T extends boolean | number | string> {
5
- props(): {
6
- /**
7
- * Value of selected radio button.
8
- *
9
- * Bind to this prop to receive updates when the user clicks a radio button.
10
- * @bindable
11
- * @default `undefined` If undefined, the first value in the `values` array is assigned.
12
- * */
13
- value?: T | undefined
14
- /**
15
- * Number of columns to arrange the radio buttons into.
16
- * @default `undefined`
17
- * */
18
- columns?: number
19
- /**
20
- * Name allowing multiple radio groups to share mutually exclusive selection state.
21
- *
22
- * Allows spanning exclusive selection state across multiple independent `<RadioGrid>`
23
- * components, but should remain `undefined` for most use cases to keep exclusivity scoped
24
- * to a single `<RadioGrid>`.
25
- * @default `undefined` \
26
- * Uses a dynamically generated globally unique id internally.
27
- */
28
- groupName?: string
29
- /**
30
- * Text to show in the radio button label before the value.
31
- * @default `undefined`
32
- * */
33
- prefix?: string
34
- /**
35
- * Number of rows to arrange the radio buttons into.
36
- * @default `undefined`
37
- * */
38
- rows?: number
39
- /**
40
- * Text to show in the radio button label after the value.
41
- * @default `undefined`
42
- * */
43
- suffix?: string
44
- /**
45
- * Array of `number`, `string` or `boolean` values, each of which will become a button in
46
- * the radio grid.
47
- * */
48
- values: T[]
49
- } & Omit<
50
- {
51
- /**
52
- * Value of selected radio button.
53
- *
54
- * Bind to this prop to receive updates when the user clicks a radio button.
55
- * @bindable
56
- * @default `undefined` If undefined, the first value in the `values` array is assigned.
57
- */
58
- value: T
59
- } & Omit<
5
+ props(): Omit<
6
+ Omit<
60
7
  {
61
8
  /**
62
9
  * The binding's target object with values to manipulate.
@@ -88,7 +35,7 @@ declare class __sveltets_Render<T extends boolean | number | string> {
88
35
  * @default `undefined`
89
36
  */
90
37
  options?:
91
- | ({
38
+ | (import('@tweakpane/core').BaseInputParams & {
92
39
  cells: (
93
40
  x: number,
94
41
  y: number,
@@ -99,11 +46,10 @@ declare class __sveltets_Render<T extends boolean | number | string> {
99
46
  groupName: string
100
47
  size: [number, number]
101
48
  view: 'radiogrid'
102
- } & import('@tweakpane/core').BaseInputParams)
49
+ })
103
50
  | undefined
104
51
  /**
105
52
  * Custom color scheme.
106
- *
107
53
  * @default `undefined` \
108
54
  * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
109
55
  * set with `setGlobalDefaultTheme()`.
@@ -118,7 +64,6 @@ declare class __sveltets_Render<T extends boolean | number | string> {
118
64
  * components wrapping `<Binding>`'s functionality.
119
65
  *
120
66
  * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
121
- *
122
67
  * @bindable
123
68
  * @readonly
124
69
  */
@@ -131,15 +76,67 @@ declare class __sveltets_Render<T extends boolean | number | string> {
131
76
  * components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
132
77
  *
133
78
  * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
134
- *
135
79
  * @default `undefined`
136
80
  */
137
81
  plugin?: import('../utils.js').Plugin | undefined
138
82
  },
139
83
  'object' | 'key'
140
- >,
84
+ > & {
85
+ /**
86
+ * Value of selected radio button.
87
+ *
88
+ * Bind to this prop to receive updates when the user clicks a radio button.
89
+ * @bindable
90
+ * @default `undefined` If undefined, the first value in the `values` array is assigned.
91
+ */
92
+ value: T
93
+ },
141
94
  'ref' | 'options' | 'plugin'
142
- >
95
+ > & {
96
+ /**
97
+ * Value of selected radio button.
98
+ *
99
+ * Bind to this prop to receive updates when the user clicks a radio button.
100
+ * @bindable
101
+ * @default `undefined` If undefined, the first value in the `values` array is assigned.
102
+ */
103
+ value?: T | undefined
104
+ /**
105
+ * Number of columns to arrange the radio buttons into.
106
+ * @default `undefined`
107
+ */
108
+ columns?: number
109
+ /**
110
+ * Name allowing multiple radio groups to share mutually exclusive selection state.
111
+ *
112
+ * Allows spanning exclusive selection state across multiple independent `<RadioGrid>`
113
+ * components, but should remain `undefined` for most use cases to keep exclusivity scoped
114
+ * to a single `<RadioGrid>`.
115
+ * @default `undefined` \
116
+ * Uses a dynamically generated globally unique id internally.
117
+ */
118
+ groupName?: string
119
+ /**
120
+ * Text to show in the radio button label before the value.
121
+ * @default `undefined`
122
+ */
123
+ prefix?: string
124
+ /**
125
+ * Number of rows to arrange the radio buttons into.
126
+ * @default `undefined`
127
+ */
128
+ rows?: number
129
+ /**
130
+ * Text to show in the radio button label after the value.
131
+ * @default `undefined`
132
+ */
133
+ suffix?: string
134
+ /**
135
+ * Array of `number`, `string` or `boolean` values, each of which will become a button in
136
+ * the radio grid.
137
+ */
138
+ values: T[]
139
+ }
143
140
  events(): {
144
141
  /**
145
142
  * Fires when `value` changes.
@@ -148,10 +145,9 @@ declare class __sveltets_Render<T extends boolean | number | string> {
148
145
  *
149
146
  * The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
150
147
  * and changes resulting from programmatic manipulation of the `value` (`external`).
151
- *
152
148
  * @extends ValueChangeEvent
153
149
  * @event
154
- * */
150
+ */
155
151
  change: RadioGridChangeEvent
156
152
  }
157
153
  slots(): {}
@@ -1,8 +1,8 @@
1
1
  <script context="module"></script>
2
2
 
3
3
  <script>
4
- import GenericSlider from '../internal/GenericSlider.svelte'
5
4
  import * as pluginModule from '@kitschpatrol/tweakpane-plugin-camerakit'
5
+ import GenericSlider from '../internal/GenericSlider.svelte'
6
6
  export let value
7
7
  export let series = void 0
8
8
  export let unit = void 0