@vef-framework/components 2.0.11 → 2.1.0
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 -1
- package/dist/cjs/_base/constants/common.cjs +1 -1
- package/dist/cjs/_base/constants/css-vars.cjs +1 -1
- package/dist/cjs/_base/constants/index.cjs +1 -1
- package/dist/cjs/_base/constants/theme.cjs +1 -0
- package/dist/cjs/_base/helpers/breakpoints.cjs +1 -1
- package/dist/cjs/_base/helpers/color.cjs +1 -1
- package/dist/cjs/_base/helpers/common.cjs +1 -1
- package/dist/cjs/_base/helpers/index.cjs +1 -1
- package/dist/cjs/_base/helpers/message.cjs +1 -1
- package/dist/cjs/_base/helpers/modal.cjs +1 -1
- package/dist/cjs/_base/helpers/notification.cjs +1 -1
- package/dist/cjs/_base/helpers/props.cjs +1 -1
- package/dist/cjs/_base/helpers/react.cjs +1 -1
- package/dist/cjs/_base/hooks/index.cjs +1 -1
- package/dist/cjs/_base/hooks/use-theme-tokens.cjs +1 -1
- package/dist/cjs/_base/index.cjs +1 -1
- package/dist/cjs/_base/styles/common.cjs +1 -1
- package/dist/cjs/_base/styles/index.cjs +0 -1
- package/dist/cjs/_base/types/breakpoints.cjs +0 -1
- package/dist/cjs/_base/types/common.cjs +0 -1
- package/dist/cjs/_base/types/index.cjs +0 -1
- package/dist/cjs/_internal/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/action-button/index.cjs +1 -1
- package/dist/cjs/action-button/use-action-button.cjs +1 -1
- package/dist/cjs/action-group/index.cjs +1 -1
- package/dist/cjs/action-group/use-action-group.cjs +1 -1
- package/dist/cjs/action-group/use-computed-action-buttons.cjs +1 -1
- package/dist/cjs/affix/index.cjs +1 -1
- package/dist/cjs/alert/index.cjs +1 -1
- package/dist/cjs/anchor/index.cjs +1 -1
- package/dist/cjs/auto-complete/index.cjs +1 -1
- package/dist/cjs/avatar/index.cjs +1 -1
- package/dist/cjs/badge/index.cjs +1 -1
- package/dist/cjs/bool/index.cjs +1 -1
- package/dist/cjs/breadcrumb/index.cjs +1 -1
- package/dist/cjs/button/index.cjs +1 -1
- package/dist/cjs/calendar/index.cjs +1 -1
- package/dist/cjs/card/index.cjs +1 -1
- package/dist/cjs/carousel/index.cjs +1 -1
- package/dist/cjs/cascader/index.cjs +1 -1
- package/dist/cjs/center/index.cjs +1 -1
- package/dist/cjs/charts/chart.cjs +1 -1
- package/dist/cjs/charts/helpers/group.cjs +1 -1
- package/dist/cjs/charts/helpers/index.cjs +1 -1
- package/dist/cjs/charts/hooks/index.cjs +1 -1
- package/dist/cjs/charts/hooks/use-chart.cjs +1 -1
- package/dist/cjs/charts/index.cjs +1 -1
- package/dist/cjs/charts/themes/index.cjs +1 -1
- package/dist/cjs/charts/themes/walden-dark.cjs +1 -1
- package/dist/cjs/charts/themes/walden.cjs +1 -1
- package/dist/cjs/charts/themes/wonderland-dark.cjs +1 -1
- package/dist/cjs/charts/themes/wonderland.cjs +1 -1
- package/dist/cjs/checkbox/index.cjs +1 -1
- package/dist/cjs/code-highlighter/index.cjs +1 -1
- package/dist/cjs/col/index.cjs +1 -1
- package/dist/cjs/collapse/index.cjs +1 -1
- package/dist/cjs/color-picker/index.cjs +1 -1
- package/dist/cjs/compact/index.cjs +1 -1
- package/dist/cjs/config-provider/app.cjs +1 -1
- package/dist/cjs/config-provider/constants.cjs +1 -0
- package/dist/cjs/config-provider/context-holder.cjs +1 -1
- package/dist/cjs/config-provider/css-vars.cjs +1 -0
- package/dist/cjs/config-provider/dark-mode-context.cjs +1 -1
- package/dist/cjs/config-provider/error-fallback.cjs +1 -1
- package/dist/cjs/config-provider/global-style.cjs +1 -1
- package/dist/cjs/config-provider/index.cjs +1 -1
- package/dist/cjs/config-provider/theme-config.cjs +1 -0
- package/dist/cjs/config-provider/use-config-provider.cjs +1 -1
- package/dist/cjs/date-picker/index.cjs +1 -1
- package/dist/cjs/descriptions/index.cjs +1 -1
- package/dist/cjs/divider/index.cjs +1 -1
- package/dist/cjs/drawer/index.cjs +1 -1
- package/dist/cjs/dropdown/index.cjs +1 -1
- package/dist/cjs/dynamic-icon/index.cjs +1 -1
- package/dist/cjs/dynamic-icon/placeholder-icon.cjs +1 -1
- package/dist/cjs/dynamic-icon/unknown-icon.cjs +1 -1
- package/dist/cjs/empty/empty.cjs +1 -1
- package/dist/cjs/empty/index.cjs +1 -1
- package/dist/cjs/flex/index.cjs +1 -1
- package/dist/cjs/flip-text/index.cjs +1 -1
- package/dist/cjs/float-button/index.cjs +1 -1
- package/dist/cjs/form/components/form.cjs +1 -1
- package/dist/cjs/form/components/index.cjs +1 -1
- package/dist/cjs/form/components/reset-button.cjs +1 -1
- package/dist/cjs/form/components/submit-button.cjs +1 -1
- package/dist/cjs/form/contexts/form-context.cjs +1 -1
- package/dist/cjs/form/contexts/form-layout.cjs +1 -1
- package/dist/cjs/form/contexts/index.cjs +1 -1
- package/dist/cjs/form/fields/auto-complete/index.cjs +1 -1
- package/dist/cjs/form/fields/bool/index.cjs +1 -1
- package/dist/cjs/form/fields/cascader/index.cjs +1 -1
- package/dist/cjs/form/fields/checkbox/index.cjs +1 -1
- package/dist/cjs/form/fields/color-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/date-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/date-range-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/index.cjs +1 -1
- package/dist/cjs/form/fields/input/index.cjs +1 -1
- package/dist/cjs/form/fields/input-number/index.cjs +1 -1
- package/dist/cjs/form/fields/mentions/index.cjs +1 -1
- package/dist/cjs/form/fields/password/index.cjs +1 -1
- package/dist/cjs/form/fields/radio/index.cjs +1 -1
- package/dist/cjs/form/fields/rate/index.cjs +1 -1
- package/dist/cjs/form/fields/select/index.cjs +1 -1
- package/dist/cjs/form/fields/slider/index.cjs +1 -1
- package/dist/cjs/form/fields/textarea/index.cjs +1 -1
- package/dist/cjs/form/fields/time-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/time-range-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/transfer/index.cjs +1 -1
- package/dist/cjs/form/fields/tree-select/index.cjs +1 -1
- package/dist/cjs/form/fields/upload/index.cjs +1 -1
- package/dist/cjs/form/form.cjs +1 -1
- package/dist/cjs/form/helpers/index.cjs +1 -1
- package/dist/cjs/form/helpers/with-form-item.cjs +1 -1
- package/dist/cjs/form/hooks/use-form-item-props.cjs +1 -1
- package/dist/cjs/form/hooks/use-label-width.cjs +1 -1
- package/dist/cjs/form/index.cjs +1 -1
- package/dist/cjs/form/use-form.cjs +1 -1
- package/dist/cjs/grid/context.cjs +1 -1
- package/dist/cjs/grid/grid-item.cjs +1 -1
- package/dist/cjs/grid/hooks/index.cjs +1 -1
- package/dist/cjs/grid/hooks/use-container-breakpoints.cjs +1 -1
- package/dist/cjs/grid/hooks/use-container-width.cjs +1 -1
- package/dist/cjs/grid/hooks/use-grid-collapsed.cjs +1 -1
- package/dist/cjs/grid/hooks/use-normalized-gap.cjs +1 -1
- package/dist/cjs/grid/hooks/use-responsive-breakpoint.cjs +1 -1
- package/dist/cjs/grid/hooks/use-responsive-value.cjs +1 -1
- package/dist/cjs/grid/index.cjs +1 -1
- package/dist/cjs/grid/styles.cjs +1 -1
- package/dist/cjs/group/index.cjs +1 -1
- package/dist/cjs/icon/index.cjs +1 -1
- package/dist/cjs/icon-button/index.cjs +1 -1
- package/dist/cjs/image/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/input/index.cjs +1 -1
- package/dist/cjs/input-number/index.cjs +1 -1
- package/dist/cjs/keyboard/index.cjs +1 -1
- package/dist/cjs/list/index.cjs +1 -1
- package/dist/cjs/loader/index.cjs +1 -1
- package/dist/cjs/mentions/index.cjs +1 -1
- package/dist/cjs/menu/index.cjs +1 -1
- package/dist/cjs/modal/index.cjs +1 -1
- package/dist/cjs/operation-button/index.cjs +1 -1
- package/dist/cjs/pagination/index.cjs +1 -1
- package/dist/cjs/permission-gate/index.cjs +1 -1
- package/dist/cjs/popconfirm/index.cjs +1 -1
- package/dist/cjs/popover/index.cjs +1 -1
- package/dist/cjs/progress/index.cjs +1 -1
- package/dist/cjs/qrcode/index.cjs +1 -1
- package/dist/cjs/radio/index.cjs +1 -1
- package/dist/cjs/rate/index.cjs +1 -1
- package/dist/cjs/result/index.cjs +1 -1
- package/dist/cjs/row/index.cjs +1 -1
- package/dist/cjs/scroll-area/index.cjs +1 -1
- package/dist/cjs/scroll-area/styles.cjs +1 -1
- package/dist/cjs/segmented/index.cjs +1 -1
- package/dist/cjs/select/hooks/index.cjs +1 -1
- package/dist/cjs/select/hooks/use-data-options-select.cjs +1 -1
- package/dist/cjs/select/index.cjs +1 -1
- package/dist/cjs/skeleton/index.cjs +1 -1
- package/dist/cjs/slider/index.cjs +1 -1
- package/dist/cjs/space/index.cjs +1 -1
- package/dist/cjs/space/space.cjs +1 -1
- package/dist/cjs/sparkles-text/index.cjs +1 -1
- package/dist/cjs/sparkles-text/sparkle.cjs +1 -1
- package/dist/cjs/spin/index.cjs +1 -1
- package/dist/cjs/split-text/index.cjs +1 -1
- package/dist/cjs/splitter/index.cjs +1 -1
- package/dist/cjs/stack/index.cjs +1 -1
- package/dist/cjs/statistic/index.cjs +1 -1
- package/dist/cjs/steps/index.cjs +1 -1
- package/dist/cjs/switch/index.cjs +1 -1
- package/dist/cjs/table/index.cjs +1 -1
- package/dist/cjs/table/use-pagination-props.cjs +1 -1
- package/dist/cjs/tabs/index.cjs +1 -1
- package/dist/cjs/tag/index.cjs +1 -1
- package/dist/cjs/time-picker/index.cjs +1 -1
- package/dist/cjs/timeline/index.cjs +1 -1
- package/dist/cjs/tooltip/index.cjs +1 -1
- package/dist/cjs/tour/index.cjs +1 -1
- package/dist/cjs/transfer/index.cjs +1 -1
- package/dist/cjs/tree/hooks/index.cjs +1 -1
- package/dist/cjs/tree/hooks/use-data-options-tree.cjs +1 -1
- package/dist/cjs/tree/index.cjs +1 -1
- package/dist/cjs/tree-select/hooks/index.cjs +1 -1
- package/dist/cjs/tree-select/hooks/use-data-options-tree-select.cjs +1 -1
- package/dist/cjs/tree-select/index.cjs +1 -1
- package/dist/cjs/typing-animation/index.cjs +1 -1
- package/dist/cjs/typography/index.cjs +1 -1
- package/dist/cjs/upload/index.cjs +1 -1
- package/dist/cjs/watermark/index.cjs +1 -1
- package/dist/es/_base/constants/breakpoints.js +12 -11
- package/dist/es/_base/constants/common.js +31 -24
- package/dist/es/_base/constants/css-vars.js +677 -676
- package/dist/es/_base/constants/index.js +4 -15
- package/dist/es/_base/constants/theme.js +5 -0
- package/dist/es/_base/helpers/breakpoints.js +19 -21
- package/dist/es/_base/helpers/color.js +9 -9
- package/dist/es/_base/helpers/common.js +9 -10
- package/dist/es/_base/helpers/index.js +9 -34
- package/dist/es/_base/helpers/message.js +35 -40
- package/dist/es/_base/helpers/modal.js +67 -100
- package/dist/es/_base/helpers/notification.js +53 -65
- package/dist/es/_base/helpers/props.js +12 -12
- package/dist/es/_base/helpers/react.js +7 -6
- package/dist/es/_base/hooks/index.js +2 -4
- package/dist/es/_base/hooks/use-theme-tokens.js +8 -12
- package/dist/es/_base/index.js +13 -5
- package/dist/es/_base/styles/common.js +19 -18
- package/dist/es/_base/styles/index.js +1 -4
- 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 +1 -2
- package/dist/es/action-button/index.js +37 -38
- package/dist/es/action-button/use-action-button.js +41 -45
- package/dist/es/action-group/index.js +10 -14
- package/dist/es/action-group/use-action-group.js +9 -13
- package/dist/es/action-group/use-computed-action-buttons.js +34 -25
- package/dist/es/affix/index.js +3 -4
- package/dist/es/alert/index.js +3 -4
- package/dist/es/anchor/index.js +3 -4
- package/dist/es/auto-complete/index.js +3 -4
- package/dist/es/avatar/index.js +3 -4
- package/dist/es/badge/index.js +3 -4
- package/dist/es/bool/index.js +68 -49
- package/dist/es/breadcrumb/index.js +2 -4
- package/dist/es/button/index.js +3 -4
- package/dist/es/calendar/index.js +2 -3
- package/dist/es/card/index.js +3 -4
- package/dist/es/carousel/index.js +3 -5
- package/dist/es/cascader/index.js +2 -3
- package/dist/es/center/index.js +15 -14
- package/dist/es/charts/chart.js +20 -19
- package/dist/es/charts/helpers/group.js +9 -9
- package/dist/es/charts/helpers/index.js +2 -5
- package/dist/es/charts/hooks/index.js +2 -4
- package/dist/es/charts/hooks/use-chart.js +107 -109
- package/dist/es/charts/index.js +4 -6
- package/dist/es/charts/themes/index.js +5 -10
- package/dist/es/charts/themes/walden-dark.js +294 -393
- package/dist/es/charts/themes/walden.js +277 -358
- package/dist/es/charts/themes/wonderland-dark.js +298 -393
- package/dist/es/charts/themes/wonderland.js +281 -358
- package/dist/es/checkbox/index.js +3 -4
- package/dist/es/code-highlighter/index.js +39 -36
- package/dist/es/col/index.js +2 -3
- package/dist/es/collapse/index.js +3 -4
- package/dist/es/color-picker/index.js +2 -3
- package/dist/es/compact/index.js +6 -7
- package/dist/es/config-provider/app.js +17 -23
- package/dist/es/config-provider/constants.js +26 -0
- package/dist/es/config-provider/context-holder.js +20 -23
- package/dist/es/config-provider/css-vars.js +67 -0
- package/dist/es/config-provider/dark-mode-context.js +8 -8
- package/dist/es/config-provider/error-fallback.js +48 -13
- package/dist/es/config-provider/global-style.js +9 -9
- package/dist/es/config-provider/index.js +68 -52
- package/dist/es/config-provider/theme-config.js +98 -0
- package/dist/es/config-provider/use-config-provider.js +28 -168
- package/dist/es/date-picker/index.js +3 -5
- package/dist/es/descriptions/index.js +2 -3
- package/dist/es/divider/index.js +3 -4
- package/dist/es/drawer/index.js +3 -4
- package/dist/es/dropdown/index.js +3 -4
- package/dist/es/dynamic-icon/index.js +44 -24
- package/dist/es/dynamic-icon/placeholder-icon.js +22 -11
- package/dist/es/dynamic-icon/unknown-icon.js +57 -13
- package/dist/es/empty/empty.js +10 -9
- package/dist/es/empty/index.js +2 -4
- package/dist/es/flex/index.js +3 -4
- package/dist/es/flip-text/index.js +48 -52
- package/dist/es/float-button/index.js +3 -4
- package/dist/es/form/components/form.js +37 -30
- package/dist/es/form/components/index.js +10 -9
- package/dist/es/form/components/reset-button.js +24 -20
- package/dist/es/form/components/submit-button.js +25 -23
- package/dist/es/form/contexts/form-context.js +6 -13
- package/dist/es/form/contexts/form-layout.js +13 -16
- package/dist/es/form/contexts/index.js +3 -11
- package/dist/es/form/fields/auto-complete/index.js +23 -30
- package/dist/es/form/fields/bool/index.js +18 -23
- package/dist/es/form/fields/cascader/index.js +20 -26
- package/dist/es/form/fields/checkbox/index.js +29 -39
- package/dist/es/form/fields/color-picker/index.js +18 -24
- package/dist/es/form/fields/date-picker/index.js +20 -26
- package/dist/es/form/fields/date-range-picker/index.js +20 -26
- package/dist/es/form/fields/index.js +46 -45
- package/dist/es/form/fields/input/index.js +23 -30
- package/dist/es/form/fields/input-number/index.js +21 -27
- package/dist/es/form/fields/mentions/index.js +21 -27
- package/dist/es/form/fields/password/index.js +23 -30
- package/dist/es/form/fields/radio/index.js +21 -27
- package/dist/es/form/fields/rate/index.js +19 -25
- package/dist/es/form/fields/select/index.js +19 -25
- package/dist/es/form/fields/slider/index.js +18 -24
- package/dist/es/form/fields/textarea/index.js +23 -30
- package/dist/es/form/fields/time-picker/index.js +20 -26
- package/dist/es/form/fields/time-range-picker/index.js +20 -26
- package/dist/es/form/fields/transfer/index.js +20 -26
- package/dist/es/form/fields/tree-select/index.js +18 -24
- package/dist/es/form/fields/upload/index.js +36 -45
- package/dist/es/form/form.js +14 -24
- package/dist/es/form/helpers/index.js +2 -4
- package/dist/es/form/helpers/with-form-item.js +32 -41
- package/dist/es/form/hooks/use-form-item-props.js +20 -35
- package/dist/es/form/hooks/use-label-width.js +11 -11
- package/dist/es/form/index.js +3 -8
- package/dist/es/form/use-form.js +14 -18
- package/dist/es/grid/context.js +10 -11
- package/dist/es/grid/grid-item.js +27 -33
- package/dist/es/grid/hooks/index.js +7 -15
- package/dist/es/grid/hooks/use-container-breakpoints.js +15 -14
- package/dist/es/grid/hooks/use-container-width.js +25 -27
- package/dist/es/grid/hooks/use-grid-collapsed.js +11 -13
- package/dist/es/grid/hooks/use-normalized-gap.js +24 -33
- package/dist/es/grid/hooks/use-responsive-breakpoint.js +10 -11
- package/dist/es/grid/hooks/use-responsive-value.js +18 -26
- package/dist/es/grid/index.js +95 -97
- package/dist/es/grid/styles.js +19 -20
- package/dist/es/group/index.js +15 -15
- package/dist/es/icon/index.js +28 -20
- package/dist/es/icon-button/index.js +30 -34
- package/dist/es/image/index.js +3 -4
- package/dist/es/index.js +109 -254
- package/dist/es/input/index.js +3 -4
- package/dist/es/input-number/index.js +3 -4
- package/dist/es/keyboard/index.js +38 -40
- package/dist/es/list/index.js +3 -4
- package/dist/es/loader/index.js +29 -35
- package/dist/es/mentions/index.js +3 -4
- package/dist/es/menu/index.js +3 -5
- package/dist/es/modal/index.js +3 -4
- package/dist/es/operation-button/index.js +26 -24
- package/dist/es/pagination/index.js +3 -4
- package/dist/es/permission-gate/index.js +9 -13
- package/dist/es/popconfirm/index.js +3 -4
- package/dist/es/popover/index.js +2 -3
- package/dist/es/progress/index.js +2 -3
- package/dist/es/qrcode/index.js +3 -4
- package/dist/es/radio/index.js +3 -4
- package/dist/es/rate/index.js +3 -4
- package/dist/es/result/index.js +3 -4
- package/dist/es/row/index.js +2 -3
- package/dist/es/scroll-area/index.js +56 -52
- package/dist/es/scroll-area/styles.js +30 -32
- package/dist/es/segmented/index.js +3 -4
- package/dist/es/select/hooks/index.js +2 -4
- package/dist/es/select/hooks/use-data-options-select.js +45 -55
- package/dist/es/select/index.js +4 -5
- package/dist/es/skeleton/index.js +3 -4
- package/dist/es/slider/index.js +3 -4
- package/dist/es/space/index.js +2 -4
- package/dist/es/space/space.js +12 -11
- package/dist/es/sparkles-text/index.js +47 -51
- package/dist/es/sparkles-text/sparkle.js +52 -34
- package/dist/es/spin/index.js +3 -4
- package/dist/es/split-text/index.js +148 -161
- package/dist/es/splitter/index.js +2 -3
- package/dist/es/stack/index.js +14 -14
- package/dist/es/statistic/index.js +3 -4
- package/dist/es/steps/index.js +3 -4
- package/dist/es/switch/index.js +3 -4
- package/dist/es/table/index.js +46 -47
- package/dist/es/table/use-pagination-props.js +48 -43
- package/dist/es/tabs/index.js +3 -4
- package/dist/es/tag/index.js +3 -4
- package/dist/es/time-picker/index.js +3 -4
- package/dist/es/timeline/index.js +3 -4
- package/dist/es/tooltip/index.js +3 -4
- package/dist/es/tour/index.js +2 -3
- package/dist/es/transfer/index.js +3 -4
- package/dist/es/tree/hooks/index.js +2 -4
- package/dist/es/tree/hooks/use-data-options-tree.js +38 -54
- package/dist/es/tree/index.js +4 -5
- package/dist/es/tree-select/hooks/index.js +2 -4
- package/dist/es/tree-select/hooks/use-data-options-tree-select.js +47 -51
- package/dist/es/tree-select/index.js +4 -5
- package/dist/es/typing-animation/index.js +45 -43
- package/dist/es/typography/index.js +6 -17
- package/dist/es/upload/index.js +59 -51
- package/dist/es/watermark/index.js +2 -3
- package/dist/types/_base/constants/common.d.ts +3 -32
- package/dist/types/_base/constants/css-vars.d.ts +673 -673
- package/dist/types/_base/constants/index.d.ts +1 -0
- package/dist/types/_base/constants/theme.d.ts +5 -6
- package/dist/types/_base/helpers/breakpoints.d.ts +1 -4
- package/dist/types/_base/helpers/color.d.ts +0 -12
- package/dist/types/_base/helpers/common.d.ts +2 -24
- package/dist/types/_base/helpers/message.d.ts +4 -31
- package/dist/types/_base/helpers/modal.d.ts +10 -87
- package/dist/types/_base/helpers/notification.d.ts +6 -63
- package/dist/types/_base/helpers/props.d.ts +3 -16
- package/dist/types/_base/helpers/react.d.ts +0 -6
- package/dist/types/_base/hooks/use-theme-tokens.d.ts +0 -5
- package/dist/types/_base/index.d.ts +0 -1
- package/dist/types/_base/styles/common.d.ts +2 -1
- package/dist/types/_base/types/common.d.ts +8 -71
- package/dist/types/action-button/use-action-button.d.ts +5 -2
- package/dist/types/action-group/use-action-group.d.ts +2 -1
- package/dist/types/action-group/use-computed-action-buttons.d.ts +3 -1
- package/dist/types/charts/chart.d.ts +3 -16
- package/dist/types/charts/helpers/group.d.ts +0 -8
- package/dist/types/charts/hooks/use-chart.d.ts +0 -27
- package/dist/types/config-provider/app.d.ts +5 -4
- package/dist/types/config-provider/constants.d.ts +22 -0
- package/dist/types/config-provider/context-holder.d.ts +6 -5
- package/dist/types/config-provider/css-vars.d.ts +6 -0
- package/dist/types/config-provider/error-fallback.d.ts +2 -1
- package/dist/types/config-provider/index.d.ts +3 -2
- package/dist/types/config-provider/theme-config.d.ts +7 -0
- package/dist/types/config-provider/use-config-provider.d.ts +8 -5
- package/dist/types/dynamic-icon/index.d.ts +1 -1
- package/dist/types/form/components/form.d.ts +0 -3
- package/dist/types/form/fields/auto-complete/props.d.ts +1 -0
- package/dist/types/form/fields/input/props.d.ts +1 -0
- package/dist/types/form/fields/password/props.d.ts +1 -0
- package/dist/types/form/fields/textarea/props.d.ts +1 -0
- package/dist/types/form/form.d.ts +3 -1
- package/dist/types/form/helpers/with-form-item.d.ts +1 -1
- package/dist/types/form/hooks/use-label-width.d.ts +3 -5
- package/dist/types/form/types.d.ts +4 -4
- package/dist/types/select/hooks/use-data-options-select.d.ts +1 -0
- package/dist/types/split-text/index.d.ts +2 -2
- package/dist/types/split-text/props.d.ts +10 -0
- package/dist/types/src/_base/constants/breakpoints.d.ts +9 -0
- package/dist/types/src/_base/constants/common.d.ts +10 -0
- package/dist/types/src/_base/constants/css-vars.d.ts +673 -0
- package/dist/types/src/_base/constants/index.d.ts +4 -0
- package/dist/types/src/_base/constants/theme.d.ts +8 -0
- package/dist/types/src/_base/helpers/breakpoints.d.ts +7 -0
- package/dist/types/src/_base/helpers/color.d.ts +3 -0
- package/dist/types/src/_base/helpers/common.d.ts +8 -0
- package/dist/types/src/_base/helpers/index.d.ts +8 -0
- package/dist/types/src/_base/helpers/message.d.ts +11 -0
- package/dist/types/src/_base/helpers/modal.d.ts +31 -0
- package/dist/types/src/_base/helpers/notification.d.ts +17 -0
- package/dist/types/src/_base/helpers/props.d.ts +5 -0
- package/dist/types/src/_base/helpers/react.d.ts +2 -0
- package/dist/types/src/_base/hooks/index.d.ts +1 -0
- package/dist/types/src/_base/hooks/use-theme-tokens.d.ts +2 -0
- package/dist/types/src/_base/index.d.ts +5 -0
- package/dist/types/src/_base/styles/common.d.ts +4 -0
- package/dist/types/src/_base/styles/index.d.ts +1 -0
- package/dist/types/src/_base/types/breakpoints.d.ts +2 -0
- package/dist/types/src/_base/types/common.d.ts +41 -0
- package/dist/types/src/_base/types/index.d.ts +2 -0
- package/dist/types/src/action-button/index.d.ts +3 -0
- package/dist/types/src/action-button/props.d.ts +39 -0
- package/dist/types/src/action-button/use-action-button.d.ts +12 -0
- package/dist/types/src/action-group/index.d.ts +7 -0
- package/dist/types/src/action-group/props.d.ts +18 -0
- package/dist/types/src/action-group/use-action-group.d.ts +8 -0
- package/dist/types/src/action-group/use-computed-action-buttons.d.ts +12 -0
- package/dist/types/src/affix/index.d.ts +2 -0
- package/dist/types/src/alert/index.d.ts +2 -0
- package/dist/types/src/anchor/index.d.ts +4 -0
- package/dist/types/src/auto-complete/index.d.ts +4 -0
- package/dist/types/src/avatar/index.d.ts +3 -0
- package/dist/types/src/badge/index.d.ts +4 -0
- package/dist/types/src/bool/index.d.ts +4 -0
- package/dist/types/src/bool/props.d.ts +67 -0
- package/dist/types/src/breadcrumb/index.d.ts +5 -0
- package/dist/types/src/button/index.d.ts +3 -0
- package/dist/types/src/calendar/index.d.ts +2 -0
- package/dist/types/src/card/index.d.ts +3 -0
- package/dist/types/src/carousel/index.d.ts +3 -0
- package/dist/types/src/cascader/index.d.ts +3 -0
- package/dist/types/src/center/index.d.ts +4 -0
- package/dist/types/src/center/props.d.ts +13 -0
- package/dist/types/src/charts/chart.d.ts +11 -0
- package/dist/types/src/charts/helpers/group.d.ts +2 -0
- package/dist/types/src/charts/helpers/index.d.ts +1 -0
- package/dist/types/src/charts/hooks/index.d.ts +2 -0
- package/dist/types/src/charts/hooks/use-chart.d.ts +15 -0
- package/dist/types/src/charts/index.d.ts +4 -0
- package/dist/types/src/charts/themes/index.d.ts +4 -0
- package/dist/types/src/charts/themes/walden-dark.d.ts +1 -0
- package/dist/types/src/charts/themes/walden.d.ts +1 -0
- package/dist/types/src/charts/themes/wonderland-dark.d.ts +1 -0
- package/dist/types/src/charts/themes/wonderland.d.ts +1 -0
- package/dist/types/src/checkbox/index.d.ts +5 -0
- package/dist/types/src/code-highlighter/index.d.ts +3 -0
- package/dist/types/src/code-highlighter/props.d.ts +58 -0
- package/dist/types/src/col/index.d.ts +2 -0
- package/dist/types/src/collapse/index.d.ts +5 -0
- package/dist/types/src/color-picker/index.d.ts +2 -0
- package/dist/types/src/compact/index.d.ts +5 -0
- package/dist/types/src/config-provider/app.d.ts +9 -0
- package/dist/types/src/config-provider/constants.d.ts +22 -0
- package/dist/types/src/config-provider/context-holder.d.ts +6 -0
- package/dist/types/src/config-provider/css-vars.d.ts +6 -0
- package/dist/types/src/config-provider/dark-mode-context.d.ts +3 -0
- package/dist/types/src/config-provider/error-fallback.d.ts +3 -0
- package/dist/types/src/config-provider/global-style.d.ts +2 -0
- package/dist/types/src/config-provider/index.d.ts +5 -0
- package/dist/types/src/config-provider/props.d.ts +34 -0
- package/dist/types/src/config-provider/theme-config.d.ts +7 -0
- package/dist/types/src/config-provider/use-config-provider.d.ts +10 -0
- package/dist/types/src/date-picker/index.d.ts +5 -0
- package/dist/types/src/descriptions/index.d.ts +4 -0
- package/dist/types/src/divider/index.d.ts +2 -0
- package/dist/types/src/drawer/index.d.ts +2 -0
- package/dist/types/src/dropdown/index.d.ts +5 -0
- package/dist/types/src/dynamic-icon/index.d.ts +7 -0
- package/dist/types/src/dynamic-icon/placeholder-icon.d.ts +2 -0
- package/dist/types/src/dynamic-icon/props.d.ts +13 -0
- package/dist/types/src/dynamic-icon/unknown-icon.d.ts +2 -0
- package/dist/types/src/empty/empty.d.ts +2 -0
- package/dist/types/src/empty/index.d.ts +2 -0
- package/dist/types/src/flex/index.d.ts +14 -0
- package/dist/types/src/flip-text/index.d.ts +3 -0
- package/dist/types/src/flip-text/props.d.ts +32 -0
- package/dist/types/src/float-button/index.d.ts +2 -0
- package/dist/types/src/form/components/form.d.ts +10 -0
- package/dist/types/src/form/components/index.d.ts +11 -0
- package/dist/types/src/form/components/reset-button.d.ts +6 -0
- package/dist/types/src/form/components/submit-button.d.ts +6 -0
- package/dist/types/src/form/contexts/form-context.d.ts +4 -0
- package/dist/types/src/form/contexts/form-layout.d.ts +7 -0
- package/dist/types/src/form/contexts/index.d.ts +3 -0
- package/dist/types/src/form/fields/auto-complete/index.d.ts +5 -0
- package/dist/types/src/form/fields/auto-complete/props.d.ts +10 -0
- package/dist/types/src/form/fields/bool/index.d.ts +5 -0
- package/dist/types/src/form/fields/bool/props.d.ts +4 -0
- package/dist/types/src/form/fields/cascader/index.d.ts +5 -0
- package/dist/types/src/form/fields/cascader/props.d.ts +4 -0
- package/dist/types/src/form/fields/checkbox/index.d.ts +6 -0
- package/dist/types/src/form/fields/checkbox/props.d.ts +6 -0
- package/dist/types/src/form/fields/color-picker/index.d.ts +5 -0
- package/dist/types/src/form/fields/color-picker/props.d.ts +4 -0
- package/dist/types/src/form/fields/date-picker/index.d.ts +5 -0
- package/dist/types/src/form/fields/date-picker/props.d.ts +4 -0
- package/dist/types/src/form/fields/date-range-picker/index.d.ts +5 -0
- package/dist/types/src/form/fields/date-range-picker/props.d.ts +4 -0
- package/dist/types/src/form/fields/index.d.ts +68 -0
- package/dist/types/src/form/fields/input/index.d.ts +5 -0
- package/dist/types/src/form/fields/input/props.d.ts +10 -0
- package/dist/types/src/form/fields/input-number/index.d.ts +5 -0
- package/dist/types/src/form/fields/input-number/props.d.ts +4 -0
- package/dist/types/src/form/fields/mentions/index.d.ts +5 -0
- package/dist/types/src/form/fields/mentions/props.d.ts +4 -0
- package/dist/types/src/form/fields/password/index.d.ts +5 -0
- package/dist/types/src/form/fields/password/props.d.ts +10 -0
- package/dist/types/src/form/fields/radio/index.d.ts +5 -0
- package/dist/types/src/form/fields/radio/props.d.ts +4 -0
- package/dist/types/src/form/fields/rate/index.d.ts +5 -0
- package/dist/types/src/form/fields/rate/props.d.ts +4 -0
- package/dist/types/src/form/fields/select/index.d.ts +6 -0
- package/dist/types/src/form/fields/select/props.d.ts +5 -0
- package/dist/types/src/form/fields/slider/index.d.ts +5 -0
- package/dist/types/src/form/fields/slider/props.d.ts +4 -0
- package/dist/types/src/form/fields/textarea/index.d.ts +5 -0
- package/dist/types/src/form/fields/textarea/props.d.ts +10 -0
- package/dist/types/src/form/fields/time-picker/index.d.ts +5 -0
- package/dist/types/src/form/fields/time-picker/props.d.ts +4 -0
- package/dist/types/src/form/fields/time-range-picker/index.d.ts +5 -0
- package/dist/types/src/form/fields/time-range-picker/props.d.ts +4 -0
- package/dist/types/src/form/fields/transfer/index.d.ts +5 -0
- package/dist/types/src/form/fields/transfer/props.d.ts +4 -0
- package/dist/types/src/form/fields/tree-select/index.d.ts +6 -0
- package/dist/types/src/form/fields/tree-select/props.d.ts +5 -0
- package/dist/types/src/form/fields/upload/index.d.ts +5 -0
- package/dist/types/src/form/fields/upload/props.d.ts +4 -0
- package/dist/types/src/form/form.d.ts +183 -0
- package/dist/types/src/form/helpers/index.d.ts +1 -0
- package/dist/types/src/form/helpers/with-form-item.d.ts +3 -0
- package/dist/types/src/form/hooks/use-form-item-props.d.ts +15 -0
- package/dist/types/src/form/hooks/use-label-width.d.ts +7 -0
- package/dist/types/src/form/index.d.ts +5 -0
- package/dist/types/src/form/types.d.ts +17 -0
- package/dist/types/src/form/use-form.d.ts +38 -0
- package/dist/types/src/grid/context.d.ts +15 -0
- package/dist/types/src/grid/grid-item.d.ts +5 -0
- package/dist/types/src/grid/hooks/index.d.ts +6 -0
- package/dist/types/src/grid/hooks/use-container-breakpoints.d.ts +1 -0
- package/dist/types/src/grid/hooks/use-container-width.d.ts +5 -0
- package/dist/types/src/grid/hooks/use-grid-collapsed.d.ts +4 -0
- package/dist/types/src/grid/hooks/use-normalized-gap.d.ts +3 -0
- package/dist/types/src/grid/hooks/use-responsive-breakpoint.d.ts +2 -0
- package/dist/types/src/grid/hooks/use-responsive-value.d.ts +4 -0
- package/dist/types/src/grid/index.d.ts +8 -0
- package/dist/types/src/grid/props.d.ts +85 -0
- package/dist/types/src/grid/styles.d.ts +4 -0
- package/dist/types/src/group/index.d.ts +4 -0
- package/dist/types/src/group/props.d.ts +13 -0
- package/dist/types/src/icon/index.d.ts +3 -0
- package/dist/types/src/icon/props.d.ts +20 -0
- package/dist/types/src/icon-button/index.d.ts +3 -0
- package/dist/types/src/icon-button/props.d.ts +22 -0
- package/dist/types/src/image/index.d.ts +2 -0
- package/dist/types/src/index.d.ts +90 -0
- package/dist/types/src/input/index.d.ts +4 -0
- package/dist/types/src/input-number/index.d.ts +2 -0
- package/dist/types/src/keyboard/index.d.ts +3 -0
- package/dist/types/src/keyboard/props.d.ts +13 -0
- package/dist/types/src/list/index.d.ts +3 -0
- package/dist/types/src/loader/index.d.ts +3 -0
- package/dist/types/src/loader/props.d.ts +20 -0
- package/dist/types/src/mentions/index.d.ts +4 -0
- package/dist/types/src/menu/index.d.ts +5 -0
- package/dist/types/src/modal/index.d.ts +2 -0
- package/dist/types/src/operation-button/index.d.ts +3 -0
- package/dist/types/src/operation-button/props.d.ts +10 -0
- package/dist/types/src/pagination/index.d.ts +2 -0
- package/dist/types/src/permission-gate/index.d.ts +4 -0
- package/dist/types/src/permission-gate/props.d.ts +26 -0
- package/dist/types/src/popconfirm/index.d.ts +2 -0
- package/dist/types/src/popover/index.d.ts +2 -0
- package/dist/types/src/progress/index.d.ts +2 -0
- package/dist/types/src/qrcode/index.d.ts +2 -0
- package/dist/types/src/radio/index.d.ts +4 -0
- package/dist/types/src/rate/index.d.ts +2 -0
- package/dist/types/src/result/index.d.ts +2 -0
- package/dist/types/src/row/index.d.ts +2 -0
- package/dist/types/src/scroll-area/index.d.ts +3 -0
- package/dist/types/src/scroll-area/props.d.ts +49 -0
- package/dist/types/src/scroll-area/styles.d.ts +5 -0
- package/dist/types/src/segmented/index.d.ts +5 -0
- package/dist/types/src/select/hooks/index.d.ts +1 -0
- package/dist/types/src/select/hooks/use-data-options-select.d.ts +16 -0
- package/dist/types/src/select/index.d.ts +5 -0
- package/dist/types/src/skeleton/index.d.ts +8 -0
- package/dist/types/src/slider/index.d.ts +5 -0
- package/dist/types/src/space/index.d.ts +2 -0
- package/dist/types/src/space/props.d.ts +13 -0
- package/dist/types/src/space/space.d.ts +2 -0
- package/dist/types/src/sparkles-text/index.d.ts +3 -0
- package/dist/types/src/sparkles-text/props.d.ts +12 -0
- package/dist/types/src/sparkles-text/sparkle.d.ts +10 -0
- package/dist/types/src/spin/index.d.ts +2 -0
- package/dist/types/src/split-text/index.d.ts +4 -0
- package/dist/types/src/split-text/props.d.ts +78 -0
- package/dist/types/src/splitter/index.d.ts +2 -0
- package/dist/types/src/stack/index.d.ts +4 -0
- package/dist/types/src/stack/props.d.ts +13 -0
- package/dist/types/src/statistic/index.d.ts +2 -0
- package/dist/types/src/steps/index.d.ts +2 -0
- package/dist/types/src/switch/index.d.ts +2 -0
- package/dist/types/src/table/index.d.ts +7 -0
- package/dist/types/src/table/props.d.ts +13 -0
- package/dist/types/src/table/use-pagination-props.d.ts +9 -0
- package/dist/types/src/tabs/index.d.ts +4 -0
- package/dist/types/src/tag/index.d.ts +3 -0
- package/dist/types/src/time-picker/index.d.ts +2 -0
- package/dist/types/src/timeline/index.d.ts +4 -0
- package/dist/types/src/tooltip/index.d.ts +3 -0
- package/dist/types/src/tour/index.d.ts +4 -0
- package/dist/types/src/transfer/index.d.ts +3 -0
- package/dist/types/src/tree/hooks/index.d.ts +1 -0
- package/dist/types/src/tree/hooks/use-data-options-tree.d.ts +16 -0
- package/dist/types/src/tree/index.d.ts +5 -0
- package/dist/types/src/tree-select/hooks/index.d.ts +1 -0
- package/dist/types/src/tree-select/hooks/use-data-options-tree-select.d.ts +16 -0
- package/dist/types/src/tree-select/index.d.ts +3 -0
- package/dist/types/src/typing-animation/index.d.ts +3 -0
- package/dist/types/src/typing-animation/props.d.ts +25 -0
- package/dist/types/src/typography/index.d.ts +11 -0
- package/dist/types/src/upload/index.d.ts +4 -0
- package/dist/types/src/upload/props.d.ts +15 -0
- package/dist/types/src/watermark/index.d.ts +2 -0
- package/dist/types/table/props.d.ts +1 -0
- package/dist/types/tree-select/hooks/use-data-options-tree-select.d.ts +1 -0
- package/dist/types/upload/props.d.ts +1 -0
- package/dist/types/x-actions/index.d.ts +2 -0
- package/dist/types/x-attachments/index.d.ts +2 -0
- package/dist/types/x-bubble/index.d.ts +2 -0
- package/dist/types/x-code-highlighter/index.d.ts +3 -0
- package/dist/types/x-code-highlighter/props.d.ts +3 -0
- package/dist/types/x-conversations/index.d.ts +2 -0
- package/dist/types/x-file-card/index.d.ts +2 -0
- package/dist/types/x-markdown/components/code/index.d.ts +5 -0
- package/dist/types/x-markdown/components/index.d.ts +6 -0
- package/dist/types/x-markdown/components/think/index.d.ts +5 -0
- package/dist/types/x-markdown/extensions.d.ts +3 -0
- package/dist/types/x-markdown/index.d.ts +5 -0
- package/dist/types/x-markdown/props.d.ts +3 -0
- package/dist/types/x-mermaid/index.d.ts +3 -0
- package/dist/types/x-mermaid/props.d.ts +3 -0
- package/dist/types/x-notification/index.d.ts +2 -0
- package/dist/types/x-prompts/index.d.ts +2 -0
- package/dist/types/x-sender/index.d.ts +2 -0
- package/dist/types/x-sources/index.d.ts +2 -0
- package/dist/types/x-suggestion/index.d.ts +2 -0
- package/dist/types/x-think/index.d.ts +2 -0
- package/dist/types/x-thought-chain/index.d.ts +2 -0
- package/dist/types/x-welcome/index.d.ts +2 -0
- package/package.json +16 -15
- package/dist/cjs/action-button/props.cjs +0 -1
- package/dist/cjs/action-group/props.cjs +0 -1
- package/dist/cjs/center/props.cjs +0 -1
- package/dist/cjs/code-highlighter/props.cjs +0 -1
- package/dist/cjs/config-provider/props.cjs +0 -1
- package/dist/cjs/dynamic-icon/props.cjs +0 -1
- package/dist/cjs/flip-text/props.cjs +0 -1
- package/dist/cjs/form/fields/auto-complete/props.cjs +0 -1
- package/dist/cjs/form/fields/bool/props.cjs +0 -1
- package/dist/cjs/form/fields/cascader/props.cjs +0 -1
- package/dist/cjs/form/fields/checkbox/props.cjs +0 -1
- package/dist/cjs/form/fields/color-picker/props.cjs +0 -1
- package/dist/cjs/form/fields/date-picker/props.cjs +0 -1
- package/dist/cjs/form/fields/date-range-picker/props.cjs +0 -1
- package/dist/cjs/form/fields/input/props.cjs +0 -1
- package/dist/cjs/form/fields/input-number/props.cjs +0 -1
- package/dist/cjs/form/fields/mentions/props.cjs +0 -1
- package/dist/cjs/form/fields/password/props.cjs +0 -1
- package/dist/cjs/form/fields/radio/props.cjs +0 -1
- package/dist/cjs/form/fields/rate/props.cjs +0 -1
- package/dist/cjs/form/fields/select/props.cjs +0 -1
- package/dist/cjs/form/fields/slider/props.cjs +0 -1
- package/dist/cjs/form/fields/textarea/props.cjs +0 -1
- package/dist/cjs/form/fields/time-picker/props.cjs +0 -1
- package/dist/cjs/form/fields/time-range-picker/props.cjs +0 -1
- package/dist/cjs/form/fields/transfer/props.cjs +0 -1
- package/dist/cjs/form/fields/tree-select/props.cjs +0 -1
- package/dist/cjs/form/fields/upload/props.cjs +0 -1
- package/dist/cjs/grid/props.cjs +0 -1
- package/dist/cjs/group/props.cjs +0 -1
- package/dist/cjs/icon/props.cjs +0 -1
- package/dist/cjs/icon-button/props.cjs +0 -1
- package/dist/cjs/keyboard/props.cjs +0 -1
- package/dist/cjs/loader/props.cjs +0 -1
- package/dist/cjs/operation-button/props.cjs +0 -1
- package/dist/cjs/permission-gate/props.cjs +0 -1
- package/dist/cjs/scroll-area/props.cjs +0 -1
- package/dist/cjs/sparkles-text/props.cjs +0 -1
- package/dist/cjs/split-text/props.cjs +0 -1
- package/dist/cjs/stack/props.cjs +0 -1
- package/dist/cjs/table/props.cjs +0 -1
- package/dist/cjs/typing-animation/props.cjs +0 -1
- package/dist/cjs/upload/props.cjs +0 -1
- package/dist/es/action-button/props.js +0 -1
- package/dist/es/action-group/props.js +0 -1
- package/dist/es/center/props.js +0 -1
- package/dist/es/code-highlighter/props.js +0 -1
- package/dist/es/config-provider/props.js +0 -1
- package/dist/es/dynamic-icon/props.js +0 -1
- package/dist/es/flip-text/props.js +0 -1
- package/dist/es/form/fields/auto-complete/props.js +0 -1
- package/dist/es/form/fields/bool/props.js +0 -1
- package/dist/es/form/fields/cascader/props.js +0 -1
- package/dist/es/form/fields/checkbox/props.js +0 -1
- package/dist/es/form/fields/color-picker/props.js +0 -1
- package/dist/es/form/fields/date-picker/props.js +0 -1
- package/dist/es/form/fields/date-range-picker/props.js +0 -1
- package/dist/es/form/fields/input/props.js +0 -1
- package/dist/es/form/fields/input-number/props.js +0 -1
- package/dist/es/form/fields/mentions/props.js +0 -1
- package/dist/es/form/fields/password/props.js +0 -1
- package/dist/es/form/fields/radio/props.js +0 -1
- package/dist/es/form/fields/rate/props.js +0 -1
- package/dist/es/form/fields/select/props.js +0 -1
- package/dist/es/form/fields/slider/props.js +0 -1
- package/dist/es/form/fields/textarea/props.js +0 -1
- package/dist/es/form/fields/time-picker/props.js +0 -1
- package/dist/es/form/fields/time-range-picker/props.js +0 -1
- package/dist/es/form/fields/transfer/props.js +0 -1
- package/dist/es/form/fields/tree-select/props.js +0 -1
- package/dist/es/form/fields/upload/props.js +0 -1
- package/dist/es/grid/props.js +0 -1
- package/dist/es/group/props.js +0 -1
- package/dist/es/icon/props.js +0 -1
- package/dist/es/icon-button/props.js +0 -1
- package/dist/es/keyboard/props.js +0 -1
- package/dist/es/loader/props.js +0 -1
- package/dist/es/operation-button/props.js +0 -1
- package/dist/es/permission-gate/props.js +0 -1
- package/dist/es/scroll-area/props.js +0 -1
- package/dist/es/sparkles-text/props.js +0 -1
- package/dist/es/split-text/props.js +0 -1
- package/dist/es/stack/props.js +0 -1
- package/dist/es/table/props.js +0 -1
- package/dist/es/typing-animation/props.js +0 -1
- package/dist/es/upload/props.js +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
export interface ThemeColorTokens {
|
|
2
|
+
colors: Record<string, string | number>;
|
|
3
|
+
}
|
|
1
4
|
export interface GlobalThemeTokens {
|
|
2
|
-
light:
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
dark: {
|
|
6
|
-
colors: Record<string, string | number>;
|
|
7
|
-
};
|
|
5
|
+
light: ThemeColorTokens;
|
|
6
|
+
dark: ThemeColorTokens;
|
|
8
7
|
}
|
|
9
8
|
export declare const globalThemeTokens: GlobalThemeTokens;
|
|
@@ -2,9 +2,6 @@ import { MaybeUndefined } from '@vef-framework/shared';
|
|
|
2
2
|
import { Breakpoint, Length } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Resolves a breakpoint value from a partial breakpoints config.
|
|
5
|
-
*
|
|
6
|
-
* @param breakpointValues - Partial config with breakpoint values
|
|
7
|
-
* @param breakpoint - The current breakpoint to resolve
|
|
8
|
-
* @returns The resolved value, or undefined if no value can be found
|
|
5
|
+
* Falls back to the nearest defined breakpoint value (smaller first, then larger).
|
|
9
6
|
*/
|
|
10
7
|
export declare function resolveBreakpointValue(breakpointValues: Partial<Record<Breakpoint, Length>>, breakpoint: Breakpoint): MaybeUndefined<Length>;
|
|
@@ -1,15 +1,3 @@
|
|
|
1
1
|
import { PresetColor, SemanticColor } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Check if the given color is a preset color
|
|
4
|
-
*
|
|
5
|
-
* @param color - The color to check
|
|
6
|
-
* @returns True if the color is a preset color, false otherwise
|
|
7
|
-
*/
|
|
8
2
|
export declare function isPresetColor(color: string): color is PresetColor;
|
|
9
|
-
/**
|
|
10
|
-
* Check if the given color is a semantic color
|
|
11
|
-
*
|
|
12
|
-
* @param color - The color to check
|
|
13
|
-
* @returns True if the color is a semantic color, false otherwise
|
|
14
|
-
*/
|
|
15
3
|
export declare function isSemanticColor(color: string): color is SemanticColor;
|
|
@@ -1,30 +1,8 @@
|
|
|
1
1
|
import { MaybeUndefined } from '@vef-framework/shared';
|
|
2
2
|
import { Length, Size } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Get the spacing value
|
|
5
|
-
*
|
|
6
|
-
* @param value - The spacing value
|
|
7
|
-
* @returns The spacing value
|
|
8
|
-
*/
|
|
9
3
|
export declare function getSpacingValue(value: Length): string;
|
|
10
4
|
/**
|
|
11
|
-
* Maps
|
|
12
|
-
*
|
|
13
|
-
* This function is necessary for compatibility with Ant Design components,
|
|
14
|
-
* which use "middle" instead of "medium" for the medium size value.
|
|
15
|
-
* This is not a standard naming convention - "medium" is more widely used
|
|
16
|
-
* in the industry.
|
|
17
|
-
*
|
|
18
|
-
* NOTE: This function can be deprecated once Ant Design updates their
|
|
19
|
-
* Size type to use standard naming conventions (i.e., "medium" instead of "middle").
|
|
20
|
-
*
|
|
21
|
-
* @param size - The VEF Framework size value
|
|
22
|
-
* @returns The corresponding Ant Design size value
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```tsx
|
|
26
|
-
* const antdSize = mapSize("medium"); // Returns "middle"
|
|
27
|
-
* const antdSize = mapSize("small"); // Returns "small"
|
|
28
|
-
* ```
|
|
5
|
+
* Maps VEF Framework size to Ant Design size.
|
|
6
|
+
* Ant Design uses "middle" instead of the standard "medium".
|
|
29
7
|
*/
|
|
30
8
|
export declare function mapSize(size?: Size): MaybeUndefined<"small" | "middle" | "large">;
|
|
@@ -1,38 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Show a success message
|
|
4
|
-
*
|
|
5
|
-
* @param content - The content of the message
|
|
6
|
-
*/
|
|
7
2
|
export declare function showSuccessMessage(content: ReactNode): void;
|
|
8
|
-
/**
|
|
9
|
-
* Show an info message
|
|
10
|
-
*
|
|
11
|
-
* @param content - The content of the message
|
|
12
|
-
*/
|
|
13
3
|
export declare function showInfoMessage(content: ReactNode): void;
|
|
14
|
-
/**
|
|
15
|
-
* Show a warning message
|
|
16
|
-
*
|
|
17
|
-
* @param content - The content of the message
|
|
18
|
-
*/
|
|
19
4
|
export declare function showWarningMessage(content: ReactNode): void;
|
|
20
|
-
/**
|
|
21
|
-
* Show an error message
|
|
22
|
-
*
|
|
23
|
-
* @param content - The content of the message
|
|
24
|
-
*/
|
|
25
5
|
export declare function showErrorMessage(content: ReactNode): void;
|
|
26
|
-
|
|
27
|
-
* Show a loading message
|
|
28
|
-
*
|
|
29
|
-
* @param content - The content of the message
|
|
30
|
-
*/
|
|
31
|
-
export declare function showLoadingMessage(content: ReactNode): {
|
|
6
|
+
export interface LoadingMessageHandle {
|
|
32
7
|
close: () => void;
|
|
33
|
-
update: (content: ReactNode) =>
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
* Close all messages
|
|
37
|
-
*/
|
|
8
|
+
update: (content: ReactNode) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function showLoadingMessage(content: ReactNode): LoadingMessageHandle;
|
|
38
11
|
export declare function closeAllMessages(): void;
|
|
@@ -2,107 +2,30 @@ import { Awaitable, Except } from '@vef-framework/shared';
|
|
|
2
2
|
import { ButtonProps } from 'antd';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { Length } from '../types';
|
|
5
|
-
/**
|
|
6
|
-
* The options for the confirm modal.
|
|
7
|
-
*/
|
|
8
5
|
export interface ConfirmOptions {
|
|
9
|
-
/**
|
|
10
|
-
* The title of the confirm modal.
|
|
11
|
-
*/
|
|
12
6
|
title?: ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* The text of the OK button.
|
|
15
|
-
*/
|
|
16
7
|
okText?: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* The text of the cancel button.
|
|
19
|
-
*/
|
|
20
8
|
cancelText?: ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* The props of the OK button.
|
|
23
|
-
*/
|
|
24
9
|
okButtonProps?: ButtonProps;
|
|
25
|
-
/**
|
|
26
|
-
* The props of the cancel button.
|
|
27
|
-
*/
|
|
28
10
|
cancelButtonProps?: ButtonProps;
|
|
29
|
-
/**
|
|
30
|
-
* The width of the modal.
|
|
31
|
-
*/
|
|
32
11
|
width?: Length;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the modal is closable.
|
|
35
|
-
*/
|
|
36
12
|
closable?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* The callback function when the OK button is clicked.
|
|
39
|
-
*/
|
|
40
13
|
onOk?: () => Awaitable<void>;
|
|
41
|
-
/**
|
|
42
|
-
* The callback function when the cancel button is clicked.
|
|
43
|
-
*/
|
|
44
14
|
onCancel?: () => Awaitable<void>;
|
|
45
|
-
/**
|
|
46
|
-
* The callback function after the confirm dialog is opened.
|
|
47
|
-
*/
|
|
48
15
|
onAfterOpen?: () => void;
|
|
49
|
-
/**
|
|
50
|
-
* The callback function after the confirm dialog is closed.
|
|
51
|
-
*/
|
|
52
16
|
onAfterClose?: () => void;
|
|
53
17
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
*/
|
|
57
|
-
export interface AlertOptions extends Except<ConfirmOptions, "cancelText" | "cancelButtonProps"> {
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Show a confirm modal.
|
|
61
|
-
*
|
|
62
|
-
* @param content - The content of the modal.
|
|
63
|
-
* @param options - The options of the modal.
|
|
64
|
-
*/
|
|
65
|
-
export declare function showConfirm(content: ReactNode, options?: ConfirmOptions): {
|
|
18
|
+
export type AlertOptions = Except<ConfirmOptions, "cancelText" | "cancelButtonProps">;
|
|
19
|
+
export interface ModalHandle {
|
|
66
20
|
close: () => void;
|
|
67
21
|
update: (content: ReactNode, options?: ConfirmOptions) => void;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
* Show a success alert modal.
|
|
71
|
-
*
|
|
72
|
-
* @param content - The content of the modal.
|
|
73
|
-
* @param options - The options of the modal.
|
|
74
|
-
*/
|
|
75
|
-
export declare function showSuccessAlert(content: ReactNode, options?: AlertOptions): {
|
|
76
|
-
close: () => void;
|
|
77
|
-
update: (content: ReactNode, options?: AlertOptions) => void;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Show an info alert modal.
|
|
81
|
-
*
|
|
82
|
-
* @param content - The content of the modal.
|
|
83
|
-
* @param options - The options of the modal.
|
|
84
|
-
*/
|
|
85
|
-
export declare function showInfoAlert(content: ReactNode, options?: AlertOptions): {
|
|
86
|
-
close: () => void;
|
|
87
|
-
update: (content: ReactNode, options?: AlertOptions) => void;
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Show a warning alert modal.
|
|
91
|
-
*
|
|
92
|
-
* @param content - The content of the modal.
|
|
93
|
-
* @param options - The options of the modal.
|
|
94
|
-
*/
|
|
95
|
-
export declare function showWarningAlert(content: ReactNode, options?: AlertOptions): {
|
|
96
|
-
close: () => void;
|
|
97
|
-
update: (content: ReactNode, options?: AlertOptions) => void;
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Show an error alert modal.
|
|
101
|
-
*
|
|
102
|
-
* @param content - The content of the modal.
|
|
103
|
-
* @param options - The options of the modal.
|
|
104
|
-
*/
|
|
105
|
-
export declare function showErrorAlert(content: ReactNode, options?: AlertOptions): {
|
|
22
|
+
}
|
|
23
|
+
export interface AlertHandle {
|
|
106
24
|
close: () => void;
|
|
107
25
|
update: (content: ReactNode, options?: AlertOptions) => void;
|
|
108
|
-
}
|
|
26
|
+
}
|
|
27
|
+
export declare function showConfirm(content: ReactNode, options?: ConfirmOptions): ModalHandle;
|
|
28
|
+
export declare function showSuccessAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
|
|
29
|
+
export declare function showInfoAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
|
|
30
|
+
export declare function showWarningAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
|
|
31
|
+
export declare function showErrorAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
|
|
@@ -1,74 +1,17 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* The options for the notification.
|
|
4
|
-
*/
|
|
5
2
|
export interface NotificationOptions {
|
|
6
|
-
/**
|
|
7
|
-
* The title of the notification.
|
|
8
|
-
*/
|
|
9
3
|
title?: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* The duration of the notification.
|
|
12
|
-
*/
|
|
13
4
|
duration?: number;
|
|
14
|
-
/**
|
|
15
|
-
* The actions of the notification.
|
|
16
|
-
*/
|
|
17
5
|
actions?: ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* Whether the notification is closable.
|
|
20
|
-
*/
|
|
21
6
|
closable?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* The icon of the notification.
|
|
24
|
-
*/
|
|
25
7
|
icon?: ReactNode;
|
|
26
8
|
}
|
|
27
|
-
|
|
28
|
-
* Show a success notification
|
|
29
|
-
*
|
|
30
|
-
* @param content - The content of the notification
|
|
31
|
-
* @param options - The options of the notification
|
|
32
|
-
* @returns An object with close and update methods
|
|
33
|
-
*/
|
|
34
|
-
export declare function showSuccessNotification(content: ReactNode, options?: NotificationOptions): {
|
|
9
|
+
export interface NotificationHandle {
|
|
35
10
|
close: () => void;
|
|
36
11
|
update: (content: ReactNode, options?: NotificationOptions) => void;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
* @param options - The options of the notification
|
|
43
|
-
* @returns An object with close and update methods
|
|
44
|
-
*/
|
|
45
|
-
export declare function showInfoNotification(content: ReactNode, options?: NotificationOptions): {
|
|
46
|
-
close: () => void;
|
|
47
|
-
update: (content: ReactNode, options?: NotificationOptions) => void;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Show a warning notification
|
|
51
|
-
*
|
|
52
|
-
* @param content - The content of the notification
|
|
53
|
-
* @param options - The options of the notification
|
|
54
|
-
* @returns An object with close and update methods
|
|
55
|
-
*/
|
|
56
|
-
export declare function showWarningNotification(content: ReactNode, options?: NotificationOptions): {
|
|
57
|
-
close: () => void;
|
|
58
|
-
update: (content: ReactNode, options?: NotificationOptions) => void;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Show an error notification
|
|
62
|
-
*
|
|
63
|
-
* @param content - The content of the notification
|
|
64
|
-
* @param options - The options of the notification
|
|
65
|
-
* @returns An object with close and update methods
|
|
66
|
-
*/
|
|
67
|
-
export declare function showErrorNotification(content: ReactNode, options?: NotificationOptions): {
|
|
68
|
-
close: () => void;
|
|
69
|
-
update: (content: ReactNode, options?: NotificationOptions) => void;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Close all notifications
|
|
73
|
-
*/
|
|
12
|
+
}
|
|
13
|
+
export declare function showSuccessNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
|
|
14
|
+
export declare function showInfoNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
|
|
15
|
+
export declare function showWarningNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
|
|
16
|
+
export declare function showErrorNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
|
|
74
17
|
export declare function closeAllNotifications(): void;
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type FilteredProps<T extends Record<string, unknown>> = {
|
|
2
2
|
[K in keyof T]-?: T[K] extends undefined ? never : T[K];
|
|
3
3
|
};
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
* @param props The props to filter
|
|
8
|
-
* @returns The filtered props
|
|
9
|
-
*/
|
|
10
|
-
export declare function filterProps<T extends Record<string, any>>(props: T): FilterProps<T>;
|
|
11
|
-
/**
|
|
12
|
-
* Merges the props with the default props
|
|
13
|
-
*
|
|
14
|
-
* @param props The props to merge
|
|
15
|
-
* @param defaultProps The default props
|
|
16
|
-
* @returns The merged props
|
|
17
|
-
*/
|
|
18
|
-
export declare function mergeProps<TProps extends Record<string, any>, TDefault extends TProps>(props: TProps, defaultProps: TDefault): TDefault & FilterProps<TProps>;
|
|
4
|
+
export declare function filterProps<T extends Record<string, unknown>>(props: T): FilteredProps<T>;
|
|
5
|
+
export declare function mergeProps<TProps extends Record<string, unknown>, TDefault extends TProps>(props: TProps, defaultProps: TDefault): TDefault & FilteredProps<TProps>;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
import { FragmentProps, ReactElement, ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Check if the node is a Fragment
|
|
4
|
-
*
|
|
5
|
-
* @param node The node to check
|
|
6
|
-
* @returns Whether the node is a Fragment
|
|
7
|
-
*/
|
|
8
2
|
export declare function isFragment(node: ReactNode): node is ReactElement<FragmentProps>;
|
|
@@ -1,104 +1,41 @@
|
|
|
1
1
|
import { PermissionCheckMode } from '@vef-framework/core';
|
|
2
|
-
import { Awaitable, EmptyObject,
|
|
2
|
+
import { AnyObject, Awaitable, EmptyObject, If, IsNever, LiteralUnion, Simplify } from '@vef-framework/shared';
|
|
3
3
|
import { ReactNode, Ref } from 'react';
|
|
4
4
|
import { ButtonColor, ButtonVariant } from '../../button';
|
|
5
|
-
import { fullSizes, presetColors, semanticColors, semanticScenes, sizes } from '../constants';
|
|
6
|
-
/**
|
|
7
|
-
* The preset color
|
|
8
|
-
*/
|
|
5
|
+
import { colors, fullSizes, presetColors, semanticColors, semanticScenes, sizes } from '../constants';
|
|
9
6
|
export type PresetColor = (typeof presetColors)[number];
|
|
10
|
-
/**
|
|
11
|
-
* The semantic scene
|
|
12
|
-
*/
|
|
13
7
|
export type SemanticScene = (typeof semanticScenes)[number];
|
|
14
|
-
/**
|
|
15
|
-
* The semantic color
|
|
16
|
-
*/
|
|
17
8
|
export type SemanticColor = (typeof semanticColors)[number];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export type
|
|
22
|
-
export type Size = typeof sizes[number];
|
|
23
|
-
export type FullSize = typeof fullSizes[number];
|
|
9
|
+
export type Color = Simplify<PresetColor | SemanticColor>;
|
|
10
|
+
export type Colors = typeof colors;
|
|
11
|
+
export type Size = (typeof sizes)[number];
|
|
12
|
+
export type FullSize = (typeof fullSizes)[number];
|
|
24
13
|
export type Orientation = "horizontal" | "vertical";
|
|
25
14
|
export type ActionConfirmMode = "popover" | "dialog";
|
|
26
|
-
export type ActionButtonMaybeComputed<TContext, TValue> = If<IsNever<TContext>, TValue, TValue | ((context: TContext) => TValue)>;
|
|
27
15
|
export type Length = string | number;
|
|
16
|
+
export type ActionButtonMaybeComputed<TContext, TValue> = If<IsNever<TContext>, TValue, TValue | ((context: TContext) => TValue)>;
|
|
28
17
|
export type SizeableLength<TSize extends FullSize | Size> = LiteralUnion<TSize, Length>;
|
|
29
18
|
export type { GetProp, GetProps, GetRef } from 'antd';
|
|
30
|
-
export type PropsWithRef<TRef, TProps = EmptyObject> = TProps & {
|
|
19
|
+
export type PropsWithRef<TRef, TProps extends AnyObject = EmptyObject> = TProps & {
|
|
31
20
|
ref?: Ref<TRef>;
|
|
32
21
|
};
|
|
33
|
-
/**
|
|
34
|
-
* The position
|
|
35
|
-
*/
|
|
36
22
|
export interface Position {
|
|
37
23
|
x: number;
|
|
38
24
|
y: number;
|
|
39
25
|
}
|
|
40
|
-
/**
|
|
41
|
-
* The config for the action button.
|
|
42
|
-
*
|
|
43
|
-
* @template TContext - The context type of the action button.
|
|
44
|
-
*/
|
|
45
26
|
export interface ActionButtonConfig<TContext = never> {
|
|
46
|
-
/**
|
|
47
|
-
* The key of the action button.
|
|
48
|
-
*/
|
|
49
27
|
key: string;
|
|
50
|
-
/**
|
|
51
|
-
* The label of the action button.
|
|
52
|
-
*/
|
|
53
28
|
label: string;
|
|
54
|
-
/**
|
|
55
|
-
* Whether the action button is disabled.
|
|
56
|
-
*/
|
|
57
29
|
disabled?: ActionButtonMaybeComputed<TContext, boolean>;
|
|
58
|
-
/**
|
|
59
|
-
* Whether the action button is hidden.
|
|
60
|
-
*/
|
|
61
30
|
hidden?: ActionButtonMaybeComputed<TContext, boolean>;
|
|
62
|
-
/**
|
|
63
|
-
* The color of the action button.
|
|
64
|
-
*/
|
|
65
31
|
color?: ButtonColor;
|
|
66
|
-
/**
|
|
67
|
-
* The variant of the action button.
|
|
68
|
-
*/
|
|
69
32
|
variant?: ButtonVariant;
|
|
70
|
-
/**
|
|
71
|
-
* The icon of the action button.
|
|
72
|
-
*/
|
|
73
33
|
icon?: ReactNode;
|
|
74
|
-
/**
|
|
75
|
-
* The permission tokens of the action button.
|
|
76
|
-
*/
|
|
77
34
|
permTokens?: string[];
|
|
78
|
-
/**
|
|
79
|
-
* The permission check mode of the action button.
|
|
80
|
-
* Default is "any".
|
|
81
|
-
*/
|
|
82
35
|
checkMode?: PermissionCheckMode;
|
|
83
|
-
/**
|
|
84
|
-
* Whether the action button is confirmable.
|
|
85
|
-
*/
|
|
86
36
|
confirmable?: ActionButtonMaybeComputed<TContext, boolean>;
|
|
87
|
-
/**
|
|
88
|
-
* The confirm mode of the action button.
|
|
89
|
-
* Default is "popover".
|
|
90
|
-
*/
|
|
91
37
|
confirmMode?: ActionButtonMaybeComputed<TContext, ActionConfirmMode>;
|
|
92
|
-
/**
|
|
93
|
-
* The confirm title of the action button.
|
|
94
|
-
*/
|
|
95
38
|
confirmTitle?: ActionButtonMaybeComputed<TContext, ReactNode>;
|
|
96
|
-
/**
|
|
97
|
-
* The confirm description of the action button.
|
|
98
|
-
*/
|
|
99
39
|
confirmDescription?: ActionButtonMaybeComputed<TContext, ReactNode>;
|
|
100
|
-
/**
|
|
101
|
-
* The callback function when the action button is clicked.
|
|
102
|
-
*/
|
|
103
40
|
onClick: (context: If<IsNever<TContext>, void, TContext>) => Awaitable<void>;
|
|
104
41
|
}
|
|
@@ -2,8 +2,11 @@ import { Except, SetRequired } from '@vef-framework/shared';
|
|
|
2
2
|
import { MouseEvent, MouseEventHandler } from 'react';
|
|
3
3
|
import { ButtonProps } from '../button';
|
|
4
4
|
import { ActionButtonProps } from './props';
|
|
5
|
-
|
|
5
|
+
type UseActionButtonOptions = SetRequired<Except<ActionButtonProps, keyof Except<ButtonProps, "loading" | "onClick">>, "confirmable" | "confirmMode" | "confirmTitle" | "confirmDescription">;
|
|
6
|
+
interface UseActionButtonReturn {
|
|
6
7
|
loading: boolean;
|
|
7
8
|
invokeClickAction: (event: MouseEvent<HTMLElement>, waitForActionDone?: boolean) => Promise<void>;
|
|
8
9
|
handleClick: MouseEventHandler<HTMLElement>;
|
|
9
|
-
}
|
|
10
|
+
}
|
|
11
|
+
export declare function useActionButton({ confirmable, confirmMode, confirmTitle, confirmDescription, onClick }: UseActionButtonOptions): UseActionButtonReturn;
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EmptyObject, If, IsNever } from '@vef-framework/shared';
|
|
2
2
|
import { ActionGroupProps } from './props';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
3
4
|
export declare function useActionGroup<TContext>(props: ActionGroupProps<TContext> & If<IsNever<TContext>, EmptyObject, {
|
|
4
5
|
context: TContext;
|
|
5
6
|
}>): {
|
|
6
|
-
buttonNodes:
|
|
7
|
+
buttonNodes: ReactNode[];
|
|
7
8
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
import { ActionButtonConfig } from '../_base';
|
|
3
4
|
/**
|
|
4
5
|
* The hook to compute the action buttons.
|
|
5
6
|
*
|
|
6
7
|
* @param buttons - The action button configs.
|
|
8
|
+
* @param size - The button size.
|
|
7
9
|
* @param context - The context.
|
|
8
10
|
* @returns The computed action buttons.
|
|
9
11
|
*/
|
|
10
|
-
export declare function useComputedActionButtons<TContext>(buttons: Array<ActionButtonConfig<TContext>>, size: SizeType, context: TContext):
|
|
12
|
+
export declare function useComputedActionButtons<TContext>(buttons: Array<ActionButtonConfig<TContext>>, size: SizeType, context: TContext): ReactNode[];
|
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
import { CSSProperties, MemoExoticComponent } from 'react';
|
|
2
2
|
import { PropsWithRef } from '../_base';
|
|
3
3
|
import { UseChartOptions } from './hooks';
|
|
4
|
-
/**
|
|
5
|
-
* The props for the Chart component.
|
|
6
|
-
*/
|
|
7
4
|
export interface ChartProps extends UseChartOptions {
|
|
8
|
-
/**
|
|
9
|
-
* Additional CSS class name for the container
|
|
10
|
-
*/
|
|
11
5
|
className?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Inline styles for the container
|
|
14
|
-
*/
|
|
15
6
|
style?: CSSProperties;
|
|
16
|
-
/**
|
|
17
|
-
* Whether to use deep memoization for option
|
|
18
|
-
*/
|
|
19
7
|
deepMemo?: boolean;
|
|
20
8
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export declare const Chart: MemoExoticComponent<({ className, style, ref, deepMemo: _, ...options }: PropsWithRef<HTMLDivElement, ChartProps>) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
9
|
+
declare function ChartComponent({ className, style, ref, deepMemo: _deepMemo, ...options }: PropsWithRef<HTMLDivElement, ChartProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Chart: MemoExoticComponent<typeof ChartComponent>;
|
|
11
|
+
export {};
|
|
@@ -1,41 +1,14 @@
|
|
|
1
1
|
import { AnyObject, Except } from '@vef-framework/shared';
|
|
2
2
|
import { ECharts, EChartsInitOpts, EChartsOption, SetOptionOpts } from 'echarts';
|
|
3
3
|
import { RefObject } from 'react';
|
|
4
|
-
/**
|
|
5
|
-
* Options for useChart hook
|
|
6
|
-
*/
|
|
7
4
|
export interface UseChartOptions extends Except<EChartsInitOpts, "width" | "height">, SetOptionOpts {
|
|
8
|
-
/**
|
|
9
|
-
* ECharts option configuration
|
|
10
|
-
*/
|
|
11
5
|
option: EChartsOption;
|
|
12
|
-
/**
|
|
13
|
-
* Theme name or object
|
|
14
|
-
*/
|
|
15
6
|
theme?: "walden" | "wonderland" | AnyObject;
|
|
16
|
-
/**
|
|
17
|
-
* Loading state
|
|
18
|
-
*/
|
|
19
7
|
loading?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Container width
|
|
22
|
-
*/
|
|
23
8
|
width?: number | "auto";
|
|
24
|
-
/**
|
|
25
|
-
* Container height
|
|
26
|
-
*/
|
|
27
9
|
height?: number | "auto";
|
|
28
|
-
/**
|
|
29
|
-
* Group id for chart synchronization
|
|
30
|
-
*/
|
|
31
10
|
group?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Callback when chart is ready
|
|
34
|
-
*/
|
|
35
11
|
onReady?: (chart: ECharts) => void;
|
|
36
|
-
/**
|
|
37
|
-
* Callback before chart is disposed
|
|
38
|
-
*/
|
|
39
12
|
onBeforeDispose?: (chart: ECharts) => void;
|
|
40
13
|
}
|
|
41
14
|
export declare function useChart({ option, theme, loading, group, onReady, onBeforeDispose, notMerge, replaceMerge, lazyUpdate, silent, transition, renderer, devicePixelRatio, width, height, ssr, useCoarsePointer, useDirtyRect, pointerSize, locale }: UseChartOptions): RefObject<HTMLDivElement | null>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CSSProperties,
|
|
2
|
-
interface AppProps
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
interface AppProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
style?: CSSProperties;
|
|
5
|
+
children?: ReactNode;
|
|
5
6
|
}
|
|
6
|
-
export declare const
|
|
7
|
-
export default function App({ className, style, children }: AppProps):
|
|
7
|
+
export declare const ROOT_ELEMENT_ID = "root";
|
|
8
|
+
export default function App({ className, style, children }: AppProps): ReactNode;
|
|
8
9
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const mergedPresetColors: {
|
|
2
|
+
red: string;
|
|
3
|
+
orange: string;
|
|
4
|
+
yellow: string;
|
|
5
|
+
lime: string;
|
|
6
|
+
green: string;
|
|
7
|
+
cyan: string;
|
|
8
|
+
blue: string;
|
|
9
|
+
purple: string;
|
|
10
|
+
pink: string;
|
|
11
|
+
geekblue: string;
|
|
12
|
+
magenta: string;
|
|
13
|
+
volcano: string;
|
|
14
|
+
gold: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const defaultColors: {
|
|
17
|
+
readonly primary: "blue";
|
|
18
|
+
readonly success: "green";
|
|
19
|
+
readonly info: "blue";
|
|
20
|
+
readonly warning: "orange";
|
|
21
|
+
readonly error: "red";
|
|
22
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
children?: ReactNode
|
|
4
|
-
}
|
|
5
|
-
export default ContextHolder;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ContextHolderProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export default function ContextHolder({ children }: ContextHolderProps): ReactNode;
|
|
6
|
+
export {};
|