@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/dist/index.js +356 -356
- package/package.json +1 -1
- package/src/components/Callout/Callout.jsx +19 -16
- package/src/components/EmptyState/EmptyState.jsx +10 -7
package/package.json
CHANGED
|
@@ -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
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|