@lets-events/react 10.1.2 → 11.0.1
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/.eslintrc.json +2 -2
- package/.turbo/turbo-build.log +18 -19
- package/CHANGELOG.md +8 -2
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +44 -28
- package/dist/index.mjs +44 -28
- package/package.json +1 -1
- package/src/components/Alert.tsx +303 -303
- package/src/components/Avatar.tsx +55 -55
- package/src/components/Badge.tsx +128 -128
- package/src/components/Box.tsx +3 -3
- package/src/components/Button/index.tsx +12 -12
- package/src/components/Button/styledComponents.ts +276 -250
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +136 -136
- package/src/components/Calendar/styledComponents.ts +209 -209
- package/src/components/Card.tsx +69 -69
- package/src/components/CheckboxGroup.tsx +214 -214
- package/src/components/Container.tsx +39 -39
- package/src/components/Dropdown.tsx +167 -167
- package/src/components/Filter.tsx +164 -164
- package/src/components/Flex.tsx +118 -118
- package/src/components/Grid.tsx +137 -137
- package/src/components/Icon.tsx +47 -47
- package/src/components/Modal.tsx +90 -90
- package/src/components/RadioGroup.tsx +210 -210
- package/src/components/Section.tsx +33 -33
- package/src/components/Step.tsx +164 -164
- package/src/components/Switch.tsx +108 -108
- package/src/components/Text.tsx +39 -30
- package/src/components/TextField.tsx +299 -299
- package/src/components/TextareaField.tsx +101 -101
- package/src/components/TimePicker.tsx +298 -298
- package/src/components/Toast/components/ToastItem.tsx +41 -41
- package/src/components/Toast/components/ToastProvider.tsx +63 -63
- package/src/components/Toast/hooks/useToast.ts +12 -12
- package/src/components/Toast/index.tsx +5 -5
- package/src/components/Toast/styles/index.ts +135 -135
- package/src/components/Toast/types/index.ts +46 -46
- package/src/components/Tooltip/index.tsx +66 -66
- package/src/components/Tooltip/styles.ts +77 -77
- package/src/hooks/useOnClickOutside.tsx +20 -20
- package/src/index.tsx +33 -33
- package/src/styles/index.ts +38 -38
- package/src/types/typographyValues.ts +178 -178
- package/tsconfig.json +3 -3
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import * as React from 'react'
|
|
2
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip'
|
|
3
|
-
import { styled } from '../../styles'
|
|
4
|
-
import { Text } from '../Text'
|
|
5
|
-
|
|
6
|
-
const TooltipProvider = TooltipPrimitive.Provider
|
|
7
|
-
const TooltipRoot = TooltipPrimitive.Root
|
|
8
|
-
const TooltipTrigger = TooltipPrimitive.Trigger
|
|
9
|
-
|
|
10
|
-
const TooltipContent = styled(TooltipPrimitive.Content, {
|
|
11
|
-
backgroundColor: '$dark800',
|
|
12
|
-
color: '$neutral50',
|
|
13
|
-
borderRadius: '4px',
|
|
14
|
-
padding: '10px 15px',
|
|
15
|
-
fontSize: '14px',
|
|
16
|
-
lineHeight: 1,
|
|
17
|
-
zIndex: 100,
|
|
18
|
-
boxShadow: '0 2px 10px rgba(0, 0, 0, 0.1)',
|
|
19
|
-
userSelect: 'none',
|
|
20
|
-
animationDuration: '400ms',
|
|
21
|
-
animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
22
|
-
willChange: 'transform, opacity',
|
|
23
|
-
'&[data-state="delayed-open"][data-side="top"]': {
|
|
24
|
-
animationName: 'slideDownAndFade',
|
|
25
|
-
},
|
|
26
|
-
'&[data-state="delayed-open"][data-side="right"]': {
|
|
27
|
-
animationName: 'slideLeftAndFade',
|
|
28
|
-
},
|
|
29
|
-
'&[data-state="delayed-open"][data-side="bottom"]': {
|
|
30
|
-
animationName: 'slideUpAndFade',
|
|
31
|
-
},
|
|
32
|
-
'&[data-state="delayed-open"][data-side="left"]': {
|
|
33
|
-
animationName: 'slideRightAndFade',
|
|
34
|
-
},
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
const TooltipArrow = styled(TooltipPrimitive.Arrow, {
|
|
38
|
-
fill: '$dark800',
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
export interface TooltipProps {
|
|
42
|
-
children: React.ReactNode
|
|
43
|
-
content: React.ReactNode
|
|
44
|
-
delayDuration?: number
|
|
45
|
-
side?: 'top' | 'right' | 'bottom' | 'left'
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function Tooltip({
|
|
49
|
-
children,
|
|
50
|
-
content,
|
|
51
|
-
delayDuration = 200,
|
|
52
|
-
side = 'top',
|
|
53
|
-
}: TooltipProps) {
|
|
54
|
-
return (
|
|
55
|
-
<TooltipProvider>
|
|
56
|
-
<TooltipRoot delayDuration={delayDuration}>
|
|
57
|
-
<TooltipTrigger asChild>{children}</TooltipTrigger>
|
|
58
|
-
<TooltipContent side={side} sideOffset={5}>
|
|
59
|
-
{typeof content === 'string' ? <Text typography={'tooltip'}>{content}</Text>:(content)}
|
|
60
|
-
<TooltipArrow />
|
|
61
|
-
</TooltipContent>
|
|
62
|
-
</TooltipRoot>
|
|
63
|
-
</TooltipProvider>
|
|
64
|
-
)
|
|
65
|
-
}
|
|
66
|
-
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip'
|
|
3
|
+
import { styled } from '../../styles'
|
|
4
|
+
import { Text } from '../Text'
|
|
5
|
+
|
|
6
|
+
const TooltipProvider = TooltipPrimitive.Provider
|
|
7
|
+
const TooltipRoot = TooltipPrimitive.Root
|
|
8
|
+
const TooltipTrigger = TooltipPrimitive.Trigger
|
|
9
|
+
|
|
10
|
+
const TooltipContent = styled(TooltipPrimitive.Content, {
|
|
11
|
+
backgroundColor: '$dark800',
|
|
12
|
+
color: '$neutral50',
|
|
13
|
+
borderRadius: '4px',
|
|
14
|
+
padding: '10px 15px',
|
|
15
|
+
fontSize: '14px',
|
|
16
|
+
lineHeight: 1,
|
|
17
|
+
zIndex: 100,
|
|
18
|
+
boxShadow: '0 2px 10px rgba(0, 0, 0, 0.1)',
|
|
19
|
+
userSelect: 'none',
|
|
20
|
+
animationDuration: '400ms',
|
|
21
|
+
animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
22
|
+
willChange: 'transform, opacity',
|
|
23
|
+
'&[data-state="delayed-open"][data-side="top"]': {
|
|
24
|
+
animationName: 'slideDownAndFade',
|
|
25
|
+
},
|
|
26
|
+
'&[data-state="delayed-open"][data-side="right"]': {
|
|
27
|
+
animationName: 'slideLeftAndFade',
|
|
28
|
+
},
|
|
29
|
+
'&[data-state="delayed-open"][data-side="bottom"]': {
|
|
30
|
+
animationName: 'slideUpAndFade',
|
|
31
|
+
},
|
|
32
|
+
'&[data-state="delayed-open"][data-side="left"]': {
|
|
33
|
+
animationName: 'slideRightAndFade',
|
|
34
|
+
},
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
const TooltipArrow = styled(TooltipPrimitive.Arrow, {
|
|
38
|
+
fill: '$dark800',
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
export interface TooltipProps {
|
|
42
|
+
children: React.ReactNode
|
|
43
|
+
content: React.ReactNode
|
|
44
|
+
delayDuration?: number
|
|
45
|
+
side?: 'top' | 'right' | 'bottom' | 'left'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function Tooltip({
|
|
49
|
+
children,
|
|
50
|
+
content,
|
|
51
|
+
delayDuration = 200,
|
|
52
|
+
side = 'top',
|
|
53
|
+
}: TooltipProps) {
|
|
54
|
+
return (
|
|
55
|
+
<TooltipProvider>
|
|
56
|
+
<TooltipRoot delayDuration={delayDuration}>
|
|
57
|
+
<TooltipTrigger asChild>{children}</TooltipTrigger>
|
|
58
|
+
<TooltipContent side={side} sideOffset={5}>
|
|
59
|
+
{typeof content === 'string' ? <Text typography={'tooltip'}>{content}</Text>:(content)}
|
|
60
|
+
<TooltipArrow />
|
|
61
|
+
</TooltipContent>
|
|
62
|
+
</TooltipRoot>
|
|
63
|
+
</TooltipProvider>
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
67
|
export { TooltipProvider, TooltipRoot, TooltipTrigger, TooltipContent }
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { keyframes } from '@stitches/react'
|
|
2
|
-
import { styled } from '../../styles'
|
|
3
|
-
|
|
4
|
-
const slideUpAndFade = keyframes({
|
|
5
|
-
from: {
|
|
6
|
-
opacity: 0,
|
|
7
|
-
transform: 'translateY(2px)',
|
|
8
|
-
},
|
|
9
|
-
to: {
|
|
10
|
-
opacity: 1,
|
|
11
|
-
transform: 'translateY(0)',
|
|
12
|
-
},
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
const slideRightAndFade = keyframes({
|
|
16
|
-
from: {
|
|
17
|
-
opacity: 0,
|
|
18
|
-
transform: 'translateX(-2px)',
|
|
19
|
-
},
|
|
20
|
-
to: {
|
|
21
|
-
opacity: 1,
|
|
22
|
-
transform: 'translateX(0)',
|
|
23
|
-
},
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
const slideDownAndFade = keyframes({
|
|
27
|
-
from: {
|
|
28
|
-
opacity: 0,
|
|
29
|
-
transform: 'translateY(-2px)',
|
|
30
|
-
},
|
|
31
|
-
to: {
|
|
32
|
-
opacity: 1,
|
|
33
|
-
transform: 'translateY(0)',
|
|
34
|
-
},
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
const slideLeftAndFade = keyframes({
|
|
38
|
-
from: {
|
|
39
|
-
opacity: 0,
|
|
40
|
-
transform: 'translateX(2px)',
|
|
41
|
-
},
|
|
42
|
-
to: {
|
|
43
|
-
opacity: 1,
|
|
44
|
-
transform: 'translateX(0)',
|
|
45
|
-
},
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
export const TooltipContentStyled = styled('div', {
|
|
49
|
-
fontFamily: '$default',
|
|
50
|
-
backgroundColor: '$dark700',
|
|
51
|
-
color: '$dark50',
|
|
52
|
-
borderRadius: '$sm',
|
|
53
|
-
padding: '$10 $14',
|
|
54
|
-
fontSize: '$13',
|
|
55
|
-
lineHeight: '$base',
|
|
56
|
-
boxShadow: '0px 4px 4px 0px rgba(35, 53, 67, 0.08)',
|
|
57
|
-
userSelect: 'none',
|
|
58
|
-
animationDuration: '400ms',
|
|
59
|
-
animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
60
|
-
willChange: 'transform, opacity',
|
|
61
|
-
|
|
62
|
-
'&[data-state="delayed-open"][data-side="top"]': {
|
|
63
|
-
animationName: `${slideDownAndFade}`,
|
|
64
|
-
},
|
|
65
|
-
'&[data-state="delayed-open"][data-side="right"]': {
|
|
66
|
-
animationName: `${slideLeftAndFade}`,
|
|
67
|
-
},
|
|
68
|
-
'&[data-state="delayed-open"][data-side="bottom"]': {
|
|
69
|
-
animationName: `${slideUpAndFade}`,
|
|
70
|
-
},
|
|
71
|
-
'&[data-state="delayed-open"][data-side="left"]': {
|
|
72
|
-
animationName: `${slideRightAndFade}`,
|
|
73
|
-
},
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
export const TooltipArrow = styled('div', {
|
|
77
|
-
fill: '$dark700',
|
|
1
|
+
import { keyframes } from '@stitches/react'
|
|
2
|
+
import { styled } from '../../styles'
|
|
3
|
+
|
|
4
|
+
const slideUpAndFade = keyframes({
|
|
5
|
+
from: {
|
|
6
|
+
opacity: 0,
|
|
7
|
+
transform: 'translateY(2px)',
|
|
8
|
+
},
|
|
9
|
+
to: {
|
|
10
|
+
opacity: 1,
|
|
11
|
+
transform: 'translateY(0)',
|
|
12
|
+
},
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
const slideRightAndFade = keyframes({
|
|
16
|
+
from: {
|
|
17
|
+
opacity: 0,
|
|
18
|
+
transform: 'translateX(-2px)',
|
|
19
|
+
},
|
|
20
|
+
to: {
|
|
21
|
+
opacity: 1,
|
|
22
|
+
transform: 'translateX(0)',
|
|
23
|
+
},
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
const slideDownAndFade = keyframes({
|
|
27
|
+
from: {
|
|
28
|
+
opacity: 0,
|
|
29
|
+
transform: 'translateY(-2px)',
|
|
30
|
+
},
|
|
31
|
+
to: {
|
|
32
|
+
opacity: 1,
|
|
33
|
+
transform: 'translateY(0)',
|
|
34
|
+
},
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
const slideLeftAndFade = keyframes({
|
|
38
|
+
from: {
|
|
39
|
+
opacity: 0,
|
|
40
|
+
transform: 'translateX(2px)',
|
|
41
|
+
},
|
|
42
|
+
to: {
|
|
43
|
+
opacity: 1,
|
|
44
|
+
transform: 'translateX(0)',
|
|
45
|
+
},
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
export const TooltipContentStyled = styled('div', {
|
|
49
|
+
fontFamily: '$default',
|
|
50
|
+
backgroundColor: '$dark700',
|
|
51
|
+
color: '$dark50',
|
|
52
|
+
borderRadius: '$sm',
|
|
53
|
+
padding: '$10 $14',
|
|
54
|
+
fontSize: '$13',
|
|
55
|
+
lineHeight: '$base',
|
|
56
|
+
boxShadow: '0px 4px 4px 0px rgba(35, 53, 67, 0.08)',
|
|
57
|
+
userSelect: 'none',
|
|
58
|
+
animationDuration: '400ms',
|
|
59
|
+
animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
60
|
+
willChange: 'transform, opacity',
|
|
61
|
+
|
|
62
|
+
'&[data-state="delayed-open"][data-side="top"]': {
|
|
63
|
+
animationName: `${slideDownAndFade}`,
|
|
64
|
+
},
|
|
65
|
+
'&[data-state="delayed-open"][data-side="right"]': {
|
|
66
|
+
animationName: `${slideLeftAndFade}`,
|
|
67
|
+
},
|
|
68
|
+
'&[data-state="delayed-open"][data-side="bottom"]': {
|
|
69
|
+
animationName: `${slideUpAndFade}`,
|
|
70
|
+
},
|
|
71
|
+
'&[data-state="delayed-open"][data-side="left"]': {
|
|
72
|
+
animationName: `${slideRightAndFade}`,
|
|
73
|
+
},
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
export const TooltipArrow = styled('div', {
|
|
77
|
+
fill: '$dark700',
|
|
78
78
|
})
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
2
|
-
|
|
3
|
-
export function useOnClickOutside(ref: any, handler: () => void) {
|
|
4
|
-
useEffect(() => {
|
|
5
|
-
const listener = (event: MouseEvent | TouchEvent) => {
|
|
6
|
-
if (!ref.current || ref.current.contains(event.target)) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
handler();
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
document.addEventListener("mousedown", listener);
|
|
13
|
-
document.addEventListener("touchstart", listener);
|
|
14
|
-
|
|
15
|
-
return () => {
|
|
16
|
-
document.removeEventListener("mousedown", listener);
|
|
17
|
-
document.removeEventListener("touchstart", listener);
|
|
18
|
-
};
|
|
19
|
-
}, [ref, handler]);
|
|
20
|
-
}
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
|
|
3
|
+
export function useOnClickOutside(ref: any, handler: () => void) {
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
const listener = (event: MouseEvent | TouchEvent) => {
|
|
6
|
+
if (!ref.current || ref.current.contains(event.target)) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
handler();
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
document.addEventListener("mousedown", listener);
|
|
13
|
+
document.addEventListener("touchstart", listener);
|
|
14
|
+
|
|
15
|
+
return () => {
|
|
16
|
+
document.removeEventListener("mousedown", listener);
|
|
17
|
+
document.removeEventListener("touchstart", listener);
|
|
18
|
+
};
|
|
19
|
+
}, [ref, handler]);
|
|
20
|
+
}
|
package/src/index.tsx
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
// Icon
|
|
2
|
-
export * from './components/Icon'
|
|
3
|
-
|
|
4
|
-
// Text
|
|
5
|
-
export * from './components/Text'
|
|
6
|
-
|
|
7
|
-
// Components
|
|
8
|
-
export * from './components/Button'
|
|
9
|
-
export * from './components/ButtonGroup'
|
|
10
|
-
export * from './components/Avatar'
|
|
11
|
-
export * from './components/TextField'
|
|
12
|
-
export * from './components/RadioGroup'
|
|
13
|
-
export * from './components/CheckboxGroup'
|
|
14
|
-
export * from './components/Filter'
|
|
15
|
-
export * from './components/Dropdown'
|
|
16
|
-
export * from './components/Badge'
|
|
17
|
-
export * from './components/Modal'
|
|
18
|
-
export * from './components/Calendar'
|
|
19
|
-
export * from './components/TimePicker'
|
|
20
|
-
export * from './components/Alert'
|
|
21
|
-
export * from './components/Switch'
|
|
22
|
-
export * from './components/Step'
|
|
23
|
-
export * from './components/Card'
|
|
24
|
-
export * from './components/TextareaField'
|
|
25
|
-
export * from './components/Toast'
|
|
26
|
-
export * from './components/Tooltip'
|
|
27
|
-
|
|
28
|
-
// Layouts
|
|
29
|
-
export * from './components/Flex'
|
|
30
|
-
export * from './components/Box'
|
|
31
|
-
export * from './components/Grid'
|
|
32
|
-
export * from './components/Container'
|
|
33
|
-
export * from './components/Section'
|
|
1
|
+
// Icon
|
|
2
|
+
export * from './components/Icon'
|
|
3
|
+
|
|
4
|
+
// Text
|
|
5
|
+
export * from './components/Text'
|
|
6
|
+
|
|
7
|
+
// Components
|
|
8
|
+
export * from './components/Button'
|
|
9
|
+
export * from './components/ButtonGroup'
|
|
10
|
+
export * from './components/Avatar'
|
|
11
|
+
export * from './components/TextField'
|
|
12
|
+
export * from './components/RadioGroup'
|
|
13
|
+
export * from './components/CheckboxGroup'
|
|
14
|
+
export * from './components/Filter'
|
|
15
|
+
export * from './components/Dropdown'
|
|
16
|
+
export * from './components/Badge'
|
|
17
|
+
export * from './components/Modal'
|
|
18
|
+
export * from './components/Calendar'
|
|
19
|
+
export * from './components/TimePicker'
|
|
20
|
+
export * from './components/Alert'
|
|
21
|
+
export * from './components/Switch'
|
|
22
|
+
export * from './components/Step'
|
|
23
|
+
export * from './components/Card'
|
|
24
|
+
export * from './components/TextareaField'
|
|
25
|
+
export * from './components/Toast'
|
|
26
|
+
export * from './components/Tooltip'
|
|
27
|
+
|
|
28
|
+
// Layouts
|
|
29
|
+
export * from './components/Flex'
|
|
30
|
+
export * from './components/Box'
|
|
31
|
+
export * from './components/Grid'
|
|
32
|
+
export * from './components/Container'
|
|
33
|
+
export * from './components/Section'
|
package/src/styles/index.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
colors,
|
|
3
|
-
fontSizes,
|
|
4
|
-
fontWeights,
|
|
5
|
-
fonts,
|
|
6
|
-
lineHeights,
|
|
7
|
-
radii,
|
|
8
|
-
space,
|
|
9
|
-
} from '@lets-events/tokens'
|
|
10
|
-
|
|
11
|
-
import { createStitches, defaultThemeMap } from '@stitches/react'
|
|
12
|
-
|
|
13
|
-
export const {
|
|
14
|
-
styled,
|
|
15
|
-
css,
|
|
16
|
-
globalCss,
|
|
17
|
-
keyframes,
|
|
18
|
-
getCssText,
|
|
19
|
-
theme,
|
|
20
|
-
createTheme,
|
|
21
|
-
config,
|
|
22
|
-
} = createStitches({
|
|
23
|
-
themeMap: {
|
|
24
|
-
...defaultThemeMap,
|
|
25
|
-
height: 'space',
|
|
26
|
-
width: 'space',
|
|
27
|
-
gap: 'space'
|
|
28
|
-
},
|
|
29
|
-
theme: {
|
|
30
|
-
colors,
|
|
31
|
-
fontSizes,
|
|
32
|
-
fonts,
|
|
33
|
-
fontWeights,
|
|
34
|
-
lineHeights,
|
|
35
|
-
radii,
|
|
36
|
-
space,
|
|
37
|
-
},
|
|
38
|
-
})
|
|
1
|
+
import {
|
|
2
|
+
colors,
|
|
3
|
+
fontSizes,
|
|
4
|
+
fontWeights,
|
|
5
|
+
fonts,
|
|
6
|
+
lineHeights,
|
|
7
|
+
radii,
|
|
8
|
+
space,
|
|
9
|
+
} from '@lets-events/tokens'
|
|
10
|
+
|
|
11
|
+
import { createStitches, defaultThemeMap } from '@stitches/react'
|
|
12
|
+
|
|
13
|
+
export const {
|
|
14
|
+
styled,
|
|
15
|
+
css,
|
|
16
|
+
globalCss,
|
|
17
|
+
keyframes,
|
|
18
|
+
getCssText,
|
|
19
|
+
theme,
|
|
20
|
+
createTheme,
|
|
21
|
+
config,
|
|
22
|
+
} = createStitches({
|
|
23
|
+
themeMap: {
|
|
24
|
+
...defaultThemeMap,
|
|
25
|
+
height: 'space',
|
|
26
|
+
width: 'space',
|
|
27
|
+
gap: 'space'
|
|
28
|
+
},
|
|
29
|
+
theme: {
|
|
30
|
+
colors,
|
|
31
|
+
fontSizes,
|
|
32
|
+
fonts,
|
|
33
|
+
fontWeights,
|
|
34
|
+
lineHeights,
|
|
35
|
+
radii,
|
|
36
|
+
space,
|
|
37
|
+
},
|
|
38
|
+
})
|