@g4rcez/components 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. package/dist/{MotionConfig-BLwtdAWy.js → MotionConfig-DKKYqBH2.js} +2 -2
  2. package/dist/{MotionConfig-BLwtdAWy.js.map → MotionConfig-DKKYqBH2.js.map} +1 -1
  3. package/dist/{autocomplete-DVKTP0Il.js → autocomplete-D3VOTihi.js} +2 -2
  4. package/dist/{autocomplete-DVKTP0Il.js.map → autocomplete-D3VOTihi.js.map} +1 -1
  5. package/dist/{calendar-_DZjphH8.js → calendar-PCCZDUIL.js} +4 -4
  6. package/dist/{calendar-_DZjphH8.js.map → calendar-PCCZDUIL.js.map} +1 -1
  7. package/dist/components/display/alert.js +1 -1
  8. package/dist/components/display/calendar.js +1 -1
  9. package/dist/components/display/list.js +2 -2
  10. package/dist/components/display/notifications.js +1 -1
  11. package/dist/components/floating/expand.js +1 -1
  12. package/dist/components/floating/modal.js +1 -1
  13. package/dist/components/form/autocomplete.js +1 -1
  14. package/dist/components/form/date-picker.js +1 -1
  15. package/dist/components/form/file-upload.js +1 -1
  16. package/dist/components/table/table.js +1 -1
  17. package/dist/{date-picker-9q_Ki5Vu.js → date-picker-BhKEFZew.js} +2 -2
  18. package/dist/{date-picker-9q_Ki5Vu.js.map → date-picker-BhKEFZew.js.map} +1 -1
  19. package/dist/{dist-Buc00Zls.js → dist-BrGpYRaj.js} +56 -55
  20. package/dist/{dist-Buc00Zls.js.map → dist-BrGpYRaj.js.map} +1 -1
  21. package/dist/{file-upload-COk6_Bs5.js → file-upload-DWbZfeG5.js} +15 -15
  22. package/dist/{file-upload-COk6_Bs5.js.map → file-upload-DWbZfeG5.js.map} +1 -1
  23. package/dist/index.js +646 -647
  24. package/dist/index.js.map +1 -1
  25. package/dist/{modal-Cn-OaKRp.js → modal-Bz-61ays.js} +3 -3
  26. package/dist/{modal-Cn-OaKRp.js.map → modal-Bz-61ays.js.map} +1 -1
  27. package/dist/{notifications-l_B9J4Gx.js → notifications-MT4XkLov.js} +270 -269
  28. package/dist/{notifications-l_B9J4Gx.js.map → notifications-MT4XkLov.js.map} +1 -1
  29. package/dist/{proxy-Drpz0Avo.js → proxy-BcJ_5Dwq.js} +465 -468
  30. package/dist/{proxy-Drpz0Avo.js.map → proxy-BcJ_5Dwq.js.map} +1 -1
  31. package/dist/{table-Dql6Yzag.js → table-CUFbAI2k.js} +3 -3
  32. package/dist/{table-Dql6Yzag.js.map → table-CUFbAI2k.js.map} +1 -1
  33. package/package.json +1 -1
  34. package/dist/src/components/core/button.d.ts +0 -77
  35. package/dist/src/components/core/button.d.ts.map +0 -1
  36. package/dist/src/components/core/button.jsx +0 -79
  37. package/dist/src/components/core/heading.d.ts +0 -3
  38. package/dist/src/components/core/heading.d.ts.map +0 -1
  39. package/dist/src/components/core/heading.jsx +0 -4
  40. package/dist/src/components/core/polymorph.d.ts +0 -10
  41. package/dist/src/components/core/polymorph.d.ts.map +0 -1
  42. package/dist/src/components/core/polymorph.jsx +0 -5
  43. package/dist/src/components/core/render-on-view.d.ts +0 -7
  44. package/dist/src/components/core/render-on-view.d.ts.map +0 -1
  45. package/dist/src/components/core/render-on-view.jsx +0 -31
  46. package/dist/src/components/core/resizable.d.ts +0 -3
  47. package/dist/src/components/core/resizable.d.ts.map +0 -1
  48. package/dist/src/components/core/resizable.jsx +0 -51
  49. package/dist/src/components/core/slot.d.ts +0 -16
  50. package/dist/src/components/core/slot.d.ts.map +0 -1
  51. package/dist/src/components/core/slot.jsx +0 -156
  52. package/dist/src/components/core/tag.d.ts +0 -35
  53. package/dist/src/components/core/tag.d.ts.map +0 -1
  54. package/dist/src/components/core/tag.jsx +0 -53
  55. package/dist/src/components/core/typography.d.ts +0 -25
  56. package/dist/src/components/core/typography.d.ts.map +0 -1
  57. package/dist/src/components/core/typography.jsx +0 -20
  58. package/dist/src/components/display/alert.d.ts +0 -28
  59. package/dist/src/components/display/alert.d.ts.map +0 -1
  60. package/dist/src/components/display/alert.jsx +0 -61
  61. package/dist/src/components/display/calendar.d.ts +0 -42
  62. package/dist/src/components/display/calendar.d.ts.map +0 -1
  63. package/dist/src/components/display/calendar.jsx +0 -318
  64. package/dist/src/components/display/card.d.ts +0 -29
  65. package/dist/src/components/display/card.d.ts.map +0 -1
  66. package/dist/src/components/display/card.jsx +0 -43
  67. package/dist/src/components/display/empty.d.ts +0 -8
  68. package/dist/src/components/display/empty.d.ts.map +0 -1
  69. package/dist/src/components/display/empty.jsx +0 -11
  70. package/dist/src/components/display/list.d.ts +0 -16
  71. package/dist/src/components/display/list.d.ts.map +0 -1
  72. package/dist/src/components/display/list.jsx +0 -85
  73. package/dist/src/components/display/notifications.d.ts +0 -27
  74. package/dist/src/components/display/notifications.d.ts.map +0 -1
  75. package/dist/src/components/display/notifications.jsx +0 -130
  76. package/dist/src/components/display/progress.d.ts +0 -16
  77. package/dist/src/components/display/progress.d.ts.map +0 -1
  78. package/dist/src/components/display/progress.jsx +0 -21
  79. package/dist/src/components/display/shortcut.d.ts +0 -4
  80. package/dist/src/components/display/shortcut.d.ts.map +0 -1
  81. package/dist/src/components/display/shortcut.jsx +0 -23
  82. package/dist/src/components/display/skeleton.d.ts +0 -12
  83. package/dist/src/components/display/skeleton.d.ts.map +0 -1
  84. package/dist/src/components/display/skeleton.jsx +0 -19
  85. package/dist/src/components/display/spinner.d.ts +0 -5
  86. package/dist/src/components/display/spinner.d.ts.map +0 -1
  87. package/dist/src/components/display/spinner.jsx +0 -11
  88. package/dist/src/components/display/stats.d.ts +0 -12
  89. package/dist/src/components/display/stats.d.ts.map +0 -1
  90. package/dist/src/components/display/stats.jsx +0 -16
  91. package/dist/src/components/display/step.d.ts +0 -24
  92. package/dist/src/components/display/step.d.ts.map +0 -1
  93. package/dist/src/components/display/step.jsx +0 -145
  94. package/dist/src/components/display/tabs.d.ts +0 -24
  95. package/dist/src/components/display/tabs.d.ts.map +0 -1
  96. package/dist/src/components/display/tabs.jsx +0 -125
  97. package/dist/src/components/display/timeline.d.ts +0 -10
  98. package/dist/src/components/display/timeline.d.ts.map +0 -1
  99. package/dist/src/components/display/timeline.jsx +0 -25
  100. package/dist/src/components/floating/command-palette.d.ts +0 -49
  101. package/dist/src/components/floating/command-palette.d.ts.map +0 -1
  102. package/dist/src/components/floating/command-palette.jsx +0 -223
  103. package/dist/src/components/floating/dropdown.d.ts +0 -15
  104. package/dist/src/components/floating/dropdown.d.ts.map +0 -1
  105. package/dist/src/components/floating/dropdown.jsx +0 -56
  106. package/dist/src/components/floating/expand.d.ts +0 -11
  107. package/dist/src/components/floating/expand.d.ts.map +0 -1
  108. package/dist/src/components/floating/expand.jsx +0 -44
  109. package/dist/src/components/floating/menu.d.ts +0 -52
  110. package/dist/src/components/floating/menu.d.ts.map +0 -1
  111. package/dist/src/components/floating/menu.jsx +0 -165
  112. package/dist/src/components/floating/modal.d.ts +0 -60
  113. package/dist/src/components/floating/modal.d.ts.map +0 -1
  114. package/dist/src/components/floating/modal.jsx +0 -336
  115. package/dist/src/components/floating/toolbar.d.ts +0 -6
  116. package/dist/src/components/floating/toolbar.d.ts.map +0 -1
  117. package/dist/src/components/floating/toolbar.jsx +0 -5
  118. package/dist/src/components/floating/tooltip.d.ts +0 -17
  119. package/dist/src/components/floating/tooltip.d.ts.map +0 -1
  120. package/dist/src/components/floating/tooltip.jsx +0 -67
  121. package/dist/src/components/floating/wizard.d.ts +0 -26
  122. package/dist/src/components/floating/wizard.d.ts.map +0 -1
  123. package/dist/src/components/floating/wizard.jsx +0 -165
  124. package/dist/src/components/form/autocomplete.d.ts +0 -16
  125. package/dist/src/components/form/autocomplete.d.ts.map +0 -1
  126. package/dist/src/components/form/autocomplete.jsx +0 -290
  127. package/dist/src/components/form/checkbox.d.ts +0 -12
  128. package/dist/src/components/form/checkbox.d.ts.map +0 -1
  129. package/dist/src/components/form/checkbox.jsx +0 -12
  130. package/dist/src/components/form/date-picker.d.ts +0 -10
  131. package/dist/src/components/form/date-picker.d.ts.map +0 -1
  132. package/dist/src/components/form/date-picker.jsx +0 -115
  133. package/dist/src/components/form/file-upload.d.ts +0 -15
  134. package/dist/src/components/form/file-upload.d.ts.map +0 -1
  135. package/dist/src/components/form/file-upload.jsx +0 -138
  136. package/dist/src/components/form/form.d.ts +0 -3
  137. package/dist/src/components/form/form.d.ts.map +0 -1
  138. package/dist/src/components/form/form.jsx +0 -10
  139. package/dist/src/components/form/formReset.d.ts +0 -2
  140. package/dist/src/components/form/formReset.d.ts.map +0 -1
  141. package/dist/src/components/form/formReset.jsx +0 -17
  142. package/dist/src/components/form/free-text.d.ts +0 -11
  143. package/dist/src/components/form/free-text.d.ts.map +0 -1
  144. package/dist/src/components/form/free-text.jsx +0 -41
  145. package/dist/src/components/form/input-field.d.ts +0 -34
  146. package/dist/src/components/form/input-field.d.ts.map +0 -1
  147. package/dist/src/components/form/input-field.jsx +0 -58
  148. package/dist/src/components/form/input.d.ts +0 -52
  149. package/dist/src/components/form/input.d.ts.map +0 -1
  150. package/dist/src/components/form/input.jsx +0 -36
  151. package/dist/src/components/form/multi-select.d.ts +0 -19
  152. package/dist/src/components/form/multi-select.d.ts.map +0 -1
  153. package/dist/src/components/form/multi-select.jsx +0 -344
  154. package/dist/src/components/form/radiobox.d.ts +0 -7
  155. package/dist/src/components/form/radiobox.d.ts.map +0 -1
  156. package/dist/src/components/form/radiobox.jsx +0 -6
  157. package/dist/src/components/form/select.d.ts +0 -13
  158. package/dist/src/components/form/select.d.ts.map +0 -1
  159. package/dist/src/components/form/select.jsx +0 -44
  160. package/dist/src/components/form/slider.d.ts +0 -7
  161. package/dist/src/components/form/slider.d.ts.map +0 -1
  162. package/dist/src/components/form/slider.jsx +0 -45
  163. package/dist/src/components/form/switch.d.ts +0 -9
  164. package/dist/src/components/form/switch.d.ts.map +0 -1
  165. package/dist/src/components/form/switch.jsx +0 -46
  166. package/dist/src/components/form/task-list.d.ts +0 -3
  167. package/dist/src/components/form/task-list.d.ts.map +0 -1
  168. package/dist/src/components/form/task-list.jsx +0 -26
  169. package/dist/src/components/form/textarea.d.ts +0 -5
  170. package/dist/src/components/form/textarea.d.ts.map +0 -1
  171. package/dist/src/components/form/textarea.jsx +0 -26
  172. package/dist/src/components/index.d.ts +0 -45
  173. package/dist/src/components/index.d.ts.map +0 -1
  174. package/dist/src/components/index.js +0 -44
  175. package/dist/src/components/page-calendar/calendar-header.d.ts +0 -16
  176. package/dist/src/components/page-calendar/calendar-header.d.ts.map +0 -1
  177. package/dist/src/components/page-calendar/calendar-header.jsx +0 -83
  178. package/dist/src/components/page-calendar/day-view.d.ts +0 -12
  179. package/dist/src/components/page-calendar/day-view.d.ts.map +0 -1
  180. package/dist/src/components/page-calendar/day-view.jsx +0 -89
  181. package/dist/src/components/page-calendar/event-pill.d.ts +0 -9
  182. package/dist/src/components/page-calendar/event-pill.d.ts.map +0 -1
  183. package/dist/src/components/page-calendar/event-pill.jsx +0 -25
  184. package/dist/src/components/page-calendar/index.d.ts +0 -4
  185. package/dist/src/components/page-calendar/index.d.ts.map +0 -1
  186. package/dist/src/components/page-calendar/index.js +0 -2
  187. package/dist/src/components/page-calendar/month-view.d.ts +0 -11
  188. package/dist/src/components/page-calendar/month-view.d.ts.map +0 -1
  189. package/dist/src/components/page-calendar/month-view.jsx +0 -46
  190. package/dist/src/components/page-calendar/page-calendar.d.ts +0 -18
  191. package/dist/src/components/page-calendar/page-calendar.d.ts.map +0 -1
  192. package/dist/src/components/page-calendar/page-calendar.jsx +0 -41
  193. package/dist/src/components/page-calendar/page-calendar.types.d.ts +0 -18
  194. package/dist/src/components/page-calendar/page-calendar.types.d.ts.map +0 -1
  195. package/dist/src/components/page-calendar/page-calendar.types.js +0 -1
  196. package/dist/src/components/page-calendar/page-calendar.utils.d.ts +0 -24
  197. package/dist/src/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
  198. package/dist/src/components/page-calendar/page-calendar.utils.js +0 -93
  199. package/dist/src/components/page-calendar/week-view.d.ts +0 -11
  200. package/dist/src/components/page-calendar/week-view.d.ts.map +0 -1
  201. package/dist/src/components/page-calendar/week-view.jsx +0 -66
  202. package/dist/src/components/table/filter.d.ts +0 -42
  203. package/dist/src/components/table/filter.d.ts.map +0 -1
  204. package/dist/src/components/table/filter.jsx +0 -169
  205. package/dist/src/components/table/group.d.ts +0 -17
  206. package/dist/src/components/table/group.d.ts.map +0 -1
  207. package/dist/src/components/table/group.jsx +0 -75
  208. package/dist/src/components/table/index.d.ts +0 -19
  209. package/dist/src/components/table/index.d.ts.map +0 -1
  210. package/dist/src/components/table/index.jsx +0 -63
  211. package/dist/src/components/table/inner-table.d.ts +0 -29
  212. package/dist/src/components/table/inner-table.d.ts.map +0 -1
  213. package/dist/src/components/table/inner-table.jsx +0 -102
  214. package/dist/src/components/table/metadata.d.ts +0 -4
  215. package/dist/src/components/table/metadata.d.ts.map +0 -1
  216. package/dist/src/components/table/metadata.jsx +0 -36
  217. package/dist/src/components/table/pagination.d.ts +0 -5
  218. package/dist/src/components/table/pagination.d.ts.map +0 -1
  219. package/dist/src/components/table/pagination.jsx +0 -74
  220. package/dist/src/components/table/row.d.ts +0 -11
  221. package/dist/src/components/table/row.d.ts.map +0 -1
  222. package/dist/src/components/table/row.jsx +0 -49
  223. package/dist/src/components/table/sort.d.ts +0 -28
  224. package/dist/src/components/table/sort.d.ts.map +0 -1
  225. package/dist/src/components/table/sort.jsx +0 -109
  226. package/dist/src/components/table/table-lib.d.ts +0 -135
  227. package/dist/src/components/table/table-lib.d.ts.map +0 -1
  228. package/dist/src/components/table/table-lib.js +0 -83
  229. package/dist/src/components/table/table.context.d.ts +0 -10
  230. package/dist/src/components/table/table.context.d.ts.map +0 -1
  231. package/dist/src/components/table/table.context.jsx +0 -5
  232. package/dist/src/components/table/thead.d.ts +0 -9
  233. package/dist/src/components/table/thead.d.ts.map +0 -1
  234. package/dist/src/components/table/thead.jsx +0 -103
  235. package/dist/src/config/context.d.ts +0 -21
  236. package/dist/src/config/context.d.ts.map +0 -1
  237. package/dist/src/config/context.js +0 -12
  238. package/dist/src/config/default-translations.d.ts +0 -94
  239. package/dist/src/config/default-translations.d.ts.map +0 -1
  240. package/dist/src/config/default-translations.jsx +0 -87
  241. package/dist/src/config/default-tweaks.d.ts +0 -13
  242. package/dist/src/config/default-tweaks.d.ts.map +0 -1
  243. package/dist/src/config/default-tweaks.js +0 -4
  244. package/dist/src/constants.d.ts +0 -3
  245. package/dist/src/constants.d.ts.map +0 -1
  246. package/dist/src/constants.js +0 -2
  247. package/dist/src/hooks/use-click-outside.d.ts +0 -3
  248. package/dist/src/hooks/use-click-outside.d.ts.map +0 -1
  249. package/dist/src/hooks/use-click-outside.js +0 -17
  250. package/dist/src/hooks/use-color-parser.d.ts +0 -2
  251. package/dist/src/hooks/use-color-parser.d.ts.map +0 -1
  252. package/dist/src/hooks/use-color-parser.js +0 -9
  253. package/dist/src/hooks/use-components-provider.d.ts +0 -15
  254. package/dist/src/hooks/use-components-provider.d.ts.map +0 -1
  255. package/dist/src/hooks/use-components-provider.jsx +0 -22
  256. package/dist/src/hooks/use-debounce.d.ts +0 -5
  257. package/dist/src/hooks/use-debounce.d.ts.map +0 -1
  258. package/dist/src/hooks/use-debounce.js +0 -12
  259. package/dist/src/hooks/use-floating-ref.d.ts +0 -2
  260. package/dist/src/hooks/use-floating-ref.d.ts.map +0 -1
  261. package/dist/src/hooks/use-floating-ref.js +0 -6
  262. package/dist/src/hooks/use-form.d.ts +0 -394
  263. package/dist/src/hooks/use-form.d.ts.map +0 -1
  264. package/dist/src/hooks/use-form.js +0 -563
  265. package/dist/src/hooks/use-hover.d.ts +0 -3
  266. package/dist/src/hooks/use-hover.d.ts.map +0 -1
  267. package/dist/src/hooks/use-hover.js +0 -18
  268. package/dist/src/hooks/use-input-id.d.ts +0 -4
  269. package/dist/src/hooks/use-input-id.d.ts.map +0 -1
  270. package/dist/src/hooks/use-input-id.js +0 -5
  271. package/dist/src/hooks/use-is-coarse-device.d.ts +0 -2
  272. package/dist/src/hooks/use-is-coarse-device.d.ts.map +0 -1
  273. package/dist/src/hooks/use-is-coarse-device.js +0 -12
  274. package/dist/src/hooks/use-locale.d.ts +0 -3
  275. package/dist/src/hooks/use-locale.d.ts.map +0 -1
  276. package/dist/src/hooks/use-locale.js +0 -10
  277. package/dist/src/hooks/use-media-query.d.ts +0 -2
  278. package/dist/src/hooks/use-media-query.d.ts.map +0 -1
  279. package/dist/src/hooks/use-media-query.js +0 -25
  280. package/dist/src/hooks/use-on-event.d.ts +0 -4
  281. package/dist/src/hooks/use-on-event.d.ts.map +0 -1
  282. package/dist/src/hooks/use-on-event.js +0 -10
  283. package/dist/src/hooks/use-parent.d.ts +0 -3
  284. package/dist/src/hooks/use-parent.d.ts.map +0 -1
  285. package/dist/src/hooks/use-parent.js +0 -21
  286. package/dist/src/hooks/use-preferences.d.ts +0 -2
  287. package/dist/src/hooks/use-preferences.d.ts.map +0 -1
  288. package/dist/src/hooks/use-preferences.js +0 -23
  289. package/dist/src/hooks/use-previous.d.ts +0 -2
  290. package/dist/src/hooks/use-previous.d.ts.map +0 -1
  291. package/dist/src/hooks/use-previous.js +0 -9
  292. package/dist/src/hooks/use-reactive.d.ts +0 -2
  293. package/dist/src/hooks/use-reactive.d.ts.map +0 -1
  294. package/dist/src/hooks/use-reactive.js +0 -9
  295. package/dist/src/hooks/use-remove-scroll.d.ts +0 -4
  296. package/dist/src/hooks/use-remove-scroll.d.ts.map +0 -1
  297. package/dist/src/hooks/use-remove-scroll.js +0 -48
  298. package/dist/src/hooks/use-resize-observer.d.ts +0 -2
  299. package/dist/src/hooks/use-resize-observer.d.ts.map +0 -1
  300. package/dist/src/hooks/use-resize-observer.js +0 -17
  301. package/dist/src/hooks/use-stable-ref.d.ts +0 -2
  302. package/dist/src/hooks/use-stable-ref.d.ts.map +0 -1
  303. package/dist/src/hooks/use-stable-ref.js +0 -9
  304. package/dist/src/hooks/use-swipe.d.ts +0 -8
  305. package/dist/src/hooks/use-swipe.d.ts.map +0 -1
  306. package/dist/src/hooks/use-swipe.js +0 -17
  307. package/dist/src/hooks/use-translations.d.ts +0 -92
  308. package/dist/src/hooks/use-translations.d.ts.map +0 -1
  309. package/dist/src/hooks/use-translations.js +0 -9
  310. package/dist/src/hooks/use-tweaks.d.ts +0 -3
  311. package/dist/src/hooks/use-tweaks.d.ts.map +0 -1
  312. package/dist/src/hooks/use-tweaks.js +0 -9
  313. package/dist/src/hooks/use-window-size.d.ts +0 -5
  314. package/dist/src/hooks/use-window-size.d.ts.map +0 -1
  315. package/dist/src/hooks/use-window-size.js +0 -14
  316. package/dist/src/index.d.ts +0 -22
  317. package/dist/src/index.d.ts.map +0 -1
  318. package/dist/src/index.js +0 -20
  319. package/dist/src/lib/combi-keys.d.ts +0 -15
  320. package/dist/src/lib/combi-keys.d.ts.map +0 -1
  321. package/dist/src/lib/combi-keys.js +0 -60
  322. package/dist/src/lib/dict.d.ts +0 -9
  323. package/dist/src/lib/dict.d.ts.map +0 -1
  324. package/dist/src/lib/dict.js +0 -28
  325. package/dist/src/lib/dom.d.ts +0 -20
  326. package/dist/src/lib/dom.d.ts.map +0 -1
  327. package/dist/src/lib/dom.js +0 -185
  328. package/dist/src/lib/fns.d.ts +0 -11
  329. package/dist/src/lib/fns.d.ts.map +0 -1
  330. package/dist/src/lib/fns.js +0 -46
  331. package/dist/src/lib/fzf.d.ts +0 -16
  332. package/dist/src/lib/fzf.d.ts.map +0 -1
  333. package/dist/src/lib/fzf.js +0 -115
  334. package/dist/src/lib/keyboard-area.d.ts +0 -16
  335. package/dist/src/lib/keyboard-area.d.ts.map +0 -1
  336. package/dist/src/lib/keyboard-area.js +0 -14
  337. package/dist/src/styles/common.d.ts +0 -8
  338. package/dist/src/styles/common.d.ts.map +0 -1
  339. package/dist/src/styles/common.js +0 -20
  340. package/dist/src/styles/components.d.ts +0 -3
  341. package/dist/src/styles/components.d.ts.map +0 -1
  342. package/dist/src/styles/components.js +0 -397
  343. package/dist/src/styles/dark.d.ts +0 -3
  344. package/dist/src/styles/dark.d.ts.map +0 -1
  345. package/dist/src/styles/dark.js +0 -217
  346. package/dist/src/styles/default-tokens.d.ts +0 -74
  347. package/dist/src/styles/default-tokens.d.ts.map +0 -1
  348. package/dist/src/styles/default-tokens.js +0 -41
  349. package/dist/src/styles/design-tokens.d.ts +0 -29
  350. package/dist/src/styles/design-tokens.d.ts.map +0 -1
  351. package/dist/src/styles/design-tokens.js +0 -73
  352. package/dist/src/styles/light.d.ts +0 -3
  353. package/dist/src/styles/light.d.ts.map +0 -1
  354. package/dist/src/styles/light.js +0 -217
  355. package/dist/src/styles/theme.d.ts +0 -3
  356. package/dist/src/styles/theme.d.ts.map +0 -1
  357. package/dist/src/styles/theme.js +0 -4
  358. package/dist/src/styles/theme.types.d.ts +0 -540
  359. package/dist/src/styles/theme.types.d.ts.map +0 -1
  360. package/dist/src/styles/theme.types.js +0 -1
  361. package/dist/src/types.d.ts +0 -26
  362. package/dist/src/types.d.ts.map +0 -1
  363. package/dist/src/types.js +0 -1
  364. package/dist/tsconfig.lib.tsbuildinfo +0 -1
  365. package/dist/with-selector-BAUQ-vKK.js +0 -187
  366. package/dist/with-selector-BAUQ-vKK.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-on-event.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-on-event.ts"],"names":[],"mappings":"AAEA,KAAK,QAAQ,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAEnF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,cAAc,EAAE,OAAO,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,SAQrF,CAAC"}
