@nanisoft/prism-ui 0.13.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES.md +22 -7
- package/dist/.tsbuildinfo +1 -1
- package/dist/blocks/about-01/about.d.ts +296 -0
- package/dist/blocks/about-01/about.d.ts.map +1 -0
- package/dist/blocks/about-01/about.js +103 -0
- package/dist/blocks/about-01/index.d.ts +3 -0
- package/dist/blocks/about-01/index.d.ts.map +1 -0
- package/dist/blocks/about-01/index.js +1 -0
- package/dist/blocks/accept-invite-01/accept-invite.d.ts +324 -0
- package/dist/blocks/accept-invite-01/accept-invite.d.ts.map +1 -0
- package/dist/blocks/accept-invite-01/accept-invite.js +230 -0
- package/dist/blocks/accept-invite-01/index.d.ts +3 -0
- package/dist/blocks/accept-invite-01/index.d.ts.map +1 -0
- package/dist/blocks/accept-invite-01/index.js +1 -0
- package/dist/blocks/account-01/account-01.d.ts +393 -0
- package/dist/blocks/account-01/account-01.d.ts.map +1 -0
- package/dist/blocks/account-01/account-01.js +215 -0
- package/dist/blocks/account-01/index.d.ts +3 -0
- package/dist/blocks/account-01/index.d.ts.map +1 -0
- package/dist/blocks/account-01/index.js +1 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.d.ts +271 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.d.ts.map +1 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.js +185 -0
- package/dist/blocks/activity-feed-01/index.d.ts +3 -0
- package/dist/blocks/activity-feed-01/index.d.ts.map +1 -0
- package/dist/blocks/activity-feed-01/index.js +1 -0
- package/dist/blocks/address-book-01/address-book-01.d.ts +312 -0
- package/dist/blocks/address-book-01/address-book-01.d.ts.map +1 -0
- package/dist/blocks/address-book-01/address-book-01.js +233 -0
- package/dist/blocks/address-book-01/index.d.ts +3 -0
- package/dist/blocks/address-book-01/index.d.ts.map +1 -0
- package/dist/blocks/address-book-01/index.js +1 -0
- package/dist/blocks/audit-log-01/audit-log-01.d.ts +333 -0
- package/dist/blocks/audit-log-01/audit-log-01.d.ts.map +1 -0
- package/dist/blocks/audit-log-01/audit-log-01.js +211 -0
- package/dist/blocks/audit-log-01/index.d.ts +3 -0
- package/dist/blocks/audit-log-01/index.d.ts.map +1 -0
- package/dist/blocks/audit-log-01/index.js +1 -0
- package/dist/blocks/auth-form-01/auth-form.d.ts +40 -1
- package/dist/blocks/auth-form-01/auth-form.d.ts.map +1 -1
- package/dist/blocks/auth-form-01/auth-form.js +26 -3
- package/dist/blocks/awards-01/awards.d.ts +156 -0
- package/dist/blocks/awards-01/awards.d.ts.map +1 -0
- package/dist/blocks/awards-01/awards.js +102 -0
- package/dist/blocks/awards-01/index.d.ts +3 -0
- package/dist/blocks/awards-01/index.d.ts.map +1 -0
- package/dist/blocks/awards-01/index.js +1 -0
- package/dist/blocks/backdrop-01/backdrop.d.ts +268 -0
- package/dist/blocks/backdrop-01/backdrop.d.ts.map +1 -0
- package/dist/blocks/backdrop-01/backdrop.js +170 -0
- package/dist/blocks/backdrop-01/index.d.ts +3 -0
- package/dist/blocks/backdrop-01/index.d.ts.map +1 -0
- package/dist/blocks/backdrop-01/index.js +1 -0
- package/dist/blocks/bento-01/bento-01.d.ts +136 -0
- package/dist/blocks/bento-01/bento-01.d.ts.map +1 -0
- package/dist/blocks/bento-01/bento-01.js +97 -0
- package/dist/blocks/bento-01/index.d.ts +3 -0
- package/dist/blocks/bento-01/index.d.ts.map +1 -0
- package/dist/blocks/bento-01/index.js +1 -0
- package/dist/blocks/billing-source-01/billing-source-01.d.ts +379 -0
- package/dist/blocks/billing-source-01/billing-source-01.d.ts.map +1 -0
- package/dist/blocks/billing-source-01/billing-source-01.js +222 -0
- package/dist/blocks/billing-source-01/index.d.ts +3 -0
- package/dist/blocks/billing-source-01/index.d.ts.map +1 -0
- package/dist/blocks/billing-source-01/index.js +1 -0
- package/dist/blocks/bundle-01/bundle.d.ts +387 -0
- package/dist/blocks/bundle-01/bundle.d.ts.map +1 -0
- package/dist/blocks/bundle-01/bundle.js +153 -0
- package/dist/blocks/bundle-01/index.d.ts +3 -0
- package/dist/blocks/bundle-01/index.d.ts.map +1 -0
- package/dist/blocks/bundle-01/index.js +1 -0
- package/dist/blocks/calendar-01/calendar.d.ts +251 -0
- package/dist/blocks/calendar-01/calendar.d.ts.map +1 -0
- package/dist/blocks/calendar-01/calendar.js +191 -0
- package/dist/blocks/calendar-01/index.d.ts +3 -0
- package/dist/blocks/calendar-01/index.d.ts.map +1 -0
- package/dist/blocks/calendar-01/index.js +1 -0
- package/dist/blocks/capacity-01/capacity.d.ts +363 -0
- package/dist/blocks/capacity-01/capacity.d.ts.map +1 -0
- package/dist/blocks/capacity-01/capacity.js +208 -0
- package/dist/blocks/capacity-01/index.d.ts +3 -0
- package/dist/blocks/capacity-01/index.d.ts.map +1 -0
- package/dist/blocks/capacity-01/index.js +1 -0
- package/dist/blocks/careers-01/careers.d.ts +186 -0
- package/dist/blocks/careers-01/careers.d.ts.map +1 -0
- package/dist/blocks/careers-01/careers.js +83 -0
- package/dist/blocks/careers-01/index.d.ts +3 -0
- package/dist/blocks/careers-01/index.d.ts.map +1 -0
- package/dist/blocks/careers-01/index.js +1 -0
- package/dist/blocks/case-studies-01/case-studies.d.ts +192 -0
- package/dist/blocks/case-studies-01/case-studies.d.ts.map +1 -0
- package/dist/blocks/case-studies-01/case-studies.js +97 -0
- package/dist/blocks/case-studies-01/index.d.ts +3 -0
- package/dist/blocks/case-studies-01/index.d.ts.map +1 -0
- package/dist/blocks/case-studies-01/index.js +1 -0
- package/dist/blocks/case-study-01/case-study.d.ts +214 -0
- package/dist/blocks/case-study-01/case-study.d.ts.map +1 -0
- package/dist/blocks/case-study-01/case-study.js +79 -0
- package/dist/blocks/case-study-01/index.d.ts +3 -0
- package/dist/blocks/case-study-01/index.d.ts.map +1 -0
- package/dist/blocks/case-study-01/index.js +1 -0
- package/dist/blocks/changelog-01/changelog.d.ts +200 -0
- package/dist/blocks/changelog-01/changelog.d.ts.map +1 -0
- package/dist/blocks/changelog-01/changelog.js +155 -0
- package/dist/blocks/changelog-01/index.d.ts +3 -0
- package/dist/blocks/changelog-01/index.d.ts.map +1 -0
- package/dist/blocks/changelog-01/index.js +1 -0
- package/dist/blocks/chart-card-01/chart-card-01.d.ts +149 -0
- package/dist/blocks/chart-card-01/chart-card-01.d.ts.map +1 -0
- package/dist/blocks/chart-card-01/chart-card-01.js +81 -0
- package/dist/blocks/chart-card-01/index.d.ts +3 -0
- package/dist/blocks/chart-card-01/index.d.ts.map +1 -0
- package/dist/blocks/chart-card-01/index.js +1 -0
- package/dist/blocks/chart-group-01/chart-group-01.d.ts +138 -0
- package/dist/blocks/chart-group-01/chart-group-01.d.ts.map +1 -0
- package/dist/blocks/chart-group-01/chart-group-01.js +74 -0
- package/dist/blocks/chart-group-01/index.d.ts +3 -0
- package/dist/blocks/chart-group-01/index.d.ts.map +1 -0
- package/dist/blocks/chart-group-01/index.js +1 -0
- package/dist/blocks/code-sample-01/code-sample.d.ts +193 -0
- package/dist/blocks/code-sample-01/code-sample.d.ts.map +1 -0
- package/dist/blocks/code-sample-01/code-sample.js +104 -0
- package/dist/blocks/code-sample-01/index.d.ts +3 -0
- package/dist/blocks/code-sample-01/index.d.ts.map +1 -0
- package/dist/blocks/code-sample-01/index.js +1 -0
- package/dist/blocks/community-01/community.d.ts +183 -0
- package/dist/blocks/community-01/community.d.ts.map +1 -0
- package/dist/blocks/community-01/community.js +102 -0
- package/dist/blocks/community-01/index.d.ts +3 -0
- package/dist/blocks/community-01/index.d.ts.map +1 -0
- package/dist/blocks/community-01/index.js +1 -0
- package/dist/blocks/compare-01/compare.d.ts +184 -0
- package/dist/blocks/compare-01/compare.d.ts.map +1 -0
- package/dist/blocks/compare-01/compare.js +106 -0
- package/dist/blocks/compare-01/index.d.ts +3 -0
- package/dist/blocks/compare-01/index.d.ts.map +1 -0
- package/dist/blocks/compare-01/index.js +1 -0
- package/dist/blocks/compliance-01/compliance.d.ts +249 -0
- package/dist/blocks/compliance-01/compliance.d.ts.map +1 -0
- package/dist/blocks/compliance-01/compliance.js +130 -0
- package/dist/blocks/compliance-01/index.d.ts +3 -0
- package/dist/blocks/compliance-01/index.d.ts.map +1 -0
- package/dist/blocks/compliance-01/index.js +1 -0
- package/dist/blocks/consent-01/consent.d.ts +211 -0
- package/dist/blocks/consent-01/consent.d.ts.map +1 -0
- package/dist/blocks/consent-01/consent.js +101 -0
- package/dist/blocks/consent-01/index.d.ts +3 -0
- package/dist/blocks/consent-01/index.d.ts.map +1 -0
- package/dist/blocks/consent-01/index.js +1 -0
- package/dist/blocks/contact-01/contact.d.ts +319 -0
- package/dist/blocks/contact-01/contact.d.ts.map +1 -0
- package/dist/blocks/contact-01/contact.js +211 -0
- package/dist/blocks/contact-01/index.d.ts +3 -0
- package/dist/blocks/contact-01/index.d.ts.map +1 -0
- package/dist/blocks/contact-01/index.js +1 -0
- package/dist/blocks/content-grid-01/content-grid.d.ts +262 -0
- package/dist/blocks/content-grid-01/content-grid.d.ts.map +1 -0
- package/dist/blocks/content-grid-01/content-grid.js +155 -0
- package/dist/blocks/content-grid-01/index.d.ts +3 -0
- package/dist/blocks/content-grid-01/index.d.ts.map +1 -0
- package/dist/blocks/content-grid-01/index.js +1 -0
- package/dist/blocks/cta-01/cta.d.ts +7 -1
- package/dist/blocks/cta-01/cta.d.ts.map +1 -1
- package/dist/blocks/cta-01/cta.js +11 -2
- package/dist/blocks/dashboard-01/dashboard-01.d.ts +247 -0
- package/dist/blocks/dashboard-01/dashboard-01.d.ts.map +1 -0
- package/dist/blocks/dashboard-01/dashboard-01.js +141 -0
- package/dist/blocks/dashboard-01/index.d.ts +3 -0
- package/dist/blocks/dashboard-01/index.d.ts.map +1 -0
- package/dist/blocks/dashboard-01/index.js +1 -0
- package/dist/blocks/data-table-01/data-table.d.ts +22 -1
- package/dist/blocks/data-table-01/data-table.d.ts.map +1 -1
- package/dist/blocks/data-table-01/data-table.js +9 -5
- package/dist/blocks/delivery-01/delivery.d.ts +343 -0
- package/dist/blocks/delivery-01/delivery.d.ts.map +1 -0
- package/dist/blocks/delivery-01/delivery.js +212 -0
- package/dist/blocks/delivery-01/index.d.ts +3 -0
- package/dist/blocks/delivery-01/index.d.ts.map +1 -0
- package/dist/blocks/delivery-01/index.js +1 -0
- package/dist/blocks/directory-01/directory-01.d.ts +316 -0
- package/dist/blocks/directory-01/directory-01.d.ts.map +1 -0
- package/dist/blocks/directory-01/directory-01.js +252 -0
- package/dist/blocks/directory-01/index.d.ts +3 -0
- package/dist/blocks/directory-01/index.d.ts.map +1 -0
- package/dist/blocks/directory-01/index.js +1 -0
- package/dist/blocks/download-01/download.d.ts +261 -0
- package/dist/blocks/download-01/download.d.ts.map +1 -0
- package/dist/blocks/download-01/download.js +115 -0
- package/dist/blocks/download-01/index.d.ts +3 -0
- package/dist/blocks/download-01/index.d.ts.map +1 -0
- package/dist/blocks/download-01/index.js +1 -0
- package/dist/blocks/faq-01/faq.d.ts +128 -0
- package/dist/blocks/faq-01/faq.d.ts.map +1 -0
- package/dist/blocks/faq-01/faq.js +53 -0
- package/dist/blocks/faq-01/index.d.ts +3 -0
- package/dist/blocks/faq-01/index.d.ts.map +1 -0
- package/dist/blocks/faq-01/index.js +1 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.d.ts +158 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.d.ts.map +1 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.js +81 -0
- package/dist/blocks/feature-rows-01/index.d.ts +3 -0
- package/dist/blocks/feature-rows-01/index.d.ts.map +1 -0
- package/dist/blocks/feature-rows-01/index.js +1 -0
- package/dist/blocks/feedback-01/feedback.d.ts +235 -0
- package/dist/blocks/feedback-01/feedback.d.ts.map +1 -0
- package/dist/blocks/feedback-01/feedback.js +113 -0
- package/dist/blocks/feedback-01/index.d.ts +3 -0
- package/dist/blocks/feedback-01/index.d.ts.map +1 -0
- package/dist/blocks/feedback-01/index.js +1 -0
- package/dist/blocks/field-map-01/field-map.d.ts +247 -0
- package/dist/blocks/field-map-01/field-map.d.ts.map +1 -0
- package/dist/blocks/field-map-01/field-map.js +183 -0
- package/dist/blocks/field-map-01/index.d.ts +3 -0
- package/dist/blocks/field-map-01/index.d.ts.map +1 -0
- package/dist/blocks/field-map-01/index.js +1 -0
- package/dist/blocks/forgot-password-01/forgot-password.d.ts +288 -0
- package/dist/blocks/forgot-password-01/forgot-password.d.ts.map +1 -0
- package/dist/blocks/forgot-password-01/forgot-password.js +190 -0
- package/dist/blocks/forgot-password-01/index.d.ts +3 -0
- package/dist/blocks/forgot-password-01/index.d.ts.map +1 -0
- package/dist/blocks/forgot-password-01/index.js +1 -0
- package/dist/blocks/gallery-01/gallery.d.ts +208 -0
- package/dist/blocks/gallery-01/gallery.d.ts.map +1 -0
- package/dist/blocks/gallery-01/gallery.js +174 -0
- package/dist/blocks/gallery-01/index.d.ts +3 -0
- package/dist/blocks/gallery-01/index.d.ts.map +1 -0
- package/dist/blocks/gallery-01/index.js +1 -0
- package/dist/blocks/gantt-01/gantt.d.ts +290 -0
- package/dist/blocks/gantt-01/gantt.d.ts.map +1 -0
- package/dist/blocks/gantt-01/gantt.js +224 -0
- package/dist/blocks/gantt-01/index.d.ts +3 -0
- package/dist/blocks/gantt-01/index.d.ts.map +1 -0
- package/dist/blocks/gantt-01/index.js +1 -0
- package/dist/blocks/handoff-01/handoff-01.d.ts +326 -0
- package/dist/blocks/handoff-01/handoff-01.d.ts.map +1 -0
- package/dist/blocks/handoff-01/handoff-01.js +180 -0
- package/dist/blocks/handoff-01/index.d.ts +3 -0
- package/dist/blocks/handoff-01/index.d.ts.map +1 -0
- package/dist/blocks/handoff-01/index.js +1 -0
- package/dist/blocks/help-01/help.d.ts +254 -0
- package/dist/blocks/help-01/help.d.ts.map +1 -0
- package/dist/blocks/help-01/help.js +188 -0
- package/dist/blocks/help-01/index.d.ts +3 -0
- package/dist/blocks/help-01/index.d.ts.map +1 -0
- package/dist/blocks/help-01/index.js +1 -0
- package/dist/blocks/hero-01/hero.d.ts +105 -34
- package/dist/blocks/hero-01/hero.d.ts.map +1 -1
- package/dist/blocks/hero-01/hero.js +23 -15
- package/dist/blocks/hero-01/index.d.ts +1 -1
- package/dist/blocks/hero-01/index.d.ts.map +1 -1
- package/dist/blocks/hero-02/hero-02.d.ts +244 -0
- package/dist/blocks/hero-02/hero-02.d.ts.map +1 -0
- package/dist/blocks/hero-02/hero-02.js +87 -0
- package/dist/blocks/hero-02/index.d.ts +3 -0
- package/dist/blocks/hero-02/index.d.ts.map +1 -0
- package/dist/blocks/hero-02/index.js +1 -0
- package/dist/blocks/hero-03/hero-03.d.ts +247 -0
- package/dist/blocks/hero-03/hero-03.d.ts.map +1 -0
- package/dist/blocks/hero-03/hero-03.js +93 -0
- package/dist/blocks/hero-03/index.d.ts +3 -0
- package/dist/blocks/hero-03/index.d.ts.map +1 -0
- package/dist/blocks/hero-03/index.js +1 -0
- package/dist/blocks/history-01/history-01.d.ts +414 -0
- package/dist/blocks/history-01/history-01.d.ts.map +1 -0
- package/dist/blocks/history-01/history-01.js +285 -0
- package/dist/blocks/history-01/index.d.ts +3 -0
- package/dist/blocks/history-01/index.d.ts.map +1 -0
- package/dist/blocks/history-01/index.js +1 -0
- package/dist/blocks/inbox-01/inbox.d.ts +349 -0
- package/dist/blocks/inbox-01/inbox.d.ts.map +1 -0
- package/dist/blocks/inbox-01/inbox.js +244 -0
- package/dist/blocks/inbox-01/index.d.ts +3 -0
- package/dist/blocks/inbox-01/index.d.ts.map +1 -0
- package/dist/blocks/inbox-01/index.js +1 -0
- package/dist/blocks/index.d.ts +203 -0
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/blocks/index.js +118 -0
- package/dist/blocks/industries-01/index.d.ts +3 -0
- package/dist/blocks/industries-01/index.d.ts.map +1 -0
- package/dist/blocks/industries-01/index.js +1 -0
- package/dist/blocks/industries-01/industries.d.ts +164 -0
- package/dist/blocks/industries-01/industries.d.ts.map +1 -0
- package/dist/blocks/industries-01/industries.js +96 -0
- package/dist/blocks/intake-01/index.d.ts +3 -0
- package/dist/blocks/intake-01/index.d.ts.map +1 -0
- package/dist/blocks/intake-01/index.js +1 -0
- package/dist/blocks/intake-01/intake-01.d.ts +305 -0
- package/dist/blocks/intake-01/intake-01.d.ts.map +1 -0
- package/dist/blocks/intake-01/intake-01.js +178 -0
- package/dist/blocks/integration-01/index.d.ts +3 -0
- package/dist/blocks/integration-01/index.d.ts.map +1 -0
- package/dist/blocks/integration-01/index.js +1 -0
- package/dist/blocks/integration-01/integration.d.ts +226 -0
- package/dist/blocks/integration-01/integration.d.ts.map +1 -0
- package/dist/blocks/integration-01/integration.js +170 -0
- package/dist/blocks/invite-user-01/index.d.ts +3 -0
- package/dist/blocks/invite-user-01/index.d.ts.map +1 -0
- package/dist/blocks/invite-user-01/index.js +1 -0
- package/dist/blocks/invite-user-01/invite-user.d.ts +317 -0
- package/dist/blocks/invite-user-01/invite-user.d.ts.map +1 -0
- package/dist/blocks/invite-user-01/invite-user.js +228 -0
- package/dist/blocks/issue-detail-01/index.d.ts +3 -0
- package/dist/blocks/issue-detail-01/index.d.ts.map +1 -0
- package/dist/blocks/issue-detail-01/index.js +1 -0
- package/dist/blocks/issue-detail-01/issue-detail.d.ts +355 -0
- package/dist/blocks/issue-detail-01/issue-detail.d.ts.map +1 -0
- package/dist/blocks/issue-detail-01/issue-detail.js +187 -0
- package/dist/blocks/issue-list-01/index.d.ts +3 -0
- package/dist/blocks/issue-list-01/index.d.ts.map +1 -0
- package/dist/blocks/issue-list-01/index.js +1 -0
- package/dist/blocks/issue-list-01/issue-list.d.ts +298 -0
- package/dist/blocks/issue-list-01/issue-list.d.ts.map +1 -0
- package/dist/blocks/issue-list-01/issue-list.js +284 -0
- package/dist/blocks/kanban-01/index.d.ts +3 -0
- package/dist/blocks/kanban-01/index.d.ts.map +1 -0
- package/dist/blocks/kanban-01/index.js +1 -0
- package/dist/blocks/kanban-01/kanban.d.ts +278 -0
- package/dist/blocks/kanban-01/kanban.d.ts.map +1 -0
- package/dist/blocks/kanban-01/kanban.js +144 -0
- package/dist/blocks/leaderboard-01/index.d.ts +3 -0
- package/dist/blocks/leaderboard-01/index.d.ts.map +1 -0
- package/dist/blocks/leaderboard-01/index.js +1 -0
- package/dist/blocks/leaderboard-01/leaderboard.d.ts +250 -0
- package/dist/blocks/leaderboard-01/leaderboard.d.ts.map +1 -0
- package/dist/blocks/leaderboard-01/leaderboard.js +121 -0
- package/dist/blocks/login-01/index.d.ts +3 -0
- package/dist/blocks/login-01/index.d.ts.map +1 -0
- package/dist/blocks/login-01/index.js +1 -0
- package/dist/blocks/login-01/login-01.d.ts +356 -0
- package/dist/blocks/login-01/login-01.d.ts.map +1 -0
- package/dist/blocks/login-01/login-01.js +249 -0
- package/dist/blocks/logo-cloud-01/index.d.ts +3 -0
- package/dist/blocks/logo-cloud-01/index.d.ts.map +1 -0
- package/dist/blocks/logo-cloud-01/index.js +1 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.d.ts +181 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.d.ts.map +1 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.js +118 -0
- package/dist/blocks/magic-link-01/index.d.ts +3 -0
- package/dist/blocks/magic-link-01/index.d.ts.map +1 -0
- package/dist/blocks/magic-link-01/index.js +1 -0
- package/dist/blocks/magic-link-01/magic-link-01.d.ts +367 -0
- package/dist/blocks/magic-link-01/magic-link-01.d.ts.map +1 -0
- package/dist/blocks/magic-link-01/magic-link-01.js +233 -0
- package/dist/blocks/member-list-01/index.d.ts +3 -0
- package/dist/blocks/member-list-01/index.d.ts.map +1 -0
- package/dist/blocks/member-list-01/index.js +1 -0
- package/dist/blocks/member-list-01/member-list.d.ts +192 -0
- package/dist/blocks/member-list-01/member-list.d.ts.map +1 -0
- package/dist/blocks/member-list-01/member-list.js +142 -0
- package/dist/blocks/milestone-timeline-01/index.d.ts +3 -0
- package/dist/blocks/milestone-timeline-01/index.d.ts.map +1 -0
- package/dist/blocks/milestone-timeline-01/index.js +1 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.d.ts +217 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.d.ts.map +1 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.js +173 -0
- package/dist/blocks/newsletter-01/index.d.ts +3 -0
- package/dist/blocks/newsletter-01/index.d.ts.map +1 -0
- package/dist/blocks/newsletter-01/index.js +1 -0
- package/dist/blocks/newsletter-01/newsletter.d.ts +216 -0
- package/dist/blocks/newsletter-01/newsletter.d.ts.map +1 -0
- package/dist/blocks/newsletter-01/newsletter.js +102 -0
- package/dist/blocks/notification-center-01/index.d.ts +3 -0
- package/dist/blocks/notification-center-01/index.d.ts.map +1 -0
- package/dist/blocks/notification-center-01/index.js +1 -0
- package/dist/blocks/notification-center-01/notification-center-01.d.ts +341 -0
- package/dist/blocks/notification-center-01/notification-center-01.d.ts.map +1 -0
- package/dist/blocks/notification-center-01/notification-center-01.js +203 -0
- package/dist/blocks/offer-01/index.d.ts +3 -0
- package/dist/blocks/offer-01/index.d.ts.map +1 -0
- package/dist/blocks/offer-01/index.js +1 -0
- package/dist/blocks/offer-01/offer.d.ts +139 -0
- package/dist/blocks/offer-01/offer.d.ts.map +1 -0
- package/dist/blocks/offer-01/offer.js +81 -0
- package/dist/blocks/offering-01/index.d.ts +3 -0
- package/dist/blocks/offering-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-01/index.js +1 -0
- package/dist/blocks/offering-01/offering.d.ts +245 -0
- package/dist/blocks/offering-01/offering.d.ts.map +1 -0
- package/dist/blocks/offering-01/offering.js +144 -0
- package/dist/blocks/offering-categories-01/index.d.ts +3 -0
- package/dist/blocks/offering-categories-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-categories-01/index.js +1 -0
- package/dist/blocks/offering-categories-01/offering-categories.d.ts +248 -0
- package/dist/blocks/offering-categories-01/offering-categories.d.ts.map +1 -0
- package/dist/blocks/offering-categories-01/offering-categories.js +153 -0
- package/dist/blocks/offering-list-01/index.d.ts +3 -0
- package/dist/blocks/offering-list-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-list-01/index.js +1 -0
- package/dist/blocks/offering-list-01/offering-list.d.ts +362 -0
- package/dist/blocks/offering-list-01/offering-list.d.ts.map +1 -0
- package/dist/blocks/offering-list-01/offering-list.js +366 -0
- package/dist/blocks/onboarding-01/index.d.ts +3 -0
- package/dist/blocks/onboarding-01/index.d.ts.map +1 -0
- package/dist/blocks/onboarding-01/index.js +1 -0
- package/dist/blocks/onboarding-01/onboarding.d.ts +199 -0
- package/dist/blocks/onboarding-01/onboarding.d.ts.map +1 -0
- package/dist/blocks/onboarding-01/onboarding.js +182 -0
- package/dist/blocks/ops-checklist-01/index.d.ts +3 -0
- package/dist/blocks/ops-checklist-01/index.d.ts.map +1 -0
- package/dist/blocks/ops-checklist-01/index.js +1 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.d.ts +308 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.d.ts.map +1 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.js +165 -0
- package/dist/blocks/page-header-01/index.d.ts +1 -1
- package/dist/blocks/page-header-01/index.d.ts.map +1 -1
- package/dist/blocks/page-header-01/page-header.d.ts +131 -11
- package/dist/blocks/page-header-01/page-header.d.ts.map +1 -1
- package/dist/blocks/page-header-01/page-header.js +33 -9
- package/dist/blocks/passkey-01/index.d.ts +3 -0
- package/dist/blocks/passkey-01/index.d.ts.map +1 -0
- package/dist/blocks/passkey-01/index.js +1 -0
- package/dist/blocks/passkey-01/passkey-01.d.ts +334 -0
- package/dist/blocks/passkey-01/passkey-01.d.ts.map +1 -0
- package/dist/blocks/passkey-01/passkey-01.js +192 -0
- package/dist/blocks/permission-matrix-01/index.d.ts +3 -0
- package/dist/blocks/permission-matrix-01/index.d.ts.map +1 -0
- package/dist/blocks/permission-matrix-01/index.js +1 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.d.ts +282 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.d.ts.map +1 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.js +173 -0
- package/dist/blocks/pricing-01/index.d.ts +1 -0
- package/dist/blocks/pricing-01/index.d.ts.map +1 -1
- package/dist/blocks/pricing-01/pricing.d.ts +118 -1
- package/dist/blocks/pricing-01/pricing.d.ts.map +1 -1
- package/dist/blocks/pricing-01/pricing.js +9 -2
- package/dist/blocks/pricing-compare-01/index.d.ts +3 -0
- package/dist/blocks/pricing-compare-01/index.d.ts.map +1 -0
- package/dist/blocks/pricing-compare-01/index.js +1 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.d.ts +277 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.d.ts.map +1 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.js +126 -0
- package/dist/blocks/project-01/index.d.ts +3 -0
- package/dist/blocks/project-01/index.d.ts.map +1 -0
- package/dist/blocks/project-01/index.js +1 -0
- package/dist/blocks/project-01/project.d.ts +323 -0
- package/dist/blocks/project-01/project.d.ts.map +1 -0
- package/dist/blocks/project-01/project.js +247 -0
- package/dist/blocks/project-dashboard-01/index.d.ts +3 -0
- package/dist/blocks/project-dashboard-01/index.d.ts.map +1 -0
- package/dist/blocks/project-dashboard-01/index.js +1 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.d.ts +200 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.d.ts.map +1 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.js +124 -0
- package/dist/blocks/project-list-01/index.d.ts +3 -0
- package/dist/blocks/project-list-01/index.d.ts.map +1 -0
- package/dist/blocks/project-list-01/index.js +1 -0
- package/dist/blocks/project-list-01/project-list.d.ts +301 -0
- package/dist/blocks/project-list-01/project-list.d.ts.map +1 -0
- package/dist/blocks/project-list-01/project-list.js +305 -0
- package/dist/blocks/provisioning-01/index.d.ts +3 -0
- package/dist/blocks/provisioning-01/index.d.ts.map +1 -0
- package/dist/blocks/provisioning-01/index.js +1 -0
- package/dist/blocks/provisioning-01/provisioning.d.ts +357 -0
- package/dist/blocks/provisioning-01/provisioning.d.ts.map +1 -0
- package/dist/blocks/provisioning-01/provisioning.js +230 -0
- package/dist/blocks/quick-view-01/index.d.ts +3 -0
- package/dist/blocks/quick-view-01/index.d.ts.map +1 -0
- package/dist/blocks/quick-view-01/index.js +1 -0
- package/dist/blocks/quick-view-01/quick-view.d.ts +215 -0
- package/dist/blocks/quick-view-01/quick-view.d.ts.map +1 -0
- package/dist/blocks/quick-view-01/quick-view.js +136 -0
- package/dist/blocks/rate-card-01/index.d.ts +3 -0
- package/dist/blocks/rate-card-01/index.d.ts.map +1 -0
- package/dist/blocks/rate-card-01/index.js +1 -0
- package/dist/blocks/rate-card-01/rate-card.d.ts +184 -0
- package/dist/blocks/rate-card-01/rate-card.d.ts.map +1 -0
- package/dist/blocks/rate-card-01/rate-card.js +79 -0
- package/dist/blocks/reset-password-01/index.d.ts +3 -0
- package/dist/blocks/reset-password-01/index.d.ts.map +1 -0
- package/dist/blocks/reset-password-01/index.js +1 -0
- package/dist/blocks/reset-password-01/reset-password.d.ts +276 -0
- package/dist/blocks/reset-password-01/reset-password.d.ts.map +1 -0
- package/dist/blocks/reset-password-01/reset-password.js +175 -0
- package/dist/blocks/resource-list-01/index.d.ts +3 -0
- package/dist/blocks/resource-list-01/index.d.ts.map +1 -0
- package/dist/blocks/resource-list-01/index.js +1 -0
- package/dist/blocks/resource-list-01/resource-list.d.ts +237 -0
- package/dist/blocks/resource-list-01/resource-list.d.ts.map +1 -0
- package/dist/blocks/resource-list-01/resource-list.js +154 -0
- package/dist/blocks/retention-01/index.d.ts +3 -0
- package/dist/blocks/retention-01/index.d.ts.map +1 -0
- package/dist/blocks/retention-01/index.js +1 -0
- package/dist/blocks/retention-01/retention.d.ts +255 -0
- package/dist/blocks/retention-01/retention.d.ts.map +1 -0
- package/dist/blocks/retention-01/retention.js +145 -0
- package/dist/blocks/run-console-01/run-console.d.ts +14 -1
- package/dist/blocks/run-console-01/run-console.d.ts.map +1 -1
- package/dist/blocks/run-console-01/run-console.js +4 -2
- package/dist/blocks/services-01/index.d.ts +3 -0
- package/dist/blocks/services-01/index.d.ts.map +1 -0
- package/dist/blocks/services-01/index.js +1 -0
- package/dist/blocks/services-01/services.d.ts +159 -0
- package/dist/blocks/services-01/services.d.ts.map +1 -0
- package/dist/blocks/services-01/services.js +81 -0
- package/dist/blocks/settings-integrations-01/index.d.ts +3 -0
- package/dist/blocks/settings-integrations-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-integrations-01/index.js +1 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.d.ts +246 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.d.ts.map +1 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.js +213 -0
- package/dist/blocks/settings-members-01/index.d.ts +3 -0
- package/dist/blocks/settings-members-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-members-01/index.js +1 -0
- package/dist/blocks/settings-members-01/settings-members.d.ts +396 -0
- package/dist/blocks/settings-members-01/settings-members.d.ts.map +1 -0
- package/dist/blocks/settings-members-01/settings-members.js +255 -0
- package/dist/blocks/settings-notifications-01/index.d.ts +3 -0
- package/dist/blocks/settings-notifications-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-notifications-01/index.js +1 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.d.ts +270 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.d.ts.map +1 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.js +202 -0
- package/dist/blocks/settings-security-01/index.d.ts +3 -0
- package/dist/blocks/settings-security-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-security-01/index.js +1 -0
- package/dist/blocks/settings-security-01/settings-security.d.ts +439 -0
- package/dist/blocks/settings-security-01/settings-security.d.ts.map +1 -0
- package/dist/blocks/settings-security-01/settings-security.js +244 -0
- package/dist/blocks/shortlist-01/index.d.ts +3 -0
- package/dist/blocks/shortlist-01/index.d.ts.map +1 -0
- package/dist/blocks/shortlist-01/index.js +1 -0
- package/dist/blocks/shortlist-01/shortlist-01.d.ts +337 -0
- package/dist/blocks/shortlist-01/shortlist-01.d.ts.map +1 -0
- package/dist/blocks/shortlist-01/shortlist-01.js +191 -0
- package/dist/blocks/showcase-01/index.d.ts +3 -0
- package/dist/blocks/showcase-01/index.d.ts.map +1 -0
- package/dist/blocks/showcase-01/index.js +1 -0
- package/dist/blocks/showcase-01/showcase-01.d.ts +238 -0
- package/dist/blocks/showcase-01/showcase-01.d.ts.map +1 -0
- package/dist/blocks/showcase-01/showcase-01.js +84 -0
- package/dist/blocks/signup-01/index.d.ts +3 -0
- package/dist/blocks/signup-01/index.d.ts.map +1 -0
- package/dist/blocks/signup-01/index.js +1 -0
- package/dist/blocks/signup-01/signup-01.d.ts +405 -0
- package/dist/blocks/signup-01/signup-01.d.ts.map +1 -0
- package/dist/blocks/signup-01/signup-01.js +209 -0
- package/dist/blocks/site-footer/site-footer.d.ts +34 -1
- package/dist/blocks/site-footer/site-footer.d.ts.map +1 -1
- package/dist/blocks/site-footer/site-footer.js +24 -2
- package/dist/blocks/site-header/site-header.js +1 -1
- package/dist/blocks/site-navbar/site-navbar.d.ts +37 -3
- package/dist/blocks/site-navbar/site-navbar.d.ts.map +1 -1
- package/dist/blocks/site-navbar/site-navbar.js +33 -4
- package/dist/blocks/spec-table-01/index.d.ts +3 -0
- package/dist/blocks/spec-table-01/index.d.ts.map +1 -0
- package/dist/blocks/spec-table-01/index.js +1 -0
- package/dist/blocks/spec-table-01/spec-table.d.ts +293 -0
- package/dist/blocks/spec-table-01/spec-table.d.ts.map +1 -0
- package/dist/blocks/spec-table-01/spec-table.js +217 -0
- package/dist/blocks/stack-grid-01/stack-grid.d.ts +13 -0
- package/dist/blocks/stack-grid-01/stack-grid.d.ts.map +1 -1
- package/dist/blocks/stack-grid-01/stack-grid.js +14 -1
- package/dist/blocks/story-01/index.d.ts +3 -0
- package/dist/blocks/story-01/index.d.ts.map +1 -0
- package/dist/blocks/story-01/index.js +1 -0
- package/dist/blocks/story-01/story.d.ts +153 -0
- package/dist/blocks/story-01/story.d.ts.map +1 -0
- package/dist/blocks/story-01/story.js +103 -0
- package/dist/blocks/summary-01/index.d.ts +3 -0
- package/dist/blocks/summary-01/index.d.ts.map +1 -0
- package/dist/blocks/summary-01/index.js +1 -0
- package/dist/blocks/summary-01/summary.d.ts +300 -0
- package/dist/blocks/summary-01/summary.d.ts.map +1 -0
- package/dist/blocks/summary-01/summary.js +174 -0
- package/dist/blocks/team-01/index.d.ts +3 -0
- package/dist/blocks/team-01/index.d.ts.map +1 -0
- package/dist/blocks/team-01/index.js +1 -0
- package/dist/blocks/team-01/team.d.ts +176 -0
- package/dist/blocks/team-01/team.d.ts.map +1 -0
- package/dist/blocks/team-01/team.js +117 -0
- package/dist/blocks/testimonial-01/index.d.ts +3 -0
- package/dist/blocks/testimonial-01/index.d.ts.map +1 -0
- package/dist/blocks/testimonial-01/index.js +1 -0
- package/dist/blocks/testimonial-01/testimonial.d.ts +173 -0
- package/dist/blocks/testimonial-01/testimonial.d.ts.map +1 -0
- package/dist/blocks/testimonial-01/testimonial.js +87 -0
- package/dist/blocks/todo-01/index.d.ts +3 -0
- package/dist/blocks/todo-01/index.d.ts.map +1 -0
- package/dist/blocks/todo-01/index.js +1 -0
- package/dist/blocks/todo-01/todo.d.ts +286 -0
- package/dist/blocks/todo-01/todo.d.ts.map +1 -0
- package/dist/blocks/todo-01/todo.js +149 -0
- package/dist/blocks/trend-01/index.d.ts +3 -0
- package/dist/blocks/trend-01/index.d.ts.map +1 -0
- package/dist/blocks/trend-01/index.js +1 -0
- package/dist/blocks/trend-01/trend.d.ts +184 -0
- package/dist/blocks/trend-01/trend.d.ts.map +1 -0
- package/dist/blocks/trend-01/trend.js +99 -0
- package/dist/blocks/trust-strip-01/index.d.ts +3 -0
- package/dist/blocks/trust-strip-01/index.d.ts.map +1 -0
- package/dist/blocks/trust-strip-01/index.js +1 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.d.ts +139 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.d.ts.map +1 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.js +58 -0
- package/dist/blocks/two-factor-01/index.d.ts +3 -0
- package/dist/blocks/two-factor-01/index.d.ts.map +1 -0
- package/dist/blocks/two-factor-01/index.js +1 -0
- package/dist/blocks/two-factor-01/two-factor-01.d.ts +440 -0
- package/dist/blocks/two-factor-01/two-factor-01.d.ts.map +1 -0
- package/dist/blocks/two-factor-01/two-factor-01.js +273 -0
- package/dist/blocks/user-profile-01/index.d.ts +3 -0
- package/dist/blocks/user-profile-01/index.d.ts.map +1 -0
- package/dist/blocks/user-profile-01/index.js +1 -0
- package/dist/blocks/user-profile-01/user-profile-01.d.ts +258 -0
- package/dist/blocks/user-profile-01/user-profile-01.d.ts.map +1 -0
- package/dist/blocks/user-profile-01/user-profile-01.js +158 -0
- package/dist/blocks/verify-email-01/index.d.ts +3 -0
- package/dist/blocks/verify-email-01/index.d.ts.map +1 -0
- package/dist/blocks/verify-email-01/index.js +1 -0
- package/dist/blocks/verify-email-01/verify-email.d.ts +262 -0
- package/dist/blocks/verify-email-01/verify-email.d.ts.map +1 -0
- package/dist/blocks/verify-email-01/verify-email.js +190 -0
- package/dist/blocks/waitlist-01/index.d.ts +3 -0
- package/dist/blocks/waitlist-01/index.d.ts.map +1 -0
- package/dist/blocks/waitlist-01/index.js +1 -0
- package/dist/blocks/waitlist-01/waitlist.d.ts +254 -0
- package/dist/blocks/waitlist-01/waitlist.d.ts.map +1 -0
- package/dist/blocks/waitlist-01/waitlist.js +75 -0
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +1641 -1
- package/dist/components/index.d.ts +114 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +134 -0
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +9 -2
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +22 -4
- package/dist/components/ui/announcement.d.ts +169 -0
- package/dist/components/ui/announcement.d.ts.map +1 -0
- package/dist/components/ui/announcement.js +123 -0
- package/dist/components/ui/avatar-group.d.ts +176 -0
- package/dist/components/ui/avatar-group.d.ts.map +1 -0
- package/dist/components/ui/avatar-group.js +135 -0
- package/dist/components/ui/billing-source.d.ts +293 -0
- package/dist/components/ui/billing-source.d.ts.map +1 -0
- package/dist/components/ui/billing-source.js +136 -0
- package/dist/components/ui/button.d.ts +16 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +17 -2
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +30 -2
- package/dist/components/ui/carousel.d.ts +7 -0
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +58 -1
- package/dist/components/ui/chart.d.ts +334 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +369 -0
- package/dist/components/ui/checkbox.d.ts +10 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +19 -1
- package/dist/components/ui/checklist.d.ts +262 -0
- package/dist/components/ui/checklist.d.ts.map +1 -0
- package/dist/components/ui/checklist.js +135 -0
- package/dist/components/ui/choice-card.d.ts +273 -0
- package/dist/components/ui/choice-card.d.ts.map +1 -0
- package/dist/components/ui/choice-card.js +138 -0
- package/dist/components/ui/code-block.d.ts +182 -0
- package/dist/components/ui/code-block.d.ts.map +1 -0
- package/dist/components/ui/code-block.js +108 -0
- package/dist/components/ui/cohort-grid.d.ts +210 -0
- package/dist/components/ui/cohort-grid.d.ts.map +1 -0
- package/dist/components/ui/cohort-grid.js +202 -0
- package/dist/components/ui/collapsible.d.ts +11 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js +13 -2
- package/dist/components/ui/combobox.d.ts +4 -1
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +20 -4
- package/dist/components/ui/command-palette.d.ts +11 -0
- package/dist/components/ui/command-palette.d.ts.map +1 -1
- package/dist/components/ui/command-palette.js +49 -3
- package/dist/components/ui/contribution-graph.d.ts +156 -0
- package/dist/components/ui/contribution-graph.d.ts.map +1 -0
- package/dist/components/ui/contribution-graph.js +170 -0
- package/dist/components/ui/creatable-combobox.d.ts +153 -0
- package/dist/components/ui/creatable-combobox.d.ts.map +1 -0
- package/dist/components/ui/creatable-combobox.js +285 -0
- package/dist/components/ui/data-toolbar.d.ts +133 -0
- package/dist/components/ui/data-toolbar.d.ts.map +1 -0
- package/dist/components/ui/data-toolbar.js +67 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +9 -1
- package/dist/components/ui/diagram.d.ts +38 -7
- package/dist/components/ui/diagram.d.ts.map +1 -1
- package/dist/components/ui/diagram.js +134 -52
- package/dist/components/ui/dialog.d.ts +31 -2
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +40 -6
- package/dist/components/ui/drawer.d.ts +270 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +241 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +6 -1
- package/dist/components/ui/dropzone.d.ts +147 -0
- package/dist/components/ui/dropzone.d.ts.map +1 -0
- package/dist/components/ui/dropzone.js +141 -0
- package/dist/components/ui/emoji-picker.d.ts +328 -0
- package/dist/components/ui/emoji-picker.d.ts.map +1 -0
- package/dist/components/ui/emoji-picker.js +278 -0
- package/dist/components/ui/fact-list.d.ts +17 -0
- package/dist/components/ui/fact-list.d.ts.map +1 -1
- package/dist/components/ui/fact-list.js +18 -1
- package/dist/components/ui/file-upload.d.ts +152 -0
- package/dist/components/ui/file-upload.d.ts.map +1 -0
- package/dist/components/ui/file-upload.js +101 -0
- package/dist/components/ui/filter-panel.d.ts +164 -0
- package/dist/components/ui/filter-panel.d.ts.map +1 -0
- package/dist/components/ui/filter-panel.js +91 -0
- package/dist/components/ui/form-dialog.d.ts +257 -0
- package/dist/components/ui/form-dialog.d.ts.map +1 -0
- package/dist/components/ui/form-dialog.js +176 -0
- package/dist/components/ui/form-wizard.d.ts +251 -0
- package/dist/components/ui/form-wizard.d.ts.map +1 -0
- package/dist/components/ui/form-wizard.js +151 -0
- package/dist/components/ui/image-list-field.d.ts +232 -0
- package/dist/components/ui/image-list-field.d.ts.map +1 -0
- package/dist/components/ui/image-list-field.js +168 -0
- package/dist/components/ui/image-zoom.d.ts +164 -0
- package/dist/components/ui/image-zoom.d.ts.map +1 -0
- package/dist/components/ui/image-zoom.js +169 -0
- package/dist/components/ui/intensity-grid.d.ts +270 -0
- package/dist/components/ui/intensity-grid.d.ts.map +1 -0
- package/dist/components/ui/intensity-grid.js +211 -0
- package/dist/components/ui/lifecycle-button.d.ts +276 -0
- package/dist/components/ui/lifecycle-button.d.ts.map +1 -0
- package/dist/components/ui/lifecycle-button.js +144 -0
- package/dist/components/ui/lightbox.d.ts +165 -0
- package/dist/components/ui/lightbox.d.ts.map +1 -0
- package/dist/components/ui/lightbox.js +130 -0
- package/dist/components/ui/list-panel.d.ts +288 -0
- package/dist/components/ui/list-panel.d.ts.map +1 -0
- package/dist/components/ui/list-panel.js +139 -0
- package/dist/components/ui/mega-menu.d.ts +244 -0
- package/dist/components/ui/mega-menu.d.ts.map +1 -0
- package/dist/components/ui/mega-menu.js +97 -0
- package/dist/components/ui/menubar.d.ts +9 -0
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +10 -1
- package/dist/components/ui/metric.d.ts +123 -0
- package/dist/components/ui/metric.d.ts.map +1 -0
- package/dist/components/ui/metric.js +68 -0
- package/dist/components/ui/mini-calendar.d.ts +143 -0
- package/dist/components/ui/mini-calendar.d.ts.map +1 -0
- package/dist/components/ui/mini-calendar.js +261 -0
- package/dist/components/ui/mode-toggle.d.ts +102 -0
- package/dist/components/ui/mode-toggle.d.ts.map +1 -0
- package/dist/components/ui/mode-toggle.js +83 -0
- package/dist/components/ui/money-field.d.ts +200 -0
- package/dist/components/ui/money-field.d.ts.map +1 -0
- package/dist/components/ui/money-field.js +215 -0
- package/dist/components/ui/multi-combobox.d.ts +181 -0
- package/dist/components/ui/multi-combobox.d.ts.map +1 -0
- package/dist/components/ui/multi-combobox.js +297 -0
- package/dist/components/ui/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select.js +8 -1
- package/dist/components/ui/navigation-menu.d.ts +7 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +8 -1
- package/dist/components/ui/nested-tabs.d.ts +188 -0
- package/dist/components/ui/nested-tabs.d.ts.map +1 -0
- package/dist/components/ui/nested-tabs.js +75 -0
- package/dist/components/ui/number-field.d.ts +40 -7
- package/dist/components/ui/number-field.d.ts.map +1 -1
- package/dist/components/ui/number-field.js +37 -7
- package/dist/components/ui/overflow-actions.d.ts +169 -0
- package/dist/components/ui/overflow-actions.d.ts.map +1 -0
- package/dist/components/ui/overflow-actions.js +266 -0
- package/dist/components/ui/pack-swatch.d.ts +177 -0
- package/dist/components/ui/pack-swatch.d.ts.map +1 -0
- package/dist/components/ui/pack-swatch.js +117 -0
- package/dist/components/ui/pack-switcher.d.ts +221 -0
- package/dist/components/ui/pack-switcher.d.ts.map +1 -0
- package/dist/components/ui/pack-switcher.js +94 -0
- package/dist/components/ui/pagination.d.ts +22 -0
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +23 -1
- package/dist/components/ui/password-field.d.ts +122 -0
- package/dist/components/ui/password-field.d.ts.map +1 -0
- package/dist/components/ui/password-field.js +69 -0
- package/dist/components/ui/pill.d.ts +172 -0
- package/dist/components/ui/pill.d.ts.map +1 -0
- package/dist/components/ui/pill.js +102 -0
- package/dist/components/ui/platform-modifier-key.d.ts +129 -0
- package/dist/components/ui/platform-modifier-key.d.ts.map +1 -0
- package/dist/components/ui/platform-modifier-key.js +125 -0
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +8 -1
- package/dist/components/ui/price.d.ts +144 -0
- package/dist/components/ui/price.d.ts.map +1 -0
- package/dist/components/ui/price.js +107 -0
- package/dist/components/ui/progress.d.ts +55 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +110 -2
- package/dist/components/ui/prompt-composer.d.ts +302 -0
- package/dist/components/ui/prompt-composer.d.ts.map +1 -0
- package/dist/components/ui/prompt-composer.js +145 -0
- package/dist/components/ui/proportion-list.d.ts +188 -0
- package/dist/components/ui/proportion-list.d.ts.map +1 -0
- package/dist/components/ui/proportion-list.js +134 -0
- package/dist/components/ui/prose.d.ts +34 -0
- package/dist/components/ui/prose.d.ts.map +1 -1
- package/dist/components/ui/prose.js +41 -1
- package/dist/components/ui/pulse-graph.d.ts +36 -4
- package/dist/components/ui/pulse-graph.d.ts.map +1 -1
- package/dist/components/ui/pulse-graph.js +174 -60
- package/dist/components/ui/radio-group.d.ts +7 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +8 -1
- package/dist/components/ui/range-field.d.ts +158 -0
- package/dist/components/ui/range-field.d.ts.map +1 -0
- package/dist/components/ui/range-field.js +208 -0
- package/dist/components/ui/relative-time.d.ts +116 -0
- package/dist/components/ui/relative-time.d.ts.map +1 -0
- package/dist/components/ui/relative-time.js +67 -0
- package/dist/components/ui/reorderable-list.d.ts +262 -0
- package/dist/components/ui/reorderable-list.d.ts.map +1 -0
- package/dist/components/ui/reorderable-list.js +325 -0
- package/dist/components/ui/repeatable-rows.d.ts +241 -0
- package/dist/components/ui/repeatable-rows.d.ts.map +1 -0
- package/dist/components/ui/repeatable-rows.js +221 -0
- package/dist/components/ui/repo-stars.d.ts +165 -0
- package/dist/components/ui/repo-stars.d.ts.map +1 -0
- package/dist/components/ui/repo-stars.js +92 -0
- package/dist/components/ui/resizable.d.ts +24 -0
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +96 -4
- package/dist/components/ui/search-dialog.d.ts +40 -5
- package/dist/components/ui/search-dialog.d.ts.map +1 -1
- package/dist/components/ui/search-dialog.js +94 -16
- package/dist/components/ui/search-field.d.ts +159 -0
- package/dist/components/ui/search-field.d.ts.map +1 -0
- package/dist/components/ui/search-field.js +98 -0
- package/dist/components/ui/section.d.ts +110 -1
- package/dist/components/ui/section.d.ts.map +1 -1
- package/dist/components/ui/section.js +111 -3
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +9 -1
- package/dist/components/ui/selection-toolbar.d.ts +166 -0
- package/dist/components/ui/selection-toolbar.d.ts.map +1 -0
- package/dist/components/ui/selection-toolbar.js +139 -0
- package/dist/components/ui/sidebar.d.ts +29 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +35 -2
- package/dist/components/ui/signal-field.d.ts.map +1 -1
- package/dist/components/ui/signal-field.js +1 -1
- package/dist/components/ui/slider.d.ts +7 -0
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js +32 -1
- package/dist/components/ui/sparkline.d.ts +117 -0
- package/dist/components/ui/sparkline.d.ts.map +1 -0
- package/dist/components/ui/sparkline.js +113 -0
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner.js +13 -0
- package/dist/components/ui/split-button.d.ts +207 -0
- package/dist/components/ui/split-button.d.ts.map +1 -0
- package/dist/components/ui/split-button.js +75 -0
- package/dist/components/ui/stateful-table.d.ts +345 -0
- package/dist/components/ui/stateful-table.d.ts.map +1 -0
- package/dist/components/ui/stateful-table.js +169 -0
- package/dist/components/ui/status.d.ts +99 -0
- package/dist/components/ui/status.d.ts.map +1 -0
- package/dist/components/ui/status.js +63 -0
- package/dist/components/ui/stepper.d.ts +155 -0
- package/dist/components/ui/stepper.d.ts.map +1 -0
- package/dist/components/ui/stepper.js +83 -0
- package/dist/components/ui/steps.d.ts +141 -0
- package/dist/components/ui/steps.d.ts.map +1 -0
- package/dist/components/ui/steps.js +128 -0
- package/dist/components/ui/switch.d.ts +8 -0
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +12 -1
- package/dist/components/ui/tabs.d.ts +21 -2
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +23 -4
- package/dist/components/ui/tag-group.d.ts +154 -0
- package/dist/components/ui/tag-group.d.ts.map +1 -0
- package/dist/components/ui/tag-group.js +111 -0
- package/dist/components/ui/task-progress.d.ts +149 -0
- package/dist/components/ui/task-progress.d.ts.map +1 -0
- package/dist/components/ui/task-progress.js +110 -0
- package/dist/components/ui/text-format-toolbar.d.ts +211 -0
- package/dist/components/ui/text-format-toolbar.d.ts.map +1 -0
- package/dist/components/ui/text-format-toolbar.js +186 -0
- package/dist/components/ui/timeline.d.ts.map +1 -1
- package/dist/components/ui/timeline.js +10 -1
- package/dist/components/ui/toast.d.ts +32 -10
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +150 -47
- package/dist/components/ui/toggle-group.d.ts +14 -5
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +15 -1
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +9 -1
- package/dist/components/ui/tree.d.ts +8 -0
- package/dist/components/ui/tree.d.ts.map +1 -1
- package/dist/components/ui/tree.js +92 -13
- package/dist/components/ui/video-player.d.ts +236 -0
- package/dist/components/ui/video-player.d.ts.map +1 -0
- package/dist/components/ui/video-player.js +72 -0
- package/dist/fonts/inter-latin-400-italic.woff2 +0 -0
- package/dist/index.d.ts +112 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +72 -0
- package/dist/lib/figure.d.ts +149 -0
- package/dist/lib/figure.d.ts.map +1 -0
- package/dist/lib/figure.js +242 -0
- package/dist/lib/utils.d.ts +29 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +35 -0
- package/dist/live/index.d.ts +10 -3
- package/dist/live/index.d.ts.map +1 -1
- package/dist/live/index.js +12 -3
- package/dist/live/run-stream-01/run-stream.d.ts.map +1 -1
- package/dist/live/run-stream-01/run-stream.js +6 -5
- package/dist/live/tool-ledger-01/index.d.ts +3 -0
- package/dist/live/tool-ledger-01/index.d.ts.map +1 -0
- package/dist/live/tool-ledger-01/index.js +1 -0
- package/dist/live/tool-ledger-01/tool-ledger.d.ts +348 -0
- package/dist/live/tool-ledger-01/tool-ledger.d.ts.map +1 -0
- package/dist/live/tool-ledger-01/tool-ledger.js +245 -0
- package/dist/pages/about-page/index.d.ts +306 -0
- package/dist/pages/about-page/index.d.ts.map +1 -0
- package/dist/pages/about-page/index.js +161 -0
- package/dist/pages/blog-post-page/index.d.ts +36 -15
- package/dist/pages/blog-post-page/index.d.ts.map +1 -1
- package/dist/pages/blog-post-page/index.js +35 -10
- package/dist/pages/careers-page/index.d.ts +288 -0
- package/dist/pages/careers-page/index.d.ts.map +1 -0
- package/dist/pages/careers-page/index.js +182 -0
- package/dist/pages/changelog-page/index.d.ts +255 -0
- package/dist/pages/changelog-page/index.d.ts.map +1 -0
- package/dist/pages/changelog-page/index.js +86 -0
- package/dist/pages/contact-page/index.d.ts +261 -0
- package/dist/pages/contact-page/index.d.ts.map +1 -0
- package/dist/pages/contact-page/index.js +136 -0
- package/dist/pages/docs-shell/docs-shell.d.ts +126 -16
- package/dist/pages/docs-shell/docs-shell.d.ts.map +1 -1
- package/dist/pages/docs-shell/docs-shell.js +229 -28
- package/dist/pages/error-page/index.d.ts +188 -0
- package/dist/pages/error-page/index.d.ts.map +1 -0
- package/dist/pages/error-page/index.js +102 -0
- package/dist/pages/index.d.ts +10 -0
- package/dist/pages/index.d.ts.map +1 -1
- package/dist/pages/index.js +14 -0
- package/dist/pages/legal-page/index.d.ts +194 -0
- package/dist/pages/legal-page/index.d.ts.map +1 -0
- package/dist/pages/legal-page/index.js +99 -0
- package/dist/pages/not-found-page/index.d.ts.map +1 -1
- package/dist/pages/not-found-page/index.js +4 -3
- package/dist/pages/onboarding-page/index.d.ts +199 -0
- package/dist/pages/onboarding-page/index.d.ts.map +1 -0
- package/dist/pages/onboarding-page/index.js +71 -0
- package/dist/pages/pricing-page/index.d.ts +286 -0
- package/dist/pages/pricing-page/index.d.ts.map +1 -0
- package/dist/pages/pricing-page/index.js +139 -0
- package/dist/pages/search-page/index.d.ts +305 -0
- package/dist/pages/search-page/index.d.ts.map +1 -0
- package/dist/pages/search-page/index.js +142 -0
- package/dist/pages/status-page/index.d.ts +366 -0
- package/dist/pages/status-page/index.d.ts.map +1 -0
- package/dist/pages/status-page/index.js +136 -0
- package/dist/styles.css +1105 -62
- package/package.json +9 -3
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from 'react';
|
|
3
|
+
import { CtaLink } from '../../components/ui/cta-link.js';
|
|
4
|
+
import { Metric } from '../../components/ui/metric.js';
|
|
5
|
+
import { Price } from '../../components/ui/price.js';
|
|
6
|
+
import { Section, SectionHeading, } from '../../components/ui/section.js';
|
|
7
|
+
import { Status } from '../../components/ui/status.js';
|
|
8
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '../../components/ui/table.js';
|
|
9
|
+
import { cn } from '../../lib/utils.js';
|
|
10
|
+
/**
|
|
11
|
+
* The tone each of the four states is drawn in, from the semantic contract and no
|
|
12
|
+
* other.
|
|
13
|
+
*/
|
|
14
|
+
const STATE_TONE = {
|
|
15
|
+
settled: 'success',
|
|
16
|
+
pending: 'info',
|
|
17
|
+
refunded: 'neutral',
|
|
18
|
+
disputed: 'destructive',
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The classes each cell takes, before the caller's own layout classes merge in.
|
|
22
|
+
*
|
|
23
|
+
* Only the reference wraps, and the reason is the one `FieldMap01` gives for its
|
|
24
|
+
* two prose columns: `table.tsx` sets every cell to `whitespace-nowrap` so a
|
|
25
|
+
* column of numbers lines up, and a reference is whatever the caller's ledger
|
|
26
|
+
* made it, which is sometimes a long one. A table that scrolls an identifier
|
|
27
|
+
* sideways to keep it on one line is a table nobody reads a whole row of.
|
|
28
|
+
*/
|
|
29
|
+
const CELL = {
|
|
30
|
+
at: 'text-muted-foreground whitespace-nowrap',
|
|
31
|
+
reference: 'font-mono text-xs whitespace-normal',
|
|
32
|
+
kind: 'text-muted-foreground whitespace-normal',
|
|
33
|
+
quantity: 'text-muted-foreground whitespace-nowrap tabular-nums',
|
|
34
|
+
amount: 'text-right whitespace-nowrap',
|
|
35
|
+
state: 'whitespace-nowrap',
|
|
36
|
+
link: 'text-right whitespace-nowrap',
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The refusals, checked before anything is drawn so a caller's mistake is one
|
|
40
|
+
* diagnostic in a console rather than a nameless control on a page.
|
|
41
|
+
*
|
|
42
|
+
* Five, and each one is a row that would be unreadable rather than ugly. A state
|
|
43
|
+
* with no words, because a coloured dot is invisible to a reader who cannot
|
|
44
|
+
* separate the tones and unreadable to a screen reader whatever the tones are. A
|
|
45
|
+
* quantity with no unit, because `1204` beside a price is a number nobody can act
|
|
46
|
+
* on and a reader's next question is always what the number counts. A link with
|
|
47
|
+
* no words, or a name with no link beside it. A moment the platform cannot read,
|
|
48
|
+
* so there is no value to put in the `time` element and the row would claim to be
|
|
49
|
+
* a moment it cannot name. And a set of columns this Block cannot fill, which is
|
|
50
|
+
* either an empty one or a header row a reader counts rather than reads.
|
|
51
|
+
*/
|
|
52
|
+
function assertHistory(columns, entries) {
|
|
53
|
+
const seen = new Set();
|
|
54
|
+
for (const column of columns) {
|
|
55
|
+
if (seen.has(column.id)) {
|
|
56
|
+
throw new Error(`History01: the column ${JSON.stringify(column.id)} is declared twice, so the table would have two ` +
|
|
57
|
+
'columns reading the same value and every cell after the first would be read under the wrong name. ' +
|
|
58
|
+
'Declare each cell once.');
|
|
59
|
+
}
|
|
60
|
+
if (column.id === 'quantity' && !entries.some((entry) => entry.quantity !== undefined)) {
|
|
61
|
+
throw new Error('History01: the "quantity" column was declared and no line passed a quantity, so the table would carry ' +
|
|
62
|
+
'a column of empty cells, which is a column every reader scans twice. Pass the quantities, or drop the ' +
|
|
63
|
+
'column.');
|
|
64
|
+
}
|
|
65
|
+
if (column.id === 'link' && !entries.some((entry) => entry.href !== undefined)) {
|
|
66
|
+
throw new Error('History01: the "link" column was declared and no line passed an href, so the table would carry a ' +
|
|
67
|
+
'column of empty cells. Pass the destinations, or drop the column.');
|
|
68
|
+
}
|
|
69
|
+
seen.add(column.id);
|
|
70
|
+
}
|
|
71
|
+
if (!seen.has('reference')) {
|
|
72
|
+
throw new Error('History01: the columns name no "reference" cell, so the header row would have a cell fewer than every ' +
|
|
73
|
+
'body row and a reader who landed on one cell would not be told which charge they are looking at. ' +
|
|
74
|
+
'Declare the reference column, which is also the row header for every row.');
|
|
75
|
+
}
|
|
76
|
+
for (const entry of entries) {
|
|
77
|
+
if (entry.stateLabel === undefined || entry.stateLabel.trim() === '') {
|
|
78
|
+
throw new Error(`History01: the line ${JSON.stringify(entry.reference)} declares a state and no words for it, so the ` +
|
|
79
|
+
'tone would be a coloured dot with no sentence beside it, in a record a reader may have to show to ' +
|
|
80
|
+
'somebody else. Pass stateLabel in the vocabulary this product uses, which is not this Block choice.');
|
|
81
|
+
}
|
|
82
|
+
if ((entry.href === undefined) !== (entry.hrefLabel === undefined)) {
|
|
83
|
+
throw new Error(`History01: the line ${JSON.stringify(entry.reference)} declares one of href and hrefLabel without ` +
|
|
84
|
+
'the other, so the row would carry a link with no words on it, or a name with no link beside it. ' +
|
|
85
|
+
'Pass the words that say what following it does, or omit the href.');
|
|
86
|
+
}
|
|
87
|
+
if (!Number.isFinite(new Date(entry.at).getTime())) {
|
|
88
|
+
throw new Error(`History01: the line ${JSON.stringify(entry.reference)} passes an at the platform cannot read, so there ` +
|
|
89
|
+
'is no value to put in the time element and the row would claim to be a moment it cannot name. Pass ' +
|
|
90
|
+
'epoch milliseconds, or a string the platform parses.');
|
|
91
|
+
}
|
|
92
|
+
if (entry.quantity !== undefined && entry.quantityLabel === undefined) {
|
|
93
|
+
throw new Error(`History01: the line ${JSON.stringify(entry.reference)} passes a quantity and no quantityLabel, so the ` +
|
|
94
|
+
'cell would hold a bare number beside a price, and a bare number is a number nobody can act on. Pass ' +
|
|
95
|
+
'the words this product uses for the unit, given the value and the line.');
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* What a workspace has been charged for and what it has consumed: a moment, a
|
|
101
|
+
* reference, a kind, an amount, a quantity, a state and a link, in a real table,
|
|
102
|
+
* under an optional summary of the period.
|
|
103
|
+
*
|
|
104
|
+
* **The storefront version of this pattern is an order history, and the pattern is
|
|
105
|
+
* the same one.** A shop shows a shopper what they bought, when, how much and
|
|
106
|
+
* whether it settled. What changes here is what the rows are: a workspace is
|
|
107
|
+
* charged for runs it triggered, capture volume it stored and agent minutes it
|
|
108
|
+
* burned, and the same record is read from the other side to answer what it has
|
|
109
|
+
* consumed. There is no shop and no basket anywhere in this Block, and a reader
|
|
110
|
+
* who has used both will recognise the shape and none of the vocabulary, which is
|
|
111
|
+
* the point: the columns are the caller's, the kinds are the caller's, the state
|
|
112
|
+
* words are the caller's, and the only thing this Block contributes is the
|
|
113
|
+
* rectangle they sit in.
|
|
114
|
+
*
|
|
115
|
+
* **It is a real table, and the reference is its row header.** A history is read
|
|
116
|
+
* by comparing: which month cost the most, how many runs are in that line, which
|
|
117
|
+
* reference keeps appearing. Comparison is what a table is for and it is what a
|
|
118
|
+
* grid of `div`s cannot do, because a `div` grid has no `th` to navigate by, no
|
|
119
|
+
* association between a row and its cells, and nothing for a browser's own table
|
|
120
|
+
* commands to act on. So every header is a `th` with `scope="col"` and the
|
|
121
|
+
* reference is a `th` with `scope="row"`, which is the cell a caller can rely on
|
|
122
|
+
* being present because `reference` is required on every entry. The rejected
|
|
123
|
+
* alternative was a `DataTable01`, which is the same table with a `cell` function
|
|
124
|
+
* per column and a full toolbar of its own; this is that table for the seven cells
|
|
125
|
+
* a history has, which means a caller cannot add an eighth and gets a row header
|
|
126
|
+
* for free.
|
|
127
|
+
*
|
|
128
|
+
* **The reference is set in the mono face, for the reason `SectionHeading` states
|
|
129
|
+
* for its own `index` prop.** That prop's documentation says a section's position
|
|
130
|
+
* in a sequence is machine notation rather than a word, and the mono stack is what
|
|
131
|
+
* this repository annotates machine-readable values with. A billing reference is
|
|
132
|
+
* the same kind of value by a stronger margin: it is copied, compared, quoted to
|
|
133
|
+
* support and typed, and it is the one cell on the row a reader may read aloud. A
|
|
134
|
+
* reference set in the interface face reads as a word somebody chose, and the
|
|
135
|
+
* difference is the difference between an identifier and a name. The cost is a
|
|
136
|
+
* row whose reference is a hand-written phrase rather than a code, and a caller
|
|
137
|
+
* who has one should put the phrase in `kind` where it belongs.
|
|
138
|
+
*
|
|
139
|
+
* **The order is the caller's and the Block never sorts, and on this surface that
|
|
140
|
+
* is not a nicety.** An audit trail that a Block reordered would be a claim about
|
|
141
|
+
* which record came first, and on a billing surface the same claim is a bill: a
|
|
142
|
+
* line moved above another one is a different statement about when a workspace was
|
|
143
|
+
* charged. Every other Block in this package refuses to sort because order is a
|
|
144
|
+
* claim about importance, and here it is a claim about fact, which is why the cost
|
|
145
|
+
* is named rather than implied. A ledger whose records arrive out of order has a
|
|
146
|
+
* problem, and the honest answers are to sort once at the store with a stable
|
|
147
|
+
* comparison on the moment plus the record's own sequence, or to pass them through
|
|
148
|
+
* and let the table read as it was received. Both are decisions about a system's
|
|
149
|
+
* truth, and a Block that made either one on the caller's behalf would be inserting
|
|
150
|
+
* itself into a financial record. A caller who wants newest first sorts once,
|
|
151
|
+
* upstream, and the Block draws what it was given in the order it was given it.
|
|
152
|
+
*
|
|
153
|
+
* **A state needs the caller's words and the run throws without them.** That is
|
|
154
|
+
* `StatusLedger01`'s argument with nothing added: the state is a colour and the
|
|
155
|
+
* words are the information, and a publisher that says "reversed" where another's
|
|
156
|
+
* says "credited back" cannot be given one vocabulary by a design system. A
|
|
157
|
+
* missing label throws rather than falling back to the union's own name, which
|
|
158
|
+
* would print `refunded` into a financial record as if it were a term of art, and
|
|
159
|
+
* a financial record is the last place a bare machine word belongs.
|
|
160
|
+
*
|
|
161
|
+
* **A quantity needs the caller's words too, and the reason is narrower.** A
|
|
162
|
+
* quantity on a billing line is never a bare number in a product anybody would
|
|
163
|
+
* ship: it is a count of runs, a count of gigabytes, a count of minutes, and the
|
|
164
|
+
* unit is the whole of what the number means. `1204` beside a price is a number a
|
|
165
|
+
* reader cannot act on, and their next question is always what it counts, so the
|
|
166
|
+
* reading is a function of the value and the line. The entry is in the argument
|
|
167
|
+
* because a history holds more than one unit: a metered line counts runs and a
|
|
168
|
+
* storage line counts gigabytes, and a Block that chose between them would be
|
|
169
|
+
* choosing which product this table is for.
|
|
170
|
+
*
|
|
171
|
+
* **The amount composes `Price` rather than printing a currency, and the moment
|
|
172
|
+
* prints exactly as passed.** A symbol says the currency and nothing else, while
|
|
173
|
+
* an amount also has a currency code, a precision, a period and a locale, and
|
|
174
|
+
* `Intl` already knows all four; a history that hardcoded a dollar sign would make
|
|
175
|
+
* a claim about every consumer's market. The moment goes the other way: a Block
|
|
176
|
+
* that formatted a date would be choosing a locale, a calendar and a granularity
|
|
177
|
+
* on a reader's behalf, so the value is printed as given and the ISO form goes on
|
|
178
|
+
* the `time` element, which means a caller who holds "the March invoice period"
|
|
179
|
+
* can pass exactly that. The cost of printing as given is a raw timestamp beside
|
|
180
|
+
* a price for a caller who passes milliseconds and no formatter, which is honest
|
|
181
|
+
* and almost never what was wanted.
|
|
182
|
+
*
|
|
183
|
+
* **The summary composes `Metric` and draws no card titles.** A period summary is
|
|
184
|
+
* figures, and `Metric` already owns the arrangement a figure is read in: the
|
|
185
|
+
* figure lands first and the name sits under it, and a string value is set in the
|
|
186
|
+
* mono face while a composed one is not. The cost is the one `Metric` states, and
|
|
187
|
+
* it is worth naming here because a caller will meet it on a billing page: a
|
|
188
|
+
* `delta` with no `deltaFormat` prints the bare number, because a Component cannot
|
|
189
|
+
* print a change it has no unit for. A caller who has a formatted change passes
|
|
190
|
+
* the reading as `value` and leaves `delta` off, which is the same amount of work
|
|
191
|
+
* and one fewer prop.
|
|
192
|
+
*
|
|
193
|
+
* **An empty history draws the caller's sentence and no table.** A table of
|
|
194
|
+
* column heads with no rows is a grid a reader looks through, and on this surface
|
|
195
|
+
* it is worse than that: a billing table with headers and nothing in it reads as a
|
|
196
|
+
* statement that was truncated rather than as a period with nothing in it. The
|
|
197
|
+
* cost is that a heading can survive on a page whose history has been purged, and
|
|
198
|
+
* a consumer who would rather see nothing at all should not render the Block.
|
|
199
|
+
*
|
|
200
|
+
* It is a server Component: no hook, no state, no client code and no router. The
|
|
201
|
+
* toolbar and the summary are the caller's own nodes, so a consumer who passes a
|
|
202
|
+
* client toolbar pays for the toolbar and not for the history.
|
|
203
|
+
*/
|
|
204
|
+
export function History01({ eyebrow, title, description, columns, entries, summary, toolbar, empty, headingLevel = 'h2', className, }) {
|
|
205
|
+
// The handle a table below takes its name from; see the note on the table.
|
|
206
|
+
const headingId = useId();
|
|
207
|
+
if (columns.length === 0) {
|
|
208
|
+
throw new Error('History01: columns is empty, so the history would be a table with no named columns, which is a grid of ' +
|
|
209
|
+
'amounts with nothing to check them against. Name the columns in the order they should be read.');
|
|
210
|
+
}
|
|
211
|
+
/*
|
|
212
|
+
The empty case is decided before the per-entry diagnostics rather than after
|
|
213
|
+
them, and the reason is that two of those diagnostics are about columns no row
|
|
214
|
+
fills. A period with nothing in it has no quantity to put under a quantity
|
|
215
|
+
column, and running that check over an empty array would fail a caller for the
|
|
216
|
+
one state in which the table is not drawn at all.
|
|
217
|
+
*/
|
|
218
|
+
if (entries.length === 0) {
|
|
219
|
+
return (_jsxs(Section, { "data-slot": "history-01", className: className, children: [_jsx(SectionHeading, { as: headingLevel, id: headingId, align: "left", eyebrow: eyebrow, title: title, description: description }), _jsx("div", { "data-slot": "history-01-empty", className: "text-muted-foreground text-sm", children: empty })] }));
|
|
220
|
+
}
|
|
221
|
+
assertHistory(columns, entries);
|
|
222
|
+
return (_jsxs(Section, { "data-slot": "history-01", className: className, children: [_jsx(SectionHeading, { as: headingLevel, id: headingId, align: "left", eyebrow: eyebrow, title: title, description: description, className: "mb-10" }), _jsxs("div", { "data-slot": "history-01-body", className: "flex flex-col gap-8", children: [summary === undefined || summary.length === 0 ? null : (
|
|
223
|
+
/*
|
|
224
|
+
The period summary, in a grid rather than in a row, because a figure
|
|
225
|
+
with a name under it is a tile and four tiles in a row of a 68rem
|
|
226
|
+
container leave each one about sixteen. The cost is that the row wraps
|
|
227
|
+
on a phone, which is the right thing for a figure rather than the wrong
|
|
228
|
+
thing, and the grid is one track per figure rather than a count this
|
|
229
|
+
Block chooses, because a summary of two and a summary of six are both
|
|
230
|
+
real and neither is a mistake.
|
|
231
|
+
*/
|
|
232
|
+
_jsx("div", { "data-slot": "history-01-summary", className: "grid gap-6 sm:grid-cols-2 lg:grid-cols-4", children: summary.map((item) => (_jsx(Metric, { "data-slot": "history-01-figure", value: item.value, label: item.label, delta: item.delta }, item.label))) })), toolbar === undefined ? null : (_jsx("div", { "data-slot": "history-01-toolbar", className: "flex flex-wrap items-center gap-3", children: toolbar })), _jsx("div", { "data-slot": "history-01-table-frame", className: "border-border overflow-hidden rounded-xl border", children: _jsxs(Table, { "aria-labelledby": headingId, "data-slot": "history-01-table", children: [_jsx(TableHeader, { children: _jsx(TableRow, { children: columns.map((column) => (_jsx(TableHead, { scope: "col", className: column.className, children: column.header }, column.id))) }) }), _jsx(TableBody, { children: entries.map((entry) => (_jsx(TableRow, { "data-slot": "history-01-entry", "data-entry": entry.id, children: columns.map((column) => (_jsx(Cell, { column: column, entry: entry }, column.id))) }, entry.id))) })] }) })] })] }));
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* The one cell of one row, and the whole of this Block's switch over a closed set.
|
|
236
|
+
*
|
|
237
|
+
* A switch rather than a map of render functions, for the reason `FieldMap01`
|
|
238
|
+
* gives: a map keyed by cell id would be a second recipe of the kind this package
|
|
239
|
+
* keeps off the public surface, and a switch over seven cases is the same table
|
|
240
|
+
* with the strings in the same file as the drawing that uses them.
|
|
241
|
+
*
|
|
242
|
+
* The reference is a `TableHead` with `scope="row"` rather than a cell, so a
|
|
243
|
+
* reader who navigates into a single cell is told which charge they are looking
|
|
244
|
+
* at rather than hearing an amount with nothing to attach it to. That is also why
|
|
245
|
+
* the class list sets the ink and the weight explicitly: `TableHead` carries the
|
|
246
|
+
* muted header ink and the header weight, and a row header in the row's own ink
|
|
247
|
+
* is a different thing from a column header that happens to be in the first
|
|
248
|
+
* column.
|
|
249
|
+
*/
|
|
250
|
+
function Cell({ column, entry }) {
|
|
251
|
+
const key = column.id;
|
|
252
|
+
const classes = cn(CELL[key], column.className);
|
|
253
|
+
if (key === 'reference') {
|
|
254
|
+
return (_jsx(TableHead, { scope: "row", className: cn(classes, 'text-foreground font-normal'), children: entry.reference }));
|
|
255
|
+
}
|
|
256
|
+
if (key === 'at') {
|
|
257
|
+
return (_jsx(TableCell, { className: classes, children: _jsx("time", { dateTime: new Date(entry.at).toISOString(), children: entry.at }) }));
|
|
258
|
+
}
|
|
259
|
+
if (key === 'kind') {
|
|
260
|
+
return _jsx(TableCell, { className: classes, children: entry.kindLabel ?? entry.kind });
|
|
261
|
+
}
|
|
262
|
+
if (key === 'amount') {
|
|
263
|
+
return (_jsx(TableCell, { className: classes, children: _jsx(Price, { ...entry.amount, size: "sm" }) }));
|
|
264
|
+
}
|
|
265
|
+
if (key === 'quantity') {
|
|
266
|
+
if (entry.quantity === undefined)
|
|
267
|
+
return _jsx(TableCell, { className: classes });
|
|
268
|
+
return (_jsx(TableCell, { className: classes, children: entry.quantityLabel === undefined
|
|
269
|
+
? entry.quantity
|
|
270
|
+
: entry.quantityLabel(entry.quantity, { id: entry.id, reference: entry.reference }) }));
|
|
271
|
+
}
|
|
272
|
+
if (key === 'state') {
|
|
273
|
+
/*
|
|
274
|
+
The two are narrowed rather than asserted. The diagnostic in `assertHistory`
|
|
275
|
+
has already refused a state with no words, so this condition cannot be false
|
|
276
|
+
here, and spelling it out means the types read the same rule the runtime does
|
|
277
|
+
rather than a non-null assertion standing in for it.
|
|
278
|
+
*/
|
|
279
|
+
if (entry.stateLabel === undefined)
|
|
280
|
+
return _jsx(TableCell, { className: classes });
|
|
281
|
+
return (_jsx(TableCell, { className: classes, children: _jsx(Status, { size: "sm", tone: STATE_TONE[entry.state], label: entry.stateLabel }) }));
|
|
282
|
+
}
|
|
283
|
+
return (_jsx(TableCell, { className: classes, children: entry.href === undefined || entry.hrefLabel === undefined ? null : (_jsx(CtaLink, { href: entry.href, variant: "ghost", size: "sm", children: entry.hrefLabel })) }));
|
|
284
|
+
}
|
|
285
|
+
export default History01;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/history-01/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAKjD,YAAY,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACnB,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { History01, default } from './history-01.js';
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type HeadingLevel } from '../../components/ui/section.js';
|
|
3
|
+
/**
|
|
4
|
+
* How pressing a queue is one of four things, and the tone each one is drawn in.
|
|
5
|
+
*
|
|
6
|
+
* The four are a queue's whole vocabulary and they are not a severity ladder, which
|
|
7
|
+
* is why the tones are not in order: `urgent` is a judgement about lateness, `new`
|
|
8
|
+
* is a fact about age, and a queue where everything is urgent is a queue where
|
|
9
|
+
* nothing is. `urgent` takes the destructive tone because it is the one state a
|
|
10
|
+
* reader must not miss, `high` takes warning because it is the one they should
|
|
11
|
+
* reach for soon, `normal` takes the cool role that means not an alarm, and `low`
|
|
12
|
+
* takes the muted ink because nothing is being asked of the reader.
|
|
13
|
+
*
|
|
14
|
+
* A fifth would be the one that splits a state that does not need splitting, and
|
|
15
|
+
* each such tier is a colour a reader must learn and a word a maintainer must keep
|
|
16
|
+
* true. The words themselves are the caller's; see `InboxItem.priorityLabel`.
|
|
17
|
+
*/
|
|
18
|
+
export type InboxPriority = 'low' | 'normal' | 'high' | 'urgent';
|
|
19
|
+
/**
|
|
20
|
+
* The four states one queued item can be in, and the tone each one is drawn in.
|
|
21
|
+
*
|
|
22
|
+
* `new` is unread, `open` is being worked, `waiting` is with somebody else, and
|
|
23
|
+
* `done` is finished. The tones are the same four in the same order as a reader
|
|
24
|
+
* would sort them by how much they care: `new` is the cool role, `open` is muted,
|
|
25
|
+
* `waiting` is warning because it is a queue a reader cannot advance alone, and
|
|
26
|
+
* `done` is success because it is the only state that is finished.
|
|
27
|
+
*
|
|
28
|
+
* `done` is in this list rather than removed, and the row stays in the table, so a
|
|
29
|
+
* reader can see what a queue has already absorbed. Removing the row would make a
|
|
30
|
+
* queue look emptier every time it worked.
|
|
31
|
+
*/
|
|
32
|
+
export type InboxState = 'new' | 'open' | 'waiting' | 'done';
|
|
33
|
+
/**
|
|
34
|
+
* The six cells a row can draw, and the six column names a caller names them with.
|
|
35
|
+
*
|
|
36
|
+
* A closed set, and the closure is the point: the cells are the Block's, so a table
|
|
37
|
+
* with a seventh column would be a column with nothing to put in it. The names are
|
|
38
|
+
* the caller's, which is the other half of the same thing. A queue is drawn by
|
|
39
|
+
* four products with four vocabularies, and the words a reader needs above the
|
|
40
|
+
* same column are "Priority" in one and "Urgency" in the next, so `header` is a
|
|
41
|
+
* prop and `id` is not.
|
|
42
|
+
*/
|
|
43
|
+
export type InboxCell = 'subject' | 'source' | 'priority' | 'at' | 'state' | 'actions';
|
|
44
|
+
/**
|
|
45
|
+
* One column of a queue: which cell it draws, and the words above it.
|
|
46
|
+
*
|
|
47
|
+
* The shape follows `ResourceListColumn` for the reason that type gives: the cells
|
|
48
|
+
* are closed, so the `cell` function `DataTableColumn` takes is deliberately
|
|
49
|
+
* dropped, and what is left is genuinely the caller's, which is the column's name,
|
|
50
|
+
* its order, and where it sits. `className` is layout, for alignment or a fixed
|
|
51
|
+
* width, and it changes where a column sits and never what a cell looks like.
|
|
52
|
+
*/
|
|
53
|
+
export type InboxColumn = {
|
|
54
|
+
/** Which of the six cells this column draws. */
|
|
55
|
+
id: InboxCell;
|
|
56
|
+
/** The column's name, in the product's own words. */
|
|
57
|
+
header: ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* Layout classes for the column, applied to the header cell and to every cell
|
|
60
|
+
* under it.
|
|
61
|
+
*/
|
|
62
|
+
className?: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* One thing waiting for a person, and everything a reader needs to decide whether
|
|
66
|
+
* to be that person.
|
|
67
|
+
*
|
|
68
|
+
* `subject` is the only required field beside `id`, because a row with no subject
|
|
69
|
+
* is a row nobody can act on. Everything else is optional because a queue is
|
|
70
|
+
* heterogeneous by nature: some items came from a system that knows its source and
|
|
71
|
+
* some did not, some are urgent and some are not, and a shape that made every field
|
|
72
|
+
* required would be a table where two thirds of every row is an empty cell drawn as
|
|
73
|
+
* a placeholder.
|
|
74
|
+
*/
|
|
75
|
+
export type InboxItem = {
|
|
76
|
+
/** The item's stable key within the queue. */
|
|
77
|
+
id: string;
|
|
78
|
+
/**
|
|
79
|
+
* What the item is, in the words a reader would use about it.
|
|
80
|
+
*
|
|
81
|
+
* It is the row's identity, so it is the row head, and it is also the words on
|
|
82
|
+
* whatever control opens the item: a link when there is an `href` and a button
|
|
83
|
+
* when there is an `onSelect`. A subject a reader cannot scan down a column is a
|
|
84
|
+
* subject that has to be read one row at a time, which is the one thing a queue
|
|
85
|
+
* is not.
|
|
86
|
+
*/
|
|
87
|
+
subject: string;
|
|
88
|
+
/**
|
|
89
|
+
* Where the item came from, in the product's own words: a system, a form, a
|
|
90
|
+
* person, a feed.
|
|
91
|
+
*
|
|
92
|
+
* Drawn as passed and in the muted ink, and it is the reason the `source` cell
|
|
93
|
+
* is a column rather than a prefix on the subject: the source is a facet a reader
|
|
94
|
+
* compares, and a prefix is a facet nobody can scan.
|
|
95
|
+
*/
|
|
96
|
+
source?: string;
|
|
97
|
+
/**
|
|
98
|
+
* How pressing the item is, which is a judgement only the caller can make.
|
|
99
|
+
*
|
|
100
|
+
* The Block maps it to a tone and refuses to print the word, because
|
|
101
|
+
* `urgent` and `waiting` are English and this table ships into operations tools
|
|
102
|
+
* that are not in English. See `InboxItem.priorityLabel`.
|
|
103
|
+
*/
|
|
104
|
+
priority?: InboxPriority;
|
|
105
|
+
/**
|
|
106
|
+
* The words for the priority, given the priority the caller passed.
|
|
107
|
+
*
|
|
108
|
+
* Required whenever `priority` is set and the run fails without it, for the
|
|
109
|
+
* reason the Component JSDoc on `Status` gives at length: a status with no words
|
|
110
|
+
* is a coloured dot, and a coloured dot is invisible to a reader who cannot
|
|
111
|
+
* separate the tones and unreadable to a screen reader whatever the tones are.
|
|
112
|
+
* The function is a function and not a string because the honest sentence is
|
|
113
|
+
* usually per priority and per product: "overdue", "drop everything", "P1".
|
|
114
|
+
*/
|
|
115
|
+
priorityLabel?: (priority: InboxPriority) => string;
|
|
116
|
+
/**
|
|
117
|
+
* When the item arrived, in whichever of the three forms the caller holds it.
|
|
118
|
+
*
|
|
119
|
+
* Drawn through `relative-time`, so a number arrives as a date in the reader's
|
|
120
|
+
* own locale and a string is handed to the platform untouched: a date-only key,
|
|
121
|
+
* an ISO 8601 date-time and a locale's own written date all work and none of
|
|
122
|
+
* them is interpreted here. The rejected alternative was drawing the value as
|
|
123
|
+
* passed, which puts a raw epoch on the page for every caller who had
|
|
124
|
+
* milliseconds, and a queue sorted by nothing is a queue a reader cannot trust.
|
|
125
|
+
* A caller who wants a relative phrase composes `relative-time` themselves and
|
|
126
|
+
* passes the node, which is the one case where `at` is not a value.
|
|
127
|
+
*/
|
|
128
|
+
at?: number | string | ReactNode;
|
|
129
|
+
/**
|
|
130
|
+
* Where the item is in its life, which is a judgement only the caller can make.
|
|
131
|
+
* See `InboxItem.priorityLabel` for why the words are required with it.
|
|
132
|
+
*/
|
|
133
|
+
state?: InboxState;
|
|
134
|
+
/** The words for the state, in the product's own vocabulary. */
|
|
135
|
+
stateLabel?: string;
|
|
136
|
+
/**
|
|
137
|
+
* One line about the item, under the subject.
|
|
138
|
+
*
|
|
139
|
+
* A node because a queue's second line is not always a sentence: it is a quoted
|
|
140
|
+
* first line of a message, a diff summary, a product name, a chart. The Block
|
|
141
|
+
* draws it in the muted ink at one step below the subject and never truncates
|
|
142
|
+
* it, because a truncated sentence on a queue is a sentence the reader has to
|
|
143
|
+
* open the item to read anyway.
|
|
144
|
+
*/
|
|
145
|
+
excerpt?: ReactNode;
|
|
146
|
+
/**
|
|
147
|
+
* Where the item goes. Its presence makes the subject render as a native
|
|
148
|
+
* anchor, so the destination is real and the browser's own link affordances all
|
|
149
|
+
* work on it.
|
|
150
|
+
*/
|
|
151
|
+
href?: string;
|
|
152
|
+
/**
|
|
153
|
+
* The words on the link beside the subject, and required whenever `href` is.
|
|
154
|
+
*
|
|
155
|
+
* A link whose only words are the item's own subject tells a reader nothing
|
|
156
|
+
* about what activating it does, which is the same defect `Download01` refuses
|
|
157
|
+
* and for the same reason: the destination is a route in the caller's own
|
|
158
|
+
* application and only the caller knows what is behind it.
|
|
159
|
+
*/
|
|
160
|
+
hrefLabel?: string;
|
|
161
|
+
/**
|
|
162
|
+
* The controls that act on this one item: assign, defer, dismiss, snooze.
|
|
163
|
+
*
|
|
164
|
+
* A slot and not a set of named controls, because which actions a queue has is
|
|
165
|
+
* the consumer's fact, and a Block that drew a menu would be drawing four
|
|
166
|
+
* products' ideas of what can be done to a queued item. Each control inside is
|
|
167
|
+
* the caller's own Component, so this is where a caller composes their own
|
|
168
|
+
* menu rather than asking the Block to grow one.
|
|
169
|
+
*/
|
|
170
|
+
actions?: ReactNode;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* The props an Inbox01 takes.
|
|
174
|
+
*
|
|
175
|
+
* Every string is a prop and the Block ships none. There is no sample queue, no
|
|
176
|
+
* column heading, no priority word, no state word, no moment format and no
|
|
177
|
+
* sentence for an empty set, and the absence of the first is the sharpest version
|
|
178
|
+
* of the rule: a queue is a claim about what is waiting on a person right now, and
|
|
179
|
+
* a Block that named one would be publishing somebody else's backlog.
|
|
180
|
+
*/
|
|
181
|
+
export type Inbox01Props = {
|
|
182
|
+
/** Optional label above the section title. See the No-Default-Eyebrow Rule. */
|
|
183
|
+
eyebrow?: string;
|
|
184
|
+
/**
|
|
185
|
+
* The section title, and required.
|
|
186
|
+
*
|
|
187
|
+
* Not optional as the other Blocks' titles are, because a table with no heading
|
|
188
|
+
* is an orphan and a queue with no heading is a list a reader cannot name.
|
|
189
|
+
*/
|
|
190
|
+
title: ReactNode;
|
|
191
|
+
/** One or two sentences under the title. */
|
|
192
|
+
description?: ReactNode;
|
|
193
|
+
/**
|
|
194
|
+
* The items, in the order a reader should act on them.
|
|
195
|
+
*
|
|
196
|
+
* Order is the caller's and the Block does not sort, because a queue's order is
|
|
197
|
+
* a claim about what matters first and a Block that sorted it would be making
|
|
198
|
+
* that claim on the caller's behalf. A caller who wants it sorted by priority
|
|
199
|
+
* sorts it before passing it, and a queue whose order is a database query is
|
|
200
|
+
* not a Block's problem.
|
|
201
|
+
*/
|
|
202
|
+
items: readonly InboxItem[];
|
|
203
|
+
/**
|
|
204
|
+
* The columns, in the order the reader should meet them.
|
|
205
|
+
*
|
|
206
|
+
* The `subject` column has to be among them and the run fails without it, for
|
|
207
|
+
* the reason `ResourceList01` states: a header row with a cell fewer than every
|
|
208
|
+
* body row is a table a reader cannot read, and the subject is also the row head
|
|
209
|
+
* every other cell is read under.
|
|
210
|
+
*/
|
|
211
|
+
columns: readonly InboxColumn[];
|
|
212
|
+
/**
|
|
213
|
+
* The row above the table: the caller's own `data-toolbar` with its search, its
|
|
214
|
+
* filters and its count.
|
|
215
|
+
*
|
|
216
|
+
* A slot and not a set of named controls, for the reason `data-toolbar` gives:
|
|
217
|
+
* which controls a queue has is the consumer's fact, and a Block that drew a
|
|
218
|
+
* search box and a sort would be a Block that assumed the set is searchable and
|
|
219
|
+
* sortable. The number of rows the Block was given is drawn at the trailing edge
|
|
220
|
+
* of the same row, beside whatever the caller passed, and never inside it.
|
|
221
|
+
*/
|
|
222
|
+
toolbar?: ReactNode;
|
|
223
|
+
/**
|
|
224
|
+
* The count, as the caller's own words.
|
|
225
|
+
*
|
|
226
|
+
* A node and not a number, and the reason is the one `list-panel` gives for the
|
|
227
|
+
* same prop on a panel: the sentence around a number belongs to the product.
|
|
228
|
+
* "12 of 40" is true in one language and false in another, and so is "Showing
|
|
229
|
+
* archived", and a Block that assembled the sentence would have assembled it in
|
|
230
|
+
* this package's language, into an operations tool that may not be in English.
|
|
231
|
+
* Omit it and the row is drawn with nothing at its trailing edge rather than
|
|
232
|
+
* with a bare numeral, because a bare number beside a search box is a number
|
|
233
|
+
* with nothing to say what it counts.
|
|
234
|
+
*/
|
|
235
|
+
count?: ReactNode;
|
|
236
|
+
/**
|
|
237
|
+
* Called with an item's `id` when the reader activates that item's subject and
|
|
238
|
+
* the item has no `href`.
|
|
239
|
+
*
|
|
240
|
+
* A callback and not a router, for the reason the whole package holds: a Block
|
|
241
|
+
* reports an interaction and the consumer decides what it means. An item with an
|
|
242
|
+
* `href` renders as a link and never calls this, so a caller who wants one
|
|
243
|
+
* behaviour for the whole queue passes either a destination for every item or
|
|
244
|
+
* this for every item rather than both and hoping the reader picks correctly.
|
|
245
|
+
*/
|
|
246
|
+
onSelect?: (id: string) => void;
|
|
247
|
+
/**
|
|
248
|
+
* What the Block renders in place of the rows when there are none.
|
|
249
|
+
*
|
|
250
|
+
* Required and a node, and the reason is the sharpest one in this file: a reader
|
|
251
|
+
* who opened a queue and found nothing is reading exactly one line, and that
|
|
252
|
+
* line is the most load-bearing sentence on the page. "All clear" is a claim,
|
|
253
|
+
* and it is a different claim in a product where the queue is genuinely empty
|
|
254
|
+
* and in a product where the query is broken.
|
|
255
|
+
*/
|
|
256
|
+
empty: ReactNode;
|
|
257
|
+
/**
|
|
258
|
+
* Heading level for the section title. @defaultValue 'h2'
|
|
259
|
+
*
|
|
260
|
+
* See `HeadingLevel`.
|
|
261
|
+
*/
|
|
262
|
+
headingLevel?: HeadingLevel;
|
|
263
|
+
/**
|
|
264
|
+
* Layout only, exactly as on every Block. Changing a Prism-owned visual property
|
|
265
|
+
* from here is prohibited.
|
|
266
|
+
*/
|
|
267
|
+
className?: string;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* A queue of things waiting for a person: a priority, a source, a subject, a
|
|
271
|
+
* moment, a state and a row of controls, in a real table under the caller's own
|
|
272
|
+
* toolbar.
|
|
273
|
+
*
|
|
274
|
+
* **What an inbox is not in this system, and why it is worth saying first.** It is
|
|
275
|
+
* not a place a queue is fetched, read, refreshed or marked as seen. A Block takes
|
|
276
|
+
* its content as props and fetches no application data, and that is a law held by
|
|
277
|
+
* a gate rather than a habit: `packages/ui/scripts/check-block-imports.mjs` fails a
|
|
278
|
+
* Block that imports a router or a data client or calls a network function. So
|
|
279
|
+
* this is the frame for a queue the consumer populates. A Block that fetched its
|
|
280
|
+
* own queue would have to be reimplemented by every consumer whose queue lives
|
|
281
|
+
* somewhere else, and there is no version of that which is not a fork: four
|
|
282
|
+
* consumers with four stores would each either patch the fetch or copy the Block,
|
|
283
|
+
* and the corpus publishes it as a product-agnostic section, so an agent composing
|
|
284
|
+
* a page from it composes a request the consumer never asked for. What the Block
|
|
285
|
+
* refuses is not the queue, it is the transport.
|
|
286
|
+
*
|
|
287
|
+
* **The table is `table.tsx` and the two words that matter are the caller's.** A
|
|
288
|
+
* queue is read by comparing: which of these four is most pressing, how many are
|
|
289
|
+
* urgent, which source keeps producing them. Comparison is what a table is for and
|
|
290
|
+
* it is what a grid of divs cannot do, because a `div` grid has no `th` to
|
|
291
|
+
* navigate by, no association between a subject and its cells, and nothing for a
|
|
292
|
+
* browser's own table commands to act on. So every header is a `th` with
|
|
293
|
+
* `scope="col"`, the subject is a `th` with `scope="row"`, and the caller names
|
|
294
|
+
* the columns. The rejected alternative was a `DataTable01`, which is the same
|
|
295
|
+
* table with a `cell` function per column and a full toolbar of its own; this
|
|
296
|
+
* Block is that table for the six cells a queue has, which means a caller cannot
|
|
297
|
+
* add a seventh and gets a row header for free.
|
|
298
|
+
*
|
|
299
|
+
* **The priority and the state are drawn in the caller's words or not at all.**
|
|
300
|
+
* Both are closed unions, and both refuse to print themselves. A queue that
|
|
301
|
+
* rendered `urgent` and `waiting` in English into a consumer's operations tool
|
|
302
|
+
* would be the exact defect `check-block-copy.mjs` was written to end, and it is a
|
|
303
|
+
* worse one here than anywhere else in the package, because an operations tool is
|
|
304
|
+
* the place a person reads under time pressure in a product that is very often not
|
|
305
|
+
* in English. So each item that declares a tone must also declare the words, the
|
|
306
|
+
* run fails without them, and `Status` draws the dot beside the caller's sentence.
|
|
307
|
+
* The rejected alternative was to print the union's own name as a fallback, and
|
|
308
|
+
* the cost of that is the whole argument: it is a sentence a consumer cannot
|
|
309
|
+
* translate, inside a design system rather than inside their own code, which is
|
|
310
|
+
* where a translation tool is least likely to look.
|
|
311
|
+
*
|
|
312
|
+
* **The subject is a real control, and which real control depends on the item.** An
|
|
313
|
+
* item with an `href` renders the subject as a native anchor, so the destination
|
|
314
|
+
* is announced as a link, the browser's own affordances work, and middle-click
|
|
315
|
+
* opens it in a new tab. An item without one renders the subject as a `Button`,
|
|
316
|
+
* which is a real `<button>` with the focus ring and the hit target already
|
|
317
|
+
* solved. The rejected arrangement is a `<tr onClick>`, and it is rejected for the
|
|
318
|
+
* same reason `Todo01` refuses a `div` with an `onClick`: a row that listens for a
|
|
319
|
+
* click is not reachable by keyboard at all, and a queue whose every row is
|
|
320
|
+
* unreachable is a queue a keyboard user cannot work. A caller who needs a third
|
|
321
|
+
* arrangement composes their own control in the item's `actions` slot.
|
|
322
|
+
*
|
|
323
|
+
* **The moment goes through `relative-time` rather than being printed, and the
|
|
324
|
+
* cost of that is named.** A bare number is milliseconds and a string is anything,
|
|
325
|
+
* so a cell that drew the value as passed would put a raw epoch on the page for
|
|
326
|
+
* every caller whose data layer holds milliseconds, which is most of them, and
|
|
327
|
+
* would print a number with no date on it for the rest. `relative-time` hands the
|
|
328
|
+
* value to the platform, which knows the reader's locale and does the formatting
|
|
329
|
+
* in it, and hands the sentence back to the caller for the relative half. What
|
|
330
|
+
* that costs is that the moment is in the client graph rather than the server one,
|
|
331
|
+
* which is a cost this Block was already paying: the module carries `'use client'`
|
|
332
|
+
* because a queue has a control in it.
|
|
333
|
+
*
|
|
334
|
+
* **A `done` item keeps its row.** It is drawn in the muted ink and nothing else
|
|
335
|
+
* changes about it, and the reason is the one the whole Block rests on: a queue is
|
|
336
|
+
* read to decide what to do next, and a row that disappears is a decision a reader
|
|
337
|
+
* cannot audit. Removing a completed item is the consumer's filter, and the
|
|
338
|
+
* consumer is the only one who knows whether the reader wanted it.
|
|
339
|
+
*
|
|
340
|
+
* It is a client Component, and the reason is the callback rather than the state:
|
|
341
|
+
* `onSelect` is a function, a function is a piece of state, and state is a client
|
|
342
|
+
* module. A server component cannot hand an event handler to a `<button>`, so a
|
|
343
|
+
* caller rendering this from a server component would get a queue whose subjects
|
|
344
|
+
* do nothing. The rest of the rendering is a table, which is the price of that and
|
|
345
|
+
* a small one.
|
|
346
|
+
*/
|
|
347
|
+
export declare function Inbox01({ eyebrow, title, description, items, columns, toolbar, count, onSelect, empty, headingLevel, className, }: Inbox01Props): import("react").JSX.Element;
|
|
348
|
+
export default Inbox01;
|
|
349
|
+
//# sourceMappingURL=inbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../../src/blocks/inbox-01/inbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAK7C,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAYxF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEhE;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAA;AA4B5D;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,QAAQ,GACR,UAAU,GACV,IAAI,GACJ,OAAO,GACP,SAAS,CAAA;AAEb;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,gDAAgD;IAChD,EAAE,EAAE,SAAS,CAAA;IACb,qDAAqD;IACrD,MAAM,EAAE,SAAS,CAAA;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAA;IACV;;;;;;;;OAQG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,MAAM,CAAA;IACnD;;;;;;;;;;;OAWG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;OAKG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;;;;;;OAQG;IACH,KAAK,EAAE,SAAS,SAAS,EAAE,CAAA;IAC3B;;;;;;;OAOG;IACH,OAAO,EAAE,SAAS,WAAW,EAAE,CAAA;IAC/B;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B;;;;;;;;OAQG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAoBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AACH,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,KAAK,EACL,WAAW,EACX,KAAK,EACL,OAAO,EACP,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,YAAmB,EACnB,SAAS,GACV,EAAE,YAAY,+BAwId;AA+FD,eAAe,OAAO,CAAA"}
|