@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,288 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type HeadingLevel } from '../../components/ui/section.js';
|
|
3
|
+
/**
|
|
4
|
+
* The thing the reader types to say which account they mean, declared by the caller.
|
|
5
|
+
*
|
|
6
|
+
* The same shape `Login01` takes and the same argument: a product that identifies a
|
|
7
|
+
* person by an address and a product that identifies an operator by a handle or a
|
|
8
|
+
* staff number both need the same labelled text control, and the words above it are
|
|
9
|
+
* the product's own claim about what identifies a person there. `autoComplete` is
|
|
10
|
+
* deliberately not defaulted here either, because the hint a password manager wants
|
|
11
|
+
* is a fact about the identifier rather than about this screen, and the type a
|
|
12
|
+
* platform can do something different with is `email` on most of these products and
|
|
13
|
+
* `text` on the rest.
|
|
14
|
+
*/
|
|
15
|
+
export type ForgotPassword01Identifier = {
|
|
16
|
+
/** The field's visible name, and the accessible name its control announces. */
|
|
17
|
+
label: string;
|
|
18
|
+
/**
|
|
19
|
+
* Which of the two the platform's own behaviour differs on.
|
|
20
|
+
*
|
|
21
|
+
* `email` turns up a different keypad on a phone and lets a browser offer the
|
|
22
|
+
* address it already knows; `text` is right for a handle and for a workspace name.
|
|
23
|
+
*/
|
|
24
|
+
type?: 'email' | 'text';
|
|
25
|
+
/** The platform's autofill hint, when the identifier is not an address. */
|
|
26
|
+
autoComplete?: string;
|
|
27
|
+
/**
|
|
28
|
+
* A line under the control, announced with it rather than printed under the row.
|
|
29
|
+
*
|
|
30
|
+
* A node, because the honest line in this position is often a sentence naming the
|
|
31
|
+
* accounts this product can recover, and a caller who has to flatten theirs to a
|
|
32
|
+
* string loses it.
|
|
33
|
+
*/
|
|
34
|
+
description?: ReactNode;
|
|
35
|
+
/** The identifier as the caller holds it. Refused without `onValueChange`. */
|
|
36
|
+
value?: string;
|
|
37
|
+
/** Called with the identifier as the reader changes it. */
|
|
38
|
+
onValueChange?: (value: string) => void;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* The three things the caller's own recovery request can be doing, named after what
|
|
42
|
+
* they select rather than after the field they fill.
|
|
43
|
+
*
|
|
44
|
+
* `idle` is the form at rest and `error` is the one refusal this Block is willing to
|
|
45
|
+
* hear about, which is a refusal of the request itself: a transport that could not
|
|
46
|
+
* be reached, a rate limit the caller owns, a captcha that would not pass. It is not
|
|
47
|
+
* a statement about the account, and that is the decision the whole Block is shaped
|
|
48
|
+
* by. `sent` is the machine value for the announcement that the request was taken,
|
|
49
|
+
* and it deliberately carries no claim that a message is on its way to an address
|
|
50
|
+
* that exists.
|
|
51
|
+
*/
|
|
52
|
+
export type ForgotPassword01Outcome = 'idle' | 'sent' | 'error';
|
|
53
|
+
/**
|
|
54
|
+
* The outcome of the caller's own request, as this Block draws it.
|
|
55
|
+
*
|
|
56
|
+
* A prop and never a state this Block writes, for the reason every Block in this
|
|
57
|
+
* family states: there is no sentence anywhere in this file, and the sentence this
|
|
58
|
+
* screen most needs is the one a design system has no business writing.
|
|
59
|
+
*/
|
|
60
|
+
export type ForgotPassword01Status = {
|
|
61
|
+
/** Which of the three the request is in. Read by the Block for two things only. */
|
|
62
|
+
state: ForgotPassword01Outcome;
|
|
63
|
+
/** The words for that state, in the product's own voice. */
|
|
64
|
+
message: ReactNode;
|
|
65
|
+
};
|
|
66
|
+
/** What the confirmation arm carries, and the union is what makes the pair mean one thing. */
|
|
67
|
+
export type ForgotPassword01Sent = {
|
|
68
|
+
/**
|
|
69
|
+
* The confirmation itself.
|
|
70
|
+
*
|
|
71
|
+
* **Required, and the whole of the decision this Block is named for.** It is the
|
|
72
|
+
* caller's sentence and it is not this Block's job to check that the caller wrote
|
|
73
|
+
* the same one in both cases, because that check is the Block asserting it knows
|
|
74
|
+
* whether an account was found. What the Block does instead is hold no prop that
|
|
75
|
+
* could carry the fact, so the leak cannot be expressed in the interface at all.
|
|
76
|
+
* See the Block's JSDoc for the trade in both directions.
|
|
77
|
+
*/
|
|
78
|
+
message: ReactNode;
|
|
79
|
+
} & ({
|
|
80
|
+
/** The words on the control that sends the request again. */
|
|
81
|
+
resendLabel: string;
|
|
82
|
+
/** Called when the reader asks for the request to be sent again. */
|
|
83
|
+
onResend: () => void;
|
|
84
|
+
} | {
|
|
85
|
+
/** A resend control with no words is a button nobody can find. */
|
|
86
|
+
resendLabel?: never;
|
|
87
|
+
/** A handler with no control is a call the caller cannot make. */
|
|
88
|
+
onResend?: never;
|
|
89
|
+
});
|
|
90
|
+
/**
|
|
91
|
+
* One way off this screen, and where it goes.
|
|
92
|
+
*
|
|
93
|
+
* A sentence and not a noun phrase, for the argument `Login01Link` gives: a link
|
|
94
|
+
* whose visible words do not say what activating it does is a link a voice control
|
|
95
|
+
* user cannot speak, because the words they can see are the words they can say.
|
|
96
|
+
*/
|
|
97
|
+
export type ForgotPassword01Link = {
|
|
98
|
+
/** The words on the link, and its accessible name. */
|
|
99
|
+
label: string;
|
|
100
|
+
/** The destination, in the `href` where the status bar and the context menu reach it. */
|
|
101
|
+
href: string;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* The props a ForgotPassword01 takes. Every string in this Block is one of them.
|
|
105
|
+
*
|
|
106
|
+
* There is no field list here and that is the design rather than an omission. A
|
|
107
|
+
* recovery form that could ask for a second identifier has already decided something
|
|
108
|
+
* about the caller's product, and the one thing it must not do is decide whether the
|
|
109
|
+
* first one was right.
|
|
110
|
+
*/
|
|
111
|
+
export type ForgotPassword01Props = {
|
|
112
|
+
/** The short line above the title, usually which product this is. */
|
|
113
|
+
eyebrow?: ReactNode;
|
|
114
|
+
/**
|
|
115
|
+
* The heading.
|
|
116
|
+
*
|
|
117
|
+
* Required, because a credential surface with no heading is a form in a page, and
|
|
118
|
+
* a reader who cannot get in deserves to be told which product refused them before
|
|
119
|
+
* they type anything personal into it.
|
|
120
|
+
*/
|
|
121
|
+
title: ReactNode;
|
|
122
|
+
/**
|
|
123
|
+
* What is about to happen to the identifier.
|
|
124
|
+
*
|
|
125
|
+
* **Required, and the difference from every other Block's description is the fact
|
|
126
|
+
* rather than an inconsistency.** A product page can omit a description and the
|
|
127
|
+
* omission is a design choice. This screen cannot: the reader has just discovered
|
|
128
|
+
* they cannot get in, they are about to type the one datum that ties them to an
|
|
129
|
+
* account, and the confirmation that follows is deliberately the same whether or
|
|
130
|
+
* not the account exists. That leaves the frame as the only place left to say what
|
|
131
|
+
* is about to happen, so a description this Block can ship without would be a
|
|
132
|
+
* screen where a reader who mistyped their address is told nothing at all, for
|
|
133
|
+
* ever, and concludes the message went somewhere. What the description says is the
|
|
134
|
+
* caller's, because what happens to an address in their product is their fact.
|
|
135
|
+
*/
|
|
136
|
+
description: ReactNode;
|
|
137
|
+
/**
|
|
138
|
+
* Called with the identifier, and the only thing this Block does with it.
|
|
139
|
+
*
|
|
140
|
+
* **Required, and the requirement is the whole of the Block's neutrality.** There
|
|
141
|
+
* is no transport here, no route, no mail queue and no session store, because each
|
|
142
|
+
* of those is a decision about the caller's product and its data, and a frame that
|
|
143
|
+
* takes one is a frame that has to be replaced rather than configured.
|
|
144
|
+
*/
|
|
145
|
+
onSubmit: (value: {
|
|
146
|
+
identifier: string;
|
|
147
|
+
}) => void;
|
|
148
|
+
/** The identifier field, declared by the caller. See `ForgotPassword01Identifier`. */
|
|
149
|
+
identifier: ForgotPassword01Identifier;
|
|
150
|
+
/** The words on the one control that submits. */
|
|
151
|
+
submitLabel: string;
|
|
152
|
+
/**
|
|
153
|
+
* Whether the caller's request is in flight.
|
|
154
|
+
*
|
|
155
|
+
* A prop and not read from `status`, because the two answer different questions:
|
|
156
|
+
* `submitting` is the control and `status.state` is the outcome. It covers a resend
|
|
157
|
+
* as well as the first request, because from where the reader is sitting the two
|
|
158
|
+
* are the same request and the one control on screen should be the one that goes
|
|
159
|
+
* quiet.
|
|
160
|
+
*/
|
|
161
|
+
submitting?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* The outcome of the caller's request, drawn in a live region and announced.
|
|
164
|
+
*
|
|
165
|
+
* Drawn in both arms, which is why it is a separate prop from `sent`: the
|
|
166
|
+
* announcement is needed while the form is up and after it is replaced, and the
|
|
167
|
+
* confirmation is needed in only one of them. A single object would force a caller
|
|
168
|
+
* to invent a confirmation sentence for a form that is still on the screen.
|
|
169
|
+
*
|
|
170
|
+
* **A caller that passes `sent` normally passes no `status`, and that is the rule
|
|
171
|
+
* rather than an oversight.** The arm has already said the outcome, in
|
|
172
|
+
* `sent.message`, and putting the same sentence in both would draw it twice on the
|
|
173
|
+
* one screen where a reader is reading it for the only time. `status` is for
|
|
174
|
+
* everything after the first press: a resend that was refused, or a resend whose
|
|
175
|
+
* second sentence is worth saying.
|
|
176
|
+
*/
|
|
177
|
+
status?: ForgotPassword01Status;
|
|
178
|
+
/**
|
|
179
|
+
* The arm that replaces the form.
|
|
180
|
+
*
|
|
181
|
+
* Passing it takes the identifier field and the submit control away and draws the
|
|
182
|
+
* caller's confirmation in their place. **There is no field in this type that says
|
|
183
|
+
* whether an account was found**, and the absence is the design; see the Block's
|
|
184
|
+
* JSDoc for the argument in both directions.
|
|
185
|
+
*/
|
|
186
|
+
sent?: ForgotPassword01Sent;
|
|
187
|
+
/** The link that leaves this screen without recovering anything. */
|
|
188
|
+
back?: ForgotPassword01Link;
|
|
189
|
+
/** Heading level for the section heading. @defaultValue 'h2' */
|
|
190
|
+
headingLevel?: HeadingLevel;
|
|
191
|
+
/**
|
|
192
|
+
* Layout only, exactly as on every Block. Changing a Prism-owned visual property
|
|
193
|
+
* from here is prohibited.
|
|
194
|
+
*/
|
|
195
|
+
className?: string;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* One identifier, one control, and a confirmation that says the same thing whether or
|
|
199
|
+
* not the account exists.
|
|
200
|
+
*
|
|
201
|
+
* **The translation, because the pattern is not ours and the framing is.** A
|
|
202
|
+
* storefront publishes a forgot-password card: an address field, one button, and a
|
|
203
|
+
* line that says to check your inbox, and its purpose is to get a shopper past a
|
|
204
|
+
* locked door so their order history is waiting on the other side. Prism's products
|
|
205
|
+
* observe a pipeline, capture a market, watch an estate and run agents, and a machine
|
|
206
|
+
* acting on behalf of a person is the whole subject, so this is the screen where
|
|
207
|
+
* somebody who is responsible for an instrument asks for a way back in to it. The
|
|
208
|
+
* composition is the storefront's and is deliberately unchanged: one labelled field,
|
|
209
|
+
* one control, one outcome line, one way off the screen. What is different is the
|
|
210
|
+
* sentence after the press, and the rest of this note is about that sentence.
|
|
211
|
+
*
|
|
212
|
+
* **What it assumes about the reader in front of it, because a recovery flow that
|
|
213
|
+
* assumes a careful reader is a flow that fails the one time it is needed.** It
|
|
214
|
+
* assumes the reader cannot get in, that they are often in a hurry, and that they
|
|
215
|
+
* may be on a machine they do not fully control. It assumes nothing about the state
|
|
216
|
+
* of their account, nothing about whether they know their own address by heart, and
|
|
217
|
+
* nothing about whether they will read the frame. It refuses to assume they typed
|
|
218
|
+
* correctly, because the whole design exists to make that assumption unnecessary.
|
|
219
|
+
*
|
|
220
|
+
* **The decision that makes this a separate Item from `contact-01` is that the
|
|
221
|
+
* confirmation is the same whether or not the account exists, and it is expressed in
|
|
222
|
+
* the shape rather than in the prose.** There is no `found` flag, no `unknown`, no
|
|
223
|
+
* `registered` and no second message. `sent.message` is one sentence, and the type
|
|
224
|
+
* has nowhere to put a second one. The alternative was a `status` that grew an arm
|
|
225
|
+
* for the negative case, which is a two-line change to the props and a permanent
|
|
226
|
+
* capability to leak in every product that installs this Block, and a leak that is
|
|
227
|
+
* cheap to add and expensive to remove once a product's support process depends on
|
|
228
|
+
* it.
|
|
229
|
+
*
|
|
230
|
+
* **The trade is real and it is argued in both directions, because it is not a
|
|
231
|
+
* clean win.** A message that differs leaks which addresses are registered, and that
|
|
232
|
+
* is an enumeration oracle: an attacker with any address list learns which of them
|
|
233
|
+
* hold an account here, and a reader with a mistyped address learns the same thing
|
|
234
|
+
* about themselves. A message that is identical teaches the reader that a mistyped
|
|
235
|
+
* address succeeded, and it is the version that is more often wrong in practice,
|
|
236
|
+
* because a recovery form is the one form a reader is most likely to fill from memory
|
|
237
|
+
* and most likely to get wrong. Both sentences are true. The resolution that does
|
|
238
|
+
* not pick a side is a confirmation that names the next step without confirming the
|
|
239
|
+
* account: it says what has been sent and where to look, and it does not say what was
|
|
240
|
+
* found. That is a sentence the caller's product can write in a way that is true of
|
|
241
|
+
* both cases, and it is the reason `sent.message` is a node and the whole of what the
|
|
242
|
+
* arm carries. **The words are the caller's.** A consumer that wants the other trade
|
|
243
|
+
* can write it in `sent.message` and the Block will not stop them, because the Block
|
|
244
|
+
* has no opinion about a disclosure decision; what it does is refuse to make the
|
|
245
|
+
* choice on their behalf by refusing to have a place to put it.
|
|
246
|
+
*
|
|
247
|
+
* **`status` and `sent` are two props because they answer two questions.** `status`
|
|
248
|
+
* is the announcement, and it is needed while the form is up and after it is
|
|
249
|
+
* replaced: a caller whose transport failed on the first press and then succeeded on
|
|
250
|
+
* the second needs a region in both arms. `sent` is the arm, and passing it is what
|
|
251
|
+
* takes the field and the control away. Merging them would force a caller to invent a
|
|
252
|
+
* confirmation sentence for a form that is still on the screen, which is the shape
|
|
253
|
+
* that makes designers add a placeholder they then ship. The corollary is the rule
|
|
254
|
+
* above: the arm reports the first press, and `status` reports everything after it,
|
|
255
|
+
* so the two never carry the same sentence and the reader never reads it twice.
|
|
256
|
+
*
|
|
257
|
+
* **The card stays and the form inside it is replaced, so the reader's page does not
|
|
258
|
+
* change size under them at the moment they are reading the one line that matters.**
|
|
259
|
+
* A recovery screen that reflows on success looks like a fault, and the reader who
|
|
260
|
+
* has just mistyped their address is the reader least able to tell a reflow from a
|
|
261
|
+
* failure.
|
|
262
|
+
*
|
|
263
|
+
* **The Block owns one string and hands it over, and it validates nothing.** There
|
|
264
|
+
* is no address format check, no rate limit, no redirect to a "did you mean" page and
|
|
265
|
+
* no enumeration defence beyond the shape of the confirmation, because each of those
|
|
266
|
+
* is a decision about the caller's product and its data. What the Block does about
|
|
267
|
+
* the request is the one thing that is rendering rather than policy: it refuses a
|
|
268
|
+
* second press while `submitting` is true, because a second press is a second message
|
|
269
|
+
* queued into somebody's inbox that nobody asked for.
|
|
270
|
+
*
|
|
271
|
+
* **There is no `Alert` in this file, and the alternative was a callout with
|
|
272
|
+
* `role="alert"` beside the live region.** That announces the same sentence twice, and
|
|
273
|
+
* on a screen where a reader is waiting for an answer about whether they can get in,
|
|
274
|
+
* a doubled announcement is the one place it is least forgivable. So the outcome is
|
|
275
|
+
* a `LiveRegion` whose politeness follows the caller's own state, and `assertive`
|
|
276
|
+
* only for the refusal.
|
|
277
|
+
*
|
|
278
|
+
* It is a client Component, and the directive is unconditional. `onSubmit` is a
|
|
279
|
+
* function, a function is a piece of state, and state is a client module: a server
|
|
280
|
+
* Component cannot hand an event handler to a `<form>`, so a caller rendering this
|
|
281
|
+
* from a server Component gets a form that submits and calls nothing. The cost is
|
|
282
|
+
* that the whole module is in the client graph even where a consumer never presses
|
|
283
|
+
* the button, and the price was judged worth paying for one boundary rather than
|
|
284
|
+
* two arrangements of the same screen.
|
|
285
|
+
*/
|
|
286
|
+
export declare function ForgotPassword01({ eyebrow, title, description, onSubmit, identifier, submitLabel, submitting, status, sent, back, headingLevel, className, }: ForgotPassword01Props): import("react").JSX.Element;
|
|
287
|
+
export default ForgotPassword01;
|
|
288
|
+
//# sourceMappingURL=forgot-password.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgot-password.d.ts","sourceRoot":"","sources":["../../../src/blocks/forgot-password-01/forgot-password.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAQvE,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAGxF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACvB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2DAA2D;IAC3D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACxC,CAAA;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;AAE/D;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,mFAAmF;IACnF,KAAK,EAAE,uBAAuB,CAAA;IAC9B,4DAA4D;IAC5D,OAAO,EAAE,SAAS,CAAA;CACnB,CAAA;AAED,8FAA8F;AAC9F,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;;;;;;OASG;IACH,OAAO,EAAE,SAAS,CAAA;CACnB,GAAG,CACA;IACE,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAA;IACnB,oEAAoE;IACpE,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,GACD;IACE,kEAAkE;IAClE,WAAW,CAAC,EAAE,KAAK,CAAA;IACnB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB,CACJ,CAAA;AAED;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAA;IACb,yFAAyF;IACzF,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,qEAAqE;IACrE,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;;;;;OAMG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;;;;;;;;;;;;OAaG;IACH,WAAW,EAAE,SAAS,CAAA;IACtB;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IACjD,sFAAsF;IACtF,UAAU,EAAE,0BAA0B,CAAA;IACtC,iDAAiD;IACjD,WAAW,EAAE,MAAM,CAAA;IACnB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,sBAAsB,CAAA;IAC/B;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAA;IAC3B,oEAAoE;IACpE,IAAI,CAAC,EAAE,oBAAoB,CAAA;IAC3B,gEAAgE;IAChE,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAoED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,EACR,UAAU,EACV,WAAW,EACX,UAAkB,EAClB,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,YAAmB,EACnB,SAAS,GACV,EAAE,qBAAqB,+BAoLvB;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useId, useState } from 'react';
|
|
4
|
+
import { Button } from '../../components/ui/button.js';
|
|
5
|
+
import { Card } from '../../components/ui/card.js';
|
|
6
|
+
import { CtaLink } from '../../components/ui/cta-link.js';
|
|
7
|
+
import { Field, FieldDescription, FieldLabel } from '../../components/ui/field.js';
|
|
8
|
+
import { Input } from '../../components/ui/input.js';
|
|
9
|
+
import { LiveRegion } from '../../components/ui/live-region.js';
|
|
10
|
+
import { Section, SectionHeading } from '../../components/ui/section.js';
|
|
11
|
+
import { cn } from '../../lib/utils.js';
|
|
12
|
+
/**
|
|
13
|
+
* Whether a caller passed a word that is not there.
|
|
14
|
+
*
|
|
15
|
+
* Read as `string | undefined` rather than as the declared type, because the check
|
|
16
|
+
* is about the value that turned up rather than about what the type promised. A
|
|
17
|
+
* JavaScript caller and a value out of a session store both arrive with the type's
|
|
18
|
+
* guarantee already gone, and the diagnostic below is the last place that can still
|
|
19
|
+
* say what was wrong.
|
|
20
|
+
*/
|
|
21
|
+
function blank(value) {
|
|
22
|
+
return value === undefined || value.trim() === '';
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The three refusals, checked before anything is drawn so a caller's mistake is one
|
|
26
|
+
* diagnostic in a console rather than a nameless control on the screen where a
|
|
27
|
+
* reader is about to type the one datum that ties them to an account.
|
|
28
|
+
*/
|
|
29
|
+
function assertForgot(input) {
|
|
30
|
+
const { identifier, sent, back } = input;
|
|
31
|
+
if (blank(identifier.label)) {
|
|
32
|
+
throw new Error('ForgotPassword01: the identifier field declares no label, so its control would be announced as a text ' +
|
|
33
|
+
'field, which is the same name every other field in the reader recovery flow is announced by. Pass the ' +
|
|
34
|
+
'words your product uses for a person or an operator.');
|
|
35
|
+
}
|
|
36
|
+
if (identifier.value !== undefined && identifier.onValueChange === undefined) {
|
|
37
|
+
throw new Error('ForgotPassword01: identifier.value was passed with no onValueChange, so the field would show the value ' +
|
|
38
|
+
'once and then stop telling the caller what is in it, which is a value the caller cannot clear when a ' +
|
|
39
|
+
'reader mistypes it. Pass the pair, or neither.');
|
|
40
|
+
}
|
|
41
|
+
if (back !== undefined && blank(back.label)) {
|
|
42
|
+
throw new Error(`ForgotPassword01: the link to ${JSON.stringify(back.href)} declares no label, so the anchor accessible ` +
|
|
43
|
+
'name would be its destination, which a screen reader reads as a run of characters and a mouse reader ' +
|
|
44
|
+
'cannot copy. Pass the sentence that says what following it does.');
|
|
45
|
+
}
|
|
46
|
+
if (sent !== undefined && (sent.resendLabel === undefined) !== (sent.onResend === undefined)) {
|
|
47
|
+
throw new Error('ForgotPassword01: the confirmation arm was passed one half of its resend control, so the screen would ' +
|
|
48
|
+
'either offer a button that does nothing or call a handler no control can reach. Pass resendLabel and ' +
|
|
49
|
+
'onResend together, or neither.');
|
|
50
|
+
}
|
|
51
|
+
if (sent !== undefined && blank(sent.resendLabel)) {
|
|
52
|
+
throw new Error('ForgotPassword01: the confirmation arm was passed a resend control with no words, so the one control on ' +
|
|
53
|
+
'the screen after a reader presses the button would be a button a screen reader announces as "button" ' +
|
|
54
|
+
'and a voice control user cannot say out loud.');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* One identifier, one control, and a confirmation that says the same thing whether or
|
|
59
|
+
* not the account exists.
|
|
60
|
+
*
|
|
61
|
+
* **The translation, because the pattern is not ours and the framing is.** A
|
|
62
|
+
* storefront publishes a forgot-password card: an address field, one button, and a
|
|
63
|
+
* line that says to check your inbox, and its purpose is to get a shopper past a
|
|
64
|
+
* locked door so their order history is waiting on the other side. Prism's products
|
|
65
|
+
* observe a pipeline, capture a market, watch an estate and run agents, and a machine
|
|
66
|
+
* acting on behalf of a person is the whole subject, so this is the screen where
|
|
67
|
+
* somebody who is responsible for an instrument asks for a way back in to it. The
|
|
68
|
+
* composition is the storefront's and is deliberately unchanged: one labelled field,
|
|
69
|
+
* one control, one outcome line, one way off the screen. What is different is the
|
|
70
|
+
* sentence after the press, and the rest of this note is about that sentence.
|
|
71
|
+
*
|
|
72
|
+
* **What it assumes about the reader in front of it, because a recovery flow that
|
|
73
|
+
* assumes a careful reader is a flow that fails the one time it is needed.** It
|
|
74
|
+
* assumes the reader cannot get in, that they are often in a hurry, and that they
|
|
75
|
+
* may be on a machine they do not fully control. It assumes nothing about the state
|
|
76
|
+
* of their account, nothing about whether they know their own address by heart, and
|
|
77
|
+
* nothing about whether they will read the frame. It refuses to assume they typed
|
|
78
|
+
* correctly, because the whole design exists to make that assumption unnecessary.
|
|
79
|
+
*
|
|
80
|
+
* **The decision that makes this a separate Item from `contact-01` is that the
|
|
81
|
+
* confirmation is the same whether or not the account exists, and it is expressed in
|
|
82
|
+
* the shape rather than in the prose.** There is no `found` flag, no `unknown`, no
|
|
83
|
+
* `registered` and no second message. `sent.message` is one sentence, and the type
|
|
84
|
+
* has nowhere to put a second one. The alternative was a `status` that grew an arm
|
|
85
|
+
* for the negative case, which is a two-line change to the props and a permanent
|
|
86
|
+
* capability to leak in every product that installs this Block, and a leak that is
|
|
87
|
+
* cheap to add and expensive to remove once a product's support process depends on
|
|
88
|
+
* it.
|
|
89
|
+
*
|
|
90
|
+
* **The trade is real and it is argued in both directions, because it is not a
|
|
91
|
+
* clean win.** A message that differs leaks which addresses are registered, and that
|
|
92
|
+
* is an enumeration oracle: an attacker with any address list learns which of them
|
|
93
|
+
* hold an account here, and a reader with a mistyped address learns the same thing
|
|
94
|
+
* about themselves. A message that is identical teaches the reader that a mistyped
|
|
95
|
+
* address succeeded, and it is the version that is more often wrong in practice,
|
|
96
|
+
* because a recovery form is the one form a reader is most likely to fill from memory
|
|
97
|
+
* and most likely to get wrong. Both sentences are true. The resolution that does
|
|
98
|
+
* not pick a side is a confirmation that names the next step without confirming the
|
|
99
|
+
* account: it says what has been sent and where to look, and it does not say what was
|
|
100
|
+
* found. That is a sentence the caller's product can write in a way that is true of
|
|
101
|
+
* both cases, and it is the reason `sent.message` is a node and the whole of what the
|
|
102
|
+
* arm carries. **The words are the caller's.** A consumer that wants the other trade
|
|
103
|
+
* can write it in `sent.message` and the Block will not stop them, because the Block
|
|
104
|
+
* has no opinion about a disclosure decision; what it does is refuse to make the
|
|
105
|
+
* choice on their behalf by refusing to have a place to put it.
|
|
106
|
+
*
|
|
107
|
+
* **`status` and `sent` are two props because they answer two questions.** `status`
|
|
108
|
+
* is the announcement, and it is needed while the form is up and after it is
|
|
109
|
+
* replaced: a caller whose transport failed on the first press and then succeeded on
|
|
110
|
+
* the second needs a region in both arms. `sent` is the arm, and passing it is what
|
|
111
|
+
* takes the field and the control away. Merging them would force a caller to invent a
|
|
112
|
+
* confirmation sentence for a form that is still on the screen, which is the shape
|
|
113
|
+
* that makes designers add a placeholder they then ship. The corollary is the rule
|
|
114
|
+
* above: the arm reports the first press, and `status` reports everything after it,
|
|
115
|
+
* so the two never carry the same sentence and the reader never reads it twice.
|
|
116
|
+
*
|
|
117
|
+
* **The card stays and the form inside it is replaced, so the reader's page does not
|
|
118
|
+
* change size under them at the moment they are reading the one line that matters.**
|
|
119
|
+
* A recovery screen that reflows on success looks like a fault, and the reader who
|
|
120
|
+
* has just mistyped their address is the reader least able to tell a reflow from a
|
|
121
|
+
* failure.
|
|
122
|
+
*
|
|
123
|
+
* **The Block owns one string and hands it over, and it validates nothing.** There
|
|
124
|
+
* is no address format check, no rate limit, no redirect to a "did you mean" page and
|
|
125
|
+
* no enumeration defence beyond the shape of the confirmation, because each of those
|
|
126
|
+
* is a decision about the caller's product and its data. What the Block does about
|
|
127
|
+
* the request is the one thing that is rendering rather than policy: it refuses a
|
|
128
|
+
* second press while `submitting` is true, because a second press is a second message
|
|
129
|
+
* queued into somebody's inbox that nobody asked for.
|
|
130
|
+
*
|
|
131
|
+
* **There is no `Alert` in this file, and the alternative was a callout with
|
|
132
|
+
* `role="alert"` beside the live region.** That announces the same sentence twice, and
|
|
133
|
+
* on a screen where a reader is waiting for an answer about whether they can get in,
|
|
134
|
+
* a doubled announcement is the one place it is least forgivable. So the outcome is
|
|
135
|
+
* a `LiveRegion` whose politeness follows the caller's own state, and `assertive`
|
|
136
|
+
* only for the refusal.
|
|
137
|
+
*
|
|
138
|
+
* It is a client Component, and the directive is unconditional. `onSubmit` is a
|
|
139
|
+
* function, a function is a piece of state, and state is a client module: a server
|
|
140
|
+
* Component cannot hand an event handler to a `<form>`, so a caller rendering this
|
|
141
|
+
* from a server Component gets a form that submits and calls nothing. The cost is
|
|
142
|
+
* that the whole module is in the client graph even where a consumer never presses
|
|
143
|
+
* the button, and the price was judged worth paying for one boundary rather than
|
|
144
|
+
* two arrangements of the same screen.
|
|
145
|
+
*/
|
|
146
|
+
export function ForgotPassword01({ eyebrow, title, description, onSubmit, identifier, submitLabel, submitting = false, status, sent, back, headingLevel = 'h2', className, }) {
|
|
147
|
+
assertForgot({ identifier, sent, back });
|
|
148
|
+
const generated = useId();
|
|
149
|
+
const inputId = `${generated}-identifier`;
|
|
150
|
+
const descriptionId = `${generated}-identifier-description`;
|
|
151
|
+
/*
|
|
152
|
+
* The value lives here rather than only in the caller, for one reason: a field a
|
|
153
|
+
* caller cannot clear is a field a reader who mistyped their address has to reload
|
|
154
|
+
* the page to escape from, and the reader most likely to mistype it is the one who
|
|
155
|
+
* can least afford to lose the screen. The Block therefore holds the identifier
|
|
156
|
+
* itself, reports every change to the caller when one was asked for, and adopts a
|
|
157
|
+
* `value` prop the moment it changes, which is the arrangement React documents for
|
|
158
|
+
* a prop that can change under a stateful child. Both halves are adjusted during
|
|
159
|
+
* render rather than in an effect, because the trigger is a prop changing and a set
|
|
160
|
+
* during render is applied before the browser paints.
|
|
161
|
+
*/
|
|
162
|
+
const [typed, setTyped] = useState(identifier.value ?? '');
|
|
163
|
+
const [seen, setSeen] = useState(identifier.value);
|
|
164
|
+
if (seen !== identifier.value) {
|
|
165
|
+
setSeen(identifier.value);
|
|
166
|
+
setTyped(identifier.value ?? '');
|
|
167
|
+
}
|
|
168
|
+
const setIdentifier = (value) => {
|
|
169
|
+
setTyped(value);
|
|
170
|
+
identifier.onValueChange?.(value);
|
|
171
|
+
};
|
|
172
|
+
const handleSubmit = (event) => {
|
|
173
|
+
event.preventDefault();
|
|
174
|
+
onSubmit({ identifier: typed });
|
|
175
|
+
};
|
|
176
|
+
return (_jsx(Section, { "data-slot": "forgot-password-01", className: cn(className), children: _jsxs("div", { "data-slot": "forgot-password-01-body", className: "flex flex-col gap-10", children: [_jsx(SectionHeading, { as: headingLevel, align: "left", eyebrow: eyebrow, title: title, description: description }), _jsx(Card, { "data-slot": "forgot-password-01-card", className: "max-w-measure-narrow gap-0 px-6", children: sent === undefined ? (_jsxs("form", { "data-slot": "forgot-password-01-form", onSubmit: handleSubmit, className: "flex w-full flex-col gap-5", children: [_jsxs(Field, { "data-slot": "forgot-password-01-identifier", "data-field": "identifier", children: [_jsx(FieldLabel, { htmlFor: inputId, children: identifier.label }), _jsx(Input, { id: inputId, type: identifier.type ?? 'email', autoComplete: identifier.autoComplete, value: typed, onChange: (event) => setIdentifier(event.target.value), required: true, "aria-describedby": identifier.description === undefined ? undefined : descriptionId }), identifier.description === undefined ? null : (_jsx(FieldDescription, { id: descriptionId, children: identifier.description }))] }), _jsxs("div", { "data-slot": "forgot-password-01-actions", className: "flex flex-col gap-3", children: [_jsx(Button, { "data-slot": "forgot-password-01-submit", type: "submit", disabled: submitting, className: "w-full", children: submitLabel }), _jsx(LiveRegion, { "data-slot": "forgot-password-01-status", politeness: status?.state === 'error' ? 'assertive' : 'polite', busy: submitting, className: cn('text-sm', status?.state === 'error'
|
|
177
|
+
? 'text-destructive font-medium'
|
|
178
|
+
: 'text-muted-foreground'), children: status?.message })] })] })) : (
|
|
179
|
+
/*
|
|
180
|
+
* The confirmation arm. The field and the control are gone and the card is
|
|
181
|
+
* still there, and the region survives below it so a resend that fails has
|
|
182
|
+
* somewhere to be announced. `sent.message` is the caller's sentence and
|
|
183
|
+
* there is nowhere in this file to put a second one; that absence is the
|
|
184
|
+
* Block's whole contribution to the decision the caller is making.
|
|
185
|
+
*/
|
|
186
|
+
_jsxs("div", { "data-slot": "forgot-password-01-sent", className: "flex w-full flex-col gap-4", children: [_jsx("p", { "data-slot": "forgot-password-01-sent-message", className: "text-sm text-pretty", children: sent.message }), sent.resendLabel === undefined ? null : (_jsx(Button, { "data-slot": "forgot-password-01-resend", type: "button", variant: "outline", onClick: () => sent.onResend?.(), disabled: submitting, className: "self-start", children: sent.resendLabel })), _jsx(LiveRegion, { "data-slot": "forgot-password-01-status", politeness: status?.state === 'error' ? 'assertive' : 'polite', busy: submitting, className: cn('text-sm', status?.state === 'error'
|
|
187
|
+
? 'text-destructive font-medium'
|
|
188
|
+
: 'text-muted-foreground'), children: status?.message })] })) }), back === undefined ? null : (_jsx(CtaLink, { "data-slot": "forgot-password-01-back", href: back.href, variant: "ghost", size: "sm", className: "self-start", children: back.label }))] }) }));
|
|
189
|
+
}
|
|
190
|
+
export default ForgotPassword01;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ForgotPassword01, default } from './forgot-password.js';
|
|
2
|
+
export type { ForgotPassword01Identifier, ForgotPassword01Link, ForgotPassword01Outcome, ForgotPassword01Props, ForgotPassword01Sent, ForgotPassword01Status, } from './forgot-password.js';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/forgot-password-01/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAQ7D,YAAY,EACV,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ForgotPassword01, default } from './forgot-password.js';
|