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.
Files changed (50) hide show
  1. package/dist/box.js +20 -11
  2. package/dist/button.js +80 -150
  3. package/dist/col.js +26 -18
  4. package/dist/container.js +32 -30
  5. package/dist/flex.js +39 -34
  6. package/dist/grid.js +36 -33
  7. package/dist/icon.js +14 -23
  8. package/dist/index.js +9 -76
  9. package/dist/input.js +136 -312
  10. package/dist/max-width.js +41 -26
  11. package/dist/range.js +74 -141
  12. package/dist/select.js +56 -100
  13. package/dist/space.js +38 -24
  14. package/dist/styled-components/registry.js +17 -19
  15. package/dist/styled-components/theme-provider.js +27 -31
  16. package/dist/textarea.js +49 -73
  17. package/dist/toggle.js +66 -121
  18. package/dist/utils/global.js +11 -92
  19. package/dist/utils/icons.js +66 -77
  20. package/dist/utils/mixins.js +41 -83
  21. package/dist/utils/theme.js +265 -142
  22. package/dist/utils/typography.js +31 -49
  23. package/package.json +10 -9
  24. /package/dist/{App.d.ts → src/App.d.ts} +0 -0
  25. /package/dist/{lib → src/lib}/box.d.ts +0 -0
  26. /package/dist/{lib → src/lib}/button.d.ts +0 -0
  27. /package/dist/{lib → src/lib}/col.d.ts +0 -0
  28. /package/dist/{lib → src/lib}/container.d.ts +0 -0
  29. /package/dist/{lib → src/lib}/flex.d.ts +0 -0
  30. /package/dist/{lib → src/lib}/grid.d.ts +0 -0
  31. /package/dist/{lib → src/lib}/icon.d.ts +0 -0
  32. /package/dist/{lib → src/lib}/index.d.ts +0 -0
  33. /package/dist/{lib → src/lib}/input.d.ts +0 -0
  34. /package/dist/{lib → src/lib}/max-width.d.ts +0 -0
  35. /package/dist/{lib → src/lib}/range.d.ts +0 -0
  36. /package/dist/{lib → src/lib}/select.d.ts +0 -0
  37. /package/dist/{lib → src/lib}/space.d.ts +0 -0
  38. /package/dist/{lib → src/lib}/styled-components/index.d.ts +0 -0
  39. /package/dist/{lib → src/lib}/styled-components/registry.d.ts +0 -0
  40. /package/dist/{lib → src/lib}/styled-components/theme-provider.d.ts +0 -0
  41. /package/dist/{lib → src/lib}/textarea.d.ts +0 -0
  42. /package/dist/{lib → src/lib}/toggle.d.ts +0 -0
  43. /package/dist/{lib → src/lib}/utils/global.d.ts +0 -0
  44. /package/dist/{lib → src/lib}/utils/icons.d.ts +0 -0
  45. /package/dist/{lib → src/lib}/utils/index.d.ts +0 -0
  46. /package/dist/{lib → src/lib}/utils/mixins.d.ts +0 -0
  47. /package/dist/{lib → src/lib}/utils/theme.d.ts +0 -0
  48. /package/dist/{lib → src/lib}/utils/typography.d.ts +0 -0
  49. /package/dist/{main.d.ts → src/main.d.ts} +0 -0
  50. /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
