@addev-be/ui 0.1.18 → 0.1.19

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 (226) hide show
  1. package/assets/icons/arrow-down-a-z.svg +1 -1
  2. package/assets/icons/arrow-up-z-a.svg +1 -1
  3. package/assets/icons/check.svg +1 -1
  4. package/assets/icons/down.svg +1 -1
  5. package/assets/icons/filter-full.svg +1 -1
  6. package/assets/icons/filter.svg +1 -1
  7. package/assets/icons/hashtag.svg +1 -1
  8. package/assets/icons/image-slash.svg +1 -1
  9. package/assets/icons/left.svg +1 -1
  10. package/assets/icons/magnifier.svg +1 -1
  11. package/assets/icons/phone.svg +1 -1
  12. package/assets/icons/right.svg +1 -1
  13. package/assets/icons/spinner-third.svg +1 -1
  14. package/assets/icons/table-columns.svg +1 -1
  15. package/assets/icons/up.svg +1 -1
  16. package/assets/icons/user-tie.svg +1 -1
  17. package/dist/Icons.d.ts +31 -0
  18. package/dist/Icons.js +92 -0
  19. package/dist/components/data/DataGrid/AdvancedRequestDataGrid.d.ts +10 -0
  20. package/dist/components/data/DataGrid/AdvancedRequestDataGrid.js +173 -0
  21. package/dist/components/data/DataGrid/DataGridCell.d.ts +2 -0
  22. package/dist/components/data/DataGrid/DataGridCell.js +59 -0
  23. package/dist/components/data/DataGrid/DataGridColumnsModal/helpers.d.ts +2 -0
  24. package/dist/components/data/DataGrid/DataGridColumnsModal/helpers.js +24 -0
  25. package/dist/components/data/DataGrid/DataGridColumnsModal/hooks.d.ts +6 -0
  26. package/dist/components/data/DataGrid/DataGridColumnsModal/hooks.js +37 -0
  27. package/dist/components/data/DataGrid/DataGridColumnsModal/index.d.ts +15 -0
  28. package/dist/components/data/DataGrid/DataGridColumnsModal/index.js +111 -0
  29. package/dist/components/data/DataGrid/DataGridColumnsModal/styles.d.ts +22 -0
  30. package/dist/components/data/DataGrid/DataGridColumnsModal/styles.js +54 -0
  31. package/dist/components/data/DataGrid/DataGridEditableCell.d.ts +2 -0
  32. package/dist/components/data/DataGrid/DataGridEditableCell.js +32 -0
  33. package/dist/components/data/DataGrid/DataGridFilterMenu/hooks.d.ts +9 -0
  34. package/dist/components/data/DataGrid/DataGridFilterMenu/hooks.js +52 -0
  35. package/dist/components/data/DataGrid/DataGridFilterMenu/index.d.ts +9 -0
  36. package/dist/components/data/DataGrid/DataGridFilterMenu/index.js +140 -0
  37. package/dist/components/data/DataGrid/DataGridFilterMenu/styles.d.ts +15 -0
  38. package/dist/components/data/DataGrid/DataGridFilterMenu/styles.js +48 -0
  39. package/dist/components/data/DataGrid/DataGridFooter.d.ts +4 -0
  40. package/dist/components/data/DataGrid/DataGridFooter.js +31 -0
  41. package/dist/components/data/DataGrid/DataGridHeader.d.ts +4 -0
  42. package/dist/components/data/DataGrid/DataGridHeader.js +71 -0
  43. package/dist/components/data/DataGrid/DataGridHeaderCell.d.ts +2 -0
  44. package/dist/components/data/DataGrid/DataGridHeaderCell.js +99 -0
  45. package/dist/components/data/DataGrid/FilterModalContent/index.d.ts +7 -0
  46. package/dist/components/data/DataGrid/FilterModalContent/index.js +106 -0
  47. package/dist/components/data/DataGrid/FilterModalContent/styles.d.ts +3 -0
  48. package/dist/components/data/DataGrid/FilterModalContent/styles.js +15 -0
  49. package/dist/components/data/DataGrid/FilterValuesScroller.d.ts +12 -0
  50. package/dist/components/data/DataGrid/FilterValuesScroller.js +74 -0
  51. package/dist/components/data/DataGrid/VirtualScroller.d.ts +11 -0
  52. package/dist/components/data/DataGrid/VirtualScroller.js +46 -0
  53. package/dist/components/data/DataGrid/helpers/advancedRequests.d.ts +12 -0
  54. package/dist/components/data/DataGrid/helpers/advancedRequests.js +53 -0
  55. package/dist/components/data/DataGrid/helpers/columns.d.ts +13 -0
  56. package/dist/components/data/DataGrid/helpers/columns.js +167 -0
  57. package/dist/components/data/DataGrid/helpers/filters.d.ts +16 -0
  58. package/dist/components/data/DataGrid/helpers/filters.js +249 -0
  59. package/dist/components/data/DataGrid/helpers/index.d.ts +3 -0
  60. package/dist/components/data/DataGrid/helpers/index.js +19 -0
  61. package/dist/components/data/DataGrid/helpers.d.ts +28 -0
  62. package/dist/components/data/DataGrid/helpers.js +436 -0
  63. package/dist/components/data/DataGrid/hooks/index.d.ts +7 -0
  64. package/dist/components/data/DataGrid/hooks/index.js +34 -0
  65. package/dist/components/data/DataGrid/hooks/useDataGrid.d.ts +2 -0
  66. package/dist/components/data/DataGrid/hooks/useDataGrid.js +199 -0
  67. package/dist/components/data/DataGrid/hooks/useDataGridCopy.d.ts +4 -0
  68. package/dist/components/data/DataGrid/hooks/useDataGridCopy.js +160 -0
  69. package/dist/components/data/DataGrid/hooks/useDataGridSettings.d.ts +16 -0
  70. package/dist/components/data/DataGrid/hooks/useDataGridSettings.js +44 -0
  71. package/dist/components/data/DataGrid/index.d.ts +2 -0
  72. package/dist/components/data/DataGrid/index.js +91 -0
  73. package/dist/components/data/DataGrid/styles.d.ts +55 -0
  74. package/dist/components/data/DataGrid/styles.js +121 -0
  75. package/dist/components/data/DataGrid/types.d.ts +162 -0
  76. package/dist/components/data/DataGrid/types.js +34 -0
  77. package/dist/components/data/index.d.ts +3 -0
  78. package/dist/components/data/index.js +19 -0
  79. package/dist/components/forms/Button.d.ts +10 -0
  80. package/dist/components/forms/Button.js +70 -0
  81. package/dist/components/forms/IconButton.d.ts +7 -0
  82. package/dist/components/forms/IconButton.js +64 -0
  83. package/dist/components/forms/IndeterminateCheckbox.d.ts +8 -0
  84. package/dist/components/forms/IndeterminateCheckbox.js +41 -0
  85. package/dist/components/forms/Select.d.ts +10 -0
  86. package/dist/components/forms/Select.js +49 -0
  87. package/dist/components/forms/index.d.ts +5 -0
  88. package/dist/components/forms/index.js +23 -0
  89. package/dist/components/forms/styles.d.ts +2 -0
  90. package/dist/components/forms/styles.js +34 -0
  91. package/dist/components/index.d.ts +3 -0
  92. package/dist/components/index.js +19 -0
  93. package/dist/components/layout/Dropdown/index.d.ts +11 -0
  94. package/dist/components/layout/Dropdown/index.js +85 -0
  95. package/dist/components/layout/Dropdown/styles.d.ts +11 -0
  96. package/dist/components/layout/Dropdown/styles.js +45 -0
  97. package/dist/components/layout/Loading/index.d.ts +6 -0
  98. package/dist/components/layout/Loading/index.js +42 -0
  99. package/dist/components/layout/Loading/styles.d.ts +6 -0
  100. package/dist/components/layout/Loading/styles.js +18 -0
  101. package/dist/components/layout/Modal/index.d.ts +16 -0
  102. package/dist/components/layout/Modal/index.js +67 -0
  103. package/dist/components/layout/Modal/styles.d.ts +32 -0
  104. package/dist/components/layout/Modal/styles.js +52 -0
  105. package/dist/components/layout/index.d.ts +3 -0
  106. package/dist/components/layout/index.js +19 -0
  107. package/dist/config/index.d.ts +10 -0
  108. package/dist/config/index.js +2 -0
  109. package/dist/config/types.d.ts +11 -0
  110. package/dist/config/types.js +2 -0
  111. package/dist/helpers/getScrollbarSize.d.ts +1 -0
  112. package/dist/helpers/getScrollbarSize.js +17 -0
  113. package/dist/helpers/numbers.d.ts +3 -0
  114. package/dist/helpers/numbers.js +31 -0
  115. package/dist/hooks/index.d.ts +2 -0
  116. package/dist/hooks/index.js +18 -0
  117. package/dist/hooks/useElementSize.d.ts +4 -0
  118. package/dist/hooks/useElementSize.js +23 -0
  119. package/dist/hooks/useWindowSize.d.ts +4 -0
  120. package/dist/hooks/useWindowSize.js +19 -0
  121. package/dist/index.d.ts +5 -0
  122. package/dist/index.js +21 -0
  123. package/dist/providers/PortalsProvider/index.d.ts +10 -0
  124. package/dist/providers/PortalsProvider/index.js +46 -0
  125. package/dist/providers/PortalsProvider/styles.d.ts +9 -0
  126. package/dist/providers/PortalsProvider/styles.js +21 -0
  127. package/dist/providers/SettingsProvider/index.d.ts +8 -0
  128. package/dist/providers/SettingsProvider/index.js +54 -0
  129. package/dist/providers/ThemeProvider/ThemeProvider.d.ts +7 -0
  130. package/dist/providers/ThemeProvider/ThemeProvider.js +51 -0
  131. package/dist/providers/ThemeProvider/defaultTheme.d.ts +2 -0
  132. package/dist/providers/ThemeProvider/defaultTheme.js +417 -0
  133. package/dist/providers/ThemeProvider/index.d.ts +2 -0
  134. package/dist/providers/ThemeProvider/index.js +5 -0
  135. package/dist/providers/ThemeProvider/types.d.ts +24 -0
  136. package/dist/providers/ThemeProvider/types.js +2 -0
  137. package/dist/providers/UiProviders/index.d.ts +12 -0
  138. package/dist/providers/UiProviders/index.js +62 -0
  139. package/dist/providers/UiProviders/styles.d.ts +3 -0
  140. package/dist/providers/UiProviders/styles.js +13 -0
  141. package/dist/providers/hooks.d.ts +3 -0
  142. package/dist/providers/hooks.js +13 -0
  143. package/dist/providers/index.d.ts +4 -0
  144. package/dist/providers/index.js +20 -0
  145. package/dist/services/WebSocketService.d.ts +24 -0
  146. package/dist/services/WebSocketService.js +136 -0
  147. package/dist/services/advancedRequests.d.ts +41 -0
  148. package/dist/services/advancedRequests.js +13 -0
  149. package/dist/services/base.d.ts +19 -0
  150. package/dist/services/base.js +10 -0
  151. package/dist/services/hooks.d.ts +1 -0
  152. package/dist/services/hooks.js +11 -0
  153. package/dist/services/index.d.ts +2 -0
  154. package/dist/services/index.js +18 -0
  155. package/package.json +4 -3
  156. package/src/Icons.tsx +80 -80
  157. package/src/components/data/DataGrid/AdvancedRequestDataGrid.tsx +236 -236
  158. package/src/components/data/DataGrid/DataGridCell.tsx +78 -78
  159. package/src/components/data/DataGrid/DataGridColumnsModal/helpers.ts +14 -14
  160. package/src/components/data/DataGrid/DataGridColumnsModal/hooks.tsx +58 -58
  161. package/src/components/data/DataGrid/DataGridColumnsModal/index.tsx +181 -181
  162. package/src/components/data/DataGrid/DataGridColumnsModal/styles.ts +104 -104
  163. package/src/components/data/DataGrid/DataGridEditableCell.tsx +54 -54
  164. package/src/components/data/DataGrid/DataGridFilterMenu/hooks.tsx +75 -75
  165. package/src/components/data/DataGrid/DataGridFilterMenu/index.tsx +190 -190
  166. package/src/components/data/DataGrid/DataGridFilterMenu/styles.ts +100 -100
  167. package/src/components/data/DataGrid/DataGridFooter.tsx +64 -64
  168. package/src/components/data/DataGrid/DataGridHeader.tsx +129 -129
  169. package/src/components/data/DataGrid/DataGridHeaderCell.tsx +166 -166
  170. package/src/components/data/DataGrid/FilterModalContent/index.tsx +125 -125
  171. package/src/components/data/DataGrid/FilterModalContent/styles.ts +22 -22
  172. package/src/components/data/DataGrid/FilterValuesScroller.tsx +131 -131
  173. package/src/components/data/DataGrid/VirtualScroller.tsx +51 -51
  174. package/src/components/data/DataGrid/helpers/advancedRequests.tsx +61 -61
  175. package/src/components/data/DataGrid/helpers/columns.tsx +259 -259
  176. package/src/components/data/DataGrid/helpers/filters.ts +219 -219
  177. package/src/components/data/DataGrid/helpers/index.ts +3 -3
  178. package/src/components/data/DataGrid/hooks/index.ts +30 -30
  179. package/src/components/data/DataGrid/hooks/useDataGrid.tsx +225 -225
  180. package/src/components/data/DataGrid/hooks/useDataGridCopy.ts +166 -166
  181. package/src/components/data/DataGrid/hooks/useDataGridSettings.ts +49 -49
  182. package/src/components/data/DataGrid/index.tsx +145 -145
  183. package/src/components/data/DataGrid/styles.ts +284 -284
  184. package/src/components/data/DataGrid/types.ts +232 -232
  185. package/src/components/data/index.ts +3 -3
  186. package/src/components/forms/Button.tsx +99 -99
  187. package/src/components/forms/IconButton.tsx +57 -57
  188. package/src/components/forms/IndeterminateCheckbox.tsx +46 -46
  189. package/src/components/forms/Select.tsx +40 -40
  190. package/src/components/forms/index.ts +5 -5
  191. package/src/components/forms/styles.ts +20 -20
  192. package/src/components/index.ts +3 -3
  193. package/src/components/layout/Dropdown/index.tsx +79 -79
  194. package/src/components/layout/Dropdown/styles.ts +44 -44
  195. package/src/components/layout/Loading/index.tsx +29 -28
  196. package/src/components/layout/Loading/styles.ts +29 -29
  197. package/src/components/layout/Modal/index.tsx +51 -51
  198. package/src/components/layout/Modal/styles.ts +110 -110
  199. package/src/components/layout/index.ts +3 -3
  200. package/src/config/index.ts +14 -14
  201. package/src/helpers/getScrollbarSize.ts +14 -14
  202. package/src/helpers/numbers.ts +20 -20
  203. package/src/hooks/index.ts +2 -2
  204. package/src/hooks/useElementSize.ts +24 -24
  205. package/src/hooks/useWindowSize.ts +20 -20
  206. package/src/index.ts +7 -7
  207. package/src/providers/PortalsProvider/index.tsx +54 -54
  208. package/src/providers/PortalsProvider/styles.ts +27 -27
  209. package/src/providers/SettingsProvider/index.tsx +70 -70
  210. package/src/providers/ThemeProvider/ThemeProvider.ts +55 -55
  211. package/src/providers/ThemeProvider/defaultTheme.ts +444 -444
  212. package/src/providers/ThemeProvider/index.ts +3 -3
  213. package/src/providers/ThemeProvider/types.ts +123 -123
  214. package/src/providers/UiProviders/index.tsx +65 -65
  215. package/src/providers/UiProviders/styles.ts +10 -10
  216. package/src/providers/hooks.ts +8 -8
  217. package/src/providers/index.ts +5 -5
  218. package/src/services/WebSocketService.ts +147 -147
  219. package/src/services/advancedRequests.ts +100 -100
  220. package/src/services/base.ts +31 -31
  221. package/src/services/hooks.ts +13 -13
  222. package/src/services/index.ts +2 -2
  223. package/src/styles/animations.scss +30 -30
  224. package/src/styles/index.scss +42 -42
  225. package/src/typings.d.ts +6 -6
  226. package/tsconfig.tsbuildinfo +1 -0
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M47 377l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55V56c0-13.3-10.7-24-24-24s-24 10.7-24 24V398.1L81 343c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9zm305-89c-13.3 0-24 10.7-24 24s10.7 24 24 24h74.6L334.1 440.1c-6.3 7.1-7.8 17.2-4 25.8S342.6 480 352 480H480c13.3 0 24-10.7 24-24s-10.7-24-24-24H405.4l92.5-104.1c6.3-7.1 7.8-17.2 4-25.8S489.4 288 480 288H352zM416 32c-9.1 0-17.4 5.1-21.5 13.3l-80 160c-5.9 11.9-1.1 26.3 10.7 32.2s26.3 1.1 32.2-10.7L370.8 200H456c1.7 0 3.3-.2 4.9-.5l13.6 27.2c5.9 11.9 20.3 16.7 32.2 10.7s16.7-20.3 10.7-32.2l-80-160C433.4 37.1 425.1 32 416 32zM394.8 152L416 109.7 437.2 152H394.8z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M47 377l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55V56c0-13.3-10.7-24-24-24s-24 10.7-24 24V398.1L81 343c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9zm305-89c-13.3 0-24 10.7-24 24s10.7 24 24 24h74.6L334.1 440.1c-6.3 7.1-7.8 17.2-4 25.8S342.6 480 352 480H480c13.3 0 24-10.7 24-24s-10.7-24-24-24H405.4l92.5-104.1c6.3-7.1 7.8-17.2 4-25.8S489.4 288 480 288H352zM416 32c-9.1 0-17.4 5.1-21.5 13.3l-80 160c-5.9 11.9-1.1 26.3 10.7 32.2s26.3 1.1 32.2-10.7L370.8 200H456c1.7 0 3.3-.2 4.9-.5l13.6 27.2c5.9 11.9 20.3 16.7 32.2 10.7s16.7-20.3 10.7-32.2l-80-160C433.4 37.1 425.1 32 416 32zM394.8 152L416 109.7 437.2 152H394.8z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M352 32H480c9.4 0 18 5.5 21.9 14.2s2.3 18.7-4 25.8L405.4 176H480c13.3 0 24 10.7 24 24s-10.7 24-24 24H352c-9.4 0-18-5.5-21.9-14.2s-2.3-18.7 4-25.8L426.6 80H352c-13.3 0-24-10.7-24-24s10.7-24 24-24zM143 39c9.4-9.4 24.6-9.4 33.9 0l96 96c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55V456c0 13.3-10.7 24-24 24s-24-10.7-24-24V113.9L81 169c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l96-96zM416 272c9.1 0 17.4 5.1 21.5 13.3l80 160c5.9 11.9 1.1 26.3-10.7 32.2s-26.3 1.1-32.2-10.7l-13.6-27.2c-1.6 .3-3.2 .5-4.9 .5H370.8l-13.4 26.7c-5.9 11.9-20.3 16.7-32.2 10.7s-16.7-20.3-10.7-32.2l80-160c4.1-8.1 12.4-13.3 21.5-13.3zM394.8 392h42.3L416 349.7 394.8 392z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M352 32H480c9.4 0 18 5.5 21.9 14.2s2.3 18.7-4 25.8L405.4 176H480c13.3 0 24 10.7 24 24s-10.7 24-24 24H352c-9.4 0-18-5.5-21.9-14.2s-2.3-18.7 4-25.8L426.6 80H352c-13.3 0-24-10.7-24-24s10.7-24 24-24zM143 39c9.4-9.4 24.6-9.4 33.9 0l96 96c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55V456c0 13.3-10.7 24-24 24s-24-10.7-24-24V113.9L81 169c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l96-96zM416 272c9.1 0 17.4 5.1 21.5 13.3l80 160c5.9 11.9 1.1 26.3-10.7 32.2s-26.3 1.1-32.2-10.7l-13.6-27.2c-1.6 .3-3.2 .5-4.9 .5H370.8l-13.4 26.7c-5.9 11.9-20.3 16.7-32.2 10.7s-16.7-20.3-10.7-32.2l80-160c4.1-8.1 12.4-13.3 21.5-13.3zM394.8 392h42.3L416 349.7 394.8 392z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M214.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8l96 0 0-184c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 184 96 0c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-160 160z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M214.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8l96 0 0-184c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 184 96 0c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-160 160z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M0 73.7C0 50.7 18.7 32 41.7 32H470.3c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5V447.7c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3V304.5L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2v68.4l64 50.8V296c0-5.5 1.9-10.9 5.4-15.2L457 80H55z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M0 73.7C0 50.7 18.7 32 41.7 32H470.3c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5V447.7c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3V304.5L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2v68.4l64 50.8V296c0-5.5 1.9-10.9 5.4-15.2L457 80H55z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M181.3 32.4c17.4 2.9 29.2 19.4 26.3 36.8L197.8 128l95.1 0 11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3s29.2 19.4 26.3 36.8L357.8 128l58.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-68.9 0L325.8 320l58.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-68.9 0-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8l9.8-58.7-95.1 0-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8L90.2 384 32 384c-17.7 0-32-14.3-32-32s14.3-32 32-32l68.9 0 21.3-128L64 192c-17.7 0-32-14.3-32-32s14.3-32 32-32l68.9 0 11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3zM187.1 192L165.8 320l95.1 0 21.3-128-95.1 0z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M181.3 32.4c17.4 2.9 29.2 19.4 26.3 36.8L197.8 128l95.1 0 11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3s29.2 19.4 26.3 36.8L357.8 128l58.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-68.9 0L325.8 320l58.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-68.9 0-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8l9.8-58.7-95.1 0-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8L90.2 384 32 384c-17.7 0-32-14.3-32-32s14.3-32 32-32l68.9 0 21.3-128L64 192c-17.7 0-32-14.3-32-32s14.3-32 32-32l68.9 0 11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3zM187.1 192L165.8 320l95.1 0 21.3-128-95.1 0z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Pro 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-55.5-43.5c.5-3.1 .7-6.3 .7-9.6l0-320c0-35.3-28.7-64-64-64L128 32c-14.4 0-27.8 4.8-38.5 12.9L38.8 5.1zM134.4 80L512 80c8.8 0 16 7.2 16 16l0 292.5-53.4-41.9L387 233.3c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3l-7.2 9.3L256 175.3c-.4-26.2-21.7-47.3-48-47.3c-3.7 0-7.4 .4-10.8 1.2L134.4 80zm353 400L282.9 318.9 266 340.7l-30.5-42.7C231 291.7 223.8 288 216 288s-15 3.7-19.5 10.1l-80 112-4.5 6.3 0-.3 0-231.8L64 146.4 64 416c0 35.3 28.7 64 64 64l359.4 0z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Pro 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-55.5-43.5c.5-3.1 .7-6.3 .7-9.6l0-320c0-35.3-28.7-64-64-64L128 32c-14.4 0-27.8 4.8-38.5 12.9L38.8 5.1zM134.4 80L512 80c8.8 0 16 7.2 16 16l0 292.5-53.4-41.9L387 233.3c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3l-7.2 9.3L256 175.3c-.4-26.2-21.7-47.3-48-47.3c-3.7 0-7.4 .4-10.8 1.2L134.4 80zm353 400L282.9 318.9 266 340.7l-30.5-42.7C231 291.7 223.8 288 216 288s-15 3.7-19.5 10.1l-80 112-4.5 6.3 0-.3 0-231.8L64 146.4 64 416c0 35.3 28.7 64 64 64l359.4 0z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l160-160c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 96 184 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-184 0 0 96c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-160-160z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l160-160c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 96 184 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-184 0 0 96c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-160-160z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M438.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-96L40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l184 0 0-96c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l160 160z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M438.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-96L40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l184 0 0-96c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l160 160z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path opacity="1" d="M457 372c11.5 6.6 26.3 2.7 31.8-9.3C503.7 330.2 512 294.1 512 256C512 122.7 410.1 13.2 280 1.1C266.8-.1 256 10.7 256 24s10.8 23.9 24 25.4C383.5 61.2 464 149.2 464 256c0 29.3-6.1 57.3-17 82.6c-5.3 12.2-1.5 26.8 10 33.5z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path opacity="1" d="M457 372c11.5 6.6 26.3 2.7 31.8-9.3C503.7 330.2 512 294.1 512 256C512 122.7 410.1 13.2 280 1.1C266.8-.1 256 10.7 256 24s10.8 23.9 24 25.4C383.5 61.2 464 149.2 464 256c0 29.3-6.1 57.3-17 82.6c-5.3 12.2-1.5 26.8 10 33.5z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M48 416V160H232V432H64c-8.8 0-16-7.2-16-16zm232 16V160H464V416c0 8.8-7.2 16-16 16H280zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M48 416V160H232V432H64c-8.8 0-16-7.2-16-16zm232 16V160H464V416c0 8.8-7.2 16-16 16H280zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M169.4 41.4c12.5-12.5 32.8-12.5 45.3 0l160 160c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8H256V440c0 22.1-17.9 40-40 40H168c-22.1 0-40-17.9-40-40V256H32c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l160-160z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M169.4 41.4c12.5-12.5 32.8-12.5 45.3 0l160 160c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8H256V440c0 22.1-17.9 40-40 40H168c-22.1 0-40-17.9-40-40V256H32c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l160-160z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M96 128a128 128 0 1 0 256 0A128 128 0 1 0 96 128zm94.5 200.2l18.6 31L175.8 483.1l-36-146.9c-2-8.1-9.8-13.4-17.9-11.3C51.9 342.4 0 405.8 0 481.3c0 17 13.8 30.7 30.7 30.7l131.7 0c0 0 0 0 .1 0l5.5 0 112 0 5.5 0c0 0 0 0 .1 0l131.7 0c17 0 30.7-13.8 30.7-30.7c0-75.5-51.9-138.9-121.9-156.4c-8.1-2-15.9 3.3-17.9 11.3l-36 146.9L238.9 359.2l18.6-31c6.4-10.7-1.3-24.2-13.7-24.2L224 304l-19.7 0c-12.4 0-20.1 13.6-13.7 24.2z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M96 128a128 128 0 1 0 256 0A128 128 0 1 0 96 128zm94.5 200.2l18.6 31L175.8 483.1l-36-146.9c-2-8.1-9.8-13.4-17.9-11.3C51.9 342.4 0 405.8 0 481.3c0 17 13.8 30.7 30.7 30.7l131.7 0c0 0 0 0 .1 0l5.5 0 112 0 5.5 0c0 0 0 0 .1 0l131.7 0c17 0 30.7-13.8 30.7-30.7c0-75.5-51.9-138.9-121.9-156.4c-8.1-2-15.9 3.3-17.9 11.3l-36 146.9L238.9 359.2l18.6-31c6.4-10.7-1.3-24.2-13.7-24.2L224 304l-19.7 0c-12.4 0-20.1 13.6-13.7 24.2z"/></svg>
@@ -0,0 +1,31 @@
1
+ import { FC, SVGProps } from 'react';
2
+ import ArrowDownAZIcon from '../assets/icons/arrow-down-a-z.svg?react';
3
+ import ArrowUpZAIcon from '../assets/icons/arrow-up-z-a.svg?react';
4
+ import ArrowsRotateIcon from '../assets/icons/arrows-rotate.svg?react';
5
+ import ArrowsUpDownIcon from '../assets/icons/arrows-up-down.svg?react';
6
+ import CheckIcon from '../assets/icons/check.svg?react';
7
+ import CopyIcon from '../assets/icons/copy.svg?react';
8
+ import DownIcon from '../assets/icons/down.svg?react';
9
+ import FilterFullIcon from '../assets/icons/filter-full.svg?react';
10
+ import FilterIcon from '../assets/icons/filter.svg?react';
11
+ import FilterSlashIcon from '../assets/icons/filter-slash.svg?react';
12
+ import HashtagIcon from '../assets/icons/hashtag.svg?react';
13
+ import ImageSlashIcon from '../assets/icons/image-slash.svg?react';
14
+ import LeftIcon from '../assets/icons/left.svg?react';
15
+ import MagnifierIcon from '../assets/icons/magnifier.svg?react';
16
+ import PhoneIcon from '../assets/icons/phone.svg?react';
17
+ import PlusIcon from '../assets/icons/plus.svg?react';
18
+ import RightIcon from '../assets/icons/right.svg?react';
19
+ import SpinnerIcon from '../assets/icons/spinner-third.svg?react';
20
+ import TableColumnsIcon from '../assets/icons/table-columns.svg?react';
21
+ import UpIcon from '../assets/icons/up.svg?react';
22
+ import UserTieIcon from '../assets/icons/user-tie.svg?react';
23
+ type IconFCProps = SVGProps<SVGSVGElement>;
24
+ export type IconFC = FC<IconFCProps>;
25
+ type AnimatedIconProps = {
26
+ icons: FC[];
27
+ speed?: number;
28
+ };
29
+ export declare const AnimatedIcon: FC<AnimatedIconProps & IconFCProps>;
30
+ export declare const LoadingIcon: FC<IconFCProps>;
31
+ export { ArrowDownAZIcon, ArrowUpZAIcon, ArrowsRotateIcon, ArrowsUpDownIcon, CheckIcon, CopyIcon, DownIcon, FilterFullIcon, FilterIcon, FilterSlashIcon, HashtagIcon, ImageSlashIcon, LeftIcon, MagnifierIcon, PhoneIcon, PlusIcon, RightIcon, SpinnerIcon, TableColumnsIcon, UpIcon, UserTieIcon, };
package/dist/Icons.js ADDED
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.UserTieIcon = exports.UpIcon = exports.TableColumnsIcon = exports.SpinnerIcon = exports.RightIcon = exports.PlusIcon = exports.PhoneIcon = exports.MagnifierIcon = exports.LeftIcon = exports.ImageSlashIcon = exports.HashtagIcon = exports.FilterSlashIcon = exports.FilterIcon = exports.FilterFullIcon = exports.DownIcon = exports.CopyIcon = exports.CheckIcon = exports.ArrowsUpDownIcon = exports.ArrowsRotateIcon = exports.ArrowUpZAIcon = exports.ArrowDownAZIcon = exports.LoadingIcon = exports.AnimatedIcon = void 0;
29
+ var jsx_runtime_1 = require("react/jsx-runtime");
30
+ var react_1 = require("react");
31
+ var arrow_down_a_z_svg_react_1 = __importDefault(require("../assets/icons/arrow-down-a-z.svg?react"));
32
+ exports.ArrowDownAZIcon = arrow_down_a_z_svg_react_1.default;
33
+ var arrow_up_z_a_svg_react_1 = __importDefault(require("../assets/icons/arrow-up-z-a.svg?react"));
34
+ exports.ArrowUpZAIcon = arrow_up_z_a_svg_react_1.default;
35
+ var arrows_rotate_svg_react_1 = __importDefault(require("../assets/icons/arrows-rotate.svg?react"));
36
+ exports.ArrowsRotateIcon = arrows_rotate_svg_react_1.default;
37
+ var arrows_up_down_svg_react_1 = __importDefault(require("../assets/icons/arrows-up-down.svg?react"));
38
+ exports.ArrowsUpDownIcon = arrows_up_down_svg_react_1.default;
39
+ var check_svg_react_1 = __importDefault(require("../assets/icons/check.svg?react"));
40
+ exports.CheckIcon = check_svg_react_1.default;
41
+ var copy_svg_react_1 = __importDefault(require("../assets/icons/copy.svg?react"));
42
+ exports.CopyIcon = copy_svg_react_1.default;
43
+ var down_svg_react_1 = __importDefault(require("../assets/icons/down.svg?react"));
44
+ exports.DownIcon = down_svg_react_1.default;
45
+ var filter_full_svg_react_1 = __importDefault(require("../assets/icons/filter-full.svg?react"));
46
+ exports.FilterFullIcon = filter_full_svg_react_1.default;
47
+ var filter_svg_react_1 = __importDefault(require("../assets/icons/filter.svg?react"));
48
+ exports.FilterIcon = filter_svg_react_1.default;
49
+ var filter_slash_svg_react_1 = __importDefault(require("../assets/icons/filter-slash.svg?react"));
50
+ exports.FilterSlashIcon = filter_slash_svg_react_1.default;
51
+ var hashtag_svg_react_1 = __importDefault(require("../assets/icons/hashtag.svg?react"));
52
+ exports.HashtagIcon = hashtag_svg_react_1.default;
53
+ var image_slash_svg_react_1 = __importDefault(require("../assets/icons/image-slash.svg?react"));
54
+ exports.ImageSlashIcon = image_slash_svg_react_1.default;
55
+ var left_svg_react_1 = __importDefault(require("../assets/icons/left.svg?react"));
56
+ exports.LeftIcon = left_svg_react_1.default;
57
+ var magnifier_svg_react_1 = __importDefault(require("../assets/icons/magnifier.svg?react"));
58
+ exports.MagnifierIcon = magnifier_svg_react_1.default;
59
+ var phone_svg_react_1 = __importDefault(require("../assets/icons/phone.svg?react"));
60
+ exports.PhoneIcon = phone_svg_react_1.default;
61
+ var plus_svg_react_1 = __importDefault(require("../assets/icons/plus.svg?react"));
62
+ exports.PlusIcon = plus_svg_react_1.default;
63
+ var right_svg_react_1 = __importDefault(require("../assets/icons/right.svg?react"));
64
+ exports.RightIcon = right_svg_react_1.default;
65
+ var spinner_third_svg_react_1 = __importDefault(require("../assets/icons/spinner-third.svg?react"));
66
+ exports.SpinnerIcon = spinner_third_svg_react_1.default;
67
+ var table_columns_svg_react_1 = __importDefault(require("../assets/icons/table-columns.svg?react"));
68
+ exports.TableColumnsIcon = table_columns_svg_react_1.default;
69
+ var up_svg_react_1 = __importDefault(require("../assets/icons/up.svg?react"));
70
+ exports.UpIcon = up_svg_react_1.default;
71
+ var user_tie_svg_react_1 = __importDefault(require("../assets/icons/user-tie.svg?react"));
72
+ exports.UserTieIcon = user_tie_svg_react_1.default;
73
+ var AnimatedIcon = function (_a) {
74
+ var icons = _a.icons, _b = _a.speed, speed = _b === void 0 ? 150 : _b, props = __rest(_a, ["icons", "speed"]);
75
+ var _c = (0, react_1.useState)(0), currentIcon = _c[0], setCurrentIcon = _c[1];
76
+ (0, react_1.useEffect)(function () {
77
+ var interval = setInterval(function () {
78
+ setCurrentIcon(function (currentIcon) { return (currentIcon + 1) % icons.length; });
79
+ }, speed);
80
+ return function () {
81
+ clearInterval(interval);
82
+ };
83
+ }, [icons.length, speed]);
84
+ var Icon = icons[currentIcon];
85
+ return (0, jsx_runtime_1.jsx)(Icon, __assign({}, props));
86
+ };
87
+ exports.AnimatedIcon = AnimatedIcon;
88
+ var LoadingIcon = function (_a) {
89
+ var className = _a.className, props = __rest(_a, ["className"]);
90
+ return ((0, jsx_runtime_1.jsx)(spinner_third_svg_react_1.default, __assign({ className: "animate-spin ".concat(className) }, props)));
91
+ };
92
+ exports.LoadingIcon = LoadingIcon;
@@ -0,0 +1,10 @@
1
+ import { AdvancedRequestRow, ConditionDTO, OrderByDTO } from '../../../services/advancedRequests';
2
+ import { DataGridProps } from './types';
3
+ export type AdvancedRequestDataGridProps<R> = Omit<DataGridProps<R>, 'rows'> & {
4
+ type: string;
5
+ orderBy?: OrderByDTO[];
6
+ conditions?: ConditionDTO[];
7
+ addIdColumn?: boolean;
8
+ parser?: (row: AdvancedRequestRow<R>) => R;
9
+ };
10
+ export declare const AdvancedRequestDataGrid: <R>(props: AdvancedRequestDataGridProps<R>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
+ if (ar || !(i in from)) {
16
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
+ ar[i] = from[i];
18
+ }
19
+ }
20
+ return to.concat(ar || Array.prototype.slice.call(from));
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.AdvancedRequestDataGrid = void 0;
24
+ var jsx_runtime_1 = require("react/jsx-runtime");
25
+ var advancedRequests_1 = require("../../../services/advancedRequests");
26
+ var helpers_1 = require("./helpers");
27
+ var react_1 = require("react");
28
+ var _1 = require(".");
29
+ var lodash_1 = require("lodash");
30
+ var getColumnField = function (columns, columnKey) {
31
+ var _a, _b;
32
+ return columns[columnKey].field
33
+ ? {
34
+ fieldName: (_b = (_a = columns[columnKey].field) === null || _a === void 0 ? void 0 : _a.fieldName) !== null && _b !== void 0 ? _b : columnKey,
35
+ fieldAlias: columnKey,
36
+ }
37
+ : {
38
+ fieldName: columnKey,
39
+ fieldAlias: columnKey,
40
+ };
41
+ };
42
+ var getFirstColumnField = function (columns) {
43
+ return getColumnField(columns, Object.keys(columns)[0]);
44
+ };
45
+ var AdvancedRequestDataGrid = function (props) {
46
+ var _a;
47
+ var currentRows = (0, react_1.useRef)([]);
48
+ var _b = (0, react_1.useState)([]), rows = _b[0], setRows = _b[1];
49
+ var _c = (0, react_1.useState)(0), start = _c[0], setStart = _c[1];
50
+ var _d = (0, react_1.useState)(50), length = _d[0], setLength = _d[1];
51
+ var _e = (0, react_1.useState)(-1), total = _e[0], setTotal = _e[1];
52
+ var advancedRequest = (0, advancedRequests_1.useAdvancedRequestHandler)();
53
+ var _f = (0, react_1.useState)([]), conditions = _f[0], setConditions = _f[1];
54
+ var _g = (0, react_1.useState)((_a = props.orderBy) !== null && _a !== void 0 ? _a : [
55
+ {
56
+ field: getFirstColumnField(props.columns),
57
+ direction: 'ASC',
58
+ },
59
+ ]), orderBy = _g[0], setOrderBy = _g[1];
60
+ var refresh = (0, react_1.useCallback)(function () {
61
+ setRows([]);
62
+ setStart(0);
63
+ setLength(50);
64
+ setTotal(-1);
65
+ }, []);
66
+ var onFiltersChanged = (0, react_1.useCallback)(function (filters) {
67
+ console.log('filters changed', filters);
68
+ var newConditions = (0, helpers_1.convertFiltersToConditions)(filters);
69
+ console.log('new conditions:', newConditions);
70
+ setTotal(-1);
71
+ setConditions(newConditions);
72
+ }, []);
73
+ var onSortsChanged = (0, react_1.useCallback)(function (sorts) {
74
+ console.log('sorts changed', sorts);
75
+ refresh();
76
+ setOrderBy(Object.entries(sorts).map(function (_a) {
77
+ var columnKey = _a[0], direction = _a[1];
78
+ return ({
79
+ field: getColumnField(props.columns, columnKey),
80
+ direction: direction.toUpperCase(),
81
+ });
82
+ }));
83
+ }, [props.columns, refresh]);
84
+ var loadRows = (0, react_1.useRef)((0, lodash_1.debounce)(function (columns, conditions, orderBy, start, length, getTotal) {
85
+ if (getTotal === void 0) { getTotal = false; }
86
+ advancedRequest((0, helpers_1.getAdvancedRequestDto)({
87
+ type: props.type,
88
+ columns: columns,
89
+ conditions: conditions,
90
+ orderBy: orderBy,
91
+ start: start,
92
+ length: length,
93
+ getTotal: getTotal,
94
+ })).then(function (response) {
95
+ var _a;
96
+ var _b, _c;
97
+ if (getTotal) {
98
+ currentRows.current = Array(response.total).fill(null);
99
+ if (getTotal)
100
+ setTotal((_b = response.total) !== null && _b !== void 0 ? _b : 0);
101
+ }
102
+ var parsedRows = response.data.map((_c = props.parser) !== null && _c !== void 0 ? _c : (function (row) { return row; }));
103
+ (_a = currentRows.current).splice.apply(_a, __spreadArray([start, length], parsedRows, false));
104
+ setRows(__spreadArray([], currentRows.current, true));
105
+ });
106
+ }, 100));
107
+ var loadFilterValues = (0, react_1.useCallback)(function (columnKey) {
108
+ var _a;
109
+ return advancedRequest({
110
+ fields: [
111
+ {
112
+ fieldName: columnKey,
113
+ },
114
+ ],
115
+ conditions: __spreadArray(__spreadArray(__spreadArray([], ((_a = props.conditions) !== null && _a !== void 0 ? _a : []), true), conditions, true), [
116
+ {
117
+ field: {
118
+ fieldName: 'DeletedAt',
119
+ },
120
+ operator: 'isNull',
121
+ },
122
+ ], false).filter(function (condition) {
123
+ var _a;
124
+ return ((_a = condition.field.fieldAlias) !== null && _a !== void 0 ? _a : condition.field.fieldName) !==
125
+ columnKey;
126
+ }),
127
+ orderBy: [
128
+ {
129
+ field: { fieldName: columnKey },
130
+ direction: 'ASC',
131
+ },
132
+ ],
133
+ type: props.type,
134
+ getTotal: false,
135
+ unique: true,
136
+ }).then(function (response) {
137
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
138
+ return response.data.map(function (row) { return row[columnKey]; });
139
+ });
140
+ }, [advancedRequest, conditions, props.conditions, props.type]);
141
+ (0, react_1.useEffect)(function () {
142
+ var _a;
143
+ return loadRows.current(props.columns, __spreadArray(__spreadArray([], ((_a = props.conditions) !== null && _a !== void 0 ? _a : []), true), (conditions !== null && conditions !== void 0 ? conditions : []), true), orderBy, start, length, total < 0);
144
+ }, [props.columns, conditions, orderBy, start, length, total, props.conditions]);
145
+ var loadCopyRows = (0, react_1.useCallback)(function () {
146
+ var _a;
147
+ return advancedRequest((0, helpers_1.getAdvancedRequestDto)({
148
+ type: props.type,
149
+ columns: props.columns,
150
+ conditions: __spreadArray(__spreadArray([], ((_a = props.conditions) !== null && _a !== void 0 ? _a : []), true), (conditions !== null && conditions !== void 0 ? conditions : []), true),
151
+ orderBy: orderBy,
152
+ start: 0,
153
+ length: total,
154
+ })).then(function (response) { var _a; return response.data.map((_a = props.parser) !== null && _a !== void 0 ? _a : (function (row) { return row; })); });
155
+ }, [
156
+ advancedRequest,
157
+ conditions,
158
+ orderBy,
159
+ props.columns,
160
+ props.conditions,
161
+ props.parser,
162
+ props.type,
163
+ total,
164
+ ]);
165
+ var onVisibleRowsChanged = (0, react_1.useCallback)(function (newStart, newLength) {
166
+ if (newStart !== start || newLength !== length) {
167
+ setStart(newStart);
168
+ setLength(newLength);
169
+ }
170
+ }, [length, start]);
171
+ return ((0, jsx_runtime_1.jsx)(_1.DataGrid, __assign({ onVisibleRowsChange: onVisibleRowsChanged, filter: false, sort: false, onFiltersChanged: onFiltersChanged, onSortsChanged: onSortsChanged, filterValuesLoader: loadFilterValues, rows: rows, loadCopyRows: loadCopyRows, refresh: refresh }, props)));
172
+ };
173
+ exports.AdvancedRequestDataGrid = AdvancedRequestDataGrid;
@@ -0,0 +1,2 @@
1
+ import { DataGridCellProps } from './types';
2
+ export declare const DataGridCell: <R>({ row, rowIndex, columnKey, columnIndex, column, context, className, style, }: DataGridCellProps<R>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.DataGridCell = void 0;
27
+ var jsx_runtime_1 = require("react/jsx-runtime");
28
+ /* eslint-disable @typescript-eslint/no-explicit-any */
29
+ /* eslint-disable @typescript-eslint/no-unnecessary-type-constraint */
30
+ var styles = __importStar(require("./styles"));
31
+ var react_1 = require("react");
32
+ var DataGridEditableCell_1 = require("./DataGridEditableCell");
33
+ var lodash_1 = require("lodash");
34
+ var hooks_1 = require("./hooks");
35
+ var defaultRender = function (col, row) {
36
+ var value = col.propertyName ? row[col.propertyName] : '';
37
+ return !value ? '' : String(value);
38
+ };
39
+ var DataGridCell = function (_a) {
40
+ var _b;
41
+ var row = _a.row, rowIndex = _a.rowIndex, columnKey = _a.columnKey, columnIndex = _a.columnIndex, column = _a.column, context = _a.context, className = _a.className, style = _a.style;
42
+ var _c = (0, hooks_1.useDataGridContext)(context), name = _c.name, editable = _c.editable, _d = _c.editingCell, editingCell = _d === void 0 ? [-1, -1] : _d, setEditingCell = _c.setEditingCell, onRowDoubleClick = _c.onRowDoubleClick;
43
+ var isEditable = !!editable && !!column.editable && column.type && column.getter;
44
+ var isEditing = isEditable && editingCell[0] === rowIndex && editingCell[1] === columnIndex;
45
+ var onDoubleClick = (0, react_1.useCallback)(function (e) {
46
+ e.stopPropagation();
47
+ e.preventDefault();
48
+ if (isEditable) {
49
+ setEditingCell([rowIndex, columnIndex]);
50
+ }
51
+ else
52
+ onRowDoubleClick === null || onRowDoubleClick === void 0 ? void 0 : onRowDoubleClick(row, e);
53
+ }, [columnIndex, isEditable, onRowDoubleClick, row, rowIndex, setEditingCell]);
54
+ if (isEditing) {
55
+ return ((0, jsx_runtime_1.jsx)(DataGridEditableCell_1.DataGridEditableCell, { row: row, rowIndex: rowIndex, columnKey: columnKey, columnIndex: columnIndex, column: column, context: context }, "".concat(name, "-").concat(rowIndex, "-").concat(columnIndex)));
56
+ }
57
+ return ((0, jsx_runtime_1.jsx)(styles.DataGridCell, { className: (0, lodash_1.join)([className, column.className, column.bodyClassName], ' '), onDoubleClick: onDoubleClick, style: style, children: ((_b = column.render) !== null && _b !== void 0 ? _b : defaultRender)(column, row) }, "".concat(name, "-").concat(rowIndex, "-").concat(columnIndex)));
58
+ };
59
+ exports.DataGridCell = DataGridCell;
@@ -0,0 +1,2 @@
1
+ import { DataGridColumnKeyValuePair, DataGridColumns } from '../types';
2
+ export declare const normalizeColumnsOrders: <R>(columns: DataGridColumns<R> | DataGridColumnKeyValuePair<R>[]) => DataGridColumnKeyValuePair<R>[];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.normalizeColumnsOrders = void 0;
15
+ var normalizeColumnsOrders = function (columns) {
16
+ return (Array.isArray(columns) ? columns : Object.entries(columns)).map(function (_a, index) {
17
+ var key = _a[0], column = _a[1];
18
+ return [
19
+ key,
20
+ __assign(__assign({}, column), { order: index }),
21
+ ];
22
+ });
23
+ };
24
+ exports.normalizeColumnsOrders = normalizeColumnsOrders;
@@ -0,0 +1,6 @@
1
+ import { DataGridContext } from '../types';
2
+ export declare const useDataGridColumnsModal: <R>(context: DataGridContext<R>) => {
3
+ openModal: () => void;
4
+ closeModal: () => void;
5
+ modal: import("react/jsx-runtime").JSX.Element | null;
6
+ };
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useDataGridColumnsModal = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var react_1 = require("react");
6
+ var forms_1 = require("../../../forms");
7
+ var _1 = require(".");
8
+ var Modal_1 = require("../../../layout/Modal");
9
+ var lodash_1 = require("lodash");
10
+ var useDataGridColumnsModal = function (context) {
11
+ var _a = (0, react_1.useState)(false), isVisible = _a[0], setIsVisible = _a[1];
12
+ var _b = (0, react_1.useContext)(context), columns = _b.columns, setSettings = _b.setSettings, saveSettings = _b.saveSettings;
13
+ var _c = (0, react_1.useState)(columns), currentColumns = _c[0], setCurrentColumns = _c[1];
14
+ var openModal = (0, react_1.useCallback)(function () {
15
+ setIsVisible(true);
16
+ }, []);
17
+ var closeModal = (0, react_1.useCallback)(function () {
18
+ setIsVisible(false);
19
+ }, []);
20
+ var onApplyClicked = (0, react_1.useCallback)(function () {
21
+ var newSettings = (0, lodash_1.mapValues)(currentColumns, function (col) {
22
+ var _a, _b;
23
+ return ({
24
+ order: (_a = col.order) !== null && _a !== void 0 ? _a : 0,
25
+ width: (_b = col.width) !== null && _b !== void 0 ? _b : 150,
26
+ });
27
+ });
28
+ setSettings(function () { return newSettings; });
29
+ saveSettings(newSettings);
30
+ closeModal();
31
+ }, [currentColumns, closeModal, saveSettings, setSettings]);
32
+ var modal = (0, react_1.useMemo)(function () {
33
+ return isVisible ? ((0, jsx_runtime_1.jsxs)(Modal_1.Modal, { "$width": 600, "$height": 400, children: [(0, jsx_runtime_1.jsx)(Modal_1.Modal.Header, { children: "Param\u00E8tres des colonnes" }), (0, jsx_runtime_1.jsx)(Modal_1.Modal.Content, { children: (0, jsx_runtime_1.jsx)(_1.DataGridColumnsEditor, { columns: currentColumns, onColumnsChanged: setCurrentColumns }) }), (0, jsx_runtime_1.jsxs)(Modal_1.Modal.Footer, { children: [(0, jsx_runtime_1.jsx)(forms_1.Button, { onClick: closeModal, children: "Annuler" }), (0, jsx_runtime_1.jsx)(forms_1.Button, { color: "primary", style: { marginLeft: 'auto' }, onClick: onApplyClicked, children: "Appliquer" })] })] })) : null;
34
+ }, [closeModal, currentColumns, isVisible, onApplyClicked]);
35
+ return { openModal: openModal, closeModal: closeModal, modal: modal };
36
+ };
37
+ exports.useDataGridColumnsModal = useDataGridColumnsModal;
@@ -0,0 +1,15 @@
1
+ import { DataGridColumn, DataGridColumns } from '../types';
2
+ import { Dispatch, SetStateAction } from 'react';
3
+ export declare const DataGridColumnItem: <R>({ columnIndex, columnKey, column, visible, onUpButtonClicked, onDownButtonClicked, onVisibleButtonClicked, }: {
4
+ columnIndex: number;
5
+ columnKey: string;
6
+ column: DataGridColumn<R>;
7
+ visible: boolean;
8
+ onUpButtonClicked?: (index: number) => void;
9
+ onDownButtonClicked?: (index: number) => void;
10
+ onVisibleButtonClicked: (key: string) => void;
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const DataGridColumnsEditor: <R>({ columns, onColumnsChanged, }: {
13
+ columns: DataGridColumns<R>;
14
+ onColumnsChanged: Dispatch<SetStateAction<DataGridColumns<R>>>;
15
+ }) => import("react/jsx-runtime").JSX.Element;