trepur_components 0.4.8 → 1.0.1
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/dist/src/lib/components/Accordion/Accordion.stories.d.ts +6 -0
- package/dist/src/lib/components/Accordion/Accordion.stories.js +80 -0
- package/dist/src/lib/components/Accordion/Accordion.stories.js.map +1 -0
- package/dist/src/lib/components/Accordion/index.d.ts +8 -0
- package/dist/src/lib/components/Accordion/index.js +9 -0
- package/dist/src/lib/components/Accordion/index.js.map +1 -0
- package/dist/src/lib/components/AlertBar/AlertBar.stories.d.ts +6 -0
- package/dist/src/lib/components/AlertBar/AlertBar.stories.js +91 -0
- package/dist/src/lib/components/AlertBar/AlertBar.stories.js.map +1 -0
- package/dist/src/lib/components/AlertBar/index.d.ts +16 -0
- package/dist/src/lib/components/AlertBar/index.js +64 -0
- package/dist/src/lib/components/AlertBar/index.js.map +1 -0
- package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +6 -0
- package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js +56 -0
- package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js.map +1 -0
- package/dist/src/lib/components/Breadcrumbs/index.d.ts +11 -0
- package/dist/src/lib/components/Breadcrumbs/index.js +20 -0
- package/dist/src/lib/components/Breadcrumbs/index.js.map +1 -0
- package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.d.ts +6 -0
- package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +45 -0
- package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js.map +1 -0
- package/dist/src/lib/components/BreadcrumbsBordered/index.d.ts +9 -0
- package/dist/src/lib/components/BreadcrumbsBordered/index.js +18 -0
- package/dist/src/lib/components/BreadcrumbsBordered/index.js.map +1 -0
- package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.d.ts +6 -0
- package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js +50 -0
- package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js.map +1 -0
- package/dist/src/lib/components/BreadcrumbsItem/index.d.ts +12 -0
- package/dist/src/lib/components/BreadcrumbsItem/index.js +57 -0
- package/dist/src/lib/components/BreadcrumbsItem/index.js.map +1 -0
- package/dist/src/lib/components/Button/button.stories.d.ts +6 -0
- package/dist/src/lib/components/Button/button.stories.js +132 -0
- package/dist/src/lib/components/Button/button.stories.js.map +1 -0
- package/dist/src/lib/components/Button/index.d.ts +17 -0
- package/dist/src/lib/components/Button/index.js +32 -0
- package/dist/src/lib/components/Button/index.js.map +1 -0
- package/dist/src/lib/components/Card/Card.stories.d.ts +8 -0
- package/dist/src/lib/components/Card/Card.stories.js +124 -0
- package/dist/src/lib/components/Card/Card.stories.js.map +1 -0
- package/dist/src/lib/components/Card/index.d.ts +31 -0
- package/dist/src/lib/components/Card/index.js +66 -0
- package/dist/src/lib/components/Card/index.js.map +1 -0
- package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.d.ts +6 -0
- package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js +40 -0
- package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js.map +1 -0
- package/dist/src/lib/components/CardWithTopImage/index.d.ts +10 -0
- package/dist/src/lib/components/CardWithTopImage/index.js +15 -0
- package/dist/src/lib/components/CardWithTopImage/index.js.map +1 -0
- package/dist/src/lib/components/Carousel/Carousel.stories.d.ts +6 -0
- package/dist/src/lib/components/Carousel/Carousel.stories.js +297 -0
- package/dist/src/lib/components/Carousel/Carousel.stories.js.map +1 -0
- package/dist/src/lib/components/Carousel/index.d.ts +59 -0
- package/dist/src/lib/components/Carousel/index.js +122 -0
- package/dist/src/lib/components/Carousel/index.js.map +1 -0
- package/dist/src/lib/components/ChevronCard/ChevronCard.stories.d.ts +6 -0
- package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js +14 -0
- package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js.map +1 -0
- package/dist/src/lib/components/ChevronCard/index.d.ts +7 -0
- package/dist/src/lib/components/ChevronCard/index.js +20 -0
- package/dist/src/lib/components/ChevronCard/index.js.map +1 -0
- package/dist/src/lib/components/Collapsible/Collapsible.stories.d.ts +6 -0
- package/dist/src/lib/components/Collapsible/Collapsible.stories.js +66 -0
- package/dist/src/lib/components/Collapsible/Collapsible.stories.js.map +1 -0
- package/dist/src/lib/components/Collapsible/index.d.ts +16 -0
- package/dist/src/lib/components/Collapsible/index.js +67 -0
- package/dist/src/lib/components/Collapsible/index.js.map +1 -0
- package/dist/src/lib/components/Column/Column.stories.d.ts +6 -0
- package/dist/src/lib/components/Column/Column.stories.js +64 -0
- package/dist/src/lib/components/Column/Column.stories.js.map +1 -0
- package/dist/src/lib/components/Column/index.d.ts +12 -0
- package/dist/src/lib/components/Column/index.js +83 -0
- package/dist/src/lib/components/Column/index.js.map +1 -0
- package/dist/src/lib/components/Container/Container.stories.d.ts +6 -0
- package/dist/src/lib/components/Container/Container.stories.js +30 -0
- package/dist/src/lib/components/Container/Container.stories.js.map +1 -0
- package/dist/src/lib/components/Container/index.d.ts +9 -0
- package/dist/src/lib/components/Container/index.js +8 -0
- package/dist/src/lib/components/Container/index.js.map +1 -0
- package/dist/src/lib/components/FooterBar/footerBar.stories.d.ts +6 -0
- package/dist/src/lib/components/FooterBar/footerBar.stories.js +48 -0
- package/dist/src/lib/components/FooterBar/footerBar.stories.js.map +1 -0
- package/dist/src/lib/components/FooterBar/index.d.ts +11 -0
- package/dist/src/lib/components/FooterBar/index.js +15 -0
- package/dist/src/lib/components/FooterBar/index.js.map +1 -0
- package/dist/src/lib/components/Form/Form.stories.d.ts +6 -0
- package/dist/src/lib/components/Form/Form.stories.js +82 -0
- package/dist/src/lib/components/Form/Form.stories.js.map +1 -0
- package/dist/src/lib/components/Form/index.d.ts +16 -0
- package/dist/src/lib/components/Form/index.js +19 -0
- package/dist/src/lib/components/Form/index.js.map +1 -0
- package/dist/src/lib/components/FyreCard/FyreCard.stories.d.ts +6 -0
- package/dist/src/lib/components/FyreCard/FyreCard.stories.js +22 -0
- package/dist/src/lib/components/FyreCard/FyreCard.stories.js.map +1 -0
- package/dist/src/lib/components/FyreCard/index.d.ts +13 -0
- package/dist/src/lib/components/FyreCard/index.js +17 -0
- package/dist/src/lib/components/FyreCard/index.js.map +1 -0
- package/dist/src/lib/components/Greeting/Greeting.stories.d.ts +6 -0
- package/dist/src/lib/components/Greeting/Greeting.stories.js +33 -0
- package/dist/src/lib/components/Greeting/Greeting.stories.js.map +1 -0
- package/dist/src/lib/components/Greeting/index.d.ts +10 -0
- package/dist/src/lib/components/Greeting/index.js +23 -0
- package/dist/src/lib/components/Greeting/index.js.map +1 -0
- package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +6 -0
- package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js +46 -0
- package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js.map +1 -0
- package/dist/src/lib/components/HamburgerIcon/index.d.ts +7 -0
- package/dist/src/lib/components/HamburgerIcon/index.js +26 -0
- package/dist/src/lib/components/HamburgerIcon/index.js.map +1 -0
- package/dist/src/lib/components/Icon/Icon.stories.d.ts +6 -0
- package/dist/src/lib/components/Icon/Icon.stories.js +87 -0
- package/dist/src/lib/components/Icon/Icon.stories.js.map +1 -0
- package/dist/src/lib/components/Icon/index.d.ts +19 -0
- package/dist/src/lib/components/Icon/index.js +56 -0
- package/dist/src/lib/components/Icon/index.js.map +1 -0
- package/dist/src/lib/components/Image/Image.stories.d.ts +6 -0
- package/dist/src/lib/components/Image/Image.stories.js +73 -0
- package/dist/src/lib/components/Image/Image.stories.js.map +1 -0
- package/dist/src/lib/components/Image/index.d.ts +16 -0
- package/dist/src/lib/components/Image/index.js +54 -0
- package/dist/src/lib/components/Image/index.js.map +1 -0
- package/dist/src/lib/components/ImageLink/ImageLink.stories.d.ts +9 -0
- package/dist/src/lib/components/ImageLink/ImageLink.stories.js +50 -0
- package/dist/src/lib/components/ImageLink/ImageLink.stories.js.map +1 -0
- package/dist/src/lib/components/ImageLink/index.d.ts +15 -0
- package/dist/src/lib/components/ImageLink/index.js +18 -0
- package/dist/src/lib/components/ImageLink/index.js.map +1 -0
- package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.d.ts +6 -0
- package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js +27 -0
- package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js.map +1 -0
- package/dist/src/lib/components/ImageLinkList/index.d.ts +9 -0
- package/dist/src/lib/components/ImageLinkList/index.js +11 -0
- package/dist/src/lib/components/ImageLinkList/index.js.map +1 -0
- package/dist/src/lib/components/InformationIcon/InformationIcon.stories.d.ts +6 -0
- package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js +73 -0
- package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js.map +1 -0
- package/dist/src/lib/components/InformationIcon/index.d.ts +15 -0
- package/dist/src/lib/components/InformationIcon/index.js +45 -0
- package/dist/src/lib/components/InformationIcon/index.js.map +1 -0
- package/dist/src/lib/components/Input/Input.stories.d.ts +6 -0
- package/dist/src/lib/components/Input/Input.stories.js +95 -0
- package/dist/src/lib/components/Input/Input.stories.js.map +1 -0
- package/dist/src/lib/components/Input/index.d.ts +31 -0
- package/dist/src/lib/components/Input/index.js +25 -0
- package/dist/src/lib/components/Input/index.js.map +1 -0
- package/dist/src/lib/components/Jumbotron/Jumbotron.stories.d.ts +6 -0
- package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js +16 -0
- package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js.map +1 -0
- package/dist/src/lib/components/Jumbotron/index.d.ts +9 -0
- package/dist/src/lib/components/Jumbotron/index.js +9 -0
- package/dist/src/lib/components/Jumbotron/index.js.map +1 -0
- package/dist/src/lib/components/Nav/Nav.stories.d.ts +6 -0
- package/dist/src/lib/components/Nav/Nav.stories.js +134 -0
- package/dist/src/lib/components/Nav/Nav.stories.js.map +1 -0
- package/dist/src/lib/components/Nav/index.d.ts +22 -0
- package/dist/src/lib/components/Nav/index.js +65 -0
- package/dist/src/lib/components/Nav/index.js.map +1 -0
- package/dist/src/lib/components/NavItem/NavItem.stories.d.ts +6 -0
- package/dist/src/lib/components/NavItem/NavItem.stories.js +75 -0
- package/dist/src/lib/components/NavItem/NavItem.stories.js.map +1 -0
- package/dist/src/lib/components/NavItem/index.d.ts +15 -0
- package/dist/src/lib/components/NavItem/index.js +24 -0
- package/dist/src/lib/components/NavItem/index.js.map +1 -0
- package/dist/src/lib/components/NewsCard/NewsCard.stories.d.ts +6 -0
- package/dist/src/lib/components/NewsCard/NewsCard.stories.js +60 -0
- package/dist/src/lib/components/NewsCard/NewsCard.stories.js.map +1 -0
- package/dist/src/lib/components/NewsCard/index.d.ts +14 -0
- package/dist/src/lib/components/NewsCard/index.js +20 -0
- package/dist/src/lib/components/NewsCard/index.js.map +1 -0
- package/dist/src/lib/components/Profile/Profile.stories.d.ts +6 -0
- package/dist/src/lib/components/Profile/Profile.stories.js +41 -0
- package/dist/src/lib/components/Profile/Profile.stories.js.map +1 -0
- package/dist/src/lib/components/Profile/index.d.ts +18 -0
- package/dist/src/lib/components/Profile/index.js +36 -0
- package/dist/src/lib/components/Profile/index.js.map +1 -0
- package/dist/src/lib/components/Row/Row.stories.d.ts +6 -0
- package/dist/src/lib/components/Row/Row.stories.js +37 -0
- package/dist/src/lib/components/Row/Row.stories.js.map +1 -0
- package/dist/src/lib/components/Row/index.d.ts +8 -0
- package/dist/src/lib/components/Row/index.js +8 -0
- package/dist/src/lib/components/Row/index.js.map +1 -0
- package/dist/src/lib/components/Search/Search.stories.d.ts +6 -0
- package/dist/src/lib/components/Search/Search.stories.js +48 -0
- package/dist/src/lib/components/Search/Search.stories.js.map +1 -0
- package/dist/src/lib/components/Search/index.d.ts +13 -0
- package/dist/src/lib/components/Search/index.js +23 -0
- package/dist/src/lib/components/Search/index.js.map +1 -0
- package/dist/src/lib/components/SocialBlock/SocialBlock.stories.d.ts +6 -0
- package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js +58 -0
- package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js.map +1 -0
- package/dist/src/lib/components/SocialBlock/index.d.ts +21 -0
- package/dist/src/lib/components/SocialBlock/index.js +65 -0
- package/dist/src/lib/components/SocialBlock/index.js.map +1 -0
- package/dist/src/lib/components/StarRating/StarRating.stories.d.ts +6 -0
- package/dist/src/lib/components/StarRating/StarRating.stories.js +17 -0
- package/dist/src/lib/components/StarRating/StarRating.stories.js.map +1 -0
- package/dist/src/lib/components/StarRating/index.d.ts +9 -0
- package/dist/src/lib/components/StarRating/index.js +27 -0
- package/dist/src/lib/components/StarRating/index.js.map +1 -0
- package/dist/src/lib/components/Testimonial/Testimonial.stories.d.ts +6 -0
- package/dist/src/lib/components/Testimonial/Testimonial.stories.js +95 -0
- package/dist/src/lib/components/Testimonial/Testimonial.stories.js.map +1 -0
- package/dist/src/lib/components/Testimonial/index.d.ts +17 -0
- package/dist/src/lib/components/Testimonial/index.js +27 -0
- package/dist/src/lib/components/Testimonial/index.js.map +1 -0
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.d.ts +6 -0
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js +63 -0
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js.map +1 -0
- package/dist/src/lib/components/TextAndTitle/index.d.ts +26 -0
- package/dist/src/lib/components/TextAndTitle/index.js +104 -0
- package/dist/src/lib/components/TextAndTitle/index.js.map +1 -0
- package/dist/src/lib/components/TextArea/TextArea.stories.d.ts +6 -0
- package/dist/src/lib/components/TextArea/TextArea.stories.js +63 -0
- package/dist/src/lib/components/TextArea/TextArea.stories.js.map +1 -0
- package/dist/src/lib/components/TextArea/index.d.ts +27 -0
- package/dist/src/lib/components/TextArea/index.js +19 -0
- package/dist/src/lib/components/TextArea/index.js.map +1 -0
- package/dist/src/lib/components/Timeline/Timeline.stories.d.ts +6 -0
- package/dist/src/lib/components/Timeline/Timeline.stories.js +87 -0
- package/dist/src/lib/components/Timeline/Timeline.stories.js.map +1 -0
- package/dist/src/lib/components/Timeline/index.d.ts +14 -0
- package/dist/src/lib/components/Timeline/index.js +208 -0
- package/dist/src/lib/components/Timeline/index.js.map +1 -0
- package/dist/src/lib/components/Tubestops/Tubestops.stories.d.ts +6 -0
- package/dist/src/lib/components/Tubestops/Tubestops.stories.js +62 -0
- package/dist/src/lib/components/Tubestops/Tubestops.stories.js.map +1 -0
- package/dist/src/lib/components/Tubestops/index.d.ts +13 -0
- package/dist/src/lib/components/Tubestops/index.js +44 -0
- package/dist/src/lib/components/Tubestops/index.js.map +1 -0
- package/dist/src/lib/components/UserIcon/UserIcon.stories.d.ts +6 -0
- package/dist/src/lib/components/UserIcon/UserIcon.stories.js +63 -0
- package/dist/src/lib/components/UserIcon/UserIcon.stories.js.map +1 -0
- package/dist/src/lib/components/UserIcon/index.d.ts +11 -0
- package/dist/src/lib/components/UserIcon/index.js +16 -0
- package/dist/src/lib/components/UserIcon/index.js.map +1 -0
- package/dist/src/lib/components/Video/Video.stories.d.ts +6 -0
- package/dist/src/lib/components/Video/Video.stories.js +17 -0
- package/dist/src/lib/components/Video/Video.stories.js.map +1 -0
- package/dist/src/lib/components/Video/index.d.ts +17 -0
- package/dist/src/lib/components/Video/index.js +9 -0
- package/dist/src/lib/components/Video/index.js.map +1 -0
- package/dist/src/lib/index.d.ts +39 -0
- package/dist/src/lib/index.js +43 -0
- package/dist/src/lib/index.js.map +1 -0
- package/dist/src/lib/typography/Fonts.stories.d.ts +6 -0
- package/dist/src/lib/typography/Fonts.stories.js +12 -0
- package/dist/src/lib/typography/Fonts.stories.js.map +1 -0
- package/dist/src/lib/typography/index.d.ts +6 -0
- package/dist/src/lib/typography/index.js +23 -0
- package/dist/src/lib/typography/index.js.map +1 -0
- package/dist/src/lib/utils/controls.d.ts +35 -0
- package/dist/src/lib/utils/controls.js +21 -0
- package/dist/src/lib/utils/controls.js.map +1 -0
- package/dist/src/lib/utils/theme.d.ts +3 -0
- package/dist/src/lib/utils/theme.js +28 -0
- package/dist/src/lib/utils/theme.js.map +1 -0
- package/dist/tailwind.config.d.ts +65 -0
- package/dist/tailwind.config.js +81 -0
- package/dist/tailwind.config.js.map +1 -0
- package/package.json +19 -5
- package/dist/components/Accordion/index.js +0 -37
- package/dist/components/AlertBar/index.js +0 -129
- package/dist/components/Breadcrumbs/index.js +0 -66
- package/dist/components/BreadcrumbsBordered/index.js +0 -66
- package/dist/components/BreadcrumbsItem/index.js +0 -160
- package/dist/components/Button/index.js +0 -141
- package/dist/components/Card/index.js +0 -151
- package/dist/components/CardWithTopImage/index.js +0 -64
- package/dist/components/Carousel/index.css +0 -4
- package/dist/components/Carousel/index.css.map +0 -1
- package/dist/components/Carousel/index.js +0 -185
- package/dist/components/ChevronCard/index.js +0 -65
- package/dist/components/Collapsible/index.js +0 -158
- package/dist/components/Column/index.js +0 -137
- package/dist/components/Container/index.js +0 -55
- package/dist/components/FooterBar/index.js +0 -60
- package/dist/components/Form/index.js +0 -78
- package/dist/components/FyreCard/index.js +0 -54
- package/dist/components/Greeting/index.js +0 -69
- package/dist/components/Icon/index.js +0 -91
- package/dist/components/Image/index.js +0 -142
- package/dist/components/ImageLink/index.js +0 -61
- package/dist/components/ImageLinkList/index.js +0 -45
- package/dist/components/InformationIcon/index.js +0 -120
- package/dist/components/Input/index.js +0 -112
- package/dist/components/Jumbotron/index.js +0 -39
- package/dist/components/Nav/index.js +0 -302
- package/dist/components/NavItem/index.js +0 -129
- package/dist/components/NewsCard/index.js +0 -62
- package/dist/components/Profile/index.js +0 -86
- package/dist/components/Row/index.js +0 -55
- package/dist/components/Search/index.js +0 -60
- package/dist/components/SocialBlock/index.js +0 -184
- package/dist/components/StarRating/index.js +0 -110
- package/dist/components/Testimonial/index.js +0 -70
- package/dist/components/TextAndTitle/index.js +0 -283
- package/dist/components/TextArea/index.js +0 -97
- package/dist/components/Timeline/index.css +0 -133
- package/dist/components/Timeline/index.css.map +0 -1
- package/dist/components/Timeline/index.js +0 -254
- package/dist/components/Tubestops/index.css +0 -92
- package/dist/components/Tubestops/index.css.map +0 -1
- package/dist/components/Tubestops/index.js +0 -95
- package/dist/components/UserIcon/index.js +0 -50
- package/dist/components/Users/rupertb/Documents/apps/trepur_components/src/lib/styles/base.css +0 -1831
- package/dist/components/Users/rupertb/Documents/apps/trepur_components/src/lib/styles/base.css.map +0 -1
- package/dist/components/Video/index.js +0 -67
- package/dist/fonts/Sora/OFL.txt +0 -93
- package/dist/fonts/Sora/README.txt +0 -70
- package/dist/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-Bold.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-Light.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-Medium.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-Regular.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-Thin.ttf +0 -0
- package/dist/index.js +0 -311
- package/dist/styles/base.css +0 -73
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import Input from '../Input';
|
|
3
|
+
import Button from '../Button';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import TextArea from '../TextArea';
|
|
6
|
+
const TextAndTitle = ({ id, className, titleClasses, editTitleClasses, editTextClasses, editInputClasses, textClasses, textLineOne, textLineTwo, textLineThree, title, titleBold, textCenter, titleCenter, withLiveUpdates = false, onSave, saveButtonProps, cancelButtonProps, isHorizontal = true, children }) => {
|
|
7
|
+
const getLineHeight = (id) => {
|
|
8
|
+
const element = document.getElementById(id);
|
|
9
|
+
const divHeight = (element === null || element === void 0 ? void 0 : element.offsetHeight) !== undefined ? element.offsetHeight : 0;
|
|
10
|
+
const lineHeight = (element != null) ? parseFloat(getComputedStyle(element).fontSize) : 1;
|
|
11
|
+
const pt = (element != null) ? parseFloat(getComputedStyle(element).paddingTop) : 0;
|
|
12
|
+
const pb = (element != null) ? parseFloat(getComputedStyle(element).paddingBottom) : 0;
|
|
13
|
+
const mt = (element != null) ? parseFloat(getComputedStyle(element).marginTop) : 0;
|
|
14
|
+
const mb = (element != null) ? parseFloat(getComputedStyle(element).marginBottom) : 0;
|
|
15
|
+
const bw = (element != null) ? parseFloat(getComputedStyle(element).borderWidth) : 0;
|
|
16
|
+
const height = divHeight - mt - mb - pt - pb - (bw * 2);
|
|
17
|
+
if (isHorizontal) {
|
|
18
|
+
return Math.floor(height / lineHeight) - 1;
|
|
19
|
+
}
|
|
20
|
+
return Math.floor(height / lineHeight);
|
|
21
|
+
};
|
|
22
|
+
const defaultComponentData = {
|
|
23
|
+
title,
|
|
24
|
+
textLineOne,
|
|
25
|
+
textLineTwo,
|
|
26
|
+
textLineThree
|
|
27
|
+
};
|
|
28
|
+
const [isInEditingMode, setIsInEditingMode] = useState(false);
|
|
29
|
+
const [componentData, setComponentData] = useState(defaultComponentData);
|
|
30
|
+
const borderClasses = 'border border-transparent';
|
|
31
|
+
const classList = classNames(className, 'bg-primary text-white');
|
|
32
|
+
const titleClassList = classNames({
|
|
33
|
+
'font-bold': titleBold,
|
|
34
|
+
'text-center': titleCenter,
|
|
35
|
+
[borderClasses]: withLiveUpdates && !isInEditingMode
|
|
36
|
+
}, titleClasses, 'text-md break-words');
|
|
37
|
+
const textClassList = classNames({
|
|
38
|
+
'text-center': textCenter,
|
|
39
|
+
[borderClasses]: withLiveUpdates && !isInEditingMode
|
|
40
|
+
}, textClasses, 'pt-2 mt-2');
|
|
41
|
+
const toggleEditState = () => {
|
|
42
|
+
withLiveUpdates &&
|
|
43
|
+
setIsInEditingMode(!isInEditingMode);
|
|
44
|
+
};
|
|
45
|
+
const handleButtonSave = () => {
|
|
46
|
+
const arr = [];
|
|
47
|
+
arr.push({ key: 'title', value: componentData.title });
|
|
48
|
+
arr.push({ key: 'textLineOne', value: componentData.textLineOne });
|
|
49
|
+
arr.push({ key: 'textLineTwo', value: componentData.textLineTwo });
|
|
50
|
+
arr.push({ key: 'textLineThree', value: componentData.textLineThree });
|
|
51
|
+
toggleEditState();
|
|
52
|
+
onSave === null || onSave === void 0 ? void 0 : onSave(arr, id);
|
|
53
|
+
};
|
|
54
|
+
const handleButtonCancel = () => {
|
|
55
|
+
return toggleEditState();
|
|
56
|
+
};
|
|
57
|
+
const handleChange = (e) => {
|
|
58
|
+
let id = e.target.id;
|
|
59
|
+
id = id.split('-')[id.split('-').length - 1];
|
|
60
|
+
setComponentData(Object.assign(Object.assign({}, componentData), { [id]: e.target.value }));
|
|
61
|
+
};
|
|
62
|
+
const wrapperClassList = classNames({
|
|
63
|
+
'flex flex-wrap justify-center md:items-center': isHorizontal,
|
|
64
|
+
'hover:border-black hover:border-dashed': withLiveUpdates && !isInEditingMode
|
|
65
|
+
}, 'border-2 border-transparent');
|
|
66
|
+
const titleWrapperClassList = classNames({
|
|
67
|
+
'md:w-1/2 md:text-center md:px-8': isHorizontal
|
|
68
|
+
});
|
|
69
|
+
const textWrapperClassList = classNames({
|
|
70
|
+
'md:w-1/2 md:text-center md:py-8 md:px-8': isHorizontal
|
|
71
|
+
});
|
|
72
|
+
const inputClassList = classNames(editInputClasses, textClassList);
|
|
73
|
+
const node = document.getElementById('textLineOne');
|
|
74
|
+
return (React.createElement("div", { id: id, className: classList }, withLiveUpdates && isInEditingMode
|
|
75
|
+
? (React.createElement(React.Fragment, null,
|
|
76
|
+
React.createElement("div", { className: wrapperClassList },
|
|
77
|
+
React.createElement("div", { className: titleWrapperClassList }, (componentData === null || componentData === void 0 ? void 0 : componentData.title) !== undefined
|
|
78
|
+
? (React.createElement(Input, { className: editTitleClasses, inputClasses: inputClassList, autoFocus: true, value: componentData === null || componentData === void 0 ? void 0 : componentData.title, onChange: (e) => handleChange(e), type: 'text', theme: 'dark' }))
|
|
79
|
+
: (React.createElement("div", null, children))),
|
|
80
|
+
React.createElement("div", { className: textWrapperClassList },
|
|
81
|
+
React.createElement(TextArea, { className: editTextClasses, textAreaClasses: classNames({
|
|
82
|
+
'text-center': isHorizontal
|
|
83
|
+
}, editInputClasses), rows: getLineHeight('textLineOne') + 1, onChange: (e) => handleChange(e), theme: 'dark' }, node === null || node === void 0 ? void 0 : node.innerHTML),
|
|
84
|
+
React.createElement(TextArea, { className: editTextClasses, textAreaClasses: classNames({
|
|
85
|
+
'text-center': isHorizontal
|
|
86
|
+
}, editInputClasses), rows: getLineHeight('textLineTwo'), onChange: (e) => handleChange(e), theme: 'dark' }, componentData.textLineTwo),
|
|
87
|
+
React.createElement(TextArea, { className: editTextClasses, textAreaClasses: classNames({
|
|
88
|
+
'text-center': isHorizontal
|
|
89
|
+
}, editInputClasses), rows: getLineHeight('textLineThree'), onChange: (e) => handleChange(e), theme: 'dark' }, componentData.textLineThree))),
|
|
90
|
+
React.createElement(Button, { className: saveButtonProps === null || saveButtonProps === void 0 ? void 0 : saveButtonProps.className, onClick: handleButtonSave }, saveButtonProps === null || saveButtonProps === void 0 ? void 0 : saveButtonProps.children),
|
|
91
|
+
React.createElement(Button, { className: cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, onClick: handleButtonCancel }, cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.children)))
|
|
92
|
+
: (React.createElement("div", { className: wrapperClassList, onClick: toggleEditState },
|
|
93
|
+
React.createElement("div", { className: titleWrapperClassList }, (componentData === null || componentData === void 0 ? void 0 : componentData.title) !== undefined
|
|
94
|
+
? (React.createElement("h1", { className: titleClassList }, componentData.title))
|
|
95
|
+
: (children)),
|
|
96
|
+
React.createElement("div", { className: textWrapperClassList },
|
|
97
|
+
(componentData === null || componentData === void 0 ? void 0 : componentData.title) !== undefined
|
|
98
|
+
? (React.createElement("h1", { id: 'title', className: titleClassList }, componentData.title))
|
|
99
|
+
: (React.createElement("div", { id: 'textLineOne', className: textClassList }, componentData.textLineOne)),
|
|
100
|
+
React.createElement("div", { id: 'textLineTwo', className: textClassList }, componentData.textLineTwo),
|
|
101
|
+
React.createElement("div", { id: 'textLineThree', className: textClassList }, componentData.textLineThree))))));
|
|
102
|
+
};
|
|
103
|
+
export default TextAndTitle;
|
|
104
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/TextAndTitle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,MAAM,mBAAmB,CAAA;AACrC,OAAO,MAAgC,MAAM,oBAAoB,CAAA;AACjE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,QAAQ,MAAM,sBAAsB,CAAA;AAyB3C,MAAM,YAAY,GAAoB,CAAC,EACrC,EAAE,EACF,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,EACb,KAAK,EACL,SAAS,EACT,UAAU,EACV,WAAW,EACX,eAAe,GAAG,KAAK,EACvB,MAAM,EACN,eAAe,EACf,iBAAiB,EACjB,YAAY,GAAG,IAAI,EACnB,QAAQ,EACF,EAAe,EAAE;IACvB,MAAM,aAAa,GAAG,CAAC,EAAU,EAAU,EAAE;QAC3C,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAA;QAC3C,MAAM,SAAS,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,MAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;QAChF,MAAM,UAAU,GAAG,CAAC,OAAO,IAAI,IAAI,CAAC,C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AAW,CACtB;gBACN,6BAAK,EAAE,EAAC,eAAe,EAAC,SAAS,EAAE,aAAa,IAC7C,aAAa,CAAC,aAAa,CACxB,CACF,CACF,CACL,CACD,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import TextArea from './index';
|
|
3
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
+
declare const componentMeta: ComponentMeta<typeof TextArea>;
|
|
5
|
+
export declare const _TextArea: ComponentStory<({ id, className, labelClasses, textAreaClasses, label, placeholder, bold, name, disabled, rows, cols, autoFocus, formId, maxLength, readOnly, required, onBlur, onFocus, onChange, withPadding, children, theme }: import("./index").Props) => JSX.Element>;
|
|
6
|
+
export default componentMeta;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import TextArea from './index';
|
|
3
|
+
const componentMeta = {
|
|
4
|
+
title: 'Trepur Components/Rupert Bennett/Atoms/Text Area',
|
|
5
|
+
component: TextArea,
|
|
6
|
+
parameters: {},
|
|
7
|
+
argTypes: {
|
|
8
|
+
id: {
|
|
9
|
+
description: 'Defines the id of the component',
|
|
10
|
+
table: {
|
|
11
|
+
category: '',
|
|
12
|
+
type: { summary: 'string' },
|
|
13
|
+
defaultValue: { summary: 'undefined' }
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
className: {
|
|
17
|
+
description: 'Defines any additional classes for the components',
|
|
18
|
+
table: {
|
|
19
|
+
category: '',
|
|
20
|
+
type: { summary: 'string' },
|
|
21
|
+
defaultValue: { summary: 'undefined' }
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
label: {
|
|
25
|
+
description: '',
|
|
26
|
+
control: 'text',
|
|
27
|
+
table: {
|
|
28
|
+
category: ''
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
placeholder: {
|
|
32
|
+
description: '',
|
|
33
|
+
control: 'text',
|
|
34
|
+
table: {
|
|
35
|
+
category: ''
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
bold: {
|
|
39
|
+
description: '',
|
|
40
|
+
control: 'boolean',
|
|
41
|
+
table: {
|
|
42
|
+
category: ''
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
theme: {
|
|
46
|
+
type: { name: 'string', required: false },
|
|
47
|
+
options: ['dark', 'light'],
|
|
48
|
+
description: 'The variant of button to render',
|
|
49
|
+
table: { type: { summary: 'dark' }, defaultValue: { summary: 'dark' } },
|
|
50
|
+
defaultValue: 'dark',
|
|
51
|
+
control: { type: 'radio' }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
args: {
|
|
55
|
+
label: 'This is a label',
|
|
56
|
+
placeholder: 'This is a text area placeholder',
|
|
57
|
+
withPadding: true
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const Template = (args) => React.createElement(TextArea, Object.assign({}, args));
|
|
61
|
+
export const _TextArea = Template.bind({});
|
|
62
|
+
export default componentMeta;
|
|
63
|
+
//# sourceMappingURL=TextArea.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,SAAS,CAAA;AAG9B,MAAM,aAAa,GAAmC;IACpD,KAAK,EAAE,kDAAkD;IACzD,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE;QACR,EAAE,EAAE;YACF,WAAW,EAAE,iCAAiC;YAC9C,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,SAAS,E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1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface Props {
|
|
3
|
+
id?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
labelClasses?: string;
|
|
6
|
+
textAreaClasses?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
bold?: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
rows?: number;
|
|
13
|
+
cols?: number;
|
|
14
|
+
autoFocus?: boolean;
|
|
15
|
+
formId?: string;
|
|
16
|
+
maxLength?: number;
|
|
17
|
+
readOnly?: boolean;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
onBlur?: () => void;
|
|
20
|
+
onFocus?: () => void;
|
|
21
|
+
onChange?: (e: any) => void;
|
|
22
|
+
withPadding?: boolean;
|
|
23
|
+
children?: any;
|
|
24
|
+
theme?: 'dark' | 'light';
|
|
25
|
+
}
|
|
26
|
+
declare const TextArea: ({ id, className, labelClasses, textAreaClasses, label, placeholder, bold, name, disabled, rows, cols, autoFocus, formId, maxLength, readOnly, required, onBlur, onFocus, onChange, withPadding, children, theme }: Props) => JSX.Element;
|
|
27
|
+
export default TextArea;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
const TextArea = ({ id, className, labelClasses, textAreaClasses, label, placeholder, bold, name, disabled, rows, cols, autoFocus, formId, maxLength, readOnly, required, onBlur, onFocus, onChange, withPadding, children, theme = 'light' }) => {
|
|
4
|
+
const colours = theme === 'dark' ? 'placeholder-white bg-primary text-white' : 'placeholder-primary bg-white text-primary';
|
|
5
|
+
const classList = classNames(className, colours, 'flex flex-col');
|
|
6
|
+
const newId = id !== undefined ? `-${id}` : '-';
|
|
7
|
+
const labelClassList = classNames({
|
|
8
|
+
'font-bold': bold
|
|
9
|
+
}, labelClasses, 'w-auto pb-2');
|
|
10
|
+
const textAreaClassList = classNames({
|
|
11
|
+
'p-2': withPadding
|
|
12
|
+
}, textAreaClasses, colours, 'border rounded-md mb-2');
|
|
13
|
+
return (React.createElement("div", { id: id, className: classList },
|
|
14
|
+
label !== undefined &&
|
|
15
|
+
React.createElement("label", { className: labelClassList, htmlFor: `text-area${newId}` }, label),
|
|
16
|
+
React.createElement("textarea", { className: textAreaClassList, autoFocus: autoFocus, form: formId, maxLength: maxLength, readOnly: readOnly, required: required, disabled: disabled, rows: rows, cols: cols, name: name, placeholder: placeholder, onChange: onChange, onFocus: onFocus, onBlur: onBlur, defaultValue: children })));
|
|
17
|
+
};
|
|
18
|
+
export default TextArea;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/TextArea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AA2BnC,MAAM,QAAQ,GAAG,CAAC,EAChB,EAAE,EACF,SAAS,EACT,YAAY,EACZ,eAAe,EACf,KAAK,EACL,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,MAAM,EACN,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,KAAK,GAAG,OAAO,EACT,EAAe,EAAE;IACvB,MAAM,OAAO,GAAG,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,2CAA2C,CAAA;IAC1H,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,eAAe,CAAC,CAAA;IACjE,MAAM,KAAK,GAAG,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAA;IAC/C,MAAM,cAAc,GAAG,UAAU,CAAC;QAChC,WAAW,EAAE,IAAI;KAClB,EAAE,YAAY,EAAE,aAAa,CAAC,CAAA;IAE/B,MAAM,iBAAiB,GAAG,UAAU,CAAC;QACnC,KAAK,EAAE,WAAW;KACnB,EAAE,eAAe,EAAE,OAAO,EAAE,wBAAwB,CAAC,CAAA;IAEtD,OAAO,CACL,6BACE,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS;QAEnB,KAAK,KAAK,SAAS;YAClB,+BACE,SAAS,EAAE,cAAc,EACzB,OAAO,EAAE,YAAY,KAAK,EAAE,IAE3B,KAAK,CACA;QACV,kCACE,SAAS,EAAE,iBAAiB,EAC5B,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,QAAQ,GACtB,CACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Timeline from './index';
|
|
3
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
+
declare const componentMeta: ComponentMeta<typeof Timeline>;
|
|
5
|
+
export declare const _Timeline: ComponentStory<({ id, className, isHorizontal, items, reverse, textCenter, useImages, horizontalComponentClasses, isSm }: import("./index").Props) => JSX.Element>;
|
|
6
|
+
export default componentMeta;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Timeline from './index';
|
|
3
|
+
import CardWithTopImage from '../CardWithTopImage';
|
|
4
|
+
import logo from '@assets/images/primary-logo.png';
|
|
5
|
+
const timelineItems = () => {
|
|
6
|
+
return new Array(8).fill(null).map(() => {
|
|
7
|
+
return ({
|
|
8
|
+
component: React.createElement(CardWithTopImage, { imageProps: {
|
|
9
|
+
image: logo,
|
|
10
|
+
roundedFull: true,
|
|
11
|
+
width: 4,
|
|
12
|
+
height: 4
|
|
13
|
+
}, className: 'px-4' },
|
|
14
|
+
React.createElement("p", null, "This is some text"),
|
|
15
|
+
React.createElement("p", null, "This is some more text"),
|
|
16
|
+
React.createElement("p", null, "This is a bit more text"),
|
|
17
|
+
React.createElement("p", null, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem odit ad sed, quam recusandae voluptatem provident eveniet beatae omnis vero minus unde facilis. Quia commodi quas odit iusto ut enim!")),
|
|
18
|
+
centerImageProps: {
|
|
19
|
+
image: logo,
|
|
20
|
+
imageClasses: 'mx-auto',
|
|
21
|
+
width: 4,
|
|
22
|
+
height: 4,
|
|
23
|
+
centerAligned: true,
|
|
24
|
+
roundedFull: true
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const componentMeta = {
|
|
30
|
+
title: 'Trepur Components/Rupert Bennett/Organisms/Timeline',
|
|
31
|
+
component: Timeline,
|
|
32
|
+
parameters: {},
|
|
33
|
+
argTypes: {
|
|
34
|
+
id: {
|
|
35
|
+
description: 'Defines the id of the component',
|
|
36
|
+
control: { type: 'text', default: false },
|
|
37
|
+
table: {
|
|
38
|
+
category: 'Id',
|
|
39
|
+
type: { summary: 'string' },
|
|
40
|
+
defaultValue: { summary: 'undefined' }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
className: {
|
|
44
|
+
description: 'Defines any additional classes for the components',
|
|
45
|
+
control: { type: 'text', default: false },
|
|
46
|
+
table: {
|
|
47
|
+
category: 'Classes',
|
|
48
|
+
type: { summary: 'string' },
|
|
49
|
+
defaultValue: { summary: 'undefined' }
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
isHorizontal: {
|
|
53
|
+
description: '',
|
|
54
|
+
control: 'boolean',
|
|
55
|
+
table: {
|
|
56
|
+
category: ''
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
useImages: {
|
|
60
|
+
description: '',
|
|
61
|
+
control: 'boolean',
|
|
62
|
+
table: {
|
|
63
|
+
category: ''
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
items: {
|
|
67
|
+
description: '',
|
|
68
|
+
control: 'array',
|
|
69
|
+
table: {
|
|
70
|
+
category: ''
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
args: {
|
|
75
|
+
isHorizontal: true,
|
|
76
|
+
reverse: false,
|
|
77
|
+
items: timelineItems(),
|
|
78
|
+
textCenter: true,
|
|
79
|
+
useImages: true,
|
|
80
|
+
horizontalComponentClasses: 'w-96 h-96',
|
|
81
|
+
isSm: true
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const Template = (args) => React.createElement(Timeline, Object.assign({}, args));
|
|
85
|
+
export const _Timeline = Template.bind({});
|
|
86
|
+
export default componentMeta;
|
|
87
|
+
//# sourceMappingURL=Timeline.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timeline.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Timeline/Timeline.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,SAAS,CAAA;AAC9B,OAAO,gBAAgB,MAAM,8BAA8B,CAAA;AAE3D,OAAO,IAAI,MAAM,iCAAiC,CAAA;AAGlD,MAAM,aAAa,GAAG,GAAoE,EAAE;IAC1F,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE;QACtC,OAAO,CACL;YACE,SAAS,EACf,oBAAC,gBAAgB,IACf,UAAU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,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF;QACD,KAAK,EAAE;YACL,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF;KACF;IACD,IAAI,EAAE;QACJ,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,aAAa,EAAE;QACtB,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,IAAI;QACf,0BAA0B,EAAE,WAAW;QACvC,IAAI,EAAE,IAAI;KACX;CACF,CAAA;AAED,MAAM,QAAQ,GAAoC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAA;AAElF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE1C,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface Props {
|
|
3
|
+
id?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
isHorizontal?: boolean;
|
|
6
|
+
items?: object[];
|
|
7
|
+
reverse?: boolean;
|
|
8
|
+
textCenter?: boolean;
|
|
9
|
+
useImages?: boolean;
|
|
10
|
+
horizontalComponentClasses?: string;
|
|
11
|
+
isSm?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const Timeline: ({ id, className, isHorizontal, items, reverse, textCenter, useImages, horizontalComponentClasses, isSm }: Props) => JSX.Element;
|
|
14
|
+
export default Timeline;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import Image from '../Image';
|
|
4
|
+
import Column from '../Column';
|
|
5
|
+
import Row from '../Row';
|
|
6
|
+
const Timeline = ({ id, className, isHorizontal = false, items, reverse = false, textCenter, useImages = true, horizontalComponentClasses, isSm = false }) => {
|
|
7
|
+
const classList = classNames(className, 'w-full list-none overflow-x-auto pb-4');
|
|
8
|
+
const ulClasses = classNames({
|
|
9
|
+
'flex-row none-reverse justify-between': !reverse && isHorizontal,
|
|
10
|
+
'flex-col none-reverse': !reverse && !isHorizontal,
|
|
11
|
+
'flex-row reverse justify-between': reverse && isHorizontal,
|
|
12
|
+
'flex-col reverse': reverse && !isHorizontal
|
|
13
|
+
}, className, 'timeline status-flow relative list-none pl-0 flex');
|
|
14
|
+
const liClasses = classNames({
|
|
15
|
+
'text-center': textCenter,
|
|
16
|
+
'items-center flex-col justify-between': !reverse && isHorizontal,
|
|
17
|
+
'flex-row none-reverse': !reverse && !isHorizontal,
|
|
18
|
+
'items-center flex-col-reverse': reverse && isHorizontal,
|
|
19
|
+
'flex-row-reverse': reverse && !isHorizontal
|
|
20
|
+
}, 'status-flow-item relative flex flex-auto flex-row leading-tight');
|
|
21
|
+
const circle = classNames({
|
|
22
|
+
'horizontal collapse': isHorizontal && isSm,
|
|
23
|
+
horizontal: isHorizontal && !isSm,
|
|
24
|
+
vertical: !isHorizontal
|
|
25
|
+
}, 'w-4 h-4 my-16 text-center mx-auto rounded-full border bg-black');
|
|
26
|
+
const circleVerticalBefore = {
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
display: 'block',
|
|
29
|
+
borderLeft: '1px solid',
|
|
30
|
+
borderColor: 'text-primary',
|
|
31
|
+
content: '""',
|
|
32
|
+
height: '50%',
|
|
33
|
+
top: '0%',
|
|
34
|
+
left: '49.9%',
|
|
35
|
+
zIndex: '-1'
|
|
36
|
+
};
|
|
37
|
+
const circleVerticalCollapseBefore = {
|
|
38
|
+
position: 'absolute',
|
|
39
|
+
display: 'block',
|
|
40
|
+
borderLeft: '1px solid',
|
|
41
|
+
borderColor: 'text-primary',
|
|
42
|
+
content: '""',
|
|
43
|
+
height: '50%',
|
|
44
|
+
top: '0%',
|
|
45
|
+
left: '8.2%',
|
|
46
|
+
zIndex: '-1'
|
|
47
|
+
};
|
|
48
|
+
const lastCircleVerticalBefore = {
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
display: 'block',
|
|
51
|
+
borderLeft: '1px solid',
|
|
52
|
+
borderColor: 'text-primary',
|
|
53
|
+
content: '""',
|
|
54
|
+
height: '50%',
|
|
55
|
+
top: '0%',
|
|
56
|
+
left: '49.9%',
|
|
57
|
+
zIndex: '-1'
|
|
58
|
+
};
|
|
59
|
+
const lastCircleVerticalCollapseBefore = {
|
|
60
|
+
position: 'absolute',
|
|
61
|
+
display: 'block',
|
|
62
|
+
borderLeft: '1px solid',
|
|
63
|
+
borderColor: 'text-primary',
|
|
64
|
+
content: '""',
|
|
65
|
+
height: '50%',
|
|
66
|
+
top: '0%',
|
|
67
|
+
left: '8.2%',
|
|
68
|
+
zIndex: '-1'
|
|
69
|
+
};
|
|
70
|
+
const circleVerticalAfter = {
|
|
71
|
+
position: 'absolute',
|
|
72
|
+
display: 'block',
|
|
73
|
+
borderLeft: '1px solid',
|
|
74
|
+
borderColor: 'text-primary',
|
|
75
|
+
content: '""',
|
|
76
|
+
height: '50%',
|
|
77
|
+
bottom: '0%',
|
|
78
|
+
left: '49.9%',
|
|
79
|
+
zIndex: '-1'
|
|
80
|
+
};
|
|
81
|
+
const firstCircleVerticalAfter = {
|
|
82
|
+
position: 'absolute',
|
|
83
|
+
display: 'block',
|
|
84
|
+
borderLeft: '1px solid',
|
|
85
|
+
borderColor: 'text-primary',
|
|
86
|
+
content: '""',
|
|
87
|
+
height: '50%',
|
|
88
|
+
bottom: '0%',
|
|
89
|
+
left: '49.9%',
|
|
90
|
+
zIndex: '-1'
|
|
91
|
+
};
|
|
92
|
+
const circleVerticalCollapseAfter = {
|
|
93
|
+
position: 'absolute',
|
|
94
|
+
display: 'block',
|
|
95
|
+
borderLeft: '1px solid',
|
|
96
|
+
borderColor: 'text-primary',
|
|
97
|
+
content: '""',
|
|
98
|
+
height: '50%',
|
|
99
|
+
bottom: '0%',
|
|
100
|
+
left: '8.2%',
|
|
101
|
+
zIndex: '-1'
|
|
102
|
+
};
|
|
103
|
+
const firstCircleVerticalCollapseAfter = {
|
|
104
|
+
position: 'absolute',
|
|
105
|
+
display: 'block',
|
|
106
|
+
borderLeft: '1px solid',
|
|
107
|
+
borderColor: 'text-primary',
|
|
108
|
+
content: '""',
|
|
109
|
+
height: '50%',
|
|
110
|
+
bottom: '0%',
|
|
111
|
+
left: '8.2%',
|
|
112
|
+
zIndex: '-1'
|
|
113
|
+
};
|
|
114
|
+
return (React.createElement(Column, { sm: 12, md: 12, lg: 12, xl: 12, id: id, className: classList },
|
|
115
|
+
React.createElement("div", { className: ulClasses }, items === null || items === void 0 ? void 0 : items.map((item, i) => {
|
|
116
|
+
let before;
|
|
117
|
+
if (i % 2 === 0) {
|
|
118
|
+
before = true;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
before = false;
|
|
122
|
+
}
|
|
123
|
+
let circlePos;
|
|
124
|
+
if (items.length - 1 > 0) {
|
|
125
|
+
if (i === 0)
|
|
126
|
+
circlePos = 'first-circle';
|
|
127
|
+
else if (i === items.length - 1)
|
|
128
|
+
circlePos = 'last-circle';
|
|
129
|
+
else
|
|
130
|
+
circlePos = 'circle';
|
|
131
|
+
}
|
|
132
|
+
let verticalCircleStylesBefore;
|
|
133
|
+
if (circlePos === 'circle' && isSm) {
|
|
134
|
+
verticalCircleStylesBefore = circleVerticalCollapseBefore;
|
|
135
|
+
}
|
|
136
|
+
else if (circlePos === 'circle' && !isSm) {
|
|
137
|
+
verticalCircleStylesBefore = circleVerticalBefore;
|
|
138
|
+
}
|
|
139
|
+
else if (circlePos === 'last-circle' && isSm) {
|
|
140
|
+
verticalCircleStylesBefore = lastCircleVerticalCollapseBefore;
|
|
141
|
+
}
|
|
142
|
+
else if (circlePos === 'last-circle' && !isSm) {
|
|
143
|
+
verticalCircleStylesBefore = lastCircleVerticalBefore;
|
|
144
|
+
}
|
|
145
|
+
let verticalCircleStylesAfter;
|
|
146
|
+
if (circlePos === 'circle' && isSm) {
|
|
147
|
+
verticalCircleStylesAfter = circleVerticalCollapseAfter;
|
|
148
|
+
}
|
|
149
|
+
else if (circlePos === 'circle' && !isSm) {
|
|
150
|
+
verticalCircleStylesAfter = circleVerticalAfter;
|
|
151
|
+
}
|
|
152
|
+
else if (circlePos === 'first-circle' && isSm) {
|
|
153
|
+
verticalCircleStylesAfter = firstCircleVerticalCollapseAfter;
|
|
154
|
+
}
|
|
155
|
+
else if (circlePos === 'first-circle' && !isSm) {
|
|
156
|
+
verticalCircleStylesAfter = firstCircleVerticalAfter;
|
|
157
|
+
}
|
|
158
|
+
let horizontalCircleStylesBefore;
|
|
159
|
+
// if (circlePos === 'circle' && isSm){
|
|
160
|
+
// horizontalCircleStylesBefore = circleHorizontalCollapseBefore
|
|
161
|
+
// } else if (circlePos === 'circle' && !isSm){
|
|
162
|
+
// horizontalCircleStylesBefore = circleHorizontalBefore
|
|
163
|
+
// } else if (circlePos === 'first-circle' && isSm){
|
|
164
|
+
// horizontalCircleStylesBefore = firstCircleHorizontalCollapseBefore
|
|
165
|
+
// } else if (circlePos === 'first-circle' && !isSm){
|
|
166
|
+
// horizontalCircleStylesBefore = firstCircleHorizontalBefore
|
|
167
|
+
// }
|
|
168
|
+
let horizontalCircleStylesAfter;
|
|
169
|
+
// if (circlePos === 'circle' && isSm){
|
|
170
|
+
// horizontalCircleStylesAfter = circleHorizontalCollapseAfter
|
|
171
|
+
// } else if (circlePos === 'circle' && !isSm){
|
|
172
|
+
// horizontalCircleStylesAfter = circleHorizontalAfter
|
|
173
|
+
// } else if (circlePos === 'first-circle' && isSm){
|
|
174
|
+
// horizontalCircleStylesAfter = firstCircleHorizontalCollapseAfter
|
|
175
|
+
// } else if (circlePos === 'first-circle' && !isSm){
|
|
176
|
+
// horizontalCircleStylesAfter = firstCircleHorizontalAfter
|
|
177
|
+
// }
|
|
178
|
+
const horizonalComponentClassList = classNames(horizontalComponentClasses, 'pt-12');
|
|
179
|
+
if (isHorizontal) {
|
|
180
|
+
return (React.createElement(Column, { key: `horizontal_col_${i + 0}`, id: 'timeline-item', className: `${liClasses} py-4 mb-8` },
|
|
181
|
+
React.createElement(Row, { className: horizontalComponentClasses }, before && item.component),
|
|
182
|
+
React.createElement(Row, null, useImages
|
|
183
|
+
? (React.createElement("div", { id: circlePos, className: isHorizontal ? 'horizontal py-0 my-0' : 'vertical' },
|
|
184
|
+
React.createElement("span", { style: horizontalCircleStylesBefore }),
|
|
185
|
+
React.createElement(Image, Object.assign({}, item.centerImageProps)),
|
|
186
|
+
React.createElement("span", { style: horizontalCircleStylesAfter })))
|
|
187
|
+
: (React.createElement("p", { id: circlePos, className: circle }))),
|
|
188
|
+
React.createElement(Row, { className: horizonalComponentClassList }, !before && item.component)));
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
return (React.createElement(Row, { key: `vertical_row_${i + 0}`, id: 'timeline-item', className: `${liClasses} py-4` },
|
|
192
|
+
!isSm &&
|
|
193
|
+
React.createElement(Column, { sm: 5, md: 5, lg: 5, xl: 5, className: 'text-center my-auto' }, before && item.component),
|
|
194
|
+
React.createElement(Column, { sm: 2, md: 2, lg: 2, xl: 2, id: 'circle-wrapper', className: 'my-auto' }, useImages
|
|
195
|
+
? (React.createElement("div", { id: circlePos, className: isSm ? 'vertical' : 'vertical' },
|
|
196
|
+
React.createElement("span", { style: verticalCircleStylesBefore }),
|
|
197
|
+
React.createElement(Image, Object.assign({}, item.centerImageProps)),
|
|
198
|
+
React.createElement("span", { style: verticalCircleStylesAfter })))
|
|
199
|
+
: (React.createElement("p", { id: circlePos, className: circle }))),
|
|
200
|
+
isSm &&
|
|
201
|
+
React.createElement(Column, { sm: 10, md: 10, lg: 10, xl: 10, className: 'text-center my-auto' }, item.component),
|
|
202
|
+
!isSm &&
|
|
203
|
+
React.createElement(Column, { sm: 5, md: 5, lg: 5, xl: 5, className: 'text-center my-auto' }, !before && item.component)));
|
|
204
|
+
}
|
|
205
|
+
}))));
|
|
206
|
+
};
|
|
207
|
+
export default Timeline;
|
|
208
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Timeline/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAC5C,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,mBAAmB,CAAA;AACrC,OAAO,MAAM,MAAM,oBAAoB,CAAA;AACvC,OAAO,GAAG,MAAM,iBAAiB,CAAA;AAcjC,MAAM,QAAQ,GAAG,CAAC,EAChB,EAAE,EACF,SAAS,EACT,YAAY,GAAG,KAAK,EACpB,KAAK,EACL,OAAO,GAAG,KAAK,EACf,UAAU,EACV,SAAS,GAAG,IAAI,EAChB,0BAA0B,EAC1B,IAAI,GAAG,KAAK,EACN,EAAe,EAAE;IACvB,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,uCAAuC,CAAC,CAAA;IAChF,MAAM,SAAS,GAAG,UAAU,CAAC;QAC3B,uCAAuC,EAAE,CAAC,OAAO,IAAI,YAAY;QACjE,uBAAuB,EAAE,CAAC,OAAO,IAAI,CAAC,YAAY;QAClD,kCAAkC,EAAE,OAAO,IAAI,YAAY;QAC3D,kBAAkB,EAAE,OAAO,IAAI,CAAC,YAAY;KAC7C,EAAE,SAAS,EAAE,mDAAmD,CAAC,CAAA;IAElE,MAAM,SAAS,GAAG,UAAU,CAAC;QAC3B,aAAa,EAAE,UAAU;QACzB,uCAAuC,EAAE,CAAC,OAAO,IAAI,YAAY;QACjE,uBAAuB,EAAE,CAAC,OAAO,IAAI,CAAC,YAAY;QAClD,+BAA+B,EAAE,OAAO,IAAI,YAAY;QACxD,kBAAkB,EAAE,OAAO,IAAI,CAAC,YAAY;KAC7C,EAAE,iEAAiE,CAAC,CAAA;IAErE,MAAM,MAAM,GAAG,UAAU,CAAC;QAC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,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Tubestops from './index';
|
|
3
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
+
declare const componentMeta: ComponentMeta<typeof Tubestops>;
|
|
5
|
+
export declare const _Tubestops: ComponentStory<React.FC<import("./index").Props>>;
|
|
6
|
+
export default componentMeta;
|