@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.
- package/dist/_virtual/_rolldown/runtime.cjs +35 -0
- package/dist/_virtual/_rolldown/runtime.js +27 -0
- package/dist/index.cjs +118 -113
- package/dist/index.js +22 -81
- package/dist/src/AppConfigProvider.cjs +22 -11
- package/dist/src/AppConfigProvider.cjs.map +1 -1
- package/dist/src/AppConfigProvider.js +19 -10
- package/dist/src/AppConfigProvider.js.map +1 -1
- package/dist/src/appTheme.cjs +239 -266
- package/dist/src/appTheme.cjs.map +1 -1
- package/dist/src/appTheme.js +240 -267
- package/dist/src/appTheme.js.map +1 -1
- package/dist/src/components/alert/Alert.cjs +81 -103
- package/dist/src/components/alert/Alert.cjs.map +1 -1
- package/dist/src/components/alert/Alert.js +78 -86
- package/dist/src/components/alert/Alert.js.map +1 -1
- package/dist/src/components/alert/Alert.module.css.cjs +7 -8
- package/dist/src/components/alert/Alert.module.css.cjs.map +1 -1
- package/dist/src/components/alert/Alert.module.css.js +7 -9
- package/dist/src/components/alert/Alert.module.css.js.map +1 -1
- package/dist/src/components/barchart/BarChart.cjs +123 -151
- package/dist/src/components/barchart/BarChart.cjs.map +1 -1
- package/dist/src/components/barchart/BarChart.d.ts +1 -1
- package/dist/src/components/barchart/BarChart.js +121 -149
- package/dist/src/components/barchart/BarChart.js.map +1 -1
- package/dist/src/components/barchart/chart.module.css.cjs +7 -8
- package/dist/src/components/barchart/chart.module.css.cjs.map +1 -1
- package/dist/src/components/barchart/chart.module.css.js +7 -9
- package/dist/src/components/barchart/chart.module.css.js.map +1 -1
- package/dist/src/components/barchart/index.js +3 -0
- package/dist/src/components/breadcrumb/Breadcrumb.cjs +23 -36
- package/dist/src/components/breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/src/components/breadcrumb/Breadcrumb.js +20 -19
- package/dist/src/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/src/components/bulkActionBar/BulkActionBar.cjs +66 -79
- package/dist/src/components/bulkActionBar/BulkActionBar.cjs.map +1 -1
- package/dist/src/components/bulkActionBar/BulkActionBar.d.ts +1 -1
- package/dist/src/components/bulkActionBar/BulkActionBar.js +63 -78
- package/dist/src/components/bulkActionBar/BulkActionBar.js.map +1 -1
- package/dist/src/components/button/Button.cjs +16 -18
- package/dist/src/components/button/Button.cjs.map +1 -1
- package/dist/src/components/button/Button.d.ts +1 -1
- package/dist/src/components/button/Button.js +17 -19
- package/dist/src/components/button/Button.js.map +1 -1
- package/dist/src/components/card/Card.cjs +19 -33
- package/dist/src/components/card/Card.cjs.map +1 -1
- package/dist/src/components/card/Card.d.ts +1 -1
- package/dist/src/components/card/Card.js +17 -33
- package/dist/src/components/card/Card.js.map +1 -1
- package/dist/src/components/checkbox/Checkbox.cjs +8 -7
- package/dist/src/components/checkbox/Checkbox.cjs.map +1 -1
- package/dist/src/components/checkbox/Checkbox.d.ts +1 -1
- package/dist/src/components/checkbox/Checkbox.js +9 -8
- package/dist/src/components/checkbox/Checkbox.js.map +1 -1
- package/dist/src/components/checkboxTree/CheckboxTree.cjs +112 -138
- package/dist/src/components/checkboxTree/CheckboxTree.cjs.map +1 -1
- package/dist/src/components/checkboxTree/CheckboxTree.js +110 -138
- package/dist/src/components/checkboxTree/CheckboxTree.js.map +1 -1
- package/dist/src/components/checkboxTree/TreeNode.cjs +57 -90
- package/dist/src/components/checkboxTree/TreeNode.cjs.map +1 -1
- package/dist/src/components/checkboxTree/TreeNode.d.ts +1 -1
- package/dist/src/components/checkboxTree/TreeNode.js +57 -90
- package/dist/src/components/checkboxTree/TreeNode.js.map +1 -1
- package/dist/src/components/checkboxTree/utils.cjs +46 -51
- package/dist/src/components/checkboxTree/utils.cjs.map +1 -1
- package/dist/src/components/checkboxTree/utils.js +47 -55
- package/dist/src/components/checkboxTree/utils.js.map +1 -1
- package/dist/src/components/collapse/Collapse.cjs +54 -78
- package/dist/src/components/collapse/Collapse.cjs.map +1 -1
- package/dist/src/components/collapse/Collapse.js +51 -61
- package/dist/src/components/collapse/Collapse.js.map +1 -1
- package/dist/src/components/collapse/Collapse.module.css.cjs +11 -10
- package/dist/src/components/collapse/Collapse.module.css.cjs.map +1 -1
- package/dist/src/components/collapse/Collapse.module.css.js +11 -12
- package/dist/src/components/collapse/Collapse.module.css.js.map +1 -1
- package/dist/src/components/drawer/Drawer.cjs +26 -38
- package/dist/src/components/drawer/Drawer.cjs.map +1 -1
- package/dist/src/components/drawer/Drawer.d.ts +1 -1
- package/dist/src/components/drawer/Drawer.js +27 -39
- package/dist/src/components/drawer/Drawer.js.map +1 -1
- package/dist/src/components/dropdown/Dropdown.cjs +54 -54
- package/dist/src/components/dropdown/Dropdown.cjs.map +1 -1
- package/dist/src/components/dropdown/Dropdown.d.ts +1 -1
- package/dist/src/components/dropdown/Dropdown.js +53 -55
- package/dist/src/components/dropdown/Dropdown.js.map +1 -1
- package/dist/src/components/filterform/FilterGroup.cjs +41 -62
- package/dist/src/components/filterform/FilterGroup.cjs.map +1 -1
- package/dist/src/components/filterform/FilterGroup.d.ts +1 -1
- package/dist/src/components/filterform/FilterGroup.js +38 -61
- package/dist/src/components/filterform/FilterGroup.js.map +1 -1
- package/dist/src/components/filterform/FilterInput.cjs +169 -233
- package/dist/src/components/filterform/FilterInput.cjs.map +1 -1
- package/dist/src/components/filterform/FilterInput.js +164 -216
- package/dist/src/components/filterform/FilterInput.js.map +1 -1
- package/dist/src/components/filterform/FiltersForm.cjs +144 -178
- package/dist/src/components/filterform/FiltersForm.cjs.map +1 -1
- package/dist/src/components/filterform/FiltersForm.d.ts +1 -1
- package/dist/src/components/filterform/FiltersForm.js +140 -176
- package/dist/src/components/filterform/FiltersForm.js.map +1 -1
- package/dist/src/components/filterform/FiltersForm.module.css.cjs +16 -15
- package/dist/src/components/filterform/FiltersForm.module.css.cjs.map +1 -1
- package/dist/src/components/filterform/FiltersForm.module.css.js +16 -20
- package/dist/src/components/filterform/FiltersForm.module.css.js.map +1 -1
- package/dist/src/components/filterform/filterHelpers.cjs +50 -59
- package/dist/src/components/filterform/filterHelpers.cjs.map +1 -1
- package/dist/src/components/filterform/filterHelpers.js +51 -66
- package/dist/src/components/filterform/filterHelpers.js.map +1 -1
- package/dist/src/components/filterform/useFilterField.cjs +268 -236
- package/dist/src/components/filterform/useFilterField.cjs.map +1 -1
- package/dist/src/components/filterform/useFilterField.js +265 -222
- package/dist/src/components/filterform/useFilterField.js.map +1 -1
- package/dist/src/components/filterform/useFiltersForm.cjs +120 -154
- package/dist/src/components/filterform/useFiltersForm.cjs.map +1 -1
- package/dist/src/components/filterform/useFiltersForm.js +117 -153
- package/dist/src/components/filterform/useFiltersForm.js.map +1 -1
- package/dist/src/components/form/Form.cjs +23 -25
- package/dist/src/components/form/Form.cjs.map +1 -1
- package/dist/src/components/form/Form.d.ts +2 -2
- package/dist/src/components/form/Form.js +23 -25
- package/dist/src/components/form/Form.js.map +1 -1
- package/dist/src/components/form/FormItem.cjs +35 -40
- package/dist/src/components/form/FormItem.cjs.map +1 -1
- package/dist/src/components/form/FormItem.d.ts +1 -1
- package/dist/src/components/form/FormItem.js +35 -40
- package/dist/src/components/form/FormItem.js.map +1 -1
- package/dist/src/components/form/FormItemFieldContext.cjs +5 -7
- package/dist/src/components/form/FormItemFieldContext.cjs.map +1 -1
- package/dist/src/components/form/FormItemFieldContext.js +6 -7
- package/dist/src/components/form/FormItemFieldContext.js.map +1 -1
- package/dist/src/components/form/FormikField.cjs +15 -18
- package/dist/src/components/form/FormikField.cjs.map +1 -1
- package/dist/src/components/form/FormikField.d.ts +1 -1
- package/dist/src/components/form/FormikField.js +14 -17
- package/dist/src/components/form/FormikField.js.map +1 -1
- package/dist/src/components/icons/index.cjs +21 -26
- package/dist/src/components/icons/index.cjs.map +1 -1
- package/dist/src/components/icons/index.js +9 -2
- package/dist/src/components/icons/index.js.map +1 -1
- package/dist/src/components/input/AntdInput.cjs +14 -11
- package/dist/src/components/input/AntdInput.cjs.map +1 -1
- package/dist/src/components/input/AntdInput.js +13 -10
- package/dist/src/components/input/AntdInput.js.map +1 -1
- package/dist/src/components/input/AntdSearchInput.cjs +14 -11
- package/dist/src/components/input/AntdSearchInput.cjs.map +1 -1
- package/dist/src/components/input/AntdSearchInput.js +13 -10
- package/dist/src/components/input/AntdSearchInput.js.map +1 -1
- package/dist/src/components/input/Input.cjs +28 -33
- package/dist/src/components/input/Input.cjs.map +1 -1
- package/dist/src/components/input/Input.d.ts +1 -1
- package/dist/src/components/input/Input.js +28 -33
- package/dist/src/components/input/Input.js.map +1 -1
- package/dist/src/components/inputnumber/InputNumber.cjs +45 -45
- package/dist/src/components/inputnumber/InputNumber.cjs.map +1 -1
- package/dist/src/components/inputnumber/InputNumber.d.ts +1 -1
- package/dist/src/components/inputnumber/InputNumber.js +42 -44
- package/dist/src/components/inputnumber/InputNumber.js.map +1 -1
- package/dist/src/components/inputnumber/InputNumber.module.css.cjs +7 -8
- package/dist/src/components/inputnumber/InputNumber.module.css.cjs.map +1 -1
- package/dist/src/components/inputnumber/InputNumber.module.css.js +7 -9
- package/dist/src/components/inputnumber/InputNumber.module.css.js.map +1 -1
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.cjs +72 -50
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.cjs.map +1 -1
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.js +69 -49
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.js.map +1 -1
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.cjs +43 -33
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.cjs.map +1 -1
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.js +40 -47
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.js.map +1 -1
- package/dist/src/components/legacyNavMenu/UserProfile.cjs +76 -76
- package/dist/src/components/legacyNavMenu/UserProfile.cjs.map +1 -1
- package/dist/src/components/legacyNavMenu/UserProfile.js +74 -76
- package/dist/src/components/legacyNavMenu/UserProfile.js.map +1 -1
- package/dist/src/components/legacyNavMenu/UserProfile.module.css.cjs +33 -29
- package/dist/src/components/legacyNavMenu/UserProfile.module.css.cjs.map +1 -1
- package/dist/src/components/legacyNavMenu/UserProfile.module.css.js +32 -41
- package/dist/src/components/legacyNavMenu/UserProfile.module.css.js.map +1 -1
- package/dist/src/components/listpopover/ListPopover.cjs +89 -120
- package/dist/src/components/listpopover/ListPopover.cjs.map +1 -1
- package/dist/src/components/listpopover/ListPopover.d.ts +1 -1
- package/dist/src/components/listpopover/ListPopover.js +86 -119
- package/dist/src/components/listpopover/ListPopover.js.map +1 -1
- package/dist/src/components/listpopover/ListPopover.module.css.cjs +7 -8
- package/dist/src/components/listpopover/ListPopover.module.css.cjs.map +1 -1
- package/dist/src/components/listpopover/ListPopover.module.css.js +7 -9
- package/dist/src/components/listpopover/ListPopover.module.css.js.map +1 -1
- package/dist/src/components/manageColumns/ManageColumnsItem.cjs +53 -74
- package/dist/src/components/manageColumns/ManageColumnsItem.cjs.map +1 -1
- package/dist/src/components/manageColumns/ManageColumnsItem.js +48 -71
- package/dist/src/components/manageColumns/ManageColumnsItem.js.map +1 -1
- package/dist/src/components/manageColumns/ManageColumnsPanel.cjs +66 -77
- package/dist/src/components/manageColumns/ManageColumnsPanel.cjs.map +1 -1
- package/dist/src/components/manageColumns/ManageColumnsPanel.d.ts +1 -1
- package/dist/src/components/manageColumns/ManageColumnsPanel.js +65 -76
- package/dist/src/components/manageColumns/ManageColumnsPanel.js.map +1 -1
- package/dist/src/components/manageColumns/SelectAll.cjs +31 -24
- package/dist/src/components/manageColumns/SelectAll.cjs.map +1 -1
- package/dist/src/components/manageColumns/SelectAll.d.ts +1 -1
- package/dist/src/components/manageColumns/SelectAll.js +31 -24
- package/dist/src/components/manageColumns/SelectAll.js.map +1 -1
- package/dist/src/components/menu/Menu.cjs +16 -16
- package/dist/src/components/menu/Menu.cjs.map +1 -1
- package/dist/src/components/menu/Menu.d.ts +1 -1
- package/dist/src/components/menu/Menu.js +13 -15
- package/dist/src/components/menu/Menu.js.map +1 -1
- package/dist/src/components/menu/Menu.module.css.cjs +10 -9
- package/dist/src/components/menu/Menu.module.css.cjs.map +1 -1
- package/dist/src/components/menu/Menu.module.css.js +10 -11
- package/dist/src/components/menu/Menu.module.css.js.map +1 -1
- package/dist/src/components/message/Message.module.css.cjs +7 -8
- package/dist/src/components/message/Message.module.css.cjs.map +1 -1
- package/dist/src/components/message/Message.module.css.js +7 -9
- package/dist/src/components/message/Message.module.css.js.map +1 -1
- package/dist/src/components/message/useMessage.cjs +46 -52
- package/dist/src/components/message/useMessage.cjs.map +1 -1
- package/dist/src/components/message/useMessage.js +43 -51
- package/dist/src/components/message/useMessage.js.map +1 -1
- package/dist/src/components/modal/Modal.cjs +27 -28
- package/dist/src/components/modal/Modal.cjs.map +1 -1
- package/dist/src/components/modal/Modal.d.ts +1 -1
- package/dist/src/components/modal/Modal.js +25 -28
- package/dist/src/components/modal/Modal.js.map +1 -1
- package/dist/src/components/navMenu/NavMenu.cjs +75 -130
- package/dist/src/components/navMenu/NavMenu.cjs.map +1 -1
- package/dist/src/components/navMenu/NavMenu.js +68 -110
- package/dist/src/components/navMenu/NavMenu.js.map +1 -1
- package/dist/src/components/navMenu/NavMenu.module.css.cjs +14 -13
- package/dist/src/components/navMenu/NavMenu.module.css.cjs.map +1 -1
- package/dist/src/components/navMenu/NavMenu.module.css.js +14 -17
- package/dist/src/components/navMenu/NavMenu.module.css.js.map +1 -1
- package/dist/src/components/notification/Notification.module.css.cjs +7 -8
- package/dist/src/components/notification/Notification.module.css.cjs.map +1 -1
- package/dist/src/components/notification/Notification.module.css.js +7 -9
- package/dist/src/components/notification/Notification.module.css.js.map +1 -1
- package/dist/src/components/notification/useNotification.cjs +61 -52
- package/dist/src/components/notification/useNotification.cjs.map +1 -1
- package/dist/src/components/notification/useNotification.js +57 -51
- package/dist/src/components/notification/useNotification.js.map +1 -1
- package/dist/src/components/notificationModal/NotifcationModal.module.css.cjs +16 -15
- package/dist/src/components/notificationModal/NotifcationModal.module.css.cjs.map +1 -1
- package/dist/src/components/notificationModal/NotifcationModal.module.css.js +16 -20
- package/dist/src/components/notificationModal/NotifcationModal.module.css.js.map +1 -1
- package/dist/src/components/notificationModal/NotificationModal.cjs +56 -54
- package/dist/src/components/notificationModal/NotificationModal.cjs.map +1 -1
- package/dist/src/components/notificationModal/NotificationModal.d.ts +1 -1
- package/dist/src/components/notificationModal/NotificationModal.js +56 -54
- package/dist/src/components/notificationModal/NotificationModal.js.map +1 -1
- package/dist/src/components/pagination/Pagination.cjs +66 -61
- package/dist/src/components/pagination/Pagination.cjs.map +1 -1
- package/dist/src/components/pagination/Pagination.d.ts +1 -1
- package/dist/src/components/pagination/Pagination.js +63 -61
- package/dist/src/components/pagination/Pagination.js.map +1 -1
- package/dist/src/components/pagination/Pagination.module.css.cjs +6 -6
- package/dist/src/components/pagination/Pagination.module.css.cjs.map +1 -1
- package/dist/src/components/pagination/Pagination.module.css.js +6 -7
- package/dist/src/components/pagination/Pagination.module.css.js.map +1 -1
- package/dist/src/components/popover/Popover.cjs +22 -41
- package/dist/src/components/popover/Popover.cjs.map +1 -1
- package/dist/src/components/popover/Popover.d.ts +1 -1
- package/dist/src/components/popover/Popover.js +19 -40
- package/dist/src/components/popover/Popover.js.map +1 -1
- package/dist/src/components/popover/Popover.module.css.cjs +24 -23
- package/dist/src/components/popover/Popover.module.css.cjs.map +1 -1
- package/dist/src/components/popover/Popover.module.css.js +24 -32
- package/dist/src/components/popover/Popover.module.css.js.map +1 -1
- package/dist/src/components/progress/Progress.cjs +8 -7
- package/dist/src/components/progress/Progress.cjs.map +1 -1
- package/dist/src/components/progress/Progress.d.ts +1 -1
- package/dist/src/components/progress/Progress.js +8 -7
- package/dist/src/components/progress/Progress.js.map +1 -1
- package/dist/src/components/radio/Radio.cjs +14 -20
- package/dist/src/components/radio/Radio.cjs.map +1 -1
- package/dist/src/components/radio/Radio.d.ts +2 -2
- package/dist/src/components/radio/Radio.js +14 -21
- package/dist/src/components/radio/Radio.js.map +1 -1
- package/dist/src/components/rate/Rate.cjs +17 -19
- package/dist/src/components/rate/Rate.cjs.map +1 -1
- package/dist/src/components/rate/Rate.d.ts +1 -1
- package/dist/src/components/rate/Rate.js +18 -20
- package/dist/src/components/rate/Rate.js.map +1 -1
- package/dist/src/components/select/AntdSelect.cjs +57 -74
- package/dist/src/components/select/AntdSelect.cjs.map +1 -1
- package/dist/src/components/select/AntdSelect.js +53 -56
- package/dist/src/components/select/AntdSelect.js.map +1 -1
- package/dist/src/components/select/Select.cjs +119 -120
- package/dist/src/components/select/Select.cjs.map +1 -1
- package/dist/src/components/select/Select.js +117 -120
- package/dist/src/components/select/Select.js.map +1 -1
- package/dist/src/components/select/SummarizedSelect.cjs +384 -450
- package/dist/src/components/select/SummarizedSelect.cjs.map +1 -1
- package/dist/src/components/select/SummarizedSelect.d.ts +1 -1
- package/dist/src/components/select/SummarizedSelect.js +382 -450
- package/dist/src/components/select/SummarizedSelect.js.map +1 -1
- package/dist/src/components/select/SummarizedSelect.module.css.cjs +22 -21
- package/dist/src/components/select/SummarizedSelect.module.css.cjs.map +1 -1
- package/dist/src/components/select/SummarizedSelect.module.css.js +22 -29
- package/dist/src/components/select/SummarizedSelect.module.css.js.map +1 -1
- package/dist/src/components/skeleton/Skeleton.cjs +8 -7
- package/dist/src/components/skeleton/Skeleton.cjs.map +1 -1
- package/dist/src/components/skeleton/Skeleton.d.ts +1 -1
- package/dist/src/components/skeleton/Skeleton.js +13 -12
- package/dist/src/components/skeleton/Skeleton.js.map +1 -1
- package/dist/src/components/spinner/Spinner.cjs +27 -17
- package/dist/src/components/spinner/Spinner.cjs.map +1 -1
- package/dist/src/components/spinner/Spinner.d.ts +1 -1
- package/dist/src/components/spinner/Spinner.js +24 -16
- package/dist/src/components/spinner/Spinner.js.map +1 -1
- package/dist/src/components/steps/Steps.cjs +40 -57
- package/dist/src/components/steps/Steps.cjs.map +1 -1
- package/dist/src/components/steps/Steps.d.ts +1 -1
- package/dist/src/components/steps/Steps.js +37 -56
- package/dist/src/components/steps/Steps.js.map +1 -1
- package/dist/src/components/steps/useSteps.cjs +35 -54
- package/dist/src/components/steps/useSteps.cjs.map +1 -1
- package/dist/src/components/steps/useSteps.js +36 -55
- package/dist/src/components/steps/useSteps.js.map +1 -1
- package/dist/src/components/switch/Switch.cjs +16 -25
- package/dist/src/components/switch/Switch.cjs.map +1 -1
- package/dist/src/components/switch/Switch.d.ts +1 -1
- package/dist/src/components/switch/Switch.js +17 -26
- package/dist/src/components/switch/Switch.js.map +1 -1
- package/dist/src/components/table/Table.cjs +103 -109
- package/dist/src/components/table/Table.cjs.map +1 -1
- package/dist/src/components/table/Table.d.ts +3 -3
- package/dist/src/components/table/Table.js +102 -111
- package/dist/src/components/table/Table.js.map +1 -1
- package/dist/src/components/table/Table.module.css.cjs +10 -9
- package/dist/src/components/table/Table.module.css.cjs.map +1 -1
- package/dist/src/components/table/Table.module.css.js +10 -11
- package/dist/src/components/table/Table.module.css.js.map +1 -1
- package/dist/src/components/tabs/Tabs.cjs +12 -8
- package/dist/src/components/tabs/Tabs.cjs.map +1 -1
- package/dist/src/components/tabs/Tabs.d.ts +1 -1
- package/dist/src/components/tabs/Tabs.js +12 -8
- package/dist/src/components/tabs/Tabs.js.map +1 -1
- package/dist/src/components/tag/Tag.cjs +53 -73
- package/dist/src/components/tag/Tag.cjs.map +1 -1
- package/dist/src/components/tag/Tag.js +49 -56
- package/dist/src/components/tag/Tag.js.map +1 -1
- package/dist/src/components/tooltip/Tooltip.cjs +13 -12
- package/dist/src/components/tooltip/Tooltip.cjs.map +1 -1
- package/dist/src/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/src/components/tooltip/Tooltip.js +13 -12
- package/dist/src/components/tooltip/Tooltip.js.map +1 -1
- package/dist/src/components/vennDiagram/VennDiagram.cjs +39 -50
- package/dist/src/components/vennDiagram/VennDiagram.cjs.map +1 -1
- package/dist/src/components/vennDiagram/VennDiagram.d.ts +1 -1
- package/dist/src/components/vennDiagram/VennDiagram.js +38 -49
- package/dist/src/components/vennDiagram/VennDiagram.js.map +1 -1
- package/dist/src/index.d.ts +5 -4
- package/dist/src/svgs/ProgressCircle.svg.cjs +38 -22
- package/dist/src/svgs/ProgressCircle.svg.cjs.map +1 -1
- package/dist/src/svgs/ProgressCircle.svg.js +36 -6
- package/dist/src/svgs/ProgressCircle.svg.js.map +1 -1
- package/dist/src/svgs/j2-logo-menu-collapse.svg.cjs +24 -22
- package/dist/src/svgs/j2-logo-menu-collapse.svg.cjs.map +1 -1
- package/dist/src/svgs/j2-logo-menu-collapse.svg.js +22 -6
- package/dist/src/svgs/j2-logo-menu-collapse.svg.js.map +1 -1
- package/dist/src/svgs/j2-logo-menu.svg.cjs +55 -22
- package/dist/src/svgs/j2-logo-menu.svg.cjs.map +1 -1
- package/dist/src/svgs/j2-logo-menu.svg.js +53 -6
- package/dist/src/svgs/j2-logo-menu.svg.js.map +1 -1
- package/dist/src/svgs/menu-sidebar-collapse.svg.cjs +78 -22
- package/dist/src/svgs/menu-sidebar-collapse.svg.cjs.map +1 -1
- package/dist/src/svgs/menu-sidebar-collapse.svg.js +76 -6
- package/dist/src/svgs/menu-sidebar-collapse.svg.js.map +1 -1
- package/dist/src/svgs/menu-sidebar-expand.svg.cjs +78 -22
- package/dist/src/svgs/menu-sidebar-expand.svg.cjs.map +1 -1
- package/dist/src/svgs/menu-sidebar-expand.svg.js +76 -6
- package/dist/src/svgs/menu-sidebar-expand.svg.js.map +1 -1
- package/dist/style.css +649 -624
- package/dist/tailwind.cjs +159 -175
- package/dist/tailwind.cjs.map +1 -1
- package/dist/tailwind.js +155 -176
- package/dist/tailwind.js.map +1 -1
- package/package.json +18 -18
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,67 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
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"],"
|
|
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(
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
var Pagination$1 = ({ paginationTextLabels = false, ...props }) => {
|
|
63
|
+
const enriched = withDesignSystemPaginationOverrides(props, { paginationTextLabels });
|
|
64
|
+
return /* @__PURE__ */ jsx(Pagination, { ...enriched });
|
|
66
65
|
};
|
|
67
|
-
//#
|
|
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"],"
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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","
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
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","
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
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"],"
|
|
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(
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
41
|
-
|
|
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"],"
|
|
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"}
|