@nanisoft/prism-ui 0.13.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES.md +22 -7
- package/dist/.tsbuildinfo +1 -1
- package/dist/blocks/about-01/about.d.ts +296 -0
- package/dist/blocks/about-01/about.d.ts.map +1 -0
- package/dist/blocks/about-01/about.js +103 -0
- package/dist/blocks/about-01/index.d.ts +3 -0
- package/dist/blocks/about-01/index.d.ts.map +1 -0
- package/dist/blocks/about-01/index.js +1 -0
- package/dist/blocks/accept-invite-01/accept-invite.d.ts +324 -0
- package/dist/blocks/accept-invite-01/accept-invite.d.ts.map +1 -0
- package/dist/blocks/accept-invite-01/accept-invite.js +230 -0
- package/dist/blocks/accept-invite-01/index.d.ts +3 -0
- package/dist/blocks/accept-invite-01/index.d.ts.map +1 -0
- package/dist/blocks/accept-invite-01/index.js +1 -0
- package/dist/blocks/account-01/account-01.d.ts +393 -0
- package/dist/blocks/account-01/account-01.d.ts.map +1 -0
- package/dist/blocks/account-01/account-01.js +215 -0
- package/dist/blocks/account-01/index.d.ts +3 -0
- package/dist/blocks/account-01/index.d.ts.map +1 -0
- package/dist/blocks/account-01/index.js +1 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.d.ts +271 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.d.ts.map +1 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.js +185 -0
- package/dist/blocks/activity-feed-01/index.d.ts +3 -0
- package/dist/blocks/activity-feed-01/index.d.ts.map +1 -0
- package/dist/blocks/activity-feed-01/index.js +1 -0
- package/dist/blocks/address-book-01/address-book-01.d.ts +312 -0
- package/dist/blocks/address-book-01/address-book-01.d.ts.map +1 -0
- package/dist/blocks/address-book-01/address-book-01.js +233 -0
- package/dist/blocks/address-book-01/index.d.ts +3 -0
- package/dist/blocks/address-book-01/index.d.ts.map +1 -0
- package/dist/blocks/address-book-01/index.js +1 -0
- package/dist/blocks/audit-log-01/audit-log-01.d.ts +333 -0
- package/dist/blocks/audit-log-01/audit-log-01.d.ts.map +1 -0
- package/dist/blocks/audit-log-01/audit-log-01.js +211 -0
- package/dist/blocks/audit-log-01/index.d.ts +3 -0
- package/dist/blocks/audit-log-01/index.d.ts.map +1 -0
- package/dist/blocks/audit-log-01/index.js +1 -0
- package/dist/blocks/auth-form-01/auth-form.d.ts +40 -1
- package/dist/blocks/auth-form-01/auth-form.d.ts.map +1 -1
- package/dist/blocks/auth-form-01/auth-form.js +26 -3
- package/dist/blocks/awards-01/awards.d.ts +156 -0
- package/dist/blocks/awards-01/awards.d.ts.map +1 -0
- package/dist/blocks/awards-01/awards.js +102 -0
- package/dist/blocks/awards-01/index.d.ts +3 -0
- package/dist/blocks/awards-01/index.d.ts.map +1 -0
- package/dist/blocks/awards-01/index.js +1 -0
- package/dist/blocks/backdrop-01/backdrop.d.ts +268 -0
- package/dist/blocks/backdrop-01/backdrop.d.ts.map +1 -0
- package/dist/blocks/backdrop-01/backdrop.js +170 -0
- package/dist/blocks/backdrop-01/index.d.ts +3 -0
- package/dist/blocks/backdrop-01/index.d.ts.map +1 -0
- package/dist/blocks/backdrop-01/index.js +1 -0
- package/dist/blocks/bento-01/bento-01.d.ts +136 -0
- package/dist/blocks/bento-01/bento-01.d.ts.map +1 -0
- package/dist/blocks/bento-01/bento-01.js +97 -0
- package/dist/blocks/bento-01/index.d.ts +3 -0
- package/dist/blocks/bento-01/index.d.ts.map +1 -0
- package/dist/blocks/bento-01/index.js +1 -0
- package/dist/blocks/billing-source-01/billing-source-01.d.ts +379 -0
- package/dist/blocks/billing-source-01/billing-source-01.d.ts.map +1 -0
- package/dist/blocks/billing-source-01/billing-source-01.js +222 -0
- package/dist/blocks/billing-source-01/index.d.ts +3 -0
- package/dist/blocks/billing-source-01/index.d.ts.map +1 -0
- package/dist/blocks/billing-source-01/index.js +1 -0
- package/dist/blocks/bundle-01/bundle.d.ts +387 -0
- package/dist/blocks/bundle-01/bundle.d.ts.map +1 -0
- package/dist/blocks/bundle-01/bundle.js +153 -0
- package/dist/blocks/bundle-01/index.d.ts +3 -0
- package/dist/blocks/bundle-01/index.d.ts.map +1 -0
- package/dist/blocks/bundle-01/index.js +1 -0
- package/dist/blocks/calendar-01/calendar.d.ts +251 -0
- package/dist/blocks/calendar-01/calendar.d.ts.map +1 -0
- package/dist/blocks/calendar-01/calendar.js +191 -0
- package/dist/blocks/calendar-01/index.d.ts +3 -0
- package/dist/blocks/calendar-01/index.d.ts.map +1 -0
- package/dist/blocks/calendar-01/index.js +1 -0
- package/dist/blocks/capacity-01/capacity.d.ts +363 -0
- package/dist/blocks/capacity-01/capacity.d.ts.map +1 -0
- package/dist/blocks/capacity-01/capacity.js +208 -0
- package/dist/blocks/capacity-01/index.d.ts +3 -0
- package/dist/blocks/capacity-01/index.d.ts.map +1 -0
- package/dist/blocks/capacity-01/index.js +1 -0
- package/dist/blocks/careers-01/careers.d.ts +186 -0
- package/dist/blocks/careers-01/careers.d.ts.map +1 -0
- package/dist/blocks/careers-01/careers.js +83 -0
- package/dist/blocks/careers-01/index.d.ts +3 -0
- package/dist/blocks/careers-01/index.d.ts.map +1 -0
- package/dist/blocks/careers-01/index.js +1 -0
- package/dist/blocks/case-studies-01/case-studies.d.ts +192 -0
- package/dist/blocks/case-studies-01/case-studies.d.ts.map +1 -0
- package/dist/blocks/case-studies-01/case-studies.js +97 -0
- package/dist/blocks/case-studies-01/index.d.ts +3 -0
- package/dist/blocks/case-studies-01/index.d.ts.map +1 -0
- package/dist/blocks/case-studies-01/index.js +1 -0
- package/dist/blocks/case-study-01/case-study.d.ts +214 -0
- package/dist/blocks/case-study-01/case-study.d.ts.map +1 -0
- package/dist/blocks/case-study-01/case-study.js +79 -0
- package/dist/blocks/case-study-01/index.d.ts +3 -0
- package/dist/blocks/case-study-01/index.d.ts.map +1 -0
- package/dist/blocks/case-study-01/index.js +1 -0
- package/dist/blocks/changelog-01/changelog.d.ts +200 -0
- package/dist/blocks/changelog-01/changelog.d.ts.map +1 -0
- package/dist/blocks/changelog-01/changelog.js +155 -0
- package/dist/blocks/changelog-01/index.d.ts +3 -0
- package/dist/blocks/changelog-01/index.d.ts.map +1 -0
- package/dist/blocks/changelog-01/index.js +1 -0
- package/dist/blocks/chart-card-01/chart-card-01.d.ts +149 -0
- package/dist/blocks/chart-card-01/chart-card-01.d.ts.map +1 -0
- package/dist/blocks/chart-card-01/chart-card-01.js +81 -0
- package/dist/blocks/chart-card-01/index.d.ts +3 -0
- package/dist/blocks/chart-card-01/index.d.ts.map +1 -0
- package/dist/blocks/chart-card-01/index.js +1 -0
- package/dist/blocks/chart-group-01/chart-group-01.d.ts +138 -0
- package/dist/blocks/chart-group-01/chart-group-01.d.ts.map +1 -0
- package/dist/blocks/chart-group-01/chart-group-01.js +74 -0
- package/dist/blocks/chart-group-01/index.d.ts +3 -0
- package/dist/blocks/chart-group-01/index.d.ts.map +1 -0
- package/dist/blocks/chart-group-01/index.js +1 -0
- package/dist/blocks/code-sample-01/code-sample.d.ts +193 -0
- package/dist/blocks/code-sample-01/code-sample.d.ts.map +1 -0
- package/dist/blocks/code-sample-01/code-sample.js +104 -0
- package/dist/blocks/code-sample-01/index.d.ts +3 -0
- package/dist/blocks/code-sample-01/index.d.ts.map +1 -0
- package/dist/blocks/code-sample-01/index.js +1 -0
- package/dist/blocks/community-01/community.d.ts +183 -0
- package/dist/blocks/community-01/community.d.ts.map +1 -0
- package/dist/blocks/community-01/community.js +102 -0
- package/dist/blocks/community-01/index.d.ts +3 -0
- package/dist/blocks/community-01/index.d.ts.map +1 -0
- package/dist/blocks/community-01/index.js +1 -0
- package/dist/blocks/compare-01/compare.d.ts +184 -0
- package/dist/blocks/compare-01/compare.d.ts.map +1 -0
- package/dist/blocks/compare-01/compare.js +106 -0
- package/dist/blocks/compare-01/index.d.ts +3 -0
- package/dist/blocks/compare-01/index.d.ts.map +1 -0
- package/dist/blocks/compare-01/index.js +1 -0
- package/dist/blocks/compliance-01/compliance.d.ts +249 -0
- package/dist/blocks/compliance-01/compliance.d.ts.map +1 -0
- package/dist/blocks/compliance-01/compliance.js +130 -0
- package/dist/blocks/compliance-01/index.d.ts +3 -0
- package/dist/blocks/compliance-01/index.d.ts.map +1 -0
- package/dist/blocks/compliance-01/index.js +1 -0
- package/dist/blocks/consent-01/consent.d.ts +211 -0
- package/dist/blocks/consent-01/consent.d.ts.map +1 -0
- package/dist/blocks/consent-01/consent.js +101 -0
- package/dist/blocks/consent-01/index.d.ts +3 -0
- package/dist/blocks/consent-01/index.d.ts.map +1 -0
- package/dist/blocks/consent-01/index.js +1 -0
- package/dist/blocks/contact-01/contact.d.ts +319 -0
- package/dist/blocks/contact-01/contact.d.ts.map +1 -0
- package/dist/blocks/contact-01/contact.js +211 -0
- package/dist/blocks/contact-01/index.d.ts +3 -0
- package/dist/blocks/contact-01/index.d.ts.map +1 -0
- package/dist/blocks/contact-01/index.js +1 -0
- package/dist/blocks/content-grid-01/content-grid.d.ts +262 -0
- package/dist/blocks/content-grid-01/content-grid.d.ts.map +1 -0
- package/dist/blocks/content-grid-01/content-grid.js +155 -0
- package/dist/blocks/content-grid-01/index.d.ts +3 -0
- package/dist/blocks/content-grid-01/index.d.ts.map +1 -0
- package/dist/blocks/content-grid-01/index.js +1 -0
- package/dist/blocks/cta-01/cta.d.ts +7 -1
- package/dist/blocks/cta-01/cta.d.ts.map +1 -1
- package/dist/blocks/cta-01/cta.js +11 -2
- package/dist/blocks/dashboard-01/dashboard-01.d.ts +247 -0
- package/dist/blocks/dashboard-01/dashboard-01.d.ts.map +1 -0
- package/dist/blocks/dashboard-01/dashboard-01.js +141 -0
- package/dist/blocks/dashboard-01/index.d.ts +3 -0
- package/dist/blocks/dashboard-01/index.d.ts.map +1 -0
- package/dist/blocks/dashboard-01/index.js +1 -0
- package/dist/blocks/data-table-01/data-table.d.ts +22 -1
- package/dist/blocks/data-table-01/data-table.d.ts.map +1 -1
- package/dist/blocks/data-table-01/data-table.js +9 -5
- package/dist/blocks/delivery-01/delivery.d.ts +343 -0
- package/dist/blocks/delivery-01/delivery.d.ts.map +1 -0
- package/dist/blocks/delivery-01/delivery.js +212 -0
- package/dist/blocks/delivery-01/index.d.ts +3 -0
- package/dist/blocks/delivery-01/index.d.ts.map +1 -0
- package/dist/blocks/delivery-01/index.js +1 -0
- package/dist/blocks/directory-01/directory-01.d.ts +316 -0
- package/dist/blocks/directory-01/directory-01.d.ts.map +1 -0
- package/dist/blocks/directory-01/directory-01.js +252 -0
- package/dist/blocks/directory-01/index.d.ts +3 -0
- package/dist/blocks/directory-01/index.d.ts.map +1 -0
- package/dist/blocks/directory-01/index.js +1 -0
- package/dist/blocks/download-01/download.d.ts +261 -0
- package/dist/blocks/download-01/download.d.ts.map +1 -0
- package/dist/blocks/download-01/download.js +115 -0
- package/dist/blocks/download-01/index.d.ts +3 -0
- package/dist/blocks/download-01/index.d.ts.map +1 -0
- package/dist/blocks/download-01/index.js +1 -0
- package/dist/blocks/faq-01/faq.d.ts +128 -0
- package/dist/blocks/faq-01/faq.d.ts.map +1 -0
- package/dist/blocks/faq-01/faq.js +53 -0
- package/dist/blocks/faq-01/index.d.ts +3 -0
- package/dist/blocks/faq-01/index.d.ts.map +1 -0
- package/dist/blocks/faq-01/index.js +1 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.d.ts +158 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.d.ts.map +1 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.js +81 -0
- package/dist/blocks/feature-rows-01/index.d.ts +3 -0
- package/dist/blocks/feature-rows-01/index.d.ts.map +1 -0
- package/dist/blocks/feature-rows-01/index.js +1 -0
- package/dist/blocks/feedback-01/feedback.d.ts +235 -0
- package/dist/blocks/feedback-01/feedback.d.ts.map +1 -0
- package/dist/blocks/feedback-01/feedback.js +113 -0
- package/dist/blocks/feedback-01/index.d.ts +3 -0
- package/dist/blocks/feedback-01/index.d.ts.map +1 -0
- package/dist/blocks/feedback-01/index.js +1 -0
- package/dist/blocks/field-map-01/field-map.d.ts +247 -0
- package/dist/blocks/field-map-01/field-map.d.ts.map +1 -0
- package/dist/blocks/field-map-01/field-map.js +183 -0
- package/dist/blocks/field-map-01/index.d.ts +3 -0
- package/dist/blocks/field-map-01/index.d.ts.map +1 -0
- package/dist/blocks/field-map-01/index.js +1 -0
- package/dist/blocks/forgot-password-01/forgot-password.d.ts +288 -0
- package/dist/blocks/forgot-password-01/forgot-password.d.ts.map +1 -0
- package/dist/blocks/forgot-password-01/forgot-password.js +190 -0
- package/dist/blocks/forgot-password-01/index.d.ts +3 -0
- package/dist/blocks/forgot-password-01/index.d.ts.map +1 -0
- package/dist/blocks/forgot-password-01/index.js +1 -0
- package/dist/blocks/gallery-01/gallery.d.ts +208 -0
- package/dist/blocks/gallery-01/gallery.d.ts.map +1 -0
- package/dist/blocks/gallery-01/gallery.js +174 -0
- package/dist/blocks/gallery-01/index.d.ts +3 -0
- package/dist/blocks/gallery-01/index.d.ts.map +1 -0
- package/dist/blocks/gallery-01/index.js +1 -0
- package/dist/blocks/gantt-01/gantt.d.ts +290 -0
- package/dist/blocks/gantt-01/gantt.d.ts.map +1 -0
- package/dist/blocks/gantt-01/gantt.js +224 -0
- package/dist/blocks/gantt-01/index.d.ts +3 -0
- package/dist/blocks/gantt-01/index.d.ts.map +1 -0
- package/dist/blocks/gantt-01/index.js +1 -0
- package/dist/blocks/handoff-01/handoff-01.d.ts +326 -0
- package/dist/blocks/handoff-01/handoff-01.d.ts.map +1 -0
- package/dist/blocks/handoff-01/handoff-01.js +180 -0
- package/dist/blocks/handoff-01/index.d.ts +3 -0
- package/dist/blocks/handoff-01/index.d.ts.map +1 -0
- package/dist/blocks/handoff-01/index.js +1 -0
- package/dist/blocks/help-01/help.d.ts +254 -0
- package/dist/blocks/help-01/help.d.ts.map +1 -0
- package/dist/blocks/help-01/help.js +188 -0
- package/dist/blocks/help-01/index.d.ts +3 -0
- package/dist/blocks/help-01/index.d.ts.map +1 -0
- package/dist/blocks/help-01/index.js +1 -0
- package/dist/blocks/hero-01/hero.d.ts +105 -34
- package/dist/blocks/hero-01/hero.d.ts.map +1 -1
- package/dist/blocks/hero-01/hero.js +23 -15
- package/dist/blocks/hero-01/index.d.ts +1 -1
- package/dist/blocks/hero-01/index.d.ts.map +1 -1
- package/dist/blocks/hero-02/hero-02.d.ts +244 -0
- package/dist/blocks/hero-02/hero-02.d.ts.map +1 -0
- package/dist/blocks/hero-02/hero-02.js +87 -0
- package/dist/blocks/hero-02/index.d.ts +3 -0
- package/dist/blocks/hero-02/index.d.ts.map +1 -0
- package/dist/blocks/hero-02/index.js +1 -0
- package/dist/blocks/hero-03/hero-03.d.ts +247 -0
- package/dist/blocks/hero-03/hero-03.d.ts.map +1 -0
- package/dist/blocks/hero-03/hero-03.js +93 -0
- package/dist/blocks/hero-03/index.d.ts +3 -0
- package/dist/blocks/hero-03/index.d.ts.map +1 -0
- package/dist/blocks/hero-03/index.js +1 -0
- package/dist/blocks/history-01/history-01.d.ts +414 -0
- package/dist/blocks/history-01/history-01.d.ts.map +1 -0
- package/dist/blocks/history-01/history-01.js +285 -0
- package/dist/blocks/history-01/index.d.ts +3 -0
- package/dist/blocks/history-01/index.d.ts.map +1 -0
- package/dist/blocks/history-01/index.js +1 -0
- package/dist/blocks/inbox-01/inbox.d.ts +349 -0
- package/dist/blocks/inbox-01/inbox.d.ts.map +1 -0
- package/dist/blocks/inbox-01/inbox.js +244 -0
- package/dist/blocks/inbox-01/index.d.ts +3 -0
- package/dist/blocks/inbox-01/index.d.ts.map +1 -0
- package/dist/blocks/inbox-01/index.js +1 -0
- package/dist/blocks/index.d.ts +203 -0
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/blocks/index.js +118 -0
- package/dist/blocks/industries-01/index.d.ts +3 -0
- package/dist/blocks/industries-01/index.d.ts.map +1 -0
- package/dist/blocks/industries-01/index.js +1 -0
- package/dist/blocks/industries-01/industries.d.ts +164 -0
- package/dist/blocks/industries-01/industries.d.ts.map +1 -0
- package/dist/blocks/industries-01/industries.js +96 -0
- package/dist/blocks/intake-01/index.d.ts +3 -0
- package/dist/blocks/intake-01/index.d.ts.map +1 -0
- package/dist/blocks/intake-01/index.js +1 -0
- package/dist/blocks/intake-01/intake-01.d.ts +305 -0
- package/dist/blocks/intake-01/intake-01.d.ts.map +1 -0
- package/dist/blocks/intake-01/intake-01.js +178 -0
- package/dist/blocks/integration-01/index.d.ts +3 -0
- package/dist/blocks/integration-01/index.d.ts.map +1 -0
- package/dist/blocks/integration-01/index.js +1 -0
- package/dist/blocks/integration-01/integration.d.ts +226 -0
- package/dist/blocks/integration-01/integration.d.ts.map +1 -0
- package/dist/blocks/integration-01/integration.js +170 -0
- package/dist/blocks/invite-user-01/index.d.ts +3 -0
- package/dist/blocks/invite-user-01/index.d.ts.map +1 -0
- package/dist/blocks/invite-user-01/index.js +1 -0
- package/dist/blocks/invite-user-01/invite-user.d.ts +317 -0
- package/dist/blocks/invite-user-01/invite-user.d.ts.map +1 -0
- package/dist/blocks/invite-user-01/invite-user.js +228 -0
- package/dist/blocks/issue-detail-01/index.d.ts +3 -0
- package/dist/blocks/issue-detail-01/index.d.ts.map +1 -0
- package/dist/blocks/issue-detail-01/index.js +1 -0
- package/dist/blocks/issue-detail-01/issue-detail.d.ts +355 -0
- package/dist/blocks/issue-detail-01/issue-detail.d.ts.map +1 -0
- package/dist/blocks/issue-detail-01/issue-detail.js +187 -0
- package/dist/blocks/issue-list-01/index.d.ts +3 -0
- package/dist/blocks/issue-list-01/index.d.ts.map +1 -0
- package/dist/blocks/issue-list-01/index.js +1 -0
- package/dist/blocks/issue-list-01/issue-list.d.ts +298 -0
- package/dist/blocks/issue-list-01/issue-list.d.ts.map +1 -0
- package/dist/blocks/issue-list-01/issue-list.js +284 -0
- package/dist/blocks/kanban-01/index.d.ts +3 -0
- package/dist/blocks/kanban-01/index.d.ts.map +1 -0
- package/dist/blocks/kanban-01/index.js +1 -0
- package/dist/blocks/kanban-01/kanban.d.ts +278 -0
- package/dist/blocks/kanban-01/kanban.d.ts.map +1 -0
- package/dist/blocks/kanban-01/kanban.js +144 -0
- package/dist/blocks/leaderboard-01/index.d.ts +3 -0
- package/dist/blocks/leaderboard-01/index.d.ts.map +1 -0
- package/dist/blocks/leaderboard-01/index.js +1 -0
- package/dist/blocks/leaderboard-01/leaderboard.d.ts +250 -0
- package/dist/blocks/leaderboard-01/leaderboard.d.ts.map +1 -0
- package/dist/blocks/leaderboard-01/leaderboard.js +121 -0
- package/dist/blocks/login-01/index.d.ts +3 -0
- package/dist/blocks/login-01/index.d.ts.map +1 -0
- package/dist/blocks/login-01/index.js +1 -0
- package/dist/blocks/login-01/login-01.d.ts +356 -0
- package/dist/blocks/login-01/login-01.d.ts.map +1 -0
- package/dist/blocks/login-01/login-01.js +249 -0
- package/dist/blocks/logo-cloud-01/index.d.ts +3 -0
- package/dist/blocks/logo-cloud-01/index.d.ts.map +1 -0
- package/dist/blocks/logo-cloud-01/index.js +1 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.d.ts +181 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.d.ts.map +1 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.js +118 -0
- package/dist/blocks/magic-link-01/index.d.ts +3 -0
- package/dist/blocks/magic-link-01/index.d.ts.map +1 -0
- package/dist/blocks/magic-link-01/index.js +1 -0
- package/dist/blocks/magic-link-01/magic-link-01.d.ts +367 -0
- package/dist/blocks/magic-link-01/magic-link-01.d.ts.map +1 -0
- package/dist/blocks/magic-link-01/magic-link-01.js +233 -0
- package/dist/blocks/member-list-01/index.d.ts +3 -0
- package/dist/blocks/member-list-01/index.d.ts.map +1 -0
- package/dist/blocks/member-list-01/index.js +1 -0
- package/dist/blocks/member-list-01/member-list.d.ts +192 -0
- package/dist/blocks/member-list-01/member-list.d.ts.map +1 -0
- package/dist/blocks/member-list-01/member-list.js +142 -0
- package/dist/blocks/milestone-timeline-01/index.d.ts +3 -0
- package/dist/blocks/milestone-timeline-01/index.d.ts.map +1 -0
- package/dist/blocks/milestone-timeline-01/index.js +1 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.d.ts +217 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.d.ts.map +1 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.js +173 -0
- package/dist/blocks/newsletter-01/index.d.ts +3 -0
- package/dist/blocks/newsletter-01/index.d.ts.map +1 -0
- package/dist/blocks/newsletter-01/index.js +1 -0
- package/dist/blocks/newsletter-01/newsletter.d.ts +216 -0
- package/dist/blocks/newsletter-01/newsletter.d.ts.map +1 -0
- package/dist/blocks/newsletter-01/newsletter.js +102 -0
- package/dist/blocks/notification-center-01/index.d.ts +3 -0
- package/dist/blocks/notification-center-01/index.d.ts.map +1 -0
- package/dist/blocks/notification-center-01/index.js +1 -0
- package/dist/blocks/notification-center-01/notification-center-01.d.ts +341 -0
- package/dist/blocks/notification-center-01/notification-center-01.d.ts.map +1 -0
- package/dist/blocks/notification-center-01/notification-center-01.js +203 -0
- package/dist/blocks/offer-01/index.d.ts +3 -0
- package/dist/blocks/offer-01/index.d.ts.map +1 -0
- package/dist/blocks/offer-01/index.js +1 -0
- package/dist/blocks/offer-01/offer.d.ts +139 -0
- package/dist/blocks/offer-01/offer.d.ts.map +1 -0
- package/dist/blocks/offer-01/offer.js +81 -0
- package/dist/blocks/offering-01/index.d.ts +3 -0
- package/dist/blocks/offering-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-01/index.js +1 -0
- package/dist/blocks/offering-01/offering.d.ts +245 -0
- package/dist/blocks/offering-01/offering.d.ts.map +1 -0
- package/dist/blocks/offering-01/offering.js +144 -0
- package/dist/blocks/offering-categories-01/index.d.ts +3 -0
- package/dist/blocks/offering-categories-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-categories-01/index.js +1 -0
- package/dist/blocks/offering-categories-01/offering-categories.d.ts +248 -0
- package/dist/blocks/offering-categories-01/offering-categories.d.ts.map +1 -0
- package/dist/blocks/offering-categories-01/offering-categories.js +153 -0
- package/dist/blocks/offering-list-01/index.d.ts +3 -0
- package/dist/blocks/offering-list-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-list-01/index.js +1 -0
- package/dist/blocks/offering-list-01/offering-list.d.ts +362 -0
- package/dist/blocks/offering-list-01/offering-list.d.ts.map +1 -0
- package/dist/blocks/offering-list-01/offering-list.js +366 -0
- package/dist/blocks/onboarding-01/index.d.ts +3 -0
- package/dist/blocks/onboarding-01/index.d.ts.map +1 -0
- package/dist/blocks/onboarding-01/index.js +1 -0
- package/dist/blocks/onboarding-01/onboarding.d.ts +199 -0
- package/dist/blocks/onboarding-01/onboarding.d.ts.map +1 -0
- package/dist/blocks/onboarding-01/onboarding.js +182 -0
- package/dist/blocks/ops-checklist-01/index.d.ts +3 -0
- package/dist/blocks/ops-checklist-01/index.d.ts.map +1 -0
- package/dist/blocks/ops-checklist-01/index.js +1 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.d.ts +308 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.d.ts.map +1 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.js +165 -0
- package/dist/blocks/page-header-01/index.d.ts +1 -1
- package/dist/blocks/page-header-01/index.d.ts.map +1 -1
- package/dist/blocks/page-header-01/page-header.d.ts +131 -11
- package/dist/blocks/page-header-01/page-header.d.ts.map +1 -1
- package/dist/blocks/page-header-01/page-header.js +33 -9
- package/dist/blocks/passkey-01/index.d.ts +3 -0
- package/dist/blocks/passkey-01/index.d.ts.map +1 -0
- package/dist/blocks/passkey-01/index.js +1 -0
- package/dist/blocks/passkey-01/passkey-01.d.ts +334 -0
- package/dist/blocks/passkey-01/passkey-01.d.ts.map +1 -0
- package/dist/blocks/passkey-01/passkey-01.js +192 -0
- package/dist/blocks/permission-matrix-01/index.d.ts +3 -0
- package/dist/blocks/permission-matrix-01/index.d.ts.map +1 -0
- package/dist/blocks/permission-matrix-01/index.js +1 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.d.ts +282 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.d.ts.map +1 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.js +173 -0
- package/dist/blocks/pricing-01/index.d.ts +1 -0
- package/dist/blocks/pricing-01/index.d.ts.map +1 -1
- package/dist/blocks/pricing-01/pricing.d.ts +118 -1
- package/dist/blocks/pricing-01/pricing.d.ts.map +1 -1
- package/dist/blocks/pricing-01/pricing.js +9 -2
- package/dist/blocks/pricing-compare-01/index.d.ts +3 -0
- package/dist/blocks/pricing-compare-01/index.d.ts.map +1 -0
- package/dist/blocks/pricing-compare-01/index.js +1 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.d.ts +277 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.d.ts.map +1 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.js +126 -0
- package/dist/blocks/project-01/index.d.ts +3 -0
- package/dist/blocks/project-01/index.d.ts.map +1 -0
- package/dist/blocks/project-01/index.js +1 -0
- package/dist/blocks/project-01/project.d.ts +323 -0
- package/dist/blocks/project-01/project.d.ts.map +1 -0
- package/dist/blocks/project-01/project.js +247 -0
- package/dist/blocks/project-dashboard-01/index.d.ts +3 -0
- package/dist/blocks/project-dashboard-01/index.d.ts.map +1 -0
- package/dist/blocks/project-dashboard-01/index.js +1 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.d.ts +200 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.d.ts.map +1 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.js +124 -0
- package/dist/blocks/project-list-01/index.d.ts +3 -0
- package/dist/blocks/project-list-01/index.d.ts.map +1 -0
- package/dist/blocks/project-list-01/index.js +1 -0
- package/dist/blocks/project-list-01/project-list.d.ts +301 -0
- package/dist/blocks/project-list-01/project-list.d.ts.map +1 -0
- package/dist/blocks/project-list-01/project-list.js +305 -0
- package/dist/blocks/provisioning-01/index.d.ts +3 -0
- package/dist/blocks/provisioning-01/index.d.ts.map +1 -0
- package/dist/blocks/provisioning-01/index.js +1 -0
- package/dist/blocks/provisioning-01/provisioning.d.ts +357 -0
- package/dist/blocks/provisioning-01/provisioning.d.ts.map +1 -0
- package/dist/blocks/provisioning-01/provisioning.js +230 -0
- package/dist/blocks/quick-view-01/index.d.ts +3 -0
- package/dist/blocks/quick-view-01/index.d.ts.map +1 -0
- package/dist/blocks/quick-view-01/index.js +1 -0
- package/dist/blocks/quick-view-01/quick-view.d.ts +215 -0
- package/dist/blocks/quick-view-01/quick-view.d.ts.map +1 -0
- package/dist/blocks/quick-view-01/quick-view.js +136 -0
- package/dist/blocks/rate-card-01/index.d.ts +3 -0
- package/dist/blocks/rate-card-01/index.d.ts.map +1 -0
- package/dist/blocks/rate-card-01/index.js +1 -0
- package/dist/blocks/rate-card-01/rate-card.d.ts +184 -0
- package/dist/blocks/rate-card-01/rate-card.d.ts.map +1 -0
- package/dist/blocks/rate-card-01/rate-card.js +79 -0
- package/dist/blocks/reset-password-01/index.d.ts +3 -0
- package/dist/blocks/reset-password-01/index.d.ts.map +1 -0
- package/dist/blocks/reset-password-01/index.js +1 -0
- package/dist/blocks/reset-password-01/reset-password.d.ts +276 -0
- package/dist/blocks/reset-password-01/reset-password.d.ts.map +1 -0
- package/dist/blocks/reset-password-01/reset-password.js +175 -0
- package/dist/blocks/resource-list-01/index.d.ts +3 -0
- package/dist/blocks/resource-list-01/index.d.ts.map +1 -0
- package/dist/blocks/resource-list-01/index.js +1 -0
- package/dist/blocks/resource-list-01/resource-list.d.ts +237 -0
- package/dist/blocks/resource-list-01/resource-list.d.ts.map +1 -0
- package/dist/blocks/resource-list-01/resource-list.js +154 -0
- package/dist/blocks/retention-01/index.d.ts +3 -0
- package/dist/blocks/retention-01/index.d.ts.map +1 -0
- package/dist/blocks/retention-01/index.js +1 -0
- package/dist/blocks/retention-01/retention.d.ts +255 -0
- package/dist/blocks/retention-01/retention.d.ts.map +1 -0
- package/dist/blocks/retention-01/retention.js +145 -0
- package/dist/blocks/run-console-01/run-console.d.ts +14 -1
- package/dist/blocks/run-console-01/run-console.d.ts.map +1 -1
- package/dist/blocks/run-console-01/run-console.js +4 -2
- package/dist/blocks/services-01/index.d.ts +3 -0
- package/dist/blocks/services-01/index.d.ts.map +1 -0
- package/dist/blocks/services-01/index.js +1 -0
- package/dist/blocks/services-01/services.d.ts +159 -0
- package/dist/blocks/services-01/services.d.ts.map +1 -0
- package/dist/blocks/services-01/services.js +81 -0
- package/dist/blocks/settings-integrations-01/index.d.ts +3 -0
- package/dist/blocks/settings-integrations-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-integrations-01/index.js +1 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.d.ts +246 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.d.ts.map +1 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.js +213 -0
- package/dist/blocks/settings-members-01/index.d.ts +3 -0
- package/dist/blocks/settings-members-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-members-01/index.js +1 -0
- package/dist/blocks/settings-members-01/settings-members.d.ts +396 -0
- package/dist/blocks/settings-members-01/settings-members.d.ts.map +1 -0
- package/dist/blocks/settings-members-01/settings-members.js +255 -0
- package/dist/blocks/settings-notifications-01/index.d.ts +3 -0
- package/dist/blocks/settings-notifications-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-notifications-01/index.js +1 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.d.ts +270 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.d.ts.map +1 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.js +202 -0
- package/dist/blocks/settings-security-01/index.d.ts +3 -0
- package/dist/blocks/settings-security-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-security-01/index.js +1 -0
- package/dist/blocks/settings-security-01/settings-security.d.ts +439 -0
- package/dist/blocks/settings-security-01/settings-security.d.ts.map +1 -0
- package/dist/blocks/settings-security-01/settings-security.js +244 -0
- package/dist/blocks/shortlist-01/index.d.ts +3 -0
- package/dist/blocks/shortlist-01/index.d.ts.map +1 -0
- package/dist/blocks/shortlist-01/index.js +1 -0
- package/dist/blocks/shortlist-01/shortlist-01.d.ts +337 -0
- package/dist/blocks/shortlist-01/shortlist-01.d.ts.map +1 -0
- package/dist/blocks/shortlist-01/shortlist-01.js +191 -0
- package/dist/blocks/showcase-01/index.d.ts +3 -0
- package/dist/blocks/showcase-01/index.d.ts.map +1 -0
- package/dist/blocks/showcase-01/index.js +1 -0
- package/dist/blocks/showcase-01/showcase-01.d.ts +238 -0
- package/dist/blocks/showcase-01/showcase-01.d.ts.map +1 -0
- package/dist/blocks/showcase-01/showcase-01.js +84 -0
- package/dist/blocks/signup-01/index.d.ts +3 -0
- package/dist/blocks/signup-01/index.d.ts.map +1 -0
- package/dist/blocks/signup-01/index.js +1 -0
- package/dist/blocks/signup-01/signup-01.d.ts +405 -0
- package/dist/blocks/signup-01/signup-01.d.ts.map +1 -0
- package/dist/blocks/signup-01/signup-01.js +209 -0
- package/dist/blocks/site-footer/site-footer.d.ts +34 -1
- package/dist/blocks/site-footer/site-footer.d.ts.map +1 -1
- package/dist/blocks/site-footer/site-footer.js +24 -2
- package/dist/blocks/site-header/site-header.js +1 -1
- package/dist/blocks/site-navbar/site-navbar.d.ts +37 -3
- package/dist/blocks/site-navbar/site-navbar.d.ts.map +1 -1
- package/dist/blocks/site-navbar/site-navbar.js +33 -4
- package/dist/blocks/spec-table-01/index.d.ts +3 -0
- package/dist/blocks/spec-table-01/index.d.ts.map +1 -0
- package/dist/blocks/spec-table-01/index.js +1 -0
- package/dist/blocks/spec-table-01/spec-table.d.ts +293 -0
- package/dist/blocks/spec-table-01/spec-table.d.ts.map +1 -0
- package/dist/blocks/spec-table-01/spec-table.js +217 -0
- package/dist/blocks/stack-grid-01/stack-grid.d.ts +13 -0
- package/dist/blocks/stack-grid-01/stack-grid.d.ts.map +1 -1
- package/dist/blocks/stack-grid-01/stack-grid.js +14 -1
- package/dist/blocks/story-01/index.d.ts +3 -0
- package/dist/blocks/story-01/index.d.ts.map +1 -0
- package/dist/blocks/story-01/index.js +1 -0
- package/dist/blocks/story-01/story.d.ts +153 -0
- package/dist/blocks/story-01/story.d.ts.map +1 -0
- package/dist/blocks/story-01/story.js +103 -0
- package/dist/blocks/summary-01/index.d.ts +3 -0
- package/dist/blocks/summary-01/index.d.ts.map +1 -0
- package/dist/blocks/summary-01/index.js +1 -0
- package/dist/blocks/summary-01/summary.d.ts +300 -0
- package/dist/blocks/summary-01/summary.d.ts.map +1 -0
- package/dist/blocks/summary-01/summary.js +174 -0
- package/dist/blocks/team-01/index.d.ts +3 -0
- package/dist/blocks/team-01/index.d.ts.map +1 -0
- package/dist/blocks/team-01/index.js +1 -0
- package/dist/blocks/team-01/team.d.ts +176 -0
- package/dist/blocks/team-01/team.d.ts.map +1 -0
- package/dist/blocks/team-01/team.js +117 -0
- package/dist/blocks/testimonial-01/index.d.ts +3 -0
- package/dist/blocks/testimonial-01/index.d.ts.map +1 -0
- package/dist/blocks/testimonial-01/index.js +1 -0
- package/dist/blocks/testimonial-01/testimonial.d.ts +173 -0
- package/dist/blocks/testimonial-01/testimonial.d.ts.map +1 -0
- package/dist/blocks/testimonial-01/testimonial.js +87 -0
- package/dist/blocks/todo-01/index.d.ts +3 -0
- package/dist/blocks/todo-01/index.d.ts.map +1 -0
- package/dist/blocks/todo-01/index.js +1 -0
- package/dist/blocks/todo-01/todo.d.ts +286 -0
- package/dist/blocks/todo-01/todo.d.ts.map +1 -0
- package/dist/blocks/todo-01/todo.js +149 -0
- package/dist/blocks/trend-01/index.d.ts +3 -0
- package/dist/blocks/trend-01/index.d.ts.map +1 -0
- package/dist/blocks/trend-01/index.js +1 -0
- package/dist/blocks/trend-01/trend.d.ts +184 -0
- package/dist/blocks/trend-01/trend.d.ts.map +1 -0
- package/dist/blocks/trend-01/trend.js +99 -0
- package/dist/blocks/trust-strip-01/index.d.ts +3 -0
- package/dist/blocks/trust-strip-01/index.d.ts.map +1 -0
- package/dist/blocks/trust-strip-01/index.js +1 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.d.ts +139 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.d.ts.map +1 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.js +58 -0
- package/dist/blocks/two-factor-01/index.d.ts +3 -0
- package/dist/blocks/two-factor-01/index.d.ts.map +1 -0
- package/dist/blocks/two-factor-01/index.js +1 -0
- package/dist/blocks/two-factor-01/two-factor-01.d.ts +440 -0
- package/dist/blocks/two-factor-01/two-factor-01.d.ts.map +1 -0
- package/dist/blocks/two-factor-01/two-factor-01.js +273 -0
- package/dist/blocks/user-profile-01/index.d.ts +3 -0
- package/dist/blocks/user-profile-01/index.d.ts.map +1 -0
- package/dist/blocks/user-profile-01/index.js +1 -0
- package/dist/blocks/user-profile-01/user-profile-01.d.ts +258 -0
- package/dist/blocks/user-profile-01/user-profile-01.d.ts.map +1 -0
- package/dist/blocks/user-profile-01/user-profile-01.js +158 -0
- package/dist/blocks/verify-email-01/index.d.ts +3 -0
- package/dist/blocks/verify-email-01/index.d.ts.map +1 -0
- package/dist/blocks/verify-email-01/index.js +1 -0
- package/dist/blocks/verify-email-01/verify-email.d.ts +262 -0
- package/dist/blocks/verify-email-01/verify-email.d.ts.map +1 -0
- package/dist/blocks/verify-email-01/verify-email.js +190 -0
- package/dist/blocks/waitlist-01/index.d.ts +3 -0
- package/dist/blocks/waitlist-01/index.d.ts.map +1 -0
- package/dist/blocks/waitlist-01/index.js +1 -0
- package/dist/blocks/waitlist-01/waitlist.d.ts +254 -0
- package/dist/blocks/waitlist-01/waitlist.d.ts.map +1 -0
- package/dist/blocks/waitlist-01/waitlist.js +75 -0
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +1641 -1
- package/dist/components/index.d.ts +114 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +134 -0
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +9 -2
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +22 -4
- package/dist/components/ui/announcement.d.ts +169 -0
- package/dist/components/ui/announcement.d.ts.map +1 -0
- package/dist/components/ui/announcement.js +123 -0
- package/dist/components/ui/avatar-group.d.ts +176 -0
- package/dist/components/ui/avatar-group.d.ts.map +1 -0
- package/dist/components/ui/avatar-group.js +135 -0
- package/dist/components/ui/billing-source.d.ts +293 -0
- package/dist/components/ui/billing-source.d.ts.map +1 -0
- package/dist/components/ui/billing-source.js +136 -0
- package/dist/components/ui/button.d.ts +16 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +17 -2
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +30 -2
- package/dist/components/ui/carousel.d.ts +7 -0
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +58 -1
- package/dist/components/ui/chart.d.ts +334 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +369 -0
- package/dist/components/ui/checkbox.d.ts +10 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +19 -1
- package/dist/components/ui/checklist.d.ts +262 -0
- package/dist/components/ui/checklist.d.ts.map +1 -0
- package/dist/components/ui/checklist.js +135 -0
- package/dist/components/ui/choice-card.d.ts +273 -0
- package/dist/components/ui/choice-card.d.ts.map +1 -0
- package/dist/components/ui/choice-card.js +138 -0
- package/dist/components/ui/code-block.d.ts +182 -0
- package/dist/components/ui/code-block.d.ts.map +1 -0
- package/dist/components/ui/code-block.js +108 -0
- package/dist/components/ui/cohort-grid.d.ts +210 -0
- package/dist/components/ui/cohort-grid.d.ts.map +1 -0
- package/dist/components/ui/cohort-grid.js +202 -0
- package/dist/components/ui/collapsible.d.ts +11 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js +13 -2
- package/dist/components/ui/combobox.d.ts +4 -1
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +20 -4
- package/dist/components/ui/command-palette.d.ts +11 -0
- package/dist/components/ui/command-palette.d.ts.map +1 -1
- package/dist/components/ui/command-palette.js +49 -3
- package/dist/components/ui/contribution-graph.d.ts +156 -0
- package/dist/components/ui/contribution-graph.d.ts.map +1 -0
- package/dist/components/ui/contribution-graph.js +170 -0
- package/dist/components/ui/creatable-combobox.d.ts +153 -0
- package/dist/components/ui/creatable-combobox.d.ts.map +1 -0
- package/dist/components/ui/creatable-combobox.js +285 -0
- package/dist/components/ui/data-toolbar.d.ts +133 -0
- package/dist/components/ui/data-toolbar.d.ts.map +1 -0
- package/dist/components/ui/data-toolbar.js +67 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +9 -1
- package/dist/components/ui/diagram.d.ts +38 -7
- package/dist/components/ui/diagram.d.ts.map +1 -1
- package/dist/components/ui/diagram.js +134 -52
- package/dist/components/ui/dialog.d.ts +31 -2
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +40 -6
- package/dist/components/ui/drawer.d.ts +270 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +241 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +6 -1
- package/dist/components/ui/dropzone.d.ts +147 -0
- package/dist/components/ui/dropzone.d.ts.map +1 -0
- package/dist/components/ui/dropzone.js +141 -0
- package/dist/components/ui/emoji-picker.d.ts +328 -0
- package/dist/components/ui/emoji-picker.d.ts.map +1 -0
- package/dist/components/ui/emoji-picker.js +278 -0
- package/dist/components/ui/fact-list.d.ts +17 -0
- package/dist/components/ui/fact-list.d.ts.map +1 -1
- package/dist/components/ui/fact-list.js +18 -1
- package/dist/components/ui/file-upload.d.ts +152 -0
- package/dist/components/ui/file-upload.d.ts.map +1 -0
- package/dist/components/ui/file-upload.js +101 -0
- package/dist/components/ui/filter-panel.d.ts +164 -0
- package/dist/components/ui/filter-panel.d.ts.map +1 -0
- package/dist/components/ui/filter-panel.js +91 -0
- package/dist/components/ui/form-dialog.d.ts +257 -0
- package/dist/components/ui/form-dialog.d.ts.map +1 -0
- package/dist/components/ui/form-dialog.js +176 -0
- package/dist/components/ui/form-wizard.d.ts +251 -0
- package/dist/components/ui/form-wizard.d.ts.map +1 -0
- package/dist/components/ui/form-wizard.js +151 -0
- package/dist/components/ui/image-list-field.d.ts +232 -0
- package/dist/components/ui/image-list-field.d.ts.map +1 -0
- package/dist/components/ui/image-list-field.js +168 -0
- package/dist/components/ui/image-zoom.d.ts +164 -0
- package/dist/components/ui/image-zoom.d.ts.map +1 -0
- package/dist/components/ui/image-zoom.js +169 -0
- package/dist/components/ui/intensity-grid.d.ts +270 -0
- package/dist/components/ui/intensity-grid.d.ts.map +1 -0
- package/dist/components/ui/intensity-grid.js +211 -0
- package/dist/components/ui/lifecycle-button.d.ts +276 -0
- package/dist/components/ui/lifecycle-button.d.ts.map +1 -0
- package/dist/components/ui/lifecycle-button.js +144 -0
- package/dist/components/ui/lightbox.d.ts +165 -0
- package/dist/components/ui/lightbox.d.ts.map +1 -0
- package/dist/components/ui/lightbox.js +130 -0
- package/dist/components/ui/list-panel.d.ts +288 -0
- package/dist/components/ui/list-panel.d.ts.map +1 -0
- package/dist/components/ui/list-panel.js +139 -0
- package/dist/components/ui/mega-menu.d.ts +244 -0
- package/dist/components/ui/mega-menu.d.ts.map +1 -0
- package/dist/components/ui/mega-menu.js +97 -0
- package/dist/components/ui/menubar.d.ts +9 -0
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +10 -1
- package/dist/components/ui/metric.d.ts +123 -0
- package/dist/components/ui/metric.d.ts.map +1 -0
- package/dist/components/ui/metric.js +68 -0
- package/dist/components/ui/mini-calendar.d.ts +143 -0
- package/dist/components/ui/mini-calendar.d.ts.map +1 -0
- package/dist/components/ui/mini-calendar.js +261 -0
- package/dist/components/ui/mode-toggle.d.ts +102 -0
- package/dist/components/ui/mode-toggle.d.ts.map +1 -0
- package/dist/components/ui/mode-toggle.js +83 -0
- package/dist/components/ui/money-field.d.ts +200 -0
- package/dist/components/ui/money-field.d.ts.map +1 -0
- package/dist/components/ui/money-field.js +215 -0
- package/dist/components/ui/multi-combobox.d.ts +181 -0
- package/dist/components/ui/multi-combobox.d.ts.map +1 -0
- package/dist/components/ui/multi-combobox.js +297 -0
- package/dist/components/ui/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select.js +8 -1
- package/dist/components/ui/navigation-menu.d.ts +7 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +8 -1
- package/dist/components/ui/nested-tabs.d.ts +188 -0
- package/dist/components/ui/nested-tabs.d.ts.map +1 -0
- package/dist/components/ui/nested-tabs.js +75 -0
- package/dist/components/ui/number-field.d.ts +40 -7
- package/dist/components/ui/number-field.d.ts.map +1 -1
- package/dist/components/ui/number-field.js +37 -7
- package/dist/components/ui/overflow-actions.d.ts +169 -0
- package/dist/components/ui/overflow-actions.d.ts.map +1 -0
- package/dist/components/ui/overflow-actions.js +266 -0
- package/dist/components/ui/pack-swatch.d.ts +177 -0
- package/dist/components/ui/pack-swatch.d.ts.map +1 -0
- package/dist/components/ui/pack-swatch.js +117 -0
- package/dist/components/ui/pack-switcher.d.ts +221 -0
- package/dist/components/ui/pack-switcher.d.ts.map +1 -0
- package/dist/components/ui/pack-switcher.js +94 -0
- package/dist/components/ui/pagination.d.ts +22 -0
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +23 -1
- package/dist/components/ui/password-field.d.ts +122 -0
- package/dist/components/ui/password-field.d.ts.map +1 -0
- package/dist/components/ui/password-field.js +69 -0
- package/dist/components/ui/pill.d.ts +172 -0
- package/dist/components/ui/pill.d.ts.map +1 -0
- package/dist/components/ui/pill.js +102 -0
- package/dist/components/ui/platform-modifier-key.d.ts +129 -0
- package/dist/components/ui/platform-modifier-key.d.ts.map +1 -0
- package/dist/components/ui/platform-modifier-key.js +125 -0
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +8 -1
- package/dist/components/ui/price.d.ts +144 -0
- package/dist/components/ui/price.d.ts.map +1 -0
- package/dist/components/ui/price.js +107 -0
- package/dist/components/ui/progress.d.ts +55 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +110 -2
- package/dist/components/ui/prompt-composer.d.ts +302 -0
- package/dist/components/ui/prompt-composer.d.ts.map +1 -0
- package/dist/components/ui/prompt-composer.js +145 -0
- package/dist/components/ui/proportion-list.d.ts +188 -0
- package/dist/components/ui/proportion-list.d.ts.map +1 -0
- package/dist/components/ui/proportion-list.js +134 -0
- package/dist/components/ui/prose.d.ts +34 -0
- package/dist/components/ui/prose.d.ts.map +1 -1
- package/dist/components/ui/prose.js +41 -1
- package/dist/components/ui/pulse-graph.d.ts +36 -4
- package/dist/components/ui/pulse-graph.d.ts.map +1 -1
- package/dist/components/ui/pulse-graph.js +174 -60
- package/dist/components/ui/radio-group.d.ts +7 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +8 -1
- package/dist/components/ui/range-field.d.ts +158 -0
- package/dist/components/ui/range-field.d.ts.map +1 -0
- package/dist/components/ui/range-field.js +208 -0
- package/dist/components/ui/relative-time.d.ts +116 -0
- package/dist/components/ui/relative-time.d.ts.map +1 -0
- package/dist/components/ui/relative-time.js +67 -0
- package/dist/components/ui/reorderable-list.d.ts +262 -0
- package/dist/components/ui/reorderable-list.d.ts.map +1 -0
- package/dist/components/ui/reorderable-list.js +325 -0
- package/dist/components/ui/repeatable-rows.d.ts +241 -0
- package/dist/components/ui/repeatable-rows.d.ts.map +1 -0
- package/dist/components/ui/repeatable-rows.js +221 -0
- package/dist/components/ui/repo-stars.d.ts +165 -0
- package/dist/components/ui/repo-stars.d.ts.map +1 -0
- package/dist/components/ui/repo-stars.js +92 -0
- package/dist/components/ui/resizable.d.ts +24 -0
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +96 -4
- package/dist/components/ui/search-dialog.d.ts +40 -5
- package/dist/components/ui/search-dialog.d.ts.map +1 -1
- package/dist/components/ui/search-dialog.js +94 -16
- package/dist/components/ui/search-field.d.ts +159 -0
- package/dist/components/ui/search-field.d.ts.map +1 -0
- package/dist/components/ui/search-field.js +98 -0
- package/dist/components/ui/section.d.ts +110 -1
- package/dist/components/ui/section.d.ts.map +1 -1
- package/dist/components/ui/section.js +111 -3
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +9 -1
- package/dist/components/ui/selection-toolbar.d.ts +166 -0
- package/dist/components/ui/selection-toolbar.d.ts.map +1 -0
- package/dist/components/ui/selection-toolbar.js +139 -0
- package/dist/components/ui/sidebar.d.ts +29 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +35 -2
- package/dist/components/ui/signal-field.d.ts.map +1 -1
- package/dist/components/ui/signal-field.js +1 -1
- package/dist/components/ui/slider.d.ts +7 -0
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js +32 -1
- package/dist/components/ui/sparkline.d.ts +117 -0
- package/dist/components/ui/sparkline.d.ts.map +1 -0
- package/dist/components/ui/sparkline.js +113 -0
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner.js +13 -0
- package/dist/components/ui/split-button.d.ts +207 -0
- package/dist/components/ui/split-button.d.ts.map +1 -0
- package/dist/components/ui/split-button.js +75 -0
- package/dist/components/ui/stateful-table.d.ts +345 -0
- package/dist/components/ui/stateful-table.d.ts.map +1 -0
- package/dist/components/ui/stateful-table.js +169 -0
- package/dist/components/ui/status.d.ts +99 -0
- package/dist/components/ui/status.d.ts.map +1 -0
- package/dist/components/ui/status.js +63 -0
- package/dist/components/ui/stepper.d.ts +155 -0
- package/dist/components/ui/stepper.d.ts.map +1 -0
- package/dist/components/ui/stepper.js +83 -0
- package/dist/components/ui/steps.d.ts +141 -0
- package/dist/components/ui/steps.d.ts.map +1 -0
- package/dist/components/ui/steps.js +128 -0
- package/dist/components/ui/switch.d.ts +8 -0
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +12 -1
- package/dist/components/ui/tabs.d.ts +21 -2
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +23 -4
- package/dist/components/ui/tag-group.d.ts +154 -0
- package/dist/components/ui/tag-group.d.ts.map +1 -0
- package/dist/components/ui/tag-group.js +111 -0
- package/dist/components/ui/task-progress.d.ts +149 -0
- package/dist/components/ui/task-progress.d.ts.map +1 -0
- package/dist/components/ui/task-progress.js +110 -0
- package/dist/components/ui/text-format-toolbar.d.ts +211 -0
- package/dist/components/ui/text-format-toolbar.d.ts.map +1 -0
- package/dist/components/ui/text-format-toolbar.js +186 -0
- package/dist/components/ui/timeline.d.ts.map +1 -1
- package/dist/components/ui/timeline.js +10 -1
- package/dist/components/ui/toast.d.ts +32 -10
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +150 -47
- package/dist/components/ui/toggle-group.d.ts +14 -5
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +15 -1
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +9 -1
- package/dist/components/ui/tree.d.ts +8 -0
- package/dist/components/ui/tree.d.ts.map +1 -1
- package/dist/components/ui/tree.js +92 -13
- package/dist/components/ui/video-player.d.ts +236 -0
- package/dist/components/ui/video-player.d.ts.map +1 -0
- package/dist/components/ui/video-player.js +72 -0
- package/dist/fonts/inter-latin-400-italic.woff2 +0 -0
- package/dist/index.d.ts +112 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +72 -0
- package/dist/lib/figure.d.ts +149 -0
- package/dist/lib/figure.d.ts.map +1 -0
- package/dist/lib/figure.js +242 -0
- package/dist/lib/utils.d.ts +29 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +35 -0
- package/dist/live/index.d.ts +10 -3
- package/dist/live/index.d.ts.map +1 -1
- package/dist/live/index.js +12 -3
- package/dist/live/run-stream-01/run-stream.d.ts.map +1 -1
- package/dist/live/run-stream-01/run-stream.js +6 -5
- package/dist/live/tool-ledger-01/index.d.ts +3 -0
- package/dist/live/tool-ledger-01/index.d.ts.map +1 -0
- package/dist/live/tool-ledger-01/index.js +1 -0
- package/dist/live/tool-ledger-01/tool-ledger.d.ts +348 -0
- package/dist/live/tool-ledger-01/tool-ledger.d.ts.map +1 -0
- package/dist/live/tool-ledger-01/tool-ledger.js +245 -0
- package/dist/pages/about-page/index.d.ts +306 -0
- package/dist/pages/about-page/index.d.ts.map +1 -0
- package/dist/pages/about-page/index.js +161 -0
- package/dist/pages/blog-post-page/index.d.ts +36 -15
- package/dist/pages/blog-post-page/index.d.ts.map +1 -1
- package/dist/pages/blog-post-page/index.js +35 -10
- package/dist/pages/careers-page/index.d.ts +288 -0
- package/dist/pages/careers-page/index.d.ts.map +1 -0
- package/dist/pages/careers-page/index.js +182 -0
- package/dist/pages/changelog-page/index.d.ts +255 -0
- package/dist/pages/changelog-page/index.d.ts.map +1 -0
- package/dist/pages/changelog-page/index.js +86 -0
- package/dist/pages/contact-page/index.d.ts +261 -0
- package/dist/pages/contact-page/index.d.ts.map +1 -0
- package/dist/pages/contact-page/index.js +136 -0
- package/dist/pages/docs-shell/docs-shell.d.ts +126 -16
- package/dist/pages/docs-shell/docs-shell.d.ts.map +1 -1
- package/dist/pages/docs-shell/docs-shell.js +229 -28
- package/dist/pages/error-page/index.d.ts +188 -0
- package/dist/pages/error-page/index.d.ts.map +1 -0
- package/dist/pages/error-page/index.js +102 -0
- package/dist/pages/index.d.ts +10 -0
- package/dist/pages/index.d.ts.map +1 -1
- package/dist/pages/index.js +14 -0
- package/dist/pages/legal-page/index.d.ts +194 -0
- package/dist/pages/legal-page/index.d.ts.map +1 -0
- package/dist/pages/legal-page/index.js +99 -0
- package/dist/pages/not-found-page/index.d.ts.map +1 -1
- package/dist/pages/not-found-page/index.js +4 -3
- package/dist/pages/onboarding-page/index.d.ts +199 -0
- package/dist/pages/onboarding-page/index.d.ts.map +1 -0
- package/dist/pages/onboarding-page/index.js +71 -0
- package/dist/pages/pricing-page/index.d.ts +286 -0
- package/dist/pages/pricing-page/index.d.ts.map +1 -0
- package/dist/pages/pricing-page/index.js +139 -0
- package/dist/pages/search-page/index.d.ts +305 -0
- package/dist/pages/search-page/index.d.ts.map +1 -0
- package/dist/pages/search-page/index.js +142 -0
- package/dist/pages/status-page/index.d.ts +366 -0
- package/dist/pages/status-page/index.d.ts.map +1 -0
- package/dist/pages/status-page/index.js +136 -0
- package/dist/styles.css +1105 -62
- package/package.json +9 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Prose } from '../../components/ui/prose.js';
|
|
3
|
+
import { headingSizeClass } from '../../components/ui/section.js';
|
|
3
4
|
import { Heading, Text } from '../../components/ui/typography.js';
|
|
4
5
|
import { cn } from '../../lib/utils.js';
|
|
5
6
|
/**
|
|
@@ -59,13 +60,85 @@ import { cn } from '../../lib/utils.js';
|
|
|
59
60
|
* author filed it. A Page that sorted its rail would flatten the one thing the
|
|
60
61
|
* three sites disagree about and cannot both be right about.
|
|
61
62
|
*
|
|
62
|
-
* **The rail is bounded in height
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* sidebar.
|
|
63
|
+
* **The rail is bounded in height, and the bound is what the reader has to be
|
|
64
|
+
* able to see.** Atlas files nineteen pages and AlphaLens files twenty-seven, so
|
|
65
|
+
* the taller tree is half again as long, and an unbounded rail on a tall tree is
|
|
66
|
+
* a rail that pushes the document below the fold before the reader has read a
|
|
67
|
+
* line of it. The rail and the contents rail are each capped against the viewport
|
|
68
|
+
* and scroll inside it, so a nineteen-page tree and a twenty-seven-page tree are
|
|
69
|
+
* both a full screen and neither is a page-long sidebar.
|
|
70
|
+
*
|
|
71
|
+
* **A cap the reader cannot see is a defect, and this one was invisible for 344
|
|
72
|
+
* and 750 pixels.** Measured in two consumers' built exports at 1280 by 680, the
|
|
73
|
+
* rail's content stood at 912 and 1318 pixels against a 568 pixel box, so more
|
|
74
|
+
* than half of one site's documentation navigation sat below the fold with
|
|
75
|
+
* `mask-image: none`, no scrollbar Chrome would draw until the reader scrolled,
|
|
76
|
+
* no fade and no count. Chrome's overlay scrollbars are the reason this is not
|
|
77
|
+
* caught by looking: they appear on scroll, so the first render of a rail that
|
|
78
|
+
* hides half its content is indistinguishable from a rail that has all of it, and
|
|
79
|
+
* the last visible row was cut mid-word above dead space, which reads as a
|
|
80
|
+
* rendering fault rather than as a scroll region.
|
|
81
|
+
*
|
|
82
|
+
* **The affordance is a fade across the foot of the scroll region, with the space
|
|
83
|
+
* it covers reserved rather than borrowed.** Three answers were available and the
|
|
84
|
+
* other two were rejected for stated reasons. A persistent themed scrollbar is
|
|
85
|
+
* truthful at both ends and costs nothing to legibility, and it is still here in
|
|
86
|
+
* the sense that the region is a real scroll region rather than a clipped box,
|
|
87
|
+
* but it is a single hairline whose length says "there is more" without saying
|
|
88
|
+
* which way, it needs `scrollbar-gutter` reserved in a 15rem rail to stop the
|
|
89
|
+
* content shifting when a short tree becomes a tall one, and in Chrome it is the
|
|
90
|
+
* least reliable of the three to reason about because the property that makes it
|
|
91
|
+
* persistent is the same one whose default is an overlay. A collapse control needs
|
|
92
|
+
* a disclosure whose state a server Component cannot hold. An "N more" control is
|
|
93
|
+
* copy this Page does not ship and it needs the count the Page cannot compute
|
|
94
|
+
* without measuring, which is the one thing a server Component cannot do.
|
|
95
|
+
*
|
|
96
|
+
* So the fade, and it is painted on a wrapper that does not scroll rather than on
|
|
97
|
+
* the scroll region itself: a mask or a gradient inside the scrollport moves with
|
|
98
|
+
* the content and marks nothing. The wrapper carries the sticky offset, the
|
|
99
|
+
* scroll region keeps the cap and the scrolling, and the gradient is pinned to
|
|
100
|
+
* the wrapper's foot. The region carries `padding-bottom` of the same height, and
|
|
101
|
+
* that is the half that makes it honest: at rest the gradient falls on reserved
|
|
102
|
+
* space and the last row is fully legible, and only while there is more below
|
|
103
|
+
* does it fall on content. Without the padding the same gradient washes the last
|
|
104
|
+
* row permanently, which is the usual cost of this answer and the reason the
|
|
105
|
+
* padding is not optional.
|
|
106
|
+
*
|
|
107
|
+
* **The fade is paint, and it is on the accessibility tree's terms.** It is an
|
|
108
|
+
* empty element with `aria-hidden` and `pointer-events-none`, inside the `<nav>`
|
|
109
|
+
* and outside the `<ul>`, so it is not a list item, it is not announced, it never
|
|
110
|
+
* takes a press and it never reaches a Tab stop. A keyboard reader scrolls the
|
|
111
|
+
* region with the arrow keys exactly as before and reaches every entry, and a
|
|
112
|
+
* screen-reader user is told nothing at all, which is the right answer: the cut is
|
|
113
|
+
* a fact about ink, and announcing it would put a sentence in the middle of a
|
|
114
|
+
* list of a consumer's own pages.
|
|
115
|
+
*
|
|
116
|
+
* **Below `lg` there was no navigation at all, and the fix is a native
|
|
117
|
+
* disclosure.** At 768 and at 1024 both rails were `hidden` and the only
|
|
118
|
+
* navigation left inside `<main>` was the two-item pager at the foot of the
|
|
119
|
+
* article, so a reader on a thirty-one document reference at tablet width had no
|
|
120
|
+
* contents, no on-this-page and no way to a sibling page except Previous and
|
|
121
|
+
* Next. The disclosure is `<details>` and `<summary>`, which is the one
|
|
122
|
+
* disclosure widget that needs no runtime at all: it is expanded and collapsed by
|
|
123
|
+
* the platform, it is a real control in the Tab order with a real expanded state,
|
|
124
|
+
* and adding a client boundary to a server Component to reinvent it would put
|
|
125
|
+
* bytes on every documentation page in the family to save a reader one click.
|
|
126
|
+
*
|
|
127
|
+
* The tree is rendered twice, once in each arrangement, and only one of them is
|
|
128
|
+
* in the document at any width: the rail is `hidden lg:block` and the disclosure
|
|
129
|
+
* is `lg:hidden`, so the other one is `display: none` and is out of the
|
|
130
|
+
* accessibility tree and out of the tab order rather than a second copy a reader
|
|
131
|
+
* meets. The summary carries `navLabel` or `tocLabel`, which is the caller's own
|
|
132
|
+
* word for that navigation and therefore the one word on the control that cannot
|
|
133
|
+
* be wrong in a language the consumer did not write in.
|
|
134
|
+
*
|
|
135
|
+
* **The frame is three columns from `lg`, and the third is the consumer's to
|
|
136
|
+
* fill.** The rail is 15rem, the document takes the rest, and the contents rail
|
|
137
|
+
* is 13rem. The third track exists only when `toc` is passed, because the
|
|
138
|
+
* document takes the second track by auto-placement and a template that named a
|
|
139
|
+
* track no child occupies would leave the document in the 15rem one. Below `lg`
|
|
140
|
+
* the frame is a single column: the document fills it and the two navigations sit
|
|
141
|
+
* above it behind their disclosures.
|
|
69
142
|
*
|
|
70
143
|
* It is a Page rather than a Block because it is a whole screen and it is the
|
|
71
144
|
* screen a content pipeline targets: a route that reads one document and hands
|
|
@@ -76,7 +149,10 @@ import { cn } from '../../lib/utils.js';
|
|
|
76
149
|
*
|
|
77
150
|
* It is a server Component. It fetches nothing, it holds no state and it imports
|
|
78
151
|
* no router, so a consumer renders it from whichever route their framework names
|
|
79
|
-
* and hands it the document their pipeline produced.
|
|
152
|
+
* and hands it the document their pipeline produced. The sub-`lg` disclosure is
|
|
153
|
+
* the reason that stays true under pressure: it is the one feature on this Page
|
|
154
|
+
* that a hand would be tempted to write as a client Component, and it is written
|
|
155
|
+
* as markup instead.
|
|
80
156
|
*/
|
|
81
157
|
export function DocsShell({ title, description, nav, toc, currentHref, navLabel, tocLabel, pagerLabel, pagerLabels, header, footer, className, children, }) {
|
|
82
158
|
readTree(nav, 'nav');
|
|
@@ -84,13 +160,86 @@ export function DocsShell({ title, description, nav, toc, currentHref, navLabel,
|
|
|
84
160
|
const rail = nav && nav.length > 0 ? nav : undefined;
|
|
85
161
|
const contents = toc && toc.length > 0 ? toc : undefined;
|
|
86
162
|
const neighbours = currentHref === undefined ? undefined : deriveNeighbours(nav ?? [], currentHref);
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
//
|
|
91
|
-
//
|
|
92
|
-
//
|
|
93
|
-
|
|
163
|
+
const unnamedNav = unnamedIn(nav);
|
|
164
|
+
const unnamedToc = unnamedIn(toc);
|
|
165
|
+
return (_jsxs("div", { "data-slot": "docs-shell", className: cn('mx-auto w-full max-w-page px-6 py-10 lg:px-8', className), children: [header, _jsxs("div", { "data-slot": "docs-shell-frame", className: cn('flex flex-col gap-8 lg:flex-row lg:gap-10',
|
|
166
|
+
// One track for the rail, one for the document, and a third for the
|
|
167
|
+
// contents rail when there is one. The template names exactly the
|
|
168
|
+
// tracks the children occupy rather than a fixed three-column grid,
|
|
169
|
+
// because the document takes the second track by auto-placement: a
|
|
170
|
+
// tree with no contents rail has two children, so a three-track
|
|
171
|
+
// template would leave the document in the 15rem first track.
|
|
172
|
+
//
|
|
173
|
+
// The third track is at the same width as the two-column frame, and
|
|
174
|
+
// that is a fact about the token package rather than a preference: the
|
|
175
|
+
// emitted theme closes `xl` with `initial`, so a third track written
|
|
176
|
+
// against a wider screen compiled to no media query at all, and the
|
|
177
|
+
// contents rail landed in an implicit `auto` track rather than the
|
|
178
|
+
// 13rem one. `check-breakpoint-variants.mjs` is the gate that says so
|
|
179
|
+
// to the next class written against a screen the theme does not emit.
|
|
180
|
+
contents ? 'lg:grid lg:grid-cols-[15rem_minmax(0,1fr)_13rem]' : 'lg:grid lg:grid-cols-[15rem_minmax(0,1fr)]'), children: [rail || contents ? (_jsxs("div", { "data-slot": "docs-nav-compact", className: "flex flex-col gap-4 lg:hidden", children: [rail ? (_jsx(Disclosure, { label: navLabel, unnamed: unnamedNav, children: _jsx(NavList, { entries: rail, currentHref: currentHref, depth: 0 }) })) : null, contents ? (_jsx(Disclosure, { label: tocLabel, unnamed: unnamedToc, children: _jsx(NavList, { entries: contents, currentHref: currentHref, depth: 0 }) })) : null] })) : null, rail ? (_jsx("aside", { "data-slot": "docs-rail", className: "hidden lg:col-start-1 lg:row-start-1 lg:block", children: _jsx(Rail, { label: navLabel, entries: rail, currentHref: currentHref, unnamed: unnamedNav }) })) : null, _jsxs("article", { "data-slot": "docs-article", className: "flex min-w-0 flex-col gap-8", children: [title ? (_jsxs("header", { className: "flex flex-col gap-3", children: [_jsx(Heading, { as: "h1", className: headingSizeClass('h1'), children: title }), description ? (_jsx(Text, { size: "lg", tone: "muted", className: "max-w-measure", children: description })) : null] })) : description ? (_jsx(Text, { size: "lg", tone: "muted", className: "max-w-measure", children: description })) : null, _jsx(Prose, { fullWidth: true, children: children }), neighbours ? (_jsx(Pager, { previous: neighbours.previous, next: neighbours.next, label: pagerLabel, labels: pagerLabels })) : null] }), contents ? (_jsx("aside", { "data-slot": "docs-contents", className: "hidden lg:col-start-3 lg:row-start-1 lg:block", children: _jsx(Rail, { label: tocLabel, entries: contents, currentHref: currentHref, unnamed: unnamedToc }) })) : null] }), footer] }));
|
|
181
|
+
}
|
|
182
|
+
/* ------------------------------------------------------------------ *
|
|
183
|
+
* The two rails at lg
|
|
184
|
+
* ------------------------------------------------------------------ */
|
|
185
|
+
/**
|
|
186
|
+
* One rail: a region that scrolls inside a bound against the viewport, with the
|
|
187
|
+
* cut at its foot marked so the rows below it are discoverable.
|
|
188
|
+
*
|
|
189
|
+
* **The sticky offset is on this wrapper and not on the scroll region, and the
|
|
190
|
+
* reason is the fade.** The fade has to be pinned to the foot of the region while
|
|
191
|
+
* the region scrolls, and nothing inside a scroll container stays put while that
|
|
192
|
+
* container scrolls: a gradient or a mask written into the scrollport travels with
|
|
193
|
+
* the content and so marks nothing once the reader has scrolled. The wrapper is
|
|
194
|
+
* the element that travels, so the fade is absolutely positioned against it and
|
|
195
|
+
* the `<nav>` inside is free to be nothing but the scroll region.
|
|
196
|
+
*
|
|
197
|
+
* The cap is `100svh` less the sticky offset plus the gap under it, and `svh` is
|
|
198
|
+
* the smallest viewport height rather than the largest, which is the direction that
|
|
199
|
+
* matters here. `dvh` would grow to the full height the moment a mobile browser's
|
|
200
|
+
* URL bar retracted, and a sticky region measured against a viewport taller than
|
|
201
|
+
* the one on screen is a region whose foot is below the bottom of the screen
|
|
202
|
+
* while it is pinned, which is the one state the bound exists to prevent. `svh`
|
|
203
|
+
* is never taller than what is visible, so `top` plus `max-h` is always inside the
|
|
204
|
+
* viewport and the rail's foot always clears it. `top-20` is 5rem and the cap is
|
|
205
|
+
* the viewport less 7rem, so the foot sits 2rem above the bottom edge at every
|
|
206
|
+
* window height; a short window makes the rail shorter and does not make it
|
|
207
|
+
* taller than the space it is pinned in.
|
|
208
|
+
*
|
|
209
|
+
* `padding-bottom` is the same height as the fade, and it is what makes the fade
|
|
210
|
+
* honest. The gradient falls on the last 2rem of whatever the scrollport is
|
|
211
|
+
* showing, so with the padding reserved it falls on empty space once the reader
|
|
212
|
+
* has reached the end and on content only while there is more below. Without it
|
|
213
|
+
* the same gradient permanently washes the bottom of the last row, which is the
|
|
214
|
+
* usual cost of a fade and the reason the padding is part of the answer rather
|
|
215
|
+
* than a detail.
|
|
216
|
+
*
|
|
217
|
+
* `unnamed` is carried on the `<nav>` rather than logged, for the reason
|
|
218
|
+
* `unnamedIn` gives.
|
|
219
|
+
*/
|
|
220
|
+
function Rail({ label, entries, currentHref, unnamed, }) {
|
|
221
|
+
return (_jsxs("div", { className: "relative lg:sticky lg:top-20", children: [_jsx("nav", { "aria-label": label, "data-unnamed-entries": unnamed, className: "lg:max-h-[calc(100svh-7rem)] lg:overflow-y-auto lg:pe-4 lg:pb-8", children: _jsx(NavList, { entries: entries, currentHref: currentHref, depth: 0 }) }), _jsx("div", { "aria-hidden": "true", "data-slot": "docs-rail-fade", className: "from-background pointer-events-none absolute inset-x-0 bottom-0 h-8 bg-gradient-to-t to-transparent" })] }));
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* One tree behind a native disclosure, for the widths where there is no rail.
|
|
225
|
+
*
|
|
226
|
+
* `<details>` rather than a Component, and the whole argument is that it needs no
|
|
227
|
+
* runtime: the platform holds the expanded state, the control is in the Tab order
|
|
228
|
+
* with a real expanded state, and the Page stays a server Component. A Page that
|
|
229
|
+
* shipped a client disclosure for this would put JavaScript on every documentation
|
|
230
|
+
* page in the family to replace a browser feature that has been in the platform
|
|
231
|
+
* since 2018.
|
|
232
|
+
*
|
|
233
|
+
* **The summary's word is the caller's.** `navLabel` and `tocLabel` are already
|
|
234
|
+
* required props and already name these two navigations for a screen reader, so
|
|
235
|
+
* the control that opens one says the same thing the region inside it is called
|
|
236
|
+
* and the Page ships no word of its own. Nothing suppresses the browser's own
|
|
237
|
+
* disclosure marker or its own focus ring: the marker is the cheapest honest
|
|
238
|
+
* signal that the row is a disclosure, and `py-3` puts the target at 44 pixels for
|
|
239
|
+
* a coarse pointer without a variant.
|
|
240
|
+
*/
|
|
241
|
+
function Disclosure({ label, unnamed, children, }) {
|
|
242
|
+
return (_jsxs("details", { "data-slot": "docs-nav-disclosure", children: [_jsx("summary", { className: "text-foreground cursor-pointer py-3 text-sm font-medium", children: label }), _jsx("nav", { "aria-label": label, "data-unnamed-entries": unnamed, className: "pb-4", children: children })] }));
|
|
94
243
|
}
|
|
95
244
|
/* ------------------------------------------------------------------ *
|
|
96
245
|
* The tree
|
|
@@ -107,6 +256,21 @@ export function DocsShell({ title, description, nav, toc, currentHref, navLabel,
|
|
|
107
256
|
function addressOf(href) {
|
|
108
257
|
return href !== undefined && href.trim() !== '' ? href : undefined;
|
|
109
258
|
}
|
|
259
|
+
/**
|
|
260
|
+
* Whether an entry has words to be called by.
|
|
261
|
+
*
|
|
262
|
+
* Blank counts as none, for the same reason `addressOf` counts it: all three
|
|
263
|
+
* consumer adapters build a title out of whatever their content pipeline produced,
|
|
264
|
+
* and one of them maps a heading whose title arrives as a React element to the
|
|
265
|
+
* empty string. A row is rendered from a string, and a string of spaces is not a
|
|
266
|
+
* name. It is read here rather than at each use because `destinationOf` decides
|
|
267
|
+
* between a link and a label, the renderer decides between a row and nothing, and
|
|
268
|
+
* the counter decides how many rows went missing, and three answers to one
|
|
269
|
+
* question is how a fourth grows.
|
|
270
|
+
*/
|
|
271
|
+
function named(entry) {
|
|
272
|
+
return entry.title.trim() !== '';
|
|
273
|
+
}
|
|
110
274
|
/**
|
|
111
275
|
* The address an entry is reachable at, or `undefined` when it is not a
|
|
112
276
|
* destination at all.
|
|
@@ -119,7 +283,35 @@ function addressOf(href) {
|
|
|
119
283
|
* `Next` link under it.
|
|
120
284
|
*/
|
|
121
285
|
function destinationOf(entry) {
|
|
122
|
-
return entry
|
|
286
|
+
return named(entry) ? addressOf(entry.href) : undefined;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* How many entries in a tree the Page cannot name, and therefore did not draw.
|
|
290
|
+
*
|
|
291
|
+
* **It is counted rather than swallowed, and the place it is counted on is the
|
|
292
|
+
* rail itself.** `Diagram` answers a dropped relation the same way, with
|
|
293
|
+
* `data-unresolved-relations` on the drawing, and the argument is the same one: a
|
|
294
|
+
* row that did not draw is a fact about the caller's data, and a fact that leaves
|
|
295
|
+
* no trace is a defect the next reader has to rediscover from a screenshot. The
|
|
296
|
+
* number is on the element rather than in a console because a caller reads the
|
|
297
|
+
* element and does not read the console.
|
|
298
|
+
*
|
|
299
|
+
* Three things are counted, because three things go missing rather than two:
|
|
300
|
+
* a page with no words, which is dropped whole; a group with no words, whose
|
|
301
|
+
* label is not rendered while its pages still are; and a group with neither words
|
|
302
|
+
* nor children, which has nothing left to draw and is dropped whole.
|
|
303
|
+
*/
|
|
304
|
+
function unnamedIn(entries) {
|
|
305
|
+
let count = 0;
|
|
306
|
+
for (const entry of entries ?? []) {
|
|
307
|
+
if (entry.type === 'divider')
|
|
308
|
+
continue;
|
|
309
|
+
if (!named(entry))
|
|
310
|
+
count += 1;
|
|
311
|
+
if (entry.type === 'group')
|
|
312
|
+
count += unnamedIn(entry.items);
|
|
313
|
+
}
|
|
314
|
+
return count;
|
|
123
315
|
}
|
|
124
316
|
/**
|
|
125
317
|
* Reads a tree before any of it renders, and refuses the one shape it cannot
|
|
@@ -188,15 +380,23 @@ function NavNode({ entry, currentHref, depth, }) {
|
|
|
188
380
|
}
|
|
189
381
|
const href = destinationOf(entry);
|
|
190
382
|
if (entry.type === 'group') {
|
|
191
|
-
|
|
383
|
+
// A group with no words and no pages has nothing left to draw, and a `<li>`
|
|
384
|
+
// holding an empty `<div>` is the same empty row the page arm used to render.
|
|
385
|
+
// Dropping it costs nothing, because there was nothing in it.
|
|
386
|
+
if (!named(entry) && entry.items.length === 0)
|
|
387
|
+
return null;
|
|
388
|
+
return (_jsx("li", { "data-slot": "docs-nav-group", children: _jsxs("div", { className: "flex flex-col gap-1", children: [!named(entry) ? null : href === undefined ? (_jsx("span", { "data-slot": "docs-nav-label", className: cn('rounded-sm text-sm font-semibold tracking-tight', containsHref(entry, currentHref) ? 'text-foreground' : 'text-muted-foreground'), children: entry.title })) : (_jsx("a", { "data-slot": "docs-nav-heading", href: href, "aria-current": currentHref === href ? 'page' : undefined, className: cn('hover:text-foreground rounded-sm text-sm font-semibold tracking-tight transition-colors duration-fast ease-out', under(href, currentHref) ? 'text-foreground' : 'text-muted-foreground'), children: entry.title })), entry.items.length > 0 ? (_jsx(NavList, { entries: entry.items, currentHref: currentHref, depth: depth + 1 })) : null] }) }));
|
|
192
389
|
}
|
|
193
|
-
// The page arm
|
|
194
|
-
// named the entry, so
|
|
195
|
-
//
|
|
196
|
-
// with no accessible name is announced as "link" and nothing
|
|
197
|
-
|
|
390
|
+
// The page arm, and there is one shape of it left. `readTree` refused a page
|
|
391
|
+
// with no address above and named the entry, so every page that reaches here has
|
|
392
|
+
// one, and a page with no words is not rendered at all rather than rendered as
|
|
393
|
+
// a label: a link with no accessible name is announced as "link" and nothing
|
|
394
|
+
// else, and a blank row is not a label either because a label is words.
|
|
395
|
+
if (!named(entry))
|
|
396
|
+
return null;
|
|
397
|
+
return (_jsx("li", { "data-slot": "docs-nav-page", children: _jsx("a", { "data-slot": "docs-nav-link", href: href, "aria-current": currentHref === href ? 'page' : undefined, className: cn('-ms-px block border-l-2 py-1 ps-3 text-sm transition-colors duration-fast ease-out', currentHref === href
|
|
198
398
|
? 'text-foreground border-primary font-medium'
|
|
199
|
-
: 'text-muted-foreground hover:text-foreground border-transparent'), children: entry.title })
|
|
399
|
+
: 'text-muted-foreground hover:text-foreground border-transparent'), children: entry.title }) }));
|
|
200
400
|
}
|
|
201
401
|
/**
|
|
202
402
|
* Every page the tree holds, in the order a reader meets them.
|
|
@@ -208,11 +408,12 @@ function NavNode({ entry, currentHref, depth, }) {
|
|
|
208
408
|
* the pager to reach either. A divider contributes nothing at all.
|
|
209
409
|
*
|
|
210
410
|
* The row a reader can click and the row the pager can reach are decided by the
|
|
211
|
-
* SAME function, `destinationOf
|
|
212
|
-
*
|
|
213
|
-
* in the rail
|
|
214
|
-
*
|
|
215
|
-
*
|
|
411
|
+
* SAME function, `destinationOf`, and a row with no words is now dropped from the
|
|
412
|
+
* rail as well, so the two surfaces agree twice over rather than once by accident.
|
|
413
|
+
* The defect this replaced was a nameless anchor in the rail and a `Next` link
|
|
414
|
+
* under it carrying the text of whichever entry happened to follow, published
|
|
415
|
+
* from one malformed row. Deriving without asking produced the first and a
|
|
416
|
+
* separate opinion produced the second; asking once produces neither.
|
|
216
417
|
*/
|
|
217
418
|
function flatten(entries, into = []) {
|
|
218
419
|
for (const entry of entries) {
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type HeadingLevel } from '../../components/ui/section.js';
|
|
3
|
+
/**
|
|
4
|
+
* One way out of a failed screen, and the words for it.
|
|
5
|
+
*
|
|
6
|
+
* Identical to `NotFoundLink`, and it is a second declaration rather than an import
|
|
7
|
+
* because a Page's props are the surface a consumer reads and this Page is shipped
|
|
8
|
+
* from its own subpath: a consumer reading the corpus for a retry screen should not
|
|
9
|
+
* have to know that a not-found screen also exists. The duplication is four fields
|
|
10
|
+
* and a key, and the alternative is a shared type in one Page's module that the
|
|
11
|
+
* other Page's documentation would then be about.
|
|
12
|
+
*/
|
|
13
|
+
export type ErrorPageLink = {
|
|
14
|
+
/** The words of the link. */
|
|
15
|
+
label: string;
|
|
16
|
+
/** Where it goes. */
|
|
17
|
+
href: string;
|
|
18
|
+
/**
|
|
19
|
+
* Opens the destination in a new browsing context, which defaults the link
|
|
20
|
+
* relationship to `noopener noreferrer`. Almost never right on a failed screen: a
|
|
21
|
+
* reader who has just been shown a failure and is sent to a new tab has to find
|
|
22
|
+
* their way back and cannot tell whether the thing they were doing is still there.
|
|
23
|
+
*/
|
|
24
|
+
newTab?: boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Every field of an ErrorPage except whether it shows a support reference.
|
|
28
|
+
*
|
|
29
|
+
* Not exported, because the two arms below are what a caller writes and this is
|
|
30
|
+
* only the half they share. The union is what makes `referenceLabel` required
|
|
31
|
+
* wherever `reference` is set, and a flat pair of optional props could not: a
|
|
32
|
+
* reference with no label is a value on the page that nothing names, and a label
|
|
33
|
+
* with no reference is a word heading nothing.
|
|
34
|
+
*/
|
|
35
|
+
type ErrorPageFields = {
|
|
36
|
+
/**
|
|
37
|
+
* The status code, drawn as the page's own `h1`.
|
|
38
|
+
*
|
|
39
|
+
* Required, and a string rather than a number because it is displayed, not
|
|
40
|
+
* computed: a Page never decides what code it is answering, and a code a product
|
|
41
|
+
* derives from its own exception class is a code this Page would then be
|
|
42
|
+
* asserting about the consumer's deployment.
|
|
43
|
+
*/
|
|
44
|
+
code: string;
|
|
45
|
+
/**
|
|
46
|
+
* The headline under the code: the sentence that says what happened.
|
|
47
|
+
*
|
|
48
|
+
* A `string` because it is one sentence and it is the part a reader actually
|
|
49
|
+
* reads, and it is the caller's because every product says it differently.
|
|
50
|
+
*/
|
|
51
|
+
title: string;
|
|
52
|
+
/** One or two sentences, for anything a reader should know before they press anything. */
|
|
53
|
+
description?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The control that tries the failed request again.
|
|
56
|
+
*
|
|
57
|
+
* A node and not a label and a handler, and that is the decision this Page is
|
|
58
|
+
* shaped around. See the JSDoc on the Page: a slot is what keeps this screen a
|
|
59
|
+
* server Component while the retry is still the first thing on it.
|
|
60
|
+
*/
|
|
61
|
+
retry?: ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* The ways out, in the order a reader should see them. Put the destination most
|
|
64
|
+
* likely to help first.
|
|
65
|
+
*/
|
|
66
|
+
links: readonly ErrorPageLink[];
|
|
67
|
+
/**
|
|
68
|
+
* The accessible name of the row of ways out.
|
|
69
|
+
*
|
|
70
|
+
* Required, because it is a word a reader hears and a Page that ships no copy
|
|
71
|
+
* ships no reader-facing copy either. The Page's own phrasing is "where to next";
|
|
72
|
+
* a site that files its destinations differently names the same landmark
|
|
73
|
+
* differently.
|
|
74
|
+
*/
|
|
75
|
+
linksLabel: string;
|
|
76
|
+
/** A slot for anything else the site wants to say here: a status page, a chat route. */
|
|
77
|
+
children?: ReactNode;
|
|
78
|
+
/**
|
|
79
|
+
* The level of the code, and one step below it for the headline.
|
|
80
|
+
*
|
|
81
|
+
* Defaults to `h1`, because a Page owns the top of the document outline and the
|
|
82
|
+
* code is this screen's one string that is the same for every failure of its kind.
|
|
83
|
+
*/
|
|
84
|
+
headingLevel?: HeadingLevel;
|
|
85
|
+
/** Layout only, exactly as on every Item. Changing a Prism-owned visual property from here is prohibited. */
|
|
86
|
+
className?: string;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* The props an ErrorPage takes.
|
|
90
|
+
*
|
|
91
|
+
* Every string and every destination is a prop and the Page ships none. There is no
|
|
92
|
+
* "something went wrong", no "please try again" and no product name, for the same
|
|
93
|
+
* reason `NotFoundPage` gives: the failure screens are the ones every reader and no
|
|
94
|
+
* crawler sees, so a sentence written here would be a claim about a product this
|
|
95
|
+
* package knows nothing about, in the exact place where being wrong is worst.
|
|
96
|
+
*/
|
|
97
|
+
export type ErrorPageProps = ErrorPageFields & ({
|
|
98
|
+
/**
|
|
99
|
+
* The support reference a reader quotes to a person: the request id, the
|
|
100
|
+
* incident, the case number.
|
|
101
|
+
*
|
|
102
|
+
* A `string` because it is a machine value a reader copies rather than
|
|
103
|
+
* reads, which is why it is drawn in the mono face and why the label beside
|
|
104
|
+
* it is the caller's word.
|
|
105
|
+
*/
|
|
106
|
+
reference: string;
|
|
107
|
+
/**
|
|
108
|
+
* The word naming that value.
|
|
109
|
+
*
|
|
110
|
+
* Required here and forbidden on the other arm. "Reference", "Incident"
|
|
111
|
+
* and "Case" are three words for three products, and a reference a reader
|
|
112
|
+
* has to guess the name of is a reference they cannot quote.
|
|
113
|
+
*/
|
|
114
|
+
referenceLabel: string;
|
|
115
|
+
} | {
|
|
116
|
+
/** No reference on this screen. */
|
|
117
|
+
reference?: never;
|
|
118
|
+
/** No word is needed, because there is no value to name. */
|
|
119
|
+
referenceLabel?: never;
|
|
120
|
+
});
|
|
121
|
+
/**
|
|
122
|
+
* A complete failure screen: the code, what happened, the retry, and the ways out.
|
|
123
|
+
*
|
|
124
|
+
* **This is the third of the three Pages that `DESIGN.md` records under Known Open
|
|
125
|
+
* Items as deferred to v1.1**, so it discharges that row rather than adding to the
|
|
126
|
+
* tail. The other two are `PricingPage` and `OnboardingPage`.
|
|
127
|
+
*
|
|
128
|
+
* **It is the sibling of `NotFoundPage` and the two fail for opposite reasons, which
|
|
129
|
+
* is the reason they are two items rather than one with a prop.** A not-found is a
|
|
130
|
+
* request that will never succeed: the address is wrong, the page was never there,
|
|
131
|
+
* and no amount of asking again produces it, so a retry on a 404 is a lie told by a
|
|
132
|
+
* button, and a reader who believes it waits, and then believes the next one too. A
|
|
133
|
+
* server error is a request that may well succeed on a second try: the database was
|
|
134
|
+
* briefly unreachable, a deploy was halfway, a queue was full. So on this screen the
|
|
135
|
+
* retry is not one control among several, it is the most important thing on the page,
|
|
136
|
+
* and it goes first, above the links and above the sentence that names the failure.
|
|
137
|
+
* A design system that treated the two as one item, with a `retry` prop on the shared
|
|
138
|
+
* screen and a flag deciding whether to draw it, would be wrong twice: it would teach
|
|
139
|
+
* a 404 reader to press a button that cannot work, and it would teach an error
|
|
140
|
+
* reader that the product agrees with them. Two screens with one shape between them
|
|
141
|
+
* is the honest arrangement, and the cost is that a consumer with an error boundary
|
|
142
|
+
* renders two components and holds two sets of words, which is a sentence in their
|
|
143
|
+
* own copy rather than a fork.
|
|
144
|
+
*
|
|
145
|
+
* **Everything else is deliberately identical to its sibling**, and the shape of
|
|
146
|
+
* that sameness is the argument. The code is the `h1` and the headline is one step
|
|
147
|
+
* below it, for the reason `NotFoundPage` gives: the code is the one string on the
|
|
148
|
+
* screen that is the same for every failure of its kind, so it is what anything
|
|
149
|
+
* reading the outline indexes. The code is set in the mono face because it is a
|
|
150
|
+
* machine value and that is the face this package annotates machine values with. The
|
|
151
|
+
* links are native anchors with real destinations, for the reason its sibling gives
|
|
152
|
+
* and for the same doubled reason: a reader who has just followed one link to a
|
|
153
|
+
* failure is the reader on this site who most wants to see where the next one goes.
|
|
154
|
+
*
|
|
155
|
+
* **`retry` is a slot and that is what keeps this screen a server Component, and the
|
|
156
|
+
* argument is about the boundary rather than about the control.** The rejected shape
|
|
157
|
+
* was `retry: { label, onRetry }`: a handler is a function, a function is a piece of
|
|
158
|
+
* state, and state is a client module, so that shape would have put the entire
|
|
159
|
+
* failure screen, including every link and the code, on the client because one button
|
|
160
|
+
* wanted an `onClick`. Passing the control in as a node inverts it: the caller writes
|
|
161
|
+
* their own button in their own client component, this Page renders the node, and a
|
|
162
|
+
* consumer whose retry is a router refresh, a mutation retry or a plain reload all
|
|
163
|
+
* pass their own thing and get it drawn first. The cost is that Prism cannot check
|
|
164
|
+
* that the slot is a control at all, and can neither label it nor disable it while a
|
|
165
|
+
* retry is in flight, so a caller whose retry needs a busy state holds that state in
|
|
166
|
+
* the component they wrote. That is the right home for it: the in-flight state is a
|
|
167
|
+
* fact about the consumer's request and not about a screen.
|
|
168
|
+
*
|
|
169
|
+
* **The reference is a `dl`, and the label is a prop, because the word is the
|
|
170
|
+
* consumer's.** "Reference", "Incident" and "Case" are three words for three
|
|
171
|
+
* products and a reader has to be able to quote the word their support process asks
|
|
172
|
+
* for. The value itself is a machine string a reader copies rather than reads, so it
|
|
173
|
+
* is drawn in the mono face, and the pair is a definition list so a screen reader
|
|
174
|
+
* announces the label with the value rather than reading a bare string.
|
|
175
|
+
*
|
|
176
|
+
* The Page carries no `noindex` and no `robots` directive, for the reason its
|
|
177
|
+
* sibling gives: what a failure response is indexed as is the consumer's server's
|
|
178
|
+
* decision, and a component that declared it would be making a claim about a
|
|
179
|
+
* deployment it cannot see.
|
|
180
|
+
*
|
|
181
|
+
* It is a server Component. It fetches nothing, it holds no state and it imports no
|
|
182
|
+
* router, so a consumer renders it from whichever route their framework names for
|
|
183
|
+
* the status, and nothing on the screen costs client JavaScript until the caller's
|
|
184
|
+
* own retry control does.
|
|
185
|
+
*/
|
|
186
|
+
export declare function ErrorPage({ code, title, description, retry, links, linksLabel, reference, referenceLabel, children, headingLevel, className, }: ErrorPageProps): import("react").JSX.Element;
|
|
187
|
+
export default ErrorPage;
|
|
188
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pages/error-page/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,EAAyC,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAItG;;;;;;;;;GASG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED;;;;;;;;GAQG;AACH,KAAK,eAAe,GAAG;IACrB;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,0FAA0F;IAC1F,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB;;;OAGG;IACH,KAAK,EAAE,SAAS,aAAa,EAAE,CAAA;IAC/B;;;;;;;OAOG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB,wFAAwF;IACxF,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,6GAA6G;IAC7G,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,eAAe,GAC1C,CACI;IACE;;;;;;;OAOG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;;;;;OAMG;IACH,cAAc,EAAE,MAAM,CAAA;CACvB,GACD;IACE,mCAAmC;IACnC,SAAS,CAAC,EAAE,KAAK,CAAA;IACjB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,KAAK,CAAA;CACvB,CACJ,CAAA;AAqBH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,KAAK,EACL,KAAK,EACL,UAAU,EACV,SAAS,EACT,cAAc,EACd,QAAQ,EACR,YAAmB,EACnB,SAAS,GACV,EAAE,cAAc,+BAqEhB;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CtaLink } from '../../components/ui/cta-link.js';
|
|
3
|
+
import { Prose } from '../../components/ui/prose.js';
|
|
4
|
+
import { Section, childLevel, headingSizeClass } from '../../components/ui/section.js';
|
|
5
|
+
import { Heading, Text } from '../../components/ui/typography.js';
|
|
6
|
+
import { cn } from '../../lib/utils.js';
|
|
7
|
+
/**
|
|
8
|
+
* The one check the union cannot make, run before anything is drawn.
|
|
9
|
+
*
|
|
10
|
+
* It is here for the JavaScript caller and for a value that came out of a database
|
|
11
|
+
* with the type's guarantee already gone, for the reason `Help01`, `Team01` and
|
|
12
|
+
* `Onboarding01` each keep their own: a defect that is invisible in a screenshot is
|
|
13
|
+
* not a defect a design system can afford to ship quietly.
|
|
14
|
+
*/
|
|
15
|
+
function assertReference(reference, referenceLabel) {
|
|
16
|
+
if (reference === undefined)
|
|
17
|
+
return;
|
|
18
|
+
if (referenceLabel === undefined || referenceLabel.trim() === '') {
|
|
19
|
+
throw new Error('ErrorPage: a reference is shown with no referenceLabel, so the value would sit on the page with nothing ' +
|
|
20
|
+
'naming it and a reader would have no way to know what it is for. Pass the word your support process ' +
|
|
21
|
+
'asks readers to quote, or drop the reference.');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A complete failure screen: the code, what happened, the retry, and the ways out.
|
|
26
|
+
*
|
|
27
|
+
* **This is the third of the three Pages that `DESIGN.md` records under Known Open
|
|
28
|
+
* Items as deferred to v1.1**, so it discharges that row rather than adding to the
|
|
29
|
+
* tail. The other two are `PricingPage` and `OnboardingPage`.
|
|
30
|
+
*
|
|
31
|
+
* **It is the sibling of `NotFoundPage` and the two fail for opposite reasons, which
|
|
32
|
+
* is the reason they are two items rather than one with a prop.** A not-found is a
|
|
33
|
+
* request that will never succeed: the address is wrong, the page was never there,
|
|
34
|
+
* and no amount of asking again produces it, so a retry on a 404 is a lie told by a
|
|
35
|
+
* button, and a reader who believes it waits, and then believes the next one too. A
|
|
36
|
+
* server error is a request that may well succeed on a second try: the database was
|
|
37
|
+
* briefly unreachable, a deploy was halfway, a queue was full. So on this screen the
|
|
38
|
+
* retry is not one control among several, it is the most important thing on the page,
|
|
39
|
+
* and it goes first, above the links and above the sentence that names the failure.
|
|
40
|
+
* A design system that treated the two as one item, with a `retry` prop on the shared
|
|
41
|
+
* screen and a flag deciding whether to draw it, would be wrong twice: it would teach
|
|
42
|
+
* a 404 reader to press a button that cannot work, and it would teach an error
|
|
43
|
+
* reader that the product agrees with them. Two screens with one shape between them
|
|
44
|
+
* is the honest arrangement, and the cost is that a consumer with an error boundary
|
|
45
|
+
* renders two components and holds two sets of words, which is a sentence in their
|
|
46
|
+
* own copy rather than a fork.
|
|
47
|
+
*
|
|
48
|
+
* **Everything else is deliberately identical to its sibling**, and the shape of
|
|
49
|
+
* that sameness is the argument. The code is the `h1` and the headline is one step
|
|
50
|
+
* below it, for the reason `NotFoundPage` gives: the code is the one string on the
|
|
51
|
+
* screen that is the same for every failure of its kind, so it is what anything
|
|
52
|
+
* reading the outline indexes. The code is set in the mono face because it is a
|
|
53
|
+
* machine value and that is the face this package annotates machine values with. The
|
|
54
|
+
* links are native anchors with real destinations, for the reason its sibling gives
|
|
55
|
+
* and for the same doubled reason: a reader who has just followed one link to a
|
|
56
|
+
* failure is the reader on this site who most wants to see where the next one goes.
|
|
57
|
+
*
|
|
58
|
+
* **`retry` is a slot and that is what keeps this screen a server Component, and the
|
|
59
|
+
* argument is about the boundary rather than about the control.** The rejected shape
|
|
60
|
+
* was `retry: { label, onRetry }`: a handler is a function, a function is a piece of
|
|
61
|
+
* state, and state is a client module, so that shape would have put the entire
|
|
62
|
+
* failure screen, including every link and the code, on the client because one button
|
|
63
|
+
* wanted an `onClick`. Passing the control in as a node inverts it: the caller writes
|
|
64
|
+
* their own button in their own client component, this Page renders the node, and a
|
|
65
|
+
* consumer whose retry is a router refresh, a mutation retry or a plain reload all
|
|
66
|
+
* pass their own thing and get it drawn first. The cost is that Prism cannot check
|
|
67
|
+
* that the slot is a control at all, and can neither label it nor disable it while a
|
|
68
|
+
* retry is in flight, so a caller whose retry needs a busy state holds that state in
|
|
69
|
+
* the component they wrote. That is the right home for it: the in-flight state is a
|
|
70
|
+
* fact about the consumer's request and not about a screen.
|
|
71
|
+
*
|
|
72
|
+
* **The reference is a `dl`, and the label is a prop, because the word is the
|
|
73
|
+
* consumer's.** "Reference", "Incident" and "Case" are three words for three
|
|
74
|
+
* products and a reader has to be able to quote the word their support process asks
|
|
75
|
+
* for. The value itself is a machine string a reader copies rather than reads, so it
|
|
76
|
+
* is drawn in the mono face, and the pair is a definition list so a screen reader
|
|
77
|
+
* announces the label with the value rather than reading a bare string.
|
|
78
|
+
*
|
|
79
|
+
* The Page carries no `noindex` and no `robots` directive, for the reason its
|
|
80
|
+
* sibling gives: what a failure response is indexed as is the consumer's server's
|
|
81
|
+
* decision, and a component that declared it would be making a claim about a
|
|
82
|
+
* deployment it cannot see.
|
|
83
|
+
*
|
|
84
|
+
* It is a server Component. It fetches nothing, it holds no state and it imports no
|
|
85
|
+
* router, so a consumer renders it from whichever route their framework names for
|
|
86
|
+
* the status, and nothing on the screen costs client JavaScript until the caller's
|
|
87
|
+
* own retry control does.
|
|
88
|
+
*/
|
|
89
|
+
export function ErrorPage({ code, title, description, retry, links, linksLabel, reference, referenceLabel, children, headingLevel = 'h1', className, }) {
|
|
90
|
+
assertReference(reference, referenceLabel);
|
|
91
|
+
/*
|
|
92
|
+
The headline sits one step below the code, which is the same derivation every
|
|
93
|
+
Block uses and the reason a hardcoded `h2` would be right exactly once. The
|
|
94
|
+
size is asked of the same table rather than passed to `Heading`'s `size`, which
|
|
95
|
+
is a step of the scale and not a rung of the ladder, so the code and the
|
|
96
|
+
headline were drawn at fixed sizes that the ladder's ceiling has since left
|
|
97
|
+
behind.
|
|
98
|
+
*/
|
|
99
|
+
const TitleHeading = childLevel(headingLevel);
|
|
100
|
+
return (_jsx(Section, { "data-slot": "error-page", className: cn(className), children: _jsxs("div", { "data-slot": "error-page-body", className: "flex flex-col items-start gap-6", children: [_jsx(Heading, { as: headingLevel, className: cn('text-muted-foreground font-mono', headingSizeClass(headingLevel)), children: code }), _jsxs("div", { className: "flex flex-col gap-3", children: [_jsx(Heading, { as: TitleHeading, className: headingSizeClass(TitleHeading), children: title }), description ? _jsx(Text, { size: "lg", children: description }) : null] }), retry === undefined ? null : (_jsx("div", { "data-slot": "error-page-retry", children: retry })), links.length > 0 ? (_jsx("nav", { "aria-label": linksLabel, className: "flex flex-wrap items-center gap-3", children: links.map((link, index) => (_jsx(CtaLink, { href: link.href, newTab: link.newTab, variant: index === 0 ? 'default' : 'outline', children: link.label }, link.href))) })) : null, reference === undefined ? null : (_jsxs("dl", { "data-slot": "error-page-reference", className: "flex flex-col items-start gap-1", children: [_jsx("dt", { className: "text-muted-foreground text-xs", children: referenceLabel }), _jsx("dd", { className: "font-mono text-sm", children: reference })] })), children ? _jsx(Prose, { className: "mt-2", children: children }) : null] }) }));
|
|
101
|
+
}
|
|
102
|
+
export default ErrorPage;
|