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