@edu-tosel/design 1.0.44 → 1.0.46

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 (154) hide show
  1. package/README.md +42 -42
  2. package/asset/SVG.d.ts +5 -0
  3. package/asset/SVG.js +2 -0
  4. package/asset/SVG.tsx +23 -21
  5. package/asset/svg/Close.tsx +32 -32
  6. package/asset/svg/Direction.tsx +36 -36
  7. package/asset/svg/Email.tsx +20 -20
  8. package/asset/svg/Image.tsx +24 -24
  9. package/asset/svg/Notification.tsx +34 -34
  10. package/asset/svg/Operation.d.ts +11 -0
  11. package/asset/svg/Operation.js +16 -0
  12. package/asset/svg/Operation.tsx +66 -0
  13. package/asset/svg/Phone.tsx +20 -20
  14. package/asset/svg/Profile.tsx +27 -27
  15. package/asset/svg/TOSEL.tsx +63 -63
  16. package/board/design/Board.design.d.ts +1 -1
  17. package/board/design/Board.design.js +4 -4
  18. package/board/template/CanvasBoard.d.ts +1 -1
  19. package/board/template/CanvasBoard.js +3 -3
  20. package/board/template/ManageBoard.d.ts +1 -1
  21. package/board/template/ManageBoard.js +6 -6
  22. package/board/widget/Header.js +1 -1
  23. package/card/design/Card.design.js +4 -3
  24. package/card/design/NavCard.design.js +1 -1
  25. package/card/design/RollCard.design.d.ts +2 -0
  26. package/card/design/RollCard.design.js +13 -0
  27. package/card/design/TableCard.design.js +9 -8
  28. package/card/index.d.ts +1 -0
  29. package/card/index.js +1 -0
  30. package/card/template/InfoCard/Academy.js +1 -1
  31. package/card/template/InfoCard/Exam.js +1 -1
  32. package/card/template/InfoCard/ExamData.js +3 -3
  33. package/card/template/InfoCard/Finance.js +1 -1
  34. package/card/template/InfoCard/Grade.js +1 -1
  35. package/card/template/InfoCard/Student.js +1 -1
  36. package/card/template/RollCard.d.ts +2 -0
  37. package/card/template/RollCard.js +5 -0
  38. package/globals.css +226 -226
  39. package/hook/useFlag.js +2 -2
  40. package/index.d.ts +1 -1
  41. package/index.js +1 -1
  42. package/interaction/template/Loading.d.ts +3 -3
  43. package/interaction/template/Loading.js +3 -3
  44. package/interaction/template/NoData.js +2 -2
  45. package/interface/{Widget.d.ts → Action.d.ts} +3 -3
  46. package/interface/Board.d.ts +2 -2
  47. package/interface/Card.d.ts +9 -2
  48. package/interface/HTMLElement.d.ts +0 -4
  49. package/interface/Layout.d.ts +3 -3
  50. package/interface/Modal.d.ts +5 -2
  51. package/interface/Overlay.d.ts +2 -2
  52. package/interface/Property.d.ts +4 -4
  53. package/interface/Shelf.d.ts +2 -2
  54. package/interface/UtilityType.d.ts +2 -0
  55. package/interface/UtilityType.js +1 -0
  56. package/interface/index.d.ts +2 -1
  57. package/interface/index.js +2 -1
  58. package/interface/widget/Switch.d.ts +19 -0
  59. package/interface/widget/Switch.js +1 -0
  60. package/interface/widget/index.d.ts +1 -0
  61. package/interface/widget/index.js +1 -0
  62. package/layout/design/DataField.design.js +2 -2
  63. package/layout/design/Row.design.js +1 -1
  64. package/layout/design/Tab.design.d.ts +15 -4
  65. package/layout/design/Tab.design.js +26 -11
  66. package/layout/index.d.ts +1 -1
  67. package/layout/index.js +1 -1
  68. package/layout/template/Action.d.ts +8 -0
  69. package/layout/template/{Events.js → Action.js} +12 -12
  70. package/layout/template/Gallery.d.ts +2 -2
  71. package/layout/template/Gallery.js +10 -3
  72. package/layout/template/Shelf.js +3 -1
  73. package/layout/widget/dashboard/Header.js +5 -5
  74. package/layout/widget/dashboard/Layout.js +2 -2
  75. package/layout/widget/dashboard/Menu.d.ts +1 -1
  76. package/layout/widget/dashboard/Menu.js +5 -5
  77. package/layout/widget/dashboard/Navigation.js +1 -1
  78. package/layout/widget/dashboard/Notification.d.ts +1 -1
  79. package/layout/widget/dashboard/Notification.js +4 -4
  80. package/layout/widget/dashboard/buttonClassNames.js +2 -2
  81. package/layout/widget/dashboard/mypage/Layout.js +2 -2
  82. package/layout/widget/dashboard/mypage/Profile.js +1 -1
  83. package/layout/widget/sign/WithTitle.js +1 -1
  84. package/modal/design/ConfirmModal.design.d.ts +1 -1
  85. package/modal/design/ConfirmModal.design.js +3 -3
  86. package/modal/design/Modal.design.d.ts +1 -1
  87. package/modal/design/Modal.design.js +8 -7
  88. package/modal/template/Alert.d.ts +1 -1
  89. package/modal/template/Alert.js +2 -2
  90. package/modal/template/ConfirmModal/Input.js +1 -1
  91. package/modal/template/ConfirmModal/Switch.d.ts +11 -0
  92. package/modal/template/ConfirmModal/Switch.js +19 -0
  93. package/modal/template/ConfirmModal/Tag.d.ts +13 -0
  94. package/modal/template/ConfirmModal/Tag.js +19 -0
  95. package/modal/template/ConfirmModal/index.d.ts +2 -0
  96. package/modal/template/ConfirmModal/index.js +4 -0
  97. package/modal/template/Input.d.ts +1 -1
  98. package/modal/template/Input.js +2 -2
  99. package/overlay/design/Overlay.design.d.ts +1 -1
  100. package/overlay/design/Overlay.design.js +4 -4
  101. package/overlay/template/Info.d.ts +1 -1
  102. package/overlay/template/Info.js +2 -2
  103. package/overlay/template/Manage.d.ts +1 -1
  104. package/overlay/template/Manage.js +2 -2
  105. package/package.json +1 -1
  106. package/store/index.d.ts +4 -4
  107. package/store/index.js +1 -1
  108. package/tailwind.config.ts +605 -602
  109. package/util/select.d.ts +10 -0
  110. package/util/select.js +10 -0
  111. package/version.txt +1 -1
  112. package/{html/widget → widget}/CheckBox.d.ts +1 -1
  113. package/{html/widget → widget}/DatePicker.d.ts +1 -1
  114. package/{html/widget → widget}/EmailInput.d.ts +1 -1
  115. package/{html/widget → widget}/EmailInput.js +1 -1
  116. package/{html/widget → widget}/Obstacle.d.ts +1 -1
  117. package/{html/widget → widget}/Obstacle.js +1 -1
  118. package/widget/Toggle.d.ts +6 -0
  119. package/{html/widget → widget}/Toggle.js +1 -10
  120. package/{html → widget}/design/Label.design.js +1 -1
  121. package/{html → widget}/design/Select.design.js +2 -2
  122. package/widget/design/Tag.design.d.ts +0 -0
  123. package/widget/design/Tag.design.js +1 -0
  124. package/{html → widget}/index.d.ts +3 -2
  125. package/{html → widget}/index.js +3 -2
  126. package/{html → widget}/template/Input.js +1 -1
  127. package/widget/template/Switch/Handle.d.ts +2 -0
  128. package/widget/template/Switch/Handle.js +26 -0
  129. package/widget/template/Switch/Switch.d.ts +3 -0
  130. package/widget/template/Switch/Switch.js +44 -0
  131. package/widget/template/Switch/index.d.ts +6 -0
  132. package/widget/template/Switch/index.js +4 -0
  133. package/html/widget/Toggle.d.ts +0 -2
  134. package/layout/template/Events.d.ts +0 -8
  135. /package/interaction/{widget → design}/Jumper.design.d.ts +0 -0
  136. /package/interaction/{widget → design}/Jumper.design.js +0 -0
  137. /package/interaction/{widget → design}/Script.design.d.ts +0 -0
  138. /package/interaction/{widget → design}/Script.design.js +0 -0
  139. /package/interaction/{widget → design}/Sign.design.d.ts +0 -0
  140. /package/interaction/{widget → design}/Sign.design.js +0 -0
  141. /package/interaction/{widget → design}/Spinner.design.d.ts +0 -0
  142. /package/interaction/{widget → design}/Spinner.design.js +0 -0
  143. /package/interaction/{widget → design}/Worm.design.d.ts +0 -0
  144. /package/interaction/{widget → design}/Worm.design.js +0 -0
  145. /package/interface/{Widget.js → Action.js} +0 -0
  146. /package/{html/widget → widget}/CheckBox.js +0 -0
  147. /package/{html/widget → widget}/DatePicker.js +0 -0
  148. /package/{html → widget}/design/Label.design.d.ts +0 -0
  149. /package/{html → widget}/design/Select.design.d.ts +0 -0
  150. /package/{html → widget}/template/Input.d.ts +0 -0
  151. /package/{html → widget}/template/Label.d.ts +0 -0
  152. /package/{html → widget}/template/Label.js +0 -0
  153. /package/{html → widget}/template/Select.d.ts +0 -0
  154. /package/{html → widget}/template/Select.js +0 -0
