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,283 +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.textAndTitleProps = exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
require("core-js/modules/es.parse-float.js");
|
|
11
|
-
|
|
12
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
13
|
-
|
|
14
|
-
require("core-js/modules/es.regexp.exec.js");
|
|
15
|
-
|
|
16
|
-
require("core-js/modules/es.string.split.js");
|
|
17
|
-
|
|
18
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
-
|
|
20
|
-
var _Input = _interopRequireDefault(require("../Input"));
|
|
21
|
-
|
|
22
|
-
var _Button = _interopRequireDefault(require("../Button"));
|
|
23
|
-
|
|
24
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
25
|
-
|
|
26
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
27
|
-
|
|
28
|
-
var _TextArea = _interopRequireDefault(require("../TextArea"));
|
|
29
|
-
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
-
|
|
32
|
-
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); }
|
|
33
|
-
|
|
34
|
-
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; }
|
|
35
|
-
|
|
36
|
-
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); }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
42
|
-
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; }
|
|
43
|
-
|
|
44
|
-
const textAndTitleProps = {
|
|
45
|
-
id: _propTypes.default.string,
|
|
46
|
-
classes: _propTypes.default.string,
|
|
47
|
-
titleClasses: _propTypes.default.string,
|
|
48
|
-
editTitleClasses: _propTypes.default.string,
|
|
49
|
-
editTextClasses: _propTypes.default.string,
|
|
50
|
-
editInputClasses: _propTypes.default.string,
|
|
51
|
-
textClasses: _propTypes.default.string,
|
|
52
|
-
textLineOne: _propTypes.default.string,
|
|
53
|
-
textLineTwo: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
54
|
-
textLineThree: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
55
|
-
title: _propTypes.default.string,
|
|
56
|
-
titleBold: _propTypes.default.bool,
|
|
57
|
-
titleBgColor: _propTypes.default.string,
|
|
58
|
-
textBgColor: _propTypes.default.string,
|
|
59
|
-
textColor: _propTypes.default.string,
|
|
60
|
-
titleColor: _propTypes.default.string,
|
|
61
|
-
textCenter: _propTypes.default.bool,
|
|
62
|
-
titleCenter: _propTypes.default.bool,
|
|
63
|
-
withLiveUpdates: _propTypes.default.bool,
|
|
64
|
-
onSave: _propTypes.default.func,
|
|
65
|
-
saveButtonProps: _propTypes.default.object,
|
|
66
|
-
cancelButtonProps: _propTypes.default.object,
|
|
67
|
-
isHorizontal: _propTypes.default.bool
|
|
68
|
-
};
|
|
69
|
-
exports.textAndTitleProps = textAndTitleProps;
|
|
70
|
-
|
|
71
|
-
const TextAndTitle = _ref => {
|
|
72
|
-
var _textAndTitleProps$sa, _textAndTitleProps$sa2, _textAndTitleProps$sa3, _textAndTitleProps$sa4, _textAndTitleProps$sa5, _textAndTitleProps$sa6, _textAndTitleProps$sa7, _textAndTitleProps$sa8, _textAndTitleProps$ca, _textAndTitleProps$ca2, _textAndTitleProps$ca3, _textAndTitleProps$ca4, _textAndTitleProps$ca5, _textAndTitleProps$ca6, _textAndTitleProps$ca7, _textAndTitleProps$ca8;
|
|
73
|
-
|
|
74
|
-
let {
|
|
75
|
-
textAndTitleProps,
|
|
76
|
-
children
|
|
77
|
-
} = _ref;
|
|
78
|
-
|
|
79
|
-
const getLineHeight = id => {
|
|
80
|
-
var _document$getElementB;
|
|
81
|
-
|
|
82
|
-
const divHeight = (_document$getElementB = document.getElementById(id)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.offsetHeight;
|
|
83
|
-
const lineHeight = parseFloat(getComputedStyle(document.getElementById(id)).fontSize);
|
|
84
|
-
const pt = parseFloat(getComputedStyle(document.getElementById(id)).paddingTop);
|
|
85
|
-
const pb = parseFloat(getComputedStyle(document.getElementById(id)).paddingBottom);
|
|
86
|
-
const mt = parseFloat(getComputedStyle(document.getElementById(id)).marginTop);
|
|
87
|
-
const mb = parseFloat(getComputedStyle(document.getElementById(id)).marginBottom);
|
|
88
|
-
const bw = parseFloat(getComputedStyle(document.getElementById(id)).borderWidth);
|
|
89
|
-
const height = divHeight - mt - mb - pt - pb - bw * 2;
|
|
90
|
-
|
|
91
|
-
if (textAndTitleProps.isHorizontal) {
|
|
92
|
-
return Math.floor(height / lineHeight) - 1;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return Math.floor(height / lineHeight);
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
const defaultComponentData = {
|
|
99
|
-
title: {
|
|
100
|
-
text: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.title
|
|
101
|
-
},
|
|
102
|
-
textLineOne: {
|
|
103
|
-
text: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textLineOne
|
|
104
|
-
},
|
|
105
|
-
textLineTwo: {
|
|
106
|
-
text: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textLineTwo
|
|
107
|
-
},
|
|
108
|
-
textLineThree: {
|
|
109
|
-
text: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textLineThree
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
const [isInEditingMode, setIsInEditingMode] = (0, _react.useState)(false);
|
|
113
|
-
const [componentData, setComponentData] = (0, _react.useState)(defaultComponentData);
|
|
114
|
-
if (textAndTitleProps == undefined) return;
|
|
115
|
-
const borderClasses = 'border border-transparent';
|
|
116
|
-
const classList = (0, _classnames.default)({
|
|
117
|
-
[textAndTitleProps.classes]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.classes
|
|
118
|
-
});
|
|
119
|
-
const titleClassList = (0, _classnames.default)({
|
|
120
|
-
'font-bold': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.titleBold,
|
|
121
|
-
'text-center': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.titleCenter,
|
|
122
|
-
[textAndTitleProps.titleClasses]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.titleClasses,
|
|
123
|
-
[textAndTitleProps.titleBgColor]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.titleBgColor,
|
|
124
|
-
'bg-white': !(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.titleBgColor),
|
|
125
|
-
[textAndTitleProps.titleColor]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.titleColor,
|
|
126
|
-
'text-black': !(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.titleColor),
|
|
127
|
-
[borderClasses]: (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && !isInEditingMode
|
|
128
|
-
}, 'text-md break-words');
|
|
129
|
-
const textClassList = (0, _classnames.default)({
|
|
130
|
-
'text-center': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textCenter,
|
|
131
|
-
[textAndTitleProps.textClasses]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textClasses,
|
|
132
|
-
[textAndTitleProps.textBgColor]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textBgColor,
|
|
133
|
-
'bg-white': !(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.textBgColor),
|
|
134
|
-
[textAndTitleProps.textColor]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textColor,
|
|
135
|
-
'text-black': !(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.textColor),
|
|
136
|
-
[borderClasses]: (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && !isInEditingMode
|
|
137
|
-
}, 'pt-2 mt-2');
|
|
138
|
-
|
|
139
|
-
const toggleEditState = () => {
|
|
140
|
-
(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && setIsInEditingMode(!isInEditingMode);
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
const handleButtonSave = () => {
|
|
144
|
-
const arr = [];
|
|
145
|
-
arr.push({
|
|
146
|
-
key: 'title',
|
|
147
|
-
value: componentData.title.text
|
|
148
|
-
});
|
|
149
|
-
arr.push({
|
|
150
|
-
key: 'textLineOne',
|
|
151
|
-
value: componentData.textLineOne.text
|
|
152
|
-
});
|
|
153
|
-
arr.push({
|
|
154
|
-
key: 'textLineTwo',
|
|
155
|
-
value: componentData.textLineTwo.text
|
|
156
|
-
});
|
|
157
|
-
arr.push({
|
|
158
|
-
key: 'textLineThree',
|
|
159
|
-
value: componentData.textLineThree.text
|
|
160
|
-
});
|
|
161
|
-
toggleEditState();
|
|
162
|
-
textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.onSave(arr, textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.id);
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
const handleButtonCancel = () => {
|
|
166
|
-
toggleEditState();
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
const handleChange = e => {
|
|
170
|
-
let id = e.target.id;
|
|
171
|
-
id = id.split('-')[id.split('-').length - 1];
|
|
172
|
-
setComponentData(_objectSpread(_objectSpread({}, componentData), {}, {
|
|
173
|
-
[id]: {
|
|
174
|
-
text: e.target.value
|
|
175
|
-
}
|
|
176
|
-
}));
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
const wrapperClassList = (0, _classnames.default)({
|
|
180
|
-
'flex flex-wrap justify-center md:items-center': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal,
|
|
181
|
-
'hover:border-black hover:border-dashed': (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && !isInEditingMode
|
|
182
|
-
}, 'border-2 border-transparent');
|
|
183
|
-
const titleWrapperClassList = (0, _classnames.default)({
|
|
184
|
-
'md:w-1/2 md:text-center md:px-8': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
|
|
185
|
-
});
|
|
186
|
-
const textWrapperClassList = (0, _classnames.default)({
|
|
187
|
-
'md:w-1/2 md:text-center md:py-8 md:px-8': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
|
|
188
|
-
});
|
|
189
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.id) && {
|
|
190
|
-
id: textAndTitleProps.id
|
|
191
|
-
}, {
|
|
192
|
-
className: classList
|
|
193
|
-
}), textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.withLiveUpdates && isInEditingMode ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
194
|
-
className: wrapperClassList
|
|
195
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
196
|
-
className: titleWrapperClassList
|
|
197
|
-
}, componentData.title.text ? /*#__PURE__*/_react.default.createElement(_Input.default, {
|
|
198
|
-
inputProps: {
|
|
199
|
-
id: 'title',
|
|
200
|
-
classes: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editTitleClasses,
|
|
201
|
-
inputClasses: "".concat(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editInputClasses, " ").concat(textClassList),
|
|
202
|
-
autoFocus: true,
|
|
203
|
-
value: componentData.title.text,
|
|
204
|
-
onChange: e => handleChange(e),
|
|
205
|
-
type: "text"
|
|
206
|
-
}
|
|
207
|
-
}) : /*#__PURE__*/_react.default.createElement("div", null, children)), /*#__PURE__*/_react.default.createElement("div", {
|
|
208
|
-
className: textWrapperClassList
|
|
209
|
-
}, /*#__PURE__*/_react.default.createElement(_TextArea.default, {
|
|
210
|
-
textAreaProps: {
|
|
211
|
-
id: 'textLineOne',
|
|
212
|
-
classes: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editTextClasses,
|
|
213
|
-
textAreaClasses: "".concat(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editInputClasses, " ").concat(titleClassList, " ").concat(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.isHorizontal ? 'text-center' : ''),
|
|
214
|
-
rows: getLineHeight('textLineOne'),
|
|
215
|
-
onChange: e => handleChange(e)
|
|
216
|
-
}
|
|
217
|
-
}, componentData.textLineOne.text), /*#__PURE__*/_react.default.createElement(_TextArea.default, {
|
|
218
|
-
textAreaProps: {
|
|
219
|
-
id: 'textLineTwo',
|
|
220
|
-
classes: "".concat(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editTextClasses),
|
|
221
|
-
textAreaClasses: "".concat(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editInputClasses, " ").concat(textClassList, " ").concat(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.isHorizontal ? 'text-center' : ''),
|
|
222
|
-
rows: getLineHeight('textLineTwo'),
|
|
223
|
-
onChange: e => handleChange(e)
|
|
224
|
-
}
|
|
225
|
-
}, componentData.textLineTwo.text), /*#__PURE__*/_react.default.createElement(_TextArea.default, {
|
|
226
|
-
textAreaProps: {
|
|
227
|
-
id: 'textLineThree',
|
|
228
|
-
classes: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editTextClasses,
|
|
229
|
-
textAreaClasses: "".concat(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editInputClasses, " ").concat(textClassList, " ").concat(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.isHorizontal ? 'text-center' : ''),
|
|
230
|
-
rows: getLineHeight('textLineThree'),
|
|
231
|
-
onChange: e => handleChange(e)
|
|
232
|
-
}
|
|
233
|
-
}, componentData.textLineThree.text))), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
234
|
-
buttonProps: {
|
|
235
|
-
classes: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa === void 0 ? void 0 : _textAndTitleProps$sa.classes,
|
|
236
|
-
onClick: handleButtonSave,
|
|
237
|
-
bgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa2 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa2 === void 0 ? void 0 : _textAndTitleProps$sa2.bgColor,
|
|
238
|
-
borderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa3 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa3 === void 0 ? void 0 : _textAndTitleProps$sa3.borderColor,
|
|
239
|
-
textColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa4 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa4 === void 0 ? void 0 : _textAndTitleProps$sa4.textColor,
|
|
240
|
-
hoverTextColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa5 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa5 === void 0 ? void 0 : _textAndTitleProps$sa5.hoverTextColor,
|
|
241
|
-
hoverBorderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa6 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa6 === void 0 ? void 0 : _textAndTitleProps$sa6.hoverBorderColor,
|
|
242
|
-
hoverBgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa7 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa7 === void 0 ? void 0 : _textAndTitleProps$sa7.hoverBgColor
|
|
243
|
-
}
|
|
244
|
-
}, textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa8 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa8 === void 0 ? void 0 : _textAndTitleProps$sa8.text), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
245
|
-
buttonProps: {
|
|
246
|
-
classes: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca === void 0 ? void 0 : _textAndTitleProps$ca.classes,
|
|
247
|
-
onClick: handleButtonCancel,
|
|
248
|
-
bgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca2 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca2 === void 0 ? void 0 : _textAndTitleProps$ca2.bgColor,
|
|
249
|
-
borderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca3 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca3 === void 0 ? void 0 : _textAndTitleProps$ca3.borderColor,
|
|
250
|
-
textColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca4 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca4 === void 0 ? void 0 : _textAndTitleProps$ca4.textColor,
|
|
251
|
-
hoverTextColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca5 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca5 === void 0 ? void 0 : _textAndTitleProps$ca5.hoverTextColor,
|
|
252
|
-
hoverBorderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca6 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca6 === void 0 ? void 0 : _textAndTitleProps$ca6.hoverBorderColor,
|
|
253
|
-
hoverBgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca7 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca7 === void 0 ? void 0 : _textAndTitleProps$ca7.hoverBgColor
|
|
254
|
-
}
|
|
255
|
-
}, textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca8 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca8 === void 0 ? void 0 : _textAndTitleProps$ca8.text)) : /*#__PURE__*/_react.default.createElement("div", {
|
|
256
|
-
className: wrapperClassList,
|
|
257
|
-
onClick: toggleEditState
|
|
258
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
259
|
-
className: titleWrapperClassList
|
|
260
|
-
}, componentData.title.text ? /*#__PURE__*/_react.default.createElement("h1", {
|
|
261
|
-
className: titleClassList
|
|
262
|
-
}, componentData.title.text) : /*#__PURE__*/_react.default.createElement("div", null, children)), /*#__PURE__*/_react.default.createElement("div", {
|
|
263
|
-
className: textWrapperClassList
|
|
264
|
-
}, !componentData.title.text ? /*#__PURE__*/_react.default.createElement("h1", {
|
|
265
|
-
id: "textLineOne",
|
|
266
|
-
className: titleClassList
|
|
267
|
-
}, componentData.textLineOne.text) : /*#__PURE__*/_react.default.createElement("p", {
|
|
268
|
-
id: "textLineOne",
|
|
269
|
-
className: textClassList
|
|
270
|
-
}, componentData.textLineOne.text), /*#__PURE__*/_react.default.createElement("div", {
|
|
271
|
-
id: "textLineTwo",
|
|
272
|
-
className: textClassList
|
|
273
|
-
}, componentData.textLineTwo.text), /*#__PURE__*/_react.default.createElement("div", {
|
|
274
|
-
id: "textLineThree",
|
|
275
|
-
className: textClassList
|
|
276
|
-
}, componentData.textLineThree.text))));
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
TextAndTitle.propTypes = {
|
|
280
|
-
textAndTitleProps: _propTypes.default.shape(_objectSpread({}, textAndTitleProps))
|
|
281
|
-
};
|
|
282
|
-
var _default = TextAndTitle;
|
|
283
|
-
exports.default = _default;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.textAreaProps = 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 textAreaProps = {
|
|
27
|
-
id: _propTypes.default.string,
|
|
28
|
-
classes: _propTypes.default.string,
|
|
29
|
-
labelClasses: _propTypes.default.string,
|
|
30
|
-
textAreaClasses: _propTypes.default.string,
|
|
31
|
-
label: _propTypes.default.string,
|
|
32
|
-
placeholder: _propTypes.default.string,
|
|
33
|
-
bold: _propTypes.default.bool,
|
|
34
|
-
name: _propTypes.default.string,
|
|
35
|
-
disabled: _propTypes.default.bool,
|
|
36
|
-
rows: _propTypes.default.number,
|
|
37
|
-
cols: _propTypes.default.number,
|
|
38
|
-
autoFocus: _propTypes.default.bool,
|
|
39
|
-
formId: _propTypes.default.string,
|
|
40
|
-
maxLength: _propTypes.default.string,
|
|
41
|
-
readOnly: _propTypes.default.string,
|
|
42
|
-
required: _propTypes.default.bool,
|
|
43
|
-
onBlur: _propTypes.default.func,
|
|
44
|
-
onFocus: _propTypes.default.func,
|
|
45
|
-
onChange: _propTypes.default.func,
|
|
46
|
-
withPadding: _propTypes.default.bool
|
|
47
|
-
};
|
|
48
|
-
exports.textAreaProps = textAreaProps;
|
|
49
|
-
|
|
50
|
-
const TextArea = _ref => {
|
|
51
|
-
let {
|
|
52
|
-
textAreaProps,
|
|
53
|
-
children
|
|
54
|
-
} = _ref;
|
|
55
|
-
const classList = (0, _classnames.default)({
|
|
56
|
-
[textAreaProps.classes]: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.classes
|
|
57
|
-
}, 'flex flex-col');
|
|
58
|
-
const labelClassList = (0, _classnames.default)({
|
|
59
|
-
'font-bold': textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.bold,
|
|
60
|
-
[textAreaProps.labelClasses]: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.labelClasses
|
|
61
|
-
}, 'w-auto pb-2');
|
|
62
|
-
const textAreaClassList = (0, _classnames.default)({
|
|
63
|
-
[textAreaProps.textAreaClasses]: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.textAreaClasses,
|
|
64
|
-
'p-2': textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.withPadding
|
|
65
|
-
}, 'border rounded-md');
|
|
66
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, (textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.id) && {
|
|
67
|
-
id: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.id
|
|
68
|
-
}, {
|
|
69
|
-
className: classList
|
|
70
|
-
}), (textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.label) && /*#__PURE__*/_react.default.createElement("label", {
|
|
71
|
-
id: "label-".concat(textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.id),
|
|
72
|
-
className: labelClassList,
|
|
73
|
-
htmlFor: "text-area-".concat(textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.id)
|
|
74
|
-
}, textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.label), /*#__PURE__*/_react.default.createElement("textarea", {
|
|
75
|
-
id: "text-area-".concat(textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.id),
|
|
76
|
-
className: textAreaClassList,
|
|
77
|
-
autoFocus: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.autoFocus,
|
|
78
|
-
form: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.formId,
|
|
79
|
-
maxLength: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.maxLength,
|
|
80
|
-
readOnly: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.readOnly,
|
|
81
|
-
required: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.required,
|
|
82
|
-
disabled: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.disabled,
|
|
83
|
-
rows: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.rows,
|
|
84
|
-
cols: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.cols,
|
|
85
|
-
name: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.name,
|
|
86
|
-
placeholder: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.placeholder,
|
|
87
|
-
onChange: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.onChange,
|
|
88
|
-
onFocus: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.onFocus,
|
|
89
|
-
onBlur: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.onBlur
|
|
90
|
-
}, children));
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
TextArea.propTypes = {
|
|
94
|
-
textAreaProps: _propTypes.default.shape(_objectSpread({}, textAreaProps))
|
|
95
|
-
};
|
|
96
|
-
var _default = TextArea;
|
|
97
|
-
exports.default = _default;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/* Vertical */
|
|
2
|
-
/* #circle.vertical:before {
|
|
3
|
-
position: absolute;
|
|
4
|
-
display: block;
|
|
5
|
-
border-left: 1px solid #31a3dd;
|
|
6
|
-
content: "";
|
|
7
|
-
height: 50%;
|
|
8
|
-
top: 0%;
|
|
9
|
-
left: 49.9%;
|
|
10
|
-
z-index: -1;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
#circle.vertical:after {
|
|
14
|
-
position: absolute;
|
|
15
|
-
display: block;
|
|
16
|
-
border-left: 1px solid #31a3dd;
|
|
17
|
-
content: "";
|
|
18
|
-
height: 50%;
|
|
19
|
-
bottom: 0%;
|
|
20
|
-
left: 49.9%;
|
|
21
|
-
z-index: -1;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
#first-circle.vertical:after {
|
|
25
|
-
position: absolute;
|
|
26
|
-
display: block;
|
|
27
|
-
border-left: 1px solid #31a3dd;
|
|
28
|
-
content: "";
|
|
29
|
-
height: 50%;
|
|
30
|
-
bottom: 0%;
|
|
31
|
-
left: 49.9%;
|
|
32
|
-
z-index: -1;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
#last-circle.vertical:before {
|
|
36
|
-
position: absolute;
|
|
37
|
-
display: block;
|
|
38
|
-
border-left: 1px solid #31a3dd;
|
|
39
|
-
content: "";
|
|
40
|
-
height: 50%;
|
|
41
|
-
top: 0%;
|
|
42
|
-
left: 49.9%;
|
|
43
|
-
z-index: -1;
|
|
44
|
-
} */
|
|
45
|
-
|
|
46
|
-
/* V - collapse*/
|
|
47
|
-
/* #circle.vertical.collapse:before {
|
|
48
|
-
position: absolute;
|
|
49
|
-
display: block;
|
|
50
|
-
border-left: 1px solid #31a3dd;
|
|
51
|
-
content: "";
|
|
52
|
-
height: 50%;
|
|
53
|
-
top: 0%;
|
|
54
|
-
left: 8.2%;
|
|
55
|
-
z-index: -1;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
#circle.vertical.collapse:after {
|
|
59
|
-
position: absolute;
|
|
60
|
-
display: block;
|
|
61
|
-
border-left: 1px solid #31a3dd;
|
|
62
|
-
content: "";
|
|
63
|
-
height: 50%;
|
|
64
|
-
bottom: 0%;
|
|
65
|
-
left: 8.2%;
|
|
66
|
-
z-index: -1;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
#first-circle.vertical.collapse:after {
|
|
70
|
-
position: absolute;
|
|
71
|
-
display: block;
|
|
72
|
-
border-left: 1px solid #31a3dd;
|
|
73
|
-
content: "";
|
|
74
|
-
height: 50%;
|
|
75
|
-
bottom: 0%;
|
|
76
|
-
left: 8.2%;
|
|
77
|
-
z-index: -1;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
#last-circle.vertical.collapse:before {
|
|
81
|
-
position: absolute;
|
|
82
|
-
display: block;
|
|
83
|
-
border-left: 1px solid #31a3dd;
|
|
84
|
-
content: "";
|
|
85
|
-
height: 50%;
|
|
86
|
-
top: 0%;
|
|
87
|
-
left: 8.2%;
|
|
88
|
-
z-index: -1;
|
|
89
|
-
} */
|
|
90
|
-
/* Horizontal */
|
|
91
|
-
/* #circle.horizontal:before {
|
|
92
|
-
position: absolute;
|
|
93
|
-
display: block;
|
|
94
|
-
border-top: 1px solid #31a3dd;
|
|
95
|
-
content: "";
|
|
96
|
-
width: 70%;
|
|
97
|
-
top: 50%;
|
|
98
|
-
left: -8%;
|
|
99
|
-
z-index: -1;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
#circle.horizontal:after {
|
|
103
|
-
position: absolute;
|
|
104
|
-
display: block;
|
|
105
|
-
border-top: 1px solid #31a3dd;
|
|
106
|
-
content: "";
|
|
107
|
-
width: 70%;
|
|
108
|
-
top: 50%;
|
|
109
|
-
right: -12%;
|
|
110
|
-
z-index: -1;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
#first-circle.horizontal:after {
|
|
114
|
-
position: absolute;
|
|
115
|
-
display: block;
|
|
116
|
-
border-top: 1px solid #31a3dd;
|
|
117
|
-
content: "";
|
|
118
|
-
width: 60%;
|
|
119
|
-
top: 50%;
|
|
120
|
-
right: -12%;
|
|
121
|
-
z-index: -1;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
#last-circle.horizontal:before {
|
|
125
|
-
position: absolute;
|
|
126
|
-
display: block;
|
|
127
|
-
border-top: 1px solid #31a3dd;
|
|
128
|
-
content: "";
|
|
129
|
-
width: 55%;
|
|
130
|
-
top: 50%;
|
|
131
|
-
left: -8%;
|
|
132
|
-
z-index: -1;
|
|
133
|
-
} */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/components/Timeline/index.css"],"names":[],"mappings":"AAAA,aAAa;AACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;;AAEH,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAe;AACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG","file":"index.css","sourcesContent":["/* Vertical */\n/* #circle.vertical:before {\n position: absolute;\n display: block;\n border-left: 1px solid #31a3dd;\n content: \"\";\n height: 50%;\n top: 0%;\n left: 49.9%;\n z-index: -1;\n}\n\n#circle.vertical:after {\n position: absolute;\n display: block;\n border-left: 1px solid #31a3dd;\n content: \"\";\n height: 50%;\n bottom: 0%;\n left: 49.9%;\n z-index: -1;\n}\n\n#first-circle.vertical:after {\n position: absolute;\n display: block;\n border-left: 1px solid #31a3dd;\n content: \"\";\n height: 50%;\n bottom: 0%;\n left: 49.9%;\n z-index: -1;\n}\n\n#last-circle.vertical:before {\n position: absolute;\n display: block;\n border-left: 1px solid #31a3dd;\n content: \"\";\n height: 50%;\n top: 0%;\n left: 49.9%;\n z-index: -1;\n} */\n\n/* V - collapse*/\n/* #circle.vertical.collapse:before {\n position: absolute;\n display: block;\n border-left: 1px solid #31a3dd;\n content: \"\";\n height: 50%;\n top: 0%;\n left: 8.2%;\n z-index: -1;\n}\n\n#circle.vertical.collapse:after {\n position: absolute;\n display: block;\n border-left: 1px solid #31a3dd;\n content: \"\";\n height: 50%;\n bottom: 0%;\n left: 8.2%;\n z-index: -1;\n}\n\n#first-circle.vertical.collapse:after {\n position: absolute;\n display: block;\n border-left: 1px solid #31a3dd;\n content: \"\";\n height: 50%;\n bottom: 0%;\n left: 8.2%;\n z-index: -1;\n}\n\n#last-circle.vertical.collapse:before {\n position: absolute;\n display: block;\n border-left: 1px solid #31a3dd;\n content: \"\";\n height: 50%;\n top: 0%;\n left: 8.2%;\n z-index: -1;\n} */\n/* Horizontal */\n/* #circle.horizontal:before {\n position: absolute;\n display: block;\n border-top: 1px solid #31a3dd;\n content: \"\";\n width: 70%;\n top: 50%;\n left: -8%;\n z-index: -1;\n}\n\n#circle.horizontal:after {\n position: absolute;\n display: block;\n border-top: 1px solid #31a3dd;\n content: \"\";\n width: 70%;\n top: 50%;\n right: -12%;\n z-index: -1;\n}\n\n#first-circle.horizontal:after {\n position: absolute;\n display: block;\n border-top: 1px solid #31a3dd;\n content: \"\";\n width: 60%;\n top: 50%;\n right: -12%;\n z-index: -1;\n}\n\n#last-circle.horizontal:before {\n position: absolute;\n display: block;\n border-top: 1px solid #31a3dd;\n content: \"\";\n width: 55%;\n top: 50%;\n left: -8%;\n z-index: -1;\n} */\n"]}
|