@moises.ai/design-system 3.9.28 → 3.9.30
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/{EyeOffIcon-BjEQtr2S.js → Play1Icon-DsUtkWM6.js} +673 -663
- package/dist/icons.js +204 -203
- package/dist/index.js +2852 -2848
- package/package.json +1 -1
- package/src/components/Callout/Callout.jsx +10 -1
- package/src/components/Callout/Callout.stories.jsx +27 -0
- package/src/components/ProductsBrandPattern/Patterns/lyrics.png +0 -0
- package/src/components/ProductsBrandPattern/Patterns/master.png +0 -0
- package/src/components/ProductsBrandPattern/Patterns/stems.png +0 -0
- package/src/components/ProductsBrandPattern/Patterns/studio.png +0 -0
- package/src/components/ProductsBrandPattern/Patterns/voice.png +0 -0
- package/src/components/ProductsBrandPattern/ProductsBrandPattern.jsx +5 -5
- package/src/icons/Play1Icon.jsx +8 -0
- package/src/icons.jsx +1 -0
- package/src/components/ProductsBrandPattern/Patterns/thumb-song-lyrics.jpg +0 -0
- package/src/components/ProductsBrandPattern/Patterns/thumb-song-master.jpg +0 -0
- package/src/components/ProductsBrandPattern/Patterns/thumb-song-stems.jpg +0 -0
- package/src/components/ProductsBrandPattern/Patterns/thumb-song-studio.jpg +0 -0
- package/src/components/ProductsBrandPattern/Patterns/thumb-song-voice.jpg +0 -0
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { Flex, Callout as CalloutPrimitive } from '@radix-ui/themes'
|
|
|
2
2
|
import { InfoCircledIcon } from '@radix-ui/react-icons'
|
|
3
3
|
import styles from './Callout.module.css'
|
|
4
4
|
import classNames from 'classnames'
|
|
5
|
+
import { Text } from '../Text/Text'
|
|
5
6
|
|
|
6
7
|
export const Callout = ({
|
|
7
8
|
children,
|
|
@@ -11,6 +12,7 @@ export const Callout = ({
|
|
|
11
12
|
highContrast = false,
|
|
12
13
|
Icon,
|
|
13
14
|
text,
|
|
15
|
+
title,
|
|
14
16
|
hideIcon,
|
|
15
17
|
...props
|
|
16
18
|
}) => {
|
|
@@ -39,7 +41,14 @@ export const Callout = ({
|
|
|
39
41
|
</CalloutPrimitive.Icon>
|
|
40
42
|
)}
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<Flex direction="column" gap="0">
|
|
47
|
+
{title && (
|
|
48
|
+
<Text size={size} weight="bold">{title}</Text>
|
|
49
|
+
)}
|
|
50
|
+
<Text size={size} weight="regular">{text || children}</Text>
|
|
51
|
+
</Flex>
|
|
43
52
|
</CalloutPrimitive.Root>
|
|
44
53
|
)
|
|
45
54
|
}
|
|
@@ -70,6 +70,10 @@ import { Callout, Link } from '@moises.ai/design-system'
|
|
|
70
70
|
control: { type: 'text' },
|
|
71
71
|
description: 'Callout text (use either text or children)',
|
|
72
72
|
},
|
|
73
|
+
title: {
|
|
74
|
+
control: { type: 'text' },
|
|
75
|
+
description: 'Callout title (optional)',
|
|
76
|
+
},
|
|
73
77
|
},
|
|
74
78
|
}
|
|
75
79
|
|
|
@@ -294,3 +298,26 @@ export const WithoutIcon = {
|
|
|
294
298
|
},
|
|
295
299
|
},
|
|
296
300
|
}
|
|
301
|
+
|
|
302
|
+
// With title
|
|
303
|
+
export const WithTitle = {
|
|
304
|
+
render: () => (
|
|
305
|
+
<div
|
|
306
|
+
style={{
|
|
307
|
+
display: 'flex',
|
|
308
|
+
flexDirection: 'column',
|
|
309
|
+
gap: '1rem',
|
|
310
|
+
width: '100%',
|
|
311
|
+
}}
|
|
312
|
+
>
|
|
313
|
+
<Callout title="Callout with title" text="This is a callout with a title" color="neutral" />
|
|
314
|
+
</div>
|
|
315
|
+
),
|
|
316
|
+
parameters: {
|
|
317
|
+
docs: {
|
|
318
|
+
description: {
|
|
319
|
+
story: 'Demonstrates callouts with titles using the title prop.',
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import classNames from 'classnames'
|
|
2
|
-
import lyrics from './Patterns/
|
|
3
|
-
import mastering from './Patterns/
|
|
4
|
-
import stems from './Patterns/
|
|
5
|
-
import studio from './Patterns/
|
|
6
|
-
import voice from './Patterns/
|
|
2
|
+
import lyrics from './Patterns/lyrics.png'
|
|
3
|
+
import mastering from './Patterns/master.png'
|
|
4
|
+
import stems from './Patterns/stems.png'
|
|
5
|
+
import studio from './Patterns/studio.png'
|
|
6
|
+
import voice from './Patterns/voice.png'
|
|
7
7
|
|
|
8
8
|
export const ProductsBrandPattern = ({
|
|
9
9
|
className,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const Play1Icon = ({ width = 16, height = 16, className, ...props }) => (
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 24 24" fill="none" className={className} {...props}>
|
|
3
|
+
<path d="M19.7586 11.5824C20.0805 11.768 20.0805 12.232 19.7586 12.4176L6.72414 19.9347C6.4023 20.1203 6 19.8883 6 19.5171L6 4.48294C6 4.11173 6.4023 3.87972 6.72414 4.06532L19.7586 11.5824Z"
|
|
4
|
+
stroke="currentColor" strokeWidth="1.5" />
|
|
5
|
+
</svg>
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
Play1Icon.displayName = 'Play1Icon'
|
package/src/icons.jsx
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|