package/README.md CHANGED
@@ -1,42 +1,42 @@
1
- # TOSEL Design Library
2
-
3
- TOSEL 통합 디자인 시스템에 맞춘 UI 라이브러리
4
-
5
- ## Component
6
-
7
- 컴포넌트들은 기본적으로 기능 단위로만 구성한다.
8
-
9
- 도메인은 구분하지 않는다. 단, Layout 컴포넌트에 대해서만 예외적으로 허용한다.
10
-
11
- ### Board
12
-
13
- Board 컴포넌트는 가장 큰 단위의 컨테이너이다.
14
-
15
- 일반적으로
16
-
17
- ### Card
18
-
19
- Card 컴포넌트는 여러가지 요소를 담고 있는 컨테이너이다.
20
-
21
- 일반적으로 가장 최소 단위의 컴포넌트로 사용되며, 다양한 요소를 담을 수 있다.
22
-
23
-
24
- ### Layout
25
-
26
- Layout 컴포넌트는 여러가지 컴포넌트를 담고 있는 컨테이너이다.
27
-
28
- Layout 컴포넌트는 특정 프로젝트에서 반복적으로 사용되는 컴포넌트의 구조를 형성한다.
29
-
30
- ### Navigation
31
-
32
- Navigation 컴포넌트는 여러가지 링크를 담고 있는 컨테이너이다.
33
-
34
- 각각의 링크 컴포넌트의 스타일링은 buttonClassNames로 전달받는다.
35
-
36
- (Next.js의 Link Component와 React의 Link Component는 호환이 되지 않기 때문.)
37
-
38
- ### Shelf
39
-
40
- Shelf 컴포넌트는 Board 컴포넌트 내부에 위치하며 여러가지 Deck 컴포넌트를 담고 있는 컨테이너이다.
41
-
42
- Shelf 컴포넌트는 담고있는 Deck 컴포넌트들을 수직 정렬한다.
1
+ # TOSEL Design Library
2
+
3
+ TOSEL 통합 디자인 시스템에 맞춘 UI 라이브러리
4
+
5
+ ## Component
6
+
7
+ 컴포넌트들은 기본적으로 기능 단위로만 구성한다.
8
+
9
+ 도메인은 구분하지 않는다. 단, Layout 컴포넌트에 대해서만 예외적으로 허용한다.
10
+
11
+ ### Board
12
+
13
+ Board 컴포넌트는 가장 큰 단위의 컨테이너이다.
14
+
15
+ 일반적으로
16
+
17
+ ### Card
18
+
19
+ Card 컴포넌트는 여러가지 요소를 담고 있는 컨테이너이다.
20
+
21
+ 일반적으로 가장 최소 단위의 컴포넌트로 사용되며, 다양한 요소를 담을 수 있다.
22
+
23
+
24
+ ### Layout
25
+
26
+ Layout 컴포넌트는 여러가지 컴포넌트를 담고 있는 컨테이너이다.
27
+
28
+ Layout 컴포넌트는 특정 프로젝트에서 반복적으로 사용되는 컴포넌트의 구조를 형성한다.
29
+
30
+ ### Navigation
31
+
32
+ Navigation 컴포넌트는 여러가지 링크를 담고 있는 컨테이너이다.
33
+
34
+ 각각의 링크 컴포넌트의 스타일링은 buttonClassNames로 전달받는다.
35
+
36
+ (Next.js의 Link Component와 React의 Link Component는 호환이 되지 않기 때문.)
37
+
38
+ ### Shelf
39
+
40
+ Shelf 컴포넌트는 Board 컴포넌트 내부에 위치하며 여러가지 Deck 컴포넌트를 담고 있는 컨테이너이다.
41
+
42
+ Shelf 컴포넌트는 담고있는 Deck 컴포넌트들을 수직 정렬한다.
package/asset/SVG.d.ts CHANGED
@@ -3,6 +3,7 @@ import Direction from "./svg/Direction";
3
3
  import Email from "./svg/Email";
