@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,271 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type HeadingLevel } from '../../components/ui/section.js';
|
|
3
|
+
import { type StatusTone } from '../../components/ui/status.js';
|
|
4
|
+
/**
|
|
5
|
+
* One thing that happened: who did it, what they did, to what, and when.
|
|
6
|
+
*
|
|
7
|
+
* **`actor`, `action`, `target` and `at` are four fields because a record of what
|
|
8
|
+
* happened has four parts and no others.** Every other surface in this repository
|
|
9
|
+
* that shows a record of an event has arrived at the same four by a different route,
|
|
10
|
+
* and each has added a fifth: a source, a category, a severity, a free text field. A
|
|
11
|
+
* fifth field is a claim about the reader's product, because a Block cannot know
|
|
12
|
+
* whether a fifth thing is required, and a caller who has one composes it in
|
|
13
|
+
* `detail`, which is a node. So the shape is closed at four and the rest is a slot.
|
|
14
|
+
*
|
|
15
|
+
* `id` is a key and is never rendered, for the reason `ContentGrid01Entry`'s id is: a
|
|
16
|
+
* feed is reordered by a consumer as often as it is read, and a key made of the
|
|
17
|
+
* words means a rename in the copy is a rename in the key.
|
|
18
|
+
*/
|
|
19
|
+
export type ActivityFeed01Event = {
|
|
20
|
+
/** A key unique within the feed, carried on the markup as `data-event`. */
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Who did it, in the words a reader would use for them.
|
|
24
|
+
*
|
|
25
|
+
* A `string` rather than a node because a feed is scanned down this edge and a
|
|
26
|
+
* column that wraps is a column that does not line up. A caller whose actor is a
|
|
27
|
+
* person with an avatar composes the avatar into `detail` instead.
|
|
28
|
+
*/
|
|
29
|
+
actor: string;
|
|
30
|
+
/**
|
|
31
|
+
* What they did, in the product's own verb.
|
|
32
|
+
*
|
|
33
|
+
* A verb and not a sentence, because the three fields are drawn as one run of
|
|
34
|
+
* words: the actor, then this, then the target. A caller whose event needs a full
|
|
35
|
+
* clause writes the clause here and the run reads as one, which is the same thing
|
|
36
|
+
* with a different boundary.
|
|
37
|
+
*/
|
|
38
|
+
action: string;
|
|
39
|
+
/**
|
|
40
|
+
* What they did it to: a run, a document, a setting, a person.
|
|
41
|
+
*
|
|
42
|
+
* Optional because a record of what happened sometimes has nothing to point at: a
|
|
43
|
+
* sign-in, a logout, a nightly job that names no document. A caller with a target
|
|
44
|
+
* passes one; a caller whose target is a node composes it into `detail`.
|
|
45
|
+
*/
|
|
46
|
+
target?: string;
|
|
47
|
+
/**
|
|
48
|
+
* When it happened, printed exactly as passed.
|
|
49
|
+
*
|
|
50
|
+
* A `number` or a `string` and never a `Date`, and the reason is the one
|
|
51
|
+
* `ContentGrid01Entry`'s `at` gives: a Block ships no formatting, so the reading a
|
|
52
|
+
* reader should see is the caller's own. A number is epoch milliseconds and is
|
|
53
|
+
* printed as a number, which is honest and almost never what was wanted; a string
|
|
54
|
+
* is printed as written, so `2026-09-30`, `30 September` and `Q3` are all readings
|
|
55
|
+
* a caller writes and this Block parses none of them. The machine value is still
|
|
56
|
+
* there, on the `time` element's `dateTime`, so a crawler and a screen reader get a
|
|
57
|
+
* timestamp whatever the visible reading says.
|
|
58
|
+
*
|
|
59
|
+
* A caller who wants a localised reading and a relative phrase composes
|
|
60
|
+
* `relative-time` beside it and passes the node in `detail`, which is the one node
|
|
61
|
+
* slot a row has, so the reading sits under the record rather than inside it. See
|
|
62
|
+
* the Block's JSDoc for the whole of that argument.
|
|
63
|
+
*/
|
|
64
|
+
at: number | string;
|
|
65
|
+
/**
|
|
66
|
+
* The line under the record, for whatever the caller wants said about it: the
|
|
67
|
+
* reason, the payload, the diff, a composed `relative-time` reading.
|
|
68
|
+
*
|
|
69
|
+
* A node rather than a `string` for exactly that last reason. A caller with four
|
|
70
|
+
* words of context passes four words; a caller with a table, a code block or a
|
|
71
|
+
* timestamp passes the Component.
|
|
72
|
+
*/
|
|
73
|
+
detail?: ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* The tone of the event, drawn as a `Status` beside the record.
|
|
76
|
+
*
|
|
77
|
+
* See the Block's JSDoc for why a tone arrives without a label: the label this
|
|
78
|
+
* Block draws is the machine value itself, which is what `Changelog01` does with a
|
|
79
|
+
* change's kind, and the alternative is a coloured dot with nothing beside it,
|
|
80
|
+
* which is a mark only a reader who can separate the tones can see.
|
|
81
|
+
*/
|
|
82
|
+
tone?: StatusTone;
|
|
83
|
+
/** Where the record is kept. Its presence puts a link on the row. */
|
|
84
|
+
href?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The words on the link, and required whenever `href` is.
|
|
87
|
+
*
|
|
88
|
+
* A link whose only words are the record's own three fields tells a reader nothing
|
|
89
|
+
* about what following it does, and a feed of ten links all reading "Open" is ten
|
|
90
|
+
* identical controls.
|
|
91
|
+
*/
|
|
92
|
+
hrefLabel?: string;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* The props an ActivityFeed01 takes, as a union over whether the feed is grouped.
|
|
96
|
+
*
|
|
97
|
+
* A union rather than an optional `dayLabel` beside an optional `groupBy`, for the
|
|
98
|
+
* reason `HeroAction` is the reference: a `dayLabel` that is optional in the ungrouped
|
|
99
|
+
* arm and required in the grouped one is a prop whose absence is sometimes a mistake
|
|
100
|
+
* and sometimes a decision, and a caller who writes `groupBy="day"` and forgets the
|
|
101
|
+
* label should not compile.
|
|
102
|
+
*/
|
|
103
|
+
export type ActivityFeed01Props = {
|
|
104
|
+
/** Optional label above the section title. See the No-Default-Eyebrow Rule. */
|
|
105
|
+
eyebrow?: string;
|
|
106
|
+
/** The section title. Omit it for a feed composed under its own heading. */
|
|
107
|
+
title?: string;
|
|
108
|
+
/** One or two sentences under the title. */
|
|
109
|
+
description?: string;
|
|
110
|
+
/**
|
|
111
|
+
* The events, newest first unless the product says otherwise.
|
|
112
|
+
*
|
|
113
|
+
* The Block does not sort, and the reason is the one `StatusLedger01` gives for its
|
|
114
|
+
* rows: order is a claim about what happened first, and a feed that sorted itself
|
|
115
|
+
* would be making that claim on the caller's behalf. A caller's order is also the
|
|
116
|
+
* only order that can express the exceptions, because a feed is where a pinned
|
|
117
|
+
* record lives and a Block cannot know an event is pinned.
|
|
118
|
+
*/
|
|
119
|
+
events: ActivityFeed01Event[];
|
|
120
|
+
/**
|
|
121
|
+
* Called with an event's id when its row is activated, and the only reason a row is
|
|
122
|
+
* a control at all.
|
|
123
|
+
*
|
|
124
|
+
* A row with no handler is a `li`, which is a record a reader reads; a row with one
|
|
125
|
+
* is a `button`, which is a thing a reader does. That is the whole of the rule, and
|
|
126
|
+
* it is why a feed is a list first and a set of controls second. The alternative
|
|
127
|
+
* was to make every row a button, which is a feed of forty tab stops where a reader
|
|
128
|
+
* tabbing through the page lands on the fortieth record before reaching anything
|
|
129
|
+
* after the feed.
|
|
130
|
+
*
|
|
131
|
+
* An event's destination is a separate control with the caller's own words, so a
|
|
132
|
+
* row can be selectable and linked at once, and that is the arrangement a feed
|
|
133
|
+
* actually wants: a reader activates the row to open the thing and the caller
|
|
134
|
+
* marks it read on the way past.
|
|
135
|
+
*/
|
|
136
|
+
onSelect?: (id: string) => void;
|
|
137
|
+
/**
|
|
138
|
+
* How many of the events to draw.
|
|
139
|
+
*
|
|
140
|
+
* Optional, and the cost is the honest one: a capped feed that says nothing about
|
|
141
|
+
* what it left out is a feed a reader believes is complete. So the words that would
|
|
142
|
+
* say it are the caller's, and the caller's way of saying them is to pass a limit it
|
|
143
|
+
* can stand behind and put the rest behind its own link. The alternative was a
|
|
144
|
+
* `truncatedLabel` prop beside this one, which is a sentence Prism would ship into
|
|
145
|
+
* every consumer's product.
|
|
146
|
+
*/
|
|
147
|
+
limit?: number;
|
|
148
|
+
/**
|
|
149
|
+
* What a reader is told when the feed has nothing in it.
|
|
150
|
+
*
|
|
151
|
+
* Required, and it is the one line a reader with a question and no answer is
|
|
152
|
+
* guaranteed to read. It is also the sentence Prism is least entitled to write:
|
|
153
|
+
* "Nothing has happened yet" is a claim about a product and a period, and both are
|
|
154
|
+
* the caller's.
|
|
155
|
+
*/
|
|
156
|
+
empty: ReactNode;
|
|
157
|
+
/** Heading level for the section title. See `HeadingLevel`. */
|
|
158
|
+
headingLevel?: HeadingLevel;
|
|
159
|
+
/**
|
|
160
|
+
* Layout only, exactly as on every Block. Changing a Prism-owned visual property
|
|
161
|
+
* from here is prohibited.
|
|
162
|
+
*/
|
|
163
|
+
className?: string;
|
|
164
|
+
} & ({
|
|
165
|
+
/**
|
|
166
|
+
* Group the events under a heading per day.
|
|
167
|
+
*
|
|
168
|
+
* A day heading is a heading and not a divider, because a reader who navigates
|
|
169
|
+
* by heading is looking for the day they want and a rule between two groups is
|
|
170
|
+
* invisible to them.
|
|
171
|
+
*/
|
|
172
|
+
groupBy: 'day';
|
|
173
|
+
/**
|
|
174
|
+
* The words for a day, given the day.
|
|
175
|
+
*
|
|
176
|
+
* Required in this arm, and a function rather than a string, because "Today",
|
|
177
|
+
* "Yesterday" and "Tuesday" are the product's sentences and the key is a fact.
|
|
178
|
+
* The key is an ISO calendar date in the runtime's own zone, so a caller hands
|
|
179
|
+
* it to `Intl.DateTimeFormat` and gets their locale's reading of it, or writes
|
|
180
|
+
* their own. The rejected alternative was the Block calling `Intl` itself, which
|
|
181
|
+
* would put a locale this package does not own into every consumer's feed.
|
|
182
|
+
*/
|
|
183
|
+
dayLabel: (key: string) => string;
|
|
184
|
+
} | {
|
|
185
|
+
/** One list, no headings inside it. @defaultValue 'none' */
|
|
186
|
+
groupBy?: 'none';
|
|
187
|
+
/** Forbidden in this arm, because there is no day to name. */
|
|
188
|
+
dayLabel?: never;
|
|
189
|
+
});
|
|
190
|
+
/**
|
|
191
|
+
* A chronological list of what happened: an actor, an action, a target, a moment,
|
|
192
|
+
* and an optional line under the record.
|
|
193
|
+
*
|
|
194
|
+
* **The words are the caller's and the shape is Prism's, and that is the whole of the
|
|
195
|
+
* design.** A feed that composed the sentence would ship English into every
|
|
196
|
+
* consumer's product: "Ada published a release four hours ago" is a word order, an
|
|
197
|
+
* article, an inflected verb and a relative phrase, and a Block that assembled it
|
|
198
|
+
* would have assembled the English one and given the consumer no way to translate
|
|
199
|
+
* it, inflect it or reorder it, because the string would be inside a package rather
|
|
200
|
+
* than inside their own code. So this Block takes the three parts as three props and
|
|
201
|
+
* draws them as one run of words, which is the most a design system can do without
|
|
202
|
+
* writing a sentence.
|
|
203
|
+
*
|
|
204
|
+
* **The four fields are four because a record of what happened has four parts and no
|
|
205
|
+
* others.** Who, what they did, to what, and when. Each is required except the target,
|
|
206
|
+
* and the target's absence is a real state rather than a gap: a sign-in, a logout, a
|
|
207
|
+
* nightly job that names no document. The fifth field every similar surface reaches
|
|
208
|
+
* for, a source or a category or a severity, is `tone` and `detail`, both optional
|
|
209
|
+
* and one of them a node. A closed shape of four with two slots is the answer to a
|
|
210
|
+
* feed that has grown a sixth field because the Block could not say no.
|
|
211
|
+
*
|
|
212
|
+
* **`at` is printed exactly as passed, and the Block formats no moment.** A Block
|
|
213
|
+
* that formatted one would have to pick a locale, a calendar and a granularity, and
|
|
214
|
+
* `relative-time` already holds that decision and holds it well: it formats the
|
|
215
|
+
* absolute reading with the platform and hands the sentence back rather than writing
|
|
216
|
+
* it, which is the only arrangement a shared package can offer a product shipping in
|
|
217
|
+
* more than one language. So this Block prints the caller's value, puts the ISO form
|
|
218
|
+
* on the `time` element's `dateTime` so a crawler and a screen reader get a timestamp
|
|
219
|
+
* whatever the visible reading says, and says in the prop's own note that a caller
|
|
220
|
+
* who wants a relative phrase composes the node beside the record in `detail`. The
|
|
221
|
+
* cost is named rather than hidden: a caller who passes epoch milliseconds gets epoch
|
|
222
|
+
* milliseconds, which is honest and almost never what was wanted.
|
|
223
|
+
*
|
|
224
|
+
* **A row is a control only when there is something for it to do.** An event with no
|
|
225
|
+
* handler renders as a `li`, which is a record a reader reads and not a thing they
|
|
226
|
+
* act on. The destination is a separate control carrying the caller's own words, so a
|
|
227
|
+
* row can be selectable and linked at once, which is the arrangement a feed actually
|
|
228
|
+
* wants: a reader activates the row to open the thing, and the caller marks it read on
|
|
229
|
+
* the way past. The alternative was to make every row a link, and a feed of forty
|
|
230
|
+
* links is a page where the tab order runs down the whole feed before it reaches
|
|
231
|
+
* anything after it.
|
|
232
|
+
*
|
|
233
|
+
* **A day group is a list item holding a heading and a nested list, and not a merged
|
|
234
|
+
* row.** The structure is an `ol` of `li` and each `li` is a heading plus its own
|
|
235
|
+
* `ol`, because a reader moving by list item should hear how many days there are and
|
|
236
|
+
* then how many records are in the day they are reading. The alternative was a table
|
|
237
|
+
* with a row spanning every column, which is a table and not a feed, and which would
|
|
238
|
+
* have given four unrelated fields column semantics they do not have. The day heading
|
|
239
|
+
* is at `childLevel(headingLevel)`, so a feed embedded one level deeper carries its
|
|
240
|
+
* outline with it, and the day groups themselves are not headings at the same level,
|
|
241
|
+
* which is what makes a list of days a list rather than a flat run of headings.
|
|
242
|
+
*
|
|
243
|
+
* **The order is the caller's and the Block never sorts.** A feed is the surface
|
|
244
|
+
* where the exceptions live: a pinned event, a run that arrived late, a record the
|
|
245
|
+
* caller wants beside its own retry. A Block that sorted by moment would move the
|
|
246
|
+
* pin, and the caller would have to add a flag and this Block would have to know what
|
|
247
|
+
* the flag meant. The groups follow the order the days first appear, so a pinned
|
|
248
|
+
* event from yesterday puts yesterday first, which is the only arrangement that
|
|
249
|
+
* survives a pin.
|
|
250
|
+
*
|
|
251
|
+
* **The tone is a mark with a machine word beside it, and the cost is that word.** A
|
|
252
|
+
* feed is a scanning surface, so the mark has to be there, and a mark that is colour
|
|
253
|
+
* alone is invisible to a reader who cannot separate the tones and unreadable to a
|
|
254
|
+
* screen reader whatever the tones are. So the tone is drawn by `Status` with the
|
|
255
|
+
* machine value as its label, which is what `Changelog01` does with a change's kind
|
|
256
|
+
* and the reason is the same: a tone is a judgement about urgency that only the
|
|
257
|
+
* caller can make, and a Block that wrote the sentence for it would be picking an
|
|
258
|
+
* alarm for four products at once. A caller whose product words these states
|
|
259
|
+
* differently composes its own mark into `detail` and leaves `tone` unset. That is
|
|
260
|
+
* the cost of the split, stated rather than hidden.
|
|
261
|
+
*
|
|
262
|
+
* It is a client Component, and the reason is the handler rather than the state, as
|
|
263
|
+
* in `data-table-01`: `onSelect` is a function, a function is a piece of state, and
|
|
264
|
+
* state is a client module. The cost is stated rather than implied: a feed with no
|
|
265
|
+
* `onSelect` is a static list that ships this file's client runtime for nothing, and
|
|
266
|
+
* the fix for a consumer who needs that surface to be static is a `ReactNode` slot of
|
|
267
|
+
* their own rather than a Block that attaches a handler to every row.
|
|
268
|
+
*/
|
|
269
|
+
export declare function ActivityFeed01({ eyebrow, title, description, events, onSelect, limit, empty, groupBy, dayLabel, headingLevel, className, }: ActivityFeed01Props): import("react").JSX.Element;
|
|
270
|
+
export default ActivityFeed01;
|
|
271
|
+
//# sourceMappingURL=activity-feed-01.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-feed-01.d.ts","sourceRoot":"","sources":["../../../src/blocks/activity-feed-01/activity-feed-01.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAU,KAAK,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAGpE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,2EAA2E;IAC3E,EAAE,EAAE,MAAM,CAAA;IACV;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;;;;;;;;;;;OAgBG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAgCD;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;;;OAQG;IACH,MAAM,EAAE,mBAAmB,EAAE,CAAA;IAC7B;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;;OAOG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,CACA;IACE;;;;;;OAMG;IACH,OAAO,EAAE,KAAK,CAAA;IACd;;;;;;;;;OASG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;CAClC,GACD;IACE,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB,CACJ,CAAA;AAkHD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,KAAK,EACL,WAAW,EACX,MAAM,EACN,QAAQ,EACR,KAAK,EACL,KAAK,EACL,OAAgB,EAChB,QAAQ,EACR,YAAmB,EACnB,SAAS,GACV,EAAE,mBAAmB,+BAmGrB;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { CtaLink } from '../../components/ui/cta-link.js';
|
|
4
|
+
import { Section, SectionHeading, childLevel, } from '../../components/ui/section.js';
|
|
5
|
+
import { Status } from '../../components/ui/status.js';
|
|
6
|
+
import { dayKey } from '../../lib/utils.js';
|
|
7
|
+
/**
|
|
8
|
+
* The refusals, as checks, so a row that would render a link nobody can name, or a
|
|
9
|
+
* moment with no machine value, is a diagnostic in a console rather than a rendered
|
|
10
|
+
* control.
|
|
11
|
+
*
|
|
12
|
+
* The pair rule is the one `Changelog01` and `ContentGrid01` make, and the moment
|
|
13
|
+
* rule is `RelativeTime`'s: a value the platform cannot read has nothing to put in a
|
|
14
|
+
* `dateTime`, and a `time` element with no value in it claims to be a moment and is
|
|
15
|
+
* not one. Both diagnostics name the field so a caller knows which of their own
|
|
16
|
+
* values to fix.
|
|
17
|
+
*/
|
|
18
|
+
function assertEvent(event) {
|
|
19
|
+
if ((event.href === undefined) !== (event.hrefLabel === undefined)) {
|
|
20
|
+
throw new Error(`ActivityFeed01: the event "${event.actor} ${event.action}" declares one of href and hrefLabel without the ` +
|
|
21
|
+
'other, so the row would carry a link with no words on it, or a name with no link beside it. Pass the words ' +
|
|
22
|
+
'that say what following it does, or omit the href.');
|
|
23
|
+
}
|
|
24
|
+
if (!Number.isFinite(new Date(event.at).getTime())) {
|
|
25
|
+
throw new Error(`ActivityFeed01: the event "${event.actor} ${event.action}" passes an at the platform cannot read, so there is ` +
|
|
26
|
+
'no value to put in the time element and the row would claim to be a moment it cannot name. Pass epoch ' +
|
|
27
|
+
'milliseconds, or a string the platform parses.');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The class list every row shares, so the selectable and the plain row are the same
|
|
32
|
+
* row with a different element and cannot drift apart.
|
|
33
|
+
*
|
|
34
|
+
* One constant rather than two, and the alternative was a function returning a
|
|
35
|
+
* `ReactNode` per element shape. There are two shapes, so a constant is the cheaper
|
|
36
|
+
* way to be sure they are identical, and a third shape would be the moment to reach
|
|
37
|
+
* for the function.
|
|
38
|
+
*/
|
|
39
|
+
const ROW = 'flex w-full flex-col gap-1 border-b py-4 first:border-t last:border-b-0';
|
|
40
|
+
/**
|
|
41
|
+
* One record: the four fields, the detail line, and the destination.
|
|
42
|
+
*
|
|
43
|
+
* **The element is a decision about what a reader can do with the row, and the body
|
|
44
|
+
* is built once and placed in one of two so the two cannot disagree.** A row with an
|
|
45
|
+
* `onSelect` and no destination is a `button`; a row with neither is a `li`. The
|
|
46
|
+
* destination is never the whole row, and that is the second decision here: a link
|
|
47
|
+
* whose only words are the record's own three fields tells a reader nothing about
|
|
48
|
+
* what following it does, so the destination is a control with the caller's words and
|
|
49
|
+
* it sits under the record. Putting it inside the row's own control was the
|
|
50
|
+
* alternative and it is invalid markup, since an anchor inside a button is neither
|
|
51
|
+
* focusable in the way a reader expects nor announced as two things.
|
|
52
|
+
*
|
|
53
|
+
* **The body is phrasing content only, so a button can hold it.** A `button` may
|
|
54
|
+
* contain phrasing content and nothing else, so the record, the moment and the
|
|
55
|
+
* detail line are spans and the column arrangement is a flex `span` rather than the
|
|
56
|
+
* list item's own layout. That is the one place this Block is shaped by what an
|
|
57
|
+
* element is allowed to contain rather than by what it looks like, and it is why the
|
|
58
|
+
* two shapes are the same height.
|
|
59
|
+
*/
|
|
60
|
+
function EventRow({ event, onSelect, }) {
|
|
61
|
+
const record = (_jsxs(_Fragment, { children: [_jsxs("span", { "data-slot": "activity-feed-01-record", className: "flex flex-wrap items-baseline gap-x-2 text-sm", children: [event.tone === undefined ? null : (_jsx(Status, { "data-slot": "activity-feed-01-tone", tone: event.tone, label: event.tone, size: "sm" })), _jsx("span", { className: "font-medium", children: event.actor }), _jsx("span", { className: "text-muted-foreground", children: event.action }), event.target === undefined ? null : (_jsx("span", { className: "font-medium", children: event.target }))] }), _jsx("span", { "data-slot": "activity-feed-01-at", className: "text-muted-foreground font-mono text-xs", children: _jsx("time", { dateTime: new Date(event.at).toISOString(), children: event.at }) }), event.detail === undefined ? null : (_jsx("span", { "data-slot": "activity-feed-01-detail", className: "text-muted-foreground text-sm", children: event.detail }))] }));
|
|
62
|
+
return (_jsxs("li", { "data-slot": "activity-feed-01-event", "data-event": event.id, className: ROW, children: [onSelect === undefined ? (record) : (_jsx("button", { type: "button", "data-slot": "activity-feed-01-select", onClick: () => onSelect(event.id), className: "w-full rounded-sm text-left focus-visible:ring-ring focus-visible:ring-[3px] focus-visible:outline-none", children: _jsx("span", { className: "flex flex-col gap-1", children: record }) })), event.href === undefined ? null : (_jsx(CtaLink, { "data-slot": "activity-feed-01-link", href: event.href, variant: "ghost", size: "sm", className: "self-start", children: event.hrefLabel }))] }));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A chronological list of what happened: an actor, an action, a target, a moment,
|
|
66
|
+
* and an optional line under the record.
|
|
67
|
+
*
|
|
68
|
+
* **The words are the caller's and the shape is Prism's, and that is the whole of the
|
|
69
|
+
* design.** A feed that composed the sentence would ship English into every
|
|
70
|
+
* consumer's product: "Ada published a release four hours ago" is a word order, an
|
|
71
|
+
* article, an inflected verb and a relative phrase, and a Block that assembled it
|
|
72
|
+
* would have assembled the English one and given the consumer no way to translate
|
|
73
|
+
* it, inflect it or reorder it, because the string would be inside a package rather
|
|
74
|
+
* than inside their own code. So this Block takes the three parts as three props and
|
|
75
|
+
* draws them as one run of words, which is the most a design system can do without
|
|
76
|
+
* writing a sentence.
|
|
77
|
+
*
|
|
78
|
+
* **The four fields are four because a record of what happened has four parts and no
|
|
79
|
+
* others.** Who, what they did, to what, and when. Each is required except the target,
|
|
80
|
+
* and the target's absence is a real state rather than a gap: a sign-in, a logout, a
|
|
81
|
+
* nightly job that names no document. The fifth field every similar surface reaches
|
|
82
|
+
* for, a source or a category or a severity, is `tone` and `detail`, both optional
|
|
83
|
+
* and one of them a node. A closed shape of four with two slots is the answer to a
|
|
84
|
+
* feed that has grown a sixth field because the Block could not say no.
|
|
85
|
+
*
|
|
86
|
+
* **`at` is printed exactly as passed, and the Block formats no moment.** A Block
|
|
87
|
+
* that formatted one would have to pick a locale, a calendar and a granularity, and
|
|
88
|
+
* `relative-time` already holds that decision and holds it well: it formats the
|
|
89
|
+
* absolute reading with the platform and hands the sentence back rather than writing
|
|
90
|
+
* it, which is the only arrangement a shared package can offer a product shipping in
|
|
91
|
+
* more than one language. So this Block prints the caller's value, puts the ISO form
|
|
92
|
+
* on the `time` element's `dateTime` so a crawler and a screen reader get a timestamp
|
|
93
|
+
* whatever the visible reading says, and says in the prop's own note that a caller
|
|
94
|
+
* who wants a relative phrase composes the node beside the record in `detail`. The
|
|
95
|
+
* cost is named rather than hidden: a caller who passes epoch milliseconds gets epoch
|
|
96
|
+
* milliseconds, which is honest and almost never what was wanted.
|
|
97
|
+
*
|
|
98
|
+
* **A row is a control only when there is something for it to do.** An event with no
|
|
99
|
+
* handler renders as a `li`, which is a record a reader reads and not a thing they
|
|
100
|
+
* act on. The destination is a separate control carrying the caller's own words, so a
|
|
101
|
+
* row can be selectable and linked at once, which is the arrangement a feed actually
|
|
102
|
+
* wants: a reader activates the row to open the thing, and the caller marks it read on
|
|
103
|
+
* the way past. The alternative was to make every row a link, and a feed of forty
|
|
104
|
+
* links is a page where the tab order runs down the whole feed before it reaches
|
|
105
|
+
* anything after it.
|
|
106
|
+
*
|
|
107
|
+
* **A day group is a list item holding a heading and a nested list, and not a merged
|
|
108
|
+
* row.** The structure is an `ol` of `li` and each `li` is a heading plus its own
|
|
109
|
+
* `ol`, because a reader moving by list item should hear how many days there are and
|
|
110
|
+
* then how many records are in the day they are reading. The alternative was a table
|
|
111
|
+
* with a row spanning every column, which is a table and not a feed, and which would
|
|
112
|
+
* have given four unrelated fields column semantics they do not have. The day heading
|
|
113
|
+
* is at `childLevel(headingLevel)`, so a feed embedded one level deeper carries its
|
|
114
|
+
* outline with it, and the day groups themselves are not headings at the same level,
|
|
115
|
+
* which is what makes a list of days a list rather than a flat run of headings.
|
|
116
|
+
*
|
|
117
|
+
* **The order is the caller's and the Block never sorts.** A feed is the surface
|
|
118
|
+
* where the exceptions live: a pinned event, a run that arrived late, a record the
|
|
119
|
+
* caller wants beside its own retry. A Block that sorted by moment would move the
|
|
120
|
+
* pin, and the caller would have to add a flag and this Block would have to know what
|
|
121
|
+
* the flag meant. The groups follow the order the days first appear, so a pinned
|
|
122
|
+
* event from yesterday puts yesterday first, which is the only arrangement that
|
|
123
|
+
* survives a pin.
|
|
124
|
+
*
|
|
125
|
+
* **The tone is a mark with a machine word beside it, and the cost is that word.** A
|
|
126
|
+
* feed is a scanning surface, so the mark has to be there, and a mark that is colour
|
|
127
|
+
* alone is invisible to a reader who cannot separate the tones and unreadable to a
|
|
128
|
+
* screen reader whatever the tones are. So the tone is drawn by `Status` with the
|
|
129
|
+
* machine value as its label, which is what `Changelog01` does with a change's kind
|
|
130
|
+
* and the reason is the same: a tone is a judgement about urgency that only the
|
|
131
|
+
* caller can make, and a Block that wrote the sentence for it would be picking an
|
|
132
|
+
* alarm for four products at once. A caller whose product words these states
|
|
133
|
+
* differently composes its own mark into `detail` and leaves `tone` unset. That is
|
|
134
|
+
* the cost of the split, stated rather than hidden.
|
|
135
|
+
*
|
|
136
|
+
* It is a client Component, and the reason is the handler rather than the state, as
|
|
137
|
+
* in `data-table-01`: `onSelect` is a function, a function is a piece of state, and
|
|
138
|
+
* state is a client module. The cost is stated rather than implied: a feed with no
|
|
139
|
+
* `onSelect` is a static list that ships this file's client runtime for nothing, and
|
|
140
|
+
* the fix for a consumer who needs that surface to be static is a `ReactNode` slot of
|
|
141
|
+
* their own rather than a Block that attaches a handler to every row.
|
|
142
|
+
*/
|
|
143
|
+
export function ActivityFeed01({ eyebrow, title, description, events, onSelect, limit, empty, groupBy = 'none', dayLabel, headingLevel = 'h2', className, }) {
|
|
144
|
+
// A day's heading is one step below the section that introduces the feed, so a
|
|
145
|
+
// feed embedded one level deeper carries its outline with it.
|
|
146
|
+
const GroupHeading = childLevel(headingLevel);
|
|
147
|
+
for (const event of events)
|
|
148
|
+
assertEvent(event);
|
|
149
|
+
// The cap is applied before the grouping rather than after, so a day heading never
|
|
150
|
+
// appears over a group the cap cut in half.
|
|
151
|
+
const shown = limit === undefined ? events : events.slice(0, Math.max(0, limit));
|
|
152
|
+
/*
|
|
153
|
+
The test is on `dayLabel` and not on `groupBy` alone, because destructuring the
|
|
154
|
+
props loses the discriminant the union carries: a caller who wrote
|
|
155
|
+
`groupBy="day"` without the label has a type error rather than a runtime one, and
|
|
156
|
+
this is the guard for a JavaScript caller who did not get that far. The grouped
|
|
157
|
+
branch is built once and the two arms below are the two renderings of it.
|
|
158
|
+
*/
|
|
159
|
+
const grouped = groupBy === 'day' && dayLabel !== undefined;
|
|
160
|
+
const heading = title === undefined ? null : (_jsx(SectionHeading, { as: headingLevel, align: "left", eyebrow: eyebrow, title: title, description: description, className: "mb-10" }));
|
|
161
|
+
if (shown.length === 0) {
|
|
162
|
+
return (_jsxs(Section, { "data-slot": "activity-feed-01", className: className, children: [heading, _jsx("div", { "data-slot": "activity-feed-01-empty", className: "text-muted-foreground text-sm", children: empty })] }));
|
|
163
|
+
}
|
|
164
|
+
if (grouped) {
|
|
165
|
+
/*
|
|
166
|
+
Two passes over the shown events and the order of both is the caller's: the
|
|
167
|
+
days come out in the order they first appear rather than sorted, so a pinned
|
|
168
|
+
event from yesterday keeps yesterday where the caller put it. `new Map` rather
|
|
169
|
+
than `Array.find` because a feed of a thousand events over a month of days is
|
|
170
|
+
thirty one lookups rather than a thousand.
|
|
171
|
+
*/
|
|
172
|
+
const days = new Map();
|
|
173
|
+
for (const event of shown) {
|
|
174
|
+
const key = dayKey(event.at);
|
|
175
|
+
const found = days.get(key);
|
|
176
|
+
if (found === undefined)
|
|
177
|
+
days.set(key, [event]);
|
|
178
|
+
else
|
|
179
|
+
found.push(event);
|
|
180
|
+
}
|
|
181
|
+
return (_jsxs(Section, { "data-slot": "activity-feed-01", className: className, children: [heading, _jsx("ol", { "data-slot": "activity-feed-01-days", className: "flex flex-col", children: [...days].map(([key, inDay]) => (_jsxs("li", { "data-slot": "activity-feed-01-day", "data-day": key, className: "flex flex-col gap-3 py-2 first:pt-0", children: [_jsx(GroupHeading, { "data-slot": "activity-feed-01-day-label", className: "text-muted-foreground text-sm font-medium", children: dayLabel(key) }), _jsx("ol", { "data-slot": "activity-feed-01-events", className: "flex flex-col", children: inDay.map((event) => (_jsx(EventRow, { event: event, onSelect: onSelect }, event.id))) })] }, key))) })] }));
|
|
182
|
+
}
|
|
183
|
+
return (_jsxs(Section, { "data-slot": "activity-feed-01", className: className, children: [heading, _jsx("ol", { "data-slot": "activity-feed-01-events", className: "flex flex-col", children: shown.map((event) => (_jsx(EventRow, { event: event, onSelect: onSelect }, event.id))) })] }));
|
|
184
|
+
}
|
|
185
|
+
export default ActivityFeed01;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/activity-feed-01/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAK5D,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActivityFeed01, default } from './activity-feed-01.js';
|