@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
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bandBoxes } from './band-boxes.js';
|
|
2
|
+
import { checker } from './keep-inside-checker.js';
|
|
2
3
|
import { ClearMode } from './shapes-clear-content.js';
|
|
3
|
-
|
|
4
|
-
export declare function bandBoxes(column: Element, layer: Box): Box[];
|
|
5
|
-
/**
|
|
6
|
-
* Marks the scenes `data-checked`, and `data-settled` one frame later: the fade
|
|
7
|
-
* of a dropped glyph starts then, so a glyph the first pass drops is never seen,
|
|
8
|
-
* not even for the length of the fade. A new mark replaces the pending frame;
|
|
9
|
-
* `stop` cancels it.
|
|
10
|
-
*/
|
|
11
|
-
export declare function checker(scenes: () => Element[]): {
|
|
12
|
-
mark(): void;
|
|
13
|
-
stop(): void;
|
|
14
|
-
};
|
|
4
|
+
export { bandBoxes, checker };
|
|
15
5
|
/**
|
|
16
6
|
* Keeps the discrete shapes of a preset (`.mo > *`: the motif and illustrated
|
|
17
7
|
* families) whole and clear of the chrome: after layout, and whenever the
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
+
import { collectContent, collectOccupied, scrollsInside } from './collect-content.js';
|
|
1
2
|
import { Box } from './keep-shapes-inside.js';
|
|
2
3
|
import { ClearMode } from './shapes-clear-content.js';
|
|
3
|
-
|
|
4
|
-
export declare function scrollsInside(region: Element): boolean;
|
|
5
|
-
/**
|
|
6
|
-
* The boxes of the text (its glyph runs), the controls and the surfaces (cards, tables, lists: whole) of the region, in the content's own coordinates.
|
|
7
|
-
* Both walks stop at `MAX_CONTENT_BOXES`: text past it is not collected.
|
|
8
|
-
*/
|
|
9
|
-
export declare function collectOccupied(region: Element, anchored?: boolean): Box[];
|
|
10
|
-
/**
|
|
11
|
-
* The occupied boxes of a region, split: the surfaces (cards, lists, tables)
|
|
12
|
-
* apart from the text, controls and marked blocks, and the bands inside the
|
|
13
|
-
* region (an `EntityHeader`, the content header), which only a control-like
|
|
14
|
-
* glyph keeps clear of whole.
|
|
15
|
-
*/
|
|
16
|
-
export declare function collectContent(region: Element, anchored?: boolean): {
|
|
17
|
-
solid: Box[];
|
|
18
|
-
surfaces: Box[];
|
|
19
|
-
bands: Box[];
|
|
20
|
-
};
|
|
4
|
+
export { collectContent, collectOccupied, scrollsInside };
|
|
21
5
|
/** A shape unit as the pass measured it: what to hide, whether the layer's edge or band already hides it, its box and its margin. */
|
|
22
6
|
export interface WatchedUnit {
|
|
23
7
|
/** The elements that carry `data-hidden`. */
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
|
+
import { AuthCardNoticeTone } from './auth-card.js';
|
|
3
|
+
/** The banner above the card, and the row with the brand and the toolbar. */
|
|
4
|
+
export declare function AuthCardBar({ banner, brand, toolbar, clear, }: {
|
|
5
|
+
banner?: ReactNode;
|
|
6
|
+
brand?: ReactNode;
|
|
7
|
+
toolbar?: ReactNode;
|
|
8
|
+
/** `data-keep-clear-box` of the boxes the backdrop's shapes stay clear of. */
|
|
9
|
+
clear: '' | undefined;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
/** The card: the page's `h1`, its description, the notice and the form. */
|
|
12
|
+
export declare function AuthCardPanel({ title, description, notice, noticeTone, focusTitle, headingRef, clear, children, }: {
|
|
13
|
+
title: ReactNode;
|
|
14
|
+
description?: ReactNode;
|
|
15
|
+
notice?: ReactNode;
|
|
16
|
+
noticeTone: AuthCardNoticeTone;
|
|
17
|
+
focusTitle: boolean;
|
|
18
|
+
headingRef: Ref<HTMLHeadingElement>;
|
|
19
|
+
clear: '' | undefined;
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}): import("react").JSX.Element;
|
|
22
|
+
/** Under the card: links to the terms, to help. */
|
|
23
|
+
export declare function AuthCardFooter({ footer }: {
|
|
24
|
+
footer?: ReactNode;
|
|
25
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type DocHeaderCrumb = {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
href?: string;
|
|
5
|
+
};
|
|
6
|
+
/** The breadcrumb above a page's title. */
|
|
7
|
+
export declare function DocHeaderCrumbs({ crumbs }: {
|
|
8
|
+
crumbs?: DocHeaderCrumb[];
|
|
9
|
+
}): import("react").JSX.Element | null;
|
|
10
|
+
/** The line under the title: when the page was updated, where to edit it, and the copy actions. */
|
|
11
|
+
export declare function DocHeaderMeta({ title, editHref, updatedAt, copyPage, copyMarkdown, markdown, }: {
|
|
12
|
+
title: ReactNode;
|
|
13
|
+
editHref?: string;
|
|
14
|
+
updatedAt?: ReactNode | Date;
|
|
15
|
+
copyPage: boolean;
|
|
16
|
+
copyMarkdown: boolean;
|
|
17
|
+
markdown?: string;
|
|
18
|
+
}): import("react").JSX.Element | null;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
href?: string;
|
|
5
|
-
};
|
|
2
|
+
import { DocHeaderCrumb } from './doc-header-parts.js';
|
|
3
|
+
export type { DocHeaderCrumb };
|
|
6
4
|
export type DocHeaderProps = {
|
|
7
5
|
title: ReactNode;
|
|
8
6
|
description?: ReactNode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DocNavItem } from '../types.js';
|
|
2
|
+
/** An entry's row: a link tile when it has an `href`, a plain tile otherwise. */
|
|
3
|
+
export declare function DocNavTile({ item, active, }: {
|
|
4
|
+
item: DocNavItem;
|
|
5
|
+
active: boolean;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
/** The button that folds or unfolds an entry's children. */
|
|
8
|
+
export declare function DocNavToggle({ id, collapsed, }: {
|
|
9
|
+
id: string;
|
|
10
|
+
collapsed: boolean;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DocNavItem, DocPagerLink, DocTocItem } from './types.js';
|
|
2
|
+
/** The chrome actions the doc's effects drive. */
|
|
3
|
+
export type DocEffectActions = {
|
|
4
|
+
setSearchOpen: (open: boolean) => void;
|
|
5
|
+
setSidebarOpen: (open: boolean) => void;
|
|
6
|
+
setActiveHeadingId: (id: string) => void;
|
|
7
|
+
};
|
|
8
|
+
/** The previous and next pages: the ones given, else the neighbours of `pathname` in the nav. */
|
|
9
|
+
export declare function useDocPager(items: DocNavItem[], pathname: string, previous?: DocPagerLink | null, next?: DocPagerLink | null): {
|
|
10
|
+
previous?: DocPagerLink;
|
|
11
|
+
next?: DocPagerLink;
|
|
12
|
+
};
|
|
13
|
+
/** The shortcuts (search, close, previous and next page), the desktop sidebar reset, the heading spy and the scroll on a new page. */
|
|
14
|
+
export declare function useDocEffects({ actions, pager, navigate, pathname, toc, }: {
|
|
15
|
+
actions: DocEffectActions;
|
|
16
|
+
pager: {
|
|
17
|
+
previous?: DocPagerLink;
|
|
18
|
+
next?: DocPagerLink;
|
|
19
|
+
};
|
|
20
|
+
navigate: (href: string) => void;
|
|
21
|
+
pathname: string;
|
|
22
|
+
toc: DocTocItem[];
|
|
23
|
+
}): void;
|
|
@@ -18,5 +18,6 @@ export * from './sidebar/index.js';
|
|
|
18
18
|
export * from './skip-link/index.js';
|
|
19
19
|
export * from './stepper/index.js';
|
|
20
20
|
export * from './steps/index.js';
|
|
21
|
+
export * from './sticky-action-bar/index.js';
|
|
21
22
|
export * from './thread-layout/index.js';
|
|
22
23
|
export * from './toc/index.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuItemShellProps } from './sidebar-menu-item.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The icon and the label of an entry. The label names the entry, so the icon
|
|
4
|
+
* beside it is decorative (`aria-hidden`) and the link's name is the label
|
|
5
|
+
* alone, not "Icon users Identities".
|
|
6
|
+
*/
|
|
7
|
+
export declare function MenuItemContent({ icon, active, children, badge, badgeLabel, ...aria }: MenuItemShellProps): import("react").JSX.Element;
|
|
@@ -1,48 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { SidebarMenuItemBadge } from './sidebar-menu-item-badge.js';
|
|
4
|
-
/**
|
|
5
|
-
* What the link of a `SidebarMenuItem` receives: the anchor's props plus the
|
|
6
|
-
* `href`. It is the neutral {@link LinkComponentProps} contract: spread every
|
|
7
|
-
* prop (the tooltip's handlers, `data-state`, ...) and forward `ref`. A link
|
|
8
|
-
* that forwards only a table's `DataTableLinkProps` is not enough here.
|
|
9
|
-
*/
|
|
10
|
-
export type SidebarLinkProps = LinkComponentProps;
|
|
11
|
-
export type SidebarLinkComponent = LinkComponent;
|
|
12
|
-
type SidebarMenuItemOwnProps = {
|
|
13
|
-
icon?: ReactNode;
|
|
14
|
-
active?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Shown on hover and focus, to the right of the entry. An entry that shows
|
|
17
|
-
* its label, collapsed (under the icon) or expanded, has none unless one
|
|
18
|
-
* is passed: the label is already on screen. An icon-only entry defaults
|
|
19
|
-
* to its `aria-label`.
|
|
20
|
-
*/
|
|
21
|
-
tooltip?: ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* A badge on the entry. `true`: a dot. A number: a count, "99+" past 99.
|
|
24
|
-
* `0`, `false` or nothing: none. A string or a node shows as it is. On the
|
|
25
|
-
* collapsed rail it sits on the icon's top-right corner; expanded it ends
|
|
26
|
-
* the row. It is hidden from assistive technology and read in the entry's
|
|
27
|
-
* name instead (see `badgeLabel`).
|
|
28
|
-
*/
|
|
29
|
-
badge?: SidebarMenuItemBadge;
|
|
30
|
-
/**
|
|
31
|
-
* The text the badge adds to the entry's accessible name ("Bulletins, 2
|
|
32
|
-
* new"), already translated. Defaults to a translated "{count} new" for a
|
|
33
|
-
* count, "new activity" for a dot and the text of a string badge; a node
|
|
34
|
-
* has none by default, so give one.
|
|
35
|
-
*/
|
|
36
|
-
badgeLabel?: string;
|
|
37
|
-
};
|
|
38
|
-
export type SidebarMenuItemProps = SidebarMenuItemOwnProps & ((ComponentProps<'button'> & {
|
|
39
|
-
href?: undefined;
|
|
40
|
-
linkComponent?: undefined;
|
|
41
|
-
}) | (Omit<ComponentProps<'a'>, 'href'> & {
|
|
42
|
-
/** Renders a real link instead of a `<button>`. */
|
|
43
|
-
href: string;
|
|
44
|
-
/** The link element; a plain `<a>` by default. */
|
|
45
|
-
linkComponent?: SidebarLinkComponent;
|
|
46
|
-
}));
|
|
1
|
+
import { SidebarMenuItemProps } from './sidebar-menu-item.types.js';
|
|
2
|
+
export type { SidebarLinkComponent, SidebarLinkProps, SidebarMenuItemProps, } from './sidebar-menu-item.types.js';
|
|
47
3
|
export declare function SidebarMenuItem(props: SidebarMenuItemProps): import("react").JSX.Element;
|
|
48
|
-
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { LinkComponent, LinkComponentProps } from '../../primitives/link/link-component.js';
|
|
3
|
+
import { SidebarMenuItemBadge } from './sidebar-menu-item-badge.js';
|
|
4
|
+
/**
|
|
5
|
+
* What the link of a `SidebarMenuItem` receives: the anchor's props plus the
|
|
6
|
+
* `href`. It is the neutral {@link LinkComponentProps} contract: spread every
|
|
7
|
+
* prop (the tooltip's handlers, `data-state`, ...) and forward `ref`. A link
|
|
8
|
+
* that forwards only a table's `DataTableLinkProps` is not enough here.
|
|
9
|
+
*/
|
|
10
|
+
export type SidebarLinkProps = LinkComponentProps;
|
|
11
|
+
export type SidebarLinkComponent = LinkComponent;
|
|
12
|
+
export type SidebarMenuItemOwnProps = {
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Shown on hover and focus, to the right of the entry. An entry that shows
|
|
17
|
+
* its label, collapsed (under the icon) or expanded, has none unless one
|
|
18
|
+
* is passed: the label is already on screen. An icon-only entry defaults
|
|
19
|
+
* to its `aria-label`.
|
|
20
|
+
*/
|
|
21
|
+
tooltip?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* A badge on the entry. `true`: a dot. A number: a count, "99+" past 99.
|
|
24
|
+
* `0`, `false` or nothing: none. A string or a node shows as it is. On the
|
|
25
|
+
* collapsed rail it sits on the icon's top-right corner; expanded it ends
|
|
26
|
+
* the row. It is hidden from assistive technology and read in the entry's
|
|
27
|
+
* name instead (see `badgeLabel`).
|
|
28
|
+
*/
|
|
29
|
+
badge?: SidebarMenuItemBadge;
|
|
30
|
+
/**
|
|
31
|
+
* The text the badge adds to the entry's accessible name ("Bulletins, 2
|
|
32
|
+
* new"), already translated. Defaults to a translated "{count} new" for a
|
|
33
|
+
* count, "new activity" for a dot and the text of a string badge; a node
|
|
34
|
+
* has none by default, so give one.
|
|
35
|
+
*/
|
|
36
|
+
badgeLabel?: string;
|
|
37
|
+
};
|
|
38
|
+
export type SidebarMenuItemProps = SidebarMenuItemOwnProps & ((ComponentProps<'button'> & {
|
|
39
|
+
href?: undefined;
|
|
40
|
+
linkComponent?: undefined;
|
|
41
|
+
}) | (Omit<ComponentProps<'a'>, 'href'> & {
|
|
42
|
+
/** Renders a real link instead of a `<button>`. */
|
|
43
|
+
href: string;
|
|
44
|
+
/** The link element; a plain `<a>` by default. */
|
|
45
|
+
linkComponent?: SidebarLinkComponent;
|
|
46
|
+
}));
|
|
47
|
+
export type MenuItemShellProps = SidebarMenuItemOwnProps & {
|
|
48
|
+
className?: string;
|
|
49
|
+
children?: ReactNode;
|
|
50
|
+
'aria-label'?: string;
|
|
51
|
+
'aria-labelledby'?: string;
|
|
52
|
+
badge?: SidebarMenuItemBadge;
|
|
53
|
+
badgeLabel?: string;
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sticky-action-bar.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type ViewportReading = {
|
|
2
|
+
/** `window.innerHeight`: the layout viewport. */
|
|
3
|
+
innerHeight: number;
|
|
4
|
+
/** `visualViewport.height`. */
|
|
5
|
+
height: number;
|
|
6
|
+
/** `visualViewport.offsetTop`. */
|
|
7
|
+
offsetTop: number;
|
|
8
|
+
/** `visualViewport.scale`: a pinch-zoom is not a keyboard. */
|
|
9
|
+
scale: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* How many pixels of the layout viewport's bottom the on-screen keyboard
|
|
13
|
+
* covers: the layout viewport minus the visual one. `0` when the browser
|
|
14
|
+
* resizes the layout itself (`interactive-widget=resizes-content`), when the
|
|
15
|
+
* gap is too small to be a keyboard, and while the page is pinch-zoomed.
|
|
16
|
+
*/
|
|
17
|
+
export declare function keyboardInset({ innerHeight, height, offsetTop, scale, }: ViewportReading): number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type StickyActionBarProps = ComponentProps<'div'> & {
|
|
3
|
+
/**
|
|
4
|
+
* `true` (default): below `md` the bar sticks to the bottom of the scroll
|
|
5
|
+
* box, lifted above the on-screen keyboard and clear of the safe areas;
|
|
6
|
+
* from `md` it is an inline row at the end of the content. `false`: inline
|
|
7
|
+
* everywhere.
|
|
8
|
+
*/
|
|
9
|
+
sticky?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The bar that holds a page's main decision (approve / send back). The last
|
|
13
|
+
* child is the primary action: it takes the room on a phone, the earlier ones
|
|
14
|
+
* keep their size. Give it one filled Button; a second one warns in development.
|
|
15
|
+
* Name it with `aria-label` and it is a `group` landmark.
|
|
16
|
+
*/
|
|
17
|
+
export declare function StickyActionBar({ sticky, className, children, ref, ...props }: StickyActionBarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Keeps `--nxgt-keyboard-inset` on `ref`'s element, and `data-keyboard` while
|
|
4
|
+
* the on-screen keyboard is open, from the visual viewport. The element is
|
|
5
|
+
* written to directly, not through state: a keyboard animates through many
|
|
6
|
+
* resize events and the bar must not re-render with each.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useKeyboardInset(ref: RefObject<HTMLElement | null>): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LinkComponent } from '../../primitives/link/link-component.js';
|
|
3
|
+
import { TocItem, TocLinkComponent } from './toc.js';
|
|
4
|
+
export declare function DefaultLink({ href, className, onClick, children, }: {
|
|
5
|
+
href: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
/** The list of links to a page's headings, the current one marked. */
|
|
11
|
+
export declare function TocList({ items, current, onSelect, Link, }: {
|
|
12
|
+
items: TocItem[];
|
|
13
|
+
current?: string;
|
|
14
|
+
onSelect?: (id: string) => void;
|
|
15
|
+
Link: TocLinkComponent | LinkComponent;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KeyboardEvent } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** The handle's place, 0…100. */
|
|
4
|
+
current: number;
|
|
5
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
/** The guide line and the slider handle drawn over the two layers. */
|
|
8
|
+
export declare function CompareSliderHandle({ current, onKeyDown }: Props): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { KeyboardEvent, PointerEvent } from 'react';
|
|
2
|
+
type Options = {
|
|
3
|
+
position?: number;
|
|
4
|
+
defaultPosition: number;
|
|
5
|
+
onPositionChange?: (position: number) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* The handle's place (controlled or not), its pointer drag and arrow keys.
|
|
9
|
+
* The place reaches the markup as the `--compare-at` custom property.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useCompareSlider({ position, defaultPosition, onPositionChange, }: Options): {
|
|
12
|
+
rootRef: import('react').RefObject<HTMLDivElement | null>;
|
|
13
|
+
current: number;
|
|
14
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
15
|
+
rootHandlers: {
|
|
16
|
+
onPointerDown: (event: PointerEvent<HTMLDivElement>) => void;
|
|
17
|
+
onPointerMove: (event: PointerEvent<HTMLDivElement>) => void;
|
|
18
|
+
onPointerUp: () => void;
|
|
19
|
+
onPointerCancel: () => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -8,5 +8,5 @@ export type FileListFieldProps = Omit<MultipleUploadProps, 'mode' | 'value'> & {
|
|
|
8
8
|
required?: boolean;
|
|
9
9
|
empty?: ReactNode;
|
|
10
10
|
};
|
|
11
|
-
export declare function FileListField(
|
|
11
|
+
export declare function FileListField(props: FileListFieldProps): import("react").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { useFileDragDrop } from '../../upload/network-upload-field/use-file-drag-drop.js';
|
|
3
|
+
type Props = {
|
|
4
|
+
/** The field's hidden file input, opened on click or Enter / Space. */
|
|
5
|
+
inputRef: RefObject<HTMLInputElement | null>;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
invalid?: boolean;
|
|
8
|
+
dragActive: boolean;
|
|
9
|
+
dragHandlers: ReturnType<typeof useFileDragDrop>['dragHandlers'];
|
|
10
|
+
};
|
|
11
|
+
/** The drop zone under the list. */
|
|
12
|
+
export declare function FileListDropzone({ inputRef, disabled, invalid, dragActive, dragHandlers, }: Props): import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
id: string;
|
|
4
|
+
ref: Ref<HTMLInputElement>;
|
|
5
|
+
accept?: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
onFiles: (files: File[]) => void;
|
|
8
|
+
};
|
|
9
|
+
/** The field's hidden multi-file input, opened by the drop zone. */
|
|
10
|
+
export declare function FileListInput({ id, ref, accept, disabled, onFiles }: Props): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { NetworkUploadDisplayItem } from '../../upload/network-upload-field/network-upload-item.js';
|
|
3
|
+
type Props = {
|
|
4
|
+
items: NetworkUploadDisplayItem[];
|
|
5
|
+
accept?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
empty?: ReactNode;
|
|
8
|
+
onReplace: (item: NetworkUploadDisplayItem, file: File) => void;
|
|
9
|
+
onRetry: (item: NetworkUploadDisplayItem) => void;
|
|
10
|
+
onRemove: (item: NetworkUploadDisplayItem) => void;
|
|
11
|
+
};
|
|
12
|
+
/** The field's rows, or its empty message. */
|
|
13
|
+
export declare function FileListItems({ items, empty, ...row }: Props): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NetworkUploadDisplayItem } from '../../upload/network-upload-field/network-upload-item.js';
|
|
2
|
+
type Props = {
|
|
3
|
+
item: NetworkUploadDisplayItem;
|
|
4
|
+
accept?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onReplace: (item: NetworkUploadDisplayItem, file: File) => void;
|
|
7
|
+
onRetry: (item: NetworkUploadDisplayItem) => void;
|
|
8
|
+
onRemove: (item: NetworkUploadDisplayItem) => void;
|
|
9
|
+
};
|
|
10
|
+
/** A row's trailing buttons: retry, download, replace (with its hidden input) and remove. */
|
|
11
|
+
export declare function FileListRowActions({ item, accept, disabled, onReplace, onRetry, onRemove, }: Props): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FileListFieldProps } from './file-list-field.js';
|
|
2
|
+
/** The ids, the accessible group and the upload state behind a file list field. */
|
|
3
|
+
export declare function useFileListField({ required, value, className: _className, empty: _empty, ...props }: FileListFieldProps): {
|
|
4
|
+
inputId: string;
|
|
5
|
+
inputRef: import('react').RefObject<HTMLInputElement | null>;
|
|
6
|
+
helperId: string;
|
|
7
|
+
group: {
|
|
8
|
+
labelId: string;
|
|
9
|
+
groupProps: {
|
|
10
|
+
role: "group";
|
|
11
|
+
'aria-labelledby': string | undefined;
|
|
12
|
+
'aria-describedby': string | undefined;
|
|
13
|
+
};
|
|
14
|
+
hint: import("react").JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
upload: {
|
|
17
|
+
displayItems: import('../upload/network-upload-field/network-upload-item.js').NetworkUploadDisplayItem[];
|
|
18
|
+
showEmptyZone: boolean;
|
|
19
|
+
atCapacity: boolean;
|
|
20
|
+
zoneDisabled: boolean;
|
|
21
|
+
isDragActive: boolean;
|
|
22
|
+
dragHandlers: {
|
|
23
|
+
onDragEnter: (event: import('react').DragEvent) => void;
|
|
24
|
+
onDragOver: (event: import('react').DragEvent) => void;
|
|
25
|
+
onDragLeave: (event: import('react').DragEvent) => void;
|
|
26
|
+
onDrop: (event: import('react').DragEvent) => void;
|
|
27
|
+
};
|
|
28
|
+
handleFilesSelected: (files: File[]) => void;
|
|
29
|
+
handleItemReplace: (item: import('../upload/network-upload-field/network-upload-item.js').NetworkUploadDisplayItem, file: File) => void;
|
|
30
|
+
handleItemRetry: (item: import('../upload/network-upload-field/network-upload-item.js').NetworkUploadDisplayItem) => void;
|
|
31
|
+
handleItemRemove: (item: import('../upload/network-upload-field/network-upload-item.js').NetworkUploadDisplayItem) => void;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* theme's tonal colours were dark on black in light mode, so its buttons are
|
|
4
|
-
* light on a translucent black scrim.
|
|
5
|
-
*/
|
|
6
|
-
export declare const VIEWER_BUTTON = "bg-black/45 text-white backdrop-blur-sm hover:bg-black/60 focus:bg-black/60 active:bg-black/70 [&_svg]:stroke-white [&_svg]:data-[slot=icon]:text-white";
|
|
1
|
+
import { VIEWER_BUTTON } from './gallery-viewer-button.js';
|
|
2
|
+
export { VIEWER_BUTTON };
|
|
7
3
|
/** The lightbox's top row: the status, zoom, download, repeat and close. */
|
|
8
4
|
export declare function GalleryChromeToolbar(): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GalleryShape } from '../gallery-shape-names.js';
|
|
2
|
+
import { GalleryItem } from '../types.js';
|
|
3
|
+
import { GalleryMorph } from '../use-gallery-view-transition.js';
|
|
4
|
+
type Props = {
|
|
5
|
+
item: GalleryItem;
|
|
6
|
+
index: number;
|
|
7
|
+
shape: GalleryShape | undefined;
|
|
8
|
+
/** The tile wears the shared View Transition name. */
|
|
9
|
+
named: boolean;
|
|
10
|
+
/** The tile is the current one. */
|
|
11
|
+
current: boolean;
|
|
12
|
+
selectOnly: boolean;
|
|
13
|
+
morph: GalleryMorph;
|
|
14
|
+
};
|
|
15
|
+
/** A tile's picture: the morph name, the shaped frame and the media. */
|
|
16
|
+
export declare function GalleryTileMedia({ item, index, shape, named, current, selectOnly, morph, }: Props): import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The viewer is always on black (or over the picture), in either theme: the
|
|
3
|
+
* theme's tonal colours were dark on black in light mode, so its buttons are
|
|
4
|
+
* light on a translucent black scrim.
|
|
5
|
+
*/
|
|
6
|
+
export declare const VIEWER_BUTTON = "bg-black/45 text-white backdrop-blur-sm hover:bg-black/60 focus:bg-black/60 active:bg-black/70 [&_svg]:stroke-white [&_svg]:data-[slot=icon]:text-white";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GalleryItem } from './types.js';
|
|
2
|
+
/** The moves between items and the download of the current one. */
|
|
3
|
+
export declare function useGalleryNavigation(items: GalleryItem[], state: {
|
|
4
|
+
currentIndex: number;
|
|
5
|
+
}, sliceActions: {
|
|
6
|
+
next: (arg: {
|
|
7
|
+
length: number;
|
|
8
|
+
}) => void;
|
|
9
|
+
prev: (arg: {
|
|
10
|
+
length: number;
|
|
11
|
+
}) => void;
|
|
12
|
+
setIndex: (index: number) => void;
|
|
13
|
+
}): {
|
|
14
|
+
next: () => void;
|
|
15
|
+
prev: () => void;
|
|
16
|
+
select: (index: number) => void;
|
|
17
|
+
downloadCurrent: () => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GalleryProps } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Keeps the chrome state and the props in step: a controlled index or open
|
|
4
|
+
* flag drives the slice, an index past the end is pulled back, and the
|
|
5
|
+
* `on*Change` callbacks fire for every change but the first render.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useGallerySync(props: GalleryProps, state: {
|
|
8
|
+
currentIndex: number;
|
|
9
|
+
lightboxOpen: boolean;
|
|
10
|
+
selectedIds: string[];
|
|
11
|
+
}, sliceActions: {
|
|
12
|
+
setIndex: (index: number) => void;
|
|
13
|
+
openLightbox: () => void;
|
|
14
|
+
closeLightbox: () => void;
|
|
15
|
+
}): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ButtonVariant } from '../../../actions/button/button.js';
|
|
2
|
+
type Props = {
|
|
3
|
+
error: string | null;
|
|
4
|
+
cancelVariant: ButtonVariant;
|
|
5
|
+
onCancel?: () => void;
|
|
6
|
+
canApply: boolean;
|
|
7
|
+
saving: boolean;
|
|
8
|
+
onApply: () => void;
|
|
9
|
+
};
|
|
10
|
+
/** The error line and the Cancel / Apply buttons. */
|
|
11
|
+
export declare function ImageCropperActions({ error, cancelVariant, onCancel, canApply, saving, onApply, }: Props): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
zoom: number;
|
|
3
|
+
onZoomChange: (zoom: number) => void;
|
|
4
|
+
onRotate: (delta: number) => void;
|
|
5
|
+
};
|
|
6
|
+
/** The zoom slider and the two rotate buttons under the crop frame. */
|
|
7
|
+
export declare function ImageCropperControls({ zoom, onZoomChange, onRotate }: Props): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { ImageCropShape } from '../types.js';
|
|
3
|
+
import { useImageCropper } from '../use-image-cropper.js';
|
|
4
|
+
type Props = {
|
|
5
|
+
frameRef: RefObject<HTMLDivElement | null>;
|
|
6
|
+
src: string;
|
|
7
|
+
cropShape: ImageCropShape;
|
|
8
|
+
state: ReturnType<typeof useImageCropper>;
|
|
9
|
+
};
|
|
10
|
+
/** The crop frame: the react-easy-crop surface and the free-aspect resize handles. */
|
|
11
|
+
export declare function ImageCropperStage({ frameRef, src, cropShape, state }: Props): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { Area, Point } from 'react-easy-crop';
|
|
3
|
+
import { CropSize } from './crop-resize-handles.js';
|
|
4
|
+
import { ImageCropAspectId, ImageCropResult } from './types.js';
|
|
5
|
+
type Options = {
|
|
6
|
+
src: string;
|
|
7
|
+
aspect?: number;
|
|
8
|
+
fileName?: string;
|
|
9
|
+
onCrop: (result: ImageCropResult) => void;
|
|
10
|
+
frameRef: RefObject<HTMLDivElement | null>;
|
|
11
|
+
};
|
|
12
|
+
/** The cropper's crop, zoom, rotation and aspect state, and the apply step. */
|
|
13
|
+
export declare function useImageCropper({ src, aspect: aspectProp, fileName, onCrop, frameRef, }: Options): {
|
|
14
|
+
crop: Point;
|
|
15
|
+
setCrop: import('react').Dispatch<import('react').SetStateAction<Point>>;
|
|
16
|
+
zoom: number;
|
|
17
|
+
setZoom: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
18
|
+
rotation: number;
|
|
19
|
+
setRotation: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
20
|
+
aspectId: ImageCropAspectId;
|
|
21
|
+
setAspectId: import('react').Dispatch<import('react').SetStateAction<ImageCropAspectId>>;
|
|
22
|
+
cropSize: CropSize | null;
|
|
23
|
+
setCropSize: import('react').Dispatch<import('react').SetStateAction<CropSize | null>>;
|
|
24
|
+
area: Area | null;
|
|
25
|
+
setArea: import('react').Dispatch<import('react').SetStateAction<Area | null>>;
|
|
26
|
+
isSaving: boolean;
|
|
27
|
+
error: string | null;
|
|
28
|
+
frameSize: CropSize | null;
|
|
29
|
+
isFree: boolean;
|
|
30
|
+
aspect: number;
|
|
31
|
+
keepCropSize: (next: CropSize) => void;
|
|
32
|
+
apply: () => Promise<void>;
|
|
33
|
+
};
|
|
34
|
+
export {};
|