@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,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Skeleton = exports.TripieImage = exports.Icon = exports.Container = exports.Card = exports.NoStyleButton = exports.MenuToggle = exports.AnimatedText = exports.AnimatedButton = exports.TextUnderLineAnimation = exports.TextFillAnimation = exports.Text = exports.Switch = exports.SplashScreen = exports.RotatingBlur = exports.ParticleField = exports.ParticleBackground = exports.MotionSlideUp = exports.List = exports.Link = exports.Headings = exports.Divider = exports.ChipMarker = exports.Chip = exports.Carousel = exports.Accordion = void 0;
|
|
4
|
+
var Accordian_1 = require("./Accordian/Accordian");
|
|
5
|
+
Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return Accordian_1.default; } });
|
|
6
|
+
var Carousel_1 = require("./Carousel/Carousel");
|
|
7
|
+
Object.defineProperty(exports, "Carousel", { enumerable: true, get: function () { return Carousel_1.default; } });
|
|
8
|
+
var Chip_1 = require("./Chip/Chip");
|
|
9
|
+
Object.defineProperty(exports, "Chip", { enumerable: true, get: function () { return Chip_1.default; } });
|
|
10
|
+
var ChipMarker_1 = require("./ChipMarker");
|
|
11
|
+
Object.defineProperty(exports, "ChipMarker", { enumerable: true, get: function () { return ChipMarker_1.default; } });
|
|
12
|
+
var Divider_1 = require("./Divider");
|
|
13
|
+
Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return Divider_1.default; } });
|
|
14
|
+
var Headings_1 = require("./Headings");
|
|
15
|
+
Object.defineProperty(exports, "Headings", { enumerable: true, get: function () { return Headings_1.default; } });
|
|
16
|
+
var Link_1 = require("./Link");
|
|
17
|
+
Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return Link_1.default; } });
|
|
18
|
+
var List_1 = require("./List/List");
|
|
19
|
+
Object.defineProperty(exports, "List", { enumerable: true, get: function () { return List_1.default; } });
|
|
20
|
+
var MotionSlideUp_1 = require("./MotionSlideUp");
|
|
21
|
+
Object.defineProperty(exports, "MotionSlideUp", { enumerable: true, get: function () { return MotionSlideUp_1.default; } });
|
|
22
|
+
var Background_1 = require("./Particle/Background");
|
|
23
|
+
Object.defineProperty(exports, "ParticleBackground", { enumerable: true, get: function () { return Background_1.default; } });
|
|
24
|
+
var Field_1 = require("./Particle/Field");
|
|
25
|
+
Object.defineProperty(exports, "ParticleField", { enumerable: true, get: function () { return Field_1.default; } });
|
|
26
|
+
var RotatingBlur_1 = require("./RotatingBlur");
|
|
27
|
+
Object.defineProperty(exports, "RotatingBlur", { enumerable: true, get: function () { return RotatingBlur_1.default; } });
|
|
28
|
+
var SplashScreen_1 = require("./SplashScreen/SplashScreen");
|
|
29
|
+
Object.defineProperty(exports, "SplashScreen", { enumerable: true, get: function () { return SplashScreen_1.default; } });
|
|
30
|
+
var Switch_1 = require("./Switch");
|
|
31
|
+
Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return Switch_1.default; } });
|
|
32
|
+
var Text_1 = require("./Text/Text");
|
|
33
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.default; } });
|
|
34
|
+
var TextFillAnimation_1 = require("./TextFill/TextFillAnimation");
|
|
35
|
+
Object.defineProperty(exports, "TextFillAnimation", { enumerable: true, get: function () { return TextFillAnimation_1.default; } });
|
|
36
|
+
var TextUnderlineAnimation_1 = require("./TextUnderlineAnimation");
|
|
37
|
+
Object.defineProperty(exports, "TextUnderLineAnimation", { enumerable: true, get: function () { return TextUnderlineAnimation_1.default; } });
|
|
38
|
+
var Animated_1 = require("./TripieButton/Animated");
|
|
39
|
+
Object.defineProperty(exports, "AnimatedButton", { enumerable: true, get: function () { return Animated_1.default; } });
|
|
40
|
+
Object.defineProperty(exports, "AnimatedText", { enumerable: true, get: function () { return Animated_1.default; } });
|
|
41
|
+
var MenuToggle_1 = require("./TripieButton/MenuToggle");
|
|
42
|
+
Object.defineProperty(exports, "MenuToggle", { enumerable: true, get: function () { return MenuToggle_1.default; } });
|
|
43
|
+
var NoStyle_1 = require("./TripieButton/NoStyle");
|
|
44
|
+
Object.defineProperty(exports, "NoStyleButton", { enumerable: true, get: function () { return NoStyle_1.default; } });
|
|
45
|
+
var Card_1 = require("./TripieCard/Card");
|
|
46
|
+
Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return Card_1.default; } });
|
|
47
|
+
var TripieContainer_1 = require("./TripieContainer/TripieContainer");
|
|
48
|
+
Object.defineProperty(exports, "Container", { enumerable: true, get: function () { return TripieContainer_1.default; } });
|
|
49
|
+
var Icon_1 = require("./TripieIcon/Icon");
|
|
50
|
+
Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return Icon_1.default; } });
|
|
51
|
+
var TripieImage_1 = require("./TripieImage/TripieImage");
|
|
52
|
+
Object.defineProperty(exports, "TripieImage", { enumerable: true, get: function () { return TripieImage_1.default; } });
|
|
53
|
+
var TripieSkeleton_1 = require("./TripieSkeleton");
|
|
54
|
+
Object.defineProperty(exports, "Skeleton", { enumerable: true, get: function () { return TripieSkeleton_1.default; } });
|
package/dist/src/font.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var local_1 = require("next/font/local");
|
|
4
|
+
var maruBuri = (0, local_1.default)({
|
|
5
|
+
src: [
|
|
6
|
+
{
|
|
7
|
+
path: './static/fonts/MaruBuri-Regular.woff2',
|
|
8
|
+
style: 'normal',
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
});
|
|
12
|
+
exports.default = maruBuri;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./useAppTheme"), exports);
|
|
18
|
+
__exportStar(require("./useCycle"), exports);
|
|
19
|
+
__exportStar(require("./useDrawer"), exports);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.useAppTheme = void 0;
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
var usehooks_ts_1 = require("usehooks-ts");
|
|
7
|
+
var COLOR_SCHEME_QUERY = '(prefers-color-scheme: dark)';
|
|
8
|
+
var THEME_MODE = {
|
|
9
|
+
DARK: 'dark',
|
|
10
|
+
LIGHT: 'light',
|
|
11
|
+
OS_DEFAULT: null,
|
|
12
|
+
};
|
|
13
|
+
var useAppTheme = function () {
|
|
14
|
+
var isDarkOS = (0, usehooks_ts_1.useMediaQuery)(COLOR_SCHEME_QUERY);
|
|
15
|
+
var _a = (0, usehooks_ts_1.useLocalStorage)('tripie-app-theme', THEME_MODE.OS_DEFAULT), themeMode = _a[0], setThemeMode = _a[1];
|
|
16
|
+
(0, react_1.useEffect)(function () {
|
|
17
|
+
var root = document === null || document === void 0 ? void 0 : document.documentElement;
|
|
18
|
+
if (themeMode == null) {
|
|
19
|
+
root.dataset.theme = isDarkOS ? THEME_MODE.DARK : THEME_MODE.LIGHT;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
root.dataset.theme = themeMode;
|
|
23
|
+
}
|
|
24
|
+
}, [themeMode, isDarkOS]);
|
|
25
|
+
return {
|
|
26
|
+
mode: themeMode,
|
|
27
|
+
toggle: function () {
|
|
28
|
+
setThemeMode(function (previous) { return (previous === THEME_MODE.DARK ? THEME_MODE.LIGHT : THEME_MODE.DARK); });
|
|
29
|
+
},
|
|
30
|
+
setMode: function (mode) { return setThemeMode(mode); },
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
exports.useAppTheme = useAppTheme;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.useCycle = void 0;
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
/**
|
|
7
|
+
* framer motion의 useCycle과 유사하게
|
|
8
|
+
* 가능한 스타일 states를 받아, 현재 스타일과 가능한 스타일들을 토글하는 기능을 합니다.
|
|
9
|
+
* 현재 스타일을 토글 시 인덱스로 가능한 스타일을 직접 접근해서 설정할 수 있습니다.
|
|
10
|
+
* ex.
|
|
11
|
+
* const [current, toggle] = useCycle(false,true,'custom');
|
|
12
|
+
* `current`은 false를 리턴하고, `toggle()`은 current를 true로, `toggle(2)`은'custom'로 설정합니다.
|
|
13
|
+
*/
|
|
14
|
+
var useCycle = function () {
|
|
15
|
+
var states = [];
|
|
16
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17
|
+
states[_i] = arguments[_i];
|
|
18
|
+
}
|
|
19
|
+
var possibleStates = (0, react_1.useState)(states)[0];
|
|
20
|
+
var _a = (0, react_1.useState)(possibleStates[0]), current = _a[0], setCurrent = _a[1];
|
|
21
|
+
var toggleState = function (index) {
|
|
22
|
+
if (index != null) {
|
|
23
|
+
setCurrent(current[index]);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
var filtered = possibleStates.filter(function (state) { return state !== current; });
|
|
27
|
+
setCurrent(filtered[0]);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
return [current, toggleState];
|
|
31
|
+
};
|
|
32
|
+
exports.useCycle = useCycle;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.useDrawer = void 0;
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
var DRAWER_MODE = {
|
|
7
|
+
OPEN: true,
|
|
8
|
+
CLOSE: false,
|
|
9
|
+
};
|
|
10
|
+
var useDrawer = function () {
|
|
11
|
+
var _a = (0, react_1.useState)(DRAWER_MODE.CLOSE), isOpen = _a[0], setIsOpen = _a[1];
|
|
12
|
+
return {
|
|
13
|
+
isOpen: isOpen,
|
|
14
|
+
toggle: function () {
|
|
15
|
+
setIsOpen(function (previous) { return !previous; });
|
|
16
|
+
},
|
|
17
|
+
open: function () { return setIsOpen(DRAWER_MODE.OPEN); },
|
|
18
|
+
close: function () { return setIsOpen(DRAWER_MODE.CLOSE); },
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
exports.useDrawer = useDrawer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./components"), exports);
|
|
18
|
+
__exportStar(require("./hooks"), exports);
|
|
19
|
+
__exportStar(require("./shared"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COLORS = void 0;
|
|
4
|
+
// 인라인으로 반드시 전해야할 스타일이나 프롭스로 써야할 경우에 상수로 참조
|
|
5
|
+
exports.COLORS = {
|
|
6
|
+
0: '#ffffff',
|
|
7
|
+
30: '#d5ffcc40',
|
|
8
|
+
40: '#858585',
|
|
9
|
+
50: '#d3ffca',
|
|
10
|
+
100: '#102b1f',
|
|
11
|
+
200: '#0f0f0f',
|
|
12
|
+
300: '#d3ffca40',
|
|
13
|
+
400: '#232323',
|
|
14
|
+
500: '#080807',
|
|
15
|
+
600: '#22261e',
|
|
16
|
+
700: '#141712',
|
|
17
|
+
800: '#333333',
|
|
18
|
+
100000: '#08080700',
|
|
19
|
+
};
|
|
20
|
+
exports.default = exports.COLORS;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./colors"), exports);
|
|
18
|
+
__exportStar(require("./resource"), exports);
|
|
19
|
+
__exportStar(require("./variants"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ICON_RESOURCE = exports.RESOURCE = exports.ICON_URL = exports.LOADING_IMG = exports.PLACEHOLDER = void 0;
|
|
4
|
+
exports.PLACEHOLDER = 'https://placehold.co/600x600?text=NO IMAGE';
|
|
5
|
+
exports.LOADING_IMG = 'https://placehold.co/600x600?text=LOADING';
|
|
6
|
+
exports.ICON_URL = '/icons';
|
|
7
|
+
exports.RESOURCE = {
|
|
8
|
+
ARROW: '/arrow.png',
|
|
9
|
+
CHECK: '/check.png',
|
|
10
|
+
X: '/x.png',
|
|
11
|
+
REFRESH: '/refresh.png',
|
|
12
|
+
PLANE: '/plane.png',
|
|
13
|
+
CLOUD: '/cloud.png',
|
|
14
|
+
LOADING: '/loading.png',
|
|
15
|
+
TRAM: '/tram.png',
|
|
16
|
+
TRAIN: '/train.png',
|
|
17
|
+
WALK: '/walk.png',
|
|
18
|
+
SHIP: '/ship.png',
|
|
19
|
+
BUS: '/bus.png',
|
|
20
|
+
CAR: '/car.png',
|
|
21
|
+
FLAG: '/flag.png',
|
|
22
|
+
CURSOR: '/cursor.png',
|
|
23
|
+
NEXT: '/next.png',
|
|
24
|
+
};
|
|
25
|
+
var ICON_RESOURCE = function (key) { return exports.ICON_URL + exports.RESOURCE[key]; };
|
|
26
|
+
exports.ICON_RESOURCE = ICON_RESOURCE;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SHINE_VARIANT = exports.GLOW_VARIANT = exports.ACCORDIAN_VARIANTS = void 0;
|
|
4
|
+
var colors_1 = require("./colors");
|
|
5
|
+
var GLOW_VARIANT = {
|
|
6
|
+
rest: { boxShadow: 'none' },
|
|
7
|
+
glow: {
|
|
8
|
+
boxShadow: ["-2px 0px 10px 0px ".concat(colors_1.default[50]), "2px 0px 10px 0px ".concat(colors_1.default[50]), "0px 2px 10px 0px ".concat(colors_1.default[50])],
|
|
9
|
+
transition: {
|
|
10
|
+
duration: 0.8,
|
|
11
|
+
ease: 'circInOut',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
exports.GLOW_VARIANT = GLOW_VARIANT;
|
|
16
|
+
var SHINE_VARIANT = {
|
|
17
|
+
rest: { boxShadow: 'none' },
|
|
18
|
+
selected: {
|
|
19
|
+
backgroundColor: colors_1.default[100],
|
|
20
|
+
borderColor: colors_1.default[300],
|
|
21
|
+
},
|
|
22
|
+
shine: { backgroundColor: colors_1.default[100], borderColor: colors_1.default[300] },
|
|
23
|
+
};
|
|
24
|
+
exports.SHINE_VARIANT = SHINE_VARIANT;
|
|
25
|
+
var ACCORDIAN_VARIANTS = {
|
|
26
|
+
DETAILS: {
|
|
27
|
+
closed: function () { return ({
|
|
28
|
+
height: '0%',
|
|
29
|
+
opacity: 0,
|
|
30
|
+
}); },
|
|
31
|
+
open: function () { return ({
|
|
32
|
+
transform: {
|
|
33
|
+
height: '100%',
|
|
34
|
+
},
|
|
35
|
+
transition: {
|
|
36
|
+
duration: 2,
|
|
37
|
+
bounce: 0,
|
|
38
|
+
damping: 2,
|
|
39
|
+
stiffness: 10,
|
|
40
|
+
},
|
|
41
|
+
}); },
|
|
42
|
+
},
|
|
43
|
+
BUTTON: {
|
|
44
|
+
closed: function () { return ({}); },
|
|
45
|
+
open: function () { return ({
|
|
46
|
+
rotate: '45deg',
|
|
47
|
+
transition: {
|
|
48
|
+
duration: 0.5,
|
|
49
|
+
bounce: 0,
|
|
50
|
+
},
|
|
51
|
+
}); },
|
|
52
|
+
},
|
|
53
|
+
DIVIDER: {
|
|
54
|
+
closed: function () { return ({
|
|
55
|
+
backgroundColor: colors_1.default[400],
|
|
56
|
+
}); },
|
|
57
|
+
open: function () { return ({
|
|
58
|
+
backgroundColor: colors_1.default[50],
|
|
59
|
+
transition: {
|
|
60
|
+
duration: 0.5,
|
|
61
|
+
bounce: 0,
|
|
62
|
+
},
|
|
63
|
+
}); },
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
exports.ACCORDIAN_VARIANTS = ACCORDIAN_VARIANTS;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./text"), exports);
|
|
18
|
+
__exportStar(require("./typography"), exports);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { Property } from "csstype";
|
|
3
|
+
import { MarginPadding } from "../common";
|
|
4
|
+
interface Theme {
|
|
5
|
+
colors: {
|
|
6
|
+
mint: "#ffffff";
|
|
7
|
+
"my-color": "#fc0404";
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
interface GlobalSizes {
|
|
11
|
+
huge: "3rem";
|
|
12
|
+
large: "2.5rem";
|
|
13
|
+
big: "2rem";
|
|
14
|
+
tiny: "0.6rem";
|
|
15
|
+
}
|
|
16
|
+
export type TextProps = PropsWithChildren<{
|
|
17
|
+
alpha?: number;
|
|
18
|
+
bold?: boolean;
|
|
19
|
+
center?: boolean;
|
|
20
|
+
color?: keyof Theme["colors"] | string;
|
|
21
|
+
cursor?: Property.Cursor;
|
|
22
|
+
ellipsis?: boolean;
|
|
23
|
+
floated?: Property.Float;
|
|
24
|
+
inline?: boolean;
|
|
25
|
+
inlineBlock?: boolean;
|
|
26
|
+
letterSpacing?: number;
|
|
27
|
+
lineHeight?: number | string;
|
|
28
|
+
margin?: MarginPadding;
|
|
29
|
+
maxLines?: number;
|
|
30
|
+
padding?: MarginPadding;
|
|
31
|
+
size?: keyof GlobalSizes | number;
|
|
32
|
+
strikethrough?: boolean;
|
|
33
|
+
textAlign?: Property.TextAlign;
|
|
34
|
+
textStyle?: string;
|
|
35
|
+
underline?: boolean;
|
|
36
|
+
whiteSpace?: Property.WhiteSpace;
|
|
37
|
+
wordBreak?: Property.WordBreak;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const Text: ({ children, ...props }: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
interface TextTitleBaseProps {
|
|
41
|
+
margin?: MarginPadding;
|
|
42
|
+
as?: string;
|
|
43
|
+
}
|
|
44
|
+
export type TextTitleProps = PropsWithChildren<TextTitleBaseProps>;
|
|
45
|
+
export declare function TextTitle({ children, margin, ...props }: TextTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAK1C,UAAU,KAAK;IACb,MAAM,EAAE;QACN,IAAI,EAAE,SAAS,CAAC;QAChB,UAAU,EAAE,SAAS,CAAC;KACvB,CAAC;CACH;AACD,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;IACvC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,WAAW,GAAG,MAAM,CAAC;IAElC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;CAChC,CAAC,CAAC;AAIH,eAAO,MAAM,IAAI,2BAA4B,SAAS,4CAOrD,CAAC;AAEF,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;AAUnE,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAMvE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TextTitle = exports.Text = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const bind_1 = __importDefault(require("classnames/bind"));
|
|
9
|
+
const text_module_scss_1 = __importDefault(require("./text.module.scss"));
|
|
10
|
+
const style = bind_1.default.bind(text_module_scss_1.default);
|
|
11
|
+
const Text = ({ children, ...props }) => {
|
|
12
|
+
// return <div className={style("text", { ...props })}>{children}</div>;
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: style("text"), ...props, children: children }));
|
|
14
|
+
};
|
|
15
|
+
exports.Text = Text;
|
|
16
|
+
const TextTitleBase = ({ children, ...props }) => {
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: style("text-title-base"), ...props, children: children }));
|
|
18
|
+
};
|
|
19
|
+
function TextTitle({ children, margin, ...props }) {
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)(TextTitleBase, { as: "h1", margin: margin, ...props, children: children }));
|
|
21
|
+
}
|
|
22
|
+
exports.TextTitle = TextTitle;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Text } from "./text";
|
|
3
|
+
declare const meta: Meta<typeof Text>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Custom: Story;
|
|
8
|
+
export declare const StrikeThrough: Story;
|
|
9
|
+
export declare const MaxLines: Story;
|
|
10
|
+
//# sourceMappingURL=text.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.stories.d.ts","sourceRoot":"","sources":["../../src/text/text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAW3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAQpB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAS3B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KActB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MaxLines = exports.StrikeThrough = exports.Custom = exports.Default = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const text_1 = require("./text");
|
|
6
|
+
const meta = {
|
|
7
|
+
title: "tripie-ui/Text",
|
|
8
|
+
component: text_1.Text,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
parameters: {
|
|
11
|
+
docs: {
|
|
12
|
+
description: {
|
|
13
|
+
component: "Text를 표현할때 사용하는 뷰 컴포넌트입니다.",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
exports.default = meta;
|
|
19
|
+
exports.Default = {
|
|
20
|
+
name: "default",
|
|
21
|
+
args: {
|
|
22
|
+
children: "텍스트",
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
exports.Custom = {
|
|
26
|
+
name: "custom",
|
|
27
|
+
args: {
|
|
28
|
+
bold: true,
|
|
29
|
+
color: "my-color",
|
|
30
|
+
size: 20,
|
|
31
|
+
children: "텍스트",
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
exports.StrikeThrough = {
|
|
35
|
+
name: "strike-through",
|
|
36
|
+
args: {
|
|
37
|
+
strikethrough: true,
|
|
38
|
+
bold: true,
|
|
39
|
+
color: "my-color",
|
|
40
|
+
size: 20,
|
|
41
|
+
children: "텍스트",
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
exports.MaxLines = {
|
|
45
|
+
args: {
|
|
46
|
+
maxLines: 2,
|
|
47
|
+
children: ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "\uAC01\uAE09 \uC120\uAC70\uAD00\uB9AC\uC704\uC6D0\uD68C\uB294 \uC120\uAC70\uC778\uBA85\uBD80\uC758 \uC791\uC131\uB4F1 \uC120\uAC70\uC0AC\uBB34\uC640 \uAD6D\uBBFC\uD22C\uD45C\uC0AC\uBB34\uC5D0 \uAD00\uD558\uC5EC \uAD00\uACC4 \uD589\uC815\uAE30\uAD00\uC5D0 \uD544\uC694\uD55C \uC9C0\uC2DC\uB97C \uD560 \uC218 \uC788\uB2E4. \uBAA8\uB4E0 \uAD6D\uBBFC\uC758 \uC7AC\uC0B0\uAD8C\uC740 \uBCF4\uC7A5\uB41C\uB2E4. \uADF8 \uB0B4\uC6A9\uACFC \uD55C\uACC4\uB294 \uBC95\uB960\uB85C \uC815\uD55C\uB2E4. \uAD6D\uD68C\uC758\uC6D0\uC740 \uD604\uD589\uBC94\uC778\uC778 \uACBD\uC6B0\uB97C \uC81C\uC678\uD558\uACE0\uB294 \uD68C\uAE30\uC911 \uAD6D\uD68C\uC758 \uB3D9\uC758\uC5C6\uC774 \uCCB4\uD3EC \uB610\uB294 \uAD6C\uAE08\uB418\uC9C0 \uC544\uB2C8\uD55C\uB2E4. \uB300\uBC95\uC6D0\uACFC \uAC01\uAE09\uBC95\uC6D0\uC758 \uC870\uC9C1\uC740 \uBC95\uB960\uB85C \uC815\uD55C\uB2E4. \uB300\uD55C\uBBFC\uAD6D\uC758 \uACBD\uC81C\uC9C8\uC11C\uB294 \uAC1C\uC778\uACFC \uAE30\uC5C5\uC758 \uACBD\uC81C\uC0C1\uC758 \uC790\uC720\uC640 \uCC3D\uC758\uB97C \uC874\uC911\uD568\uC744 \uAE30\uBCF8\uC73C\uB85C \uD55C\uB2E4." })),
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as CSS from "csstype";
|
|
2
|
+
import { TextProps } from "./text";
|
|
3
|
+
export type H1Props = TextProps & {
|
|
4
|
+
href?: string;
|
|
5
|
+
headline?: string;
|
|
6
|
+
emphasize?: boolean;
|
|
7
|
+
textAlign?: CSS.Property.TextAlign;
|
|
8
|
+
};
|
|
9
|
+
export type H2Props = TextProps;
|
|
10
|
+
export type H3Props = TextProps;
|
|
11
|
+
export type H4Props = TextProps;
|
|
12
|
+
export type ParagraphProps = TextProps;
|
|
13
|
+
export declare function H1({ href, headline, emphasize, textAlign, children, ...props }: H1Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function H2({ children, ...props }: H2Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function H3({ children, ...props }: H3Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function H4({ children, ...props }: H4Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function Paragraph({ children, ...props }: ParagraphProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/text/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,SAAS,CAAC;AAE/B,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC;AAChC,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC;AAChC,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC;AAChC,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC;AAEvC,wBAAgB,EAAE,CAAC,EACjB,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,OAAO,2CAaT;AAED,wBAAgB,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,OAAO,2CAMjD;AAED,wBAAgB,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,OAAO,2CAMjD;AAED,wBAAgB,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,OAAO,2CAMjD;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAM/D"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Paragraph = exports.H4 = exports.H3 = exports.H2 = exports.H1 = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const text_1 = require("./text");
|
|
6
|
+
function H1({ href, headline, emphasize, textAlign, children, ...props }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [headline && ((0, jsx_runtime_1.jsx)(text_1.Text, { center: true, bold: true, size: "tiny", color: "primary", margin: { bottom: 3 }, children: headline })), (0, jsx_runtime_1.jsx)(text_1.Text, { bold: true, center: true, size: "huge", color: emphasize ? "blue" : "gray", children: children })] }));
|
|
8
|
+
}
|
|
9
|
+
exports.H1 = H1;
|
|
10
|
+
function H2({ children, ...props }) {
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(text_1.Text, { size: "big", color: "gray", ...props, children: children }));
|
|
12
|
+
}
|
|
13
|
+
exports.H2 = H2;
|
|
14
|
+
function H3({ children, ...props }) {
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(text_1.Text, { bold: true, size: "large", color: "gray", ...props, children: children }));
|
|
16
|
+
}
|
|
17
|
+
exports.H3 = H3;
|
|
18
|
+
function H4({ children, ...props }) {
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(text_1.Text, { bold: true, size: "large", color: "blue", ...props, children: children }));
|
|
20
|
+
}
|
|
21
|
+
exports.H4 = H4;
|
|
22
|
+
function Paragraph({ children, ...props }) {
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(text_1.Text, { lineHeight: 1.63, alpha: 0.9, ...props, children: children }));
|
|
24
|
+
}
|
|
25
|
+
exports.Paragraph = Paragraph;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { H1 } from "./typography";
|
|
3
|
+
declare const meta: Meta<typeof H1>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
//# sourceMappingURL=typography.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.stories.d.ts","sourceRoot":"","sources":["../../src/text/typography.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,CAWzB,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Default = void 0;
|
|
4
|
+
const typography_1 = require("./typography");
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "tripie-ui/Typography",
|
|
7
|
+
component: typography_1.H1,
|
|
8
|
+
tags: ["autodocs"],
|
|
9
|
+
parameters: {
|
|
10
|
+
docs: {
|
|
11
|
+
description: {
|
|
12
|
+
component: "Typography를 표현할때 사용하는 뷰 컴포넌트입니다.",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
exports.default = meta;
|
|
18
|
+
exports.Default = {
|
|
19
|
+
name: "default",
|
|
20
|
+
args: {
|
|
21
|
+
children: "H1",
|
|
22
|
+
href: "/",
|
|
23
|
+
headline: "headline",
|
|
24
|
+
emphasize: true,
|
|
25
|
+
textAlign: "center",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = generator;
|
|
4
|
+
// Learn more about Turborepo Generators at https://turbo.build/repo/docs/core-concepts/monorepos/code-generation
|
|
5
|
+
function generator(plop) {
|
|
6
|
+
// A simple generator to add a new React component to the internal UI library
|
|
7
|
+
plop.setGenerator('react-component', {
|
|
8
|
+
description: 'Adds a new react component',
|
|
9
|
+
prompts: [
|
|
10
|
+
{
|
|
11
|
+
type: 'input',
|
|
12
|
+
name: 'name',
|
|
13
|
+
message: 'What is the name of the component?',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
actions: [
|
|
17
|
+
{
|
|
18
|
+
type: 'add',
|
|
19
|
+
path: 'src/{{kebabCase name}}.tsx',
|
|
20
|
+
templateFile: 'templates/component.hbs',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'append',
|
|
24
|
+
path: 'package.json',
|
|
25
|
+
pattern: /"exports": {(?<insertion>)/g,
|
|
26
|
+
template: ' "./{{kebabCase name}}": "./src/{{kebabCase name}}.tsx",',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
});
|
|
30
|
+
}
|
package/jest.config.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const { jestConfig } = require('@tripie-pyotato/jest');
|
|
2
|
+
|
|
3
|
+
module.exports = jestConfig({
|
|
4
|
+
transform: {
|
|
5
|
+
'^.+\\.jsx?$': 'babel-jest',
|
|
6
|
+
'^.+\\.tsx?$': [
|
|
7
|
+
'ts-jest',
|
|
8
|
+
{
|
|
9
|
+
diagnostics: false,
|
|
10
|
+
tsconfig: '../../tsconfig.jest.json',
|
|
11
|
+
babelConfig: true,
|
|
12
|
+
isolatedModules: true,
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
moduleNameMapper: {
|
|
17
|
+
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
|
|
18
|
+
},
|
|
19
|
+
setupFilesAfterEnv: ['./jest.setup.cjs'],
|
|
20
|
+
resolver: require.resolve('@tripie-pyotato/jest/resolver'),
|
|
21
|
+
});
|