- import { jsxs, jsx } from "react/jsx-runtime";
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
- import { StyledInputWrapper, StyledLabel } from "./input.js";
6
- import { resetButton, resetInput, statusBorderStyles, fullWidthStyles } from "./utils/mixins.js";
7
- const StyledTextarea = styled.textarea`
8
- ${resetButton};
9
- ${resetInput};
10
- font-family: inherit;
11
- display: inline-block;
12
- padding: 15px;
13
- border-radius: ${({ theme }) => theme.spacing.radius.xs};
14
- font-weight: 400;
15
- white-space: break-spaces;
16
- hyphens: none;
17
- color: ${({ theme }) => theme.colors.dark};
18
- background: ${({ theme }) => theme.colors.light};
19
- border: solid 2px ${({ theme }) => theme.colors.grayLight};
20
- box-shadow: 0 0 0 0px ${({ theme }) => theme.colors.primaryLight};
21
- transition: all 0.3s ease;
22
- min-height: 80px;
23
-
24
- &::placeholder {
25
- color: ${({ theme }) => theme.colors.gray};
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
- ${({ $error, $success, theme }) => {
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
- return /* @__PURE__ */ jsxs(
63
- StyledInputWrapper,
64
- {
65
- $fullWidth: props.$fullWidth,
66
- $label: props.$label,
67
- className: props.$wrapperClassName,
68
- children: [
69
- props.$label && /* @__PURE__ */ jsx(StyledLabel, { htmlFor: props.id, $label: props.$label, children: props.$label }),
70
- /* @__PURE__ */ jsx(
71
- StyledTextarea,
72
- {
73
- ...props,
74
- "aria-invalid": props.$error || void 0,
75
- ref,
76
- children: props.children
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
- const Textarea = forwardRef(LocalTextarea);
84
- export {
85
- Textarea
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
- import { jsxs, jsx } from "react/jsx-runtime";
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
- import { StyledInputWrapper, StyledLabel } from "./input.js";
6
- import { resetButton, statusBorderStyles } from "./utils/mixins.js";
7
- const StyledToggleWrapper = styled.span`
8
- display: inline-block;
9
- margin: auto 0;
10
- position: relative;
11
- vertical-align: middle;
12
- `;
13
- const StyledFakeToggle = styled.span`
14
- display: block;
15
- border: solid 2px ${({ theme }) => theme.colors.grayLight};
16
- background: ${({ theme }) => theme.colors.light};
17
- border-radius: ${({ theme }) => theme.spacing.radius.xl};
18
- pointer-events: none;
19
- transition: all 0.3s ease;
20
- box-shadow: 0 0 0 0 ${({ theme }) => theme.colors.primaryLight};
21
- transform: none;
22
- width: ${({ $size }) => $size === "big" ? "56px" : $size === "small" ? "38px" : "46px"};
23
- height: ${({ $size }) => $size === "big" ? "32px" : $size === "small" ? "18px" : "22px"};
24
-
25
- ${({ $error, $success, theme }) => {
26
- return statusBorderStyles($error, $success, theme);
27
- }}
28
-
29
- &::before,
30
- &::after {
31
- content: "";
32
- display: block;
33
- position: absolute;
34
- }
35
-
36
- &::before {
37
- top: 5px;
38
- left: 5px;
39
- width: calc(100% - 10px);
40
- height: calc(100% - 10px);
41
- max-width: 0;
42
- border-radius: ${({ theme }) => theme.spacing.radius.xl};
43
- background: ${({ theme }) => theme.colors.light};
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
- return /* @__PURE__ */ jsxs(
111
- StyledInputWrapper,
112
- {
113
- $fullWidth: props.$fullWidth,
114
- $label: props.$label,
115
- className: props.$wrapperClassName,
116
- children: [
117
- /* @__PURE__ */ jsxs(StyledToggleWrapper, { children: [
118
- /* @__PURE__ */ jsx(StyledToggle, { ...props, type, role: "switch", ref }),
119
- /* @__PURE__ */ jsx(
120
- StyledFakeToggle,
121
- {
122
- $error: props.$error,
123
- $success: props.$success,
124
- className: "fake-toggle",
125
- $size: props.$size
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
- const Toggle = forwardRef(LocalToggle);
135
- export {
136
- Toggle
137
- };
80
+ var Toggle = /* @__PURE__ */ forwardRef(LocalToggle);
81
+ //#endregion
82
+ export { Toggle };
@@ -1,94 +1,13 @@
1
1
  "use client";
2
+ "use client";
2
3
  import { createGlobalStyle } from "styled-components";
3
- const GlobalStyles = (theme) => createGlobalStyle`
4
- html,
5
- body {
6
- margin: 0;
7
- padding: 0;
8
- min-height: 100%;
9
- scroll-behavior: smooth;
10
- background-color: ${theme.colors.light};
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 };
@@ -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
- const theme = useTheme();
6
- return /* @__PURE__ */ jsx(
7
- "svg",
8
- {
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(
16
- "path",
17
- {
18
- d: "M10 2L4.4 8L2 5.75",
19
- stroke: theme.colors.primary,
20
- strokeWidth: "3",
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
- const theme = useTheme();
30
- return /* @__PURE__ */ jsx(
31
- "svg",
32
- {
33
- width: "16",
34
- height: "10",
35
- viewBox: "0 0 16 10",
36
- fill: "none",
37
- xmlns: "http://www.w3.org/2000/svg",
38
- ...props,
39
- children: /* @__PURE__ */ jsx(
40
- "path",
41
- {
42
- d: "M2 2L8 8L14 2",
43
- stroke: theme.colors.primary,
44
- strokeWidth: "3",
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
- const theme = useTheme();
54
- return /* @__PURE__ */ jsxs(
55
- "svg",
56
- {
57
- xmlns: "http://www.w3.org/2000/svg",
58
- width: "24",
59
- height: "24",
60
- viewBox: "0 0 24 24",
61
- fill: "none",
62
- stroke: theme.colors.primary,
63
- strokeWidth: "2",
64
- strokeLinecap: "round",
65
- strokeLinejoin: "round",
66
- ...props,
67
- children: [
68
- /* @__PURE__ */ jsx("path", { d: "M8 2v4" }),
69
- /* @__PURE__ */ jsx("path", { d: "M16 2v4" }),
70
- /* @__PURE__ */ jsx("rect", { width: "18", height: "18", x: "3", y: "4", rx: "2" }),
71
- /* @__PURE__ */ jsx("path", { d: "M3 10h18" }),
72
- /* @__PURE__ */ jsx("path", { d: "M8 14h.01" }),
73
- /* @__PURE__ */ jsx("path", { d: "M12 14h.01" }),
74
- /* @__PURE__ */ jsx("path", { d: "M16 14h.01" }),
75
- /* @__PURE__ */ jsx("path", { d: "M8 18h.01" }),
76
- /* @__PURE__ */ jsx("path", { d: "M12 18h.01" }),
77
- /* @__PURE__ */ jsx("path", { d: "M16 18h.01" })
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
- export {
83
- IconArrow,
84
- IconCalendar,
85
- IconCheck
86
- };
74
+ //#endregion
75
+ export { IconArrow, IconCalendar, IconCheck };