@moises.ai/design-system 4.21.14 → 4.21.16
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 +1394 -1386
- package/package.json +1 -1
- package/src/components/Button/Button.module.css +135 -134
- package/src/components/InstrumentSelect/InstrumentSelect.jsx +29 -12
- package/src/components/InstrumentSelect/InstrumentSelect.module.css +26 -5
- package/src/components/InstrumentSelect/InstrumentSelect.stories.jsx +33 -0
- package/src/components/InstrumentSelect/InstrumentSelectCard.jsx +1 -1
|
@@ -55,12 +55,14 @@ export default {
|
|
|
55
55
|
tooltip: { control: 'text' },
|
|
56
56
|
variant: { control: 'select', options: ['neutral', 'cyan'] },
|
|
57
57
|
size: { control: 'select', options: ['small', 'medium', 'large'] },
|
|
58
|
+
fit: { control: 'select', options: ['fixed', 'fill'] },
|
|
58
59
|
},
|
|
59
60
|
args: {
|
|
60
61
|
variant: 'neutral',
|
|
61
62
|
size: 'small',
|
|
62
63
|
orientation: 'horizontal',
|
|
63
64
|
columns: 2,
|
|
65
|
+
fit: 'fixed',
|
|
64
66
|
},
|
|
65
67
|
decorators: [
|
|
66
68
|
(Story, context) => (
|
|
@@ -305,6 +307,37 @@ export const Large = {
|
|
|
305
307
|
},
|
|
306
308
|
}
|
|
307
309
|
|
|
310
|
+
export const MediumFill = {
|
|
311
|
+
render: verticalStory(['vocals']),
|
|
312
|
+
args: {
|
|
313
|
+
variant: 'cyan',
|
|
314
|
+
size: 'medium',
|
|
315
|
+
fit: 'fill',
|
|
316
|
+
columns: 2,
|
|
317
|
+
items: INSTRUMENTS.slice(0, 4),
|
|
318
|
+
},
|
|
319
|
+
parameters: {
|
|
320
|
+
containerWidth: 500,
|
|
321
|
+
},
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export const LargeTextWrap = {
|
|
325
|
+
render: verticalStory(['long']),
|
|
326
|
+
args: {
|
|
327
|
+
variant: 'cyan',
|
|
328
|
+
size: 'large',
|
|
329
|
+
columns: 2,
|
|
330
|
+
items: [
|
|
331
|
+
{
|
|
332
|
+
value: 'long',
|
|
333
|
+
text: 'Dialogue, Soundtrack & Effects Extra',
|
|
334
|
+
Icon: VocalIcon,
|
|
335
|
+
},
|
|
336
|
+
{ value: 'bass', text: 'Bass', Icon: BassIcon, disabled: true },
|
|
337
|
+
],
|
|
338
|
+
},
|
|
339
|
+
}
|
|
340
|
+
|
|
308
341
|
/* ---------- Columns ---------- */
|
|
309
342
|
|
|
310
343
|
export const OneColumn = {
|
|
@@ -18,7 +18,7 @@ import styles from './InstrumentSelect.module.css'
|
|
|
18
18
|
* @property {boolean} [locked=false] - Marks the card as locked (paywalled). Renders the lock icon and applies the disabled visual state. `onClick` still fires so consumers can trigger a paywall flow.
|
|
19
19
|
* @property {boolean} [disabled=false] - Marks the card as disabled without showing the lock icon.
|
|
20
20
|
* @property {'neutral' | 'cyan'} [variant='neutral'] - Visual variant. `neutral` is the default bordered card. `cyan` uses the accent-tinted background and selection border.
|
|
21
|
-
* @property {'small' | 'medium' | 'large'} [size='small'] - Card size. `small` is the compact horizontal card. `medium` is the 64px vertical card. `large` is the
|
|
21
|
+
* @property {'small' | 'medium' | 'large'} [size='small'] - Card size. `small` is the compact horizontal card. `medium` is the 64px vertical card (min 150px). `large` is the 160×80 vertical card.
|
|
22
22
|
* @property {InstrumentSelectCardState} [state] - Force a specific visual state (overrides `selected`/`locked`/`disabled`). Primarily for documentation/Storybook.
|
|
23
23
|
* @property {(event: React.MouseEvent<HTMLButtonElement>) => void} [onClick]
|
|
24
24
|
* @property {string} [className]
|