@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,159 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
/** The props the Search field accepts. */
|
|
3
|
+
export interface SearchFieldProps {
|
|
4
|
+
/**
|
|
5
|
+
* The query, as the caller holds it.
|
|
6
|
+
*
|
|
7
|
+
* Required, and this is a controlled field because of it. See the note on the
|
|
8
|
+
* Component below for what an uncontrolled search field costs a consumer whose
|
|
9
|
+
* result set empties.
|
|
10
|
+
*/
|
|
11
|
+
value: string;
|
|
12
|
+
/**
|
|
13
|
+
* Called with the query as the reader changes it, and with an empty string
|
|
14
|
+
* when the clear control is pressed.
|
|
15
|
+
*
|
|
16
|
+
* Required, and required for the same reason `value` is: a search field that
|
|
17
|
+
* owns its own text cannot be emptied from outside itself.
|
|
18
|
+
*/
|
|
19
|
+
onValueChange: (value: string) => void;
|
|
20
|
+
/**
|
|
21
|
+
* The field's visible name, drawn above the control.
|
|
22
|
+
*
|
|
23
|
+
* Required, and it is a node rather than a string because a label is often
|
|
24
|
+
* more than a word: a count beside the name, or a piece of the page's own
|
|
25
|
+
* heading. The accessible name comes from the same node, through the label
|
|
26
|
+
* element, so what a reader sees and what a screen reader announces are one
|
|
27
|
+
* thing rather than two.
|
|
28
|
+
*/
|
|
29
|
+
label: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* What the field shows while it is empty.
|
|
32
|
+
*
|
|
33
|
+
* A hint and not a name: it disappears on the first keystroke, and it is
|
|
34
|
+
* drawn in the muted token so it reads as an instruction rather than as an
|
|
35
|
+
* answer.
|
|
36
|
+
*/
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
/**
|
|
39
|
+
* A short helper line under the control, announced with it.
|
|
40
|
+
*
|
|
41
|
+
* Replaced by `error` while the field is invalid rather than stacked under it,
|
|
42
|
+
* because the reader needs one instruction at a time and two lines of the same
|
|
43
|
+
* kind is one too many.
|
|
44
|
+
*/
|
|
45
|
+
description?: ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* What is wrong with the query, drawn in the destructive token and announced
|
|
48
|
+
* as it appears.
|
|
49
|
+
*
|
|
50
|
+
* Also marks the control `aria-invalid`, so the failure is a state and not
|
|
51
|
+
* only a colour. Say what to do next: the message is the caller's sentence
|
|
52
|
+
* about their own product.
|
|
53
|
+
*/
|
|
54
|
+
error?: ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* The accessible name of the control that empties the field.
|
|
57
|
+
*
|
|
58
|
+
* The clear control is drawn whenever this is passed and is not drawn at all
|
|
59
|
+
* when it is not, so the prop is what makes it exist rather than a label for
|
|
60
|
+
* something already on screen. The words are the caller's because a screen
|
|
61
|
+
* reader reads them, and "Clear" in a product in another language is a
|
|
62
|
+
* sentence this package does not get to write.
|
|
63
|
+
*/
|
|
64
|
+
clearLabel?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The caller's own line about what the query found, drawn under the control.
|
|
67
|
+
*
|
|
68
|
+
* A node and not a number: "12 results", "3 of 40 invoices" and "no matches
|
|
69
|
+
* yet" are three different sentences, and only the caller knows which one is
|
|
70
|
+
* true and what it should be called. The Component draws it, announces it and
|
|
71
|
+
* refuses to count anything itself.
|
|
72
|
+
*/
|
|
73
|
+
resultSummary?: ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* The caller's own control at the end of the field, such as a filter trigger.
|
|
76
|
+
*
|
|
77
|
+
* A slot and not a button, because the trigger is the caller's: it may be a
|
|
78
|
+
* menu, a popover, a second field or a toggle, and its name, its state and its
|
|
79
|
+
* focus ring belong to whatever Component the caller builds it from. The slot
|
|
80
|
+
* draws no fill and no border of its own for the reason set out below.
|
|
81
|
+
*/
|
|
82
|
+
trailing?: ReactNode;
|
|
83
|
+
/** Layout only. */
|
|
84
|
+
className?: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A labelled search input with a leading icon, an optional clear control and an
|
|
88
|
+
* optional slot for the caller's own filter trigger.
|
|
89
|
+
*
|
|
90
|
+
* **It is controlled, and that is the whole reason `onValueChange` is required.**
|
|
91
|
+
* An uncontrolled search field holds its own text, so a consumer whose result
|
|
92
|
+
* set empties has no way to clear it: nothing outside the input can reach the
|
|
93
|
+
* value, and a search box that cannot be cleared by the page is a search box the
|
|
94
|
+
* reader has to select-all and delete one character at a time. Making the field
|
|
95
|
+
* controlled costs the caller one piece of state and buys them the two things a
|
|
96
|
+
* results page needs and an uncontrolled field cannot give: clearing on demand,
|
|
97
|
+
* and clearing when the query no longer matches anything. The alternative, an
|
|
98
|
+
* optional `onValueChange` beside a `defaultValue`, was rejected because it is
|
|
99
|
+
* two Components' behaviour behind one name, and the half with no value is the
|
|
100
|
+
* half that cannot be emptied.
|
|
101
|
+
*
|
|
102
|
+
* **This Component does not own the search landmark.** A `<search>` element, or
|
|
103
|
+
* `role="search"`, names a region of the page rather than a control, and a page
|
|
104
|
+
* has two real search regions only when its two fields answer two different
|
|
105
|
+
* questions. A landmark on every field turns a screen reader's list of
|
|
106
|
+
* landmarks into a list of text boxes, and a landmark that is not a region
|
|
107
|
+
* teaches a reader that landmarks are decoration. Wrap the field yourself when
|
|
108
|
+
* the page really does have one search, and put the landmark on the container
|
|
109
|
+
* rather than on the field, so moving the field between containers does not drag
|
|
110
|
+
* the landmark with it.
|
|
111
|
+
*
|
|
112
|
+
* **The clear control is drawn whenever `clearLabel` is given, including while
|
|
113
|
+
* the field is empty.** The alternative was to draw it only once there was
|
|
114
|
+
* something to clear, which looks tidier until a reader tabs onto it and presses
|
|
115
|
+
* it: the control leaves the document under the focus and the focus falls to the
|
|
116
|
+
* body, which is a keyboard reader's dead end in the middle of a form. A control
|
|
117
|
+
* that is always where it was is worth the quiet space beside an empty field.
|
|
118
|
+
* It is the last thing in the group for the same reason, so a caller who adds a
|
|
119
|
+
* filter trigger in the trailing slot does not move the clear control out from
|
|
120
|
+
* under a reader who has learned where it is.
|
|
121
|
+
*
|
|
122
|
+
* **The leading icon says nothing and the trailing icon says everything.** The
|
|
123
|
+
* magnifier is `aria-hidden`, because the field is already named by its label and
|
|
124
|
+
* a second name for one control is a control announced twice. The clear control
|
|
125
|
+
* is the opposite case: an icon-only button with no name is announced as
|
|
126
|
+
* "button", so it takes the name the caller supplied and the mark is
|
|
127
|
+
* decoration. The platform's own clear mark on a search input is switched off for
|
|
128
|
+
* the same reason: it is a second mark doing the same job, it has no name, and
|
|
129
|
+
* a reader would be choosing between two of them.
|
|
130
|
+
*
|
|
131
|
+
* **The trailing slot draws no chrome of its own.** It is a place in the field
|
|
132
|
+
* for a control the caller composes, and Prism does not restyle what a caller
|
|
133
|
+
* composes. An addon wrapped around a caller's own trigger would put a grey fill
|
|
134
|
+
* and a second border inside one field, which is the seam `InputGroup` was drawn
|
|
135
|
+
* to remove, and a menu trigger that arrives already rounded would have to be
|
|
136
|
+
* un-rounded by the caller before it looked right. Bring the control; Prism
|
|
137
|
+
* holds the space for it.
|
|
138
|
+
*
|
|
139
|
+
* **The result line is a polite live region, and keeping it in the document is
|
|
140
|
+
* the caller's job.** A count that changes as the reader types is the only thing
|
|
141
|
+
* on screen that reports the consequence of typing, and nothing else says it, so
|
|
142
|
+
* the line is announced politely when it changes. It is drawn only once
|
|
143
|
+
* `resultSummary` is passed, so a caller who starts passing it after the first
|
|
144
|
+
* render brings the region into the document together with its content, which is
|
|
145
|
+
* the one case a live region is least reliable for. Pass an empty summary on the
|
|
146
|
+
* first paint and the region is already there waiting. Prism cannot do that
|
|
147
|
+
* itself, because Prism does not know whether a summary is ever coming.
|
|
148
|
+
*
|
|
149
|
+
* **It carries no directive.** It holds no state, so there is nothing of its own
|
|
150
|
+
* to reconcile, and the caller that owns `value` and `onValueChange` already
|
|
151
|
+
* lives in a client graph, which puts this module in the client graph with it.
|
|
152
|
+
* That is also the reminder: a caller who renders this from a server component
|
|
153
|
+
* gets a field whose typing never reaches their state, because a server
|
|
154
|
+
* component cannot hand an event handler down. A required `value` is a piece of
|
|
155
|
+
* state, and state is a client module.
|
|
156
|
+
*/
|
|
157
|
+
declare function SearchField({ value, onValueChange, label, placeholder, description, error, clearLabel, resultSummary, trailing, className, }: SearchFieldProps): import("react").JSX.Element;
|
|
158
|
+
export { SearchField };
|
|
159
|
+
//# sourceMappingURL=search-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-field.d.ts","sourceRoot":"","sources":["../../../src/components/ui/search-field.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAW7C,0CAA0C;AAC1C,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;OAMG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC;;;;;;;;OAQG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mBAAmB;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,iBAAS,WAAW,CAAC,EACnB,KAAK,EACL,aAAa,EACb,KAAK,EACL,WAAW,EACX,WAAW,EACX,KAAK,EACL,UAAU,EACV,aAAa,EACb,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,+BAsElB;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { SearchIcon, XIcon } from 'lucide-react';
|
|
3
|
+
import { useId } from 'react';
|
|
4
|
+
import { Field, FieldDescription, FieldError, FieldLabel } from './field.js';
|
|
5
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, } from './input-group.js';
|
|
6
|
+
import { cn } from '../../lib/utils.js';
|
|
7
|
+
/**
|
|
8
|
+
* A labelled search input with a leading icon, an optional clear control and an
|
|
9
|
+
* optional slot for the caller's own filter trigger.
|
|
10
|
+
*
|
|
11
|
+
* **It is controlled, and that is the whole reason `onValueChange` is required.**
|
|
12
|
+
* An uncontrolled search field holds its own text, so a consumer whose result
|
|
13
|
+
* set empties has no way to clear it: nothing outside the input can reach the
|
|
14
|
+
* value, and a search box that cannot be cleared by the page is a search box the
|
|
15
|
+
* reader has to select-all and delete one character at a time. Making the field
|
|
16
|
+
* controlled costs the caller one piece of state and buys them the two things a
|
|
17
|
+
* results page needs and an uncontrolled field cannot give: clearing on demand,
|
|
18
|
+
* and clearing when the query no longer matches anything. The alternative, an
|
|
19
|
+
* optional `onValueChange` beside a `defaultValue`, was rejected because it is
|
|
20
|
+
* two Components' behaviour behind one name, and the half with no value is the
|
|
21
|
+
* half that cannot be emptied.
|
|
22
|
+
*
|
|
23
|
+
* **This Component does not own the search landmark.** A `<search>` element, or
|
|
24
|
+
* `role="search"`, names a region of the page rather than a control, and a page
|
|
25
|
+
* has two real search regions only when its two fields answer two different
|
|
26
|
+
* questions. A landmark on every field turns a screen reader's list of
|
|
27
|
+
* landmarks into a list of text boxes, and a landmark that is not a region
|
|
28
|
+
* teaches a reader that landmarks are decoration. Wrap the field yourself when
|
|
29
|
+
* the page really does have one search, and put the landmark on the container
|
|
30
|
+
* rather than on the field, so moving the field between containers does not drag
|
|
31
|
+
* the landmark with it.
|
|
32
|
+
*
|
|
33
|
+
* **The clear control is drawn whenever `clearLabel` is given, including while
|
|
34
|
+
* the field is empty.** The alternative was to draw it only once there was
|
|
35
|
+
* something to clear, which looks tidier until a reader tabs onto it and presses
|
|
36
|
+
* it: the control leaves the document under the focus and the focus falls to the
|
|
37
|
+
* body, which is a keyboard reader's dead end in the middle of a form. A control
|
|
38
|
+
* that is always where it was is worth the quiet space beside an empty field.
|
|
39
|
+
* It is the last thing in the group for the same reason, so a caller who adds a
|
|
40
|
+
* filter trigger in the trailing slot does not move the clear control out from
|
|
41
|
+
* under a reader who has learned where it is.
|
|
42
|
+
*
|
|
43
|
+
* **The leading icon says nothing and the trailing icon says everything.** The
|
|
44
|
+
* magnifier is `aria-hidden`, because the field is already named by its label and
|
|
45
|
+
* a second name for one control is a control announced twice. The clear control
|
|
46
|
+
* is the opposite case: an icon-only button with no name is announced as
|
|
47
|
+
* "button", so it takes the name the caller supplied and the mark is
|
|
48
|
+
* decoration. The platform's own clear mark on a search input is switched off for
|
|
49
|
+
* the same reason: it is a second mark doing the same job, it has no name, and
|
|
50
|
+
* a reader would be choosing between two of them.
|
|
51
|
+
*
|
|
52
|
+
* **The trailing slot draws no chrome of its own.** It is a place in the field
|
|
53
|
+
* for a control the caller composes, and Prism does not restyle what a caller
|
|
54
|
+
* composes. An addon wrapped around a caller's own trigger would put a grey fill
|
|
55
|
+
* and a second border inside one field, which is the seam `InputGroup` was drawn
|
|
56
|
+
* to remove, and a menu trigger that arrives already rounded would have to be
|
|
57
|
+
* un-rounded by the caller before it looked right. Bring the control; Prism
|
|
58
|
+
* holds the space for it.
|
|
59
|
+
*
|
|
60
|
+
* **The result line is a polite live region, and keeping it in the document is
|
|
61
|
+
* the caller's job.** A count that changes as the reader types is the only thing
|
|
62
|
+
* on screen that reports the consequence of typing, and nothing else says it, so
|
|
63
|
+
* the line is announced politely when it changes. It is drawn only once
|
|
64
|
+
* `resultSummary` is passed, so a caller who starts passing it after the first
|
|
65
|
+
* render brings the region into the document together with its content, which is
|
|
66
|
+
* the one case a live region is least reliable for. Pass an empty summary on the
|
|
67
|
+
* first paint and the region is already there waiting. Prism cannot do that
|
|
68
|
+
* itself, because Prism does not know whether a summary is ever coming.
|
|
69
|
+
*
|
|
70
|
+
* **It carries no directive.** It holds no state, so there is nothing of its own
|
|
71
|
+
* to reconcile, and the caller that owns `value` and `onValueChange` already
|
|
72
|
+
* lives in a client graph, which puts this module in the client graph with it.
|
|
73
|
+
* That is also the reminder: a caller who renders this from a server component
|
|
74
|
+
* gets a field whose typing never reaches their state, because a server
|
|
75
|
+
* component cannot hand an event handler down. A required `value` is a piece of
|
|
76
|
+
* state, and state is a client module.
|
|
77
|
+
*/
|
|
78
|
+
function SearchField({ value, onValueChange, label, placeholder, description, error, clearLabel, resultSummary, trailing, className, }) {
|
|
79
|
+
const generated = useId();
|
|
80
|
+
const inputId = `${generated}-input`;
|
|
81
|
+
const invalid = error !== undefined;
|
|
82
|
+
const descriptionId = description === undefined ? undefined : `${generated}-description`;
|
|
83
|
+
const errorId = invalid ? `${generated}-error` : undefined;
|
|
84
|
+
// The error comes first when both are present, so the reader hears what is
|
|
85
|
+
// wrong before the background detail, which is the order the two are drawn in.
|
|
86
|
+
const describedBy = errorId === undefined
|
|
87
|
+
? descriptionId
|
|
88
|
+
: descriptionId === undefined
|
|
89
|
+
? errorId
|
|
90
|
+
: `${errorId} ${descriptionId}`;
|
|
91
|
+
return (_jsx("div", { "data-slot": "search-field", className: cn('flex w-full flex-col', className), children: _jsxs(Field, { children: [_jsx(FieldLabel, { htmlFor: inputId, children: label }), _jsxs(InputGroup, { children: [_jsx(InputGroupAddon, { position: "prefix", children: _jsx(SearchIcon, { className: "text-muted-foreground size-4", "aria-hidden": "true" }) }), _jsx(InputGroupInput, { id: inputId, type: "search", value: value, onChange: (event) => onValueChange(event.target.value), placeholder: placeholder, "aria-invalid": invalid || undefined, "aria-describedby": describedBy,
|
|
92
|
+
// WebKit and Blink draw their own clear mark on a search input, and
|
|
93
|
+
// they draw it with no name and no way to place it. Left alone it sits
|
|
94
|
+
// beside this Component's clear control, so a reader sees two marks
|
|
95
|
+
// that mean the same thing and only one of which has a name.
|
|
96
|
+
className: "[&::-webkit-search-cancel-button]:appearance-none" }), trailing === undefined ? null : (_jsx("div", { "data-slot": "search-field-trailing", className: "flex shrink-0 items-stretch", children: trailing })), clearLabel === undefined ? null : (_jsx(InputGroupButton, { "data-slot": "search-field-clear", "aria-label": clearLabel, onClick: () => onValueChange(''), children: _jsx(XIcon, { className: "size-4", "aria-hidden": "true" }) }))] }), invalid ? _jsx(FieldError, { id: errorId, children: error }) : null, descriptionId === undefined ? null : (_jsx(FieldDescription, { id: descriptionId, children: description })), resultSummary === undefined ? null : (_jsx("p", { "data-slot": "search-field-summary", "aria-live": "polite", className: "text-muted-foreground text-sm tabular-nums", children: resultSummary }))] }) }));
|
|
97
|
+
}
|
|
98
|
+
export { SearchField };
|
|
@@ -2,6 +2,21 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Container primitive. Every block composes its own section from this so vertical
|
|
4
4
|
* rhythm stays consistent across the catalog instead of being re-invented per block.
|
|
5
|
+
*
|
|
6
|
+
* The page column is `max-w-page` and there is one spelling of it. This line used
|
|
7
|
+
* to name the sixth step of Tailwind's own container namespace, which ships at
|
|
8
|
+
* the same 72rem, so nothing rendered differently and nothing failed; the two
|
|
9
|
+
* names drifted the moment `--container-page` was retuned, because a retune of the
|
|
10
|
+
* authored token moved every surface reaching it by name and left every surface
|
|
11
|
+
* reaching it by the other where it was, with no gate firing. That namespace is
|
|
12
|
+
* now closed in the token build, and `scripts/check-elevation-layout.mjs` reads
|
|
13
|
+
* the authored container names out of the token source so the retired spelling is
|
|
14
|
+
* a finding rather than a synonym.
|
|
15
|
+
*
|
|
16
|
+
* **The retired name is written here in prose and not as a class, on purpose.**
|
|
17
|
+
* Tailwind's extractor reads this file, comments included, so a utility quoted in
|
|
18
|
+
* a JSDoc block is a utility the shipped stylesheet emits. A record of a retired
|
|
19
|
+
* class written as a class is a second copy of the tree nobody edits.
|
|
5
20
|
*/
|
|
6
21
|
export declare function Section({ className, children, ...props }: React.ComponentProps<'section'>): import("react").JSX.Element;
|
|
7
22
|
/**
|
|
@@ -46,6 +61,22 @@ export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
|
46
61
|
* cards is already a document that has run out of levels.
|
|
47
62
|
*/
|
|
48
63
|
export declare function childLevel(level: HeadingLevel): HeadingLevel;
|
|
64
|
+
/**
|
|
65
|
+
* The size classes a heading at `level` renders at.
|
|
66
|
+
*
|
|
67
|
+
* Exported for the one Block that resolves its own heading tag on a filled
|
|
68
|
+
* surface rather than composing `SectionHeading`: `Cta01` cannot borrow this
|
|
69
|
+
* Component's markup, because its copy sits on a `bg-primary` panel where the
|
|
70
|
+
* muted description colour and `gap-4` are wrong, so it writes the element itself
|
|
71
|
+
* and used to write the size with it. Two answers to the same question is how the
|
|
72
|
+
* one-size defect reached a second surface, so it asks here rather than keeping a
|
|
73
|
+
* second table.
|
|
74
|
+
*
|
|
75
|
+
* The classes are the whole answer, `font-semibold`, `tracking-tight` and
|
|
76
|
+
* `text-balance` are not included, so a caller composes them onto the surface it
|
|
77
|
+
* owns and cannot inherit this Component's decisions by accident.
|
|
78
|
+
*/
|
|
79
|
+
export declare function headingSizeClass(level: HeadingLevel): string;
|
|
49
80
|
/**
|
|
50
81
|
* The heading a section opens with: an optional eyebrow, the title, an optional
|
|
51
82
|
* supporting line, and the level of the one heading it renders.
|
|
@@ -54,8 +85,66 @@ export declare function childLevel(level: HeadingLevel): HeadingLevel;
|
|
|
54
85
|
* container. `center` is right for a band that is only a heading, and `left` is
|
|
55
86
|
* right for a section with content under it, where a centred title above a
|
|
56
87
|
* left-aligned list reads as two unrelated pieces.
|
|
88
|
+
*
|
|
89
|
+
* **`as` decides the size as well as the tag, and the size is derived rather than
|
|
90
|
+
* passed.** `as` was already on every Block as `headingLevel` and `childLevel()`
|
|
91
|
+
* already existed to carry a level down a level, so the document decided where
|
|
92
|
+
* each heading sits in the outline and the visual size simply never followed it.
|
|
93
|
+
* One class string was written for all six levels, so a page `h1` and the `h2`
|
|
94
|
+
* sections under it came out byte-identical, and a landing page of a hero and six
|
|
95
|
+
* Blocks showed one `h1` and six section titles at 36 pixels with no hierarchy
|
|
96
|
+
* between what the page claims and what it elaborates. A consumer could not
|
|
97
|
+
* correct it: the size was hardcoded here, no Block exposed a way to change it,
|
|
98
|
+
* and restyling a catalogue item is what the no-override-path rule does not allow.
|
|
99
|
+
*
|
|
100
|
+
* **The table is the authored scale walked down one step per level, and it stops
|
|
101
|
+
* at the floor rather than running off the bottom.**
|
|
102
|
+
*
|
|
103
|
+
* | level | step | authored value | at `sm` | authored value |
|
|
104
|
+
* | --- | --- | --- | --- | --- |
|
|
105
|
+
* | `h1` | `text-5xl` | 3rem / 1 | `sm:text-6xl` | 3.75rem / 1 |
|
|
106
|
+
* | `h2` | `text-4xl` | 2.25rem / 1.111 | `sm:text-5xl` | 3rem / 1 |
|
|
107
|
+
* | `h3` | `text-3xl` | 1.875rem / 1.2 | `sm:text-4xl` | 2.25rem / 1.111 |
|
|
108
|
+
* | `h4` | `text-2xl` | 1.5rem / 1.333 | `sm:text-3xl` | 1.875rem / 1.2 |
|
|
109
|
+
* | `h5` | `text-xl` | 1.25rem / 1.4 | `sm:text-2xl` | 1.5rem / 1.333 |
|
|
110
|
+
* | `h6` | `text-lg` | 1.125rem / 1.556 | `sm:text-xl` | 1.25rem / 1.4 |
|
|
111
|
+
*
|
|
112
|
+
* **`h1` is Display and Display is the ceiling of the scale**, because that is
|
|
113
|
+
* the role `DESIGN.md` gives it: a page's own heading is the largest thing on the
|
|
114
|
+
* page. The two steps above `4xl` are authored rather than invented here, and they
|
|
115
|
+
* are authored as a pair rather than as one step, because every rung of this table
|
|
116
|
+
* is a pair: a base step and one step up at `sm`. A single new step would have made
|
|
117
|
+
* Display the one heading in the system that does not grow, which is a smaller
|
|
118
|
+
* defect than the one this table was written to remove and is still a defect.
|
|
119
|
+
* `5xl` is `4xl` times four thirds, which is the first gap in the group wider than
|
|
120
|
+
* any gap it already had, and `6xl` is `5xl` times five fourths. Nothing in the
|
|
121
|
+
* system goes above `6xl`, and no heading level steps above Display.
|
|
122
|
+
*
|
|
123
|
+
* **`h2` is one step below it, and `h2` is what almost every Block renders**,
|
|
124
|
+
* because a Block is composed under a heading the document already owns. That is
|
|
125
|
+
* the whole of what a consumer sees: a section title moves from 1.5rem to
|
|
126
|
+
* 2.25rem, and above `sm` from 1.875rem to 3rem.
|
|
127
|
+
*
|
|
128
|
+
* **The floor is `h6`, and the floor is `text-lg`.** `lg` is the deepest authored
|
|
129
|
+
* step that is not smaller than Body, and Body is 400 at 1.125rem, so a heading
|
|
130
|
+
* that stepped one further would render smaller than the copy it introduces and
|
|
131
|
+
* read as a caption rather than as a heading. The table has six rows and the scale
|
|
132
|
+
* has exactly six steps at or above Body, so the ladder lands on the floor rather
|
|
133
|
+
* than running off the bottom of it: every level now holds a step of its own, where
|
|
134
|
+
* before `h4` through `h6` shared one. `childLevel()` clamps at `h6` for the same
|
|
135
|
+
* reason the table stops there. A heading at the floor is still a heading: it keeps
|
|
136
|
+
* `font-semibold`, keeps `tracking-tight`, and keeps `text-balance` at every step,
|
|
137
|
+
* so weight and tracking tell it apart from body copy where size no longer can.
|
|
138
|
+
*
|
|
139
|
+
* So a consumer gets the hierarchy by passing the level it was already passing,
|
|
140
|
+
* and a Block moved from an `h2` section into an `h3` one carries its size with
|
|
141
|
+
* it, which is what `headingLevel` was introduced to do.
|
|
142
|
+
*
|
|
143
|
+
* **`Prose` walks this ladder from one rung down**, because its measure is the
|
|
144
|
+
* reading measure rather than the page column and the Display step does not fit a
|
|
145
|
+
* 42rem column. See `Prose`.
|
|
57
146
|
*/
|
|
58
|
-
export declare function SectionHeading({ index, eyebrow, title, as: Heading, description, align, className, }: {
|
|
147
|
+
export declare function SectionHeading({ index, eyebrow, title, as: Heading, description, align, id, className, }: {
|
|
59
148
|
/**
|
|
60
149
|
* A short ordinal for the section: "01", "02", "7". It is rendered in the mono
|
|
61
150
|
* face above the title, because a section's position in a sequence is machine
|
|
@@ -79,8 +168,28 @@ export declare function SectionHeading({ index, eyebrow, title, as: Heading, des
|
|
|
79
168
|
* A page that renders a block as its primary heading passes `as="h1"`; a
|
|
80
169
|
* document with no `h1` gives screen-reader and search engines no top-level
|
|
81
170
|
* entry point.
|
|
171
|
+
*
|
|
172
|
+
* It also picks the size, and there is no prop for the size. The table is in
|
|
173
|
+
* this Component's JSDoc above: `h1` at 3rem, `h2` at 2.25rem, `h3` at
|
|
174
|
+
* 1.875rem, `h4` at 1.5rem, `h5` at 1.25rem and `h6` at 1.125rem, each
|
|
175
|
+
* stepping up one authored step above `sm`. Passing a deeper level is
|
|
176
|
+
* therefore a typographic decision as well as an outline one, which is the
|
|
177
|
+
* point: a Block composed one level deeper should read as one level deeper.
|
|
82
178
|
*/
|
|
83
179
|
as?: HeadingLevel;
|
|
180
|
+
/**
|
|
181
|
+
* The heading's own id, so something else on the page can name itself from it.
|
|
182
|
+
*
|
|
183
|
+
* A prop rather than a generated id because the reference is the point: a caller
|
|
184
|
+
* that draws a table, a list or a region under this heading and wants that thing
|
|
185
|
+
* to carry an accessible name needs a handle on this element, and an id nobody
|
|
186
|
+
* can write down is no handle. `aria-labelledby` on the table is the case that
|
|
187
|
+
* made it necessary, and it is the arrangement `ChoiceCard` uses for its legend.
|
|
188
|
+
*
|
|
189
|
+
* Not generated here, because a generated id cannot be referred to and an unused
|
|
190
|
+
* one on every section heading is noise in the markup.
|
|
191
|
+
*/
|
|
192
|
+
id?: string;
|
|
84
193
|
className?: string;
|
|
85
194
|
}): import("react").JSX.Element;
|
|
86
195
|
//# sourceMappingURL=section.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/components/ui/section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/components/ui/section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,+BAWjC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAKlE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAG5D;AAoBD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAE5D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,OAAO,EACP,KAAK,EACL,EAAE,EAAE,OAAc,EAClB,WAAW,EACX,KAAgB,EAChB,EAAE,EACF,SAAS,GACV,EAAE;IACD;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IACzB;;;;;;;;;;;;OAYG;IACH,EAAE,CAAC,EAAE,YAAY,CAAA;IACjB;;;;;;;;;;;OAWG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,+BAgCA"}
|
|
@@ -3,9 +3,24 @@ import { cn } from '../../lib/utils.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* Container primitive. Every block composes its own section from this so vertical
|
|
5
5
|
* rhythm stays consistent across the catalog instead of being re-invented per block.
|
|
6
|
+
*
|
|
7
|
+
* The page column is `max-w-page` and there is one spelling of it. This line used
|
|
8
|
+
* to name the sixth step of Tailwind's own container namespace, which ships at
|
|
9
|
+
* the same 72rem, so nothing rendered differently and nothing failed; the two
|
|
10
|
+
* names drifted the moment `--container-page` was retuned, because a retune of the
|
|
11
|
+
* authored token moved every surface reaching it by name and left every surface
|
|
12
|
+
* reaching it by the other where it was, with no gate firing. That namespace is
|
|
13
|
+
* now closed in the token build, and `scripts/check-elevation-layout.mjs` reads
|
|
14
|
+
* the authored container names out of the token source so the retired spelling is
|
|
15
|
+
* a finding rather than a synonym.
|
|
16
|
+
*
|
|
17
|
+
* **The retired name is written here in prose and not as a class, on purpose.**
|
|
18
|
+
* Tailwind's extractor reads this file, comments included, so a utility quoted in
|
|
19
|
+
* a JSDoc block is a utility the shipped stylesheet emits. A record of a retired
|
|
20
|
+
* class written as a class is a second copy of the tree nobody edits.
|
|
6
21
|
*/
|
|
7
22
|
export function Section({ className, children, ...props }) {
|
|
8
|
-
return (_jsx("section", { className: cn('py-16 sm:py-24', className), ...props, children: _jsx("div", { className: "mx-auto w-full max-w-
|
|
23
|
+
return (_jsx("section", { className: cn('py-16 sm:py-24', className), ...props, children: _jsx("div", { className: "mx-auto w-full max-w-page px-6 lg:px-8", children: children }) }));
|
|
9
24
|
}
|
|
10
25
|
/** The six levels in outline order, so a level can be stepped rather than compared. */
|
|
11
26
|
const LEVELS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
@@ -38,6 +53,41 @@ export function childLevel(level) {
|
|
|
38
53
|
const at = LEVELS.indexOf(level);
|
|
39
54
|
return LEVELS[Math.min(at + 1, LEVELS.length - 1)];
|
|
40
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* The step of the authored type scale each heading level renders at.
|
|
58
|
+
*
|
|
59
|
+
* Private, and read through `headingSizeClass`, so there is one list and a caller
|
|
60
|
+
* cannot add a step to it. The table and the reasoning behind it are on
|
|
61
|
+
* `SectionHeading`, which is the documentation source the declaration build
|
|
62
|
+
* preserves and the corpus reads, and `scripts/check-heading-scale.mjs` holds the
|
|
63
|
+
* two copies in step.
|
|
64
|
+
*/
|
|
65
|
+
const HEADING_SIZE = {
|
|
66
|
+
h1: 'text-5xl sm:text-6xl',
|
|
67
|
+
h2: 'text-4xl sm:text-5xl',
|
|
68
|
+
h3: 'text-3xl sm:text-4xl',
|
|
69
|
+
h4: 'text-2xl sm:text-3xl',
|
|
70
|
+
h5: 'text-xl sm:text-2xl',
|
|
71
|
+
h6: 'text-lg sm:text-xl',
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* The size classes a heading at `level` renders at.
|
|
75
|
+
*
|
|
76
|
+
* Exported for the one Block that resolves its own heading tag on a filled
|
|
77
|
+
* surface rather than composing `SectionHeading`: `Cta01` cannot borrow this
|
|
78
|
+
* Component's markup, because its copy sits on a `bg-primary` panel where the
|
|
79
|
+
* muted description colour and `gap-4` are wrong, so it writes the element itself
|
|
80
|
+
* and used to write the size with it. Two answers to the same question is how the
|
|
81
|
+
* one-size defect reached a second surface, so it asks here rather than keeping a
|
|
82
|
+
* second table.
|
|
83
|
+
*
|
|
84
|
+
* The classes are the whole answer, `font-semibold`, `tracking-tight` and
|
|
85
|
+
* `text-balance` are not included, so a caller composes them onto the surface it
|
|
86
|
+
* owns and cannot inherit this Component's decisions by accident.
|
|
87
|
+
*/
|
|
88
|
+
export function headingSizeClass(level) {
|
|
89
|
+
return HEADING_SIZE[level];
|
|
90
|
+
}
|
|
41
91
|
/**
|
|
42
92
|
* The heading a section opens with: an optional eyebrow, the title, an optional
|
|
43
93
|
* supporting line, and the level of the one heading it renders.
|
|
@@ -46,7 +96,65 @@ export function childLevel(level) {
|
|
|
46
96
|
* container. `center` is right for a band that is only a heading, and `left` is
|
|
47
97
|
* right for a section with content under it, where a centred title above a
|
|
48
98
|
* left-aligned list reads as two unrelated pieces.
|
|
99
|
+
*
|
|
100
|
+
* **`as` decides the size as well as the tag, and the size is derived rather than
|
|
101
|
+
* passed.** `as` was already on every Block as `headingLevel` and `childLevel()`
|
|
102
|
+
* already existed to carry a level down a level, so the document decided where
|
|
103
|
+
* each heading sits in the outline and the visual size simply never followed it.
|
|
104
|
+
* One class string was written for all six levels, so a page `h1` and the `h2`
|
|
105
|
+
* sections under it came out byte-identical, and a landing page of a hero and six
|
|
106
|
+
* Blocks showed one `h1` and six section titles at 36 pixels with no hierarchy
|
|
107
|
+
* between what the page claims and what it elaborates. A consumer could not
|
|
108
|
+
* correct it: the size was hardcoded here, no Block exposed a way to change it,
|
|
109
|
+
* and restyling a catalogue item is what the no-override-path rule does not allow.
|
|
110
|
+
*
|
|
111
|
+
* **The table is the authored scale walked down one step per level, and it stops
|
|
112
|
+
* at the floor rather than running off the bottom.**
|
|
113
|
+
*
|
|
114
|
+
* | level | step | authored value | at `sm` | authored value |
|
|
115
|
+
* | --- | --- | --- | --- | --- |
|
|
116
|
+
* | `h1` | `text-5xl` | 3rem / 1 | `sm:text-6xl` | 3.75rem / 1 |
|
|
117
|
+
* | `h2` | `text-4xl` | 2.25rem / 1.111 | `sm:text-5xl` | 3rem / 1 |
|
|
118
|
+
* | `h3` | `text-3xl` | 1.875rem / 1.2 | `sm:text-4xl` | 2.25rem / 1.111 |
|
|
119
|
+
* | `h4` | `text-2xl` | 1.5rem / 1.333 | `sm:text-3xl` | 1.875rem / 1.2 |
|
|
120
|
+
* | `h5` | `text-xl` | 1.25rem / 1.4 | `sm:text-2xl` | 1.5rem / 1.333 |
|
|
121
|
+
* | `h6` | `text-lg` | 1.125rem / 1.556 | `sm:text-xl` | 1.25rem / 1.4 |
|
|
122
|
+
*
|
|
123
|
+
* **`h1` is Display and Display is the ceiling of the scale**, because that is
|
|
124
|
+
* the role `DESIGN.md` gives it: a page's own heading is the largest thing on the
|
|
125
|
+
* page. The two steps above `4xl` are authored rather than invented here, and they
|
|
126
|
+
* are authored as a pair rather than as one step, because every rung of this table
|
|
127
|
+
* is a pair: a base step and one step up at `sm`. A single new step would have made
|
|
128
|
+
* Display the one heading in the system that does not grow, which is a smaller
|
|
129
|
+
* defect than the one this table was written to remove and is still a defect.
|
|
130
|
+
* `5xl` is `4xl` times four thirds, which is the first gap in the group wider than
|
|
131
|
+
* any gap it already had, and `6xl` is `5xl` times five fourths. Nothing in the
|
|
132
|
+
* system goes above `6xl`, and no heading level steps above Display.
|
|
133
|
+
*
|
|
134
|
+
* **`h2` is one step below it, and `h2` is what almost every Block renders**,
|
|
135
|
+
* because a Block is composed under a heading the document already owns. That is
|
|
136
|
+
* the whole of what a consumer sees: a section title moves from 1.5rem to
|
|
137
|
+
* 2.25rem, and above `sm` from 1.875rem to 3rem.
|
|
138
|
+
*
|
|
139
|
+
* **The floor is `h6`, and the floor is `text-lg`.** `lg` is the deepest authored
|
|
140
|
+
* step that is not smaller than Body, and Body is 400 at 1.125rem, so a heading
|
|
141
|
+
* that stepped one further would render smaller than the copy it introduces and
|
|
142
|
+
* read as a caption rather than as a heading. The table has six rows and the scale
|
|
143
|
+
* has exactly six steps at or above Body, so the ladder lands on the floor rather
|
|
144
|
+
* than running off the bottom of it: every level now holds a step of its own, where
|
|
145
|
+
* before `h4` through `h6` shared one. `childLevel()` clamps at `h6` for the same
|
|
146
|
+
* reason the table stops there. A heading at the floor is still a heading: it keeps
|
|
147
|
+
* `font-semibold`, keeps `tracking-tight`, and keeps `text-balance` at every step,
|
|
148
|
+
* so weight and tracking tell it apart from body copy where size no longer can.
|
|
149
|
+
*
|
|
150
|
+
* So a consumer gets the hierarchy by passing the level it was already passing,
|
|
151
|
+
* and a Block moved from an `h2` section into an `h3` one carries its size with
|
|
152
|
+
* it, which is what `headingLevel` was introduced to do.
|
|
153
|
+
*
|
|
154
|
+
* **`Prose` walks this ladder from one rung down**, because its measure is the
|
|
155
|
+
* reading measure rather than the page column and the Display step does not fit a
|
|
156
|
+
* 42rem column. See `Prose`.
|
|
49
157
|
*/
|
|
50
|
-
export function SectionHeading({ index, eyebrow, title, as: Heading = 'h2', description, align = 'center', className, }) {
|
|
51
|
-
return (_jsxs("div", { className: cn('flex flex-col gap-4', align === 'center' ? 'items-center text-center' : 'items-start text-left', className), children: [index ? (_jsx("span", { className: "text-muted-foreground font-mono text-xs font-normal tracking-normal", children: index })) : null, eyebrow ? (_jsx("span", { className: "text-muted-foreground text-sm font-medium tracking-wide uppercase", children: eyebrow })) : null, _jsx(Heading, { className:
|
|
158
|
+
export function SectionHeading({ index, eyebrow, title, as: Heading = 'h2', description, align = 'center', id, className, }) {
|
|
159
|
+
return (_jsxs("div", { className: cn('flex flex-col gap-4', align === 'center' ? 'items-center text-center' : 'items-start text-left', className), children: [index ? (_jsx("span", { className: "text-muted-foreground font-mono text-xs font-normal tracking-normal", children: index })) : null, eyebrow ? (_jsx("span", { className: "text-muted-foreground text-sm font-medium tracking-wide uppercase", children: eyebrow })) : null, _jsx(Heading, { id: id, className: cn('font-semibold tracking-tight text-balance', headingSizeClass(Heading)), children: title }), description ? (_jsx("p", { className: "text-muted-foreground max-w-measure text-lg text-pretty", children: description })) : null] }));
|
|
52
160
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"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
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"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"}
|
|
@@ -18,7 +18,15 @@ function Select({ ...props }) {
|
|
|
18
18
|
}
|
|
19
19
|
/** The button that shows the selected value and opens the list. */
|
|
20
20
|
function SelectTrigger({ className, size = 'default', children, ...props }) {
|
|
21
|
-
return (_jsxs(SelectPrimitive.Trigger, { "data-slot": "select-trigger", className: cn('border-input bg-background shadow-xs flex w-full items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm outline-none', 'transition-[color,box-shadow,border-color] duration-fast ease-out', 'data-[popup-open]:border-ring focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-[3px]', 'aria-invalid:border-destructive aria-invalid:ring-destructive/20', 'disabled:cursor-not-allowed disabled:opacity-50', 'data-[placeholder]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
|
21
|
+
return (_jsxs(SelectPrimitive.Trigger, { "data-slot": "select-trigger", className: cn('border-input bg-background shadow-xs flex w-full items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm outline-none', 'transition-[color,box-shadow,border-color] duration-fast ease-out', 'data-[popup-open]:border-ring focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-[3px]', 'aria-invalid:border-destructive aria-invalid:ring-destructive/20', 'disabled:cursor-not-allowed disabled:opacity-50', 'data-[placeholder]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
|
22
|
+
// The coarse-pointer floor, as a step. A select trigger opens a popup and is a
|
|
23
|
+
// button rather than a text field: it has no caret, takes no typed input, and its
|
|
24
|
+
// job is to be pressed. It is `w-full`, so only the height was ever short, and
|
|
25
|
+
// growing it adds eight pixels to every field a caller put it in on a phone,
|
|
26
|
+
// which is what the platform's own selects cost. A band was rejected because the
|
|
27
|
+
// trigger's drawn size is content the caller sized, not a shape the design owns.
|
|
28
|
+
// See DESIGN.md, The coarse-pointer floor.
|
|
29
|
+
'pointer-coarse:h-11', size === 'sm' ? 'h-8' : 'h-9', className), ...props, children: [children, _jsx(SelectPrimitive.Icon, { className: "text-muted-foreground", children: _jsx(ChevronDownIcon, { className: "size-4" }) })] }));
|
|
22
30
|
}
|
|
23
31
|
/** The selected value, or a placeholder while none is chosen. */
|
|
24
32
|
function SelectValue({ className, ...props }) {
|