@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/widgets/editor/extensions/custom/action-card/action-card-tile.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ActionCardItemAttrs, ActionCardVariant } from './const.js';
|
|
2
|
+
export type ActionCardTileProps = {
|
|
3
|
+
item: ActionCardItemAttrs;
|
|
4
|
+
variant: ActionCardVariant;
|
|
5
|
+
isEditable: boolean;
|
|
6
|
+
onUpdate: (attrs: Partial<ActionCardItemAttrs>) => void;
|
|
7
|
+
onRemove: () => void;
|
|
8
|
+
};
|
|
9
|
+
/** One card of the block: a link when read-only, with Edit and Remove when editable. */
|
|
10
|
+
export declare function ActionCardTile({ item, variant, isEditable, onUpdate, onRemove, }: ActionCardTileProps): import("react").JSX.Element;
|
package/dist/lib/components/ui/widgets/editor/extensions/custom/select-card/select-card-tile.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectCardOptionAttrs } from './const.js';
|
|
2
|
+
export type SelectCardTileProps = {
|
|
3
|
+
option: SelectCardOptionAttrs;
|
|
4
|
+
active: boolean;
|
|
5
|
+
isEditable: boolean;
|
|
6
|
+
onToggle: () => void;
|
|
7
|
+
onUpdate: (attrs: Partial<SelectCardOptionAttrs>) => void;
|
|
8
|
+
onRemove: () => void;
|
|
9
|
+
};
|
|
10
|
+
/** One option of the selector: a card that toggles, with Edit and Remove when editable. */
|
|
11
|
+
export declare function SelectCardTile({ option, active, isEditable, onToggle, onUpdate, onRemove, }: SelectCardTileProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNodeViewProps } from '@tiptap/react';
|
|
2
|
+
/**
|
|
3
|
+
* The list a block keeps in one node attribute (items, options…), with the
|
|
4
|
+
* three edits every block offers: change one, remove one, add one.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useNodeList<T>(props: ReactNodeViewProps<HTMLDivElement>, attribute: string, makeItem: (count: number) => T): {
|
|
7
|
+
items: T[];
|
|
8
|
+
update: (index: number, attrs: Partial<T>) => void;
|
|
9
|
+
remove: (index: number) => void;
|
|
10
|
+
add: () => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EmojiItem } from '@tiptap/extension-emoji';
|
|
2
|
+
/**
|
|
3
|
+
* The picker's tabs (all, recent, general, then one per group) and the
|
|
4
|
+
* handler that inserts an emoji and moves it to the front of the recents.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useEmojiGroups(emojis: EmojiItem[], onSelect: (value: string) => void): {
|
|
7
|
+
groups: {
|
|
8
|
+
all: EmojiItem[];
|
|
9
|
+
recent: EmojiItem[];
|
|
10
|
+
general: EmojiItem[];
|
|
11
|
+
};
|
|
12
|
+
handleEmojiUpdate: (emojiName: string) => () => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EditorLook } from '../core/editor-look.js';
|
|
3
|
+
/** The small toolbar above the text, docked to the card. */
|
|
4
|
+
export declare function CompactEditorHead({ look }: {
|
|
5
|
+
look: EditorLook;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
/** The strip under the text: the character counter and your `actions`. */
|
|
8
|
+
export declare function CompactEditorFooter({ actions }: {
|
|
9
|
+
actions: ReactNode;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EditorLook } from '../core/editor-look.js';
|
|
3
|
+
/** The side rail: a sticky column that stays below the sticky header. */
|
|
4
|
+
export declare function Rail({ side, children, }: {
|
|
5
|
+
side: 'start' | 'end';
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
/** The frame's surface: a bordered card, a column when it holds a floating bar. */
|
|
9
|
+
export declare function frameClass(look: EditorLook, hasBar: boolean, className?: string): string;
|
|
10
|
+
/** The sticky header: who else is editing, the toolbar, the panels. */
|
|
11
|
+
export declare function FrameHeader({ presence, panels, children, }: {
|
|
12
|
+
presence?: ReactNode;
|
|
13
|
+
panels?: ReactNode;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
/** The comment threads, in a margin rail beside the text. */
|
|
17
|
+
export declare function FrameComments({ children }: {
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { documentEditorSlots } from './document-editor-slots.js';
|
|
2
|
+
type Slots = Parameters<typeof documentEditorSlots>[0];
|
|
3
|
+
/** The text in its surface: the docked frame or the page, with the slots the props call for. */
|
|
4
|
+
export declare function DocumentEditorLayout(props: Slots): import("react").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DocumentEditorProps } from './document-editor-types.js';
|
|
2
|
+
/** What floats over the document: the upload signal, menus, panels, comment sync. */
|
|
3
|
+
export declare function DocumentEditorOverlays({ onUpload, onUploadingChange, withComments, commentsAdapter, }: Pick<DocumentEditorProps, 'onUpload' | 'onUploadingChange'> & {
|
|
4
|
+
withComments: boolean;
|
|
5
|
+
commentsAdapter?: NonNullable<DocumentEditorProps['comments']>['adapter'];
|
|
6
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PageMode } from '../partials/page-mode-switch.js';
|
|
3
|
+
import { ViewerComponents } from '../viewer/types.js';
|
|
4
|
+
/** The sticky header: the Write / Preview / Markdown switch, the toolbar, the panels. */
|
|
5
|
+
export declare function PageHeader({ mode, onModeChange, showSwitch, presence, panels, children, }: {
|
|
6
|
+
mode: PageMode;
|
|
7
|
+
onModeChange: (mode: PageMode) => void;
|
|
8
|
+
showSwitch: boolean;
|
|
9
|
+
presence?: ReactNode;
|
|
10
|
+
panels?: ReactNode;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
/** The sheet: the editor while writing, else the chosen view of its content. */
|
|
14
|
+
export declare function PageSheet({ expressive, handleGutter, mode, previewComponents, children, }: {
|
|
15
|
+
expressive: boolean;
|
|
16
|
+
handleGutter: boolean;
|
|
17
|
+
mode: PageMode;
|
|
18
|
+
previewComponents?: ViewerComponents;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
/** Under the sheet; after the floating bar when there is one. */
|
|
22
|
+
export declare function PageFooter({ floating, children, }: {
|
|
23
|
+
floating: boolean;
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EditorLook } from '../../core/editor-look.js';
|
|
2
|
+
/** The composer card: a pill when collapsed, else rounded by look. */
|
|
3
|
+
export declare function composerClass({ pill, look, editable, className, }: {
|
|
4
|
+
pill: boolean;
|
|
5
|
+
look: EditorLook;
|
|
6
|
+
editable: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
}): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The format toggle that shows the small toolbar, and `@` when there are people to mention. */
|
|
2
|
+
export declare function FormatButtons({ formatOpen, toolbarId, onFormatToggle, mentionable, }: {
|
|
3
|
+
formatOpen: boolean;
|
|
4
|
+
/** The id of the toolbar the format toggle reveals. */
|
|
5
|
+
toolbarId: string;
|
|
6
|
+
onFormatToggle: () => void;
|
|
7
|
+
mentionable: boolean;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DocumentEditorProps } from './document-editor-types.js';
|
|
2
|
+
type Input = Pick<DocumentEditorProps, 'features' | 'mentions' | 'outline' | 'onUpload' | 'uploadOptions' | 'onAssist' | 'assistOptions' | 'comments' | 'collaboration'>;
|
|
3
|
+
/**
|
|
4
|
+
* The document editor's feature set: the document kit, then yours, the
|
|
5
|
+
* outline, and the upload, assistant, comments and collaboration features
|
|
6
|
+
* the props turn on.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useDocumentFeatures({ features, mentions, outline, onUpload, uploadOptions, onAssist, assistOptions, comments, collaboration, }: Input): {
|
|
9
|
+
defaults: import('../index.js').EditorFeature[];
|
|
10
|
+
commentsFeature: (import('../index.js').EditorFeature & {
|
|
11
|
+
key: string;
|
|
12
|
+
}) | undefined;
|
|
13
|
+
editorFeatures: import('../index.js').FeatureInput;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { QuestionProps } from '../types.js';
|
|
2
|
+
/** A question's fieldset: prompt, header, media, hint, the answer body and the feedback. */
|
|
3
|
+
export declare function QuestionContent({ question, value, onValueChange, revealed: revealedProp, verdict, points, feedback, disabled, variant, density, showShortcuts, number, showFeedback, }: QuestionProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** The hint box a question opens on demand. */
|
|
3
|
+
export declare function QuestionHint({ id, children, }: {
|
|
4
|
+
id: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
/** The explanation shown once revealed when the feedback block is off. */
|
|
8
|
+
export declare function QuestionExplanation({ children }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QuestionProps } from '../types.js';
|
|
2
|
+
type Props = Pick<QuestionProps, 'question' | 'value' | 'verdict' | 'points' | 'feedback' | 'showFeedback'> & {
|
|
3
|
+
revealed: boolean;
|
|
4
|
+
};
|
|
5
|
+
/** What follows a revealed answer: the server's verdict, or the local feedback, or just the explanation when feedback is off. */
|
|
6
|
+
export declare function QuestionOutcome({ question, value, verdict, points, feedback, revealed, showFeedback, }: Props): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { KeyboardEvent } from 'react';
|
|
2
|
+
import { QuestionProps } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Arrow keys move the focus between the option tiles (wrapping); on a
|
|
5
|
+
* single-choice question that is not revealed, the focused tile is picked.
|
|
6
|
+
*/
|
|
7
|
+
export declare function moveOptionFocus(event: KeyboardEvent<HTMLDivElement>, { multiple, revealed, onToggle, }: {
|
|
8
|
+
multiple: boolean;
|
|
9
|
+
revealed: boolean;
|
|
10
|
+
onToggle: (id: string) => void;
|
|
11
|
+
}): void;
|
|
12
|
+
/** The tiles' grid: four columns of pictures, a side-by-side pair, or one or two columns. */
|
|
13
|
+
export declare function optionsGridClass({ pictures, pair, density, }: {
|
|
14
|
+
pictures: boolean;
|
|
15
|
+
pair: boolean;
|
|
16
|
+
density: QuestionProps['density'];
|
|
17
|
+
}): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { QuestionProps } from './types.js';
|
|
2
|
-
export declare function QuestionCard({ question, value, onValueChange, revealed
|
|
2
|
+
export declare function QuestionCard({ question, value, onValueChange, revealed, verdict, points, feedback, disabled, className, variant, density, showShortcuts, number, showFeedback, }: QuestionProps): import("react").JSX.Element;
|
|
@@ -19,7 +19,7 @@ export type QuestionMedia = QuestionImage & {
|
|
|
19
19
|
name?: string;
|
|
20
20
|
};
|
|
21
21
|
/** The server's verdict on an answer: shown as given, never recomputed. */
|
|
22
|
-
export type QuestionVerdict = 'correct' | 'incorrect' | 'pending';
|
|
22
|
+
export type QuestionVerdict = 'correct' | 'incorrect' | 'pending' | 'unanswered';
|
|
23
23
|
/** Points earned out of the points the question is worth. */
|
|
24
24
|
export type QuestionPoints = {
|
|
25
25
|
awarded: number;
|
|
@@ -62,7 +62,8 @@ export type QuestionProps = {
|
|
|
62
62
|
/**
|
|
63
63
|
* The verdict the server gave, shown as given (no comparison with
|
|
64
64
|
* `question.correct` in the browser). It reveals the card; `pending` is a
|
|
65
|
-
* free answer still waiting for a grader
|
|
65
|
+
* free answer still waiting for a grader; `unanswered` is a question left
|
|
66
|
+
* blank (no value is shown, the points read 0). `question.correct` may still
|
|
66
67
|
* be passed to highlight the correct choices.
|
|
67
68
|
*/
|
|
68
69
|
verdict?: QuestionVerdict;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Question } from '../../questions/types.js';
|
|
2
|
+
/** The keyboard hints under the nav: 1-N to answer, Enter to continue. Large containers only. */
|
|
3
|
+
export declare function QuizShortcuts({ current, revealed, }: {
|
|
4
|
+
current: Question | undefined;
|
|
5
|
+
revealed: boolean;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** The results' buttons: retry the wrong answers (when there are some) and try again. */
|
|
2
|
+
export declare function ResultsActions({ wrong, onRetryWrong, onReset, }: {
|
|
3
|
+
/** How many questions were answered wrong. */
|
|
4
|
+
wrong: number;
|
|
5
|
+
onRetryWrong: () => void;
|
|
6
|
+
onReset: () => void;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { QuestionAnswer } from '../questions/types.js';
|
|
2
|
+
import { QuizProps } from './types.js';
|
|
3
|
+
export type QuizPrimary = 'check' | 'next' | 'submit';
|
|
4
|
+
/**
|
|
5
|
+
* The primary button of the nav: Check (practice, once there is something to
|
|
6
|
+
* check), else Next, else Submit on the last question; and whether it can act.
|
|
7
|
+
*/
|
|
8
|
+
export declare function quizPrimary({ mode, revealed, answer, blocked, last, canNext, canSubmit, }: {
|
|
9
|
+
mode: NonNullable<QuizProps['mode']>;
|
|
10
|
+
revealed: boolean;
|
|
11
|
+
answer: QuestionAnswer | null;
|
|
12
|
+
blocked: boolean;
|
|
13
|
+
last: boolean;
|
|
14
|
+
canNext: boolean;
|
|
15
|
+
canSubmit: boolean;
|
|
16
|
+
}): {
|
|
17
|
+
primary: QuizPrimary;
|
|
18
|
+
canPrimary: boolean;
|
|
19
|
+
};
|
|
20
|
+
/** The quiz props the model passes on as they are, with the defaults of density and shortcuts. */
|
|
21
|
+
export declare function quizConfig(props: QuizProps): {
|
|
22
|
+
readonly title: import('react').ReactNode;
|
|
23
|
+
readonly description: import('react').ReactNode;
|
|
24
|
+
readonly timeLimit: number | undefined;
|
|
25
|
+
readonly timerPaused: boolean | undefined;
|
|
26
|
+
readonly passingScore: number | undefined;
|
|
27
|
+
readonly density: "comfortable" | "compact";
|
|
28
|
+
readonly showShortcuts: boolean;
|
|
29
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { BoundSliceActions } from '../../../../../lib/redux/bind-slice-actions.js';
|
|
2
3
|
import { QuestionAnswer } from '../questions/types.js';
|
|
3
4
|
import { QuizChromeState } from './types.js';
|
|
4
5
|
/** The chrome with every field present. */
|
|
@@ -202,6 +203,8 @@ export declare const quizActions: import('@reduxjs/toolkit').CaseReducerActions<
|
|
|
202
203
|
}, action: PayloadAction<string[]>) => void;
|
|
203
204
|
reset: () => Required<QuizChromeState>;
|
|
204
205
|
}, "quiz">;
|
|
206
|
+
/** The quiz slice's actions bound to its dispatch, as `useSliceReducer` hands them. */
|
|
207
|
+
export type QuizActions = BoundSliceActions<typeof quizActions>;
|
|
205
208
|
export declare const quizSelectors: {
|
|
206
209
|
selectCanNext: (state: QuizChromeState, length: number) => boolean;
|
|
207
210
|
selectCanPrev: (state: QuizChromeState) => boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Question, QuestionAnswer } from '../questions/types.js';
|
|
2
|
+
import { QuizPrimary } from './quiz.flow.js';
|
|
3
|
+
import { QuizActions } from './quiz.slice.js';
|
|
4
|
+
import { QuizProps } from './types.js';
|
|
5
|
+
/** Submit, next and the primary button's action (check, next or submit). */
|
|
6
|
+
export declare function useQuizActions({ actions, questions, answers, current, answer, roundLength, primary, canPrimary, onSubmit, }: {
|
|
7
|
+
actions: QuizActions;
|
|
8
|
+
questions: Question[];
|
|
9
|
+
answers: Record<string, QuestionAnswer>;
|
|
10
|
+
current: Question | undefined;
|
|
11
|
+
answer: QuestionAnswer | null;
|
|
12
|
+
roundLength: number;
|
|
13
|
+
primary: QuizPrimary;
|
|
14
|
+
canPrimary: boolean;
|
|
15
|
+
onSubmit: QuizProps['onSubmit'];
|
|
16
|
+
}): {
|
|
17
|
+
submit: (timedOut?: boolean) => void;
|
|
18
|
+
next: () => void;
|
|
19
|
+
runPrimary: () => void;
|
|
20
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Question } from '../questions/types.js';
|
|
2
|
+
import { QuizState } from './quiz.slice.js';
|
|
3
|
+
import { QuizProps } from './types.js';
|
|
4
|
+
/**
|
|
5
|
+
* What the quiz derives from its state: the current question and its answer,
|
|
6
|
+
* whether its verdict shows, the score, the wrong ids, and what the primary
|
|
7
|
+
* button (check, next or submit) is and can do.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useQuizFlow({ questions, round, state, mode, }: {
|
|
10
|
+
questions: Question[];
|
|
11
|
+
round: Question[];
|
|
12
|
+
state: QuizState;
|
|
13
|
+
mode: NonNullable<QuizProps['mode']>;
|
|
14
|
+
}): {
|
|
15
|
+
current: Question;
|
|
16
|
+
answer: string | string[] | null;
|
|
17
|
+
revealed: boolean;
|
|
18
|
+
score: {
|
|
19
|
+
correct: number;
|
|
20
|
+
total: number;
|
|
21
|
+
percent: number;
|
|
22
|
+
};
|
|
23
|
+
wrong: string[];
|
|
24
|
+
answered: number;
|
|
25
|
+
canNext: boolean;
|
|
26
|
+
canSubmit: boolean;
|
|
27
|
+
primary: import('./quiz.flow.js').QuizPrimary;
|
|
28
|
+
canPrimary: boolean;
|
|
29
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Question } from '../questions/types.js';
|
|
2
|
+
import { QuizActions, QuizState } from './quiz.slice.js';
|
|
3
|
+
import { scoreQuiz } from './quiz.utils.js';
|
|
4
|
+
import { QuizProps } from './types.js';
|
|
5
|
+
/** The questions of the current round (all, or a retry's), keeping the index inside them. */
|
|
6
|
+
export declare function useQuizRound(questions: Question[], retryIds: string[] | null, currentIndex: number, actions: QuizActions): Question[];
|
|
7
|
+
/** Calls `onComplete` once per submission, with the score and the answers. */
|
|
8
|
+
export declare function useQuizComplete({ state, score, onComplete, }: {
|
|
9
|
+
state: QuizState;
|
|
10
|
+
score: ReturnType<typeof scoreQuiz>;
|
|
11
|
+
onComplete: QuizProps['onComplete'];
|
|
12
|
+
}): void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Question, QuestionAnswer } from '../questions/types.js';
|
|
2
|
+
import { QuizPrimary } from './quiz.flow.js';
|
|
2
3
|
import { QuizState } from './quiz.slice.js';
|
|
3
4
|
import { scoreQuiz } from './quiz.utils.js';
|
|
4
5
|
import { QuizProps } from './types.js';
|
|
5
|
-
export type QuizPrimary
|
|
6
|
+
export type { QuizPrimary };
|
|
6
7
|
export type QuizModel = Pick<QuizProps, 'title' | 'description' | 'timeLimit' | 'timerPaused' | 'passingScore'> & {
|
|
7
8
|
questions: Question[];
|
|
8
9
|
/** The questions of this round: all of them, or a retry's. */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The classes of a month cell: its height by density, and the washes for weekend, outside, today and the drag range. */
|
|
2
|
+
export declare function monthDayCellClass({ compact, outside, isToday, painting, disabled, weekend, }: {
|
|
3
|
+
compact: boolean;
|
|
4
|
+
outside: boolean;
|
|
5
|
+
isToday: boolean;
|
|
6
|
+
painting: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
weekend: boolean;
|
|
9
|
+
}): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CalendarEvent } from '../types.js';
|
|
2
|
+
/** The day number in a month cell: a filled disc today, a ring on the phone's chosen day. */
|
|
3
|
+
export declare function MonthDayNumber({ day, isToday, isCursor, outside, }: {
|
|
4
|
+
day: Date;
|
|
5
|
+
isToday: boolean;
|
|
6
|
+
isCursor: boolean;
|
|
7
|
+
outside: boolean;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
/** Up to three coloured dots standing for the day's events on a phone. */
|
|
10
|
+
export declare function MonthDayDots({ items }: {
|
|
11
|
+
items: CalendarEvent[];
|
|
12
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a month cell derives and does: its events, its flags (today, outside
|
|
3
|
+
* the month, the cursor, inside the dragged range), its spoken label, and
|
|
4
|
+
* what a click or key does (choose the day on a phone, open the day's
|
|
5
|
+
* dialog, or start a new event).
|
|
6
|
+
*/
|
|
7
|
+
export declare function useMonthDay({ day, month, draft, }: {
|
|
8
|
+
day: Date;
|
|
9
|
+
month: Date;
|
|
10
|
+
draft: {
|
|
11
|
+
from: Date;
|
|
12
|
+
to: Date;
|
|
13
|
+
} | null;
|
|
14
|
+
}): {
|
|
15
|
+
items: import('./types.js').CalendarEvent[];
|
|
16
|
+
outside: boolean;
|
|
17
|
+
isToday: boolean;
|
|
18
|
+
isCursor: boolean;
|
|
19
|
+
compact: boolean;
|
|
20
|
+
label: string;
|
|
21
|
+
painting: boolean;
|
|
22
|
+
open: boolean;
|
|
23
|
+
setOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
24
|
+
activate: (target: EventTarget | null) => void;
|
|
25
|
+
onKeyDown: (event: import('react').KeyboardEvent<HTMLElement>, day: Date) => void;
|
|
26
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DragEndEvent } from '@dnd-kit/core';
|
|
2
|
+
import { KanbanColumn, KanbanItem } from './types.js';
|
|
3
|
+
type Board = {
|
|
4
|
+
columns: KanbanColumn[];
|
|
5
|
+
itemsById: Map<string, KanbanItem>;
|
|
6
|
+
moveItem: (itemId: string, toColumnId: string, beforeId?: string, toGroupId?: string | null) => void;
|
|
7
|
+
reorderColumns: (activeId: string, overId: string) => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* What a drop does: reorders the columns when a column was dragged, else
|
|
11
|
+
* moves the card into the group, the column, or before the card it was
|
|
12
|
+
* dropped on.
|
|
13
|
+
*/
|
|
14
|
+
export declare function applyKanbanDragEnd(event: DragEndEvent, { columns, itemsById, moveItem, reorderColumns }: Board): void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { KanbanItem } from '../types.js';
|
|
2
|
+
/** A card's default look: title, subtitle, drag handle and icon, colour dot. */
|
|
3
|
+
export declare function KanbanCardTile({ item, inert, dragLabel, }: {
|
|
4
|
+
item: KanbanItem;
|
|
5
|
+
inert: boolean;
|
|
6
|
+
dragLabel: string;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KanbanColumn } from '../types.js';
|
|
2
|
+
/** An ungrouped column's cards (or its empty state) and the composer when it is open here. */
|
|
3
|
+
export declare function KanbanColumnCards({ column, ids, composing, }: {
|
|
4
|
+
column: KanbanColumn;
|
|
5
|
+
/** The visible cards' ids, after the search. */
|
|
6
|
+
ids: string[];
|
|
7
|
+
composing: boolean;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KanbanColumn, KanbanItem, KanbanRenderCard } from '../types.js';
|
|
2
|
+
/** What follows the pointer while a column or a card is dragged. */
|
|
3
|
+
export declare function KanbanDragPreview({ activeId, columns, itemsById, renderCard, }: {
|
|
4
|
+
activeId: string;
|
|
5
|
+
columns: KanbanColumn[];
|
|
6
|
+
itemsById: Map<string, KanbanItem>;
|
|
7
|
+
renderCard?: KanbanRenderCard;
|
|
8
|
+
}): string | number | bigint | boolean | 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> | import("react").JSX.Element | null | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KanbanColumn, KanbanGroup } from '../types.js';
|
|
2
|
+
/** A group's header in a column: collapse toggle, colour dot, title, count and add button. */
|
|
3
|
+
export declare function KanbanGroupHeader({ column, group, count, collapsed, }: {
|
|
4
|
+
column: KanbanColumn;
|
|
5
|
+
group: KanbanGroup | null;
|
|
6
|
+
count: number;
|
|
7
|
+
collapsed: boolean;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { KanbanChange, KanbanColumn, KanbanItem } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Moves a card to a column (before another card, into a group) and reports
|
|
4
|
+
* the move once, with the items when its group changed.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useKanbanMoveItem({ board, commit, disabled, items, itemsById, onItemsChange, }: {
|
|
7
|
+
board: KanbanColumn[];
|
|
8
|
+
commit: (next: KanbanColumn[], change?: Omit<KanbanChange, 'columns'>) => void;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
items: KanbanItem[];
|
|
11
|
+
itemsById: Map<string, KanbanItem>;
|
|
12
|
+
onItemsChange?: (items: KanbanItem[]) => void;
|
|
13
|
+
}): (itemId: string, toColumnId: string, beforeId?: string, toGroupId?: string | null) => void;
|
|
14
|
+
/** Patches one card's fields through `onItemsChange`, unless the board or the card is locked. */
|
|
15
|
+
export declare function useKanbanUpdateItem({ disabled, items, itemsById, onItemsChange, }: {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
items: KanbanItem[];
|
|
18
|
+
itemsById: Map<string, KanbanItem>;
|
|
19
|
+
onItemsChange?: (items: KanbanItem[]) => void;
|
|
20
|
+
}): (itemId: string, patch: Partial<KanbanItem>) => void;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ChartRow } from './types.js';
|
|
3
|
+
/** A point a tooltip, a click or the keyboard lands on. */
|
|
4
|
+
export interface ChartPoint {
|
|
5
|
+
seriesKey: string;
|
|
6
|
+
seriesLabel: string;
|
|
7
|
+
/** The row index (or the slice, step or cell index). */
|
|
8
|
+
index: number;
|
|
9
|
+
/** The formatted x value or category. */
|
|
10
|
+
label: string;
|
|
11
|
+
value: number;
|
|
12
|
+
formatted: string;
|
|
13
|
+
row?: ChartRow;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The series colours: `'default'` draws from `--chart-1..5`; `'soft'` from
|
|
17
|
+
* `--chart-soft-1..5`, each filled mark a soft fill with a crisp outline in
|
|
18
|
+
* the colour's ink (lines, points and swatches in the ink).
|
|
19
|
+
*/
|
|
20
|
+
export type ChartPalette = 'default' | 'soft';
|
|
21
|
+
/** What every chart accepts. */
|
|
22
|
+
export interface ChartBaseProps {
|
|
23
|
+
/** The card's title, and the chart's accessible name. */
|
|
24
|
+
title: string;
|
|
25
|
+
/** A line under the title. */
|
|
26
|
+
description?: ReactNode;
|
|
27
|
+
/** The big number line under the header. */
|
|
28
|
+
headline?: ReactNode;
|
|
29
|
+
/** The screen-reader summary; default generated from the data. */
|
|
30
|
+
summary?: string | ((auto: string) => string);
|
|
31
|
+
/** The plot's height in pixels; default 260 (220 under 480px wide); a radar 340, a gauge by its `size`. */
|
|
32
|
+
height?: number;
|
|
33
|
+
/** Where the legend goes; default `'top'`. Always below on a phone. */
|
|
34
|
+
legend?: 'top' | 'bottom' | false;
|
|
35
|
+
/** The hidden series' keys, controlled. */
|
|
36
|
+
hidden?: string[];
|
|
37
|
+
defaultHidden?: string[];
|
|
38
|
+
onHiddenChange?: (hidden: string[]) => void;
|
|
39
|
+
/** Shapes, dashes and fill patterns beside the colours. */
|
|
40
|
+
patterns?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The series colours. Unset, a chart follows `data-chart-palette="soft"`
|
|
43
|
+
* on an ancestor (an app-wide switch), else the default palette; set, it
|
|
44
|
+
* wins over the ancestor both ways. A `tone` is the same in either.
|
|
45
|
+
*/
|
|
46
|
+
palette?: ChartPalette;
|
|
47
|
+
/** Default `'dotted'`; `'hairline'` draws thin solid lines. */
|
|
48
|
+
grid?: 'dotted' | 'hairline' | 'none';
|
|
49
|
+
/** The "View data" button and its table; default true. */
|
|
50
|
+
dataTable?: boolean;
|
|
51
|
+
/** `false` draws no tooltip; a function renders its content. */
|
|
52
|
+
tooltip?: false | ((points: ChartPoint[]) => ReactNode);
|
|
53
|
+
/** A pointer click, or Enter or Space on a focused point. */
|
|
54
|
+
onPointClick?: (point: ChartPoint) => void;
|
|
55
|
+
/** The entry motion; default true. Reduced motion always wins. */
|
|
56
|
+
animate?: boolean;
|
|
57
|
+
/** Shows a skeleton instead of the plot. */
|
|
58
|
+
loading?: boolean;
|
|
59
|
+
/** Shown when there is no data. */
|
|
60
|
+
emptyState?: ReactNode;
|
|
61
|
+
/** Default `'card'`, a 12px card; `'plain'` draws no surface. */
|
|
62
|
+
surface?: 'card' | 'plain';
|
|
63
|
+
className?: string;
|
|
64
|
+
}
|