@edu-tosel/design 1.0.275 → 1.0.277

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.
@@ -1,24 +1,24 @@
1
- interface ImageProps {
2
- color?: string;
3
- className?: string;
4
- }
5
- export default function Image({ color, className }: ImageProps) {
6
- return (
7
- <svg
8
- className={className}
9
- xmlns="http://www.w3.org/2000/svg"
10
- width="25"
11
- height="25"
12
- viewBox="0 0 25 25"
13
- fill="none"
14
- >
15
- <path
16
- d="M2.34375 16.4062L7.71771 11.0323C7.93535 10.8147 8.19372 10.642 8.47808 10.5242C8.76244 10.4064 9.06721 10.3458 9.375 10.3458C9.68279 10.3458 9.98756 10.4064 10.2719 10.5242C10.5563 10.642 10.8147 10.8147 11.0323 11.0323L16.4062 16.4062M14.8437 14.8437L16.3115 13.376C16.5291 13.1584 16.7875 12.9858 17.0718 12.868C17.3562 12.7502 17.661 12.6896 17.9687 12.6896C18.2765 12.6896 18.5813 12.7502 18.8657 12.868C19.15 12.9858 19.4084 13.1584 19.626 13.376L22.6562 16.4062M3.90625 20.3125H21.0937C21.5082 20.3125 21.9056 20.1479 22.1986 19.8549C22.4916 19.5618 22.6562 19.1644 22.6562 18.75V6.25C22.6562 5.8356 22.4916 5.43817 22.1986 5.14515C21.9056 4.85212 21.5082 4.6875 21.0937 4.6875H3.90625C3.49185 4.6875 3.09442 4.85212 2.8014 5.14515C2.50837 5.43817 2.34375 5.8356 2.34375 6.25V18.75C2.34375 19.1644 2.50837 19.5618 2.8014 19.8549C3.09442 20.1479 3.49185 20.3125 3.90625 20.3125ZM14.8437 8.59375H14.8521V8.60208H14.8437V8.59375ZM15.2344 8.59375C15.2344 8.69735 15.1932 8.79671 15.12 8.86996C15.0467 8.94322 14.9473 8.98437 14.8437 8.98437C14.7401 8.98437 14.6408 8.94322 14.5675 8.86996C14.4943 8.79671 14.4531 8.69735 14.4531 8.59375C14.4531 8.49015 14.4943 8.39079 14.5675 8.31754C14.6408 8.24428 14.7401 8.20312 14.8437 8.20312C14.9473 8.20312 15.0467 8.24428 15.12 8.31754C15.1932 8.39079 15.2344 8.49015 15.2344 8.59375Z"
17
- stroke={color ?? "#FFFFFF"}
18
- strokeWidth="1.5"
19
- strokeLinecap="round"
20
- strokeLinejoin="round"
21
- />
22
- </svg>
23
- );
24
- }
1
+ interface ImageProps {
2
+ color?: string;
3
+ className?: string;
4
+ }
5
+ export default function Image({ color, className }: ImageProps) {
6
+ return (
7
+ <svg
8
+ className={className}
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ width="25"
11
+ height="25"
12
+ viewBox="0 0 25 25"
13
+ fill="none"
14
+ >
15
+ <path
16
+ d="M2.34375 16.4062L7.71771 11.0323C7.93535 10.8147 8.19372 10.642 8.47808 10.5242C8.76244 10.4064 9.06721 10.3458 9.375 10.3458C9.68279 10.3458 9.98756 10.4064 10.2719 10.5242C10.5563 10.642 10.8147 10.8147 11.0323 11.0323L16.4062 16.4062M14.8437 14.8437L16.3115 13.376C16.5291 13.1584 16.7875 12.9858 17.0718 12.868C17.3562 12.7502 17.661 12.6896 17.9687 12.6896C18.2765 12.6896 18.5813 12.7502 18.8657 12.868C19.15 12.9858 19.4084 13.1584 19.626 13.376L22.6562 16.4062M3.90625 20.3125H21.0937C21.5082 20.3125 21.9056 20.1479 22.1986 19.8549C22.4916 19.5618 22.6562 19.1644 22.6562 18.75V6.25C22.6562 5.8356 22.4916 5.43817 22.1986 5.14515C21.9056 4.85212 21.5082 4.6875 21.0937 4.6875H3.90625C3.49185 4.6875 3.09442 4.85212 2.8014 5.14515C2.50837 5.43817 2.34375 5.8356 2.34375 6.25V18.75C2.34375 19.1644 2.50837 19.5618 2.8014 19.8549C3.09442 20.1479 3.49185 20.3125 3.90625 20.3125ZM14.8437 8.59375H14.8521V8.60208H14.8437V8.59375ZM15.2344 8.59375C15.2344 8.69735 15.1932 8.79671 15.12 8.86996C15.0467 8.94322 14.9473 8.98437 14.8437 8.98437C14.7401 8.98437 14.6408 8.94322 14.5675 8.86996C14.4943 8.79671 14.4531 8.69735 14.4531 8.59375C14.4531 8.49015 14.4943 8.39079 14.5675 8.31754C14.6408 8.24428 14.7401 8.20312 14.8437 8.20312C14.9473 8.20312 15.0467 8.24428 15.12 8.31754C15.1932 8.39079 15.2344 8.49015 15.2344 8.59375Z"
17
+ stroke={color ?? "#FFFFFF"}
18
+ strokeWidth="1.5"
19
+ strokeLinecap="round"
20
+ strokeLinejoin="round"
21
+ />
22
+ </svg>
23
+ );
24
+ }
@@ -5,7 +5,13 @@ export interface IconProps {
5
5
  declare const Login: {
6
6
  User: typeof User;
7
7
  ChekMark: typeof ChekMark;
8
+ Key: typeof Key;
9
+ Lock: typeof Lock;
10
+ Refresh: typeof Refresh;
8
11
  };
9
12
  export default Login;
10
13
  declare function User({ size }: IconProps): import("react/jsx-runtime").JSX.Element;
11
14
  declare function ChekMark({ size }: IconProps): import("react/jsx-runtime").JSX.Element;
15
+ declare function Key({ size }: IconProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function Lock({ size }: IconProps): import("react/jsx-runtime").JSX.Element;
17
+ declare function Refresh({ size }: IconProps): import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  const Login = {
3
3
  User,
4
4
  ChekMark,
5
+ Key,
6
+ Lock,
7
+ Refresh,
5
8
  };
6
9
  export default Login;
7
10
  function User({ size = "md" }) {
@@ -10,3 +13,12 @@ function User({ size = "md" }) {
10
13
  function ChekMark({ size = "md" }) {
11
14
  return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", width: size === "lg" ? 36 : 24, height: size === "lg" ? 36 : 24, children: _jsx("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" }) }));
12
15
  }
16
+ function Key({ size = "md" }) {
17
+ return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", width: size === "lg" ? 36 : 24, height: size === "lg" ? 36 : 24, children: _jsx("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z" }) }));
18
+ }
19
+ function Lock({ size = "md" }) {
20
+ return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", width: size === "lg" ? 36 : 24, height: size === "lg" ? 36 : 24, children: _jsx("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z" }) }));
21
+ }
22
+ function Refresh({ size = "md" }) {
23
+ return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", width: size === "lg" ? 36 : 24, height: size === "lg" ? 36 : 24, children: _jsx("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99" }) }));
24
+ }
@@ -1,53 +1,116 @@
1
- import { OnClick, Size } from "../../interface";
2
- import { cn } from "../../util";
3
-
4
- export interface IconProps {
5
- size?: Size;
6
- }
7
-
8
- const Login = {
9
- User,
10
- ChekMark,
11
- };
12
-
13
- export default Login;
14
-
15
- function User({ size = "md" }: IconProps) {
16
- return (
17
- <svg
18
- xmlns="http://www.w3.org/2000/svg"
19
- fill="none"
20
- viewBox="0 0 24 24"
21
- stroke-width="1.5"
22
- stroke="currentColor"
23
- width={size === "lg" ? 36 : 24}
24
- height={size === "lg" ? 36 : 24}
25
- >
26
- <path
27
- stroke-linecap="round"
28
- stroke-linejoin="round"
29
- d="M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
30
- />
31
- </svg>
32
- );
33
- }
34
-
35
- function ChekMark({ size = "md" }: IconProps) {
36
- return (
37
- <svg
38
- xmlns="http://www.w3.org/2000/svg"
39
- fill="none"
40
- viewBox="0 0 24 24"
41
- stroke-width="1.5"
42
- stroke="currentColor"
43
- width={size === "lg" ? 36 : 24}
44
- height={size === "lg" ? 36 : 24}
45
- >
46
- <path
47
- stroke-linecap="round"
48
- stroke-linejoin="round"
49
- d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
50
- />
51
- </svg>
52
- );
53
- }
1
+ import { OnClick, Size } from "../../interface";
2
+ import { cn } from "../../util";
3
+
4
+ export interface IconProps {
5
+ size?: Size;
6
+ }
7
+
8
+ const Login = {
9
+ User,
10
+ ChekMark,
11
+ Key,
12
+ Lock,
13
+ Refresh,
14
+ };
15
+
16
+ export default Login;
17
+
18
+ function User({ size = "md" }: IconProps) {
19
+ return (
20
+ <svg
21
+ xmlns="http://www.w3.org/2000/svg"
22
+ fill="none"
23
+ viewBox="0 0 24 24"
24
+ stroke-width="1.5"
25
+ stroke="currentColor"
26
+ width={size === "lg" ? 36 : 24}
27
+ height={size === "lg" ? 36 : 24}
28
+ >
29
+ <path
30
+ stroke-linecap="round"
31
+ stroke-linejoin="round"
32
+ d="M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
33
+ />
34
+ </svg>
35
+ );
36
+ }
37
+
38
+ function ChekMark({ size = "md" }: IconProps) {
39
+ return (
40
+ <svg
41
+ xmlns="http://www.w3.org/2000/svg"
42
+ fill="none"
43
+ viewBox="0 0 24 24"
44
+ stroke-width="1.5"
45
+ stroke="currentColor"
46
+ width={size === "lg" ? 36 : 24}
47
+ height={size === "lg" ? 36 : 24}
48
+ >
49
+ <path
50
+ stroke-linecap="round"
51
+ stroke-linejoin="round"
52
+ d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
53
+ />
54
+ </svg>
55
+ );
56
+ }
57
+
58
+ function Key({ size = "md" }: IconProps) {
59
+ return (
60
+ <svg
61
+ xmlns="http://www.w3.org/2000/svg"
62
+ fill="none"
63
+ viewBox="0 0 24 24"
64
+ stroke-width="1.5"
65
+ stroke="currentColor"
66
+ width={size === "lg" ? 36 : 24}
67
+ height={size === "lg" ? 36 : 24}
68
+ >
69
+ <path
70
+ stroke-linecap="round"
71
+ stroke-linejoin="round"
72
+ d="M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"
73
+ />
74
+ </svg>
75
+ );
76
+ }
77
+
78
+ function Lock({ size = "md" }: IconProps) {
79
+ return (
80
+ <svg
81
+ xmlns="http://www.w3.org/2000/svg"
82
+ fill="none"
83
+ viewBox="0 0 24 24"
84
+ stroke-width="1.5"
85
+ stroke="currentColor"
86
+ width={size === "lg" ? 36 : 24}
87
+ height={size === "lg" ? 36 : 24}
88
+ >
89
+ <path
90
+ stroke-linecap="round"
91
+ stroke-linejoin="round"
92
+ d="M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"
93
+ />
94
+ </svg>
95
+ );
96
+ }
97
+
98
+ function Refresh({ size = "md" }: IconProps) {
99
+ return (
100
+ <svg
101
+ xmlns="http://www.w3.org/2000/svg"
102
+ fill="none"
103
+ viewBox="0 0 24 24"
104
+ stroke-width="1.5"
105
+ stroke="currentColor"
106
+ width={size === "lg" ? 36 : 24}
107
+ height={size === "lg" ? 36 : 24}
108
+ >
109
+ <path
110
+ stroke-linecap="round"
111
+ stroke-linejoin="round"
112
+ d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"
113
+ />
114
+ </svg>
115
+ );
116
+ }
@@ -1,19 +1,19 @@
1
- import { OnClick } from "../../interface";
2
-
3
- export default function MiniClose({ onClick }: { onClick?: OnClick }) {
4
- return (
5
- <svg
6
- onClick={onClick}
7
- xmlns="http://www.w3.org/2000/svg"
8
- viewBox="0 0 20 20"
9
- fill="currentColor"
10
- className="size-5"
11
- >
12
- <path
13
- fill-rule="evenodd"
14
- d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z"
15
- clip-rule="evenodd"
16
- />
17
- </svg>
18
- );
19
- }
1
+ import { OnClick } from "../../interface";
2
+
3
+ export default function MiniClose({ onClick }: { onClick?: OnClick }) {
4
+ return (
5
+ <svg
6
+ onClick={onClick}
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ viewBox="0 0 20 20"
9
+ fill="currentColor"
10
+ className="size-5"
11
+ >
12
+ <path
13
+ fill-rule="evenodd"
14
+ d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z"
15
+ clip-rule="evenodd"
16
+ />
17
+ </svg>
18
+ );
19
+ }
@@ -1,34 +1,34 @@
1
- import { OnClick } from "../../interface";
2
-
3
- interface Notification {
4
- onClick: OnClick;
5
- flag: boolean;
6
- color?: string;
7
- }
8
- export default function Notification({ onClick, color, flag }: Notification) {
9
- return (
10
- <button className="relative" onClick={onClick}>
11
- <svg
12
- xmlns="http://www.w3.org/2000/svg"
13
- width="25"
14
- height="25"
15
- viewBox="0 0 25 25"
16
- fill="none"
17
- >
18
- <path
19
- d="M15.4759 17.7938C17.4168 17.564 19.3237 17.1059 21.1572 16.4292C19.6044 14.7092 18.7465 12.4734 18.7499 10.1562V9.375C18.7499 7.7174 18.0914 6.12769 16.9193 4.95558C15.7472 3.78348 14.1575 3.125 12.4999 3.125C10.8423 3.125 9.25257 3.78348 8.08047 4.95558C6.90837 6.12769 6.24989 7.7174 6.24989 9.375V10.1562C6.25303 12.4736 5.39466 14.7093 3.84155 16.4292C5.64676 17.0958 7.54989 17.5594 9.52384 17.7938M15.4759 17.7938C13.4988 18.0283 11.5009 18.0283 9.52384 17.7938M15.4759 17.7938C15.626 18.2624 15.6634 18.7598 15.5849 19.2455C15.5064 19.7313 15.3143 20.1917 15.0242 20.5891C14.7342 20.9866 14.3544 21.31 13.9157 21.5329C13.4771 21.7559 12.9919 21.8721 12.4999 21.8721C12.0078 21.8721 11.5227 21.7559 11.0841 21.5329C10.6454 21.31 10.2656 20.9866 9.97553 20.5891C9.68548 20.1917 9.49339 19.7313 9.4149 19.2455C9.33641 18.7598 9.37374 18.2624 9.52384 17.7938"
20
- stroke={color ?? "#910023"}
21
- strokeWidth="1.5"
22
- strokeLinecap="round"
23
- strokeLinejoin="round"
24
- />
25
- </svg>
26
- {flag && (
27
- <div className="absolute top-0 right-0">
28
- <div className="absolute w-2 h-2 rounded-full bg-red-500" />
29
- <div className=" w-2 h-2 rounded-full bg-red-400 animate-ping duration-1000" />
30
- </div>
31
- )}
32
- </button>
33
- );
34
- }
1
+ import { OnClick } from "../../interface";
2
+
3
+ interface Notification {
4
+ onClick: OnClick;
5
+ flag: boolean;
6
+ color?: string;
7
+ }
8
+ export default function Notification({ onClick, color, flag }: Notification) {
9
+ return (
10
+ <button className="relative" onClick={onClick}>
11
+ <svg
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ width="25"
14
+ height="25"
15
+ viewBox="0 0 25 25"
16
+ fill="none"
17
+ >
18
+ <path
19
+ d="M15.4759 17.7938C17.4168 17.564 19.3237 17.1059 21.1572 16.4292C19.6044 14.7092 18.7465 12.4734 18.7499 10.1562V9.375C18.7499 7.7174 18.0914 6.12769 16.9193 4.95558C15.7472 3.78348 14.1575 3.125 12.4999 3.125C10.8423 3.125 9.25257 3.78348 8.08047 4.95558C6.90837 6.12769 6.24989 7.7174 6.24989 9.375V10.1562C6.25303 12.4736 5.39466 14.7093 3.84155 16.4292C5.64676 17.0958 7.54989 17.5594 9.52384 17.7938M15.4759 17.7938C13.4988 18.0283 11.5009 18.0283 9.52384 17.7938M15.4759 17.7938C15.626 18.2624 15.6634 18.7598 15.5849 19.2455C15.5064 19.7313 15.3143 20.1917 15.0242 20.5891C14.7342 20.9866 14.3544 21.31 13.9157 21.5329C13.4771 21.7559 12.9919 21.8721 12.4999 21.8721C12.0078 21.8721 11.5227 21.7559 11.0841 21.5329C10.6454 21.31 10.2656 20.9866 9.97553 20.5891C9.68548 20.1917 9.49339 19.7313 9.4149 19.2455C9.33641 18.7598 9.37374 18.2624 9.52384 17.7938"
20
+ stroke={color ?? "#910023"}
21
+ strokeWidth="1.5"
22
+ strokeLinecap="round"
23
+ strokeLinejoin="round"
24
+ />
25
+ </svg>
26
+ {flag && (
27
+ <div className="absolute top-0 right-0">
28
+ <div className="absolute w-2 h-2 rounded-full bg-red-500" />
29
+ <div className=" w-2 h-2 rounded-full bg-red-400 animate-ping duration-1000" />
30
+ </div>
31
+ )}
32
+ </button>
33
+ );
34
+ }
@@ -1,130 +1,130 @@
1
- import { OnClick } from "../../interface";
2
- import { Theme } from "../../interface/Theme";
3
- import { cn } from "../../util";
4
-
5
- interface Operation {
6
- onClick?: OnClick;
7
- }
8
- const container = {
9
- styles: "cursor-pointer",
10
- };
11
- function Plus({ onClick }: Operation) {
12
- return (
13
- <svg
14
- className={cn(container)}
15
- onClick={onClick}
16
- xmlns="http://www.w3.org/2000/svg"
17
- width="48"
18
- height="48"
19
- viewBox="0 0 48 48"
20
- fill="none"
21
- >
22
- <path
23
- d="M42 24C42 26.3638 41.5344 28.7044 40.6298 30.8883C39.7253 33.0722 38.3994 35.0565 36.7279 36.7279C35.0565 38.3994 33.0722 39.7253 30.8883 40.6298C28.7044 41.5344 26.3638 42 24 42C21.6362 42 19.2956 41.5344 17.1117 40.6298C14.9278 39.7253 12.9435 38.3994 11.2721 36.7279C9.60062 35.0565 8.27475 33.0722 7.37017 30.8883C6.46558 28.7044 6 26.3638 6 24C6 19.2261 7.89642 14.6477 11.2721 11.2721C14.6477 7.89642 19.2261 6 24 6C28.7739 6 33.3523 7.89642 36.7279 11.2721C40.1036 14.6477 42 19.2261 42 24Z"
24
- fill="#105652"
25
- />
26
- <path
27
- d="M24 18V30M30 24H18"
28
- stroke="white"
29
- strokeWidth="3"
30
- strokeLinecap="round"
31
- strokeLinejoin="round"
32
- />
33
- </svg>
34
- );
35
- }
36
-
37
- function Minus({ onClick }: Operation) {
38
- return (
39
- <svg
40
- className={cn(container)}
41
- onClick={onClick}
42
- width="48"
43
- height="48"
44
- viewBox="0 0 48 48"
45
- fill="none"
46
- xmlns="http://www.w3.org/2000/svg"
47
- >
48
- <path
49
- d="M42 24C42 26.3638 41.5344 28.7044 40.6298 30.8883C39.7253 33.0722 38.3994 35.0565 36.7279 36.7279C35.0565 38.3994 33.0722 39.7253 30.8883 40.6298C28.7044 41.5344 26.3638 42 24 42C21.6362 42 19.2956 41.5344 17.1117 40.6298C14.9278 39.7253 12.9435 38.3994 11.2721 36.7279C9.60062 35.0565 8.27475 33.0722 7.37017 30.8883C6.46558 28.7044 6 26.3638 6 24C6 19.2261 7.89642 14.6477 11.2721 11.2721C14.6477 7.89642 19.2261 6 24 6C28.7739 6 33.3523 7.89642 36.7279 11.2721C40.1036 14.6477 42 19.2261 42 24Z"
50
- fill="#910023"
51
- />
52
- <path
53
- d="M30 24H18"
54
- stroke="white"
55
- strokeWidth="3"
56
- strokeLinecap="round"
57
- strokeLinejoin="round"
58
- />
59
- </svg>
60
- );
61
- }
62
-
63
- function Checked({
64
- flag,
65
- size,
66
- theme,
67
- }: {
68
- flag: boolean;
69
- size?: number;
70
- theme?: Theme;
71
- }) {
72
- const color = {
73
- green: "#105652",
74
- blue: "#173A8B",
75
- } as Record<Theme, string>;
76
- return (
77
- <svg
78
- xmlns="http://www.w3.org/2000/svg"
79
- width={size ?? "40"}
80
- height={size ?? "40"}
81
- viewBox="0 0 48 48"
82
- fill="none"
83
- >
84
- <path
85
- d="M42 24C42 26.3638 41.5344 28.7044 40.6298 30.8883C39.7253 33.0722 38.3994 35.0565 36.7279 36.7279C35.0565 38.3994 33.0722 39.7253 30.8883 40.6298C28.7044 41.5344 26.3638 42 24 42C21.6362 42 19.2956 41.5344 17.1117 40.6298C14.9278 39.7253 12.9435 38.3994 11.2721 36.7279C9.60062 35.0565 8.27475 33.0722 7.37017 30.8883C6.46558 28.7044 6 26.3638 6 24C6 19.2261 7.89642 14.6477 11.2721 11.2721C14.6477 7.89642 19.2261 6 24 6C28.7739 6 33.3523 7.89642 36.7279 11.2721C40.1036 14.6477 42 19.2261 42 24Z"
86
- fill={flag ? color[theme ?? "green"] : "#F0F0F0"}
87
- />
88
- <path
89
- d="M30.5 18.5L24 30.5L18 24"
90
- stroke="white"
91
- strokeWidth="3"
92
- strokeLinecap="round"
93
- strokeLinejoin="round"
94
- />
95
- </svg>
96
- );
97
- }
98
- function RightArrow({ onClick }: Operation) {
99
- return (
100
- <svg
101
- className={cn(container)}
102
- onClick={onClick}
103
- xmlns="http://www.w3.org/2000/svg"
104
- width="48"
105
- height="48"
106
- viewBox="0 0 48 48"
107
- fill="none"
108
- >
109
- <path
110
- d="M42 24C42 26.3638 41.5344 28.7044 40.6298 30.8883C39.7253 33.0722 38.3994 35.0565 36.7279 36.7279C35.0565 38.3994 33.0722 39.7253 30.8883 40.6298C28.7044 41.5344 26.3638 42 24 42C21.6362 42 19.2956 41.5344 17.1117 40.6298C14.9278 39.7253 12.9435 38.3994 11.2721 36.7279C9.60062 35.0565 8.27475 33.0722 7.37017 30.8883C6.46558 28.7044 6 26.3638 6 24C6 19.2261 7.89642 14.6477 11.2721 11.2721C14.6477 7.89642 19.2261 6 24 6C28.7739 6 33.3523 7.89642 36.7279 11.2721C40.1036 14.6477 42 19.2261 42 24Z"
111
- fill="#105652"
112
- />
113
- <path
114
- d="M20 24H28M24 20L28 24L24 28"
115
- stroke="white"
116
- strokeWidth="3"
117
- strokeLinecap="round"
118
- strokeLinejoin="round"
119
- />
120
- </svg>
121
- );
122
- }
123
-
124
- const Operation = {
125
- Plus,
126
- Minus,
127
- Checked,
128
- RightArrow,
129
- };
130
- export default Operation;
1
+ import { OnClick } from "../../interface";
2
+ import { Theme } from "../../interface/Theme";
3
+ import { cn } from "../../util";
4
+
5
+ interface Operation {
6
+ onClick?: OnClick;
7
+ }
8
+ const container = {
9
+ styles: "cursor-pointer",
10
+ };
11
+ function Plus({ onClick }: Operation) {
12
+ return (
13
+ <svg
14
+ className={cn(container)}
15
+ onClick={onClick}
16
+ xmlns="http://www.w3.org/2000/svg"
17
+ width="48"
18
+ height="48"
19
+ viewBox="0 0 48 48"
20
+ fill="none"
21
+ >
22
+ <path
23
+ d="M42 24C42 26.3638 41.5344 28.7044 40.6298 30.8883C39.7253 33.0722 38.3994 35.0565 36.7279 36.7279C35.0565 38.3994 33.0722 39.7253 30.8883 40.6298C28.7044 41.5344 26.3638 42 24 42C21.6362 42 19.2956 41.5344 17.1117 40.6298C14.9278 39.7253 12.9435 38.3994 11.2721 36.7279C9.60062 35.0565 8.27475 33.0722 7.37017 30.8883C6.46558 28.7044 6 26.3638 6 24C6 19.2261 7.89642 14.6477 11.2721 11.2721C14.6477 7.89642 19.2261 6 24 6C28.7739 6 33.3523 7.89642 36.7279 11.2721C40.1036 14.6477 42 19.2261 42 24Z"
24
+ fill="#105652"
25
+ />
26
+ <path
27
+ d="M24 18V30M30 24H18"
28
+ stroke="white"
29
+ strokeWidth="3"
30
+ strokeLinecap="round"
31
+ strokeLinejoin="round"
32
+ />
33
+ </svg>
34
+ );
35
+ }
36
+
37
+ function Minus({ onClick }: Operation) {
38
+ return (
39
+ <svg
40
+ className={cn(container)}
41
+ onClick={onClick}
42
+ width="48"
43
+ height="48"
44
+ viewBox="0 0 48 48"
45
+ fill="none"
46
+ xmlns="http://www.w3.org/2000/svg"
47
+ >
48
+ <path
49
+ d="M42 24C42 26.3638 41.5344 28.7044 40.6298 30.8883C39.7253 33.0722 38.3994 35.0565 36.7279 36.7279C35.0565 38.3994 33.0722 39.7253 30.8883 40.6298C28.7044 41.5344 26.3638 42 24 42C21.6362 42 19.2956 41.5344 17.1117 40.6298C14.9278 39.7253 12.9435 38.3994 11.2721 36.7279C9.60062 35.0565 8.27475 33.0722 7.37017 30.8883C6.46558 28.7044 6 26.3638 6 24C6 19.2261 7.89642 14.6477 11.2721 11.2721C14.6477 7.89642 19.2261 6 24 6C28.7739 6 33.3523 7.89642 36.7279 11.2721C40.1036 14.6477 42 19.2261 42 24Z"
50
+ fill="#910023"
51
+ />
52
+ <path
53
+ d="M30 24H18"
54
+ stroke="white"
55
+ strokeWidth="3"
56
+ strokeLinecap="round"
57
+ strokeLinejoin="round"
58
+ />
59
+ </svg>
60
+ );
61
+ }
62
+
63
+ function Checked({
64
+ flag,
65
+ size,
66
+ theme,
67
+ }: {
68
+ flag: boolean;
69
+ size?: number;
70
+ theme?: Theme;
71
+ }) {
72
+ const color = {
73
+ green: "#105652",
74
+ blue: "#173A8B",
75
+ } as Record<Theme, string>;
76
+ return (
77
+ <svg
78
+ xmlns="http://www.w3.org/2000/svg"
79
+ width={size ?? "40"}
80
+ height={size ?? "40"}
81
+ viewBox="0 0 48 48"
82
+ fill="none"
83
+ >
84
+ <path
85
+ d="M42 24C42 26.3638 41.5344 28.7044 40.6298 30.8883C39.7253 33.0722 38.3994 35.0565 36.7279 36.7279C35.0565 38.3994 33.0722 39.7253 30.8883 40.6298C28.7044 41.5344 26.3638 42 24 42C21.6362 42 19.2956 41.5344 17.1117 40.6298C14.9278 39.7253 12.9435 38.3994 11.2721 36.7279C9.60062 35.0565 8.27475 33.0722 7.37017 30.8883C6.46558 28.7044 6 26.3638 6 24C6 19.2261 7.89642 14.6477 11.2721 11.2721C14.6477 7.89642 19.2261 6 24 6C28.7739 6 33.3523 7.89642 36.7279 11.2721C40.1036 14.6477 42 19.2261 42 24Z"
86
+ fill={flag ? color[theme ?? "green"] : "#F0F0F0"}
87
+ />
88
+ <path
89
+ d="M30.5 18.5L24 30.5L18 24"
90
+ stroke="white"
91
+ strokeWidth="3"
92
+ strokeLinecap="round"
93
+ strokeLinejoin="round"
94
+ />
95
+ </svg>
96
+ );
97
+ }
98
+ function RightArrow({ onClick }: Operation) {
99
+ return (
100
+ <svg
101
+ className={cn(container)}
102
+ onClick={onClick}
103
+ xmlns="http://www.w3.org/2000/svg"
104
+ width="48"
105
+ height="48"
106
+ viewBox="0 0 48 48"
107
+ fill="none"
108
+ >
109
+ <path
110
+ d="M42 24C42 26.3638 41.5344 28.7044 40.6298 30.8883C39.7253 33.0722 38.3994 35.0565 36.7279 36.7279C35.0565 38.3994 33.0722 39.7253 30.8883 40.6298C28.7044 41.5344 26.3638 42 24 42C21.6362 42 19.2956 41.5344 17.1117 40.6298C14.9278 39.7253 12.9435 38.3994 11.2721 36.7279C9.60062 35.0565 8.27475 33.0722 7.37017 30.8883C6.46558 28.7044 6 26.3638 6 24C6 19.2261 7.89642 14.6477 11.2721 11.2721C14.6477 7.89642 19.2261 6 24 6C28.7739 6 33.3523 7.89642 36.7279 11.2721C40.1036 14.6477 42 19.2261 42 24Z"
111
+ fill="#105652"
112
+ />
113
+ <path
114
+ d="M20 24H28M24 20L28 24L24 28"
115
+ stroke="white"
116
+ strokeWidth="3"
117
+ strokeLinecap="round"
118
+ strokeLinejoin="round"
119
+ />
120
+ </svg>
121
+ );
122
+ }
123
+
124
+ const Operation = {
125
+ Plus,
126
+ Minus,
127
+ Checked,
128
+ RightArrow,
129
+ };
130
+ export default Operation;
@@ -1 +1,3 @@
1
- export default function Phone(): import("react/jsx-runtime").JSX.Element;
1
+ export default function Phone({ color }: {
2
+ color?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- export default function Phone() {
3
- return (_jsx("svg", { className: "mr-3", xmlns: "http://www.w3.org/2000/svg", width: "25", height: "25", viewBox: "0 0 25 25", fill: "none", children: _jsx("path", { d: "M10.9375 1.5625H8.59375C7.97215 1.5625 7.37601 1.80943 6.93647 2.24897C6.49693 2.68851 6.25 3.28465 6.25 3.90625V21.0937C6.25 21.7154 6.49693 22.3115 6.93647 22.751C7.37601 23.1906 7.97215 23.4375 8.59375 23.4375H16.4062C17.0279 23.4375 17.624 23.1906 18.0635 22.751C18.5031 22.3115 18.75 21.7154 18.75 21.0937V3.90625C18.75 3.28465 18.5031 2.68851 18.0635 2.24897C17.624 1.80943 17.0279 1.5625 16.4062 1.5625H14.0625M10.9375 1.5625V3.125H14.0625V1.5625M10.9375 1.5625H14.0625M10.9375 21.0937H14.0625", stroke: "#105652", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
2
+ export default function Phone({ color }) {
3
+ return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "25", height: "25", viewBox: "0 0 25 25", fill: "none", children: _jsx("path", { d: "M10.9375 1.5625H8.59375C7.97215 1.5625 7.37601 1.80943 6.93647 2.24897C6.49693 2.68851 6.25 3.28465 6.25 3.90625V21.0937C6.25 21.7154 6.49693 22.3115 6.93647 22.751C7.37601 23.1906 7.97215 23.4375 8.59375 23.4375H16.4062C17.0279 23.4375 17.624 23.1906 18.0635 22.751C18.5031 22.3115 18.75 21.7154 18.75 21.0937V3.90625C18.75 3.28465 18.5031 2.68851 18.0635 2.24897C17.624 1.80943 17.0279 1.5625 16.4062 1.5625H14.0625M10.9375 1.5625V3.125H14.0625V1.5625M10.9375 1.5625H14.0625M10.9375 21.0937H14.0625", stroke: color ?? "#105652", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
4
4
  }