@julseb-lib/react 0.0.0

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 (798) hide show
  1. package/README.md +19 -0
  2. package/dist/index.cjs.js +4092 -0
  3. package/dist/index.css +1421 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.es.js +22257 -0
  6. package/dist/index.umd.js +4098 -0
  7. package/dist/lib/Mixins.tsx +985 -0
  8. package/dist/lib/Variables.ts +294 -0
  9. package/dist/lib/components/Accordion/Accordion.tsx +86 -0
  10. package/dist/lib/components/Accordion/AccordionButton.tsx +72 -0
  11. package/dist/lib/components/Accordion/AccordionContent.tsx +27 -0
  12. package/dist/lib/components/Accordion/AccordionItem.tsx +70 -0
  13. package/dist/lib/components/Accordion/index.ts +4 -0
  14. package/dist/lib/components/Accordion/styles.tsx +165 -0
  15. package/dist/lib/components/Accordion/subtypes.ts +22 -0
  16. package/dist/lib/components/Accordion/types.ts +33 -0
  17. package/dist/lib/components/Alert/Alert.tsx +118 -0
  18. package/dist/lib/components/Alert/index.ts +3 -0
  19. package/dist/lib/components/Alert/styles.tsx +39 -0
  20. package/dist/lib/components/Alert/types.ts +33 -0
  21. package/dist/lib/components/Aside/Aside.tsx +42 -0
  22. package/dist/lib/components/Aside/index.ts +3 -0
  23. package/dist/lib/components/Aside/styles.tsx +46 -0
  24. package/dist/lib/components/Aside/types.ts +8 -0
  25. package/dist/lib/components/Autocomplete/Autocomplete.tsx +352 -0
  26. package/dist/lib/components/Autocomplete/index.ts +3 -0
  27. package/dist/lib/components/Autocomplete/styles.tsx +13 -0
  28. package/dist/lib/components/Autocomplete/types.ts +42 -0
  29. package/dist/lib/components/Avatar/Avatar.tsx +143 -0
  30. package/dist/lib/components/Avatar/AvatarFunction.tsx +110 -0
  31. package/dist/lib/components/Avatar/index.ts +3 -0
  32. package/dist/lib/components/Avatar/styles.tsx +87 -0
  33. package/dist/lib/components/Avatar/types.ts +73 -0
  34. package/dist/lib/components/BackToTop/BackToTop.tsx +101 -0
  35. package/dist/lib/components/BackToTop/index.ts +3 -0
  36. package/dist/lib/components/BackToTop/styles.tsx +35 -0
  37. package/dist/lib/components/BackToTop/types.ts +8 -0
  38. package/dist/lib/components/Badge/Badge.tsx +94 -0
  39. package/dist/lib/components/Badge/index.ts +3 -0
  40. package/dist/lib/components/Badge/styles.tsx +41 -0
  41. package/dist/lib/components/Badge/types.ts +34 -0
  42. package/dist/lib/components/Breadcrumbs/BreadcrumbItem.tsx +42 -0
  43. package/dist/lib/components/Breadcrumbs/Breadcrumbs.tsx +52 -0
  44. package/dist/lib/components/Breadcrumbs/BreadcrumbsFn.tsx +76 -0
  45. package/dist/lib/components/Breadcrumbs/index.ts +3 -0
  46. package/dist/lib/components/Breadcrumbs/styles.tsx +64 -0
  47. package/dist/lib/components/Breadcrumbs/subtypes.ts +12 -0
  48. package/dist/lib/components/Breadcrumbs/types.ts +31 -0
  49. package/dist/lib/components/Burger/Burger.tsx +59 -0
  50. package/dist/lib/components/Burger/index.ts +3 -0
  51. package/dist/lib/components/Burger/styles.tsx +99 -0
  52. package/dist/lib/components/Burger/types.ts +13 -0
  53. package/dist/lib/components/Button/Button.tsx +134 -0
  54. package/dist/lib/components/Button/index.ts +3 -0
  55. package/dist/lib/components/Button/styles.tsx +32 -0
  56. package/dist/lib/components/Button/subtypes.ts +12 -0
  57. package/dist/lib/components/Button/types.ts +72 -0
  58. package/dist/lib/components/ButtonGroup/ButtonGroup.tsx +158 -0
  59. package/dist/lib/components/ButtonGroup/ButtonGroupButton.tsx +89 -0
  60. package/dist/lib/components/ButtonGroup/ButtonGroupToggle.tsx +99 -0
  61. package/dist/lib/components/ButtonGroup/index.ts +3 -0
  62. package/dist/lib/components/ButtonGroup/styles.tsx +91 -0
  63. package/dist/lib/components/ButtonGroup/subtypes.ts +42 -0
  64. package/dist/lib/components/ButtonGroup/types.ts +36 -0
  65. package/dist/lib/components/ButtonIcon/ButtonFunction.tsx +95 -0
  66. package/dist/lib/components/ButtonIcon/ButtonIcon.tsx +139 -0
  67. package/dist/lib/components/ButtonIcon/index.ts +3 -0
  68. package/dist/lib/components/ButtonIcon/styles.tsx +31 -0
  69. package/dist/lib/components/ButtonIcon/subtypes.ts +12 -0
  70. package/dist/lib/components/ButtonIcon/types.ts +90 -0
  71. package/dist/lib/components/Card/Card.tsx +114 -0
  72. package/dist/lib/components/Card/index.ts +3 -0
  73. package/dist/lib/components/Card/styles.tsx +57 -0
  74. package/dist/lib/components/Card/types.ts +29 -0
  75. package/dist/lib/components/CodeContainer/CodeContainer.tsx +129 -0
  76. package/dist/lib/components/CodeContainer/index.ts +3 -0
  77. package/dist/lib/components/CodeContainer/styles.tsx +64 -0
  78. package/dist/lib/components/CodeContainer/types.ts +235 -0
  79. package/dist/lib/components/ComponentsMixins/ComponentsMixins.tsx +439 -0
  80. package/dist/lib/components/ComponentsMixins/hooks/useKeyboardNavigation.tsx +81 -0
  81. package/dist/lib/components/ComponentsMixins/index.ts +5 -0
  82. package/dist/lib/components/ComponentsMixins/types.ts +37 -0
  83. package/dist/lib/components/Cover/Cover.tsx +72 -0
  84. package/dist/lib/components/Cover/index.ts +3 -0
  85. package/dist/lib/components/Cover/styles.tsx +80 -0
  86. package/dist/lib/components/Cover/types.ts +14 -0
  87. package/dist/lib/components/Datepicker/Calendar.tsx +395 -0
  88. package/dist/lib/components/Datepicker/Datepicker.tsx +254 -0
  89. package/dist/lib/components/Datepicker/data.ts +33 -0
  90. package/dist/lib/components/Datepicker/index.ts +3 -0
  91. package/dist/lib/components/Datepicker/styles.tsx +456 -0
  92. package/dist/lib/components/Datepicker/types.ts +68 -0
  93. package/dist/lib/components/DragList/DragList.tsx +127 -0
  94. package/dist/lib/components/DragList/DragListItem.tsx +191 -0
  95. package/dist/lib/components/DragList/index.ts +4 -0
  96. package/dist/lib/components/DragList/styles.tsx +75 -0
  97. package/dist/lib/components/DragList/types.ts +65 -0
  98. package/dist/lib/components/Drawer/Drawer.tsx +107 -0
  99. package/dist/lib/components/Drawer/index.ts +3 -0
  100. package/dist/lib/components/Drawer/styles.tsx +136 -0
  101. package/dist/lib/components/Drawer/types.ts +28 -0
  102. package/dist/lib/components/Dropdown/Dropdown.tsx +89 -0
  103. package/dist/lib/components/Dropdown/DropdownContainer.tsx +39 -0
  104. package/dist/lib/components/Dropdown/DropdownItem.tsx +97 -0
  105. package/dist/lib/components/Dropdown/index.ts +5 -0
  106. package/dist/lib/components/Dropdown/styles.tsx +150 -0
  107. package/dist/lib/components/Dropdown/types.ts +71 -0
  108. package/dist/lib/components/Fade/Fade.tsx +42 -0
  109. package/dist/lib/components/Fade/index.ts +3 -0
  110. package/dist/lib/components/Fade/styles.tsx +19 -0
  111. package/dist/lib/components/Fade/types.ts +5 -0
  112. package/dist/lib/components/Fallback/Fallback.tsx +37 -0
  113. package/dist/lib/components/Fallback/index.ts +3 -0
  114. package/dist/lib/components/Fieldset/Fieldset.tsx +107 -0
  115. package/dist/lib/components/Fieldset/index.ts +3 -0
  116. package/dist/lib/components/Fieldset/styles.tsx +50 -0
  117. package/dist/lib/components/Fieldset/types.ts +34 -0
  118. package/dist/lib/components/Flexbox/Flexbox.tsx +69 -0
  119. package/dist/lib/components/Flexbox/index.ts +3 -0
  120. package/dist/lib/components/Flexbox/styles.tsx +34 -0
  121. package/dist/lib/components/Flexbox/types.ts +27 -0
  122. package/dist/lib/components/Footer/Footer.tsx +104 -0
  123. package/dist/lib/components/Footer/FooterLink.tsx +31 -0
  124. package/dist/lib/components/Footer/FooterLogo.tsx +30 -0
  125. package/dist/lib/components/Footer/index.ts +3 -0
  126. package/dist/lib/components/Footer/styles.tsx +126 -0
  127. package/dist/lib/components/Footer/subtypes.ts +14 -0
  128. package/dist/lib/components/Footer/types.ts +76 -0
  129. package/dist/lib/components/Form/Form.tsx +148 -0
  130. package/dist/lib/components/Form/index.ts +3 -0
  131. package/dist/lib/components/Form/styles.tsx +24 -0
  132. package/dist/lib/components/Form/types.ts +32 -0
  133. package/dist/lib/components/FullBleed/FullBleed.tsx +45 -0
  134. package/dist/lib/components/FullBleed/index.ts +3 -0
  135. package/dist/lib/components/FullBleed/styles.tsx +32 -0
  136. package/dist/lib/components/FullBleed/types.ts +9 -0
  137. package/dist/lib/components/Grid/Grid.tsx +66 -0
  138. package/dist/lib/components/Grid/index.ts +3 -0
  139. package/dist/lib/components/Grid/styles.tsx +31 -0
  140. package/dist/lib/components/Grid/types.ts +24 -0
  141. package/dist/lib/components/Header/Header.tsx +202 -0
  142. package/dist/lib/components/Header/HeaderBurger.tsx +59 -0
  143. package/dist/lib/components/Header/HeaderLogo.tsx +65 -0
  144. package/dist/lib/components/Header/HeaderNav.tsx +77 -0
  145. package/dist/lib/components/Header/HeaderNavLink.tsx +63 -0
  146. package/dist/lib/components/Header/HeaderSearch.tsx +83 -0
  147. package/dist/lib/components/Header/index.ts +3 -0
  148. package/dist/lib/components/Header/styles.tsx +345 -0
  149. package/dist/lib/components/Header/subtypes.ts +85 -0
  150. package/dist/lib/components/Header/types.ts +67 -0
  151. package/dist/lib/components/Helmet/Helmet.tsx +67 -0
  152. package/dist/lib/components/Helmet/index.ts +3 -0
  153. package/dist/lib/components/Helmet/types.ts +17 -0
  154. package/dist/lib/components/Highlight/Highlight.tsx +45 -0
  155. package/dist/lib/components/Highlight/index.ts +3 -0
  156. package/dist/lib/components/Highlight/types.ts +11 -0
  157. package/dist/lib/components/Hr/Hr.tsx +50 -0
  158. package/dist/lib/components/Hr/index.ts +3 -0
  159. package/dist/lib/components/Hr/styles.tsx +29 -0
  160. package/dist/lib/components/Hr/types.ts +12 -0
  161. package/dist/lib/components/Icon/Icon.tsx +42 -0
  162. package/dist/lib/components/Icon/index.ts +3 -0
  163. package/dist/lib/components/Icon/styles.tsx +21 -0
  164. package/dist/lib/components/Icon/types.ts +13 -0
  165. package/dist/lib/components/IconMenu/IconMenu.tsx +157 -0
  166. package/dist/lib/components/IconMenu/IconMenuItem.tsx +74 -0
  167. package/dist/lib/components/IconMenu/index.ts +4 -0
  168. package/dist/lib/components/IconMenu/styles.tsx +116 -0
  169. package/dist/lib/components/IconMenu/types.ts +56 -0
  170. package/dist/lib/components/Image/Image.tsx +106 -0
  171. package/dist/lib/components/Image/ImageFunction.tsx +46 -0
  172. package/dist/lib/components/Image/index.ts +3 -0
  173. package/dist/lib/components/Image/styles.tsx +63 -0
  174. package/dist/lib/components/Image/types.ts +41 -0
  175. package/dist/lib/components/Input/Input.tsx +189 -0
  176. package/dist/lib/components/Input/index.ts +3 -0
  177. package/dist/lib/components/Input/styles.tsx +41 -0
  178. package/dist/lib/components/Input/subtypes.ts +186 -0
  179. package/dist/lib/components/Input/templates/ColorInput.tsx +40 -0
  180. package/dist/lib/components/Input/templates/DateInput.tsx +127 -0
  181. package/dist/lib/components/Input/templates/FileInput.tsx +61 -0
  182. package/dist/lib/components/Input/templates/PasswordInput.tsx +197 -0
  183. package/dist/lib/components/Input/templates/SearchInput.tsx +140 -0
  184. package/dist/lib/components/Input/templates/SelectInput.tsx +116 -0
  185. package/dist/lib/components/Input/templates/TextInput.tsx +116 -0
  186. package/dist/lib/components/Input/templates/TextareaInput.tsx +43 -0
  187. package/dist/lib/components/Input/templates/TimeInput.tsx +126 -0
  188. package/dist/lib/components/Input/types.ts +24 -0
  189. package/dist/lib/components/InputCheck/InputCheck.tsx +138 -0
  190. package/dist/lib/components/InputCheck/index.ts +3 -0
  191. package/dist/lib/components/InputCheck/styles.tsx +284 -0
  192. package/dist/lib/components/InputCheck/types.ts +35 -0
  193. package/dist/lib/components/InputComponents/components/InputAndListContainer.tsx +51 -0
  194. package/dist/lib/components/InputComponents/components/InputButton.tsx +62 -0
  195. package/dist/lib/components/InputComponents/components/InputContainer.tsx +70 -0
  196. package/dist/lib/components/InputComponents/components/InputIcon.tsx +51 -0
  197. package/dist/lib/components/InputComponents/components/InputLeftContainer.tsx +29 -0
  198. package/dist/lib/components/InputComponents/components/InputPrefix.tsx +31 -0
  199. package/dist/lib/components/InputComponents/components/InputRightContainer.tsx +35 -0
  200. package/dist/lib/components/InputComponents/components/InputSuffix.tsx +31 -0
  201. package/dist/lib/components/InputComponents/components/InputValidationHelper.tsx +87 -0
  202. package/dist/lib/components/InputComponents/components/InputValidationIcon.tsx +64 -0
  203. package/dist/lib/components/InputComponents/components/InputWrapper.tsx +46 -0
  204. package/dist/lib/components/InputComponents/components/ListInput.tsx +51 -0
  205. package/dist/lib/components/InputComponents/components/ListInputItem.tsx +56 -0
  206. package/dist/lib/components/InputComponents/index.ts +15 -0
  207. package/dist/lib/components/InputComponents/styles.tsx +738 -0
  208. package/dist/lib/components/InputComponents/types.ts +300 -0
  209. package/dist/lib/components/InputContainer/InputContainer.tsx +200 -0
  210. package/dist/lib/components/InputContainer/index.ts +3 -0
  211. package/dist/lib/components/InputContainer/styles.tsx +80 -0
  212. package/dist/lib/components/InputContainer/types.ts +36 -0
  213. package/dist/lib/components/InputCounter/InputCounter.tsx +287 -0
  214. package/dist/lib/components/InputCounter/index.ts +3 -0
  215. package/dist/lib/components/InputCounter/styles.tsx +53 -0
  216. package/dist/lib/components/InputCounter/subtypes.ts +9 -0
  217. package/dist/lib/components/InputCounter/types.ts +51 -0
  218. package/dist/lib/components/InputImage/EmptyContainer.tsx +41 -0
  219. package/dist/lib/components/InputImage/HoverContainer.tsx +48 -0
  220. package/dist/lib/components/InputImage/InputImage.tsx +149 -0
  221. package/dist/lib/components/InputImage/index.ts +3 -0
  222. package/dist/lib/components/InputImage/styles.tsx +115 -0
  223. package/dist/lib/components/InputImage/subtypes.ts +30 -0
  224. package/dist/lib/components/InputImage/types.ts +24 -0
  225. package/dist/lib/components/InputPhone/InputPhone.tsx +386 -0
  226. package/dist/lib/components/InputPhone/index.ts +3 -0
  227. package/dist/lib/components/InputPhone/styles.tsx +219 -0
  228. package/dist/lib/components/InputPhone/types.ts +35 -0
  229. package/dist/lib/components/InputPhone/utils/countries.ts +648 -0
  230. package/dist/lib/components/InputPhone/utils/flags/ac.svg +76 -0
  231. package/dist/lib/components/InputPhone/utils/flags/ad.svg +150 -0
  232. package/dist/lib/components/InputPhone/utils/flags/ae.svg +6 -0
  233. package/dist/lib/components/InputPhone/utils/flags/af.svg +81 -0
  234. package/dist/lib/components/InputPhone/utils/flags/ag.svg +14 -0
  235. package/dist/lib/components/InputPhone/utils/flags/ai.svg +758 -0
  236. package/dist/lib/components/InputPhone/utils/flags/al.svg +5 -0
  237. package/dist/lib/components/InputPhone/utils/flags/am.svg +5 -0
  238. package/dist/lib/components/InputPhone/utils/flags/ao.svg +13 -0
  239. package/dist/lib/components/InputPhone/utils/flags/aq.svg +5 -0
  240. package/dist/lib/components/InputPhone/utils/flags/ar.svg +32 -0
  241. package/dist/lib/components/InputPhone/utils/flags/as.svg +72 -0
  242. package/dist/lib/components/InputPhone/utils/flags/at.svg +6 -0
  243. package/dist/lib/components/InputPhone/utils/flags/au.svg +8 -0
  244. package/dist/lib/components/InputPhone/utils/flags/aw.svg +186 -0
  245. package/dist/lib/components/InputPhone/utils/flags/ax.svg +18 -0
  246. package/dist/lib/components/InputPhone/utils/flags/az.svg +8 -0
  247. package/dist/lib/components/InputPhone/utils/flags/ba.svg +12 -0
  248. package/dist/lib/components/InputPhone/utils/flags/bb.svg +6 -0
  249. package/dist/lib/components/InputPhone/utils/flags/bd.svg +4 -0
  250. package/dist/lib/components/InputPhone/utils/flags/be.svg +7 -0
  251. package/dist/lib/components/InputPhone/utils/flags/bf.svg +7 -0
  252. package/dist/lib/components/InputPhone/utils/flags/bg.svg +7 -0
  253. package/dist/lib/components/InputPhone/utils/flags/bh.svg +4 -0
  254. package/dist/lib/components/InputPhone/utils/flags/bi.svg +15 -0
  255. package/dist/lib/components/InputPhone/utils/flags/bj.svg +14 -0
  256. package/dist/lib/components/InputPhone/utils/flags/bl.svg +7 -0
  257. package/dist/lib/components/InputPhone/utils/flags/bm.svg +97 -0
  258. package/dist/lib/components/InputPhone/utils/flags/bn.svg +36 -0
  259. package/dist/lib/components/InputPhone/utils/flags/bo.svg +676 -0
  260. package/dist/lib/components/InputPhone/utils/flags/bq.svg +5 -0
  261. package/dist/lib/components/InputPhone/utils/flags/br.svg +45 -0
  262. package/dist/lib/components/InputPhone/utils/flags/bs.svg +13 -0
  263. package/dist/lib/components/InputPhone/utils/flags/bt.svg +89 -0
  264. package/dist/lib/components/InputPhone/utils/flags/bv.svg +13 -0
  265. package/dist/lib/components/InputPhone/utils/flags/bw.svg +7 -0
  266. package/dist/lib/components/InputPhone/utils/flags/by.svg +20 -0
  267. package/dist/lib/components/InputPhone/utils/flags/bz.svg +145 -0
  268. package/dist/lib/components/InputPhone/utils/flags/ca.svg +4 -0
  269. package/dist/lib/components/InputPhone/utils/flags/cc.svg +19 -0
  270. package/dist/lib/components/InputPhone/utils/flags/cd.svg +5 -0
  271. package/dist/lib/components/InputPhone/utils/flags/cefta.svg +13 -0
  272. package/dist/lib/components/InputPhone/utils/flags/cf.svg +15 -0
  273. package/dist/lib/components/InputPhone/utils/flags/cg.svg +12 -0
  274. package/dist/lib/components/InputPhone/utils/flags/ch.svg +9 -0
  275. package/dist/lib/components/InputPhone/utils/flags/ci.svg +7 -0
  276. package/dist/lib/components/InputPhone/utils/flags/ck.svg +9 -0
  277. package/dist/lib/components/InputPhone/utils/flags/cl.svg +13 -0
  278. package/dist/lib/components/InputPhone/utils/flags/cm.svg +15 -0
  279. package/dist/lib/components/InputPhone/utils/flags/cn.svg +11 -0
  280. package/dist/lib/components/InputPhone/utils/flags/co.svg +7 -0
  281. package/dist/lib/components/InputPhone/utils/flags/cp.svg +7 -0
  282. package/dist/lib/components/InputPhone/utils/flags/cr.svg +7 -0
  283. package/dist/lib/components/InputPhone/utils/flags/cu.svg +13 -0
  284. package/dist/lib/components/InputPhone/utils/flags/cv.svg +13 -0
  285. package/dist/lib/components/InputPhone/utils/flags/cw.svg +14 -0
  286. package/dist/lib/components/InputPhone/utils/flags/cx.svg +15 -0
  287. package/dist/lib/components/InputPhone/utils/flags/cy.svg +6 -0
  288. package/dist/lib/components/InputPhone/utils/flags/cz.svg +5 -0
  289. package/dist/lib/components/InputPhone/utils/flags/de.svg +5 -0
  290. package/dist/lib/components/InputPhone/utils/flags/dg.svg +129 -0
  291. package/dist/lib/components/InputPhone/utils/flags/dj.svg +13 -0
  292. package/dist/lib/components/InputPhone/utils/flags/dk.svg +5 -0
  293. package/dist/lib/components/InputPhone/utils/flags/dm.svg +152 -0
  294. package/dist/lib/components/InputPhone/utils/flags/do.svg +6745 -0
  295. package/dist/lib/components/InputPhone/utils/flags/dz.svg +5 -0
  296. package/dist/lib/components/InputPhone/utils/flags/ea.svg +544 -0
  297. package/dist/lib/components/InputPhone/utils/flags/ec.svg +138 -0
  298. package/dist/lib/components/InputPhone/utils/flags/ee.svg +7 -0
  299. package/dist/lib/components/InputPhone/utils/flags/eg.svg +38 -0
  300. package/dist/lib/components/InputPhone/utils/flags/eh.svg +16 -0
  301. package/dist/lib/components/InputPhone/utils/flags/er.svg +8 -0
  302. package/dist/lib/components/InputPhone/utils/flags/es-ct.svg +4 -0
  303. package/dist/lib/components/InputPhone/utils/flags/es-ga.svg +187 -0
  304. package/dist/lib/components/InputPhone/utils/flags/es.svg +544 -0
  305. package/dist/lib/components/InputPhone/utils/flags/et.svg +14 -0
  306. package/dist/lib/components/InputPhone/utils/flags/eu.svg +28 -0
  307. package/dist/lib/components/InputPhone/utils/flags/fi.svg +5 -0
  308. package/dist/lib/components/InputPhone/utils/flags/fj.svg +120 -0
  309. package/dist/lib/components/InputPhone/utils/flags/fk.svg +90 -0
  310. package/dist/lib/components/InputPhone/utils/flags/fm.svg +11 -0
  311. package/dist/lib/components/InputPhone/utils/flags/fo.svg +12 -0
  312. package/dist/lib/components/InputPhone/utils/flags/fr.svg +7 -0
  313. package/dist/lib/components/InputPhone/utils/flags/ga.svg +7 -0
  314. package/dist/lib/components/InputPhone/utils/flags/gb-eng.svg +5 -0
  315. package/dist/lib/components/InputPhone/utils/flags/gb-nir.svg +132 -0
  316. package/dist/lib/components/InputPhone/utils/flags/gb-sct.svg +4 -0
  317. package/dist/lib/components/InputPhone/utils/flags/gb-wls.svg +9 -0
  318. package/dist/lib/components/InputPhone/utils/flags/gb.svg +7 -0
  319. package/dist/lib/components/InputPhone/utils/flags/gd.svg +27 -0
  320. package/dist/lib/components/InputPhone/utils/flags/ge.svg +6 -0
  321. package/dist/lib/components/InputPhone/utils/flags/gf.svg +7 -0
  322. package/dist/lib/components/InputPhone/utils/flags/gg.svg +9 -0
  323. package/dist/lib/components/InputPhone/utils/flags/gh.svg +6 -0
  324. package/dist/lib/components/InputPhone/utils/flags/gi.svg +32 -0
  325. package/dist/lib/components/InputPhone/utils/flags/gl.svg +4 -0
  326. package/dist/lib/components/InputPhone/utils/flags/gm.svg +14 -0
  327. package/dist/lib/components/InputPhone/utils/flags/gn.svg +7 -0
  328. package/dist/lib/components/InputPhone/utils/flags/gp.svg +7 -0
  329. package/dist/lib/components/InputPhone/utils/flags/gq.svg +23 -0
  330. package/dist/lib/components/InputPhone/utils/flags/gr.svg +16 -0
  331. package/dist/lib/components/InputPhone/utils/flags/gs.svg +133 -0
  332. package/dist/lib/components/InputPhone/utils/flags/gt.svg +220 -0
  333. package/dist/lib/components/InputPhone/utils/flags/gu.svg +23 -0
  334. package/dist/lib/components/InputPhone/utils/flags/gw.svg +13 -0
  335. package/dist/lib/components/InputPhone/utils/flags/gy.svg +9 -0
  336. package/dist/lib/components/InputPhone/utils/flags/hk.svg +30 -0
  337. package/dist/lib/components/InputPhone/utils/flags/hm.svg +8 -0
  338. package/dist/lib/components/InputPhone/utils/flags/hn.svg +18 -0
  339. package/dist/lib/components/InputPhone/utils/flags/hr.svg +58 -0
  340. package/dist/lib/components/InputPhone/utils/flags/ht.svg +116 -0
  341. package/dist/lib/components/InputPhone/utils/flags/hu.svg +7 -0
  342. package/dist/lib/components/InputPhone/utils/flags/ic.svg +7 -0
  343. package/dist/lib/components/InputPhone/utils/flags/id.svg +4 -0
  344. package/dist/lib/components/InputPhone/utils/flags/ie.svg +7 -0
  345. package/dist/lib/components/InputPhone/utils/flags/il.svg +14 -0
  346. package/dist/lib/components/InputPhone/utils/flags/im.svg +36 -0
  347. package/dist/lib/components/InputPhone/utils/flags/in.svg +25 -0
  348. package/dist/lib/components/InputPhone/utils/flags/io.svg +129 -0
  349. package/dist/lib/components/InputPhone/utils/flags/iq.svg +10 -0
  350. package/dist/lib/components/InputPhone/utils/flags/ir.svg +219 -0
  351. package/dist/lib/components/InputPhone/utils/flags/is.svg +12 -0
  352. package/dist/lib/components/InputPhone/utils/flags/it.svg +7 -0
  353. package/dist/lib/components/InputPhone/utils/flags/je.svg +45 -0
  354. package/dist/lib/components/InputPhone/utils/flags/jm.svg +8 -0
  355. package/dist/lib/components/InputPhone/utils/flags/jo.svg +16 -0
  356. package/dist/lib/components/InputPhone/utils/flags/jp.svg +11 -0
  357. package/dist/lib/components/InputPhone/utils/flags/ke.svg +23 -0
  358. package/dist/lib/components/InputPhone/utils/flags/kg.svg +15 -0
  359. package/dist/lib/components/InputPhone/utils/flags/kh.svg +61 -0
  360. package/dist/lib/components/InputPhone/utils/flags/ki.svg +36 -0
  361. package/dist/lib/components/InputPhone/utils/flags/km.svg +16 -0
  362. package/dist/lib/components/InputPhone/utils/flags/kn.svg +14 -0
  363. package/dist/lib/components/InputPhone/utils/flags/kp.svg +15 -0
  364. package/dist/lib/components/InputPhone/utils/flags/kr.svg +24 -0
  365. package/dist/lib/components/InputPhone/utils/flags/kw.svg +13 -0
  366. package/dist/lib/components/InputPhone/utils/flags/ky.svg +109 -0
  367. package/dist/lib/components/InputPhone/utils/flags/kz.svg +23 -0
  368. package/dist/lib/components/InputPhone/utils/flags/la.svg +12 -0
  369. package/dist/lib/components/InputPhone/utils/flags/lb.svg +15 -0
  370. package/dist/lib/components/InputPhone/utils/flags/lc.svg +8 -0
  371. package/dist/lib/components/InputPhone/utils/flags/li.svg +43 -0
  372. package/dist/lib/components/InputPhone/utils/flags/lk.svg +22 -0
  373. package/dist/lib/components/InputPhone/utils/flags/lr.svg +14 -0
  374. package/dist/lib/components/InputPhone/utils/flags/ls.svg +8 -0
  375. package/dist/lib/components/InputPhone/utils/flags/lt.svg +7 -0
  376. package/dist/lib/components/InputPhone/utils/flags/lu.svg +5 -0
  377. package/dist/lib/components/InputPhone/utils/flags/lv.svg +6 -0
  378. package/dist/lib/components/InputPhone/utils/flags/ly.svg +13 -0
  379. package/dist/lib/components/InputPhone/utils/flags/ma.svg +4 -0
  380. package/dist/lib/components/InputPhone/utils/flags/mc.svg +6 -0
  381. package/dist/lib/components/InputPhone/utils/flags/md.svg +70 -0
  382. package/dist/lib/components/InputPhone/utils/flags/me.svg +116 -0
  383. package/dist/lib/components/InputPhone/utils/flags/mf.svg +7 -0
  384. package/dist/lib/components/InputPhone/utils/flags/mg.svg +7 -0
  385. package/dist/lib/components/InputPhone/utils/flags/mh.svg +7 -0
  386. package/dist/lib/components/InputPhone/utils/flags/mk.svg +5 -0
  387. package/dist/lib/components/InputPhone/utils/flags/ml.svg +7 -0
  388. package/dist/lib/components/InputPhone/utils/flags/mm.svg +12 -0
  389. package/dist/lib/components/InputPhone/utils/flags/mn.svg +14 -0
  390. package/dist/lib/components/InputPhone/utils/flags/mo.svg +9 -0
  391. package/dist/lib/components/InputPhone/utils/flags/mp.svg +86 -0
  392. package/dist/lib/components/InputPhone/utils/flags/mq.svg +7 -0
  393. package/dist/lib/components/InputPhone/utils/flags/mr.svg +6 -0
  394. package/dist/lib/components/InputPhone/utils/flags/ms.svg +33 -0
  395. package/dist/lib/components/InputPhone/utils/flags/mt.svg +49 -0
  396. package/dist/lib/components/InputPhone/utils/flags/mu.svg +8 -0
  397. package/dist/lib/components/InputPhone/utils/flags/mv.svg +6 -0
  398. package/dist/lib/components/InputPhone/utils/flags/mw.svg +10 -0
  399. package/dist/lib/components/InputPhone/utils/flags/mx.svg +382 -0
  400. package/dist/lib/components/InputPhone/utils/flags/my.svg +7 -0
  401. package/dist/lib/components/InputPhone/utils/flags/mz.svg +21 -0
  402. package/dist/lib/components/InputPhone/utils/flags/na.svg +16 -0
  403. package/dist/lib/components/InputPhone/utils/flags/nc.svg +13 -0
  404. package/dist/lib/components/InputPhone/utils/flags/ne.svg +6 -0
  405. package/dist/lib/components/InputPhone/utils/flags/nf.svg +9 -0
  406. package/dist/lib/components/InputPhone/utils/flags/ng.svg +6 -0
  407. package/dist/lib/components/InputPhone/utils/flags/ni.svg +129 -0
  408. package/dist/lib/components/InputPhone/utils/flags/nl.svg +5 -0
  409. package/dist/lib/components/InputPhone/utils/flags/no.svg +7 -0
  410. package/dist/lib/components/InputPhone/utils/flags/np.svg +14 -0
  411. package/dist/lib/components/InputPhone/utils/flags/nr.svg +12 -0
  412. package/dist/lib/components/InputPhone/utils/flags/nu.svg +10 -0
  413. package/dist/lib/components/InputPhone/utils/flags/nz.svg +36 -0
  414. package/dist/lib/components/InputPhone/utils/flags/om.svg +115 -0
  415. package/dist/lib/components/InputPhone/utils/flags/pa.svg +14 -0
  416. package/dist/lib/components/InputPhone/utils/flags/pe.svg +244 -0
  417. package/dist/lib/components/InputPhone/utils/flags/pf.svg +19 -0
  418. package/dist/lib/components/InputPhone/utils/flags/pg.svg +9 -0
  419. package/dist/lib/components/InputPhone/utils/flags/ph.svg +6 -0
  420. package/dist/lib/components/InputPhone/utils/flags/pk.svg +15 -0
  421. package/dist/lib/components/InputPhone/utils/flags/pl.svg +6 -0
  422. package/dist/lib/components/InputPhone/utils/flags/pm.svg +7 -0
  423. package/dist/lib/components/InputPhone/utils/flags/pn.svg +53 -0
  424. package/dist/lib/components/InputPhone/utils/flags/pr.svg +13 -0
  425. package/dist/lib/components/InputPhone/utils/flags/ps.svg +15 -0
  426. package/dist/lib/components/InputPhone/utils/flags/pt.svg +57 -0
  427. package/dist/lib/components/InputPhone/utils/flags/pw.svg +11 -0
  428. package/dist/lib/components/InputPhone/utils/flags/py.svg +157 -0
  429. package/dist/lib/components/InputPhone/utils/flags/qa.svg +4 -0
  430. package/dist/lib/components/InputPhone/utils/flags/re.svg +7 -0
  431. package/dist/lib/components/InputPhone/utils/flags/ro.svg +7 -0
  432. package/dist/lib/components/InputPhone/utils/flags/rs.svg +292 -0
  433. package/dist/lib/components/InputPhone/utils/flags/ru.svg +7 -0
  434. package/dist/lib/components/InputPhone/utils/flags/rw.svg +13 -0
  435. package/dist/lib/components/InputPhone/utils/flags/sa.svg +26 -0
  436. package/dist/lib/components/InputPhone/utils/flags/sb.svg +13 -0
  437. package/dist/lib/components/InputPhone/utils/flags/sc.svg +7 -0
  438. package/dist/lib/components/InputPhone/utils/flags/sd.svg +13 -0
  439. package/dist/lib/components/InputPhone/utils/flags/se.svg +4 -0
  440. package/dist/lib/components/InputPhone/utils/flags/sg.svg +13 -0
  441. package/dist/lib/components/InputPhone/utils/flags/sh.svg +76 -0
  442. package/dist/lib/components/InputPhone/utils/flags/si.svg +18 -0
  443. package/dist/lib/components/InputPhone/utils/flags/sj.svg +7 -0
  444. package/dist/lib/components/InputPhone/utils/flags/sk.svg +9 -0
  445. package/dist/lib/components/InputPhone/utils/flags/sl.svg +7 -0
  446. package/dist/lib/components/InputPhone/utils/flags/sm.svg +75 -0
  447. package/dist/lib/components/InputPhone/utils/flags/sn.svg +8 -0
  448. package/dist/lib/components/InputPhone/utils/flags/so.svg +11 -0
  449. package/dist/lib/components/InputPhone/utils/flags/sr.svg +6 -0
  450. package/dist/lib/components/InputPhone/utils/flags/ss.svg +8 -0
  451. package/dist/lib/components/InputPhone/utils/flags/st.svg +16 -0
  452. package/dist/lib/components/InputPhone/utils/flags/sv.svg +594 -0
  453. package/dist/lib/components/InputPhone/utils/flags/sx.svg +56 -0
  454. package/dist/lib/components/InputPhone/utils/flags/sy.svg +6 -0
  455. package/dist/lib/components/InputPhone/utils/flags/sz.svg +34 -0
  456. package/dist/lib/components/InputPhone/utils/flags/ta.svg +76 -0
  457. package/dist/lib/components/InputPhone/utils/flags/tc.svg +50 -0
  458. package/dist/lib/components/InputPhone/utils/flags/td.svg +7 -0
  459. package/dist/lib/components/InputPhone/utils/flags/tf.svg +15 -0
  460. package/dist/lib/components/InputPhone/utils/flags/tg.svg +14 -0
  461. package/dist/lib/components/InputPhone/utils/flags/th.svg +7 -0
  462. package/dist/lib/components/InputPhone/utils/flags/tj.svg +22 -0
  463. package/dist/lib/components/InputPhone/utils/flags/tk.svg +5 -0
  464. package/dist/lib/components/InputPhone/utils/flags/tl.svg +13 -0
  465. package/dist/lib/components/InputPhone/utils/flags/tm.svg +205 -0
  466. package/dist/lib/components/InputPhone/utils/flags/tn.svg +13 -0
  467. package/dist/lib/components/InputPhone/utils/flags/to.svg +10 -0
  468. package/dist/lib/components/InputPhone/utils/flags/tr.svg +8 -0
  469. package/dist/lib/components/InputPhone/utils/flags/tt.svg +5 -0
  470. package/dist/lib/components/InputPhone/utils/flags/tv.svg +9 -0
  471. package/dist/lib/components/InputPhone/utils/flags/tw.svg +34 -0
  472. package/dist/lib/components/InputPhone/utils/flags/tz.svg +13 -0
  473. package/dist/lib/components/InputPhone/utils/flags/ua.svg +6 -0
  474. package/dist/lib/components/InputPhone/utils/flags/ug.svg +30 -0
  475. package/dist/lib/components/InputPhone/utils/flags/um.svg +15 -0
  476. package/dist/lib/components/InputPhone/utils/flags/un.svg +16 -0
  477. package/dist/lib/components/InputPhone/utils/flags/us.svg +10 -0
  478. package/dist/lib/components/InputPhone/utils/flags/uy.svg +28 -0
  479. package/dist/lib/components/InputPhone/utils/flags/uz.svg +30 -0
  480. package/dist/lib/components/InputPhone/utils/flags/va.svg +479 -0
  481. package/dist/lib/components/InputPhone/utils/flags/vc.svg +8 -0
  482. package/dist/lib/components/InputPhone/utils/flags/ve.svg +26 -0
  483. package/dist/lib/components/InputPhone/utils/flags/vg.svg +63 -0
  484. package/dist/lib/components/InputPhone/utils/flags/vi.svg +28 -0
  485. package/dist/lib/components/InputPhone/utils/flags/vn.svg +11 -0
  486. package/dist/lib/components/InputPhone/utils/flags/vu.svg +21 -0
  487. package/dist/lib/components/InputPhone/utils/flags/wf.svg +7 -0
  488. package/dist/lib/components/InputPhone/utils/flags/ws.svg +7 -0
  489. package/dist/lib/components/InputPhone/utils/flags/xk.svg +8 -0
  490. package/dist/lib/components/InputPhone/utils/flags/xx.svg +4 -0
  491. package/dist/lib/components/InputPhone/utils/flags/ye.svg +7 -0
  492. package/dist/lib/components/InputPhone/utils/flags/yt.svg +7 -0
  493. package/dist/lib/components/InputPhone/utils/flags/za.svg +17 -0
  494. package/dist/lib/components/InputPhone/utils/flags/zm.svg +27 -0
  495. package/dist/lib/components/InputPhone/utils/flags/zw.svg +21 -0
  496. package/dist/lib/components/InputPin/InputPin.tsx +138 -0
  497. package/dist/lib/components/InputPin/index.ts +3 -0
  498. package/dist/lib/components/InputPin/styles.tsx +70 -0
  499. package/dist/lib/components/InputPin/subtypes.ts +11 -0
  500. package/dist/lib/components/InputPin/types.ts +31 -0
  501. package/dist/lib/components/InputSlider/InputSlider.tsx +184 -0
  502. package/dist/lib/components/InputSlider/Slider.tsx +52 -0
  503. package/dist/lib/components/InputSlider/index.ts +3 -0
  504. package/dist/lib/components/InputSlider/styles.tsx +292 -0
  505. package/dist/lib/components/InputSlider/types.ts +14 -0
  506. package/dist/lib/components/Key/Key.tsx +45 -0
  507. package/dist/lib/components/Key/index.ts +3 -0
  508. package/dist/lib/components/Key/styles.tsx +29 -0
  509. package/dist/lib/components/Key/types.ts +11 -0
  510. package/dist/lib/components/LibIcon/LibIcon.tsx +35 -0
  511. package/dist/lib/components/LibIcon/index.ts +3 -0
  512. package/dist/lib/components/LibIcon/types.ts +9 -0
  513. package/dist/lib/components/Linkify/Linkify.tsx +51 -0
  514. package/dist/lib/components/Linkify/index.ts +3 -0
  515. package/dist/lib/components/Linkify/types.ts +8 -0
  516. package/dist/lib/components/ListGroup/ListGroup.tsx +113 -0
  517. package/dist/lib/components/ListGroup/ListGroupItem.tsx +164 -0
  518. package/dist/lib/components/ListGroup/ListGroupTitle.tsx +56 -0
  519. package/dist/lib/components/ListGroup/index.ts +5 -0
  520. package/dist/lib/components/ListGroup/styles.tsx +179 -0
  521. package/dist/lib/components/ListGroup/types.ts +114 -0
  522. package/dist/lib/components/Loader/Loader.tsx +35 -0
  523. package/dist/lib/components/Loader/index.ts +3 -0
  524. package/dist/lib/components/Loader/styles.tsx +140 -0
  525. package/dist/lib/components/Loader/templates/LoaderFour.tsx +24 -0
  526. package/dist/lib/components/Loader/templates/LoaderOne.tsx +24 -0
  527. package/dist/lib/components/Loader/templates/LoaderThree.tsx +29 -0
  528. package/dist/lib/components/Loader/templates/LoaderTwo.tsx +24 -0
  529. package/dist/lib/components/Loader/types.ts +25 -0
  530. package/dist/lib/components/Main/Main.tsx +45 -0
  531. package/dist/lib/components/Main/index.ts +3 -0
  532. package/dist/lib/components/Main/styles.tsx +61 -0
  533. package/dist/lib/components/Main/types.ts +19 -0
  534. package/dist/lib/components/MarkdownContainer/MarkdownContainer.tsx +35 -0
  535. package/dist/lib/components/MarkdownContainer/index.ts +3 -0
  536. package/dist/lib/components/MarkdownContainer/styles.tsx +17 -0
  537. package/dist/lib/components/MarkdownContainer/types.ts +9 -0
  538. package/dist/lib/components/MarkdownEditor/MarkdownEditor.tsx +196 -0
  539. package/dist/lib/components/MarkdownEditor/MdEditorButtons/EditorButtonTitles.tsx +77 -0
  540. package/dist/lib/components/MarkdownEditor/MdEditorButtons/EditorButtons.tsx +75 -0
  541. package/dist/lib/components/MarkdownEditor/MdEditorButtons/MarkdownButtons.tsx +54 -0
  542. package/dist/lib/components/MarkdownEditor/MdEditorInput.tsx +98 -0
  543. package/dist/lib/components/MarkdownEditor/index.ts +3 -0
  544. package/dist/lib/components/MarkdownEditor/markdown-buttons.tsx +182 -0
  545. package/dist/lib/components/MarkdownEditor/styles.tsx +186 -0
  546. package/dist/lib/components/MarkdownEditor/subtypes.ts +54 -0
  547. package/dist/lib/components/MarkdownEditor/types.ts +59 -0
  548. package/dist/lib/components/Masonry/Masonry.tsx +67 -0
  549. package/dist/lib/components/Masonry/index.ts +3 -0
  550. package/dist/lib/components/Masonry/styles.tsx +24 -0
  551. package/dist/lib/components/Masonry/types.ts +10 -0
  552. package/dist/lib/components/Masonry/utils.ts +30 -0
  553. package/dist/lib/components/Messaging/Message.tsx +106 -0
  554. package/dist/lib/components/Messaging/MessageForm.tsx +144 -0
  555. package/dist/lib/components/Messaging/MessagesContainer.tsx +29 -0
  556. package/dist/lib/components/Messaging/MessagesList.tsx +136 -0
  557. package/dist/lib/components/Messaging/Messaging.tsx +123 -0
  558. package/dist/lib/components/Messaging/index.ts +7 -0
  559. package/dist/lib/components/Messaging/styles.tsx +177 -0
  560. package/dist/lib/components/Messaging/types.ts +131 -0
  561. package/dist/lib/components/Modal/Modal.tsx +127 -0
  562. package/dist/lib/components/Modal/index.ts +3 -0
  563. package/dist/lib/components/Modal/styles.tsx +62 -0
  564. package/dist/lib/components/Modal/types.ts +38 -0
  565. package/dist/lib/components/PageLayout/PageLayout.tsx +86 -0
  566. package/dist/lib/components/PageLayout/index.ts +3 -0
  567. package/dist/lib/components/PageLayout/types.ts +47 -0
  568. package/dist/lib/components/PageLoading/PageLoading.tsx +64 -0
  569. package/dist/lib/components/PageLoading/index.ts +3 -0
  570. package/dist/lib/components/PageLoading/styles.tsx +24 -0
  571. package/dist/lib/components/PageLoading/types.ts +15 -0
  572. package/dist/lib/components/Pagination/Pagination.tsx +263 -0
  573. package/dist/lib/components/Pagination/PaginationButton.tsx +51 -0
  574. package/dist/lib/components/Pagination/index.ts +4 -0
  575. package/dist/lib/components/Pagination/styles.tsx +78 -0
  576. package/dist/lib/components/Pagination/types.ts +61 -0
  577. package/dist/lib/components/Paginator/Paginator.tsx +162 -0
  578. package/dist/lib/components/Paginator/index.ts +3 -0
  579. package/dist/lib/components/Paginator/styles.tsx +36 -0
  580. package/dist/lib/components/Paginator/types.ts +16 -0
  581. package/dist/lib/components/ProgressBar/ProgressBar.tsx +68 -0
  582. package/dist/lib/components/ProgressBar/index.ts +3 -0
  583. package/dist/lib/components/ProgressBar/styles.tsx +55 -0
  584. package/dist/lib/components/ProgressBar/types.ts +13 -0
  585. package/dist/lib/components/ProgressCircle/Circle.tsx +30 -0
  586. package/dist/lib/components/ProgressCircle/ProgressCircle.tsx +93 -0
  587. package/dist/lib/components/ProgressCircle/ProgressCircleFn.tsx +48 -0
  588. package/dist/lib/components/ProgressCircle/Value.tsx +31 -0
  589. package/dist/lib/components/ProgressCircle/clean-percentage.ts +7 -0
  590. package/dist/lib/components/ProgressCircle/index.ts +3 -0
  591. package/dist/lib/components/ProgressCircle/styles.tsx +55 -0
  592. package/dist/lib/components/ProgressCircle/subtypes.ts +11 -0
  593. package/dist/lib/components/ProgressCircle/types.ts +31 -0
  594. package/dist/lib/components/Rating/Rating.tsx +177 -0
  595. package/dist/lib/components/Rating/index.ts +3 -0
  596. package/dist/lib/components/Rating/styles.tsx +56 -0
  597. package/dist/lib/components/Rating/types.ts +24 -0
  598. package/dist/lib/components/ResetScroll/ResetScroll.tsx +22 -0
  599. package/dist/lib/components/ResetScroll/index.ts +3 -0
  600. package/dist/lib/components/Section/Section.tsx +30 -0
  601. package/dist/lib/components/Section/index.ts +3 -0
  602. package/dist/lib/components/Section/styles.tsx +24 -0
  603. package/dist/lib/components/Section/types.ts +7 -0
  604. package/dist/lib/components/Select/Select.tsx +284 -0
  605. package/dist/lib/components/Select/SelectButton.tsx +58 -0
  606. package/dist/lib/components/Select/index.ts +3 -0
  607. package/dist/lib/components/Select/styles.tsx +22 -0
  608. package/dist/lib/components/Select/subtypes.ts +32 -0
  609. package/dist/lib/components/Select/types.ts +33 -0
  610. package/dist/lib/components/Skeleton/Skeleton.tsx +60 -0
  611. package/dist/lib/components/Skeleton/SkeletonCard.tsx +78 -0
  612. package/dist/lib/components/Skeleton/SkeletonShine.tsx +26 -0
  613. package/dist/lib/components/Skeleton/index.ts +5 -0
  614. package/dist/lib/components/Skeleton/styles.tsx +102 -0
  615. package/dist/lib/components/Skeleton/subtypes.ts +16 -0
  616. package/dist/lib/components/Skeleton/types.ts +39 -0
  617. package/dist/lib/components/Slideshow/Slideshow.tsx +218 -0
  618. package/dist/lib/components/Slideshow/SlideshowButton.tsx +99 -0
  619. package/dist/lib/components/Slideshow/SlideshowPagination.tsx +84 -0
  620. package/dist/lib/components/Slideshow/index.ts +3 -0
  621. package/dist/lib/components/Slideshow/styles.tsx +361 -0
  622. package/dist/lib/components/Slideshow/subtypes.ts +22 -0
  623. package/dist/lib/components/Slideshow/types.ts +99 -0
  624. package/dist/lib/components/SrOnly/SrOnly.tsx +23 -0
  625. package/dist/lib/components/SrOnly/index.ts +3 -0
  626. package/dist/lib/components/SrOnly/styles.tsx +21 -0
  627. package/dist/lib/components/SrOnly/types.ts +5 -0
  628. package/dist/lib/components/Stepper/Step.tsx +118 -0
  629. package/dist/lib/components/Stepper/Stepper.tsx +96 -0
  630. package/dist/lib/components/Stepper/index.ts +4 -0
  631. package/dist/lib/components/Stepper/styles.tsx +115 -0
  632. package/dist/lib/components/Stepper/types.ts +48 -0
  633. package/dist/lib/components/Sticky/Sticky.tsx +30 -0
  634. package/dist/lib/components/Sticky/index.ts +3 -0
  635. package/dist/lib/components/Sticky/styles.tsx +15 -0
  636. package/dist/lib/components/Sticky/types.ts +7 -0
  637. package/dist/lib/components/Table/TBody.tsx +17 -0
  638. package/dist/lib/components/Table/THead.tsx +17 -0
  639. package/dist/lib/components/Table/Table.tsx +124 -0
  640. package/dist/lib/components/Table/Td.tsx +26 -0
  641. package/dist/lib/components/Table/Tr.tsx +17 -0
  642. package/dist/lib/components/Table/index.ts +7 -0
  643. package/dist/lib/components/Table/styles.tsx +120 -0
  644. package/dist/lib/components/Table/types.ts +52 -0
  645. package/dist/lib/components/Tabs/TabButton.tsx +50 -0
  646. package/dist/lib/components/Tabs/TabItem.tsx +34 -0
  647. package/dist/lib/components/Tabs/Tabs.tsx +137 -0
  648. package/dist/lib/components/Tabs/TabsButtonsContainer.tsx +46 -0
  649. package/dist/lib/components/Tabs/TabsContainer.tsx +23 -0
  650. package/dist/lib/components/Tabs/index.ts +7 -0
  651. package/dist/lib/components/Tabs/styles.tsx +178 -0
  652. package/dist/lib/components/Tabs/types.ts +60 -0
  653. package/dist/lib/components/Tag/Tag.tsx +97 -0
  654. package/dist/lib/components/Tag/index.ts +3 -0
  655. package/dist/lib/components/Tag/styles.tsx +41 -0
  656. package/dist/lib/components/Tag/types.ts +43 -0
  657. package/dist/lib/components/Text/Text.tsx +69 -0
  658. package/dist/lib/components/Text/index.ts +3 -0
  659. package/dist/lib/components/Text/styles.tsx +230 -0
  660. package/dist/lib/components/Text/subtypes.ts +15 -0
  661. package/dist/lib/components/Text/templates/Blockquote.tsx +34 -0
  662. package/dist/lib/components/Text/templates/Dl.tsx +34 -0
  663. package/dist/lib/components/Text/templates/Em.tsx +34 -0
  664. package/dist/lib/components/Text/templates/H1.tsx +36 -0
  665. package/dist/lib/components/Text/templates/H2.tsx +36 -0
  666. package/dist/lib/components/Text/templates/H3.tsx +36 -0
  667. package/dist/lib/components/Text/templates/H4.tsx +36 -0
  668. package/dist/lib/components/Text/templates/H5.tsx +36 -0
  669. package/dist/lib/components/Text/templates/H6.tsx +34 -0
  670. package/dist/lib/components/Text/templates/Ol.tsx +34 -0
  671. package/dist/lib/components/Text/templates/P.tsx +34 -0
  672. package/dist/lib/components/Text/templates/Small.tsx +34 -0
  673. package/dist/lib/components/Text/templates/Strong.tsx +34 -0
  674. package/dist/lib/components/Text/templates/Ul.tsx +34 -0
  675. package/dist/lib/components/Text/types.ts +28 -0
  676. package/dist/lib/components/TextIcon/TextIcon.tsx +104 -0
  677. package/dist/lib/components/TextIcon/index.ts +3 -0
  678. package/dist/lib/components/TextIcon/styles.tsx +38 -0
  679. package/dist/lib/components/TextIcon/types.ts +21 -0
  680. package/dist/lib/components/TextIcon/utils.ts +56 -0
  681. package/dist/lib/components/Timepicker/Timepicker.tsx +294 -0
  682. package/dist/lib/components/Timepicker/index.ts +3 -0
  683. package/dist/lib/components/Timepicker/styles.tsx +34 -0
  684. package/dist/lib/components/Timepicker/types.ts +69 -0
  685. package/dist/lib/components/Toast/Toast.tsx +213 -0
  686. package/dist/lib/components/Toast/Toaster.tsx +179 -0
  687. package/dist/lib/components/Toast/index.ts +3 -0
  688. package/dist/lib/components/Toast/styles.tsx +217 -0
  689. package/dist/lib/components/Toast/types.ts +41 -0
  690. package/dist/lib/components/Tooltip/Tooltip.tsx +120 -0
  691. package/dist/lib/components/Tooltip/index.ts +3 -0
  692. package/dist/lib/components/Tooltip/styles.tsx +151 -0
  693. package/dist/lib/components/Tooltip/types.ts +22 -0
  694. package/dist/lib/components/Truncate/Truncate.tsx +113 -0
  695. package/dist/lib/components/Truncate/index.ts +3 -0
  696. package/dist/lib/components/Truncate/styles.tsx +37 -0
  697. package/dist/lib/components/Truncate/types.ts +7 -0
  698. package/dist/lib/components/Video/Video.tsx +66 -0
  699. package/dist/lib/components/Video/index.ts +3 -0
  700. package/dist/lib/components/Video/styles.tsx +24 -0
  701. package/dist/lib/components/Video/types.ts +22 -0
  702. package/dist/lib/components/Wrapper/Wrapper.tsx +43 -0
  703. package/dist/lib/components/Wrapper/index.ts +3 -0
  704. package/dist/lib/components/Wrapper/styles.tsx +29 -0
  705. package/dist/lib/components/Wrapper/types.ts +9 -0
  706. package/dist/lib/components/Youtube/Youtube.tsx +44 -0
  707. package/dist/lib/components/Youtube/index.ts +3 -0
  708. package/dist/lib/components/Youtube/styles.tsx +20 -0
  709. package/dist/lib/components/Youtube/types.ts +11 -0
  710. package/dist/lib/context/Theme.context.tsx +96 -0
  711. package/dist/lib/context/Toaster/Toaster.context.tsx +132 -0
  712. package/dist/lib/context/Toaster/index.ts +3 -0
  713. package/dist/lib/context/Toaster/toast.reducer.ts +36 -0
  714. package/dist/lib/hooks/index.ts +17 -0
  715. package/dist/lib/hooks/useClickOutside.tsx +37 -0
  716. package/dist/lib/hooks/useCopyToClipboard.tsx +33 -0
  717. package/dist/lib/hooks/useDebounce.tsx +21 -0
  718. package/dist/lib/hooks/useExportData.tsx +50 -0
  719. package/dist/lib/hooks/useFetch.tsx +25 -0
  720. package/dist/lib/hooks/useForm.tsx +28 -0
  721. package/dist/lib/hooks/useIsOverflow.ts +44 -0
  722. package/dist/lib/hooks/useKeyPress.tsx +95 -0
  723. package/dist/lib/hooks/useMaxWidth.tsx +28 -0
  724. package/dist/lib/hooks/useMergeRefs.ts +33 -0
  725. package/dist/lib/hooks/useMinWidth.tsx +28 -0
  726. package/dist/lib/hooks/usePaginatedData.tsx +32 -0
  727. package/dist/lib/hooks/usePagination.tsx +112 -0
  728. package/dist/lib/hooks/useTouchScreen.tsx +21 -0
  729. package/dist/lib/hooks/useTranslation.tsx +30 -0
  730. package/dist/lib/icons/ArrowUp.tsx +32 -0
  731. package/dist/lib/icons/Bold.tsx +32 -0
  732. package/dist/lib/icons/Calendar.tsx +40 -0
  733. package/dist/lib/icons/CaretDown.tsx +32 -0
  734. package/dist/lib/icons/Check.tsx +32 -0
  735. package/dist/lib/icons/CheckCircle.tsx +38 -0
  736. package/dist/lib/icons/ChevronDown.tsx +32 -0
  737. package/dist/lib/icons/ChevronLeft.tsx +32 -0
  738. package/dist/lib/icons/ChevronRight.tsx +32 -0
  739. package/dist/lib/icons/ChevronUp.tsx +32 -0
  740. package/dist/lib/icons/Clipboard.tsx +32 -0
  741. package/dist/lib/icons/Clock.tsx +35 -0
  742. package/dist/lib/icons/Close.tsx +32 -0
  743. package/dist/lib/icons/CloseCircle.tsx +38 -0
  744. package/dist/lib/icons/Code.tsx +32 -0
  745. package/dist/lib/icons/CodeBlock.tsx +42 -0
  746. package/dist/lib/icons/Comment.tsx +42 -0
  747. package/dist/lib/icons/Drag.tsx +32 -0
  748. package/dist/lib/icons/Edit.tsx +38 -0
  749. package/dist/lib/icons/EditorCode.tsx +36 -0
  750. package/dist/lib/icons/EditorLive.tsx +36 -0
  751. package/dist/lib/icons/EditorPreview.tsx +36 -0
  752. package/dist/lib/icons/Hide.tsx +32 -0
  753. package/dist/lib/icons/Image.tsx +42 -0
  754. package/dist/lib/icons/Italic.tsx +32 -0
  755. package/dist/lib/icons/Link.tsx +36 -0
  756. package/dist/lib/icons/Minus.tsx +29 -0
  757. package/dist/lib/icons/OrderedList.tsx +32 -0
  758. package/dist/lib/icons/Plus.tsx +32 -0
  759. package/dist/lib/icons/Quote.tsx +32 -0
  760. package/dist/lib/icons/Search.tsx +38 -0
  761. package/dist/lib/icons/Send.tsx +32 -0
  762. package/dist/lib/icons/Separator.tsx +32 -0
  763. package/dist/lib/icons/Show.tsx +38 -0
  764. package/dist/lib/icons/Star.tsx +32 -0
  765. package/dist/lib/icons/StarFull.tsx +32 -0
  766. package/dist/lib/icons/Strikethrough.tsx +32 -0
  767. package/dist/lib/icons/Underline.tsx +36 -0
  768. package/dist/lib/icons/UnorderedList.tsx +32 -0
  769. package/dist/lib/icons/index.ts +41 -0
  770. package/dist/lib/icons/styles.tsx +19 -0
  771. package/dist/lib/icons/types.ts +11 -0
  772. package/dist/lib/index.css +1421 -0
  773. package/dist/lib/index.ts +153 -0
  774. package/dist/lib/lib-utils/append-styles.ts +9 -0
  775. package/dist/lib/lib-utils/colors-maps.ts +176 -0
  776. package/dist/lib/lib-utils/get-highlighted-text.tsx +31 -0
  777. package/dist/lib/lib-utils/get-icon-size-from-font.ts +27 -0
  778. package/dist/lib/lib-utils/index.ts +11 -0
  779. package/dist/lib/lib-utils/round-icon-size.ts +7 -0
  780. package/dist/lib/lib-utils/transfom-search-keys.ts +15 -0
  781. package/dist/lib/modules-declare.d.ts +18 -0
  782. package/dist/lib/types/component-items.ts +514 -0
  783. package/dist/lib/types/components-props.ts +81 -0
  784. package/dist/lib/types/generate-int-range.ts +19 -0
  785. package/dist/lib/types/global.ts +442 -0
  786. package/dist/lib/types/index.ts +7 -0
  787. package/dist/lib/types/require-at-least-one.ts +7 -0
  788. package/dist/lib/types/theme.ts +168 -0
  789. package/dist/lib/types/type-values.ts +2219 -0
  790. package/dist/lib/utils/StyleSheetManager.tsx +31 -0
  791. package/dist/lib/utils/index.ts +6 -0
  792. package/dist/lib/utils/lib-tokens.json +860 -0
  793. package/dist/lib/utils/linkify-text.tsx +28 -0
  794. package/dist/lib/utils/options-markdown.ts +133 -0
  795. package/dist/lib/utils/set-default-theme.ts +14 -0
  796. package/dist/styles-CVN0uFDU.cjs +7 -0
  797. package/dist/styles-DM9qlYpR.js +16 -0
  798. package/package.json +102 -0
