@vef-framework-react/components 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/README +17 -0
- package/dist/cjs/_base/constants/breakpoints.cjs +1 -0
- package/dist/cjs/_base/constants/common.cjs +1 -0
- package/dist/cjs/_base/constants/css-vars.cjs +1 -0
- package/dist/cjs/_base/constants/index.cjs +1 -0
- package/dist/cjs/_base/constants/theme.cjs +1 -0
- package/dist/cjs/_base/helpers/breakpoints.cjs +1 -0
- package/dist/cjs/_base/helpers/color.cjs +1 -0
- package/dist/cjs/_base/helpers/common.cjs +1 -0
- package/dist/cjs/_base/helpers/index.cjs +1 -0
- package/dist/cjs/_base/helpers/message.cjs +1 -0
- package/dist/cjs/_base/helpers/modal.cjs +1 -0
- package/dist/cjs/_base/helpers/notification.cjs +1 -0
- package/dist/cjs/_base/helpers/props.cjs +1 -0
- package/dist/cjs/_base/helpers/react.cjs +1 -0
- package/dist/cjs/_base/hooks/index.cjs +1 -0
- package/dist/cjs/_base/hooks/use-theme-tokens.cjs +1 -0
- package/dist/cjs/_base/index.cjs +1 -0
- package/dist/cjs/_base/styles/common.cjs +1 -0
- package/dist/cjs/_base/styles/index.cjs +0 -0
- package/dist/cjs/_base/types/breakpoints.cjs +0 -0
- package/dist/cjs/_base/types/common.cjs +0 -0
- package/dist/cjs/_base/types/index.cjs +0 -0
- package/dist/cjs/_internal/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/action-button/index.cjs +1 -0
- package/dist/cjs/action-button/use-action-button.cjs +1 -0
- package/dist/cjs/action-group/index.cjs +1 -0
- package/dist/cjs/action-group/use-action-group.cjs +1 -0
- package/dist/cjs/action-group/use-computed-action-buttons.cjs +1 -0
- package/dist/cjs/affix/index.cjs +1 -0
- package/dist/cjs/alert/index.cjs +1 -0
- package/dist/cjs/anchor/index.cjs +1 -0
- package/dist/cjs/auto-complete/index.cjs +1 -0
- package/dist/cjs/avatar/index.cjs +1 -0
- package/dist/cjs/badge/index.cjs +1 -0
- package/dist/cjs/bool/index.cjs +1 -0
- package/dist/cjs/breadcrumb/index.cjs +1 -0
- package/dist/cjs/button/index.cjs +1 -0
- package/dist/cjs/calendar/index.cjs +1 -0
- package/dist/cjs/card/index.cjs +1 -0
- package/dist/cjs/carousel/index.cjs +1 -0
- package/dist/cjs/cascader/index.cjs +1 -0
- package/dist/cjs/center/index.cjs +1 -0
- package/dist/cjs/charts/chart.cjs +1 -0
- package/dist/cjs/charts/helpers/group.cjs +1 -0
- package/dist/cjs/charts/helpers/index.cjs +1 -0
- package/dist/cjs/charts/hooks/index.cjs +1 -0
- package/dist/cjs/charts/hooks/use-chart.cjs +1 -0
- package/dist/cjs/charts/index.cjs +1 -0
- package/dist/cjs/charts/themes/index.cjs +1 -0
- package/dist/cjs/charts/themes/walden-dark.cjs +1 -0
- package/dist/cjs/charts/themes/walden.cjs +1 -0
- package/dist/cjs/charts/themes/wonderland-dark.cjs +1 -0
- package/dist/cjs/charts/themes/wonderland.cjs +1 -0
- package/dist/cjs/checkbox/index.cjs +1 -0
- package/dist/cjs/code-highlighter/index.cjs +1 -0
- package/dist/cjs/col/index.cjs +1 -0
- package/dist/cjs/collapse/index.cjs +1 -0
- package/dist/cjs/color-picker/index.cjs +1 -0
- package/dist/cjs/compact/index.cjs +1 -0
- package/dist/cjs/config-provider/app.cjs +1 -0
- package/dist/cjs/config-provider/constants.cjs +1 -0
- package/dist/cjs/config-provider/context-holder.cjs +1 -0
- package/dist/cjs/config-provider/css-vars.cjs +1 -0
- package/dist/cjs/config-provider/dark-mode-context.cjs +1 -0
- package/dist/cjs/config-provider/error-fallback.cjs +1 -0
- package/dist/cjs/config-provider/global-style.cjs +1 -0
- package/dist/cjs/config-provider/index.cjs +1 -0
- package/dist/cjs/config-provider/theme-config.cjs +1 -0
- package/dist/cjs/config-provider/use-config-provider.cjs +1 -0
- package/dist/cjs/date-picker/index.cjs +1 -0
- package/dist/cjs/descriptions/index.cjs +1 -0
- package/dist/cjs/divider/index.cjs +1 -0
- package/dist/cjs/drawer/index.cjs +1 -0
- package/dist/cjs/dropdown/index.cjs +1 -0
- package/dist/cjs/dynamic-icon/index.cjs +1 -0
- package/dist/cjs/dynamic-icon/placeholder-icon.cjs +1 -0
- package/dist/cjs/dynamic-icon/unknown-icon.cjs +1 -0
- package/dist/cjs/empty/empty.cjs +1 -0
- package/dist/cjs/empty/index.cjs +1 -0
- package/dist/cjs/flex/index.cjs +1 -0
- package/dist/cjs/flip-text/index.cjs +1 -0
- package/dist/cjs/float-button/index.cjs +1 -0
- package/dist/cjs/form/components/form.cjs +1 -0
- package/dist/cjs/form/components/index.cjs +1 -0
- package/dist/cjs/form/components/reset-button.cjs +1 -0
- package/dist/cjs/form/components/submit-button.cjs +1 -0
- package/dist/cjs/form/contexts/form-context.cjs +1 -0
- package/dist/cjs/form/contexts/form-layout.cjs +1 -0
- package/dist/cjs/form/contexts/index.cjs +1 -0
- package/dist/cjs/form/fields/auto-complete/index.cjs +1 -0
- package/dist/cjs/form/fields/bool/index.cjs +1 -0
- package/dist/cjs/form/fields/cascader/index.cjs +1 -0
- package/dist/cjs/form/fields/checkbox/index.cjs +1 -0
- package/dist/cjs/form/fields/color-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/date-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/date-range-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/index.cjs +1 -0
- package/dist/cjs/form/fields/input/index.cjs +1 -0
- package/dist/cjs/form/fields/input-number/index.cjs +1 -0
- package/dist/cjs/form/fields/mentions/index.cjs +1 -0
- package/dist/cjs/form/fields/password/index.cjs +1 -0
- package/dist/cjs/form/fields/radio/index.cjs +1 -0
- package/dist/cjs/form/fields/rate/index.cjs +1 -0
- package/dist/cjs/form/fields/select/index.cjs +1 -0
- package/dist/cjs/form/fields/slider/index.cjs +1 -0
- package/dist/cjs/form/fields/textarea/index.cjs +1 -0
- package/dist/cjs/form/fields/time-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/time-range-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/transfer/index.cjs +1 -0
- package/dist/cjs/form/fields/tree-select/index.cjs +1 -0
- package/dist/cjs/form/fields/upload/index.cjs +1 -0
- package/dist/cjs/form/form.cjs +1 -0
- package/dist/cjs/form/helpers/index.cjs +1 -0
- package/dist/cjs/form/helpers/with-form-item.cjs +1 -0
- package/dist/cjs/form/hooks/use-form-item-props.cjs +1 -0
- package/dist/cjs/form/hooks/use-label-width.cjs +1 -0
- package/dist/cjs/form/index.cjs +1 -0
- package/dist/cjs/form/use-form.cjs +1 -0
- package/dist/cjs/grid/context.cjs +1 -0
- package/dist/cjs/grid/grid-item.cjs +1 -0
- package/dist/cjs/grid/hooks/index.cjs +1 -0
- package/dist/cjs/grid/hooks/use-container-breakpoints.cjs +1 -0
- package/dist/cjs/grid/hooks/use-container-width.cjs +1 -0
- package/dist/cjs/grid/hooks/use-grid-collapsed.cjs +1 -0
- package/dist/cjs/grid/hooks/use-normalized-gap.cjs +1 -0
- package/dist/cjs/grid/hooks/use-responsive-breakpoint.cjs +1 -0
- package/dist/cjs/grid/hooks/use-responsive-value.cjs +1 -0
- package/dist/cjs/grid/index.cjs +1 -0
- package/dist/cjs/grid/styles.cjs +1 -0
- package/dist/cjs/group/index.cjs +1 -0
- package/dist/cjs/icon/index.cjs +1 -0
- package/dist/cjs/icon-button/index.cjs +1 -0
- package/dist/cjs/image/index.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/input/index.cjs +1 -0
- package/dist/cjs/input-number/index.cjs +1 -0
- package/dist/cjs/keyboard/index.cjs +1 -0
- package/dist/cjs/list/index.cjs +1 -0
- package/dist/cjs/loader/index.cjs +1 -0
- package/dist/cjs/mentions/index.cjs +1 -0
- package/dist/cjs/menu/index.cjs +1 -0
- package/dist/cjs/modal/index.cjs +1 -0
- package/dist/cjs/operation-button/index.cjs +1 -0
- package/dist/cjs/pagination/index.cjs +1 -0
- package/dist/cjs/permission-gate/index.cjs +1 -0
- package/dist/cjs/popconfirm/index.cjs +1 -0
- package/dist/cjs/popover/index.cjs +1 -0
- package/dist/cjs/progress/index.cjs +1 -0
- package/dist/cjs/qrcode/index.cjs +1 -0
- package/dist/cjs/radio/index.cjs +1 -0
- package/dist/cjs/rate/index.cjs +1 -0
- package/dist/cjs/result/index.cjs +1 -0
- package/dist/cjs/row/index.cjs +1 -0
- package/dist/cjs/scroll-area/index.cjs +1 -0
- package/dist/cjs/scroll-area/styles.cjs +1 -0
- package/dist/cjs/segmented/index.cjs +1 -0
- package/dist/cjs/select/hooks/index.cjs +1 -0
- package/dist/cjs/select/hooks/use-data-options-select.cjs +1 -0
- package/dist/cjs/select/index.cjs +1 -0
- package/dist/cjs/skeleton/index.cjs +1 -0
- package/dist/cjs/slider/index.cjs +1 -0
- package/dist/cjs/space/index.cjs +1 -0
- package/dist/cjs/space/space.cjs +1 -0
- package/dist/cjs/sparkles-text/index.cjs +1 -0
- package/dist/cjs/sparkles-text/sparkle.cjs +1 -0
- package/dist/cjs/spin/index.cjs +1 -0
- package/dist/cjs/split-text/index.cjs +1 -0
- package/dist/cjs/splitter/index.cjs +1 -0
- package/dist/cjs/stack/index.cjs +1 -0
- package/dist/cjs/statistic/index.cjs +1 -0
- package/dist/cjs/steps/index.cjs +1 -0
- package/dist/cjs/switch/index.cjs +1 -0
- package/dist/cjs/table/index.cjs +1 -0
- package/dist/cjs/table/use-pagination-props.cjs +1 -0
- package/dist/cjs/tabs/index.cjs +1 -0
- package/dist/cjs/tag/index.cjs +1 -0
- package/dist/cjs/time-picker/index.cjs +1 -0
- package/dist/cjs/timeline/index.cjs +1 -0
- package/dist/cjs/tooltip/index.cjs +1 -0
- package/dist/cjs/tour/index.cjs +1 -0
- package/dist/cjs/transfer/index.cjs +1 -0
- package/dist/cjs/tree/hooks/index.cjs +1 -0
- package/dist/cjs/tree/hooks/use-data-options-tree.cjs +1 -0
- package/dist/cjs/tree/index.cjs +1 -0
- package/dist/cjs/tree-select/hooks/index.cjs +1 -0
- package/dist/cjs/tree-select/hooks/use-data-options-tree-select.cjs +1 -0
- package/dist/cjs/tree-select/index.cjs +1 -0
- package/dist/cjs/typing-animation/index.cjs +1 -0
- package/dist/cjs/typography/index.cjs +1 -0
- package/dist/cjs/upload/index.cjs +1 -0
- package/dist/cjs/watermark/index.cjs +1 -0
- package/dist/es/_base/constants/breakpoints.js +13 -0
- package/dist/es/_base/constants/common.js +31 -0
- package/dist/es/_base/constants/css-vars.js +677 -0
- package/dist/es/_base/constants/index.js +4 -0
- package/dist/es/_base/constants/theme.js +5 -0
- package/dist/es/_base/helpers/breakpoints.js +20 -0
- package/dist/es/_base/helpers/color.js +11 -0
- package/dist/es/_base/helpers/common.js +11 -0
- package/dist/es/_base/helpers/index.js +9 -0
- package/dist/es/_base/helpers/message.js +42 -0
- package/dist/es/_base/helpers/modal.js +76 -0
- package/dist/es/_base/helpers/notification.js +54 -0
- package/dist/es/_base/helpers/props.js +14 -0
- package/dist/es/_base/helpers/react.js +8 -0
- package/dist/es/_base/hooks/index.js +2 -0
- package/dist/es/_base/hooks/use-theme-tokens.js +9 -0
- package/dist/es/_base/index.js +13 -0
- package/dist/es/_base/styles/common.js +24 -0
- package/dist/es/_base/styles/index.js +1 -0
- package/dist/es/_base/types/breakpoints.js +1 -0
- package/dist/es/_base/types/common.js +1 -0
- package/dist/es/_base/types/index.js +1 -0
- package/dist/es/action-button/index.js +39 -0
- package/dist/es/action-button/use-action-button.js +42 -0
- package/dist/es/action-group/index.js +12 -0
- package/dist/es/action-group/use-action-group.js +10 -0
- package/dist/es/action-group/use-computed-action-buttons.js +35 -0
- package/dist/es/affix/index.js +3 -0
- package/dist/es/alert/index.js +3 -0
- package/dist/es/anchor/index.js +3 -0
- package/dist/es/auto-complete/index.js +3 -0
- package/dist/es/avatar/index.js +3 -0
- package/dist/es/badge/index.js +3 -0
- package/dist/es/bool/index.js +69 -0
- package/dist/es/breadcrumb/index.js +3 -0
- package/dist/es/button/index.js +3 -0
- package/dist/es/calendar/index.js +3 -0
- package/dist/es/card/index.js +3 -0
- package/dist/es/carousel/index.js +3 -0
- package/dist/es/cascader/index.js +3 -0
- package/dist/es/center/index.js +16 -0
- package/dist/es/charts/chart.js +20 -0
- package/dist/es/charts/helpers/group.js +11 -0
- package/dist/es/charts/helpers/index.js +2 -0
- package/dist/es/charts/hooks/index.js +2 -0
- package/dist/es/charts/hooks/use-chart.js +109 -0
- package/dist/es/charts/index.js +4 -0
- package/dist/es/charts/themes/index.js +5 -0
- package/dist/es/charts/themes/walden-dark.js +296 -0
- package/dist/es/charts/themes/walden.js +279 -0
- package/dist/es/charts/themes/wonderland-dark.js +300 -0
- package/dist/es/charts/themes/wonderland.js +283 -0
- package/dist/es/checkbox/index.js +3 -0
- package/dist/es/code-highlighter/index.js +41 -0
- package/dist/es/col/index.js +3 -0
- package/dist/es/collapse/index.js +3 -0
- package/dist/es/color-picker/index.js +3 -0
- package/dist/es/compact/index.js +6 -0
- package/dist/es/config-provider/app.js +18 -0
- package/dist/es/config-provider/constants.js +26 -0
- package/dist/es/config-provider/context-holder.js +20 -0
- package/dist/es/config-provider/css-vars.js +67 -0
- package/dist/es/config-provider/dark-mode-context.js +9 -0
- package/dist/es/config-provider/error-fallback.js +49 -0
- package/dist/es/config-provider/global-style.js +9 -0
- package/dist/es/config-provider/index.js +69 -0
- package/dist/es/config-provider/theme-config.js +98 -0
- package/dist/es/config-provider/use-config-provider.js +29 -0
- package/dist/es/date-picker/index.js +3 -0
- package/dist/es/descriptions/index.js +3 -0
- package/dist/es/divider/index.js +3 -0
- package/dist/es/drawer/index.js +3 -0
- package/dist/es/dropdown/index.js +3 -0
- package/dist/es/dynamic-icon/index.js +45 -0
- package/dist/es/dynamic-icon/placeholder-icon.js +23 -0
- package/dist/es/dynamic-icon/unknown-icon.js +58 -0
- package/dist/es/empty/empty.js +12 -0
- package/dist/es/empty/index.js +2 -0
- package/dist/es/flex/index.js +3 -0
- package/dist/es/flip-text/index.js +53 -0
- package/dist/es/float-button/index.js +3 -0
- package/dist/es/form/components/form.js +38 -0
- package/dist/es/form/components/index.js +12 -0
- package/dist/es/form/components/reset-button.js +25 -0
- package/dist/es/form/components/submit-button.js +26 -0
- package/dist/es/form/contexts/form-context.js +6 -0
- package/dist/es/form/contexts/form-layout.js +14 -0
- package/dist/es/form/contexts/index.js +3 -0
- package/dist/es/form/fields/auto-complete/index.js +25 -0
- package/dist/es/form/fields/bool/index.js +19 -0
- package/dist/es/form/fields/cascader/index.js +21 -0
- package/dist/es/form/fields/checkbox/index.js +31 -0
- package/dist/es/form/fields/color-picker/index.js +19 -0
- package/dist/es/form/fields/date-picker/index.js +21 -0
- package/dist/es/form/fields/date-range-picker/index.js +21 -0
- package/dist/es/form/fields/index.js +49 -0
- package/dist/es/form/fields/input/index.js +24 -0
- package/dist/es/form/fields/input-number/index.js +22 -0
- package/dist/es/form/fields/mentions/index.js +22 -0
- package/dist/es/form/fields/password/index.js +24 -0
- package/dist/es/form/fields/radio/index.js +22 -0
- package/dist/es/form/fields/rate/index.js +20 -0
- package/dist/es/form/fields/select/index.js +20 -0
- package/dist/es/form/fields/slider/index.js +19 -0
- package/dist/es/form/fields/textarea/index.js +24 -0
- package/dist/es/form/fields/time-picker/index.js +21 -0
- package/dist/es/form/fields/time-range-picker/index.js +21 -0
- package/dist/es/form/fields/transfer/index.js +21 -0
- package/dist/es/form/fields/tree-select/index.js +19 -0
- package/dist/es/form/fields/upload/index.js +37 -0
- package/dist/es/form/form.js +14 -0
- package/dist/es/form/helpers/index.js +2 -0
- package/dist/es/form/helpers/with-form-item.js +33 -0
- package/dist/es/form/hooks/use-form-item-props.js +21 -0
- package/dist/es/form/hooks/use-label-width.js +12 -0
- package/dist/es/form/index.js +3 -0
- package/dist/es/form/use-form.js +16 -0
- package/dist/es/grid/context.js +11 -0
- package/dist/es/grid/grid-item.js +28 -0
- package/dist/es/grid/hooks/index.js +7 -0
- package/dist/es/grid/hooks/use-container-breakpoints.js +16 -0
- package/dist/es/grid/hooks/use-container-width.js +26 -0
- package/dist/es/grid/hooks/use-grid-collapsed.js +12 -0
- package/dist/es/grid/hooks/use-normalized-gap.js +26 -0
- package/dist/es/grid/hooks/use-responsive-breakpoint.js +11 -0
- package/dist/es/grid/hooks/use-responsive-value.js +19 -0
- package/dist/es/grid/index.js +97 -0
- package/dist/es/grid/styles.js +22 -0
- package/dist/es/group/index.js +16 -0
- package/dist/es/icon/index.js +33 -0
- package/dist/es/icon-button/index.js +31 -0
- package/dist/es/image/index.js +3 -0
- package/dist/es/index.js +109 -0
- package/dist/es/input/index.js +3 -0
- package/dist/es/input-number/index.js +3 -0
- package/dist/es/keyboard/index.js +39 -0
- package/dist/es/list/index.js +3 -0
- package/dist/es/loader/index.js +30 -0
- package/dist/es/mentions/index.js +3 -0
- package/dist/es/menu/index.js +3 -0
- package/dist/es/modal/index.js +3 -0
- package/dist/es/operation-button/index.js +27 -0
- package/dist/es/pagination/index.js +3 -0
- package/dist/es/permission-gate/index.js +10 -0
- package/dist/es/popconfirm/index.js +3 -0
- package/dist/es/popover/index.js +3 -0
- package/dist/es/progress/index.js +3 -0
- package/dist/es/qrcode/index.js +3 -0
- package/dist/es/radio/index.js +3 -0
- package/dist/es/rate/index.js +3 -0
- package/dist/es/result/index.js +3 -0
- package/dist/es/row/index.js +3 -0
- package/dist/es/scroll-area/index.js +57 -0
- package/dist/es/scroll-area/styles.js +37 -0
- package/dist/es/segmented/index.js +3 -0
- package/dist/es/select/hooks/index.js +2 -0
- package/dist/es/select/hooks/use-data-options-select.js +47 -0
- package/dist/es/select/index.js +4 -0
- package/dist/es/skeleton/index.js +3 -0
- package/dist/es/slider/index.js +3 -0
- package/dist/es/space/index.js +2 -0
- package/dist/es/space/space.js +13 -0
- package/dist/es/sparkles-text/index.js +53 -0
- package/dist/es/sparkles-text/sparkle.js +57 -0
- package/dist/es/spin/index.js +3 -0
- package/dist/es/split-text/index.js +151 -0
- package/dist/es/splitter/index.js +3 -0
- package/dist/es/stack/index.js +15 -0
- package/dist/es/statistic/index.js +3 -0
- package/dist/es/steps/index.js +3 -0
- package/dist/es/switch/index.js +3 -0
- package/dist/es/table/index.js +47 -0
- package/dist/es/table/use-pagination-props.js +50 -0
- package/dist/es/tabs/index.js +3 -0
- package/dist/es/tag/index.js +3 -0
- package/dist/es/time-picker/index.js +3 -0
- package/dist/es/timeline/index.js +3 -0
- package/dist/es/tooltip/index.js +3 -0
- package/dist/es/tour/index.js +3 -0
- package/dist/es/transfer/index.js +3 -0
- package/dist/es/tree/hooks/index.js +2 -0
- package/dist/es/tree/hooks/use-data-options-tree.js +40 -0
- package/dist/es/tree/index.js +4 -0
- package/dist/es/tree-select/hooks/index.js +2 -0
- package/dist/es/tree-select/hooks/use-data-options-tree-select.js +49 -0
- package/dist/es/tree-select/index.js +4 -0
- package/dist/es/typing-animation/index.js +46 -0
- package/dist/es/typography/index.js +6 -0
- package/dist/es/upload/index.js +62 -0
- package/dist/es/watermark/index.js +3 -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/package.json +85 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useFieldContext as e } from "../contexts/form-context.js";
|
|
3
|
+
import { useFormItemProps as t } from "../hooks/use-form-item-props.js";
|
|
4
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { Form as r } from "antd";
|
|
6
|
+
//#region src/form/helpers/with-form-item.tsx
|
|
7
|
+
function i(e, t) {
|
|
8
|
+
if (e) return "validating";
|
|
9
|
+
if (!t) return "error";
|
|
10
|
+
}
|
|
11
|
+
function a(a, o) {
|
|
12
|
+
function s({ layout: a, label: s, labelAlign: c, labelWidth: l, extra: u, noWrapper: d, required: f, ...p }) {
|
|
13
|
+
let m = t({
|
|
14
|
+
layout: a,
|
|
15
|
+
label: s,
|
|
16
|
+
labelAlign: c,
|
|
17
|
+
labelWidth: l,
|
|
18
|
+
extra: u,
|
|
19
|
+
required: f,
|
|
20
|
+
noWrapper: d
|
|
21
|
+
}), { state: { meta: { errors: h, isValid: g, isValidating: _ } } } = e(), v = h.length > 0 ? h[0].message : null;
|
|
22
|
+
return /* @__PURE__ */ n(r.Item, {
|
|
23
|
+
...m,
|
|
24
|
+
hasFeedback: _,
|
|
25
|
+
help: v,
|
|
26
|
+
validateStatus: i(_, g),
|
|
27
|
+
children: /* @__PURE__ */ n(o, { ...p })
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return s.displayName = a, s;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { a as withFormItem };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useFormLayout as e } from "../contexts/form-layout.js";
|
|
3
|
+
import { useLabelWidth as t } from "./use-label-width.js";
|
|
4
|
+
import { useMemo as n } from "react";
|
|
5
|
+
//#region src/form/hooks/use-form-item-props.ts
|
|
6
|
+
function r(r) {
|
|
7
|
+
let { layout: i, label: a, labelAlign: o, labelWidth: s, extra: c, noWrapper: l, required: u } = r, d = e(), f = i ?? d.layout, p = t(f, s ?? d.labelWidth), m = n(() => {
|
|
8
|
+
if (!(f === "vertical" || !p)) return { flex: `0 0 ${p}px` };
|
|
9
|
+
}, [p, f]);
|
|
10
|
+
return {
|
|
11
|
+
layout: f,
|
|
12
|
+
label: a,
|
|
13
|
+
labelAlign: o ?? d.labelAlign,
|
|
14
|
+
labelCol: m,
|
|
15
|
+
extra: c,
|
|
16
|
+
noStyle: l,
|
|
17
|
+
required: u
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { r as useFormItemProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { showWarningMessage as e } from "../../_base/helpers/message.js";
|
|
3
|
+
import { useMemo as t } from "react";
|
|
4
|
+
//#region src/form/hooks/use-label-width.ts
|
|
5
|
+
var n = 60, r = 120;
|
|
6
|
+
function i(i, a) {
|
|
7
|
+
return t(() => {
|
|
8
|
+
if (!(i === "vertical" || !a)) return (a < n || a > r) && e(`The labelWidth of Form component must be between ${n} and ${r}.`), Math.min(Math.max(a, n), r);
|
|
9
|
+
}, [i, a]);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { i as useLabelWidth };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useAppForm as e } from "./form.js";
|
|
3
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { useMemo as n } from "react";
|
|
5
|
+
//#region src/form/use-form.tsx
|
|
6
|
+
function r(r) {
|
|
7
|
+
let i = e(r);
|
|
8
|
+
return n(() => {
|
|
9
|
+
let { AppForm: e, Form: n } = i, r = (r) => /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t(n, { ...r }) });
|
|
10
|
+
return new Proxy(i, { get(e, t, n) {
|
|
11
|
+
return t === "Form" ? r : Reflect.get(e, t, n);
|
|
12
|
+
} });
|
|
13
|
+
}, [i]);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as useForm };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { createContext as e, use as t } from "react";
|
|
3
|
+
//#region src/grid/context.ts
|
|
4
|
+
var n = e(null), r = n.Provider;
|
|
5
|
+
function i() {
|
|
6
|
+
let e = t(n);
|
|
7
|
+
if (!e) throw Error("GridItem must be used as direct child of Grid");
|
|
8
|
+
return e;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { r as GridContextProvider, i as useGridContext };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useGridContext as e } from "./context.js";
|
|
3
|
+
import { gridItem as t } from "./styles.js";
|
|
4
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { useMemo as r } from "react";
|
|
6
|
+
function i({ span: i = 1, offset: a = 0, suffix: o = !1, style: s, ...c }) {
|
|
7
|
+
let { gridColumns: l } = e(), u = r(() => {
|
|
8
|
+
let e = i, t = a;
|
|
9
|
+
return {
|
|
10
|
+
"--vef-grid-item-column": o ? `${l + 1 - e} / span ${e}` : `span ${e}`,
|
|
11
|
+
...t > 0 && !o ? { "--vef-grid-item-margin-left": `calc(100% * ${t} / ${e})` } : {},
|
|
12
|
+
...s
|
|
13
|
+
};
|
|
14
|
+
}, [
|
|
15
|
+
i,
|
|
16
|
+
a,
|
|
17
|
+
o,
|
|
18
|
+
l,
|
|
19
|
+
s
|
|
20
|
+
]);
|
|
21
|
+
return /* @__PURE__ */ n("div", {
|
|
22
|
+
...c,
|
|
23
|
+
css: t,
|
|
24
|
+
style: u
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { i as GridItem };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import "./use-container-breakpoints.js";
|
|
3
|
+
import "./use-container-width.js";
|
|
4
|
+
import "./use-grid-collapsed.js";
|
|
5
|
+
import "./use-normalized-gap.js";
|
|
6
|
+
import "./use-responsive-breakpoint.js";
|
|
7
|
+
import "./use-responsive-value.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useMemo as e } from "react";
|
|
3
|
+
//#region src/grid/hooks/use-container-breakpoints.ts
|
|
4
|
+
function t(t) {
|
|
5
|
+
return e(() => ({
|
|
6
|
+
xxs: t,
|
|
7
|
+
xs: t * 2,
|
|
8
|
+
sm: t * 3,
|
|
9
|
+
md: t * 4,
|
|
10
|
+
lg: t * 5,
|
|
11
|
+
xl: t * 6,
|
|
12
|
+
xxl: t * 7
|
|
13
|
+
}), [t]);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as useContainerBreakpoints };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
3
|
+
import { useIsomorphicEffect as r } from "@vef-framework-react/hooks";
|
|
4
|
+
//#region src/grid/hooks/use-container-width.ts
|
|
5
|
+
function i() {
|
|
6
|
+
let i = t(0), a = t(null), [o, s] = n(0);
|
|
7
|
+
return r(() => {
|
|
8
|
+
a.current && s(a.current.getBoundingClientRect().width);
|
|
9
|
+
}, []), e(() => {
|
|
10
|
+
if (a.current) {
|
|
11
|
+
let e = new ResizeObserver(([e]) => {
|
|
12
|
+
e && (i.current && cancelAnimationFrame(i.current), i.current = requestAnimationFrame(() => {
|
|
13
|
+
s(e.contentBoxSize.at(0)?.inlineSize ?? e.contentRect.width);
|
|
14
|
+
}));
|
|
15
|
+
});
|
|
16
|
+
return e.observe(a.current, { box: "content-box" }), () => {
|
|
17
|
+
e.disconnect(), i.current && cancelAnimationFrame(i.current);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}, []), {
|
|
21
|
+
containerWidth: o,
|
|
22
|
+
containerRef: a
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { i as useContainerWidth };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useGridContext as e } from "../context.js";
|
|
3
|
+
//#region src/grid/hooks/use-grid-collapsed.ts
|
|
4
|
+
function t() {
|
|
5
|
+
let { isCollapsed: t, setCollapsed: n } = e();
|
|
6
|
+
return {
|
|
7
|
+
isCollapsed: t,
|
|
8
|
+
setCollapsed: n
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as useGridCollapsed };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useThemeTokens as e } from "../../_base/hooks/use-theme-tokens.js";
|
|
3
|
+
import { isNumber as t, isString as n } from "@vef-framework-react/shared";
|
|
4
|
+
import { useMemo as r } from "react";
|
|
5
|
+
//#region src/grid/hooks/use-normalized-gap.ts
|
|
6
|
+
function i([t, n]) {
|
|
7
|
+
let i = e();
|
|
8
|
+
return r(() => [a(t, i), a(n, i)], [
|
|
9
|
+
n,
|
|
10
|
+
t,
|
|
11
|
+
i
|
|
12
|
+
]);
|
|
13
|
+
}
|
|
14
|
+
function a(e, { margin: r, marginSM: i, marginXS: a, marginMD: o, marginLG: s }) {
|
|
15
|
+
if (t(e)) return e;
|
|
16
|
+
if (n(e)) switch (e) {
|
|
17
|
+
case "extra-small": return a;
|
|
18
|
+
case "small": return i;
|
|
19
|
+
case "medium": return r;
|
|
20
|
+
case "large": return o;
|
|
21
|
+
case "extra-large": return s;
|
|
22
|
+
}
|
|
23
|
+
return 0;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { i as useNormalizedGap };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { useMemo as e } from "react";
|
|
3
|
+
//#region src/grid/hooks/use-responsive-breakpoint.ts
|
|
4
|
+
function t(t, n) {
|
|
5
|
+
return e(() => {
|
|
6
|
+
for (let [e, r] of Object.entries(t)) if (n <= r) return e;
|
|
7
|
+
return "xxl";
|
|
8
|
+
}, [n, t]);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as useResponsiveBreakpoint };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { breakpoints as e } from "../../_base/constants/breakpoints.js";
|
|
3
|
+
import { isPlainObject as t } from "@vef-framework-react/shared";
|
|
4
|
+
import "react";
|
|
5
|
+
function n(n, r) {
|
|
6
|
+
if (t(n)) {
|
|
7
|
+
let t = n[r];
|
|
8
|
+
if (t) return t;
|
|
9
|
+
let i = Object.keys(e), a = i.indexOf(r);
|
|
10
|
+
for (; a--;) {
|
|
11
|
+
let e = n[i[a]];
|
|
12
|
+
if (e) return e;
|
|
13
|
+
}
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
return n;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { n as getResponsiveValue };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { GridContextProvider as e } from "./context.js";
|
|
3
|
+
import { grid as t } from "./styles.js";
|
|
4
|
+
import { GridItem as n } from "./grid-item.js";
|
|
5
|
+
import { useContainerBreakpoints as r } from "./hooks/use-container-breakpoints.js";
|
|
6
|
+
import { useContainerWidth as i } from "./hooks/use-container-width.js";
|
|
7
|
+
import "./hooks/use-grid-collapsed.js";
|
|
8
|
+
import { useNormalizedGap as a } from "./hooks/use-normalized-gap.js";
|
|
9
|
+
import { useResponsiveBreakpoint as o } from "./hooks/use-responsive-breakpoint.js";
|
|
10
|
+
import { getResponsiveValue as s } from "./hooks/use-responsive-value.js";
|
|
11
|
+
import { jsx as c } from "@emotion/react/jsx-runtime";
|
|
12
|
+
import { Children as l, cloneElement as u, isValidElement as d, useCallback as f, useMemo as p, useState as m } from "react";
|
|
13
|
+
import { useMergedRef as h } from "@vef-framework-react/hooks";
|
|
14
|
+
import { clsx as g } from "@vef-framework-react/core";
|
|
15
|
+
//#region src/grid/index.tsx
|
|
16
|
+
function _(e, t, r, i, a) {
|
|
17
|
+
let o = [];
|
|
18
|
+
l.forEach(e, (e) => {
|
|
19
|
+
if (!d(e) || e.type !== n) return;
|
|
20
|
+
let t = e, r = t.props, i = s(r.span ?? 1, a) ?? 1;
|
|
21
|
+
if (i === 0) return;
|
|
22
|
+
let c = s(r.offset ?? 0, a) ?? 0;
|
|
23
|
+
o.push({
|
|
24
|
+
element: t,
|
|
25
|
+
span: i,
|
|
26
|
+
offset: c
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
let c = 0, f = o.at(-1);
|
|
30
|
+
f?.element.props.suffix === !0 && (c = f.span);
|
|
31
|
+
let p = 0, m = !1;
|
|
32
|
+
return o.map(({ element: e, span: n, offset: a }, s) => {
|
|
33
|
+
let l = Math.min(n + a, t);
|
|
34
|
+
if (!m && r) {
|
|
35
|
+
let e = p % t;
|
|
36
|
+
l + e > t && (p += t - e), l + p + c > i * t ? m = !0 : p += l;
|
|
37
|
+
}
|
|
38
|
+
if (m) {
|
|
39
|
+
let { props: t } = e;
|
|
40
|
+
return u(e, {
|
|
41
|
+
className: s === o.length - 1 && t.suffix === !0 ? t.className : g(t.className, "hidden"),
|
|
42
|
+
span: n,
|
|
43
|
+
offset: a
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return u(e, {
|
|
47
|
+
key: e.key || s,
|
|
48
|
+
span: l,
|
|
49
|
+
offset: a
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function v({ baseWidth: n = 240, gap: s = 0, columnGap: l, rowGap: u, defaultIsCollapsed: d = !1, isCollapsed: g, collapsedRows: v = 1, onCollapseChange: y, style: b, children: x, ref: S, ...C }) {
|
|
54
|
+
let [w, T] = m(d), E = g !== void 0, D = E ? g : w, O = f((e) => {
|
|
55
|
+
let t = e || !D;
|
|
56
|
+
E || T(t), y?.(t);
|
|
57
|
+
}, [
|
|
58
|
+
E,
|
|
59
|
+
D,
|
|
60
|
+
y
|
|
61
|
+
]), { containerRef: k, containerWidth: A } = i(), j = h(k, S), M = o(r(n), A), [N, P] = a([u ?? s, l ?? s]), F = p(() => A > 24 * P ? {
|
|
62
|
+
"--vef-grid-row-gap": `${N}px`,
|
|
63
|
+
"--vef-grid-column-gap": `${P}px`,
|
|
64
|
+
...b
|
|
65
|
+
} : {
|
|
66
|
+
"--vef-grid-row-gap": `${N}px`,
|
|
67
|
+
"--vef-grid-column-gap": `${Math.floor(A / 24)}px`,
|
|
68
|
+
...b
|
|
69
|
+
}, [
|
|
70
|
+
A,
|
|
71
|
+
P,
|
|
72
|
+
N,
|
|
73
|
+
b
|
|
74
|
+
]), I = p(() => ({
|
|
75
|
+
gridColumns: 24,
|
|
76
|
+
isCollapsed: D,
|
|
77
|
+
setCollapsed: O
|
|
78
|
+
}), [D, O]), L = p(() => _(x, 24, D, v, M), [
|
|
79
|
+
x,
|
|
80
|
+
D,
|
|
81
|
+
v,
|
|
82
|
+
M
|
|
83
|
+
]);
|
|
84
|
+
return /* @__PURE__ */ c("div", {
|
|
85
|
+
...C,
|
|
86
|
+
ref: j,
|
|
87
|
+
css: t,
|
|
88
|
+
style: F,
|
|
89
|
+
children: /* @__PURE__ */ c(e, {
|
|
90
|
+
value: I,
|
|
91
|
+
children: L
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
v.Item = n;
|
|
96
|
+
//#endregion
|
|
97
|
+
export { v as Grid };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { css as e } from "@emotion/react";
|
|
3
|
+
//#region src/grid/styles.ts
|
|
4
|
+
function t() {
|
|
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).";
|
|
6
|
+
}
|
|
7
|
+
var n = /* @__PURE__ */ e({
|
|
8
|
+
display: "grid",
|
|
9
|
+
width: "100%",
|
|
10
|
+
gridTemplateColumns: "repeat(24, minmax(0, 1fr))",
|
|
11
|
+
columnGap: "var(--vef-grid-column-gap, 0)",
|
|
12
|
+
rowGap: "var(--vef-grid-row-gap, 0)"
|
|
13
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJb0IiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5cbmV4cG9ydCBjb25zdCBncmlkQ29sdW1ucyA9IDI0O1xuXG5leHBvcnQgY29uc3QgZ3JpZCA9IGNzcyh7XG4gIGRpc3BsYXk6IFwiZ3JpZFwiLFxuICB3aWR0aDogXCIxMDAlXCIsXG4gIGdyaWRUZW1wbGF0ZUNvbHVtbnM6IGByZXBlYXQoJHtncmlkQ29sdW1uc30sIG1pbm1heCgwLCAxZnIpKWAsXG4gIGNvbHVtbkdhcDogXCJ2YXIoLS12ZWYtZ3JpZC1jb2x1bW4tZ2FwLCAwKVwiLFxuICByb3dHYXA6IFwidmFyKC0tdmVmLWdyaWQtcm93LWdhcCwgMClcIlxufSk7XG5cbmV4cG9ydCBjb25zdCBncmlkSXRlbSA9IGNzcyh7XG4gIGdyaWRDb2x1bW46IFwidmFyKC0tdmVmLWdyaWQtaXRlbS1jb2x1bW4sIHNwYW4gMSlcIixcbiAgbWFyZ2luTGVmdDogXCJ2YXIoLS12ZWYtZ3JpZC1pdGVtLW1hcmdpbi1sZWZ0LCAwKVwiLFxuICBcIiYuaGlkZGVuXCI6IHtcbiAgICBkaXNwbGF5OiBcIm5vbmVcIlxuICB9XG59KTtcbiJdfQ== */"), r = process.env.NODE_ENV === "production" ? {
|
|
14
|
+
name: "6308ym",
|
|
15
|
+
styles: "grid-column:var(--vef-grid-item-column, span 1);margin-left:var(--vef-grid-item-margin-left, 0);&.hidden{display:none;}"
|
|
16
|
+
} : {
|
|
17
|
+
name: "6308ym",
|
|
18
|
+
styles: "grid-column:var(--vef-grid-item-column, span 1);margin-left:var(--vef-grid-item-margin-left, 0);&.hidden{display:none;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZd0IiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5cbmV4cG9ydCBjb25zdCBncmlkQ29sdW1ucyA9IDI0O1xuXG5leHBvcnQgY29uc3QgZ3JpZCA9IGNzcyh7XG4gIGRpc3BsYXk6IFwiZ3JpZFwiLFxuICB3aWR0aDogXCIxMDAlXCIsXG4gIGdyaWRUZW1wbGF0ZUNvbHVtbnM6IGByZXBlYXQoJHtncmlkQ29sdW1uc30sIG1pbm1heCgwLCAxZnIpKWAsXG4gIGNvbHVtbkdhcDogXCJ2YXIoLS12ZWYtZ3JpZC1jb2x1bW4tZ2FwLCAwKVwiLFxuICByb3dHYXA6IFwidmFyKC0tdmVmLWdyaWQtcm93LWdhcCwgMClcIlxufSk7XG5cbmV4cG9ydCBjb25zdCBncmlkSXRlbSA9IGNzcyh7XG4gIGdyaWRDb2x1bW46IFwidmFyKC0tdmVmLWdyaWQtaXRlbS1jb2x1bW4sIHNwYW4gMSlcIixcbiAgbWFyZ2luTGVmdDogXCJ2YXIoLS12ZWYtZ3JpZC1pdGVtLW1hcmdpbi1sZWZ0LCAwKVwiLFxuICBcIiYuaGlkZGVuXCI6IHtcbiAgICBkaXNwbGF5OiBcIm5vbmVcIlxuICB9XG59KTtcbiJdfQ== */",
|
|
19
|
+
toString: t
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { n as grid, r as gridItem };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { Flex as e } from "../flex/index.js";
|
|
3
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
+
//#region src/group/index.tsx
|
|
5
|
+
function n({ ref: n, children: r, gap: i = "small", align: a = "center", ...o }) {
|
|
6
|
+
return /* @__PURE__ */ t(e, {
|
|
7
|
+
ref: n,
|
|
8
|
+
align: a,
|
|
9
|
+
gap: i,
|
|
10
|
+
orientation: "horizontal",
|
|
11
|
+
...o,
|
|
12
|
+
children: r
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as Group };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import "@emotion/react";
|
|
4
|
+
import { Icon as t } from "lucide-react";
|
|
5
|
+
//#region src/icon/index.tsx
|
|
6
|
+
function n() {
|
|
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).";
|
|
8
|
+
}
|
|
9
|
+
var r = process.env.NODE_ENV === "production" ? {
|
|
10
|
+
name: "8sxzyi",
|
|
11
|
+
styles: "display:inline-flex;justify-content:center;align-items:center;color:inherit;font-style:normal;line-height:0;text-transform:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:-0.25em"
|
|
12
|
+
} : {
|
|
13
|
+
name: "8sxzyi",
|
|
14
|
+
styles: "display:inline-flex;justify-content:center;align-items:center;color:inherit;font-style:normal;line-height:0;text-transform:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:-0.25em/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLa0IiLCJmaWxlIjoiaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBJY29uUHJvcHMgfSBmcm9tIFwiLi9wcm9wc1wiO1xuXG5pbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IEljb24gYXMgTHVjaWRlSWNvbiB9IGZyb20gXCJsdWNpZGUtcmVhY3RcIjtcblxuY29uc3QgaWNvblN0eWxlID0gY3NzKHtcbiAgZGlzcGxheTogXCJpbmxpbmUtZmxleFwiLFxuICBqdXN0aWZ5Q29udGVudDogXCJjZW50ZXJcIixcbiAgYWxpZ25JdGVtczogXCJjZW50ZXJcIixcbiAgY29sb3I6IFwiaW5oZXJpdFwiLFxuICBmb250U3R5bGU6IFwibm9ybWFsXCIsXG4gIGxpbmVIZWlnaHQ6IDAsXG4gIHRleHRUcmFuc2Zvcm06IFwibm9uZVwiLFxuICB0ZXh0UmVuZGVyaW5nOiBcIm9wdGltaXplTGVnaWJpbGl0eVwiLFxuICBXZWJraXRGb250U21vb3RoaW5nOiBcImFudGlhbGlhc2VkXCIsXG4gIE1vek9zeEZvbnRTbW9vdGhpbmc6IFwiZ3JheXNjYWxlXCIsXG4gIHZlcnRpY2FsQWxpZ246IFwiLTAuMjVlbVwiXG59KTtcblxuZXhwb3J0IGZ1bmN0aW9uIEljb24oe1xuICBjb21wb25lbnQ6IENvbXBvbmVudCxcbiAgaWNvbk5vZGUsXG4gIGNsYXNzTmFtZSxcbiAgc3R5bGUsXG4gIC4uLnByb3BzXG59OiBJY29uUHJvcHMpIHtcbiAgcmV0dXJuIChcbiAgICA8c3BhblxuICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgICBjc3M9e2ljb25TdHlsZX1cbiAgICAgIHN0eWxlPXtzdHlsZX1cbiAgICA+XG4gICAgICB7XG4gICAgICAgIGljb25Ob2RlXG4gICAgICAgICAgPyA8THVjaWRlSWNvbiBpY29uTm9kZT17aWNvbk5vZGV9IHNpemU9XCIxLjJlbVwiIHsuLi5wcm9wc30gLz5cbiAgICAgICAgICA6IDxDb21wb25lbnQgc2l6ZT1cIjEuMmVtXCIgey4uLnByb3BzfSAvPlxuICAgICAgfVxuICAgIDwvc3Bhbj5cbiAgKTtcbn1cblxuZXhwb3J0IHsgdHlwZSBJY29uUHJvcHMgfSBmcm9tIFwiLi9wcm9wc1wiO1xuIl19 */",
|
|
15
|
+
toString: n
|
|
16
|
+
};
|
|
17
|
+
function i({ component: n, iconNode: i, className: a, style: o, ...s }) {
|
|
18
|
+
return /* @__PURE__ */ e("span", {
|
|
19
|
+
className: a,
|
|
20
|
+
css: r,
|
|
21
|
+
style: o,
|
|
22
|
+
children: i ? /* @__PURE__ */ e(t, {
|
|
23
|
+
iconNode: i,
|
|
24
|
+
size: "1.2em",
|
|
25
|
+
...s
|
|
26
|
+
}) : /* @__PURE__ */ e(n, {
|
|
27
|
+
size: "1.2em",
|
|
28
|
+
...s
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { i as Icon };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
|
+
import { Button as t } from "../button/index.js";
|
|
4
|
+
import { Tooltip as n } from "../tooltip/index.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { isNullish as i } from "@vef-framework-react/shared";
|
|
7
|
+
import { cloneElement as a } from "react";
|
|
8
|
+
import { css as o } from "@emotion/react";
|
|
9
|
+
//#region src/icon-button/index.tsx
|
|
10
|
+
var s = /* @__PURE__ */ o({
|
|
11
|
+
padding: 0,
|
|
12
|
+
width: e.controlHeight,
|
|
13
|
+
"&.vef-btn-sm": { width: e.controlHeightSm },
|
|
14
|
+
"&.vef-btn-lg": { width: e.controlHeightLg }
|
|
15
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFVb0IiLCJmaWxlIjoiaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBJY29uQnV0dG9uUHJvcHMgfSBmcm9tIFwiLi9wcm9wc1wiO1xuXG5pbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IGlzTnVsbGlzaCB9IGZyb20gXCJAdmVmLWZyYW1ld29yay1yZWFjdC9zaGFyZWRcIjtcbmltcG9ydCB7IGNsb25lRWxlbWVudCB9IGZyb20gXCJyZWFjdFwiO1xuXG5pbXBvcnQgeyBnbG9iYWxDc3NWYXJzIH0gZnJvbSBcIi4uL19iYXNlXCI7XG5pbXBvcnQgeyBCdXR0b24gfSBmcm9tIFwiLi4vYnV0dG9uXCI7XG5pbXBvcnQgeyBUb29sdGlwIH0gZnJvbSBcIi4uL3Rvb2x0aXBcIjtcblxuY29uc3QgYnV0dG9uU3R5bGUgPSBjc3Moe1xuICBwYWRkaW5nOiAwLFxuICB3aWR0aDogZ2xvYmFsQ3NzVmFycy5jb250cm9sSGVpZ2h0LFxuICBcIiYudmVmLWJ0bi1zbVwiOiB7XG4gICAgd2lkdGg6IGdsb2JhbENzc1ZhcnMuY29udHJvbEhlaWdodFNtXG4gIH0sXG4gIFwiJi52ZWYtYnRuLWxnXCI6IHtcbiAgICB3aWR0aDogZ2xvYmFsQ3NzVmFycy5jb250cm9sSGVpZ2h0TGdcbiAgfVxufSk7XG5cbmV4cG9ydCBmdW5jdGlvbiBJY29uQnV0dG9uKHtcbiAgaWNvbixcbiAgdGlwLFxuICB0aXBEZWxheSxcbiAgcGxhY2VtZW50LFxuICAuLi5wcm9wc1xufTogSWNvbkJ1dHRvblByb3BzKSB7XG4gIGNvbnN0IGJ1dHRvbk5vZGUgPSAoXG4gICAgPEJ1dHRvblxuICAgICAgY3NzPXtidXR0b25TdHlsZX1cbiAgICAgIHR5cGU9XCJ0ZXh0XCJcbiAgICAgIHsuLi5wcm9wc31cbiAgICA+XG4gICAgICB7XG4gICAgICAgIGNsb25lRWxlbWVudChpY29uLCB7XG4gICAgICAgICAgc2l6ZTogXCIxLjJlbVwiXG4gICAgICAgIH0pXG4gICAgICB9XG4gICAgPC9CdXR0b24+XG4gICk7XG5cbiAgcmV0dXJuIGlzTnVsbGlzaCh0aXApXG4gICAgPyBidXR0b25Ob2RlXG4gICAgOiAoXG4gICAgICAgIDxUb29sdGlwXG4gICAgICAgICAgbW91c2VFbnRlckRlbGF5PXt0aXBEZWxheX1cbiAgICAgICAgICBwbGFjZW1lbnQ9e3BsYWNlbWVudH1cbiAgICAgICAgICB0aXRsZT17dGlwfVxuICAgICAgICA+XG4gICAgICAgICAge2J1dHRvbk5vZGV9XG4gICAgICAgIDwvVG9vbHRpcD5cbiAgICAgICk7XG59XG5cbmV4cG9ydCB7IHR5cGUgSWNvbkJ1dHRvblByb3BzIH0gZnJvbSBcIi4vcHJvcHNcIjtcbiJdfQ== */");
|
|
16
|
+
function c({ icon: e, tip: o, tipDelay: c, placement: l, ...u }) {
|
|
17
|
+
let d = /* @__PURE__ */ r(t, {
|
|
18
|
+
css: s,
|
|
19
|
+
type: "text",
|
|
20
|
+
...u,
|
|
21
|
+
children: a(e, { size: "1.2em" })
|
|
22
|
+
});
|
|
23
|
+
return i(o) ? d : /* @__PURE__ */ r(n, {
|
|
24
|
+
mouseEnterDelay: c,
|
|
25
|
+
placement: l,
|
|
26
|
+
title: o,
|
|
27
|
+
children: d
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { c as IconButton };
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { breakpoints as e } from "./_base/constants/breakpoints.js";
|
|
3
|
+
import { colors as t, fullSizes as n, presetColors as r, semanticColors as i, semanticSceneIcons as a, semanticSceneLabels as o, semanticScenes as s, sizes as c } from "./_base/constants/common.js";
|
|
4
|
+
import { globalCssVars as l } from "./_base/constants/css-vars.js";
|
|
5
|
+
import { resolveBreakpointValue as u } from "./_base/helpers/breakpoints.js";
|
|
6
|
+
import { isPresetColor as d, isSemanticColor as f } from "./_base/helpers/color.js";
|
|
7
|
+
import { getSpacingValue as p, mapSize as m } from "./_base/helpers/common.js";
|
|
8
|
+
import { closeAllMessages as h, showErrorMessage as g, showInfoMessage as _, showLoadingMessage as v, showSuccessMessage as y, showWarningMessage as b } from "./_base/helpers/message.js";
|
|
9
|
+
import { showConfirm as x, showErrorAlert as S, showInfoAlert as C, showSuccessAlert as w, showWarningAlert as T } from "./_base/helpers/modal.js";
|
|
10
|
+
import { closeAllNotifications as E, showErrorNotification as D, showInfoNotification as O, showSuccessNotification as k, showWarningNotification as A } from "./_base/helpers/notification.js";
|
|
11
|
+
import { isFragment as j } from "./_base/helpers/react.js";
|
|
12
|
+
import { useThemeTokens as M } from "./_base/hooks/use-theme-tokens.js";
|
|
13
|
+
import { Button as N } from "./button/index.js";
|
|
14
|
+
import { Icon as P } from "./icon/index.js";
|
|
15
|
+
import { Popconfirm as F } from "./popconfirm/index.js";
|
|
16
|
+
import { ActionButton as I } from "./action-button/index.js";
|
|
17
|
+
import { Flex as L } from "./flex/index.js";
|
|
18
|
+
import { Group as R } from "./group/index.js";
|
|
19
|
+
import { ActionGroup as z } from "./action-group/index.js";
|
|
20
|
+
import { Affix as B } from "./affix/index.js";
|
|
21
|
+
import { Alert as V } from "./alert/index.js";
|
|
22
|
+
import { Anchor as H } from "./anchor/index.js";
|
|
23
|
+
import { AutoComplete as U } from "./auto-complete/index.js";
|
|
24
|
+
import { Avatar as W } from "./avatar/index.js";
|
|
25
|
+
import { Badge as G } from "./badge/index.js";
|
|
26
|
+
import { Checkbox as K } from "./checkbox/index.js";
|
|
27
|
+
import { Radio as q } from "./radio/index.js";
|
|
28
|
+
import { Switch as J } from "./switch/index.js";
|
|
29
|
+
import { Bool as Y } from "./bool/index.js";
|
|
30
|
+
import { Breadcrumb as X } from "./breadcrumb/index.js";
|
|
31
|
+
import { Calendar as Z } from "./calendar/index.js";
|
|
32
|
+
import { Card as Q } from "./card/index.js";
|
|
33
|
+
import { Carousel as $ } from "./carousel/index.js";
|
|
34
|
+
import { Cascader as ee } from "./cascader/index.js";
|
|
35
|
+
import { Center as te } from "./center/index.js";
|
|
36
|
+
import { useIsDarkMode as ne } from "./config-provider/dark-mode-context.js";
|
|
37
|
+
import { ConfigProvider as re } from "./config-provider/index.js";
|
|
38
|
+
import { useChart as ie } from "./charts/hooks/use-chart.js";
|
|
39
|
+
import { Chart as ae } from "./charts/chart.js";
|
|
40
|
+
import { connectCharts as oe, disconnectCharts as se } from "./charts/helpers/group.js";
|
|
41
|
+
import { CodeHighlighter as ce } from "./code-highlighter/index.js";
|
|
42
|
+
import { Col as le } from "./col/index.js";
|
|
43
|
+
import { Collapse as ue } from "./collapse/index.js";
|
|
44
|
+
import { ColorPicker as de } from "./color-picker/index.js";
|
|
45
|
+
import { Compact as fe } from "./compact/index.js";
|
|
46
|
+
import { DatePicker as pe } from "./date-picker/index.js";
|
|
47
|
+
import { Descriptions as me } from "./descriptions/index.js";
|
|
48
|
+
import { Divider as he } from "./divider/index.js";
|
|
49
|
+
import { Drawer as ge } from "./drawer/index.js";
|
|
50
|
+
import { Dropdown as _e } from "./dropdown/index.js";
|
|
51
|
+
import { DynamicIcon as ve } from "./dynamic-icon/index.js";
|
|
52
|
+
import ye from "./empty/empty.js";
|
|
53
|
+
import { FlipText as be } from "./flip-text/index.js";
|
|
54
|
+
import { FloatButton as xe } from "./float-button/index.js";
|
|
55
|
+
import { Input as Se } from "./input/index.js";
|
|
56
|
+
import { InputNumber as Ce } from "./input-number/index.js";
|
|
57
|
+
import { Mentions as we } from "./mentions/index.js";
|
|
58
|
+
import { Rate as Te } from "./rate/index.js";
|
|
59
|
+
import { Spin as Ee } from "./spin/index.js";
|
|
60
|
+
import { Loader as De } from "./loader/index.js";
|
|
61
|
+
import { useDataOptionsSelect as Oe } from "./select/hooks/use-data-options-select.js";
|
|
62
|
+
import { Select as ke } from "./select/index.js";
|
|
63
|
+
import { Slider as Ae } from "./slider/index.js";
|
|
64
|
+
import { TimePicker as je } from "./time-picker/index.js";
|
|
65
|
+
import { Transfer as Me } from "./transfer/index.js";
|
|
66
|
+
import { useDataOptionsTreeSelect as Ne } from "./tree-select/hooks/use-data-options-tree-select.js";
|
|
67
|
+
import { TreeSelect as Pe } from "./tree-select/index.js";
|
|
68
|
+
import { Image as Fe } from "./image/index.js";
|
|
69
|
+
import { Upload as Ie } from "./upload/index.js";
|
|
70
|
+
import { createFormOptions as Le, useFormContext as Re, useFormStore as ze, withFieldGroup as Be, withForm as Ve } from "./form/form.js";
|
|
71
|
+
import { useForm as He } from "./form/use-form.js";
|
|
72
|
+
import { useGridCollapsed as Ue } from "./grid/hooks/use-grid-collapsed.js";
|
|
73
|
+
import { Grid as We } from "./grid/index.js";
|
|
74
|
+
import { Tooltip as Ge } from "./tooltip/index.js";
|
|
75
|
+
import { IconButton as Ke } from "./icon-button/index.js";
|
|
76
|
+
import { Keyboard as qe } from "./keyboard/index.js";
|
|
77
|
+
import { List as Je } from "./list/index.js";
|
|
78
|
+
import { Menu as Ye } from "./menu/index.js";
|
|
79
|
+
import { Modal as Xe } from "./modal/index.js";
|
|
80
|
+
import { PermissionGate as Ze } from "./permission-gate/index.js";
|
|
81
|
+
import { OperationButton as Qe } from "./operation-button/index.js";
|
|
82
|
+
import { Pagination as $e } from "./pagination/index.js";
|
|
83
|
+
import { Popover as et } from "./popover/index.js";
|
|
84
|
+
import { Progress as tt } from "./progress/index.js";
|
|
85
|
+
import { QRCode as nt } from "./qrcode/index.js";
|
|
86
|
+
import { Result as rt } from "./result/index.js";
|
|
87
|
+
import { Row as it } from "./row/index.js";
|
|
88
|
+
import { ScrollArea as at } from "./scroll-area/index.js";
|
|
89
|
+
import { Segmented as ot } from "./segmented/index.js";
|
|
90
|
+
import { Skeleton as st } from "./skeleton/index.js";
|
|
91
|
+
import ct from "./space/space.js";
|
|
92
|
+
import { SparklesText as lt } from "./sparkles-text/index.js";
|
|
93
|
+
import { SplitText as ut } from "./split-text/index.js";
|
|
94
|
+
import { Splitter as dt } from "./splitter/index.js";
|
|
95
|
+
import { Stack as ft } from "./stack/index.js";
|
|
96
|
+
import { Statistic as pt } from "./statistic/index.js";
|
|
97
|
+
import { Steps as mt } from "./steps/index.js";
|
|
98
|
+
import { pageSizeOptions as ht, usePaginationProps as gt } from "./table/use-pagination-props.js";
|
|
99
|
+
import { Table as _t } from "./table/index.js";
|
|
100
|
+
import { Tabs as vt } from "./tabs/index.js";
|
|
101
|
+
import { Tag as yt } from "./tag/index.js";
|
|
102
|
+
import { Timeline as bt } from "./timeline/index.js";
|
|
103
|
+
import { Tour as xt } from "./tour/index.js";
|
|
104
|
+
import { useDataOptionsTree as St } from "./tree/hooks/use-data-options-tree.js";
|
|
105
|
+
import { Tree as Ct } from "./tree/index.js";
|
|
106
|
+
import { TypingAnimation as wt } from "./typing-animation/index.js";
|
|
107
|
+
import { Link as Tt, Paragraph as Et, Text as Dt, Title as Ot } from "./typography/index.js";
|
|
108
|
+
import { Watermark as kt } from "./watermark/index.js";
|
|
109
|
+
export { I as ActionButton, z as ActionGroup, B as Affix, V as Alert, H as Anchor, U as AutoComplete, W as Avatar, G as Badge, Y as Bool, X as Breadcrumb, N as Button, Z as Calendar, Q as Card, $ as Carousel, ee as Cascader, te as Center, ae as Chart, K as Checkbox, ce as CodeHighlighter, le as Col, ue as Collapse, de as ColorPicker, fe as Compact, re as ConfigProvider, pe as DatePicker, me as Descriptions, he as Divider, ge as Drawer, _e as Dropdown, ve as DynamicIcon, ye as Empty, L as Flex, be as FlipText, xe as FloatButton, We as Grid, R as Group, P as Icon, Ke as IconButton, Fe as Image, Se as Input, Ce as InputNumber, qe as Keyboard, Tt as Link, Je as List, De as Loader, we as Mentions, Ye as Menu, Xe as Modal, Qe as OperationButton, $e as Pagination, Et as Paragraph, Ze as PermissionGate, F as Popconfirm, et as Popover, tt as Progress, nt as QRCode, q as Radio, Te as Rate, rt as Result, it as Row, at as ScrollArea, ot as Segmented, ke as Select, st as Skeleton, Ae as Slider, ct as Space, lt as SparklesText, Ee as Spin, ut as SplitText, dt as Splitter, ft as Stack, pt as Statistic, mt as Steps, J as Switch, _t as Table, vt as Tabs, yt as Tag, Dt as Text, je as TimePicker, bt as Timeline, Ot as Title, Ge as Tooltip, xt as Tour, Me as Transfer, Ct as Tree, Pe as TreeSelect, wt as TypingAnimation, Ie as Upload, kt as Watermark, e as breakpoints, h as closeAllMessages, E as closeAllNotifications, t as colors, oe as connectCharts, Le as createFormOptions, se as disconnectCharts, n as fullSizes, p as getSpacingValue, l as globalCssVars, j as isFragment, d as isPresetColor, f as isSemanticColor, m as mapSize, ht as pageSizeOptions, r as presetColors, u as resolveBreakpointValue, i as semanticColors, a as semanticSceneIcons, o as semanticSceneLabels, s as semanticScenes, x as showConfirm, S as showErrorAlert, g as showErrorMessage, D as showErrorNotification, C as showInfoAlert, _ as showInfoMessage, O as showInfoNotification, v as showLoadingMessage, w as showSuccessAlert, y as showSuccessMessage, k as showSuccessNotification, T as showWarningAlert, b as showWarningMessage, A as showWarningNotification, c as sizes, ie as useChart, Oe as useDataOptionsSelect, St as useDataOptionsTree, Ne as useDataOptionsTreeSelect, He as useForm, Re as useFormContext, ze as useFormStore, Ue as useGridCollapsed, ne as useIsDarkMode, gt as usePaginationProps, M as useThemeTokens, Be as withFieldGroup, Ve as withForm };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.0 made by Venus | 2026-03-27T08:01:44.052Z */
|
|
2
|
+
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { useMemo as n } from "react";
|
|
5
|
+
import { css as r } from "@emotion/react";
|
|
6
|
+
//#region src/keyboard/index.tsx
|
|
7
|
+
var i = /* @__PURE__ */ r({
|
|
8
|
+
"--vef-keyboard-size": e.fontSize,
|
|
9
|
+
"--vef-keyboard-height": "1.6em",
|
|
10
|
+
fontFamily: e.fontFamilyCode,
|
|
11
|
+
fontWeight: "bold",
|
|
12
|
+
fontSize: "var(--vef-keyboard-size)",
|
|
13
|
+
lineHeight: 1,
|
|
14
|
+
color: e.colorTextLabel,
|
|
15
|
+
borderRadius: e.borderRadiusSm,
|
|
16
|
+
border: `${e.lineWidth} ${e.lineType}`,
|
|
17
|
+
borderBlockEndWidth: "3px",
|
|
18
|
+
borderColor: e.colorBorder,
|
|
19
|
+
backgroundColor: e.colorFillQuaternary,
|
|
20
|
+
unicodeBidi: "embed",
|
|
21
|
+
textAlign: "center",
|
|
22
|
+
paddingInline: "0.45em",
|
|
23
|
+
height: "var(--vef-keyboard-height)",
|
|
24
|
+
display: "inline-flex",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
justifyContent: "center"
|
|
27
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPc0IiLCJmaWxlIjoiaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBLZXlib2FyZFByb3BzIH0gZnJvbSBcIi4vcHJvcHNcIjtcblxuaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyB1c2VNZW1vIH0gZnJvbSBcInJlYWN0XCI7XG5cbmltcG9ydCB7IGdsb2JhbENzc1ZhcnMgfSBmcm9tIFwiLi4vX2Jhc2VcIjtcblxuY29uc3Qga2V5Ym9hcmRTdHlsZSA9IGNzcyh7XG4gIFwiLS12ZWYta2V5Ym9hcmQtc2l6ZVwiOiBnbG9iYWxDc3NWYXJzLmZvbnRTaXplLFxuICBcIi0tdmVmLWtleWJvYXJkLWhlaWdodFwiOiBcIjEuNmVtXCIsXG4gIGZvbnRGYW1pbHk6IGdsb2JhbENzc1ZhcnMuZm9udEZhbWlseUNvZGUsXG4gIGZvbnRXZWlnaHQ6IFwiYm9sZFwiLFxuICBmb250U2l6ZTogXCJ2YXIoLS12ZWYta2V5Ym9hcmQtc2l6ZSlcIixcbiAgbGluZUhlaWdodDogMSxcbiAgY29sb3I6IGdsb2JhbENzc1ZhcnMuY29sb3JUZXh0TGFiZWwsXG4gIGJvcmRlclJhZGl1czogZ2xvYmFsQ3NzVmFycy5ib3JkZXJSYWRpdXNTbSxcbiAgYm9yZGVyOiBgJHtnbG9iYWxDc3NWYXJzLmxpbmVXaWR0aH0gJHtnbG9iYWxDc3NWYXJzLmxpbmVUeXBlfWAsXG4gIGJvcmRlckJsb2NrRW5kV2lkdGg6IFwiM3B4XCIsXG4gIGJvcmRlckNvbG9yOiBnbG9iYWxDc3NWYXJzLmNvbG9yQm9yZGVyLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGdsb2JhbENzc1ZhcnMuY29sb3JGaWxsUXVhdGVybmFyeSxcbiAgdW5pY29kZUJpZGk6IFwiZW1iZWRcIixcbiAgdGV4dEFsaWduOiBcImNlbnRlclwiLFxuICBwYWRkaW5nSW5saW5lOiBcIjAuNDVlbVwiLFxuICBoZWlnaHQ6IFwidmFyKC0tdmVmLWtleWJvYXJkLWhlaWdodClcIixcbiAgZGlzcGxheTogXCJpbmxpbmUtZmxleFwiLFxuICBhbGlnbkl0ZW1zOiBcImNlbnRlclwiLFxuICBqdXN0aWZ5Q29udGVudDogXCJjZW50ZXJcIlxufSk7XG5cbmV4cG9ydCBmdW5jdGlvbiBLZXlib2FyZCh7XG4gIHNpemUgPSBcIm1lZGl1bVwiLFxuICBzdHlsZSxcbiAgLi4ucHJvcHNcbn06IEtleWJvYXJkUHJvcHMpIHtcbiAgY29uc3QgbWVyZ2VkU3R5bGUgPSB1c2VNZW1vKCgpID0+IHtcbiAgICByZXR1cm4ge1xuICAgICAgLi4uc3R5bGUsXG4gICAgICBcIi0tdmVmLWtleWJvYXJkLXNpemVcIjogc2l6ZSA9PT0gXCJzbWFsbFwiID8gZ2xvYmFsQ3NzVmFycy5mb250U2l6ZVNtIDogc2l6ZSA9PT0gXCJsYXJnZVwiID8gZ2xvYmFsQ3NzVmFycy5mb250U2l6ZUxnIDogZ2xvYmFsQ3NzVmFycy5mb250U2l6ZVxuICAgIH07XG4gIH0sIFtzaXplLCBzdHlsZV0pO1xuXG4gIHJldHVybiAoXG4gICAgPGtiZFxuICAgICAgY3NzPXtrZXlib2FyZFN0eWxlfVxuICAgICAgc3R5bGU9e21lcmdlZFN0eWxlfVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4gICk7XG59XG5cbmV4cG9ydCB7IHR5cGUgS2V5Ym9hcmRQcm9wcyB9IGZyb20gXCIuL3Byb3BzXCI7XG4iXX0= */");
|
|
28
|
+
function a({ size: r = "medium", style: a, ...o }) {
|
|
29
|
+
return /* @__PURE__ */ t("kbd", {
|
|
30
|
+
css: i,
|
|
31
|
+
style: n(() => ({
|
|
32
|
+
...a,
|
|
33
|
+
"--vef-keyboard-size": r === "small" ? e.fontSizeSm : r === "large" ? e.fontSizeLg : e.fontSize
|
|
34
|
+
}), [r, a]),
|
|
35
|
+
...o
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { a as Keyboard };
|