@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moises.ai/design-system",
3
- "version": "3.9.28",
3
+ "version": "3.9.30",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -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
- <CalloutPrimitive.Text>{text || children}</CalloutPrimitive.Text>
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
+ }
@@ -1,9 +1,9 @@
1
1
  import classNames from 'classnames'
2
- import lyrics from './Patterns/thumb-song-lyrics.jpg'
3
- import mastering from './Patterns/thumb-song-master.jpg'
4
- import stems from './Patterns/thumb-song-stems.jpg'
5
- import studio from './Patterns/thumb-song-studio.jpg'
6
- import voice from './Patterns/thumb-song-voice.jpg'
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
@@ -346,3 +346,4 @@ export { UnlockIcon } from './icons/UnlockIcon'
346
346
  export { EmailIcon } from './icons/EmailIcon'
347
347
  export { EyeIcon } from './icons/EyeIcon'
348
348
  export { EyeOffIcon } from './icons/EyeOffIcon'
349
+ export { Play1Icon } from './icons/Play1Icon'