@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.
- package/README.md +0 -20
- package/{src/board/index.tsx → board/index.d.ts} +3 -4
- package/board/index.js +3 -0
- package/board/template/CanvasBoard.d.ts +2 -0
- package/board/template/CanvasBoard.js +10 -0
- package/board/template/ManageBoard.d.ts +4 -0
- package/board/template/ManageBoard.js +27 -0
- package/board/widget/Board.d.ts +2 -0
- package/board/widget/Board.js +16 -0
- package/board/widget/DataField.d.ts +6 -0
- package/board/widget/DataField.js +24 -0
- package/board/widget/Header.d.ts +2 -0
- package/board/widget/Header.js +22 -0
- package/board/widget/Tab.d.ts +4 -0
- package/board/widget/Tab.js +17 -0
- package/board/widget/Tags.d.ts +3 -0
- package/board/widget/Tags.js +30 -0
- package/{src/card/index.tsx → card/index.d.ts} +6 -6
- package/card/index.js +6 -0
- package/card/template/ChartCard.d.ts +2 -0
- package/card/template/ChartCard.js +6 -0
- package/card/template/InfoCard.d.ts +2 -0
- package/card/template/InfoCard.js +6 -0
- package/card/template/ProfileCard.d.ts +14 -0
- package/card/template/ProfileCard.js +8 -0
- package/card/template/RowCard.d.ts +5 -0
- package/card/template/RowCard.js +26 -0
- package/card/template/TableCard.d.ts +2 -0
- package/card/template/TableCard.js +12 -0
- package/card/template/TrumpCard.d.ts +2 -0
- package/card/template/TrumpCard.js +19 -0
- package/card/widget/Card.d.ts +2 -0
- package/card/widget/Card.js +45 -0
- package/deck/Deck.d.ts +16 -0
- package/deck/Deck.js +15 -0
- package/{src/deck/index.tsx → deck/index.d.ts} +1 -1
- package/deck/index.js +1 -0
- package/{src/index.tsx → index.d.ts} +11 -11
- package/index.js +11 -0
- package/interaction/index.d.ts +4 -0
- package/interaction/index.js +4 -0
- package/interaction/template/Exception.d.ts +2 -0
- package/interaction/template/Exception.js +9 -0
- package/interaction/widget/LoadingJumper.d.ts +1 -0
- package/interaction/widget/LoadingJumper.js +4 -0
- package/interaction/widget/LoadingSpinner.d.ts +1 -0
- package/interaction/widget/LoadingSpinner.js +5 -0
- package/interaction/widget/NoData.d.ts +1 -0
- package/interaction/widget/NoData.js +4 -0
- package/interface/Board.d.ts +57 -0
- package/interface/Board.js +1 -0
- package/interface/Card.d.ts +76 -0
- package/interface/Card.js +1 -0
- package/{src/interface/HTMLElement.ts → interface/HTMLElement.d.ts} +23 -27
- package/interface/HTMLElement.js +1 -0
- package/interface/Interaction.d.ts +5 -0
- package/interface/Interaction.js +1 -0
- package/interface/Menu.d.ts +6 -0
- package/interface/Menu.js +1 -0
- package/interface/Modal.d.ts +18 -0
- package/interface/Modal.js +1 -0
- package/{src/interface/Property.ts → interface/Property.d.ts} +40 -46
- package/interface/Property.js +14 -0
- package/interface/Widget.d.ts +4 -0
- package/interface/Widget.js +1 -0
- package/{src/interface/index.ts → interface/index.d.ts} +3 -3
- package/interface/index.js +3 -0
- package/layout/dashboard/Header.d.ts +5 -0
- package/layout/dashboard/Header.js +19 -0
- package/layout/dashboard/index.d.ts +7 -0
- package/layout/dashboard/index.js +10 -0
- package/{src/layout/index.tsx → layout/index.d.ts} +1 -1
- package/layout/index.js +1 -0
- package/menu/index.d.ts +1 -0
- package/menu/index.js +1 -0
- package/menu/template/SideMenu.d.ts +2 -0
- package/menu/template/SideMenu.js +20 -0
- package/menu/widget/HTMLElement.d.ts +8 -0
- package/menu/widget/HTMLElement.js +9 -0
- package/modal/AlertModal.d.ts +2 -0
- package/modal/AlertModal.js +8 -0
- package/modal/ControllerModal.d.ts +6 -0
- package/modal/ControllerModal.js +6 -0
- package/modal/Modal.d.ts +2 -0
- package/modal/Modal.js +31 -0
- package/modal/TestModal.d.ts +8 -0
- package/modal/TestModal.js +6 -0
- package/{src/modal/index.tsx → modal/index.d.ts} +3 -3
- package/modal/index.js +3 -0
- package/navigation/Navigation.d.ts +5 -0
- package/navigation/Navigation.js +24 -0
- package/{src/navigation/index.tsx → navigation/index.d.ts} +1 -1
- package/navigation/index.js +1 -0
- package/package.json +28 -49
- package/shelf/Shelf.d.ts +4 -0
- package/shelf/Shelf.js +4 -0
- package/{src/shelf/index.tsx → shelf/index.d.ts} +1 -1
- package/shelf/index.js +1 -0
- package/store/index.d.ts +16 -0
- package/store/index.js +39 -0
- package/text/LineBreaks.d.ts +4 -0
- package/text/LineBreaks.js +5 -0
- package/{src/text/index.tsx → text/index.d.ts} +1 -1
- package/text/index.js +1 -0
- package/util/classNames.d.ts +1 -0
- package/util/classNames.js +4 -0
- package/util/colors.d.ts +10 -0
- package/util/colors.js +10 -0
- package/util/display.d.ts +25 -0
- package/util/display.js +25 -0
- package/util/displayResponsive.d.ts +3 -0
- package/util/displayResponsive.js +15 -0
- package/{src/util/index.ts → util/index.d.ts} +7 -7
- package/util/index.js +7 -0
- package/util/pattern.d.ts +7 -0
- package/util/pattern.js +15 -0
- package/util/position.d.ts +14 -0
- package/util/position.js +44 -0
- package/util/shape.d.ts +1 -0
- package/util/shape.js +3 -0
- package/version.txt +1 -0
- package/.eslintrc.cjs +0 -17
- package/Dockerfile +0 -16
- package/LICENCE +0 -19
- package/docs/README.md +0 -47
- package/index.html +0 -13
- package/postcss.config.js +0 -6
- package/public/images/daeng.jpg +0 -0
- package/public/images/faker.jpg +0 -0
- package/public/images/haerin.png +0 -0
- package/public/images/haewon.png +0 -0
- package/public/images/hani.png +0 -0
- package/public/images/home/admin.png +0 -0
- package/public/images/home/dashboard.png +0 -0
- package/public/images/home/detection.png +0 -0
- package/public/images/home/homepage.png +0 -0
- package/public/images/home/olympiad.png +0 -0
- package/public/images/home/partner.png +0 -0
- package/public/images/home/report.png +0 -0
- package/public/images/home/space.png +0 -0
- package/public/images/home/sun.png +0 -0
- package/public/images/info.png +0 -0
- package/public/images/itc.png +0 -0
- package/public/images/jenkins.png +0 -0
- package/public/images/minji.png +0 -0
- package/public/images/seulgi.png +0 -0
- package/public/images/test-full.png +0 -0
- package/public/images/test-image.png +0 -0
- package/public/images/test-paper.png +0 -0
- package/public/images/tosel-blue-lab-spiral.png +0 -0
- package/public/images/tosel.png +0 -0
- package/public/images/yujin.png +0 -0
- package/public/videos/loading.gif +0 -0
- package/public/vite.svg +0 -1
- package/setupPackage.js +0 -78
- package/src/App.tsx +0 -32
- package/src/_components/asset/interface.ts +0 -2
- package/src/_components/asset/links.ts +0 -17
- package/src/_components/asset/mock/academies.ts +0 -52
- package/src/_components/asset/mock/chartData.ts +0 -104
- package/src/_components/asset/mock/exams.ts +0 -42
- package/src/_components/asset/mock/index.ts +0 -2
- package/src/_components/asset/mock/people.ts +0 -291
- package/src/_components/asset/mock/test.ts +0 -67
- package/src/_components/asset/navigation.ts +0 -17
- package/src/_components/asset/people.ts +0 -226
- package/src/_components/asset/planets.ts +0 -49
- package/src/_components/controller/store.ts +0 -11
- package/src/_components/hook/useRoute.ts +0 -47
- package/src/_components/hook/useTyping.ts +0 -46
- package/src/_components/types/Level.ts +0 -1
- package/src/_components/view/Explore.tsx +0 -16
- package/src/_components/view/Home.tsx +0 -180
- package/src/_components/view/LottiePlayer.tsx +0 -17
- package/src/app/admin/exam/page.tsx +0 -36
- package/src/app/admin/grade/page.tsx +0 -5
- package/src/app/admin/layout.tsx +0 -56
- package/src/app/admin/news/page.tsx +0 -15
- package/src/app/admin/page.tsx +0 -42
- package/src/app/admin/rnd/monthly-test/page.tsx +0 -5
- package/src/app/admin/rnd/page.tsx +0 -17
- package/src/app/admin/statistics/page.tsx +0 -5
- package/src/app/admin/user/page.tsx +0 -147
- package/src/app/agency/exam/page.tsx +0 -5
- package/src/app/agency/group/page.tsx +0 -5
- package/src/app/agency/layout.tsx +0 -55
- package/src/app/agency/page.tsx +0 -68
- package/src/app/agency/sales/page.tsx +0 -5
- package/src/app/convention/page.tsx +0 -58
- package/src/app/page.tsx +0 -4
- package/src/asset/fonts/Kostar.ttf +0 -0
- package/src/asset/fonts/Megrim.ttf +0 -0
- package/src/asset/fonts/NicoMoji.ttf +0 -0
- package/src/asset/fonts/Pretendard-Medium.otf +0 -0
- package/src/board/template/CanvasBoard.tsx +0 -17
- package/src/board/template/ManageBoard.tsx +0 -56
- package/src/board/widget/Board.tsx +0 -28
- package/src/board/widget/DataField.tsx +0 -70
- package/src/board/widget/Header.tsx +0 -63
- package/src/board/widget/Tab.tsx +0 -36
- package/src/board/widget/Tags.tsx +0 -81
- package/src/card/template/ChartCard.tsx +0 -42
- package/src/card/template/InfoCard.tsx +0 -22
- package/src/card/template/ProfileCard.tsx +0 -36
- package/src/card/template/RowCard.tsx +0 -91
- package/src/card/template/TableCard.tsx +0 -41
- package/src/card/template/TrumpCard.tsx +0 -46
- package/src/card/widget/Card.tsx +0 -53
- package/src/deck/Deck.tsx +0 -46
- package/src/interaction/Exception.tsx +0 -10
- package/src/interaction/LoadingSpinner.tsx +0 -10
- package/src/interaction/NoData.tsx +0 -5
- package/src/interaction/index.tsx +0 -2
- package/src/interface/Board.ts +0 -55
- package/src/interface/Card.ts +0 -66
- package/src/interface/Interaction.ts +0 -4
- package/src/interface/Menu.ts +0 -5
- package/src/interface/Modal.ts +0 -19
- package/src/interface/Widget.ts +0 -4
- package/src/layout/dashboard/Header.tsx +0 -56
- package/src/layout/dashboard/index.tsx +0 -38
- package/src/main.tsx +0 -10
- package/src/menu/SideMenu.tsx +0 -104
- package/src/menu/index.tsx +0 -1
- package/src/modal/AlertModal.tsx +0 -24
- package/src/modal/ControllerModal.tsx +0 -17
- package/src/modal/Modal.tsx +0 -66
- package/src/modal/TestModal.tsx +0 -19
- package/src/navigation/Navigation.tsx +0 -37
- package/src/shelf/Shelf.tsx +0 -3
- package/src/store/index.ts +0 -66
- package/src/text/LineBreaks.tsx +0 -13
- package/src/util/classNames.ts +0 -4
- package/src/util/colors.ts +0 -11
- package/src/util/display.ts +0 -31
- package/src/util/displayResponsive.ts +0 -17
- package/src/util/pattern.ts +0 -18
- package/src/util/position.ts +0 -43
- package/src/util/shape.ts +0 -3
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.build.json +0 -42
- package/tsconfig.json +0 -28
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -10
- /package/{public → asset}/fonts/Kostar.ttf +0 -0
- /package/{public → asset}/fonts/Megrim.ttf +0 -0
- /package/{public → asset}/fonts/NicoMoji.ttf +0 -0
- /package/{public → asset}/fonts/Pretendard-Medium.otf +0 -0
- /package/{src/asset → asset}/json/credit-lottie.json +0 -0
- /package/{src/asset → asset}/json/loading-lottie.json +0 -0
- /package/{src/asset → asset}/json/test.svg +0 -0
- /package/{src/globals.css → globals.css} +0 -0
package/src/util/position.ts
DELETED
|
@@ -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
package/src/vite-env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
package/tsconfig.build.json
DELETED
|
@@ -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
|
-
}
|
package/tsconfig.node.json
DELETED
package/vite.config.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|