@moises.ai/design-system 3.11.5 → 3.11.7

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.
package/dist/index.js CHANGED
@@ -10224,7 +10224,7 @@ const l0 = "_track_1whta_1", c0 = "_name_1whta_11", d0 = "_line_1whta_22", u0 =
10224
10224
  }
10225
10225
  ),
10226
10226
  options: c,
10227
- onValueChange: D,
10227
+ onSelectionChange: D,
10228
10228
  side: "bottom",
10229
10229
  align: "start"
10230
10230
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moises.ai/design-system",
3
- "version": "3.11.5",
3
+ "version": "3.11.7",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -136,7 +136,7 @@ export const TrackHeader = memo(
136
136
  </IconButton>
137
137
  }
138
138
  options={instrumentOptions}
139
- onValueChange={onInstrumentChange}
139
+ onSelectionChange={onInstrumentChange}
140
140
  side="bottom"
141
141
  align="start"
142
142
  />
@@ -127,7 +127,6 @@ export const Default = {
127
127
  onPanChange: () => {},
128
128
  onMutedChange: () => {},
129
129
  onSoloChange: () => {},
130
- onInstrumentChange: () => {},
131
130
  instrumentOptions,
132
131
  instrumentSelected: instrumentOptions[0],
133
132
  },
@@ -136,10 +135,15 @@ export const Default = {
136
135
  const [isRecord, setIsRecord] = useState(false)
137
136
  const [isMuted, setIsMuted] = useState(args.isMuted)
138
137
  const [isSolo, setIsSolo] = useState(args.isSolo)
138
+ const [instrumentSelected, setInstrumentSelected] = useState(
139
+ args.instrumentSelected,
140
+ )
139
141
 
140
142
  return (
141
143
  <TrackHeader
142
144
  {...args}
145
+ instrumentSelected={instrumentSelected}
146
+ onInstrumentChange={setInstrumentSelected}
143
147
  deviceOptions={[
144
148
  { value: 'mic', label: 'Built-in Microphone' },
145
149
  { value: 'interface', label: 'Audio Interface' },