@nxgt/material 3.57.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 +16 -0
- package/README.md +2 -1
- package/dist/{async-slice-B3RMgJUn.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-hnUZpzYu.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-kplPa8ZV.js → chip-1XnyX4bd.js} +2 -2
- package/dist/{code-editor-Ba61Cd-g.js → code-editor-1Y7ykpam.js} +307 -277
- package/dist/code-editor.js +14 -14
- package/dist/{code-language-items-CsDC4Ky4.js → code-language-items-Clbln9C6.js} +2 -2
- package/dist/{components-BgckuX2C.js → components-Cj3lJ_uK.js} +28523 -25863
- package/dist/components.js +26 -26
- package/dist/{convert-XAkWyO8-.js → convert-7g-F5cNf.js} +1 -1
- package/dist/{dialog-DS8O4Kkb.js → dialog-Cx_xWUVR.js} +4 -4
- package/dist/dnd.js +1 -1
- package/dist/draw-animate.js +1 -1
- package/dist/{dropdown-menu-CvVQJpsn.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-BJvicDmr.js → escape-owner-Ch_-kDLw.js} +1 -1
- package/dist/{field-blur-Cnjk0o9A.js → field-blur-BJjUHsgJ.js} +1 -1
- package/dist/{field-blur-context-CYlx9KnB.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-DW4XnExA.js → hover-card-CVmY0Z44.js} +2 -2
- package/dist/{i18n-provider-DBr59j1p.js → i18n-provider-C0uLEv0G.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-4FMy66AC.js → icon-badge-bAQQK3ls.js} +3 -3
- package/dist/{icon-button-QF7smCoV.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-timer.d.ts +5 -3
- 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 +4 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +5 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +4 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +5 -1
- package/dist/lib/i18n/resources/resources.d.ts +8 -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-DVZJVdxD.js → public-B42vT7ee.js} +362 -332
- package/dist/{render-json-BOhvPnSv.js → render-json-COvAkihK.js} +3 -3
- package/dist/{rich-code-block-DL5-9JIi.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-DrpBwx75.js → sortable-provider-Csby6WpB.js} +2 -2
- package/dist/{spinner-D4XGdse6.js → spinner-DC35lhqx.js} +3 -1
- package/dist/{stored-language-C89mti-z.js → stored-language-BIxd7uiP.js} +6 -2
- package/dist/theme-picker.js +3 -3
- package/dist/{theme-toggle-BFhqLmgx.js → theme-toggle-BWdNFLvB.js} +1 -1
- package/dist/themes.js +1 -1
- package/dist/{toolbar-items-SZ5pyAFz.js → toolbar-items-oqmVfnfO.js} +578 -567
- package/dist/{translate-material-BkqnImND.js → translate-material-Bgtjuh85.js} +2 -2
- package/dist/{translator-B5fId5Rw.js → translator-BrZv1U54.js} +1 -1
- package/dist/{use-chat-composer-BG5B4DGB.js → use-chat-composer-Dj0TP_B1.js} +8456 -8177
- package/dist/{use-heading-spy-51GQw8tH.js → use-heading-spy-1Dqxj_JQ.js} +1 -1
- package/dist/{use-material-translation-BQOr4Oks.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 +5 -4
- 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-4gmbCkcw.js +0 -117
- package/dist/use-shape-morph-DXdy2X5g.js +0 -35
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "./i18n-provider-
|
|
1
|
+
import { r as e } from "./i18n-provider-C0uLEv0G.js";
|
|
2
2
|
import { _ as t, g as n, h as r, n as i, v as a, y as o } from "./number.utils-BG_eEt5g.js";
|
|
3
3
|
import { useCallback as s, useEffect as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
4
4
|
import { busySettler as f, busySettler as p, createSubmitGuard as m, createSubmitGuard as h } from "@nxgt/material-core/submit-guard";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as e } from "./i18n-provider-
|
|
2
|
-
import { t } from "./translate-material-
|
|
1
|
+
import { r as e } from "./i18n-provider-C0uLEv0G.js";
|
|
2
|
+
import { t } from "./translate-material-Bgtjuh85.js";
|
|
3
3
|
import { useCallback as n } from "react";
|
|
4
4
|
//#region lib/i18n/use-material-translation.ts
|
|
5
5
|
function r() {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { morph as e, morphAt as t, toSvgPath as n } from "@nxgt/material-core/shapes";
|
|
2
|
+
import { useLayoutEffect as r, useRef as i } from "react";
|
|
3
|
+
//#region lib/components/ui/display/shape/use-shape-morph.ts
|
|
4
|
+
var a = .8, o = 14, s = o * Math.sqrt(1 - a * a);
|
|
5
|
+
function c(e) {
|
|
6
|
+
let t = e / 1e3;
|
|
7
|
+
return 1 - Math.exp(-.8 * o * t) * (Math.cos(s * t) + a * o / s * Math.sin(s * t));
|
|
8
|
+
}
|
|
9
|
+
var l = () => typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
10
|
+
function u(a, o, s) {
|
|
11
|
+
let u = i(o);
|
|
12
|
+
r(() => {
|
|
13
|
+
let r = a.current, i = u.current;
|
|
14
|
+
if (!r || i === o || !s || l()) {
|
|
15
|
+
r && i !== o && r.setAttribute("d", n(o)), u.current = o;
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
let d = e(i, o), f = n(o), p = 0, m = performance.now(), h = (e) => {
|
|
19
|
+
let i = e - m;
|
|
20
|
+
if (i >= 520) {
|
|
21
|
+
u.current = o, r.setAttribute("d", f);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
let a = t(d, c(i));
|
|
25
|
+
u.current = a, r.setAttribute("d", n(a)), p = requestAnimationFrame(h);
|
|
26
|
+
};
|
|
27
|
+
return r.setAttribute("d", n(d.from)), p = requestAnimationFrame(h), () => cancelAnimationFrame(p);
|
|
28
|
+
}, [
|
|
29
|
+
a,
|
|
30
|
+
o,
|
|
31
|
+
s
|
|
32
|
+
]);
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { u as n, c as t };
|
|
@@ -172,15 +172,7 @@ var mt = D.create({
|
|
|
172
172
|
return ["div", w(e)];
|
|
173
173
|
},
|
|
174
174
|
...A(Be, ft)
|
|
175
|
-
}), ht =
|
|
176
|
-
function _t(e) {
|
|
177
|
-
if (typeof e != "string") return;
|
|
178
|
-
let t = e.replace(/[\u0000-\u001f\u007f\s]+/g, "");
|
|
179
|
-
if (t) return ht.test(t) ? e.trim() : gt.test(t) ? void 0 : e.trim();
|
|
180
|
-
}
|
|
181
|
-
//#endregion
|
|
182
|
-
//#region lib/components/ui/widgets/editor/extensions/custom/shared/icon-options.ts
|
|
183
|
-
var vt = {
|
|
175
|
+
}), ht = {
|
|
184
176
|
sparkles: Pe,
|
|
185
177
|
rocket: je,
|
|
186
178
|
star: Fe,
|
|
@@ -195,34 +187,42 @@ var vt = {
|
|
|
195
187
|
"trending-up": Le,
|
|
196
188
|
info: Ae,
|
|
197
189
|
settings: Me
|
|
198
|
-
},
|
|
199
|
-
function
|
|
190
|
+
}, gt = Object.keys(ht), _t = "sparkles";
|
|
191
|
+
function vt(e) {
|
|
200
192
|
return e.split("-").map((e) => e[0].toUpperCase() + e.slice(1)).join(" ");
|
|
201
193
|
}
|
|
202
|
-
function
|
|
203
|
-
return
|
|
194
|
+
function yt(e) {
|
|
195
|
+
return ht[typeof e == "string" && gt.includes(e) ? e : _t];
|
|
204
196
|
}
|
|
205
197
|
//#endregion
|
|
206
198
|
//#region lib/components/ui/widgets/editor/extensions/custom/action-card/const.ts
|
|
207
|
-
var
|
|
199
|
+
var bt = "actionCard", xt = [{
|
|
208
200
|
value: "sm",
|
|
209
201
|
label: "Small"
|
|
210
202
|
}, {
|
|
211
203
|
value: "md",
|
|
212
204
|
label: "Medium"
|
|
213
|
-
}],
|
|
205
|
+
}], St = [{
|
|
214
206
|
id: "card-1",
|
|
215
|
-
icon:
|
|
207
|
+
icon: _t,
|
|
216
208
|
title: "Title",
|
|
217
209
|
description: "Description",
|
|
218
210
|
href: ""
|
|
219
211
|
}, {
|
|
220
212
|
id: "card-2",
|
|
221
|
-
icon:
|
|
213
|
+
icon: _t,
|
|
222
214
|
title: "Title",
|
|
223
215
|
description: "Description",
|
|
224
216
|
href: ""
|
|
225
|
-
}],
|
|
217
|
+
}], Ct = /^(https?:|mailto:|tel:)/i, wt = /^[a-z][a-z0-9+.-]*:/i;
|
|
218
|
+
function Tt(e) {
|
|
219
|
+
if (typeof e != "string") return;
|
|
220
|
+
let t = e.replace(/[\u0000-\u001f\u007f\s]+/g, "");
|
|
221
|
+
if (t) return Ct.test(t) ? e.trim() : wt.test(t) ? void 0 : e.trim();
|
|
222
|
+
}
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region lib/components/ui/widgets/editor/format/codecs/cards.ts
|
|
225
|
+
var Et = /^\[((?:\\.|[^\]])*)\]\(([^)\s]*)\)$/, Dt = (e) => Array.isArray(e) ? e : [], Ot = (e) => j(e) ? [` ${j(e).replace(/\n/g, " ")}`] : [], kt = {
|
|
226
226
|
write: (e) => {
|
|
227
227
|
let t = new Set((Array.isArray(e.value) ? e.value : []).map(String));
|
|
228
228
|
return {
|
|
@@ -279,23 +279,23 @@ var Ct = "actionCard", wt = [{
|
|
|
279
279
|
//#endregion
|
|
280
280
|
//#region lib/components/ui/widgets/editor/extensions/custom/action-card/spec.ts
|
|
281
281
|
function jt(e) {
|
|
282
|
-
if (!e) return
|
|
282
|
+
if (!e) return St;
|
|
283
283
|
try {
|
|
284
284
|
let t = JSON.parse(e);
|
|
285
|
-
return Array.isArray(t) ? t :
|
|
285
|
+
return Array.isArray(t) ? t : St;
|
|
286
286
|
} catch {
|
|
287
|
-
return
|
|
287
|
+
return St;
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
var Mt = D.create({
|
|
291
|
-
name:
|
|
291
|
+
name: bt,
|
|
292
292
|
group: "block",
|
|
293
293
|
atom: !0,
|
|
294
294
|
draggable: !0,
|
|
295
295
|
addAttributes() {
|
|
296
296
|
return {
|
|
297
297
|
items: {
|
|
298
|
-
default:
|
|
298
|
+
default: St,
|
|
299
299
|
parseHTML: (e) => jt(e.getAttribute("data-action-card-items")),
|
|
300
300
|
renderHTML: (e) => ({ "data-action-card-items": JSON.stringify(e.items) })
|
|
301
301
|
},
|
|
@@ -312,7 +312,7 @@ var Mt = D.create({
|
|
|
312
312
|
renderHTML({ HTMLAttributes: e }) {
|
|
313
313
|
return ["div", w(e)];
|
|
314
314
|
},
|
|
315
|
-
...A(
|
|
315
|
+
...A(bt, At)
|
|
316
316
|
}), Nt = "callout", Pt = {
|
|
317
317
|
info: {
|
|
318
318
|
label: "Info",
|
|
@@ -4583,12 +4583,12 @@ var Ls = D.create({
|
|
|
4583
4583
|
value: "option-1",
|
|
4584
4584
|
title: "Option 1",
|
|
4585
4585
|
description: "",
|
|
4586
|
-
icon:
|
|
4586
|
+
icon: _t
|
|
4587
4587
|
}, {
|
|
4588
4588
|
value: "option-2",
|
|
4589
4589
|
title: "Option 2",
|
|
4590
4590
|
description: "",
|
|
4591
|
-
icon:
|
|
4591
|
+
icon: _t
|
|
4592
4592
|
}];
|
|
4593
4593
|
//#endregion
|
|
4594
4594
|
//#region lib/components/ui/widgets/editor/extensions/custom/select-card/spec.ts
|
|
@@ -6778,4 +6778,4 @@ var ru = nu(Ll), iu = nu(Rl), au = E.create({
|
|
|
6778
6778
|
})
|
|
6779
6779
|
});
|
|
6780
6780
|
//#endregion
|
|
6781
|
-
export { Ve as $, fr as A, It as B, Di as C, mr as D, vr as E, $t as F,
|
|
6781
|
+
export { Ve as $, fr as A, It as B, Di as C, mr as D, vr as E, $t as F, xt as G, Ft as H, Ut as I, gt as J, St as K, zt as L, Ln as M, nr as N, dr as O, Xt as P, mt as Q, Bt as R, Ei as S, xr as T, Mt as U, Pt as V, Tt as W, vt as X, ht as Y, yt as Z, Ps as _, tu as a, ki as b, Js as c, Us as d, Bs as f, Ns as g, Fs as h, iu as i, Fn as j, ur as k, Ks as l, Ls as m, au as n, zl as o, zs as p, _t as q, ru as r, Z as s, gu as t, Gs as u, js as v, Cr as w, Oi as x, Ts as y, Rt as z };
|
|
@@ -17,7 +17,7 @@ centre.
|
|
|
17
17
|
| <img src="../previews/feedback-status-progress.webp" width="96" alt=""> | [Progress](#progress) | Material 3 Expressive linear bar, circular ring and labelled progress field, flat or wavy |
|
|
18
18
|
| <img src="../previews/feedback-status-scrollprogress.webp" width="96" alt=""> | [ScrollProgress](#scrollprogress) | Hairline tracking the window or a scrollable element |
|
|
19
19
|
| <img src="../previews/feedback-status-stepdots.webp" width="96" alt=""> | [StepDots](#stepdots) | Segmented step progress, each step coloured by its state |
|
|
20
|
-
| <img src="../previews/feedback-status-countdowntimer.webp" width="96" alt=""> | [CountdownTimer](#countdowntimer) | Countdown clock with a ring, amber then red as time runs out, with an icon and words
|
|
20
|
+
| <img src="../previews/feedback-status-countdowntimer.webp" width="96" alt=""> | [CountdownTimer](#countdowntimer) | Countdown clock with a ring, amber then red as time runs out, with an icon and words when time is low |
|
|
21
21
|
| <img src="../previews/feedback-status-spinner.webp" width="96" alt=""> | [Spinner](#spinner) | Loading spinner in several styles and colours |
|
|
22
22
|
| <img src="../previews/feedback-status-loadingindicator.webp" width="96" alt=""> | [LoadingIndicator](#loadingindicator) | Material 3 Expressive's loading indicator: a shape morphing while it turns |
|
|
23
23
|
| <img src="../previews/feedback-status-typingindicator.webp" width="96" alt=""> | [TypingIndicator](#typingindicator) | Three dots in a wave: someone is writing |
|
|
@@ -747,7 +747,8 @@ import { CountdownTimer } from '@nxgt/material/components';
|
|
|
747
747
|
|
|
748
748
|
<CountdownTimer duration={300} onExpire={() => submit()} />;
|
|
749
749
|
|
|
750
|
-
// Past `warningAt` it shows a clock icon and "Little time left"
|
|
750
|
+
// Past `warningAt` it shows a clock icon and "Little time left" ("Almost out of time" past
|
|
751
|
+
// `criticalAt`); change (both tones) or hide the words:
|
|
751
752
|
<CountdownTimer duration={300} warningText="Hurry up" />;
|
|
752
753
|
<CountdownTimer duration={300} warningText={false} />;
|
|
753
754
|
```
|
|
@@ -759,12 +760,12 @@ import { CountdownTimer } from '@nxgt/material/components';
|
|
|
759
760
|
| `onExpire` | `() => void` | — | called once, at zero |
|
|
760
761
|
| `warningAt` / `criticalAt` | `number` | a quarter (≤ 60 s) / a tenth (≤ 10 s) | the seconds left when it turns amber / red |
|
|
761
762
|
| `label` | `string` | `'Time remaining'` | its name |
|
|
762
|
-
| `warningText` | `string \| false` | `'Little time left'` | the words shown with a clock icon in the warning
|
|
763
|
+
| `warningText` | `string \| false` | `'Little time left'` / `'Almost out of time'` | the words shown with a clock icon in the warning and critical tones, so low time is not told by colour alone; a string replaces both phrases; `false` hides them |
|
|
763
764
|
| `size` | `'sm' \| 'md'` | `'md'` | 28 or 36 px high |
|
|
764
765
|
|
|
765
766
|
It ticks on the client only: the server renders the full time. The clock is a
|
|
766
767
|
`role="timer"`; a polite live region speaks only when a threshold is crossed
|
|
767
|
-
("Little time left. 1:00 left", the phrase being `warningText`) and when the time is up, never every second. `formatClock` and
|
|
768
|
+
("Little time left. 1:00 left", the phrase being `warningText` or the critical one) and when the time is up, never every second. `formatClock` and
|
|
768
769
|
`countdownTone` are exported too, and so is the clock itself as the
|
|
769
770
|
[`useCountdown`](../guides/helpers.md#usecountdown) hook (`@nxgt/material/hooks`),
|
|
770
771
|
for a button that waits without a ring.
|
|
@@ -12,6 +12,7 @@ documentation-site shell. Everything is imported from
|
|
|
12
12
|
| <img src="../previews/navigation-layout-authcard.webp" width="96" alt=""> | [AuthCard](#authcard) | Signed-out page frame: one `main`, a centred card, its title the `h1` |
|
|
13
13
|
| <img src="../previews/navigation-layout-sidebar.webp" width="96" alt=""> | [Sidebar](#sidebar) | Collapsible navigation sidebar |
|
|
14
14
|
| <img src="../previews/navigation-layout-topappbar.webp" width="96" alt=""> | [TopAppBar, BottomAppBar](#topappbar) | Top and bottom bars |
|
|
15
|
+
| <img src="../previews/navigation-layout-stickyactionbar.webp" width="96" alt=""> | [StickyActionBar](#stickyactionbar) | A page's main decision, stuck to the bottom on a phone, inline from `md` |
|
|
15
16
|
| <img src="../previews/navigation-layout-breadcrumb.webp" width="96" alt=""> | [Breadcrumb](#breadcrumb) | Breadcrumb primitives |
|
|
16
17
|
| <img src="../previews/navigation-layout-listdetailslayout.webp" width="96" alt=""> | [ListDetailsLayout, PaneLayout, ThreadLayout](#listdetailslayout) | Page layouts that adapt to phones |
|
|
17
18
|
| <img src="../previews/navigation-layout-responsivegrid.webp" width="96" alt=""> | [ResponsiveGrid](#responsivegrid) | Container-query grid, 1 to 5 columns, or `auto-fill` columns by a minimum tile width (`minItem`) |
|
|
@@ -343,6 +344,52 @@ the one with `data-state="active"`.
|
|
|
343
344
|
|
|
344
345
|
---
|
|
345
346
|
|
|
347
|
+
## StickyActionBar
|
|
348
|
+
|
|
349
|
+

|
|
350
|
+
|
|
351
|
+
The bar that holds a page's main decision (approve / send back). On a phone it
|
|
352
|
+
sticks to the bottom of the scroll box, above the on-screen keyboard and clear
|
|
353
|
+
of the safe areas; from `md` (768px) it is an inline row after the content.
|
|
354
|
+
|
|
355
|
+
```tsx
|
|
356
|
+
import { Button, StickyActionBar } from '@nxgt/material/components';
|
|
357
|
+
|
|
358
|
+
<main>
|
|
359
|
+
{/* long content */}
|
|
360
|
+
<StickyActionBar aria-label="Review decision">
|
|
361
|
+
<Button variant="outlined">Send back</Button>
|
|
362
|
+
<Button>Approve</Button>
|
|
363
|
+
</StickyActionBar>
|
|
364
|
+
</main>
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
Put it last in the scrolling content: it is `position: sticky`, not `fixed`, so
|
|
368
|
+
it takes its own room (nothing hides behind it) and rests inline at the end of
|
|
369
|
+
the page. It takes a `div`'s props.
|
|
370
|
+
|
|
371
|
+
- **One primary action.** The last child is the primary: on a phone it takes
|
|
372
|
+
the room the others leave, which keep their size. Give it the one filled
|
|
373
|
+
`Button`; a second filled `Button` among the children warns once in
|
|
374
|
+
development, make the others `outlined` or `tonal`.
|
|
375
|
+
- **Safe areas.** Under `viewport-fit=cover` the bar pads clear of
|
|
376
|
+
`env(safe-area-inset-left | right | bottom)`, as classes.
|
|
377
|
+
- **Keyboard.** From the visual viewport (`visualViewport`), the bar rises by
|
|
378
|
+
the height the on-screen keyboard covers (`--nxgt-keyboard-inset` on the bar,
|
|
379
|
+
`data-keyboard="open"` while it is open) and drops the bottom safe-area
|
|
380
|
+
padding, which the keyboard covers. A browser that resizes the layout itself
|
|
381
|
+
(`interactive-widget=resizes-content`) needs no lift, and none is applied.
|
|
382
|
+
Pinch-zoom is not treated as a keyboard.
|
|
383
|
+
- **Name.** With `aria-label` or `aria-labelledby` the bar is a `group`.
|
|
384
|
+
|
|
385
|
+
| Prop | Type | Default | Effect |
|
|
386
|
+
| --- | --- | --- | --- |
|
|
387
|
+
| `sticky` | `boolean` | `true` | `false`: inline on a phone too |
|
|
388
|
+
|
|
389
|
+
**Storybook:** `Navigation & layout/StickyActionBar` · **Vue:** not yet
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
346
393
|
## Breadcrumb
|
|
347
394
|
|
|
348
395
|

|
|
@@ -2412,7 +2412,7 @@ French bundle — see [i18n](../guides/i18n.md).
|
|
|
2412
2412
|
| `onComplete` | `(result: QuizResult) => void` | — | `{ correct, total, percent, answers, timedOut }`, once per results screen |
|
|
2413
2413
|
| `onAnswersChange` / `onIndexChange` | callbacks | — | follow progress |
|
|
2414
2414
|
| `QuestionCard` `revealed` | `boolean` | `false` | marks right / wrong and shows the verdict and `explanation` |
|
|
2415
|
-
| `QuestionCard` `verdict` | `'correct' \| 'incorrect' \| 'pending'` | — | the server's verdict, shown as given (word and icon, never colour alone); reveals the card. `question.correct` is optional and only highlights the right choices. Without it, `revealed` compares in the browser as before |
|
|
2415
|
+
| `QuestionCard` `verdict` | `'correct' \| 'incorrect' \| 'pending' \| 'unanswered'` | — | the server's verdict, shown as given (word and icon, never colour alone); reveals the card; `unanswered` is a blank question ("No answer", no value shown, the correct answer and `explanation` shown, points read 0). `question.correct` is optional and only highlights the right choices. Without it, `revealed` compares in the browser as before |
|
|
2416
2416
|
| `QuestionCard` `points` / `feedback` | `{ awarded, possible }` / `string` | — | points earned and a grader's remark, in the verdict banner (with `verdict`) |
|
|
2417
2417
|
| `Question` `media` | `{ src, alt?, kind?, type?, name? }` | — | an image (default), audio (`kind: 'audio'` or `type: 'audio/*'`, an `AudioPlayer`) or a document link (any other `type`, a `FilePreview`); `name` (else `alt`) is the text alternative |
|
|
2418
2418
|
| `QuestionCard` `value` / `onValueChange` | `QuestionAnswer` | — | controlled answer |
|
|
@@ -2424,7 +2424,7 @@ A server-graded answer, shown as given (no comparison in the browser):
|
|
|
2424
2424
|
<QuestionCard
|
|
2425
2425
|
question={{ id: 'q1', kind: 'text', prompt: 'Explain X' }}
|
|
2426
2426
|
value="my answer"
|
|
2427
|
-
verdict="incorrect" // or 'correct' | 'pending'
|
|
2427
|
+
verdict="incorrect" // or 'correct' | 'pending' | 'unanswered'
|
|
2428
2428
|
points={{ awarded: 2, possible: 3 }}
|
|
2429
2429
|
feedback="Good, but cite a source"
|
|
2430
2430
|
/>
|
|
@@ -2436,7 +2436,7 @@ A server-graded answer, shown as given (no comparison in the browser):
|
|
|
2436
2436
|
|
|
2437
2437
|
The numbered questions of a quiz or exam player: jump to one, see the current
|
|
2438
2438
|
one and which are answered or flagged. Import it from
|
|
2439
|
-
`@nxgt/material/
|
|
2439
|
+
`@nxgt/material/components`.
|
|
2440
2440
|
|
|
2441
2441
|
```tsx
|
|
2442
2442
|
<QuestionNavigator
|
package/docs/guides/data-grid.md
CHANGED
|
@@ -957,12 +957,22 @@ re-renders every item.
|
|
|
957
957
|
|
|
958
958
|
```tsx
|
|
959
959
|
const renderItem = (row: Student, state: DataGridRowState) => (
|
|
960
|
-
<span>
|
|
960
|
+
<span>
|
|
961
|
+
{row.name} <span aria-hidden className="before:content-['·']" />{' '}
|
|
962
|
+
{state.unsaved > 0 ? 'unsaved' : 'saved'}
|
|
963
|
+
</span>
|
|
961
964
|
);
|
|
962
965
|
|
|
963
966
|
<DataGrid renderPhoneItem={renderItem} /* … */ />;
|
|
964
967
|
```
|
|
965
968
|
|
|
969
|
+
A list item's accessible name is everything it shows, in reading order: the
|
|
970
|
+
row's label, its badges, the summary and the reason of a locked or read-only
|
|
971
|
+
row (in its name, not its description, so axe's `label-content-name-mismatch` passes). Query it by its label
|
|
972
|
+
start, `getByRole('button', { name: /^Ada Lovelace/ })`, not by the exact
|
|
973
|
+
label. If `renderPhoneItem` draws separators, draw them with CSS (such as
|
|
974
|
+
`before:content-['·']`) so the name stays free of stray marks.
|
|
975
|
+
|
|
966
976
|
## The keyboard
|
|
967
977
|
|
|
968
978
|
One tab stop; Tab leaves the grid past the last cell (`tabBehavior="exit"`
|
|
Binary file
|
package/docs/roadmap.md
CHANGED
|
@@ -9,9 +9,17 @@ version they shipped in, and planned entries may name the major they target.
|
|
|
9
9
|
- **Toast texts follow app translations** — the toast presets read the
|
|
10
10
|
app's `I18nProvider` `resources`, so an override under `material.*`
|
|
11
11
|
changes their wording ([#1855](https://github.com/softistx/nxgt-material/issues/1855)).
|
|
12
|
+
- **A decision bar for phone pages** — `StickyActionBar` holds a long page's
|
|
13
|
+
main decision at the bottom of a phone, above the keyboard and clear of the
|
|
14
|
+
safe areas, and inline from `md`
|
|
15
|
+
([#1964](https://github.com/softistx/nxgt-material/issues/1964)).
|
|
12
16
|
- **Smaller, easier-to-read components** — the library's own source is kept
|
|
13
17
|
to files under 200 lines and functions under 80, so a component is quicker to
|
|
14
|
-
read and to fix
|
|
18
|
+
read and to fix. No API or behaviour change: smaller modules that are easier
|
|
19
|
+
to review, and fewer regressions
|
|
20
|
+
([#1865](https://github.com/softistx/nxgt-material/issues/1865), slices
|
|
21
|
+
[#1915](https://github.com/softistx/nxgt-material/issues/1915) to
|
|
22
|
+
[#1925](https://github.com/softistx/nxgt-material/issues/1925)).
|
|
15
23
|
- **DataGrid: one column, several kinds of row** — `meta.rowEditor(row)` picks
|
|
16
24
|
the built-in editor from the row, and `meta.options` and
|
|
17
25
|
`meta.number.decimals` take the row, so a result column can be a bounded
|
package/package.json
CHANGED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { t } from "./use-material-translation-BQOr4Oks.js";
|
|
3
|
-
import { i as n } from "./escape-owner-BJvicDmr.js";
|
|
4
|
-
import { a as r, c as i, i as a, n as o, o as s, r as c, t as l, u } from "./state-scenes-BX03WmSu.js";
|
|
5
|
-
import { Suspense as d } from "react";
|
|
6
|
-
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
|
-
import { AlertCircle as m, Construction as h, FileQuestion as g, PackageOpen as _, Search as v, ShieldAlert as y, WifiOff as b } from "lucide-react";
|
|
8
|
-
import { STATE_ACCENT as x, STATE_ICON as S, stateCopy as C } from "@nxgt/material-core/states";
|
|
9
|
-
//#region lib/components/ui/feedback/state-frame/state-icon.tsx
|
|
10
|
-
var w = {
|
|
11
|
-
"package-open": _,
|
|
12
|
-
search: v,
|
|
13
|
-
"file-question": g,
|
|
14
|
-
"shield-alert": y,
|
|
15
|
-
"alert-circle": m,
|
|
16
|
-
"wifi-off": b,
|
|
17
|
-
construction: h
|
|
18
|
-
};
|
|
19
|
-
function T({ kind: e }) {
|
|
20
|
-
let t = w[S[e]];
|
|
21
|
-
return /* @__PURE__ */ f(t, { "aria-hidden": "true" });
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region lib/components/ui/feedback/state-frame/state-scene-illustration.tsx
|
|
25
|
-
function E({ scene: e, size: t }) {
|
|
26
|
-
return /* @__PURE__ */ f("div", {
|
|
27
|
-
"data-slot": "illustration",
|
|
28
|
-
"data-scene": e,
|
|
29
|
-
"data-size": t,
|
|
30
|
-
"data-fallback": "",
|
|
31
|
-
"aria-hidden": "true",
|
|
32
|
-
children: /* @__PURE__ */ f(r, {
|
|
33
|
-
kind: l[e] ?? "empty",
|
|
34
|
-
className: "h-full w-full"
|
|
35
|
-
})
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
var D = a("illustration", async () => {
|
|
39
|
-
let { Illustration: e } = await import("./illustration-B4_W-OUS.js").then((e) => e.n);
|
|
40
|
-
return ({ scene: t, size: n }) => /* @__PURE__ */ f(e, {
|
|
41
|
-
scene: t,
|
|
42
|
-
size: n
|
|
43
|
-
});
|
|
44
|
-
}, E);
|
|
45
|
-
function O({ scene: e, size: t }) {
|
|
46
|
-
return /* @__PURE__ */ f(d, {
|
|
47
|
-
fallback: /* @__PURE__ */ f("div", {
|
|
48
|
-
"data-slot": "illustration",
|
|
49
|
-
"data-size": t,
|
|
50
|
-
"aria-hidden": "true"
|
|
51
|
-
}),
|
|
52
|
-
children: /* @__PURE__ */ f(D, {
|
|
53
|
-
scene: e,
|
|
54
|
-
size: t
|
|
55
|
-
})
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region lib/components/ui/feedback/state-frame/state-frame.tsx
|
|
60
|
-
function k({ kind: t, size: a = "default", illustration: l, icon: d, title: m, headingLevel: h, description: g, actions: _, className: v, children: y, ...b }) {
|
|
61
|
-
let S = a === "inline", C = a === "compact" || S, w = e("flex shrink-0 items-center justify-center rounded", s[x[t]], S ? "size-8 rounded-full [&_svg]:size-4" : C ? "size-10 [&_svg]:size-5" : "size-16 [&_svg]:size-7"), E = u(), D = l === !0 || c(l, E?.sets) ? c(l, E?.sets) ? l : o[t] : null, k = l == null && d == null && a === "default" ? i(E, o[t]) : void 0, A = S ? null : D ?? (k ? o[t] : null), j = null;
|
|
62
|
-
return j = l === !1 ? null : A ? /* @__PURE__ */ f(O, {
|
|
63
|
-
scene: A,
|
|
64
|
-
size: C ? "sm" : "md"
|
|
65
|
-
}) : l != null && l !== !0 && !c(l, E?.sets) ? l : d == null ? C ? /* @__PURE__ */ f("div", {
|
|
66
|
-
className: w,
|
|
67
|
-
children: /* @__PURE__ */ f(T, { kind: t })
|
|
68
|
-
}) : /* @__PURE__ */ f(r, { kind: t }) : /* @__PURE__ */ f("div", {
|
|
69
|
-
className: w,
|
|
70
|
-
children: d
|
|
71
|
-
}), /* @__PURE__ */ p("div", {
|
|
72
|
-
"data-kind": t,
|
|
73
|
-
"data-size": a,
|
|
74
|
-
className: e("flex text-foreground", S ? "flex-row items-center gap-3 px-3 py-2.5 text-start" : "flex-col items-center justify-center text-center", !S && (C ? "gap-3 px-4 py-6" : "min-h-[22rem] gap-5 p-8"), v),
|
|
75
|
-
...b,
|
|
76
|
-
children: [
|
|
77
|
-
j,
|
|
78
|
-
(m != null || g != null) && /* @__PURE__ */ p("div", {
|
|
79
|
-
className: e("flex flex-col", S ? "min-w-0 flex-1 gap-0.5" : "max-w-sm gap-2"),
|
|
80
|
-
children: [m != null && /* @__PURE__ */ f(n, {
|
|
81
|
-
as: h ? `h${h}` : void 0,
|
|
82
|
-
variant: S ? "normal" : C ? "title-medium" : "headline-small",
|
|
83
|
-
className: e("tracking-tight text-balance", S && "font-medium"),
|
|
84
|
-
children: m
|
|
85
|
-
}), g != null && /* @__PURE__ */ f(n, {
|
|
86
|
-
variant: S ? "body-small" : "body-medium",
|
|
87
|
-
className: "text-pretty",
|
|
88
|
-
children: g
|
|
89
|
-
})]
|
|
90
|
-
}),
|
|
91
|
-
y,
|
|
92
|
-
_ != null && /* @__PURE__ */ f("div", {
|
|
93
|
-
className: e("flex flex-wrap items-center gap-2", S ? "shrink-0" : "mt-1 justify-center"),
|
|
94
|
-
children: _
|
|
95
|
-
})
|
|
96
|
-
]
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region lib/components/ui/feedback/empty-state/empty-state.tsx
|
|
101
|
-
function A({ kind: e = "empty", size: n = "default", illustration: r, icon: i, title: a, description: o, action: s, ...c }) {
|
|
102
|
-
let l = C(e, "empty-state"), { t: u } = t(), d = o ?? (a == null ? u(l.descriptionKey, l.description) : void 0);
|
|
103
|
-
return /* @__PURE__ */ f(k, {
|
|
104
|
-
"data-slot": "empty-state",
|
|
105
|
-
"data-variant": e,
|
|
106
|
-
kind: e,
|
|
107
|
-
size: n,
|
|
108
|
-
illustration: r,
|
|
109
|
-
icon: i,
|
|
110
|
-
title: a ?? u(l.titleKey, l.title),
|
|
111
|
-
description: d,
|
|
112
|
-
actions: s,
|
|
113
|
-
...c
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
//#endregion
|
|
117
|
-
export { k as n, A as t };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect as e, useRef as t } from "react";
|
|
2
|
-
import { morph as n, morphAt as r, toSvgPath as i } from "@nxgt/material-core/shapes";
|
|
3
|
-
//#region lib/components/ui/display/shape/use-shape-morph.ts
|
|
4
|
-
var a = .8, o = 14, s = o * Math.sqrt(1 - a * a);
|
|
5
|
-
function c(e) {
|
|
6
|
-
let t = e / 1e3;
|
|
7
|
-
return 1 - Math.exp(-.8 * o * t) * (Math.cos(s * t) + a * o / s * Math.sin(s * t));
|
|
8
|
-
}
|
|
9
|
-
var l = () => typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
10
|
-
function u(a, o, s) {
|
|
11
|
-
let u = t(o);
|
|
12
|
-
e(() => {
|
|
13
|
-
let e = a.current, t = u.current;
|
|
14
|
-
if (!e || t === o || !s || l()) {
|
|
15
|
-
e && t !== o && e.setAttribute("d", i(o)), u.current = o;
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
let d = n(t, o), f = i(o), p = 0, m = performance.now(), h = (t) => {
|
|
19
|
-
let n = t - m;
|
|
20
|
-
if (n >= 520) {
|
|
21
|
-
u.current = o, e.setAttribute("d", f);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
let a = r(d, c(n));
|
|
25
|
-
u.current = a, e.setAttribute("d", i(a)), p = requestAnimationFrame(h);
|
|
26
|
-
};
|
|
27
|
-
return e.setAttribute("d", i(d.from)), p = requestAnimationFrame(h), () => cancelAnimationFrame(p);
|
|
28
|
-
}, [
|
|
29
|
-
a,
|
|
30
|
-
o,
|
|
31
|
-
s
|
|
32
|
-
]);
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
export { u as n, c as t };
|