@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,65 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
import { useAppTheme } from '../../hooks';
|
|
5
|
+
import Card from '../TripieCard/Card';
|
|
6
|
+
import List from './List';
|
|
7
|
+
|
|
8
|
+
const meta: Meta<typeof List> = {
|
|
9
|
+
title: 'tripie-ui/List',
|
|
10
|
+
component: List,
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
argTypes: {},
|
|
13
|
+
decorators: [
|
|
14
|
+
(story, context) => {
|
|
15
|
+
const { mode, setMode } = useAppTheme();
|
|
16
|
+
const selectedTheme = context.globals.theme || mode;
|
|
17
|
+
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
setMode(selectedTheme);
|
|
20
|
+
}, [selectedTheme]);
|
|
21
|
+
|
|
22
|
+
return <div className={`${context.globals.theme}`}>{story()}</div>;
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default meta;
|
|
28
|
+
type Story = StoryObj<typeof meta>;
|
|
29
|
+
|
|
30
|
+
const Children = () =>
|
|
31
|
+
Array.from({ length: 6 }, (_, index) => (
|
|
32
|
+
<Card.WithCoverImage
|
|
33
|
+
src={'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg'}
|
|
34
|
+
alt={
|
|
35
|
+
'https://media.triple.guide/triple-cms/c_limit,f_auto,h_2048,w_2048/54e3594d-1087-43ff-b760-7231d4103edf.jpeg의 이미지일 수도 있음'
|
|
36
|
+
}
|
|
37
|
+
summary={'대자연부터 감성 카페까지, 인생샷을 남길 수 있는 곳'}
|
|
38
|
+
withBorder={false}
|
|
39
|
+
title={'여름 제주 인생샷 명소 BEST 7'}
|
|
40
|
+
key={index}
|
|
41
|
+
/>
|
|
42
|
+
));
|
|
43
|
+
|
|
44
|
+
export const Default: Story = {
|
|
45
|
+
name: 'Default',
|
|
46
|
+
args: {
|
|
47
|
+
children: Children(),
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const ListItem: Story = {
|
|
52
|
+
name: 'Default',
|
|
53
|
+
args: {
|
|
54
|
+
children: Children(),
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const RowList: Story = {
|
|
59
|
+
name: 'List.Row',
|
|
60
|
+
render: () => (
|
|
61
|
+
<List rowView={true}>
|
|
62
|
+
<Children />
|
|
63
|
+
</List>
|
|
64
|
+
),
|
|
65
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import COLORS from '../../shared/colors';
|
|
2
|
+
import { MotionProps } from '../../shared/wrappers/motion-wrapper';
|
|
3
|
+
|
|
4
|
+
export const ACCORDIAN_VARIANTS = {
|
|
5
|
+
DIVIDER: {
|
|
6
|
+
closed: () => ({
|
|
7
|
+
x: '0%',
|
|
8
|
+
width: '0%',
|
|
9
|
+
translateY: '-10px',
|
|
10
|
+
backgroundColor: 'transparent',
|
|
11
|
+
}),
|
|
12
|
+
open: () => ({
|
|
13
|
+
x: '0%',
|
|
14
|
+
backgroundColor: COLORS[50],
|
|
15
|
+
width: '100%',
|
|
16
|
+
transition: {
|
|
17
|
+
damping: 10,
|
|
18
|
+
stiffness: 100,
|
|
19
|
+
duration: 0.5,
|
|
20
|
+
},
|
|
21
|
+
}),
|
|
22
|
+
} as MotionProps['variants'],
|
|
23
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import Motion, { MotionProps } from '../../shared/wrappers/motion-wrapper';
|
|
3
|
+
|
|
4
|
+
import { InView } from 'react-intersection-observer';
|
|
5
|
+
export type MotionSlideUpProps = Partial<MotionProps['animationProps']> & { children?: ReactNode; className?: string };
|
|
6
|
+
|
|
7
|
+
const cardMotion = {
|
|
8
|
+
hidden: { opacity: 0, y: 50 },
|
|
9
|
+
visible: { opacity: 1, y: 0 },
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type CustomMotionSlideUpProps = Partial<
|
|
13
|
+
MotionSlideUpProps & {
|
|
14
|
+
duration: number;
|
|
15
|
+
delay: number;
|
|
16
|
+
replays: boolean;
|
|
17
|
+
}
|
|
18
|
+
>;
|
|
19
|
+
|
|
20
|
+
const MotionSlideUp = ({ duration = 1, delay = 0, replays = true, children, className }: CustomMotionSlideUpProps) => {
|
|
21
|
+
return (
|
|
22
|
+
<InView>
|
|
23
|
+
{({ inView, ref }) => (
|
|
24
|
+
<Motion.Div
|
|
25
|
+
animate={inView ? 'visible' : 'hidden'}
|
|
26
|
+
ref={ref}
|
|
27
|
+
variants={cardMotion}
|
|
28
|
+
transition={{ duration, delay, damping: 2, stiffness: 10, replays }}
|
|
29
|
+
className={className}
|
|
30
|
+
>
|
|
31
|
+
{children}
|
|
32
|
+
</Motion.Div>
|
|
33
|
+
)}
|
|
34
|
+
</InView>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
export default MotionSlideUp;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { classNames } from '../../../shared/wrappers';
|
|
2
|
+
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import TripieContainer from '../../TripieContainer';
|
|
5
|
+
import ParticleField from '../Field/ParticleField';
|
|
6
|
+
import Style from './particle-background.module.scss';
|
|
7
|
+
|
|
8
|
+
const cx = classNames.bind(Style);
|
|
9
|
+
|
|
10
|
+
export default function ParticleBackground({ children }: Readonly<{ children: ReactNode }>) {
|
|
11
|
+
return (
|
|
12
|
+
<TripieContainer className={cx('background')} margin="none">
|
|
13
|
+
<TripieContainer className={cx('gradient-bottom')} margin="none"></TripieContainer>
|
|
14
|
+
{children}
|
|
15
|
+
<ParticleField />
|
|
16
|
+
</TripieContainer>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use '../../../variables' as *;
|
|
2
|
+
@use '../../../mixins' as *;
|
|
3
|
+
|
|
4
|
+
.background {
|
|
5
|
+
@include background('0');
|
|
6
|
+
align-items: center;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
flex-wrap: nowrap;
|
|
9
|
+
gap: 20px;
|
|
10
|
+
height: inherit;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
padding: 0;
|
|
14
|
+
width: inherit;
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.gradient-bottom {
|
|
19
|
+
@include background('7');
|
|
20
|
+
inset: 0;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
position: absolute;
|
|
23
|
+
z-index: 0;
|
|
24
|
+
height: inherit;
|
|
25
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
import { useAppTheme } from '../../../hooks';
|
|
5
|
+
import ParticleBackground from './ParticleBackground';
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof ParticleBackground> = {
|
|
8
|
+
title: 'tripie-ui/Particle/Background',
|
|
9
|
+
component: ParticleBackground,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {},
|
|
12
|
+
decorators: [
|
|
13
|
+
(story, context) => {
|
|
14
|
+
const { mode, setMode } = useAppTheme();
|
|
15
|
+
const selectedTheme = context.globals.theme || mode;
|
|
16
|
+
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
setMode(selectedTheme);
|
|
19
|
+
}, [selectedTheme]);
|
|
20
|
+
|
|
21
|
+
return <div className={`${context.globals.theme}`}>{story()}</div>;
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default meta;
|
|
27
|
+
type Story = StoryObj<typeof meta>;
|
|
28
|
+
|
|
29
|
+
export const Default: Story = {
|
|
30
|
+
name: 'Default',
|
|
31
|
+
render: () => (
|
|
32
|
+
<div style={{ height: '100vh', width: '100vw' }}>
|
|
33
|
+
<ParticleBackground>default</ParticleBackground>
|
|
34
|
+
</div>
|
|
35
|
+
),
|
|
36
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Particle from '../Particles/Particles';
|
|
2
|
+
|
|
3
|
+
import { classNames } from '../../../shared/wrappers';
|
|
4
|
+
import Style from './particle-field.module.scss';
|
|
5
|
+
const cx = classNames.bind(Style);
|
|
6
|
+
|
|
7
|
+
const particles = Array.from({ length: 50 }, () => ({
|
|
8
|
+
x: Math.random() * 1000 - 500,
|
|
9
|
+
y: Math.random() * 1000 - 500,
|
|
10
|
+
duration: Math.random() * 10 + 5,
|
|
11
|
+
}));
|
|
12
|
+
|
|
13
|
+
const ParticleField = () => {
|
|
14
|
+
return (
|
|
15
|
+
<div className={cx('particle-field')}>
|
|
16
|
+
{particles.map((particle, index) => (
|
|
17
|
+
<Particle
|
|
18
|
+
key={`${index}-${particle.x}-${particle.y}-${particle.duration}`}
|
|
19
|
+
x={particle.x}
|
|
20
|
+
y={particle.y}
|
|
21
|
+
duration={particle.duration}
|
|
22
|
+
/>
|
|
23
|
+
))}
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default ParticleField;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
import { useAppTheme } from '../../../hooks';
|
|
5
|
+
import ParticleField from './ParticleField';
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof ParticleField> = {
|
|
8
|
+
title: 'tripie-ui/Particle/Field',
|
|
9
|
+
component: ParticleField,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {},
|
|
12
|
+
decorators: [
|
|
13
|
+
(story, context) => {
|
|
14
|
+
const { mode, setMode } = useAppTheme();
|
|
15
|
+
const selectedTheme = context.globals.theme || mode;
|
|
16
|
+
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
setMode(selectedTheme);
|
|
19
|
+
}, [selectedTheme]);
|
|
20
|
+
|
|
21
|
+
return <div className={`${context.globals.theme}`}>{story()}</div>;
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default meta;
|
|
27
|
+
type Story = StoryObj<typeof meta>;
|
|
28
|
+
|
|
29
|
+
export const Default: Story = {
|
|
30
|
+
name: 'Default',
|
|
31
|
+
render: () => {
|
|
32
|
+
return (
|
|
33
|
+
<div style={{ height: '100vh' }}>
|
|
34
|
+
<ParticleField />
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { classNames, Motion } from '../../../shared/wrappers';
|
|
2
|
+
|
|
3
|
+
import Style from './particles.module.scss';
|
|
4
|
+
|
|
5
|
+
const cx = classNames.bind(Style);
|
|
6
|
+
|
|
7
|
+
const Particles = ({ x, y, duration = 0.5 }: { x: number; y: number; duration: number }) => {
|
|
8
|
+
return (
|
|
9
|
+
<Motion.Div
|
|
10
|
+
initial={{ opacity: 0, x: 0, y: 0 }}
|
|
11
|
+
animate={{ opacity: 1, x, y }}
|
|
12
|
+
transition={{
|
|
13
|
+
repeat: Infinity,
|
|
14
|
+
repeatType: 'mirror',
|
|
15
|
+
duration,
|
|
16
|
+
}}
|
|
17
|
+
className={cx('particle')}
|
|
18
|
+
/>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default Particles;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use '../../../variables' as *;
|
|
2
|
+
|
|
3
|
+
.particle {
|
|
4
|
+
background-color: $theme-50;
|
|
5
|
+
border-radius: 50%;
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 50%;
|
|
8
|
+
left: 50%;
|
|
9
|
+
height: 3px;
|
|
10
|
+
width: 3px;
|
|
11
|
+
z-index: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.particle-field {
|
|
15
|
+
position: absolute;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100vh;
|
|
18
|
+
z-index: 0;
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { classNames, Motion } from '../../shared/wrappers';
|
|
2
|
+
import Style from './rotating-blur.module.scss';
|
|
3
|
+
|
|
4
|
+
const cx = classNames.bind(Style);
|
|
5
|
+
|
|
6
|
+
const RotatingBlur = ({ className }: { className?: string }) => {
|
|
7
|
+
return (
|
|
8
|
+
<Motion.Div
|
|
9
|
+
className={cx('pie', 'rotating-blur', className)}
|
|
10
|
+
initial={{ rotate: 0 }}
|
|
11
|
+
animate={{ scale: [1, 1.2, 1.5, 1.2, 1], rotate: 360 }}
|
|
12
|
+
transition={{
|
|
13
|
+
duration: 5,
|
|
14
|
+
times: [0, 0.25, 0.5, 0.75, 1],
|
|
15
|
+
repeat: Infinity,
|
|
16
|
+
ease: 'linear',
|
|
17
|
+
}}
|
|
18
|
+
>
|
|
19
|
+
<Motion.Div className={cx('segment', 'segment-1')}></Motion.Div>
|
|
20
|
+
<Motion.Div className={cx('segment', 'segment-2')}></Motion.Div>
|
|
21
|
+
<Motion.Div className={cx('segment', 'segment-3')}></Motion.Div>
|
|
22
|
+
</Motion.Div>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default RotatingBlur;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.rotating-blur {
|
|
2
|
+
filter: blur(24px);
|
|
3
|
+
position: absolute;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100vh;
|
|
6
|
+
z-index: 0;
|
|
7
|
+
}
|
|
8
|
+
.pie {
|
|
9
|
+
width: 12rem;
|
|
10
|
+
height: 12rem;
|
|
11
|
+
}
|
|
12
|
+
.segment-1 {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
box-shadow: -1px -9px 1px 7px #5aacd9;
|
|
15
|
+
border-radius: 500px;
|
|
16
|
+
inset: 0;
|
|
17
|
+
position: absolute;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
place-items: center;
|
|
20
|
+
place-content: center;
|
|
21
|
+
color: #85f;
|
|
22
|
+
background: conic-gradient(from 0deg at 50% 50%, rgb(255, 255, 255), rgb(19, 156, 229), rgb(13, 231, 180));
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
.segment-3 {
|
|
26
|
+
box-shadow: -4px 7px 2px 8px #c73d3d;
|
|
27
|
+
border-radius: 500px;
|
|
28
|
+
inset: 0;
|
|
29
|
+
position: absolute;
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
place-items: center;
|
|
32
|
+
place-content: center;
|
|
33
|
+
color: #85f;
|
|
34
|
+
background: conic-gradient(from 0deg at 50% 50%, rgb(255, 217, 173), rgb(11, 87, 64), rgb(13, 231, 180));
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
opacity: 1;
|
|
37
|
+
}
|
|
38
|
+
.segment-2 {
|
|
39
|
+
box-shadow: -3px 7px 3px 4px #dda75f;
|
|
40
|
+
opacity: 0.8;
|
|
41
|
+
border-radius: 500px;
|
|
42
|
+
inset: 0;
|
|
43
|
+
position: absolute;
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
place-items: center;
|
|
46
|
+
place-content: center;
|
|
47
|
+
color: #85f;
|
|
48
|
+
background: conic-gradient(
|
|
49
|
+
from 0deg at 50% 50%,
|
|
50
|
+
rgb(255, 0, 0),
|
|
51
|
+
rgb(255, 0, 0),
|
|
52
|
+
rgb(20, 120, 90),
|
|
53
|
+
rgb(11, 86, 63),
|
|
54
|
+
rgb(11, 86, 63),
|
|
55
|
+
rgb(13, 231, 180),
|
|
56
|
+
rgb(255, 0, 0)
|
|
57
|
+
);
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
import { useAppTheme } from '../../hooks';
|
|
5
|
+
import RotatingBlur from './RotatingBlur';
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof RotatingBlur> = {
|
|
8
|
+
title: 'tripie-ui/RotatingBlur',
|
|
9
|
+
component: RotatingBlur,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {},
|
|
12
|
+
parameters: {
|
|
13
|
+
docs: {
|
|
14
|
+
description: {
|
|
15
|
+
component: '회전하며 크기가 줄었다 늘어나는 애니메이션 오브젝트입니다.',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
decorators: [
|
|
20
|
+
(story, context) => {
|
|
21
|
+
const { mode, setMode } = useAppTheme();
|
|
22
|
+
const selectedTheme = context.globals.theme || mode;
|
|
23
|
+
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
setMode(selectedTheme);
|
|
26
|
+
}, [selectedTheme]);
|
|
27
|
+
|
|
28
|
+
return <div className={`${context.globals.theme}`}>{story()}</div>;
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default meta;
|
|
34
|
+
type Story = StoryObj<typeof meta>;
|
|
35
|
+
|
|
36
|
+
export const Default: Story = {
|
|
37
|
+
name: 'Default',
|
|
38
|
+
render: () => {
|
|
39
|
+
return (
|
|
40
|
+
<div style={{ height: '100vh' }}>
|
|
41
|
+
<RotatingBlur />
|
|
42
|
+
</div>
|
|
43
|
+
);
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { classNames, Motion } from '../../shared/wrappers';
|
|
5
|
+
import Container from '../TripieContainer/TripieContainer';
|
|
6
|
+
import Style from './splash-screen.module.scss';
|
|
7
|
+
const cx = classNames.bind(Style);
|
|
8
|
+
|
|
9
|
+
const SplashScreen = ({ children,className }: Readonly<{ children: ReactNode ,className?:string}>) => {
|
|
10
|
+
return (
|
|
11
|
+
<Motion.Div
|
|
12
|
+
className={cx('splash-full-screen',className)}
|
|
13
|
+
initial={{ opacity: 1, y: 0 }}
|
|
14
|
+
animate={{ opacity: 1, y: '-120%' }}
|
|
15
|
+
transition={{ duration: 0.8, delay: 1 }}
|
|
16
|
+
>
|
|
17
|
+
<Container align="center">{children}</Container>
|
|
18
|
+
</Motion.Div>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const ControlledSplashScreen = ({ children,className }: Readonly<{ children: ReactNode,className?:string }>) => {
|
|
23
|
+
return (
|
|
24
|
+
<Motion.Div className={cx('splash-full-screen',className)} initial={{ opacity: 1, y: 0 }}>
|
|
25
|
+
<Container align="center">{children}</Container>
|
|
26
|
+
</Motion.Div>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
SplashScreen.Controlled = ControlledSplashScreen;
|
|
31
|
+
export default SplashScreen;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import { useAppTheme } from '../../hooks';
|
|
4
|
+
import TextFillAnimation from '../TextFill/TextFillAnimation';
|
|
5
|
+
import SplashScreen from './SplashScreen';
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof SplashScreen> = {
|
|
8
|
+
title: 'tripie-ui/SplashScreen',
|
|
9
|
+
component: SplashScreen,
|
|
10
|
+
parameters: {
|
|
11
|
+
docs: {
|
|
12
|
+
description: {
|
|
13
|
+
component: '로딩 시 화면 전체를 차지하며 스크롤업되는 splash screen 컴포넌트입니다.',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
tags: ['autodocs'],
|
|
18
|
+
decorators: [
|
|
19
|
+
(story, context) => {
|
|
20
|
+
const { mode, setMode } = useAppTheme();
|
|
21
|
+
const selectedTheme = context.globals.theme || mode;
|
|
22
|
+
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
setMode(selectedTheme);
|
|
25
|
+
}, [selectedTheme]);
|
|
26
|
+
|
|
27
|
+
return <div className={`${context.globals.theme}`}>{story()}</div>;
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default meta;
|
|
33
|
+
type Story = StoryObj<typeof meta>;
|
|
34
|
+
|
|
35
|
+
export const Default: Story = {
|
|
36
|
+
name: 'Default',
|
|
37
|
+
render: () => (
|
|
38
|
+
<div style={{ height: '100vh' }}>
|
|
39
|
+
<SplashScreen>splash</SplashScreen>
|
|
40
|
+
</div>
|
|
41
|
+
),
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const Loading: Story = {
|
|
45
|
+
name: 'Loading',
|
|
46
|
+
render: () => (
|
|
47
|
+
<div style={{ height: '100vh' }}>
|
|
48
|
+
<SplashScreen>
|
|
49
|
+
<TextFillAnimation.Title>Tripie.</TextFillAnimation.Title>
|
|
50
|
+
</SplashScreen>
|
|
51
|
+
</div>
|
|
52
|
+
),
|
|
53
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { classNames, Motion } from '../../shared/wrappers';
|
|
2
|
+
import Style from './switch.module.scss';
|
|
3
|
+
import { SWITCH_VARIANTS } from './variants';
|
|
4
|
+
|
|
5
|
+
const cx = classNames.bind(Style);
|
|
6
|
+
|
|
7
|
+
const Switch = ({
|
|
8
|
+
current,
|
|
9
|
+
cycle,
|
|
10
|
+
className,
|
|
11
|
+
text,
|
|
12
|
+
}: {
|
|
13
|
+
text?: string;
|
|
14
|
+
current: any;
|
|
15
|
+
cycle: () => void;
|
|
16
|
+
className?: string;
|
|
17
|
+
}) => {
|
|
18
|
+
return (
|
|
19
|
+
<Motion.Div className={cx('switch', className)} animate={current} onTapStart={() => cycle()}>
|
|
20
|
+
<Motion.Div
|
|
21
|
+
className={cx('background')}
|
|
22
|
+
variants={SWITCH_VARIANTS.BACKGROUND}
|
|
23
|
+
transition={{ ease: 'easeInOut' }}
|
|
24
|
+
/>
|
|
25
|
+
<Motion.Div className={cx('button')} variants={SWITCH_VARIANTS.BUTTON} transition={{ ease: 'easeInOut' }} />
|
|
26
|
+
<Motion.Div className={cx('switch-text')} variants={SWITCH_VARIANTS.TEXT} transition={{ ease: 'easeInOut' }}>
|
|
27
|
+
{text}
|
|
28
|
+
</Motion.Div>
|
|
29
|
+
</Motion.Div>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default Switch;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@use '../../mixins' as *;
|
|
2
|
+
@use '../../variables' as *;
|
|
3
|
+
|
|
4
|
+
$switch-background1: #181c17;
|
|
5
|
+
$switch-background2: #0f0f0f;
|
|
6
|
+
|
|
7
|
+
.switch {
|
|
8
|
+
width: fit-content;
|
|
9
|
+
min-width: 5rem;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
height: 2.5rem;
|
|
12
|
+
border: none;
|
|
13
|
+
position: relative;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
.background {
|
|
17
|
+
@include with-border;
|
|
18
|
+
background: radial-gradient(150% 150% at 50% 50%, $switch-background1 0%, $switch-background2 100%);
|
|
19
|
+
height: 100%;
|
|
20
|
+
width: 100%;
|
|
21
|
+
opacity: 1;
|
|
22
|
+
border-radius: 100px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.button {
|
|
26
|
+
background-color: $theme-50;
|
|
27
|
+
border-radius: 100%;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
position: absolute;
|
|
30
|
+
bottom: 0.5rem;
|
|
31
|
+
right: 3.2rem;
|
|
32
|
+
width: 1.6rem;
|
|
33
|
+
height: 1.6rem;
|
|
34
|
+
z-index: 3;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.switch-text {
|
|
38
|
+
border-radius: 100px;
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 25%;
|
|
41
|
+
left: 14%;
|
|
42
|
+
z-index: 3;
|
|
43
|
+
}
|