@nxgt/material 3.8.1 → 3.10.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 +38 -0
- package/README.md +28 -4
- package/dist/background-CAWV_qSk.js +247 -0
- package/dist/backgrounds/backgrounds.css +4 -0
- package/dist/backgrounds/css-react/celestial.css +200 -0
- package/dist/backgrounds/css-react/icons.css +175 -0
- package/dist/backgrounds.js +1 -1
- package/dist/celestial-scene-DaOsRFF3.js +30 -0
- package/dist/components/components.css +2 -5
- package/dist/components/ui/feedback/feedback.css +7 -0
- package/dist/components/ui/feedback/state-frame/illustration.css +171 -0
- package/dist/{components-DNUYg8QM.js → components-D5d2rflJ.js} +11650 -11598
- package/dist/components.js +16 -15
- package/dist/editor.js +1 -1
- package/dist/empty-state-COAV2d-R.js +98 -0
- package/dist/hooks.js +1 -1
- package/dist/icon-sprites-CZ3vcD7P.js +17 -0
- package/dist/icons-scene-bA7I4wdP.js +24 -0
- package/dist/illustration-DfPJtkFY.js +86 -0
- package/dist/illustrations-education.js +2 -0
- package/dist/illustrations-health.js +2 -0
- package/dist/illustrations.js +4 -0
- package/dist/lib/backgrounds/background/available.d.ts +8 -3
- package/dist/lib/backgrounds/background/background.d.ts +4 -4
- package/dist/lib/backgrounds/background/partials/background-layers.d.ts +17 -6
- package/dist/lib/backgrounds/background/partials/celestial-scene.d.ts +22 -0
- package/dist/lib/backgrounds/background/partials/icons-check.d.ts +8 -0
- package/dist/lib/backgrounds/background/partials/icons-keys.d.ts +3 -0
- package/dist/lib/backgrounds/background/partials/icons-layer.d.ts +8 -0
- package/dist/lib/backgrounds/background/partials/icons-scene.d.ts +19 -0
- package/dist/lib/backgrounds/background/partials/scene-options.d.ts +23 -0
- package/dist/lib/backgrounds/background/partials/use-icons-scene.d.ts +22 -0
- package/dist/lib/backgrounds/background/types.d.ts +28 -2
- package/dist/lib/backgrounds/index.d.ts +1 -1
- package/dist/lib/components/ui/collections/data-table/empty-types.d.ts +20 -0
- package/dist/lib/components/ui/collections/data-table/layout-types.d.ts +12 -0
- package/dist/lib/components/ui/collections/data-table/partials/data-table-body.d.ts +3 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-empty-row.d.ts +5 -2
- package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-items-empty.d.ts +2 -2
- package/dist/lib/components/ui/collections/data-table/types.d.ts +4 -26
- package/dist/lib/components/ui/feedback/empty-state/empty-state.d.ts +8 -3
- package/dist/lib/components/ui/feedback/error-state/error-state.d.ts +3 -3
- package/dist/lib/components/ui/feedback/state-frame/illustration-defaults.d.ts +46 -0
- package/dist/lib/components/ui/feedback/state-frame/scene-registry.d.ts +14 -0
- package/dist/lib/components/ui/feedback/state-frame/state-frame.d.ts +10 -2
- package/dist/lib/components/ui/feedback/state-frame/state-scene-illustration.d.ts +5 -0
- package/dist/lib/components/ui/feedback/state-frame/state-scenes.d.ts +15 -0
- package/dist/lib/components/ui/fields/country-field/country-field.d.ts +8 -3
- package/dist/lib/components/ui/fields/country-field/country-options.d.ts +6 -3
- package/dist/lib/components/ui/fields/country-field/iso-countries.d.ts +17 -0
- package/dist/lib/components/ui/fields/postal-address/utils.d.ts +1 -1
- package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +3 -0
- package/dist/lib/components/ui/primitives/icon/icon-sprites.d.ts +17 -0
- package/dist/lib/components/ui/primitives/icon/index.d.ts +1 -0
- package/dist/lib/illustrations/illustration.d.ts +38 -0
- package/dist/lib/illustrations/index.d.ts +11 -0
- package/dist/lib/illustrations/plated-illustration.d.ts +11 -0
- package/dist/lib/illustrations/use-illustration.d.ts +22 -0
- package/dist/lib/illustrations-education/index.d.ts +16 -0
- package/dist/lib/illustrations-health/index.d.ts +16 -0
- package/dist/lib/theme-picker/partials/mini-background.d.ts +3 -0
- package/dist/lib/theme-picker/partials/tile-icons.d.ts +9 -0
- package/dist/main.js +28 -27
- package/dist/material.css +1 -1
- package/dist/{nxgt-theme-CgSb9Obl.js → nxgt-theme-ZS945iMP.js} +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/plated-illustration-C3z0hP9U.js +19 -0
- package/dist/{public-Ce30uvp0.js → public-DGvtAz7M.js} +1 -1
- package/dist/scene-options-CCy3V7XS.js +60 -0
- package/dist/scene-svg-DJKa5vsg.js +9 -0
- package/dist/state-scenes-Be9w_3an.js +130 -0
- package/dist/{theme-context-BagPvRcz.js → theme-context-Cofk6vgs.js} +2 -2
- package/dist/theme-picker.js +69 -45
- package/dist/{theme-toggle-C8os82b4.js → theme-toggle-oU-fh6WE.js} +2 -2
- package/dist/themes.js +2 -2
- package/dist/{use-chat-composer-CDrgWGMM.js → use-chat-composer-CkEPJo5I.js} +4236 -4230
- package/dist/{use-theme-Cd-aiDJo.js → use-theme-DMcyJ52N.js} +1 -1
- package/docs/README.md +2 -0
- package/docs/components/README.md +2 -0
- package/docs/components/data-table-filter-and-lists.md +1 -0
- package/docs/components/feedback-and-status.md +2 -2
- package/docs/components/form-fields.md +10 -4
- package/docs/components/foundations.md +2 -2
- package/docs/components/navigation-and-layout.md +1 -1
- package/docs/components/primitives.md +14 -1
- package/docs/getting-started.md +7 -2
- package/docs/guides/app-shell.md +1 -1
- package/docs/guides/backgrounds.md +93 -6
- package/docs/guides/icon-motifs.md +198 -0
- package/docs/guides/illustrations.md +172 -0
- package/docs/guides/themes.md +35 -0
- package/docs/guides/theming.md +1 -1
- package/docs/previews/backgrounds-background-from-theme.webp +0 -0
- package/docs/previews/backgrounds-celestial.webp +0 -0
- package/docs/previews/backgrounds-geometry-more.webp +0 -0
- package/docs/previews/backgrounds-geometry.webp +0 -0
- package/docs/previews/backgrounds-icons.webp +0 -0
- package/docs/previews/backgrounds-illustrated-scenes.webp +0 -0
- package/docs/previews/backgrounds-light-more.webp +0 -0
- package/docs/previews/backgrounds-light.webp +0 -0
- package/docs/previews/backgrounds-material-more.webp +0 -0
- package/docs/previews/backgrounds-matrix.webp +0 -0
- package/docs/previews/backgrounds-moon.webp +0 -0
- package/docs/previews/backgrounds-motif-shapes.webp +0 -0
- package/docs/previews/backgrounds-motifs.webp +0 -0
- package/docs/previews/backgrounds-sky-overlay.webp +0 -0
- package/docs/previews/buttons-actions-actioncard.webp +0 -0
- package/docs/previews/buttons-actions-button.webp +0 -0
- package/docs/previews/buttons-actions-buttongroup.webp +0 -0
- package/docs/previews/buttons-actions-copybutton.webp +0 -0
- package/docs/previews/buttons-actions-fab.webp +0 -0
- package/docs/previews/buttons-actions-fabmenu.webp +0 -0
- package/docs/previews/buttons-actions-highlighttext.webp +0 -0
- package/docs/previews/buttons-actions-iconbutton.webp +0 -0
- package/docs/previews/buttons-actions-languageswitcher.webp +0 -0
- package/docs/previews/buttons-actions-linkbutton.webp +0 -0
- package/docs/previews/buttons-actions-loadmorebutton.webp +0 -0
- package/docs/previews/buttons-actions-responsivebutton.webp +0 -0
- package/docs/previews/buttons-actions-scrolltolatestbutton.webp +0 -0
- package/docs/previews/buttons-actions-scrolltotop.webp +0 -0
- package/docs/previews/buttons-actions-splitbutton.webp +0 -0
- package/docs/previews/buttons-actions-themetoggle.webp +0 -0
- package/docs/previews/buttons-actions-toolbar-overflow.webp +0 -0
- package/docs/previews/buttons-actions-toolbar.webp +0 -0
- package/docs/previews/data-display-accordioncard.webp +0 -0
- package/docs/previews/data-display-apiendpoint.webp +0 -0
- package/docs/previews/data-display-apioperation.webp +0 -0
- package/docs/previews/data-display-avatar.webp +0 -0
- package/docs/previews/data-display-avatargroup.webp +0 -0
- package/docs/previews/data-display-badge.webp +0 -0
- package/docs/previews/data-display-barecode.webp +0 -0
- package/docs/previews/data-display-card-presets.webp +0 -0
- package/docs/previews/data-display-chip.webp +0 -0
- package/docs/previews/data-display-codeblock.webp +0 -0
- package/docs/previews/data-display-codegroup.webp +0 -0
- package/docs/previews/data-display-countbadge.webp +0 -0
- package/docs/previews/data-display-dayseparator.webp +0 -0
- package/docs/previews/data-display-description.webp +0 -0
- package/docs/previews/data-display-enrolmentsecret.webp +0 -0
- package/docs/previews/data-display-entityheader.webp +0 -0
- package/docs/previews/data-display-eventchip.webp +0 -0
- package/docs/previews/data-display-figure.webp +0 -0
- package/docs/previews/data-display-jsonviewer.webp +0 -0
- package/docs/previews/data-display-listtile.webp +0 -0
- package/docs/previews/data-display-markdown.webp +0 -0
- package/docs/previews/data-display-metric-cards.webp +0 -0
- package/docs/previews/data-display-paramtable.webp +0 -0
- package/docs/previews/data-display-periodcards.webp +0 -0
- package/docs/previews/data-display-recoverycodes.webp +0 -0
- package/docs/previews/data-display-shape.webp +0 -0
- package/docs/previews/data-display-statcard.webp +0 -0
- package/docs/previews/data-display-statusindicator.webp +0 -0
- package/docs/previews/data-display-summarydata.webp +0 -0
- package/docs/previews/data-display-terminal.webp +0 -0
- package/docs/previews/data-display-timeline.webp +0 -0
- package/docs/previews/data-table-filter-lists-datagrid.webp +0 -0
- package/docs/previews/data-table-filter-lists-datatable.webp +0 -0
- package/docs/previews/data-table-filter-lists-daygroupedlist.webp +0 -0
- package/docs/previews/data-table-filter-lists-drag-and-drop.webp +0 -0
- package/docs/previews/data-table-filter-lists-facetgroup.webp +0 -0
- package/docs/previews/data-table-filter-lists-filter.webp +0 -0
- package/docs/previews/data-table-filter-lists-listempty.webp +0 -0
- package/docs/previews/data-table-filter-lists-listpane.webp +0 -0
- package/docs/previews/data-table-filter-lists-pagination.webp +0 -0
- package/docs/previews/data-table-filter-lists-servertable.webp +0 -0
- package/docs/previews/data-table-filter-lists-tree.webp +0 -0
- package/docs/previews/date-time-calendar.webp +0 -0
- package/docs/previews/date-time-datefield.webp +0 -0
- package/docs/previews/date-time-daterangefield.webp +0 -0
- package/docs/previews/date-time-durationfield.webp +0 -0
- package/docs/previews/date-time-minimonth.webp +0 -0
- package/docs/previews/date-time-nowindicator.webp +0 -0
- package/docs/previews/date-time-timefield.webp +0 -0
- package/docs/previews/date-time-timepicker.webp +0 -0
- package/docs/previews/feedback-status-alert.webp +0 -0
- package/docs/previews/feedback-status-alertdialog.webp +0 -0
- package/docs/previews/feedback-status-banner.webp +0 -0
- package/docs/previews/feedback-status-circularprogress.webp +0 -0
- package/docs/previews/feedback-status-confirmationdialog.webp +0 -0
- package/docs/previews/feedback-status-confirmdialog.webp +0 -0
- package/docs/previews/feedback-status-countdowntimer.webp +0 -0
- package/docs/previews/feedback-status-customalertdialog.webp +0 -0
- package/docs/previews/feedback-status-customdialog.webp +0 -0
- package/docs/previews/feedback-status-emptystate.webp +0 -0
- package/docs/previews/feedback-status-errorstate.webp +0 -0
- package/docs/previews/feedback-status-hydrateloading.webp +0 -0
- package/docs/previews/feedback-status-illustration-education.webp +0 -0
- package/docs/previews/feedback-status-illustration-health.webp +0 -0
- package/docs/previews/feedback-status-illustration.webp +0 -0
- package/docs/previews/feedback-status-loadingindicator.webp +0 -0
- package/docs/previews/feedback-status-notificationrow.webp +0 -0
- package/docs/previews/feedback-status-notifications.webp +0 -0
- package/docs/previews/feedback-status-progress.webp +0 -0
- package/docs/previews/feedback-status-scrollprogress.webp +0 -0
- package/docs/previews/feedback-status-skeleton.webp +0 -0
- package/docs/previews/feedback-status-spinner.webp +0 -0
- package/docs/previews/feedback-status-stepdots.webp +0 -0
- package/docs/previews/feedback-status-toast.webp +0 -0
- package/docs/previews/feedback-status-typingindicator.webp +0 -0
- package/docs/previews/form-fields-attributes.webp +0 -0
- package/docs/previews/form-fields-colorfield.webp +0 -0
- package/docs/previews/form-fields-contacts.webp +0 -0
- package/docs/previews/form-fields-countryfield.webp +0 -0
- package/docs/previews/form-fields-currencyfield.webp +0 -0
- package/docs/previews/form-fields-emailfield.webp +0 -0
- package/docs/previews/form-fields-field.webp +0 -0
- package/docs/previews/form-fields-formsection.webp +0 -0
- package/docs/previews/form-fields-inlineedit.webp +0 -0
- package/docs/previews/form-fields-inputgroupfield.webp +0 -0
- package/docs/previews/form-fields-localizedtextfields.webp +0 -0
- package/docs/previews/form-fields-numberfield.webp +0 -0
- package/docs/previews/form-fields-openinghours.webp +0 -0
- package/docs/previews/form-fields-otpfield.webp +0 -0
- package/docs/previews/form-fields-passwordfield.webp +0 -0
- package/docs/previews/form-fields-percentfield.webp +0 -0
- package/docs/previews/form-fields-phonefield.webp +0 -0
- package/docs/previews/form-fields-postaladdress.webp +0 -0
- package/docs/previews/form-fields-ratingfield.webp +0 -0
- package/docs/previews/form-fields-repeatablegroup.webp +0 -0
- package/docs/previews/form-fields-searchfield.webp +0 -0
- package/docs/previews/form-fields-slider.webp +0 -0
- package/docs/previews/form-fields-switch.webp +0 -0
- package/docs/previews/form-fields-textareafield.webp +0 -0
- package/docs/previews/form-fields-textfield.webp +0 -0
- package/docs/previews/form-fields-timezonefield.webp +0 -0
- package/docs/previews/form-fields-urlfield.webp +0 -0
- package/docs/previews/foundations-themes-icon-motifs.webp +0 -0
- package/docs/previews/foundations-themes-themepicker.webp +0 -0
- package/docs/previews/guides-i18n-i18nprovider.webp +0 -0
- package/docs/previews/guides-i18n-translated-components.webp +0 -0
- package/docs/previews/media-files-audioplayer.webp +0 -0
- package/docs/previews/media-files-camera.webp +0 -0
- package/docs/previews/media-files-carousel.webp +0 -0
- package/docs/previews/media-files-filelist.webp +0 -0
- package/docs/previews/media-files-filelistfield.webp +0 -0
- package/docs/previews/media-files-filepreview.webp +0 -0
- package/docs/previews/media-files-gallery-image-lists.webp +0 -0
- package/docs/previews/media-files-gallery-viewer.webp +0 -0
- package/docs/previews/media-files-gallery.webp +0 -0
- package/docs/previews/media-files-imagecropper.webp +0 -0
- package/docs/previews/media-files-imageeditor.webp +0 -0
- package/docs/previews/media-files-imagefield.webp +0 -0
- package/docs/previews/media-files-lightboxgallery.webp +0 -0
- package/docs/previews/media-files-map.webp +0 -0
- package/docs/previews/media-files-mediaplayer.webp +0 -0
- package/docs/previews/media-files-mediaplayerhost.webp +0 -0
- package/docs/previews/media-files-mediaplayerlightbox.webp +0 -0
- package/docs/previews/media-files-mediaplayermini.webp +0 -0
- package/docs/previews/media-files-minigallery.webp +0 -0
- package/docs/previews/media-files-networkuploadfield.webp +0 -0
- package/docs/previews/media-files-pdfreader.webp +0 -0
- package/docs/previews/media-files-s3uploadfield.webp +0 -0
- package/docs/previews/media-files-uploadfield.webp +0 -0
- package/docs/previews/navigation-layout-accountmenu.webp +0 -0
- package/docs/previews/navigation-layout-appshell-menu-badge.webp +0 -0
- package/docs/previews/navigation-layout-appshell.webp +0 -0
- package/docs/previews/navigation-layout-authcard.webp +0 -0
- package/docs/previews/navigation-layout-background.webp +0 -0
- package/docs/previews/navigation-layout-bottomappbar.webp +0 -0
- package/docs/previews/navigation-layout-breadcrumb.webp +0 -0
- package/docs/previews/navigation-layout-doc-api.webp +0 -0
- package/docs/previews/navigation-layout-doc-blocks.webp +0 -0
- package/docs/previews/navigation-layout-doc.webp +0 -0
- package/docs/previews/navigation-layout-hero.webp +0 -0
- package/docs/previews/navigation-layout-listdetailslayout.webp +0 -0
- package/docs/previews/navigation-layout-pager.webp +0 -0
- package/docs/previews/navigation-layout-panelayout.webp +0 -0
- package/docs/previews/navigation-layout-resizable.webp +0 -0
- package/docs/previews/navigation-layout-responsivegrid.webp +0 -0
- package/docs/previews/navigation-layout-seealso.webp +0 -0
- package/docs/previews/navigation-layout-sidebar.webp +0 -0
- package/docs/previews/navigation-layout-skiplink.webp +0 -0
- package/docs/previews/navigation-layout-stepper.webp +0 -0
- package/docs/previews/navigation-layout-steps.webp +0 -0
- package/docs/previews/navigation-layout-threadlayout.webp +0 -0
- package/docs/previews/navigation-layout-toc.webp +0 -0
- package/docs/previews/navigation-layout-topappbar.webp +0 -0
- package/docs/previews/overlays-menus-command.webp +0 -0
- package/docs/previews/overlays-menus-contextmenu.webp +0 -0
- package/docs/previews/overlays-menus-dialog.webp +0 -0
- package/docs/previews/overlays-menus-drawer.webp +0 -0
- package/docs/previews/overlays-menus-dropdownmenu.webp +0 -0
- package/docs/previews/overlays-menus-hovercard.webp +0 -0
- package/docs/previews/overlays-menus-menubar.webp +0 -0
- package/docs/previews/overlays-menus-popover.webp +0 -0
- package/docs/previews/overlays-menus-sheet.webp +0 -0
- package/docs/previews/overlays-menus-tooltip.webp +0 -0
- package/docs/previews/primitives-accordion.webp +0 -0
- package/docs/previews/primitives-anchorheading.webp +0 -0
- package/docs/previews/primitives-card.webp +0 -0
- package/docs/previews/primitives-collapsible.webp +0 -0
- package/docs/previews/primitives-extendedlabel.webp +0 -0
- package/docs/previews/primitives-helpertext.webp +0 -0
- package/docs/previews/primitives-icon.webp +0 -0
- package/docs/previews/primitives-input.webp +0 -0
- package/docs/previews/primitives-inputgroup.webp +0 -0
- package/docs/previews/primitives-kbd.webp +0 -0
- package/docs/previews/primitives-label.webp +0 -0
- package/docs/previews/primitives-scrollarea.webp +0 -0
- package/docs/previews/primitives-separator.webp +0 -0
- package/docs/previews/primitives-table.webp +0 -0
- package/docs/previews/primitives-tabs.webp +0 -0
- package/docs/previews/primitives-textarea.webp +0 -0
- package/docs/previews/primitives-toggle.webp +0 -0
- package/docs/previews/primitives-togglegroup.webp +0 -0
- package/docs/previews/primitives-typography.webp +0 -0
- package/docs/previews/rich-widgets-chat-advanced.webp +0 -0
- package/docs/previews/rich-widgets-chat-composer.webp +0 -0
- package/docs/previews/rich-widgets-chat-inbox.webp +0 -0
- package/docs/previews/rich-widgets-chat-overview.webp +0 -0
- package/docs/previews/rich-widgets-chat-thread.webp +0 -0
- package/docs/previews/rich-widgets-chat-widget.webp +0 -0
- package/docs/previews/rich-widgets-codeeditor-diff.webp +0 -0
- package/docs/previews/rich-widgets-codeeditor.webp +0 -0
- package/docs/previews/rich-widgets-compacteditor.webp +0 -0
- package/docs/previews/rich-widgets-documenteditor.webp +0 -0
- package/docs/previews/rich-widgets-drawing.webp +0 -0
- package/docs/previews/rich-widgets-emojipicker.webp +0 -0
- package/docs/previews/rich-widgets-eventcalendar.webp +0 -0
- package/docs/previews/rich-widgets-kanban.webp +0 -0
- package/docs/previews/rich-widgets-mentionlist.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-areachart.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-barchart.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-combochart.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-donutchart.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-funnelchart.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-gauge.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-heatmapchart.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-linechart.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-piechart.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-radarchart.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-radialbarchart.webp +0 -0
- package/docs/previews/rich-widgets-native-charts-scatterchart.webp +0 -0
- package/docs/previews/rich-widgets-questioncard.webp +0 -0
- package/docs/previews/rich-widgets-quiz.webp +0 -0
- package/docs/previews/rich-widgets-richchatcomposer.webp +0 -0
- package/docs/previews/rich-widgets-richtexteditor.webp +0 -0
- package/docs/previews/rich-widgets-richtextviewer.webp +0 -0
- package/docs/previews/selection-choice-autocomplete.webp +0 -0
- package/docs/previews/selection-choice-checkbox.webp +0 -0
- package/docs/previews/selection-choice-checkboxgroup.webp +0 -0
- package/docs/previews/selection-choice-checkcardfield.webp +0 -0
- package/docs/previews/selection-choice-chipgroupfield.webp +0 -0
- package/docs/previews/selection-choice-choicecardgroup.webp +0 -0
- package/docs/previews/selection-choice-colorswatches.webp +0 -0
- package/docs/previews/selection-choice-combobox.webp +0 -0
- package/docs/previews/selection-choice-comboboxfield.webp +0 -0
- package/docs/previews/selection-choice-optiontile.webp +0 -0
- package/docs/previews/selection-choice-radiogroup.webp +0 -0
- package/docs/previews/selection-choice-select.webp +0 -0
- package/docs/previews/selection-choice-selectfield.webp +0 -0
- package/docs/previews/selection-choice-sortablelist.webp +0 -0
- package/docs/previews/selection-choice-switcher.webp +0 -0
- package/docs/previews/selection-choice-transferlist.webp +0 -0
- package/docs/previews/selection-choice-treeselectfield.webp +0 -0
- package/docs/roadmap.md +22 -0
- package/docs/troubleshooting.md +69 -4
- package/lib/backgrounds/backgrounds.css +4 -0
- package/lib/backgrounds/css-react/celestial.css +200 -0
- package/lib/backgrounds/css-react/icons.css +175 -0
- package/lib/components/components.css +2 -5
- package/lib/components/ui/feedback/feedback.css +7 -0
- package/lib/components/ui/feedback/state-frame/illustration.css +171 -0
- package/lib/theme-picker/theme-picker.css +1 -0
- package/lib/theme-picker/theme-tile-icons.css +50 -0
- package/lib/theme-picker/theme-tile-textures-night.css +107 -1
- package/lib/themes/teal.css +2 -3
- package/package.json +28 -4
- package/dist/background--Bf_EbFR.js +0 -159
- package/dist/empty-state-s2CSjKXJ.js +0 -126
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./dist-DVRQkaTK.js";
|
|
2
2
|
import { t } from "./is-production-GLw59WU8.js";
|
|
3
|
-
import { n, r, t as i } from "./theme-context-
|
|
3
|
+
import { n, r, t as i } from "./theme-context-Cofk6vgs.js";
|
|
4
4
|
import { t as a } from "./warn-once-C_e47JM8.js";
|
|
5
5
|
import { useContext as o, useMemo as s } from "react";
|
|
6
6
|
import { jsx as c } from "react/jsx-runtime";
|
package/dist/pdf-reader.js
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as e } from "./scene-svg-DJKa5vsg.js";
|
|
2
|
+
import { useMemo as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { buildIllustration as r } from "@nxgt/material-core/illustrations";
|
|
5
|
+
import { platePath as i } from "@nxgt/material-core/illustrations/plates";
|
|
6
|
+
//#region lib/illustrations/plated-illustration.tsx
|
|
7
|
+
function a({ spec: a, idPrefix: o, base: s }) {
|
|
8
|
+
return /* @__PURE__ */ n(e, { node: t(() => r(a, {
|
|
9
|
+
idPrefix: o,
|
|
10
|
+
spriteBase: s,
|
|
11
|
+
plates: i
|
|
12
|
+
}), [
|
|
13
|
+
a,
|
|
14
|
+
o,
|
|
15
|
+
s
|
|
16
|
+
]) });
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { a as default };
|
|
@@ -16,7 +16,7 @@ import { t as be } from "./useEvent-2fKq-6w8.js";
|
|
|
16
16
|
import { n as xe, t as Se } from "./toggle-group-j8zaxEg1.js";
|
|
17
17
|
import { n as Ce } from "./use-slice-reducer-BGkeGtML.js";
|
|
18
18
|
import { r as we } from "./use-csp-nonce-ZKs9k-ov.js";
|
|
19
|
-
import { n as Te, t as Ee } from "./empty-state-
|
|
19
|
+
import { n as Te, t as Ee } from "./empty-state-COAV2d-R.js";
|
|
20
20
|
import { t as De } from "./client-only.utils-3nHNzCki.js";
|
|
21
21
|
import { t as Oe } from "./use-scroll-away-PQRFZkT2.js";
|
|
22
22
|
import { ArrowLeft as ke, BookOpenText as Ae, ChevronDown as je, ChevronLeft as Me, ChevronRight as Ne, ChevronUp as Pe, Download as Fe, Eraser as Ie, FileText as Le, FileWarning as Re, FileX2 as ze, Highlighter as Be, KeyRound as Ve, LayoutGrid as He, List as Ue, Loader2 as We, Maximize as Ge, MessageSquareText as Ke, Minimize as qe, MoreVertical as Je, MousePointer2 as Ye, MoveHorizontal as Xe, PanelLeft as Ze, Pen as Qe, PencilLine as $e, Printer as et, RotateCw as tt, Search as nt, StickyNote as rt, Type as it, Underline as at, Undo2 as ot, Volume2 as st, X as ct, XIcon as lt, ZoomIn as ut, ZoomOut as dt } from "lucide-react";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { BODY_DEFAULTS as e } from "@nxgt/material-core/backgrounds";
|
|
2
|
+
//#region lib/backgrounds/background/partials/scene-options.ts
|
|
3
|
+
var t = Object.keys({
|
|
4
|
+
shapes: 1,
|
|
5
|
+
density: 1,
|
|
6
|
+
size: 1,
|
|
7
|
+
rotate: 1,
|
|
8
|
+
shapeFill: 1,
|
|
9
|
+
opacitySpread: 1
|
|
10
|
+
}).filter((e) => e !== "shapes");
|
|
11
|
+
function n(e) {
|
|
12
|
+
return t.map((t) => e?.[t]);
|
|
13
|
+
}
|
|
14
|
+
function r(e) {
|
|
15
|
+
return [
|
|
16
|
+
e?.position?.x,
|
|
17
|
+
e?.position?.y,
|
|
18
|
+
e?.phase,
|
|
19
|
+
e?.halo
|
|
20
|
+
].map((e) => e ?? null);
|
|
21
|
+
}
|
|
22
|
+
function i(e, n, r, i, a) {
|
|
23
|
+
let o = JSON.parse(i), s = {
|
|
24
|
+
...Object.fromEntries(t.map((e, t) => [e, o[t] ?? void 0])),
|
|
25
|
+
shapes: r === void 0 ? void 0 : r.split(",").filter(Boolean)
|
|
26
|
+
}, [c, l, u, d] = JSON.parse(a);
|
|
27
|
+
return {
|
|
28
|
+
idPrefix: e,
|
|
29
|
+
seed: n,
|
|
30
|
+
motif: s,
|
|
31
|
+
moon: {
|
|
32
|
+
...c == null || l == null ? {} : { position: {
|
|
33
|
+
x: c,
|
|
34
|
+
y: l
|
|
35
|
+
} },
|
|
36
|
+
...u == null ? {} : { phase: u },
|
|
37
|
+
...d == null ? {} : { halo: d }
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
var a = (t) => e[t];
|
|
42
|
+
function o(e, t, n) {
|
|
43
|
+
let r = a(e);
|
|
44
|
+
if (!r) return;
|
|
45
|
+
let i = a(t), o = i && (n?.position?.x ?? i.x);
|
|
46
|
+
return { position: {
|
|
47
|
+
x: o !== void 0 && Math.abs(o - r.x) < .2 ? 1 - r.x : r.x,
|
|
48
|
+
y: r.y
|
|
49
|
+
} };
|
|
50
|
+
}
|
|
51
|
+
function s(e, t, n, r, a, s, c) {
|
|
52
|
+
let l = i(n, r, a, s, c);
|
|
53
|
+
return {
|
|
54
|
+
...l,
|
|
55
|
+
seed: r + 1,
|
|
56
|
+
moon: o(e, t, l.moon)
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { s as i, n, i as r, r as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createElement as e, memo as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region lib/backgrounds/background/partials/scene-svg.tsx
|
|
4
|
+
var r = /^(aria|data)-/, i = (e) => e === "class" ? "className" : r.test(e) ? e : e.replace(/-([a-z])/g, (e, t) => t.toUpperCase()), a = t(function t({ node: r }) {
|
|
5
|
+
let a = Object.fromEntries(Object.entries(r.attrs).map(([e, t]) => [i(e), t]));
|
|
6
|
+
return e(r.tag, a, ...(r.children ?? []).map((e, r) => /* @__PURE__ */ n(t, { node: e }, r)));
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { a as t };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { t as e } from "./utils-Bcd2Z3ea.js";
|
|
2
|
+
import { createContext as t, createElement as n, useContext as r, useMemo as i } from "react";
|
|
3
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
4
|
+
import { STATE_ACCENT as o, STATE_ILLUSTRATIONS as s } from "@nxgt/material-core/states";
|
|
5
|
+
//#region lib/components/ui/feedback/state-frame/illustration-defaults.tsx
|
|
6
|
+
var c = t(null);
|
|
7
|
+
function l({ icons: e, iconStyle: t, sets: n, children: r }) {
|
|
8
|
+
let o = h(n);
|
|
9
|
+
return /* @__PURE__ */ a(c, {
|
|
10
|
+
value: i(() => ({
|
|
11
|
+
icons: e,
|
|
12
|
+
iconStyle: t,
|
|
13
|
+
sets: o
|
|
14
|
+
}), [
|
|
15
|
+
e,
|
|
16
|
+
t,
|
|
17
|
+
o
|
|
18
|
+
]),
|
|
19
|
+
children: r
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function u() {
|
|
23
|
+
return r(c);
|
|
24
|
+
}
|
|
25
|
+
function d(e, t) {
|
|
26
|
+
let n = e?.icons;
|
|
27
|
+
return n === "suggested" ? {} : n?.[t];
|
|
28
|
+
}
|
|
29
|
+
var f = /* @__PURE__ */ new WeakMap(), p = 0, m = (e) => {
|
|
30
|
+
let t = f.get(e);
|
|
31
|
+
return t === void 0 ? (p += 1, f.set(e, p), p) : t;
|
|
32
|
+
};
|
|
33
|
+
function h(e) {
|
|
34
|
+
let t = e?.map(m).join();
|
|
35
|
+
return i(() => e, [t]);
|
|
36
|
+
}
|
|
37
|
+
function g(e, t) {
|
|
38
|
+
return e?.sets?.find((e) => Object.keys(e).includes(t));
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region lib/components/ui/feedback/state-frame/state-tones.ts
|
|
42
|
+
var _ = "[stroke-linecap:round] [stroke-linejoin:round]", v = {
|
|
43
|
+
primary: "fill-primary",
|
|
44
|
+
error: "fill-error",
|
|
45
|
+
warning: "fill-warning",
|
|
46
|
+
info: "fill-info",
|
|
47
|
+
neutral: "fill-muted-foreground"
|
|
48
|
+
}, y = {
|
|
49
|
+
primary: "fill-primary/15",
|
|
50
|
+
error: "fill-error/15",
|
|
51
|
+
warning: "fill-warning/15",
|
|
52
|
+
info: "fill-info/15",
|
|
53
|
+
neutral: "fill-muted-foreground/15"
|
|
54
|
+
}, b = {
|
|
55
|
+
primary: "bg-primary/10 text-primary-text",
|
|
56
|
+
error: "bg-error/10 text-error",
|
|
57
|
+
warning: "bg-warning/10 text-warning",
|
|
58
|
+
info: "bg-info/10 text-info",
|
|
59
|
+
neutral: "border border-border bg-background text-foreground"
|
|
60
|
+
};
|
|
61
|
+
function x(e, t) {
|
|
62
|
+
switch (e) {
|
|
63
|
+
case "surface": return "fill-muted stroke-none";
|
|
64
|
+
case "outline": return `fill-none stroke-muted-foreground/60 stroke-2 ${_}`;
|
|
65
|
+
case "accent": return `${v[t]} stroke-none`;
|
|
66
|
+
case "accent-soft": return `${y[t]} stroke-none`;
|
|
67
|
+
case "muted": return "fill-muted-foreground/15 stroke-none";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region lib/components/ui/feedback/state-frame/state-illustration.tsx
|
|
72
|
+
function S({ kind: t, className: r, ...i }) {
|
|
73
|
+
let { viewBox: c, shapes: l } = s[t], u = o[t];
|
|
74
|
+
return /* @__PURE__ */ a("svg", {
|
|
75
|
+
"data-slot": "state-illustration",
|
|
76
|
+
viewBox: c,
|
|
77
|
+
"aria-hidden": "true",
|
|
78
|
+
focusable: "false",
|
|
79
|
+
className: e("h-auto w-40 shrink-0", r),
|
|
80
|
+
...i,
|
|
81
|
+
children: l.map((e, t) => n(e.el, {
|
|
82
|
+
key: t,
|
|
83
|
+
className: x(e.tone, u),
|
|
84
|
+
...e.attrs
|
|
85
|
+
}))
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region lib/components/ui/feedback/state-frame/state-scenes.ts
|
|
90
|
+
var C = [
|
|
91
|
+
"empty",
|
|
92
|
+
"no-results",
|
|
93
|
+
"not-found",
|
|
94
|
+
"error",
|
|
95
|
+
"offline",
|
|
96
|
+
"success",
|
|
97
|
+
"welcome",
|
|
98
|
+
"forbidden",
|
|
99
|
+
"maintenance",
|
|
100
|
+
"invitation",
|
|
101
|
+
"sign-in",
|
|
102
|
+
"empty-inbox"
|
|
103
|
+
], w = {
|
|
104
|
+
empty: "empty",
|
|
105
|
+
search: "no-results",
|
|
106
|
+
"not-found": "not-found",
|
|
107
|
+
unauthorized: "forbidden",
|
|
108
|
+
generic: "error",
|
|
109
|
+
offline: "offline",
|
|
110
|
+
maintenance: "maintenance"
|
|
111
|
+
};
|
|
112
|
+
function T(e, t) {
|
|
113
|
+
return typeof e == "string" && (C.includes(e) || !!t?.some((t) => Object.keys(t).includes(e)));
|
|
114
|
+
}
|
|
115
|
+
var E = {
|
|
116
|
+
empty: "empty",
|
|
117
|
+
"no-results": "search",
|
|
118
|
+
"not-found": "not-found",
|
|
119
|
+
error: "generic",
|
|
120
|
+
offline: "offline",
|
|
121
|
+
success: "empty",
|
|
122
|
+
welcome: "empty",
|
|
123
|
+
forbidden: "unauthorized",
|
|
124
|
+
maintenance: "maintenance",
|
|
125
|
+
invitation: "empty",
|
|
126
|
+
"sign-in": "unauthorized",
|
|
127
|
+
"empty-inbox": "empty"
|
|
128
|
+
};
|
|
129
|
+
//#endregion
|
|
130
|
+
export { b as a, g as c, S as i, u as l, w as n, l as o, T as r, d as s, E as t };
|
|
@@ -9,8 +9,8 @@ function a() {
|
|
|
9
9
|
return t(r);
|
|
10
10
|
}
|
|
11
11
|
function o(e) {
|
|
12
|
-
let { preset: t, tone: n, intensity: r, seed: i, motif: a, moon: o,
|
|
13
|
-
return t === "gradient" && (n ?? "primary") === "primary" && (r ?? "default") === "default" && !i && !a && !o && !s && !c;
|
|
12
|
+
let { preset: t, tone: n, intensity: r, seed: i, motif: a, moon: o, sky: s, grain: c, animated: l } = e;
|
|
13
|
+
return t === "gradient" && (n ?? "primary") === "primary" && (r ?? "default") === "default" && !i && !a && !o && !s && !c && !l;
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
16
|
export { a, o as i, r as n, n as r, i as t };
|
package/dist/theme-picker.js
CHANGED
|
@@ -1,71 +1,95 @@
|
|
|
1
1
|
import { t as e } from "./utils-Bcd2Z3ea.js";
|
|
2
2
|
import { a as t, i as n, n as r, o as i, r as a, t as o } from "./bubble-input-B7BVd9fX.js";
|
|
3
3
|
import { t as s } from "./use-material-translation-DkxcLbLM.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
4
|
+
import { n as c } from "./icon-sprites-CZ3vcD7P.js";
|
|
5
|
+
import { t as l } from "./use-theme-DMcyJ52N.js";
|
|
6
|
+
import { a as u, r as d } from "./theme-context-Cofk6vgs.js";
|
|
7
|
+
import { t as f } from "./theme-toggle-oU-fh6WE.js";
|
|
8
|
+
import { n as p, t as m } from "./nxgt-theme-ZS945iMP.js";
|
|
9
|
+
import { Check as h } from "lucide-react";
|
|
10
|
+
import { useContext as g } from "react";
|
|
11
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
12
|
+
import { ICON_PACKS as y, IconRefError as b, resolveIconStyles as x, resolveIcons as S, spriteHref as C } from "@nxgt/material-core/icons";
|
|
13
|
+
import { THEME_PRESETS as w } from "@nxgt/material-core/theme/presets";
|
|
12
14
|
//#region lib/theme-picker/partials/mode-control.tsx
|
|
13
|
-
function
|
|
15
|
+
function T() {
|
|
14
16
|
let { t: e } = s();
|
|
15
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ v("fieldset", {
|
|
16
18
|
"data-slot": "theme-picker-mode",
|
|
17
19
|
className: "m-0 flex min-w-0 items-center justify-between gap-3 border-0 p-0",
|
|
18
20
|
children: [
|
|
19
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ _("legend", {
|
|
20
22
|
className: "sr-only",
|
|
21
23
|
children: e("material.theme-picker.mode", "Mode")
|
|
22
24
|
}),
|
|
23
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ _("span", {
|
|
24
26
|
"aria-hidden": !0,
|
|
25
27
|
className: "text-sm font-medium text-muted-foreground",
|
|
26
28
|
children: e("material.theme-picker.mode", "Mode")
|
|
27
29
|
}),
|
|
28
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ _(f, {})
|
|
29
31
|
]
|
|
30
32
|
});
|
|
31
33
|
}
|
|
32
34
|
//#endregion
|
|
35
|
+
//#region lib/theme-picker/partials/tile-icons.ts
|
|
36
|
+
var E = 4;
|
|
37
|
+
function D(e, t) {
|
|
38
|
+
try {
|
|
39
|
+
let n = x(e.iconStyle), r = e.icons ?? "school";
|
|
40
|
+
return S(r), (typeof r == "string" ? y[r] : r).slice(0, E).map((e, r) => {
|
|
41
|
+
let [i] = S([e], n[r % n.length]);
|
|
42
|
+
return C(i, t);
|
|
43
|
+
});
|
|
44
|
+
} catch (e) {
|
|
45
|
+
if (e instanceof b) return [];
|
|
46
|
+
throw e;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
33
50
|
//#region lib/theme-picker/partials/mini-background.tsx
|
|
34
|
-
function
|
|
35
|
-
|
|
51
|
+
function O({ background: e }) {
|
|
52
|
+
let t = e ? e.preset : "none", n = c(), r = e && t === "icons" ? D(e, n) : [];
|
|
53
|
+
return /* @__PURE__ */ _("span", {
|
|
36
54
|
"aria-hidden": !0,
|
|
37
55
|
"data-slot": "theme-tile-background",
|
|
38
|
-
"data-preset":
|
|
56
|
+
"data-preset": t,
|
|
39
57
|
"data-tone": e ? e.tone ?? "primary" : "none",
|
|
40
|
-
"data-intensity": e ? e.intensity ?? "default" : "none"
|
|
58
|
+
"data-intensity": e ? e.intensity ?? "default" : "none",
|
|
59
|
+
children: r.map((e, t) => /* @__PURE__ */ _("svg", {
|
|
60
|
+
"aria-hidden": "true",
|
|
61
|
+
"data-slot": "theme-tile-icon",
|
|
62
|
+
"data-n": t + 1,
|
|
63
|
+
children: /* @__PURE__ */ _("use", { href: e })
|
|
64
|
+
}, `${t}-${e}`))
|
|
41
65
|
});
|
|
42
66
|
}
|
|
43
67
|
//#endregion
|
|
44
68
|
//#region lib/theme-picker/partials/theme-tile.tsx
|
|
45
|
-
function
|
|
46
|
-
let l = /* @__PURE__ */
|
|
69
|
+
function k({ theme: e, label: r, showBackground: s, background: c }) {
|
|
70
|
+
let l = /* @__PURE__ */ _(m, {
|
|
47
71
|
theme: e,
|
|
48
72
|
asChild: !0,
|
|
49
|
-
children: /* @__PURE__ */
|
|
73
|
+
children: /* @__PURE__ */ v(i, {
|
|
50
74
|
"data-slot": "theme-tile",
|
|
51
75
|
children: [
|
|
52
|
-
s && /* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
76
|
+
s && /* @__PURE__ */ _(O, { background: c }),
|
|
77
|
+
/* @__PURE__ */ v("span", {
|
|
54
78
|
"data-slot": "theme-tile-swatches",
|
|
55
79
|
"aria-hidden": !0,
|
|
56
80
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ _("i", { "data-swatch": "primary" }),
|
|
82
|
+
/* @__PURE__ */ _("i", { "data-swatch": "secondary" }),
|
|
83
|
+
/* @__PURE__ */ _("i", { "data-swatch": "tertiary" })
|
|
60
84
|
]
|
|
61
85
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ _("span", {
|
|
63
87
|
"data-slot": "theme-tile-label",
|
|
64
88
|
children: r
|
|
65
89
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ _(a, {
|
|
67
91
|
asChild: !0,
|
|
68
|
-
children: /* @__PURE__ */
|
|
92
|
+
children: /* @__PURE__ */ _(h, {
|
|
69
93
|
"aria-hidden": !0,
|
|
70
94
|
"data-slot": "theme-tile-check"
|
|
71
95
|
})
|
|
@@ -73,14 +97,14 @@ function x({ theme: e, label: r, showBackground: s, background: c }) {
|
|
|
73
97
|
]
|
|
74
98
|
})
|
|
75
99
|
});
|
|
76
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ _(t, {
|
|
77
101
|
value: e.name,
|
|
78
|
-
...o(l, /* @__PURE__ */
|
|
102
|
+
...o(l, /* @__PURE__ */ _(n, {}))
|
|
79
103
|
});
|
|
80
104
|
}
|
|
81
105
|
//#endregion
|
|
82
106
|
//#region lib/theme-picker/theme-label.ts
|
|
83
|
-
function
|
|
107
|
+
function A(e, t) {
|
|
84
108
|
let { label: n, name: r } = e;
|
|
85
109
|
if (typeof n == "string") return n;
|
|
86
110
|
if (n) {
|
|
@@ -91,28 +115,28 @@ function S(e, t) {
|
|
|
91
115
|
}
|
|
92
116
|
//#endregion
|
|
93
117
|
//#region lib/theme-picker/theme-picker.tsx
|
|
94
|
-
function
|
|
95
|
-
let { t:
|
|
96
|
-
return /* @__PURE__ */
|
|
118
|
+
function j({ themes: t, value: n, onValueChange: i, showMode: a = !0, showBackground: o = !0, layout: c = "grid", className: f, ...m }) {
|
|
119
|
+
let { t: h, language: y } = s(), b = g(d), { themeName: x, setThemeName: S } = l(), C = u()?.name ?? x, E = t ?? b ?? w;
|
|
120
|
+
return /* @__PURE__ */ v("div", {
|
|
97
121
|
"data-slot": "theme-picker",
|
|
98
|
-
"data-layout":
|
|
99
|
-
className: e("flex flex-col gap-4",
|
|
122
|
+
"data-layout": c,
|
|
123
|
+
className: e("flex flex-col gap-4", f),
|
|
100
124
|
...m,
|
|
101
|
-
children: [/* @__PURE__ */
|
|
125
|
+
children: [/* @__PURE__ */ _(r, {
|
|
102
126
|
"data-slot": "theme-picker-group",
|
|
103
|
-
"aria-label":
|
|
104
|
-
value: n ??
|
|
127
|
+
"aria-label": h("material.theme-picker.label", "Theme"),
|
|
128
|
+
value: n ?? C,
|
|
105
129
|
onValueChange: (e) => {
|
|
106
|
-
n === void 0 &&
|
|
130
|
+
n === void 0 && S(e), i?.(e);
|
|
107
131
|
},
|
|
108
|
-
children:
|
|
132
|
+
children: E.map((e) => /* @__PURE__ */ _(k, {
|
|
109
133
|
theme: e,
|
|
110
|
-
label:
|
|
134
|
+
label: A(e, y),
|
|
111
135
|
showBackground: o,
|
|
112
|
-
background:
|
|
136
|
+
background: p(e.name, e).background
|
|
113
137
|
}, e.name))
|
|
114
|
-
}), a && /* @__PURE__ */
|
|
138
|
+
}), a && /* @__PURE__ */ _(T, {})]
|
|
115
139
|
});
|
|
116
140
|
}
|
|
117
141
|
//#endregion
|
|
118
|
-
export {
|
|
142
|
+
export { j as ThemePicker };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./use-material-translation-DkxcLbLM.js";
|
|
2
2
|
import { i as t } from "./theme-store-CSl51uNH.js";
|
|
3
|
-
import { n, t as r } from "./use-theme-
|
|
4
|
-
import { r as i } from "./theme-context-
|
|
3
|
+
import { n, t as r } from "./use-theme-DMcyJ52N.js";
|
|
4
|
+
import { r as i } from "./theme-context-Cofk6vgs.js";
|
|
5
5
|
import { n as a, t as o } from "./toggle-group-j8zaxEg1.js";
|
|
6
6
|
import { Monitor as s, Moon as c, Sun as l } from "lucide-react";
|
|
7
7
|
import { useContext as u, useEffect as d } from "react";
|
package/dist/themes.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./is-production-GLw59WU8.js";
|
|
2
2
|
import { t } from "./use-ssr-media-query-C6M5m8sf.js";
|
|
3
3
|
import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./theme-store-CSl51uNH.js";
|
|
4
|
-
import { a as l, n as u, r as d } from "./theme-context-
|
|
4
|
+
import { a as l, n as u, r as d } from "./theme-context-Cofk6vgs.js";
|
|
5
5
|
import { t as f } from "./warn-once-C_e47JM8.js";
|
|
6
|
-
import { n as p, t as m } from "./nxgt-theme-
|
|
6
|
+
import { n as p, t as m } from "./nxgt-theme-ZS945iMP.js";
|
|
7
7
|
import { useEffect as h, useLayoutEffect as g, useMemo as _, useSyncExternalStore as v } from "react";
|
|
8
8
|
import { jsx as y } from "react/jsx-runtime";
|
|
9
9
|
import { THEME_BOOT_SCRIPT as b, themeBootScript as x } from "@nxgt/material-core/theme/boot";
|