@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/account-settings.js
CHANGED
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
CheckGlyph
|
|
3
3
|
} from "./chunk-3D2YI63L.js";
|
|
4
4
|
import {
|
|
5
|
+
SettingsRow,
|
|
5
6
|
defineRecipe
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7J2L4HOD.js";
|
|
7
8
|
import {
|
|
8
9
|
Avatar,
|
|
9
10
|
defaultAvatarUrl
|
|
@@ -64,72 +65,42 @@ function AccountProfileCard({ name, email, verified, verifiedLabel, unverifiedLa
|
|
|
64
65
|
] });
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
// src/account-settings/
|
|
68
|
-
import
|
|
69
|
-
import * as React from "react";
|
|
68
|
+
// src/account-settings/appearance-settings.tsx
|
|
69
|
+
import * as React3 from "react";
|
|
70
70
|
|
|
71
|
-
// src/
|
|
71
|
+
// src/field/field.tsx
|
|
72
|
+
import { tv as tv2 } from "tailwind-variants";
|
|
72
73
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"group/avatar relative shrink-0 rounded-full",
|
|
93
|
-
dense ? "h-12 w-12" : "aspect-square w-full",
|
|
94
|
-
" outline-none transition-shadow duration-200 motion-reduce:transition-none",
|
|
95
|
-
"ring-1 ring-border-default hover:ring-border-strong focus-visible:focus-ring data-[state=checked]:ring-2 data-[state=checked]:ring-accent"
|
|
96
|
-
),
|
|
97
|
-
children: [
|
|
98
|
-
/* @__PURE__ */ jsx4("img", { src: pictureOf(option), alt: "", draggable: false, className: "h-full w-full rounded-full bg-surface-3 object-cover" }),
|
|
99
|
-
/* @__PURE__ */ jsx4(
|
|
100
|
-
"span",
|
|
101
|
-
{
|
|
102
|
-
"aria-hidden": true,
|
|
103
|
-
className: "absolute -bottom-0.5 -right-0.5 hidden h-5 w-5 items-center justify-center rounded-full border-2 border-surface-1 bg-accent text-on-accent group-data-[state=checked]/avatar:inline-flex",
|
|
104
|
-
children: /* @__PURE__ */ jsx4(CheckGlyph, { className: "h-3 w-3" })
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
option.id
|
|
110
|
-
)),
|
|
111
|
-
upload ? /* @__PURE__ */ jsx4("div", { className: "flex aspect-square w-full items-center justify-center", children: upload }) : null
|
|
112
|
-
] });
|
|
113
|
-
if (!showLabel) return group;
|
|
114
|
-
return /* @__PURE__ */ jsxs4("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
115
|
-
/* @__PURE__ */ jsx4(GroupHead, { id, label, description }),
|
|
116
|
-
group
|
|
117
|
-
] });
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// src/account-settings/choice-cards.tsx
|
|
121
|
-
import * as React3 from "react";
|
|
74
|
+
var field = tv2({
|
|
75
|
+
slots: {
|
|
76
|
+
root: "flex flex-col gap-1.5",
|
|
77
|
+
label: "text-xs font-semibold text-fg-secondary",
|
|
78
|
+
control: "flex h-11 w-full rounded-lg border border-border-control bg-surface-2 px-3 text-sm text-fg placeholder:text-fg-muted transition-[border-color,box-shadow] focus-visible:border-accent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-danger/30",
|
|
79
|
+
hint: "text-xs text-fg-secondary",
|
|
80
|
+
// The message reads in the danger text role (≥ 4.5:1 on every surface, both themes); the dot is the danger fill.
|
|
81
|
+
error: "flex items-center gap-1.5 text-xs font-medium text-fg-danger before:h-1.5 before:w-1.5 before:shrink-0 before:rounded-full before:bg-danger",
|
|
82
|
+
selectWrap: "relative flex w-full",
|
|
83
|
+
chevron: "pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-fg-secondary"
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
var s = field();
|
|
87
|
+
var Field = {
|
|
88
|
+
Root: ({ className, ...props }) => /* @__PURE__ */ jsx3("div", { className: s.root({ className }), ...props }),
|
|
89
|
+
Label: ({ className, ...props }) => /* @__PURE__ */ jsx3("label", { className: s.label({ className }), ...props }),
|
|
90
|
+
Hint: ({ className, ...props }) => /* @__PURE__ */ jsx3("p", { className: s.hint({ className }), ...props }),
|
|
91
|
+
Error: ({ className, ...props }) => /* @__PURE__ */ jsx3("p", { role: "alert", className: s.error({ className }), ...props })
|
|
92
|
+
};
|
|
122
93
|
|
|
123
94
|
// src/radio-group/radio-group.tsx
|
|
124
|
-
import { RadioGroup as
|
|
95
|
+
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
125
96
|
import { useRouteBinding } from "@krizaka/ui/router";
|
|
126
97
|
|
|
127
98
|
// src/sliding-indicator.ts
|
|
128
|
-
import * as
|
|
129
|
-
var useIsoLayoutEffect = typeof window === "undefined" ?
|
|
99
|
+
import * as React from "react";
|
|
100
|
+
var useIsoLayoutEffect = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect;
|
|
130
101
|
function useSlidingIndicator({ item, active, prefer, follow = false }) {
|
|
131
|
-
const ref =
|
|
132
|
-
const place =
|
|
102
|
+
const ref = React.useRef(null);
|
|
103
|
+
const place = React.useCallback((target) => {
|
|
133
104
|
const list = ref.current;
|
|
134
105
|
if (!list) return;
|
|
135
106
|
if (!(target instanceof HTMLElement) || !list.contains(target)) {
|
|
@@ -144,7 +115,7 @@ function useSlidingIndicator({ item, active, prefer, follow = false }) {
|
|
|
144
115
|
list.style.setProperty("--kz-ind-h", `${a.height}px`);
|
|
145
116
|
list.setAttribute("data-indicator", "on");
|
|
146
117
|
}, []);
|
|
147
|
-
const rest =
|
|
118
|
+
const rest = React.useCallback(
|
|
148
119
|
() => {
|
|
149
120
|
const list = ref.current;
|
|
150
121
|
const hovered = follow ? list?.querySelector(`${item}:hover`) : null;
|
|
@@ -152,7 +123,7 @@ function useSlidingIndicator({ item, active, prefer, follow = false }) {
|
|
|
152
123
|
},
|
|
153
124
|
[place, active, prefer, item, follow]
|
|
154
125
|
);
|
|
155
|
-
const follow_ =
|
|
126
|
+
const follow_ = React.useCallback((target) => {
|
|
156
127
|
const hit = target instanceof Element ? target.closest(item) : null;
|
|
157
128
|
if (hit && ref.current?.contains(hit)) place(hit);
|
|
158
129
|
else rest();
|
|
@@ -181,11 +152,11 @@ function useSlidingIndicator({ item, active, prefer, follow = false }) {
|
|
|
181
152
|
|
|
182
153
|
// src/tv.ts
|
|
183
154
|
import { createTV } from "tailwind-variants";
|
|
184
|
-
var
|
|
155
|
+
var tv3 = createTV({ twMergeConfig });
|
|
185
156
|
|
|
186
157
|
// src/radio-group/radio-group.tsx
|
|
187
|
-
import { jsx as
|
|
188
|
-
var radioGroup =
|
|
158
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
159
|
+
var radioGroup = tv3({
|
|
189
160
|
slots: {
|
|
190
161
|
root: "grid gap-2 data-[orientation=horizontal]:flex data-[orientation=horizontal]:flex-wrap",
|
|
191
162
|
item: "peer inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full border border-border-control bg-surface-1 inset-shadow-well transition-colors focus-visible:outline-hidden focus-visible:focus-ring hover:border-accent disabled:cursor-not-allowed disabled:opacity-40 data-[state=checked]:border-accent data-[state=checked]:bg-accent data-[state=checked]:shadow-glow aria-invalid:border-danger",
|
|
@@ -210,13 +181,13 @@ var radioGroup = tv2({
|
|
|
210
181
|
},
|
|
211
182
|
defaultVariants: { variant: "list" }
|
|
212
183
|
});
|
|
213
|
-
var
|
|
184
|
+
var s2 = radioGroup();
|
|
214
185
|
function RadioGroupRoot({ label, invalid, variant = "list", className, routeKey, routeValues, ...rest }) {
|
|
215
186
|
const props = useRouteBinding(routeKey, routeValues, rest);
|
|
216
187
|
const { ref } = useSlidingIndicator({ item: "[role=radio]", active: "[role=radio][data-state=checked]" });
|
|
217
188
|
const segmented = variant === "segmented";
|
|
218
|
-
return /* @__PURE__ */
|
|
219
|
-
|
|
189
|
+
return /* @__PURE__ */ jsx4(
|
|
190
|
+
RadioGroupPrimitive.Root,
|
|
220
191
|
{
|
|
221
192
|
ref: segmented ? ref : void 0,
|
|
222
193
|
"aria-label": label,
|
|
@@ -224,71 +195,243 @@ function RadioGroupRoot({ label, invalid, variant = "list", className, routeKey,
|
|
|
224
195
|
"data-invalid": invalid ? "" : void 0,
|
|
225
196
|
"data-variant": variant,
|
|
226
197
|
orientation: segmented ? "horizontal" : props.orientation,
|
|
227
|
-
className: segmented ?
|
|
198
|
+
className: segmented ? s2.segmented({ className: ["group/seg", className].filter(Boolean).join(" ") }) : radioGroup({ variant }).root({ className }),
|
|
228
199
|
...props
|
|
229
200
|
}
|
|
230
201
|
);
|
|
231
202
|
}
|
|
232
203
|
function RadioGroupItem({ className, children, ...props }) {
|
|
233
|
-
const item = /* @__PURE__ */
|
|
204
|
+
const item = /* @__PURE__ */ jsx4(RadioGroupPrimitive.Item, { className: s2.item({ className: children ? "mt-0.5" : className }), ...props, children: /* @__PURE__ */ jsx4(RadioGroupPrimitive.Indicator, { className: s2.dot() }) });
|
|
234
205
|
if (!children) return item;
|
|
235
|
-
return /* @__PURE__ */
|
|
206
|
+
return /* @__PURE__ */ jsxs4("label", { className: s2.label({ className }), children: [
|
|
236
207
|
item,
|
|
237
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ jsx4("span", { className: "min-w-0", children })
|
|
238
209
|
] });
|
|
239
210
|
}
|
|
240
211
|
function RadioGroupCard({ className, children, ...props }) {
|
|
241
|
-
return /* @__PURE__ */
|
|
212
|
+
return /* @__PURE__ */ jsxs4(RadioGroupPrimitive.Item, { className: s2.card({ className }), ...props, children: [
|
|
242
213
|
children,
|
|
243
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ jsx4("span", { "aria-hidden": true, className: s2.cardCheck(), children: /* @__PURE__ */ jsx4(RadioGroupPrimitive.Indicator, { forceMount: true, className: "inline-flex data-[state=unchecked]:hidden", children: /* @__PURE__ */ jsx4(CheckGlyph, { className: "h-3 w-3" }) }) })
|
|
244
215
|
] });
|
|
245
216
|
}
|
|
246
217
|
function RadioGroupButton({ className, children, hint, ...props }) {
|
|
247
|
-
return /* @__PURE__ */
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
hint ? /* @__PURE__ */
|
|
218
|
+
return /* @__PURE__ */ jsxs4(RadioGroupPrimitive.Item, { className: s2.button({ className: ["group", className].filter(Boolean).join(" ") }), ...props, children: [
|
|
219
|
+
/* @__PURE__ */ jsx4("span", { children }),
|
|
220
|
+
hint ? /* @__PURE__ */ jsx4("span", { className: s2.buttonHint(), children: hint }) : null
|
|
250
221
|
] });
|
|
251
222
|
}
|
|
252
223
|
function RadioGroupSegment({ className, ...props }) {
|
|
253
|
-
return /* @__PURE__ */
|
|
224
|
+
return /* @__PURE__ */ jsx4(RadioGroupPrimitive.Item, { className: s2.segment({ className }), ...props });
|
|
254
225
|
}
|
|
255
226
|
var RadioGroup = { Root: RadioGroupRoot, Item: RadioGroupItem, Card: RadioGroupCard, Button: RadioGroupButton, Segment: RadioGroupSegment };
|
|
256
227
|
|
|
228
|
+
// src/switch/switch.tsx
|
|
229
|
+
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
230
|
+
import { tv as tv4 } from "tailwind-variants";
|
|
231
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
232
|
+
var switchVariants = tv4({
|
|
233
|
+
slots: {
|
|
234
|
+
root: "peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-fg-muted transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-surface-0 disabled:cursor-not-allowed disabled:opacity-40 data-[state=checked]:bg-accent aria-invalid:border-danger",
|
|
235
|
+
thumb: "pointer-events-none block rounded-full bg-fg-on-media shadow-sm transition-transform data-[state=unchecked]:translate-x-0.5 motion-reduce:transition-none"
|
|
236
|
+
},
|
|
237
|
+
variants: {
|
|
238
|
+
size: {
|
|
239
|
+
sm: { root: "h-5 w-9", thumb: "h-4 w-4 data-[state=checked]:translate-x-[1.125rem]" },
|
|
240
|
+
md: { root: "h-6 w-11", thumb: "h-5 w-5 data-[state=checked]:translate-x-[1.375rem]" }
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
defaultVariants: { size: "md" }
|
|
244
|
+
});
|
|
245
|
+
function Switch({ label, size, invalid, className, ...props }) {
|
|
246
|
+
const s3 = switchVariants({ size });
|
|
247
|
+
return /* @__PURE__ */ jsx5(
|
|
248
|
+
SwitchPrimitive.Root,
|
|
249
|
+
{
|
|
250
|
+
"aria-label": label,
|
|
251
|
+
"aria-invalid": invalid || void 0,
|
|
252
|
+
"data-invalid": invalid ? "" : void 0,
|
|
253
|
+
className: s3.root({ className }),
|
|
254
|
+
...props,
|
|
255
|
+
children: /* @__PURE__ */ jsx5(SwitchPrimitive.Thumb, { className: s3.thumb() })
|
|
256
|
+
}
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// src/account-settings/language-picker.tsx
|
|
261
|
+
import * as React2 from "react";
|
|
262
|
+
|
|
263
|
+
// src/account-settings/group-head.tsx
|
|
264
|
+
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
265
|
+
function GroupHead({ id, label, description }) {
|
|
266
|
+
return /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-0.5", children: [
|
|
267
|
+
/* @__PURE__ */ jsx6("span", { id, className: "text-sm font-medium text-fg", children: label }),
|
|
268
|
+
description ? /* @__PURE__ */ jsx6("span", { className: "text-sm text-fg-secondary", children: description }) : null
|
|
269
|
+
] });
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// src/account-settings/language-picker.tsx
|
|
273
|
+
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
274
|
+
function LanguagePicker({ label, showLabel = true, description, languages, className, ...props }) {
|
|
275
|
+
const id = React2.useId();
|
|
276
|
+
return /* @__PURE__ */ jsxs6("div", { className: ["flex flex-col gap-2", className].filter(Boolean).join(" "), children: [
|
|
277
|
+
showLabel ? /* @__PURE__ */ jsx7(GroupHead, { id: `${id}-label`, label, description }) : null,
|
|
278
|
+
/* @__PURE__ */ jsx7(RadioGroup.Root, { variant: "segmented", "aria-label": showLabel ? void 0 : String(label), "aria-labelledby": showLabel ? `${id}-label` : void 0, ...props, children: languages.map((language) => /* @__PURE__ */ jsx7(RadioGroup.Segment, { value: language.code, lang: language.code, children: language.name }, language.code)) })
|
|
279
|
+
] });
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// src/account-settings/appearance-settings.tsx
|
|
283
|
+
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
284
|
+
var appearanceLabels = {
|
|
285
|
+
theme: "Theme",
|
|
286
|
+
themeHint: "The look of the workspace. System follows your device.",
|
|
287
|
+
accent: "Accent colour",
|
|
288
|
+
accentHint: "The colour of buttons and highlights.",
|
|
289
|
+
density: "Density",
|
|
290
|
+
densityHint: "How much fits on a screen.",
|
|
291
|
+
language: "Language",
|
|
292
|
+
languageHint: "The whole interface.",
|
|
293
|
+
sound: "Sound",
|
|
294
|
+
soundHint: "Small sounds when something is done. Off unless you turn it on, and never with reduced motion."
|
|
295
|
+
};
|
|
296
|
+
function Miniature({ preview }) {
|
|
297
|
+
return /* @__PURE__ */ jsxs7(
|
|
298
|
+
"span",
|
|
299
|
+
{
|
|
300
|
+
"aria-hidden": true,
|
|
301
|
+
className: "flex h-16 w-full overflow-hidden rounded-md border border-border-default",
|
|
302
|
+
style: { background: preview.surface0 },
|
|
303
|
+
children: [
|
|
304
|
+
/* @__PURE__ */ jsxs7("span", { className: "m-1.5 flex w-1/3 flex-col gap-1 rounded-sm p-1", style: { background: preview.surface1 }, children: [
|
|
305
|
+
/* @__PURE__ */ jsx8("span", { className: "h-1 w-3/4 rounded-full", style: { background: preview.text } }),
|
|
306
|
+
/* @__PURE__ */ jsx8("span", { className: "h-1 w-1/2 rounded-full", style: { background: preview.muted } })
|
|
307
|
+
] }),
|
|
308
|
+
/* @__PURE__ */ jsxs7("span", { className: "my-1.5 mr-1.5 flex flex-1 flex-col gap-1 rounded-sm p-1.5", style: { background: preview.surface2 }, children: [
|
|
309
|
+
/* @__PURE__ */ jsx8("span", { className: "h-1.5 w-2/3 rounded-full", style: { background: preview.text } }),
|
|
310
|
+
/* @__PURE__ */ jsx8("span", { className: "h-1 w-full rounded-full", style: { background: preview.muted } }),
|
|
311
|
+
/* @__PURE__ */ jsx8("span", { className: "h-1 w-5/6 rounded-full", style: { background: preview.muted } }),
|
|
312
|
+
/* @__PURE__ */ jsx8("span", { className: "mt-auto h-2 w-1/3 rounded-sm bg-accent" })
|
|
313
|
+
] })
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
function AppearanceSettings({
|
|
319
|
+
themes,
|
|
320
|
+
theme,
|
|
321
|
+
onThemeChange,
|
|
322
|
+
accents,
|
|
323
|
+
accent,
|
|
324
|
+
onAccentChange,
|
|
325
|
+
densities,
|
|
326
|
+
density,
|
|
327
|
+
onDensityChange,
|
|
328
|
+
languages,
|
|
329
|
+
language,
|
|
330
|
+
onLanguageChange,
|
|
331
|
+
sound,
|
|
332
|
+
onSoundChange,
|
|
333
|
+
labels: given,
|
|
334
|
+
className
|
|
335
|
+
}) {
|
|
336
|
+
const labels = { ...appearanceLabels, ...given };
|
|
337
|
+
const id = React3.useId();
|
|
338
|
+
return /* @__PURE__ */ jsxs7("div", { className, children: [
|
|
339
|
+
/* @__PURE__ */ jsx8(SettingsRow, { label: labels.theme, description: labels.themeHint, children: /* @__PURE__ */ jsx8(RadioGroup.Root, { variant: "cards", label: labels.theme, value: theme, onValueChange: onThemeChange, className: "grid w-full grid-cols-2 gap-3 sm:grid-cols-3", children: themes.map((option) => /* @__PURE__ */ jsxs7(RadioGroup.Card, { value: option.id, "aria-describedby": option.description ? `${id}-${option.id}` : void 0, children: [
|
|
340
|
+
option.preview ? /* @__PURE__ */ jsx8(Miniature, { preview: option.preview }) : option.halves ? /* @__PURE__ */ jsxs7("span", { "aria-hidden": true, className: "grid h-16 w-full grid-cols-2 overflow-hidden rounded-md border border-border-default", children: [
|
|
341
|
+
/* @__PURE__ */ jsx8(Miniature, { preview: option.halves[0] }),
|
|
342
|
+
/* @__PURE__ */ jsx8(Miniature, { preview: option.halves[1] })
|
|
343
|
+
] }) : null,
|
|
344
|
+
/* @__PURE__ */ jsx8("span", { className: "font-semibold text-fg", children: option.label }),
|
|
345
|
+
option.description ? /* @__PURE__ */ jsx8("span", { id: `${id}-${option.id}`, className: "text-xs font-normal text-fg-secondary", children: option.description }) : null
|
|
346
|
+
] }, option.id)) }) }),
|
|
347
|
+
accents && accents.length > 0 && onAccentChange ? /* @__PURE__ */ jsx8(SettingsRow, { label: labels.accent, description: labels.accentHint, htmlFor: `${id}-accent`, children: /* @__PURE__ */ jsxs7("span", { className: "flex items-center gap-2", children: [
|
|
348
|
+
/* @__PURE__ */ jsx8("span", { "aria-hidden": true, className: "h-4 w-4 rounded-full border border-border-default", style: { background: accents.find((a) => a.id === accent)?.color ?? accents[0]?.color } }),
|
|
349
|
+
/* @__PURE__ */ jsx8(Field.Root, { children: /* @__PURE__ */ jsx8(
|
|
350
|
+
"select",
|
|
351
|
+
{
|
|
352
|
+
id: `${id}-accent`,
|
|
353
|
+
value: accent ?? accents[0]?.id,
|
|
354
|
+
onChange: (event) => onAccentChange(event.target.value),
|
|
355
|
+
className: "h-10 rounded-lg border border-border-control bg-surface-2 px-3 text-sm text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
|
|
356
|
+
children: accents.map((option) => /* @__PURE__ */ jsx8("option", { value: option.id, children: option.label }, option.id))
|
|
357
|
+
}
|
|
358
|
+
) })
|
|
359
|
+
] }) }) : null,
|
|
360
|
+
densities && densities.length > 0 && onDensityChange ? /* @__PURE__ */ jsx8(SettingsRow, { label: labels.density, description: labels.densityHint, children: /* @__PURE__ */ jsx8(RadioGroup.Root, { variant: "segmented", label: labels.density, value: density, onValueChange: onDensityChange, children: densities.map((option) => /* @__PURE__ */ jsx8(RadioGroup.Segment, { value: option.value, children: option.label }, option.value)) }) }) : null,
|
|
361
|
+
languages && languages.length > 0 && onLanguageChange ? /* @__PURE__ */ jsx8(SettingsRow, { label: labels.language, description: labels.languageHint, children: /* @__PURE__ */ jsx8(LanguagePicker, { label: labels.language, showLabel: false, languages, value: language ?? "", onValueChange: onLanguageChange }) }) : null,
|
|
362
|
+
onSoundChange ? /* @__PURE__ */ jsx8(SettingsRow, { label: labels.sound, description: labels.soundHint, children: /* @__PURE__ */ jsx8(Switch, { label: labels.sound, checked: Boolean(sound), onCheckedChange: onSoundChange }) }) : null
|
|
363
|
+
] });
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// src/account-settings/avatar-picker.tsx
|
|
367
|
+
import { RadioGroup as RadioGroupPrimitive2 } from "radix-ui";
|
|
368
|
+
import * as React4 from "react";
|
|
369
|
+
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
370
|
+
var pictureOf = (option) => option.src ?? (option.defaultAvatar ? defaultAvatarUrl(option.defaultAvatar, { size: 256 }) : void 0);
|
|
371
|
+
function AvatarPicker({ label, showLabel, description, dense, options, upload, className, ...props }) {
|
|
372
|
+
const id = React4.useId();
|
|
373
|
+
const group = /* @__PURE__ */ jsxs8(RadioGroupPrimitive2.Root, { "aria-label": label, "aria-labelledby": showLabel ? id : void 0, className: cn(dense ? "flex flex-wrap gap-2.5" : "grid grid-cols-[repeat(auto-fill,minmax(4.25rem,1fr))] gap-3", !showLabel && className), ...props, children: [
|
|
374
|
+
options.map((option) => /* @__PURE__ */ jsxs8(
|
|
375
|
+
RadioGroupPrimitive2.Item,
|
|
376
|
+
{
|
|
377
|
+
value: option.id,
|
|
378
|
+
"aria-label": option.label,
|
|
379
|
+
className: cn(
|
|
380
|
+
"group/avatar relative shrink-0 rounded-full",
|
|
381
|
+
dense ? "h-12 w-12" : "aspect-square w-full",
|
|
382
|
+
" outline-none transition-shadow duration-200 motion-reduce:transition-none",
|
|
383
|
+
"ring-1 ring-border-default hover:ring-border-strong focus-visible:focus-ring data-[state=checked]:ring-2 data-[state=checked]:ring-accent"
|
|
384
|
+
),
|
|
385
|
+
children: [
|
|
386
|
+
/* @__PURE__ */ jsx9("img", { src: pictureOf(option), alt: "", draggable: false, className: "h-full w-full rounded-full bg-surface-3 object-cover" }),
|
|
387
|
+
/* @__PURE__ */ jsx9(
|
|
388
|
+
"span",
|
|
389
|
+
{
|
|
390
|
+
"aria-hidden": true,
|
|
391
|
+
className: "absolute -bottom-0.5 -right-0.5 hidden h-5 w-5 items-center justify-center rounded-full border-2 border-surface-1 bg-accent text-on-accent group-data-[state=checked]/avatar:inline-flex",
|
|
392
|
+
children: /* @__PURE__ */ jsx9(CheckGlyph, { className: "h-3 w-3" })
|
|
393
|
+
}
|
|
394
|
+
)
|
|
395
|
+
]
|
|
396
|
+
},
|
|
397
|
+
option.id
|
|
398
|
+
)),
|
|
399
|
+
upload ? /* @__PURE__ */ jsx9("div", { className: "flex aspect-square w-full items-center justify-center", children: upload }) : null
|
|
400
|
+
] });
|
|
401
|
+
if (!showLabel) return group;
|
|
402
|
+
return /* @__PURE__ */ jsxs8("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
403
|
+
/* @__PURE__ */ jsx9(GroupHead, { id, label, description }),
|
|
404
|
+
group
|
|
405
|
+
] });
|
|
406
|
+
}
|
|
407
|
+
|
|
257
408
|
// src/account-settings/choice-cards.tsx
|
|
258
|
-
import
|
|
409
|
+
import * as React5 from "react";
|
|
410
|
+
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
259
411
|
function ChoiceCards({ label, showLabel, description, options, className, ...props }) {
|
|
260
|
-
const base =
|
|
261
|
-
const group = /* @__PURE__ */
|
|
412
|
+
const base = React5.useId();
|
|
413
|
+
const group = /* @__PURE__ */ jsx10(RadioGroup.Root, { variant: "cards", label, "aria-labelledby": showLabel ? `${base}-label` : void 0, className: ["grid grid-cols-1 gap-3 sm:grid-cols-2", !showLabel && className].filter(Boolean).join(" "), ...props, children: options.map((option) => {
|
|
262
414
|
const describedBy = option.description ? `${base}-${option.id}` : void 0;
|
|
263
|
-
return /* @__PURE__ */
|
|
264
|
-
/* @__PURE__ */
|
|
415
|
+
return /* @__PURE__ */ jsxs9(RadioGroup.Card, { value: option.id, disabled: option.disabled, "aria-describedby": describedBy, children: [
|
|
416
|
+
/* @__PURE__ */ jsxs9("span", { className: "flex items-center gap-2.5 font-semibold text-fg [&>svg]:h-5 [&>svg]:w-5 [&>svg]:text-accent", children: [
|
|
265
417
|
option.icon,
|
|
266
418
|
option.title
|
|
267
419
|
] }),
|
|
268
|
-
option.description ? /* @__PURE__ */
|
|
420
|
+
option.description ? /* @__PURE__ */ jsx10("span", { id: describedBy, className: "text-sm font-normal text-fg-secondary", children: option.description }) : null
|
|
269
421
|
] }, option.id);
|
|
270
422
|
}) });
|
|
271
423
|
if (!showLabel) return group;
|
|
272
|
-
return /* @__PURE__ */
|
|
273
|
-
/* @__PURE__ */
|
|
424
|
+
return /* @__PURE__ */ jsxs9("div", { className: ["flex flex-col gap-3", className].filter(Boolean).join(" "), children: [
|
|
425
|
+
/* @__PURE__ */ jsx10(GroupHead, { id: `${base}-label`, label, description }),
|
|
274
426
|
group
|
|
275
427
|
] });
|
|
276
428
|
}
|
|
277
|
-
|
|
278
|
-
// src/account-settings/language-picker.tsx
|
|
279
|
-
import * as React4 from "react";
|
|
280
|
-
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
281
|
-
function LanguagePicker({ label, showLabel = true, description, languages, className, ...props }) {
|
|
282
|
-
const id = React4.useId();
|
|
283
|
-
return /* @__PURE__ */ jsxs7("div", { className: ["flex flex-col gap-2", className].filter(Boolean).join(" "), children: [
|
|
284
|
-
showLabel ? /* @__PURE__ */ jsx7(GroupHead, { id: `${id}-label`, label, description }) : null,
|
|
285
|
-
/* @__PURE__ */ jsx7(RadioGroup.Root, { variant: "segmented", "aria-label": showLabel ? void 0 : String(label), "aria-labelledby": showLabel ? `${id}-label` : void 0, ...props, children: languages.map((language) => /* @__PURE__ */ jsx7(RadioGroup.Segment, { value: language.code, lang: language.code, children: language.name }, language.code)) })
|
|
286
|
-
] });
|
|
287
|
-
}
|
|
288
429
|
export {
|
|
289
430
|
AccountProfileCard,
|
|
431
|
+
AppearanceSettings,
|
|
290
432
|
AvatarPicker,
|
|
291
433
|
ChoiceCards,
|
|
292
|
-
LanguagePicker
|
|
434
|
+
LanguagePicker,
|
|
435
|
+
appearanceLabels
|
|
293
436
|
};
|
|
294
437
|
//# sourceMappingURL=account-settings.js.map
|