4
4
  import Image from "./svg/Image";
5
5
  import Notification from "./svg/Notification";
6
+ import Operation from "./svg/Operation";
6
7
  import Phone from "./svg/Phone";
7
8
  import Profile from "./svg/Profile";
8
9
  import TOSEL from "./svg/TOSEL";
@@ -15,6 +16,10 @@ declare const SVG: {
15
16
  Email: typeof Email;
16
17
  Image: typeof Image;
17
18
  Notification: typeof Notification;
19
+ Operation: {
20
+ Plus: ({ onClick }: Operation) => import("react/jsx-runtime").JSX.Element;
21
+ Minus: ({ onClick }: Operation) => import("react/jsx-runtime").JSX.Element;
22
+ };
18
23
  Phone: typeof Phone;
19
24
  Profile: typeof Profile;
20
25
  };
package/asset/SVG.js CHANGED
@@ -3,6 +3,7 @@ import Direction from "./svg/Direction";
3
3
  import Email from "./svg/Email";
4
4
  import Image from "./svg/Image";
5
5
  import Notification from "./svg/Notification";
6
+ import Operation from "./svg/Operation";
6
7
  import Phone from "./svg/Phone";
7
8
  import Profile from "./svg/Profile";
8
9
  import TOSEL from "./svg/TOSEL";
