@vef-framework/components 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_base/constants/breakpoints.cjs +1 -16
- package/dist/cjs/_base/constants/common.cjs +1 -36
- package/dist/cjs/_base/constants/css-vars.cjs +1 -680
- package/dist/cjs/_base/constants/index.cjs +1 -21
- package/dist/cjs/_base/helpers/breakpoints.cjs +1 -30
- package/dist/cjs/_base/helpers/color.cjs +1 -16
- package/dist/cjs/_base/helpers/common.cjs +1 -22
- package/dist/cjs/_base/helpers/index.cjs +1 -40
- package/dist/cjs/_base/helpers/message.cjs +1 -53
- package/dist/cjs/_base/helpers/modal.cjs +1 -122
- package/dist/cjs/_base/helpers/notification.cjs +1 -72
- package/dist/cjs/_base/helpers/props.cjs +1 -19
- package/dist/cjs/_base/helpers/react.cjs +1 -12
- package/dist/cjs/_base/hooks/index.cjs +1 -10
- package/dist/cjs/_base/hooks/use-theme-tokens.cjs +1 -18
- package/dist/cjs/_base/index.cjs +1 -9
- package/dist/cjs/_base/styles/common.cjs +1 -29
- package/dist/cjs/_base/styles/index.cjs +1 -10
- package/dist/cjs/_base/types/breakpoints.cjs +1 -3
- package/dist/cjs/_base/types/common.cjs +1 -3
- package/dist/cjs/_base/types/index.cjs +1 -6
- package/dist/cjs/action-button/index.cjs +1 -50
- package/dist/cjs/action-button/props.cjs +1 -3
- package/dist/cjs/action-button/use-action-button.cjs +1 -58
- package/dist/cjs/action-group/index.cjs +1 -28
- package/dist/cjs/action-group/props.cjs +1 -3
- package/dist/cjs/action-group/use-action-group.cjs +1 -22
- package/dist/cjs/action-group/use-computed-action-buttons.cjs +1 -43
- package/dist/cjs/affix/index.cjs +1 -13
- package/dist/cjs/alert/index.cjs +1 -13
- package/dist/cjs/anchor/index.cjs +1 -13
- package/dist/cjs/auto-complete/index.cjs +1 -13
- package/dist/cjs/avatar/index.cjs +1 -13
- package/dist/cjs/badge/index.cjs +1 -13
- package/dist/cjs/bool/index.cjs +1 -61
- package/dist/cjs/breadcrumb/index.cjs +1 -14
- package/dist/cjs/button/index.cjs +1 -13
- package/dist/cjs/calendar/index.cjs +1 -13
- package/dist/cjs/card/index.cjs +1 -13
- package/dist/cjs/carousel/index.cjs +1 -14
- package/dist/cjs/cascader/index.cjs +1 -13
- package/dist/cjs/center/index.cjs +1 -19
- package/dist/cjs/center/props.cjs +1 -3
- package/dist/cjs/charts/chart.cjs +1 -30
- package/dist/cjs/charts/helpers/group.cjs +1 -35
- package/dist/cjs/charts/helpers/index.cjs +1 -11
- package/dist/cjs/charts/hooks/index.cjs +1 -10
- package/dist/cjs/charts/hooks/use-chart.cjs +1 -176
- package/dist/cjs/charts/index.cjs +1 -12
- package/dist/cjs/charts/themes/index.cjs +1 -16
- package/dist/cjs/charts/themes/walden-dark.cjs +1 -400
- package/dist/cjs/charts/themes/walden.cjs +1 -365
- package/dist/cjs/charts/themes/wonderland-dark.cjs +1 -400
- package/dist/cjs/charts/themes/wonderland.cjs +1 -365
- package/dist/cjs/checkbox/index.cjs +1 -13
- package/dist/cjs/code-highlighter/index.cjs +1 -46
- package/dist/cjs/code-highlighter/props.cjs +1 -3
- package/dist/cjs/col/index.cjs +1 -13
- package/dist/cjs/collapse/index.cjs +1 -13
- package/dist/cjs/color-picker/index.cjs +1 -13
- package/dist/cjs/compact/index.cjs +1 -12
- package/dist/cjs/config-provider/app.cjs +1 -35
- package/dist/cjs/config-provider/context-holder.cjs +1 -29
- package/dist/cjs/config-provider/dark-mode-context.cjs +1 -15
- package/dist/cjs/config-provider/error-fallback.cjs +1 -19
- package/dist/cjs/config-provider/global-style.cjs +1 -14
- package/dist/cjs/config-provider/index.cjs +1 -58
- package/dist/cjs/config-provider/props.cjs +1 -3
- package/dist/cjs/config-provider/use-config-provider.cjs +1 -182
- package/dist/cjs/date-picker/index.cjs +1 -14
- package/dist/cjs/descriptions/index.cjs +1 -13
- package/dist/cjs/divider/index.cjs +1 -13
- package/dist/cjs/drawer/index.cjs +1 -13
- package/dist/cjs/dropdown/index.cjs +1 -13
- package/dist/cjs/dynamic-icon/index.cjs +1 -33
- package/dist/cjs/dynamic-icon/placeholder-icon.cjs +1 -17
- package/dist/cjs/dynamic-icon/props.cjs +1 -5
- package/dist/cjs/dynamic-icon/unknown-icon.cjs +1 -19
- package/dist/cjs/empty/empty.cjs +1 -16
- package/dist/cjs/empty/index.cjs +1 -10
- package/dist/cjs/flex/index.cjs +1 -13
- package/dist/cjs/flip-text/index.cjs +1 -63
- package/dist/cjs/flip-text/props.cjs +1 -3
- package/dist/cjs/float-button/index.cjs +1 -13
- package/dist/cjs/form/components/form.cjs +1 -41
- package/dist/cjs/form/components/index.cjs +1 -16
- package/dist/cjs/form/components/reset-button.cjs +1 -30
- package/dist/cjs/form/components/submit-button.cjs +1 -31
- package/dist/cjs/form/contexts/form-context.cjs +1 -18
- package/dist/cjs/form/contexts/form-layout.cjs +1 -23
- package/dist/cjs/form/contexts/index.cjs +1 -17
- package/dist/cjs/form/fields/auto-complete/index.cjs +1 -39
- package/dist/cjs/form/fields/auto-complete/props.cjs +1 -3
- package/dist/cjs/form/fields/bool/index.cjs +1 -31
- package/dist/cjs/form/fields/bool/props.cjs +1 -3
- package/dist/cjs/form/fields/cascader/index.cjs +1 -34
- package/dist/cjs/form/fields/cascader/props.cjs +1 -3
- package/dist/cjs/form/fields/checkbox/index.cjs +1 -51
- package/dist/cjs/form/fields/checkbox/props.cjs +1 -3
- package/dist/cjs/form/fields/color-picker/index.cjs +1 -32
- package/dist/cjs/form/fields/color-picker/props.cjs +1 -3
- package/dist/cjs/form/fields/date-picker/index.cjs +1 -34
- package/dist/cjs/form/fields/date-picker/props.cjs +1 -3
- package/dist/cjs/form/fields/date-range-picker/index.cjs +1 -34
- package/dist/cjs/form/fields/date-range-picker/props.cjs +1 -3
- package/dist/cjs/form/fields/index.cjs +1 -53
- package/dist/cjs/form/fields/input/index.cjs +1 -38
- package/dist/cjs/form/fields/input/props.cjs +1 -3
- package/dist/cjs/form/fields/input-number/index.cjs +1 -35
- package/dist/cjs/form/fields/input-number/props.cjs +1 -3
- package/dist/cjs/form/fields/mentions/index.cjs +1 -35
- package/dist/cjs/form/fields/mentions/props.cjs +1 -3
- package/dist/cjs/form/fields/password/index.cjs +1 -38
- package/dist/cjs/form/fields/password/props.cjs +1 -3
- package/dist/cjs/form/fields/radio/index.cjs +1 -35
- package/dist/cjs/form/fields/radio/props.cjs +1 -3
- package/dist/cjs/form/fields/rate/index.cjs +1 -33
- package/dist/cjs/form/fields/rate/props.cjs +1 -3
- package/dist/cjs/form/fields/select/index.cjs +1 -33
- package/dist/cjs/form/fields/select/props.cjs +1 -3
- package/dist/cjs/form/fields/slider/index.cjs +1 -32
- package/dist/cjs/form/fields/slider/props.cjs +1 -3
- package/dist/cjs/form/fields/textarea/index.cjs +1 -38
- package/dist/cjs/form/fields/textarea/props.cjs +1 -3
- package/dist/cjs/form/fields/time-picker/index.cjs +1 -34
- package/dist/cjs/form/fields/time-picker/props.cjs +1 -3
- package/dist/cjs/form/fields/time-range-picker/index.cjs +1 -34
- package/dist/cjs/form/fields/time-range-picker/props.cjs +1 -3
- package/dist/cjs/form/fields/transfer/index.cjs +1 -34
- package/dist/cjs/form/fields/transfer/props.cjs +1 -3
- package/dist/cjs/form/fields/tree-select/index.cjs +1 -32
- package/dist/cjs/form/fields/tree-select/props.cjs +1 -3
- package/dist/cjs/form/fields/upload/index.cjs +1 -61
- package/dist/cjs/form/fields/upload/props.cjs +1 -3
- package/dist/cjs/form/form.cjs +1 -35
- package/dist/cjs/form/helpers/index.cjs +1 -10
- package/dist/cjs/form/helpers/with-form-item.cjs +1 -50
- package/dist/cjs/form/hooks/use-form-item-props.cjs +1 -47
- package/dist/cjs/form/hooks/use-label-width.cjs +1 -23
- package/dist/cjs/form/index.cjs +1 -14
- package/dist/cjs/form/use-form.cjs +1 -29
- package/dist/cjs/grid/context.cjs +1 -19
- package/dist/cjs/grid/grid-item.cjs +1 -43
- package/dist/cjs/grid/hooks/index.cjs +1 -21
- package/dist/cjs/grid/hooks/use-container-breakpoints.cjs +1 -23
- package/dist/cjs/grid/hooks/use-container-width.cjs +1 -48
- package/dist/cjs/grid/hooks/use-grid-collapsed.cjs +1 -19
- package/dist/cjs/grid/hooks/use-normalized-gap.cjs +1 -47
- package/dist/cjs/grid/hooks/use-responsive-breakpoint.cjs +1 -19
- package/dist/cjs/grid/hooks/use-responsive-value.cjs +1 -35
- package/dist/cjs/grid/index.cjs +1 -140
- package/dist/cjs/grid/props.cjs +1 -3
- package/dist/cjs/grid/styles.cjs +1 -30
- package/dist/cjs/group/index.cjs +1 -20
- package/dist/cjs/group/props.cjs +1 -3
- package/dist/cjs/icon/index.cjs +1 -30
- package/dist/cjs/icon/props.cjs +1 -3
- package/dist/cjs/icon-button/index.cjs +1 -40
- package/dist/cjs/icon-button/props.cjs +1 -3
- package/dist/cjs/image/index.cjs +1 -13
- package/dist/cjs/index.cjs +1 -440
- package/dist/cjs/input/index.cjs +1 -13
- package/dist/cjs/input-number/index.cjs +1 -13
- package/dist/cjs/keyboard/index.cjs +1 -48
- package/dist/cjs/keyboard/props.cjs +1 -3
- package/dist/cjs/list/index.cjs +1 -13
- package/dist/cjs/loader/index.cjs +1 -48
- package/dist/cjs/loader/props.cjs +1 -3
- package/dist/cjs/mentions/index.cjs +1 -13
- package/dist/cjs/menu/index.cjs +1 -14
- package/dist/cjs/modal/index.cjs +1 -13
- package/dist/cjs/operation-button/index.cjs +1 -33
- package/dist/cjs/operation-button/props.cjs +1 -3
- package/dist/cjs/pagination/index.cjs +1 -13
- package/dist/cjs/permission-gate/index.cjs +1 -22
- package/dist/cjs/permission-gate/props.cjs +1 -3
- package/dist/cjs/popconfirm/index.cjs +1 -13
- package/dist/cjs/popover/index.cjs +1 -13
- package/dist/cjs/progress/index.cjs +1 -13
- package/dist/cjs/qrcode/index.cjs +1 -13
- package/dist/cjs/radio/index.cjs +1 -13
- package/dist/cjs/rate/index.cjs +1 -13
- package/dist/cjs/result/index.cjs +1 -13
- package/dist/cjs/row/index.cjs +1 -13
- package/dist/cjs/scroll-area/index.cjs +1 -69
- package/dist/cjs/scroll-area/props.cjs +1 -3
- package/dist/cjs/scroll-area/styles.cjs +1 -47
- package/dist/cjs/segmented/index.cjs +1 -13
- package/dist/cjs/select/hooks/index.cjs +1 -10
- package/dist/cjs/select/hooks/use-data-options-select.cjs +1 -70
- package/dist/cjs/select/index.cjs +1 -14
- package/dist/cjs/skeleton/index.cjs +1 -13
- package/dist/cjs/slider/index.cjs +1 -13
- package/dist/cjs/space/index.cjs +1 -10
- package/dist/cjs/space/space.cjs +1 -17
- package/dist/cjs/sparkles-text/index.cjs +1 -70
- package/dist/cjs/sparkles-text/props.cjs +1 -3
- package/dist/cjs/sparkles-text/sparkle.cjs +1 -44
- package/dist/cjs/spin/index.cjs +1 -13
- package/dist/cjs/split-text/index.cjs +1 -212
- package/dist/cjs/split-text/props.cjs +1 -3
- package/dist/cjs/splitter/index.cjs +1 -13
- package/dist/cjs/stack/index.cjs +1 -19
- package/dist/cjs/stack/props.cjs +1 -3
- package/dist/cjs/statistic/index.cjs +1 -13
- package/dist/cjs/steps/index.cjs +1 -13
- package/dist/cjs/switch/index.cjs +1 -13
- package/dist/cjs/table/index.cjs +1 -59
- package/dist/cjs/table/props.cjs +1 -3
- package/dist/cjs/table/use-pagination-props.cjs +1 -52
- package/dist/cjs/tabs/index.cjs +1 -13
- package/dist/cjs/tag/index.cjs +1 -13
- package/dist/cjs/time-picker/index.cjs +1 -13
- package/dist/cjs/timeline/index.cjs +1 -13
- package/dist/cjs/tooltip/index.cjs +1 -13
- package/dist/cjs/tour/index.cjs +1 -13
- package/dist/cjs/transfer/index.cjs +1 -13
- package/dist/cjs/tree/hooks/index.cjs +1 -10
- package/dist/cjs/tree/hooks/use-data-options-tree.cjs +1 -76
- package/dist/cjs/tree/index.cjs +1 -14
- package/dist/cjs/tree-select/hooks/index.cjs +1 -10
- package/dist/cjs/tree-select/hooks/use-data-options-tree-select.cjs +1 -70
- package/dist/cjs/tree-select/index.cjs +1 -14
- package/dist/cjs/typing-animation/index.cjs +1 -61
- package/dist/cjs/typing-animation/props.cjs +1 -3
- package/dist/cjs/typography/index.cjs +1 -22
- package/dist/cjs/upload/index.cjs +1 -83
- package/dist/cjs/upload/props.cjs +1 -3
- package/dist/cjs/watermark/index.cjs +1 -13
- package/dist/es/_base/constants/breakpoints.js +4 -4
- package/dist/es/_base/constants/common.js +19 -20
- package/dist/es/_base/constants/css-vars.js +4 -4
- package/dist/es/_base/constants/index.js +15 -4
- package/dist/es/_base/helpers/breakpoints.js +19 -23
- package/dist/es/_base/helpers/color.js +9 -9
- package/dist/es/_base/helpers/common.js +10 -15
- package/dist/es/_base/helpers/index.js +34 -9
- package/dist/es/_base/helpers/message.js +32 -29
- package/dist/es/_base/helpers/modal.js +82 -87
- package/dist/es/_base/helpers/notification.js +46 -44
- package/dist/es/_base/helpers/props.js +10 -10
- package/dist/es/_base/helpers/react.js +6 -7
- package/dist/es/_base/hooks/index.js +4 -2
- package/dist/es/_base/hooks/use-theme-tokens.js +10 -11
- package/dist/es/_base/index.js +5 -6
- package/dist/es/_base/styles/common.js +10 -11
- package/dist/es/_base/styles/index.js +4 -3
- package/dist/es/_base/types/breakpoints.js +1 -1
- package/dist/es/_base/types/common.js +1 -1
- package/dist/es/_base/types/index.js +2 -3
- package/dist/es/action-button/index.js +32 -38
- package/dist/es/action-button/props.js +1 -1
- package/dist/es/action-button/use-action-button.js +31 -39
- package/dist/es/action-group/index.js +14 -22
- package/dist/es/action-group/props.js +1 -1
- package/dist/es/action-group/use-action-group.js +10 -14
- package/dist/es/action-group/use-computed-action-buttons.js +25 -38
- package/dist/es/affix/index.js +4 -2
- package/dist/es/alert/index.js +4 -2
- package/dist/es/anchor/index.js +4 -2
- package/dist/es/auto-complete/index.js +4 -2
- package/dist/es/avatar/index.js +4 -2
- package/dist/es/badge/index.js +4 -2
- package/dist/es/bool/index.js +46 -53
- package/dist/es/breadcrumb/index.js +5 -3
- package/dist/es/button/index.js +4 -2
- package/dist/es/calendar/index.js +4 -2
- package/dist/es/card/index.js +4 -2
- package/dist/es/carousel/index.js +5 -3
- package/dist/es/cascader/index.js +4 -2
- package/dist/es/center/index.js +12 -13
- package/dist/es/center/props.js +1 -1
- package/dist/es/charts/chart.js +18 -25
- package/dist/es/charts/helpers/group.js +9 -9
- package/dist/es/charts/helpers/index.js +5 -2
- package/dist/es/charts/hooks/index.js +4 -2
- package/dist/es/charts/hooks/use-chart.js +97 -139
- package/dist/es/charts/index.js +6 -4
- package/dist/es/charts/themes/index.js +10 -5
- package/dist/es/charts/themes/walden-dark.js +29 -30
- package/dist/es/charts/themes/walden.js +29 -30
- package/dist/es/charts/themes/wonderland-dark.js +29 -30
- package/dist/es/charts/themes/wonderland.js +29 -30
- package/dist/es/checkbox/index.js +4 -2
- package/dist/es/code-highlighter/index.js +30 -34
- package/dist/es/code-highlighter/props.js +1 -1
- package/dist/es/col/index.js +4 -2
- package/dist/es/collapse/index.js +4 -2
- package/dist/es/color-picker/index.js +4 -2
- package/dist/es/compact/index.js +6 -7
- package/dist/es/config-provider/app.js +20 -26
- package/dist/es/config-provider/context-holder.js +18 -20
- package/dist/es/config-provider/dark-mode-context.js +8 -9
- package/dist/es/config-provider/error-fallback.js +10 -11
- package/dist/es/config-provider/global-style.js +9 -10
- package/dist/es/config-provider/index.js +36 -37
- package/dist/es/config-provider/props.js +1 -1
- package/dist/es/config-provider/use-config-provider.js +56 -75
- package/dist/es/date-picker/index.js +5 -3
- package/dist/es/descriptions/index.js +4 -2
- package/dist/es/divider/index.js +4 -2
- package/dist/es/drawer/index.js +4 -2
- package/dist/es/dropdown/index.js +4 -2
- package/dist/es/dynamic-icon/index.js +22 -25
- package/dist/es/dynamic-icon/placeholder-icon.js +10 -11
- package/dist/es/dynamic-icon/props.js +1 -2
- package/dist/es/dynamic-icon/unknown-icon.js +11 -12
- package/dist/es/empty/empty.js +9 -10
- package/dist/es/empty/index.js +4 -2
- package/dist/es/flex/index.js +4 -2
- package/dist/es/flip-text/index.js +30 -32
- package/dist/es/flip-text/props.js +1 -1
- package/dist/es/float-button/index.js +4 -2
- package/dist/es/form/components/form.js +28 -34
- package/dist/es/form/components/index.js +10 -11
- package/dist/es/form/components/reset-button.js +18 -23
- package/dist/es/form/components/submit-button.js +20 -23
- package/dist/es/form/contexts/form-context.js +12 -10
- package/dist/es/form/contexts/form-layout.js +12 -12
- package/dist/es/form/contexts/index.js +11 -3
- package/dist/es/form/fields/auto-complete/index.js +26 -29
- package/dist/es/form/fields/auto-complete/props.js +1 -1
- package/dist/es/form/fields/bool/index.js +19 -22
- package/dist/es/form/fields/bool/props.js +1 -1
- package/dist/es/form/fields/cascader/index.js +22 -25
- package/dist/es/form/fields/cascader/props.js +1 -1
- package/dist/es/form/fields/checkbox/index.js +30 -35
- package/dist/es/form/fields/checkbox/props.js +1 -1
- package/dist/es/form/fields/color-picker/index.js +20 -23
- package/dist/es/form/fields/color-picker/props.js +1 -1
- package/dist/es/form/fields/date-picker/index.js +22 -25
- package/dist/es/form/fields/date-picker/props.js +1 -1
- package/dist/es/form/fields/date-range-picker/index.js +22 -25
- package/dist/es/form/fields/date-range-picker/props.js +1 -1
- package/dist/es/form/fields/index.js +47 -48
- package/dist/es/form/fields/input/index.js +25 -28
- package/dist/es/form/fields/input/props.js +1 -1
- package/dist/es/form/fields/input-number/index.js +23 -26
- package/dist/es/form/fields/input-number/props.js +1 -1
- package/dist/es/form/fields/mentions/index.js +23 -26
- package/dist/es/form/fields/mentions/props.js +1 -1
- package/dist/es/form/fields/password/index.js +25 -28
- package/dist/es/form/fields/password/props.js +1 -1
- package/dist/es/form/fields/radio/index.js +22 -25
- package/dist/es/form/fields/radio/props.js +1 -1
- package/dist/es/form/fields/rate/index.js +21 -24
- package/dist/es/form/fields/rate/props.js +1 -1
- package/dist/es/form/fields/select/index.js +21 -24
- package/dist/es/form/fields/select/props.js +1 -1
- package/dist/es/form/fields/slider/index.js +20 -23
- package/dist/es/form/fields/slider/props.js +1 -1
- package/dist/es/form/fields/textarea/index.js +25 -28
- package/dist/es/form/fields/textarea/props.js +1 -1
- package/dist/es/form/fields/time-picker/index.js +22 -25
- package/dist/es/form/fields/time-picker/props.js +1 -1
- package/dist/es/form/fields/time-range-picker/index.js +22 -25
- package/dist/es/form/fields/time-range-picker/props.js +1 -1
- package/dist/es/form/fields/transfer/index.js +21 -24
- package/dist/es/form/fields/transfer/props.js +1 -1
- package/dist/es/form/fields/tree-select/index.js +20 -23
- package/dist/es/form/fields/tree-select/props.js +1 -1
- package/dist/es/form/fields/upload/index.js +39 -50
- package/dist/es/form/fields/upload/props.js +1 -1
- package/dist/es/form/form.js +23 -20
- package/dist/es/form/helpers/index.js +4 -2
- package/dist/es/form/helpers/with-form-item.js +33 -37
- package/dist/es/form/hooks/use-form-item-props.js +32 -39
- package/dist/es/form/hooks/use-label-width.js +11 -18
- package/dist/es/form/index.js +8 -3
- package/dist/es/form/use-form.js +16 -21
- package/dist/es/grid/context.js +10 -12
- package/dist/es/grid/grid-item.js +29 -32
- package/dist/es/grid/hooks/index.js +15 -7
- package/dist/es/grid/hooks/use-container-breakpoints.js +14 -18
- package/dist/es/grid/hooks/use-container-width.js +22 -38
- package/dist/es/grid/hooks/use-grid-collapsed.js +10 -11
- package/dist/es/grid/hooks/use-normalized-gap.js +30 -38
- package/dist/es/grid/hooks/use-responsive-breakpoint.js +10 -13
- package/dist/es/grid/hooks/use-responsive-value.js +22 -25
- package/dist/es/grid/index.js +86 -123
- package/dist/es/grid/props.js +1 -1
- package/dist/es/grid/styles.js +11 -12
- package/dist/es/group/index.js +13 -14
- package/dist/es/group/props.js +1 -1
- package/dist/es/icon/index.js +15 -16
- package/dist/es/icon/props.js +1 -1
- package/dist/es/icon-button/index.js +25 -26
- package/dist/es/icon-button/props.js +1 -1
- package/dist/es/image/index.js +4 -2
- package/dist/es/index.js +254 -115
- package/dist/es/input/index.js +4 -2
- package/dist/es/input-number/index.js +4 -2
- package/dist/es/keyboard/index.js +26 -29
- package/dist/es/keyboard/props.js +1 -1
- package/dist/es/list/index.js +4 -2
- package/dist/es/loader/index.js +31 -39
- package/dist/es/loader/props.js +1 -1
- package/dist/es/mentions/index.js +4 -2
- package/dist/es/menu/index.js +5 -3
- package/dist/es/modal/index.js +4 -2
- package/dist/es/operation-button/index.js +19 -23
- package/dist/es/operation-button/props.js +1 -1
- package/dist/es/pagination/index.js +4 -2
- package/dist/es/permission-gate/index.js +12 -16
- package/dist/es/permission-gate/props.js +1 -1
- package/dist/es/popconfirm/index.js +4 -2
- package/dist/es/popover/index.js +4 -2
- package/dist/es/progress/index.js +4 -2
- package/dist/es/qrcode/index.js +4 -2
- package/dist/es/radio/index.js +4 -2
- package/dist/es/rate/index.js +4 -2
- package/dist/es/result/index.js +4 -2
- package/dist/es/row/index.js +4 -2
- package/dist/es/scroll-area/index.js +47 -59
- package/dist/es/scroll-area/props.js +1 -1
- package/dist/es/scroll-area/styles.js +16 -17
- package/dist/es/segmented/index.js +4 -2
- package/dist/es/select/hooks/index.js +4 -2
- package/dist/es/select/hooks/use-data-options-select.js +47 -56
- package/dist/es/select/index.js +5 -3
- package/dist/es/skeleton/index.js +4 -2
- package/dist/es/slider/index.js +4 -2
- package/dist/es/space/index.js +4 -2
- package/dist/es/space/space.js +10 -11
- package/dist/es/sparkles-text/index.js +41 -50
- package/dist/es/sparkles-text/props.js +1 -1
- package/dist/es/sparkles-text/sparkle.js +23 -24
- package/dist/es/spin/index.js +4 -2
- package/dist/es/split-text/index.js +114 -158
- package/dist/es/split-text/props.js +1 -1
- package/dist/es/splitter/index.js +4 -2
- package/dist/es/stack/index.js +12 -13
- package/dist/es/stack/props.js +1 -1
- package/dist/es/statistic/index.js +4 -2
- package/dist/es/steps/index.js +4 -2
- package/dist/es/switch/index.js +4 -2
- package/dist/es/table/index.js +41 -46
- package/dist/es/table/props.js +1 -1
- package/dist/es/table/use-pagination-props.js +26 -28
- package/dist/es/tabs/index.js +4 -2
- package/dist/es/tag/index.js +4 -2
- package/dist/es/time-picker/index.js +4 -2
- package/dist/es/timeline/index.js +4 -2
- package/dist/es/tooltip/index.js +4 -2
- package/dist/es/tour/index.js +4 -2
- package/dist/es/transfer/index.js +4 -2
- package/dist/es/tree/hooks/index.js +4 -2
- package/dist/es/tree/hooks/use-data-options-tree.js +47 -63
- package/dist/es/tree/index.js +5 -3
- package/dist/es/tree-select/hooks/index.js +4 -2
- package/dist/es/tree-select/hooks/use-data-options-tree-select.js +45 -58
- package/dist/es/tree-select/index.js +5 -3
- package/dist/es/typing-animation/index.js +35 -48
- package/dist/es/typing-animation/props.js +1 -1
- package/dist/es/typography/index.js +16 -14
- package/dist/es/upload/index.js +44 -69
- package/dist/es/upload/props.js +1 -1
- package/dist/es/watermark/index.js +4 -2
- package/package.json +6 -6
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
1
|
+
import { jsx as I } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import "@emotion/react";
|
|
3
|
+
import { AnimatePresence as b, motion as G } from "@vef-framework/core";
|
|
4
|
+
import { Children as a } from "react";
|
|
5
|
+
import { Center as X } from "../center/index.js";
|
|
6
|
+
import "./props.js";
|
|
7
|
+
function u() {
|
|
10
8
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
11
9
|
}
|
|
12
|
-
const
|
|
10
|
+
const Z = {
|
|
13
11
|
hidden: {
|
|
14
12
|
rotateX: -90,
|
|
15
13
|
opacity: 0
|
|
@@ -18,42 +16,42 @@ const defaultVariants = {
|
|
|
18
16
|
rotateX: 0,
|
|
19
17
|
opacity: 1
|
|
20
18
|
}
|
|
21
|
-
}
|
|
22
|
-
const charStyle = process.env.NODE_ENV === "production" ? {
|
|
19
|
+
}, n = process.env.NODE_ENV === "production" ? {
|
|
23
20
|
name: "1039mui",
|
|
24
21
|
styles: "filter:drop-shadow(0 1px 2px #00000026);transform-origin:50%"
|
|
25
22
|
} : {
|
|
26
23
|
name: "1039mui",
|
|
27
24
|
styles: "filter:drop-shadow(0 1px 2px #00000026);transform-origin:50%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9jb21wb25lbnRzL3NyYy9mbGlwLXRleHQvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVrQiIsImZpbGUiOiIvVXNlcnMvdmVudXMvVkVGL3ZlZi1mcmFtZXdvcmstcmVhY3QvcGFja2FnZXMvY29tcG9uZW50cy9zcmMvZmxpcC10ZXh0L2luZGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgVmFyaWFudHMgfSBmcm9tIFwiQHZlZi1mcmFtZXdvcmsvY29yZVwiO1xuXG5pbXBvcnQgdHlwZSB7IEZsaXBUZXh0UHJvcHMgfSBmcm9tIFwiLi9wcm9wc1wiO1xuXG5pbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IEFuaW1hdGVQcmVzZW5jZSwgbW90aW9uIH0gZnJvbSBcIkB2ZWYtZnJhbWV3b3JrL2NvcmVcIjtcbmltcG9ydCB7IENoaWxkcmVuIH0gZnJvbSBcInJlYWN0XCI7XG5cbmltcG9ydCB7IENlbnRlciB9IGZyb20gXCIuLi9jZW50ZXJcIjtcblxuY29uc3QgZGVmYXVsdFZhcmlhbnRzOiBWYXJpYW50cyA9IHtcbiAgaGlkZGVuOiB7IHJvdGF0ZVg6IC05MCwgb3BhY2l0eTogMCB9LFxuICB2aXNpYmxlOiB7IHJvdGF0ZVg6IDAsIG9wYWNpdHk6IDEgfVxufTtcblxuY29uc3QgY2hhclN0eWxlID0gY3NzKHtcbiAgZmlsdGVyOiBcImRyb3Atc2hhZG93KDAgMXB4IDJweCAjMDAwMDAwMjYpXCIsXG4gIHRyYW5zZm9ybU9yaWdpbjogXCI1MCVcIlxufSk7XG5cbmV4cG9ydCBmdW5jdGlvbiBGbGlwVGV4dCh7XG4gIGNsYXNzTmFtZSxcbiAgc3R5bGUsXG4gIGR1cmF0aW9uID0gMC41LFxuICBkZWxheU11bHRpcGxlID0gMC4wOCxcbiAgcmVwZWF0ID0gMCxcbiAgY2hpbGRyZW5cbn06IEZsaXBUZXh0UHJvcHMpIHtcbiAgY29uc3QgY2hhcmFjdGVycyA9IFsuLi5DaGlsZHJlbi50b0FycmF5KGNoaWxkcmVuKS5qb2luKFwiXCIpXTtcblxuICByZXR1cm4gKFxuICAgIDxBbmltYXRlUHJlc2VuY2UgbW9kZT1cIndhaXRcIj5cbiAgICAgIDxDZW50ZXIgY2xhc3NOYW1lPXtjbGFzc05hbWV9IGdhcD17NH0gc3R5bGU9e3N0eWxlfT5cbiAgICAgICAge1xuICAgICAgICAgIGNoYXJhY3RlcnMubWFwKChjaGFyLCBpbmRleCkgPT4gKFxuICAgICAgICAgICAgPG1vdGlvbi5zcGFuXG4gICAgICAgICAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAZXNsaW50LXJlYWN0L25vLWFycmF5LWluZGV4LWtleVxuICAgICAgICAgICAgICBrZXk9e2luZGV4fVxuICAgICAgICAgICAgICBhbmltYXRlPVwidmlzaWJsZVwiXG4gICAgICAgICAgICAgIGNzcz17Y2hhclN0eWxlfVxuICAgICAgICAgICAgICBleGl0PVwiaGlkZGVuXCJcbiAgICAgICAgICAgICAgaW5pdGlhbD1cImhpZGRlblwiXG4gICAgICAgICAgICAgIHZhcmlhbnRzPXtkZWZhdWx0VmFyaWFudHN9XG4gICAgICAgICAgICAgIHRyYW5zaXRpb249e3tcbiAgICAgICAgICAgICAgICBkZWxheTogaW5kZXggKiBkZWxheU11bHRpcGxlLFxuICAgICAgICAgICAgICAgIGR1cmF0aW9uLFxuICAgICAgICAgICAgICAgIHJlcGVhdCxcbiAgICAgICAgICAgICAgICByZXBlYXRUeXBlOiBcInJldmVyc2VcIlxuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICB7Y2hhcn1cbiAgICAgICAgICAgIDwvbW90aW9uLnNwYW4+XG4gICAgICAgICAgKSlcbiAgICAgICAgfVxuICAgICAgPC9DZW50ZXI+XG4gICAgPC9BbmltYXRlUHJlc2VuY2U+XG4gICk7XG59XG5cbmV4cG9ydCB7IHR5cGUgRmxpcFRleHRQcm9wcyB9IGZyb20gXCIuL3Byb3BzXCI7XG4iXX0= */",
|
|
28
|
-
toString:
|
|
25
|
+
toString: u
|
|
29
26
|
};
|
|
30
|
-
function
|
|
31
|
-
className,
|
|
32
|
-
style,
|
|
33
|
-
duration = 0.5,
|
|
34
|
-
delayMultiple = 0.08,
|
|
35
|
-
repeat = 0,
|
|
36
|
-
children
|
|
27
|
+
function h({
|
|
28
|
+
className: c,
|
|
29
|
+
style: C,
|
|
30
|
+
duration: A = 0.5,
|
|
31
|
+
delayMultiple: i = 0.08,
|
|
32
|
+
repeat: l = 0,
|
|
33
|
+
children: t
|
|
37
34
|
}) {
|
|
38
|
-
const
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
-
|
|
35
|
+
const e = [...a.toArray(t).join("")];
|
|
36
|
+
return /* @__PURE__ */ I(b, { mode: "wait", children: /* @__PURE__ */ I(X, { className: c, gap: 4, style: C, children: e.map((m, g) => /* @__PURE__ */ I(
|
|
37
|
+
G.span,
|
|
41
38
|
{
|
|
42
39
|
animate: "visible",
|
|
43
|
-
css:
|
|
40
|
+
css: n,
|
|
44
41
|
exit: "hidden",
|
|
45
42
|
initial: "hidden",
|
|
46
|
-
variants:
|
|
43
|
+
variants: Z,
|
|
47
44
|
transition: {
|
|
48
|
-
delay:
|
|
49
|
-
duration,
|
|
50
|
-
repeat,
|
|
45
|
+
delay: g * i,
|
|
46
|
+
duration: A,
|
|
47
|
+
repeat: l,
|
|
51
48
|
repeatType: "reverse"
|
|
52
49
|
},
|
|
53
|
-
children:
|
|
50
|
+
children: m
|
|
54
51
|
},
|
|
55
|
-
|
|
52
|
+
g
|
|
56
53
|
)) }) });
|
|
57
54
|
}
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
export {
|
|
56
|
+
h as FlipText
|
|
57
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,37 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
children,
|
|
15
|
-
...props
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { DisabledProvider as s } from "@vef-framework/core";
|
|
3
|
+
import { useMemo as d } from "react";
|
|
4
|
+
import "../contexts/index.js";
|
|
5
|
+
import { useFormContext as v } from "../contexts/form-context.js";
|
|
6
|
+
import { defaultFormLayout as e, FormLayoutProvider as c } from "../contexts/form-layout.js";
|
|
7
|
+
function L({
|
|
8
|
+
layout: t = e.layout,
|
|
9
|
+
labelAlign: m = e.labelAlign,
|
|
10
|
+
labelWidth: u = e.labelWidth,
|
|
11
|
+
disabled: i = !1,
|
|
12
|
+
children: n,
|
|
13
|
+
...f
|
|
16
14
|
}) {
|
|
17
15
|
const {
|
|
18
|
-
handleSubmit,
|
|
19
|
-
reset
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
reset();
|
|
31
|
-
}, onSubmit: (event) => {
|
|
32
|
-
event.preventDefault();
|
|
33
|
-
handleSubmit();
|
|
34
|
-
}, children: /* @__PURE__ */ jsx(FormLayoutProvider, { value: formLayout, children: /* @__PURE__ */ jsx(DisabledProvider, { value: disabled, children }) }) });
|
|
16
|
+
handleSubmit: a,
|
|
17
|
+
reset: l
|
|
18
|
+
} = v(), p = d(() => ({
|
|
19
|
+
layout: t,
|
|
20
|
+
labelAlign: m,
|
|
21
|
+
labelWidth: u
|
|
22
|
+
}), [t, m, u]);
|
|
23
|
+
return /* @__PURE__ */ o("form", { ...f, onReset: (r) => {
|
|
24
|
+
r.preventDefault(), l();
|
|
25
|
+
}, onSubmit: (r) => {
|
|
26
|
+
r.preventDefault(), a();
|
|
27
|
+
}, children: /* @__PURE__ */ o(c, { value: p, children: /* @__PURE__ */ o(s, { value: i, children: n }) }) });
|
|
35
28
|
}
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
export {
|
|
30
|
+
L as Form
|
|
31
|
+
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { Form as o } from "./form.js";
|
|
2
|
+
import { ResetButton as t } from "./reset-button.js";
|
|
3
|
+
import { SubmitButton as m } from "./submit-button.js";
|
|
4
|
+
const e = {
|
|
5
|
+
Form: o,
|
|
6
|
+
SubmitButton: m,
|
|
7
|
+
ResetButton: t
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
e as formComponents
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
-
export { formComponents };
|
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onReset,
|
|
14
|
-
...props
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDisabled as l } from "@vef-framework/core";
|
|
3
|
+
import "../../button/index.js";
|
|
4
|
+
import "../contexts/index.js";
|
|
5
|
+
import { useFormContext as u } from "../contexts/form-context.js";
|
|
6
|
+
import { Button as b } from "antd";
|
|
7
|
+
function B({
|
|
8
|
+
children: r = "重置",
|
|
9
|
+
disabled: i,
|
|
10
|
+
loading: e,
|
|
11
|
+
onReset: s,
|
|
12
|
+
...m
|
|
15
13
|
}) {
|
|
16
14
|
const {
|
|
17
|
-
Subscribe
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
return /* @__PURE__ */ jsx(Subscribe, { selector: (state) => state.isSubmitting, children: (isSubmitting) => {
|
|
21
|
-
const isDisabled = contextDisabled || disabled || isSubmitting;
|
|
22
|
-
return /* @__PURE__ */ jsx(Button, { ...props, disabled: loading ? false : isDisabled, htmlType: "reset", loading, onClick: onReset, children });
|
|
23
|
-
} });
|
|
15
|
+
Subscribe: n
|
|
16
|
+
} = u(), c = l();
|
|
17
|
+
return /* @__PURE__ */ o(n, { selector: (t) => t.isSubmitting, children: (t) => /* @__PURE__ */ o(b, { ...m, disabled: e ? !1 : c || i || t, htmlType: "reset", loading: e, onClick: s, children: r }) });
|
|
24
18
|
}
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
export {
|
|
20
|
+
B as ResetButton
|
|
21
|
+
};
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onSubmit,
|
|
14
|
-
...props
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDisabled as u } from "@vef-framework/core";
|
|
3
|
+
import "../../button/index.js";
|
|
4
|
+
import "../contexts/index.js";
|
|
5
|
+
import { useFormContext as a } from "../contexts/form-context.js";
|
|
6
|
+
import { Button as c } from "antd";
|
|
7
|
+
function h({
|
|
8
|
+
children: r = "提交",
|
|
9
|
+
disabled: s,
|
|
10
|
+
loading: e,
|
|
11
|
+
onSubmit: n,
|
|
12
|
+
...m
|
|
15
13
|
}) {
|
|
16
14
|
const {
|
|
17
|
-
Subscribe
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const isDisabled = contextDisabled || disabled || buttonDisabled;
|
|
23
|
-
return /* @__PURE__ */ jsx(Button, { ...props, disabled: isLoading ? false : isDisabled, htmlType: "submit", loading: isLoading, type: "primary", onClick: onSubmit, children });
|
|
15
|
+
Subscribe: l
|
|
16
|
+
} = a(), b = u();
|
|
17
|
+
return /* @__PURE__ */ o(l, { selector: (i) => [!i.canSubmit, i.isSubmitting], children: ([i, d]) => {
|
|
18
|
+
const t = d || e;
|
|
19
|
+
return /* @__PURE__ */ o(c, { ...m, disabled: t ? !1 : b || i || s, htmlType: "submit", loading: t, type: "primary", onClick: n, children: r });
|
|
24
20
|
} });
|
|
25
21
|
}
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
export {
|
|
23
|
+
h as SubmitButton
|
|
24
|
+
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import { createFormHookContexts } from '@tanstack/react-form';
|
|
3
|
-
|
|
1
|
+
import { createFormHookContexts as o } from "@tanstack/react-form";
|
|
4
2
|
const {
|
|
5
|
-
formContext,
|
|
6
|
-
fieldContext,
|
|
7
|
-
useFormContext,
|
|
8
|
-
useFieldContext
|
|
9
|
-
} =
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
formContext: e,
|
|
4
|
+
fieldContext: r,
|
|
5
|
+
useFormContext: n,
|
|
6
|
+
useFieldContext: x
|
|
7
|
+
} = o();
|
|
8
|
+
export {
|
|
9
|
+
r as fieldContext,
|
|
10
|
+
e as formContext,
|
|
11
|
+
x as useFieldContext,
|
|
12
|
+
n as useFormContext
|
|
13
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const defaultFormLayout = Object.freeze({
|
|
1
|
+
import { createContext as o, use as e } from "react";
|
|
2
|
+
const r = Object.freeze({
|
|
5
3
|
layout: "horizontal",
|
|
6
4
|
labelAlign: "right",
|
|
7
5
|
labelWidth: 100
|
|
6
|
+
}), t = o({
|
|
7
|
+
...r
|
|
8
8
|
});
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
});
|
|
12
|
-
function useFormLayout() {
|
|
13
|
-
return use(Context);
|
|
9
|
+
function a() {
|
|
10
|
+
return e(t);
|
|
14
11
|
}
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
const u = t.Provider;
|
|
13
|
+
export {
|
|
14
|
+
u as FormLayoutProvider,
|
|
15
|
+
r as defaultFormLayout,
|
|
16
|
+
a as useFormLayout
|
|
17
|
+
};
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export {
|
|
1
|
+
import { fieldContext as e, formContext as r, useFieldContext as m, useFormContext as u } from "./form-context.js";
|
|
2
|
+
import { FormLayoutProvider as f, defaultFormLayout as F, useFormLayout as a } from "./form-layout.js";
|
|
3
|
+
export {
|
|
4
|
+
f as FormLayoutProvider,
|
|
5
|
+
F as defaultFormLayout,
|
|
6
|
+
e as fieldContext,
|
|
7
|
+
r as formContext,
|
|
8
|
+
m as useFieldContext,
|
|
9
|
+
u as useFormContext,
|
|
10
|
+
a as useFormLayout
|
|
11
|
+
};
|
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
preserveEmptyString = false,
|
|
18
|
-
...props
|
|
1
|
+
import { jsx as p } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDisabled as s } from "@vef-framework/core";
|
|
3
|
+
import { isEmpty as a } from "@vef-framework/shared";
|
|
4
|
+
import "../../../_base/index.js";
|
|
5
|
+
import "../../../auto-complete/index.js";
|
|
6
|
+
import "../../contexts/index.js";
|
|
7
|
+
import "../../helpers/index.js";
|
|
8
|
+
import "./props.js";
|
|
9
|
+
import { useFieldContext as d } from "../../contexts/form-context.js";
|
|
10
|
+
import { AutoComplete as u } from "antd";
|
|
11
|
+
import { fullWidth as f } from "../../../_base/styles/common.js";
|
|
12
|
+
import { withFormItem as c } from "../../helpers/with-form-item.js";
|
|
13
|
+
function C({
|
|
14
|
+
disabled: t,
|
|
15
|
+
preserveEmptyString: e = !1,
|
|
16
|
+
...m
|
|
19
17
|
}) {
|
|
20
18
|
const {
|
|
21
19
|
state: {
|
|
22
|
-
value
|
|
20
|
+
value: r
|
|
23
21
|
},
|
|
24
|
-
handleBlur,
|
|
25
|
-
handleChange
|
|
26
|
-
} =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return /* @__PURE__ */ jsx(AutoComplete, { ...props, css: fullWidth, disabled: isDisabled, value, onBlur: handleBlur, onChange: (input) => {
|
|
30
|
-
handleChange(preserveEmptyString || !isEmpty(input) ? input : null);
|
|
22
|
+
handleBlur: i,
|
|
23
|
+
handleChange: l
|
|
24
|
+
} = d(), n = s() || t;
|
|
25
|
+
return /* @__PURE__ */ p(u, { ...m, css: f, disabled: n, value: r, onBlur: i, onChange: (o) => {
|
|
26
|
+
l(e || !a(o) ? o : null);
|
|
31
27
|
} });
|
|
32
28
|
}
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
const I = c("AutoCompleteField", C);
|
|
30
|
+
export {
|
|
31
|
+
I as AutoCompleteField
|
|
32
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
disabled,
|
|
13
|
-
...props
|
|
1
|
+
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDisabled as n } from "@vef-framework/core";
|
|
3
|
+
import { Bool as l } from "../../../bool/index.js";
|
|
4
|
+
import "../../contexts/index.js";
|
|
5
|
+
import "../../helpers/index.js";
|
|
6
|
+
import "./props.js";
|
|
7
|
+
import { useFieldContext as s } from "../../contexts/form-context.js";
|
|
8
|
+
import { withFormItem as a } from "../../helpers/with-form-item.js";
|
|
9
|
+
function d({
|
|
10
|
+
disabled: o,
|
|
11
|
+
...t
|
|
14
12
|
}) {
|
|
15
13
|
const {
|
|
16
14
|
state: {
|
|
17
|
-
value
|
|
15
|
+
value: e
|
|
18
16
|
},
|
|
19
|
-
handleChange
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
const isDisabled = contextDisabled || disabled;
|
|
23
|
-
return /* @__PURE__ */ jsx(Bool, { ...props, disabled: isDisabled, value, onChange: handleChange });
|
|
17
|
+
handleChange: i
|
|
18
|
+
} = s(), r = n() || o;
|
|
19
|
+
return /* @__PURE__ */ m(l, { ...t, disabled: r, value: e, onChange: i });
|
|
24
20
|
}
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
const D = a("BoolField", d);
|
|
22
|
+
export {
|
|
23
|
+
D as BoolField
|
|
24
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
disabled,
|
|
16
|
-
...props
|
|
1
|
+
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDisabled as s } from "@vef-framework/core";
|
|
3
|
+
import "../../../_base/index.js";
|
|
4
|
+
import "../../../cascader/index.js";
|
|
5
|
+
import "../../contexts/index.js";
|
|
6
|
+
import "../../helpers/index.js";
|
|
7
|
+
import "./props.js";
|
|
8
|
+
import { useFieldContext as a } from "../../contexts/form-context.js";
|
|
9
|
+
import { Cascader as n } from "antd";
|
|
10
|
+
import { fullWidth as d } from "../../../_base/styles/common.js";
|
|
11
|
+
import { withFormItem as p } from "../../helpers/with-form-item.js";
|
|
12
|
+
function c({
|
|
13
|
+
disabled: o,
|
|
14
|
+
...t
|
|
17
15
|
}) {
|
|
18
16
|
const {
|
|
19
17
|
state: {
|
|
20
|
-
value
|
|
18
|
+
value: e
|
|
21
19
|
},
|
|
22
|
-
handleChange
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
const isDisabled = contextDisabled || disabled;
|
|
26
|
-
return /* @__PURE__ */ jsx(Cascader, { ...props, css: fullWidth, disabled: isDisabled, value, onChange: handleChange });
|
|
20
|
+
handleChange: r
|
|
21
|
+
} = a(), i = s() || o;
|
|
22
|
+
return /* @__PURE__ */ m(n, { ...t, css: d, disabled: i, value: e, onChange: r });
|
|
27
23
|
}
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
const w = p("CascaderField", c);
|
|
25
|
+
export {
|
|
26
|
+
w as CascaderField
|
|
27
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,46 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
disabled,
|
|
14
|
-
...props
|
|
1
|
+
import { jsx as c } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDisabled as s } from "@vef-framework/core";
|
|
3
|
+
import "../../../checkbox/index.js";
|
|
4
|
+
import "../../contexts/index.js";
|
|
5
|
+
import "../../helpers/index.js";
|
|
6
|
+
import "./props.js";
|
|
7
|
+
import { useFieldContext as a } from "../../contexts/form-context.js";
|
|
8
|
+
import { Checkbox as d } from "antd";
|
|
9
|
+
import { withFormItem as l } from "../../helpers/with-form-item.js";
|
|
10
|
+
function b({
|
|
11
|
+
disabled: e,
|
|
12
|
+
...o
|
|
15
13
|
}) {
|
|
16
14
|
const {
|
|
17
15
|
state: {
|
|
18
|
-
value
|
|
16
|
+
value: t
|
|
19
17
|
},
|
|
20
|
-
handleBlur,
|
|
21
|
-
handleChange
|
|
22
|
-
} =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return /* @__PURE__ */ jsx(Checkbox, { ...props, checked: value, disabled: isDisabled, onBlur: handleBlur, onChange: (event) => {
|
|
26
|
-
handleChange(event.target.checked);
|
|
18
|
+
handleBlur: n,
|
|
19
|
+
handleChange: i
|
|
20
|
+
} = a(), m = s() || e;
|
|
21
|
+
return /* @__PURE__ */ c(d, { ...o, checked: t, disabled: m, onBlur: n, onChange: (h) => {
|
|
22
|
+
i(h.target.checked);
|
|
27
23
|
} });
|
|
28
24
|
}
|
|
29
|
-
function
|
|
30
|
-
disabled,
|
|
31
|
-
...
|
|
25
|
+
function p({
|
|
26
|
+
disabled: e,
|
|
27
|
+
...o
|
|
32
28
|
}) {
|
|
33
29
|
const {
|
|
34
30
|
state: {
|
|
35
|
-
value
|
|
31
|
+
value: t
|
|
36
32
|
},
|
|
37
|
-
handleChange
|
|
38
|
-
} =
|
|
39
|
-
|
|
40
|
-
const isDisabled = contextDisabled || disabled;
|
|
41
|
-
return /* @__PURE__ */ jsx(Checkbox.Group, { ...props, disabled: isDisabled, value, onChange: handleChange });
|
|
33
|
+
handleChange: n
|
|
34
|
+
} = a(), r = s() || e;
|
|
35
|
+
return /* @__PURE__ */ c(d.Group, { ...o, disabled: r, value: t, onChange: n });
|
|
42
36
|
}
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
37
|
+
const v = l("CheckboxField", b), B = l("CheckboxGroupField", p);
|
|
38
|
+
export {
|
|
39
|
+
v as CheckboxField,
|
|
40
|
+
B as CheckboxGroupField
|
|
41
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|