@nxgt/material 3.56.0 → 3.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +2 -1
- package/dist/{async-slice-CORlM_wu.js → async-slice-C_Juki7i.js} +2 -2
- package/dist/{background-BtSZsTvY.js → background-qdnet2A5.js} +124 -83
- package/dist/backgrounds.js +1 -1
- package/dist/{button-CdpVEza0.js → button-CCHGtPIN.js} +97 -74
- package/dist/{callout-view-C6voDS00.js → callout-view-C7UznnDW.js} +1 -1
- package/dist/charts.js +1531 -1489
- package/dist/{chip-C0yNYz9m.js → chip-1XnyX4bd.js} +2 -2
- package/dist/{code-editor-Bwzp2038.js → code-editor-1Y7ykpam.js} +307 -277
- package/dist/code-editor.js +14 -14
- package/dist/{code-language-items-nP-pF7yH.js → code-language-items-Clbln9C6.js} +2 -2
- package/dist/{components-Dl2hVfzt.js → components-Cj3lJ_uK.js} +28593 -25906
- package/dist/components.js +26 -26
- package/dist/{convert-XAkWyO8-.js → convert-7g-F5cNf.js} +1 -1
- package/dist/{dialog-BVgsN9Ch.js → dialog-Cx_xWUVR.js} +4 -4
- package/dist/dnd.js +1 -1
- package/dist/draw-animate.js +1 -1
- package/dist/{dropdown-menu-C8PBmMIa.js → dropdown-menu-Jp6pHNgP.js} +1 -1
- package/dist/editor-viewer.js +1 -1
- package/dist/editor.js +715 -607
- package/dist/empty-state-D61RimJr.js +139 -0
- package/dist/{escape-owner-CYnfySUl.js → escape-owner-Ch_-kDLw.js} +1 -1
- package/dist/{field-blur-Nid7-bt_.js → field-blur-BJjUHsgJ.js} +1 -1
- package/dist/{field-blur-context-DxdIuHAY.js → field-blur-context-CmOF0FIN.js} +1 -1
- package/dist/{headless-extensions-CvmdhANJ.js → headless-extensions-B1NAgmkE.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-C_9jiwp1.js → hover-card-CVmY0Z44.js} +2 -2
- package/dist/{i18n-provider-CLVZK6tQ.js → i18n-provider-C0uLEv0G.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-Dcjg_SKJ.js → icon-badge-bAQQK3ls.js} +3 -3
- package/dist/{icon-button-Bo-VuZ2n.js → icon-button-Csvj2R8S.js} +59 -59
- package/dist/{illustration-B4_W-OUS.js → illustration-DjZXUFbz.js} +11 -11
- package/dist/illustrations.js +1 -1
- package/dist/lib/backgrounds/background/background.d.ts +1 -1
- package/dist/lib/backgrounds/background/partials/use-background-scenes.d.ts +22 -0
- package/dist/lib/backgrounds/background/partials/use-themed-background.d.ts +304 -0
- package/dist/lib/components/ui/actions/action-card/action-card-semantics-branches.d.ts +63 -0
- package/dist/lib/components/ui/actions/action-card/action-card-semantics.d.ts +0 -4
- package/dist/lib/components/ui/actions/action-card/partials/action-card-text.d.ts +3 -1
- package/dist/lib/components/ui/actions/action-card/use-action-card.d.ts +80 -0
- package/dist/lib/components/ui/actions/button/button-busy.d.ts +8 -0
- package/dist/lib/components/ui/actions/button/button.classes.d.ts +7 -0
- package/dist/lib/components/ui/actions/toolbar/use-toolbar-state.d.ts +22 -0
- package/dist/lib/components/ui/collections/data-grid/columns/column-check.d.ts +15 -0
- package/dist/lib/components/ui/collections/data-grid/columns/column-edit.d.ts +1 -12
- package/dist/lib/components/ui/collections/data-grid/editors/editor-props.d.ts +20 -0
- package/dist/lib/components/ui/collections/data-grid/editors/editor-route-key.d.ts +11 -0
- package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-access.d.ts +26 -0
- package/dist/lib/components/ui/collections/data-grid/partials/grid-header-name.d.ts +15 -0
- package/dist/lib/components/ui/collections/data-grid/partials/header-menu-button.d.ts +17 -0
- package/dist/lib/components/ui/collections/data-grid/partials/open-header-menu.d.ts +14 -0
- package/dist/lib/components/ui/collections/data-grid/partials/width-field.d.ts +18 -0
- package/dist/lib/components/ui/collections/data-grid/phone/phone-item.d.ts +2 -2
- package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-card-list.d.ts +17 -0
- package/dist/lib/components/ui/collections/data-table/partials/layouts/list-bar-clear.d.ts +10 -0
- package/dist/lib/components/ui/collections/data-table/partials/layouts/list-bar-in-row.d.ts +18 -0
- package/dist/lib/components/ui/collections/data-table/partials/page-button.d.ts +12 -0
- package/dist/lib/components/ui/collections/data-table/partials/page-icon-control.d.ts +21 -0
- package/dist/lib/components/ui/collections/data-table/partials/pager-buttons.d.ts +7 -0
- package/dist/lib/components/ui/collections/data-table/use-data-table-setup.d.ts +36 -0
- package/dist/lib/components/ui/collections/facet-group/partials/facet-group-header.d.ts +11 -0
- package/dist/lib/components/ui/collections/filter/filter-field-config-base.utils.d.ts +13 -0
- package/dist/lib/components/ui/collections/filter/filter-field-config-choice.utils.d.ts +5 -0
- package/dist/lib/components/ui/collections/filter/filter-field-config-value.utils.d.ts +5 -0
- package/dist/lib/components/ui/collections/filter/filter-field-config.utils.d.ts +6 -0
- package/dist/lib/components/ui/collections/filter/filter-legacy.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/filter-persistence-url-value.utils.d.ts +9 -0
- package/dist/lib/components/ui/collections/filter/filter-schema.utils.d.ts +1 -5
- package/dist/lib/components/ui/collections/filter/filter-validation-presets.utils.d.ts +24 -0
- package/dist/lib/components/ui/collections/filter/filter-validation-rules.utils.d.ts +11 -0
- package/dist/lib/components/ui/collections/filter/filter-validation.utils.d.ts +1 -23
- package/dist/lib/components/ui/collections/filter/partials/filter-field-special.d.ts +8 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-form-field-variant.d.ts +10 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-group-fields.d.ts +5 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-legacy-variant.d.ts +3 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-preset-fields.d.ts +9 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-presets-menu-items.d.ts +13 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-presets-menu.d.ts +5 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-presets-save-dialog.d.ts +7 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-presets-save-trigger.d.ts +7 -0
- package/dist/lib/components/ui/collections/filter/query/types.d.ts +3 -39
- package/dist/lib/components/ui/collections/filter/query/use-filter-query-options.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/query/use-filter-query-value.d.ts +2 -2
- package/dist/lib/components/ui/collections/filter/query/view-types.d.ts +40 -0
- package/dist/lib/components/ui/collections/filter/sections/use-filter-search.d.ts +14 -0
- package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +7483 -0
- package/dist/lib/components/ui/collections/list-pane/partials/list-pane-body.d.ts +12 -0
- package/dist/lib/components/ui/collections/list-pane/partials/list-pane-item-content.d.ts +15 -0
- package/dist/lib/components/ui/collections/list-pane/partials/list-pane-search.d.ts +8 -0
- package/dist/lib/components/ui/collections/pagination/pagination-bar-pages.d.ts +8 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-action-button.d.ts +26 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-buttons.d.ts +13 -11
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-entries.d.ts +11 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-focus.d.ts +1 -28
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-keys.d.ts +37 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-grid-paging.d.ts +8 -0
- package/dist/lib/components/ui/collections/server-table/types-filter.d.ts +70 -0
- package/dist/lib/components/ui/collections/server-table/types-states.d.ts +42 -0
- package/dist/lib/components/ui/collections/server-table/types.d.ts +4 -110
- package/dist/lib/components/ui/collections/tree/tree-expand-button.d.ts +6 -0
- package/dist/lib/components/ui/collections/tree/use-tree-keys.d.ts +14 -0
- package/dist/lib/components/ui/collections/tree/use-tree-select.d.ts +14 -0
- package/dist/lib/components/ui/collections/tree/use-tree.d.ts +5 -4
- package/dist/lib/components/ui/dates/calendar/calendar-year-button.d.ts +10 -0
- package/dist/lib/components/ui/dates/calendar/calendar-year-nav.d.ts +9 -0
- package/dist/lib/components/ui/dates/date-field/date-field-parts.d.ts +78 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/date-range-body-scroll.d.ts +15 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/preview-calendar-props.d.ts +11 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/use-cancel-range.d.ts +6 -0
- package/dist/lib/components/ui/dates/date-range-field/use-end-on.d.ts +12 -0
- package/dist/lib/components/ui/dates/date-range-field/use-typed-range.d.ts +2 -3
- package/dist/lib/components/ui/dates/mini-month/partials/mini-month-day.d.ts +8 -0
- package/dist/lib/components/ui/dates/mini-month/partials/mini-month-head.d.ts +18 -0
- package/dist/lib/components/ui/dates/mini-month/partials/mini-month-markers.d.ts +5 -0
- package/dist/lib/components/ui/dates/mini-month/partials/use-grid-focus.d.ts +11 -0
- package/dist/lib/components/ui/dates/picker-trigger/typed-box-parts.d.ts +12 -0
- package/dist/lib/components/ui/dates/time-field/partials/use-time-field-model.d.ts +14 -5
- package/dist/lib/components/ui/dates/time-picker/partials/time-column.d.ts +13 -0
- package/dist/lib/components/ui/display/cards/cards.stories.data.detail.d.ts +9 -0
- package/dist/lib/components/ui/display/cards/cards.stories.data.feed.d.ts +7 -0
- package/dist/lib/components/ui/display/cards/cards.stories.data.intro.d.ts +11 -0
- package/dist/lib/components/ui/display/cards/types-detail.d.ts +74 -0
- package/dist/lib/components/ui/display/cards/types-feed.d.ts +41 -0
- package/dist/lib/components/ui/display/cards/types-intro.d.ts +76 -0
- package/dist/lib/components/ui/display/cards/types.d.ts +3 -187
- package/dist/lib/components/ui/display/code/code-block-parts.d.ts +16 -0
- package/dist/lib/components/ui/display/enrolment-secret/enrolment-secret-manual.d.ts +9 -0
- package/dist/lib/components/ui/display/entity-header/partials/entity-header-start.d.ts +11 -0
- package/dist/lib/components/ui/display/event-chip/event-chip-content.d.ts +12 -0
- package/dist/lib/components/ui/display/param-table/param-table-views.d.ts +19 -0
- package/dist/lib/components/ui/display/recovery-codes/partials/use-recovery-codes-actions.d.ts +22 -0
- package/dist/lib/components/ui/display/recovery-codes-status/partials/recovery-codes-status-plain.d.ts +13 -0
- package/dist/lib/components/ui/feedback/alert-dialog/alert-dialog-actions.d.ts +6 -0
- package/dist/lib/components/ui/feedback/alert-dialog/alert-dialog.d.ts +1 -3
- package/dist/lib/components/ui/feedback/confirm-dialog/use-confirm-action.d.ts +16 -0
- package/dist/lib/components/ui/feedback/confirmation-dialog/use-confirmation-form.d.ts +18 -0
- package/dist/lib/components/ui/feedback/countdown-timer/countdown-ring.d.ts +7 -0
- package/dist/lib/components/ui/feedback/countdown-timer/countdown-timer.d.ts +9 -1
- package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-body.d.ts +10 -0
- package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-dot.d.ts +2 -0
- package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-open.d.ts +5 -0
- package/dist/lib/components/ui/feedback/notifications/notifications-model.d.ts +59 -0
- package/dist/lib/components/ui/feedback/notifications/use-notifications-chrome.d.ts +17 -0
- package/dist/lib/components/ui/feedback/notifications/use-notifications.d.ts +4 -38
- package/dist/lib/components/ui/feedback/spinner/spinner-variants.d.ts +5 -0
- package/dist/lib/components/ui/feedback/spinner/spinner.d.ts +1 -5
- package/dist/lib/components/ui/feedback/state-frame/state-frame-text.d.ts +10 -0
- package/dist/lib/components/ui/feedback/state-frame/use-state-media.d.ts +14 -0
- package/dist/lib/components/ui/feedback/step-dots/step-dot.d.ts +13 -0
- package/dist/lib/components/ui/feedback/step-dots/step-dots.d.ts +2 -1
- package/dist/lib/components/ui/feedback/step-up-dialog/describe-by.d.ts +4 -0
- package/dist/lib/components/ui/feedback/step-up-dialog/use-step-up-view.d.ts +34 -0
- package/dist/lib/components/ui/fields/attributes/attribute-form/attribute-options-form-fields.d.ts +7 -0
- package/dist/lib/components/ui/fields/attributes/attributes-list/attribute-tile.d.ts +11 -0
- package/dist/lib/components/ui/fields/attributes/partials/editor-rows.d.ts +15 -0
- package/dist/lib/components/ui/fields/contacts/partials/contact-groups.d.ts +20 -0
- package/dist/lib/components/ui/fields/contacts/partials/contact-tile.d.ts +13 -0
- package/dist/lib/components/ui/fields/contacts/partials/dialog-actions.d.ts +14 -0
- package/dist/lib/components/ui/fields/contacts/partials/dialog-fields.d.ts +14 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/country-field/iso-codes-1.d.ts +2 -0
- package/dist/lib/components/ui/fields/country-field/iso-codes-2.d.ts +2 -0
- package/dist/lib/components/ui/fields/country-field/iso-codes-3.d.ts +2 -0
- package/dist/lib/components/ui/fields/currency-field/use-currency-amount.d.ts +17 -0
- package/dist/lib/components/ui/fields/field/render-choice-field.d.ts +3 -0
- package/dist/lib/components/ui/fields/inline-edit/inline-edit-display.d.ts +12 -0
- package/dist/lib/components/ui/fields/inline-edit/inline-edit-editor.d.ts +14 -0
- package/dist/lib/components/ui/fields/inline-edit/use-inline-edit.d.ts +19 -0
- package/dist/lib/components/ui/fields/opening-hours/logic/missing-days.d.ts +3 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/day-switch.d.ts +14 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/dialog-actions.d.ts +13 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/dialog-fields.d.ts +14 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/hours-actions.d.ts +9 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/hours-tile.d.ts +11 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/week-rows.d.ts +14 -0
- package/dist/lib/components/ui/fields/opening-hours/use-hours-editor.d.ts +1 -0
- package/dist/lib/components/ui/fields/phone-field/phone-country-list.d.ts +10 -0
- package/dist/lib/components/ui/fields/phone-field/phone-dial-button.d.ts +10 -0
- package/dist/lib/components/ui/fields/phone-field/phone-number-input.d.ts +19 -0
- package/dist/lib/components/ui/fields/phone-field/use-phone-value.d.ts +17 -0
- package/dist/lib/components/ui/fields/postal-address/postal-address-dialog-actions.d.ts +14 -0
- package/dist/lib/components/ui/fields/postal-address/postal-address-dialog-fields.d.ts +10 -0
- package/dist/lib/components/ui/fields/rating-field/rating-color.d.ts +4 -0
- package/dist/lib/components/ui/fields/rating-field/rating-field.d.ts +1 -4
- package/dist/lib/components/ui/fields/rating-field/rating-star.d.ts +22 -0
- package/dist/lib/components/ui/fields/rating-field/use-rating.d.ts +16 -0
- package/dist/lib/components/ui/fields/search-field/search-box.d.ts +11 -0
- package/dist/lib/components/ui/fields/search-field/use-search-value.d.ts +21 -0
- package/dist/lib/components/ui/fields/slider/slider-control-row.d.ts +10 -0
- package/dist/lib/components/ui/fields/slider/slider-group-props.d.ts +16 -0
- package/dist/lib/components/ui/fields/slider/slider-group.d.ts +14 -0
- package/dist/lib/components/ui/fields/slider/slider-horizontal.d.ts +3 -0
- package/dist/lib/components/ui/fields/slider/slider-vertical.d.ts +3 -0
- package/dist/lib/components/ui/fields/slider/slider.d.ts +1 -1
- package/dist/lib/components/ui/fields/slider/use-slider-value.d.ts +10 -0
- package/dist/lib/components/ui/fields/textarea-field/textarea-footer.d.ts +14 -0
- package/dist/lib/components/ui/layout/app-shell/activity-chrome.d.ts +17 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content-header.d.ts +15 -0
- package/dist/lib/components/ui/layout/app-shell/app-header-menu.d.ts +5 -0
- package/dist/lib/components/ui/layout/app-shell/band-boxes.d.ts +3 -0
- package/dist/lib/components/ui/layout/app-shell/collect-content.d.ts +24 -0
- package/dist/lib/components/ui/layout/app-shell/keep-inside-checker.d.ts +10 -0
- package/dist/lib/components/ui/layout/app-shell/page-title-focus.d.ts +32 -0
- package/dist/lib/components/ui/layout/app-shell/page-title-scope.d.ts +53 -0
- package/dist/lib/components/ui/layout/app-shell/page-title.d.ts +2 -82
- package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +3 -13
- package/dist/lib/components/ui/layout/app-shell/watch-content.d.ts +2 -18
- package/dist/lib/components/ui/layout/auth-card/auth-card-parts.d.ts +25 -0
- package/dist/lib/components/ui/layout/doc/partials/doc-header-parts.d.ts +18 -0
- package/dist/lib/components/ui/layout/doc/partials/doc-header.d.ts +2 -4
- package/dist/lib/components/ui/layout/doc/partials/doc-nav-parts.d.ts +11 -0
- package/dist/lib/components/ui/layout/doc/use-doc-effects.d.ts +23 -0
- package/dist/lib/components/ui/layout/index.d.ts +1 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item-content.d.ts +7 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.d.ts +2 -47
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.types.d.ts +54 -0
- package/dist/lib/components/ui/layout/sticky-action-bar/index.d.ts +1 -0
- package/dist/lib/components/ui/layout/sticky-action-bar/keyboard-inset.d.ts +17 -0
- package/dist/lib/components/ui/layout/sticky-action-bar/sticky-action-bar.d.ts +17 -0
- package/dist/lib/components/ui/layout/sticky-action-bar/use-keyboard-inset.d.ts +8 -0
- package/dist/lib/components/ui/layout/toc/toc-list.d.ts +16 -0
- package/dist/lib/components/ui/media/compare-slider/partials/compare-slider-handle.d.ts +9 -0
- package/dist/lib/components/ui/media/compare-slider/use-compare-slider.d.ts +22 -0
- package/dist/lib/components/ui/media/file-list/file-list-field.d.ts +1 -1
- package/dist/lib/components/ui/media/file-list/partials/file-list-dropzone.d.ts +13 -0
- package/dist/lib/components/ui/media/file-list/partials/file-list-input.d.ts +11 -0
- package/dist/lib/components/ui/media/file-list/partials/file-list-items.d.ts +14 -0
- package/dist/lib/components/ui/media/file-list/partials/file-list-row-actions.d.ts +12 -0
- package/dist/lib/components/ui/media/file-list/use-file-list-field.d.ts +33 -0
- package/dist/lib/components/ui/media/galleries/partials/gallery-chrome-toolbar.d.ts +2 -6
- package/dist/lib/components/ui/media/galleries/partials/gallery-chrome-zoom.d.ts +2 -0
- package/dist/lib/components/ui/media/galleries/partials/gallery-featured-arrows.d.ts +2 -0
- package/dist/lib/components/ui/media/galleries/partials/gallery-tile-media.d.ts +17 -0
- package/dist/lib/components/ui/media/galleries/partials/gallery-viewer-button.d.ts +6 -0
- package/dist/lib/components/ui/media/galleries/use-gallery-navigation.d.ts +18 -0
- package/dist/lib/components/ui/media/galleries/use-gallery-sync.d.ts +15 -0
- package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-actions.d.ts +12 -0
- package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-controls.d.ts +8 -0
- package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-stage.d.ts +12 -0
- package/dist/lib/components/ui/media/image-cropper/use-image-cropper.d.ts +34 -0
- package/dist/lib/components/ui/media/image-editor/image-editor.slice.d.ts +43 -43
- package/dist/lib/components/ui/media/image-editor/image-editor.stage-gestures.d.ts +29 -0
- package/dist/lib/components/ui/media/image-editor/image-editor.stage-paint.d.ts +17 -0
- package/dist/lib/components/ui/media/image-editor/partials/crop-aspect-picker.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/crop-orientation.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/editor-export-options.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/editor-file-info.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/editor-history-buttons.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/markup-brush-section.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/markup-tool-picker.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/types-edits.d.ts +106 -0
- package/dist/lib/components/ui/media/image-editor/types-session.d.ts +58 -0
- package/dist/lib/components/ui/media/image-editor/types.d.ts +4 -163
- package/dist/lib/components/ui/media/image-editor/use-crop-frame.d.ts +26 -0
- package/dist/lib/components/ui/media/image-editor/use-image-editor-keys.d.ts +4 -0
- package/dist/lib/components/ui/media/image-editor/use-image-editor.d.ts +10 -10
- package/dist/lib/components/ui/media/image-editor/use-markup-text.d.ts +10 -0
- package/dist/lib/components/ui/media/image-editor/use-stage-layer-key.d.ts +6 -0
- package/dist/lib/components/ui/media/image-editor/use-stage-pointer.d.ts +2 -3
- package/dist/lib/components/ui/media/media-player/partials/panels/transcript-follow.d.ts +7 -0
- package/dist/lib/components/ui/media/media-player/partials/panels/transcript-notice.d.ts +7 -0
- package/dist/lib/components/ui/media/media-player/partials/panels/use-search-announcement.d.ts +6 -0
- package/dist/lib/components/ui/media/media-player/partials/playlist-item.d.ts +13 -0
- package/dist/lib/components/ui/media/pdf-reader/partials/search-nav-buttons.d.ts +4 -0
- package/dist/lib/components/ui/media/pdf-reader/use-reader-chrome-state.d.ts +35 -0
- package/dist/lib/components/ui/media/pdf-reader/use-reader-chrome-value.d.ts +14 -0
- package/dist/lib/components/ui/media/upload/network-upload-field/network-upload-dropzone-body.d.ts +8 -0
- package/dist/lib/components/ui/primitives/segmented-input/segmented-input-cells.d.ts +20 -0
- package/dist/lib/components/ui/primitives/segmented-input/use-segment-paste.d.ts +17 -0
- package/dist/lib/components/ui/primitives/segmented-input/use-segmented-keys.d.ts +17 -0
- package/dist/lib/components/ui/selection/autocomplete/autocomplete-equality.d.ts +7 -0
- package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-chips.d.ts +2 -19
- package/dist/lib/components/ui/selection/autocomplete/types.d.ts +19 -1
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-handlers.d.ts +5 -6
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-leave.d.ts +14 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-picks.d.ts +17 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-typing.d.ts +14 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete.d.ts +3 -3
- package/dist/lib/components/ui/selection/checkbox-group/checkbox-group.d.ts +2 -23
- package/dist/lib/components/ui/selection/checkbox-group/partials/checkbox-group-options.d.ts +10 -0
- package/dist/lib/components/ui/selection/checkbox-group/types.d.ts +23 -0
- package/dist/lib/components/ui/selection/color-swatches/color-swatches.d.ts +2 -1
- package/dist/lib/components/ui/selection/color-swatches/color-swatches.utils.d.ts +3 -0
- package/dist/lib/components/ui/selection/color-swatches/partials/color-swatch-button.d.ts +13 -0
- package/dist/lib/components/ui/selection/color-swatches/partials/color-swatch-styles.d.ts +3 -0
- package/dist/lib/components/ui/selection/color-swatches/partials/custom-color-swatch.d.ts +11 -0
- package/dist/lib/components/ui/selection/color-swatches/types.d.ts +1 -0
- package/dist/lib/components/ui/selection/combobox-field/combobox-field.d.ts +3 -48
- package/dist/lib/components/ui/selection/combobox-field/partials/combobox-field-input.d.ts +4 -0
- package/dist/lib/components/ui/selection/combobox-field/types.d.ts +47 -0
- package/dist/lib/components/ui/selection/combobox-field/use-combobox-field-aria.d.ts +15 -0
- package/dist/lib/components/ui/selection/combobox-field/use-combobox-field-items.d.ts +1 -1
- package/dist/lib/components/ui/selection/combobox-field/use-typed-query.d.ts +8 -0
- package/dist/lib/components/ui/selection/option-tile/use-status-text.d.ts +3 -0
- package/dist/lib/components/ui/selection/radio-group/partials/radio-group-options.d.ts +7 -0
- package/dist/lib/components/ui/selection/radio-group/partials/radio-group-parts.d.ts +4 -0
- package/dist/lib/components/ui/selection/radio-group/radio-group.d.ts +3 -24
- package/dist/lib/components/ui/selection/radio-group/types.d.ts +22 -0
- package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-footer.d.ts +4 -0
- package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-frame.d.ts +20 -0
- package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-row-parts.d.ts +20 -0
- package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-row-props.d.ts +298 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-chrome.d.ts +20 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-data.d.ts +20 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-grab.d.ts +15 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-moves.d.ts +18 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list.d.ts +7 -8
- package/dist/lib/components/ui/selection/switcher/partials/switcher-recent.d.ts +11 -0
- package/dist/lib/components/ui/selection/switcher/partials/switcher-row-body.d.ts +8 -0
- package/dist/lib/components/ui/selection/switcher/switcher-list-keys.d.ts +17 -0
- package/dist/lib/components/ui/selection/switcher/switcher.d.ts +1 -1
- package/dist/lib/components/ui/selection/switcher/use-switcher-clip.d.ts +9 -0
- package/dist/lib/components/ui/selection/switcher/use-switcher-list-focus.d.ts +14 -0
- package/dist/lib/components/ui/selection/switcher/use-switcher-open.d.ts +9 -0
- package/dist/lib/components/ui/selection/switcher/use-switcher-panel.d.ts +24 -0
- package/dist/lib/components/ui/selection/switcher/use-switcher.d.ts +326 -0
- package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-frame.d.ts +19 -0
- package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-item-row.d.ts +2 -3
- package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-listbox.d.ts +5 -0
- package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-row-parts.d.ts +16 -0
- package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-row-props.d.ts +283 -0
- package/dist/lib/components/ui/selection/transfer-list/transfer-list.keyboard.d.ts +3 -2
- package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-actions.d.ts +3 -2
- package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-checks.d.ts +18 -0
- package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-derived.d.ts +14 -0
- package/dist/lib/components/ui/selection/transfer-list/use-transfer-list.d.ts +1 -1
- package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-chips.d.ts +9 -0
- package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-trigger-button.d.ts +15 -0
- package/dist/lib/components/ui/widgets/chat/chat-message.d.ts +1 -1
- package/dist/lib/components/ui/widgets/chat/chat-message.view.d.ts +32 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-composer-notices.d.ts +8 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-composer-surface.d.ts +11 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-conversation-item-skeleton.d.ts +4 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-conversation-item-text.d.ts +10 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-inbox-list.d.ts +8 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-inbox-thread.d.ts +11 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-message-action-menus.d.ts +17 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-message-body.d.ts +6 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-scroll-to-latest.d.ts +7 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-typing-row.d.ts +9 -0
- package/dist/lib/components/ui/widgets/chat/use-chat-inbox-pane.d.ts +13 -0
- package/dist/lib/components/ui/widgets/chat/use-chat-widget-open.d.ts +19 -0
- package/dist/lib/components/ui/widgets/code-editor/toolbar/code-view-tools.d.ts +10 -0
- package/dist/lib/components/ui/widgets/code-editor/use-monaco-options.d.ts +9 -0
- package/dist/lib/components/ui/widgets/editor/extensions/custom/accordion/accordion-item-actions.d.ts +7 -0
- package/dist/lib/components/ui/widgets/editor/extensions/custom/action-card/action-card-tile.d.ts +10 -0
- package/dist/lib/components/ui/widgets/editor/extensions/custom/select-card/select-card-tile.d.ts +11 -0
- package/dist/lib/components/ui/widgets/editor/extensions/custom/select-card/toggle-selection.d.ts +3 -0
- package/dist/lib/components/ui/widgets/editor/extensions/custom/shared/use-node-list.d.ts +11 -0
- package/dist/lib/components/ui/widgets/editor/extensions/emoji/use-emoji-groups.d.ts +13 -0
- package/dist/lib/components/ui/widgets/editor/presets/compact-editor-parts.d.ts +10 -0
- package/dist/lib/components/ui/widgets/editor/presets/document-editor-frame-parts.d.ts +19 -0
- package/dist/lib/components/ui/widgets/editor/presets/document-editor-layout.d.ts +5 -0
- package/dist/lib/components/ui/widgets/editor/presets/document-editor-overlays.d.ts +6 -0
- package/dist/lib/components/ui/widgets/editor/presets/document-editor-page-parts.d.ts +25 -0
- package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/composer-class.d.ts +8 -0
- package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/composer-toolbar.d.ts +6 -0
- package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/format-buttons.d.ts +8 -0
- package/dist/lib/components/ui/widgets/editor/presets/use-document-features.d.ts +15 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/question-body.d.ts +5 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +3 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/question-extras.d.ts +10 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/question-outcome.d.ts +7 -0
- package/dist/lib/components/ui/widgets/education/questions/question-options.keyboard.d.ts +17 -0
- package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/types.d.ts +3 -2
- package/dist/lib/components/ui/widgets/education/quizzes/partials/quiz-shortcuts.d.ts +6 -0
- package/dist/lib/components/ui/widgets/education/quizzes/partials/results-actions.d.ts +7 -0
- package/dist/lib/components/ui/widgets/education/quizzes/partials/results-ring.d.ts +5 -0
- package/dist/lib/components/ui/widgets/education/quizzes/quiz.flow.d.ts +29 -0
- package/dist/lib/components/ui/widgets/education/quizzes/quiz.slice.d.ts +3 -0
- package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-actions.d.ts +20 -0
- package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-flow.d.ts +29 -0
- package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-lifecycle.d.ts +12 -0
- package/dist/lib/components/ui/widgets/education/quizzes/use-quiz.d.ts +2 -1
- package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-step-buttons.d.ts +2 -0
- package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-cell-class.d.ts +9 -0
- package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-parts.d.ts +12 -0
- package/dist/lib/components/ui/widgets/event-calendar/use-month-day.d.ts +26 -0
- package/dist/lib/components/ui/widgets/kanban/kanban.drag.d.ts +15 -0
- package/dist/lib/components/ui/widgets/kanban/partials/kanban-card-tile.d.ts +7 -0
- package/dist/lib/components/ui/widgets/kanban/partials/kanban-column-cards.d.ts +8 -0
- package/dist/lib/components/ui/widgets/kanban/partials/kanban-drag-preview.d.ts +8 -0
- package/dist/lib/components/ui/widgets/kanban/partials/kanban-group-header.d.ts +8 -0
- package/dist/lib/components/ui/widgets/kanban/use-kanban-item-actions.d.ts +20 -0
- package/dist/lib/components/ui/widgets/native-charts/core/base-props-types.d.ts +64 -0
- package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +62 -0
- package/dist/lib/components/ui/widgets/native-charts/core/reference-types.d.ts +35 -0
- package/dist/lib/components/ui/widgets/native-charts/core/reference.d.ts +1 -56
- package/dist/lib/components/ui/widgets/native-charts/core/types.d.ts +2 -96
- package/dist/lib/components/ui/widgets/native-charts/hooks/use-model-parts.d.ts +20 -0
- package/dist/lib/components/ui/widgets/native-charts/hooks/use-model-shown.d.ts +23 -0
- package/dist/lib/components/ui/widgets/native-charts/line-chart/partials/line-strokes.d.ts +10 -0
- package/dist/lib/components/ui/widgets/native-charts/line-chart/partials/use-line-reveal.d.ts +9 -0
- package/dist/lib/i18n/resources/en/en.d.ts +5 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +6 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +5 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +6 -1
- package/dist/lib/i18n/resources/resources.d.ts +10 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/map/components/partials/default-location.d.ts +2 -0
- package/dist/lib/map/components/partials/location-dialog.d.ts +17 -0
- package/dist/lib/print/components/print-document/print-document.d.ts +2 -37
- package/dist/lib/print/components/print-document/print-document.types.d.ts +37 -0
- package/dist/lib/print/components/print-document/use-print-context.d.ts +11 -0
- package/dist/lib.js +55 -48
- package/dist/main.js +43 -43
- package/dist/map.js +91 -74
- package/dist/material.css +1 -1
- package/dist/{nxgt-theme-ivgNca3z.js → nxgt-theme-DA1IQe0O.js} +5 -5
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +121 -107
- package/dist/{public-BtKAthSs.js → public-B42vT7ee.js} +362 -332
- package/dist/{render-json-BOhvPnSv.js → render-json-COvAkihK.js} +3 -3
- package/dist/{rich-code-block-BZYZ6ewr.js → rich-code-block-DIJ1X1AF.js} +5 -5
- package/dist/{rich-text-viewer-W15XIwah.js → rich-text-viewer-CXJp584B.js} +3 -3
- package/dist/{sortable-provider-hUCwt69K.js → sortable-provider-Csby6WpB.js} +2 -2
- package/dist/{spinner-BmUXTzvJ.js → spinner-DC35lhqx.js} +3 -1
- package/dist/{stored-language-_OGPBCn0.js → stored-language-BIxd7uiP.js} +8 -2
- package/dist/theme-picker.js +3 -3
- package/dist/{theme-toggle-DdvEafno.js → theme-toggle-BWdNFLvB.js} +1 -1
- package/dist/themes.js +1 -1
- package/dist/{toolbar-items-DKfY_6AG.js → toolbar-items-oqmVfnfO.js} +578 -567
- package/dist/{translate-material-DzBMPErh.js → translate-material-Bgtjuh85.js} +2 -2
- package/dist/{translator-BIVSiq4X.js → translator-BrZv1U54.js} +1 -1
- package/dist/{use-chat-composer-DCQW2EJ8.js → use-chat-composer-Dj0TP_B1.js} +8456 -8177
- package/dist/{use-heading-spy-Cr2C_Px8.js → use-heading-spy-1Dqxj_JQ.js} +1 -1
- package/dist/{use-material-translation-C_bAxfvp.js → use-material-translation-DLdQKdfw.js} +2 -2
- package/dist/use-shape-morph-BKA_R5P5.js +35 -0
- package/dist/{youtube-node-OWSNlYCc.js → youtube-node-A3NPAPgK.js} +27 -27
- package/docs/components/feedback-and-status.md +8 -2
- package/docs/components/navigation-and-layout.md +47 -0
- package/docs/components/rich-widgets.md +3 -3
- package/docs/guides/data-grid.md +11 -1
- package/docs/previews/navigation-layout-stickyactionbar.webp +0 -0
- package/docs/roadmap.md +9 -1
- package/package.json +1 -1
- package/dist/empty-state-C5wfbbW9.js +0 -117
- package/dist/use-shape-morph-DXdy2X5g.js +0 -35
package/dist/lib/components/ui/display/recovery-codes/partials/use-recovery-codes-actions.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { RecoveryCodesCopyResult, RecoveryCodesLabels } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The state and the handlers of the copy, download and print buttons: the
|
|
5
|
+
* copy's status and its message, a refusal that stays until the next action,
|
|
6
|
+
* and the print that is undone on unmount.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useRecoveryCodesActions({ codes, labels, fileName, fileHeading, fileNote, onCopy, }: {
|
|
9
|
+
codes: readonly string[];
|
|
10
|
+
labels: RecoveryCodesLabels;
|
|
11
|
+
fileName: string;
|
|
12
|
+
fileHeading: string;
|
|
13
|
+
fileNote?: string;
|
|
14
|
+
onCopy?: (result: RecoveryCodesCopyResult) => void;
|
|
15
|
+
}): {
|
|
16
|
+
status: import('../../../actions/copy-button/use-copy-status.js').CopyStatus;
|
|
17
|
+
refused: boolean;
|
|
18
|
+
message: string;
|
|
19
|
+
copyCodes: () => Promise<void>;
|
|
20
|
+
print: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
21
|
+
download: () => void;
|
|
22
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useVerificationLabels } from '../../../fields/verification-code/use-verification-labels.js';
|
|
2
|
+
import { RecoveryCodesStatusLabels } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The way to a new set without a code (`requireCode` off): a plain button
|
|
5
|
+
* that a lock disables, with the lock's note read by the button.
|
|
6
|
+
*/
|
|
7
|
+
export declare function RecoveryCodesStatusPlain({ labels, overrides, locked, pending, onRegenerate, }: {
|
|
8
|
+
labels: RecoveryCodesStatusLabels;
|
|
9
|
+
overrides: Parameters<typeof useVerificationLabels>[0];
|
|
10
|
+
locked: boolean | undefined;
|
|
11
|
+
pending: boolean | undefined;
|
|
12
|
+
onRegenerate: () => unknown;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { ButtonProps } from '../../actions/button/button.js';
|
|
4
|
+
declare function AlertDialogAction({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Action> & Partial<Pick<ButtonProps, 'variant' | 'color'>>): import("react").JSX.Element;
|
|
5
|
+
declare function AlertDialogCancel({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Cancel> & Partial<Pick<ButtonProps, 'variant' | 'color'>>): import("react").JSX.Element;
|
|
6
|
+
export { AlertDialogAction, AlertDialogCancel };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { AlertDialogAction, AlertDialogCancel } from './alert-dialog-actions.js';
|
|
4
4
|
declare function AlertDialog({ ...props }: ComponentProps<typeof AlertDialogPrimitive.Root>): import("react").JSX.Element;
|
|
5
5
|
declare function AlertDialogTrigger({ children, asChild, ...props }: ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react").JSX.Element;
|
|
6
6
|
declare function AlertDialogPortal({ ...props }: ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react").JSX.Element;
|
|
@@ -10,6 +10,4 @@ declare function AlertDialogHeader({ className, ...props }: ComponentProps<'div'
|
|
|
10
10
|
declare function AlertDialogFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
11
11
|
declare function AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Title>): import("react").JSX.Element;
|
|
12
12
|
declare function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Description>): import("react").JSX.Element;
|
|
13
|
-
declare function AlertDialogAction({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Action> & Partial<Pick<ButtonProps, 'variant' | 'color'>>): import("react").JSX.Element;
|
|
14
|
-
declare function AlertDialogCancel({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Cancel> & Partial<Pick<ButtonProps, 'variant' | 'color'>>): import("react").JSX.Element;
|
|
15
13
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogPrimitive, AlertDialogTitle, AlertDialogTrigger, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A confirm dialog's action: `handleConfirm` runs `onConfirm` with the
|
|
4
|
+
* buttons busy, closes on success, and on a throw keeps the dialog open with
|
|
5
|
+
* the error's message. A reopened dialog starts without the old error.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useConfirmAction({ open, onOpenChange, onConfirm, }: {
|
|
8
|
+
open: boolean;
|
|
9
|
+
onOpenChange: (open: boolean) => void;
|
|
10
|
+
onConfirm: () => void | Promise<void>;
|
|
11
|
+
}): {
|
|
12
|
+
pending: boolean;
|
|
13
|
+
error: string | null;
|
|
14
|
+
handleOpenChange: (value: boolean) => void;
|
|
15
|
+
handleConfirm: (event: MouseEvent<HTMLButtonElement>) => Promise<void>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as z } from 'zod';
|
|
2
|
+
import { ConfirmationDialogProps } from './confirmation-dialog.js';
|
|
3
|
+
type InferFormValues<T> = T extends z.ZodObject<any> ? z.infer<T> : never;
|
|
4
|
+
/** The form of a confirmation dialog: the schema's resolver and defaults. */
|
|
5
|
+
export declare function useConfirmationForm<T>(formOptions: ConfirmationDialogProps<T>['formOptions']): import('react-hook-form').UseFormReturn<InferFormValues<T>, any, InferFormValues<T>>;
|
|
6
|
+
/**
|
|
7
|
+
* `open` + `onOpenChange` make a dialog controlled; without `open` it keeps
|
|
8
|
+
* its own state (`defaultOpen`), and `onOpenChange` only observes.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useDialogOpen({ open, defaultOpen, onOpenChange, }: {
|
|
11
|
+
open?: boolean;
|
|
12
|
+
defaultOpen: boolean;
|
|
13
|
+
onOpenChange?: (open: boolean) => void;
|
|
14
|
+
}): {
|
|
15
|
+
isOpen: boolean;
|
|
16
|
+
handleOpenChange: (value: boolean) => void;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CountdownTone } from './countdown-timer.utils.js';
|
|
2
|
+
/** The ring that empties as the time runs out; decoration, the clock carries the time. */
|
|
3
|
+
export declare function CountdownRing({ tone, fraction, size, }: {
|
|
4
|
+
tone: CountdownTone;
|
|
5
|
+
fraction: number;
|
|
6
|
+
size: 'sm' | 'md';
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -12,6 +12,14 @@ export type CountdownTimerProps = {
|
|
|
12
12
|
criticalAt?: number;
|
|
13
13
|
/** Its name; "Time remaining" by default. */
|
|
14
14
|
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* What the warning and critical tones say beside the clock, with a clock
|
|
17
|
+
* icon, so low time is not shown by colour alone. By default "Little time
|
|
18
|
+
* left" in the warning tone and "Almost out of time" in the critical one; a
|
|
19
|
+
* string replaces both; `false` hides the icon and the words (the
|
|
20
|
+
* announcement then speaks the time only).
|
|
21
|
+
*/
|
|
22
|
+
warningText?: string | false;
|
|
15
23
|
size?: 'sm' | 'md';
|
|
16
24
|
} & Omit<ComponentProps<'div'>, 'children'>;
|
|
17
25
|
/**
|
|
@@ -20,4 +28,4 @@ export type CountdownTimerProps = {
|
|
|
20
28
|
* assistive tech hears it only when it crosses a threshold and when the time
|
|
21
29
|
* is up, never every second.
|
|
22
30
|
*/
|
|
23
|
-
export declare function CountdownTimer({ duration, paused, onExpire, warningAt, criticalAt, label, size, className, ...props }: CountdownTimerProps): import("react").JSX.Element;
|
|
31
|
+
export declare function CountdownTimer({ duration, paused, onExpire, warningAt, criticalAt, label, warningText, size, className, ...props }: CountdownTimerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NotificationRowProps } from '../types.js';
|
|
2
|
+
type Props = Pick<NotificationRowProps, 'title' | 'description' | 'createdAt' | 'now' | 'category' | 'href' | 'linkComponent' | 'onOpen' | 'onMarkRead' | 'onDismiss' | 'actions'> & {
|
|
3
|
+
/** The row's name for assistive tech, for the quick actions. */
|
|
4
|
+
name: string;
|
|
5
|
+
unread: boolean;
|
|
6
|
+
compact: boolean;
|
|
7
|
+
};
|
|
8
|
+
/** The text column of a notification: title and time, description, tag, actions. */
|
|
9
|
+
export declare function NotificationRowBody({ title, name, description, createdAt, now, unread, category, compact, href, linkComponent, onOpen, onMarkRead, onDismiss, actions, }: Props): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { NotificationRowProps } from '../types.js';
|
|
3
|
+
export declare function NotificationRowOpen({ href, onOpen, linkComponent, children, }: Pick<NotificationRowProps, 'href' | 'onOpen' | 'linkComponent'> & {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LinkComponent } from '../../primitives/link/link-component.js';
|
|
3
|
+
import { NotificationItem, NotificationsChromeState, NotificationsDensity, NotificationsProps } from './types.js';
|
|
4
|
+
export type NotificationsModel = {
|
|
5
|
+
items: NotificationItem[];
|
|
6
|
+
visible: NotificationItem[];
|
|
7
|
+
unread: number;
|
|
8
|
+
state: NotificationsChromeState;
|
|
9
|
+
variant: NonNullable<NotificationsProps['variant']>;
|
|
10
|
+
label?: NotificationsProps['label'];
|
|
11
|
+
triggerIcon?: ReactNode;
|
|
12
|
+
emptyIcon?: ReactNode;
|
|
13
|
+
setOpen: (open: boolean) => void;
|
|
14
|
+
setFilter: (filter: NotificationsChromeState['filter']) => void;
|
|
15
|
+
setQuery: (query: string) => void;
|
|
16
|
+
setCategory: (category: string | null) => void;
|
|
17
|
+
categories: string[];
|
|
18
|
+
onRead?: (id: string) => void;
|
|
19
|
+
onReadAll?: () => void;
|
|
20
|
+
onDismiss?: (id: string) => void;
|
|
21
|
+
onItemClick?: (item: NotificationItem) => void;
|
|
22
|
+
openItem: (item: NotificationItem) => void;
|
|
23
|
+
density: NotificationsDensity;
|
|
24
|
+
groupByDay: boolean;
|
|
25
|
+
/** The reference time, or `null` until mounted when none was given. */
|
|
26
|
+
now: number | null;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
hasMore: boolean;
|
|
29
|
+
onLoadMore?: () => void;
|
|
30
|
+
loadingMore: boolean;
|
|
31
|
+
searchable: boolean;
|
|
32
|
+
footer?: ReactNode;
|
|
33
|
+
fullScreenOnMobile: boolean;
|
|
34
|
+
linkComponent?: LinkComponent;
|
|
35
|
+
error: NotificationsProps['error'];
|
|
36
|
+
onRetry?: () => unknown;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The props the model hands on as they are, with their defaults: what the
|
|
40
|
+
* list, the trigger and the sheet read but the hook does not compute.
|
|
41
|
+
*/
|
|
42
|
+
export declare function viewProps({ variant, label, triggerIcon, emptyIcon, onReadAll, onDismiss, density, groupByDay, loading, loadingMore, searchable, footer, fullScreenOnMobile, linkComponent, error, onRetry, }: NotificationsProps): {
|
|
43
|
+
variant: import('./types.js').NotificationsVariant;
|
|
44
|
+
label: ReactNode;
|
|
45
|
+
triggerIcon: ReactNode;
|
|
46
|
+
emptyIcon: ReactNode;
|
|
47
|
+
onReadAll: (() => void) | undefined;
|
|
48
|
+
onDismiss: ((id: string) => void) | undefined;
|
|
49
|
+
density: import('../index.js').NotificationRowDensity;
|
|
50
|
+
groupByDay: boolean;
|
|
51
|
+
loading: boolean;
|
|
52
|
+
loadingMore: boolean;
|
|
53
|
+
searchable: boolean;
|
|
54
|
+
footer: ReactNode;
|
|
55
|
+
fullScreenOnMobile: boolean;
|
|
56
|
+
linkComponent: LinkComponent | undefined;
|
|
57
|
+
error: ReactNode;
|
|
58
|
+
onRetry: (() => unknown) | undefined;
|
|
59
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NotificationsProps } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The chrome state (open, filter, query, category) of the notifications:
|
|
4
|
+
* the controlled `filter`, `category` and `open` props win over it.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useNotificationsChrome({ filter, defaultFilter, category, defaultCategory, open, defaultOpen, onOpenChange, }: NotificationsProps): {
|
|
7
|
+
state: import('./types.js').NotificationsChromeState;
|
|
8
|
+
actions: {
|
|
9
|
+
setOpen: (payload: boolean) => void;
|
|
10
|
+
toggleOpen: (noArgument?: void | undefined) => void;
|
|
11
|
+
setFilter: (payload: import('./types.js').NotificationFilter) => void;
|
|
12
|
+
setQuery: (payload: string) => void;
|
|
13
|
+
setCategory: (payload: string | null) => void;
|
|
14
|
+
};
|
|
15
|
+
isOpen: boolean;
|
|
16
|
+
setOpen: (next: boolean) => void;
|
|
17
|
+
};
|
|
@@ -1,38 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
items: NotificationItem[];
|
|
6
|
-
visible: NotificationItem[];
|
|
7
|
-
unread: number;
|
|
8
|
-
state: NotificationsChromeState;
|
|
9
|
-
variant: NonNullable<NotificationsProps['variant']>;
|
|
10
|
-
label?: NotificationsProps['label'];
|
|
11
|
-
triggerIcon?: ReactNode;
|
|
12
|
-
emptyIcon?: ReactNode;
|
|
13
|
-
setOpen: (open: boolean) => void;
|
|
14
|
-
setFilter: (filter: NotificationsChromeState['filter']) => void;
|
|
15
|
-
setQuery: (query: string) => void;
|
|
16
|
-
setCategory: (category: string | null) => void;
|
|
17
|
-
categories: string[];
|
|
18
|
-
onRead?: (id: string) => void;
|
|
19
|
-
onReadAll?: () => void;
|
|
20
|
-
onDismiss?: (id: string) => void;
|
|
21
|
-
onItemClick?: (item: NotificationItem) => void;
|
|
22
|
-
openItem: (item: NotificationItem) => void;
|
|
23
|
-
density: NotificationsDensity;
|
|
24
|
-
groupByDay: boolean;
|
|
25
|
-
/** The reference time, or `null` until mounted when none was given. */
|
|
26
|
-
now: number | null;
|
|
27
|
-
loading: boolean;
|
|
28
|
-
hasMore: boolean;
|
|
29
|
-
onLoadMore?: () => void;
|
|
30
|
-
loadingMore: boolean;
|
|
31
|
-
searchable: boolean;
|
|
32
|
-
footer?: ReactNode;
|
|
33
|
-
fullScreenOnMobile: boolean;
|
|
34
|
-
linkComponent?: LinkComponent;
|
|
35
|
-
error: NotificationsProps['error'];
|
|
36
|
-
onRetry?: () => unknown;
|
|
37
|
-
};
|
|
38
|
-
export declare function useNotifications({ items, count, variant, filter, defaultFilter, category, defaultCategory, open, defaultOpen, onOpenChange, onRead, onReadAll, onDismiss, onItemClick, toastOnArrival, label, triggerIcon, emptyIcon, density, groupByDay, now, loading, hasMore, onLoadMore, loadingMore, searchable, footer, fullScreenOnMobile, linkComponent, error, onRetry, }: NotificationsProps): NotificationsModel;
|
|
1
|
+
import { NotificationsModel } from './notifications-model.js';
|
|
2
|
+
import { NotificationsProps } from './types.js';
|
|
3
|
+
export type { NotificationsModel } from './notifications-model.js';
|
|
4
|
+
export declare function useNotifications(props: NotificationsProps): NotificationsModel;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** The spinner's four shapes and eight tones; the look lives in classes. */
|
|
2
|
+
export declare const variants: (props?: ({
|
|
3
|
+
variant?: "1" | "2" | "3" | "4" | null | undefined;
|
|
4
|
+
color?: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "default" | "light" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
|
+
import { variants } from './spinner-variants.js';
|
|
3
4
|
export type SpinnerProps = {} & ComponentProps<'div'> & VariantProps<typeof variants>;
|
|
4
|
-
declare const variants: (props?: ({
|
|
5
|
-
variant?: "1" | "2" | "3" | "4" | null | undefined;
|
|
6
|
-
color?: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "default" | "light" | null | undefined;
|
|
7
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
5
|
export declare function Spinner({ variant, color, className, ...props }: SpinnerProps): import("react").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StateHeadingLevel } from './state-frame.js';
|
|
3
|
+
/** The title and the description of a state, beside or under its media. */
|
|
4
|
+
export declare function StateFrameText({ title, description, headingLevel, inline, compact, }: {
|
|
5
|
+
title?: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
headingLevel?: StateHeadingLevel;
|
|
8
|
+
inline: boolean;
|
|
9
|
+
compact: boolean;
|
|
10
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StateKind } from '@nxgt/material-core/states';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { StateFrameSize, StateIllustrationProp } from './state-frame.js';
|
|
4
|
+
/**
|
|
5
|
+
* A state's media: the `illustration` (a node, a scene id, `true` for the
|
|
6
|
+
* kind's scene, `false` for none), else the `icon` in a tinted well, else
|
|
7
|
+
* the built-in icon (compact) or illustration (default size).
|
|
8
|
+
*/
|
|
9
|
+
export declare function useStateMedia({ kind, size, illustration, icon, }: {
|
|
10
|
+
kind: StateKind;
|
|
11
|
+
size: StateFrameSize;
|
|
12
|
+
illustration?: StateIllustrationProp;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
}): ReactNode;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type StepDotState = 'upcoming' | 'done' | 'correct' | 'incorrect' | 'flagged';
|
|
2
|
+
/**
|
|
3
|
+
* One step of a `StepDots` row: its mark, named by its number and state as
|
|
4
|
+
* text for assistive tech; a button that jumps to it with `onSelect`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function StepDot({ index, count, state, current: isCurrent, segments, onSelect, }: {
|
|
7
|
+
index: number;
|
|
8
|
+
count: number;
|
|
9
|
+
state: StepDotState;
|
|
10
|
+
current: boolean;
|
|
11
|
+
segments: boolean;
|
|
12
|
+
onSelect?: (index: number) => void;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
|
|
2
|
+
import { StepDotState } from './step-dot.js';
|
|
3
|
+
export type { StepDotState } from './step-dot.js';
|
|
3
4
|
export type StepDotsProps = {
|
|
4
5
|
/** How many steps. */
|
|
5
6
|
count: number;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StepUpDialogLabels, StepUpDialogProps } from './types.js';
|
|
3
|
+
/** The line under the title; a node `destination` is set into the translated sentence. */
|
|
4
|
+
export declare function describeBy(via: StepUpDialogProps['via'], destination: StepUpDialogProps['destination'], labels: StepUpDialogLabels): ReactNode;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
import { StepUpDialogProps } from './types.js';
|
|
3
|
+
type Input = Pick<StepUpDialogProps, 'open' | 'via' | 'destination' | 'requestError' | 'onRetry' | 'confirmedLabel'> & {
|
|
4
|
+
confirming: boolean;
|
|
5
|
+
labelOverrides: StepUpDialogProps['labels'];
|
|
6
|
+
/** The rest of the dialog's props: the code field's. */
|
|
7
|
+
code: Omit<StepUpDialogProps, keyof Input | 'labels' | 'onCancel' | 'cancelVariant' | 'title' | 'description' | 'icons'>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* What a `StepUpDialog` wires between its parts: the labels, the form id,
|
|
11
|
+
* the focus (title, field, "Retry"), the retry and the line under the title.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useStepUpView({ open, via, destination, requestError, onRetry, confirming, confirmedLabel, labelOverrides, code, }: Input): {
|
|
14
|
+
labels: import('./types.js').StepUpDialogLabels;
|
|
15
|
+
verification: import('../../fields/index.js').VerificationCodeLabels;
|
|
16
|
+
formId: string;
|
|
17
|
+
fieldShown: boolean;
|
|
18
|
+
held: boolean;
|
|
19
|
+
titleRef: import('react').RefObject<HTMLHeadingElement | null>;
|
|
20
|
+
by: import('react').ReactNode;
|
|
21
|
+
onOpenAutoFocus: (event: Event | SyntheticEvent) => void;
|
|
22
|
+
statusText: string | number | bigint | boolean | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined>;
|
|
23
|
+
retry: {
|
|
24
|
+
onRetry: (() => void) | undefined;
|
|
25
|
+
retryLabel: string;
|
|
26
|
+
retrying: boolean;
|
|
27
|
+
settled: number;
|
|
28
|
+
retryRef: import('react').RefObject<HTMLButtonElement | null>;
|
|
29
|
+
onRetryBlur: (event: {
|
|
30
|
+
relatedTarget: EventTarget | null;
|
|
31
|
+
}) => void;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export {};
|
package/dist/lib/components/ui/fields/attributes/attribute-form/attribute-options-form-fields.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
import { TFormValues } from './types.js';
|
|
3
|
+
/** The options of a (multi) select attribute, typed freely, with its separator. */
|
|
4
|
+
export declare function AttributeOptionsFormFields({ control, options, }: {
|
|
5
|
+
control: Control<TFormValues>;
|
|
6
|
+
options?: string[] | null;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Attribute } from '../models/attribute.js';
|
|
2
|
+
type AttributeTileProps = {
|
|
3
|
+
attribute: Attribute;
|
|
4
|
+
/** Given, the tile has an edit button. */
|
|
5
|
+
onEdit?: (attribute: Attribute) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
editLabel: string;
|
|
8
|
+
};
|
|
9
|
+
/** One attribute of the list: its type's icon, its name and its type. */
|
|
10
|
+
export declare function AttributeTile({ attribute, onEdit, disabled, editLabel, }: AttributeTileProps): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Attribute } from '../models/attribute.js';
|
|
2
|
+
import { AttributeText } from '../use-attribute-text.js';
|
|
3
|
+
import { AttributesEditorState } from '../use-attributes-editor.js';
|
|
4
|
+
type EditorRowsProps = {
|
|
5
|
+
text: AttributeText;
|
|
6
|
+
editor: AttributesEditorState;
|
|
7
|
+
items: Attribute[];
|
|
8
|
+
hintId: string;
|
|
9
|
+
phone: boolean;
|
|
10
|
+
reorderable: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/** The editor's rows in their current order, or the note shown when none. */
|
|
14
|
+
export declare function EditorRows({ text, editor, items, hintId, phone, reorderable, disabled, }: EditorRowsProps): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HeadingLevel } from '../../inline-editor/editor-header.js';
|
|
2
|
+
import { groupContacts } from '../logic/primary.js';
|
|
3
|
+
import { Contact } from '../models.js';
|
|
4
|
+
import { ContactText } from '../use-contact-text.js';
|
|
5
|
+
import { ContactsEditorState } from '../use-contacts-editor.js';
|
|
6
|
+
type ContactGroupsProps = {
|
|
7
|
+
text: ContactText;
|
|
8
|
+
editor: ContactsEditorState;
|
|
9
|
+
items: Contact[];
|
|
10
|
+
groups: ReturnType<typeof groupContacts>;
|
|
11
|
+
positions: ReadonlyMap<number, number>;
|
|
12
|
+
variant: 'list' | 'cards';
|
|
13
|
+
headingLevel?: HeadingLevel;
|
|
14
|
+
/** A phone shows summary rows that open the sheet. */
|
|
15
|
+
phone: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/** The contacts of each type: full rows, or on a phone summary rows. */
|
|
19
|
+
export declare function ContactGroups({ text, editor, items, groups, positions, variant, headingLevel, phone, disabled, }: ContactGroupsProps): import("react").JSX.Element[];
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Contact } from '../models.js';
|
|
2
|
+
type ContactTileProps = {
|
|
3
|
+
contact: Contact;
|
|
4
|
+
/** The contact type's translated name. */
|
|
5
|
+
typeName: string;
|
|
6
|
+
/** Given, the tile has an edit button. */
|
|
7
|
+
onEdit?: () => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
editLabel: string;
|
|
10
|
+
};
|
|
11
|
+
/** One contact of the read-only list: its type's icon, its label and its value. */
|
|
12
|
+
export declare function ContactTile({ contact, typeName, onEdit, disabled, editLabel, }: ContactTileProps): import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ButtonVariant } from '../../../actions/button/button.js';
|
|
2
|
+
type DialogActionsProps = {
|
|
3
|
+
/** An existing contact is edited: Remove shows when `onDelete` is given. */
|
|
4
|
+
isEdit: boolean;
|
|
5
|
+
onDelete?: () => void;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
onSave: () => void;
|
|
8
|
+
canSave: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
cancelVariant: ButtonVariant;
|
|
11
|
+
};
|
|
12
|
+
/** The Remove, Cancel and Save buttons of the contact dialog. */
|
|
13
|
+
export declare function DialogActions({ isEdit, onDelete, onCancel, onSave, canSave, disabled, cancelVariant, }: DialogActionsProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { Contact, ContactType } from '../models.js';
|
|
3
|
+
type DialogFieldsProps = {
|
|
4
|
+
draft: Contact;
|
|
5
|
+
setDraft: Dispatch<SetStateAction<Contact>>;
|
|
6
|
+
options: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: ContactType;
|
|
9
|
+
}[];
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
/** The type, value and label inputs of the contact dialog. */
|
|
13
|
+
export declare function DialogFields({ draft, setDraft, options, disabled, }: DialogFieldsProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|