@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,84 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
var bind_1 = require("classnames/bind");
|
|
5
|
+
var framer_motion_1 = require("framer-motion");
|
|
6
|
+
var navigation_1 = require("next/navigation");
|
|
7
|
+
var icon_module_scss_1 = require("./icon.module.scss");
|
|
8
|
+
var resource_1 = require("../../shared/resource");
|
|
9
|
+
var variants_1 = require("./variants");
|
|
10
|
+
var cx = bind_1.default.bind(icon_module_scss_1.default);
|
|
11
|
+
var Icon = function (_a) {
|
|
12
|
+
var className = _a.className, onTapStart = _a.onTapStart,
|
|
13
|
+
// src = './icons/arrow.png',
|
|
14
|
+
_b = _a.src,
|
|
15
|
+
// src = './icons/arrow.png',
|
|
16
|
+
src = _b === void 0 ? (0, resource_1.ICON_RESOURCE)('ARROW') : _b, animate = _a.animate, _c = _a.sizes, sizes = _c === void 0 ? 'icon' : _c, _d = _a.variants, variants = _d === void 0 ? variants_1.ICON_VARIANTS.DEFAULT : _d, transition = _a.transition;
|
|
17
|
+
return (<framer_motion_1.motion.div onTapStart={onTapStart} className={cx(sizes, className)} variants={variants} transition={transition} animate={animate}>
|
|
18
|
+
<img src={src} alt={"".concat(src, " icon")}/>
|
|
19
|
+
</framer_motion_1.motion.div>);
|
|
20
|
+
};
|
|
21
|
+
var NavigateIcon = function (_a) {
|
|
22
|
+
var className = _a.className, _b = _a.direction, direction = _b === void 0 ? 'back' : _b, src = _a.src, _c = _a.sizes, sizes = _c === void 0 ? 'icon' : _c, animate = _a.animate, disabled = _a.disabled, _d = _a.variants, variants = _d === void 0 ? variants_1.ICON_VARIANTS.NAVIGATE(direction) : _d, transition = _a.transition;
|
|
23
|
+
var navigate = (0, navigation_1.useRouter)();
|
|
24
|
+
var onNavigate = function (_a) {
|
|
25
|
+
var direction = _a.direction;
|
|
26
|
+
direction === 'back' ? navigate.back() : navigate.forward();
|
|
27
|
+
};
|
|
28
|
+
return (<framer_motion_1.motion.button disabled={disabled} onTapStart={function () { return onNavigate({ direction: direction }); }} whileTap={'hover'} whileHover={'hover'} className={cx(sizes, className)} variants={variants} transition={transition} initial={'closed'} animate={animate}>
|
|
29
|
+
<img src={(0, resource_1.ICON_RESOURCE)('ARROW')} alt={src + '버튼'}/>
|
|
30
|
+
</framer_motion_1.motion.button>);
|
|
31
|
+
};
|
|
32
|
+
var RefreshIcon = function (_a) {
|
|
33
|
+
var className = _a.className, onTapStart = _a.onTapStart, animate = _a.animate, transition = _a.transition, _b = _a.sizes, sizes = _b === void 0 ? 'icon' : _b;
|
|
34
|
+
return (<framer_motion_1.motion.div onTapStart={onTapStart} whileTap={'hover'} whileHover={'hover'} className={cx(sizes, className)} variants={variants_1.ICON_VARIANTS.REFRESH('undo')} transition={transition} initial={'closed'} animate={animate}>
|
|
35
|
+
<img src={(0, resource_1.ICON_RESOURCE)('REFRESH')} alt={'새로고침 버튼'}/>
|
|
36
|
+
</framer_motion_1.motion.div>);
|
|
37
|
+
};
|
|
38
|
+
var PlaneIcon = function (_a) {
|
|
39
|
+
var className = _a.className, _b = _a.sizes, sizes = _b === void 0 ? 'icon' : _b;
|
|
40
|
+
return (<framer_motion_1.motion.img variants={variants_1.ICON_VARIANTS.PLANE} animate={'fly'} initial={'rotate'} src={(0, resource_1.ICON_RESOURCE)('PLANE')} className={cx(sizes, 'plane', className)}/>);
|
|
41
|
+
};
|
|
42
|
+
var CloudIcon = function (_a) {
|
|
43
|
+
var _b = _a.index, index = _b === void 0 ? 0 : _b, _c = _a.sizes, sizes = _c === void 0 ? 'icon' : _c;
|
|
44
|
+
return (<framer_motion_1.motion.img variants={variants_1.ICON_VARIANTS.CLOUD} initial={{
|
|
45
|
+
opacity: "".concat(0.2),
|
|
46
|
+
translateX: "".concat(80 * (Math.random() * (index + 1)), "vw"),
|
|
47
|
+
translateY: "".concat(Math.random() * 100, "px"),
|
|
48
|
+
}} animate={{ translateX: '-100vw' }} transition={{ decelerate: 2, repeat: Infinity, duration: 35, bounce: 0, delay: index * 0.1 }} src={(0, resource_1.ICON_RESOURCE)('CLOUD')} className={cx(sizes)}/>);
|
|
49
|
+
};
|
|
50
|
+
var LoadingIcon = function (_a) {
|
|
51
|
+
var className = _a.className, _b = _a.sizes, sizes = _b === void 0 ? 'icon' : _b;
|
|
52
|
+
return (<framer_motion_1.motion.img animate={{ rotate: '360deg' }} transition={{ repeat: Infinity, duration: 10, bounce: 0 }} src={(0, resource_1.ICON_RESOURCE)('LOADING')} className={cx(sizes, className)}/>);
|
|
53
|
+
};
|
|
54
|
+
var CursorIcon = function (_a) {
|
|
55
|
+
var _b = _a.hovered, hovered = _b === void 0 ? '' : _b, className = _a.className, transition = _a.transition, _c = _a.sizes, sizes = _c === void 0 ? 'icon' : _c;
|
|
56
|
+
return (<framer_motion_1.motion.img variants={variants_1.ICON_VARIANTS.CURSOR} src={(0, resource_1.ICON_RESOURCE)('CURSOR')} initial={'initial'} animate={hovered} transition={transition} className={cx(sizes, className)}/>);
|
|
57
|
+
};
|
|
58
|
+
var ScrollIcon = function (_a) {
|
|
59
|
+
var _b = _a.hovered, hovered = _b === void 0 ? '' : _b, className = _a.className, _c = _a.next, next = _c === void 0 ? true : _c, transition = _a.transition, onTapStart = _a.onTapStart, _d = _a.sizes, sizes = _d === void 0 ? 'icon' : _d;
|
|
60
|
+
return (<framer_motion_1.motion.img variants={variants_1.ICON_VARIANTS.SCROLL(next)} onTapStart={onTapStart} src={(0, resource_1.ICON_RESOURCE)('NEXT')} initial={'initial'} animate={hovered} transition={transition} className={cx(sizes, next ? 'next' : 'prev', className)}/>);
|
|
61
|
+
};
|
|
62
|
+
var TransportIcon = function (_a) {
|
|
63
|
+
var _b = _a.active, active = _b === void 0 ? false : _b, _c = _a.type, type = _c === void 0 ? 'FLAG' : _c, className = _a.className, _d = _a.sizes, sizes = _d === void 0 ? 'icon' : _d;
|
|
64
|
+
return (<framer_motion_1.motion.img animate={active ? { rotate: [0, 10, -10, 0] } : { rotate: 0 }} transition={active ? { repeat: Infinity, repeatType: 'loop', duration: 0.8, ease: 'easeInOut' } : {}} className={cx(sizes, className)} src={(0, resource_1.ICON_RESOURCE)(type)}/>);
|
|
65
|
+
};
|
|
66
|
+
var XIcon = function (_a) {
|
|
67
|
+
var className = _a.className, _b = _a.sizes, sizes = _b === void 0 ? 'icon' : _b;
|
|
68
|
+
return <framer_motion_1.motion.img className={cx(sizes, className)} src={(0, resource_1.ICON_RESOURCE)('X')}/>;
|
|
69
|
+
};
|
|
70
|
+
var CheckIcon = function (_a) {
|
|
71
|
+
var className = _a.className, _b = _a.sizes, sizes = _b === void 0 ? 'icon' : _b;
|
|
72
|
+
return <framer_motion_1.motion.img className={cx(sizes, className)} src={(0, resource_1.ICON_RESOURCE)('CHECK')}/>;
|
|
73
|
+
};
|
|
74
|
+
Icon.Navigate = NavigateIcon;
|
|
75
|
+
Icon.Refresh = RefreshIcon;
|
|
76
|
+
Icon.Plane = PlaneIcon;
|
|
77
|
+
Icon.Cloud = CloudIcon;
|
|
78
|
+
Icon.Loading = LoadingIcon;
|
|
79
|
+
Icon.Transport = TransportIcon;
|
|
80
|
+
Icon.Cursor = CursorIcon;
|
|
81
|
+
Icon.Scroll = ScrollIcon;
|
|
82
|
+
Icon.X = XIcon;
|
|
83
|
+
Icon.Check = CheckIcon;
|
|
84
|
+
exports.default = Icon;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransportActiveWalkIcon = exports.TransportWalkIcon = exports.TransportActiveTramIcon = exports.TransportTramIcon = exports.TransportActiveTrainIcon = exports.TransportTrainIcon = exports.TransportActiveShipIcon = exports.TransportShipIcon = exports.TransportActiveFlagIcon = exports.TransportFlagIcon = exports.TransportActiveCarIcon = exports.TransportCarIcon = exports.TransportActiveBusIcon = exports.TransportBusIcon = exports.TransportIcon = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var hooks_1 = require("../../hooks");
|
|
6
|
+
var Icon_1 = require("./Icon");
|
|
7
|
+
var meta = {
|
|
8
|
+
title: 'tripie-ui/Icon/Transport',
|
|
9
|
+
component: Icon_1.default,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
parameters: {
|
|
12
|
+
docs: {
|
|
13
|
+
description: {
|
|
14
|
+
component: '교통 수단 관련 아이콘 컴포넌트들입니다.',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
decorators: [
|
|
19
|
+
function (story, context) {
|
|
20
|
+
var _a = (0, hooks_1.useAppTheme)(), mode = _a.mode, setMode = _a.setMode;
|
|
21
|
+
var selectedTheme = context.globals.theme || mode;
|
|
22
|
+
(0, react_1.useEffect)(function () {
|
|
23
|
+
setMode(selectedTheme);
|
|
24
|
+
}, [selectedTheme]);
|
|
25
|
+
return <div className={"".concat(context.globals.theme)}>{story()}</div>;
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
};
|
|
29
|
+
exports.default = meta;
|
|
30
|
+
exports.TransportIcon = {
|
|
31
|
+
name: 'Icon.Transport',
|
|
32
|
+
render: function () { return <Icon_1.default.Transport />; },
|
|
33
|
+
};
|
|
34
|
+
exports.TransportBusIcon = {
|
|
35
|
+
name: 'Icon.Transport.Bus',
|
|
36
|
+
render: function () { return <Icon_1.default.Transport type={'BUS'}/>; },
|
|
37
|
+
};
|
|
38
|
+
exports.TransportActiveBusIcon = {
|
|
39
|
+
name: 'Icon.Transport.Bus.Active',
|
|
40
|
+
render: function () { return <Icon_1.default.Transport active={true} type={'BUS'}/>; },
|
|
41
|
+
};
|
|
42
|
+
exports.TransportCarIcon = {
|
|
43
|
+
name: 'Icon.Transport.Car',
|
|
44
|
+
render: function () { return <Icon_1.default.Transport type={'CAR'}/>; },
|
|
45
|
+
};
|
|
46
|
+
exports.TransportActiveCarIcon = {
|
|
47
|
+
name: 'Icon.Transport.Car.Active',
|
|
48
|
+
render: function () { return <Icon_1.default.Transport active={true} type={'CAR'}/>; },
|
|
49
|
+
};
|
|
50
|
+
exports.TransportFlagIcon = {
|
|
51
|
+
name: 'Icon.Transport.Flag',
|
|
52
|
+
render: function () { return <Icon_1.default.Transport type={'FLAG'}/>; },
|
|
53
|
+
};
|
|
54
|
+
exports.TransportActiveFlagIcon = {
|
|
55
|
+
name: 'Icon.Transport.Flag.Active',
|
|
56
|
+
render: function () { return <Icon_1.default.Transport active={true} type={'FLAG'}/>; },
|
|
57
|
+
};
|
|
58
|
+
exports.TransportShipIcon = {
|
|
59
|
+
name: 'Icon.Transport.Ship',
|
|
60
|
+
render: function () { return <Icon_1.default.Transport type={'SHIP'}/>; },
|
|
61
|
+
};
|
|
62
|
+
exports.TransportActiveShipIcon = {
|
|
63
|
+
name: 'Icon.Transport.Ship.Active',
|
|
64
|
+
render: function () { return <Icon_1.default.Transport active={true} type={'SHIP'}/>; },
|
|
65
|
+
};
|
|
66
|
+
exports.TransportTrainIcon = {
|
|
67
|
+
name: 'Icon.Transport.Train',
|
|
68
|
+
render: function () { return <Icon_1.default.Transport type={'TRAIN'}/>; },
|
|
69
|
+
};
|
|
70
|
+
exports.TransportActiveTrainIcon = {
|
|
71
|
+
name: 'Icon.Transport.Train.Active',
|
|
72
|
+
render: function () { return <Icon_1.default.Transport active={true} type={'TRAIN'}/>; },
|
|
73
|
+
};
|
|
74
|
+
exports.TransportTramIcon = {
|
|
75
|
+
name: 'Icon.Transport.Tram',
|
|
76
|
+
render: function () { return <Icon_1.default.Transport type={'TRAM'}/>; },
|
|
77
|
+
};
|
|
78
|
+
exports.TransportActiveTramIcon = {
|
|
79
|
+
name: 'Icon.Transport.Tram.Active',
|
|
80
|
+
render: function () { return <Icon_1.default.Transport active={true} type={'TRAM'}/>; },
|
|
81
|
+
};
|
|
82
|
+
exports.TransportWalkIcon = {
|
|
83
|
+
name: 'Icon.Transport.Walk',
|
|
84
|
+
render: function () { return <Icon_1.default.Transport type={'WALK'}/>; },
|
|
85
|
+
};
|
|
86
|
+
exports.TransportActiveWalkIcon = {
|
|
87
|
+
name: 'Icon.Transport.Walk.Active',
|
|
88
|
+
render: function () { return <Icon_1.default.Transport active={true} type={'WALK'}/>; },
|
|
89
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckIcon = exports.XIcon = exports.ScrollIcon = exports.CursorIcon = exports.CloudIcon = exports.PlaneIcon = exports.RefreshIcon = exports.NavigateIcon = exports.LargeNavigateIcon = exports.Default = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var hooks_1 = require("../../hooks");
|
|
6
|
+
var Icon_1 = require("./Icon");
|
|
7
|
+
var meta = {
|
|
8
|
+
title: 'tripie-ui/Icon',
|
|
9
|
+
component: Icon_1.default,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
parameters: {
|
|
12
|
+
docs: {
|
|
13
|
+
description: {
|
|
14
|
+
component: '교통 수단 이외 상호작용이 가능한 모든 아이콘 컴포넌트들입니다.',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
decorators: [
|
|
19
|
+
function (story, context) {
|
|
20
|
+
var _a = (0, hooks_1.useAppTheme)(), mode = _a.mode, setMode = _a.setMode;
|
|
21
|
+
var selectedTheme = context.globals.theme || mode;
|
|
22
|
+
(0, react_1.useEffect)(function () {
|
|
23
|
+
setMode(selectedTheme);
|
|
24
|
+
}, [selectedTheme]);
|
|
25
|
+
return <div className={"".concat(context.globals.theme)}>{story()}</div>;
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
};
|
|
29
|
+
exports.default = meta;
|
|
30
|
+
exports.Default = {
|
|
31
|
+
name: 'Icon.Default',
|
|
32
|
+
};
|
|
33
|
+
exports.LargeNavigateIcon = {
|
|
34
|
+
name: 'Icon.Navigate.Large',
|
|
35
|
+
render: function () { return <Icon_1.default.Navigate sizes="large"/>; },
|
|
36
|
+
};
|
|
37
|
+
exports.NavigateIcon = {
|
|
38
|
+
name: 'Icon.Navigate',
|
|
39
|
+
render: function () { return <Icon_1.default.Navigate />; },
|
|
40
|
+
};
|
|
41
|
+
exports.RefreshIcon = {
|
|
42
|
+
name: 'Icon.Refresh',
|
|
43
|
+
render: function () { return <Icon_1.default.Refresh />; },
|
|
44
|
+
};
|
|
45
|
+
exports.PlaneIcon = {
|
|
46
|
+
name: 'Icon.Plane',
|
|
47
|
+
render: function () { return <Icon_1.default.Plane />; },
|
|
48
|
+
};
|
|
49
|
+
exports.CloudIcon = {
|
|
50
|
+
name: 'Icon.Cloud',
|
|
51
|
+
render: function () { return <Icon_1.default.Cloud index={0}/>; },
|
|
52
|
+
};
|
|
53
|
+
exports.CursorIcon = {
|
|
54
|
+
name: 'Icon.Cursor',
|
|
55
|
+
render: function () { return <Icon_1.default.Cursor />; },
|
|
56
|
+
};
|
|
57
|
+
exports.ScrollIcon = {
|
|
58
|
+
name: 'Icon.Scroll',
|
|
59
|
+
render: function () { return <Icon_1.default.Scroll />; },
|
|
60
|
+
};
|
|
61
|
+
exports.XIcon = {
|
|
62
|
+
name: 'Icon.X',
|
|
63
|
+
render: function () { return <Icon_1.default.X />; },
|
|
64
|
+
};
|
|
65
|
+
exports.CheckIcon = {
|
|
66
|
+
name: 'Icon.Check',
|
|
67
|
+
render: function () { return <Icon_1.default.Check />; },
|
|
68
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.default = void 0;
|
|
18
|
+
__exportStar(require("./Icon"), exports);
|
|
19
|
+
var Icon_1 = require("./Icon");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return Icon_1.default; } });
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ICON_VARIANTS = void 0;
|
|
4
|
+
exports.ICON_VARIANTS = {
|
|
5
|
+
DEFAULT: {
|
|
6
|
+
closed: function () { return ({}); },
|
|
7
|
+
open: function () { return ({
|
|
8
|
+
rotate: '45deg',
|
|
9
|
+
transition: {
|
|
10
|
+
duration: 0.5,
|
|
11
|
+
bounce: 0,
|
|
12
|
+
},
|
|
13
|
+
}); },
|
|
14
|
+
hover: function () { return ({
|
|
15
|
+
rotate: '45deg',
|
|
16
|
+
transition: {
|
|
17
|
+
duration: 0.5,
|
|
18
|
+
bounce: 0,
|
|
19
|
+
},
|
|
20
|
+
}); },
|
|
21
|
+
},
|
|
22
|
+
NAVIGATE: function (direction) {
|
|
23
|
+
return (direction === 'back'
|
|
24
|
+
? {
|
|
25
|
+
closed: function () { return ({
|
|
26
|
+
rotate: '-135deg',
|
|
27
|
+
transition: {
|
|
28
|
+
duration: 0.1,
|
|
29
|
+
bounce: 1,
|
|
30
|
+
},
|
|
31
|
+
}); },
|
|
32
|
+
hover: function () { return ({
|
|
33
|
+
rotate: '-90deg',
|
|
34
|
+
transition: {
|
|
35
|
+
duration: 0.1,
|
|
36
|
+
bounce: 1,
|
|
37
|
+
},
|
|
38
|
+
}); },
|
|
39
|
+
}
|
|
40
|
+
: {
|
|
41
|
+
closed: function () { return ({
|
|
42
|
+
rotate: '45deg',
|
|
43
|
+
transition: {
|
|
44
|
+
duration: 0.1,
|
|
45
|
+
bounce: 1,
|
|
46
|
+
},
|
|
47
|
+
}); },
|
|
48
|
+
hover: function () { return ({
|
|
49
|
+
rotate: '0deg',
|
|
50
|
+
transition: {
|
|
51
|
+
duration: 0.1,
|
|
52
|
+
bounce: 1,
|
|
53
|
+
},
|
|
54
|
+
}); },
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
REFRESH: function (action) {
|
|
58
|
+
return (action === 'redo'
|
|
59
|
+
? {
|
|
60
|
+
closed: function () { return ({
|
|
61
|
+
rotate: '-135deg',
|
|
62
|
+
transition: {
|
|
63
|
+
duration: 0.1,
|
|
64
|
+
bounce: 1,
|
|
65
|
+
},
|
|
66
|
+
}); },
|
|
67
|
+
hover: function () { return ({
|
|
68
|
+
rotate: '-90deg',
|
|
69
|
+
transition: {
|
|
70
|
+
duration: 0.1,
|
|
71
|
+
bounce: 1,
|
|
72
|
+
},
|
|
73
|
+
}); },
|
|
74
|
+
}
|
|
75
|
+
: {
|
|
76
|
+
closed: function () { return ({
|
|
77
|
+
rotate: '45deg',
|
|
78
|
+
transition: {
|
|
79
|
+
duration: 0.1,
|
|
80
|
+
bounce: 1,
|
|
81
|
+
},
|
|
82
|
+
}); },
|
|
83
|
+
hover: function () { return ({
|
|
84
|
+
rotate: '0deg',
|
|
85
|
+
transition: {
|
|
86
|
+
duration: 0.1,
|
|
87
|
+
bounce: 1,
|
|
88
|
+
},
|
|
89
|
+
}); },
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
PLANE: {
|
|
93
|
+
rotate: {
|
|
94
|
+
rotate: '90deg',
|
|
95
|
+
},
|
|
96
|
+
fly: function () { return ({
|
|
97
|
+
translateX: '100vw',
|
|
98
|
+
transition: {
|
|
99
|
+
repeat: Infinity,
|
|
100
|
+
duration: 5,
|
|
101
|
+
bounce: 1,
|
|
102
|
+
},
|
|
103
|
+
}); },
|
|
104
|
+
},
|
|
105
|
+
CLOUD: {
|
|
106
|
+
rest: function () { return ({
|
|
107
|
+
opacity: "".concat(Math.random()),
|
|
108
|
+
translateX: "".concat(Math.random() * 1000, "rem"),
|
|
109
|
+
translateY: "".concat(Math.random() * 100, "px"),
|
|
110
|
+
}); },
|
|
111
|
+
float: function () { return ({
|
|
112
|
+
translateX: '-100%',
|
|
113
|
+
delay: 1,
|
|
114
|
+
transition: {
|
|
115
|
+
decelerate: 2,
|
|
116
|
+
repeat: Infinity,
|
|
117
|
+
duration: 8,
|
|
118
|
+
bounce: 1,
|
|
119
|
+
},
|
|
120
|
+
}); },
|
|
121
|
+
},
|
|
122
|
+
CURSOR: {
|
|
123
|
+
initial: function () { return ({
|
|
124
|
+
translateY: '-10px',
|
|
125
|
+
}); },
|
|
126
|
+
hover: function () { return ({
|
|
127
|
+
pointerEvents: 'none',
|
|
128
|
+
translateX: '-50px',
|
|
129
|
+
translateY: '-5px',
|
|
130
|
+
transition: {
|
|
131
|
+
decelerate: 2,
|
|
132
|
+
duration: 0.5,
|
|
133
|
+
bounce: 0,
|
|
134
|
+
},
|
|
135
|
+
}); },
|
|
136
|
+
},
|
|
137
|
+
SCROLL: function (next) {
|
|
138
|
+
return (next
|
|
139
|
+
? {
|
|
140
|
+
initial: function () { return ({
|
|
141
|
+
rotate: '0deg',
|
|
142
|
+
transition: {
|
|
143
|
+
duration: 0.1,
|
|
144
|
+
bounce: 1,
|
|
145
|
+
},
|
|
146
|
+
}); },
|
|
147
|
+
hover: function () { return ({
|
|
148
|
+
rotate: '-90deg',
|
|
149
|
+
transition: {
|
|
150
|
+
duration: 0.1,
|
|
151
|
+
bounce: 1,
|
|
152
|
+
},
|
|
153
|
+
}); },
|
|
154
|
+
}
|
|
155
|
+
: {
|
|
156
|
+
initial: function () { return ({
|
|
157
|
+
rotate: '-180deg',
|
|
158
|
+
transition: {
|
|
159
|
+
duration: 0.1,
|
|
160
|
+
bounce: 1,
|
|
161
|
+
},
|
|
162
|
+
}); },
|
|
163
|
+
hover: function () { return ({
|
|
164
|
+
rotate: '0deg',
|
|
165
|
+
transition: {
|
|
166
|
+
duration: 0.1,
|
|
167
|
+
bounce: 1,
|
|
168
|
+
},
|
|
169
|
+
}); },
|
|
170
|
+
});
|
|
171
|
+
},
|
|
172
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
var bind_1 = require("classnames/bind");
|
|
5
|
+
var image_1 = require("next/image");
|
|
6
|
+
var resource_1 = require("../../shared/resource");
|
|
7
|
+
var Text_1 = require("../Text");
|
|
8
|
+
var TripieContainer_1 = require("../TripieContainer");
|
|
9
|
+
var tripie_image_module_scss_1 = require("./tripie-image.module.scss");
|
|
10
|
+
var cx = bind_1.default.bind(tripie_image_module_scss_1.default);
|
|
11
|
+
var TripieImage = function (_a) {
|
|
12
|
+
var alt = _a.alt, src = _a.src, refs = _a.refs, _b = _a.sizes, sizes = _b === void 0 ? 'default' : _b, className = _a.className, _c = _a.withBorder, withBorder = _c === void 0 ? true : _c, blurDataURL = _a.blurDataURL, _d = _a.fill, fill = _d === void 0 ? true : _d;
|
|
13
|
+
return (<TripieContainer_1.default margin="none" className={cx('tripie-image', 'img-wrap', sizes, withBorder && 'with-border', className)}>
|
|
14
|
+
{blurDataURL == null ? (<img className={cx('tripie-image', 'img-wrap', sizes, withBorder && 'with-border')} src={src !== null && src !== void 0 ? src : resource_1.PLACEHOLDER} alt={"".concat(alt, "\uC758 \uC774\uBBF8\uC9C0\uC77C \uC218 \uC788\uC74C")}/>) : (<image_1.default src={src !== null && src !== void 0 ? src : resource_1.PLACEHOLDER} alt={alt} sizes={'(min-width:640px) 50vw, 100vw'} placeholder="blur" fill={fill} blurDataURL={blurDataURL} ref={refs}/>)}
|
|
15
|
+
</TripieContainer_1.default>);
|
|
16
|
+
};
|
|
17
|
+
var ImageWithSourceUrl = function (_a) {
|
|
18
|
+
var alt = _a.alt, src = _a.src, refs = _a.refs, className = _a.className, _b = _a.sizes, sizes = _b === void 0 ? 'medium' : _b, sourceUrl = _a.sourceUrl, _c = _a.withBorder, withBorder = _c === void 0 ? true : _c, blurDataURL = _a.blurDataURL;
|
|
19
|
+
return (<TripieContainer_1.default margin="none" className={cx('img-wrap', withBorder !== null && withBorder !== void 0 ? withBorder : 'with-border', className)}>
|
|
20
|
+
<TripieImage src={src} alt={alt} refs={refs} sizes={sizes} blurDataURL={blurDataURL}/>
|
|
21
|
+
<Text_1.default className={cx('source-url', 'img-source')}>{"\uCD9C\uCC98 ".concat(sourceUrl)}</Text_1.default>
|
|
22
|
+
</TripieContainer_1.default>);
|
|
23
|
+
};
|
|
24
|
+
TripieImage.WithSourceUrl = ImageWithSourceUrl;
|
|
25
|
+
exports.default = TripieImage;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.default = void 0;
|
|
18
|
+
__exportStar(require("./TripieImage"), exports);
|
|
19
|
+
var TripieImage_1 = require("./TripieImage");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return TripieImage_1.default; } });
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithBlurDataUrl = exports.WithLongSourceUrl = exports.WithSourceUrl = exports.SmallImage = exports.MediumImage = exports.IconImage = exports.NoImage = exports.Default = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var hooks_1 = require("../../hooks");
|
|
6
|
+
var TripieImage_1 = require("./TripieImage");
|
|
7
|
+
var meta = {
|
|
8
|
+
title: 'tripie-ui/Image',
|
|
9
|
+
component: TripieImage_1.default,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
parameters: {
|
|
12
|
+
docs: {
|
|
13
|
+
description: {
|
|
14
|
+
component: '이미지 컴포넌트입니다. withBorder boolean 값으로 테두리를 설정할 수 있고, TripieImage.WithSourceUrl 컴포넌트의 경우 sourceUrl을 제공하여 이미지 출처를 표기할 수 있습니다.',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
argTypes: {},
|
|
19
|
+
decorators: [
|
|
20
|
+
function (story, context) {
|
|
21
|
+
var _a = (0, hooks_1.useAppTheme)(), mode = _a.mode, setMode = _a.setMode;
|
|
22
|
+
var selectedTheme = context.globals.theme || mode;
|
|
23
|
+
(0, react_1.useEffect)(function () {
|
|
24
|
+
setMode(selectedTheme);
|
|
25
|
+
}, [selectedTheme]);
|
|
26
|
+
return <div className={"".concat(context.globals.theme)}>{story()}</div>;
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
30
|
+
exports.default = meta;
|
|
31
|
+
exports.Default = {
|
|
32
|
+
name: 'Default',
|
|
33
|
+
args: {
|
|
34
|
+
alt: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음',
|
|
35
|
+
src: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg',
|
|
36
|
+
blurDataURL: 'data:image/svg+xml;base64,CiAgPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDUnPgogICAgPGZpbHRlciBpZD0nYicgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSdzUkdCJz4KICAgICAgPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMScgLz4KICAgIDwvZmlsdGVyPgogICAgPGltYWdlIHByZXNlcnZlQXNwZWN0UmF0aW89J25vbmUnIGZpbHRlcj0ndXJsKCNiKScgeD0nMCcgeT0nMCcgaGVpZ2h0PScxMDAlJyB3aWR0aD0nMTAwJScgCiAgICBocmVmPSdkYXRhOmltYWdlL2F2aWY7YmFzZTY0LC85ai8yd0JEQUFnSUNBZ0pDQWtLQ2drTkRnd09EUk1SRUJBUkV4d1VGaFFXRkJ3ckd4OGJHeDhiS3lZdUpTTWxMaVpFTlM4dk5VUk9RajVDVGw5VlZWOTNjWGVjbk5ILzJ3QkRBUWdJQ0FnSkNBa0tDZ2tORGd3T0RSTVJFQkFSRXh3VUZoUVdGQndyR3g4Ykd4OGJLeVl1SlNNbExpWkVOUzh2TlVST1FqNUNUbDlWVlY5M2NYZWNuTkgvd2dBUkNBQUxBQkFEQVNJQUFoRUJBeEVCLzhRQUZnQUJBUUVBQUFBQUFBQUFBQUFBQUFBQUJnVUgvOFFBRlFFQkFRQUFBQUFBQUFBQUFBQUFBQUFBQkFYLzJnQU1Bd0VBQWhBREVBQUFBS0NuRFhhSjMvL0VBQ0lRQUFFREF3TUZBQUFBQUFBQUFBQUFBQUlCQXdVQUJCSVJFeUV4TWtGaHNmL2FBQWdCQVFBQlB3Q01uYmQ1eHNIV2tISXROVStwUXpFRXp0NVhIZVdLWWdTODFBcVRyd01tU2szb2E0K3c2VmNtVzZmUG12L0VBQm9SQUFJQ0F3QUFBQUFBQUFBQUFBQUFBQUVDQXhFQUVpTC8yZ0FJQVFJQkFUOEFFMHBUWXZmVlovL0VBQm9SQVFBQ0F3RUFBQUFBQUFBQUFBQUFBQUVDQXdBRUVSTC8yZ0FJQVFNQkFUOEFxMXFtYkh5SERQL1onIC8+CiAgPC9zdmc+Cg==',
|
|
37
|
+
sizes: 'default',
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
exports.NoImage = {
|
|
41
|
+
name: 'Image.None',
|
|
42
|
+
args: {
|
|
43
|
+
sizes: 'medium',
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
exports.IconImage = {
|
|
47
|
+
name: 'Image.Icon',
|
|
48
|
+
args: {
|
|
49
|
+
alt: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음',
|
|
50
|
+
src: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg',
|
|
51
|
+
sizes: 'icon',
|
|
52
|
+
withBorder: false,
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
exports.MediumImage = {
|
|
56
|
+
name: 'Image.Medium',
|
|
57
|
+
args: {
|
|
58
|
+
alt: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음',
|
|
59
|
+
src: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg',
|
|
60
|
+
sizes: 'medium',
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
exports.SmallImage = {
|
|
64
|
+
name: 'Image.Small',
|
|
65
|
+
args: {
|
|
66
|
+
alt: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음',
|
|
67
|
+
src: 'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg',
|
|
68
|
+
sizes: 'small',
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
exports.WithSourceUrl = {
|
|
72
|
+
name: 'Image.WithSourceUrl',
|
|
73
|
+
render: function () { return (<TripieImage_1.default.WithSourceUrl sourceUrl={'https://이미지 출처'} alt={'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음'} src={'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg'}/>); },
|
|
74
|
+
};
|
|
75
|
+
exports.WithLongSourceUrl = {
|
|
76
|
+
name: 'Image.WithLongSourceUrl',
|
|
77
|
+
render: function () { return (<TripieImage_1.default.WithSourceUrl sourceUrl={'https://엄청 긴 이미지 출처 엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처엄청 긴 이미지 출처'} alt={'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음'} src={'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg'}/>); },
|
|
78
|
+
};
|
|
79
|
+
exports.WithBlurDataUrl = {
|
|
80
|
+
name: 'Image.WithBlurDataUrl',
|
|
81
|
+
render: function () {
|
|
82
|
+
return (<div style={{ width: '24rem' }}>
|
|
83
|
+
<TripieImage_1.default alt={'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg이미지일수도 있음'} src={'https://media.triple.guide/triple-cms/c_fill,f_auto,h_256,w_256/54e3594d-1087-43ff-b760-7231d4103edf.jpeg'} blurDataURL="data:image/svg+xml;base64,CiAgPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDUnPgogICAgPGZpbHRlciBpZD0nYicgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSdzUkdCJz4KICAgICAgPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMScgLz4KICAgIDwvZmlsdGVyPgogICAgPGltYWdlIHByZXNlcnZlQXNwZWN0UmF0aW89J25vbmUnIGZpbHRlcj0ndXJsKCNiKScgeD0nMCcgeT0nMCcgaGVpZ2h0PScxMDAlJyB3aWR0aD0nMTAwJScgCiAgICBocmVmPSdkYXRhOmltYWdlL2F2aWY7YmFzZTY0LC85ai8yd0JEQUFnSUNBZ0pDQWtLQ2drTkRnd09EUk1SRUJBUkV4d1VGaFFXRkJ3ckd4OGJHeDhiS3lZdUpTTWxMaVpFTlM4dk5VUk9RajVDVGw5VlZWOTNjWGVjbk5ILzJ3QkRBUWdJQ0FnSkNBa0tDZ2tORGd3T0RSTVJFQkFSRXh3VUZoUVdGQndyR3g4Ykd4OGJLeVl1SlNNbExpWkVOUzh2TlVST1FqNUNUbDlWVlY5M2NYZWNuTkgvd2dBUkNBQUxBQkFEQVNJQUFoRUJBeEVCLzhRQUZnQUJBUUVBQUFBQUFBQUFBQUFBQUFBQUJnVUgvOFFBRlFFQkFRQUFBQUFBQUFBQUFBQUFBQUFBQkFYLzJnQU1Bd0VBQWhBREVBQUFBS0NuRFhhSjMvL0VBQ0lRQUFFREF3TUZBQUFBQUFBQUFBQUFBQUlCQXdVQUJCSVJFeUV4TWtGaHNmL2FBQWdCQVFBQlB3Q01uYmQ1eHNIV2tISXROVStwUXpFRXp0NVhIZVdLWWdTODFBcVRyd01tU2szb2E0K3c2VmNtVzZmUG12L0VBQm9SQUFJQ0F3QUFBQUFBQUFBQUFBQUFBQUVDQXhFQUVpTC8yZ0FJQVFJQkFUOEFFMHBUWXZmVlovL0VBQm9SQVFBQ0F3RUFBQUFBQUFBQUFBQUFBQUVDQXdBRUVSTC8yZ0FJQVFNQkFUOEFxMXFtYkh5SERQL1onIC8+CiAgPC9zdmc+Cg=="/>
|
|
84
|
+
</div>);
|
|
85
|
+
},
|
|
86
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var bind_1 = require("classnames/bind");
|
|
15
|
+
var skeleton_module_scss_1 = require("./skeleton.module.scss");
|
|
16
|
+
var cx = bind_1.default.bind(skeleton_module_scss_1.default);
|
|
17
|
+
var Skeleton = function (_a) {
|
|
18
|
+
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
19
|
+
return (<div className={cx('skeleton', className)} {...props}>
|
|
20
|
+
{children}
|
|
21
|
+
</div>);
|
|
22
|
+
};
|
|
23
|
+
var SkeletonImage = function (_a) {
|
|
24
|
+
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
25
|
+
return (<div className={cx('skeleton', className)} {...props}>
|
|
26
|
+
{children}
|
|
27
|
+
</div>);
|
|
28
|
+
};
|
|
29
|
+
Skeleton.Image = SkeletonImage;
|
|
30
|
+
exports.default = Skeleton;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.default = void 0;
|
|
18
|
+
__exportStar(require("./Skeleton"), exports);
|
|
19
|
+
var Skeleton_1 = require("./Skeleton");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return Skeleton_1.default; } });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Default = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var hooks_1 = require("../../hooks");
|
|
6
|
+
var Skeleton_1 = require("./Skeleton");
|
|
7
|
+
var meta = {
|
|
8
|
+
title: 'tripie-ui/Skeleton',
|
|
9
|
+
component: Skeleton_1.default,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
decorators: [
|
|
12
|
+
function (story, context) {
|
|
13
|
+
var _a = (0, hooks_1.useAppTheme)(), mode = _a.mode, setMode = _a.setMode;
|
|
14
|
+
var selectedTheme = context.globals.theme || mode;
|
|
15
|
+
(0, react_1.useEffect)(function () {
|
|
16
|
+
setMode(selectedTheme);
|
|
17
|
+
}, [selectedTheme]);
|
|
18
|
+
return <div className={"".concat(context.globals.theme)}>{story()}</div>;
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
};
|
|
22
|
+
exports.default = meta;
|
|
23
|
+
exports.Default = {
|
|
24
|
+
name: 'Default Skeleton',
|
|
25
|
+
args: {
|
|
26
|
+
children: <Skeleton_1.default></Skeleton_1.default>,
|
|
27
|
+
},
|
|
28
|
+
};
|