@vincentgraul/react-components 1.0.38 → 1.0.39

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 (478) hide show
  1. package/README.md +5 -1
  2. package/build/breadcrumb/breadcrumb.d.ts +7 -0
  3. package/build/breadcrumb/breadcrumb.d.ts.map +1 -0
  4. package/build/breadcrumb/breadcrumb.js +12 -0
  5. package/build/breadcrumb/breadcrumb.types.d.ts +12 -0
  6. package/build/breadcrumb/breadcrumb.types.d.ts.map +1 -0
  7. package/build/breadcrumb/breadcrumb.types.js +1 -0
  8. package/build/breadcrumb/icons/arrow.d.ts +4 -0
  9. package/build/breadcrumb/icons/arrow.d.ts.map +1 -0
  10. package/build/breadcrumb/icons/arrow.js +14 -0
  11. package/build/breadcrumb/icons/index.d.ts +2 -0
  12. package/build/breadcrumb/icons/index.d.ts.map +1 -0
  13. package/build/breadcrumb/icons/index.js +1 -0
  14. package/build/breadcrumb/index.d.ts +4 -0
  15. package/build/breadcrumb/index.d.ts.map +1 -0
  16. package/build/breadcrumb/index.js +3 -0
  17. package/build/breadcrumb/use-breadcrumb.d.ts +3 -0
  18. package/build/breadcrumb/use-breadcrumb.d.ts.map +1 -0
  19. package/build/breadcrumb/use-breadcrumb.js +23 -0
  20. package/build/country-selector/country-selector.d.ts +10 -0
  21. package/build/country-selector/country-selector.d.ts.map +1 -0
  22. package/build/country-selector/{CountrySelector.js → country-selector.js} +9 -14
  23. package/build/country-selector/country-selector.types.d.ts +6 -0
  24. package/build/country-selector/country-selector.types.d.ts.map +1 -0
  25. package/build/country-selector/country-selector.types.js +1 -0
  26. package/build/country-selector/icons/Ad.d.ts.map +1 -1
  27. package/build/country-selector/icons/Ae.d.ts.map +1 -1
  28. package/build/country-selector/icons/Af.d.ts.map +1 -1
  29. package/build/country-selector/icons/Ag.d.ts.map +1 -1
  30. package/build/country-selector/icons/Ai.d.ts.map +1 -1
  31. package/build/country-selector/icons/Al.d.ts.map +1 -1
  32. package/build/country-selector/icons/Am.d.ts.map +1 -1
  33. package/build/country-selector/icons/Ao.d.ts.map +1 -1
  34. package/build/country-selector/icons/Ar.d.ts.map +1 -1
  35. package/build/country-selector/icons/As.d.ts.map +1 -1
  36. package/build/country-selector/icons/At.d.ts.map +1 -1
  37. package/build/country-selector/icons/Au.d.ts.map +1 -1
  38. package/build/country-selector/icons/Aw.d.ts.map +1 -1
  39. package/build/country-selector/icons/Az.d.ts.map +1 -1
  40. package/build/country-selector/icons/Ba.d.ts.map +1 -1
  41. package/build/country-selector/icons/Bb.d.ts.map +1 -1
  42. package/build/country-selector/icons/Bd.d.ts.map +1 -1
  43. package/build/country-selector/icons/Be.d.ts.map +1 -1
  44. package/build/country-selector/icons/Bf.d.ts.map +1 -1
  45. package/build/country-selector/icons/Bg.d.ts.map +1 -1
  46. package/build/country-selector/icons/Bh.d.ts.map +1 -1
  47. package/build/country-selector/icons/Bi.d.ts.map +1 -1
  48. package/build/country-selector/icons/Bj.d.ts.map +1 -1
  49. package/build/country-selector/icons/Bm.d.ts.map +1 -1
  50. package/build/country-selector/icons/Bo.d.ts.map +1 -1
  51. package/build/country-selector/icons/Br.d.ts.map +1 -1
  52. package/build/country-selector/icons/Bs.d.ts.map +1 -1
  53. package/build/country-selector/icons/Bt.d.ts.map +1 -1
  54. package/build/country-selector/icons/Bw.d.ts.map +1 -1
  55. package/build/country-selector/icons/By.d.ts.map +1 -1
  56. package/build/country-selector/icons/Bz.d.ts.map +1 -1
  57. package/build/country-selector/icons/Ca.d.ts.map +1 -1
  58. package/build/country-selector/icons/Cd.d.ts.map +1 -1
  59. package/build/country-selector/icons/Cf.d.ts.map +1 -1
  60. package/build/country-selector/icons/Cg.d.ts.map +1 -1
  61. package/build/country-selector/icons/Ch.d.ts.map +1 -1
  62. package/build/country-selector/icons/Ci.d.ts.map +1 -1
  63. package/build/country-selector/icons/Ck.d.ts.map +1 -1
  64. package/build/country-selector/icons/Cl.d.ts.map +1 -1
  65. package/build/country-selector/icons/Cm.d.ts.map +1 -1
  66. package/build/country-selector/icons/Cn.d.ts.map +1 -1
  67. package/build/country-selector/icons/Co.d.ts.map +1 -1
  68. package/build/country-selector/icons/Cr.d.ts.map +1 -1
  69. package/build/country-selector/icons/Cu.d.ts.map +1 -1
  70. package/build/country-selector/icons/Cv.d.ts.map +1 -1
  71. package/build/country-selector/icons/Cw.d.ts.map +1 -1
  72. package/build/country-selector/icons/Cy.d.ts.map +1 -1
  73. package/build/country-selector/icons/Cz.d.ts.map +1 -1
  74. package/build/country-selector/icons/De.d.ts.map +1 -1
  75. package/build/country-selector/icons/Dj.d.ts.map +1 -1
  76. package/build/country-selector/icons/Dk.d.ts.map +1 -1
  77. package/build/country-selector/icons/Dm.d.ts.map +1 -1
  78. package/build/country-selector/icons/Do.d.ts.map +1 -1
  79. package/build/country-selector/icons/Dz.d.ts.map +1 -1
  80. package/build/country-selector/icons/Ec.d.ts.map +1 -1
  81. package/build/country-selector/icons/Ee.d.ts.map +1 -1
  82. package/build/country-selector/icons/Eg.d.ts.map +1 -1
  83. package/build/country-selector/icons/Er.d.ts.map +1 -1
  84. package/build/country-selector/icons/Es.d.ts.map +1 -1
  85. package/build/country-selector/icons/Et.d.ts.map +1 -1
  86. package/build/country-selector/icons/Fi.d.ts.map +1 -1
  87. package/build/country-selector/icons/Fj.d.ts.map +1 -1
  88. package/build/country-selector/icons/Fk.d.ts.map +1 -1
  89. package/build/country-selector/icons/Fm.d.ts.map +1 -1
  90. package/build/country-selector/icons/Fo.d.ts.map +1 -1
  91. package/build/country-selector/icons/Fr.d.ts.map +1 -1
  92. package/build/country-selector/icons/Ga.d.ts.map +1 -1
  93. package/build/country-selector/icons/Gb.d.ts.map +1 -1
  94. package/build/country-selector/icons/Gd.d.ts.map +1 -1
  95. package/build/country-selector/icons/Ge.d.ts.map +1 -1
  96. package/build/country-selector/icons/Gg.d.ts.map +1 -1
  97. package/build/country-selector/icons/Gh.d.ts.map +1 -1
  98. package/build/country-selector/icons/Gi.d.ts.map +1 -1
  99. package/build/country-selector/icons/Gl.d.ts.map +1 -1
  100. package/build/country-selector/icons/Gm.d.ts.map +1 -1
  101. package/build/country-selector/icons/Gn.d.ts.map +1 -1
  102. package/build/country-selector/icons/Gq.d.ts.map +1 -1
  103. package/build/country-selector/icons/Gr.d.ts.map +1 -1
  104. package/build/country-selector/icons/Gt.d.ts.map +1 -1
  105. package/build/country-selector/icons/Gu.d.ts.map +1 -1
  106. package/build/country-selector/icons/Gw.d.ts.map +1 -1
  107. package/build/country-selector/icons/Hk.d.ts.map +1 -1
  108. package/build/country-selector/icons/Hn.d.ts.map +1 -1
  109. package/build/country-selector/icons/Hr.d.ts.map +1 -1
  110. package/build/country-selector/icons/Ht.d.ts.map +1 -1
  111. package/build/country-selector/icons/Hu.d.ts.map +1 -1
  112. package/build/country-selector/icons/Id.d.ts.map +1 -1
  113. package/build/country-selector/icons/Ie.d.ts.map +1 -1
  114. package/build/country-selector/icons/Il.d.ts.map +1 -1
  115. package/build/country-selector/icons/Im.d.ts.map +1 -1
  116. package/build/country-selector/icons/In.d.ts.map +1 -1
  117. package/build/country-selector/icons/Io.d.ts.map +1 -1
  118. package/build/country-selector/icons/Iq.d.ts.map +1 -1
  119. package/build/country-selector/icons/Ir.d.ts.map +1 -1
  120. package/build/country-selector/icons/Is.d.ts.map +1 -1
  121. package/build/country-selector/icons/It.d.ts.map +1 -1
  122. package/build/country-selector/icons/Je.d.ts.map +1 -1
  123. package/build/country-selector/icons/Jm.d.ts.map +1 -1
  124. package/build/country-selector/icons/Jo.d.ts.map +1 -1
  125. package/build/country-selector/icons/Jp.d.ts.map +1 -1
  126. package/build/country-selector/icons/Ke.d.ts.map +1 -1
  127. package/build/country-selector/icons/Kg.d.ts.map +1 -1
  128. package/build/country-selector/icons/Kh.d.ts.map +1 -1
  129. package/build/country-selector/icons/Ki.d.ts.map +1 -1
  130. package/build/country-selector/icons/Km.d.ts.map +1 -1
  131. package/build/country-selector/icons/Kn.d.ts.map +1 -1
  132. package/build/country-selector/icons/Kp.d.ts.map +1 -1
  133. package/build/country-selector/icons/Kr.d.ts.map +1 -1
  134. package/build/country-selector/icons/Kw.d.ts.map +1 -1
  135. package/build/country-selector/icons/Ky.d.ts.map +1 -1
  136. package/build/country-selector/icons/Kz.d.ts.map +1 -1
  137. package/build/country-selector/icons/La.d.ts.map +1 -1
  138. package/build/country-selector/icons/Lb.d.ts.map +1 -1
  139. package/build/country-selector/icons/Li.d.ts.map +1 -1
  140. package/build/country-selector/icons/Lk.d.ts.map +1 -1
  141. package/build/country-selector/icons/Lr.d.ts.map +1 -1
  142. package/build/country-selector/icons/Ls.d.ts.map +1 -1
  143. package/build/country-selector/icons/Lt.d.ts.map +1 -1
  144. package/build/country-selector/icons/Lu.d.ts.map +1 -1
  145. package/build/country-selector/icons/Lv.d.ts.map +1 -1
  146. package/build/country-selector/icons/Ly.d.ts.map +1 -1
  147. package/build/country-selector/icons/Ma.d.ts.map +1 -1
  148. package/build/country-selector/icons/Mc.d.ts.map +1 -1
  149. package/build/country-selector/icons/Md.d.ts.map +1 -1
  150. package/build/country-selector/icons/Me.d.ts.map +1 -1
  151. package/build/country-selector/icons/Mg.d.ts.map +1 -1
  152. package/build/country-selector/icons/Mh.d.ts.map +1 -1
  153. package/build/country-selector/icons/Mk.d.ts.map +1 -1
  154. package/build/country-selector/icons/Ml.d.ts.map +1 -1
  155. package/build/country-selector/icons/Mm.d.ts.map +1 -1
  156. package/build/country-selector/icons/Mn.d.ts.map +1 -1
  157. package/build/country-selector/icons/Mo.d.ts.map +1 -1
  158. package/build/country-selector/icons/Mp.d.ts.map +1 -1
  159. package/build/country-selector/icons/Mq.d.ts.map +1 -1
  160. package/build/country-selector/icons/Mr.d.ts.map +1 -1
  161. package/build/country-selector/icons/Ms.d.ts.map +1 -1
  162. package/build/country-selector/icons/Mt.d.ts.map +1 -1
  163. package/build/country-selector/icons/Mu.d.ts.map +1 -1
  164. package/build/country-selector/icons/Mv.d.ts.map +1 -1
  165. package/build/country-selector/icons/Mw.d.ts.map +1 -1
  166. package/build/country-selector/icons/Mx.d.ts.map +1 -1
  167. package/build/country-selector/icons/My.d.ts.map +1 -1
  168. package/build/country-selector/icons/Mz.d.ts.map +1 -1
  169. package/build/country-selector/icons/Na.d.ts.map +1 -1
  170. package/build/country-selector/icons/Nato.d.ts.map +1 -1
  171. package/build/country-selector/icons/Ne.d.ts.map +1 -1
  172. package/build/country-selector/icons/Nf.d.ts.map +1 -1
  173. package/build/country-selector/icons/Ng.d.ts.map +1 -1
  174. package/build/country-selector/icons/Ni.d.ts.map +1 -1
  175. package/build/country-selector/icons/Nl.d.ts.map +1 -1
  176. package/build/country-selector/icons/No.d.ts.map +1 -1
  177. package/build/country-selector/icons/Np.d.ts.map +1 -1
  178. package/build/country-selector/icons/Nr.d.ts.map +1 -1
  179. package/build/country-selector/icons/Nu.d.ts.map +1 -1
  180. package/build/country-selector/icons/Nz.d.ts.map +1 -1
  181. package/build/country-selector/icons/Om.d.ts.map +1 -1
  182. package/build/country-selector/icons/Pa.d.ts.map +1 -1
  183. package/build/country-selector/icons/Pe.d.ts.map +1 -1
  184. package/build/country-selector/icons/Pf.d.ts.map +1 -1
  185. package/build/country-selector/icons/Pg.d.ts.map +1 -1
  186. package/build/country-selector/icons/Ph.d.ts.map +1 -1
  187. package/build/country-selector/icons/Pk.d.ts.map +1 -1
  188. package/build/country-selector/icons/Pl.d.ts.map +1 -1
  189. package/build/country-selector/icons/Pn.d.ts.map +1 -1
  190. package/build/country-selector/icons/Pr.d.ts.map +1 -1
  191. package/build/country-selector/icons/Ps.d.ts.map +1 -1
  192. package/build/country-selector/icons/Pt.d.ts.map +1 -1
  193. package/build/country-selector/icons/Pw.d.ts.map +1 -1
  194. package/build/country-selector/icons/Py.d.ts.map +1 -1
  195. package/build/country-selector/icons/Qa.d.ts.map +1 -1
  196. package/build/country-selector/icons/Ro.d.ts.map +1 -1
  197. package/build/country-selector/icons/Rs.d.ts.map +1 -1
  198. package/build/country-selector/icons/Ru.d.ts.map +1 -1
  199. package/build/country-selector/icons/Rw.d.ts.map +1 -1
  200. package/build/country-selector/icons/Sa.d.ts.map +1 -1
  201. package/build/country-selector/icons/Sb.d.ts.map +1 -1
  202. package/build/country-selector/icons/Sc.d.ts.map +1 -1
  203. package/build/country-selector/icons/Sd.d.ts.map +1 -1
  204. package/build/country-selector/icons/Se.d.ts.map +1 -1
  205. package/build/country-selector/icons/Sg.d.ts.map +1 -1
  206. package/build/country-selector/icons/Si.d.ts.map +1 -1
  207. package/build/country-selector/icons/Sk.d.ts.map +1 -1
  208. package/build/country-selector/icons/Sl.d.ts.map +1 -1
  209. package/build/country-selector/icons/Sm.d.ts.map +1 -1
  210. package/build/country-selector/icons/Sn.d.ts.map +1 -1
  211. package/build/country-selector/icons/So.d.ts.map +1 -1
  212. package/build/country-selector/icons/Sq.d.ts.map +1 -1
  213. package/build/country-selector/icons/Sr.d.ts.map +1 -1
  214. package/build/country-selector/icons/Ss.d.ts.map +1 -1
  215. package/build/country-selector/icons/St.d.ts.map +1 -1
  216. package/build/country-selector/icons/Sv.d.ts.map +1 -1
  217. package/build/country-selector/icons/Sx.d.ts.map +1 -1
  218. package/build/country-selector/icons/Sy.d.ts.map +1 -1
  219. package/build/country-selector/icons/Sz.d.ts.map +1 -1
  220. package/build/country-selector/icons/Tc.d.ts.map +1 -1
  221. package/build/country-selector/icons/Td.d.ts.map +1 -1
  222. package/build/country-selector/icons/Tg.d.ts.map +1 -1
  223. package/build/country-selector/icons/Th.d.ts.map +1 -1
  224. package/build/country-selector/icons/Tibet.d.ts.map +1 -1
  225. package/build/country-selector/icons/Tj.d.ts.map +1 -1
  226. package/build/country-selector/icons/Tk.d.ts.map +1 -1
  227. package/build/country-selector/icons/Tm.d.ts.map +1 -1
  228. package/build/country-selector/icons/Tn.d.ts.map +1 -1
  229. package/build/country-selector/icons/To.d.ts.map +1 -1
  230. package/build/country-selector/icons/Tr.d.ts.map +1 -1
  231. package/build/country-selector/icons/Tt.d.ts.map +1 -1
  232. package/build/country-selector/icons/Tv.d.ts.map +1 -1
  233. package/build/country-selector/icons/Tw.d.ts.map +1 -1
  234. package/build/country-selector/icons/Tz.d.ts.map +1 -1
  235. package/build/country-selector/icons/Ua.d.ts.map +1 -1
  236. package/build/country-selector/icons/Ug.d.ts.map +1 -1
  237. package/build/country-selector/icons/Us.d.ts.map +1 -1
  238. package/build/country-selector/icons/Uy.d.ts.map +1 -1
  239. package/build/country-selector/icons/Uz.d.ts.map +1 -1
  240. package/build/country-selector/icons/Ve.d.ts.map +1 -1
  241. package/build/country-selector/icons/Vi.d.ts.map +1 -1
  242. package/build/country-selector/icons/Vn.d.ts.map +1 -1
  243. package/build/country-selector/icons/Vu.d.ts.map +1 -1
  244. package/build/country-selector/icons/Ws.d.ts.map +1 -1
  245. package/build/country-selector/icons/Ye.d.ts.map +1 -1
  246. package/build/country-selector/icons/Za.d.ts.map +1 -1
  247. package/build/country-selector/icons/Zm.d.ts.map +1 -1
  248. package/build/country-selector/icons/Zw.d.ts.map +1 -1
  249. package/build/country-selector/index.d.ts +3 -0
  250. package/build/country-selector/index.d.ts.map +1 -0
  251. package/build/country-selector/index.js +2 -0
  252. package/build/index.d.ts +18 -0
  253. package/build/index.d.ts.map +1 -0
  254. package/build/index.js +17 -0
  255. package/build/input/index.d.ts +3 -0
  256. package/build/input/index.d.ts.map +1 -0
  257. package/build/input/index.js +2 -0
  258. package/build/input/input.d.ts +12 -0
  259. package/build/input/input.d.ts.map +1 -0
  260. package/build/input/input.js +24 -0
  261. package/build/input/input.types.d.ts +9 -0
  262. package/build/input/input.types.d.ts.map +1 -0
  263. package/build/input/input.types.js +1 -0
  264. package/build/loader/image-loader/image-loader.d.ts +7 -0
  265. package/build/loader/image-loader/image-loader.d.ts.map +1 -0
  266. package/build/loader/image-loader/image-loader.js +3 -0
  267. package/build/loader/image-loader/index.d.ts +2 -0
  268. package/build/loader/image-loader/index.d.ts.map +1 -0
  269. package/build/loader/image-loader/index.js +1 -0
  270. package/build/loader/index.d.ts +2 -0
  271. package/build/loader/index.d.ts.map +1 -0
  272. package/build/loader/index.js +1 -0
  273. package/build/loader/loader.d.ts +11 -0
  274. package/build/loader/loader.d.ts.map +1 -0
  275. package/build/loader/loader.js +7 -0
  276. package/build/match-device/index.d.ts +3 -0
  277. package/build/match-device/index.d.ts.map +1 -0
  278. package/build/match-device/index.js +2 -0
  279. package/build/match-device/use-match-device.d.ts +3 -0
  280. package/build/match-device/use-match-device.d.ts.map +1 -0
  281. package/build/match-device/{useMatchDevice.js → use-match-device.js} +2 -2
  282. package/build/match-device/use-match-device.types.d.ts +7 -0
  283. package/build/match-device/use-match-device.types.d.ts.map +1 -0
  284. package/build/match-device/use-match-device.types.js +1 -0
  285. package/build/match-resolution/index.d.ts +3 -0
  286. package/build/match-resolution/index.d.ts.map +1 -0
  287. package/build/match-resolution/index.js +2 -0
  288. package/build/match-resolution/use-match-resolution.d.ts +4 -0
  289. package/build/match-resolution/use-match-resolution.d.ts.map +1 -0
  290. package/build/match-resolution/{useMatchResolution.js → use-match-resolution.js} +3 -3
  291. package/build/match-resolution/{useMatchResolution.d.ts → use-match-resolution.types.d.ts} +7 -9
  292. package/build/match-resolution/use-match-resolution.types.d.ts.map +1 -0
  293. package/build/match-resolution/use-match-resolution.types.js +1 -0
  294. package/build/modal/index.d.ts +2 -0
  295. package/build/modal/index.d.ts.map +1 -0
  296. package/build/modal/index.js +1 -0
  297. package/build/modal/modal.d.ts +8 -0
  298. package/build/modal/modal.d.ts.map +1 -0
  299. package/build/modal/modal.js +14 -0
  300. package/build/mount-react-hook/index.d.ts +3 -0
  301. package/build/mount-react-hook/index.d.ts.map +1 -0
  302. package/build/mount-react-hook/index.js +2 -0
  303. package/build/mount-react-hook/mount-react-hook.d.ts +4 -0
  304. package/build/mount-react-hook/mount-react-hook.d.ts.map +1 -0
  305. package/build/mount-react-hook/{mountReactHook.js → mount-react-hook.js} +2 -2
  306. package/build/mount-react-hook/mount-react-hook.types.d.ts +6 -0
  307. package/build/mount-react-hook/mount-react-hook.types.d.ts.map +1 -0
  308. package/build/mount-react-hook/mount-react-hook.types.js +1 -0
  309. package/build/numbered-pagination/index.d.ts +2 -0
  310. package/build/numbered-pagination/index.d.ts.map +1 -0
  311. package/build/numbered-pagination/index.js +1 -0
  312. package/build/numbered-pagination/numbered-pagination.d.ts +15 -0
  313. package/build/numbered-pagination/numbered-pagination.d.ts.map +1 -0
  314. package/build/numbered-pagination/numbered-pagination.js +17 -0
  315. package/build/numbered-pagination/numbered-pagination.types.d.ts +11 -0
  316. package/build/numbered-pagination/numbered-pagination.types.d.ts.map +1 -0
  317. package/build/numbered-pagination/numbered-pagination.types.js +1 -0
  318. package/build/outside-alerter/index.d.ts +3 -0
  319. package/build/outside-alerter/index.d.ts.map +1 -0
  320. package/build/outside-alerter/index.js +2 -0
  321. package/build/outside-alerter/use-outside-alerter.d.ts +4 -0
  322. package/build/outside-alerter/use-outside-alerter.d.ts.map +1 -0
  323. package/build/outside-alerter/{useOutsideAlerter.js → use-outside-alerter.js} +2 -2
  324. package/build/outside-alerter/use-outside-alerter.types.d.ts +5 -0
  325. package/build/outside-alerter/use-outside-alerter.types.d.ts.map +1 -0
  326. package/build/outside-alerter/use-outside-alerter.types.js +1 -0
  327. package/build/pagination/index.d.ts +3 -0
  328. package/build/pagination/index.d.ts.map +1 -0
  329. package/build/pagination/index.js +2 -0
  330. package/build/pagination/pagination.d.ts +14 -0
  331. package/build/pagination/pagination.d.ts.map +1 -0
  332. package/build/pagination/pagination.js +17 -0
  333. package/build/pagination/pagination.types.d.ts +11 -0
  334. package/build/pagination/pagination.types.d.ts.map +1 -0
  335. package/build/pagination/pagination.types.js +1 -0
  336. package/build/pagination/use-pagination.d.ts +11 -0
  337. package/build/pagination/use-pagination.d.ts.map +1 -0
  338. package/build/pagination/{usePagination.js → use-pagination.js} +2 -2
  339. package/build/pagination/use-pagination.types.d.ts +12 -0
  340. package/build/pagination/use-pagination.types.d.ts.map +1 -0
  341. package/build/pagination/use-pagination.types.js +1 -0
  342. package/build/scroll-to/index.d.ts +3 -0
  343. package/build/scroll-to/index.d.ts.map +1 -0
  344. package/build/scroll-to/index.js +2 -0
  345. package/build/scroll-to/use-scroll-to.d.ts +4 -0
  346. package/build/scroll-to/use-scroll-to.d.ts.map +1 -0
  347. package/build/scroll-to/{useScrollTo.js → use-scroll-to.js} +2 -2
  348. package/build/scroll-to/use-scroll-to.types.d.ts +4 -0
  349. package/build/scroll-to/use-scroll-to.types.d.ts.map +1 -0
  350. package/build/scroll-to/use-scroll-to.types.js +1 -0
  351. package/build/select/icons/ArrowBottom.d.ts.map +1 -1
  352. package/build/select/index.d.ts +3 -0
  353. package/build/select/index.d.ts.map +1 -0
  354. package/build/select/index.js +2 -0
  355. package/build/select/select.d.ts +9 -0
  356. package/build/select/select.d.ts.map +1 -0
  357. package/build/select/select.js +42 -0
  358. package/build/select/select.types.d.ts +8 -0
  359. package/build/select/select.types.d.ts.map +1 -0
  360. package/build/select/select.types.js +1 -0
  361. package/build/table/index.d.ts +3 -0
  362. package/build/table/index.d.ts.map +1 -0
  363. package/build/table/index.js +2 -0
  364. package/build/table/table.d.ts +20 -0
  365. package/build/table/table.d.ts.map +1 -0
  366. package/build/table/table.js +18 -0
  367. package/build/table/table.types.d.ts +6 -0
  368. package/build/table/table.types.d.ts.map +1 -0
  369. package/build/table/table.types.js +1 -0
  370. package/build/use-breadcrumb/index.d.ts +3 -0
  371. package/build/use-breadcrumb/index.d.ts.map +1 -0
  372. package/build/use-breadcrumb/index.js +2 -0
  373. package/build/use-breadcrumb/use-breadcrumb.d.ts +3 -0
  374. package/build/use-breadcrumb/use-breadcrumb.d.ts.map +1 -0
  375. package/build/use-breadcrumb/use-breadcrumb.js +23 -0
  376. package/build/use-breadcrumb/use-breadcrumb.types.d.ts +12 -0
  377. package/build/use-breadcrumb/use-breadcrumb.types.d.ts.map +1 -0
  378. package/build/use-breadcrumb/use-breadcrumb.types.js +1 -0
  379. package/build/use-match-device/index.d.ts +3 -0
  380. package/build/use-match-device/index.d.ts.map +1 -0
  381. package/build/use-match-device/index.js +2 -0
  382. package/build/use-match-device/use-match-device.d.ts +3 -0
  383. package/build/use-match-device/use-match-device.d.ts.map +1 -0
  384. package/build/use-match-device/use-match-device.js +25 -0
  385. package/build/use-match-device/use-match-device.types.d.ts +7 -0
  386. package/build/use-match-device/use-match-device.types.d.ts.map +1 -0
  387. package/build/use-match-device/use-match-device.types.js +1 -0
  388. package/build/use-match-resolution/index.d.ts +3 -0
  389. package/build/use-match-resolution/index.d.ts.map +1 -0
  390. package/build/use-match-resolution/index.js +2 -0
  391. package/build/use-match-resolution/use-match-resolution.d.ts +4 -0
  392. package/build/use-match-resolution/use-match-resolution.d.ts.map +1 -0
  393. package/build/use-match-resolution/use-match-resolution.js +49 -0
  394. package/build/use-match-resolution/use-match-resolution.types.d.ts +36 -0
  395. package/build/use-match-resolution/use-match-resolution.types.d.ts.map +1 -0
  396. package/build/use-match-resolution/use-match-resolution.types.js +1 -0
  397. package/build/use-outside-alerter/index.d.ts +3 -0
  398. package/build/use-outside-alerter/index.d.ts.map +1 -0
  399. package/build/use-outside-alerter/index.js +2 -0
  400. package/build/use-outside-alerter/use-outside-alerter.d.ts +4 -0
  401. package/build/use-outside-alerter/use-outside-alerter.d.ts.map +1 -0
  402. package/build/use-outside-alerter/use-outside-alerter.js +22 -0
  403. package/build/use-outside-alerter/use-outside-alerter.types.d.ts +5 -0
  404. package/build/use-outside-alerter/use-outside-alerter.types.d.ts.map +1 -0
  405. package/build/use-outside-alerter/use-outside-alerter.types.js +1 -0
  406. package/build/use-pagination/index.d.ts +3 -0
  407. package/build/use-pagination/index.d.ts.map +1 -0
  408. package/build/use-pagination/index.js +2 -0
  409. package/build/use-pagination/use-pagination.d.ts +11 -0
  410. package/build/use-pagination/use-pagination.d.ts.map +1 -0
  411. package/build/use-pagination/use-pagination.js +49 -0
  412. package/build/use-pagination/use-pagination.types.d.ts +12 -0
  413. package/build/use-pagination/use-pagination.types.d.ts.map +1 -0
  414. package/build/use-pagination/use-pagination.types.js +1 -0
  415. package/build/use-scroll-to/index.d.ts +3 -0
  416. package/build/use-scroll-to/index.d.ts.map +1 -0
  417. package/build/use-scroll-to/index.js +2 -0
  418. package/build/use-scroll-to/use-scroll-to.d.ts +4 -0
  419. package/build/use-scroll-to/use-scroll-to.d.ts.map +1 -0
  420. package/build/use-scroll-to/use-scroll-to.js +12 -0
  421. package/build/use-scroll-to/use-scroll-to.types.d.ts +4 -0
  422. package/build/use-scroll-to/use-scroll-to.types.d.ts.map +1 -0
  423. package/build/use-scroll-to/use-scroll-to.types.js +1 -0
  424. package/build/use-visible/index.d.ts +2 -0
  425. package/build/use-visible/index.d.ts.map +1 -0
  426. package/build/use-visible/index.js +1 -0
  427. package/build/use-visible/use-visible.d.ts +3 -0
  428. package/build/use-visible/use-visible.d.ts.map +1 -0
  429. package/build/{visible/useVisible.js → use-visible/use-visible.js} +2 -2
  430. package/build/visible/index.d.ts +2 -0
  431. package/build/visible/index.d.ts.map +1 -0
  432. package/build/visible/index.js +1 -0
  433. package/build/visible/use-visible.d.ts +3 -0
  434. package/build/visible/use-visible.d.ts.map +1 -0
  435. package/build/visible/use-visible.js +19 -0
  436. package/build/wizard/index.d.ts +3 -0
  437. package/build/wizard/index.d.ts.map +1 -0
  438. package/build/wizard/index.js +2 -0
  439. package/build/wizard/wizard.d.ts +11 -0
  440. package/build/wizard/wizard.d.ts.map +1 -0
  441. package/build/wizard/wizard.js +27 -0
  442. package/build/wizard/wizard.types.d.ts +8 -0
  443. package/build/wizard/wizard.types.d.ts.map +1 -0
  444. package/build/wizard/wizard.types.js +1 -0
  445. package/package.json +34 -122
  446. package/build/country-selector/CountrySelector.d.ts +0 -15
  447. package/build/country-selector/CountrySelector.d.ts.map +0 -1
  448. package/build/loader/Loader.d.ts +0 -8
  449. package/build/loader/Loader.d.ts.map +0 -1
  450. package/build/loader/Loader.js +0 -24
  451. package/build/loader/image-loader/ImageLoader.d.ts +0 -8
  452. package/build/loader/image-loader/ImageLoader.d.ts.map +0 -1
  453. package/build/loader/image-loader/ImageLoader.js +0 -24
  454. package/build/match-device/useMatchDevice.d.ts +0 -8
  455. package/build/match-device/useMatchDevice.d.ts.map +0 -1
  456. package/build/match-resolution/useMatchResolution.d.ts.map +0 -1
  457. package/build/modal/Modal.d.ts +0 -9
  458. package/build/modal/Modal.d.ts.map +0 -1
  459. package/build/modal/Modal.js +0 -36
  460. package/build/mount-react-hook/mountReactHook.d.ts +0 -8
  461. package/build/mount-react-hook/mountReactHook.d.ts.map +0 -1
  462. package/build/numbered-pagination/NumberedPagination.d.ts +0 -13
  463. package/build/numbered-pagination/NumberedPagination.d.ts.map +0 -1
  464. package/build/numbered-pagination/NumberedPagination.js +0 -25
  465. package/build/outside-alerter/useOutsideAlerter.d.ts +0 -8
  466. package/build/outside-alerter/useOutsideAlerter.d.ts.map +0 -1
  467. package/build/pagination/usePagination.d.ts +0 -20
  468. package/build/pagination/usePagination.d.ts.map +0 -1
  469. package/build/scroll-to/useScrollTo.d.ts +0 -6
  470. package/build/scroll-to/useScrollTo.d.ts.map +0 -1
  471. package/build/select/Select.d.ts +0 -289
  472. package/build/select/Select.d.ts.map +0 -1
  473. package/build/select/Select.js +0 -92
  474. package/build/table/Table.d.ts +0 -852
  475. package/build/table/Table.d.ts.map +0 -1
  476. package/build/table/Table.js +0 -44
  477. package/build/visible/useVisible.d.ts +0 -3
  478. package/build/visible/useVisible.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-match-device.d.ts","sourceRoot":"","sources":["../../src/match-device/use-match-device.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAQlD,eAAO,MAAM,cAAc,OAAQ,MAAM,KAAG,MA8B3C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useState } from "react";
