@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,177 @@
|
|
|
1
|
+
import { MotionProps } from '../../shared/wrappers/motion-wrapper';
|
|
2
|
+
|
|
3
|
+
export const ICON_VARIANTS = {
|
|
4
|
+
DEFAULT: {
|
|
5
|
+
closed: () => ({}),
|
|
6
|
+
open: () => ({
|
|
7
|
+
rotate: '45deg',
|
|
8
|
+
transition: {
|
|
9
|
+
duration: 0.5,
|
|
10
|
+
bounce: 0,
|
|
11
|
+
},
|
|
12
|
+
}),
|
|
13
|
+
hover: () => ({
|
|
14
|
+
rotate: '45deg',
|
|
15
|
+
transition: {
|
|
16
|
+
duration: 0.5,
|
|
17
|
+
bounce: 0,
|
|
18
|
+
},
|
|
19
|
+
}),
|
|
20
|
+
} as MotionProps['variants'],
|
|
21
|
+
ROTATE: {
|
|
22
|
+
hover: () => ({
|
|
23
|
+
rotate: '360deg',
|
|
24
|
+
transition: {
|
|
25
|
+
duration: 1.2,
|
|
26
|
+
bounce: 0.5,
|
|
27
|
+
},
|
|
28
|
+
}),
|
|
29
|
+
} as MotionProps['variants'],
|
|
30
|
+
NAVIGATE: (direction: 'back' | 'front') =>
|
|
31
|
+
(direction === 'back'
|
|
32
|
+
? {
|
|
33
|
+
closed: () => ({
|
|
34
|
+
rotate: '-135deg',
|
|
35
|
+
transition: {
|
|
36
|
+
duration: 0.1,
|
|
37
|
+
bounce: 1,
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
hover: () => ({
|
|
41
|
+
rotate: '-90deg',
|
|
42
|
+
transition: {
|
|
43
|
+
duration: 0.1,
|
|
44
|
+
bounce: 1,
|
|
45
|
+
},
|
|
46
|
+
}),
|
|
47
|
+
}
|
|
48
|
+
: {
|
|
49
|
+
closed: () => ({
|
|
50
|
+
rotate: '45deg',
|
|
51
|
+
transition: {
|
|
52
|
+
duration: 0.1,
|
|
53
|
+
bounce: 1,
|
|
54
|
+
},
|
|
55
|
+
}),
|
|
56
|
+
hover: () => ({
|
|
57
|
+
rotate: '0deg',
|
|
58
|
+
transition: {
|
|
59
|
+
duration: 0.1,
|
|
60
|
+
bounce: 1,
|
|
61
|
+
},
|
|
62
|
+
}),
|
|
63
|
+
}) as MotionProps['variants'],
|
|
64
|
+
REFRESH: (action: 'redo' | 'undo') =>
|
|
65
|
+
(action === 'redo'
|
|
66
|
+
? {
|
|
67
|
+
closed: () => ({
|
|
68
|
+
rotate: '-135deg',
|
|
69
|
+
transition: {
|
|
70
|
+
duration: 0.1,
|
|
71
|
+
bounce: 1,
|
|
72
|
+
},
|
|
73
|
+
}),
|
|
74
|
+
hover: () => ({
|
|
75
|
+
rotate: '-90deg',
|
|
76
|
+
transition: {
|
|
77
|
+
duration: 0.1,
|
|
78
|
+
bounce: 1,
|
|
79
|
+
},
|
|
80
|
+
}),
|
|
81
|
+
}
|
|
82
|
+
: {
|
|
83
|
+
closed: () => ({
|
|
84
|
+
rotate: '45deg',
|
|
85
|
+
transition: {
|
|
86
|
+
duration: 0.1,
|
|
87
|
+
bounce: 1,
|
|
88
|
+
},
|
|
89
|
+
}),
|
|
90
|
+
hover: () => ({
|
|
91
|
+
rotate: '0deg',
|
|
92
|
+
transition: {
|
|
93
|
+
duration: 0.1,
|
|
94
|
+
bounce: 1,
|
|
95
|
+
},
|
|
96
|
+
}),
|
|
97
|
+
}) as MotionProps['variants'],
|
|
98
|
+
PLANE: {
|
|
99
|
+
rotate: {
|
|
100
|
+
rotate: '90deg',
|
|
101
|
+
},
|
|
102
|
+
fly: () => ({
|
|
103
|
+
translateX: '100vw',
|
|
104
|
+
transition: {
|
|
105
|
+
repeat: Infinity,
|
|
106
|
+
duration: 5,
|
|
107
|
+
bounce: 1,
|
|
108
|
+
},
|
|
109
|
+
}),
|
|
110
|
+
} as MotionProps['variants'],
|
|
111
|
+
CLOUD: {
|
|
112
|
+
rest: () => ({
|
|
113
|
+
opacity: `${Math.random()}`,
|
|
114
|
+
translateX: `${Math.random() * 1000}rem`,
|
|
115
|
+
translateY: `${Math.random() * 100}px`,
|
|
116
|
+
}),
|
|
117
|
+
float: () => ({
|
|
118
|
+
translateX: '-100%',
|
|
119
|
+
delay: 1,
|
|
120
|
+
transition: {
|
|
121
|
+
decelerate: 2,
|
|
122
|
+
repeat: Infinity,
|
|
123
|
+
duration: 8,
|
|
124
|
+
bounce: 1,
|
|
125
|
+
},
|
|
126
|
+
}),
|
|
127
|
+
} as MotionProps['variants'],
|
|
128
|
+
CURSOR: {
|
|
129
|
+
initial: () => ({
|
|
130
|
+
translateY: '-10px',
|
|
131
|
+
}),
|
|
132
|
+
hover: () => ({
|
|
133
|
+
pointerEvents: 'none',
|
|
134
|
+
translateX: '-50px',
|
|
135
|
+
translateY: '-5px',
|
|
136
|
+
transition: {
|
|
137
|
+
decelerate: 2,
|
|
138
|
+
duration: 0.5,
|
|
139
|
+
bounce: 0,
|
|
140
|
+
},
|
|
141
|
+
}),
|
|
142
|
+
} as MotionProps['variants'],
|
|
143
|
+
SCROLL: (next: boolean) =>
|
|
144
|
+
(next
|
|
145
|
+
? {
|
|
146
|
+
initial: () => ({
|
|
147
|
+
rotate: '0deg',
|
|
148
|
+
transition: {
|
|
149
|
+
duration: 0.1,
|
|
150
|
+
bounce: 1,
|
|
151
|
+
},
|
|
152
|
+
}),
|
|
153
|
+
hover: () => ({
|
|
154
|
+
rotate: '-90deg',
|
|
155
|
+
transition: {
|
|
156
|
+
duration: 0.1,
|
|
157
|
+
bounce: 1,
|
|
158
|
+
},
|
|
159
|
+
}),
|
|
160
|
+
}
|
|
161
|
+
: {
|
|
162
|
+
initial: () => ({
|
|
163
|
+
rotate: '-180deg',
|
|
164
|
+
transition: {
|
|
165
|
+
duration: 0.1,
|
|
166
|
+
bounce: 1,
|
|
167
|
+
},
|
|
168
|
+
}),
|
|
169
|
+
hover: () => ({
|
|
170
|
+
rotate: '0deg',
|
|
171
|
+
transition: {
|
|
172
|
+
duration: 0.1,
|
|
173
|
+
bounce: 1,
|
|
174
|
+
},
|
|
175
|
+
}),
|
|
176
|
+
}) as MotionProps['variants'],
|
|
177
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { classNames } from '../../shared/wrappers';
|
|
3
|
+
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
|
|
6
|
+
import { PLACEHOLDER } from '../../shared/resource';
|
|
7
|
+
import Text from '../Text';
|
|
8
|
+
import TripieContainer from '../TripieContainer';
|
|
9
|
+
import Style from './tripie-image.module.scss';
|
|
10
|
+
|
|
11
|
+
const cx = classNames.bind(Style);
|
|
12
|
+
|
|
13
|
+
export type ImageSizes = 'default' | 'full' | 'large' | 'medium' | 'small' | 'tiny' | 'icon' | 'card';
|
|
14
|
+
|
|
15
|
+
const TripieImage = ({
|
|
16
|
+
alt,
|
|
17
|
+
src,
|
|
18
|
+
refs,
|
|
19
|
+
sizes = 'default',
|
|
20
|
+
className,
|
|
21
|
+
withBorder = true,
|
|
22
|
+
blurDataURL,
|
|
23
|
+
fill = true,
|
|
24
|
+
}: {
|
|
25
|
+
alt: string;
|
|
26
|
+
src?: string;
|
|
27
|
+
refs?: (node?: Element | null | undefined) => void;
|
|
28
|
+
className?: string;
|
|
29
|
+
sizes?: ImageSizes;
|
|
30
|
+
blurDataURL?: string;
|
|
31
|
+
withBorder?: boolean;
|
|
32
|
+
fill?: boolean;
|
|
33
|
+
}) => {
|
|
34
|
+
return (
|
|
35
|
+
<TripieContainer
|
|
36
|
+
margin="none"
|
|
37
|
+
className={cx('tripie-image', 'img-wrap', sizes, withBorder && 'with-border', className)}
|
|
38
|
+
>
|
|
39
|
+
{blurDataURL == null ? (
|
|
40
|
+
<img
|
|
41
|
+
className={cx('tripie-image', 'img-wrap', sizes, withBorder && 'with-border')}
|
|
42
|
+
src={src ?? PLACEHOLDER}
|
|
43
|
+
alt={`${alt}의 이미지일 수 있음`}
|
|
44
|
+
/>
|
|
45
|
+
) : (
|
|
46
|
+
<Image
|
|
47
|
+
src={src ?? PLACEHOLDER}
|
|
48
|
+
className={cx('tripie-image', 'img-wrap', sizes, withBorder && 'with-border')}
|
|
49
|
+
alt={alt}
|
|
50
|
+
sizes={'(min-width:640px) 50vw, 100vw'}
|
|
51
|
+
placeholder="blur"
|
|
52
|
+
fill={fill}
|
|
53
|
+
blurDataURL={blurDataURL}
|
|
54
|
+
ref={refs}
|
|
55
|
+
/>
|
|
56
|
+
)}
|
|
57
|
+
</TripieContainer>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const ImageWithSourceUrl = ({
|
|
62
|
+
alt,
|
|
63
|
+
src,
|
|
64
|
+
refs,
|
|
65
|
+
className,
|
|
66
|
+
sizes = 'medium',
|
|
67
|
+
sourceUrl,
|
|
68
|
+
withBorder = true,
|
|
69
|
+
blurDataURL,
|
|
70
|
+
}: {
|
|
71
|
+
alt: string;
|
|
72
|
+
src?: string;
|
|
73
|
+
refs?: (node?: Element | null | undefined) => void;
|
|
74
|
+
className?: string;
|
|
75
|
+
sourceUrl: string;
|
|
76
|
+
sizes?: ImageSizes;
|
|
77
|
+
withBorder?: boolean;
|
|
78
|
+
blurDataURL?: string;
|
|
79
|
+
}) => {
|
|
80
|
+
return (
|
|
81
|
+
<TripieContainer margin="none" className={cx('img-wrap', withBorder ?? 'with-border', className)}>
|
|
82
|
+
<TripieImage src={src} alt={alt} refs={refs} sizes={sizes} blurDataURL={blurDataURL} />
|
|
83
|
+
<Text className={cx('source-url', 'img-source')}>{`출처 ${sourceUrl}`}</Text>
|
|
84
|
+
</TripieContainer>
|
|
85
|
+
);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
TripieImage.WithSourceUrl = ImageWithSourceUrl;
|
|
89
|
+
|
|
90
|
+
export default TripieImage;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@use '../../mixins' as *;
|
|
2
|
+
@use '../../variables' as *;
|
|
3
|
+
|
|
4
|
+
.img-wrap {
|
|
5
|
+
padding: 0;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
position: relative;
|
|
10
|
+
& > img {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
display: block;
|
|
14
|
+
object-fit: cover;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.with-border {
|
|
18
|
+
@include with-border;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.img-source {
|
|
22
|
+
position: absolute;
|
|
23
|
+
bottom: 1rem;
|
|
24
|
+
right: 1rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.source-url {
|
|
28
|
+
text-wrap: nowrap;
|
|
29
|
+
font-size: 0.66rem;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
text-overflow: ellipsis;
|
|
33
|
+
z-index: 100;
|
|
34
|
+
max-width: 30%;
|
|
35
|
+
display: inline-block;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.small {
|
|
39
|
+
height: 4rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.medium {
|
|
43
|
+
height: 24rem;
|
|
44
|
+
}
|
|
45
|
+
.card {
|
|
46
|
+
height: 12rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.icon {
|
|
50
|
+
height: 1rem;
|
|
51
|
+
width: 1rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.tripie-image {
|
|
55
|
+
padding: 0;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
position: relative;
|
|
58
|
+
& img {
|
|
59
|
+
width: 100%;
|
|
60
|
+
height: 100%;
|
|
61
|
+
display: block;
|
|
62
|
+
object-fit: cover;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.default {
|
|
67
|
+
width: 24rem;
|
|
68
|
+
height: 24rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.large {
|
|
72
|
+
height: 24rem;
|
|
73
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
|
|
5
|
+
import { useAppTheme } from '../../hooks';
|
|
6
|
+
import TripieImage from './TripieImage';
|
|
7
|
+
|
|
8
|
+
const meta: Meta<typeof TripieImage> = {
|
|
9
|
+
title: 'tripie-ui/Image',
|
|
10
|
+
component: TripieImage,
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
parameters: {
|
|
13
|
+
docs: {
|
|
14
|
+
description: {
|
|
15
|
+
component:
|
|
16
|
+
'이미지 컴포넌트입니다. withBorder boolean 값으로 테두리를 설정할 수 있고, TripieImage.WithSourceUrl 컴포넌트의 경우 sourceUrl을 제공하여 이미지 출처를 표기할 수 있습니다.',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
argTypes: {},
|
|
21
|
+
decorators: [
|
|
22
|
+
(story, context) => {
|
|
23
|
+
const { mode, setMode } = useAppTheme();
|
|
24
|
+
const selectedTheme = context.globals.theme || mode;
|
|
25
|
+
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
setMode(selectedTheme);
|
|
28
|
+
}, [selectedTheme]);
|
|
29
|
+
|
|
30
|
+
return <div className={`${context.globals.theme}`}>{story()}</div>;
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default meta;
|
|
36
|
+
type Story = StoryObj<typeof meta>;
|
|
37
|
+
|
|
38
|
+
export const Default: Story = {
|
|
39
|
+
name: 'Default',
|
|
40
|
+
args: {
|
|
41
|
+
alt: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음',
|
|
42
|
+
src: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg',
|
|
43
|
+
blurDataURL:
|
|
44
|
+
'data:image/svg+xml;base64,CiAgPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDUnPgogICAgPGZpbHRlciBpZD0nYicgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSdzUkdCJz4KICAgICAgPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMScgLz4KICAgIDwvZmlsdGVyPgogICAgPGltYWdlIHByZXNlcnZlQXNwZWN0UmF0aW89J25vbmUnIGZpbHRlcj0ndXJsKCNiKScgeD0nMCcgeT0nMCcgaGVpZ2h0PScxMDAlJyB3aWR0aD0nMTAwJScgCiAgICBocmVmPSdkYXRhOmltYWdlL2F2aWY7YmFzZTY0LC85ai8yd0JEQUFnSUNBZ0pDQWtLQ2drTkRnd09EUk1SRUJBUkV4d1VGaFFXRkJ3ckd4OGJHeDhiS3lZdUpTTWxMaVpFTlM4dk5VUk9RajVDVGw5VlZWOTNjWGVjbk5ILzJ3QkRBUWdJQ0FnSkNBa0tDZ2tORGd3T0RSTVJFQkFSRXh3VUZoUVdGQndyR3g4Ykd4OGJLeVl1SlNNbExpWkVOUzh2TlVST1FqNUNUbDlWVlY5M2NYZWNuTkgvd2dBUkNBQUxBQkFEQVNJQUFoRUJBeEVCLzhRQUZnQUJBUUVBQUFBQUFBQUFBQUFBQUFBQUJnVUgvOFFBRlFFQkFRQUFBQUFBQUFBQUFBQUFBQUFBQkFYLzJnQU1Bd0VBQWhBREVBQUFBS0NuRFhhSjMvL0VBQ0lRQUFFREF3TUZBQUFBQUFBQUFBQUFBQUlCQXdVQUJCSVJFeUV4TWtGaHNmL2FBQWdCQVFBQlB3Q01uYmQ1eHNIV2tISXROVStwUXpFRXp0NVhIZVdLWWdTODFBcVRyd01tU2szb2E0K3c2VmNtVzZmUG12L0VBQm9SQUFJQ0F3QUFBQUFBQUFBQUFBQUFBQUVDQXhFQUVpTC8yZ0FJQVFJQkFUOEFFMHBUWXZmVlovL0VBQm9SQVFBQ0F3RUFBQUFBQUFBQUFBQUFBQUVDQXdBRUVSTC8yZ0FJQVFNQkFUOEFxMXFtYkh5SERQL1onIC8+CiAgPC9zdmc+Cg==',
|
|
45
|
+
sizes: 'default',
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const NoImage: Story = {
|
|
50
|
+
name: 'Image.None',
|
|
51
|
+
args: {
|
|
52
|
+
sizes: 'medium',
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const IconImage: Story = {
|
|
57
|
+
name: 'Image.Icon',
|
|
58
|
+
args: {
|
|
59
|
+
alt: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음',
|
|
60
|
+
src: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg',
|
|
61
|
+
sizes: 'icon',
|
|
62
|
+
withBorder: false,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export const MediumImage: Story = {
|
|
67
|
+
name: 'Image.Medium',
|
|
68
|
+
args: {
|
|
69
|
+
alt: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음',
|
|
70
|
+
src: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg',
|
|
71
|
+
sizes: 'medium',
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
export const SmallImage: Story = {
|
|
75
|
+
name: 'Image.Small',
|
|
76
|
+
args: {
|
|
77
|
+
alt: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음',
|
|
78
|
+
src: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg',
|
|
79
|
+
sizes: 'small',
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export const WithSourceUrl: Story = {
|
|
84
|
+
name: 'Image.WithSourceUrl',
|
|
85
|
+
render: () => (
|
|
86
|
+
<TripieImage.WithSourceUrl
|
|
87
|
+
sourceUrl={'https://이미지 출처'}
|
|
88
|
+
alt={
|
|
89
|
+
'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음'
|
|
90
|
+
}
|
|
91
|
+
src={'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg'}
|
|
92
|
+
/>
|
|
93
|
+
),
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export const WithLongSourceUrl: Story = {
|
|
97
|
+
name: 'Image.WithLongSourceUrl',
|
|
98
|
+
render: () => (
|
|
99
|
+
<TripieImage.WithSourceUrl
|
|
100
|
+
sourceUrl={
|
|
101
|
+
'https://엄청 긴 이미지 출처 엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처'
|
|
102
|
+
}
|
|
103
|
+
alt={
|
|
104
|
+
'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음'
|
|
105
|
+
}
|
|
106
|
+
src={'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg'}
|
|
107
|
+
/>
|
|
108
|
+
),
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export const WithBlurDataUrl: Story = {
|
|
112
|
+
name: 'Image.WithBlurDataUrl',
|
|
113
|
+
render: () => {
|
|
114
|
+
return (
|
|
115
|
+
<div style={{ width: '24rem' }}>
|
|
116
|
+
<TripieImage
|
|
117
|
+
alt={
|
|
118
|
+
'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음'
|
|
119
|
+
}
|
|
120
|
+
src={
|
|
121
|
+
'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg'
|
|
122
|
+
}
|
|
123
|
+
blurDataURL="data:image/svg+xml;base64,CiAgPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDUnPgogICAgPGZpbHRlciBpZD0nYicgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSdzUkdCJz4KICAgICAgPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMScgLz4KICAgIDwvZmlsdGVyPgogICAgPGltYWdlIHByZXNlcnZlQXNwZWN0UmF0aW89J25vbmUnIGZpbHRlcj0ndXJsKCNiKScgeD0nMCcgeT0nMCcgaGVpZ2h0PScxMDAlJyB3aWR0aD0nMTAwJScgCiAgICBocmVmPSdkYXRhOmltYWdlL2F2aWY7YmFzZTY0LC85ai8yd0JEQUFnSUNBZ0pDQWtLQ2drTkRnd09EUk1SRUJBUkV4d1VGaFFXRkJ3ckd4OGJHeDhiS3lZdUpTTWxMaVpFTlM4dk5VUk9RajVDVGw5VlZWOTNjWGVjbk5ILzJ3QkRBUWdJQ0FnSkNBa0tDZ2tORGd3T0RSTVJFQkFSRXh3VUZoUVdGQndyR3g4Ykd4OGJLeVl1SlNNbExpWkVOUzh2TlVST1FqNUNUbDlWVlY5M2NYZWNuTkgvd2dBUkNBQUxBQkFEQVNJQUFoRUJBeEVCLzhRQUZnQUJBUUVBQUFBQUFBQUFBQUFBQUFBQUJnVUgvOFFBRlFFQkFRQUFBQUFBQUFBQUFBQUFBQUFBQkFYLzJnQU1Bd0VBQWhBREVBQUFBS0NuRFhhSjMvL0VBQ0lRQUFFREF3TUZBQUFBQUFBQUFBQUFBQUlCQXdVQUJCSVJFeUV4TWtGaHNmL2FBQWdCQVFBQlB3Q01uYmQ1eHNIV2tISXROVStwUXpFRXp0NVhIZVdLWWdTODFBcVRyd01tU2szb2E0K3c2VmNtVzZmUG12L0VBQm9SQUFJQ0F3QUFBQUFBQUFBQUFBQUFBQUVDQXhFQUVpTC8yZ0FJQVFJQkFUOEFFMHBUWXZmVlovL0VBQm9SQVFBQ0F3RUFBQUFBQUFBQUFBQUFBQUVDQXdBRUVSTC8yZ0FJQVFNQkFUOEFxMXFtYkh5SERQL1onIC8+CiAgPC9zdmc+Cg=="
|
|
124
|
+
/>
|
|
125
|
+
</div>
|
|
126
|
+
);
|
|
127
|
+
},
|
|
128
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { classNames } from '../../shared/wrappers';
|
|
3
|
+
import Style from './skeleton.module.scss';
|
|
4
|
+
|
|
5
|
+
export type GridProps = ComponentProps<'div'>;
|
|
6
|
+
|
|
7
|
+
const cx = classNames.bind(Style);
|
|
8
|
+
|
|
9
|
+
const Skeleton = ({ children, className, ...props }: GridProps) => {
|
|
10
|
+
return (
|
|
11
|
+
<div className={cx('skeleton', className)} {...props}>
|
|
12
|
+
{children}
|
|
13
|
+
</div>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const SkeletonImage = ({ children, className, ...props }: GridProps) => {
|
|
18
|
+
return (
|
|
19
|
+
<div className={cx('skeleton', className)} {...props}>
|
|
20
|
+
{children}
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
Skeleton.Image = SkeletonImage;
|
|
26
|
+
|
|
27
|
+
export default Skeleton;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import { useAppTheme } from '../../hooks';
|
|
4
|
+
import { default as Skeleton } from './Skeleton';
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof Skeleton> = {
|
|
7
|
+
title: 'tripie-ui/Skeleton',
|
|
8
|
+
component: Skeleton,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
decorators: [
|
|
11
|
+
(story, context) => {
|
|
12
|
+
const { mode, setMode } = useAppTheme();
|
|
13
|
+
const selectedTheme = context.globals.theme || mode;
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
setMode(selectedTheme);
|
|
17
|
+
}, [selectedTheme]);
|
|
18
|
+
|
|
19
|
+
return <div className={`${context.globals.theme}`}>{story()}</div>;
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
|
|
27
|
+
export const Default: Story = {
|
|
28
|
+
name: 'Default Skeleton',
|
|
29
|
+
args: {
|
|
30
|
+
children: <Skeleton></Skeleton>,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { default as Accordion } from './Accordian/Accordian';
|
|
2
|
+
export { default as Carousel } from './Carousel/Carousel';
|
|
3
|
+
export { default as Chip } from './Chip/Chip';
|
|
4
|
+
export { default as ChipMarker } from './ChipMarker';
|
|
5
|
+
export { default as Divider } from './Divider';
|
|
6
|
+
export { default as Headings } from './Headings';
|
|
7
|
+
export { default as Link } from './Link';
|
|
8
|
+
export { default as List } from './List/List';
|
|
9
|
+
export { default as MotionSlideUp } from './MotionSlideUp';
|
|
10
|
+
export { default as ParticleBackground } from './Particle/Background';
|
|
11
|
+
export { default as ParticleField } from './Particle/Field';
|
|
12
|
+
export { default as RotatingBlur } from './RotatingBlur';
|
|
13
|
+
export { default as SplashScreen } from './SplashScreen/SplashScreen';
|
|
14
|
+
export { default as Switch } from './Switch';
|
|
15
|
+
export { default as Text } from './Text/Text';
|
|
16
|
+
export { default as TextFillAnimation } from './TextFill/TextFillAnimation';
|
|
17
|
+
export { default as TextUnderLineAnimation } from './TextUnderlineAnimation';
|
|
18
|
+
export { default as AnimatedButton, default as AnimatedText } from './TripieButton/Animated';
|
|
19
|
+
export { default as MenuToggle } from './TripieButton/MenuToggle';
|
|
20
|
+
export { default as NoStyleButton } from './TripieButton/NoStyle';
|
|
21
|
+
export { default as Card } from './TripieCard/Card';
|
|
22
|
+
export { default as Container } from './TripieContainer/TripieContainer';
|
|
23
|
+
export { default as Icon } from './TripieIcon/Icon';
|
|
24
|
+
export { default as TripieImage } from './TripieImage/TripieImage';
|
|
25
|
+
export { default as Skeleton } from './TripieSkeleton';
|
package/src/font.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:meta";
|
|
3
|
+
@use "../base/" as *;
|
|
4
|
+
|
|
5
|
+
/// config 맵으로부터 z-index 값 반환
|
|
6
|
+
/// @param {string} $layer : `$z-indexes` 맵에서의 값
|
|
7
|
+
/// @return {number} : z-index 값
|
|
8
|
+
/// @throws {Error} : 없는 layer 옵션일 경우
|
|
9
|
+
@function breakpoint($size: default) {
|
|
10
|
+
$fetched-breakpoint: map.get($config-breakpoint, $size);
|
|
11
|
+
|
|
12
|
+
@if meta.type-of($size) == number {
|
|
13
|
+
@return $size;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@if meta.type-of($fetched-breakpoint) {
|
|
17
|
+
@return $fetched-breakpoint;
|
|
18
|
+
} @else {
|
|
19
|
+
@error "Breakpoint with such `#{$size}` not found. Available breakpoints: #{$config-breakpoint}";
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "sass:math";
|
|
4
|
+
@use "../base/" as *;
|
|
5
|
+
|
|
6
|
+
/// $colors또는 Sass map에서 컬러 값을 리턴
|
|
7
|
+
/// @param {string} $type : base, primary, secondary 등등 컬러 그룹 타입
|
|
8
|
+
/// @param {string} $key : 컬러의 이름
|
|
9
|
+
/// @param {boolean} $only-color : true일 경우 컬러 값만 가져오기
|
|
10
|
+
/// @return {$type} : $map : 컬러를 가져올 map
|
|
11
|
+
@function color($type: "default", $key, $only-color: false, $map: $colors) {
|
|
12
|
+
@if not map.has-key($map, $type, $key) {
|
|
13
|
+
@error "The #{$key} key name doesn't exist under #{$type} at the specified map (default: $colors).";
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@if not map.get($map, $type, $key) {
|
|
17
|
+
@return null;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@if $only-color {
|
|
21
|
+
@return map.get($map, $type, $key);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@return var(--#{$internal-prefix}#{$type}-color-#{$key});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/// $colors 컬러 map으로부터 아무 / 하나의 컬러 값만 반환
|
|
28
|
+
/// @param {string} $type : 컬러 그룹의 타입 (base, primary, secondary 등등)
|
|
29
|
+
/// @param {string} $key : 컬러의 키 이름
|
|
30
|
+
/// @param {map} $map : 컬러를 가져올 map
|
|
31
|
+
/// @return {color}: 컬러 값
|
|
32
|
+
@function color-value($type: "default", $key, $map: $colors) {
|
|
33
|
+
@if not map.has-key($map, $type, $key) {
|
|
34
|
+
@error "The #{$key} key name doesn't exist under #{$type} at the specified map (default: $colors).";
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@if not map.get($map, $type, $key) {
|
|
38
|
+
@return null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@return map.get($map, $type, $key);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/// 흑/백 색 대조 리턴 (WCAG 기준)
|
|
45
|
+
/// 참고 출처 : https://codepen.io/davidhalford/pen/ALrbEP
|
|
46
|
+
/// @param {color} $color : 대조 바탕이 될 컬러
|
|
47
|
+
/// @return {color} : 대조 컬러
|
|
48
|
+
@function color-contrast($color) {
|
|
49
|
+
$color-brightness: math.round(
|
|
50
|
+
(color.red($color) * 299) + (color.green($color) * 587) +
|
|
51
|
+
math.div(color.blue($color) * 114, 1000)
|
|
52
|
+
);
|
|
53
|
+
$light-color: math.round(
|
|
54
|
+
(color.red(#ffffff) * 299) + (color.green(#ffffff) * 587) +
|
|
55
|
+
math.div(color.blue(#ffffff) * 114, 1000)
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
@if math.abs($color-brightness) < math.div($light-color, 2) {
|
|
59
|
+
@return hsl(0 0% 100%);
|
|
60
|
+
} @else {
|
|
61
|
+
@return hsl(0 100% 0%);
|
|
62
|
+
}
|
|
63
|
+
}
|