@edu-tosel/design 1.0.6 → 1.0.8

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 (252) hide show
  1. package/README.md +0 -20
  2. package/{src/board/index.tsx → board/index.d.ts} +3 -4
  3. package/board/index.js +3 -0
  4. package/board/template/CanvasBoard.d.ts +2 -0
  5. package/board/template/CanvasBoard.js +10 -0
  6. package/board/template/ManageBoard.d.ts +4 -0
  7. package/board/template/ManageBoard.js +27 -0
  8. package/board/widget/Board.d.ts +2 -0
  9. package/board/widget/Board.js +16 -0
  10. package/board/widget/DataField.d.ts +6 -0
  11. package/board/widget/DataField.js +24 -0
  12. package/board/widget/Header.d.ts +2 -0
  13. package/board/widget/Header.js +22 -0
  14. package/board/widget/Tab.d.ts +4 -0
  15. package/board/widget/Tab.js +17 -0
  16. package/board/widget/Tags.d.ts +3 -0
  17. package/board/widget/Tags.js +30 -0
  18. package/{src/card/index.tsx → card/index.d.ts} +6 -6
  19. package/card/index.js +6 -0
  20. package/card/template/ChartCard.d.ts +2 -0
  21. package/card/template/ChartCard.js +6 -0
  22. package/card/template/InfoCard.d.ts +2 -0
  23. package/card/template/InfoCard.js +6 -0
  24. package/card/template/ProfileCard.d.ts +14 -0
  25. package/card/template/ProfileCard.js +8 -0
  26. package/card/template/RowCard.d.ts +5 -0
  27. package/card/template/RowCard.js +26 -0
  28. package/card/template/TableCard.d.ts +2 -0
  29. package/card/template/TableCard.js +12 -0
  30. package/card/template/TrumpCard.d.ts +2 -0
  31. package/card/template/TrumpCard.js +19 -0
  32. package/card/widget/Card.d.ts +2 -0
  33. package/card/widget/Card.js +45 -0
  34. package/deck/Deck.d.ts +16 -0
  35. package/deck/Deck.js +15 -0
  36. package/{src/deck/index.tsx → deck/index.d.ts} +1 -1
  37. package/deck/index.js +1 -0
  38. package/{src/index.tsx → index.d.ts} +11 -11
  39. package/index.js +11 -0
  40. package/interaction/index.d.ts +4 -0
  41. package/interaction/index.js +4 -0
  42. package/interaction/template/Exception.d.ts +2 -0
  43. package/interaction/template/Exception.js +9 -0
  44. package/interaction/widget/LoadingJumper.d.ts +1 -0
  45. package/interaction/widget/LoadingJumper.js +4 -0
  46. package/interaction/widget/LoadingSpinner.d.ts +1 -0
  47. package/interaction/widget/LoadingSpinner.js +5 -0
  48. package/interaction/widget/NoData.d.ts +1 -0
  49. package/interaction/widget/NoData.js +4 -0
  50. package/interface/Board.d.ts +57 -0
  51. package/interface/Board.js +1 -0
  52. package/interface/Card.d.ts +76 -0
  53. package/interface/Card.js +1 -0
  54. package/{src/interface/HTMLElement.ts → interface/HTMLElement.d.ts} +23 -27
  55. package/interface/HTMLElement.js +1 -0
  56. package/interface/Interaction.d.ts +5 -0
  57. package/interface/Interaction.js +1 -0
  58. package/interface/Menu.d.ts +6 -0
  59. package/interface/Menu.js +1 -0
  60. package/interface/Modal.d.ts +18 -0
  61. package/interface/Modal.js +1 -0
  62. package/{src/interface/Property.ts → interface/Property.d.ts} +40 -46
  63. package/interface/Property.js +14 -0
  64. package/interface/Widget.d.ts +4 -0
  65. package/interface/Widget.js +1 -0
  66. package/{src/interface/index.ts → interface/index.d.ts} +3 -3
  67. package/interface/index.js +3 -0
  68. package/layout/dashboard/Header.d.ts +5 -0
  69. package/layout/dashboard/Header.js +19 -0
  70. package/layout/dashboard/index.d.ts +7 -0
  71. package/layout/dashboard/index.js +10 -0
  72. package/{src/layout/index.tsx → layout/index.d.ts} +1 -1
  73. package/layout/index.js +1 -0
  74. package/menu/index.d.ts +1 -0
  75. package/menu/index.js +1 -0
  76. package/menu/template/SideMenu.d.ts +2 -0
  77. package/menu/template/SideMenu.js +20 -0
  78. package/menu/widget/HTMLElement.d.ts +8 -0
  79. package/menu/widget/HTMLElement.js +9 -0
  80. package/modal/AlertModal.d.ts +2 -0
  81. package/modal/AlertModal.js +8 -0
  82. package/modal/ControllerModal.d.ts +6 -0
  83. package/modal/ControllerModal.js +6 -0
  84. package/modal/Modal.d.ts +2 -0
  85. package/modal/Modal.js +31 -0
  86. package/modal/TestModal.d.ts +8 -0
  87. package/modal/TestModal.js +6 -0
  88. package/{src/modal/index.tsx → modal/index.d.ts} +3 -3
  89. package/modal/index.js +3 -0
  90. package/navigation/Navigation.d.ts +5 -0
  91. package/navigation/Navigation.js +24 -0
  92. package/{src/navigation/index.tsx → navigation/index.d.ts} +1 -1
  93. package/navigation/index.js +1 -0
  94. package/package.json +28 -49
  95. package/shelf/Shelf.d.ts +4 -0
  96. package/shelf/Shelf.js +4 -0
  97. package/{src/shelf/index.tsx → shelf/index.d.ts} +1 -1
  98. package/shelf/index.js +1 -0
  99. package/store/index.d.ts +16 -0
  100. package/store/index.js +39 -0
  101. package/text/LineBreaks.d.ts +4 -0
  102. package/text/LineBreaks.js +5 -0
  103. package/{src/text/index.tsx → text/index.d.ts} +1 -1
  104. package/text/index.js +1 -0
  105. package/util/classNames.d.ts +1 -0
  106. package/util/classNames.js +4 -0
  107. package/util/colors.d.ts +10 -0
  108. package/util/colors.js +10 -0
  109. package/util/display.d.ts +25 -0
  110. package/util/display.js +25 -0
  111. package/util/displayResponsive.d.ts +3 -0
  112. package/util/displayResponsive.js +15 -0
  113. package/{src/util/index.ts → util/index.d.ts} +7 -7
  114. package/util/index.js +7 -0
  115. package/util/pattern.d.ts +7 -0
  116. package/util/pattern.js +15 -0
  117. package/util/position.d.ts +14 -0
  118. package/util/position.js +44 -0
  119. package/util/shape.d.ts +1 -0
  120. package/util/shape.js +3 -0
  121. package/version.txt +1 -0
  122. package/.eslintrc.cjs +0 -17
  123. package/Dockerfile +0 -16
  124. package/LICENCE +0 -19
  125. package/docs/README.md +0 -47
  126. package/index.html +0 -13
  127. package/postcss.config.js +0 -6
  128. package/public/images/daeng.jpg +0 -0
  129. package/public/images/faker.jpg +0 -0
  130. package/public/images/haerin.png +0 -0
  131. package/public/images/haewon.png +0 -0
  132. package/public/images/hani.png +0 -0
  133. package/public/images/home/admin.png +0 -0
  134. package/public/images/home/dashboard.png +0 -0
  135. package/public/images/home/detection.png +0 -0
  136. package/public/images/home/homepage.png +0 -0
  137. package/public/images/home/olympiad.png +0 -0
  138. package/public/images/home/partner.png +0 -0
  139. package/public/images/home/report.png +0 -0
  140. package/public/images/home/space.png +0 -0
  141. package/public/images/home/sun.png +0 -0
  142. package/public/images/info.png +0 -0
  143. package/public/images/itc.png +0 -0
  144. package/public/images/jenkins.png +0 -0
  145. package/public/images/minji.png +0 -0
  146. package/public/images/seulgi.png +0 -0
  147. package/public/images/test-full.png +0 -0
  148. package/public/images/test-image.png +0 -0
  149. package/public/images/test-paper.png +0 -0
  150. package/public/images/tosel-blue-lab-spiral.png +0 -0
  151. package/public/images/tosel.png +0 -0
  152. package/public/images/yujin.png +0 -0
  153. package/public/videos/loading.gif +0 -0
  154. package/public/vite.svg +0 -1
  155. package/setupPackage.js +0 -78
  156. package/src/App.tsx +0 -32
  157. package/src/_components/asset/interface.ts +0 -2
  158. package/src/_components/asset/links.ts +0 -17
  159. package/src/_components/asset/mock/academies.ts +0 -52
  160. package/src/_components/asset/mock/chartData.ts +0 -104
  161. package/src/_components/asset/mock/exams.ts +0 -42
  162. package/src/_components/asset/mock/index.ts +0 -2
  163. package/src/_components/asset/mock/people.ts +0 -291
  164. package/src/_components/asset/mock/test.ts +0 -67
  165. package/src/_components/asset/navigation.ts +0 -17
  166. package/src/_components/asset/people.ts +0 -226
  167. package/src/_components/asset/planets.ts +0 -49
  168. package/src/_components/controller/store.ts +0 -11
  169. package/src/_components/hook/useRoute.ts +0 -47
  170. package/src/_components/hook/useTyping.ts +0 -46
  171. package/src/_components/types/Level.ts +0 -1
  172. package/src/_components/view/Explore.tsx +0 -16
  173. package/src/_components/view/Home.tsx +0 -180
  174. package/src/_components/view/LottiePlayer.tsx +0 -17
  175. package/src/app/admin/exam/page.tsx +0 -36
  176. package/src/app/admin/grade/page.tsx +0 -5
  177. package/src/app/admin/layout.tsx +0 -56
  178. package/src/app/admin/news/page.tsx +0 -15
  179. package/src/app/admin/page.tsx +0 -42
  180. package/src/app/admin/rnd/monthly-test/page.tsx +0 -5
  181. package/src/app/admin/rnd/page.tsx +0 -17
  182. package/src/app/admin/statistics/page.tsx +0 -5
  183. package/src/app/admin/user/page.tsx +0 -147
  184. package/src/app/agency/exam/page.tsx +0 -5
  185. package/src/app/agency/group/page.tsx +0 -5
  186. package/src/app/agency/layout.tsx +0 -55
  187. package/src/app/agency/page.tsx +0 -68
  188. package/src/app/agency/sales/page.tsx +0 -5
  189. package/src/app/convention/page.tsx +0 -58
  190. package/src/app/page.tsx +0 -4
  191. package/src/asset/fonts/Kostar.ttf +0 -0
  192. package/src/asset/fonts/Megrim.ttf +0 -0
  193. package/src/asset/fonts/NicoMoji.ttf +0 -0
  194. package/src/asset/fonts/Pretendard-Medium.otf +0 -0
  195. package/src/board/template/CanvasBoard.tsx +0 -17
  196. package/src/board/template/ManageBoard.tsx +0 -56
  197. package/src/board/widget/Board.tsx +0 -28
  198. package/src/board/widget/DataField.tsx +0 -70
  199. package/src/board/widget/Header.tsx +0 -63
  200. package/src/board/widget/Tab.tsx +0 -36
  201. package/src/board/widget/Tags.tsx +0 -81
  202. package/src/card/template/ChartCard.tsx +0 -42
  203. package/src/card/template/InfoCard.tsx +0 -22
  204. package/src/card/template/ProfileCard.tsx +0 -36
  205. package/src/card/template/RowCard.tsx +0 -91
  206. package/src/card/template/TableCard.tsx +0 -41
  207. package/src/card/template/TrumpCard.tsx +0 -46
  208. package/src/card/widget/Card.tsx +0 -53
  209. package/src/deck/Deck.tsx +0 -46
  210. package/src/interaction/Exception.tsx +0 -10
  211. package/src/interaction/LoadingSpinner.tsx +0 -10
  212. package/src/interaction/NoData.tsx +0 -5
  213. package/src/interaction/index.tsx +0 -2
  214. package/src/interface/Board.ts +0 -55
  215. package/src/interface/Card.ts +0 -66
  216. package/src/interface/Interaction.ts +0 -4
  217. package/src/interface/Menu.ts +0 -5
  218. package/src/interface/Modal.ts +0 -19
  219. package/src/interface/Widget.ts +0 -4
  220. package/src/layout/dashboard/Header.tsx +0 -56
  221. package/src/layout/dashboard/index.tsx +0 -38
  222. package/src/main.tsx +0 -10
  223. package/src/menu/SideMenu.tsx +0 -104
  224. package/src/menu/index.tsx +0 -1
  225. package/src/modal/AlertModal.tsx +0 -24
  226. package/src/modal/ControllerModal.tsx +0 -17
  227. package/src/modal/Modal.tsx +0 -66
  228. package/src/modal/TestModal.tsx +0 -19
  229. package/src/navigation/Navigation.tsx +0 -37
  230. package/src/shelf/Shelf.tsx +0 -3
  231. package/src/store/index.ts +0 -66
  232. package/src/text/LineBreaks.tsx +0 -13
  233. package/src/util/classNames.ts +0 -4
  234. package/src/util/colors.ts +0 -11
  235. package/src/util/display.ts +0 -31
  236. package/src/util/displayResponsive.ts +0 -17
  237. package/src/util/pattern.ts +0 -18
  238. package/src/util/position.ts +0 -43
  239. package/src/util/shape.ts +0 -3
  240. package/src/vite-env.d.ts +0 -1
  241. package/tsconfig.build.json +0 -42
  242. package/tsconfig.json +0 -28
  243. package/tsconfig.node.json +0 -10
  244. package/vite.config.ts +0 -10
  245. /package/{public → asset}/fonts/Kostar.ttf +0 -0
  246. /package/{public → asset}/fonts/Megrim.ttf +0 -0
  247. /package/{public → asset}/fonts/NicoMoji.ttf +0 -0
  248. /package/{public → asset}/fonts/Pretendard-Medium.otf +0 -0
  249. /package/{src/asset → asset}/json/credit-lottie.json +0 -0
  250. /package/{src/asset → asset}/json/loading-lottie.json +0 -0
  251. /package/{src/asset → asset}/json/test.svg +0 -0
  252. /package/{src/globals.css → globals.css} +0 -0
