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,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.iconProps = exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
require("core-js/modules/es.object.assign.js");
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
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; }
|
|
19
|
-
|
|
20
|
-
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; }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
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
|
-
const iconProps = {
|
|
27
|
-
id: _propTypes.default.string,
|
|
28
|
-
classes: _propTypes.default.string,
|
|
29
|
-
type: _propTypes.default.string,
|
|
30
|
-
size: _propTypes.default.number,
|
|
31
|
-
onClick: _propTypes.default.func,
|
|
32
|
-
style: _propTypes.default.string,
|
|
33
|
-
animation: _propTypes.default.string,
|
|
34
|
-
reverseSpin: _propTypes.default.bool,
|
|
35
|
-
hollow: _propTypes.default.bool,
|
|
36
|
-
colour: _propTypes.default.string,
|
|
37
|
-
bgColour: _propTypes.default.string,
|
|
38
|
-
rounded: _propTypes.default.bool,
|
|
39
|
-
brand: _propTypes.default.bool
|
|
40
|
-
};
|
|
41
|
-
exports.iconProps = iconProps;
|
|
42
|
-
|
|
43
|
-
const Icon = _ref => {
|
|
44
|
-
let {
|
|
45
|
-
iconProps
|
|
46
|
-
} = _ref;
|
|
47
|
-
if (iconProps == undefined) return;
|
|
48
|
-
if ((iconProps === null || iconProps === void 0 ? void 0 : iconProps.size) == undefined) iconProps.size = 1;
|
|
49
|
-
const wrapperClassList = (0, _classnames.default)({
|
|
50
|
-
'w-6 h-6': iconProps.size === 1,
|
|
51
|
-
'w-10 h-10': iconProps.size === 2,
|
|
52
|
-
'w-14 h-14': iconProps.size === 3,
|
|
53
|
-
'w-20 h-20': iconProps.size === 4,
|
|
54
|
-
'w-24 h-24': iconProps.size === 5,
|
|
55
|
-
'w-28 h-28': iconProps.size === 6,
|
|
56
|
-
'w-32 h-32': iconProps.size === 7,
|
|
57
|
-
'w-36 h-36': iconProps.size === 8,
|
|
58
|
-
'w-40 h-40': iconProps.size === 9,
|
|
59
|
-
'w-44 h-44': iconProps.size === 10,
|
|
60
|
-
[iconProps.classes]: iconProps === null || iconProps === void 0 ? void 0 : iconProps.classes,
|
|
61
|
-
[iconProps.colour]: iconProps === null || iconProps === void 0 ? void 0 : iconProps.colour,
|
|
62
|
-
[iconProps.bgColour]: iconProps === null || iconProps === void 0 ? void 0 : iconProps.bgColour,
|
|
63
|
-
'rounded-full': iconProps === null || iconProps === void 0 ? void 0 : iconProps.rounded
|
|
64
|
-
}, 'flex');
|
|
65
|
-
const classList = (0, _classnames.default)({
|
|
66
|
-
'fa-brands': iconProps === null || iconProps === void 0 ? void 0 : iconProps.brand,
|
|
67
|
-
["fa-".concat(iconProps.size, "x")]: iconProps === null || iconProps === void 0 ? void 0 : iconProps.size,
|
|
68
|
-
["fa-".concat(iconProps.animation)]: iconProps === null || iconProps === void 0 ? void 0 : iconProps.animation,
|
|
69
|
-
'fa-spin-reverse': iconProps === null || iconProps === void 0 ? void 0 : iconProps.reverseSpin,
|
|
70
|
-
'fa-regular': iconProps === null || iconProps === void 0 ? void 0 : iconProps.hollow
|
|
71
|
-
}, "fa fa-".concat(iconProps.type, " mx-auto my-auto"));
|
|
72
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, (iconProps === null || iconProps === void 0 ? void 0 : iconProps.id) && {
|
|
73
|
-
id: iconProps.id
|
|
74
|
-
}, {
|
|
75
|
-
className: wrapperClassList
|
|
76
|
-
}, (iconProps === null || iconProps === void 0 ? void 0 : iconProps.onClick) && {
|
|
77
|
-
onClick: iconProps.onClick
|
|
78
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
79
|
-
className: classList,
|
|
80
|
-
style: iconProps === null || iconProps === void 0 ? void 0 : iconProps.style,
|
|
81
|
-
role: "img",
|
|
82
|
-
"aria-hidden": "true",
|
|
83
|
-
"aria-label": iconProps === null || iconProps === void 0 ? void 0 : iconProps.type
|
|
84
|
-
}));
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
Icon.propTypes = {
|
|
88
|
-
iconProps: _propTypes.default.shape(_objectSpread({}, iconProps))
|
|
89
|
-
};
|
|
90
|
-
var _default = Icon;
|
|
91
|
-
exports.default = _default;
|
|
@@ -1,142 +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.imageProps = exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
11
|
-
|
|
12
|
-
require("core-js/modules/es.array.includes.js");
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
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 imageProps = {
|
|
35
|
-
id: _propTypes.default.string,
|
|
36
|
-
wrapperClasses: _propTypes.default.string,
|
|
37
|
-
imageClasses: _propTypes.default.string,
|
|
38
|
-
image: _propTypes.default.string,
|
|
39
|
-
altText: _propTypes.default.string,
|
|
40
|
-
title: _propTypes.default.string,
|
|
41
|
-
rounded: _propTypes.default.bool,
|
|
42
|
-
roundedFull: _propTypes.default.bool,
|
|
43
|
-
height: _propTypes.default.number,
|
|
44
|
-
width: _propTypes.default.number,
|
|
45
|
-
overlayColour: _propTypes.default.string,
|
|
46
|
-
overlayTextColour: _propTypes.default.string,
|
|
47
|
-
overlayOpacity: _propTypes.default.string,
|
|
48
|
-
overlayTextOpacity: _propTypes.default.string,
|
|
49
|
-
overlayText: _propTypes.default.string
|
|
50
|
-
};
|
|
51
|
-
exports.imageProps = imageProps;
|
|
52
|
-
|
|
53
|
-
const Image = _ref => {
|
|
54
|
-
let {
|
|
55
|
-
imageProps
|
|
56
|
-
} = _ref;
|
|
57
|
-
const [isHovering, setIsHovering] = (0, _react.useState)(false);
|
|
58
|
-
const overlayOpacity = imageProps !== null && imageProps !== void 0 && imageProps.overlayOpacity ? imageProps === null || imageProps === void 0 ? void 0 : imageProps.overlayOpacity : 'opacity-100';
|
|
59
|
-
const opacity = isHovering ? overlayOpacity : 'opacity-0';
|
|
60
|
-
const overlayColour = imageProps !== null && imageProps !== void 0 && imageProps.overlayColour ? imageProps === null || imageProps === void 0 ? void 0 : imageProps.overlayColour : 'bg-white';
|
|
61
|
-
const overlayTextColour = imageProps !== null && imageProps !== void 0 && imageProps.overlayTextColour ? imageProps === null || imageProps === void 0 ? void 0 : imageProps.overlayTextColour : 'text-black';
|
|
62
|
-
const widthClassList = (0, _classnames.default)({
|
|
63
|
-
'w-6': imageProps.width === 1,
|
|
64
|
-
'w-10': imageProps.width === 2,
|
|
65
|
-
'w-14': imageProps.width === 3,
|
|
66
|
-
'w-16': imageProps.width === 4,
|
|
67
|
-
'w-20': imageProps.width === 5,
|
|
68
|
-
'w-24': imageProps.width === 6,
|
|
69
|
-
'w-28': imageProps.width === 7,
|
|
70
|
-
'w-32': imageProps.width === 8,
|
|
71
|
-
'w-36': imageProps.width === 9,
|
|
72
|
-
'w-40': imageProps.width === 10,
|
|
73
|
-
'w-44': imageProps.width === 11,
|
|
74
|
-
'w-full': imageProps.width === undefined,
|
|
75
|
-
'w-full': ![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(imageProps.width)
|
|
76
|
-
});
|
|
77
|
-
const heightClassList = (0, _classnames.default)({
|
|
78
|
-
'h-6': imageProps.height === 1,
|
|
79
|
-
'h-10': imageProps.height === 2,
|
|
80
|
-
'h-14': imageProps.height === 3,
|
|
81
|
-
'h-16': imageProps.height === 4,
|
|
82
|
-
'h-20': imageProps.height === 5,
|
|
83
|
-
'h-24': imageProps.height === 6,
|
|
84
|
-
'h-28': imageProps.height === 7,
|
|
85
|
-
'h-32': imageProps.height === 8,
|
|
86
|
-
'h-36': imageProps.height === 9,
|
|
87
|
-
'h-40': imageProps.height === 10,
|
|
88
|
-
'h-44': imageProps.height === 11,
|
|
89
|
-
'h-full': imageProps.height === undefined,
|
|
90
|
-
'h-full': ![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(imageProps.height)
|
|
91
|
-
});
|
|
92
|
-
const classList = (0, _classnames.default)({
|
|
93
|
-
[imageProps === null || imageProps === void 0 ? void 0 : imageProps.wrapperClasses]: imageProps === null || imageProps === void 0 ? void 0 : imageProps.wrapperClasses
|
|
94
|
-
});
|
|
95
|
-
const imageClassList = (0, _classnames.default)({
|
|
96
|
-
[imageProps.imageClasses]: imageProps === null || imageProps === void 0 ? void 0 : imageProps.imageClasses,
|
|
97
|
-
[widthClassList]: true,
|
|
98
|
-
[heightClassList]: true,
|
|
99
|
-
'rounded-2xl': imageProps === null || imageProps === void 0 ? void 0 : imageProps.rounded,
|
|
100
|
-
'rounded-full': imageProps === null || imageProps === void 0 ? void 0 : imageProps.roundedFull
|
|
101
|
-
});
|
|
102
|
-
const overlayClassList = (0, _classnames.default)({
|
|
103
|
-
[widthClassList]: true,
|
|
104
|
-
[heightClassList]: true,
|
|
105
|
-
[opacity]: true,
|
|
106
|
-
[overlayColour]: true
|
|
107
|
-
}, 'absolute z-10 transition-opacity duration-700');
|
|
108
|
-
const overlayTextWrapperClassList = (0, _classnames.default)({
|
|
109
|
-
[widthClassList]: true,
|
|
110
|
-
[heightClassList]: true,
|
|
111
|
-
[opacity]: true
|
|
112
|
-
}, 'flex absolute z-20 transition-opacity duration-700');
|
|
113
|
-
const overlayTextClassList = (0, _classnames.default)({
|
|
114
|
-
[overlayTextColour]: true
|
|
115
|
-
}, 'm-auto text-center');
|
|
116
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
className: classList
|
|
118
|
-
}, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.overlayText) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
119
|
-
className: overlayClassList
|
|
120
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
121
|
-
className: overlayTextWrapperClassList,
|
|
122
|
-
onMouseEnter: () => setIsHovering(true),
|
|
123
|
-
onMouseLeave: () => setIsHovering(false)
|
|
124
|
-
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
125
|
-
className: overlayTextClassList
|
|
126
|
-
}, imageProps.overlayText))), /*#__PURE__*/_react.default.createElement("img", _extends({}, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.id) && {
|
|
127
|
-
id: imageProps === null || imageProps === void 0 ? void 0 : imageProps.id
|
|
128
|
-
}, {
|
|
129
|
-
className: imageClassList,
|
|
130
|
-
src: imageProps === null || imageProps === void 0 ? void 0 : imageProps.image
|
|
131
|
-
}, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText) && {
|
|
132
|
-
alt: imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText
|
|
133
|
-
}, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.title) && {
|
|
134
|
-
title: imageProps === null || imageProps === void 0 ? void 0 : imageProps.title
|
|
135
|
-
})));
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
Image.propTypes = {
|
|
139
|
-
imageProps: _propTypes.default.shape(_objectSpread({}, imageProps))
|
|
140
|
-
};
|
|
141
|
-
var _default = Image;
|
|
142
|
-
exports.default = _default;
|
|
@@ -1,61 +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
|
-
var _Button = _interopRequireDefault(require("../Button"));
|
|
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
|
-
const ImageLink = _ref => {
|
|
21
|
-
let {
|
|
22
|
-
id,
|
|
23
|
-
classes,
|
|
24
|
-
image,
|
|
25
|
-
altText,
|
|
26
|
-
title,
|
|
27
|
-
link,
|
|
28
|
-
rounded,
|
|
29
|
-
openInNewTab,
|
|
30
|
-
buttonProps
|
|
31
|
-
} = _ref;
|
|
32
|
-
const classList = (0, _classnames.default)({
|
|
33
|
-
[classes]: classes
|
|
34
|
-
}, 'cursor-pointer lg:mx-3 md:mx-1 mx-1 lg:mb-5 md:mb-2 mb-2 hover:opacity-50 overflow-hidden text-center');
|
|
35
|
-
const roundedClass = (0, _classnames.default)({
|
|
36
|
-
'rounded-full': rounded
|
|
37
|
-
});
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement("a", _extends({}, id && {
|
|
39
|
-
id: id
|
|
40
|
-
}, {
|
|
41
|
-
href: link
|
|
42
|
-
}, openInNewTab && {
|
|
43
|
-
target: 'blank'
|
|
44
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
45
|
-
className: roundedClass + ' ' + classList + ' relative overflow-hidden'
|
|
46
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
47
|
-
src: image,
|
|
48
|
-
alt: altText,
|
|
49
|
-
className: "object-cover w-full h-full"
|
|
50
|
-
}), title && /*#__PURE__*/_react.default.createElement("h1", {
|
|
51
|
-
className: "absolute bg-black text-white py-2 mt-4 top-0 inset-x-0 text-center"
|
|
52
|
-
}, title), (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.text) && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
53
|
-
buttonProps: {
|
|
54
|
-
classes: 'absolute mx-8 mb-4 bottom-0 inset-x-0 text-center',
|
|
55
|
-
text: buttonProps.text
|
|
56
|
-
}
|
|
57
|
-
})));
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
var _default = ImageLink;
|
|
61
|
-
exports.default = _default;
|
|
@@ -1,45 +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
|
-
var _index = _interopRequireDefault(require("../ImageLink/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
|
-
const ImageLinkList = _ref => {
|
|
21
|
-
let {
|
|
22
|
-
id,
|
|
23
|
-
classes,
|
|
24
|
-
items
|
|
25
|
-
} = _ref;
|
|
26
|
-
const classList = (0, _classnames.default)({
|
|
27
|
-
[classes]: classes
|
|
28
|
-
}, 'grid md:grid-cols-4 sm:grid-cols-2');
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
30
|
-
id: id
|
|
31
|
-
}, {
|
|
32
|
-
className: classList
|
|
33
|
-
}), items && items.map((item, i) => {
|
|
34
|
-
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
35
|
-
key: "image_link_".concat(i + 0),
|
|
36
|
-
altText: "image",
|
|
37
|
-
image: item.image,
|
|
38
|
-
title: item.title,
|
|
39
|
-
ctaText: item.ctaText
|
|
40
|
-
});
|
|
41
|
-
}));
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
var _default = ImageLinkList;
|
|
45
|
-
exports.default = _default;
|
|
@@ -1,120 +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.informationIconProps = exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
require("core-js/modules/es.object.assign.js");
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
|
-
var _Icon = _interopRequireDefault(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 informationIconProps = {
|
|
35
|
-
id: _propTypes.default.string,
|
|
36
|
-
classes: _propTypes.default.string,
|
|
37
|
-
imageClasses: _propTypes.default.string,
|
|
38
|
-
type: _propTypes.default.string,
|
|
39
|
-
size: _propTypes.default.number,
|
|
40
|
-
text: _propTypes.default.string,
|
|
41
|
-
number: _propTypes.default.number,
|
|
42
|
-
bordered: _propTypes.default.bool,
|
|
43
|
-
rounded: _propTypes.default.bool,
|
|
44
|
-
bgColor: _propTypes.default.string,
|
|
45
|
-
textColor: _propTypes.default.string,
|
|
46
|
-
hoverTextColor: _propTypes.default.string,
|
|
47
|
-
hoverBgColor: _propTypes.default.string,
|
|
48
|
-
withAnimation: _propTypes.default.bool
|
|
49
|
-
};
|
|
50
|
-
exports.informationIconProps = informationIconProps;
|
|
51
|
-
|
|
52
|
-
const InformationIcon = _ref => {
|
|
53
|
-
let {
|
|
54
|
-
informationIconProps
|
|
55
|
-
} = _ref;
|
|
56
|
-
let loaded = (0, _react.useRef)(false);
|
|
57
|
-
(0, _react.useEffect)(() => {
|
|
58
|
-
const element = document.getElementById((informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.id) + '_number');
|
|
59
|
-
let observer = new IntersectionObserver((entries, observer) => {
|
|
60
|
-
entries.forEach(entry => {
|
|
61
|
-
if (entry.intersectionRatio >= 0.1 && loaded.current == false) {
|
|
62
|
-
loaded.current = true;
|
|
63
|
-
counterAnimation(document.getElementById((informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.id) + '_number'), 0, informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.number, 3000);
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}, {
|
|
67
|
-
threshold: 1
|
|
68
|
-
});
|
|
69
|
-
(informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.withAnimation) && observer.observe(element);
|
|
70
|
-
}, []);
|
|
71
|
-
if (informationIconProps == undefined) return;
|
|
72
|
-
const wrapperClasses = "h-96 flex items-center text-center \n ease-out duration-300";
|
|
73
|
-
const classList = (0, _classnames.default)({
|
|
74
|
-
[informationIconProps.classes]: informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.classes,
|
|
75
|
-
'border': informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.bordered,
|
|
76
|
-
'rounded-2xl': informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.rounded,
|
|
77
|
-
[informationIconProps.textColor]: informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.textColor,
|
|
78
|
-
[informationIconProps.bgColor]: informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.bgColor,
|
|
79
|
-
'text-black': !(informationIconProps !== null && informationIconProps !== void 0 && informationIconProps.textColor),
|
|
80
|
-
'bg-white': !(informationIconProps !== null && informationIconProps !== void 0 && informationIconProps.bgColor),
|
|
81
|
-
[informationIconProps.hoverTextColor]: informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.hoverTextColor,
|
|
82
|
-
[informationIconProps.hoverBgColor]: informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.hoverBgColor,
|
|
83
|
-
'hover:text-white': !(informationIconProps !== null && informationIconProps !== void 0 && informationIconProps.hoverTextColor),
|
|
84
|
-
'hover:bg-black': !(informationIconProps !== null && informationIconProps !== void 0 && informationIconProps.hoverBgColor)
|
|
85
|
-
}, "flex flex-col justify-center w-full h-full items-center\n ease-out duration-300 text-md lg:text-md hover:text-lg");
|
|
86
|
-
|
|
87
|
-
const counterAnimation = (obj, start, end, duration) => {
|
|
88
|
-
let startTimestamp = null;
|
|
89
|
-
|
|
90
|
-
const step = timestamp => {
|
|
91
|
-
if (!startTimestamp) startTimestamp = timestamp;
|
|
92
|
-
const progress = Math.min((timestamp - startTimestamp) / duration, 1);
|
|
93
|
-
obj.innerHTML = Math.floor(progress * (end - start) + start);
|
|
94
|
-
|
|
95
|
-
if (progress < 1) {
|
|
96
|
-
window.requestAnimationFrame(step);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
window.requestAnimationFrame(step);
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, (informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.id) && {
|
|
104
|
-
id: informationIconProps.id
|
|
105
|
-
}, {
|
|
106
|
-
className: wrapperClasses
|
|
107
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
108
|
-
className: classList
|
|
109
|
-
}, (informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.iconProps) && /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
110
|
-
iconProps: informationIconProps.iconProps
|
|
111
|
-
}), (informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.number) && /*#__PURE__*/_react.default.createElement("p", {
|
|
112
|
-
id: (informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.id) + '_number'
|
|
113
|
-
}, informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.number), /*#__PURE__*/_react.default.createElement("p", null, informationIconProps === null || informationIconProps === void 0 ? void 0 : informationIconProps.text)));
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
InformationIcon.propTypes = {
|
|
117
|
-
informationIconProps: _propTypes.default.shape(_objectSpread({}, informationIconProps))
|
|
118
|
-
};
|
|
119
|
-
var _default = InformationIcon;
|
|
120
|
-
exports.default = _default;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.inputProps = exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
require("core-js/modules/es.object.assign.js");
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
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; }
|
|
19
|
-
|
|
20
|
-
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; }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
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
|
-
const inputProps = {
|
|
27
|
-
id: _propTypes.default.string,
|
|
28
|
-
classes: _propTypes.default.string,
|
|
29
|
-
labelClasses: _propTypes.default.string,
|
|
30
|
-
inputClasses: _propTypes.default.string,
|
|
31
|
-
autoComplete: _propTypes.default.bool,
|
|
32
|
-
disabled: _propTypes.default.bool,
|
|
33
|
-
formId: _propTypes.default.string,
|
|
34
|
-
height: _propTypes.default.string,
|
|
35
|
-
maxLength: _propTypes.default.string,
|
|
36
|
-
minLength: _propTypes.default.string,
|
|
37
|
-
pattern: _propTypes.default.string,
|
|
38
|
-
required: _propTypes.default.bool,
|
|
39
|
-
readOnly: _propTypes.default.bool,
|
|
40
|
-
label: _propTypes.default.string,
|
|
41
|
-
type: _propTypes.default.string,
|
|
42
|
-
name: _propTypes.default.string,
|
|
43
|
-
placeholder: _propTypes.default.string,
|
|
44
|
-
bold: _propTypes.default.bool,
|
|
45
|
-
onChange: _propTypes.default.func,
|
|
46
|
-
onBlur: _propTypes.default.func,
|
|
47
|
-
onFocus: _propTypes.default.func,
|
|
48
|
-
hasValidation: _propTypes.default.bool,
|
|
49
|
-
errors: _propTypes.default.string,
|
|
50
|
-
value: _propTypes.default.string
|
|
51
|
-
};
|
|
52
|
-
exports.inputProps = inputProps;
|
|
53
|
-
|
|
54
|
-
const Input = _ref => {
|
|
55
|
-
let {
|
|
56
|
-
inputProps
|
|
57
|
-
} = _ref;
|
|
58
|
-
if (inputProps == undefined) return;
|
|
59
|
-
const classList = (0, _classnames.default)({
|
|
60
|
-
[inputProps.classes]: inputProps === null || inputProps === void 0 ? void 0 : inputProps.classes
|
|
61
|
-
}, "flex flex-col");
|
|
62
|
-
const labelClassList = (0, _classnames.default)({
|
|
63
|
-
'font-bold': inputProps === null || inputProps === void 0 ? void 0 : inputProps.bold,
|
|
64
|
-
[inputProps.labelClasses]: inputProps === null || inputProps === void 0 ? void 0 : inputProps.labelClasses
|
|
65
|
-
}, "w-auto pb-2");
|
|
66
|
-
const inputClassList = (0, _classnames.default)({
|
|
67
|
-
[inputProps.inputClasses]: inputProps === null || inputProps === void 0 ? void 0 : inputProps.inputClasses
|
|
68
|
-
}, "border px-2 py-2 rounded-md");
|
|
69
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, (inputProps === null || inputProps === void 0 ? void 0 : inputProps.id) && {
|
|
70
|
-
id: inputProps.id
|
|
71
|
-
}, {
|
|
72
|
-
className: classList
|
|
73
|
-
}), (inputProps === null || inputProps === void 0 ? void 0 : inputProps.label) && /*#__PURE__*/_react.default.createElement("label", {
|
|
74
|
-
id: "label-".concat(inputProps === null || inputProps === void 0 ? void 0 : inputProps.id),
|
|
75
|
-
className: labelClassList,
|
|
76
|
-
htmlFor: "input-".concat(inputProps === null || inputProps === void 0 ? void 0 : inputProps.id)
|
|
77
|
-
}, /*#__PURE__*/_react.default.createElement("p", null, inputProps === null || inputProps === void 0 ? void 0 : inputProps.label, (inputProps === null || inputProps === void 0 ? void 0 : inputProps.required) && /*#__PURE__*/_react.default.createElement("span", {
|
|
78
|
-
className: "text-red"
|
|
79
|
-
}, "*"))), /*#__PURE__*/_react.default.createElement("input", {
|
|
80
|
-
id: "input-".concat(inputProps === null || inputProps === void 0 ? void 0 : inputProps.id),
|
|
81
|
-
className: inputClassList,
|
|
82
|
-
autoComplete: inputProps === null || inputProps === void 0 ? void 0 : inputProps.autoComplete,
|
|
83
|
-
disabled: inputProps === null || inputProps === void 0 ? void 0 : inputProps.disabled,
|
|
84
|
-
form: inputProps === null || inputProps === void 0 ? void 0 : inputProps.formId,
|
|
85
|
-
height: inputProps === null || inputProps === void 0 ? void 0 : inputProps.height,
|
|
86
|
-
maxLength: inputProps === null || inputProps === void 0 ? void 0 : inputProps.maxLength,
|
|
87
|
-
minLength: inputProps === null || inputProps === void 0 ? void 0 : inputProps.minLength,
|
|
88
|
-
pattern: inputProps === null || inputProps === void 0 ? void 0 : inputProps.pattern,
|
|
89
|
-
required: inputProps === null || inputProps === void 0 ? void 0 : inputProps.required,
|
|
90
|
-
readOnly: inputProps === null || inputProps === void 0 ? void 0 : inputProps.readOnly,
|
|
91
|
-
type: inputProps === null || inputProps === void 0 ? void 0 : inputProps.type,
|
|
92
|
-
name: inputProps === null || inputProps === void 0 ? void 0 : inputProps.name,
|
|
93
|
-
value: inputProps === null || inputProps === void 0 ? void 0 : inputProps.value,
|
|
94
|
-
placeholder: inputProps === null || inputProps === void 0 ? void 0 : inputProps.placeholder,
|
|
95
|
-
onChange: inputProps === null || inputProps === void 0 ? void 0 : inputProps.onChange,
|
|
96
|
-
onBlur: inputProps === null || inputProps === void 0 ? void 0 : inputProps.onBlur,
|
|
97
|
-
onFocus: inputProps === null || inputProps === void 0 ? void 0 : inputProps.onFocus
|
|
98
|
-
}), (inputProps === null || inputProps === void 0 ? void 0 : inputProps.hasValidation) && /*#__PURE__*/_react.default.createElement("div", {
|
|
99
|
-
id: "".concat(inputProps === null || inputProps === void 0 ? void 0 : inputProps.id, "-errors")
|
|
100
|
-
}, (inputProps === null || inputProps === void 0 ? void 0 : inputProps.errors) && (inputProps === null || inputProps === void 0 ? void 0 : inputProps.errors.map((error, i) => {
|
|
101
|
-
return /*#__PURE__*/_react.default.createElement("p", {
|
|
102
|
-
key: "error_msg_".concat(i + 0),
|
|
103
|
-
className: "text-red text-sm"
|
|
104
|
-
}, error);
|
|
105
|
-
}))));
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
Input.propTypes = {
|
|
109
|
-
inputProps: _propTypes.default.shape(_objectSpread({}, inputProps))
|
|
110
|
-
};
|
|
111
|
-
var _default = Input;
|
|
112
|
-
exports.default = _default;
|
|
@@ -1,39 +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
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
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); }
|
|
17
|
-
|
|
18
|
-
const Jumbotron = _ref => {
|
|
19
|
-
let {
|
|
20
|
-
id,
|
|
21
|
-
classes,
|
|
22
|
-
image,
|
|
23
|
-
altText
|
|
24
|
-
} = _ref;
|
|
25
|
-
const classList = (0, _classnames.default)({
|
|
26
|
-
[classes]: classes
|
|
27
|
-
}, 'w-full');
|
|
28
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
29
|
-
id: id
|
|
30
|
-
}, {
|
|
31
|
-
className: classList
|
|
32
|
-
}), /*#__PURE__*/_react.default.createElement("img", {
|
|
33
|
-
src: image,
|
|
34
|
-
alt: altText
|
|
35
|
-
}));
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
var _default = Jumbotron;
|
|
39
|
-
exports.default = _default;
|