@lets-events/react 12.3.2 → 12.3.4
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +201 -41
- package/dist/index.d.ts +201 -41
- package/dist/index.js +191 -162
- package/dist/index.mjs +131 -102
- package/package.json +1 -1
- package/src/components/Card.tsx +14 -2
- package/src/components/Drawer/index.tsx +43 -106
- package/src/components/Drawer/styledComponents.ts +56 -5
- package/src/styles/index.ts +9 -6
|
@@ -7,21 +7,71 @@ export const DrawerOverlayStyled = styled("div", {
|
|
|
7
7
|
width: "100vw",
|
|
8
8
|
height: "100vh",
|
|
9
9
|
background: "rgba(0, 0, 0, 0.4)",
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
transition: "opacity 200ms ease",
|
|
12
|
+
|
|
13
|
+
variants: {
|
|
14
|
+
open: {
|
|
15
|
+
true: {
|
|
16
|
+
opacity: "1",
|
|
17
|
+
},
|
|
18
|
+
false: {
|
|
19
|
+
pointerEvents: "none",
|
|
20
|
+
opacity: "0",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export const DrawerWrapper = styled("div", {
|
|
27
|
+
position: "absolute",
|
|
28
|
+
top: 0,
|
|
29
|
+
right: 0,
|
|
30
|
+
height: "100vh",
|
|
31
|
+
overflow: "hidden",
|
|
32
|
+
|
|
33
|
+
variants: {
|
|
34
|
+
open: {
|
|
35
|
+
true: {},
|
|
36
|
+
false: {
|
|
37
|
+
pointerEvents: "none",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
11
41
|
});
|
|
12
42
|
|
|
13
43
|
export const DrawerContainerStyled = styled("div", {
|
|
14
44
|
position: "absolute",
|
|
15
45
|
top: 0,
|
|
16
46
|
right: 0,
|
|
17
|
-
|
|
18
|
-
height: "100%",
|
|
47
|
+
height: "100vh",
|
|
19
48
|
background: "$neutral50",
|
|
20
49
|
display: "flex",
|
|
21
50
|
flexDirection: "column",
|
|
22
51
|
boxShadow: "-4px 0 12px rgba(0, 0, 0, 0.2)",
|
|
23
|
-
padding: "1.5rem 0",
|
|
24
52
|
overflowY: "auto",
|
|
53
|
+
width: "100%",
|
|
54
|
+
boxSizing: 'border-box',
|
|
55
|
+
|
|
56
|
+
"@md": {
|
|
57
|
+
minWidth: "100vw",
|
|
58
|
+
maxWidth: "100vw",
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
transition: "transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)",
|
|
62
|
+
|
|
63
|
+
paddingBottom: "1.5rem",
|
|
64
|
+
|
|
65
|
+
variants: {
|
|
66
|
+
open: {
|
|
67
|
+
true: {
|
|
68
|
+
transform: "translateX(0) scale(1)",
|
|
69
|
+
},
|
|
70
|
+
false: {
|
|
71
|
+
transform: "translateX(110%) scale(0.98)",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
25
75
|
});
|
|
26
76
|
|
|
27
77
|
export const DrawerHeaderDiv = styled("div", {
|
|
@@ -29,9 +79,10 @@ export const DrawerHeaderDiv = styled("div", {
|
|
|
29
79
|
justifyContent: "space-between",
|
|
30
80
|
alignItems: "center",
|
|
31
81
|
borderBottom: "1px solid $neutral300",
|
|
32
|
-
padding: "
|
|
82
|
+
padding: "1.5rem 1rem",
|
|
33
83
|
position: "relative",
|
|
34
84
|
});
|
|
85
|
+
|
|
35
86
|
export const DrawerHeaderTitle = styled("h2", {
|
|
36
87
|
fontSize: "1.125rem",
|
|
37
88
|
fontWeight: "400",
|
package/src/styles/index.ts
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
lineHeights,
|
|
7
7
|
radii,
|
|
8
8
|
space,
|
|
9
|
-
} from
|
|
9
|
+
} from "@lets-events/tokens";
|
|
10
10
|
|
|
11
|
-
import { createStitches, defaultThemeMap } from
|
|
11
|
+
import { createStitches, defaultThemeMap } from "@stitches/react";
|
|
12
12
|
|
|
13
13
|
export const {
|
|
14
14
|
styled,
|
|
@@ -22,9 +22,9 @@ export const {
|
|
|
22
22
|
} = createStitches({
|
|
23
23
|
themeMap: {
|
|
24
24
|
...defaultThemeMap,
|
|
25
|
-
height:
|
|
26
|
-
width:
|
|
27
|
-
gap:
|
|
25
|
+
height: "space",
|
|
26
|
+
width: "space",
|
|
27
|
+
gap: "space",
|
|
28
28
|
},
|
|
29
29
|
theme: {
|
|
30
30
|
colors,
|
|
@@ -35,4 +35,7 @@ export const {
|
|
|
35
35
|
radii,
|
|
36
36
|
space,
|
|
37
37
|
},
|
|
38
|
-
|
|
38
|
+
media: {
|
|
39
|
+
md: "(max-width: 690px)",
|
|
40
|
+
},
|
|
41
|
+
});
|