@euler-edu/react 0.0.0-stage → 7.0.1-beta0
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 +18 -2
- package/lib/assets/fonts/BitgoeulGwangju-Bold.woff +0 -0
- package/lib/assets/fonts/BitgoeulGwangju-Light.woff +0 -0
- package/lib/assets/fonts/BitgoeulGwangju-Medium.woff +0 -0
- package/lib/assets/fonts/D2Coding-1.3.2-Bold.woff +0 -0
- package/lib/assets/fonts/D2Coding-1.3.2-Bold.woff2 +0 -0
- package/lib/assets/fonts/D2Coding-1.3.2-Regular.woff +0 -0
- package/lib/assets/fonts/D2Coding-1.3.2-Regular.woff2 +0 -0
- package/lib/assets/fonts/FiraCode-6.2-Bold.woff +0 -0
- package/lib/assets/fonts/FiraCode-6.2-Bold.woff2 +0 -0
- package/lib/assets/fonts/FiraCode-6.2-Light.woff +0 -0
- package/lib/assets/fonts/FiraCode-6.2-Light.woff2 +0 -0
- package/lib/assets/fonts/FiraCode-6.2-Medium.woff +0 -0
- package/lib/assets/fonts/FiraCode-6.2-Medium.woff2 +0 -0
- package/lib/assets/fonts/FiraCode-6.2-Regular.woff +0 -0
- package/lib/assets/fonts/FiraCode-6.2-Regular.woff2 +0 -0
- package/lib/assets/fonts/FiraCode-6.2-SemiBold.woff +0 -0
- package/lib/assets/fonts/FiraCode-6.2-SemiBold.woff2 +0 -0
- package/lib/assets/fonts/Hack-3.003-Bold.woff +0 -0
- package/lib/assets/fonts/Hack-3.003-Bold.woff2 +0 -0
- package/lib/assets/fonts/Hack-3.003-Regular.woff +0 -0
- package/lib/assets/fonts/Hack-3.003-Regular.woff2 +0 -0
- package/lib/assets/fonts/IBMPlexMono-Bold.woff +0 -0
- package/lib/assets/fonts/IBMPlexMono-Bold.woff2 +0 -0
- package/lib/assets/fonts/IBMPlexMono-Regular.woff +0 -0
- package/lib/assets/fonts/IBMPlexMono-Regular.woff2 +0 -0
- package/lib/assets/fonts/Inconsolata-3.000-Bold.woff +0 -0
- package/lib/assets/fonts/Inconsolata-3.000-Bold.woff2 +0 -0
- package/lib/assets/fonts/Inconsolata-3.000-Regular.woff +0 -0
- package/lib/assets/fonts/Inconsolata-3.000-Regular.woff2 +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-Bold.woff +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-Bold.woff2 +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-ExtraBold.woff +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-ExtraBold.woff2 +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-ExtraLight.woff +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-ExtraLight.woff2 +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-Light.woff +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-Light.woff2 +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-Medium.woff +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-Medium.woff2 +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-Regular.woff +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-Regular.woff2 +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-SemiBold.woff +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-SemiBold.woff2 +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-Thin.woff +0 -0
- package/lib/assets/fonts/JetBrainsMono-2.304-Thin.woff2 +0 -0
- package/lib/assets/fonts/MonaspaceArgon-1.400-Bold.woff +0 -0
- package/lib/assets/fonts/MonaspaceArgon-1.400-Bold.woff2 +0 -0
- package/lib/assets/fonts/MonaspaceArgon-1.400-Regular.woff +0 -0
- package/lib/assets/fonts/MonaspaceArgon-1.400-Regular.woff2 +0 -0
- package/lib/assets/fonts/MonaspaceKrypton-1.400-Bold.woff +0 -0
- package/lib/assets/fonts/MonaspaceKrypton-1.400-Bold.woff2 +0 -0
- package/lib/assets/fonts/MonaspaceKrypton-1.400-Regular.woff +0 -0
- package/lib/assets/fonts/MonaspaceKrypton-1.400-Regular.woff2 +0 -0
- package/lib/assets/fonts/MonaspaceNeon-1.400-Bold.woff +0 -0
- package/lib/assets/fonts/MonaspaceNeon-1.400-Bold.woff2 +0 -0
- package/lib/assets/fonts/MonaspaceNeon-1.400-Regular.woff +0 -0
- package/lib/assets/fonts/MonaspaceNeon-1.400-Regular.woff2 +0 -0
- package/lib/assets/fonts/MonaspaceXenon-1.400-Bold.woff +0 -0
- package/lib/assets/fonts/MonaspaceXenon-1.400-Bold.woff2 +0 -0
- package/lib/assets/fonts/MonaspaceXenon-1.400-Regular.woff +0 -0
- package/lib/assets/fonts/MonaspaceXenon-1.400-Regular.woff2 +0 -0
- package/lib/assets/fonts/Pretendard-Black.woff +0 -0
- package/lib/assets/fonts/Pretendard-Black.woff2 +0 -0
- package/lib/assets/fonts/Pretendard-Bold.woff +0 -0
- package/lib/assets/fonts/Pretendard-Bold.woff2 +0 -0
- package/lib/assets/fonts/Pretendard-ExtraBold.woff +0 -0
- package/lib/assets/fonts/Pretendard-ExtraBold.woff2 +0 -0
- package/lib/assets/fonts/Pretendard-ExtraLight.woff +0 -0
- package/lib/assets/fonts/Pretendard-ExtraLight.woff2 +0 -0
- package/lib/assets/fonts/Pretendard-Light.woff +0 -0
- package/lib/assets/fonts/Pretendard-Light.woff2 +0 -0
- package/lib/assets/fonts/Pretendard-Medium.woff +0 -0
- package/lib/assets/fonts/Pretendard-Medium.woff2 +0 -0
- package/lib/assets/fonts/Pretendard-Regular.woff +0 -0
- package/lib/assets/fonts/Pretendard-Regular.woff2 +0 -0
- package/lib/assets/fonts/Pretendard-SemiBold.woff +0 -0
- package/lib/assets/fonts/Pretendard-SemiBold.woff2 +0 -0
- package/lib/assets/fonts/Pretendard-Thin.woff +0 -0
- package/lib/assets/fonts/Pretendard-Thin.woff2 +0 -0
- package/lib/assets/fonts/RobotoMono-3.001-Bold.woff +0 -0
- package/lib/assets/fonts/RobotoMono-3.001-Bold.woff2 +0 -0
- package/lib/assets/fonts/RobotoMono-3.001-Regular.woff +0 -0
- package/lib/assets/fonts/RobotoMono-3.001-Regular.woff2 +0 -0
- package/lib/assets/fonts/SourceCodePro-Bold.woff +0 -0
- package/lib/assets/fonts/SourceCodePro-Bold.woff2 +0 -0
- package/lib/assets/fonts/SourceCodePro-Regular.woff +0 -0
- package/lib/assets/fonts/SourceCodePro-Regular.woff2 +0 -0
- package/lib/assets/fonts/UbuntuMono-0.83-Bold.woff +0 -0
- package/lib/assets/fonts/UbuntuMono-0.83-Bold.woff2 +0 -0
- package/lib/assets/fonts/UbuntuMono-0.83-Regular.woff +0 -0
- package/lib/assets/fonts/UbuntuMono-0.83-Regular.woff2 +0 -0
- package/lib/assets/icons/fallback.svg +2 -0
- package/lib/assets/icons/hero/academic-cap-outline.svg +3 -0
- package/lib/assets/icons/hero/adjustments-horizontal-outline.svg +3 -0
- package/lib/assets/icons/hero/arrow-down-tray-outline.svg +3 -0
- package/lib/assets/icons/hero/arrow-path-outline.svg +3 -0
- package/lib/assets/icons/hero/arrow-right-end-on-rectangle-outline.svg +3 -0
- package/lib/assets/icons/hero/arrow-right-outline.svg +3 -0
- package/lib/assets/icons/hero/arrow-right-start-on-rectangle-outline.svg +3 -0
- package/lib/assets/icons/hero/arrow-top-right-on-square-outline.svg +3 -0
- package/lib/assets/icons/hero/arrow-up-circle-outline.svg +3 -0
- package/lib/assets/icons/hero/arrow-up-right-mini.svg +3 -0
- package/lib/assets/icons/hero/arrow-up-right-outline.svg +3 -0
- package/lib/assets/icons/hero/arrow-uturn-left-outline.svg +3 -0
- package/lib/assets/icons/hero/arrows-pointing-in-outline.svg +3 -0
- package/lib/assets/icons/hero/arrows-pointing-out-outline.svg +3 -0
- package/lib/assets/icons/hero/arrows-right-left-outline.svg +3 -0
- package/lib/assets/icons/hero/arrows-up-down-outline.svg +3 -0
- package/lib/assets/icons/hero/at-symbol-outline.svg +3 -0
- package/lib/assets/icons/hero/bars-2-mini.svg +3 -0
- package/lib/assets/icons/hero/bars-2-outline.svg +3 -0
- package/lib/assets/icons/hero/beaker-outline.svg +3 -0
- package/lib/assets/icons/hero/bell-alert-mini.svg +4 -0
- package/lib/assets/icons/hero/bell-alert-outline.svg +3 -0
- package/lib/assets/icons/hero/bell-mini.svg +3 -0
- package/lib/assets/icons/hero/bell-outline.svg +3 -0
- package/lib/assets/icons/hero/bell-slash-mini.svg +3 -0
- package/lib/assets/icons/hero/bell-slash-outline.svg +3 -0
- package/lib/assets/icons/hero/bolt-outline.svg +3 -0
- package/lib/assets/icons/hero/book-open-mini.svg +3 -0
- package/lib/assets/icons/hero/book-open-outline.svg +3 -0
- package/lib/assets/icons/hero/bookmark-mini.svg +3 -0
- package/lib/assets/icons/hero/bookmark-outline.svg +3 -0
- package/lib/assets/icons/hero/bookmark-slash-outline.svg +3 -0
- package/lib/assets/icons/hero/bookmark-solid.svg +3 -0
- package/lib/assets/icons/hero/calendar-days-outline.svg +3 -0
- package/lib/assets/icons/hero/chart-bar-outline.svg +3 -0
- package/lib/assets/icons/hero/chart-pie-outline.svg +4 -0
- package/lib/assets/icons/hero/chat-bubble-bottom-center-text-outline.svg +3 -0
- package/lib/assets/icons/hero/check-circle-mini.svg +3 -0
- package/lib/assets/icons/hero/check-circle-outline.svg +3 -0
- package/lib/assets/icons/hero/check-mini.svg +3 -0
- package/lib/assets/icons/hero/check-outline.svg +3 -0
- package/lib/assets/icons/hero/chevron-down-outline.svg +3 -0
- package/lib/assets/icons/hero/chevron-left-outline.svg +3 -0
- package/lib/assets/icons/hero/chevron-right-outline.svg +3 -0
- package/lib/assets/icons/hero/chevron-up-down-outline.svg +3 -0
- package/lib/assets/icons/hero/chevron-up-outline.svg +3 -0
- package/lib/assets/icons/hero/circle-mini.svg +3 -0
- package/lib/assets/icons/hero/clock-mini.svg +3 -0
- package/lib/assets/icons/hero/clock-outline.svg +3 -0
- package/lib/assets/icons/hero/code-bracket-outline.svg +3 -0
- package/lib/assets/icons/hero/cog-6-tooth-mini.svg +3 -0
- package/lib/assets/icons/hero/cog-6-tooth-outline.svg +4 -0
- package/lib/assets/icons/hero/computer-desktop-outline.svg +3 -0
- package/lib/assets/icons/hero/cpu-chip-mini.svg +4 -0
- package/lib/assets/icons/hero/cpu-chip-outline.svg +3 -0
- package/lib/assets/icons/hero/cube-outline.svg +3 -0
- package/lib/assets/icons/hero/document-outline.svg +3 -0
- package/lib/assets/icons/hero/ellipsis-horizontal-mini.svg +3 -0
- package/lib/assets/icons/hero/ellipsis-horizontal-outline.svg +3 -0
- package/lib/assets/icons/hero/envelope-open-outline.svg +3 -0
- package/lib/assets/icons/hero/envelope-outline.svg +3 -0
- package/lib/assets/icons/hero/exclamation-circle-mini.svg +3 -0
- package/lib/assets/icons/hero/exclamation-circle-outline.svg +3 -0
- package/lib/assets/icons/hero/exclamation-triangle-outline.svg +3 -0
- package/lib/assets/icons/hero/eye-outline.svg +4 -0
- package/lib/assets/icons/hero/eye-slash-outline.svg +3 -0
- package/lib/assets/icons/hero/face-frown-mini.svg +3 -0
- package/lib/assets/icons/hero/face-frown-outline.svg +3 -0
- package/lib/assets/icons/hero/face-smile-outline.svg +3 -0
- package/lib/assets/icons/hero/fire-mini.svg +3 -0
- package/lib/assets/icons/hero/fire-outline.svg +4 -0
- package/lib/assets/icons/hero/flag-mini.svg +3 -0
- package/lib/assets/icons/hero/flag-outline.svg +3 -0
- package/lib/assets/icons/hero/folder-mini.svg +3 -0
- package/lib/assets/icons/hero/folder-open-outline.svg +3 -0
- package/lib/assets/icons/hero/folder-outline.svg +3 -0
- package/lib/assets/icons/hero/funnel-outline.svg +3 -0
- package/lib/assets/icons/hero/globe-alt-outline.svg +3 -0
- package/lib/assets/icons/hero/hashtag-outline.svg +3 -0
- package/lib/assets/icons/hero/heart-outline.svg +3 -0
- package/lib/assets/icons/hero/home-outline.svg +3 -0
- package/lib/assets/icons/hero/information-circle-outline.svg +3 -0
- package/lib/assets/icons/hero/key-outline.svg +3 -0
- package/lib/assets/icons/hero/light-bulb-outline.svg +3 -0
- package/lib/assets/icons/hero/link-outline.svg +3 -0
- package/lib/assets/icons/hero/link-slash-outline.svg +3 -0
- package/lib/assets/icons/hero/lock-closed-outline.svg +3 -0
- package/lib/assets/icons/hero/lock-open-outline.svg +3 -0
- package/lib/assets/icons/hero/magnifying-glass-mini.svg +3 -0
- package/lib/assets/icons/hero/magnifying-glass-outline.svg +3 -0
- package/lib/assets/icons/hero/map-pin-outline.svg +4 -0
- package/lib/assets/icons/hero/megaphone-mini.svg +3 -0
- package/lib/assets/icons/hero/megaphone-outline.svg +3 -0
- package/lib/assets/icons/hero/minus-outline.svg +3 -0
- package/lib/assets/icons/hero/moon-mini.svg +3 -0
- package/lib/assets/icons/hero/moon-outline.svg +3 -0
- package/lib/assets/icons/hero/no-symbol-outline.svg +3 -0
- package/lib/assets/icons/hero/paint-brush-outline.svg +3 -0
- package/lib/assets/icons/hero/plus-outline.svg +3 -0
- package/lib/assets/icons/hero/question-mark-circle-mini.svg +3 -0
- package/lib/assets/icons/hero/question-mark-circle-outline.svg +4 -0
- package/lib/assets/icons/hero/share-outline.svg +3 -0
- package/lib/assets/icons/hero/slash-outline.svg +3 -0
- package/lib/assets/icons/hero/sparkles-mini.svg +3 -0
- package/lib/assets/icons/hero/sparkles-outline.svg +3 -0
- package/lib/assets/icons/hero/spinner-outline.svg +1 -0
- package/lib/assets/icons/hero/square-2-stack-outline.svg +3 -0
- package/lib/assets/icons/hero/star-outline.svg +3 -0
- package/lib/assets/icons/hero/sun-mini.svg +3 -0
- package/lib/assets/icons/hero/sun-outline.svg +3 -0
- package/lib/assets/icons/hero/tag-outline.svg +4 -0
- package/lib/assets/icons/hero/trash-outline.svg +3 -0
- package/lib/assets/icons/hero/trophy-outline.svg +3 -0
- package/lib/assets/icons/hero/user-circle-outline.svg +3 -0
- package/lib/assets/icons/hero/user-outline.svg +3 -0
- package/lib/assets/icons/hero/users-outline.svg +3 -0
- package/lib/assets/icons/hero/x-circle-mini.svg +3 -0
- package/lib/assets/icons/hero/x-circle-outline.svg +3 -0
- package/lib/assets/icons/hero/x-mark-mini.svg +3 -0
- package/lib/assets/icons/hero/x-mark-outline.svg +3 -0
- package/lib/assets/icons/phosphor/arrow-circle-up-regular.svg +1 -0
- package/lib/assets/icons/phosphor/arrows-clockwise-regular.svg +1 -0
- package/lib/assets/icons/phosphor/arrows-in-line-vertical-regular.svg +1 -0
- package/lib/assets/icons/phosphor/arrows-out-line-vertical-regular.svg +1 -0
- package/lib/assets/icons/phosphor/backspace-bold.svg +1 -0
- package/lib/assets/icons/phosphor/backspace-regular.svg +1 -0
- package/lib/assets/icons/phosphor/binary-fill.svg +1 -0
- package/lib/assets/icons/phosphor/binary-regular.svg +1 -0
- package/lib/assets/icons/phosphor/binoculars-fill.svg +1 -0
- package/lib/assets/icons/phosphor/binoculars-regular.svg +1 -0
- package/lib/assets/icons/phosphor/book-open-text-regular.svg +1 -0
- package/lib/assets/icons/phosphor/bookmark-simple-fill.svg +1 -0
- package/lib/assets/icons/phosphor/bookmark-simple-regular.svg +1 -0
- package/lib/assets/icons/phosphor/boxing-glove-regular.svg +1 -0
- package/lib/assets/icons/phosphor/check-circle-fill.svg +1 -0
- package/lib/assets/icons/phosphor/check-circle-regular.svg +1 -0
- package/lib/assets/icons/phosphor/clock-bold.svg +1 -0
- package/lib/assets/icons/phosphor/clock-clockwise-regular.svg +1 -0
- package/lib/assets/icons/phosphor/clock-regular.svg +1 -0
- package/lib/assets/icons/phosphor/code-block-fill.svg +1 -0
- package/lib/assets/icons/phosphor/code-block-regular.svg +1 -0
- package/lib/assets/icons/phosphor/command-bold.svg +1 -0
- package/lib/assets/icons/phosphor/command-regular.svg +1 -0
- package/lib/assets/icons/phosphor/cookie-regular.svg +1 -0
- package/lib/assets/icons/phosphor/currency-circle-dollar-fill.svg +1 -0
- package/lib/assets/icons/phosphor/currency-circle-dollar-regular.svg +1 -0
- package/lib/assets/icons/phosphor/database-fill.svg +1 -0
- package/lib/assets/icons/phosphor/database-regular.svg +1 -0
- package/lib/assets/icons/phosphor/dice-five-fill.svg +1 -0
- package/lib/assets/icons/phosphor/dice-five-regular.svg +1 -0
- package/lib/assets/icons/phosphor/dot-outline-fill.svg +1 -0
- package/lib/assets/icons/phosphor/dots-six-vertical-bold.svg +1 -0
- package/lib/assets/icons/phosphor/dots-six-vertical-regular.svg +1 -0
- package/lib/assets/icons/phosphor/file-code-regular.svg +1 -0
- package/lib/assets/icons/phosphor/file-regular.svg +1 -0
- package/lib/assets/icons/phosphor/flag-fill.svg +1 -0
- package/lib/assets/icons/phosphor/flag-regular.svg +1 -0
- package/lib/assets/icons/phosphor/floppy-disk-regular.svg +1 -0
- package/lib/assets/icons/phosphor/folder-fill.svg +1 -0
- package/lib/assets/icons/phosphor/folder-regular.svg +1 -0
- package/lib/assets/icons/phosphor/graph-fill.svg +1 -0
- package/lib/assets/icons/phosphor/graph-regular.svg +1 -0
- package/lib/assets/icons/phosphor/info-regular.svg +1 -0
- package/lib/assets/icons/phosphor/key-return-bold.svg +1 -0
- package/lib/assets/icons/phosphor/key-return-regular.svg +1 -0
- package/lib/assets/icons/phosphor/keyboard-regular.svg +1 -0
- package/lib/assets/icons/phosphor/math-operations-fill.svg +1 -0
- package/lib/assets/icons/phosphor/math-operations-regular.svg +1 -0
- package/lib/assets/icons/phosphor/medal-bold.svg +1 -0
- package/lib/assets/icons/phosphor/medal-fill.svg +1 -0
- package/lib/assets/icons/phosphor/medal-regular.svg +1 -0
- package/lib/assets/icons/phosphor/memory-regular.svg +1 -0
- package/lib/assets/icons/phosphor/option-bold.svg +1 -0
- package/lib/assets/icons/phosphor/option-regular.svg +1 -0
- package/lib/assets/icons/phosphor/password-regular.svg +1 -0
- package/lib/assets/icons/phosphor/path-fill.svg +1 -0
- package/lib/assets/icons/phosphor/path-regular.svg +1 -0
- package/lib/assets/icons/phosphor/pause-regular.svg +1 -0
- package/lib/assets/icons/phosphor/pencil-simple-regular.svg +1 -0
- package/lib/assets/icons/phosphor/phone-regular.svg +1 -0
- package/lib/assets/icons/phosphor/plant-fill.svg +1 -0
- package/lib/assets/icons/phosphor/plant-regular.svg +1 -0
- package/lib/assets/icons/phosphor/play-regular.svg +1 -0
- package/lib/assets/icons/phosphor/polygon-fill.svg +1 -0
- package/lib/assets/icons/phosphor/polygon-regular.svg +1 -0
- package/lib/assets/icons/phosphor/pulse-bold.svg +1 -0
- package/lib/assets/icons/phosphor/pulse-regular.svg +1 -0
- package/lib/assets/icons/phosphor/ranking-bold.svg +1 -0
- package/lib/assets/icons/phosphor/ranking-fill.svg +1 -0
- package/lib/assets/icons/phosphor/ranking-regular.svg +1 -0
- package/lib/assets/icons/phosphor/repeat-fill.svg +1 -0
- package/lib/assets/icons/phosphor/repeat-regular.svg +1 -0
- package/lib/assets/icons/phosphor/shapes-fill.svg +1 -0
- package/lib/assets/icons/phosphor/shapes-regular.svg +1 -0
- package/lib/assets/icons/phosphor/smiley-sad-fill.svg +1 -0
- package/lib/assets/icons/phosphor/smiley-sad-regular.svg +1 -0
- package/lib/assets/icons/phosphor/sort-ascending-fill.svg +1 -0
- package/lib/assets/icons/phosphor/sort-ascending-regular.svg +1 -0
- package/lib/assets/icons/phosphor/sparkle-fill.svg +1 -0
- package/lib/assets/icons/phosphor/sparkle-regular.svg +1 -0
- package/lib/assets/icons/phosphor/strategy-fill.svg +1 -0
- package/lib/assets/icons/phosphor/strategy-regular.svg +1 -0
- package/lib/assets/icons/phosphor/sword-fill.svg +1 -0
- package/lib/assets/icons/phosphor/sword-regular.svg +1 -0
- package/lib/assets/icons/phosphor/text-aa-fill.svg +1 -0
- package/lib/assets/icons/phosphor/text-aa-regular.svg +1 -0
- package/lib/assets/icons/phosphor/timer-regular.svg +1 -0
- package/lib/assets/icons/phosphor/tree-fill.svg +1 -0
- package/lib/assets/icons/phosphor/tree-regular.svg +1 -0
- package/lib/assets/icons/phosphor/tree-structure-fill.svg +1 -0
- package/lib/assets/icons/phosphor/tree-structure-regular.svg +1 -0
- package/lib/assets/icons/phosphor/trophy-bold.svg +1 -0
- package/lib/assets/icons/phosphor/trophy-fill.svg +1 -0
- package/lib/assets/icons/phosphor/trophy-regular.svg +1 -0
- package/lib/assets/icons/phosphor/youtube-logo-fill.svg +1 -0
- package/lib/assets/icons/phosphor/youtube-logo-regular.svg +1 -0
- package/lib/assets/icons/primary/euler.svg +3 -0
- package/lib/assets/icons/social/facebook-outline.svg +10 -0
- package/lib/assets/icons/social/google-solid-color.svg +6 -0
- package/lib/assets/icons/social/instagram-outline.svg +10 -0
- package/lib/assets/icons/social/kakao-solid.svg +3 -0
- package/lib/assets/icons/social/naver-solid.svg +6 -0
- package/lib/assets/icons/social/naverband-outline.svg +10 -0
- package/lib/assets/icons/social/naverblog-outline.svg +10 -0
- package/lib/assets/icons/social/navercafe-outline.svg +6 -0
- package/lib/assets/icons/social/smartstore-outline.svg +10 -0
- package/lib/assets/icons/social/tiktok-outline.svg +6 -0
- package/lib/assets/icons/social/youtube-outline.svg +6 -0
- package/lib/assets/images/book-c++_bronze.png +0 -0
- package/lib/assets/images/book-c++_iron.png +0 -0
- package/lib/assets/images/book-c++_stone.png +0 -0
- package/lib/assets/images/book-python_stone.png +0 -0
- package/lib/assets/images/trophy-10-trials.png +0 -0
- package/lib/assets/images/trophy-100-pioneers.png +0 -0
- package/lib/assets/images/trophy-100-solves.png +0 -0
- package/lib/assets/images/trophy-1000-solves.png +0 -0
- package/lib/assets/images/trophy-20-pioneers.png +0 -0
- package/lib/assets/images/trophy-200-solves.png +0 -0
- package/lib/assets/images/trophy-2000-solves.png +0 -0
- package/lib/assets/images/trophy-50-pioneers.png +0 -0
- package/lib/assets/images/trophy-50-solves.png +0 -0
- package/lib/assets/images/trophy-500-solves.png +0 -0
- package/lib/assets/images/trophy-5000-solves.png +0 -0
- package/lib/assets/images/trophy-cola.png +0 -0
- package/lib/assets/images/trophy-first-pioneer.png +0 -0
- package/lib/assets/images/trophy-first-solve.png +0 -0
- package/lib/assets/images/trophy-steak.png +0 -0
- package/lib/assets/images/trophy-stone.png +0 -0
- package/lib/assets/images/trophy-weekly-coder.png +0 -0
- package/lib/assets/images/trophy-win-contest.png +0 -0
- package/lib/assets/images/trophy-win-yearly-rank.png +0 -0
- package/lib/assets/lotties/firecrackers.lottie +0 -0
- package/lib/components/atoms/avatars/Avatar.d.ts +11 -0
- package/lib/components/atoms/avatars/Avatar.js +12 -0
- package/lib/components/atoms/avatars/Avatar.js.map +1 -0
- package/lib/components/atoms/avatars/MultiAvatar.d.ts +12 -0
- package/lib/components/atoms/avatars/MultiAvatar.js +27 -0
- package/lib/components/atoms/avatars/MultiAvatar.js.map +1 -0
- package/lib/components/atoms/avatars/index.d.ts +2 -0
- package/lib/components/atoms/avatars/index.js +11 -0
- package/lib/components/atoms/avatars/index.js.map +1 -0
- package/lib/components/atoms/badges/ScoringResultBadge.d.ts +10 -0
- package/lib/components/atoms/badges/ScoringResultBadge.js +43 -0
- package/lib/components/atoms/badges/ScoringResultBadge.js.map +1 -0
- package/lib/components/atoms/badges/TextBadge.d.ts +14 -0
- package/lib/components/atoms/badges/TextBadge.js +21 -0
- package/lib/components/atoms/badges/TextBadge.js.map +1 -0
- package/lib/components/atoms/badges/index.d.ts +2 -0
- package/lib/components/atoms/badges/index.js +11 -0
- package/lib/components/atoms/badges/index.js.map +1 -0
- package/lib/components/atoms/buttons/AvatarButton.d.ts +13 -0
- package/lib/components/atoms/buttons/AvatarButton.js +18 -0
- package/lib/components/atoms/buttons/AvatarButton.js.map +1 -0
- package/lib/components/atoms/buttons/IconButton.d.ts +12 -0
- package/lib/components/atoms/buttons/IconButton.js +25 -0
- package/lib/components/atoms/buttons/IconButton.js.map +1 -0
- package/lib/components/atoms/buttons/MenuButton.d.ts +11 -0
- package/lib/components/atoms/buttons/MenuButton.js +20 -0
- package/lib/components/atoms/buttons/MenuButton.js.map +1 -0
- package/lib/components/atoms/buttons/SelectableTextButton.d.ts +12 -0
- package/lib/components/atoms/buttons/SelectableTextButton.js +17 -0
- package/lib/components/atoms/buttons/SelectableTextButton.js.map +1 -0
- package/lib/components/atoms/buttons/TextButton.d.ts +37 -0
- package/lib/components/atoms/buttons/TextButton.js +42 -0
- package/lib/components/atoms/buttons/TextButton.js.map +1 -0
- package/lib/components/atoms/buttons/TextChipButton.d.ts +17 -0
- package/lib/components/atoms/buttons/TextChipButton.js +49 -0
- package/lib/components/atoms/buttons/TextChipButton.js.map +1 -0
- package/lib/components/atoms/buttons/TextCoupleButton.d.ts +8 -0
- package/lib/components/atoms/buttons/TextCoupleButton.js +13 -0
- package/lib/components/atoms/buttons/TextCoupleButton.js.map +1 -0
- package/lib/components/atoms/buttons/TextGroupButton.d.ts +11 -0
- package/lib/components/atoms/buttons/TextGroupButton.js +19 -0
- package/lib/components/atoms/buttons/TextGroupButton.js.map +1 -0
- package/lib/components/atoms/buttons/UserChipButton.d.ts +15 -0
- package/lib/components/atoms/buttons/UserChipButton.js +52 -0
- package/lib/components/atoms/buttons/UserChipButton.js.map +1 -0
- package/lib/components/atoms/buttons/index.d.ts +9 -0
- package/lib/components/atoms/buttons/index.js +25 -0
- package/lib/components/atoms/buttons/index.js.map +1 -0
- package/lib/components/atoms/containers/ButtonContainer.d.ts +5 -0
- package/lib/components/atoms/containers/ButtonContainer.js +41 -0
- package/lib/components/atoms/containers/ButtonContainer.js.map +1 -0
- package/lib/components/atoms/containers/ClickableContainer.d.ts +16 -0
- package/lib/components/atoms/containers/ClickableContainer.js +33 -0
- package/lib/components/atoms/containers/ClickableContainer.js.map +1 -0
- package/lib/components/atoms/containers/Container.d.ts +5 -0
- package/lib/components/atoms/containers/Container.js +41 -0
- package/lib/components/atoms/containers/Container.js.map +1 -0
- package/lib/components/atoms/containers/ImageContainer.d.ts +14 -0
- package/lib/components/atoms/containers/ImageContainer.js +51 -0
- package/lib/components/atoms/containers/ImageContainer.js.map +1 -0
- package/lib/components/atoms/containers/InputableContainer.d.ts +5 -0
- package/lib/components/atoms/containers/InputableContainer.js +41 -0
- package/lib/components/atoms/containers/InputableContainer.js.map +1 -0
- package/lib/components/atoms/containers/LinkContainer.d.ts +9 -0
- package/lib/components/atoms/containers/LinkContainer.js +51 -0
- package/lib/components/atoms/containers/LinkContainer.js.map +1 -0
- package/lib/components/atoms/containers/LottieContainer.d.ts +22 -0
- package/lib/components/atoms/containers/LottieContainer.js +19 -0
- package/lib/components/atoms/containers/LottieContainer.js.map +1 -0
- package/lib/components/atoms/containers/index.d.ts +5 -0
- package/lib/components/atoms/containers/index.js +17 -0
- package/lib/components/atoms/containers/index.js.map +1 -0
- package/lib/components/atoms/dividers/Divider.d.ts +12 -0
- package/lib/components/atoms/dividers/Divider.js +7 -0
- package/lib/components/atoms/dividers/Divider.js.map +1 -0
- package/lib/components/atoms/dividers/index.d.ts +1 -0
- package/lib/components/atoms/dividers/index.js +9 -0
- package/lib/components/atoms/dividers/index.js.map +1 -0
- package/lib/components/atoms/editors/CodeEditor.d.ts +19 -0
- package/lib/components/atoms/editors/CodeEditor.js +217 -0
- package/lib/components/atoms/editors/CodeEditor.js.map +1 -0
- package/lib/components/atoms/editors/only_csr.d.ts +1 -0
- package/lib/components/atoms/editors/only_csr.js +9 -0
- package/lib/components/atoms/editors/only_csr.js.map +1 -0
- package/lib/components/atoms/icons/Icon.d.ts +10 -0
- package/lib/components/atoms/icons/Icon.js +61 -0
- package/lib/components/atoms/icons/Icon.js.map +1 -0
- package/lib/components/atoms/icons/LoadingIcon.d.ts +13 -0
- package/lib/components/atoms/icons/LoadingIcon.js +36 -0
- package/lib/components/atoms/icons/LoadingIcon.js.map +1 -0
- package/lib/components/atoms/icons/index.d.ts +2 -0
- package/lib/components/atoms/icons/index.js +11 -0
- package/lib/components/atoms/icons/index.js.map +1 -0
- package/lib/components/atoms/index.d.ts +12 -0
- package/lib/components/atoms/index.js +29 -0
- package/lib/components/atoms/index.js.map +1 -0
- package/lib/components/atoms/inputs/CheckboxInput.d.ts +28 -0
- package/lib/components/atoms/inputs/CheckboxInput.js +25 -0
- package/lib/components/atoms/inputs/CheckboxInput.js.map +1 -0
- package/lib/components/atoms/inputs/ChipInput.d.ts +23 -0
- package/lib/components/atoms/inputs/ChipInput.js +79 -0
- package/lib/components/atoms/inputs/ChipInput.js.map +1 -0
- package/lib/components/atoms/inputs/DateInput.d.ts +34 -0
- package/lib/components/atoms/inputs/DateInput.js +36 -0
- package/lib/components/atoms/inputs/DateInput.js.map +1 -0
- package/lib/components/atoms/inputs/IntegerInput.d.ts +19 -0
- package/lib/components/atoms/inputs/IntegerInput.js +72 -0
- package/lib/components/atoms/inputs/IntegerInput.js.map +1 -0
- package/lib/components/atoms/inputs/RadioInput.d.ts +28 -0
- package/lib/components/atoms/inputs/RadioInput.js +25 -0
- package/lib/components/atoms/inputs/RadioInput.js.map +1 -0
- package/lib/components/atoms/inputs/SelectInput.d.ts +32 -0
- package/lib/components/atoms/inputs/SelectInput.js +32 -0
- package/lib/components/atoms/inputs/SelectInput.js.map +1 -0
- package/lib/components/atoms/inputs/TextInput.d.ts +23 -0
- package/lib/components/atoms/inputs/TextInput.js +61 -0
- package/lib/components/atoms/inputs/TextInput.js.map +1 -0
- package/lib/components/atoms/inputs/ToggleInput.d.ts +29 -0
- package/lib/components/atoms/inputs/ToggleInput.js +30 -0
- package/lib/components/atoms/inputs/ToggleInput.js.map +1 -0
- package/lib/components/atoms/inputs/index.d.ts +8 -0
- package/lib/components/atoms/inputs/index.js +23 -0
- package/lib/components/atoms/inputs/index.js.map +1 -0
- package/lib/components/atoms/lotties/Lottie.d.ts +8 -0
- package/lib/components/atoms/lotties/Lottie.js +44 -0
- package/lib/components/atoms/lotties/Lottie.js.map +1 -0
- package/lib/components/atoms/lotties/index.d.ts +1 -0
- package/lib/components/atoms/lotties/index.js +9 -0
- package/lib/components/atoms/lotties/index.js.map +1 -0
- package/lib/components/atoms/only_csr.d.ts +1 -0
- package/lib/components/atoms/only_csr.js +18 -0
- package/lib/components/atoms/only_csr.js.map +1 -0
- package/lib/components/atoms/paginations/Pagination.d.ts +29 -0
- package/lib/components/atoms/paginations/Pagination.js +117 -0
- package/lib/components/atoms/paginations/Pagination.js.map +1 -0
- package/lib/components/atoms/paginations/index.d.ts +1 -0
- package/lib/components/atoms/paginations/index.js +9 -0
- package/lib/components/atoms/paginations/index.js.map +1 -0
- package/lib/components/atoms/pickers/ThemePicker.d.ts +5 -0
- package/lib/components/atoms/pickers/ThemePicker.js +38 -0
- package/lib/components/atoms/pickers/ThemePicker.js.map +1 -0
- package/lib/components/atoms/pickers/index.d.ts +1 -0
- package/lib/components/atoms/pickers/index.js +9 -0
- package/lib/components/atoms/pickers/index.js.map +1 -0
- package/lib/components/atoms/recaptchas/Recaptcha.d.ts +10 -0
- package/lib/components/atoms/recaptchas/Recaptcha.js +80 -0
- package/lib/components/atoms/recaptchas/Recaptcha.js.map +1 -0
- package/lib/components/atoms/recaptchas/index.d.ts +1 -0
- package/lib/components/atoms/recaptchas/index.js +9 -0
- package/lib/components/atoms/recaptchas/index.js.map +1 -0
- package/lib/components/atoms/texts/KbdText.d.ts +13 -0
- package/lib/components/atoms/texts/KbdText.js +12 -0
- package/lib/components/atoms/texts/KbdText.js.map +1 -0
- package/lib/components/atoms/texts/Text.d.ts +9 -0
- package/lib/components/atoms/texts/Text.js +30 -0
- package/lib/components/atoms/texts/Text.js.map +1 -0
- package/lib/components/atoms/texts/index.d.ts +2 -0
- package/lib/components/atoms/texts/index.js +11 -0
- package/lib/components/atoms/texts/index.js.map +1 -0
- package/lib/components/molecules/breadcrumbs/NavBreadcrumb.d.ts +20 -0
- package/lib/components/molecules/breadcrumbs/NavBreadcrumb.js +73 -0
- package/lib/components/molecules/breadcrumbs/NavBreadcrumb.js.map +1 -0
- package/lib/components/molecules/breadcrumbs/index.d.ts +1 -0
- package/lib/components/molecules/breadcrumbs/index.js +9 -0
- package/lib/components/molecules/breadcrumbs/index.js.map +1 -0
- package/lib/components/molecules/cards/BookCard.d.ts +10 -0
- package/lib/components/molecules/cards/BookCard.js +30 -0
- package/lib/components/molecules/cards/BookCard.js.map +1 -0
- package/lib/components/molecules/cards/Card.d.ts +18 -0
- package/lib/components/molecules/cards/Card.js +33 -0
- package/lib/components/molecules/cards/Card.js.map +1 -0
- package/lib/components/molecules/cards/ContestCard.d.ts +18 -0
- package/lib/components/molecules/cards/ContestCard.js +15 -0
- package/lib/components/molecules/cards/ContestCard.js.map +1 -0
- package/lib/components/molecules/cards/DiecutStickerCard.d.ts +11 -0
- package/lib/components/molecules/cards/DiecutStickerCard.js +59 -0
- package/lib/components/molecules/cards/DiecutStickerCard.js.map +1 -0
- package/lib/components/molecules/cards/ThemeCard.d.ts +11 -0
- package/lib/components/molecules/cards/ThemeCard.js +15 -0
- package/lib/components/molecules/cards/ThemeCard.js.map +1 -0
- package/lib/components/molecules/cards/index.d.ts +5 -0
- package/lib/components/molecules/cards/index.js +17 -0
- package/lib/components/molecules/cards/index.js.map +1 -0
- package/lib/components/molecules/charts/BarChart.d.ts +18 -0
- package/lib/components/molecules/charts/BarChart.js +24 -0
- package/lib/components/molecules/charts/BarChart.js.map +1 -0
- package/lib/components/molecules/charts/DonutChart.d.ts +15 -0
- package/lib/components/molecules/charts/DonutChart.js +51 -0
- package/lib/components/molecules/charts/DonutChart.js.map +1 -0
- package/lib/components/molecules/charts/HeatmapChart.d.ts +22 -0
- package/lib/components/molecules/charts/HeatmapChart.js +53 -0
- package/lib/components/molecules/charts/HeatmapChart.js.map +1 -0
- package/lib/components/molecules/charts/LabelChart.d.ts +21 -0
- package/lib/components/molecules/charts/LabelChart.js +37 -0
- package/lib/components/molecules/charts/LabelChart.js.map +1 -0
- package/lib/components/molecules/charts/LineChart.d.ts +21 -0
- package/lib/components/molecules/charts/LineChart.js +21 -0
- package/lib/components/molecules/charts/LineChart.js.map +1 -0
- package/lib/components/molecules/charts/RadarChart.d.ts +18 -0
- package/lib/components/molecules/charts/RadarChart.js +68 -0
- package/lib/components/molecules/charts/RadarChart.js.map +1 -0
- package/lib/components/molecules/charts/SingleBarChart.d.ts +23 -0
- package/lib/components/molecules/charts/SingleBarChart.js +43 -0
- package/lib/components/molecules/charts/SingleBarChart.js.map +1 -0
- package/lib/components/molecules/charts/SingleLineChart.d.ts +25 -0
- package/lib/components/molecules/charts/SingleLineChart.js +128 -0
- package/lib/components/molecules/charts/SingleLineChart.js.map +1 -0
- package/lib/components/molecules/charts/index.d.ts +8 -0
- package/lib/components/molecules/charts/index.js +23 -0
- package/lib/components/molecules/charts/index.js.map +1 -0
- package/lib/components/molecules/dropdowns/DateDropdown.d.ts +9 -0
- package/lib/components/molecules/dropdowns/DateDropdown.js +99 -0
- package/lib/components/molecules/dropdowns/DateDropdown.js.map +1 -0
- package/lib/components/molecules/dropdowns/DateRangeDropdown.d.ts +15 -0
- package/lib/components/molecules/dropdowns/DateRangeDropdown.js +32 -0
- package/lib/components/molecules/dropdowns/DateRangeDropdown.js.map +1 -0
- package/lib/components/molecules/dropdowns/Dropdown.d.ts +27 -0
- package/lib/components/molecules/dropdowns/Dropdown.js +25 -0
- package/lib/components/molecules/dropdowns/Dropdown.js.map +1 -0
- package/lib/components/molecules/dropdowns/SearchDropdown.d.ts +21 -0
- package/lib/components/molecules/dropdowns/SearchDropdown.js +35 -0
- package/lib/components/molecules/dropdowns/SearchDropdown.js.map +1 -0
- package/lib/components/molecules/dropdowns/index.d.ts +4 -0
- package/lib/components/molecules/dropdowns/index.js +15 -0
- package/lib/components/molecules/dropdowns/index.js.map +1 -0
- package/lib/components/molecules/empties/Empty.d.ts +10 -0
- package/lib/components/molecules/empties/Empty.js +37 -0
- package/lib/components/molecules/empties/Empty.js.map +1 -0
- package/lib/components/molecules/empties/index.d.ts +1 -0
- package/lib/components/molecules/empties/index.js +9 -0
- package/lib/components/molecules/empties/index.js.map +1 -0
- package/lib/components/molecules/index.d.ts +9 -0
- package/lib/components/molecules/index.js +26 -0
- package/lib/components/molecules/index.js.map +1 -0
- package/lib/components/molecules/navigations/PaneNavigation.d.ts +28 -0
- package/lib/components/molecules/navigations/PaneNavigation.js +48 -0
- package/lib/components/molecules/navigations/PaneNavigation.js.map +1 -0
- package/lib/components/molecules/navigations/TabNavigation.d.ts +19 -0
- package/lib/components/molecules/navigations/TabNavigation.js +17 -0
- package/lib/components/molecules/navigations/TabNavigation.js.map +1 -0
- package/lib/components/molecules/navigations/index.d.ts +2 -0
- package/lib/components/molecules/navigations/index.js +11 -0
- package/lib/components/molecules/navigations/index.js.map +1 -0
- package/lib/components/molecules/only_csr.d.ts +1 -0
- package/lib/components/molecules/only_csr.js +18 -0
- package/lib/components/molecules/only_csr.js.map +1 -0
- package/lib/components/molecules/overlays/DropdownOverlay.d.ts +4 -0
- package/lib/components/molecules/overlays/DropdownOverlay.js +8 -0
- package/lib/components/molecules/overlays/DropdownOverlay.js.map +1 -0
- package/lib/components/molecules/overlays/ModalOverlay.d.ts +7 -0
- package/lib/components/molecules/overlays/ModalOverlay.js +11 -0
- package/lib/components/molecules/overlays/ModalOverlay.js.map +1 -0
- package/lib/components/molecules/overlays/ToastOverlay.d.ts +14 -0
- package/lib/components/molecules/overlays/ToastOverlay.js +50 -0
- package/lib/components/molecules/overlays/ToastOverlay.js.map +1 -0
- package/lib/components/molecules/overlays/TooltipOverlay.d.ts +11 -0
- package/lib/components/molecules/overlays/TooltipOverlay.js +10 -0
- package/lib/components/molecules/overlays/TooltipOverlay.js.map +1 -0
- package/lib/components/molecules/overlays/index.d.ts +4 -0
- package/lib/components/molecules/overlays/index.js +15 -0
- package/lib/components/molecules/overlays/index.js.map +1 -0
- package/lib/components/molecules/rows/BulletedRow.d.ts +12 -0
- package/lib/components/molecules/rows/BulletedRow.js +23 -0
- package/lib/components/molecules/rows/BulletedRow.js.map +1 -0
- package/lib/components/molecules/rows/CheckboxLabelRow.d.ts +13 -0
- package/lib/components/molecules/rows/CheckboxLabelRow.js +24 -0
- package/lib/components/molecules/rows/CheckboxLabelRow.js.map +1 -0
- package/lib/components/molecules/rows/PrevNextCardRow.d.ts +8 -0
- package/lib/components/molecules/rows/PrevNextCardRow.js +8 -0
- package/lib/components/molecules/rows/PrevNextCardRow.js.map +1 -0
- package/lib/components/molecules/rows/RadioLabelRow.d.ts +13 -0
- package/lib/components/molecules/rows/RadioLabelRow.js +24 -0
- package/lib/components/molecules/rows/RadioLabelRow.js.map +1 -0
- package/lib/components/molecules/rows/TitleRow.d.ts +10 -0
- package/lib/components/molecules/rows/TitleRow.js +27 -0
- package/lib/components/molecules/rows/TitleRow.js.map +1 -0
- package/lib/components/molecules/rows/ValidationMessageRow.d.ts +9 -0
- package/lib/components/molecules/rows/ValidationMessageRow.js +19 -0
- package/lib/components/molecules/rows/ValidationMessageRow.js.map +1 -0
- package/lib/components/molecules/rows/index.d.ts +6 -0
- package/lib/components/molecules/rows/index.js +19 -0
- package/lib/components/molecules/rows/index.js.map +1 -0
- package/lib/components/molecules/trays/CalloutTray.d.ts +14 -0
- package/lib/components/molecules/trays/CalloutTray.js +36 -0
- package/lib/components/molecules/trays/CalloutTray.js.map +1 -0
- package/lib/components/molecules/trays/CodeTray.d.ts +17 -0
- package/lib/components/molecules/trays/CodeTray.js +20 -0
- package/lib/components/molecules/trays/CodeTray.js.map +1 -0
- package/lib/components/molecules/trays/ProblemExampleTray.d.ts +14 -0
- package/lib/components/molecules/trays/ProblemExampleTray.js +64 -0
- package/lib/components/molecules/trays/ProblemExampleTray.js.map +1 -0
- package/lib/components/molecules/trays/ProblemSetOverviewTray.d.ts +12 -0
- package/lib/components/molecules/trays/ProblemSetOverviewTray.js +32 -0
- package/lib/components/molecules/trays/ProblemSetOverviewTray.js.map +1 -0
- package/lib/components/molecules/trays/RankOverviewTray.d.ts +21 -0
- package/lib/components/molecules/trays/RankOverviewTray.js +37 -0
- package/lib/components/molecules/trays/RankOverviewTray.js.map +1 -0
- package/lib/components/molecules/trays/RankPodiumTray.d.ts +13 -0
- package/lib/components/molecules/trays/RankPodiumTray.js +19 -0
- package/lib/components/molecules/trays/RankPodiumTray.js.map +1 -0
- package/lib/components/molecules/trays/RankSetTray.d.ts +21 -0
- package/lib/components/molecules/trays/RankSetTray.js +35 -0
- package/lib/components/molecules/trays/RankSetTray.js.map +1 -0
- package/lib/components/molecules/trays/SelectedChipTray.d.ts +8 -0
- package/lib/components/molecules/trays/SelectedChipTray.js +7 -0
- package/lib/components/molecules/trays/SelectedChipTray.js.map +1 -0
- package/lib/components/molecules/trays/SubmitTray.d.ts +25 -0
- package/lib/components/molecules/trays/SubmitTray.js +30 -0
- package/lib/components/molecules/trays/SubmitTray.js.map +1 -0
- package/lib/components/molecules/trays/index.d.ts +8 -0
- package/lib/components/molecules/trays/index.js +23 -0
- package/lib/components/molecules/trays/index.js.map +1 -0
- package/lib/components/molecules/trays/only_csr.d.ts +1 -0
- package/lib/components/molecules/trays/only_csr.js +9 -0
- package/lib/components/molecules/trays/only_csr.js.map +1 -0
- package/lib/components/organisms/bars/QueryToolBar.d.ts +24 -0
- package/lib/components/organisms/bars/QueryToolBar.js +102 -0
- package/lib/components/organisms/bars/QueryToolBar.js.map +1 -0
- package/lib/components/organisms/bars/SubmitQueryToolBar.d.ts +54 -0
- package/lib/components/organisms/bars/SubmitQueryToolBar.js +232 -0
- package/lib/components/organisms/bars/SubmitQueryToolBar.js.map +1 -0
- package/lib/components/organisms/bars/index.d.ts +2 -0
- package/lib/components/organisms/bars/index.js +11 -0
- package/lib/components/organisms/bars/index.js.map +1 -0
- package/lib/components/organisms/footers/CellTextButton.d.ts +5 -0
- package/lib/components/organisms/footers/CellTextButton.js +12 -0
- package/lib/components/organisms/footers/CellTextButton.js.map +1 -0
- package/lib/components/organisms/footers/Footer.d.ts +13 -0
- package/lib/components/organisms/footers/Footer.js +21 -0
- package/lib/components/organisms/footers/Footer.js.map +1 -0
- package/lib/components/organisms/footers/index.d.ts +1 -0
- package/lib/components/organisms/footers/index.js +9 -0
- package/lib/components/organisms/footers/index.js.map +1 -0
- package/lib/components/organisms/headers/Header.d.ts +21 -0
- package/lib/components/organisms/headers/Header.js +59 -0
- package/lib/components/organisms/headers/Header.js.map +1 -0
- package/lib/components/organisms/headers/components/HeaderFamilySection.d.ts +7 -0
- package/lib/components/organisms/headers/components/HeaderFamilySection.js +15 -0
- package/lib/components/organisms/headers/components/HeaderFamilySection.js.map +1 -0
- package/lib/components/organisms/headers/components/HeaderFixedPopup.d.ts +7 -0
- package/lib/components/organisms/headers/components/HeaderFixedPopup.js +29 -0
- package/lib/components/organisms/headers/components/HeaderFixedPopup.js.map +1 -0
- package/lib/components/organisms/headers/components/HeaderIconButton.d.ts +9 -0
- package/lib/components/organisms/headers/components/HeaderIconButton.js +7 -0
- package/lib/components/organisms/headers/components/HeaderIconButton.js.map +1 -0
- package/lib/components/organisms/headers/components/HeaderLoginButton.d.ts +6 -0
- package/lib/components/organisms/headers/components/HeaderLoginButton.js +20 -0
- package/lib/components/organisms/headers/components/HeaderLoginButton.js.map +1 -0
- package/lib/components/organisms/headers/components/HeaderMenuItemButton.d.ts +8 -0
- package/lib/components/organisms/headers/components/HeaderMenuItemButton.js +15 -0
- package/lib/components/organisms/headers/components/HeaderMenuItemButton.js.map +1 -0
- package/lib/components/organisms/headers/components/HeaderMenuProfileButton.d.ts +9 -0
- package/lib/components/organisms/headers/components/HeaderMenuProfileButton.js +15 -0
- package/lib/components/organisms/headers/components/HeaderMenuProfileButton.js.map +1 -0
- package/lib/components/organisms/headers/components/HeaderMenuSection.d.ts +27 -0
- package/lib/components/organisms/headers/components/HeaderMenuSection.js +25 -0
- package/lib/components/organisms/headers/components/HeaderMenuSection.js.map +1 -0
- package/lib/components/organisms/headers/components/HeaderNavButton.d.ts +8 -0
- package/lib/components/organisms/headers/components/HeaderNavButton.js +9 -0
- package/lib/components/organisms/headers/components/HeaderNavButton.js.map +1 -0
- package/lib/components/organisms/headers/components/HeaderPopup.d.ts +7 -0
- package/lib/components/organisms/headers/components/HeaderPopup.js +32 -0
- package/lib/components/organisms/headers/components/HeaderPopup.js.map +1 -0
- package/lib/components/organisms/headers/components/index.d.ts +9 -0
- package/lib/components/organisms/headers/components/index.js +25 -0
- package/lib/components/organisms/headers/components/index.js.map +1 -0
- package/lib/components/organisms/headers/index.d.ts +1 -0
- package/lib/components/organisms/headers/index.js +9 -0
- package/lib/components/organisms/headers/index.js.map +1 -0
- package/lib/components/organisms/index.d.ts +7 -0
- package/lib/components/organisms/index.js +24 -0
- package/lib/components/organisms/index.js.map +1 -0
- package/lib/components/organisms/modals/AlertModal.d.ts +11 -0
- package/lib/components/organisms/modals/AlertModal.js +14 -0
- package/lib/components/organisms/modals/AlertModal.js.map +1 -0
- package/lib/components/organisms/modals/CellModal.d.ts +10 -0
- package/lib/components/organisms/modals/CellModal.js +14 -0
- package/lib/components/organisms/modals/CellModal.js.map +1 -0
- package/lib/components/organisms/modals/ProblemExampleModal.d.ts +17 -0
- package/lib/components/organisms/modals/ProblemExampleModal.js +59 -0
- package/lib/components/organisms/modals/ProblemExampleModal.js.map +1 -0
- package/lib/components/organisms/modals/SearchModal.d.ts +3 -0
- package/lib/components/organisms/modals/SearchModal.js +16 -0
- package/lib/components/organisms/modals/SearchModal.js.map +1 -0
- package/lib/components/organisms/modals/UpdatePasswordModal.d.ts +12 -0
- package/lib/components/organisms/modals/UpdatePasswordModal.js +82 -0
- package/lib/components/organisms/modals/UpdatePasswordModal.js.map +1 -0
- package/lib/components/organisms/modals/index.d.ts +4 -0
- package/lib/components/organisms/modals/index.js +15 -0
- package/lib/components/organisms/modals/index.js.map +1 -0
- package/lib/components/organisms/modals/only_csr.d.ts +1 -0
- package/lib/components/organisms/modals/only_csr.js +9 -0
- package/lib/components/organisms/modals/only_csr.js.map +1 -0
- package/lib/components/organisms/only_csr.d.ts +1 -0
- package/lib/components/organisms/only_csr.js +18 -0
- package/lib/components/organisms/only_csr.js.map +1 -0
- package/lib/components/organisms/tables/BaseTable.d.ts +26 -0
- package/lib/components/organisms/tables/BaseTable.js +19 -0
- package/lib/components/organisms/tables/BaseTable.js.map +1 -0
- package/lib/components/organisms/tables/ContestTable.d.ts +10 -0
- package/lib/components/organisms/tables/ContestTable.js +15 -0
- package/lib/components/organisms/tables/ContestTable.js.map +1 -0
- package/lib/components/organisms/tables/ExploreTable.d.ts +12 -0
- package/lib/components/organisms/tables/ExploreTable.js +20 -0
- package/lib/components/organisms/tables/ExploreTable.js.map +1 -0
- package/lib/components/organisms/tables/ProblemTable.d.ts +18 -0
- package/lib/components/organisms/tables/ProblemTable.js +78 -0
- package/lib/components/organisms/tables/ProblemTable.js.map +1 -0
- package/lib/components/organisms/tables/RecordTable.d.ts +16 -0
- package/lib/components/organisms/tables/RecordTable.js +53 -0
- package/lib/components/organisms/tables/RecordTable.js.map +1 -0
- package/lib/components/organisms/tables/SubmitTable.d.ts +32 -0
- package/lib/components/organisms/tables/SubmitTable.js +178 -0
- package/lib/components/organisms/tables/SubmitTable.js.map +1 -0
- package/lib/components/organisms/tables/TestcaseTable.d.ts +18 -0
- package/lib/components/organisms/tables/TestcaseTable.js +82 -0
- package/lib/components/organisms/tables/TestcaseTable.js.map +1 -0
- package/lib/components/organisms/tables/UserTable.d.ts +21 -0
- package/lib/components/organisms/tables/UserTable.js +74 -0
- package/lib/components/organisms/tables/UserTable.js.map +1 -0
- package/lib/components/organisms/tables/index.d.ts +8 -0
- package/lib/components/organisms/tables/index.js +23 -0
- package/lib/components/organisms/tables/index.js.map +1 -0
- package/lib/components/organisms/timelines/SubmitByProblemTimeline.d.ts +21 -0
- package/lib/components/organisms/timelines/SubmitByProblemTimeline.js +118 -0
- package/lib/components/organisms/timelines/SubmitByProblemTimeline.js.map +1 -0
- package/lib/components/organisms/timelines/SubmitTimeline.d.ts +30 -0
- package/lib/components/organisms/timelines/SubmitTimeline.js +97 -0
- package/lib/components/organisms/timelines/SubmitTimeline.js.map +1 -0
- package/lib/components/organisms/timelines/index.d.ts +2 -0
- package/lib/components/organisms/timelines/index.js +11 -0
- package/lib/components/organisms/timelines/index.js.map +1 -0
- package/lib/components/organisms/toasts/CookieToast.d.ts +12 -0
- package/lib/components/organisms/toasts/CookieToast.js +27 -0
- package/lib/components/organisms/toasts/CookieToast.js.map +1 -0
- package/lib/components/organisms/toasts/Toast.d.ts +10 -0
- package/lib/components/organisms/toasts/Toast.js +43 -0
- package/lib/components/organisms/toasts/Toast.js.map +1 -0
- package/lib/components/organisms/toasts/index.d.ts +2 -0
- package/lib/components/organisms/toasts/index.js +11 -0
- package/lib/components/organisms/toasts/index.js.map +1 -0
- package/lib/components/providers/ClientProvider.d.ts +3 -0
- package/lib/components/providers/ClientProvider.js +13 -0
- package/lib/components/providers/ClientProvider.js.map +1 -0
- package/lib/components/providers/ConfigProvider.d.ts +9 -0
- package/lib/components/providers/ConfigProvider.js +96 -0
- package/lib/components/providers/ConfigProvider.js.map +1 -0
- package/lib/components/providers/DropdownProvider.d.ts +3 -0
- package/lib/components/providers/DropdownProvider.js +44 -0
- package/lib/components/providers/DropdownProvider.js.map +1 -0
- package/lib/components/providers/GlobalStyleProvider.d.ts +2 -0
- package/lib/components/providers/GlobalStyleProvider.js +22 -0
- package/lib/components/providers/GlobalStyleProvider.js.map +1 -0
- package/lib/components/providers/ModalProvider.d.ts +3 -0
- package/lib/components/providers/ModalProvider.js +28 -0
- package/lib/components/providers/ModalProvider.js.map +1 -0
- package/lib/components/providers/SWRProvider.d.ts +3 -0
- package/lib/components/providers/SWRProvider.js +55 -0
- package/lib/components/providers/SWRProvider.js.map +1 -0
- package/lib/components/providers/ScrollRestorationProvider.d.ts +2 -0
- package/lib/components/providers/ScrollRestorationProvider.js +50 -0
- package/lib/components/providers/ScrollRestorationProvider.js.map +1 -0
- package/lib/components/providers/ShortcutProvider.d.ts +2 -0
- package/lib/components/providers/ShortcutProvider.js +41 -0
- package/lib/components/providers/ShortcutProvider.js.map +1 -0
- package/lib/components/providers/ToastProvider.d.ts +2 -0
- package/lib/components/providers/ToastProvider.js +68 -0
- package/lib/components/providers/ToastProvider.js.map +1 -0
- package/lib/components/providers/TooltipProvider.d.ts +3 -0
- package/lib/components/providers/TooltipProvider.js +25 -0
- package/lib/components/providers/TooltipProvider.js.map +1 -0
- package/lib/components/providers/index.d.ts +10 -0
- package/lib/components/providers/index.js +27 -0
- package/lib/components/providers/index.js.map +1 -0
- package/lib/components/templates/CenterFormTemplate.d.ts +7 -0
- package/lib/components/templates/CenterFormTemplate.js +89 -0
- package/lib/components/templates/CenterFormTemplate.js.map +1 -0
- package/lib/components/templates/CodeEditorTemplate/Editor/index.d.ts +19 -0
- package/lib/components/templates/CodeEditorTemplate/Editor/index.js +13 -0
- package/lib/components/templates/CodeEditorTemplate/Editor/index.js.map +1 -0
- package/lib/components/templates/CodeEditorTemplate/Header/index.d.ts +18 -0
- package/lib/components/templates/CodeEditorTemplate/Header/index.js +73 -0
- package/lib/components/templates/CodeEditorTemplate/Header/index.js.map +1 -0
- package/lib/components/templates/CodeEditorTemplate/NavigationBar/Button.d.ts +10 -0
- package/lib/components/templates/CodeEditorTemplate/NavigationBar/Button.js +24 -0
- package/lib/components/templates/CodeEditorTemplate/NavigationBar/Button.js.map +1 -0
- package/lib/components/templates/CodeEditorTemplate/NavigationBar/LogoButton.d.ts +7 -0
- package/lib/components/templates/CodeEditorTemplate/NavigationBar/LogoButton.js +9 -0
- package/lib/components/templates/CodeEditorTemplate/NavigationBar/LogoButton.js.map +1 -0
- package/lib/components/templates/CodeEditorTemplate/NavigationBar/index.d.ts +18 -0
- package/lib/components/templates/CodeEditorTemplate/NavigationBar/index.js +34 -0
- package/lib/components/templates/CodeEditorTemplate/NavigationBar/index.js.map +1 -0
- package/lib/components/templates/CodeEditorTemplate/Panel/index.d.ts +10 -0
- package/lib/components/templates/CodeEditorTemplate/Panel/index.js +125 -0
- package/lib/components/templates/CodeEditorTemplate/Panel/index.js.map +1 -0
- package/lib/components/templates/CodeEditorTemplate/PanelFooter/index.d.ts +10 -0
- package/lib/components/templates/CodeEditorTemplate/PanelFooter/index.js +16 -0
- package/lib/components/templates/CodeEditorTemplate/PanelFooter/index.js.map +1 -0
- package/lib/components/templates/CodeEditorTemplate/PanelHeader/index.d.ts +18 -0
- package/lib/components/templates/CodeEditorTemplate/PanelHeader/index.js +34 -0
- package/lib/components/templates/CodeEditorTemplate/PanelHeader/index.js.map +1 -0
- package/lib/components/templates/CodeEditorTemplate/Resizer/index.d.ts +7 -0
- package/lib/components/templates/CodeEditorTemplate/Resizer/index.js +20 -0
- package/lib/components/templates/CodeEditorTemplate/Resizer/index.js.map +1 -0
- package/lib/components/templates/CodeEditorTemplate/index.d.ts +51 -0
- package/lib/components/templates/CodeEditorTemplate/index.js +283 -0
- package/lib/components/templates/CodeEditorTemplate/index.js.map +1 -0
- package/lib/components/templates/HeaderTemplate.d.ts +7 -0
- package/lib/components/templates/HeaderTemplate.js +12 -0
- package/lib/components/templates/HeaderTemplate.js.map +1 -0
- package/lib/components/templates/NavTemplate.d.ts +12 -0
- package/lib/components/templates/NavTemplate.js +13 -0
- package/lib/components/templates/NavTemplate.js.map +1 -0
- package/lib/components/templates/SidebarTemplate.d.ts +10 -0
- package/lib/components/templates/SidebarTemplate.js +31 -0
- package/lib/components/templates/SidebarTemplate.js.map +1 -0
- package/lib/components/templates/SubHeaderTemplate.d.ts +7 -0
- package/lib/components/templates/SubHeaderTemplate.js +21 -0
- package/lib/components/templates/SubHeaderTemplate.js.map +1 -0
- package/lib/components/templates/index.d.ts +6 -0
- package/lib/components/templates/index.js +32 -0
- package/lib/components/templates/index.js.map +1 -0
- package/lib/components/templates/only_csr.d.ts +1 -0
- package/lib/components/templates/only_csr.js +9 -0
- package/lib/components/templates/only_csr.js.map +1 -0
- package/lib/components/templates/opengraphs/MainOpengraphTemplate.d.ts +7 -0
- package/lib/components/templates/opengraphs/MainOpengraphTemplate.js +88 -0
- package/lib/components/templates/opengraphs/MainOpengraphTemplate.js.map +1 -0
- package/lib/components/templates/opengraphs/WatermarkOpengraphTemplate.d.ts +22 -0
- package/lib/components/templates/opengraphs/WatermarkOpengraphTemplate.js +173 -0
- package/lib/components/templates/opengraphs/WatermarkOpengraphTemplate.js.map +1 -0
- package/lib/components/templates/opengraphs/index.d.ts +2 -0
- package/lib/components/templates/opengraphs/index.js +11 -0
- package/lib/components/templates/opengraphs/index.js.map +1 -0
- package/lib/constants/components/atoms.d.ts +778 -0
- package/lib/constants/components/atoms.js +363 -0
- package/lib/constants/components/atoms.js.map +1 -0
- package/lib/constants/components/index.d.ts +3 -0
- package/lib/constants/components/index.js +20 -0
- package/lib/constants/components/index.js.map +1 -0
- package/lib/constants/components/molecules.d.ts +59 -0
- package/lib/constants/components/molecules.js +55 -0
- package/lib/constants/components/molecules.js.map +1 -0
- package/lib/constants/components/organisms.d.ts +8 -0
- package/lib/constants/components/organisms.js +11 -0
- package/lib/constants/components/organisms.js.map +1 -0
- package/lib/constants/keyboards/index.d.ts +1 -0
- package/lib/constants/keyboards/index.js +18 -0
- package/lib/constants/keyboards/index.js.map +1 -0
- package/lib/constants/keyboards/shortcuts.d.ts +302 -0
- package/lib/constants/keyboards/shortcuts.js +100 -0
- package/lib/constants/keyboards/shortcuts.js.map +1 -0
- package/lib/constants/metadata/index.d.ts +216 -0
- package/lib/constants/metadata/index.js +209 -0
- package/lib/constants/metadata/index.js.map +1 -0
- package/lib/constants/styles/className.d.ts +5 -0
- package/lib/constants/styles/className.js +7 -0
- package/lib/constants/styles/className.js.map +1 -0
- package/lib/constants/styles/codeEditor.d.ts +34 -0
- package/lib/constants/styles/codeEditor.js +39 -0
- package/lib/constants/styles/codeEditor.js.map +1 -0
- package/lib/constants/styles/color.d.ts +257 -0
- package/lib/constants/styles/color.js +327 -0
- package/lib/constants/styles/color.js.map +1 -0
- package/lib/constants/styles/effect.d.ts +15 -0
- package/lib/constants/styles/effect.js +98 -0
- package/lib/constants/styles/effect.js.map +1 -0
- package/lib/constants/styles/font.d.ts +212 -0
- package/lib/constants/styles/font.js +276 -0
- package/lib/constants/styles/font.js.map +1 -0
- package/lib/constants/styles/global.d.ts +2 -0
- package/lib/constants/styles/global.js +81 -0
- package/lib/constants/styles/global.js.map +1 -0
- package/lib/constants/styles/index.d.ts +22 -0
- package/lib/constants/styles/index.js +54 -0
- package/lib/constants/styles/index.js.map +1 -0
- package/lib/constants/styles/keyframe.d.ts +11 -0
- package/lib/constants/styles/keyframe.js +59 -0
- package/lib/constants/styles/keyframe.js.map +1 -0
- package/lib/constants/styles/size.d.ts +71 -0
- package/lib/constants/styles/size.js +72 -0
- package/lib/constants/styles/size.js.map +1 -0
- package/lib/constants/styles/text.d.ts +20 -0
- package/lib/constants/styles/text.js +121 -0
- package/lib/constants/styles/text.js.map +1 -0
- package/lib/constants/styles/time.d.ts +5 -0
- package/lib/constants/styles/time.js +7 -0
- package/lib/constants/styles/time.js.map +1 -0
- package/lib/constants/styles/zIndex.d.ts +9 -0
- package/lib/constants/styles/zIndex.js +11 -0
- package/lib/constants/styles/zIndex.js.map +1 -0
- package/lib/hooks/animations/index.d.ts +1 -0
- package/lib/hooks/animations/index.js +9 -0
- package/lib/hooks/animations/index.js.map +1 -0
- package/lib/hooks/animations/useNumberCountUpAnimation.d.ts +2 -0
- package/lib/hooks/animations/useNumberCountUpAnimation.js +25 -0
- package/lib/hooks/animations/useNumberCountUpAnimation.js.map +1 -0
- package/lib/hooks/components/buttons.d.ts +19 -0
- package/lib/hooks/components/buttons.js +82 -0
- package/lib/hooks/components/buttons.js.map +1 -0
- package/lib/hooks/components/index.d.ts +1 -0
- package/lib/hooks/components/index.js +18 -0
- package/lib/hooks/components/index.js.map +1 -0
- package/lib/hooks/day/index.d.ts +2 -0
- package/lib/hooks/day/index.js +20 -0
- package/lib/hooks/day/index.js.map +1 -0
- package/lib/hooks/instance/callback.d.ts +2 -0
- package/lib/hooks/instance/callback.js +32 -0
- package/lib/hooks/instance/callback.js.map +1 -0
- package/lib/hooks/instance/fetch.d.ts +15 -0
- package/lib/hooks/instance/fetch.js +109 -0
- package/lib/hooks/instance/fetch.js.map +1 -0
- package/lib/hooks/instance/index.d.ts +2 -0
- package/lib/hooks/instance/index.js +19 -0
- package/lib/hooks/instance/index.js.map +1 -0
- package/lib/hooks/keyboards/index.d.ts +1 -0
- package/lib/hooks/keyboards/index.js +18 -0
- package/lib/hooks/keyboards/index.js.map +1 -0
- package/lib/hooks/keyboards/shortcut.d.ts +4 -0
- package/lib/hooks/keyboards/shortcut.js +127 -0
- package/lib/hooks/keyboards/shortcut.js.map +1 -0
- package/lib/hooks/navigation/index.d.ts +5 -0
- package/lib/hooks/navigation/index.js +29 -0
- package/lib/hooks/navigation/index.js.map +1 -0
- package/lib/hooks/navigation/useConfirmBeforeNavigationEffect.d.ts +2 -0
- package/lib/hooks/navigation/useConfirmBeforeNavigationEffect.js +69 -0
- package/lib/hooks/navigation/useConfirmBeforeNavigationEffect.js.map +1 -0
- package/lib/hooks/navigation/useLocation.d.ts +4 -0
- package/lib/hooks/navigation/useLocation.js +15 -0
- package/lib/hooks/navigation/useLocation.js.map +1 -0
- package/lib/hooks/navigation/useLoginCallbackSearchParam.d.ts +2 -0
- package/lib/hooks/navigation/useLoginCallbackSearchParam.js +23 -0
- package/lib/hooks/navigation/useLoginCallbackSearchParam.js.map +1 -0
- package/lib/hooks/navigation/usePathname.d.ts +18 -0
- package/lib/hooks/navigation/usePathname.js +30 -0
- package/lib/hooks/navigation/usePathname.js.map +1 -0
- package/lib/hooks/navigation/useSearchParamState.d.ts +11 -0
- package/lib/hooks/navigation/useSearchParamState.js +153 -0
- package/lib/hooks/navigation/useSearchParamState.js.map +1 -0
- package/lib/hooks/random/index.d.ts +1 -0
- package/lib/hooks/random/index.js +16 -0
- package/lib/hooks/random/index.js.map +1 -0
- package/lib/hooks/sockets/index.d.ts +4 -0
- package/lib/hooks/sockets/index.js +19 -0
- package/lib/hooks/sockets/index.js.map +1 -0
- package/lib/hooks/stores/auth.d.ts +9 -0
- package/lib/hooks/stores/auth.js +19 -0
- package/lib/hooks/stores/auth.js.map +1 -0
- package/lib/hooks/stores/client.d.ts +8 -0
- package/lib/hooks/stores/client.js +57 -0
- package/lib/hooks/stores/client.js.map +1 -0
- package/lib/hooks/stores/config.d.ts +12 -0
- package/lib/hooks/stores/config.js +15 -0
- package/lib/hooks/stores/config.js.map +1 -0
- package/lib/hooks/stores/dropdown.d.ts +43 -0
- package/lib/hooks/stores/dropdown.js +105 -0
- package/lib/hooks/stores/dropdown.js.map +1 -0
- package/lib/hooks/stores/header.d.ts +8 -0
- package/lib/hooks/stores/header.js +10 -0
- package/lib/hooks/stores/header.js.map +1 -0
- package/lib/hooks/stores/index.d.ts +9 -0
- package/lib/hooks/stores/index.js +26 -0
- package/lib/hooks/stores/index.js.map +1 -0
- package/lib/hooks/stores/modal.d.ts +30 -0
- package/lib/hooks/stores/modal.js +35 -0
- package/lib/hooks/stores/modal.js.map +1 -0
- package/lib/hooks/stores/shortcut.d.ts +14 -0
- package/lib/hooks/stores/shortcut.js +60 -0
- package/lib/hooks/stores/shortcut.js.map +1 -0
- package/lib/hooks/stores/theme.d.ts +8 -0
- package/lib/hooks/stores/theme.js +29 -0
- package/lib/hooks/stores/theme.js.map +1 -0
- package/lib/hooks/stores/tooltip.d.ts +29 -0
- package/lib/hooks/stores/tooltip.js +96 -0
- package/lib/hooks/stores/tooltip.js.map +1 -0
- package/lib/hooks/styles/index.d.ts +8 -0
- package/lib/hooks/styles/index.js +35 -0
- package/lib/hooks/styles/index.js.map +1 -0
- package/lib/hooks/styles/useDisableScrollEffect.d.ts +2 -0
- package/lib/hooks/styles/useDisableScrollEffect.js +28 -0
- package/lib/hooks/styles/useDisableScrollEffect.js.map +1 -0
- package/lib/hooks/styles/useDocumentStates.d.ts +9 -0
- package/lib/hooks/styles/useDocumentStates.js +36 -0
- package/lib/hooks/styles/useDocumentStates.js.map +1 -0
- package/lib/hooks/styles/useDropdownProps.d.ts +8 -0
- package/lib/hooks/styles/useDropdownProps.js +49 -0
- package/lib/hooks/styles/useDropdownProps.js.map +1 -0
- package/lib/hooks/styles/useElementStates.d.ts +13 -0
- package/lib/hooks/styles/useElementStates.js +86 -0
- package/lib/hooks/styles/useElementStates.js.map +1 -0
- package/lib/hooks/styles/useGrid.d.ts +1 -0
- package/lib/hooks/styles/useGrid.js +12 -0
- package/lib/hooks/styles/useGrid.js.map +1 -0
- package/lib/hooks/styles/useHoverProps.d.ts +11 -0
- package/lib/hooks/styles/useHoverProps.js +26 -0
- package/lib/hooks/styles/useHoverProps.js.map +1 -0
- package/lib/hooks/styles/useScrollSelectedIntoViewEffect.d.ts +3 -0
- package/lib/hooks/styles/useScrollSelectedIntoViewEffect.js +39 -0
- package/lib/hooks/styles/useScrollSelectedIntoViewEffect.js.map +1 -0
- package/lib/types/components.d.ts +3 -0
- package/lib/types/components.js +3 -0
- package/lib/types/components.js.map +1 -0
- package/lib/types/styles/index.d.ts +1 -0
- package/lib/types/styles/index.js +3 -0
- package/lib/types/styles/index.js.map +1 -0
- package/lib/types/styles/theme.d.ts +84 -0
- package/lib/types/styles/theme.js +3 -0
- package/lib/types/styles/theme.js.map +1 -0
- package/lib/types/utils.d.ts +1 -0
- package/lib/types/utils.js +3 -0
- package/lib/types/utils.js.map +1 -0
- package/lib/utils/avatar/index.d.ts +3 -0
- package/lib/utils/avatar/index.js +26 -0
- package/lib/utils/avatar/index.js.map +1 -0
- package/lib/utils/clientStorages/codeEditor.d.ts +4 -0
- package/lib/utils/clientStorages/codeEditor.js +51 -0
- package/lib/utils/clientStorages/codeEditor.js.map +1 -0
- package/lib/utils/clientStorages/common.d.ts +16 -0
- package/lib/utils/clientStorages/common.js +105 -0
- package/lib/utils/clientStorages/common.js.map +1 -0
- package/lib/utils/clientStorages/config.d.ts +8 -0
- package/lib/utils/clientStorages/config.js +79 -0
- package/lib/utils/clientStorages/config.js.map +1 -0
- package/lib/utils/clientStorages/cookieable.d.ts +8 -0
- package/lib/utils/clientStorages/cookieable.js +22 -0
- package/lib/utils/clientStorages/cookieable.js.map +1 -0
- package/lib/utils/clientStorages/index.d.ts +5 -0
- package/lib/utils/clientStorages/index.js +22 -0
- package/lib/utils/clientStorages/index.js.map +1 -0
- package/lib/utils/clientStorages/login.d.ts +5 -0
- package/lib/utils/clientStorages/login.js +25 -0
- package/lib/utils/clientStorages/login.js.map +1 -0
- package/lib/utils/clipboards/index.d.ts +4 -0
- package/lib/utils/clipboards/index.js +41 -0
- package/lib/utils/clipboards/index.js.map +1 -0
- package/lib/utils/downloads/index.d.ts +1 -0
- package/lib/utils/downloads/index.js +16 -0
- package/lib/utils/downloads/index.js.map +1 -0
- package/lib/utils/hrefs/cell.d.ts +1 -0
- package/lib/utils/hrefs/cell.js +15 -0
- package/lib/utils/hrefs/cell.js.map +1 -0
- package/lib/utils/hrefs/index.d.ts +1 -0
- package/lib/utils/hrefs/index.js +18 -0
- package/lib/utils/hrefs/index.js.map +1 -0
- package/lib/utils/image/convert.d.ts +3 -0
- package/lib/utils/image/convert.js +90 -0
- package/lib/utils/image/convert.js.map +1 -0
- package/lib/utils/image/index.d.ts +1 -0
- package/lib/utils/image/index.js +18 -0
- package/lib/utils/image/index.js.map +1 -0
- package/lib/utils/instance/index.d.ts +4 -0
- package/lib/utils/instance/index.js +11 -0
- package/lib/utils/instance/index.js.map +1 -0
- package/lib/utils/shortcuts/index.d.ts +5 -0
- package/lib/utils/shortcuts/index.js +78 -0
- package/lib/utils/shortcuts/index.js.map +1 -0
- package/lib/utils/socket/index.d.ts +15 -0
- package/lib/utils/socket/index.js +105 -0
- package/lib/utils/socket/index.js.map +1 -0
- package/lib/utils/stores/index.d.ts +1 -0
- package/lib/utils/stores/index.js +18 -0
- package/lib/utils/stores/index.js.map +1 -0
- package/lib/utils/styles/color.d.ts +89 -0
- package/lib/utils/styles/color.js +284 -0
- package/lib/utils/styles/color.js.map +1 -0
- package/lib/utils/styles/global.d.ts +19 -0
- package/lib/utils/styles/global.js +32 -0
- package/lib/utils/styles/global.js.map +1 -0
- package/lib/utils/styles/index.d.ts +4 -0
- package/lib/utils/styles/index.js +27 -0
- package/lib/utils/styles/index.js.map +1 -0
- package/lib/utils/styles/theme.d.ts +224 -0
- package/lib/utils/styles/theme.js +19 -0
- package/lib/utils/styles/theme.js.map +1 -0
- package/lib/utils/styles/wrapper.d.ts +5 -0
- package/lib/utils/styles/wrapper.js +164 -0
- package/lib/utils/styles/wrapper.js.map +1 -0
- package/lib/utils/submits/index.d.ts +11 -0
- package/lib/utils/submits/index.js +83 -0
- package/lib/utils/submits/index.js.map +1 -0
- package/lib/utils/toasts/index.d.ts +2 -0
- package/lib/utils/toasts/index.js +20 -0
- package/lib/utils/toasts/index.js.map +1 -0
- package/package.json +58 -3
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const components_1 = require("../../../constants/components");
|
|
9
|
+
const atoms_1 = require("../../../components/atoms");
|
|
10
|
+
const lottieMap = Object.fromEntries(Object.entries(components_1.lotties).map(([type, config]) => [
|
|
11
|
+
type,
|
|
12
|
+
[
|
|
13
|
+
config.format === 'dot-lottie' ? 'src' : 'data',
|
|
14
|
+
config.format === 'dot-lottie'
|
|
15
|
+
? () => import(`../../../assets/lotties/${type}.lottie`)
|
|
16
|
+
: () => null,
|
|
17
|
+
],
|
|
18
|
+
]));
|
|
19
|
+
const cachedLotties = new Map();
|
|
20
|
+
exports.default = ({ type, ..._props }) => {
|
|
21
|
+
const [props, setProps] = react_1.default.useState(cachedLotties.get(type) || {});
|
|
22
|
+
react_1.default.useEffect(() => {
|
|
23
|
+
if (!(type in lottieMap))
|
|
24
|
+
return;
|
|
25
|
+
if (cachedLotties.has(type)) {
|
|
26
|
+
setProps(() => cachedLotties.get(type));
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
(async () => {
|
|
31
|
+
const [key, _value] = lottieMap[type];
|
|
32
|
+
const { default: value } = await _value();
|
|
33
|
+
cachedLotties.set(type, { [key]: [value] });
|
|
34
|
+
setProps({ [key]: [value] });
|
|
35
|
+
})();
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
console.error(error);
|
|
39
|
+
setProps({});
|
|
40
|
+
}
|
|
41
|
+
}, [type]);
|
|
42
|
+
return (0, jsx_runtime_1.jsx)(atoms_1.LottieContainer, { ...props, ..._props });
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=Lottie.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Lottie.js","sourceRoot":"","sources":["../../../../src/components/atoms/lotties/Lottie.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,uDAA6D;AAE7D,8CAAqD;AAMrD,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAClC,MAAM,CAAC,OAAO,CAAC,oBAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;IAC9C,IAAI;IACJ;QACE,MAAM,CAAC,MAAM,KAAK,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM;QAC/C,MAAM,CAAC,MAAM,KAAK,YAAY;YAC5B,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,2BAA2B,IAAI,SAAS,CAAC;YACxD,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI;KACf;CACF,CAAC,CACyE,CAAC;AAE9E,MAAM,aAAa,GAAG,IAAI,GAAG,EAA+C,CAAC;AAE7E,kBAAe,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,EAAS,EAAE,EAAE;IAC5C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,eAAK,CAAC,QAAQ,CACtC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAC9B,CAAC;IACF,eAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,CAAC,CAAC,IAAI,IAAI,SAAS,CAAC;YAAE,OAAO;QACjC,IAAI,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,QAAQ,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC,CAAC;YACzC,OAAO;QACT,CAAC;QACD,IAAI,CAAC;YACH,CAAC,KAAK,IAAI,EAAE;gBACV,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;gBACtC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,EAAE,CAAC;gBAC1C,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBAC5C,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC/B,CAAC,CAAC,EAAE,CAAC;QACP,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACrB,QAAQ,CAAC,EAAE,CAAC,CAAC;QACf,CAAC;IACH,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IACX,OAAO,uBAAC,uBAAe,OAAK,KAAK,KAAM,MAAM,GAAI,CAAC;AACpD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Lottie } from './Lottie';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Lottie = void 0;
|
|
7
|
+
var Lottie_1 = require("./Lottie");
|
|
8
|
+
Object.defineProperty(exports, "Lottie", { enumerable: true, get: function () { return __importDefault(Lottie_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/lotties/index.tsx"],"names":[],"mappings":";;;;;;AAAA,mCAA6C;AAApC,iHAAA,OAAO,OAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './editors/only_csr';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./editors/only_csr"), exports);
|
|
18
|
+
//# sourceMappingURL=only_csr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"only_csr.js","sourceRoot":"","sources":["../../../src/components/atoms/only_csr.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PaginationSize, type PaginationType } from '../../../constants/components';
|
|
3
|
+
import type { Palette } from '../../../constants/styles';
|
|
4
|
+
import { Container } from '../../../components/atoms';
|
|
5
|
+
type Props = {
|
|
6
|
+
type?: PaginationType;
|
|
7
|
+
size?: PaginationSize;
|
|
8
|
+
selected?: number;
|
|
9
|
+
total?: number;
|
|
10
|
+
siblingCount?: number;
|
|
11
|
+
boundaryCount?: number;
|
|
12
|
+
onChangeSelected?: (page: number) => void;
|
|
13
|
+
palette?: Palette;
|
|
14
|
+
} & React.ComponentProps<typeof Container>;
|
|
15
|
+
export declare const paginationAutoSteps: readonly [{
|
|
16
|
+
readonly siblingCount: 3;
|
|
17
|
+
readonly boundaryCount: 2;
|
|
18
|
+
}, {
|
|
19
|
+
readonly siblingCount: 3;
|
|
20
|
+
readonly boundaryCount: 1;
|
|
21
|
+
}, {
|
|
22
|
+
readonly siblingCount: 2;
|
|
23
|
+
readonly boundaryCount: 1;
|
|
24
|
+
}, {
|
|
25
|
+
readonly siblingCount: 2;
|
|
26
|
+
readonly boundaryCount: 0;
|
|
27
|
+
}];
|
|
28
|
+
declare const _default: React.MemoExoticComponent<({ type, size, selected: page, total, siblingCount, boundaryCount, onChangeSelected, palette, ...props }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.paginationAutoSteps = void 0;
|
|
8
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
+
const react_1 = __importDefault(require("react"));
|
|
10
|
+
const styles_1 = require("../../../utils/styles");
|
|
11
|
+
const styles_2 = require("../../../hooks/styles");
|
|
12
|
+
const atoms_1 = require("../../../components/atoms");
|
|
13
|
+
const textTypeBySize = {
|
|
14
|
+
small: 'x_small',
|
|
15
|
+
medium: 'small',
|
|
16
|
+
large: 'medium',
|
|
17
|
+
};
|
|
18
|
+
const iconSizeBySize = {
|
|
19
|
+
small: 12,
|
|
20
|
+
medium: 16,
|
|
21
|
+
large: 20,
|
|
22
|
+
};
|
|
23
|
+
exports.paginationAutoSteps = [
|
|
24
|
+
{ siblingCount: 3, boundaryCount: 2 },
|
|
25
|
+
{ siblingCount: 3, boundaryCount: 1 },
|
|
26
|
+
{ siblingCount: 2, boundaryCount: 1 },
|
|
27
|
+
{ siblingCount: 2, boundaryCount: 0 },
|
|
28
|
+
];
|
|
29
|
+
const ELLIPSIS = 'ellipsis';
|
|
30
|
+
const INDEX = 'index';
|
|
31
|
+
const range = (start, end) => Array.from({ length: end - start + 1 }, (_, index) => start + index);
|
|
32
|
+
const getPaginationNumericItems = (page, total, siblingCount, boundaryCount) => {
|
|
33
|
+
const totalCells = boundaryCount * 2 + siblingCount * 2 + 5;
|
|
34
|
+
if (totalCells >= total)
|
|
35
|
+
return range(1, total);
|
|
36
|
+
const leftSibling = Math.max(page - siblingCount, boundaryCount + 2);
|
|
37
|
+
const rightSibling = Math.min(page + siblingCount, total - boundaryCount - 1);
|
|
38
|
+
const showLeftEllipsis = leftSibling > boundaryCount + 2;
|
|
39
|
+
const showRightEllipsis = rightSibling < total - boundaryCount - 1;
|
|
40
|
+
return [
|
|
41
|
+
...range(1, boundaryCount),
|
|
42
|
+
...(showLeftEllipsis ? [ELLIPSIS] : [boundaryCount + 1]),
|
|
43
|
+
...range(leftSibling, rightSibling),
|
|
44
|
+
...(showRightEllipsis ? [ELLIPSIS] : [total - boundaryCount]),
|
|
45
|
+
...range(total - boundaryCount + 1, total),
|
|
46
|
+
];
|
|
47
|
+
};
|
|
48
|
+
const getNumericLayoutWidth = (items, size, numberCellWidth) => {
|
|
49
|
+
const cellHeight = styles_1.theme.size.height.base[size];
|
|
50
|
+
const gap = styles_1.theme.size.margin.base.x_small;
|
|
51
|
+
const numberCount = items.filter(item => typeof item === 'number').length;
|
|
52
|
+
const squareCount = items.length - numberCount;
|
|
53
|
+
const childCount = items.length + 2;
|
|
54
|
+
return (cellHeight * 2 +
|
|
55
|
+
numberCount * numberCellWidth +
|
|
56
|
+
squareCount * cellHeight +
|
|
57
|
+
(childCount - 1) * gap);
|
|
58
|
+
};
|
|
59
|
+
const PageCell = ({ size, palette, isSelected = false, children, ...props }) => {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
const [hoverProps, isHover] = (0, styles_2.useHoverProps)();
|
|
62
|
+
return ((0, jsx_runtime_1.jsx)(atoms_1.ClickableContainer, { "$display": "inline-flex", "$alignItems": "center", "$justifyContent": "center", "$minWidth": styles_1.theme.size.height.base[size], "$height": styles_1.theme.size.height.base[size], "$paddingHorizontal": styles_1.theme.size.margin.base.x_small, "$background": (_a = styles_1.theme.color.palettes[palette]) === null || _a === void 0 ? void 0 : _a[isSelected
|
|
63
|
+
? 'background-selected'
|
|
64
|
+
: isHover
|
|
65
|
+
? 'background-hovered'
|
|
66
|
+
: 'background-primary'], "$border": `1px solid ${(_b = styles_1.theme.color.palettes[palette]) === null || _b === void 0 ? void 0 : _b[isSelected
|
|
67
|
+
? 'border-selected'
|
|
68
|
+
: isHover
|
|
69
|
+
? 'border-hovered'
|
|
70
|
+
: 'border-primary']}`, "$borderRadius": styles_1.theme.size.borderRadius.small, "$transition": true, ...hoverProps, ...props, children: children }));
|
|
71
|
+
};
|
|
72
|
+
const ArrowCell = ({ size, palette, icon, isDisabled = false, ...props }) => {
|
|
73
|
+
var _a, _b, _c;
|
|
74
|
+
const [hoverProps, isHover] = (0, styles_2.useHoverProps)();
|
|
75
|
+
return ((0, jsx_runtime_1.jsx)(atoms_1.ClickableContainer, { "$display": "inline-flex", "$alignItems": "center", "$justifyContent": "center", "$size": `${styles_1.theme.size.height.base[size]}px`, "$background": (_a = styles_1.theme.color.palettes[palette]) === null || _a === void 0 ? void 0 : _a[isHover && !isDisabled ? 'background-hovered' : 'background-primary'], "$border": `1px solid ${(_b = styles_1.theme.color.palettes[palette]) === null || _b === void 0 ? void 0 : _b['border-primary']}`, "$borderRadius": styles_1.theme.size.borderRadius.small, "$cursor": isDisabled ? 'not-allowed' : 'pointer', "$opacity": isDisabled ? 0.4 : 1, "$nonePointerEvents": isDisabled, "$transition": true, ...hoverProps, ...props, children: (0, jsx_runtime_1.jsx)(atoms_1.Icon, { type: icon, "$autoFill": (_c = styles_1.theme.color.palettes[palette]) === null || _c === void 0 ? void 0 : _c['content-primary'], "$size": `${iconSizeBySize[size]}px`, "$transition": true }) }));
|
|
76
|
+
};
|
|
77
|
+
exports.default = react_1.default.memo(({ type = 'auto', size = 'medium', selected: page = 1, total = 1, siblingCount = 2, boundaryCount = 3, onChangeSelected, palette = 'button-chip', ...props }) => {
|
|
78
|
+
const containerRef = react_1.default.useRef(null);
|
|
79
|
+
const labelRef = react_1.default.useRef(null);
|
|
80
|
+
const { offsetWidth: availableWidth } = (0, styles_2.useElementStates)(containerRef);
|
|
81
|
+
const { offsetWidth: labelWidth } = (0, styles_2.useElementStates)(labelRef);
|
|
82
|
+
const numberCellWidth = react_1.default.useMemo(() => Math.max(styles_1.theme.size.height.base[size], (labelWidth !== null && labelWidth !== void 0 ? labelWidth : 0) + styles_1.theme.size.margin.base.x_small * 2), [labelWidth, size]);
|
|
83
|
+
const autoStep = react_1.default.useMemo(() => {
|
|
84
|
+
if (type !== 'auto')
|
|
85
|
+
return undefined;
|
|
86
|
+
if (availableWidth === undefined)
|
|
87
|
+
return exports.paginationAutoSteps[0];
|
|
88
|
+
const midPage = Math.ceil(total / 2);
|
|
89
|
+
return exports.paginationAutoSteps.find(({ siblingCount: s, boundaryCount: b }) => {
|
|
90
|
+
const items = getPaginationNumericItems(midPage, total, s, b);
|
|
91
|
+
return (getNumericLayoutWidth(items, size, numberCellWidth) <=
|
|
92
|
+
availableWidth);
|
|
93
|
+
});
|
|
94
|
+
}, [type, availableWidth, total, size, numberCellWidth]);
|
|
95
|
+
const numericItems = react_1.default.useMemo(() => {
|
|
96
|
+
if (type === 'index')
|
|
97
|
+
return [INDEX];
|
|
98
|
+
if (type === 'auto') {
|
|
99
|
+
if (!autoStep)
|
|
100
|
+
return [INDEX];
|
|
101
|
+
return getPaginationNumericItems(page, total, autoStep.siblingCount, autoStep.boundaryCount);
|
|
102
|
+
}
|
|
103
|
+
return getPaginationNumericItems(page, total, siblingCount, boundaryCount);
|
|
104
|
+
}, [type, autoStep, page, total, siblingCount, boundaryCount]);
|
|
105
|
+
const movePage = react_1.default.useCallback((next) => {
|
|
106
|
+
if (next < 1 || next > total || next === page)
|
|
107
|
+
return;
|
|
108
|
+
onChangeSelected === null || onChangeSelected === void 0 ? void 0 : onChangeSelected(next);
|
|
109
|
+
}, [onChangeSelected, page, total]);
|
|
110
|
+
const onClickPrev = react_1.default.useCallback(() => movePage(page - 1), [movePage, page]);
|
|
111
|
+
const onClickNext = react_1.default.useCallback(() => movePage(page + 1), [movePage, page]);
|
|
112
|
+
return ((0, jsx_runtime_1.jsxs)(atoms_1.Container, { ref: containerRef, "$display": "flex", "$alignItems": "center", "$justifyContent": "center", "$gap": styles_1.theme.size.margin.base.x_small, ...props, children: [type === 'auto' && ((0, jsx_runtime_1.jsx)(atoms_1.Text, { ref: labelRef, value: total, type: textTypeBySize[size], "$position": "absolute", "$opacity": 0, "$nonePointerEvents": true })), (0, jsx_runtime_1.jsx)(ArrowCell, { size: size, icon: "hero/chevron-left-outline", isDisabled: page <= 1, onClick: onClickPrev, palette: palette }), numericItems.map((item, index) => {
|
|
113
|
+
var _a, _b, _c;
|
|
114
|
+
return item === INDEX ? ((0, jsx_runtime_1.jsx)(atoms_1.Text, { value: `${page} of ${total}`, type: textTypeBySize[size], "$color": (_a = styles_1.theme.color.palettes[palette]) === null || _a === void 0 ? void 0 : _a['content-primary'], "$paddingHorizontal": styles_1.theme.size.margin.base.x_small }, "index")) : item === ELLIPSIS ? ((0, jsx_runtime_1.jsx)(atoms_1.Container, { "$display": "inline-flex", "$alignItems": "center", "$justifyContent": "center", "$minWidth": styles_1.theme.size.height.base[size], "$height": styles_1.theme.size.height.base[size], children: (0, jsx_runtime_1.jsx)(atoms_1.Icon, { type: "hero/ellipsis-horizontal-mini", "$autoFill": (_b = styles_1.theme.color.palettes[palette]) === null || _b === void 0 ? void 0 : _b['content-primary'], "$size": `${iconSizeBySize[size]}px` }) }, `ellipsis-${index}`)) : ((0, jsx_runtime_1.jsx)(PageCell, { size: size, isSelected: item === page, onClick: () => movePage(item), palette: palette, children: (0, jsx_runtime_1.jsx)(atoms_1.Text, { value: item, type: textTypeBySize[size], "$color": (_c = styles_1.theme.color.palettes[palette]) === null || _c === void 0 ? void 0 : _c[item === page ? 'content-selected' : 'content-primary'], "$transition": true }) }, item));
|
|
115
|
+
}), (0, jsx_runtime_1.jsx)(ArrowCell, { size: size, icon: "hero/chevron-right-outline", isDisabled: page >= total, onClick: onClickNext, palette: palette })] }));
|
|
116
|
+
});
|
|
117
|
+
//# sourceMappingURL=Pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../../src/components/atoms/paginations/Pagination.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;AAEb,kDAA0B;AAS1B,2CAAuC;AAEvC,2CAAiE;AAEjE,8CAA+E;AA0B/E,MAAM,cAAc,GAAG;IACrB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,OAAO;IACf,KAAK,EAAE,QAAQ;CAIhB,CAAC;AAEF,MAAM,cAAc,GAAG;IACrB,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;CAIV,CAAC;AAEW,QAAA,mBAAmB,GAAG;IACjC,EAAE,YAAY,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE;IACrC,EAAE,YAAY,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE;IACrC,EAAE,YAAY,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC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AgBA,CACZ,CAAA;aAAA,CACF,EACD,uBAAC,SAAS,IACR,IAAI,EAAE,IAAI,EACV,IAAI,EAAC,4BAA4B,EACjC,UAAU,EAAE,IAAI,IAAI,KAAK,EACzB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,OAAO,GAChB,IACQ,CACb,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Pagination } from './Pagination';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Pagination = void 0;
|
|
7
|
+
var Pagination_1 = require("./Pagination");
|
|
8
|
+
Object.defineProperty(exports, "Pagination", { enumerable: true, get: function () { return __importDefault(Pagination_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/paginations/index.tsx"],"names":[],"mappings":";;;;;;AAAA,2CAAqD;AAA5C,yHAAA,OAAO,OAAc"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Container } from '../../../components/atoms';
|
|
3
|
+
type Props = React.ComponentProps<typeof Container>;
|
|
4
|
+
declare const _default: React.MemoExoticComponent<({ ...props }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const styles_1 = require("../../../utils/styles");
|
|
10
|
+
const stores_1 = require("../../../hooks/stores");
|
|
11
|
+
const styles_2 = require("../../../hooks/styles");
|
|
12
|
+
const atoms_1 = require("../../../components/atoms");
|
|
13
|
+
const ThemeButton = ({ isSelected = false, icon, ...props }) => {
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(atoms_1.ClickableContainer, { "$display": "flex", "$alignItems": "center", "$justifyContent": "center", "$size": styles_1.theme.size.height.base.medium - 2, ...props, children: (0, jsx_runtime_1.jsx)(atoms_1.Icon, { type: icon, "$autoFill": styles_1.theme.color.palettes.body[isSelected ? 'content-primary' : 'content-secondary'], "$size": styles_1.theme.size.height.base.medium * 0.6, "$transition": true }) }));
|
|
15
|
+
};
|
|
16
|
+
exports.default = react_1.default.memo(({ ...props }) => {
|
|
17
|
+
const { styleConfig, setStyleConfig } = (0, stores_1.useConfigStore)();
|
|
18
|
+
const { simplifiedTheme: value } = styleConfig;
|
|
19
|
+
const [systemHoverProps, isHoverSystem] = (0, styles_2.useHoverProps)();
|
|
20
|
+
const [lightHoverProps, isHoverLight] = (0, styles_2.useHoverProps)();
|
|
21
|
+
const [darkHoverProps, isHoverDark] = (0, styles_2.useHoverProps)();
|
|
22
|
+
const hoveredButton = react_1.default.useMemo(() => isHoverSystem
|
|
23
|
+
? 'system'
|
|
24
|
+
: isHoverLight
|
|
25
|
+
? 'light'
|
|
26
|
+
: isHoverDark
|
|
27
|
+
? 'dark'
|
|
28
|
+
: undefined, [isHoverSystem, isHoverLight, isHoverDark]);
|
|
29
|
+
const onClickSystem = react_1.default.useCallback(() => setStyleConfig({ ...styleConfig, simplifiedTheme: 'system' }), [setStyleConfig, styleConfig]);
|
|
30
|
+
const onClickLight = react_1.default.useCallback(() => setStyleConfig({ ...styleConfig, simplifiedTheme: 'light' }), [setStyleConfig, styleConfig]);
|
|
31
|
+
const onClickDark = react_1.default.useCallback(() => setStyleConfig({ ...styleConfig, simplifiedTheme: 'dark' }), [setStyleConfig, styleConfig]);
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(atoms_1.Container, { "$position": "relative", "$height": styles_1.theme.size.height.base.medium, "$width": (styles_1.theme.size.height.base.medium - 2) * 3 + 2, "$border": `1px solid ${styles_1.theme.color.palettes.body['border-primary']}`, "$background": styles_1.theme.color.palettes.body['background-primary'], "$borderRadius": styles_1.theme.size.height.base.medium / 2, "$transition": "background", "$overflow": true, ...props, children: [(0, jsx_runtime_1.jsx)(atoms_1.Container, { "$position": "absolute", "$top": -1, "$left": {
|
|
33
|
+
system: -1,
|
|
34
|
+
light: styles_1.theme.size.height.base.medium - 2 - 1,
|
|
35
|
+
dark: (styles_1.theme.size.height.base.medium - 2) * 2 - 1,
|
|
36
|
+
}[hoveredButton || value], "$size": styles_1.theme.size.height.base.medium, "$border": `1px solid ${styles_1.theme.color.palettes.body['border-primary']}`, "$background": styles_1.theme.color.palettes.body['background-selected'], "$borderRadius": styles_1.theme.size.height.base.medium / 2, "$transition": "background, left, border", "$nonePointerEvents": true }), (0, jsx_runtime_1.jsxs)(atoms_1.Container, { "$display": "flex", "$alignItems": "center", "$position": "absolute", "$top": 0, "$left": 0, "$width": (styles_1.theme.size.height.base.medium - 2) * 3, "$height": styles_1.theme.size.height.base.medium - 2, children: [(0, jsx_runtime_1.jsx)(ThemeButton, { icon: "hero/computer-desktop-outline", isSelected: value === 'system', onClick: onClickSystem, ...systemHoverProps }), (0, jsx_runtime_1.jsx)(ThemeButton, { icon: "hero/sun-outline", isSelected: value === 'light', onClick: onClickLight, ...lightHoverProps }), (0, jsx_runtime_1.jsx)(ThemeButton, { icon: "hero/moon-outline", isSelected: value === 'dark', onClick: onClickDark, ...darkHoverProps })] })] }));
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=ThemePicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemePicker.js","sour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Q,IACF,CACb,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ThemePicker } from './ThemePicker';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ThemePicker = void 0;
|
|
7
|
+
var ThemePicker_1 = require("./ThemePicker");
|
|
8
|
+
Object.defineProperty(exports, "ThemePicker", { enumerable: true, get: function () { return __importDefault(ThemePicker_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/pickers/index.tsx"],"names":[],"mappings":";;;;;;AAAA,6CAAuD;AAA9C,2HAAA,OAAO,OAAe"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RecaptchaSize } from '../../../constants/components';
|
|
3
|
+
import { Container } from '../../../components/atoms';
|
|
4
|
+
type Props = {
|
|
5
|
+
value?: string;
|
|
6
|
+
onChangeValue?: (value: string) => void;
|
|
7
|
+
size?: RecaptchaSize;
|
|
8
|
+
} & React.ComponentProps<typeof Container>;
|
|
9
|
+
declare const _default: ({ value, onChangeValue, size, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const constants_1 = __importDefault(require("@euler-edu/utils/constants"));
|
|
9
|
+
const styles_1 = require("../../../utils/styles");
|
|
10
|
+
const theme_1 = require("../../../hooks/stores/theme");
|
|
11
|
+
const atoms_1 = require("../../../components/atoms");
|
|
12
|
+
const SCRIPT_ID = 'recaptcha-v2-script';
|
|
13
|
+
const widthBySize = {
|
|
14
|
+
normal: 304,
|
|
15
|
+
compact: 164,
|
|
16
|
+
};
|
|
17
|
+
const heightBySize = {
|
|
18
|
+
normal: 78,
|
|
19
|
+
compact: 144,
|
|
20
|
+
};
|
|
21
|
+
exports.default = ({ value, onChangeValue, size = 'normal', ...props }) => {
|
|
22
|
+
const [isLoading, setIsLoading] = react_1.default.useState(true);
|
|
23
|
+
const ref = react_1.default.useRef(null);
|
|
24
|
+
const widgetIdRef = react_1.default.useRef(null);
|
|
25
|
+
const { theme: _theme } = (0, theme_1.useThemeStore)();
|
|
26
|
+
const onLoad = react_1.default.useCallback(() => {
|
|
27
|
+
if (!(window === null || window === void 0 ? void 0 : window.grecaptcha)) {
|
|
28
|
+
console.error('Failed to load Google reCAPTCHA script');
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
window.grecaptcha.ready(() => {
|
|
32
|
+
if (!ref.current)
|
|
33
|
+
return;
|
|
34
|
+
if (!constants_1.default.secrets.recaptcha.siteKey) {
|
|
35
|
+
console.error('Missing reCAPTCHA site key');
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
widgetIdRef.current = window.grecaptcha.render(ref.current, {
|
|
39
|
+
size,
|
|
40
|
+
theme: _theme.startsWith('dark') ? 'dark' : 'light',
|
|
41
|
+
sitekey: constants_1.default.secrets.recaptcha.siteKey,
|
|
42
|
+
callback: (t) => onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue(t),
|
|
43
|
+
'expired-callback': () => onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue(''),
|
|
44
|
+
'error-callback': () => onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue(''),
|
|
45
|
+
});
|
|
46
|
+
setIsLoading(false);
|
|
47
|
+
});
|
|
48
|
+
}, [onChangeValue, _theme, size]);
|
|
49
|
+
react_1.default.useEffect(() => {
|
|
50
|
+
const existing = document.getElementById(SCRIPT_ID);
|
|
51
|
+
if (existing) {
|
|
52
|
+
existing.addEventListener('load', onLoad);
|
|
53
|
+
return () => {
|
|
54
|
+
var _a;
|
|
55
|
+
if (widgetIdRef.current) {
|
|
56
|
+
(_a = window.grecaptcha) === null || _a === void 0 ? void 0 : _a.reset(widgetIdRef.current);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const script = document.createElement('script');
|
|
61
|
+
script.id = SCRIPT_ID;
|
|
62
|
+
script.src = 'https://www.google.com/recaptcha/api.js?render=explicit';
|
|
63
|
+
script.async = true;
|
|
64
|
+
script.defer = true;
|
|
65
|
+
script.onload = onLoad;
|
|
66
|
+
document.body.appendChild(script);
|
|
67
|
+
return () => {
|
|
68
|
+
var _a;
|
|
69
|
+
if (widgetIdRef.current) {
|
|
70
|
+
(_a = window.grecaptcha) === null || _a === void 0 ? void 0 : _a.reset(widgetIdRef.current);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}, [onLoad]);
|
|
74
|
+
react_1.default.useEffect(() => {
|
|
75
|
+
if (value)
|
|
76
|
+
onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue('');
|
|
77
|
+
}, []);
|
|
78
|
+
return ((0, jsx_runtime_1.jsxs)(atoms_1.Container, { "$position": "relative", "$width": widthBySize[size], "$height": heightBySize[size], "$background": styles_1.theme.color.palettes.body['background-primary'], "$overflow": true, ...props, children: [isLoading && ((0, jsx_runtime_1.jsx)(atoms_1.Container, { "$display": "flex", "$alignItems": "center", "$justifyContent": "center", "$width": widthBySize[size], "$height": heightBySize[size], "$border": `1px solid ${styles_1.theme.color.palettes.body['border-primary']}`, "$borderRadius": styles_1.theme.size.borderRadius.small, children: (0, jsx_runtime_1.jsx)(atoms_1.Icon, { type: "hero/spinner-outline" }) })), (0, jsx_runtime_1.jsx)(atoms_1.Container, { ref: ref })] }));
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=Recaptcha.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Recaptcha.js","sourceRoot":"","sources":["../../../../src/components/atoms/recaptchas/Recaptcha.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,2EAAmD;AAInD,2CAAuC;AAEvC,gDAAqD;AAErD,8CAAqD;AAQrD,MAAM,SAAS,GAAG,qBAAqB,CAAC;AAExC,MAAM,WAAW,GAAG;IAClB,MAAM,EAAE,GAAG;IACX,OAAO,EAAE,GAAG;CAIb,CAAC;AACF,MAAM,YAAY,GAAG;IACnB,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,GAAG;CAIb,CAAC;AAEF,kBAAe,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,GAAG,QAAQ,EAAE,GAAG,KAAK,EAAS,EAAE,EAAE;IAC5E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvD,MAAM,GAAG,GAAG,eAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC/C,MAAM,WAAW,GAAG,eAAK,CAAC,MAAM,CAAgB,IAAI,CAAC,CAAC;IACtD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAA,qBAAa,GAAE,CAAC;IAE1C,MAAM,MAAM,GAAG,eAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QACpC,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,CAAA,EAAE,CAAC;YACxB,OAAO,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;YACxD,OAAO;QACT,CAAC;QACD,MAAM,CAAC,UAAU,CAAC,KAA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AC,IAAI,CAAC,YAAY,CAAC,KAAK,YAE5C,uBAAC,YAAI,IAAC,IAAI,EAAC,sBAAsB,GAAG,GAC1B,CACb,EACD,uBAAC,iBAAS,IAAC,GAAG,EAAE,GAAG,GAAI,IACb,CACb,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Recaptcha } from './Recaptcha';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Recaptcha = void 0;
|
|
7
|
+
var Recaptcha_1 = require("./Recaptcha");
|
|
8
|
+
Object.defineProperty(exports, "Recaptcha", { enumerable: true, get: function () { return __importDefault(Recaptcha_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/recaptchas/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yCAAmD;AAA1C,uHAAA,OAAO,OAAa"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Platform } from '@euler-edu/constant/clients';
|
|
3
|
+
import type { Shortcut, ShortcutKey } from '@euler-edu/constant/shortcuts';
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<{
|
|
5
|
+
value?: Shortcut | ShortcutKey;
|
|
6
|
+
platform?: Platform;
|
|
7
|
+
} & Omit<{
|
|
8
|
+
type?: "small" | "medium" | "large" | "x_large" | "x_small" | "x_small-bold" | "small-bold" | "medium-bold" | "medium-extra_bold" | "large-bold" | "x_large-bold" | "2x_large-bold" | "3x_large-bold" | "4x_large-bold";
|
|
9
|
+
value?: string | number;
|
|
10
|
+
} & {
|
|
11
|
+
as?: "div" | "span" | "kbd" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "header" | "footer" | "main" | "section" | "article";
|
|
12
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement> & import("../../../types/styles").ThemeCommonProps, "value"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const styles_1 = require("../../../utils/styles");
|
|
6
|
+
const shortcut_1 = require("../../../hooks/keyboards/shortcut");
|
|
7
|
+
const atoms_1 = require("../../../components/atoms");
|
|
8
|
+
exports.default = (0, styles_1.forwardRef)(({ value: _value, platform, ...props }, ref) => {
|
|
9
|
+
const value = (0, shortcut_1.useShortcutText)(_value || [], platform);
|
|
10
|
+
return (0, jsx_runtime_1.jsx)(atoms_1.Text, { ref: ref, as: "kbd", value: value, ...props });
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=KbdText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KbdText.js","sourceRoot":"","sources":["../../../../src/components/atoms/texts/KbdText.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;AAOb,2CAA4C;AAE5C,yDAA6D;AAE7D,8CAA0C;AAO1C,kBAAe,IAAA,mBAAU,EACvB,CACE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAS,EAC5C,GAA8B,EAC9B,EAAE;IACF,MAAM,KAAK,GAAG,IAAA,0BAAe,EAAC,MAAM,IAAI,EAAE,EAAE,QAAQ,CAAC,CAAC;IACtD,OAAO,uBAAC,YAAI,IAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAC,KAAK,EAAC,KAAK,EAAE,KAAK,KAAM,KAAK,GAAI,CAAC;AAC9D,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { theme } from '../../../utils/styles';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<{
|
|
4
|
+
type?: keyof typeof theme.text;
|
|
5
|
+
value?: string | number;
|
|
6
|
+
} & {
|
|
7
|
+
as?: "div" | "span" | "kbd" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "header" | "footer" | "main" | "section" | "article";
|
|
8
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement> & import("../../../types/styles").ThemeCommonProps>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styles_1 = require("../../../utils/styles");
|
|
9
|
+
const atoms_1 = require("../../../components/atoms");
|
|
10
|
+
const getAs = (type) => {
|
|
11
|
+
const typePrefix = type.split('-')[0];
|
|
12
|
+
switch (typePrefix) {
|
|
13
|
+
case '5x_large':
|
|
14
|
+
return 'h1';
|
|
15
|
+
case '4x_large':
|
|
16
|
+
return 'h2';
|
|
17
|
+
case '3x_large':
|
|
18
|
+
return 'h3';
|
|
19
|
+
case '2x_large':
|
|
20
|
+
return 'h4';
|
|
21
|
+
case 'x_large':
|
|
22
|
+
return 'h5';
|
|
23
|
+
case 'large':
|
|
24
|
+
return 'h6';
|
|
25
|
+
default:
|
|
26
|
+
return 'p';
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.default = (0, styles_1.forwardRef)(({ type = 'medium', value, children, $css, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(atoms_1.Container, { ref: ref, as: react_1.default.useMemo(() => getAs(type), [type]), "$css": react_1.default.useMemo(() => [styles_1.theme.text[type], $css], [type, $css]), ...props, children: [value, children] })));
|
|
30
|
+
//# sourceMappingURL=Text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/components/atoms/texts/Text.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,2CAAmD;AAEnD,8CAA+C;AAO/C,MAAM,KAAK,GAAG,CAAC,IAAgC,EAAE,EAAE;IACjD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,UAAU;YACb,OAAO,IAAI,CAAC;QACd,KAAK,UAAU;YACb,OAAO,IAAI,CAAC;QACd,KAAK,UAAU;YACb,OAAO,IAAI,CAAC;QACd,KAAK,UAAU;YACb,OAAO,IAAI,CAAC;QACd,KAAK,SAAS;YACZ,OAAO,IAAI,CAAC;QACd,KAAK,OAAO;YACV,OAAO,IAAI,CAAC;QACd;YACE,OAAO,GAAG,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF,kBAAe,IAAA,mBAAU,EACvB,CACE,EAAE,IAAI,GAAG,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAS,EAC3D,GAA8B,EAC9B,EAAE,CAAC,CACH,wBAAC,iBAAS,IACR,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,eAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,UACtC,eAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,cAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,KAC7D,KAAK,aAER,KAAK,EACL,QAAQ,IACC,CACb,CACF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Text = exports.KbdText = void 0;
|
|
7
|
+
var KbdText_1 = require("./KbdText");
|
|
8
|
+
Object.defineProperty(exports, "KbdText", { enumerable: true, get: function () { return __importDefault(KbdText_1).default; } });
|
|
9
|
+
var Text_1 = require("./Text");
|
|
10
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return __importDefault(Text_1).default; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/texts/index.tsx"],"names":[],"mappings":";;;;;;AAAA,qCAA+C;AAAtC,mHAAA,OAAO,OAAW;AAC3B,+BAAyC;AAAhC,6GAAA,OAAO,OAAQ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Palette } from '../../../constants/styles';
|
|
3
|
+
import { ClickableContainer, Container, Icon, Text } from '../../../components/atoms';
|
|
4
|
+
type ButtonProps = {
|
|
5
|
+
icon?: React.ComponentProps<typeof Icon>['type'];
|
|
6
|
+
text?: React.ComponentProps<typeof Text>['value'];
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
palette?: Palette;
|
|
9
|
+
} & React.ComponentProps<typeof ClickableContainer>;
|
|
10
|
+
type Props = {
|
|
11
|
+
values?: {
|
|
12
|
+
icon?: ButtonProps['icon'];
|
|
13
|
+
text?: ButtonProps['text'];
|
|
14
|
+
href?: React.ComponentProps<typeof ClickableContainer>['href'];
|
|
15
|
+
}[];
|
|
16
|
+
isEllipsis?: boolean;
|
|
17
|
+
palette?: Palette;
|
|
18
|
+
} & React.ComponentProps<typeof Container>;
|
|
19
|
+
declare const _default: React.MemoExoticComponent<({ values, isEllipsis, palette, ...props }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
20
|
+
export default _default;
|