@moises.ai/design-system 4.21.18 → 4.21.19
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
|
@@ -5366,8 +5366,10 @@ function vy(n, t, r, a, o, i, l) {
|
|
|
5366
5366
|
return d ? {
|
|
5367
5367
|
display: "grid",
|
|
5368
5368
|
gap: g,
|
|
5369
|
-
gridTemplateColumns: `repeat(${l},
|
|
5370
|
-
|
|
5369
|
+
gridTemplateColumns: `repeat(${l}, ${c}px)`,
|
|
5370
|
+
justifyContent: "start",
|
|
5371
|
+
width: "max-content",
|
|
5372
|
+
maxWidth: "100%"
|
|
5371
5373
|
} : {
|
|
5372
5374
|
"--track-min": `${c}px`,
|
|
5373
5375
|
"--track-max": `${u}px`,
|
package/package.json
CHANGED
|
@@ -134,8 +134,10 @@ function getGridStyle(orientation, size, columns, rows, itemCount, fit, trackCou
|
|
|
134
134
|
return {
|
|
135
135
|
display: 'grid',
|
|
136
136
|
gap,
|
|
137
|
-
gridTemplateColumns: `repeat(${trackCount},
|
|
138
|
-
|
|
137
|
+
gridTemplateColumns: `repeat(${trackCount}, ${min}px)`,
|
|
138
|
+
justifyContent: 'start',
|
|
139
|
+
width: 'max-content',
|
|
140
|
+
maxWidth: '100%',
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
143
|
|
|
@@ -307,17 +307,45 @@ export const Large = {
|
|
|
307
307
|
},
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
export const
|
|
311
|
-
render:
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
310
|
+
export const FourColumns = {
|
|
311
|
+
render: () => {
|
|
312
|
+
const [basic, setBasic] = useState('vocals-instruments')
|
|
313
|
+
const [voice, setVoice] = useState('vocals')
|
|
314
|
+
|
|
315
|
+
return (
|
|
316
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 24 }}>
|
|
317
|
+
<InstrumentSelect
|
|
318
|
+
title="2 itens, 4 columns"
|
|
319
|
+
variant="cyan"
|
|
320
|
+
size="large"
|
|
321
|
+
fit="fill"
|
|
322
|
+
columns={4}
|
|
323
|
+
items={[
|
|
324
|
+
{ value: 'vocals-instruments', text: 'Vocals & Instruments', Icon: VocalIcon },
|
|
325
|
+
{
|
|
326
|
+
value: 'vocals-bass',
|
|
327
|
+
text: 'Vocals, Bass, Drums & Others',
|
|
328
|
+
Icon: VocalsBackgroundIcon,
|
|
329
|
+
},
|
|
330
|
+
]}
|
|
331
|
+
value={basic}
|
|
332
|
+
onSelect={(item) => setBasic(item.value)}
|
|
333
|
+
/>
|
|
334
|
+
<InstrumentSelect
|
|
335
|
+
title="4 itens, 5 columns"
|
|
336
|
+
variant="cyan"
|
|
337
|
+
size="large"
|
|
338
|
+
fit="fixed"
|
|
339
|
+
columns={5}
|
|
340
|
+
items={INSTRUMENTS.slice(0, 5)}
|
|
341
|
+
value={voice}
|
|
342
|
+
onSelect={(item) => setVoice(item.value)}
|
|
343
|
+
/>
|
|
344
|
+
</div>
|
|
345
|
+
)
|
|
318
346
|
},
|
|
319
347
|
parameters: {
|
|
320
|
-
containerWidth:
|
|
348
|
+
containerWidth: 880,
|
|
321
349
|
},
|
|
322
350
|
}
|
|
323
351
|
|