zds-pickers 4.0.21 → 4.0.22

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.
@@ -17,6 +17,11 @@ import { PianoPicker } from '../lib/pickers/PianoPicker'
17
17
  import { PolarityPicker } from '../lib/pickers/PolarityPicker'
18
18
  import { ResponseCurve } from '../lib/pickers/ResponseCurve'
19
19
  import { ResponseCurvePicker } from '../lib/pickers/ResponseCurvePicker'
20
+ import {
21
+ type Option,
22
+ noSelection,
23
+ noSelectionOption,
24
+ } from '../lib/pickers/Select'
20
25
  import { StatusPicker } from '../lib/pickers/StatusPicker'
21
26
  import { ValuePicker } from '../lib/pickers/ValuePicker'
22
27
 
@@ -36,6 +41,16 @@ const CCPickerStory: StoryObj<typeof CCPicker> = {
36
41
  },
37
42
  }
38
43
 
44
+ const CCPickerUndefinedStory: StoryObj<typeof CCPicker> = {
45
+ render: args => <CCPicker {...args} />,
46
+ args: {
47
+ disabled: false,
48
+ label: 'CC #',
49
+ shrinkLabel: false,
50
+ value: noSelection,
51
+ },
52
+ }
53
+
39
54
  const ChannelPickerStory: StoryObj<typeof ChannelPicker> = {
40
55
  render: args => <ChannelPicker {...args} />,
41
56
  args: {
@@ -52,7 +67,7 @@ const ChannelPickerUndefinedStory: StoryObj<typeof ChannelPicker> = {
52
67
  disabled: false,
53
68
  label: 'Channel',
54
69
  shrinkLabel: false,
55
- value: undefined,
70
+ value: noSelection,
56
71
  },
57
72
  }
58
73
 
@@ -84,6 +99,39 @@ const ChannelMappingPickerStory: StoryObj<typeof ChannelMappingPicker> = {
84
99
  },
85
100
  }
86
101
 
102
+ const ChannelMappingPickerUndefinedStory: StoryObj<
103
+ typeof ChannelMappingPicker
104
+ > = {
105
+ render: args => <ChannelMappingPicker {...args} />,
106
+ args: {
107
+ channels: [
108
+ ...[
109
+ '',
110
+ 'No Mapping',
111
+ '',
112
+ 'Alesis DM Pro',
113
+ '',
114
+ '',
115
+ '',
116
+ 'BFD3',
117
+ '',
118
+ '',
119
+ 'Roland TD-20',
120
+ 'Roland TD-30 Perc 1 (Latin)',
121
+ '',
122
+ '',
123
+ '',
124
+ '',
125
+ ].map((label, value): Option<number> => ({ label, value })),
126
+ noSelectionOption,
127
+ ],
128
+ disabled: false,
129
+ label: 'Channel',
130
+ shrinkLabel: false,
131
+ value: noSelection,
132
+ },
133
+ }
134
+
87
135
  const KnobStory: StoryObj<typeof Knob> = {
88
136
  render: args => <Knob {...args} />,
89
137
  args: {
@@ -226,6 +274,18 @@ const PolarityPickerStory: StoryObj<typeof PolarityPicker> = {
226
274
  },
227
275
  }
228
276
 
277
+ const PolarityPickerUndefinedStory: StoryObj<typeof PolarityPicker> = {
278
+ render: args => <PolarityPicker {...args} />,
279
+ args: {
280
+ disabled: false,
281
+ label: 'Polarity',
282
+ labelOff: 'Normally Off',
283
+ labelOn: 'Normally On',
284
+ shrinkLabel: false,
285
+ value: noSelection,
286
+ },
287
+ }
288
+
229
289
  const ResponseCurveStory: StoryObj<typeof ResponseCurve> = {
230
290
  render: args => <ResponseCurve {...args} />,
231
291
  args: {
@@ -246,6 +306,18 @@ const ResponseCurvePickerStory: StoryObj<typeof ResponseCurvePicker> = {
246
306
  },
247
307
  }
248
308
 
309
+ const ResponseCurvePickerUndefinedStory: StoryObj<typeof ResponseCurvePicker> =
310
+ {
311
+ render: args => <ResponseCurvePicker {...args} />,
312
+ args: {
313
+ disabled: false,
314
+ inverted: false,
315
+ label: 'Response',
316
+ shrinkLabel: false,
317
+ value: noSelection,
318
+ },
319
+ }
320
+
249
321
  const StatusPickerStory: StoryObj<typeof StatusPicker> = {
250
322
  render: args => <StatusPicker {...args} />,
251
323
  args: {
@@ -257,6 +329,17 @@ const StatusPickerStory: StoryObj<typeof StatusPicker> = {
257
329
  },
258
330
  }
259
331
 
332
+ const StatusPickerUndefinedStory: StoryObj<typeof StatusPicker> = {
333
+ render: args => <StatusPicker {...args} />,
334
+ args: {
335
+ disabled: false,
336
+ label: 'Status Msg',
337
+ shrinkLabel: false,
338
+ statuses: statusOptions,
339
+ value: noSelection,
340
+ },
341
+ }
342
+
260
343
  const ValuePickerStory: StoryObj<typeof ValuePicker> = {
261
344
  render: args => <ValuePicker {...args} />,
262
345
  args: {
@@ -269,11 +352,26 @@ const ValuePickerStory: StoryObj<typeof ValuePicker> = {
269
352
  },
270
353
  }
271
354
 
355
+ const ValuePickerUndefinedStory: StoryObj<typeof ValuePicker> = {
356
+ render: args => <ValuePicker {...args} />,
357
+ args: {
358
+ disabled: false,
359
+ highToLow: false,
360
+ label: 'Value',
361
+ max: 127,
362
+ min: 0,
363
+ shrinkLabel: false,
364
+ value: noSelection,
365
+ },
366
+ }
367
+
272
368
  export {
273
369
  ChannelPickerStory as ChannelPicker,
274
370
  ChannelPickerUndefinedStory as ChannelPickerNoValue,
275
371
  ChannelMappingPickerStory as ChannelMappingPicker,
276
- CCPickerStory as ContinuousChangePicker,
372
+ ChannelMappingPickerUndefinedStory as ChannelMappingPickerNoValue,
373
+ CCPickerStory as ChangeController,
374
+ CCPickerUndefinedStory as ChangeControllerNoValue,
277
375
  KnobStory as Knob,
278
376
  KnobPickerStory as KnobPicker,
279
377
  LatchPickerStory as LatchPicker,
@@ -285,10 +383,14 @@ export {
285
383
  OctavePlayerStory as OctavePlayer,
286
384
  PianoPickerStory as PianoPicker,
287
385
  PolarityPickerStory as PolarityPicker,
386
+ PolarityPickerUndefinedStory as PolarityPickerNoValue,
288
387
  ResponseCurveStory as ResponseCurve,
289
388
  ResponseCurvePickerStory as ResponseCurvePicker,
389
+ ResponseCurvePickerUndefinedStory as ResponseCurvePickerNoValue,
290
390
  StatusPickerStory as StatusPicker,
391
+ StatusPickerUndefinedStory as StatusPickerNoValue,
291
392
  ValuePickerStory as ValuePicker,
393
+ ValuePickerUndefinedStory as ValuePickerNoValue,
292
394
  }
293
395
 
294
396
  export default meta