@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,21 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const antd = require("antd");
|
|
5
1
|
;/* empty css */
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
let antd = require("antd");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
//#region src/components/button/Button.tsx
|
|
5
|
+
var Button = ({ type, size, ghost, danger, shape, ...props }) => {
|
|
6
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
|
|
7
|
+
...props,
|
|
8
|
+
type,
|
|
9
|
+
size,
|
|
10
|
+
ghost,
|
|
11
|
+
danger,
|
|
12
|
+
shape,
|
|
13
|
+
children: props.children
|
|
14
|
+
});
|
|
19
15
|
};
|
|
16
|
+
//#endregion
|
|
20
17
|
exports.Button = Button;
|
|
21
|
-
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=Button.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.cjs","sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import { Button as AntdButton, ButtonProps } from 'antd'\nimport './Button.css'\n\nexport type Props = Expand<ButtonProps>\n\nconst Button = ({ type, size, ghost, danger, shape, ...props }: Props) => {\n return (\n <AntdButton\n {...props}\n type={type}\n size={size}\n ghost={ghost}\n danger={danger}\n shape={shape}\n >\n {props.children}\n </AntdButton>\n )\n}\n\nexport { Button }\n"],"
|
|
1
|
+
{"version":3,"file":"Button.cjs","names":["AntdButton"],"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import { Button as AntdButton, ButtonProps } from 'antd'\nimport './Button.css'\n\nexport type Props = Expand<ButtonProps>\n\nconst Button = ({ type, size, ghost, danger, shape, ...props }: Props) => {\n return (\n <AntdButton\n {...props}\n type={type}\n size={size}\n ghost={ghost}\n danger={danger}\n shape={shape}\n >\n {props.children}\n </AntdButton>\n )\n}\n\nexport { Button }\n"],"mappings":";;;;AAKA,IAAM,UAAU,EAAE,MAAM,MAAM,OAAO,QAAQ,OAAO,GAAG,YAAmB;CACxE,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACA,KAAAA,QAAD;EACE,GAAI;EACE;EACA;EACC;EACC;EACD;EAEN,UAAA,MAAM;CACG,CAAA;AAEhB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ButtonProps } from 'antd';
|
|
2
2
|
export type Props = Expand<ButtonProps>;
|
|
3
|
-
declare const Button: ({ type, size, ghost, danger, shape, ...props }: Props) => import(
|
|
3
|
+
declare const Button: ({ type, size, ghost, danger, shape, ...props }: Props) => import('react').JSX.Element;
|
|
4
4
|
export { Button };
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Button as Button$1 } from "antd";
|
|
3
1
|
/* empty css */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
Button
|
|
2
|
+
import { Button } from "antd";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/button/Button.tsx
|
|
5
|
+
var Button$1 = ({ type, size, ghost, danger, shape, ...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
7
|
+
...props,
|
|
8
|
+
type,
|
|
9
|
+
size,
|
|
10
|
+
ghost,
|
|
11
|
+
danger,
|
|
12
|
+
shape,
|
|
13
|
+
children: props.children
|
|
14
|
+
});
|
|
20
15
|
};
|
|
21
|
-
//#
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Button$1 as Button };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import { Button as AntdButton, ButtonProps } from 'antd'\nimport './Button.css'\n\nexport type Props = Expand<ButtonProps>\n\nconst Button = ({ type, size, ghost, danger, shape, ...props }: Props) => {\n return (\n <AntdButton\n {...props}\n type={type}\n size={size}\n ghost={ghost}\n danger={danger}\n shape={shape}\n >\n {props.children}\n </AntdButton>\n )\n}\n\nexport { Button }\n"],"
|
|
1
|
+
{"version":3,"file":"Button.js","names":["Button","AntdButton"],"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import { Button as AntdButton, ButtonProps } from 'antd'\nimport './Button.css'\n\nexport type Props = Expand<ButtonProps>\n\nconst Button = ({ type, size, ghost, danger, shape, ...props }: Props) => {\n return (\n <AntdButton\n {...props}\n type={type}\n size={size}\n ghost={ghost}\n danger={danger}\n shape={shape}\n >\n {props.children}\n </AntdButton>\n )\n}\n\nexport { Button }\n"],"mappings":";;;;AAKA,IAAMA,YAAU,EAAE,MAAM,MAAM,OAAO,QAAQ,OAAO,GAAG,YAAmB;CACxE,OACE,oBAACC,QAAD;EACE,GAAI;EACE;EACA;EACC;EACC;EACD;EAEN,UAAA,MAAM;CACG,CAAA;AAEhB"}
|
|
@@ -1,36 +1,22 @@
|
|
|
1
|
-
|
|
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");
|
|
1
|
+
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
|
|
6
2
|
;/* empty css */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"j2-card",
|
|
23
|
-
`j2-card-${size}`,
|
|
24
|
-
isInnerBasic && "inner-basic",
|
|
25
|
-
className
|
|
26
|
-
),
|
|
27
|
-
...props,
|
|
28
|
-
size: size === "small" ? "small" : "medium",
|
|
29
|
-
title,
|
|
30
|
-
loading,
|
|
31
|
-
children
|
|
32
|
-
}
|
|
33
|
-
);
|
|
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/card/Card.tsx
|
|
8
|
+
var Card = ({ title, children, loading, size = "default", innerVariant = "default", className, ...props }) => {
|
|
9
|
+
const isInnerBasic = props.type === "inner" && innerVariant === "basic";
|
|
10
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Card, {
|
|
11
|
+
className: (0, classnames.default)("j2-card", `j2-card-${size}`, isInnerBasic && "inner-basic", className),
|
|
12
|
+
...props,
|
|
13
|
+
size: size === "small" ? "small" : "medium",
|
|
14
|
+
title,
|
|
15
|
+
loading,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
34
18
|
};
|
|
19
|
+
//#endregion
|
|
35
20
|
exports.Card = Card;
|
|
36
|
-
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=Card.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.cjs","sources":["../../../../src/components/card/Card.tsx"],"sourcesContent":["import { Card as AntdCard, CardProps } from 'antd'\nimport cx from 'classnames'\n\n// import this file to enable styling defined in there\nimport './Card.css'\n\nexport type Props = Omit<CardProps, 'size'> & {\n /** Card title */\n title?: string\n /** Card contents */\n children: React.ReactNode\n /** Loading state */\n loading?: boolean\n /** Card size */\n size?: 'default' | 'small' | 'compact' | 'large'\n /**\n * Inner card type variant.\n * It allows inner card to have variants independent of other props.\n * Works only with type=\"inner\".\n */\n innerVariant?: 'default' | 'basic'\n}\n\nconst Card = ({\n title,\n children,\n loading,\n size = 'default',\n innerVariant = 'default',\n className,\n ...props\n}: Props) => {\n const isInner = props.type === 'inner'\n const isInnerBasic = isInner && innerVariant === 'basic'\n return (\n <AntdCard\n className={cx(\n 'j2-card',\n `j2-card-${size}`,\n isInnerBasic && 'inner-basic',\n className\n )}\n {...props}\n size={size === 'small' ? 'small' : 'medium'}\n title={title}\n loading={loading}\n >\n {children}\n </AntdCard>\n )\n}\n\nexport { Card }\n"],"
|
|
1
|
+
{"version":3,"file":"Card.cjs","names":["AntdCard","cx"],"sources":["../../../../src/components/card/Card.tsx"],"sourcesContent":["import { Card as AntdCard, CardProps } from 'antd'\nimport cx from 'classnames'\n\n// import this file to enable styling defined in there\nimport './Card.css'\n\nexport type Props = Omit<CardProps, 'size'> & {\n /** Card title */\n title?: string\n /** Card contents */\n children: React.ReactNode\n /** Loading state */\n loading?: boolean\n /** Card size */\n size?: 'default' | 'small' | 'compact' | 'large'\n /**\n * Inner card type variant.\n * It allows inner card to have variants independent of other props.\n * Works only with type=\"inner\".\n */\n innerVariant?: 'default' | 'basic'\n}\n\nconst Card = ({\n title,\n children,\n loading,\n size = 'default',\n innerVariant = 'default',\n className,\n ...props\n}: Props) => {\n const isInner = props.type === 'inner'\n const isInnerBasic = isInner && innerVariant === 'basic'\n return (\n <AntdCard\n className={cx(\n 'j2-card',\n `j2-card-${size}`,\n isInnerBasic && 'inner-basic',\n className\n )}\n {...props}\n size={size === 'small' ? 'small' : 'medium'}\n title={title}\n loading={loading}\n >\n {children}\n </AntdCard>\n )\n}\n\nexport { Card }\n"],"mappings":";;;;;;;AAuBA,IAAM,QAAQ,EACZ,OACA,UACA,SACA,OAAO,WACP,eAAe,WACf,WACA,GAAG,YACQ;CAEX,MAAM,eADU,MAAM,SAAS,WACC,iBAAiB;CACjD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACA,KAAAA,MAAD;EACE,YAAA,GAAWC,WAAAA,QAAAA,CACT,WACA,WAAW,QACX,gBAAgB,eAChB,SACF;EACA,GAAI;EACJ,MAAM,SAAS,UAAU,UAAU;EAC5B;EACE;EAER;CACO,CAAA;AAEd"}
|
|
@@ -15,5 +15,5 @@ export type Props = Omit<CardProps, 'size'> & {
|
|
|
15
15
|
*/
|
|
16
16
|
innerVariant?: 'default' | 'basic';
|
|
17
17
|
};
|
|
18
|
-
declare const Card: ({ title, children, loading, size, innerVariant, className, ...props }: Props) => import(
|
|
18
|
+
declare const Card: ({ title, children, loading, size, innerVariant, className, ...props }: Props) => import('react').JSX.Element;
|
|
19
19
|
export { Card };
|
|
@@ -1,36 +1,20 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { Card } from "antd";
|
|
1
3
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Card as Card$1 } from "antd";
|
|
3
4
|
import cx from "classnames";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const isInnerBasic = isInner && innerVariant === "basic";
|
|
16
|
-
return /* @__PURE__ */ jsx(
|
|
17
|
-
Card$1,
|
|
18
|
-
{
|
|
19
|
-
className: cx(
|
|
20
|
-
"j2-card",
|
|
21
|
-
`j2-card-${size}`,
|
|
22
|
-
isInnerBasic && "inner-basic",
|
|
23
|
-
className
|
|
24
|
-
),
|
|
25
|
-
...props,
|
|
26
|
-
size: size === "small" ? "small" : "medium",
|
|
27
|
-
title,
|
|
28
|
-
loading,
|
|
29
|
-
children
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
Card
|
|
5
|
+
//#region src/components/card/Card.tsx
|
|
6
|
+
var Card$1 = ({ title, children, loading, size = "default", innerVariant = "default", className, ...props }) => {
|
|
7
|
+
const isInnerBasic = props.type === "inner" && innerVariant === "basic";
|
|
8
|
+
return /* @__PURE__ */ jsx(Card, {
|
|
9
|
+
className: cx("j2-card", `j2-card-${size}`, isInnerBasic && "inner-basic", className),
|
|
10
|
+
...props,
|
|
11
|
+
size: size === "small" ? "small" : "medium",
|
|
12
|
+
title,
|
|
13
|
+
loading,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
35
16
|
};
|
|
36
|
-
//#
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Card$1 as Card };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sources":["../../../../src/components/card/Card.tsx"],"sourcesContent":["import { Card as AntdCard, CardProps } from 'antd'\nimport cx from 'classnames'\n\n// import this file to enable styling defined in there\nimport './Card.css'\n\nexport type Props = Omit<CardProps, 'size'> & {\n /** Card title */\n title?: string\n /** Card contents */\n children: React.ReactNode\n /** Loading state */\n loading?: boolean\n /** Card size */\n size?: 'default' | 'small' | 'compact' | 'large'\n /**\n * Inner card type variant.\n * It allows inner card to have variants independent of other props.\n * Works only with type=\"inner\".\n */\n innerVariant?: 'default' | 'basic'\n}\n\nconst Card = ({\n title,\n children,\n loading,\n size = 'default',\n innerVariant = 'default',\n className,\n ...props\n}: Props) => {\n const isInner = props.type === 'inner'\n const isInnerBasic = isInner && innerVariant === 'basic'\n return (\n <AntdCard\n className={cx(\n 'j2-card',\n `j2-card-${size}`,\n isInnerBasic && 'inner-basic',\n className\n )}\n {...props}\n size={size === 'small' ? 'small' : 'medium'}\n title={title}\n loading={loading}\n >\n {children}\n </AntdCard>\n )\n}\n\nexport { Card }\n"],"
|
|
1
|
+
{"version":3,"file":"Card.js","names":["Card","AntdCard"],"sources":["../../../../src/components/card/Card.tsx"],"sourcesContent":["import { Card as AntdCard, CardProps } from 'antd'\nimport cx from 'classnames'\n\n// import this file to enable styling defined in there\nimport './Card.css'\n\nexport type Props = Omit<CardProps, 'size'> & {\n /** Card title */\n title?: string\n /** Card contents */\n children: React.ReactNode\n /** Loading state */\n loading?: boolean\n /** Card size */\n size?: 'default' | 'small' | 'compact' | 'large'\n /**\n * Inner card type variant.\n * It allows inner card to have variants independent of other props.\n * Works only with type=\"inner\".\n */\n innerVariant?: 'default' | 'basic'\n}\n\nconst Card = ({\n title,\n children,\n loading,\n size = 'default',\n innerVariant = 'default',\n className,\n ...props\n}: Props) => {\n const isInner = props.type === 'inner'\n const isInnerBasic = isInner && innerVariant === 'basic'\n return (\n <AntdCard\n className={cx(\n 'j2-card',\n `j2-card-${size}`,\n isInnerBasic && 'inner-basic',\n className\n )}\n {...props}\n size={size === 'small' ? 'small' : 'medium'}\n title={title}\n loading={loading}\n >\n {children}\n </AntdCard>\n )\n}\n\nexport { Card }\n"],"mappings":";;;;;AAuBA,IAAMA,UAAQ,EACZ,OACA,UACA,SACA,OAAO,WACP,eAAe,WACf,WACA,GAAG,YACQ;CAEX,MAAM,eADU,MAAM,SAAS,WACC,iBAAiB;CACjD,OACE,oBAACC,MAAD;EACE,WAAW,GACT,WACA,WAAW,QACX,gBAAgB,eAChB,SACF;EACA,GAAI;EACJ,MAAM,SAAS,UAAU,UAAU;EAC5B;EACE;EAER;CACO,CAAA;AAEd"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return /* @__PURE__ */ jsxRuntime.jsx(antd.Checkbox, { ...props });
|
|
1
|
+
let antd = require("antd");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
//#region src/components/checkbox/Checkbox.tsx
|
|
4
|
+
var Checkbox = (props) => {
|
|
5
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Checkbox, { ...props });
|
|
7
6
|
};
|
|
8
7
|
Checkbox.Group = antd.Checkbox.Group;
|
|
8
|
+
//#endregion
|
|
9
9
|
exports.Checkbox = Checkbox;
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=Checkbox.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.cjs","sources":["../../../../src/components/checkbox/Checkbox.tsx"],"sourcesContent":["import { Checkbox as AntdCheckbox, CheckboxProps } from 'antd'\n\ntype Props = Expand<CheckboxProps>\n\nexport const Checkbox = (props: Props) => {\n return <AntdCheckbox {...props} />\n}\n\nCheckbox.Group = AntdCheckbox.Group\n"],"
|
|
1
|
+
{"version":3,"file":"Checkbox.cjs","names":["AntdCheckbox"],"sources":["../../../../src/components/checkbox/Checkbox.tsx"],"sourcesContent":["import { Checkbox as AntdCheckbox, CheckboxProps } from 'antd'\n\ntype Props = Expand<CheckboxProps>\n\nexport const Checkbox = (props: Props) => {\n return <AntdCheckbox {...props} />\n}\n\nCheckbox.Group = AntdCheckbox.Group\n"],"mappings":";;;AAIA,IAAa,YAAY,UAAiB;CACxC,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAACA,KAAAA,UAAD,EAAc,GAAI,MAAQ,CAAA;AACnC;AAEA,SAAS,QAAQA,KAAAA,SAAa"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CheckboxProps } from 'antd';
|
|
2
2
|
type Props = Expand<CheckboxProps>;
|
|
3
3
|
export declare const Checkbox: {
|
|
4
|
-
(props: Props): import(
|
|
4
|
+
(props: Props): import('react').JSX.Element;
|
|
5
5
|
Group: <T = any>(props: import('antd/es/checkbox').CheckboxGroupProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
|
|
6
6
|
};
|
|
7
7
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { Checkbox } from "antd";
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
//#region src/components/checkbox/Checkbox.tsx
|
|
4
|
+
var Checkbox$1 = (props) => {
|
|
5
|
+
return /* @__PURE__ */ jsx(Checkbox, { ...props });
|
|
5
6
|
};
|
|
6
|
-
Checkbox.Group = Checkbox
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=Checkbox.js.map
|
|
7
|
+
Checkbox$1.Group = Checkbox.Group;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Checkbox$1 as Checkbox };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sources":["../../../../src/components/checkbox/Checkbox.tsx"],"sourcesContent":["import { Checkbox as AntdCheckbox, CheckboxProps } from 'antd'\n\ntype Props = Expand<CheckboxProps>\n\nexport const Checkbox = (props: Props) => {\n return <AntdCheckbox {...props} />\n}\n\nCheckbox.Group = AntdCheckbox.Group\n"],"
|
|
1
|
+
{"version":3,"file":"Checkbox.js","names":["Checkbox","AntdCheckbox"],"sources":["../../../../src/components/checkbox/Checkbox.tsx"],"sourcesContent":["import { Checkbox as AntdCheckbox, CheckboxProps } from 'antd'\n\ntype Props = Expand<CheckboxProps>\n\nexport const Checkbox = (props: Props) => {\n return <AntdCheckbox {...props} />\n}\n\nCheckbox.Group = AntdCheckbox.Group\n"],"mappings":";;;AAIA,IAAaA,cAAY,UAAiB;CACxC,OAAO,oBAACC,UAAD,EAAc,GAAI,MAAQ,CAAA;AACnC;AAEA,WAAS,QAAQA,SAAa"}
|
|
@@ -1,140 +1,114 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
return isChecked;
|
|
112
|
-
};
|
|
113
|
-
treeData.forEach(collectChecked);
|
|
114
|
-
onCheck(newLeafNodeValues, {
|
|
115
|
-
checked,
|
|
116
|
-
checkedLeafNodes,
|
|
117
|
-
allCheckedNodes,
|
|
118
|
-
node
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
[controlledCheckedKeys, onCheck, treeData, leafNodeValues]
|
|
123
|
-
);
|
|
124
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className, style, children: treeData.map((node) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
125
|
-
TreeNode.TreeNode,
|
|
126
|
-
{
|
|
127
|
-
node,
|
|
128
|
-
level: 0,
|
|
129
|
-
leafNodeValues,
|
|
130
|
-
onCheck: handleCheck,
|
|
131
|
-
disabled,
|
|
132
|
-
expandedKeys: expandedKeysSet,
|
|
133
|
-
onToggleExpand: handleToggleExpand,
|
|
134
|
-
lazyChildren
|
|
135
|
-
},
|
|
136
|
-
node.key
|
|
137
|
-
)) });
|
|
1
|
+
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_utils = require("./utils.cjs");
|
|
3
|
+
const require_TreeNode = require("./TreeNode.cjs");
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_runtime.__toESM(react, 1);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
//#region src/components/checkboxTree/CheckboxTree.tsx
|
|
8
|
+
var CheckboxTree = ({ treeData, defaultCheckedKeys = [], checkedKeys: controlledCheckedKeys, onCheck, disabled = false, defaultExpandAll = true, defaultExpandedKeys, expandedKeys: controlledExpandedKeys, onExpand, className, style, lazyChildren = false }) => {
|
|
9
|
+
const allLeafKeys = (0, react.useMemo)(() => require_utils.getAllLeafKeys(treeData), [treeData]);
|
|
10
|
+
const leafKeySet = (0, react.useMemo)(() => new Set(allLeafKeys), [allLeafKeys]);
|
|
11
|
+
const [internalLeafNodeValues, setInternalLeafNodeValues] = (0, react.useState)(() => {
|
|
12
|
+
const defaultLeafKeySet = new Set(defaultCheckedKeys.filter((key) => leafKeySet.has(key)));
|
|
13
|
+
const values = {};
|
|
14
|
+
for (const key of allLeafKeys) values[key] = defaultLeafKeySet.has(key);
|
|
15
|
+
return values;
|
|
16
|
+
});
|
|
17
|
+
const [internalExpandedKeys, setInternalExpandedKeys] = (0, react.useState)(() => {
|
|
18
|
+
if (defaultExpandedKeys) return defaultExpandedKeys;
|
|
19
|
+
if (defaultExpandAll) return require_utils.getAllParentKeys(treeData);
|
|
20
|
+
return [];
|
|
21
|
+
});
|
|
22
|
+
(0, react.useEffect)(() => {
|
|
23
|
+
if (controlledExpandedKeys || !defaultExpandAll || defaultExpandedKeys) return;
|
|
24
|
+
const allParentKeys = require_utils.getAllParentKeys(treeData);
|
|
25
|
+
setInternalExpandedKeys((prev) => {
|
|
26
|
+
const prevSet = new Set(prev);
|
|
27
|
+
const newKeys = allParentKeys.filter((key) => !prevSet.has(key));
|
|
28
|
+
if (newKeys.length === 0) return prev;
|
|
29
|
+
return [...prev, ...newKeys];
|
|
30
|
+
});
|
|
31
|
+
}, [
|
|
32
|
+
treeData,
|
|
33
|
+
defaultExpandAll,
|
|
34
|
+
controlledExpandedKeys,
|
|
35
|
+
defaultExpandedKeys
|
|
36
|
+
]);
|
|
37
|
+
const expandedKeysSet = (0, react.useMemo)(() => {
|
|
38
|
+
return new Set(controlledExpandedKeys ?? internalExpandedKeys);
|
|
39
|
+
}, [controlledExpandedKeys, internalExpandedKeys]);
|
|
40
|
+
const handleToggleExpand = (0, react.useCallback)((key) => {
|
|
41
|
+
const currentKeys = controlledExpandedKeys ?? internalExpandedKeys;
|
|
42
|
+
const newKeys = currentKeys.includes(key) ? currentKeys.filter((k) => k !== key) : [...currentKeys, key];
|
|
43
|
+
if (!controlledExpandedKeys) setInternalExpandedKeys(newKeys);
|
|
44
|
+
onExpand?.(newKeys);
|
|
45
|
+
}, [
|
|
46
|
+
controlledExpandedKeys,
|
|
47
|
+
internalExpandedKeys,
|
|
48
|
+
onExpand
|
|
49
|
+
]);
|
|
50
|
+
const leafNodeValues = (0, react.useMemo)(() => {
|
|
51
|
+
if (!controlledCheckedKeys) return internalLeafNodeValues;
|
|
52
|
+
const controlledLeafKeySet = new Set(controlledCheckedKeys.filter((key) => leafKeySet.has(key)));
|
|
53
|
+
const values = {};
|
|
54
|
+
for (const key of allLeafKeys) values[key] = controlledLeafKeySet.has(key);
|
|
55
|
+
return values;
|
|
56
|
+
}, [
|
|
57
|
+
allLeafKeys,
|
|
58
|
+
leafKeySet,
|
|
59
|
+
controlledCheckedKeys,
|
|
60
|
+
internalLeafNodeValues
|
|
61
|
+
]);
|
|
62
|
+
const handleCheck = (0, react.useCallback)((_key, checked, node) => {
|
|
63
|
+
const newLeafNodeValues = { ...leafNodeValues };
|
|
64
|
+
if (checked) require_utils.getLeafKeys(node).forEach((leafKey) => newLeafNodeValues[leafKey] = true);
|
|
65
|
+
else require_utils.getLeafKeys(node).forEach((leafKey) => newLeafNodeValues[leafKey] = false);
|
|
66
|
+
if (!controlledCheckedKeys) setInternalLeafNodeValues(newLeafNodeValues);
|
|
67
|
+
if (onCheck) {
|
|
68
|
+
const checkedLeafNodes = {};
|
|
69
|
+
const allCheckedNodes = [];
|
|
70
|
+
const collectChecked = (current) => {
|
|
71
|
+
let isChecked;
|
|
72
|
+
if (!current.children || current.children.length === 0) {
|
|
73
|
+
isChecked = newLeafNodeValues[current.key] === true;
|
|
74
|
+
if (isChecked) checkedLeafNodes[current.key] = current;
|
|
75
|
+
} else {
|
|
76
|
+
isChecked = true;
|
|
77
|
+
for (const child of current.children) if (!collectChecked(child)) isChecked = false;
|
|
78
|
+
}
|
|
79
|
+
if (isChecked) allCheckedNodes.push(current);
|
|
80
|
+
return isChecked;
|
|
81
|
+
};
|
|
82
|
+
treeData.forEach(collectChecked);
|
|
83
|
+
onCheck(newLeafNodeValues, {
|
|
84
|
+
checked,
|
|
85
|
+
checkedLeafNodes,
|
|
86
|
+
allCheckedNodes,
|
|
87
|
+
node
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}, [
|
|
91
|
+
controlledCheckedKeys,
|
|
92
|
+
onCheck,
|
|
93
|
+
treeData,
|
|
94
|
+
leafNodeValues
|
|
95
|
+
]);
|
|
96
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
97
|
+
className,
|
|
98
|
+
style,
|
|
99
|
+
children: treeData.map((node) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_TreeNode.TreeNode, {
|
|
100
|
+
node,
|
|
101
|
+
level: 0,
|
|
102
|
+
leafNodeValues,
|
|
103
|
+
onCheck: handleCheck,
|
|
104
|
+
disabled,
|
|
105
|
+
expandedKeys: expandedKeysSet,
|
|
106
|
+
onToggleExpand: handleToggleExpand,
|
|
107
|
+
lazyChildren
|
|
108
|
+
}, node.key))
|
|
109
|
+
});
|
|
138
110
|
};
|
|
111
|
+
//#endregion
|
|
139
112
|
exports.CheckboxTree = CheckboxTree;
|
|
140
|
-
|
|
113
|
+
|
|
114
|
+
//# sourceMappingURL=CheckboxTree.cjs.map
|