@j2-health/design-system 0.5.0 → 0.5.2

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 (377) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +35 -0
  2. package/dist/_virtual/_rolldown/runtime.js +27 -0
  3. package/dist/index.cjs +118 -113
  4. package/dist/index.js +22 -81
  5. package/dist/src/AppConfigProvider.cjs +22 -11
  6. package/dist/src/AppConfigProvider.cjs.map +1 -1
  7. package/dist/src/AppConfigProvider.js +19 -10
  8. package/dist/src/AppConfigProvider.js.map +1 -1
  9. package/dist/src/appTheme.cjs +239 -266
  10. package/dist/src/appTheme.cjs.map +1 -1
  11. package/dist/src/appTheme.js +240 -267
  12. package/dist/src/appTheme.js.map +1 -1
  13. package/dist/src/components/alert/Alert.cjs +81 -103
  14. package/dist/src/components/alert/Alert.cjs.map +1 -1
  15. package/dist/src/components/alert/Alert.js +78 -86
  16. package/dist/src/components/alert/Alert.js.map +1 -1
  17. package/dist/src/components/alert/Alert.module.css.cjs +7 -8
  18. package/dist/src/components/alert/Alert.module.css.cjs.map +1 -1
  19. package/dist/src/components/alert/Alert.module.css.js +7 -9
  20. package/dist/src/components/alert/Alert.module.css.js.map +1 -1
  21. package/dist/src/components/barchart/BarChart.cjs +123 -151
  22. package/dist/src/components/barchart/BarChart.cjs.map +1 -1
  23. package/dist/src/components/barchart/BarChart.d.ts +1 -1
  24. package/dist/src/components/barchart/BarChart.js +121 -149
  25. package/dist/src/components/barchart/BarChart.js.map +1 -1
  26. package/dist/src/components/barchart/chart.module.css.cjs +7 -8
  27. package/dist/src/components/barchart/chart.module.css.cjs.map +1 -1
  28. package/dist/src/components/barchart/chart.module.css.js +7 -9
  29. package/dist/src/components/barchart/chart.module.css.js.map +1 -1
  30. package/dist/src/components/barchart/index.js +3 -0
  31. package/dist/src/components/breadcrumb/Breadcrumb.cjs +23 -36
  32. package/dist/src/components/breadcrumb/Breadcrumb.cjs.map +1 -1
  33. package/dist/src/components/breadcrumb/Breadcrumb.js +20 -19
  34. package/dist/src/components/breadcrumb/Breadcrumb.js.map +1 -1
  35. package/dist/src/components/bulkActionBar/BulkActionBar.cjs +66 -79
  36. package/dist/src/components/bulkActionBar/BulkActionBar.cjs.map +1 -1
  37. package/dist/src/components/bulkActionBar/BulkActionBar.d.ts +1 -1
  38. package/dist/src/components/bulkActionBar/BulkActionBar.js +63 -78
  39. package/dist/src/components/bulkActionBar/BulkActionBar.js.map +1 -1
  40. package/dist/src/components/button/Button.cjs +16 -18
  41. package/dist/src/components/button/Button.cjs.map +1 -1
  42. package/dist/src/components/button/Button.d.ts +1 -1
  43. package/dist/src/components/button/Button.js +17 -19
  44. package/dist/src/components/button/Button.js.map +1 -1
  45. package/dist/src/components/card/Card.cjs +19 -33
  46. package/dist/src/components/card/Card.cjs.map +1 -1
  47. package/dist/src/components/card/Card.d.ts +1 -1
  48. package/dist/src/components/card/Card.js +17 -33
  49. package/dist/src/components/card/Card.js.map +1 -1
  50. package/dist/src/components/checkbox/Checkbox.cjs +8 -7
  51. package/dist/src/components/checkbox/Checkbox.cjs.map +1 -1
  52. package/dist/src/components/checkbox/Checkbox.d.ts +1 -1
  53. package/dist/src/components/checkbox/Checkbox.js +9 -8
  54. package/dist/src/components/checkbox/Checkbox.js.map +1 -1
  55. package/dist/src/components/checkboxTree/CheckboxTree.cjs +112 -138
  56. package/dist/src/components/checkboxTree/CheckboxTree.cjs.map +1 -1
  57. package/dist/src/components/checkboxTree/CheckboxTree.js +110 -138
  58. package/dist/src/components/checkboxTree/CheckboxTree.js.map +1 -1
  59. package/dist/src/components/checkboxTree/TreeNode.cjs +57 -90
  60. package/dist/src/components/checkboxTree/TreeNode.cjs.map +1 -1
  61. package/dist/src/components/checkboxTree/TreeNode.d.ts +1 -1
  62. package/dist/src/components/checkboxTree/TreeNode.js +57 -90
  63. package/dist/src/components/checkboxTree/TreeNode.js.map +1 -1
  64. package/dist/src/components/checkboxTree/utils.cjs +46 -51
  65. package/dist/src/components/checkboxTree/utils.cjs.map +1 -1
  66. package/dist/src/components/checkboxTree/utils.js +47 -55
  67. package/dist/src/components/checkboxTree/utils.js.map +1 -1
  68. package/dist/src/components/collapse/Collapse.cjs +54 -78
  69. package/dist/src/components/collapse/Collapse.cjs.map +1 -1
  70. package/dist/src/components/collapse/Collapse.js +51 -61
  71. package/dist/src/components/collapse/Collapse.js.map +1 -1
  72. package/dist/src/components/collapse/Collapse.module.css.cjs +11 -10
  73. package/dist/src/components/collapse/Collapse.module.css.cjs.map +1 -1
  74. package/dist/src/components/collapse/Collapse.module.css.js +11 -12
  75. package/dist/src/components/collapse/Collapse.module.css.js.map +1 -1
  76. package/dist/src/components/drawer/Drawer.cjs +26 -38
  77. package/dist/src/components/drawer/Drawer.cjs.map +1 -1
  78. package/dist/src/components/drawer/Drawer.d.ts +1 -1
  79. package/dist/src/components/drawer/Drawer.js +27 -39
  80. package/dist/src/components/drawer/Drawer.js.map +1 -1
  81. package/dist/src/components/dropdown/Dropdown.cjs +54 -54
  82. package/dist/src/components/dropdown/Dropdown.cjs.map +1 -1
  83. package/dist/src/components/dropdown/Dropdown.d.ts +1 -1
  84. package/dist/src/components/dropdown/Dropdown.js +53 -55
  85. package/dist/src/components/dropdown/Dropdown.js.map +1 -1
  86. package/dist/src/components/filterform/FilterGroup.cjs +41 -62
  87. package/dist/src/components/filterform/FilterGroup.cjs.map +1 -1
  88. package/dist/src/components/filterform/FilterGroup.d.ts +1 -1
  89. package/dist/src/components/filterform/FilterGroup.js +38 -61
  90. package/dist/src/components/filterform/FilterGroup.js.map +1 -1
  91. package/dist/src/components/filterform/FilterInput.cjs +169 -233
  92. package/dist/src/components/filterform/FilterInput.cjs.map +1 -1
  93. package/dist/src/components/filterform/FilterInput.js +164 -216
  94. package/dist/src/components/filterform/FilterInput.js.map +1 -1
  95. package/dist/src/components/filterform/FiltersForm.cjs +144 -178
  96. package/dist/src/components/filterform/FiltersForm.cjs.map +1 -1
  97. package/dist/src/components/filterform/FiltersForm.d.ts +1 -1
  98. package/dist/src/components/filterform/FiltersForm.js +140 -176
  99. package/dist/src/components/filterform/FiltersForm.js.map +1 -1
  100. package/dist/src/components/filterform/FiltersForm.module.css.cjs +16 -15
  101. package/dist/src/components/filterform/FiltersForm.module.css.cjs.map +1 -1
  102. package/dist/src/components/filterform/FiltersForm.module.css.js +16 -20
  103. package/dist/src/components/filterform/FiltersForm.module.css.js.map +1 -1
  104. package/dist/src/components/filterform/filterHelpers.cjs +50 -59
  105. package/dist/src/components/filterform/filterHelpers.cjs.map +1 -1
  106. package/dist/src/components/filterform/filterHelpers.js +51 -66
  107. package/dist/src/components/filterform/filterHelpers.js.map +1 -1
  108. package/dist/src/components/filterform/useFilterField.cjs +268 -236
  109. package/dist/src/components/filterform/useFilterField.cjs.map +1 -1
  110. package/dist/src/components/filterform/useFilterField.js +265 -222
  111. package/dist/src/components/filterform/useFilterField.js.map +1 -1
  112. package/dist/src/components/filterform/useFiltersForm.cjs +120 -154
  113. package/dist/src/components/filterform/useFiltersForm.cjs.map +1 -1
  114. package/dist/src/components/filterform/useFiltersForm.js +117 -153
  115. package/dist/src/components/filterform/useFiltersForm.js.map +1 -1
  116. package/dist/src/components/form/Form.cjs +23 -25
  117. package/dist/src/components/form/Form.cjs.map +1 -1
  118. package/dist/src/components/form/Form.d.ts +2 -2
  119. package/dist/src/components/form/Form.js +23 -25
  120. package/dist/src/components/form/Form.js.map +1 -1
  121. package/dist/src/components/form/FormItem.cjs +35 -40
  122. package/dist/src/components/form/FormItem.cjs.map +1 -1
  123. package/dist/src/components/form/FormItem.d.ts +1 -1
  124. package/dist/src/components/form/FormItem.js +35 -40
  125. package/dist/src/components/form/FormItem.js.map +1 -1
  126. package/dist/src/components/form/FormItemFieldContext.cjs +5 -7
  127. package/dist/src/components/form/FormItemFieldContext.cjs.map +1 -1
  128. package/dist/src/components/form/FormItemFieldContext.js +6 -7
  129. package/dist/src/components/form/FormItemFieldContext.js.map +1 -1
  130. package/dist/src/components/form/FormikField.cjs +15 -18
  131. package/dist/src/components/form/FormikField.cjs.map +1 -1
  132. package/dist/src/components/form/FormikField.d.ts +1 -1
  133. package/dist/src/components/form/FormikField.js +14 -17
  134. package/dist/src/components/form/FormikField.js.map +1 -1
  135. package/dist/src/components/icons/index.cjs +21 -26
  136. package/dist/src/components/icons/index.cjs.map +1 -1
  137. package/dist/src/components/icons/index.js +9 -2
  138. package/dist/src/components/icons/index.js.map +1 -1
  139. package/dist/src/components/input/AntdInput.cjs +14 -11
  140. package/dist/src/components/input/AntdInput.cjs.map +1 -1
  141. package/dist/src/components/input/AntdInput.js +13 -10
  142. package/dist/src/components/input/AntdInput.js.map +1 -1
  143. package/dist/src/components/input/AntdSearchInput.cjs +14 -11
  144. package/dist/src/components/input/AntdSearchInput.cjs.map +1 -1
  145. package/dist/src/components/input/AntdSearchInput.js +13 -10
  146. package/dist/src/components/input/AntdSearchInput.js.map +1 -1
  147. package/dist/src/components/input/Input.cjs +28 -33
  148. package/dist/src/components/input/Input.cjs.map +1 -1
  149. package/dist/src/components/input/Input.d.ts +1 -1
  150. package/dist/src/components/input/Input.js +28 -33
  151. package/dist/src/components/input/Input.js.map +1 -1
  152. package/dist/src/components/inputnumber/InputNumber.cjs +45 -45
  153. package/dist/src/components/inputnumber/InputNumber.cjs.map +1 -1
  154. package/dist/src/components/inputnumber/InputNumber.d.ts +1 -1
  155. package/dist/src/components/inputnumber/InputNumber.js +42 -44
  156. package/dist/src/components/inputnumber/InputNumber.js.map +1 -1
  157. package/dist/src/components/inputnumber/InputNumber.module.css.cjs +7 -8
  158. package/dist/src/components/inputnumber/InputNumber.module.css.cjs.map +1 -1
  159. package/dist/src/components/inputnumber/InputNumber.module.css.js +7 -9
  160. package/dist/src/components/inputnumber/InputNumber.module.css.js.map +1 -1
  161. package/dist/src/components/legacyNavMenu/LegacyNavMenu.cjs +72 -50
  162. package/dist/src/components/legacyNavMenu/LegacyNavMenu.cjs.map +1 -1
  163. package/dist/src/components/legacyNavMenu/LegacyNavMenu.js +69 -49
  164. package/dist/src/components/legacyNavMenu/LegacyNavMenu.js.map +1 -1
  165. package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.cjs +43 -33
  166. package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.cjs.map +1 -1
  167. package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.js +40 -47
  168. package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.js.map +1 -1
  169. package/dist/src/components/legacyNavMenu/UserProfile.cjs +76 -76
  170. package/dist/src/components/legacyNavMenu/UserProfile.cjs.map +1 -1
  171. package/dist/src/components/legacyNavMenu/UserProfile.js +74 -76
  172. package/dist/src/components/legacyNavMenu/UserProfile.js.map +1 -1
  173. package/dist/src/components/legacyNavMenu/UserProfile.module.css.cjs +33 -29
  174. package/dist/src/components/legacyNavMenu/UserProfile.module.css.cjs.map +1 -1
  175. package/dist/src/components/legacyNavMenu/UserProfile.module.css.js +32 -41
  176. package/dist/src/components/legacyNavMenu/UserProfile.module.css.js.map +1 -1
  177. package/dist/src/components/listpopover/ListPopover.cjs +89 -120
  178. package/dist/src/components/listpopover/ListPopover.cjs.map +1 -1
  179. package/dist/src/components/listpopover/ListPopover.d.ts +1 -1
  180. package/dist/src/components/listpopover/ListPopover.js +86 -119
  181. package/dist/src/components/listpopover/ListPopover.js.map +1 -1
  182. package/dist/src/components/listpopover/ListPopover.module.css.cjs +7 -8
  183. package/dist/src/components/listpopover/ListPopover.module.css.cjs.map +1 -1
  184. package/dist/src/components/listpopover/ListPopover.module.css.js +7 -9
  185. package/dist/src/components/listpopover/ListPopover.module.css.js.map +1 -1
  186. package/dist/src/components/manageColumns/ManageColumnsItem.cjs +53 -74
  187. package/dist/src/components/manageColumns/ManageColumnsItem.cjs.map +1 -1
  188. package/dist/src/components/manageColumns/ManageColumnsItem.js +48 -71
  189. package/dist/src/components/manageColumns/ManageColumnsItem.js.map +1 -1
  190. package/dist/src/components/manageColumns/ManageColumnsPanel.cjs +66 -77
  191. package/dist/src/components/manageColumns/ManageColumnsPanel.cjs.map +1 -1
  192. package/dist/src/components/manageColumns/ManageColumnsPanel.d.ts +1 -1
  193. package/dist/src/components/manageColumns/ManageColumnsPanel.js +65 -76
  194. package/dist/src/components/manageColumns/ManageColumnsPanel.js.map +1 -1
  195. package/dist/src/components/manageColumns/SelectAll.cjs +31 -24
  196. package/dist/src/components/manageColumns/SelectAll.cjs.map +1 -1
  197. package/dist/src/components/manageColumns/SelectAll.d.ts +1 -1
  198. package/dist/src/components/manageColumns/SelectAll.js +31 -24
  199. package/dist/src/components/manageColumns/SelectAll.js.map +1 -1
  200. package/dist/src/components/menu/Menu.cjs +16 -16
  201. package/dist/src/components/menu/Menu.cjs.map +1 -1
  202. package/dist/src/components/menu/Menu.d.ts +1 -1
  203. package/dist/src/components/menu/Menu.js +13 -15
  204. package/dist/src/components/menu/Menu.js.map +1 -1
  205. package/dist/src/components/menu/Menu.module.css.cjs +10 -9
  206. package/dist/src/components/menu/Menu.module.css.cjs.map +1 -1
  207. package/dist/src/components/menu/Menu.module.css.js +10 -11
  208. package/dist/src/components/menu/Menu.module.css.js.map +1 -1
  209. package/dist/src/components/message/Message.module.css.cjs +7 -8
  210. package/dist/src/components/message/Message.module.css.cjs.map +1 -1
  211. package/dist/src/components/message/Message.module.css.js +7 -9
  212. package/dist/src/components/message/Message.module.css.js.map +1 -1
  213. package/dist/src/components/message/useMessage.cjs +46 -52
  214. package/dist/src/components/message/useMessage.cjs.map +1 -1
  215. package/dist/src/components/message/useMessage.js +43 -51
  216. package/dist/src/components/message/useMessage.js.map +1 -1
  217. package/dist/src/components/modal/Modal.cjs +27 -28
  218. package/dist/src/components/modal/Modal.cjs.map +1 -1
  219. package/dist/src/components/modal/Modal.d.ts +1 -1
  220. package/dist/src/components/modal/Modal.js +25 -28
  221. package/dist/src/components/modal/Modal.js.map +1 -1
  222. package/dist/src/components/navMenu/NavMenu.cjs +75 -130
  223. package/dist/src/components/navMenu/NavMenu.cjs.map +1 -1
  224. package/dist/src/components/navMenu/NavMenu.js +68 -110
  225. package/dist/src/components/navMenu/NavMenu.js.map +1 -1
  226. package/dist/src/components/navMenu/NavMenu.module.css.cjs +14 -13
  227. package/dist/src/components/navMenu/NavMenu.module.css.cjs.map +1 -1
  228. package/dist/src/components/navMenu/NavMenu.module.css.js +14 -17
  229. package/dist/src/components/navMenu/NavMenu.module.css.js.map +1 -1
  230. package/dist/src/components/notification/Notification.module.css.cjs +7 -8
  231. package/dist/src/components/notification/Notification.module.css.cjs.map +1 -1
  232. package/dist/src/components/notification/Notification.module.css.js +7 -9
  233. package/dist/src/components/notification/Notification.module.css.js.map +1 -1
  234. package/dist/src/components/notification/useNotification.cjs +61 -52
  235. package/dist/src/components/notification/useNotification.cjs.map +1 -1
  236. package/dist/src/components/notification/useNotification.js +57 -51
  237. package/dist/src/components/notification/useNotification.js.map +1 -1
  238. package/dist/src/components/notificationModal/NotifcationModal.module.css.cjs +16 -15
  239. package/dist/src/components/notificationModal/NotifcationModal.module.css.cjs.map +1 -1
  240. package/dist/src/components/notificationModal/NotifcationModal.module.css.js +16 -20
  241. package/dist/src/components/notificationModal/NotifcationModal.module.css.js.map +1 -1
  242. package/dist/src/components/notificationModal/NotificationModal.cjs +56 -54
  243. package/dist/src/components/notificationModal/NotificationModal.cjs.map +1 -1
  244. package/dist/src/components/notificationModal/NotificationModal.d.ts +1 -1
  245. package/dist/src/components/notificationModal/NotificationModal.js +56 -54
  246. package/dist/src/components/notificationModal/NotificationModal.js.map +1 -1
  247. package/dist/src/components/pagination/Pagination.cjs +66 -61
  248. package/dist/src/components/pagination/Pagination.cjs.map +1 -1
  249. package/dist/src/components/pagination/Pagination.d.ts +1 -1
  250. package/dist/src/components/pagination/Pagination.js +63 -61
  251. package/dist/src/components/pagination/Pagination.js.map +1 -1
  252. package/dist/src/components/pagination/Pagination.module.css.cjs +6 -6
  253. package/dist/src/components/pagination/Pagination.module.css.cjs.map +1 -1
  254. package/dist/src/components/pagination/Pagination.module.css.js +6 -7
  255. package/dist/src/components/pagination/Pagination.module.css.js.map +1 -1
  256. package/dist/src/components/popover/Popover.cjs +22 -41
  257. package/dist/src/components/popover/Popover.cjs.map +1 -1
  258. package/dist/src/components/popover/Popover.d.ts +1 -1
  259. package/dist/src/components/popover/Popover.js +19 -40
  260. package/dist/src/components/popover/Popover.js.map +1 -1
  261. package/dist/src/components/popover/Popover.module.css.cjs +24 -23
  262. package/dist/src/components/popover/Popover.module.css.cjs.map +1 -1
  263. package/dist/src/components/popover/Popover.module.css.js +24 -32
  264. package/dist/src/components/popover/Popover.module.css.js.map +1 -1
  265. package/dist/src/components/progress/Progress.cjs +8 -7
  266. package/dist/src/components/progress/Progress.cjs.map +1 -1
  267. package/dist/src/components/progress/Progress.d.ts +1 -1
  268. package/dist/src/components/progress/Progress.js +8 -7
  269. package/dist/src/components/progress/Progress.js.map +1 -1
  270. package/dist/src/components/radio/Radio.cjs +14 -20
  271. package/dist/src/components/radio/Radio.cjs.map +1 -1
  272. package/dist/src/components/radio/Radio.d.ts +2 -2
  273. package/dist/src/components/radio/Radio.js +14 -21
  274. package/dist/src/components/radio/Radio.js.map +1 -1
  275. package/dist/src/components/rate/Rate.cjs +17 -19
  276. package/dist/src/components/rate/Rate.cjs.map +1 -1
  277. package/dist/src/components/rate/Rate.d.ts +1 -1
  278. package/dist/src/components/rate/Rate.js +18 -20
  279. package/dist/src/components/rate/Rate.js.map +1 -1
  280. package/dist/src/components/select/AntdSelect.cjs +57 -74
  281. package/dist/src/components/select/AntdSelect.cjs.map +1 -1
  282. package/dist/src/components/select/AntdSelect.js +53 -56
  283. package/dist/src/components/select/AntdSelect.js.map +1 -1
  284. package/dist/src/components/select/Select.cjs +119 -120
  285. package/dist/src/components/select/Select.cjs.map +1 -1
  286. package/dist/src/components/select/Select.js +117 -120
  287. package/dist/src/components/select/Select.js.map +1 -1
  288. package/dist/src/components/select/SummarizedSelect.cjs +384 -450
  289. package/dist/src/components/select/SummarizedSelect.cjs.map +1 -1
  290. package/dist/src/components/select/SummarizedSelect.d.ts +1 -1
  291. package/dist/src/components/select/SummarizedSelect.js +382 -450
  292. package/dist/src/components/select/SummarizedSelect.js.map +1 -1
  293. package/dist/src/components/select/SummarizedSelect.module.css.cjs +22 -21
  294. package/dist/src/components/select/SummarizedSelect.module.css.cjs.map +1 -1
  295. package/dist/src/components/select/SummarizedSelect.module.css.js +22 -29
  296. package/dist/src/components/select/SummarizedSelect.module.css.js.map +1 -1
  297. package/dist/src/components/skeleton/Skeleton.cjs +8 -7
  298. package/dist/src/components/skeleton/Skeleton.cjs.map +1 -1
  299. package/dist/src/components/skeleton/Skeleton.d.ts +1 -1
  300. package/dist/src/components/skeleton/Skeleton.js +13 -12
  301. package/dist/src/components/skeleton/Skeleton.js.map +1 -1
  302. package/dist/src/components/spinner/Spinner.cjs +27 -17
  303. package/dist/src/components/spinner/Spinner.cjs.map +1 -1
  304. package/dist/src/components/spinner/Spinner.d.ts +1 -1
  305. package/dist/src/components/spinner/Spinner.js +24 -16
  306. package/dist/src/components/spinner/Spinner.js.map +1 -1
  307. package/dist/src/components/steps/Steps.cjs +40 -57
  308. package/dist/src/components/steps/Steps.cjs.map +1 -1
  309. package/dist/src/components/steps/Steps.d.ts +1 -1
  310. package/dist/src/components/steps/Steps.js +37 -56
  311. package/dist/src/components/steps/Steps.js.map +1 -1
  312. package/dist/src/components/steps/useSteps.cjs +35 -54
  313. package/dist/src/components/steps/useSteps.cjs.map +1 -1
  314. package/dist/src/components/steps/useSteps.js +36 -55
  315. package/dist/src/components/steps/useSteps.js.map +1 -1
  316. package/dist/src/components/switch/Switch.cjs +16 -25
  317. package/dist/src/components/switch/Switch.cjs.map +1 -1
  318. package/dist/src/components/switch/Switch.d.ts +1 -1
  319. package/dist/src/components/switch/Switch.js +17 -26
  320. package/dist/src/components/switch/Switch.js.map +1 -1
  321. package/dist/src/components/table/Table.cjs +103 -109
  322. package/dist/src/components/table/Table.cjs.map +1 -1
  323. package/dist/src/components/table/Table.d.ts +3 -3
  324. package/dist/src/components/table/Table.js +102 -111
  325. package/dist/src/components/table/Table.js.map +1 -1
  326. package/dist/src/components/table/Table.module.css.cjs +10 -9
  327. package/dist/src/components/table/Table.module.css.cjs.map +1 -1
  328. package/dist/src/components/table/Table.module.css.js +10 -11
  329. package/dist/src/components/table/Table.module.css.js.map +1 -1
  330. package/dist/src/components/tabs/Tabs.cjs +12 -8
  331. package/dist/src/components/tabs/Tabs.cjs.map +1 -1
  332. package/dist/src/components/tabs/Tabs.d.ts +1 -1
  333. package/dist/src/components/tabs/Tabs.js +12 -8
  334. package/dist/src/components/tabs/Tabs.js.map +1 -1
  335. package/dist/src/components/tag/Tag.cjs +53 -73
  336. package/dist/src/components/tag/Tag.cjs.map +1 -1
  337. package/dist/src/components/tag/Tag.js +49 -56
  338. package/dist/src/components/tag/Tag.js.map +1 -1
  339. package/dist/src/components/tooltip/Tooltip.cjs +13 -12
  340. package/dist/src/components/tooltip/Tooltip.cjs.map +1 -1
  341. package/dist/src/components/tooltip/Tooltip.d.ts +1 -1
  342. package/dist/src/components/tooltip/Tooltip.js +13 -12
  343. package/dist/src/components/tooltip/Tooltip.js.map +1 -1
  344. package/dist/src/components/vennDiagram/VennDiagram.cjs +39 -50
  345. package/dist/src/components/vennDiagram/VennDiagram.cjs.map +1 -1
  346. package/dist/src/components/vennDiagram/VennDiagram.d.ts +1 -1
  347. package/dist/src/components/vennDiagram/VennDiagram.js +38 -49
  348. package/dist/src/components/vennDiagram/VennDiagram.js.map +1 -1
  349. package/dist/src/index.d.ts +5 -4
  350. package/dist/src/svgs/ProgressCircle.svg.cjs +38 -22
  351. package/dist/src/svgs/ProgressCircle.svg.cjs.map +1 -1
  352. package/dist/src/svgs/ProgressCircle.svg.js +36 -6
  353. package/dist/src/svgs/ProgressCircle.svg.js.map +1 -1
  354. package/dist/src/svgs/j2-logo-menu-collapse.svg.cjs +24 -22
  355. package/dist/src/svgs/j2-logo-menu-collapse.svg.cjs.map +1 -1
  356. package/dist/src/svgs/j2-logo-menu-collapse.svg.js +22 -6
  357. package/dist/src/svgs/j2-logo-menu-collapse.svg.js.map +1 -1
  358. package/dist/src/svgs/j2-logo-menu.svg.cjs +55 -22
  359. package/dist/src/svgs/j2-logo-menu.svg.cjs.map +1 -1
  360. package/dist/src/svgs/j2-logo-menu.svg.js +53 -6
  361. package/dist/src/svgs/j2-logo-menu.svg.js.map +1 -1
  362. package/dist/src/svgs/menu-sidebar-collapse.svg.cjs +78 -22
  363. package/dist/src/svgs/menu-sidebar-collapse.svg.cjs.map +1 -1
  364. package/dist/src/svgs/menu-sidebar-collapse.svg.js +76 -6
  365. package/dist/src/svgs/menu-sidebar-collapse.svg.js.map +1 -1
  366. package/dist/src/svgs/menu-sidebar-expand.svg.cjs +78 -22
  367. package/dist/src/svgs/menu-sidebar-expand.svg.cjs.map +1 -1
  368. package/dist/src/svgs/menu-sidebar-expand.svg.js +76 -6
  369. package/dist/src/svgs/menu-sidebar-expand.svg.js.map +1 -1
  370. package/dist/style.css +649 -624
  371. package/dist/tailwind.cjs +159 -175
  372. package/dist/tailwind.cjs.map +1 -1
  373. package/dist/tailwind.js +155 -176
  374. package/dist/tailwind.js.map +1 -1
  375. package/package.json +18 -18
  376. package/dist/index.cjs.map +0 -1
  377. package/dist/index.js.map +0 -1