2
2
  import UAParser from "ua-parser-js";
3
- export default function useMatchDevice(UA) {
3
+ export const useMatchDevice = (UA) => {
4
4
  const isClientSide = typeof window !== "undefined";
5
5
  const compute = () => {
6
6
  const parser = new UAParser.UAParser(UA);
@@ -22,4 +22,4 @@ export default function useMatchDevice(UA) {
22
22
  setDevice(compute());
23
23
  }, [UA]);
24
24
  return device;
25
- }
25
+ };
@@ -0,0 +1,7 @@
1
+ export type Device = {
2
+ isMobile: boolean;
3
+ isTablet: boolean;
4
+ isMobileOrTablet: boolean;
5
+ isDesktop: boolean;
6
+ };
7
+ //# sourceMappingURL=use-match-device.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-match-device.types.d.ts","sourceRoot":"","sources":["../../src/match-device/use-match-device.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from "./use-match-resolution";
2
+ export * from "./use-match-resolution.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/match-resolution/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./use-match-resolution";
2
+ export * from "./use-match-resolution.types";
@@ -0,0 +1,4 @@
1
+ import { Breakpoints, MatchResolution } from "./use-match-resolution.types";
2
+ export declare const defaultBreakpoints: Breakpoints;
3
+ export declare const useMatchResolution: (breakpoints?: Breakpoints, UA?: string) => MatchResolution;
4
+ //# sourceMappingURL=use-match-resolution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-match-resolution.d.ts","sourceRoot":"","sources":["../../src/match-resolution/use-match-resolution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAc,MAAM,8BAA8B,CAAC;AAExF,eAAO,MAAM,kBAAkB,EAAE,WAchC,CAAC;AAYF,eAAO,MAAM,kBAAkB,iBAChB,WAAW,OACpB,MAAM,KACT,eAsCF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useState } from "react";
2
- import useMatchDevice from "../match-device/useMatchDevice";
2
+ import { useMatchDevice } from "..";
3
3
  export const defaultBreakpoints = {
4
4
  desktop: "(min-width: 1281px)",
5
5
  laptop: "(min-width: 1025px) and (max-width: 1280px)",
@@ -15,7 +15,7 @@ export const defaultBreakpoints = {
15
15
  portrait: "(orientation: portrait)",
16
16
  landscape: "(orientation: landscape)",
17
17
  };
18
- export default function useMatchResolution(breakpoints = defaultBreakpoints, UA = "") {
18
+ export const useMatchResolution = (breakpoints = defaultBreakpoints, UA = "") => {
19
19
  const isClientSide = typeof window !== "undefined";
20
20
  const { isDesktop, isMobile } = useMatchDevice(UA);
21
21
  const match = (query) => isClientSide && window.matchMedia(query).matches;
@@ -46,4 +46,4 @@ export default function useMatchResolution(breakpoints = defaultBreakpoints, UA
46
46
  setResolution(compute());
47
47
  }, [breakpoints]);
48
48
  return { resolution, breakpoints, match };
49
- }
49
+ };
@@ -1,4 +1,4 @@
1
- export interface Breakpoints {
1
+ export type Breakpoints = {
2
2
  desktop: string;
3
3
  laptop: string;
4
4
  laptopOrUpper: string;
@@ -12,8 +12,8 @@ export interface Breakpoints {
12
12
  mobile: string;
13
13
  portrait: string;
14
14
  landscape: string;
15
- }
16
- export interface Resolution {
15
+ };
16
+ export type Resolution = {
17
17
  isDesktop: boolean;
18
18
  isLaptop: boolean;
19
19
  isLaptopOrUpper: boolean;
@@ -27,12 +27,10 @@ export interface Resolution {
27
27
  isMobile: boolean;
28
28
  isPortrait: boolean;
29
29
  isLandscape: boolean;
30
- }
31
- export interface MatchResolution {
30
+ };
31
+ export type MatchResolution = {
32
32
  resolution: Resolution;
33
33
  breakpoints: Breakpoints;
34
34
  match: (query: string) => boolean;
35
- }
36
- export declare const defaultBreakpoints: Breakpoints;
37
- export default function useMatchResolution(breakpoints?: Breakpoints, UA?: string): MatchResolution;
38
- //# sourceMappingURL=useMatchResolution.d.ts.map
35
+ };
36
+ //# sourceMappingURL=use-match-resolution.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-match-resolution.types.d.ts","sourceRoot":"","sources":["../../src/match-resolution/use-match-resolution.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;IACvB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;CACnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./modal";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./modal";
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from "react";
2
+ type Props = {
3
+ children: ReactNode;
4
+ onClickedOutside?: () => void;
5
+ };
6
+ export declare const Modal: ({ children, onClickedOutside }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AAI5D,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,KAAK,mCAAoC,KAAK,4CAiB1D,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useEffect, useRef } from "react";
3
+ import { useOutsideAlerter } from "..";
4
+ import styles from "./modal.module.css";
5
+ export const Modal = ({ children, onClickedOutside }) => {
6
+ const ref = useRef(null);
7
+ const { hasClickedOutside } = useOutsideAlerter(ref);
8
+ useEffect(() => {
9
+ if (onClickedOutside && hasClickedOutside) {
10
+ onClickedOutside();
11
+ }
12
+ }, [hasClickedOutside]);
13
+ return (_jsx("div", { className: styles.overlay, children: _jsx("div", { className: styles.container, ref: ref, children: children }) }));
14
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./mount-react-hook";
2
+ export * from "./mount-react-hook.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mount-react-hook/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./mount-react-hook";
2
+ export * from "./mount-react-hook.types";
@@ -0,0 +1,4 @@
1
+ import { ComponentType } from "react";
2
+ import { MountedHook } from "./mount-react-hook.types";
3
+ export declare const mountReactHook: (Component: ComponentType, props?: ObjectLiteral) => MountedHook;
4
+ //# sourceMappingURL=mount-react-hook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mount-react-hook.d.ts","sourceRoot":"","sources":["../../src/mount-react-hook/mount-react-hook.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AASvD,eAAO,MAAM,cAAc,cACd,aAAa,UACjB,aAAa,KACnB,WAaF,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { render } from "@testing-library/react";
3
- export default function mountReactHook(Component, props = {}) {
3
+ export const mountReactHook = (Component, props = {}) => {
4
4
  let value = null;
5
5
  const { container, unmount } = render(_jsx(Component, Object.assign({}, props, { children: (hookValue) => {
6
6
  value = hookValue;
7
7
  return null;
8
8
  } })));
9
9
  return { container, unmount, value };
10
- }
10
+ };
@@ -0,0 +1,6 @@
1
+ export type MountedHook = {
2
+ container: HTMLElement;
3
+ unmount: () => void;
4
+ value: ObjectLiteral | Primitive;
5
+ };
6
+ //# sourceMappingURL=mount-react-hook.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mount-react-hook.types.d.ts","sourceRoot":"","sources":["../../src/mount-react-hook/mount-react-hook.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,aAAa,GAAG,SAAS,CAAC;CAClC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./numbered-pagination";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/numbered-pagination/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./numbered-pagination";
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from "react";
2
+ import { Pagination } from "..";
3
+ import { NumberedPaginationColors } from "./numbered-pagination.types";
4
+ export declare enum ArrowPosition {
5
+ LEFT = 0,
6
+ RIGHT = 1
7
+ }
8
+ type Props = Pagination & {
9
+ colors?: NumberedPaginationColors;
10
+ renderSingleArrow?: (position: ArrowPosition) => ReactNode;
11
+ renderDoubleArrow?: (position: ArrowPosition) => ReactNode;
12
+ };
13
+ export declare const NumberedPagination: ({ page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=numbered-pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numbered-pagination.d.ts","sourceRoot":"","sources":["../../src/numbered-pagination/numbered-pagination.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,oBAAY,aAAa;IACvB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AAED,KAAK,KAAK,GAAG,UAAU,GAAG;IACxB,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,SAAS,CAAC;IAC3D,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,SAAS,CAAC;CAC5D,CAAC;AAUF,eAAO,MAAM,kBAAkB,8HAY5B,KAAK,4CAqDP,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import clsx from "clsx";
3
+ import styles from "./numbered-pagination.module.css";
4
+ export var ArrowPosition;
5
+ (function (ArrowPosition) {
6
+ ArrowPosition[ArrowPosition["LEFT"] = 0] = "LEFT";
7
+ ArrowPosition[ArrowPosition["RIGHT"] = 1] = "RIGHT";
8
+ })(ArrowPosition || (ArrowPosition = {}));
9
+ export const NumberedPagination = ({ page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }) => {
10
+ const CSSVariables = {
11
+ "--hover-background-color": colors === null || colors === void 0 ? void 0 : colors.hover.background,
12
+ "--hover-text-color": colors === null || colors === void 0 ? void 0 : colors.hover.text,
13
+ "--selected-background-color": colors === null || colors === void 0 ? void 0 : colors.selected.background,
14
+ "--selected-text-color": colors === null || colors === void 0 ? void 0 : colors.selected.text,
15
+ };
16
+ return (_jsxs("div", { className: styles.container, style: CSSVariables, children: [page > 1 && (_jsxs(_Fragment, { children: [renderDoubleArrow && (_jsx("div", { className: styles.item, onClick: () => goToFirst(), children: renderDoubleArrow(ArrowPosition.LEFT) })), renderSingleArrow && (_jsx("div", { className: styles.item, onClick: () => goToLeft(), children: renderSingleArrow(ArrowPosition.LEFT) }))] })), items.map((currentPage, index) => (_jsx("div", { className: clsx(styles.item, currentPage === page && styles.selected), onClick: () => goToPage(currentPage), children: currentPage }, index))), page < total && (_jsxs(_Fragment, { children: [renderSingleArrow && (_jsx("div", { className: styles.item, onClick: () => goToRight(), children: renderSingleArrow(ArrowPosition.RIGHT) })), renderDoubleArrow && (_jsx("div", { className: styles.item, onClick: () => goToLast(), children: renderDoubleArrow(ArrowPosition.RIGHT) }))] }))] }));
17
+ };
@@ -0,0 +1,11 @@
1
+ export type NumberedPaginationColors = {
2
+ hover: {
3
+ background: string;
4
+ text: string;
5
+ };
6
+ selected: {
7
+ background: string;
8
+ text: string;
9
+ };
10
+ };
11
+ //# sourceMappingURL=numbered-pagination.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numbered-pagination.types.d.ts","sourceRoot":"","sources":["../../src/numbered-pagination/numbered-pagination.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,QAAQ,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./use-outside-alerter";
2
+ export * from "./use-outside-alerter.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/outside-alerter/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./use-outside-alerter";
2
+ export * from "./use-outside-alerter.types";
@@ -0,0 +1,4 @@
1
+ import { RefObject } from "react";
2
+ import { OutsideAlerter } from "./use-outside-alerter.types";
3
+ export declare const useOutsideAlerter: (ref: RefObject<HTMLElement>) => OutsideAlerter;
4
+ //# sourceMappingURL=use-outside-alerter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-outside-alerter.d.ts","sourceRoot":"","sources":["../../src/outside-alerter/use-outside-alerter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAY,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,iBAAiB,QAAS,SAAS,CAAC,WAAW,CAAC,KAAG,cAyB/D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useState } from "react";
2
- export default function useOutsideAlerter(ref) {
2
+ export const useOutsideAlerter = (ref) => {
3
3
  const [hasClickedOutside, setClickedOutside] = useState(false);
4
4
  const handleOnReset = () => {
5
5
  setClickedOutside(false);
@@ -19,4 +19,4 @@ export default function useOutsideAlerter(ref) {
19
19
  };
20
20
  }, [ref, hasClickedOutside]);
21
21
  return { hasClickedOutside, onReset: handleOnReset };
22
- }
22
+ };
@@ -0,0 +1,5 @@
1
+ export type OutsideAlerter = {
2
+ hasClickedOutside: boolean;
3
+ onReset: () => void;
4
+ };
5
+ //# sourceMappingURL=use-outside-alerter.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-outside-alerter.types.d.ts","sourceRoot":"","sources":["../../src/outside-alerter/use-outside-alerter.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from "./pagination";
2
+ export * from "./pagination.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pagination/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./pagination";
2
+ export * from "./pagination.types";
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from "react";
2
+ import { PaginationData, PaginationColors } from "..";
3
+ export declare enum ArrowPosition {
4
+ LEFT = 0,
5
+ RIGHT = 1
6
+ }
7
+ type Props = PaginationData & {
8
+ colors?: PaginationColors;
9
+ renderSingleArrow?: (position: ArrowPosition) => ReactNode;
10
+ renderDoubleArrow?: (position: ArrowPosition) => ReactNode;
11
+ };
12
+ export declare const Pagination: ({ page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }: Props) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/pagination/pagination.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAEtD,oBAAY,aAAa;IACvB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AAED,KAAK,KAAK,GAAG,cAAc,GAAG;IAC5B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,SAAS,CAAC;IAC3D,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,SAAS,CAAC;CAC5D,CAAC;AAUF,eAAO,MAAM,UAAU,8HAYpB,KAAK,4CAqDP,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import clsx from "clsx";
3
+ import styles from "./pagination.module.css";
4
+ export var ArrowPosition;
5
+ (function (ArrowPosition) {
6
+ ArrowPosition[ArrowPosition["LEFT"] = 0] = "LEFT";
7
+ ArrowPosition[ArrowPosition["RIGHT"] = 1] = "RIGHT";
8
+ })(ArrowPosition || (ArrowPosition = {}));
9
+ export const Pagination = ({ page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }) => {
10
+ const CSSVariables = {
11
+ "--hover-background-color": colors === null || colors === void 0 ? void 0 : colors.hover.background,
12
+ "--hover-text-color": colors === null || colors === void 0 ? void 0 : colors.hover.text,
13
+ "--selected-background-color": colors === null || colors === void 0 ? void 0 : colors.selected.background,
14
+ "--selected-text-color": colors === null || colors === void 0 ? void 0 : colors.selected.text,
15
+ };
16
+ return (_jsxs("div", { className: styles.container, style: CSSVariables, children: [page > 1 && (_jsxs(_Fragment, { children: [renderDoubleArrow && (_jsx("div", { className: styles.item, onClick: () => goToFirst(), children: renderDoubleArrow(ArrowPosition.LEFT) })), renderSingleArrow && (_jsx("div", { className: styles.item, onClick: () => goToLeft(), children: renderSingleArrow(ArrowPosition.LEFT) }))] })), items.map((currentPage, index) => (_jsx("div", { className: clsx(styles.item, currentPage === page && styles.selected), onClick: () => goToPage(currentPage), children: currentPage }, index))), page < total && (_jsxs(_Fragment, { children: [renderSingleArrow && (_jsx("div", { className: styles.item, onClick: () => goToRight(), children: renderSingleArrow(ArrowPosition.RIGHT) })), renderDoubleArrow && (_jsx("div", { className: styles.item, onClick: () => goToLast(), children: renderDoubleArrow(ArrowPosition.RIGHT) }))] }))] }));
17
+ };
@@ -0,0 +1,11 @@
1
+ export type PaginationColors = {
2
+ hover: {
3
+ background: string;
4
+ text: string;
5
+ };
6
+ selected: {
7
+ background: string;
8
+ text: string;
9
+ };
10
+ };
11
+ //# sourceMappingURL=pagination.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.types.d.ts","sourceRoot":"","sources":["../../src/pagination/pagination.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,QAAQ,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import { Pagination } from "./use-pagination.types";
2
+ type Props = {
3
+ page: number;
4
+ totalRecords: number;
5
+ maxRecordsPerPage?: number;
6
+ itemNeighbours?: number;
7
+ minItems?: number;
8
+ };
9
+ export declare const usePagination: (props: Props) => Pagination;
10
+ export {};
11
+ //# sourceMappingURL=use-pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-pagination.d.ts","sourceRoot":"","sources":["../../src/pagination/use-pagination.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAkBF,eAAO,MAAM,aAAa,UAAW,KAAK,KAAG,UA0D5C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useState } from "react";
2
- export default function usePagination(props) {
2
+ export const usePagination = (props) => {
3
3
  const { totalRecords, itemNeighbours = 2, minItems = 5, maxRecordsPerPage = 10 } = props;
4
4
  const [page, setPage] = useState(props.page);
5
5
  const [total, setTotal] = useState(0);
@@ -46,4 +46,4 @@ export default function usePagination(props) {
46
46
  goToRight,
47
47
  goToLast,
48
48
  };
49
- }
49
+ };
@@ -0,0 +1,12 @@
1
+ export type Pagination = {
2
+ page: number;
3
+ total: number;
4
+ items: number[];
5
+ maxRecordsPerPage: number;
6
+ goToPage: (page: number) => void;
7
+ goToFirst: () => void;
8
+ goToLeft: () => void;
9
+ goToRight: () => void;
10
+ goToLast: () => void;
11
+ };
12
+ //# sourceMappingURL=use-pagination.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-pagination.types.d.ts","sourceRoot":"","sources":["../../src/pagination/use-pagination.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from "./use-scroll-to";
2
+ export * from "./use-scroll-to.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scroll-to/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./use-scroll-to";
2
+ export * from "./use-scroll-to.types";
@@ -0,0 +1,4 @@
1
+ import { RefObject } from "react";
2
+ import { ScrollEvents } from "./use-scroll-to.types";
3
+ export declare const useScrollTo: (target: RefObject<HTMLElement>) => ScrollEvents;
4
+ //# sourceMappingURL=use-scroll-to.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-scroll-to.d.ts","sourceRoot":"","sources":["../../src/scroll-to/use-scroll-to.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AASrD,eAAO,MAAM,WAAW,WAAY,SAAS,CAAC,WAAW,CAAC,KAAG,YAc5D,CAAC"}
@@ -1,4 +1,4 @@
1
- export default function useScrollTo(target) {
1
+ export const useScrollTo = (target) => {
2
2
  const isClientSide = typeof window !== "undefined";
3
3
  if (!isClientSide) {
4
4
  return { scrollToTop: () => null };
@@ -9,4 +9,4 @@ export default function useScrollTo(target) {
9
9
  }
10
10
  };
11
11
  return { scrollToTop };
12
- }
12
+ };
@@ -0,0 +1,4 @@
1
+ export type ScrollEvents = {
2
+ scrollToTop: () => void;
3
+ };
4
+ //# sourceMappingURL=use-scroll-to.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-scroll-to.types.d.ts","sourceRoot":"","sources":["../../src/scroll-to/use-scroll-to.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowBottom.d.ts","sourceRoot":"","sources":["../../../src/select/icons/ArrowBottom.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,QAAA,MAAM,cAAc,UAAW,SAAS,aAAa,CAAC,4CAQrD,CAAC;AACF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"ArrowBottom.d.ts","sourceRoot":"","sources":["../../../src/select/icons/ArrowBottom.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,QAAA,MAAM,cAAc,UAAW,QAAQ,CAAC,aAAa,CAAC,4CAQrD,CAAC;AACF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./select";
2
+ export * from "./select.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/select/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./select";
2
+ export * from "./select.types";
@@ -0,0 +1,9 @@
1
+ import { SelectOptionWithoutId, SelectOption } from "./select.types";
2
+ type Props = {
3
+ options: SelectOptionWithoutId[];
4
+ selectedValue?: string;
5
+ onChange?: (option: SelectOption) => void;
6
+ };
7
+ export declare const Select: ({ options: optionsProps, selectedValue, onChange }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/select/select.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAErE,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,qBAAqB,EAAE,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,MAAM,uDAAwD,KAAK,4CAwE/E,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useRef, useState } from "react";
3
+ import styles from "./select.module.css";
4
+ import { ArrowBottom } from "./icons";
5
+ import { useOutsideAlerter } from "..";
6
+ export const Select = ({ options: optionsProps, selectedValue, onChange }) => {
7
+ const [options, setOptions] = useState(null);
8
+ const [isListVisible, setListVisibility] = useState(false);
9
+ const [selectedOption, setSelectedOption] = useState(null);
10
+ const ref = useRef(null);
11
+ const { hasClickedOutside, onReset: onResetOutsideAlerter } = useOutsideAlerter(ref);
12
+ const handleSelectedOptionClick = () => {
13
+ onResetOutsideAlerter();
14
+ setListVisibility(!isListVisible);
15
+ };
16
+ const handleOptionClick = (option) => {
17
+ setSelectedOption(option);
18
+ setListVisibility(false);
19
+ if (onChange) {
20
+ onChange(option);
21
+ }
22
+ };
23
+ useEffect(() => {
24
+ setOptions(optionsProps.map((option, index) => (Object.assign(Object.assign({}, option), { id: index }))));
25
+ }, [optionsProps]);
26
+ useEffect(() => {
27
+ if (options && !selectedOption) {
28
+ setSelectedOption(selectedValue ? options.find((option) => option.value === selectedValue) : options[0]);
29
+ }
30
+ }, [options]);
31
+ useEffect(() => {
32
+ if (hasClickedOutside) {
33
+ setListVisibility(false);
34
+ }
35
+ }, [hasClickedOutside]);
36
+ if (!options || !selectedOption) {
37
+ return null;
38
+ }
39
+ return (_jsxs("div", { className: styles.container, ref: ref, children: [_jsxs("div", { className: styles["selected-option-container"], onClick: handleSelectedOptionClick, children: [_jsx("span", { className: styles["selected-option-text"], children: selectedOption.label }), _jsx(ArrowBottom, { className: styles["selected-option-arrow"] })] }), isListVisible && (_jsx("ul", { className: styles["options-list"], children: options
40
+ .filter((option) => option.id !== selectedOption.id)
41
+ .map((option) => (_jsx("li", { className: styles.option, onClick: () => handleOptionClick(option), children: option.label }, option.id))) }))] }));
42
+ };
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from "react";
2
+ export type SelectOption = {
3
+ id: number;
4
+ label: string | ReactNode;
5
+ value: string;
6
+ };
7
+ export type SelectOptionWithoutId = Omit<SelectOption, "id">;
8
+ //# sourceMappingURL=select.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.types.d.ts","sourceRoot":"","sources":["../../src/select/select.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};