@@ -1,10 +0,0 @@
1
- import { useEffect, useRef } from "react";
2
- export const useOnEvent = (event, func) => {
3
- const funcRef = useRef(func);
4
- funcRef.current = func;
5
- useEffect(() => {
6
- const handler = (e) => funcRef.current(e);
7
- window.addEventListener(event, handler);
8
- return () => window.removeEventListener(event, handler);
9
- }, [event]);
10
- };
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- export declare const useParentHeight: (ref: React.RefObject<HTMLElement>) => number;
3
- //# sourceMappingURL=use-parent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-parent.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-parent.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,eAAO,MAAM,eAAe,GAAI,KAAK,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,WAiBhE,CAAC"}
@@ -1,21 +0,0 @@
1
- import { useEffect, useState } from "react";
2
- export const useParentHeight = (ref) => {
3
- const [h, setH] = useState(0);
4
- useEffect(() => {
5
- const element = ref.current;
6
- if (!element)
7
- return;
8
- const parent = element.parentElement;
9
- if (!parent)
10
- return;
11
- const listener = () => {
12
- setH(parent.clientHeight);
13
- };
14
- parent.addEventListener("resize", listener);
15
- listener();
16
- return () => {
17
- parent.removeEventListener("resize", listener);
18
- };
19
- }, [ref]);
20
- return h;
21
- };
@@ -1,2 +0,0 @@
1
- export declare const usePreferences: <T extends string, V>(key: T, defaultValue: V) => readonly [V, (params: Parameters<import("react").Dispatch<import("react").SetStateAction<V>>>[0]) => void | V];
2
- //# sourceMappingURL=use-preferences.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-preferences.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-preferences.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,cAAc,CAAC,2BAQ1D,UAAU,6DAAiB,CAAC,CAAC,CAAC,cAc9C,CAAC"}
@@ -1,23 +0,0 @@
1
- import { useCallback, useState } from "react";
2
- import { Is } from "sidekicker";
3
- import { LocalStorage } from "storage-manager-js";
4
- export const usePreferences = (key, defaultValue) => {
5
- const [state, setState] = useState(() => {
6
- const saved = LocalStorage.get(key);
7
- if (saved)
8
- return saved;
9
- return defaultValue;
10
- });
11
- const setCallback = useCallback((params) => {
12
- if (Is.function(params)) {
13
- return setState((prev) => {
14
- const result = params(prev);
15
- LocalStorage.set(key, result);
16
- return result;
17
- });
18
- }
19
- LocalStorage.set(key, params);
20
- return params;
21
- }, [key]);
22
- return [state, setCallback];
23
- };
@@ -1,2 +0,0 @@
1
- export declare const usePrevious: <T>(value: T) => T;
2
- //# sourceMappingURL=use-previous.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-previous.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-previous.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,CAOzC,CAAC"}
@@ -1,9 +0,0 @@
1
- "use client";
2
- import { useEffect, useRef } from "react";
3
- export const usePrevious = (value) => {
4
- const ref = useRef(undefined);
5
- useEffect(() => {
6
- ref.current = value;
7
- }, [value]);
8
- return ref.current;
9
- };
@@ -1,2 +0,0 @@
1
- export declare const useReactive: <T>(t: T, initial?: T) => readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
2
- //# sourceMappingURL=use-reactive.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-reactive.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-reactive.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,GAAG,CAAC,EAAE,UAAU,CAAC,8EAM/C,CAAC"}
@@ -1,9 +0,0 @@
1
- "use client";
2
- import { useEffect, useState } from "react";
3
- export const useReactive = (t, initial) => {
4
- const [state, setState] = useState(() => (initial ? initial : t));
5
- useEffect(() => {
6
- setState(t);
7
- }, [t]);
8
- return [state, setState];
9
- };
@@ -1,4 +0,0 @@
1
- type ScrollRemoveStyle = "overflow-hidden" | "block-only";
2
- export declare const useRemoveScroll: <T extends HTMLElement>(remove: boolean, removeStyle?: ScrollRemoveStyle) => import("react").RefObject<T | null>;
3
- export {};
4
- //# sourceMappingURL=use-remove-scroll.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-remove-scroll.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-remove-scroll.ts"],"names":[],"mappings":"AAMA,KAAK,iBAAiB,GAAG,iBAAiB,GAAG,YAAY,CAAC;AAE1D,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,EAAE,QAAQ,OAAO,EAAE,cAAa,iBAAqC,wCAsCzH,CAAC"}
@@ -1,48 +0,0 @@
1
- import { useEffect, useRef } from "react";
2
- import { Is, onlyNumbers } from "sidekicker";
3
- import { hasVerticalScroll } from "../lib/dom";
4
- import { isMobile, isSsr } from "../lib/fns";
5
- import { useIsCoarseDevice } from "./use-is-coarse-device";
6
- export const useRemoveScroll = (remove, removeStyle = "overflow-hidden") => {
7
- const ref = useRef(null);
8
- const isCoarseDevice = useIsCoarseDevice();
9
- const prev = useRef(isSsr() ? "" : document.documentElement.style.overflowY);
10
- useEffect(() => {
11
- if (ref.current === null && !remove)
12
- return;
13
- if (removeStyle === "block-only")
14
- return;
15
- if (removeStyle === "overflow-hidden") {
16
- if (remove) {
17
- prev.current = document.documentElement.style.overflowY;
18
- document.documentElement.style.overflowY = "hidden";
19
- if (isCoarseDevice || isMobile())
20
- return;
21
- document.documentElement.style.padding = hasVerticalScroll(document.documentElement) ? "0 15px 0 0" : "";
22
- }
23
- else {
24
- document.documentElement.style.padding = "";
25
- document.documentElement.style.overflowY = prev.current;
26
- }
27
- }
28
- }, [remove, isCoarseDevice, removeStyle]);
29
- useEffect(() => {
30
- if (!remove)
31
- return;
32
- const el = ref.current;
33
- if (!el)
34
- return;
35
- const controller = new AbortController();
36
- const onWheel = (e) => {
37
- const rect = el.getBoundingClientRect();
38
- const realHeight = el.style.height ? Number(onlyNumbers(el.style.height)) : null;
39
- const scrollable = Is.number(realHeight) ? realHeight : rect.height;
40
- const atLimit = el.scrollHeight <= scrollable;
41
- if (atLimit)
42
- e.preventDefault();
43
- };
44
- el.addEventListener("wheel", onWheel, { signal: controller.signal, passive: false });
45
- return () => controller.abort();
46
- }, [remove]);
47
- return ref;
48
- };
@@ -1,2 +0,0 @@
1
- export declare const useResizeObserver: (element: HTMLElement | null, onResize: (entry: ResizeObserverEntry) => void) => void;
2
- //# sourceMappingURL=use-resize-observer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-resize-observer.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-resize-observer.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,GAAI,SAAS,WAAW,GAAG,IAAI,EAAE,UAAU,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,SAc5G,CAAC"}
@@ -1,17 +0,0 @@
1
- "use client";
2
- import { useEffect, useRef } from "react";
3
- export const useResizeObserver = (element, onResize) => {
4
- const onResizeRef = useRef(onResize);
5
- onResizeRef.current = onResize;
6
- useEffect(() => {
7
- if (!element)
8
- return;
9
- const observer = new ResizeObserver((entries) => {
10
- if (entries[0]) {
11
- onResizeRef.current(entries[0]);
12
- }
13
- });
14
- observer.observe(element);
15
- return () => observer.disconnect();
16
- }, [element]);
17
- };
@@ -1,2 +0,0 @@
1
- export declare const useStableRef: <T>(value: T) => import("react").RefObject<T>;
2
- //# sourceMappingURL=use-stable-ref.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-stable-ref.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-stable-ref.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,OAAO,CAAC,iCAQvC,CAAC"}
@@ -1,9 +0,0 @@
1
- "use client";
2
- import { useEffect, useRef } from "react";
3
- export const useStableRef = (value) => {
4
- const ref = useRef(value);
5
- useEffect(() => {
6
- ref.current = value;
7
- }, [value]);
8
- return ref;
9
- };
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- type SwipeDirection = "left" | "right";
3
- export declare function useSwipe(onSwipe: (e: React.TouchEvent, d: SwipeDirection) => void, threshold: number): {
4
- onTouchStart: (e: React.TouchEvent) => number;
5
- onTouchEnd: (e: React.TouchEvent) => void;
6
- };
7
- export {};
8
- //# sourceMappingURL=use-swipe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-swipe.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-swipe.ts"],"names":[],"mappings":"AACA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAEtC,KAAK,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AAEvC,wBAAgB,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC,EAAE,cAAc,KAAK,IAAI,EAAE,SAAS,EAAE,MAAM;sBAGxE,KAAK,CAAC,UAAU;oBAElB,KAAK,CAAC,UAAU;EAU1C"}
@@ -1,17 +0,0 @@
1
- "use client";
2
- import { useRef } from "react";
3
- export function useSwipe(onSwipe, threshold) {
4
- const touchStartX = useRef(null);
5
- const onTouchStart = (e) => (touchStartX.current = e.touches[0].clientX);
6
- const onTouchEnd = (e) => {
7
- if (touchStartX.current === null)
8
- return;
9
- const touchEndX = e.changedTouches[0].clientX;
10
- const diff = touchEndX - touchStartX.current;
11
- if (Math.abs(diff) > threshold) {
12
- onSwipe(e, diff > 0 ? "right" : "left");
13
- }
14
- touchStartX.current = null;
15
- };
16
- return { onTouchStart, onTouchEnd };
17
- }
@@ -1,92 +0,0 @@
1
- export declare const useTranslations: () => {
2
- autocompleteEmpty: string;
3
- calendarBackMonth: string;
4
- calendarFromDate: string;
5
- calendarMonthLabel: string;
6
- calendarNextMonth: string;
7
- calendarDatetimeTitle: string;
8
- calendarToDate: string;
9
- calendarToday: string;
10
- pageCalendarMonthView: string;
11
- pageCalendarWeekView: string;
12
- pageCalendarDayView: string;
13
- pageCalendarPrevious: string;
14
- pageCalendarNext: string;
15
- pageCalendarToday: string;
16
- pageCalendarAddEvent: string;
17
- pageCalendarWeekLabel: (n: number) => string;
18
- pageCalendarFilter: string;
19
- pageCalendarMoreEvents: (n: number) => string;
20
- pageCalendarLabel: string;
21
- pageCalendarNavigation: string;
22
- pageCalendarMonthGrid: string;
23
- pageCalendarFilterEnabled: string;
24
- pageCalendarFilterDisabled: string;
25
- pageCalendarEventCount: (n: number) => string;
26
- pageCalendarEventAt: (title: string, time: string) => string;
27
- commandPaletteEmpty: string;
28
- commandPaletteLoading: string;
29
- datePickerCalendarButtonLabel: string;
30
- emptyDataMessage: string;
31
- inputCaretDown: string;
32
- inputCloseValue: string;
33
- inputOptionalLabel: string;
34
- wizardNext: string;
35
- wizardPrev: string;
36
- wizardFinish: string;
37
- wizardSkip: string;
38
- multiSelectInnerPlaceholder: string;
39
- multiSelectSelectedLabel: string;
40
- tableColumnResizer: string;
41
- tableFilterColumnPlaceholder: string;
42
- tableFilterColumnTitle: string;
43
- tableFilterDropdownTitle: string;
44
- tableFilterDropdownTitleUnique: string;
45
- tableFilterLabel: string;
46
- tableFilterNewFilter: string;
47
- tableFilterOperatorPlaceholder: string;
48
- tableFilterOperatorTitle: string;
49
- tableFilterTypeContains: string;
50
- tableFilterTypeEndsWith: string;
51
- tableFilterTypeGreaterThan: string;
52
- tableFilterTypeIs: string;
53
- tableFilterTypeIsNot: string;
54
- tableFilterTypeLessThan: string;
55
- tableFilterTypeNotContains: string;
56
- tableFilterTypeStartsWith: string;
57
- tableFilterValuePlaceholder: string;
58
- tableFilterValueTitle: string;
59
- tableGroupLabel: string;
60
- tableGroupLabelWithCount: string;
61
- tablePaginationFooter: (pagination: {
62
- pages: number;
63
- totalItems: number;
64
- sizes?: number[];
65
- current: number;
66
- select: React.ReactNode;
67
- }) => import("react").JSX.Element;
68
- tablePaginationNext: string;
69
- tablePaginationPrevious: string;
70
- tablePaginationSelectLabel: string;
71
- tableSortAddButton: string;
72
- tableSortAsc: string;
73
- tableSortDesc: string;
74
- tableSortDropdownTitle: string;
75
- tableSortOrderByLabel: string;
76
- tableSortOrderInputPlaceholder: string;
77
- tableSortOrderInputTitle: string;
78
- tableSortTypeInputPlaceholder: string;
79
- tableSortTypeInputTitle: string;
80
- uploadIdle: string;
81
- uploadIdleButton: string;
82
- uploadDragging: (props: {
83
- n: number;
84
- }) => string;
85
- uploadDialogTitle: string;
86
- datepickerPlaceholder: (_: string) => string;
87
- spinnerLoading: string;
88
- skeletonLoading: string;
89
- closeButton: string;
90
- fileUploadZoneLabel: string;
91
- };
92
- //# sourceMappingURL=use-translations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-translations.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-translations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAKmuE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;CAD/vE,CAAC"}
@@ -1,9 +0,0 @@
1
- import { useContext } from "react";
2
- import { Context } from "../config/context";
3
- import { defaultTranslations } from "../config/default-translations";
4
- export const useTranslations = () => {
5
- const ctx = useContext(Context);
6
- if (!ctx)
7
- return defaultTranslations;
8
- return ctx.map;
9
- };
@@ -1,3 +0,0 @@
1
- import { Tweaks } from "../config/default-tweaks";
2
- export declare const useTweaks: () => Tweaks;
3
- //# sourceMappingURL=use-tweaks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-tweaks.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-tweaks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEjE,eAAO,MAAM,SAAS,QAAO,MAI5B,CAAC"}
@@ -1,9 +0,0 @@
1
- import { useContext } from "react";
2
- import { Context } from "../config/context";
3
- import { defaultTweaks } from "../config/default-tweaks";
4
- export const useTweaks = () => {
5
- const ctx = useContext(Context);
6
- if (!ctx)
7
- return defaultTweaks;
8
- return ctx.tweaks;
9
- };
@@ -1,5 +0,0 @@
1
- export declare const useWindowSize: () => {
2
- width: number;
3
- height: number;
4
- };
5
- //# sourceMappingURL=use-window-size.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-window-size.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-window-size.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;CAYzB,CAAC"}
@@ -1,14 +0,0 @@
1
- "use client";
2
- import { useEffect, useState } from "react";
3
- export const useWindowSize = () => {
4
- const [size, setSize] = useState({ width: 0, height: 0 });
5
- useEffect(() => {
6
- if (typeof window === "undefined")
7
- return;
8
- const update = () => setSize({ width: window.innerWidth, height: window.innerHeight });
9
- update();
10
- window.addEventListener("resize", update, { passive: true });
11
- return () => window.removeEventListener("resize", update);
12
- }, []);
13
- return size;
14
- };
@@ -1,22 +0,0 @@
1
- export * from "./components";
2
- export * from "./config/context";
3
- export * from "./config/default-translations";
4
- export * from "./config/default-tweaks";
5
- export * from "./hooks/use-form";
6
- export * from "./hooks/use-previous";
7
- export * from "./hooks/use-reactive";
8
- export * from "./hooks/use-stable-ref";
9
- export * from "./hooks/use-swipe";
10
- export * from "./lib/dom";
11
- export * from "./lib/dict";
12
- export * from "./lib/fns";
13
- export * from "./styles/design-tokens";
14
- export * from "./styles/theme";
15
- export * from "./styles/theme.types";
16
- export type * from "./types";
17
- export { ComponentsProvider } from "./hooks/use-components-provider";
18
- export { createColumns, createOptionCols, ColType, useTablePreferences, getModalScrollerRef } from "./components/table/table-lib";
19
- export { useColorParser } from "./hooks/use-color-parser";
20
- export { useLocale } from "./hooks/use-locale";
21
- export { useTranslations } from "./hooks/use-translations";
22
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,mBAAmB,SAAS,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAClI,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
package/dist/src/index.js DELETED
@@ -1,20 +0,0 @@
1
- export * from "./components";
2
- export * from "./config/context";
3
- export * from "./config/default-translations";
4
- export * from "./config/default-tweaks";
5
- export * from "./hooks/use-form";
6
- export * from "./hooks/use-previous";
7
- export * from "./hooks/use-reactive";
8
- export * from "./hooks/use-stable-ref";
9
- export * from "./hooks/use-swipe";
10
- export * from "./lib/dom";
11
- export * from "./lib/dict";
12
- export * from "./lib/fns";
13
- export * from "./styles/design-tokens";
14
- export * from "./styles/theme";
15
- export * from "./styles/theme.types";
16
- export { ComponentsProvider } from "./hooks/use-components-provider";
17
- export { createColumns, createOptionCols, ColType, useTablePreferences, getModalScrollerRef } from "./components/table/table-lib";
18
- export { useColorParser } from "./hooks/use-color-parser";
19
- export { useLocale } from "./hooks/use-locale";
20
- export { useTranslations } from "./hooks/use-translations";
@@ -1,15 +0,0 @@
1
- export declare const osxRegex: RegExp;
2
- export declare const isMac: () => boolean;
3
- type Handler = (e: KeyboardEvent) => void;
4
- type Combi = {
5
- key: string;
6
- fn: Handler;
7
- };
8
- export declare class CombiKeys<T extends Combi> {
9
- combinations: Combi[];
10
- constructor(combi?: T[]);
11
- add<S extends string, H extends Handler>(combi: S, fn: H): this | undefined;
12
- register(): () => void;
13
- }
14
- export {};
15
- //# sourceMappingURL=combi-keys.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"combi-keys.d.ts","sourceRoot":"","sources":["../../../src/lib/combi-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,QAAyB,CAAC;AAE/C,eAAO,MAAM,KAAK,eAA2C,CAAC;AAU9D,KAAK,OAAO,GAAG,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;AAI1C,KAAK,KAAK,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1C,qBAAa,SAAS,CAAC,CAAC,SAAS,KAAK;IAC3B,YAAY,EAAE,KAAK,EAAE,CAAM;gBAEf,KAAK,GAAE,CAAC,EAAO;IAO3B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IAOxD,QAAQ;CA2BlB"}
@@ -1,60 +0,0 @@
1
- export const osxRegex = /Mac|iPod|iPhone|iPad/;
2
- export const isMac = () => osxRegex.test(navigator.userAgent);
3
- const parseCombination = (combination) => combination.split("+").map((k) => {
4
- const key = k.trim();
5
- if (key === "Mod")
6
- return isMac() ? "Meta" : "Control";
7
- if (key === "Hyper")
8
- return isMac() ? "Meta+Shift+Alt" : "Control+Shift+Alt";
9
- return key;
10
- });
11
- const combine = (keys) => keys.map((x) => x.trim()).join("+");
12
- export class CombiKeys {
13
- combinations = [];
14
- constructor(combi = []) {
15
- this.combinations = this.combinations.concat(combi);
16
- this.combinations.forEach((x) => {
17
- this.add(x.key, x.fn);
18
- });
19
- }
20
- add(combi, fn) {
21
- const key = combine(parseCombination(combi));
22
- if (this.combinations.find((x) => x.key === key))
23
- return;
24
- this.combinations.push({ fn, key });
25
- return this;
26
- }
27
- register() {
28
- const controller = new AbortController();
29
- const handler = (event) => {
30
- const element = event.target;
31
- if (element.tagName === "INPUT" || element.tagName === "TEXTAREA") {
32
- const bypass = element.getAttribute("data-combikeysbypass");
33
- if (bypass !== "true")
34
- return;
35
- }
36
- const activeKeys = new Set();
37
- if (event.metaKey)
38
- activeKeys.add("Meta");
39
- if (event.ctrlKey)
40
- activeKeys.add("Control");
41
- if (event.altKey)
42
- activeKeys.add("Alt");
43
- if (event.key.charCodeAt(0) > 127) {
44
- const char = event.code.replace(/^Digit/, "").replace(/^Key/, "");
45
- activeKeys.add(event.shiftKey ? char.toUpperCase() : char.toLowerCase());
46
- }
47
- else
48
- activeKeys.add(event.shiftKey ? event.key.toUpperCase() : event.key);
49
- const action = combine(Array.from(activeKeys));
50
- this.combinations.forEach((bind) => {
51
- if (bind.key === action) {
52
- event.preventDefault();
53
- return void bind.fn(event);
54
- }
55
- });
56
- };
57
- window.addEventListener("keydown", handler, { signal: controller.signal });
58
- return () => controller.abort();
59
- }
60
- }
@@ -1,9 +0,0 @@
1
- export declare class Dict<K, V> extends Map<K, V> {
2
- remove(key: K): this;
3
- map<R>(callback: (v: V, i: number) => R): R[];
4
- clone(fn?: (dict: Dict<K, V>) => Dict<K, V>): Dict<K, V>;
5
- static from<T>(items: T[], selector: (t: T) => any): Dict<any, T>;
6
- static unique<T>(items: T[], selector: (t: T) => any): T[];
7
- toArray(): V[];
8
- }
9
- //# sourceMappingURL=dict.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dict.d.ts","sourceRoot":"","sources":["../../../src/lib/dict.ts"],"names":[],"mappings":"AAAA,qBAAa,IAAI,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9B,MAAM,CAAC,GAAG,EAAE,CAAC;IAKb,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC,GAAG,CAAC,EAAE;IAO7C,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;WAMpC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG;WAI3C,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG;IAIpD,OAAO;CAGjB"}
@@ -1,28 +0,0 @@
1
- export class Dict extends Map {
2
- remove(key) {
3
- super.delete(key);
4
- return this;
5
- }
6
- map(callback) {
7
- let i = 0;
8
- const out = [];
9
- for (const v of this.values())
10
- out.push(callback(v, i++));
11
- return out;
12
- }
13
- clone(fn) {
14
- const clone = new Dict(this);
15
- if (fn)
16
- return fn(clone);
17
- return clone;
18
- }
19
- static from(items, selector) {
20
- return new Dict(items.map((x) => [selector(x), x]));
21
- }
22
- static unique(items, selector) {
23
- return Array.from(Dict.from(items, selector).values());
24
- }
25
- toArray() {
26
- return Array.from(this.values());
27
- }
28
- }
@@ -1,20 +0,0 @@
1
- import { ClassValue } from "clsx";
2
- import React, { Ref, RefCallback, RefObject } from "react";
3
- export declare const mergeRefs: <T>(...refs: Array<RefObject<T> | Ref<T> | undefined | null>) => RefCallback<T>;
4
- export declare const isReactComponent: (a: unknown) => a is React.ReactElement;
5
- export declare const isReactFC: (a: unknown) => a is (...any: any[]) => any;
6
- export declare const css: (...styles: ClassValue[]) => string;
7
- export declare const synthesizeChangeEvent: (input: HTMLInputElement) => React.ChangeEvent<HTMLInputElement>;
8
- export declare const dispatchInput: (input: HTMLInputElement | undefined | null) => Event & {
9
- target: HTMLInputElement | null | undefined;
10
- currentTarget: HTMLInputElement | null | undefined;
11
- };
12
- export declare const initializeInputDataset: (input: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement) => () => void;
13
- export declare const hasVerticalScroll: (htmlElement: HTMLElement) => boolean;
14
- export declare const getRemainingSize: (element: HTMLElement, windowSize: number) => number;
15
- export declare const getCoords: (elem: HTMLElement, docEl: HTMLElement) => {
16
- top: number;
17
- left: number;
18
- };
19
- export declare const isChildVisible: (container: HTMLElement, child: HTMLElement, partial?: boolean) => boolean;
20
- //# sourceMappingURL=dom.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../src/lib/dom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACxC,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsI3D,eAAO,MAAM,SAAS,GACnB,CAAC,EACA,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,KACvD,WAAW,CAAC,CAAC,CASf,CAAC;AAEJ,eAAO,MAAM,gBAAgB,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,KAAK,CAAC,YAMxD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,GAAG,OAAO,gCAAmB,CAAC;AAExD,eAAO,MAAM,GAAG,GAAI,GAAG,QAAQ,UAAU,EAAE,WAA0B,CAAC;AAEtE,eAAO,MAAM,qBAAqB,GAChC,OAAO,gBAAgB,KACtB,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAKpC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,gBAAgB,GAAG,SAAS,GAAG,IAAI;;;CAIvE,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,OAAO,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,eAKlE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,aAAa,WAAW,YACL,CAAC;AAEtD,eAAO,MAAM,gBAAgB,GAAI,SAAS,WAAW,EAAE,YAAY,MAAM,WAMxE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,WAAW,EAAE,OAAO,WAAW;;;CAO9D,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,WAAW,WAAW,EACtB,OAAO,WAAW,EAClB,UAAS,OAAc,KACtB,OAgBF,CAAC"}