@nanisoft/prism-ui 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES.md +22 -7
- package/dist/.tsbuildinfo +1 -1
- package/dist/blocks/about-01/about.d.ts +296 -0
- package/dist/blocks/about-01/about.d.ts.map +1 -0
- package/dist/blocks/about-01/about.js +103 -0
- package/dist/blocks/about-01/index.d.ts +3 -0
- package/dist/blocks/about-01/index.d.ts.map +1 -0
- package/dist/blocks/about-01/index.js +1 -0
- package/dist/blocks/accept-invite-01/accept-invite.d.ts +324 -0
- package/dist/blocks/accept-invite-01/accept-invite.d.ts.map +1 -0
- package/dist/blocks/accept-invite-01/accept-invite.js +230 -0
- package/dist/blocks/accept-invite-01/index.d.ts +3 -0
- package/dist/blocks/accept-invite-01/index.d.ts.map +1 -0
- package/dist/blocks/accept-invite-01/index.js +1 -0
- package/dist/blocks/account-01/account-01.d.ts +393 -0
- package/dist/blocks/account-01/account-01.d.ts.map +1 -0
- package/dist/blocks/account-01/account-01.js +215 -0
- package/dist/blocks/account-01/index.d.ts +3 -0
- package/dist/blocks/account-01/index.d.ts.map +1 -0
- package/dist/blocks/account-01/index.js +1 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.d.ts +271 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.d.ts.map +1 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.js +185 -0
- package/dist/blocks/activity-feed-01/index.d.ts +3 -0
- package/dist/blocks/activity-feed-01/index.d.ts.map +1 -0
- package/dist/blocks/activity-feed-01/index.js +1 -0
- package/dist/blocks/address-book-01/address-book-01.d.ts +312 -0
- package/dist/blocks/address-book-01/address-book-01.d.ts.map +1 -0
- package/dist/blocks/address-book-01/address-book-01.js +233 -0
- package/dist/blocks/address-book-01/index.d.ts +3 -0
- package/dist/blocks/address-book-01/index.d.ts.map +1 -0
- package/dist/blocks/address-book-01/index.js +1 -0
- package/dist/blocks/audit-log-01/audit-log-01.d.ts +333 -0
- package/dist/blocks/audit-log-01/audit-log-01.d.ts.map +1 -0
- package/dist/blocks/audit-log-01/audit-log-01.js +211 -0
- package/dist/blocks/audit-log-01/index.d.ts +3 -0
- package/dist/blocks/audit-log-01/index.d.ts.map +1 -0
- package/dist/blocks/audit-log-01/index.js +1 -0
- package/dist/blocks/auth-form-01/auth-form.d.ts +40 -1
- package/dist/blocks/auth-form-01/auth-form.d.ts.map +1 -1
- package/dist/blocks/auth-form-01/auth-form.js +26 -3
- package/dist/blocks/awards-01/awards.d.ts +156 -0
- package/dist/blocks/awards-01/awards.d.ts.map +1 -0
- package/dist/blocks/awards-01/awards.js +102 -0
- package/dist/blocks/awards-01/index.d.ts +3 -0
- package/dist/blocks/awards-01/index.d.ts.map +1 -0
- package/dist/blocks/awards-01/index.js +1 -0
- package/dist/blocks/backdrop-01/backdrop.d.ts +268 -0
- package/dist/blocks/backdrop-01/backdrop.d.ts.map +1 -0
- package/dist/blocks/backdrop-01/backdrop.js +170 -0
- package/dist/blocks/backdrop-01/index.d.ts +3 -0
- package/dist/blocks/backdrop-01/index.d.ts.map +1 -0
- package/dist/blocks/backdrop-01/index.js +1 -0
- package/dist/blocks/bento-01/bento-01.d.ts +136 -0
- package/dist/blocks/bento-01/bento-01.d.ts.map +1 -0
- package/dist/blocks/bento-01/bento-01.js +97 -0
- package/dist/blocks/bento-01/index.d.ts +3 -0
- package/dist/blocks/bento-01/index.d.ts.map +1 -0
- package/dist/blocks/bento-01/index.js +1 -0
- package/dist/blocks/billing-source-01/billing-source-01.d.ts +379 -0
- package/dist/blocks/billing-source-01/billing-source-01.d.ts.map +1 -0
- package/dist/blocks/billing-source-01/billing-source-01.js +222 -0
- package/dist/blocks/billing-source-01/index.d.ts +3 -0
- package/dist/blocks/billing-source-01/index.d.ts.map +1 -0
- package/dist/blocks/billing-source-01/index.js +1 -0
- package/dist/blocks/bundle-01/bundle.d.ts +387 -0
- package/dist/blocks/bundle-01/bundle.d.ts.map +1 -0
- package/dist/blocks/bundle-01/bundle.js +153 -0
- package/dist/blocks/bundle-01/index.d.ts +3 -0
- package/dist/blocks/bundle-01/index.d.ts.map +1 -0
- package/dist/blocks/bundle-01/index.js +1 -0
- package/dist/blocks/calendar-01/calendar.d.ts +251 -0
- package/dist/blocks/calendar-01/calendar.d.ts.map +1 -0
- package/dist/blocks/calendar-01/calendar.js +191 -0
- package/dist/blocks/calendar-01/index.d.ts +3 -0
- package/dist/blocks/calendar-01/index.d.ts.map +1 -0
- package/dist/blocks/calendar-01/index.js +1 -0
- package/dist/blocks/capacity-01/capacity.d.ts +363 -0
- package/dist/blocks/capacity-01/capacity.d.ts.map +1 -0
- package/dist/blocks/capacity-01/capacity.js +208 -0
- package/dist/blocks/capacity-01/index.d.ts +3 -0
- package/dist/blocks/capacity-01/index.d.ts.map +1 -0
- package/dist/blocks/capacity-01/index.js +1 -0
- package/dist/blocks/careers-01/careers.d.ts +186 -0
- package/dist/blocks/careers-01/careers.d.ts.map +1 -0
- package/dist/blocks/careers-01/careers.js +83 -0
- package/dist/blocks/careers-01/index.d.ts +3 -0
- package/dist/blocks/careers-01/index.d.ts.map +1 -0
- package/dist/blocks/careers-01/index.js +1 -0
- package/dist/blocks/case-studies-01/case-studies.d.ts +192 -0
- package/dist/blocks/case-studies-01/case-studies.d.ts.map +1 -0
- package/dist/blocks/case-studies-01/case-studies.js +97 -0
- package/dist/blocks/case-studies-01/index.d.ts +3 -0
- package/dist/blocks/case-studies-01/index.d.ts.map +1 -0
- package/dist/blocks/case-studies-01/index.js +1 -0
- package/dist/blocks/case-study-01/case-study.d.ts +214 -0
- package/dist/blocks/case-study-01/case-study.d.ts.map +1 -0
- package/dist/blocks/case-study-01/case-study.js +79 -0
- package/dist/blocks/case-study-01/index.d.ts +3 -0
- package/dist/blocks/case-study-01/index.d.ts.map +1 -0
- package/dist/blocks/case-study-01/index.js +1 -0
- package/dist/blocks/changelog-01/changelog.d.ts +200 -0
- package/dist/blocks/changelog-01/changelog.d.ts.map +1 -0
- package/dist/blocks/changelog-01/changelog.js +155 -0
- package/dist/blocks/changelog-01/index.d.ts +3 -0
- package/dist/blocks/changelog-01/index.d.ts.map +1 -0
- package/dist/blocks/changelog-01/index.js +1 -0
- package/dist/blocks/chart-card-01/chart-card-01.d.ts +149 -0
- package/dist/blocks/chart-card-01/chart-card-01.d.ts.map +1 -0
- package/dist/blocks/chart-card-01/chart-card-01.js +81 -0
- package/dist/blocks/chart-card-01/index.d.ts +3 -0
- package/dist/blocks/chart-card-01/index.d.ts.map +1 -0
- package/dist/blocks/chart-card-01/index.js +1 -0
- package/dist/blocks/chart-group-01/chart-group-01.d.ts +138 -0
- package/dist/blocks/chart-group-01/chart-group-01.d.ts.map +1 -0
- package/dist/blocks/chart-group-01/chart-group-01.js +74 -0
- package/dist/blocks/chart-group-01/index.d.ts +3 -0
- package/dist/blocks/chart-group-01/index.d.ts.map +1 -0
- package/dist/blocks/chart-group-01/index.js +1 -0
- package/dist/blocks/code-sample-01/code-sample.d.ts +193 -0
- package/dist/blocks/code-sample-01/code-sample.d.ts.map +1 -0
- package/dist/blocks/code-sample-01/code-sample.js +104 -0
- package/dist/blocks/code-sample-01/index.d.ts +3 -0
- package/dist/blocks/code-sample-01/index.d.ts.map +1 -0
- package/dist/blocks/code-sample-01/index.js +1 -0
- package/dist/blocks/community-01/community.d.ts +183 -0
- package/dist/blocks/community-01/community.d.ts.map +1 -0
- package/dist/blocks/community-01/community.js +102 -0
- package/dist/blocks/community-01/index.d.ts +3 -0
- package/dist/blocks/community-01/index.d.ts.map +1 -0
- package/dist/blocks/community-01/index.js +1 -0
- package/dist/blocks/compare-01/compare.d.ts +184 -0
- package/dist/blocks/compare-01/compare.d.ts.map +1 -0
- package/dist/blocks/compare-01/compare.js +106 -0
- package/dist/blocks/compare-01/index.d.ts +3 -0
- package/dist/blocks/compare-01/index.d.ts.map +1 -0
- package/dist/blocks/compare-01/index.js +1 -0
- package/dist/blocks/compliance-01/compliance.d.ts +249 -0
- package/dist/blocks/compliance-01/compliance.d.ts.map +1 -0
- package/dist/blocks/compliance-01/compliance.js +130 -0
- package/dist/blocks/compliance-01/index.d.ts +3 -0
- package/dist/blocks/compliance-01/index.d.ts.map +1 -0
- package/dist/blocks/compliance-01/index.js +1 -0
- package/dist/blocks/consent-01/consent.d.ts +211 -0
- package/dist/blocks/consent-01/consent.d.ts.map +1 -0
- package/dist/blocks/consent-01/consent.js +101 -0
- package/dist/blocks/consent-01/index.d.ts +3 -0
- package/dist/blocks/consent-01/index.d.ts.map +1 -0
- package/dist/blocks/consent-01/index.js +1 -0
- package/dist/blocks/contact-01/contact.d.ts +319 -0
- package/dist/blocks/contact-01/contact.d.ts.map +1 -0
- package/dist/blocks/contact-01/contact.js +211 -0
- package/dist/blocks/contact-01/index.d.ts +3 -0
- package/dist/blocks/contact-01/index.d.ts.map +1 -0
- package/dist/blocks/contact-01/index.js +1 -0
- package/dist/blocks/content-grid-01/content-grid.d.ts +262 -0
- package/dist/blocks/content-grid-01/content-grid.d.ts.map +1 -0
- package/dist/blocks/content-grid-01/content-grid.js +155 -0
- package/dist/blocks/content-grid-01/index.d.ts +3 -0
- package/dist/blocks/content-grid-01/index.d.ts.map +1 -0
- package/dist/blocks/content-grid-01/index.js +1 -0
- package/dist/blocks/cta-01/cta.d.ts +7 -1
- package/dist/blocks/cta-01/cta.d.ts.map +1 -1
- package/dist/blocks/cta-01/cta.js +11 -2
- package/dist/blocks/dashboard-01/dashboard-01.d.ts +247 -0
- package/dist/blocks/dashboard-01/dashboard-01.d.ts.map +1 -0
- package/dist/blocks/dashboard-01/dashboard-01.js +141 -0
- package/dist/blocks/dashboard-01/index.d.ts +3 -0
- package/dist/blocks/dashboard-01/index.d.ts.map +1 -0
- package/dist/blocks/dashboard-01/index.js +1 -0
- package/dist/blocks/data-table-01/data-table.d.ts +12 -1
- package/dist/blocks/data-table-01/data-table.d.ts.map +1 -1
- package/dist/blocks/data-table-01/data-table.js +8 -5
- package/dist/blocks/delivery-01/delivery.d.ts +343 -0
- package/dist/blocks/delivery-01/delivery.d.ts.map +1 -0
- package/dist/blocks/delivery-01/delivery.js +212 -0
- package/dist/blocks/delivery-01/index.d.ts +3 -0
- package/dist/blocks/delivery-01/index.d.ts.map +1 -0
- package/dist/blocks/delivery-01/index.js +1 -0
- package/dist/blocks/directory-01/directory-01.d.ts +316 -0
- package/dist/blocks/directory-01/directory-01.d.ts.map +1 -0
- package/dist/blocks/directory-01/directory-01.js +252 -0
- package/dist/blocks/directory-01/index.d.ts +3 -0
- package/dist/blocks/directory-01/index.d.ts.map +1 -0
- package/dist/blocks/directory-01/index.js +1 -0
- package/dist/blocks/download-01/download.d.ts +261 -0
- package/dist/blocks/download-01/download.d.ts.map +1 -0
- package/dist/blocks/download-01/download.js +115 -0
- package/dist/blocks/download-01/index.d.ts +3 -0
- package/dist/blocks/download-01/index.d.ts.map +1 -0
- package/dist/blocks/download-01/index.js +1 -0
- package/dist/blocks/faq-01/faq.d.ts +128 -0
- package/dist/blocks/faq-01/faq.d.ts.map +1 -0
- package/dist/blocks/faq-01/faq.js +53 -0
- package/dist/blocks/faq-01/index.d.ts +3 -0
- package/dist/blocks/faq-01/index.d.ts.map +1 -0
- package/dist/blocks/faq-01/index.js +1 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.d.ts +158 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.d.ts.map +1 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.js +81 -0
- package/dist/blocks/feature-rows-01/index.d.ts +3 -0
- package/dist/blocks/feature-rows-01/index.d.ts.map +1 -0
- package/dist/blocks/feature-rows-01/index.js +1 -0
- package/dist/blocks/feedback-01/feedback.d.ts +235 -0
- package/dist/blocks/feedback-01/feedback.d.ts.map +1 -0
- package/dist/blocks/feedback-01/feedback.js +113 -0
- package/dist/blocks/feedback-01/index.d.ts +3 -0
- package/dist/blocks/feedback-01/index.d.ts.map +1 -0
- package/dist/blocks/feedback-01/index.js +1 -0
- package/dist/blocks/field-map-01/field-map.d.ts +247 -0
- package/dist/blocks/field-map-01/field-map.d.ts.map +1 -0
- package/dist/blocks/field-map-01/field-map.js +183 -0
- package/dist/blocks/field-map-01/index.d.ts +3 -0
- package/dist/blocks/field-map-01/index.d.ts.map +1 -0
- package/dist/blocks/field-map-01/index.js +1 -0
- package/dist/blocks/forgot-password-01/forgot-password.d.ts +288 -0
- package/dist/blocks/forgot-password-01/forgot-password.d.ts.map +1 -0
- package/dist/blocks/forgot-password-01/forgot-password.js +190 -0
- package/dist/blocks/forgot-password-01/index.d.ts +3 -0
- package/dist/blocks/forgot-password-01/index.d.ts.map +1 -0
- package/dist/blocks/forgot-password-01/index.js +1 -0
- package/dist/blocks/gallery-01/gallery.d.ts +208 -0
- package/dist/blocks/gallery-01/gallery.d.ts.map +1 -0
- package/dist/blocks/gallery-01/gallery.js +174 -0
- package/dist/blocks/gallery-01/index.d.ts +3 -0
- package/dist/blocks/gallery-01/index.d.ts.map +1 -0
- package/dist/blocks/gallery-01/index.js +1 -0
- package/dist/blocks/gantt-01/gantt.d.ts +290 -0
- package/dist/blocks/gantt-01/gantt.d.ts.map +1 -0
- package/dist/blocks/gantt-01/gantt.js +224 -0
- package/dist/blocks/gantt-01/index.d.ts +3 -0
- package/dist/blocks/gantt-01/index.d.ts.map +1 -0
- package/dist/blocks/gantt-01/index.js +1 -0
- package/dist/blocks/handoff-01/handoff-01.d.ts +326 -0
- package/dist/blocks/handoff-01/handoff-01.d.ts.map +1 -0
- package/dist/blocks/handoff-01/handoff-01.js +180 -0
- package/dist/blocks/handoff-01/index.d.ts +3 -0
- package/dist/blocks/handoff-01/index.d.ts.map +1 -0
- package/dist/blocks/handoff-01/index.js +1 -0
- package/dist/blocks/help-01/help.d.ts +254 -0
- package/dist/blocks/help-01/help.d.ts.map +1 -0
- package/dist/blocks/help-01/help.js +188 -0
- package/dist/blocks/help-01/index.d.ts +3 -0
- package/dist/blocks/help-01/index.d.ts.map +1 -0
- package/dist/blocks/help-01/index.js +1 -0
- package/dist/blocks/hero-01/hero.d.ts +105 -34
- package/dist/blocks/hero-01/hero.d.ts.map +1 -1
- package/dist/blocks/hero-01/hero.js +23 -15
- package/dist/blocks/hero-01/index.d.ts +1 -1
- package/dist/blocks/hero-01/index.d.ts.map +1 -1
- package/dist/blocks/hero-02/hero-02.d.ts +244 -0
- package/dist/blocks/hero-02/hero-02.d.ts.map +1 -0
- package/dist/blocks/hero-02/hero-02.js +87 -0
- package/dist/blocks/hero-02/index.d.ts +3 -0
- package/dist/blocks/hero-02/index.d.ts.map +1 -0
- package/dist/blocks/hero-02/index.js +1 -0
- package/dist/blocks/hero-03/hero-03.d.ts +247 -0
- package/dist/blocks/hero-03/hero-03.d.ts.map +1 -0
- package/dist/blocks/hero-03/hero-03.js +93 -0
- package/dist/blocks/hero-03/index.d.ts +3 -0
- package/dist/blocks/hero-03/index.d.ts.map +1 -0
- package/dist/blocks/hero-03/index.js +1 -0
- package/dist/blocks/history-01/history-01.d.ts +414 -0
- package/dist/blocks/history-01/history-01.d.ts.map +1 -0
- package/dist/blocks/history-01/history-01.js +285 -0
- package/dist/blocks/history-01/index.d.ts +3 -0
- package/dist/blocks/history-01/index.d.ts.map +1 -0
- package/dist/blocks/history-01/index.js +1 -0
- package/dist/blocks/inbox-01/inbox.d.ts +349 -0
- package/dist/blocks/inbox-01/inbox.d.ts.map +1 -0
- package/dist/blocks/inbox-01/inbox.js +244 -0
- package/dist/blocks/inbox-01/index.d.ts +3 -0
- package/dist/blocks/inbox-01/index.d.ts.map +1 -0
- package/dist/blocks/inbox-01/index.js +1 -0
- package/dist/blocks/index.d.ts +203 -0
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/blocks/index.js +118 -0
- package/dist/blocks/industries-01/index.d.ts +3 -0
- package/dist/blocks/industries-01/index.d.ts.map +1 -0
- package/dist/blocks/industries-01/index.js +1 -0
- package/dist/blocks/industries-01/industries.d.ts +164 -0
- package/dist/blocks/industries-01/industries.d.ts.map +1 -0
- package/dist/blocks/industries-01/industries.js +96 -0
- package/dist/blocks/intake-01/index.d.ts +3 -0
- package/dist/blocks/intake-01/index.d.ts.map +1 -0
- package/dist/blocks/intake-01/index.js +1 -0
- package/dist/blocks/intake-01/intake-01.d.ts +305 -0
- package/dist/blocks/intake-01/intake-01.d.ts.map +1 -0
- package/dist/blocks/intake-01/intake-01.js +178 -0
- package/dist/blocks/integration-01/index.d.ts +3 -0
- package/dist/blocks/integration-01/index.d.ts.map +1 -0
- package/dist/blocks/integration-01/index.js +1 -0
- package/dist/blocks/integration-01/integration.d.ts +226 -0
- package/dist/blocks/integration-01/integration.d.ts.map +1 -0
- package/dist/blocks/integration-01/integration.js +170 -0
- package/dist/blocks/invite-user-01/index.d.ts +3 -0
- package/dist/blocks/invite-user-01/index.d.ts.map +1 -0
- package/dist/blocks/invite-user-01/index.js +1 -0
- package/dist/blocks/invite-user-01/invite-user.d.ts +317 -0
- package/dist/blocks/invite-user-01/invite-user.d.ts.map +1 -0
- package/dist/blocks/invite-user-01/invite-user.js +228 -0
- package/dist/blocks/issue-detail-01/index.d.ts +3 -0
- package/dist/blocks/issue-detail-01/index.d.ts.map +1 -0
- package/dist/blocks/issue-detail-01/index.js +1 -0
- package/dist/blocks/issue-detail-01/issue-detail.d.ts +355 -0
- package/dist/blocks/issue-detail-01/issue-detail.d.ts.map +1 -0
- package/dist/blocks/issue-detail-01/issue-detail.js +187 -0
- package/dist/blocks/issue-list-01/index.d.ts +3 -0
- package/dist/blocks/issue-list-01/index.d.ts.map +1 -0
- package/dist/blocks/issue-list-01/index.js +1 -0
- package/dist/blocks/issue-list-01/issue-list.d.ts +298 -0
- package/dist/blocks/issue-list-01/issue-list.d.ts.map +1 -0
- package/dist/blocks/issue-list-01/issue-list.js +284 -0
- package/dist/blocks/kanban-01/index.d.ts +3 -0
- package/dist/blocks/kanban-01/index.d.ts.map +1 -0
- package/dist/blocks/kanban-01/index.js +1 -0
- package/dist/blocks/kanban-01/kanban.d.ts +278 -0
- package/dist/blocks/kanban-01/kanban.d.ts.map +1 -0
- package/dist/blocks/kanban-01/kanban.js +144 -0
- package/dist/blocks/leaderboard-01/index.d.ts +3 -0
- package/dist/blocks/leaderboard-01/index.d.ts.map +1 -0
- package/dist/blocks/leaderboard-01/index.js +1 -0
- package/dist/blocks/leaderboard-01/leaderboard.d.ts +250 -0
- package/dist/blocks/leaderboard-01/leaderboard.d.ts.map +1 -0
- package/dist/blocks/leaderboard-01/leaderboard.js +121 -0
- package/dist/blocks/login-01/index.d.ts +3 -0
- package/dist/blocks/login-01/index.d.ts.map +1 -0
- package/dist/blocks/login-01/index.js +1 -0
- package/dist/blocks/login-01/login-01.d.ts +356 -0
- package/dist/blocks/login-01/login-01.d.ts.map +1 -0
- package/dist/blocks/login-01/login-01.js +249 -0
- package/dist/blocks/logo-cloud-01/index.d.ts +3 -0
- package/dist/blocks/logo-cloud-01/index.d.ts.map +1 -0
- package/dist/blocks/logo-cloud-01/index.js +1 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.d.ts +181 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.d.ts.map +1 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.js +118 -0
- package/dist/blocks/magic-link-01/index.d.ts +3 -0
- package/dist/blocks/magic-link-01/index.d.ts.map +1 -0
- package/dist/blocks/magic-link-01/index.js +1 -0
- package/dist/blocks/magic-link-01/magic-link-01.d.ts +367 -0
- package/dist/blocks/magic-link-01/magic-link-01.d.ts.map +1 -0
- package/dist/blocks/magic-link-01/magic-link-01.js +233 -0
- package/dist/blocks/member-list-01/index.d.ts +3 -0
- package/dist/blocks/member-list-01/index.d.ts.map +1 -0
- package/dist/blocks/member-list-01/index.js +1 -0
- package/dist/blocks/member-list-01/member-list.d.ts +192 -0
- package/dist/blocks/member-list-01/member-list.d.ts.map +1 -0
- package/dist/blocks/member-list-01/member-list.js +142 -0
- package/dist/blocks/milestone-timeline-01/index.d.ts +3 -0
- package/dist/blocks/milestone-timeline-01/index.d.ts.map +1 -0
- package/dist/blocks/milestone-timeline-01/index.js +1 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.d.ts +217 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.d.ts.map +1 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.js +173 -0
- package/dist/blocks/newsletter-01/index.d.ts +3 -0
- package/dist/blocks/newsletter-01/index.d.ts.map +1 -0
- package/dist/blocks/newsletter-01/index.js +1 -0
- package/dist/blocks/newsletter-01/newsletter.d.ts +216 -0
- package/dist/blocks/newsletter-01/newsletter.d.ts.map +1 -0
- package/dist/blocks/newsletter-01/newsletter.js +102 -0
- package/dist/blocks/notification-center-01/index.d.ts +3 -0
- package/dist/blocks/notification-center-01/index.d.ts.map +1 -0
- package/dist/blocks/notification-center-01/index.js +1 -0
- package/dist/blocks/notification-center-01/notification-center-01.d.ts +341 -0
- package/dist/blocks/notification-center-01/notification-center-01.d.ts.map +1 -0
- package/dist/blocks/notification-center-01/notification-center-01.js +203 -0
- package/dist/blocks/offer-01/index.d.ts +3 -0
- package/dist/blocks/offer-01/index.d.ts.map +1 -0
- package/dist/blocks/offer-01/index.js +1 -0
- package/dist/blocks/offer-01/offer.d.ts +139 -0
- package/dist/blocks/offer-01/offer.d.ts.map +1 -0
- package/dist/blocks/offer-01/offer.js +81 -0
- package/dist/blocks/offering-01/index.d.ts +3 -0
- package/dist/blocks/offering-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-01/index.js +1 -0
- package/dist/blocks/offering-01/offering.d.ts +245 -0
- package/dist/blocks/offering-01/offering.d.ts.map +1 -0
- package/dist/blocks/offering-01/offering.js +144 -0
- package/dist/blocks/offering-categories-01/index.d.ts +3 -0
- package/dist/blocks/offering-categories-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-categories-01/index.js +1 -0
- package/dist/blocks/offering-categories-01/offering-categories.d.ts +248 -0
- package/dist/blocks/offering-categories-01/offering-categories.d.ts.map +1 -0
- package/dist/blocks/offering-categories-01/offering-categories.js +153 -0
- package/dist/blocks/offering-list-01/index.d.ts +3 -0
- package/dist/blocks/offering-list-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-list-01/index.js +1 -0
- package/dist/blocks/offering-list-01/offering-list.d.ts +362 -0
- package/dist/blocks/offering-list-01/offering-list.d.ts.map +1 -0
- package/dist/blocks/offering-list-01/offering-list.js +366 -0
- package/dist/blocks/onboarding-01/index.d.ts +3 -0
- package/dist/blocks/onboarding-01/index.d.ts.map +1 -0
- package/dist/blocks/onboarding-01/index.js +1 -0
- package/dist/blocks/onboarding-01/onboarding.d.ts +199 -0
- package/dist/blocks/onboarding-01/onboarding.d.ts.map +1 -0
- package/dist/blocks/onboarding-01/onboarding.js +182 -0
- package/dist/blocks/ops-checklist-01/index.d.ts +3 -0
- package/dist/blocks/ops-checklist-01/index.d.ts.map +1 -0
- package/dist/blocks/ops-checklist-01/index.js +1 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.d.ts +308 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.d.ts.map +1 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.js +165 -0
- package/dist/blocks/page-header-01/index.d.ts +1 -1
- package/dist/blocks/page-header-01/index.d.ts.map +1 -1
- package/dist/blocks/page-header-01/page-header.d.ts +124 -11
- package/dist/blocks/page-header-01/page-header.d.ts.map +1 -1
- package/dist/blocks/page-header-01/page-header.js +25 -9
- package/dist/blocks/passkey-01/index.d.ts +3 -0
- package/dist/blocks/passkey-01/index.d.ts.map +1 -0
- package/dist/blocks/passkey-01/index.js +1 -0
- package/dist/blocks/passkey-01/passkey-01.d.ts +334 -0
- package/dist/blocks/passkey-01/passkey-01.d.ts.map +1 -0
- package/dist/blocks/passkey-01/passkey-01.js +192 -0
- package/dist/blocks/permission-matrix-01/index.d.ts +3 -0
- package/dist/blocks/permission-matrix-01/index.d.ts.map +1 -0
- package/dist/blocks/permission-matrix-01/index.js +1 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.d.ts +282 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.d.ts.map +1 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.js +173 -0
- package/dist/blocks/pricing-01/index.d.ts +1 -0
- package/dist/blocks/pricing-01/index.d.ts.map +1 -1
- package/dist/blocks/pricing-01/pricing.d.ts +118 -1
- package/dist/blocks/pricing-01/pricing.d.ts.map +1 -1
- package/dist/blocks/pricing-01/pricing.js +9 -2
- package/dist/blocks/pricing-compare-01/index.d.ts +3 -0
- package/dist/blocks/pricing-compare-01/index.d.ts.map +1 -0
- package/dist/blocks/pricing-compare-01/index.js +1 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.d.ts +277 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.d.ts.map +1 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.js +126 -0
- package/dist/blocks/project-01/index.d.ts +3 -0
- package/dist/blocks/project-01/index.d.ts.map +1 -0
- package/dist/blocks/project-01/index.js +1 -0
- package/dist/blocks/project-01/project.d.ts +323 -0
- package/dist/blocks/project-01/project.d.ts.map +1 -0
- package/dist/blocks/project-01/project.js +247 -0
- package/dist/blocks/project-dashboard-01/index.d.ts +3 -0
- package/dist/blocks/project-dashboard-01/index.d.ts.map +1 -0
- package/dist/blocks/project-dashboard-01/index.js +1 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.d.ts +200 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.d.ts.map +1 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.js +124 -0
- package/dist/blocks/project-list-01/index.d.ts +3 -0
- package/dist/blocks/project-list-01/index.d.ts.map +1 -0
- package/dist/blocks/project-list-01/index.js +1 -0
- package/dist/blocks/project-list-01/project-list.d.ts +301 -0
- package/dist/blocks/project-list-01/project-list.d.ts.map +1 -0
- package/dist/blocks/project-list-01/project-list.js +305 -0
- package/dist/blocks/provisioning-01/index.d.ts +3 -0
- package/dist/blocks/provisioning-01/index.d.ts.map +1 -0
- package/dist/blocks/provisioning-01/index.js +1 -0
- package/dist/blocks/provisioning-01/provisioning.d.ts +357 -0
- package/dist/blocks/provisioning-01/provisioning.d.ts.map +1 -0
- package/dist/blocks/provisioning-01/provisioning.js +230 -0
- package/dist/blocks/quick-view-01/index.d.ts +3 -0
- package/dist/blocks/quick-view-01/index.d.ts.map +1 -0
- package/dist/blocks/quick-view-01/index.js +1 -0
- package/dist/blocks/quick-view-01/quick-view.d.ts +215 -0
- package/dist/blocks/quick-view-01/quick-view.d.ts.map +1 -0
- package/dist/blocks/quick-view-01/quick-view.js +136 -0
- package/dist/blocks/rate-card-01/index.d.ts +3 -0
- package/dist/blocks/rate-card-01/index.d.ts.map +1 -0
- package/dist/blocks/rate-card-01/index.js +1 -0
- package/dist/blocks/rate-card-01/rate-card.d.ts +184 -0
- package/dist/blocks/rate-card-01/rate-card.d.ts.map +1 -0
- package/dist/blocks/rate-card-01/rate-card.js +79 -0
- package/dist/blocks/reset-password-01/index.d.ts +3 -0
- package/dist/blocks/reset-password-01/index.d.ts.map +1 -0
- package/dist/blocks/reset-password-01/index.js +1 -0
- package/dist/blocks/reset-password-01/reset-password.d.ts +276 -0
- package/dist/blocks/reset-password-01/reset-password.d.ts.map +1 -0
- package/dist/blocks/reset-password-01/reset-password.js +175 -0
- package/dist/blocks/resource-list-01/index.d.ts +3 -0
- package/dist/blocks/resource-list-01/index.d.ts.map +1 -0
- package/dist/blocks/resource-list-01/index.js +1 -0
- package/dist/blocks/resource-list-01/resource-list.d.ts +237 -0
- package/dist/blocks/resource-list-01/resource-list.d.ts.map +1 -0
- package/dist/blocks/resource-list-01/resource-list.js +154 -0
- package/dist/blocks/retention-01/index.d.ts +3 -0
- package/dist/blocks/retention-01/index.d.ts.map +1 -0
- package/dist/blocks/retention-01/index.js +1 -0
- package/dist/blocks/retention-01/retention.d.ts +255 -0
- package/dist/blocks/retention-01/retention.d.ts.map +1 -0
- package/dist/blocks/retention-01/retention.js +145 -0
- package/dist/blocks/run-console-01/run-console.d.ts +14 -1
- package/dist/blocks/run-console-01/run-console.d.ts.map +1 -1
- package/dist/blocks/run-console-01/run-console.js +3 -2
- package/dist/blocks/services-01/index.d.ts +3 -0
- package/dist/blocks/services-01/index.d.ts.map +1 -0
- package/dist/blocks/services-01/index.js +1 -0
- package/dist/blocks/services-01/services.d.ts +159 -0
- package/dist/blocks/services-01/services.d.ts.map +1 -0
- package/dist/blocks/services-01/services.js +81 -0
- package/dist/blocks/settings-integrations-01/index.d.ts +3 -0
- package/dist/blocks/settings-integrations-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-integrations-01/index.js +1 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.d.ts +246 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.d.ts.map +1 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.js +213 -0
- package/dist/blocks/settings-members-01/index.d.ts +3 -0
- package/dist/blocks/settings-members-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-members-01/index.js +1 -0
- package/dist/blocks/settings-members-01/settings-members.d.ts +396 -0
- package/dist/blocks/settings-members-01/settings-members.d.ts.map +1 -0
- package/dist/blocks/settings-members-01/settings-members.js +255 -0
- package/dist/blocks/settings-notifications-01/index.d.ts +3 -0
- package/dist/blocks/settings-notifications-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-notifications-01/index.js +1 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.d.ts +270 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.d.ts.map +1 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.js +202 -0
- package/dist/blocks/settings-security-01/index.d.ts +3 -0
- package/dist/blocks/settings-security-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-security-01/index.js +1 -0
- package/dist/blocks/settings-security-01/settings-security.d.ts +439 -0
- package/dist/blocks/settings-security-01/settings-security.d.ts.map +1 -0
- package/dist/blocks/settings-security-01/settings-security.js +244 -0
- package/dist/blocks/shortlist-01/index.d.ts +3 -0
- package/dist/blocks/shortlist-01/index.d.ts.map +1 -0
- package/dist/blocks/shortlist-01/index.js +1 -0
- package/dist/blocks/shortlist-01/shortlist-01.d.ts +337 -0
- package/dist/blocks/shortlist-01/shortlist-01.d.ts.map +1 -0
- package/dist/blocks/shortlist-01/shortlist-01.js +191 -0
- package/dist/blocks/showcase-01/index.d.ts +3 -0
- package/dist/blocks/showcase-01/index.d.ts.map +1 -0
- package/dist/blocks/showcase-01/index.js +1 -0
- package/dist/blocks/showcase-01/showcase-01.d.ts +238 -0
- package/dist/blocks/showcase-01/showcase-01.d.ts.map +1 -0
- package/dist/blocks/showcase-01/showcase-01.js +84 -0
- package/dist/blocks/signup-01/index.d.ts +3 -0
- package/dist/blocks/signup-01/index.d.ts.map +1 -0
- package/dist/blocks/signup-01/index.js +1 -0
- package/dist/blocks/signup-01/signup-01.d.ts +405 -0
- package/dist/blocks/signup-01/signup-01.d.ts.map +1 -0
- package/dist/blocks/signup-01/signup-01.js +209 -0
- package/dist/blocks/site-footer/site-footer.d.ts +18 -1
- package/dist/blocks/site-footer/site-footer.d.ts.map +1 -1
- package/dist/blocks/site-footer/site-footer.js +8 -2
- package/dist/blocks/site-header/site-header.js +1 -1
- package/dist/blocks/site-navbar/site-navbar.d.ts +37 -3
- package/dist/blocks/site-navbar/site-navbar.d.ts.map +1 -1
- package/dist/blocks/site-navbar/site-navbar.js +33 -4
- package/dist/blocks/spec-table-01/index.d.ts +3 -0
- package/dist/blocks/spec-table-01/index.d.ts.map +1 -0
- package/dist/blocks/spec-table-01/index.js +1 -0
- package/dist/blocks/spec-table-01/spec-table.d.ts +293 -0
- package/dist/blocks/spec-table-01/spec-table.d.ts.map +1 -0
- package/dist/blocks/spec-table-01/spec-table.js +217 -0
- package/dist/blocks/story-01/index.d.ts +3 -0
- package/dist/blocks/story-01/index.d.ts.map +1 -0
- package/dist/blocks/story-01/index.js +1 -0
- package/dist/blocks/story-01/story.d.ts +153 -0
- package/dist/blocks/story-01/story.d.ts.map +1 -0
- package/dist/blocks/story-01/story.js +103 -0
- package/dist/blocks/summary-01/index.d.ts +3 -0
- package/dist/blocks/summary-01/index.d.ts.map +1 -0
- package/dist/blocks/summary-01/index.js +1 -0
- package/dist/blocks/summary-01/summary.d.ts +300 -0
- package/dist/blocks/summary-01/summary.d.ts.map +1 -0
- package/dist/blocks/summary-01/summary.js +174 -0
- package/dist/blocks/team-01/index.d.ts +3 -0
- package/dist/blocks/team-01/index.d.ts.map +1 -0
- package/dist/blocks/team-01/index.js +1 -0
- package/dist/blocks/team-01/team.d.ts +176 -0
- package/dist/blocks/team-01/team.d.ts.map +1 -0
- package/dist/blocks/team-01/team.js +117 -0
- package/dist/blocks/testimonial-01/index.d.ts +3 -0
- package/dist/blocks/testimonial-01/index.d.ts.map +1 -0
- package/dist/blocks/testimonial-01/index.js +1 -0
- package/dist/blocks/testimonial-01/testimonial.d.ts +173 -0
- package/dist/blocks/testimonial-01/testimonial.d.ts.map +1 -0
- package/dist/blocks/testimonial-01/testimonial.js +87 -0
- package/dist/blocks/todo-01/index.d.ts +3 -0
- package/dist/blocks/todo-01/index.d.ts.map +1 -0
- package/dist/blocks/todo-01/index.js +1 -0
- package/dist/blocks/todo-01/todo.d.ts +286 -0
- package/dist/blocks/todo-01/todo.d.ts.map +1 -0
- package/dist/blocks/todo-01/todo.js +149 -0
- package/dist/blocks/trend-01/index.d.ts +3 -0
- package/dist/blocks/trend-01/index.d.ts.map +1 -0
- package/dist/blocks/trend-01/index.js +1 -0
- package/dist/blocks/trend-01/trend.d.ts +184 -0
- package/dist/blocks/trend-01/trend.d.ts.map +1 -0
- package/dist/blocks/trend-01/trend.js +99 -0
- package/dist/blocks/trust-strip-01/index.d.ts +3 -0
- package/dist/blocks/trust-strip-01/index.d.ts.map +1 -0
- package/dist/blocks/trust-strip-01/index.js +1 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.d.ts +139 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.d.ts.map +1 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.js +58 -0
- package/dist/blocks/two-factor-01/index.d.ts +3 -0
- package/dist/blocks/two-factor-01/index.d.ts.map +1 -0
- package/dist/blocks/two-factor-01/index.js +1 -0
- package/dist/blocks/two-factor-01/two-factor-01.d.ts +440 -0
- package/dist/blocks/two-factor-01/two-factor-01.d.ts.map +1 -0
- package/dist/blocks/two-factor-01/two-factor-01.js +273 -0
- package/dist/blocks/user-profile-01/index.d.ts +3 -0
- package/dist/blocks/user-profile-01/index.d.ts.map +1 -0
- package/dist/blocks/user-profile-01/index.js +1 -0
- package/dist/blocks/user-profile-01/user-profile-01.d.ts +258 -0
- package/dist/blocks/user-profile-01/user-profile-01.d.ts.map +1 -0
- package/dist/blocks/user-profile-01/user-profile-01.js +158 -0
- package/dist/blocks/verify-email-01/index.d.ts +3 -0
- package/dist/blocks/verify-email-01/index.d.ts.map +1 -0
- package/dist/blocks/verify-email-01/index.js +1 -0
- package/dist/blocks/verify-email-01/verify-email.d.ts +262 -0
- package/dist/blocks/verify-email-01/verify-email.d.ts.map +1 -0
- package/dist/blocks/verify-email-01/verify-email.js +190 -0
- package/dist/blocks/waitlist-01/index.d.ts +3 -0
- package/dist/blocks/waitlist-01/index.d.ts.map +1 -0
- package/dist/blocks/waitlist-01/index.js +1 -0
- package/dist/blocks/waitlist-01/waitlist.d.ts +254 -0
- package/dist/blocks/waitlist-01/waitlist.d.ts.map +1 -0
- package/dist/blocks/waitlist-01/waitlist.js +75 -0
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +1641 -1
- package/dist/components/index.d.ts +114 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +134 -0
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +9 -2
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +22 -4
- package/dist/components/ui/announcement.d.ts +169 -0
- package/dist/components/ui/announcement.d.ts.map +1 -0
- package/dist/components/ui/announcement.js +123 -0
- package/dist/components/ui/avatar-group.d.ts +176 -0
- package/dist/components/ui/avatar-group.d.ts.map +1 -0
- package/dist/components/ui/avatar-group.js +135 -0
- package/dist/components/ui/billing-source.d.ts +293 -0
- package/dist/components/ui/billing-source.d.ts.map +1 -0
- package/dist/components/ui/billing-source.js +136 -0
- package/dist/components/ui/button.d.ts +16 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +17 -2
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +30 -2
- package/dist/components/ui/carousel.d.ts +7 -0
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +58 -1
- package/dist/components/ui/chart.d.ts +334 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +369 -0
- package/dist/components/ui/checkbox.d.ts +10 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +19 -1
- package/dist/components/ui/checklist.d.ts +262 -0
- package/dist/components/ui/checklist.d.ts.map +1 -0
- package/dist/components/ui/checklist.js +135 -0
- package/dist/components/ui/choice-card.d.ts +273 -0
- package/dist/components/ui/choice-card.d.ts.map +1 -0
- package/dist/components/ui/choice-card.js +138 -0
- package/dist/components/ui/code-block.d.ts +182 -0
- package/dist/components/ui/code-block.d.ts.map +1 -0
- package/dist/components/ui/code-block.js +108 -0
- package/dist/components/ui/cohort-grid.d.ts +210 -0
- package/dist/components/ui/cohort-grid.d.ts.map +1 -0
- package/dist/components/ui/cohort-grid.js +202 -0
- package/dist/components/ui/collapsible.d.ts +11 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js +13 -2
- package/dist/components/ui/combobox.d.ts +4 -1
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +20 -4
- package/dist/components/ui/command-palette.d.ts +11 -0
- package/dist/components/ui/command-palette.d.ts.map +1 -1
- package/dist/components/ui/command-palette.js +49 -3
- package/dist/components/ui/contribution-graph.d.ts +156 -0
- package/dist/components/ui/contribution-graph.d.ts.map +1 -0
- package/dist/components/ui/contribution-graph.js +170 -0
- package/dist/components/ui/creatable-combobox.d.ts +153 -0
- package/dist/components/ui/creatable-combobox.d.ts.map +1 -0
- package/dist/components/ui/creatable-combobox.js +285 -0
- package/dist/components/ui/data-toolbar.d.ts +133 -0
- package/dist/components/ui/data-toolbar.d.ts.map +1 -0
- package/dist/components/ui/data-toolbar.js +67 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +9 -1
- package/dist/components/ui/dialog.d.ts +31 -2
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +40 -6
- package/dist/components/ui/drawer.d.ts +270 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +241 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +6 -1
- package/dist/components/ui/dropzone.d.ts +147 -0
- package/dist/components/ui/dropzone.d.ts.map +1 -0
- package/dist/components/ui/dropzone.js +141 -0
- package/dist/components/ui/emoji-picker.d.ts +328 -0
- package/dist/components/ui/emoji-picker.d.ts.map +1 -0
- package/dist/components/ui/emoji-picker.js +278 -0
- package/dist/components/ui/file-upload.d.ts +152 -0
- package/dist/components/ui/file-upload.d.ts.map +1 -0
- package/dist/components/ui/file-upload.js +101 -0
- package/dist/components/ui/filter-panel.d.ts +164 -0
- package/dist/components/ui/filter-panel.d.ts.map +1 -0
- package/dist/components/ui/filter-panel.js +91 -0
- package/dist/components/ui/form-dialog.d.ts +257 -0
- package/dist/components/ui/form-dialog.d.ts.map +1 -0
- package/dist/components/ui/form-dialog.js +176 -0
- package/dist/components/ui/form-wizard.d.ts +251 -0
- package/dist/components/ui/form-wizard.d.ts.map +1 -0
- package/dist/components/ui/form-wizard.js +151 -0
- package/dist/components/ui/image-list-field.d.ts +232 -0
- package/dist/components/ui/image-list-field.d.ts.map +1 -0
- package/dist/components/ui/image-list-field.js +168 -0
- package/dist/components/ui/image-zoom.d.ts +164 -0
- package/dist/components/ui/image-zoom.d.ts.map +1 -0
- package/dist/components/ui/image-zoom.js +169 -0
- package/dist/components/ui/intensity-grid.d.ts +270 -0
- package/dist/components/ui/intensity-grid.d.ts.map +1 -0
- package/dist/components/ui/intensity-grid.js +211 -0
- package/dist/components/ui/lifecycle-button.d.ts +276 -0
- package/dist/components/ui/lifecycle-button.d.ts.map +1 -0
- package/dist/components/ui/lifecycle-button.js +144 -0
- package/dist/components/ui/lightbox.d.ts +165 -0
- package/dist/components/ui/lightbox.d.ts.map +1 -0
- package/dist/components/ui/lightbox.js +130 -0
- package/dist/components/ui/list-panel.d.ts +288 -0
- package/dist/components/ui/list-panel.d.ts.map +1 -0
- package/dist/components/ui/list-panel.js +139 -0
- package/dist/components/ui/mega-menu.d.ts +244 -0
- package/dist/components/ui/mega-menu.d.ts.map +1 -0
- package/dist/components/ui/mega-menu.js +97 -0
- package/dist/components/ui/menubar.d.ts +9 -0
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +10 -1
- package/dist/components/ui/metric.d.ts +123 -0
- package/dist/components/ui/metric.d.ts.map +1 -0
- package/dist/components/ui/metric.js +68 -0
- package/dist/components/ui/mini-calendar.d.ts +143 -0
- package/dist/components/ui/mini-calendar.d.ts.map +1 -0
- package/dist/components/ui/mini-calendar.js +261 -0
- package/dist/components/ui/mode-toggle.d.ts +102 -0
- package/dist/components/ui/mode-toggle.d.ts.map +1 -0
- package/dist/components/ui/mode-toggle.js +83 -0
- package/dist/components/ui/money-field.d.ts +200 -0
- package/dist/components/ui/money-field.d.ts.map +1 -0
- package/dist/components/ui/money-field.js +215 -0
- package/dist/components/ui/multi-combobox.d.ts +181 -0
- package/dist/components/ui/multi-combobox.d.ts.map +1 -0
- package/dist/components/ui/multi-combobox.js +297 -0
- package/dist/components/ui/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select.js +8 -1
- package/dist/components/ui/navigation-menu.d.ts +7 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +8 -1
- package/dist/components/ui/nested-tabs.d.ts +188 -0
- package/dist/components/ui/nested-tabs.d.ts.map +1 -0
- package/dist/components/ui/nested-tabs.js +75 -0
- package/dist/components/ui/number-field.d.ts +40 -7
- package/dist/components/ui/number-field.d.ts.map +1 -1
- package/dist/components/ui/number-field.js +37 -7
- package/dist/components/ui/overflow-actions.d.ts +169 -0
- package/dist/components/ui/overflow-actions.d.ts.map +1 -0
- package/dist/components/ui/overflow-actions.js +266 -0
- package/dist/components/ui/pack-swatch.d.ts +177 -0
- package/dist/components/ui/pack-swatch.d.ts.map +1 -0
- package/dist/components/ui/pack-swatch.js +117 -0
- package/dist/components/ui/pack-switcher.d.ts +221 -0
- package/dist/components/ui/pack-switcher.d.ts.map +1 -0
- package/dist/components/ui/pack-switcher.js +94 -0
- package/dist/components/ui/pagination.d.ts +22 -0
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +23 -1
- package/dist/components/ui/password-field.d.ts +122 -0
- package/dist/components/ui/password-field.d.ts.map +1 -0
- package/dist/components/ui/password-field.js +69 -0
- package/dist/components/ui/pill.d.ts +172 -0
- package/dist/components/ui/pill.d.ts.map +1 -0
- package/dist/components/ui/pill.js +102 -0
- package/dist/components/ui/platform-modifier-key.d.ts +129 -0
- package/dist/components/ui/platform-modifier-key.d.ts.map +1 -0
- package/dist/components/ui/platform-modifier-key.js +125 -0
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +8 -1
- package/dist/components/ui/price.d.ts +144 -0
- package/dist/components/ui/price.d.ts.map +1 -0
- package/dist/components/ui/price.js +107 -0
- package/dist/components/ui/progress.d.ts +55 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +110 -2
- package/dist/components/ui/prompt-composer.d.ts +302 -0
- package/dist/components/ui/prompt-composer.d.ts.map +1 -0
- package/dist/components/ui/prompt-composer.js +145 -0
- package/dist/components/ui/proportion-list.d.ts +188 -0
- package/dist/components/ui/proportion-list.d.ts.map +1 -0
- package/dist/components/ui/proportion-list.js +134 -0
- package/dist/components/ui/prose.d.ts +23 -0
- package/dist/components/ui/prose.d.ts.map +1 -1
- package/dist/components/ui/prose.js +30 -1
- package/dist/components/ui/radio-group.d.ts +7 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +8 -1
- package/dist/components/ui/range-field.d.ts +158 -0
- package/dist/components/ui/range-field.d.ts.map +1 -0
- package/dist/components/ui/range-field.js +208 -0
- package/dist/components/ui/relative-time.d.ts +116 -0
- package/dist/components/ui/relative-time.d.ts.map +1 -0
- package/dist/components/ui/relative-time.js +67 -0
- package/dist/components/ui/reorderable-list.d.ts +262 -0
- package/dist/components/ui/reorderable-list.d.ts.map +1 -0
- package/dist/components/ui/reorderable-list.js +325 -0
- package/dist/components/ui/repeatable-rows.d.ts +241 -0
- package/dist/components/ui/repeatable-rows.d.ts.map +1 -0
- package/dist/components/ui/repeatable-rows.js +221 -0
- package/dist/components/ui/repo-stars.d.ts +165 -0
- package/dist/components/ui/repo-stars.d.ts.map +1 -0
- package/dist/components/ui/repo-stars.js +92 -0
- package/dist/components/ui/resizable.d.ts +24 -0
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +96 -4
- package/dist/components/ui/search-dialog.d.ts +40 -5
- package/dist/components/ui/search-dialog.d.ts.map +1 -1
- package/dist/components/ui/search-dialog.js +94 -16
- package/dist/components/ui/search-field.d.ts +159 -0
- package/dist/components/ui/search-field.d.ts.map +1 -0
- package/dist/components/ui/search-field.js +98 -0
- package/dist/components/ui/section.d.ts +108 -1
- package/dist/components/ui/section.d.ts.map +1 -1
- package/dist/components/ui/section.js +109 -3
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +9 -1
- package/dist/components/ui/selection-toolbar.d.ts +166 -0
- package/dist/components/ui/selection-toolbar.d.ts.map +1 -0
- package/dist/components/ui/selection-toolbar.js +139 -0
- package/dist/components/ui/sidebar.d.ts +29 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +35 -2
- package/dist/components/ui/signal-field.d.ts.map +1 -1
- package/dist/components/ui/signal-field.js +1 -1
- package/dist/components/ui/slider.d.ts +7 -0
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js +32 -1
- package/dist/components/ui/sparkline.d.ts +117 -0
- package/dist/components/ui/sparkline.d.ts.map +1 -0
- package/dist/components/ui/sparkline.js +113 -0
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner.js +13 -0
- package/dist/components/ui/split-button.d.ts +207 -0
- package/dist/components/ui/split-button.d.ts.map +1 -0
- package/dist/components/ui/split-button.js +75 -0
- package/dist/components/ui/stateful-table.d.ts +345 -0
- package/dist/components/ui/stateful-table.d.ts.map +1 -0
- package/dist/components/ui/stateful-table.js +169 -0
- package/dist/components/ui/status.d.ts +99 -0
- package/dist/components/ui/status.d.ts.map +1 -0
- package/dist/components/ui/status.js +63 -0
- package/dist/components/ui/stepper.d.ts +155 -0
- package/dist/components/ui/stepper.d.ts.map +1 -0
- package/dist/components/ui/stepper.js +83 -0
- package/dist/components/ui/steps.d.ts +141 -0
- package/dist/components/ui/steps.d.ts.map +1 -0
- package/dist/components/ui/steps.js +128 -0
- package/dist/components/ui/switch.d.ts +8 -0
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +12 -1
- package/dist/components/ui/tabs.d.ts +21 -2
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +23 -4
- package/dist/components/ui/tag-group.d.ts +154 -0
- package/dist/components/ui/tag-group.d.ts.map +1 -0
- package/dist/components/ui/tag-group.js +111 -0
- package/dist/components/ui/task-progress.d.ts +149 -0
- package/dist/components/ui/task-progress.d.ts.map +1 -0
- package/dist/components/ui/task-progress.js +110 -0
- package/dist/components/ui/text-format-toolbar.d.ts +211 -0
- package/dist/components/ui/text-format-toolbar.d.ts.map +1 -0
- package/dist/components/ui/text-format-toolbar.js +186 -0
- package/dist/components/ui/timeline.d.ts.map +1 -1
- package/dist/components/ui/timeline.js +10 -1
- package/dist/components/ui/toast.d.ts +32 -10
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +150 -47
- package/dist/components/ui/toggle-group.d.ts +14 -5
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +15 -1
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +9 -1
- package/dist/components/ui/tree.d.ts +8 -0
- package/dist/components/ui/tree.d.ts.map +1 -1
- package/dist/components/ui/tree.js +92 -13
- package/dist/components/ui/video-player.d.ts +236 -0
- package/dist/components/ui/video-player.d.ts.map +1 -0
- package/dist/components/ui/video-player.js +72 -0
- package/dist/fonts/inter-latin-400-italic.woff2 +0 -0
- package/dist/index.d.ts +112 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +72 -0
- package/dist/lib/utils.d.ts +29 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +35 -0
- package/dist/live/index.d.ts +10 -3
- package/dist/live/index.d.ts.map +1 -1
- package/dist/live/index.js +12 -3
- package/dist/live/run-stream-01/run-stream.js +4 -4
- package/dist/live/tool-ledger-01/index.d.ts +3 -0
- package/dist/live/tool-ledger-01/index.d.ts.map +1 -0
- package/dist/live/tool-ledger-01/index.js +1 -0
- package/dist/live/tool-ledger-01/tool-ledger.d.ts +348 -0
- package/dist/live/tool-ledger-01/tool-ledger.d.ts.map +1 -0
- package/dist/live/tool-ledger-01/tool-ledger.js +245 -0
- package/dist/pages/about-page/index.d.ts +306 -0
- package/dist/pages/about-page/index.d.ts.map +1 -0
- package/dist/pages/about-page/index.js +161 -0
- package/dist/pages/careers-page/index.d.ts +288 -0
- package/dist/pages/careers-page/index.d.ts.map +1 -0
- package/dist/pages/careers-page/index.js +182 -0
- package/dist/pages/changelog-page/index.d.ts +255 -0
- package/dist/pages/changelog-page/index.d.ts.map +1 -0
- package/dist/pages/changelog-page/index.js +86 -0
- package/dist/pages/contact-page/index.d.ts +261 -0
- package/dist/pages/contact-page/index.d.ts.map +1 -0
- package/dist/pages/contact-page/index.js +136 -0
- package/dist/pages/docs-shell/docs-shell.d.ts +8 -0
- package/dist/pages/docs-shell/docs-shell.d.ts.map +1 -1
- package/dist/pages/docs-shell/docs-shell.js +24 -7
- package/dist/pages/error-page/index.d.ts +188 -0
- package/dist/pages/error-page/index.d.ts.map +1 -0
- package/dist/pages/error-page/index.js +98 -0
- package/dist/pages/index.d.ts +10 -0
- package/dist/pages/index.d.ts.map +1 -1
- package/dist/pages/index.js +14 -0
- package/dist/pages/legal-page/index.d.ts +194 -0
- package/dist/pages/legal-page/index.d.ts.map +1 -0
- package/dist/pages/legal-page/index.js +99 -0
- package/dist/pages/onboarding-page/index.d.ts +199 -0
- package/dist/pages/onboarding-page/index.d.ts.map +1 -0
- package/dist/pages/onboarding-page/index.js +71 -0
- package/dist/pages/pricing-page/index.d.ts +286 -0
- package/dist/pages/pricing-page/index.d.ts.map +1 -0
- package/dist/pages/pricing-page/index.js +139 -0
- package/dist/pages/search-page/index.d.ts +305 -0
- package/dist/pages/search-page/index.d.ts.map +1 -0
- package/dist/pages/search-page/index.js +142 -0
- package/dist/pages/status-page/index.d.ts +366 -0
- package/dist/pages/status-page/index.d.ts.map +1 -0
- package/dist/pages/status-page/index.js +136 -0
- package/dist/styles.css +1003 -55
- package/package.json +9 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/reset-password-01/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAO3D,YAAY,EACV,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResetPassword01, default } from './reset-password.js';
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type HeadingLevel } from '../../components/ui/section.js';
|
|
3
|
+
/**
|
|
4
|
+
* The new secret, and the two sentences a reveal control has to be named with.
|
|
5
|
+
*
|
|
6
|
+
* **`revealLabel` and `hideLabel` are here and cannot be defaulted, for the reason
|
|
7
|
+
* `PasswordField` argues at length.** A reveal control that says one sentence in a
|
|
8
|
+
* product whose interface is another language looks localised, because the icon is
|
|
9
|
+
* the same everywhere and the half a screen reader user actually hears is the word
|
|
10
|
+
* this package would have invented.
|
|
11
|
+
*/
|
|
12
|
+
export type ResetPassword01Secret = {
|
|
13
|
+
/** The field's visible name, and the accessible name its control announces. */
|
|
14
|
+
label: string;
|
|
15
|
+
/** The accessible name of a reveal control while the secret is hidden. */
|
|
16
|
+
revealLabel: string;
|
|
17
|
+
/** The accessible name of a reveal control while the secret is showing. */
|
|
18
|
+
hideLabel: string;
|
|
19
|
+
/** The secret as the caller holds it. Refused without `onValueChange`. */
|
|
20
|
+
value?: string;
|
|
21
|
+
/** Called with the secret as the reader changes it. */
|
|
22
|
+
onValueChange?: (value: string) => void;
|
|
23
|
+
/**
|
|
24
|
+
* A line under the control.
|
|
25
|
+
*
|
|
26
|
+
* Replaced by `error` while the field is invalid rather than stacked under it, so
|
|
27
|
+
* the reader has one instruction at a time. That replacement is `PasswordField`'s
|
|
28
|
+
* own and this Block does not re-decide it.
|
|
29
|
+
*/
|
|
30
|
+
description?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* What is wrong with the entry, in the destructive token and announced as it
|
|
33
|
+
* appears. It also marks the control invalid.
|
|
34
|
+
*
|
|
35
|
+
* The caller's sentence, because whether a secret is acceptable and why is the
|
|
36
|
+
* caller's own policy. A product that says "That has been in three breaches" and a
|
|
37
|
+
* product that says "Add a number" are making different claims about their own
|
|
38
|
+
* rules, and neither is Prism's to make.
|
|
39
|
+
*/
|
|
40
|
+
error?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* How strong the secret is, in the caller's own words and on a number.
|
|
43
|
+
*
|
|
44
|
+
* **A function and not a `strengthLabel` string, and the reason is that the honest
|
|
45
|
+
* reading of a secret's strength changes as the reader types.** Four products rate
|
|
46
|
+
* one on a letter grade, one on a word, one on a count of character classes and one
|
|
47
|
+
* on a list of breached passwords, and the sentence a reader needs beside a
|
|
48
|
+
* four-character entry is not the sentence they need beside a twenty-character one.
|
|
49
|
+
* A string prop would be a single reading of that, frozen at the first render.
|
|
50
|
+
*
|
|
51
|
+
* The Block draws what is returned and nothing more: the `label` is the name of the
|
|
52
|
+
* grade and the `value` is read against the hundred-point scale `Meter` publishes.
|
|
53
|
+
* The number is the bar and the label is the reading, which is the same split
|
|
54
|
+
* `Status` argues for a dot and a sentence. The tone is left at the Meter's own
|
|
55
|
+
* neutral default, because a colour here would be a judgement about how bad a weak
|
|
56
|
+
* secret is in this product, and the words are where that judgement belongs.
|
|
57
|
+
*/
|
|
58
|
+
strength?: (value: string) => {
|
|
59
|
+
label: string;
|
|
60
|
+
value: number;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* The second entry, and the caller's own sentence about whether the two agree.
|
|
65
|
+
*
|
|
66
|
+
* **There is no `match` and no mismatch message in this type, and that absence is a
|
|
67
|
+
* decision.** Whether two entries are the same is the product's validation, the words
|
|
68
|
+
* beside a mismatch are its too, and a Block that compared them would be a second
|
|
69
|
+
* place a consumer has to keep the same rule in step with itself. The cost is named:
|
|
70
|
+
* a caller who passes no `confirm.error` gets a form that submits two different
|
|
71
|
+
* strings and finds out from its own transport, which is why `confirm` is required
|
|
72
|
+
* rather than optional on this Block.
|
|
73
|
+
*/
|
|
74
|
+
export type ResetPassword01Confirm = {
|
|
75
|
+
/** The field's visible name, and the accessible name its control announces. */
|
|
76
|
+
label: string;
|
|
77
|
+
/** The confirmation as the caller holds it. Refused without `onValueChange`. */
|
|
78
|
+
value?: string;
|
|
79
|
+
/** Called with the confirmation as the reader changes it. */
|
|
80
|
+
onValueChange?: (value: string) => void;
|
|
81
|
+
/**
|
|
82
|
+
* What is wrong with the confirmation, drawn in the destructive token and announced
|
|
83
|
+
* as it appears. It also marks the control invalid.
|
|
84
|
+
*
|
|
85
|
+
* This is where a mismatch belongs, and the sentence is the caller's because a
|
|
86
|
+
* product that says "Those do not match" and a product that says "You typed it
|
|
87
|
+
* differently the first time" are making different claims about the same fact.
|
|
88
|
+
*/
|
|
89
|
+
error?: ReactNode;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* The four things the caller's own request can be doing, named after what they select
|
|
93
|
+
* rather than after the field they fill.
|
|
94
|
+
*
|
|
95
|
+
* `done` is a destination rather than an outcome, which is why the Block treats it
|
|
96
|
+
* differently from `error`: a changed secret means the form has nothing left to ask
|
|
97
|
+
* for, while a refused request means the form is still the reader's next move.
|
|
98
|
+
*/
|
|
99
|
+
export type ResetPassword01Outcome = 'idle' | 'working' | 'done' | 'error';
|
|
100
|
+
/**
|
|
101
|
+
* The outcome of the caller's own request, as this Block draws it.
|
|
102
|
+
*
|
|
103
|
+
* A prop and never a state this Block writes, for the reason every Block in this
|
|
104
|
+
* family states: there is no sentence anywhere in this file, and the sentence a
|
|
105
|
+
* credential surface gets wrong is the one it ships itself.
|
|
106
|
+
*/
|
|
107
|
+
export type ResetPassword01Status = {
|
|
108
|
+
/** Which of the four the request is in. Read by the Block for three things only. */
|
|
109
|
+
state: ResetPassword01Outcome;
|
|
110
|
+
/** The words for that state, in the product's own voice. */
|
|
111
|
+
message: ReactNode;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* The state this screen spends most of its life in, which is the state a Block that
|
|
115
|
+
* forgot it would push into the consumer's error handling.
|
|
116
|
+
*
|
|
117
|
+
* A reset link has a short life, and the reader who followed one an hour later is the
|
|
118
|
+
* common case rather than the edge case. So the expiry is an arm this Block draws:
|
|
119
|
+
* the caller's message and the caller's way to ask for a new one. The alternative was
|
|
120
|
+
* a Block that renders a form regardless and lets the caller's server refuse it on
|
|
121
|
+
* submit, which is a screen that takes a reader's typing and then throws it away, and
|
|
122
|
+
* which leaves the product's own error boundary to render a sentence about a
|
|
123
|
+
* condition the design system could have named.
|
|
124
|
+
*/
|
|
125
|
+
export type ResetPassword01Expired = {
|
|
126
|
+
/** What the reader is told about the link they followed. */
|
|
127
|
+
message: ReactNode;
|
|
128
|
+
/** The words on the control that asks for a new link. */
|
|
129
|
+
requestLabel: string;
|
|
130
|
+
/** Called when the reader asks for a new link. */
|
|
131
|
+
onRequest: () => void;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* The props a ResetPassword01 takes. Every string in this Block is one of them.
|
|
135
|
+
*
|
|
136
|
+
* Two controls and nothing else, and the count is the design rather than a
|
|
137
|
+
* limitation: a reset screen that could ask for a second identifier has decided
|
|
138
|
+
* something about the caller's product, and the one thing it must never do is decide
|
|
139
|
+
* whether the first identifier was the right one.
|
|
140
|
+
*/
|
|
141
|
+
export type ResetPassword01Props = {
|
|
142
|
+
/** The short line above the title, usually which product this is. */
|
|
143
|
+
eyebrow?: ReactNode;
|
|
144
|
+
/**
|
|
145
|
+
* The heading.
|
|
146
|
+
*
|
|
147
|
+
* Required, because a credential surface with no heading is a form in a page, and a
|
|
148
|
+
* reader who arrived by following a link in their own inbox deserves to be told
|
|
149
|
+
* which product is asking before they choose a new secret.
|
|
150
|
+
*/
|
|
151
|
+
title: ReactNode;
|
|
152
|
+
/** One supporting line under the heading, for the part the title cannot carry. */
|
|
153
|
+
description?: ReactNode;
|
|
154
|
+
/**
|
|
155
|
+
* Called with the two entries, and the only thing this Block does with them.
|
|
156
|
+
*
|
|
157
|
+
* **Required, and the requirement is the whole of the Block's neutrality.** The
|
|
158
|
+
* Block stores nothing, verifies nothing, sends nothing and starts no session, so
|
|
159
|
+
* every question a reset raises is the caller's: whether the link was genuine,
|
|
160
|
+
* whether the new secret is acceptable, and whether the two entries agree.
|
|
161
|
+
*/
|
|
162
|
+
onSubmit: (value: {
|
|
163
|
+
secret: string;
|
|
164
|
+
confirm: string;
|
|
165
|
+
}) => void;
|
|
166
|
+
/** The new secret, its reveal control's two names and the caller's strength note. */
|
|
167
|
+
secret: ResetPassword01Secret;
|
|
168
|
+
/** The second entry and the caller's own sentence about a mismatch. */
|
|
169
|
+
confirm: ResetPassword01Confirm;
|
|
170
|
+
/** The words on the one control that submits. */
|
|
171
|
+
submitLabel: string;
|
|
172
|
+
/**
|
|
173
|
+
* Whether the caller's request is in flight.
|
|
174
|
+
*
|
|
175
|
+
* A prop and not read from `status`, because the two answer different questions:
|
|
176
|
+
* `submitting` is the control and `status.state` is the outcome.
|
|
177
|
+
*/
|
|
178
|
+
submitting?: boolean;
|
|
179
|
+
/** The outcome of the caller's request, drawn in a live region and announced. */
|
|
180
|
+
status?: ResetPassword01Status;
|
|
181
|
+
/**
|
|
182
|
+
* The state this link has expired in.
|
|
183
|
+
*
|
|
184
|
+
* Passing it takes both fields and the submit control away and draws the caller's
|
|
185
|
+
* message with the caller's way to ask for a new link. A Block without this arm
|
|
186
|
+
* would render a form to a reader who cannot use it, take what they typed, and hand
|
|
187
|
+
* the refusal to the consumer's own error handling, which is a runtime error in a
|
|
188
|
+
* code path the design system could have named.
|
|
189
|
+
*/
|
|
190
|
+
expired?: ResetPassword01Expired;
|
|
191
|
+
/** Heading level for the section heading. @defaultValue 'h2' */
|
|
192
|
+
headingLevel?: HeadingLevel;
|
|
193
|
+
/**
|
|
194
|
+
* Layout only, exactly as on every Block. Changing a Prism-owned visual property
|
|
195
|
+
* from here is prohibited.
|
|
196
|
+
*/
|
|
197
|
+
className?: string;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Two entries, one control, and the arm that says the link is dead.
|
|
201
|
+
*
|
|
202
|
+
* **The translation, because the pattern is not ours and the framing is.** A
|
|
203
|
+
* storefront publishes a reset-password card: a new password with an eye beside it, a
|
|
204
|
+
* repeat of it, a button and a line about what happens next, and its purpose is to get
|
|
205
|
+
* a shopper back into an account holding an order history. Prism's products observe a
|
|
206
|
+
* pipeline, capture a market, watch an estate and run agents, and a machine acting on
|
|
207
|
+
* behalf of a person is the whole subject, so this is the screen where somebody
|
|
208
|
+
* re-authorises the agent they are responsible for after the credential that let them
|
|
209
|
+
* in has gone. The composition is the storefront's and is unchanged: the secret with
|
|
210
|
+
* its reveal, the repeat, one control, one outcome line. What is different is the
|
|
211
|
+
* assumption the screen is built on, which is set out next.
|
|
212
|
+
*
|
|
213
|
+
* **What it assumes about the reader in front of it.** It assumes the link they
|
|
214
|
+
* followed is genuine, because the Block has no way to make it so and the caller has
|
|
215
|
+
* already decided to send it; it assumes they cannot get in without this form; it
|
|
216
|
+
* assumes they are in a hurry and may be on a machine they do not fully control. It
|
|
217
|
+
* refuses to assume they typed the two entries the same, that their new secret is
|
|
218
|
+
* acceptable, or that they read the frame before pressing anything.
|
|
219
|
+
*
|
|
220
|
+
* **`expired` is a first-class arm and it is the state this screen spends most of its
|
|
221
|
+
* life in.** A reset link has a short life and the reader who arrives after it is the
|
|
222
|
+
* common case, not the edge case. So the Block takes the state, draws the caller's
|
|
223
|
+
* message and the caller's way to ask for a new link, and takes the form away. The
|
|
224
|
+
* rejected alternative is the one every form-shaped Block would reach for by default:
|
|
225
|
+
* render the two fields regardless, let the caller's server refuse on submit, and let
|
|
226
|
+
* the consumer's own error boundary render the sentence. That is a runtime error in
|
|
227
|
+
* the consumer's code for a condition this design system can name, it happens to the
|
|
228
|
+
* reader the product should be kindest to, and it throws away what they typed. The
|
|
229
|
+
* cost of the arm is that the caller has to hold the state and pass it, and the payoff
|
|
230
|
+
* is that the most frequent thing this screen has to say is a thing the screen can
|
|
231
|
+
* say.
|
|
232
|
+
*
|
|
233
|
+
* **The two entries do not compare themselves, and the reason is that the comparison
|
|
234
|
+
* is the product's rule and the sentence is the product's words.** Whether two
|
|
235
|
+
* strings are equal is a one-line check that any Block could do, and doing it here
|
|
236
|
+
* would install a rule in four products at once and put a fixed sentence about a
|
|
237
|
+
* mismatch beside the field. A product that says "Those do not match" and a product
|
|
238
|
+
* that says "You typed it differently the first time" are making different claims
|
|
239
|
+
* about the same fact, and a product that has told a reader its secret cannot be
|
|
240
|
+
* recovered wants different words again. So `confirm.error` is the caller's and the
|
|
241
|
+
* Block draws none of its own. The cost is named rather than hidden: a caller who
|
|
242
|
+
* passes no `error` gets a form that submits two different strings and finds out
|
|
243
|
+
* from its own transport, which is why `confirm` is required rather than optional
|
|
244
|
+
* here.
|
|
245
|
+
*
|
|
246
|
+
* **The strength note is a caller's function and is drawn only once there is a
|
|
247
|
+
* secret in the field.** The function is the caller's because the honest reading of
|
|
248
|
+
* strength changes as the reader types, and a Block that drew a bar at the empty
|
|
249
|
+
* string would be putting a claim about a secret nobody has typed yet directly under
|
|
250
|
+
* a field the reader has not touched. A `Meter` and not a `Progress`, because a
|
|
251
|
+
* strength is a standing measurement bounded by a ceiling the caller knows rather than
|
|
252
|
+
* a task moving toward an end.
|
|
253
|
+
*
|
|
254
|
+
* **`autoComplete` is set to `new-password` here and that is the Block's one platform
|
|
255
|
+
* decision.** `PasswordField` defaults to `current-password`, which is correct for a
|
|
256
|
+
* sign-in and wrong for every other place a password appears, and the cost of getting
|
|
257
|
+
* it wrong is an account the browser then refuses to offer to sign into. A sign-in
|
|
258
|
+
* screen is the one exception and it composes this Block's field for a different
|
|
259
|
+
* purpose; this Block exists only to set a new secret, so the hint is not a caller
|
|
260
|
+
* fact here.
|
|
261
|
+
*
|
|
262
|
+
* **The confirmation field is not masked, and the reason is that the reader is
|
|
263
|
+
* transcribing a secret they can already reveal one field above.** Hiding the second
|
|
264
|
+
* entry buys nothing once the first is on the same screen with a reveal, and it costs
|
|
265
|
+
* the reader the one check that catches a transposition without a space.
|
|
266
|
+
*
|
|
267
|
+
* It is a client Component, and the directive is unconditional. `onSubmit` is a
|
|
268
|
+
* function, a function is a piece of state, and state is a client module: a server
|
|
269
|
+
* Component cannot hand an event handler to a `<form>`, so a caller rendering this
|
|
270
|
+
* from a server Component gets a form that submits and calls nothing. `PasswordField`
|
|
271
|
+
* needs the directive on its own account, so the cost of that boundary is already
|
|
272
|
+
* paid either way and the Block adds nothing to it.
|
|
273
|
+
*/
|
|
274
|
+
export declare function ResetPassword01({ eyebrow, title, description, onSubmit, secret, confirm, submitLabel, submitting, status, expired, headingLevel, className, }: ResetPassword01Props): import("react").JSX.Element;
|
|
275
|
+
export default ResetPassword01;
|
|
276
|
+
//# sourceMappingURL=reset-password.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../../../src/blocks/reset-password-01/reset-password.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AASvE,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAGxF;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAA;IACb,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAA;IACnB,2EAA2E;IAC3E,SAAS,EAAE,MAAM,CAAA;IACjB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uDAAuD;IACvD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAC/D,CAAA;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAA;IACb,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6DAA6D;IAC7D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;AAE1E;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,oFAAoF;IACpF,KAAK,EAAE,sBAAsB,CAAA;IAC7B,4DAA4D;IAC5D,OAAO,EAAE,SAAS,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,4DAA4D;IAC5D,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,YAAY,EAAE,MAAM,CAAA;IACpB,kDAAkD;IAClD,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,qEAAqE;IACrE,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;;;;;OAMG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB,kFAAkF;IAClF,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAC9D,qFAAqF;IACrF,MAAM,EAAE,qBAAqB,CAAA;IAC7B,uEAAuE;IACvE,OAAO,EAAE,sBAAsB,CAAA;IAC/B,iDAAiD;IACjD,WAAW,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iFAAiF;IACjF,MAAM,CAAC,EAAE,qBAAqB,CAAA;IAC9B;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAA;IAChC,gEAAgE;IAChE,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AA2DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,UAAkB,EAClB,MAAM,EACN,OAAO,EACP,YAAmB,EACnB,SAAS,GACV,EAAE,oBAAoB,+BAuMtB;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,175 @@
|
|
|
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 { Field, FieldError, FieldLabel } from '../../components/ui/field.js';
|
|
7
|
+
import { Input } from '../../components/ui/input.js';
|
|
8
|
+
import { LiveRegion } from '../../components/ui/live-region.js';
|
|
9
|
+
import { Meter } from '../../components/ui/meter.js';
|
|
10
|
+
import { PasswordField } from '../../components/ui/password-field.js';
|
|
11
|
+
import { Section, SectionHeading } from '../../components/ui/section.js';
|
|
12
|
+
import { cn } from '../../lib/utils.js';
|
|
13
|
+
/** Whether a caller passed a word that is not there. Read about the value, not the type. */
|
|
14
|
+
function blank(value) {
|
|
15
|
+
return value === undefined || value.trim() === '';
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The five refusals, checked before anything is drawn so a caller's mistake is one
|
|
19
|
+
* diagnostic in a console rather than a nameless control on the screen where a reader
|
|
20
|
+
* is about to choose the secret that opens their account.
|
|
21
|
+
*/
|
|
22
|
+
function assertReset(input) {
|
|
23
|
+
const { secret, confirm, status, expired } = input;
|
|
24
|
+
if (blank(secret.label) || blank(secret.revealLabel) || blank(secret.hideLabel)) {
|
|
25
|
+
throw new Error('ResetPassword01: the secret field is missing one of its three words. A reveal control with no name is ' +
|
|
26
|
+
'announced as a button, and it is the only control on this screen a keyboard reader reaches with Tab. ' +
|
|
27
|
+
'Pass label, revealLabel and hideLabel in your own language.');
|
|
28
|
+
}
|
|
29
|
+
if (blank(confirm.label)) {
|
|
30
|
+
throw new Error('ResetPassword01: the confirmation field declares no label, so its control would be announced as a text ' +
|
|
31
|
+
'field, which is the same name the secret field above it is announced by once the reveal control is out ' +
|
|
32
|
+
'of the way. Pass the words your product uses for a repeated secret.');
|
|
33
|
+
}
|
|
34
|
+
if (secret.value !== undefined && secret.onValueChange === undefined) {
|
|
35
|
+
throw new Error('ResetPassword01: secret.value was passed with no onValueChange, so the Block would hold a secret the ' +
|
|
36
|
+
'caller has lost track of and cannot clear. Pass the pair, or neither.');
|
|
37
|
+
}
|
|
38
|
+
if (confirm.value !== undefined && confirm.onValueChange === undefined) {
|
|
39
|
+
throw new Error('ResetPassword01: confirm.value was passed with no onValueChange, so the Block would hold a confirmation ' +
|
|
40
|
+
'the caller cannot clear when a reader gives up on the form. Pass the pair, or neither.');
|
|
41
|
+
}
|
|
42
|
+
if (status !== undefined && expired !== undefined && status.state !== 'error') {
|
|
43
|
+
throw new Error('ResetPassword01: an expired link was passed together with a status that is not a refusal, so the screen ' +
|
|
44
|
+
'would show the caller\'s confirmation for a link that is dead beside an arm saying it is dead. Draw one ' +
|
|
45
|
+
'or the other.');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Two entries, one control, and the arm that says the link is dead.
|
|
50
|
+
*
|
|
51
|
+
* **The translation, because the pattern is not ours and the framing is.** A
|
|
52
|
+
* storefront publishes a reset-password card: a new password with an eye beside it, a
|
|
53
|
+
* repeat of it, a button and a line about what happens next, and its purpose is to get
|
|
54
|
+
* a shopper back into an account holding an order history. Prism's products observe a
|
|
55
|
+
* pipeline, capture a market, watch an estate and run agents, and a machine acting on
|
|
56
|
+
* behalf of a person is the whole subject, so this is the screen where somebody
|
|
57
|
+
* re-authorises the agent they are responsible for after the credential that let them
|
|
58
|
+
* in has gone. The composition is the storefront's and is unchanged: the secret with
|
|
59
|
+
* its reveal, the repeat, one control, one outcome line. What is different is the
|
|
60
|
+
* assumption the screen is built on, which is set out next.
|
|
61
|
+
*
|
|
62
|
+
* **What it assumes about the reader in front of it.** It assumes the link they
|
|
63
|
+
* followed is genuine, because the Block has no way to make it so and the caller has
|
|
64
|
+
* already decided to send it; it assumes they cannot get in without this form; it
|
|
65
|
+
* assumes they are in a hurry and may be on a machine they do not fully control. It
|
|
66
|
+
* refuses to assume they typed the two entries the same, that their new secret is
|
|
67
|
+
* acceptable, or that they read the frame before pressing anything.
|
|
68
|
+
*
|
|
69
|
+
* **`expired` is a first-class arm and it is the state this screen spends most of its
|
|
70
|
+
* life in.** A reset link has a short life and the reader who arrives after it is the
|
|
71
|
+
* common case, not the edge case. So the Block takes the state, draws the caller's
|
|
72
|
+
* message and the caller's way to ask for a new link, and takes the form away. The
|
|
73
|
+
* rejected alternative is the one every form-shaped Block would reach for by default:
|
|
74
|
+
* render the two fields regardless, let the caller's server refuse on submit, and let
|
|
75
|
+
* the consumer's own error boundary render the sentence. That is a runtime error in
|
|
76
|
+
* the consumer's code for a condition this design system can name, it happens to the
|
|
77
|
+
* reader the product should be kindest to, and it throws away what they typed. The
|
|
78
|
+
* cost of the arm is that the caller has to hold the state and pass it, and the payoff
|
|
79
|
+
* is that the most frequent thing this screen has to say is a thing the screen can
|
|
80
|
+
* say.
|
|
81
|
+
*
|
|
82
|
+
* **The two entries do not compare themselves, and the reason is that the comparison
|
|
83
|
+
* is the product's rule and the sentence is the product's words.** Whether two
|
|
84
|
+
* strings are equal is a one-line check that any Block could do, and doing it here
|
|
85
|
+
* would install a rule in four products at once and put a fixed sentence about a
|
|
86
|
+
* mismatch beside the field. A product that says "Those do not match" and a product
|
|
87
|
+
* that says "You typed it differently the first time" are making different claims
|
|
88
|
+
* about the same fact, and a product that has told a reader its secret cannot be
|
|
89
|
+
* recovered wants different words again. So `confirm.error` is the caller's and the
|
|
90
|
+
* Block draws none of its own. The cost is named rather than hidden: a caller who
|
|
91
|
+
* passes no `error` gets a form that submits two different strings and finds out
|
|
92
|
+
* from its own transport, which is why `confirm` is required rather than optional
|
|
93
|
+
* here.
|
|
94
|
+
*
|
|
95
|
+
* **The strength note is a caller's function and is drawn only once there is a
|
|
96
|
+
* secret in the field.** The function is the caller's because the honest reading of
|
|
97
|
+
* strength changes as the reader types, and a Block that drew a bar at the empty
|
|
98
|
+
* string would be putting a claim about a secret nobody has typed yet directly under
|
|
99
|
+
* a field the reader has not touched. A `Meter` and not a `Progress`, because a
|
|
100
|
+
* strength is a standing measurement bounded by a ceiling the caller knows rather than
|
|
101
|
+
* a task moving toward an end.
|
|
102
|
+
*
|
|
103
|
+
* **`autoComplete` is set to `new-password` here and that is the Block's one platform
|
|
104
|
+
* decision.** `PasswordField` defaults to `current-password`, which is correct for a
|
|
105
|
+
* sign-in and wrong for every other place a password appears, and the cost of getting
|
|
106
|
+
* it wrong is an account the browser then refuses to offer to sign into. A sign-in
|
|
107
|
+
* screen is the one exception and it composes this Block's field for a different
|
|
108
|
+
* purpose; this Block exists only to set a new secret, so the hint is not a caller
|
|
109
|
+
* fact here.
|
|
110
|
+
*
|
|
111
|
+
* **The confirmation field is not masked, and the reason is that the reader is
|
|
112
|
+
* transcribing a secret they can already reveal one field above.** Hiding the second
|
|
113
|
+
* entry buys nothing once the first is on the same screen with a reveal, and it costs
|
|
114
|
+
* the reader the one check that catches a transposition without a space.
|
|
115
|
+
*
|
|
116
|
+
* It is a client Component, and the directive is unconditional. `onSubmit` is a
|
|
117
|
+
* function, a function is a piece of state, and state is a client module: a server
|
|
118
|
+
* Component cannot hand an event handler to a `<form>`, so a caller rendering this
|
|
119
|
+
* from a server Component gets a form that submits and calls nothing. `PasswordField`
|
|
120
|
+
* needs the directive on its own account, so the cost of that boundary is already
|
|
121
|
+
* paid either way and the Block adds nothing to it.
|
|
122
|
+
*/
|
|
123
|
+
export function ResetPassword01({ eyebrow, title, description, onSubmit, secret, confirm, submitLabel, submitting = false, status, expired, headingLevel = 'h2', className, }) {
|
|
124
|
+
assertReset({ secret, confirm, status, expired });
|
|
125
|
+
const generated = useId();
|
|
126
|
+
const confirmId = `${generated}-confirm`;
|
|
127
|
+
const confirmErrorId = `${generated}-confirm-error`;
|
|
128
|
+
/*
|
|
129
|
+
* Both entries live here rather than only in the caller. `PasswordField` is a
|
|
130
|
+
* controlled control because a reveal toggle has to show and hide the same value, so
|
|
131
|
+
* the secret has to exist before the reader types anything; and the confirmation is
|
|
132
|
+
* held for the same reason as the identifier in `ForgotPassword01`, which is that a
|
|
133
|
+
* value the caller cannot reach is a value the caller cannot clear. The Block
|
|
134
|
+
* reports every change to the caller when one was asked for, and adopts a `value`
|
|
135
|
+
* prop the moment it changes, which is the arrangement React documents for a prop
|
|
136
|
+
* that can change under a stateful child.
|
|
137
|
+
*/
|
|
138
|
+
const [entries, setEntries] = useState({ secret: secret.value ?? '', confirm: confirm.value ?? '' });
|
|
139
|
+
const [seen, setSeen] = useState({ secret: secret.value, confirm: confirm.value });
|
|
140
|
+
if (seen.secret !== secret.value || seen.confirm !== confirm.value) {
|
|
141
|
+
setSeen({ secret: secret.value, confirm: confirm.value });
|
|
142
|
+
setEntries({ secret: secret.value ?? '', confirm: confirm.value ?? '' });
|
|
143
|
+
}
|
|
144
|
+
const setSecret = (value) => {
|
|
145
|
+
setEntries((was) => ({ ...was, secret: value }));
|
|
146
|
+
secret.onValueChange?.(value);
|
|
147
|
+
};
|
|
148
|
+
const setConfirm = (value) => {
|
|
149
|
+
setEntries((was) => ({ ...was, confirm: value }));
|
|
150
|
+
confirm.onValueChange?.(value);
|
|
151
|
+
};
|
|
152
|
+
const working = submitting || status?.state === 'working';
|
|
153
|
+
const reading = secret.strength === undefined || entries.secret === '' ? undefined : secret.strength(entries.secret);
|
|
154
|
+
const handleSubmit = (event) => {
|
|
155
|
+
event.preventDefault();
|
|
156
|
+
onSubmit({ secret: entries.secret, confirm: entries.confirm });
|
|
157
|
+
};
|
|
158
|
+
const outcome = (_jsx(LiveRegion, { "data-slot": "reset-password-01-status", politeness: status?.state === 'error' ? 'assertive' : 'polite', busy: working, className: cn('text-sm', status?.state === 'error' ? 'text-destructive font-medium' : 'text-muted-foreground'), children: status?.message }));
|
|
159
|
+
return (_jsx(Section, { "data-slot": "reset-password-01", className: cn(className), children: _jsxs("div", { "data-slot": "reset-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": "reset-password-01-card", className: "max-w-measure-narrow gap-0 px-6", children: expired === undefined ? (status?.state === 'done' ? (
|
|
160
|
+
/*
|
|
161
|
+
* The destination arm. The secret has changed and the form has nothing
|
|
162
|
+
* left to ask for, so it goes rather than sitting there refusing. The
|
|
163
|
+
* message is the caller's, and the region below it is kept so a caller
|
|
164
|
+
* that wants to add a next step has somewhere to announce it.
|
|
165
|
+
*/
|
|
166
|
+
_jsx("div", { "data-slot": "reset-password-01-done", className: "flex w-full flex-col gap-4", children: _jsx("p", { "data-slot": "reset-password-01-done-message", className: "text-sm text-pretty", children: status?.message }) })) : (_jsxs("form", { "data-slot": "reset-password-01-form", onSubmit: handleSubmit, className: "flex w-full flex-col gap-5", children: [_jsxs("div", { "data-slot": "reset-password-01-secret", className: "flex flex-col gap-2.5", children: [_jsx(PasswordField, { value: entries.secret, onValueChange: setSecret, label: secret.label, description: secret.description, error: secret.error, revealLabel: secret.revealLabel, hideLabel: secret.hideLabel, autoComplete: "new-password" }), reading === undefined ? null : (_jsx(Meter, { "data-slot": "reset-password-01-strength", label: reading.label, value: reading.value }))] }), _jsxs(Field, { "data-slot": "reset-password-01-confirm", "data-field": "confirm", children: [_jsx(FieldLabel, { htmlFor: confirmId, children: confirm.label }), _jsx(Input, { id: confirmId, type: "text", value: entries.confirm, onChange: (event) => setConfirm(event.target.value), autoComplete: "new-password", required: true, "aria-invalid": confirm.error === undefined ? undefined : true, "aria-describedby": confirm.error === undefined ? undefined : confirmErrorId }), confirm.error === undefined ? null : (_jsx(FieldError, { id: confirmErrorId, children: confirm.error }))] }), _jsxs("div", { "data-slot": "reset-password-01-actions", className: "flex flex-col gap-3", children: [_jsx(Button, { "data-slot": "reset-password-01-submit", type: "submit", disabled: working, className: "w-full", children: submitLabel }), outcome] })] }))) : (
|
|
167
|
+
/*
|
|
168
|
+
* The expired arm, and the reason this Block is not `Login01` with a
|
|
169
|
+
* different title. The two fields are gone because a reader cannot use
|
|
170
|
+
* them, and the one control on screen is the caller's way out. The card
|
|
171
|
+
* stays so the page does not jump at the moment the reader is reading.
|
|
172
|
+
*/
|
|
173
|
+
_jsxs("div", { "data-slot": "reset-password-01-expired", className: "flex w-full flex-col gap-4", children: [_jsx("p", { "data-slot": "reset-password-01-expired-message", className: "text-sm text-pretty", children: expired.message }), _jsx(Button, { "data-slot": "reset-password-01-request", type: "button", variant: "outline", onClick: () => expired.onRequest(), disabled: working, className: "self-start", children: expired.requestLabel }), outcome] })) })] }) }));
|
|
174
|
+
}
|
|
175
|
+
export default ResetPassword01;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/resource-list-01/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAMzD,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResourceList01, default } from './resource-list.js';
|