@krizaka/ui 3.55.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/dist/{RotatingWord-D9s7FXFD.d.ts → RotatingWord-COSabR2c.d.ts} +2 -1
- package/dist/account-menu.d.ts +2 -1
- package/dist/account-settings.d.ts +153 -61
- package/dist/account-settings.js +240 -97
- 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 +2 -1
- package/dist/app-header/search.d.ts +8 -7
- package/dist/app-header.d.ts +2 -1
- package/dist/app-shell.d.ts +26 -25
- package/dist/argument-card.d.ts +3 -2
- 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 +4 -2
- package/dist/blocks.css +77 -4
- 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/checkbox.d.ts +2 -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 +10 -1
- package/dist/choice-grid.d.ts +3 -2
- package/dist/chunk-27AWSJTK.js +46 -0
- package/dist/chunk-27AWSJTK.js.map +1 -0
- package/dist/{chunk-AEP3K4YD.js → chunk-4GQH27IT.js} +2 -2
- package/dist/{chunk-QWKCNSPF.js → chunk-5LANVCK7.js} +125 -73
- 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-7J2L4HOD.js +340 -0
- package/dist/chunk-7J2L4HOD.js.map +1 -0
- package/dist/{chunk-7U5TXA5Q.js → chunk-BQ4EOR2O.js} +74 -2
- package/dist/chunk-BQ4EOR2O.js.map +1 -0
- package/dist/chunk-F6JTHPHE.js +399 -0
- package/dist/chunk-F6JTHPHE.js.map +1 -0
- package/dist/chunk-OGWB76BR.js +90 -0
- package/dist/chunk-OGWB76BR.js.map +1 -0
- package/dist/{chunk-VIPSZXO4.js → chunk-UYGUSYIC.js} +72 -2
- package/dist/chunk-UYGUSYIC.js.map +1 -0
- 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/code-block.d.ts +2 -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 +2 -1
- package/dist/confirm-button.d.ts +2 -1
- package/dist/contact-page.d.ts +2 -1
- package/dist/continue-prompt.d.ts +2 -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 +45 -2
- package/dist/data-table.js +7 -3
- package/dist/date-picker.d.ts +29 -28
- package/dist/decision-list.d.ts +2 -1
- package/dist/description-list.d.ts +2 -1
- package/dist/detail-layout.d.ts +153 -20
- package/dist/detail-layout.js +73 -4
- 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 +17 -6
- package/dist/doodle.js +40 -9
- package/dist/doodle.js.map +1 -1
- package/dist/drop-overlay.d.ts +2 -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 +2 -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/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 +8 -7
- package/dist/form/server.d.ts +2 -1
- package/dist/form.d.ts +2 -1
- package/dist/gallery-page.d.ts +2 -1
- package/dist/genui.d.ts +2 -1
- package/dist/genui.js +3 -3
- 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 +5 -4
- 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 +2 -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 +2 -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/loader.d.ts +2 -1
- package/dist/longform-page.d.ts +2 -1
- package/dist/maintenance-screen.d.ts +5 -4
- package/dist/map.d.ts +8 -7
- package/dist/map.js +24 -0
- package/dist/map.js.map +1 -1
- package/dist/markdown.d.ts +2 -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 +2 -1
- package/dist/media-capture.d.ts +5 -4
- 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/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 +24 -0
- package/dist/native/map.js.map +1 -1
- package/dist/native/markdown.d.ts +2 -1
- package/dist/native/media-capture.d.ts +2 -1
- package/dist/native/media-picker.d.ts +2 -1
- package/dist/native/vertical-video.d.ts +2 -1
- package/dist/native/video-player.d.ts +2 -1
- package/dist/native.d.ts +230 -1
- package/dist/native.js +1465 -965
- package/dist/native.js.map +1 -1
- package/dist/nav-bar/me.d.ts +2 -1
- package/dist/nav-bar.d.ts +2 -1
- package/dist/next-actions.d.ts +2 -1
- package/dist/notification-preferences.d.ts +23 -22
- package/dist/notification-preferences.js +4 -3
- package/dist/notification-preferences.js.map +1 -1
- 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-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/popover.d.ts +2 -1
- package/dist/pricing-page.d.ts +2 -1
- package/dist/product-page.d.ts +2 -1
- package/dist/profile-card.d.ts +2 -1
- package/dist/progress.d.ts +2 -1
- package/dist/promise-card.d.ts +2 -1
- package/dist/quota-meter.d.ts +2 -1
- package/dist/radio-group.d.ts +2 -1
- package/dist/radio-group.js +3 -3
- package/dist/rail-nav.d.ts +17 -16
- package/dist/rail-nav.js +22 -56
- package/dist/rail-nav.js.map +1 -1
- package/dist/recipes.d.ts +2 -1
- package/dist/retro-tv.d.ts +2 -1
- package/dist/router.d.ts +2 -1
- package/dist/scroll-stage.d.ts +2 -1
- package/dist/search-field.d.ts +2 -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 +2 -1
- package/dist/signature.d.ts +2 -1
- 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/sites.d.ts +2 -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/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/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 +2 -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 +2 -1
- package/dist/swipe-deck.d.ts +2 -1
- package/dist/switch.d.ts +2 -1
- package/dist/tabs.d.ts +2 -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 +2 -1
- package/dist/terminal-replay.js +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/update-prompt.d.ts +11 -10
- 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-trimmer.d.ts +2 -1
- package/dist/virtual.d.ts +8 -7
- package/dist/waveform.d.ts +2 -1
- package/package.json +124 -39
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +257 -5
- package/registry/achievement.json +1 -1
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +1 -1
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/anatomy-plate.json +1 -1
- package/registry/app-header.json +1 -1
- package/registry/app-shell.json +1 -1
- 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 +1 -1
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +1 -1
- package/registry/button.json +1 -1
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +116 -6
- package/registry/changelog-page.json +1 -1
- package/registry/chapter.json +1 -1
- package/registry/chat.json +1 -1
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip-row.json +1 -1
- package/registry/chip.json +386 -11
- package/registry/choice-grid.json +1 -1
- package/registry/code-block.json +1 -1
- package/registry/combobox.json +1 -1
- package/registry/command.json +1 -1
- package/registry/comparison-table.json +1 -1
- package/registry/component-page.json +1 -1
- package/registry/confirm-button.json +1 -1
- package/registry/contact-page.json +1 -1
- package/registry/continue-prompt.json +1 -1
- package/registry/countdown.json +1 -1
- package/registry/cover-hero.json +1 -1
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +91 -5
- package/registry/data-table.json +156 -5
- package/registry/date-picker.json +1 -1
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +1 -1
- package/registry/detail-layout.json +199 -5
- package/registry/dialog.json +1 -1
- package/registry/docs-article-page.json +1 -1
- 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 +1 -1
- package/registry/doodle.json +115 -22
- package/registry/drop-overlay.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/elephant.json +2 -2
- package/registry/empty-state.json +1 -1
- package/registry/engine-flow.json +1 -1
- package/registry/error-page.json +1 -1
- 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/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/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/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/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/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/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/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/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/field.json +1 -1
- package/registry/file-upload.json +1 -1
- package/registry/filter-bar.json +208 -8
- package/registry/flock.json +1 -1
- package/registry/footnote.json +1 -1
- package/registry/force-update-screen.json +1 -1
- package/registry/form.json +1 -1
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +1 -1
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/glow-card.json +1 -1
- package/registry/goal-gauge.json +1 -1
- package/registry/grade-stamp.json +227 -0
- package/registry/how-it-works-page.json +1 -1
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +323 -30
- package/registry/iso.json +1 -1
- package/registry/kanban.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +565 -0
- package/registry/kpi-explained.json +1 -1
- package/registry/landing-page.json +1 -1
- package/registry/landscape.json +1 -1
- 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 +1 -1
- package/registry/loader.json +1 -1
- package/registry/longform-page.json +1 -1
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +2 -2
- package/registry/markdown.json +1 -1
- 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 +1 -1
- package/registry/mascots.json +1 -1
- package/registry/match-dialog.json +1 -1
- package/registry/media-capture.json +1 -1
- package/registry/media-gallery.json +1 -1
- package/registry/media-grid.json +1 -1
- package/registry/meta-row.json +1 -1
- package/registry/meter.json +1 -1
- package/registry/nav-bar.json +2 -2
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +1 -1
- package/registry/number-ticker.json +1 -1
- package/registry/opening-hours.json +1 -1
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +1 -1
- package/registry/pagination.json +1 -1
- package/registry/photo-grid.json +1 -1
- package/registry/pointer-light.json +1 -1
- package/registry/popover.json +1 -1
- package/registry/pricing-page.json +1 -1
- package/registry/product-page.json +1 -1
- package/registry/profile-card.json +1 -1
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +1 -1
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +2 -2
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +1 -1
- package/registry/router.json +1 -1
- package/registry/scroll-stage.json +1 -1
- package/registry/search-field.json +1 -1
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +1 -1
- package/registry/service-card.json +1 -1
- package/registry/settings-layout.json +1 -1
- package/registry/showcase.json +1 -1
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +548 -0
- package/registry/site-footer.json +2 -2
- package/registry/sites.json +1 -1
- package/registry/skeleton.json +1 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot-picker.json +156 -10
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +1 -1
- package/registry/speed-lines.json +174 -0
- package/registry/spinner.json +1 -1
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +1 -1
- package/registry/stat.json +1 -1
- package/registry/status-chip.json +350 -0
- package/registry/status-page.json +1 -1
- package/registry/step-progress.json +1 -1
- package/registry/step-showcase.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/sticky-action.json +38 -8
- package/registry/stuck.json +1 -1
- package/registry/swipe-deck.json +1 -1
- package/registry/switch.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +189 -12
- package/registry/taped-photo.json +1 -1
- package/registry/terminal-replay.json +1 -1
- package/registry/text-style.json +1 -1
- package/registry/theme.json +3 -3
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/tree-view.json +1 -1
- package/registry/update-prompt.json +1 -1
- package/registry/upload-queue.json +1 -1
- package/registry/verified-badge.json +1 -1
- package/registry/versus-card.json +194 -0
- package/registry/vertical-video.json +1 -1
- package/registry/video-player.json +1 -1
- package/registry/video-trimmer.json +1 -1
- package/registry/virtual.json +2 -2
- package/registry/waveform.json +1 -1
- package/dist/chunk-7U5TXA5Q.js.map +0 -1
- package/dist/chunk-OIMXKRXF.js +0 -179
- package/dist/chunk-OIMXKRXF.js.map +0 -1
- package/dist/chunk-QWKCNSPF.js.map +0 -1
- package/dist/chunk-VIPSZXO4.js.map +0 -1
- /package/dist/{chunk-AEP3K4YD.js.map → chunk-4GQH27IT.js.map} +0 -0
package/dist/nav-bar/me.d.ts
CHANGED
package/dist/nav-bar.d.ts
CHANGED
|
@@ -438,4 +438,5 @@ type ProductBarActionsProps = {
|
|
|
438
438
|
/** The product bar's actions: use the app. Put it in `NavBar.Actions` (`placement="bar"`) or in `NavBar.Mobile` (`placement="panel"`). */
|
|
439
439
|
declare function ProductBarActions({ signIn, tryIt, signupOpen, linkAs: Link, placement }: ProductBarActionsProps): React.JSX.Element;
|
|
440
440
|
|
|
441
|
-
export {
|
|
441
|
+
export { NavBar, NavBarActions, NavBarBadge, NavBarBrand, NavBarFamily, NavBarItems, NavBarLanguage, NavBarLink, NavBarMenu, NavBarMenuLink, NavBarMobile, NavBarMobileGroup, NavBarMobileLink, NavBarMobilePreferences, NavBarRepo, NavBarRoot, NavBarSession, ProductBarAction, ProductBarActions, meHeaders, meResponse, meSchema, navBar, placePanel, productBarActions, sessionKey };
|
|
442
|
+
export type { MeResponse, NavBarBadgeProps, NavBarBrandProps, NavBarFamilyProps, NavBarItemsProps, NavBarLanguageProps, NavBarLinkProps, NavBarMenuLinkProps, NavBarMenuProps, NavBarMobileGroupProps, NavBarMobileLinkProps, NavBarMobilePreferencesProps, NavBarMobileProps, NavBarRepoProps, NavBarRootProps, NavBarSessionProps, PlacePanel, ProductBarActionsProps, ProductBarLink, ProductBarState };
|
package/dist/next-actions.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ interface NextActionsProps extends Omit<React.ComponentProps<"section">, "childr
|
|
|
24
24
|
/** “What to do now”: two or three ranked actions, with their reason and urgency. */
|
|
25
25
|
declare function NextActions({ title, actions, className, ...props }: NextActionsProps): React.JSX.Element;
|
|
26
26
|
|
|
27
|
-
export {
|
|
27
|
+
export { NextActions };
|
|
28
|
+
export type { ActionUrgency, NextAction, NextActionsProps };
|
|
@@ -4,33 +4,33 @@ import * as React from 'react';
|
|
|
4
4
|
declare const notificationPreferences: tailwind_variants.TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
-
head?: tailwind_variants.ClassValue;
|
|
8
|
-
table?: tailwind_variants.ClassValue;
|
|
9
|
-
name?: tailwind_variants.ClassValue;
|
|
10
|
-
cell?: tailwind_variants.ClassValue;
|
|
11
|
-
note?: tailwind_variants.ClassValue;
|
|
12
|
-
row?: tailwind_variants.ClassValue;
|
|
13
|
-
hint?: tailwind_variants.ClassValue;
|
|
14
7
|
root?: tailwind_variants.ClassValue;
|
|
8
|
+
hint?: tailwind_variants.ClassValue;
|
|
9
|
+
table?: tailwind_variants.ClassValue;
|
|
10
|
+
head?: tailwind_variants.ClassValue;
|
|
15
11
|
channelCell?: tailwind_variants.ClassValue;
|
|
16
12
|
cornerCell?: tailwind_variants.ClassValue;
|
|
13
|
+
row?: tailwind_variants.ClassValue;
|
|
17
14
|
category?: tailwind_variants.ClassValue;
|
|
15
|
+
name?: tailwind_variants.ClassValue;
|
|
16
|
+
note?: tailwind_variants.ClassValue;
|
|
17
|
+
cell?: tailwind_variants.ClassValue;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
} | {
|
|
21
21
|
[x: string]: {
|
|
22
22
|
[x: string]: tailwind_variants.ClassValue | {
|
|
23
|
-
head?: tailwind_variants.ClassValue;
|
|
24
|
-
table?: tailwind_variants.ClassValue;
|
|
25
|
-
name?: tailwind_variants.ClassValue;
|
|
26
|
-
cell?: tailwind_variants.ClassValue;
|
|
27
|
-
note?: tailwind_variants.ClassValue;
|
|
28
|
-
row?: tailwind_variants.ClassValue;
|
|
29
|
-
hint?: tailwind_variants.ClassValue;
|
|
30
23
|
root?: tailwind_variants.ClassValue;
|
|
24
|
+
hint?: tailwind_variants.ClassValue;
|
|
25
|
+
table?: tailwind_variants.ClassValue;
|
|
26
|
+
head?: tailwind_variants.ClassValue;
|
|
31
27
|
channelCell?: tailwind_variants.ClassValue;
|
|
32
28
|
cornerCell?: tailwind_variants.ClassValue;
|
|
29
|
+
row?: tailwind_variants.ClassValue;
|
|
33
30
|
category?: tailwind_variants.ClassValue;
|
|
31
|
+
name?: tailwind_variants.ClassValue;
|
|
32
|
+
note?: tailwind_variants.ClassValue;
|
|
33
|
+
cell?: tailwind_variants.ClassValue;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
} | {}, {
|
|
@@ -48,17 +48,17 @@ declare const notificationPreferences: tailwind_variants.TVReturnType<{
|
|
|
48
48
|
}, undefined, {
|
|
49
49
|
[key: string]: {
|
|
50
50
|
[key: string]: tailwind_variants.ClassValue | {
|
|
51
|
-
head?: tailwind_variants.ClassValue;
|
|
52
|
-
table?: tailwind_variants.ClassValue;
|
|
53
|
-
name?: tailwind_variants.ClassValue;
|
|
54
|
-
cell?: tailwind_variants.ClassValue;
|
|
55
|
-
note?: tailwind_variants.ClassValue;
|
|
56
|
-
row?: tailwind_variants.ClassValue;
|
|
57
|
-
hint?: tailwind_variants.ClassValue;
|
|
58
51
|
root?: tailwind_variants.ClassValue;
|
|
52
|
+
hint?: tailwind_variants.ClassValue;
|
|
53
|
+
table?: tailwind_variants.ClassValue;
|
|
54
|
+
head?: tailwind_variants.ClassValue;
|
|
59
55
|
channelCell?: tailwind_variants.ClassValue;
|
|
60
56
|
cornerCell?: tailwind_variants.ClassValue;
|
|
57
|
+
row?: tailwind_variants.ClassValue;
|
|
61
58
|
category?: tailwind_variants.ClassValue;
|
|
59
|
+
name?: tailwind_variants.ClassValue;
|
|
60
|
+
note?: tailwind_variants.ClassValue;
|
|
61
|
+
cell?: tailwind_variants.ClassValue;
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
64
|
} | {}, {
|
|
@@ -148,4 +148,5 @@ declare function presetInForce(value: NotificationMatrix, presets: readonly Noti
|
|
|
148
148
|
declare function normalizeMatrix(next: NotificationMatrix, current: NotificationMatrix, categories: readonly NotificationCategory[], channels: readonly NotificationChannel[]): NotificationMatrix;
|
|
149
149
|
declare function NotificationPreferences({ label, channels, categories, value, onValueChange, presets, presetsLabel, customHint, className }: NotificationPreferencesProps): React.JSX.Element;
|
|
150
150
|
|
|
151
|
-
export {
|
|
151
|
+
export { NotificationPreferences, normalizeMatrix, notificationPreferences, presetInForce };
|
|
152
|
+
export type { NotificationCategory, NotificationChannel, NotificationMatrix, NotificationPreferencesProps, NotificationPreset };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
Chip
|
|
4
|
-
} from "./chunk-7U5TXA5Q.js";
|
|
5
2
|
import {
|
|
6
3
|
Switch
|
|
7
4
|
} from "./chunk-CSRKYZ53.js";
|
|
5
|
+
import {
|
|
6
|
+
Chip
|
|
7
|
+
} from "./chunk-BQ4EOR2O.js";
|
|
8
8
|
import "./chunk-D3T54RSL.js";
|
|
9
|
+
import "./chunk-NSLXEDIS.js";
|
|
9
10
|
|
|
10
11
|
// src/notification-preferences/notification-preferences.tsx
|
|
11
12
|
import { tv } from "tailwind-variants";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/notification-preferences/notification-preferences.tsx"],"sourcesContent":["\"use client\";\n// Client (switches and chips). What reaches a person: categories down, channels across, a switch at each crossing, and\n// presets that set the whole matrix at once. The value is controlled and plain data; the words are props.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { Chip } from \"../chip\";\nimport { Switch } from \"../switch\";\n\nexport const notificationPreferences = tv({\n slots: {\n root: \"flex flex-col gap-3\",\n hint: \"text-xs text-fg-secondary\",\n table: \"w-full overflow-hidden rounded-2xl border border-border-default text-left\",\n head: \"bg-surface-2 text-xs font-semibold text-fg-secondary\",\n channelCell: \"w-16 px-2 py-2.5 text-center sm:w-24\",\n cornerCell: \"px-4 py-2.5\",\n row: \"border-t border-border-subtle\",\n category: \"px-4 py-3 text-left font-normal\",\n name: \"block text-sm font-semibold text-fg\",\n note: \"block text-xs text-fg-secondary\",\n cell: \"px-2 py-3 text-center\",\n },\n});\n\n/** Category id → channel id → on. A missing entry is off; a crossing a category does not use (see `channels`) is never written. */\nexport type NotificationMatrix = Record<string, Record<string, boolean>>;\n\nexport type NotificationChannel = {\n /** Its key in the matrix (`app`, `email`). */\n id: string;\n /** The column's name (`In the app`, `By e-mail`). */\n label: string;\n /** The whole column is inert (e-mail is off for the account). */\n disabled?: boolean;\n};\n\nexport type NotificationCategory = {\n /** Its key in the matrix (`social`, `security`). */\n id: string;\n /** The row's name. */\n label: string;\n /** What these notifications are, one line. */\n description?: string;\n /** The channels this category can use (ids); left out, every channel. Other crossings show no switch. */\n channels?: readonly string[];\n /** Always on, and shown so (security): the switches are inert and `lockedNote` replaces the description. */\n locked?: boolean;\n lockedNote?: string;\n};\n\nexport type NotificationPreset = {\n /** Its key (`everything`, `essentials`). */\n id: string;\n /** The chip's words. */\n label: string;\n /** What the preset does, one sentence, shown while it is the one in force. */\n hint: string;\n /** The matrix it sets (locked categories stay on and inert channels keep their value, whatever it says). */\n value: NotificationMatrix;\n};\n\nexport type NotificationPreferencesProps = {\n /** The group's accessible name (`Notification settings`). */\n label: string;\n /** The columns: where a notification can go. */\n channels: readonly NotificationChannel[];\n /** The rows: what can be sent. */\n categories: readonly NotificationCategory[];\n /** What is on, by category then channel (controlled). */\n value: NotificationMatrix;\n /** Called with the whole matrix after a switch or a preset — normalised: locked rows on, inert channels unchanged, unused crossings absent. */\n onValueChange: (next: NotificationMatrix) => void;\n /** Quick settings above the matrix (`Everything`, `Essentials`, `Nothing`). */\n presets?: readonly NotificationPreset[];\n /** The presets' own accessible name (`Presets`). Required with `presets`. */\n presetsLabel?: string;\n /** Said under the presets when the matrix matches none (`Custom`). */\n customHint?: string;\n /** Classes merged on the root. */\n className?: string;\n};\n\nconst uses = (c: NotificationCategory, channel: string) => !c.channels || c.channels.includes(channel);\n\n// Only what a preset can change counts: not the locked rows, the inert channels, or the crossings a category does not use.\nconst same = (a: NotificationMatrix, b: NotificationMatrix, categories: readonly NotificationCategory[], channels: readonly NotificationChannel[]) =>\n categories.every((c) => c.locked || channels.every((ch) => ch.disabled || !uses(c, ch.id) || Boolean(a[c.id]?.[ch.id]) === Boolean(b[c.id]?.[ch.id])));\n\n/** The preset in force, or null for a custom matrix. */\nexport function presetInForce(value: NotificationMatrix, presets: readonly NotificationPreset[], categories: readonly NotificationCategory[], channels: readonly NotificationChannel[]): string | null {\n return presets.find((p) => same(value, p.value, categories, channels))?.id ?? null;\n}\n\n/**\n * The matrix the controls can show: every crossing a category uses, locked rows on, an inert channel keeping its\n * `current` value whatever `next` says, and nothing for the crossings a category does not use.\n */\nexport function normalizeMatrix(next: NotificationMatrix, current: NotificationMatrix, categories: readonly NotificationCategory[], channels: readonly NotificationChannel[]): NotificationMatrix {\n return Object.fromEntries(\n categories.map((c) => [\n c.id,\n Object.fromEntries(\n channels.filter((ch) => uses(c, ch.id)).map((ch) => [ch.id, c.locked ? true : Boolean((ch.disabled ? current : next)[c.id]?.[ch.id])]),\n ),\n ]),\n );\n}\n\nexport function NotificationPreferences({ label, channels, categories, value, onValueChange, presets, presetsLabel, customHint, className }: NotificationPreferencesProps) {\n const s = notificationPreferences();\n const inForce = presets ? presetInForce(value, presets, categories, channels) : null;\n const emit = (next: NotificationMatrix) => onValueChange(normalizeMatrix(next, value, categories, channels));\n const set = (category: string, channel: string, on: boolean) => emit({ ...value, [category]: { ...value[category], [channel]: on } });\n return (\n <div className={s.root({ className })} role=\"group\" aria-label={label}>\n {presets && presets.length > 0 && (\n <div>\n <Chip.Group type=\"single\" required label={presetsLabel ?? label} value={inForce ?? \"\"} onValueChange={(id) => { const p = presets.find((x) => x.id === id); if (p) emit(p.value); }}>\n {presets.map((p) => (\n <Chip key={p.id} value={p.id}>\n {p.label}\n </Chip>\n ))}\n </Chip.Group>\n <p className={s.hint({ className: \"mt-2\" })}>{inForce ? presets.find((p) => p.id === inForce)?.hint : customHint}</p>\n </div>\n )}\n <table className={s.table()}>\n <thead className={s.head()}>\n <tr>\n <td className={s.cornerCell()} />\n {channels.map((ch) => (\n <th key={ch.id} scope=\"col\" className={s.channelCell()}>\n {ch.label}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {categories.map((c) => (\n <tr key={c.id} className={s.row()}>\n <th scope=\"row\" className={s.category()}>\n <span className={s.name()}>{c.label}</span>\n {(c.locked ? c.lockedNote : c.description) && <span className={s.note()}>{c.locked ? c.lockedNote : c.description}</span>}\n </th>\n {channels.map((ch) => (\n <td key={ch.id} className={s.cell()}>\n {uses(c, ch.id) ? (\n <Switch label={`${c.label} — ${ch.label}`} checked={c.locked || Boolean(value[c.id]?.[ch.id])} disabled={c.locked || ch.disabled} onCheckedChange={(on) => set(c.id, ch.id, on)} />\n ) : (\n <span aria-hidden className={s.note()}>\n –\n </span>\n )}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;AAIA,SAAS,UAAU;AAiHX,SAGM,KAHN;AA5GD,IAAM,0BAA0B,GAAG;AAAA,EACxC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAA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,SAAS,EAAE,aAAa,EAAE,gBAAgB,oBAAC,UAAK,WAAW,EAAE,KAAK,GAAI,YAAE,SAAS,EAAE,aAAa,EAAE,aAAY;AAAA,WACpH;AAAA,QACC,SAAS,IAAI,CAAC,OACb,oBAAC,QAAe,WAAW,EAAE,KAAK,GAC/B,eAAK,GAAG,GAAG,EAAE,IACZ,oBAAC,UAAO,OAAO,GAAG,EAAE,KAAK,WAAM,GAAG,KAAK,IAAI,SAAS,EAAE,UAAU,QAAQ,MAAM,EAAE,EAAE,IAAI,GAAG,EAAE,CAAC,GAAG,UAAU,EAAE,UAAU,GAAG,UAAU,iBAAiB,CAAC,OAAO,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,IAEjL,oBAAC,UAAK,eAAW,MAAC,WAAW,EAAE,KAAK,GAAG,oBAEvC,KANK,GAAG,EAQZ,CACD;AAAA,WAfM,EAAE,EAgBX,CACD,GACH;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/notification-preferences/notification-preferences.tsx"],"sourcesContent":["\"use client\";\n// Client (switches and chips). What reaches a person: categories down, channels across, a switch at each crossing, and\n// presets that set the whole matrix at once. The value is controlled and plain data; the words are props.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { Chip } from \"../chip\";\nimport { Switch } from \"../switch\";\n\nexport const notificationPreferences = tv({\n slots: {\n root: \"flex flex-col gap-3\",\n hint: \"text-xs text-fg-secondary\",\n table: \"w-full overflow-hidden rounded-2xl border border-border-default text-left\",\n head: \"bg-surface-2 text-xs font-semibold text-fg-secondary\",\n channelCell: \"w-16 px-2 py-2.5 text-center sm:w-24\",\n cornerCell: \"px-4 py-2.5\",\n row: \"border-t border-border-subtle\",\n category: \"px-4 py-3 text-left font-normal\",\n name: \"block text-sm font-semibold text-fg\",\n note: \"block text-xs text-fg-secondary\",\n cell: \"px-2 py-3 text-center\",\n },\n});\n\n/** Category id → channel id → on. A missing entry is off; a crossing a category does not use (see `channels`) is never written. */\nexport type NotificationMatrix = Record<string, Record<string, boolean>>;\n\nexport type NotificationChannel = {\n /** Its key in the matrix (`app`, `email`). */\n id: string;\n /** The column's name (`In the app`, `By e-mail`). */\n label: string;\n /** The whole column is inert (e-mail is off for the account). */\n disabled?: boolean;\n};\n\nexport type NotificationCategory = {\n /** Its key in the matrix (`social`, `security`). */\n id: string;\n /** The row's name. */\n label: string;\n /** What these notifications are, one line. */\n description?: string;\n /** The channels this category can use (ids); left out, every channel. Other crossings show no switch. */\n channels?: readonly string[];\n /** Always on, and shown so (security): the switches are inert and `lockedNote` replaces the description. */\n locked?: boolean;\n lockedNote?: string;\n};\n\nexport type NotificationPreset = {\n /** Its key (`everything`, `essentials`). */\n id: string;\n /** The chip's words. */\n label: string;\n /** What the preset does, one sentence, shown while it is the one in force. */\n hint: string;\n /** The matrix it sets (locked categories stay on and inert channels keep their value, whatever it says). */\n value: NotificationMatrix;\n};\n\nexport type NotificationPreferencesProps = {\n /** The group's accessible name (`Notification settings`). */\n label: string;\n /** The columns: where a notification can go. */\n channels: readonly NotificationChannel[];\n /** The rows: what can be sent. */\n categories: readonly NotificationCategory[];\n /** What is on, by category then channel (controlled). */\n value: NotificationMatrix;\n /** Called with the whole matrix after a switch or a preset — normalised: locked rows on, inert channels unchanged, unused crossings absent. */\n onValueChange: (next: NotificationMatrix) => void;\n /** Quick settings above the matrix (`Everything`, `Essentials`, `Nothing`). */\n presets?: readonly NotificationPreset[];\n /** The presets' own accessible name (`Presets`). Required with `presets`. */\n presetsLabel?: string;\n /** Said under the presets when the matrix matches none (`Custom`). */\n customHint?: string;\n /** Classes merged on the root. */\n className?: string;\n};\n\nconst uses = (c: NotificationCategory, channel: string) => !c.channels || c.channels.includes(channel);\n\n// Only what a preset can change counts: not the locked rows, the inert channels, or the crossings a category does not use.\nconst same = (a: NotificationMatrix, b: NotificationMatrix, categories: readonly NotificationCategory[], channels: readonly NotificationChannel[]) =>\n categories.every((c) => c.locked || channels.every((ch) => ch.disabled || !uses(c, ch.id) || Boolean(a[c.id]?.[ch.id]) === Boolean(b[c.id]?.[ch.id])));\n\n/** The preset in force, or null for a custom matrix. */\nexport function presetInForce(value: NotificationMatrix, presets: readonly NotificationPreset[], categories: readonly NotificationCategory[], channels: readonly NotificationChannel[]): string | null {\n return presets.find((p) => same(value, p.value, categories, channels))?.id ?? null;\n}\n\n/**\n * The matrix the controls can show: every crossing a category uses, locked rows on, an inert channel keeping its\n * `current` value whatever `next` says, and nothing for the crossings a category does not use.\n */\nexport function normalizeMatrix(next: NotificationMatrix, current: NotificationMatrix, categories: readonly NotificationCategory[], channels: readonly NotificationChannel[]): NotificationMatrix {\n return Object.fromEntries(\n categories.map((c) => [\n c.id,\n Object.fromEntries(\n channels.filter((ch) => uses(c, ch.id)).map((ch) => [ch.id, c.locked ? true : Boolean((ch.disabled ? current : next)[c.id]?.[ch.id])]),\n ),\n ]),\n );\n}\n\nexport function NotificationPreferences({ label, channels, categories, value, onValueChange, presets, presetsLabel, customHint, className }: NotificationPreferencesProps) {\n const s = notificationPreferences();\n const inForce = presets ? presetInForce(value, presets, categories, channels) : null;\n const emit = (next: NotificationMatrix) => onValueChange(normalizeMatrix(next, value, categories, channels));\n const set = (category: string, channel: string, on: boolean) => emit({ ...value, [category]: { ...value[category], [channel]: on } });\n return (\n <div className={s.root({ className })} role=\"group\" aria-label={label}>\n {presets && presets.length > 0 && (\n <div>\n <Chip.Group type=\"single\" required label={presetsLabel ?? label} value={inForce ?? \"\"} onValueChange={(id) => { const p = presets.find((x) => x.id === id); if (p) emit(p.value); }}>\n {presets.map((p) => (\n <Chip key={p.id} value={p.id}>\n {p.label}\n </Chip>\n ))}\n </Chip.Group>\n <p className={s.hint({ className: \"mt-2\" })}>{inForce ? presets.find((p) => p.id === inForce)?.hint : customHint}</p>\n </div>\n )}\n <table className={s.table()}>\n <thead className={s.head()}>\n <tr>\n <td className={s.cornerCell()} />\n {channels.map((ch) => (\n <th key={ch.id} scope=\"col\" className={s.channelCell()}>\n {ch.label}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {categories.map((c) => (\n <tr key={c.id} className={s.row()}>\n <th scope=\"row\" className={s.category()}>\n <span className={s.name()}>{c.label}</span>\n {(c.locked ? c.lockedNote : c.description) && <span className={s.note()}>{c.locked ? c.lockedNote : c.description}</span>}\n </th>\n {channels.map((ch) => (\n <td key={ch.id} className={s.cell()}>\n {uses(c, ch.id) ? (\n <Switch label={`${c.label} — ${ch.label}`} checked={c.locked || Boolean(value[c.id]?.[ch.id])} disabled={c.locked || ch.disabled} onCheckedChange={(on) => set(c.id, ch.id, on)} />\n ) : (\n <span aria-hidden className={s.note()}>\n –\n </span>\n )}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;AAIA,SAAS,UAAU;AAiHX,SAGM,KAHN;AA5GD,IAAM,0BAA0B,GAAG;AAAA,EACxC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AACF,CAAC;AA4DD,IAAM,OAAO,CAAC,GAAyB,YAAoB,CAAC,EAAE,YAAY,EAAE,SAAS,SAAS,OAAO;AAGrG,IAAM,OAAO,CAAC,GAAuB,GAAuB,YAA6C,aACvG,WAAW,MAAM,CAAC,MAAM,EAAE,UAAU,SAAS,MAAM,CAAC,OAAO,GAAG,YAAY,CAAC,KAAK,GAAG,GAAG,EAAE,KAAK,QAAQ,EAAE,EAAE,EAAE,IAAI,GAAG,EAAE,CAAC,MAAM,QAAQ,EAAE,EAAE,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;AAGhJ,SAAS,cAAc,OAA2B,SAAwC,YAA6C,UAAyD;AACrM,SAAO,QAAQ,K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EAAE,KAAK,GAAG,oBAEvC,KANK,GAAG,EAQZ,CACD;AAAA,WAfM,EAAE,EAgBX,CACD,GACH;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
package/dist/number-ticker.d.ts
CHANGED
|
@@ -33,4 +33,5 @@ interface NumberTickerProps extends Omit<React.ComponentProps<"span">, "children
|
|
|
33
33
|
/** A figure that climbs into view, or rolls digit by digit to each new value. */
|
|
34
34
|
declare function NumberTicker({ value, locale, format, trigger, duration, announce, align, easing, className, style, ...props }: NumberTickerProps): React.JSX.Element;
|
|
35
35
|
|
|
36
|
-
export { NumberTicker
|
|
36
|
+
export { NumberTicker };
|
|
37
|
+
export type { NumberTickerProps };
|
package/dist/opening-hours.d.ts
CHANGED
|
@@ -121,4 +121,5 @@ type OpeningHoursProps = Omit<React.ComponentProps<"details">, "children"> & {
|
|
|
121
121
|
/** The weekly hours in one row — open now, closes at… — that unfolds into the week, today highlighted. */
|
|
122
122
|
declare function OpeningHours({ days, today, status, label, className, ...props }: OpeningHoursProps): React.JSX.Element;
|
|
123
123
|
|
|
124
|
-
export {
|
|
124
|
+
export { OpeningHours, openingHours };
|
|
125
|
+
export type { OpeningDay, OpeningHoursProps, OpeningStatus };
|
package/dist/page-header.d.ts
CHANGED
|
@@ -76,4 +76,5 @@ type PageHeaderProps = Omit<React.ComponentProps<"div">, "title"> & {
|
|
|
76
76
|
};
|
|
77
77
|
declare function PageHeader({ title, description, actions, breadcrumb, as: Heading, className, ...props }: PageHeaderProps): React.JSX.Element;
|
|
78
78
|
|
|
79
|
-
export { PageHeader,
|
|
79
|
+
export { PageHeader, pageHeader };
|
|
80
|
+
export type { PageHeaderProps };
|
package/dist/page-hero.d.ts
CHANGED
|
@@ -41,4 +41,5 @@ type PageHeroProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
|
41
41
|
/** The first screen of a page: back link, eyebrow, `h1`, lead, what follows them (facts, actions) and an aside. */
|
|
42
42
|
declare function PageHero({ title, eyebrow, lead, back, linkAs, aside, backdrop, align, size, className, children, ...props }: PageHeroProps): React.JSX.Element;
|
|
43
43
|
|
|
44
|
-
export { LinkComponent, PageHero
|
|
44
|
+
export { LinkComponent, PageHero };
|
|
45
|
+
export type { PageHeroProps };
|
package/dist/page-index.d.ts
CHANGED
|
@@ -27,4 +27,5 @@ type PageIndexProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
|
27
27
|
/** A book's index: headings, entries, a dotted leader and the page number; the current entry marked in the margin. */
|
|
28
28
|
declare function PageIndex({ groups, label, linkAs, className, ...props }: PageIndexProps): React.JSX.Element;
|
|
29
29
|
|
|
30
|
-
export {
|
|
30
|
+
export { LinkComponent, PageIndex };
|
|
31
|
+
export type { IndexEntry, IndexGroup, PageIndexProps };
|
package/dist/page.d.ts
CHANGED
|
@@ -125,4 +125,5 @@ type FactsProps = React.HTMLAttributes<HTMLUListElement> & {
|
|
|
125
125
|
/** Compact facts on one line — a dot that says the state, a few mono words. Links open in a new tab. */
|
|
126
126
|
declare function Facts({ items, className, ...props }: FactsProps): React.JSX.Element;
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { Facts, Page, Section, SectionHeading, Ticks };
|
|
129
|
+
export type { Fact, FactsProps, PagePaper, PageProps, PageSize, SectionHeadingProps, SectionProps, TicksProps };
|
package/dist/pagination.d.ts
CHANGED
|
@@ -138,4 +138,5 @@ type PaginationProps = Omit<React.ComponentProps<"nav">, "children"> & {
|
|
|
138
138
|
/** Moves through a long list: page numbers (folded on a narrow screen) or previous / next on a cursor. */
|
|
139
139
|
declare function Pagination({ page, pageCount, onPageChange, getHref, hasPrevious, hasNext, onPrevious, onNext, siblings, boundaries, status, pageSize, pageSizeOptions, onPageSizeChange, disabled, labels: given, className, ...props }: PaginationProps): React.JSX.Element;
|
|
140
140
|
|
|
141
|
-
export { Pagination,
|
|
141
|
+
export { Pagination, pageRange, pagination, paginationLabels };
|
|
142
|
+
export type { PaginationLabels, PaginationProps };
|
package/dist/photo-grid.d.ts
CHANGED
|
@@ -119,4 +119,5 @@ type PhotoGridProps = {
|
|
|
119
119
|
/** A profile's photos in slots: drag to reorder, or each photo's buttons (earlier, later, remove), every move announced. */
|
|
120
120
|
declare function PhotoGrid({ value, onValueChange, onAdd, slots, required, columns, labels, className }: PhotoGridProps): React.JSX.Element;
|
|
121
121
|
|
|
122
|
-
export {
|
|
122
|
+
export { PhotoGrid, photoGrid };
|
|
123
|
+
export type { GridPhoto, PhotoGridLabels, PhotoGridProps };
|
package/dist/pointer-light.d.ts
CHANGED
|
@@ -14,4 +14,5 @@ type PointerLightProps = {
|
|
|
14
14
|
/** @deprecated Since 3.31 (krizaka-ui#393): renders an empty hidden span and nothing else. Remove it. Removed in 4.0. */
|
|
15
15
|
declare function PointerLight(_props: PointerLightProps): React.JSX.Element;
|
|
16
16
|
|
|
17
|
-
export { POINTER_LIGHT_TARGET, PointerLight,
|
|
17
|
+
export { POINTER_LIGHT_TARGET, PointerLight, usePointerLight };
|
|
18
|
+
export type { PointerLightProps };
|
package/dist/popover.d.ts
CHANGED
package/dist/pricing-page.d.ts
CHANGED
|
@@ -59,4 +59,5 @@ type PricingPageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
|
59
59
|
/** A pricing page: plans (the featured one lifted), the comparison, credits, the questions. */
|
|
60
60
|
declare function PricingPage({ brand, eyebrow, title, lead, toolbar, plansLabel, plans, compare, credits, faq, className, ...props }: PricingPageProps): React.JSX.Element;
|
|
61
61
|
|
|
62
|
-
export { PricingPage
|
|
62
|
+
export { PricingPage };
|
|
63
|
+
export type { PricingPageProps, PricingPlan };
|
package/dist/product-page.d.ts
CHANGED
|
@@ -83,4 +83,5 @@ type ProductPageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
|
83
83
|
*/
|
|
84
84
|
declare function ProductPage({ brand, mark, title, lead, facts, actions, visual, visualLabel, reasonsHeading, reasonLabels, reasons, decisions, promise, closing, linkAs, className, children, ...props }: ProductPageProps): React.JSX.Element;
|
|
85
85
|
|
|
86
|
-
export { ProductPage
|
|
86
|
+
export { ProductPage };
|
|
87
|
+
export type { ProductPageProps, ProductReason };
|
package/dist/profile-card.d.ts
CHANGED
|
@@ -200,4 +200,5 @@ type StatGaugeProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
|
200
200
|
/** A measured strength: label, figure and bar; `role="meter"` with `aria-valuetext`. */
|
|
201
201
|
declare function StatGauge({ label, value, max, valueText, figure, hideLabel, className, style, ...props }: StatGaugeProps): React.JSX.Element;
|
|
202
202
|
|
|
203
|
-
export { ProfileBanner,
|
|
203
|
+
export { ProfileBanner, ProfileCard, StatGauge, profileBanner };
|
|
204
|
+
export type { ProfileBannerProps, ProfileCardProps, ProfileStat, StatGaugeProps };
|
package/dist/progress.d.ts
CHANGED
|
@@ -144,4 +144,5 @@ type ProgressProps = Omit<React.ComponentProps<"div">, "children"> & ProgressVar
|
|
|
144
144
|
/** A progress bar or ring: `value` / `max`, indeterminate without a value. State: `data-state` (loading · complete · indeterminate). */
|
|
145
145
|
declare function Progress({ variant, size, value, max, label, valueText, className, children, buffer, segments, status, showLabel, eta, ...props }: ProgressProps): React.JSX.Element;
|
|
146
146
|
|
|
147
|
-
export { Progress,
|
|
147
|
+
export { Progress, progress };
|
|
148
|
+
export type { ProgressProps, ProgressVariants };
|
package/dist/promise-card.d.ts
CHANGED
|
@@ -28,4 +28,5 @@ type PromiseCardProps = Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
|
28
28
|
*/
|
|
29
29
|
declare function PromiseCard({ label, promise, keys, bearer, bearerLabel, bearerName, variant, brand, className, ...props }: PromiseCardProps): React.JSX.Element;
|
|
30
30
|
|
|
31
|
-
export { PromiseCard
|
|
31
|
+
export { PromiseCard };
|
|
32
|
+
export type { PromiseCardProps };
|
package/dist/quota-meter.d.ts
CHANGED
|
@@ -110,4 +110,5 @@ type QuotaMeterProps = Omit<React.ComponentProps<"section">, "title"> & {
|
|
|
110
110
|
};
|
|
111
111
|
declare function QuotaMeter({ title, icon, plan, value, max, usedText, meterLabel, level, statusText, notices, details, action, compact, className, ...props }: QuotaMeterProps): React.JSX.Element;
|
|
112
112
|
|
|
113
|
-
export { QUOTA_THRESHOLDS,
|
|
113
|
+
export { QUOTA_THRESHOLDS, QuotaMeter, quotaMeter };
|
|
114
|
+
export type { QuotaLevel, QuotaMeterProps };
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -112,4 +112,5 @@ declare const RadioGroup: {
|
|
|
112
112
|
Segment: typeof RadioGroupSegment;
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
-
export { RadioGroup, RadioGroupButton,
|
|
115
|
+
export { RadioGroup, RadioGroupButton, RadioGroupCard, RadioGroupItem, RadioGroupRoot, RadioGroupSegment, radioGroup };
|
|
116
|
+
export type { RadioGroupButtonProps, RadioGroupItemProps, RadioGroupRootProps };
|
package/dist/radio-group.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
CheckGlyph
|
|
4
|
-
} from "./chunk-KDXRYUD3.js";
|
|
5
2
|
import {
|
|
6
3
|
tv
|
|
7
4
|
} from "./chunk-HJFRHYCI.js";
|
|
8
5
|
import {
|
|
9
6
|
useSlidingIndicator
|
|
10
7
|
} from "./chunk-4QN5YJ3D.js";
|
|
8
|
+
import {
|
|
9
|
+
CheckGlyph
|
|
10
|
+
} from "./chunk-5QEXOGO2.js";
|
|
11
11
|
import "./chunk-NSLXEDIS.js";
|
|
12
12
|
|
|
13
13
|
// src/radio-group/radio-group.tsx
|
package/dist/rail-nav.d.ts
CHANGED
|
@@ -6,39 +6,39 @@ type BrandId = "krizaka" | "orazaka" | "orochia" | "yasakia" | "yororis" | "yomi
|
|
|
6
6
|
declare const railNav: tailwind_variants.TVReturnType<{
|
|
7
7
|
[key: string]: {
|
|
8
8
|
[key: string]: tailwind_variants.ClassValue | {
|
|
9
|
-
|
|
10
|
-
label?: tailwind_variants.ClassValue;
|
|
11
|
-
main?: tailwind_variants.ClassValue;
|
|
9
|
+
shell?: tailwind_variants.ClassValue;
|
|
12
10
|
mark?: tailwind_variants.ClassValue;
|
|
13
11
|
group?: tailwind_variants.ClassValue;
|
|
14
|
-
|
|
15
|
-
shell?: tailwind_variants.ClassValue;
|
|
12
|
+
main?: tailwind_variants.ClassValue;
|
|
16
13
|
foot?: tailwind_variants.ClassValue;
|
|
17
14
|
shortcuts?: tailwind_variants.ClassValue;
|
|
18
15
|
shortcutsHeading?: tailwind_variants.ClassValue;
|
|
19
16
|
icon?: tailwind_variants.ClassValue;
|
|
17
|
+
label?: tailwind_variants.ClassValue;
|
|
20
18
|
badge?: tailwind_variants.ClassValue;
|
|
19
|
+
body?: tailwind_variants.ClassValue;
|
|
21
20
|
root?: tailwind_variants.ClassValue;
|
|
22
21
|
item?: tailwind_variants.ClassValue;
|
|
22
|
+
toggle?: tailwind_variants.ClassValue;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
} | {
|
|
26
26
|
[x: string]: {
|
|
27
27
|
[x: string]: tailwind_variants.ClassValue | {
|
|
28
|
-
|
|
29
|
-
label?: tailwind_variants.ClassValue;
|
|
30
|
-
main?: tailwind_variants.ClassValue;
|
|
28
|
+
shell?: tailwind_variants.ClassValue;
|
|
31
29
|
mark?: tailwind_variants.ClassValue;
|
|
32
30
|
group?: tailwind_variants.ClassValue;
|
|
33
|
-
|
|
34
|
-
shell?: tailwind_variants.ClassValue;
|
|
31
|
+
main?: tailwind_variants.ClassValue;
|
|
35
32
|
foot?: tailwind_variants.ClassValue;
|
|
36
33
|
shortcuts?: tailwind_variants.ClassValue;
|
|
37
34
|
shortcutsHeading?: tailwind_variants.ClassValue;
|
|
38
35
|
icon?: tailwind_variants.ClassValue;
|
|
36
|
+
label?: tailwind_variants.ClassValue;
|
|
39
37
|
badge?: tailwind_variants.ClassValue;
|
|
38
|
+
body?: tailwind_variants.ClassValue;
|
|
40
39
|
root?: tailwind_variants.ClassValue;
|
|
41
40
|
item?: tailwind_variants.ClassValue;
|
|
41
|
+
toggle?: tailwind_variants.ClassValue;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
} | {}, {
|
|
@@ -59,20 +59,20 @@ declare const railNav: tailwind_variants.TVReturnType<{
|
|
|
59
59
|
}, undefined, {
|
|
60
60
|
[key: string]: {
|
|
61
61
|
[key: string]: tailwind_variants.ClassValue | {
|
|
62
|
-
|
|
63
|
-
label?: tailwind_variants.ClassValue;
|
|
64
|
-
main?: tailwind_variants.ClassValue;
|
|
62
|
+
shell?: tailwind_variants.ClassValue;
|
|
65
63
|
mark?: tailwind_variants.ClassValue;
|
|
66
64
|
group?: tailwind_variants.ClassValue;
|
|
67
|
-
|
|
68
|
-
shell?: tailwind_variants.ClassValue;
|
|
65
|
+
main?: tailwind_variants.ClassValue;
|
|
69
66
|
foot?: tailwind_variants.ClassValue;
|
|
70
67
|
shortcuts?: tailwind_variants.ClassValue;
|
|
71
68
|
shortcutsHeading?: tailwind_variants.ClassValue;
|
|
72
69
|
icon?: tailwind_variants.ClassValue;
|
|
70
|
+
label?: tailwind_variants.ClassValue;
|
|
73
71
|
badge?: tailwind_variants.ClassValue;
|
|
72
|
+
body?: tailwind_variants.ClassValue;
|
|
74
73
|
root?: tailwind_variants.ClassValue;
|
|
75
74
|
item?: tailwind_variants.ClassValue;
|
|
75
|
+
toggle?: tailwind_variants.ClassValue;
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
} | {}, {
|
|
@@ -162,4 +162,5 @@ declare const RailNav: {
|
|
|
162
162
|
Body: typeof RailNavBody;
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
export { RailNav, RailNavBody, RailNavItem,
|
|
165
|
+
export { RailNav, RailNavBody, RailNavItem, RailNavRoot, RailNavShell, railNav };
|
|
166
|
+
export type { RailNavItemProps, RailNavRootProps };
|
package/dist/rail-nav.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Tooltip
|
|
4
|
+
} from "./chunk-27AWSJTK.js";
|
|
2
5
|
import {
|
|
3
6
|
ChevronGlyph
|
|
4
7
|
} from "./chunk-P7GZR5CU.js";
|
|
@@ -6,48 +9,11 @@ import {
|
|
|
6
9
|
cn
|
|
7
10
|
} from "./chunk-WU4VLSEA.js";
|
|
8
11
|
|
|
9
|
-
// src/tooltip/tooltip.tsx
|
|
10
|
-
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
11
|
-
|
|
12
|
-
// src/floating.ts
|
|
13
|
-
var floating = "kz-pop z-50 rounded-lg border border-border-default bg-surface-2 text-fg shadow-lg outline-hidden";
|
|
14
|
-
|
|
15
|
-
// src/tooltip/tooltip.tsx
|
|
16
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
var TooltipProvider = TooltipPrimitive.Provider;
|
|
18
|
-
function Tooltip({
|
|
19
|
-
content,
|
|
20
|
-
children,
|
|
21
|
-
open,
|
|
22
|
-
defaultOpen,
|
|
23
|
-
onOpenChange,
|
|
24
|
-
delayDuration = 300,
|
|
25
|
-
container,
|
|
26
|
-
sideOffset = 6,
|
|
27
|
-
collisionPadding = 8,
|
|
28
|
-
className,
|
|
29
|
-
...props
|
|
30
|
-
}) {
|
|
31
|
-
return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ jsxs(TooltipPrimitive.Root, { open, defaultOpen, onOpenChange, children: [
|
|
32
|
-
/* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children }),
|
|
33
|
-
/* @__PURE__ */ jsx(TooltipPrimitive.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
34
|
-
TooltipPrimitive.Content,
|
|
35
|
-
{
|
|
36
|
-
sideOffset,
|
|
37
|
-
collisionPadding,
|
|
38
|
-
className: cn(floating, "max-w-xs px-2.5 py-1.5 text-xs font-medium origin-(--radix-tooltip-content-transform-origin)", className),
|
|
39
|
-
...props,
|
|
40
|
-
children: content
|
|
41
|
-
}
|
|
42
|
-
) })
|
|
43
|
-
] }) });
|
|
44
|
-
}
|
|
45
|
-
|
|
46
12
|
// src/rail-nav/rail-nav.tsx
|
|
47
13
|
import { Slot } from "radix-ui";
|
|
48
14
|
import * as React from "react";
|
|
49
15
|
import { tv } from "tailwind-variants";
|
|
50
|
-
import { Fragment, jsx
|
|
16
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
51
17
|
var railNav = tv({
|
|
52
18
|
slots: {
|
|
53
19
|
shell: "flex min-h-dvh w-full bg-surface-0 text-fg",
|
|
@@ -80,10 +46,10 @@ var useRail = () => {
|
|
|
80
46
|
return ctx;
|
|
81
47
|
};
|
|
82
48
|
function RailNavShell({ className, ...props }) {
|
|
83
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ jsx("div", { className: s.shell({ className }), ...props });
|
|
84
50
|
}
|
|
85
51
|
function RailNavBody({ className, ...props }) {
|
|
86
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ jsx("div", { className: s.body({ className }), ...props });
|
|
87
53
|
}
|
|
88
54
|
var count = (node) => React.Children.toArray(node).length;
|
|
89
55
|
var WIDE = "(min-width: 80rem)";
|
|
@@ -138,7 +104,7 @@ function RailNavRoot({
|
|
|
138
104
|
onExpandedChange?.(!expanded);
|
|
139
105
|
};
|
|
140
106
|
const value = React.useMemo(() => ({ expanded }), [expanded]);
|
|
141
|
-
return /* @__PURE__ */
|
|
107
|
+
return /* @__PURE__ */ jsx(RailContext.Provider, { value, children: /* @__PURE__ */ jsxs(
|
|
142
108
|
"nav",
|
|
143
109
|
{
|
|
144
110
|
"aria-label": label,
|
|
@@ -150,17 +116,17 @@ function RailNavRoot({
|
|
|
150
116
|
},
|
|
151
117
|
...props,
|
|
152
118
|
children: [
|
|
153
|
-
mark && /* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
shortcuts && /* @__PURE__ */
|
|
156
|
-
shortcutsLabel && /* @__PURE__ */
|
|
119
|
+
mark && /* @__PURE__ */ jsx("div", { "data-brand-mark": true, className: s.mark(), children: mark }),
|
|
120
|
+
/* @__PURE__ */ jsx("div", { className: s.group({ className: s.main() }), style: { ["--rail-n"]: Math.max(count(children), 1) }, children }),
|
|
121
|
+
shortcuts && /* @__PURE__ */ jsxs("div", { role: "group", "aria-labelledby": shortcutsLabel ? headingId : void 0, "data-rail-shortcuts": "", className: s.group({ className: s.shortcuts() }), children: [
|
|
122
|
+
shortcutsLabel && /* @__PURE__ */ jsx("p", { id: headingId, className: s.shortcutsHeading(), children: shortcutsLabel }),
|
|
157
123
|
shortcuts
|
|
158
124
|
] }),
|
|
159
|
-
(footer || expandable) && /* @__PURE__ */
|
|
125
|
+
(footer || expandable) && /* @__PURE__ */ jsxs("div", { className: s.group({ className: s.foot() }), style: { ["--rail-n"]: Math.max(count(footer), 1) }, children: [
|
|
160
126
|
footer,
|
|
161
|
-
expandable && expandLabels && /* @__PURE__ */
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */
|
|
127
|
+
expandable && expandLabels && /* @__PURE__ */ jsxs("button", { type: "button", "data-rail-item": true, className: s.toggle(), "aria-expanded": expanded, onClick: toggle, children: [
|
|
128
|
+
/* @__PURE__ */ jsx(ChevronGlyph, { direction: expanded ? "left" : "right", className: "h-4 w-4 shrink-0" }),
|
|
129
|
+
/* @__PURE__ */ jsx("span", { className: expanded ? void 0 : "sr-only", children: expanded ? expandLabels[1] : expandLabels[0] })
|
|
164
130
|
] })
|
|
165
131
|
] })
|
|
166
132
|
]
|
|
@@ -170,18 +136,18 @@ function RailNavRoot({
|
|
|
170
136
|
function RailNavItem({ icon, label, current, badge, badgeLabel, asChild, children, className, ...props }) {
|
|
171
137
|
const { expanded } = useRail();
|
|
172
138
|
const Comp = asChild ? Slot.Root : "a";
|
|
173
|
-
const inner = /* @__PURE__ */
|
|
174
|
-
/* @__PURE__ */
|
|
139
|
+
const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
140
|
+
/* @__PURE__ */ jsxs("span", { className: s.icon(), children: [
|
|
175
141
|
icon,
|
|
176
142
|
badge != null && (typeof badge === "string" || typeof badge === "number") ? (
|
|
177
143
|
// Drawn by CSS, so the count is no text of the link: the visible text stays the label, which the name `Chat, 2 unread` contains.
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
) : badge != null && /* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ jsx("span", { className: s.badge(), "data-count": badge, "aria-hidden": true })
|
|
145
|
+
) : badge != null && /* @__PURE__ */ jsx("span", { className: s.badge(), "aria-hidden": true, children: badge })
|
|
180
146
|
] }),
|
|
181
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ jsx("span", { className: s.label(), children: label })
|
|
182
148
|
] });
|
|
183
|
-
const link = /* @__PURE__ */
|
|
184
|
-
return expanded ? link : /* @__PURE__ */
|
|
149
|
+
const link = /* @__PURE__ */ jsx(Comp, { "data-rail-item": true, "aria-label": badgeLabel ? `${label}, ${badgeLabel}` : label, "aria-current": current ? "page" : void 0, className: s.item({ className }), ...props, children: asChild && children ? React.cloneElement(children, void 0, inner) : inner });
|
|
150
|
+
return expanded ? link : /* @__PURE__ */ jsx(Tooltip, { content: label, side: "right", children: link });
|
|
185
151
|
}
|
|
186
152
|
var RailNav = {
|
|
187
153
|
Shell: RailNavShell,
|