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,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Tubestops from './index';
|
|
3
|
+
const componentMeta = {
|
|
4
|
+
title: 'Trepur Components/Other/Atoms/Tubestops',
|
|
5
|
+
component: Tubestops,
|
|
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
|
+
isHorizontal: {
|
|
25
|
+
description: '',
|
|
26
|
+
table: {
|
|
27
|
+
category: ''
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
items: {
|
|
31
|
+
description: '',
|
|
32
|
+
table: {
|
|
33
|
+
category: ''
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
args: {
|
|
38
|
+
isHorizontal: false,
|
|
39
|
+
reverse: false,
|
|
40
|
+
items: [
|
|
41
|
+
{
|
|
42
|
+
title: 'This is a title',
|
|
43
|
+
subtitle: 'This is a subtitle'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
title: 'This is a title',
|
|
47
|
+
subtitle: 'This is a subtitle'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
title: 'This is a title',
|
|
51
|
+
subtitle: 'This is a subtitle'
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
textCenter: true,
|
|
55
|
+
id: '',
|
|
56
|
+
className: ''
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const Template = (args) => React.createElement(Tubestops, Object.assign({}, args));
|
|
60
|
+
export const _Tubestops = Template.bind({});
|
|
61
|
+
export default componentMeta;
|
|
62
|
+
//# sourceMappingURL=Tubestops.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tubestops.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Tubestops/Tubestops.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,SAAS,CAAA;AAG/B,MAAM,aAAa,GAAoC;IACrD,KAAK,EAAE,yCAAyC;IAChD,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE;QACR,EAAE,EA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Props extends Partial<Pick<HTMLElement, 'className' | 'id'>> {
|
|
4
|
+
isHorizontal?: boolean;
|
|
5
|
+
items?: Array<{
|
|
6
|
+
title: string;
|
|
7
|
+
subtitle: string;
|
|
8
|
+
}>;
|
|
9
|
+
reverse?: boolean;
|
|
10
|
+
textCenter?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const Tubestops: React.FC<Props>;
|
|
13
|
+
export default Tubestops;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import './index.css';
|
|
4
|
+
const Tubestops = ({ id, className, isHorizontal = false, items = [], reverse = false, textCenter = false }) => {
|
|
5
|
+
const circle = 'w-4 h-4 rounded-full bg-black z-10';
|
|
6
|
+
const classList = classNames(className, 'w-full list-none');
|
|
7
|
+
const liClasses = classNames({
|
|
8
|
+
'text-center': textCenter,
|
|
9
|
+
'items-center flex-col-reverse justify-between': !reverse && isHorizontal,
|
|
10
|
+
'flex-row none-reverse': !reverse && !isHorizontal,
|
|
11
|
+
'items-center flex-col': reverse && isHorizontal,
|
|
12
|
+
'flex-row-reverse': reverse && !isHorizontal
|
|
13
|
+
}, 'mb-0 status-flow-item relative flex flex-auto flex-row leading-tight');
|
|
14
|
+
const ulClasses = classNames({
|
|
15
|
+
'flex-row none-reverse justify-between': !reverse && isHorizontal,
|
|
16
|
+
'flex-col none-reverse': !reverse && !isHorizontal,
|
|
17
|
+
'flex-row reverse justify-between': reverse && isHorizontal,
|
|
18
|
+
'flex-col reverse': reverse && !isHorizontal
|
|
19
|
+
}, 'tubestop status-flow relative list-none pl-0 flex');
|
|
20
|
+
const padding = classNames({
|
|
21
|
+
'pb-2': !reverse && isHorizontal,
|
|
22
|
+
'pl-4': !reverse && !isHorizontal,
|
|
23
|
+
'pt-2': reverse && isHorizontal,
|
|
24
|
+
'pr-4': reverse && !isHorizontal
|
|
25
|
+
});
|
|
26
|
+
return (React.createElement("div", { id: id, className: classList },
|
|
27
|
+
React.createElement("ul", { className: ulClasses }, items === null || items === void 0 ? void 0 : items.map((item, i) => {
|
|
28
|
+
const a = isHorizontal
|
|
29
|
+
? i === 0
|
|
30
|
+
? ''
|
|
31
|
+
: ''
|
|
32
|
+
: i === 0
|
|
33
|
+
? ''
|
|
34
|
+
: 'my-12';
|
|
35
|
+
return (React.createElement("li", { key: `tubestop_${i + 0}`, className: `${liClasses} ${a}` },
|
|
36
|
+
React.createElement("span", { className: circle }),
|
|
37
|
+
React.createElement("div", { className: padding },
|
|
38
|
+
React.createElement("p", null, `${item === null || item === void 0 ? void 0 : item.title}${i.toString()}`),
|
|
39
|
+
React.createElement("p", null,
|
|
40
|
+
React.createElement("small", null, item === null || item === void 0 ? void 0 : item.subtitle)))));
|
|
41
|
+
}))));
|
|
42
|
+
};
|
|
43
|
+
export default Tubestops;
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Tubestops/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,aAAa,CAAA;AASpB,MAAM,SAAS,GAAoB,CAAC,EAClC,EAAE,EACF,SAAS,EACT,YAAY,GAAG,KAAK,EACpB,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,KAAK,EACf,UAAU,GAAG,KAAK,EACnB,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,oCAAoC,CAAA;IACnD,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAA;IAE3D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC3B,aAAa,EAAE,UAAU;QACzB,+CAA+C,EAAE,CAAC,OAAO,IAAI,YAAY;QACzE,uBAAuB,EAAE,CAAC,OAAO,IAAI,CAAC,YAAY;QAClD,uBAAuB,EAAE,OAAO,IAAI,YAAY;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E,EAAE,CAAK;oBACxC;wBAAG,mCAAQ,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,CAAS,CAAI,CAClC,CACH,CACN,CAAA;QACH,CAAC,CAAC,CACC,CACD,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import UserIcon from './index';
|
|
3
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
+
declare const componentMeta: ComponentMeta<typeof UserIcon>;
|
|
5
|
+
export declare const _UserIcon: ComponentStory<({ id, className, name, description, imageProps }: import("./index").Props) => JSX.Element>;
|
|
6
|
+
export default componentMeta;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import UserIcon from './index';
|
|
3
|
+
const componentMeta = {
|
|
4
|
+
title: 'Trepur Components/Other/Organisms/User Icon',
|
|
5
|
+
component: UserIcon,
|
|
6
|
+
argTypes: {
|
|
7
|
+
id: {
|
|
8
|
+
description: 'Defines the id of the component',
|
|
9
|
+
control: { type: 'text', default: false },
|
|
10
|
+
table: {
|
|
11
|
+
category: 'Id',
|
|
12
|
+
type: { summary: 'string' },
|
|
13
|
+
defaultValue: { summary: 'undefined' }
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
className: {
|
|
17
|
+
description: 'Defines any additional classes for the components',
|
|
18
|
+
control: { type: 'text', default: false },
|
|
19
|
+
table: {
|
|
20
|
+
category: 'Classes',
|
|
21
|
+
type: { summary: 'string' },
|
|
22
|
+
defaultValue: { summary: 'undefined' }
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
name: {
|
|
26
|
+
description: '',
|
|
27
|
+
control: 'text',
|
|
28
|
+
table: {
|
|
29
|
+
category: ''
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
description: {
|
|
33
|
+
description: '',
|
|
34
|
+
control: 'text',
|
|
35
|
+
table: {
|
|
36
|
+
category: ''
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
imageProps: {
|
|
40
|
+
type: { name: 'other', value: 'object' },
|
|
41
|
+
description: 'The props to pass to the image to display on the component',
|
|
42
|
+
table: {
|
|
43
|
+
type: {
|
|
44
|
+
summary: 'object'
|
|
45
|
+
},
|
|
46
|
+
defaultValue: { summary: 'undefined' }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
args: {
|
|
51
|
+
imageProps: {
|
|
52
|
+
title: '',
|
|
53
|
+
altText: '',
|
|
54
|
+
image: ''
|
|
55
|
+
},
|
|
56
|
+
name: 'Someones name',
|
|
57
|
+
description: 'someone info'
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const Template = (args) => React.createElement(UserIcon, Object.assign({}, args));
|
|
61
|
+
export const _UserIcon = Template.bind({});
|
|
62
|
+
export default componentMeta;
|
|
63
|
+
//# sourceMappingURL=UserIcon.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserIcon.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/UserIcon/UserIcon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,SAAS,CAAA;AAG9B,MAAM,aAAa,GAAmC;IACpD,KAAK,EAAE,6CAA6C;IACpD,SAAS,EAAE,QAAQ;IACnB,QAAQ,EAAE;QACR,EAAE,EAAE;YACF,WAAW,EAAE,iCAAiC;YAC9C,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;YACzC,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,SAAS,EAAE;YACT,WAAW,EAAE,mDAAmD;YAChE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;YACzC,KAAK,EAAE;gBACL,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF;QACD,WAAW,EAAE;YACX,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF;QACD,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE;YACxC,WAAW,EAAE,4DAA4D;YACzE,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;KACF;IACD,IAAI,EAAE;QACJ,UAAU,EAAE;YACV,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,EAAE;SACV;QACD,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,cAAc;KAC5B;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,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props as imageProps } from '../Image';
|
|
3
|
+
export interface Props {
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
imageProps?: imageProps;
|
|
9
|
+
}
|
|
10
|
+
declare const UserIcon: ({ id, className, name, description, imageProps }: Props) => JSX.Element;
|
|
11
|
+
export default UserIcon;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import Image from '../Image';
|
|
4
|
+
const UserIcon = ({ id, className, name, description, imageProps }) => {
|
|
5
|
+
const classList = classNames({
|
|
6
|
+
className: className !== undefined
|
|
7
|
+
}, 'group flex items-center');
|
|
8
|
+
imageProps = Object.assign(Object.assign({}, imageProps), { className: classNames(imageProps === null || imageProps === void 0 ? void 0 : imageProps.className, 'shrink-0 h-12 w-12 rounded-full') });
|
|
9
|
+
return (React.createElement("div", { id: id, className: classList },
|
|
10
|
+
React.createElement(Image, Object.assign({}, imageProps)),
|
|
11
|
+
React.createElement("div", { className: 'ltr:ml-3 rtl:mr-3' },
|
|
12
|
+
React.createElement("p", { className: 'text-xs font-medium' }, name),
|
|
13
|
+
React.createElement("p", { className: 'text-xs font-medium ' }, description))));
|
|
14
|
+
};
|
|
15
|
+
export default UserIcon;
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/UserIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAA8B,MAAM,mBAAmB,CAAA;AAS9D,MAAM,QAAQ,GAAG,CAAC,EAChB,EAAE,EACF,SAAS,EACT,IAAI,EACJ,WAAW,EACX,UAAU,EACJ,EAAe,EAAE;IACvB,MAAM,SAAS,GAAG,UAAU,CAAC;QAC3B,SAAS,EAAE,SAAS,KAAK,SAAS;KACnC,EAAE,yBAAyB,CAAC,CAAA;IAE7B,UAAU,mCACL,UAAU,KACb,SAAS,EAAE,UAAU,CAAC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS,EAAE,iCAAiC,CAAC,GAChF,CAAA;IACD,OAAO,CACL,6BAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS;QAC/B,oBAAC,KAAK,oBAAK,UAAU,EAAI;QACzB,6BAAK,SAAS,EAAC,mBAAmB;YAChC,2BAAG,SAAS,EAAC,qBAAqB,IAC/B,IAAI,CACH;YACJ,2BAAG,SAAS,EAAC,sBAAsB,IAChC,WAAW,CACV,CACA,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Video from './index';
|
|
3
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
+
declare const componentMeta: ComponentMeta<typeof Video>;
|
|
5
|
+
export declare const _Video: ComponentStory<({ id, className, autoPlay, muted, poster, mp4File, webmFile, ogvFile, height, width, withControls }: import("./index").Props) => JSX.Element>;
|
|
6
|
+
export default componentMeta;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Video from './index';
|
|
3
|
+
import { idAndClassName } from '../../utils/controls';
|
|
4
|
+
const componentMeta = {
|
|
5
|
+
title: 'Trepur Components/Other/Atoms/Video',
|
|
6
|
+
component: Video,
|
|
7
|
+
argTypes: Object.assign({}, idAndClassName),
|
|
8
|
+
args: {
|
|
9
|
+
withControls: true,
|
|
10
|
+
autoPlay: true,
|
|
11
|
+
muted: true
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const Template = (args) => React.createElement(Video, Object.assign({}, args));
|
|
15
|
+
export const _Video = Template.bind({});
|
|
16
|
+
export default componentMeta;
|
|
17
|
+
//# sourceMappingURL=Video.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Video.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Video/Video.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGhD,MAAM,aAAa,GAAgC;IACjD,KAAK,EAAE,qCAAqC;IAC5C,SAAS,EAAE,KAAK;IAChB,QAAQ,oBACH,cAAc,CAClB;IACD,IAAI,EAAE;QACJ,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;KACZ;CACF,CAAA;AAED,MAAM,QAAQ,GAAiC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,KAAK,oBAAK,IAAI,EAAI,CAAA;AAE5E,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEvC,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface Props {
|
|
3
|
+
id?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
autoPlay?: boolean;
|
|
6
|
+
muted?: boolean;
|
|
7
|
+
poster?: string;
|
|
8
|
+
mp4File?: string;
|
|
9
|
+
webmFile?: string;
|
|
10
|
+
ogvFile?: string;
|
|
11
|
+
height?: string;
|
|
12
|
+
width?: string;
|
|
13
|
+
withControls?: boolean;
|
|
14
|
+
withPoster?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const Video: ({ id, className, autoPlay, muted, poster, mp4File, webmFile, ogvFile, height, width, withControls }: Props) => JSX.Element;
|
|
17
|
+
export default Video;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const Video = ({ id, className, autoPlay, muted, poster, mp4File, webmFile, ogvFile, height, width, withControls }) => {
|
|
3
|
+
return (React.createElement("video", { id: id, className: className, poster: poster, width: width, height: height, controls: withControls, autoPlay: autoPlay, muted: muted },
|
|
4
|
+
React.createElement("source", { src: mp4File, type: 'video/mp4' }),
|
|
5
|
+
webmFile !== null && React.createElement("source", { src: webmFile, type: 'video/webm' }),
|
|
6
|
+
ogvFile !== undefined && React.createElement("source", { src: ogvFile, type: 'video/ogg' })));
|
|
7
|
+
};
|
|
8
|
+
export default Video;
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Video/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAiBzB,MAAM,KAAK,GAAG,CAAC,EACb,EAAE,EACF,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,EACN,OAAO,EACP,QAAQ,EACR,OAAO,EACP,MAAM,EACN,KAAK,EACL,YAAY,EACN,EAAe,EAAE;IACvB,OAAO,CACL,+BACE,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK;QAEZ,gCAAQ,GAAG,EAAE,OAAO,EAAE,IAAI,EAAC,WAAW,GAAG;QACxC,QAAQ,KAAK,IAAI,IAAI,gCAAQ,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAC,YAAY,GAAG;QAChE,OAAO,KAAK,SAAS,IAAI,gCAAQ,GAAG,EAAE,OAAO,EAAE,IAAI,EAAC,WAAW,GAAG,CAC7D,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import Accordion from "./components/Accordion";
|
|
2
|
+
import AlertBar from "./components/AlertBar";
|
|
3
|
+
import Breadcrumbs from "./components/Breadcrumbs";
|
|
4
|
+
import BreadcrumbsBordered from "./components/BreadcrumbsBordered";
|
|
5
|
+
import BreadcrumbsItem from "./components/BreadcrumbsItem";
|
|
6
|
+
import Button from "./components/Button";
|
|
7
|
+
import Card from "./components/Card";
|
|
8
|
+
import CardWithTopImage from "./components/CardWithTopImage";
|
|
9
|
+
import Carousel from "./components/Carousel";
|
|
10
|
+
import ChevronCard from "./components/ChevronCard";
|
|
11
|
+
import Collapsible from "./components/Collapsible";
|
|
12
|
+
import Column from "./components/Column";
|
|
13
|
+
import Container from "./components/Container";
|
|
14
|
+
import Form from "./components/Form";
|
|
15
|
+
import FooterBar from "./components/FooterBar";
|
|
16
|
+
import FyreCard from "./components/FyreCard";
|
|
17
|
+
import Greeting from "./components/Greeting";
|
|
18
|
+
import Icon from "./components/Icon";
|
|
19
|
+
import Image from "./components/Image";
|
|
20
|
+
import ImageLink from "./components/ImageLink";
|
|
21
|
+
import ImageLinkList from "./components/ImageLinkList";
|
|
22
|
+
import InformationIcon from "./components/InformationIcon";
|
|
23
|
+
import Input from "./components/Input";
|
|
24
|
+
import Jumbotron from "./components/Jumbotron";
|
|
25
|
+
import Nav from "./components/Nav";
|
|
26
|
+
import NavItem from "./components/NavItem";
|
|
27
|
+
import NewsCard from "./components/NewsCard";
|
|
28
|
+
import Profile from "./components/Profile";
|
|
29
|
+
import Row from "./components/Row";
|
|
30
|
+
import Search from "./components/Search";
|
|
31
|
+
import SocialBlock from "./components/SocialBlock";
|
|
32
|
+
import StarRating from "./components/StarRating";
|
|
33
|
+
import Testimonial from "./components/Testimonial";
|
|
34
|
+
import TextAndTitle from "./components/TextAndTitle";
|
|
35
|
+
import TextArea from "./components/TextArea";
|
|
36
|
+
import Timeline from "./components/Timeline";
|
|
37
|
+
import UserIcon from "./components/UserIcon";
|
|
38
|
+
import Video from "./components/Video";
|
|
39
|
+
export { Accordion, AlertBar, Breadcrumbs, BreadcrumbsBordered, BreadcrumbsItem, Button, Card, CardWithTopImage, Carousel, ChevronCard, Collapsible, Column, Container, Form, FooterBar, FyreCard, Greeting, Icon, Image, ImageLink, ImageLinkList, InformationIcon, Input, Jumbotron, Nav, NavItem, NewsCard, Profile, Row, Search, SocialBlock, StarRating, Testimonial, TextAndTitle, TextArea, Timeline, UserIcon, Video };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Accordion from './components/Accordion';
|
|
2
|
+
import AlertBar from './components/AlertBar';
|
|
3
|
+
import Breadcrumbs from './components/Breadcrumbs';
|
|
4
|
+
import BreadcrumbsItem from './components/BreadcrumbsItem';
|
|
5
|
+
import BreadcrumbsBordered from './components/BreadcrumbsBordered';
|
|
6
|
+
import Button from './components/Button';
|
|
7
|
+
import Card from './components/Card';
|
|
8
|
+
import CardWithTopImage from './components/CardWithTopImage';
|
|
9
|
+
import Carousel from './components/Carousel';
|
|
10
|
+
import ChevronCard from './components/ChevronCard';
|
|
11
|
+
import Collapsible from './components/Collapsible';
|
|
12
|
+
import Column from './components/Column';
|
|
13
|
+
import Container from './components/Container';
|
|
14
|
+
import Form from './components/Form';
|
|
15
|
+
import FooterBar from './components/FooterBar';
|
|
16
|
+
import FyreCard from './components/FyreCard';
|
|
17
|
+
import Greeting from './components/Greeting';
|
|
18
|
+
import Icon from './components/Icon';
|
|
19
|
+
import Image from './components/Image';
|
|
20
|
+
import ImageLink from './components/ImageLink';
|
|
21
|
+
import ImageLinkList from './components/ImageLinkList';
|
|
22
|
+
import InformationIcon from './components/InformationIcon';
|
|
23
|
+
import Input from './components/Input';
|
|
24
|
+
import Jumbotron from './components/Jumbotron';
|
|
25
|
+
import Nav from './components/Nav';
|
|
26
|
+
import NavItem from './components/NavItem';
|
|
27
|
+
import NewsCard from './components/NewsCard';
|
|
28
|
+
import Profile from './components/Profile';
|
|
29
|
+
import Row from './components/Row';
|
|
30
|
+
import Search from './components/Search';
|
|
31
|
+
import SocialBlock from './components/SocialBlock';
|
|
32
|
+
import StarRating from './components/StarRating';
|
|
33
|
+
import Testimonial from './components/Testimonial';
|
|
34
|
+
import TextAndTitle from './components/TextAndTitle';
|
|
35
|
+
import TextArea from './components/TextArea';
|
|
36
|
+
import Timeline from './components/Timeline';
|
|
37
|
+
// import Tubestops from './components/Tubestops'
|
|
38
|
+
import UserIcon from './components/UserIcon';
|
|
39
|
+
import Video from './components/Video';
|
|
40
|
+
export { Accordion, AlertBar, Breadcrumbs, BreadcrumbsBordered, BreadcrumbsItem, Button, Card, CardWithTopImage, Carousel, ChevronCard, Collapsible, Column, Container, Form, FooterBar, FyreCard, Greeting, Icon, Image, ImageLink, ImageLinkList, InformationIcon, Input, Jumbotron, Nav, NavItem, NewsCard, Profile, Row, Search, SocialBlock, StarRating, Testimonial, TextAndTitle, TextArea, Timeline,
|
|
41
|
+
// Tubestops,
|
|
42
|
+
UserIcon, Video };
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.js"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,wBAAwB,CAAA;AAC9C,OAAO,QAAQ,MAAM,uBAAuB,CAAA;AAC5C,OAAO,WAAW,MAAM,0BAA0B,CAAA;AAClD,OAAO,eAAe,MAAM,8BAA8B,CAAA;AAC1D,OAAO,mBAAmB,MAAM,kCAAkC,CAAA;AAClE,OAAO,MAAM,MAAM,qBAAqB,CAAA;AACxC,OAAO,IAAI,MAAM,mBAAmB,CAAA;AACpC,OAAO,gBAAgB,MAAM,+BAA+B,CAAA;AAC5D,OAAO,QAAQ,MAAM,uBAAuB,CAAA;AAC5C,OAAO,WAAW,MAAM,0BAA0B,CAAA;AAClD,OAAO,WAAW,MAAM,0BAA0B,CAAA;AAClD,OAAO,MAAM,MAAM,qBAAqB,CAAA;AACxC,OAAO,SAAS,MAAM,wBAAwB,CAAA;AAC9C,OAAO,IAAI,MAAM,mBAAmB,CAAA;AACpC,OAAO,SAAS,MAAM,wBAAwB,CAAA;AAC9C,OAAO,QAAQ,MAAM,uBAAuB,CAAA;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AM,EACN,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,QAAQ;AACR,aAAa;AACb,QAAQ,EACR,KAAK,EACN,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Fonts from './index';
|
|
3
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
+
declare const componentMeta: ComponentMeta<typeof Fonts>;
|
|
5
|
+
export declare const _Fonts: ComponentStory<React.FC<import("./index").Props>>;
|
|
6
|
+
export default componentMeta;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Fonts from './index';
|
|
3
|
+
const componentMeta = {
|
|
4
|
+
title: 'Trepur Components/Rupert Bennett/typography/fonts',
|
|
5
|
+
component: Fonts,
|
|
6
|
+
argTypes: {},
|
|
7
|
+
args: {}
|
|
8
|
+
};
|
|
9
|
+
const Template = (args) => React.createElement(Fonts, Object.assign({}, args));
|
|
10
|
+
export const _Fonts = Template.bind({});
|
|
11
|
+
export default componentMeta;
|
|
12
|
+
//# sourceMappingURL=Fonts.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fonts.stories.js","sourceRoot":"","sources":["../../../../src/lib/typography/Fonts.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,MAAM,SAAS,CAAA;AAG3B,MAAM,aAAa,GAAgC;IACjD,KAAK,EAAE,mDAAmD;IAC1D,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;CACT,CAAA;AAED,MAAM,QAAQ,GAAiC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,KAAK,oBAAK,IAAI,EAAI,CAAA;AAE5E,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEvC,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../styles/base.css';
|
|
3
|
+
const Fonts = ({}) => {
|
|
4
|
+
return (React.createElement("div", null,
|
|
5
|
+
React.createElement("p", { className: 'font-regular text-xs' }, "This text is xs"),
|
|
6
|
+
React.createElement("p", { className: 'font-regular text-sm' }, "This text is sm"),
|
|
7
|
+
React.createElement("p", { className: 'font-regular text-md' }, "This text is md"),
|
|
8
|
+
React.createElement("p", { className: 'font-regular text-lg' }, "This text is lg"),
|
|
9
|
+
React.createElement("p", { className: 'font-regular text-xl' }, "This text is xl"),
|
|
10
|
+
React.createElement("p", { className: 'font-regular text-2xl' }, "This text is 2xl"),
|
|
11
|
+
React.createElement("p", { className: 'font-regular text-3xl' }, "This text is 3xl"),
|
|
12
|
+
React.createElement("p", { className: 'font-regular text-4xl' }, "This text is 4xl"),
|
|
13
|
+
React.createElement("p", { className: 'text-md font-thin' }, "This font is thin"),
|
|
14
|
+
React.createElement("p", { className: 'text-md font-extraLight' }, "This font is extra light"),
|
|
15
|
+
React.createElement("p", { className: 'text-md font-light' }, "This font is light"),
|
|
16
|
+
React.createElement("p", { className: 'text-md font-regular' }, "This font is regular"),
|
|
17
|
+
React.createElement("p", { className: 'text-md font-medium' }, "This font is medium"),
|
|
18
|
+
React.createElement("p", { className: 'text-md font-semiBold' }, "This font is semi bold"),
|
|
19
|
+
React.createElement("p", { className: 'text-md font-bold' }, "This font is bold"),
|
|
20
|
+
React.createElement("p", { className: 'text-md font-extraBold' }, "This font is extra bold")));
|
|
21
|
+
};
|
|
22
|
+
export default Fonts;
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/typography/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,oBAAoB,CAAA;AAI3B,MAAM,KAAK,GAAoB,CAAC,EAAS,EAAe,EAAE;IACxD,OAAO,CACL;QACE,2BAAG,SAAS,EAAC,sBAAsB,sBAAoB;QACvD,2BAAG,SAAS,EAAC,sBAAsB,sBAAoB;QACvD,2BAAG,SAAS,EAAC,sBAAsB,sBAAoB;QACvD,2BAAG,SAAS,EAAC,sBAAsB,sBAAoB;QACvD,2BAAG,SAAS,EAAC,sBAAsB,sBAAoB;QACvD,2BAAG,SAAS,EAAC,uBAAuB,uBAAqB;QACzD,2BAAG,SAAS,EAAC,uBAAuB,uBAAqB;QACzD,2BAAG,SAAS,EAAC,uBAAuB,uBAAqB;QACzD,2BAAG,SAAS,EAAC,mBAAmB,wBAAsB;QACtD,2BAAG,SAAS,EAAC,yBAAyB,+BAA6B;QACnE,2BAAG,SAAS,EAAC,oBAAoB,yBAAuB;QACxD,2BAAG,SAAS,EAAC,sBAAsB,2BAAyB;QAC5D,2BAAG,SAAS,EAAC,qBAAqB,0BAAwB;QAC1D,2BAAG,SAAS,EAAC,uBAAuB,6BAA2B;QAC/D,2BAAG,SAAS,EAAC,mBAAmB,wBAAsB;QACtD,2BAAG,SAAS,EAAC,wBAAwB,8BAA4B,CAC7D,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare type Colours = 'primary' | 'secondary' | 'white' | 'black' | 'gold';
|
|
2
|
+
export declare const idAndClassName: {
|
|
3
|
+
id: {
|
|
4
|
+
description: string;
|
|
5
|
+
control: {
|
|
6
|
+
type: string;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
table: {
|
|
10
|
+
category: string;
|
|
11
|
+
type: {
|
|
12
|
+
summary: string;
|
|
13
|
+
};
|
|
14
|
+
defaultValue: {
|
|
15
|
+
summary: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
className: {
|
|
20
|
+
description: string;
|
|
21
|
+
control: {
|
|
22
|
+
type: string;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
table: {
|
|
26
|
+
category: string;
|
|
27
|
+
type: {
|
|
28
|
+
summary: string;
|
|
29
|
+
};
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const idAndClassName = {
|
|
2
|
+
id: {
|
|
3
|
+
description: 'Defines the id of the component',
|
|
4
|
+
control: { type: 'text', default: false },
|
|
5
|
+
table: {
|
|
6
|
+
category: 'Id',
|
|
7
|
+
type: { summary: 'string' },
|
|
8
|
+
defaultValue: { summary: 'undefined' }
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
className: {
|
|
12
|
+
description: 'Defines any additional classes for the component',
|
|
13
|
+
control: { type: 'text', default: false },
|
|
14
|
+
table: {
|
|
15
|
+
category: 'ClassName',
|
|
16
|
+
type: { summary: 'string' },
|
|
17
|
+
defaultValue: { summary: 'undefined' }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=controls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controls.js","sourceRoot":"","sources":["../../../../src/lib/utils/controls.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,EAAE,EAAE;QACF,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;QACzC,KAAK,EAAE;YACL,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;YAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SACvC;KACF;IACD,SAAS,EAAE;QACT,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;QACzC,KAAK,EAAE;YACL,QAAQ,EAAE,WAAW;YACrB,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;YAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SACvC;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import tailwindConfig from '../../../tailwind.config.js';
|
|
2
|
+
// const tokenUnits: string[] = ['em', 'ex', '%', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ch', 'rem', 'vh', 'vw', 'vmin', 'vmax']
|
|
3
|
+
let themeName;
|
|
4
|
+
export const setTheme = (theme) => {
|
|
5
|
+
themeName = theme;
|
|
6
|
+
};
|
|
7
|
+
export const getTheme = () => {
|
|
8
|
+
return themeName;
|
|
9
|
+
};
|
|
10
|
+
const getThemeFromOptions = (themeName) => {
|
|
11
|
+
const themes = tailwindConfig.themes;
|
|
12
|
+
if (themeName == null)
|
|
13
|
+
return tailwindConfig.theme;
|
|
14
|
+
const theme = themes.find((t) => t.name === themeName);
|
|
15
|
+
return theme !== null && theme !== void 0 ? theme : tailwindConfig.theme;
|
|
16
|
+
};
|
|
17
|
+
export function getTwVal(section, property) {
|
|
18
|
+
try {
|
|
19
|
+
const theme = section === 'colors' ? getThemeFromOptions(themeName) : tailwindConfig.theme;
|
|
20
|
+
return theme[section][property];
|
|
21
|
+
}
|
|
22
|
+
catch (e) {
|
|
23
|
+
console.warn(e);
|
|
24
|
+
console.warn(`Unable to get tailwind value ${section}: ${property}`);
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../../src/lib/utils/theme.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,6BAA6B,CAAA;AAExD,8HAA8H;AAC9H,IAAI,SAAiB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sans: string[];
|
|
10
|
+
}
|
|
11
|
+
namespace fontWeight {
|
|
12
|
+
const thin: string;
|
|
13
|
+
const extraLight: string;
|
|
14
|
+
const light: string;
|
|
15
|
+
const regular: string;
|
|
16
|
+
const medium: string;
|
|
17
|
+
const semiBold: string;
|
|
18
|
+
const bold: string;
|
|
19
|
+
const extraBold: string;
|
|
20
|
+
}
|
|
21
|
+
const fontSize: {
|
|
22
|
+
xxs: string;
|
|
23
|
+
xs: string;
|
|
24
|
+
sm: string;
|
|
25
|
+
md: string;
|
|
26
|
+
lg: string;
|
|
27
|
+
xl: string;
|
|
28
|
+
'2xl': string;
|
|
29
|
+
'3xl': string;
|
|
30
|
+
'4xl': string;
|
|
31
|
+
};
|
|
32
|
+
const colors: {
|
|
33
|
+
transparent: string;
|
|
34
|
+
white: string;
|
|
35
|
+
black: string;
|
|
36
|
+
red: string;
|
|
37
|
+
grey: string;
|
|
38
|
+
'light-grey': string;
|
|
39
|
+
'lightest-grey': string;
|
|
40
|
+
'primary-strict': string;
|
|
41
|
+
border: string;
|
|
42
|
+
'border-lightest': string;
|
|
43
|
+
'border-light': string;
|
|
44
|
+
'border-dark': string;
|
|
45
|
+
'error-light': string;
|
|
46
|
+
'success-light': string;
|
|
47
|
+
facebook: string;
|
|
48
|
+
whatsapp: string;
|
|
49
|
+
twitter: string;
|
|
50
|
+
primary: string;
|
|
51
|
+
gold: string;
|
|
52
|
+
secondary: string;
|
|
53
|
+
'rupertbennett-error': string;
|
|
54
|
+
'rupertbennett-warning': string;
|
|
55
|
+
'rupertbennett-success': string;
|
|
56
|
+
'rupertbennett-info-light': string;
|
|
57
|
+
'bootson-error': string;
|
|
58
|
+
'bootson-warning': string;
|
|
59
|
+
'bootson-success': string;
|
|
60
|
+
'bootson-info-light': string;
|
|
61
|
+
linkedin: string;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export const plugins: never[];
|
|
65
|
+
export const themes: never[];
|