@nanisoft/prism-ui 0.13.0 → 0.15.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 +12 -1
- package/dist/blocks/data-table-01/data-table.d.ts.map +1 -1
- package/dist/blocks/data-table-01/data-table.js +8 -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 +124 -11
- package/dist/blocks/page-header-01/page-header.d.ts.map +1 -1
- package/dist/blocks/page-header-01/page-header.js +25 -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 +3 -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 +18 -1
- package/dist/blocks/site-footer/site-footer.d.ts.map +1 -1
- package/dist/blocks/site-footer/site-footer.js +8 -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/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/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/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 +23 -0
- package/dist/components/ui/prose.d.ts.map +1 -1
- package/dist/components/ui/prose.js +30 -1
- 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 +108 -1
- package/dist/components/ui/section.d.ts.map +1 -1
- package/dist/components/ui/section.js +109 -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/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.js +4 -4
- 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/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 +8 -0
- package/dist/pages/docs-shell/docs-shell.d.ts.map +1 -1
- package/dist/pages/docs-shell/docs-shell.js +24 -7
- 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 +98 -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/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 +1003 -55
- package/package.json +9 -3
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type HeadingLevel } from '../../components/ui/section.js';
|
|
3
|
+
/**
|
|
4
|
+
* The five states a thing in transit can be in.
|
|
5
|
+
*
|
|
6
|
+
* Five, and they are positions rather than a vocabulary, so the words for them are
|
|
7
|
+
* the caller's through `stateLabel` and the machine value never reaches a reader.
|
|
8
|
+
* That is the whole reason `stateLabel` is required wherever `state` is: four
|
|
9
|
+
* NaniSoft products each track this differently, and between them they use eleven
|
|
10
|
+
* words for these five positions, where "In transit" and "Shipping" and "Running"
|
|
11
|
+
* are one position, and "Delivered" and "Done" and "Complete" are another.
|
|
12
|
+
*
|
|
13
|
+
* A sixth state would be the one that splits a position that does not need
|
|
14
|
+
* splitting: a `delayed` over a `held`, or a `delivered` that is not `complete`.
|
|
15
|
+
* Each one is a colour a reader has to learn and a word a maintainer has to keep
|
|
16
|
+
* true, and a ladder with more rungs than positions is how a stage column stops
|
|
17
|
+
* being readable. What a caller wants to say about why something is late is the
|
|
18
|
+
* caller's own `description` on the item and the words beside the stage it is on.
|
|
19
|
+
*/
|
|
20
|
+
export type DeliveryState = 'queued' | 'in-transit' | 'held' | 'delivered' | 'failed';
|
|
21
|
+
/**
|
|
22
|
+
* The three states a stage on the rail can be in.
|
|
23
|
+
*
|
|
24
|
+
* `done` is behind the reader, `current` is where they are, and `upcoming` is ahead.
|
|
25
|
+
* A stage's state is a position in a sequence rather than a judgement about the
|
|
26
|
+
* delivery, which is why this list is three and `DeliveryState` is five: a delivery
|
|
27
|
+
* can be held, and a stage in a sequence cannot, because a held stage is a fact
|
|
28
|
+
* about the delivery and belongs in its state.
|
|
29
|
+
*/
|
|
30
|
+
export type DeliveryStageState = 'done' | 'current' | 'upcoming';
|
|
31
|
+
/**
|
|
32
|
+
* The thing that is moving: what it is, and where its full record lives.
|
|
33
|
+
*
|
|
34
|
+
* `name` is the anchor of the whole Block. The four consumer sites that would
|
|
35
|
+
* install this one each have their own noun for it, a release, a migration, a
|
|
36
|
+
* configuration push and a fleet rollout, so the name is the caller's and this
|
|
37
|
+
* Block has no word for it at all.
|
|
38
|
+
*/
|
|
39
|
+
export type DeliveryItem = {
|
|
40
|
+
/** What the thing is, as the product writes it. */
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* The line under the name, for the part of the record the name cannot carry:
|
|
44
|
+
* which estate, which fleet, which region.
|
|
45
|
+
*
|
|
46
|
+
* A node, because the honest line is a composition of a caller's own facts and
|
|
47
|
+
* very often carries a link to the record itself, and a `string` would force a
|
|
48
|
+
* flattening that loses whichever of those it could not hold.
|
|
49
|
+
*/
|
|
50
|
+
detail?: ReactNode;
|
|
51
|
+
/** Where the record lives in full. Rendered as a real link. */
|
|
52
|
+
href?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The words on that link, and required whenever `href` is set.
|
|
55
|
+
*
|
|
56
|
+
* A link announced by its address is punctuation rather than a name, and a reader
|
|
57
|
+
* following a link to check a claim deserves to know what they are about to open.
|
|
58
|
+
* The sentence belongs to the caller, because the destination is theirs.
|
|
59
|
+
*/
|
|
60
|
+
hrefLabel?: string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* One stage of the journey: what it is called, when it happened or is due, where
|
|
64
|
+
* it stands, and the words for where it stands.
|
|
65
|
+
*
|
|
66
|
+
* **The moment and the state are separate fields because they are separate facts,
|
|
67
|
+
* and because a stage that has a date and no state is a real one.** That matters
|
|
68
|
+
* more here than on most surfaces: a stage that has not happened yet carries a
|
|
69
|
+
* name and a date and nothing else, because a shipment screen that shows a
|
|
70
|
+
* delivery time as though it had happened is a screen lying to a reader who is
|
|
71
|
+
* waiting. So `at` on an `upcoming` stage is a reading, and this Block draws it in
|
|
72
|
+
* the muted ink beside a `stateLabel` the caller wrote, and the two together say
|
|
73
|
+
* the only thing that is true about a stage that has not happened.
|
|
74
|
+
*/
|
|
75
|
+
export type DeliveryStage = {
|
|
76
|
+
/** A stable key for the stage. */
|
|
77
|
+
id: string;
|
|
78
|
+
/** What the stage is called, in the caller's own words. */
|
|
79
|
+
name: string;
|
|
80
|
+
/**
|
|
81
|
+
* When the stage happened, or is expected to.
|
|
82
|
+
*
|
|
83
|
+
* Epoch milliseconds, a `Date`, or a string the platform parses, and Prism hands
|
|
84
|
+
* it to `RelativeTime` untouched, so the absolute reading a reader sees is the
|
|
85
|
+
* platform's own in their language. See the Block JSDoc for why this Block
|
|
86
|
+
* formats nothing and takes the sentence from the caller instead.
|
|
87
|
+
*
|
|
88
|
+
* An `upcoming` stage's `at` is an expectation, not a record, and the JSDoc on
|
|
89
|
+
* this type says what this Block does and does not claim about one.
|
|
90
|
+
*/
|
|
91
|
+
at?: number | string;
|
|
92
|
+
/**
|
|
93
|
+
* The words for the moment, given the moment.
|
|
94
|
+
*
|
|
95
|
+
* Optional, and its absence is a legitimate state rather than a gap: a caller
|
|
96
|
+
* whose stages are mostly dates wants the platform's own absolute reading with
|
|
97
|
+
* nothing beside it, and a caller who has three languages already has a
|
|
98
|
+
* component for the relative phrase. See the Block JSDoc for why it is a
|
|
99
|
+
* function: the sentence has a plural, it changes shape past a day, and every
|
|
100
|
+
* language words it differently.
|
|
101
|
+
*/
|
|
102
|
+
dateLabel?: (value: number | string) => string;
|
|
103
|
+
/**
|
|
104
|
+
* Where the stage stands.
|
|
105
|
+
*
|
|
106
|
+
* `done` is behind the reader, `current` is where they are, and `upcoming` is
|
|
107
|
+
* ahead. A stage's state is a position in a sequence rather than a judgement
|
|
108
|
+
* about the delivery, which is why this list is three and `DeliveryState` is
|
|
109
|
+
* five.
|
|
110
|
+
*/
|
|
111
|
+
state: DeliveryStageState;
|
|
112
|
+
/**
|
|
113
|
+
* The words for that state, in the product's own vocabulary.
|
|
114
|
+
*
|
|
115
|
+
* Required whenever a stage carries a state, and every stage does, so the run
|
|
116
|
+
* throws without it. The mark `Steps` draws is a shape, and a shape is not a
|
|
117
|
+
* sentence a reader can act on: "Signed", "Rolling out" and "Waiting on a region"
|
|
118
|
+
* are the same position in three products' words.
|
|
119
|
+
*/
|
|
120
|
+
stateLabel?: string;
|
|
121
|
+
/**
|
|
122
|
+
* The line under the stage's name on the rail, for whatever the caller wants
|
|
123
|
+
* said about this particular stage.
|
|
124
|
+
*
|
|
125
|
+
* A node, because the honest line is a sentence with a link in it or a figure
|
|
126
|
+
* beside it, and the rail draws it under the name where a reader who has arrived
|
|
127
|
+
* at this stage wants it.
|
|
128
|
+
*/
|
|
129
|
+
detail?: ReactNode;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* The props a Delivery01 takes.
|
|
133
|
+
*
|
|
134
|
+
* Every string is a prop and the Block ships none. There is no item, no state, no
|
|
135
|
+
* stage, no moment and not one word of the sentence that says what the states are
|
|
136
|
+
* called or how long anything took. The expected-reading sentence is the sharpest
|
|
137
|
+
* version of that rule, because "arriving Tuesday" and "due Tuesday" and "next
|
|
138
|
+
* week" are three products' decisions and a reader who is waiting for a thing has
|
|
139
|
+
* the least patience for a sentence in the wrong language.
|
|
140
|
+
*/
|
|
141
|
+
export type Delivery01Props = {
|
|
142
|
+
/** Optional label above the section title. See the No-Default-Eyebrow Rule. */
|
|
143
|
+
eyebrow?: ReactNode;
|
|
144
|
+
/**
|
|
145
|
+
* The section title, required.
|
|
146
|
+
*
|
|
147
|
+
* Required because a reader on a page about a thing in transit needs to know
|
|
148
|
+
* whose it is, and a stage rail with a release name and no heading above it is a
|
|
149
|
+
* diagram with no caption. The name of the thing itself is the item, not the
|
|
150
|
+
* title: the title is what the section is about, which on a fleet is the fleet
|
|
151
|
+
* and on a product page is the feature.
|
|
152
|
+
*/
|
|
153
|
+
title: ReactNode;
|
|
154
|
+
/** One or two sentences under the title. */
|
|
155
|
+
description?: ReactNode;
|
|
156
|
+
/**
|
|
157
|
+
* The thing that is moving.
|
|
158
|
+
*
|
|
159
|
+
* Required, and it is a single thing rather than a list, which is the one place
|
|
160
|
+
* this Block refuses the shape a storefront would want. A shipment screen with
|
|
161
|
+
* four shipments on it is a list, and a list is what `ProjectList01` is; a
|
|
162
|
+
* delivery that is going somewhere is one thing with a rail under it, and a
|
|
163
|
+
* reader who is waiting for it wants its state and not a comparison with three
|
|
164
|
+
* others. A caller with four of them composes four of these or reaches for a
|
|
165
|
+
* Page, and the cost is named: the Block draws one journey.
|
|
166
|
+
*/
|
|
167
|
+
item: DeliveryItem;
|
|
168
|
+
/**
|
|
169
|
+
* Where the whole thing stands.
|
|
170
|
+
*
|
|
171
|
+
* Optional, and its absence is a real state: a thing whose status has not been
|
|
172
|
+
* read yet is a thing this Block says nothing about, which is better than a
|
|
173
|
+
* thing it guesses at. When it is given, `stateLabel` is required inside it.
|
|
174
|
+
*/
|
|
175
|
+
state?: DeliveryState;
|
|
176
|
+
/**
|
|
177
|
+
* The words for the state, in the product's own vocabulary.
|
|
178
|
+
*
|
|
179
|
+
* Required and not derived from `state`, for the reason `DeliveryState` gives:
|
|
180
|
+
* the state is a colour and the words are a claim, and four products use eleven
|
|
181
|
+
* words for five positions between them. See `DeliveryState` for the full
|
|
182
|
+
* argument.
|
|
183
|
+
*/
|
|
184
|
+
stateLabel?: (state: DeliveryState) => string;
|
|
185
|
+
/**
|
|
186
|
+
* When the thing is expected to arrive, and the words for it.
|
|
187
|
+
*
|
|
188
|
+
* Both optional, and both absent together or not at all, because a moment with no
|
|
189
|
+
* sentence beside it is a date a reader has to interpret and a sentence with no
|
|
190
|
+
* moment beside it is a promise about nothing. Omit the pair for a thing with no
|
|
191
|
+
* expected arrival: a stage-based delivery that reports its own progress has no
|
|
192
|
+
* single moment to point at, and inventing one would be a claim about a schedule
|
|
193
|
+
* this Block cannot see.
|
|
194
|
+
*/
|
|
195
|
+
expectedAt?: number | string;
|
|
196
|
+
/**
|
|
197
|
+
* The words for the expected moment, given the moment.
|
|
198
|
+
*
|
|
199
|
+
* A function for the reason `dateLabel` is one, and the reason is stronger here
|
|
200
|
+
* than on a stage: a reader waiting for a thing is the reader least able to be
|
|
201
|
+
* shown a date in the wrong locale, and "arriving in about two hours" has a
|
|
202
|
+
* plural, changes shape past a day, and is worded differently in every language
|
|
203
|
+
* there is. Prism formats what `Intl` already localises, which is the absolute
|
|
204
|
+
* reading, and hands the sentence back.
|
|
205
|
+
*/
|
|
206
|
+
expectedLabel?: (value: number | string) => string;
|
|
207
|
+
/**
|
|
208
|
+
* The stages the journey has, in the order it runs them.
|
|
209
|
+
*
|
|
210
|
+
* Order is the caller's because it is a claim about a sequence, and the rail
|
|
211
|
+
* this Block composes says "steps" to every reader and to every crawler, so a
|
|
212
|
+
* list in an order the journey does not have is a wrong diagram rather than a
|
|
213
|
+
* layout problem.
|
|
214
|
+
*/
|
|
215
|
+
stages: readonly DeliveryStage[];
|
|
216
|
+
/**
|
|
217
|
+
* How far along the journey is, and the sentence the bar announces.
|
|
218
|
+
*
|
|
219
|
+
* Omit the pair for a thing that is not measured. A bar at zero is a claim that
|
|
220
|
+
* nothing has happened, and a delivery the product reports by stage rather than
|
|
221
|
+
* by percentage is a real shape.
|
|
222
|
+
*/
|
|
223
|
+
progress?: number;
|
|
224
|
+
/**
|
|
225
|
+
* The sentence the bar announces, given the value.
|
|
226
|
+
*
|
|
227
|
+
* **A function and not a string, and the reason is the seam rather than the
|
|
228
|
+
* grammar.** A bar is a percentage of something this Block cannot see, and
|
|
229
|
+
* forty per cent of a rollout is not the same fact as forty per cent of a
|
|
230
|
+
* migration. It is also a function because this Block is a server Component and
|
|
231
|
+
* `Progress` is a client one, so a callback handed down from here is a build
|
|
232
|
+
* error rather than a warning, and `Progress` therefore publishes `valueText`
|
|
233
|
+
* for exactly this case. The cost of composing it is named: `Progress` is a
|
|
234
|
+
* client Component, so a delivery with a fill is a client island, and a caller
|
|
235
|
+
* with forty of them on one page is paying for forty. The answer is to leave
|
|
236
|
+
* `progress` off the ones that are not measured.
|
|
237
|
+
*/
|
|
238
|
+
progressLabel?: (value: number) => string;
|
|
239
|
+
/**
|
|
240
|
+
* The controls that act on this delivery: retry, cancel, open it somewhere else.
|
|
241
|
+
*
|
|
242
|
+
* A slot rather than a set of named buttons, because which controls a delivery
|
|
243
|
+
* has is the caller's fact. A thing that can be cancelled and a thing that can be
|
|
244
|
+
* re-run share this frame and nothing else, and a Block that drew a retry control
|
|
245
|
+
* would hand every consumer a permission its product may not grant.
|
|
246
|
+
*/
|
|
247
|
+
actions?: ReactNode;
|
|
248
|
+
/** Heading level for the section title. See `HeadingLevel`. */
|
|
249
|
+
headingLevel?: HeadingLevel;
|
|
250
|
+
/**
|
|
251
|
+
* Layout only, exactly as on every Block. Changing a Prism-owned visual
|
|
252
|
+
* property from here is prohibited.
|
|
253
|
+
*/
|
|
254
|
+
className?: string;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* A thing in transit: what it is, where it stands, the stages it has been through,
|
|
258
|
+
* and the reading a reader is waiting for.
|
|
259
|
+
*
|
|
260
|
+
* **This is a shipment screen and the pattern is the storefront's, so the
|
|
261
|
+
* translation is a change of subject rather than a change of shape.** A shipment
|
|
262
|
+
* screen says what a parcel is, where it is, which stage it has reached and when
|
|
263
|
+
* it is expected; this says the same four things about the delivery of a
|
|
264
|
+
* configuration to a fleet of nodes. The reader's question is identical in both
|
|
265
|
+
* cases and it is the reason the arrangement is the one it is: someone is waiting,
|
|
266
|
+
* and the four facts they need are what, where, how far and when. What is not
|
|
267
|
+
* identical is what a Block can say about any of them, and that is where every
|
|
268
|
+
* string on this surface comes from the caller.
|
|
269
|
+
*
|
|
270
|
+
* **A stage that has not happened renders as an expected reading and never as a
|
|
271
|
+
* fact, and that is the sentence this Block is built around.** A shipment screen
|
|
272
|
+
* that shows a delivery time as though it had happened is a screen lying to a
|
|
273
|
+
* reader who is waiting, and the lie is worse here than in a shop for a reason that
|
|
274
|
+
* has nothing to do with the subject: a reader waiting for a parcel is disappointed
|
|
275
|
+
* and a reader waiting for a configuration is deciding whether to roll back. So an
|
|
276
|
+
* `upcoming` stage carries a name, a date and nothing else. This Block draws the
|
|
277
|
+
* date in the muted ink, beside a `stateLabel` the caller wrote, and the two
|
|
278
|
+
* together are the only thing it says. There is no tick, no rule filled past the
|
|
279
|
+
* reader's position, no "delivered" in a colour a reader might mistake for the
|
|
280
|
+
* stage ahead, and the rail's own connector stops at the current stage, which is
|
|
281
|
+
* `Steps`' arrangement and the reason this Block composes it rather than drawing
|
|
282
|
+
* its own. A caller who wants a stage to carry more has `detail`, and the honest
|
|
283
|
+
* answer to a caller whose stage needs a claim about the future is that the claim
|
|
284
|
+
* is a promise, and a promise belongs in the caller's own copy beside the rail
|
|
285
|
+
* rather than in a diagram this Block draws.
|
|
286
|
+
*
|
|
287
|
+
* **The words travel as a string because this Block is a server Component and
|
|
288
|
+
* `Progress` is a client one, and a function cannot cross that seam.** That is the
|
|
289
|
+
* whole of the reason for the `valueText` prop, and it is worth stating in full
|
|
290
|
+
* because the alternative looks like a style choice. `Progress` takes both a
|
|
291
|
+
* `getAriaValueText` function and a `valueText` string, and a Block that passed the
|
|
292
|
+
* function down would be a build error in every framework that draws the server
|
|
293
|
+
* boundary, not a warning: the function would have to be serialised to cross it
|
|
294
|
+
* and cannot be. So the sentence is computed here, on the server, where the
|
|
295
|
+
* caller's function is still a function, and it travels down as a string. The same
|
|
296
|
+
* argument is why `stateLabel` and `expectedLabel` and `dateLabel` are functions
|
|
297
|
+
* rather than strings: they are called here too, and what a reader hears is the
|
|
298
|
+
* caller's own sentence in their own language, while the absolute reading beside it
|
|
299
|
+
* is the platform's.
|
|
300
|
+
*
|
|
301
|
+
* **The state is `Status` and the rail is `Steps`, and neither was redrawn.**
|
|
302
|
+
* `Status` is a dot in one of five tones beside the caller's words, and it owns the
|
|
303
|
+
* arrangement that matters here: the dot is `aria-hidden` and the words carry the
|
|
304
|
+
* state, so a reader who cannot separate `warning` from `destructive` still reads
|
|
305
|
+
* which is which, and a state is never colour alone. A hand-drawn dot beside a word
|
|
306
|
+
* would be a second implementation of that Component, and the second one is the one
|
|
307
|
+
* that gets the `aria-hidden` wrong. `Steps` owns three things this Block would
|
|
308
|
+
* otherwise have to settle again: that the states differ by shape before they
|
|
309
|
+
* differ by colour, so a reader who cannot separate a filled disc from a ring is
|
|
310
|
+
* not being told two different things about two different stages; that exactly one
|
|
311
|
+
* step carries `aria-current`, because two current stages is a rail with two
|
|
312
|
+
* answers to where the reader is; and that the rule between the stages is filled up
|
|
313
|
+
* to the reader's position and empty after it, which is the element that says how
|
|
314
|
+
* far along they are and the element that cannot overrun an `upcoming` stage.
|
|
315
|
+
*
|
|
316
|
+
* **The cost of composing `Steps` is its own limitation rather than this Block's,
|
|
317
|
+
* and it is named.** A `Step`'s qualifier is a `string` and a stage's moment is a
|
|
318
|
+
* node, so the rail cannot hold a date. The moments are drawn beneath it as the
|
|
319
|
+
* definition list they are, one row per dated stage, and a caller whose stages are
|
|
320
|
+
* mostly dates wants `MilestoneTimeline01`, which is the Block built for a dated
|
|
321
|
+
* sequence. The second cost is the client island: `Progress` is a client Component,
|
|
322
|
+
* so a delivery with a fill is one island, and the answer for a caller with many is
|
|
323
|
+
* to leave `progress` off the ones that are not measured.
|
|
324
|
+
*
|
|
325
|
+
* **The moments are the caller's and the sentences are the caller's, and the
|
|
326
|
+
* absence of a `time` element's `datetime` on an `upcoming` stage is a decision
|
|
327
|
+
* rather than an oversight.** A moment that has happened is a fact and belongs in a
|
|
328
|
+
* `<time>` with a machine value, so a crawler and a screen reader get a timestamp
|
|
329
|
+
* whatever the visible reading says. A moment that has not happened is an
|
|
330
|
+
* expectation, and putting a machine value on it invites a consumer's own tooling
|
|
331
|
+
* to read a forecast as a record. This Block draws both through `RelativeTime`,
|
|
332
|
+
* which owns that decision, and the honest cost is that a consumer who wants a
|
|
333
|
+
* scheduled delivery to appear in a calendar feed has to publish it from their own
|
|
334
|
+
* record rather than from this page.
|
|
335
|
+
*
|
|
336
|
+
* **It is a server Component.** No hook, no state, no client code of its own and
|
|
337
|
+
* no router. The only client code it can pull in is one `Progress` island on the
|
|
338
|
+
* delivery that asks for a fill, and the whole thing renders with scripting off, in
|
|
339
|
+
* a print stylesheet and to a crawler.
|
|
340
|
+
*/
|
|
341
|
+
export declare function Delivery01({ eyebrow, title, description, item, state, stateLabel, expectedAt, expectedLabel, stages, progress, progressLabel, actions, headingLevel, className, }: Delivery01Props): import("react").JSX.Element;
|
|
342
|
+
export default Delivery01;
|
|
343
|
+
//# sourceMappingURL=delivery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delivery.d.ts","sourceRoot":"","sources":["../../../src/blocks/delivery-01/delivery.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAKxF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;AA+BrF;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAA;AAiBhE;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;;;;;;OAUG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,CAAA;IAC9C;;;;;;;OAOG;IACH,KAAK,EAAE,kBAAkB,CAAA;IACzB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB,CAAA;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,+EAA+E;IAC/E,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;;;;;;;OAQG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;;;;;;;;OAUG;IACH,IAAI,EAAE,YAAY,CAAA;IAClB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,MAAM,CAAA;IAC7C;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,CAAA;IAClD;;;;;;;OAOG;IACH,MAAM,EAAE,SAAS,aAAa,EAAE,CAAA;IAChC;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;;;;;;;;;OAaG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACzC;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAuBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,KAAK,EACL,WAAW,EACX,IAAI,EACJ,KAAK,EACL,UAAU,EACV,UAAU,EACV,aAAa,EACb,MAAM,EACN,QAAQ,EACR,aAAa,EACb,OAAO,EACP,YAAmB,EACnB,SAAS,GACV,EAAE,eAAe,+BAsOjB;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Progress } from '../../components/ui/progress.js';
|
|
3
|
+
import { RelativeTime } from '../../components/ui/relative-time.js';
|
|
4
|
+
import { Section, SectionHeading } from '../../components/ui/section.js';
|
|
5
|
+
import { Status } from '../../components/ui/status.js';
|
|
6
|
+
import { Steps } from '../../components/ui/steps.js';
|
|
7
|
+
import { cn } from '../../lib/utils.js';
|
|
8
|
+
/**
|
|
9
|
+
* The tone each of the five states is drawn in, from the shared semantic contract
|
|
10
|
+
* and no other.
|
|
11
|
+
*
|
|
12
|
+
* **Two of the five share a role and the sharing is deliberate rather than lazy.**
|
|
13
|
+
* `queued` and `in-transit` are both `info`, the contract's cool role that means
|
|
14
|
+
* not an alarm, because a thing that has not left and a thing that is on its way
|
|
15
|
+
* are both the ordinary states of a delivery. `delivered` is `success`, because it
|
|
16
|
+
* is the state a reader is glad to see. `held` is `warning` and not `destructive`,
|
|
17
|
+
* for the reason `Project01` gives for a blocked project: held is a thing to attend
|
|
18
|
+
* to rather than a breakage, and a list of forty deliveries with four of them in
|
|
19
|
+
* red reads as four incidents and sends a reader looking for a failure that is not
|
|
20
|
+
* happening. `failed` is the one that earns `destructive`, and a caller whose
|
|
21
|
+
* product treats a failure as a permanent outcome has no seam here: the answer is
|
|
22
|
+
* the caller's own `detail` on the item.
|
|
23
|
+
*
|
|
24
|
+
* The cost is named rather than hidden: a held delivery is a real problem, and this
|
|
25
|
+
* tone says "attend to it" rather than "something is broken". A caller whose
|
|
26
|
+
* product means the second has no seam here, and the answer is their own `summary`
|
|
27
|
+
* above the surface.
|
|
28
|
+
*/
|
|
29
|
+
const STATE_TONE = {
|
|
30
|
+
queued: 'info',
|
|
31
|
+
'in-transit': 'info',
|
|
32
|
+
held: 'warning',
|
|
33
|
+
delivered: 'success',
|
|
34
|
+
failed: 'destructive',
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The state a stage's mark is drawn from on the rail.
|
|
38
|
+
*
|
|
39
|
+
* Three entries for three positions. `done` becomes `complete` because that is the
|
|
40
|
+
* word `Steps` uses for a stage behind the reader, and the two vocabularies differ
|
|
41
|
+
* only there. A map rather than a lookup at the call site because the translation is
|
|
42
|
+
* a fact about the Component and not about the data, and a Block that spelled
|
|
43
|
+
* `complete` in three places would be three chances to spell it once wrong.
|
|
44
|
+
*/
|
|
45
|
+
const RAIL_STATE = {
|
|
46
|
+
done: 'complete',
|
|
47
|
+
current: 'current',
|
|
48
|
+
upcoming: 'upcoming',
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* The stage the rail is on, and the reason this Block picks it rather than asking.
|
|
52
|
+
*
|
|
53
|
+
* `Steps` requires exactly one current step and throws without one, and a delivery's
|
|
54
|
+
* stage list is a place where that is genuinely absent: a delivery whose stages are
|
|
55
|
+
* all done has no current stage, and a delivery nobody has started has one that is
|
|
56
|
+
* not declared. So the rail's position is derived when the caller has not declared
|
|
57
|
+
* one: the first stage that has not been done, and the last stage when everything
|
|
58
|
+
* is done, which is the only position a finished rail can hold.
|
|
59
|
+
*
|
|
60
|
+
* The caller who has declared one gets it, and the caller who has declared two is
|
|
61
|
+
* a caller whose data contradicts itself, which the guard above refuses rather than
|
|
62
|
+
* a position this Block guesses at.
|
|
63
|
+
*/
|
|
64
|
+
function railCurrent(stages) {
|
|
65
|
+
const declared = stages.findIndex((stage) => stage.state === 'current');
|
|
66
|
+
if (declared !== -1)
|
|
67
|
+
return declared;
|
|
68
|
+
const firstOpen = stages.findIndex((stage) => stage.state === 'upcoming');
|
|
69
|
+
return firstOpen === -1 ? stages.length - 1 : firstOpen;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A thing in transit: what it is, where it stands, the stages it has been through,
|
|
73
|
+
* and the reading a reader is waiting for.
|
|
74
|
+
*
|
|
75
|
+
* **This is a shipment screen and the pattern is the storefront's, so the
|
|
76
|
+
* translation is a change of subject rather than a change of shape.** A shipment
|
|
77
|
+
* screen says what a parcel is, where it is, which stage it has reached and when
|
|
78
|
+
* it is expected; this says the same four things about the delivery of a
|
|
79
|
+
* configuration to a fleet of nodes. The reader's question is identical in both
|
|
80
|
+
* cases and it is the reason the arrangement is the one it is: someone is waiting,
|
|
81
|
+
* and the four facts they need are what, where, how far and when. What is not
|
|
82
|
+
* identical is what a Block can say about any of them, and that is where every
|
|
83
|
+
* string on this surface comes from the caller.
|
|
84
|
+
*
|
|
85
|
+
* **A stage that has not happened renders as an expected reading and never as a
|
|
86
|
+
* fact, and that is the sentence this Block is built around.** A shipment screen
|
|
87
|
+
* that shows a delivery time as though it had happened is a screen lying to a
|
|
88
|
+
* reader who is waiting, and the lie is worse here than in a shop for a reason that
|
|
89
|
+
* has nothing to do with the subject: a reader waiting for a parcel is disappointed
|
|
90
|
+
* and a reader waiting for a configuration is deciding whether to roll back. So an
|
|
91
|
+
* `upcoming` stage carries a name, a date and nothing else. This Block draws the
|
|
92
|
+
* date in the muted ink, beside a `stateLabel` the caller wrote, and the two
|
|
93
|
+
* together are the only thing it says. There is no tick, no rule filled past the
|
|
94
|
+
* reader's position, no "delivered" in a colour a reader might mistake for the
|
|
95
|
+
* stage ahead, and the rail's own connector stops at the current stage, which is
|
|
96
|
+
* `Steps`' arrangement and the reason this Block composes it rather than drawing
|
|
97
|
+
* its own. A caller who wants a stage to carry more has `detail`, and the honest
|
|
98
|
+
* answer to a caller whose stage needs a claim about the future is that the claim
|
|
99
|
+
* is a promise, and a promise belongs in the caller's own copy beside the rail
|
|
100
|
+
* rather than in a diagram this Block draws.
|
|
101
|
+
*
|
|
102
|
+
* **The words travel as a string because this Block is a server Component and
|
|
103
|
+
* `Progress` is a client one, and a function cannot cross that seam.** That is the
|
|
104
|
+
* whole of the reason for the `valueText` prop, and it is worth stating in full
|
|
105
|
+
* because the alternative looks like a style choice. `Progress` takes both a
|
|
106
|
+
* `getAriaValueText` function and a `valueText` string, and a Block that passed the
|
|
107
|
+
* function down would be a build error in every framework that draws the server
|
|
108
|
+
* boundary, not a warning: the function would have to be serialised to cross it
|
|
109
|
+
* and cannot be. So the sentence is computed here, on the server, where the
|
|
110
|
+
* caller's function is still a function, and it travels down as a string. The same
|
|
111
|
+
* argument is why `stateLabel` and `expectedLabel` and `dateLabel` are functions
|
|
112
|
+
* rather than strings: they are called here too, and what a reader hears is the
|
|
113
|
+
* caller's own sentence in their own language, while the absolute reading beside it
|
|
114
|
+
* is the platform's.
|
|
115
|
+
*
|
|
116
|
+
* **The state is `Status` and the rail is `Steps`, and neither was redrawn.**
|
|
117
|
+
* `Status` is a dot in one of five tones beside the caller's words, and it owns the
|
|
118
|
+
* arrangement that matters here: the dot is `aria-hidden` and the words carry the
|
|
119
|
+
* state, so a reader who cannot separate `warning` from `destructive` still reads
|
|
120
|
+
* which is which, and a state is never colour alone. A hand-drawn dot beside a word
|
|
121
|
+
* would be a second implementation of that Component, and the second one is the one
|
|
122
|
+
* that gets the `aria-hidden` wrong. `Steps` owns three things this Block would
|
|
123
|
+
* otherwise have to settle again: that the states differ by shape before they
|
|
124
|
+
* differ by colour, so a reader who cannot separate a filled disc from a ring is
|
|
125
|
+
* not being told two different things about two different stages; that exactly one
|
|
126
|
+
* step carries `aria-current`, because two current stages is a rail with two
|
|
127
|
+
* answers to where the reader is; and that the rule between the stages is filled up
|
|
128
|
+
* to the reader's position and empty after it, which is the element that says how
|
|
129
|
+
* far along they are and the element that cannot overrun an `upcoming` stage.
|
|
130
|
+
*
|
|
131
|
+
* **The cost of composing `Steps` is its own limitation rather than this Block's,
|
|
132
|
+
* and it is named.** A `Step`'s qualifier is a `string` and a stage's moment is a
|
|
133
|
+
* node, so the rail cannot hold a date. The moments are drawn beneath it as the
|
|
134
|
+
* definition list they are, one row per dated stage, and a caller whose stages are
|
|
135
|
+
* mostly dates wants `MilestoneTimeline01`, which is the Block built for a dated
|
|
136
|
+
* sequence. The second cost is the client island: `Progress` is a client Component,
|
|
137
|
+
* so a delivery with a fill is one island, and the answer for a caller with many is
|
|
138
|
+
* to leave `progress` off the ones that are not measured.
|
|
139
|
+
*
|
|
140
|
+
* **The moments are the caller's and the sentences are the caller's, and the
|
|
141
|
+
* absence of a `time` element's `datetime` on an `upcoming` stage is a decision
|
|
142
|
+
* rather than an oversight.** A moment that has happened is a fact and belongs in a
|
|
143
|
+
* `<time>` with a machine value, so a crawler and a screen reader get a timestamp
|
|
144
|
+
* whatever the visible reading says. A moment that has not happened is an
|
|
145
|
+
* expectation, and putting a machine value on it invites a consumer's own tooling
|
|
146
|
+
* to read a forecast as a record. This Block draws both through `RelativeTime`,
|
|
147
|
+
* which owns that decision, and the honest cost is that a consumer who wants a
|
|
148
|
+
* scheduled delivery to appear in a calendar feed has to publish it from their own
|
|
149
|
+
* record rather than from this page.
|
|
150
|
+
*
|
|
151
|
+
* **It is a server Component.** No hook, no state, no client code of its own and
|
|
152
|
+
* no router. The only client code it can pull in is one `Progress` island on the
|
|
153
|
+
* delivery that asks for a fill, and the whole thing renders with scripting off, in
|
|
154
|
+
* a print stylesheet and to a crawler.
|
|
155
|
+
*/
|
|
156
|
+
export function Delivery01({ eyebrow, title, description, item, state, stateLabel, expectedAt, expectedLabel, stages, progress, progressLabel, actions, headingLevel = 'h2', className, }) {
|
|
157
|
+
if ((item.href === undefined) !== (item.hrefLabel === undefined)) {
|
|
158
|
+
throw new Error(`Delivery01: "${item.name}" declares one of href and hrefLabel without the other, so the surface ` +
|
|
159
|
+
'would carry a link with no words on it, or a name with no link beside it. Pass the words that ' +
|
|
160
|
+
'say what following it does, or drop the href.');
|
|
161
|
+
}
|
|
162
|
+
if ((expectedAt === undefined) !== (expectedLabel === undefined)) {
|
|
163
|
+
throw new Error(`Delivery01: "${item.name}" declares one of expectedAt and expectedLabel without the other, so ` +
|
|
164
|
+
'the surface would carry a date with no sentence beside it, or a promise about an arrival with ' +
|
|
165
|
+
'nothing to attach it to. Pass the moment and the words for it, or pass neither.');
|
|
166
|
+
}
|
|
167
|
+
if (state !== undefined && stateLabel === undefined) {
|
|
168
|
+
throw new Error(`Delivery01: "${item.name}" declares a state and no words for it, so the mark beside it would ` +
|
|
169
|
+
'be a colour with nothing to read beside it, on the one surface where a reader is waiting and ' +
|
|
170
|
+
'the state is the thing they came for. Pass stateLabel in the vocabulary the product uses.');
|
|
171
|
+
}
|
|
172
|
+
if (progress !== undefined && progressLabel === undefined) {
|
|
173
|
+
throw new Error(`Delivery01: "${item.name}" declares a progress value and no sentence for it, so the bar would ` +
|
|
174
|
+
'announce a bare figure meaning whatever the reader assumes it is a percentage of. Pass ' +
|
|
175
|
+
'progressLabel, or drop the progress.');
|
|
176
|
+
}
|
|
177
|
+
if (stages.length === 0) {
|
|
178
|
+
throw new Error(`Delivery01: "${item.name}" passes no stages, so there would be no rail to say how far along the ` +
|
|
179
|
+
'delivery is, and a state with nothing under it is a badge. Pass the stages the journey has, ' +
|
|
180
|
+
'which is at least one.');
|
|
181
|
+
}
|
|
182
|
+
const currents = stages.filter((stage) => stage.state === 'current').length;
|
|
183
|
+
if (currents > 1) {
|
|
184
|
+
throw new Error(`Delivery01: the stages of "${item.name}" declare ${currents} current stages, and a rail has one ` +
|
|
185
|
+
'position. Two current stages is a reader told they are in two places at once. Declare one, or ' +
|
|
186
|
+
'leave the state to the order.');
|
|
187
|
+
}
|
|
188
|
+
for (const stage of stages) {
|
|
189
|
+
if (!stage.stateLabel) {
|
|
190
|
+
throw new Error(`Delivery01: the stage "${stage.id}" of "${item.name}" declares a state and no stateLabel, so ` +
|
|
191
|
+
'the mark beside it would be a shape with no sentence, and a shape a reader can only see is ' +
|
|
192
|
+
'a state nobody can act on. Pass the words your readers use for that position.');
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
const rail = stages.map((stage) => ({
|
|
196
|
+
label: stage.name,
|
|
197
|
+
description: stage.stateLabel,
|
|
198
|
+
/*
|
|
199
|
+
The states are the caller's rather than the rail's whenever the caller
|
|
200
|
+
declared a position, because a delivery that reached a stage out of band is
|
|
201
|
+
real: an operator approved a region in another tab, a stage was completed by
|
|
202
|
+
hand last night, a reader has already answered the question step two would
|
|
203
|
+
have asked. A rail derived from the order would draw a claim the data
|
|
204
|
+
contradicts. With no declared position the rail derives every mark, which is
|
|
205
|
+
the arrangement that cannot disagree with itself.
|
|
206
|
+
*/
|
|
207
|
+
...(currents === 1 ? { state: RAIL_STATE[stage.state] } : null),
|
|
208
|
+
}));
|
|
209
|
+
const dated = stages.filter((stage) => stage.at !== undefined);
|
|
210
|
+
return (_jsx(Section, { "data-slot": "delivery-01", className: cn(className), children: _jsxs("div", { "data-slot": "delivery-01-body", className: "flex flex-col gap-8", children: [_jsx(SectionHeading, { as: headingLevel, align: "left", eyebrow: eyebrow, title: title, description: description }), _jsxs("div", { "data-slot": "delivery-01-header", className: "flex flex-col gap-3", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2", children: [_jsx("span", { "data-slot": "delivery-01-name", className: "text-sm font-semibold", children: item.href === undefined || item.hrefLabel === undefined ? (item.name) : (_jsx("a", { "data-slot": "delivery-01-link", href: item.href, className: "hover:underline focus-visible:ring-ring rounded-sm outline-none focus-visible:ring-[3px]", children: item.hrefLabel })) }), state === undefined || stateLabel === undefined ? null : (_jsx(Status, { "data-slot": "delivery-01-state", tone: STATE_TONE[state], label: stateLabel(state) })), expectedAt === undefined ? null : (_jsx("span", { "data-slot": "delivery-01-expected", className: "text-muted-foreground text-sm", children: _jsx(RelativeTime, { date: expectedAt, relative: expectedLabel?.(expectedAt) }) }))] }), item.detail === undefined ? null : (_jsx("div", { "data-slot": "delivery-01-detail", className: "text-muted-foreground text-pretty text-sm", children: item.detail }))] }), progress === undefined || progressLabel === undefined ? null : (_jsx("div", { "data-slot": "delivery-01-progress", className: "flex flex-col gap-2", children: _jsx(Progress, { value: progress, valueText: progressLabel(progress) }) })), _jsx("div", { "data-slot": "delivery-01-rail", children: _jsx(Steps, { steps: rail, current: railCurrent(stages) }) }), dated.length === 0 ? null : (_jsx("dl", { "data-slot": "delivery-01-stages", className: "grid gap-x-8 gap-y-2 sm:grid-cols-2", children: dated.map((stage) => (_jsxs("div", { "data-slot": "delivery-01-stage", "data-state": stage.state, className: "flex flex-col gap-0.5", children: [_jsxs("dt", { className: "flex items-baseline gap-3 text-sm font-medium", children: [_jsx("span", { children: stage.name }), _jsx("span", { "data-slot": "delivery-01-stage-date", className: cn('text-muted-foreground text-sm font-normal', stage.state === 'upcoming' ? 'text-muted-foreground/70' : null), children: _jsx(RelativeTime, { date: stage.at, relative: stage.dateLabel?.(stage.at) }) })] }), stage.detail === undefined ? null : (_jsx("dd", { "data-slot": "delivery-01-stage-detail", className: "text-muted-foreground text-pretty text-sm", children: stage.detail }))] }, stage.id))) })), actions === undefined ? null : (_jsx("div", { "data-slot": "delivery-01-actions", className: "flex flex-wrap items-center gap-3", children: actions }))] }) }));
|
|
211
|
+
}
|
|
212
|
+
export default Delivery01;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/delivery-01/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAMhD,YAAY,EACV,eAAe,EACf,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,aAAa,GACd,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Delivery01, default } from './delivery.js';
|