@vef-framework/components 2.0.3 → 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,54 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
confirmDescription,
|
|
12
|
-
onClick
|
|
1
|
+
import { isFunction as w, invokeAwaitableFn as d } from "@vef-framework/shared";
|
|
2
|
+
import { useState as h, useCallback as a } from "react";
|
|
3
|
+
import "../_base/index.js";
|
|
4
|
+
import { showConfirm as p } from "../_base/helpers/modal.js";
|
|
5
|
+
function F({
|
|
6
|
+
confirmable: i,
|
|
7
|
+
confirmMode: s,
|
|
8
|
+
confirmTitle: e,
|
|
9
|
+
confirmDescription: l,
|
|
10
|
+
onClick: n
|
|
13
11
|
}) {
|
|
14
|
-
const [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const result = invokeAwaitableFn(onClick, [event], {
|
|
12
|
+
const [f, r] = h(!1), o = a(async (t, k = !1) => {
|
|
13
|
+
if (w(n)) {
|
|
14
|
+
const m = d(n, [t], {
|
|
18
15
|
onInvoke: () => {
|
|
19
|
-
|
|
16
|
+
r(!0);
|
|
20
17
|
},
|
|
21
18
|
onFinally: () => {
|
|
22
|
-
|
|
19
|
+
r(!1);
|
|
23
20
|
}
|
|
24
21
|
});
|
|
25
|
-
|
|
26
|
-
await result;
|
|
27
|
-
}
|
|
22
|
+
k && await m;
|
|
28
23
|
}
|
|
29
|
-
}, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
title: confirmTitle,
|
|
24
|
+
}, [n]), u = a((t) => {
|
|
25
|
+
p(l, {
|
|
26
|
+
title: e,
|
|
33
27
|
onOk: async () => {
|
|
34
|
-
await
|
|
28
|
+
await o(t, !0);
|
|
35
29
|
}
|
|
36
30
|
});
|
|
37
|
-
}, [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
invokeClickAction(event, false);
|
|
31
|
+
}, [l, e, o]), c = a((t) => {
|
|
32
|
+
if (!i) {
|
|
33
|
+
o(t, !1);
|
|
41
34
|
return;
|
|
42
35
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
}, [confirmable, confirmMode, invokeClickAction, handleShowConfirm]);
|
|
36
|
+
s === "dialog" && u(t);
|
|
37
|
+
}, [i, s, o, u]);
|
|
47
38
|
return {
|
|
48
|
-
loading,
|
|
49
|
-
invokeClickAction,
|
|
50
|
-
handleClick
|
|
39
|
+
loading: f,
|
|
40
|
+
invokeClickAction: o,
|
|
41
|
+
handleClick: c
|
|
51
42
|
};
|
|
52
43
|
}
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
export {
|
|
45
|
+
F as useActionButton
|
|
46
|
+
};
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function ActionGroup(props) {
|
|
1
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { isFunction as i } from "@vef-framework/shared";
|
|
3
|
+
import { Group as e } from "../group/index.js";
|
|
4
|
+
import { useActionGroup as u } from "./use-action-group.js";
|
|
5
|
+
import "./props.js";
|
|
6
|
+
function l(o) {
|
|
9
7
|
const {
|
|
10
|
-
renderWrapper
|
|
11
|
-
} =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (isFunction(renderWrapper)) {
|
|
16
|
-
return renderWrapper(buttonNodes);
|
|
17
|
-
}
|
|
18
|
-
if (buttonNodes.length > 0) {
|
|
19
|
-
return /* @__PURE__ */ jsx(Group, { children: buttonNodes });
|
|
20
|
-
}
|
|
21
|
-
return null;
|
|
8
|
+
renderWrapper: t
|
|
9
|
+
} = o, {
|
|
10
|
+
buttonNodes: r
|
|
11
|
+
} = u(o);
|
|
12
|
+
return i(t) ? t(r) : r.length > 0 ? /* @__PURE__ */ n(e, { children: r }) : null;
|
|
22
13
|
}
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
export {
|
|
15
|
+
l as ActionGroup
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function useActionGroup(props) {
|
|
1
|
+
import { useAuthorizedItems as s } from "@vef-framework/hooks";
|
|
2
|
+
import { useComputedActionButtons as c } from "./use-computed-action-buttons.js";
|
|
3
|
+
function d(t) {
|
|
6
4
|
const {
|
|
7
|
-
size,
|
|
8
|
-
buttons
|
|
9
|
-
} =
|
|
10
|
-
const context = Reflect.get(props, "context");
|
|
11
|
-
const authorizedButtons = useAuthorizedItems(buttons);
|
|
12
|
-
const computedButtons = useComputedActionButtons(authorizedButtons, size, context);
|
|
5
|
+
size: o,
|
|
6
|
+
buttons: e
|
|
7
|
+
} = t, n = Reflect.get(t, "context"), u = s(e);
|
|
13
8
|
return {
|
|
14
|
-
buttonNodes:
|
|
9
|
+
buttonNodes: c(u, o, n)
|
|
15
10
|
};
|
|
16
11
|
}
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
export {
|
|
13
|
+
d as useActionGroup
|
|
14
|
+
};
|
|
@@ -1,39 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} = button;
|
|
24
|
-
const computedHidden = isFunction(hidden) ? hidden(context) : hidden ?? false;
|
|
25
|
-
const computedDisabled = isFunction(disabled) ? disabled(context) : disabled ?? false;
|
|
26
|
-
const computedConfirmable = isFunction(confirmable) ? confirmable(context) : confirmable ?? false;
|
|
27
|
-
const computedConfirmMode = isFunction(confirmMode) ? confirmMode(context) : confirmMode ?? "popover";
|
|
28
|
-
const computedConfirmTitle = isFunction(confirmTitle) ? confirmTitle(context) : confirmTitle ?? "确认提示";
|
|
29
|
-
const computedConfirmDescription = isFunction(confirmDescription) ? confirmDescription(context) : confirmDescription ?? `确定要${label}吗?`;
|
|
30
|
-
if (!computedHidden) {
|
|
31
|
-
return /* @__PURE__ */ jsx(ActionButton, { color, confirmable: computedConfirmable, confirmDescription: computedConfirmDescription, confirmMode: computedConfirmMode, confirmTitle: computedConfirmTitle, disabled: computedDisabled, icon, size, variant, onClick: () => onClick(context), children: label }, key);
|
|
32
|
-
}
|
|
33
|
-
return null;
|
|
34
|
-
}).filter(Boolean);
|
|
35
|
-
return buttonNodes;
|
|
36
|
-
}, [buttons, size, context]);
|
|
1
|
+
import { jsx as v } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { isFunction as i } from "@vef-framework/shared";
|
|
3
|
+
import { useMemo as A } from "react";
|
|
4
|
+
import { ActionButton as N } from "../action-button/index.js";
|
|
5
|
+
function g(d, f, o) {
|
|
6
|
+
return A(() => d.map((s) => {
|
|
7
|
+
const {
|
|
8
|
+
disabled: n,
|
|
9
|
+
hidden: r,
|
|
10
|
+
confirmable: e,
|
|
11
|
+
confirmMode: m,
|
|
12
|
+
confirmTitle: t,
|
|
13
|
+
confirmDescription: c,
|
|
14
|
+
key: u,
|
|
15
|
+
label: l,
|
|
16
|
+
icon: p,
|
|
17
|
+
color: a,
|
|
18
|
+
variant: b,
|
|
19
|
+
onClick: C
|
|
20
|
+
} = s, D = i(r) ? r(o) : r ?? !1, M = i(n) ? n(o) : n ?? !1, k = i(e) ? e(o) : e ?? !1, B = i(m) ? m(o) : m ?? "popover", T = i(t) ? t(o) : t ?? "确认提示", h = i(c) ? c(o) : c ?? `确定要${l}吗?`;
|
|
21
|
+
return D ? null : /* @__PURE__ */ v(N, { color: a, confirmable: k, confirmDescription: h, confirmMode: B, confirmTitle: T, disabled: M, icon: p, size: f, variant: b, onClick: () => C(o), children: l }, u);
|
|
22
|
+
}).filter(Boolean), [d, f, o]);
|
|
37
23
|
}
|
|
38
|
-
|
|
39
|
-
|
|
24
|
+
export {
|
|
25
|
+
g as useComputedActionButtons
|
|
26
|
+
};
|
package/dist/es/affix/index.js
CHANGED
package/dist/es/alert/index.js
CHANGED
package/dist/es/anchor/index.js
CHANGED
package/dist/es/avatar/index.js
CHANGED
package/dist/es/badge/index.js
CHANGED
package/dist/es/bool/index.js
CHANGED
|
@@ -1,57 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const Bool = memo((props) => {
|
|
1
|
+
import { jsx as e, jsxs as f, Fragment as C } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { isUndefined as v } from "@vef-framework/shared";
|
|
3
|
+
import { memo as b } from "react";
|
|
4
|
+
import "../_base/index.js";
|
|
5
|
+
import "../checkbox/index.js";
|
|
6
|
+
import { Group as x } from "../group/index.js";
|
|
7
|
+
import "../radio/index.js";
|
|
8
|
+
import "../switch/index.js";
|
|
9
|
+
import { mapSize as z } from "../_base/helpers/common.js";
|
|
10
|
+
import { Radio as o, Checkbox as B, Switch as S } from "antd";
|
|
11
|
+
const w = b((k) => {
|
|
14
12
|
const {
|
|
15
|
-
value,
|
|
16
|
-
defaultValue,
|
|
17
|
-
onChange,
|
|
18
|
-
variant = "switch",
|
|
19
|
-
trueLabel,
|
|
20
|
-
falseLabel,
|
|
21
|
-
children,
|
|
22
|
-
disabled,
|
|
23
|
-
size,
|
|
24
|
-
className,
|
|
25
|
-
style
|
|
26
|
-
} =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */ jsx(Radio.Button, { value: false, children: falseLabel || "否" })
|
|
13
|
+
value: i,
|
|
14
|
+
defaultValue: l,
|
|
15
|
+
onChange: a,
|
|
16
|
+
variant: t = "switch",
|
|
17
|
+
trueLabel: n,
|
|
18
|
+
falseLabel: d,
|
|
19
|
+
children: c,
|
|
20
|
+
disabled: h,
|
|
21
|
+
size: g,
|
|
22
|
+
className: s,
|
|
23
|
+
style: u
|
|
24
|
+
} = k, m = z(g);
|
|
25
|
+
if (t === "radio" || t === "radio-button")
|
|
26
|
+
return /* @__PURE__ */ e(o.Group, { buttonStyle: "solid", className: s, defaultValue: l, disabled: h, size: m, style: u, value: i, onChange: (r) => {
|
|
27
|
+
a?.(r.target.value);
|
|
28
|
+
}, children: t === "radio" ? /* @__PURE__ */ f(C, { children: [
|
|
29
|
+
/* @__PURE__ */ e(o, { value: !0, children: n || "是" }),
|
|
30
|
+
/* @__PURE__ */ e(o, { value: !1, children: d || "否" })
|
|
31
|
+
] }) : /* @__PURE__ */ f(C, { children: [
|
|
32
|
+
/* @__PURE__ */ e(o.Button, { value: !0, children: n || "是" }),
|
|
33
|
+
/* @__PURE__ */ e(o.Button, { value: !1, children: d || "否" })
|
|
37
34
|
] }) });
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const switchNode = /* @__PURE__ */ jsx(Switch, { checked: value, checkedChildren: trueLabel, defaultChecked: defaultValue, disabled, size: uiSize === "small" ? "small" : isUndefined(uiSize) ? void 0 : "default", unCheckedChildren: falseLabel, onChange: (checked) => {
|
|
45
|
-
onChange?.(checked);
|
|
35
|
+
if (t === "checkbox")
|
|
36
|
+
return /* @__PURE__ */ e(B, { checked: i, className: s, defaultChecked: l, disabled: h, style: u, onChange: (r) => {
|
|
37
|
+
a?.(r.target.checked);
|
|
38
|
+
}, children: c });
|
|
39
|
+
const p = /* @__PURE__ */ e(S, { checked: i, checkedChildren: n, defaultChecked: l, disabled: h, size: m === "small" ? "small" : v(m) ? void 0 : "default", unCheckedChildren: d, onChange: (r) => {
|
|
40
|
+
a?.(r);
|
|
46
41
|
} });
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
switchNode,
|
|
52
|
-
/* @__PURE__ */ jsx("span", { children })
|
|
53
|
-
] });
|
|
42
|
+
return c ? /* @__PURE__ */ f(x, { className: s, gap: "small", style: u, children: [
|
|
43
|
+
p,
|
|
44
|
+
/* @__PURE__ */ e("span", { children: c })
|
|
45
|
+
] }) : p;
|
|
54
46
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
w.displayName = "Bool";
|
|
48
|
+
export {
|
|
49
|
+
w as Bool
|
|
50
|
+
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Breadcrumb as e } from "antd";
|
|
2
|
+
import "antd/es/breadcrumb/Breadcrumb";
|
|
3
|
+
export {
|
|
4
|
+
e as Breadcrumb
|
|
5
|
+
};
|
package/dist/es/button/index.js
CHANGED
package/dist/es/card/index.js
CHANGED
package/dist/es/center/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
gap = "small",
|
|
10
|
-
...props
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import "../flex/index.js";
|
|
3
|
+
import "./props.js";
|
|
4
|
+
import { Flex as i } from "antd";
|
|
5
|
+
function l({
|
|
6
|
+
children: r,
|
|
7
|
+
gap: t = "small",
|
|
8
|
+
...e
|
|
11
9
|
}) {
|
|
12
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ o(i, { align: "center", gap: t, justify: "center", ...e, children: r });
|
|
13
11
|
}
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
export {
|
|
13
|
+
l as Center
|
|
14
|
+
};
|
package/dist/es/center/props.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/dist/es/charts/chart.js
CHANGED
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
deepMemo: _,
|
|
14
|
-
...options
|
|
1
|
+
import { jsx as f } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMergedRef as n } from "@vef-framework/hooks";
|
|
3
|
+
import { isDeepEqual as p, isShallowEqual as u } from "@vef-framework/shared";
|
|
4
|
+
import { memo as a } from "react";
|
|
5
|
+
import "./hooks/index.js";
|
|
6
|
+
import { useChart as d } from "./hooks/use-chart.js";
|
|
7
|
+
const q = a(({
|
|
8
|
+
className: o,
|
|
9
|
+
style: e,
|
|
10
|
+
ref: r,
|
|
11
|
+
deepMemo: c,
|
|
12
|
+
...t
|
|
15
13
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
return isShallowEqual(prevProps.option, nextProps.option);
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export { Chart };
|
|
14
|
+
const m = d(t), i = n(m, r);
|
|
15
|
+
return /* @__PURE__ */ f("div", { ref: i, className: o, style: e });
|
|
16
|
+
}, (o, e) => e.deepMemo || o.deepMemo ? p(o.option, e.option) : u(o.option, e.option));
|
|
17
|
+
export {
|
|
18
|
+
q as Chart
|
|
19
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function connectCharts(groupId) {
|
|
5
|
-
echarts.connect(groupId);
|
|
1
|
+
import * as c from "echarts";
|
|
2
|
+
function t(n) {
|
|
3
|
+
c.connect(n);
|
|
6
4
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
5
|
+
function o(n) {
|
|
6
|
+
c.disconnect(n);
|
|
9
7
|
}
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export {
|
|
9
|
+
t as connectCharts,
|
|
10
|
+
o as disconnectCharts
|
|
11
|
+
};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { connectCharts as n, disconnectCharts as o } from "./group.js";
|
|
2
|
+
export {
|
|
3
|
+
n as connectCharts,
|
|
4
|
+
o as disconnectCharts
|
|
5
|
+
};
|