@vef-framework-react/components 2.1.3 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_base/constants/event.cjs +1 -0
- package/dist/cjs/_base/constants/index.cjs +1 -1
- package/dist/cjs/_base/constants/symbols.cjs +1 -0
- package/dist/cjs/_base/helpers/event.cjs +1 -0
- package/dist/cjs/_base/helpers/index.cjs +1 -1
- package/dist/cjs/_base/index.cjs +1 -1
- package/dist/cjs/charts/chart.cjs +1 -1
- package/dist/cjs/charts/hooks/use-chart.cjs +1 -1
- package/dist/cjs/config-provider/context-holder.cjs +1 -1
- package/dist/cjs/config-provider/use-config-provider.cjs +1 -1
- package/dist/cjs/crud/components/action-button-group.cjs +1 -0
- package/dist/cjs/crud/components/index.cjs +1 -0
- package/dist/cjs/crud/components/main.cjs +1 -0
- package/dist/cjs/crud/components/mutation-holder.cjs +1 -0
- package/dist/cjs/crud/components/operation-button-group.cjs +1 -0
- package/dist/cjs/crud/components/scene-form.cjs +1 -0
- package/dist/cjs/crud/components/selection-indicator.cjs +1 -0
- package/dist/cjs/crud/components/toolbar-actions.cjs +1 -0
- package/dist/cjs/crud/components/toolbar.cjs +1 -0
- package/dist/cjs/crud/event.cjs +1 -0
- package/dist/cjs/crud/helpers.cjs +1 -0
- package/dist/cjs/crud/hooks/index.cjs +1 -0
- package/dist/cjs/crud/hooks/use-query-observer.cjs +1 -0
- package/dist/cjs/crud/hooks/use-search-values.cjs +1 -0
- package/dist/cjs/crud/hooks/use-selected-rows.cjs +1 -0
- package/dist/cjs/crud/index.cjs +1 -0
- package/dist/cjs/crud/store.cjs +1 -0
- package/dist/cjs/crud/styles.cjs +1 -0
- package/dist/cjs/crud-page/index.cjs +1 -0
- package/dist/cjs/flex-card/index.cjs +1 -0
- package/dist/cjs/flex-card/styles.cjs +1 -0
- package/dist/cjs/form-drawer/components/form-actions.cjs +1 -0
- package/dist/cjs/form-drawer/components/index.cjs +1 -0
- package/dist/cjs/form-drawer/index.cjs +1 -0
- package/dist/cjs/form-modal/components/draggable-wrapper.cjs +1 -0
- package/dist/cjs/form-modal/components/form-actions.cjs +1 -0
- package/dist/cjs/form-modal/components/index.cjs +1 -0
- package/dist/cjs/form-modal/index.cjs +1 -0
- package/dist/cjs/grid/hooks/use-container-width.cjs +1 -1
- package/dist/cjs/grid/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/logo-icon/index.cjs +1 -0
- package/dist/cjs/page/components/aside-panel.cjs +1 -0
- package/dist/cjs/page/components/index.cjs +1 -0
- package/dist/cjs/page/components/resize-handle.cjs +1 -0
- package/dist/cjs/page/components/scroll-content.cjs +1 -0
- package/dist/cjs/page/hooks/index.cjs +1 -0
- package/dist/cjs/page/hooks/use-page-key.cjs +1 -0
- package/dist/cjs/page/hooks/use-resize.cjs +1 -0
- package/dist/cjs/page/index.cjs +1 -0
- package/dist/cjs/page/styles.cjs +1 -0
- package/dist/cjs/page/viewport-context.cjs +1 -0
- package/dist/cjs/pro-search/components/advanced-search-toggler.cjs +1 -0
- package/dist/cjs/pro-search/components/advanced-search.cjs +1 -0
- package/dist/cjs/pro-search/components/index.cjs +1 -0
- package/dist/cjs/pro-search/components/search-actions.cjs +1 -0
- package/dist/cjs/pro-search/index.cjs +1 -0
- package/dist/cjs/pro-search/styles.cjs +1 -0
- package/dist/cjs/pro-table/components/column-setting-item.cjs +1 -0
- package/dist/cjs/pro-table/components/column-settings-panel.cjs +1 -0
- package/dist/cjs/pro-table/components/column-settings.cjs +1 -0
- package/dist/cjs/pro-table/components/index.cjs +1 -0
- package/dist/cjs/pro-table/components/operation-button-group.cjs +1 -0
- package/dist/cjs/pro-table/components/ref.cjs +1 -0
- package/dist/cjs/pro-table/components/table-subscriber.cjs +1 -0
- package/dist/cjs/pro-table/components/table-summary.cjs +1 -0
- package/dist/cjs/pro-table/components/table-title.cjs +1 -0
- package/dist/cjs/pro-table/components/table.cjs +1 -0
- package/dist/cjs/pro-table/components/width-popover.cjs +1 -0
- package/dist/cjs/pro-table/context.cjs +1 -0
- package/dist/cjs/pro-table/event.cjs +1 -0
- package/dist/cjs/pro-table/hooks/index.cjs +1 -0
- package/dist/cjs/pro-table/hooks/use-column-settings-persistence.cjs +1 -0
- package/dist/cjs/pro-table/hooks/use-row-selection.cjs +1 -0
- package/dist/cjs/pro-table/hooks/use-table-columns.cjs +1 -0
- package/dist/cjs/pro-table/index.cjs +1 -0
- package/dist/cjs/pro-table/store.cjs +1 -0
- package/dist/cjs/select/hooks/use-data-options-select.cjs +1 -1
- package/dist/cjs/table/index.cjs +1 -1
- package/dist/cjs/tree/hooks/use-data-options-tree.cjs +1 -1
- package/dist/cjs/tree-select/hooks/use-data-options-tree-select.cjs +1 -1
- package/dist/es/_base/constants/breakpoints.js +1 -1
- package/dist/es/_base/constants/common.js +1 -1
- package/dist/es/_base/constants/css-vars.js +1 -1
- package/dist/es/_base/constants/event.js +5 -0
- package/dist/es/_base/constants/index.js +3 -1
- package/dist/es/_base/constants/symbols.js +5 -0
- package/dist/es/_base/helpers/breakpoints.js +1 -1
- package/dist/es/_base/helpers/color.js +1 -1
- package/dist/es/_base/helpers/common.js +1 -1
- package/dist/es/_base/helpers/event.js +14 -0
- package/dist/es/_base/helpers/index.js +2 -1
- package/dist/es/_base/helpers/message.js +1 -1
- package/dist/es/_base/helpers/modal.js +1 -1
- package/dist/es/_base/helpers/notification.js +1 -1
- package/dist/es/_base/helpers/props.js +1 -1
- package/dist/es/_base/helpers/react.js +1 -1
- package/dist/es/_base/hooks/index.js +1 -1
- package/dist/es/_base/hooks/use-theme-tokens.js +1 -1
- package/dist/es/_base/index.js +4 -1
- package/dist/es/_base/styles/common.js +1 -1
- package/dist/es/_base/styles/index.js +1 -1
- 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 -1
- package/dist/es/action-button/index.js +1 -1
- package/dist/es/action-button/use-action-button.js +1 -1
- package/dist/es/action-group/index.js +1 -1
- package/dist/es/action-group/use-action-group.js +1 -1
- package/dist/es/action-group/use-computed-action-buttons.js +1 -1
- package/dist/es/affix/index.js +1 -1
- package/dist/es/alert/index.js +1 -1
- package/dist/es/anchor/index.js +1 -1
- package/dist/es/auto-complete/index.js +1 -1
- package/dist/es/avatar/index.js +1 -1
- package/dist/es/badge/index.js +1 -1
- package/dist/es/bool/index.js +1 -1
- package/dist/es/breadcrumb/index.js +1 -1
- package/dist/es/button/index.js +1 -1
- package/dist/es/calendar/index.js +1 -1
- package/dist/es/card/index.js +1 -1
- package/dist/es/carousel/index.js +1 -1
- package/dist/es/cascader/index.js +1 -1
- package/dist/es/center/index.js +1 -1
- package/dist/es/charts/chart.js +6 -6
- package/dist/es/charts/helpers/group.js +1 -1
- package/dist/es/charts/helpers/index.js +1 -1
- package/dist/es/charts/hooks/index.js +1 -1
- package/dist/es/charts/hooks/use-chart.js +11 -11
- package/dist/es/charts/index.js +1 -1
- package/dist/es/charts/themes/index.js +1 -1
- package/dist/es/charts/themes/walden-dark.js +1 -1
- package/dist/es/charts/themes/walden.js +1 -1
- package/dist/es/charts/themes/wonderland-dark.js +1 -1
- package/dist/es/charts/themes/wonderland.js +1 -1
- package/dist/es/checkbox/index.js +1 -1
- package/dist/es/code-highlighter/index.js +1 -1
- package/dist/es/col/index.js +1 -1
- package/dist/es/collapse/index.js +1 -1
- package/dist/es/color-picker/index.js +1 -1
- package/dist/es/compact/index.js +1 -1
- package/dist/es/config-provider/app.js +1 -1
- package/dist/es/config-provider/constants.js +1 -1
- package/dist/es/config-provider/context-holder.js +5 -5
- package/dist/es/config-provider/css-vars.js +1 -1
- package/dist/es/config-provider/dark-mode-context.js +1 -1
- package/dist/es/config-provider/error-fallback.js +1 -1
- package/dist/es/config-provider/global-style.js +1 -1
- package/dist/es/config-provider/index.js +1 -1
- package/dist/es/config-provider/theme-config.js +1 -1
- package/dist/es/config-provider/use-config-provider.js +8 -8
- package/dist/es/crud/components/action-button-group.js +13 -0
- package/dist/es/crud/components/index.js +7 -0
- package/dist/es/crud/components/main.js +43 -0
- package/dist/es/crud/components/mutation-holder.js +32 -0
- package/dist/es/crud/components/operation-button-group.js +18 -0
- package/dist/es/crud/components/scene-form.js +48 -0
- package/dist/es/crud/components/selection-indicator.js +72 -0
- package/dist/es/crud/components/toolbar-actions.js +14 -0
- package/dist/es/crud/components/toolbar.js +29 -0
- package/dist/es/crud/event.js +8 -0
- package/dist/es/crud/helpers.js +18 -0
- package/dist/es/crud/hooks/index.js +4 -0
- package/dist/es/crud/hooks/use-query-observer.js +28 -0
- package/dist/es/crud/hooks/use-search-values.js +8 -0
- package/dist/es/crud/hooks/use-selected-rows.js +8 -0
- package/dist/es/crud/index.js +44 -0
- package/dist/es/crud/store.js +66 -0
- package/dist/es/crud/styles.js +20 -0
- package/dist/es/crud-page/index.js +23 -0
- package/dist/es/date-picker/index.js +1 -1
- package/dist/es/descriptions/index.js +1 -1
- package/dist/es/divider/index.js +1 -1
- package/dist/es/drawer/index.js +1 -1
- package/dist/es/dropdown/index.js +1 -1
- package/dist/es/dynamic-icon/index.js +1 -1
- package/dist/es/dynamic-icon/placeholder-icon.js +1 -1
- package/dist/es/dynamic-icon/unknown-icon.js +1 -1
- package/dist/es/empty/empty.js +1 -1
- package/dist/es/empty/index.js +1 -1
- package/dist/es/flex/index.js +1 -1
- package/dist/es/flex-card/index.js +14 -0
- package/dist/es/flex-card/styles.js +20 -0
- package/dist/es/flip-text/index.js +1 -1
- package/dist/es/float-button/index.js +1 -1
- package/dist/es/form/components/form.js +1 -1
- package/dist/es/form/components/index.js +1 -1
- package/dist/es/form/components/reset-button.js +1 -1
- package/dist/es/form/components/submit-button.js +1 -1
- package/dist/es/form/contexts/form-context.js +1 -1
- package/dist/es/form/contexts/form-layout.js +1 -1
- package/dist/es/form/contexts/index.js +1 -1
- package/dist/es/form/fields/auto-complete/index.js +1 -1
- package/dist/es/form/fields/bool/index.js +1 -1
- package/dist/es/form/fields/cascader/index.js +1 -1
- package/dist/es/form/fields/checkbox/index.js +1 -1
- package/dist/es/form/fields/color-picker/index.js +1 -1
- package/dist/es/form/fields/date-picker/index.js +8 -8
- package/dist/es/form/fields/date-range-picker/index.js +8 -8
- package/dist/es/form/fields/index.js +1 -1
- package/dist/es/form/fields/input/index.js +1 -1
- package/dist/es/form/fields/input-number/index.js +1 -1
- package/dist/es/form/fields/mentions/index.js +1 -1
- package/dist/es/form/fields/password/index.js +1 -1
- package/dist/es/form/fields/radio/index.js +1 -1
- package/dist/es/form/fields/rate/index.js +1 -1
- package/dist/es/form/fields/select/index.js +1 -1
- package/dist/es/form/fields/slider/index.js +8 -8
- package/dist/es/form/fields/textarea/index.js +1 -1
- package/dist/es/form/fields/time-picker/index.js +1 -1
- package/dist/es/form/fields/time-range-picker/index.js +1 -1
- package/dist/es/form/fields/transfer/index.js +1 -1
- package/dist/es/form/fields/tree-select/index.js +1 -1
- package/dist/es/form/fields/upload/index.js +1 -1
- package/dist/es/form/form.js +1 -1
- package/dist/es/form/helpers/index.js +1 -1
- package/dist/es/form/helpers/with-form-item.js +1 -1
- package/dist/es/form/hooks/use-form-item-props.js +1 -1
- package/dist/es/form/hooks/use-label-width.js +1 -1
- package/dist/es/form/index.js +1 -1
- package/dist/es/form/use-form.js +1 -1
- package/dist/es/form-drawer/components/form-actions.js +26 -0
- package/dist/es/form-drawer/components/index.js +2 -0
- package/dist/es/form-drawer/index.js +82 -0
- package/dist/es/form-modal/components/draggable-wrapper.js +52 -0
- package/dist/es/form-modal/components/form-actions.js +26 -0
- package/dist/es/form-modal/components/index.js +3 -0
- package/dist/es/form-modal/index.js +72 -0
- package/dist/es/grid/context.js +1 -1
- package/dist/es/grid/grid-item.js +1 -1
- package/dist/es/grid/hooks/index.js +1 -1
- package/dist/es/grid/hooks/use-container-breakpoints.js +1 -1
- package/dist/es/grid/hooks/use-container-width.js +6 -6
- package/dist/es/grid/hooks/use-grid-collapsed.js +1 -1
- package/dist/es/grid/hooks/use-normalized-gap.js +1 -1
- package/dist/es/grid/hooks/use-responsive-breakpoint.js +1 -1
- package/dist/es/grid/hooks/use-responsive-value.js +1 -1
- package/dist/es/grid/index.js +14 -14
- package/dist/es/grid/styles.js +1 -1
- package/dist/es/group/index.js +1 -1
- package/dist/es/icon/index.js +1 -1
- package/dist/es/icon-button/index.js +1 -1
- package/dist/es/image/index.js +1 -1
- package/dist/es/index.js +121 -106
- package/dist/es/input/index.js +1 -1
- package/dist/es/input-number/index.js +1 -1
- package/dist/es/keyboard/index.js +1 -1
- package/dist/es/list/index.js +1 -1
- package/dist/es/loader/index.js +1 -1
- package/dist/es/logo-icon/index.js +24 -0
- package/dist/es/mentions/index.js +1 -1
- package/dist/es/menu/index.js +1 -1
- package/dist/es/modal/index.js +1 -1
- package/dist/es/operation-button/index.js +1 -1
- package/dist/es/page/components/aside-panel.js +49 -0
- package/dist/es/page/components/index.js +4 -0
- package/dist/es/page/components/resize-handle.js +18 -0
- package/dist/es/page/components/scroll-content.js +55 -0
- package/dist/es/page/hooks/index.js +3 -0
- package/dist/es/page/hooks/use-page-key.js +12 -0
- package/dist/es/page/hooks/use-resize.js +32 -0
- package/dist/es/page/index.js +127 -0
- package/dist/es/page/styles.js +122 -0
- package/dist/es/page/viewport-context.js +12 -0
- package/dist/es/pagination/index.js +1 -1
- package/dist/es/permission-gate/index.js +1 -1
- package/dist/es/popconfirm/index.js +1 -1
- package/dist/es/popover/index.js +1 -1
- package/dist/es/pro-search/components/advanced-search-toggler.js +28 -0
- package/dist/es/pro-search/components/advanced-search.js +32 -0
- package/dist/es/pro-search/components/index.js +4 -0
- package/dist/es/pro-search/components/search-actions.js +25 -0
- package/dist/es/pro-search/index.js +57 -0
- package/dist/es/pro-search/styles.js +44 -0
- package/dist/es/pro-table/components/column-setting-item.js +170 -0
- package/dist/es/pro-table/components/column-settings-panel.js +93 -0
- package/dist/es/pro-table/components/column-settings.js +30 -0
- package/dist/es/pro-table/components/index.js +9 -0
- package/dist/es/pro-table/components/operation-button-group.js +18 -0
- package/dist/es/pro-table/components/ref.js +14 -0
- package/dist/es/pro-table/components/table-subscriber.js +17 -0
- package/dist/es/pro-table/components/table-summary.js +12 -0
- package/dist/es/pro-table/components/table-title.js +12 -0
- package/dist/es/pro-table/components/table.js +102 -0
- package/dist/es/pro-table/components/width-popover.js +76 -0
- package/dist/es/pro-table/context.js +13 -0
- package/dist/es/pro-table/event.js +8 -0
- package/dist/es/pro-table/hooks/index.js +4 -0
- package/dist/es/pro-table/hooks/use-column-settings-persistence.js +60 -0
- package/dist/es/pro-table/hooks/use-row-selection.js +29 -0
- package/dist/es/pro-table/hooks/use-table-columns.js +109 -0
- package/dist/es/pro-table/index.js +70 -0
- package/dist/es/pro-table/store.js +94 -0
- package/dist/es/progress/index.js +1 -1
- package/dist/es/qrcode/index.js +1 -1
- package/dist/es/radio/index.js +1 -1
- package/dist/es/rate/index.js +1 -1
- package/dist/es/result/index.js +1 -1
- package/dist/es/row/index.js +1 -1
- package/dist/es/scroll-area/index.js +1 -1
- package/dist/es/scroll-area/styles.js +1 -1
- package/dist/es/segmented/index.js +1 -1
- package/dist/es/select/hooks/index.js +1 -1
- package/dist/es/select/hooks/use-data-options-select.js +11 -11
- package/dist/es/select/index.js +1 -1
- package/dist/es/skeleton/index.js +1 -1
- package/dist/es/slider/index.js +1 -1
- package/dist/es/space/index.js +1 -1
- package/dist/es/space/space.js +1 -1
- package/dist/es/sparkles-text/index.js +1 -1
- package/dist/es/sparkles-text/sparkle.js +1 -1
- package/dist/es/spin/index.js +1 -1
- package/dist/es/split-text/index.js +1 -1
- package/dist/es/splitter/index.js +1 -1
- package/dist/es/stack/index.js +1 -1
- package/dist/es/statistic/index.js +1 -1
- package/dist/es/steps/index.js +1 -1
- package/dist/es/switch/index.js +1 -1
- package/dist/es/table/index.js +29 -28
- package/dist/es/table/use-pagination-props.js +1 -1
- package/dist/es/tabs/index.js +1 -1
- package/dist/es/tag/index.js +1 -1
- package/dist/es/time-picker/index.js +1 -1
- package/dist/es/timeline/index.js +1 -1
- package/dist/es/tooltip/index.js +1 -1
- package/dist/es/tour/index.js +1 -1
- package/dist/es/transfer/index.js +1 -1
- package/dist/es/tree/hooks/index.js +1 -1
- package/dist/es/tree/hooks/use-data-options-tree.js +8 -8
- package/dist/es/tree/index.js +1 -1
- package/dist/es/tree-select/hooks/index.js +1 -1
- package/dist/es/tree-select/hooks/use-data-options-tree-select.js +11 -11
- package/dist/es/tree-select/index.js +1 -1
- package/dist/es/typing-animation/index.js +1 -1
- package/dist/es/typography/index.js +1 -1
- package/dist/es/upload/index.js +1 -1
- package/dist/es/watermark/index.js +1 -1
- package/dist/types/_base/constants/event.d.ts +1 -0
- package/dist/types/_base/constants/index.d.ts +2 -0
- package/dist/types/_base/constants/symbols.d.ts +2 -0
- package/dist/types/_base/helpers/event.d.ts +3 -0
- package/dist/types/_base/helpers/index.d.ts +1 -0
- package/dist/types/_base/types/common.d.ts +4 -0
- package/dist/types/crud/components/action-button-group.d.ts +8 -0
- package/dist/types/crud/components/index.d.ts +6 -0
- package/dist/types/crud/components/main.d.ts +6 -0
- package/dist/types/crud/components/mutation-holder.d.ts +10 -0
- package/dist/types/crud/components/operation-button-group.d.ts +8 -0
- package/dist/types/crud/components/scene-form.d.ts +7 -0
- package/dist/types/crud/components/selection-indicator.d.ts +6 -0
- package/dist/types/crud/components/toolbar-actions.d.ts +6 -0
- package/dist/types/crud/components/toolbar.d.ts +8 -0
- package/dist/types/crud/event.d.ts +3 -0
- package/dist/types/crud/helpers.d.ts +20 -0
- package/dist/types/crud/hooks/index.d.ts +3 -0
- package/dist/types/crud/hooks/use-query-observer.d.ts +6 -0
- package/dist/types/crud/hooks/use-search-values.d.ts +2 -0
- package/dist/types/crud/hooks/use-selected-rows.d.ts +2 -0
- package/dist/types/crud/index.d.ts +8 -0
- package/dist/types/crud/props.d.ts +171 -0
- package/dist/types/crud/store.d.ts +146 -0
- package/dist/types/crud/styles.d.ts +3 -0
- package/dist/types/crud/types.d.ts +55 -0
- package/dist/types/crud-page/index.d.ts +3 -0
- package/dist/types/crud-page/props.d.ts +57 -0
- package/dist/types/dynamic-icon/index.d.ts +1 -1
- package/dist/types/flex-card/index.d.ts +3 -0
- package/dist/types/flex-card/props.d.ts +2 -0
- package/dist/types/flex-card/styles.d.ts +2 -0
- package/dist/types/form-drawer/components/form-actions.d.ts +19 -0
- package/dist/types/form-drawer/components/index.d.ts +1 -0
- package/dist/types/form-drawer/index.d.ts +5 -0
- package/dist/types/form-drawer/props.d.ts +80 -0
- package/dist/types/form-modal/components/draggable-wrapper.d.ts +9 -0
- package/dist/types/form-modal/components/form-actions.d.ts +19 -0
- package/dist/types/form-modal/components/index.d.ts +2 -0
- package/dist/types/form-modal/index.d.ts +5 -0
- package/dist/types/form-modal/props.d.ts +81 -0
- package/dist/types/index.d.ts +11 -1
- package/dist/types/logo-icon/index.d.ts +3 -0
- package/dist/types/logo-icon/props.d.ts +4 -0
- package/dist/types/page/components/aside-panel.d.ts +11 -0
- package/dist/types/page/components/index.d.ts +3 -0
- package/dist/types/page/components/resize-handle.d.ts +7 -0
- package/dist/types/page/components/scroll-content.d.ts +8 -0
- package/dist/types/page/hooks/index.d.ts +2 -0
- package/dist/types/page/hooks/use-page-key.d.ts +1 -0
- package/dist/types/page/hooks/use-resize.d.ts +15 -0
- package/dist/types/page/index.d.ts +4 -0
- package/dist/types/page/props.d.ts +140 -0
- package/dist/types/page/styles.d.ts +17 -0
- package/dist/types/page/viewport-context.d.ts +7 -0
- package/dist/types/pro-search/components/advanced-search-toggler.d.ts +7 -0
- package/dist/types/pro-search/components/advanced-search.d.ts +6 -0
- package/dist/types/pro-search/components/index.d.ts +3 -0
- package/dist/types/pro-search/components/search-actions.d.ts +10 -0
- package/dist/types/pro-search/index.d.ts +5 -0
- package/dist/types/pro-search/props.d.ts +66 -0
- package/dist/types/pro-search/styles.d.ts +6 -0
- package/dist/types/pro-table/components/column-setting-item.d.ts +12 -0
- package/dist/types/pro-table/components/column-settings-panel.d.ts +2 -0
- package/dist/types/pro-table/components/column-settings.d.ts +6 -0
- package/dist/types/pro-table/components/index.d.ts +8 -0
- package/dist/types/pro-table/components/operation-button-group.d.ts +7 -0
- package/dist/types/pro-table/components/ref.d.ts +3 -0
- package/dist/types/pro-table/components/table-subscriber.d.ts +9 -0
- package/dist/types/pro-table/components/table-summary.d.ts +7 -0
- package/dist/types/pro-table/components/table-title.d.ts +7 -0
- package/dist/types/pro-table/components/table.d.ts +12 -0
- package/dist/types/pro-table/components/width-popover.d.ts +9 -0
- package/dist/types/pro-table/context.d.ts +5 -0
- package/dist/types/pro-table/event.d.ts +16 -0
- package/dist/types/pro-table/hooks/index.d.ts +3 -0
- package/dist/types/pro-table/hooks/use-column-settings-persistence.d.ts +7 -0
- package/dist/types/pro-table/hooks/use-row-selection.d.ts +7 -0
- package/dist/types/pro-table/hooks/use-table-columns.d.ts +13 -0
- package/dist/types/pro-table/index.d.ts +11 -0
- package/dist/types/pro-table/props.d.ts +127 -0
- package/dist/types/pro-table/store.d.ts +105 -0
- package/dist/types/pro-table/types.d.ts +103 -0
- package/package.json +6 -6
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { Fragment as e, jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { cloneElement as r, memo as i, useCallback as a, useMemo as o, useRef as s } from "react";
|
|
4
|
+
import "@emotion/react";
|
|
5
|
+
import { motion as c, useDragControls as l } from "@vef-framework-react/core";
|
|
6
|
+
//#region src/form-modal/components/draggable-wrapper.tsx
|
|
7
|
+
function u() {
|
|
8
|
+
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).";
|
|
9
|
+
}
|
|
10
|
+
var d = process.env.NODE_ENV === "production" ? {
|
|
11
|
+
name: "18m26ff",
|
|
12
|
+
styles: "cursor:move;user-select:none"
|
|
13
|
+
} : {
|
|
14
|
+
name: "18m26ff",
|
|
15
|
+
styles: "cursor:move;user-select:none/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyYWdnYWJsZS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFhbUIiLCJmaWxlIjoiZHJhZ2dhYmxlLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBHZXRQcm9wIH0gZnJvbSBcIi4uLy4uL19iYXNlXCI7XG5pbXBvcnQgdHlwZSB7IE1vZGFsUHJvcHMgfSBmcm9tIFwiLi4vLi4vbW9kYWxcIjtcbmltcG9ydCB0eXBlIHsgUG9pbnRlckV2ZW50SGFuZGxlciwgUmVhY3RFbGVtZW50LCBSZWFjdE5vZGUgfSBmcm9tIFwicmVhY3RcIjtcblxuaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBtb3Rpb24sIHVzZURyYWdDb250cm9scyB9IGZyb20gXCJAdmVmLWZyYW1ld29yay1yZWFjdC9jb3JlXCI7XG5pbXBvcnQgeyBjbG9uZUVsZW1lbnQsIG1lbW8sIHVzZUNhbGxiYWNrLCB1c2VNZW1vLCB1c2VSZWYgfSBmcm9tIFwicmVhY3RcIjtcblxuaW50ZXJmYWNlIERyYWdnYWJsZVdyYXBwZXJQcm9wcyB7XG4gIHRpdGxlOiBSZWFjdE5vZGU7XG4gIGNoaWxkcmVuOiBSZWFjdEVsZW1lbnQ8TW9kYWxQcm9wcz47XG59XG5cbmNvbnN0IHRpdGxlU3R5bGUgPSBjc3Moe1xuICBjdXJzb3I6IFwibW92ZVwiLFxuICB1c2VyU2VsZWN0OiBcIm5vbmVcIlxufSk7XG5cbmNvbnN0IGNvbnN0cmFpbnRzU3R5bGUgPSBjc3Moe1xuICBwb3Np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z5cbiAgKSwgW2RyYWdDb250cm9sc10pO1xuXG4gIGNvbnN0IHRpdGxlQ29udGVudCA9IHVzZU1lbW8oKCkgPT4gKFxuICAgIDxkaXYgY3NzPXt0aXRsZVN0eWxlfSBvblBvaW50ZXJEb3duPXtoYW5kbGVEcmFnfT5cbiAgICAgIHt0aXRsZX1cbiAgICA8L2Rpdj5cbiAgKSwgW3RpdGxlLCBoYW5kbGVEcmFnXSk7XG5cbiAgcmV0dXJuIGNsb25lRWxlbWVudChjaGlsZHJlbiwge1xuICAgIG1vZGFsUmVuZGVyLFxuICAgIHRpdGxlOiB0aXRsZUNvbnRlbnRcbiAgfSk7XG59XG5cbmV4cG9ydCBjb25zdCBEcmFnZ2FibGVXcmFwcGVyID0gbWVtbyhEcmFnZ2FibGVXcmFwcGVyQmFzZSk7XG5EcmFnZ2FibGVXcmFwcGVyLmRpc3BsYXlOYW1lID0gXCJEcmFnZ2FibGVXcmFwcGVyXCI7XG4iXX0= */",
|
|
16
|
+
toString: u
|
|
17
|
+
}, f = process.env.NODE_ENV === "production" ? {
|
|
18
|
+
name: "t9e9jk",
|
|
19
|
+
styles: "position:fixed;inset:0;pointer-events:none"
|
|
20
|
+
} : {
|
|
21
|
+
name: "t9e9jk",
|
|
22
|
+
styles: "position:fixed;inset:0;pointer-events:none/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyYWdnYWJsZS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrQnlCIiwiZmlsZSI6ImRyYWdnYWJsZS13cmFwcGVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgR2V0UHJvcCB9IGZyb20gXCIuLi8uLi9fYmFzZVwiO1xuaW1wb3J0IHR5cGUgeyBNb2RhbFByb3BzIH0gZnJvbSBcIi4uLy4uL21vZGFsXCI7XG5pbXBvcnQgdHlwZSB7IFBvaW50ZXJFd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YmxlV3JhcHBlci5kaXNwbGF5TmFtZSA9IFwiRHJhZ2dhYmxlV3JhcHBlclwiO1xuIl19 */",
|
|
23
|
+
toString: u
|
|
24
|
+
};
|
|
25
|
+
function p({ title: i, children: u }) {
|
|
26
|
+
let p = l(), m = s(null), h = a((e) => {
|
|
27
|
+
e.stopPropagation(), p.start(e);
|
|
28
|
+
}, [p]);
|
|
29
|
+
return r(u, {
|
|
30
|
+
modalRender: a((r) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
|
|
31
|
+
ref: m,
|
|
32
|
+
css: f
|
|
33
|
+
}), /* @__PURE__ */ t(c.div, {
|
|
34
|
+
drag: !0,
|
|
35
|
+
dragConstraints: m,
|
|
36
|
+
dragControls: p,
|
|
37
|
+
dragElastic: .3,
|
|
38
|
+
dragListener: !1,
|
|
39
|
+
dragMomentum: !1,
|
|
40
|
+
children: r
|
|
41
|
+
})] }), [p]),
|
|
42
|
+
title: o(() => /* @__PURE__ */ t("div", {
|
|
43
|
+
css: d,
|
|
44
|
+
onPointerDown: h,
|
|
45
|
+
children: i
|
|
46
|
+
}), [i, h])
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
var m = i(p);
|
|
50
|
+
m.displayName = "DraggableWrapper";
|
|
51
|
+
//#endregion
|
|
52
|
+
export { m as DraggableWrapper };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { Icon as e } from "../../icon/index.js";
|
|
3
|
+
import { useFormContext as t } from "../../form/form.js";
|
|
4
|
+
import { Fragment as n, jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { memo as a, useCallback as o } from "react";
|
|
6
|
+
import { CheckIcon as s } from "lucide-react";
|
|
7
|
+
var c = {
|
|
8
|
+
children: "提交",
|
|
9
|
+
icon: /* @__PURE__ */ r(e, { component: s })
|
|
10
|
+
}, l = { children: "重置" };
|
|
11
|
+
function u({ submitButtonProps: e = c, resetButtonProps: a = l, onReset: s }) {
|
|
12
|
+
let { ResetButton: u, SubmitButton: d, handleSubmit: f, reset: p } = t(), m = o(() => {
|
|
13
|
+
p(), s?.();
|
|
14
|
+
}, [p, s]);
|
|
15
|
+
return /* @__PURE__ */ i(n, { children: [a && /* @__PURE__ */ r(u, {
|
|
16
|
+
...a,
|
|
17
|
+
onReset: m
|
|
18
|
+
}), /* @__PURE__ */ r(d, {
|
|
19
|
+
...e,
|
|
20
|
+
onSubmit: f
|
|
21
|
+
})] });
|
|
22
|
+
}
|
|
23
|
+
var d = a(u);
|
|
24
|
+
d.displayName = "FormActions";
|
|
25
|
+
//#endregion
|
|
26
|
+
export { d as FormActions };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { Center as e } from "../center/index.js";
|
|
3
|
+
import { useForm as t } from "../form/use-form.js";
|
|
4
|
+
import n from "../empty/empty.js";
|
|
5
|
+
import { Modal as r } from "../modal/index.js";
|
|
6
|
+
import { DraggableWrapper as i } from "./components/draggable-wrapper.js";
|
|
7
|
+
import { FormActions as a } from "./components/form-actions.js";
|
|
8
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
9
|
+
import { isFunction as s } from "@vef-framework-react/shared";
|
|
10
|
+
import { memo as c, useCallback as l, useMemo as u } from "react";
|
|
11
|
+
import { useMutation as d } from "@vef-framework-react/core";
|
|
12
|
+
//#region src/form-modal/index.tsx
|
|
13
|
+
var f = /* @__PURE__ */ o(e, { children: /* @__PURE__ */ o(n, { description: "请提供表单内容" }) });
|
|
14
|
+
function p(e, t) {
|
|
15
|
+
return s(e) ? e(t) : e || f;
|
|
16
|
+
}
|
|
17
|
+
var m = c(({ open: e = !1, title: n, width: c, draggable: f = !0, submitButtonProps: m, resetButtonProps: h, defaultValues: g, disabled: _ = !1, renderActions: v, mutationFn: y, mutationMeta: b, children: x, beforeSubmit: S, afterSubmit: C, onClose: w, onSubmit: T, onReset: E }) => {
|
|
18
|
+
let D = t({
|
|
19
|
+
defaultValues: g,
|
|
20
|
+
onSubmit: async ({ value: e }) => {
|
|
21
|
+
let t = e;
|
|
22
|
+
s(S) && (t = await S(t)), s(T) && await T(t), y ? await N(t) : T || j();
|
|
23
|
+
}
|
|
24
|
+
}), { Form: O, AppForm: k, reset: A } = D, j = l(() => {
|
|
25
|
+
A(), w?.();
|
|
26
|
+
}, [w, A]), { isPending: M, mutateAsync: N } = d({
|
|
27
|
+
mutationKey: [y?.key],
|
|
28
|
+
mutationFn: y,
|
|
29
|
+
onSuccess: async ({ data: e }, t) => {
|
|
30
|
+
s(C) && await C(t, e), j();
|
|
31
|
+
},
|
|
32
|
+
meta: b
|
|
33
|
+
}), P = l(() => {
|
|
34
|
+
E?.(g);
|
|
35
|
+
}, [g, E]), F = l(() => {
|
|
36
|
+
M || j();
|
|
37
|
+
}, [M, j]), I = u(() => new Proxy(D, { get(e, t, n) {
|
|
38
|
+
if (t === "reset") {
|
|
39
|
+
let r = Reflect.get(e, t, n);
|
|
40
|
+
return () => {
|
|
41
|
+
r(), P();
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return Reflect.get(e, t, n);
|
|
45
|
+
} }), [D, P]), L = /* @__PURE__ */ o(r, {
|
|
46
|
+
destroyOnHidden: !0,
|
|
47
|
+
footer: v ? (() => {
|
|
48
|
+
let e = v(I);
|
|
49
|
+
return e ? /* @__PURE__ */ o(k, { children: e }) : null;
|
|
50
|
+
})() : /* @__PURE__ */ o(k, { children: /* @__PURE__ */ o(a, {
|
|
51
|
+
resetButtonProps: h,
|
|
52
|
+
submitButtonProps: m,
|
|
53
|
+
onReset: P
|
|
54
|
+
}) }),
|
|
55
|
+
keyboard: !1,
|
|
56
|
+
open: e,
|
|
57
|
+
title: n,
|
|
58
|
+
width: c,
|
|
59
|
+
onCancel: F,
|
|
60
|
+
children: /* @__PURE__ */ o(O, {
|
|
61
|
+
disabled: _ || M,
|
|
62
|
+
children: p(x, D)
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
return f ? /* @__PURE__ */ o(i, {
|
|
66
|
+
title: n,
|
|
67
|
+
children: L
|
|
68
|
+
}) : L;
|
|
69
|
+
});
|
|
70
|
+
m.displayName = "FormModal";
|
|
71
|
+
//#endregion
|
|
72
|
+
export { m as FormModal };
|
package/dist/es/grid/context.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import { createContext as e, use as t } from "react";
|
|
3
3
|
//#region src/grid/context.ts
|
|
4
4
|
var n = e(null), r = n.Provider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import { useGridContext as e } from "./context.js";
|
|
3
3
|
import { gridItem as t } from "./styles.js";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import "./use-container-breakpoints.js";
|
|
3
3
|
import "./use-container-width.js";
|
|
4
4
|
import "./use-grid-collapsed.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import { useMemo as e } from "react";
|
|
3
3
|
//#region src/grid/hooks/use-container-breakpoints.ts
|
|
4
4
|
function t(t) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { useIsomorphicEffect as e } from "@vef-framework-react/hooks";
|
|
3
|
+
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
4
4
|
//#region src/grid/hooks/use-container-width.ts
|
|
5
5
|
function i() {
|
|
6
|
-
let i =
|
|
7
|
-
return
|
|
6
|
+
let i = n(0), a = n(null), [o, s] = r(0);
|
|
7
|
+
return e(() => {
|
|
8
8
|
a.current && s(a.current.getBoundingClientRect().width);
|
|
9
|
-
}, []),
|
|
9
|
+
}, []), t(() => {
|
|
10
10
|
if (a.current) {
|
|
11
11
|
let e = new ResizeObserver(([e]) => {
|
|
12
12
|
e && (i.current && cancelAnimationFrame(i.current), i.current = requestAnimationFrame(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import { useGridContext as e } from "../context.js";
|
|
3
3
|
//#region src/grid/hooks/use-grid-collapsed.ts
|
|
4
4
|
function t() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import { useThemeTokens as e } from "../../_base/hooks/use-theme-tokens.js";
|
|
3
3
|
import { isNumber as t, isString as n } from "@vef-framework-react/shared";
|
|
4
4
|
import { useMemo as r } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import { useMemo as e } from "react";
|
|
3
3
|
//#region src/grid/hooks/use-responsive-breakpoint.ts
|
|
4
4
|
function t(t, n) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import { breakpoints as e } from "../../_base/constants/breakpoints.js";
|
|
3
3
|
import { isPlainObject as t } from "@vef-framework-react/shared";
|
|
4
4
|
import "react";
|
package/dist/es/grid/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import { GridContextProvider as e } from "./context.js";
|
|
3
3
|
import { grid as t } from "./styles.js";
|
|
4
4
|
import { GridItem as n } from "./grid-item.js";
|
|
@@ -9,14 +9,14 @@ import { useNormalizedGap as a } from "./hooks/use-normalized-gap.js";
|
|
|
9
9
|
import { useResponsiveBreakpoint as o } from "./hooks/use-responsive-breakpoint.js";
|
|
10
10
|
import { getResponsiveValue as s } from "./hooks/use-responsive-value.js";
|
|
11
11
|
import { jsx as c } from "@emotion/react/jsx-runtime";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { useMergedRef as l } from "@vef-framework-react/hooks";
|
|
13
|
+
import { Children as u, cloneElement as d, isValidElement as f, useCallback as p, useMemo as m, useState as h } from "react";
|
|
14
14
|
import { clsx as g } from "@vef-framework-react/core";
|
|
15
15
|
//#region src/grid/index.tsx
|
|
16
16
|
function _(e, t, r, i, a) {
|
|
17
17
|
let o = [];
|
|
18
|
-
|
|
19
|
-
if (!
|
|
18
|
+
u.forEach(e, (e) => {
|
|
19
|
+
if (!f(e) || e.type !== n) return;
|
|
20
20
|
let t = e, r = t.props, i = s(r.span ?? 1, a) ?? 1;
|
|
21
21
|
if (i === 0) return;
|
|
22
22
|
let c = s(r.offset ?? 0, a) ?? 0;
|
|
@@ -26,8 +26,8 @@ function _(e, t, r, i, a) {
|
|
|
26
26
|
offset: c
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
let c = 0,
|
|
30
|
-
|
|
29
|
+
let c = 0, l = o.at(-1);
|
|
30
|
+
l?.element.props.suffix === !0 && (c = l.span);
|
|
31
31
|
let p = 0, m = !1;
|
|
32
32
|
return o.map(({ element: e, span: n, offset: a }, s) => {
|
|
33
33
|
let l = Math.min(n + a, t);
|
|
@@ -37,28 +37,28 @@ function _(e, t, r, i, a) {
|
|
|
37
37
|
}
|
|
38
38
|
if (m) {
|
|
39
39
|
let { props: t } = e;
|
|
40
|
-
return
|
|
40
|
+
return d(e, {
|
|
41
41
|
className: s === o.length - 1 && t.suffix === !0 ? t.className : g(t.className, "hidden"),
|
|
42
42
|
span: n,
|
|
43
43
|
offset: a
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
return
|
|
46
|
+
return d(e, {
|
|
47
47
|
key: e.key || s,
|
|
48
48
|
span: l,
|
|
49
49
|
offset: a
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function v({ baseWidth: n = 240, gap: s = 0, columnGap:
|
|
54
|
-
let [w, T] =
|
|
53
|
+
function v({ baseWidth: n = 240, gap: s = 0, columnGap: u, rowGap: d, defaultIsCollapsed: f = !1, isCollapsed: g, collapsedRows: v = 1, onCollapseChange: y, style: b, children: x, ref: S, ...C }) {
|
|
54
|
+
let [w, T] = h(f), E = g !== void 0, D = E ? g : w, O = p((e) => {
|
|
55
55
|
let t = e || !D;
|
|
56
56
|
E || T(t), y?.(t);
|
|
57
57
|
}, [
|
|
58
58
|
E,
|
|
59
59
|
D,
|
|
60
60
|
y
|
|
61
|
-
]), { containerRef: k, containerWidth: A } = i(), j =
|
|
61
|
+
]), { containerRef: k, containerWidth: A } = i(), j = l(k, S), M = o(r(n), A), [N, P] = a([d ?? s, u ?? s]), F = m(() => A > 24 * P ? {
|
|
62
62
|
"--vef-grid-row-gap": `${N}px`,
|
|
63
63
|
"--vef-grid-column-gap": `${P}px`,
|
|
64
64
|
...b
|
|
@@ -71,11 +71,11 @@ function v({ baseWidth: n = 240, gap: s = 0, columnGap: l, rowGap: u, defaultIsC
|
|
|
71
71
|
P,
|
|
72
72
|
N,
|
|
73
73
|
b
|
|
74
|
-
]), I =
|
|
74
|
+
]), I = m(() => ({
|
|
75
75
|
gridColumns: 24,
|
|
76
76
|
isCollapsed: D,
|
|
77
77
|
setCollapsed: O
|
|
78
|
-
}), [D, O]), L =
|
|
78
|
+
}), [D, O]), L = m(() => _(x, 24, D, v, M), [
|
|
79
79
|
x,
|
|
80
80
|
D,
|
|
81
81
|
v,
|
package/dist/es/grid/styles.js
CHANGED
package/dist/es/group/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import { Flex as e } from "../flex/index.js";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region src/group/index.tsx
|
package/dist/es/icon/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
3
|
import "@emotion/react";
|
|
4
4
|
import { Icon as t } from "lucide-react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
3
|
import { Button as t } from "../button/index.js";
|
|
4
4
|
import { Tooltip as n } from "../tooltip/index.js";
|
package/dist/es/image/index.js
CHANGED