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
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.buttonProps = void 0;
|
|
9
|
-
|
|
10
|
-
require("core-js/modules/es.object.assign.js");
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
|
-
var _Icon = _interopRequireWildcard(require("../Icon"));
|
|
15
|
-
|
|
16
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
|
|
18
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
-
|
|
24
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
|
|
26
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
-
|
|
28
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
-
|
|
30
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
-
|
|
32
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
33
|
-
|
|
34
|
-
const buttonProps = {
|
|
35
|
-
id: _propTypes.default.string,
|
|
36
|
-
classes: _propTypes.default.string,
|
|
37
|
-
onClick: _propTypes.default.func,
|
|
38
|
-
bgColor: _propTypes.default.string,
|
|
39
|
-
textColor: _propTypes.default.string,
|
|
40
|
-
borderColor: _propTypes.default.string,
|
|
41
|
-
hoverBgColor: _propTypes.default.string,
|
|
42
|
-
hoverTextColor: _propTypes.default.string,
|
|
43
|
-
hoverBorderColor: _propTypes.default.string,
|
|
44
|
-
hoverText: _propTypes.default.string,
|
|
45
|
-
type: _propTypes.default.string,
|
|
46
|
-
url: _propTypes.default.string,
|
|
47
|
-
design: _propTypes.default.string,
|
|
48
|
-
bordered: _propTypes.default.bool,
|
|
49
|
-
rounded: _propTypes.default.bool,
|
|
50
|
-
disabled: _propTypes.default.bool,
|
|
51
|
-
isLoading: _propTypes.default.bool,
|
|
52
|
-
target: _propTypes.default.string,
|
|
53
|
-
leftIcon: _propTypes.default.shape(_Icon.iconProps),
|
|
54
|
-
rightIcon: _propTypes.default.shape(_Icon.iconProps),
|
|
55
|
-
centerIcon: _propTypes.default.shape(_Icon.iconProps),
|
|
56
|
-
ariaLabel: _propTypes.default.string
|
|
57
|
-
};
|
|
58
|
-
exports.buttonProps = buttonProps;
|
|
59
|
-
|
|
60
|
-
const Button = _ref => {
|
|
61
|
-
let {
|
|
62
|
-
buttonProps,
|
|
63
|
-
children
|
|
64
|
-
} = _ref;
|
|
65
|
-
if (buttonProps == undefined) return;
|
|
66
|
-
const design = (0, _classnames.default)({
|
|
67
|
-
[buttonProps.design]: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.design,
|
|
68
|
-
'standard': !(buttonProps !== null && buttonProps !== void 0 && buttonProps.design)
|
|
69
|
-
});
|
|
70
|
-
const padding = (0, _classnames.default)({
|
|
71
|
-
'px-1 py-1': (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.type) === 'social',
|
|
72
|
-
'px-3': (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.type) === 'icon',
|
|
73
|
-
'px-8': (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.type) !== 'social' && (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.type) !== 'icon'
|
|
74
|
-
}, 'py-2');
|
|
75
|
-
const borderClassList = (0, _classnames.default)({
|
|
76
|
-
'border-2': buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.bordered
|
|
77
|
-
});
|
|
78
|
-
const roundedClassList = (0, _classnames.default)({
|
|
79
|
-
'rounded-full': buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.rounded,
|
|
80
|
-
'rounded-none': !(buttonProps !== null && buttonProps !== void 0 && buttonProps.rounded)
|
|
81
|
-
});
|
|
82
|
-
const loadingClasses = (0, _classnames.default)({
|
|
83
|
-
'invisible': !(buttonProps !== null && buttonProps !== void 0 && buttonProps.isLoading)
|
|
84
|
-
}, 'absolute left-2/4 top-1/4 -ml-2');
|
|
85
|
-
const colours = (0, _classnames.default)({
|
|
86
|
-
[buttonProps.hoverBgColor]: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.hoverBgColor,
|
|
87
|
-
[buttonProps.hoverTextColor]: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.hoverTextColor,
|
|
88
|
-
[buttonProps.hoverBorderColor]: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.hoverBorderColor,
|
|
89
|
-
[buttonProps.bgColor]: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.bgColor,
|
|
90
|
-
[buttonProps.textColor]: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.textColor,
|
|
91
|
-
[buttonProps.borderColor]: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.borderColor
|
|
92
|
-
});
|
|
93
|
-
const classList = (0, _classnames.default)({
|
|
94
|
-
[padding]: true,
|
|
95
|
-
[colours]: true,
|
|
96
|
-
[buttonProps.classes]: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.classes,
|
|
97
|
-
[borderClassList]: borderClassList && design === 'standard',
|
|
98
|
-
[roundedClassList]: roundedClassList && design === 'standard',
|
|
99
|
-
'rounded-lg transition-backgroundColor duration-500 transform': design === 'standard',
|
|
100
|
-
'btn px-8 border-2': design === 'slide'
|
|
101
|
-
});
|
|
102
|
-
const buttonContentClasses = (0, _classnames.default)({
|
|
103
|
-
'invisible': buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.isLoading
|
|
104
|
-
}, 'flex');
|
|
105
|
-
|
|
106
|
-
const loadingIcon = /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
107
|
-
iconProps: {
|
|
108
|
-
size: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.size,
|
|
109
|
-
type: 'spinner',
|
|
110
|
-
animation: 'pulse'
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
return /*#__PURE__*/_react.default.createElement("a", _extends({}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.target) && {
|
|
115
|
-
target: '_blank'
|
|
116
|
-
}, {
|
|
117
|
-
href: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.url
|
|
118
|
-
}), /*#__PURE__*/_react.default.createElement("button", _extends({}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id) && {
|
|
119
|
-
id: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id
|
|
120
|
-
}, {
|
|
121
|
-
className: classList,
|
|
122
|
-
type: "button",
|
|
123
|
-
"aria-busy": buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.isLoading
|
|
124
|
-
}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.ariaLabel) && {
|
|
125
|
-
"aria-label": buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.ariaLabel
|
|
126
|
-
}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.onClick) && {
|
|
127
|
-
onClick: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.onClick
|
|
128
|
-
}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.disabled) && {
|
|
129
|
-
disabled: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.disabled
|
|
130
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
131
|
-
className: buttonProps !== null && buttonProps !== void 0 && buttonProps.isLoading ? 'invisible' : ''
|
|
132
|
-
}, children), buttonProps.isLoading && /*#__PURE__*/_react.default.createElement("div", {
|
|
133
|
-
className: loadingClasses
|
|
134
|
-
}, loadingIcon)));
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
Button.propTypes = {
|
|
138
|
-
buttonProps: _propTypes.default.shape(_objectSpread({}, buttonProps))
|
|
139
|
-
};
|
|
140
|
-
var _default = Button;
|
|
141
|
-
exports.default = _default;
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.assign.js");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
require("core-js/modules/es.symbol.description.js");
|
|
11
|
-
|
|
12
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
|
-
var _Button = _interopRequireDefault(require("../Button"));
|
|
17
|
-
|
|
18
|
-
var _Video = _interopRequireDefault(require("../Video"));
|
|
19
|
-
|
|
20
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
-
|
|
26
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
-
|
|
28
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
|
-
|
|
30
|
-
const Card = _ref => {
|
|
31
|
-
let {
|
|
32
|
-
id,
|
|
33
|
-
classes,
|
|
34
|
-
title,
|
|
35
|
-
image,
|
|
36
|
-
subTitle,
|
|
37
|
-
description,
|
|
38
|
-
extraText,
|
|
39
|
-
hasCta,
|
|
40
|
-
imageBelowTitle,
|
|
41
|
-
titleLeft,
|
|
42
|
-
titleRight,
|
|
43
|
-
titleBold,
|
|
44
|
-
imageClass,
|
|
45
|
-
subTitleClass,
|
|
46
|
-
extraTextClass,
|
|
47
|
-
descriptionClass,
|
|
48
|
-
altText,
|
|
49
|
-
rounded,
|
|
50
|
-
bordered,
|
|
51
|
-
videoProps,
|
|
52
|
-
onHover,
|
|
53
|
-
iconButtonProps,
|
|
54
|
-
cardButtonProps,
|
|
55
|
-
button2Props
|
|
56
|
-
} = _ref;
|
|
57
|
-
const [showHoverButtons, setShowHoverButtons] = (0, _react.useState)(false);
|
|
58
|
-
let orderClass = imageBelowTitle ? ' order-first ' : '';
|
|
59
|
-
let btnClass = 'w-full p-3 ';
|
|
60
|
-
let border = bordered ? 'border border-grey border-opacity-100 ' : '';
|
|
61
|
-
let cardTitleFont = titleBold ? 'font-bold' : '';
|
|
62
|
-
let cardTitlePosition = titleLeft ? 'text-left ' : titleRight ? 'text-right ' : 'text-center ';
|
|
63
|
-
let roundedImage = rounded ? 'rounded-t-2xl ' : '';
|
|
64
|
-
let roundedCard = rounded ? 'rounded-2xl ' : '';
|
|
65
|
-
let contentWrapperClass = 'px-3 order-3';
|
|
66
|
-
const titleWrapperClass = (0, _classnames.default)({
|
|
67
|
-
[orderClass]: orderClass
|
|
68
|
-
}, 'pt-3');
|
|
69
|
-
const cardTitleClasses = (0, _classnames.default)({
|
|
70
|
-
[cardTitleFont]: cardTitleFont,
|
|
71
|
-
[cardTitlePosition]: true
|
|
72
|
-
}, 'font-medium text-md text-grey');
|
|
73
|
-
const cardSubTitleClassList = (0, _classnames.default)({
|
|
74
|
-
[subTitleClass]: subTitleClass
|
|
75
|
-
}, 'font-light text-sm text-grey');
|
|
76
|
-
const cardDescriptionClassList = (0, _classnames.default)({
|
|
77
|
-
[descriptionClass]: descriptionClass
|
|
78
|
-
}, 'font-extraLight text-xs text-light-grey');
|
|
79
|
-
const classList = (0, _classnames.default)({
|
|
80
|
-
[border]: border,
|
|
81
|
-
[roundedCard]: roundedCard,
|
|
82
|
-
[classes]: classes
|
|
83
|
-
}, 'flex flex-col');
|
|
84
|
-
const imageClassList = (0, _classnames.default)({
|
|
85
|
-
[roundedImage]: !imageBelowTitle,
|
|
86
|
-
[imageClass]: imageClass
|
|
87
|
-
}, 'w-full object-cover h-full');
|
|
88
|
-
const videoClassList = (0, _classnames.default)({
|
|
89
|
-
[roundedImage]: !imageBelowTitle,
|
|
90
|
-
[videoProps === null || videoProps === void 0 ? void 0 : videoProps.videoClasses]: videoProps === null || videoProps === void 0 ? void 0 : videoProps.videoClasses
|
|
91
|
-
}, 'w-full object-cover h-full');
|
|
92
|
-
const cardExtraTextClassList = (0, _classnames.default)({
|
|
93
|
-
[extraTextClass]: extraTextClass,
|
|
94
|
-
'pb-4': !hasCta
|
|
95
|
-
}, 'w-full object-cover h-full font-extraLight text-xs text-light-grey');
|
|
96
|
-
const imageWrapperClassList = (0, _classnames.default)({
|
|
97
|
-
'order-2': imageBelowTitle,
|
|
98
|
-
["".concat(roundedImage, " order-1")]: !imageBelowTitle
|
|
99
|
-
}, 'h-64 overflow-hidden object-cover');
|
|
100
|
-
|
|
101
|
-
const toggleHover = isHovering => {
|
|
102
|
-
onHover && isHovering ? setShowHoverButtons(true) : setShowHoverButtons(false);
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
106
|
-
id: id
|
|
107
|
-
}, {
|
|
108
|
-
className: classList,
|
|
109
|
-
onMouseEnter: () => toggleHover(true),
|
|
110
|
-
onMouseLeave: () => toggleHover(false)
|
|
111
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
112
|
-
className: "card-content flex flex-1 flex-col"
|
|
113
|
-
}, videoProps !== null && videoProps !== void 0 && videoProps.mp4File || videoProps !== null && videoProps !== void 0 && videoProps.webmFile || videoProps !== null && videoProps !== void 0 && videoProps.ogvFile ? /*#__PURE__*/_react.default.createElement("div", {
|
|
114
|
-
className: imageWrapperClassList
|
|
115
|
-
}, /*#__PURE__*/_react.default.createElement(_Video.default, {
|
|
116
|
-
videoProps: videoProps
|
|
117
|
-
})) : image && /*#__PURE__*/_react.default.createElement("div", {
|
|
118
|
-
className: imageWrapperClassList
|
|
119
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
120
|
-
className: imageClassList,
|
|
121
|
-
src: image,
|
|
122
|
-
alt: altText
|
|
123
|
-
})), !showHoverButtons ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
124
|
-
className: imageBelowTitle ? 'order-1' : 'order-3'
|
|
125
|
-
}, title && /*#__PURE__*/_react.default.createElement("div", {
|
|
126
|
-
className: titleWrapperClass
|
|
127
|
-
}, /*#__PURE__*/_react.default.createElement("h3", {
|
|
128
|
-
className: cardTitleClasses
|
|
129
|
-
}, title))), /*#__PURE__*/_react.default.createElement("div", {
|
|
130
|
-
className: contentWrapperClass
|
|
131
|
-
}, subTitle && /*#__PURE__*/_react.default.createElement("h4", {
|
|
132
|
-
className: cardSubTitleClassList
|
|
133
|
-
}, subTitle), description && /*#__PURE__*/_react.default.createElement("p", {
|
|
134
|
-
className: cardDescriptionClassList
|
|
135
|
-
}, description), extraText && /*#__PURE__*/_react.default.createElement("p", {
|
|
136
|
-
className: cardExtraTextClassList
|
|
137
|
-
}, extraText))) : /*#__PURE__*/_react.default.createElement("div", {
|
|
138
|
-
className: "flex p-2 order-last h-24"
|
|
139
|
-
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
140
|
-
buttonProps: iconButtonProps
|
|
141
|
-
}, iconButtonProps.children), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
142
|
-
buttonProps: button2Props
|
|
143
|
-
}, button2Props.children))), cardButtonProps && /*#__PURE__*/_react.default.createElement("div", {
|
|
144
|
-
className: btnClass
|
|
145
|
-
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
146
|
-
buttonProps: cardButtonProps
|
|
147
|
-
}, cardButtonProps.children)));
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
var _default = Card;
|
|
151
|
-
exports.default = _default;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.assign.js");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _index = _interopRequireDefault(require("../Image/index"));
|
|
13
|
-
|
|
14
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
|
-
|
|
20
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
-
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
|
-
|
|
24
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
-
|
|
26
|
-
const CardWithTopImage = _ref => {
|
|
27
|
-
var _imageProps, _imageProps2;
|
|
28
|
-
|
|
29
|
-
let {
|
|
30
|
-
id,
|
|
31
|
-
contentId,
|
|
32
|
-
classes,
|
|
33
|
-
contentClasses,
|
|
34
|
-
children,
|
|
35
|
-
imageProps
|
|
36
|
-
} = _ref;
|
|
37
|
-
const wrapperClassList = (0, _classnames.default)({
|
|
38
|
-
[(_imageProps = imageProps) === null || _imageProps === void 0 ? void 0 : _imageProps.wrapperClasses]: (_imageProps2 = imageProps) === null || _imageProps2 === void 0 ? void 0 : _imageProps2.wrapperClasses
|
|
39
|
-
}, 'mx-auto max-w-max bg-white p-4');
|
|
40
|
-
const contentClassList = (0, _classnames.default)({
|
|
41
|
-
[contentClasses]: contentClasses
|
|
42
|
-
}, 'pt-12 px-4 h-auto pb-16 -mt-12 bg-white');
|
|
43
|
-
imageProps = _objectSpread(_objectSpread({}, imageProps), {}, {
|
|
44
|
-
wrapperClasses: wrapperClassList
|
|
45
|
-
});
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
47
|
-
style: {
|
|
48
|
-
'filter': 'drop-shadow(0 4px 8px rgb(154, 154, 154))'
|
|
49
|
-
}
|
|
50
|
-
}, id && {
|
|
51
|
-
id: id
|
|
52
|
-
}, {
|
|
53
|
-
className: classes
|
|
54
|
-
}), /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
55
|
-
imageProps: imageProps
|
|
56
|
-
}), /*#__PURE__*/_react.default.createElement("div", _extends({}, contentId && {
|
|
57
|
-
id: contentId + '_content'
|
|
58
|
-
}, {
|
|
59
|
-
className: contentClassList
|
|
60
|
-
}), children));
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
var _default = CardWithTopImage;
|
|
64
|
-
exports.default = _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/components/Carousel/index.css"],"names":[],"mappings":"AAAA;EACE,mCAAmC;AACrC","file":"index.css","sourcesContent":[".arrow {\n -webkit-transform: translateY(-50%);\n}"]}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.assign.js");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
|
-
var _react2 = require("keen-slider/react");
|
|
15
|
-
|
|
16
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
26
|
-
//https://keen-slider.io/docs#usage-in-react
|
|
27
|
-
const Carousel = _ref => {
|
|
28
|
-
var _instanceRef$current3, _instanceRef$current4, _instanceRef$current5, _instanceRef$current6, _instanceRef$current7, _instanceRef$current8, _instanceRef$current9, _instanceRef$current10;
|
|
29
|
-
|
|
30
|
-
let {
|
|
31
|
-
id,
|
|
32
|
-
classes,
|
|
33
|
-
breakpoints,
|
|
34
|
-
defaultAnimation,
|
|
35
|
-
//disabled,
|
|
36
|
-
drag,
|
|
37
|
-
dragSpeed,
|
|
38
|
-
initial,
|
|
39
|
-
loop,
|
|
40
|
-
mode,
|
|
41
|
-
range,
|
|
42
|
-
renderMode,
|
|
43
|
-
rtl,
|
|
44
|
-
rubberband,
|
|
45
|
-
selector,
|
|
46
|
-
slides,
|
|
47
|
-
vertical,
|
|
48
|
-
animationStarted,
|
|
49
|
-
animationStopped,
|
|
50
|
-
animationEnded,
|
|
51
|
-
created,
|
|
52
|
-
destroyed,
|
|
53
|
-
detailsChanged,
|
|
54
|
-
dragged,
|
|
55
|
-
dragStarted,
|
|
56
|
-
dragChecked,
|
|
57
|
-
dragEnded,
|
|
58
|
-
beforeOptionsChanged,
|
|
59
|
-
optionsChanged,
|
|
60
|
-
slideChanged,
|
|
61
|
-
updated,
|
|
62
|
-
slidesToShow,
|
|
63
|
-
spacing,
|
|
64
|
-
number,
|
|
65
|
-
origin,
|
|
66
|
-
arrows,
|
|
67
|
-
dots
|
|
68
|
-
} = _ref;
|
|
69
|
-
const classList = classes;
|
|
70
|
-
const dotClasses = "w-4 h-4 cursor-pointer focus:".concat(dots === null || dots === void 0 ? void 0 : dots.activeColours, " rounded-full mx-1 ");
|
|
71
|
-
const [currentSlide, setCurrentSlide] = (0, _react.useState)(0);
|
|
72
|
-
const [loaded, setLoaded] = (0, _react.useState)(false);
|
|
73
|
-
const [sliderRef, instanceRef] = (0, _react2.useKeenSlider)({
|
|
74
|
-
initial: initial,
|
|
75
|
-
breakpoints: breakpoints,
|
|
76
|
-
defaultAnimation: defaultAnimation,
|
|
77
|
-
//disabled: disabled,
|
|
78
|
-
drag: drag,
|
|
79
|
-
dragSpeed: dragSpeed,
|
|
80
|
-
initial: initial,
|
|
81
|
-
loop: loop,
|
|
82
|
-
mode: mode,
|
|
83
|
-
range: range,
|
|
84
|
-
renderMode: renderMode,
|
|
85
|
-
rtl: rtl,
|
|
86
|
-
rubberband: rubberband,
|
|
87
|
-
// selector: selector,
|
|
88
|
-
vertical: vertical,
|
|
89
|
-
|
|
90
|
-
slideChanged(slider) {
|
|
91
|
-
setCurrentSlide(slider.track.details.rel);
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
created() {
|
|
95
|
-
setLoaded(true);
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
animationStarted: animationStarted,
|
|
99
|
-
animationStopped: animationStopped,
|
|
100
|
-
animationEnded: animationEnded,
|
|
101
|
-
// created: created,
|
|
102
|
-
destroyed: destroyed,
|
|
103
|
-
detailsChanged: detailsChanged,
|
|
104
|
-
dragged: dragged,
|
|
105
|
-
dragStarted: dragStarted,
|
|
106
|
-
dragChecked: dragChecked,
|
|
107
|
-
dragEnded: dragEnded,
|
|
108
|
-
beforeOptionsChanged: beforeOptionsChanged,
|
|
109
|
-
optionsChanged: optionsChanged,
|
|
110
|
-
// slideChanged: slideChanged,
|
|
111
|
-
updated: updated,
|
|
112
|
-
slides: {
|
|
113
|
-
perView: slidesToShow,
|
|
114
|
-
spacing: spacing,
|
|
115
|
-
origin: origin,
|
|
116
|
-
number: number
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
120
|
-
id: id
|
|
121
|
-
}, {
|
|
122
|
-
className: "relative navigation-wrapper ".concat(classList)
|
|
123
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
124
|
-
ref: sliderRef,
|
|
125
|
-
className: "keen-slider"
|
|
126
|
-
}, slides && slides), (arrows === null || arrows === void 0 ? void 0 : arrows.visible) && loaded && instanceRef.current && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Arrow, {
|
|
127
|
-
left: true,
|
|
128
|
-
onClick: e => {
|
|
129
|
-
var _instanceRef$current;
|
|
130
|
-
|
|
131
|
-
return e.stopPropagation() || ((_instanceRef$current = instanceRef.current) === null || _instanceRef$current === void 0 ? void 0 : _instanceRef$current.prev());
|
|
132
|
-
},
|
|
133
|
-
disabled: currentSlide === 0,
|
|
134
|
-
arrows: arrows
|
|
135
|
-
}), /*#__PURE__*/_react.default.createElement(Arrow, {
|
|
136
|
-
onClick: e => {
|
|
137
|
-
var _instanceRef$current2;
|
|
138
|
-
|
|
139
|
-
return e.stopPropagation() || ((_instanceRef$current2 = instanceRef.current) === null || _instanceRef$current2 === void 0 ? void 0 : _instanceRef$current2.next());
|
|
140
|
-
},
|
|
141
|
-
disabled: currentSlide === (instanceRef === null || instanceRef === void 0 ? void 0 : (_instanceRef$current3 = instanceRef.current) === null || _instanceRef$current3 === void 0 ? void 0 : (_instanceRef$current4 = _instanceRef$current3.track) === null || _instanceRef$current4 === void 0 ? void 0 : (_instanceRef$current5 = _instanceRef$current4.details) === null || _instanceRef$current5 === void 0 ? void 0 : (_instanceRef$current6 = _instanceRef$current5.slides) === null || _instanceRef$current6 === void 0 ? void 0 : _instanceRef$current6.length) - 1,
|
|
142
|
-
arrows: arrows
|
|
143
|
-
}))), (dots === null || dots === void 0 ? void 0 : dots.visible) && loaded && instanceRef.current && /*#__PURE__*/_react.default.createElement("div", {
|
|
144
|
-
className: "flex py-4 justify-center"
|
|
145
|
-
}, [...Array(instanceRef === null || instanceRef === void 0 ? void 0 : (_instanceRef$current7 = instanceRef.current) === null || _instanceRef$current7 === void 0 ? void 0 : (_instanceRef$current8 = _instanceRef$current7.track) === null || _instanceRef$current8 === void 0 ? void 0 : (_instanceRef$current9 = _instanceRef$current8.details) === null || _instanceRef$current9 === void 0 ? void 0 : (_instanceRef$current10 = _instanceRef$current9.slides) === null || _instanceRef$current10 === void 0 ? void 0 : _instanceRef$current10.length).keys()].map(idx => {
|
|
146
|
-
return /*#__PURE__*/_react.default.createElement("button", {
|
|
147
|
-
key: idx,
|
|
148
|
-
onClick: () => {
|
|
149
|
-
var _instanceRef$current11;
|
|
150
|
-
|
|
151
|
-
(_instanceRef$current11 = instanceRef.current) === null || _instanceRef$current11 === void 0 ? void 0 : _instanceRef$current11.moveToIdx(idx);
|
|
152
|
-
},
|
|
153
|
-
"aria-label": "".concat(id, "_item_").concat(idx),
|
|
154
|
-
className: dotClasses + (currentSlide === idx ? " active ".concat(dots === null || dots === void 0 ? void 0 : dots.activeColours) : " ".concat(dots === null || dots === void 0 ? void 0 : dots.colours))
|
|
155
|
-
});
|
|
156
|
-
})));
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
function Arrow(props) {
|
|
160
|
-
var _props$arrows, _props$arrows2, _props$arrows3, _props$arrows4;
|
|
161
|
-
|
|
162
|
-
const arrowClasses = (0, _classnames.default)({
|
|
163
|
-
'arrow--left left-1.5': props.left,
|
|
164
|
-
'arrow--right left-auto right-1.5': !props.left,
|
|
165
|
-
[props === null || props === void 0 ? void 0 : (_props$arrows = props.arrows) === null || _props$arrows === void 0 ? void 0 : _props$arrows.colours]: (props === null || props === void 0 ? void 0 : (_props$arrows2 = props.arrows) === null || _props$arrows2 === void 0 ? void 0 : _props$arrows2.colours) && !props.disabled,
|
|
166
|
-
[props === null || props === void 0 ? void 0 : (_props$arrows3 = props.arrows) === null || _props$arrows3 === void 0 ? void 0 : _props$arrows3.disabledColours]: (props === null || props === void 0 ? void 0 : (_props$arrows4 = props.arrows) === null || _props$arrows4 === void 0 ? void 0 : _props$arrows4.disabledColours) && props.disabled,
|
|
167
|
-
'arrow--disabled': props.disabled
|
|
168
|
-
}, 'arrow w-12 translate-y-2/4 h-12 absolute cursor-pointer top-1/2');
|
|
169
|
-
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
170
|
-
style: {
|
|
171
|
-
'WebkitTransform': 'translateY(-50%)'
|
|
172
|
-
},
|
|
173
|
-
onClick: props === null || props === void 0 ? void 0 : props.onClick,
|
|
174
|
-
className: "".concat(arrowClasses),
|
|
175
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
176
|
-
viewBox: "0 0 24 24"
|
|
177
|
-
}, (props === null || props === void 0 ? void 0 : props.left) && /*#__PURE__*/_react.default.createElement("path", {
|
|
178
|
-
d: "M16.67 0l2.83 2.829-9.339 9.175 9.339 9.167-2.83 2.829-12.17-11.996z"
|
|
179
|
-
}), !(props !== null && props !== void 0 && props.left) && /*#__PURE__*/_react.default.createElement("path", {
|
|
180
|
-
d: "M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"
|
|
181
|
-
}));
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
var _default = Carousel;
|
|
185
|
-
exports.default = _default;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
require("core-js/modules/es.object.assign.js");
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
-
|
|
16
|
-
const ChevronCard = _ref => {
|
|
17
|
-
let {
|
|
18
|
-
id,
|
|
19
|
-
classes
|
|
20
|
-
} = _ref;
|
|
21
|
-
let classList = 'flex border-l border-t border-b h-20 w-32 z-10 bg-white ';
|
|
22
|
-
classList += classes ? classes : '';
|
|
23
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
24
|
-
id: id
|
|
25
|
-
}, {
|
|
26
|
-
className: 'flex'
|
|
27
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
28
|
-
className: 'border-l border-t border-b h-20 w-32 z-10 bg-white'
|
|
29
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
30
|
-
id: "chevronLeft",
|
|
31
|
-
className: 'border h-14 w-14 -ml-7 mt-3 rotate-45'
|
|
32
|
-
})), /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
33
|
-
id: id
|
|
34
|
-
}, {
|
|
35
|
-
className: "flex-col my-8"
|
|
36
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
37
|
-
className: 'border-l border-t border-r h-32 w-20 z-20 bg-white'
|
|
38
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
39
|
-
id: "chevronLeft",
|
|
40
|
-
className: 'border h-14 w-14 -mt-7 ml-3 rotate-45 z-0'
|
|
41
|
-
})), /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
42
|
-
id: id
|
|
43
|
-
}, {
|
|
44
|
-
className: "flex-col my-16"
|
|
45
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
46
|
-
className: 'border h-14 w-14 -mb-7 ml-3 rotate-45 z-0'
|
|
47
|
-
}), /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
48
|
-
id: id
|
|
49
|
-
}, {
|
|
50
|
-
className: 'border-l border-b border-r h-32 w-20 z-20 bg-white'
|
|
51
|
-
}))), /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
52
|
-
id: id
|
|
53
|
-
}, {
|
|
54
|
-
className: "flex"
|
|
55
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
-
className: 'border h-14 w-14 -mr-7 mt-3 rotate-45'
|
|
57
|
-
}), /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
58
|
-
id: id
|
|
59
|
-
}, {
|
|
60
|
-
className: 'border-r border-t border-b h-20 w-32 z-10 bg-white'
|
|
61
|
-
}))));
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var _default = ChevronCard;
|
|
65
|
-
exports.default = _default;
|