@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,25 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { Button as e } from "../../button/index.js";
|
|
3
|
+
import { useFormContext as t } from "../contexts/form-context.js";
|
|
4
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { useDisabled as r } from "@vef-framework-react/core";
|
|
6
|
+
//#region src/form/components/reset-button.tsx
|
|
7
|
+
function i({ children: i = "重置", disabled: a, loading: o, onReset: s, ...c }) {
|
|
8
|
+
let { Subscribe: l } = t(), u = r();
|
|
9
|
+
return /* @__PURE__ */ n(l, {
|
|
10
|
+
selector: (e) => e.isSubmitting,
|
|
11
|
+
children: (t) => {
|
|
12
|
+
let r = u || a || t;
|
|
13
|
+
return /* @__PURE__ */ n(e, {
|
|
14
|
+
...c,
|
|
15
|
+
disabled: o ? !1 : r,
|
|
16
|
+
htmlType: "reset",
|
|
17
|
+
loading: o,
|
|
18
|
+
onClick: s,
|
|
19
|
+
children: i
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { i as ResetButton };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { Button as e } from "../../button/index.js";
|
|
3
|
+
import { useFormContext as t } from "../contexts/form-context.js";
|
|
4
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { useDisabled as r } from "@vef-framework-react/core";
|
|
6
|
+
//#region src/form/components/submit-button.tsx
|
|
7
|
+
function i({ children: i = "提交", disabled: a, loading: o, onSubmit: s, ...c }) {
|
|
8
|
+
let { Subscribe: l } = t(), u = r();
|
|
9
|
+
return /* @__PURE__ */ n(l, {
|
|
10
|
+
selector: (e) => [!e.canSubmit, e.isSubmitting],
|
|
11
|
+
children: ([t, r]) => {
|
|
12
|
+
let l = r || o, d = u || t || a;
|
|
13
|
+
return /* @__PURE__ */ n(e, {
|
|
14
|
+
...c,
|
|
15
|
+
disabled: l ? !1 : d,
|
|
16
|
+
htmlType: "submit",
|
|
17
|
+
loading: l,
|
|
18
|
+
type: "primary",
|
|
19
|
+
onClick: s,
|
|
20
|
+
children: i
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { i as SubmitButton };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { createFormHookContexts as e } from "@tanstack/react-form";
|
|
3
|
+
//#region src/form/contexts/form-context.ts
|
|
4
|
+
var { formContext: t, fieldContext: n, useFormContext: r, useFieldContext: i } = e();
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as fieldContext, t as formContext, i as useFieldContext, r as useFormContext };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { createContext as e, use as t } from "react";
|
|
3
|
+
//#region src/form/contexts/form-layout.ts
|
|
4
|
+
var n = Object.freeze({
|
|
5
|
+
layout: "horizontal",
|
|
6
|
+
labelAlign: "right",
|
|
7
|
+
labelWidth: 100
|
|
8
|
+
}), r = e(n);
|
|
9
|
+
function i() {
|
|
10
|
+
return t(r);
|
|
11
|
+
}
|
|
12
|
+
var a = r.Provider;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { a as FormLayoutProvider, n as defaultFormLayout, i as useFormLayout };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
|
+
import { AutoComplete as t } from "../../../auto-complete/index.js";
|
|
4
|
+
import { useFieldContext as n } from "../../contexts/form-context.js";
|
|
5
|
+
import { withFormItem as r } from "../../helpers/with-form-item.js";
|
|
6
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { isEmpty as a } from "@vef-framework-react/shared";
|
|
8
|
+
import { useDisabled as o } from "@vef-framework-react/core";
|
|
9
|
+
//#region src/form/fields/auto-complete/index.tsx
|
|
10
|
+
function s({ disabled: r, preserveEmptyString: s = !1, ...c }) {
|
|
11
|
+
let { state: { value: l }, handleBlur: u, handleChange: d } = n(), f = o() || r;
|
|
12
|
+
return /* @__PURE__ */ i(t, {
|
|
13
|
+
...c,
|
|
14
|
+
css: e,
|
|
15
|
+
disabled: f,
|
|
16
|
+
value: l,
|
|
17
|
+
onBlur: u,
|
|
18
|
+
onChange: (e) => {
|
|
19
|
+
d(s || !a(e) ? e : null);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
var c = r("AutoCompleteField", s);
|
|
24
|
+
//#endregion
|
|
25
|
+
export { c as AutoCompleteField };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { Bool as e } from "../../../bool/index.js";
|
|
3
|
+
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
|
+
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useDisabled as i } from "@vef-framework-react/core";
|
|
7
|
+
//#region src/form/fields/bool/index.tsx
|
|
8
|
+
function a({ disabled: n, ...a }) {
|
|
9
|
+
let { state: { value: o }, handleChange: s } = t(), c = i() || n;
|
|
10
|
+
return /* @__PURE__ */ r(e, {
|
|
11
|
+
...a,
|
|
12
|
+
disabled: c,
|
|
13
|
+
value: o,
|
|
14
|
+
onChange: s
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
var o = n("BoolField", a);
|
|
18
|
+
//#endregion
|
|
19
|
+
export { o as BoolField };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
|
+
import { Cascader as t } from "../../../cascader/index.js";
|
|
4
|
+
import { useFieldContext as n } from "../../contexts/form-context.js";
|
|
5
|
+
import { withFormItem as r } from "../../helpers/with-form-item.js";
|
|
6
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { useDisabled as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/form/fields/cascader/index.tsx
|
|
9
|
+
function o({ disabled: r, ...o }) {
|
|
10
|
+
let { state: { value: s }, handleChange: c } = n(), l = a() || r;
|
|
11
|
+
return /* @__PURE__ */ i(t, {
|
|
12
|
+
...o,
|
|
13
|
+
css: e,
|
|
14
|
+
disabled: l,
|
|
15
|
+
value: s,
|
|
16
|
+
onChange: c
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
var s = r("CascaderField", o);
|
|
20
|
+
//#endregion
|
|
21
|
+
export { s as CascaderField };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { Checkbox as e } from "../../../checkbox/index.js";
|
|
3
|
+
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
|
+
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useDisabled as i } from "@vef-framework-react/core";
|
|
7
|
+
//#region src/form/fields/checkbox/index.tsx
|
|
8
|
+
function a({ disabled: n, ...a }) {
|
|
9
|
+
let { state: { value: o }, handleBlur: s, handleChange: c } = t(), l = i() || n;
|
|
10
|
+
return /* @__PURE__ */ r(e, {
|
|
11
|
+
...a,
|
|
12
|
+
checked: o,
|
|
13
|
+
disabled: l,
|
|
14
|
+
onBlur: s,
|
|
15
|
+
onChange: (e) => {
|
|
16
|
+
c(e.target.checked);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function o({ disabled: n, ...a }) {
|
|
21
|
+
let { state: { value: o }, handleChange: s } = t(), c = i() || n;
|
|
22
|
+
return /* @__PURE__ */ r(e.Group, {
|
|
23
|
+
...a,
|
|
24
|
+
disabled: c,
|
|
25
|
+
value: o,
|
|
26
|
+
onChange: s
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
var s = n("CheckboxField", a), c = n("CheckboxGroupField", o);
|
|
30
|
+
//#endregion
|
|
31
|
+
export { s as CheckboxField, c as CheckboxGroupField };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { ColorPicker as e } from "../../../color-picker/index.js";
|
|
3
|
+
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
|
+
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useDisabled as i } from "@vef-framework-react/core";
|
|
7
|
+
//#region src/form/fields/color-picker/index.tsx
|
|
8
|
+
function a({ disabled: n, ...a }) {
|
|
9
|
+
let { state: { value: o }, handleChange: s } = t(), c = i() || n;
|
|
10
|
+
return /* @__PURE__ */ r(e, {
|
|
11
|
+
...a,
|
|
12
|
+
disabled: c,
|
|
13
|
+
value: o,
|
|
14
|
+
onChange: s
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
var o = n("ColorPickerField", a);
|
|
18
|
+
//#endregion
|
|
19
|
+
export { o as ColorPickerField };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
|
+
import { DatePicker as t } from "../../../date-picker/index.js";
|
|
4
|
+
import { useFieldContext as n } from "../../contexts/form-context.js";
|
|
5
|
+
import { withFormItem as r } from "../../helpers/with-form-item.js";
|
|
6
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { useDisabled as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/form/fields/date-picker/index.tsx
|
|
9
|
+
function o({ disabled: r, ...o }) {
|
|
10
|
+
let { state: { value: s }, handleChange: c } = n(), l = a() || r;
|
|
11
|
+
return /* @__PURE__ */ i(t, {
|
|
12
|
+
...o,
|
|
13
|
+
css: e,
|
|
14
|
+
disabled: l,
|
|
15
|
+
value: s,
|
|
16
|
+
onChange: c
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
var s = r("DatePickerField", o);
|
|
20
|
+
//#endregion
|
|
21
|
+
export { s as DatePickerField };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
|
+
import { DatePicker as t } from "../../../date-picker/index.js";
|
|
4
|
+
import { useFieldContext as n } from "../../contexts/form-context.js";
|
|
5
|
+
import { withFormItem as r } from "../../helpers/with-form-item.js";
|
|
6
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { useDisabled as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/form/fields/date-range-picker/index.tsx
|
|
9
|
+
function o({ disabled: r, ...o }) {
|
|
10
|
+
let { state: { value: s }, handleChange: c } = n(), l = a() || r;
|
|
11
|
+
return /* @__PURE__ */ i(t.RangePicker, {
|
|
12
|
+
...o,
|
|
13
|
+
css: e,
|
|
14
|
+
disabled: l,
|
|
15
|
+
value: s,
|
|
16
|
+
onChange: c
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
var s = r("DateRangePickerField", o);
|
|
20
|
+
//#endregion
|
|
21
|
+
export { s as DateRangePickerField };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { AutoCompleteField as e } from "./auto-complete/index.js";
|
|
3
|
+
import { BoolField as t } from "./bool/index.js";
|
|
4
|
+
import { CascaderField as n } from "./cascader/index.js";
|
|
5
|
+
import { CheckboxField as r, CheckboxGroupField as i } from "./checkbox/index.js";
|
|
6
|
+
import { ColorPickerField as a } from "./color-picker/index.js";
|
|
7
|
+
import { DatePickerField as o } from "./date-picker/index.js";
|
|
8
|
+
import { DateRangePickerField as s } from "./date-range-picker/index.js";
|
|
9
|
+
import { InputField as c } from "./input/index.js";
|
|
10
|
+
import { InputNumberField as l } from "./input-number/index.js";
|
|
11
|
+
import { MentionsField as u } from "./mentions/index.js";
|
|
12
|
+
import { PasswordField as d } from "./password/index.js";
|
|
13
|
+
import { RadioField as f } from "./radio/index.js";
|
|
14
|
+
import { RateField as p } from "./rate/index.js";
|
|
15
|
+
import { SelectField as m } from "./select/index.js";
|
|
16
|
+
import { SliderField as h } from "./slider/index.js";
|
|
17
|
+
import { TextAreaField as g } from "./textarea/index.js";
|
|
18
|
+
import { TimePickerField as _ } from "./time-picker/index.js";
|
|
19
|
+
import { TimeRangePickerField as v } from "./time-range-picker/index.js";
|
|
20
|
+
import { TransferField as y } from "./transfer/index.js";
|
|
21
|
+
import { TreeSelectField as b } from "./tree-select/index.js";
|
|
22
|
+
import { UploadField as x } from "./upload/index.js";
|
|
23
|
+
//#region src/form/fields/index.ts
|
|
24
|
+
var S = {
|
|
25
|
+
AutoComplete: e,
|
|
26
|
+
Bool: t,
|
|
27
|
+
Cascader: n,
|
|
28
|
+
Checkbox: r,
|
|
29
|
+
CheckboxGroup: i,
|
|
30
|
+
ColorPicker: a,
|
|
31
|
+
DatePicker: o,
|
|
32
|
+
DateRangePicker: s,
|
|
33
|
+
Input: c,
|
|
34
|
+
InputNumber: l,
|
|
35
|
+
Mentions: u,
|
|
36
|
+
Password: d,
|
|
37
|
+
Radio: f,
|
|
38
|
+
Rate: p,
|
|
39
|
+
Select: m,
|
|
40
|
+
Slider: h,
|
|
41
|
+
TextArea: g,
|
|
42
|
+
TimePicker: _,
|
|
43
|
+
TimeRangePicker: v,
|
|
44
|
+
Transfer: y,
|
|
45
|
+
TreeSelect: b,
|
|
46
|
+
Upload: x
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { S as fieldComponents };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
|
+
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
|
+
import { Input as n } from "../../../input/index.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { isEmpty as i } from "@vef-framework-react/shared";
|
|
7
|
+
import { useDisabled as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/form/fields/input/index.tsx
|
|
9
|
+
function o({ disabled: t, preserveEmptyString: o = !1, ...s }) {
|
|
10
|
+
let { state: { value: c }, handleBlur: l, handleChange: u } = e(), d = a() || t;
|
|
11
|
+
return /* @__PURE__ */ r(n, {
|
|
12
|
+
...s,
|
|
13
|
+
disabled: d,
|
|
14
|
+
value: c,
|
|
15
|
+
onBlur: l,
|
|
16
|
+
onChange: (e) => {
|
|
17
|
+
let t = e.currentTarget.value;
|
|
18
|
+
u(o || !i(t) ? t : null);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
var s = t("InputField", o);
|
|
23
|
+
//#endregion
|
|
24
|
+
export { s as InputField };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
|
+
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
|
+
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
|
+
import { InputNumber as r } from "../../../input-number/index.js";
|
|
6
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { useDisabled as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/form/fields/input-number/index.tsx
|
|
9
|
+
function o({ disabled: n, ...o }) {
|
|
10
|
+
let { state: { value: s }, handleBlur: c, handleChange: l } = t(), u = a() || n;
|
|
11
|
+
return /* @__PURE__ */ i(r, {
|
|
12
|
+
...o,
|
|
13
|
+
css: e,
|
|
14
|
+
disabled: u,
|
|
15
|
+
value: s,
|
|
16
|
+
onBlur: c,
|
|
17
|
+
onChange: l
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
var s = n("InputNumberField", o);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { s as InputNumberField };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
|
+
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
|
+
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
|
+
import { Mentions as r } from "../../../mentions/index.js";
|
|
6
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { useDisabled as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/form/fields/mentions/index.tsx
|
|
9
|
+
function o({ disabled: n, ...o }) {
|
|
10
|
+
let { state: { value: s }, handleBlur: c, handleChange: l } = t(), u = a() || n;
|
|
11
|
+
return /* @__PURE__ */ i(r, {
|
|
12
|
+
...o,
|
|
13
|
+
css: e,
|
|
14
|
+
disabled: u,
|
|
15
|
+
value: s,
|
|
16
|
+
onBlur: c,
|
|
17
|
+
onChange: l
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
var s = n("MentionsField", o);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { s as MentionsField };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
|
+
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
|
+
import { Input as n } from "../../../input/index.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { isEmpty as i } from "@vef-framework-react/shared";
|
|
7
|
+
import { useDisabled as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/form/fields/password/index.tsx
|
|
9
|
+
function o({ disabled: t, preserveEmptyString: o = !1, ...s }) {
|
|
10
|
+
let { state: { value: c }, handleBlur: l, handleChange: u } = e(), d = a() || t;
|
|
11
|
+
return /* @__PURE__ */ r(n.Password, {
|
|
12
|
+
...s,
|
|
13
|
+
disabled: d,
|
|
14
|
+
value: c,
|
|
15
|
+
onBlur: l,
|
|
16
|
+
onChange: (e) => {
|
|
17
|
+
let t = e.currentTarget.value;
|
|
18
|
+
u(o || !i(t) ? t : null);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
var s = t("PasswordField", o);
|
|
23
|
+
//#endregion
|
|
24
|
+
export { s as PasswordField };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { Radio as e } from "../../../radio/index.js";
|
|
3
|
+
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
|
+
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useDisabled as i } from "@vef-framework-react/core";
|
|
7
|
+
//#region src/form/fields/radio/index.tsx
|
|
8
|
+
function a({ disabled: n, ...a }) {
|
|
9
|
+
let { state: { value: o }, handleBlur: s, handleChange: c } = t(), l = i() || n;
|
|
10
|
+
return /* @__PURE__ */ r(e.Group, {
|
|
11
|
+
...a,
|
|
12
|
+
disabled: l,
|
|
13
|
+
value: o,
|
|
14
|
+
onBlur: s,
|
|
15
|
+
onChange: (e) => {
|
|
16
|
+
c(e.target.value);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
var o = n("RadioField", a);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { o as RadioField };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
|
+
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
|
+
import { Rate as n } from "../../../rate/index.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useDisabled as i } from "@vef-framework-react/core";
|
|
7
|
+
//#region src/form/fields/rate/index.tsx
|
|
8
|
+
function a({ disabled: t, ...a }) {
|
|
9
|
+
let { state: { value: o }, handleBlur: s, handleChange: c } = e(), l = i() || t;
|
|
10
|
+
return /* @__PURE__ */ r(n, {
|
|
11
|
+
...a,
|
|
12
|
+
disabled: l,
|
|
13
|
+
value: o,
|
|
14
|
+
onBlur: s,
|
|
15
|
+
onChange: c
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
var o = t("RateField", a);
|
|
19
|
+
//#endregion
|
|
20
|
+
export { o as RateField };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
|
+
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
|
+
import { Select as n } from "../../../select/index.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useDisabled as i } from "@vef-framework-react/core";
|
|
7
|
+
//#region src/form/fields/select/index.tsx
|
|
8
|
+
function a({ disabled: t, ...a }) {
|
|
9
|
+
let { state: { value: o }, handleBlur: s, handleChange: c } = e(), l = i() || t;
|
|
10
|
+
return /* @__PURE__ */ r(n, {
|
|
11
|
+
...a,
|
|
12
|
+
disabled: l,
|
|
13
|
+
value: o,
|
|
14
|
+
onBlur: s,
|
|
15
|
+
onChange: c
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
var o = t("SelectField", a);
|
|
19
|
+
//#endregion
|
|
20
|
+
export { o as SelectField };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
|
+
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
|
+
import { Slider as n } from "../../../slider/index.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useDisabled as i } from "@vef-framework-react/core";
|
|
7
|
+
//#region src/form/fields/slider/index.tsx
|
|
8
|
+
function a({ disabled: t, ...a }) {
|
|
9
|
+
let { state: { value: o }, handleChange: s } = e(), c = i() || t;
|
|
10
|
+
return /* @__PURE__ */ r(n, {
|
|
11
|
+
...a,
|
|
12
|
+
disabled: c,
|
|
13
|
+
value: o,
|
|
14
|
+
onChange: s
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
var o = t("SliderField", a);
|
|
18
|
+
//#endregion
|
|
19
|
+
export { o as SliderField };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
|
+
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
|
+
import { Input as n } from "../../../input/index.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { isEmpty as i } from "@vef-framework-react/shared";
|
|
7
|
+
import { useDisabled as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/form/fields/textarea/index.tsx
|
|
9
|
+
function o({ disabled: t, preserveEmptyString: o = !1, ...s }) {
|
|
10
|
+
let { state: { value: c }, handleBlur: l, handleChange: u } = e(), d = a() || t;
|
|
11
|
+
return /* @__PURE__ */ r(n.TextArea, {
|
|
12
|
+
...s,
|
|
13
|
+
disabled: d,
|
|
14
|
+
value: c,
|
|
15
|
+
onBlur: l,
|
|
16
|
+
onChange: (e) => {
|
|
17
|
+
let t = e.currentTarget.value;
|
|
18
|
+
u(o || !i(t) ? t : null);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
var s = t("TextAreaField", o);
|
|
23
|
+
//#endregion
|
|
24
|
+
export { s as TextAreaField };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
|
+
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
|
+
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
|
+
import { TimePicker as r } from "../../../time-picker/index.js";
|
|
6
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { useDisabled as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/form/fields/time-picker/index.tsx
|
|
9
|
+
function o({ disabled: n, ...o }) {
|
|
10
|
+
let { state: { value: s }, handleChange: c } = t(), l = a() || n;
|
|
11
|
+
return /* @__PURE__ */ i(r, {
|
|
12
|
+
...o,
|
|
13
|
+
css: e,
|
|
14
|
+
disabled: l,
|
|
15
|
+
value: s,
|
|
16
|
+
onChange: c
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
var s = n("TimePickerField", o);
|
|
20
|
+
//#endregion
|
|
21
|
+
export { s as TimePickerField };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
|
+
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
|
+
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
|
+
import { TimePicker as r } from "../../../time-picker/index.js";
|
|
6
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { useDisabled as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/form/fields/time-range-picker/index.tsx
|
|
9
|
+
function o({ disabled: n, ...o }) {
|
|
10
|
+
let { state: { value: s }, handleChange: c } = t(), l = a() || n;
|
|
11
|
+
return /* @__PURE__ */ i(r.RangePicker, {
|
|
12
|
+
...o,
|
|
13
|
+
css: e,
|
|
14
|
+
disabled: l,
|
|
15
|
+
value: s,
|
|
16
|
+
onChange: c
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
var s = n("TimeRangePickerField", o);
|
|
20
|
+
//#endregion
|
|
21
|
+
export { s as TimeRangePickerField };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
|
+
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
|
+
import { Transfer as n } from "../../../transfer/index.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useDisabled as i } from "@vef-framework-react/core";
|
|
7
|
+
//#region src/form/fields/transfer/index.tsx
|
|
8
|
+
function a({ disabled: t, ...a }) {
|
|
9
|
+
let { state: { value: o }, handleChange: s } = e(), c = i() || t;
|
|
10
|
+
return /* @__PURE__ */ r(n, {
|
|
11
|
+
...a,
|
|
12
|
+
disabled: c,
|
|
13
|
+
targetKeys: o,
|
|
14
|
+
onChange: (e) => {
|
|
15
|
+
s(e);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
var o = t("TransferField", a);
|
|
20
|
+
//#endregion
|
|
21
|
+
export { o as TransferField };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
|
+
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
|
+
import { TreeSelect as n } from "../../../tree-select/index.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useDisabled as i } from "@vef-framework-react/core";
|
|
7
|
+
//#region src/form/fields/tree-select/index.tsx
|
|
8
|
+
function a({ disabled: t, ...a }) {
|
|
9
|
+
let { state: { value: o }, handleChange: s } = e(), c = i() || t;
|
|
10
|
+
return /* @__PURE__ */ r(n, {
|
|
11
|
+
...a,
|
|
12
|
+
disabled: c,
|
|
13
|
+
value: o,
|
|
14
|
+
onChange: s
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
var o = t("TreeSelectField", a);
|
|
18
|
+
//#endregion
|
|
19
|
+
export { o as TreeSelectField };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
|
+
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
|
+
import { Upload as n } from "../../../upload/index.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { getBaseName as i, isArray as a } from "@vef-framework-react/shared";
|
|
7
|
+
import { useEffect as o, useMemo as s, useState as c } from "react";
|
|
8
|
+
import { useAppContext as l, useDisabled as u } from "@vef-framework-react/core";
|
|
9
|
+
//#region src/form/fields/upload/index.tsx
|
|
10
|
+
var d = /(?<!https?:)\/\//g;
|
|
11
|
+
function f({ disabled: t, maxCount: f, ...p }) {
|
|
12
|
+
let { state: { value: m }, handleChange: h } = e(), { fileBaseUrl: g } = l(), _ = u() || t, v = s(() => (a(m) ? m : m ? [m] : []).map((e) => {
|
|
13
|
+
let t = i(e);
|
|
14
|
+
return {
|
|
15
|
+
uid: e,
|
|
16
|
+
url: `${g}/${e}`.replaceAll(d, "/"),
|
|
17
|
+
name: t,
|
|
18
|
+
status: "done"
|
|
19
|
+
};
|
|
20
|
+
}), [m, g]), [y, b] = c(v);
|
|
21
|
+
return o(() => {
|
|
22
|
+
b((e) => [...v, ...e.filter((e) => e.status !== "done")]);
|
|
23
|
+
}, [v]), /* @__PURE__ */ r(n, {
|
|
24
|
+
...p,
|
|
25
|
+
disabled: _,
|
|
26
|
+
fileList: y,
|
|
27
|
+
maxCount: f,
|
|
28
|
+
onChange: ({ fileList: e }) => {
|
|
29
|
+
b(e);
|
|
30
|
+
let t = e.filter((e) => e.status === "done").map((e) => e.key);
|
|
31
|
+
h((f ?? Infinity) > 1 ? t : t.length > 0 ? t[0] : null);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
var p = t("UploadField", f);
|
|
36
|
+
//#endregion
|
|
37
|
+
export { p as UploadField };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { fieldContext as e, formContext as t, useFormContext as n } from "./contexts/form-context.js";
|
|
3
|
+
import { formComponents as r } from "./components/index.js";
|
|
4
|
+
import { fieldComponents as i } from "./fields/index.js";
|
|
5
|
+
import { createFormHook as a, formOptions as o, useStore as s } from "@tanstack/react-form";
|
|
6
|
+
//#region src/form/form.ts
|
|
7
|
+
var { useAppForm: c, withForm: l, withFieldGroup: u } = a({
|
|
8
|
+
formContext: t,
|
|
9
|
+
fieldContext: e,
|
|
10
|
+
fieldComponents: i,
|
|
11
|
+
formComponents: r
|
|
12
|
+
}), d = n;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { o as createFormOptions, c as useAppForm, d as useFormContext, s as useFormStore, u as withFieldGroup, l as withForm };
|