@nanisoft/prism-ui 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES.md +22 -7
- package/dist/.tsbuildinfo +1 -1
- package/dist/blocks/about-01/about.d.ts +296 -0
- package/dist/blocks/about-01/about.d.ts.map +1 -0
- package/dist/blocks/about-01/about.js +103 -0
- package/dist/blocks/about-01/index.d.ts +3 -0
- package/dist/blocks/about-01/index.d.ts.map +1 -0
- package/dist/blocks/about-01/index.js +1 -0
- package/dist/blocks/accept-invite-01/accept-invite.d.ts +324 -0
- package/dist/blocks/accept-invite-01/accept-invite.d.ts.map +1 -0
- package/dist/blocks/accept-invite-01/accept-invite.js +230 -0
- package/dist/blocks/accept-invite-01/index.d.ts +3 -0
- package/dist/blocks/accept-invite-01/index.d.ts.map +1 -0
- package/dist/blocks/accept-invite-01/index.js +1 -0
- package/dist/blocks/account-01/account-01.d.ts +393 -0
- package/dist/blocks/account-01/account-01.d.ts.map +1 -0
- package/dist/blocks/account-01/account-01.js +215 -0
- package/dist/blocks/account-01/index.d.ts +3 -0
- package/dist/blocks/account-01/index.d.ts.map +1 -0
- package/dist/blocks/account-01/index.js +1 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.d.ts +271 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.d.ts.map +1 -0
- package/dist/blocks/activity-feed-01/activity-feed-01.js +185 -0
- package/dist/blocks/activity-feed-01/index.d.ts +3 -0
- package/dist/blocks/activity-feed-01/index.d.ts.map +1 -0
- package/dist/blocks/activity-feed-01/index.js +1 -0
- package/dist/blocks/address-book-01/address-book-01.d.ts +312 -0
- package/dist/blocks/address-book-01/address-book-01.d.ts.map +1 -0
- package/dist/blocks/address-book-01/address-book-01.js +233 -0
- package/dist/blocks/address-book-01/index.d.ts +3 -0
- package/dist/blocks/address-book-01/index.d.ts.map +1 -0
- package/dist/blocks/address-book-01/index.js +1 -0
- package/dist/blocks/audit-log-01/audit-log-01.d.ts +333 -0
- package/dist/blocks/audit-log-01/audit-log-01.d.ts.map +1 -0
- package/dist/blocks/audit-log-01/audit-log-01.js +211 -0
- package/dist/blocks/audit-log-01/index.d.ts +3 -0
- package/dist/blocks/audit-log-01/index.d.ts.map +1 -0
- package/dist/blocks/audit-log-01/index.js +1 -0
- package/dist/blocks/auth-form-01/auth-form.d.ts +40 -1
- package/dist/blocks/auth-form-01/auth-form.d.ts.map +1 -1
- package/dist/blocks/auth-form-01/auth-form.js +26 -3
- package/dist/blocks/awards-01/awards.d.ts +156 -0
- package/dist/blocks/awards-01/awards.d.ts.map +1 -0
- package/dist/blocks/awards-01/awards.js +102 -0
- package/dist/blocks/awards-01/index.d.ts +3 -0
- package/dist/blocks/awards-01/index.d.ts.map +1 -0
- package/dist/blocks/awards-01/index.js +1 -0
- package/dist/blocks/backdrop-01/backdrop.d.ts +268 -0
- package/dist/blocks/backdrop-01/backdrop.d.ts.map +1 -0
- package/dist/blocks/backdrop-01/backdrop.js +170 -0
- package/dist/blocks/backdrop-01/index.d.ts +3 -0
- package/dist/blocks/backdrop-01/index.d.ts.map +1 -0
- package/dist/blocks/backdrop-01/index.js +1 -0
- package/dist/blocks/bento-01/bento-01.d.ts +136 -0
- package/dist/blocks/bento-01/bento-01.d.ts.map +1 -0
- package/dist/blocks/bento-01/bento-01.js +97 -0
- package/dist/blocks/bento-01/index.d.ts +3 -0
- package/dist/blocks/bento-01/index.d.ts.map +1 -0
- package/dist/blocks/bento-01/index.js +1 -0
- package/dist/blocks/billing-source-01/billing-source-01.d.ts +379 -0
- package/dist/blocks/billing-source-01/billing-source-01.d.ts.map +1 -0
- package/dist/blocks/billing-source-01/billing-source-01.js +222 -0
- package/dist/blocks/billing-source-01/index.d.ts +3 -0
- package/dist/blocks/billing-source-01/index.d.ts.map +1 -0
- package/dist/blocks/billing-source-01/index.js +1 -0
- package/dist/blocks/bundle-01/bundle.d.ts +387 -0
- package/dist/blocks/bundle-01/bundle.d.ts.map +1 -0
- package/dist/blocks/bundle-01/bundle.js +153 -0
- package/dist/blocks/bundle-01/index.d.ts +3 -0
- package/dist/blocks/bundle-01/index.d.ts.map +1 -0
- package/dist/blocks/bundle-01/index.js +1 -0
- package/dist/blocks/calendar-01/calendar.d.ts +251 -0
- package/dist/blocks/calendar-01/calendar.d.ts.map +1 -0
- package/dist/blocks/calendar-01/calendar.js +191 -0
- package/dist/blocks/calendar-01/index.d.ts +3 -0
- package/dist/blocks/calendar-01/index.d.ts.map +1 -0
- package/dist/blocks/calendar-01/index.js +1 -0
- package/dist/blocks/capacity-01/capacity.d.ts +363 -0
- package/dist/blocks/capacity-01/capacity.d.ts.map +1 -0
- package/dist/blocks/capacity-01/capacity.js +208 -0
- package/dist/blocks/capacity-01/index.d.ts +3 -0
- package/dist/blocks/capacity-01/index.d.ts.map +1 -0
- package/dist/blocks/capacity-01/index.js +1 -0
- package/dist/blocks/careers-01/careers.d.ts +186 -0
- package/dist/blocks/careers-01/careers.d.ts.map +1 -0
- package/dist/blocks/careers-01/careers.js +83 -0
- package/dist/blocks/careers-01/index.d.ts +3 -0
- package/dist/blocks/careers-01/index.d.ts.map +1 -0
- package/dist/blocks/careers-01/index.js +1 -0
- package/dist/blocks/case-studies-01/case-studies.d.ts +192 -0
- package/dist/blocks/case-studies-01/case-studies.d.ts.map +1 -0
- package/dist/blocks/case-studies-01/case-studies.js +97 -0
- package/dist/blocks/case-studies-01/index.d.ts +3 -0
- package/dist/blocks/case-studies-01/index.d.ts.map +1 -0
- package/dist/blocks/case-studies-01/index.js +1 -0
- package/dist/blocks/case-study-01/case-study.d.ts +214 -0
- package/dist/blocks/case-study-01/case-study.d.ts.map +1 -0
- package/dist/blocks/case-study-01/case-study.js +79 -0
- package/dist/blocks/case-study-01/index.d.ts +3 -0
- package/dist/blocks/case-study-01/index.d.ts.map +1 -0
- package/dist/blocks/case-study-01/index.js +1 -0
- package/dist/blocks/changelog-01/changelog.d.ts +200 -0
- package/dist/blocks/changelog-01/changelog.d.ts.map +1 -0
- package/dist/blocks/changelog-01/changelog.js +155 -0
- package/dist/blocks/changelog-01/index.d.ts +3 -0
- package/dist/blocks/changelog-01/index.d.ts.map +1 -0
- package/dist/blocks/changelog-01/index.js +1 -0
- package/dist/blocks/chart-card-01/chart-card-01.d.ts +149 -0
- package/dist/blocks/chart-card-01/chart-card-01.d.ts.map +1 -0
- package/dist/blocks/chart-card-01/chart-card-01.js +81 -0
- package/dist/blocks/chart-card-01/index.d.ts +3 -0
- package/dist/blocks/chart-card-01/index.d.ts.map +1 -0
- package/dist/blocks/chart-card-01/index.js +1 -0
- package/dist/blocks/chart-group-01/chart-group-01.d.ts +138 -0
- package/dist/blocks/chart-group-01/chart-group-01.d.ts.map +1 -0
- package/dist/blocks/chart-group-01/chart-group-01.js +74 -0
- package/dist/blocks/chart-group-01/index.d.ts +3 -0
- package/dist/blocks/chart-group-01/index.d.ts.map +1 -0
- package/dist/blocks/chart-group-01/index.js +1 -0
- package/dist/blocks/code-sample-01/code-sample.d.ts +193 -0
- package/dist/blocks/code-sample-01/code-sample.d.ts.map +1 -0
- package/dist/blocks/code-sample-01/code-sample.js +104 -0
- package/dist/blocks/code-sample-01/index.d.ts +3 -0
- package/dist/blocks/code-sample-01/index.d.ts.map +1 -0
- package/dist/blocks/code-sample-01/index.js +1 -0
- package/dist/blocks/community-01/community.d.ts +183 -0
- package/dist/blocks/community-01/community.d.ts.map +1 -0
- package/dist/blocks/community-01/community.js +102 -0
- package/dist/blocks/community-01/index.d.ts +3 -0
- package/dist/blocks/community-01/index.d.ts.map +1 -0
- package/dist/blocks/community-01/index.js +1 -0
- package/dist/blocks/compare-01/compare.d.ts +184 -0
- package/dist/blocks/compare-01/compare.d.ts.map +1 -0
- package/dist/blocks/compare-01/compare.js +106 -0
- package/dist/blocks/compare-01/index.d.ts +3 -0
- package/dist/blocks/compare-01/index.d.ts.map +1 -0
- package/dist/blocks/compare-01/index.js +1 -0
- package/dist/blocks/compliance-01/compliance.d.ts +249 -0
- package/dist/blocks/compliance-01/compliance.d.ts.map +1 -0
- package/dist/blocks/compliance-01/compliance.js +130 -0
- package/dist/blocks/compliance-01/index.d.ts +3 -0
- package/dist/blocks/compliance-01/index.d.ts.map +1 -0
- package/dist/blocks/compliance-01/index.js +1 -0
- package/dist/blocks/consent-01/consent.d.ts +211 -0
- package/dist/blocks/consent-01/consent.d.ts.map +1 -0
- package/dist/blocks/consent-01/consent.js +101 -0
- package/dist/blocks/consent-01/index.d.ts +3 -0
- package/dist/blocks/consent-01/index.d.ts.map +1 -0
- package/dist/blocks/consent-01/index.js +1 -0
- package/dist/blocks/contact-01/contact.d.ts +319 -0
- package/dist/blocks/contact-01/contact.d.ts.map +1 -0
- package/dist/blocks/contact-01/contact.js +211 -0
- package/dist/blocks/contact-01/index.d.ts +3 -0
- package/dist/blocks/contact-01/index.d.ts.map +1 -0
- package/dist/blocks/contact-01/index.js +1 -0
- package/dist/blocks/content-grid-01/content-grid.d.ts +262 -0
- package/dist/blocks/content-grid-01/content-grid.d.ts.map +1 -0
- package/dist/blocks/content-grid-01/content-grid.js +155 -0
- package/dist/blocks/content-grid-01/index.d.ts +3 -0
- package/dist/blocks/content-grid-01/index.d.ts.map +1 -0
- package/dist/blocks/content-grid-01/index.js +1 -0
- package/dist/blocks/cta-01/cta.d.ts +7 -1
- package/dist/blocks/cta-01/cta.d.ts.map +1 -1
- package/dist/blocks/cta-01/cta.js +11 -2
- package/dist/blocks/dashboard-01/dashboard-01.d.ts +247 -0
- package/dist/blocks/dashboard-01/dashboard-01.d.ts.map +1 -0
- package/dist/blocks/dashboard-01/dashboard-01.js +141 -0
- package/dist/blocks/dashboard-01/index.d.ts +3 -0
- package/dist/blocks/dashboard-01/index.d.ts.map +1 -0
- package/dist/blocks/dashboard-01/index.js +1 -0
- package/dist/blocks/data-table-01/data-table.d.ts +12 -1
- package/dist/blocks/data-table-01/data-table.d.ts.map +1 -1
- package/dist/blocks/data-table-01/data-table.js +8 -5
- package/dist/blocks/delivery-01/delivery.d.ts +343 -0
- package/dist/blocks/delivery-01/delivery.d.ts.map +1 -0
- package/dist/blocks/delivery-01/delivery.js +212 -0
- package/dist/blocks/delivery-01/index.d.ts +3 -0
- package/dist/blocks/delivery-01/index.d.ts.map +1 -0
- package/dist/blocks/delivery-01/index.js +1 -0
- package/dist/blocks/directory-01/directory-01.d.ts +316 -0
- package/dist/blocks/directory-01/directory-01.d.ts.map +1 -0
- package/dist/blocks/directory-01/directory-01.js +252 -0
- package/dist/blocks/directory-01/index.d.ts +3 -0
- package/dist/blocks/directory-01/index.d.ts.map +1 -0
- package/dist/blocks/directory-01/index.js +1 -0
- package/dist/blocks/download-01/download.d.ts +261 -0
- package/dist/blocks/download-01/download.d.ts.map +1 -0
- package/dist/blocks/download-01/download.js +115 -0
- package/dist/blocks/download-01/index.d.ts +3 -0
- package/dist/blocks/download-01/index.d.ts.map +1 -0
- package/dist/blocks/download-01/index.js +1 -0
- package/dist/blocks/faq-01/faq.d.ts +128 -0
- package/dist/blocks/faq-01/faq.d.ts.map +1 -0
- package/dist/blocks/faq-01/faq.js +53 -0
- package/dist/blocks/faq-01/index.d.ts +3 -0
- package/dist/blocks/faq-01/index.d.ts.map +1 -0
- package/dist/blocks/faq-01/index.js +1 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.d.ts +158 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.d.ts.map +1 -0
- package/dist/blocks/feature-rows-01/feature-rows-01.js +81 -0
- package/dist/blocks/feature-rows-01/index.d.ts +3 -0
- package/dist/blocks/feature-rows-01/index.d.ts.map +1 -0
- package/dist/blocks/feature-rows-01/index.js +1 -0
- package/dist/blocks/feedback-01/feedback.d.ts +235 -0
- package/dist/blocks/feedback-01/feedback.d.ts.map +1 -0
- package/dist/blocks/feedback-01/feedback.js +113 -0
- package/dist/blocks/feedback-01/index.d.ts +3 -0
- package/dist/blocks/feedback-01/index.d.ts.map +1 -0
- package/dist/blocks/feedback-01/index.js +1 -0
- package/dist/blocks/field-map-01/field-map.d.ts +247 -0
- package/dist/blocks/field-map-01/field-map.d.ts.map +1 -0
- package/dist/blocks/field-map-01/field-map.js +183 -0
- package/dist/blocks/field-map-01/index.d.ts +3 -0
- package/dist/blocks/field-map-01/index.d.ts.map +1 -0
- package/dist/blocks/field-map-01/index.js +1 -0
- package/dist/blocks/forgot-password-01/forgot-password.d.ts +288 -0
- package/dist/blocks/forgot-password-01/forgot-password.d.ts.map +1 -0
- package/dist/blocks/forgot-password-01/forgot-password.js +190 -0
- package/dist/blocks/forgot-password-01/index.d.ts +3 -0
- package/dist/blocks/forgot-password-01/index.d.ts.map +1 -0
- package/dist/blocks/forgot-password-01/index.js +1 -0
- package/dist/blocks/gallery-01/gallery.d.ts +208 -0
- package/dist/blocks/gallery-01/gallery.d.ts.map +1 -0
- package/dist/blocks/gallery-01/gallery.js +174 -0
- package/dist/blocks/gallery-01/index.d.ts +3 -0
- package/dist/blocks/gallery-01/index.d.ts.map +1 -0
- package/dist/blocks/gallery-01/index.js +1 -0
- package/dist/blocks/gantt-01/gantt.d.ts +290 -0
- package/dist/blocks/gantt-01/gantt.d.ts.map +1 -0
- package/dist/blocks/gantt-01/gantt.js +224 -0
- package/dist/blocks/gantt-01/index.d.ts +3 -0
- package/dist/blocks/gantt-01/index.d.ts.map +1 -0
- package/dist/blocks/gantt-01/index.js +1 -0
- package/dist/blocks/handoff-01/handoff-01.d.ts +326 -0
- package/dist/blocks/handoff-01/handoff-01.d.ts.map +1 -0
- package/dist/blocks/handoff-01/handoff-01.js +180 -0
- package/dist/blocks/handoff-01/index.d.ts +3 -0
- package/dist/blocks/handoff-01/index.d.ts.map +1 -0
- package/dist/blocks/handoff-01/index.js +1 -0
- package/dist/blocks/help-01/help.d.ts +254 -0
- package/dist/blocks/help-01/help.d.ts.map +1 -0
- package/dist/blocks/help-01/help.js +188 -0
- package/dist/blocks/help-01/index.d.ts +3 -0
- package/dist/blocks/help-01/index.d.ts.map +1 -0
- package/dist/blocks/help-01/index.js +1 -0
- package/dist/blocks/hero-01/hero.d.ts +105 -34
- package/dist/blocks/hero-01/hero.d.ts.map +1 -1
- package/dist/blocks/hero-01/hero.js +23 -15
- package/dist/blocks/hero-01/index.d.ts +1 -1
- package/dist/blocks/hero-01/index.d.ts.map +1 -1
- package/dist/blocks/hero-02/hero-02.d.ts +244 -0
- package/dist/blocks/hero-02/hero-02.d.ts.map +1 -0
- package/dist/blocks/hero-02/hero-02.js +87 -0
- package/dist/blocks/hero-02/index.d.ts +3 -0
- package/dist/blocks/hero-02/index.d.ts.map +1 -0
- package/dist/blocks/hero-02/index.js +1 -0
- package/dist/blocks/hero-03/hero-03.d.ts +247 -0
- package/dist/blocks/hero-03/hero-03.d.ts.map +1 -0
- package/dist/blocks/hero-03/hero-03.js +93 -0
- package/dist/blocks/hero-03/index.d.ts +3 -0
- package/dist/blocks/hero-03/index.d.ts.map +1 -0
- package/dist/blocks/hero-03/index.js +1 -0
- package/dist/blocks/history-01/history-01.d.ts +414 -0
- package/dist/blocks/history-01/history-01.d.ts.map +1 -0
- package/dist/blocks/history-01/history-01.js +285 -0
- package/dist/blocks/history-01/index.d.ts +3 -0
- package/dist/blocks/history-01/index.d.ts.map +1 -0
- package/dist/blocks/history-01/index.js +1 -0
- package/dist/blocks/inbox-01/inbox.d.ts +349 -0
- package/dist/blocks/inbox-01/inbox.d.ts.map +1 -0
- package/dist/blocks/inbox-01/inbox.js +244 -0
- package/dist/blocks/inbox-01/index.d.ts +3 -0
- package/dist/blocks/inbox-01/index.d.ts.map +1 -0
- package/dist/blocks/inbox-01/index.js +1 -0
- package/dist/blocks/index.d.ts +203 -0
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/blocks/index.js +118 -0
- package/dist/blocks/industries-01/index.d.ts +3 -0
- package/dist/blocks/industries-01/index.d.ts.map +1 -0
- package/dist/blocks/industries-01/index.js +1 -0
- package/dist/blocks/industries-01/industries.d.ts +164 -0
- package/dist/blocks/industries-01/industries.d.ts.map +1 -0
- package/dist/blocks/industries-01/industries.js +96 -0
- package/dist/blocks/intake-01/index.d.ts +3 -0
- package/dist/blocks/intake-01/index.d.ts.map +1 -0
- package/dist/blocks/intake-01/index.js +1 -0
- package/dist/blocks/intake-01/intake-01.d.ts +305 -0
- package/dist/blocks/intake-01/intake-01.d.ts.map +1 -0
- package/dist/blocks/intake-01/intake-01.js +178 -0
- package/dist/blocks/integration-01/index.d.ts +3 -0
- package/dist/blocks/integration-01/index.d.ts.map +1 -0
- package/dist/blocks/integration-01/index.js +1 -0
- package/dist/blocks/integration-01/integration.d.ts +226 -0
- package/dist/blocks/integration-01/integration.d.ts.map +1 -0
- package/dist/blocks/integration-01/integration.js +170 -0
- package/dist/blocks/invite-user-01/index.d.ts +3 -0
- package/dist/blocks/invite-user-01/index.d.ts.map +1 -0
- package/dist/blocks/invite-user-01/index.js +1 -0
- package/dist/blocks/invite-user-01/invite-user.d.ts +317 -0
- package/dist/blocks/invite-user-01/invite-user.d.ts.map +1 -0
- package/dist/blocks/invite-user-01/invite-user.js +228 -0
- package/dist/blocks/issue-detail-01/index.d.ts +3 -0
- package/dist/blocks/issue-detail-01/index.d.ts.map +1 -0
- package/dist/blocks/issue-detail-01/index.js +1 -0
- package/dist/blocks/issue-detail-01/issue-detail.d.ts +355 -0
- package/dist/blocks/issue-detail-01/issue-detail.d.ts.map +1 -0
- package/dist/blocks/issue-detail-01/issue-detail.js +187 -0
- package/dist/blocks/issue-list-01/index.d.ts +3 -0
- package/dist/blocks/issue-list-01/index.d.ts.map +1 -0
- package/dist/blocks/issue-list-01/index.js +1 -0
- package/dist/blocks/issue-list-01/issue-list.d.ts +298 -0
- package/dist/blocks/issue-list-01/issue-list.d.ts.map +1 -0
- package/dist/blocks/issue-list-01/issue-list.js +284 -0
- package/dist/blocks/kanban-01/index.d.ts +3 -0
- package/dist/blocks/kanban-01/index.d.ts.map +1 -0
- package/dist/blocks/kanban-01/index.js +1 -0
- package/dist/blocks/kanban-01/kanban.d.ts +278 -0
- package/dist/blocks/kanban-01/kanban.d.ts.map +1 -0
- package/dist/blocks/kanban-01/kanban.js +144 -0
- package/dist/blocks/leaderboard-01/index.d.ts +3 -0
- package/dist/blocks/leaderboard-01/index.d.ts.map +1 -0
- package/dist/blocks/leaderboard-01/index.js +1 -0
- package/dist/blocks/leaderboard-01/leaderboard.d.ts +250 -0
- package/dist/blocks/leaderboard-01/leaderboard.d.ts.map +1 -0
- package/dist/blocks/leaderboard-01/leaderboard.js +121 -0
- package/dist/blocks/login-01/index.d.ts +3 -0
- package/dist/blocks/login-01/index.d.ts.map +1 -0
- package/dist/blocks/login-01/index.js +1 -0
- package/dist/blocks/login-01/login-01.d.ts +356 -0
- package/dist/blocks/login-01/login-01.d.ts.map +1 -0
- package/dist/blocks/login-01/login-01.js +249 -0
- package/dist/blocks/logo-cloud-01/index.d.ts +3 -0
- package/dist/blocks/logo-cloud-01/index.d.ts.map +1 -0
- package/dist/blocks/logo-cloud-01/index.js +1 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.d.ts +181 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.d.ts.map +1 -0
- package/dist/blocks/logo-cloud-01/logo-cloud.js +118 -0
- package/dist/blocks/magic-link-01/index.d.ts +3 -0
- package/dist/blocks/magic-link-01/index.d.ts.map +1 -0
- package/dist/blocks/magic-link-01/index.js +1 -0
- package/dist/blocks/magic-link-01/magic-link-01.d.ts +367 -0
- package/dist/blocks/magic-link-01/magic-link-01.d.ts.map +1 -0
- package/dist/blocks/magic-link-01/magic-link-01.js +233 -0
- package/dist/blocks/member-list-01/index.d.ts +3 -0
- package/dist/blocks/member-list-01/index.d.ts.map +1 -0
- package/dist/blocks/member-list-01/index.js +1 -0
- package/dist/blocks/member-list-01/member-list.d.ts +192 -0
- package/dist/blocks/member-list-01/member-list.d.ts.map +1 -0
- package/dist/blocks/member-list-01/member-list.js +142 -0
- package/dist/blocks/milestone-timeline-01/index.d.ts +3 -0
- package/dist/blocks/milestone-timeline-01/index.d.ts.map +1 -0
- package/dist/blocks/milestone-timeline-01/index.js +1 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.d.ts +217 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.d.ts.map +1 -0
- package/dist/blocks/milestone-timeline-01/milestone-timeline.js +173 -0
- package/dist/blocks/newsletter-01/index.d.ts +3 -0
- package/dist/blocks/newsletter-01/index.d.ts.map +1 -0
- package/dist/blocks/newsletter-01/index.js +1 -0
- package/dist/blocks/newsletter-01/newsletter.d.ts +216 -0
- package/dist/blocks/newsletter-01/newsletter.d.ts.map +1 -0
- package/dist/blocks/newsletter-01/newsletter.js +102 -0
- package/dist/blocks/notification-center-01/index.d.ts +3 -0
- package/dist/blocks/notification-center-01/index.d.ts.map +1 -0
- package/dist/blocks/notification-center-01/index.js +1 -0
- package/dist/blocks/notification-center-01/notification-center-01.d.ts +341 -0
- package/dist/blocks/notification-center-01/notification-center-01.d.ts.map +1 -0
- package/dist/blocks/notification-center-01/notification-center-01.js +203 -0
- package/dist/blocks/offer-01/index.d.ts +3 -0
- package/dist/blocks/offer-01/index.d.ts.map +1 -0
- package/dist/blocks/offer-01/index.js +1 -0
- package/dist/blocks/offer-01/offer.d.ts +139 -0
- package/dist/blocks/offer-01/offer.d.ts.map +1 -0
- package/dist/blocks/offer-01/offer.js +81 -0
- package/dist/blocks/offering-01/index.d.ts +3 -0
- package/dist/blocks/offering-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-01/index.js +1 -0
- package/dist/blocks/offering-01/offering.d.ts +245 -0
- package/dist/blocks/offering-01/offering.d.ts.map +1 -0
- package/dist/blocks/offering-01/offering.js +144 -0
- package/dist/blocks/offering-categories-01/index.d.ts +3 -0
- package/dist/blocks/offering-categories-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-categories-01/index.js +1 -0
- package/dist/blocks/offering-categories-01/offering-categories.d.ts +248 -0
- package/dist/blocks/offering-categories-01/offering-categories.d.ts.map +1 -0
- package/dist/blocks/offering-categories-01/offering-categories.js +153 -0
- package/dist/blocks/offering-list-01/index.d.ts +3 -0
- package/dist/blocks/offering-list-01/index.d.ts.map +1 -0
- package/dist/blocks/offering-list-01/index.js +1 -0
- package/dist/blocks/offering-list-01/offering-list.d.ts +362 -0
- package/dist/blocks/offering-list-01/offering-list.d.ts.map +1 -0
- package/dist/blocks/offering-list-01/offering-list.js +366 -0
- package/dist/blocks/onboarding-01/index.d.ts +3 -0
- package/dist/blocks/onboarding-01/index.d.ts.map +1 -0
- package/dist/blocks/onboarding-01/index.js +1 -0
- package/dist/blocks/onboarding-01/onboarding.d.ts +199 -0
- package/dist/blocks/onboarding-01/onboarding.d.ts.map +1 -0
- package/dist/blocks/onboarding-01/onboarding.js +182 -0
- package/dist/blocks/ops-checklist-01/index.d.ts +3 -0
- package/dist/blocks/ops-checklist-01/index.d.ts.map +1 -0
- package/dist/blocks/ops-checklist-01/index.js +1 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.d.ts +308 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.d.ts.map +1 -0
- package/dist/blocks/ops-checklist-01/ops-checklist-01.js +165 -0
- package/dist/blocks/page-header-01/index.d.ts +1 -1
- package/dist/blocks/page-header-01/index.d.ts.map +1 -1
- package/dist/blocks/page-header-01/page-header.d.ts +124 -11
- package/dist/blocks/page-header-01/page-header.d.ts.map +1 -1
- package/dist/blocks/page-header-01/page-header.js +25 -9
- package/dist/blocks/passkey-01/index.d.ts +3 -0
- package/dist/blocks/passkey-01/index.d.ts.map +1 -0
- package/dist/blocks/passkey-01/index.js +1 -0
- package/dist/blocks/passkey-01/passkey-01.d.ts +334 -0
- package/dist/blocks/passkey-01/passkey-01.d.ts.map +1 -0
- package/dist/blocks/passkey-01/passkey-01.js +192 -0
- package/dist/blocks/permission-matrix-01/index.d.ts +3 -0
- package/dist/blocks/permission-matrix-01/index.d.ts.map +1 -0
- package/dist/blocks/permission-matrix-01/index.js +1 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.d.ts +282 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.d.ts.map +1 -0
- package/dist/blocks/permission-matrix-01/permission-matrix.js +173 -0
- package/dist/blocks/pricing-01/index.d.ts +1 -0
- package/dist/blocks/pricing-01/index.d.ts.map +1 -1
- package/dist/blocks/pricing-01/pricing.d.ts +118 -1
- package/dist/blocks/pricing-01/pricing.d.ts.map +1 -1
- package/dist/blocks/pricing-01/pricing.js +9 -2
- package/dist/blocks/pricing-compare-01/index.d.ts +3 -0
- package/dist/blocks/pricing-compare-01/index.d.ts.map +1 -0
- package/dist/blocks/pricing-compare-01/index.js +1 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.d.ts +277 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.d.ts.map +1 -0
- package/dist/blocks/pricing-compare-01/pricing-compare.js +126 -0
- package/dist/blocks/project-01/index.d.ts +3 -0
- package/dist/blocks/project-01/index.d.ts.map +1 -0
- package/dist/blocks/project-01/index.js +1 -0
- package/dist/blocks/project-01/project.d.ts +323 -0
- package/dist/blocks/project-01/project.d.ts.map +1 -0
- package/dist/blocks/project-01/project.js +247 -0
- package/dist/blocks/project-dashboard-01/index.d.ts +3 -0
- package/dist/blocks/project-dashboard-01/index.d.ts.map +1 -0
- package/dist/blocks/project-dashboard-01/index.js +1 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.d.ts +200 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.d.ts.map +1 -0
- package/dist/blocks/project-dashboard-01/project-dashboard.js +124 -0
- package/dist/blocks/project-list-01/index.d.ts +3 -0
- package/dist/blocks/project-list-01/index.d.ts.map +1 -0
- package/dist/blocks/project-list-01/index.js +1 -0
- package/dist/blocks/project-list-01/project-list.d.ts +301 -0
- package/dist/blocks/project-list-01/project-list.d.ts.map +1 -0
- package/dist/blocks/project-list-01/project-list.js +305 -0
- package/dist/blocks/provisioning-01/index.d.ts +3 -0
- package/dist/blocks/provisioning-01/index.d.ts.map +1 -0
- package/dist/blocks/provisioning-01/index.js +1 -0
- package/dist/blocks/provisioning-01/provisioning.d.ts +357 -0
- package/dist/blocks/provisioning-01/provisioning.d.ts.map +1 -0
- package/dist/blocks/provisioning-01/provisioning.js +230 -0
- package/dist/blocks/quick-view-01/index.d.ts +3 -0
- package/dist/blocks/quick-view-01/index.d.ts.map +1 -0
- package/dist/blocks/quick-view-01/index.js +1 -0
- package/dist/blocks/quick-view-01/quick-view.d.ts +215 -0
- package/dist/blocks/quick-view-01/quick-view.d.ts.map +1 -0
- package/dist/blocks/quick-view-01/quick-view.js +136 -0
- package/dist/blocks/rate-card-01/index.d.ts +3 -0
- package/dist/blocks/rate-card-01/index.d.ts.map +1 -0
- package/dist/blocks/rate-card-01/index.js +1 -0
- package/dist/blocks/rate-card-01/rate-card.d.ts +184 -0
- package/dist/blocks/rate-card-01/rate-card.d.ts.map +1 -0
- package/dist/blocks/rate-card-01/rate-card.js +79 -0
- package/dist/blocks/reset-password-01/index.d.ts +3 -0
- package/dist/blocks/reset-password-01/index.d.ts.map +1 -0
- package/dist/blocks/reset-password-01/index.js +1 -0
- package/dist/blocks/reset-password-01/reset-password.d.ts +276 -0
- package/dist/blocks/reset-password-01/reset-password.d.ts.map +1 -0
- package/dist/blocks/reset-password-01/reset-password.js +175 -0
- package/dist/blocks/resource-list-01/index.d.ts +3 -0
- package/dist/blocks/resource-list-01/index.d.ts.map +1 -0
- package/dist/blocks/resource-list-01/index.js +1 -0
- package/dist/blocks/resource-list-01/resource-list.d.ts +237 -0
- package/dist/blocks/resource-list-01/resource-list.d.ts.map +1 -0
- package/dist/blocks/resource-list-01/resource-list.js +154 -0
- package/dist/blocks/retention-01/index.d.ts +3 -0
- package/dist/blocks/retention-01/index.d.ts.map +1 -0
- package/dist/blocks/retention-01/index.js +1 -0
- package/dist/blocks/retention-01/retention.d.ts +255 -0
- package/dist/blocks/retention-01/retention.d.ts.map +1 -0
- package/dist/blocks/retention-01/retention.js +145 -0
- package/dist/blocks/run-console-01/run-console.d.ts +14 -1
- package/dist/blocks/run-console-01/run-console.d.ts.map +1 -1
- package/dist/blocks/run-console-01/run-console.js +3 -2
- package/dist/blocks/services-01/index.d.ts +3 -0
- package/dist/blocks/services-01/index.d.ts.map +1 -0
- package/dist/blocks/services-01/index.js +1 -0
- package/dist/blocks/services-01/services.d.ts +159 -0
- package/dist/blocks/services-01/services.d.ts.map +1 -0
- package/dist/blocks/services-01/services.js +81 -0
- package/dist/blocks/settings-integrations-01/index.d.ts +3 -0
- package/dist/blocks/settings-integrations-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-integrations-01/index.js +1 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.d.ts +246 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.d.ts.map +1 -0
- package/dist/blocks/settings-integrations-01/settings-integrations.js +213 -0
- package/dist/blocks/settings-members-01/index.d.ts +3 -0
- package/dist/blocks/settings-members-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-members-01/index.js +1 -0
- package/dist/blocks/settings-members-01/settings-members.d.ts +396 -0
- package/dist/blocks/settings-members-01/settings-members.d.ts.map +1 -0
- package/dist/blocks/settings-members-01/settings-members.js +255 -0
- package/dist/blocks/settings-notifications-01/index.d.ts +3 -0
- package/dist/blocks/settings-notifications-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-notifications-01/index.js +1 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.d.ts +270 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.d.ts.map +1 -0
- package/dist/blocks/settings-notifications-01/settings-notifications.js +202 -0
- package/dist/blocks/settings-security-01/index.d.ts +3 -0
- package/dist/blocks/settings-security-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-security-01/index.js +1 -0
- package/dist/blocks/settings-security-01/settings-security.d.ts +439 -0
- package/dist/blocks/settings-security-01/settings-security.d.ts.map +1 -0
- package/dist/blocks/settings-security-01/settings-security.js +244 -0
- package/dist/blocks/shortlist-01/index.d.ts +3 -0
- package/dist/blocks/shortlist-01/index.d.ts.map +1 -0
- package/dist/blocks/shortlist-01/index.js +1 -0
- package/dist/blocks/shortlist-01/shortlist-01.d.ts +337 -0
- package/dist/blocks/shortlist-01/shortlist-01.d.ts.map +1 -0
- package/dist/blocks/shortlist-01/shortlist-01.js +191 -0
- package/dist/blocks/showcase-01/index.d.ts +3 -0
- package/dist/blocks/showcase-01/index.d.ts.map +1 -0
- package/dist/blocks/showcase-01/index.js +1 -0
- package/dist/blocks/showcase-01/showcase-01.d.ts +238 -0
- package/dist/blocks/showcase-01/showcase-01.d.ts.map +1 -0
- package/dist/blocks/showcase-01/showcase-01.js +84 -0
- package/dist/blocks/signup-01/index.d.ts +3 -0
- package/dist/blocks/signup-01/index.d.ts.map +1 -0
- package/dist/blocks/signup-01/index.js +1 -0
- package/dist/blocks/signup-01/signup-01.d.ts +405 -0
- package/dist/blocks/signup-01/signup-01.d.ts.map +1 -0
- package/dist/blocks/signup-01/signup-01.js +209 -0
- package/dist/blocks/site-footer/site-footer.d.ts +18 -1
- package/dist/blocks/site-footer/site-footer.d.ts.map +1 -1
- package/dist/blocks/site-footer/site-footer.js +8 -2
- package/dist/blocks/site-header/site-header.js +1 -1
- package/dist/blocks/site-navbar/site-navbar.d.ts +37 -3
- package/dist/blocks/site-navbar/site-navbar.d.ts.map +1 -1
- package/dist/blocks/site-navbar/site-navbar.js +33 -4
- package/dist/blocks/spec-table-01/index.d.ts +3 -0
- package/dist/blocks/spec-table-01/index.d.ts.map +1 -0
- package/dist/blocks/spec-table-01/index.js +1 -0
- package/dist/blocks/spec-table-01/spec-table.d.ts +293 -0
- package/dist/blocks/spec-table-01/spec-table.d.ts.map +1 -0
- package/dist/blocks/spec-table-01/spec-table.js +217 -0
- package/dist/blocks/story-01/index.d.ts +3 -0
- package/dist/blocks/story-01/index.d.ts.map +1 -0
- package/dist/blocks/story-01/index.js +1 -0
- package/dist/blocks/story-01/story.d.ts +153 -0
- package/dist/blocks/story-01/story.d.ts.map +1 -0
- package/dist/blocks/story-01/story.js +103 -0
- package/dist/blocks/summary-01/index.d.ts +3 -0
- package/dist/blocks/summary-01/index.d.ts.map +1 -0
- package/dist/blocks/summary-01/index.js +1 -0
- package/dist/blocks/summary-01/summary.d.ts +300 -0
- package/dist/blocks/summary-01/summary.d.ts.map +1 -0
- package/dist/blocks/summary-01/summary.js +174 -0
- package/dist/blocks/team-01/index.d.ts +3 -0
- package/dist/blocks/team-01/index.d.ts.map +1 -0
- package/dist/blocks/team-01/index.js +1 -0
- package/dist/blocks/team-01/team.d.ts +176 -0
- package/dist/blocks/team-01/team.d.ts.map +1 -0
- package/dist/blocks/team-01/team.js +117 -0
- package/dist/blocks/testimonial-01/index.d.ts +3 -0
- package/dist/blocks/testimonial-01/index.d.ts.map +1 -0
- package/dist/blocks/testimonial-01/index.js +1 -0
- package/dist/blocks/testimonial-01/testimonial.d.ts +173 -0
- package/dist/blocks/testimonial-01/testimonial.d.ts.map +1 -0
- package/dist/blocks/testimonial-01/testimonial.js +87 -0
- package/dist/blocks/todo-01/index.d.ts +3 -0
- package/dist/blocks/todo-01/index.d.ts.map +1 -0
- package/dist/blocks/todo-01/index.js +1 -0
- package/dist/blocks/todo-01/todo.d.ts +286 -0
- package/dist/blocks/todo-01/todo.d.ts.map +1 -0
- package/dist/blocks/todo-01/todo.js +149 -0
- package/dist/blocks/trend-01/index.d.ts +3 -0
- package/dist/blocks/trend-01/index.d.ts.map +1 -0
- package/dist/blocks/trend-01/index.js +1 -0
- package/dist/blocks/trend-01/trend.d.ts +184 -0
- package/dist/blocks/trend-01/trend.d.ts.map +1 -0
- package/dist/blocks/trend-01/trend.js +99 -0
- package/dist/blocks/trust-strip-01/index.d.ts +3 -0
- package/dist/blocks/trust-strip-01/index.d.ts.map +1 -0
- package/dist/blocks/trust-strip-01/index.js +1 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.d.ts +139 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.d.ts.map +1 -0
- package/dist/blocks/trust-strip-01/trust-strip-01.js +58 -0
- package/dist/blocks/two-factor-01/index.d.ts +3 -0
- package/dist/blocks/two-factor-01/index.d.ts.map +1 -0
- package/dist/blocks/two-factor-01/index.js +1 -0
- package/dist/blocks/two-factor-01/two-factor-01.d.ts +440 -0
- package/dist/blocks/two-factor-01/two-factor-01.d.ts.map +1 -0
- package/dist/blocks/two-factor-01/two-factor-01.js +273 -0
- package/dist/blocks/user-profile-01/index.d.ts +3 -0
- package/dist/blocks/user-profile-01/index.d.ts.map +1 -0
- package/dist/blocks/user-profile-01/index.js +1 -0
- package/dist/blocks/user-profile-01/user-profile-01.d.ts +258 -0
- package/dist/blocks/user-profile-01/user-profile-01.d.ts.map +1 -0
- package/dist/blocks/user-profile-01/user-profile-01.js +158 -0
- package/dist/blocks/verify-email-01/index.d.ts +3 -0
- package/dist/blocks/verify-email-01/index.d.ts.map +1 -0
- package/dist/blocks/verify-email-01/index.js +1 -0
- package/dist/blocks/verify-email-01/verify-email.d.ts +262 -0
- package/dist/blocks/verify-email-01/verify-email.d.ts.map +1 -0
- package/dist/blocks/verify-email-01/verify-email.js +190 -0
- package/dist/blocks/waitlist-01/index.d.ts +3 -0
- package/dist/blocks/waitlist-01/index.d.ts.map +1 -0
- package/dist/blocks/waitlist-01/index.js +1 -0
- package/dist/blocks/waitlist-01/waitlist.d.ts +254 -0
- package/dist/blocks/waitlist-01/waitlist.d.ts.map +1 -0
- package/dist/blocks/waitlist-01/waitlist.js +75 -0
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +1641 -1
- package/dist/components/index.d.ts +114 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +134 -0
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +9 -2
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +22 -4
- package/dist/components/ui/announcement.d.ts +169 -0
- package/dist/components/ui/announcement.d.ts.map +1 -0
- package/dist/components/ui/announcement.js +123 -0
- package/dist/components/ui/avatar-group.d.ts +176 -0
- package/dist/components/ui/avatar-group.d.ts.map +1 -0
- package/dist/components/ui/avatar-group.js +135 -0
- package/dist/components/ui/billing-source.d.ts +293 -0
- package/dist/components/ui/billing-source.d.ts.map +1 -0
- package/dist/components/ui/billing-source.js +136 -0
- package/dist/components/ui/button.d.ts +16 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +17 -2
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +30 -2
- package/dist/components/ui/carousel.d.ts +7 -0
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +58 -1
- package/dist/components/ui/chart.d.ts +334 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +369 -0
- package/dist/components/ui/checkbox.d.ts +10 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +19 -1
- package/dist/components/ui/checklist.d.ts +262 -0
- package/dist/components/ui/checklist.d.ts.map +1 -0
- package/dist/components/ui/checklist.js +135 -0
- package/dist/components/ui/choice-card.d.ts +273 -0
- package/dist/components/ui/choice-card.d.ts.map +1 -0
- package/dist/components/ui/choice-card.js +138 -0
- package/dist/components/ui/code-block.d.ts +182 -0
- package/dist/components/ui/code-block.d.ts.map +1 -0
- package/dist/components/ui/code-block.js +108 -0
- package/dist/components/ui/cohort-grid.d.ts +210 -0
- package/dist/components/ui/cohort-grid.d.ts.map +1 -0
- package/dist/components/ui/cohort-grid.js +202 -0
- package/dist/components/ui/collapsible.d.ts +11 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js +13 -2
- package/dist/components/ui/combobox.d.ts +4 -1
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +20 -4
- package/dist/components/ui/command-palette.d.ts +11 -0
- package/dist/components/ui/command-palette.d.ts.map +1 -1
- package/dist/components/ui/command-palette.js +49 -3
- package/dist/components/ui/contribution-graph.d.ts +156 -0
- package/dist/components/ui/contribution-graph.d.ts.map +1 -0
- package/dist/components/ui/contribution-graph.js +170 -0
- package/dist/components/ui/creatable-combobox.d.ts +153 -0
- package/dist/components/ui/creatable-combobox.d.ts.map +1 -0
- package/dist/components/ui/creatable-combobox.js +285 -0
- package/dist/components/ui/data-toolbar.d.ts +133 -0
- package/dist/components/ui/data-toolbar.d.ts.map +1 -0
- package/dist/components/ui/data-toolbar.js +67 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +9 -1
- package/dist/components/ui/dialog.d.ts +31 -2
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +40 -6
- package/dist/components/ui/drawer.d.ts +270 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +241 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +6 -1
- package/dist/components/ui/dropzone.d.ts +147 -0
- package/dist/components/ui/dropzone.d.ts.map +1 -0
- package/dist/components/ui/dropzone.js +141 -0
- package/dist/components/ui/emoji-picker.d.ts +328 -0
- package/dist/components/ui/emoji-picker.d.ts.map +1 -0
- package/dist/components/ui/emoji-picker.js +278 -0
- package/dist/components/ui/file-upload.d.ts +152 -0
- package/dist/components/ui/file-upload.d.ts.map +1 -0
- package/dist/components/ui/file-upload.js +101 -0
- package/dist/components/ui/filter-panel.d.ts +164 -0
- package/dist/components/ui/filter-panel.d.ts.map +1 -0
- package/dist/components/ui/filter-panel.js +91 -0
- package/dist/components/ui/form-dialog.d.ts +257 -0
- package/dist/components/ui/form-dialog.d.ts.map +1 -0
- package/dist/components/ui/form-dialog.js +176 -0
- package/dist/components/ui/form-wizard.d.ts +251 -0
- package/dist/components/ui/form-wizard.d.ts.map +1 -0
- package/dist/components/ui/form-wizard.js +151 -0
- package/dist/components/ui/image-list-field.d.ts +232 -0
- package/dist/components/ui/image-list-field.d.ts.map +1 -0
- package/dist/components/ui/image-list-field.js +168 -0
- package/dist/components/ui/image-zoom.d.ts +164 -0
- package/dist/components/ui/image-zoom.d.ts.map +1 -0
- package/dist/components/ui/image-zoom.js +169 -0
- package/dist/components/ui/intensity-grid.d.ts +270 -0
- package/dist/components/ui/intensity-grid.d.ts.map +1 -0
- package/dist/components/ui/intensity-grid.js +211 -0
- package/dist/components/ui/lifecycle-button.d.ts +276 -0
- package/dist/components/ui/lifecycle-button.d.ts.map +1 -0
- package/dist/components/ui/lifecycle-button.js +144 -0
- package/dist/components/ui/lightbox.d.ts +165 -0
- package/dist/components/ui/lightbox.d.ts.map +1 -0
- package/dist/components/ui/lightbox.js +130 -0
- package/dist/components/ui/list-panel.d.ts +288 -0
- package/dist/components/ui/list-panel.d.ts.map +1 -0
- package/dist/components/ui/list-panel.js +139 -0
- package/dist/components/ui/mega-menu.d.ts +244 -0
- package/dist/components/ui/mega-menu.d.ts.map +1 -0
- package/dist/components/ui/mega-menu.js +97 -0
- package/dist/components/ui/menubar.d.ts +9 -0
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +10 -1
- package/dist/components/ui/metric.d.ts +123 -0
- package/dist/components/ui/metric.d.ts.map +1 -0
- package/dist/components/ui/metric.js +68 -0
- package/dist/components/ui/mini-calendar.d.ts +143 -0
- package/dist/components/ui/mini-calendar.d.ts.map +1 -0
- package/dist/components/ui/mini-calendar.js +261 -0
- package/dist/components/ui/mode-toggle.d.ts +102 -0
- package/dist/components/ui/mode-toggle.d.ts.map +1 -0
- package/dist/components/ui/mode-toggle.js +83 -0
- package/dist/components/ui/money-field.d.ts +200 -0
- package/dist/components/ui/money-field.d.ts.map +1 -0
- package/dist/components/ui/money-field.js +215 -0
- package/dist/components/ui/multi-combobox.d.ts +181 -0
- package/dist/components/ui/multi-combobox.d.ts.map +1 -0
- package/dist/components/ui/multi-combobox.js +297 -0
- package/dist/components/ui/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select.js +8 -1
- package/dist/components/ui/navigation-menu.d.ts +7 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +8 -1
- package/dist/components/ui/nested-tabs.d.ts +188 -0
- package/dist/components/ui/nested-tabs.d.ts.map +1 -0
- package/dist/components/ui/nested-tabs.js +75 -0
- package/dist/components/ui/number-field.d.ts +40 -7
- package/dist/components/ui/number-field.d.ts.map +1 -1
- package/dist/components/ui/number-field.js +37 -7
- package/dist/components/ui/overflow-actions.d.ts +169 -0
- package/dist/components/ui/overflow-actions.d.ts.map +1 -0
- package/dist/components/ui/overflow-actions.js +266 -0
- package/dist/components/ui/pack-swatch.d.ts +177 -0
- package/dist/components/ui/pack-swatch.d.ts.map +1 -0
- package/dist/components/ui/pack-swatch.js +117 -0
- package/dist/components/ui/pack-switcher.d.ts +221 -0
- package/dist/components/ui/pack-switcher.d.ts.map +1 -0
- package/dist/components/ui/pack-switcher.js +94 -0
- package/dist/components/ui/pagination.d.ts +22 -0
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +23 -1
- package/dist/components/ui/password-field.d.ts +122 -0
- package/dist/components/ui/password-field.d.ts.map +1 -0
- package/dist/components/ui/password-field.js +69 -0
- package/dist/components/ui/pill.d.ts +172 -0
- package/dist/components/ui/pill.d.ts.map +1 -0
- package/dist/components/ui/pill.js +102 -0
- package/dist/components/ui/platform-modifier-key.d.ts +129 -0
- package/dist/components/ui/platform-modifier-key.d.ts.map +1 -0
- package/dist/components/ui/platform-modifier-key.js +125 -0
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +8 -1
- package/dist/components/ui/price.d.ts +144 -0
- package/dist/components/ui/price.d.ts.map +1 -0
- package/dist/components/ui/price.js +107 -0
- package/dist/components/ui/progress.d.ts +55 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +110 -2
- package/dist/components/ui/prompt-composer.d.ts +302 -0
- package/dist/components/ui/prompt-composer.d.ts.map +1 -0
- package/dist/components/ui/prompt-composer.js +145 -0
- package/dist/components/ui/proportion-list.d.ts +188 -0
- package/dist/components/ui/proportion-list.d.ts.map +1 -0
- package/dist/components/ui/proportion-list.js +134 -0
- package/dist/components/ui/prose.d.ts +23 -0
- package/dist/components/ui/prose.d.ts.map +1 -1
- package/dist/components/ui/prose.js +30 -1
- package/dist/components/ui/radio-group.d.ts +7 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +8 -1
- package/dist/components/ui/range-field.d.ts +158 -0
- package/dist/components/ui/range-field.d.ts.map +1 -0
- package/dist/components/ui/range-field.js +208 -0
- package/dist/components/ui/relative-time.d.ts +116 -0
- package/dist/components/ui/relative-time.d.ts.map +1 -0
- package/dist/components/ui/relative-time.js +67 -0
- package/dist/components/ui/reorderable-list.d.ts +262 -0
- package/dist/components/ui/reorderable-list.d.ts.map +1 -0
- package/dist/components/ui/reorderable-list.js +325 -0
- package/dist/components/ui/repeatable-rows.d.ts +241 -0
- package/dist/components/ui/repeatable-rows.d.ts.map +1 -0
- package/dist/components/ui/repeatable-rows.js +221 -0
- package/dist/components/ui/repo-stars.d.ts +165 -0
- package/dist/components/ui/repo-stars.d.ts.map +1 -0
- package/dist/components/ui/repo-stars.js +92 -0
- package/dist/components/ui/resizable.d.ts +24 -0
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +96 -4
- package/dist/components/ui/search-dialog.d.ts +40 -5
- package/dist/components/ui/search-dialog.d.ts.map +1 -1
- package/dist/components/ui/search-dialog.js +94 -16
- package/dist/components/ui/search-field.d.ts +159 -0
- package/dist/components/ui/search-field.d.ts.map +1 -0
- package/dist/components/ui/search-field.js +98 -0
- package/dist/components/ui/section.d.ts +108 -1
- package/dist/components/ui/section.d.ts.map +1 -1
- package/dist/components/ui/section.js +109 -3
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +9 -1
- package/dist/components/ui/selection-toolbar.d.ts +166 -0
- package/dist/components/ui/selection-toolbar.d.ts.map +1 -0
- package/dist/components/ui/selection-toolbar.js +139 -0
- package/dist/components/ui/sidebar.d.ts +29 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +35 -2
- package/dist/components/ui/signal-field.d.ts.map +1 -1
- package/dist/components/ui/signal-field.js +1 -1
- package/dist/components/ui/slider.d.ts +7 -0
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js +32 -1
- package/dist/components/ui/sparkline.d.ts +117 -0
- package/dist/components/ui/sparkline.d.ts.map +1 -0
- package/dist/components/ui/sparkline.js +113 -0
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner.js +13 -0
- package/dist/components/ui/split-button.d.ts +207 -0
- package/dist/components/ui/split-button.d.ts.map +1 -0
- package/dist/components/ui/split-button.js +75 -0
- package/dist/components/ui/stateful-table.d.ts +345 -0
- package/dist/components/ui/stateful-table.d.ts.map +1 -0
- package/dist/components/ui/stateful-table.js +169 -0
- package/dist/components/ui/status.d.ts +99 -0
- package/dist/components/ui/status.d.ts.map +1 -0
- package/dist/components/ui/status.js +63 -0
- package/dist/components/ui/stepper.d.ts +155 -0
- package/dist/components/ui/stepper.d.ts.map +1 -0
- package/dist/components/ui/stepper.js +83 -0
- package/dist/components/ui/steps.d.ts +141 -0
- package/dist/components/ui/steps.d.ts.map +1 -0
- package/dist/components/ui/steps.js +128 -0
- package/dist/components/ui/switch.d.ts +8 -0
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +12 -1
- package/dist/components/ui/tabs.d.ts +21 -2
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +23 -4
- package/dist/components/ui/tag-group.d.ts +154 -0
- package/dist/components/ui/tag-group.d.ts.map +1 -0
- package/dist/components/ui/tag-group.js +111 -0
- package/dist/components/ui/task-progress.d.ts +149 -0
- package/dist/components/ui/task-progress.d.ts.map +1 -0
- package/dist/components/ui/task-progress.js +110 -0
- package/dist/components/ui/text-format-toolbar.d.ts +211 -0
- package/dist/components/ui/text-format-toolbar.d.ts.map +1 -0
- package/dist/components/ui/text-format-toolbar.js +186 -0
- package/dist/components/ui/timeline.d.ts.map +1 -1
- package/dist/components/ui/timeline.js +10 -1
- package/dist/components/ui/toast.d.ts +32 -10
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +150 -47
- package/dist/components/ui/toggle-group.d.ts +14 -5
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +15 -1
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +9 -1
- package/dist/components/ui/tree.d.ts +8 -0
- package/dist/components/ui/tree.d.ts.map +1 -1
- package/dist/components/ui/tree.js +92 -13
- package/dist/components/ui/video-player.d.ts +236 -0
- package/dist/components/ui/video-player.d.ts.map +1 -0
- package/dist/components/ui/video-player.js +72 -0
- package/dist/fonts/inter-latin-400-italic.woff2 +0 -0
- package/dist/index.d.ts +112 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +72 -0
- package/dist/lib/utils.d.ts +29 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +35 -0
- package/dist/live/index.d.ts +10 -3
- package/dist/live/index.d.ts.map +1 -1
- package/dist/live/index.js +12 -3
- package/dist/live/run-stream-01/run-stream.js +4 -4
- package/dist/live/tool-ledger-01/index.d.ts +3 -0
- package/dist/live/tool-ledger-01/index.d.ts.map +1 -0
- package/dist/live/tool-ledger-01/index.js +1 -0
- package/dist/live/tool-ledger-01/tool-ledger.d.ts +348 -0
- package/dist/live/tool-ledger-01/tool-ledger.d.ts.map +1 -0
- package/dist/live/tool-ledger-01/tool-ledger.js +245 -0
- package/dist/pages/about-page/index.d.ts +306 -0
- package/dist/pages/about-page/index.d.ts.map +1 -0
- package/dist/pages/about-page/index.js +161 -0
- package/dist/pages/careers-page/index.d.ts +288 -0
- package/dist/pages/careers-page/index.d.ts.map +1 -0
- package/dist/pages/careers-page/index.js +182 -0
- package/dist/pages/changelog-page/index.d.ts +255 -0
- package/dist/pages/changelog-page/index.d.ts.map +1 -0
- package/dist/pages/changelog-page/index.js +86 -0
- package/dist/pages/contact-page/index.d.ts +261 -0
- package/dist/pages/contact-page/index.d.ts.map +1 -0
- package/dist/pages/contact-page/index.js +136 -0
- package/dist/pages/docs-shell/docs-shell.d.ts +8 -0
- package/dist/pages/docs-shell/docs-shell.d.ts.map +1 -1
- package/dist/pages/docs-shell/docs-shell.js +24 -7
- package/dist/pages/error-page/index.d.ts +188 -0
- package/dist/pages/error-page/index.d.ts.map +1 -0
- package/dist/pages/error-page/index.js +98 -0
- package/dist/pages/index.d.ts +10 -0
- package/dist/pages/index.d.ts.map +1 -1
- package/dist/pages/index.js +14 -0
- package/dist/pages/legal-page/index.d.ts +194 -0
- package/dist/pages/legal-page/index.d.ts.map +1 -0
- package/dist/pages/legal-page/index.js +99 -0
- package/dist/pages/onboarding-page/index.d.ts +199 -0
- package/dist/pages/onboarding-page/index.d.ts.map +1 -0
- package/dist/pages/onboarding-page/index.js +71 -0
- package/dist/pages/pricing-page/index.d.ts +286 -0
- package/dist/pages/pricing-page/index.d.ts.map +1 -0
- package/dist/pages/pricing-page/index.js +139 -0
- package/dist/pages/search-page/index.d.ts +305 -0
- package/dist/pages/search-page/index.d.ts.map +1 -0
- package/dist/pages/search-page/index.js +142 -0
- package/dist/pages/status-page/index.d.ts +366 -0
- package/dist/pages/status-page/index.d.ts.map +1 -0
- package/dist/pages/status-page/index.js +136 -0
- package/dist/styles.css +1003 -55
- package/package.json +9 -3
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/utils.js';
|
|
3
|
+
import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, } from './table.js';
|
|
4
|
+
/** The fill and the stroke a named series is drawn in, from the tone it was given. */
|
|
5
|
+
const PAINT = {
|
|
6
|
+
'chart-1': { fill: 'fill-chart-1', stroke: 'stroke-chart-1' },
|
|
7
|
+
'chart-2': { fill: 'fill-chart-2', stroke: 'stroke-chart-2' },
|
|
8
|
+
'chart-3': { fill: 'fill-chart-3', stroke: 'stroke-chart-3' },
|
|
9
|
+
'chart-4': { fill: 'fill-chart-4', stroke: 'stroke-chart-4' },
|
|
10
|
+
'chart-5': { fill: 'fill-chart-5', stroke: 'stroke-chart-5' },
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The ink a series with no tone is drawn in.
|
|
14
|
+
*
|
|
15
|
+
* The supporting ink, and not a series role, on the reasoning on `ChartData`.
|
|
16
|
+
* It is a real class string rather than a token name so that the fill and the
|
|
17
|
+
* stroke stay one entry the drawing reads the same way in both directions.
|
|
18
|
+
*/
|
|
19
|
+
const UNTONE = { fill: 'fill-muted-foreground', stroke: 'stroke-muted-foreground' };
|
|
20
|
+
/**
|
|
21
|
+
* The field's own coordinate space, in the units the drawing is measured in.
|
|
22
|
+
*
|
|
23
|
+
* A viewBox rather than no viewBox, which is the opposite of what
|
|
24
|
+
* `chart-frame.tsx` does for its lines, and for one reason: an area is a filled
|
|
25
|
+
* region, and a region's outline is a list of coordinate pairs. That list is
|
|
26
|
+
* assembled here as a template, which is the same reason the assembly is a
|
|
27
|
+
* template in every Component in this package: a `Component` ships no
|
|
28
|
+
* reader-facing string, and a literal list of pairs is one. A viewBox is what
|
|
29
|
+
* lets the numbers be numbers. The cost is that the viewBox scales, so every
|
|
30
|
+
* stroked mark carries `vector-effect: non-scaling-stroke` and the stroke stays
|
|
31
|
+
* a device width in a box of any proportion. The alternative was percentage
|
|
32
|
+
* coordinates on HTML elements, which is what `ChartFrame` does, and a filled
|
|
33
|
+
* region has no percentage coordinate in SVG, so the region is what forced this
|
|
34
|
+
* answer.
|
|
35
|
+
*/
|
|
36
|
+
const FIELD = 100;
|
|
37
|
+
/**
|
|
38
|
+
* The gap between neighbouring marks, in field units.
|
|
39
|
+
*
|
|
40
|
+
* A fraction of the field rather than a pixel, because a pixel is a length the
|
|
41
|
+
* viewBox would scale and a gap is a proportion. It exists because a gap nobody
|
|
42
|
+
* can see is a grouping the colour has to carry on its own, and two series
|
|
43
|
+
* side by side in the same ink are not two series.
|
|
44
|
+
*/
|
|
45
|
+
const GAP = 0.8;
|
|
46
|
+
/** The ring's radius in the donut's own coordinate space. */
|
|
47
|
+
const RING_RADIUS = 38;
|
|
48
|
+
/** The ring's thickness in the same units, which sets the inner and outer edges. */
|
|
49
|
+
const RING_THICKNESS = 8;
|
|
50
|
+
/** The step a gridline is drawn at: one, two, five or ten times a power of ten. */
|
|
51
|
+
function niceStep(rough) {
|
|
52
|
+
if (!Number.isFinite(rough) || rough <= 0)
|
|
53
|
+
return 1;
|
|
54
|
+
const magnitude = 10 ** Math.floor(Math.log10(rough));
|
|
55
|
+
const normalised = rough / magnitude;
|
|
56
|
+
const step = normalised <= 1 ? 1 : normalised <= 2 ? 2 : normalised <= 5 ? 5 : 10;
|
|
57
|
+
return step * magnitude;
|
|
58
|
+
}
|
|
59
|
+
/** A coordinate to two places, so the emitted markup is not a run of float noise. */
|
|
60
|
+
function unit(value) {
|
|
61
|
+
return Math.round(value * 100) / 100;
|
|
62
|
+
}
|
|
63
|
+
/** A value held inside the axis, which is what keeps a mark off its own plot. */
|
|
64
|
+
function clamp(value, low, high) {
|
|
65
|
+
return Math.min(Math.max(value, low), high);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The vertical scale, derived from the values that have somewhere to be drawn.
|
|
69
|
+
*
|
|
70
|
+
* **The floor is zero on purpose.** A bar's length is only a measurement when
|
|
71
|
+
* it starts at a shared baseline, so zero is always one of the gridlines and is
|
|
72
|
+
* always labelled. The cost is a line whose values sit in a narrow band above
|
|
73
|
+
* zero is drawn almost flat, and the answer to that is the caller's `yMax` and
|
|
74
|
+
* the table, not a floor this Component drops.
|
|
75
|
+
*
|
|
76
|
+
* **A negative value gets a region below the baseline** rather than a
|
|
77
|
+
* zero-height bar. A profit and loss chart that drew a loss as nothing is a
|
|
78
|
+
* chart that is confidently wrong, and the region costs one more gridline.
|
|
79
|
+
*
|
|
80
|
+
* **A ceiling, when the caller passed one, is honoured exactly** and the
|
|
81
|
+
* intermediate gridlines are the step below it. That is the cost of the opt-in
|
|
82
|
+
* stated as arithmetic: if the ceiling is not a multiple of the step, the top
|
|
83
|
+
* band is shorter than the others, and the top gridline is the caller's number
|
|
84
|
+
* rather than a readable one. The alternative was rounding the ceiling away,
|
|
85
|
+
* which would have made the prop a suggestion.
|
|
86
|
+
*/
|
|
87
|
+
function scaleOf(values, ceiling) {
|
|
88
|
+
let lowest = 0;
|
|
89
|
+
let highest = 0;
|
|
90
|
+
for (const value of values) {
|
|
91
|
+
if (!Number.isFinite(value))
|
|
92
|
+
continue;
|
|
93
|
+
if (value < lowest)
|
|
94
|
+
lowest = value;
|
|
95
|
+
if (value > highest)
|
|
96
|
+
highest = value;
|
|
97
|
+
}
|
|
98
|
+
const step = niceStep((Math.max(highest, ceiling ?? highest) - lowest) / 4);
|
|
99
|
+
const first = Math.floor(lowest / step) * step;
|
|
100
|
+
// Ceiled rather than rounded, because a rounded count can leave the largest
|
|
101
|
+
// value above the top gridline, and a mark drawn above its own axis is a mark
|
|
102
|
+
// off the plot.
|
|
103
|
+
const last = ceiling ?? first + Math.max(1, Math.ceil((highest - first) / step - 1e-9)) * step;
|
|
104
|
+
const span = last - first;
|
|
105
|
+
const at = (value) => unit(((last - clamp(value, first, last)) / span) * 100);
|
|
106
|
+
const count = Math.max(1, Math.round((last - first) / step));
|
|
107
|
+
return {
|
|
108
|
+
lines: Array.from({ length: count + 1 }, (_, index) => unit(first + index * step)),
|
|
109
|
+
at,
|
|
110
|
+
// The bar spans between the value and the zero line, which are the same
|
|
111
|
+
// point when the value is zero, so a zero draws nothing rather than a sliver.
|
|
112
|
+
bar: (value) => {
|
|
113
|
+
const here = at(value);
|
|
114
|
+
const baseline = at(0);
|
|
115
|
+
return { top: Math.min(here, baseline), height: Math.abs(here - baseline) };
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Where a category sits on the horizontal axis, as a share of the field.
|
|
121
|
+
*
|
|
122
|
+
* A line's points run from the first category to the last, so the axis is the
|
|
123
|
+
* gap between them and a single category sits in the middle, which is the only
|
|
124
|
+
* place a lone category can be read against anything. A bar's category is a
|
|
125
|
+
* column rather than a point, so its position is the column's centre, and that
|
|
126
|
+
* is the same reason a bar chart's first bar is not flush with the axis.
|
|
127
|
+
*/
|
|
128
|
+
function categoryAt(index, total, variant) {
|
|
129
|
+
if (variant === 'bar')
|
|
130
|
+
return unit(((index + 0.5) / total) * FIELD);
|
|
131
|
+
if (total <= 1)
|
|
132
|
+
return FIELD / 2;
|
|
133
|
+
return unit((index / (total - 1)) * FIELD);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Where a category label is nudged to sit, so no label hangs off the plot.
|
|
137
|
+
*
|
|
138
|
+
* A line's label is centred on its point, which puts the first and the last
|
|
139
|
+
* half outside the field, so the edge labels are pinned to the edge instead. A
|
|
140
|
+
* bar's categories are column centres with room on both sides, so every label is
|
|
141
|
+
* centred.
|
|
142
|
+
*/
|
|
143
|
+
function labelAlign(index, total, variant) {
|
|
144
|
+
if (variant === 'bar' || total < 2)
|
|
145
|
+
return '-translate-x-1/2';
|
|
146
|
+
if (index === 0)
|
|
147
|
+
return 'translate-x-0';
|
|
148
|
+
if (index === total - 1)
|
|
149
|
+
return '-translate-x-full';
|
|
150
|
+
return '-translate-x-1/2';
|
|
151
|
+
}
|
|
152
|
+
/** The shares a donut may draw, as a percentage of the ring, or nothing at all. */
|
|
153
|
+
function donutShares(series) {
|
|
154
|
+
const single = (entry) => entry.values.length === 1 && Number.isFinite(entry.values[0]);
|
|
155
|
+
if (series.length === 1 && single(series[0])) {
|
|
156
|
+
return [100];
|
|
157
|
+
}
|
|
158
|
+
if (series.length === 2 && series.every(single)) {
|
|
159
|
+
const parts = series.map((entry) => entry.values[0]);
|
|
160
|
+
const total = parts[0] + parts[1];
|
|
161
|
+
if (!(total > 0))
|
|
162
|
+
return null;
|
|
163
|
+
return [unit((parts[0] / total) * 100), unit((parts[1] / total) * 100)];
|
|
164
|
+
}
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
/** The fill and the stroke one series is drawn in, from the tone it was given. */
|
|
168
|
+
function paintOf(entry) {
|
|
169
|
+
return entry.tone ? PAINT[entry.tone] : UNTONE;
|
|
170
|
+
}
|
|
171
|
+
/** The marks one series contributes to the field, for a bar chart. */
|
|
172
|
+
function barsOf(entry, index, scale, columns, total, fill) {
|
|
173
|
+
const slot = FIELD / Math.max(1, columns) / Math.max(1, total);
|
|
174
|
+
return entry.values.map((value, column) => {
|
|
175
|
+
if (!Number.isFinite(value))
|
|
176
|
+
return null;
|
|
177
|
+
const { top, height } = scale.bar(value);
|
|
178
|
+
return (_jsx("rect", { "data-slot": "chart-bar", "data-series": index, x: unit(column * slot * total + index * slot + GAP / 2), y: top, width: unit(slot - GAP), height: height, className: fill }, `${index}-${column}`));
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/** The polyline one series contributes to the field, for a line or an area. */
|
|
182
|
+
function pathOf(entry, index, scale, columns, variant, paint, area) {
|
|
183
|
+
const points = entry.values
|
|
184
|
+
.map((value, at) => ({ at, value }))
|
|
185
|
+
.filter((point) => Number.isFinite(point.value))
|
|
186
|
+
.map((point) => ({
|
|
187
|
+
x: categoryAt(point.at, columns, variant),
|
|
188
|
+
y: scale.at(point.value),
|
|
189
|
+
}));
|
|
190
|
+
if (points.length === 0)
|
|
191
|
+
return null;
|
|
192
|
+
// A series with one value has no shape to draw, and a line chart of a single
|
|
193
|
+
// value is a flat line rather than nothing. A rule across the field says
|
|
194
|
+
// exactly that and nothing more, where a dot would have said a position and
|
|
195
|
+
// invited a reading of a trend that is not in the data.
|
|
196
|
+
if (points.length === 1) {
|
|
197
|
+
const only = points[0];
|
|
198
|
+
return (_jsx("line", { "data-slot": "chart-line", "data-series": index, vectorEffect: "non-scaling-stroke", strokeWidth: 2, strokeLinecap: "round", x1: 0, y1: only.y, x2: FIELD, y2: only.y, className: paint.stroke }, `${index}-flat`));
|
|
199
|
+
}
|
|
200
|
+
const first = points[0];
|
|
201
|
+
const last = points[points.length - 1];
|
|
202
|
+
const baseline = scale.at(0);
|
|
203
|
+
// The outline is assembled as a template rather than written out, because a
|
|
204
|
+
// literal list of coordinate pairs is a word-shaped string in a Component that
|
|
205
|
+
// ships no reader-facing copy, and because the list is not known here anyway.
|
|
206
|
+
const outline = `${first.x} ${baseline}${points.map((point) => ` ${point.x} ${point.y}`).join('')}${last.x} ${baseline}`;
|
|
207
|
+
return (_jsxs("g", { "data-slot": area ? 'chart-area' : 'chart-line', "data-series": index, children: [area ? _jsx("polygon", { points: outline, className: `${paint.fill}/40` }) : null, points.slice(1).map((point, at) => {
|
|
208
|
+
const from = points[at];
|
|
209
|
+
return (_jsx("line", { vectorEffect: "non-scaling-stroke", strokeWidth: 2, strokeLinecap: "round", x1: from.x, y1: from.y, x2: point.x, y2: point.y, className: paint.stroke }, at));
|
|
210
|
+
})] }, `${index}-path`));
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* A chart: the marks, the axes, and the numbers behind them.
|
|
214
|
+
*
|
|
215
|
+
* **The chart is never the only way to read the numbers.** That is the
|
|
216
|
+
* constraint worth making, and it is a constraint on the caller as much as on
|
|
217
|
+
* this Component. The argument is the one `carousel.tsx` makes about everything
|
|
218
|
+
* a carousel shows: everything this Component draws, a reader must be able to
|
|
219
|
+
* reach some other way, because a chart is a picture whose entire content is a
|
|
220
|
+
* position, and a position is the one thing a screen reader, a crawler and a
|
|
221
|
+
* print stylesheet cannot read. There is a concrete failure behind each of
|
|
222
|
+
* them. A screen reader given a `<figure>` full of rectangles is read a list of
|
|
223
|
+
* nothing. A crawler sees the labels and the marks and no values at all, so
|
|
224
|
+
* every figure a product site publishes is invisible to the thing that indexes
|
|
225
|
+
* it. A print stylesheet loses the channel the series were separated by, and
|
|
226
|
+
* two of the five roles measure below 3:1 on a light card and go to the same
|
|
227
|
+
* grey, so a printed chart is a chart where the legend is the only difference
|
|
228
|
+
* between two lines.
|
|
229
|
+
*
|
|
230
|
+
* So the marks and the cells are two renderings of one `series` array rather
|
|
231
|
+
* than a chart and a table a caller kept in step, and the table is in the
|
|
232
|
+
* document whether or not anybody can see it. A `<table>` with a `<caption>`,
|
|
233
|
+
* a row head for each category and a column head for each series, so a reader
|
|
234
|
+
* navigates it by row and by cell and hears the figures the marks are drawn
|
|
235
|
+
* from. The alternative was a `table` prop, and the reasoning against it is
|
|
236
|
+
* `chart-frame`'s: a chart whose accessible representation is a sibling prop is
|
|
237
|
+
* a chart whose table a consumer wrote once and updated when the data changed,
|
|
238
|
+
* which is to say a chart whose table says last quarter. There is no prop that
|
|
239
|
+
* turns it off, because a prop is a default and the default would be off and
|
|
240
|
+
* the failure would be invisible.
|
|
241
|
+
*
|
|
242
|
+
* **There is no hover tooltip, and that is the same argument from the other
|
|
243
|
+
* side.** A tooltip is the usual answer to the exact value, and it answers a
|
|
244
|
+
* question a pointer asked, which is a question a keyboard never asks and a
|
|
245
|
+
* print stylesheet cannot receive. A picture a reader cannot query is the
|
|
246
|
+
* failure the table exists to prevent, so the exact value is answered by the
|
|
247
|
+
* table rather than by a surface that appears under a pointer.
|
|
248
|
+
*
|
|
249
|
+
* **The geometry does not move.** There is no draw-in, no bar that grows, no
|
|
250
|
+
* transition on any of the marks, and the reason is that the motion law refuses
|
|
251
|
+
* entrance effects outright, so a chart would not need an argument to be
|
|
252
|
+
* refused: a bar arriving is decoration, and the reader was not waiting for it.
|
|
253
|
+
* There is also no reason for one. A bar's height is its value, and a value
|
|
254
|
+
* that changes is the caller rendering a different number, so a transition
|
|
255
|
+
* between two values is a transition between two facts, and a reader watching
|
|
256
|
+
* one arrive has learned nothing they could not have read from the second one.
|
|
257
|
+
* This is a server Component: no hook, no state, no effect, and the whole
|
|
258
|
+
* figure is arithmetic over props, which is why `check-client-budget` has no
|
|
259
|
+
* reason to know it exists.
|
|
260
|
+
*
|
|
261
|
+
* **The axis is derived and a caller's maximum is opt-in.** Prism does not take
|
|
262
|
+
* a vertical maximum by default, and the reason is specific: a caller who
|
|
263
|
+
* pre-normalises has two chances to get the axis wrong rather than one. They
|
|
264
|
+
* compute the maximum, and then they label the gridlines, and a mistake in
|
|
265
|
+
* either step is invisible in the rendered chart because the picture is drawn
|
|
266
|
+
* perfectly faithfully to the wrong number. A mislabelled axis is a lie with a
|
|
267
|
+
* typeface on it, and it is a worse lie than a flat line because a flat line
|
|
268
|
+
* looks like a flat line. `yMax` exists for the one case that genuinely needs
|
|
269
|
+
* it, a line in a narrow band high on the scale that the reader wants to see
|
|
270
|
+
* the shape of, and it costs what the prop says: the caller owns the top, a
|
|
271
|
+
* value above it is clamped to the top gridline and counted on the element as
|
|
272
|
+
* `data-clamped`, and a ceiling that is not a multiple of the step leaves a
|
|
273
|
+
* shorter band at the top. The floor stays at zero whatever is passed, because
|
|
274
|
+
* a bar measured from anywhere but the baseline is not a measurement.
|
|
275
|
+
*
|
|
276
|
+
* **The donut is here for one shape of data, and the shape is named.** A bar
|
|
277
|
+
* chart is the honest default: it is read as lengths against a common baseline,
|
|
278
|
+
* it is the mark that survives greyscale, and it holds up at eight parts where a
|
|
279
|
+
* ring does not. What it is bad at is a part-to-whole with two or three parts,
|
|
280
|
+
* because there the reader is not comparing lengths, they are reading a
|
|
281
|
+
* proportion, and two lengths that must be mentally added are the harder task.
|
|
282
|
+
* A ring answers "what share is this" in one glance where the bars answer it
|
|
283
|
+
* after a division, and the centre answers the total the reader then wants
|
|
284
|
+
* anyway. So the variant exists for that condition and refuses everything else:
|
|
285
|
+
* `donut` takes exactly two series with one value each, or one series with a
|
|
286
|
+
* single value, which is the same claim with nothing to divide. At three parts
|
|
287
|
+
* the ring stops being read as a proportion and starts being read as a puzzle,
|
|
288
|
+
* and a ring that a reader has to count the segments of is worse than three
|
|
289
|
+
* bars. Naming the condition is the point: an unmarked donut prop would let the
|
|
290
|
+
* choice be casual, and a casual donut is a pie with nine slices in a
|
|
291
|
+
* dashboard.
|
|
292
|
+
*
|
|
293
|
+
* **The five series roles are the token contract's, not this file's.** `tone` is
|
|
294
|
+
* `ChartColor` from `chart-frame`, for the reason that type's own documentation
|
|
295
|
+
* gives: `chart-1` through `chart-5` is the only five-way set the contract
|
|
296
|
+
* publishes, so a wider type here would be a wider palette and a second source
|
|
297
|
+
* of truth for something the tokens already own. Every stroke and every fill
|
|
298
|
+
* below is one of those roles, `muted-foreground`, `muted`, `foreground` or
|
|
299
|
+
* `border`, named as a utility so a scoped `data-pack` boundary above the
|
|
300
|
+
* figure restyles all of it through the cascade. The gridlines are `border`,
|
|
301
|
+
* which is the contract's own low emphasis, rather than a lighter value invented
|
|
302
|
+
* here, and there is no gradient: a gradient of contract stops would be allowed
|
|
303
|
+
* and there is no decision behind one.
|
|
304
|
+
*
|
|
305
|
+
* **What this is not.** There is no axis a caller can log, no second axis, no
|
|
306
|
+
* stacking, no curve interpolation, no zoom, no crosshair, and no per-point
|
|
307
|
+
* mark on a line. A distribution, a ranking, a correlation and a histogram are
|
|
308
|
+
* a charting library's work, and this Component is the frame and the table that
|
|
309
|
+
* library's marks should sit inside rather than the library.
|
|
310
|
+
*/
|
|
311
|
+
function Chart({ series, variant, labels, label, height = 240, legend, caption, yMax, centreLabel, className, }) {
|
|
312
|
+
// The legend's default is a function of the series count, so it is resolved
|
|
313
|
+
// here rather than as a default in the signature: `series.length > 1` is not a
|
|
314
|
+
// literal a caller may override, it is the answer to a question about the data
|
|
315
|
+
// that only the data can answer.
|
|
316
|
+
const wantsLegend = legend ?? series.length > 1;
|
|
317
|
+
const plotted = series.flatMap((entry) => entry.values.filter((value) => Number.isFinite(value)));
|
|
318
|
+
const shares = variant === 'donut' ? donutShares(series) : null;
|
|
319
|
+
const clamped = plotted.filter((value) => yMax !== undefined && value > yMax).length;
|
|
320
|
+
// The caption of the table names the figure and then every series in it, so a
|
|
321
|
+
// reader who has navigated into the table knows which chart they are in and
|
|
322
|
+
// which column is which. It is assembled at runtime from the caller's own
|
|
323
|
+
// words, because the punctuation is not a sentence this Component is entitled
|
|
324
|
+
// to write and a literal joining two props would be one.
|
|
325
|
+
const tableCaption = `${label}: ${series.map((entry) => entry.name).join(', ')}`;
|
|
326
|
+
const table = (_jsx("div", { "data-slot": "chart-table", className: "sr-only", children: _jsxs(Table, { children: [_jsx(TableCaption, { children: tableCaption }), _jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { className: "w-24" }), series.map((entry, index) => (_jsx(TableHead, { className: "text-right tabular-nums", children: entry.name }, index)))] }) }), _jsx(TableBody, { children: Array.from({ length: labels === undefined ? 1 : Math.max(1, labels.length) }, (_, row) => (_jsxs(TableRow, { children: [_jsx(TableHead, { scope: "row", className: "font-medium", children: labels === undefined ? null : (labels[row] ?? null) }), series.map((entry, index) => (_jsx(TableCell, { className: "text-right tabular-nums", "data-series": index, children: labels === undefined ? (entry.values[0] ?? null) : (entry.values[row] ?? null) }, index)))] }, row))) })] }) }));
|
|
327
|
+
const captionNode = caption === undefined ? null : (_jsx("p", { "data-slot": "chart-caption", className: "text-muted-foreground text-sm", children: caption }));
|
|
328
|
+
const legendNode = wantsLegend ? _jsx(ChartLegend, { series: series }) : null;
|
|
329
|
+
if (variant === 'donut') {
|
|
330
|
+
return (_jsxs("figure", { "data-slot": "chart", "data-variant": "donut", "data-plotted": shares === null ? 0 : shares.length, "aria-label": label, className: cn('flex w-full flex-col gap-3', className), children: [_jsx("div", { "data-slot": "chart-field", className: "flex justify-center", children: shares === null ? null : (_jsxs("div", { "data-slot": "chart-donut", className: "relative", children: [_jsxs("svg", { "data-slot": "chart-geometry", viewBox: `0 0 ${FIELD} ${FIELD}`, "aria-hidden": "true", className: "size-40", children: [_jsx("circle", { "data-slot": "chart-donut-track", cx: FIELD / 2, cy: FIELD / 2, r: RING_RADIUS, strokeWidth: RING_THICKNESS, className: "fill-none stroke-muted" }), _jsx("g", { "data-slot": "chart-donut-segments", transform: `rotate(-90 ${FIELD / 2} ${FIELD / 2})`, children: shares.map((share, index) => {
|
|
331
|
+
const before = shares.slice(0, index).reduce((total, value) => total + value, 0);
|
|
332
|
+
return (_jsx("circle", { "data-slot": "chart-donut-segment", "data-series": index, cx: FIELD / 2, cy: FIELD / 2, r: RING_RADIUS, pathLength: FIELD, strokeWidth: RING_THICKNESS, strokeDasharray: `${share} ${FIELD - share}`, strokeDashoffset: before === 0 ? 0 : -unit(before), className: cn('fill-none', paintOf(series[index]).stroke) }, index));
|
|
333
|
+
}) })] }), centreLabel === undefined ? null : (_jsx("div", { "data-slot": "chart-donut-centre", className: "absolute inset-0 flex items-center justify-center px-6 text-center", children: centreLabel }))] })) }), legendNode, captionNode, table] }));
|
|
334
|
+
}
|
|
335
|
+
const scale = scaleOf(plotted, yMax);
|
|
336
|
+
const columns = labels !== undefined && labels.length > 0
|
|
337
|
+
? labels.length
|
|
338
|
+
: series.reduce((most, entry) => Math.max(most, entry.values.length), 0);
|
|
339
|
+
const onAxis = variant === 'bar' || variant === 'line';
|
|
340
|
+
return (_jsxs("figure", { "data-slot": "chart", "data-variant": variant, "data-plotted": plotted.length, "data-clamped": clamped === 0 ? undefined : clamped, "aria-label": label, className: cn('flex w-full flex-col gap-3', className), children: [_jsxs("div", { "data-slot": "chart-plot", className: "flex flex-col gap-2", children: [_jsxs("div", { "data-slot": "chart-plot-row", className: "flex items-stretch gap-2", children: [_jsx("div", { "data-slot": "chart-axis-y", className: "relative w-12 shrink-0", children: scale.lines.map((value) => (_jsx("span", { "data-slot": "chart-tick", className: "text-muted-foreground absolute right-0 -translate-y-1/2 text-xs tabular-nums", style: { top: `${scale.at(value)}%` }, children: value }, value))) }), _jsx("div", { "data-slot": "chart-field", className: "relative flex-1", style: { height }, children: _jsxs("svg", { "data-slot": "chart-geometry", viewBox: `0 0 ${FIELD} ${FIELD}`, preserveAspectRatio: "none", "aria-hidden": "true", className: "absolute inset-0 size-full", children: [scale.lines.map((value) => (_jsx("line", { "data-slot": "chart-gridline", vectorEffect: "non-scaling-stroke", strokeWidth: 1, x1: 0, x2: FIELD, y1: scale.at(value), y2: scale.at(value), className: "stroke-border" }, value))), variant === 'bar' ? (_jsx("line", { "data-slot": "chart-baseline", vectorEffect: "non-scaling-stroke", strokeWidth: 1.5, x1: 0, x2: FIELD, y1: scale.at(0), y2: scale.at(0), className: "stroke-foreground" })) : null, series.flatMap((entry, index) => variant === 'bar'
|
|
341
|
+
? barsOf(entry, index, scale, columns, series.length, paintOf(entry).fill)
|
|
342
|
+
: [
|
|
343
|
+
pathOf(entry, index, scale, columns, variant, paintOf(entry), variant === 'area'),
|
|
344
|
+
])] }) })] }), onAxis && labels !== undefined && labels.length > 0 ? (_jsxs("div", { "data-slot": "chart-axis-x-row", className: "flex items-stretch gap-2", children: [_jsx("span", { "data-slot": "chart-axis-x-gutter", "aria-hidden": "true", className: "w-12 shrink-0" }), _jsx("div", { "data-slot": "chart-axis-x", className: "relative h-4 flex-1", children: labels.map((name, index) => (_jsx("span", { "data-slot": "chart-category", className: cn('text-muted-foreground absolute top-0 max-w-20 truncate text-xs', labelAlign(index, columns, variant)), style: { left: `${categoryAt(index, columns, variant)}%` }, children: name }, index))) })] })) : null] }), legendNode, captionNode, table] }));
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* A legend: a swatch and a name for each series, and nothing else.
|
|
348
|
+
*
|
|
349
|
+
* Its own export rather than a fixed position under the plot, because a legend
|
|
350
|
+
* is a layout decision the surrounding design usually has an opinion about. A
|
|
351
|
+
* chart in a dashboard card, in a full-width figure between two paragraphs, and
|
|
352
|
+
* beside a key in a table of figures are three different places, and a Component
|
|
353
|
+
* that fixed one of them made the other two a workaround. So `Chart` draws it
|
|
354
|
+
* where the figure puts it and a caller who needs it elsewhere passes
|
|
355
|
+
* `legend={false}` and renders this with the same `series` array, which is the
|
|
356
|
+
* only reason the swatch and the mark cannot disagree.
|
|
357
|
+
*
|
|
358
|
+
* It is a `<ul>` rather than a `<div>` of spans, so a reader moving by list
|
|
359
|
+
* item is told how many series there are, and each entry is a swatch and a name
|
|
360
|
+
* with the swatch hidden, because a screen reader has no use for a colour and
|
|
361
|
+
* announcing one would replace the name with the thing the name is there to
|
|
362
|
+
* avoid. The same warning applies to a printed legend: two of the five roles go
|
|
363
|
+
* to the same grey on paper, so the legend is what tells a printed chart's
|
|
364
|
+
* series apart rather than an addition to it.
|
|
365
|
+
*/
|
|
366
|
+
function ChartLegend({ series, className, }) {
|
|
367
|
+
return (_jsx("ul", { "data-slot": "chart-legend", className: cn('text-muted-foreground flex flex-wrap gap-x-4 gap-y-1 text-xs', className), children: series.map((entry, index) => (_jsxs("li", { "data-slot": "chart-legend-entry", className: "flex items-center gap-1.5", children: [_jsx("span", { "data-slot": "chart-swatch", "aria-hidden": "true", className: cn('size-2.5 shrink-0 rounded-sm', paintOf(entry).fill) }), entry.name] }, index))) }));
|
|
368
|
+
}
|
|
369
|
+
export { Chart, ChartLegend };
|
|
@@ -37,6 +37,16 @@ export interface CheckboxProps extends Omit<ComponentProps<'span'>, 'onChange'>
|
|
|
37
37
|
* toggles the focused control, and the indeterminate state is announced as
|
|
38
38
|
* `mixed` to assistive technology. Pair it with a `FieldLabel` in a `Field`,
|
|
39
39
|
* and mark it invalid with `aria-invalid` when the value is rejected.
|
|
40
|
+
*
|
|
41
|
+
* **A coarse pointer gets a 44px box and the desktop 16px box is untouched.** The
|
|
42
|
+
* step is the same one `checklist.tsx` takes on the completion control it composes
|
|
43
|
+
* from this Component, and for the same reason: a queue is worked with a thumb and a
|
|
44
|
+
* form is filled with one, but neither is worked with a fingertip that can hit sixteen
|
|
45
|
+
* pixels of a bordered square. The desktop size stays `size-4` because a form
|
|
46
|
+
* checkbox is a document control and a 44px square in a column of fields is not one,
|
|
47
|
+
* and the floor is a `@media (pointer: coarse)` step rather than a second size for the
|
|
48
|
+
* same input. The price is a 44px bordered box and a row that grows to hold it, which
|
|
49
|
+
* is the price `tag-group.tsx` records for the same reason.
|
|
40
50
|
*/
|
|
41
51
|
declare function Checkbox({ className, indeterminate, ...props }: CheckboxProps): import("react").JSX.Element;
|
|
42
52
|
export { Checkbox };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAC7E,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gEAAgE;IAChE,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAC7C;AAED
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAC7E,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gEAAgE;IAChE,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAC7C;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAoCtE;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -11,8 +11,26 @@ import { cn } from '../../lib/utils.js';
|
|
|
11
11
|
* toggles the focused control, and the indeterminate state is announced as
|
|
12
12
|
* `mixed` to assistive technology. Pair it with a `FieldLabel` in a `Field`,
|
|
13
13
|
* and mark it invalid with `aria-invalid` when the value is rejected.
|
|
14
|
+
*
|
|
15
|
+
* **A coarse pointer gets a 44px box and the desktop 16px box is untouched.** The
|
|
16
|
+
* step is the same one `checklist.tsx` takes on the completion control it composes
|
|
17
|
+
* from this Component, and for the same reason: a queue is worked with a thumb and a
|
|
18
|
+
* form is filled with one, but neither is worked with a fingertip that can hit sixteen
|
|
19
|
+
* pixels of a bordered square. The desktop size stays `size-4` because a form
|
|
20
|
+
* checkbox is a document control and a 44px square in a column of fields is not one,
|
|
21
|
+
* and the floor is a `@media (pointer: coarse)` step rather than a second size for the
|
|
22
|
+
* same input. The price is a 44px bordered box and a row that grows to hold it, which
|
|
23
|
+
* is the price `tag-group.tsx` records for the same reason.
|
|
14
24
|
*/
|
|
15
25
|
function Checkbox({ className, indeterminate, ...props }) {
|
|
16
|
-
return (_jsx(CheckboxPrimitive.Root, { "data-slot": "checkbox", indeterminate: indeterminate, className: cn('border-input bg-background text-primary-foreground shadow-xs peer size-4 shrink-0 rounded-sm border outline-none',
|
|
26
|
+
return (_jsx(CheckboxPrimitive.Root, { "data-slot": "checkbox", indeterminate: indeterminate, className: cn('border-input bg-background text-primary-foreground shadow-xs peer size-4 shrink-0 rounded-sm border outline-none',
|
|
27
|
+
// A `pointer-coarse:` step rather than an invisible band, and the reason is
|
|
28
|
+
// `todo-01`. A band around a 16px box reaches fourteen pixels past it in every
|
|
29
|
+
// direction, and that Block's rows are stacked against a shared border with no
|
|
30
|
+
// gap, so the band around one row's checkbox covers the top of the next row's
|
|
31
|
+
// checkbox. Growing the box grows the row with it, which cannot reach anything.
|
|
32
|
+
// See `switch.tsx` and `slider.tsx` for the cases where a band is the answer,
|
|
33
|
+
// which are the cases where nothing sits within a band of the control.
|
|
34
|
+
'pointer-coarse:size-11', 'transition-[color,box-shadow,background-color] duration-fast ease-out', 'data-[checked]:border-primary data-[checked]:bg-primary data-[indeterminate]:border-primary data-[indeterminate]:bg-primary', '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', className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "flex items-center justify-center text-current", children: indeterminate ? (_jsx(MinusIcon, { className: "size-3.5" })) : (_jsx(CheckIcon, { className: "size-3.5" })) }) }));
|
|
17
35
|
}
|
|
18
36
|
export { Checkbox };
|