@tripie-pyotato/design-system 0.0.0
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/.turbo/turbo-build.log +4 -0
- package/.turbo/turbo-lint$colon$fix.log +22 -0
- package/.turbo/turbo-lint.log +18 -0
- package/.turbo/turbo-test.log +152 -0
- package/.turbo/turbo-typecheck.log +5 -0
- package/coverage/clover.xml +1651 -0
- package/coverage/coverage-final.json +57 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/dist/button.js.html +112 -0
- package/coverage/lcov-report/dist/common.js.html +127 -0
- package/coverage/lcov-report/dist/components/body/_body.js.html +157 -0
- package/coverage/lcov-report/dist/components/body/_body.stories.js.html +193 -0
- package/coverage/lcov-report/dist/components/body/index.html +146 -0
- package/coverage/lcov-report/dist/components/body/index.js.html +109 -0
- package/coverage/lcov-report/dist/components/index.html +116 -0
- package/coverage/lcov-report/dist/components/index.js.html +127 -0
- package/coverage/lcov-report/dist/components/myButton/index.html +161 -0
- package/coverage/lcov-report/dist/components/myButton/index.js.html +154 -0
- package/coverage/lcov-report/dist/components/myButton/my-button.js.html +109 -0
- package/coverage/lcov-report/dist/components/myButton/myButton.js.html +133 -0
- package/coverage/lcov-report/dist/components/myButton/myButton.stories.js.html +181 -0
- package/coverage/lcov-report/dist/components/typography/_typography.js.html +190 -0
- package/coverage/lcov-report/dist/components/typography/_typography.stories.js.html +352 -0
- package/coverage/lcov-report/dist/components/typography/index.html +146 -0
- package/coverage/lcov-report/dist/components/typography/index.js.html +154 -0
- package/coverage/lcov-report/dist/components/typography/text/_text.js.html +139 -0
- package/coverage/lcov-report/dist/components/typography/text/_text.stories.js.html +259 -0
- package/coverage/lcov-report/dist/components/typography/text/index.html +146 -0
- package/coverage/lcov-report/dist/components/typography/text/index.js.html +160 -0
- package/coverage/lcov-report/dist/fonts/index.html +116 -0
- package/coverage/lcov-report/dist/fonts/index.js.html +154 -0
- package/coverage/lcov-report/dist/hooks/index.html +131 -0
- package/coverage/lcov-report/dist/hooks/index.js.html +136 -0
- package/coverage/lcov-report/dist/hooks/useAppTheme.js.html +202 -0
- package/coverage/lcov-report/dist/index.html +161 -0
- package/coverage/lcov-report/dist/index.js.html +139 -0
- package/coverage/lcov-report/dist/my-button.js.html +109 -0
- package/coverage/lcov-report/dist/myButton/Button.stories.js.html +229 -0
- package/coverage/lcov-report/dist/myButton/index.html +161 -0
- package/coverage/lcov-report/dist/myButton/index.js.html +154 -0
- package/coverage/lcov-report/dist/myButton/myButton.js.html +133 -0
- package/coverage/lcov-report/dist/myButton/myButton.stories.js.html +181 -0
- package/coverage/lcov-report/dist/text/index.html +176 -0
- package/coverage/lcov-report/dist/text/index.js.html +139 -0
- package/coverage/lcov-report/dist/text/text.js.html +151 -0
- package/coverage/lcov-report/dist/text/text.stories.js.html +232 -0
- package/coverage/lcov-report/dist/text/typography.js.html +160 -0
- package/coverage/lcov-report/dist/text/typography.stories.js.html +166 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +431 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/components/body/_body.stories.tsx.html +196 -0
- package/coverage/lcov-report/src/components/body/_body.tsx.html +163 -0
- package/coverage/lcov-report/src/components/body/index.html +146 -0
- package/coverage/lcov-report/src/components/body/index.ts.html +88 -0
- package/coverage/lcov-report/src/components/index.html +116 -0
- package/coverage/lcov-report/src/components/index.ts.html +97 -0
- package/coverage/lcov-report/src/components/myButton/index.html +161 -0
- package/coverage/lcov-report/src/components/myButton/index.ts.html +91 -0
- package/coverage/lcov-report/src/components/myButton/my-button.tsx.html +109 -0
- package/coverage/lcov-report/src/components/myButton/myButton.stories.tsx.html +220 -0
- package/coverage/lcov-report/src/components/myButton/myButton.tsx.html +160 -0
- package/coverage/lcov-report/src/components/typography/font/_font.tsx.html +127 -0
- package/coverage/lcov-report/src/components/typography/font/index.html +131 -0
- package/coverage/lcov-report/src/components/typography/font/index.ts.html +91 -0
- package/coverage/lcov-report/src/components/typography/headings/_headings.stories.tsx.html +361 -0
- package/coverage/lcov-report/src/components/typography/headings/_headings.tsx.html +211 -0
- package/coverage/lcov-report/src/components/typography/headings/index.html +146 -0
- package/coverage/lcov-report/src/components/typography/headings/index.ts.html +91 -0
- package/coverage/lcov-report/src/components/typography/index.html +116 -0
- package/coverage/lcov-report/src/components/typography/index.ts.html +91 -0
- package/coverage/lcov-report/src/components/typography/link/_link.stories.tsx.html +268 -0
- package/coverage/lcov-report/src/components/typography/link/_link.tsx.html +199 -0
- package/coverage/lcov-report/src/components/typography/link/index.html +146 -0
- package/coverage/lcov-report/src/components/typography/link/index.ts.html +91 -0
- package/coverage/lcov-report/src/components/typography/paragraph/_paragraph.stories.tsx.html +229 -0
- package/coverage/lcov-report/src/components/typography/paragraph/_paragraph.tsx.html +124 -0
- package/coverage/lcov-report/src/components/typography/paragraph/index.html +131 -0
- package/coverage/lcov-report/src/components/typography/text/_text.stories.tsx.html +184 -0
- package/coverage/lcov-report/src/components/typography/text/_text.tsx.html +196 -0
- package/coverage/lcov-report/src/components/typography/text/index.html +146 -0
- package/coverage/lcov-report/src/components/typography/text/index.ts.html +91 -0
- package/coverage/lcov-report/src/hooks/index.html +131 -0
- package/coverage/lcov-report/src/hooks/index.ts.html +88 -0
- package/coverage/lcov-report/src/hooks/useAppTheme.ts.html +220 -0
- package/coverage/lcov-report/src/index.html +116 -0
- package/coverage/lcov-report/src/index.ts.html +91 -0
- package/coverage/lcov-report/turbo/generators/config.ts.html +175 -0
- package/coverage/lcov-report/turbo/generators/index.html +116 -0
- package/coverage/lcov.info +2087 -0
- package/dist/button.d.ts +7 -0
- package/dist/button.d.ts.map +1 -0
- package/dist/button.js +9 -0
- package/dist/common.d.ts +12 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/common.js +14 -0
- package/dist/components/body/_body.d.ts +8 -0
- package/dist/components/body/_body.d.ts.map +1 -0
- package/dist/components/body/_body.js +24 -0
- package/dist/components/body/_body.stories.d.ts +7 -0
- package/dist/components/body/_body.stories.d.ts.map +1 -0
- package/dist/components/body/_body.stories.js +36 -0
- package/dist/components/body/index.d.ts +2 -0
- package/dist/components/body/index.d.ts.map +1 -0
- package/dist/components/body/index.js +8 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +14 -0
- package/dist/components/myButton/index.d.ts +3 -0
- package/dist/components/myButton/index.d.ts.map +1 -0
- package/dist/components/myButton/index.js +23 -0
- package/dist/components/myButton/my-button.d.ts +4 -0
- package/dist/components/myButton/my-button.d.ts.map +1 -0
- package/dist/components/myButton/my-button.js +8 -0
- package/dist/components/myButton/myButton.d.ts +7 -0
- package/dist/components/myButton/myButton.d.ts.map +1 -0
- package/dist/components/myButton/myButton.js +16 -0
- package/dist/components/myButton/myButton.stories.d.ts +7 -0
- package/dist/components/myButton/myButton.stories.d.ts.map +1 -0
- package/dist/components/myButton/myButton.stories.js +32 -0
- package/dist/components/typography/_typography.d.ts +23 -0
- package/dist/components/typography/_typography.d.ts.map +1 -0
- package/dist/components/typography/_typography.js +35 -0
- package/dist/components/typography/_typography.stories.d.ts +13 -0
- package/dist/components/typography/_typography.stories.d.ts.map +1 -0
- package/dist/components/typography/_typography.stories.js +89 -0
- package/dist/components/typography/index.d.ts +3 -0
- package/dist/components/typography/index.d.ts.map +1 -0
- package/dist/components/typography/index.js +23 -0
- package/dist/components/typography/text/_text.d.ts +19 -0
- package/dist/components/typography/text/_text.d.ts.map +1 -0
- package/dist/components/typography/text/_text.js +18 -0
- package/dist/components/typography/text/_text.stories.d.ts +10 -0
- package/dist/components/typography/text/_text.stories.d.ts.map +1 -0
- package/dist/components/typography/text/_text.stories.js +58 -0
- package/dist/components/typography/text/index.d.ts +3 -0
- package/dist/components/typography/text/index.d.ts.map +1 -0
- package/dist/components/typography/text/index.js +25 -0
- package/dist/fonts/index.d.ts +3 -0
- package/dist/fonts/index.d.ts.map +1 -0
- package/dist/fonts/index.js +23 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +17 -0
- package/dist/hooks/useAppTheme.d.ts +21 -0
- package/dist/hooks/useAppTheme.d.ts.map +1 -0
- package/dist/hooks/useAppTheme.js +39 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/my-button.d.ts +4 -0
- package/dist/my-button.d.ts.map +1 -0
- package/dist/my-button.js +8 -0
- package/dist/myButton/Button.stories.d.ts +8 -0
- package/dist/myButton/Button.stories.d.ts.map +1 -0
- package/dist/myButton/Button.stories.js +48 -0
- package/dist/myButton/index.d.ts +3 -0
- package/dist/myButton/index.d.ts.map +1 -0
- package/dist/myButton/index.js +23 -0
- package/dist/myButton/myButton.d.ts +7 -0
- package/dist/myButton/myButton.d.ts.map +1 -0
- package/dist/myButton/myButton.js +16 -0
- package/dist/myButton/myButton.stories.d.ts +7 -0
- package/dist/myButton/myButton.stories.d.ts.map +1 -0
- package/dist/myButton/myButton.stories.js +32 -0
- package/dist/src/components/Accordian/Accordian.jsx +61 -0
- package/dist/src/components/Accordian/accordian.stories.jsx +76 -0
- package/dist/src/components/Accordian/index.js +21 -0
- package/dist/src/components/Accordian/variants.js +46 -0
- package/dist/src/components/Carousel/Carousel.jsx +84 -0
- package/dist/src/components/Carousel/Carousel.spec.jsx +203 -0
- package/dist/src/components/Carousel/carousel.stories.jsx +56 -0
- package/dist/src/components/Carousel/images.js +40 -0
- package/dist/src/components/Carousel/index.js +20 -0
- package/dist/src/components/Chip/Chip.jsx +27 -0
- package/dist/src/components/Chip/Chip.spec.jsx +103 -0
- package/dist/src/components/Chip/chip.stories.jsx +61 -0
- package/dist/src/components/Chip/index.js +20 -0
- package/dist/src/components/ChipMarker/ChipMarker.jsx +17 -0
- package/dist/src/components/ChipMarker/chip.stories.jsx +42 -0
- package/dist/src/components/ChipMarker/index.js +20 -0
- package/dist/src/components/Divider/Divider.jsx +21 -0
- package/dist/src/components/Divider/constants.js +10 -0
- package/dist/src/components/Divider/divider.stories.jsx +72 -0
- package/dist/src/components/Divider/index.js +20 -0
- package/dist/src/components/Headings/Headings.jsx +37 -0
- package/dist/src/components/Headings/headings.stories.jsx +83 -0
- package/dist/src/components/Headings/index.js +20 -0
- package/dist/src/components/Link/Link.jsx +26 -0
- package/dist/src/components/Link/List.spec.jsx +22 -0
- package/dist/src/components/Link/index.js +20 -0
- package/dist/src/components/Link/link.stories.jsx +53 -0
- package/dist/src/components/List/List.jsx +29 -0
- package/dist/src/components/List/list-item.stories.jsx +81 -0
- package/dist/src/components/List/list.stories.jsx +45 -0
- package/dist/src/components/List/variants.js +24 -0
- package/dist/src/components/MotionSlideUp/MotionSlideUp.jsx +20 -0
- package/dist/src/components/MotionSlideUp/index.js +20 -0
- package/dist/src/components/Particle/Background/ParticleBackground.jsx +16 -0
- package/dist/src/components/Particle/Background/index.js +20 -0
- package/dist/src/components/Particle/Background/particle-background.stories.jsx +29 -0
- package/dist/src/components/Particle/Field/ParticleField.jsx +17 -0
- package/dist/src/components/Particle/Field/index.js +20 -0
- package/dist/src/components/Particle/Field/particle-field.stories.jsx +31 -0
- package/dist/src/components/Particle/Particles/Particles.jsx +15 -0
- package/dist/src/components/RotatingBlur/RotatingBlur.jsx +19 -0
- package/dist/src/components/RotatingBlur/index.js +20 -0
- package/dist/src/components/RotatingBlur/rotating-blur.stories.jsx +38 -0
- package/dist/src/components/SplashScreen/SplashScreen.jsx +22 -0
- package/dist/src/components/SplashScreen/index.js +20 -0
- package/dist/src/components/SplashScreen/splash-screen.stories.jsx +44 -0
- package/dist/src/components/Switch/Switch.jsx +18 -0
- package/dist/src/components/Switch/index.js +20 -0
- package/dist/src/components/Switch/switch.stories.jsx +31 -0
- package/dist/src/components/Switch/variants.js +35 -0
- package/dist/src/components/Text/Text.jsx +72 -0
- package/dist/src/components/Text/index.js +20 -0
- package/dist/src/components/Text/text.stories.jsx +44 -0
- package/dist/src/components/Text/variants.js +40 -0
- package/dist/src/components/TextFill/TextFillAnimation.jsx +51 -0
- package/dist/src/components/TextFill/index.js +20 -0
- package/dist/src/components/TextFill/text-fill-animation.stories.jsx +51 -0
- package/dist/src/components/TextUnderlineAnimation/TextUnderlineAnimation.jsx +16 -0
- package/dist/src/components/TextUnderlineAnimation/index.js +20 -0
- package/dist/src/components/TextUnderlineAnimation/text-underline-animation.stories.jsx +34 -0
- package/dist/src/components/TextUnderlineAnimation/variants.js +24 -0
- package/dist/src/components/TripieButton/Animated/AnimateButton.spec.jsx +106 -0
- package/dist/src/components/TripieButton/Animated/AnimatedButton.jsx +16 -0
- package/dist/src/components/TripieButton/Animated/animated-button.stories.jsx +58 -0
- package/dist/src/components/TripieButton/Animated/index.js +20 -0
- package/dist/src/components/TripieButton/Animated/variants.js +15 -0
- package/dist/src/components/TripieButton/MenuToggle/MenuItem/index.jsx +15 -0
- package/dist/src/components/TripieButton/MenuToggle/MenuItem/menu-item.stories.jsx +36 -0
- package/dist/src/components/TripieButton/MenuToggle/MenuItem/variants.js +19 -0
- package/dist/src/components/TripieButton/MenuToggle/MenuList/index.jsx +15 -0
- package/dist/src/components/TripieButton/MenuToggle/MenuList/menu-list.stories.jsx +41 -0
- package/dist/src/components/TripieButton/MenuToggle/MenuList/variants.js +15 -0
- package/dist/src/components/TripieButton/MenuToggle/MenuToggle.jsx +45 -0
- package/dist/src/components/TripieButton/MenuToggle/index.js +20 -0
- package/dist/src/components/TripieButton/MenuToggle/menu-toggle.stories.jsx +55 -0
- package/dist/src/components/TripieButton/NoStyle/NoStyleButton.jsx +12 -0
- package/dist/src/components/TripieButton/NoStyle/NoStyleButton.spec.jsx +87 -0
- package/dist/src/components/TripieButton/NoStyle/index.js +20 -0
- package/dist/src/components/TripieButton/NoStyle/no-style-button.stories.jsx +29 -0
- package/dist/src/components/TripieCard/Card.jsx +57 -0
- package/dist/src/components/TripieCard/card.stories.jsx +45 -0
- package/dist/src/components/TripieCard/index.js +20 -0
- package/dist/src/components/TripieContainer/TripieContainer.jsx +23 -0
- package/dist/src/components/TripieContainer/index.js +20 -0
- package/dist/src/components/TripieContainer/tripie-container.stories.jsx +70 -0
- package/dist/src/components/TripieIcon/Icon.jsx +84 -0
- package/dist/src/components/TripieIcon/icon-transport.stories.jsx +89 -0
- package/dist/src/components/TripieIcon/icon.stories.jsx +68 -0
- package/dist/src/components/TripieIcon/index.js +20 -0
- package/dist/src/components/TripieIcon/variants.js +172 -0
- package/dist/src/components/TripieImage/TripieImage.jsx +25 -0
- package/dist/src/components/TripieImage/index.js +20 -0
- package/dist/src/components/TripieImage/tripie-image.stories.jsx +86 -0
- package/dist/src/components/TripieSkeleton/Skeleton.jsx +30 -0
- package/dist/src/components/TripieSkeleton/index.js +20 -0
- package/dist/src/components/TripieSkeleton/skeleton.stories.jsx +28 -0
- package/dist/src/components/index.js +54 -0
- package/dist/src/font.js +12 -0
- package/dist/src/hooks/index.js +19 -0
- package/dist/src/hooks/useAppTheme.js +33 -0
- package/dist/src/hooks/useCycle.js +32 -0
- package/dist/src/hooks/useDrawer.js +21 -0
- package/dist/src/index.js +19 -0
- package/dist/src/shared/colors.js +20 -0
- package/dist/src/shared/index.js +19 -0
- package/dist/src/shared/resource.js +26 -0
- package/dist/src/shared/variants.js +66 -0
- package/dist/text/index.d.ts +3 -0
- package/dist/text/index.d.ts.map +1 -0
- package/dist/text/index.js +18 -0
- package/dist/text/text.d.ts +47 -0
- package/dist/text/text.d.ts.map +1 -0
- package/dist/text/text.js +22 -0
- package/dist/text/text.stories.d.ts +10 -0
- package/dist/text/text.stories.d.ts.map +1 -0
- package/dist/text/text.stories.js +49 -0
- package/dist/text/typography.d.ts +18 -0
- package/dist/text/typography.d.ts.map +1 -0
- package/dist/text/typography.js +25 -0
- package/dist/text/typography.stories.d.ts +7 -0
- package/dist/text/typography.stories.d.ts.map +1 -0
- package/dist/text/typography.stories.js +27 -0
- package/dist/turbo/generators/config.js +30 -0
- package/jest.config.cjs +21 -0
- package/jest.setup.cjs +4 -0
- package/package.json +80 -0
- package/setupTests.mjs +39 -0
- package/src/base/_breakpoint.scss +15 -0
- package/src/base/_colors.scss +98 -0
- package/src/base/_config.scss +33 -0
- package/src/base/_font-size.scss +17 -0
- package/src/base/_font-stack.scss +27 -0
- package/src/base/_font-weight.scss +23 -0
- package/src/base/_letter-spacing.scss +12 -0
- package/src/base/_line-height.scss +12 -0
- package/src/base/_motion.scss +35 -0
- package/src/base/_shape.scss +19 -0
- package/src/base/_space.scss +58 -0
- package/src/base/_theme.scss +97 -0
- package/src/base/_z-index.scss +44 -0
- package/src/base/index.scss +13 -0
- package/src/components/Accordian/Accordian.tsx +72 -0
- package/src/components/Accordian/accordian.module.scss +18 -0
- package/src/components/Accordian/accordian.stories.tsx +86 -0
- package/src/components/Accordian/index.ts +3 -0
- package/src/components/Accordian/variants.ts +45 -0
- package/src/components/Carousel/Carousel.spec.tsx +239 -0
- package/src/components/Carousel/Carousel.tsx +131 -0
- package/src/components/Carousel/carousel.module.scss +61 -0
- package/src/components/Carousel/carousel.stories.tsx +117 -0
- package/src/components/Carousel/images.ts +44 -0
- package/src/components/Carousel/index.ts +2 -0
- package/src/components/Chip/Chip.spec.tsx +59 -0
- package/src/components/Chip/Chip.tsx +64 -0
- package/src/components/Chip/chip.module.scss +79 -0
- package/src/components/Chip/chip.stories.tsx +70 -0
- package/src/components/Chip/index.ts +2 -0
- package/src/components/ChipMarker/ChipMarker.tsx +20 -0
- package/src/components/ChipMarker/chip-marker.module.scss +75 -0
- package/src/components/ChipMarker/chip.stories.tsx +48 -0
- package/src/components/ChipMarker/index.ts +2 -0
- package/src/components/Divider/Divider.tsx +29 -0
- package/src/components/Divider/constants.ts +9 -0
- package/src/components/Divider/divider.module.scss +37 -0
- package/src/components/Divider/divider.stories.tsx +94 -0
- package/src/components/Divider/index.ts +2 -0
- package/src/components/Headings/Headings.tsx +36 -0
- package/src/components/Headings/headings.module.scss +46 -0
- package/src/components/Headings/headings.stories.tsx +92 -0
- package/src/components/Headings/index.ts +2 -0
- package/src/components/Link/Link.tsx +31 -0
- package/src/components/Link/List.spec.tsx +25 -0
- package/src/components/Link/index.ts +2 -0
- package/src/components/Link/link.module.scss +26 -0
- package/src/components/Link/link.stories.tsx +61 -0
- package/src/components/List/List.tsx +63 -0
- package/src/components/List/list-item.stories.tsx +89 -0
- package/src/components/List/list.module.scss +59 -0
- package/src/components/List/list.stories.tsx +65 -0
- package/src/components/List/variants.ts +23 -0
- package/src/components/MotionSlideUp/MotionSlideUp.tsx +37 -0
- package/src/components/MotionSlideUp/index.ts +2 -0
- package/src/components/Particle/Background/ParticleBackground.tsx +18 -0
- package/src/components/Particle/Background/index.ts +2 -0
- package/src/components/Particle/Background/particle-background.module.scss +25 -0
- package/src/components/Particle/Background/particle-background.stories.tsx +36 -0
- package/src/components/Particle/Field/ParticleField.tsx +28 -0
- package/src/components/Particle/Field/index.ts +2 -0
- package/src/components/Particle/Field/particle-field.module.scss +6 -0
- package/src/components/Particle/Field/particle-field.stories.tsx +38 -0
- package/src/components/Particle/Particles/Particles.tsx +22 -0
- package/src/components/Particle/Particles/particles.module.scss +19 -0
- package/src/components/RotatingBlur/RotatingBlur.tsx +26 -0
- package/src/components/RotatingBlur/index.ts +2 -0
- package/src/components/RotatingBlur/rotating-blur.module.scss +59 -0
- package/src/components/RotatingBlur/rotating-blur.stories.tsx +45 -0
- package/src/components/SplashScreen/SplashScreen.tsx +31 -0
- package/src/components/SplashScreen/index.ts +2 -0
- package/src/components/SplashScreen/splash-screen.module.scss +12 -0
- package/src/components/SplashScreen/splash-screen.stories.tsx +53 -0
- package/src/components/Switch/Switch.tsx +33 -0
- package/src/components/Switch/index.ts +2 -0
- package/src/components/Switch/switch.module.scss +43 -0
- package/src/components/Switch/switch.stories.tsx +36 -0
- package/src/components/Switch/variants.ts +34 -0
- package/src/components/Text/Text.tsx +158 -0
- package/src/components/Text/index.ts +2 -0
- package/src/components/Text/text.module.scss +84 -0
- package/src/components/Text/text.stories.tsx +52 -0
- package/src/components/Text/variants.ts +53 -0
- package/src/components/TextFill/TextFillAnimation.tsx +87 -0
- package/src/components/TextFill/index.ts +2 -0
- package/src/components/TextFill/text-fill-animation.module.scss +37 -0
- package/src/components/TextFill/text-fill-animation.stories.tsx +61 -0
- package/src/components/TextUnderlineAnimation/TextUnderlineAnimation.tsx +37 -0
- package/src/components/TextUnderlineAnimation/index.ts +2 -0
- package/src/components/TextUnderlineAnimation/text-underline-animation.stories.tsx +39 -0
- package/src/components/TextUnderlineAnimation/text-underline.module.scss +13 -0
- package/src/components/TextUnderlineAnimation/variants.ts +23 -0
- package/src/components/TripieButton/Animated/AnimateButton.spec.tsx +84 -0
- package/src/components/TripieButton/Animated/AnimatedButton.tsx +88 -0
- package/src/components/TripieButton/Animated/animated-button.module.scss +61 -0
- package/src/components/TripieButton/Animated/animated-button.stories.tsx +68 -0
- package/src/components/TripieButton/Animated/index.ts +2 -0
- package/src/components/TripieButton/MenuToggle/MenuItem/index.tsx +28 -0
- package/src/components/TripieButton/MenuToggle/MenuItem/menu-item.module.scss +14 -0
- package/src/components/TripieButton/MenuToggle/MenuItem/menu-item.stories.tsx +42 -0
- package/src/components/TripieButton/MenuToggle/MenuItem/variants.ts +18 -0
- package/src/components/TripieButton/MenuToggle/MenuList/index.tsx +20 -0
- package/src/components/TripieButton/MenuToggle/MenuList/menu-list.module.scss +21 -0
- package/src/components/TripieButton/MenuToggle/MenuList/menu-list.stories.tsx +51 -0
- package/src/components/TripieButton/MenuToggle/MenuList/variants.ts +14 -0
- package/src/components/TripieButton/MenuToggle/MenuToggle.tsx +67 -0
- package/src/components/TripieButton/MenuToggle/index.ts +2 -0
- package/src/components/TripieButton/MenuToggle/menu-toggle.module.scss +42 -0
- package/src/components/TripieButton/MenuToggle/menu-toggle.stories.tsx +73 -0
- package/src/components/TripieButton/NoStyle/NoStyleButton.spec.tsx +50 -0
- package/src/components/TripieButton/NoStyle/NoStyleButton.tsx +27 -0
- package/src/components/TripieButton/NoStyle/index.ts +2 -0
- package/src/components/TripieButton/NoStyle/no-style-button.module.scss +5 -0
- package/src/components/TripieButton/NoStyle/no-style-button.stories.tsx +34 -0
- package/src/components/TripieCard/Card.tsx +167 -0
- package/src/components/TripieCard/card.module.scss +122 -0
- package/src/components/TripieCard/card.stories.tsx +66 -0
- package/src/components/TripieCard/index.ts +2 -0
- package/src/components/TripieContainer/TripieContainer.tsx +54 -0
- package/src/components/TripieContainer/index.ts +2 -0
- package/src/components/TripieContainer/tripie-container.module.scss +93 -0
- package/src/components/TripieContainer/tripie-container.stories.tsx +81 -0
- package/src/components/TripieIcon/Icon.tsx +242 -0
- package/src/components/TripieIcon/icon-transport.stories.tsx +108 -0
- package/src/components/TripieIcon/icon.module.scss +35 -0
- package/src/components/TripieIcon/icon.stories.tsx +81 -0
- package/src/components/TripieIcon/index.ts +2 -0
- package/src/components/TripieIcon/variants.ts +177 -0
- package/src/components/TripieImage/TripieImage.tsx +90 -0
- package/src/components/TripieImage/index.ts +2 -0
- package/src/components/TripieImage/tripie-image.module.scss +73 -0
- package/src/components/TripieImage/tripie-image.stories.tsx +128 -0
- package/src/components/TripieSkeleton/Skeleton.tsx +27 -0
- package/src/components/TripieSkeleton/index.ts +2 -0
- package/src/components/TripieSkeleton/skeleton.module.scss +7 -0
- package/src/components/TripieSkeleton/skeleton.stories.tsx +32 -0
- package/src/components/index.ts +25 -0
- package/src/font.ts +12 -0
- package/src/functions/_breakpoint.scss +21 -0
- package/src/functions/_color.scss +63 -0
- package/src/functions/_config.scss +27 -0
- package/src/functions/_shape.scss +29 -0
- package/src/functions/_space.scss +28 -0
- package/src/functions/_typography.scss +101 -0
- package/src/functions/_units.scss +66 -0
- package/src/functions/_z-index.scss +21 -0
- package/src/functions/index.scss +8 -0
- package/src/generator/_generator.scss +21 -0
- package/src/generator/index.scss +1 -0
- package/src/global.scss +49 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useAppTheme.ts +41 -0
- package/src/hooks/useCycle.ts +28 -0
- package/src/hooks/useDrawer.ts +29 -0
- package/src/index.ts +3 -0
- package/src/mixins/_border.scss +83 -0
- package/src/mixins/_clear.scss +21 -0
- package/src/mixins/_color.scss +19 -0
- package/src/mixins/_default.scss +40 -0
- package/src/mixins/_media.scss +26 -0
- package/src/mixins/_normalize.scss +353 -0
- package/src/mixins/_positioning.scss +34 -0
- package/src/mixins/_pseudo.scss +39 -0
- package/src/mixins/_reset.scss +70 -0
- package/src/mixins/_shape.scss +12 -0
- package/src/mixins/_skeleton.scss +89 -0
- package/src/mixins/_text.scss +52 -0
- package/src/mixins/_transition.scss +90 -0
- package/src/mixins/_z-index.scss +12 -0
- package/src/mixins/index.scss +14 -0
- package/src/mixins.scss +275 -0
- package/src/shared/colors.ts +18 -0
- package/src/shared/index.ts +3 -0
- package/src/shared/resource.ts +26 -0
- package/src/shared/variants.ts +68 -0
- package/src/shared/wrappers/classNames.ts +2 -0
- package/src/shared/wrappers/index.tsx +4 -0
- package/src/shared/wrappers/motion-wrapper.tsx +27 -0
- package/src/static/fonts/MaruBuri-Regular.eot +0 -0
- package/src/static/fonts/MaruBuri-Regular.otf +0 -0
- package/src/static/fonts/MaruBuri-Regular.ttf +0 -0
- package/src/static/fonts/MaruBuri-Regular.woff +0 -0
- package/src/static/fonts/MaruBuri-Regular.woff2 +0 -0
- package/src/styles/index.scss +2 -0
- package/src/typings.d.ts +5 -0
- package/src/variables.scss +31 -0
- package/tsconfig.json +21 -0
- package/turbo/generators/config.ts +30 -0
- package/turbo/generators/templates/component.hbs +8 -0
- package/vite.config.mjs +25 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:meta";
|
|
3
|
+
@use "sass:list";
|
|
4
|
+
@use "../base/" as *;
|
|
5
|
+
@use "../functions/" as *;
|
|
6
|
+
|
|
7
|
+
/// animation 관련 transition 정의
|
|
8
|
+
/// @param {string} $property : transition 적용할 프로퍼티
|
|
9
|
+
/// @param {string} $duration : transition 지속시간
|
|
10
|
+
/// @param {string} $timing-function : transition speed curve
|
|
11
|
+
/// @param {string} $delay : transition 딜레이
|
|
12
|
+
/// @return {string} : transition 정의 리턴
|
|
13
|
+
/// @throws {error} : duration이나 timing-function이 $config-motion-duration에 없을 경우
|
|
14
|
+
@mixin transition(
|
|
15
|
+
$property: all,
|
|
16
|
+
$duration: base,
|
|
17
|
+
$timing-function: standard,
|
|
18
|
+
$delay: none
|
|
19
|
+
) {
|
|
20
|
+
$transition: ();
|
|
21
|
+
$will-change: ();
|
|
22
|
+
|
|
23
|
+
@for $i from 1 through list.length($property) {
|
|
24
|
+
@for $j from 0 to (list.length($property)) - (list.length($duration)) {
|
|
25
|
+
$duration: list.join($duration, list.nth($duration, -1));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@for $j from 0 to (list.length($property)) - (list.length($timing-function))
|
|
29
|
+
{
|
|
30
|
+
$timing-function: list.join(
|
|
31
|
+
$timing-function,
|
|
32
|
+
list.nth($timing-function, -1)
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@for $j from 0 to (list.length($property)) - (list.length($delay)) {
|
|
37
|
+
$delay: list.join($delay, list.nth($delay, -1));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
$property-value: list.nth($property, $i);
|
|
41
|
+
$duration-value: map.get($config-motion-duration, list.nth($duration, $i));
|
|
42
|
+
$timing-value: map.get(
|
|
43
|
+
$config-motion-timing,
|
|
44
|
+
list.nth($timing-function, $i)
|
|
45
|
+
);
|
|
46
|
+
$delay-value: map.get($config-motion-duration, list.nth($delay, $i));
|
|
47
|
+
|
|
48
|
+
@if not $duration-value {
|
|
49
|
+
$duration-attempt: list.nth($duration, $i);
|
|
50
|
+
|
|
51
|
+
@if meta.type-of($value: $duration-attempt) == number {
|
|
52
|
+
$duration-value: strip-unit($duration-attempt) * 1ms;
|
|
53
|
+
} @else {
|
|
54
|
+
@error "Duration variant `#{list.nth($duration, $i)}` not found. Available variants: #{$config-motion-duration}";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@if not $timing-value {
|
|
59
|
+
$timing-function-attempt: list.nth($timing-function, $i);
|
|
60
|
+
|
|
61
|
+
@if meta.type-of($value: $timing-function-attempt) == string {
|
|
62
|
+
$timing-value: $timing-function-attempt;
|
|
63
|
+
} @else {
|
|
64
|
+
@error "Timing-function variant `#{list.nth($timing-function, $i)}` not found. Available variants: #{$config-motion-timing}";
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@if not $delay-value {
|
|
69
|
+
$delay-attempt: list.nth($delay, $i);
|
|
70
|
+
|
|
71
|
+
@if meta.type-of($value: $delay-attempt) == number {
|
|
72
|
+
$delay-value: strip-unit($delay-attempt) * 1ms;
|
|
73
|
+
} @else {
|
|
74
|
+
@error "Delay variant `#{list.nth($delay, $i)}` not found. Available variants: #{$config-motion-duration}";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
$transition: list.append(
|
|
79
|
+
$transition,
|
|
80
|
+
($property-value $duration-value $timing-value $delay-value),
|
|
81
|
+
$separator: comma
|
|
82
|
+
);
|
|
83
|
+
$will-change: list.append($will-change, $property-value, $separator: comma);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@if $property != all {
|
|
87
|
+
will-change: $will-change;
|
|
88
|
+
}
|
|
89
|
+
transition: $transition;
|
|
90
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use "../functions/" as *;
|
|
2
|
+
|
|
3
|
+
/// z-index 설정 믹스인
|
|
4
|
+
/// @param {string} $layer : `$z-indexes` 맵의 값
|
|
5
|
+
/// @param {boolean} $important : `!important` 추가 여부
|
|
6
|
+
@mixin z-index($layer: default, $important: false) {
|
|
7
|
+
@if $important == true {
|
|
8
|
+
z-index: z($layer) !important;
|
|
9
|
+
} @else {
|
|
10
|
+
z-index: z($layer);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@forward "color";
|
|
2
|
+
@forward "skeleton";
|
|
3
|
+
@forward "text";
|
|
4
|
+
@forward "z-index";
|
|
5
|
+
@forward "shape";
|
|
6
|
+
@forward "border";
|
|
7
|
+
@forward "clear";
|
|
8
|
+
@forward "positioning";
|
|
9
|
+
@forward "pseudo";
|
|
10
|
+
@forward "transition";
|
|
11
|
+
@forward "normalize";
|
|
12
|
+
@forward "reset";
|
|
13
|
+
@forward "media";
|
|
14
|
+
@forward "default";
|
package/src/mixins.scss
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use 'variables' as *;
|
|
4
|
+
|
|
5
|
+
$background-gradients: (
|
|
6
|
+
'0': $background-gradient-0,
|
|
7
|
+
'1': $background-gradient-1,
|
|
8
|
+
'2': $background-gradient-2,
|
|
9
|
+
'3': $background-gradient-3,
|
|
10
|
+
'4': $background-gradient-4,
|
|
11
|
+
'5': $background-gradient-5,
|
|
12
|
+
'6': $background-gradient-6,
|
|
13
|
+
'7': $background-gradient-7,
|
|
14
|
+
'8': $background-gradient-8,
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
@mixin background($variant) {
|
|
18
|
+
align-content: flex-start;
|
|
19
|
+
align-items: flex-start;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
flex: none;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
flex-wrap: nowrap;
|
|
24
|
+
height: min-content;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
position: relative;
|
|
28
|
+
width: 100%;
|
|
29
|
+
width: -moz-available; /* WebKit-based browsers will ignore this. */
|
|
30
|
+
width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
|
|
31
|
+
padding: 100px 0 50px;
|
|
32
|
+
|
|
33
|
+
background: map.get($background-gradients, $variant); // ✅ FIXED
|
|
34
|
+
|
|
35
|
+
@if $variant == '2' {
|
|
36
|
+
padding: 100px 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin accented {
|
|
41
|
+
color: $theme-50;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@mixin with-border {
|
|
45
|
+
padding: 10px 25px;
|
|
46
|
+
font-size: 0.8rem;
|
|
47
|
+
border: 1px solid $border-accent;
|
|
48
|
+
border-radius: 8px;
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@mixin card {
|
|
53
|
+
border: 1px solid $theme-400;
|
|
54
|
+
align-content: flex-start;
|
|
55
|
+
align-items: flex-start;
|
|
56
|
+
align-self: stretch;
|
|
57
|
+
border-radius: 10px;
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
flex: 1 0 0px;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: 50px;
|
|
62
|
+
height: auto;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
padding: 40px;
|
|
66
|
+
position: relative;
|
|
67
|
+
width: 1px;
|
|
68
|
+
|
|
69
|
+
@media (max-width: 809px) {
|
|
70
|
+
align-self: unset;
|
|
71
|
+
flex: none;
|
|
72
|
+
height: min-content;
|
|
73
|
+
padding: 35px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@mixin flexbox($direction: row, $align: center, $justify: center, $gap: 15px) {
|
|
78
|
+
display: inline-flex;
|
|
79
|
+
width: 100%;
|
|
80
|
+
flex-basis: auto;
|
|
81
|
+
|
|
82
|
+
flex-direction: $direction;
|
|
83
|
+
align-items: $align;
|
|
84
|
+
justify-content: $justify;
|
|
85
|
+
gap: $gap;
|
|
86
|
+
flex-wrap: nowrap;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@mixin grid($item-count: 5) {
|
|
90
|
+
display: grid;
|
|
91
|
+
grid-gap: 10px;
|
|
92
|
+
|
|
93
|
+
@if ($item-count == 5) {
|
|
94
|
+
@media (min-width: 998px) {
|
|
95
|
+
grid-template-columns: repeat(6, 1fr);
|
|
96
|
+
grid-template-rows: repeat(2, 1fr);
|
|
97
|
+
|
|
98
|
+
& > div {
|
|
99
|
+
grid-column: span 2;
|
|
100
|
+
grid-row: span 1;
|
|
101
|
+
}
|
|
102
|
+
& > div:nth-child(4),
|
|
103
|
+
& > div:nth-child(5) {
|
|
104
|
+
grid-column: span 3;
|
|
105
|
+
grid-row: span 1;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
} @else {
|
|
109
|
+
@media (min-width: 998px) {
|
|
110
|
+
grid-auto-flow: column;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@media (max-width: 998px) {
|
|
115
|
+
grid-auto-flow: row;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@mixin flex {
|
|
120
|
+
display: inline-flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
flex-wrap: nowrap;
|
|
123
|
+
align-items: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@mixin list-wrap {
|
|
127
|
+
display: inline-flex;
|
|
128
|
+
gap: 1rem;
|
|
129
|
+
|
|
130
|
+
@media (min-width: 998px) {
|
|
131
|
+
flex-direction: row;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@media (max-width: 998px) {
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
flex-wrap: wrap;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@mixin background-static {
|
|
141
|
+
background-repeat: repeat;
|
|
142
|
+
background-position: left top;
|
|
143
|
+
background-size: 128px auto;
|
|
144
|
+
background-image: url('/noise.png');
|
|
145
|
+
filter: brightness(50%);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@mixin chip {
|
|
149
|
+
min-width: fit-content;
|
|
150
|
+
padding: 1rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@mixin button-chip {
|
|
154
|
+
min-width: fit-content;
|
|
155
|
+
padding: 1rem;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@mixin grid-wrap {
|
|
159
|
+
display: grid;
|
|
160
|
+
justify-content: center;
|
|
161
|
+
gap: 1rem;
|
|
162
|
+
width: 100%;
|
|
163
|
+
list-style: none;
|
|
164
|
+
grid-template-columns: repeat(4, 1fr);
|
|
165
|
+
padding: 0;
|
|
166
|
+
margin: 0;
|
|
167
|
+
|
|
168
|
+
@media (max-width: 880px) {
|
|
169
|
+
grid-template-columns: repeat(3, 1fr);
|
|
170
|
+
}
|
|
171
|
+
@media (max-width: 730px) {
|
|
172
|
+
grid-template-columns: repeat(2, 1fr);
|
|
173
|
+
}
|
|
174
|
+
@media (max-width: 480px) {
|
|
175
|
+
grid-template-columns: repeat(1, 1fr);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@media (min-width: 1300px) {
|
|
179
|
+
grid-template-columns: repeat(6, 1fr);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@mixin submit-button {
|
|
184
|
+
width: 100%;
|
|
185
|
+
min-height: 3rem;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@mixin submit-button-long-text {
|
|
189
|
+
@media (max-width: 400px) {
|
|
190
|
+
& > span {
|
|
191
|
+
transform: translateY(1.5rem);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.flex {
|
|
197
|
+
@include flex;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@mixin flex-items {
|
|
201
|
+
display: inline-flex;
|
|
202
|
+
justify-content: flex-start;
|
|
203
|
+
overflow-x: scroll;
|
|
204
|
+
flex-wrap: nowrap;
|
|
205
|
+
gap: 1rem;
|
|
206
|
+
width: 100%;
|
|
207
|
+
list-style: none;
|
|
208
|
+
padding: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@mixin map-marker($variant) {
|
|
212
|
+
display: inline-flex;
|
|
213
|
+
border-radius: 100%;
|
|
214
|
+
align-items: center;
|
|
215
|
+
justify-content: center;
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
padding: 0.5rem;
|
|
218
|
+
|
|
219
|
+
$colors: (
|
|
220
|
+
'restaurant': red,
|
|
221
|
+
'hotel': rgb(59, 74, 211),
|
|
222
|
+
'attraction': orange,
|
|
223
|
+
'selected': inherit,
|
|
224
|
+
);
|
|
225
|
+
|
|
226
|
+
// background-color: map-get($colors, $variant, orange); // DART부터는 map.get 사용
|
|
227
|
+
background-color: map.get($colors, $variant) or orange;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@mixin scroll {
|
|
231
|
+
// 스크롤 바 스타일
|
|
232
|
+
overflow-y: scroll;
|
|
233
|
+
position: relative;
|
|
234
|
+
height: 100%;
|
|
235
|
+
}
|
|
236
|
+
// 스크롤 바 스타일
|
|
237
|
+
@mixin visible-scroll($visible-scroll: true) {
|
|
238
|
+
@if $visible-scroll == true {
|
|
239
|
+
/* Firefox */
|
|
240
|
+
scrollbar-color: $theme-50 $theme-100000;
|
|
241
|
+
scrollbar-width: thin;
|
|
242
|
+
/* WebKit (Chrome, Safari, Edge) */
|
|
243
|
+
::-webkit-scrollbar {
|
|
244
|
+
width: 2px;
|
|
245
|
+
height: 2px;
|
|
246
|
+
}
|
|
247
|
+
::-webkit-scrollbar-track {
|
|
248
|
+
background: transparent;
|
|
249
|
+
}
|
|
250
|
+
::-webkit-scrollbar-thumb {
|
|
251
|
+
background: $theme-50;
|
|
252
|
+
border-radius: 2px;
|
|
253
|
+
}
|
|
254
|
+
::-webkit-scrollbar-thumb:hover {
|
|
255
|
+
background: $theme-50;
|
|
256
|
+
}
|
|
257
|
+
} @else {
|
|
258
|
+
scrollbar-width: none; /* Firefox */
|
|
259
|
+
/* Hide scrollbar for Edge and IE */
|
|
260
|
+
-ms-overflow-style: none;
|
|
261
|
+
::-webkit-scrollbar {
|
|
262
|
+
/* Chrome, Safari */
|
|
263
|
+
display: none;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
@mixin flex-text {
|
|
269
|
+
display: inline-flex;
|
|
270
|
+
align-items: center;
|
|
271
|
+
gap: 0.2rem;
|
|
272
|
+
@media (max-width: 300px) {
|
|
273
|
+
align-items: baseline;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// 인라인으로 반드시 전해야할 스타일이나 프롭스로 써야할 경우에 상수로 참조
|
|
2
|
+
export const COLORS = {
|
|
3
|
+
0: '#ffffff',
|
|
4
|
+
30: '#d5ffcc40',
|
|
5
|
+
40: '#858585',
|
|
6
|
+
50: '#d3ffca',
|
|
7
|
+
100: '#102b1f',
|
|
8
|
+
200: '#0f0f0f',
|
|
9
|
+
300: '#d3ffca40',
|
|
10
|
+
400: '#232323',
|
|
11
|
+
500: '#080807',
|
|
12
|
+
600: '#22261e',
|
|
13
|
+
700: '#141712',
|
|
14
|
+
800: '#333333',
|
|
15
|
+
100000: '#08080700',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default COLORS;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const PLACEHOLDER = 'https://placehold.co/600x600?text=NO IMAGE';
|
|
2
|
+
export const LOADING_IMG = 'https://placehold.co/600x600?text=LOADING';
|
|
3
|
+
|
|
4
|
+
export const ICON_URL = '/icons';
|
|
5
|
+
export const RESOURCE = {
|
|
6
|
+
ARROW: '/arrow.png',
|
|
7
|
+
CHECK: '/check.png',
|
|
8
|
+
X: '/x.png',
|
|
9
|
+
REFRESH: '/refresh.png',
|
|
10
|
+
PLANE: '/plane.png',
|
|
11
|
+
CLOUD: '/cloud.png',
|
|
12
|
+
LOADING: '/loading.png',
|
|
13
|
+
TRAM: '/tram.png',
|
|
14
|
+
TRAIN: '/train.png',
|
|
15
|
+
WALK: '/walk.png',
|
|
16
|
+
SHIP: '/ship.png',
|
|
17
|
+
BUS: '/bus.png',
|
|
18
|
+
CAR: '/car.png',
|
|
19
|
+
FLAG: '/flag.png',
|
|
20
|
+
CURSOR: '/cursor.png',
|
|
21
|
+
NEXT: '/next.png',
|
|
22
|
+
KAKAO: '/kakao.png',
|
|
23
|
+
GITHUB: '/github.png',
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const ICON_RESOURCE = (key: keyof typeof RESOURCE) => ICON_URL + RESOURCE[key];
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { MotionProps } from './wrappers/motion-wrapper';
|
|
2
|
+
|
|
3
|
+
import COLORS from './colors';
|
|
4
|
+
|
|
5
|
+
type Variant = MotionProps['variants'][string];
|
|
6
|
+
|
|
7
|
+
const GLOW_VARIANT = {
|
|
8
|
+
rest: { boxShadow: 'none' } as Variant,
|
|
9
|
+
glow: {
|
|
10
|
+
boxShadow: [`-2px 0px 10px 0px ${COLORS[50]}`, `2px 0px 10px 0px ${COLORS[50]}`, `0px 2px 10px 0px ${COLORS[50]}`],
|
|
11
|
+
transition: {
|
|
12
|
+
ease: 'circInOut',
|
|
13
|
+
},
|
|
14
|
+
} as Variant,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const SHINE_VARIANT = {
|
|
18
|
+
rest: { boxShadow: 'none' } as Variant,
|
|
19
|
+
selected: {
|
|
20
|
+
backgroundColor: COLORS[100],
|
|
21
|
+
borderColor: COLORS[300],
|
|
22
|
+
} as Variant,
|
|
23
|
+
shine: { backgroundColor: COLORS[100], borderColor: COLORS[300] } as Variant,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const ACCORDIAN_VARIANTS = {
|
|
27
|
+
DETAILS: {
|
|
28
|
+
closed: () => ({
|
|
29
|
+
height: '0%',
|
|
30
|
+
opacity: 0,
|
|
31
|
+
}),
|
|
32
|
+
open: () => ({
|
|
33
|
+
transform: {
|
|
34
|
+
height: '100%',
|
|
35
|
+
},
|
|
36
|
+
transition: {
|
|
37
|
+
duration: 2,
|
|
38
|
+
bounce: 0,
|
|
39
|
+
damping: 2,
|
|
40
|
+
stiffness: 10,
|
|
41
|
+
},
|
|
42
|
+
}),
|
|
43
|
+
},
|
|
44
|
+
BUTTON: {
|
|
45
|
+
closed: () => ({}),
|
|
46
|
+
open: () => ({
|
|
47
|
+
rotate: '45deg',
|
|
48
|
+
transition: {
|
|
49
|
+
duration: 0.5,
|
|
50
|
+
bounce: 0,
|
|
51
|
+
},
|
|
52
|
+
}),
|
|
53
|
+
} as MotionProps['variants'],
|
|
54
|
+
DIVIDER: {
|
|
55
|
+
closed: () => ({
|
|
56
|
+
backgroundColor: COLORS[400],
|
|
57
|
+
}),
|
|
58
|
+
open: () => ({
|
|
59
|
+
backgroundColor: COLORS[50],
|
|
60
|
+
transition: {
|
|
61
|
+
duration: 0.5,
|
|
62
|
+
bounce: 0,
|
|
63
|
+
},
|
|
64
|
+
}),
|
|
65
|
+
} as MotionProps['variants'],
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { ACCORDIAN_VARIANTS, GLOW_VARIANT, SHINE_VARIANT };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AnimationProps, motion, MotionStyle, SVGMotionProps, Variant, Variants } from 'framer-motion';
|
|
2
|
+
|
|
3
|
+
export type MotionVariant = Variant;
|
|
4
|
+
export type MotionVariants = Variants;
|
|
5
|
+
export type MotionAnimationProps = AnimationProps;
|
|
6
|
+
export type MotionStyleProps = MotionStyle;
|
|
7
|
+
export type MotionSVGProps = SVGMotionProps<SVGPathElement>;
|
|
8
|
+
|
|
9
|
+
export interface MotionProps {
|
|
10
|
+
variants: Variants;
|
|
11
|
+
animationProps: AnimationProps;
|
|
12
|
+
motionStyle: MotionStyle;
|
|
13
|
+
svgProps: SVGMotionProps<SVGPathElement>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Motion = {
|
|
17
|
+
Div: motion.div,
|
|
18
|
+
Button: motion.button,
|
|
19
|
+
Section: motion.section,
|
|
20
|
+
Span: motion.span,
|
|
21
|
+
Li: motion.li,
|
|
22
|
+
Ul: motion.ul,
|
|
23
|
+
Img: motion.img,
|
|
24
|
+
Path: motion.path,
|
|
25
|
+
Nav: motion.nav,
|
|
26
|
+
};
|
|
27
|
+
export default Motion;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/typings.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
$theme-40: var(--themes-color-40);
|
|
2
|
+
$theme-50: var(--themes-color-50);
|
|
3
|
+
$theme-100: var(--themes-color-100);
|
|
4
|
+
$theme-200: var(--themes-color-200);
|
|
5
|
+
$theme-300: var(--themes-color-300);
|
|
6
|
+
$theme-400: var(--themes-color-400);
|
|
7
|
+
$theme-500: var(--themes-color-500);
|
|
8
|
+
$theme-600: var(--themes-color-600);
|
|
9
|
+
$theme-700: var(--themes-color-700);
|
|
10
|
+
$theme-800: var(--themes-color-800);
|
|
11
|
+
$theme-100000: var(--themes-color-100000);
|
|
12
|
+
|
|
13
|
+
$border-accent: #d5ffcc40;
|
|
14
|
+
$bottom-shade: #08070700;
|
|
15
|
+
$shadow-tint: rgb(8, 7, 7);
|
|
16
|
+
|
|
17
|
+
$background-gradient-0: radial-gradient(50% 50% at 0% 0%, $theme-600 0%, $theme-500 100%);
|
|
18
|
+
$background-gradient-1: radial-gradient(
|
|
19
|
+
50% 39.900000000000006% at 50% 55.800000000000004%,
|
|
20
|
+
var(--themes-color-700) 0%,
|
|
21
|
+
var(--themes-color-500) 100%
|
|
22
|
+
);
|
|
23
|
+
$background-gradient-2: radial-gradient(75% 100% at 100% 0%, $theme-600 0%, $theme-500 100%);
|
|
24
|
+
$background-gradient-3: radial-gradient(50% 50% at 50% 50%, $theme-700 0%, $theme-500 100%);
|
|
25
|
+
$background-gradient-4: radial-gradient(75% 50% at 0% 100%, $theme-600 0%, $theme-500 100%);
|
|
26
|
+
$background-gradient-5: radial-gradient(75% 50% at 0% 0%, $theme-600 0%, $theme-500 100%);
|
|
27
|
+
|
|
28
|
+
$background-gradient-6: radial-gradient(50% 50% at 50% 50%, $theme-700 0%, $shadow-tint 100%);
|
|
29
|
+
$background-gradient-7: radial-gradient(75% 50% at 100% 100%, $theme-600 0%, $bottom-shade 100%);
|
|
30
|
+
|
|
31
|
+
$background-gradient-8: radial-gradient(50% 50% at 0% 0%, $theme-600 0%, $theme-500 100%);
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"rootDir": ".",
|
|
4
|
+
"outDir": "./dist",
|
|
5
|
+
"jsx": "preserve",
|
|
6
|
+
"baseUrl": "./src",
|
|
7
|
+
"paths": {
|
|
8
|
+
"@components/*": ["components/*"]
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"include": [
|
|
12
|
+
"**/*.ts",
|
|
13
|
+
"**/*.tsx",
|
|
14
|
+
"../../typings",
|
|
15
|
+
"jest.setup.cjs",
|
|
16
|
+
"~/*.ts",
|
|
17
|
+
"~/*.tsx",
|
|
18
|
+
"src/shared/wrappers/index.tsz"
|
|
19
|
+
],
|
|
20
|
+
"exclude": ["dist"]
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { PlopTypes } from '@turbo/gen';
|
|
2
|
+
|
|
3
|
+
// Learn more about Turborepo Generators at https://turbo.build/repo/docs/core-concepts/monorepos/code-generation
|
|
4
|
+
|
|
5
|
+
export default function generator(plop: PlopTypes.NodePlopAPI): void {
|
|
6
|
+
// A simple generator to add a new React component to the internal UI library
|
|
7
|
+
plop.setGenerator('react-component', {
|
|
8
|
+
description: 'Adds a new react component',
|
|
9
|
+
prompts: [
|
|
10
|
+
{
|
|
11
|
+
type: 'input',
|
|
12
|
+
name: 'name',
|
|
13
|
+
message: 'What is the name of the component?',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
actions: [
|
|
17
|
+
{
|
|
18
|
+
type: 'add',
|
|
19
|
+
path: 'src/{{kebabCase name}}.tsx',
|
|
20
|
+
templateFile: 'templates/component.hbs',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'append',
|
|
24
|
+
path: 'package.json',
|
|
25
|
+
pattern: /"exports": {(?<insertion>)/g,
|
|
26
|
+
template: ' "./{{kebabCase name}}": "./src/{{kebabCase name}}.tsx",',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
});
|
|
30
|
+
}
|
package/vite.config.mjs
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
|
|
3
|
+
import react from '@vitejs/plugin-react';
|
|
4
|
+
// import eslint from 'vite-plugin-eslint';
|
|
5
|
+
import { defineConfig } from 'vitest/config';
|
|
6
|
+
|
|
7
|
+
// https://vitejs.dev/config/
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
plugins: [
|
|
10
|
+
react(),
|
|
11
|
+
// eslint({ exclude: ['/virtual:/**', 'node_modules/**'] })
|
|
12
|
+
],
|
|
13
|
+
test: {
|
|
14
|
+
globals: true,
|
|
15
|
+
environment: 'jsdom',
|
|
16
|
+
setupFiles: path.resolve(__dirname, '') + '/setupTests.mjs',
|
|
17
|
+
css: true,
|
|
18
|
+
// deps: {
|
|
19
|
+
// registerNodeLoader: false, // https://stackoverflow.com/questions/73309769/how-to-test-a-react-app-with-framer-motion-using-vitest
|
|
20
|
+
// },
|
|
21
|
+
},
|
|
22
|
+
resolve: {
|
|
23
|
+
alias: [{ find: '@', replacement: path.resolve(__dirname, 'src') }],
|
|
24
|
+
},
|
|
25
|
+
});
|