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.
Files changed (319) hide show
  1. package/dist/src/lib/components/Accordion/Accordion.stories.d.ts +6 -0
  2. package/dist/src/lib/components/Accordion/Accordion.stories.js +80 -0
  3. package/dist/src/lib/components/Accordion/Accordion.stories.js.map +1 -0
  4. package/dist/src/lib/components/Accordion/index.d.ts +8 -0
  5. package/dist/src/lib/components/Accordion/index.js +9 -0
  6. package/dist/src/lib/components/Accordion/index.js.map +1 -0
  7. package/dist/src/lib/components/AlertBar/AlertBar.stories.d.ts +6 -0
  8. package/dist/src/lib/components/AlertBar/AlertBar.stories.js +91 -0
  9. package/dist/src/lib/components/AlertBar/AlertBar.stories.js.map +1 -0
  10. package/dist/src/lib/components/AlertBar/index.d.ts +16 -0
  11. package/dist/src/lib/components/AlertBar/index.js +64 -0
  12. package/dist/src/lib/components/AlertBar/index.js.map +1 -0
  13. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +6 -0
  14. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js +56 -0
  15. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js.map +1 -0
  16. package/dist/src/lib/components/Breadcrumbs/index.d.ts +11 -0
  17. package/dist/src/lib/components/Breadcrumbs/index.js +20 -0
  18. package/dist/src/lib/components/Breadcrumbs/index.js.map +1 -0
  19. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.d.ts +6 -0
  20. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +45 -0
  21. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js.map +1 -0
  22. package/dist/src/lib/components/BreadcrumbsBordered/index.d.ts +9 -0
  23. package/dist/src/lib/components/BreadcrumbsBordered/index.js +18 -0
  24. package/dist/src/lib/components/BreadcrumbsBordered/index.js.map +1 -0
  25. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.d.ts +6 -0
  26. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js +50 -0
  27. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js.map +1 -0
  28. package/dist/src/lib/components/BreadcrumbsItem/index.d.ts +12 -0
  29. package/dist/src/lib/components/BreadcrumbsItem/index.js +57 -0
  30. package/dist/src/lib/components/BreadcrumbsItem/index.js.map +1 -0
  31. package/dist/src/lib/components/Button/button.stories.d.ts +6 -0
  32. package/dist/src/lib/components/Button/button.stories.js +132 -0
  33. package/dist/src/lib/components/Button/button.stories.js.map +1 -0
  34. package/dist/src/lib/components/Button/index.d.ts +17 -0
  35. package/dist/src/lib/components/Button/index.js +32 -0
  36. package/dist/src/lib/components/Button/index.js.map +1 -0
  37. package/dist/src/lib/components/Card/Card.stories.d.ts +8 -0
  38. package/dist/src/lib/components/Card/Card.stories.js +124 -0
  39. package/dist/src/lib/components/Card/Card.stories.js.map +1 -0
  40. package/dist/src/lib/components/Card/index.d.ts +31 -0
  41. package/dist/src/lib/components/Card/index.js +66 -0
  42. package/dist/src/lib/components/Card/index.js.map +1 -0
  43. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.d.ts +6 -0
  44. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js +40 -0
  45. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js.map +1 -0
  46. package/dist/src/lib/components/CardWithTopImage/index.d.ts +10 -0
  47. package/dist/src/lib/components/CardWithTopImage/index.js +15 -0
  48. package/dist/src/lib/components/CardWithTopImage/index.js.map +1 -0
  49. package/dist/src/lib/components/Carousel/Carousel.stories.d.ts +6 -0
  50. package/dist/src/lib/components/Carousel/Carousel.stories.js +297 -0
  51. package/dist/src/lib/components/Carousel/Carousel.stories.js.map +1 -0
  52. package/dist/src/lib/components/Carousel/index.d.ts +59 -0
  53. package/dist/src/lib/components/Carousel/index.js +122 -0
  54. package/dist/src/lib/components/Carousel/index.js.map +1 -0
  55. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.d.ts +6 -0
  56. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js +14 -0
  57. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js.map +1 -0
  58. package/dist/src/lib/components/ChevronCard/index.d.ts +7 -0
  59. package/dist/src/lib/components/ChevronCard/index.js +20 -0
  60. package/dist/src/lib/components/ChevronCard/index.js.map +1 -0
  61. package/dist/src/lib/components/Collapsible/Collapsible.stories.d.ts +6 -0
  62. package/dist/src/lib/components/Collapsible/Collapsible.stories.js +66 -0
  63. package/dist/src/lib/components/Collapsible/Collapsible.stories.js.map +1 -0
  64. package/dist/src/lib/components/Collapsible/index.d.ts +16 -0
  65. package/dist/src/lib/components/Collapsible/index.js +67 -0
  66. package/dist/src/lib/components/Collapsible/index.js.map +1 -0
  67. package/dist/src/lib/components/Column/Column.stories.d.ts +6 -0
  68. package/dist/src/lib/components/Column/Column.stories.js +64 -0
  69. package/dist/src/lib/components/Column/Column.stories.js.map +1 -0
  70. package/dist/src/lib/components/Column/index.d.ts +12 -0
  71. package/dist/src/lib/components/Column/index.js +83 -0
  72. package/dist/src/lib/components/Column/index.js.map +1 -0
  73. package/dist/src/lib/components/Container/Container.stories.d.ts +6 -0
  74. package/dist/src/lib/components/Container/Container.stories.js +30 -0
  75. package/dist/src/lib/components/Container/Container.stories.js.map +1 -0
  76. package/dist/src/lib/components/Container/index.d.ts +9 -0
  77. package/dist/src/lib/components/Container/index.js +8 -0
  78. package/dist/src/lib/components/Container/index.js.map +1 -0
  79. package/dist/src/lib/components/FooterBar/footerBar.stories.d.ts +6 -0
  80. package/dist/src/lib/components/FooterBar/footerBar.stories.js +48 -0
  81. package/dist/src/lib/components/FooterBar/footerBar.stories.js.map +1 -0
  82. package/dist/src/lib/components/FooterBar/index.d.ts +11 -0
  83. package/dist/src/lib/components/FooterBar/index.js +15 -0
  84. package/dist/src/lib/components/FooterBar/index.js.map +1 -0
  85. package/dist/src/lib/components/Form/Form.stories.d.ts +6 -0
  86. package/dist/src/lib/components/Form/Form.stories.js +82 -0
  87. package/dist/src/lib/components/Form/Form.stories.js.map +1 -0
  88. package/dist/src/lib/components/Form/index.d.ts +16 -0
  89. package/dist/src/lib/components/Form/index.js +19 -0
  90. package/dist/src/lib/components/Form/index.js.map +1 -0
  91. package/dist/src/lib/components/FyreCard/FyreCard.stories.d.ts +6 -0
  92. package/dist/src/lib/components/FyreCard/FyreCard.stories.js +22 -0
  93. package/dist/src/lib/components/FyreCard/FyreCard.stories.js.map +1 -0
  94. package/dist/src/lib/components/FyreCard/index.d.ts +13 -0
  95. package/dist/src/lib/components/FyreCard/index.js +17 -0
  96. package/dist/src/lib/components/FyreCard/index.js.map +1 -0
  97. package/dist/src/lib/components/Greeting/Greeting.stories.d.ts +6 -0
  98. package/dist/src/lib/components/Greeting/Greeting.stories.js +33 -0
  99. package/dist/src/lib/components/Greeting/Greeting.stories.js.map +1 -0
  100. package/dist/src/lib/components/Greeting/index.d.ts +10 -0
  101. package/dist/src/lib/components/Greeting/index.js +23 -0
  102. package/dist/src/lib/components/Greeting/index.js.map +1 -0
  103. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +6 -0
  104. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js +46 -0
  105. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js.map +1 -0
  106. package/dist/src/lib/components/HamburgerIcon/index.d.ts +7 -0
  107. package/dist/src/lib/components/HamburgerIcon/index.js +26 -0
  108. package/dist/src/lib/components/HamburgerIcon/index.js.map +1 -0
  109. package/dist/src/lib/components/Icon/Icon.stories.d.ts +6 -0
  110. package/dist/src/lib/components/Icon/Icon.stories.js +87 -0
  111. package/dist/src/lib/components/Icon/Icon.stories.js.map +1 -0
  112. package/dist/src/lib/components/Icon/index.d.ts +19 -0
  113. package/dist/src/lib/components/Icon/index.js +56 -0
  114. package/dist/src/lib/components/Icon/index.js.map +1 -0
  115. package/dist/src/lib/components/Image/Image.stories.d.ts +6 -0
  116. package/dist/src/lib/components/Image/Image.stories.js +73 -0
  117. package/dist/src/lib/components/Image/Image.stories.js.map +1 -0
  118. package/dist/src/lib/components/Image/index.d.ts +16 -0
  119. package/dist/src/lib/components/Image/index.js +54 -0
  120. package/dist/src/lib/components/Image/index.js.map +1 -0
  121. package/dist/src/lib/components/ImageLink/ImageLink.stories.d.ts +9 -0
  122. package/dist/src/lib/components/ImageLink/ImageLink.stories.js +50 -0
  123. package/dist/src/lib/components/ImageLink/ImageLink.stories.js.map +1 -0
  124. package/dist/src/lib/components/ImageLink/index.d.ts +15 -0
  125. package/dist/src/lib/components/ImageLink/index.js +18 -0
  126. package/dist/src/lib/components/ImageLink/index.js.map +1 -0
  127. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.d.ts +6 -0
  128. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js +27 -0
  129. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js.map +1 -0
  130. package/dist/src/lib/components/ImageLinkList/index.d.ts +9 -0
  131. package/dist/src/lib/components/ImageLinkList/index.js +11 -0
  132. package/dist/src/lib/components/ImageLinkList/index.js.map +1 -0
  133. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.d.ts +6 -0
  134. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js +73 -0
  135. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js.map +1 -0
  136. package/dist/src/lib/components/InformationIcon/index.d.ts +15 -0
  137. package/dist/src/lib/components/InformationIcon/index.js +45 -0
  138. package/dist/src/lib/components/InformationIcon/index.js.map +1 -0
  139. package/dist/src/lib/components/Input/Input.stories.d.ts +6 -0
  140. package/dist/src/lib/components/Input/Input.stories.js +95 -0
  141. package/dist/src/lib/components/Input/Input.stories.js.map +1 -0
  142. package/dist/src/lib/components/Input/index.d.ts +31 -0
  143. package/dist/src/lib/components/Input/index.js +25 -0
  144. package/dist/src/lib/components/Input/index.js.map +1 -0
  145. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.d.ts +6 -0
  146. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js +16 -0
  147. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js.map +1 -0
  148. package/dist/src/lib/components/Jumbotron/index.d.ts +9 -0
  149. package/dist/src/lib/components/Jumbotron/index.js +9 -0
  150. package/dist/src/lib/components/Jumbotron/index.js.map +1 -0
  151. package/dist/src/lib/components/Nav/Nav.stories.d.ts +6 -0
  152. package/dist/src/lib/components/Nav/Nav.stories.js +134 -0
  153. package/dist/src/lib/components/Nav/Nav.stories.js.map +1 -0
  154. package/dist/src/lib/components/Nav/index.d.ts +22 -0
  155. package/dist/src/lib/components/Nav/index.js +65 -0
  156. package/dist/src/lib/components/Nav/index.js.map +1 -0
  157. package/dist/src/lib/components/NavItem/NavItem.stories.d.ts +6 -0
  158. package/dist/src/lib/components/NavItem/NavItem.stories.js +75 -0
  159. package/dist/src/lib/components/NavItem/NavItem.stories.js.map +1 -0
  160. package/dist/src/lib/components/NavItem/index.d.ts +15 -0
  161. package/dist/src/lib/components/NavItem/index.js +24 -0
  162. package/dist/src/lib/components/NavItem/index.js.map +1 -0
  163. package/dist/src/lib/components/NewsCard/NewsCard.stories.d.ts +6 -0
  164. package/dist/src/lib/components/NewsCard/NewsCard.stories.js +60 -0
  165. package/dist/src/lib/components/NewsCard/NewsCard.stories.js.map +1 -0
  166. package/dist/src/lib/components/NewsCard/index.d.ts +14 -0
  167. package/dist/src/lib/components/NewsCard/index.js +20 -0
  168. package/dist/src/lib/components/NewsCard/index.js.map +1 -0
  169. package/dist/src/lib/components/Profile/Profile.stories.d.ts +6 -0
  170. package/dist/src/lib/components/Profile/Profile.stories.js +41 -0
  171. package/dist/src/lib/components/Profile/Profile.stories.js.map +1 -0
  172. package/dist/src/lib/components/Profile/index.d.ts +18 -0
  173. package/dist/src/lib/components/Profile/index.js +36 -0
  174. package/dist/src/lib/components/Profile/index.js.map +1 -0
  175. package/dist/src/lib/components/Row/Row.stories.d.ts +6 -0
  176. package/dist/src/lib/components/Row/Row.stories.js +37 -0
  177. package/dist/src/lib/components/Row/Row.stories.js.map +1 -0
  178. package/dist/src/lib/components/Row/index.d.ts +8 -0
  179. package/dist/src/lib/components/Row/index.js +8 -0
  180. package/dist/src/lib/components/Row/index.js.map +1 -0
  181. package/dist/src/lib/components/Search/Search.stories.d.ts +6 -0
  182. package/dist/src/lib/components/Search/Search.stories.js +48 -0
  183. package/dist/src/lib/components/Search/Search.stories.js.map +1 -0
  184. package/dist/src/lib/components/Search/index.d.ts +13 -0
  185. package/dist/src/lib/components/Search/index.js +23 -0
  186. package/dist/src/lib/components/Search/index.js.map +1 -0
  187. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.d.ts +6 -0
  188. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js +58 -0
  189. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js.map +1 -0
  190. package/dist/src/lib/components/SocialBlock/index.d.ts +21 -0
  191. package/dist/src/lib/components/SocialBlock/index.js +65 -0
  192. package/dist/src/lib/components/SocialBlock/index.js.map +1 -0
  193. package/dist/src/lib/components/StarRating/StarRating.stories.d.ts +6 -0
  194. package/dist/src/lib/components/StarRating/StarRating.stories.js +17 -0
  195. package/dist/src/lib/components/StarRating/StarRating.stories.js.map +1 -0
  196. package/dist/src/lib/components/StarRating/index.d.ts +9 -0
  197. package/dist/src/lib/components/StarRating/index.js +27 -0
  198. package/dist/src/lib/components/StarRating/index.js.map +1 -0
  199. package/dist/src/lib/components/Testimonial/Testimonial.stories.d.ts +6 -0
  200. package/dist/src/lib/components/Testimonial/Testimonial.stories.js +95 -0
  201. package/dist/src/lib/components/Testimonial/Testimonial.stories.js.map +1 -0
  202. package/dist/src/lib/components/Testimonial/index.d.ts +17 -0
  203. package/dist/src/lib/components/Testimonial/index.js +27 -0
  204. package/dist/src/lib/components/Testimonial/index.js.map +1 -0
  205. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.d.ts +6 -0
  206. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js +63 -0
  207. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js.map +1 -0
  208. package/dist/src/lib/components/TextAndTitle/index.d.ts +26 -0
  209. package/dist/src/lib/components/TextAndTitle/index.js +104 -0
  210. package/dist/src/lib/components/TextAndTitle/index.js.map +1 -0
  211. package/dist/src/lib/components/TextArea/TextArea.stories.d.ts +6 -0
  212. package/dist/src/lib/components/TextArea/TextArea.stories.js +63 -0
  213. package/dist/src/lib/components/TextArea/TextArea.stories.js.map +1 -0
  214. package/dist/src/lib/components/TextArea/index.d.ts +27 -0
  215. package/dist/src/lib/components/TextArea/index.js +19 -0
  216. package/dist/src/lib/components/TextArea/index.js.map +1 -0
  217. package/dist/src/lib/components/Timeline/Timeline.stories.d.ts +6 -0
  218. package/dist/src/lib/components/Timeline/Timeline.stories.js +87 -0
  219. package/dist/src/lib/components/Timeline/Timeline.stories.js.map +1 -0
  220. package/dist/src/lib/components/Timeline/index.d.ts +14 -0
  221. package/dist/src/lib/components/Timeline/index.js +208 -0
  222. package/dist/src/lib/components/Timeline/index.js.map +1 -0
  223. package/dist/src/lib/components/Tubestops/Tubestops.stories.d.ts +6 -0
  224. package/dist/src/lib/components/Tubestops/Tubestops.stories.js +62 -0
  225. package/dist/src/lib/components/Tubestops/Tubestops.stories.js.map +1 -0
  226. package/dist/src/lib/components/Tubestops/index.d.ts +13 -0
  227. package/dist/src/lib/components/Tubestops/index.js +44 -0
  228. package/dist/src/lib/components/Tubestops/index.js.map +1 -0
  229. package/dist/src/lib/components/UserIcon/UserIcon.stories.d.ts +6 -0
  230. package/dist/src/lib/components/UserIcon/UserIcon.stories.js +63 -0
  231. package/dist/src/lib/components/UserIcon/UserIcon.stories.js.map +1 -0
  232. package/dist/src/lib/components/UserIcon/index.d.ts +11 -0
  233. package/dist/src/lib/components/UserIcon/index.js +16 -0
  234. package/dist/src/lib/components/UserIcon/index.js.map +1 -0
  235. package/dist/src/lib/components/Video/Video.stories.d.ts +6 -0
  236. package/dist/src/lib/components/Video/Video.stories.js +17 -0
  237. package/dist/src/lib/components/Video/Video.stories.js.map +1 -0
  238. package/dist/src/lib/components/Video/index.d.ts +17 -0
  239. package/dist/src/lib/components/Video/index.js +9 -0
  240. package/dist/src/lib/components/Video/index.js.map +1 -0
  241. package/dist/src/lib/index.d.ts +39 -0
  242. package/dist/src/lib/index.js +43 -0
  243. package/dist/src/lib/index.js.map +1 -0
  244. package/dist/src/lib/typography/Fonts.stories.d.ts +6 -0
  245. package/dist/src/lib/typography/Fonts.stories.js +12 -0
  246. package/dist/src/lib/typography/Fonts.stories.js.map +1 -0
  247. package/dist/src/lib/typography/index.d.ts +6 -0
  248. package/dist/src/lib/typography/index.js +23 -0
  249. package/dist/src/lib/typography/index.js.map +1 -0
  250. package/dist/src/lib/utils/controls.d.ts +35 -0
  251. package/dist/src/lib/utils/controls.js +21 -0
  252. package/dist/src/lib/utils/controls.js.map +1 -0
  253. package/dist/src/lib/utils/theme.d.ts +3 -0
  254. package/dist/src/lib/utils/theme.js +28 -0
  255. package/dist/src/lib/utils/theme.js.map +1 -0
  256. package/dist/tailwind.config.d.ts +65 -0
  257. package/dist/tailwind.config.js +81 -0
  258. package/dist/tailwind.config.js.map +1 -0
  259. package/package.json +19 -5
  260. package/dist/components/Accordion/index.js +0 -37
  261. package/dist/components/AlertBar/index.js +0 -129
  262. package/dist/components/Breadcrumbs/index.js +0 -66
  263. package/dist/components/BreadcrumbsBordered/index.js +0 -66
  264. package/dist/components/BreadcrumbsItem/index.js +0 -160
  265. package/dist/components/Button/index.js +0 -141
  266. package/dist/components/Card/index.js +0 -151
  267. package/dist/components/CardWithTopImage/index.js +0 -64
  268. package/dist/components/Carousel/index.css +0 -4
  269. package/dist/components/Carousel/index.css.map +0 -1
  270. package/dist/components/Carousel/index.js +0 -185
  271. package/dist/components/ChevronCard/index.js +0 -65
  272. package/dist/components/Collapsible/index.js +0 -158
  273. package/dist/components/Column/index.js +0 -137
  274. package/dist/components/Container/index.js +0 -55
  275. package/dist/components/FooterBar/index.js +0 -60
  276. package/dist/components/Form/index.js +0 -78
  277. package/dist/components/FyreCard/index.js +0 -54
  278. package/dist/components/Greeting/index.js +0 -69
  279. package/dist/components/Icon/index.js +0 -91
  280. package/dist/components/Image/index.js +0 -142
  281. package/dist/components/ImageLink/index.js +0 -61
  282. package/dist/components/ImageLinkList/index.js +0 -45
  283. package/dist/components/InformationIcon/index.js +0 -120
  284. package/dist/components/Input/index.js +0 -112
  285. package/dist/components/Jumbotron/index.js +0 -39
  286. package/dist/components/Nav/index.js +0 -302
  287. package/dist/components/NavItem/index.js +0 -129
  288. package/dist/components/NewsCard/index.js +0 -62
  289. package/dist/components/Profile/index.js +0 -86
  290. package/dist/components/Row/index.js +0 -55
  291. package/dist/components/Search/index.js +0 -60
  292. package/dist/components/SocialBlock/index.js +0 -184
  293. package/dist/components/StarRating/index.js +0 -110
  294. package/dist/components/Testimonial/index.js +0 -70
  295. package/dist/components/TextAndTitle/index.js +0 -283
  296. package/dist/components/TextArea/index.js +0 -97
  297. package/dist/components/Timeline/index.css +0 -133
  298. package/dist/components/Timeline/index.css.map +0 -1
  299. package/dist/components/Timeline/index.js +0 -254
  300. package/dist/components/Tubestops/index.css +0 -92
  301. package/dist/components/Tubestops/index.css.map +0 -1
  302. package/dist/components/Tubestops/index.js +0 -95
  303. package/dist/components/UserIcon/index.js +0 -50
  304. package/dist/components/Users/rupertb/Documents/apps/trepur_components/src/lib/styles/base.css +0 -1831
  305. package/dist/components/Users/rupertb/Documents/apps/trepur_components/src/lib/styles/base.css.map +0 -1
  306. package/dist/components/Video/index.js +0 -67
  307. package/dist/fonts/Sora/OFL.txt +0 -93
  308. package/dist/fonts/Sora/README.txt +0 -70
  309. package/dist/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
  310. package/dist/fonts/Sora/static/Sora-Bold.ttf +0 -0
  311. package/dist/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
  312. package/dist/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
  313. package/dist/fonts/Sora/static/Sora-Light.ttf +0 -0
  314. package/dist/fonts/Sora/static/Sora-Medium.ttf +0 -0
  315. package/dist/fonts/Sora/static/Sora-Regular.ttf +0 -0
  316. package/dist/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
  317. package/dist/fonts/Sora/static/Sora-Thin.ttf +0 -0
  318. package/dist/index.js +0 -311
  319. 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"]}