@@ -1,67 +1,72 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const antd = require("antd");
5
- const cx = require("classnames");
6
- const react = require("@phosphor-icons/react");
7
- const Pagination_module = require("./Pagination.module.css.cjs");
8
- const renderIconButton = (icon, isSmall, customClassName) => /* @__PURE__ */ jsxRuntime.jsx(
9
- antd.Button,
10
- {
11
- type: "link",
12
- size: isSmall ? "small" : "middle",
13
- className: cx(customClassName, isSmall ? "!w-6" : "!w-8"),
14
- children: icon
15
- }
16
- );
17
- const renderJumpItem = (icon, doubleIcon, isSmall) => /* @__PURE__ */ jsxRuntime.jsx("a", { className: "ant-pagination-item-link", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ant-pagination-item-container", children: [
18
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ant-pagination-item-ellipsis", children: renderIconButton(icon, isSmall, Pagination_module["jump-button"]) }),
19
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ant-pagination-item-link-icon", children: renderIconButton(doubleIcon, isSmall, Pagination_module["jump-button"]) })
20
- ] }) });
21
- const buildItemRender = ({ paginationTextLabels, isSmall }) => (_page, type, element) => {
22
- if (type === "prev") {
23
- return /* @__PURE__ */ jsxRuntime.jsx("a", { children: paginationTextLabels ? "Previous" : renderIconButton(/* @__PURE__ */ jsxRuntime.jsx(react.CaretLeftIcon, {}), isSmall) });
24
- }
25
- if (type === "next") {
26
- return /* @__PURE__ */ jsxRuntime.jsx("a", { children: paginationTextLabels ? "Next" : renderIconButton(/* @__PURE__ */ jsxRuntime.jsx(react.CaretRightIcon, {}), isSmall) });
27
- }
28
- if (type === "jump-prev") {
29
- return renderJumpItem(/* @__PURE__ */ jsxRuntime.jsx(react.DotsThreeIcon, {}), /* @__PURE__ */ jsxRuntime.jsx(react.CaretDoubleLeftIcon, {}), isSmall);
30
- }
31
- if (type === "jump-next") {
32
- return renderJumpItem(
33
- /* @__PURE__ */ jsxRuntime.jsx(react.DotsThreeIcon, {}),
34
- /* @__PURE__ */ jsxRuntime.jsx(react.CaretDoubleRightIcon, {}),
35
- isSmall
36
- );
37
- }
38
- return element;
1
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
2
+ const require_Pagination_module = require("./Pagination.module.css.cjs");
3
+ let antd = require("antd");
4
+ let _phosphor_icons_react = require("@phosphor-icons/react");
5
+ let react_jsx_runtime = require("react/jsx-runtime");
6
+ let classnames = require("classnames");
7
+ classnames = require_runtime.__toESM(classnames, 1);
8
+ //#region src/components/pagination/Pagination.tsx
9
+ var renderIconButton = (icon, isSmall, customClassName) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
10
+ type: "link",
11
+ size: isSmall ? "small" : "middle",
12
+ className: (0, classnames.default)(customClassName, isSmall ? "!w-6" : "!w-8"),
13
+ children: icon
14
+ });
15
+ var renderJumpItem = (icon, doubleIcon, isSmall) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
16
+ className: "ant-pagination-item-link",
17
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18
+ className: "ant-pagination-item-container",
19
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
20
+ className: "ant-pagination-item-ellipsis",
21
+ children: renderIconButton(icon, isSmall, require_Pagination_module.default["jump-button"])
22
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
23
+ className: "ant-pagination-item-link-icon",
24
+ children: renderIconButton(doubleIcon, isSmall, require_Pagination_module.default["jump-button"])
25
+ })]
26
+ })
27
+ });
28
+ var buildItemRender = ({ paginationTextLabels, isSmall }) => (_page, type, element) => {
29
+ if (type === "prev") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", { children: paginationTextLabels ? "Previous" : renderIconButton(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_phosphor_icons_react.CaretLeftIcon, {}), isSmall) });
30
+ if (type === "next") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", { children: paginationTextLabels ? "Next" : renderIconButton(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_phosphor_icons_react.CaretRightIcon, {}), isSmall) });
31
+ if (type === "jump-prev") return renderJumpItem(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_phosphor_icons_react.DotsThreeIcon, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_phosphor_icons_react.CaretDoubleLeftIcon, {}), isSmall);
32
+ if (type === "jump-next") return renderJumpItem(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_phosphor_icons_react.DotsThreeIcon, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_phosphor_icons_react.CaretDoubleRightIcon, {}), isSmall);
33
+ return element;
39
34
  };
