@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,44 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function showSuccessMessage(content) {
|
|
5
|
-
getMessage().success(content, 1.5);
|
|
1
|
+
import { generateId as t } from "@vef-framework/shared";
|
|
2
|
+
function i(e) {
|
|
3
|
+
o().success(e, 1.5);
|
|
6
4
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
5
|
+
function a(e) {
|
|
6
|
+
o().info(e, 2);
|
|
9
7
|
}
|
|
10
|
-
function
|
|
11
|
-
|
|
8
|
+
function c(e) {
|
|
9
|
+
o().warning(e, 3);
|
|
12
10
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
11
|
+
function g(e) {
|
|
12
|
+
o().error(e, 4);
|
|
15
13
|
}
|
|
16
|
-
function
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
key:
|
|
14
|
+
function u(e) {
|
|
15
|
+
const n = t();
|
|
16
|
+
return o().open({
|
|
17
|
+
key: n,
|
|
20
18
|
type: "loading",
|
|
21
19
|
duration: 0,
|
|
22
|
-
content
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
key: id,
|
|
20
|
+
content: e
|
|
21
|
+
}), {
|
|
22
|
+
close: () => o().destroy(n),
|
|
23
|
+
update: (s) => void o().open({
|
|
24
|
+
key: n,
|
|
28
25
|
type: "loading",
|
|
29
26
|
duration: 0,
|
|
30
|
-
content:
|
|
27
|
+
content: s
|
|
31
28
|
})
|
|
32
29
|
};
|
|
33
30
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
31
|
+
function d() {
|
|
32
|
+
o().destroy();
|
|
36
33
|
}
|
|
37
|
-
function
|
|
34
|
+
function o() {
|
|
38
35
|
const {
|
|
39
|
-
message
|
|
36
|
+
message: e
|
|
40
37
|
} = globalThis.$vef;
|
|
41
|
-
return
|
|
38
|
+
return e;
|
|
42
39
|
}
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
export {
|
|
41
|
+
d as closeAllMessages,
|
|
42
|
+
g as showErrorMessage,
|
|
43
|
+
a as showInfoMessage,
|
|
44
|
+
u as showLoadingMessage,
|
|
45
|
+
i as showSuccessMessage,
|
|
46
|
+
c as showWarningMessage
|
|
47
|
+
};
|
|
@@ -1,114 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function showConfirm(content, options) {
|
|
1
|
+
import { assign as m, isFunction as a } from "@vef-framework/shared";
|
|
2
|
+
import { semanticSceneLabels as O } from "../constants/common.js";
|
|
3
|
+
function x(t, e) {
|
|
6
4
|
const {
|
|
7
|
-
destroy,
|
|
8
|
-
update
|
|
9
|
-
} =
|
|
5
|
+
destroy: n,
|
|
6
|
+
update: o
|
|
7
|
+
} = w().confirm(A(t, e));
|
|
10
8
|
return {
|
|
11
|
-
close:
|
|
12
|
-
update: (
|
|
13
|
-
|
|
9
|
+
close: n,
|
|
10
|
+
update: (r, s) => {
|
|
11
|
+
o((c) => m(c, A(r, s)));
|
|
14
12
|
}
|
|
15
13
|
};
|
|
16
14
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
15
|
+
function T(t, e) {
|
|
16
|
+
return p("success", t, e);
|
|
19
17
|
}
|
|
20
|
-
function
|
|
21
|
-
return
|
|
18
|
+
function v(t, e) {
|
|
19
|
+
return p("info", t, e);
|
|
22
20
|
}
|
|
23
|
-
function
|
|
24
|
-
return
|
|
21
|
+
function B(t, e) {
|
|
22
|
+
return p("warning", t, e);
|
|
25
23
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
24
|
+
function P(t, e) {
|
|
25
|
+
return p("error", t, e);
|
|
28
26
|
}
|
|
29
|
-
function
|
|
27
|
+
function p(t, e, n) {
|
|
30
28
|
const {
|
|
31
|
-
destroy,
|
|
32
|
-
update
|
|
33
|
-
} =
|
|
29
|
+
destroy: o,
|
|
30
|
+
update: r
|
|
31
|
+
} = w()[t](g(t, e, n));
|
|
34
32
|
return {
|
|
35
|
-
close:
|
|
36
|
-
update: (
|
|
37
|
-
|
|
33
|
+
close: o,
|
|
34
|
+
update: (s, c) => {
|
|
35
|
+
r((i) => m(i, g(t, s, c)));
|
|
38
36
|
}
|
|
39
37
|
};
|
|
40
38
|
}
|
|
41
|
-
function
|
|
39
|
+
function A(t, e) {
|
|
42
40
|
const {
|
|
43
|
-
title = "确认提示",
|
|
44
|
-
okText,
|
|
45
|
-
cancelText,
|
|
46
|
-
okButtonProps,
|
|
47
|
-
cancelButtonProps,
|
|
48
|
-
width,
|
|
49
|
-
closable =
|
|
50
|
-
onOk,
|
|
51
|
-
onCancel,
|
|
52
|
-
onAfterOpen,
|
|
53
|
-
onAfterClose
|
|
54
|
-
} =
|
|
41
|
+
title: n = "确认提示",
|
|
42
|
+
okText: o,
|
|
43
|
+
cancelText: r,
|
|
44
|
+
okButtonProps: s,
|
|
45
|
+
cancelButtonProps: c,
|
|
46
|
+
width: i,
|
|
47
|
+
closable: d = !0,
|
|
48
|
+
onOk: h,
|
|
49
|
+
onCancel: l,
|
|
50
|
+
onAfterOpen: u,
|
|
51
|
+
onAfterClose: f
|
|
52
|
+
} = e ?? {};
|
|
55
53
|
return {
|
|
56
|
-
title,
|
|
57
|
-
content,
|
|
58
|
-
okText,
|
|
59
|
-
cancelText,
|
|
60
|
-
centered:
|
|
61
|
-
okButtonProps,
|
|
62
|
-
cancelButtonProps,
|
|
63
|
-
closable,
|
|
64
|
-
width,
|
|
65
|
-
onOk,
|
|
66
|
-
onCancel,
|
|
67
|
-
afterOpenChange:
|
|
68
|
-
|
|
69
|
-
onAfterOpen?.();
|
|
70
|
-
} else {
|
|
71
|
-
onAfterClose?.();
|
|
72
|
-
}
|
|
54
|
+
title: n,
|
|
55
|
+
content: t,
|
|
56
|
+
okText: o,
|
|
57
|
+
cancelText: r,
|
|
58
|
+
centered: !0,
|
|
59
|
+
okButtonProps: s,
|
|
60
|
+
cancelButtonProps: c,
|
|
61
|
+
closable: d,
|
|
62
|
+
width: i,
|
|
63
|
+
onOk: h,
|
|
64
|
+
onCancel: l,
|
|
65
|
+
afterOpenChange: a(u) || a(f) ? (C) => {
|
|
66
|
+
C ? u?.() : f?.();
|
|
73
67
|
} : void 0
|
|
74
68
|
};
|
|
75
69
|
}
|
|
76
|
-
function
|
|
70
|
+
function g(t, e, n) {
|
|
77
71
|
const {
|
|
78
|
-
title =
|
|
79
|
-
okText = "👍 好的,知道了",
|
|
80
|
-
okButtonProps,
|
|
81
|
-
width,
|
|
82
|
-
closable =
|
|
83
|
-
onOk,
|
|
84
|
-
onCancel,
|
|
85
|
-
onAfterOpen,
|
|
86
|
-
onAfterClose
|
|
87
|
-
} =
|
|
72
|
+
title: o = O[t],
|
|
73
|
+
okText: r = "👍 好的,知道了",
|
|
74
|
+
okButtonProps: s,
|
|
75
|
+
width: c,
|
|
76
|
+
closable: i = !1,
|
|
77
|
+
onOk: d,
|
|
78
|
+
onCancel: h,
|
|
79
|
+
onAfterOpen: l,
|
|
80
|
+
onAfterClose: u
|
|
81
|
+
} = n ?? {};
|
|
88
82
|
return {
|
|
89
|
-
title,
|
|
90
|
-
content,
|
|
91
|
-
okText,
|
|
92
|
-
okButtonProps,
|
|
93
|
-
centered:
|
|
94
|
-
width,
|
|
95
|
-
closable,
|
|
96
|
-
onOk,
|
|
97
|
-
onCancel,
|
|
98
|
-
afterOpenChange:
|
|
99
|
-
|
|
100
|
-
onAfterOpen?.();
|
|
101
|
-
} else {
|
|
102
|
-
onAfterClose?.();
|
|
103
|
-
}
|
|
83
|
+
title: o,
|
|
84
|
+
content: e,
|
|
85
|
+
okText: r,
|
|
86
|
+
okButtonProps: s,
|
|
87
|
+
centered: !0,
|
|
88
|
+
width: c,
|
|
89
|
+
closable: i,
|
|
90
|
+
onOk: d,
|
|
91
|
+
onCancel: h,
|
|
92
|
+
afterOpenChange: a(l) || a(u) ? (f) => {
|
|
93
|
+
f ? l?.() : u?.();
|
|
104
94
|
} : void 0
|
|
105
95
|
};
|
|
106
96
|
}
|
|
107
|
-
function
|
|
97
|
+
function w() {
|
|
108
98
|
const {
|
|
109
|
-
modal
|
|
99
|
+
modal: t
|
|
110
100
|
} = globalThis.$vef;
|
|
111
|
-
return
|
|
101
|
+
return t;
|
|
112
102
|
}
|
|
113
|
-
|
|
114
|
-
|
|
103
|
+
export {
|
|
104
|
+
x as showConfirm,
|
|
105
|
+
P as showErrorAlert,
|
|
106
|
+
v as showInfoAlert,
|
|
107
|
+
T as showSuccessAlert,
|
|
108
|
+
B as showWarningAlert
|
|
109
|
+
};
|
|
@@ -1,64 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const durationMap = {
|
|
1
|
+
import { generateId as l } from "@vef-framework/shared";
|
|
2
|
+
import { semanticSceneLabels as g } from "../constants/common.js";
|
|
3
|
+
const w = {
|
|
6
4
|
success: 3,
|
|
7
5
|
info: 4,
|
|
8
6
|
warning: 5,
|
|
9
7
|
error: 6
|
|
10
8
|
};
|
|
11
|
-
function
|
|
12
|
-
return
|
|
9
|
+
function h(o, t) {
|
|
10
|
+
return r("success", o, t);
|
|
13
11
|
}
|
|
14
|
-
function
|
|
15
|
-
return
|
|
12
|
+
function m(o, t) {
|
|
13
|
+
return r("info", o, t);
|
|
16
14
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
15
|
+
function y(o, t) {
|
|
16
|
+
return r("warning", o, t);
|
|
19
17
|
}
|
|
20
|
-
function
|
|
21
|
-
return
|
|
18
|
+
function b(o, t) {
|
|
19
|
+
return r("error", o, t);
|
|
22
20
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
21
|
+
function v() {
|
|
22
|
+
i().destroy();
|
|
25
23
|
}
|
|
26
|
-
function
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
getNotification().open(getNotificationOptions(key, scene, content2, options2));
|
|
24
|
+
function r(o, t, e) {
|
|
25
|
+
const n = l();
|
|
26
|
+
return i().open(u(n, o, t, e)), {
|
|
27
|
+
close: () => i().destroy(n),
|
|
28
|
+
update: (c, s) => {
|
|
29
|
+
i().open(u(n, o, c, s));
|
|
33
30
|
}
|
|
34
31
|
};
|
|
35
32
|
}
|
|
36
|
-
function
|
|
33
|
+
function u(o, t, e, n) {
|
|
37
34
|
const {
|
|
38
|
-
title =
|
|
39
|
-
duration =
|
|
40
|
-
actions,
|
|
41
|
-
closable =
|
|
42
|
-
icon
|
|
43
|
-
} =
|
|
35
|
+
title: c = g[t],
|
|
36
|
+
duration: s = w[t],
|
|
37
|
+
actions: a,
|
|
38
|
+
closable: f = !0,
|
|
39
|
+
icon: p
|
|
40
|
+
} = n ?? {};
|
|
44
41
|
return {
|
|
45
|
-
key,
|
|
46
|
-
type:
|
|
47
|
-
title,
|
|
48
|
-
description:
|
|
49
|
-
duration,
|
|
50
|
-
actions,
|
|
51
|
-
showProgress:
|
|
52
|
-
pauseOnHover:
|
|
53
|
-
closable,
|
|
54
|
-
icon
|
|
42
|
+
key: o,
|
|
43
|
+
type: t,
|
|
44
|
+
title: c,
|
|
45
|
+
description: e,
|
|
46
|
+
duration: s,
|
|
47
|
+
actions: a,
|
|
48
|
+
showProgress: !0,
|
|
49
|
+
pauseOnHover: !0,
|
|
50
|
+
closable: f,
|
|
51
|
+
icon: p
|
|
55
52
|
};
|
|
56
53
|
}
|
|
57
|
-
function
|
|
54
|
+
function i() {
|
|
58
55
|
const {
|
|
59
|
-
notification
|
|
56
|
+
notification: o
|
|
60
57
|
} = globalThis.$vef;
|
|
61
|
-
return
|
|
58
|
+
return o;
|
|
62
59
|
}
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
export {
|
|
61
|
+
v as closeAllNotifications,
|
|
62
|
+
b as showErrorNotification,
|
|
63
|
+
m as showInfoNotification,
|
|
64
|
+
h as showSuccessNotification,
|
|
65
|
+
y as showWarningNotification
|
|
66
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function filterProps(props) {
|
|
5
|
-
return Object.fromEntries(Object.entries(props).filter(([key]) => !isUndefined(key)));
|
|
1
|
+
import { isUndefined as t } from "@vef-framework/shared";
|
|
2
|
+
function n(r) {
|
|
3
|
+
return Object.fromEntries(Object.entries(r).filter(([e]) => !t(e)));
|
|
6
4
|
}
|
|
7
|
-
function
|
|
5
|
+
function o(r, e) {
|
|
8
6
|
return {
|
|
9
|
-
...
|
|
10
|
-
...
|
|
7
|
+
...e,
|
|
8
|
+
...n(r)
|
|
11
9
|
};
|
|
12
10
|
}
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
export {
|
|
12
|
+
n as filterProps,
|
|
13
|
+
o as mergeProps
|
|
14
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function isFragment(node) {
|
|
5
|
-
return isValidElement(node) && node.type === Fragment;
|
|
1
|
+
import { isValidElement as r, Fragment as e } from "react";
|
|
2
|
+
function m(t) {
|
|
3
|
+
return r(t) && t.type === e;
|
|
6
4
|
}
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export {
|
|
6
|
+
m as isFragment
|
|
7
|
+
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import { theme } from 'antd';
|
|
3
|
-
|
|
1
|
+
import { theme as o } from "antd";
|
|
4
2
|
const {
|
|
5
|
-
useToken
|
|
6
|
-
} =
|
|
7
|
-
function
|
|
3
|
+
useToken: n
|
|
4
|
+
} = o;
|
|
5
|
+
function r() {
|
|
8
6
|
const {
|
|
9
|
-
token
|
|
10
|
-
} =
|
|
11
|
-
return
|
|
7
|
+
token: e
|
|
8
|
+
} = n();
|
|
9
|
+
return e;
|
|
12
10
|
}
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
export {
|
|
12
|
+
r as useThemeTokens
|
|
13
|
+
};
|
package/dist/es/_base/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import './types/index.js';
|
|
1
|
+
import "./constants/index.js";
|
|
2
|
+
import "./helpers/index.js";
|
|
3
|
+
import "./hooks/index.js";
|
|
4
|
+
import "./styles/index.js";
|
|
5
|
+
import "./types/index.js";
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
1
|
+
import "@emotion/react";
|
|
2
|
+
function c() {
|
|
5
3
|
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).";
|
|
6
4
|
}
|
|
7
|
-
const
|
|
5
|
+
const i = process.env.NODE_ENV === "production" ? {
|
|
8
6
|
name: "1d3w5wq",
|
|
9
7
|
styles: "width:100%"
|
|
10
8
|
} : {
|
|
11
9
|
name: "1d3w5wq",
|
|
12
10
|
styles: "width:100%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9jb21wb25lbnRzL3NyYy9fYmFzZS9zdHlsZXMvY29tbW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUV5QiIsImZpbGUiOiIvVXNlcnMvdmVudXMvVkVGL3ZlZi1mcmFtZXdvcmstcmVhY3QvcGFja2FnZXMvY29tcG9uZW50cy9zcmMvX2Jhc2Uvc3R5bGVzL2NvbW1vbi50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdFwiO1xuXG5leHBvcnQgY29uc3QgZnVsbFdpZHRoID0gY3NzKHtcbiAgd2lkdGg6IFwiMTAwJVwiXG59KTtcblxuZXhwb3J0IGNvbnN0IGZ1bGxIZWlnaHQgPSBjc3Moe1xuICBoZWlnaHQ6IFwiMTAwJVwiXG59KTtcbiJdfQ== */",
|
|
13
|
-
toString:
|
|
14
|
-
}
|
|
15
|
-
const fullHeight = process.env.NODE_ENV === "production" ? {
|
|
11
|
+
toString: c
|
|
12
|
+
}, b = process.env.NODE_ENV === "production" ? {
|
|
16
13
|
name: "13udsys",
|
|
17
14
|
styles: "height:100%"
|
|
18
15
|
} : {
|
|
19
16
|
name: "13udsys",
|
|
20
17
|
styles: "height:100%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9jb21wb25lbnRzL3NyYy9fYmFzZS9zdHlsZXMvY29tbW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU0wQiIsImZpbGUiOiIvVXNlcnMvdmVudXMvVkVGL3ZlZi1mcmFtZXdvcmstcmVhY3QvcGFja2FnZXMvY29tcG9uZW50cy9zcmMvX2Jhc2Uvc3R5bGVzL2NvbW1vbi50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdFwiO1xuXG5leHBvcnQgY29uc3QgZnVsbFdpZHRoID0gY3NzKHtcbiAgd2lkdGg6IFwiMTAwJVwiXG59KTtcblxuZXhwb3J0IGNvbnN0IGZ1bGxIZWlnaHQgPSBjc3Moe1xuICBoZWlnaHQ6IFwiMTAwJVwiXG59KTtcbiJdfQ== */",
|
|
21
|
-
toString:
|
|
18
|
+
toString: c
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
b as fullHeight,
|
|
22
|
+
i as fullWidth
|
|
22
23
|
};
|
|
23
|
-
|
|
24
|
-
export { fullHeight, fullWidth };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as o from "./common.js";
|
|
2
|
+
export {
|
|
3
|
+
o as styles
|
|
4
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import './common.js';
|
|
1
|
+
import "./breakpoints.js";
|
|
2
|
+
import "./common.js";
|
|
@@ -1,46 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const okButtonProps = {
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { CheckIcon as s } from "lucide-react";
|
|
3
|
+
import "../button/index.js";
|
|
4
|
+
import { Icon as f } from "../icon/index.js";
|
|
5
|
+
import "../popconfirm/index.js";
|
|
6
|
+
import { useActionButton as d } from "./use-action-button.js";
|
|
7
|
+
import "./props.js";
|
|
8
|
+
import { Button as k, Popconfirm as v } from "antd";
|
|
9
|
+
const B = {
|
|
12
10
|
variant: "filled",
|
|
13
11
|
color: "primary",
|
|
14
|
-
icon: /* @__PURE__ */
|
|
15
|
-
}
|
|
16
|
-
const cancelButtonProps = {
|
|
12
|
+
icon: /* @__PURE__ */ o(f, { component: s })
|
|
13
|
+
}, C = {
|
|
17
14
|
variant: "text",
|
|
18
15
|
color: "default"
|
|
19
16
|
};
|
|
20
|
-
function
|
|
21
|
-
confirmable =
|
|
22
|
-
confirmMode = "popover",
|
|
23
|
-
confirmTitle = "确认提示",
|
|
24
|
-
confirmDescription = "确定要执行此操作吗?",
|
|
25
|
-
onClick,
|
|
26
|
-
...
|
|
17
|
+
function N({
|
|
18
|
+
confirmable: t = !1,
|
|
19
|
+
confirmMode: n = "popover",
|
|
20
|
+
confirmTitle: r = "确认提示",
|
|
21
|
+
confirmDescription: i = "确定要执行此操作吗?",
|
|
22
|
+
onClick: p,
|
|
23
|
+
...e
|
|
27
24
|
}) {
|
|
28
25
|
const {
|
|
29
|
-
loading,
|
|
30
|
-
invokeClickAction,
|
|
31
|
-
handleClick
|
|
32
|
-
} =
|
|
33
|
-
confirmable,
|
|
34
|
-
confirmMode,
|
|
35
|
-
confirmTitle,
|
|
36
|
-
confirmDescription,
|
|
37
|
-
onClick
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
if (confirmable && confirmMode === "popover") {
|
|
41
|
-
return /* @__PURE__ */ jsx(Popconfirm, { cancelButtonProps, description: confirmDescription, okButtonProps, title: confirmTitle, onConfirm: (event) => void invokeClickAction(event), children: buttonNode });
|
|
42
|
-
}
|
|
43
|
-
return buttonNode;
|
|
26
|
+
loading: m,
|
|
27
|
+
invokeClickAction: l,
|
|
28
|
+
handleClick: u
|
|
29
|
+
} = d({
|
|
30
|
+
confirmable: t,
|
|
31
|
+
confirmMode: n,
|
|
32
|
+
confirmTitle: r,
|
|
33
|
+
confirmDescription: i,
|
|
34
|
+
onClick: p
|
|
35
|
+
}), c = /* @__PURE__ */ o(k, { ...e, loading: m, onClick: u });
|
|
36
|
+
return t && n === "popover" ? /* @__PURE__ */ o(v, { cancelButtonProps: C, description: i, okButtonProps: B, title: r, onConfirm: (a) => void l(a), children: c }) : c;
|
|
44
37
|
}
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
export {
|
|
39
|
+
N as ActionButton
|
|
40
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|