@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,102 +0,0 @@
1
- import Linq from "linq-arrays";
2
- import { AnimatePresence } from "motion/react";
3
- import React, { Fragment, useEffect, useMemo, useRef, useState } from "react";
4
- import { TableVirtuoso } from "react-virtuoso";
5
- import { Is } from "sidekicker";
6
- import { useStableRef } from "../../hooks/use-stable-ref";
7
- import { Empty } from "../display/empty";
8
- import { SkeletonCell } from "../display/skeleton";
9
- import { Pagination } from "./pagination";
10
- import { Row } from "./row";
11
- import { multiSort } from "./sort";
12
- import { useTable } from "./table.context";
13
- import { TableHeader } from "./thead";
14
- const TableBody = React.forwardRef(({ context: _context, className = "", ...props }, ref) => (<tbody {...props} role="rowgroup" className={`divide-y divide-table-border ${className}`} ref={ref}>
15
- <AnimatePresence>{props.children}</AnimatePresence>
16
- </tbody>));
17
- const VirtualTable = React.forwardRef(({ context: _context, className = "", ...props }, ref) => (<table {...props} role="table" ref={ref} style={{ ...props.style, "--table-cell-padding": "0.75rem" }} className={`table w-full table-fixed border-separate border-spacing-0 text-left ${className ?? ""}`}/>));
18
- const Thead = React.forwardRef(({ context: _context, ...props }, ref) => {
19
- const ctx = useTable();
20
- const style = {
21
- ...props.style,
22
- top: Is.number(ctx.sticky) ? `${ctx.sticky}px` : undefined,
23
- };
24
- return <thead {...props} ref={ref} style={style} role="rowgroup" className="group:sticky top-0 hidden bg-transparent md:table-header-group"/>;
25
- });
26
- const TRow = React.forwardRef(({ context, item, className, ...props }, ref) => {
27
- const contextProps = item ? context?.getRowProps?.(item) : undefined;
28
- const innerProps = { ...props, ...contextProps };
29
- return (<tr {...innerProps} role="row" ref={ref} className={`group-table-row flex h-fit flex-col flex-wrap justify-center gap-table-row-gap pb-table-row-pb md:table-row ${[className, contextProps?.className].filter(Boolean).join(" ")}`}/>);
30
- });
31
- const TFoot = React.forwardRef(({ context, ...props }, ref) => {
32
- if (context?.loadingMore) {
33
- return (<tfoot {...props} ref={ref} className="bg-card-background">
34
- <tr role="row" className="bg-card-background">
35
- <td colSpan={999} className="h-table-loading-h bg-card-background px-table-cell-px">
36
- <span className="rounded-table-loading-bar-radius block h-table-loading-bar-h w-full animate-pulse bg-foreground opacity-60"/>
37
- </td>
38
- </tr>
39
- </tfoot>);
40
- }
41
- return null;
42
- });
43
- const components = {
44
- TableRow: TRow,
45
- TableFoot: TFoot,
46
- TableHead: Thead,
47
- Table: VirtualTable,
48
- TableBody: TableBody,
49
- };
50
- const loadingArray = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
51
- const EmptyContent = (props) => (<div className="flex h-table-empty-h w-full items-center justify-center px-table-cell-px">{props.loading ? SkeletonCell : <Empty />}</div>);
52
- const EmptyCell = () => <Fragment />;
53
- const emptyRows = [];
54
- export const InnerTable = ({ cols, filters, setCols, sorters, setFilters, setSorters, onScrollEnd, getScrollRef, pagination = null, useControl = false, ...props }) => {
55
- const ref = useRef(null);
56
- const [, setShowLoadingFooter] = useState(false);
57
- const onScrollEndRef = useStableRef(onScrollEnd);
58
- const loadingMoreRef = useStableRef(props.loadingMore);
59
- const rows = useMemo(() => {
60
- if (props.loading)
61
- return loadingArray;
62
- if (useControl)
63
- return props.rows;
64
- const linq = new Linq(props.rows);
65
- if (filters.length > 0) {
66
- filters.forEach((x) => x.value === "" || Number.isNaN(x.value) ? undefined : linq.Where(x.name, x.operation.symbol, x.value));
67
- }
68
- if (sorters.length === 0)
69
- return linq.Select();
70
- return multiSort(linq.Select(), sorters);
71
- }, [props.loading, props.rows, useControl, filters, sorters]);
72
- useEffect(() => {
73
- if (ref.current === null)
74
- return () => { };
75
- const div = ref.current;
76
- const observer = new IntersectionObserver((entries) => {
77
- const endOfPage = entries[entries.length - 1];
78
- const condition = endOfPage.isIntersecting && loadingMoreRef.current;
79
- if (condition) {
80
- onScrollEndRef.current?.();
81
- return void setShowLoadingFooter(true);
82
- }
83
- return setShowLoadingFooter(false);
84
- });
85
- observer.observe(div);
86
- return () => observer.disconnect();
87
- }, [loadingMoreRef, onScrollEndRef]);
88
- const empty = rows.length === 0;
89
- const context = {
90
- cols: cols,
91
- Aside: props.Aside,
92
- loading: props.loading,
93
- getRowProps: props.getRowProps,
94
- loadingMore: props.loadingMore,
95
- };
96
- return (<div className="group relative flex w-full flex-col whitespace-nowrap rounded-table-radius bg-table-background">
97
- <TableVirtuoso components={components} context={context} totalCount={rows.length} itemContent={empty ? EmptyCell : Row} data={empty ? emptyRows : rows} useWindowScroll={getScrollRef ? false : true} customScrollParent={getScrollRef ? getScrollRef() : undefined} fixedHeaderContent={() => (<TableHeader headers={cols} filters={filters} setCols={setCols} sorters={sorters} setFilters={setFilters} setSorters={setSorters} loading={!!props.loading} inlineFilter={props.inlineFilter} inlineSorter={props.inlineSorter}/>)}/>
98
- {empty ? <EmptyContent loading={props.loading}/> : null}
99
- <div aria-hidden="true" ref={ref} className="h-0.5 w-full"/>
100
- {pagination !== null ? <Pagination {...pagination}/> : null}
101
- </div>);
102
- };
@@ -1,4 +0,0 @@
1
- import { Any } from "../../types";
2
- import { TableOperationProps } from "./table-lib";
3
- export declare const Metadata: <T extends Any>(props: TableOperationProps<T>) => import("react").JSX.Element;
4
- //# sourceMappingURL=metadata.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../src/components/table/metadata.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAIlC,OAAO,EAAE,mBAAmB,EAAiB,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,GAAG,EAAE,OAAO,mBAAmB,CAAC,CAAC,CAAC,gCA8CpE,CAAC"}
@@ -1,36 +0,0 @@
1
- import { Filter } from "./filter";
2
- import { Group } from "./group";
3
- import { Sort } from "./sort";
4
- import { valueFromType } from "./table-lib";
5
- export const Metadata = (props) => (<header className="mb-table-metadata-mb min-w-full">
6
- <div className="flex min-w-full flex-wrap items-center justify-between gap-x-table-metadata-gap-x gap-y-table-metadata-gap-y">
7
- <div className="items-centeend flex w-fit gap-table-ops-gap whitespace-nowrap py-table-ops-py">
8
- <span>
9
- <Filter cols={props.cols} options={props.options} filters={props.filters} set={props.setFilters}/>
10
- </span>
11
- <span>
12
- <Sort options={props.options} cols={props.cols} sorters={props.sorters} set={props.setSorters}/>
13
- </span>
14
- <span>
15
- <Group rows={props.rows} groups={props.groups} setGroups={props.setGroups} options={props.options} cols={props.cols}/>
16
- </span>
17
- </div>
18
- <ul className="flex w-full flex-1 flex-grow flex-row flex-wrap items-center gap-table-filter-gap md:justify-end">
19
- {props.filters.map((x) => (<li key={`filter-table-${x.id}`} className="rounded-table-pill-radius flex items-center gap-table-inline-gap-tight border border-card-border px-table-pill-px py-table-pill-py">
20
- <span>
21
- <span className="mr-table-filter-dot-mr inline-block aspect-square size-table-filter-dot-size rounded-full bg-primary" aria-hidden="true"/>
22
- {x.label} {x.operation.label.toLowerCase()}:
23
- </span>
24
- <div className="relative w-min min-w-table-metadata-min-w">
25
- <span aria-hidden="true" className="invisible whitespace-pre p-0">
26
- {x.value || " "}
27
- </span>
28
- <input type={x.type} value={x.value} className="absolute left-0 top-0 m-0 inline-block w-full bg-transparent p-0 placeholder-primary/70 outline-none [appearance:textfield] after:empty:text-primary/70 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none" onChange={(e) => {
29
- const value = valueFromType(e.target);
30
- props.setFilters((prev) => prev.map((item) => (x.id === item.id ? { ...item, value } : item)));
31
- }}/>
32
- </div>
33
- </li>))}
34
- </ul>
35
- </div>
36
- </header>);
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- import { TablePagination } from "./table-lib";
3
- export declare function createPaginationItems(current: number, max: number): (string | number)[];
4
- export declare const Pagination: (pagination: TablePagination) => React.JSX.Element;
5
- //# sourceMappingURL=pagination.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/table/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,uBAmBjE;AAED,eAAO,MAAM,UAAU,GAAI,YAAY,eAAe,sBA4ErD,CAAC"}
@@ -1,74 +0,0 @@
1
- import React, { Fragment, useId, useMemo } from "react";
2
- import { useTranslations } from "../../hooks/use-translations";
3
- import { Polymorph } from "../core/polymorph";
4
- export function createPaginationItems(current, max) {
5
- if (!current || !max)
6
- return [];
7
- const items = [1];
8
- if (current === 1 && max === 1)
9
- return items;
10
- if (current > 4)
11
- items.push("-");
12
- const r = 2;
13
- const r1 = current - r;
14
- const r2 = current + r;
15
- for (let i = r1 > 2 ? r1 : 2; i <= Math.min(max, r2); i++)
16
- items.push(i);
17
- const p2 = max - 2;
18
- if (r2 + 1 !== p2) {
19
- if (r2 + 1 < max)
20
- items.push("_");
21
- }
22
- if (r2 < max) {
23
- items.push(max - 2);
24
- items.push(max - 1);
25
- items.push(max);
26
- }
27
- return Array.from(new Set(items));
28
- }
29
- export const Pagination = (pagination) => {
30
- const id = useId();
31
- const translation = useTranslations();
32
- const pageNavigation = useMemo(() => createPaginationItems(pagination.current, pagination.pages), [pagination]);
33
- const hasNext = pagination.current < pagination.pages;
34
- const Link = pagination.asLink ?? "button";
35
- return (<footer className="text-typography-sm flex flex-wrap items-center justify-center gap-table-pag-gap border-t-muted p-table-pag-p lg:flex-nowrap lg:justify-between">
36
- <p>
37
- <translation.tablePaginationFooter {...pagination} sizes={pagination.sizes} select={pagination.onChangeSize && Array.isArray(pagination.sizes) ? (<Fragment>
38
- <label htmlFor={id}>{translation.tablePaginationSelectLabel}</label>
39
- <select id={id} value={pagination.size} className="cursor-pointer bg-transparent" onChange={(e) => {
40
- pagination.onChangeSize?.(Number(e.target.value));
41
- }}>
42
- {pagination.sizes.map((value) => (<option key={`pagination-opt-${value}`} value={value}>
43
- {value}
44
- </option>))}
45
- </select>{" "}
46
- </Fragment>) : null}/>
47
- </p>
48
- <nav>
49
- <ul className="flex items-center gap-table-pag-items-gap">
50
- {pagination.current > 1 ? (<li>
51
- <Polymorph as={Link} href="previous" className="">
52
- {translation.tablePaginationPrevious}
53
- </Polymorph>
54
- </li>) : null}
55
- {pageNavigation.map((x) => {
56
- if (x === null)
57
- return null;
58
- return (<Fragment key={`pagination-${x}`}>
59
- {typeof x === "string" ? (<li>...</li>) : (<li>
60
- <Polymorph href={x} as={Link} className={`cursor-pointer border-b-2 px-table-pag-item-px py-table-pag-item-py proportional-nums transition-colors hover:border-primary-subtle hover:text-primary-subtle ${x === pagination.current ? "border-primary text-primary" : "border-transparent"}`}>
61
- {x}
62
- </Polymorph>
63
- </li>)}
64
- </Fragment>);
65
- })}
66
- {hasNext ? (<li>
67
- <Polymorph as={Link} href="next" className="">
68
- {translation.tablePaginationNext}
69
- </Polymorph>
70
- </li>) : null}
71
- </ul>
72
- </nav>
73
- </footer>);
74
- };
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { CellAsideElement, Col } from "./table-lib";
3
- type ItemContentContext<T extends Record<string, unknown>> = {
4
- cols: Col<T>[];
5
- loading?: boolean;
6
- loadingMore?: boolean;
7
- Aside?: React.FC<CellAsideElement<T>>;
8
- };
9
- export declare const Row: <T extends Record<string, unknown>>(index: number, row: T, context: ItemContentContext<T>) => React.JSX.Element;
10
- export {};
11
- //# sourceMappingURL=row.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"row.d.ts","sourceRoot":"","sources":["../../../../src/components/table/row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAI7E,OAAO,EAAE,gBAAgB,EAAoB,GAAG,EAAa,MAAM,aAAa,CAAC;AAEjF,KAAK,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACzD,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;CACzC,CAAC;AAoCF,eAAO,MAAM,GAAG,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,kBAAkB,CAAC,CAAC,CAAC,sBAgD3G,CAAC"}
@@ -1,49 +0,0 @@
1
- import React, { Fragment, useRef, useState } from "react";
2
- import { Is } from "sidekicker";
3
- import { path } from "../../lib/fns";
4
- import { SkeletonCell } from "../display/skeleton";
5
- const RowAside = (props) => {
6
- const parentRef = useRef(null);
7
- const ref = useRef(null);
8
- const [className, setClassName] = useState("opacity-0");
9
- const ariaHidden = className === "opacity-0";
10
- const onLeave = () => setClassName("opacity-0");
11
- const onEnter = () => {
12
- const child = ref.current;
13
- const parent = parentRef.current;
14
- if (child !== null && parent !== null) {
15
- parent.style.left = `-${child.getBoundingClientRect().width + 4}px`;
16
- }
17
- setClassName("opacity-100");
18
- };
19
- return (<div ref={parentRef} onMouseEnter={onEnter} onMouseLeave={onLeave} data-component="cell-aside" inert={ariaHidden ? true : undefined} tabIndex={ariaHidden ? -1 : undefined} className={`group-table-cell-aside absolute inset-0 top-0 flex h-full w-full items-stretch transition-opacity duration-300 ease-in-out ${className}`}>
20
- <div ref={ref} className="isolate block">
21
- {props.children}
22
- </div>
23
- </div>);
24
- };
25
- export const Row = (index, row, context) => {
26
- const cols = context.cols;
27
- const loading = context.loading;
28
- return (<Fragment>
29
- {cols.map((col, colIndex) => {
30
- const matrix = `${colIndex},${index}`;
31
- const value = path(row, col.id);
32
- const Component = col.Element;
33
- const className = col.cellProps?.className || "";
34
- const exposeAside = colIndex === 0 && context.Aside && loading === false;
35
- const Aside = context.Aside;
36
- return (<td {...col.cellProps} role="cell" data-matrix={matrix} key={`accessor-${index}-${colIndex}`} className={`typography group-table-cell flex border-collapse flex-col whitespace-pre-wrap border border-y border-b border-table-border p-table-cell-padding md:table-cell md:border-b-0 md:border-r md:border-l-transparent md:last:border-r-transparent ${className}`}>
37
- {exposeAside ? (<RowAside>
38
- <Aside col={col} row={row} rowIndex={index}/>
39
- </RowAside>) : null}
40
- <span className="text-typography-sm block font-bold leading-tight md:hidden">{col.thead}</span>
41
- <span className="relative">
42
- {loading ? (SkeletonCell) : Component ? (<Fragment>
43
- <Component row={row} matrix={matrix} col={col} rowIndex={index} value={value}/>
44
- </Fragment>) : (<Fragment>{Is.nil(value) ? "" : value}</Fragment>)}
45
- </span>
46
- </td>);
47
- })}
48
- </Fragment>);
49
- };
@@ -1,28 +0,0 @@
1
- import React from "react";
2
- import { Any, Label } from "../../types";
3
- import { Col, TableConfiguration, TableOperationProps } from "./table-lib";
4
- type Keyof<T extends Any> = keyof T extends infer R extends string ? R : never;
5
- declare enum Order {
6
- Asc = "asc",
7
- Desc = "desc",
8
- Undefined = "undefined"
9
- }
10
- export type Sorter<T extends Any> = {
11
- value: Keyof<T>;
12
- type: Order;
13
- label: Label;
14
- id: string;
15
- };
16
- export declare const multiSort: <T extends Any>(array: T[], fields: Sorter<T>[]) => T[];
17
- type Props<T extends Any> = TableConfiguration<T, {
18
- cols: Col<T>[];
19
- sorters: Sorter<T>[];
20
- set: React.Dispatch<React.SetStateAction<Sorter<T>[]>>;
21
- }>;
22
- export declare const Sort: <T extends Any>(props: Props<T>) => React.JSX.Element;
23
- type SorterHeadProps<T extends Any> = Pick<TableOperationProps<T>, "sorters" | "setSorters"> & {
24
- col: Col<T>;
25
- };
26
- export declare const SorterHead: <T extends Any>(props: SorterHeadProps<T>) => React.JSX.Element;
27
- export {};
28
- //# sourceMappingURL=sort.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../../src/components/table/sort.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,GAAG,EAAY,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAErF,KAAK,KAAK,CAAC,CAAC,SAAS,GAAG,IAAI,MAAM,CAAC,SAAS,MAAM,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC;AAE/E,aAAK,KAAK;IACN,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,SAAS,cAAc;CAC1B;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,GAAG,IAAI;IAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAAC,IAAI,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAY/F,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,GAAG,EAAE,OAAO,CAAC,EAAE,EAAE,QAAQ,MAAM,CAAC,CAAC,CAAC,EAAE,QAGvE,CAAC;AAEF,KAAK,KAAK,CAAC,CAAC,SAAS,GAAG,IAAI,kBAAkB,CAC1C,CAAC,EACD;IACI,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAC1D,CACJ,CAAC;AASF,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,GAAG,EAAE,OAAO,KAAK,CAAC,CAAC,CAAC,sBA0ElD,CAAC;AAEF,KAAK,eAAe,CAAC,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC,GAAG;IAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC;AAE/G,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,GAAG,EAAE,OAAO,eAAe,CAAC,CAAC,CAAC,sBAkClE,CAAC"}
@@ -1,109 +0,0 @@
1
- "use client";
2
- import { SortAscendingIcon, SortDescendingIcon, CaretUpDownIcon, PlusIcon, TrashIcon } from "@phosphor-icons/react";
3
- import React, { Fragment, useState } from "react";
4
- import { useTranslations } from "../../hooks/use-translations";
5
- import { uuid } from "../../lib/fns";
6
- import { Dropdown } from "../floating/dropdown";
7
- import { Select } from "../form/select";
8
- import { getLabel } from "./table-lib";
9
- var Order;
10
- (function (Order) {
11
- Order["Asc"] = "asc";
12
- Order["Desc"] = "desc";
13
- Order["Undefined"] = "undefined";
14
- })(Order || (Order = {}));
15
- const createSorterFn = (fields) => (a, b) => fields.reduce((acc, x) => {
16
- const reverse = x.type === "desc" ? -1 : 1;
17
- const property = x.value;
18
- const p = a[property] > b[property] ? reverse : a[property] < b[property] ? -reverse : 0;
19
- return acc !== 0 ? acc : p;
20
- }, 0);
21
- export const multiSort = (array, fields) => {
22
- array.sort(createSorterFn(fields));
23
- return array;
24
- };
25
- const createSorter = (col, label, order) => ({
26
- label,
27
- id: uuid(),
28
- type: order,
29
- value: col.id,
30
- });
31
- export const Sort = (props) => {
32
- const translation = useTranslations();
33
- const orders = {
34
- asc: { label: translation.tableSortAsc, value: Order.Asc },
35
- desc: { label: translation.tableSortDesc, value: Order.Desc },
36
- };
37
- const orderOptions = [orders.asc, orders.desc];
38
- const onAddSorter = () => {
39
- const col = props.cols[0];
40
- if (col)
41
- props.set((prev) => [...prev, createSorter(col, orders.asc.label, orders.asc.value)]);
42
- };
43
- const onSetSorter = (id) => (e) => {
44
- const value = e.target.value;
45
- props.set((prev) => prev.map((x) => (x.id === id ? { ...x, value: value } : x)));
46
- };
47
- const onSortOrderType = (id) => (e) => {
48
- const type = e.target.value;
49
- props.set((prev) => prev.map((x) => (x.id === id ? { ...x, type: type } : x)));
50
- };
51
- const onDelete = (e) => {
52
- const id = e.currentTarget.dataset.id || "";
53
- props.set((prev) => prev.filter((x) => x.id !== id));
54
- };
55
- return (<Fragment>
56
- <Dropdown title={translation.tableSortDropdownTitle} trigger={<span className="flex items-center gap-table-inline-gap-tight proportional-nums">
57
- <CaretUpDownIcon size={14}/>
58
- {translation.tableSortOrderByLabel} {props.sorters.length === 0 ? "" : ` (${props.sorters.length})`}
59
- </span>}>
60
- <ul className="mt-table-groups-mt space-y-2">
61
- {props.sorters.map((sorter) => {
62
- return (<li key={`sorter-select-${sorter.id}`} className="flex flex-nowrap gap-3">
63
- <Select options={props.options} value={sorter.value} onChange={onSetSorter(sorter.id)} title={translation.tableSortOrderInputTitle} placeholder={translation.tableSortOrderInputPlaceholder}/>
64
- <Select onChange={onSortOrderType(sorter.id)} value={sorter.type} options={orderOptions} title={translation.tableSortTypeInputTitle} placeholder={translation.tableSortTypeInputPlaceholder}/>
65
- <button className="mt-table-groups-mt" data-id={sorter.id} onClick={onDelete}>
66
- <TrashIcon className="text-danger" size={14}/>
67
- </button>
68
- </li>);
69
- })}
70
- <li>
71
- <button type="button" onClick={onAddSorter} className="flex items-center gap-table-inline-gap-tight text-primary">
72
- <PlusIcon size={14}/> {translation.tableSortAddButton}
73
- </button>
74
- </li>
75
- </ul>
76
- </Dropdown>
77
- </Fragment>);
78
- };
79
- export const SorterHead = (props) => {
80
- const translations = useTranslations();
81
- const [status, setStatus] = useState(() => {
82
- const sorter = props.sorters.find((sort) => sort.value === props.col.id);
83
- return sorter ? sorter.type : Order.Undefined;
84
- });
85
- const onClick = () => {
86
- const next = status === Order.Undefined ? Order.Asc : status === Order.Asc ? Order.Desc : Order.Undefined;
87
- setStatus(next);
88
- props.setSorters((prev) => {
89
- if (next === Order.Undefined)
90
- return prev.filter((x) => x.value !== props.col.id);
91
- const findIndex = prev.findIndex((p) => p.value === props.col.id);
92
- const sorter = createSorter(props.col, next, next);
93
- if (findIndex === -1)
94
- return [...prev, sorter];
95
- prev[findIndex] = sorter;
96
- return [...prev];
97
- });
98
- };
99
- const labelId = `${props.col.id}-sorter-id`;
100
- const label = getLabel(props.col);
101
- return (<button aria-labelledby={labelId} className="isolate flex items-center" onClick={onClick} type="button">
102
- <span id={labelId} className="sr-only">
103
- {translations.tableSortDropdownTitle} {label}
104
- </span>
105
- {status === Order.Asc ? <SortAscendingIcon size={14}/> : null}
106
- {status === Order.Desc ? <SortDescendingIcon size={14}/> : null}
107
- {status === Order.Undefined ? <CaretUpDownIcon size={14}/> : null}
108
- </button>);
109
- };
@@ -1,135 +0,0 @@
1
- import React from "react";
2
- import { AllPaths } from "sidekicker";
3
- import { Any, POJO, SetState } from "../../types";
4
- import { OptionProps } from "../form/select";
5
- import { FilterConfig } from "./filter";
6
- import { GroupItem } from "./group";
7
- import { Sorter } from "./sort";
8
- export declare const getLabel: <T extends POJO>(col: Col<T>) => string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined>;
9
- export type TableConfiguration<T extends POJO, M extends POJO = Any> = M & {
10
- cols: Col<T>[];
11
- options: OptionProps[];
12
- };
13
- export declare const createOptionCols: <T extends POJO>(cols: Col<T>[]) => OptionProps[];
14
- export declare enum ColType {
15
- Boolean = "boolean",
16
- Number = "number",
17
- Select = "select",
18
- Text = "text"
19
- }
20
- export declare const valueFromType: (input: HTMLInputElement) => string | number;
21
- type THead = React.ReactElement | React.ReactNode;
22
- export type ColMatrix = `${number},${number}`;
23
- type ParsePath<path, output extends string[] = [], currentChunk extends string = ""> = path extends number ? [`${path}`] : path extends `${infer first}${infer rest}` ? first extends "." | "[" | "]" ? ParsePath<rest, [...output, ...(currentChunk extends "" ? [] : [currentChunk])], ""> : ParsePath<rest, output, `${currentChunk}${first}`> : [...output, ...(currentChunk extends "" ? [] : [currentChunk])];
24
- type RecursiveGet<Obj, pathList> = Obj extends any ? pathList extends [infer first, ...infer rest] ? first extends keyof Obj ? RecursiveGet<Obj[first], rest> : [first, Obj] extends [`${number}` | "number", readonly any[]] ? RecursiveGet<Extract<Obj, any[]>[number], rest> : undefined : Obj : never;
25
- type GetFromPath<Obj, path> = RecursiveGet<Obj, ParsePath<path>>;
26
- export type CellAsideElement<T extends POJO> = {
27
- row: T;
28
- rowIndex: number;
29
- col: ColOptions<T, AllPaths<T>>;
30
- };
31
- export type CellPropsElement<T extends POJO, K extends AllPaths<T>> = {
32
- row: T;
33
- value: GetFromPath<T, K>;
34
- rowIndex: number;
35
- matrix: ColMatrix;
36
- col: ColOptions<T, K> & {
37
- id: K;
38
- thead: THead;
39
- };
40
- };
41
- type ColOptions<T extends POJO, K extends AllPaths<T>> = Partial<{
42
- type: ColType;
43
- allowSort: boolean;
44
- headerLabel: string;
45
- allowFilter: boolean;
46
- Element: React.FC<CellPropsElement<T, K>>;
47
- thProps: React.HTMLAttributes<HTMLTableCellElement>;
48
- cellProps: React.HTMLAttributes<HTMLTableCellElement>;
49
- }>;
50
- export type ColConstructor<T extends POJO> = {
51
- getAll: () => Col<T>[];
52
- remove: <K extends AllPaths<T>>(id: K) => void;
53
- filter: (c: (c: Col<T>) => boolean) => Col<T>[];
54
- add: <K extends AllPaths<T>>(id: K, thead: THead, props?: ColOptions<T, K>) => void;
55
- };
56
- declare const cols: <T extends POJO>() => <K extends AllPaths<T>>(id: K, thead: THead, options: ColOptions<T, K>) => {
57
- id: K;
58
- thead: THead;
59
- type?: ColType | undefined;
60
- allowSort?: boolean | undefined;
61
- headerLabel?: string | undefined;
62
- allowFilter?: boolean | undefined;
63
- Element?: React.FC<CellPropsElement<T, K>> | undefined;
64
- thProps?: React.HTMLAttributes<HTMLTableCellElement> | undefined;
65
- cellProps?: React.HTMLAttributes<HTMLTableCellElement> | undefined;
66
- };
67
- export type Col<T extends POJO> = ReturnType<ReturnType<typeof cols<T>>>;
68
- export type TablePagination = {
69
- size: number;
70
- pages: number;
71
- current: number;
72
- hasNext: boolean;
73
- sizes?: number[];
74
- totalItems: number;
75
- hasPrevious: boolean;
76
- onChangeSize?: (size: number) => void;
77
- asLink?: React.FC<React.PropsWithChildren<{
78
- href: number | "previous" | "next";
79
- className: string;
80
- }>>;
81
- };
82
- export type TableGetters<T extends POJO> = {
83
- rows: T[];
84
- cols: Col<T>[];
85
- sorters: Sorter<T>[];
86
- groups: GroupItem<T>[];
87
- filters: FilterConfig<T>[];
88
- pagination: TablePagination | null;
89
- };
90
- type TableSetters<T extends POJO> = {
91
- setCols: SetState<Col<T>[]>;
92
- setSorters: SetState<Sorter<T>[]>;
93
- setGroups: SetState<GroupItem<T>[]>;
94
- setFilters: SetState<FilterConfig<T>[]>;
95
- };
96
- export type TableOperationProps<T extends POJO> = TableConfiguration<T, TableSetters<T> & TableGetters<T> & {
97
- set?: (v: TableGetters<T>) => void;
98
- } & {
99
- inlineSorter: boolean;
100
- inlineFilter: boolean;
101
- }>;
102
- export declare const createColumns: <T extends POJO>(callback: (o: ColConstructor<T>) => void) => {
103
- id: AllPaths<T, never>;
104
- thead: THead;
105
- type?: ColType | undefined;
106
- allowSort?: boolean | undefined;
107
- headerLabel?: string | undefined;
108
- allowFilter?: boolean | undefined;
109
- Element?: React.FC<CellPropsElement<T, AllPaths<T, never>>> | undefined;
110
- thProps?: React.HTMLAttributes<HTMLTableCellElement> | undefined;
111
- cellProps?: React.HTMLAttributes<HTMLTableCellElement> | undefined;
112
- }[];
113
- export declare const useTablePreferences: <T extends POJO>(name: string, cols: Col<T>[], options?: Partial<TableGetters<T>>) => {
114
- name: string;
115
- set: (getters: TableGetters<T>) => void;
116
- cols: {
117
- id: AllPaths<T, never>;
118
- thead: THead;
119
- type?: ColType | undefined;
120
- allowSort?: boolean | undefined;
121
- headerLabel?: string | undefined;
122
- allowFilter?: boolean | undefined;
123
- Element?: React.FC<CellPropsElement<T, AllPaths<T, never>>> | undefined;
124
- thProps?: React.HTMLAttributes<HTMLTableCellElement> | undefined;
125
- cellProps?: React.HTMLAttributes<HTMLTableCellElement> | undefined;
126
- }[];
127
- sorters: Sorter<T>[];
128
- groups: GroupItem<T>[];
129
- filters: FilterConfig<T>[];
130
- pagination: TablePagination | null;
131
- };
132
- export declare const useWidthControl: <T extends object>(reorder: (c: Col<T>[]) => void) => readonly [React.RefObject<HTMLTableRowElement | null>, (cols: Col<T>[]) => void];
133
- export declare const getModalScrollerRef: () => HTMLElement | undefined;
134
- export {};
135
- //# sourceMappingURL=table-lib.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-lib.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-lib.ts"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,O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