@vef-framework/components 2.0.4 → 2.0.6
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
package/dist/es/table/index.js
CHANGED
|
@@ -1,53 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
columns,
|
|
18
|
-
...restProps
|
|
1
|
+
import { jsx as p } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useElementSize as b } from "@vef-framework/hooks";
|
|
3
|
+
import { toInt as g, isString as u } from "@vef-framework/shared";
|
|
4
|
+
import { Table as x } from "antd";
|
|
5
|
+
import { useEffect as w, useMemo as H } from "react";
|
|
6
|
+
import "../_base/index.js";
|
|
7
|
+
import "./props.js";
|
|
8
|
+
import { pageSizeOptions as F, usePaginationProps as I } from "./use-pagination-props.js";
|
|
9
|
+
import { fullHeight as S } from "../_base/styles/common.js";
|
|
10
|
+
function k({
|
|
11
|
+
className: m,
|
|
12
|
+
style: h,
|
|
13
|
+
flexHeight: s = !0,
|
|
14
|
+
virtual: r = !1,
|
|
15
|
+
columns: o,
|
|
16
|
+
...c
|
|
19
17
|
}) {
|
|
20
18
|
const {
|
|
21
|
-
ref:
|
|
22
|
-
height:
|
|
23
|
-
} =
|
|
19
|
+
ref: i,
|
|
20
|
+
height: a
|
|
21
|
+
} = b({
|
|
24
22
|
box: "border-box"
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} = useElementSize({
|
|
23
|
+
}), {
|
|
24
|
+
ref: f,
|
|
25
|
+
height: n
|
|
26
|
+
} = b({
|
|
30
27
|
box: "border-box"
|
|
31
28
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, [
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
columns
|
|
29
|
+
w(() => {
|
|
30
|
+
f.current = i.current?.querySelector(".vef-table-header");
|
|
31
|
+
}, [i.current, f]);
|
|
32
|
+
const d = H(() => {
|
|
33
|
+
const t = {
|
|
34
|
+
columns: o
|
|
38
35
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
props.virtual = virtual;
|
|
47
|
-
}
|
|
48
|
-
return props;
|
|
49
|
-
}, [tableHeight, tableHeaderHeight, columns, flexHeight, virtual]);
|
|
50
|
-
return /* @__PURE__ */ jsx("div", { ref: tableRef, className, css: fullHeight, style, children: /* @__PURE__ */ jsx(Table$1, { ...restProps, ...tableProps }) });
|
|
36
|
+
return s && (t.scroll = {
|
|
37
|
+
scrollToFirstRowOnChange: !0,
|
|
38
|
+
x: r ? (o || []).map((e) => u(e.width) ? g(e.width) : e.width || e.minWidth || 200).reduce((e, l) => e + l, 0) : "max-content",
|
|
39
|
+
y: r ? a - n : "100%"
|
|
40
|
+
}, t.sticky = !1, t.virtual = r), t;
|
|
41
|
+
}, [a, n, o, s, r]);
|
|
42
|
+
return /* @__PURE__ */ p("div", { ref: i, className: m, css: S, style: h, children: /* @__PURE__ */ p(x, { ...c, ...d }) });
|
|
51
43
|
}
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
export {
|
|
45
|
+
k as Table,
|
|
46
|
+
F as pageSizeOptions,
|
|
47
|
+
I as usePaginationProps
|
|
48
|
+
};
|
package/dist/es/table/props.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function renderTotal(total, range) {
|
|
7
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1
|
+
import { jsxs as t, Fragment as n, jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as i } from "react";
|
|
3
|
+
const o = [10, 15, 20, 30, 40, 50, 100];
|
|
4
|
+
function u(r, e) {
|
|
5
|
+
return /* @__PURE__ */ t(n, { children: [
|
|
8
6
|
"第",
|
|
9
7
|
" ",
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
|
|
8
|
+
/* @__PURE__ */ t("strong", { children: [
|
|
9
|
+
e[0],
|
|
12
10
|
" ",
|
|
13
11
|
"-",
|
|
14
12
|
" ",
|
|
15
|
-
|
|
13
|
+
e[1]
|
|
16
14
|
] }),
|
|
17
15
|
" ",
|
|
18
16
|
"条",
|
|
@@ -21,27 +19,27 @@ function renderTotal(total, range) {
|
|
|
21
19
|
" ",
|
|
22
20
|
"共",
|
|
23
21
|
" ",
|
|
24
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ s("strong", { children: r }),
|
|
25
23
|
" ",
|
|
26
24
|
"条"
|
|
27
25
|
] });
|
|
28
26
|
}
|
|
29
|
-
function
|
|
30
|
-
total,
|
|
31
|
-
paginationParams
|
|
27
|
+
function d({
|
|
28
|
+
total: r,
|
|
29
|
+
paginationParams: e
|
|
32
30
|
}) {
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
44
|
-
}, [paginationParams.page, paginationParams.size, total]);
|
|
31
|
+
return i(() => ({
|
|
32
|
+
size: "default",
|
|
33
|
+
showSizeChanger: !0,
|
|
34
|
+
showTotal: u,
|
|
35
|
+
pageSizeOptions: o,
|
|
36
|
+
current: e.page ?? 1,
|
|
37
|
+
pageSize: e.size ?? o[1],
|
|
38
|
+
total: r,
|
|
39
|
+
placement: ["bottomEnd"]
|
|
40
|
+
}), [e.page, e.size, r]);
|
|
45
41
|
}
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
export {
|
|
43
|
+
o as pageSizeOptions,
|
|
44
|
+
d as usePaginationProps
|
|
45
|
+
};
|
package/dist/es/tabs/index.js
CHANGED
package/dist/es/tag/index.js
CHANGED
package/dist/es/tooltip/index.js
CHANGED
package/dist/es/tour/index.js
CHANGED
|
@@ -1,72 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const fieldNames = {
|
|
1
|
+
import { useDataOptionsQuery as w } from "@vef-framework/hooks";
|
|
2
|
+
import { isString as t, filterTreeWithAncestors as D } from "@vef-framework/shared";
|
|
3
|
+
import { useState as F, useMemo as s, useEffectEvent as I, useEffect as N } from "react";
|
|
4
|
+
const S = {
|
|
7
5
|
title: "label",
|
|
8
6
|
key: "value",
|
|
9
7
|
children: "children"
|
|
10
8
|
};
|
|
11
|
-
function
|
|
12
|
-
onFetch,
|
|
13
|
-
...
|
|
9
|
+
function v({
|
|
10
|
+
onFetch: h,
|
|
11
|
+
...m
|
|
14
12
|
}) {
|
|
15
13
|
const {
|
|
16
|
-
options,
|
|
17
|
-
isFetching,
|
|
18
|
-
promise
|
|
19
|
-
} =
|
|
20
|
-
...
|
|
21
|
-
withPinyin:
|
|
14
|
+
options: r,
|
|
15
|
+
isFetching: y,
|
|
16
|
+
promise: o
|
|
17
|
+
} = w({
|
|
18
|
+
...m,
|
|
19
|
+
withPinyin: !0
|
|
20
|
+
}), [e, P] = F(""), n = s(() => {
|
|
21
|
+
if (e)
|
|
22
|
+
return (i) => {
|
|
23
|
+
const {
|
|
24
|
+
label: u,
|
|
25
|
+
labelPinyin: l,
|
|
26
|
+
labelPinyinInitials: a,
|
|
27
|
+
description: d,
|
|
28
|
+
descriptionPinyin: f,
|
|
29
|
+
descriptionPinyinInitials: p
|
|
30
|
+
} = i;
|
|
31
|
+
return t(u) && u.includes(e) || t(l) && l.includes(e) || t(a) && a.includes(e) || t(d) && d.includes(e) || t(f) && f.includes(e) || t(p) && p.includes(e);
|
|
32
|
+
};
|
|
33
|
+
}, [e]), c = s(() => n ? D(r, (i) => n(i)) : r, [n, r]), b = s(() => ({
|
|
34
|
+
treeData: c,
|
|
35
|
+
fieldNames: S,
|
|
36
|
+
showLine: {
|
|
37
|
+
showLeafIcon: !1
|
|
38
|
+
},
|
|
39
|
+
autoExpandParent: !0,
|
|
40
|
+
blockNode: !0,
|
|
41
|
+
filterTreeNode: n
|
|
42
|
+
}), [n, c]), E = I((i) => {
|
|
43
|
+
h?.(i);
|
|
22
44
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
label,
|
|
31
|
-
labelPinyin,
|
|
32
|
-
labelPinyinInitials,
|
|
33
|
-
description,
|
|
34
|
-
descriptionPinyin,
|
|
35
|
-
descriptionPinyinInitials
|
|
36
|
-
} = node;
|
|
37
|
-
return isString(label) && label.includes(searchValue) || isString(labelPinyin) && labelPinyin.includes(searchValue) || isString(labelPinyinInitials) && labelPinyinInitials.includes(searchValue) || isString(description) && description.includes(searchValue) || isString(descriptionPinyin) && descriptionPinyin.includes(searchValue) || isString(descriptionPinyinInitials) && descriptionPinyinInitials.includes(searchValue);
|
|
38
|
-
};
|
|
39
|
-
}, [searchValue]);
|
|
40
|
-
const treeData = useMemo(() => {
|
|
41
|
-
if (!filterTreeNode) {
|
|
42
|
-
return options;
|
|
43
|
-
}
|
|
44
|
-
return filterTreeWithAncestors(options, (node) => filterTreeNode(node));
|
|
45
|
-
}, [filterTreeNode, options]);
|
|
46
|
-
const treeProps = useMemo(() => {
|
|
47
|
-
return {
|
|
48
|
-
treeData,
|
|
49
|
-
fieldNames,
|
|
50
|
-
showLine: {
|
|
51
|
-
showLeafIcon: false
|
|
52
|
-
},
|
|
53
|
-
autoExpandParent: true,
|
|
54
|
-
blockNode: true,
|
|
55
|
-
filterTreeNode
|
|
56
|
-
};
|
|
57
|
-
}, [filterTreeNode, treeData]);
|
|
58
|
-
const onFetchFn = useEffectEvent((data) => {
|
|
59
|
-
onFetch?.(data);
|
|
60
|
-
});
|
|
61
|
-
useEffect(() => {
|
|
62
|
-
promise.then(onFetchFn);
|
|
63
|
-
}, [promise]);
|
|
64
|
-
return {
|
|
65
|
-
treeProps,
|
|
66
|
-
isFetching,
|
|
67
|
-
searchValue,
|
|
68
|
-
setSearchValue
|
|
45
|
+
return N(() => {
|
|
46
|
+
o.then(E);
|
|
47
|
+
}, [o]), {
|
|
48
|
+
treeProps: b,
|
|
49
|
+
isFetching: y,
|
|
50
|
+
searchValue: e,
|
|
51
|
+
setSearchValue: P
|
|
69
52
|
};
|
|
70
53
|
}
|
|
71
|
-
|
|
72
|
-
|
|
54
|
+
export {
|
|
55
|
+
v as useDataOptionsTree
|
|
56
|
+
};
|
package/dist/es/tree/index.js
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { useDataOptionsTreeSelect as o } from "./use-data-options-tree-select.js";
|
|
2
|
+
export {
|
|
3
|
+
o as useDataOptionsTreeSelect
|
|
4
|
+
};
|
|
@@ -1,66 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const fieldNames = {
|
|
1
|
+
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { css as n } from "@emotion/react";
|
|
3
|
+
import { useDataOptionsQuery as u } from "@vef-framework/hooks";
|
|
4
|
+
import { isString as I } from "@vef-framework/shared";
|
|
5
|
+
import { useMemo as e, useEffectEvent as d, useEffect as R } from "react";
|
|
6
|
+
import { Loader as B } from "../../loader/index.js";
|
|
7
|
+
const s = {
|
|
10
8
|
label: "label",
|
|
11
9
|
value: "value",
|
|
12
10
|
children: "children"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onFetch,
|
|
21
|
-
...queryOptions
|
|
11
|
+
}, V = 280, C = /* @__PURE__ */ m("div", { css: /* @__PURE__ */ n({
|
|
12
|
+
height: V / 2
|
|
13
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9jb21wb25lbnRzL3NyYy90cmVlLXNlbGVjdC9ob29rcy91c2UtZGF0YS1vcHRpb25zLXRyZWUtc2VsZWN0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEyQ08iLCJmaWxlIjoiL1VzZXJzL3ZlbnVzL1ZFRi92ZWYtZnJhbWV3b3JrLXJlYWN0L3BhY2thZ2VzL2NvbXBvbmVudHMvc3JjL3RyZWUtc2VsZWN0L2hvb2tzL3VzZS1kYXRhLW9wdGlvbnMtdHJlZS1zZWxlY3QudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBEYXRhT3B0aW9uV2l0aFBpbnlpbiB9IGZy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gIHx8IChpc1N0cmluZyhkZXNjcmlwdGlvblBpbnlpbikgJiYgZGVzY3JpcHRpb25QaW55aW4uaW5jbHVkZXMoaW5wdXQpKVxuICAgIHx8IChpc1N0cmluZyhkZXNjcmlwdGlvblBpbnlpbkluaXRpYWxzKSAmJiBkZXNjcmlwdGlvblBpbnlpbkluaXRpYWxzLmluY2x1ZGVzKGlucHV0KSk7XG59XG4iXX0= */"), children: /* @__PURE__ */ m(B, {}) });
|
|
14
|
+
function H({
|
|
15
|
+
filterable: l = !1,
|
|
16
|
+
onFetch: c,
|
|
17
|
+
...g
|
|
22
18
|
}) {
|
|
23
19
|
const {
|
|
24
|
-
options,
|
|
25
|
-
isFetching,
|
|
26
|
-
promise
|
|
27
|
-
} =
|
|
28
|
-
...
|
|
29
|
-
withPinyin:
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
47
|
-
}, [isFetching, options, filterable]);
|
|
48
|
-
const onFetchFn = useEffectEvent((data) => {
|
|
49
|
-
onFetch?.(data);
|
|
20
|
+
options: Z,
|
|
21
|
+
isFetching: b,
|
|
22
|
+
promise: G
|
|
23
|
+
} = u({
|
|
24
|
+
...g,
|
|
25
|
+
withPinyin: !0
|
|
26
|
+
}), i = e(() => ({
|
|
27
|
+
treeData: Z,
|
|
28
|
+
loading: b,
|
|
29
|
+
fieldNames: s,
|
|
30
|
+
maxTagCount: "responsive",
|
|
31
|
+
listHeight: V,
|
|
32
|
+
notFoundContent: b ? C : void 0,
|
|
33
|
+
filterTreeNode: l && a,
|
|
34
|
+
treeNodeFilterProp: "labelPinyinInitials",
|
|
35
|
+
treeNodeLabelProp: "label",
|
|
36
|
+
showSearch: l,
|
|
37
|
+
treeLine: {
|
|
38
|
+
showLeafIcon: !1
|
|
39
|
+
}
|
|
40
|
+
}), [b, Z, l]), W = d((X) => {
|
|
41
|
+
c?.(X);
|
|
50
42
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}, [
|
|
54
|
-
return treeSelectProps;
|
|
43
|
+
return R(() => {
|
|
44
|
+
G.then(W);
|
|
45
|
+
}, [G]), i;
|
|
55
46
|
}
|
|
56
|
-
function
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
const labelPinyinInitials = Reflect.get(node, "labelPinyinInitials");
|
|
60
|
-
const description = Reflect.get(node, "description");
|
|
61
|
-
const descriptionPinyin = Reflect.get(node, "descriptionPinyin");
|
|
62
|
-
const descriptionPinyinInitials = Reflect.get(node, "descriptionPinyinInitials");
|
|
63
|
-
return isString(label) && label.includes(input) || isString(labelPinyin) && labelPinyin.includes(input) || isString(labelPinyinInitials) && labelPinyinInitials.includes(input) || isString(description) && description.includes(input) || isString(descriptionPinyin) && descriptionPinyin.includes(input) || isString(descriptionPinyinInitials) && descriptionPinyinInitials.includes(input);
|
|
47
|
+
function a(l, c) {
|
|
48
|
+
const g = Reflect.get(c, "label"), Z = Reflect.get(c, "labelPinyin"), b = Reflect.get(c, "labelPinyinInitials"), G = Reflect.get(c, "description"), i = Reflect.get(c, "descriptionPinyin"), W = Reflect.get(c, "descriptionPinyinInitials");
|
|
49
|
+
return I(g) && g.includes(l) || I(Z) && Z.includes(l) || I(b) && b.includes(l) || I(G) && G.includes(l) || I(i) && i.includes(l) || I(W) && W.includes(l);
|
|
64
50
|
}
|
|
65
|
-
|
|
66
|
-
|
|
51
|
+
export {
|
|
52
|
+
H as useDataOptionsTreeSelect
|
|
53
|
+
};
|
|
@@ -1,57 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
startOnView = false,
|
|
12
|
-
...props
|
|
1
|
+
import { jsx as x } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useInView as I, motion as g } from "@vef-framework/core";
|
|
3
|
+
import { useState as l, useRef as v, useEffect as a, Children as h } from "react";
|
|
4
|
+
import "./props.js";
|
|
5
|
+
function R({
|
|
6
|
+
children: n,
|
|
7
|
+
duration: o = 100,
|
|
8
|
+
delay: r = 0,
|
|
9
|
+
startOnView: i = !1,
|
|
10
|
+
...p
|
|
13
11
|
}) {
|
|
14
|
-
const [
|
|
15
|
-
const [started, setStarted] = useState(false);
|
|
16
|
-
const elementRef = useRef(null);
|
|
17
|
-
const isInView = useInView(elementRef, {
|
|
12
|
+
const [T, d] = l(""), [s, u] = l(!1), m = v(null), c = I(m, {
|
|
18
13
|
amount: 0.3,
|
|
19
|
-
once:
|
|
14
|
+
once: !0
|
|
20
15
|
});
|
|
21
|
-
|
|
22
|
-
if (!
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
return () => clearTimeout(
|
|
16
|
+
return a(() => {
|
|
17
|
+
if (!i) {
|
|
18
|
+
const e = setTimeout(() => {
|
|
19
|
+
u(!0);
|
|
20
|
+
}, r);
|
|
21
|
+
return () => clearTimeout(e);
|
|
27
22
|
}
|
|
28
|
-
if (!
|
|
23
|
+
if (!c)
|
|
29
24
|
return;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
useEffect(() => {
|
|
37
|
-
if (!started) {
|
|
25
|
+
const t = setTimeout(() => {
|
|
26
|
+
u(!0);
|
|
27
|
+
}, r);
|
|
28
|
+
return () => clearTimeout(t);
|
|
29
|
+
}, [r, i, c]), a(() => {
|
|
30
|
+
if (!s)
|
|
38
31
|
return;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
setDisplayedText(graphemes.slice(0, index + 1).join(""));
|
|
45
|
-
index++;
|
|
46
|
-
} else {
|
|
47
|
-
clearInterval(typingEffect);
|
|
48
|
-
}
|
|
49
|
-
}, duration);
|
|
32
|
+
const t = [...h.toArray(n).join("")];
|
|
33
|
+
let e = 0;
|
|
34
|
+
const f = setInterval(() => {
|
|
35
|
+
e < t.length ? (d(t.slice(0, e + 1).join("")), e++) : clearInterval(f);
|
|
36
|
+
}, o);
|
|
50
37
|
return () => {
|
|
51
|
-
clearInterval(
|
|
38
|
+
clearInterval(f);
|
|
52
39
|
};
|
|
53
|
-
}, [
|
|
54
|
-
return /* @__PURE__ */ jsx(motion.div, { ref: elementRef, ...props, children: displayedText });
|
|
40
|
+
}, [n, o, s]), /* @__PURE__ */ x(g.div, { ref: m, ...p, children: T });
|
|
55
41
|
}
|
|
56
|
-
|
|
57
|
-
|
|
42
|
+
export {
|
|
43
|
+
R as TypingAnimation
|
|
44
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|