react-start-kit-shared 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +236 -0
  3. package/dist/chunks/Actions-2AYZB2tr.es.js +34 -0
  4. package/dist/chunks/Actions-2AYZB2tr.es.js.map +1 -0
  5. package/dist/chunks/Actions-CZS1OCgc.cjs.js +2 -0
  6. package/dist/chunks/Actions-CZS1OCgc.cjs.js.map +1 -0
  7. package/dist/chunks/DateRangePicker-BTWpQRRq.es.js +178 -0
  8. package/dist/chunks/DateRangePicker-BTWpQRRq.es.js.map +1 -0
  9. package/dist/chunks/DateRangePicker-D6Q3vFLO.cjs.js +2 -0
  10. package/dist/chunks/DateRangePicker-D6Q3vFLO.cjs.js.map +1 -0
  11. package/dist/chunks/Empty-BiJ2b9JP.cjs.js +2 -0
  12. package/dist/chunks/Empty-BiJ2b9JP.cjs.js.map +1 -0
  13. package/dist/chunks/Empty-CP4yXr6G.es.js +25 -0
  14. package/dist/chunks/Empty-CP4yXr6G.es.js.map +1 -0
  15. package/dist/chunks/ExportData-Cf-cs_pE.es.js +36 -0
  16. package/dist/chunks/ExportData-Cf-cs_pE.es.js.map +1 -0
  17. package/dist/chunks/ExportData-Yp3Tm5Lv.cjs.js +2 -0
  18. package/dist/chunks/ExportData-Yp3Tm5Lv.cjs.js.map +1 -0
  19. package/dist/chunks/Keyboard-CJVAJWdO.es.js +5 -0
  20. package/dist/chunks/Keyboard-CJVAJWdO.es.js.map +1 -0
  21. package/dist/chunks/Keyboard-kyPAAQWP.cjs.js +2 -0
  22. package/dist/chunks/Keyboard-kyPAAQWP.cjs.js.map +1 -0
  23. package/dist/chunks/Loader-B51uJ48y.cjs.js +2 -0
  24. package/dist/chunks/Loader-B51uJ48y.cjs.js.map +1 -0
  25. package/dist/chunks/Loader-JIMPYfiR.es.js +14 -0
  26. package/dist/chunks/Loader-JIMPYfiR.es.js.map +1 -0
  27. package/dist/chunks/MyInput-BbLCYCkb.es.js +280 -0
  28. package/dist/chunks/MyInput-BbLCYCkb.es.js.map +1 -0
  29. package/dist/chunks/MyInput-CIgmb5kZ.cjs.js +2 -0
  30. package/dist/chunks/MyInput-CIgmb5kZ.cjs.js.map +1 -0
  31. package/dist/chunks/MyPagination-DYYM6ks6.cjs.js +2 -0
  32. package/dist/chunks/MyPagination-DYYM6ks6.cjs.js.map +1 -0
  33. package/dist/chunks/MyPagination-Dtx70bK6.es.js +142 -0
  34. package/dist/chunks/MyPagination-Dtx70bK6.es.js.map +1 -0
  35. package/dist/chunks/MySelect-DWTZ-FuO.es.js +58 -0
  36. package/dist/chunks/MySelect-DWTZ-FuO.es.js.map +1 -0
  37. package/dist/chunks/MySelect-DoX-Qy5y.cjs.js +2 -0
  38. package/dist/chunks/MySelect-DoX-Qy5y.cjs.js.map +1 -0
  39. package/dist/chunks/PasswordConfirm-DGVigQbo.cjs.js +2 -0
  40. package/dist/chunks/PasswordConfirm-DGVigQbo.cjs.js.map +1 -0
  41. package/dist/chunks/PasswordConfirm-DYTMNa33.es.js +3270 -0
  42. package/dist/chunks/PasswordConfirm-DYTMNa33.es.js.map +1 -0
  43. package/dist/chunks/Search-BQKw3els.cjs.js +2 -0
  44. package/dist/chunks/Search-BQKw3els.cjs.js.map +1 -0
  45. package/dist/chunks/Search-DqbIV61m.es.js +147 -0
  46. package/dist/chunks/Search-DqbIV61m.es.js.map +1 -0
  47. package/dist/chunks/SortOrder-81BrXp3i.cjs.js +2 -0
  48. package/dist/chunks/SortOrder-81BrXp3i.cjs.js.map +1 -0
  49. package/dist/chunks/SortOrder-CwuehjY1.es.js +5 -0
  50. package/dist/chunks/SortOrder-CwuehjY1.es.js.map +1 -0
  51. package/dist/chunks/Spin-CCtUPIlI.cjs.js +2 -0
  52. package/dist/chunks/Spin-CCtUPIlI.cjs.js.map +1 -0
  53. package/dist/chunks/Spin-DSBxxpPG.es.js +37 -0
  54. package/dist/chunks/Spin-DSBxxpPG.es.js.map +1 -0
  55. package/dist/chunks/ThemeMode-BO6tit_Z.cjs.js +2 -0
  56. package/dist/chunks/ThemeMode-BO6tit_Z.cjs.js.map +1 -0
  57. package/dist/chunks/ThemeMode-CqURAYDL.es.js +5 -0
  58. package/dist/chunks/ThemeMode-CqURAYDL.es.js.map +1 -0
  59. package/dist/chunks/ThemeProviderContext-CDiIvEe7.es.js +10 -0
  60. package/dist/chunks/ThemeProviderContext-CDiIvEe7.es.js.map +1 -0
  61. package/dist/chunks/ThemeProviderContext-rq2okb30.cjs.js +2 -0
  62. package/dist/chunks/ThemeProviderContext-rq2okb30.cjs.js.map +1 -0
  63. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js +2 -0
  64. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js.map +1 -0
  65. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js +9 -0
  66. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js.map +1 -0
  67. package/dist/chunks/index-ClQFzqcq.cjs.js +2 -0
  68. package/dist/chunks/index-ClQFzqcq.cjs.js.map +1 -0
  69. package/dist/chunks/index-E1NtSoNr.es.js +10 -0
  70. package/dist/chunks/index-E1NtSoNr.es.js.map +1 -0
  71. package/dist/chunks/useColumnsStore-C5UCQBGh.es.js +181 -0
  72. package/dist/chunks/useColumnsStore-C5UCQBGh.es.js.map +1 -0
  73. package/dist/chunks/useColumnsStore-ChRhCpCd.cjs.js +2 -0
  74. package/dist/chunks/useColumnsStore-ChRhCpCd.cjs.js.map +1 -0
  75. package/dist/chunks/useFilter-D93ncAmn.cjs.js +2 -0
  76. package/dist/chunks/useFilter-D93ncAmn.cjs.js.map +1 -0
  77. package/dist/chunks/useFilter-DpCwY1KO.es.js +17 -0
  78. package/dist/chunks/useFilter-DpCwY1KO.es.js.map +1 -0
  79. package/dist/chunks/useSortable-B8xGLknV.cjs.js +2 -0
  80. package/dist/chunks/useSortable-B8xGLknV.cjs.js.map +1 -0
  81. package/dist/chunks/useSortable-DD1y7f_o.es.js +256 -0
  82. package/dist/chunks/useSortable-DD1y7f_o.es.js.map +1 -0
  83. package/dist/chunks/useTheme-hjEZ-FC3.cjs.js +2 -0
  84. package/dist/chunks/useTheme-hjEZ-FC3.cjs.js.map +1 -0
  85. package/dist/chunks/useTheme-iKF3BEvj.es.js +12 -0
  86. package/dist/chunks/useTheme-iKF3BEvj.es.js.map +1 -0
  87. package/dist/components/actions/index.cjs.js +2 -0
  88. package/dist/components/actions/index.cjs.js.map +1 -0
  89. package/dist/components/actions/index.es.js +5 -0
  90. package/dist/components/actions/index.es.js.map +1 -0
  91. package/dist/components/confirm/index.cjs.js +2 -0
  92. package/dist/components/confirm/index.cjs.js.map +1 -0
  93. package/dist/components/confirm/index.es.js +7 -0
  94. package/dist/components/confirm/index.es.js.map +1 -0
  95. package/dist/components/datatable/index.cjs.js +2 -0
  96. package/dist/components/datatable/index.cjs.js.map +1 -0
  97. package/dist/components/datatable/index.es.js +404 -0
  98. package/dist/components/datatable/index.es.js.map +1 -0
  99. package/dist/components/datepicker/index.cjs.js +2 -0
  100. package/dist/components/datepicker/index.cjs.js.map +1 -0
  101. package/dist/components/datepicker/index.es.js +5 -0
  102. package/dist/components/datepicker/index.es.js.map +1 -0
  103. package/dist/components/empty/index.cjs.js +2 -0
  104. package/dist/components/empty/index.cjs.js.map +1 -0
  105. package/dist/components/empty/index.es.js +5 -0
  106. package/dist/components/empty/index.es.js.map +1 -0
  107. package/dist/components/export/index.cjs.js +2 -0
  108. package/dist/components/export/index.cjs.js.map +1 -0
  109. package/dist/components/export/index.es.js +5 -0
  110. package/dist/components/export/index.es.js.map +1 -0
  111. package/dist/components/filters/index.cjs.js +2 -0
  112. package/dist/components/filters/index.cjs.js.map +1 -0
  113. package/dist/components/filters/index.es.js +48 -0
  114. package/dist/components/filters/index.es.js.map +1 -0
  115. package/dist/components/form/index.cjs.js +2 -0
  116. package/dist/components/form/index.cjs.js.map +1 -0
  117. package/dist/components/form/index.es.js +450 -0
  118. package/dist/components/form/index.es.js.map +1 -0
  119. package/dist/components/gallery/index.cjs.js +2 -0
  120. package/dist/components/gallery/index.cjs.js.map +1 -0
  121. package/dist/components/gallery/index.es.js +308 -0
  122. package/dist/components/gallery/index.es.js.map +1 -0
  123. package/dist/components/loader/index.cjs.js +2 -0
  124. package/dist/components/loader/index.cjs.js.map +1 -0
  125. package/dist/components/loader/index.es.js +7 -0
  126. package/dist/components/loader/index.es.js.map +1 -0
  127. package/dist/components/modal/index.cjs.js +2 -0
  128. package/dist/components/modal/index.cjs.js.map +1 -0
  129. package/dist/components/modal/index.es.js +46 -0
  130. package/dist/components/modal/index.es.js.map +1 -0
  131. package/dist/components/pagination/index.cjs.js +2 -0
  132. package/dist/components/pagination/index.cjs.js.map +1 -0
  133. package/dist/components/pagination/index.es.js +6 -0
  134. package/dist/components/pagination/index.es.js.map +1 -0
  135. package/dist/components/scroll/index.cjs.js +2 -0
  136. package/dist/components/scroll/index.cjs.js.map +1 -0
  137. package/dist/components/scroll/index.es.js +16 -0
  138. package/dist/components/scroll/index.es.js.map +1 -0
  139. package/dist/components/theme/index.cjs.js +2 -0
  140. package/dist/components/theme/index.cjs.js.map +1 -0
  141. package/dist/components/theme/index.es.js +26 -0
  142. package/dist/components/theme/index.es.js.map +1 -0
  143. package/dist/components/tooltip/index.cjs.js +2 -0
  144. package/dist/components/tooltip/index.cjs.js.map +1 -0
  145. package/dist/components/tooltip/index.es.js +18 -0
  146. package/dist/components/tooltip/index.es.js.map +1 -0
  147. package/dist/enums/index.cjs.js +2 -0
  148. package/dist/enums/index.cjs.js.map +1 -0
  149. package/dist/enums/index.es.js +9 -0
  150. package/dist/enums/index.es.js.map +1 -0
  151. package/dist/hooks/index.cjs.js +21 -0
  152. package/dist/hooks/index.cjs.js.map +1 -0
  153. package/dist/hooks/index.es.js +1015 -0
  154. package/dist/hooks/index.es.js.map +1 -0
  155. package/dist/index.cjs.js +2 -0
  156. package/dist/index.cjs.js.map +1 -0
  157. package/dist/index.es.js +2 -0
  158. package/dist/index.es.js.map +1 -0
  159. package/dist/providers/index.cjs.js +2 -0
  160. package/dist/providers/index.cjs.js.map +1 -0
  161. package/dist/providers/index.es.js +32 -0
  162. package/dist/providers/index.es.js.map +1 -0
  163. package/dist/stores/index.cjs.js +2 -0
  164. package/dist/stores/index.cjs.js.map +1 -0
  165. package/dist/stores/index.es.js +21 -0
  166. package/dist/stores/index.es.js.map +1 -0
  167. package/dist/styles.css +1 -0
  168. package/dist/types/App.d.ts +3 -0
  169. package/dist/types/App.d.ts.map +1 -0
  170. package/dist/types/components/actions/Actions.d.ts +32 -0
  171. package/dist/types/components/actions/Actions.d.ts.map +1 -0
  172. package/dist/types/components/actions/index.d.ts +2 -0
  173. package/dist/types/components/actions/index.d.ts.map +1 -0
  174. package/dist/types/components/confirm/Confirm.d.ts +27 -0
  175. package/dist/types/components/confirm/Confirm.d.ts.map +1 -0
  176. package/dist/types/components/confirm/PasswordConfirm.d.ts +22 -0
  177. package/dist/types/components/confirm/PasswordConfirm.d.ts.map +1 -0
  178. package/dist/types/components/confirm/index.d.ts +4 -0
  179. package/dist/types/components/confirm/index.d.ts.map +1 -0
  180. package/dist/types/components/datatable/DataTable.d.ts +196 -0
  181. package/dist/types/components/datatable/DataTable.d.ts.map +1 -0
  182. package/dist/types/components/datatable/MyTable.d.ts +56 -0
  183. package/dist/types/components/datatable/MyTable.d.ts.map +1 -0
  184. package/dist/types/components/datatable/index.d.ts +3 -0
  185. package/dist/types/components/datatable/index.d.ts.map +1 -0
  186. package/dist/types/components/datepicker/DateRangePicker.d.ts +50 -0
  187. package/dist/types/components/datepicker/DateRangePicker.d.ts.map +1 -0
  188. package/dist/types/components/datepicker/index.d.ts +2 -0
  189. package/dist/types/components/datepicker/index.d.ts.map +1 -0
  190. package/dist/types/components/empty/Empty.d.ts +19 -0
  191. package/dist/types/components/empty/Empty.d.ts.map +1 -0
  192. package/dist/types/components/empty/index.d.ts +2 -0
  193. package/dist/types/components/empty/index.d.ts.map +1 -0
  194. package/dist/types/components/export/ExportData.d.ts +52 -0
  195. package/dist/types/components/export/ExportData.d.ts.map +1 -0
  196. package/dist/types/components/export/index.d.ts +2 -0
  197. package/dist/types/components/export/index.d.ts.map +1 -0
  198. package/dist/types/components/filters/AppliedFilters.d.ts +24 -0
  199. package/dist/types/components/filters/AppliedFilters.d.ts.map +1 -0
  200. package/dist/types/components/filters/FilterWrapper.d.ts +58 -0
  201. package/dist/types/components/filters/FilterWrapper.d.ts.map +1 -0
  202. package/dist/types/components/filters/Search.d.ts +28 -0
  203. package/dist/types/components/filters/Search.d.ts.map +1 -0
  204. package/dist/types/components/filters/SearchWithCtrl.d.ts +25 -0
  205. package/dist/types/components/filters/SearchWithCtrl.d.ts.map +1 -0
  206. package/dist/types/components/filters/index.d.ts +4 -0
  207. package/dist/types/components/filters/index.d.ts.map +1 -0
  208. package/dist/types/components/form/MyCheckbox.d.ts +20 -0
  209. package/dist/types/components/form/MyCheckbox.d.ts.map +1 -0
  210. package/dist/types/components/form/MyDatePicker.d.ts +43 -0
  211. package/dist/types/components/form/MyDatePicker.d.ts.map +1 -0
  212. package/dist/types/components/form/MyDateRangePicker.d.ts +26 -0
  213. package/dist/types/components/form/MyDateRangePicker.d.ts.map +1 -0
  214. package/dist/types/components/form/MyHtmlEditor.d.ts +26 -0
  215. package/dist/types/components/form/MyHtmlEditor.d.ts.map +1 -0
  216. package/dist/types/components/form/MyInput.d.ts +24 -0
  217. package/dist/types/components/form/MyInput.d.ts.map +1 -0
  218. package/dist/types/components/form/MyMaskInput.d.ts +28 -0
  219. package/dist/types/components/form/MyMaskInput.d.ts.map +1 -0
  220. package/dist/types/components/form/MyRadio.d.ts +25 -0
  221. package/dist/types/components/form/MyRadio.d.ts.map +1 -0
  222. package/dist/types/components/form/MySelect.d.ts +29 -0
  223. package/dist/types/components/form/MySelect.d.ts.map +1 -0
  224. package/dist/types/components/form/MyShadcnSelect.d.ts +39 -0
  225. package/dist/types/components/form/MyShadcnSelect.d.ts.map +1 -0
  226. package/dist/types/components/form/MySwitch.d.ts +20 -0
  227. package/dist/types/components/form/MySwitch.d.ts.map +1 -0
  228. package/dist/types/components/form/MyTextarea.d.ts +24 -0
  229. package/dist/types/components/form/MyTextarea.d.ts.map +1 -0
  230. package/dist/types/components/form/MyTimePicker.d.ts +29 -0
  231. package/dist/types/components/form/MyTimePicker.d.ts.map +1 -0
  232. package/dist/types/components/form/index.d.ts +14 -0
  233. package/dist/types/components/form/index.d.ts.map +1 -0
  234. package/dist/types/components/gallery/MyGallery.d.ts +62 -0
  235. package/dist/types/components/gallery/MyGallery.d.ts.map +1 -0
  236. package/dist/types/components/gallery/index.d.ts +2 -0
  237. package/dist/types/components/gallery/index.d.ts.map +1 -0
  238. package/dist/types/components/index.d.ts +15 -0
  239. package/dist/types/components/index.d.ts.map +1 -0
  240. package/dist/types/components/loader/Loader.d.ts +10 -0
  241. package/dist/types/components/loader/Loader.d.ts.map +1 -0
  242. package/dist/types/components/loader/Spin.d.ts +14 -0
  243. package/dist/types/components/loader/Spin.d.ts.map +1 -0
  244. package/dist/types/components/loader/index.d.ts +4 -0
  245. package/dist/types/components/loader/index.d.ts.map +1 -0
  246. package/dist/types/components/modal/MyModal.d.ts +51 -0
  247. package/dist/types/components/modal/MyModal.d.ts.map +1 -0
  248. package/dist/types/components/modal/index.d.ts +2 -0
  249. package/dist/types/components/modal/index.d.ts.map +1 -0
  250. package/dist/types/components/pagination/MyLimitSelect.d.ts +27 -0
  251. package/dist/types/components/pagination/MyLimitSelect.d.ts.map +1 -0
  252. package/dist/types/components/pagination/MyPagination.d.ts +39 -0
  253. package/dist/types/components/pagination/MyPagination.d.ts.map +1 -0
  254. package/dist/types/components/pagination/index.d.ts +4 -0
  255. package/dist/types/components/pagination/index.d.ts.map +1 -0
  256. package/dist/types/components/scroll/ScrollArea.d.ts +10 -0
  257. package/dist/types/components/scroll/ScrollArea.d.ts.map +1 -0
  258. package/dist/types/components/scroll/index.d.ts +2 -0
  259. package/dist/types/components/scroll/index.d.ts.map +1 -0
  260. package/dist/types/components/theme/index.d.ts +2 -0
  261. package/dist/types/components/theme/index.d.ts.map +1 -0
  262. package/dist/types/components/theme/theme-toggle.d.ts +15 -0
  263. package/dist/types/components/theme/theme-toggle.d.ts.map +1 -0
  264. package/dist/types/components/tooltip/MyTooltip.d.ts +25 -0
  265. package/dist/types/components/tooltip/MyTooltip.d.ts.map +1 -0
  266. package/dist/types/components/tooltip/index.d.ts +3 -0
  267. package/dist/types/components/tooltip/index.d.ts.map +1 -0
  268. package/dist/types/contexts/ThemeProviderContext.d.ts +18 -0
  269. package/dist/types/contexts/ThemeProviderContext.d.ts.map +1 -0
  270. package/dist/types/contexts/index.d.ts +2 -0
  271. package/dist/types/contexts/index.d.ts.map +1 -0
  272. package/dist/types/enums/Keyboard.d.ts +8 -0
  273. package/dist/types/enums/Keyboard.d.ts.map +1 -0
  274. package/dist/types/enums/SortOrder.d.ts +10 -0
  275. package/dist/types/enums/SortOrder.d.ts.map +1 -0
  276. package/dist/types/enums/ThemeMode.d.ts +12 -0
  277. package/dist/types/enums/ThemeMode.d.ts.map +1 -0
  278. package/dist/types/enums/index.d.ts +4 -0
  279. package/dist/types/enums/index.d.ts.map +1 -0
  280. package/dist/types/hooks/index.d.ts +9 -0
  281. package/dist/types/hooks/index.d.ts.map +1 -0
  282. package/dist/types/hooks/useColumns.d.ts +31 -0
  283. package/dist/types/hooks/useColumns.d.ts.map +1 -0
  284. package/dist/types/hooks/useConfirm.d.ts +21 -0
  285. package/dist/types/hooks/useConfirm.d.ts.map +1 -0
  286. package/dist/types/hooks/useDataTable.d.ts +33 -0
  287. package/dist/types/hooks/useDataTable.d.ts.map +1 -0
  288. package/dist/types/hooks/useDocumentTitle.d.ts +9 -0
  289. package/dist/types/hooks/useDocumentTitle.d.ts.map +1 -0
  290. package/dist/types/hooks/useFilter.d.ts +29 -0
  291. package/dist/types/hooks/useFilter.d.ts.map +1 -0
  292. package/dist/types/hooks/useMediaQuerySizes.d.ts +22 -0
  293. package/dist/types/hooks/useMediaQuerySizes.d.ts.map +1 -0
  294. package/dist/types/hooks/useSortable.d.ts +29 -0
  295. package/dist/types/hooks/useSortable.d.ts.map +1 -0
  296. package/dist/types/hooks/useTheme.d.ts +14 -0
  297. package/dist/types/hooks/useTheme.d.ts.map +1 -0
  298. package/dist/types/index.cjs.js +2 -0
  299. package/dist/types/index.cjs.js.map +1 -0
  300. package/dist/types/index.d.ts +1 -0
  301. package/dist/types/index.d.ts.map +1 -0
  302. package/dist/types/index.es.js +2 -0
  303. package/dist/types/index.es.js.map +1 -0
  304. package/dist/types/main.d.ts +1 -0
  305. package/dist/types/main.d.ts.map +1 -0
  306. package/dist/types/providers/ThemeProvider.d.ts +24 -0
  307. package/dist/types/providers/ThemeProvider.d.ts.map +1 -0
  308. package/dist/types/providers/index.d.ts +2 -0
  309. package/dist/types/providers/index.d.ts.map +1 -0
  310. package/dist/types/schemas/createConfirmPasswordSchema.d.ts +20 -0
  311. package/dist/types/schemas/createConfirmPasswordSchema.d.ts.map +1 -0
  312. package/dist/types/schemas/index.d.ts +2 -0
  313. package/dist/types/schemas/index.d.ts.map +1 -0
  314. package/dist/types/stores/index.d.ts +3 -0
  315. package/dist/types/stores/index.d.ts.map +1 -0
  316. package/dist/types/stores/useColumnsStore.d.ts +26 -0
  317. package/dist/types/stores/useColumnsStore.d.ts.map +1 -0
  318. package/dist/types/stores/useDateRangeStore.d.ts +27 -0
  319. package/dist/types/stores/useDateRangeStore.d.ts.map +1 -0
  320. package/dist/types/stories/Actions.stories.d.ts +8 -0
  321. package/dist/types/stories/Actions.stories.d.ts.map +1 -0
  322. package/dist/types/stories/AppliedFilters.stories.d.ts +10 -0
  323. package/dist/types/stories/AppliedFilters.stories.d.ts.map +1 -0
  324. package/dist/types/stories/Confirm.stories.d.ts +8 -0
  325. package/dist/types/stories/Confirm.stories.d.ts.map +1 -0
  326. package/dist/types/stories/DataTable.stories.d.ts +19 -0
  327. package/dist/types/stories/DataTable.stories.d.ts.map +1 -0
  328. package/dist/types/stories/DateRangePicker.stories.d.ts +10 -0
  329. package/dist/types/stories/DateRangePicker.stories.d.ts.map +1 -0
  330. package/dist/types/stories/Empty.stories.d.ts +9 -0
  331. package/dist/types/stories/Empty.stories.d.ts.map +1 -0
  332. package/dist/types/stories/ExportData.stories.d.ts +9 -0
  333. package/dist/types/stories/ExportData.stories.d.ts.map +1 -0
  334. package/dist/types/stories/FilterWrapper.stories.d.ts +9 -0
  335. package/dist/types/stories/FilterWrapper.stories.d.ts.map +1 -0
  336. package/dist/types/stories/Loader.stories.d.ts +7 -0
  337. package/dist/types/stories/Loader.stories.d.ts.map +1 -0
  338. package/dist/types/stories/MyCheckbox.stories.d.ts +8 -0
  339. package/dist/types/stories/MyCheckbox.stories.d.ts.map +1 -0
  340. package/dist/types/stories/MyDatePicker.stories.d.ts +10 -0
  341. package/dist/types/stories/MyDatePicker.stories.d.ts.map +1 -0
  342. package/dist/types/stories/MyDateRangePicker.stories.d.ts +8 -0
  343. package/dist/types/stories/MyDateRangePicker.stories.d.ts.map +1 -0
  344. package/dist/types/stories/MyGallery.stories.d.ts +9 -0
  345. package/dist/types/stories/MyGallery.stories.d.ts.map +1 -0
  346. package/dist/types/stories/MyHtmlEditor.stories.d.ts +8 -0
  347. package/dist/types/stories/MyHtmlEditor.stories.d.ts.map +1 -0
  348. package/dist/types/stories/MyInput.stories.d.ts +10 -0
  349. package/dist/types/stories/MyInput.stories.d.ts.map +1 -0
  350. package/dist/types/stories/MyLimitSelect.stories.d.ts +9 -0
  351. package/dist/types/stories/MyLimitSelect.stories.d.ts.map +1 -0
  352. package/dist/types/stories/MyMaskInput.stories.d.ts +9 -0
  353. package/dist/types/stories/MyMaskInput.stories.d.ts.map +1 -0
  354. package/dist/types/stories/MyModal.stories.d.ts +10 -0
  355. package/dist/types/stories/MyModal.stories.d.ts.map +1 -0
  356. package/dist/types/stories/MyPagination.stories.d.ts +10 -0
  357. package/dist/types/stories/MyPagination.stories.d.ts.map +1 -0
  358. package/dist/types/stories/MyRadio.stories.d.ts +7 -0
  359. package/dist/types/stories/MyRadio.stories.d.ts.map +1 -0
  360. package/dist/types/stories/MySelect.stories.d.ts +10 -0
  361. package/dist/types/stories/MySelect.stories.d.ts.map +1 -0
  362. package/dist/types/stories/MyShadcnSelect.stories.d.ts +9 -0
  363. package/dist/types/stories/MyShadcnSelect.stories.d.ts.map +1 -0
  364. package/dist/types/stories/MySwitch.stories.d.ts +8 -0
  365. package/dist/types/stories/MySwitch.stories.d.ts.map +1 -0
  366. package/dist/types/stories/MyTable.stories.d.ts +19 -0
  367. package/dist/types/stories/MyTable.stories.d.ts.map +1 -0
  368. package/dist/types/stories/MyTextarea.stories.d.ts +9 -0
  369. package/dist/types/stories/MyTextarea.stories.d.ts.map +1 -0
  370. package/dist/types/stories/MyTimePicker.stories.d.ts +9 -0
  371. package/dist/types/stories/MyTimePicker.stories.d.ts.map +1 -0
  372. package/dist/types/stories/MyTooltip.stories.d.ts +10 -0
  373. package/dist/types/stories/MyTooltip.stories.d.ts.map +1 -0
  374. package/dist/types/stories/PasswordConfirm.stories.d.ts +8 -0
  375. package/dist/types/stories/PasswordConfirm.stories.d.ts.map +1 -0
  376. package/dist/types/stories/ScrollArea.stories.d.ts +8 -0
  377. package/dist/types/stories/ScrollArea.stories.d.ts.map +1 -0
  378. package/dist/types/stories/Search.stories.d.ts +8 -0
  379. package/dist/types/stories/Search.stories.d.ts.map +1 -0
  380. package/dist/types/stories/SearchWithCtrl.stories.d.ts +8 -0
  381. package/dist/types/stories/SearchWithCtrl.stories.d.ts.map +1 -0
  382. package/dist/types/stories/Spin.stories.d.ts +8 -0
  383. package/dist/types/stories/Spin.stories.d.ts.map +1 -0
  384. package/dist/types/stories/ThemeToggle.stories.d.ts +8 -0
  385. package/dist/types/stories/ThemeToggle.stories.d.ts.map +1 -0
  386. package/dist/types/types/column.type.d.ts +31 -0
  387. package/dist/types/types/column.type.d.ts.map +1 -0
  388. package/dist/types/types/index.d.ts +3 -0
  389. package/dist/types/types/index.d.ts.map +1 -0
  390. package/dist/types/types/translation-args.type.d.ts +17 -0
  391. package/dist/types/types/translation-args.type.d.ts.map +1 -0
  392. package/dist/types/utils/index.d.ts +2 -0
  393. package/dist/types/utils/index.d.ts.map +1 -0
  394. package/dist/types/utils/utils.d.ts +8 -0
  395. package/dist/types/utils/utils.d.ts.map +1 -0
  396. package/dist/types/vite-env.d.ts +1 -0
  397. package/dist/utils/index.cjs.js +2 -0
  398. package/dist/utils/index.cjs.js.map +1 -0
  399. package/dist/utils/index.es.js +7 -0
  400. package/dist/utils/index.es.js.map +1 -0
  401. package/package.json +265 -0