40
- const paginationSelectComponentClass = (selectProps) => /* @__PURE__ */ jsxRuntime.jsx(antd.Select, { ...selectProps, suffixIcon: /* @__PURE__ */ jsxRuntime.jsx(react.CaretDownIcon, {}) });
41
- const getPaginationLocale = (isSmall) => ({
42
- jump_to: `Go to ${isSmall ? ":   " : ""}`,
43
- page: isSmall ? "" : "page"
35
+ var paginationSelectComponentClass = (selectProps) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Select, {
36
+ ...selectProps,
37
+ suffixIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_phosphor_icons_react.CaretDownIcon, {})
38
+ });
39
+ var getPaginationLocale = (isSmall) => ({
40
+ jump_to: `Go to\u00A0${isSmall ? ":\xA0\xA0\xA0" : ""}`,
41
+ page: isSmall ? "" : "page"
44
42
  });
45
- const withDesignSystemPaginationOverrides = (pagination, { paginationTextLabels = false, isSmall } = {}) => {
46
- const small = isSmall ?? pagination.size === "small";
47
- return {
48
- ...pagination,
49
- locale: { ...getPaginationLocale(small), ...pagination.locale },
50
- // Keep antd in charge of visibility (including Table's filtered total).
51
- // showSizeChanger's SelectProps alternative would force it visible.
52
- selectComponentClass: paginationSelectComponentClass,
53
- itemRender: buildItemRender({
54
- paginationTextLabels,
55
- isSmall: small
56
- })
57
- };
43
+ /**
44
+ * Applies design-system overrides (Phosphor icons, locale, custom select
45
+ * chrome) to an antd Pagination config. Used by the standalone
46
+ * {@link Pagination} component, and by `<Table>`'s `pagination` prop so
47
+ * both share identical visuals.
48
+ */
49
+ var withDesignSystemPaginationOverrides = (pagination, { paginationTextLabels = false, isSmall } = {}) => {
50
+ const small = isSmall ?? pagination.size === "small";
51
+ return {
52
+ ...pagination,
53
+ locale: {
54
+ ...getPaginationLocale(small),
55
+ ...pagination.locale
56
+ },
57
+ selectComponentClass: paginationSelectComponentClass,
58
+ itemRender: buildItemRender({
59
+ paginationTextLabels,
60
+ isSmall: small
61
+ })
62
+ };
58
63
  };
59
- const Pagination = ({ paginationTextLabels = false, ...props }) => {
60
- const enriched = withDesignSystemPaginationOverrides(props, {
61
- paginationTextLabels
62
- });
63
- return /* @__PURE__ */ jsxRuntime.jsx(antd.Pagination, { ...enriched });
64
+ var Pagination = ({ paginationTextLabels = false, ...props }) => {
65
+ const enriched = withDesignSystemPaginationOverrides(props, { paginationTextLabels });
66
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Pagination, { ...enriched });
64
67
  };
68
+ //#endregion
65
69
  exports.Pagination = Pagination;
66
70
  exports.withDesignSystemPaginationOverrides = withDesignSystemPaginationOverrides;
67
- //# sourceMappingURL=Pagination.cjs.map
71
+
72
+ //# sourceMappingURL=Pagination.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.cjs","sources":["../../../../src/components/pagination/Pagination.tsx"],"sourcesContent":["import {\n Pagination as AntdPagination,\n PaginationProps,\n Button,\n Select,\n SelectProps,\n} from 'antd'\nimport cx from 'classnames'\nimport {\n CaretLeftIcon,\n CaretRightIcon,\n CaretDownIcon,\n DotsThreeIcon,\n CaretDoubleLeftIcon,\n CaretDoubleRightIcon,\n} from '@phosphor-icons/react'\n\nimport s from './Pagination.module.css'\n\ntype Overrides = {\n paginationTextLabels?: boolean\n /** Forces small-size rendering independent of the config's own `size`. */\n isSmall?: boolean\n}\n\ntype Props = Expand<PaginationProps & { paginationTextLabels?: boolean }>\n\nconst renderIconButton = (\n icon: React.ReactNode,\n isSmall: boolean,\n customClassName?: string\n) => (\n <Button\n type=\"link\"\n size={isSmall ? 'small' : 'middle'}\n className={cx(customClassName, isSmall ? '!w-6' : '!w-8')}\n >\n {icon}\n </Button>\n)\n\nconst renderJumpItem = (\n icon: React.ReactNode,\n doubleIcon: React.ReactNode,\n isSmall: boolean\n) => (\n <a className=\"ant-pagination-item-link\">\n <div className=\"ant-pagination-item-container\">\n <span className=\"ant-pagination-item-ellipsis\">\n {renderIconButton(icon, isSmall, s['jump-button'])}\n </span>\n <span className=\"ant-pagination-item-link-icon\">\n {renderIconButton(doubleIcon, isSmall, s['jump-button'])}\n </span>\n </div>\n </a>\n)\n\nconst buildItemRender =\n ({ paginationTextLabels, isSmall }: Required<Overrides>) =>\n (\n _page: number,\n type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next',\n element: React.ReactNode\n ) => {\n if (type === 'prev') {\n return (\n <a>\n {paginationTextLabels\n ? 'Previous'\n : renderIconButton(<CaretLeftIcon />, isSmall)}\n </a>\n )\n }\n if (type === 'next') {\n return (\n <a>\n {paginationTextLabels\n ? 'Next'\n : renderIconButton(<CaretRightIcon />, isSmall)}\n </a>\n )\n }\n if (type === 'jump-prev') {\n return renderJumpItem(<DotsThreeIcon />, <CaretDoubleLeftIcon />, isSmall)\n }\n if (type === 'jump-next') {\n return renderJumpItem(\n <DotsThreeIcon />,\n <CaretDoubleRightIcon />,\n isSmall\n )\n }\n return element\n }\n\nconst paginationSelectComponentClass = (selectProps: SelectProps) => (\n <Select {...selectProps} suffixIcon={<CaretDownIcon />} />\n)\n\nconst getPaginationLocale = (isSmall: boolean) => ({\n jump_to: `Go to\\u00A0${isSmall ? ':\\u00A0\\u00A0\\u00A0' : ''}`,\n page: isSmall ? '' : 'page',\n})\n\n/**\n * Applies design-system overrides (Phosphor icons, locale, custom select\n * chrome) to an antd Pagination config. Used by the standalone\n * {@link Pagination} component, and by `<Table>`'s `pagination` prop so\n * both share identical visuals.\n */\nexport const withDesignSystemPaginationOverrides = (\n pagination: PaginationProps,\n { paginationTextLabels = false, isSmall }: Overrides = {}\n): PaginationProps => {\n const small = isSmall ?? pagination.size === 'small'\n return {\n ...pagination,\n locale: { ...getPaginationLocale(small), ...pagination.locale },\n // Keep antd in charge of visibility (including Table's filtered total).\n // showSizeChanger's SelectProps alternative would force it visible.\n selectComponentClass: paginationSelectComponentClass,\n itemRender: buildItemRender({\n paginationTextLabels,\n isSmall: small,\n }),\n }\n}\n\nconst Pagination = ({ paginationTextLabels = false, ...props }: Props) => {\n const enriched = withDesignSystemPaginationOverrides(props, {\n paginationTextLabels,\n })\n return <AntdPagination {...enriched} />\n}\n\nexport { Pagination }\n"],"names":["jsx","Button","jsxs","s","CaretLeftIcon","CaretRightIcon","DotsThreeIcon","CaretDoubleLeftIcon","CaretDoubleRightIcon","Select","CaretDownIcon","AntdPagination"],"mappings":";;;;;;;AA2BA,MAAM,mBAAmB,CACvB,MACA,SACA,oBAEAA,2BAAAA;AAAAA,EAACC,KAAAA;AAAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,MAAM,UAAU,UAAU;AAAA,IAC1B,WAAW,GAAG,iBAAiB,UAAU,SAAS,MAAM;AAAA,IAEvD,UAAA;AAAA,EAAA;AACH;AAGF,MAAM,iBAAiB,CACrB,MACA,YACA,YAEAD,2BAAAA,IAAC,KAAA,EAAE,WAAU,4BACX,UAAAE,2BAAAA,KAAC,OAAA,EAAI,WAAU,iCACb,UAAA;AAAA,EAAAF,2BAAAA,IAAC,QAAA,EAAK,WAAU,gCACb,UAAA,iBAAiB,MAAM,SAASG,kBAAE,aAAa,CAAC,EAAA,CACnD;AAAA,EACAH,2BAAAA,IAAC,QAAA,EAAK,WAAU,iCACb,UAAA,iBAAiB,YAAY,SAASG,kBAAE,aAAa,CAAC,EAAA,CACzD;AAAA,EAAA,CACF,EAAA,CACF;AAGF,MAAM,kBACJ,CAAC,EAAE,sBAAsB,cACzB,CACE,OACA,MACA,YACG;AACH,MAAI,SAAS,QAAQ;AACnB,WACEH,2BAAAA,IAAC,OACE,UAAA,uBACG,aACA,iBAAiBA,2BAAAA,IAACI,MAAAA,eAAA,CAAA,CAAc,GAAI,OAAO,EAAA,CACjD;AAAA,EAEJ;AACA,MAAI,SAAS,QAAQ;AACnB,WACEJ,2BAAAA,IAAC,OACE,UAAA,uBACG,SACA,iBAAiBA,2BAAAA,IAACK,MAAAA,gBAAA,CAAA,CAAe,GAAI,OAAO,EAAA,CAClD;AAAA,EAEJ;AACA,MAAI,SAAS,aAAa;AACxB,WAAO,eAAeL,+BAACM,MAAAA,eAAA,CAAA,CAAc,GAAIN,2BAAAA,IAACO,MAAAA,qBAAA,EAAoB,GAAI,OAAO;AAAA,EAC3E;AACA,MAAI,SAAS,aAAa;AACxB,WAAO;AAAA,qCACJD,MAAAA,eAAA,EAAc;AAAA,qCACdE,MAAAA,sBAAA,EAAqB;AAAA,MACtB;AAAA,IAAA;AAAA,EAEJ;AACA,SAAO;AACT;AAEF,MAAM,iCAAiC,CAAC,gBACtCR,2BAAAA,IAACS,KAAAA,QAAA,EAAQ,GAAG,aAAa,YAAYT,2BAAAA,IAACU,qBAAA,CAAA,CAAc,EAAA,CAAI;AAG1D,MAAM,sBAAsB,CAAC,aAAsB;AAAA,EACjD,SAAS,SAAc,UAAU,SAAwB,EAAE;AAAA,EAC3D,MAAM,UAAU,KAAK;AACvB;AAQO,MAAM,sCAAsC,CACjD,YACA,EAAE,uBAAuB,OAAO,QAAA,IAAuB,OACnC;AACpB,QAAM,QAAQ,WAAW,WAAW,SAAS;AAC7C,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ,EAAE,GAAG,oBAAoB,KAAK,GAAG,GAAG,WAAW,OAAA;AAAA;AAAA;AAAA,IAGvD,sBAAsB;AAAA,IACtB,YAAY,gBAAgB;AAAA,MAC1B;AAAA,MACA,SAAS;AAAA,IAAA,CACV;AAAA,EAAA;AAEL;AAEA,MAAM,aAAa,CAAC,EAAE,uBAAuB,OAAO,GAAG,YAAmB;AACxE,QAAM,WAAW,oCAAoC,OAAO;AAAA,IAC1D;AAAA,EAAA,CACD;AACD,SAAOV,+BAACW,KAAAA,YAAA,EAAgB,GAAG,SAAA,CAAU;AACvC;;;"}
1
+ {"version":3,"file":"Pagination.cjs","names":["Button","cx","s","CaretLeftIcon","CaretRightIcon","DotsThreeIcon","CaretDoubleLeftIcon","CaretDoubleRightIcon","Select","CaretDownIcon","AntdPagination"],"sources":["../../../../src/components/pagination/Pagination.tsx"],"sourcesContent":["import {\n Pagination as AntdPagination,\n PaginationProps,\n Button,\n Select,\n SelectProps,\n} from 'antd'\nimport cx from 'classnames'\nimport {\n CaretLeftIcon,\n CaretRightIcon,\n CaretDownIcon,\n DotsThreeIcon,\n CaretDoubleLeftIcon,\n CaretDoubleRightIcon,\n} from '@phosphor-icons/react'\n\nimport s from './Pagination.module.css'\n\ntype Overrides = {\n paginationTextLabels?: boolean\n /** Forces small-size rendering independent of the config's own `size`. */\n isSmall?: boolean\n}\n\ntype Props = Expand<PaginationProps & { paginationTextLabels?: boolean }>\n\nconst renderIconButton = (\n icon: React.ReactNode,\n isSmall: boolean,\n customClassName?: string\n) => (\n <Button\n type=\"link\"\n size={isSmall ? 'small' : 'middle'}\n className={cx(customClassName, isSmall ? '!w-6' : '!w-8')}\n >\n {icon}\n </Button>\n)\n\nconst renderJumpItem = (\n icon: React.ReactNode,\n doubleIcon: React.ReactNode,\n isSmall: boolean\n) => (\n <a className=\"ant-pagination-item-link\">\n <div className=\"ant-pagination-item-container\">\n <span className=\"ant-pagination-item-ellipsis\">\n {renderIconButton(icon, isSmall, s['jump-button'])}\n </span>\n <span className=\"ant-pagination-item-link-icon\">\n {renderIconButton(doubleIcon, isSmall, s['jump-button'])}\n </span>\n </div>\n </a>\n)\n\nconst buildItemRender =\n ({ paginationTextLabels, isSmall }: Required<Overrides>) =>\n (\n _page: number,\n type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next',\n element: React.ReactNode\n ) => {\n if (type === 'prev') {\n return (\n <a>\n {paginationTextLabels\n ? 'Previous'\n : renderIconButton(<CaretLeftIcon />, isSmall)}\n </a>\n )\n }\n if (type === 'next') {\n return (\n <a>\n {paginationTextLabels\n ? 'Next'\n : renderIconButton(<CaretRightIcon />, isSmall)}\n </a>\n )\n }\n if (type === 'jump-prev') {\n return renderJumpItem(<DotsThreeIcon />, <CaretDoubleLeftIcon />, isSmall)\n }\n if (type === 'jump-next') {\n return renderJumpItem(\n <DotsThreeIcon />,\n <CaretDoubleRightIcon />,\n isSmall\n )\n }\n return element\n }\n\nconst paginationSelectComponentClass = (selectProps: SelectProps) => (\n <Select {...selectProps} suffixIcon={<CaretDownIcon />} />\n)\n\nconst getPaginationLocale = (isSmall: boolean) => ({\n jump_to: `Go to\\u00A0${isSmall ? ':\\u00A0\\u00A0\\u00A0' : ''}`,\n page: isSmall ? '' : 'page',\n})\n\n/**\n * Applies design-system overrides (Phosphor icons, locale, custom select\n * chrome) to an antd Pagination config. Used by the standalone\n * {@link Pagination} component, and by `<Table>`'s `pagination` prop so\n * both share identical visuals.\n */\nexport const withDesignSystemPaginationOverrides = (\n pagination: PaginationProps,\n { paginationTextLabels = false, isSmall }: Overrides = {}\n): PaginationProps => {\n const small = isSmall ?? pagination.size === 'small'\n return {\n ...pagination,\n locale: { ...getPaginationLocale(small), ...pagination.locale },\n // Keep antd in charge of visibility (including Table's filtered total).\n // showSizeChanger's SelectProps alternative would force it visible.\n selectComponentClass: paginationSelectComponentClass,\n itemRender: buildItemRender({\n paginationTextLabels,\n isSmall: small,\n }),\n }\n}\n\nconst Pagination = ({ paginationTextLabels = false, ...props }: Props) => {\n const enriched = withDesignSystemPaginationOverrides(props, {\n paginationTextLabels,\n })\n return <AntdPagination {...enriched} />\n}\n\nexport { Pagination }\n"],"mappings":";;;;;;;;AA2BA,IAAM,oBACJ,MACA,SACA,oBAEA,iBAAA,GAAA,kBAAA,IAAA,CAACA,KAAAA,QAAD;CACE,MAAK;CACL,MAAM,UAAU,UAAU;CAC1B,YAAA,GAAWC,WAAAA,QAAAA,CAAG,iBAAiB,UAAU,SAAS,MAAM;CAEvD,UAAA;AACK,CAAA;AAGV,IAAM,kBACJ,MACA,YACA,YAEA,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;CAAG,WAAU;CACX,UAAA,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;GAAM,WAAU;GACb,UAAA,iBAAiB,MAAM,SAASC,0BAAAA,QAAE,cAAc;EAC7C,CAAA,GACN,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;GAAM,WAAU;GACb,UAAA,iBAAiB,YAAY,SAASA,0BAAAA,QAAE,cAAc;EACnD,CAAA,CACH;;AACJ,CAAA;AAGL,IAAM,mBACH,EAAE,sBAAsB,eAEvB,OACA,MACA,YACG;CACH,IAAI,SAAS,QACX,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD,EAAA,UACG,uBACG,aACA,iBAAiB,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,eAAD,CAAgB,CAAA,GAAG,OAAO,EAC9C,CAAA;CAGP,IAAI,SAAS,QACX,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD,EAAA,UACG,uBACG,SACA,iBAAiB,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,gBAAD,CAAiB,CAAA,GAAG,OAAO,EAC/C,CAAA;CAGP,IAAI,SAAS,aACX,OAAO,eAAe,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,eAAD,CAAgB,CAAA,GAAG,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,qBAAD,CAAsB,CAAA,GAAG,OAAO;CAE3E,IAAI,SAAS,aACX,OAAO,eACL,iBAAA,GAAA,kBAAA,IAAA,CAACD,sBAAAA,eAAD,CAAgB,CAAA,GAChB,iBAAA,GAAA,kBAAA,IAAA,CAACE,sBAAAA,sBAAD,CAAuB,CAAA,GACvB,OACF;CAEF,OAAO;AACT;AAEF,IAAM,kCAAkC,gBACtC,iBAAA,GAAA,kBAAA,IAAA,CAACC,KAAAA,QAAD;CAAQ,GAAI;CAAa,YAAY,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,eAAD,CAAgB,CAAA;AAAI,CAAA;AAG3D,IAAM,uBAAuB,aAAsB;CACjD,SAAS,cAAc,UAAU,kBAAwB;CACzD,MAAM,UAAU,KAAK;AACvB;;;;;;;AAQA,IAAa,uCACX,YACA,EAAE,uBAAuB,OAAO,YAAuB,CAAC,MACpC;CACpB,MAAM,QAAQ,WAAW,WAAW,SAAS;CAC7C,OAAO;EACL,GAAG;EACH,QAAQ;GAAE,GAAG,oBAAoB,KAAK;GAAG,GAAG,WAAW;EAAO;EAG9D,sBAAsB;EACtB,YAAY,gBAAgB;GAC1B;GACA,SAAS;EACX,CAAC;CACH;AACF;AAEA,IAAM,cAAc,EAAE,uBAAuB,OAAO,GAAG,YAAmB;CACxE,MAAM,WAAW,oCAAoC,OAAO,EAC1D,qBACF,CAAC;CACD,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAACC,KAAAA,YAAD,EAAgB,GAAI,SAAW,CAAA;AACxC"}
@@ -14,5 +14,5 @@ type Props = Expand<PaginationProps & {
14
14
  * both share identical visuals.
15
15
  */
16
16
  export declare const withDesignSystemPaginationOverrides: (pagination: PaginationProps, { paginationTextLabels, isSmall }?: Overrides) => PaginationProps;
17
- declare const Pagination: ({ paginationTextLabels, ...props }: Props) => import("react").JSX.Element;
17
+ declare const Pagination: ({ paginationTextLabels, ...props }: Props) => import('react').JSX.Element;
18
18
  export { Pagination };
@@ -1,67 +1,69 @@
1
+ import Pagination_module_default from "./Pagination.module.css.js";
2
+ import { Button, Pagination, Select } from "antd";
3
+ import { CaretDoubleLeftIcon, CaretDoubleRightIcon, CaretDownIcon, CaretLeftIcon, CaretRightIcon, DotsThreeIcon } from "@phosphor-icons/react";
1
4
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Pagination as Pagination$1, Select, Button } from "antd";
3
5
  import cx from "classnames";
4
- import { CaretDownIcon, CaretLeftIcon, CaretRightIcon, CaretDoubleLeftIcon, DotsThreeIcon, CaretDoubleRightIcon } from "@phosphor-icons/react";
5
- import s from "./Pagination.module.css.js";
6
- const renderIconButton = (icon, isSmall, customClassName) => /* @__PURE__ */ jsx(
7
- Button,
8
- {
9
- type: "link",
10
- size: isSmall ? "small" : "middle",
11
- className: cx(customClassName, isSmall ? "!w-6" : "!w-8"),
12
- children: icon
13
- }
14
- );
15
- const renderJumpItem = (icon, doubleIcon, isSmall) => /* @__PURE__ */ jsx("a", { className: "ant-pagination-item-link", children: /* @__PURE__ */ jsxs("div", { className: "ant-pagination-item-container", children: [
16
- /* @__PURE__ */ jsx("span", { className: "ant-pagination-item-ellipsis", children: renderIconButton(icon, isSmall, s["jump-button"]) }),
17
- /* @__PURE__ */ jsx("span", { className: "ant-pagination-item-link-icon", children: renderIconButton(doubleIcon, isSmall, s["jump-button"]) })
18
- ] }) });
19
- const buildItemRender = ({ paginationTextLabels, isSmall }) => (_page, type, element) => {
20
- if (type === "prev") {
21
- return /* @__PURE__ */ jsx("a", { children: paginationTextLabels ? "Previous" : renderIconButton(/* @__PURE__ */ jsx(CaretLeftIcon, {}), isSmall) });
22
- }
23
- if (type === "next") {
24
- return /* @__PURE__ */ jsx("a", { children: paginationTextLabels ? "Next" : renderIconButton(/* @__PURE__ */ jsx(CaretRightIcon, {}), isSmall) });
25
- }
26
- if (type === "jump-prev") {
27
- return renderJumpItem(/* @__PURE__ */ jsx(DotsThreeIcon, {}), /* @__PURE__ */ jsx(CaretDoubleLeftIcon, {}), isSmall);
28
- }
29
- if (type === "jump-next") {
30
- return renderJumpItem(
31
- /* @__PURE__ */ jsx(DotsThreeIcon, {}),
32
- /* @__PURE__ */ jsx(CaretDoubleRightIcon, {}),
33
- isSmall
34
- );
35
- }
36
- return element;
37
- };
38
- const paginationSelectComponentClass = (selectProps) => /* @__PURE__ */ jsx(Select, { ...selectProps, suffixIcon: /* @__PURE__ */ jsx(CaretDownIcon, {}) });
39
- const getPaginationLocale = (isSmall) => ({
40
- jump_to: `Go to ${isSmall ? ":   " : ""}`,
41
- page: isSmall ? "" : "page"
6
+ //#region src/components/pagination/Pagination.tsx
7
+ var renderIconButton = (icon, isSmall, customClassName) => /* @__PURE__ */ jsx(Button, {
8
+ type: "link",
9
+ size: isSmall ? "small" : "middle",
10
+ className: cx(customClassName, isSmall ? "!w-6" : "!w-8"),
11
+ children: icon
12
+ });
13
+ var renderJumpItem = (icon, doubleIcon, isSmall) => /* @__PURE__ */ jsx("a", {
14
+ className: "ant-pagination-item-link",
15
+ children: /* @__PURE__ */ jsxs("div", {
16
+ className: "ant-pagination-item-container",
17
+ children: [/* @__PURE__ */ jsx("span", {
18
+ className: "ant-pagination-item-ellipsis",
19
+ children: renderIconButton(icon, isSmall, Pagination_module_default["jump-button"])
20
+ }), /* @__PURE__ */ jsx("span", {
21
+ className: "ant-pagination-item-link-icon",
22
+ children: renderIconButton(doubleIcon, isSmall, Pagination_module_default["jump-button"])
23
+ })]
24
+ })
42
25
  });
43
- const withDesignSystemPaginationOverrides = (pagination, { paginationTextLabels = false, isSmall } = {}) => {
44
- const small = isSmall ?? pagination.size === "small";
45
- return {
46
- ...pagination,
47
- locale: { ...getPaginationLocale(small), ...pagination.locale },
48
- // Keep antd in charge of visibility (including Table's filtered total).
49
- // showSizeChanger's SelectProps alternative would force it visible.
50
- selectComponentClass: paginationSelectComponentClass,
51
- itemRender: buildItemRender({
52
- paginationTextLabels,
53
- isSmall: small
54
- })
55
- };
26
+ var buildItemRender = ({ paginationTextLabels, isSmall }) => (_page, type, element) => {
27
+ if (type === "prev") return /* @__PURE__ */ jsx("a", { children: paginationTextLabels ? "Previous" : renderIconButton(/* @__PURE__ */ jsx(CaretLeftIcon, {}), isSmall) });
28
+ if (type === "next") return /* @__PURE__ */ jsx("a", { children: paginationTextLabels ? "Next" : renderIconButton(/* @__PURE__ */ jsx(CaretRightIcon, {}), isSmall) });
29
+ if (type === "jump-prev") return renderJumpItem(/* @__PURE__ */ jsx(DotsThreeIcon, {}), /* @__PURE__ */ jsx(CaretDoubleLeftIcon, {}), isSmall);
30
+ if (type === "jump-next") return renderJumpItem(/* @__PURE__ */ jsx(DotsThreeIcon, {}), /* @__PURE__ */ jsx(CaretDoubleRightIcon, {}), isSmall);
31
+ return element;
56
32
  };
57
- const Pagination = ({ paginationTextLabels = false, ...props }) => {
58
- const enriched = withDesignSystemPaginationOverrides(props, {
59
- paginationTextLabels
60
- });
61
- return /* @__PURE__ */ jsx(Pagination$1, { ...enriched });
33
+ var paginationSelectComponentClass = (selectProps) => /* @__PURE__ */ jsx(Select, {
34
+ ...selectProps,
35
+ suffixIcon: /* @__PURE__ */ jsx(CaretDownIcon, {})
36
+ });
37
+ var getPaginationLocale = (isSmall) => ({
38
+ jump_to: `Go to\u00A0${isSmall ? ":\xA0\xA0\xA0" : ""}`,
39
+ page: isSmall ? "" : "page"
40
+ });
41
+ /**
42
+ * Applies design-system overrides (Phosphor icons, locale, custom select
43
+ * chrome) to an antd Pagination config. Used by the standalone
44
+ * {@link Pagination} component, and by `<Table>`'s `pagination` prop so
45
+ * both share identical visuals.
46
+ */
47
+ var withDesignSystemPaginationOverrides = (pagination, { paginationTextLabels = false, isSmall } = {}) => {
48
+ const small = isSmall ?? pagination.size === "small";
49
+ return {
50
+ ...pagination,
51
+ locale: {
52
+ ...getPaginationLocale(small),
53
+ ...pagination.locale
54
+ },
55
+ selectComponentClass: paginationSelectComponentClass,
56
+ itemRender: buildItemRender({
57
+ paginationTextLabels,
58
+ isSmall: small
59
+ })
60
+ };
62
61
  };
63
- export {
64
- Pagination,
65
- withDesignSystemPaginationOverrides
62
+ var Pagination$1 = ({ paginationTextLabels = false, ...props }) => {
63
+ const enriched = withDesignSystemPaginationOverrides(props, { paginationTextLabels });
64
+ return /* @__PURE__ */ jsx(Pagination, { ...enriched });
66
65
  };
67
- //# sourceMappingURL=Pagination.js.map
66
+ //#endregion
67
+ export { Pagination$1 as Pagination, withDesignSystemPaginationOverrides };
68
+
69
+ //# sourceMappingURL=Pagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.js","sources":["../../../../src/components/pagination/Pagination.tsx"],"sourcesContent":["import {\n Pagination as AntdPagination,\n PaginationProps,\n Button,\n Select,\n SelectProps,\n} from 'antd'\nimport cx from 'classnames'\nimport {\n CaretLeftIcon,\n CaretRightIcon,\n CaretDownIcon,\n DotsThreeIcon,\n CaretDoubleLeftIcon,\n CaretDoubleRightIcon,\n} from '@phosphor-icons/react'\n\nimport s from './Pagination.module.css'\n\ntype Overrides = {\n paginationTextLabels?: boolean\n /** Forces small-size rendering independent of the config's own `size`. */\n isSmall?: boolean\n}\n\ntype Props = Expand<PaginationProps & { paginationTextLabels?: boolean }>\n\nconst renderIconButton = (\n icon: React.ReactNode,\n isSmall: boolean,\n customClassName?: string\n) => (\n <Button\n type=\"link\"\n size={isSmall ? 'small' : 'middle'}\n className={cx(customClassName, isSmall ? '!w-6' : '!w-8')}\n >\n {icon}\n </Button>\n)\n\nconst renderJumpItem = (\n icon: React.ReactNode,\n doubleIcon: React.ReactNode,\n isSmall: boolean\n) => (\n <a className=\"ant-pagination-item-link\">\n <div className=\"ant-pagination-item-container\">\n <span className=\"ant-pagination-item-ellipsis\">\n {renderIconButton(icon, isSmall, s['jump-button'])}\n </span>\n <span className=\"ant-pagination-item-link-icon\">\n {renderIconButton(doubleIcon, isSmall, s['jump-button'])}\n </span>\n </div>\n </a>\n)\n\nconst buildItemRender =\n ({ paginationTextLabels, isSmall }: Required<Overrides>) =>\n (\n _page: number,\n type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next',\n element: React.ReactNode\n ) => {\n if (type === 'prev') {\n return (\n <a>\n {paginationTextLabels\n ? 'Previous'\n : renderIconButton(<CaretLeftIcon />, isSmall)}\n </a>\n )\n }\n if (type === 'next') {\n return (\n <a>\n {paginationTextLabels\n ? 'Next'\n : renderIconButton(<CaretRightIcon />, isSmall)}\n </a>\n )\n }\n if (type === 'jump-prev') {\n return renderJumpItem(<DotsThreeIcon />, <CaretDoubleLeftIcon />, isSmall)\n }\n if (type === 'jump-next') {\n return renderJumpItem(\n <DotsThreeIcon />,\n <CaretDoubleRightIcon />,\n isSmall\n )\n }\n return element\n }\n\nconst paginationSelectComponentClass = (selectProps: SelectProps) => (\n <Select {...selectProps} suffixIcon={<CaretDownIcon />} />\n)\n\nconst getPaginationLocale = (isSmall: boolean) => ({\n jump_to: `Go to\\u00A0${isSmall ? ':\\u00A0\\u00A0\\u00A0' : ''}`,\n page: isSmall ? '' : 'page',\n})\n\n/**\n * Applies design-system overrides (Phosphor icons, locale, custom select\n * chrome) to an antd Pagination config. Used by the standalone\n * {@link Pagination} component, and by `<Table>`'s `pagination` prop so\n * both share identical visuals.\n */\nexport const withDesignSystemPaginationOverrides = (\n pagination: PaginationProps,\n { paginationTextLabels = false, isSmall }: Overrides = {}\n): PaginationProps => {\n const small = isSmall ?? pagination.size === 'small'\n return {\n ...pagination,\n locale: { ...getPaginationLocale(small), ...pagination.locale },\n // Keep antd in charge of visibility (including Table's filtered total).\n // showSizeChanger's SelectProps alternative would force it visible.\n selectComponentClass: paginationSelectComponentClass,\n itemRender: buildItemRender({\n paginationTextLabels,\n isSmall: small,\n }),\n }\n}\n\nconst Pagination = ({ paginationTextLabels = false, ...props }: Props) => {\n const enriched = withDesignSystemPaginationOverrides(props, {\n paginationTextLabels,\n })\n return <AntdPagination {...enriched} />\n}\n\nexport { Pagination }\n"],"names":["AntdPagination"],"mappings":";;;;;AA2BA,MAAM,mBAAmB,CACvB,MACA,SACA,oBAEA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,MAAM,UAAU,UAAU;AAAA,IAC1B,WAAW,GAAG,iBAAiB,UAAU,SAAS,MAAM;AAAA,IAEvD,UAAA;AAAA,EAAA;AACH;AAGF,MAAM,iBAAiB,CACrB,MACA,YACA,YAEA,oBAAC,KAAA,EAAE,WAAU,4BACX,UAAA,qBAAC,OAAA,EAAI,WAAU,iCACb,UAAA;AAAA,EAAA,oBAAC,QAAA,EAAK,WAAU,gCACb,UAAA,iBAAiB,MAAM,SAAS,EAAE,aAAa,CAAC,EAAA,CACnD;AAAA,EACA,oBAAC,QAAA,EAAK,WAAU,iCACb,UAAA,iBAAiB,YAAY,SAAS,EAAE,aAAa,CAAC,EAAA,CACzD;AAAA,EAAA,CACF,EAAA,CACF;AAGF,MAAM,kBACJ,CAAC,EAAE,sBAAsB,cACzB,CACE,OACA,MACA,YACG;AACH,MAAI,SAAS,QAAQ;AACnB,WACE,oBAAC,OACE,UAAA,uBACG,aACA,iBAAiB,oBAAC,eAAA,CAAA,CAAc,GAAI,OAAO,EAAA,CACjD;AAAA,EAEJ;AACA,MAAI,SAAS,QAAQ;AACnB,WACE,oBAAC,OACE,UAAA,uBACG,SACA,iBAAiB,oBAAC,gBAAA,CAAA,CAAe,GAAI,OAAO,EAAA,CAClD;AAAA,EAEJ;AACA,MAAI,SAAS,aAAa;AACxB,WAAO,eAAe,oBAAC,eAAA,CAAA,CAAc,GAAI,oBAAC,qBAAA,EAAoB,GAAI,OAAO;AAAA,EAC3E;AACA,MAAI,SAAS,aAAa;AACxB,WAAO;AAAA,0BACJ,eAAA,EAAc;AAAA,0BACd,sBAAA,EAAqB;AAAA,MACtB;AAAA,IAAA;AAAA,EAEJ;AACA,SAAO;AACT;AAEF,MAAM,iCAAiC,CAAC,gBACtC,oBAAC,QAAA,EAAQ,GAAG,aAAa,YAAY,oBAAC,eAAA,CAAA,CAAc,EAAA,CAAI;AAG1D,MAAM,sBAAsB,CAAC,aAAsB;AAAA,EACjD,SAAS,SAAc,UAAU,SAAwB,EAAE;AAAA,EAC3D,MAAM,UAAU,KAAK;AACvB;AAQO,MAAM,sCAAsC,CACjD,YACA,EAAE,uBAAuB,OAAO,QAAA,IAAuB,OACnC;AACpB,QAAM,QAAQ,WAAW,WAAW,SAAS;AAC7C,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ,EAAE,GAAG,oBAAoB,KAAK,GAAG,GAAG,WAAW,OAAA;AAAA;AAAA;AAAA,IAGvD,sBAAsB;AAAA,IACtB,YAAY,gBAAgB;AAAA,MAC1B;AAAA,MACA,SAAS;AAAA,IAAA,CACV;AAAA,EAAA;AAEL;AAEA,MAAM,aAAa,CAAC,EAAE,uBAAuB,OAAO,GAAG,YAAmB;AACxE,QAAM,WAAW,oCAAoC,OAAO;AAAA,IAC1D;AAAA,EAAA,CACD;AACD,SAAO,oBAACA,cAAA,EAAgB,GAAG,SAAA,CAAU;AACvC;"}
1
+ {"version":3,"file":"Pagination.js","names":["s","Pagination","AntdPagination"],"sources":["../../../../src/components/pagination/Pagination.tsx"],"sourcesContent":["import {\n Pagination as AntdPagination,\n PaginationProps,\n Button,\n Select,\n SelectProps,\n} from 'antd'\nimport cx from 'classnames'\nimport {\n CaretLeftIcon,\n CaretRightIcon,\n CaretDownIcon,\n DotsThreeIcon,\n CaretDoubleLeftIcon,\n CaretDoubleRightIcon,\n} from '@phosphor-icons/react'\n\nimport s from './Pagination.module.css'\n\ntype Overrides = {\n paginationTextLabels?: boolean\n /** Forces small-size rendering independent of the config's own `size`. */\n isSmall?: boolean\n}\n\ntype Props = Expand<PaginationProps & { paginationTextLabels?: boolean }>\n\nconst renderIconButton = (\n icon: React.ReactNode,\n isSmall: boolean,\n customClassName?: string\n) => (\n <Button\n type=\"link\"\n size={isSmall ? 'small' : 'middle'}\n className={cx(customClassName, isSmall ? '!w-6' : '!w-8')}\n >\n {icon}\n </Button>\n)\n\nconst renderJumpItem = (\n icon: React.ReactNode,\n doubleIcon: React.ReactNode,\n isSmall: boolean\n) => (\n <a className=\"ant-pagination-item-link\">\n <div className=\"ant-pagination-item-container\">\n <span className=\"ant-pagination-item-ellipsis\">\n {renderIconButton(icon, isSmall, s['jump-button'])}\n </span>\n <span className=\"ant-pagination-item-link-icon\">\n {renderIconButton(doubleIcon, isSmall, s['jump-button'])}\n </span>\n </div>\n </a>\n)\n\nconst buildItemRender =\n ({ paginationTextLabels, isSmall }: Required<Overrides>) =>\n (\n _page: number,\n type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next',\n element: React.ReactNode\n ) => {\n if (type === 'prev') {\n return (\n <a>\n {paginationTextLabels\n ? 'Previous'\n : renderIconButton(<CaretLeftIcon />, isSmall)}\n </a>\n )\n }\n if (type === 'next') {\n return (\n <a>\n {paginationTextLabels\n ? 'Next'\n : renderIconButton(<CaretRightIcon />, isSmall)}\n </a>\n )\n }\n if (type === 'jump-prev') {\n return renderJumpItem(<DotsThreeIcon />, <CaretDoubleLeftIcon />, isSmall)\n }\n if (type === 'jump-next') {\n return renderJumpItem(\n <DotsThreeIcon />,\n <CaretDoubleRightIcon />,\n isSmall\n )\n }\n return element\n }\n\nconst paginationSelectComponentClass = (selectProps: SelectProps) => (\n <Select {...selectProps} suffixIcon={<CaretDownIcon />} />\n)\n\nconst getPaginationLocale = (isSmall: boolean) => ({\n jump_to: `Go to\\u00A0${isSmall ? ':\\u00A0\\u00A0\\u00A0' : ''}`,\n page: isSmall ? '' : 'page',\n})\n\n/**\n * Applies design-system overrides (Phosphor icons, locale, custom select\n * chrome) to an antd Pagination config. Used by the standalone\n * {@link Pagination} component, and by `<Table>`'s `pagination` prop so\n * both share identical visuals.\n */\nexport const withDesignSystemPaginationOverrides = (\n pagination: PaginationProps,\n { paginationTextLabels = false, isSmall }: Overrides = {}\n): PaginationProps => {\n const small = isSmall ?? pagination.size === 'small'\n return {\n ...pagination,\n locale: { ...getPaginationLocale(small), ...pagination.locale },\n // Keep antd in charge of visibility (including Table's filtered total).\n // showSizeChanger's SelectProps alternative would force it visible.\n selectComponentClass: paginationSelectComponentClass,\n itemRender: buildItemRender({\n paginationTextLabels,\n isSmall: small,\n }),\n }\n}\n\nconst Pagination = ({ paginationTextLabels = false, ...props }: Props) => {\n const enriched = withDesignSystemPaginationOverrides(props, {\n paginationTextLabels,\n })\n return <AntdPagination {...enriched} />\n}\n\nexport { Pagination }\n"],"mappings":";;;;;;AA2BA,IAAM,oBACJ,MACA,SACA,oBAEA,oBAAC,QAAD;CACE,MAAK;CACL,MAAM,UAAU,UAAU;CAC1B,WAAW,GAAG,iBAAiB,UAAU,SAAS,MAAM;CAEvD,UAAA;AACK,CAAA;AAGV,IAAM,kBACJ,MACA,YACA,YAEA,oBAAC,KAAD;CAAG,WAAU;CACX,UAAA,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,oBAAC,QAAD;GAAM,WAAU;GACb,UAAA,iBAAiB,MAAM,SAASA,0BAAE,cAAc;EAC7C,CAAA,GACN,oBAAC,QAAD;GAAM,WAAU;GACb,UAAA,iBAAiB,YAAY,SAASA,0BAAE,cAAc;EACnD,CAAA,CACH;;AACJ,CAAA;AAGL,IAAM,mBACH,EAAE,sBAAsB,eAEvB,OACA,MACA,YACG;CACH,IAAI,SAAS,QACX,OACE,oBAAC,KAAD,EAAA,UACG,uBACG,aACA,iBAAiB,oBAAC,eAAD,CAAgB,CAAA,GAAG,OAAO,EAC9C,CAAA;CAGP,IAAI,SAAS,QACX,OACE,oBAAC,KAAD,EAAA,UACG,uBACG,SACA,iBAAiB,oBAAC,gBAAD,CAAiB,CAAA,GAAG,OAAO,EAC/C,CAAA;CAGP,IAAI,SAAS,aACX,OAAO,eAAe,oBAAC,eAAD,CAAgB,CAAA,GAAG,oBAAC,qBAAD,CAAsB,CAAA,GAAG,OAAO;CAE3E,IAAI,SAAS,aACX,OAAO,eACL,oBAAC,eAAD,CAAgB,CAAA,GAChB,oBAAC,sBAAD,CAAuB,CAAA,GACvB,OACF;CAEF,OAAO;AACT;AAEF,IAAM,kCAAkC,gBACtC,oBAAC,QAAD;CAAQ,GAAI;CAAa,YAAY,oBAAC,eAAD,CAAgB,CAAA;AAAI,CAAA;AAG3D,IAAM,uBAAuB,aAAsB;CACjD,SAAS,cAAc,UAAU,kBAAwB;CACzD,MAAM,UAAU,KAAK;AACvB;;;;;;;AAQA,IAAa,uCACX,YACA,EAAE,uBAAuB,OAAO,YAAuB,CAAC,MACpC;CACpB,MAAM,QAAQ,WAAW,WAAW,SAAS;CAC7C,OAAO;EACL,GAAG;EACH,QAAQ;GAAE,GAAG,oBAAoB,KAAK;GAAG,GAAG,WAAW;EAAO;EAG9D,sBAAsB;EACtB,YAAY,gBAAgB;GAC1B;GACA,SAAS;EACX,CAAC;CACH;AACF;AAEA,IAAMC,gBAAc,EAAE,uBAAuB,OAAO,GAAG,YAAmB;CACxE,MAAM,WAAW,oCAAoC,OAAO,EAC1D,qBACF,CAAC;CACD,OAAO,oBAACC,YAAD,EAAgB,GAAI,SAAW,CAAA;AACxC"}
@@ -1,6 +1,6 @@
1
- "use strict";
2
- const s = {
3
- "jump-button": "_jump-button_bwjnt_41"
4
- };
5
- module.exports = s;
6
- //# sourceMappingURL=Pagination.module.css.cjs.map
1
+ //#region src/components/pagination/Pagination.module.css
2
+ var Pagination_module_default = { "jump-button": "_jump-button_bwjnt_41" };
3
+ //#endregion
4
+ exports.default = Pagination_module_default;
5
+
6
+ //# sourceMappingURL=Pagination.module.css.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"Pagination.module.css.cjs","names":[],"sources":["../../../../src/components/pagination/Pagination.module.css"],"sourcesContent":[":global(.ant-pagination) {\n gap: var(--j2-margin-xs);\n}\n\n:global(.ant-pagination li:not(.ant-pagination-total-text)) {\n margin-inline-end: 0 !important;\n}\n\n:global(.ant-pagination-item-active) {\n background-color: var(--j2-blue-9) !important;\n}\n\n:global(.ant-pagination-item-active a) {\n color: white !important;\n}\n\n:global(.ant-pagination-prev button),\n:global(.ant-pagination-next button) {\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n:global(.ant-pagination-prev button):hover,\n:global(.ant-pagination-next button):hover {\n background-color: var(--j2-color-bg-text-hover) !important;\n}\n\n:global(.ant-pagination-disabled button),\n:global(.ant-pagination-disabled button:hover) {\n cursor: not-allowed;\n background-color: transparent !important;\n pointer-events: none;\n}\n\n:global(.ant-pagination-disabled button svg) {\n color: var(--j2-color-text-disabled) !important;\n}\n\n.jump-button {\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n:global(.ant-pagination-options) {\n display: flex !important;\n align-items: center !important;\n gap: var(--j2-margin-xs);\n margin-inline-start: 0 !important;\n}\n\n:global(.ant-pagination-total-text) {\n color: var(--j2-color-text);\n margin-inline-end: var(--j2-margin-xs) !important;\n}\n\n:global(.ant-pagination-options-quick-jumper) {\n display: flex !important;\n align-items: center !important;\n}\n\n:global(\n .ant-pagination:not(.ant-pagination-mini) .ant-pagination-options-quick-jumper\n) {\n gap: var(--j2-margin-xs);\n}\n\n:global(.ant-pagination-options-quick-jumper input) {\n margin: 0px !important;\n}\n\n:global(\n .ant-pagination.ant-pagination-mini .ant-pagination-options-quick-jumper input\n) {\n margin-inline-start: var(--j2-margin-xs) !important;\n}\n"],"mappings":""}
@@ -1,7 +1,6 @@
1
- const s = {
2
- "jump-button": "_jump-button_bwjnt_41"
3
- };
4
- export {
5
- s as default
6
- };
7
- //# sourceMappingURL=Pagination.module.css.js.map
1
+ //#region src/components/pagination/Pagination.module.css
2
+ var Pagination_module_default = { "jump-button": "_jump-button_bwjnt_41" };
3
+ //#endregion
4
+ export { Pagination_module_default as default };
5
+
6
+ //# sourceMappingURL=Pagination.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"Pagination.module.css.js","names":[],"sources":["../../../../src/components/pagination/Pagination.module.css"],"sourcesContent":[":global(.ant-pagination) {\n gap: var(--j2-margin-xs);\n}\n\n:global(.ant-pagination li:not(.ant-pagination-total-text)) {\n margin-inline-end: 0 !important;\n}\n\n:global(.ant-pagination-item-active) {\n background-color: var(--j2-blue-9) !important;\n}\n\n:global(.ant-pagination-item-active a) {\n color: white !important;\n}\n\n:global(.ant-pagination-prev button),\n:global(.ant-pagination-next button) {\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n:global(.ant-pagination-prev button):hover,\n:global(.ant-pagination-next button):hover {\n background-color: var(--j2-color-bg-text-hover) !important;\n}\n\n:global(.ant-pagination-disabled button),\n:global(.ant-pagination-disabled button:hover) {\n cursor: not-allowed;\n background-color: transparent !important;\n pointer-events: none;\n}\n\n:global(.ant-pagination-disabled button svg) {\n color: var(--j2-color-text-disabled) !important;\n}\n\n.jump-button {\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n:global(.ant-pagination-options) {\n display: flex !important;\n align-items: center !important;\n gap: var(--j2-margin-xs);\n margin-inline-start: 0 !important;\n}\n\n:global(.ant-pagination-total-text) {\n color: var(--j2-color-text);\n margin-inline-end: var(--j2-margin-xs) !important;\n}\n\n:global(.ant-pagination-options-quick-jumper) {\n display: flex !important;\n align-items: center !important;\n}\n\n:global(\n .ant-pagination:not(.ant-pagination-mini) .ant-pagination-options-quick-jumper\n) {\n gap: var(--j2-margin-xs);\n}\n\n:global(.ant-pagination-options-quick-jumper input) {\n margin: 0px !important;\n}\n\n:global(\n .ant-pagination.ant-pagination-mini .ant-pagination-options-quick-jumper input\n) {\n margin-inline-start: var(--j2-margin-xs) !important;\n}\n"],"mappings":""}
@@ -1,43 +1,24 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const antd = require("antd");
5
- const cx = require("classnames");
6
- const Popover_module = require("./Popover.module.css.cjs");
7
- const Popover = ({
8
- children,
9
- placement = "top",
10
- scrollable = false,
11
- contentPadding = true,
12
- content,
13
- smallPadding = false,
14
- paddingSize,
15
- arrow = false,
16
- rootClassName,
17
- ...props
18
- }) => {
19
- return /* @__PURE__ */ jsxRuntime.jsx(
20
- antd.Popover,
21
- {
22
- rootClassName: cx(
23
- rootClassName,
24
- Popover_module.default.j2Popover,
25
- scrollable && Popover_module.default.scrollable,
26
- smallPadding && Popover_module.default.smallPadding,
27
- paddingSize && Popover_module.default[`${paddingSize}Padding`]
28
- ),
29
- ...props,
30
- placement,
31
- arrow,
32
- content: () => {
33
- if (!contentPadding) {
34
- return /* @__PURE__ */ jsxRuntime.jsx("div", { children: typeof content == "function" ? content() : content });
35
- }
36
- return typeof content == "function" ? content() : content;
37
- },
38
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { children })
39
- }
40
- );
1
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
2
+ const require_Popover_module = require("./Popover.module.css.cjs");
3
+ let antd = require("antd");
4
+ let react_jsx_runtime = require("react/jsx-runtime");
5
+ let classnames = require("classnames");
6
+ classnames = require_runtime.__toESM(classnames, 1);
7
+ //#region src/components/popover/Popover.tsx
8
+ var Popover = ({ children, placement = "top", scrollable = false, contentPadding = true, content, smallPadding = false, paddingSize, arrow = false, rootClassName, ...props }) => {
9
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Popover, {
10
+ rootClassName: (0, classnames.default)(rootClassName, require_Popover_module.default.j2Popover, scrollable && require_Popover_module.default.scrollable, smallPadding && require_Popover_module.default.smallPadding, paddingSize && require_Popover_module.default[`${paddingSize}Padding`]),
11
+ ...props,
12
+ placement,
13
+ arrow,
14
+ content: () => {
15
+ if (!contentPadding) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: typeof content == "function" ? content() : content });
16
+ return typeof content == "function" ? content() : content;
17
+ },
18
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children })
19
+ });
41
20
  };
21
+ //#endregion
42
22
  exports.Popover = Popover;
43
- //# sourceMappingURL=Popover.cjs.map
23
+
24
+ //# sourceMappingURL=Popover.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.cjs","sources":["../../../../src/components/popover/Popover.tsx"],"sourcesContent":["import { Popover as AntdPopover, PopoverProps as AntdPopoverProps } from 'antd'\nimport cx from 'classnames'\nimport styles from './Popover.module.css'\n\ntype _Props = AntdPopoverProps & {\n contentPadding?: boolean\n scrollable?: boolean\n /* @deprecated use paddingSize instead */\n smallPadding?: boolean\n /* default padding is large */\n paddingSize?: 'xxs' | 'xs' | 'sm' | 'md' | 'xl'\n}\n\nexport type PopoverProps = Expand<_Props>\n\nconst Popover = ({\n children,\n placement = 'top',\n scrollable = false,\n contentPadding = true,\n content,\n smallPadding = false,\n paddingSize,\n arrow = false,\n rootClassName,\n ...props\n}: PopoverProps) => {\n return (\n <AntdPopover\n rootClassName={cx(\n rootClassName,\n styles.j2Popover,\n scrollable && styles.scrollable,\n smallPadding && styles.smallPadding,\n paddingSize && styles[`${paddingSize}Padding`]\n )}\n {...props}\n placement={placement}\n arrow={arrow}\n content={() => {\n if (!contentPadding) {\n return <div>{typeof content == 'function' ? content() : content}</div>\n }\n\n return typeof content == 'function' ? content() : content\n }}\n >\n <div>{children}</div>\n </AntdPopover>\n )\n}\n\nexport { Popover }\n"],"names":["jsx","AntdPopover","styles"],"mappings":";;;;;;AAeA,MAAM,UAAU,CAAC;AAAA,EACf;AAAA,EACA,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,EACR;AAAA,EACA,GAAG;AACL,MAAoB;AAClB,SACEA,2BAAAA;AAAAA,IAACC,KAAAA;AAAAA,IAAA;AAAA,MACC,eAAe;AAAA,QACb;AAAA,QACAC,eAAAA,QAAO;AAAA,QACP,cAAcA,eAAAA,QAAO;AAAA,QACrB,gBAAgBA,eAAAA,QAAO;AAAA,QACvB,eAAeA,eAAAA,QAAO,GAAG,WAAW,SAAS;AAAA,MAAA;AAAA,MAE9C,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA,SAAS,MAAM;AACb,YAAI,CAAC,gBAAgB;AACnB,gDAAQ,OAAA,EAAK,UAAA,OAAO,WAAW,aAAa,YAAY,SAAQ;AAAA,QAClE;AAEA,eAAO,OAAO,WAAW,aAAa,QAAA,IAAY;AAAA,MACpD;AAAA,MAEA,UAAAF,2BAAAA,IAAC,SAAK,SAAA,CAAS;AAAA,IAAA;AAAA,EAAA;AAGrB;;"}
1
+ {"version":3,"file":"Popover.cjs","names":["AntdPopover","cx","styles"],"sources":["../../../../src/components/popover/Popover.tsx"],"sourcesContent":["import { Popover as AntdPopover, PopoverProps as AntdPopoverProps } from 'antd'\nimport cx from 'classnames'\nimport styles from './Popover.module.css'\n\ntype _Props = AntdPopoverProps & {\n contentPadding?: boolean\n scrollable?: boolean\n /* @deprecated use paddingSize instead */\n smallPadding?: boolean\n /* default padding is large */\n paddingSize?: 'xxs' | 'xs' | 'sm' | 'md' | 'xl'\n}\n\nexport type PopoverProps = Expand<_Props>\n\nconst Popover = ({\n children,\n placement = 'top',\n scrollable = false,\n contentPadding = true,\n content,\n smallPadding = false,\n paddingSize,\n arrow = false,\n rootClassName,\n ...props\n}: PopoverProps) => {\n return (\n <AntdPopover\n rootClassName={cx(\n rootClassName,\n styles.j2Popover,\n scrollable && styles.scrollable,\n smallPadding && styles.smallPadding,\n paddingSize && styles[`${paddingSize}Padding`]\n )}\n {...props}\n placement={placement}\n arrow={arrow}\n content={() => {\n if (!contentPadding) {\n return <div>{typeof content == 'function' ? content() : content}</div>\n }\n\n return typeof content == 'function' ? content() : content\n }}\n >\n <div>{children}</div>\n </AntdPopover>\n )\n}\n\nexport { Popover }\n"],"mappings":";;;;;;;AAeA,IAAM,WAAW,EACf,UACA,YAAY,OACZ,aAAa,OACb,iBAAiB,MACjB,SACA,eAAe,OACf,aACA,QAAQ,OACR,eACA,GAAG,YACe;CAClB,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACA,KAAAA,SAAD;EACE,gBAAA,GAAeC,WAAAA,QAAAA,CACb,eACAC,uBAAAA,QAAO,WACP,cAAcA,uBAAAA,QAAO,YACrB,gBAAgBA,uBAAAA,QAAO,cACvB,eAAeA,uBAAAA,QAAO,GAAG,YAAY,SACvC;EACA,GAAI;EACO;EACJ;EACP,eAAe;GACb,IAAI,CAAC,gBACH,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD,EAAA,UAAM,OAAO,WAAW,aAAa,QAAQ,IAAI,QAAa,CAAA;GAGvE,OAAO,OAAO,WAAW,aAAa,QAAQ,IAAI;EACpD;EAEA,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD,EAAM,SAAc,CAAA;CACT,CAAA;AAEjB"}
@@ -6,5 +6,5 @@ type _Props = AntdPopoverProps & {
6
6
  paddingSize?: 'xxs' | 'xs' | 'sm' | 'md' | 'xl';
7
7
  };
8
8
  export type PopoverProps = Expand<_Props>;
9
- declare const Popover: ({ children, placement, scrollable, contentPadding, content, smallPadding, paddingSize, arrow, rootClassName, ...props }: PopoverProps) => import("react").JSX.Element;
9
+ declare const Popover: ({ children, placement, scrollable, contentPadding, content, smallPadding, paddingSize, arrow, rootClassName, ...props }: PopoverProps) => import('react').JSX.Element;
10
10
  export { Popover };
@@ -1,43 +1,22 @@
1
+ import Popover_module_default from "./Popover.module.css.js";
2
+ import { Popover } from "antd";
1
3
  import { jsx } from "react/jsx-runtime";
2
- import { Popover as Popover$1 } from "antd";
3
4
  import cx from "classnames";
4
- import styles from "./Popover.module.css.js";
5
- const Popover = ({
6
- children,
7
- placement = "top",
8
- scrollable = false,
9
- contentPadding = true,
10
- content,
11
- smallPadding = false,
12
- paddingSize,
13
- arrow = false,
14
- rootClassName,
15
- ...props
16
- }) => {
17
- return /* @__PURE__ */ jsx(
18
- Popover$1,
19
- {
20
- rootClassName: cx(
21
- rootClassName,
22
- styles.j2Popover,
23
- scrollable && styles.scrollable,
24
- smallPadding && styles.smallPadding,
25
- paddingSize && styles[`${paddingSize}Padding`]
26
- ),
27
- ...props,
28
- placement,
29
- arrow,
30
- content: () => {
31
- if (!contentPadding) {
32
- return /* @__PURE__ */ jsx("div", { children: typeof content == "function" ? content() : content });
33
- }
34
- return typeof content == "function" ? content() : content;
35
- },
36
- children: /* @__PURE__ */ jsx("div", { children })
37
- }
38
- );
5
+ //#region src/components/popover/Popover.tsx
6
+ var Popover$1 = ({ children, placement = "top", scrollable = false, contentPadding = true, content, smallPadding = false, paddingSize, arrow = false, rootClassName, ...props }) => {
7
+ return /* @__PURE__ */ jsx(Popover, {
8
+ rootClassName: cx(rootClassName, Popover_module_default.j2Popover, scrollable && Popover_module_default.scrollable, smallPadding && Popover_module_default.smallPadding, paddingSize && Popover_module_default[`${paddingSize}Padding`]),
9
+ ...props,
10
+ placement,
11
+ arrow,
12
+ content: () => {
13
+ if (!contentPadding) return /* @__PURE__ */ jsx("div", { children: typeof content == "function" ? content() : content });
14
+ return typeof content == "function" ? content() : content;
15
+ },
16
+ children: /* @__PURE__ */ jsx("div", { children })
17
+ });
39
18
  };
40
- export {
41
- Popover
42
- };
43
- //# sourceMappingURL=Popover.js.map
19
+ //#endregion
20
+ export { Popover$1 as Popover };
21
+
22
+ //# sourceMappingURL=Popover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sources":["../../../../src/components/popover/Popover.tsx"],"sourcesContent":["import { Popover as AntdPopover, PopoverProps as AntdPopoverProps } from 'antd'\nimport cx from 'classnames'\nimport styles from './Popover.module.css'\n\ntype _Props = AntdPopoverProps & {\n contentPadding?: boolean\n scrollable?: boolean\n /* @deprecated use paddingSize instead */\n smallPadding?: boolean\n /* default padding is large */\n paddingSize?: 'xxs' | 'xs' | 'sm' | 'md' | 'xl'\n}\n\nexport type PopoverProps = Expand<_Props>\n\nconst Popover = ({\n children,\n placement = 'top',\n scrollable = false,\n contentPadding = true,\n content,\n smallPadding = false,\n paddingSize,\n arrow = false,\n rootClassName,\n ...props\n}: PopoverProps) => {\n return (\n <AntdPopover\n rootClassName={cx(\n rootClassName,\n styles.j2Popover,\n scrollable && styles.scrollable,\n smallPadding && styles.smallPadding,\n paddingSize && styles[`${paddingSize}Padding`]\n )}\n {...props}\n placement={placement}\n arrow={arrow}\n content={() => {\n if (!contentPadding) {\n return <div>{typeof content == 'function' ? content() : content}</div>\n }\n\n return typeof content == 'function' ? content() : content\n }}\n >\n <div>{children}</div>\n </AntdPopover>\n )\n}\n\nexport { Popover }\n"],"names":["AntdPopover"],"mappings":";;;;AAeA,MAAM,UAAU,CAAC;AAAA,EACf;AAAA,EACA,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,EACR;AAAA,EACA,GAAG;AACL,MAAoB;AAClB,SACE;AAAA,IAACA;AAAAA,IAAA;AAAA,MACC,eAAe;AAAA,QACb;AAAA,QACA,OAAO;AAAA,QACP,cAAc,OAAO;AAAA,QACrB,gBAAgB,OAAO;AAAA,QACvB,eAAe,OAAO,GAAG,WAAW,SAAS;AAAA,MAAA;AAAA,MAE9C,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA,SAAS,MAAM;AACb,YAAI,CAAC,gBAAgB;AACnB,qCAAQ,OAAA,EAAK,UAAA,OAAO,WAAW,aAAa,YAAY,SAAQ;AAAA,QAClE;AAEA,eAAO,OAAO,WAAW,aAAa,QAAA,IAAY;AAAA,MACpD;AAAA,MAEA,UAAA,oBAAC,SAAK,SAAA,CAAS;AAAA,IAAA;AAAA,EAAA;AAGrB;"}
1
+ {"version":3,"file":"Popover.js","names":["Popover","AntdPopover","styles"],"sources":["../../../../src/components/popover/Popover.tsx"],"sourcesContent":["import { Popover as AntdPopover, PopoverProps as AntdPopoverProps } from 'antd'\nimport cx from 'classnames'\nimport styles from './Popover.module.css'\n\ntype _Props = AntdPopoverProps & {\n contentPadding?: boolean\n scrollable?: boolean\n /* @deprecated use paddingSize instead */\n smallPadding?: boolean\n /* default padding is large */\n paddingSize?: 'xxs' | 'xs' | 'sm' | 'md' | 'xl'\n}\n\nexport type PopoverProps = Expand<_Props>\n\nconst Popover = ({\n children,\n placement = 'top',\n scrollable = false,\n contentPadding = true,\n content,\n smallPadding = false,\n paddingSize,\n arrow = false,\n rootClassName,\n ...props\n}: PopoverProps) => {\n return (\n <AntdPopover\n rootClassName={cx(\n rootClassName,\n styles.j2Popover,\n scrollable && styles.scrollable,\n smallPadding && styles.smallPadding,\n paddingSize && styles[`${paddingSize}Padding`]\n )}\n {...props}\n placement={placement}\n arrow={arrow}\n content={() => {\n if (!contentPadding) {\n return <div>{typeof content == 'function' ? content() : content}</div>\n }\n\n return typeof content == 'function' ? content() : content\n }}\n >\n <div>{children}</div>\n </AntdPopover>\n )\n}\n\nexport { Popover }\n"],"mappings":";;;;;AAeA,IAAMA,aAAW,EACf,UACA,YAAY,OACZ,aAAa,OACb,iBAAiB,MACjB,SACA,eAAe,OACf,aACA,QAAQ,OACR,eACA,GAAG,YACe;CAClB,OACE,oBAACC,SAAD;EACE,eAAe,GACb,eACAC,uBAAO,WACP,cAAcA,uBAAO,YACrB,gBAAgBA,uBAAO,cACvB,eAAeA,uBAAO,GAAG,YAAY,SACvC;EACA,GAAI;EACO;EACJ;EACP,eAAe;GACb,IAAI,CAAC,gBACH,OAAO,oBAAC,OAAD,EAAA,UAAM,OAAO,WAAW,aAAa,QAAQ,IAAI,QAAa,CAAA;GAGvE,OAAO,OAAO,WAAW,aAAa,QAAQ,IAAI;EACpD;EAEA,UAAA,oBAAC,OAAD,EAAM,SAAc,CAAA;CACT,CAAA;AAEjB"}