@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
@@ -1,289 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- interface Option {
3
- id: number;
4
- label: string | ReactNode;
5
- value: string;
6
- }
7
- export type OptionWithoutId = Omit<Option, "id">;
8
- interface Props {
9
- options: OptionWithoutId[];
10
- selectedValue?: string;
11
- onChange?: (option: Option) => void;
12
- className?: string;
13
- }
14
- export default function Select(props: Props): import("react/jsx-runtime").JSX.Element;
15
- declare const Option: import("styled-components").IStyledComponent<"web", {
16
- ref?: React.LegacyRef<HTMLLIElement>;
17
- key?: React.Key;
18
- value?: string | number | readonly string[];
19
- defaultChecked?: boolean;
20
- defaultValue?: string | number | readonly string[];
21
- suppressContentEditableWarning?: boolean;
22
- suppressHydrationWarning?: boolean;
23
- accessKey?: string;
24
- autoFocus?: boolean;
25
- className?: string;
26
- contentEditable?: "inherit" | (boolean | "true" | "false");
27
- contextMenu?: string;
28
- dir?: string;
29
- draggable?: boolean | "true" | "false";
30
- hidden?: boolean;
31
- id?: string;
32
- lang?: string;
33
- nonce?: string;
34
- placeholder?: string;
35
- slot?: string;
36
- spellCheck?: boolean | "true" | "false";
37
- style?: React.CSSProperties;
38
- tabIndex?: number;
39
- title?: string;
40
- translate?: "no" | "yes";
41
- radioGroup?: string;
42
- role?: React.AriaRole;
43
- about?: string;
44
- content?: string;
45
- datatype?: string;
46
- inlist?: any;
47
- prefix?: string;
48
- property?: string;
49
- rel?: string;
50
- resource?: string;
51
- rev?: string;
52
- typeof?: string;
53
- vocab?: string;
54
- autoCapitalize?: string;
55
- autoCorrect?: string;
56
- autoSave?: string;
57
- color?: string;
58
- itemProp?: string;
59
- itemScope?: boolean;
60
- itemType?: string;
61
- itemID?: string;
62
- itemRef?: string;
63
- results?: number;
64
- security?: string;
65
- unselectable?: "off" | "on";
66
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
67
- is?: string;
68
- "aria-activedescendant"?: string;
69
- "aria-atomic"?: boolean | "true" | "false";
70
- "aria-autocomplete"?: "list" | "none" | "inline" | "both";
71
- "aria-braillelabel"?: string;
72
- "aria-brailleroledescription"?: string;
73
- "aria-busy"?: boolean | "true" | "false";
74
- "aria-checked"?: boolean | "true" | "false" | "mixed";
75
- "aria-colcount"?: number;
76
- "aria-colindex"?: number;
77
- "aria-colindextext"?: string;
78
- "aria-colspan"?: number;
79
- "aria-controls"?: string;
80
- "aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date";
81
- "aria-describedby"?: string;
82
- "aria-description"?: string;
83
- "aria-details"?: string;
84
- "aria-disabled"?: boolean | "true" | "false";
85
- "aria-dropeffect"?: "link" | "copy" | "none" | "execute" | "move" | "popup";
86
- "aria-errormessage"?: string;
87
- "aria-expanded"?: boolean | "true" | "false";
88
- "aria-flowto"?: string;
89
- "aria-grabbed"?: boolean | "true" | "false";
90
- "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false";
91
- "aria-hidden"?: boolean | "true" | "false";
92
- "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
93
- "aria-keyshortcuts"?: string;
94
- "aria-label"?: string;
95
- "aria-labelledby"?: string;
96
- "aria-level"?: number;
97
- "aria-live"?: "off" | "assertive" | "polite";
98
- "aria-modal"?: boolean | "true" | "false";
99
- "aria-multiline"?: boolean | "true" | "false";
100
- "aria-multiselectable"?: boolean | "true" | "false";
101
- "aria-orientation"?: "horizontal" | "vertical";
102
- "aria-owns"?: string;
103
- "aria-placeholder"?: string;
104
- "aria-posinset"?: number;
105
- "aria-pressed"?: boolean | "true" | "false" | "mixed";
106
- "aria-readonly"?: boolean | "true" | "false";
107
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
108
- "aria-required"?: boolean | "true" | "false";
109
- "aria-roledescription"?: string;
110
- "aria-rowcount"?: number;
111
- "aria-rowindex"?: number;
112
- "aria-rowindextext"?: string;
113
- "aria-rowspan"?: number;
114
- "aria-selected"?: boolean | "true" | "false";
115
- "aria-setsize"?: number;
116
- "aria-sort"?: "none" | "ascending" | "descending" | "other";
117
- "aria-valuemax"?: number;
118
- "aria-valuemin"?: number;
119
- "aria-valuenow"?: number;
120
- "aria-valuetext"?: string;
121
- children?: React.ReactNode;
122
- dangerouslySetInnerHTML?: {
123
- __html: string | TrustedHTML;
124
- };
125
- onCopy?: React.ClipboardEventHandler<HTMLLIElement>;
126
- onCopyCapture?: React.ClipboardEventHandler<HTMLLIElement>;
127
- onCut?: React.ClipboardEventHandler<HTMLLIElement>;
128
- onCutCapture?: React.ClipboardEventHandler<HTMLLIElement>;
129
- onPaste?: React.ClipboardEventHandler<HTMLLIElement>;
130
- onPasteCapture?: React.ClipboardEventHandler<HTMLLIElement>;
131
- onCompositionEnd?: React.CompositionEventHandler<HTMLLIElement>;
132
- onCompositionEndCapture?: React.CompositionEventHandler<HTMLLIElement>;
133
- onCompositionStart?: React.CompositionEventHandler<HTMLLIElement>;
134
- onCompositionStartCapture?: React.CompositionEventHandler<HTMLLIElement>;
135
- onCompositionUpdate?: React.CompositionEventHandler<HTMLLIElement>;
136
- onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLLIElement>;
137
- onFocus?: React.FocusEventHandler<HTMLLIElement>;
138
- onFocusCapture?: React.FocusEventHandler<HTMLLIElement>;
139
- onBlur?: React.FocusEventHandler<HTMLLIElement>;
140
- onBlurCapture?: React.FocusEventHandler<HTMLLIElement>;
141
- onChange?: React.FormEventHandler<HTMLLIElement>;
142
- onChangeCapture?: React.FormEventHandler<HTMLLIElement>;
143
- onBeforeInput?: React.FormEventHandler<HTMLLIElement>;
144
- onBeforeInputCapture?: React.FormEventHandler<HTMLLIElement>;
145
- onInput?: React.FormEventHandler<HTMLLIElement>;
146
- onInputCapture?: React.FormEventHandler<HTMLLIElement>;
147
- onReset?: React.FormEventHandler<HTMLLIElement>;
148
- onResetCapture?: React.FormEventHandler<HTMLLIElement>;
149
- onSubmit?: React.FormEventHandler<HTMLLIElement>;
150
- onSubmitCapture?: React.FormEventHandler<HTMLLIElement>;
151
- onInvalid?: React.FormEventHandler<HTMLLIElement>;
152
- onInvalidCapture?: React.FormEventHandler<HTMLLIElement>;
153
- onLoad?: React.ReactEventHandler<HTMLLIElement>;
154
- onLoadCapture?: React.ReactEventHandler<HTMLLIElement>;
155
- onError?: React.ReactEventHandler<HTMLLIElement>;
156
- onErrorCapture?: React.ReactEventHandler<HTMLLIElement>;
157
- onKeyDown?: React.KeyboardEventHandler<HTMLLIElement>;
158
- onKeyDownCapture?: React.KeyboardEventHandler<HTMLLIElement>;
159
- onKeyPress?: React.KeyboardEventHandler<HTMLLIElement>;
160
- onKeyPressCapture?: React.KeyboardEventHandler<HTMLLIElement>;
161
- onKeyUp?: React.KeyboardEventHandler<HTMLLIElement>;
162
- onKeyUpCapture?: React.KeyboardEventHandler<HTMLLIElement>;
163
- onAbort?: React.ReactEventHandler<HTMLLIElement>;
164
- onAbortCapture?: React.ReactEventHandler<HTMLLIElement>;
165
- onCanPlay?: React.ReactEventHandler<HTMLLIElement>;
166
- onCanPlayCapture?: React.ReactEventHandler<HTMLLIElement>;
167
- onCanPlayThrough?: React.ReactEventHandler<HTMLLIElement>;
168
- onCanPlayThroughCapture?: React.ReactEventHandler<HTMLLIElement>;
169
- onDurationChange?: React.ReactEventHandler<HTMLLIElement>;
170
- onDurationChangeCapture?: React.ReactEventHandler<HTMLLIElement>;
171
- onEmptied?: React.ReactEventHandler<HTMLLIElement>;
172
- onEmptiedCapture?: React.ReactEventHandler<HTMLLIElement>;
173
- onEncrypted?: React.ReactEventHandler<HTMLLIElement>;
174
- onEncryptedCapture?: React.ReactEventHandler<HTMLLIElement>;
175
- onEnded?: React.ReactEventHandler<HTMLLIElement>;
176
- onEndedCapture?: React.ReactEventHandler<HTMLLIElement>;
177
- onLoadedData?: React.ReactEventHandler<HTMLLIElement>;
178
- onLoadedDataCapture?: React.ReactEventHandler<HTMLLIElement>;
179
- onLoadedMetadata?: React.ReactEventHandler<HTMLLIElement>;
180
- onLoadedMetadataCapture?: React.ReactEventHandler<HTMLLIElement>;
181
- onLoadStart?: React.ReactEventHandler<HTMLLIElement>;
182
- onLoadStartCapture?: React.ReactEventHandler<HTMLLIElement>;
183
- onPause?: React.ReactEventHandler<HTMLLIElement>;
184
- onPauseCapture?: React.ReactEventHandler<HTMLLIElement>;
185
- onPlay?: React.ReactEventHandler<HTMLLIElement>;
186
- onPlayCapture?: React.ReactEventHandler<HTMLLIElement>;
187
- onPlaying?: React.ReactEventHandler<HTMLLIElement>;
188
- onPlayingCapture?: React.ReactEventHandler<HTMLLIElement>;
189
- onProgress?: React.ReactEventHandler<HTMLLIElement>;
190
- onProgressCapture?: React.ReactEventHandler<HTMLLIElement>;
191
- onRateChange?: React.ReactEventHandler<HTMLLIElement>;
192
- onRateChangeCapture?: React.ReactEventHandler<HTMLLIElement>;
193
- onResize?: React.ReactEventHandler<HTMLLIElement>;
194
- onResizeCapture?: React.ReactEventHandler<HTMLLIElement>;
195
- onSeeked?: React.ReactEventHandler<HTMLLIElement>;
196
- onSeekedCapture?: React.ReactEventHandler<HTMLLIElement>;
197
- onSeeking?: React.ReactEventHandler<HTMLLIElement>;
198
- onSeekingCapture?: React.ReactEventHandler<HTMLLIElement>;
199
- onStalled?: React.ReactEventHandler<HTMLLIElement>;
200
- onStalledCapture?: React.ReactEventHandler<HTMLLIElement>;
201
- onSuspend?: React.ReactEventHandler<HTMLLIElement>;
202
- onSuspendCapture?: React.ReactEventHandler<HTMLLIElement>;
203
- onTimeUpdate?: React.ReactEventHandler<HTMLLIElement>;
204
- onTimeUpdateCapture?: React.ReactEventHandler<HTMLLIElement>;
205
- onVolumeChange?: React.ReactEventHandler<HTMLLIElement>;
206
- onVolumeChangeCapture?: React.ReactEventHandler<HTMLLIElement>;
207
- onWaiting?: React.ReactEventHandler<HTMLLIElement>;
208
- onWaitingCapture?: React.ReactEventHandler<HTMLLIElement>;
209
- onAuxClick?: React.MouseEventHandler<HTMLLIElement>;
210
- onAuxClickCapture?: React.MouseEventHandler<HTMLLIElement>;
211
- onClick?: React.MouseEventHandler<HTMLLIElement>;
212
- onClickCapture?: React.MouseEventHandler<HTMLLIElement>;
213
- onContextMenu?: React.MouseEventHandler<HTMLLIElement>;
214
- onContextMenuCapture?: React.MouseEventHandler<HTMLLIElement>;
215
- onDoubleClick?: React.MouseEventHandler<HTMLLIElement>;
216
- onDoubleClickCapture?: React.MouseEventHandler<HTMLLIElement>;
217
- onDrag?: React.DragEventHandler<HTMLLIElement>;
218
- onDragCapture?: React.DragEventHandler<HTMLLIElement>;
219
- onDragEnd?: React.DragEventHandler<HTMLLIElement>;
220
- onDragEndCapture?: React.DragEventHandler<HTMLLIElement>;
221
- onDragEnter?: React.DragEventHandler<HTMLLIElement>;
222
- onDragEnterCapture?: React.DragEventHandler<HTMLLIElement>;
223
- onDragExit?: React.DragEventHandler<HTMLLIElement>;
224
- onDragExitCapture?: React.DragEventHandler<HTMLLIElement>;
225
- onDragLeave?: React.DragEventHandler<HTMLLIElement>;
226
- onDragLeaveCapture?: React.DragEventHandler<HTMLLIElement>;
227
- onDragOver?: React.DragEventHandler<HTMLLIElement>;
228
- onDragOverCapture?: React.DragEventHandler<HTMLLIElement>;
229
- onDragStart?: React.DragEventHandler<HTMLLIElement>;
230
- onDragStartCapture?: React.DragEventHandler<HTMLLIElement>;
231
- onDrop?: React.DragEventHandler<HTMLLIElement>;
232
- onDropCapture?: React.DragEventHandler<HTMLLIElement>;
233
- onMouseDown?: React.MouseEventHandler<HTMLLIElement>;
234
- onMouseDownCapture?: React.MouseEventHandler<HTMLLIElement>;
235
- onMouseEnter?: React.MouseEventHandler<HTMLLIElement>;
236
- onMouseLeave?: React.MouseEventHandler<HTMLLIElement>;
237
- onMouseMove?: React.MouseEventHandler<HTMLLIElement>;
238
- onMouseMoveCapture?: React.MouseEventHandler<HTMLLIElement>;
239
- onMouseOut?: React.MouseEventHandler<HTMLLIElement>;
240
- onMouseOutCapture?: React.MouseEventHandler<HTMLLIElement>;
241
- onMouseOver?: React.MouseEventHandler<HTMLLIElement>;
242
- onMouseOverCapture?: React.MouseEventHandler<HTMLLIElement>;
243
- onMouseUp?: React.MouseEventHandler<HTMLLIElement>;
244
- onMouseUpCapture?: React.MouseEventHandler<HTMLLIElement>;
245
- onSelect?: React.ReactEventHandler<HTMLLIElement>;
246
- onSelectCapture?: React.ReactEventHandler<HTMLLIElement>;
247
- onTouchCancel?: React.TouchEventHandler<HTMLLIElement>;
248
- onTouchCancelCapture?: React.TouchEventHandler<HTMLLIElement>;
249
- onTouchEnd?: React.TouchEventHandler<HTMLLIElement>;
250
- onTouchEndCapture?: React.TouchEventHandler<HTMLLIElement>;
251
- onTouchMove?: React.TouchEventHandler<HTMLLIElement>;
252
- onTouchMoveCapture?: React.TouchEventHandler<HTMLLIElement>;
253
- onTouchStart?: React.TouchEventHandler<HTMLLIElement>;
254
- onTouchStartCapture?: React.TouchEventHandler<HTMLLIElement>;
255
- onPointerDown?: React.PointerEventHandler<HTMLLIElement>;
256
- onPointerDownCapture?: React.PointerEventHandler<HTMLLIElement>;
257
- onPointerMove?: React.PointerEventHandler<HTMLLIElement>;
258
- onPointerMoveCapture?: React.PointerEventHandler<HTMLLIElement>;
259
- onPointerUp?: React.PointerEventHandler<HTMLLIElement>;
260
- onPointerUpCapture?: React.PointerEventHandler<HTMLLIElement>;
261
- onPointerCancel?: React.PointerEventHandler<HTMLLIElement>;
262
- onPointerCancelCapture?: React.PointerEventHandler<HTMLLIElement>;
263
- onPointerEnter?: React.PointerEventHandler<HTMLLIElement>;
264
- onPointerEnterCapture?: React.PointerEventHandler<HTMLLIElement>;
265
- onPointerLeave?: React.PointerEventHandler<HTMLLIElement>;
266
- onPointerLeaveCapture?: React.PointerEventHandler<HTMLLIElement>;
267
- onPointerOver?: React.PointerEventHandler<HTMLLIElement>;
268
- onPointerOverCapture?: React.PointerEventHandler<HTMLLIElement>;
269
- onPointerOut?: React.PointerEventHandler<HTMLLIElement>;
270
- onPointerOutCapture?: React.PointerEventHandler<HTMLLIElement>;
271
- onGotPointerCapture?: React.PointerEventHandler<HTMLLIElement>;
272
- onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLLIElement>;
273
- onLostPointerCapture?: React.PointerEventHandler<HTMLLIElement>;
274
- onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLLIElement>;
275
- onScroll?: React.UIEventHandler<HTMLLIElement>;
276
- onScrollCapture?: React.UIEventHandler<HTMLLIElement>;
277
- onWheel?: React.WheelEventHandler<HTMLLIElement>;
278
- onWheelCapture?: React.WheelEventHandler<HTMLLIElement>;
279
- onAnimationStart?: React.AnimationEventHandler<HTMLLIElement>;
280
- onAnimationStartCapture?: React.AnimationEventHandler<HTMLLIElement>;
281
- onAnimationEnd?: React.AnimationEventHandler<HTMLLIElement>;
282
- onAnimationEndCapture?: React.AnimationEventHandler<HTMLLIElement>;
283
- onAnimationIteration?: React.AnimationEventHandler<HTMLLIElement>;
284
- onAnimationIterationCapture?: React.AnimationEventHandler<HTMLLIElement>;
285
- onTransitionEnd?: React.TransitionEventHandler<HTMLLIElement>;
286
- onTransitionEndCapture?: React.TransitionEventHandler<HTMLLIElement>;
287
- }>;
288
- export {};
289
- //# sourceMappingURL=Select.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAKtE,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAEjD,UAAU,KAAK;IACb,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,KAAK,2CA4E1C;AAoCD,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBX,CAAC"}
@@ -1,92 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useEffect, useRef, useState } from "react";
3
- import styled from "styled-components";
4
- import { ArrowBottom } from "./icons";
5
- import useOutsideAlerter from "../outside-alerter/useOutsideAlerter";
6
- export default function Select(props) {
7
- const { selectedValue, className, onChange } = props;
8
- const [options, setOptions] = useState(null);
9
- const [isListVisible, setListVisibility] = useState(false);
10
- const [selectedOption, setSelectedOption] = useState(null);
11
- const ref = useRef(null);
12
- const { hasClickedOutside, onReset: onResetOutsideAlerter } = useOutsideAlerter(ref);
13
- const handleSelectedOptionClick = () => {
14
- onResetOutsideAlerter();
15
- setListVisibility(!isListVisible);
16
- };
17
- const handleOptionClick = (option) => {
18
- setSelectedOption(option);
19
- setListVisibility(false);
20
- if (onChange) {
21
- onChange(option);
22
- }
23
- };
24
- useEffect(() => {
25
- setOptions(props.options.map((option, index) => (Object.assign(Object.assign({}, option), { id: index }))));
26
- }, [props.options]);
27
- useEffect(() => {
28
- if (options && !selectedOption) {
29
- setSelectedOption(selectedValue ? options.find((option) => option.value === selectedValue) : options[0]);
30
- }
31
- }, [options]);
32
- useEffect(() => {
33
- if (hasClickedOutside) {
34
- setListVisibility(false);
35
- }
36
- }, [hasClickedOutside]);
37
- if (!options || !selectedOption) {
38
- return null;
39
- }
40
- return (_jsxs(Container, { className: `select ${className}`, ref: ref, children: [_jsxs(SelectedOptionContainer, { className: "select-selected-option", onClick: handleSelectedOptionClick, children: [_jsx(SelectedOptionText, { className: "select-selected-option-text", children: selectedOption.label }), _jsx(SelectedOptionArrow, { className: "select-arrow" })] }), isListVisible && (_jsx(OptionsList, { className: "select-options", children: options
41
- .filter((option) => option.id !== selectedOption.id)
42
- .map((option) => (_jsx(Option, { className: "select-option", onClick: () => handleOptionClick(option), children: option.label }, option.id))) }))] }));
43
- }
44
- const Container = styled.div `
45
- width: fit-content;
46
- `;
47
- const SelectedOptionContainer = styled.div `
48
- display: flex;
49
- align-items: center;
50
- cursor: pointer;
51
- user-select: none;
52
- padding: 10px;
53
- background-color: white;
54
- border-radius: 5px;
55
- `;
56
- const SelectedOptionText = styled.span `
57
- padding-right: 10px;
58
- border-right: 1px solid black;
59
- `;
60
- const SelectedOptionArrow = styled(ArrowBottom) `
61
- width: 15px;
62
- margin-left: 10px;
63
- `;
64
- const OptionsList = styled.ul `
65
- width: 100%;
66
- list-style: none;
67
- padding: 0;
68
- margin: 10px 0 0 0;
69
- user-select: none;
70
- background-color: white;
71
- border-radius: 5px;
72
- `;
73
- const Option = styled.li `
74
- padding: 10px;
75
- cursor: pointer;
76
-
77
- &:hover {
78
- background-color: #ecf0f1;
79
-
80
- &:first-child {
81
- border-radius: 5px 5px 0 0;
82
- }
83
-
84
- &:last-child {
85
- border-radius: 0 0 5px 5px;
86
- }
87
-
88
- &:only-child {
89
- border-radius: 5px;
90
- }
91
- }
92
- `;