@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,254 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type HeadingLevel } from '../../components/ui/section.js';
|
|
3
|
+
/**
|
|
4
|
+
* One article in a help category: its name, where it goes, and when it last
|
|
5
|
+
* changed.
|
|
6
|
+
*
|
|
7
|
+
* **`hrefLabel` is required whenever `href` is, and the run fails without it,
|
|
8
|
+
* for the reason `Download01` states in full.** A link whose only words are the
|
|
9
|
+
* document's own name tells a reader nothing about what activating it will do, and
|
|
10
|
+
* a help index has the same defect with the same cause: the destination is a route
|
|
11
|
+
* in the caller's own application, the caller knows what is behind it, and the
|
|
12
|
+
* reader is guessing from a title that is often deliberately vague so that it
|
|
13
|
+
* matches a search. So the words on the link are the caller's and the name of the
|
|
14
|
+
* article beside them is the caller's too, and a caller who has not thought about
|
|
15
|
+
* the difference has a list of twelve links all reading the same.
|
|
16
|
+
*
|
|
17
|
+
* `updatedAt` is drawn as passed and is not formatted here, for the reason
|
|
18
|
+
* `ResourceList01` gives for its `detail` cell: a date's honest reading is a
|
|
19
|
+
* `RelativeTime` or a caller's own formatter, and the string a caller holds may be
|
|
20
|
+
* a locale, a quarter or a release name rather than a date at all.
|
|
21
|
+
*/
|
|
22
|
+
export type Help01Article = {
|
|
23
|
+
/** The article's stable key within its category. */
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The article's own name, as its authors spell it.
|
|
27
|
+
*
|
|
28
|
+
* It is also what the search below matches against, and it is matched as a
|
|
29
|
+
* string rather than as a node for the same reason: a `ReactNode` would have to
|
|
30
|
+
* be walked for words, and a Block reading the caller's markup looking for
|
|
31
|
+
* something to search is a Block that has started to own the content.
|
|
32
|
+
*/
|
|
33
|
+
title: string;
|
|
34
|
+
/** Where the article goes. Its presence makes the row carry a link. */
|
|
35
|
+
href: string;
|
|
36
|
+
/** The words on the link, and required whenever `href` is. */
|
|
37
|
+
hrefLabel?: string;
|
|
38
|
+
/**
|
|
39
|
+
* When the article last changed, in the caller's own words.
|
|
40
|
+
*
|
|
41
|
+
* Drawn exactly as passed, and Prism formats no date. A caller who wants the
|
|
42
|
+
* reading to say how long ago it was composes `relative-time` and passes the
|
|
43
|
+
* node, or formats the string themselves.
|
|
44
|
+
*/
|
|
45
|
+
updatedAt?: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* One group of articles, and the caller's own name for the group.
|
|
49
|
+
*
|
|
50
|
+
* A category is a place a reader navigates to rather than a result they read, and
|
|
51
|
+
* that fact is what the search below is built on: a token that matches a
|
|
52
|
+
* category's own title carries every article under it. A help index whose
|
|
53
|
+
* categories are only labels would make searching for a section's name return the
|
|
54
|
+
* section's heading and nothing else, which is the least useful thing a filter can
|
|
55
|
+
* do.
|
|
56
|
+
*/
|
|
57
|
+
export type Help01Category = {
|
|
58
|
+
/** The category's stable key. The route is the usual choice and needs no coordination. */
|
|
59
|
+
id: string;
|
|
60
|
+
/** The category's own name, which is also its card title. */
|
|
61
|
+
title: string;
|
|
62
|
+
/**
|
|
63
|
+
* One line under the category's name.
|
|
64
|
+
*
|
|
65
|
+
* A node and not a string, because a help index's groups are named differently by
|
|
66
|
+
* different products and the line under a group is sometimes a sentence and
|
|
67
|
+
* sometimes a list of the three things in it. It is drawn rather than searched;
|
|
68
|
+
* see the note on `Help01Article.title` for why this Block reads strings only.
|
|
69
|
+
*/
|
|
70
|
+
description?: ReactNode;
|
|
71
|
+
/** The articles under it, in the order the reader should meet them. */
|
|
72
|
+
articles: Help01Article[];
|
|
73
|
+
};
|
|
74
|
+
/** The props a Help01 takes. Every string in this Block is one of them. */
|
|
75
|
+
export type Help01Props = {
|
|
76
|
+
/** The short line above the title, usually what the help centre is for. */
|
|
77
|
+
eyebrow?: ReactNode;
|
|
78
|
+
/** The heading. Required, because an index with no heading is a list in a page. */
|
|
79
|
+
title: ReactNode;
|
|
80
|
+
/** One supporting line under the heading, for the part the title cannot carry. */
|
|
81
|
+
description?: ReactNode;
|
|
82
|
+
/**
|
|
83
|
+
* The query, as the caller holds it.
|
|
84
|
+
*
|
|
85
|
+
* Required and controlled, for the reason `SearchField` gives in full: a search
|
|
86
|
+
* field that owns its own text cannot be emptied from outside itself, and a help
|
|
87
|
+
* index whose field cannot be cleared is a field a reader has to select and
|
|
88
|
+
* delete one character at a time. It is also what this Block is for, so the two
|
|
89
|
+
* are the same prop rather than one of them being derived.
|
|
90
|
+
*/
|
|
91
|
+
value: string;
|
|
92
|
+
/**
|
|
93
|
+
* Called with the query as the reader changes it, and with an empty string when
|
|
94
|
+
* the clear control is pressed.
|
|
95
|
+
*/
|
|
96
|
+
onValueChange: (value: string) => void;
|
|
97
|
+
/**
|
|
98
|
+
* The field's visible name and its accessible name.
|
|
99
|
+
*
|
|
100
|
+
* Required and a `string`, because a field has one name and that name is the
|
|
101
|
+
* caller's. A control with no name is announced as a search box, which is the one
|
|
102
|
+
* name every other field of its kind on the page shares.
|
|
103
|
+
*/
|
|
104
|
+
label: string;
|
|
105
|
+
/**
|
|
106
|
+
* The accessible name of the control that empties the field.
|
|
107
|
+
*
|
|
108
|
+
* Required, and it is what makes the control exist rather than a name for
|
|
109
|
+
* something already on screen: `SearchField` draws the clear control whenever
|
|
110
|
+
* this is passed and draws nothing when it is not. The words are the caller's
|
|
111
|
+
* because a screen reader reads them.
|
|
112
|
+
*/
|
|
113
|
+
clearLabel: string;
|
|
114
|
+
/**
|
|
115
|
+
* The categories, in the order a reader should meet them.
|
|
116
|
+
*
|
|
117
|
+
* The caller holds the whole index, because this Block searches nothing: see the
|
|
118
|
+
* JSDoc on the Block for why that is a law and not a limitation.
|
|
119
|
+
*/
|
|
120
|
+
categories: Help01Category[];
|
|
121
|
+
/**
|
|
122
|
+
* The caller's own sentence for a query that matched nothing.
|
|
123
|
+
*
|
|
124
|
+
* Required, and the reason is the same one that puts every other string in this
|
|
125
|
+
* package behind a prop. "No results" is English, and it is the one sentence in a
|
|
126
|
+
* help centre a reader is guaranteed to read, so a Block that wrote it would put
|
|
127
|
+
* it into every product that installs this one, in a product whose interface is
|
|
128
|
+
* in another language, inside a design system rather than inside a product's copy,
|
|
129
|
+
* which is where a translation tool is least likely to look. It is a node because
|
|
130
|
+
* the honest no-results line is sometimes a sentence and sometimes a link to the
|
|
131
|
+
* caller's own support address, and a string prop would force the caller to
|
|
132
|
+
* flatten it.
|
|
133
|
+
*/
|
|
134
|
+
empty: ReactNode;
|
|
135
|
+
/**
|
|
136
|
+
* The caller's own line about what the query found.
|
|
137
|
+
*
|
|
138
|
+
* A function and not a node, and the reason is the same one that makes
|
|
139
|
+
* `Waitlist01`'s position a function rather than a template: the count a reader
|
|
140
|
+
* reads is a sentence whose word order and noun inflection belong to their
|
|
141
|
+
* language, and a Block that composed it would compose the English one. A function
|
|
142
|
+
* is also what lets a caller say nothing before the reader has typed anything, by
|
|
143
|
+
* returning null for a count they do not want to announce, which is the case
|
|
144
|
+
* every results line has on its first paint.
|
|
145
|
+
*/
|
|
146
|
+
summary?: (matches: number) => ReactNode;
|
|
147
|
+
/** Heading level for the section heading. See `HeadingLevel`. */
|
|
148
|
+
headingLevel?: HeadingLevel;
|
|
149
|
+
/** Layout only. Changing a Prism-owned visual property from here is prohibited. */
|
|
150
|
+
className?: string;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* A help index: a field at the top, a set of categories, and the articles under
|
|
154
|
+
* them, filtered as the reader types.
|
|
155
|
+
*
|
|
156
|
+
* **This Block filters what it was given and it never searches anything. It holds
|
|
157
|
+
* no index, it fetches no index, and there is no prop that points at one.** That is
|
|
158
|
+
* a law and not a limitation, and the gate that holds it is
|
|
159
|
+
* `packages/ui/scripts/check-block-imports.mjs`, which fails a Block that imports a
|
|
160
|
+
* router or a data client or calls a network function. A Block that fetched a help
|
|
161
|
+
* index would be a Block every consumer whose help lives elsewhere has to rewrite:
|
|
162
|
+
* four consumers with four stores would each either patch the fetch or fork the
|
|
163
|
+
* Block, and the corpus publishes it as a product-agnostic section, so an agent
|
|
164
|
+
* composing a page from it composes a fetch the consumer never asked for. The Block
|
|
165
|
+
* that exists instead is a frame over an array, and the frame is the part a
|
|
166
|
+
* consumer can install.
|
|
167
|
+
*
|
|
168
|
+
* **What a consumer composes it with is a static JSON index filtered in the
|
|
169
|
+
* browser, and that is the same shape `SearchDialog` already takes.** A help
|
|
170
|
+
* centre is a set of documents a build step already knows about, so the index is
|
|
171
|
+
* usually produced by that build step and served as one file, and the browser
|
|
172
|
+
* filters it. A consumer that already serves an index for `SearchDialog` reuses the
|
|
173
|
+
* same bytes here, and a consumer whose help lives in a CMS renders it into props
|
|
174
|
+
* and gets the same behaviour with no index at all. The difference between the two
|
|
175
|
+
* Components is the one the wave table records: `SearchDialog` is a dialog over an
|
|
176
|
+
* index and fetches it itself, because a dialog is mounted by a deliberate act and
|
|
177
|
+
* the index is the same bytes on every page; this Block is a section inside a page,
|
|
178
|
+
* so it fetches nothing and takes the index as props. A section that fetched on
|
|
179
|
+
* mount would fetch on every page that carried it.
|
|
180
|
+
*
|
|
181
|
+
* **A token that matches a category's own title carries every article under it, and
|
|
182
|
+
* that is a decision about what a category is.** A category is a place a reader
|
|
183
|
+
* navigates to rather than a result they read, so a reader who types a section's
|
|
184
|
+
* name wants the section. Without the rule, searching for a category's name returns
|
|
185
|
+
* the category's card with nothing in it, which is the least useful thing a filter
|
|
186
|
+
* can do and looks like a broken one. The alternative, dropping a category that
|
|
187
|
+
* matched on its own title, tells the reader there is nothing when there is a whole
|
|
188
|
+
* section, and the cost of the rule is the opposite one, which is that a token
|
|
189
|
+
* appearing in a category's name is a broad match: a category called Billing matches
|
|
190
|
+
* more than a reader typing billing meant. That is a cost the caller controls by
|
|
191
|
+
* naming their categories, and it is named here rather than left to be discovered.
|
|
192
|
+
*
|
|
193
|
+
* **Only names are searched, and the two things a help index holds that are not
|
|
194
|
+
* names are deliberately excluded.** `description` is a `ReactNode`, and matching it
|
|
195
|
+
* would mean walking the caller's markup for words, which is a Block reading
|
|
196
|
+
* somebody else's content; `updatedAt` is a string in the caller's own format, which
|
|
197
|
+
* may be a date, a locale, a quarter or a release name, and the tokens a reader
|
|
198
|
+
* would type to match it are not derivable from it. Both are drawn. Neither is
|
|
199
|
+
* searched, and a consumer who wants either of them searched passes strings it has
|
|
200
|
+
* chosen to put in the titles.
|
|
201
|
+
*
|
|
202
|
+
* **`empty` is required and `summary` is a function, and both are there for the same
|
|
203
|
+
* reason: this is the one Block in the package where a sentence is guaranteed to be
|
|
204
|
+
* read.** A reader who has typed something and got nothing is reading exactly one
|
|
205
|
+
* line, and a Block that wrote it would write it in this package's language, in
|
|
206
|
+
* every product that installs it, inside a design system rather than inside a
|
|
207
|
+
* product's copy. So the no-results sentence is the caller's node and the count line
|
|
208
|
+
* is the caller's function, and the count is handed over rather than composed for
|
|
209
|
+
* the same reason `Waitlist01` hands a position back as a function: word order and
|
|
210
|
+
* noun inflection are the reader's language, not a number format.
|
|
211
|
+
*
|
|
212
|
+
* **An `href` needs an `hrefLabel` and the run fails without one, because a link
|
|
213
|
+
* whose only words are a document's own name tells a reader nothing about what
|
|
214
|
+
* activating it will do.** The article's name and the words on its link are two
|
|
215
|
+
* props rather than one for that reason, which is the same split `Download01` makes,
|
|
216
|
+
* and the check is here for the JavaScript caller and for a value that came out of a
|
|
217
|
+
* build step with the type's guarantee already gone. Each message names the article
|
|
218
|
+
* rather than the index, because a caller with two hundred articles needs to know
|
|
219
|
+
* which one.
|
|
220
|
+
*
|
|
221
|
+
* **The category title is a heading one step below the section, and the article
|
|
222
|
+
* names are not headings at all.** A help index has three levels of outline in it if
|
|
223
|
+
* the articles were given one, and three is one too many: the article names are the
|
|
224
|
+
* text of the links, so a reader navigating by heading would meet a list of link
|
|
225
|
+
* labels that says nothing the card title has not already said. So the categories
|
|
226
|
+
* are headings at `childLevel(headingLevel)` and the articles are list items, and
|
|
227
|
+
* moving this Block from an `h2` section to an `h3` one carries the categories with
|
|
228
|
+
* it.
|
|
229
|
+
*
|
|
230
|
+
* **The field composes `SearchField`, so the clear control, the polite result
|
|
231
|
+
* region and the one tab stop are that Component's rather than a second
|
|
232
|
+
* implementation here.** The result line is where `summary` goes: `SearchField`
|
|
233
|
+
* draws it as a polite live region and announces it when the count changes, which is
|
|
234
|
+
* the only thing on the page reporting the consequence of typing and the only place
|
|
235
|
+
* a screen reader user learns that a search ran. A caller who starts passing a
|
|
236
|
+
* summary after the first render brings the region into the document together with
|
|
237
|
+
* its content, which `SearchField` says is the one case a live region is least
|
|
238
|
+
* reliable about, so pass an empty summary on the first paint.
|
|
239
|
+
*
|
|
240
|
+
* **This Block does not own the search landmark, for the reason `SearchField`
|
|
241
|
+
* gives.** A `<search>` element names a region of the page rather than a control,
|
|
242
|
+
* and a page has two real search regions only when its two fields answer two
|
|
243
|
+
* different questions, so put the landmark on the container if the page really does
|
|
244
|
+
* have one search.
|
|
245
|
+
*
|
|
246
|
+
* It is a client Component, and the reason is the filtering rather than the field:
|
|
247
|
+
* the query is a prop the caller holds, the set that results is derived from it on
|
|
248
|
+
* every keystroke, and a server component cannot re-render its own children. The
|
|
249
|
+
* filtering itself is a substring test per title and holds no index of its own, so
|
|
250
|
+
* the client cost is the derivation and not a running loop.
|
|
251
|
+
*/
|
|
252
|
+
export declare function Help01({ eyebrow, title, description, value, onValueChange, label, clearLabel, categories, empty, summary, headingLevel, className, }: Help01Props): import("react").JSX.Element;
|
|
253
|
+
export default Help01;
|
|
254
|
+
//# sourceMappingURL=help.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../../src/blocks/help-01/help.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,6BAA6B,CAAA;AAGpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAA;IACV;;;;;;;OAOG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAA;IACZ,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,0FAA0F;IAC1F,EAAE,EAAE,MAAM,CAAA;IACV,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,uEAAuE;IACvE,QAAQ,EAAE,aAAa,EAAE,CAAA;CAC1B,CAAA;AAED,2EAA2E;AAC3E,MAAM,MAAM,WAAW,GAAG;IACxB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,mFAAmF;IACnF,KAAK,EAAE,SAAS,CAAA;IAChB,kFAAkF;IAClF,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;;;;;;OAQG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;;OAOG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;;;;OAKG;IACH,UAAU,EAAE,cAAc,EAAE,CAAA;IAC5B;;;;;;;;;;;;OAYG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,SAAS,CAAA;IACxC,iEAAiE;IACjE,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAyCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,KAAK,EACL,WAAW,EACX,KAAK,EACL,aAAa,EACb,KAAK,EACL,UAAU,EACV,UAAU,EACV,KAAK,EACL,OAAO,EACP,YAAmB,EACnB,SAAS,GACV,EAAE,WAAW,+BAwKb;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../../components/ui/card.js';
|
|
5
|
+
import { CtaLink } from '../../components/ui/cta-link.js';
|
|
6
|
+
import { SearchField } from '../../components/ui/search-field.js';
|
|
7
|
+
import { Section, SectionHeading, childLevel, } from '../../components/ui/section.js';
|
|
8
|
+
import { cn } from '../../lib/utils.js';
|
|
9
|
+
/**
|
|
10
|
+
* The query in the form the match reads it: case folded, split on whitespace, with
|
|
11
|
+
* the empty tokens dropped.
|
|
12
|
+
*
|
|
13
|
+
* The tokens are AND rather than OR, and that is the same rule `SearchDialog`
|
|
14
|
+
* states for the same reason: a reader who types two words is narrowing, and with
|
|
15
|
+
* OR a help index returns nearly everything, which is not a ranking but a list the
|
|
16
|
+
* reader has to work through themselves.
|
|
17
|
+
*/
|
|
18
|
+
function tokensOf(query) {
|
|
19
|
+
return query.toLowerCase().split(/\s+/).filter((token) => token.length > 0);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Whether every token appears somewhere in one case-folded string.
|
|
23
|
+
*
|
|
24
|
+
* A substring test with no stemming and no typo tolerance, which is the same
|
|
25
|
+
* downgrade `SearchDialog` takes and for the same reason: a fuzzy engine is a large
|
|
26
|
+
* dependency whose ranking a consumer cannot restyle, audit against this package's
|
|
27
|
+
* gates or replace without forking the Block. A caller whose help content needs
|
|
28
|
+
* more composes their own control.
|
|
29
|
+
*/
|
|
30
|
+
function containsAll(haystack, tokens) {
|
|
31
|
+
return tokens.every((token) => haystack.includes(token));
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* How many articles the filter left on the page, which is what the caller's summary
|
|
35
|
+
* is built from.
|
|
36
|
+
*
|
|
37
|
+
* A separate step rather than a value in the same pass so the number cannot drift
|
|
38
|
+
* from the rows: it is counted from the same array that was rendered, and a caller
|
|
39
|
+
* whose summary disagrees with the page has a bug in their own function rather than
|
|
40
|
+
* a Block that passed one number and drew another.
|
|
41
|
+
*/
|
|
42
|
+
function countArticles(categories) {
|
|
43
|
+
return categories.reduce((total, category) => total + category.articles.length, 0);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A help index: a field at the top, a set of categories, and the articles under
|
|
47
|
+
* them, filtered as the reader types.
|
|
48
|
+
*
|
|
49
|
+
* **This Block filters what it was given and it never searches anything. It holds
|
|
50
|
+
* no index, it fetches no index, and there is no prop that points at one.** That is
|
|
51
|
+
* a law and not a limitation, and the gate that holds it is
|
|
52
|
+
* `packages/ui/scripts/check-block-imports.mjs`, which fails a Block that imports a
|
|
53
|
+
* router or a data client or calls a network function. A Block that fetched a help
|
|
54
|
+
* index would be a Block every consumer whose help lives elsewhere has to rewrite:
|
|
55
|
+
* four consumers with four stores would each either patch the fetch or fork the
|
|
56
|
+
* Block, and the corpus publishes it as a product-agnostic section, so an agent
|
|
57
|
+
* composing a page from it composes a fetch the consumer never asked for. The Block
|
|
58
|
+
* that exists instead is a frame over an array, and the frame is the part a
|
|
59
|
+
* consumer can install.
|
|
60
|
+
*
|
|
61
|
+
* **What a consumer composes it with is a static JSON index filtered in the
|
|
62
|
+
* browser, and that is the same shape `SearchDialog` already takes.** A help
|
|
63
|
+
* centre is a set of documents a build step already knows about, so the index is
|
|
64
|
+
* usually produced by that build step and served as one file, and the browser
|
|
65
|
+
* filters it. A consumer that already serves an index for `SearchDialog` reuses the
|
|
66
|
+
* same bytes here, and a consumer whose help lives in a CMS renders it into props
|
|
67
|
+
* and gets the same behaviour with no index at all. The difference between the two
|
|
68
|
+
* Components is the one the wave table records: `SearchDialog` is a dialog over an
|
|
69
|
+
* index and fetches it itself, because a dialog is mounted by a deliberate act and
|
|
70
|
+
* the index is the same bytes on every page; this Block is a section inside a page,
|
|
71
|
+
* so it fetches nothing and takes the index as props. A section that fetched on
|
|
72
|
+
* mount would fetch on every page that carried it.
|
|
73
|
+
*
|
|
74
|
+
* **A token that matches a category's own title carries every article under it, and
|
|
75
|
+
* that is a decision about what a category is.** A category is a place a reader
|
|
76
|
+
* navigates to rather than a result they read, so a reader who types a section's
|
|
77
|
+
* name wants the section. Without the rule, searching for a category's name returns
|
|
78
|
+
* the category's card with nothing in it, which is the least useful thing a filter
|
|
79
|
+
* can do and looks like a broken one. The alternative, dropping a category that
|
|
80
|
+
* matched on its own title, tells the reader there is nothing when there is a whole
|
|
81
|
+
* section, and the cost of the rule is the opposite one, which is that a token
|
|
82
|
+
* appearing in a category's name is a broad match: a category called Billing matches
|
|
83
|
+
* more than a reader typing billing meant. That is a cost the caller controls by
|
|
84
|
+
* naming their categories, and it is named here rather than left to be discovered.
|
|
85
|
+
*
|
|
86
|
+
* **Only names are searched, and the two things a help index holds that are not
|
|
87
|
+
* names are deliberately excluded.** `description` is a `ReactNode`, and matching it
|
|
88
|
+
* would mean walking the caller's markup for words, which is a Block reading
|
|
89
|
+
* somebody else's content; `updatedAt` is a string in the caller's own format, which
|
|
90
|
+
* may be a date, a locale, a quarter or a release name, and the tokens a reader
|
|
91
|
+
* would type to match it are not derivable from it. Both are drawn. Neither is
|
|
92
|
+
* searched, and a consumer who wants either of them searched passes strings it has
|
|
93
|
+
* chosen to put in the titles.
|
|
94
|
+
*
|
|
95
|
+
* **`empty` is required and `summary` is a function, and both are there for the same
|
|
96
|
+
* reason: this is the one Block in the package where a sentence is guaranteed to be
|
|
97
|
+
* read.** A reader who has typed something and got nothing is reading exactly one
|
|
98
|
+
* line, and a Block that wrote it would write it in this package's language, in
|
|
99
|
+
* every product that installs it, inside a design system rather than inside a
|
|
100
|
+
* product's copy. So the no-results sentence is the caller's node and the count line
|
|
101
|
+
* is the caller's function, and the count is handed over rather than composed for
|
|
102
|
+
* the same reason `Waitlist01` hands a position back as a function: word order and
|
|
103
|
+
* noun inflection are the reader's language, not a number format.
|
|
104
|
+
*
|
|
105
|
+
* **An `href` needs an `hrefLabel` and the run fails without one, because a link
|
|
106
|
+
* whose only words are a document's own name tells a reader nothing about what
|
|
107
|
+
* activating it will do.** The article's name and the words on its link are two
|
|
108
|
+
* props rather than one for that reason, which is the same split `Download01` makes,
|
|
109
|
+
* and the check is here for the JavaScript caller and for a value that came out of a
|
|
110
|
+
* build step with the type's guarantee already gone. Each message names the article
|
|
111
|
+
* rather than the index, because a caller with two hundred articles needs to know
|
|
112
|
+
* which one.
|
|
113
|
+
*
|
|
114
|
+
* **The category title is a heading one step below the section, and the article
|
|
115
|
+
* names are not headings at all.** A help index has three levels of outline in it if
|
|
116
|
+
* the articles were given one, and three is one too many: the article names are the
|
|
117
|
+
* text of the links, so a reader navigating by heading would meet a list of link
|
|
118
|
+
* labels that says nothing the card title has not already said. So the categories
|
|
119
|
+
* are headings at `childLevel(headingLevel)` and the articles are list items, and
|
|
120
|
+
* moving this Block from an `h2` section to an `h3` one carries the categories with
|
|
121
|
+
* it.
|
|
122
|
+
*
|
|
123
|
+
* **The field composes `SearchField`, so the clear control, the polite result
|
|
124
|
+
* region and the one tab stop are that Component's rather than a second
|
|
125
|
+
* implementation here.** The result line is where `summary` goes: `SearchField`
|
|
126
|
+
* draws it as a polite live region and announces it when the count changes, which is
|
|
127
|
+
* the only thing on the page reporting the consequence of typing and the only place
|
|
128
|
+
* a screen reader user learns that a search ran. A caller who starts passing a
|
|
129
|
+
* summary after the first render brings the region into the document together with
|
|
130
|
+
* its content, which `SearchField` says is the one case a live region is least
|
|
131
|
+
* reliable about, so pass an empty summary on the first paint.
|
|
132
|
+
*
|
|
133
|
+
* **This Block does not own the search landmark, for the reason `SearchField`
|
|
134
|
+
* gives.** A `<search>` element names a region of the page rather than a control,
|
|
135
|
+
* and a page has two real search regions only when its two fields answer two
|
|
136
|
+
* different questions, so put the landmark on the container if the page really does
|
|
137
|
+
* have one search.
|
|
138
|
+
*
|
|
139
|
+
* It is a client Component, and the reason is the filtering rather than the field:
|
|
140
|
+
* the query is a prop the caller holds, the set that results is derived from it on
|
|
141
|
+
* every keystroke, and a server component cannot re-render its own children. The
|
|
142
|
+
* filtering itself is a substring test per title and holds no index of its own, so
|
|
143
|
+
* the client cost is the derivation and not a running loop.
|
|
144
|
+
*/
|
|
145
|
+
export function Help01({ eyebrow, title, description, value, onValueChange, label, clearLabel, categories, empty, summary, headingLevel = 'h2', className, }) {
|
|
146
|
+
// A category's title is a heading one step below the section that introduces the
|
|
147
|
+
// set, so a reader who has learned the outline on one Block finds it the same on
|
|
148
|
+
// this one. A hardcoded `h3` would be right exactly once.
|
|
149
|
+
const Title = childLevel(headingLevel);
|
|
150
|
+
const tokens = useMemo(() => tokensOf(value), [value]);
|
|
151
|
+
const visible = useMemo(() => {
|
|
152
|
+
// An empty query draws the whole index, which is the resting state of a help
|
|
153
|
+
// centre and not a special case: a reader who has typed nothing is browsing.
|
|
154
|
+
if (tokens.length === 0)
|
|
155
|
+
return categories;
|
|
156
|
+
const kept = [];
|
|
157
|
+
for (const category of categories) {
|
|
158
|
+
if (containsAll(category.title.toLowerCase(), tokens)) {
|
|
159
|
+
kept.push(category);
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
const articles = category.articles.filter((article) => containsAll(article.title.toLowerCase(), tokens));
|
|
163
|
+
if (articles.length > 0)
|
|
164
|
+
kept.push({ ...category, articles });
|
|
165
|
+
}
|
|
166
|
+
return kept;
|
|
167
|
+
}, [categories, tokens]);
|
|
168
|
+
for (const category of visible) {
|
|
169
|
+
for (const article of category.articles) {
|
|
170
|
+
if (article.hrefLabel === undefined || article.hrefLabel.trim() === '') {
|
|
171
|
+
throw new Error(`Help01: the article "${article.title}" in the category "${category.title}" declares an href with no ` +
|
|
172
|
+
'hrefLabel, so the row would carry a link whose only words are the article own name, which tells a ' +
|
|
173
|
+
'reader nothing about what activating it does. Pass the words that say what it does, or omit the href.');
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
const shown = countArticles(visible);
|
|
178
|
+
return (_jsx(Section, { "data-slot": "help-01", className: cn(className), children: _jsxs("div", { "data-slot": "help-01-body", className: "flex flex-col gap-10", children: [_jsx(SectionHeading, { eyebrow: eyebrow, title: title, description: description, align: "left", as: headingLevel }), _jsx("div", { "data-slot": "help-01-search", className: "w-full max-w-measure-narrow", children: _jsx(SearchField, { value: value, onValueChange: onValueChange, label: label, clearLabel: clearLabel, ...(summary === undefined ? null : { resultSummary: summary(shown) }) }) }), visible.length === 0 ? (
|
|
179
|
+
/*
|
|
180
|
+
* The caller's own sentence, drawn where the categories would have been
|
|
181
|
+
* rather than above them, so the reader is not told there is nothing at the
|
|
182
|
+
* foot of a page that shows an index. A `text-pretty` wrapper is here
|
|
183
|
+
* because the honest no-results line is sometimes a paragraph and
|
|
184
|
+
* `text-balance` would leave a one-word last line in it.
|
|
185
|
+
*/
|
|
186
|
+
_jsx("p", { "data-slot": "help-01-empty", className: "text-muted-foreground max-w-measure-narrow text-pretty", children: empty })) : (_jsx("div", { "data-slot": "help-01-categories", className: "grid items-start gap-6 md:grid-cols-2 lg:grid-cols-3", children: visible.map((category) => (_jsxs(Card, { "data-slot": "help-01-category", "data-category": category.id, className: "h-full gap-4", children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: _jsx(Title, { children: category.title }) }), category.description === undefined ? null : (_jsx(CardDescription, { children: category.description }))] }), _jsx(CardContent, { children: _jsx("ul", { "data-slot": "help-01-articles", className: "flex flex-col", children: category.articles.map((article, index) => (_jsxs("li", { "data-slot": "help-01-article", className: cn('flex min-w-0 flex-col gap-1.5', index > 0 ? 'border-border border-t pt-3' : null), children: [_jsx("span", { "data-slot": "help-01-article-title", className: "text-foreground text-sm font-medium", children: article.title }), _jsxs("div", { className: "flex min-w-0 flex-wrap items-baseline justify-between gap-x-4 gap-y-1", children: [_jsx(CtaLink, { "data-slot": "help-01-article-link", href: article.href, variant: "ghost", size: "sm", className: "self-start", children: article.hrefLabel }), article.updatedAt === undefined ? null : (_jsx("span", { "data-slot": "help-01-article-updated", className: "text-muted-foreground text-xs", children: article.updatedAt }))] })] }, article.id))) }) })] }, category.id))) }))] }) }));
|
|
187
|
+
}
|
|
188
|
+
export default Help01;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/help-01/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAIxC,YAAY,EACV,aAAa,EACb,cAAc,EACd,WAAW,GACZ,MAAM,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Help01, default } from './help.js';
|
|
@@ -1,44 +1,111 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
import { type HeadingLevel } from '../../components/ui/section.js';
|
|
3
3
|
/**
|
|
4
|
-
* One action in a hero's action row.
|
|
4
|
+
* One action in a hero's action row that names a destination.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* rather than one shape with an optional `href` because an optional `href` makes
|
|
11
|
-
* both mistakes silent:
|
|
6
|
+
* One of the two arms of `HeroAction`, and named rather than left as an inline
|
|
7
|
+
* member of the union so a consumer assembling a row from its own data can say
|
|
8
|
+
* which arm it is building. `FeatureGrid01` names its two arms the same way and
|
|
9
|
+
* for the same reason.
|
|
12
10
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* whenever `maybeUrl` is `undefined`, which is a runtime branch the type said
|
|
18
|
-
* nothing about.
|
|
19
|
-
*
|
|
20
|
-
* So the link arm *requires* `href` and the button arm *forbids* it, as
|
|
21
|
-
* `href?: never`. The second of those is the one worth having: a value that is
|
|
22
|
-
* sometimes a string and sometimes `undefined` is now a type error rather than a
|
|
23
|
-
* button, which is the whole of "a caller should not be able to get it wrong
|
|
24
|
-
* silently".
|
|
11
|
+
* `href` is required and that is the whole of the arm. A control drawn as a call
|
|
12
|
+
* to action and with nowhere to go is the dead end `CtaLink`'s own JSDoc names,
|
|
13
|
+
* and this Block cannot repair it: a Block ships no behaviour, so there is no
|
|
14
|
+
* handler to attach and no destination to invent.
|
|
25
15
|
*/
|
|
26
|
-
export type
|
|
16
|
+
export type HeroLinkAction = {
|
|
17
|
+
/** The words on the control. Every string a hero renders is the caller's. */
|
|
27
18
|
label: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Where the action goes. Required rather than optional, so that "a link whose
|
|
21
|
+
* address is sometimes undefined" is a compile error rather than a control that
|
|
22
|
+
* navigates on the renders where the address happens to be there.
|
|
23
|
+
*/
|
|
31
24
|
href: string;
|
|
32
25
|
/** Opens the destination in a new tab, with the matching `rel`. */
|
|
33
26
|
newTab?: boolean;
|
|
34
|
-
} | {
|
|
35
27
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
28
|
+
* Which weight this action draws at, when the caller does not say.
|
|
29
|
+
*
|
|
30
|
+
* Defaults to `default` for the first action in the row and `outline` for the
|
|
31
|
+
* rest, which is a decision about the row's shape rather than about the
|
|
32
|
+
* element. A slot carries its own weight, so it does not take one from here.
|
|
33
|
+
*/
|
|
34
|
+
variant?: 'default' | 'outline' | 'secondary' | 'ghost';
|
|
35
|
+
/**
|
|
36
|
+
* Forbidden, so that an action cannot be both a destination and a caller's own
|
|
37
|
+
* control. The two are rendered by different code on different elements and a
|
|
38
|
+
* value carrying both would have to pick one silently.
|
|
39
|
+
*/
|
|
40
|
+
slot?: never;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* One action in a hero's action row that is the caller's own control.
|
|
44
|
+
*
|
|
45
|
+
* **This is the arm that replaced a rendered button, and the reason it is a slot
|
|
46
|
+
* rather than an `onClick` is that a Block cannot receive one.** This is a server
|
|
47
|
+
* Component, so a handler is not a prop it can be given, and the earlier arm it
|
|
48
|
+
* replaced rendered a bare `<button>`: focusable, announced as a button, and
|
|
49
|
+
* activating to nothing, on the most important control on a marketing page. The
|
|
50
|
+
* defect was in the **type**, not in the render. A `label` with no destination was
|
|
51
|
+
* a legal value, so the honest form of the escape hatch had to be a node the
|
|
52
|
+
* caller renders itself, which the Block can place but cannot make inert.
|
|
53
|
+
*
|
|
54
|
+
* What belongs here is anything Prism cannot make work: a router's own `Link`, a
|
|
55
|
+
* submit button in the caller's form, a menu trigger, a control that opens a
|
|
56
|
+
* dialog. What does not belong here is a plain anchor; that is the other arm, and
|
|
57
|
+
* it is one property away rather than one component away.
|
|
58
|
+
*/
|
|
59
|
+
export type HeroSlotAction = {
|
|
60
|
+
/**
|
|
61
|
+
* The caller's own control, placed in the row where this action sits.
|
|
62
|
+
*
|
|
63
|
+
* The whole control, including its own label, its own weight and any icon. The
|
|
64
|
+
* Block draws no frame around it and adds no class to it, because a class it
|
|
65
|
+
* adds is a style the caller cannot see and cannot remove, and this package has
|
|
66
|
+
* no override path.
|
|
38
67
|
*/
|
|
68
|
+
slot: ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Forbidden on this arm, and for a reason rather than by tidiness: the Block
|
|
71
|
+
* renders `slot` and nothing else, so a `label` beside it would be a word no
|
|
72
|
+
* reader ever sees and a caller would reasonably believe had been rendered.
|
|
73
|
+
*/
|
|
74
|
+
label?: never;
|
|
75
|
+
/** Forbidden: an anchor belongs on the other arm, where Prism renders it. */
|
|
39
76
|
href?: never;
|
|
77
|
+
/** Forbidden with `href`, for the same reason. */
|
|
40
78
|
newTab?: never;
|
|
41
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Forbidden, because the Block cannot style a node it does not render. A weight
|
|
81
|
+
* accepted here and dropped would be the one prop in this Block that a reader
|
|
82
|
+
* of the type could believe was in effect when it is not.
|
|
83
|
+
*/
|
|
84
|
+
variant?: never;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* One action in a hero's action row, as a union of the two things an action in
|
|
88
|
+
* this position can honestly be.
|
|
89
|
+
*
|
|
90
|
+
* **A caller should not be able to reach a dead control by accident, and the
|
|
91
|
+
* union is what stops it.** The arms are two elements with two jobs, and a single
|
|
92
|
+
* shape with an optional `href` made both of these mistakes silent. Each was a
|
|
93
|
+
* legal value that rendered a control which activated to nothing, on the one a
|
|
94
|
+
* reader looks first:
|
|
95
|
+
*
|
|
96
|
+
* - `{ label: 'Start free' }`, which was the likely mistake because a hero's first
|
|
97
|
+
* action is almost always a link, and it looked correct on the page.
|
|
98
|
+
* - `{ label: 'Start free', href: maybeUrl }`, which navigated on the renders where
|
|
99
|
+
* the address happened to be there and rendered a button on the others, a runtime
|
|
100
|
+
* branch the type said nothing about.
|
|
101
|
+
*
|
|
102
|
+
* The first arm therefore **requires** `href`, and the second carries the caller's
|
|
103
|
+
* own control rather than a `Button` this Block cannot wire to anything. There is no
|
|
104
|
+
* third arm and no optional key, so both of those values are compile errors now.
|
|
105
|
+
* `hero-action.types.ts` holds that as an assertion, because a render cannot prove
|
|
106
|
+
* a value does not compile.
|
|
107
|
+
*/
|
|
108
|
+
export type HeroAction = HeroLinkAction | HeroSlotAction;
|
|
42
109
|
export type Hero01Props = {
|
|
43
110
|
/**
|
|
44
111
|
* Optional label above the headline. Intentionally has no default: an earlier
|
|
@@ -61,6 +128,7 @@ export type Hero01Props = {
|
|
|
61
128
|
title: ReactNode;
|
|
62
129
|
/** The supporting line. A node for the same reason the title is one. */
|
|
63
130
|
description?: ReactNode;
|
|
131
|
+
/** Up to two actions. See `HeroAction` and its two arms. */
|
|
64
132
|
actions?: HeroAction[];
|
|
65
133
|
/**
|
|
66
134
|
* Whether the copy is centered in the band or set flush to the left edge of
|
|
@@ -141,12 +209,15 @@ export type Hero01Props = {
|
|
|
141
209
|
* figure is on the right at desktop and below the copy when the columns stack,
|
|
142
210
|
* which is the order a reader on a phone wants: what this is, then what it does.
|
|
143
211
|
*
|
|
144
|
-
* **Actions are real links
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
212
|
+
* **Actions are real links, and a control that is not a link is the caller's.**
|
|
213
|
+
* An action naming an `href` renders as an anchor with the matching `rel`,
|
|
214
|
+
* because a control that looks like a link and is not one is a dead end. An
|
|
215
|
+
* action that cannot be a link takes a `slot`, and this Block renders the node it
|
|
216
|
+
* is given rather than a `Button` it cannot wire to anything. The earlier shape
|
|
217
|
+
* had a third possibility, a label with no destination, and it rendered a bare
|
|
218
|
+
* `<button>` on the primary call to action of a marketing hero: focusable,
|
|
219
|
+
* announced as a button, and activating to nothing. That was the type's defect
|
|
220
|
+
* rather than the render's, and the arms above are what close it.
|
|
150
221
|
*
|
|
151
222
|
* It composes `Section` and `SectionHeading`, so it inherits the container and
|
|
152
223
|
* the vertical rhythm rather than re-deriving either, and it adds no container
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../../src/blocks/hero-01/hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../../src/blocks/hero-01/hero.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKhD,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAGxF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,mEAAmE;IACnE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAA;IACvD;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;;;OAOG;IACH,IAAI,EAAE,SAAS,CAAA;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,6EAA6E;IAC7E,IAAI,CAAC,EAAE,KAAK,CAAA;IACZ,kDAAkD;IAClD,MAAM,CAAC,EAAE,KAAK,CAAA;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAA;CAChB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,cAAc,CAAA;AAExD,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;;;;;OAUG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB,wEAAwE;IACxE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IACtB;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IACzB;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,KAAK,EACL,WAAW,EACX,OAAY,EACZ,KAAgB,EAChB,UAAU,EACV,KAAK,EACL,YAAmB,EACnB,SAAS,GACV,EAAE,WAAW,+BA+Fb;AAED,eAAe,MAAM,CAAA"}
|