@moises.ai/design-system 4.21.20 → 4.21.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.
package/package.json
CHANGED
|
@@ -267,6 +267,19 @@
|
|
|
267
267
|
line-clamp: 2;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
+
.cardBadgeSmall {
|
|
271
|
+
position: absolute;
|
|
272
|
+
top: -2px;
|
|
273
|
+
right: -2px;
|
|
274
|
+
font-size: 8px;
|
|
275
|
+
line-height: 11px;
|
|
276
|
+
letter-spacing: 0.02em;
|
|
277
|
+
padding: 2px 4px;
|
|
278
|
+
border-radius: 0 calc(var(--radius-3, 6px) - 1px);
|
|
279
|
+
background-color: var(--green-a3);
|
|
280
|
+
color: var(--green-a11);
|
|
281
|
+
}
|
|
282
|
+
|
|
270
283
|
.cardBadge {
|
|
271
284
|
position: absolute;
|
|
272
285
|
right: 6px;
|
|
@@ -287,6 +287,16 @@ const verticalItems = STEMS_WITH_LOCKED.slice(0, 6).map((item) => ({
|
|
|
287
287
|
badge: 'New',
|
|
288
288
|
}))
|
|
289
289
|
|
|
290
|
+
export const Small = {
|
|
291
|
+
render: verticalStory(['vocals', 'guitars']),
|
|
292
|
+
args: {
|
|
293
|
+
variant: 'cyan',
|
|
294
|
+
size: 'small',
|
|
295
|
+
title: 'Music Stems',
|
|
296
|
+
items: verticalItems,
|
|
297
|
+
},
|
|
298
|
+
}
|
|
299
|
+
|
|
290
300
|
export const Medium = {
|
|
291
301
|
render: verticalStory(['vocals', 'guitars']),
|
|
292
302
|
args: {
|
|
@@ -74,6 +74,7 @@ export const InstrumentSelectCard = forwardRef(function InstrumentSelectCard(
|
|
|
74
74
|
const showSpinner = computedState === 'disabled-checked'
|
|
75
75
|
const isVertical = size === 'medium' || size === 'large'
|
|
76
76
|
const showBadge = isVertical && badge != null && badge !== false
|
|
77
|
+
const showBadgeSmall = !isVertical && badge != null && badge !== false
|
|
77
78
|
const lockBesideName = locked && variant === 'cyan' && isVertical
|
|
78
79
|
|
|
79
80
|
const renderIcon = () => {
|
|
@@ -119,6 +120,11 @@ export const InstrumentSelectCard = forwardRef(function InstrumentSelectCard(
|
|
|
119
120
|
{(Icon || showSpinner) && (
|
|
120
121
|
<span className={styles.cardIcon}> {renderIcon()} </span>
|
|
121
122
|
)}
|
|
123
|
+
{showBadgeSmall && (
|
|
124
|
+
<span className={styles.cardBadgeSmall} data-accent-color="green">
|
|
125
|
+
{badge}
|
|
126
|
+
</span>
|
|
127
|
+
)}
|
|
122
128
|
{text != null && <span className={styles.cardText}>{text}</span>}
|
|
123
129
|
</>
|
|
124
130
|
)}
|