@vef-framework-react/components 2.3.0 → 2.4.1
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/LICENSE +201 -0
- package/dist/cjs/_base/constants/common.cjs +1 -1
- package/dist/cjs/_base/constants/index.cjs +1 -1
- package/dist/cjs/_base/globals.cjs +1 -1
- package/dist/cjs/_base/helpers/breakpoints.cjs +1 -1
- package/dist/cjs/_base/helpers/color.cjs +1 -1
- package/dist/cjs/_base/helpers/common.cjs +1 -1
- package/dist/cjs/_base/helpers/event.cjs +1 -1
- package/dist/cjs/_base/helpers/index.cjs +1 -1
- package/dist/cjs/_base/helpers/message.cjs +1 -1
- package/dist/cjs/_base/helpers/modal.cjs +1 -1
- package/dist/cjs/_base/helpers/notification.cjs +1 -1
- package/dist/cjs/_base/helpers/props.cjs +1 -1
- package/dist/cjs/_base/helpers/react.cjs +1 -1
- package/dist/cjs/_base/hooks/index.cjs +1 -1
- package/dist/cjs/_base/hooks/use-theme-tokens.cjs +1 -1
- package/dist/cjs/_base/index.cjs +1 -1
- package/dist/cjs/_base/styles/common.cjs +1 -1
- package/dist/cjs/action-button/index.cjs +1 -1
- package/dist/cjs/action-button/use-action-button.cjs +1 -1
- package/dist/cjs/action-group/index.cjs +1 -1
- package/dist/cjs/action-group/use-action-group.cjs +1 -1
- package/dist/cjs/action-group/use-computed-action-buttons.cjs +1 -1
- package/dist/cjs/affix/index.cjs +1 -1
- package/dist/cjs/alert/index.cjs +1 -1
- package/dist/cjs/anchor/index.cjs +1 -1
- package/dist/cjs/auto-complete/index.cjs +1 -1
- package/dist/cjs/avatar/index.cjs +1 -1
- package/dist/cjs/badge/index.cjs +1 -1
- package/dist/cjs/bool/index.cjs +1 -1
- package/dist/cjs/border-beam/index.cjs +1 -1
- package/dist/cjs/breadcrumb/index.cjs +1 -1
- package/dist/cjs/button/index.cjs +1 -1
- package/dist/cjs/calendar/index.cjs +1 -1
- package/dist/cjs/card/index.cjs +1 -1
- package/dist/cjs/carousel/index.cjs +1 -1
- package/dist/cjs/cascader/index.cjs +1 -1
- package/dist/cjs/center/index.cjs +1 -1
- package/dist/cjs/charts/chart.cjs +1 -1
- package/dist/cjs/charts/helpers/group.cjs +1 -1
- package/dist/cjs/charts/helpers/index.cjs +1 -1
- package/dist/cjs/charts/hooks/index.cjs +1 -1
- package/dist/cjs/charts/hooks/use-chart.cjs +1 -1
- package/dist/cjs/charts/index.cjs +1 -1
- package/dist/cjs/charts/themes/index.cjs +1 -1
- package/dist/cjs/charts/themes/walden-dark.cjs +1 -1
- package/dist/cjs/charts/themes/walden.cjs +1 -1
- package/dist/cjs/charts/themes/wonderland-dark.cjs +1 -1
- package/dist/cjs/charts/themes/wonderland.cjs +1 -1
- package/dist/cjs/checkbox/index.cjs +1 -1
- package/dist/cjs/code-editor/index.cjs +1 -0
- package/dist/cjs/code-highlighter/index.cjs +1 -1
- package/dist/cjs/col/index.cjs +1 -1
- package/dist/cjs/collapse/index.cjs +1 -1
- package/dist/cjs/color-picker/index.cjs +1 -1
- package/dist/cjs/compact/index.cjs +1 -1
- package/dist/cjs/config-provider/app.cjs +1 -1
- package/dist/cjs/config-provider/constants.cjs +1 -1
- package/dist/cjs/config-provider/context-holder.cjs +1 -1
- package/dist/cjs/config-provider/css-vars.cjs +1 -1
- package/dist/cjs/config-provider/dark-mode-context.cjs +1 -1
- package/dist/cjs/config-provider/error-fallback.cjs +1 -1
- package/dist/cjs/config-provider/global-style.cjs +1 -1
- package/dist/cjs/config-provider/index.cjs +1 -1
- package/dist/cjs/config-provider/theme-config.cjs +1 -1
- package/dist/cjs/config-provider/use-config-provider.cjs +1 -1
- package/dist/cjs/crud/components/action-button-group.cjs +1 -1
- package/dist/cjs/crud/components/index.cjs +1 -1
- package/dist/cjs/crud/components/main.cjs +1 -1
- package/dist/cjs/crud/components/mutation-holder.cjs +1 -1
- package/dist/cjs/crud/components/operation-button-group.cjs +1 -1
- package/dist/cjs/crud/components/scene-form.cjs +1 -1
- package/dist/cjs/crud/components/selection-indicator.cjs +1 -1
- package/dist/cjs/crud/components/toolbar-actions.cjs +1 -1
- package/dist/cjs/crud/components/toolbar.cjs +1 -1
- package/dist/cjs/crud/event.cjs +1 -1
- package/dist/cjs/crud/helpers.cjs +1 -1
- package/dist/cjs/crud/hooks/index.cjs +1 -1
- package/dist/cjs/crud/hooks/use-query-observer.cjs +1 -1
- package/dist/cjs/crud/hooks/use-search-values.cjs +1 -1
- package/dist/cjs/crud/hooks/use-selected-rows.cjs +1 -1
- package/dist/cjs/crud/index.cjs +1 -1
- package/dist/cjs/crud/store.cjs +1 -1
- package/dist/cjs/crud/styles.cjs +1 -1
- package/dist/cjs/crud-page/index.cjs +1 -1
- package/dist/cjs/date-picker/index.cjs +1 -1
- package/dist/cjs/descriptions/index.cjs +1 -1
- package/dist/cjs/divider/index.cjs +1 -1
- package/dist/cjs/drawer/index.cjs +1 -1
- package/dist/cjs/dropdown/index.cjs +1 -1
- package/dist/cjs/dynamic-icon/index.cjs +1 -1
- package/dist/cjs/dynamic-icon/load-icon-node.cjs +1 -0
- package/dist/cjs/dynamic-icon/placeholder-icon.cjs +1 -1
- package/dist/cjs/dynamic-icon/unknown-icon.cjs +1 -1
- package/dist/cjs/editable-table/components/add-row-button.cjs +1 -0
- package/dist/cjs/editable-table/components/editable-cell.cjs +1 -0
- package/dist/cjs/editable-table/components/editable-row-actions.cjs +1 -0
- package/dist/cjs/editable-table/components/index.cjs +1 -0
- package/dist/cjs/editable-table/helpers.cjs +1 -0
- package/dist/cjs/editable-table/hooks/index.cjs +1 -0
- package/dist/cjs/editable-table/hooks/use-editable-actions.cjs +1 -0
- package/dist/cjs/editable-table/hooks/use-editable-columns.cjs +1 -0
- package/dist/cjs/editable-table/index.cjs +1 -0
- package/dist/cjs/editable-table/store.cjs +1 -0
- package/dist/cjs/empty/empty.cjs +1 -1
- package/dist/cjs/empty/index.cjs +1 -1
- package/dist/cjs/file-upload/index.cjs +1 -1
- package/dist/cjs/flex/index.cjs +1 -1
- package/dist/cjs/flex-card/index.cjs +1 -1
- package/dist/cjs/flex-card/styles.cjs +1 -1
- package/dist/cjs/flip-text/index.cjs +1 -1
- package/dist/cjs/float-button/index.cjs +1 -1
- package/dist/cjs/form/components/form.cjs +1 -1
- package/dist/cjs/form/components/index.cjs +1 -1
- package/dist/cjs/form/components/reset-button.cjs +1 -1
- package/dist/cjs/form/components/submit-button.cjs +1 -1
- package/dist/cjs/form/contexts/form-context.cjs +1 -1
- package/dist/cjs/form/contexts/form-layout.cjs +1 -1
- package/dist/cjs/form/contexts/index.cjs +1 -1
- package/dist/cjs/form/fields/auto-complete/index.cjs +1 -1
- package/dist/cjs/form/fields/bool/index.cjs +1 -1
- package/dist/cjs/form/fields/cascader/index.cjs +1 -1
- package/dist/cjs/form/fields/checkbox/index.cjs +1 -1
- package/dist/cjs/form/fields/code-editor/index.cjs +1 -0
- package/dist/cjs/form/fields/color-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/date-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/date-range-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/icon-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/index.cjs +1 -1
- package/dist/cjs/form/fields/input/index.cjs +1 -1
- package/dist/cjs/form/fields/input-number/index.cjs +1 -1
- package/dist/cjs/form/fields/mentions/index.cjs +1 -1
- package/dist/cjs/form/fields/password/index.cjs +1 -1
- package/dist/cjs/form/fields/radio/index.cjs +1 -1
- package/dist/cjs/form/fields/rate/index.cjs +1 -1
- package/dist/cjs/form/fields/select/index.cjs +1 -1
- package/dist/cjs/form/fields/slider/index.cjs +1 -1
- package/dist/cjs/form/fields/textarea/index.cjs +1 -1
- package/dist/cjs/form/fields/time-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/time-range-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/transfer/index.cjs +1 -1
- package/dist/cjs/form/fields/tree-select/index.cjs +1 -1
- package/dist/cjs/form/fields/upload/index.cjs +1 -1
- package/dist/cjs/form/form-actions.cjs +1 -1
- package/dist/cjs/form/form.cjs +1 -1
- package/dist/cjs/form/helpers/index.cjs +1 -1
- package/dist/cjs/form/helpers/with-form-item.cjs +1 -1
- package/dist/cjs/form/hooks/use-form-item-props.cjs +1 -1
- package/dist/cjs/form/hooks/use-label-width.cjs +1 -1
- package/dist/cjs/form/index.cjs +1 -1
- package/dist/cjs/form/use-form.cjs +1 -1
- package/dist/cjs/form-drawer/index.cjs +1 -1
- package/dist/cjs/form-modal/index.cjs +1 -1
- package/dist/cjs/generic-select/index.cjs +1 -0
- package/dist/cjs/grid/context.cjs +1 -1
- package/dist/cjs/grid/grid-item.cjs +1 -1
- package/dist/cjs/grid/hooks/index.cjs +1 -1
- package/dist/cjs/grid/hooks/use-container-breakpoints.cjs +1 -1
- package/dist/cjs/grid/hooks/use-container-width.cjs +1 -1
- package/dist/cjs/grid/hooks/use-grid-collapsed.cjs +1 -1
- package/dist/cjs/grid/hooks/use-normalized-gap.cjs +1 -1
- package/dist/cjs/grid/hooks/use-responsive-breakpoint.cjs +1 -1
- package/dist/cjs/grid/hooks/use-responsive-value.cjs +1 -1
- package/dist/cjs/grid/index.cjs +1 -1
- package/dist/cjs/grid/styles.cjs +1 -1
- package/dist/cjs/group/index.cjs +1 -1
- package/dist/cjs/icon/index.cjs +1 -1
- package/dist/cjs/icon-button/index.cjs +1 -1
- package/dist/cjs/icon-picker/icon-grid.cjs +1 -0
- package/dist/cjs/icon-picker/index.cjs +1 -0
- package/dist/cjs/image/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/input/index.cjs +1 -1
- package/dist/cjs/input-number/index.cjs +1 -1
- package/dist/cjs/keyboard/index.cjs +1 -1
- package/dist/cjs/list/index.cjs +1 -1
- package/dist/cjs/loader/index.cjs +1 -1
- package/dist/cjs/logo-icon/index.cjs +1 -1
- package/dist/cjs/mentions/index.cjs +1 -1
- package/dist/cjs/menu/index.cjs +1 -1
- package/dist/cjs/modal/index.cjs +1 -1
- package/dist/cjs/modal/modal.cjs +1 -1
- package/dist/cjs/operation-button/index.cjs +1 -1
- package/dist/cjs/page/components/aside-panel.cjs +1 -1
- package/dist/cjs/page/components/index.cjs +1 -1
- package/dist/cjs/page/components/resize-handle.cjs +1 -1
- package/dist/cjs/page/components/scroll-content.cjs +1 -1
- package/dist/cjs/page/entrance.cjs +1 -0
- package/dist/cjs/page/hooks/index.cjs +1 -1
- package/dist/cjs/page/hooks/use-page-key.cjs +1 -1
- package/dist/cjs/page/hooks/use-resize.cjs +1 -1
- package/dist/cjs/page/index.cjs +1 -1
- package/dist/cjs/page/styles.cjs +1 -1
- package/dist/cjs/page/viewport-context.cjs +1 -1
- package/dist/cjs/pagination/index.cjs +1 -1
- package/dist/cjs/permission-gate/index.cjs +1 -1
- package/dist/cjs/popconfirm/index.cjs +1 -1
- package/dist/cjs/popover/index.cjs +1 -1
- package/dist/cjs/pro-search/components/advanced-search-toggler.cjs +1 -1
- package/dist/cjs/pro-search/components/advanced-search.cjs +1 -1
- package/dist/cjs/pro-search/components/index.cjs +1 -1
- package/dist/cjs/pro-search/components/search-actions.cjs +1 -1
- package/dist/cjs/pro-search/index.cjs +1 -1
- package/dist/cjs/pro-search/styles.cjs +1 -1
- package/dist/cjs/pro-table/components/column-setting-item.cjs +1 -1
- package/dist/cjs/pro-table/components/column-settings-panel.cjs +1 -1
- package/dist/cjs/pro-table/components/column-settings.cjs +1 -1
- package/dist/cjs/pro-table/components/index.cjs +1 -1
- package/dist/cjs/pro-table/components/operation-button-group.cjs +1 -1
- package/dist/cjs/pro-table/components/ref.cjs +1 -1
- package/dist/cjs/pro-table/components/table-subscriber.cjs +1 -1
- package/dist/cjs/pro-table/components/table-summary.cjs +1 -1
- package/dist/cjs/pro-table/components/table-title.cjs +1 -1
- package/dist/cjs/pro-table/components/table.cjs +1 -1
- package/dist/cjs/pro-table/components/width-popover.cjs +1 -1
- package/dist/cjs/pro-table/context.cjs +1 -1
- package/dist/cjs/pro-table/event.cjs +1 -1
- package/dist/cjs/pro-table/hooks/index.cjs +1 -1
- package/dist/cjs/pro-table/hooks/use-column-settings-persistence.cjs +1 -1
- package/dist/cjs/pro-table/hooks/use-row-selection.cjs +1 -1
- package/dist/cjs/pro-table/hooks/use-table-columns.cjs +1 -1
- package/dist/cjs/pro-table/index.cjs +1 -1
- package/dist/cjs/pro-table/store.cjs +1 -1
- package/dist/cjs/progress/index.cjs +1 -1
- package/dist/cjs/qrcode/index.cjs +1 -1
- package/dist/cjs/radio/index.cjs +1 -1
- package/dist/cjs/rate/index.cjs +1 -1
- package/dist/cjs/result/index.cjs +1 -1
- package/dist/cjs/row/index.cjs +1 -1
- package/dist/cjs/scroll-area/index.cjs +1 -1
- package/dist/cjs/scroll-area/styles.cjs +1 -1
- package/dist/cjs/segmented/index.cjs +1 -1
- package/dist/cjs/select/hooks/index.cjs +1 -1
- package/dist/cjs/select/hooks/use-data-options-select.cjs +1 -1
- package/dist/cjs/select/hooks/use-dictionary-options-select.cjs +1 -1
- package/dist/cjs/select/index.cjs +1 -1
- package/dist/cjs/skeleton/index.cjs +1 -1
- package/dist/cjs/slider/index.cjs +1 -1
- package/dist/cjs/space/index.cjs +1 -1
- package/dist/cjs/space/space.cjs +1 -1
- package/dist/cjs/sparkles-text/index.cjs +1 -1
- package/dist/cjs/sparkles-text/sparkle.cjs +1 -1
- package/dist/cjs/spin/index.cjs +1 -1
- package/dist/cjs/split-text/index.cjs +1 -1
- package/dist/cjs/splitter/index.cjs +1 -1
- package/dist/cjs/stack/index.cjs +1 -1
- package/dist/cjs/statistic/index.cjs +1 -1
- package/dist/cjs/steps/index.cjs +1 -1
- package/dist/cjs/switch/index.cjs +1 -1
- package/dist/cjs/table/index.cjs +1 -1
- package/dist/cjs/table/use-pagination-props.cjs +1 -1
- package/dist/cjs/tabs/index.cjs +1 -1
- package/dist/cjs/tag/index.cjs +1 -1
- package/dist/cjs/time-picker/index.cjs +1 -1
- package/dist/cjs/timeline/index.cjs +1 -1
- package/dist/cjs/tooltip/index.cjs +1 -1
- package/dist/cjs/tour/index.cjs +1 -1
- package/dist/cjs/transfer/index.cjs +1 -1
- package/dist/cjs/tree/hooks/index.cjs +1 -1
- package/dist/cjs/tree/hooks/use-data-options-tree.cjs +1 -1
- package/dist/cjs/tree/index.cjs +1 -1
- package/dist/cjs/tree-select/hooks/index.cjs +1 -1
- package/dist/cjs/tree-select/hooks/use-data-options-tree-select.cjs +1 -1
- package/dist/cjs/tree-select/index.cjs +1 -1
- package/dist/cjs/typing-animation/index.cjs +1 -1
- package/dist/cjs/typography/index.cjs +1 -1
- package/dist/cjs/upload/index.cjs +1 -1
- package/dist/cjs/watermark/index.cjs +1 -1
- package/dist/es/_base/constants/breakpoints.js +1 -1
- package/dist/es/_base/constants/common.js +1 -1
- package/dist/es/_base/constants/css-vars.js +1 -1
- package/dist/es/_base/constants/event.js +1 -1
- package/dist/es/_base/constants/index.js +1 -1
- package/dist/es/_base/constants/symbols.js +1 -1
- package/dist/es/_base/constants/theme.js +1 -1
- package/dist/es/_base/globals.js +8 -12
- package/dist/es/_base/helpers/breakpoints.js +1 -1
- package/dist/es/_base/helpers/color.js +1 -1
- package/dist/es/_base/helpers/common.js +2 -5
- package/dist/es/_base/helpers/event.js +1 -1
- package/dist/es/_base/helpers/index.js +1 -1
- package/dist/es/_base/helpers/message.js +1 -1
- package/dist/es/_base/helpers/modal.js +1 -1
- package/dist/es/_base/helpers/notification.js +1 -1
- package/dist/es/_base/helpers/props.js +1 -1
- package/dist/es/_base/helpers/react.js +1 -1
- package/dist/es/_base/hooks/index.js +1 -1
- package/dist/es/_base/hooks/use-theme-tokens.js +1 -1
- package/dist/es/_base/index.js +1 -1
- package/dist/es/_base/styles/common.js +1 -1
- package/dist/es/_base/styles/index.js +1 -1
- package/dist/es/_base/types/breakpoints.js +1 -1
- package/dist/es/_base/types/common.js +1 -1
- package/dist/es/_base/types/index.js +1 -1
- package/dist/es/action-button/index.js +1 -1
- package/dist/es/action-button/use-action-button.js +1 -1
- package/dist/es/action-group/index.js +1 -1
- package/dist/es/action-group/use-action-group.js +1 -1
- package/dist/es/action-group/use-computed-action-buttons.js +1 -1
- package/dist/es/affix/index.js +1 -1
- package/dist/es/alert/index.js +1 -1
- package/dist/es/anchor/index.js +1 -1
- package/dist/es/auto-complete/index.js +1 -1
- package/dist/es/avatar/index.js +1 -1
- package/dist/es/badge/index.js +1 -1
- package/dist/es/bool/index.js +49 -50
- package/dist/es/border-beam/index.js +1 -1
- package/dist/es/breadcrumb/index.js +1 -1
- package/dist/es/button/index.js +1 -1
- package/dist/es/calendar/index.js +1 -1
- package/dist/es/card/index.js +1 -1
- package/dist/es/carousel/index.js +1 -1
- package/dist/es/cascader/index.js +1 -1
- package/dist/es/center/index.js +1 -1
- package/dist/es/charts/chart.js +1 -1
- package/dist/es/charts/helpers/group.js +1 -1
- package/dist/es/charts/helpers/index.js +1 -1
- package/dist/es/charts/hooks/index.js +1 -1
- package/dist/es/charts/hooks/use-chart.js +1 -1
- package/dist/es/charts/index.js +1 -1
- package/dist/es/charts/themes/index.js +1 -1
- package/dist/es/charts/themes/walden-dark.js +1 -1
- package/dist/es/charts/themes/walden.js +1 -1
- package/dist/es/charts/themes/wonderland-dark.js +1 -1
- package/dist/es/charts/themes/wonderland.js +1 -1
- package/dist/es/checkbox/index.js +1 -1
- package/dist/es/code-editor/index.js +219 -0
- package/dist/es/code-highlighter/index.js +1 -1
- package/dist/es/col/index.js +1 -1
- package/dist/es/collapse/index.js +1 -1
- package/dist/es/color-picker/index.js +1 -1
- package/dist/es/compact/index.js +1 -1
- package/dist/es/config-provider/app.js +1 -1
- package/dist/es/config-provider/constants.js +1 -1
- package/dist/es/config-provider/context-holder.js +1 -1
- package/dist/es/config-provider/css-vars.js +1 -1
- package/dist/es/config-provider/dark-mode-context.js +1 -1
- package/dist/es/config-provider/error-fallback.js +1 -1
- package/dist/es/config-provider/global-style.js +2 -2
- package/dist/es/config-provider/index.js +3 -3
- package/dist/es/config-provider/theme-config.js +1 -1
- package/dist/es/config-provider/use-config-provider.js +2 -2
- package/dist/es/crud/components/action-button-group.js +1 -1
- package/dist/es/crud/components/index.js +1 -1
- package/dist/es/crud/components/main.js +1 -1
- package/dist/es/crud/components/mutation-holder.js +1 -1
- package/dist/es/crud/components/operation-button-group.js +1 -1
- package/dist/es/crud/components/scene-form.js +1 -1
- package/dist/es/crud/components/selection-indicator.js +3 -3
- package/dist/es/crud/components/toolbar-actions.js +1 -1
- package/dist/es/crud/components/toolbar.js +1 -1
- package/dist/es/crud/event.js +1 -1
- package/dist/es/crud/helpers.js +1 -1
- package/dist/es/crud/hooks/index.js +1 -1
- package/dist/es/crud/hooks/use-query-observer.js +1 -1
- package/dist/es/crud/hooks/use-search-values.js +1 -1
- package/dist/es/crud/hooks/use-selected-rows.js +1 -1
- package/dist/es/crud/index.js +1 -1
- package/dist/es/crud/store.js +1 -1
- package/dist/es/crud/styles.js +2 -2
- package/dist/es/crud-page/index.js +1 -1
- package/dist/es/date-picker/index.js +1 -1
- package/dist/es/descriptions/index.js +1 -1
- package/dist/es/divider/index.js +1 -1
- package/dist/es/drawer/index.js +1 -1
- package/dist/es/dropdown/index.js +1 -1
- package/dist/es/dynamic-icon/index.js +26 -29
- package/dist/es/dynamic-icon/load-icon-node.js +32 -0
- package/dist/es/dynamic-icon/placeholder-icon.js +1 -1
- package/dist/es/dynamic-icon/unknown-icon.js +1 -1
- package/dist/es/editable-table/components/add-row-button.js +24 -0
- package/dist/es/editable-table/components/editable-cell.js +27 -0
- package/dist/es/editable-table/components/editable-row-actions.js +53 -0
- package/dist/es/editable-table/components/index.js +4 -0
- package/dist/es/editable-table/helpers.js +22 -0
- package/dist/es/editable-table/hooks/index.js +3 -0
- package/dist/es/editable-table/hooks/use-editable-actions.js +69 -0
- package/dist/es/editable-table/hooks/use-editable-columns.js +49 -0
- package/dist/es/editable-table/index.js +61 -0
- package/dist/es/editable-table/store.js +19 -0
- package/dist/es/empty/empty.js +1 -1
- package/dist/es/empty/index.js +1 -1
- package/dist/es/file-upload/index.js +1 -1
- package/dist/es/flex/index.js +1 -1
- package/dist/es/flex-card/index.js +1 -1
- package/dist/es/flex-card/styles.js +2 -2
- package/dist/es/flip-text/index.js +1 -1
- package/dist/es/float-button/index.js +1 -1
- package/dist/es/form/components/form.js +4 -2
- package/dist/es/form/components/index.js +1 -1
- package/dist/es/form/components/reset-button.js +1 -1
- package/dist/es/form/components/submit-button.js +1 -1
- package/dist/es/form/contexts/form-context.js +1 -1
- package/dist/es/form/contexts/form-layout.js +1 -1
- package/dist/es/form/contexts/index.js +1 -1
- package/dist/es/form/fields/auto-complete/index.js +1 -1
- package/dist/es/form/fields/bool/index.js +1 -1
- package/dist/es/form/fields/cascader/index.js +1 -1
- package/dist/es/form/fields/checkbox/index.js +1 -1
- package/dist/es/form/fields/code-editor/index.js +23 -0
- package/dist/es/form/fields/color-picker/index.js +1 -1
- package/dist/es/form/fields/date-picker/index.js +1 -1
- package/dist/es/form/fields/date-range-picker/index.js +1 -1
- package/dist/es/form/fields/icon-picker/index.js +20 -0
- package/dist/es/form/fields/index.js +41 -37
- package/dist/es/form/fields/input/index.js +1 -1
- package/dist/es/form/fields/input-number/index.js +1 -1
- package/dist/es/form/fields/mentions/index.js +1 -1
- package/dist/es/form/fields/password/index.js +1 -1
- package/dist/es/form/fields/radio/index.js +1 -1
- package/dist/es/form/fields/rate/index.js +1 -1
- package/dist/es/form/fields/select/index.js +1 -1
- package/dist/es/form/fields/slider/index.js +1 -1
- package/dist/es/form/fields/textarea/index.js +1 -1
- package/dist/es/form/fields/time-picker/index.js +1 -1
- package/dist/es/form/fields/time-range-picker/index.js +1 -1
- package/dist/es/form/fields/transfer/index.js +1 -1
- package/dist/es/form/fields/tree-select/index.js +1 -1
- package/dist/es/form/fields/upload/index.js +1 -1
- package/dist/es/form/form-actions.js +1 -1
- package/dist/es/form/form.js +1 -1
- package/dist/es/form/helpers/create-field.js +1 -1
- package/dist/es/form/helpers/index.js +1 -1
- package/dist/es/form/helpers/with-form-item.js +28 -18
- package/dist/es/form/hooks/use-form-item-props.js +1 -1
- package/dist/es/form/hooks/use-label-width.js +1 -1
- package/dist/es/form/index.js +1 -1
- package/dist/es/form/use-form.js +1 -1
- package/dist/es/form-drawer/index.js +13 -13
- package/dist/es/form-modal/index.js +12 -11
- package/dist/es/generic-select/index.js +57 -0
- package/dist/es/grid/context.js +1 -1
- package/dist/es/grid/grid-item.js +1 -1
- package/dist/es/grid/hooks/index.js +1 -1
- package/dist/es/grid/hooks/use-container-breakpoints.js +1 -1
- package/dist/es/grid/hooks/use-container-width.js +1 -1
- package/dist/es/grid/hooks/use-grid-collapsed.js +1 -1
- package/dist/es/grid/hooks/use-normalized-gap.js +1 -1
- package/dist/es/grid/hooks/use-responsive-breakpoint.js +1 -1
- package/dist/es/grid/hooks/use-responsive-value.js +1 -1
- package/dist/es/grid/index.js +1 -1
- package/dist/es/grid/styles.js +2 -2
- package/dist/es/group/index.js +1 -1
- package/dist/es/icon/index.js +1 -1
- package/dist/es/icon-button/index.js +2 -2
- package/dist/es/icon-picker/icon-grid.js +112 -0
- package/dist/es/icon-picker/index.js +76 -0
- package/dist/es/image/index.js +1 -1
- package/dist/es/index.js +110 -104
- package/dist/es/input/index.js +1 -1
- package/dist/es/input-number/index.js +1 -1
- package/dist/es/keyboard/index.js +2 -2
- package/dist/es/list/index.js +1 -1
- package/dist/es/loader/index.js +1 -1
- package/dist/es/logo-icon/index.js +1 -1
- package/dist/es/mentions/index.js +1 -1
- package/dist/es/menu/index.js +1 -1
- package/dist/es/modal/index.js +1 -1
- package/dist/es/modal/modal.js +1 -1
- package/dist/es/operation-button/index.js +2 -2
- package/dist/es/page/components/aside-panel.js +1 -1
- package/dist/es/page/components/index.js +1 -1
- package/dist/es/page/components/resize-handle.js +2 -3
- package/dist/es/page/components/scroll-content.js +8 -8
- package/dist/es/page/entrance.js +51 -0
- package/dist/es/page/hooks/index.js +1 -1
- package/dist/es/page/hooks/use-page-key.js +1 -1
- package/dist/es/page/hooks/use-resize.js +1 -1
- package/dist/es/page/index.js +100 -86
- package/dist/es/page/styles.js +3 -3
- package/dist/es/page/viewport-context.js +1 -1
- package/dist/es/pagination/index.js +1 -1
- package/dist/es/permission-gate/index.js +1 -1
- package/dist/es/popconfirm/index.js +1 -1
- package/dist/es/popover/index.js +1 -1
- package/dist/es/pro-search/components/advanced-search-toggler.js +1 -1
- package/dist/es/pro-search/components/advanced-search.js +1 -1
- package/dist/es/pro-search/components/index.js +1 -1
- package/dist/es/pro-search/components/search-actions.js +1 -1
- package/dist/es/pro-search/index.js +1 -1
- package/dist/es/pro-search/styles.js +5 -5
- package/dist/es/pro-table/components/column-setting-item.js +8 -8
- package/dist/es/pro-table/components/column-settings-panel.js +3 -3
- package/dist/es/pro-table/components/column-settings.js +1 -1
- package/dist/es/pro-table/components/index.js +1 -1
- package/dist/es/pro-table/components/operation-button-group.js +1 -1
- package/dist/es/pro-table/components/ref.js +1 -1
- package/dist/es/pro-table/components/table-subscriber.js +1 -1
- package/dist/es/pro-table/components/table-summary.js +1 -1
- package/dist/es/pro-table/components/table-title.js +1 -1
- package/dist/es/pro-table/components/table.js +72 -49
- package/dist/es/pro-table/components/width-popover.js +2 -2
- package/dist/es/pro-table/context.js +1 -1
- package/dist/es/pro-table/event.js +1 -1
- package/dist/es/pro-table/hooks/index.js +1 -1
- package/dist/es/pro-table/hooks/use-column-settings-persistence.js +1 -1
- package/dist/es/pro-table/hooks/use-row-selection.js +1 -1
- package/dist/es/pro-table/hooks/use-table-columns.js +35 -34
- package/dist/es/pro-table/index.js +17 -15
- package/dist/es/pro-table/store.js +1 -1
- package/dist/es/progress/index.js +1 -1
- package/dist/es/qrcode/index.js +1 -1
- package/dist/es/radio/index.js +1 -1
- package/dist/es/rate/index.js +1 -1
- package/dist/es/result/index.js +1 -1
- package/dist/es/row/index.js +1 -1
- package/dist/es/scroll-area/index.js +23 -23
- package/dist/es/scroll-area/styles.js +1 -1
- package/dist/es/segmented/index.js +1 -1
- package/dist/es/select/hooks/index.js +1 -1
- package/dist/es/select/hooks/use-data-options-select.js +2 -2
- package/dist/es/select/hooks/use-dictionary-options-select.js +2 -2
- package/dist/es/select/index.js +1 -1
- package/dist/es/skeleton/index.js +1 -1
- package/dist/es/slider/index.js +1 -1
- package/dist/es/space/index.js +1 -1
- package/dist/es/space/space.js +1 -1
- package/dist/es/sparkles-text/index.js +1 -1
- package/dist/es/sparkles-text/sparkle.js +1 -1
- package/dist/es/spin/index.js +1 -1
- package/dist/es/split-text/index.js +1 -1
- package/dist/es/splitter/index.js +1 -1
- package/dist/es/stack/index.js +1 -1
- package/dist/es/statistic/index.js +1 -1
- package/dist/es/steps/index.js +1 -1
- package/dist/es/switch/index.js +1 -1
- package/dist/es/table/index.js +54 -37
- package/dist/es/table/use-pagination-props.js +2 -2
- package/dist/es/tabs/index.js +1 -1
- package/dist/es/tag/index.js +1 -1
- package/dist/es/time-picker/index.js +1 -1
- package/dist/es/timeline/index.js +1 -1
- package/dist/es/tooltip/index.js +1 -1
- package/dist/es/tour/index.js +1 -1
- package/dist/es/transfer/index.js +1 -1
- package/dist/es/tree/hooks/index.js +1 -1
- package/dist/es/tree/hooks/use-data-options-tree.js +1 -1
- package/dist/es/tree/index.js +1 -1
- package/dist/es/tree-select/hooks/index.js +1 -1
- package/dist/es/tree-select/hooks/use-data-options-tree-select.js +2 -2
- package/dist/es/tree-select/index.js +1 -1
- package/dist/es/typing-animation/index.js +1 -1
- package/dist/es/typography/index.js +1 -1
- package/dist/es/upload/index.js +1 -1
- package/dist/es/watermark/index.js +1 -1
- package/dist/types/_base/globals.d.ts +14 -22
- package/dist/types/_base/helpers/common.d.ts +1 -7
- package/dist/types/_base/index.d.ts +1 -1
- package/dist/types/code-editor/index.d.ts +4 -0
- package/dist/types/code-editor/props.d.ts +197 -0
- package/dist/types/crud/props.d.ts +14 -1
- package/dist/types/dropdown/index.d.ts +1 -0
- package/dist/types/dynamic-icon/index.d.ts +1 -1
- package/dist/types/dynamic-icon/load-icon-node.d.ts +14 -0
- package/dist/types/editable-table/components/add-row-button.d.ts +6 -0
- package/dist/types/editable-table/components/editable-cell.d.ts +18 -0
- package/dist/types/editable-table/components/editable-row-actions.d.ts +31 -0
- package/dist/types/editable-table/components/index.d.ts +3 -0
- package/dist/types/editable-table/helpers.d.ts +10 -0
- package/dist/types/editable-table/hooks/index.d.ts +2 -0
- package/dist/types/editable-table/hooks/use-editable-actions.d.ts +29 -0
- package/dist/types/editable-table/hooks/use-editable-columns.d.ts +25 -0
- package/dist/types/editable-table/index.d.ts +14 -0
- package/dist/types/editable-table/props.d.ts +73 -0
- package/dist/types/editable-table/store.d.ts +38 -0
- package/dist/types/editable-table/types.d.ts +76 -0
- package/dist/types/form/fields/code-editor/index.d.ts +5 -0
- package/dist/types/form/fields/code-editor/props.d.ts +15 -0
- package/dist/types/form/fields/icon-picker/index.d.ts +5 -0
- package/dist/types/form/fields/icon-picker/props.d.ts +10 -0
- package/dist/types/form/fields/index.d.ts +6 -0
- package/dist/types/form/form.d.ts +13 -1
- package/dist/types/generic-select/index.d.ts +15 -0
- package/dist/types/generic-select/props.d.ts +181 -0
- package/dist/types/icon-picker/icon-grid.d.ts +37 -0
- package/dist/types/icon-picker/index.d.ts +13 -0
- package/dist/types/icon-picker/props.d.ts +86 -0
- package/dist/types/index.d.ts +8 -4
- package/dist/types/page/components/resize-handle.d.ts +1 -1
- package/dist/types/page/entrance.d.ts +56 -0
- package/dist/types/page/index.d.ts +1 -0
- package/dist/types/pro-table/components/table.d.ts +4 -4
- package/dist/types/pro-table/hooks/index.d.ts +1 -1
- package/dist/types/pro-table/hooks/use-table-columns.d.ts +6 -0
- package/dist/types/pro-table/props.d.ts +15 -1
- package/dist/types/scroll-area/index.d.ts +2 -2
- package/dist/types/scroll-area/props.d.ts +7 -0
- package/dist/types/table/index.d.ts +1 -1
- package/dist/types/table/props.d.ts +8 -0
- package/package.json +27 -13
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { Size } from '../_base';
|
|
3
|
+
/**
|
|
4
|
+
* Visual variant of the trigger, mirroring antd's `<Select variant>`.
|
|
5
|
+
*/
|
|
6
|
+
export type GenericSelectVariant = "outlined" | "filled" | "borderless" | "underlined";
|
|
7
|
+
/**
|
|
8
|
+
* Validation status driving the trigger's border/feedback colour, mirroring
|
|
9
|
+
* antd's `<Select status>`.
|
|
10
|
+
*/
|
|
11
|
+
export type GenericSelectStatus = "error" | "warning";
|
|
12
|
+
/**
|
|
13
|
+
* The render API the base hands down to a concrete popup body. A concrete
|
|
14
|
+
* selection component (icon grid, dropdown table, …) reads these to render its
|
|
15
|
+
* surface and commit a value — it never touches the underlying antd `Select`.
|
|
16
|
+
*/
|
|
17
|
+
export interface GenericSelectPopupApi<TValue> {
|
|
18
|
+
/**
|
|
19
|
+
* The currently selected value, or `null` when unset. Use it to highlight the
|
|
20
|
+
* active cell/row in the popup.
|
|
21
|
+
*/
|
|
22
|
+
value: TValue | null;
|
|
23
|
+
/**
|
|
24
|
+
* The debounced search keyword typed into the trigger's search box, or `""`
|
|
25
|
+
* when not searching. The popup filters its content against this.
|
|
26
|
+
*/
|
|
27
|
+
keyword: string;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the popup is currently open. Useful for deferring expensive popup
|
|
30
|
+
* work (data fetches, virtualization measurement) until first open.
|
|
31
|
+
*/
|
|
32
|
+
open: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Commit a value. Forwards to {@link GenericSelectProps.onChange}. Does NOT
|
|
35
|
+
* close the popup — call {@link GenericSelectPopupApi.close} as well for the
|
|
36
|
+
* common "pick then dismiss" flow.
|
|
37
|
+
*/
|
|
38
|
+
select: (value: TValue) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Close the popup without changing the value.
|
|
41
|
+
*/
|
|
42
|
+
close: () => void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Imperative handle exposed through `ref`.
|
|
46
|
+
*/
|
|
47
|
+
export interface GenericSelectRef {
|
|
48
|
+
/**
|
|
49
|
+
* Move focus into the trigger.
|
|
50
|
+
*/
|
|
51
|
+
focus: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* Remove focus from the trigger.
|
|
54
|
+
*/
|
|
55
|
+
blur: () => void;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Props for the {@link GenericSelect} abstract base. It owns the antd
|
|
59
|
+
* `Select`-styled trigger (value display, size/status/variant/clear/disabled),
|
|
60
|
+
* the controlled open state, the search box, and the popup container; concrete
|
|
61
|
+
* components supply only the popup body ({@link GenericSelectProps.renderPopup})
|
|
62
|
+
* and how the selected value renders ({@link GenericSelectProps.renderLabel}).
|
|
63
|
+
*
|
|
64
|
+
* `TValue` is the selectable value — it is forwarded to the underlying antd
|
|
65
|
+
* `Select` as its value, so it must be a `string` or `number`.
|
|
66
|
+
*/
|
|
67
|
+
export interface GenericSelectProps<TValue extends string | number = string> {
|
|
68
|
+
/**
|
|
69
|
+
* The selected value, or `null`/`undefined` when unset (renders the placeholder).
|
|
70
|
+
*/
|
|
71
|
+
value?: TValue | null;
|
|
72
|
+
/**
|
|
73
|
+
* Fired when a value is committed from the popup, or `null` when cleared.
|
|
74
|
+
*/
|
|
75
|
+
onChange?: (value: TValue | null) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Fired when the trigger loses focus. Wire this to drive form `touched` state.
|
|
78
|
+
*/
|
|
79
|
+
onBlur?: () => void;
|
|
80
|
+
/**
|
|
81
|
+
* Controlled open state of the popup. Omit for uncontrolled behaviour.
|
|
82
|
+
*/
|
|
83
|
+
open?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Initial open state for the uncontrolled mode. Ignored when `open` is provided.
|
|
86
|
+
*
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
defaultOpen?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Fired when the popup opens or closes.
|
|
92
|
+
*/
|
|
93
|
+
onOpenChange?: (open: boolean) => void;
|
|
94
|
+
/**
|
|
95
|
+
* Render the popup body. Receives a {@link GenericSelectPopupApi} to read the
|
|
96
|
+
* current value/keyword/open state and to commit or dismiss a selection.
|
|
97
|
+
*/
|
|
98
|
+
renderPopup: (api: GenericSelectPopupApi<TValue>) => ReactNode;
|
|
99
|
+
/**
|
|
100
|
+
* Render the selected value inside the trigger. Defaults to the raw value.
|
|
101
|
+
*/
|
|
102
|
+
renderLabel?: (value: TValue) => ReactNode;
|
|
103
|
+
/**
|
|
104
|
+
* Show the search box in the trigger and forward the keyword to the popup.
|
|
105
|
+
*
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
searchable?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Placeholder shown when no value is selected.
|
|
111
|
+
*/
|
|
112
|
+
placeholder?: ReactNode;
|
|
113
|
+
/**
|
|
114
|
+
* Density preset matching the VEF size token.
|
|
115
|
+
*
|
|
116
|
+
* @default "medium"
|
|
117
|
+
*/
|
|
118
|
+
size?: Size;
|
|
119
|
+
/**
|
|
120
|
+
* Validation status, mirroring antd's `<Select status>`.
|
|
121
|
+
*/
|
|
122
|
+
status?: GenericSelectStatus;
|
|
123
|
+
/**
|
|
124
|
+
* Visual variant of the trigger.
|
|
125
|
+
*
|
|
126
|
+
* @default "outlined"
|
|
127
|
+
*/
|
|
128
|
+
variant?: GenericSelectVariant;
|
|
129
|
+
/**
|
|
130
|
+
* Disable the control.
|
|
131
|
+
*
|
|
132
|
+
* @default false
|
|
133
|
+
*/
|
|
134
|
+
disabled?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Show a clear button to reset the value to `null`.
|
|
137
|
+
*
|
|
138
|
+
* @default false
|
|
139
|
+
*/
|
|
140
|
+
allowClear?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Render the trigger in a loading state.
|
|
143
|
+
*
|
|
144
|
+
* @default false
|
|
145
|
+
*/
|
|
146
|
+
loading?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Custom suffix icon for the trigger. While the popup is open and `searchable`,
|
|
149
|
+
* a search icon is shown instead.
|
|
150
|
+
*/
|
|
151
|
+
suffixIcon?: ReactNode;
|
|
152
|
+
/**
|
|
153
|
+
* Content rendered before the value inside the trigger.
|
|
154
|
+
*/
|
|
155
|
+
prefix?: ReactNode;
|
|
156
|
+
/**
|
|
157
|
+
* Return the element the popup is rendered into. Defaults to `document.body`.
|
|
158
|
+
* Pass a scoped container (e.g. the form-editor phone shell) to contain the
|
|
159
|
+
* popup within it.
|
|
160
|
+
*/
|
|
161
|
+
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
162
|
+
/**
|
|
163
|
+
* Whether the popup width matches the trigger width. Defaults to `false` so a
|
|
164
|
+
* popup body wider than the trigger (e.g. an icon grid) is not constrained.
|
|
165
|
+
*
|
|
166
|
+
* @default false
|
|
167
|
+
*/
|
|
168
|
+
popupMatchSelectWidth?: boolean | number;
|
|
169
|
+
/**
|
|
170
|
+
* Additional class applied to the popup root.
|
|
171
|
+
*/
|
|
172
|
+
popupClassName?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Additional class applied to the trigger.
|
|
175
|
+
*/
|
|
176
|
+
className?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Inline styles applied to the trigger.
|
|
179
|
+
*/
|
|
180
|
+
style?: CSSProperties;
|
|
181
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DynamicIconName } from '../dynamic-icon';
|
|
2
|
+
import { MemoExoticComponent } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Intrinsic width of the grid (8 columns + gaps). Exported so the picker can pin
|
|
5
|
+
* the popup to it instead of stretching to the trigger width.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ICON_GRID_WIDTH: number;
|
|
8
|
+
interface IconGridProps {
|
|
9
|
+
/**
|
|
10
|
+
* The selected icon name (for highlighting), or `null` when unset.
|
|
11
|
+
*/
|
|
12
|
+
value: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* The search keyword to filter icon names against.
|
|
15
|
+
*/
|
|
16
|
+
keyword: string;
|
|
17
|
+
/**
|
|
18
|
+
* Commit the icon name of a clicked cell.
|
|
19
|
+
*/
|
|
20
|
+
onSelect: (name: DynamicIconName) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Dismiss the popup after a pick.
|
|
23
|
+
*/
|
|
24
|
+
onClose: () => void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The icon-picker popup body: a virtualized, searchable grid over the full
|
|
28
|
+
* lucide icon set. Only the rows in (and near) the viewport are mounted, and the
|
|
29
|
+
* shared icon loader caps concurrent chunk imports — so the ~2000-icon set never
|
|
30
|
+
* floods the bundler with a request per cell.
|
|
31
|
+
*
|
|
32
|
+
* Memoized, and fed stable `onSelect`/`onClose` by {@link GenericSelect}, so it
|
|
33
|
+
* is skipped while the user types in the trigger search box (only the debounced
|
|
34
|
+
* `keyword` actually re-renders it).
|
|
35
|
+
*/
|
|
36
|
+
export declare const IconGrid: MemoExoticComponent<({ value, keyword, onSelect, onClose }: IconGridProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PropsWithRef } from '../_base';
|
|
2
|
+
import { IconPickerProps, IconPickerRef } from './props';
|
|
3
|
+
/**
|
|
4
|
+
* A searchable popup grid for choosing a lucide icon, built on
|
|
5
|
+
* {@link GenericSelect}. The value is the kebab-case icon name (e.g.
|
|
6
|
+
* `"layout-dashboard"`); the trigger previews the selected icon alongside its
|
|
7
|
+
* name, and unknown names fall back to a placeholder glyph rather than breaking.
|
|
8
|
+
*
|
|
9
|
+
* Works both as a standalone controlled/uncontrolled input and, via
|
|
10
|
+
* `IconPickerField`, inside the VEF form.
|
|
11
|
+
*/
|
|
12
|
+
export declare function IconPicker(props: PropsWithRef<IconPickerRef, IconPickerProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type { IconPickerProps, IconPickerRef, IconPickerValue } from './props';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { Size } from '../_base';
|
|
3
|
+
import { DynamicIconName } from '../dynamic-icon';
|
|
4
|
+
import { GenericSelectRef, GenericSelectStatus, GenericSelectVariant } from '../generic-select';
|
|
5
|
+
/**
|
|
6
|
+
* The icon-picker value. Accepts any known lucide icon name (with editor
|
|
7
|
+
* autocomplete) as well as a bare `string`, since persisted/backend data is an
|
|
8
|
+
* untyped icon name that may not be in the current lucide set — an unknown name
|
|
9
|
+
* renders a fallback glyph rather than breaking.
|
|
10
|
+
*/
|
|
11
|
+
export type IconPickerValue = DynamicIconName | (string & {});
|
|
12
|
+
/**
|
|
13
|
+
* Imperative handle exposed through `ref`, identical to the underlying
|
|
14
|
+
* {@link GenericSelectRef}.
|
|
15
|
+
*/
|
|
16
|
+
export type IconPickerRef = GenericSelectRef;
|
|
17
|
+
/**
|
|
18
|
+
* Props for the {@link IconPicker}. A searchable popup grid for choosing a
|
|
19
|
+
* lucide icon, built on {@link GenericSelect}. The value is the kebab-case icon
|
|
20
|
+
* name (e.g. `"layout-dashboard"`) — a plain string that survives a JSON
|
|
21
|
+
* round-trip and is rendered elsewhere through `DynamicIcon`.
|
|
22
|
+
*/
|
|
23
|
+
export interface IconPickerProps {
|
|
24
|
+
/**
|
|
25
|
+
* The selected icon name, or `null`/`undefined` when unset.
|
|
26
|
+
*/
|
|
27
|
+
value?: IconPickerValue | null;
|
|
28
|
+
/**
|
|
29
|
+
* Initial value for the uncontrolled mode. Ignored when `value` is provided.
|
|
30
|
+
*/
|
|
31
|
+
defaultValue?: IconPickerValue;
|
|
32
|
+
/**
|
|
33
|
+
* Fired when an icon is picked, or `null` when cleared. The value can be any
|
|
34
|
+
* lucide name the user picks; it is the same `IconPickerValue` shape as
|
|
35
|
+
* {@link IconPickerProps.value}, not narrowed to known names.
|
|
36
|
+
*/
|
|
37
|
+
onChange?: (value: IconPickerValue | null) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Fired when the control loses focus.
|
|
40
|
+
*/
|
|
41
|
+
onBlur?: () => void;
|
|
42
|
+
/**
|
|
43
|
+
* Placeholder shown when no icon is selected.
|
|
44
|
+
*/
|
|
45
|
+
placeholder?: ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Density preset matching the VEF size token.
|
|
48
|
+
*
|
|
49
|
+
* @default "medium"
|
|
50
|
+
*/
|
|
51
|
+
size?: Size;
|
|
52
|
+
/**
|
|
53
|
+
* Validation status, mirroring antd's `<Select status>`.
|
|
54
|
+
*/
|
|
55
|
+
status?: GenericSelectStatus;
|
|
56
|
+
/**
|
|
57
|
+
* Visual variant of the trigger.
|
|
58
|
+
*
|
|
59
|
+
* @default "outlined"
|
|
60
|
+
*/
|
|
61
|
+
variant?: GenericSelectVariant;
|
|
62
|
+
/**
|
|
63
|
+
* Disable the control.
|
|
64
|
+
*
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
disabled?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Show a clear button to reset the value.
|
|
70
|
+
*
|
|
71
|
+
* @default true
|
|
72
|
+
*/
|
|
73
|
+
allowClear?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Return the element the popup is rendered into. Defaults to `document.body`.
|
|
76
|
+
*/
|
|
77
|
+
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
78
|
+
/**
|
|
79
|
+
* Additional class applied to the trigger.
|
|
80
|
+
*/
|
|
81
|
+
className?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Inline styles applied to the trigger.
|
|
84
|
+
*/
|
|
85
|
+
style?: CSSProperties;
|
|
86
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { breakpoints, closeAllMessages, closeAllNotifications, colors, emitReloadPage, fullSizes, getSpacingValue, globalCssVars, isFragment, isPresetColor, isSemanticColor,
|
|
1
|
+
export { breakpoints, closeAllMessages, closeAllNotifications, colors, emitReloadPage, fullSizes, getSpacingValue, globalCssVars, isFragment, isPresetColor, isSemanticColor, presetColors, resolveBreakpointValue, semanticColors, semanticSceneIcons, semanticSceneLabels, semanticScenes, showConfirm, showErrorAlert, showErrorMessage, showErrorNotification, showInfoAlert, showInfoMessage, showInfoNotification, showLoadingMessage, showSuccessAlert, showSuccessMessage, showSuccessNotification, showWarningAlert, showWarningMessage, showWarningNotification, sizes, SYMBOL_PAGINATION, SYMBOL_SORT, useThemeTokens, type ActionButtonConfig, type ActionConfirmMode, type AlertOptions, type Breakpoint, type Color, type ConfirmOptions, type FullSize, type GetProp, type GetProps, type GetRef, type Length, type NotificationOptions, type OrderSpec, type Orientation, type Position, type PresetColor, type PropsWithRef, type SemanticColor, type SemanticScene, type Size, type SizeableLength } from './_base';
|
|
2
2
|
export { ActionButton, type ActionButtonProps } from './action-button';
|
|
3
3
|
export { ActionGroup, type ActionGroupProps } from './action-group';
|
|
4
4
|
export { Affix, type AffixProps } from './affix';
|
|
@@ -18,6 +18,7 @@ export { Cascader, type CascaderOption, type CascaderProps } from './cascader';
|
|
|
18
18
|
export { Center, type CenterProps } from './center';
|
|
19
19
|
export { Chart, connectCharts, disconnectCharts, useChart, type ChartInstance, type ChartOption, type ChartProps, type UseChartOptions } from './charts';
|
|
20
20
|
export { Checkbox, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps } from './checkbox';
|
|
21
|
+
export { CodeEditor, type CodeEditorLanguage, type CodeEditorProps, type CodeEditorRef, type CodeEditorTheme } from './code-editor';
|
|
21
22
|
export { CodeHighlighter, type CodeHighlighterProps } from './code-highlighter';
|
|
22
23
|
export { Col, type ColProps } from './col';
|
|
23
24
|
export { Collapse, type CollapseItem, type CollapseProps } from './collapse';
|
|
@@ -31,8 +32,9 @@ export { DatePicker, type DatePickerProps, type DateRangePickerProps } from './d
|
|
|
31
32
|
export { Descriptions, type DescriptionsItem, type DescriptionsProps } from './descriptions';
|
|
32
33
|
export { Divider, type DividerProps } from './divider';
|
|
33
34
|
export { Drawer, type DrawerProps } from './drawer';
|
|
34
|
-
export { Dropdown, type DropdownButtonProps, type DropdownButtonType, type DropdownMenuProps, type DropdownProps } from './dropdown';
|
|
35
|
+
export { Dropdown, type DropdownButtonProps, type DropdownButtonType, type DropdownMenuItem, type DropdownMenuProps, type DropdownProps } from './dropdown';
|
|
35
36
|
export { DynamicIcon, type DynamicIconName, type DynamicIconProps } from './dynamic-icon';
|
|
37
|
+
export { createEditableColumn, EditableTable, type EditableColumn, type EditableColumnOptions, type EditableOperationColumnConfig, type EditableRowActionsTexts, type EditableTableProps, type EditFieldContext, type RenderEditor, type RenderView } from './editable-table';
|
|
36
38
|
export { Empty, type EmptyProps } from './empty';
|
|
37
39
|
export { FileUpload, type FileUploadProps, type UploadedFileMeta } from './file-upload';
|
|
38
40
|
export { Flex, type FlexProps } from './flex';
|
|
@@ -43,10 +45,12 @@ export { createFormOptions, restoreFieldOptions, useForm, useFormContext, useFor
|
|
|
43
45
|
export type * from './form';
|
|
44
46
|
export { FormDrawer, type FormDrawerProps } from './form-drawer';
|
|
45
47
|
export { FormModal, type FormModalProps } from './form-modal';
|
|
48
|
+
export { GenericSelect, type GenericSelectPopupApi, type GenericSelectProps, type GenericSelectRef, type GenericSelectStatus, type GenericSelectVariant } from './generic-select';
|
|
46
49
|
export { Grid, useGridCollapsed, type GridItemProps, type GridProps } from './grid';
|
|
47
50
|
export { Group, type GroupProps } from './group';
|
|
48
51
|
export { Icon, type IconProps } from './icon';
|
|
49
52
|
export { IconButton, type IconButtonProps } from './icon-button';
|
|
53
|
+
export { IconPicker, type IconPickerProps, type IconPickerRef, type IconPickerValue } from './icon-picker';
|
|
50
54
|
export { Image, type ImageProps } from './image';
|
|
51
55
|
export { Input, type InputProps, type InputRef, type OTPProps, type PasswordProps, type SearchProps, type TextAreaProps } from './input';
|
|
52
56
|
export { InputNumber, type InputNumberProps } from './input-number';
|
|
@@ -58,7 +62,7 @@ export { Mentions, type MentionsOption, type MentionsProps } from './mentions';
|
|
|
58
62
|
export { Menu, type MenuDividerType, type MenuItem, type MenuItemGroupType, type MenuItemType, type MenuProps, type SubMenuType } from './menu';
|
|
59
63
|
export { Modal, type ModalProps } from './modal';
|
|
60
64
|
export { OperationButton, type OperationButtonProps } from './operation-button';
|
|
61
|
-
export { Page, useViewportHeight, type PageProps } from './page';
|
|
65
|
+
export { Page, usePageEntranceEffect, usePageEntranceSettled, useViewportHeight, type PageEntranceStore, type PageProps } from './page';
|
|
62
66
|
export { Pagination, type PaginationProps } from './pagination';
|
|
63
67
|
export { PermissionGate, type PermissionGateProps } from './permission-gate';
|
|
64
68
|
export { Popconfirm, type PopconfirmProps } from './popconfirm';
|
|
@@ -71,7 +75,7 @@ export { Radio, type RadioGroupProps, type RadioOption, type RadioProps } from '
|
|
|
71
75
|
export { Rate, type RateProps } from './rate';
|
|
72
76
|
export { Result, type ResultProps } from './result';
|
|
73
77
|
export { Row, type RowProps } from './row';
|
|
74
|
-
export { ScrollArea, type ScrollAreaProps } from './scroll-area';
|
|
78
|
+
export { ScrollArea, type ScrollAreaProps, type ScrollAreaScrollbars } from './scroll-area';
|
|
75
79
|
export { Segmented, type SegmentedOption, type SegmentedProps } from './segmented';
|
|
76
80
|
export { Select, useDataOptionsSelect, useDictionaryOptionsSelect, type SelectOption, type SelectProps, type UseDataOptionsSelectOptions, type UseDictionaryOptionsSelectOptions, type UseDictionaryOptionsSelectResult } from './select';
|
|
77
81
|
export { Skeleton, type SkeletonButtonProps, type SkeletonImageProps, type SkeletonInputProps, type SkeletonNodeProps, type SkeletonParagraphProps, type SkeletonProps, type SkeletonTitleProps } from './skeleton';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Context } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Orchestration signal for the Page entrance animation: "the page has
|
|
4
|
+
* finished arriving". Secondary motion, auto-focus, guided hints, or
|
|
5
|
+
* deferred heavy initialization key off it so they start after the entrance
|
|
6
|
+
* instead of competing with it.
|
|
7
|
+
*
|
|
8
|
+
* The context carries a STABLE store reference — never a changing value — so
|
|
9
|
+
* the entrance settling re-renders nothing by itself. Each consumer chooses
|
|
10
|
+
* its own cost:
|
|
11
|
+
* - {@link usePageEntranceEffect} runs a callback on settle (zero re-renders),
|
|
12
|
+
* - {@link usePageEntranceSettled} subscribes a component to the boolean
|
|
13
|
+
* (that component alone re-renders on the flip),
|
|
14
|
+
* - CSS can target the Page root's `data-entrance` attribute directly.
|
|
15
|
+
*/
|
|
16
|
+
export interface PageEntranceStore {
|
|
17
|
+
isSettled: () => boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Notifies on every transition of the settled state (entering → settled
|
|
20
|
+
* and, on a page reload replaying the entrance, settled → entering).
|
|
21
|
+
*/
|
|
22
|
+
subscribe: (listener: () => void) => () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Mutable handle the Page component drives from its animation callbacks.
|
|
26
|
+
* Internal — only the read surface ({@link PageEntranceStore}) leaves the
|
|
27
|
+
* package.
|
|
28
|
+
*/
|
|
29
|
+
export interface PageEntranceController {
|
|
30
|
+
store: PageEntranceStore;
|
|
31
|
+
setSettled: (settled: boolean) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare function createPageEntranceController(): PageEntranceController;
|
|
34
|
+
export declare const PageEntranceContext: Context<PageEntranceStore>;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the hosting Page's entrance animation has finished (immediately
|
|
37
|
+
* `true` outside a Page). Subscribes the calling component: it re-renders
|
|
38
|
+
* once when the entrance settles — use this form when the settled state
|
|
39
|
+
* drives rendering. For "do something once the page has arrived", prefer
|
|
40
|
+
* {@link usePageEntranceEffect}, which re-renders nothing.
|
|
41
|
+
*/
|
|
42
|
+
export declare function usePageEntranceSettled(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Runs `effect` once the hosting Page's entrance animation has settled —
|
|
45
|
+
* immediately when already settled (including outside a Page). The returned
|
|
46
|
+
* cleanup runs on unmount, and the effect re-arms if a page reload replays
|
|
47
|
+
* the entrance. Reads the latest `effect` at fire time, so an inline closure
|
|
48
|
+
* is fine.
|
|
49
|
+
*
|
|
50
|
+
* ```tsx
|
|
51
|
+
* usePageEntranceEffect(() => {
|
|
52
|
+
* chart.startEntranceSequence();
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare function usePageEntranceEffect(effect: () => void | (() => void)): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PageProps } from './props';
|
|
2
2
|
export declare function Page({ className, mainClassName, leftAside, leftAsideClassName, leftAsideWidth, rightAside, rightAsideClassName, rightAsideWidth, header, headerClassName, headerPosition, footer, footerClassName, footerPosition, actionBar, actionBarClassName, scrollable, scrollMargin, margin, gap, children }: PageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { usePageEntranceEffect, usePageEntranceSettled, type PageEntranceStore } from './entrance';
|
|
3
4
|
export { type AsideWidth, type PageProps, type Position, type ResizableWidth } from './props';
|
|
4
5
|
export { useViewportHeight } from './viewport-context';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AnyObject, Key } from '@vef-framework-react/shared';
|
|
2
2
|
import { NonPaginatedProTableProps, PaginatedProTableProps } from '../props';
|
|
3
3
|
import { ColumnSettingsProp } from '../types';
|
|
4
|
-
type PaginatedTableProps<TRow extends AnyObject, TParams extends AnyObject> = Pick<PaginatedProTableProps<TRow, TParams>, "className" | "style" | "size" | "queryFn" | "queryEnabled" | "queryParams" | "columns" | "rowKey" | "rowSelection" | "showSequenceColumn" | "operationColumn" | "selectedRowKeys" | "virtual" | "title" | "summary" | "onSelectedRowKeysChange"> & {
|
|
4
|
+
type PaginatedTableProps<TRow extends AnyObject, TParams extends AnyObject> = Pick<PaginatedProTableProps<TRow, TParams>, "className" | "style" | "size" | "queryFn" | "queryEnabled" | "queryParams" | "columns" | "rowKey" | "rowSelection" | "showSequenceColumn" | "operationColumn" | "selectedRowKeys" | "striped" | "virtual" | "title" | "summary" | "onRowClick" | "onSelectedRowKeysChange"> & {
|
|
5
5
|
columnSettings: ColumnSettingsProp;
|
|
6
6
|
};
|
|
7
|
-
type NonPaginatedTableProps<TRow extends AnyObject, TParams extends AnyObject> = Pick<NonPaginatedProTableProps<TRow, TParams>, "className" | "style" | "size" | "queryFn" | "queryEnabled" | "queryParams" | "columns" | "rowKey" | "rowSelection" | "showSequenceColumn" | "operationColumn" | "selectedRowKeys" | "virtual" | "title" | "summary" | "onSelectedRowKeysChange"> & {
|
|
7
|
+
type NonPaginatedTableProps<TRow extends AnyObject, TParams extends AnyObject> = Pick<NonPaginatedProTableProps<TRow, TParams>, "className" | "style" | "size" | "queryFn" | "queryEnabled" | "queryParams" | "columns" | "rowKey" | "rowSelection" | "showSequenceColumn" | "operationColumn" | "selectedRowKeys" | "striped" | "virtual" | "title" | "summary" | "onRowClick" | "onSelectedRowKeysChange"> & {
|
|
8
8
|
columnSettings: ColumnSettingsProp;
|
|
9
9
|
};
|
|
10
10
|
export declare function getRowKeyFn(rowKey?: string | ((row: AnyObject) => Key)): ((row: AnyObject) => string) | undefined;
|
|
11
|
-
export declare function PaginatedTable<TRow extends AnyObject, TParams extends AnyObject>({ className, style, size, queryFn, columns, columnSettings, rowKey, rowSelection, queryEnabled, queryParams, showSequenceColumn, operationColumn, selectedRowKeys, virtual, title, summary, onSelectedRowKeysChange }: PaginatedTableProps<TRow, TParams>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function NonPaginatedTable<TRow extends AnyObject, TParams extends AnyObject>({ className, style, size, queryFn, columns, columnSettings, rowKey, rowSelection, queryEnabled, queryParams, showSequenceColumn, operationColumn, selectedRowKeys, virtual, title, summary, onSelectedRowKeysChange }: NonPaginatedTableProps<TRow, TParams>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function PaginatedTable<TRow extends AnyObject, TParams extends AnyObject>({ className, style, size, queryFn, columns, columnSettings, rowKey, rowSelection, queryEnabled, queryParams, showSequenceColumn, operationColumn, selectedRowKeys, striped, virtual, title, summary, onRowClick, onSelectedRowKeysChange }: PaginatedTableProps<TRow, TParams>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function NonPaginatedTable<TRow extends AnyObject, TParams extends AnyObject>({ className, style, size, queryFn, columns, columnSettings, rowKey, rowSelection, queryEnabled, queryParams, showSequenceColumn, operationColumn, selectedRowKeys, striped, virtual, title, summary, onRowClick, onSelectedRowKeysChange }: NonPaginatedTableProps<TRow, TParams>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { clearColumnSettingsStorage, useColumnSettingsPersistence } from './use-column-settings-persistence';
|
|
2
2
|
export { useRowSelection } from './use-row-selection';
|
|
3
|
-
export { useTableColumns } from './use-table-columns';
|
|
3
|
+
export { OPERATION_CELL_CLASS, useTableColumns } from './use-table-columns';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { AnyObject } from '@vef-framework-react/shared';
|
|
2
2
|
import { TableColumn } from '../../table';
|
|
3
3
|
import { ColumnSettingsProp, OperationColumnConfig } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Class applied to every cell of the built-in operation column so the
|
|
6
|
+
* `onRowClick` handler can tell row-surface clicks apart from clicks on
|
|
7
|
+
* per-row actions.
|
|
8
|
+
*/
|
|
9
|
+
export declare const OPERATION_CELL_CLASS = "vef-table-operation-cell";
|
|
4
10
|
/**
|
|
5
11
|
* The hook to use the table columns.
|
|
6
12
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaginationResult, QueryFunction } from '@vef-framework-react/core';
|
|
2
2
|
import { AnyObject, DeepKeys, Key } from '@vef-framework-react/shared';
|
|
3
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
import { CSSProperties, MouseEvent, ReactNode } from 'react';
|
|
4
4
|
import { TableColumn, TableProps } from '../table';
|
|
5
5
|
import { ColumnSettingsProp, OperationColumnConfig, ParamsWithPagination, ParamsWithSort, RowSelectionConfig } from './types';
|
|
6
6
|
/**
|
|
@@ -44,6 +44,12 @@ interface BaseProTableProps<TRow extends AnyObject, TParams extends AnyObject> e
|
|
|
44
44
|
* @default false
|
|
45
45
|
*/
|
|
46
46
|
virtual?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Render zebra-striped table rows
|
|
49
|
+
*
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
striped?: boolean;
|
|
47
53
|
/**
|
|
48
54
|
* Currently selected row keys
|
|
49
55
|
*/
|
|
@@ -83,6 +89,14 @@ interface BaseProTableProps<TRow extends AnyObject, TParams extends AnyObject> e
|
|
|
83
89
|
* Custom footer content to be rendered below the summary
|
|
84
90
|
*/
|
|
85
91
|
footer?: ReactNode;
|
|
92
|
+
/**
|
|
93
|
+
* Callback fired when a table body row is clicked.
|
|
94
|
+
*
|
|
95
|
+
* Clicks inside the built-in operation column are ignored so per-row action
|
|
96
|
+
* buttons do not also trigger the row-level action. Interactive elements
|
|
97
|
+
* rendered in custom cells should call `event.stopPropagation()` to opt out.
|
|
98
|
+
*/
|
|
99
|
+
onRowClick?: (row: TRow, index: number | undefined, event: MouseEvent<HTMLElement>) => void;
|
|
86
100
|
/**
|
|
87
101
|
* Callback when selected row keys change
|
|
88
102
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ScrollAreaProps } from './props';
|
|
2
|
-
export declare function ScrollArea({ ref, scrollbarSize, scrollbarPadding, viewportRef, viewportClassName, viewportStyle, overscrollBehavior, onScrollPositionChange, onTopReached, onBottomReached, children, ...rootProps }: ScrollAreaProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { type ScrollAreaProps } from './props';
|
|
2
|
+
export declare function ScrollArea({ ref, scrollbarSize, scrollbarPadding, scrollbars, viewportRef, viewportClassName, viewportStyle, overscrollBehavior, onScrollPositionChange, onTopReached, onBottomReached, children, ...rootProps }: ScrollAreaProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { type ScrollAreaProps, type ScrollAreaScrollbars } from './props';
|
|
@@ -2,10 +2,17 @@ import { ScrollAreaProps as ScrollAreaPropsInternal } from '@radix-ui/react-scro
|
|
|
2
2
|
import { Except } from '@vef-framework-react/shared';
|
|
3
3
|
import { ComponentPropsWithRef, CSSProperties, Ref } from 'react';
|
|
4
4
|
import { Length, Position } from '../_base';
|
|
5
|
+
export type ScrollAreaScrollbars = "both" | "vertical" | "horizontal";
|
|
5
6
|
/**
|
|
6
7
|
* The props for the ScrollArea component.
|
|
7
8
|
*/
|
|
8
9
|
export interface ScrollAreaProps extends Except<ComponentPropsWithRef<"div">, "dir">, Pick<ScrollAreaPropsInternal, "type" | "scrollHideDelay"> {
|
|
10
|
+
/**
|
|
11
|
+
* Which scrollbar axes to render.
|
|
12
|
+
*
|
|
13
|
+
* @default "both"
|
|
14
|
+
*/
|
|
15
|
+
scrollbars?: ScrollAreaScrollbars;
|
|
9
16
|
/**
|
|
10
17
|
* The size of the scrollbar
|
|
11
18
|
*
|
|
@@ -3,5 +3,5 @@ import { TableProps } from './props';
|
|
|
3
3
|
export { type TableProps } from './props';
|
|
4
4
|
export { pageSizeOptions, usePaginationProps } from './use-pagination-props';
|
|
5
5
|
export type { TableColumnType as TableColumn, TablePaginationConfig } from 'antd';
|
|
6
|
-
export declare function Table<TRow = AnyObject>({ className, style, flexHeight, virtual, columns, ...restProps }: TableProps<TRow>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function Table<TRow = AnyObject>({ className, style, flexHeight, striped, virtual, columns, rowClassName, ...restProps }: TableProps<TRow>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
7
|
export type { TableRowSelection } from 'antd/es/table/interface';
|
|
@@ -10,4 +10,12 @@ export interface TableProps<TRow = AnyObject> extends Except<TablePropsInternal<
|
|
|
10
10
|
* @default true
|
|
11
11
|
*/
|
|
12
12
|
flexHeight?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Render zebra-striped rows: every second body row gets a subtle fill so wide
|
|
15
|
+
* tables stay scannable. Composes with `rowClassName`, and hover / selection
|
|
16
|
+
* feedback still applies.
|
|
17
|
+
*
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
striped?: boolean;
|
|
13
21
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vef-framework-react/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.4.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Components for VEF Framework",
|
|
7
7
|
"author": {
|
|
@@ -50,31 +50,45 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@ant-design/cssinjs": "^2.1.2",
|
|
53
|
-
"@ant-design/icons": "^6.2.
|
|
53
|
+
"@ant-design/icons": "^6.2.5",
|
|
54
|
+
"@codemirror/autocomplete": "^6.20.3",
|
|
55
|
+
"@codemirror/commands": "^6.10.3",
|
|
56
|
+
"@codemirror/lang-javascript": "^6.2.5",
|
|
57
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
58
|
+
"@codemirror/lang-markdown": "^6.5.0",
|
|
59
|
+
"@codemirror/lang-python": "^6.2.1",
|
|
60
|
+
"@codemirror/lang-sql": "^6.10.0",
|
|
61
|
+
"@codemirror/language": "^6.12.3",
|
|
62
|
+
"@codemirror/lint": "^6.8.5",
|
|
63
|
+
"@codemirror/state": "^6.6.0",
|
|
64
|
+
"@codemirror/theme-one-dark": "^6.1.3",
|
|
65
|
+
"@codemirror/view": "^6.43.0",
|
|
54
66
|
"@emotion/cache": "^11.14.0",
|
|
55
67
|
"@emotion/react": "^11.14.0",
|
|
56
68
|
"@emotion/serialize": "^1.3.3",
|
|
57
69
|
"@gsap/react": "^2.1.2",
|
|
58
|
-
"@lucide/icons": "^1.
|
|
59
|
-
"@radix-ui/react-scroll-area": "^1.2.
|
|
60
|
-
"@tanstack/react-form": "^1.
|
|
61
|
-
"
|
|
70
|
+
"@lucide/icons": "^1.17.0",
|
|
71
|
+
"@radix-ui/react-scroll-area": "^1.2.11",
|
|
72
|
+
"@tanstack/react-form": "^1.33.0",
|
|
73
|
+
"@tanstack/react-virtual": "^3.13.6",
|
|
74
|
+
"@uiw/react-codemirror": "^4.25.10",
|
|
75
|
+
"antd": "^6.4.3",
|
|
62
76
|
"antd-img-crop": "^4.30.0",
|
|
63
|
-
"echarts": "^6.
|
|
77
|
+
"echarts": "^6.1.0",
|
|
64
78
|
"echarts-for-react": "^3.0.6",
|
|
65
79
|
"gsap": "^3.15.0",
|
|
66
|
-
"lucide-react": "^1.
|
|
80
|
+
"lucide-react": "^1.17.0",
|
|
67
81
|
"modern-normalize": "^3.0.1",
|
|
68
|
-
"react-error-boundary": "^6.1.
|
|
82
|
+
"react-error-boundary": "^6.1.2",
|
|
69
83
|
"react-syntax-highlighter": "^16.1.1",
|
|
70
84
|
"tslib": "^2.8.1",
|
|
71
|
-
"@vef-framework-react/
|
|
72
|
-
"@vef-framework-react/
|
|
73
|
-
"@vef-framework-react/
|
|
85
|
+
"@vef-framework-react/shared": "2.4.1",
|
|
86
|
+
"@vef-framework-react/core": "2.4.1",
|
|
87
|
+
"@vef-framework-react/hooks": "2.4.1"
|
|
74
88
|
},
|
|
75
89
|
"devDependencies": {
|
|
76
90
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
77
|
-
"react": "^19.2.
|
|
91
|
+
"react": "^19.2.7"
|
|
78
92
|
},
|
|
79
93
|
"scripts": {
|
|
80
94
|
"clean": "rimraf dist",
|