@@ -0,0 +1,46 @@
1
+ import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
+ import { Dialog as d, DialogTrigger as h, DialogContent as w, DialogHeader as g, DialogTitle as p, DialogDescription as D, DialogFooter as s } from "react-start-kit/dialog";
3
+ import { cn as u } from "react-start-kit/utils";
4
+ const T = ({
5
+ header: t,
6
+ footer: x,
7
+ trigger: m,
8
+ children: r,
9
+ size: l = "lg",
10
+ className: e,
11
+ triggerProps: n,
12
+ contentProps: c,
13
+ ...i
14
+ }) => /* @__PURE__ */ o(d, { ...i, children: [
15
+ m && /* @__PURE__ */ a(h, { asChild: !0, ...n, children: m }),
16
+ /* @__PURE__ */ o(
17
+ w,
18
+ {
19
+ className: u(
20
+ "data-[state=open]:animate-contentShowTop top-4 bottom-auto max-h-[calc(100vh-2rem)] max-w-lg translate-y-0 overflow-y-auto",
21
+ l === "xl" && "max-w-xl",
22
+ l === "2xl" && "max-w-2xl",
23
+ l === "3xl" && "max-w-3xl",
24
+ l === "4xl" && "max-w-5xl",
25
+ l === "5xl" && "max-w-5xl",
26
+ l === "6xl" && "max-w-6xl",
27
+ l === "7xl" && "max-w-7xl",
28
+ l === "full" && "max-w-[95%]",
29
+ e
30
+ ),
31
+ ...c,
32
+ children: [
33
+ /* @__PURE__ */ o(g, { children: [
34
+ /* @__PURE__ */ a(p, { className: "mb-0", children: t }),
35
+ /* @__PURE__ */ a(D, { className: "hidden" })
36
+ ] }),
37
+ r,
38
+ x && /* @__PURE__ */ a(s, { children: x })
39
+ ]
40
+ }
41
+ )
42
+ ] });
43
+ export {
44
+ T as MyModal
45
+ };
46
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../src/components/modal/MyModal.tsx"],"sourcesContent":["import type { DialogProps } from '@radix-ui/react-dialog';\nimport type { ReactNode } from 'react';\nimport {\n Dialog,\n type DialogContainerProps,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from 'react-start-kit/dialog';\nimport { cn } from 'react-start-kit/utils';\n\n/**\n * Props for the MyModal component.\n * Extends Radix UI's DialogProps.\n *\n * @typedef {Object} MyModalProps\n * @property {ReactNode} [header] - The content to be displayed in the modal header.\n * @property {ReactNode} [trigger] - The element that triggers the modal when clicked.\n * @property {ReactNode} [children] - The main content of the modal.\n * @property {ReactNode} [footer] - The content to be displayed in the modal footer.\n * @property {string} [className] - Additional CSS classes for the modal content.\n * @property {'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full'} [size='lg'] - The maximum width size of the modal.\n * @property {DialogContainerProps['triggerProps']} [triggerProps] - Props passed to the DialogTrigger component.\n * @property {DialogContainerProps['contentProps']} [contentProps] - Props passed to the DialogContent component.\n */\nexport type MyModalProps = DialogProps &\n DialogContainerProps & {\n header?: ReactNode;\n trigger?: ReactNode;\n children?: ReactNode;\n footer?: ReactNode;\n className?: string;\n size?: 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full';\n };\n\n/**\n * A reusable modal component that wraps the Dialog component from react-start-kit.\n * It provides a structured layout with a header, scrollable content area, and optional footer.\n *\n * @component\n * @param {ReactNode} props.header - The content to be displayed in the modal header\n * @param {ReactNode} props.footer - The content to be displayed in the modal footer\n * @param {ReactNode} props.trigger - The element that triggers the modal when clicked\n * @param {ReactNode} props.children - The main content of the modal\n * @param {'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full'} props.size - The maximum width size of the modal (default: 'lg')\n * @param {string} props.className - Additional CSS classes for the modal content\n * @param {DialogContainerProps['triggerProps']} props.triggerProps - Props passed to the DialogTrigger component\n * @param {DialogContainerProps['contentProps']} props.contentProps - Props passed to the DialogContent component\n * @returns {JSX.Element} A modal dialog component\n *\n * @example\n * <MyModal\n * header=\"User Settings\"\n * trigger={<button>Open Settings</button>}\n * footer={<button onClick={save}>Save</button>}\n * >\n * <p>Settings content goes here...</p>\n * </MyModal>\n */\nexport const MyModal = ({\n header,\n footer,\n trigger,\n children,\n size = 'lg',\n className,\n triggerProps,\n contentProps,\n ...props\n}: MyModalProps) => {\n return (\n <Dialog {...props}>\n {trigger && (\n <DialogTrigger asChild {...triggerProps}>\n {trigger}\n </DialogTrigger>\n )}\n <DialogContent\n className={cn(\n `data-[state=open]:animate-contentShowTop top-4 bottom-auto max-h-[calc(100vh-2rem)] max-w-lg translate-y-0 overflow-y-auto`,\n size === 'xl' && 'max-w-xl',\n size === '2xl' && 'max-w-2xl',\n size === '3xl' && 'max-w-3xl',\n size === '4xl' && 'max-w-5xl',\n size === '5xl' && 'max-w-5xl',\n size === '6xl' && 'max-w-6xl',\n size === '7xl' && 'max-w-7xl',\n size === 'full' && 'max-w-[95%]',\n className\n )}\n {...contentProps}\n >\n <DialogHeader>\n <DialogTitle className={'mb-0'}>{header}</DialogTitle>\n <DialogDescription className={'hidden'} />\n </DialogHeader>\n {children}\n {footer && <DialogFooter>{footer}</DialogFooter>}\n </DialogContent>\n </Dialog>\n );\n};\n"],"names":["MyModal","header","footer","trigger","children","size","className","triggerProps","contentProps","props","jsxs","Dialog","DialogTrigger","DialogContent","cn","DialogHeader","jsx","DialogTitle","DialogDescription","DialogFooter"],"mappings":";;;AA8DO,MAAMA,IAAU,CAAC;AAAA,EACtB,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAQ,GAAGF,GACT,UAAA;AAAA,EAAAN,uBACES,GAAA,EAAc,SAAO,IAAE,GAAGL,GACxB,UAAAJ,GACH;AAAA,EAEF,gBAAAO;AAAA,IAACG;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAT,MAAS,QAAQ;AAAA,QACjBA,MAAS,SAAS;AAAA,QAClBA,MAAS,SAAS;AAAA,QAClBA,MAAS,SAAS;AAAA,QAClBA,MAAS,SAAS;AAAA,QAClBA,MAAS,SAAS;AAAA,QAClBA,MAAS,SAAS;AAAA,QAClBA,MAAS,UAAU;AAAA,QACnBC;AAAA,MAAA;AAAA,MAED,GAAGE;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAE,EAACK,GAAA,EACC,UAAA;AAAA,UAAA,gBAAAC,EAACC,GAAA,EAAY,WAAW,QAAS,UAAAhB,GAAO;AAAA,UACxC,gBAAAe,EAACE,GAAA,EAAkB,WAAW,SAAA,CAAU;AAAA,QAAA,GAC1C;AAAA,QACCd;AAAA,QACAF,KAAU,gBAAAc,EAACG,GAAA,EAAc,UAAAjB,EAAA,CAAO;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AACnC,GACF;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../chunks/MyPagination-DYYM6ks6.cjs.js");exports.MyLimitSelect=i.MyLimitSelect;exports.MyPagination=i.MyPagination;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { M as t, a as e } from "../../chunks/MyPagination-Dtx70bK6.es.js";
2
+ export {
3
+ t as MyLimitSelect,
4
+ e as MyPagination
5
+ };
6
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react-start-kit/utils"),t=({className:r,...l})=>e.jsx("div",{...l,className:o.cn("scrollbar-thin scrollbar-thumb-rounded-full scrollbar-track-rounded-full overflow-auto",r)});exports.ScrollArea=t;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../src/components/scroll/ScrollArea.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { cn } from 'react-start-kit/utils';\n\n/**\n * ScrollArea is a simple styled scrollable container div.\n *\n * @param props - Native div props.\n * @param className - className extends default scrollbar styles.\n * @returns {JSX.Element} A scrollable container component.\n */\nexport const ScrollArea = ({ className, ...props }: ComponentProps<'div'>) => {\n return (\n <div\n {...props}\n className={cn(\n 'scrollbar-thin scrollbar-thumb-rounded-full scrollbar-track-rounded-full overflow-auto',\n className\n )}\n />\n );\n};\n"],"names":["ScrollArea","className","props","jsx","cn"],"mappings":"wJAUaA,EAAa,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAEvCC,EAAAA,IAAC,MAAA,CACE,GAAGD,EACJ,UAAWE,EAAAA,GACT,yFACAH,CAAA,CACF,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { cn as t } from "react-start-kit/utils";
3
+ const e = ({ className: r, ...o }) => /* @__PURE__ */ l(
4
+ "div",
5
+ {
6
+ ...o,
7
+ className: t(
8
+ "scrollbar-thin scrollbar-thumb-rounded-full scrollbar-track-rounded-full overflow-auto",
9
+ r
10
+ )
11
+ }
12
+ );
13
+ export {
14
+ e as ScrollArea
15
+ };
16
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../src/components/scroll/ScrollArea.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { cn } from 'react-start-kit/utils';\n\n/**\n * ScrollArea is a simple styled scrollable container div.\n *\n * @param props - Native div props.\n * @param className - className extends default scrollbar styles.\n * @returns {JSX.Element} A scrollable container component.\n */\nexport const ScrollArea = ({ className, ...props }: ComponentProps<'div'>) => {\n return (\n <div\n {...props}\n className={cn(\n 'scrollbar-thin scrollbar-thumb-rounded-full scrollbar-track-rounded-full overflow-auto',\n className\n )}\n />\n );\n};\n"],"names":["ScrollArea","className","props","jsx","cn"],"mappings":";;AAUO,MAAMA,IAAa,CAAC,EAAE,WAAAC,GAAW,GAAGC,QAEvC,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACE,GAAGD;AAAA,IACJ,WAAWE;AAAA,MACT;AAAA,MACAH;AAAA,IAAA;AAAA,EACF;AAAA;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("lucide-react"),a=require("react-i18next"),c=require("react-start-kit/button"),r=require("react-start-kit/dropdown"),t=require("../../chunks/ThemeMode-BO6tit_Z.cjs.js"),l=require("../../chunks/useTheme-hjEZ-FC3.cjs.js");function d({className:i}){const{t:n}=a.useTranslation(),{setTheme:o}=l.useTheme();return e.jsxs(r.DropdownMenu,{children:[e.jsx(r.DropdownMenuTrigger,{asChild:!0,children:e.jsxs(c.Button,{variant:"tertiary",size:"icon",className:i,children:[e.jsx(s.Sun,{className:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"}),e.jsx(s.Moon,{className:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),e.jsx("span",{className:"sr-only",children:n("Toggle theme")})]})}),e.jsxs(r.DropdownMenuContent,{align:"end",children:[e.jsx(r.DropdownMenuItem,{onClick:()=>o(t.ThemeMode.LIGHT),children:n("Light")}),e.jsx(r.DropdownMenuItem,{onClick:()=>o(t.ThemeMode.DARK),children:n("Dark")}),e.jsx(r.DropdownMenuItem,{onClick:()=>o(t.ThemeMode.SYSTEM),children:n("System")})]})]})}exports.ThemeToggle=d;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../src/components/theme/theme-toggle.tsx"],"sourcesContent":["import { Moon, Sun } from 'lucide-react';\nimport { useTranslation } from 'react-i18next';\nimport { Button } from 'react-start-kit/button';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from 'react-start-kit/dropdown';\nimport { ThemeMode } from '../../enums';\nimport { useTheme } from '../../hooks';\n\n/**\n * Props for the ThemeToggle component.\n */\nexport interface ThemeToggleProps {\n /** Optional className passed to the trigger button. */\n className?: string;\n}\n\n/**\n * ThemeToggle provides a dropdown to switch between Light, Dark, and System themes.\n *\n * @param className - Optional className passed to the trigger button.\n * @returns {JSX.Element} A dropdown menu to switch themes.\n */\nexport function ThemeToggle({ className }: ThemeToggleProps) {\n const { t } = useTranslation();\n const { setTheme } = useTheme();\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button variant=\"tertiary\" size=\"icon\" className={className}>\n <Sun className=\"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90\" />\n <Moon className=\"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0\" />\n <span className=\"sr-only\">{t('Toggle theme')}</span>\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n <DropdownMenuItem onClick={() => setTheme(ThemeMode.LIGHT)}>\n {t('Light')}\n </DropdownMenuItem>\n <DropdownMenuItem onClick={() => setTheme(ThemeMode.DARK)}>\n {t('Dark')}\n </DropdownMenuItem>\n <DropdownMenuItem onClick={() => setTheme(ThemeMode.SYSTEM)}>\n {t('System')}\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n"],"names":["ThemeToggle","className","t","useTranslation","setTheme","useTheme","DropdownMenu","jsx","DropdownMenuTrigger","jsxs","Button","Sun","Moon","DropdownMenuContent","DropdownMenuItem","ThemeMode"],"mappings":"2VA0BO,SAASA,EAAY,CAAE,UAAAC,GAA+B,CAC3D,KAAM,CAAE,EAAAC,CAAA,EAAMC,iBAAA,EACR,CAAE,SAAAC,CAAA,EAAaC,WAAA,EAErB,cACGC,eAAA,CACC,SAAA,CAAAC,EAAAA,IAACC,EAAAA,oBAAA,CAAoB,QAAO,GAC1B,SAAAC,EAAAA,KAACC,EAAAA,QAAO,QAAQ,WAAW,KAAK,OAAO,UAAAT,EACrC,SAAA,CAAAM,EAAAA,IAACI,EAAAA,IAAA,CAAI,UAAU,sFAAA,CAAuF,EACtGJ,EAAAA,IAACK,EAAAA,KAAA,CAAK,UAAU,8FAAA,CAA+F,QAC9G,OAAA,CAAK,UAAU,UAAW,SAAAV,EAAE,cAAc,CAAA,CAAE,CAAA,CAAA,CAC/C,CAAA,CACF,EACAO,EAAAA,KAACI,EAAAA,oBAAA,CAAoB,MAAM,MACzB,SAAA,CAAAN,EAAAA,IAACO,EAAAA,iBAAA,CAAiB,QAAS,IAAMV,EAASW,EAAAA,UAAU,KAAK,EACtD,SAAAb,EAAE,OAAO,CAAA,CACZ,EACAK,EAAAA,IAACO,EAAAA,iBAAA,CAAiB,QAAS,IAAMV,EAASW,EAAAA,UAAU,IAAI,EACrD,SAAAb,EAAE,MAAM,CAAA,CACX,EACAK,EAAAA,IAACO,EAAAA,iBAAA,CAAiB,QAAS,IAAMV,EAASW,YAAU,MAAM,EACvD,SAAAb,EAAE,QAAQ,CAAA,CACb,CAAA,CAAA,CACF,CAAA,EACF,CAEJ"}
@@ -0,0 +1,26 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { Sun as l, Moon as s } from "lucide-react";
3
+ import { useTranslation as m } from "react-i18next";
4
+ import { Button as c } from "react-start-kit/button";
5
+ import { DropdownMenu as d, DropdownMenuTrigger as h, DropdownMenuContent as p, DropdownMenuItem as t } from "react-start-kit/dropdown";
6
+ import { T as a } from "../../chunks/ThemeMode-CqURAYDL.es.js";
7
+ import { u } from "../../chunks/useTheme-iKF3BEvj.es.js";
8
+ function C({ className: i }) {
9
+ const { t: r } = m(), { setTheme: o } = u();
10
+ return /* @__PURE__ */ n(d, { children: [
11
+ /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ n(c, { variant: "tertiary", size: "icon", className: i, children: [
12
+ /* @__PURE__ */ e(l, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
13
+ /* @__PURE__ */ e(s, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
14
+ /* @__PURE__ */ e("span", { className: "sr-only", children: r("Toggle theme") })
15
+ ] }) }),
16
+ /* @__PURE__ */ n(p, { align: "end", children: [
17
+ /* @__PURE__ */ e(t, { onClick: () => o(a.LIGHT), children: r("Light") }),
18
+ /* @__PURE__ */ e(t, { onClick: () => o(a.DARK), children: r("Dark") }),
19
+ /* @__PURE__ */ e(t, { onClick: () => o(a.SYSTEM), children: r("System") })
20
+ ] })
21
+ ] });
22
+ }
23
+ export {
24
+ C as ThemeToggle
25
+ };
26
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../src/components/theme/theme-toggle.tsx"],"sourcesContent":["import { Moon, Sun } from 'lucide-react';\nimport { useTranslation } from 'react-i18next';\nimport { Button } from 'react-start-kit/button';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from 'react-start-kit/dropdown';\nimport { ThemeMode } from '../../enums';\nimport { useTheme } from '../../hooks';\n\n/**\n * Props for the ThemeToggle component.\n */\nexport interface ThemeToggleProps {\n /** Optional className passed to the trigger button. */\n className?: string;\n}\n\n/**\n * ThemeToggle provides a dropdown to switch between Light, Dark, and System themes.\n *\n * @param className - Optional className passed to the trigger button.\n * @returns {JSX.Element} A dropdown menu to switch themes.\n */\nexport function ThemeToggle({ className }: ThemeToggleProps) {\n const { t } = useTranslation();\n const { setTheme } = useTheme();\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button variant=\"tertiary\" size=\"icon\" className={className}>\n <Sun className=\"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90\" />\n <Moon className=\"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0\" />\n <span className=\"sr-only\">{t('Toggle theme')}</span>\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n <DropdownMenuItem onClick={() => setTheme(ThemeMode.LIGHT)}>\n {t('Light')}\n </DropdownMenuItem>\n <DropdownMenuItem onClick={() => setTheme(ThemeMode.DARK)}>\n {t('Dark')}\n </DropdownMenuItem>\n <DropdownMenuItem onClick={() => setTheme(ThemeMode.SYSTEM)}>\n {t('System')}\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n"],"names":["ThemeToggle","className","t","useTranslation","setTheme","useTheme","DropdownMenu","jsx","DropdownMenuTrigger","jsxs","Button","Sun","Moon","DropdownMenuContent","DropdownMenuItem","ThemeMode"],"mappings":";;;;;;;AA0BO,SAASA,EAAY,EAAE,WAAAC,KAA+B;AAC3D,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACR,EAAE,UAAAC,EAAA,IAAaC,EAAA;AAErB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EAAoB,SAAO,IAC1B,UAAA,gBAAAC,EAACC,KAAO,SAAQ,YAAW,MAAK,QAAO,WAAAT,GACrC,UAAA;AAAA,MAAA,gBAAAM,EAACI,GAAA,EAAI,WAAU,uFAAA,CAAuF;AAAA,MACtG,gBAAAJ,EAACK,GAAA,EAAK,WAAU,+FAAA,CAA+F;AAAA,wBAC9G,QAAA,EAAK,WAAU,WAAW,UAAAV,EAAE,cAAc,EAAA,CAAE;AAAA,IAAA,EAAA,CAC/C,EAAA,CACF;AAAA,IACA,gBAAAO,EAACI,GAAA,EAAoB,OAAM,OACzB,UAAA;AAAA,MAAA,gBAAAN,EAACO,GAAA,EAAiB,SAAS,MAAMV,EAASW,EAAU,KAAK,GACtD,UAAAb,EAAE,OAAO,EAAA,CACZ;AAAA,MACA,gBAAAK,EAACO,GAAA,EAAiB,SAAS,MAAMV,EAASW,EAAU,IAAI,GACrD,UAAAb,EAAE,MAAM,EAAA,CACX;AAAA,MACA,gBAAAK,EAACO,GAAA,EAAiB,SAAS,MAAMV,EAASW,EAAU,MAAM,GACvD,UAAAb,EAAE,QAAQ,EAAA,CACb;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react-start-kit/tooltip"),o=require("react/jsx-runtime");require("react");const s=({content:e,children:r,show:i=!0,asChild:l,...n})=>i?o.jsx(t.TooltipProvider,{children:o.jsxs(t.Tooltip,{children:[o.jsx(t.TooltipContent,{...n,children:e}),o.jsx(t.TooltipTrigger,{asChild:l,children:r})]})}):r;exports.MyTooltip=s;Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../src/components/tooltip/MyTooltip.tsx"],"sourcesContent":["import { type TooltipContentProps } from '@radix-ui/react-tooltip';\nimport { type ReactNode } from 'react';\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from 'react-start-kit/tooltip';\n\n/**\n * Props for the MyTooltip component.\n */\nexport type MyTooltipProps = Omit<TooltipContentProps, 'content'> & {\n /** Element that triggers the tooltip. */\n children: ReactNode;\n /** Content shown inside the tooltip. */\n content: ReactNode;\n /** Whether to render the tooltip; if false, renders children only. */\n show?: boolean;\n asChild?: boolean;\n};\n\n/**\n * MyTooltip wraps children with a tooltip that can be conditionally shown.\n *\n * @param props.content - Content shown inside the tooltip.\n * @param props.children - Element that triggers the tooltip.\n * @param props.show - Whether to render the tooltip; if false, renders children only.\n * @param props.asChild - Whether to render the tooltip trigger as child element.\n * @returns {JSX.Element} Either a tooltip-wrapped element or just the children\n */\nexport const MyTooltip = ({\n content,\n children,\n show = true,\n asChild,\n ...props\n}: MyTooltipProps) => {\n return show ? (\n <TooltipProvider>\n <Tooltip>\n <TooltipContent {...props}>{content}</TooltipContent>\n <TooltipTrigger asChild={asChild}>{children}</TooltipTrigger>\n </Tooltip>\n </TooltipProvider>\n ) : (\n children\n );\n};\n"],"names":["MyTooltip","content","children","show","asChild","props","jsx","TooltipProvider","jsxs","Tooltip","TooltipContent","TooltipTrigger"],"mappings":"2KA+BO,MAAMA,EAAY,CAAC,CACxB,QAAAC,EACA,SAAAC,EACA,KAAAC,EAAO,GACP,QAAAC,EACA,GAAGC,CACL,IACSF,EACLG,EAAAA,IAACC,kBAAA,CACC,SAAAC,OAACC,EAAAA,QAAA,CACC,SAAA,CAAAH,EAAAA,IAACI,EAAAA,eAAA,CAAgB,GAAGL,EAAQ,SAAAJ,CAAA,CAAQ,EACpCK,EAAAA,IAACK,EAAAA,eAAA,CAAe,QAAAP,EAAmB,SAAAF,CAAA,CAAS,CAAA,CAAA,CAC9C,EACF,EAEAA"}
@@ -0,0 +1,18 @@
1
+ import { TooltipProvider as l, Tooltip as m, TooltipContent as n, TooltipTrigger as T } from "react-start-kit/tooltip";
2
+ export * from "react-start-kit/tooltip";
3
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
4
+ import "react";
5
+ const f = ({
6
+ content: t,
7
+ children: r,
8
+ show: i = !0,
9
+ asChild: p,
10
+ ...e
11
+ }) => i ? /* @__PURE__ */ o(l, { children: /* @__PURE__ */ s(m, { children: [
12
+ /* @__PURE__ */ o(n, { ...e, children: t }),
13
+ /* @__PURE__ */ o(T, { asChild: p, children: r })
14
+ ] }) }) : r;
15
+ export {
16
+ f as MyTooltip
17
+ };
18
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../src/components/tooltip/MyTooltip.tsx"],"sourcesContent":["import { type TooltipContentProps } from '@radix-ui/react-tooltip';\nimport { type ReactNode } from 'react';\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from 'react-start-kit/tooltip';\n\n/**\n * Props for the MyTooltip component.\n */\nexport type MyTooltipProps = Omit<TooltipContentProps, 'content'> & {\n /** Element that triggers the tooltip. */\n children: ReactNode;\n /** Content shown inside the tooltip. */\n content: ReactNode;\n /** Whether to render the tooltip; if false, renders children only. */\n show?: boolean;\n asChild?: boolean;\n};\n\n/**\n * MyTooltip wraps children with a tooltip that can be conditionally shown.\n *\n * @param props.content - Content shown inside the tooltip.\n * @param props.children - Element that triggers the tooltip.\n * @param props.show - Whether to render the tooltip; if false, renders children only.\n * @param props.asChild - Whether to render the tooltip trigger as child element.\n * @returns {JSX.Element} Either a tooltip-wrapped element or just the children\n */\nexport const MyTooltip = ({\n content,\n children,\n show = true,\n asChild,\n ...props\n}: MyTooltipProps) => {\n return show ? (\n <TooltipProvider>\n <Tooltip>\n <TooltipContent {...props}>{content}</TooltipContent>\n <TooltipTrigger asChild={asChild}>{children}</TooltipTrigger>\n </Tooltip>\n </TooltipProvider>\n ) : (\n children\n );\n};\n"],"names":["MyTooltip","content","children","show","asChild","props","jsx","TooltipProvider","jsxs","Tooltip","TooltipContent","TooltipTrigger"],"mappings":";;;;AA+BO,MAAMA,IAAY,CAAC;AAAA,EACxB,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,SAAAC;AAAA,EACA,GAAGC;AACL,MACSF,IACL,gBAAAG,EAACC,GAAA,EACC,UAAA,gBAAAC,EAACC,GAAA,EACC,UAAA;AAAA,EAAA,gBAAAH,EAACI,GAAA,EAAgB,GAAGL,GAAQ,UAAAJ,EAAA,CAAQ;AAAA,EACpC,gBAAAK,EAACK,GAAA,EAAe,SAAAP,GAAmB,UAAAF,EAAA,CAAS;AAAA,EAAA,CAC9C,GACF,IAEAA;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/Keyboard-kyPAAQWP.cjs.js"),r=require("../chunks/SortOrder-81BrXp3i.cjs.js"),o=require("../chunks/ThemeMode-BO6tit_Z.cjs.js");exports.Keyboard=e.Keyboard;exports.SortOrder=r.SortOrder;exports.ThemeMode=o.ThemeMode;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { K as e } from "../chunks/Keyboard-CJVAJWdO.es.js";
2
+ import { S as m } from "../chunks/SortOrder-CwuehjY1.es.js";
3
+ import { T as d } from "../chunks/ThemeMode-CqURAYDL.es.js";
4
+ export {
5
+ e as Keyboard,
6
+ m as SortOrder,
7
+ d as ThemeMode
8
+ };
9
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -0,0 +1,21 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ve=require("../chunks/useSortable-B8xGLknV.cjs.js"),V=require("react/jsx-runtime"),$=require("react"),U=require("../chunks/PasswordConfirm-DGVigQbo.cjs.js"),Le=require("../chunks/useFilter-D93ncAmn.cjs.js"),Ie=require("../chunks/_commonjsHelpers-DKOUU3wS.cjs.js"),Ye=require("../chunks/useTheme-hjEZ-FC3.cjs.js"),We=()=>{const e=$.useCallback(({onConfirm:a})=>{const o=crypto.randomUUID();U.y.warning(V.jsx(V.Fragment,{}),{toastId:o,autoClose:!1}),U.y.update(o,{position:"bottom-left",render:V.jsx(U.Confirm,{defaultOpen:!0,onConfirm:()=>{a(),U.y.dismiss(o)}})})},[]),n=$.useCallback(({onSubmit:a,title:o,description:f})=>{const s=crypto.randomUUID();U.y.warning(V.jsx(V.Fragment,{}),{position:"bottom-left",toastId:s,autoClose:!1}),U.y.update(s,{render:V.jsx(U.PasswordConfirm,{defaultOpen:!0,title:o,description:f,onSubmit:l=>{a(l),U.y.dismiss(s)}})})},[]);return{confirm:e,confirmPassword:n}},Fe=(e,n=!1)=>{const a=$.useRef(document.title);$.useEffect(()=>(n&&a.current===document.title&&(a.current=document.title),document.title=e,()=>{n&&(document.title=a.current)}),[e,n])};var G={},Ee;function Ue(){if(Ee)return G;Ee=1,G.match=s,G.parse=l;var e=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,n=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,a=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,f=/(dpi|dpcm|dppx)?$/;function s(d,u){return l(d).some(function(v){var g=v.inverse,j=v.type==="all"||u.type===v.type;if(j&&g||!(j||g))return!1;var A=v.expressions.every(function(q){var D=q.feature,Y=q.modifier,x=q.value,S=u[D];if(!S)return!1;switch(D){case"orientation":case"scan":return S.toLowerCase()===x.toLowerCase();case"width":case"height":case"device-width":case"device-height":x=C(x),S=C(S);break;case"resolution":x=m(x),S=m(S);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":x=p(x),S=p(S);break;case"grid":case"color":case"color-index":case"monochrome":x=parseInt(x,10)||1,S=parseInt(S,10)||0;break}switch(Y){case"min":return S>=x;case"max":return S<=x;default:return S===x}});return A&&!g||!A&&g})}function l(d){return d.split(",").map(function(u){u=u.trim();var v=u.match(e),g=v[1],j=v[2],A=v[3]||"",q={};return q.inverse=!!g&&g.toLowerCase()==="not",q.type=j?j.toLowerCase():"all",A=A.match(/\([^\)]+\)/g)||[],q.expressions=A.map(function(D){var Y=D.match(n),x=Y[1].toLowerCase().match(a);return{modifier:x[1],feature:x[2],value:Y[2]}}),q})}function p(d){var u=Number(d),v;return u||(v=d.match(/^(\d+)\s*\/\s*(\d+)$/),u=v[1]/v[2]),u}function m(d){var u=parseFloat(d),v=String(d).match(f)[1];switch(v){case"dpcm":return u/2.54;case"dppx":return u*96;default:return u}}function C(d){var u=parseFloat(d),v=String(d).match(o)[1];switch(v){case"em":return u*16;case"rem":return u*16;case"cm":return u*96/2.54;case"mm":return u*96/2.54/10;case"in":return u*96;case"pt":return u*72;case"pc":return u*72/12;default:return u}}return G}var ce,Te;function ze(){if(Te)return ce;Te=1;var e=Ue().match,n=typeof window<"u"?window.matchMedia:null;function a(f,s,l){var p=this,m;n&&!l&&(m=n.call(window,f)),m?(this.matches=m.matches,this.media=m.media,m.addListener(u)):(this.matches=e(f,s),this.media=f),this.addListener=C,this.removeListener=d,this.dispose=v;function C(g){m&&m.addListener(g)}function d(g){m&&m.removeListener(g)}function u(g){p.matches=g.matches,p.media=g.media}function v(){m&&m.removeListener(u)}}function o(f,s,l){return new a(f,s,l)}return ce=o,ce}var Ne=ze();const He=Ie.getDefaultExportFromCjs(Ne);var Qe=/[A-Z]/g,Ve=/^ms-/,ue={};function Ke(e){return"-"+e.toLowerCase()}function qe(e){if(ue.hasOwnProperty(e))return ue[e];var n=e.replace(Qe,Ke);return ue[e]=Ve.test(n)?"-"+n:n}function Je(e,n){if(e===n)return!0;if(!e||!n)return!1;const a=Object.keys(e),o=Object.keys(n),f=a.length;if(o.length!==f)return!1;for(let s=0;s<f;s++){const l=a[s];if(e[l]!==n[l]||!Object.prototype.hasOwnProperty.call(n,l))return!1}return!0}var Z={exports:{}},B={exports:{}},_={};/** @license React v16.13.1
2
+ * react-is.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */var ge;function Xe(){if(ge)return _;ge=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,f=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,C=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,j=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,q=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,Y=e?Symbol.for("react.scope"):60119;function x(i){if(typeof i=="object"&&i!==null){var z=i.$$typeof;switch(z){case n:switch(i=i.type,i){case m:case C:case o:case s:case f:case u:return i;default:switch(i=i&&i.$$typeof,i){case p:case d:case j:case g:case l:return i;default:return z}}case a:return z}}}function S(i){return x(i)===C}return _.AsyncMode=m,_.ConcurrentMode=C,_.ContextConsumer=p,_.ContextProvider=l,_.Element=n,_.ForwardRef=d,_.Fragment=o,_.Lazy=j,_.Memo=g,_.Portal=a,_.Profiler=s,_.StrictMode=f,_.Suspense=u,_.isAsyncMode=function(i){return S(i)||x(i)===m},_.isConcurrentMode=S,_.isContextConsumer=function(i){return x(i)===p},_.isContextProvider=function(i){return x(i)===l},_.isElement=function(i){return typeof i=="object"&&i!==null&&i.$$typeof===n},_.isForwardRef=function(i){return x(i)===d},_.isFragment=function(i){return x(i)===o},_.isLazy=function(i){return x(i)===j},_.isMemo=function(i){return x(i)===g},_.isPortal=function(i){return x(i)===a},_.isProfiler=function(i){return x(i)===s},_.isStrictMode=function(i){return x(i)===f},_.isSuspense=function(i){return x(i)===u},_.isValidElementType=function(i){return typeof i=="string"||typeof i=="function"||i===o||i===C||i===s||i===f||i===u||i===v||typeof i=="object"&&i!==null&&(i.$$typeof===j||i.$$typeof===g||i.$$typeof===l||i.$$typeof===p||i.$$typeof===d||i.$$typeof===q||i.$$typeof===D||i.$$typeof===Y||i.$$typeof===A)},_.typeOf=x,_}var M={};/** @license React v16.13.1
9
+ * react-is.development.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */var xe;function Ge(){return xe||(xe=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,f=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,C=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,j=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,q=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,Y=e?Symbol.for("react.scope"):60119;function x(t){return typeof t=="string"||typeof t=="function"||t===o||t===C||t===s||t===f||t===u||t===v||typeof t=="object"&&t!==null&&(t.$$typeof===j||t.$$typeof===g||t.$$typeof===l||t.$$typeof===p||t.$$typeof===d||t.$$typeof===q||t.$$typeof===D||t.$$typeof===Y||t.$$typeof===A)}function S(t){if(typeof t=="object"&&t!==null){var F=t.$$typeof;switch(F){case n:var X=t.type;switch(X){case m:case C:case o:case s:case f:case u:return X;default:var be=X&&X.$$typeof;switch(be){case p:case d:case j:case g:case l:return be;default:return F}}case a:return F}}}var i=m,z=C,ee=p,re=l,te=n,ne=d,K=o,oe=j,ie=g,Q=a,ae=s,W=f,N=u,J=!1;function se(t){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),r(t)||S(t)===m}function r(t){return S(t)===C}function c(t){return S(t)===p}function T(t){return S(t)===l}function b(t){return typeof t=="object"&&t!==null&&t.$$typeof===n}function y(t){return S(t)===d}function R(t){return S(t)===o}function h(t){return S(t)===j}function E(t){return S(t)===g}function w(t){return S(t)===a}function I(t){return S(t)===s}function O(t){return S(t)===f}function L(t){return S(t)===u}M.AsyncMode=i,M.ConcurrentMode=z,M.ContextConsumer=ee,M.ContextProvider=re,M.Element=te,M.ForwardRef=ne,M.Fragment=K,M.Lazy=oe,M.Memo=ie,M.Portal=Q,M.Profiler=ae,M.StrictMode=W,M.Suspense=N,M.isAsyncMode=se,M.isConcurrentMode=r,M.isContextConsumer=c,M.isContextProvider=T,M.isElement=b,M.isForwardRef=y,M.isFragment=R,M.isLazy=h,M.isMemo=E,M.isPortal=w,M.isProfiler=I,M.isStrictMode=O,M.isSuspense=L,M.isValidElementType=x,M.typeOf=S})()),M}var Se;function je(){return Se||(Se=1,process.env.NODE_ENV==="production"?B.exports=Xe():B.exports=Ge()),B.exports}/*
16
+ object-assign
17
+ (c) Sindre Sorhus
18
+ @license MIT
19
+ */var fe,Re;function Ze(){if(Re)return fe;Re=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function f(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},p=0;p<10;p++)l["_"+String.fromCharCode(p)]=p;var m=Object.getOwnPropertyNames(l).map(function(d){return l[d]});if(m.join("")!=="0123456789")return!1;var C={};return"abcdefghijklmnopqrst".split("").forEach(function(d){C[d]=d}),Object.keys(Object.assign({},C)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return fe=f()?Object.assign:function(s,l){for(var p,m=o(s),C,d=1;d<arguments.length;d++){p=Object(arguments[d]);for(var u in p)n.call(p,u)&&(m[u]=p[u]);if(e){C=e(p);for(var v=0;v<C.length;v++)a.call(p,C[v])&&(m[C[v]]=p[C[v]])}}return m},fe}var le,we;function he(){if(we)return le;we=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return le=e,le}var de,Oe;function $e(){return Oe||(Oe=1,de=Function.call.bind(Object.prototype.hasOwnProperty)),de}var pe,Ce;function Be(){if(Ce)return pe;Ce=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=he(),a={},o=$e();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function f(s,l,p,m,C){if(process.env.NODE_ENV!=="production"){for(var d in s)if(o(s,d)){var u;try{if(typeof s[d]!="function"){var v=Error((m||"React class")+": "+p+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}u=s[d](l,d,m,p,null,n)}catch(j){u=j}if(u&&!(u instanceof Error)&&e((m||"React class")+": type specification of "+p+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var g=C?C():"";e("Failed "+p+" type: "+u.message+(g??""))}}}}return f.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},pe=f,pe}var ye,Pe;function er(){if(Pe)return ye;Pe=1;var e=je(),n=Ze(),a=he(),o=$e(),f=Be(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(p){var m="Warning: "+p;typeof console<"u"&&console.error(m);try{throw new Error(m)}catch{}});function l(){return null}return ye=function(p,m){var C=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(r){var c=r&&(C&&r[C]||r[d]);if(typeof c=="function")return c}var v="<<anonymous>>",g={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:Y(),arrayOf:x,element:S(),elementType:i(),instanceOf:z,node:ne(),objectOf:re,oneOf:ee,oneOfType:te,shape:oe,exact:ie};function j(r,c){return r===c?r!==0||1/r===1/c:r!==r&&c!==c}function A(r,c){this.message=r,this.data=c&&typeof c=="object"?c:{},this.stack=""}A.prototype=Error.prototype;function q(r){if(process.env.NODE_ENV!=="production")var c={},T=0;function b(R,h,E,w,I,O,L){if(w=w||v,O=O||E,L!==a){if(m){var t=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw t.name="Invariant Violation",t}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var F=w+":"+E;!c[F]&&T<3&&(s("You are manually calling a React.PropTypes validation function for the `"+O+"` prop on `"+w+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),c[F]=!0,T++)}}return h[E]==null?R?h[E]===null?new A("The "+I+" `"+O+"` is marked as required "+("in `"+w+"`, but its value is `null`.")):new A("The "+I+" `"+O+"` is marked as required in "+("`"+w+"`, but its value is `undefined`.")):null:r(h,E,w,I,O)}var y=b.bind(null,!1);return y.isRequired=b.bind(null,!0),y}function D(r){function c(T,b,y,R,h,E){var w=T[b],I=W(w);if(I!==r){var O=N(w);return new A("Invalid "+R+" `"+h+"` of type "+("`"+O+"` supplied to `"+y+"`, expected ")+("`"+r+"`."),{expectedType:r})}return null}return q(c)}function Y(){return q(l)}function x(r){function c(T,b,y,R,h){if(typeof r!="function")return new A("Property `"+h+"` of component `"+y+"` has invalid PropType notation inside arrayOf.");var E=T[b];if(!Array.isArray(E)){var w=W(E);return new A("Invalid "+R+" `"+h+"` of type "+("`"+w+"` supplied to `"+y+"`, expected an array."))}for(var I=0;I<E.length;I++){var O=r(E,I,y,R,h+"["+I+"]",a);if(O instanceof Error)return O}return null}return q(c)}function S(){function r(c,T,b,y,R){var h=c[T];if(!p(h)){var E=W(h);return new A("Invalid "+y+" `"+R+"` of type "+("`"+E+"` supplied to `"+b+"`, expected a single ReactElement."))}return null}return q(r)}function i(){function r(c,T,b,y,R){var h=c[T];if(!e.isValidElementType(h)){var E=W(h);return new A("Invalid "+y+" `"+R+"` of type "+("`"+E+"` supplied to `"+b+"`, expected a single ReactElement type."))}return null}return q(r)}function z(r){function c(T,b,y,R,h){if(!(T[b]instanceof r)){var E=r.name||v,w=se(T[b]);return new A("Invalid "+R+" `"+h+"` of type "+("`"+w+"` supplied to `"+y+"`, expected ")+("instance of `"+E+"`."))}return null}return q(c)}function ee(r){if(!Array.isArray(r))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function c(T,b,y,R,h){for(var E=T[b],w=0;w<r.length;w++)if(j(E,r[w]))return null;var I=JSON.stringify(r,function(L,t){var F=N(t);return F==="symbol"?String(t):t});return new A("Invalid "+R+" `"+h+"` of value `"+String(E)+"` "+("supplied to `"+y+"`, expected one of "+I+"."))}return q(c)}function re(r){function c(T,b,y,R,h){if(typeof r!="function")return new A("Property `"+h+"` of component `"+y+"` has invalid PropType notation inside objectOf.");var E=T[b],w=W(E);if(w!=="object")return new A("Invalid "+R+" `"+h+"` of type "+("`"+w+"` supplied to `"+y+"`, expected an object."));for(var I in E)if(o(E,I)){var O=r(E,I,y,R,h+"."+I,a);if(O instanceof Error)return O}return null}return q(c)}function te(r){if(!Array.isArray(r))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var c=0;c<r.length;c++){var T=r[c];if(typeof T!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(T)+" at index "+c+"."),l}function b(y,R,h,E,w){for(var I=[],O=0;O<r.length;O++){var L=r[O],t=L(y,R,h,E,w,a);if(t==null)return null;t.data&&o(t.data,"expectedType")&&I.push(t.data.expectedType)}var F=I.length>0?", expected one of type ["+I.join(", ")+"]":"";return new A("Invalid "+E+" `"+w+"` supplied to "+("`"+h+"`"+F+"."))}return q(b)}function ne(){function r(c,T,b,y,R){return Q(c[T])?null:new A("Invalid "+y+" `"+R+"` supplied to "+("`"+b+"`, expected a ReactNode."))}return q(r)}function K(r,c,T,b,y){return new A((r||"React class")+": "+c+" type `"+T+"."+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+y+"`.")}function oe(r){function c(T,b,y,R,h){var E=T[b],w=W(E);if(w!=="object")return new A("Invalid "+R+" `"+h+"` of type `"+w+"` "+("supplied to `"+y+"`, expected `object`."));for(var I in r){var O=r[I];if(typeof O!="function")return K(y,R,h,I,N(O));var L=O(E,I,y,R,h+"."+I,a);if(L)return L}return null}return q(c)}function ie(r){function c(T,b,y,R,h){var E=T[b],w=W(E);if(w!=="object")return new A("Invalid "+R+" `"+h+"` of type `"+w+"` "+("supplied to `"+y+"`, expected `object`."));var I=n({},T[b],r);for(var O in I){var L=r[O];if(o(r,O)&&typeof L!="function")return K(y,R,h,O,N(L));if(!L)return new A("Invalid "+R+" `"+h+"` key `"+O+"` supplied to `"+y+"`.\nBad object: "+JSON.stringify(T[b],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(r),null," "));var t=L(E,O,y,R,h+"."+O,a);if(t)return t}return null}return q(c)}function Q(r){switch(typeof r){case"number":case"string":case"undefined":return!0;case"boolean":return!r;case"object":if(Array.isArray(r))return r.every(Q);if(r===null||p(r))return!0;var c=u(r);if(c){var T=c.call(r),b;if(c!==r.entries){for(;!(b=T.next()).done;)if(!Q(b.value))return!1}else for(;!(b=T.next()).done;){var y=b.value;if(y&&!Q(y[1]))return!1}}else return!1;return!0;default:return!1}}function ae(r,c){return r==="symbol"?!0:c?c["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&c instanceof Symbol:!1}function W(r){var c=typeof r;return Array.isArray(r)?"array":r instanceof RegExp?"object":ae(c,r)?"symbol":c}function N(r){if(typeof r>"u"||r===null)return""+r;var c=W(r);if(c==="object"){if(r instanceof Date)return"date";if(r instanceof RegExp)return"regexp"}return c}function J(r){var c=N(r);switch(c){case"array":case"object":return"an "+c;case"boolean":case"date":case"regexp":return"a "+c;default:return c}}function se(r){return!r.constructor||!r.constructor.name?v:r.constructor.name}return g.checkPropTypes=f,g.resetWarningCache=f.resetWarningCache,g.PropTypes=g,g},ye}var me,_e;function rr(){if(_e)return me;_e=1;var e=he();function n(){}function a(){}return a.resetWarningCache=n,me=function(){function o(l,p,m,C,d,u){if(u!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}o.isRequired=o;function f(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:f,element:o,elementType:o,instanceOf:f,node:o,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:a,resetWarningCache:n};return s.PropTypes=s,s},me}var Me;function tr(){if(Me)return Z.exports;if(Me=1,process.env.NODE_ENV!=="production"){var e=je(),n=!0;Z.exports=er()(e.isElement,n)}else Z.exports=rr()();return Z.exports}var nr=tr();const P=Ie.getDefaultExportFromCjs(nr),k=P.oneOfType([P.string,P.number]),De={all:P.bool,grid:P.bool,aural:P.bool,braille:P.bool,handheld:P.bool,print:P.bool,projection:P.bool,screen:P.bool,tty:P.bool,tv:P.bool,embossed:P.bool},or={orientation:P.oneOf(["portrait","landscape"]),scan:P.oneOf(["progressive","interlace"]),aspectRatio:P.string,deviceAspectRatio:P.string,height:k,deviceHeight:k,width:k,deviceWidth:k,color:P.bool,colorIndex:P.bool,monochrome:P.bool,resolution:k,type:Object.keys(De)},{type:Tr,...ir}=or,ar={minAspectRatio:P.string,maxAspectRatio:P.string,minDeviceAspectRatio:P.string,maxDeviceAspectRatio:P.string,minHeight:k,maxHeight:k,minDeviceHeight:k,maxDeviceHeight:k,minWidth:k,maxWidth:k,minDeviceWidth:k,maxDeviceWidth:k,minColor:P.number,maxColor:P.number,minColorIndex:P.number,maxColorIndex:P.number,minMonochrome:P.number,maxMonochrome:P.number,minResolution:k,maxResolution:k,...ir},sr={...De,...ar};var cr={all:sr};const ur=e=>`not ${e}`,fr=(e,n)=>{const a=qe(e);return typeof n=="number"&&(n=`${n}px`),n===!0?a:n===!1?ur(a):`(${a}: ${n})`},lr=e=>e.join(" and "),dr=e=>{const n=[];return Object.keys(cr.all).forEach(a=>{const o=e[a];o!=null&&n.push(fr(a,o))}),lr(n)},pr=$.createContext(void 0),yr=e=>e.query||dr(e),Ae=e=>e?Object.keys(e).reduce((a,o)=>(a[qe(o)]=e[o],a),{}):void 0,ke=()=>{const e=$.useRef(!1);return $.useEffect(()=>{e.current=!0},[]),e.current},mr=e=>{const n=$.useContext(pr),a=()=>Ae(e)||Ae(n),[o,f]=$.useState(a);return $.useEffect(()=>{const s=a();Je(o,s)||f(s)},[e,n]),o},vr=e=>{const n=()=>yr(e),[a,o]=$.useState(n);return $.useEffect(()=>{const f=n();a!==f&&o(f)},[e]),a},hr=(e,n)=>{const a=()=>He(e,n||{},!!n),[o,f]=$.useState(a),s=ke();return $.useEffect(()=>{if(s){const l=a();return f(l),()=>{l&&l.dispose()}}},[e,n]),o},br=e=>{const[n,a]=$.useState(e.matches);return $.useEffect(()=>{const o=f=>{a(f.matches)};return e.addListener(o),a(e.matches),()=>{e.removeListener(o)}},[e]),n},H=(e,n,a)=>{const o=mr(n),f=vr(e);if(!f)throw new Error("Invalid or missing MediaQuery!");const s=hr(f,o),l=br(s);return ke(),$.useEffect(()=>{},[l]),$.useEffect(()=>()=>{s&&s.dispose()},[]),l},Er=()=>{const e=H({query:"(min-width: 116rem)"}),n=H({query:"(min-width: 96rem)"}),a=H({query:"(min-width: 80rem)"}),o=H({query:"(min-width: 64rem)"}),f=H({query:"(min-width: 48rem)"}),s=H({query:"(min-width: 40rem)"}),l=H({query:"(max-width: 40rem)"});return{xxxl:e,xxl:n,xl:a,lg:o,md:f,sm:s,xs:l}};exports.useColumns=ve.useColumns;exports.useDataTable=ve.useDataTable;exports.useSortable=ve.useSortable;exports.useFilter=Le.useFilter;exports.useTheme=Ye.useTheme;exports.useConfirm=We;exports.useDocumentTitle=Fe;exports.useMediaQuerySizes=Er;
21
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../src/hooks/useConfirm.tsx","../../src/hooks/useDocumentTitle.ts","../../node_modules/css-mediaquery/index.js","../../node_modules/matchmediaquery/index.js","../../node_modules/hyphenate-style-name/index.js","../../node_modules/shallow-equal/dist/index.modern.mjs","../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../node_modules/prop-types/node_modules/react-is/index.js","../../node_modules/object-assign/index.js","../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../node_modules/prop-types/lib/has.js","../../node_modules/prop-types/checkPropTypes.js","../../node_modules/prop-types/factoryWithTypeCheckers.js","../../node_modules/prop-types/factoryWithThrowingShims.js","../../node_modules/prop-types/index.js","../../node_modules/react-responsive/dist/esm/index.js","../../src/hooks/useMediaQuerySizes.ts"],"sourcesContent":["import { type ReactNode, useCallback } from 'react';\nimport { toast } from 'react-toastify/unstyled';\nimport { Confirm, PasswordConfirm } from '../components';\nimport type { ConfirmPasswordDto } from '../schemas';\n\n/**\n * useConfirm provides helpers to prompt the user for confirmation.\n * It renders toast-based dialogs for simple confirm and password-confirm.\n *\n * @returns {Object} Confirmation functions\n * @returns {(options: { onConfirm: () => void }) => void} confirm - Shows a simple confirmation dialog\n * @returns {(options: { onSubmit: (data: ConfirmPasswordDto) => void }) => void} confirmPassword - Shows a password confirmation dialog\n */\nexport const useConfirm = () => {\n const confirm = useCallback(({ onConfirm }: { onConfirm: () => void }) => {\n const toastId = crypto.randomUUID();\n toast.warning(<></>, {\n toastId: toastId,\n autoClose: false,\n });\n toast.update(toastId, {\n position: 'bottom-left',\n render: (\n <Confirm\n defaultOpen\n onConfirm={() => {\n onConfirm();\n toast.dismiss(toastId);\n }}\n />\n ),\n });\n }, []);\n\n const confirmPassword = useCallback(\n ({\n onSubmit,\n title,\n description,\n }: {\n onSubmit: (data: ConfirmPasswordDto) => void;\n title?: ReactNode;\n description?: ReactNode;\n }) => {\n const toastId = crypto.randomUUID();\n toast.warning(<></>, {\n position: 'bottom-left',\n toastId: toastId,\n autoClose: false,\n });\n toast.update(toastId, {\n render: (\n <PasswordConfirm\n defaultOpen\n title={title}\n description={description}\n onSubmit={(data) => {\n onSubmit(data);\n toast.dismiss(toastId);\n }}\n />\n ),\n });\n },\n []\n );\n\n return {\n confirm,\n confirmPassword,\n };\n};\n","import { useEffect, useRef } from 'react';\n\n/**\n * useDocumentTitle sets document.title and optionally restores it on unmount.\n *\n * @param title - Title to set.\n * @param restoreOnUnmount - Whether to restore previous title on unmount (default false).\n * @returns {void}\n */\nexport const useDocumentTitle = (\n title: string,\n restoreOnUnmount: boolean = false\n): void => {\n const previousTitleRef = useRef<string>(document.title);\n\n useEffect(() => {\n if (restoreOnUnmount && previousTitleRef.current === document.title) {\n previousTitleRef.current = document.title;\n }\n\n document.title = title;\n\n return () => {\n if (restoreOnUnmount) {\n document.title = previousTitleRef.current;\n }\n };\n }, [title, restoreOnUnmount]);\n};\n","/*\nCopyright (c) 2014, Yahoo! Inc. All rights reserved.\nCopyrights licensed under the New BSD License.\nSee the accompanying LICENSE file for terms.\n*/\n\n'use strict';\n\nexports.match = matchQuery;\nexports.parse = parseQuery;\n\n// -----------------------------------------------------------------------------\n\nvar RE_MEDIA_QUERY = /(?:(only|not)?\\s*([^\\s\\(\\)]+)(?:\\s*and)?\\s*)?(.+)?/i,\n RE_MQ_EXPRESSION = /\\(\\s*([^\\s\\:\\)]+)\\s*(?:\\:\\s*([^\\s\\)]+))?\\s*\\)/,\n RE_MQ_FEATURE = /^(?:(min|max)-)?(.+)/,\n RE_LENGTH_UNIT = /(em|rem|px|cm|mm|in|pt|pc)?$/,\n RE_RESOLUTION_UNIT = /(dpi|dpcm|dppx)?$/;\n\nfunction matchQuery(mediaQuery, values) {\n return parseQuery(mediaQuery).some(function (query) {\n var inverse = query.inverse;\n\n // Either the parsed or specified `type` is \"all\", or the types must be\n // equal for a match.\n var typeMatch = query.type === 'all' || values.type === query.type;\n\n // Quit early when `type` doesn't match, but take \"not\" into account.\n if ((typeMatch && inverse) || !(typeMatch || inverse)) {\n return false;\n }\n\n var expressionsMatch = query.expressions.every(function (expression) {\n var feature = expression.feature,\n modifier = expression.modifier,\n expValue = expression.value,\n value = values[feature];\n\n // Missing or falsy values don't match.\n if (!value) { return false; }\n\n switch (feature) {\n case 'orientation':\n case 'scan':\n return value.toLowerCase() === expValue.toLowerCase();\n\n case 'width':\n case 'height':\n case 'device-width':\n case 'device-height':\n expValue = toPx(expValue);\n value = toPx(value);\n break;\n\n case 'resolution':\n expValue = toDpi(expValue);\n value = toDpi(value);\n break;\n\n case 'aspect-ratio':\n case 'device-aspect-ratio':\n case /* Deprecated */ 'device-pixel-ratio':\n expValue = toDecimal(expValue);\n value = toDecimal(value);\n break;\n\n case 'grid':\n case 'color':\n case 'color-index':\n case 'monochrome':\n expValue = parseInt(expValue, 10) || 1;\n value = parseInt(value, 10) || 0;\n break;\n }\n\n switch (modifier) {\n case 'min': return value >= expValue;\n case 'max': return value <= expValue;\n default : return value === expValue;\n }\n });\n\n return (expressionsMatch && !inverse) || (!expressionsMatch && inverse);\n });\n}\n\nfunction parseQuery(mediaQuery) {\n return mediaQuery.split(',').map(function (query) {\n query = query.trim();\n\n var captures = query.match(RE_MEDIA_QUERY),\n modifier = captures[1],\n type = captures[2],\n expressions = captures[3] || '',\n parsed = {};\n\n parsed.inverse = !!modifier && modifier.toLowerCase() === 'not';\n parsed.type = type ? type.toLowerCase() : 'all';\n\n // Split expressions into a list.\n expressions = expressions.match(/\\([^\\)]+\\)/g) || [];\n\n parsed.expressions = expressions.map(function (expression) {\n var captures = expression.match(RE_MQ_EXPRESSION),\n feature = captures[1].toLowerCase().match(RE_MQ_FEATURE);\n\n return {\n modifier: feature[1],\n feature : feature[2],\n value : captures[2]\n };\n });\n\n return parsed;\n });\n}\n\n// -- Utilities ----------------------------------------------------------------\n\nfunction toDecimal(ratio) {\n var decimal = Number(ratio),\n numbers;\n\n if (!decimal) {\n numbers = ratio.match(/^(\\d+)\\s*\\/\\s*(\\d+)$/);\n decimal = numbers[1] / numbers[2];\n }\n\n return decimal;\n}\n\nfunction toDpi(resolution) {\n var value = parseFloat(resolution),\n units = String(resolution).match(RE_RESOLUTION_UNIT)[1];\n\n switch (units) {\n case 'dpcm': return value / 2.54;\n case 'dppx': return value * 96;\n default : return value;\n }\n}\n\nfunction toPx(length) {\n var value = parseFloat(length),\n units = String(length).match(RE_LENGTH_UNIT)[1];\n\n switch (units) {\n case 'em' : return value * 16;\n case 'rem': return value * 16;\n case 'cm' : return value * 96 / 2.54;\n case 'mm' : return value * 96 / 2.54 / 10;\n case 'in' : return value * 96;\n case 'pt' : return value * 72;\n case 'pc' : return value * 72 / 12;\n default : return value;\n }\n}\n","'use strict';\n\nvar staticMatch = require('css-mediaquery').match;\nvar dynamicMatch = typeof window !== 'undefined' ? window.matchMedia : null;\n\n// our fake MediaQueryList\nfunction Mql(query, values, forceStatic){\n var self = this;\n var mql;\n\n // matchMedia will return null in FF when it's called in a hidden iframe\n // ref: https://stackoverflow.com/a/12330568\n if(dynamicMatch && !forceStatic) mql = dynamicMatch.call(window, query);\n\n if (mql) {\n this.matches = mql.matches;\n this.media = mql.media;\n // TODO: is there a time it makes sense to remove this listener?\n mql.addListener(update);\n } else {\n this.matches = staticMatch(query, values);\n this.media = query;\n }\n\n this.addListener = addListener;\n this.removeListener = removeListener;\n this.dispose = dispose;\n\n function addListener(listener){\n if(mql){\n mql.addListener(listener);\n }\n }\n\n function removeListener(listener){\n if(mql){\n mql.removeListener(listener);\n }\n }\n\n // update ourselves!\n function update(evt){\n self.matches = evt.matches;\n self.media = evt.media;\n }\n\n function dispose(){\n if(mql){\n mql.removeListener(update);\n }\n }\n}\n\nfunction matchMedia(query, values, forceStatic){\n return new Mql(query, values, forceStatic);\n}\n\nmodule.exports = matchMedia;\n","/* eslint-disable no-var, prefer-template */\nvar uppercasePattern = /[A-Z]/g\nvar msPattern = /^ms-/\nvar cache = {}\n\nfunction toHyphenLower(match) {\n return '-' + match.toLowerCase()\n}\n\nfunction hyphenateStyleName(name) {\n if (cache.hasOwnProperty(name)) {\n return cache[name]\n }\n\n var hName = name.replace(uppercasePattern, toHyphenLower)\n return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)\n}\n\nexport default hyphenateStyleName\n","function shallowEqualArrays(arrA, arrB) {\n if (arrA === arrB) {\n return true;\n }\n if (!arrA || !arrB) {\n return false;\n }\n const len = arrA.length;\n if (arrB.length !== len) {\n return false;\n }\n for (let i = 0; i < len; i++) {\n if (arrA[i] !== arrB[i]) {\n return false;\n }\n }\n return true;\n}\n\nfunction shallowEqualObjects(objA, objB) {\n if (objA === objB) {\n return true;\n }\n if (!objA || !objB) {\n return false;\n }\n const aKeys = Object.keys(objA);\n const bKeys = Object.keys(objB);\n const len = aKeys.length;\n if (bKeys.length !== len) {\n return false;\n }\n for (let i = 0; i < len; i++) {\n const key = aKeys[i];\n if (objA[key] !== objB[key] || !Object.prototype.hasOwnProperty.call(objB, key)) {\n return false;\n }\n }\n return true;\n}\n\nfunction shallowEqual(a, b) {\n const aIsArr = Array.isArray(a);\n const bIsArr = Array.isArray(b);\n if (aIsArr !== bIsArr) {\n return false;\n }\n if (aIsArr && bIsArr) {\n return shallowEqualArrays(a, b);\n }\n return shallowEqualObjects(a, b);\n}\n\nexport { shallowEqual, shallowEqualArrays, shallowEqualObjects };\n//# sourceMappingURL=index.modern.mjs.map\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","import { createContext, useRef, useEffect, useContext, useState } from 'react';\nimport matchMedia from 'matchmediaquery';\nimport hyphenate from 'hyphenate-style-name';\nimport { shallowEqualObjects } from 'shallow-equal';\nimport PropTypes from 'prop-types';\n\nconst stringOrNumber = PropTypes.oneOfType([PropTypes.string, PropTypes.number]);\n// media types\nconst types = {\n all: PropTypes.bool,\n grid: PropTypes.bool,\n aural: PropTypes.bool,\n braille: PropTypes.bool,\n handheld: PropTypes.bool,\n print: PropTypes.bool,\n projection: PropTypes.bool,\n screen: PropTypes.bool,\n tty: PropTypes.bool,\n tv: PropTypes.bool,\n embossed: PropTypes.bool\n};\n// properties that match media queries\nconst matchers = {\n orientation: PropTypes.oneOf(['portrait', 'landscape']),\n scan: PropTypes.oneOf(['progressive', 'interlace']),\n aspectRatio: PropTypes.string,\n deviceAspectRatio: PropTypes.string,\n height: stringOrNumber,\n deviceHeight: stringOrNumber,\n width: stringOrNumber,\n deviceWidth: stringOrNumber,\n color: PropTypes.bool,\n colorIndex: PropTypes.bool,\n monochrome: PropTypes.bool,\n resolution: stringOrNumber,\n type: Object.keys(types)\n};\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst { type, ...featureMatchers } = matchers;\n// media features\nconst features = {\n minAspectRatio: PropTypes.string,\n maxAspectRatio: PropTypes.string,\n minDeviceAspectRatio: PropTypes.string,\n maxDeviceAspectRatio: PropTypes.string,\n minHeight: stringOrNumber,\n maxHeight: stringOrNumber,\n minDeviceHeight: stringOrNumber,\n maxDeviceHeight: stringOrNumber,\n minWidth: stringOrNumber,\n maxWidth: stringOrNumber,\n minDeviceWidth: stringOrNumber,\n maxDeviceWidth: stringOrNumber,\n minColor: PropTypes.number,\n maxColor: PropTypes.number,\n minColorIndex: PropTypes.number,\n maxColorIndex: PropTypes.number,\n minMonochrome: PropTypes.number,\n maxMonochrome: PropTypes.number,\n minResolution: stringOrNumber,\n maxResolution: stringOrNumber,\n ...featureMatchers\n};\nconst all = { ...types, ...features };\nvar mq = {\n all: all,\n types: types,\n matchers: matchers,\n features: features\n};\n\nconst negate = (cond) => `not ${cond}`;\nconst keyVal = (k, v) => {\n const realKey = hyphenate(k);\n // px shorthand\n if (typeof v === 'number') {\n v = `${v}px`;\n }\n if (v === true) {\n return realKey;\n }\n if (v === false) {\n return negate(realKey);\n }\n return `(${realKey}: ${v})`;\n};\nconst join = (conds) => conds.join(' and ');\nconst toQuery = (obj) => {\n const rules = [];\n Object.keys(mq.all).forEach((k) => {\n const v = obj[k];\n if (v != null) {\n rules.push(keyVal(k, v));\n }\n });\n return join(rules);\n};\n\nconst Context = createContext(undefined);\n\nconst makeQuery = (settings) => settings.query || toQuery(settings);\nconst hyphenateKeys = (obj) => {\n if (!obj)\n return undefined;\n const keys = Object.keys(obj);\n return keys.reduce((result, key) => {\n result[hyphenate(key)] = obj[key];\n return result;\n }, {});\n};\nconst useIsUpdate = () => {\n const ref = useRef(false);\n useEffect(() => {\n ref.current = true;\n }, []);\n return ref.current;\n};\nconst useDevice = (deviceFromProps) => {\n const deviceFromContext = useContext(Context);\n const getDevice = () => hyphenateKeys(deviceFromProps) || hyphenateKeys(deviceFromContext);\n const [device, setDevice] = useState(getDevice);\n useEffect(() => {\n const newDevice = getDevice();\n if (!shallowEqualObjects(device, newDevice)) {\n setDevice(newDevice);\n }\n }, [deviceFromProps, deviceFromContext]);\n return device;\n};\nconst useQuery = (settings) => {\n const getQuery = () => makeQuery(settings);\n const [query, setQuery] = useState(getQuery);\n useEffect(() => {\n const newQuery = getQuery();\n if (query !== newQuery) {\n setQuery(newQuery);\n }\n }, [settings]);\n return query;\n};\nconst useMatchMedia = (query, device) => {\n const getMatchMedia = () => matchMedia(query, device || {}, !!device);\n const [mq, setMq] = useState(getMatchMedia);\n const isUpdate = useIsUpdate();\n useEffect(() => {\n if (isUpdate) {\n // skip on mounting, it has already been set\n const newMq = getMatchMedia();\n setMq(newMq);\n return () => {\n if (newMq) {\n newMq.dispose();\n }\n };\n }\n }, [query, device]);\n return mq;\n};\nconst useMatches = (mediaQuery) => {\n const [matches, setMatches] = useState(mediaQuery.matches);\n useEffect(() => {\n const updateMatches = (ev) => {\n setMatches(ev.matches);\n };\n mediaQuery.addListener(updateMatches);\n setMatches(mediaQuery.matches);\n return () => {\n mediaQuery.removeListener(updateMatches);\n };\n }, [mediaQuery]);\n return matches;\n};\nconst useMediaQuery = (settings, device, onChange) => {\n const deviceSettings = useDevice(device);\n const query = useQuery(settings);\n if (!query)\n throw new Error('Invalid or missing MediaQuery!');\n const mq = useMatchMedia(query, deviceSettings);\n const matches = useMatches(mq);\n const isUpdate = useIsUpdate();\n useEffect(() => {\n if (isUpdate && onChange) {\n onChange(matches);\n }\n }, [matches]);\n useEffect(() => () => {\n if (mq) {\n mq.dispose();\n }\n }, []);\n return matches;\n};\n\n// ReactNode and ReactElement typings are a little funky for functional components, so the ReactElement cast is needed on the return\nconst MediaQuery = ({ children, device, onChange, ...settings }) => {\n const matches = useMediaQuery(settings, device, onChange);\n if (typeof children === 'function') {\n return children(matches);\n }\n return matches ? children : null;\n};\n\nexport { Context, MediaQuery, MediaQuery as default, toQuery, useMediaQuery };\n//# sourceMappingURL=index.js.map\n","import { useMediaQuery } from 'react-responsive';\n\n/**\n * useMediaQuerySizes exposes a set of media query booleans for responsive breakpoints.\n *\n * @returns {Object} Breakpoint flags object\n * @returns {boolean} xxxl - True if viewport width >= 116rem (1856px)\n * @returns {boolean} xxl - True if viewport width >= 96rem (1536px)\n * @returns {boolean} xl - True if viewport width >= 80rem (1280px)\n * @returns {boolean} lg - True if viewport width >= 64rem (1024px)\n * @returns {boolean} md - True if viewport width >= 48rem (768px)\n * @returns {boolean} sm - True if viewport width >= 40rem (640px)\n * @returns {boolean} xs - True if viewport width < 40rem (640px)\n */\nexport const useMediaQuerySizes = () => {\n const xxxl = useMediaQuery({\n query: '(min-width: 116rem)',\n });\n const xxl = useMediaQuery({\n query: '(min-width: 96rem)',\n });\n const xl = useMediaQuery({ query: '(min-width: 80rem)' });\n const lg = useMediaQuery({ query: '(min-width: 64rem)' });\n const md = useMediaQuery({ query: '(min-width: 48rem)' });\n const sm = useMediaQuery({ query: '(min-width: 40rem)' });\n const xs = useMediaQuery({ query: '(max-width: 40rem)' });\n\n return {\n xxxl,\n xxl,\n xl,\n lg,\n md,\n sm,\n xs,\n };\n};\n"],"names":["useConfirm","confirm","useCallback","onConfirm","toastId","toast","jsx","Confirm","confirmPassword","onSubmit","title","description","PasswordConfirm","data","useDocumentTitle","restoreOnUnmount","previousTitleRef","useRef","useEffect","cssMediaquery","matchQuery","parseQuery","RE_MEDIA_QUERY","RE_MQ_EXPRESSION","RE_MQ_FEATURE","RE_LENGTH_UNIT","RE_RESOLUTION_UNIT","mediaQuery","values","query","inverse","typeMatch","expressionsMatch","expression","feature","modifier","expValue","value","toPx","toDpi","toDecimal","captures","type","expressions","parsed","ratio","decimal","numbers","resolution","units","length","staticMatch","require$$0","dynamicMatch","Mql","forceStatic","self","mql","update","addListener","removeListener","dispose","listener","evt","matchMedia","matchmediaquery","uppercasePattern","msPattern","cache","toHyphenLower","match","hyphenateStyleName","name","hName","shallowEqualObjects","objA","objB","aKeys","bKeys","len","i","key","b","c","d","e","g","h","k","l","m","n","p","q","r","t","v","w","x","y","z","a","u","A","reactIs_production_min","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","isValidElementType","typeOf","object","$$typeof","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Fragment","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","reactIs_development","reactIsModule","require$$1","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","order2","test3","letter","objectAssign","target","source","from","to","symbols","s","ReactPropTypesSecret","ReactPropTypesSecret_1","has","printWarning","loggedTypeFailures","text","message","checkPropTypes","typeSpecs","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1","ReactIs","assign","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","createAnyTypeChecker","createArrayOfTypeChecker","createElementTypeChecker","createElementTypeTypeChecker","createInstanceTypeChecker","createNodeChecker","createObjectOfTypeChecker","createEnumTypeChecker","createUnionTypeChecker","createShapeTypeChecker","createStrictShapeTypeChecker","is","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","props","propName","propFullName","secret","cacheKey","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedTypesMessage","isNode","invalidValidatorError","shapeTypes","allKeys","iterator","step","entry","isSymbol","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","stringOrNumber","PropTypes","types","matchers","featureMatchers","features","all","mq","negate","cond","keyVal","realKey","hyphenate","join","conds","toQuery","obj","rules","Context","createContext","makeQuery","settings","hyphenateKeys","result","useIsUpdate","ref","useDevice","deviceFromProps","deviceFromContext","useContext","getDevice","device","setDevice","useState","newDevice","useQuery","getQuery","setQuery","newQuery","useMatchMedia","getMatchMedia","setMq","isUpdate","newMq","useMatches","matches","setMatches","updateMatches","ev","useMediaQuery","onChange","deviceSettings","useMediaQuerySizes","xxxl","xxl","xl","lg","md","sm","xs"],"mappings":"+YAaaA,GAAa,IAAM,CAC9B,MAAMC,EAAUC,EAAAA,YAAY,CAAC,CAAE,UAAAC,KAA2C,CACxE,MAAMC,E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