@@ -0,0 +1,139 @@
1
+ /*=============================================== ButtonIcon component ===============================================*/
2
+
3
+ import { forwardRef } from "react"
4
+ import { capitalize } from "ts-utils-julseb"
5
+ import { Tooltip } from "../../"
6
+ import { roundIconSize } from "../../lib-utils"
7
+ import { ButtonIconFunction } from "./ButtonFunction"
8
+ import type { ILibButtonIcon } from "./types"
9
+
10
+ /**
11
+ * @description Returns a ButtonIcon component
12
+ * @link https://documentation-components-react.vercel.app/components/button-icon
13
+ * @extends HTMLButtonElement
14
+ * @prop data-testid?: string
15
+ * @prop as?: ElementType
16
+ * @prop ref?: ForwardedRef<HTMLButtonElement & HTMLAnchorElement>
17
+ * @prop onClick?: void => only if `to` or `href` are not defined
18
+ * @prop disabled?: boolean => only if `onClick` is defined
19
+ * @prop to?: string => only if `onClick` and `href` are not defined
20
+ * @prop href?: string => only if `onClick` and `to` are not defined
21
+ * @prop blank?: boolean => only if `to` or `href` are defined
22
+ * @prop icon: string | JSX.Element
23
+ * @prop iconSize?: number
24
+ * @prop iconBaseUrl?: string
25
+ * @prop size?: number
26
+ * @prop shadow?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | { default: "xxl" | "xl" | "l" | "m" | "s" | "xs"; hover: "xxl" | "xl" | "l" | "m" | "s" | "xs"; active: "xxl" | "xl" | "l" | "m" | "s" | "xs" }
27
+ * @prop borderRadius?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "round" | "circle" | number | { topLeft?: LibRadiuses; topRight?: LibRadiuses; bottomLeft?: LibRadiuses; bottomRight?: LibRadiuses }
28
+ * @prop color?: "primary" | "secondary" | "success" | "danger" | "warning" | "white" | "gray" | "font" | "background"
29
+ * @prop variant?: "plain" | "ghost" | "transparent"
30
+ * @prop showBackgroundHover?: boolean => only if variant is set to transparent
31
+ * @prop isLoading?: boolean
32
+ * @prop loaderVariant?: 1 | 2 | 3 | 4 => only if isLoading is defined
33
+ * @prop loaderBorderWidth?: number => only if loaderVariant is set to 1 | 2 | 3
34
+ * @prop tooltip?: string
35
+ * @prop showTooltip?: boolean | { position?: "top" | "bottom" | "left" | "right"; offset?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"; backgroundColor?: Any color from the library; textColor?: Any color from the library; hideArrow?: boolean } => only if tooltip is defined
36
+ * @prop containerStyle?: CSSProperties => only if tooltip is defined
37
+ */
38
+ export const ButtonIcon = forwardRef<
39
+ HTMLButtonElement & HTMLAnchorElement,
40
+ ILibButtonIcon
41
+ >(
42
+ (
43
+ {
44
+ "data-testid": testid,
45
+ as,
46
+ size = 32,
47
+ icon,
48
+ iconSize = roundIconSize(size),
49
+ shadow,
50
+ borderRadius = "circle",
51
+ tooltip,
52
+ showTooltip,
53
+ "aria-label": ariaLabel = capitalize(
54
+ typeof icon === "string" ? icon : "button icon"
55
+ ),
56
+ to,
57
+ href,
58
+ blank,
59
+ variant = "plain",
60
+ showBackgroundHover,
61
+ isLoading,
62
+ loaderVariant,
63
+ loaderBorderWidth = 2,
64
+ disabled,
65
+ "aria-disabled": ariaDisabled = isLoading || disabled,
66
+ color = "primary",
67
+ className,
68
+ containerStyle,
69
+ ...rest
70
+ },
71
+ ref
72
+ ) => {
73
+ const props = {
74
+ "data-testid": testid,
75
+ as,
76
+ className,
77
+ showTooltip,
78
+ to,
79
+ href,
80
+ isLoading,
81
+ disabled,
82
+ "aria-disabled": ariaDisabled,
83
+ "aria-label": ariaLabel,
84
+ blank,
85
+ variant,
86
+ showBackgroundHover,
87
+ borderRadius,
88
+ color,
89
+ shadow,
90
+ size,
91
+ loaderVariant,
92
+ icon,
93
+ iconSize,
94
+ loaderBorderWidth,
95
+ ref,
96
+ ...rest,
97
+ }
98
+
99
+ if (tooltip && showTooltip)
100
+ return (
101
+ <Tooltip
102
+ data-testid={testid}
103
+ className={className}
104
+ tooltip={tooltip}
105
+ position={
106
+ typeof showTooltip === "object" && showTooltip?.position
107
+ ? showTooltip.position
108
+ : "top"
109
+ }
110
+ offset={
111
+ typeof showTooltip === "object" && showTooltip?.offset
112
+ ? showTooltip.offset
113
+ : undefined
114
+ }
115
+ hideArrow={
116
+ typeof showTooltip === "object" && showTooltip.hideArrow
117
+ ? showTooltip.hideArrow
118
+ : false
119
+ }
120
+ backgroundColor={
121
+ typeof showTooltip === "object" &&
122
+ showTooltip.backgroundColor
123
+ ? showTooltip.backgroundColor
124
+ : "black-80"
125
+ }
126
+ textColor={
127
+ typeof showTooltip === "object" && showTooltip.textColor
128
+ ? showTooltip.textColor
129
+ : "white"
130
+ }
131
+ style={containerStyle}
132
+ >
133
+ <ButtonIconFunction {...(props as any)} />
134
+ </Tooltip>
135
+ )
136
+
137
+ return <ButtonIconFunction {...(props as any)} />
138
+ }
139
+ )
@@ -0,0 +1,3 @@
1
+ /*=============================================== ButtonIcon exports ===============================================*/
2
+
3
+ export * from "./ButtonIcon"
@@ -0,0 +1,31 @@
1
+ /*=============================================== ButtonIcon styles ===============================================*/
2
+
3
+ import styled, { css } from "styled-components"
4
+ import { stringifyPx } from "ts-utils-julseb"
5
+ import { BREAKPOINTS, setDefaultTheme } from "../../"
6
+ import { ButtonMixin } from "../ComponentsMixins"
7
+ import type { ILibButtonIconStyles } from "./subtypes"
8
+
9
+ const StyledButtonIcon = styled.button<ILibButtonIconStyles>`
10
+ ${ButtonMixin}
11
+ position: relative;
12
+ padding: 0;
13
+ z-index: 0;
14
+ width: ${({ $size }) => stringifyPx($size)};
15
+ height: ${({ $size }) => stringifyPx($size)};
16
+
17
+ ${({ $variant, $showBackgroundHover, theme }) =>
18
+ $variant === "transparent" &&
19
+ $showBackgroundHover &&
20
+ css`
21
+ @media ${BREAKPOINTS.HOVER} {
22
+ &:not(:disabled):hover {
23
+ background-color: ${theme.GRAY_50};
24
+ }
25
+ }
26
+ `}
27
+ `
28
+
29
+ setDefaultTheme([StyledButtonIcon])
30
+
31
+ export { StyledButtonIcon }
@@ -0,0 +1,12 @@
1
+ /*=============================================== ButtonIcon sub components types ===============================================*/
2
+
3
+ import type { LibButtonVariant } from "../../types"
4
+ import type { ILibButtonMixin } from "../ComponentsMixins"
5
+
6
+ // ! DO NOT EXPORT THOSE TYPES, ONLY USE THEM IN BUTTON_ICON COMPONENTS
7
+
8
+ export interface ILibButtonIconStyles extends ILibButtonMixin {
9
+ $variant?: Extract<LibButtonVariant, "plain" | "transparent" | "ghost">
10
+ $size: number
11
+ $showBackgroundHover?: boolean
12
+ }
@@ -0,0 +1,90 @@
1
+ /*=============================================== ButtonIcon types ===============================================*/
2
+
3
+ import type { ButtonHTMLAttributes, CSSProperties } from "react"
4
+ import type {
5
+ LibComponentBase,
6
+ LibIcon,
7
+ ILibBoxShadow,
8
+ ILibRadius,
9
+ LibButtonLinkBlank,
10
+ LibColorsHover,
11
+ LibTooltipPosition,
12
+ LibSpacers,
13
+ LibButtonIconVariant,
14
+ LibLoaderVariant,
15
+ LibAllColors,
16
+ } from "../../types"
17
+
18
+ type ILibButtonIconBase = LibComponentBase<
19
+ HTMLButtonElement & HTMLAnchorElement
20
+ > &
21
+ ButtonHTMLAttributes<HTMLButtonElement & HTMLAnchorElement> &
22
+ LibButtonLinkBlank & {
23
+ icon: LibIcon
24
+ iconSize?: number
25
+ iconBaseUrl?: string
26
+ size?: number
27
+ shadow?: ILibBoxShadow
28
+ borderRadius?: ILibRadius
29
+ color?: LibColorsHover
30
+ children?: never
31
+ }
32
+
33
+ type ButtonIconVariantsBackground = ILibButtonIconBase & {
34
+ variant?: Extract<LibButtonIconVariant, "plain" | "ghost">
35
+ showBackgroundHover?: never
36
+ }
37
+
38
+ type ButtonIconVariantsWithoutBackground = ILibButtonIconBase & {
39
+ variant?: Extract<LibButtonIconVariant, "transparent">
40
+ showBackgroundHover?: boolean
41
+ }
42
+
43
+ type ButtonIconVariant =
44
+ | ButtonIconVariantsBackground
45
+ | ButtonIconVariantsWithoutBackground
46
+
47
+ type ButtonIconLoading = ButtonIconVariant & {
48
+ isLoading?: boolean
49
+ loaderVariant?: Extract<LibLoaderVariant, 1 | 2 | 3>
50
+ loaderBorderWidth?: number
51
+ }
52
+
53
+ type ButtonIconLoadingVariant = ButtonIconVariant & {
54
+ isLoading?: boolean
55
+ loaderVariant?: Extract<LibLoaderVariant, 4>
56
+ loaderBorderWidth?: never
57
+ }
58
+
59
+ type ButtonIconNotLoading = ButtonIconVariant & {
60
+ isLoading?: undefined
61
+ loaderVariant?: never
62
+ loaderBorderWidth?: never
63
+ }
64
+
65
+ type ILibButtonIconAndLoader =
66
+ | ButtonIconLoading
67
+ | ButtonIconLoadingVariant
68
+ | ButtonIconNotLoading
69
+
70
+ type ButtonIconWithTooltip = ILibButtonIconAndLoader & {
71
+ tooltip?: string
72
+ showTooltip?:
73
+ | boolean
74
+ | {
75
+ position?: LibTooltipPosition
76
+ offset?: LibSpacers
77
+ backgroundColor?: LibAllColors
78
+ textColor?: LibAllColors
79
+ hideArrow?: boolean
80
+ }
81
+ containerStyle?: CSSProperties
82
+ }
83
+
84
+ type ButtonIconWithoutTooltip = ILibButtonIconAndLoader & {
85
+ tooltip?: undefined
86
+ showTooltip?: never
87
+ containerStyle?: never
88
+ }
89
+
90
+ export type ILibButtonIcon = ButtonIconWithTooltip | ButtonIconWithoutTooltip
@@ -0,0 +1,114 @@
1
+ /*=============================================== Card component ===============================================*/
2
+
3
+ import { forwardRef } from "react"
4
+ import { Link } from "react-router-dom"
5
+ import { Flexbox } from "../../"
6
+ import { StyledCard } from "./styles"
7
+ import type { ILibCard } from "./types"
8
+
9
+ /**
10
+ * @description Returns a Card component
11
+ * @link https://documentation-components-react.vercel.app/components/card
12
+ * @extends ILibFlexbox
13
+ * @prop data-testid?: string
14
+ * @prop as?: ElementType
15
+ * @prop ref?: ForwardedRef<HTMLDivElement>
16
+ * @prop onClick?: void => only if `to` or `href` are not defined
17
+ * @prop disabled?: boolean => only if `onClick` is defined
18
+ * @prop to?: string => only if `onClick` and `href` are not defined
19
+ * @prop href?: string => only if `onClick` and `to` are not defined
20
+ * @prop blank?: boolean => only if `to` or `href` are defined
21
+ * @prop inline?: boolean
22
+ * @prop flexDirection?: CssFlexDirection
23
+ * @prop flexWrap?: CssFlexWrap
24
+ * @prop justifyContent?: CssJustifyContent
25
+ * @prop alignItems?: CssAlignItems
26
+ * @prop justifyItems?: CssJustifyItems
27
+ * @prop alignContent?: CssAlignContent
28
+ * @prop gap?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
29
+ * @prop columnGap?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
30
+ * @prop rowGap?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
31
+ * @prop padding?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px" | { left?: LibSpacers | "auto"; top?: LibSpacers | "auto"; right?: LibSpacers | "auto"; bottom?: LibSpacers | "auto"; leftRight?: LibSpacers | "auto"; topBottom?: LibSpacers | "auto" }
32
+ * @prop border?: { style?: CssBorderStyle; width?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"; color?: Any color from the library }
33
+ * @prop borderRadius?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "round" | "circle" | number | { topLeft?: LibRadiuses; topRight?: LibRadiuses; bottomLeft?: LibRadiuses; bottomRight?: LibRadiuses }
34
+ * @prop cursor?: CssCursor
35
+ * @prop width?: string | number
36
+ * @prop height?: string | number
37
+ * @prop shadow?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | { default: "xxl" | "xl" | "l" | "m" | "s" | "xs"; hover: "xxl" | "xl" | "l" | "m" | "s" | "xs"; active: "xxl" | "xl" | "l" | "m" | "s" | "xs" }
38
+ * @prop backgroundColor?: Any color from the library
39
+ * @prop textColor?: Any color from the library
40
+ * @prop backgroundImg?: { img: string; clip?: CssBackgroundClip; origin?: CssBackgroundOrigin; position?: CssBackgroundPosition; repeat?: CssBackgroundRepeat; size?: CssBackgroundSize }
41
+ * @prop textAlign?: CssTextAlign
42
+ */
43
+ export const Card = forwardRef<HTMLDivElement, ILibCard>(
44
+ (
45
+ {
46
+ "data-testid": testid,
47
+ as,
48
+ children,
49
+ border,
50
+ borderRadius,
51
+ padding,
52
+ cursor,
53
+ width = "100%",
54
+ height,
55
+ shadow,
56
+ backgroundColor = "background",
57
+ textColor = "font",
58
+ backgroundImg,
59
+ textAlign = "left",
60
+ href,
61
+ to,
62
+ blank,
63
+ onClick,
64
+ ...rest
65
+ },
66
+ ref
67
+ ) => {
68
+ return (
69
+ <StyledCard
70
+ data-testid={testid}
71
+ ref={ref}
72
+ as={
73
+ as
74
+ ? as
75
+ : to
76
+ ? Link
77
+ : href
78
+ ? "a"
79
+ : onClick
80
+ ? "button"
81
+ : Flexbox
82
+ }
83
+ to={to}
84
+ href={href}
85
+ target={blank ? "_blank" : undefined}
86
+ rel={blank ? "noreferrer noopener" : undefined}
87
+ onClick={onClick}
88
+ $border={border}
89
+ $borderRadius={borderRadius}
90
+ $padding={padding}
91
+ $cursor={cursor}
92
+ $width={width}
93
+ $height={height}
94
+ $shadow={shadow}
95
+ $backgroundColor={backgroundColor}
96
+ $textColor={textColor}
97
+ $backgroundImg={
98
+ backgroundImg && {
99
+ $img: backgroundImg.img,
100
+ $clip: backgroundImg.clip,
101
+ $origin: backgroundImg.origin,
102
+ $position: backgroundImg.position,
103
+ $repeat: backgroundImg.repeat,
104
+ $size: backgroundImg.size,
105
+ }
106
+ }
107
+ $textAlign={textAlign}
108
+ {...rest}
109
+ >
110
+ {children}
111
+ </StyledCard>
112
+ )
113
+ }
114
+ )
@@ -0,0 +1,3 @@
1
+ /*=============================================== Card exports ===============================================*/
2
+
3
+ export * from "./Card"
@@ -0,0 +1,57 @@
1
+ /*=============================================== Card styles ===============================================*/
2
+
3
+ import styled from "styled-components"
4
+ import type { Property } from "csstype"
5
+ import { stringifyPx } from "ts-utils-julseb"
6
+ import { setDefaultTheme, Flexbox, Mixins } from "../../"
7
+ import type {
8
+ CssCursor,
9
+ LibAllColors,
10
+ ILibBorder,
11
+ ILibBoxShadow,
12
+ ILibPadding,
13
+ ILibRadius,
14
+ CssTextAlign,
15
+ } from "../../types"
16
+
17
+ const StyledCard = styled(Flexbox)<{
18
+ $border?: ILibBorder
19
+ $borderRadius?: ILibRadius
20
+ $padding?: ILibPadding
21
+ $cursor?: CssCursor
22
+ $width?: string | number
23
+ $height?: string | number
24
+ $shadow?: ILibBoxShadow
25
+ $backgroundColor: LibAllColors
26
+ $textColor: LibAllColors
27
+ $backgroundImg?: {
28
+ $img: string
29
+ $clip?: Property.BackgroundClip
30
+ $origin?: Property.BackgroundOrigin
31
+ $position?: Property.BackgroundPosition
32
+ $repeat?: Property.BackgroundRepeat
33
+ $size?: Property.BackgroundSize
34
+ }
35
+ $textAlign?: CssTextAlign
36
+ }>`
37
+ text-decoration: none;
38
+ overflow: hidden;
39
+ position: relative;
40
+ cursor: ${({ $cursor }) => $cursor};
41
+ width: ${({ $width }) => $width && stringifyPx($width)};
42
+ height: ${({ $height }) => $height && stringifyPx($height)};
43
+ background-color: ${({ theme, $backgroundColor }) =>
44
+ Mixins.AllColors($backgroundColor, theme)};
45
+ color: ${({ theme, $textColor }) => Mixins.AllColors($textColor, theme)};
46
+ text-align: ${({ $textAlign }) => $textAlign};
47
+ ${({ $borderRadius }) => Mixins.BorderRadius($borderRadius)};
48
+ ${({ $border }) => Mixins.Border($border)};
49
+ ${({ $padding }) => Mixins.Padding($padding)};
50
+ ${({ $shadow }) => Mixins.BoxShadow($shadow)};
51
+ ${({ $backgroundImg }) =>
52
+ Mixins.BackgroundImage({ ...($backgroundImg as any) })};
53
+ `
54
+
55
+ setDefaultTheme([StyledCard])
56
+
57
+ export { StyledCard }
@@ -0,0 +1,29 @@
1
+ /*=============================================== Card types ===============================================*/
2
+
3
+ import type {
4
+ LibComponentBase,
5
+ LibButtonLinkBlank,
6
+ ILibBackgroundImage,
7
+ ILibBorder,
8
+ ILibRadius,
9
+ CssCursor,
10
+ ILibBoxShadow,
11
+ LibAllColors,
12
+ CssTextAlign,
13
+ } from "../../types"
14
+ import type { ILibFlexbox } from "../Flexbox/types"
15
+
16
+ export type ILibCard = LibComponentBase<HTMLDivElement> &
17
+ LibButtonLinkBlank &
18
+ ILibFlexbox & {
19
+ border?: ILibBorder
20
+ borderRadius?: ILibRadius
21
+ cursor?: CssCursor
22
+ width?: string | number
23
+ height?: string | number
24
+ shadow?: ILibBoxShadow
25
+ backgroundColor?: LibAllColors
26
+ textColor?: LibAllColors
27
+ backgroundImg?: ILibBackgroundImage
28
+ textAlign?: CssTextAlign
29
+ }
@@ -0,0 +1,129 @@
1
+ /*=============================================== CodeContainer component ===============================================*/
2
+
3
+ import { forwardRef, useState } from "react"
4
+ import { atomOneDark } from "react-syntax-highlighter/dist/esm/styles/hljs"
5
+ import { roundIconSize } from "../../lib-utils"
6
+ import { Clipboard, Check } from "../../icons"
7
+ import {
8
+ StyledCodeContainer,
9
+ StyledSyntaxHighlighter,
10
+ StyledButtonIcon,
11
+ } from "./styles"
12
+ import type { ILibCodeContainer } from "./types"
13
+
14
+ const DEFAULT_ICON_SIZE = 24
15
+
16
+ /**
17
+ * @description Returns a CodeContainer component
18
+ * @link https://documentation-components-react.vercel.app/components/code-container
19
+ * @extends HTMLDivElement
20
+ * @prop data-testid?: string
21
+ * @prop as?: ElementType
22
+ * @prop ref?: ForwardedRef<HTMLDivElement>
23
+ * @prop language?: string => language name
24
+ * @prop highlighterProps?: SyntaxHighlighterProps => imported from react-syntax-highlighter
25
+ * @prop color?: Any color from the library
26
+ * @prop highlighterStyle?: CSSProperties
27
+ * @prop hideCopyButton?: boolean
28
+ * @prop tooltipTexts?: { copy?: string; copied?: string } => only if hideCopyButton is not set to true
29
+ * @prop icons?: { copy?: string | JSX.Element; copied?: string | JSX.Element }
30
+ * @prop iconsSizes?: { copy?: number; copied?: number }
31
+ * @prop iconsBaseUrl?: string
32
+ */
33
+ export const CodeContainer = forwardRef<HTMLDivElement, ILibCodeContainer>(
34
+ (
35
+ {
36
+ "data-testid": testid,
37
+ as,
38
+ className,
39
+ children,
40
+ highlighterProps,
41
+ highlighterStyle = atomOneDark,
42
+ color,
43
+ hideCopyButton,
44
+ tooltipTexts,
45
+ icons,
46
+ iconsSizes,
47
+ iconsBaseUrl,
48
+ ...rest
49
+ },
50
+ ref
51
+ ) => {
52
+ const [hasCopied, setHasCopied] = useState(false)
53
+
54
+ const copyToClipboard = () => {
55
+ if (children) {
56
+ navigator.clipboard.writeText(children.toString())
57
+ setHasCopied(true)
58
+ }
59
+
60
+ setTimeout(() => setHasCopied(false), 1000)
61
+ }
62
+
63
+ const copyButtonCopy = {
64
+ icon: icons?.copy ?? (
65
+ <Clipboard
66
+ data-testid={testid && `${testid}.CopyButton.IconCopy`}
67
+ className={className && "IconCopy"}
68
+ size={iconsSizes?.copy ?? roundIconSize(DEFAULT_ICON_SIZE)}
69
+ />
70
+ ),
71
+ tooltip: tooltipTexts?.copy ?? "Copy",
72
+ }
73
+
74
+ const copyButtonCopied = {
75
+ icon: icons?.copied ?? (
76
+ <Check
77
+ data-testid={testid && `${testid}.CopyButton.IconCopied`}
78
+ className={className && "IconCopied"}
79
+ size={
80
+ iconsSizes?.copied ?? roundIconSize(DEFAULT_ICON_SIZE)
81
+ }
82
+ />
83
+ ),
84
+ tooltip: tooltipTexts?.copy ?? "Copied!",
85
+ }
86
+
87
+ return (
88
+ <StyledCodeContainer
89
+ data-testid={testid}
90
+ ref={ref}
91
+ className={className}
92
+ as={as || color ? "pre" : "div"}
93
+ {...rest}
94
+ >
95
+ <StyledSyntaxHighlighter
96
+ data-testid={testid && `${testid}.SyntaxHighlighter`}
97
+ className={className && "SyntaxHighlighter"}
98
+ style={highlighterStyle}
99
+ $color={color}
100
+ {...highlighterProps}
101
+ >
102
+ {children}
103
+ </StyledSyntaxHighlighter>
104
+
105
+ {!hideCopyButton && (
106
+ <StyledButtonIcon
107
+ data-testid={testid && `${testid}.CopyButton`}
108
+ className={className && "CopyButton"}
109
+ onClick={copyToClipboard}
110
+ icon={
111
+ hasCopied
112
+ ? copyButtonCopied.icon
113
+ : copyButtonCopy.icon
114
+ }
115
+ size={32}
116
+ color={hasCopied ? "success" : "white"}
117
+ tooltip={
118
+ hasCopied
119
+ ? copyButtonCopied.tooltip
120
+ : copyButtonCopy.tooltip
121
+ }
122
+ iconBaseUrl={iconsBaseUrl}
123
+ showTooltip
124
+ />
125
+ )}
126
+ </StyledCodeContainer>
127
+ )
128
+ }
129
+ )
@@ -0,0 +1,3 @@
1
+ /*=============================================== CodeContainer exports ===============================================*/
2
+
3
+ export * from "./CodeContainer"
@@ -0,0 +1,64 @@
1
+ /*=============================================== CodeContainer styles ===============================================*/
2
+
3
+ import styled from "styled-components"
4
+ import SyntaxHighlighter from "react-syntax-highlighter"
5
+ import {
6
+ setDefaultTheme,
7
+ ButtonIcon,
8
+ Mixins,
9
+ COLORS_LIGHT,
10
+ SPACERS,
11
+ FONT_FAMILIES,
12
+ LINE_HEIGHTS,
13
+ FONT_SIZES,
14
+ } from "../../"
15
+ import type { LibAllColors } from "../../types"
16
+
17
+ const StyledCodeContainer = styled.div<{ $color?: LibAllColors }>`
18
+ position: relative;
19
+ padding: ${SPACERS.M};
20
+ background-color: ${COLORS_LIGHT.GRAY_800};
21
+ color: ${({ $color, theme }) => $color && Mixins.AllColors($color, theme)};
22
+ ${Mixins.HideScrollbar}
23
+
24
+ & > code {
25
+ color: ${({ $color, theme }) =>
26
+ $color && Mixins.AllColors($color, theme)};
27
+ }
28
+ `
29
+
30
+ const StyledSyntaxHighlighter = styled(SyntaxHighlighter)<{
31
+ $color?: LibAllColors
32
+ }>`
33
+ background-color: transparent !important;
34
+ font-family: ${FONT_FAMILIES.CODE};
35
+ font-size: ${FONT_SIZES.SMALL};
36
+ padding: 0 !important;
37
+ white-space: pre;
38
+ line-height: ${LINE_HEIGHTS.CODE};
39
+ overflow-x: scroll !important;
40
+ color: ${({ $color, theme }) => $color && Mixins.AllColors($color, theme)};
41
+ ${Mixins.HideScrollbar}
42
+
43
+ & > code {
44
+ background-color: transparent !important;
45
+ line-height: ${LINE_HEIGHTS.CODE};
46
+ max-width: 100% !important;
47
+ color: ${({ $color, theme }) =>
48
+ $color && Mixins.AllColors($color, theme)};
49
+ }
50
+ `
51
+
52
+ const StyledButtonIcon = styled(ButtonIcon)`
53
+ position: absolute;
54
+ top: ${SPACERS.S};
55
+ right: ${SPACERS.M};
56
+ `
57
+
58
+ setDefaultTheme([
59
+ StyledCodeContainer,
60
+ StyledSyntaxHighlighter,
61
+ StyledButtonIcon,
62
+ ])
63
+
64
+ export { StyledCodeContainer, StyledSyntaxHighlighter, StyledButtonIcon }