@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,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RowList = exports.ListItem = exports.Default = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var hooks_1 = require("../../hooks");
|
|
6
|
+
var Card_1 = require("../TripieCard/Card");
|
|
7
|
+
var List_1 = require("./List");
|
|
8
|
+
var meta = {
|
|
9
|
+
title: 'tripie-ui/List',
|
|
10
|
+
component: List_1.default,
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
argTypes: {},
|
|
13
|
+
decorators: [
|
|
14
|
+
function (story, context) {
|
|
15
|
+
var _a = (0, hooks_1.useAppTheme)(), mode = _a.mode, setMode = _a.setMode;
|
|
16
|
+
var selectedTheme = context.globals.theme || mode;
|
|
17
|
+
(0, react_1.useEffect)(function () {
|
|
18
|
+
setMode(selectedTheme);
|
|
19
|
+
}, [selectedTheme]);
|
|
20
|
+
return <div className={"".concat(context.globals.theme)}>{story()}</div>;
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
};
|
|
24
|
+
exports.default = meta;
|
|
25
|
+
var Children = function () {
|
|
26
|
+
return Array.from({ length: 6 }, function (_, index) { return (<Card_1.default.WithCoverImage src={'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg'} alt={'https://media.triple.guide/triple-cms/c_limit,f_auto,h_2048,w_2048/54e3594d-1087-43ff-b760-7231d4103edf.jpeg의 이미지일 수도 있음'} summary={'대자연부터 감성 카페까지, 인생샷을 남길 수 있는 곳'} withBorder={false} title={'여름 제주 인생샷 명소 BEST 7'} key={index}/>); });
|
|
27
|
+
};
|
|
28
|
+
exports.Default = {
|
|
29
|
+
name: 'Default',
|
|
30
|
+
args: {
|
|
31
|
+
children: Children(),
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
exports.ListItem = {
|
|
35
|
+
name: 'Default',
|
|
36
|
+
args: {
|
|
37
|
+
children: Children(),
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
exports.RowList = {
|
|
41
|
+
name: 'List.Row',
|
|
42
|
+
render: function () { return (<List_1.default rowView={true}>
|
|
43
|
+
<Children />
|
|
44
|
+
</List_1.default>); },
|
|
45
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ACCORDIAN_VARIANTS = void 0;
|
|
4
|
+
var colors_1 = require("../../shared/colors");
|
|
5
|
+
exports.ACCORDIAN_VARIANTS = {
|
|
6
|
+
DIVIDER: {
|
|
7
|
+
closed: function () { return ({
|
|
8
|
+
x: '0%',
|
|
9
|
+
width: '0%',
|
|
10
|
+
translateY: '-10px',
|
|
11
|
+
backgroundColor: 'transparent',
|
|
12
|
+
}); },
|
|
13
|
+
open: function () { return ({
|
|
14
|
+
x: '0%',
|
|
15
|
+
backgroundColor: colors_1.default[50],
|
|
16
|
+
width: '100%',
|
|
17
|
+
transition: {
|
|
18
|
+
damping: 10,
|
|
19
|
+
stiffness: 100,
|
|
20
|
+
duration: 0.5,
|
|
21
|
+
},
|
|
22
|
+
}); },
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var framer_motion_1 = require("framer-motion");
|
|
4
|
+
var react_intersection_observer_1 = require("react-intersection-observer");
|
|
5
|
+
var cardMotion = {
|
|
6
|
+
hidden: { opacity: 0, y: 50 },
|
|
7
|
+
visible: { opacity: 1, y: 0 },
|
|
8
|
+
};
|
|
9
|
+
var MotionSlideUp = function (_a) {
|
|
10
|
+
var _b = _a.duration, duration = _b === void 0 ? 1 : _b, _c = _a.delay, delay = _c === void 0 ? 0 : _c, _d = _a.replays, replays = _d === void 0 ? true : _d, children = _a.children, className = _a.className;
|
|
11
|
+
return (<react_intersection_observer_1.InView>
|
|
12
|
+
{function (_a) {
|
|
13
|
+
var inView = _a.inView, ref = _a.ref;
|
|
14
|
+
return (<framer_motion_1.motion.div animate={inView ? 'visible' : 'hidden'} ref={ref} variants={cardMotion} transition={{ duration: duration, delay: delay, damping: 2, stiffness: 10, replays: replays }} className={className}>
|
|
15
|
+
{children}
|
|
16
|
+
</framer_motion_1.motion.div>);
|
|
17
|
+
}}
|
|
18
|
+
</react_intersection_observer_1.InView>);
|
|
19
|
+
};
|
|
20
|
+
exports.default = MotionSlideUp;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.default = void 0;
|
|
18
|
+
__exportStar(require("./MotionSlideUp"), exports);
|
|
19
|
+
var MotionSlideUp_1 = require("./MotionSlideUp");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return MotionSlideUp_1.default; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = ParticleBackground;
|
|
4
|
+
var bind_1 = require("classnames/bind");
|
|
5
|
+
var TripieContainer_1 = require("../../TripieContainer");
|
|
6
|
+
var ParticleField_1 = require("../Field/ParticleField");
|
|
7
|
+
var particle_background_module_scss_1 = require("./particle-background.module.scss");
|
|
8
|
+
var cx = bind_1.default.bind(particle_background_module_scss_1.default);
|
|
9
|
+
function ParticleBackground(_a) {
|
|
10
|
+
var children = _a.children;
|
|
11
|
+
return (<TripieContainer_1.default className={cx('background')} margin="none">
|
|
12
|
+
<TripieContainer_1.default className={cx('gradient-bottom')} margin="none"></TripieContainer_1.default>
|
|
13
|
+
{children}
|
|
14
|
+
<ParticleField_1.default />
|
|
15
|
+
</TripieContainer_1.default>);
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.default = void 0;
|
|
18
|
+
__exportStar(require("./ParticleBackground"), exports);
|
|
19
|
+
var ParticleBackground_1 = require("./ParticleBackground");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return ParticleBackground_1.default; } });
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Default = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var hooks_1 = require("../../../hooks");
|
|
6
|
+
var ParticleBackground_1 = require("./ParticleBackground");
|
|
7
|
+
var meta = {
|
|
8
|
+
title: 'tripie-ui/Particle/Background',
|
|
9
|
+
component: ParticleBackground_1.default,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {},
|
|
12
|
+
decorators: [
|
|
13
|
+
function (story, context) {
|
|
14
|
+
var _a = (0, hooks_1.useAppTheme)(), mode = _a.mode, setMode = _a.setMode;
|
|
15
|
+
var selectedTheme = context.globals.theme || mode;
|
|
16
|
+
(0, react_1.useEffect)(function () {
|
|
17
|
+
setMode(selectedTheme);
|
|
18
|
+
}, [selectedTheme]);
|
|
19
|
+
return <div className={"".concat(context.globals.theme)}>{story()}</div>;
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
};
|
|
23
|
+
exports.default = meta;
|
|
24
|
+
exports.Default = {
|
|
25
|
+
name: 'Default',
|
|
26
|
+
render: function () { return (<div style={{ height: '100vh', width: '100vw' }}>
|
|
27
|
+
<ParticleBackground_1.default>default</ParticleBackground_1.default>
|
|
28
|
+
</div>); },
|
|
29
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var Particles_1 = require("../Particles/Particles");
|
|
4
|
+
var bind_1 = require("classnames/bind");
|
|
5
|
+
var particle_field_module_scss_1 = require("./particle-field.module.scss");
|
|
6
|
+
var cx = bind_1.default.bind(particle_field_module_scss_1.default);
|
|
7
|
+
var particles = Array.from({ length: 50 }, function () { return ({
|
|
8
|
+
x: Math.random() * 1000 - 500,
|
|
9
|
+
y: Math.random() * 1000 - 500,
|
|
10
|
+
duration: Math.random() * 10 + 5,
|
|
11
|
+
}); });
|
|
12
|
+
var ParticleField = function () {
|
|
13
|
+
return (<div className={cx('particle-field')}>
|
|
14
|
+
{particles.map(function (particle, index) { return (<Particles_1.default key={"".concat(index, "-").concat(particle.x, "-").concat(particle.y, "-").concat(particle.duration)} x={particle.x} y={particle.y} duration={particle.duration}/>); })}
|
|
15
|
+
</div>);
|
|
16
|
+
};
|
|
17
|
+
exports.default = ParticleField;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.default = void 0;
|
|
18
|
+
__exportStar(require("./ParticleField"), exports);
|
|
19
|
+
var ParticleField_1 = require("./ParticleField");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return ParticleField_1.default; } });
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Default = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var hooks_1 = require("../../../hooks");
|
|
6
|
+
var ParticleField_1 = require("./ParticleField");
|
|
7
|
+
var meta = {
|
|
8
|
+
title: 'tripie-ui/Particle/Field',
|
|
9
|
+
component: ParticleField_1.default,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {},
|
|
12
|
+
decorators: [
|
|
13
|
+
function (story, context) {
|
|
14
|
+
var _a = (0, hooks_1.useAppTheme)(), mode = _a.mode, setMode = _a.setMode;
|
|
15
|
+
var selectedTheme = context.globals.theme || mode;
|
|
16
|
+
(0, react_1.useEffect)(function () {
|
|
17
|
+
setMode(selectedTheme);
|
|
18
|
+
}, [selectedTheme]);
|
|
19
|
+
return <div className={"".concat(context.globals.theme)}>{story()}</div>;
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
};
|
|
23
|
+
exports.default = meta;
|
|
24
|
+
exports.Default = {
|
|
25
|
+
name: 'Default',
|
|
26
|
+
render: function () {
|
|
27
|
+
return (<div style={{ height: '100vh' }}>
|
|
28
|
+
<ParticleField_1.default />
|
|
29
|
+
</div>);
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var bind_1 = require("classnames/bind");
|
|
4
|
+
var framer_motion_1 = require("framer-motion");
|
|
5
|
+
var particles_module_scss_1 = require("./particles.module.scss");
|
|
6
|
+
var cx = bind_1.default.bind(particles_module_scss_1.default);
|
|
7
|
+
var Particles = function (_a) {
|
|
8
|
+
var x = _a.x, y = _a.y, duration = _a.duration;
|
|
9
|
+
return (<framer_motion_1.motion.div initial={{ opacity: 0, x: 0, y: 0 }} animate={{ opacity: 1, x: x, y: y }} transition={{
|
|
10
|
+
repeat: Infinity,
|
|
11
|
+
repeatType: 'mirror',
|
|
12
|
+
duration: duration,
|
|
13
|
+
}} className={cx('particle')}/>);
|
|
14
|
+
};
|
|
15
|
+
exports.default = Particles;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var bind_1 = require("classnames/bind");
|
|
4
|
+
var framer_motion_1 = require("framer-motion");
|
|
5
|
+
var rotating_blur_module_scss_1 = require("./rotating-blur.module.scss");
|
|
6
|
+
var cx = bind_1.default.bind(rotating_blur_module_scss_1.default);
|
|
7
|
+
var RotatingBlur = function () {
|
|
8
|
+
return (<framer_motion_1.motion.div className={cx('pie', 'rotating-blur')} initial={{ rotate: 0 }} animate={{ scale: [1, 1.2, 1.5, 1.2, 1], rotate: 360 }} transition={{
|
|
9
|
+
duration: 5,
|
|
10
|
+
times: [0, 0.25, 0.5, 0.75, 1],
|
|
11
|
+
repeat: Infinity,
|
|
12
|
+
ease: 'linear',
|
|
13
|
+
}}>
|
|
14
|
+
<framer_motion_1.motion.div className={cx('segment', 'segment-1')}></framer_motion_1.motion.div>
|
|
15
|
+
<framer_motion_1.motion.div className={cx('segment', 'segment-2')}></framer_motion_1.motion.div>
|
|
16
|
+
<framer_motion_1.motion.div className={cx('segment', 'segment-3')}></framer_motion_1.motion.div>
|
|
17
|
+
</framer_motion_1.motion.div>);
|
|
18
|
+
};
|
|
19
|
+
exports.default = RotatingBlur;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.default = void 0;
|
|
18
|
+
__exportStar(require("./RotatingBlur"), exports);
|
|
19
|
+
var RotatingBlur_1 = require("./RotatingBlur");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return RotatingBlur_1.default; } });
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Default = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var hooks_1 = require("../../hooks");
|
|
6
|
+
var RotatingBlur_1 = require("./RotatingBlur");
|
|
7
|
+
var meta = {
|
|
8
|
+
title: 'tripie-ui/RotatingBlur',
|
|
9
|
+
component: RotatingBlur_1.default,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {},
|
|
12
|
+
parameters: {
|
|
13
|
+
docs: {
|
|
14
|
+
description: {
|
|
15
|
+
component: '회전하며 크기가 줄었다 늘어나는 애니메이션 오브젝트입니다.',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
decorators: [
|
|
20
|
+
function (story, context) {
|
|
21
|
+
var _a = (0, hooks_1.useAppTheme)(), mode = _a.mode, setMode = _a.setMode;
|
|
22
|
+
var selectedTheme = context.globals.theme || mode;
|
|
23
|
+
(0, react_1.useEffect)(function () {
|
|
24
|
+
setMode(selectedTheme);
|
|
25
|
+
}, [selectedTheme]);
|
|
26
|
+
return <div className={"".concat(context.globals.theme)}>{story()}</div>;
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
30
|
+
exports.default = meta;
|
|
31
|
+
exports.Default = {
|
|
32
|
+
name: 'Default',
|
|
33
|
+
render: function () {
|
|
34
|
+
return (<div style={{ height: '100vh' }}>
|
|
35
|
+
<RotatingBlur_1.default />
|
|
36
|
+
</div>);
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
var bind_1 = require("classnames/bind");
|
|
5
|
+
var framer_motion_1 = require("framer-motion");
|
|
6
|
+
var TripieContainer_1 = require("../TripieContainer/TripieContainer");
|
|
7
|
+
var splash_screen_module_scss_1 = require("./splash-screen.module.scss");
|
|
8
|
+
var cx = bind_1.default.bind(splash_screen_module_scss_1.default);
|
|
9
|
+
var SplashScreen = function (_a) {
|
|
10
|
+
var children = _a.children;
|
|
11
|
+
return (<framer_motion_1.motion.section className={cx('section')} initial={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: '-120%' }} transition={{ duration: 0.8, delay: 1 }}>
|
|
12
|
+
<TripieContainer_1.default align="center">{children}</TripieContainer_1.default>
|
|
13
|
+
</framer_motion_1.motion.section>);
|
|
14
|
+
};
|
|
15
|
+
var ControlledSplashScreen = function (_a) {
|
|
16
|
+
var children = _a.children;
|
|
17
|
+
return (<framer_motion_1.motion.section className={cx('section')} initial={{ opacity: 1, y: 0 }}>
|
|
18
|
+
<TripieContainer_1.default align="center">{children}</TripieContainer_1.default>
|
|
19
|
+
</framer_motion_1.motion.section>);
|
|
20
|
+
};
|
|
21
|
+
SplashScreen.Controlled = ControlledSplashScreen;
|
|
22
|
+
exports.default = SplashScreen;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.default = void 0;
|
|
18
|
+
__exportStar(require("./SplashScreen"), exports);
|
|
19
|
+
var SplashScreen_1 = require("./SplashScreen");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return SplashScreen_1.default; } });
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Loading = exports.Default = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var hooks_1 = require("../../hooks");
|
|
6
|
+
var TextFillAnimation_1 = require("../TextFill/TextFillAnimation");
|
|
7
|
+
var SplashScreen_1 = require("./SplashScreen");
|
|
8
|
+
var meta = {
|
|
9
|
+
title: 'tripie-ui/SplashScreen',
|
|
10
|
+
component: SplashScreen_1.default,
|
|
11
|
+
parameters: {
|
|
12
|
+
docs: {
|
|
13
|
+
description: {
|
|
14
|
+
component: '로딩 시 화면 전체를 차지하며 스크롤업되는 splash screen 컴포넌트입니다.',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
tags: ['autodocs'],
|
|
19
|
+
decorators: [
|
|
20
|
+
function (story, context) {
|
|
21
|
+
var _a = (0, hooks_1.useAppTheme)(), mode = _a.mode, setMode = _a.setMode;
|
|
22
|
+
var selectedTheme = context.globals.theme || mode;
|
|
23
|
+
(0, react_1.useEffect)(function () {
|
|
24
|
+
setMode(selectedTheme);
|
|
25
|
+
}, [selectedTheme]);
|
|
26
|
+
return <div className={"".concat(context.globals.theme)}>{story()}</div>;
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
30
|
+
exports.default = meta;
|
|
31
|
+
exports.Default = {
|
|
32
|
+
name: 'Default',
|
|
33
|
+
render: function () { return (<div style={{ height: '100vh' }}>
|
|
34
|
+
<SplashScreen_1.default>splash</SplashScreen_1.default>
|
|
35
|
+
</div>); },
|
|
36
|
+
};
|
|
37
|
+
exports.Loading = {
|
|
38
|
+
name: 'Loading',
|
|
39
|
+
render: function () { return (<div style={{ height: '100vh' }}>
|
|
40
|
+
<SplashScreen_1.default>
|
|
41
|
+
<TextFillAnimation_1.default.Title>Tripie.</TextFillAnimation_1.default.Title>
|
|
42
|
+
</SplashScreen_1.default>
|
|
43
|
+
</div>); },
|
|
44
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var bind_1 = require("classnames/bind");
|
|
4
|
+
var framer_motion_1 = require("framer-motion");
|
|
5
|
+
var switch_module_scss_1 = require("./switch.module.scss");
|
|
6
|
+
var variants_1 = require("./variants");
|
|
7
|
+
var cx = bind_1.default.bind(switch_module_scss_1.default);
|
|
8
|
+
var Switch = function (_a) {
|
|
9
|
+
var current = _a.current, cycle = _a.cycle, className = _a.className, text = _a.text;
|
|
10
|
+
return (<framer_motion_1.motion.div className={cx('switch', className)} animate={current} onTapStart={function () { return cycle(); }}>
|
|
11
|
+
<framer_motion_1.motion.div className={cx('background')} variants={variants_1.SWITCH_VARIANTS.BACKGROUND} transition={{ ease: 'easeInOut' }}/>
|
|
12
|
+
<framer_motion_1.motion.div className={cx('button')} variants={variants_1.SWITCH_VARIANTS.BUTTON} transition={{ ease: 'easeInOut' }}/>
|
|
13
|
+
<framer_motion_1.motion.div className={cx('switch-text')} variants={variants_1.SWITCH_VARIANTS.TEXT} transition={{ ease: 'easeInOut' }}>
|
|
14
|
+
{text}
|
|
15
|
+
</framer_motion_1.motion.div>
|
|
16
|
+
</framer_motion_1.motion.div>);
|
|
17
|
+
};
|
|
18
|
+
exports.default = Switch;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.default = void 0;
|
|
18
|
+
__exportStar(require("./Switch"), exports);
|
|
19
|
+
var Switch_1 = require("./Switch");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return Switch_1.default; } });
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Default = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var hooks_1 = require("../../hooks");
|
|
6
|
+
var useCycle_1 = require("../../hooks/useCycle");
|
|
7
|
+
var Switch_1 = require("./Switch");
|
|
8
|
+
var meta = {
|
|
9
|
+
title: 'tripie-ui/Switch',
|
|
10
|
+
component: Switch_1.default,
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
argTypes: {},
|
|
13
|
+
decorators: [
|
|
14
|
+
function (story, context) {
|
|
15
|
+
var _a = (0, hooks_1.useAppTheme)(), mode = _a.mode, setMode = _a.setMode;
|
|
16
|
+
var selectedTheme = context.globals.theme || mode;
|
|
17
|
+
(0, react_1.useEffect)(function () {
|
|
18
|
+
setMode(selectedTheme);
|
|
19
|
+
}, [selectedTheme]);
|
|
20
|
+
return <div className={"".concat(context.globals.theme)}>{story()}</div>;
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
};
|
|
24
|
+
exports.default = meta;
|
|
25
|
+
exports.Default = {
|
|
26
|
+
name: 'Particle',
|
|
27
|
+
render: function () {
|
|
28
|
+
var _a = (0, useCycle_1.useCycle)('off', 'on'), current = _a[0], cycle = _a[1];
|
|
29
|
+
return <Switch_1.default current={current} cycle={cycle} text={current}/>;
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SWITCH_VARIANTS = void 0;
|
|
4
|
+
var colors_1 = require("../../shared/colors");
|
|
5
|
+
exports.SWITCH_VARIANTS = {
|
|
6
|
+
BACKGROUND: {
|
|
7
|
+
off: function () { return ({
|
|
8
|
+
backgroundColor: colors_1.default[40],
|
|
9
|
+
borderColor: colors_1.default[400],
|
|
10
|
+
}); },
|
|
11
|
+
on: function () { return ({
|
|
12
|
+
backgroundColor: colors_1.default[50],
|
|
13
|
+
borderColor: colors_1.default[50],
|
|
14
|
+
}); },
|
|
15
|
+
},
|
|
16
|
+
BUTTON: {
|
|
17
|
+
off: function () { return ({
|
|
18
|
+
x: '150%',
|
|
19
|
+
backgroundColor: colors_1.default[40],
|
|
20
|
+
}); },
|
|
21
|
+
on: function () { return ({
|
|
22
|
+
x: '30%',
|
|
23
|
+
backgroundColor: colors_1.default[50],
|
|
24
|
+
}); },
|
|
25
|
+
},
|
|
26
|
+
TEXT: {
|
|
27
|
+
off: function () { return ({
|
|
28
|
+
x: '0%',
|
|
29
|
+
}); },
|
|
30
|
+
on: function () { return ({
|
|
31
|
+
x: '200%',
|
|
32
|
+
color: colors_1.default[50],
|
|
33
|
+
}); },
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var bind_1 = require("classnames/bind");
|
|
15
|
+
var framer_motion_1 = require("framer-motion");
|
|
16
|
+
var TripieContainer_1 = require("../TripieContainer/TripieContainer");
|
|
17
|
+
var text_module_scss_1 = require("./text.module.scss");
|
|
18
|
+
var variants_1 = require("./variants");
|
|
19
|
+
var cx = bind_1.default.bind(text_module_scss_1.default);
|
|
20
|
+
var Text = function (_a) {
|
|
21
|
+
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
22
|
+
var splitText = "".concat(children).split('\n').map(function (sentence, index) {
|
|
23
|
+
return (<span className={cx('text', className)} key={index + sentence} {...props}>
|
|
24
|
+
{sentence}
|
|
25
|
+
</span>);
|
|
26
|
+
});
|
|
27
|
+
return <>{splitText}</>;
|
|
28
|
+
};
|
|
29
|
+
var AccentedText = function (_a) {
|
|
30
|
+
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
31
|
+
return (<span className={cx('text', 'accented', className)} {...props}>
|
|
32
|
+
{children}
|
|
33
|
+
</span>);
|
|
34
|
+
};
|
|
35
|
+
var FlickText = function (_a) {
|
|
36
|
+
var children = _a.children, className = _a.className;
|
|
37
|
+
return (<framer_motion_1.motion.span className={cx('flick', className)} variants={variants_1.VARIANTS['TEXT']}>
|
|
38
|
+
{children}
|
|
39
|
+
</framer_motion_1.motion.span>);
|
|
40
|
+
};
|
|
41
|
+
var AnimatedText = function (_a) {
|
|
42
|
+
var children = _a.children, className = _a.className, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.otherChild, otherChild = _c === void 0 ? children : _c, _d = _a.withBorder, withBorder = _d === void 0 ? false : _d, _e = _a.animate, animate = _e === void 0 ? 'rest' : _e;
|
|
43
|
+
return (<framer_motion_1.motion.div className={cx('button', withBorder && 'with-border', className)} initial="rest" whileHover={disabled ? 'rest' : 'hover'} whileTap={disabled ? 'rest' : 'hover'} animate={animate}>
|
|
44
|
+
<FlickText>{children}</FlickText>
|
|
45
|
+
<FlickText className={cx('hovered')}>{otherChild}</FlickText>
|
|
46
|
+
</framer_motion_1.motion.div>);
|
|
47
|
+
};
|
|
48
|
+
var JumpingText = function (_a) {
|
|
49
|
+
var children = _a.children, className = _a.className;
|
|
50
|
+
return (<TripieContainer_1.default className={cx('box')} margin="none">
|
|
51
|
+
{children.split('').map(function (item, index) { return (<framer_motion_1.motion.span key={index + item} className={cx('box', className)} animate={{ y: [-5, 0] }} transition={{
|
|
52
|
+
delay: index * 0.1,
|
|
53
|
+
duration: 0.5,
|
|
54
|
+
repeat: Infinity,
|
|
55
|
+
repeatType: 'reverse',
|
|
56
|
+
}}>
|
|
57
|
+
{item}
|
|
58
|
+
</framer_motion_1.motion.span>); })}
|
|
59
|
+
</TripieContainer_1.default>);
|
|
60
|
+
};
|
|
61
|
+
var SlidingText = function (_a) {
|
|
62
|
+
var children = _a.children, className = _a.className, transition = _a.transition, _b = _a.animate, animate = _b === void 0 ? 'fly' : _b, _c = _a.duration, duration = _c === void 0 ? 5 : _c;
|
|
63
|
+
return (<framer_motion_1.motion.div className={cx(className)} initial="rest" animate={animate} transition={transition} variants={variants_1.VARIANTS.SLIDE(duration)}>
|
|
64
|
+
{children}
|
|
65
|
+
</framer_motion_1.motion.div>);
|
|
66
|
+
};
|
|
67
|
+
Text.Accented = AccentedText;
|
|
68
|
+
Text.Slide = SlidingText;
|
|
69
|
+
Text.Animated = AnimatedText;
|
|
70
|
+
Text.Flick = FlickText;
|
|
71
|
+
Text.Jump = JumpingText;
|
|
72
|
+
exports.default = Text;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.default = void 0;
|
|
18
|
+
__exportStar(require("./Text"), exports);
|
|
19
|
+
var Text_1 = require("./Text");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return Text_1.default; } });
|