@vef-framework/components 1.0.100 → 1.0.102
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/es/index.js +1 -3
- package/es/internal/base.css.js +491 -3
- package/es/internal/chart.js +1 -3
- package/es/internal/index.js +1 -3
- package/es/internal/modern-normalize.css.js +214 -3
- package/es/internal/utils.js +1 -3
- package/es/vef-access-denied/access-denied-icon.js +1 -3
- package/es/vef-access-denied/index.js +9 -11
- package/es/vef-action-buttons/index.js +1 -3
- package/es/vef-approval-flow-editor/components/edge.js +2 -4
- package/es/vef-approval-flow-editor/components/label-value.js +8 -10
- package/es/vef-approval-flow-editor/components/node-content.js +10 -12
- package/es/vef-approval-flow-editor/components/node-selector.js +4 -6
- package/es/vef-approval-flow-editor/components/node-toolbar.js +1 -3
- package/es/vef-approval-flow-editor/components/nodes/approval.js +1 -3
- package/es/vef-approval-flow-editor/components/nodes/condition.js +1 -3
- package/es/vef-approval-flow-editor/components/nodes/end.js +1 -3
- package/es/vef-approval-flow-editor/components/nodes/handle.js +1 -3
- package/es/vef-approval-flow-editor/components/nodes/index.js +1 -3
- package/es/vef-approval-flow-editor/components/nodes/submit.js +1 -3
- package/es/vef-approval-flow-editor/components/selector-content.js +9 -11
- package/es/vef-approval-flow-editor/components/source-handle.js +1 -3
- package/es/vef-approval-flow-editor/components/target-handle.js +1 -3
- package/es/vef-approval-flow-editor/constants.js +1 -3
- package/es/vef-approval-flow-editor/helper.js +1 -3
- package/es/vef-approval-flow-editor/hooks/use-edges-interaction.js +1 -3
- package/es/vef-approval-flow-editor/hooks/use-element-selection.js +1 -3
- package/es/vef-approval-flow-editor/hooks/use-nodes-interaction.js +1 -3
- package/es/vef-approval-flow-editor/index.js +1 -3
- package/es/vef-approval-flow-editor/models/edge-node.js +1 -3
- package/es/vef-approval-flow-editor/models/flow-node.js +1 -3
- package/es/vef-approval-flow-editor/store.js +1 -3
- package/es/vef-approval-flow-editor/styles.js +12 -14
- package/es/vef-approval-flow-editor/types.js +1 -3
- package/es/vef-area-chart/index.js +1 -3
- package/es/vef-auto-sizer/index.js +1 -3
- package/es/vef-avatar/index.js +1 -3
- package/es/vef-avatar-group/index.js +1 -3
- package/es/vef-badge/index.js +1 -3
- package/es/vef-bar-chart/index.js +1 -3
- package/es/vef-bool/hooks/use-bool-instance.js +1 -3
- package/es/vef-bool/index.js +1 -3
- package/es/vef-breadcrumb/index.js +1 -3
- package/es/vef-button/components/base-button.js +1 -3
- package/es/vef-button/index.js +1 -3
- package/es/vef-card/index.js +1 -3
- package/es/vef-card-meta/index.js +1 -3
- package/es/vef-chart-container/hooks/use-chart-container-context.js +1 -3
- package/es/vef-chart-container/index.js +14 -11
- package/es/vef-chart-legend-content/index.js +10 -12
- package/es/vef-chart-tooltip-content/index.js +22 -24
- package/es/vef-checkbox/hooks/use-checkbox-instance.js +1 -3
- package/es/vef-checkbox/hooks/use-data-options.js +1 -3
- package/es/vef-checkbox/index.js +3 -5
- package/es/vef-col/index.js +1 -3
- package/es/vef-color-picker/index.js +1 -3
- package/es/vef-compact/index.js +1 -3
- package/es/vef-config-provider/global-style.js +15 -17
- package/es/vef-config-provider/hooks/use-ui-config.js +1 -3
- package/es/vef-config-provider/index.js +3 -5
- package/es/vef-config-provider/store.js +1 -3
- package/es/vef-container/index.js +1 -3
- package/es/vef-crud-page/components/crud-actions.js +1 -3
- package/es/vef-crud-page/components/crud-filter.js +1 -3
- package/es/vef-crud-page/components/crud-footer.js +3 -5
- package/es/vef-crud-page/components/crud-form-modal.js +1 -3
- package/es/vef-crud-page/components/crud-header.js +1 -3
- package/es/vef-crud-page/components/crud-table.js +1 -3
- package/es/vef-crud-page/hooks/use-action-buttons.js +1 -3
- package/es/vef-crud-page/hooks/use-crud-context.js +1 -3
- package/es/vef-crud-page/hooks/use-crud-schema.js +1 -3
- package/es/vef-crud-page/hooks/use-operation-buttons.js +1 -3
- package/es/vef-crud-page/index.js +1 -3
- package/es/vef-crud-page/store.js +1 -3
- package/es/vef-data-grid/index.js +1 -3
- package/es/vef-data-table/index.js +1 -3
- package/es/vef-divider/index.js +1 -3
- package/es/vef-drawer/components/action-button-wrapper.js +1 -3
- package/es/vef-drawer/components/button-props.js +1 -2
- package/es/vef-drawer/components/cancel-action-button.js +1 -3
- package/es/vef-drawer/components/ok-action-button.js +1 -3
- package/es/vef-drawer/context.js +1 -3
- package/es/vef-drawer/index.js +3 -5
- package/es/vef-dropdown/index.js +1 -3
- package/es/vef-dynamic-icon/index.js +1 -3
- package/es/vef-dynamic-icon/props.js +1 -3
- package/es/vef-empty/index.js +1 -3
- package/es/vef-empty-placeholder/index.js +4 -6
- package/es/vef-error/error-icon.js +1 -3
- package/es/vef-error/index.js +9 -11
- package/es/vef-filter/components/action-buttons.js +5 -7
- package/es/vef-filter/components/advanced-filter.js +8 -10
- package/es/vef-filter/components/basic-filter.js +4 -6
- package/es/vef-filter/components/fields/index.js +1 -3
- package/es/vef-filter/components/fields/input-number.js +1 -3
- package/es/vef-filter/components/fields/input.js +1 -3
- package/es/vef-filter/components/fields/radio.js +1 -3
- package/es/vef-filter/components/fields/select.js +1 -3
- package/es/vef-filter/components/fields/tree-select.js +1 -3
- package/es/vef-filter/components/filter-field.js +1 -3
- package/es/vef-filter/components/filter-item.js +1 -3
- package/es/vef-filter/event.js +1 -3
- package/es/vef-filter/helper.js +1 -3
- package/es/vef-filter/hooks/use-action-handlers.js +1 -3
- package/es/vef-filter/hooks/use-computed-values.js +1 -3
- package/es/vef-filter/hooks/use-filter-context.js +1 -3
- package/es/vef-filter/hooks/use-filter-initialization.js +1 -3
- package/es/vef-filter/hooks/use-filter-instance.js +1 -3
- package/es/vef-filter/hooks/use-filter-items.js +1 -3
- package/es/vef-filter/hooks/use-filter-values-change.js +1 -3
- package/es/vef-filter/hooks/use-label-config.js +1 -3
- package/es/vef-filter/index.js +2 -4
- package/es/vef-filter/store.js +1 -3
- package/es/vef-flex/index.js +1 -3
- package/es/vef-float-button/index.js +1 -3
- package/es/vef-float-button-group/index.js +1 -3
- package/es/vef-form/components/fields/icon-select.js +1 -3
- package/es/vef-form/components/fields/index.js +1 -3
- package/es/vef-form/components/fields/input-number.js +1 -3
- package/es/vef-form/components/fields/input.js +1 -3
- package/es/vef-form/components/fields/password.js +1 -3
- package/es/vef-form/components/fields/radio.js +1 -3
- package/es/vef-form/components/fields/select.js +1 -3
- package/es/vef-form/components/fields/textarea.js +1 -3
- package/es/vef-form/components/fields/tree-select.js +1 -3
- package/es/vef-form/components/form-actions.js +3 -5
- package/es/vef-form/components/form-content.js +2 -4
- package/es/vef-form/components/form-field.js +1 -3
- package/es/vef-form/components/form-group.js +3 -5
- package/es/vef-form/components/form-hidden-item.js +1 -3
- package/es/vef-form/components/form-item.js +1 -3
- package/es/vef-form/components/form-row.js +1 -3
- package/es/vef-form/event.js +1 -3
- package/es/vef-form/helper.js +1 -3
- package/es/vef-form/hooks/use-action-handlers.js +1 -3
- package/es/vef-form/hooks/use-columns-layout.js +1 -3
- package/es/vef-form/hooks/use-computed-values.js +1 -3
- package/es/vef-form/hooks/use-form-context.js +1 -3
- package/es/vef-form/hooks/use-form-initialization.js +1 -3
- package/es/vef-form/hooks/use-form-instance.js +1 -3
- package/es/vef-form/hooks/use-form-values-change.js +1 -3
- package/es/vef-form/hooks/use-label-width.js +1 -3
- package/es/vef-form/index.js +3 -5
- package/es/vef-form/store.js +1 -3
- package/es/vef-form/validation-rules.js +1 -3
- package/es/vef-form-drawer/index.js +1 -3
- package/es/vef-form-modal/index.js +1 -3
- package/es/vef-generic-select/index.js +1 -3
- package/es/vef-grid/index.js +18 -8
- package/es/vef-grid/props.js +1 -3
- package/es/vef-grid-item/index.js +1 -3
- package/es/vef-icon/index.js +1 -3
- package/es/vef-icon-select/index.js +11 -13
- package/es/vef-input/hooks/use-input-instance.js +1 -3
- package/es/vef-input/index.js +1 -3
- package/es/vef-input-number/hooks/use-input-number-instance.js +1 -3
- package/es/vef-input-number/index.js +1 -3
- package/es/vef-layout/common-styles.js +4 -6
- package/es/vef-layout/components/content.js +1 -3
- package/es/vef-layout/components/font-size.js +1 -3
- package/es/vef-layout/components/fullscreen.js +1 -3
- package/es/vef-layout/components/header-action-icons.js +6 -8
- package/es/vef-layout/components/header-content.js +1 -3
- package/es/vef-layout/components/header.js +6 -8
- package/es/vef-layout/components/icon-boy.js +1 -3
- package/es/vef-layout/components/icon-girl.js +1 -3
- package/es/vef-layout/components/icon-menu-fold-left.js +1 -3
- package/es/vef-layout/components/icon-menu-unfold-left.js +1 -3
- package/es/vef-layout/components/menu-groups.js +15 -17
- package/es/vef-layout/components/message.js +1 -3
- package/es/vef-layout/components/search.js +1 -3
- package/es/vef-layout/components/sider.js +5 -7
- package/es/vef-layout/components/title.js +8 -10
- package/es/vef-layout/components/user-avatar.js +9 -11
- package/es/vef-layout/hooks/use-layout-context.js +1 -3
- package/es/vef-layout/index.js +2 -4
- package/es/vef-layout/logo.svg.js +1 -3
- package/es/vef-layout/store.js +1 -3
- package/es/vef-line-chart/index.js +1 -3
- package/es/vef-loading-placeholder/index.js +5 -7
- package/es/vef-login/index.js +21 -23
- package/es/vef-login/login-icon.js +1 -3
- package/es/vef-menu/index.js +4 -6
- package/es/vef-modal/components/action-button-wrapper.js +1 -3
- package/es/vef-modal/components/button-props.js +1 -2
- package/es/vef-modal/components/cancel-action-button.js +1 -3
- package/es/vef-modal/components/ok-action-button.js +1 -3
- package/es/vef-modal/context.js +1 -3
- package/es/vef-modal/index.js +2 -4
- package/es/vef-not-found/index.js +9 -11
- package/es/vef-not-found/not-found-icon.js +1 -3
- package/es/vef-page/index.js +10 -12
- package/es/vef-pagination/index.js +1 -3
- package/es/vef-pagination/props.js +1 -3
- package/es/vef-paragraph/index.js +1 -3
- package/es/vef-password/hooks/use-password-instance.js +1 -3
- package/es/vef-password/index.js +1 -3
- package/es/vef-pie-chart/index.js +8 -10
- package/es/vef-popconfirm/index.js +1 -3
- package/es/vef-popover/index.js +1 -3
- package/es/vef-radio/hooks/use-data-options.js +1 -3
- package/es/vef-radio/hooks/use-radio-instance.js +1 -3
- package/es/vef-radio/index.js +3 -5
- package/es/vef-rate/hooks/use-rate-instance.js +1 -3
- package/es/vef-rate/index.js +1 -3
- package/es/vef-responsive-container/index.js +2 -4
- package/es/vef-responsive-item/index.js +2 -4
- package/es/vef-ribbon/index.js +1 -3
- package/es/vef-row/index.js +1 -3
- package/es/vef-scroll-area/components/scrollbar.js +7 -9
- package/es/vef-scroll-area/index.js +3 -5
- package/es/vef-select/components/option.js +3 -5
- package/es/vef-select/hooks/use-data-options.js +1 -3
- package/es/vef-select/hooks/use-field-names.js +1 -3
- package/es/vef-select/hooks/use-render-label.js +2 -4
- package/es/vef-select/hooks/use-render-option.js +1 -3
- package/es/vef-select/hooks/use-select-instance.js +1 -3
- package/es/vef-select/index.js +1 -3
- package/es/vef-slider/hooks/use-slider-instance.js +1 -3
- package/es/vef-slider/index.js +1 -3
- package/es/vef-sortable-list/components/overlay-item.js +2 -4
- package/es/vef-sortable-list/components/sortable-item.js +2 -4
- package/es/vef-sortable-list/hooks/use-merged-items.js +1 -3
- package/es/vef-sortable-list/index.js +1 -3
- package/es/vef-space/index.js +1 -3
- package/es/vef-spin/index.js +1 -3
- package/es/vef-splitter/index.js +1 -3
- package/es/vef-splitter-panel/index.js +1 -3
- package/es/vef-status/index.js +1 -3
- package/es/vef-table/components/columns/bool.js +1 -3
- package/es/vef-table/components/columns/code.js +1 -3
- package/es/vef-table/components/columns/data-dictionary.js +1 -3
- package/es/vef-table/components/columns/enum.js +1 -3
- package/es/vef-table/components/columns/file.js +1 -3
- package/es/vef-table/components/columns/icon.js +1 -3
- package/es/vef-table/components/columns/id.js +1 -3
- package/es/vef-table/components/columns/image.js +1 -3
- package/es/vef-table/components/columns/index.js +1 -3
- package/es/vef-table/components/columns/markdown.js +1 -3
- package/es/vef-table/components/columns/number.js +1 -3
- package/es/vef-table/components/columns/render.js +1 -3
- package/es/vef-table/components/columns/rich-text.js +1 -3
- package/es/vef-table/components/columns/text.js +1 -3
- package/es/vef-table/components/columns-settings.js +10 -12
- package/es/vef-table/components/operation-buttons.js +2 -4
- package/es/vef-table/components/settings-icon.js +3 -5
- package/es/vef-table/components/table-footer.js +3 -5
- package/es/vef-table/helper.js +1 -3
- package/es/vef-table/hooks/use-computed-batch-buttons.js +1 -3
- package/es/vef-table/hooks/use-computed-columns.js +1 -3
- package/es/vef-table/hooks/use-computed-values.js +1 -3
- package/es/vef-table/hooks/use-data.js +1 -3
- package/es/vef-table/hooks/use-default-column-configs.js +1 -3
- package/es/vef-table/hooks/use-display-value.js +1 -3
- package/es/vef-table/hooks/use-helper-columns.js +1 -3
- package/es/vef-table/hooks/use-operation-column-width.js +1 -3
- package/es/vef-table/hooks/use-pagination-props.js +1 -3
- package/es/vef-table/hooks/use-row-props.js +1 -3
- package/es/vef-table/hooks/use-row-selection-config.js +1 -3
- package/es/vef-table/hooks/use-selected-rows.js +1 -3
- package/es/vef-table/hooks/use-table-columns.js +1 -3
- package/es/vef-table/hooks/use-table-context.js +1 -3
- package/es/vef-table/hooks/use-table-instance.js +1 -3
- package/es/vef-table/hooks/use-table-summary.js +1 -3
- package/es/vef-table/hooks/use-table-width.js +1 -3
- package/es/vef-table/index.js +5 -7
- package/es/vef-table/store.js +1 -3
- package/es/vef-tabs/index.js +1 -3
- package/es/vef-tag/index.js +1 -3
- package/es/vef-temporal-picker/helper.js +1 -3
- package/es/vef-temporal-picker/hooks/use-dayjs-value.js +1 -3
- package/es/vef-temporal-picker/hooks/use-temporal-limit.js +1 -3
- package/es/vef-temporal-picker/hooks/use-temporal-picker-instance.js +1 -3
- package/es/vef-temporal-picker/index.js +1 -3
- package/es/vef-temporal-range-picker/helper.js +1 -3
- package/es/vef-temporal-range-picker/hooks/use-dayjs-values.js +1 -3
- package/es/vef-temporal-range-picker/hooks/use-temporal-limit.js +1 -3
- package/es/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.js +1 -3
- package/es/vef-temporal-range-picker/index.js +1 -3
- package/es/vef-temporal-range-picker/props.js +1 -3
- package/es/vef-text/index.js +1 -3
- package/es/vef-textarea/hooks/use-textarea-instance.js +1 -3
- package/es/vef-textarea/index.js +1 -3
- package/es/vef-title/index.js +6 -8
- package/es/vef-tooltip/index.js +1 -3
- package/es/vef-tree-select/hooks/use-change-handler.js +1 -3
- package/es/vef-tree-select/hooks/use-data-options.js +1 -3
- package/es/vef-tree-select/hooks/use-tree-select-instance.js +1 -3
- package/es/vef-tree-select/index.js +1 -3
- package/es/vef-virtual-grid/index.js +3 -5
- package/es/vef-virtual-list/index.js +4 -6
- package/lib/index.cjs +1 -3
- package/lib/internal/base.css.cjs +491 -3
- package/lib/internal/chart.cjs +1 -3
- package/lib/internal/index.cjs +1 -3
- package/lib/internal/modern-normalize.css.cjs +214 -3
- package/lib/internal/utils.cjs +1 -3
- package/lib/vef-access-denied/access-denied-icon.cjs +1 -3
- package/lib/vef-access-denied/index.cjs +9 -11
- package/lib/vef-access-denied/props.cjs +1 -3
- package/lib/vef-action-buttons/index.cjs +1 -3
- package/lib/vef-action-buttons/props.cjs +1 -3
- package/lib/vef-approval-flow-editor/components/edge.cjs +2 -4
- package/lib/vef-approval-flow-editor/components/label-value.cjs +8 -10
- package/lib/vef-approval-flow-editor/components/node-content.cjs +10 -12
- package/lib/vef-approval-flow-editor/components/node-selector.cjs +4 -6
- package/lib/vef-approval-flow-editor/components/node-toolbar.cjs +1 -3
- package/lib/vef-approval-flow-editor/components/nodes/approval.cjs +1 -3
- package/lib/vef-approval-flow-editor/components/nodes/condition.cjs +1 -3
- package/lib/vef-approval-flow-editor/components/nodes/end.cjs +1 -3
- package/lib/vef-approval-flow-editor/components/nodes/handle.cjs +1 -3
- package/lib/vef-approval-flow-editor/components/nodes/index.cjs +1 -3
- package/lib/vef-approval-flow-editor/components/nodes/submit.cjs +1 -3
- package/lib/vef-approval-flow-editor/components/selector-content.cjs +9 -11
- package/lib/vef-approval-flow-editor/components/source-handle.cjs +1 -3
- package/lib/vef-approval-flow-editor/components/target-handle.cjs +1 -3
- package/lib/vef-approval-flow-editor/constants.cjs +1 -3
- package/lib/vef-approval-flow-editor/helper.cjs +1 -3
- package/lib/vef-approval-flow-editor/hooks/use-edges-interaction.cjs +1 -3
- package/lib/vef-approval-flow-editor/hooks/use-element-selection.cjs +1 -3
- package/lib/vef-approval-flow-editor/hooks/use-nodes-interaction.cjs +1 -3
- package/lib/vef-approval-flow-editor/index.cjs +1 -3
- package/lib/vef-approval-flow-editor/models/edge-node.cjs +1 -3
- package/lib/vef-approval-flow-editor/models/flow-node.cjs +1 -3
- package/lib/vef-approval-flow-editor/props.cjs +1 -3
- package/lib/vef-approval-flow-editor/store.cjs +1 -3
- package/lib/vef-approval-flow-editor/styles.cjs +12 -14
- package/lib/vef-approval-flow-editor/types.cjs +1 -3
- package/lib/vef-area-chart/index.cjs +1 -3
- package/lib/vef-area-chart/props.cjs +1 -3
- package/lib/vef-auto-sizer/index.cjs +1 -3
- package/lib/vef-auto-sizer/props.cjs +1 -3
- package/lib/vef-avatar/index.cjs +1 -3
- package/lib/vef-avatar/props.cjs +1 -3
- package/lib/vef-avatar-group/index.cjs +1 -3
- package/lib/vef-avatar-group/props.cjs +1 -3
- package/lib/vef-badge/index.cjs +1 -3
- package/lib/vef-badge/props.cjs +1 -3
- package/lib/vef-bar-chart/index.cjs +1 -3
- package/lib/vef-bar-chart/props.cjs +1 -3
- package/lib/vef-bool/hooks/use-bool-instance.cjs +1 -3
- package/lib/vef-bool/index.cjs +1 -3
- package/lib/vef-bool/props.cjs +1 -3
- package/lib/vef-breadcrumb/index.cjs +1 -3
- package/lib/vef-breadcrumb/props.cjs +1 -3
- package/lib/vef-button/components/base-button.cjs +1 -3
- package/lib/vef-button/index.cjs +1 -3
- package/lib/vef-button/props.cjs +1 -3
- package/lib/vef-card/index.cjs +1 -3
- package/lib/vef-card/props.cjs +1 -3
- package/lib/vef-card-meta/index.cjs +1 -3
- package/lib/vef-card-meta/props.cjs +1 -3
- package/lib/vef-chart-container/hooks/use-chart-container-context.cjs +1 -3
- package/lib/vef-chart-container/index.cjs +14 -11
- package/lib/vef-chart-container/props.cjs +1 -3
- package/lib/vef-chart-legend-content/index.cjs +10 -12
- package/lib/vef-chart-legend-content/props.cjs +1 -3
- package/lib/vef-chart-tooltip-content/index.cjs +22 -24
- package/lib/vef-chart-tooltip-content/props.cjs +1 -3
- package/lib/vef-checkbox/hooks/use-checkbox-instance.cjs +1 -3
- package/lib/vef-checkbox/hooks/use-data-options.cjs +1 -3
- package/lib/vef-checkbox/index.cjs +3 -5
- package/lib/vef-checkbox/props.cjs +1 -3
- package/lib/vef-col/index.cjs +1 -3
- package/lib/vef-col/props.cjs +1 -3
- package/lib/vef-color-picker/index.cjs +1 -3
- package/lib/vef-color-picker/props.cjs +1 -3
- package/lib/vef-compact/index.cjs +1 -3
- package/lib/vef-compact/props.cjs +1 -3
- package/lib/vef-config-provider/global-style.cjs +15 -17
- package/lib/vef-config-provider/hooks/use-ui-config.cjs +1 -3
- package/lib/vef-config-provider/index.cjs +3 -5
- package/lib/vef-config-provider/props.cjs +1 -3
- package/lib/vef-config-provider/store.cjs +1 -3
- package/lib/vef-container/index.cjs +1 -3
- package/lib/vef-container/props.cjs +1 -3
- package/lib/vef-crud-page/components/crud-actions.cjs +1 -3
- package/lib/vef-crud-page/components/crud-filter.cjs +1 -3
- package/lib/vef-crud-page/components/crud-footer.cjs +3 -5
- package/lib/vef-crud-page/components/crud-form-modal.cjs +1 -3
- package/lib/vef-crud-page/components/crud-header.cjs +1 -3
- package/lib/vef-crud-page/components/crud-table.cjs +1 -3
- package/lib/vef-crud-page/hooks/use-action-buttons.cjs +1 -3
- package/lib/vef-crud-page/hooks/use-crud-context.cjs +1 -3
- package/lib/vef-crud-page/hooks/use-crud-schema.cjs +1 -3
- package/lib/vef-crud-page/hooks/use-operation-buttons.cjs +1 -3
- package/lib/vef-crud-page/index.cjs +1 -3
- package/lib/vef-crud-page/props.cjs +1 -3
- package/lib/vef-crud-page/store.cjs +1 -3
- package/lib/vef-crud-page/types.cjs +1 -3
- package/lib/vef-data-grid/index.cjs +1 -3
- package/lib/vef-data-grid/props.cjs +1 -3
- package/lib/vef-data-table/index.cjs +1 -3
- package/lib/vef-data-table/props.cjs +1 -3
- package/lib/vef-divider/index.cjs +1 -3
- package/lib/vef-divider/props.cjs +1 -3
- package/lib/vef-drawer/components/action-button-wrapper.cjs +1 -3
- package/lib/vef-drawer/components/button-props.cjs +1 -3
- package/lib/vef-drawer/components/cancel-action-button.cjs +1 -3
- package/lib/vef-drawer/components/ok-action-button.cjs +1 -3
- package/lib/vef-drawer/context.cjs +1 -3
- package/lib/vef-drawer/index.cjs +3 -5
- package/lib/vef-drawer/props.cjs +1 -3
- package/lib/vef-dropdown/index.cjs +1 -3
- package/lib/vef-dropdown/props.cjs +1 -3
- package/lib/vef-dynamic-icon/index.cjs +1 -3
- package/lib/vef-dynamic-icon/props.cjs +1 -3
- package/lib/vef-empty/index.cjs +1 -3
- package/lib/vef-empty/props.cjs +1 -3
- package/lib/vef-empty-placeholder/index.cjs +4 -6
- package/lib/vef-empty-placeholder/props.cjs +1 -3
- package/lib/vef-error/error-icon.cjs +1 -3
- package/lib/vef-error/index.cjs +9 -11
- package/lib/vef-error/props.cjs +1 -3
- package/lib/vef-filter/components/action-buttons.cjs +5 -7
- package/lib/vef-filter/components/advanced-filter.cjs +8 -10
- package/lib/vef-filter/components/basic-filter.cjs +4 -6
- package/lib/vef-filter/components/fields/index.cjs +1 -3
- package/lib/vef-filter/components/fields/input-number.cjs +1 -3
- package/lib/vef-filter/components/fields/input.cjs +1 -3
- package/lib/vef-filter/components/fields/props.cjs +1 -3
- package/lib/vef-filter/components/fields/radio.cjs +1 -3
- package/lib/vef-filter/components/fields/select.cjs +1 -3
- package/lib/vef-filter/components/fields/tree-select.cjs +1 -3
- package/lib/vef-filter/components/filter-field.cjs +1 -3
- package/lib/vef-filter/components/filter-item.cjs +1 -3
- package/lib/vef-filter/event.cjs +1 -3
- package/lib/vef-filter/helper.cjs +1 -3
- package/lib/vef-filter/hooks/use-action-handlers.cjs +1 -3
- package/lib/vef-filter/hooks/use-computed-values.cjs +1 -3
- package/lib/vef-filter/hooks/use-filter-context.cjs +1 -3
- package/lib/vef-filter/hooks/use-filter-initialization.cjs +1 -3
- package/lib/vef-filter/hooks/use-filter-instance.cjs +1 -3
- package/lib/vef-filter/hooks/use-filter-items.cjs +1 -3
- package/lib/vef-filter/hooks/use-filter-values-change.cjs +1 -3
- package/lib/vef-filter/hooks/use-label-config.cjs +1 -3
- package/lib/vef-filter/index.cjs +2 -4
- package/lib/vef-filter/props.cjs +1 -3
- package/lib/vef-filter/store.cjs +1 -3
- package/lib/vef-filter/types.cjs +1 -3
- package/lib/vef-flex/index.cjs +1 -3
- package/lib/vef-flex/props.cjs +1 -3
- package/lib/vef-float-button/index.cjs +1 -3
- package/lib/vef-float-button/props.cjs +1 -3
- package/lib/vef-float-button-group/index.cjs +1 -3
- package/lib/vef-float-button-group/props.cjs +1 -3
- package/lib/vef-form/components/fields/icon-select.cjs +1 -3
- package/lib/vef-form/components/fields/index.cjs +1 -3
- package/lib/vef-form/components/fields/input-number.cjs +1 -3
- package/lib/vef-form/components/fields/input.cjs +1 -3
- package/lib/vef-form/components/fields/password.cjs +1 -3
- package/lib/vef-form/components/fields/props.cjs +1 -3
- package/lib/vef-form/components/fields/radio.cjs +1 -3
- package/lib/vef-form/components/fields/select.cjs +1 -3
- package/lib/vef-form/components/fields/textarea.cjs +1 -3
- package/lib/vef-form/components/fields/tree-select.cjs +1 -3
- package/lib/vef-form/components/form-actions.cjs +3 -5
- package/lib/vef-form/components/form-content.cjs +2 -4
- package/lib/vef-form/components/form-field.cjs +1 -3
- package/lib/vef-form/components/form-group.cjs +3 -5
- package/lib/vef-form/components/form-hidden-item.cjs +1 -3
- package/lib/vef-form/components/form-item.cjs +1 -3
- package/lib/vef-form/components/form-row.cjs +1 -3
- package/lib/vef-form/event.cjs +1 -3
- package/lib/vef-form/helper.cjs +1 -3
- package/lib/vef-form/hooks/use-action-handlers.cjs +1 -3
- package/lib/vef-form/hooks/use-columns-layout.cjs +1 -3
- package/lib/vef-form/hooks/use-computed-values.cjs +1 -3
- package/lib/vef-form/hooks/use-form-context.cjs +1 -3
- package/lib/vef-form/hooks/use-form-initialization.cjs +1 -3
- package/lib/vef-form/hooks/use-form-instance.cjs +1 -3
- package/lib/vef-form/hooks/use-form-values-change.cjs +1 -3
- package/lib/vef-form/hooks/use-label-width.cjs +1 -3
- package/lib/vef-form/index.cjs +3 -5
- package/lib/vef-form/props.cjs +1 -3
- package/lib/vef-form/store.cjs +1 -3
- package/lib/vef-form/types.cjs +1 -3
- package/lib/vef-form/validation-rules.cjs +1 -3
- package/lib/vef-form-drawer/index.cjs +1 -3
- package/lib/vef-form-drawer/props.cjs +1 -3
- package/lib/vef-form-modal/index.cjs +1 -3
- package/lib/vef-form-modal/props.cjs +1 -3
- package/lib/vef-generic-select/index.cjs +1 -3
- package/lib/vef-generic-select/props.cjs +1 -3
- package/lib/vef-grid/index.cjs +18 -8
- package/lib/vef-grid/props.cjs +1 -3
- package/lib/vef-grid-item/index.cjs +1 -3
- package/lib/vef-grid-item/props.cjs +1 -3
- package/lib/vef-icon/index.cjs +1 -3
- package/lib/vef-icon/props.cjs +1 -3
- package/lib/vef-icon-select/index.cjs +11 -13
- package/lib/vef-icon-select/props.cjs +1 -3
- package/lib/vef-input/hooks/use-input-instance.cjs +1 -3
- package/lib/vef-input/index.cjs +1 -3
- package/lib/vef-input/props.cjs +1 -3
- package/lib/vef-input-number/hooks/use-input-number-instance.cjs +1 -3
- package/lib/vef-input-number/index.cjs +1 -3
- package/lib/vef-input-number/props.cjs +1 -3
- package/lib/vef-layout/common-styles.cjs +4 -6
- package/lib/vef-layout/components/content.cjs +1 -3
- package/lib/vef-layout/components/font-size.cjs +1 -3
- package/lib/vef-layout/components/fullscreen.cjs +1 -3
- package/lib/vef-layout/components/header-action-icons.cjs +6 -8
- package/lib/vef-layout/components/header-content.cjs +1 -3
- package/lib/vef-layout/components/header.cjs +6 -8
- package/lib/vef-layout/components/icon-boy.cjs +1 -3
- package/lib/vef-layout/components/icon-girl.cjs +1 -3
- package/lib/vef-layout/components/icon-menu-fold-left.cjs +1 -3
- package/lib/vef-layout/components/icon-menu-unfold-left.cjs +1 -3
- package/lib/vef-layout/components/menu-groups.cjs +15 -17
- package/lib/vef-layout/components/message.cjs +1 -3
- package/lib/vef-layout/components/search.cjs +1 -3
- package/lib/vef-layout/components/sider.cjs +5 -7
- package/lib/vef-layout/components/title.cjs +8 -10
- package/lib/vef-layout/components/user-avatar.cjs +9 -11
- package/lib/vef-layout/hooks/use-layout-context.cjs +1 -3
- package/lib/vef-layout/index.cjs +2 -4
- package/lib/vef-layout/logo.svg.cjs +1 -3
- package/lib/vef-layout/props.cjs +1 -3
- package/lib/vef-layout/store.cjs +1 -3
- package/lib/vef-line-chart/index.cjs +1 -3
- package/lib/vef-line-chart/props.cjs +1 -3
- package/lib/vef-loading-placeholder/index.cjs +5 -7
- package/lib/vef-loading-placeholder/props.cjs +1 -3
- package/lib/vef-login/index.cjs +21 -23
- package/lib/vef-login/login-icon.cjs +1 -3
- package/lib/vef-login/props.cjs +1 -3
- package/lib/vef-menu/index.cjs +4 -6
- package/lib/vef-menu/props.cjs +1 -3
- package/lib/vef-modal/components/action-button-wrapper.cjs +1 -3
- package/lib/vef-modal/components/button-props.cjs +1 -3
- package/lib/vef-modal/components/cancel-action-button.cjs +1 -3
- package/lib/vef-modal/components/ok-action-button.cjs +1 -3
- package/lib/vef-modal/context.cjs +1 -3
- package/lib/vef-modal/index.cjs +2 -4
- package/lib/vef-modal/props.cjs +1 -3
- package/lib/vef-not-found/index.cjs +9 -11
- package/lib/vef-not-found/not-found-icon.cjs +1 -3
- package/lib/vef-not-found/props.cjs +1 -3
- package/lib/vef-page/index.cjs +10 -12
- package/lib/vef-page/props.cjs +1 -3
- package/lib/vef-pagination/index.cjs +1 -3
- package/lib/vef-pagination/props.cjs +1 -3
- package/lib/vef-paragraph/index.cjs +1 -3
- package/lib/vef-paragraph/props.cjs +1 -3
- package/lib/vef-password/hooks/use-password-instance.cjs +1 -3
- package/lib/vef-password/index.cjs +1 -3
- package/lib/vef-password/props.cjs +1 -3
- package/lib/vef-pie-chart/index.cjs +8 -10
- package/lib/vef-pie-chart/props.cjs +1 -3
- package/lib/vef-popconfirm/index.cjs +1 -3
- package/lib/vef-popconfirm/props.cjs +1 -3
- package/lib/vef-popover/index.cjs +1 -3
- package/lib/vef-popover/props.cjs +1 -3
- package/lib/vef-radio/hooks/use-data-options.cjs +1 -3
- package/lib/vef-radio/hooks/use-radio-instance.cjs +1 -3
- package/lib/vef-radio/index.cjs +3 -5
- package/lib/vef-radio/props.cjs +1 -3
- package/lib/vef-rate/hooks/use-rate-instance.cjs +1 -3
- package/lib/vef-rate/index.cjs +1 -3
- package/lib/vef-rate/props.cjs +1 -3
- package/lib/vef-responsive-container/index.cjs +2 -4
- package/lib/vef-responsive-container/props.cjs +1 -3
- package/lib/vef-responsive-item/index.cjs +2 -4
- package/lib/vef-responsive-item/props.cjs +1 -3
- package/lib/vef-ribbon/index.cjs +1 -3
- package/lib/vef-ribbon/props.cjs +1 -3
- package/lib/vef-row/index.cjs +1 -3
- package/lib/vef-row/props.cjs +1 -3
- package/lib/vef-scroll-area/components/scrollbar.cjs +7 -9
- package/lib/vef-scroll-area/index.cjs +3 -5
- package/lib/vef-scroll-area/props.cjs +1 -3
- package/lib/vef-select/components/option.cjs +3 -5
- package/lib/vef-select/hooks/use-data-options.cjs +1 -3
- package/lib/vef-select/hooks/use-field-names.cjs +1 -3
- package/lib/vef-select/hooks/use-render-label.cjs +2 -4
- package/lib/vef-select/hooks/use-render-option.cjs +1 -3
- package/lib/vef-select/hooks/use-select-instance.cjs +1 -3
- package/lib/vef-select/index.cjs +1 -3
- package/lib/vef-select/props.cjs +1 -3
- package/lib/vef-slider/hooks/use-slider-instance.cjs +1 -3
- package/lib/vef-slider/index.cjs +1 -3
- package/lib/vef-slider/props.cjs +1 -3
- package/lib/vef-sortable-list/components/overlay-item.cjs +2 -4
- package/lib/vef-sortable-list/components/sortable-item.cjs +2 -4
- package/lib/vef-sortable-list/hooks/use-merged-items.cjs +1 -3
- package/lib/vef-sortable-list/index.cjs +1 -3
- package/lib/vef-sortable-list/props.cjs +1 -3
- package/lib/vef-space/index.cjs +1 -3
- package/lib/vef-space/props.cjs +1 -3
- package/lib/vef-spin/index.cjs +1 -3
- package/lib/vef-spin/props.cjs +1 -3
- package/lib/vef-splitter/index.cjs +1 -3
- package/lib/vef-splitter/props.cjs +1 -3
- package/lib/vef-splitter-panel/index.cjs +1 -3
- package/lib/vef-splitter-panel/props.cjs +1 -3
- package/lib/vef-status/index.cjs +1 -3
- package/lib/vef-status/props.cjs +1 -3
- package/lib/vef-table/components/columns/bool.cjs +1 -3
- package/lib/vef-table/components/columns/code.cjs +1 -3
- package/lib/vef-table/components/columns/data-dictionary.cjs +1 -3
- package/lib/vef-table/components/columns/enum.cjs +1 -3
- package/lib/vef-table/components/columns/file.cjs +1 -3
- package/lib/vef-table/components/columns/icon.cjs +1 -3
- package/lib/vef-table/components/columns/id.cjs +1 -3
- package/lib/vef-table/components/columns/image.cjs +1 -3
- package/lib/vef-table/components/columns/index.cjs +1 -3
- package/lib/vef-table/components/columns/markdown.cjs +1 -3
- package/lib/vef-table/components/columns/number.cjs +1 -3
- package/lib/vef-table/components/columns/props.cjs +1 -3
- package/lib/vef-table/components/columns/render.cjs +1 -3
- package/lib/vef-table/components/columns/rich-text.cjs +1 -3
- package/lib/vef-table/components/columns/text.cjs +1 -3
- package/lib/vef-table/components/columns-settings.cjs +10 -12
- package/lib/vef-table/components/operation-buttons.cjs +2 -4
- package/lib/vef-table/components/settings-icon.cjs +3 -5
- package/lib/vef-table/components/table-footer.cjs +3 -5
- package/lib/vef-table/helper.cjs +1 -3
- package/lib/vef-table/hooks/use-computed-batch-buttons.cjs +1 -3
- package/lib/vef-table/hooks/use-computed-columns.cjs +1 -3
- package/lib/vef-table/hooks/use-computed-values.cjs +1 -3
- package/lib/vef-table/hooks/use-data.cjs +1 -3
- package/lib/vef-table/hooks/use-default-column-configs.cjs +1 -3
- package/lib/vef-table/hooks/use-display-value.cjs +1 -3
- package/lib/vef-table/hooks/use-helper-columns.cjs +1 -3
- package/lib/vef-table/hooks/use-operation-column-width.cjs +1 -3
- package/lib/vef-table/hooks/use-pagination-props.cjs +1 -3
- package/lib/vef-table/hooks/use-row-props.cjs +1 -3
- package/lib/vef-table/hooks/use-row-selection-config.cjs +1 -3
- package/lib/vef-table/hooks/use-selected-rows.cjs +1 -3
- package/lib/vef-table/hooks/use-table-columns.cjs +1 -3
- package/lib/vef-table/hooks/use-table-context.cjs +1 -3
- package/lib/vef-table/hooks/use-table-instance.cjs +1 -3
- package/lib/vef-table/hooks/use-table-summary.cjs +1 -3
- package/lib/vef-table/hooks/use-table-width.cjs +1 -3
- package/lib/vef-table/index.cjs +5 -7
- package/lib/vef-table/props.cjs +1 -3
- package/lib/vef-table/store.cjs +1 -3
- package/lib/vef-table/types.cjs +1 -3
- package/lib/vef-tabs/index.cjs +1 -3
- package/lib/vef-tabs/props.cjs +1 -3
- package/lib/vef-tag/index.cjs +1 -3
- package/lib/vef-tag/props.cjs +1 -3
- package/lib/vef-temporal-picker/helper.cjs +1 -3
- package/lib/vef-temporal-picker/hooks/use-dayjs-value.cjs +1 -3
- package/lib/vef-temporal-picker/hooks/use-temporal-limit.cjs +1 -3
- package/lib/vef-temporal-picker/hooks/use-temporal-picker-instance.cjs +1 -3
- package/lib/vef-temporal-picker/index.cjs +1 -3
- package/lib/vef-temporal-picker/props.cjs +1 -3
- package/lib/vef-temporal-range-picker/helper.cjs +1 -3
- package/lib/vef-temporal-range-picker/hooks/use-dayjs-values.cjs +1 -3
- package/lib/vef-temporal-range-picker/hooks/use-temporal-limit.cjs +1 -3
- package/lib/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.cjs +1 -3
- package/lib/vef-temporal-range-picker/index.cjs +1 -3
- package/lib/vef-temporal-range-picker/props.cjs +1 -3
- package/lib/vef-text/index.cjs +1 -3
- package/lib/vef-text/props.cjs +1 -3
- package/lib/vef-textarea/hooks/use-textarea-instance.cjs +1 -3
- package/lib/vef-textarea/index.cjs +1 -3
- package/lib/vef-textarea/props.cjs +1 -3
- package/lib/vef-title/index.cjs +6 -8
- package/lib/vef-title/props.cjs +1 -3
- package/lib/vef-tooltip/index.cjs +1 -3
- package/lib/vef-tooltip/props.cjs +1 -3
- package/lib/vef-tree-select/hooks/use-change-handler.cjs +1 -3
- package/lib/vef-tree-select/hooks/use-data-options.cjs +1 -3
- package/lib/vef-tree-select/hooks/use-tree-select-instance.cjs +1 -3
- package/lib/vef-tree-select/index.cjs +1 -3
- package/lib/vef-tree-select/props.cjs +1 -3
- package/lib/vef-virtual-grid/index.cjs +3 -5
- package/lib/vef-virtual-grid/props.cjs +1 -3
- package/lib/vef-virtual-list/index.cjs +4 -6
- package/lib/vef-virtual-list/props.cjs +1 -3
- package/package.json +4 -4
package/es/vef-page/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsxs as e,jsx as o,Fragment as t}from"@emotion/react/jsx-runtime";import{css as a}from"@emotion/react";import{themeVariables as r}from"@vef-framework/shared";import i from"clsx";import{AnimatePresence as n,motion as l}from"motion/react";import c from"../vef-scroll-area/index.js";import d from"../vef-title/index.js";const f=a`
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsxs,jsx,Fragment}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{themeVariables}from"@vef-framework/shared";import clsx from"clsx";import{AnimatePresence,motion}from"motion/react";import VefScrollArea from"../vef-scroll-area/index.js";import VefTitle from"../vef-title/index.js";const pageStyle=css`
|
|
3
2
|
height: 100%;
|
|
4
3
|
display: flex;
|
|
5
4
|
flex-direction: column;
|
|
6
|
-
background-color: ${
|
|
5
|
+
background-color: ${themeVariables.colorBgLayout};
|
|
7
6
|
|
|
8
7
|
.vef-page-header {
|
|
9
8
|
flex: none;
|
|
10
|
-
background-color: ${
|
|
11
|
-
padding: ${
|
|
12
|
-
border-bottom: ${
|
|
9
|
+
background-color: ${themeVariables.colorBgContainer};
|
|
10
|
+
padding: ${themeVariables.paddingSm} ${themeVariables.paddingLg};
|
|
11
|
+
border-bottom: ${themeVariables.lineWidth} ${themeVariables.lineType} ${themeVariables.colorBorderSecondary};
|
|
13
12
|
|
|
14
13
|
&.vef-page-header-default {
|
|
15
14
|
display: flex;
|
|
@@ -37,10 +36,10 @@ import{jsxs as e,jsx as o,Fragment as t}from"@emotion/react/jsx-runtime";import{
|
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
.vef-page-content {
|
|
40
|
-
margin: ${
|
|
39
|
+
margin: ${themeVariables.marginSm};
|
|
41
40
|
|
|
42
41
|
&.vef-page-content-footer-padding {
|
|
43
|
-
padding-bottom: calc(${
|
|
42
|
+
padding-bottom: calc(${themeVariables.controlHeight} * 2);
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
|
|
@@ -50,10 +49,9 @@ import{jsxs as e,jsx as o,Fragment as t}from"@emotion/react/jsx-runtime";import{
|
|
|
50
49
|
left: 0;
|
|
51
50
|
right: 0;
|
|
52
51
|
z-index: 9;
|
|
53
|
-
border-top: ${
|
|
52
|
+
border-top: ${themeVariables.lineWidth} ${themeVariables.lineType} ${themeVariables.colorBorderSecondary};
|
|
54
53
|
background-color: rgba(255, 255, 255, 0.6);
|
|
55
54
|
backdrop-filter: blur(8px);
|
|
56
|
-
height: calc(${
|
|
55
|
+
height: calc(${themeVariables.controlHeight} * 2);
|
|
57
56
|
}
|
|
58
|
-
`;function VefPage({title
|
|
59
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
57
|
+
`;function VefPage({title,actions,header,footer,scrollable=!1,children}){return jsxs("div",{css:pageStyle,children:[header!==!1&&jsx("div",{className:clsx("vef-page-header",{"vef-page-header-default":!header}),children:header||jsxs(Fragment,{children:[jsx(VefTitle,{noPaddingBottom:!0,showLeftBar:!0,className:"vef-page-title",level:5,children:title??"无标题"}),jsx("div",{className:"vef-page-actions",children:actions})]})}),scrollable?jsxs(VefScrollArea,{className:"vef-page-body",scrollDirection:"both",children:[jsx("div",{className:clsx("vef-page-content",{"vef-page-content-footer-padding":!!footer}),children}),jsx(AnimatePresence,{children:footer&&jsx(motion.div,{className:"vef-page-footer",animate:{opacity:1,y:0},exit:{opacity:0,y:60},initial:{opacity:0,y:60},transition:{duration:.2,ease:"easeInOut"},children:footer})})]}):jsx("div",{className:"vef-page-body vef-page-content",children})]})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefPage as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsxs as e,Fragment as t,jsx as a}from"@emotion/react/jsx-runtime";import{Pagination as o}from"antd";import{memo as i}from"react";import r from"../vef-text/index.js";import{defaultPageSizeOptions as n}from"./props.js";function renderTotal(o){return e(t,{children:["共"," ",a(r,{bold:!0,children:o})," ","条"]})}const l={listHeight:300};const m=i((function VefPaginationBase({defaultPageNumber:e,defaultPageSize:t,pageNumber:i,pageSize:r,total:m,size:p,pageSizeOptions:u=n,allowChangePageSize:s=!0,showTotal:d=!0,compact:f,allowQuickJump:g,onChange:c,...h}){return a(o,{current:i,defaultCurrent:e,defaultPageSize:t,pageSize:r,pageSizeOptions:u,showQuickJumper:g,showSizeChanger:s?l:s,showTotal:d?renderTotal:void 0,simple:f,size:"medium"===p?"default":p,total:m,onChange:c,...h})}));m.displayName="VefPagination";export{m as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsxs,Fragment,jsx}from"@emotion/react/jsx-runtime";import{Pagination}from"antd";import{memo}from"react";import VefText from"../vef-text/index.js";import{defaultPageSizeOptions}from"./props.js";function renderTotal(total){return jsxs(Fragment,{children:["共"," ",jsx(VefText,{bold:!0,children:total})," ","条"]})}const sizeChangerProps={listHeight:300};function VefPaginationBase({defaultPageNumber,defaultPageSize,pageNumber,pageSize,total,size,pageSizeOptions=defaultPageSizeOptions,allowChangePageSize=!0,showTotal=!0,compact,allowQuickJump,onChange,...restProps}){return jsx(Pagination,{current:pageNumber,defaultCurrent:defaultPageNumber,defaultPageSize,pageSize,pageSizeOptions,showQuickJumper:allowQuickJump,showSizeChanger:allowChangePageSize&&sizeChangerProps,showTotal:showTotal?renderTotal:void 0,simple:compact,size:size==="medium"?"default":size,total,onChange,...restProps})}const VefPagination=memo(VefPaginationBase);VefPagination.displayName="VefPagination";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefPagination as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
const o=[5,10,15,20,30,40,50,100];export{o as defaultPageSizeOptions};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */const defaultPageSizeOptions=[5,10,15,20,30,40,50,100];/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{defaultPageSizeOptions};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{useColorTokens as o}from"@vef-framework/hooks";import{isFunction as r}from"@vef-framework/shared";import{Typography as a}from"antd";import{useMemo as t}from"react";const{Paragraph:n}=a;function VefParagraph({variant:a,color:p,bold:d,ellipsis:i,ellipsisRows:s=2,expandable:l,defaultExpanded:f,expanded:c,copyable:m,copiedText:x,onCopy:u,onExpand:h,...y}){const b=t((()=>{if(i)return{rows:s,expandable:l?"collapsible":void 0,defaultExpanded:f,expanded:c,onExpand:r(h)?(e,{expanded:o})=>{h(o)}:void 0}}),[l,f,i,s,c,h]),g=o(),v=t((()=>{const e={};return"strikethrough"===a?e.delete=!0:a&&(e[a]=!0),"secondary"===p?e.type="secondary":p&&(e.css={color:g.get(p)}),d&&(e.strong=!0),e}),[d,p,g,a]),k=t((()=>{if(m)return{format:"text/plain",text:x,onCopy:u}}),[m,x,u]);return e(n,{copyable:k,ellipsis:b,...v,...y})}export{VefParagraph as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{useColorTokens}from"@vef-framework/hooks";import{isFunction}from"@vef-framework/shared";import{Typography}from"antd";import{useMemo}from"react";const{Paragraph}=Typography;function VefParagraph({variant,color,bold,ellipsis,ellipsisRows=2,expandable,defaultExpanded,expanded,copyable,copiedText,onCopy,onExpand,...restProps}){const ellipsisConfig=useMemo(()=>{if(ellipsis)return{rows:ellipsisRows,expandable:expandable?"collapsible":void 0,defaultExpanded,expanded,onExpand:isFunction(onExpand)?(_,{expanded:expanded2})=>{onExpand(expanded2)}:void 0}},[expandable,defaultExpanded,ellipsis,ellipsisRows,expanded,onExpand]),colorTokens=useColorTokens(),styleProps=useMemo(()=>{const props={};return variant==="strikethrough"?props.delete=!0:variant&&(props[variant]=!0),color==="secondary"?props.type="secondary":color&&(props.css={color:colorTokens.get(color)}),bold&&(props.strong=!0),props},[bold,color,colorTokens,variant]),copyConfig=useMemo(()=>{if(copyable)return{format:"text/plain",text:copiedText,onCopy}},[copyable,copiedText,onCopy]);return jsx(Paragraph,{copyable:copyConfig,ellipsis:ellipsisConfig,...styleProps,...restProps})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefParagraph as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useRef as r,useImperativeHandle as n}from"react";function usePasswordInstance(e){const s=r(null);return n(e,(()=>({blur:()=>s.current?.blur(),focus:()=>s.current?.focus({preventScroll:!0})}))),s}export{usePasswordInstance};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{useRef,useImperativeHandle}from"react";function usePasswordInstance(ref){const passwordRef=useRef(null);return useImperativeHandle(ref,()=>({blur:()=>passwordRef.current?.blur(),focus:()=>passwordRef.current?.focus({preventScroll:!0})})),passwordRef}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{usePasswordInstance};
|
package/es/vef-password/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{isFunction as o}from"@vef-framework/shared";import{Input as r}from"antd";import{forwardRef as a,useMemo as t}from"react";import"../internal/index.js";import{usePasswordInstance as n}from"./hooks/use-password-instance.js";import{convertBasicSizeToUiSize as l}from"../internal/utils.js";const{Password:s}=r;function normalizeValue(e){return""===e?null:e}const u=a((({defaultValue:r,value:a,size:u,clearable:i,showCount:m,onChange:d,onEnterKeyPress:f,onBlur:v,onFocus:c,...p},V)=>{const w=t((()=>({onChange:o(d)?e=>d(normalizeValue(e.target.value)):void 0,onPressEnter:o(f)?e=>f(normalizeValue(e.target.value)):void 0,onBlur:o(v)?e=>v(normalizeValue(e.target.value)):void 0,onFocus:o(c)?e=>c(normalizeValue(e.target.value)):void 0})),[d,f,v,c]),z=n(V);return e(s,{ref:z,allowClear:i,defaultValue:r,showCount:m,size:l(u),value:a,...p,...w})}));u.displayName="VefPassword";export{u as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{isFunction}from"@vef-framework/shared";import{Input}from"antd";import{forwardRef,useMemo}from"react";import"../internal/index.js";import{usePasswordInstance}from"./hooks/use-password-instance.js";import{convertBasicSizeToUiSize}from"../internal/utils.js";const{Password}=Input;function normalizeValue(value){return value===""?null:value}const VefPassword=forwardRef(({defaultValue,value,size,clearable,showCount,onChange,onEnterKeyPress,onBlur,onFocus,...restProps},ref)=>{const eventHandlers=useMemo(()=>({onChange:isFunction(onChange)?event=>onChange(normalizeValue(event.target.value)):void 0,onPressEnter:isFunction(onEnterKeyPress)?event=>onEnterKeyPress(normalizeValue(event.target.value)):void 0,onBlur:isFunction(onBlur)?event=>onBlur(normalizeValue(event.target.value)):void 0,onFocus:isFunction(onFocus)?event=>onFocus(normalizeValue(event.target.value)):void 0}),[onChange,onEnterKeyPress,onBlur,onFocus]),passwordRef=usePasswordInstance(ref);return jsx(Password,{ref:passwordRef,allowClear:clearable,defaultValue,showCount,size:convertBasicSizeToUiSize(size),value,...restProps,...eventHandlers})});VefPassword.displayName="VefPassword";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefPassword as default};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
font-
|
|
5
|
-
font-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
`;const y=i((function VefPieChartBase({config:n,data:r,dataKey:i,nameKey:y,valueFormatter:u,innerRadius:g=60}){const v=o((()=>r.reduce(((e,t)=>e+Number(t[i]??0)),0)),[r,i]);return e(l,{config:n,children:t(a,{children:[e(c,{content:e(x,{hideLabel:!0,valueFormatter:u})}),e(m,{content:e(s,{})}),e(d,{data:r,dataKey:i,innerRadius:g,nameKey:y,children:e(f,{content:({viewBox:r})=>{if(r&&"cx"in r&&"cy"in r&&(r.innerRadius??0)>50)return t("text",{dominantBaseline:"middle",textAnchor:"middle",x:r.cx,y:r.cy,children:[e("tspan",{css:h,x:r.cx,y:r.cy,children:v}),e("tspan",{css:p,x:r.cx,y:(r.cy||0)+28,children:n[i]?.label??i})]})}})})]})})}));export{y as default};
|
|
10
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx,jsxs}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{themeVariables}from"@vef-framework/shared";import{useMemo,memo}from"react";import{PieChart,Tooltip,Legend,Pie,Label}from"recharts";import VefChartContainer from"../vef-chart-container/index.js";import{VefChartLegendContent}from"../vef-chart-legend-content/index.js";import VefChartTooltipContent from"../vef-chart-tooltip-content/index.js";const valueStyle=css`
|
|
2
|
+
fill: ${themeVariables.colorText};
|
|
3
|
+
font-size: ${themeVariables.fontSizeHeading3};
|
|
4
|
+
font-weight: ${themeVariables.fontWeightStrong};
|
|
5
|
+
font-family: ${themeVariables.fontFamilyCode};
|
|
6
|
+
`,labelStyle=css`
|
|
7
|
+
fill: ${themeVariables.colorTextDescription};
|
|
8
|
+
`;function VefPieChartBase({config,data,dataKey,nameKey,valueFormatter,innerRadius=60}){const total=useMemo(()=>data.reduce((acc,item)=>acc+Number(item[dataKey]??0),0),[data,dataKey]);return jsx(VefChartContainer,{config,children:jsxs(PieChart,{children:[jsx(Tooltip,{content:jsx(VefChartTooltipContent,{hideLabel:!0,valueFormatter})}),jsx(Legend,{content:jsx(VefChartLegendContent,{})}),jsx(Pie,{data,dataKey,innerRadius,nameKey,children:jsx(Label,{content:({viewBox})=>{if(viewBox&&"cx"in viewBox&&"cy"in viewBox&&(viewBox.innerRadius??0)>50)return jsxs("text",{dominantBaseline:"middle",textAnchor:"middle",x:viewBox.cx,y:viewBox.cy,children:[jsx("tspan",{css:valueStyle,x:viewBox.cx,y:viewBox.cy,children:total}),jsx("tspan",{css:labelStyle,x:viewBox.cx,y:(viewBox.cy||0)+28,children:config[dataKey]?.label??dataKey})]})}})})]})})}const VefPieChart=memo(VefPieChartBase);/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefPieChart as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{defaultMessageTitle as o,infoIcon as n}from"@vef-framework/shared";import{Popconfirm as t}from"antd";import{CheckIcon as r}from"lucide-react";import{forwardRef as a,useRef as p,useImperativeHandle as c}from"react";import i from"../vef-icon/index.js";const l={autoInsertSpace:!1,icon:e(i,{children:e(r,{})})},m={autoInsertSpace:!1,variant:"text",color:"default"};function popupClickHandler(e){e.stopPropagation()}const f=a((({title:r=o,content:a,cancelable:i=!0,defaultOpened:f,opened:u,onOpenedChange:d,onOk:s,onCancel:C,...k},h)=>{const O=p(null);return c(h,(()=>O.current.nativeElement)),e(t,{ref:O,cancelButtonProps:m,defaultOpen:f,description:a,icon:n,okButtonProps:l,open:u,showCancel:i,title:r,onCancel:C,onConfirm:s,onOpenChange:d,onPopupClick:popupClickHandler,...k})}));f.displayName="VefPopconfirm";export{f as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{defaultMessageTitle,infoIcon}from"@vef-framework/shared";import{Popconfirm}from"antd";import{CheckIcon}from"lucide-react";import{forwardRef,useRef,useImperativeHandle}from"react";import VefIcon from"../vef-icon/index.js";const okButtonProps={autoInsertSpace:!1,icon:jsx(VefIcon,{children:jsx(CheckIcon,{})})},cancelButtonProps={autoInsertSpace:!1,variant:"text",color:"default"};function popupClickHandler(event){event.stopPropagation()}const VefPopconfirm=forwardRef(({title=defaultMessageTitle,content,cancelable=!0,defaultOpened,opened,onOpenedChange,onOk,onCancel,...restProps},ref)=>{const tooltipRef=useRef(null);return useImperativeHandle(ref,()=>tooltipRef.current.nativeElement),jsx(Popconfirm,{ref:tooltipRef,cancelButtonProps,defaultOpen:defaultOpened,description:content,icon:infoIcon,okButtonProps,open:opened,showCancel:cancelable,title,onCancel,onConfirm:onOk,onOpenChange:onOpenedChange,onPopupClick:popupClickHandler,...restProps})});VefPopconfirm.displayName="VefPopconfirm";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefPopconfirm as default};
|
package/es/vef-popover/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as t}from"@emotion/react/jsx-runtime";import{Popover as e}from"antd";import{forwardRef as r,useRef as o,useMemo as n,useImperativeHandle as i}from"react";const a=r((({title:r,content:a,contentStyle:c,trigger:l="click",arrow:m=!1,...s},f)=>{const p=o(null),u=n((()=>({body:c})),[c]);return i(f,(()=>p.current.nativeElement)),t(e,{ref:p,arrow:m,content:a,styles:u,title:r,trigger:l,...s})}));a.displayName="VefPopover";export{a as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Popover}from"antd";import{forwardRef,useRef,useMemo,useImperativeHandle}from"react";const VefPopover=forwardRef(({title,content,contentStyle,trigger="click",arrow=!1,...restProps},ref)=>{const popoverRef=useRef(null),styles=useMemo(()=>({body:contentStyle}),[contentStyle]);return useImperativeHandle(ref,()=>popoverRef.current.nativeElement),jsx(Popover,{ref:popoverRef,arrow,content,styles,title,trigger,...restProps})});VefPopover.displayName="VefPopover";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefPopover as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useComputedOptions as e}from"@vef-framework/hooks";import{isFunction as o,isNullish as a}from"@vef-framework/shared";import{useMemo as t,useLayoutEffect as r}from"react";function useDataOptions({value:i,onChange:n,...s}){const{normalizedOptions:p,defaultOption:u,isLoading:f}=e({...s,isGrouped:!1,filterable:!1,selectedOptionValues:i?[i]:[]}),l=t((()=>p.reduce(((e,o)=>(e.set(o.value,o),e)),new Map)),[p]);return r((()=>{u&&o(n)&&a(i)&&n(u.value,u)}),[u,n,i]),{optionsMap:l,normalizedOptions:p,isLoading:f}}export{useDataOptions};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{useComputedOptions}from"@vef-framework/hooks";import{isFunction,isNullish}from"@vef-framework/shared";import{useMemo,useLayoutEffect}from"react";function useDataOptions({value,onChange,...rest}){const{normalizedOptions,defaultOption,isLoading}=useComputedOptions({...rest,isGrouped:!1,filterable:!1,selectedOptionValues:value?[value]:[]}),optionsMap=useMemo(()=>normalizedOptions.reduce((map,option)=>(map.set(option.value,option),map),new Map),[normalizedOptions]);return useLayoutEffect(()=>{defaultOption&&isFunction(onChange)&&isNullish(value)&&onChange(defaultOption.value,defaultOption)},[defaultOption,onChange,value]),{optionsMap,normalizedOptions,isLoading}}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{useDataOptions};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useRef as r,useImperativeHandle as t}from"react";function useRadioInstance(n,e){const o=r(null);return t(n,(()=>({blur:()=>{o.current?.blur()},focus:()=>{o.current?.focus({preventScroll:!0})},getDataOptions:()=>e}))),o}export{useRadioInstance};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{useRef,useImperativeHandle}from"react";function useRadioInstance(ref,dataOptions){const radioRef=useRef(null);return useImperativeHandle(ref,()=>({blur:()=>{radioRef.current?.blur()},focus:()=>{radioRef.current?.focus({preventScroll:!0})},getDataOptions:()=>dataOptions})),radioRef}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{useRadioInstance};
|
package/es/vef-radio/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
`,children:e(d,{})});const h=a(l((function VefRadioBase({defaultValue:o,value:t,disabled:a,block:l,variant:d,buttonVariant:h,buttonSize:v,onChange:b,...g},j){const{optionsMap:k,normalizedOptions:x,isLoading:V}=m({value:t,onChange:b,...g}),y=u(j,x),z=n((()=>{if(i(b))return({target:{value:e}})=>{b(e,k.get(e))}}),[b,k]);if(V)return c;const C=x.map((o=>{const{value:t,label:i,disabled:n,description:a}=o;return a?e(s,{content:a,children:e(r,{disabled:n,value:t,children:i})},t):e(r,{disabled:n,value:t,children:i},t)}));return e(f,{ref:y,block:l,buttonStyle:h,defaultValue:o,disabled:a,optionType:d,size:p(v),onChange:z,...void 0===t?{}:{value:t},children:C})})));h.displayName="VefRadio";export{h as default};
|
|
5
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{themeVariables,isFunction}from"@vef-framework/shared";import{Radio}from"antd";import{useMemo,memo,forwardRef}from"react";import"../internal/index.js";import VefLoadingPlaceholder from"../vef-loading-placeholder/index.js";import VefTooltip from"../vef-tooltip/index.js";import{useDataOptions}from"./hooks/use-data-options.js";import{useRadioInstance}from"./hooks/use-radio-instance.js";import{convertBasicSizeToUiSize}from"../internal/utils.js";const{Group}=Radio,loadingPlaceholder=jsx("div",{css:css`
|
|
2
|
+
height: ${themeVariables.controlHeight}
|
|
3
|
+
`,children:jsx(VefLoadingPlaceholder,{})});function VefRadioBase({defaultValue,value,disabled,block,variant,buttonVariant,buttonSize,onChange,...restProps},ref){const{optionsMap,normalizedOptions,isLoading}=useDataOptions({value,onChange,...restProps}),radioRef=useRadioInstance(ref,normalizedOptions),handleChange=useMemo(()=>{if(isFunction(onChange))return({target:{value:value2}})=>{onChange(value2,optionsMap.get(value2))}},[onChange,optionsMap]);if(isLoading)return loadingPlaceholder;const radios=normalizedOptions.map(option=>{const{value:value2,label,disabled:disabled2,description}=option;return description?jsx(VefTooltip,{content:description,children:jsx(Radio,{disabled:disabled2,value:value2,children:label})},value2):jsx(Radio,{disabled:disabled2,value:value2,children:label},value2)});return jsx(Group,{ref:radioRef,block,buttonStyle:buttonVariant,defaultValue,disabled,optionType:variant,size:convertBasicSizeToUiSize(buttonSize),onChange:handleChange,...value===void 0?{}:{value},children:radios})}const VefRadio=memo(forwardRef(VefRadioBase));VefRadio.displayName="VefRadio";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefRadio as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useRef as r,useImperativeHandle as t}from"react";function useRateInstance(e){const n=r(null);return t(e,(()=>({blur:()=>n.current?.blur(),focus:()=>n.current?.focus()}))),n}export{useRateInstance};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{useRef,useImperativeHandle}from"react";function useRateInstance(ref){const rateRef=useRef(null);return useImperativeHandle(ref,()=>({blur:()=>rateRef.current?.blur(),focus:()=>rateRef.current?.focus()})),rateRef}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{useRateInstance};
|
package/es/vef-rate/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as r}from"@emotion/react/jsx-runtime";import{isFunction as e}from"@vef-framework/shared";import{Rate as t}from"antd";import{forwardRef as o,useMemo as a}from"react";import{useRateInstance as m}from"./hooks/use-rate-instance.js";const f=o((({character:o,...f},i)=>{const s=a((()=>e(o)?({index:r})=>o(r):o),[o]),c=m(i);return r(t,{ref:c,character:s,...f})}));f.displayName="VefRate";export{f as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{isFunction}from"@vef-framework/shared";import{Rate}from"antd";import{forwardRef,useMemo}from"react";import{useRateInstance}from"./hooks/use-rate-instance.js";const VefRate=forwardRef(({character,...restProps},ref)=>{const characterValue=useMemo(()=>isFunction(character)?({index})=>character(index):character,[character]),rateRef=useRateInstance(ref);return jsx(Rate,{ref:rateRef,character:characterValue,...restProps})});VefRate.displayName="VefRate";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefRate as default};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{useGapSizeNormalizer as o}from"@vef-framework/hooks";import{isArray as t}from"@vef-framework/shared";import{motion as n}from"motion/react";import{forwardRef as i,Children as a,isValidElement as s,useMemo as m,memo as p}from"react";import f from"../vef-responsive-item/index.js";const v=r`
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{useGapSizeNormalizer}from"@vef-framework/hooks";import{isArray}from"@vef-framework/shared";import{motion}from"motion/react";import{forwardRef,Children,isValidElement,useMemo,memo}from"react";import VefResponsiveItem from"../vef-responsive-item/index.js";const containerStyle=css`
|
|
3
2
|
display: grid;
|
|
4
3
|
grid-template-columns: repeat(var(--vef-responsive-container-auto-mode), minmax(var(--vef-responsive-container-base-width), 1fr));
|
|
5
4
|
gap: var(--vef-responsive-container-gap);
|
|
6
|
-
`,
|
|
7
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
5
|
+
`,VefResponsiveContainerBase=forwardRef(({style,baseItemWidth=320,autoExpand=!0,gap=0,children,...restProps},ref)=>{if(baseItemWidth%2!==0)throw new Error("VefResponsiveContainer: baseItemWidth must be an even number.");Children.forEach(children,child=>{if(!isValidElement(child)||child.type!==VefResponsiveItem)throw new Error("VefResponsiveContainer: children must be a VefResponsiveItem element.")});const normalizeGapSize=useGapSizeNormalizer(),normalizedGap=useMemo(()=>isArray(gap)?gap.map(it=>normalizeGapSize(it)).join(" "):normalizeGapSize(gap),[gap,normalizeGapSize]),mergedStyle=useMemo(()=>({...style,"--vef-responsive-container-auto-mode":autoExpand?"auto-fit":"auto-fill","--vef-responsive-container-base-width":`${baseItemWidth/2}px`,"--vef-responsive-container-gap":normalizedGap}),[autoExpand,baseItemWidth,normalizedGap,style]);return jsx(motion.div,{ref,css:containerStyle,style:mergedStyle,...restProps,children})}),VefResponsiveContainer=memo(VefResponsiveContainerBase);VefResponsiveContainer.displayName="VefResponsiveContainer";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefResponsiveContainer as default};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{motion as t}from"motion/react";import{forwardRef as o,useMemo as s}from"react";const i=r`
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{motion}from"motion/react";import{forwardRef,useMemo}from"react";const itemStyle=css`
|
|
3
2
|
grid-column: span var(--vef-responsive-item-span);
|
|
4
|
-
`,
|
|
5
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
3
|
+
`,VefResponsiveItem=forwardRef(({style,span=1,children,...restProps},ref)=>{const mergedStyle=useMemo(()=>({...style,"--vef-responsive-item-span":span*2}),[span,style]);return jsx(motion.div,{ref,css:itemStyle,style:mergedStyle,...restProps,children})});VefResponsiveItem.displayName="VefResponsiveItem";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefResponsiveItem as default};
|
package/es/vef-ribbon/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as o}from"@emotion/react/jsx-runtime";import{useColorTokens as t}from"@vef-framework/hooks";import{Badge as r}from"antd";import{useMemo as e}from"react";const{Ribbon:n}=r;function VefRibbon({color:r,position:i="right",children:a}){const m=t(),f=e((()=>{if(!r)return{placement:"right"===i?"end":"start",text:a};if(m.has(r))return{color:r?m.get(r):void 0,placement:"right"===i?"end":"start",text:a};throw new Error(`Invalid color value "${r}" of VefRibbon component. Color must be a valid color token.`)}),[a,r,m,i]);return o(n,{...f})}export{VefRibbon as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{useColorTokens}from"@vef-framework/hooks";import{Badge}from"antd";import{useMemo}from"react";const{Ribbon}=Badge;function VefRibbon({color,position="right",children}){const colorTokens=useColorTokens(),ribbonProps=useMemo(()=>{if(!color)return{placement:position==="right"?"end":"start",text:children};if(colorTokens.has(color))return{color:color?colorTokens.get(color):void 0,placement:position==="right"?"end":"start",text:children};throw new Error(`Invalid color value "${color}" of VefRibbon component. Color must be a valid color token.`)},[children,color,colorTokens,position]);return jsx(Ribbon,{...ribbonProps})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefRibbon as default};
|
package/es/vef-row/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as o}from"@emotion/react/jsx-runtime";import{Row as e}from"antd";function VefRow({...t}){return o(e,{...t})}VefRow.displayName="VefRow";export{VefRow as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Row}from"antd";function VefRow({...props}){return jsx(Row,{...props})}VefRow.displayName="VefRow";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefRow as default};
|
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as r}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{ScrollAreaScrollbar as a,ScrollAreaThumb as e}from"@radix-ui/react-scroll-area";import{themeVariables as i}from"@vef-framework/shared";import{forwardRef as l}from"react";const t=o`
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{ScrollAreaScrollbar,ScrollAreaThumb}from"@radix-ui/react-scroll-area";import{themeVariables}from"@vef-framework/shared";import{forwardRef}from"react";const scrollbarStyle=css`
|
|
3
2
|
--vef-scroll-area-scrollbar-padding: 2px;
|
|
4
3
|
|
|
5
4
|
display: flex;
|
|
6
5
|
touch-action: none;
|
|
7
6
|
user-select: none;
|
|
8
|
-
`,
|
|
7
|
+
`,verticalScrollbarStyle=css`
|
|
9
8
|
height: 100%;
|
|
10
9
|
width: var(--vef-scroll-area-scrollbar-size);
|
|
11
10
|
border-left-width: 1px;
|
|
12
11
|
border-left-color: transparent;
|
|
13
12
|
padding: var(--vef-scroll-area-scrollbar-padding);
|
|
14
|
-
`,
|
|
13
|
+
`,horizontalScrollbarStyle=css`
|
|
15
14
|
flex-direction: column;
|
|
16
15
|
height: var(--vef-scroll-area-scrollbar-size);
|
|
17
16
|
border-top-width: 1px;
|
|
18
17
|
border-top-color: transparent;
|
|
19
18
|
padding: var(--vef-scroll-area-scrollbar-padding);
|
|
20
|
-
`,
|
|
19
|
+
`,thumbStyle=css`
|
|
21
20
|
position: relative;
|
|
22
21
|
z-index: 2;
|
|
23
22
|
flex: 1;
|
|
24
23
|
border-radius: calc(var(--vef-scroll-area-scrollbar-size) - var(--vef-scroll-area-scrollbar-padding) * 2);
|
|
25
24
|
background-color: hsl(240 5.9% 90%);
|
|
26
25
|
transition-property: background-color;
|
|
27
|
-
transition-timing-function: ${
|
|
28
|
-
transition-duration: ${
|
|
26
|
+
transition-timing-function: ${themeVariables.motionEaseInOutCirc};
|
|
27
|
+
transition-duration: ${themeVariables.motionDurationMid};
|
|
29
28
|
|
|
30
29
|
&:hover {
|
|
31
30
|
background-color: hsl(240 5.9% 84%);
|
|
32
31
|
}
|
|
33
|
-
`,
|
|
34
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
32
|
+
`,VefScrollbar=forwardRef(({orientation="vertical",...restProps},ref)=>jsx(ScrollAreaScrollbar,{ref,orientation,css:[scrollbarStyle,orientation==="vertical"&&verticalScrollbarStyle,orientation==="horizontal"&&horizontalScrollbarStyle],...restProps,children:jsx(ScrollAreaThumb,{css:thumbStyle})}));VefScrollbar.displayName="VefScrollbar";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefScrollbar as default};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsxs as r,jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{Root as t,Viewport as l,Corner as i}from"@radix-ui/react-scroll-area";import{isNumber as a}from"@vef-framework/shared";import{forwardRef as s,useMemo as c}from"react";import h from"./components/scrollbar.js";const m=o`
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsxs,jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{Root,Viewport,Corner}from"@radix-ui/react-scroll-area";import{isNumber}from"@vef-framework/shared";import{forwardRef,useMemo}from"react";import VefScrollbar from"./components/scrollbar.js";const scrollAreaStyle=css`
|
|
3
2
|
position: relative;
|
|
4
3
|
overflow: hidden;
|
|
5
4
|
height: var(--vef-scroll-area-height, 100%);
|
|
6
5
|
width: var(--vef-scroll-area-width, auto);
|
|
7
|
-
`,
|
|
6
|
+
`,viewportStyle=css`
|
|
8
7
|
height: 100%;
|
|
9
8
|
width: 100%;
|
|
10
9
|
border-radius: inherit;
|
|
11
10
|
-webkit-overflow-scrolling: touch;
|
|
12
|
-
`,
|
|
13
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
11
|
+
`,VefScrollArea=forwardRef(({style,height,width,scrollDirection="y",scrollbarSize="medium",autoHideScrollbar=!0,viewportClassName,viewportStyle:externalViewportStyle,viewportRef,onScroll,children,...restProps},ref)=>{const scrollAreaDynamicStyle=useMemo(()=>({...style,"--vef-scroll-area-height":(isNumber(height)?`${height}px`:height)??"100%","--vef-scroll-area-width":(isNumber(width)?`${width}px`:width)??"auto"}),[height,style,width]),scrollbarSizeStyle=useMemo(()=>({"--vef-scroll-area-scrollbar-size":scrollbarSize==="small"?"10px":scrollbarSize==="medium"?"12px":"14px"}),[scrollbarSize]),viewportInlineStyle=useMemo(()=>({...externalViewportStyle,overflowX:`${scrollDirection==="x"||scrollDirection==="both"?"scroll":"hidden"}`,overflowY:`${scrollDirection==="y"||scrollDirection==="both"?"scroll":"hidden"}`}),[scrollDirection,externalViewportStyle]);return jsxs(Root,{ref,css:scrollAreaStyle,style:scrollAreaDynamicStyle,type:autoHideScrollbar?"hover":"auto",...restProps,children:[jsx(Viewport,{ref:viewportRef,className:viewportClassName,css:viewportStyle,style:viewportInlineStyle,onScroll,children}),(scrollDirection==="y"||scrollDirection==="both")&&jsx(VefScrollbar,{orientation:"vertical",style:scrollbarSizeStyle}),(scrollDirection==="x"||scrollDirection==="both")&&jsx(VefScrollbar,{orientation:"horizontal",style:scrollbarSizeStyle}),jsx(Corner,{})]})});VefScrollArea.displayName="VefScrollArea";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefScrollArea as default};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsxs as e,jsx as i}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{themeVariables as o}from"@vef-framework/shared";import{memo as t}from"react";import l from"../../vef-text/index.js";const s=r`
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsxs,jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{themeVariables}from"@vef-framework/shared";import{memo}from"react";import VefText from"../../vef-text/index.js";const optionWithDescriptionStyle=css`
|
|
3
2
|
display: flex;
|
|
4
3
|
flex-direction: column;
|
|
5
4
|
row-gap: 4px;
|
|
6
5
|
|
|
7
6
|
> .vef-typography-secondary {
|
|
8
|
-
font-size: ${
|
|
7
|
+
font-size: ${themeVariables.fontSizeSm};
|
|
9
8
|
}
|
|
10
|
-
`;
|
|
11
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
9
|
+
`;function VefOption({label,description}){return description?jsxs("div",{css:optionWithDescriptionStyle,children:[jsx(VefText,{ellipsis:!0,ellipsisTipPlacement:"right",children:label}),jsx(VefText,{ellipsis:!0,color:"secondary",ellipsisTipPlacement:"right",children:description})]}):jsx(VefText,{ellipsis:!0,ellipsisTipPlacement:"right",children:label})}const VefOptionMemo=memo(VefOption);VefOptionMemo.displayName="VefOption";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefOptionMemo as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useComputedOptions as o}from"@vef-framework/hooks";import{isArray as a,isFunction as e,isNullish as i}from"@vef-framework/shared";import{useLayoutEffect as n}from"react";function useDataOptions({value:t,grouped:r=!1,multiple:l=!1,onChange:s,...p}){const{onFilterKeywordChange:d,normalizedOptions:u,defaultOption:f,isLoading:m,fallbackOptions:O,isFallbackOptionsLoading:c}=o({...p,isGrouped:r,selectedOptionValues:a(t)?t:t?[t]:[]});return n((()=>{f&&e(s)&&i(t)&&s(l?[f.value]:f.value,l?[f]:f)}),[f,l,s,t]),{onFilterKeywordChange:d,normalizedOptions:u,isLoading:m,fallbackOptions:O,isFallbackOptionsLoading:c}}export{useDataOptions};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{useComputedOptions}from"@vef-framework/hooks";import{isArray,isFunction,isNullish}from"@vef-framework/shared";import{useLayoutEffect}from"react";function useDataOptions({value,grouped=!1,multiple=!1,onChange,...rest}){const{onFilterKeywordChange,normalizedOptions,defaultOption,isLoading,fallbackOptions,isFallbackOptionsLoading}=useComputedOptions({...rest,isGrouped:grouped,selectedOptionValues:isArray(value)?value:value?[value]:[]});return useLayoutEffect(()=>{defaultOption&&isFunction(onChange)&&isNullish(value)&&onChange(multiple?[defaultOption.value]:defaultOption.value,multiple?[defaultOption]:defaultOption)},[defaultOption,multiple,onChange,value]),{onFilterKeywordChange,normalizedOptions,isLoading,fallbackOptions,isFallbackOptionsLoading}}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{useDataOptions};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useMemo as e}from"react";function useFieldNames(l){return e((()=>l?{label:"label",value:"value",options:"children",groupLabel:"label"}:{label:"label",value:"value"}),[l])}export{useFieldNames};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{useMemo}from"react";function useFieldNames(grouped){return useMemo(()=>grouped?{label:"label",value:"value",options:"children",groupLabel:"label"}:{label:"label",value:"value"},[grouped])}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{useFieldNames};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{LoadingOutlined as r}from"@ant-design/icons";import{css as i}from"@emotion/react";import{useCallback as n}from"react";import t from"../../vef-spin/index.js";const o=i`
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{LoadingOutlined}from"@ant-design/icons";import{css}from"@emotion/react";import{useCallback}from"react";import VefSpin from"../../vef-spin/index.js";const loadingPlaceholderStyle=css`
|
|
3
2
|
display: inline-flex;
|
|
4
3
|
align-items: center;
|
|
5
4
|
|
|
6
5
|
.vef-spin {
|
|
7
6
|
color: inherit;
|
|
8
7
|
}
|
|
9
|
-
`;function useRenderLabel(
|
|
10
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
8
|
+
`;function useRenderLabel(isFallbackOptionsLoading,fallbackOptions){return useCallback(({label,value})=>label||(isFallbackOptionsLoading?jsx("span",{css:loadingPlaceholderStyle,children:jsx(VefSpin,{indicator:jsx(LoadingOutlined,{}),size:"small"})}):fallbackOptions?.find(option=>option.value===value)?.label??value),[isFallbackOptionsLoading,fallbackOptions])}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{useRenderLabel};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{isFunction as o}from"@vef-framework/shared";import{useMemo as r}from"react";import t from"../components/option.js";function useRenderOption(i){return r((()=>o(i)?({data:e},{index:o})=>i({...e,index:o}):({data:{label:o,description:r}})=>e(t,{description:r,label:o??"Missing Label"})),[i])}export{useRenderOption};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{isFunction}from"@vef-framework/shared";import{useMemo}from"react";import VefOptionMemo from"../components/option.js";function useRenderOption(renderOption){return useMemo(()=>isFunction(renderOption)?({data},{index})=>renderOption({...data,index}):({data:{label,description}})=>jsx(VefOptionMemo,{description,label:label??"Missing Label"}),[renderOption])}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{useRenderOption};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useRef as e,useImperativeHandle as t}from"react";function useSelectInstance(r,n){const c=e(null);return t(r,(()=>({blur:()=>{c.current?.blur()},focus:()=>{c.current?.focus({preventScroll:!0})},getDataOptions:()=>n}))),c}export{useSelectInstance};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{useRef,useImperativeHandle}from"react";function useSelectInstance(ref,dataOptions){const selectRef=useRef(null);return useImperativeHandle(ref,()=>({blur:()=>{selectRef.current?.blur()},focus:()=>{selectRef.current?.focus({preventScroll:!0})},getDataOptions:()=>dataOptions})),selectRef}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{useSelectInstance};
|
package/es/vef-select/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{useOptionFilter as o}from"@vef-framework/hooks";import{styles as r}from"@vef-framework/shared";import{Select as t}from"antd";import{memo as i,forwardRef as l}from"react";import"../internal/index.js";import n from"../vef-loading-placeholder/index.js";import{useDataOptions as a}from"./hooks/use-data-options.js";import{useFieldNames as s}from"./hooks/use-field-names.js";import{useRenderLabel as m}from"./hooks/use-render-label.js";import{useRenderOption as d}from"./hooks/use-render-option.js";import{useSelectInstance as f}from"./hooks/use-select-instance.js";import{convertBasicSizeToUiSize as p}from"../internal/utils.js";const u=e("div",{css:{height:140},children:e(n,{})});const c=i(l((function VefSelectBase({defaultValue:i,value:l,size:n,clearable:c,disabled:h,placeholder:v,variant:g,onClear:C,onBlur:k,onFocus:b,onChange:j,onSelect:F,onDeselect:x,multiple:O=!1,grouped:S=!1,maxCount:w,renderOption:R,filterable:V=!1,filterFromRemote:z=!1,...B},y){const{onFilterKeywordChange:D,normalizedOptions:L,isLoading:N,fallbackOptions:A,isFallbackOptionsLoading:H}=a({value:l,grouped:S,multiple:O,onChange:j,filterable:V,filterFromRemote:z,...B}),K=d(R),T=o(V,z),W=s(S),q=m(H,A),E=f(y,L);return e(t,{ref:E,defaultActiveFirstOption:!0,allowClear:c,css:r.fullWidth,defaultValue:i,disabled:h,fieldNames:W,filterOption:T,labelRender:q,listHeight:280,loading:N,maxCount:O?w:void 0,maxTagCount:O?"responsive":void 0,mode:O?"multiple":void 0,notFoundContent:N?u:void 0,optionRender:K,options:L,placeholder:v,showSearch:V,size:p(n),value:l,variant:g,onBlur:k,onChange:j,onClear:C,onDeselect:x,onFocus:b,onSearch:D,onSelect:F})})));c.displayName="VefSelect";export{c as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{useOptionFilter}from"@vef-framework/hooks";import{styles}from"@vef-framework/shared";import{Select}from"antd";import{memo,forwardRef}from"react";import"../internal/index.js";import VefLoadingPlaceholder from"../vef-loading-placeholder/index.js";import{useDataOptions}from"./hooks/use-data-options.js";import{useFieldNames}from"./hooks/use-field-names.js";import{useRenderLabel}from"./hooks/use-render-label.js";import{useRenderOption}from"./hooks/use-render-option.js";import{useSelectInstance}from"./hooks/use-select-instance.js";import{convertBasicSizeToUiSize}from"../internal/utils.js";const listHeight=280,loadingPlaceholder=jsx("div",{css:{height:listHeight/2},children:jsx(VefLoadingPlaceholder,{})});function VefSelectBase({defaultValue,value,size,clearable,disabled,placeholder,variant,onClear,onBlur,onFocus,onChange,onSelect,onDeselect,multiple=!1,grouped=!1,maxCount,renderOption,filterable=!1,filterFromRemote=!1,...restProps},ref){const{onFilterKeywordChange,normalizedOptions,isLoading,fallbackOptions,isFallbackOptionsLoading}=useDataOptions({value,grouped,multiple,onChange,filterable,filterFromRemote,...restProps}),renderOptionToUse=useRenderOption(renderOption),filterOption=useOptionFilter(filterable,filterFromRemote),fieldNames=useFieldNames(grouped),renderLabel=useRenderLabel(isFallbackOptionsLoading,fallbackOptions),selectRef=useSelectInstance(ref,normalizedOptions);return jsx(Select,{ref:selectRef,defaultActiveFirstOption:!0,allowClear:clearable,css:styles.fullWidth,defaultValue,disabled,fieldNames,filterOption,labelRender:renderLabel,listHeight,loading:isLoading,maxCount:multiple?maxCount:void 0,maxTagCount:multiple?"responsive":void 0,mode:multiple?"multiple":void 0,notFoundContent:isLoading?loadingPlaceholder:void 0,optionRender:renderOptionToUse,options:normalizedOptions,placeholder,showSearch:filterable,size:convertBasicSizeToUiSize(size),value,variant,onBlur,onChange,onClear,onDeselect,onFocus,onSearch:onFilterKeywordChange,onSelect})}const VefSelect=memo(forwardRef(VefSelectBase));VefSelect.displayName="VefSelect";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefSelect as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useRef as r,useImperativeHandle as e}from"react";function useSliderInstance(n){const u=r(null);return e(n,(()=>({blur:()=>u.current?.blur(),focus:()=>u.current?.focus()}))),u}export{useSliderInstance};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{useRef,useImperativeHandle}from"react";function useSliderInstance(ref){const sliderRef=useRef(null);return useImperativeHandle(ref,()=>({blur:()=>sliderRef.current?.blur(),focus:()=>sliderRef.current?.focus()})),sliderRef}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{useSliderInstance};
|
package/es/vef-slider/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as t}from"@emotion/react/jsx-runtime";import{Slider as r}from"antd";import{forwardRef as e,useMemo as o}from"react";import{useSliderInstance as m}from"./hooks/use-slider-instance.js";const n=e((({step:e,tipFormatter:n,onChange:a,...i},s)=>{const p=o((()=>{if(n)return{formatter:t=>n(t)}}),[n]),f=m(s);return t(r,{ref:f,step:"mark"===e?null:e,tooltip:p,onChange:a,...i})}));n.displayName="VefSlider";export{n as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Slider}from"antd";import{forwardRef,useMemo}from"react";import{useSliderInstance}from"./hooks/use-slider-instance.js";const VefSlider=forwardRef(({step,tipFormatter,onChange,...restProps},ref)=>{const tooltipProps=useMemo(()=>{if(tipFormatter)return{formatter:value=>tipFormatter(value)}},[tipFormatter]),sliderRef=useSliderInstance(ref);return jsx(Slider,{ref:sliderRef,step:step==="mark"?null:step,tooltip:tooltipProps,onChange,...restProps})});VefSlider.displayName="VefSlider";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefSlider as default};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e,jsxs as n,Fragment as t}from"@emotion/react/jsx-runtime";import{HolderOutlined as o}from"@ant-design/icons";import{css as r}from"@emotion/react";const a=e(o,{}),m=r`
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx,jsxs,Fragment}from"@emotion/react/jsx-runtime";import{HolderOutlined}from"@ant-design/icons";import{css}from"@emotion/react";const defaultHandleIcon=jsx(HolderOutlined,{}),handlePresetStyle=css`
|
|
3
2
|
cursor: move;
|
|
4
3
|
user-select: none;
|
|
5
4
|
touch-action: none;
|
|
6
|
-
`;function VefOverlayItem({item
|
|
7
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
5
|
+
`;function VefOverlayItem({item,renderItem,useHandle,handleClassName,handleStyle,handleIcon}){return jsxs(Fragment,{children:[useHandle&&jsx("div",{className:handleClassName,css:handlePresetStyle,style:handleStyle,children:handleIcon??defaultHandleIcon}),renderItem(item,!0)]})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefOverlayItem as default};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import{HolderOutlined as i}from"@ant-design/icons";import{useSortable as r}from"@dnd-kit/sortable";import{CSS as n}from"@dnd-kit/utilities";import{css as o}from"@emotion/react";const s=e(i,{}),a=o`
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx,jsxs}from"@emotion/react/jsx-runtime";import{HolderOutlined}from"@ant-design/icons";import{useSortable}from"@dnd-kit/sortable";import{CSS}from"@dnd-kit/utilities";import{css}from"@emotion/react";const defaultHandleIcon=jsx(HolderOutlined,{}),handlePresetStyle=css`
|
|
3
2
|
cursor: move;
|
|
4
3
|
user-select: none;
|
|
5
4
|
touch-action: none;
|
|
6
|
-
`;function VefSortableItem({item
|
|
7
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
5
|
+
`;function VefSortableItem({item,itemKey,itemIndex,itemClassName,itemStyle,renderItem,useHandle,useOverlay,handleClassName,handleStyle,handleIcon,disabled}){const{isDragging,attributes,listeners,setNodeRef,setActivatorNodeRef,transition,transform}=useSortable({id:itemKey,disabled,data:{index:itemIndex}}),style={...itemStyle,transition,transform:CSS.Transform.toString(transform),...!useOverlay&&isDragging?{position:"relative",zIndex:999}:{}};return jsxs("div",{ref:setNodeRef,className:itemClassName,style,...attributes,...useHandle?{}:listeners,children:[useHandle&&jsx("div",{ref:setActivatorNodeRef,className:handleClassName,css:handlePresetStyle,style:handleStyle,...listeners,children:handleIcon??defaultHandleIcon}),renderItem(item,!1)]})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefSortableItem as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{isNullish as e}from"@vef-framework/shared";import{useState as r,useCallback as t}from"react";function useMergedItems(o,m,s){if(e(o)&&e(m))throw new Error("At least one of `defaultItems` and `items` must be provided for VefSortableList component.");const[f,n]=r(o??[]);return[m??f,t((e=>{m?s?.(e(m)):n(e)}),[m,s])]}export{useMergedItems};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{isNullish}from"@vef-framework/shared";import{useState,useCallback}from"react";function useMergedItems(defaultItems,items,onChange){if(isNullish(defaultItems)&&isNullish(items))throw new Error("At least one of `defaultItems` and `items` must be provided for VefSortableList component.");const[internalItems,setInternalItems]=useState(defaultItems??[]),mergedItems=items??internalItems,mergedOnChange=useCallback(moveItems=>{items?onChange?.(moveItems(items)):setInternalItems(moveItems)},[items,onChange]);return[mergedItems,mergedOnChange]}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{useMergedItems};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import{useSensors as r,useSensor as i,PointerSensor as o,DndContext as a,DragOverlay as m,closestCenter as s}from"@dnd-kit/core";import{restrictToParentElement as n,restrictToWindowEdges as d}from"@dnd-kit/modifiers";import{arrayMove as l,SortableContext as c,verticalListSortingStrategy as p,horizontalListSortingStrategy as f}from"@dnd-kit/sortable";import{isFunction as u}from"@vef-framework/shared";import{useMemo as y,useState as v,useCallback as h,memo as g}from"react";import x from"./components/overlay-item.js";import b from"./components/sortable-item.js";import{useMergedItems as k}from"./hooks/use-merged-items.js";const N=g((function VefSortableListBase({defaultItems:g,items:N,itemKey:S="id",className:j,style:D,orientation:w="vertical",useOverlay:C=!0,restrictStrategy:E="parent",onChange:I,...K}){const[L,V]=k(g,N,I),B=r(i(o)),O=y((()=>u(S)?S:e=>e[S]),[S]),[q,z]=v(),A=h((({active:e})=>{z(L[e.data.current.index])}),[L]),F=h((({active:e,over:t})=>{t&&e.id!==t.id&&V((r=>l(r,e.data.current.index,t.data.current.index)))}),[V]),G=L.map((e=>O(e))),{itemClassName:H,itemStyle:J,disabled:M,...P}=K;return e(a,{collisionDetection:s,sensors:B,modifiers:["parent"===E?n:d],onDragEnd:F,onDragStart:A,children:e(c,{items:G,strategy:"vertical"===w?p:f,children:t("div",{className:j,style:D,children:[L.map(((t,r)=>{const i=O(t);return e(b,{item:t,itemIndex:r,itemKey:i,...K},i)})),C&&e(m,{className:H,style:J,wrapperElement:"div",modifiers:["parent"===E?n:d],children:q&&e(x,{item:q,...P})})]})})})}));N.displayName="VefSortableList";export{N as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx,jsxs}from"@emotion/react/jsx-runtime";import{useSensors,useSensor,PointerSensor,DndContext,DragOverlay,closestCenter}from"@dnd-kit/core";import{restrictToParentElement,restrictToWindowEdges}from"@dnd-kit/modifiers";import{arrayMove,SortableContext,verticalListSortingStrategy,horizontalListSortingStrategy}from"@dnd-kit/sortable";import{isFunction}from"@vef-framework/shared";import{useMemo,useState,useCallback,memo}from"react";import VefOverlayItem from"./components/overlay-item.js";import VefSortableItem from"./components/sortable-item.js";import{useMergedItems}from"./hooks/use-merged-items.js";const defaultItemKey="id";function VefSortableListBase({defaultItems,items,itemKey=defaultItemKey,className,style,orientation="vertical",useOverlay=!0,restrictStrategy="parent",onChange,...restProps}){const[mergedItems,mergedOnChange]=useMergedItems(defaultItems,items,onChange),sensors=useSensors(useSensor(PointerSensor)),itemKeyFn=useMemo(()=>isFunction(itemKey)?itemKey:item=>item[itemKey],[itemKey]),[activeItem,setActiveItem]=useState(),handleDragStart=useCallback(({active})=>{setActiveItem(mergedItems[active.data.current.index])},[mergedItems]),handleDragEnd=useCallback(({active,over})=>{over&&active.id!==over.id&&mergedOnChange(items2=>arrayMove(items2,active.data.current.index,over.data.current.index))},[mergedOnChange]),itemKeys=mergedItems.map(item=>itemKeyFn(item)),{itemClassName,itemStyle,disabled,...overlayItemProps}=restProps;return jsx(DndContext,{collisionDetection:closestCenter,sensors,modifiers:[restrictStrategy==="parent"?restrictToParentElement:restrictToWindowEdges],onDragEnd:handleDragEnd,onDragStart:handleDragStart,children:jsx(SortableContext,{items:itemKeys,strategy:orientation==="vertical"?verticalListSortingStrategy:horizontalListSortingStrategy,children:jsxs("div",{className,style,children:[mergedItems.map((item,index)=>{const key=itemKeyFn(item);return jsx(VefSortableItem,{item,itemIndex:index,itemKey:key,...restProps},key)}),useOverlay&&jsx(DragOverlay,{className:itemClassName,style:itemStyle,wrapperElement:"div",modifiers:[restrictStrategy==="parent"?restrictToParentElement:restrictToWindowEdges],children:activeItem&&jsx(VefOverlayItem,{item:activeItem,...overlayItemProps})})]})})})}const VefSortableList=memo(VefSortableListBase);VefSortableList.displayName="VefSortableList";/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefSortableList as default};
|
package/es/vef-space/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as r}from"@emotion/react/jsx-runtime";import{useGapSizeNormalizer as o}from"@vef-framework/hooks";import{isArray as e}from"@vef-framework/shared";import{Space as m}from"antd";import{useMemo as t}from"react";function VefSpace({gap:f,...a}){const p=o(),i=t((()=>e(f)?f.map((r=>p(r))):f?p(f):f),[f,p]);return r(m,{size:i,...a})}export{VefSpace as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{useGapSizeNormalizer}from"@vef-framework/hooks";import{isArray}from"@vef-framework/shared";import{Space}from"antd";import{useMemo}from"react";function VefSpace({gap,...restProps}){const normalizeGapSize=useGapSizeNormalizer(),size=useMemo(()=>isArray(gap)?gap.map(it=>normalizeGapSize(it)):gap&&normalizeGapSize(gap),[gap,normalizeGapSize]);return jsx(Space,{size,...restProps})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefSpace as default};
|
package/es/vef-spin/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{Spin as t}from"antd";function VefSpin({size:i,...r}){return e(t,{size:"medium"===i?"default":i,...r})}export{VefSpin as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Spin}from"antd";function VefSpin({size,...restProps}){return jsx(Spin,{size:size==="medium"?"default":size,...restProps})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefSpin as default};
|
package/es/vef-splitter/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as t}from"@emotion/react/jsx-runtime";import{Splitter as e}from"antd";function VefSplitter({orientation:o,onResizeBegin:r,...i}){return t(e,{layout:o,onResizeStart:r,...i})}export{VefSplitter as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Splitter}from"antd";function VefSplitter({orientation,onResizeBegin,...rest}){return jsx(Splitter,{layout:orientation,onResizeStart:onResizeBegin,...rest})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefSplitter as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as t}from"@emotion/react/jsx-runtime";import{Splitter as e}from"antd";const{Panel:r}=e;function VefSplitterPanel({...e}){return t(r,{...e})}export{VefSplitterPanel as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Splitter}from"antd";const{Panel}=Splitter;function VefSplitterPanel({...rest}){return jsx(Panel,{...rest})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefSplitterPanel as default};
|
package/es/vef-status/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as t}from"@emotion/react/jsx-runtime";import{useColorTokens as o}from"@vef-framework/hooks";import{Badge as r}from"antd";import{useMemo as e}from"react";function VefStatus({processing:a=!1,color:f="default",children:u}){const n=o(),s=e((()=>{if("default"===f)return{status:"default",text:u};if(n.has(f))return{status:a?"processing":"default",color:n.get(f),text:u};throw new Error(`Invalid color value "${f}" of VefStatus component. Color must be either "default" or a valid color token.`)}),[f,n,a,u]);return t(r,{...s})}export{VefStatus as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{useColorTokens}from"@vef-framework/hooks";import{Badge}from"antd";import{useMemo}from"react";function VefStatus({processing=!1,color="default",children}){const colorTokens=useColorTokens(),badgeProps=useMemo(()=>{if(color==="default")return{status:"default",text:children};if(colorTokens.has(color))return{status:processing?"processing":"default",color:colorTokens.get(color),text:children};throw new Error(`Invalid color value "${color}" of VefStatus component. Color must be either "default" or a valid color token.`)},[color,colorTokens,processing,children]);return jsx(Badge,{...badgeProps})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{VefStatus as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as o}from"@emotion/react/jsx-runtime";import{css as e}from"@emotion/react";import{VefError as t,isString as r,isNullish as a,isDeepEqual as l}from"@vef-framework/shared";import{useMemo as i,memo as m}from"react";import u from"../../../vef-text/index.js";import{useComputedValues as n}from"../../hooks/use-computed-values.js";const c=m((function Bool({value:l,record:m,rowIndex:c,columnProps:f}){if("Boolean"!==f.type)throw new t(-1,"Column type must be Boolean");const{defaultValue:d,trueText:s="是",falseText:p="否",bold:w,italic:x,color:h,width:V}=f,[b,k,v]=n([{key:"bold",rawValue:w,defaultValue:!1},{key:"italic",rawValue:x,defaultValue:!1},{key:"color",rawValue:h}],l,m,c),y=i((()=>r(v)?v:v?!a(l)&&Object.hasOwn(v,l)?v[l]:v["*"]:void 0),[v,l]),j=i((()=>l?l?s:p:d),[l,s,p,d]),B=i((()=>{if(V)return e({maxWidth:`${V}px !important`})}),[V]);return o(u,{bold:b,color:y,css:B,italic:k,children:j})}),l);export{c as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{VefError,isString,isNullish,isDeepEqual}from"@vef-framework/shared";import{useMemo,memo}from"react";import VefText from"../../../vef-text/index.js";import{useComputedValues}from"../../hooks/use-computed-values.js";function Bool({value,record,rowIndex,columnProps}){if(columnProps.type!=="Boolean")throw new VefError(-1,"Column type must be Boolean");const{defaultValue,trueText="是",falseText="否",bold,italic,color,width}=columnProps,[boldToUse,italicToUse,colorOrMapping]=useComputedValues([{key:"bold",rawValue:bold,defaultValue:!1},{key:"italic",rawValue:italic,defaultValue:!1},{key:"color",rawValue:color}],value,record,rowIndex),colorToUse=useMemo(()=>{if(isString(colorOrMapping))return colorOrMapping;if(colorOrMapping)return!isNullish(value)&&Object.hasOwn(colorOrMapping,value)?colorOrMapping[value]:colorOrMapping["*"]},[colorOrMapping,value]),valueToDisplay=useMemo(()=>value?value?trueText:falseText:defaultValue,[value,trueText,falseText,defaultValue]),cssToUse=useMemo(()=>{if(width)return css({maxWidth:`${width}px !important`})},[width]);return jsx(VefText,{bold:boldToUse,color:colorToUse,css:cssToUse,italic:italicToUse,children:valueToDisplay})}const BoolMemo=memo(Bool,isDeepEqual);/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{BoolMemo as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";function Code({value:o}){return e("span",{children:o})}export{Code as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";function Code({value}){return jsx("span",{children:value})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{Code as default};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as o}from"@emotion/react/jsx-runtime";import{css as t}from"@emotion/react";import{VefError as e,isString as a,isNullish as r}from"@vef-framework/shared";import{useMemo as i}from"react";import l from"../../../vef-text/index.js";import{useComputedValues as m}from"../../hooks/use-computed-values.js";const c="Name";function DataDictionary({value:n,record:u,rowIndex:s,columnProps:d}){if("DataDictionary"!==d.type)throw new e(-1,"Column type must be DataDictionary");const{name:f,defaultValue:p,ellipsis:w,bold:y,italic:D,color:h,width:x}=d,[V,b,k]=m([{key:"bold",rawValue:y,defaultValue:!1},{key:"italic",rawValue:D,defaultValue:!1},{key:"color",rawValue:h}],n,u,s),v=i((()=>a(k)?k:k?!r(n)&&Object.hasOwn(k,n)?k[n]:k["*"]:void 0),[k,n]),$=i((()=>r(n)||r(u[`${f}${c}`])?p:u[`${f}${c}`]),[n,u,f,p]),j=i((()=>{if(x)return t({maxWidth:`${x}px !important`})}),[x]);return o(l,{bold:V,color:v,css:j,ellipsis:w,italic:b,children:$})}export{DataDictionary as default};
|
|
3
|
-
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
1
|
+
/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.836Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{VefError,isString,isNullish}from"@vef-framework/shared";import{useMemo}from"react";import VefText from"../../../vef-text/index.js";import{useComputedValues}from"../../hooks/use-computed-values.js";const DATA_DICTIONARY_NAME_SUFFIX="Name";function DataDictionary({value,record,rowIndex,columnProps}){if(columnProps.type!=="DataDictionary")throw new VefError(-1,"Column type must be DataDictionary");const{name,defaultValue,ellipsis,bold,italic,color,width}=columnProps,[boldToUse,italicToUse,colorOrMapping]=useComputedValues([{key:"bold",rawValue:bold,defaultValue:!1},{key:"italic",rawValue:italic,defaultValue:!1},{key:"color",rawValue:color}],value,record,rowIndex),colorToUse=useMemo(()=>{if(isString(colorOrMapping))return colorOrMapping;if(colorOrMapping)return!isNullish(value)&&Object.hasOwn(colorOrMapping,value)?colorOrMapping[value]:colorOrMapping["*"]},[colorOrMapping,value]),valueToDisplay=useMemo(()=>isNullish(value)||isNullish(record[`${name}${DATA_DICTIONARY_NAME_SUFFIX}`])?defaultValue:record[`${name}${DATA_DICTIONARY_NAME_SUFFIX}`],[value,record,name,defaultValue]),cssToUse=useMemo(()=>{if(width)return css({maxWidth:`${width}px !important`})},[width]);return jsx(VefText,{bold:boldToUse,color:colorToUse,css:cssToUse,ellipsis,italic:italicToUse,children:valueToDisplay})}/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */export{DataDictionary as default};
|