@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,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const useDataOptionsTreeSelect = require('./use-data-options-tree-select.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.useDataOptionsTreeSelect = useDataOptionsTreeSelect.useDataOptionsTreeSelect;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-data-options-tree-select.cjs");exports.useDataOptionsTreeSelect=e.useDataOptionsTreeSelect;
|
|
@@ -1,70 +1 @@
|
|
|
1
|
-
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
|
-
const react = require('@emotion/react');
|
|
8
|
-
const hooks = require('@vef-framework/hooks');
|
|
9
|
-
const shared = require('@vef-framework/shared');
|
|
10
|
-
const react$1 = require('react');
|
|
11
|
-
const index = require('../../loader/index.cjs');
|
|
12
|
-
|
|
13
|
-
const fieldNames = {
|
|
14
|
-
label: "label",
|
|
15
|
-
value: "value",
|
|
16
|
-
children: "children"
|
|
17
|
-
};
|
|
18
|
-
const listHeight = 280;
|
|
19
|
-
const loadingPlaceholder = /* @__PURE__ */ jsxRuntime.jsx("div", { css: /* @__PURE__ */ react.css({
|
|
20
|
-
height: listHeight / 2
|
|
21
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9jb21wb25lbnRzL3NyYy90cmVlLXNlbGVjdC9ob29rcy91c2UtZGF0YS1vcHRpb25zLXRyZWUtc2VsZWN0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEyQ08iLCJmaWxlIjoiL1VzZXJzL3ZlbnVzL1ZFRi92ZWYtZnJhbWV3b3JrLXJlYWN0L3BhY2thZ2VzL2NvbXBvbmVudHMvc3JjL3RyZWUtc2VsZWN0L2hvb2tzL3VzZS1kYXRhLW9wdGlvbnMtdHJlZS1zZWxlY3QudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBEYXRhT3B0aW9uV2l0aFBpbnlpbiB9IGZyb20gXCJAdmVmLWZyYW1ld29yay9jb3JlXCI7XG5pbXBvcnQgdHlwZSB7IFVzZURhdGFPcHRpb25zUXVlcnlPcHRpb25zIH0gZnJvbSBcIkB2ZWYtZnJhbWV3b3JrL2hvb2tzXCI7XG5pbXBvcnQgdHlwZSB7IEtleSB9IGZyb20gXCJAdmVmLWZyYW1ld29yay9zaGFyZWRcIjtcblxuaW1wb3J0IHR5cGUgeyBUcmVlU2VsZWN0UHJvcHMgfSBmcm9tIFwiLi5cIjtcbmltcG9ydCB0eXBlIHsgR2V0UHJvcCB9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Chub2RlLCBcImxhYmVsUGlueWluXCIpO1xuICBjb25zdCBsYWJlbFBpbnlpbkluaXRpYWxzID0gUmVmbGVjdC5nZXQobm9kZSwgXCJsYWJlbFBpbnlpbkluaXRpYWxzXCIpO1xuICBjb25zdCBkZXNjcmlwdGlvbiA9IFJlZmxlY3QuZ2V0KG5vZGUsIFwiZGVzY3JpcHRpb25cIik7XG4gIGNvbnN0IGRlc2NyaXB0aW9uUGlueWluID0gUmVmbGVjdC5nZXQobm9kZSwgXCJkZXNjcmlwdGlvblBpbnlpblwiKTtcbiAgY29uc3QgZGVzY3JpcHRpb25QaW55aW5Jbml0aWFscyA9IFJlZmxlY3QuZ2V0KG5vZGUsIFwiZGVzY3JpcHRpb25QaW55aW5Jbml0aWFsc1wiKTtcblxuICByZXR1cm4gKGlzU3RyaW5nKGxhYmVsKSAmJiBsYWJlbC5pbmNsdWRlcyhpbnB1dCkpXG4gICAgfHwgKGlzU3RyaW5nKGxhYmVsUGlueWluKSAmJiBsYWJlbFBpbnlpbi5pbmNsdWRlcyhpbnB1dCkpXG4gICAgfHwgKGlzU3RyaW5nKGxhYmVsUGlueWluSW5pdGlhbHMpICYmIGxhYmVsUGlueWluSW5pdGlhbHMuaW5jbHVkZXMoaW5wdXQpKVxuICAgIHx8IChpc1N0cmluZyhkZXNjcmlwdGlvbikgJiYgZGVzY3JpcHRpb24uaW5jbHVkZXMoaW5wdXQpKVxuICAgIHx8IChpc1N0cmluZyhkZXNjcmlwdGlvblBpbnlpbikgJiYgZGVzY3JpcHRpb25QaW55aW4uaW5jbHVkZXMoaW5wdXQpKVxuICAgIHx8IChpc1N0cmluZyhkZXNjcmlwdGlvblBpbnlpbkluaXRpYWxzKSAmJiBkZXNjcmlwdGlvblBpbnlpbkluaXRpYWxzLmluY2x1ZGVzKGlucHV0KSk7XG59XG4iXX0= */"), children: /* @__PURE__ */ jsxRuntime.jsx(index.Loader, {}) });
|
|
22
|
-
function useDataOptionsTreeSelect({
|
|
23
|
-
filterable = false,
|
|
24
|
-
onFetch,
|
|
25
|
-
...queryOptions
|
|
26
|
-
}) {
|
|
27
|
-
const {
|
|
28
|
-
options,
|
|
29
|
-
isFetching,
|
|
30
|
-
promise
|
|
31
|
-
} = hooks.useDataOptionsQuery({
|
|
32
|
-
...queryOptions,
|
|
33
|
-
withPinyin: true
|
|
34
|
-
});
|
|
35
|
-
const treeSelectProps = react$1.useMemo(() => {
|
|
36
|
-
return {
|
|
37
|
-
treeData: options,
|
|
38
|
-
loading: isFetching,
|
|
39
|
-
fieldNames,
|
|
40
|
-
maxTagCount: "responsive",
|
|
41
|
-
listHeight,
|
|
42
|
-
notFoundContent: isFetching ? loadingPlaceholder : void 0,
|
|
43
|
-
filterTreeNode: filterable && filterTreeNode,
|
|
44
|
-
treeNodeFilterProp: "labelPinyinInitials",
|
|
45
|
-
treeNodeLabelProp: "label",
|
|
46
|
-
showSearch: filterable,
|
|
47
|
-
treeLine: {
|
|
48
|
-
showLeafIcon: false
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
}, [isFetching, options, filterable]);
|
|
52
|
-
const onFetchFn = react$1.useEffectEvent((data) => {
|
|
53
|
-
onFetch?.(data);
|
|
54
|
-
});
|
|
55
|
-
react$1.useEffect(() => {
|
|
56
|
-
promise.then(onFetchFn);
|
|
57
|
-
}, [promise]);
|
|
58
|
-
return treeSelectProps;
|
|
59
|
-
}
|
|
60
|
-
function filterTreeNode(input, node) {
|
|
61
|
-
const label = Reflect.get(node, "label");
|
|
62
|
-
const labelPinyin = Reflect.get(node, "labelPinyin");
|
|
63
|
-
const labelPinyinInitials = Reflect.get(node, "labelPinyinInitials");
|
|
64
|
-
const description = Reflect.get(node, "description");
|
|
65
|
-
const descriptionPinyin = Reflect.get(node, "descriptionPinyin");
|
|
66
|
-
const descriptionPinyinInitials = Reflect.get(node, "descriptionPinyinInitials");
|
|
67
|
-
return shared.isString(label) && label.includes(input) || shared.isString(labelPinyin) && labelPinyin.includes(input) || shared.isString(labelPinyinInitials) && labelPinyinInitials.includes(input) || shared.isString(description) && description.includes(input) || shared.isString(descriptionPinyin) && descriptionPinyin.includes(input) || shared.isString(descriptionPinyinInitials) && descriptionPinyinInitials.includes(input);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
exports.useDataOptionsTreeSelect = useDataOptionsTreeSelect;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@emotion/react/jsx-runtime"),u=require("@emotion/react"),X=require("@vef-framework/hooks"),I=require("@vef-framework/shared"),W=require("react"),m=require("../../loader/index.cjs"),t={label:"label",value:"value",children:"children"},V=280,d=n.jsx("div",{css:u.css({height:V/2},process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9jb21wb25lbnRzL3NyYy90cmVlLXNlbGVjdC9ob29rcy91c2UtZGF0YS1vcHRpb25zLXRyZWUtc2VsZWN0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEyQ08iLCJmaWxlIjoiL1VzZXJzL3ZlbnVzL1ZFRi92ZWYtZnJhbWV3b3JrLXJlYWN0L3BhY2thZ2VzL2NvbXBvbmVudHMvc3JjL3RyZWUtc2VsZWN0L2hvb2tzL3VzZS1kYXRhLW9wdGlvbnMtdHJlZS1zZWxlY3QudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBEYXRhT3B0aW9uV2l0aFBpbnlpbiB9IGZyb20gXCJAdmVmLWZyYW1ld29yay9jb3JlXCI7XG5pbXBvcnQgdHlwZSB7IFVzZURhdGFPcHRpb25zUXVlcnlPcHRpb25zIH0gZnJvbSBcIkB2ZWYtZnJhbWV3b3JrL2hvb2tzXCI7XG5pbXBvcnQgdHlwZSB7IEtleSB9IGZyb20gXCJAdmVmLW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pYWxzLmluY2x1ZGVzKGlucHV0KSk7XG59XG4iXX0= */"),children:n.jsx(m.Loader,{})});function a({filterable:l=!1,onFetch:c,...i}){const{options:Z,isFetching:b,promise:G}=X.useDataOptionsQuery({...i,withPinyin:!0}),g=W.useMemo(()=>({treeData:Z,loading:b,fieldNames:t,maxTagCount:"responsive",listHeight:V,notFoundContent:b?d:void 0,filterTreeNode:l&&R,treeNodeFilterProp:"labelPinyinInitials",treeNodeLabelProp:"label",showSearch:l,treeLine:{showLeafIcon:!1}}),[b,Z,l]),e=W.useEffectEvent(s=>{c?.(s)});return W.useEffect(()=>{G.then(e)},[G]),g}function R(l,c){const i=Reflect.get(c,"label"),Z=Reflect.get(c,"labelPinyin"),b=Reflect.get(c,"labelPinyinInitials"),G=Reflect.get(c,"description"),g=Reflect.get(c,"descriptionPinyin"),e=Reflect.get(c,"descriptionPinyinInitials");return I.isString(i)&&i.includes(l)||I.isString(Z)&&Z.includes(l)||I.isString(b)&&b.includes(l)||I.isString(G)&&G.includes(l)||I.isString(g)&&g.includes(l)||I.isString(e)&&e.includes(l)}exports.useDataOptionsTreeSelect=a;
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
require('./hooks/index.cjs');
|
|
7
|
-
const antd = require('antd');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(exports, "TreeSelect", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: () => antd.TreeSelect
|
|
14
|
-
});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./hooks/index.cjs");const e=require("antd");Object.defineProperty(exports,"TreeSelect",{enumerable:!0,get:()=>e.TreeSelect});
|
|
@@ -1,61 +1 @@
|
|
|
1
|
-
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
|
-
const core = require('@vef-framework/core');
|
|
8
|
-
const react = require('react');
|
|
9
|
-
require('./props.cjs');
|
|
10
|
-
|
|
11
|
-
function TypingAnimation({
|
|
12
|
-
children,
|
|
13
|
-
duration = 100,
|
|
14
|
-
delay = 0,
|
|
15
|
-
startOnView = false,
|
|
16
|
-
...props
|
|
17
|
-
}) {
|
|
18
|
-
const [displayedText, setDisplayedText] = react.useState("");
|
|
19
|
-
const [started, setStarted] = react.useState(false);
|
|
20
|
-
const elementRef = react.useRef(null);
|
|
21
|
-
const isInView = core.useInView(elementRef, {
|
|
22
|
-
amount: 0.3,
|
|
23
|
-
once: true
|
|
24
|
-
});
|
|
25
|
-
react.useEffect(() => {
|
|
26
|
-
if (!startOnView) {
|
|
27
|
-
const startTimeout2 = setTimeout(() => {
|
|
28
|
-
setStarted(true);
|
|
29
|
-
}, delay);
|
|
30
|
-
return () => clearTimeout(startTimeout2);
|
|
31
|
-
}
|
|
32
|
-
if (!isInView) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
const startTimeout = setTimeout(() => {
|
|
36
|
-
setStarted(true);
|
|
37
|
-
}, delay);
|
|
38
|
-
return () => clearTimeout(startTimeout);
|
|
39
|
-
}, [delay, startOnView, isInView]);
|
|
40
|
-
react.useEffect(() => {
|
|
41
|
-
if (!started) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
const graphemes = [...react.Children.toArray(children).join("")];
|
|
45
|
-
let index = 0;
|
|
46
|
-
const typingEffect = setInterval(() => {
|
|
47
|
-
if (index < graphemes.length) {
|
|
48
|
-
setDisplayedText(graphemes.slice(0, index + 1).join(""));
|
|
49
|
-
index++;
|
|
50
|
-
} else {
|
|
51
|
-
clearInterval(typingEffect);
|
|
52
|
-
}
|
|
53
|
-
}, duration);
|
|
54
|
-
return () => {
|
|
55
|
-
clearInterval(typingEffect);
|
|
56
|
-
};
|
|
57
|
-
}, [children, duration, started]);
|
|
58
|
-
return /* @__PURE__ */ jsxRuntime.jsx(core.motion.div, { ref: elementRef, ...props, children: displayedText });
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
exports.TypingAnimation = TypingAnimation;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("@emotion/react/jsx-runtime"),m=require("@vef-framework/core"),e=require("react");require("./props.cjs");function y({children:i,duration:s=100,delay:n=0,startOnView:o=!1,...T}){const[d,g]=e.useState(""),[u,c]=e.useState(!1),a=e.useRef(null),l=m.useInView(a,{amount:.3,once:!0});return e.useEffect(()=>{if(!o){const t=setTimeout(()=>{c(!0)},n);return()=>clearTimeout(t)}if(!l)return;const r=setTimeout(()=>{c(!0)},n);return()=>clearTimeout(r)},[n,o,l]),e.useEffect(()=>{if(!u)return;const r=[...e.Children.toArray(i).join("")];let t=0;const f=setInterval(()=>{t<r.length?(g(r.slice(0,t+1).join("")),t++):clearInterval(f)},s);return()=>{clearInterval(f)}},[i,s,u]),p.jsx(m.motion.div,{ref:a,...T,children:d})}exports.TypingAnimation=y;
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const antd = require('antd');
|
|
7
|
-
require('antd/es/typography/Link');
|
|
8
|
-
require('antd/es/typography/Paragraph');
|
|
9
|
-
require('antd/es/typography/Text');
|
|
10
|
-
require('antd/es/typography/Title');
|
|
11
|
-
|
|
12
|
-
const {
|
|
13
|
-
Text,
|
|
14
|
-
Link,
|
|
15
|
-
Title,
|
|
16
|
-
Paragraph
|
|
17
|
-
} = antd.Typography;
|
|
18
|
-
|
|
19
|
-
exports.Link = Link;
|
|
20
|
-
exports.Paragraph = Paragraph;
|
|
21
|
-
exports.Text = Text;
|
|
22
|
-
exports.Title = Title;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("antd");require("antd/es/typography/Link");require("antd/es/typography/Paragraph");require("antd/es/typography/Text");require("antd/es/typography/Title");const{Text:r,Link:t,Title:i,Paragraph:a}=e.Typography;exports.Link=t;exports.Paragraph=a;exports.Text=r;exports.Title=i;
|
|
@@ -1,83 +1 @@
|
|
|
1
|
-
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
|
-
const antd = require('antd');
|
|
8
|
-
const ImageCropper = require('antd-img-crop');
|
|
9
|
-
const lucideReact = require('lucide-react');
|
|
10
|
-
const react = require('react');
|
|
11
|
-
require('../_base/index.cjs');
|
|
12
|
-
require('../button/index.cjs');
|
|
13
|
-
const index = require('../icon/index.cjs');
|
|
14
|
-
require('../image/index.cjs');
|
|
15
|
-
require('./props.cjs');
|
|
16
|
-
const props = require('../_base/helpers/props.cjs');
|
|
17
|
-
|
|
18
|
-
const DEFAULT_CROPPER_CONFIG = {
|
|
19
|
-
showReset: true,
|
|
20
|
-
rotationSlider: true,
|
|
21
|
-
zoomSlider: true
|
|
22
|
-
};
|
|
23
|
-
async function getFileBase64(file) {
|
|
24
|
-
return await new Promise((resolve, reject) => {
|
|
25
|
-
const reader = new FileReader();
|
|
26
|
-
reader.readAsDataURL(file);
|
|
27
|
-
reader.addEventListener("load", () => resolve(reader.result));
|
|
28
|
-
reader.addEventListener("error", (error) => reject(error));
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function Upload({
|
|
32
|
-
enableCrop = false,
|
|
33
|
-
cropperProps,
|
|
34
|
-
listType,
|
|
35
|
-
fileList,
|
|
36
|
-
defaultFileList,
|
|
37
|
-
maxCount,
|
|
38
|
-
pastable = true,
|
|
39
|
-
onPreview,
|
|
40
|
-
children,
|
|
41
|
-
...props$1
|
|
42
|
-
}) {
|
|
43
|
-
const isPictureCardOrCircle = listType === "picture-card" || listType === "picture-circle";
|
|
44
|
-
const hasReachedMaxCount = (fileList || defaultFileList || []).length >= (maxCount || Infinity);
|
|
45
|
-
const uploadButton = react.useMemo(() => {
|
|
46
|
-
if (children) {
|
|
47
|
-
return children;
|
|
48
|
-
}
|
|
49
|
-
if (isPictureCardOrCircle) {
|
|
50
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index.Icon, { component: lucideReact.PlusIcon });
|
|
51
|
-
}
|
|
52
|
-
return /* @__PURE__ */ jsxRuntime.jsx(antd.Button, { disabled: hasReachedMaxCount, icon: /* @__PURE__ */ jsxRuntime.jsx(index.Icon, { component: lucideReact.UploadIcon }), type: "primary", children: "上传" });
|
|
53
|
-
}, [children, isPictureCardOrCircle, hasReachedMaxCount]);
|
|
54
|
-
const [isPreviewOpen, setIsPreviewOpen] = react.useState(false);
|
|
55
|
-
const [previewImage, setPreviewImage] = react.useState("");
|
|
56
|
-
const handlePreview = react.useCallback(async (file) => {
|
|
57
|
-
let preview = file.url;
|
|
58
|
-
if (!preview && file.originFileObj) {
|
|
59
|
-
preview = await getFileBase64(file.originFileObj);
|
|
60
|
-
}
|
|
61
|
-
setPreviewImage(preview);
|
|
62
|
-
setIsPreviewOpen(true);
|
|
63
|
-
}, []);
|
|
64
|
-
const shouldShowUploadButton = !isPictureCardOrCircle || !hasReachedMaxCount;
|
|
65
|
-
const uploadElement = /* @__PURE__ */ jsxRuntime.jsx(antd.Upload, { ...props$1, defaultFileList, fileList, listType, maxCount, pastable, onPreview: onPreview || handlePreview, children: shouldShowUploadButton && uploadButton });
|
|
66
|
-
const mergedCropperProps = react.useMemo(() => props.mergeProps(cropperProps ?? {}, DEFAULT_CROPPER_CONFIG), [cropperProps]);
|
|
67
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
68
|
-
enableCrop ? /* @__PURE__ */ jsxRuntime.jsx(ImageCropper, { ...mergedCropperProps, children: uploadElement }) : uploadElement,
|
|
69
|
-
previewImage && /* @__PURE__ */ jsxRuntime.jsx(antd.Image, { src: previewImage, wrapperStyle: {
|
|
70
|
-
display: "none"
|
|
71
|
-
}, preview: {
|
|
72
|
-
visible: isPreviewOpen,
|
|
73
|
-
onVisibleChange: (visible) => setIsPreviewOpen(visible),
|
|
74
|
-
afterOpenChange: (visible) => {
|
|
75
|
-
if (!visible) {
|
|
76
|
-
setPreviewImage("");
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
} })
|
|
80
|
-
] });
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
exports.Upload = Upload;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@emotion/react/jsx-runtime"),p=require("antd"),f=require("antd-img-crop"),h=require("lucide-react"),o=require("react");require("../_base/index.cjs");require("../button/index.cjs");const j=require("../icon/index.cjs");require("../image/index.cjs");require("./props.cjs");const y=require("../_base/helpers/props.cjs"),U={showReset:!0,rotationSlider:!0,zoomSlider:!0};async function F(a){return await new Promise((i,t)=>{const r=new FileReader;r.readAsDataURL(a),r.addEventListener("load",()=>i(r.result)),r.addEventListener("error",s=>t(s))})}function E({enableCrop:a=!1,cropperProps:i,listType:t,fileList:r,defaultFileList:s,maxCount:m,pastable:q=!0,onPreview:I,children:c,...x}){const u=t==="picture-card"||t==="picture-circle",d=(r||s||[]).length>=(m||1/0),C=o.useMemo(()=>c||(u?e.jsx(j.Icon,{component:h.PlusIcon}):e.jsx(p.Button,{disabled:d,icon:e.jsx(j.Icon,{component:h.UploadIcon}),type:"primary",children:"上传"})),[c,u,d]),[O,g]=o.useState(!1),[w,v]=o.useState(""),b=o.useCallback(async n=>{let l=n.url;!l&&n.originFileObj&&(l=await F(n.originFileObj)),v(l),g(!0)},[]),R=!u||!d,P=e.jsx(p.Upload,{...x,defaultFileList:s,fileList:r,listType:t,maxCount:m,pastable:q,onPreview:I||b,children:R&&C}),S=o.useMemo(()=>y.mergeProps(i??{},U),[i]);return e.jsxs(e.Fragment,{children:[a?e.jsx(f,{...S,children:P}):P,w&&e.jsx(p.Image,{src:w,wrapperStyle:{display:"none"},preview:{visible:O,onVisibleChange:n=>g(n),afterOpenChange:n=>{n||v("")}}})]})}exports.Upload=E;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const antd = require('antd');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports, "Watermark", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: () => antd.Watermark
|
|
13
|
-
});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("antd");Object.defineProperty(exports,"Watermark",{enumerable:!0,get:()=>e.Watermark});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const breakpoints = Object.freeze({
|
|
1
|
+
const e = Object.freeze({
|
|
3
2
|
xxs: "0em",
|
|
4
3
|
xs: "36em",
|
|
5
4
|
sm: "48em",
|
|
@@ -8,5 +7,6 @@ const breakpoints = Object.freeze({
|
|
|
8
7
|
xl: "88em",
|
|
9
8
|
xxl: "100em"
|
|
10
9
|
});
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
export {
|
|
11
|
+
e as breakpoints
|
|
12
|
+
};
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const presetColors = PresetColors;
|
|
7
|
-
const semanticScenes = ["success", "info", "warning", "error"];
|
|
8
|
-
const semanticSceneLabels = {
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { CloseCircleOutlined as s, ExclamationCircleOutlined as r, InfoCircleOutlined as o, CheckCircleOutlined as n } from "@ant-design/icons";
|
|
3
|
+
import { PresetColors as c } from "antd/es/theme/internal";
|
|
4
|
+
const i = c, t = ["success", "info", "warning", "error"], f = {
|
|
9
5
|
success: "成功",
|
|
10
6
|
info: "提示",
|
|
11
7
|
warning: "警告",
|
|
12
8
|
error: "错误"
|
|
9
|
+
}, p = {
|
|
10
|
+
success: /* @__PURE__ */ e(n, {}),
|
|
11
|
+
info: /* @__PURE__ */ e(o, {}),
|
|
12
|
+
warning: /* @__PURE__ */ e(r, {}),
|
|
13
|
+
error: /* @__PURE__ */ e(s, {})
|
|
14
|
+
}, l = ["primary", ...t], d = [...i, ...l], a = ["small", "medium", "large"], g = ["extra-small", ...a, "extra-large"];
|
|
15
|
+
export {
|
|
16
|
+
d as colors,
|
|
17
|
+
g as fullSizes,
|
|
18
|
+
i as presetColors,
|
|
19
|
+
l as semanticColors,
|
|
20
|
+
p as semanticSceneIcons,
|
|
21
|
+
f as semanticSceneLabels,
|
|
22
|
+
t as semanticScenes,
|
|
23
|
+
a as sizes
|
|
13
24
|
};
|
|
14
|
-
const semanticSceneIcons = {
|
|
15
|
-
success: /* @__PURE__ */ jsx(CheckCircleOutlined, {}),
|
|
16
|
-
info: /* @__PURE__ */ jsx(InfoCircleOutlined, {}),
|
|
17
|
-
warning: /* @__PURE__ */ jsx(ExclamationCircleOutlined, {}),
|
|
18
|
-
error: /* @__PURE__ */ jsx(CloseCircleOutlined, {})
|
|
19
|
-
};
|
|
20
|
-
const semanticColors = ["primary", ...semanticScenes];
|
|
21
|
-
const colors = [...presetColors, ...semanticColors];
|
|
22
|
-
const sizes = ["small", "medium", "large"];
|
|
23
|
-
const fullSizes = ["extra-small", ...sizes, "extra-large"];
|
|
24
|
-
|
|
25
|
-
export { colors, fullSizes, presetColors, semanticColors, semanticSceneIcons, semanticSceneLabels, semanticScenes, sizes };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const globalCssVars = {
|
|
1
|
+
const o = {
|
|
3
2
|
blue: "var(--vef-blue)",
|
|
4
3
|
purple: "var(--vef-purple)",
|
|
5
4
|
cyan: "var(--vef-cyan)",
|
|
@@ -672,5 +671,6 @@ const globalCssVars = {
|
|
|
672
671
|
colorStone900: "var(--vef-color-stone-900)",
|
|
673
672
|
colorStone950: "var(--vef-color-stone-950)"
|
|
674
673
|
};
|
|
675
|
-
|
|
676
|
-
|
|
674
|
+
export {
|
|
675
|
+
o as globalCssVars
|
|
676
|
+
};
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
1
|
+
import { breakpoints as o } from "./breakpoints.js";
|
|
2
|
+
import { colors as c, fullSizes as n, presetColors as t, semanticColors as a, semanticSceneIcons as l, semanticSceneLabels as i, semanticScenes as m, sizes as p } from "./common.js";
|
|
3
|
+
import { globalCssVars as S } from "./css-vars.js";
|
|
4
|
+
export {
|
|
5
|
+
o as breakpoints,
|
|
6
|
+
c as colors,
|
|
7
|
+
n as fullSizes,
|
|
8
|
+
S as globalCssVars,
|
|
9
|
+
t as presetColors,
|
|
10
|
+
a as semanticColors,
|
|
11
|
+
l as semanticSceneIcons,
|
|
12
|
+
i as semanticSceneLabels,
|
|
13
|
+
m as semanticScenes,
|
|
14
|
+
p as sizes
|
|
15
|
+
};
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { isUndefined as e } from "@vef-framework/shared";
|
|
2
|
+
import "../constants/index.js";
|
|
3
|
+
import { breakpoints as c } from "../constants/breakpoints.js";
|
|
4
|
+
const f = Object.keys(c);
|
|
5
|
+
function x(t, o) {
|
|
6
|
+
if (e(t[o]))
|
|
7
|
+
return t[o];
|
|
8
|
+
const i = f.indexOf(o);
|
|
9
|
+
for (let r = i - 1; r >= 0; r--) {
|
|
10
|
+
const n = f[r];
|
|
11
|
+
if (!e(t[n]))
|
|
12
|
+
return t[n];
|
|
10
13
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return breakpointValues[bp];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
for (let i = currentIndex + 1; i < breakpointOrder.length; i++) {
|
|
19
|
-
const bp = breakpointOrder[i];
|
|
20
|
-
if (!isUndefined(breakpointValues[bp])) {
|
|
21
|
-
return breakpointValues[bp];
|
|
22
|
-
}
|
|
14
|
+
for (let r = i + 1; r < f.length; r++) {
|
|
15
|
+
const n = f[r];
|
|
16
|
+
if (!e(t[n]))
|
|
17
|
+
return t[n];
|
|
23
18
|
}
|
|
24
19
|
}
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
export {
|
|
21
|
+
x as resolveBreakpointValue
|
|
22
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function isPresetColor(color) {
|
|
5
|
-
return Array.prototype.includes.call(presetColors, color);
|
|
1
|
+
import { presetColors as o, semanticColors as t } from "../constants/common.js";
|
|
2
|
+
function l(r) {
|
|
3
|
+
return Array.prototype.includes.call(o, r);
|
|
6
4
|
}
|
|
7
|
-
function
|
|
8
|
-
return Array.prototype.includes.call(
|
|
5
|
+
function n(r) {
|
|
6
|
+
return Array.prototype.includes.call(t, r);
|
|
9
7
|
}
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export {
|
|
9
|
+
l as isPresetColor,
|
|
10
|
+
n as isSemanticColor
|
|
11
|
+
};
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function getSpacingValue(value) {
|
|
5
|
-
return isNumber(value) ? `${value}px` : value;
|
|
1
|
+
import { isNumber as i } from "@vef-framework/shared";
|
|
2
|
+
function t(r) {
|
|
3
|
+
return i(r) ? `${r}px` : r;
|
|
6
4
|
}
|
|
7
|
-
function
|
|
8
|
-
if (
|
|
9
|
-
return
|
|
10
|
-
}
|
|
11
|
-
if (size === "medium") {
|
|
12
|
-
return "middle";
|
|
13
|
-
}
|
|
14
|
-
return size;
|
|
5
|
+
function e(r) {
|
|
6
|
+
if (r)
|
|
7
|
+
return r === "medium" ? "middle" : r;
|
|
15
8
|
}
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
export {
|
|
10
|
+
t as getSpacingValue,
|
|
11
|
+
e as mapSize
|
|
12
|
+
};
|
|
@@ -1,9 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {
|
|
1
|
+
import { resolveBreakpointValue as r } from "./breakpoints.js";
|
|
2
|
+
import { isPresetColor as i, isSemanticColor as t } from "./color.js";
|
|
3
|
+
import { getSpacingValue as n, mapSize as f } from "./common.js";
|
|
4
|
+
import { closeAllMessages as c, showErrorMessage as g, showInfoMessage as h, showLoadingMessage as w, showSuccessMessage as m, showWarningMessage as p } from "./message.js";
|
|
5
|
+
import { showConfirm as A, showErrorAlert as M, showInfoAlert as S, showSuccessAlert as u, showWarningAlert as N } from "./modal.js";
|
|
6
|
+
import { closeAllNotifications as E, showErrorNotification as I, showInfoNotification as P, showSuccessNotification as W, showWarningNotification as V } from "./notification.js";
|
|
7
|
+
import { filterProps as k, mergeProps as v } from "./props.js";
|
|
8
|
+
import { isFragment as B } from "./react.js";
|
|
9
|
+
export {
|
|
10
|
+
c as closeAllMessages,
|
|
11
|
+
E as closeAllNotifications,
|
|
12
|
+
k as filterProps,
|
|
13
|
+
n as getSpacingValue,
|
|
14
|
+
B as isFragment,
|
|
15
|
+
i as isPresetColor,
|
|
16
|
+
t as isSemanticColor,
|
|
17
|
+
f as mapSize,
|
|
18
|
+
v as mergeProps,
|
|
19
|
+
r as resolveBreakpointValue,
|
|
20
|
+
A as showConfirm,
|
|
21
|
+
M as showErrorAlert,
|
|
22
|
+
g as showErrorMessage,
|
|
23
|
+
I as showErrorNotification,
|
|
24
|
+
S as showInfoAlert,
|
|
25
|
+
h as showInfoMessage,
|
|
26
|
+
P as showInfoNotification,
|
|
27
|
+
w as showLoadingMessage,
|
|
28
|
+
u as showSuccessAlert,
|
|
29
|
+
m as showSuccessMessage,
|
|
30
|
+
W as showSuccessNotification,
|
|
31
|
+
N as showWarningAlert,
|
|
32
|
+
p as showWarningMessage,
|
|
33
|
+
V as showWarningNotification
|
|
34
|
+
};
|