@moises.ai/design-system 3.11.6 → 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
|
-
|
|
10227
|
+
onSelectionChange: D,
|
|
10228
10228
|
side: "bottom",
|
|
10229
10229
|
align: "start"
|
|
10230
10230
|
}
|
package/package.json
CHANGED
|
@@ -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' },
|