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