cherry-styled-components 0.1.13 → 0.1.14
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/box.js +20 -11
- package/dist/button.js +80 -150
- package/dist/col.js +26 -18
- package/dist/container.js +32 -30
- package/dist/flex.js +39 -34
- package/dist/grid.js +36 -33
- package/dist/icon.js +14 -23
- package/dist/index.js +9 -76
- package/dist/input.js +136 -312
- package/dist/max-width.js +41 -26
- package/dist/range.js +74 -141
- package/dist/select.js +56 -100
- package/dist/space.js +38 -24
- package/dist/styled-components/registry.js +17 -19
- package/dist/styled-components/theme-provider.js +27 -31
- package/dist/textarea.js +49 -73
- package/dist/toggle.js +66 -121
- package/dist/utils/global.js +11 -92
- package/dist/utils/icons.js +66 -77
- package/dist/utils/mixins.js +41 -83
- package/dist/utils/theme.js +265 -142
- package/dist/utils/typography.js +31 -49
- package/package.json +10 -9
- /package/dist/{App.d.ts → src/App.d.ts} +0 -0
- /package/dist/{lib → src/lib}/box.d.ts +0 -0
- /package/dist/{lib → src/lib}/button.d.ts +0 -0
- /package/dist/{lib → src/lib}/col.d.ts +0 -0
- /package/dist/{lib → src/lib}/container.d.ts +0 -0
- /package/dist/{lib → src/lib}/flex.d.ts +0 -0
- /package/dist/{lib → src/lib}/grid.d.ts +0 -0
- /package/dist/{lib → src/lib}/icon.d.ts +0 -0
- /package/dist/{lib → src/lib}/index.d.ts +0 -0
- /package/dist/{lib → src/lib}/input.d.ts +0 -0
- /package/dist/{lib → src/lib}/max-width.d.ts +0 -0
- /package/dist/{lib → src/lib}/range.d.ts +0 -0
- /package/dist/{lib → src/lib}/select.d.ts +0 -0
- /package/dist/{lib → src/lib}/space.d.ts +0 -0
- /package/dist/{lib → src/lib}/styled-components/index.d.ts +0 -0
- /package/dist/{lib → src/lib}/styled-components/registry.d.ts +0 -0
- /package/dist/{lib → src/lib}/styled-components/theme-provider.d.ts +0 -0
- /package/dist/{lib → src/lib}/textarea.d.ts +0 -0
- /package/dist/{lib → src/lib}/toggle.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/global.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/icons.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/index.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/mixins.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/theme.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/typography.d.ts +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist/{toggle-theme.d.ts → src/toggle-theme.d.ts} +0 -0
package/dist/textarea.js
CHANGED
|
@@ -1,86 +1,62 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
"use client";
|
|
3
|
+
import { fullWidthStyles, resetButton, resetInput, statusBorderStyles } from "./utils/mixins.js";
|
|
4
|
+
import { StyledInputWrapper, StyledLabel } from "./input.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
6
|
import { forwardRef } from "react";
|
|
4
7
|
import styled from "styled-components";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
&:hover:not([disabled]) {
|
|
29
|
-
border-color: ${({ theme }) => theme.colors.primary};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&:focus:not([disabled]) {
|
|
33
|
-
box-shadow: 0 0 0 4px ${({ theme }) => theme.colors.primaryLight};
|
|
34
|
-
border-color: ${({ theme }) => theme.colors.primary};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:active:not([disabled]) {
|
|
38
|
-
box-shadow: 0 0 0 2px ${({ theme }) => theme.colors.primaryLight};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
${({ $size, theme }) => $size === "big" ? `font-size: ${theme.fontSizes.inputBig.lg};
|
|
8
|
+
//#region src/lib/textarea.tsx
|
|
9
|
+
var StyledTextarea = styled.textarea.withConfig({
|
|
10
|
+
displayName: "textarea__StyledTextarea",
|
|
11
|
+
componentId: "sc-bafd59ce-0"
|
|
12
|
+
})([
|
|
13
|
+
``,
|
|
14
|
+
`;`,
|
|
15
|
+
`;font-family:inherit;display:inline-block;padding:15px;border-radius:`,
|
|
16
|
+
`;font-weight:400;white-space:break-spaces;hyphens:none;color:`,
|
|
17
|
+
`;background:`,
|
|
18
|
+
`;border:solid 2px `,
|
|
19
|
+
`;box-shadow:0 0 0 0px `,
|
|
20
|
+
`;transition:all 0.3s ease;min-height:80px;&::placeholder{color:`,
|
|
21
|
+
`;}&:hover:not([disabled]){border-color:`,
|
|
22
|
+
`;}&:focus:not([disabled]){box-shadow:0 0 0 4px `,
|
|
23
|
+
`;border-color:`,
|
|
24
|
+
`;}&:active:not([disabled]){box-shadow:0 0 0 2px `,
|
|
25
|
+
`;}`,
|
|
26
|
+
` `,
|
|
27
|
+
` `,
|
|
28
|
+
` `,
|
|
29
|
+
``
|
|
30
|
+
], resetButton, resetInput, ({ theme }) => theme.spacing.radius.xs, ({ theme }) => theme.colors.dark, ({ theme }) => theme.colors.light, ({ theme }) => theme.colors.grayLight, ({ theme }) => theme.colors.primaryLight, ({ theme }) => theme.colors.gray, ({ theme }) => theme.colors.primary, ({ theme }) => theme.colors.primaryLight, ({ theme }) => theme.colors.primary, ({ theme }) => theme.colors.primaryLight, ({ $size, theme }) => $size === "big" ? `font-size: ${theme.fontSizes.inputBig.lg};
|
|
42
31
|
line-height: ${theme.lineHeights.text.lg};
|
|
43
32
|
` : $size === "small" ? `font-size: ${theme.fontSizes.inputSmall.lg};
|
|
44
33
|
line-height: ${theme.lineHeights.text.lg};
|
|
45
34
|
padding: 10px 12px;
|
|
46
35
|
` : `font-size: ${theme.fontSizes.input.lg};
|
|
47
|
-
line-height: ${theme.lineHeights.text.lg}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return statusBorderStyles($error, $success, theme);
|
|
51
|
-
}}
|
|
52
|
-
|
|
53
|
-
${({ disabled, theme }) => disabled && `cursor: not-allowed;
|
|
36
|
+
line-height: ${theme.lineHeights.text.lg};`, ({ $error, $success, theme }) => {
|
|
37
|
+
return statusBorderStyles($error, $success, theme);
|
|
38
|
+
}, ({ disabled, theme }) => disabled && `cursor: not-allowed;
|
|
54
39
|
background: ${theme.colors.grayLight};
|
|
55
40
|
border-color: ${theme.colors.gray};
|
|
56
41
|
color: ${theme.colors.gray};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
${({ $fullWidth }) => fullWidthStyles($fullWidth)}
|
|
60
|
-
`;
|
|
42
|
+
`, ({ $fullWidth }) => fullWidthStyles($fullWidth));
|
|
61
43
|
function LocalTextarea({ ...props }, ref) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
);
|
|
44
|
+
return /* @__PURE__ */ jsxs(StyledInputWrapper, {
|
|
45
|
+
$fullWidth: props.$fullWidth,
|
|
46
|
+
$label: props.$label,
|
|
47
|
+
className: props.$wrapperClassName,
|
|
48
|
+
children: [props.$label && /* @__PURE__ */ jsx(StyledLabel, {
|
|
49
|
+
htmlFor: props.id,
|
|
50
|
+
$label: props.$label,
|
|
51
|
+
children: props.$label
|
|
52
|
+
}), /* @__PURE__ */ jsx(StyledTextarea, {
|
|
53
|
+
...props,
|
|
54
|
+
"aria-invalid": props.$error || void 0,
|
|
55
|
+
ref,
|
|
56
|
+
children: props.children
|
|
57
|
+
})]
|
|
58
|
+
});
|
|
82
59
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
};
|
|
60
|
+
var Textarea = /* @__PURE__ */ forwardRef(LocalTextarea);
|
|
61
|
+
//#endregion
|
|
62
|
+
export { Textarea };
|
package/dist/toggle.js
CHANGED
|
@@ -1,98 +1,49 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
"use client";
|
|
3
|
+
import { resetButton, statusBorderStyles } from "./utils/mixins.js";
|
|
4
|
+
import { StyledInputWrapper, StyledLabel } from "./input.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
6
|
import { forwardRef } from "react";
|
|
4
7
|
import styled from "styled-components";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
transition: all 0.3s ease;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&::after {
|
|
48
|
-
left: 0;
|
|
49
|
-
top: 0;
|
|
50
|
-
border-radius: 50%;
|
|
51
|
-
transition: all 0.3s ease;
|
|
52
|
-
transform: translateX(0);
|
|
53
|
-
background: ${({ theme }) => theme.colors.primary};
|
|
54
|
-
width: ${({ $size }) => $size === "big" ? "32px" : $size === "small" ? "18px" : "22px"};
|
|
55
|
-
height: ${({ $size }) => $size === "big" ? "32px" : $size === "small" ? "18px" : "22px"};
|
|
56
|
-
}
|
|
57
|
-
`;
|
|
58
|
-
const StyledToggle = styled.input`
|
|
59
|
-
${resetButton};
|
|
60
|
-
position: absolute;
|
|
61
|
-
left: 0;
|
|
62
|
-
top: 0;
|
|
63
|
-
width: 100%;
|
|
64
|
-
height: 100%;
|
|
65
|
-
outline: none;
|
|
66
|
-
z-index: 10;
|
|
67
|
-
|
|
68
|
-
&:checked ~ .fake-toggle {
|
|
69
|
-
&::before {
|
|
70
|
-
max-width: 46px;
|
|
71
|
-
background: ${({ theme }) => theme.colors.primaryLight};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&::after {
|
|
75
|
-
transform: translateX(
|
|
76
|
-
${({ $size }) => $size === "big" ? "25px" : $size === "small" ? "20px" : "25px"}
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&:hover:not([disabled]) ~ .fake-toggle {
|
|
82
|
-
border-color: ${({ theme }) => theme.colors.primary};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&:focus:not([disabled]) ~ .fake-toggle {
|
|
86
|
-
outline: none;
|
|
87
|
-
border-color: ${({ theme }) => theme.colors.primary};
|
|
88
|
-
box-shadow: 0 0 0 4px ${({ theme }) => theme.colors.primaryLight};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&:active:not([disabled]) ~ .fake-toggle {
|
|
92
|
-
box-shadow: 0 0 0 2px ${({ theme }) => theme.colors.primaryLight};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
${({ disabled, theme }) => disabled && `cursor: not-allowed;
|
|
8
|
+
//#region src/lib/toggle.tsx
|
|
9
|
+
var StyledToggleWrapper = styled.span.withConfig({
|
|
10
|
+
displayName: "toggle__StyledToggleWrapper",
|
|
11
|
+
componentId: "sc-279a0aa6-0"
|
|
12
|
+
})([`display:inline-block;margin:auto 0;position:relative;vertical-align:middle;`]);
|
|
13
|
+
var StyledFakeToggle = styled.span.withConfig({
|
|
14
|
+
displayName: "toggle__StyledFakeToggle",
|
|
15
|
+
componentId: "sc-279a0aa6-1"
|
|
16
|
+
})([
|
|
17
|
+
`display:block;border:solid 2px `,
|
|
18
|
+
`;background:`,
|
|
19
|
+
`;border-radius:`,
|
|
20
|
+
`;pointer-events:none;transition:all 0.3s ease;box-shadow:0 0 0 0 `,
|
|
21
|
+
`;transform:none;width:`,
|
|
22
|
+
`;height:`,
|
|
23
|
+
`;`,
|
|
24
|
+
` &::before,&::after{content:"";display:block;position:absolute;}&::before{top:5px;left:5px;width:calc(100% - 10px);height:calc(100% - 10px);max-width:0;border-radius:`,
|
|
25
|
+
`;background:`,
|
|
26
|
+
`;transition:all 0.3s ease;}&::after{left:0;top:0;border-radius:50%;transition:all 0.3s ease;transform:translateX(0);background:`,
|
|
27
|
+
`;width:`,
|
|
28
|
+
`;height:`,
|
|
29
|
+
`;}`
|
|
30
|
+
], ({ theme }) => theme.colors.grayLight, ({ theme }) => theme.colors.light, ({ theme }) => theme.spacing.radius.xl, ({ theme }) => theme.colors.primaryLight, ({ $size }) => $size === "big" ? "56px" : $size === "small" ? "38px" : "46px", ({ $size }) => $size === "big" ? "32px" : $size === "small" ? "18px" : "22px", ({ $error, $success, theme }) => {
|
|
31
|
+
return statusBorderStyles($error, $success, theme);
|
|
32
|
+
}, ({ theme }) => theme.spacing.radius.xl, ({ theme }) => theme.colors.light, ({ theme }) => theme.colors.primary, ({ $size }) => $size === "big" ? "32px" : $size === "small" ? "18px" : "22px", ({ $size }) => $size === "big" ? "32px" : $size === "small" ? "18px" : "22px");
|
|
33
|
+
var StyledToggle = styled.input.withConfig({
|
|
34
|
+
displayName: "toggle__StyledToggle",
|
|
35
|
+
componentId: "sc-279a0aa6-2"
|
|
36
|
+
})([
|
|
37
|
+
``,
|
|
38
|
+
`;position:absolute;left:0;top:0;width:100%;height:100%;outline:none;z-index:10;&:checked ~ .fake-toggle{&::before{max-width:46px;background:`,
|
|
39
|
+
`;}&::after{transform:translateX( `,
|
|
40
|
+
` );}}&:hover:not([disabled]) ~ .fake-toggle{border-color:`,
|
|
41
|
+
`;}&:focus:not([disabled]) ~ .fake-toggle{outline:none;border-color:`,
|
|
42
|
+
`;box-shadow:0 0 0 4px `,
|
|
43
|
+
`;}&:active:not([disabled]) ~ .fake-toggle{box-shadow:0 0 0 2px `,
|
|
44
|
+
`;}`,
|
|
45
|
+
``
|
|
46
|
+
], resetButton, ({ theme }) => theme.colors.primaryLight, ({ $size }) => $size === "big" ? "25px" : $size === "small" ? "20px" : "25px", ({ theme }) => theme.colors.primary, ({ theme }) => theme.colors.primary, ({ theme }) => theme.colors.primaryLight, ({ theme }) => theme.colors.primaryLight, ({ disabled, theme }) => disabled && `cursor: not-allowed;
|
|
96
47
|
|
|
97
48
|
& ~ .fake-toggle {
|
|
98
49
|
border-color: ${theme.colors.gray};
|
|
@@ -104,34 +55,28 @@ const StyledToggle = styled.input`
|
|
|
104
55
|
&::after {
|
|
105
56
|
background: ${theme.colors.gray};
|
|
106
57
|
}
|
|
107
|
-
}`
|
|
108
|
-
`;
|
|
58
|
+
}`);
|
|
109
59
|
function LocalToggle({ type = "checkbox", ...props }, ref) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
props.$label && /* @__PURE__ */ jsx(StyledLabel, { htmlFor: props.id, children: props.$label })
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
);
|
|
60
|
+
return /* @__PURE__ */ jsxs(StyledInputWrapper, {
|
|
61
|
+
$fullWidth: props.$fullWidth,
|
|
62
|
+
$label: props.$label,
|
|
63
|
+
className: props.$wrapperClassName,
|
|
64
|
+
children: [/* @__PURE__ */ jsxs(StyledToggleWrapper, { children: [/* @__PURE__ */ jsx(StyledToggle, {
|
|
65
|
+
...props,
|
|
66
|
+
type,
|
|
67
|
+
role: "switch",
|
|
68
|
+
ref
|
|
69
|
+
}), /* @__PURE__ */ jsx(StyledFakeToggle, {
|
|
70
|
+
$error: props.$error,
|
|
71
|
+
$success: props.$success,
|
|
72
|
+
className: "fake-toggle",
|
|
73
|
+
$size: props.$size
|
|
74
|
+
})] }), props.$label && /* @__PURE__ */ jsx(StyledLabel, {
|
|
75
|
+
htmlFor: props.id,
|
|
76
|
+
children: props.$label
|
|
77
|
+
})]
|
|
78
|
+
});
|
|
133
79
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
};
|
|
80
|
+
var Toggle = /* @__PURE__ */ forwardRef(LocalToggle);
|
|
81
|
+
//#endregion
|
|
82
|
+
export { Toggle };
|
package/dist/utils/global.js
CHANGED
|
@@ -1,94 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
"use client";
|
|
2
3
|
import { createGlobalStyle } from "styled-components";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
body
|
|
6
|
-
margin:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
body {
|
|
14
|
-
font-family: "Inter", sans-serif;
|
|
15
|
-
-moz-osx-font-smoothing: grayscale;
|
|
16
|
-
-webkit-text-size-adjust: 100%;
|
|
17
|
-
-webkit-font-smoothing: antialiased;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
* {
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
min-width: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
pre,
|
|
26
|
-
code,
|
|
27
|
-
kbd,
|
|
28
|
-
samp {
|
|
29
|
-
font-family: monospace, monospace;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
pre,
|
|
33
|
-
code,
|
|
34
|
-
kbd,
|
|
35
|
-
samp,
|
|
36
|
-
blockquote,
|
|
37
|
-
p,
|
|
38
|
-
a,
|
|
39
|
-
h1,
|
|
40
|
-
h2,
|
|
41
|
-
h3,
|
|
42
|
-
h4,
|
|
43
|
-
h5,
|
|
44
|
-
h6,
|
|
45
|
-
ul li,
|
|
46
|
-
ol li {
|
|
47
|
-
margin: 0;
|
|
48
|
-
padding: 0;
|
|
49
|
-
color: ${theme.colors.dark};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
a {
|
|
53
|
-
color: ${theme.isDark ? theme.colors.dark : theme.colors.primary};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
ol,
|
|
57
|
-
ul {
|
|
58
|
-
list-style: none;
|
|
59
|
-
margin: 0;
|
|
60
|
-
padding: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
figure {
|
|
64
|
-
margin: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
fieldset {
|
|
68
|
-
appearance: none;
|
|
69
|
-
border: none;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
button,
|
|
73
|
-
input,
|
|
74
|
-
a,
|
|
75
|
-
img,
|
|
76
|
-
svg,
|
|
77
|
-
svg * {
|
|
78
|
-
transition: all 0.3s ease;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
strong,
|
|
82
|
-
b {
|
|
83
|
-
font-weight: 700;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
hr {
|
|
87
|
-
margin: 20px 0;
|
|
88
|
-
border: none;
|
|
89
|
-
border-bottom: 1px solid ${theme.colors.grayLight};
|
|
90
|
-
}
|
|
91
|
-
`;
|
|
92
|
-
export {
|
|
93
|
-
GlobalStyles
|
|
94
|
-
};
|
|
4
|
+
//#region src/lib/utils/global.tsx
|
|
5
|
+
var GlobalStyles = (theme) => createGlobalStyle([
|
|
6
|
+
`html,body{margin:0;padding:0;min-height:100%;scroll-behavior:smooth;background-color:`,
|
|
7
|
+
`;}body{font-family:"Inter",sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;}*{box-sizing:border-box;min-width:0;}pre,code,kbd,samp{font-family:monospace,monospace;}pre,code,kbd,samp,blockquote,p,a,h1,h2,h3,h4,h5,h6,ul li,ol li{margin:0;padding:0;color:`,
|
|
8
|
+
`;}a{color:`,
|
|
9
|
+
`;}ol,ul{list-style:none;margin:0;padding:0;}figure{margin:0;}fieldset{appearance:none;border:none;}button,input,a,img,svg,svg *{transition:all 0.3s ease;}strong,b{font-weight:700;}hr{margin:20px 0;border:none;border-bottom:1px solid `,
|
|
10
|
+
`;}`
|
|
11
|
+
], theme.colors.light, theme.colors.dark, theme.isDark ? theme.colors.dark : theme.colors.primary, theme.colors.grayLight);
|
|
12
|
+
//#endregion
|
|
13
|
+
export { GlobalStyles };
|
package/dist/utils/icons.js
CHANGED
|
@@ -1,86 +1,75 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
"use client";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
import { useTheme } from "styled-components";
|
|
5
|
+
//#region src/lib/utils/icons.tsx
|
|
4
6
|
function IconCheck({ ...props }) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
strokeLinecap: "round",
|
|
22
|
-
strokeLinejoin: "round"
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
);
|
|
7
|
+
const theme = useTheme();
|
|
8
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
9
|
+
width: "12",
|
|
10
|
+
height: "10",
|
|
11
|
+
viewBox: "0 0 12 10",
|
|
12
|
+
fill: "none",
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
...props,
|
|
15
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
16
|
+
d: "M10 2L4.4 8L2 5.75",
|
|
17
|
+
stroke: theme.colors.primary,
|
|
18
|
+
strokeWidth: "3",
|
|
19
|
+
strokeLinecap: "round",
|
|
20
|
+
strokeLinejoin: "round"
|
|
21
|
+
})
|
|
22
|
+
});
|
|
27
23
|
}
|
|
28
24
|
function IconArrow({ ...props }) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
strokeLinecap: "round",
|
|
46
|
-
strokeLinejoin: "round"
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
}
|
|
50
|
-
);
|
|
25
|
+
const theme = useTheme();
|
|
26
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
27
|
+
width: "16",
|
|
28
|
+
height: "10",
|
|
29
|
+
viewBox: "0 0 16 10",
|
|
30
|
+
fill: "none",
|
|
31
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32
|
+
...props,
|
|
33
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
34
|
+
d: "M2 2L8 8L14 2",
|
|
35
|
+
stroke: theme.colors.primary,
|
|
36
|
+
strokeWidth: "3",
|
|
37
|
+
strokeLinecap: "round",
|
|
38
|
+
strokeLinejoin: "round"
|
|
39
|
+
})
|
|
40
|
+
});
|
|
51
41
|
}
|
|
52
42
|
function IconCalendar({ ...props }) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
43
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
44
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
45
|
+
width: "24",
|
|
46
|
+
height: "24",
|
|
47
|
+
viewBox: "0 0 24 24",
|
|
48
|
+
fill: "none",
|
|
49
|
+
stroke: useTheme().colors.primary,
|
|
50
|
+
strokeWidth: "2",
|
|
51
|
+
strokeLinecap: "round",
|
|
52
|
+
strokeLinejoin: "round",
|
|
53
|
+
...props,
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ jsx("path", { d: "M8 2v4" }),
|
|
56
|
+
/* @__PURE__ */ jsx("path", { d: "M16 2v4" }),
|
|
57
|
+
/* @__PURE__ */ jsx("rect", {
|
|
58
|
+
width: "18",
|
|
59
|
+
height: "18",
|
|
60
|
+
x: "3",
|
|
61
|
+
y: "4",
|
|
62
|
+
rx: "2"
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsx("path", { d: "M3 10h18" }),
|
|
65
|
+
/* @__PURE__ */ jsx("path", { d: "M8 14h.01" }),
|
|
66
|
+
/* @__PURE__ */ jsx("path", { d: "M12 14h.01" }),
|
|
67
|
+
/* @__PURE__ */ jsx("path", { d: "M16 14h.01" }),
|
|
68
|
+
/* @__PURE__ */ jsx("path", { d: "M8 18h.01" }),
|
|
69
|
+
/* @__PURE__ */ jsx("path", { d: "M12 18h.01" }),
|
|
70
|
+
/* @__PURE__ */ jsx("path", { d: "M16 18h.01" })
|
|
71
|
+
]
|
|
72
|
+
});
|
|
81
73
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
IconCalendar,
|
|
85
|
-
IconCheck
|
|
86
|
-
};
|
|
74
|
+
//#endregion
|
|
75
|
+
export { IconArrow, IconCalendar, IconCheck };
|