@krizaka/ui 3.62.0 → 3.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -16
- package/dist/account-menu.d.ts +1 -1
- package/dist/account-menu.js +1 -1
- package/dist/account-settings.d.ts +1 -1
- package/dist/account-settings.js +2 -2
- package/dist/achievement.d.ts +2 -2
- package/dist/achievement.js +1 -1
- package/dist/achievement.js.map +1 -1
- package/dist/action-bar.js +4 -4
- package/dist/activity-feed.d.ts +1 -1
- package/dist/activity-feed.js.map +1 -1
- package/dist/analysis-report.d.ts +274 -0
- package/dist/analysis-report.js +207 -0
- package/dist/analysis-report.js.map +1 -0
- package/dist/app-shell.js.map +1 -1
- package/dist/argument-card.d.ts +1 -1
- package/dist/argument-card.js +5 -5
- package/dist/auth-layout.d.ts +1 -1
- package/dist/auth-layout.js.map +1 -1
- package/dist/avatar/defaults.d.ts +2 -1
- package/dist/avatar/defaults.js.map +1 -1
- package/dist/{avatar-iajODANU.d.ts → avatar-BL2iG_Js.d.ts} +2 -1
- package/dist/avatar.d.ts +3 -2
- package/dist/avatar.js.map +1 -1
- package/dist/badge.js +4 -34
- package/dist/badge.js.map +1 -1
- package/dist/bird-plate.d.ts +1 -1
- package/dist/bird-plate.js +1 -1
- package/dist/blocks.css +99 -8
- package/dist/button.js +1 -1
- package/dist/captcha.js +1 -1
- package/dist/chat.js +1 -1
- package/dist/choice-grid.d.ts +1 -1
- package/dist/choice-grid.js +1 -1
- package/dist/choice-grid.js.map +1 -1
- package/dist/chunk-5PFCELGW.js +41 -0
- package/dist/chunk-5PFCELGW.js.map +1 -0
- package/dist/chunk-5RWHDX5J.js +37 -0
- package/dist/chunk-5RWHDX5J.js.map +1 -0
- package/dist/{chunk-KB7OLYIJ.js → chunk-7AZ23BUX.js} +1 -1
- package/dist/chunk-7AZ23BUX.js.map +1 -0
- package/dist/{chunk-4E5IUZHR.js → chunk-B2HS5EAH.js} +1 -1
- package/dist/chunk-B2HS5EAH.js.map +1 -0
- package/dist/{chunk-5LANVCK7.js → chunk-BG5APGX6.js} +2 -2
- package/dist/{chunk-WOZP3JLW.js → chunk-DJ5ZPPWL.js} +1 -1
- package/dist/chunk-DJ5ZPPWL.js.map +1 -0
- package/dist/{chunk-MHUUNC5W.js → chunk-DRTIE44Z.js} +1 -1
- package/dist/chunk-DRTIE44Z.js.map +1 -0
- package/dist/{chunk-UV4HBVH7.js → chunk-EB45EVPJ.js} +2 -2
- package/dist/{chunk-SJS6RJIT.js.map → chunk-EB45EVPJ.js.map} +1 -1
- package/dist/{chunk-555LWYIN.js → chunk-EHTXLZSM.js} +1 -1
- package/dist/{chunk-555LWYIN.js.map → chunk-EHTXLZSM.js.map} +1 -1
- package/dist/{chunk-6EAHUURY.js → chunk-GHAN7OOE.js} +2 -2
- package/dist/chunk-JT7ZKZT5.js +1 -0
- package/dist/chunk-JT7ZKZT5.js.map +1 -0
- package/dist/{chunk-3DHNN5V7.js → chunk-M3GEYLMR.js} +2 -2
- package/dist/{chunk-3DHNN5V7.js.map → chunk-M3GEYLMR.js.map} +1 -1
- package/dist/{chunk-7J2L4HOD.js → chunk-MTVX4RRF.js} +2 -2
- package/dist/{chunk-7J2L4HOD.js.map → chunk-MTVX4RRF.js.map} +1 -1
- package/dist/{chunk-YKEIOYJ5.js → chunk-NPMGYLJV.js} +1 -1
- package/dist/chunk-NPMGYLJV.js.map +1 -0
- package/dist/{chunk-3RVFD3UX.js → chunk-PW2FVPTV.js} +1 -1
- package/dist/chunk-PW2FVPTV.js.map +1 -0
- package/dist/{chunk-HEKDKM5Y.js → chunk-QVHSV6RA.js} +1 -1
- package/dist/{chunk-MIMOTE4W.js → chunk-RCHKIOVV.js} +1 -1
- package/dist/chunk-RCHKIOVV.js.map +1 -0
- package/dist/{chunk-7JG3VR4C.js → chunk-RCKXJEDQ.js} +5 -5
- package/dist/{chunk-XVFQZ3ZG.js → chunk-TPITVAUW.js} +1 -1
- package/dist/{chunk-XVFQZ3ZG.js.map → chunk-TPITVAUW.js.map} +1 -1
- package/dist/chunk-U4XTZMB7.js +103 -0
- package/dist/chunk-U4XTZMB7.js.map +1 -0
- package/dist/{chunk-SJS6RJIT.js → chunk-V7W4RLRW.js} +2 -2
- package/dist/{chunk-UV4HBVH7.js.map → chunk-V7W4RLRW.js.map} +1 -1
- package/dist/{chunk-RBETQO2P.js → chunk-Y5YBTHVD.js} +9 -15
- package/dist/chunk-Y5YBTHVD.js.map +1 -0
- package/dist/command.js +2 -2
- package/dist/confirm-button.js +1 -1
- package/dist/continue-prompt.js +2 -2
- package/dist/continue-prompt.js.map +1 -1
- package/dist/cover-hero.js +1 -1
- package/dist/dashboard-layout.js.map +1 -1
- package/dist/data-table.js +2 -2
- package/dist/detail-layout.js.map +1 -1
- package/dist/dialog.js +2 -2
- package/dist/elephant.js.map +1 -1
- package/dist/embed-facade.d.ts +37 -0
- package/dist/embed-facade.js +96 -0
- package/dist/embed-facade.js.map +1 -0
- package/dist/engine-flow.d.ts +4 -4
- package/dist/engine-flow.js.map +1 -1
- package/dist/environment-notice.d.ts +110 -0
- package/dist/environment-notice.js +47 -0
- package/dist/environment-notice.js.map +1 -0
- package/dist/file-upload.d.ts +2 -2
- package/dist/flock.js +1 -1
- package/dist/force-update-screen.js +1 -1
- package/dist/genui.js +2 -2
- package/dist/{geometry-DZ4Q3hDQ.d.ts → geometry-DDlFDtiQ.d.ts} +3 -4
- package/dist/{geometry-DncHaYP8.d.ts → geometry-DuUQyHZ1.d.ts} +3 -4
- package/dist/goal-gauge.d.ts +1 -1
- package/dist/goal-gauge.js +1 -1
- package/dist/goal-gauge.js.map +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +1 -1
- package/dist/kind-config-editor.js +1 -1
- package/dist/landing-page.d.ts +1 -1
- package/dist/landing-page.js.map +1 -1
- package/dist/language-switch.d.ts +9 -9
- package/dist/link-card.js +2 -2
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js.map +1 -1
- package/dist/maintenance-screen.js +1 -1
- package/dist/map.js +6 -0
- package/dist/map.js.map +1 -1
- package/dist/margin-layout.d.ts +71 -0
- package/dist/margin-layout.js +29 -0
- package/dist/margin-layout.js.map +1 -0
- package/dist/mascot-quote.d.ts +1 -1
- package/dist/mascot-quote.js +1 -1
- package/dist/mascot-state.js +1 -1
- package/dist/mascots.d.ts +2 -2
- package/dist/mascots.js +1 -1
- package/dist/match-dialog.js +2 -2
- package/dist/media-grid.d.ts +1 -0
- package/dist/media-grid.js +2 -2
- package/dist/meter.js +2 -1
- package/dist/native/map.js +6 -0
- package/dist/native/map.js.map +1 -1
- package/dist/native.d.ts +125 -10
- package/dist/native.js +1690 -1517
- package/dist/native.js.map +1 -1
- package/dist/nav-bar.d.ts +1 -1
- package/dist/nav-bar.js +3 -3
- package/dist/page-DPHDmDAQ.d.ts +131 -0
- package/dist/page-hero.js +4 -4
- package/dist/page.d.ts +7 -125
- package/dist/page.js +13 -1
- package/dist/page.js.map +1 -1
- package/dist/product-page.d.ts +1 -1
- package/dist/product-page.js.map +1 -1
- package/dist/profile-card.d.ts +1 -1
- package/dist/profile-card.js +1 -1
- package/dist/profile-card.js.map +1 -1
- package/dist/promise-card.js +1 -1
- package/dist/quota-meter.js +2 -1
- package/dist/quota-meter.js.map +1 -1
- package/dist/rail-nav.d.ts +4 -0
- package/dist/retro-tv.d.ts +6 -3
- package/dist/retro-tv.js +6 -5
- package/dist/retro-tv.js.map +1 -1
- package/dist/reviews.d.ts +49 -0
- package/dist/reviews.js +66 -0
- package/dist/reviews.js.map +1 -0
- package/dist/scroll-stage.d.ts +1 -1
- package/dist/scroll-stage.js +1 -1
- package/dist/scroll-stage.js.map +1 -1
- package/dist/separator.d.ts +26 -3
- package/dist/separator.js +19 -1
- package/dist/separator.js.map +1 -1
- package/dist/service-card.d.ts +56 -63
- package/dist/service-card.js +49 -10
- package/dist/service-card.js.map +1 -1
- package/dist/settings-layout.js +1 -1
- package/dist/site-cahier.d.ts +10 -2
- package/dist/site-cahier.js +9 -15
- package/dist/site-cahier.js.map +1 -1
- package/dist/site-footer.d.ts +1 -1
- package/dist/site-footer.js +2 -2
- package/dist/{sites-BKz1beUK.d.ts → sites-CEnywB89.d.ts} +10 -2
- package/dist/sites.d.ts +13 -5
- package/dist/sites.js +7 -13
- package/dist/sites.js.map +1 -1
- package/dist/specimen-tag.d.ts +15 -3
- package/dist/specimen-tag.js +4 -27
- package/dist/specimen-tag.js.map +1 -1
- package/dist/stage-banner.d.ts +1 -1
- package/dist/stage-banner.js +1 -1
- package/dist/stage-banner.js.map +1 -1
- package/dist/stat.d.ts +87 -5
- package/dist/stat.js +9 -53
- package/dist/stat.js.map +1 -1
- package/dist/status-page.d.ts +1 -1
- package/dist/status-page.js.map +1 -1
- package/dist/sticky-action.d.ts +7 -2
- package/dist/sticky-action.js +24 -3
- package/dist/sticky-action.js.map +1 -1
- package/dist/theme.js +1 -1
- package/dist/update-prompt.js +1 -1
- package/dist/usage.d.ts +229 -0
- package/dist/usage.js +189 -0
- package/dist/usage.js.map +1 -0
- package/dist/versus-card.js +1 -1
- package/dist/vertical-video.js +2 -2
- package/dist/wall.d.ts +24 -12
- package/dist/wall.js +106 -43
- package/dist/wall.js.map +1 -1
- package/package.json +108 -17
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +1 -1
- package/registry/achievement.json +8 -8
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +8 -8
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/analysis-report.json +445 -0
- package/registry/anatomy-plate.json +1 -1
- package/registry/app-header.json +3 -3
- package/registry/app-shell.json +10 -10
- package/registry/argument-card.json +3 -3
- package/registry/audio-player.json +6 -6
- package/registry/auth-layout.json +9 -9
- package/registry/avatar.json +8 -8
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +1 -1
- package/registry/button.json +2 -2
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +6 -6
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +1 -1
- package/registry/changelog-page.json +1 -1
- package/registry/chapter.json +1 -1
- package/registry/chat.json +3 -3
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip-row.json +1 -1
- package/registry/chip.json +1 -1
- package/registry/choice-grid.json +6 -6
- 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 +2 -2
- 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 +2 -2
- package/registry/data-table.json +1 -1
- package/registry/date-picker.json +2 -2
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +1 -1
- package/registry/detail-layout.json +6 -6
- package/registry/dialog.json +1 -1
- package/registry/docs-article-page.json +1 -1
- package/registry/docs-hub-page.json +3 -3
- 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 +1 -1
- package/registry/drop-overlay.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/elephant.json +7 -7
- package/registry/embed-facade.json +243 -0
- package/registry/empty-state.json +2 -2
- package/registry/engine-flow.json +6 -6
- package/registry/environment-notice.json +270 -0
- package/registry/error-page.json +1 -1
- package/registry/examples/achievement/arcade.js +1 -1
- package/registry/examples/achievement/arcade.tsx +1 -1
- package/registry/examples/activity-feed/job-activity.tsx +1 -1
- package/registry/examples/analysis-report/document-validation.js +47 -0
- package/registry/examples/analysis-report/document-validation.tsx +29 -0
- package/registry/examples/analysis-report/native/document-validation.dark.png +0 -0
- package/registry/examples/analysis-report/native/document-validation.js +48 -0
- package/registry/examples/analysis-report/native/document-validation.light.png +0 -0
- package/registry/examples/analysis-report/native/document-validation.tsx +32 -0
- package/registry/examples/analysis-report/streaming.d.ts +4 -0
- package/registry/examples/analysis-report/streaming.js +42 -0
- package/registry/examples/analysis-report/streaming.tsx +23 -0
- package/registry/examples/app-shell/admin-console.js +1 -1
- package/registry/examples/app-shell/admin-console.tsx +2 -2
- package/registry/examples/app-shell/basic.js +1 -1
- package/registry/examples/app-shell/basic.tsx +1 -1
- package/registry/examples/app-shell/creator-studio.d.ts +4 -0
- package/registry/examples/app-shell/{orochia-studio.js → creator-studio.js} +6 -6
- package/registry/examples/app-shell/{orochia-studio.tsx → creator-studio.tsx} +4 -4
- package/registry/examples/audio-player/podcast.js +1 -1
- package/registry/examples/audio-player/podcast.tsx +1 -1
- package/registry/examples/audio-player/voice-note.js +1 -1
- package/registry/examples/audio-player/voice-note.tsx +1 -1
- package/registry/examples/auth-layout/onboarding.js +3 -3
- package/registry/examples/auth-layout/onboarding.tsx +3 -3
- package/registry/examples/auth-layout/sign-in.js +3 -3
- package/registry/examples/auth-layout/sign-in.tsx +3 -3
- package/registry/examples/avatar/default.js +1 -1
- package/registry/examples/avatar/default.tsx +1 -1
- package/registry/examples/card-grid/aligned.js +2 -2
- package/registry/examples/card-grid/aligned.tsx +2 -2
- package/registry/examples/card-grid/foundation.js +1 -2
- package/registry/examples/card-grid/foundation.tsx +1 -2
- package/registry/examples/card-grid/hover-quiet.js +1 -1
- package/registry/examples/card-grid/hover-quiet.tsx +1 -1
- package/registry/examples/card-grid/products.js +1 -1
- package/registry/examples/card-grid/products.tsx +1 -1
- package/registry/examples/choice-grid/line-up.js +1 -1
- package/registry/examples/choice-grid/line-up.tsx +1 -1
- package/registry/examples/detail-layout/checkout.js +1 -1
- package/registry/examples/detail-layout/checkout.tsx +2 -2
- package/registry/examples/detail-layout/video.js +1 -1
- package/registry/examples/detail-layout/video.tsx +2 -2
- package/registry/examples/docs-hub-page/krizaka.js +1 -1
- package/registry/examples/docs-hub-page/krizaka.tsx +1 -1
- package/registry/examples/embed-facade/tiktok.d.ts +4 -0
- package/registry/examples/embed-facade/tiktok.js +20 -0
- package/registry/examples/embed-facade/tiktok.tsx +16 -0
- package/registry/examples/embed-facade/youtube.d.ts +4 -0
- package/registry/examples/embed-facade/youtube.js +22 -0
- package/registry/examples/embed-facade/youtube.tsx +20 -0
- package/registry/examples/empty-state/library.js +1 -1
- package/registry/examples/empty-state/library.tsx +1 -1
- package/registry/examples/engine-flow/calm.js +1 -1
- package/registry/examples/engine-flow/calm.tsx +1 -1
- package/registry/examples/engine-flow/compact.js +4 -4
- package/registry/examples/engine-flow/compact.tsx +4 -4
- package/registry/examples/engine-flow/radial.js +2 -6
- package/registry/examples/engine-flow/radial.tsx +1 -5
- package/registry/examples/environment-notice/development.d.ts +4 -0
- package/registry/examples/environment-notice/development.js +15 -0
- package/registry/examples/environment-notice/development.tsx +13 -0
- package/registry/examples/environment-notice/native/development.d.ts +4 -0
- package/registry/examples/environment-notice/native/development.dark.png +0 -0
- package/registry/examples/environment-notice/native/development.js +21 -0
- package/registry/examples/environment-notice/native/development.light.png +0 -0
- package/registry/examples/environment-notice/native/development.tsx +17 -0
- package/registry/examples/environment-notice/staging.d.ts +4 -0
- package/registry/examples/environment-notice/staging.js +11 -0
- package/registry/examples/environment-notice/staging.tsx +6 -0
- package/registry/examples/force-update-screen/default.js +1 -1
- package/registry/examples/force-update-screen/default.tsx +1 -1
- package/registry/examples/force-update-screen/native/default.dark.png +0 -0
- package/registry/examples/force-update-screen/native/default.js +1 -1
- package/registry/examples/force-update-screen/native/default.light.png +0 -0
- package/registry/examples/force-update-screen/native/default.tsx +1 -1
- package/registry/examples/form/native/sign-up.js +2 -2
- package/registry/examples/form/native/sign-up.tsx +2 -2
- package/registry/examples/form/sign-up.js +1 -1
- package/registry/examples/form/sign-up.tsx +3 -3
- package/registry/examples/goal-gauge/arcade.js +1 -1
- package/registry/examples/goal-gauge/arcade.tsx +1 -1
- package/registry/examples/image-cropper/avatar.js +1 -1
- package/registry/examples/image-cropper/avatar.tsx +1 -1
- package/registry/examples/image-cropper/banner.js +1 -1
- package/registry/examples/image-cropper/banner.tsx +1 -1
- package/registry/examples/image-cropper/vertical-video.js +1 -2
- package/registry/examples/image-cropper/vertical-video.tsx +1 -3
- package/registry/examples/iso/creator-hero.d.ts +4 -0
- package/registry/examples/iso/{orochia-hero.js → creator-hero.js} +3 -3
- package/registry/examples/iso/{orochia-hero.tsx → creator-hero.tsx} +1 -1
- package/registry/examples/landing-page/krizaka.js +2 -2
- package/registry/examples/landing-page/krizaka.tsx +2 -2
- package/registry/examples/link-card/docs-hub.js +1 -1
- package/registry/examples/link-card/docs-hub.tsx +1 -1
- package/registry/examples/link-card/hover-quiet.js +1 -1
- package/registry/examples/link-card/hover-quiet.tsx +1 -1
- package/registry/examples/loader/branded.js +2 -2
- package/registry/examples/loader/branded.tsx +3 -3
- package/registry/examples/loader/native/branded.dark.png +0 -0
- package/registry/examples/loader/native/branded.js +1 -1
- package/registry/examples/loader/native/branded.light.png +0 -0
- package/registry/examples/loader/native/branded.tsx +2 -2
- package/registry/examples/longform-page/story.js +3 -3
- package/registry/examples/longform-page/story.tsx +3 -3
- package/registry/examples/margin-layout/findings.d.ts +4 -0
- package/registry/examples/margin-layout/findings.js +15 -0
- package/registry/examples/margin-layout/findings.tsx +18 -0
- package/registry/examples/margin-layout/steps.d.ts +4 -0
- package/registry/examples/margin-layout/steps.js +15 -0
- package/registry/examples/margin-layout/steps.tsx +16 -0
- package/registry/examples/marketing-layout/docs-hub.js +1 -1
- package/registry/examples/marketing-layout/docs-hub.tsx +1 -1
- package/registry/examples/mascots/flock.tsx +2 -2
- package/registry/examples/nav-bar/family-admin.js +5 -5
- package/registry/examples/nav-bar/family-admin.tsx +4 -4
- package/registry/examples/nav-bar/site.js +1 -1
- package/registry/examples/nav-bar/site.tsx +1 -1
- package/registry/examples/page/kraft.d.ts +4 -0
- package/registry/examples/page/kraft.js +14 -0
- package/registry/examples/page/kraft.tsx +12 -0
- package/registry/examples/page/papers.d.ts +4 -0
- package/registry/examples/page/papers.js +14 -0
- package/registry/examples/page/papers.tsx +13 -0
- package/registry/examples/permission-prompt/native/blocked.dark.png +0 -0
- package/registry/examples/permission-prompt/native/blocked.js +1 -1
- package/registry/examples/permission-prompt/native/blocked.tsx +1 -1
- package/registry/examples/permission-prompt/native/camera.dark.png +0 -0
- package/registry/examples/permission-prompt/native/camera.js +1 -1
- package/registry/examples/permission-prompt/native/camera.light.png +0 -0
- package/registry/examples/permission-prompt/native/camera.tsx +1 -1
- package/registry/examples/profile-card/match.js +1 -1
- package/registry/examples/profile-card/match.tsx +1 -1
- package/registry/examples/promise-card/arcade.js +1 -1
- package/registry/examples/promise-card/arcade.tsx +1 -1
- package/registry/examples/pull-to-refresh/native/branded.dark.png +0 -0
- package/registry/examples/pull-to-refresh/native/branded.js +1 -1
- package/registry/examples/pull-to-refresh/native/branded.light.png +0 -0
- package/registry/examples/pull-to-refresh/native/branded.tsx +1 -1
- package/registry/examples/rail-nav/expandable.js +3 -3
- package/registry/examples/rail-nav/expandable.tsx +3 -3
- package/registry/examples/retro-tv/cabinet.js +1 -2
- package/registry/examples/retro-tv/cabinet.tsx +1 -3
- package/registry/examples/retro-tv/facade.d.ts +4 -0
- package/registry/examples/retro-tv/facade.js +12 -0
- package/registry/examples/retro-tv/facade.tsx +13 -0
- package/registry/examples/retro-tv/portable.js +1 -2
- package/registry/examples/retro-tv/portable.tsx +1 -3
- package/registry/examples/reviews/card.d.ts +4 -0
- package/registry/examples/reviews/card.js +23 -0
- package/registry/examples/reviews/card.tsx +19 -0
- package/registry/examples/reviews/summary.d.ts +4 -0
- package/registry/examples/reviews/summary.js +23 -0
- package/registry/examples/reviews/summary.tsx +17 -0
- package/registry/examples/scroll-stage/arcade.js +1 -1
- package/registry/examples/scroll-stage/arcade.tsx +1 -1
- package/registry/examples/search-field/global.js +1 -1
- package/registry/examples/search-field/global.tsx +1 -1
- package/registry/examples/separator/hand.d.ts +4 -0
- package/registry/examples/separator/hand.js +19 -0
- package/registry/examples/separator/hand.tsx +16 -0
- package/registry/examples/service-card/index-card.d.ts +4 -0
- package/registry/examples/service-card/index-card.js +15 -0
- package/registry/examples/service-card/index-card.tsx +12 -0
- package/registry/examples/service-card/index-list.d.ts +4 -0
- package/registry/examples/service-card/index-list.js +14 -0
- package/registry/examples/service-card/index-list.tsx +11 -0
- package/registry/examples/sites/french.js +1 -1
- package/registry/examples/sites/french.tsx +1 -1
- package/registry/examples/specimen-tag/facts.d.ts +4 -0
- package/registry/examples/specimen-tag/facts.js +23 -0
- package/registry/examples/specimen-tag/facts.tsx +18 -0
- package/registry/examples/specimen-tag/wire.js +2 -2
- package/registry/examples/specimen-tag/wire.tsx +2 -2
- package/registry/examples/splash-handoff/native/default.dark.png +0 -0
- package/registry/examples/splash-handoff/native/default.js +1 -1
- package/registry/examples/splash-handoff/native/default.light.png +0 -0
- package/registry/examples/splash-handoff/native/default.tsx +1 -1
- package/registry/examples/split-view/messages.tsx +1 -1
- package/registry/examples/split-view/notifications.js +1 -1
- package/registry/examples/split-view/notifications.tsx +1 -1
- package/registry/examples/stat/strip.d.ts +4 -0
- package/registry/examples/stat/strip.js +25 -0
- package/registry/examples/stat/strip.tsx +25 -0
- package/registry/examples/status-page/building.js +2 -2
- package/registry/examples/status-page/building.tsx +2 -2
- package/registry/examples/status-page/operational.js +1 -1
- package/registry/examples/status-page/operational.tsx +1 -1
- package/registry/examples/sticky-action/hide-while-visible.d.ts +4 -0
- package/registry/examples/sticky-action/hide-while-visible.js +16 -0
- package/registry/examples/sticky-action/hide-while-visible.tsx +17 -0
- package/registry/examples/tab-bar/native/main-sections.tsx +1 -1
- package/registry/examples/tree-view/docs.js +1 -1
- package/registry/examples/tree-view/docs.tsx +1 -1
- package/registry/examples/usage/credits-page.d.ts +4 -0
- package/registry/examples/usage/credits-page.js +45 -0
- package/registry/examples/usage/credits-page.tsx +40 -0
- package/registry/examples/usage/empty.d.ts +4 -0
- package/registry/examples/usage/empty.js +15 -0
- package/registry/examples/usage/empty.tsx +12 -0
- package/registry/examples/video-player/default.js +1 -2
- package/registry/examples/video-player/default.tsx +1 -3
- package/registry/examples/video-player/gated.js +2 -3
- package/registry/examples/video-player/gated.tsx +2 -4
- package/registry/examples/video-player/native/default.dark.png +0 -0
- package/registry/examples/video-player/native/default.js +3 -3
- package/registry/examples/video-player/native/default.light.png +0 -0
- package/registry/examples/video-player/native/default.tsx +3 -3
- package/registry/examples/video-player/signed-source.js +2 -3
- package/registry/examples/video-player/signed-source.tsx +2 -4
- package/registry/examples/video-player/vertical.js +1 -2
- package/registry/examples/video-player/vertical.tsx +1 -3
- package/registry/examples/video-trimmer/filmstrip.js +10 -2
- package/registry/examples/video-trimmer/filmstrip.tsx +11 -2
- package/registry/examples/video-trimmer/playhead.js +8 -1
- package/registry/examples/video-trimmer/playhead.tsx +9 -1
- package/registry/examples/wall/brick.js +1 -1
- package/registry/examples/wall/brick.tsx +1 -1
- package/registry/examples/wall/composition-fr.js +1 -1
- package/registry/examples/wall/composition-fr.tsx +1 -1
- package/registry/examples/wall/composition.js +1 -1
- package/registry/examples/wall/composition.tsx +1 -1
- package/registry/examples/wall/pinned-note.js +2 -2
- package/registry/examples/wall/pinned-note.tsx +3 -2
- package/registry/examples/wall/plaster.js +1 -1
- package/registry/examples/wall/plaster.tsx +1 -1
- package/registry/examples/wall/ridge.js +1 -1
- package/registry/examples/wall/ridge.tsx +1 -1
- package/registry/examples/wall/shop-sign.js +5 -4
- package/registry/examples/wall/shop-sign.tsx +7 -4
- package/registry/examples/wall/zellige.js +1 -1
- package/registry/examples/wall/zellige.tsx +1 -1
- package/registry/field.json +1 -1
- package/registry/file-upload.json +2 -2
- package/registry/filter-bar.json +1 -1
- package/registry/flock.json +1 -1
- package/registry/footnote.json +1 -1
- package/registry/force-update-screen.json +4 -4
- package/registry/form.json +7 -7
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +2 -2
- 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 +6 -6
- package/registry/grade-stamp.json +1 -1
- package/registry/how-it-works-page.json +1 -1
- package/registry/image-cropper.json +5 -5
- package/registry/index.json +231 -35
- package/registry/iso.json +7 -7
- package/registry/kanban.json +3 -3
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +1 -1
- package/registry/kpi-explained.json +2 -2
- package/registry/landing-page.json +6 -6
- 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 +4 -4
- package/registry/list.json +3 -3
- package/registry/loader.json +11 -11
- package/registry/longform-page.json +3 -3
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +2 -2
- package/registry/margin-layout.json +200 -0
- package/registry/markdown.json +1 -1
- package/registry/marketing-layout.json +2 -2
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +5 -5
- 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 +3 -3
- package/registry/meta-row.json +1 -1
- package/registry/meter.json +1 -1
- package/registry/nav-bar.json +9 -9
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +3 -3
- package/registry/number-ticker.json +1 -1
- package/registry/onboarding.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 +53 -11
- package/registry/pagination.json +1 -1
- package/registry/permission-prompt.json +3 -3
- 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 +6 -6
- package/registry/profile-card.json +7 -7
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +3 -3
- package/registry/pull-to-refresh.json +2 -2
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +10 -10
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +48 -32
- package/registry/reviews.json +361 -0
- package/registry/router.json +1 -1
- package/registry/scroll-stage.json +6 -6
- package/registry/search-field.json +3 -3
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +71 -6
- package/registry/service-card.json +55 -6
- package/registry/settings-layout.json +1 -1
- package/registry/showcase.json +1 -1
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +1 -1
- package/registry/site-footer.json +7 -7
- package/registry/sites.json +4 -4
- package/registry/skeleton.json +1 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot-picker.json +1 -1
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +58 -6
- package/registry/speed-lines.json +1 -1
- package/registry/spinner.json +1 -1
- package/registry/splash-handoff.json +4 -4
- package/registry/split-view.json +4 -4
- package/registry/stage-banner.json +10 -6
- package/registry/stat.json +62 -10
- package/registry/status-chip.json +1 -1
- package/registry/status-page.json +9 -9
- 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 +27 -4
- package/registry/stuck.json +1 -1
- package/registry/swipe-deck.json +1 -1
- package/registry/switch.json +1 -1
- package/registry/tab-bar.json +2 -2
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +1 -1
- 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 +1 -1
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/tree-view.json +3 -3
- package/registry/update-prompt.json +1 -1
- package/registry/upload-queue.json +1 -1
- package/registry/usage.json +542 -0
- package/registry/verified-badge.json +1 -1
- package/registry/versus-card.json +1 -1
- package/registry/vertical-video.json +4 -4
- package/registry/video-player.json +7 -7
- package/registry/video-trimmer.json +8 -8
- package/registry/virtual.json +1 -1
- package/registry/wall.json +128 -40
- package/registry/waveform.json +1 -1
- package/skills/form/SKILL.md +1 -1
- package/skills/map/SKILL.md +2 -2
- package/dist/chunk-3RVFD3UX.js.map +0 -1
- package/dist/chunk-4E5IUZHR.js.map +0 -1
- package/dist/chunk-KB7OLYIJ.js.map +0 -1
- package/dist/chunk-MHUUNC5W.js.map +0 -1
- package/dist/chunk-MIMOTE4W.js.map +0 -1
- package/dist/chunk-RBETQO2P.js.map +0 -1
- package/dist/chunk-WOZP3JLW.js.map +0 -1
- package/dist/chunk-YKEIOYJ5.js.map +0 -1
- /package/dist/{chunk-5LANVCK7.js.map → chunk-BG5APGX6.js.map} +0 -0
- /package/dist/{chunk-6EAHUURY.js.map → chunk-GHAN7OOE.js.map} +0 -0
- /package/dist/{chunk-HEKDKM5Y.js.map → chunk-QVHSV6RA.js.map} +0 -0
- /package/dist/{chunk-7JG3VR4C.js.map → chunk-RCKXJEDQ.js.map} +0 -0
- /package/registry/examples/{app-shell/orochia-studio.d.ts → analysis-report/document-validation.d.ts} +0 -0
- /package/registry/examples/{iso/orochia-hero.d.ts → analysis-report/native/document-validation.d.ts} +0 -0
package/dist/nav-bar.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as tailwind_variants from 'tailwind-variants';
|
|
|
2
2
|
import { NavigationMenu } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { LanguageSwitchProps } from './language-switch.js';
|
|
5
|
-
import { O as OrgFacts, S as SiteId, F as FamilyLabels } from './sites-
|
|
5
|
+
import { O as OrgFacts, S as SiteId, F as FamilyLabels } from './sites-CEnywB89.js';
|
|
6
6
|
|
|
7
7
|
/** The body of `GET /api/me`. `account` is the product's own shape, present only when `signedIn`. */
|
|
8
8
|
interface MeResponse<TAccount = unknown> {
|
package/dist/nav-bar.js
CHANGED
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
familyLabels,
|
|
9
9
|
siteById,
|
|
10
10
|
sitesByGroup
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Y5YBTHVD.js";
|
|
12
12
|
import {
|
|
13
13
|
useSlidingIndicator
|
|
14
14
|
} from "./chunk-4QN5YJ3D.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-B2HS5EAH.js";
|
|
16
16
|
import {
|
|
17
17
|
Button
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-V7W4RLRW.js";
|
|
19
19
|
import "./chunk-D3T54RSL.js";
|
|
20
20
|
import "./chunk-WEVYKZIF.js";
|
|
21
21
|
import {
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SectionBackdropProps } from './section-backdrop.js';
|
|
3
|
+
|
|
4
|
+
type PageSize = "narrow" | "default" | "wide" | "full";
|
|
5
|
+
/**
|
|
6
|
+
* The paper under a page or a section (Cahier, ADR-004): `ruled` (Seyès squares), `lines` (lines only), `dot-grid` (a dot
|
|
7
|
+
* every 24 px), `kraft` (brown paper with a grain: mount `PaperGrain` once), or plain.
|
|
8
|
+
*/
|
|
9
|
+
type PagePaper = "ruled" | "lines" | "dot-grid" | "kraft";
|
|
10
|
+
type PaperProps = {
|
|
11
|
+
/** The notebook's paper under the content: `ruled` (Seyès: 32 px squares, three fine lines), `lines` (lines only, a page to read), `dot-grid` (dots), `kraft` (brown, grained). */
|
|
12
|
+
paper?: PagePaper;
|
|
13
|
+
/** The red margin line on the left, where section numbers and notes hang (`§ 2`, `fig. 1`). */
|
|
14
|
+
margin?: boolean;
|
|
15
|
+
};
|
|
16
|
+
type PageProps = React.HTMLAttributes<HTMLElement> & {
|
|
17
|
+
/**
|
|
18
|
+
* The width of the content: `default` (72rem, `--kz-page-max`), `narrow` (48rem, a reading column), `wide`
|
|
19
|
+
* (88rem, documentation with a sidebar), `full` (the gutters only).
|
|
20
|
+
* @default "default"
|
|
21
|
+
*/
|
|
22
|
+
size?: PageSize;
|
|
23
|
+
/** The element: `div` (default), `main`, `header`, `footer`, `section` or `article`. */
|
|
24
|
+
as?: "div" | "main" | "header" | "footer" | "section" | "article";
|
|
25
|
+
} & PaperProps;
|
|
26
|
+
/** The page frame: centred, at most `--kz-page-max` wide, with the gutters of `--kz-page-gutter` (16 → 32 px). */
|
|
27
|
+
declare function Page({ size, as: Tag, paper, margin, className, ...props }: PageProps): React.JSX.Element;
|
|
28
|
+
type SectionHeadingProps = Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
29
|
+
/** The id of the title: the section's anchor and its accessible name. */
|
|
30
|
+
id?: string;
|
|
31
|
+
/** A short note above the title (the section's subject), in the note face, lower case — never an uppercase overline. */
|
|
32
|
+
eyebrow?: React.ReactNode;
|
|
33
|
+
/** The section's number, hung in the margin as a notebook numbers its pages (`§ 2`). */
|
|
34
|
+
number?: React.ReactNode;
|
|
35
|
+
/** The title. */
|
|
36
|
+
title: React.ReactNode;
|
|
37
|
+
/** One or two sentences under the title. */
|
|
38
|
+
lead?: React.ReactNode;
|
|
39
|
+
/** Actions on the right of the heading (a link to everything, a filter). */
|
|
40
|
+
actions?: React.ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* The level of the title.
|
|
43
|
+
* @default 2
|
|
44
|
+
*/
|
|
45
|
+
level?: 2 | 3;
|
|
46
|
+
/**
|
|
47
|
+
* `md` for a section that argues, `sm` for a section of a reading page.
|
|
48
|
+
* @default "md"
|
|
49
|
+
*/
|
|
50
|
+
size?: "sm" | "md";
|
|
51
|
+
/**
|
|
52
|
+
* `center` for a heading that stands alone above a grid.
|
|
53
|
+
* @default "start"
|
|
54
|
+
*/
|
|
55
|
+
align?: "start" | "center";
|
|
56
|
+
/** Rises into place once, as it enters the viewport (`[data-reveal]`, MotionObserver). Never on the first screen. */
|
|
57
|
+
reveal?: boolean;
|
|
58
|
+
};
|
|
59
|
+
/** The head of a section: eyebrow (mono, the accent), title, lead — and its actions on the right. */
|
|
60
|
+
declare function SectionHeading({ id, eyebrow, number, title, lead, actions, level, size, align, reveal, className, ...props }: SectionHeadingProps): React.JSX.Element;
|
|
61
|
+
type SectionProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
62
|
+
/** The id of the title (and the anchor of the section). Required with a `title`. */
|
|
63
|
+
id?: string;
|
|
64
|
+
/** The heading's eyebrow. */
|
|
65
|
+
eyebrow?: React.ReactNode;
|
|
66
|
+
/** The section's number in the margin (`§ 2`). */
|
|
67
|
+
number?: React.ReactNode;
|
|
68
|
+
/** The section's title: an `h2` (a `SectionHeading`), which names the section for assistive technology. */
|
|
69
|
+
title?: React.ReactNode;
|
|
70
|
+
/** The heading's lead. */
|
|
71
|
+
lead?: React.ReactNode;
|
|
72
|
+
/** The heading's actions. */
|
|
73
|
+
actions?: React.ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* The heading's size: `md` for a page that argues, `sm` for a reading page.
|
|
76
|
+
* @default "md"
|
|
77
|
+
*/
|
|
78
|
+
headingSize?: "sm" | "md";
|
|
79
|
+
/**
|
|
80
|
+
* The heading's alignment.
|
|
81
|
+
* @default "start"
|
|
82
|
+
*/
|
|
83
|
+
headingAlign?: "start" | "center";
|
|
84
|
+
/** The heading rises into place once (never on the first screen). */
|
|
85
|
+
reveal?: boolean;
|
|
86
|
+
/** A hairline above the section, inside the gutters: the transition between two sections of the same surface. */
|
|
87
|
+
divider?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* The vertical space above and below: `sm` (a reading page), `md`, `lg` (a page's main moments).
|
|
90
|
+
* @default "md"
|
|
91
|
+
*/
|
|
92
|
+
spacing?: "sm" | "md" | "lg";
|
|
93
|
+
/**
|
|
94
|
+
* The width of the content.
|
|
95
|
+
* @default "default"
|
|
96
|
+
*/
|
|
97
|
+
size?: PageSize;
|
|
98
|
+
/** The brand's colour transition behind the section (SectionBackdrop): `true`, or its props (`direction`, `grid`…). */
|
|
99
|
+
backdrop?: boolean | Omit<SectionBackdropProps, "as" | "children">;
|
|
100
|
+
} & PaperProps;
|
|
101
|
+
/**
|
|
102
|
+
* A section of a page: full-bleed (its backdrop reaches the edges), its content in the page frame, its heading on top.
|
|
103
|
+
* Sections follow each other on one rhythm; a `divider` or a `backdrop` marks the transition.
|
|
104
|
+
*/
|
|
105
|
+
declare function Section({ id, eyebrow, number, title, lead, actions, headingSize, headingAlign, reveal, divider, spacing, size, backdrop, paper, margin, className, children, ...props }: SectionProps): React.JSX.Element;
|
|
106
|
+
type TicksProps = {
|
|
107
|
+
/** A sentence where words between backticks are code: "Every request carries a `requestId`." */
|
|
108
|
+
children: string;
|
|
109
|
+
};
|
|
110
|
+
/** A sentence of a message catalogue where words between backticks read as code — no markup in the translations. */
|
|
111
|
+
declare function Ticks({ children }: TicksProps): React.JSX.Element;
|
|
112
|
+
interface Fact {
|
|
113
|
+
/** A few words: `npm 2.5.0`, `Maven Central`, `in progress`. */
|
|
114
|
+
label: string;
|
|
115
|
+
/**
|
|
116
|
+
* `ok` — published, usable today; `wip` — in progress, said honestly; `neutral` — a fact.
|
|
117
|
+
* @default "neutral"
|
|
118
|
+
*/
|
|
119
|
+
tone?: "ok" | "wip" | "neutral";
|
|
120
|
+
/** Where the fact is proven (a registry page): the fact becomes a link. */
|
|
121
|
+
href?: string;
|
|
122
|
+
}
|
|
123
|
+
type FactsProps = React.HTMLAttributes<HTMLUListElement> & {
|
|
124
|
+
/** The facts, in reading order. */
|
|
125
|
+
items: readonly Fact[];
|
|
126
|
+
};
|
|
127
|
+
/** Compact facts on one line — a dot that says the state, a few mono words. Links open in a new tab. */
|
|
128
|
+
declare function Facts({ items, className, ...props }: FactsProps): React.JSX.Element;
|
|
129
|
+
|
|
130
|
+
export { Section as S, Ticks as T, Facts as a, Page as c, SectionHeading as f };
|
|
131
|
+
export type { Fact as F, PageSize as P, FactsProps as b, PagePaper as d, PageProps as e, SectionHeadingProps as g, SectionProps as h, TicksProps as i };
|
package/dist/page-hero.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Page
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
BlockLink
|
|
6
|
-
} from "./chunk-FVGFPB73.js";
|
|
3
|
+
} from "./chunk-NPMGYLJV.js";
|
|
7
4
|
import {
|
|
8
5
|
ArrowGlyph
|
|
9
6
|
} from "./chunk-XCBVFMNV.js";
|
|
10
7
|
import {
|
|
11
8
|
SectionBackdrop
|
|
12
9
|
} from "./chunk-XVLWVTQA.js";
|
|
10
|
+
import {
|
|
11
|
+
BlockLink
|
|
12
|
+
} from "./chunk-FVGFPB73.js";
|
|
13
13
|
import {
|
|
14
14
|
cn
|
|
15
15
|
} from "./chunk-W675RFOA.js";
|
package/dist/page.d.ts
CHANGED
|
@@ -1,129 +1,11 @@
|
|
|
1
|
+
export { F as Fact, a as Facts, b as FactsProps, c as Page, d as PagePaper, e as PageProps, P as PageSize, S as Section, f as SectionHeading, g as SectionHeadingProps, h as SectionProps, T as Ticks, i as TicksProps } from './page-DPHDmDAQ.js';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
+
import './section-backdrop.js';
|
|
3
4
|
import 'tailwind-variants';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/** The notebook's ruling under the content: `ruled` (Seyès: 32 px squares, three fine lines), `lines` (lines only, a page to read). */
|
|
10
|
-
paper?: PagePaper;
|
|
11
|
-
/** The red margin line on the left, where section numbers and notes hang (`§ 2`, `fig. 1`). */
|
|
12
|
-
margin?: boolean;
|
|
13
|
-
};
|
|
14
|
-
type PageProps = React.HTMLAttributes<HTMLElement> & {
|
|
15
|
-
/**
|
|
16
|
-
* The width of the content: `default` (72rem, `--kz-page-max`), `narrow` (48rem, a reading column), `wide`
|
|
17
|
-
* (88rem, documentation with a sidebar), `full` (the gutters only).
|
|
18
|
-
* @default "default"
|
|
19
|
-
*/
|
|
20
|
-
size?: PageSize;
|
|
21
|
-
/** The element: `div` (default), `main`, `header`, `footer`, `section` or `article`. */
|
|
22
|
-
as?: "div" | "main" | "header" | "footer" | "section" | "article";
|
|
23
|
-
} & PaperProps;
|
|
24
|
-
/** The page frame: centred, at most `--kz-page-max` wide, with the gutters of `--kz-page-gutter` (16 → 32 px). */
|
|
25
|
-
declare function Page({ size, as: Tag, paper, margin, className, ...props }: PageProps): React.JSX.Element;
|
|
26
|
-
type SectionHeadingProps = Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
27
|
-
/** The id of the title: the section's anchor and its accessible name. */
|
|
28
|
-
id?: string;
|
|
29
|
-
/** A short note above the title (the section's subject), in the note face, lower case — never an uppercase overline. */
|
|
30
|
-
eyebrow?: React.ReactNode;
|
|
31
|
-
/** The section's number, hung in the margin as a notebook numbers its pages (`§ 2`). */
|
|
32
|
-
number?: React.ReactNode;
|
|
33
|
-
/** The title. */
|
|
34
|
-
title: React.ReactNode;
|
|
35
|
-
/** One or two sentences under the title. */
|
|
36
|
-
lead?: React.ReactNode;
|
|
37
|
-
/** Actions on the right of the heading (a link to everything, a filter). */
|
|
38
|
-
actions?: React.ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* The level of the title.
|
|
41
|
-
* @default 2
|
|
42
|
-
*/
|
|
43
|
-
level?: 2 | 3;
|
|
44
|
-
/**
|
|
45
|
-
* `md` for a section that argues, `sm` for a section of a reading page.
|
|
46
|
-
* @default "md"
|
|
47
|
-
*/
|
|
48
|
-
size?: "sm" | "md";
|
|
49
|
-
/**
|
|
50
|
-
* `center` for a heading that stands alone above a grid.
|
|
51
|
-
* @default "start"
|
|
52
|
-
*/
|
|
53
|
-
align?: "start" | "center";
|
|
54
|
-
/** Rises into place once, as it enters the viewport (`[data-reveal]`, MotionObserver). Never on the first screen. */
|
|
55
|
-
reveal?: boolean;
|
|
56
|
-
};
|
|
57
|
-
/** The head of a section: eyebrow (mono, the accent), title, lead — and its actions on the right. */
|
|
58
|
-
declare function SectionHeading({ id, eyebrow, number, title, lead, actions, level, size, align, reveal, className, ...props }: SectionHeadingProps): React.JSX.Element;
|
|
59
|
-
type SectionProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
60
|
-
/** The id of the title (and the anchor of the section). Required with a `title`. */
|
|
61
|
-
id?: string;
|
|
62
|
-
/** The heading's eyebrow. */
|
|
63
|
-
eyebrow?: React.ReactNode;
|
|
64
|
-
/** The section's number in the margin (`§ 2`). */
|
|
65
|
-
number?: React.ReactNode;
|
|
66
|
-
/** The section's title: an `h2` (a `SectionHeading`), which names the section for assistive technology. */
|
|
67
|
-
title?: React.ReactNode;
|
|
68
|
-
/** The heading's lead. */
|
|
69
|
-
lead?: React.ReactNode;
|
|
70
|
-
/** The heading's actions. */
|
|
71
|
-
actions?: React.ReactNode;
|
|
72
|
-
/**
|
|
73
|
-
* The heading's size: `md` for a page that argues, `sm` for a reading page.
|
|
74
|
-
* @default "md"
|
|
75
|
-
*/
|
|
76
|
-
headingSize?: "sm" | "md";
|
|
77
|
-
/**
|
|
78
|
-
* The heading's alignment.
|
|
79
|
-
* @default "start"
|
|
80
|
-
*/
|
|
81
|
-
headingAlign?: "start" | "center";
|
|
82
|
-
/** The heading rises into place once (never on the first screen). */
|
|
83
|
-
reveal?: boolean;
|
|
84
|
-
/** A hairline above the section, inside the gutters: the transition between two sections of the same surface. */
|
|
85
|
-
divider?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* The vertical space above and below: `sm` (a reading page), `md`, `lg` (a page's main moments).
|
|
88
|
-
* @default "md"
|
|
89
|
-
*/
|
|
90
|
-
spacing?: "sm" | "md" | "lg";
|
|
91
|
-
/**
|
|
92
|
-
* The width of the content.
|
|
93
|
-
* @default "default"
|
|
94
|
-
*/
|
|
95
|
-
size?: PageSize;
|
|
96
|
-
/** The brand's colour transition behind the section (SectionBackdrop): `true`, or its props (`direction`, `grid`…). */
|
|
97
|
-
backdrop?: boolean | Omit<SectionBackdropProps, "as" | "children">;
|
|
98
|
-
} & PaperProps;
|
|
99
|
-
/**
|
|
100
|
-
* A section of a page: full-bleed (its backdrop reaches the edges), its content in the page frame, its heading on top.
|
|
101
|
-
* Sections follow each other on one rhythm; a `divider` or a `backdrop` marks the transition.
|
|
102
|
-
*/
|
|
103
|
-
declare function Section({ id, eyebrow, number, title, lead, actions, headingSize, headingAlign, reveal, divider, spacing, size, backdrop, paper, margin, className, children, ...props }: SectionProps): React.JSX.Element;
|
|
104
|
-
type TicksProps = {
|
|
105
|
-
/** A sentence where words between backticks are code: "Every request carries a `requestId`." */
|
|
106
|
-
children: string;
|
|
107
|
-
};
|
|
108
|
-
/** A sentence of a message catalogue where words between backticks read as code — no markup in the translations. */
|
|
109
|
-
declare function Ticks({ children }: TicksProps): React.JSX.Element;
|
|
110
|
-
interface Fact {
|
|
111
|
-
/** A few words: `npm 2.5.0`, `Maven Central`, `in progress`. */
|
|
112
|
-
label: string;
|
|
113
|
-
/**
|
|
114
|
-
* `ok` — published, usable today; `wip` — in progress, said honestly; `neutral` — a fact.
|
|
115
|
-
* @default "neutral"
|
|
116
|
-
*/
|
|
117
|
-
tone?: "ok" | "wip" | "neutral";
|
|
118
|
-
/** Where the fact is proven (a registry page): the fact becomes a link. */
|
|
119
|
-
href?: string;
|
|
120
|
-
}
|
|
121
|
-
type FactsProps = React.HTMLAttributes<HTMLUListElement> & {
|
|
122
|
-
/** The facts, in reading order. */
|
|
123
|
-
items: readonly Fact[];
|
|
124
|
-
};
|
|
125
|
-
/** Compact facts on one line — a dot that says the state, a few mono words. Links open in a new tab. */
|
|
126
|
-
declare function Facts({ items, className, ...props }: FactsProps): React.JSX.Element;
|
|
6
|
+
/** The id the stylesheet references. */
|
|
7
|
+
declare const PAPER_GRAIN_ID = "kz-paper-grain";
|
|
8
|
+
/** Mount once in the root layout: the grain of every `paper="kraft"` page and section. Draws nothing itself. */
|
|
9
|
+
declare function PaperGrain(): React.JSX.Element;
|
|
127
10
|
|
|
128
|
-
export {
|
|
129
|
-
export type { Fact, FactsProps, PagePaper, PageProps, PageSize, SectionHeadingProps, SectionProps, TicksProps };
|
|
11
|
+
export { PAPER_GRAIN_ID, PaperGrain };
|
package/dist/page.js
CHANGED
|
@@ -4,12 +4,24 @@ import {
|
|
|
4
4
|
Section,
|
|
5
5
|
SectionHeading,
|
|
6
6
|
Ticks
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NPMGYLJV.js";
|
|
8
8
|
import "./chunk-XVLWVTQA.js";
|
|
9
9
|
import "./chunk-W675RFOA.js";
|
|
10
|
+
|
|
11
|
+
// src/page/paper-grain.tsx
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
var PAPER_GRAIN_ID = "kz-paper-grain";
|
|
14
|
+
function PaperGrain() {
|
|
15
|
+
return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", focusable: "false", width: "0", height: "0", style: { position: "absolute" }, children: /* @__PURE__ */ jsxs("filter", { id: PAPER_GRAIN_ID, x: "0", y: "0", width: "100%", height: "100%", colorInterpolationFilters: "sRGB", children: [
|
|
16
|
+
/* @__PURE__ */ jsx("feTurbulence", { type: "fractalNoise", baseFrequency: "0.8", numOctaves: "2", seed: "7", stitchTiles: "stitch" }),
|
|
17
|
+
/* @__PURE__ */ jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -0.2" })
|
|
18
|
+
] }) });
|
|
19
|
+
}
|
|
10
20
|
export {
|
|
11
21
|
Facts,
|
|
22
|
+
PAPER_GRAIN_ID,
|
|
12
23
|
Page,
|
|
24
|
+
PaperGrain,
|
|
13
25
|
Section,
|
|
14
26
|
SectionHeading,
|
|
15
27
|
Ticks
|
package/dist/page.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/page/paper-grain.tsx"],"sourcesContent":["// Server-safe. The kraft paper's grain (krizaka-ui#600): one inline SVG filter with a fixed seed, mounted once by the\n// host (the root layout) and referenced by id from blocks.css (`filter: url(#kz-paper-grain)`). No image file.\n\n/** The id the stylesheet references. */\nexport const PAPER_GRAIN_ID = \"kz-paper-grain\";\n\n/** Mount once in the root layout: the grain of every `paper=\"kraft\"` page and section. Draws nothing itself. */\nexport function PaperGrain() {\n return (\n <svg aria-hidden=\"true\" focusable=\"false\" width=\"0\" height=\"0\" style={{ position: \"absolute\" }}>\n <filter id={PAPER_GRAIN_ID} x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" colorInterpolationFilters=\"sRGB\">\n <feTurbulence type=\"fractalNoise\" baseFrequency=\"0.8\" numOctaves=\"2\" seed=\"7\" stitchTiles=\"stitch\" />\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -0.2\" />\n </filter>\n </svg>\n );\n}\n"],"mappings":";;;;;;;;;;;AAUM,SACE,KADF;AANC,IAAM,iBAAiB;AAGvB,SAAS,aAAa;AAC3B,SACE,oBAAC,SAAI,eAAY,QAAO,WAAU,SAAQ,OAAM,KAAI,QAAO,KAAI,OAAO,EAAE,UAAU,WAAW,GAC3F,+BAAC,YAAO,IAAI,gBAAgB,GAAE,KAAI,GAAE,KAAI,OAAM,QAAO,QAAO,QAAO,2BAA0B,QAC3F;AAAA,wBAAC,kBAAa,MAAK,gBAAe,eAAc,OAAM,YAAW,KAAI,MAAK,KAAI,aAAY,UAAS;AAAA,IACnG,oBAAC,mBAAc,MAAK,UAAS,QAAO,mDAAkD;AAAA,KACxF,GACF;AAEJ;","names":[]}
|
package/dist/product-page.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ interface ProductReason {
|
|
|
19
19
|
href?: string;
|
|
20
20
|
}
|
|
21
21
|
type ProductPageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
22
|
-
/** The product's brand (`orazaka`, `
|
|
22
|
+
/** The product's brand (`orazaka`, `yomizaka`…): the page wears `.brand-<id>`. */
|
|
23
23
|
brand?: string;
|
|
24
24
|
/** The product's mark and name, above the title. */
|
|
25
25
|
mark?: React.ReactNode;
|
package/dist/product-page.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/product-page/product-page.tsx"],"sourcesContent":["// Server-safe. A product's overview: the hero with the product's mark, its promise, facts and main action beside a live\n// window of the product; the traps it removes as compact argument cards; its decisions with their cost; the promise a\n// bird keeps; the closing call. Under the product's brand (`brand` → `.brand-<id>`).\nimport { ArgumentCard } from \"@krizaka/ui/argument-card\";\nimport { CardGrid } from \"@krizaka/ui/card-grid\";\nimport { CtaPanel } from \"@krizaka/ui/cta-panel\";\nimport { type Decision, DecisionList } from \"@krizaka/ui/decision-list\";\nimport { MascotQuote } from \"@krizaka/ui/mascot-quote\";\nimport type { MascotBird } from \"@krizaka/ui/mascots\";\nimport { type Fact, Facts, Page, Section } from \"@krizaka/ui/page\";\nimport type { LinkComponent } from \"@krizaka/ui/page-hero\";\nimport { SectionBackdrop } from \"@krizaka/ui/section-backdrop\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { warnDeprecated } from \"../deprecated\";\n\nexport interface ProductReason {\n /** A stable key (the card's anchor). */\n id: string;\n /** Its name. */\n title: React.ReactNode;\n /** The trap elsewhere, in one line. */\n trap: React.ReactNode;\n /** The signature icon. */\n icon?: React.ReactNode;\n /** The bird in the corner (whose rule it is). */\n mark?: React.ReactNode;\n /** Where the long version lives (a page) — or nothing, and the card stays its face. */\n href?: string;\n}\n\nexport type ProductPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The product's brand (`orazaka`, `
|
|
1
|
+
{"version":3,"sources":["../src/product-page/product-page.tsx"],"sourcesContent":["// Server-safe. A product's overview: the hero with the product's mark, its promise, facts and main action beside a live\n// window of the product; the traps it removes as compact argument cards; its decisions with their cost; the promise a\n// bird keeps; the closing call. Under the product's brand (`brand` → `.brand-<id>`).\nimport { ArgumentCard } from \"@krizaka/ui/argument-card\";\nimport { CardGrid } from \"@krizaka/ui/card-grid\";\nimport { CtaPanel } from \"@krizaka/ui/cta-panel\";\nimport { type Decision, DecisionList } from \"@krizaka/ui/decision-list\";\nimport { MascotQuote } from \"@krizaka/ui/mascot-quote\";\nimport type { MascotBird } from \"@krizaka/ui/mascots\";\nimport { type Fact, Facts, Page, Section } from \"@krizaka/ui/page\";\nimport type { LinkComponent } from \"@krizaka/ui/page-hero\";\nimport { SectionBackdrop } from \"@krizaka/ui/section-backdrop\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { warnDeprecated } from \"../deprecated\";\n\nexport interface ProductReason {\n /** A stable key (the card's anchor). */\n id: string;\n /** Its name. */\n title: React.ReactNode;\n /** The trap elsewhere, in one line. */\n trap: React.ReactNode;\n /** The signature icon. */\n icon?: React.ReactNode;\n /** The bird in the corner (whose rule it is). */\n mark?: React.ReactNode;\n /** Where the long version lives (a page) — or nothing, and the card stays its face. */\n href?: string;\n}\n\nexport type ProductPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The product's brand (`orazaka`, `yomizaka`…): the page wears `.brand-<id>`. */\n brand?: string;\n /** The product's mark and name, above the title. */\n mark?: React.ReactNode;\n /** The promise: the page's `h1`. */\n title: React.ReactNode;\n /** One or two sentences under it. */\n lead?: React.ReactNode;\n /** Facts under the lead (open source, a law it keeps). */\n facts?: readonly Fact[];\n /** The hero's actions. */\n actions?: React.ReactNode;\n /** The product alive, in a window beside the words. */\n visual?: React.ReactNode;\n /** The window's caption. */\n visualLabel?: React.ReactNode;\n /** The reasons' section heading. */\n reasonsHeading: { eyebrow?: React.ReactNode; title: React.ReactNode; lead?: React.ReactNode };\n /** The words of the cards: the trap's label (read, not shown) and the way in. */\n reasonLabels: { trap: string; more: React.ReactNode };\n /** The traps it removes. */\n reasons: readonly ProductReason[];\n /** The decisions' section: heading, decisions and their four labels. */\n decisions?: { eyebrow?: React.ReactNode; title: React.ReactNode; items: readonly Decision[]; labels: { chose: React.ReactNode; refused: React.ReactNode; because: React.ReactNode; cost: React.ReactNode } };\n /** The promise a bird keeps, under the decisions. */\n promise?: { bird: MascotBird; label: React.ReactNode; text: React.ReactNode };\n /** More sections between the decisions and the closing call (the tour, the platform, a comparison). */\n children?: React.ReactNode;\n /** The closing call. */\n closing?: { title: React.ReactNode; body?: React.ReactNode; actions: React.ReactNode };\n /** The app's link component (Next's `Link`). */\n linkAs?: LinkComponent;\n};\n\n/**\n * A product's overview: split hero, traps as compact cards, decisions with their cost, the bird's promise, closing call.\n * @deprecated Since 3.55 (ADR-006, krizaka-ui#674): no product uses it. Removed in 4.0.\n */\nexport function ProductPage({ brand, mark, title, lead, facts, actions, visual, visualLabel, reasonsHeading, reasonLabels, reasons, decisions, promise, closing, linkAs, className, children, ...props }: ProductPageProps) {\n warnDeprecated(\"product-page\");\n return (\n <div className={cn(brand && \"brand-\" + brand, className)} {...props}>\n <SectionBackdrop as=\"header\" grid className=\"kz-hero\">\n <Page>\n <div className={visual ? \"kz-tpl-split\" : undefined}>\n <div className=\"kz-hero-text\">\n {mark && <p className=\"kz-eyebrow\">{mark}</p>}\n <h1 className=\"kz-hero-title\">{title}</h1>\n {lead && <p className=\"kz-hero-lead\">{lead}</p>}\n {(facts || actions) && (\n <div className=\"kz-hero-extra\">\n {facts && <Facts items={facts} />}\n {actions && <div className=\"kz-tpl-actions\">{actions}</div>}\n </div>\n )}\n </div>\n {visual && (\n <figure className=\"kz-tpl-stage\">\n <div className=\"kz-tpl-stage-bar\" aria-hidden>\n {visualLabel && <span>{visualLabel}</span>}\n </div>\n {visual}\n </figure>\n )}\n </div>\n </Page>\n </SectionBackdrop>\n <Section id=\"why\" eyebrow={reasonsHeading.eyebrow} title={reasonsHeading.title} lead={reasonsHeading.lead} reveal>\n <CardGrid min={260} fit=\"fit\">\n {reasons.map((r) => (\n <ArgumentCard\n key={r.id}\n id={`why-${r.id}`}\n icon={r.icon}\n title={r.title}\n mark={r.mark}\n hook={{ label: reasonLabels.trap, text: r.trap }}\n more={r.href ? { href: r.href, label: reasonLabels.more } : undefined}\n linkAs={linkAs}\n />\n ))}\n </CardGrid>\n </Section>\n {decisions && (\n <Section id=\"decisions\" eyebrow={decisions.eyebrow} title={decisions.title} divider reveal>\n <DecisionList decisions={decisions.items} labels={decisions.labels} />\n {promise && (\n <div className=\"kz-tpl-promise\">\n <MascotQuote variant=\"callout\" bird={promise.bird} mood=\"welcome\" label={promise.label}>\n {promise.text}\n </MascotQuote>\n </div>\n )}\n </Section>\n )}\n {children}\n {closing && (\n <Section spacing=\"sm\" aria-labelledby=\"product-closing\">\n <CtaPanel id=\"product-closing\" title={closing.title} body={closing.body} reveal>\n {closing.actions}\n </CtaPanel>\n </Section>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAGA,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAwB,oBAAoB;AAC5C,SAAS,mBAAmB;AAE5B,SAAoB,OAAO,MAAM,eAAe;AAEhD,SAAS,uBAAuB;AAoET,cAIP,YAJO;AARhB,SAAS,YAAY,EAAE,OAAO,MAAM,OAAO,MAAM,OAAO,SAAS,QAAQ,aAAa,gBAAgB,cAAc,SAAS,WAAW,SAAS,SAAS,QAAQ,WAAW,UAAU,GAAG,MAAM,GAAqB;AAC1N,iBAAe,cAAc;AAC7B,SACE,qBAAC,SAAI,WAAW,GAAG,SAAS,WAAW,OAAO,SAAS,GAAI,GAAG,OAC5D;AAAA,wBAAC,mBAAgB,IAAG,UAAS,MAAI,MAAC,WAAU,WAC1C,8BAAC,QACC,+BAAC,SAAI,WAAW,SAAS,iBAAiB,QACxC;AAAA,2BAAC,SAAI,WAAU,gBACZ;AAAA,gBAAQ,oBAAC,OAAE,WAAU,cAAc,gBAAK;AAAA,QACzC,oBAAC,QAAG,WAAU,iBAAiB,iBAAM;AAAA,QACpC,QAAQ,oBAAC,OAAE,WAAU,gBAAgB,gBAAK;AAAA,SACzC,SAAS,YACT,qBAAC,SAAI,WAAU,iBACZ;AAAA,mBAAS,oBAAC,SAAM,OAAO,OAAO;AAA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AEJ;","names":[]}
|
package/dist/profile-card.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ type ProfileCardProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
|
168
168
|
* @default "default"
|
|
169
169
|
*/
|
|
170
170
|
variant?: StoryVariant;
|
|
171
|
-
/** A brand scope (`
|
|
171
|
+
/** A brand scope (`orazaka` → `.brand-orazaka`): the accent and gradient become that brand's. */
|
|
172
172
|
brand?: string;
|
|
173
173
|
};
|
|
174
174
|
/** A profile at a glance: portrait, name, a headline gauge, stats with their values in words, a line and actions. */
|
package/dist/profile-card.js
CHANGED
package/dist/profile-card.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/profile-card/banner.tsx","../src/profile-card/stat-gauge.tsx","../src/profile-card/profile-card.tsx"],"sourcesContent":["// Server-safe: no hook. The top of a page about one person or place — a client, a shop, a creator, a building\n// (extracted from Orochia's ProfileHero, #650, #515): a slim cover, the avatar overlapping its lower edge, then the\n// eyebrow, the name (the page's h1), its facts and the actions. No text ever sits on the cover: the words are under it,\n// so a photo never costs their contrast (a scrim fades the photo's foot into the page all the same).\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { cn } from \"../cn\";\nimport { brandClass } from \"../story-variant\";\n\nexport const profileBanner = tv({\n slots: {\n root: \"relative flex w-full min-w-0 flex-col\",\n // The brand's accent, as a calm tint, when there is no picture; a picture fills it (`object-cover`).\n cover:\n \"relative h-28 w-full overflow-hidden rounded-xl bg-accent-soft bg-linear-to-br from-accent/30 via-accent-soft to-surface-2 sm:h-44 \" +\n \"[&>img]:block [&>img]:h-full [&>img]:w-full [&>img]:object-cover\",\n scrim: \"pointer-events-none absolute inset-0 bg-linear-to-t from-surface-0/70 via-transparent to-transparent\",\n body: \"relative flex min-w-0 flex-col gap-3 px-1 sm:flex-row sm:items-end sm:justify-between sm:px-2\",\n identity: \"flex min-w-0 items-end gap-4\",\n // The avatar overlaps the cover's lower edge by the same share at every width; the ring is the page's colour.\n avatar:\n \"relative -mt-10 h-20 w-20 shrink-0 overflow-hidden rounded-2xl bg-surface-3 ring-4 ring-surface-0 sm:-mt-14 sm:h-28 sm:w-28 \" +\n \"[&>*]:h-full! [&>*]:w-full! [&_img]:h-full [&_img]:w-full [&_img]:object-cover\",\n text: \"flex min-w-0 flex-1 flex-col gap-1 pb-1\",\n eyebrow: \"font-mono text-[11px] font-semibold text-fg-accent\",\n titleRow: \"flex min-w-0 flex-wrap items-center gap-2\",\n title: \"min-w-0 font-display text-xl font-extrabold tracking-tight break-words text-fg sm:text-3xl\",\n meta: \"flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-fg-secondary\",\n actions: \"flex shrink-0 flex-wrap items-center gap-2 sm:justify-end sm:pb-1\",\n },\n});\nconst s = profileBanner();\n\nexport type ProfileBannerProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** The cover: an `<img alt=\"\">` (decorative) or your framework's image. Absent: a tint of the brand's accent. */\n banner?: React.ReactNode;\n /** The avatar overlapping the cover: `Avatar` with the family's default (`defaultAvatar: { brand, seed }`, #598) when there is no photo. */\n avatar: React.ReactNode;\n /** A mono line above the name: what it is (« Client », « Shop »), an id. */\n eyebrow?: React.ReactNode;\n /** The name: the page's heading. */\n title: React.ReactNode;\n /**\n * The level of the name.\n * @default \"h1\"\n */\n titleAs?: \"h1\" | \"h2\";\n /** Beside the name: a status (`Badge`), a verified mark. */\n status?: React.ReactNode;\n /** Under the name: its facts (a handle, a city, « client since 2024 »). */\n meta?: React.ReactNode;\n /** The actions (message, book, edit): at the right from `sm`, under the name on a phone. */\n actions?: React.ReactNode;\n /** A brand scope (`akinaza` → `.brand-akinaza`): the default cover takes that brand's accent. */\n brand?: string;\n};\n\n/** A person's or a place's banner: cover, overlapping avatar, eyebrow, name (h1), facts and actions — the words never on the cover. */\nexport function ProfileBanner({ banner, avatar, eyebrow, title, titleAs: Title = \"h1\", status, meta, actions, brand, className, ...props }: ProfileBannerProps) {\n return (\n <section className={s.root({ className: cn(brandClass(brand), className) })} {...props}>\n <div data-cover=\"\" className={s.cover()}>\n {banner}\n {banner ? <span aria-hidden className={s.scrim()} /> : null}\n </div>\n <div className={s.body()}>\n <div className={s.identity()}>\n <div data-avatar=\"\" className={s.avatar()}>\n {avatar}\n </div>\n <div className={s.text()}>\n {eyebrow && <p className={s.eyebrow()}>{eyebrow}</p>}\n <div className={s.titleRow()}>\n <Title className={s.title()}>{title}</Title>\n {status}\n </div>\n {meta && <div className={s.meta()}>{meta}</div>}\n </div>\n </div>\n {actions && <div className={s.actions()}>{actions}</div>}\n </div>\n </section>\n );\n}\n","// Server-safe. One measured strength: a label, its figure, a bar (story.css) — the gauge of a ProfileCard, also usable\n// alone (in a ChoiceGrid tile, a list). A `meter` with its value in words.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport type StatGaugeProps = Omit<React.HTMLAttributes<HTMLDivElement>, \"children\"> & {\n /** What it measures (“Profile complete”, “Creator share”) — passed translated; the meter's accessible name. */\n label: string;\n /**\n * The value, between 0 and `max`.\n * @default 100\n */\n value?: number;\n /**\n * The top of the range.\n * @default 100\n */\n max?: number;\n /** The value in words (“12 of 15”); default: the percentage. Read by assistive technology, shown without `figure`. */\n valueText?: string;\n /** What shows as the figure instead of `valueText`: a `NumberTicker` that climbs, a formatted amount. Decorative. */\n figure?: React.ReactNode;\n /**\n * Hides the label and the figure (the bar alone, named for assistive technology).\n * @default false\n */\n hideLabel?: boolean;\n};\n\nconst clamp = (n: number) => Math.min(1, Math.max(0, n));\n\n/** A measured strength: label, figure and bar; `role=\"meter\"` with `aria-valuetext`. */\nexport function StatGauge({ label, value = 100, max = 100, valueText, figure, hideLabel, className, style, ...props }: StatGaugeProps) {\n const ratio = clamp(value / (max || 1));\n const words = valueText ?? `${Math.round(ratio * 100)} %`;\n return (\n <div\n role=\"meter\"\n aria-label={label}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuenow={Math.round(ratio * 100)}\n aria-valuetext={words}\n className={cn(\"kzs-stat\", className)}\n style={{ \"--kzs-ratio\": ratio, ...style } as React.CSSProperties}\n {...props}\n >\n {!hideLabel && (\n <span className=\"kzs-stat-head\" aria-hidden>\n <span className=\"kzs-stat-label\">{label}</span>\n <span className=\"kzs-stat-value\">{figure ?? words}</span>\n </span>\n )}\n <span className=\"kzs-bar\" aria-hidden>\n <span className=\"kzs-bar-fill\" />\n </span>\n </div>\n );\n}\n","// Server-safe. A profile at a glance (story.css): a portrait, a name, one headline gauge, a few stats, a line — a creator,\n// a match, a plan, a team member. In a `Scene` of a `ScrollStage` the card arrives and its gauges fill, once.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { brandClass, type StoryVariant, storyVariantClass } from \"../story-variant\";\nimport { StatGauge } from \"./stat-gauge\";\n\nexport interface ProfileStat {\n /** What it measures (“Response rate”) — passed translated. */\n label: string;\n /** The value, between 0 and `max`. */\n value: number;\n /** The top of the range (default 100). */\n max?: number;\n /** The value in words (“92 %”, “4.8 / 5”); default: the percentage. */\n valueText?: string;\n}\n\nexport type ProfileCardProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The portrait: an image, an avatar, a mark. Decorative — the name carries the meaning. */\n visual: React.ReactNode;\n /** The name (the card's heading). */\n name: React.ReactNode;\n /**\n * The level of the name.\n * @default \"h3\"\n */\n nameAs?: \"h2\" | \"h3\" | \"h4\" | \"p\";\n /** A small glyph before the name (decorative): a verified mark, an emblem. */\n icon?: React.ReactNode;\n /** The headline gauge's label (“Profile complete”, arcade “Power”); without it, no headline gauge. */\n statLabel?: string;\n /**\n * The headline gauge's value, 0–100.\n * @default 100\n */\n value?: number;\n /** The headline value in words; default: the percentage. */\n valueText?: string;\n /** What shows as the headline figure instead of `valueText`: a `NumberTicker` that climbs. Decorative. */\n figure?: React.ReactNode;\n /** More gauges under the headline one: two to four, each with its value in words. */\n stats?: readonly ProfileStat[];\n /** One line under the gauges: where they come from, what they do. */\n caption?: React.ReactNode;\n /** Under everything: actions (follow, message), chips. */\n children?: React.ReactNode;\n /**\n * The diameter of the portrait, in pixels.\n * @default 132 (arcade 196)\n */\n visualSize?: number;\n /**\n * `default`: a sober card. `arcade`: the fighter card — the brand's light, a ring and a breathing aura, a skewed gauge.\n * @default \"default\"\n */\n variant?: StoryVariant;\n /** A brand scope (`orochia` → `.brand-orochia`): the accent and gradient become that brand's. */\n brand?: string;\n};\n\n/** A profile at a glance: portrait, name, a headline gauge, stats with their values in words, a line and actions. */\nexport function ProfileCard({\n visual,\n name,\n nameAs: Name = \"h3\",\n icon,\n statLabel,\n value = 100,\n valueText,\n figure,\n stats,\n caption,\n children,\n visualSize,\n variant,\n brand,\n className,\n style,\n ...props\n}: ProfileCardProps) {\n return (\n <article\n className={cn(\"kzs-profile\", storyVariantClass(variant), brandClass(brand), className)}\n style={visualSize ? ({ \"--kzs-disc\": `${visualSize}px`, ...style } as React.CSSProperties) : style}\n {...props}\n >\n <span className=\"kzs-texture\" aria-hidden />\n <div className=\"kzs-profile-disc\" aria-hidden>\n <span className=\"kzs-profile-ring\" />\n <span className=\"kzs-profile-aura kzs-loop\" />\n <span className=\"kzs-profile-flash\" />\n <span className=\"kzs-profile-visual\">{visual}</span>\n </div>\n <Name className=\"kzs-profile-name\">\n {icon && <span aria-hidden>{icon}</span>}\n {name}\n </Name>\n {statLabel && <StatGauge label={statLabel} value={value} valueText={valueText} figure={figure} />}\n {stats && stats.length > 0 && (\n <ul className=\"kzs-profile-stats\">\n {stats.map((s) => (\n <li key={s.label}>\n <StatGauge label={s.label} value={s.value} max={s.max} valueText={s.valueText} />\n </li>\n ))}\n </ul>\n )}\n {caption && <p className=\"kzs-profile-caption\">{caption}</p>}\n {children && <div className=\"kzs-profile-extra\">{children}</div>}\n </article>\n );\n}\n"],"mappings":";;;;;;;AAKA,SAAS,UAAU;AAyDb,SAEY,KAFZ;AApDC,IAAM,gBAAgB,GAAG;AAAA,EAC9B,OAAO;AAAA,IACL,MAAM;A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eAAe,kBAAkB,OAAO,GAAG,WAAW,KAAK,GAAG,SAAS;AAAA,MACrF,OAAO,aAAc,EAAE,cAAc,GAAG,UAAU,MAAM,GAAG,MAAM,IAA4B;AAAA,MAC5F,GAAG;AAAA,MAEJ;AAAA,wBAAAD,KAAC,UAAK,WAAU,eAAc,eAAW,MAAC;AAAA,QAC1C,gBAAAC,MAAC,SAAI,WAAU,oBAAmB,eAAW,MAC3C;AAAA,0BAAAD,KAAC,UAAK,WAAU,oBAAmB;AAAA,UACnC,gBAAAA,KAAC,UAAK,WAAU,6BAA4B;AAAA,UAC5C,gBAAAA,KAAC,UAAK,WAAU,qBAAoB;AAAA,UACpC,gBAAAA,KAAC,UAAK,WAAU,sBAAsB,kBAAO;AAAA,WAC/C;AAAA,QACA,gBAAAC,MAAC,QAAK,WAAU,oBACb;AAAA,kBAAQ,gBAAAD,KAAC,UAAK,eAAW,MAAE,gBAAK;AAAA,UAChC;AAAA,WACH;AAAA,QACC,aAAa,gBAAAA,KAAC,aAAU,OAAO,WAAW,OAAc,WAAsB,QAAgB;AAAA,QAC9F,SAAS,MAAM,SAAS,KACvB,gBAAAA,KAAC,QAAG,WAAU,qBACX,gBAAM,IAAI,CAACE,OACV,gBAAAF,KAAC,QACC,0BAAAA,KAAC,aAAU,OAAOE,GAAE,OAAO,OAAOA,GAAE,OAAO,KAAKA,GAAE,KAAK,WAAWA,GAAE,WAAW,KADxEA,GAAE,KAEX,CACD,GACH;AAAA,QAED,WAAW,gBAAAF,KAAC,OAAE,WAAU,uBAAuB,mBAAQ;AAAA,QACvD,YAAY,gBAAAA,KAAC,SAAI,WAAU,qBAAqB,UAAS;AAAA;AAAA;AAAA,EAC5D;AAEJ;","names":["jsx","jsxs","jsx","jsxs","s"]}
|
|
1
|
+
{"version":3,"sources":["../src/profile-card/banner.tsx","../src/profile-card/stat-gauge.tsx","../src/profile-card/profile-card.tsx"],"sourcesContent":["// Server-safe: no hook. The top of a page about one person or place — a client, a shop, a creator, a building\n// (extracted from a product's ProfileHero, #650, #515): a slim cover, the avatar overlapping its lower edge, then the\n// eyebrow, the name (the page's h1), its facts and the actions. No text ever sits on the cover: the words are under it,\n// so a photo never costs their contrast (a scrim fades the photo's foot into the page all the same).\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { cn } from \"../cn\";\nimport { brandClass } from \"../story-variant\";\n\nexport const profileBanner = tv({\n slots: {\n root: \"relative flex w-full min-w-0 flex-col\",\n // The brand's accent, as a calm tint, when there is no picture; a picture fills it (`object-cover`).\n cover:\n \"relative h-28 w-full overflow-hidden rounded-xl bg-accent-soft bg-linear-to-br from-accent/30 via-accent-soft to-surface-2 sm:h-44 \" +\n \"[&>img]:block [&>img]:h-full [&>img]:w-full [&>img]:object-cover\",\n scrim: \"pointer-events-none absolute inset-0 bg-linear-to-t from-surface-0/70 via-transparent to-transparent\",\n body: \"relative flex min-w-0 flex-col gap-3 px-1 sm:flex-row sm:items-end sm:justify-between sm:px-2\",\n identity: \"flex min-w-0 items-end gap-4\",\n // The avatar overlaps the cover's lower edge by the same share at every width; the ring is the page's colour.\n avatar:\n \"relative -mt-10 h-20 w-20 shrink-0 overflow-hidden rounded-2xl bg-surface-3 ring-4 ring-surface-0 sm:-mt-14 sm:h-28 sm:w-28 \" +\n \"[&>*]:h-full! [&>*]:w-full! [&_img]:h-full [&_img]:w-full [&_img]:object-cover\",\n text: \"flex min-w-0 flex-1 flex-col gap-1 pb-1\",\n eyebrow: \"font-mono text-[11px] font-semibold text-fg-accent\",\n titleRow: \"flex min-w-0 flex-wrap items-center gap-2\",\n title: \"min-w-0 font-display text-xl font-extrabold tracking-tight break-words text-fg sm:text-3xl\",\n meta: \"flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-fg-secondary\",\n actions: \"flex shrink-0 flex-wrap items-center gap-2 sm:justify-end sm:pb-1\",\n },\n});\nconst s = profileBanner();\n\nexport type ProfileBannerProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** The cover: an `<img alt=\"\">` (decorative) or your framework's image. Absent: a tint of the brand's accent. */\n banner?: React.ReactNode;\n /** The avatar overlapping the cover: `Avatar` with the family's default (`defaultAvatar: { brand, seed }`, #598) when there is no photo. */\n avatar: React.ReactNode;\n /** A mono line above the name: what it is (« Client », « Shop »), an id. */\n eyebrow?: React.ReactNode;\n /** The name: the page's heading. */\n title: React.ReactNode;\n /**\n * The level of the name.\n * @default \"h1\"\n */\n titleAs?: \"h1\" | \"h2\";\n /** Beside the name: a status (`Badge`), a verified mark. */\n status?: React.ReactNode;\n /** Under the name: its facts (a handle, a city, « client since 2024 »). */\n meta?: React.ReactNode;\n /** The actions (message, book, edit): at the right from `sm`, under the name on a phone. */\n actions?: React.ReactNode;\n /** A brand scope (`akinaza` → `.brand-akinaza`): the default cover takes that brand's accent. */\n brand?: string;\n};\n\n/** A person's or a place's banner: cover, overlapping avatar, eyebrow, name (h1), facts and actions — the words never on the cover. */\nexport function ProfileBanner({ banner, avatar, eyebrow, title, titleAs: Title = \"h1\", status, meta, actions, brand, className, ...props }: ProfileBannerProps) {\n return (\n <section className={s.root({ className: cn(brandClass(brand), className) })} {...props}>\n <div data-cover=\"\" className={s.cover()}>\n {banner}\n {banner ? <span aria-hidden className={s.scrim()} /> : null}\n </div>\n <div className={s.body()}>\n <div className={s.identity()}>\n <div data-avatar=\"\" className={s.avatar()}>\n {avatar}\n </div>\n <div className={s.text()}>\n {eyebrow && <p className={s.eyebrow()}>{eyebrow}</p>}\n <div className={s.titleRow()}>\n <Title className={s.title()}>{title}</Title>\n {status}\n </div>\n {meta && <div className={s.meta()}>{meta}</div>}\n </div>\n </div>\n {actions && <div className={s.actions()}>{actions}</div>}\n </div>\n </section>\n );\n}\n","// Server-safe. One measured strength: a label, its figure, a bar (story.css) — the gauge of a ProfileCard, also usable\n// alone (in a ChoiceGrid tile, a list). A `meter` with its value in words.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport type StatGaugeProps = Omit<React.HTMLAttributes<HTMLDivElement>, \"children\"> & {\n /** What it measures (“Profile complete”, “Creator share”) — passed translated; the meter's accessible name. */\n label: string;\n /**\n * The value, between 0 and `max`.\n * @default 100\n */\n value?: number;\n /**\n * The top of the range.\n * @default 100\n */\n max?: number;\n /** The value in words (“12 of 15”); default: the percentage. Read by assistive technology, shown without `figure`. */\n valueText?: string;\n /** What shows as the figure instead of `valueText`: a `NumberTicker` that climbs, a formatted amount. Decorative. */\n figure?: React.ReactNode;\n /**\n * Hides the label and the figure (the bar alone, named for assistive technology).\n * @default false\n */\n hideLabel?: boolean;\n};\n\nconst clamp = (n: number) => Math.min(1, Math.max(0, n));\n\n/** A measured strength: label, figure and bar; `role=\"meter\"` with `aria-valuetext`. */\nexport function StatGauge({ label, value = 100, max = 100, valueText, figure, hideLabel, className, style, ...props }: StatGaugeProps) {\n const ratio = clamp(value / (max || 1));\n const words = valueText ?? `${Math.round(ratio * 100)} %`;\n return (\n <div\n role=\"meter\"\n aria-label={label}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuenow={Math.round(ratio * 100)}\n aria-valuetext={words}\n className={cn(\"kzs-stat\", className)}\n style={{ \"--kzs-ratio\": ratio, ...style } as React.CSSProperties}\n {...props}\n >\n {!hideLabel && (\n <span className=\"kzs-stat-head\" aria-hidden>\n <span className=\"kzs-stat-label\">{label}</span>\n <span className=\"kzs-stat-value\">{figure ?? words}</span>\n </span>\n )}\n <span className=\"kzs-bar\" aria-hidden>\n <span className=\"kzs-bar-fill\" />\n </span>\n </div>\n );\n}\n","// Server-safe. A profile at a glance (story.css): a portrait, a name, one headline gauge, a few stats, a line — a creator,\n// a match, a plan, a team member. In a `Scene` of a `ScrollStage` the card arrives and its gauges fill, once.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { brandClass, type StoryVariant, storyVariantClass } from \"../story-variant\";\nimport { StatGauge } from \"./stat-gauge\";\n\nexport interface ProfileStat {\n /** What it measures (“Response rate”) — passed translated. */\n label: string;\n /** The value, between 0 and `max`. */\n value: number;\n /** The top of the range (default 100). */\n max?: number;\n /** The value in words (“92 %”, “4.8 / 5”); default: the percentage. */\n valueText?: string;\n}\n\nexport type ProfileCardProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The portrait: an image, an avatar, a mark. Decorative — the name carries the meaning. */\n visual: React.ReactNode;\n /** The name (the card's heading). */\n name: React.ReactNode;\n /**\n * The level of the name.\n * @default \"h3\"\n */\n nameAs?: \"h2\" | \"h3\" | \"h4\" | \"p\";\n /** A small glyph before the name (decorative): a verified mark, an emblem. */\n icon?: React.ReactNode;\n /** The headline gauge's label (“Profile complete”, arcade “Power”); without it, no headline gauge. */\n statLabel?: string;\n /**\n * The headline gauge's value, 0–100.\n * @default 100\n */\n value?: number;\n /** The headline value in words; default: the percentage. */\n valueText?: string;\n /** What shows as the headline figure instead of `valueText`: a `NumberTicker` that climbs. Decorative. */\n figure?: React.ReactNode;\n /** More gauges under the headline one: two to four, each with its value in words. */\n stats?: readonly ProfileStat[];\n /** One line under the gauges: where they come from, what they do. */\n caption?: React.ReactNode;\n /** Under everything: actions (follow, message), chips. */\n children?: React.ReactNode;\n /**\n * The diameter of the portrait, in pixels.\n * @default 132 (arcade 196)\n */\n visualSize?: number;\n /**\n * `default`: a sober card. `arcade`: the fighter card — the brand's light, a ring and a breathing aura, a skewed gauge.\n * @default \"default\"\n */\n variant?: StoryVariant;\n /** A brand scope (`orazaka` → `.brand-orazaka`): the accent and gradient become that brand's. */\n brand?: string;\n};\n\n/** A profile at a glance: portrait, name, a headline gauge, stats with their values in words, a line and actions. */\nexport function ProfileCard({\n visual,\n name,\n nameAs: Name = \"h3\",\n icon,\n statLabel,\n value = 100,\n valueText,\n figure,\n stats,\n caption,\n children,\n visualSize,\n variant,\n brand,\n className,\n style,\n ...props\n}: ProfileCardProps) {\n return (\n <article\n className={cn(\"kzs-profile\", storyVariantClass(variant), brandClass(brand), className)}\n style={visualSize ? ({ \"--kzs-disc\": `${visualSize}px`, ...style } as React.CSSProperties) : style}\n {...props}\n >\n <span className=\"kzs-texture\" aria-hidden />\n <div className=\"kzs-profile-disc\" aria-hidden>\n <span className=\"kzs-profile-ring\" />\n <span className=\"kzs-profile-aura kzs-loop\" />\n <span className=\"kzs-profile-flash\" />\n <span className=\"kzs-profile-visual\">{visual}</span>\n </div>\n <Name className=\"kzs-profile-name\">\n {icon && <span aria-hidden>{icon}</span>}\n {name}\n </Name>\n {statLabel && <StatGauge label={statLabel} value={value} valueText={valueText} figure={figure} />}\n {stats && stats.length > 0 && (\n <ul className=\"kzs-profile-stats\">\n {stats.map((s) => (\n <li key={s.label}>\n <StatGauge label={s.label} value={s.value} max={s.max} valueText={s.valueText} />\n </li>\n ))}\n </ul>\n )}\n {caption && <p className=\"kzs-profile-caption\">{caption}</p>}\n {children && <div className=\"kzs-profile-extra\">{children}</div>}\n </article>\n );\n}\n"],"mappings":";;;;;;;AAKA,SAAS,UAAU;AAyDb,SAEY,KAFZ;AApDC,IAAM,gBAAgB,GAAG;AAAA,EAC9B,OAAO;AAAA,IACL,MAAM;AAAA;AAAA,IAEN,OACE;AAAA,IAEF,OAAO;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA;AAAA,IAEV,QACE;AAAA,IAEF,MAAM;AAAA,IACN,SAAS;AAAA,IACT,UAAU;AAAA,IACV,OAAO;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AACF,CAAC;AACD,IAAM,IAAI,cAAc;AA2BjB,SAAS,cAAc,EAAE,QAAQ,QAAQ,SAAS,OAAO,SAAS,QAAQ,MAAM,QAAQ,MAAM,SAAS,OAAO,WAAW,GAAG,MAAM,GAAuB;AAC9J,SACE,qBAAC,aAAQ,WAAW,EAAE,KAAK,EAAE,WAAW,GAAG,WAAW,KAAK,GAAG,SAAS,EAAE,CAAC,GAAI,GAAG,OAC/E;AAAA,yBAAC,SAAI,cAAW,IAAG,WAAW,EAAE,MAAM,GACnC;AAAA;AAAA,MACA,SAAS,oBAAC,U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AAA,UAChC;AAAA,WACH;AAAA,QACC,aAAa,gBAAAA,KAAC,aAAU,OAAO,WAAW,OAAc,WAAsB,QAAgB;AAAA,QAC9F,SAAS,MAAM,SAAS,KACvB,gBAAAA,KAAC,QAAG,WAAU,qBACX,gBAAM,IAAI,CAACE,OACV,gBAAAF,KAAC,QACC,0BAAAA,KAAC,aAAU,OAAOE,GAAE,OAAO,OAAOA,GAAE,OAAO,KAAKA,GAAE,KAAK,WAAWA,GAAE,WAAW,KADxEA,GAAE,KAEX,CACD,GACH;AAAA,QAED,WAAW,gBAAAF,KAAC,OAAE,WAAU,uBAAuB,mBAAQ;AAAA,QACvD,YAAY,gBAAAA,KAAC,SAAI,WAAU,qBAAqB,UAAS;AAAA;AAAA;AAAA,EAC5D;AAEJ;","names":["jsx","jsxs","jsx","jsxs","s"]}
|
package/dist/promise-card.js
CHANGED
package/dist/quota-meter.js
CHANGED
package/dist/quota-meter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/quota-meter/quota-meter.tsx"],"sourcesContent":["// Server-safe. Space or time used against a plan: what is used in words, a Meter that turns amber then red, the sentence\n// that says what to do before the limit (and a status role once it matters), the small figures and the way out.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { Meter } from \"../meter\";\n\nexport const quotaMeter = tv({\n slots: {\n root: \"flex flex-col gap-2 rounded-2xl border border-border-default bg-surface-1 p-5\",\n head: \"flex items-center justify-between gap-3\",\n title: \"flex items-center gap-2 font-mono text-xs text-fg-secondary\",\n icon: \"inline-flex shrink-0 [&>svg]:h-3.5 [&>svg]:w-3.5\",\n plan: \"text-xs text-fg-secondary\",\n used: \"font-mono text-lg font-black text-fg\",\n status: \"flex items-start gap-1.5 text-xs leading-relaxed\",\n details: \"flex flex-wrap items-center justify-between gap-2 text-xs text-fg-secondary\",\n },\n variants: {\n level: {\n ok: { status: \"text-fg-secondary\" },\n warning: { status: \"text-fg-warning\" },\n critical: { status: \"text-fg-danger\" },\n full: { status: \"text-fg-danger\" },\n },\n },\n defaultVariants: { level: \"ok\" },\n});\n\nexport type QuotaLevel = \"ok\" | \"warning\" | \"critical\" | \"full\";\n\n/** Where the meter turns amber and red, as shares of the limit. */\nexport const QUOTA_THRESHOLDS = { low: 0.8, high: 0.95 } as const;\n\nexport type QuotaMeterProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** What is measured (`Storage`), with an optional icon before it. */\n title: React.ReactNode;\n /** A glyph before the title (decorative). */\n icon?: React.ReactNode;\n /** The plan's name, on the right of the title. */\n plan?: React.ReactNode;\n /** Used so far, in the unit of `max`. */\n value: number;\n /** The limit; `null` for no limit (no meter is drawn). */\n max: number | null;\n /** « 3.2 GB of 10 GB », said once for the eye and once for the meter's value. */\n usedText: string;\n /** The meter's accessible name. */\n meterLabel: string;\n /** Where the level stands: tones the sentence and gives an alarming one a status role. */\n level?: QuotaLevel;\n /** The sentence for that level (« You are close to your limit »). */\n statusText?: React.ReactNode;\n /** More sentences that matter (« 2 uploads on hold », « uploads are paused »), each a status. */\n notices?: readonly React.ReactNode[];\n /** Small figures under the meter (minutes, today's uploads). Left out when the card is compact. */\n details?: readonly React.ReactNode[];\n /** The way out, shown under the figures (a link to manage). */\n action?: React.ReactNode;\n /** Leaves out the footer (the small figures and the action): the title, the used line, the meter, the sentence and the notices stay. */\n compact?: boolean;\n};\n\nexport function QuotaMeter({ title, icon, plan, value, max, usedText, meterLabel, level = \"ok\", statusText, notices = [], details = [], action, compact = false, className, ...props }: QuotaMeterProps) {\n const s = quotaMeter({ level });\n const alarming = level !== \"ok\";\n const titleId = React.useId();\n return (\n <section aria-labelledby={titleId} className={s.root({ className })} {...props}>\n <div className={s.head()}>\n <h3 id={titleId} className={s.title()}>\n {icon && (\n <span aria-hidden className={s.icon()}>\n {icon}\n </span>\n )}\n {title}\n </h3>\n {plan && <span className={s.plan()}>{plan}</span>}\n </div>\n <p className={s.used()}>{usedText}</p>\n {max !== null && <Meter size=\"sm\" value={Math.min(value, max)} max={max} label={meterLabel} valueText={usedText} thresholds={QUOTA_THRESHOLDS} />}\n {statusText && (\n <p className={s.status()} role={alarming ? \"status\" : undefined}>\n {statusText}\n </p>\n )}\n {notices.map((n, i) => (\n <p key={i} className={quotaMeter({ level: \"critical\" }).status()} role=\"status\">\n {n}\n </p>\n ))}\n {!compact && (details.length > 0 || action) && (\n <div className={s.details()}>\n {details.map((d, i) => (\n <span key={i}>{d}</span>\n ))}\n {action}\n </div>\n )}\n </section>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/quota-meter/quota-meter.tsx"],"sourcesContent":["// Server-safe. Space or time used against a plan: what is used in words, a Meter that turns amber then red, the sentence\n// that says what to do before the limit (and a status role once it matters), the small figures and the way out.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { Meter } from \"../meter\";\n\nexport const quotaMeter = tv({\n slots: {\n root: \"flex flex-col gap-2 rounded-2xl border border-border-default bg-surface-1 p-5\",\n head: \"flex items-center justify-between gap-3\",\n title: \"flex items-center gap-2 font-mono text-xs text-fg-secondary\",\n icon: \"inline-flex shrink-0 [&>svg]:h-3.5 [&>svg]:w-3.5\",\n plan: \"text-xs text-fg-secondary\",\n used: \"font-mono text-lg font-black text-fg\",\n status: \"flex items-start gap-1.5 text-xs leading-relaxed\",\n details: \"flex flex-wrap items-center justify-between gap-2 text-xs text-fg-secondary\",\n },\n variants: {\n level: {\n ok: { status: \"text-fg-secondary\" },\n warning: { status: \"text-fg-warning\" },\n critical: { status: \"text-fg-danger\" },\n full: { status: \"text-fg-danger\" },\n },\n },\n defaultVariants: { level: \"ok\" },\n});\n\nexport type QuotaLevel = \"ok\" | \"warning\" | \"critical\" | \"full\";\n\n/** Where the meter turns amber and red, as shares of the limit. */\nexport const QUOTA_THRESHOLDS = { low: 0.8, high: 0.95 } as const;\n\nexport type QuotaMeterProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** What is measured (`Storage`), with an optional icon before it. */\n title: React.ReactNode;\n /** A glyph before the title (decorative). */\n icon?: React.ReactNode;\n /** The plan's name, on the right of the title. */\n plan?: React.ReactNode;\n /** Used so far, in the unit of `max`. */\n value: number;\n /** The limit; `null` for no limit (no meter is drawn). */\n max: number | null;\n /** « 3.2 GB of 10 GB », said once for the eye and once for the meter's value. */\n usedText: string;\n /** The meter's accessible name. */\n meterLabel: string;\n /** Where the level stands: tones the sentence and gives an alarming one a status role. */\n level?: QuotaLevel;\n /** The sentence for that level (« You are close to your limit »). */\n statusText?: React.ReactNode;\n /** More sentences that matter (« 2 uploads on hold », « uploads are paused »), each a status. */\n notices?: readonly React.ReactNode[];\n /** Small figures under the meter (minutes, today's uploads). Left out when the card is compact. */\n details?: readonly React.ReactNode[];\n /** The way out, shown under the figures (a link to manage). */\n action?: React.ReactNode;\n /** Leaves out the footer (the small figures and the action): the title, the used line, the meter, the sentence and the notices stay. */\n compact?: boolean;\n};\n\nexport function QuotaMeter({ title, icon, plan, value, max, usedText, meterLabel, level = \"ok\", statusText, notices = [], details = [], action, compact = false, className, ...props }: QuotaMeterProps) {\n const s = quotaMeter({ level });\n const alarming = level !== \"ok\";\n const titleId = React.useId();\n return (\n <section aria-labelledby={titleId} className={s.root({ className })} {...props}>\n <div className={s.head()}>\n <h3 id={titleId} className={s.title()}>\n {icon && (\n <span aria-hidden className={s.icon()}>\n {icon}\n </span>\n )}\n {title}\n </h3>\n {plan && <span className={s.plan()}>{plan}</span>}\n </div>\n <p className={s.used()}>{usedText}</p>\n {max !== null && <Meter size=\"sm\" value={Math.min(value, max)} max={max} label={meterLabel} valueText={usedText} thresholds={QUOTA_THRESHOLDS} />}\n {statusText && (\n <p className={s.status()} role={alarming ? \"status\" : undefined}>\n {statusText}\n </p>\n )}\n {notices.map((n, i) => (\n <p key={i} className={quotaMeter({ level: \"critical\" }).status()} role=\"status\">\n {n}\n </p>\n ))}\n {!compact && (details.length > 0 || action) && (\n <div className={s.details()}>\n {details.map((d, i) => (\n <span key={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K;AAAA,OAC5C;AAAA,IACA,oBAAC,OAAE,WAAW,EAAE,KAAK,GAAI,oBAAS;AAAA,IACjC,QAAQ,QAAQ,oBAAC,SAAM,MAAK,MAAK,OAAO,KAAK,IAAI,OAAO,GAAG,GAAG,KAAU,OAAO,YAAY,WAAW,UAAU,YAAY,kBAAkB;AAAA,IAC9I,cACC,oBAAC,OAAE,WAAW,EAAE,OAAO,GAAG,MAAM,WAAW,WAAW,QACnD,sBACH;AAAA,IAED,QAAQ,IAAI,CAAC,GAAG,MACf,oBAAC,OAAU,WAAW,WAAW,EAAE,OAAO,WAAW,CAAC,EAAE,OAAO,GAAG,MAAK,UACpE,eADK,CAER,CACD;AAAA,IACA,CAAC,YAAY,QAAQ,SAAS,KAAK,WAClC,qBAAC,SAAI,WAAW,EAAE,QAAQ,GACvB;AAAA,cAAQ,IAAI,CAAC,GAAG,MACf,oBAAC,UAAc,eAAJ,CAAM,CAClB;AAAA,MACA;AAAA,OACH;AAAA,KAEJ;AAEJ;","names":[]}
|
package/dist/rail-nav.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A Krizaka brand. `orochia`, `yasakia`, `yororis` and `kachizaka` are paused products, kept so nothing published
|
|
6
|
+
* breaks — see `PausedBrandId`.
|
|
7
|
+
*/
|
|
4
8
|
type BrandId = "krizaka" | "orazaka" | "orochia" | "yasakia" | "yororis" | "yomizaka" | "kachizaka" | "akinaza";
|
|
5
9
|
|
|
6
10
|
declare const railNav: tailwind_variants.TVReturnType<{
|
package/dist/retro-tv.d.ts
CHANGED
|
@@ -3,7 +3,11 @@ import { VideoPlayerProps } from './video-player.js';
|
|
|
3
3
|
import 'tailwind-variants';
|
|
4
4
|
|
|
5
5
|
/** A vertical video in a CSS-and-SVG television cabinet. */
|
|
6
|
-
interface RetroTvProps extends Omit<VideoPlayerProps, "aspectRatio" | "autoPlay" | "className" | "loop" | "muted" | "preload"> {
|
|
6
|
+
interface RetroTvProps extends Omit<VideoPlayerProps, "aspectRatio" | "autoPlay" | "className" | "loop" | "muted" | "preload" | "src"> {
|
|
7
|
+
/** The video's address. Optional when the screen shows `children`. */
|
|
8
|
+
src?: VideoPlayerProps["src"];
|
|
9
|
+
/** What the screen shows instead of the video player: an `EmbedFacade` for a platform's short video. */
|
|
10
|
+
children?: React.ReactNode;
|
|
7
11
|
/** The cabinet style. */
|
|
8
12
|
variant?: "cabinet" | "portable";
|
|
9
13
|
/** A short channel label shown on the cabinet, for example `"CH 3 · Plateau"`. */
|
|
@@ -23,9 +27,8 @@ interface RetroTvProps extends Omit<VideoPlayerProps, "aspectRatio" | "autoPlay"
|
|
|
23
27
|
}
|
|
24
28
|
/**
|
|
25
29
|
* A vertical video presented in an old-school television; the existing player remains fully accessible.
|
|
26
|
-
* @deprecated Since 3.55 (ADR-006, krizaka-ui#674): no product uses it. Removed in 4.0.
|
|
27
30
|
*/
|
|
28
|
-
declare function RetroTv({ variant, channel, off, autoPlay, muted, loop, preload, className, ...playerProps }: RetroTvProps): React.JSX.Element;
|
|
31
|
+
declare function RetroTv({ variant, channel, off, autoPlay, muted, loop, preload, className, children, src, ...playerProps }: RetroTvProps): React.JSX.Element;
|
|
29
32
|
|
|
30
33
|
export { RetroTv };
|
|
31
34
|
export type { RetroTvProps };
|