@@ -1,43 +0,0 @@
1
- export const fixed = {
2
- tl: (top: number | string, left: number | string) => `fixed top-${top} left-${left} z-50 `,
3
- br: (bottom: number | string, right: number | string) =>
4
- `fixed bottom-${bottom} right-${right} z-50 `,
5
- };
6
-
7
- export const absolute = {
8
- tl: (top?: number | string, left?: number | string) => {
9
- const topClass = () => {
10
- if (typeof top === "number" && top < 0) return `-top-${Math.abs(top)}`;
11
- return `top-${top}`;
12
- };
13
- const leftClass = () => {
14
- if (typeof left === "number" && left < 0) return `-left-${Math.abs(left)}`;
15
- return `left-${left}`;
16
- };
17
- return `absolute ${topClass()} ${leftClass()} `;
18
- },
19
- tr: (top?: number | string, right?: number | string) => {
20
- const topClass = () => {
21
- if (typeof top === "number" && top < 0) return `-top-${Math.abs(top)} `;
22
- return `top-${top}`;
23
- };
24
- const rightClass = () => {
25
- if (typeof right === "number" && right < 0) return `-right-${Math.abs(right)} `;
26
- return `right-${right}`;
27
- };
28
- return `absolute ${topClass()} ${rightClass()} `;
29
- },
30
- br: (bottom = 0, right = 0) => `absolute bottom-${bottom} right-${right} `,
31
- bl: (bottom = 0, left = 0) => `absolute bottom-${bottom} left-${left} `,
32
- full: {
33
- tl: (top?: number | string, left?: number | string) => {
34
- if (!(typeof top === "number") || !(typeof left === "number"))
35
- return `absolute top-${top} left-${left} w-full `;
36
- const topClass = top >= 0 ? `top-${top}` : `-top-${Math.abs(top)}`;
37
- const leftClass = left >= 0 ? `left-${left}` : `-left-${Math.abs(left)}`;
38
- return `absolute w-full ${topClass} ${leftClass} `;
39
- },
40
- bl: (bottom?: number | string, left?: number | string) =>
41
- `absolute bottom-${bottom ?? 0} left-${left ?? 0} w-full `,
42
- },
43
- };
package/src/util/shape.ts DELETED
@@ -1,3 +0,0 @@
1
- export const circle = (radius: number) => {
2
- return `rounded-full w-${radius} h-${radius} overflow-hidden `;
3
- };
package/src/vite-env.d.ts DELETED
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />
@@ -1,42 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
- "module": "ESNext",
7
- "skipLibCheck": true,
8
-
9
- /* Bundler mode */
10
- "moduleResolution": "bundler",
11
- "resolveJsonModule": true,
12
- "isolatedModules": true,
13
- "declaration": true,
14
- "noEmit": true,
15
- "jsx": "react-jsx",
16
-
17
- /* Linting */
18
- "strict": true,
19
- "noUnusedLocals": false,
20
- "noUnusedParameters": true,
21
- "noFallthroughCasesInSwitch": true,
22
-
23
- /* Build */
24
- "outDir": "./dist"
25
- },
26
- "include": ["src", "./eslintrc.json"],
27
- "exclude": [
28
- "src/app/**/*",
29
- "src/_components/**/*",
30
- "__test__/**/*",
31
- "build/**/*",
32
- "src/App.tsx",
33
- "src/vite-env.d.ts",
34
- "src/main.tsx",
35
- "src/**/*.test.ts",
36
- "src/**/*.test.tsx",
37
- "src/setupPackage.js",
38
- "src/setupTests.ts",
39
- "src/reportWebVitals.ts"
40
- ],
41
- "references": [{ "path": "./tsconfig.node.json" }]
42
- }
package/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
- "module": "ESNext",
7
- "skipLibCheck": true,
8
-
9
- /* Bundler mode */
10
- "moduleResolution": "bundler",
11
- "allowImportingTsExtensions": true,
12
- "resolveJsonModule": true,
13
- "isolatedModules": true,
14
- "noEmit": true,
15
- "jsx": "react-jsx",
16
-
17
- /* Linting */
18
- "strict": true,
19
- "noUnusedLocals": false,
20
- "noUnusedParameters": true,
21
- "noFallthroughCasesInSwitch": true,
22
-
23
- /* Build */
24
- "outDir": "./build",
25
- },
26
- "include": ["src", "./eslintrc.json", "tailwind.config.ts", "setupPackage.js"],
27
- "references": [{ "path": "./tsconfig.node.json" }]
28
- }
@@ -1,10 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "skipLibCheck": true,
5
- "module": "ESNext",
6
- "moduleResolution": "bundler",
7
- "allowSyntheticDefaultImports": true
8
- },
9
- "include": ["vite.config.ts"]
10
- }
package/vite.config.ts DELETED
@@ -1,10 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import react from "@vitejs/plugin-react-swc";
3
-
4
- // https://vitejs.dev/config/
5
- export default defineConfig({
6
- plugins: [react()],
7
- build: {
8
- outDir: "build",
9
- },
10
- });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes