@vef-framework-react/components 2.1.0
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/README +17 -0
- package/dist/cjs/_base/constants/breakpoints.cjs +1 -0
- package/dist/cjs/_base/constants/common.cjs +1 -0
- package/dist/cjs/_base/constants/css-vars.cjs +1 -0
- package/dist/cjs/_base/constants/index.cjs +1 -0
- package/dist/cjs/_base/constants/theme.cjs +1 -0
- package/dist/cjs/_base/helpers/breakpoints.cjs +1 -0
- package/dist/cjs/_base/helpers/color.cjs +1 -0
- package/dist/cjs/_base/helpers/common.cjs +1 -0
- package/dist/cjs/_base/helpers/index.cjs +1 -0
- package/dist/cjs/_base/helpers/message.cjs +1 -0
- package/dist/cjs/_base/helpers/modal.cjs +1 -0
- package/dist/cjs/_base/helpers/notification.cjs +1 -0
- package/dist/cjs/_base/helpers/props.cjs +1 -0
- package/dist/cjs/_base/helpers/react.cjs +1 -0
- package/dist/cjs/_base/hooks/index.cjs +1 -0
- package/dist/cjs/_base/hooks/use-theme-tokens.cjs +1 -0
- package/dist/cjs/_base/index.cjs +1 -0
- package/dist/cjs/_base/styles/common.cjs +1 -0
- package/dist/cjs/_base/styles/index.cjs +0 -0
- package/dist/cjs/_base/types/breakpoints.cjs +0 -0
- package/dist/cjs/_base/types/common.cjs +0 -0
- package/dist/cjs/_base/types/index.cjs +0 -0
- package/dist/cjs/_internal/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/action-button/index.cjs +1 -0
- package/dist/cjs/action-button/use-action-button.cjs +1 -0
- package/dist/cjs/action-group/index.cjs +1 -0
- package/dist/cjs/action-group/use-action-group.cjs +1 -0
- package/dist/cjs/action-group/use-computed-action-buttons.cjs +1 -0
- package/dist/cjs/affix/index.cjs +1 -0
- package/dist/cjs/alert/index.cjs +1 -0
- package/dist/cjs/anchor/index.cjs +1 -0
- package/dist/cjs/auto-complete/index.cjs +1 -0
- package/dist/cjs/avatar/index.cjs +1 -0
- package/dist/cjs/badge/index.cjs +1 -0
- package/dist/cjs/bool/index.cjs +1 -0
- package/dist/cjs/breadcrumb/index.cjs +1 -0
- package/dist/cjs/button/index.cjs +1 -0
- package/dist/cjs/calendar/index.cjs +1 -0
- package/dist/cjs/card/index.cjs +1 -0
- package/dist/cjs/carousel/index.cjs +1 -0
- package/dist/cjs/cascader/index.cjs +1 -0
- package/dist/cjs/center/index.cjs +1 -0
- package/dist/cjs/charts/chart.cjs +1 -0
- package/dist/cjs/charts/helpers/group.cjs +1 -0
- package/dist/cjs/charts/helpers/index.cjs +1 -0
- package/dist/cjs/charts/hooks/index.cjs +1 -0
- package/dist/cjs/charts/hooks/use-chart.cjs +1 -0
- package/dist/cjs/charts/index.cjs +1 -0
- package/dist/cjs/charts/themes/index.cjs +1 -0
- package/dist/cjs/charts/themes/walden-dark.cjs +1 -0
- package/dist/cjs/charts/themes/walden.cjs +1 -0
- package/dist/cjs/charts/themes/wonderland-dark.cjs +1 -0
- package/dist/cjs/charts/themes/wonderland.cjs +1 -0
- package/dist/cjs/checkbox/index.cjs +1 -0
- package/dist/cjs/code-highlighter/index.cjs +1 -0
- package/dist/cjs/col/index.cjs +1 -0
- package/dist/cjs/collapse/index.cjs +1 -0
- package/dist/cjs/color-picker/index.cjs +1 -0
- package/dist/cjs/compact/index.cjs +1 -0
- package/dist/cjs/config-provider/app.cjs +1 -0
- package/dist/cjs/config-provider/constants.cjs +1 -0
- package/dist/cjs/config-provider/context-holder.cjs +1 -0
- package/dist/cjs/config-provider/css-vars.cjs +1 -0
- package/dist/cjs/config-provider/dark-mode-context.cjs +1 -0
- package/dist/cjs/config-provider/error-fallback.cjs +1 -0
- package/dist/cjs/config-provider/global-style.cjs +1 -0
- package/dist/cjs/config-provider/index.cjs +1 -0
- package/dist/cjs/config-provider/theme-config.cjs +1 -0
- package/dist/cjs/config-provider/use-config-provider.cjs +1 -0
- package/dist/cjs/date-picker/index.cjs +1 -0
- package/dist/cjs/descriptions/index.cjs +1 -0
- package/dist/cjs/divider/index.cjs +1 -0
- package/dist/cjs/drawer/index.cjs +1 -0
- package/dist/cjs/dropdown/index.cjs +1 -0
- package/dist/cjs/dynamic-icon/index.cjs +1 -0
- package/dist/cjs/dynamic-icon/placeholder-icon.cjs +1 -0
- package/dist/cjs/dynamic-icon/unknown-icon.cjs +1 -0
- package/dist/cjs/empty/empty.cjs +1 -0
- package/dist/cjs/empty/index.cjs +1 -0
- package/dist/cjs/flex/index.cjs +1 -0
- package/dist/cjs/flip-text/index.cjs +1 -0
- package/dist/cjs/float-button/index.cjs +1 -0
- package/dist/cjs/form/components/form.cjs +1 -0
- package/dist/cjs/form/components/index.cjs +1 -0
- package/dist/cjs/form/components/reset-button.cjs +1 -0
- package/dist/cjs/form/components/submit-button.cjs +1 -0
- package/dist/cjs/form/contexts/form-context.cjs +1 -0
- package/dist/cjs/form/contexts/form-layout.cjs +1 -0
- package/dist/cjs/form/contexts/index.cjs +1 -0
- package/dist/cjs/form/fields/auto-complete/index.cjs +1 -0
- package/dist/cjs/form/fields/bool/index.cjs +1 -0
- package/dist/cjs/form/fields/cascader/index.cjs +1 -0
- package/dist/cjs/form/fields/checkbox/index.cjs +1 -0
- package/dist/cjs/form/fields/color-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/date-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/date-range-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/index.cjs +1 -0
- package/dist/cjs/form/fields/input/index.cjs +1 -0
- package/dist/cjs/form/fields/input-number/index.cjs +1 -0
- package/dist/cjs/form/fields/mentions/index.cjs +1 -0
- package/dist/cjs/form/fields/password/index.cjs +1 -0
- package/dist/cjs/form/fields/radio/index.cjs +1 -0
- package/dist/cjs/form/fields/rate/index.cjs +1 -0
- package/dist/cjs/form/fields/select/index.cjs +1 -0
- package/dist/cjs/form/fields/slider/index.cjs +1 -0
- package/dist/cjs/form/fields/textarea/index.cjs +1 -0
- package/dist/cjs/form/fields/time-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/time-range-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/transfer/index.cjs +1 -0
- package/dist/cjs/form/fields/tree-select/index.cjs +1 -0
- package/dist/cjs/form/fields/upload/index.cjs +1 -0
- package/dist/cjs/form/form.cjs +1 -0
- package/dist/cjs/form/helpers/index.cjs +1 -0
- package/dist/cjs/form/helpers/with-form-item.cjs +1 -0
- package/dist/cjs/form/hooks/use-form-item-props.cjs +1 -0
- package/dist/cjs/form/hooks/use-label-width.cjs +1 -0
- package/dist/cjs/form/index.cjs +1 -0
- package/dist/cjs/form/use-form.cjs +1 -0
- package/dist/cjs/grid/context.cjs +1 -0
- package/dist/cjs/grid/grid-item.cjs +1 -0
- package/dist/cjs/grid/hooks/index.cjs +1 -0
- package/dist/cjs/grid/hooks/use-container-breakpoints.cjs +1 -0
- package/dist/cjs/grid/hooks/use-container-width.cjs +1 -0
- package/dist/cjs/grid/hooks/use-grid-collapsed.cjs +1 -0
- package/dist/cjs/grid/hooks/use-normalized-gap.cjs +1 -0
- package/dist/cjs/grid/hooks/use-responsive-breakpoint.cjs +1 -0
- package/dist/cjs/grid/hooks/use-responsive-value.cjs +1 -0
- package/dist/cjs/grid/index.cjs +1 -0
- package/dist/cjs/grid/styles.cjs +1 -0
- package/dist/cjs/group/index.cjs +1 -0
- package/dist/cjs/icon/index.cjs +1 -0
- package/dist/cjs/icon-button/index.cjs +1 -0
- package/dist/cjs/image/index.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/input/index.cjs +1 -0
- package/dist/cjs/input-number/index.cjs +1 -0
- package/dist/cjs/keyboard/index.cjs +1 -0
- package/dist/cjs/list/index.cjs +1 -0
- package/dist/cjs/loader/index.cjs +1 -0
- package/dist/cjs/mentions/index.cjs +1 -0
- package/dist/cjs/menu/index.cjs +1 -0
- package/dist/cjs/modal/index.cjs +1 -0
- package/dist/cjs/operation-button/index.cjs +1 -0
- package/dist/cjs/pagination/index.cjs +1 -0
- package/dist/cjs/permission-gate/index.cjs +1 -0
- package/dist/cjs/popconfirm/index.cjs +1 -0
- package/dist/cjs/popover/index.cjs +1 -0
- package/dist/cjs/progress/index.cjs +1 -0
- package/dist/cjs/qrcode/index.cjs +1 -0
- package/dist/cjs/radio/index.cjs +1 -0
- package/dist/cjs/rate/index.cjs +1 -0
- package/dist/cjs/result/index.cjs +1 -0
- package/dist/cjs/row/index.cjs +1 -0
- package/dist/cjs/scroll-area/index.cjs +1 -0
- package/dist/cjs/scroll-area/styles.cjs +1 -0
- package/dist/cjs/segmented/index.cjs +1 -0
- package/dist/cjs/select/hooks/index.cjs +1 -0
- package/dist/cjs/select/hooks/use-data-options-select.cjs +1 -0
- package/dist/cjs/select/index.cjs +1 -0
- package/dist/cjs/skeleton/index.cjs +1 -0
- package/dist/cjs/slider/index.cjs +1 -0
- package/dist/cjs/space/index.cjs +1 -0
- package/dist/cjs/space/space.cjs +1 -0
- package/dist/cjs/sparkles-text/index.cjs +1 -0
- package/dist/cjs/sparkles-text/sparkle.cjs +1 -0
- package/dist/cjs/spin/index.cjs +1 -0
- package/dist/cjs/split-text/index.cjs +1 -0
- package/dist/cjs/splitter/index.cjs +1 -0
- package/dist/cjs/stack/index.cjs +1 -0
- package/dist/cjs/statistic/index.cjs +1 -0
- package/dist/cjs/steps/index.cjs +1 -0
- package/dist/cjs/switch/index.cjs +1 -0
- package/dist/cjs/table/index.cjs +1 -0
- package/dist/cjs/table/use-pagination-props.cjs +1 -0
- package/dist/cjs/tabs/index.cjs +1 -0
- package/dist/cjs/tag/index.cjs +1 -0
- package/dist/cjs/time-picker/index.cjs +1 -0
- package/dist/cjs/timeline/index.cjs +1 -0
- package/dist/cjs/tooltip/index.cjs +1 -0
- package/dist/cjs/tour/index.cjs +1 -0
- package/dist/cjs/transfer/index.cjs +1 -0
- package/dist/cjs/tree/hooks/index.cjs +1 -0
- package/dist/cjs/tree/hooks/use-data-options-tree.cjs +1 -0
- package/dist/cjs/tree/index.cjs +1 -0
- package/dist/cjs/tree-select/hooks/index.cjs +1 -0
- package/dist/cjs/tree-select/hooks/use-data-options-tree-select.cjs +1 -0
- package/dist/cjs/tree-select/index.cjs +1 -0
- package/dist/cjs/typing-animation/index.cjs +1 -0
- package/dist/cjs/typography/index.cjs +1 -0
- package/dist/cjs/upload/index.cjs +1 -0
- package/dist/cjs/watermark/index.cjs +1 -0
- package/dist/es/_base/constants/breakpoints.js +13 -0
- package/dist/es/_base/constants/common.js +31 -0
- package/dist/es/_base/constants/css-vars.js +677 -0
- package/dist/es/_base/constants/index.js +4 -0
- package/dist/es/_base/constants/theme.js +5 -0
- package/dist/es/_base/helpers/breakpoints.js +20 -0
- package/dist/es/_base/helpers/color.js +11 -0
- package/dist/es/_base/helpers/common.js +11 -0
- package/dist/es/_base/helpers/index.js +9 -0
- package/dist/es/_base/helpers/message.js +42 -0
- package/dist/es/_base/helpers/modal.js +76 -0
- package/dist/es/_base/helpers/notification.js +54 -0
- package/dist/es/_base/helpers/props.js +14 -0
- package/dist/es/_base/helpers/react.js +8 -0
- package/dist/es/_base/hooks/index.js +2 -0
- package/dist/es/_base/hooks/use-theme-tokens.js +9 -0
- package/dist/es/_base/index.js +13 -0
- package/dist/es/_base/styles/common.js +24 -0
- package/dist/es/_base/styles/index.js +1 -0
- package/dist/es/_base/types/breakpoints.js +1 -0
- package/dist/es/_base/types/common.js +1 -0
- package/dist/es/_base/types/index.js +1 -0
- package/dist/es/action-button/index.js +39 -0
- package/dist/es/action-button/use-action-button.js +42 -0
- package/dist/es/action-group/index.js +12 -0
- package/dist/es/action-group/use-action-group.js +10 -0
- package/dist/es/action-group/use-computed-action-buttons.js +35 -0
- package/dist/es/affix/index.js +3 -0
- package/dist/es/alert/index.js +3 -0
- package/dist/es/anchor/index.js +3 -0
- package/dist/es/auto-complete/index.js +3 -0
- package/dist/es/avatar/index.js +3 -0
- package/dist/es/badge/index.js +3 -0
- package/dist/es/bool/index.js +69 -0
- package/dist/es/breadcrumb/index.js +3 -0
- package/dist/es/button/index.js +3 -0
- package/dist/es/calendar/index.js +3 -0
- package/dist/es/card/index.js +3 -0
- package/dist/es/carousel/index.js +3 -0
- package/dist/es/cascader/index.js +3 -0
- package/dist/es/center/index.js +16 -0
- package/dist/es/charts/chart.js +20 -0
- package/dist/es/charts/helpers/group.js +11 -0
- package/dist/es/charts/helpers/index.js +2 -0
- package/dist/es/charts/hooks/index.js +2 -0
- package/dist/es/charts/hooks/use-chart.js +109 -0
- package/dist/es/charts/index.js +4 -0
- package/dist/es/charts/themes/index.js +5 -0
- package/dist/es/charts/themes/walden-dark.js +296 -0
- package/dist/es/charts/themes/walden.js +279 -0
- package/dist/es/charts/themes/wonderland-dark.js +300 -0
- package/dist/es/charts/themes/wonderland.js +283 -0
- package/dist/es/checkbox/index.js +3 -0
- package/dist/es/code-highlighter/index.js +41 -0
- package/dist/es/col/index.js +3 -0
- package/dist/es/collapse/index.js +3 -0
- package/dist/es/color-picker/index.js +3 -0
- package/dist/es/compact/index.js +6 -0
- package/dist/es/config-provider/app.js +18 -0
- package/dist/es/config-provider/constants.js +26 -0
- package/dist/es/config-provider/context-holder.js +20 -0
- package/dist/es/config-provider/css-vars.js +67 -0
- package/dist/es/config-provider/dark-mode-context.js +9 -0
- package/dist/es/config-provider/error-fallback.js +49 -0
- package/dist/es/config-provider/global-style.js +9 -0
- package/dist/es/config-provider/index.js +69 -0
- package/dist/es/config-provider/theme-config.js +98 -0
- package/dist/es/config-provider/use-config-provider.js +29 -0
- package/dist/es/date-picker/index.js +3 -0
- package/dist/es/descriptions/index.js +3 -0
- package/dist/es/divider/index.js +3 -0
- package/dist/es/drawer/index.js +3 -0
- package/dist/es/dropdown/index.js +3 -0
- package/dist/es/dynamic-icon/index.js +45 -0
- package/dist/es/dynamic-icon/placeholder-icon.js +23 -0
- package/dist/es/dynamic-icon/unknown-icon.js +58 -0
- package/dist/es/empty/empty.js +12 -0
- package/dist/es/empty/index.js +2 -0
- package/dist/es/flex/index.js +3 -0
- package/dist/es/flip-text/index.js +53 -0
- package/dist/es/float-button/index.js +3 -0
- package/dist/es/form/components/form.js +38 -0
- package/dist/es/form/components/index.js +12 -0
- package/dist/es/form/components/reset-button.js +25 -0
- package/dist/es/form/components/submit-button.js +26 -0
- package/dist/es/form/contexts/form-context.js +6 -0
- package/dist/es/form/contexts/form-layout.js +14 -0
- package/dist/es/form/contexts/index.js +3 -0
- package/dist/es/form/fields/auto-complete/index.js +25 -0
- package/dist/es/form/fields/bool/index.js +19 -0
- package/dist/es/form/fields/cascader/index.js +21 -0
- package/dist/es/form/fields/checkbox/index.js +31 -0
- package/dist/es/form/fields/color-picker/index.js +19 -0
- package/dist/es/form/fields/date-picker/index.js +21 -0
- package/dist/es/form/fields/date-range-picker/index.js +21 -0
- package/dist/es/form/fields/index.js +49 -0
- package/dist/es/form/fields/input/index.js +24 -0
- package/dist/es/form/fields/input-number/index.js +22 -0
- package/dist/es/form/fields/mentions/index.js +22 -0
- package/dist/es/form/fields/password/index.js +24 -0
- package/dist/es/form/fields/radio/index.js +22 -0
- package/dist/es/form/fields/rate/index.js +20 -0
- package/dist/es/form/fields/select/index.js +20 -0
- package/dist/es/form/fields/slider/index.js +19 -0
- package/dist/es/form/fields/textarea/index.js +24 -0
- package/dist/es/form/fields/time-picker/index.js +21 -0
- package/dist/es/form/fields/time-range-picker/index.js +21 -0
- package/dist/es/form/fields/transfer/index.js +21 -0
- package/dist/es/form/fields/tree-select/index.js +19 -0
- package/dist/es/form/fields/upload/index.js +37 -0
- package/dist/es/form/form.js +14 -0
- package/dist/es/form/helpers/index.js +2 -0
- package/dist/es/form/helpers/with-form-item.js +33 -0
- package/dist/es/form/hooks/use-form-item-props.js +21 -0
- package/dist/es/form/hooks/use-label-width.js +12 -0
- package/dist/es/form/index.js +3 -0
- package/dist/es/form/use-form.js +16 -0
- package/dist/es/grid/context.js +11 -0
- package/dist/es/grid/grid-item.js +28 -0
- package/dist/es/grid/hooks/index.js +7 -0
- package/dist/es/grid/hooks/use-container-breakpoints.js +16 -0
- package/dist/es/grid/hooks/use-container-width.js +26 -0
- package/dist/es/grid/hooks/use-grid-collapsed.js +12 -0
- package/dist/es/grid/hooks/use-normalized-gap.js +26 -0
- package/dist/es/grid/hooks/use-responsive-breakpoint.js +11 -0
- package/dist/es/grid/hooks/use-responsive-value.js +19 -0
- package/dist/es/grid/index.js +97 -0
- package/dist/es/grid/styles.js +22 -0
- package/dist/es/group/index.js +16 -0
- package/dist/es/icon/index.js +33 -0
- package/dist/es/icon-button/index.js +31 -0
- package/dist/es/image/index.js +3 -0
- package/dist/es/index.js +109 -0
- package/dist/es/input/index.js +3 -0
- package/dist/es/input-number/index.js +3 -0
- package/dist/es/keyboard/index.js +39 -0
- package/dist/es/list/index.js +3 -0
- package/dist/es/loader/index.js +30 -0
- package/dist/es/mentions/index.js +3 -0
- package/dist/es/menu/index.js +3 -0
- package/dist/es/modal/index.js +3 -0
- package/dist/es/operation-button/index.js +27 -0
- package/dist/es/pagination/index.js +3 -0
- package/dist/es/permission-gate/index.js +10 -0
- package/dist/es/popconfirm/index.js +3 -0
- package/dist/es/popover/index.js +3 -0
- package/dist/es/progress/index.js +3 -0
- package/dist/es/qrcode/index.js +3 -0
- package/dist/es/radio/index.js +3 -0
- package/dist/es/rate/index.js +3 -0
- package/dist/es/result/index.js +3 -0
- package/dist/es/row/index.js +3 -0
- package/dist/es/scroll-area/index.js +57 -0
- package/dist/es/scroll-area/styles.js +37 -0
- package/dist/es/segmented/index.js +3 -0
- package/dist/es/select/hooks/index.js +2 -0
- package/dist/es/select/hooks/use-data-options-select.js +47 -0
- package/dist/es/select/index.js +4 -0
- package/dist/es/skeleton/index.js +3 -0
- package/dist/es/slider/index.js +3 -0
- package/dist/es/space/index.js +2 -0
- package/dist/es/space/space.js +13 -0
- package/dist/es/sparkles-text/index.js +53 -0
- package/dist/es/sparkles-text/sparkle.js +57 -0
- package/dist/es/spin/index.js +3 -0
- package/dist/es/split-text/index.js +151 -0
- package/dist/es/splitter/index.js +3 -0
- package/dist/es/stack/index.js +15 -0
- package/dist/es/statistic/index.js +3 -0
- package/dist/es/steps/index.js +3 -0
- package/dist/es/switch/index.js +3 -0
- package/dist/es/table/index.js +47 -0
- package/dist/es/table/use-pagination-props.js +50 -0
- package/dist/es/tabs/index.js +3 -0
- package/dist/es/tag/index.js +3 -0
- package/dist/es/time-picker/index.js +3 -0
- package/dist/es/timeline/index.js +3 -0
- package/dist/es/tooltip/index.js +3 -0
- package/dist/es/tour/index.js +3 -0
- package/dist/es/transfer/index.js +3 -0
- package/dist/es/tree/hooks/index.js +2 -0
- package/dist/es/tree/hooks/use-data-options-tree.js +40 -0
- package/dist/es/tree/index.js +4 -0
- package/dist/es/tree-select/hooks/index.js +2 -0
- package/dist/es/tree-select/hooks/use-data-options-tree-select.js +49 -0
- package/dist/es/tree-select/index.js +4 -0
- package/dist/es/typing-animation/index.js +46 -0
- package/dist/es/typography/index.js +6 -0
- package/dist/es/upload/index.js +62 -0
- package/dist/es/watermark/index.js +3 -0
- package/dist/types/src/_base/constants/breakpoints.d.ts +9 -0
- package/dist/types/src/_base/constants/common.d.ts +10 -0
- package/dist/types/src/_base/constants/css-vars.d.ts +673 -0
- package/dist/types/src/_base/constants/index.d.ts +4 -0
- package/dist/types/src/_base/constants/theme.d.ts +8 -0
- package/dist/types/src/_base/helpers/breakpoints.d.ts +7 -0
- package/dist/types/src/_base/helpers/color.d.ts +3 -0
- package/dist/types/src/_base/helpers/common.d.ts +8 -0
- package/dist/types/src/_base/helpers/index.d.ts +8 -0
- package/dist/types/src/_base/helpers/message.d.ts +11 -0
- package/dist/types/src/_base/helpers/modal.d.ts +31 -0
- package/dist/types/src/_base/helpers/notification.d.ts +17 -0
- package/dist/types/src/_base/helpers/props.d.ts +5 -0
- package/dist/types/src/_base/helpers/react.d.ts +2 -0
- package/dist/types/src/_base/hooks/index.d.ts +1 -0
- package/dist/types/src/_base/hooks/use-theme-tokens.d.ts +2 -0
- package/dist/types/src/_base/index.d.ts +5 -0
- package/dist/types/src/_base/styles/common.d.ts +4 -0
- package/dist/types/src/_base/styles/index.d.ts +1 -0
- package/dist/types/src/_base/types/breakpoints.d.ts +2 -0
- package/dist/types/src/_base/types/common.d.ts +41 -0
- package/dist/types/src/_base/types/index.d.ts +2 -0
- package/dist/types/src/action-button/index.d.ts +3 -0
- package/dist/types/src/action-button/props.d.ts +39 -0
- package/dist/types/src/action-button/use-action-button.d.ts +12 -0
- package/dist/types/src/action-group/index.d.ts +7 -0
- package/dist/types/src/action-group/props.d.ts +18 -0
- package/dist/types/src/action-group/use-action-group.d.ts +8 -0
- package/dist/types/src/action-group/use-computed-action-buttons.d.ts +12 -0
- package/dist/types/src/affix/index.d.ts +2 -0
- package/dist/types/src/alert/index.d.ts +2 -0
- package/dist/types/src/anchor/index.d.ts +4 -0
- package/dist/types/src/auto-complete/index.d.ts +4 -0
- package/dist/types/src/avatar/index.d.ts +3 -0
- package/dist/types/src/badge/index.d.ts +4 -0
- package/dist/types/src/bool/index.d.ts +4 -0
- package/dist/types/src/bool/props.d.ts +67 -0
- package/dist/types/src/breadcrumb/index.d.ts +5 -0
- package/dist/types/src/button/index.d.ts +3 -0
- package/dist/types/src/calendar/index.d.ts +2 -0
- package/dist/types/src/card/index.d.ts +3 -0
- package/dist/types/src/carousel/index.d.ts +3 -0
- package/dist/types/src/cascader/index.d.ts +3 -0
- package/dist/types/src/center/index.d.ts +4 -0
- package/dist/types/src/center/props.d.ts +13 -0
- package/dist/types/src/charts/chart.d.ts +11 -0
- package/dist/types/src/charts/helpers/group.d.ts +2 -0
- package/dist/types/src/charts/helpers/index.d.ts +1 -0
- package/dist/types/src/charts/hooks/index.d.ts +2 -0
- package/dist/types/src/charts/hooks/use-chart.d.ts +15 -0
- package/dist/types/src/charts/index.d.ts +4 -0
- package/dist/types/src/charts/themes/index.d.ts +4 -0
- package/dist/types/src/charts/themes/walden-dark.d.ts +1 -0
- package/dist/types/src/charts/themes/walden.d.ts +1 -0
- package/dist/types/src/charts/themes/wonderland-dark.d.ts +1 -0
- package/dist/types/src/charts/themes/wonderland.d.ts +1 -0
- package/dist/types/src/checkbox/index.d.ts +5 -0
- package/dist/types/src/code-highlighter/index.d.ts +3 -0
- package/dist/types/src/code-highlighter/props.d.ts +58 -0
- package/dist/types/src/col/index.d.ts +2 -0
- package/dist/types/src/collapse/index.d.ts +5 -0
- package/dist/types/src/color-picker/index.d.ts +2 -0
- package/dist/types/src/compact/index.d.ts +5 -0
- package/dist/types/src/config-provider/app.d.ts +9 -0
- package/dist/types/src/config-provider/constants.d.ts +22 -0
- package/dist/types/src/config-provider/context-holder.d.ts +6 -0
- package/dist/types/src/config-provider/css-vars.d.ts +6 -0
- package/dist/types/src/config-provider/dark-mode-context.d.ts +3 -0
- package/dist/types/src/config-provider/error-fallback.d.ts +3 -0
- package/dist/types/src/config-provider/global-style.d.ts +2 -0
- package/dist/types/src/config-provider/index.d.ts +5 -0
- package/dist/types/src/config-provider/props.d.ts +34 -0
- package/dist/types/src/config-provider/theme-config.d.ts +7 -0
- package/dist/types/src/config-provider/use-config-provider.d.ts +10 -0
- package/dist/types/src/date-picker/index.d.ts +5 -0
- package/dist/types/src/descriptions/index.d.ts +4 -0
- package/dist/types/src/divider/index.d.ts +2 -0
- package/dist/types/src/drawer/index.d.ts +2 -0
- package/dist/types/src/dropdown/index.d.ts +5 -0
- package/dist/types/src/dynamic-icon/index.d.ts +7 -0
- package/dist/types/src/dynamic-icon/placeholder-icon.d.ts +2 -0
- package/dist/types/src/dynamic-icon/props.d.ts +13 -0
- package/dist/types/src/dynamic-icon/unknown-icon.d.ts +2 -0
- package/dist/types/src/empty/empty.d.ts +2 -0
- package/dist/types/src/empty/index.d.ts +2 -0
- package/dist/types/src/flex/index.d.ts +14 -0
- package/dist/types/src/flip-text/index.d.ts +3 -0
- package/dist/types/src/flip-text/props.d.ts +32 -0
- package/dist/types/src/float-button/index.d.ts +2 -0
- package/dist/types/src/form/components/form.d.ts +10 -0
- package/dist/types/src/form/components/index.d.ts +11 -0
- package/dist/types/src/form/components/reset-button.d.ts +6 -0
- package/dist/types/src/form/components/submit-button.d.ts +6 -0
- package/dist/types/src/form/contexts/form-context.d.ts +4 -0
- package/dist/types/src/form/contexts/form-layout.d.ts +7 -0
- package/dist/types/src/form/contexts/index.d.ts +3 -0
- package/dist/types/src/form/fields/auto-complete/index.d.ts +5 -0
- package/dist/types/src/form/fields/auto-complete/props.d.ts +10 -0
- package/dist/types/src/form/fields/bool/index.d.ts +5 -0
- package/dist/types/src/form/fields/bool/props.d.ts +4 -0
- package/dist/types/src/form/fields/cascader/index.d.ts +5 -0
- package/dist/types/src/form/fields/cascader/props.d.ts +4 -0
- package/dist/types/src/form/fields/checkbox/index.d.ts +6 -0
- package/dist/types/src/form/fields/checkbox/props.d.ts +6 -0
- package/dist/types/src/form/fields/color-picker/index.d.ts +5 -0
- package/dist/types/src/form/fields/color-picker/props.d.ts +4 -0
- package/dist/types/src/form/fields/date-picker/index.d.ts +5 -0
- package/dist/types/src/form/fields/date-picker/props.d.ts +4 -0
- package/dist/types/src/form/fields/date-range-picker/index.d.ts +5 -0
- package/dist/types/src/form/fields/date-range-picker/props.d.ts +4 -0
- package/dist/types/src/form/fields/index.d.ts +68 -0
- package/dist/types/src/form/fields/input/index.d.ts +5 -0
- package/dist/types/src/form/fields/input/props.d.ts +10 -0
- package/dist/types/src/form/fields/input-number/index.d.ts +5 -0
- package/dist/types/src/form/fields/input-number/props.d.ts +4 -0
- package/dist/types/src/form/fields/mentions/index.d.ts +5 -0
- package/dist/types/src/form/fields/mentions/props.d.ts +4 -0
- package/dist/types/src/form/fields/password/index.d.ts +5 -0
- package/dist/types/src/form/fields/password/props.d.ts +10 -0
- package/dist/types/src/form/fields/radio/index.d.ts +5 -0
- package/dist/types/src/form/fields/radio/props.d.ts +4 -0
- package/dist/types/src/form/fields/rate/index.d.ts +5 -0
- package/dist/types/src/form/fields/rate/props.d.ts +4 -0
- package/dist/types/src/form/fields/select/index.d.ts +6 -0
- package/dist/types/src/form/fields/select/props.d.ts +5 -0
- package/dist/types/src/form/fields/slider/index.d.ts +5 -0
- package/dist/types/src/form/fields/slider/props.d.ts +4 -0
- package/dist/types/src/form/fields/textarea/index.d.ts +5 -0
- package/dist/types/src/form/fields/textarea/props.d.ts +10 -0
- package/dist/types/src/form/fields/time-picker/index.d.ts +5 -0
- package/dist/types/src/form/fields/time-picker/props.d.ts +4 -0
- package/dist/types/src/form/fields/time-range-picker/index.d.ts +5 -0
- package/dist/types/src/form/fields/time-range-picker/props.d.ts +4 -0
- package/dist/types/src/form/fields/transfer/index.d.ts +5 -0
- package/dist/types/src/form/fields/transfer/props.d.ts +4 -0
- package/dist/types/src/form/fields/tree-select/index.d.ts +6 -0
- package/dist/types/src/form/fields/tree-select/props.d.ts +5 -0
- package/dist/types/src/form/fields/upload/index.d.ts +5 -0
- package/dist/types/src/form/fields/upload/props.d.ts +4 -0
- package/dist/types/src/form/form.d.ts +183 -0
- package/dist/types/src/form/helpers/index.d.ts +1 -0
- package/dist/types/src/form/helpers/with-form-item.d.ts +3 -0
- package/dist/types/src/form/hooks/use-form-item-props.d.ts +15 -0
- package/dist/types/src/form/hooks/use-label-width.d.ts +7 -0
- package/dist/types/src/form/index.d.ts +5 -0
- package/dist/types/src/form/types.d.ts +17 -0
- package/dist/types/src/form/use-form.d.ts +38 -0
- package/dist/types/src/grid/context.d.ts +15 -0
- package/dist/types/src/grid/grid-item.d.ts +5 -0
- package/dist/types/src/grid/hooks/index.d.ts +6 -0
- package/dist/types/src/grid/hooks/use-container-breakpoints.d.ts +1 -0
- package/dist/types/src/grid/hooks/use-container-width.d.ts +5 -0
- package/dist/types/src/grid/hooks/use-grid-collapsed.d.ts +4 -0
- package/dist/types/src/grid/hooks/use-normalized-gap.d.ts +3 -0
- package/dist/types/src/grid/hooks/use-responsive-breakpoint.d.ts +2 -0
- package/dist/types/src/grid/hooks/use-responsive-value.d.ts +4 -0
- package/dist/types/src/grid/index.d.ts +8 -0
- package/dist/types/src/grid/props.d.ts +85 -0
- package/dist/types/src/grid/styles.d.ts +4 -0
- package/dist/types/src/group/index.d.ts +4 -0
- package/dist/types/src/group/props.d.ts +13 -0
- package/dist/types/src/icon/index.d.ts +3 -0
- package/dist/types/src/icon/props.d.ts +20 -0
- package/dist/types/src/icon-button/index.d.ts +3 -0
- package/dist/types/src/icon-button/props.d.ts +22 -0
- package/dist/types/src/image/index.d.ts +2 -0
- package/dist/types/src/index.d.ts +90 -0
- package/dist/types/src/input/index.d.ts +4 -0
- package/dist/types/src/input-number/index.d.ts +2 -0
- package/dist/types/src/keyboard/index.d.ts +3 -0
- package/dist/types/src/keyboard/props.d.ts +13 -0
- package/dist/types/src/list/index.d.ts +3 -0
- package/dist/types/src/loader/index.d.ts +3 -0
- package/dist/types/src/loader/props.d.ts +20 -0
- package/dist/types/src/mentions/index.d.ts +4 -0
- package/dist/types/src/menu/index.d.ts +5 -0
- package/dist/types/src/modal/index.d.ts +2 -0
- package/dist/types/src/operation-button/index.d.ts +3 -0
- package/dist/types/src/operation-button/props.d.ts +10 -0
- package/dist/types/src/pagination/index.d.ts +2 -0
- package/dist/types/src/permission-gate/index.d.ts +4 -0
- package/dist/types/src/permission-gate/props.d.ts +26 -0
- package/dist/types/src/popconfirm/index.d.ts +2 -0
- package/dist/types/src/popover/index.d.ts +2 -0
- package/dist/types/src/progress/index.d.ts +2 -0
- package/dist/types/src/qrcode/index.d.ts +2 -0
- package/dist/types/src/radio/index.d.ts +4 -0
- package/dist/types/src/rate/index.d.ts +2 -0
- package/dist/types/src/result/index.d.ts +2 -0
- package/dist/types/src/row/index.d.ts +2 -0
- package/dist/types/src/scroll-area/index.d.ts +3 -0
- package/dist/types/src/scroll-area/props.d.ts +49 -0
- package/dist/types/src/scroll-area/styles.d.ts +5 -0
- package/dist/types/src/segmented/index.d.ts +5 -0
- package/dist/types/src/select/hooks/index.d.ts +1 -0
- package/dist/types/src/select/hooks/use-data-options-select.d.ts +16 -0
- package/dist/types/src/select/index.d.ts +5 -0
- package/dist/types/src/skeleton/index.d.ts +8 -0
- package/dist/types/src/slider/index.d.ts +5 -0
- package/dist/types/src/space/index.d.ts +2 -0
- package/dist/types/src/space/props.d.ts +13 -0
- package/dist/types/src/space/space.d.ts +2 -0
- package/dist/types/src/sparkles-text/index.d.ts +3 -0
- package/dist/types/src/sparkles-text/props.d.ts +12 -0
- package/dist/types/src/sparkles-text/sparkle.d.ts +10 -0
- package/dist/types/src/spin/index.d.ts +2 -0
- package/dist/types/src/split-text/index.d.ts +4 -0
- package/dist/types/src/split-text/props.d.ts +78 -0
- package/dist/types/src/splitter/index.d.ts +2 -0
- package/dist/types/src/stack/index.d.ts +4 -0
- package/dist/types/src/stack/props.d.ts +13 -0
- package/dist/types/src/statistic/index.d.ts +2 -0
- package/dist/types/src/steps/index.d.ts +2 -0
- package/dist/types/src/switch/index.d.ts +2 -0
- package/dist/types/src/table/index.d.ts +7 -0
- package/dist/types/src/table/props.d.ts +13 -0
- package/dist/types/src/table/use-pagination-props.d.ts +9 -0
- package/dist/types/src/tabs/index.d.ts +4 -0
- package/dist/types/src/tag/index.d.ts +3 -0
- package/dist/types/src/time-picker/index.d.ts +2 -0
- package/dist/types/src/timeline/index.d.ts +4 -0
- package/dist/types/src/tooltip/index.d.ts +3 -0
- package/dist/types/src/tour/index.d.ts +4 -0
- package/dist/types/src/transfer/index.d.ts +3 -0
- package/dist/types/src/tree/hooks/index.d.ts +1 -0
- package/dist/types/src/tree/hooks/use-data-options-tree.d.ts +16 -0
- package/dist/types/src/tree/index.d.ts +5 -0
- package/dist/types/src/tree-select/hooks/index.d.ts +1 -0
- package/dist/types/src/tree-select/hooks/use-data-options-tree-select.d.ts +16 -0
- package/dist/types/src/tree-select/index.d.ts +3 -0
- package/dist/types/src/typing-animation/index.d.ts +3 -0
- package/dist/types/src/typing-animation/props.d.ts +25 -0
- package/dist/types/src/typography/index.d.ts +11 -0
- package/dist/types/src/upload/index.d.ts +4 -0
- package/dist/types/src/upload/props.d.ts +15 -0
- package/dist/types/src/watermark/index.d.ts +2 -0
- package/package.json +85 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MaybeUndefined } from '@vef-framework-react/shared';
|
|
2
|
+
import { Breakpoint, Length } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves a breakpoint value from a partial breakpoints config.
|
|
5
|
+
* Falls back to the nearest defined breakpoint value (smaller first, then larger).
|
|
6
|
+
*/
|
|
7
|
+
export declare function resolveBreakpointValue(breakpointValues: Partial<Record<Breakpoint, Length>>, breakpoint: Breakpoint): MaybeUndefined<Length>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MaybeUndefined } from '@vef-framework-react/shared';
|
|
2
|
+
import { Length, Size } from '../types';
|
|
3
|
+
export declare function getSpacingValue(value: Length): string;
|
|
4
|
+
/**
|
|
5
|
+
* Maps VEF Framework size to Ant Design size.
|
|
6
|
+
* Ant Design uses "middle" instead of the standard "medium".
|
|
7
|
+
*/
|
|
8
|
+
export declare function mapSize(size?: Size): MaybeUndefined<"small" | "middle" | "large">;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare function showSuccessMessage(content: ReactNode): void;
|
|
3
|
+
export declare function showInfoMessage(content: ReactNode): void;
|
|
4
|
+
export declare function showWarningMessage(content: ReactNode): void;
|
|
5
|
+
export declare function showErrorMessage(content: ReactNode): void;
|
|
6
|
+
export interface LoadingMessageHandle {
|
|
7
|
+
close: () => void;
|
|
8
|
+
update: (content: ReactNode) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function showLoadingMessage(content: ReactNode): LoadingMessageHandle;
|
|
11
|
+
export declare function closeAllMessages(): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Awaitable, Except } from '@vef-framework-react/shared';
|
|
2
|
+
import { ButtonProps } from 'antd';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { Length } from '../types';
|
|
5
|
+
export interface ConfirmOptions {
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
okText?: ReactNode;
|
|
8
|
+
cancelText?: ReactNode;
|
|
9
|
+
okButtonProps?: ButtonProps;
|
|
10
|
+
cancelButtonProps?: ButtonProps;
|
|
11
|
+
width?: Length;
|
|
12
|
+
closable?: boolean;
|
|
13
|
+
onOk?: () => Awaitable<void>;
|
|
14
|
+
onCancel?: () => Awaitable<void>;
|
|
15
|
+
onAfterOpen?: () => void;
|
|
16
|
+
onAfterClose?: () => void;
|
|
17
|
+
}
|
|
18
|
+
export type AlertOptions = Except<ConfirmOptions, "cancelText" | "cancelButtonProps">;
|
|
19
|
+
export interface ModalHandle {
|
|
20
|
+
close: () => void;
|
|
21
|
+
update: (content: ReactNode, options?: ConfirmOptions) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface AlertHandle {
|
|
24
|
+
close: () => void;
|
|
25
|
+
update: (content: ReactNode, options?: AlertOptions) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare function showConfirm(content: ReactNode, options?: ConfirmOptions): ModalHandle;
|
|
28
|
+
export declare function showSuccessAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
|
|
29
|
+
export declare function showInfoAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
|
|
30
|
+
export declare function showWarningAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
|
|
31
|
+
export declare function showErrorAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface NotificationOptions {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
duration?: number;
|
|
5
|
+
actions?: ReactNode;
|
|
6
|
+
closable?: boolean;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface NotificationHandle {
|
|
10
|
+
close: () => void;
|
|
11
|
+
update: (content: ReactNode, options?: NotificationOptions) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function showSuccessNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
|
|
14
|
+
export declare function showInfoNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
|
|
15
|
+
export declare function showWarningNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
|
|
16
|
+
export declare function showErrorNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
|
|
17
|
+
export declare function closeAllNotifications(): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type FilteredProps<T extends Record<string, unknown>> = {
|
|
2
|
+
[K in keyof T]-?: T[K] extends undefined ? never : T[K];
|
|
3
|
+
};
|
|
4
|
+
export declare function filterProps<T extends Record<string, unknown>>(props: T): FilteredProps<T>;
|
|
5
|
+
export declare function mergeProps<TProps extends Record<string, unknown>, TDefault extends TProps>(props: TProps, defaultProps: TDefault): TDefault & FilteredProps<TProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-theme-tokens';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as styles from './common';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PermissionCheckMode } from '@vef-framework-react/core';
|
|
2
|
+
import { AnyObject, Awaitable, EmptyObject, If, IsNever, LiteralUnion, Simplify } from '@vef-framework-react/shared';
|
|
3
|
+
import { ReactNode, Ref } from 'react';
|
|
4
|
+
import { ButtonColor, ButtonVariant } from '../../button';
|
|
5
|
+
import { colors, fullSizes, presetColors, semanticColors, semanticScenes, sizes } from '../constants';
|
|
6
|
+
export type PresetColor = (typeof presetColors)[number];
|
|
7
|
+
export type SemanticScene = (typeof semanticScenes)[number];
|
|
8
|
+
export type SemanticColor = (typeof semanticColors)[number];
|
|
9
|
+
export type Color = Simplify<PresetColor | SemanticColor>;
|
|
10
|
+
export type Colors = typeof colors;
|
|
11
|
+
export type Size = (typeof sizes)[number];
|
|
12
|
+
export type FullSize = (typeof fullSizes)[number];
|
|
13
|
+
export type Orientation = "horizontal" | "vertical";
|
|
14
|
+
export type ActionConfirmMode = "popover" | "dialog";
|
|
15
|
+
export type Length = string | number;
|
|
16
|
+
export type ActionButtonMaybeComputed<TContext, TValue> = If<IsNever<TContext>, TValue, TValue | ((context: TContext) => TValue)>;
|
|
17
|
+
export type SizeableLength<TSize extends FullSize | Size> = LiteralUnion<TSize, Length>;
|
|
18
|
+
export type { GetProp, GetProps, GetRef } from 'antd';
|
|
19
|
+
export type PropsWithRef<TRef, TProps extends AnyObject = EmptyObject> = TProps & {
|
|
20
|
+
ref?: Ref<TRef>;
|
|
21
|
+
};
|
|
22
|
+
export interface Position {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
}
|
|
26
|
+
export interface ActionButtonConfig<TContext = never> {
|
|
27
|
+
key: string;
|
|
28
|
+
label: string;
|
|
29
|
+
disabled?: ActionButtonMaybeComputed<TContext, boolean>;
|
|
30
|
+
hidden?: ActionButtonMaybeComputed<TContext, boolean>;
|
|
31
|
+
color?: ButtonColor;
|
|
32
|
+
variant?: ButtonVariant;
|
|
33
|
+
icon?: ReactNode;
|
|
34
|
+
permTokens?: string[];
|
|
35
|
+
checkMode?: PermissionCheckMode;
|
|
36
|
+
confirmable?: ActionButtonMaybeComputed<TContext, boolean>;
|
|
37
|
+
confirmMode?: ActionButtonMaybeComputed<TContext, ActionConfirmMode>;
|
|
38
|
+
confirmTitle?: ActionButtonMaybeComputed<TContext, ReactNode>;
|
|
39
|
+
confirmDescription?: ActionButtonMaybeComputed<TContext, ReactNode>;
|
|
40
|
+
onClick: (context: If<IsNever<TContext>, void, TContext>) => Awaitable<void>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ActionButtonProps } from './props';
|
|
2
|
+
export declare function ActionButton({ confirmable, confirmMode, confirmTitle, confirmDescription, onClick, ...props }: ActionButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { type ActionButtonProps } from './props';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Awaitable, Except, SetReturnType } from '@vef-framework-react/shared';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ActionConfirmMode, GetProp } from '../_base';
|
|
4
|
+
import { ButtonProps } from '../button';
|
|
5
|
+
/**
|
|
6
|
+
* The props for the ActionButton component.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link ButtonProps}
|
|
9
|
+
*/
|
|
10
|
+
export interface ActionButtonProps extends Except<ButtonProps, "loading" | "onClick"> {
|
|
11
|
+
/**
|
|
12
|
+
* Whether the action requires confirm before execution.
|
|
13
|
+
*
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
confirmable?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The confirm mode for the action.
|
|
19
|
+
*
|
|
20
|
+
* @default "popover"
|
|
21
|
+
*/
|
|
22
|
+
confirmMode?: ActionConfirmMode;
|
|
23
|
+
/**
|
|
24
|
+
* The title of the confirm dialog.
|
|
25
|
+
*
|
|
26
|
+
* @default "确认提示"
|
|
27
|
+
*/
|
|
28
|
+
confirmTitle?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* The description of the confirm dialog.
|
|
31
|
+
*
|
|
32
|
+
* @default "确定要执行此操作吗?"
|
|
33
|
+
*/
|
|
34
|
+
confirmDescription?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* The click handler that supports async operations.
|
|
37
|
+
*/
|
|
38
|
+
onClick?: SetReturnType<GetProp<ButtonProps, "onClick">, Awaitable<void>>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Except, SetRequired } from '@vef-framework-react/shared';
|
|
2
|
+
import { MouseEvent, MouseEventHandler } from 'react';
|
|
3
|
+
import { ButtonProps } from '../button';
|
|
4
|
+
import { ActionButtonProps } from './props';
|
|
5
|
+
type UseActionButtonOptions = SetRequired<Except<ActionButtonProps, keyof Except<ButtonProps, "loading" | "onClick">>, "confirmable" | "confirmMode" | "confirmTitle" | "confirmDescription">;
|
|
6
|
+
interface UseActionButtonReturn {
|
|
7
|
+
loading: boolean;
|
|
8
|
+
invokeClickAction: (event: MouseEvent<HTMLElement>, waitForActionDone?: boolean) => Promise<void>;
|
|
9
|
+
handleClick: MouseEventHandler<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
export declare function useActionButton({ confirmable, confirmMode, confirmTitle, confirmDescription, onClick }: UseActionButtonOptions): UseActionButtonReturn;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmptyObject, If, IsNever } from '@vef-framework-react/shared';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ActionGroupProps } from './props';
|
|
4
|
+
export declare function ActionGroup<TContext = never>(props: ActionGroupProps<TContext> & If<IsNever<TContext>, EmptyObject, {
|
|
5
|
+
context: TContext;
|
|
6
|
+
}>): ReactNode;
|
|
7
|
+
export { type ActionGroupProps } from './props';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ActionButtonConfig } from '../_base';
|
|
3
|
+
import { ButtonProps } from '../button';
|
|
4
|
+
/**
|
|
5
|
+
* The props of the action group.
|
|
6
|
+
*
|
|
7
|
+
* @template T - The context type of the action group.
|
|
8
|
+
*/
|
|
9
|
+
export interface ActionGroupProps<T = never> extends Pick<ButtonProps, "size"> {
|
|
10
|
+
/**
|
|
11
|
+
* The buttons of the action group.
|
|
12
|
+
*/
|
|
13
|
+
buttons: Array<ActionButtonConfig<T>>;
|
|
14
|
+
/**
|
|
15
|
+
* The render wrapper of the action group.
|
|
16
|
+
*/
|
|
17
|
+
renderWrapper?: (buttonsNode: ReactNode) => ReactNode;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EmptyObject, If, IsNever } from '@vef-framework-react/shared';
|
|
2
|
+
import { ActionGroupProps } from './props';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
export declare function useActionGroup<TContext>(props: ActionGroupProps<TContext> & If<IsNever<TContext>, EmptyObject, {
|
|
5
|
+
context: TContext;
|
|
6
|
+
}>): {
|
|
7
|
+
buttonNodes: ReactNode[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ActionButtonConfig } from '../_base';
|
|
4
|
+
/**
|
|
5
|
+
* The hook to compute the action buttons.
|
|
6
|
+
*
|
|
7
|
+
* @param buttons - The action button configs.
|
|
8
|
+
* @param size - The button size.
|
|
9
|
+
* @param context - The context.
|
|
10
|
+
* @returns The computed action buttons.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useComputedActionButtons<TContext>(buttons: Array<ActionButtonConfig<TContext>>, size: SizeType, context: TContext): ReactNode[];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { Size } from '../_base';
|
|
3
|
+
/**
|
|
4
|
+
* The variant of the Bool component
|
|
5
|
+
*/
|
|
6
|
+
export type BoolVariant = "radio" | "radio-button" | "switch" | "checkbox";
|
|
7
|
+
/**
|
|
8
|
+
* The props for the `Bool` component
|
|
9
|
+
*/
|
|
10
|
+
export interface BoolProps {
|
|
11
|
+
/**
|
|
12
|
+
* The class name of the component.
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The style of the component.
|
|
17
|
+
*/
|
|
18
|
+
style?: CSSProperties;
|
|
19
|
+
/**
|
|
20
|
+
* The value of the component (controlled).
|
|
21
|
+
*/
|
|
22
|
+
value?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The default value of the component (uncontrolled).
|
|
25
|
+
*/
|
|
26
|
+
defaultValue?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The variant of the component.
|
|
29
|
+
*
|
|
30
|
+
* @default "switch"
|
|
31
|
+
*/
|
|
32
|
+
variant?: BoolVariant;
|
|
33
|
+
/**
|
|
34
|
+
* The label for the true/checked state.
|
|
35
|
+
* - For radio variant: displayed on the true radio option
|
|
36
|
+
* - For radio-button variant: displayed on the true button
|
|
37
|
+
* - For switch variant: displayed inside the switch when checked
|
|
38
|
+
*
|
|
39
|
+
* @default "是"
|
|
40
|
+
*/
|
|
41
|
+
trueLabel?: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* The label for the false/unchecked state.
|
|
44
|
+
* - For radio variant: displayed on the false radio option
|
|
45
|
+
* - For radio-button variant: displayed on the false button
|
|
46
|
+
* - For switch variant: displayed inside the switch when unchecked
|
|
47
|
+
*
|
|
48
|
+
* @default "否"
|
|
49
|
+
*/
|
|
50
|
+
falseLabel?: ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the component is disabled.
|
|
53
|
+
*/
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The size of the component.
|
|
57
|
+
*/
|
|
58
|
+
size?: Size;
|
|
59
|
+
/**
|
|
60
|
+
* The callback function when the value changes.
|
|
61
|
+
*/
|
|
62
|
+
onChange?: (value: boolean) => void;
|
|
63
|
+
/**
|
|
64
|
+
* The label text for switch/checkbox variants.
|
|
65
|
+
*/
|
|
66
|
+
children?: ReactNode;
|
|
67
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ItemType } from 'antd/es/breadcrumb/Breadcrumb';
|
|
2
|
+
export { Breadcrumb } from 'antd';
|
|
3
|
+
export type { BreadcrumbProps } from 'antd';
|
|
4
|
+
export type BreadcrumbItem = ItemType;
|
|
5
|
+
export { type BreadcrumbItemType, type BreadcrumbSeparatorType } from 'antd/es/breadcrumb/Breadcrumb';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PropsWithRef } from '../_base';
|
|
2
|
+
import { CenterProps } from './props';
|
|
3
|
+
export declare function Center({ ref, children, gap, ...props }: PropsWithRef<HTMLDivElement, CenterProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { type CenterProps } from './props';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Except, LiteralUnion } from '@vef-framework-react/shared';
|
|
2
|
+
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
|
+
import { CSSProperties } from 'react';
|
|
4
|
+
import { FlexProps } from '../flex';
|
|
5
|
+
/**
|
|
6
|
+
* The props for the center component.
|
|
7
|
+
*/
|
|
8
|
+
export interface CenterProps extends Except<FlexProps, "vertical" | "gap" | "justify" | "align"> {
|
|
9
|
+
/**
|
|
10
|
+
* The gap between the items.
|
|
11
|
+
*/
|
|
12
|
+
gap?: LiteralUnion<SizeType, CSSProperties["gap"]>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties, MemoExoticComponent } from 'react';
|
|
2
|
+
import { PropsWithRef } from '../_base';
|
|
3
|
+
import { UseChartOptions } from './hooks';
|
|
4
|
+
export interface ChartProps extends UseChartOptions {
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
deepMemo?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function ChartComponent({ className, style, ref, deepMemo: _deepMemo, ...options }: PropsWithRef<HTMLDivElement, ChartProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Chart: MemoExoticComponent<typeof ChartComponent>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { connectCharts, disconnectCharts } from './group';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AnyObject, Except } from '@vef-framework-react/shared';
|
|
2
|
+
import { ECharts, EChartsInitOpts, EChartsOption, SetOptionOpts } from 'echarts';
|
|
3
|
+
import { RefObject } from 'react';
|
|
4
|
+
export interface UseChartOptions extends Except<EChartsInitOpts, "width" | "height">, SetOptionOpts {
|
|
5
|
+
option: EChartsOption;
|
|
6
|
+
theme?: "walden" | "wonderland" | AnyObject;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
width?: number | "auto";
|
|
9
|
+
height?: number | "auto";
|
|
10
|
+
group?: string;
|
|
11
|
+
onReady?: (chart: ECharts) => void;
|
|
12
|
+
onBeforeDispose?: (chart: ECharts) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function useChart({ option, theme, loading, group, onReady, onBeforeDispose, notMerge, replaceMerge, lazyUpdate, silent, transition, renderer, devicePixelRatio, width, height, ssr, useCoarsePointer, useDirtyRect, pointerSize, locale }: UseChartOptions): RefObject<HTMLDivElement | null>;
|
|
15
|
+
export type { ECharts as ChartInstance, EChartsOption as ChartOption } from 'echarts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerWaldenDarkTheme(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerWaldenTheme(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerWonderlandDarkTheme(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerWonderlandTheme(): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CodeHighlighterProps } from './props';
|
|
2
|
+
export declare function CodeHighlighter({ children, language, showLineNumbers, startingLineNumber, wrapLines, wrapLongLines, className, style, customStyle, lineProps }: CodeHighlighterProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { type CodeHighlighterProps } from './props';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { SyntaxHighlighterProps } from 'react-syntax-highlighter';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the CodeHighlighter component.
|
|
5
|
+
*/
|
|
6
|
+
export interface CodeHighlighterProps {
|
|
7
|
+
/**
|
|
8
|
+
* The code string to highlight.
|
|
9
|
+
*/
|
|
10
|
+
children: string;
|
|
11
|
+
/**
|
|
12
|
+
* The programming language for syntax highlighting.
|
|
13
|
+
*
|
|
14
|
+
* @default "typescript"
|
|
15
|
+
*/
|
|
16
|
+
language?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to show line numbers.
|
|
19
|
+
*
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
showLineNumbers?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Starting line number when showLineNumbers is true.
|
|
25
|
+
*
|
|
26
|
+
* @default 1
|
|
27
|
+
*/
|
|
28
|
+
startingLineNumber?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to wrap long lines.
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
wrapLines?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to wrap long lines with a scrollbar instead of breaking them.
|
|
37
|
+
*
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
wrapLongLines?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Additional CSS class name for the component.
|
|
43
|
+
*/
|
|
44
|
+
className?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Custom CSS styles to apply to the component.
|
|
47
|
+
*/
|
|
48
|
+
style?: CSSProperties;
|
|
49
|
+
/**
|
|
50
|
+
* Custom style object for the syntax highlighter.
|
|
51
|
+
* You can import styles from 'react-syntax-highlighter/dist/esm/styles/prism'.
|
|
52
|
+
*/
|
|
53
|
+
customStyle?: CSSProperties;
|
|
54
|
+
/**
|
|
55
|
+
* Lines to highlight (e.g., [1, 3, 5] or "1,3,5-7").
|
|
56
|
+
*/
|
|
57
|
+
lineProps?: SyntaxHighlighterProps["lineProps"];
|
|
58
|
+
}
|