@krizaka/ui 3.54.0 → 3.59.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/README.md +1 -0
- package/dist/{RotatingWord-D9s7FXFD.d.ts → RotatingWord-COSabR2c.d.ts} +2 -1
- package/dist/account-menu.d.ts +8 -3
- package/dist/account-menu.js +8 -1
- package/dist/account-menu.js.map +1 -1
- package/dist/account-settings.d.ts +153 -61
- package/dist/account-settings.js +243 -160
- package/dist/account-settings.js.map +1 -1
- package/dist/achievement.d.ts +2 -1
- package/dist/action-bar.d.ts +3 -2
- package/dist/activity-feed.d.ts +2 -1
- package/dist/agenda.d.ts +2 -1
- package/dist/alert.d.ts +2 -1
- package/dist/anatomy-plate.d.ts +6 -2
- package/dist/anatomy-plate.js +4 -0
- package/dist/anatomy-plate.js.map +1 -1
- package/dist/app-header/search.d.ts +64 -0
- package/dist/app-header/search.js +70 -0
- package/dist/app-header/search.js.map +1 -0
- package/dist/app-header.d.ts +89 -4
- package/dist/app-header.js +63 -5
- package/dist/app-header.js.map +1 -1
- package/dist/app-shell.d.ts +26 -25
- package/dist/app-shell.js +31 -40
- package/dist/app-shell.js.map +1 -1
- package/dist/argument-card.d.ts +3 -2
- package/dist/argument-card.js +3 -3
- package/dist/audio-player.d.ts +2 -1
- package/dist/auth-layout.d.ts +11 -10
- package/dist/avatar/defaults.d.ts +2 -1
- package/dist/avatar.d.ts +2 -1
- package/dist/badge.d.ts +2 -1
- package/dist/bird-plate.d.ts +7 -3
- package/dist/bird-plate.js +2 -2
- package/dist/bird-plate.js.map +1 -1
- package/dist/blocks.css +235 -27
- package/dist/button.d.ts +2 -1
- package/dist/captcha.d.ts +2 -1
- package/dist/captcha.js +1 -0
- package/dist/captcha.js.map +1 -1
- package/dist/card-grid.d.ts +2 -1
- package/dist/card.d.ts +2 -1
- package/dist/catalogue-page.d.ts +82 -2
- package/dist/catalogue-page.js +156 -13
- package/dist/catalogue-page.js.map +1 -1
- package/dist/changelog-page.d.ts +2 -1
- package/dist/chapter.d.ts +2 -1
- package/dist/chat.d.ts +14 -13
- package/dist/chat.js +2 -2
- package/dist/chat.js.map +1 -1
- package/dist/checkbox.d.ts +2 -1
- package/dist/checkbox.js +1 -1
- package/dist/checkbox.js.map +1 -1
- package/dist/chip-link.d.ts +2 -1
- package/dist/chip-row.d.ts +8 -7
- package/dist/chip.d.ts +55 -1
- package/dist/chip.js +14 -98
- package/dist/chip.js.map +1 -1
- package/dist/choice-grid.d.ts +3 -2
- package/dist/choice-grid.js +28 -88
- package/dist/choice-grid.js.map +1 -1
- package/dist/chunk-27AWSJTK.js +46 -0
- package/dist/chunk-27AWSJTK.js.map +1 -0
- package/dist/{chunk-YGIN2YIY.js → chunk-3X3OF4TI.js} +2 -2
- package/dist/chunk-3X3OF4TI.js.map +1 -0
- package/dist/{chunk-KBQD6HE3.js → chunk-4GQH27IT.js} +3 -3
- package/dist/{chunk-KBQD6HE3.js.map → chunk-4GQH27IT.js.map} +1 -1
- package/dist/{chunk-YHKTYFOQ.js → chunk-5LANVCK7.js} +383 -107
- package/dist/chunk-5LANVCK7.js.map +1 -0
- package/dist/{chunk-KDXRYUD3.js → chunk-5QEXOGO2.js} +3 -1
- package/dist/{chunk-KDXRYUD3.js.map → chunk-5QEXOGO2.js.map} +1 -1
- package/dist/chunk-5VEVYDVC.js +11 -0
- package/dist/chunk-5VEVYDVC.js.map +1 -0
- package/dist/chunk-7J2L4HOD.js +340 -0
- package/dist/chunk-7J2L4HOD.js.map +1 -0
- package/dist/chunk-BDIU5LZB.js +18 -0
- package/dist/chunk-BDIU5LZB.js.map +1 -0
- package/dist/chunk-BQ4EOR2O.js +177 -0
- package/dist/chunk-BQ4EOR2O.js.map +1 -0
- package/dist/chunk-CSRKYZ53.js +39 -0
- package/dist/chunk-CSRKYZ53.js.map +1 -0
- package/dist/chunk-F6JTHPHE.js +399 -0
- package/dist/chunk-F6JTHPHE.js.map +1 -0
- package/dist/chunk-HEKDKM5Y.js +128 -0
- package/dist/chunk-HEKDKM5Y.js.map +1 -0
- package/dist/chunk-KGLRZMCY.js +16 -0
- package/dist/chunk-KGLRZMCY.js.map +1 -0
- package/dist/chunk-KID32IRJ.js +18 -0
- package/dist/chunk-KID32IRJ.js.map +1 -0
- package/dist/chunk-OGWB76BR.js +90 -0
- package/dist/chunk-OGWB76BR.js.map +1 -0
- package/dist/{chunk-4LYKBSOG.js → chunk-USPOIQV5.js} +2 -2
- package/dist/chunk-USPOIQV5.js.map +1 -0
- package/dist/chunk-UYGUSYIC.js +173 -0
- package/dist/chunk-UYGUSYIC.js.map +1 -0
- package/dist/{chunk-7NRSPHAF.js → chunk-VB7MWE2N.js} +2 -2
- package/dist/{chunk-7NRSPHAF.js.map → chunk-VB7MWE2N.js.map} +1 -1
- package/dist/chunk-WOZP3JLW.js +51 -0
- package/dist/chunk-WOZP3JLW.js.map +1 -0
- package/dist/chunk-XVXFMVG3.js +27 -0
- package/dist/chunk-XVXFMVG3.js.map +1 -0
- package/dist/chunk-YCZ7N6Q6.js +385 -0
- package/dist/chunk-YCZ7N6Q6.js.map +1 -0
- package/dist/code-block.d.ts +2 -1
- package/dist/code-block.js +81 -98
- package/dist/code-block.js.map +1 -1
- package/dist/combobox.d.ts +20 -19
- package/dist/combobox.js +3 -2
- package/dist/command.d.ts +21 -20
- package/dist/comparison-table.d.ts +2 -1
- package/dist/component-page.d.ts +6 -2
- package/dist/component-page.js +5 -0
- package/dist/component-page.js.map +1 -1
- package/dist/confirm-button.d.ts +2 -1
- package/dist/contact-page.d.ts +2 -1
- package/dist/continue-prompt.d.ts +6 -2
- package/dist/continue-prompt.js +4 -0
- package/dist/continue-prompt.js.map +1 -1
- package/dist/countdown.d.ts +2 -1
- package/dist/cover-hero.d.ts +20 -19
- package/dist/cover-hero.js +25 -42
- package/dist/cover-hero.js.map +1 -1
- package/dist/cta-panel.d.ts +2 -1
- package/dist/dashboard-layout.d.ts +50 -2
- package/dist/dashboard-layout.js +66 -11
- package/dist/dashboard-layout.js.map +1 -1
- package/dist/data-table.d.ts +103 -4
- package/dist/data-table.js +23 -7
- package/dist/date-picker.d.ts +29 -28
- package/dist/date-picker.js +2 -2
- package/dist/date-picker.js.map +1 -1
- package/dist/decision-list.d.ts +2 -1
- package/dist/description-list.d.ts +2 -1
- package/dist/detail-layout.d.ts +147 -3
- package/dist/detail-layout.js +143 -17
- package/dist/detail-layout.js.map +1 -1
- package/dist/{dialog-D42QwYb_.d.ts → dialog-DpUwec2g.d.ts} +2 -1
- package/dist/dialog.d.ts +3 -2
- package/dist/docs-article-page.d.ts +2 -1
- package/dist/docs-hub-page.d.ts +2 -1
- package/dist/docs-layout.d.ts +2 -1
- package/dist/docs-nav.d.ts +3 -10
- package/dist/document-viewer.d.ts +5 -4
- package/dist/doodle.d.ts +32 -0
- package/dist/doodle.js +70 -0
- package/dist/doodle.js.map +1 -0
- package/dist/drop-overlay.d.ts +14 -5
- package/dist/drop-overlay.js +16 -6
- package/dist/drop-overlay.js.map +1 -1
- package/dist/dropdown-menu.d.ts +2 -1
- package/dist/dropdown-menu.js +13 -74
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/elephant.d.ts +4 -1
- package/dist/elephant.js +4 -0
- package/dist/elephant.js.map +1 -1
- package/dist/empty-state.d.ts +2 -1
- package/dist/engine-flow.d.ts +2 -1
- package/dist/error-page.d.ts +2 -1
- package/dist/field.js +1 -1
- package/dist/field.js.map +1 -1
- package/dist/file-upload.d.ts +14 -13
- package/dist/filter-bar.d.ts +84 -11
- package/dist/filter-bar.js +6 -2
- package/dist/flock.d.ts +3 -2
- package/dist/footnote.d.ts +2 -1
- package/dist/force-update-screen.d.ts +13 -8
- package/dist/force-update-screen.js +4 -0
- package/dist/force-update-screen.js.map +1 -1
- package/dist/form/server.d.ts +2 -1
- package/dist/form.d.ts +2 -1
- package/dist/gallery-page.d.ts +6 -2
- package/dist/gallery-page.js +4 -0
- package/dist/gallery-page.js.map +1 -1
- package/dist/genui.d.ts +2 -1
- package/dist/genui.js +5 -5
- package/dist/{geometry-DX-W-Yyf.d.ts → geometry-DZ4Q3hDQ.d.ts} +2 -1
- package/dist/glossary-term.d.ts +2 -1
- package/dist/glossary.d.ts +2 -1
- package/dist/glow-card.d.ts +2 -1
- package/dist/goal-gauge.d.ts +2 -1
- package/dist/grade-stamp.d.ts +23 -0
- package/dist/grade-stamp.js +42 -0
- package/dist/grade-stamp.js.map +1 -0
- package/dist/how-it-works-page.d.ts +2 -1
- package/dist/image-cropper.d.ts +15 -6
- package/dist/image-cropper.js +4 -0
- package/dist/image-cropper.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -4
- package/dist/iso.d.ts +2 -1
- package/dist/kanban.d.ts +5 -1
- package/dist/kanban.js +4 -0
- package/dist/kanban.js.map +1 -1
- package/dist/kbd.d.ts +2 -1
- package/dist/kind-config-editor.d.ts +152 -0
- package/dist/kind-config-editor.js +574 -0
- package/dist/kind-config-editor.js.map +1 -0
- package/dist/kpi-explained.d.ts +2 -1
- package/dist/landing-page.d.ts +2 -1
- package/dist/landscape.d.ts +6 -2
- package/dist/landscape.js +4 -0
- package/dist/landscape.js.map +1 -1
- package/dist/language-switch/server.d.ts +2 -1
- package/dist/language-switch.d.ts +11 -10
- package/dist/legal-page.d.ts +2 -1
- package/dist/link-card.d.ts +2 -1
- package/dist/list.d.ts +2 -1
- package/dist/list.js +1 -1
- package/dist/loader.d.ts +2 -1
- package/dist/longform-page.d.ts +2 -1
- package/dist/maintenance-screen.d.ts +10 -5
- package/dist/maintenance-screen.js +4 -0
- package/dist/maintenance-screen.js.map +1 -1
- package/dist/map.d.ts +8 -7
- package/dist/map.js +30 -0
- package/dist/map.js.map +1 -1
- package/dist/markdown.d.ts +7 -2
- package/dist/markdown.js +12 -5
- package/dist/markdown.js.map +1 -1
- package/dist/marketing-layout.d.ts +5 -4
- package/dist/marquee.d.ts +2 -1
- package/dist/mascot-quote.d.ts +2 -1
- package/dist/mascot-state.d.ts +3 -2
- package/dist/mascots.d.ts +4 -3
- package/dist/match-dialog.d.ts +6 -2
- package/dist/match-dialog.js +4 -0
- package/dist/match-dialog.js.map +1 -1
- package/dist/media-capture.d.ts +11 -5
- package/dist/media-capture.js +4 -0
- package/dist/media-capture.js.map +1 -1
- package/dist/media-gallery.d.ts +2 -1
- package/dist/media-grid.d.ts +3 -10
- package/dist/meta-row.d.ts +2 -1
- package/dist/meter.d.ts +2 -1
- package/dist/meter.js +5 -121
- package/dist/meter.js.map +1 -1
- package/dist/motion.d.ts +3 -2
- package/dist/native/form.d.ts +2 -1
- package/dist/native/list.d.ts +2 -1
- package/dist/native/map.d.ts +2 -1
- package/dist/native/map.js +30 -0
- package/dist/native/map.js.map +1 -1
- package/dist/native/markdown.d.ts +11 -3
- package/dist/native/markdown.js +46 -7
- package/dist/native/markdown.js.map +1 -1
- package/dist/native/media-capture.d.ts +3 -1
- package/dist/native/media-capture.js +5 -0
- package/dist/native/media-capture.js.map +1 -1
- package/dist/native/media-picker.d.ts +2 -1
- package/dist/native/vertical-video.d.ts +10 -3
- package/dist/native/vertical-video.js +6 -0
- package/dist/native/vertical-video.js.map +1 -1
- package/dist/native/video-player.d.ts +2 -1
- package/dist/native.d.ts +323 -4
- package/dist/native.js +1974 -1348
- package/dist/native.js.map +1 -1
- package/dist/nav-bar/me.d.ts +33 -0
- package/dist/nav-bar/me.js +23 -0
- package/dist/nav-bar/me.js.map +1 -0
- package/dist/nav-bar.d.ts +61 -2
- package/dist/nav-bar.js +92 -48
- package/dist/nav-bar.js.map +1 -1
- package/dist/next-actions.d.ts +2 -1
- package/dist/notification-preferences.d.ts +152 -0
- package/dist/notification-preferences.js +78 -0
- package/dist/notification-preferences.js.map +1 -0
- package/dist/number-ticker.d.ts +2 -1
- package/dist/opening-hours.d.ts +2 -1
- package/dist/page-header.d.ts +2 -1
- package/dist/page-header.js +1 -1
- package/dist/page-header.js.map +1 -1
- package/dist/page-hero.d.ts +2 -1
- package/dist/page-index.d.ts +2 -1
- package/dist/page.d.ts +2 -1
- package/dist/pagination.d.ts +2 -1
- package/dist/photo-grid.d.ts +2 -1
- package/dist/pointer-light.d.ts +2 -1
- package/dist/pointer-light.js +5 -0
- package/dist/pointer-light.js.map +1 -1
- package/dist/popover.d.ts +2 -1
- package/dist/pricing-page.d.ts +2 -1
- package/dist/product-page.d.ts +6 -2
- package/dist/product-page.js +4 -0
- package/dist/product-page.js.map +1 -1
- package/dist/profile-card.d.ts +120 -1
- package/dist/profile-card.js +68 -21
- package/dist/profile-card.js.map +1 -1
- package/dist/progress.d.ts +2 -1
- package/dist/promise-card.d.ts +6 -2
- package/dist/promise-card.js +4 -0
- package/dist/promise-card.js.map +1 -1
- package/dist/quota-meter.d.ts +114 -0
- package/dist/quota-meter.js +58 -0
- package/dist/quota-meter.js.map +1 -0
- package/dist/radio-group.d.ts +2 -1
- package/dist/radio-group.js +7 -9
- package/dist/radio-group.js.map +1 -1
- package/dist/rail-nav.d.ts +35 -18
- package/dist/rail-nav.js +45 -56
- package/dist/rail-nav.js.map +1 -1
- package/dist/recipes.d.ts +2 -1
- package/dist/retro-tv.d.ts +31 -0
- package/dist/retro-tv.js +124 -0
- package/dist/retro-tv.js.map +1 -0
- package/dist/router.d.ts +13 -1
- package/dist/router.js +85 -8
- package/dist/router.js.map +1 -1
- package/dist/scroll-stage.d.ts +7 -2
- package/dist/scroll-stage.js +5 -0
- package/dist/scroll-stage.js.map +1 -1
- package/dist/search-field.d.ts +2 -1
- package/dist/search-field.js +1 -1
- package/dist/section-backdrop.d.ts +2 -1
- package/dist/separator.d.ts +2 -1
- package/dist/service-card.d.ts +9 -8
- package/dist/settings-layout.d.ts +2 -1
- package/dist/settings-layout.js +10 -324
- package/dist/settings-layout.js.map +1 -1
- package/dist/showcase.d.ts +11 -3
- package/dist/showcase.js +5 -0
- package/dist/showcase.js.map +1 -1
- package/dist/signature.d.ts +20 -0
- package/dist/signature.js +39 -0
- package/dist/signature.js.map +1 -0
- package/dist/site-cahier.d.ts +187 -0
- package/dist/site-cahier.js +844 -0
- package/dist/site-cahier.js.map +1 -0
- package/dist/site-footer.d.ts +2 -1
- package/dist/site-footer.js +1 -1
- package/dist/sites.d.ts +2 -1
- package/dist/sites.js +1 -1
- package/dist/sites.js.map +1 -1
- package/dist/skeleton.d.ts +2 -1
- package/dist/skip-link.d.ts +2 -1
- package/dist/slider.d.ts +2 -1
- package/dist/slot-picker.d.ts +86 -13
- package/dist/slot-picker.js +98 -16
- package/dist/slot-picker.js.map +1 -1
- package/dist/slot.d.ts +1 -1
- package/dist/specimen-tag.d.ts +2 -1
- package/dist/speed-lines.d.ts +19 -0
- package/dist/speed-lines.js +45 -0
- package/dist/speed-lines.js.map +1 -0
- package/dist/spinner.d.ts +2 -1
- package/dist/split-view.d.ts +2 -1
- package/dist/stage-banner.d.ts +2 -1
- package/dist/stat.d.ts +2 -1
- package/dist/stat.js +1 -1
- package/dist/stat.js.map +1 -1
- package/dist/status-chip.d.ts +44 -0
- package/dist/status-chip.js +137 -0
- package/dist/status-chip.js.map +1 -0
- package/dist/status-page.d.ts +6 -2
- package/dist/status-page.js +5 -0
- package/dist/status-page.js.map +1 -1
- package/dist/step-progress.d.ts +2 -1
- package/dist/step-showcase.d.ts +2 -1
- package/dist/stepper.d.ts +2 -1
- package/dist/sticky-action.d.ts +28 -5
- package/dist/sticky-action.js +10 -4
- package/dist/sticky-action.js.map +1 -1
- package/dist/stuck.d.ts +28 -0
- package/dist/stuck.js +26 -0
- package/dist/stuck.js.map +1 -0
- package/dist/swipe-deck.d.ts +11 -3
- package/dist/swipe-deck.js +5 -0
- package/dist/swipe-deck.js.map +1 -1
- package/dist/switch.d.ts +2 -1
- package/dist/switch.js +4 -32
- package/dist/switch.js.map +1 -1
- package/dist/tabs.d.ts +48 -8
- package/dist/tabs.js +62 -12
- package/dist/tabs.js.map +1 -1
- package/dist/tag-input.d.ts +2 -1
- package/dist/tag-input.js +3 -2
- package/dist/tag-input.js.map +1 -1
- package/dist/tag-selector.d.ts +30 -4
- package/dist/tag-selector.js +90 -8
- package/dist/tag-selector.js.map +1 -1
- package/dist/taped-photo.d.ts +2 -1
- package/dist/taped-photo.js +3 -20
- package/dist/taped-photo.js.map +1 -1
- package/dist/terminal-replay.d.ts +6 -2
- package/dist/terminal-replay.js +5 -1
- package/dist/terminal-replay.js.map +1 -1
- package/dist/text-style/server.d.ts +2 -1
- package/dist/text-style.d.ts +2 -1
- package/dist/theme.d.ts +21 -1
- package/dist/theme.js +37 -1
- package/dist/theme.js.map +1 -1
- package/dist/toast.d.ts +2 -1
- package/dist/toc.d.ts +2 -1
- package/dist/tooltip.d.ts +2 -1
- package/dist/tree-view.d.ts +2 -1
- package/dist/tree-view.js +4 -0
- package/dist/tree-view.js.map +1 -1
- package/dist/update-prompt.d.ts +16 -11
- package/dist/update-prompt.js +4 -0
- package/dist/update-prompt.js.map +1 -1
- package/dist/upload-queue.d.ts +2 -1
- package/dist/verified-badge.d.ts +2 -1
- package/dist/versus-card.d.ts +40 -0
- package/dist/versus-card.js +40 -0
- package/dist/versus-card.js.map +1 -0
- package/dist/vertical-video.d.ts +2 -1
- package/dist/video-player.d.ts +20 -19
- package/dist/video-player.js +7 -376
- package/dist/video-player.js.map +1 -1
- package/dist/video-trimmer.d.ts +8 -2
- package/dist/video-trimmer.js +4 -0
- package/dist/video-trimmer.js.map +1 -1
- package/dist/virtual.d.ts +8 -7
- package/dist/waveform.d.ts +2 -1
- package/package.json +249 -52
- package/registry/account-menu.json +9 -8
- package/registry/account-settings.json +258 -6
- package/registry/achievement.json +3 -4
- package/registry/action-bar.json +3 -3
- package/registry/action-sheet.json +1 -0
- package/registry/activity-feed.json +2 -1
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/anatomy-plate.json +13 -5
- package/registry/app-header.json +470 -23
- package/registry/app-shell.json +2 -2
- package/registry/argument-card.json +1 -1
- package/registry/audio-player.json +1 -1
- package/registry/auth-layout.json +1 -1
- package/registry/avatar.json +3 -2
- package/registry/badge.json +2 -1
- package/registry/bird-plate.json +16 -2
- package/registry/button.json +7 -6
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +7 -6
- package/registry/catalogue-page.json +117 -8
- package/registry/changelog-page.json +3 -5
- package/registry/chapter.json +1 -1
- package/registry/chat.json +3 -2
- package/registry/checkbox.json +4 -3
- package/registry/chip-link.json +2 -2
- package/registry/chip-row.json +2 -2
- package/registry/chip.json +388 -12
- package/registry/choice-grid.json +3 -4
- package/registry/code-block.json +1 -1
- package/registry/combobox.json +3 -2
- package/registry/command.json +2 -2
- package/registry/comparison-table.json +1 -1
- package/registry/component-page.json +14 -5
- package/registry/confirm-button.json +4 -4
- package/registry/contact-page.json +1 -1
- package/registry/continue-prompt.json +13 -5
- package/registry/countdown.json +4 -3
- package/registry/cover-hero.json +3 -4
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +91 -5
- package/registry/data-table.json +215 -8
- package/registry/date-picker.json +5 -4
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +2 -1
- package/registry/detail-layout.json +226 -8
- package/registry/dialog.json +7 -6
- package/registry/docs-article-page.json +3 -4
- package/registry/docs-hub-page.json +1 -1
- package/registry/docs-layout.json +1 -1
- package/registry/docs-nav.json +1 -1
- package/registry/document-viewer.json +3 -5
- package/registry/doodle.json +302 -0
- package/registry/drop-overlay.json +30 -16
- package/registry/dropdown-menu.json +2 -2
- package/registry/elephant.json +15 -7
- package/registry/empty-state.json +2 -1
- package/registry/engine-flow.json +1 -1
- package/registry/error-page.json +3 -5
- package/registry/examples/account-settings/appearance.d.ts +4 -0
- package/registry/examples/account-settings/appearance.js +40 -0
- package/registry/examples/account-settings/appearance.tsx +30 -0
- package/registry/examples/app-header/family.d.ts +4 -0
- package/registry/examples/app-header/family.js +41 -0
- package/registry/examples/app-header/family.tsx +37 -0
- package/registry/examples/app-header/native/family.d.ts +4 -0
- package/registry/examples/app-header/native/family.dark.png +0 -0
- package/registry/examples/app-header/native/family.js +25 -0
- package/registry/examples/app-header/native/family.light.png +0 -0
- package/registry/examples/app-header/native/family.tsx +33 -0
- package/registry/examples/catalogue-page/clients.d.ts +4 -0
- package/registry/examples/catalogue-page/clients.js +49 -0
- package/registry/examples/catalogue-page/clients.tsx +61 -0
- package/registry/examples/chip/marker-picker.d.ts +4 -0
- package/registry/examples/chip/marker-picker.js +17 -0
- package/registry/examples/chip/marker-picker.tsx +17 -0
- package/registry/examples/chip/native/marker-picker.d.ts +4 -0
- package/registry/examples/chip/native/marker-picker.dark.png +0 -0
- package/registry/examples/chip/native/marker-picker.js +18 -0
- package/registry/examples/chip/native/marker-picker.light.png +0 -0
- package/registry/examples/chip/native/marker-picker.tsx +16 -0
- package/registry/examples/chip/native/tags.d.ts +4 -0
- package/registry/examples/chip/native/tags.dark.png +0 -0
- package/registry/examples/chip/native/tags.js +22 -0
- package/registry/examples/chip/native/tags.light.png +0 -0
- package/registry/examples/chip/native/tags.tsx +20 -0
- package/registry/examples/chip/tags.d.ts +4 -0
- package/registry/examples/chip/tags.js +26 -0
- package/registry/examples/chip/tags.tsx +23 -0
- package/registry/examples/dashboard-layout/today.d.ts +4 -0
- package/registry/examples/dashboard-layout/today.js +54 -0
- package/registry/examples/dashboard-layout/today.tsx +63 -0
- package/registry/examples/data-table/applicant-files.d.ts +4 -0
- package/registry/examples/data-table/applicant-files.js +24 -0
- package/registry/examples/data-table/applicant-files.tsx +23 -0
- package/registry/examples/data-table/bulk.d.ts +4 -0
- package/registry/examples/data-table/bulk.js +45 -0
- package/registry/examples/data-table/bulk.tsx +34 -0
- package/registry/examples/data-table/checks.d.ts +4 -0
- package/registry/examples/data-table/checks.js +25 -0
- package/registry/examples/data-table/checks.tsx +24 -0
- package/registry/examples/detail-layout/client.d.ts +4 -0
- package/registry/examples/detail-layout/client.js +40 -0
- package/registry/examples/detail-layout/client.tsx +39 -0
- package/registry/examples/detail-layout/new-invoice.d.ts +4 -0
- package/registry/examples/detail-layout/new-invoice.js +44 -0
- package/registry/examples/detail-layout/new-invoice.tsx +34 -0
- package/registry/examples/detail-layout/profile.d.ts +4 -0
- package/registry/examples/detail-layout/profile.js +26 -0
- package/registry/examples/detail-layout/profile.tsx +21 -0
- package/registry/examples/doodle/bird-sketch.d.ts +4 -0
- package/registry/examples/doodle/bird-sketch.js +11 -0
- package/registry/examples/doodle/bird-sketch.tsx +12 -0
- package/registry/examples/doodle/kinds.d.ts +4 -0
- package/registry/examples/doodle/kinds.js +17 -0
- package/registry/examples/doodle/kinds.tsx +14 -0
- package/registry/examples/doodle/margin-marks.d.ts +4 -0
- package/registry/examples/doodle/margin-marks.js +27 -0
- package/registry/examples/doodle/margin-marks.tsx +19 -0
- package/registry/examples/doodle/margin.d.ts +4 -0
- package/registry/examples/doodle/margin.js +17 -0
- package/registry/examples/doodle/margin.tsx +17 -0
- package/registry/examples/filter-bar/views.d.ts +4 -0
- package/registry/examples/filter-bar/views.js +39 -0
- package/registry/examples/filter-bar/views.tsx +30 -0
- package/registry/examples/grade-stamp/coverage.d.ts +4 -0
- package/registry/examples/grade-stamp/coverage.js +12 -0
- package/registry/examples/grade-stamp/coverage.tsx +8 -0
- package/registry/examples/grade-stamp/lighthouse.d.ts +4 -0
- package/registry/examples/grade-stamp/lighthouse.js +12 -0
- package/registry/examples/grade-stamp/lighthouse.tsx +14 -0
- package/registry/examples/kind-config-editor/derived.d.ts +4 -0
- package/registry/examples/kind-config-editor/derived.js +26 -0
- package/registry/examples/kind-config-editor/derived.tsx +16 -0
- package/registry/examples/kind-config-editor/native/status-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/native/status-set.dark.png +0 -0
- package/registry/examples/kind-config-editor/native/status-set.js +22 -0
- package/registry/examples/kind-config-editor/native/status-set.light.png +0 -0
- package/registry/examples/kind-config-editor/native/status-set.tsx +19 -0
- package/registry/examples/kind-config-editor/native/tag-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/native/tag-set.dark.png +0 -0
- package/registry/examples/kind-config-editor/native/tag-set.js +20 -0
- package/registry/examples/kind-config-editor/native/tag-set.light.png +0 -0
- package/registry/examples/kind-config-editor/native/tag-set.tsx +18 -0
- package/registry/examples/kind-config-editor/status-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/status-set.js +29 -0
- package/registry/examples/kind-config-editor/status-set.tsx +25 -0
- package/registry/examples/kind-config-editor/tag-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/tag-set.js +20 -0
- package/registry/examples/kind-config-editor/tag-set.tsx +18 -0
- package/registry/examples/markdown/native/basic.dark.png +0 -0
- package/registry/examples/markdown/native/basic.light.png +0 -0
- package/registry/examples/markdown/native/wide-table.d.ts +4 -0
- package/registry/examples/markdown/native/wide-table.dark.png +0 -0
- package/registry/examples/markdown/native/wide-table.js +23 -0
- package/registry/examples/markdown/native/wide-table.light.png +0 -0
- package/registry/examples/markdown/native/wide-table.tsx +22 -0
- package/registry/examples/markdown/wide-table.d.ts +4 -0
- package/registry/examples/markdown/wide-table.js +28 -0
- package/registry/examples/markdown/wide-table.tsx +23 -0
- package/registry/examples/nav-bar/family-product.js +2 -4
- package/registry/examples/nav-bar/family-product.tsx +3 -5
- package/registry/examples/notification-preferences/default.d.ts +4 -0
- package/registry/examples/notification-preferences/default.js +29 -0
- package/registry/examples/notification-preferences/default.tsx +28 -0
- package/registry/examples/profile-card/banner.d.ts +4 -0
- package/registry/examples/profile-card/banner.js +28 -0
- package/registry/examples/profile-card/banner.tsx +24 -0
- package/registry/examples/profile-card/native/banner.d.ts +4 -0
- package/registry/examples/profile-card/native/banner.dark.png +0 -0
- package/registry/examples/profile-card/native/banner.js +22 -0
- package/registry/examples/profile-card/native/banner.light.png +0 -0
- package/registry/examples/profile-card/native/banner.tsx +18 -0
- package/registry/examples/quota-meter/default.d.ts +4 -0
- package/registry/examples/quota-meter/default.js +26 -0
- package/registry/examples/quota-meter/default.tsx +20 -0
- package/registry/examples/quota-meter/full.d.ts +4 -0
- package/registry/examples/quota-meter/full.js +25 -0
- package/registry/examples/quota-meter/full.tsx +18 -0
- package/registry/examples/rail-nav/shortcuts.d.ts +4 -0
- package/registry/examples/rail-nav/shortcuts.js +49 -0
- package/registry/examples/rail-nav/shortcuts.tsx +40 -0
- package/registry/examples/retro-tv/cabinet.d.ts +4 -0
- package/registry/examples/retro-tv/cabinet.js +12 -0
- package/registry/examples/retro-tv/cabinet.tsx +7 -0
- package/registry/examples/retro-tv/portable.d.ts +4 -0
- package/registry/examples/retro-tv/portable.js +12 -0
- package/registry/examples/retro-tv/portable.tsx +7 -0
- package/registry/examples/signature/both.d.ts +4 -0
- package/registry/examples/signature/both.js +11 -0
- package/registry/examples/signature/both.tsx +6 -0
- package/registry/examples/signature/variants.d.ts +4 -0
- package/registry/examples/signature/variants.js +14 -0
- package/registry/examples/signature/variants.tsx +11 -0
- package/registry/examples/site-cahier/java-releases.d.ts +4 -0
- package/registry/examples/site-cahier/java-releases.js +33 -0
- package/registry/examples/site-cahier/java-releases.tsx +32 -0
- package/registry/examples/site-cahier/motion-lab.d.ts +4 -0
- package/registry/examples/site-cahier/motion-lab.js +32 -0
- package/registry/examples/site-cahier/motion-lab.tsx +29 -0
- package/registry/examples/site-cahier/ts-changelog.d.ts +4 -0
- package/registry/examples/site-cahier/ts-changelog.js +24 -0
- package/registry/examples/site-cahier/ts-changelog.tsx +20 -0
- package/registry/examples/site-cahier/ts-doc.d.ts +4 -0
- package/registry/examples/site-cahier/ts-doc.js +38 -0
- package/registry/examples/site-cahier/ts-doc.tsx +27 -0
- package/registry/examples/site-cahier/ui-home.d.ts +4 -0
- package/registry/examples/site-cahier/ui-home.js +46 -0
- package/registry/examples/site-cahier/ui-home.tsx +40 -0
- package/registry/examples/slot-picker/weeks.d.ts +4 -0
- package/registry/examples/slot-picker/weeks.js +45 -0
- package/registry/examples/slot-picker/weeks.tsx +28 -0
- package/registry/examples/speed-lines/hero.d.ts +4 -0
- package/registry/examples/speed-lines/hero.js +11 -0
- package/registry/examples/speed-lines/hero.tsx +12 -0
- package/registry/examples/speed-lines/streaks.d.ts +4 -0
- package/registry/examples/speed-lines/streaks.js +11 -0
- package/registry/examples/speed-lines/streaks.tsx +12 -0
- package/registry/examples/status-chip/default.d.ts +4 -0
- package/registry/examples/status-chip/default.js +35 -0
- package/registry/examples/status-chip/default.tsx +32 -0
- package/registry/examples/status-chip/native/default.d.ts +4 -0
- package/registry/examples/status-chip/native/default.dark.png +0 -0
- package/registry/examples/status-chip/native/default.js +26 -0
- package/registry/examples/status-chip/native/default.light.png +0 -0
- package/registry/examples/status-chip/native/default.tsx +20 -0
- package/registry/examples/stuck/card.d.ts +4 -0
- package/registry/examples/stuck/card.js +13 -0
- package/registry/examples/stuck/card.tsx +14 -0
- package/registry/examples/stuck/holds.d.ts +4 -0
- package/registry/examples/stuck/holds.js +12 -0
- package/registry/examples/stuck/holds.tsx +16 -0
- package/registry/examples/stuck/tag.d.ts +4 -0
- package/registry/examples/stuck/tag.js +12 -0
- package/registry/examples/stuck/tag.tsx +13 -0
- package/registry/examples/tabs/binder.d.ts +4 -0
- package/registry/examples/tabs/binder.js +22 -0
- package/registry/examples/tabs/binder.tsx +20 -0
- package/registry/examples/tabs/native/binder.d.ts +4 -0
- package/registry/examples/tabs/native/binder.dark.png +0 -0
- package/registry/examples/tabs/native/binder.js +26 -0
- package/registry/examples/tabs/native/binder.light.png +0 -0
- package/registry/examples/tabs/native/binder.tsx +22 -0
- package/registry/examples/tag-selector/creatable.d.ts +4 -0
- package/registry/examples/tag-selector/creatable.js +41 -0
- package/registry/examples/tag-selector/creatable.tsx +29 -0
- package/registry/examples/tag-selector/native/tags.d.ts +4 -0
- package/registry/examples/tag-selector/native/tags.dark.png +0 -0
- package/registry/examples/tag-selector/native/tags.js +19 -0
- package/registry/examples/tag-selector/native/tags.light.png +0 -0
- package/registry/examples/tag-selector/native/tags.tsx +19 -0
- package/registry/examples/versus-card/alternatives.d.ts +4 -0
- package/registry/examples/versus-card/alternatives.js +20 -0
- package/registry/examples/versus-card/alternatives.tsx +14 -0
- package/registry/examples/versus-card/releases.d.ts +4 -0
- package/registry/examples/versus-card/releases.js +35 -0
- package/registry/examples/versus-card/releases.tsx +29 -0
- package/registry/fab.json +1 -0
- package/registry/field.json +3 -2
- package/registry/file-upload.json +6 -11
- package/registry/filter-bar.json +209 -9
- package/registry/flock.json +3 -4
- package/registry/footnote.json +2 -3
- package/registry/force-update-screen.json +14 -5
- package/registry/form.json +5 -4
- package/registry/gallery-page.json +14 -5
- package/registry/genui.json +2 -2
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/glow-card.json +2 -2
- package/registry/goal-gauge.json +2 -1
- package/registry/grade-stamp.json +227 -0
- package/registry/header.json +1 -0
- package/registry/how-it-works-page.json +3 -5
- package/registry/image-cropper.json +13 -5
- package/registry/image-viewer.json +3 -4
- package/registry/index.json +612 -105
- package/registry/iso.json +1 -1
- package/registry/kanban.json +13 -5
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +565 -0
- package/registry/kpi-explained.json +2 -2
- package/registry/landing-page.json +3 -5
- package/registry/landscape.json +13 -5
- package/registry/language-switch.json +1 -1
- package/registry/legal-page.json +1 -1
- package/registry/link-card.json +1 -1
- package/registry/list.json +2 -1
- package/registry/loader.json +2 -1
- package/registry/longform-page.json +1 -1
- package/registry/maintenance-screen.json +14 -5
- package/registry/map.json +3 -2
- package/registry/markdown.json +86 -9
- package/registry/marketing-layout.json +1 -1
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +12 -11
- package/registry/mascots.json +2 -1
- package/registry/match-dialog.json +14 -5
- package/registry/media-capture.json +14 -5
- package/registry/media-gallery.json +3 -5
- package/registry/media-grid.json +1 -1
- package/registry/media-picker.json +2 -3
- package/registry/meta-row.json +2 -1
- package/registry/meter.json +4 -3
- package/registry/nav-bar.json +100 -9
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +250 -0
- package/registry/number-ticker.json +2 -1
- package/registry/onboarding.json +1 -0
- package/registry/opening-hours.json +1 -1
- package/registry/otp-input.json +1 -0
- package/registry/page-header.json +2 -2
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +3 -3
- package/registry/pagination.json +2 -1
- package/registry/permission-prompt.json +2 -2
- package/registry/photo-grid.json +4 -4
- package/registry/pointer-light.json +6 -2
- package/registry/popover.json +2 -2
- package/registry/pricing-page.json +4 -6
- package/registry/product-page.json +14 -5
- package/registry/profile-card.json +232 -8
- package/registry/progress.json +4 -3
- package/registry/promise-card.json +13 -5
- package/registry/pull-to-refresh.json +1 -0
- package/registry/quota-meter.json +308 -0
- package/registry/radio-group.json +4 -3
- package/registry/rail-nav.json +48 -10
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +478 -0
- package/registry/router.json +3 -3
- package/registry/screen.json +1 -0
- package/registry/scroll-stage.json +14 -5
- package/registry/search-field.json +3 -2
- package/registry/section-backdrop.json +1 -1
- package/registry/segmented.json +1 -0
- package/registry/separator.json +2 -2
- package/registry/service-card.json +1 -1
- package/registry/settings-layout.json +2 -1
- package/registry/showcase.json +14 -5
- package/registry/signature.json +185 -0
- package/registry/site-cahier.json +548 -0
- package/registry/site-footer.json +3 -3
- package/registry/sites.json +2 -2
- package/registry/skeleton.json +2 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +5 -4
- package/registry/slot-picker.json +156 -10
- package/registry/slot.json +2 -2
- package/registry/specimen-tag.json +1 -1
- package/registry/speed-lines.json +174 -0
- package/registry/spinner.json +4 -3
- package/registry/splash-handoff.json +1 -0
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +2 -3
- package/registry/stat.json +2 -2
- package/registry/status-chip.json +350 -0
- package/registry/status-page.json +13 -5
- package/registry/step-progress.json +2 -1
- package/registry/step-showcase.json +3 -5
- package/registry/stepper.json +2 -1
- package/registry/sticky-action.json +38 -8
- package/registry/stuck.json +219 -0
- package/registry/swipe-deck.json +14 -5
- package/registry/swipeable-row.json +1 -0
- package/registry/switch.json +3 -2
- package/registry/tab-bar.json +1 -0
- package/registry/tabs.json +154 -22
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +190 -12
- package/registry/taped-photo.json +1 -1
- package/registry/terminal-replay.json +14 -5
- package/registry/text-style.json +5 -5
- package/registry/theme.json +4 -3
- package/registry/toast.json +2 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +2 -2
- package/registry/tree-view.json +6 -2
- package/registry/txt.json +1 -0
- package/registry/update-prompt.json +14 -5
- package/registry/upload-queue.json +1 -1
- package/registry/verified-badge.json +6 -6
- package/registry/versus-card.json +194 -0
- package/registry/vertical-video.json +8 -3
- package/registry/video-player.json +5 -6
- package/registry/video-trimmer.json +13 -5
- package/registry/virtual.json +2 -2
- package/registry/waveform.json +4 -3
- package/dist/chunk-4LYKBSOG.js.map +0 -1
- package/dist/chunk-HHFWK2HH.js +0 -163
- package/dist/chunk-HHFWK2HH.js.map +0 -1
- package/dist/chunk-R3LTSMS5.js +0 -75
- package/dist/chunk-R3LTSMS5.js.map +0 -1
- package/dist/chunk-YGIN2YIY.js.map +0 -1
- package/dist/chunk-YHKTYFOQ.js.map +0 -1
- package/dist/chunk-ZQW7LF4Y.js +0 -179
- package/dist/chunk-ZQW7LF4Y.js.map +0 -1
package/dist/app-header.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare const appHeader: tailwind_variants.TVReturnType<{
|
|
|
10
10
|
name?: tailwind_variants.ClassValue;
|
|
11
11
|
chips?: tailwind_variants.ClassValue;
|
|
12
12
|
actions?: tailwind_variants.ClassValue;
|
|
13
|
+
search?: tailwind_variants.ClassValue;
|
|
13
14
|
};
|
|
14
15
|
};
|
|
15
16
|
} | {
|
|
@@ -21,6 +22,7 @@ declare const appHeader: tailwind_variants.TVReturnType<{
|
|
|
21
22
|
name?: tailwind_variants.ClassValue;
|
|
22
23
|
chips?: tailwind_variants.ClassValue;
|
|
23
24
|
actions?: tailwind_variants.ClassValue;
|
|
25
|
+
search?: tailwind_variants.ClassValue;
|
|
24
26
|
};
|
|
25
27
|
};
|
|
26
28
|
} | {}, {
|
|
@@ -30,6 +32,7 @@ declare const appHeader: tailwind_variants.TVReturnType<{
|
|
|
30
32
|
name: string;
|
|
31
33
|
chips: string;
|
|
32
34
|
actions: string;
|
|
35
|
+
search: string;
|
|
33
36
|
}, undefined, {
|
|
34
37
|
[key: string]: {
|
|
35
38
|
[key: string]: tailwind_variants.ClassValue | {
|
|
@@ -39,6 +42,7 @@ declare const appHeader: tailwind_variants.TVReturnType<{
|
|
|
39
42
|
name?: tailwind_variants.ClassValue;
|
|
40
43
|
chips?: tailwind_variants.ClassValue;
|
|
41
44
|
actions?: tailwind_variants.ClassValue;
|
|
45
|
+
search?: tailwind_variants.ClassValue;
|
|
42
46
|
};
|
|
43
47
|
};
|
|
44
48
|
} | {}, {
|
|
@@ -48,6 +52,7 @@ declare const appHeader: tailwind_variants.TVReturnType<{
|
|
|
48
52
|
name: string;
|
|
49
53
|
chips: string;
|
|
50
54
|
actions: string;
|
|
55
|
+
search: string;
|
|
51
56
|
}, tailwind_variants.TVReturnTypeLike<unknown, {
|
|
52
57
|
root: string;
|
|
53
58
|
brand: string;
|
|
@@ -55,6 +60,7 @@ declare const appHeader: tailwind_variants.TVReturnType<{
|
|
|
55
60
|
name: string;
|
|
56
61
|
chips: string;
|
|
57
62
|
actions: string;
|
|
63
|
+
search: string;
|
|
58
64
|
}>>;
|
|
59
65
|
type AppHeaderProps = Omit<React.ComponentProps<"header">, "children"> & {
|
|
60
66
|
/** The product's name, as text (`Orazaka`): the only brand element on a desktop. */
|
|
@@ -70,10 +76,89 @@ type AppHeaderProps = Omit<React.ComponentProps<"header">, "children"> & {
|
|
|
70
76
|
}>;
|
|
71
77
|
/** Status chips beside the name (`Badge`): « Local · Sovereign », « Dev », a version. */
|
|
72
78
|
chips?: React.ReactNode;
|
|
73
|
-
/**
|
|
79
|
+
/** The search trigger, first of the controls: `AppHeaderSearch` (`@krizaka/ui/app-header/search`) — a field from `md`, an icon below, ⌘K. */
|
|
80
|
+
search?: React.ReactNode;
|
|
81
|
+
/** The language: `LanguageSwitch` (`@krizaka/ui/language-switch`) — a globe and « FR », labelled. */
|
|
82
|
+
language?: React.ReactNode;
|
|
83
|
+
/** The host's own controls, after the language (a theme toggle). Alone, it is the whole right side, as before. */
|
|
74
84
|
actions?: React.ReactNode;
|
|
85
|
+
/** Messages: an `AppHeaderCount` (an icon button or link with its unread count). Empty: hidden. */
|
|
86
|
+
messages?: React.ReactNode;
|
|
87
|
+
/** Notifications: an `AppHeaderCount` (or the trigger of the host's popover). Empty: hidden. */
|
|
88
|
+
notifications?: React.ReactNode;
|
|
89
|
+
/** The one primary action of the app (« New check », #588), before the account. */
|
|
90
|
+
primary?: React.ReactNode;
|
|
91
|
+
/** The account, last: `AccountMenu` with `showName` (the name from `sm`), or the visitor's Sign in. */
|
|
92
|
+
account?: React.ReactNode;
|
|
75
93
|
};
|
|
76
|
-
/** The app's top bar: the name next to the rail, the mark on a phone, chips, actions. */
|
|
77
|
-
declare function AppHeader({ name, mark, href, homeLink, chips, actions, className, ...props }: AppHeaderProps): React.JSX.Element;
|
|
94
|
+
/** The app's top bar: the name next to the rail, the mark on a phone, chips, then search · language · actions · messages · notifications · primary · account. */
|
|
95
|
+
declare function AppHeader({ name, mark, href, homeLink, chips, search, language, actions, messages, notifications, primary, account, className, ...props }: AppHeaderProps): React.JSX.Element;
|
|
78
96
|
|
|
79
|
-
|
|
97
|
+
declare const appHeaderCount: tailwind_variants.TVReturnType<{
|
|
98
|
+
[key: string]: {
|
|
99
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
100
|
+
root?: tailwind_variants.ClassValue;
|
|
101
|
+
icon?: tailwind_variants.ClassValue;
|
|
102
|
+
count?: tailwind_variants.ClassValue;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
} | {
|
|
106
|
+
[x: string]: {
|
|
107
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
108
|
+
root?: tailwind_variants.ClassValue;
|
|
109
|
+
icon?: tailwind_variants.ClassValue;
|
|
110
|
+
count?: tailwind_variants.ClassValue;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
} | {}, {
|
|
114
|
+
root: string;
|
|
115
|
+
icon: string;
|
|
116
|
+
count: string;
|
|
117
|
+
}, undefined, {
|
|
118
|
+
[key: string]: {
|
|
119
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
120
|
+
root?: tailwind_variants.ClassValue;
|
|
121
|
+
icon?: tailwind_variants.ClassValue;
|
|
122
|
+
count?: tailwind_variants.ClassValue;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
} | {}, {
|
|
126
|
+
root: string;
|
|
127
|
+
icon: string;
|
|
128
|
+
count: string;
|
|
129
|
+
}, tailwind_variants.TVReturnTypeLike<unknown, {
|
|
130
|
+
root: string;
|
|
131
|
+
icon: string;
|
|
132
|
+
count: string;
|
|
133
|
+
}>>;
|
|
134
|
+
type AppHeaderCountProps = Omit<React.ComponentProps<"button">, "children"> & {
|
|
135
|
+
/** What it is (« Notifications », « Messages ») — passed translated; its accessible name, with the count. */
|
|
136
|
+
label: string;
|
|
137
|
+
/** The icon (`<NotificationIcon />` of @krizaka/icons): decorative, the name is `label`. */
|
|
138
|
+
icon: React.ReactNode;
|
|
139
|
+
/** The unread count; 0 or absent draws no badge. */
|
|
140
|
+
count?: number;
|
|
141
|
+
/** The count in words, said after the label (« 3 new », « 3 nouvelles ») — passed translated, with its plural. Default: the number. */
|
|
142
|
+
countLabel?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Above it the badge shows `max+`.
|
|
145
|
+
* @default 99
|
|
146
|
+
*/
|
|
147
|
+
max?: number;
|
|
148
|
+
/** A link to the page (`/notifications`) instead of a button. */
|
|
149
|
+
href?: string;
|
|
150
|
+
/** Your router's link (Next's `Link`) for `href`; an `<a>` otherwise. */
|
|
151
|
+
linkAs?: React.ElementType;
|
|
152
|
+
/** The page is the one it leads to (`aria-current="page"`). */
|
|
153
|
+
current?: boolean;
|
|
154
|
+
};
|
|
155
|
+
/** An icon button or link of the top bar with an unread count, the count announced in its name. */
|
|
156
|
+
declare function AppHeaderCount({ label, icon, count, countLabel, max, href, linkAs, current, className, type, ...props }: AppHeaderCountProps): React.JSX.Element;
|
|
157
|
+
|
|
158
|
+
/** What the badge shows: the count, or `max+` above `max`; nothing at 0. */
|
|
159
|
+
declare function countText(count: number | undefined, max?: number): string | null;
|
|
160
|
+
/** The control's accessible name: the label alone, or the label and the count's words (« Notifications, 3 new »). */
|
|
161
|
+
declare function countName(label: string, count: number | undefined, countLabel?: string): string;
|
|
162
|
+
|
|
163
|
+
export { AppHeader, AppHeaderCount, appHeader, appHeaderCount, countName, countText };
|
|
164
|
+
export type { AppHeaderCountProps, AppHeaderProps };
|
package/dist/app-header.js
CHANGED
|
@@ -4,29 +4,87 @@ import { tv } from "tailwind-variants";
|
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
var appHeader = tv({
|
|
6
6
|
slots: {
|
|
7
|
-
root: "sticky top-0 z-30 flex h-14 w-full shrink-0 items-center gap-3 border-b border-border-subtle bg-surface-1 px-4 md:bg-surface-1 md:pl-3 md:pr-5",
|
|
7
|
+
root: "sticky top-0 z-30 flex h-14 w-full min-w-0 shrink-0 items-center gap-3 border-b border-border-subtle bg-surface-1 px-4 md:bg-surface-1 md:pl-3 md:pr-5",
|
|
8
8
|
// The rail's mark is 56 px tall and so is this bar: the word shares the mark's line, right after the rail.
|
|
9
9
|
brand: "flex min-w-0 items-center gap-2 font-display text-sm font-bold tracking-tight text-fg no-underline",
|
|
10
10
|
mark: "inline-flex shrink-0 md:hidden",
|
|
11
11
|
name: "truncate",
|
|
12
12
|
chips: "flex shrink-0 items-center gap-2",
|
|
13
|
-
|
|
13
|
+
// The controls: one row at the right, in the order of the slots. They keep their size; the name gives way.
|
|
14
|
+
actions: "ml-auto flex shrink-0 items-center gap-1 sm:gap-2",
|
|
15
|
+
search: "flex min-w-0 shrink-0"
|
|
14
16
|
}
|
|
15
17
|
});
|
|
16
18
|
var s = appHeader();
|
|
17
|
-
function AppHeader({ name, mark, href, homeLink, chips, actions, className, ...props }) {
|
|
19
|
+
function AppHeader({ name, mark, href, homeLink, chips, search, language, actions, messages, notifications, primary, account, className, ...props }) {
|
|
18
20
|
const brand = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
21
|
mark && /* @__PURE__ */ jsx("span", { "data-brand-mark": true, className: s.mark(), children: mark }),
|
|
20
22
|
/* @__PURE__ */ jsx("span", { className: s.name(), children: name })
|
|
21
23
|
] });
|
|
24
|
+
const hasControls = [search, language, actions, messages, notifications, primary, account].some(Boolean);
|
|
22
25
|
return /* @__PURE__ */ jsxs("header", { className: s.root({ className }), ...props, children: [
|
|
23
26
|
homeLink ? React.cloneElement(homeLink, { className: s.brand() }, brand) : href ? /* @__PURE__ */ jsx("a", { href, className: s.brand(), children: brand }) : /* @__PURE__ */ jsx("div", { className: s.brand(), children: brand }),
|
|
24
27
|
chips && /* @__PURE__ */ jsx("div", { className: s.chips(), children: chips }),
|
|
25
|
-
|
|
28
|
+
hasControls && /* @__PURE__ */ jsxs("div", { className: s.actions(), children: [
|
|
29
|
+
search && /* @__PURE__ */ jsx("div", { "data-slot": "search", className: s.search(), children: search }),
|
|
30
|
+
language,
|
|
31
|
+
actions,
|
|
32
|
+
messages,
|
|
33
|
+
notifications,
|
|
34
|
+
primary,
|
|
35
|
+
account
|
|
36
|
+
] })
|
|
26
37
|
] });
|
|
27
38
|
}
|
|
39
|
+
|
|
40
|
+
// src/app-header/count.tsx
|
|
41
|
+
import { tv as tv2 } from "tailwind-variants";
|
|
42
|
+
|
|
43
|
+
// src/app-header/count-text.ts
|
|
44
|
+
function countText(count, max = 99) {
|
|
45
|
+
if (!count || count <= 0 || !Number.isFinite(count)) return null;
|
|
46
|
+
return count > max ? `${max}+` : String(Math.floor(count));
|
|
47
|
+
}
|
|
48
|
+
function countName(label, count, countLabel) {
|
|
49
|
+
if (!countText(count, Number.POSITIVE_INFINITY)) return label;
|
|
50
|
+
return `${label}, ${countLabel ?? String(Math.floor(count))}`;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// src/app-header/count.tsx
|
|
54
|
+
import { Fragment as Fragment2, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
55
|
+
var appHeaderCount = tv2({
|
|
56
|
+
slots: {
|
|
57
|
+
root: "relative inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg text-fg-secondary no-underline transition-colors hover:bg-surface-2 hover:text-fg aria-expanded:bg-surface-2 aria-expanded:text-fg aria-[current=page]:bg-surface-2 aria-[current=page]:text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",
|
|
58
|
+
icon: "inline-flex h-5 w-5 items-center justify-center [&>svg]:h-5 [&>svg]:w-5",
|
|
59
|
+
count: "pointer-events-none absolute -right-0.5 -top-0.5 flex h-[18px] min-w-[18px] items-center justify-center rounded-full bg-accent px-1 font-mono text-[10px] font-bold leading-none tabular-nums text-on-accent ring-2 ring-surface-1"
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
var s2 = appHeaderCount();
|
|
63
|
+
function AppHeaderCount({ label, icon, count, countLabel, max = 99, href, linkAs, current, className, type, ...props }) {
|
|
64
|
+
const text = countText(count, max);
|
|
65
|
+
const shared = {
|
|
66
|
+
...props,
|
|
67
|
+
"aria-label": countName(label, count, countLabel),
|
|
68
|
+
"aria-current": current ? "page" : void 0,
|
|
69
|
+
"data-unread": text ? "" : void 0,
|
|
70
|
+
className: s2.root({ className })
|
|
71
|
+
};
|
|
72
|
+
const children = /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
73
|
+
/* @__PURE__ */ jsx2("span", { "aria-hidden": true, className: s2.icon(), children: icon }),
|
|
74
|
+
text && /* @__PURE__ */ jsx2("span", { "aria-hidden": true, "data-count": true, className: s2.count(), children: text })
|
|
75
|
+
] });
|
|
76
|
+
if (href) {
|
|
77
|
+
const Link = linkAs ?? "a";
|
|
78
|
+
return /* @__PURE__ */ jsx2(Link, { href, ...shared, children });
|
|
79
|
+
}
|
|
80
|
+
return /* @__PURE__ */ jsx2("button", { type: type ?? "button", ...shared, children });
|
|
81
|
+
}
|
|
28
82
|
export {
|
|
29
83
|
AppHeader,
|
|
30
|
-
|
|
84
|
+
AppHeaderCount,
|
|
85
|
+
appHeader,
|
|
86
|
+
appHeaderCount,
|
|
87
|
+
countName,
|
|
88
|
+
countText
|
|
31
89
|
};
|
|
32
90
|
//# sourceMappingURL=app-header.js.map
|
package/dist/app-header.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/app-header/app-header.tsx"],"sourcesContent":["// Server-safe: no hook, no context. The top bar that sits next to a `RailNav`: the product's NAME as text (the mark is the\n// rail's), then optional chips, then the actions. Where the rail is a bottom tab bar (a phone) it has no room for the mark,\n// so the header shows it there and only there: exactly one brand mark is visible at every width.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nexport const appHeader = tv({\n slots: {\n root: \"sticky top-0 z-30 flex h-14 w-full shrink-0 items-center gap-3 border-b border-border-subtle bg-surface-1 px-4 md:bg-surface-1 md:pl-3 md:pr-5\",\n // The rail's mark is 56 px tall and so is this bar: the word shares the mark's line, right after the rail.\n brand: \"flex min-w-0 items-center gap-2 font-display text-sm font-bold tracking-tight text-fg no-underline\",\n mark: \"inline-flex shrink-0 md:hidden\",\n name: \"truncate\",\n chips: \"flex shrink-0 items-center gap-2\",\n actions: \"ml-auto flex shrink-0 items-center gap-2\",\n },\n});\nconst s = appHeader();\n\nexport type AppHeaderProps = Omit<React.ComponentProps<\"header\">, \"children\"> & {\n /** The product's name, as text (`Orazaka`): the only brand element on a desktop. */\n name: string;\n /** The product's mark (`<ProductLogo id=\"orazaka\" size={22} />`): shown below `md` only, where the rail (which carries it) is a bottom bar. */\n mark?: React.ReactNode;\n /** Makes the name (and the mark) a link home: pass your router's link as `homeLink` or give a `href`. */\n href?: string;\n /** Your router's link element for the home link; it receives the name and the mark as children. */\n homeLink?: React.ReactElement<{ className?: string; children?: React.ReactNode }>;\n /** Status chips beside the name (`Badge`): « Local · Sovereign », « Dev », a version. */\n chips?: React.ReactNode;\n /** On the right: theme, notifications, the account menu. */\n actions?: React.ReactNode;\n};\n\n/** The app's top bar: the name next to the rail, the mark on a phone, chips, actions. */\nexport function AppHeader({ name, mark, href, homeLink, chips, actions, className, ...props }: AppHeaderProps) {\n const brand = (\n <>\n {mark && <span data-brand-mark className={s.mark()}>{mark}</span>}\n <span className={s.name()}>{name}</span>\n </>\n );\n return (\n <header className={s.root({ className })} {...props}>\n {homeLink ? (\n React.cloneElement(homeLink, { className: s.brand() }, brand)\n ) : href ? (\n <a href={href} className={s.brand()}>{brand}</a>\n ) : (\n <div className={s.brand()}>{brand}</div>\n )}\n {chips && <div className={s.chips()}>{chips}</div>}\n {actions && <div className={s.actions()}>{actions}</div>}\n </header>\n );\n}\n"],"mappings":";AAGA,YAAY,WAAW;AACvB,SAAS,UAAU;AAiCf,mBACW,KADX;AA/BG,IAAM,YAAY,GAAG;AAAA,EAC1B,OAAO;AAAA,IACL,MAAM;AAAA;AAAA,IAEN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AACF,CAAC;AACD,IAAM,IAAI,UAAU;AAkBb,SAAS,UAAU,EAAE,MAAM,MAAM,MAAM,UAAU,OAAO,SAAS,WAAW,GAAG,MAAM,GAAmB;AAC7G,QAAM,QACJ,iCACG;AAAA,YAAQ,oBAAC,UAAK,mBAAe,MAAC,WAAW,EAAE,KAAK,GAAI,gBAAK;AAAA,IAC1D,oBAAC,UAAK,WAAW,EAAE,KAAK,GAAI,gBAAK;AAAA,KACnC;AAEF,SACE,qBAAC,YAAO,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,GAAI,GAAG,OAC3C;AAAA,eACO,mBAAa,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,KAAK,IAC1D,OACF,oBAAC,OAAE,MAAY,WAAW,EAAE,MAAM,GAAI,iBAAM,IAE5C,oBAAC,SAAI,WAAW,EAAE,MAAM,GAAI,iBAAM;AAAA,IAEnC,SAAS,oBAAC,SAAI,WAAW,EAAE,MAAM,GAAI,iBAAM;AAAA,IAC3C,WAAW,oBAAC,SAAI,WAAW,EAAE,QAAQ,GAAI,mBAAQ;AAAA,KACpD;AAEJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/app-header/app-header.tsx","../src/app-header/count.tsx","../src/app-header/count-text.ts"],"sourcesContent":["// Server-safe: no hook, no context. The family's top bar (#640): the product's NAME as text (the mark is the rail's), optional\n// chips, then the session's controls in a fixed order — search, language, the host's actions (a theme toggle), messages,\n// notifications, the primary action, the account. Every slot is the host's; a slot left empty draws nothing. Where the\n// rail is a bottom tab bar (a phone) it has no room for the mark, so the header shows it there and only there: exactly\n// one brand mark is visible at every width. At 360 px the name truncates first; the controls never clip.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nexport const appHeader = tv({\n slots: {\n root: \"sticky top-0 z-30 flex h-14 w-full min-w-0 shrink-0 items-center gap-3 border-b border-border-subtle bg-surface-1 px-4 md:bg-surface-1 md:pl-3 md:pr-5\",\n // The rail's mark is 56 px tall and so is this bar: the word shares the mark's line, right after the rail.\n brand: \"flex min-w-0 items-center gap-2 font-display text-sm font-bold tracking-tight text-fg no-underline\",\n mark: \"inline-flex shrink-0 md:hidden\",\n name: \"truncate\",\n chips: \"flex shrink-0 items-center gap-2\",\n // The controls: one row at the right, in the order of the slots. They keep their size; the name gives way.\n actions: \"ml-auto flex shrink-0 items-center gap-1 sm:gap-2\",\n search: \"flex min-w-0 shrink-0\",\n },\n});\nconst s = appHeader();\n\nexport type AppHeaderProps = Omit<React.ComponentProps<\"header\">, \"children\"> & {\n /** The product's name, as text (`Orazaka`): the only brand element on a desktop. */\n name: string;\n /** The product's mark (`<ProductLogo id=\"orazaka\" size={22} />`): shown below `md` only, where the rail (which carries it) is a bottom bar. */\n mark?: React.ReactNode;\n /** Makes the name (and the mark) a link home: pass your router's link as `homeLink` or give a `href`. */\n href?: string;\n /** Your router's link element for the home link; it receives the name and the mark as children. */\n homeLink?: React.ReactElement<{ className?: string; children?: React.ReactNode }>;\n /** Status chips beside the name (`Badge`): « Local · Sovereign », « Dev », a version. */\n chips?: React.ReactNode;\n /** The search trigger, first of the controls: `AppHeaderSearch` (`@krizaka/ui/app-header/search`) — a field from `md`, an icon below, ⌘K. */\n search?: React.ReactNode;\n /** The language: `LanguageSwitch` (`@krizaka/ui/language-switch`) — a globe and « FR », labelled. */\n language?: React.ReactNode;\n /** The host's own controls, after the language (a theme toggle). Alone, it is the whole right side, as before. */\n actions?: React.ReactNode;\n /** Messages: an `AppHeaderCount` (an icon button or link with its unread count). Empty: hidden. */\n messages?: React.ReactNode;\n /** Notifications: an `AppHeaderCount` (or the trigger of the host's popover). Empty: hidden. */\n notifications?: React.ReactNode;\n /** The one primary action of the app (« New check », #588), before the account. */\n primary?: React.ReactNode;\n /** The account, last: `AccountMenu` with `showName` (the name from `sm`), or the visitor's Sign in. */\n account?: React.ReactNode;\n};\n\n/** The app's top bar: the name next to the rail, the mark on a phone, chips, then search · language · actions · messages · notifications · primary · account. */\nexport function AppHeader({ name, mark, href, homeLink, chips, search, language, actions, messages, notifications, primary, account, className, ...props }: AppHeaderProps) {\n const brand = (\n <>\n {mark && <span data-brand-mark className={s.mark()}>{mark}</span>}\n <span className={s.name()}>{name}</span>\n </>\n );\n const hasControls = [search, language, actions, messages, notifications, primary, account].some(Boolean);\n return (\n <header className={s.root({ className })} {...props}>\n {homeLink ? (\n React.cloneElement(homeLink, { className: s.brand() }, brand)\n ) : href ? (\n <a href={href} className={s.brand()}>{brand}</a>\n ) : (\n <div className={s.brand()}>{brand}</div>\n )}\n {chips && <div className={s.chips()}>{chips}</div>}\n {/* The order is the family's, not the host's: the same bar in every product. */}\n {hasControls && (\n <div className={s.actions()}>\n {search && <div data-slot=\"search\" className={s.search()}>{search}</div>}\n {language}\n {actions}\n {messages}\n {notifications}\n {primary}\n {account}\n </div>\n )}\n </header>\n );\n}\n","// Server-safe: no hook. An icon control of the top bar with an unread count — messages, notifications. A link (`href`, your\n// router's `linkAs`) or a button (the trigger of the host's popover, through `asChild` of Radix: its props and ref are\n// spread here). The count is drawn as a small badge and said in the name: « Notifications, 3 new ».\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { countName, countText } from \"./count-text\";\n\nexport const appHeaderCount = tv({\n slots: {\n root:\n \"relative inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg text-fg-secondary no-underline transition-colors \" +\n \"hover:bg-surface-2 hover:text-fg aria-expanded:bg-surface-2 aria-expanded:text-fg aria-[current=page]:bg-surface-2 aria-[current=page]:text-fg \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none\",\n icon: \"inline-flex h-5 w-5 items-center justify-center [&>svg]:h-5 [&>svg]:w-5\",\n count:\n \"pointer-events-none absolute -right-0.5 -top-0.5 flex h-[18px] min-w-[18px] items-center justify-center rounded-full bg-accent px-1 \" +\n \"font-mono text-[10px] font-bold leading-none tabular-nums text-on-accent ring-2 ring-surface-1\",\n },\n});\nconst s = appHeaderCount();\n\nexport type AppHeaderCountProps = Omit<React.ComponentProps<\"button\">, \"children\"> & {\n /** What it is (« Notifications », « Messages ») — passed translated; its accessible name, with the count. */\n label: string;\n /** The icon (`<NotificationIcon />` of @krizaka/icons): decorative, the name is `label`. */\n icon: React.ReactNode;\n /** The unread count; 0 or absent draws no badge. */\n count?: number;\n /** The count in words, said after the label (« 3 new », « 3 nouvelles ») — passed translated, with its plural. Default: the number. */\n countLabel?: string;\n /**\n * Above it the badge shows `max+`.\n * @default 99\n */\n max?: number;\n /** A link to the page (`/notifications`) instead of a button. */\n href?: string;\n /** Your router's link (Next's `Link`) for `href`; an `<a>` otherwise. */\n linkAs?: React.ElementType;\n /** The page is the one it leads to (`aria-current=\"page\"`). */\n current?: boolean;\n};\n\n/** An icon button or link of the top bar with an unread count, the count announced in its name. */\nexport function AppHeaderCount({ label, icon, count, countLabel, max = 99, href, linkAs, current, className, type, ...props }: AppHeaderCountProps) {\n const text = countText(count, max);\n const shared = {\n ...props,\n \"aria-label\": countName(label, count, countLabel),\n \"aria-current\": current ? (\"page\" as const) : undefined,\n \"data-unread\": text ? \"\" : undefined,\n className: s.root({ className }),\n };\n const children = (\n <>\n <span aria-hidden className={s.icon()}>{icon}</span>\n {text && <span aria-hidden data-count className={s.count()}>{text}</span>}\n </>\n );\n if (href) {\n const Link = linkAs ?? \"a\";\n return <Link href={href} {...shared}>{children}</Link>;\n }\n return <button type={type ?? \"button\"} {...shared}>{children}</button>;\n}\n","// Pure, no import: shared by the web's AppHeaderCount and the native one (src/native/app-header.tsx).\n\n/** What the badge shows: the count, or `max+` above `max`; nothing at 0. */\nexport function countText(count: number | undefined, max = 99): string | null {\n if (!count || count <= 0 || !Number.isFinite(count)) return null;\n return count > max ? `${max}+` : String(Math.floor(count));\n}\n\n/** The control's accessible name: the label alone, or the label and the count's words (« Notifications, 3 new »). */\nexport function countName(label: string, count: number | undefined, countLabel?: string): string {\n if (!countText(count, Number.POSITIVE_INFINITY)) return label;\n return `${label}, ${countLabel ?? String(Math.floor(count!))}`;\n}\n"],"mappings":";AAKA,YAAY,WAAW;AACvB,SAAS,UAAU;AA+Cf,mBACW,KADX;AA7CG,IAAM,YAAY,GAAG;AAAA,EAC1B,OAAO;AAAA,IACL,MAAM;AAAA;AAAA,IAEN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA;AAAA,IAEP,SAAS;AAAA,IACT,QAAQ;AAAA,EACV;AACF,CAAC;AACD,IAAM,IAAI,UAAU;AA8Bb,SAAS,UAAU,EAAE,MAAM,MAAM,MAAM,UAAU,OAAO,QAAQ,UAAU,SAAS,UAAU,eAAe,SAAS,SAAS,WAAW,GAAG,MAAM,GAAmB;AAC1K,QAAM,QACJ,iCACG;AAAA,YAAQ,oBAAC,UAAK,mBAAe,MAAC,WAAW,EAAE,KAAK,GAAI,gBAAK;AAAA,IAC1D,oBAAC,UAAK,WAAW,EAAE,KAAK,GAAI,gBAAK;AAAA,KACnC;AAEF,QAAM,cAAc,CAAC,QAAQ,UAAU,SAAS,UAAU,eAAe,SAAS,OAAO,EAAE,KAAK,OAAO;AACvG,SACE,qBAAC,YAAO,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,GAAI,GAAG,OAC3C;AAAA,eACO,mBAAa,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,KAAK,IAC1D,OACF,oBAAC,OAAE,MAAY,WAAW,EAAE,MAAM,GAAI,iBAAM,IAE5C,oBAAC,SAAI,WAAW,EAAE,MAAM,GAAI,iBAAM;AAAA,IAEnC,SAAS,oBAAC,SAAI,WAAW,EAAE,MAAM,GAAI,iBAAM;AAAA,IAE3C,eACC,qBAAC,SAAI,WAAW,EAAE,QAAQ,GACvB;AAAA,gBAAU,oBAAC,SAAI,aAAU,UAAS,WAAW,EAAE,OAAO,GAAI,kBAAO;AAAA,MACjE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,OACH;AAAA,KAEJ;AAEJ;;;AC/EA,SAAS,MAAAA,WAAU;;;ACDZ,SAAS,UAAU,OAA2B,MAAM,IAAmB;AAC5E,MAAI,CAAC,SAAS,SAAS,KAAK,CAAC,OAAO,SAAS,KAAK,EAAG,QAAO;AAC5D,SAAO,QAAQ,MAAM,GAAG,GAAG,MAAM,OAAO,KAAK,MAAM,KAAK,CAAC;AAC3D;AAGO,SAAS,UAAU,OAAe,OAA2B,YAA6B;AAC/F,MAAI,CAAC,UAAU,OAAO,OAAO,iBAAiB,EAAG,QAAO;AACxD,SAAO,GAAG,KAAK,KAAK,cAAc,OAAO,KAAK,MAAM,KAAM,CAAC,CAAC;AAC9D;;;AD2CI,qBAAAC,WACE,OAAAC,MADF,QAAAC,aAAA;AA/CG,IAAM,iBAAiBC,IAAG;AAAA,EAC/B,OAAO;AAAA,IACL,MACE;AAAA,IAGF,MAAM;AAAA,IACN,OACE;AAAA,EAEJ;AACF,CAAC;AACD,IAAMC,KAAI,eAAe;AAyBlB,SAAS,eAAe,EAAE,OAAO,MAAM,OAAO,YAAY,MAAM,IAAI,MAAM,QAAQ,SAAS,WAAW,MAAM,GAAG,MAAM,GAAwB;AAClJ,QAAM,OAAO,UAAU,OAAO,GAAG;AACjC,QAAM,SAAS;AAAA,IACb,GAAG;AAAA,IACH,cAAc,UAAU,OAAO,OAAO,UAAU;AAAA,IAChD,gBAAgB,UAAW,SAAmB;AAAA,IAC9C,eAAe,OAAO,KAAK;AAAA,IAC3B,WAAWA,GAAE,KAAK,EAAE,UAAU,CAAC;AAAA,EACjC;AACA,QAAM,WACJ,gBAAAF,MAAAF,WAAA,EACE;AAAA,oBAAAC,KAAC,UAAK,eAAW,MAAC,WAAWG,GAAE,KAAK,GAAI,gBAAK;AAAA,IAC5C,QAAQ,gBAAAH,KAAC,UAAK,eAAW,MAAC,cAAU,MAAC,WAAWG,GAAE,MAAM,GAAI,gBAAK;AAAA,KACpE;AAEF,MAAI,MAAM;AACR,UAAM,OAAO,UAAU;AACvB,WAAO,gBAAAH,KAAC,QAAK,MAAa,GAAG,QAAS,UAAS;AAAA,EACjD;AACA,SAAO,gBAAAA,KAAC,YAAO,MAAM,QAAQ,UAAW,GAAG,QAAS,UAAS;AAC/D;","names":["tv","Fragment","jsx","jsxs","tv","s"]}
|
package/dist/app-shell.d.ts
CHANGED
|
@@ -4,59 +4,59 @@ import * as React from 'react';
|
|
|
4
4
|
declare const appShell: tailwind_variants.TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
-
body?: tailwind_variants.ClassValue;
|
|
8
|
-
footer?: tailwind_variants.ClassValue;
|
|
9
|
-
header?: tailwind_variants.ClassValue;
|
|
10
|
-
main?: tailwind_variants.ClassValue;
|
|
11
|
-
nav?: tailwind_variants.ClassValue;
|
|
12
|
-
search?: tailwind_variants.ClassValue;
|
|
13
|
-
title?: tailwind_variants.ClassValue;
|
|
14
|
-
group?: tailwind_variants.ClassValue;
|
|
15
7
|
root?: tailwind_variants.ClassValue;
|
|
16
8
|
titlebar?: tailwind_variants.ClassValue;
|
|
17
9
|
drawer?: tailwind_variants.ClassValue;
|
|
18
10
|
overlay?: tailwind_variants.ClassValue;
|
|
11
|
+
nav?: tailwind_variants.ClassValue;
|
|
12
|
+
group?: tailwind_variants.ClassValue;
|
|
19
13
|
itemLabel?: tailwind_variants.ClassValue;
|
|
20
14
|
itemHint?: tailwind_variants.ClassValue;
|
|
15
|
+
footer?: tailwind_variants.ClassValue;
|
|
21
16
|
footerContent?: tailwind_variants.ClassValue;
|
|
17
|
+
body?: tailwind_variants.ClassValue;
|
|
18
|
+
title?: tailwind_variants.ClassValue;
|
|
22
19
|
searchLabel?: tailwind_variants.ClassValue;
|
|
23
20
|
searchKeys?: tailwind_variants.ClassValue;
|
|
24
21
|
actions?: tailwind_variants.ClassValue;
|
|
22
|
+
main?: tailwind_variants.ClassValue;
|
|
25
23
|
sidebar?: tailwind_variants.ClassValue;
|
|
26
24
|
brand?: tailwind_variants.ClassValue;
|
|
27
25
|
item?: tailwind_variants.ClassValue;
|
|
28
26
|
itemBadge?: tailwind_variants.ClassValue;
|
|
29
27
|
collapse?: tailwind_variants.ClassValue;
|
|
28
|
+
header?: tailwind_variants.ClassValue;
|
|
30
29
|
menuButton?: tailwind_variants.ClassValue;
|
|
30
|
+
search?: tailwind_variants.ClassValue;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
} | {
|
|
34
34
|
[x: string]: {
|
|
35
35
|
[x: string]: tailwind_variants.ClassValue | {
|
|
36
|
-
body?: tailwind_variants.ClassValue;
|
|
37
|
-
footer?: tailwind_variants.ClassValue;
|
|
38
|
-
header?: tailwind_variants.ClassValue;
|
|
39
|
-
main?: tailwind_variants.ClassValue;
|
|
40
|
-
nav?: tailwind_variants.ClassValue;
|
|
41
|
-
search?: tailwind_variants.ClassValue;
|
|
42
|
-
title?: tailwind_variants.ClassValue;
|
|
43
|
-
group?: tailwind_variants.ClassValue;
|
|
44
36
|
root?: tailwind_variants.ClassValue;
|
|
45
37
|
titlebar?: tailwind_variants.ClassValue;
|
|
46
38
|
drawer?: tailwind_variants.ClassValue;
|
|
47
39
|
overlay?: tailwind_variants.ClassValue;
|
|
40
|
+
nav?: tailwind_variants.ClassValue;
|
|
41
|
+
group?: tailwind_variants.ClassValue;
|
|
48
42
|
itemLabel?: tailwind_variants.ClassValue;
|
|
49
43
|
itemHint?: tailwind_variants.ClassValue;
|
|
44
|
+
footer?: tailwind_variants.ClassValue;
|
|
50
45
|
footerContent?: tailwind_variants.ClassValue;
|
|
46
|
+
body?: tailwind_variants.ClassValue;
|
|
47
|
+
title?: tailwind_variants.ClassValue;
|
|
51
48
|
searchLabel?: tailwind_variants.ClassValue;
|
|
52
49
|
searchKeys?: tailwind_variants.ClassValue;
|
|
53
50
|
actions?: tailwind_variants.ClassValue;
|
|
51
|
+
main?: tailwind_variants.ClassValue;
|
|
54
52
|
sidebar?: tailwind_variants.ClassValue;
|
|
55
53
|
brand?: tailwind_variants.ClassValue;
|
|
56
54
|
item?: tailwind_variants.ClassValue;
|
|
57
55
|
itemBadge?: tailwind_variants.ClassValue;
|
|
58
56
|
collapse?: tailwind_variants.ClassValue;
|
|
57
|
+
header?: tailwind_variants.ClassValue;
|
|
59
58
|
menuButton?: tailwind_variants.ClassValue;
|
|
59
|
+
search?: tailwind_variants.ClassValue;
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
} | {}, {
|
|
@@ -87,30 +87,30 @@ declare const appShell: tailwind_variants.TVReturnType<{
|
|
|
87
87
|
}, undefined, {
|
|
88
88
|
[key: string]: {
|
|
89
89
|
[key: string]: tailwind_variants.ClassValue | {
|
|
90
|
-
body?: tailwind_variants.ClassValue;
|
|
91
|
-
footer?: tailwind_variants.ClassValue;
|
|
92
|
-
header?: tailwind_variants.ClassValue;
|
|
93
|
-
main?: tailwind_variants.ClassValue;
|
|
94
|
-
nav?: tailwind_variants.ClassValue;
|
|
95
|
-
search?: tailwind_variants.ClassValue;
|
|
96
|
-
title?: tailwind_variants.ClassValue;
|
|
97
|
-
group?: tailwind_variants.ClassValue;
|
|
98
90
|
root?: tailwind_variants.ClassValue;
|
|
99
91
|
titlebar?: tailwind_variants.ClassValue;
|
|
100
92
|
drawer?: tailwind_variants.ClassValue;
|
|
101
93
|
overlay?: tailwind_variants.ClassValue;
|
|
94
|
+
nav?: tailwind_variants.ClassValue;
|
|
95
|
+
group?: tailwind_variants.ClassValue;
|
|
102
96
|
itemLabel?: tailwind_variants.ClassValue;
|
|
103
97
|
itemHint?: tailwind_variants.ClassValue;
|
|
98
|
+
footer?: tailwind_variants.ClassValue;
|
|
104
99
|
footerContent?: tailwind_variants.ClassValue;
|
|
100
|
+
body?: tailwind_variants.ClassValue;
|
|
101
|
+
title?: tailwind_variants.ClassValue;
|
|
105
102
|
searchLabel?: tailwind_variants.ClassValue;
|
|
106
103
|
searchKeys?: tailwind_variants.ClassValue;
|
|
107
104
|
actions?: tailwind_variants.ClassValue;
|
|
105
|
+
main?: tailwind_variants.ClassValue;
|
|
108
106
|
sidebar?: tailwind_variants.ClassValue;
|
|
109
107
|
brand?: tailwind_variants.ClassValue;
|
|
110
108
|
item?: tailwind_variants.ClassValue;
|
|
111
109
|
itemBadge?: tailwind_variants.ClassValue;
|
|
112
110
|
collapse?: tailwind_variants.ClassValue;
|
|
111
|
+
header?: tailwind_variants.ClassValue;
|
|
113
112
|
menuButton?: tailwind_variants.ClassValue;
|
|
113
|
+
search?: tailwind_variants.ClassValue;
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
116
|
} | {}, {
|
|
@@ -304,4 +304,5 @@ declare function useShortcuts(map: ShortcutMap, { enabled, timeout }?: {
|
|
|
304
304
|
timeout?: number;
|
|
305
305
|
}): void;
|
|
306
306
|
|
|
307
|
-
export { AppShell, AppShellBody, AppShellGroup,
|
|
307
|
+
export { AppShell, AppShellBody, AppShellGroup, AppShellHeader, AppShellItem, AppShellMain, AppShellRoot, AppShellSearch, AppShellSidebar, acceleratorOf, appShell, ariaKeyShortcuts, formatShortcut, matchesCombo, parseCombo, useApple, useShortcuts };
|
|
308
|
+
export type { AppShellGroupProps, AppShellHeaderProps, AppShellItemProps, AppShellRootProps, AppShellSearchProps, AppShellSidebarProps, ShortcutMap };
|
package/dist/app-shell.js
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SkipLink
|
|
4
4
|
} from "./chunk-4QH6CP2Y.js";
|
|
5
|
+
import {
|
|
6
|
+
Kbd
|
|
7
|
+
} from "./chunk-KID32IRJ.js";
|
|
5
8
|
import {
|
|
6
9
|
ChevronGlyph,
|
|
7
10
|
CloseGlyph,
|
|
@@ -14,19 +17,7 @@ import {
|
|
|
14
17
|
// src/app-shell/app-shell.tsx
|
|
15
18
|
import { Dialog as DialogPrimitive, Slot } from "radix-ui";
|
|
16
19
|
import * as React3 from "react";
|
|
17
|
-
import { tv as tv2 } from "tailwind-variants";
|
|
18
|
-
|
|
19
|
-
// src/kbd/kbd.tsx
|
|
20
20
|
import { tv } from "tailwind-variants";
|
|
21
|
-
import { jsx } from "react/jsx-runtime";
|
|
22
|
-
var kbdVariants = tv({
|
|
23
|
-
base: "inline-flex shrink-0 items-center justify-center rounded-md border border-border-default border-b-2 bg-surface-2 font-mono font-semibold text-fg-secondary",
|
|
24
|
-
variants: { size: { sm: "h-5 min-w-5 px-1 text-[10px]", md: "h-6 min-w-6 px-1.5 text-xs" } },
|
|
25
|
-
defaultVariants: { size: "md" }
|
|
26
|
-
});
|
|
27
|
-
function Kbd({ size, className, ...props }) {
|
|
28
|
-
return /* @__PURE__ */ jsx("kbd", { className: kbdVariants({ size, className }), ...props });
|
|
29
|
-
}
|
|
30
21
|
|
|
31
22
|
// src/app-shell/shortcuts.ts
|
|
32
23
|
import * as React2 from "react";
|
|
@@ -126,8 +117,8 @@ function useShortcuts(map, { enabled = true, timeout = 900 } = {}) {
|
|
|
126
117
|
}
|
|
127
118
|
|
|
128
119
|
// src/app-shell/app-shell.tsx
|
|
129
|
-
import { Fragment, jsx
|
|
130
|
-
var appShell =
|
|
120
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
121
|
+
var appShell = tv({
|
|
131
122
|
slots: {
|
|
132
123
|
root: "flex min-h-dvh w-full bg-surface-0 text-fg data-desktop:h-[var(--kz-window-height,100dvh)] data-desktop:overflow-hidden",
|
|
133
124
|
sidebar: "sticky top-0 hidden h-dvh shrink-0 flex-col overflow-x-clip border-r border-border-subtle bg-surface-1 transition-[width] duration-300 motion-reduce:transition-none md:flex w-64 data-collapsed:w-[4.25rem] [[data-desktop]_&]:static [[data-desktop]_&]:flex [[data-desktop]_&]:h-auto [[data-desktop]_&]:w-60 [[data-desktop]_&]:select-none [[data-desktop]_&]:data-collapsed:w-[4.75rem]",
|
|
@@ -176,8 +167,8 @@ function AppShellRoot({ defaultCollapsed = false, collapsed: controlled, onColla
|
|
|
176
167
|
);
|
|
177
168
|
const value = React3.useMemo(() => ({ collapsed, setCollapsed, open, setOpen, inDrawer: false, desktop }), [collapsed, setCollapsed, open, desktop]);
|
|
178
169
|
useShortcuts(collapseShortcut ? { [collapseShortcut]: () => setCollapsed(!collapsed) } : {});
|
|
179
|
-
return /* @__PURE__ */
|
|
180
|
-
skipLabel && /* @__PURE__ */
|
|
170
|
+
return /* @__PURE__ */ jsx(ShellContext.Provider, { value, children: /* @__PURE__ */ jsxs("div", { "data-desktop": desktop ? "" : void 0, className: s.root({ className }), ...props, children: [
|
|
171
|
+
skipLabel && /* @__PURE__ */ jsx(SkipLink, { href: "#content", children: skipLabel }),
|
|
181
172
|
children
|
|
182
173
|
] }) });
|
|
183
174
|
}
|
|
@@ -185,17 +176,17 @@ function SidebarContent({ brand, children, footer, collapseLabels, closeLabel })
|
|
|
185
176
|
const { collapsed, setCollapsed, inDrawer, desktop } = useShell();
|
|
186
177
|
const drag = desktop ? { "data-tauri-drag-region": "" } : {};
|
|
187
178
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
188
|
-
desktop && /* @__PURE__ */
|
|
179
|
+
desktop && /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: s.titlebar(), ...drag }),
|
|
189
180
|
/* @__PURE__ */ jsxs("div", { className: s.brand(), ...drag, children: [
|
|
190
181
|
brand,
|
|
191
|
-
inDrawer && /* @__PURE__ */
|
|
182
|
+
inDrawer && /* @__PURE__ */ jsx(DialogPrimitive.Close, { className: cn(s.menuButton(), "ml-auto flex"), "aria-label": closeLabel, children: /* @__PURE__ */ jsx(CloseGlyph, { className: "h-4 w-4" }) })
|
|
192
183
|
] }),
|
|
193
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ jsx("div", { className: s.nav(), children }),
|
|
194
185
|
(footer || collapseLabels && !inDrawer) && /* @__PURE__ */ jsxs("div", { className: s.footer(), children: [
|
|
195
|
-
footer && /* @__PURE__ */
|
|
186
|
+
footer && /* @__PURE__ */ jsx("div", { className: s.footerContent(), children: footer }),
|
|
196
187
|
collapseLabels && !inDrawer && /* @__PURE__ */ jsxs("button", { type: "button", className: s.collapse(), "aria-expanded": !collapsed, onClick: () => setCollapsed(!collapsed), children: [
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
188
|
+
/* @__PURE__ */ jsx(ChevronGlyph, { direction: collapsed ? "right" : "left", className: "h-4 w-4" }),
|
|
189
|
+
/* @__PURE__ */ jsx("span", { className: collapsed ? "sr-only" : void 0, children: collapsed ? collapseLabels[1] : collapseLabels[0] })
|
|
199
190
|
] })
|
|
200
191
|
] })
|
|
201
192
|
] });
|
|
@@ -204,18 +195,18 @@ function AppShellSidebar({ label, brand, children, footer, collapseLabels, close
|
|
|
204
195
|
const shell = useShell();
|
|
205
196
|
const content = { brand, children, footer, collapseLabels, closeLabel };
|
|
206
197
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
!shell.desktop && /* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ jsx("nav", { "aria-label": label, "data-collapsed": shell.collapsed ? "" : void 0, className: s.sidebar({ className }), ...props, children: /* @__PURE__ */ jsx(SidebarContent, { ...content }) }),
|
|
199
|
+
!shell.desktop && /* @__PURE__ */ jsx(DialogPrimitive.Root, { open: shell.open, onOpenChange: shell.setOpen, children: /* @__PURE__ */ jsxs(DialogPrimitive.Portal, { children: [
|
|
200
|
+
/* @__PURE__ */ jsx(DialogPrimitive.Overlay, { className: s.overlay() }),
|
|
210
201
|
/* @__PURE__ */ jsxs(DialogPrimitive.Content, { className: s.drawer(), "aria-describedby": void 0, children: [
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ jsx(DialogPrimitive.Title, { className: "sr-only", children: label }),
|
|
203
|
+
/* @__PURE__ */ jsx(ShellContext.Provider, { value: { ...shell, collapsed: false, inDrawer: true }, children: /* @__PURE__ */ jsx("nav", { "aria-label": label, className: "flex min-h-0 flex-1 flex-col", onClick: (e) => e.target.closest("a") && shell.setOpen(false), children: /* @__PURE__ */ jsx(SidebarContent, { ...content }) }) })
|
|
213
204
|
] })
|
|
214
205
|
] }) })
|
|
215
206
|
] });
|
|
216
207
|
}
|
|
217
208
|
function AppShellGroup({ className, ...props }) {
|
|
218
|
-
return /* @__PURE__ */
|
|
209
|
+
return /* @__PURE__ */ jsx("p", { className: s.group({ className }), ...props });
|
|
219
210
|
}
|
|
220
211
|
function AppShellItem({ icon, label, current, badge, shortcut, asChild, children, className, ...props }) {
|
|
221
212
|
const { collapsed, inDrawer } = useShell();
|
|
@@ -225,36 +216,36 @@ function AppShellItem({ icon, label, current, badge, shortcut, asChild, children
|
|
|
225
216
|
const Comp = asChild ? Slot.Root : "a";
|
|
226
217
|
const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
227
218
|
icon,
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
badge != null && /* @__PURE__ */
|
|
230
|
-
shortcut && !inDrawer ? /* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ jsx("span", { className: s.itemLabel(), children: label }),
|
|
220
|
+
badge != null && /* @__PURE__ */ jsx("span", { className: s.itemBadge(), children: badge }),
|
|
221
|
+
shortcut && !inDrawer ? /* @__PURE__ */ jsx("span", { className: s.itemHint(), "aria-hidden": true, children: formatShortcut(shortcut, apple).map((key) => /* @__PURE__ */ jsx(Kbd, { size: "sm", children: key }, key)) }) : null
|
|
231
222
|
] });
|
|
232
|
-
return /* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ jsx(Comp, { ref: element, "aria-current": current ? "page" : void 0, "aria-keyshortcuts": shortcut ? ariaKeyShortcuts(shortcut, apple) : void 0, title: collapsed ? label : void 0, className: s.item({ className }), ...props, children: asChild && children ? React3.cloneElement(children, void 0, inner) : inner });
|
|
233
224
|
}
|
|
234
225
|
function AppShellBody({ className, ...props }) {
|
|
235
|
-
return /* @__PURE__ */
|
|
226
|
+
return /* @__PURE__ */ jsx("div", { className: s.body({ className }), ...props });
|
|
236
227
|
}
|
|
237
228
|
function AppShellHeader({ title, menuLabel, actions, className, children, ...props }) {
|
|
238
229
|
const { open, setOpen, desktop } = useShell();
|
|
239
230
|
const drag = desktop ? { "data-tauri-drag-region": "" } : {};
|
|
240
231
|
return /* @__PURE__ */ jsxs("header", { className: s.header({ className }), ...drag, ...props, children: [
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
title && /* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ jsx("button", { type: "button", className: s.menuButton(), "aria-label": menuLabel, "aria-expanded": open, "aria-haspopup": "dialog", onClick: () => setOpen(true), children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M4 7h16M4 12h16M4 17h10" }) }) }),
|
|
233
|
+
title && /* @__PURE__ */ jsx("h1", { className: s.title(), ...drag, children: title }),
|
|
243
234
|
children,
|
|
244
|
-
actions && /* @__PURE__ */
|
|
235
|
+
actions && /* @__PURE__ */ jsx("div", { className: s.actions(), children: actions })
|
|
245
236
|
] });
|
|
246
237
|
}
|
|
247
238
|
function AppShellSearch({ label, onOpen, shortcut = "mod+k", className, ...props }) {
|
|
248
239
|
const apple = useApple();
|
|
249
240
|
useShortcuts({ [shortcut]: () => onOpen() });
|
|
250
241
|
return /* @__PURE__ */ jsxs("button", { type: "button", className: s.search({ className }), "aria-keyshortcuts": ariaKeyShortcuts(shortcut, apple), onClick: onOpen, ...props, children: [
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ jsx(SearchGlyph, {}),
|
|
243
|
+
/* @__PURE__ */ jsx("span", { className: s.searchLabel(), children: label }),
|
|
244
|
+
/* @__PURE__ */ jsx("span", { className: s.searchKeys(), "aria-hidden": true, children: formatShortcut(shortcut, apple).map((key) => /* @__PURE__ */ jsx(Kbd, { size: "sm", children: key }, key)) })
|
|
254
245
|
] });
|
|
255
246
|
}
|
|
256
247
|
function AppShellMain({ className, ...props }) {
|
|
257
|
-
return /* @__PURE__ */
|
|
248
|
+
return /* @__PURE__ */ jsx("main", { id: "content", tabIndex: -1, className: s.main({ className }), ...props });
|
|
258
249
|
}
|
|
259
250
|
var AppShell = {
|
|
260
251
|
Root: AppShellRoot,
|