@moises.ai/design-system 4.14.6 → 4.14.7

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": "4.14.6",
3
+ "version": "4.14.7",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -7,6 +7,7 @@ import styles from './Callout.module.css'
7
7
  import { Text } from '../Text/Text'
8
8
  import { Button } from '../Button/Button'
9
9
  import { IconButton } from '../IconButton/IconButton'
10
+ import { Theme } from '../theme/Theme'
10
11
 
11
12
  const buttonSizeForCallout = (size) => (size === '3' ? '2' : '1')
12
13
  const iconButtonSizeForCallout = (size) => (size === '3' ? '2' : '1')
@@ -73,22 +74,23 @@ export const Callout = ({
73
74
  }
74
75
 
75
76
  return (
76
- <CalloutPrimitive.Root
77
- size={size}
78
- color={color}
79
- variant="soft"
80
- highContrast={highContrast}
81
- className={classNames(
82
- styles.Callout,
83
- className,
84
- styles[color],
85
- highContrast && styles[`${color}-highContrast`],
86
- styles[`size${size}`],
87
- hasButton && !hasIconButton && styles.onlyButton,
88
- hasIconButton && !hasButton && styles.onlyIconButton,
89
- )}
90
- {...props}
91
- >
77
+ <Theme asChild>
78
+ <CalloutPrimitive.Root
79
+ size={size}
80
+ color={color}
81
+ variant="soft"
82
+ highContrast={highContrast}
83
+ className={classNames(
84
+ styles.Callout,
85
+ className,
86
+ styles[color],
87
+ highContrast && styles[`${color}-highContrast`],
88
+ styles[`size${size}`],
89
+ hasButton && !hasIconButton && styles.onlyButton,
90
+ hasIconButton && !hasButton && styles.onlyIconButton,
91
+ )}
92
+ {...props}
93
+ >
92
94
  <Flex justify="between" gap="3" width="100%" align={outerAlign}>
93
95
  <Flex
94
96
  direction="row"
@@ -129,6 +131,7 @@ export const Callout = ({
129
131
  )}
130
132
  </Flex>
131
133
  </CalloutPrimitive.Root>
134
+ </Theme>
132
135
  )
133
136
  }
134
137
 
@@ -3,6 +3,7 @@ import { Button } from '../Button/Button'
3
3
  import styles from './EmptyState.module.css'
4
4
  import classNames from 'classnames'
5
5
  import { Text } from '../Text/Text'
6
+ import { Theme } from '../theme/Theme'
6
7
 
7
8
  // Emphasis: Low High
8
9
  // Size: Medium Large
@@ -21,13 +22,14 @@ export const EmptyState = ({
21
22
  }) => {
22
23
  const hasButtonContent = children != null || buttonLabel != null
23
24
  return (
24
- <Flex
25
- className={classNames(className)}
26
- direction="column"
27
- align="center"
28
- justify="center"
29
- {...props}
30
- >
25
+ <Theme asChild>
26
+ <Flex
27
+ className={classNames(className)}
28
+ direction="column"
29
+ align="center"
30
+ justify="center"
31
+ {...props}
32
+ >
31
33
  <Flex direction="column" align="center" justify="center" className={styles.content} gap="5" py="6">
32
34
  {icon && (
33
35
  <div className={classNames(styles.iconWrapper, {
@@ -79,6 +81,7 @@ export const EmptyState = ({
79
81
 
80
82
  </Flex>
81
83
  </Flex>
84
+ </Theme>
82
85
  )
83
86
  }
84
87