@@ -13,6 +14,7 @@ const SVG = {
13
14
  Email,
14
15
  Image,
15
16
  Notification,
17
+ Operation,
16
18
  Phone,
17
19
  Profile,
18
20
  };
package/asset/SVG.tsx CHANGED
@@ -1,21 +1,23 @@
1
- import Close from "./svg/Close";
2
- import Direction from "./svg/Direction";
3
- import Email from "./svg/Email";
4
- import Image from "./svg/Image";
5
- import Notification from "./svg/Notification";
6
- import Phone from "./svg/Phone";
7
- import Profile from "./svg/Profile";
8
- import TOSEL from "./svg/TOSEL";
9
-
10
- const SVG = {
11
- TOSEL,
12
- Close,
13
- Direction,
14
- Email,
15
- Image,
16
- Notification,
17
- Phone,
18
- Profile,
19
- };
20
-
21
- export default SVG;
1
+ import Close from "./svg/Close";
2
+ import Direction from "./svg/Direction";
3
+ import Email from "./svg/Email";
4
+ import Image from "./svg/Image";
5
+ import Notification from "./svg/Notification";
6
+ import Operation from "./svg/Operation";
7
+ import Phone from "./svg/Phone";
8
+ import Profile from "./svg/Profile";
9
+ import TOSEL from "./svg/TOSEL";
10
+
11
+ const SVG = {
12
+ TOSEL,
13
+ Close,
14
+ Direction,
15
+ Email,
16
+ Image,
17
+ Notification,
18
+ Operation,
19
+ Phone,
20
+ Profile,
21
+ };
22
+
23
+ export default SVG;
@@ -1,32 +1,32 @@
1
- import { OnClick } from "../../interface";
2
- import { cn } from "../../util";
3
-
4
- export default function Close({
5
- onClick,
6
- className,
7
- }: {
8
- onClick?: OnClick;
9
- className?: string;
10
- }) {
11
- const container = {
12
- styles: onClick ? "cursor-pointer" : "",
13
- className,
14
- };
15
- return (
16
- <svg
17
- onClick={onClick}
18
- className={cn(container)}
19
- xmlns="http://www.w3.org/2000/svg"
20
- width="36"
21
- height="36"
22
- viewBox="0 0 36 36"
23
- fill="none"
24
- >
25
- <circle cx="18" cy="18" r="18" fill="#F0F0F0" />
26
- <path
27
- d="M19.7797 17.6997L23.8497 13.6397C24.4797 13.0997 24.5597 12.1597 24.0197 11.5297C23.4797 10.8997 22.5397 10.8197 21.9097 11.3597C21.8497 11.4097 21.7997 11.4597 21.7497 11.5197L17.6697 15.5797L13.5997 11.5097C13.0297 10.9097 12.0797 10.8697 11.4797 11.4397C10.8697 11.9997 10.8397 12.9497 11.3997 13.5597C11.4197 13.5897 11.4497 13.6097 11.4697 13.6297L15.5297 17.6997L11.4697 21.7597C10.8897 22.3497 10.8897 23.2897 11.4697 23.8797C12.0597 24.4697 13.0097 24.4697 13.5997 23.8797L17.6597 19.8197L21.7197 23.8897C21.9997 24.1797 22.3797 24.3397 22.7797 24.3297C23.6097 24.3297 24.2797 23.6597 24.2797 22.8297C24.2797 22.4297 24.1197 22.0497 23.8397 21.7697L19.7797 17.6997Z"
28
- fill="#7F7F7F"
29
- />
30
- </svg>
31
- );
32
- }
1
+ import { OnClick } from "../../interface";
2
+ import { cn } from "../../util";
3
+
4
+ export default function Close({
5
+ onClick,
6
+ className,
7
+ }: {
8
+ onClick?: OnClick;
9
+ className?: string;
10
+ }) {
11
+ const container = {
12
+ styles: onClick ? "cursor-pointer" : "",
13
+ className,
14
+ };
15
+ return (
16
+ <svg
17
+ onClick={onClick}
18
+ className={cn(container)}
19
+ xmlns="http://www.w3.org/2000/svg"
20
+ width="36"
21
+ height="36"
22
+ viewBox="0 0 36 36"
23
+ fill="none"
24
+ >
25
+ <circle cx="18" cy="18" r="18" fill="#F0F0F0" />
26
+ <path
27
+ d="M19.7797 17.6997L23.8497 13.6397C24.4797 13.0997 24.5597 12.1597 24.0197 11.5297C23.4797 10.8997 22.5397 10.8197 21.9097 11.3597C21.8497 11.4097 21.7997 11.4597 21.7497 11.5197L17.6697 15.5797L13.5997 11.5097C13.0297 10.9097 12.0797 10.8697 11.4797 11.4397C10.8697 11.9997 10.8397 12.9497 11.3997 13.5597C11.4197 13.5897 11.4497 13.6097 11.4697 13.6297L15.5297 17.6997L11.4697 21.7597C10.8897 22.3497 10.8897 23.2897 11.4697 23.8797C12.0597 24.4697 13.0097 24.4697 13.5997 23.8797L17.6597 19.8197L21.7197 23.8897C21.9997 24.1797 22.3797 24.3397 22.7797 24.3297C23.6097 24.3297 24.2797 23.6597 24.2797 22.8297C24.2797 22.4297 24.1197 22.0497 23.8397 21.7697L19.7797 17.6997Z"
28
+ fill="#7F7F7F"
29
+ />
30
+ </svg>
31
+ );
32
+ }
@@ -1,36 +1,36 @@
1
- interface Direction {
2
- className?: string;
3
- }
4
- function Right({ className }: Direction) {
5
- return (
6
- <svg
7
- className={className}
8
- xmlns="http://www.w3.org/2000/svg"
9
- width="24"
10
- height="24"
11
- viewBox="0 0 24 24"
12
- fill="none"
13
- >
14
- <path
15
- d="M21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21C10.8181 21 9.64778 20.7672 8.55585 20.3149C7.46392 19.8626 6.47177 19.1997 5.63604 18.364C4.80031 17.5282 4.13738 16.5361 3.68508 15.4442C3.23279 14.3522 3 13.1819 3 12C3 9.61305 3.94821 7.32387 5.63604 5.63604C7.32387 3.94821 9.61305 3 12 3C14.3869 3 16.6761 3.94821 18.364 5.63604C20.0518 7.32387 21 9.61305 21 12Z"
16
- fill="#105652"
17
- stroke="#105652"
18
- strokeWidth="1.5"
19
- strokeLinecap="round"
20
- strokeLinejoin="round"
21
- />
22
- <path
23
- d="M12.75 15L15.75 12M15.75 12L12.75 9M15.75 12H8.25"
24
- stroke="white"
25
- strokeWidth="1.5"
26
- strokeLinecap="round"
27
- strokeLinejoin="round"
28
- />
29
- </svg>
30
- );
31
- }
32
-
33
- const Direction = {
34
- Right,
35
- };
36
- export default Direction;
1
+ interface Direction {
2
+ className?: string;
3
+ }
4
+ function Right({ className }: Direction) {
5
+ return (
6
+ <svg
7
+ className={className}
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ width="24"
10
+ height="24"
11
+ viewBox="0 0 24 24"
12
+ fill="none"
13
+ >
14
+ <path
15
+ d="M21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21C10.8181 21 9.64778 20.7672 8.55585 20.3149C7.46392 19.8626 6.47177 19.1997 5.63604 18.364C4.80031 17.5282 4.13738 16.5361 3.68508 15.4442C3.23279 14.3522 3 13.1819 3 12C3 9.61305 3.94821 7.32387 5.63604 5.63604C7.32387 3.94821 9.61305 3 12 3C14.3869 3 16.6761 3.94821 18.364 5.63604C20.0518 7.32387 21 9.61305 21 12Z"
16
+ fill="#105652"
17
+ stroke="#105652"
18
+ strokeWidth="1.5"
19
+ strokeLinecap="round"
20
+ strokeLinejoin="round"
21
+ />
22
+ <path
23
+ d="M12.75 15L15.75 12M15.75 12L12.75 9M15.75 12H8.25"
24
+ stroke="white"
25
+ strokeWidth="1.5"
26
+ strokeLinecap="round"
27
+ strokeLinejoin="round"
28
+ />
29
+ </svg>
30
+ );
31
+ }
32
+
33
+ const Direction = {
34
+ Right,
35
+ };
36
+ export default Direction;
@@ -1,20 +1,20 @@
1
- export default function Email() {
2
- return (
3
- <svg
4
- className="mr-3"
5
- xmlns="http://www.w3.org/2000/svg"
6
- width="25"
7
- height="25"
8
- viewBox="0 0 25 25"
9
- fill="none"
10
- >
11
- <path
12
- d="M22.6562 9.37501V10.3188C22.6563 10.7419 22.5417 11.1572 22.3248 11.5205C22.1078 11.8838 21.7965 12.1816 21.424 12.3823L14.676 16.0156M2.34375 9.37501V10.3188C2.34373 10.7419 2.45828 11.1572 2.67525 11.5205C2.89221 11.8838 3.20348 12.1816 3.57604 12.3823L10.324 16.0156M10.324 16.0156L11.3885 15.4427C11.7301 15.2587 12.112 15.1624 12.5 15.1624C12.888 15.1624 13.2699 15.2587 13.6115 15.4427L14.6771 16.0156L19.5312 18.6302M10.324 16.0156L5.46875 18.6302M22.6562 20.3125C22.6562 20.9341 22.4093 21.5303 21.9698 21.9698C21.5302 22.4093 20.9341 22.6563 20.3125 22.6563H4.6875C4.0659 22.6563 3.46976 22.4093 3.03022 21.9698C2.59068 21.5303 2.34375 20.9341 2.34375 20.3125V9.21251C2.34373 8.78934 2.45828 8.37407 2.67525 8.01075C2.89221 7.64744 3.20348 7.34964 3.57604 7.14897L11.3885 2.94168C11.7301 2.75769 12.112 2.66138 12.5 2.66138C12.888 2.66138 13.2699 2.75769 13.6115 2.94168L21.424 7.14897C21.7964 7.34956 22.1075 7.64719 22.3245 8.01031C22.5414 8.37342 22.6561 8.78848 22.6562 9.21147V20.3125Z"
13
- stroke="#105652"
14
- strokeWidth="1.5"
15
- strokeLinecap="round"
16
- strokeLinejoin="round"
17
- />
18
- </svg>
19
- );
20
- }
1
+ export default function Email() {
2
+ return (
3
+ <svg
4
+ className="mr-3"
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="25"
7
+ height="25"
8
+ viewBox="0 0 25 25"
9
+ fill="none"
10
+ >
11
+ <path
12
+ d="M22.6562 9.37501V10.3188C22.6563 10.7419 22.5417 11.1572 22.3248 11.5205C22.1078 11.8838 21.7965 12.1816 21.424 12.3823L14.676 16.0156M2.34375 9.37501V10.3188C2.34373 10.7419 2.45828 11.1572 2.67525 11.5205C2.89221 11.8838 3.20348 12.1816 3.57604 12.3823L10.324 16.0156M10.324 16.0156L11.3885 15.4427C11.7301 15.2587 12.112 15.1624 12.5 15.1624C12.888 15.1624 13.2699 15.2587 13.6115 15.4427L14.6771 16.0156L19.5312 18.6302M10.324 16.0156L5.46875 18.6302M22.6562 20.3125C22.6562 20.9341 22.4093 21.5303 21.9698 21.9698C21.5302 22.4093 20.9341 22.6563 20.3125 22.6563H4.6875C4.0659 22.6563 3.46976 22.4093 3.03022 21.9698C2.59068 21.5303 2.34375 20.9341 2.34375 20.3125V9.21251C2.34373 8.78934 2.45828 8.37407 2.67525 8.01075C2.89221 7.64744 3.20348 7.34964 3.57604 7.14897L11.3885 2.94168C11.7301 2.75769 12.112 2.66138 12.5 2.66138C12.888 2.66138 13.2699 2.75769 13.6115 2.94168L21.424 7.14897C21.7964 7.34956 22.1075 7.64719 22.3245 8.01031C22.5414 8.37342 22.6561 8.78848 22.6562 9.21147V20.3125Z"
13
+ stroke="#105652"
14
+ strokeWidth="1.5"
15
+ strokeLinecap="round"
16
+ strokeLinejoin="round"
17
+ />
18
+ </svg>
19
+ );
20
+ }
@@ -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
+ }
@@ -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
+ }
@@ -0,0 +1,11 @@
1
+ import { OnClick } from "../../interface";
2
+ interface Operation {
3
+ onClick?: OnClick;
4
+ }
5
+ declare function Plus({ onClick }: Operation): import("react/jsx-runtime").JSX.Element;
6
+ declare function Minus({ onClick }: Operation): import("react/jsx-runtime").JSX.Element;
7
+ declare const Operation: {
8
+ Plus: typeof Plus;
9
+ Minus: typeof Minus;
10
+ };
11
+ export default Operation;
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../../util";
3
+ const container = {
4
+ styles: "cursor-pointer",
5
+ };
6
+ function Plus({ onClick }) {
7
+ return (_jsxs("svg", { className: cn(container), onClick: onClick, xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", children: [_jsx("path", { 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", fill: "#105652" }), _jsx("path", { d: "M24 18V30M30 24H18", stroke: "white", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" })] }));
8
+ }
9
+ function Minus({ onClick }) {
10
+ return (_jsxs("svg", { className: cn(container), onClick: onClick, width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { 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", fill: "#910023" }), _jsx("path", { d: "M30 24H18", stroke: "white", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" })] }));
11
+ }
12
+ const Operation = {
13
+ Plus,
14
+ Minus,
15
+ };
16
+ export default Operation;
@@ -0,0 +1,66 @@
1
+ import { OnClick } from "../../interface";
2
+ import { cn } from "../../util";
3
+
4
+ interface Operation {
5
+ onClick?: OnClick;
6
+ }
7
+ const container = {
8
+ styles: "cursor-pointer",
9
+ };
10
+ function Plus({ onClick }: Operation) {
11
+ return (
12
+ <svg
13
+ className={cn(container)}
14
+ onClick={onClick}
15
+ xmlns="http://www.w3.org/2000/svg"
16
+ width="48"
17
+ height="48"
18
+ viewBox="0 0 48 48"
19
+ fill="none"
20
+ >
21
+ <path
22
+ 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"
23
+ fill="#105652"
24
+ />
25
+ <path
26
+ d="M24 18V30M30 24H18"
27
+ stroke="white"
28
+ strokeWidth="3"
29
+ strokeLinecap="round"
30
+ strokeLinejoin="round"
31
+ />
32
+ </svg>
33
+ );
34
+ }
35
+
36
+ function Minus({ onClick }: Operation) {
37
+ return (
38
+ <svg
39
+ className={cn(container)}
40
+ onClick={onClick}
41
+ width="48"
42
+ height="48"
43
+ viewBox="0 0 48 48"
44
+ fill="none"
45
+ xmlns="http://www.w3.org/2000/svg"
46
+ >
47
+ <path
48
+ 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"
49
+ fill="#910023"
50
+ />
51
+ <path
52
+ d="M30 24H18"
53
+ stroke="white"
54
+ strokeWidth="3"
55
+ strokeLinecap="round"
56
+ strokeLinejoin="round"
57
+ />
58
+ </svg>
59
+ );
60
+ }
61
+
62
+ const Operation = {
63
+ Plus,
64
+ Minus,
65
+ };
66
+ export default Operation;
@@ -1,20 +1,20 @@
1
- export default function Phone() {
2
- return (
3
- <svg
4
- className="mr-3"
5
- xmlns="http://www.w3.org/2000/svg"
6
- width="25"
7
- height="25"
8
- viewBox="0 0 25 25"
9
- fill="none"
10
- >
11
- <path
12
- 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"
13
- stroke="#105652"
14
- strokeWidth="1.5"
15
- strokeLinecap="round"
16
- strokeLinejoin="round"
17
- />
18
- </svg>
19
- );
20
- }
1
+ export default function Phone() {
2
+ return (
3
+ <svg
4
+ className="mr-3"
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="25"
7
+ height="25"
8
+ viewBox="0 0 25 25"
9
+ fill="none"
10
+ >
11
+ <path
12
+ 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"
13
+ stroke="#105652"
14
+ strokeWidth="1.5"
15
+ strokeLinecap="round"
16
+ strokeLinejoin="round"
17
+ />
18
+ </svg>
19
+ );
20
+ }