@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,66 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
1
|
+
import { jsx as n, jsxs as y } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import "@emotion/react";
|
|
3
|
+
import { useState as X, useEffect as u } from "react";
|
|
4
|
+
import { Sparkle as s } from "./sparkle.js";
|
|
5
|
+
import "./props.js";
|
|
6
|
+
function d() {
|
|
9
7
|
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
8
|
}
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
const starY = `${Math.random() * 100}%`;
|
|
14
|
-
const color = Math.random() > 0.5 ? "var(--vef-color-primary)" : "var(--vef-color-warning)";
|
|
15
|
-
const delay = Math.random() * 2;
|
|
16
|
-
const scale = Math.random() * 1 + 0.3;
|
|
17
|
-
const lifespan = Math.random() * 10 + 5;
|
|
18
|
-
const id = `${starX}-${starY}-${Date.now()}`;
|
|
9
|
+
function C() {
|
|
10
|
+
const I = `${Math.random() * 100}%`, g = `${Math.random() * 100}%`, t = Math.random() > 0.5 ? "var(--vef-color-primary)" : "var(--vef-color-warning)", G = Math.random() * 2, l = Math.random() * 1 + 0.3, c = Math.random() * 10 + 5;
|
|
19
11
|
return {
|
|
20
|
-
id
|
|
21
|
-
x:
|
|
22
|
-
y:
|
|
23
|
-
color,
|
|
24
|
-
delay,
|
|
25
|
-
scale,
|
|
26
|
-
lifespan
|
|
12
|
+
id: `${I}-${g}-${Date.now()}`,
|
|
13
|
+
x: I,
|
|
14
|
+
y: g,
|
|
15
|
+
color: t,
|
|
16
|
+
delay: G,
|
|
17
|
+
scale: l,
|
|
18
|
+
lifespan: c
|
|
27
19
|
};
|
|
28
20
|
}
|
|
29
|
-
const
|
|
21
|
+
const o = process.env.NODE_ENV === "production" ? {
|
|
30
22
|
name: "1nrevy2",
|
|
31
23
|
styles: "position:relative;display:inline-block"
|
|
32
24
|
} : {
|
|
33
25
|
name: "1nrevy2",
|
|
34
26
|
styles: "position:relative;display:inline-block/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9jb21wb25lbnRzL3NyYy9zcGFya2xlcy10ZXh0L2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEyQnlCIiwiZmlsZSI6Ii9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9jb21wb25lbnRzL3NyYy9zcGFya2xlcy10ZXh0L2luZGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgU3BhcmtsZXNUZXh0UHJvcHMgfSBmcm9tIFwiLi9wcm9wc1wiO1xuaW1wb3J0IHR5cGUgeyB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i5zcGFya2xlfSAvPlxuICAgICAgICAgIClcbiAgICAgICAgfVxuXG4gICAgICAgIDxzdHJvbmc+e2NoaWxkcmVufTwvc3Ryb25nPlxuICAgICAgPC9zcGFuPlxuICAgIDwvZGl2PlxuICApO1xufVxuXG5leHBvcnQgeyB0eXBlIFNwYXJrbGVzVGV4dFByb3BzIH0gZnJvbSBcIi4vcHJvcHNcIjtcbiJdfQ== */",
|
|
35
|
-
toString:
|
|
27
|
+
toString: d
|
|
36
28
|
};
|
|
37
|
-
function
|
|
38
|
-
sparklesCount = 10,
|
|
39
|
-
children,
|
|
40
|
-
...
|
|
29
|
+
function x({
|
|
30
|
+
sparklesCount: I = 10,
|
|
31
|
+
children: g,
|
|
32
|
+
...t
|
|
41
33
|
}) {
|
|
42
|
-
const [
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
length:
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
lifespan: star.lifespan - 0.1
|
|
34
|
+
const [G, l] = X([]);
|
|
35
|
+
return u(() => {
|
|
36
|
+
const c = () => {
|
|
37
|
+
const i = Array.from({
|
|
38
|
+
length: I
|
|
39
|
+
}, C);
|
|
40
|
+
l(i);
|
|
41
|
+
}, e = () => {
|
|
42
|
+
l((i) => i.map((b) => b.lifespan <= 0 ? C() : {
|
|
43
|
+
...b,
|
|
44
|
+
lifespan: b.lifespan - 0.1
|
|
54
45
|
}));
|
|
55
46
|
};
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
return () => clearInterval(
|
|
59
|
-
}, [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/* @__PURE__ */ jsx("strong", { children })
|
|
47
|
+
c();
|
|
48
|
+
const a = setInterval(e, 100);
|
|
49
|
+
return () => clearInterval(a);
|
|
50
|
+
}, [I]), /* @__PURE__ */ n("div", { ...t, children: /* @__PURE__ */ y("span", { css: o, children: [
|
|
51
|
+
G.map((c) => /* @__PURE__ */ n(s, { ...c }, c.id)),
|
|
52
|
+
/* @__PURE__ */ n("strong", { children: g })
|
|
63
53
|
] }) });
|
|
64
54
|
}
|
|
65
|
-
|
|
66
|
-
|
|
55
|
+
export {
|
|
56
|
+
x as SparklesText
|
|
57
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
1
|
+
import { jsx as I } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import "@emotion/react";
|
|
3
|
+
import { motion as u } from "@vef-framework/core";
|
|
4
|
+
function i() {
|
|
7
5
|
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).";
|
|
8
6
|
}
|
|
9
|
-
const
|
|
7
|
+
const t = process.env.NODE_ENV === "production" ? {
|
|
10
8
|
name: "1292yqd",
|
|
11
9
|
styles: "position:absolute;pointer-events:none;z-index:1"
|
|
12
10
|
} : {
|
|
13
11
|
name: "1292yqd",
|
|
14
12
|
styles: "position:absolute;pointer-events:none;z-index:1/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9jb21wb25lbnRzL3NyYy9zcGFya2xlcy10ZXh0L3NwYXJrbGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWFxQiIsImZpbGUiOiIvVXNlcnMvdmVudXMvVkVGL3ZlZi1mcmFtZXdvcmstcmVhY3QvcGFja2FnZXMvY29tcG9uZW50cy9zcmMvc3BhcmtsZXMtdGV4dC9zcGFya2xlLnRzeCIsInNvdXJjZXN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g0NVpcIlxuICAgICAgICBmaWxsPXtjb2xvcn1cbiAgICAgIC8+XG4gICAgPC9tb3Rpb24uc3ZnPlxuICApO1xufVxuIl19 */",
|
|
15
|
-
toString:
|
|
13
|
+
toString: i
|
|
16
14
|
};
|
|
17
|
-
function
|
|
18
|
-
id,
|
|
19
|
-
x,
|
|
20
|
-
y,
|
|
21
|
-
color,
|
|
22
|
-
delay,
|
|
23
|
-
scale
|
|
15
|
+
function D({
|
|
16
|
+
id: g,
|
|
17
|
+
x: M,
|
|
18
|
+
y: C,
|
|
19
|
+
color: c,
|
|
20
|
+
delay: A,
|
|
21
|
+
scale: N
|
|
24
22
|
}) {
|
|
25
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ I(u.svg, { css: t, height: "21", viewBox: "0 0 21 21", width: "21", animate: {
|
|
26
24
|
opacity: [0, 1, 0],
|
|
27
|
-
scale: [0,
|
|
25
|
+
scale: [0, N, 0],
|
|
28
26
|
rotate: [75, 120, 150]
|
|
29
27
|
}, initial: {
|
|
30
28
|
opacity: 0,
|
|
31
|
-
left:
|
|
32
|
-
top:
|
|
29
|
+
left: M,
|
|
30
|
+
top: C
|
|
33
31
|
}, transition: {
|
|
34
32
|
duration: 0.8,
|
|
35
|
-
repeat:
|
|
36
|
-
delay
|
|
37
|
-
}, children: /* @__PURE__ */
|
|
33
|
+
repeat: 1 / 0,
|
|
34
|
+
delay: A
|
|
35
|
+
}, children: /* @__PURE__ */ I("path", { d: "M9.82531 0.843845C10.0553 0.215178 10.9446 0.215178 11.1746 0.843845L11.8618 2.72026C12.4006 4.19229 12.3916 6.39157 13.5 7.5C14.6084 8.60843 16.8077 8.59935 18.2797 9.13822L20.1561 9.82534C20.7858 10.0553 20.7858 10.9447 20.1561 11.1747L18.2797 11.8618C16.8077 12.4007 14.6084 12.3916 13.5 13.5C12.3916 14.6084 12.4006 16.8077 11.8618 18.2798L11.1746 20.1562C10.9446 20.7858 10.0553 20.7858 9.82531 20.1562L9.13819 18.2798C8.59932 16.8077 8.60843 14.6084 7.5 13.5C6.39157 12.3916 4.19225 12.4007 2.72023 11.8618L0.843814 11.1747C0.215148 10.9447 0.215148 10.0553 0.843814 9.82534L2.72023 9.13822C4.19225 8.59935 6.39157 8.60843 7.5 7.5C8.60843 6.39157 8.59932 4.19229 9.13819 2.72026L9.82531 0.843845Z", fill: c }) }, g);
|
|
38
36
|
}
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
export {
|
|
38
|
+
D as Sparkle
|
|
39
|
+
};
|
package/dist/es/spin/index.js
CHANGED
|
@@ -1,208 +1,164 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
unit: "px"
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
value: Number.parseFloat(match.groups.value),
|
|
23
|
-
unit: match.groups.unit ?? "px"
|
|
1
|
+
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useGSAP as T } from "@gsap/react";
|
|
3
|
+
import { clsx as P } from "@vef-framework/core";
|
|
4
|
+
import { gsap as _ } from "gsap";
|
|
5
|
+
import { ScrollTrigger as y } from "gsap/ScrollTrigger";
|
|
6
|
+
import { SplitText as N } from "gsap/SplitText";
|
|
7
|
+
import { useRef as k, useState as A, useEffect as F } from "react";
|
|
8
|
+
import "./props.js";
|
|
9
|
+
const G = /^(?<value>-?\d+(?:\.\d+)?)(?<unit>px|em|rem|%)?$/;
|
|
10
|
+
function W(r) {
|
|
11
|
+
const i = r.trim(), t = G.exec(i);
|
|
12
|
+
return t?.groups?.value ? {
|
|
13
|
+
value: Number.parseFloat(t.groups.value),
|
|
14
|
+
unit: t.groups.unit ?? "px"
|
|
15
|
+
} : {
|
|
16
|
+
value: 0,
|
|
17
|
+
unit: "px"
|
|
24
18
|
};
|
|
25
19
|
}
|
|
26
|
-
function
|
|
27
|
-
if (!
|
|
20
|
+
function D(r) {
|
|
21
|
+
if (!r)
|
|
28
22
|
return ["chars"];
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const validModes = candidates.filter((mode) => mode === "chars" || mode === "words" || mode === "lines");
|
|
32
|
-
return validModes.length > 0 ? validModes : ["chars"];
|
|
23
|
+
const t = r.split(",").map((o) => o.trim()).filter((o) => o === "chars" || o === "words" || o === "lines");
|
|
24
|
+
return t.length > 0 ? t : ["chars"];
|
|
33
25
|
}
|
|
34
|
-
function
|
|
35
|
-
for (const
|
|
36
|
-
if (
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (mode === "lines" && splitInstance.lines.length > 0) {
|
|
43
|
-
return splitInstance.lines;
|
|
44
|
-
}
|
|
26
|
+
function J(r, i) {
|
|
27
|
+
for (const t of i) {
|
|
28
|
+
if (t === "chars" && r.chars.length > 0)
|
|
29
|
+
return r.chars;
|
|
30
|
+
if (t === "words" && r.words.length > 0)
|
|
31
|
+
return r.words;
|
|
32
|
+
if (t === "lines" && r.lines.length > 0)
|
|
33
|
+
return r.lines;
|
|
45
34
|
}
|
|
46
|
-
|
|
47
|
-
return splitInstance.chars;
|
|
48
|
-
}
|
|
49
|
-
if (splitInstance.words.length > 0) {
|
|
50
|
-
return splitInstance.words;
|
|
51
|
-
}
|
|
52
|
-
return splitInstance.lines;
|
|
35
|
+
return r.chars.length > 0 ? r.chars : r.words.length > 0 ? r.words : r.lines;
|
|
53
36
|
}
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
text,
|
|
57
|
-
className,
|
|
58
|
-
delay = 100,
|
|
59
|
-
duration = 0.6,
|
|
60
|
-
ease = "power3.out",
|
|
61
|
-
splitType = "chars",
|
|
62
|
-
from = {
|
|
37
|
+
_.registerPlugin(y, N, T);
|
|
38
|
+
const K = ({
|
|
39
|
+
text: r,
|
|
40
|
+
className: i,
|
|
41
|
+
delay: t = 100,
|
|
42
|
+
duration: o = 0.6,
|
|
43
|
+
ease: d = "power3.out",
|
|
44
|
+
splitType: c = "chars",
|
|
45
|
+
from: h = {
|
|
63
46
|
opacity: 0,
|
|
64
47
|
y: 40
|
|
65
48
|
},
|
|
66
|
-
to = {
|
|
49
|
+
to: g = {
|
|
67
50
|
opacity: 1,
|
|
68
51
|
y: 0
|
|
69
52
|
},
|
|
70
|
-
threshold = 0.1,
|
|
71
|
-
rootMargin = "-100px",
|
|
72
|
-
textAlign = "center",
|
|
73
|
-
tag = "p",
|
|
74
|
-
onLetterAnimationComplete
|
|
53
|
+
threshold: m = 0.1,
|
|
54
|
+
rootMargin: p = "-100px",
|
|
55
|
+
textAlign: x = "center",
|
|
56
|
+
tag: M = "p",
|
|
57
|
+
onLetterAnimationComplete: S
|
|
75
58
|
}) => {
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
setAreFontsLoaded(true);
|
|
59
|
+
const s = k(null), [w, l] = A(!1);
|
|
60
|
+
return F(() => {
|
|
61
|
+
if (typeof document > "u" || !("fonts" in document)) {
|
|
62
|
+
l(!0);
|
|
81
63
|
return;
|
|
82
64
|
}
|
|
83
65
|
if (document.fonts.status === "loaded") {
|
|
84
|
-
|
|
66
|
+
l(!0);
|
|
85
67
|
return;
|
|
86
68
|
}
|
|
87
|
-
let
|
|
88
|
-
document.fonts.ready.then(() => {
|
|
89
|
-
|
|
90
|
-
setAreFontsLoaded(true);
|
|
91
|
-
}
|
|
69
|
+
let e = !0;
|
|
70
|
+
return document.fonts.ready.then(() => {
|
|
71
|
+
e && l(!0);
|
|
92
72
|
}).catch(() => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
});
|
|
97
|
-
return () => {
|
|
98
|
-
isSubscribed = false;
|
|
73
|
+
e && l(!0);
|
|
74
|
+
}), () => {
|
|
75
|
+
e = !1;
|
|
99
76
|
};
|
|
100
|
-
}, [])
|
|
101
|
-
|
|
102
|
-
if (!elementRef.current || !text || !areFontsLoaded) {
|
|
77
|
+
}, []), T(() => {
|
|
78
|
+
if (!s.current || !r || !w)
|
|
103
79
|
return;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
if (hostElement.__splitTextInstance) {
|
|
80
|
+
const e = s.current;
|
|
81
|
+
if (e.__splitTextInstance) {
|
|
107
82
|
try {
|
|
108
|
-
|
|
83
|
+
e.__splitTextInstance.revert();
|
|
109
84
|
} catch {
|
|
110
85
|
}
|
|
111
|
-
|
|
86
|
+
e.__splitTextInstance = void 0;
|
|
112
87
|
}
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
const scrollTriggerStart = `top ${startPercentage}%${offsetSign}`;
|
|
121
|
-
const staggerDelaySeconds = delay / 1e3;
|
|
122
|
-
const splitInstance = new SplitText$1(hostElement, {
|
|
123
|
-
type: splitType,
|
|
124
|
-
smartWrap: true,
|
|
125
|
-
autoSplit: splitType === "lines",
|
|
88
|
+
const n = D(c), {
|
|
89
|
+
value: f,
|
|
90
|
+
unit: $
|
|
91
|
+
} = W(p), b = (1 - m) * 100, R = f === 0 ? "" : `${f < 0 ? "-=" : "+="}${Math.abs(f)}${$}`, C = `top ${b}%${R}`, E = t / 1e3, v = new N(e, {
|
|
92
|
+
type: c,
|
|
93
|
+
smartWrap: !0,
|
|
94
|
+
autoSplit: c === "lines",
|
|
126
95
|
linesClass: "split-line",
|
|
127
96
|
wordsClass: "split-word",
|
|
128
97
|
charsClass: "split-char",
|
|
129
|
-
reduceWhiteSpace:
|
|
130
|
-
onSplit: (
|
|
131
|
-
const
|
|
132
|
-
return
|
|
133
|
-
...
|
|
98
|
+
reduceWhiteSpace: !1,
|
|
99
|
+
onSplit: (u) => {
|
|
100
|
+
const O = J(u, n);
|
|
101
|
+
return _.fromTo(O, {
|
|
102
|
+
...h
|
|
134
103
|
}, {
|
|
135
|
-
...
|
|
136
|
-
duration,
|
|
137
|
-
ease,
|
|
138
|
-
stagger:
|
|
104
|
+
...g,
|
|
105
|
+
duration: o,
|
|
106
|
+
ease: d,
|
|
107
|
+
stagger: E,
|
|
139
108
|
scrollTrigger: {
|
|
140
|
-
trigger:
|
|
141
|
-
start:
|
|
142
|
-
once:
|
|
143
|
-
fastScrollEnd:
|
|
109
|
+
trigger: e,
|
|
110
|
+
start: C,
|
|
111
|
+
once: !0,
|
|
112
|
+
fastScrollEnd: !0,
|
|
144
113
|
anticipatePin: 0.4
|
|
145
114
|
},
|
|
146
115
|
onComplete: () => {
|
|
147
|
-
|
|
116
|
+
S?.();
|
|
148
117
|
},
|
|
149
118
|
willChange: "transform, opacity",
|
|
150
|
-
force3D:
|
|
119
|
+
force3D: !0
|
|
151
120
|
});
|
|
152
121
|
}
|
|
153
122
|
});
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
if (trigger.trigger === hostElement) {
|
|
158
|
-
trigger.kill();
|
|
159
|
-
}
|
|
160
|
-
}
|
|
123
|
+
return e.__splitTextInstance = v, () => {
|
|
124
|
+
for (const u of y.getAll())
|
|
125
|
+
u.trigger === e && u.kill();
|
|
161
126
|
try {
|
|
162
|
-
|
|
127
|
+
v.revert();
|
|
163
128
|
} catch {
|
|
164
129
|
}
|
|
165
|
-
|
|
130
|
+
e.__splitTextInstance = void 0;
|
|
166
131
|
};
|
|
167
132
|
}, {
|
|
168
|
-
dependencies: [
|
|
169
|
-
scope:
|
|
170
|
-
})
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
textAlign,
|
|
133
|
+
dependencies: [r, t, o, d, c, JSON.stringify(h), JSON.stringify(g), m, p, w, S],
|
|
134
|
+
scope: s
|
|
135
|
+
}), (() => {
|
|
136
|
+
const e = {
|
|
137
|
+
textAlign: x,
|
|
174
138
|
overflow: "hidden",
|
|
175
139
|
display: "inline-block",
|
|
176
140
|
whiteSpace: "normal",
|
|
177
141
|
wordWrap: "break-word",
|
|
178
142
|
willChange: "transform, opacity"
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
case "
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
case "
|
|
192
|
-
return /* @__PURE__ */
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return /* @__PURE__ */ jsx("h5", { ref: elementRef, className: classes, style, children: text });
|
|
196
|
-
}
|
|
197
|
-
case "h6": {
|
|
198
|
-
return /* @__PURE__ */ jsx("h6", { ref: elementRef, className: classes, style, children: text });
|
|
199
|
-
}
|
|
200
|
-
default: {
|
|
201
|
-
return /* @__PURE__ */ jsx("p", { ref: elementRef, className: classes, style, children: text });
|
|
202
|
-
}
|
|
143
|
+
}, n = P("split-parent", i);
|
|
144
|
+
switch (M) {
|
|
145
|
+
case "h1":
|
|
146
|
+
return /* @__PURE__ */ a("h1", { ref: s, className: n, style: e, children: r });
|
|
147
|
+
case "h2":
|
|
148
|
+
return /* @__PURE__ */ a("h2", { ref: s, className: n, style: e, children: r });
|
|
149
|
+
case "h3":
|
|
150
|
+
return /* @__PURE__ */ a("h3", { ref: s, className: n, style: e, children: r });
|
|
151
|
+
case "h4":
|
|
152
|
+
return /* @__PURE__ */ a("h4", { ref: s, className: n, style: e, children: r });
|
|
153
|
+
case "h5":
|
|
154
|
+
return /* @__PURE__ */ a("h5", { ref: s, className: n, style: e, children: r });
|
|
155
|
+
case "h6":
|
|
156
|
+
return /* @__PURE__ */ a("h6", { ref: s, className: n, style: e, children: r });
|
|
157
|
+
default:
|
|
158
|
+
return /* @__PURE__ */ a("p", { ref: s, className: n, style: e, children: r });
|
|
203
159
|
}
|
|
204
|
-
};
|
|
205
|
-
|
|
160
|
+
})();
|
|
161
|
+
};
|
|
162
|
+
export {
|
|
163
|
+
K as SplitText
|
|
206
164
|
};
|
|
207
|
-
|
|
208
|
-
export { SplitText };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/dist/es/stack/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
gap = "small",
|
|
10
|
-
...props
|
|
1
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import "../flex/index.js";
|
|
3
|
+
import "./props.js";
|
|
4
|
+
import { Flex as m } from "antd";
|
|
5
|
+
function l({
|
|
6
|
+
children: r,
|
|
7
|
+
gap: t = "small",
|
|
8
|
+
...o
|
|
11
9
|
}) {
|
|
12
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ i(m, { gap: t, orientation: "vertical", ...o, children: r });
|
|
13
11
|
}
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
export {
|
|
13
|
+
l as Stack
|
|
14
|
+
};
|
package/dist/es/stack/props.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/dist/es/steps/index.js
CHANGED
package/dist/es/switch/index.js
CHANGED