@smicolon/fasla-ui 0.5.1 → 0.7.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/README.md +42 -14
- package/dist/cli/index.js +2286 -195
- package/dist/index.cjs +50 -12
- package/dist/index.js +50 -12
- package/dist/motion/index.cjs +12 -0
- package/dist/motion/index.d.cts +7 -0
- package/dist/motion/index.d.ts +7 -0
- package/dist/motion/index.js +12 -0
- package/dist/registry/index.cjs +4 -4
- package/dist/registry/index.js +4 -4
- package/dist/tokens/index.cjs +34 -8
- package/dist/tokens/index.d.cts +23 -1
- package/dist/tokens/index.d.ts +23 -1
- package/dist/tokens/index.js +34 -8
- package/package.json +12 -3
- package/registry/blocks/about-approach-stack-cards/AboutApproachStackCards.tsx +305 -0
- package/registry/blocks/about-approach-stack-cards/index.ts +9 -0
- package/registry/blocks/about-bento/AboutBento.tsx +442 -0
- package/registry/blocks/about-bento/index.ts +9 -0
- package/registry/blocks/about-collage-hero/AboutCollageHero.tsx +285 -0
- package/registry/blocks/about-collage-hero/index.ts +8 -0
- package/registry/blocks/about-color-bento/AboutColorBento.tsx +235 -0
- package/registry/blocks/about-color-bento/index.ts +6 -0
- package/registry/blocks/about-culture-masonry/AboutCultureMasonry.tsx +305 -0
- package/registry/blocks/about-culture-masonry/index.ts +9 -0
- package/registry/blocks/about-headline-photos/AboutHeadlinePhotos.tsx +270 -0
- package/registry/blocks/about-headline-photos/index.ts +8 -0
- package/registry/blocks/about-impact-stats-band/AboutImpactStatsBand.test.tsx +45 -0
- package/registry/blocks/about-impact-stats-band/AboutImpactStatsBand.tsx +348 -0
- package/registry/blocks/about-impact-stats-band/index.ts +9 -0
- package/registry/blocks/about-letter-card/AboutLetterCard.tsx +403 -0
- package/registry/blocks/about-letter-card/index.ts +9 -0
- package/registry/blocks/about-mission-statement-hero/AboutMissionStatementHero.tsx +282 -0
- package/registry/blocks/about-mission-statement-hero/index.ts +8 -0
- package/registry/blocks/about-numbered-rows/AboutNumberedRows.tsx +289 -0
- package/registry/blocks/about-numbered-rows/index.ts +7 -0
- package/registry/blocks/about-split-panel/AboutSplitPanel.tsx +247 -0
- package/registry/blocks/about-split-panel/index.ts +8 -0
- package/registry/blocks/about-spotlight/AboutSpotlight.tsx +260 -0
- package/registry/blocks/about-spotlight/index.ts +7 -0
- package/registry/blocks/about-statement-band/AboutStatementBand.tsx +236 -0
- package/registry/blocks/about-statement-band/index.ts +7 -0
- package/registry/blocks/about-story-photos/AboutStoryPhotos.test.tsx +12 -0
- package/registry/blocks/about-story-photos/AboutStoryPhotos.tsx +252 -0
- package/registry/blocks/about-story-photos/index.ts +8 -0
- package/registry/blocks/about-story-snapshots/AboutStorySnapshots.tsx +239 -0
- package/registry/blocks/about-story-snapshots/index.ts +8 -0
- package/registry/blocks/about-type-stack/AboutTypeStack.tsx +205 -0
- package/registry/blocks/about-type-stack/index.ts +6 -0
- package/registry/blocks/about-values-connector-list/AboutValuesConnectorList.tsx +316 -0
- package/registry/blocks/about-values-connector-list/index.ts +7 -0
- package/registry/blocks/about-values-focus/AboutValuesFocus.tsx +303 -0
- package/registry/blocks/about-values-focus/index.ts +8 -0
- package/registry/blocks/about-values-spotlight/AboutValuesSpotlight.tsx +265 -0
- package/registry/blocks/about-values-spotlight/index.ts +8 -0
- package/registry/blocks/auth-centered-card-sign-in/AuthCenteredCardSignIn.tsx +373 -0
- package/registry/blocks/auth-centered-card-sign-in/index.ts +9 -0
- package/registry/blocks/auth-check-your-email/AuthCheckYourEmail.tsx +366 -0
- package/registry/blocks/auth-check-your-email/index.ts +7 -0
- package/registry/blocks/auth-forgot-password/AuthForgotPassword.tsx +265 -0
- package/registry/blocks/auth-forgot-password/index.ts +8 -0
- package/registry/blocks/auth-locked-session-re-authenticate/AuthLockedSessionReAuthenticate.tsx +305 -0
- package/registry/blocks/auth-locked-session-re-authenticate/index.ts +8 -0
- package/registry/blocks/auth-magic-link-request/AuthMagicLinkRequest.tsx +336 -0
- package/registry/blocks/auth-magic-link-request/index.ts +8 -0
- package/registry/blocks/auth-minimal-centered-sign-in/AuthMinimalCenteredSignIn.tsx +261 -0
- package/registry/blocks/auth-minimal-centered-sign-in/index.ts +8 -0
- package/registry/blocks/auth-multi-step-sign-up-wizard/AuthMultiStepSignUpWizard.tsx +460 -0
- package/registry/blocks/auth-multi-step-sign-up-wizard/index.ts +8 -0
- package/registry/blocks/auth-otp-verification/AuthOtpVerification.tsx +348 -0
- package/registry/blocks/auth-otp-verification/index.ts +7 -0
- package/registry/blocks/auth-passkey-sign-in/AuthPasskeySignIn.tsx +294 -0
- package/registry/blocks/auth-passkey-sign-in/index.ts +8 -0
- package/registry/blocks/auth-password-changed/AuthPasswordChanged.tsx +239 -0
- package/registry/blocks/auth-password-changed/index.ts +8 -0
- package/registry/blocks/auth-phone-number-sign-in/AuthPhoneNumberSignIn.tsx +402 -0
- package/registry/blocks/auth-phone-number-sign-in/index.ts +10 -0
- package/registry/blocks/auth-photo-background-sign-in/AuthPhotoBackgroundSignIn.tsx +398 -0
- package/registry/blocks/auth-photo-background-sign-in/index.ts +10 -0
- package/registry/blocks/auth-profile-setup-onboarding/AuthProfileSetupOnboarding.tsx +420 -0
- package/registry/blocks/auth-profile-setup-onboarding/index.ts +7 -0
- package/registry/blocks/auth-qr-device-login/AuthQrDeviceLogin.tsx +303 -0
- package/registry/blocks/auth-qr-device-login/index.ts +7 -0
- package/registry/blocks/auth-reset-password/AuthResetPassword.tsx +313 -0
- package/registry/blocks/auth-reset-password/index.ts +7 -0
- package/registry/blocks/auth-sign-in-error-state/AuthSignInErrorState.tsx +419 -0
- package/registry/blocks/auth-sign-in-error-state/index.ts +9 -0
- package/registry/blocks/auth-sign-up-benefits-column/AuthSignUpBenefitsColumn.tsx +481 -0
- package/registry/blocks/auth-sign-up-benefits-column/index.ts +10 -0
- package/registry/blocks/auth-sign-up-password-strength/AuthSignUpPasswordStrength.tsx +511 -0
- package/registry/blocks/auth-sign-up-password-strength/index.ts +8 -0
- package/registry/blocks/auth-social-first-sign-in/AuthSocialFirstSignIn.tsx +337 -0
- package/registry/blocks/auth-social-first-sign-in/index.ts +9 -0
- package/registry/blocks/auth-split-photo-sign-in/AuthSplitPhotoSignIn.tsx +472 -0
- package/registry/blocks/auth-split-photo-sign-in/index.ts +11 -0
- package/registry/blocks/auth-split-testimonial-sign-up/AuthSplitTestimonialSignUp.tsx +548 -0
- package/registry/blocks/auth-split-testimonial-sign-up/index.ts +11 -0
- package/registry/blocks/auth-tabbed-sign-in-sign-up/AuthTabbedSignInSignUp.tsx +566 -0
- package/registry/blocks/auth-tabbed-sign-in-sign-up/index.ts +11 -0
- package/registry/blocks/auth-team-invite-accept/AuthTeamInviteAccept.tsx +372 -0
- package/registry/blocks/auth-team-invite-accept/index.ts +9 -0
- package/registry/blocks/auth-two-factor-authenticator/AuthTwoFactorAuthenticator.tsx +333 -0
- package/registry/blocks/auth-two-factor-authenticator/index.ts +7 -0
- package/registry/blocks/auth-two-factor-method-chooser/AuthTwoFactorMethodChooser.tsx +290 -0
- package/registry/blocks/auth-two-factor-method-chooser/index.ts +8 -0
- package/registry/blocks/auth-waitlist-early-access/AuthWaitlistEarlyAccess.tsx +430 -0
- package/registry/blocks/auth-waitlist-early-access/index.ts +11 -0
- package/registry/blocks/blog-cards-alongside.test.tsx +176 -0
- package/registry/blocks/blog-cards-author-spotlight/BlogCardsAuthorSpotlight.tsx +342 -0
- package/registry/blocks/blog-cards-author-spotlight/index.ts +6 -0
- package/registry/blocks/blog-cards-bento-editorial-grid/BlogCardsBentoEditorialGrid.tsx +345 -0
- package/registry/blocks/blog-cards-bento-editorial-grid/index.ts +7 -0
- package/registry/blocks/blog-cards-browse.test.tsx +367 -0
- package/registry/blocks/blog-cards-classic-3-up-grid/BlogCardsClassic3UpGrid.tsx +287 -0
- package/registry/blocks/blog-cards-classic-3-up-grid/index.ts +7 -0
- package/registry/blocks/blog-cards-compact-4-up-thumb-grid/BlogCardsCompact4UpThumbGrid.tsx +265 -0
- package/registry/blocks/blog-cards-compact-4-up-thumb-grid/index.ts +7 -0
- package/registry/blocks/blog-cards-dark-editorial-feature/BlogCardsDarkEditorialFeature.tsx +287 -0
- package/registry/blocks/blog-cards-dark-editorial-feature/index.ts +6 -0
- package/registry/blocks/blog-cards-featured-two-up/BlogCardsFeaturedTwoUp.tsx +295 -0
- package/registry/blocks/blog-cards-featured-two-up/index.ts +7 -0
- package/registry/blocks/blog-cards-features.test.tsx +183 -0
- package/registry/blocks/blog-cards-filter-sidebar-results/BlogCardsFilterSidebarResults.tsx +582 -0
- package/registry/blocks/blog-cards-filter-sidebar-results/index.ts +6 -0
- package/registry/blocks/blog-cards-grids.test.tsx +110 -0
- package/registry/blocks/blog-cards-hairline-text-index/BlogCardsHairlineTextIndex.tsx +193 -0
- package/registry/blocks/blog-cards-hairline-text-index/index.ts +7 -0
- package/registry/blocks/blog-cards-journal-bento/BlogCardsJournalBento.tsx +409 -0
- package/registry/blocks/blog-cards-journal-bento/index.ts +8 -0
- package/registry/blocks/blog-cards-latest-popular-split/BlogCardsLatestPopularSplit.tsx +258 -0
- package/registry/blocks/blog-cards-latest-popular-split/index.ts +7 -0
- package/registry/blocks/blog-cards-lead-ranked-picks/BlogCardsLeadRankedPicks.tsx +276 -0
- package/registry/blocks/blog-cards-lead-ranked-picks/index.ts +6 -0
- package/registry/blocks/blog-cards-left-thumb-row-cards/BlogCardsLeftThumbRowCards.tsx +288 -0
- package/registry/blocks/blog-cards-left-thumb-row-cards/index.ts +7 -0
- package/registry/blocks/blog-cards-lists.test.tsx +93 -0
- package/registry/blocks/blog-cards-magazine-cover-story/BlogCardsMagazineCoverStory.tsx +326 -0
- package/registry/blocks/blog-cards-magazine-cover-story/index.ts +6 -0
- package/registry/blocks/blog-cards-newsletter-latest/BlogCardsNewsletterLatest.tsx +291 -0
- package/registry/blocks/blog-cards-newsletter-latest/index.ts +6 -0
- package/registry/blocks/blog-cards-numbered-reading-list/BlogCardsNumberedReadingList.tsx +275 -0
- package/registry/blocks/blog-cards-numbered-reading-list/index.ts +7 -0
- package/registry/blocks/blog-cards-overlay-photo-trio/BlogCardsOverlayPhotoTrio.tsx +279 -0
- package/registry/blocks/blog-cards-overlay-photo-trio/index.ts +7 -0
- package/registry/blocks/blog-cards-post-carousel-with-controls/BlogCardsPostCarouselWithControls.tsx +257 -0
- package/registry/blocks/blog-cards-post-carousel-with-controls/index.ts +6 -0
- package/registry/blocks/blog-cards-pull-quote-feature/BlogCardsPullQuoteFeature.tsx +245 -0
- package/registry/blocks/blog-cards-pull-quote-feature/index.ts +6 -0
- package/registry/blocks/blog-cards-related-posts-strip/BlogCardsRelatedPostsStrip.tsx +247 -0
- package/registry/blocks/blog-cards-related-posts-strip/index.ts +6 -0
- package/registry/blocks/blog-cards-search-chips-results/BlogCardsSearchChipsResults.tsx +473 -0
- package/registry/blocks/blog-cards-search-chips-results/index.ts +6 -0
- package/registry/blocks/blog-cards-split-feature/BlogCardsSplitFeature.tsx +214 -0
- package/registry/blocks/blog-cards-split-feature/index.ts +6 -0
- package/registry/blocks/careers/careers.test.tsx +414 -0
- package/registry/blocks/careers/careers.tsx +391 -0
- package/registry/blocks/careers/index.ts +27 -0
- package/registry/blocks/careers-about-card-role-list/CareersAboutCardRoleList.tsx +235 -0
- package/registry/blocks/careers-about-card-role-list/index.ts +8 -0
- package/registry/blocks/careers-featured-role-spotlight/CareersFeaturedRoleSpotlight.tsx +271 -0
- package/registry/blocks/careers-featured-role-spotlight/index.ts +8 -0
- package/registry/blocks/careers-no-open-roles-empty-state/CareersNoOpenRolesEmptyState.tsx +330 -0
- package/registry/blocks/careers-no-open-roles-empty-state/index.ts +8 -0
- package/registry/blocks/careers-open-roles-hairline-list/CareersOpenRolesHairlineList.tsx +320 -0
- package/registry/blocks/careers-open-roles-hairline-list/index.ts +6 -0
- package/registry/blocks/careers-open-vacancies-table/CareersOpenVacanciesTable.tsx +493 -0
- package/registry/blocks/careers-open-vacancies-table/index.ts +6 -0
- package/registry/blocks/careers-perks-benefits/CareersPerksBenefits.tsx +181 -0
- package/registry/blocks/careers-perks-benefits/index.ts +8 -0
- package/registry/blocks/careers-role-cards-grid/CareersRoleCardsGrid.tsx +405 -0
- package/registry/blocks/careers-role-cards-grid/index.ts +6 -0
- package/registry/blocks/careers-role-detail-page/CareersRoleDetailPage.tsx +541 -0
- package/registry/blocks/careers-role-detail-page/index.ts +10 -0
- package/registry/blocks/careers-role-detail-panel/CareersRoleDetailPanel.tsx +255 -0
- package/registry/blocks/careers-role-detail-panel/index.ts +6 -0
- package/registry/blocks/careers-roles-by-department/CareersRolesByDepartment.tsx +242 -0
- package/registry/blocks/careers-roles-by-department/index.ts +7 -0
- package/registry/blocks/careers-roles-list-accordion-expanded/CareersRolesListAccordionExpanded.tsx +558 -0
- package/registry/blocks/careers-roles-list-accordion-expanded/index.ts +9 -0
- package/registry/blocks/contact-us/contact-us.test.tsx +239 -0
- package/registry/blocks/contact-us/contact-us.tsx +989 -0
- package/registry/blocks/contact-us/index.ts +34 -0
- package/registry/blocks/contact-us-bento-grid/ContactUsBentoGrid.tsx +304 -0
- package/registry/blocks/contact-us-bento-grid/index.ts +5 -0
- package/registry/blocks/contact-us-bento-grid.test.tsx +102 -0
- package/registry/blocks/contact-us-book-a-call/ContactUsBookACall.tsx +403 -0
- package/registry/blocks/contact-us-book-a-call/index.ts +7 -0
- package/registry/blocks/contact-us-book-a-call.test.tsx +134 -0
- package/registry/blocks/contact-us-classic-centered/ContactUsClassicCentered.tsx +199 -0
- package/registry/blocks/contact-us-classic-centered/index.ts +6 -0
- package/registry/blocks/contact-us-dark-statement/ContactUsDarkStatement.tsx +218 -0
- package/registry/blocks/contact-us-dark-statement/index.ts +6 -0
- package/registry/blocks/contact-us-editorial-and-address-card/ContactUsEditorialAndAddressCard.tsx +212 -0
- package/registry/blocks/contact-us-editorial-and-address-card/index.ts +6 -0
- package/registry/blocks/contact-us-editorial-statement/ContactUsEditorialStatement.tsx +205 -0
- package/registry/blocks/contact-us-editorial-statement/index.ts +6 -0
- package/registry/blocks/contact-us-form-contact-methods/ContactUsFormContactMethods.tsx +272 -0
- package/registry/blocks/contact-us-form-contact-methods/index.ts +6 -0
- package/registry/blocks/contact-us-form-with-faq/ContactUsFormWithFaq.tsx +383 -0
- package/registry/blocks/contact-us-form-with-faq/index.ts +7 -0
- package/registry/blocks/contact-us-form-with-faq.test.tsx +161 -0
- package/registry/blocks/contact-us-forms.test.tsx +333 -0
- package/registry/blocks/contact-us-global-offices-table/ContactUsGlobalOfficesTable.tsx +301 -0
- package/registry/blocks/contact-us-global-offices-table/index.ts +5 -0
- package/registry/blocks/contact-us-global-offices-table.test.tsx +100 -0
- package/registry/blocks/contact-us-grand-headline-form/ContactUsGrandHeadlineForm.tsx +180 -0
- package/registry/blocks/contact-us-grand-headline-form/index.ts +6 -0
- package/registry/blocks/contact-us-hours-and-availability/ContactUsHoursAndAvailability.tsx +412 -0
- package/registry/blocks/contact-us-hours-and-availability/index.ts +5 -0
- package/registry/blocks/contact-us-hours-and-availability.test.tsx +123 -0
- package/registry/blocks/contact-us-hq-feature/ContactUsHqFeature.tsx +281 -0
- package/registry/blocks/contact-us-hq-feature/index.ts +5 -0
- package/registry/blocks/contact-us-hq-feature.test.tsx +102 -0
- package/registry/blocks/contact-us-map-split/ContactUsMapSplit.tsx +211 -0
- package/registry/blocks/contact-us-map-split/index.ts +5 -0
- package/registry/blocks/contact-us-map-split.test.tsx +70 -0
- package/registry/blocks/contact-us-named-owners/ContactUsNamedOwners.tsx +324 -0
- package/registry/blocks/contact-us-named-owners/index.ts +6 -0
- package/registry/blocks/contact-us-named-owners.test.tsx +116 -0
- package/registry/blocks/contact-us-newsletter-combo/ContactUsNewsletterCombo.tsx +363 -0
- package/registry/blocks/contact-us-newsletter-combo/index.ts +6 -0
- package/registry/blocks/contact-us-newsletter-combo.test.tsx +165 -0
- package/registry/blocks/contact-us-office-cards/ContactUsOfficeCards.tsx +235 -0
- package/registry/blocks/contact-us-office-cards/index.ts +5 -0
- package/registry/blocks/contact-us-office-cards.test.tsx +71 -0
- package/registry/blocks/contact-us-oversized-wordmark/ContactUsOversizedWordmark.tsx +222 -0
- package/registry/blocks/contact-us-oversized-wordmark/index.ts +6 -0
- package/registry/blocks/contact-us-photo-and-dark-panel/ContactUsPhotoAndDarkPanel.tsx +185 -0
- package/registry/blocks/contact-us-photo-and-dark-panel/index.ts +6 -0
- package/registry/blocks/contact-us-photo-forms.test.tsx +311 -0
- package/registry/blocks/contact-us-pitch-and-inquiry/ContactUsPitchAndInquiry.tsx +202 -0
- package/registry/blocks/contact-us-pitch-and-inquiry/index.ts +6 -0
- package/registry/blocks/contact-us-rtl.test.tsx +105 -0
- package/registry/blocks/contact-us-ruled-split-form/ContactUsRuledSplitForm.tsx +214 -0
- package/registry/blocks/contact-us-ruled-split-form/index.ts +6 -0
- package/registry/blocks/contact-us-social-rail/ContactUsSocialRail.tsx +270 -0
- package/registry/blocks/contact-us-social-rail/index.ts +7 -0
- package/registry/blocks/contact-us-social-rail.test.tsx +121 -0
- package/registry/blocks/contact-us-split-photo-dark/ContactUsSplitPhotoDark.tsx +185 -0
- package/registry/blocks/contact-us-split-photo-dark/index.ts +6 -0
- package/registry/blocks/contact-us-support-channels/ContactUsSupportChannels.tsx +267 -0
- package/registry/blocks/contact-us-support-channels/index.ts +5 -0
- package/registry/blocks/contact-us-support-channels.test.tsx +81 -0
- package/registry/blocks/data-table/DataTable.test.tsx +1 -34
- package/registry/blocks/data-table/DataTable.tsx +0 -139
- package/registry/blocks/data-table/index.ts +1 -8
- package/registry/blocks/error-state-access-denied-403/ErrorStateAccessDenied403.tsx +324 -0
- package/registry/blocks/error-state-access-denied-403/index.ts +10 -0
- package/registry/blocks/error-state-broken-trail-breadcrumb/ErrorStateBrokenTrailBreadcrumb.tsx +179 -0
- package/registry/blocks/error-state-broken-trail-breadcrumb/index.ts +8 -0
- package/registry/blocks/error-state-centered-minimal/ErrorStateCenteredMinimal.tsx +119 -0
- package/registry/blocks/error-state-centered-minimal/index.ts +7 -0
- package/registry/blocks/error-state-colour-field-scatter/ErrorStateColourFieldScatter.tsx +144 -0
- package/registry/blocks/error-state-colour-field-scatter/index.ts +7 -0
- package/registry/blocks/error-state-countdown-redirect/ErrorStateCountdownRedirect.tsx +272 -0
- package/registry/blocks/error-state-countdown-redirect/index.ts +7 -0
- package/registry/blocks/error-state-dark-spotlight/ErrorStateDarkSpotlight.tsx +156 -0
- package/registry/blocks/error-state-dark-spotlight/index.ts +7 -0
- package/registry/blocks/error-state-display-numeral-split/ErrorStateDisplayNumeralSplit.tsx +156 -0
- package/registry/blocks/error-state-display-numeral-split/index.ts +8 -0
- package/registry/blocks/error-state-editorial-photo-split/ErrorStateEditorialPhotoSplit.tsx +156 -0
- package/registry/blocks/error-state-editorial-photo-split/index.ts +8 -0
- package/registry/blocks/error-state-empty-search-results/ErrorStateEmptySearchResults.tsx +243 -0
- package/registry/blocks/error-state-empty-search-results/index.ts +6 -0
- package/registry/blocks/error-state-error-card-panel/ErrorStateErrorCardPanel.tsx +213 -0
- package/registry/blocks/error-state-error-card-panel/index.ts +7 -0
- package/registry/blocks/error-state-full-bleed-photo/ErrorStateFullBleedPhoto.tsx +130 -0
- package/registry/blocks/error-state-full-bleed-photo/index.ts +8 -0
- package/registry/blocks/error-state-ghost-watermark/ErrorStateGhostWatermark.tsx +115 -0
- package/registry/blocks/error-state-ghost-watermark/index.ts +7 -0
- package/registry/blocks/error-state-helpful-links-list/ErrorStateHelpfulLinksList.tsx +185 -0
- package/registry/blocks/error-state-helpful-links-list/index.ts +8 -0
- package/registry/blocks/error-state-illustrated-empty-state/ErrorStateIllustratedEmptyState.tsx +201 -0
- package/registry/blocks/error-state-illustrated-empty-state/index.ts +7 -0
- package/registry/blocks/error-state-layered-badge-centered/ErrorStateLayeredBadgeCentered.tsx +138 -0
- package/registry/blocks/error-state-layered-badge-centered/index.ts +7 -0
- package/registry/blocks/error-state-light-editorial/ErrorStateLightEditorial.tsx +126 -0
- package/registry/blocks/error-state-light-editorial/index.ts +7 -0
- package/registry/blocks/error-state-maintenance-mode/ErrorStateMaintenanceMode.tsx +255 -0
- package/registry/blocks/error-state-maintenance-mode/index.ts +6 -0
- package/registry/blocks/error-state-marquee-404-band/ErrorStateMarquee404Band.tsx +316 -0
- package/registry/blocks/error-state-marquee-404-band/index.ts +7 -0
- package/registry/blocks/error-state-offline-state/ErrorStateOfflineState.tsx +188 -0
- package/registry/blocks/error-state-offline-state/index.ts +7 -0
- package/registry/blocks/error-state-photo-collage-scatter/ErrorStatePhotoCollageScatter.tsx +224 -0
- package/registry/blocks/error-state-photo-collage-scatter/index.ts +8 -0
- package/registry/blocks/error-state-popular-pages-grid/ErrorStatePopularPagesGrid.tsx +195 -0
- package/registry/blocks/error-state-popular-pages-grid/index.ts +9 -0
- package/registry/blocks/error-state-recovery-bento/ErrorStateRecoveryBento.tsx +274 -0
- package/registry/blocks/error-state-recovery-bento/index.ts +7 -0
- package/registry/blocks/error-state-search-recovery/ErrorStateSearchRecovery.tsx +173 -0
- package/registry/blocks/error-state-search-recovery/index.ts +7 -0
- package/registry/blocks/error-state-server-error-500/ErrorStateServerError500.tsx +277 -0
- package/registry/blocks/error-state-server-error-500/index.ts +9 -0
- package/registry/blocks/error-state-sitemap-columns/ErrorStateSitemapColumns.tsx +192 -0
- package/registry/blocks/error-state-sitemap-columns/index.ts +9 -0
- package/registry/blocks/error-state-split-colour-panel/ErrorStateSplitColourPanel.tsx +156 -0
- package/registry/blocks/error-state-split-colour-panel/index.ts +7 -0
- package/registry/blocks/error-state-support-escalation-band/ErrorStateSupportEscalationBand.tsx +186 -0
- package/registry/blocks/error-state-support-escalation-band/index.ts +8 -0
- package/registry/blocks/error-state-terminal-console/ErrorStateTerminalConsole.tsx +208 -0
- package/registry/blocks/error-state-terminal-console/index.ts +8 -0
- package/registry/blocks/faq-accent-active-card/FaqAccentActiveCard.tsx +186 -0
- package/registry/blocks/faq-accent-active-card/index.ts +1 -0
- package/registry/blocks/faq-category-chip-grid/FaqCategoryChipGrid.tsx +425 -0
- package/registry/blocks/faq-category-chip-grid/index.ts +8 -0
- package/registry/blocks/faq-category-columns/FaqCategoryColumns.tsx +248 -0
- package/registry/blocks/faq-category-columns/index.ts +8 -0
- package/registry/blocks/faq-chat-thread/FaqChatThread.tsx +273 -0
- package/registry/blocks/faq-chat-thread/index.ts +7 -0
- package/registry/blocks/faq-classic-centered/FaqClassicCentered.tsx +190 -0
- package/registry/blocks/faq-classic-centered/index.ts +7 -0
- package/registry/blocks/faq-contact-cta-card/FaqContactCtaCard.tsx +229 -0
- package/registry/blocks/faq-contact-cta-card/index.ts +9 -0
- package/registry/blocks/faq-dark-panel/FaqDarkPanel.tsx +186 -0
- package/registry/blocks/faq-dark-panel/index.ts +1 -0
- package/registry/blocks/faq-featured-question/FaqFeaturedQuestion.tsx +221 -0
- package/registry/blocks/faq-featured-question/index.ts +1 -0
- package/registry/blocks/faq-grouped-sections/FaqGroupedSections.tsx +266 -0
- package/registry/blocks/faq-grouped-sections/index.ts +8 -0
- package/registry/blocks/faq-help-hero-popular/FaqHelpHeroPopular.tsx +212 -0
- package/registry/blocks/faq-help-hero-popular/index.ts +7 -0
- package/registry/blocks/faq-masonry-cards/FaqMasonryCards.tsx +268 -0
- package/registry/blocks/faq-masonry-cards/index.ts +7 -0
- package/registry/blocks/faq-media-split/FaqMediaSplit.tsx +197 -0
- package/registry/blocks/faq-media-split/index.ts +8 -0
- package/registry/blocks/faq-mono-index/FaqMonoIndex.tsx +247 -0
- package/registry/blocks/faq-mono-index/index.ts +1 -0
- package/registry/blocks/faq-newsletter-close/FaqNewsletterClose.tsx +314 -0
- package/registry/blocks/faq-newsletter-close/index.ts +8 -0
- package/registry/blocks/faq-numbered-editorial/FaqNumberedEditorial.tsx +190 -0
- package/registry/blocks/faq-numbered-editorial/index.ts +1 -0
- package/registry/blocks/faq-search-categories/FaqSearchCategories.tsx +312 -0
- package/registry/blocks/faq-search-categories/index.ts +8 -0
- package/registry/blocks/faq-sidebar-nav/FaqSidebarNav.tsx +390 -0
- package/registry/blocks/faq-sidebar-nav/index.ts +8 -0
- package/registry/blocks/faq-soft-filled-rows/FaqSoftFilledRows.tsx +209 -0
- package/registry/blocks/faq-soft-filled-rows/index.ts +1 -0
- package/registry/blocks/faq-split-sticky/FaqSplitSticky.tsx +205 -0
- package/registry/blocks/faq-split-sticky/index.ts +7 -0
- package/registry/blocks/faq-support-channels/FaqSupportChannels.tsx +266 -0
- package/registry/blocks/faq-support-channels/index.ts +8 -0
- package/registry/blocks/faq-support-stats/FaqSupportStats.tsx +242 -0
- package/registry/blocks/faq-support-stats/index.ts +8 -0
- package/registry/blocks/faq-table-compact/FaqTableCompact.tsx +220 -0
- package/registry/blocks/faq-table-compact/index.ts +1 -0
- package/registry/blocks/faq-tabs-by-topic/FaqTabsByTopic.tsx +347 -0
- package/registry/blocks/faq-tabs-by-topic/index.ts +8 -0
- package/registry/blocks/faq-topic-tiles/FaqTopicTiles.tsx +254 -0
- package/registry/blocks/faq-topic-tiles/index.ts +7 -0
- package/registry/blocks/faq-two-column-grid/FaqTwoColumnGrid.tsx +256 -0
- package/registry/blocks/faq-two-column-grid/index.ts +7 -0
- package/registry/blocks/faq-uppercase-dense/FaqUppercaseDense.tsx +213 -0
- package/registry/blocks/faq-uppercase-dense/index.ts +1 -0
- package/registry/blocks/features/features.tsx +164 -0
- package/registry/blocks/features/index.ts +12 -0
- package/registry/blocks/features-accordion-photo/FeaturesAccordionPhoto.tsx +149 -0
- package/registry/blocks/features-accordion-photo/index.ts +7 -0
- package/registry/blocks/features-colour-block-cards/FeaturesColourBlockCards.tsx +118 -0
- package/registry/blocks/features-colour-block-cards/index.ts +8 -0
- package/registry/blocks/features-compact-icon-index/FeaturesCompactIconIndex.tsx +136 -0
- package/registry/blocks/features-compact-icon-index/index.ts +7 -0
- package/registry/blocks/features-compare-panels-chat-answer/FeaturesComparePanelsChatAnswer.tsx +346 -0
- package/registry/blocks/features-compare-panels-chat-answer/index.ts +8 -0
- package/registry/blocks/features-editorial-photo-split/FeaturesEditorialPhotoSplit.tsx +118 -0
- package/registry/blocks/features-editorial-photo-split/index.ts +7 -0
- package/registry/blocks/features-expanding-step-cards/FeaturesExpandingStepCards.tsx +300 -0
- package/registry/blocks/features-expanding-step-cards/index.ts +7 -0
- package/registry/blocks/features-feature-checklist-columns/FeaturesFeatureChecklistColumns.tsx +158 -0
- package/registry/blocks/features-feature-checklist-columns/index.ts +7 -0
- package/registry/blocks/features-feature-list-thumbnails/FeaturesFeatureListThumbnails.tsx +137 -0
- package/registry/blocks/features-feature-list-thumbnails/index.ts +7 -0
- package/registry/blocks/features-full-bleed-photo-banner/FeaturesFullBleedPhotoBanner.tsx +116 -0
- package/registry/blocks/features-full-bleed-photo-banner/index.ts +7 -0
- package/registry/blocks/features-icon-card-grid/FeaturesIconCardGrid.tsx +120 -0
- package/registry/blocks/features-icon-card-grid/index.ts +7 -0
- package/registry/blocks/features-icon-titled-preview-rail/FeaturesIconTitledPreviewRail.tsx +321 -0
- package/registry/blocks/features-icon-titled-preview-rail/index.ts +7 -0
- package/registry/blocks/features-icons-numbers.test.tsx +107 -0
- package/registry/blocks/features-interactive.test.tsx +175 -0
- package/registry/blocks/features-media-rail/FeaturesMediaRail.tsx +119 -0
- package/registry/blocks/features-media-rail/index.ts +7 -0
- package/registry/blocks/features-notched-photo-columns/FeaturesNotchedPhotoColumns.tsx +209 -0
- package/registry/blocks/features-notched-photo-columns/index.ts +7 -0
- package/registry/blocks/features-numbered-feature-rows/FeaturesNumberedFeatureRows.tsx +107 -0
- package/registry/blocks/features-numbered-feature-rows/index.ts +7 -0
- package/registry/blocks/features-numbered-steps-floating-cards/FeaturesNumberedStepsFloatingCards.tsx +324 -0
- package/registry/blocks/features-numbered-steps-floating-cards/index.ts +8 -0
- package/registry/blocks/features-perforated-photo-strip/FeaturesPerforatedPhotoStrip.tsx +218 -0
- package/registry/blocks/features-perforated-photo-strip/index.ts +7 -0
- package/registry/blocks/features-photo-bento/FeaturesPhotoBento.tsx +160 -0
- package/registry/blocks/features-photo-bento/index.ts +8 -0
- package/registry/blocks/features-photo-carousel/FeaturesPhotoCarousel.tsx +249 -0
- package/registry/blocks/features-photo-carousel/index.ts +7 -0
- package/registry/blocks/features-photo-collage/FeaturesPhotoCollage.tsx +143 -0
- package/registry/blocks/features-photo-collage/index.ts +7 -0
- package/registry/blocks/features-photo-feature-chips/FeaturesPhotoFeatureChips.tsx +125 -0
- package/registry/blocks/features-photo-feature-chips/index.ts +7 -0
- package/registry/blocks/features-photo-led.test.tsx +177 -0
- package/registry/blocks/features-photo-tabs-panel/FeaturesPhotoTabsPanel.tsx +197 -0
- package/registry/blocks/features-photo-tabs-panel/index.ts +7 -0
- package/registry/blocks/features-portrait-photo-cards-link-row/FeaturesPortraitPhotoCardsLinkRow.tsx +202 -0
- package/registry/blocks/features-portrait-photo-cards-link-row/index.ts +7 -0
- package/registry/blocks/features-product-in-use.test.tsx +188 -0
- package/registry/blocks/features-showcase-card-pair/FeaturesShowcaseCardPair.tsx +161 -0
- package/registry/blocks/features-showcase-card-pair/index.ts +7 -0
- package/registry/blocks/features-solid-colour-cards/FeaturesSolidColourCards.tsx +264 -0
- package/registry/blocks/features-solid-colour-cards/index.ts +7 -0
- package/registry/blocks/features-split-photo-icon-list/FeaturesSplitPhotoIconList.tsx +117 -0
- package/registry/blocks/features-split-photo-icon-list/index.ts +7 -0
- package/registry/blocks/features-stat-feature-band/FeaturesStatFeatureBand.tsx +114 -0
- package/registry/blocks/features-stat-feature-band/index.ts +7 -0
- package/registry/blocks/features-tinted-product-bento/FeaturesTintedProductBento.tsx +252 -0
- package/registry/blocks/features-tinted-product-bento/index.ts +7 -0
- package/registry/blocks/footer/footer.test.tsx +253 -0
- package/registry/blocks/footer/footer.tsx +554 -0
- package/registry/blocks/footer/index.ts +31 -0
- package/registry/blocks/footer-accordion-sitemap/FooterAccordionSitemap.tsx +260 -0
- package/registry/blocks/footer-accordion-sitemap/index.ts +7 -0
- package/registry/blocks/footer-bars.test.tsx +121 -0
- package/registry/blocks/footer-bento-tile/FooterBentoTile.tsx +331 -0
- package/registry/blocks/footer-bento-tile/index.ts +6 -0
- package/registry/blocks/footer-big-question-cta/FooterBigQuestionCta.tsx +250 -0
- package/registry/blocks/footer-big-question-cta/index.ts +6 -0
- package/registry/blocks/footer-big-type-link-stack/FooterBigTypeLinkStack.tsx +275 -0
- package/registry/blocks/footer-big-type-link-stack/index.ts +6 -0
- package/registry/blocks/footer-brand-panel-split/FooterBrandPanelSplit.tsx +163 -0
- package/registry/blocks/footer-brand-panel-split/index.ts +6 -0
- package/registry/blocks/footer-brand.test.tsx +608 -0
- package/registry/blocks/footer-careers-culture/FooterCareersCulture.tsx +297 -0
- package/registry/blocks/footer-careers-culture/index.ts +7 -0
- package/registry/blocks/footer-centered-brand-minimal/FooterCenteredBrandMinimal.tsx +121 -0
- package/registry/blocks/footer-centered-brand-minimal/index.ts +6 -0
- package/registry/blocks/footer-commerce.test.tsx +208 -0
- package/registry/blocks/footer-community-events/FooterCommunityEvents.tsx +263 -0
- package/registry/blocks/footer-community-events/index.ts +8 -0
- package/registry/blocks/footer-community.test.tsx +309 -0
- package/registry/blocks/footer-contact-first/FooterContactFirst.tsx +242 -0
- package/registry/blocks/footer-contact-first/index.ts +7 -0
- package/registry/blocks/footer-contact.test.tsx +285 -0
- package/registry/blocks/footer-controls.test.tsx +78 -0
- package/registry/blocks/footer-cta-band-columns/FooterCtaBandColumns.tsx +225 -0
- package/registry/blocks/footer-cta-band-columns/index.ts +6 -0
- package/registry/blocks/footer-cta.test.tsx +445 -0
- package/registry/blocks/footer-dashboard-slim-bar/FooterDashboardSlimBar.tsx +148 -0
- package/registry/blocks/footer-dashboard-slim-bar/index.ts +6 -0
- package/registry/blocks/footer-docs-page/FooterDocsPage.tsx +261 -0
- package/registry/blocks/footer-docs-page/index.ts +9 -0
- package/registry/blocks/footer-ecommerce-mega/FooterEcommerceMega.tsx +289 -0
- package/registry/blocks/footer-ecommerce-mega/index.ts +6 -0
- package/registry/blocks/footer-floating-demo-card/FooterFloatingDemoCard.tsx +261 -0
- package/registry/blocks/footer-floating-demo-card/index.ts +6 -0
- package/registry/blocks/footer-four-column-directory/FooterFourColumnDirectory.tsx +104 -0
- package/registry/blocks/footer-four-column-directory/index.ts +6 -0
- package/registry/blocks/footer-giant-wordmark/FooterGiantWordmark.tsx +252 -0
- package/registry/blocks/footer-giant-wordmark/index.ts +6 -0
- package/registry/blocks/footer-image-backed-brand/FooterImageBackedBrand.tsx +251 -0
- package/registry/blocks/footer-image-backed-brand/index.ts +6 -0
- package/registry/blocks/footer-index-numbered-columns/FooterIndexNumberedColumns.tsx +236 -0
- package/registry/blocks/footer-index-numbered-columns/index.ts +7 -0
- package/registry/blocks/footer-inline-preferences/FooterInlinePreferences.tsx +164 -0
- package/registry/blocks/footer-inline-preferences/index.ts +7 -0
- package/registry/blocks/footer-legal-first-slim/FooterLegalFirstSlim.tsx +174 -0
- package/registry/blocks/footer-legal-first-slim/index.ts +6 -0
- package/registry/blocks/footer-legal.test.tsx +180 -0
- package/registry/blocks/footer-local-business/FooterLocalBusiness.tsx +258 -0
- package/registry/blocks/footer-local-business/index.ts +7 -0
- package/registry/blocks/footer-marquee-strip/FooterMarqueeStrip.tsx +244 -0
- package/registry/blocks/footer-marquee-strip/index.ts +6 -0
- package/registry/blocks/footer-multi-region/FooterMultiRegion.tsx +310 -0
- package/registry/blocks/footer-multi-region/index.ts +7 -0
- package/registry/blocks/footer-newsletter-split/FooterNewsletterSplit.tsx +255 -0
- package/registry/blocks/footer-newsletter-split/index.ts +6 -0
- package/registry/blocks/footer-product-family-switcher/FooterProductFamilySwitcher.tsx +241 -0
- package/registry/blocks/footer-product-family-switcher/index.ts +7 -0
- package/registry/blocks/footer-service-promise-band/FooterServicePromiseBand.tsx +237 -0
- package/registry/blocks/footer-service-promise-band/index.ts +7 -0
- package/registry/blocks/footer-single-line-bar/FooterSingleLineBar.tsx +107 -0
- package/registry/blocks/footer-single-line-bar/index.ts +6 -0
- package/registry/blocks/footer-sitemap.test.tsx +390 -0
- package/registry/blocks/footer-split-hairline-micro/FooterSplitHairlineMicro.tsx +100 -0
- package/registry/blocks/footer-split-hairline-micro/index.ts +6 -0
- package/registry/blocks/footer-support-contact/FooterSupportContact.tsx +204 -0
- package/registry/blocks/footer-support-contact/index.ts +7 -0
- package/registry/blocks/footer-trust-compliance/FooterTrustCompliance.tsx +234 -0
- package/registry/blocks/footer-trust-compliance/index.ts +7 -0
- package/registry/blocks/footer-two-row-compact/FooterTwoRowCompact.tsx +124 -0
- package/registry/blocks/footer-two-row-compact/index.ts +6 -0
- package/registry/blocks/footer-two-tier-doormat/FooterTwoTierDoormat.tsx +232 -0
- package/registry/blocks/footer-two-tier-doormat/index.ts +8 -0
- package/registry/blocks/footer-utility.test.tsx +406 -0
- package/registry/blocks/footer-wide-sitemap-mega/FooterWideSitemapMega.tsx +227 -0
- package/registry/blocks/footer-wide-sitemap-mega/index.ts +6 -0
- package/registry/blocks/gallery-album-cards/GalleryAlbumCards.tsx +243 -0
- package/registry/blocks/gallery-album-cards/index.ts +8 -0
- package/registry/blocks/gallery-before-after-compare/GalleryBeforeAfterCompare.tsx +269 -0
- package/registry/blocks/gallery-before-after-compare/index.ts +7 -0
- package/registry/blocks/gallery-contact-sheet-wall/GalleryContactSheetWall.tsx +299 -0
- package/registry/blocks/gallery-contact-sheet-wall/index.ts +9 -0
- package/registry/blocks/gallery-culture-photo-grid/GalleryCulturePhotoGrid.tsx +203 -0
- package/registry/blocks/gallery-culture-photo-grid/index.ts +8 -0
- package/registry/blocks/gallery-dark-cinema-wall/GalleryDarkCinemaWall.tsx +180 -0
- package/registry/blocks/gallery-dark-cinema-wall/index.ts +7 -0
- package/registry/blocks/gallery-editorial-split/GalleryEditorialSplit.tsx +188 -0
- package/registry/blocks/gallery-editorial-split/index.ts +8 -0
- package/registry/blocks/gallery-featured-thumb-rail/GalleryFeaturedThumbRail.tsx +397 -0
- package/registry/blocks/gallery-featured-thumb-rail/index.ts +8 -0
- package/registry/blocks/gallery-filmstrip-carousel/GalleryFilmstripCarousel.tsx +384 -0
- package/registry/blocks/gallery-filmstrip-carousel/index.ts +8 -0
- package/registry/blocks/gallery-filter-tabs-grid/GalleryFilterTabsGrid.tsx +403 -0
- package/registry/blocks/gallery-filter-tabs-grid/index.ts +9 -0
- package/registry/blocks/gallery-full-bleed-slider/GalleryFullBleedSlider.tsx +309 -0
- package/registry/blocks/gallery-full-bleed-slider/index.ts +8 -0
- package/registry/blocks/gallery-horizontal-scroll-rail/GalleryHorizontalScrollRail.tsx +300 -0
- package/registry/blocks/gallery-horizontal-scroll-rail/index.ts +8 -0
- package/registry/blocks/gallery-hover-caption-cards/GalleryHoverCaptionCards.tsx +244 -0
- package/registry/blocks/gallery-hover-caption-cards/index.ts +8 -0
- package/registry/blocks/gallery-hover-index-list/GalleryHoverIndexList.tsx +253 -0
- package/registry/blocks/gallery-hover-index-list/index.ts +9 -0
- package/registry/blocks/gallery-lightbox-viewer/GalleryLightboxViewer.tsx +329 -0
- package/registry/blocks/gallery-lightbox-viewer/index.ts +7 -0
- package/registry/blocks/gallery-masonry-gallery/GalleryMasonryGallery.tsx +251 -0
- package/registry/blocks/gallery-masonry-gallery/index.ts +7 -0
- package/registry/blocks/gallery-mosaic-statement-tile/GalleryMosaicStatementTile.tsx +159 -0
- package/registry/blocks/gallery-mosaic-statement-tile/index.ts +8 -0
- package/registry/blocks/gallery-photo-bento/GalleryPhotoBento.tsx +166 -0
- package/registry/blocks/gallery-photo-bento/index.ts +8 -0
- package/registry/blocks/gallery-photo-spotlight/GalleryPhotoSpotlight.tsx +305 -0
- package/registry/blocks/gallery-photo-spotlight/index.ts +9 -0
- package/registry/blocks/gallery-scattered-collage/GalleryScatteredCollage.tsx +286 -0
- package/registry/blocks/gallery-scattered-collage/index.ts +9 -0
- package/registry/blocks/gallery-social-feed-strip/GallerySocialFeedStrip.tsx +288 -0
- package/registry/blocks/gallery-social-feed-strip/index.ts +8 -0
- package/registry/blocks/gallery-timeline-gallery/GalleryTimelineGallery.tsx +243 -0
- package/registry/blocks/gallery-timeline-gallery/index.ts +8 -0
- package/registry/blocks/gallery-video-gallery/GalleryVideoGallery.tsx +362 -0
- package/registry/blocks/gallery-video-gallery/index.ts +8 -0
- package/registry/blocks/hero-annotated-object/HeroAnnotatedObject.tsx +310 -0
- package/registry/blocks/hero-annotated-object/index.ts +10 -0
- package/registry/blocks/hero-arc-gallery/HeroArcGallery.tsx +244 -0
- package/registry/blocks/hero-arc-gallery/index.ts +9 -0
- package/registry/blocks/hero-bento-split/HeroBentoSplit.tsx +266 -0
- package/registry/blocks/hero-bento-split/index.ts +9 -0
- package/registry/blocks/hero-brand-color-block/HeroBrandColorBlock.tsx +259 -0
- package/registry/blocks/hero-brand-color-block/index.ts +8 -0
- package/registry/blocks/hero-colour-stage/HeroColourStage.tsx +292 -0
- package/registry/blocks/hero-colour-stage/index.ts +8 -0
- package/registry/blocks/hero-component-pattern/HeroComponentPattern.tsx +248 -0
- package/registry/blocks/hero-component-pattern/index.ts +9 -0
- package/registry/blocks/hero-curved-media-rail/HeroCurvedMediaRail.tsx +272 -0
- package/registry/blocks/hero-curved-media-rail/index.ts +8 -0
- package/registry/blocks/hero-duo-card/HeroDuoCard.tsx +210 -0
- package/registry/blocks/hero-duo-card/index.ts +8 -0
- package/registry/blocks/hero-editorial-arch/HeroEditorialArch.tsx +226 -0
- package/registry/blocks/hero-editorial-arch/index.ts +10 -0
- package/registry/blocks/hero-editorial-triptych/HeroEditorialTriptych.tsx +252 -0
- package/registry/blocks/hero-editorial-triptych/index.ts +9 -0
- package/registry/blocks/hero-floating-integrations/HeroFloatingIntegrations.tsx +454 -0
- package/registry/blocks/hero-floating-integrations/index.ts +11 -0
- package/registry/blocks/hero-framed-full-bleed/HeroFramedFullBleed.tsx +226 -0
- package/registry/blocks/hero-framed-full-bleed/index.ts +9 -0
- package/registry/blocks/hero-framed-studio-card/HeroFramedStudioCard.tsx +264 -0
- package/registry/blocks/hero-framed-studio-card/index.ts +8 -0
- package/registry/blocks/hero-illustration-split/HeroIllustrationSplit.tsx +200 -0
- package/registry/blocks/hero-illustration-split/index.ts +8 -0
- package/registry/blocks/hero-inline-image-headline/HeroInlineImageHeadline.tsx +305 -0
- package/registry/blocks/hero-inline-image-headline/index.ts +8 -0
- package/registry/blocks/hero-masked-type-reveal/HeroMaskedTypeReveal.tsx +323 -0
- package/registry/blocks/hero-masked-type-reveal/index.ts +9 -0
- package/registry/blocks/hero-motion.test.tsx +185 -0
- package/registry/blocks/hero-orbit-track/HeroOrbitTrack.tsx +238 -0
- package/registry/blocks/hero-orbit-track/index.ts +8 -0
- package/registry/blocks/hero-photo-constellation/HeroPhotoConstellation.tsx +228 -0
- package/registry/blocks/hero-photo-constellation/index.ts +8 -0
- package/registry/blocks/hero-scramble-decode/HeroScrambleDecode.tsx +381 -0
- package/registry/blocks/hero-scramble-decode/index.ts +7 -0
- package/registry/blocks/hero-shape-grid/HeroShapeGrid.tsx +279 -0
- package/registry/blocks/hero-shape-grid/index.ts +8 -0
- package/registry/blocks/hero-split-band-headline/HeroSplitBandHeadline.tsx +242 -0
- package/registry/blocks/hero-split-band-headline/index.ts +8 -0
- package/registry/blocks/hero-split-flap-counters/HeroSplitFlapCounters.tsx +323 -0
- package/registry/blocks/hero-split-flap-counters/index.ts +8 -0
- package/registry/blocks/hero-studio-mosaic/HeroStudioMosaic.tsx +332 -0
- package/registry/blocks/hero-studio-mosaic/index.ts +9 -0
- package/registry/blocks/hero-textured-dark/HeroTexturedDark.tsx +378 -0
- package/registry/blocks/hero-textured-dark/index.ts +10 -0
- package/registry/blocks/hero-twin-panels/HeroTwinPanels.tsx +231 -0
- package/registry/blocks/hero-twin-panels/index.ts +9 -0
- package/registry/blocks/hero-velocity-marquee/HeroVelocityMarquee.tsx +392 -0
- package/registry/blocks/hero-velocity-marquee/index.ts +8 -0
- package/registry/blocks/hero-video-in-type/HeroVideoInType.tsx +374 -0
- package/registry/blocks/hero-video-in-type/index.ts +9 -0
- package/registry/blocks/hero-video-spotlight/HeroVideoSpotlight.tsx +292 -0
- package/registry/blocks/hero-video-spotlight/index.ts +9 -0
- package/registry/blocks/hero-wave-band/HeroWaveBand.tsx +309 -0
- package/registry/blocks/hero-wave-band/index.ts +8 -0
- package/registry/blocks/how-it-works/how-it-works.tsx +330 -0
- package/registry/blocks/how-it-works/index.ts +28 -0
- package/registry/blocks/how-it-works-accordion-steps/HowItWorksAccordionSteps.tsx +213 -0
- package/registry/blocks/how-it-works-accordion-steps/index.ts +7 -0
- package/registry/blocks/how-it-works-center-spine-timeline/HowItWorksCenterSpineTimeline.tsx +200 -0
- package/registry/blocks/how-it-works-center-spine-timeline/index.ts +7 -0
- package/registry/blocks/how-it-works-column-panels/HowItWorksColumnPanels.tsx +299 -0
- package/registry/blocks/how-it-works-column-panels/index.ts +6 -0
- package/registry/blocks/how-it-works-contained-timeline/HowItWorksContainedTimeline.tsx +223 -0
- package/registry/blocks/how-it-works-contained-timeline/index.ts +8 -0
- package/registry/blocks/how-it-works-diagonal-photo-collage/HowItWorksDiagonalPhotoCollage.tsx +170 -0
- package/registry/blocks/how-it-works-diagonal-photo-collage/index.ts +7 -0
- package/registry/blocks/how-it-works-fanned-dissolve-cards/HowItWorksFannedDissolveCards.tsx +258 -0
- package/registry/blocks/how-it-works-fanned-dissolve-cards/index.ts +8 -0
- package/registry/blocks/how-it-works-full-bleed-step-panel/HowItWorksFullBleedStepPanel.tsx +319 -0
- package/registry/blocks/how-it-works-full-bleed-step-panel/index.ts +7 -0
- package/registry/blocks/how-it-works-grids.test.tsx +292 -0
- package/registry/blocks/how-it-works-interactive.test.tsx +262 -0
- package/registry/blocks/how-it-works-numbered-editorial-rows/HowItWorksNumberedEditorialRows.tsx +177 -0
- package/registry/blocks/how-it-works-numbered-editorial-rows/index.ts +7 -0
- package/registry/blocks/how-it-works-numbered-instruction-panels/HowItWorksNumberedInstructionPanels.tsx +226 -0
- package/registry/blocks/how-it-works-numbered-instruction-panels/index.ts +6 -0
- package/registry/blocks/how-it-works-numbered-photo-steps/HowItWorksNumberedPhotoSteps.tsx +150 -0
- package/registry/blocks/how-it-works-numbered-photo-steps/index.ts +7 -0
- package/registry/blocks/how-it-works-orbital-process/HowItWorksOrbitalProcess.tsx +317 -0
- package/registry/blocks/how-it-works-orbital-process/index.ts +7 -0
- package/registry/blocks/how-it-works-overlay-numeral-cards/HowItWorksOverlayNumeralCards.tsx +145 -0
- package/registry/blocks/how-it-works-overlay-numeral-cards/index.ts +7 -0
- package/registry/blocks/how-it-works-phase-line/HowItWorksPhaseLine.tsx +147 -0
- package/registry/blocks/how-it-works-phase-line/index.ts +8 -0
- package/registry/blocks/how-it-works-photo-bento-steps/HowItWorksPhotoBentoSteps.tsx +178 -0
- package/registry/blocks/how-it-works-photo-bento-steps/index.ts +7 -0
- package/registry/blocks/how-it-works-photo-rail-progress/HowItWorksPhotoRailProgress.tsx +231 -0
- package/registry/blocks/how-it-works-photo-rail-progress/index.ts +7 -0
- package/registry/blocks/how-it-works-pill-timeline/HowItWorksPillTimeline.tsx +181 -0
- package/registry/blocks/how-it-works-pill-timeline/index.ts +8 -0
- package/registry/blocks/how-it-works-rounded-cards-device-crop/HowItWorksRoundedCardsDeviceCrop.tsx +286 -0
- package/registry/blocks/how-it-works-rounded-cards-device-crop/index.ts +6 -0
- package/registry/blocks/how-it-works-six-card-grid/HowItWorksSixCardGrid.tsx +385 -0
- package/registry/blocks/how-it-works-six-card-grid/index.ts +6 -0
- package/registry/blocks/how-it-works-split-feature-band/HowItWorksSplitFeatureBand.tsx +316 -0
- package/registry/blocks/how-it-works-split-feature-band/index.ts +6 -0
- package/registry/blocks/how-it-works-split-photo-step-list/HowItWorksSplitPhotoStepList.tsx +179 -0
- package/registry/blocks/how-it-works-split-photo-step-list/index.ts +7 -0
- package/registry/blocks/how-it-works-stacked-media-text/HowItWorksStackedMediaText.tsx +310 -0
- package/registry/blocks/how-it-works-stacked-media-text/index.ts +8 -0
- package/registry/blocks/how-it-works-step-tabs-photo-panel/HowItWorksStepTabsPhotoPanel.tsx +245 -0
- package/registry/blocks/how-it-works-step-tabs-photo-panel/index.ts +7 -0
- package/registry/blocks/how-it-works-tall-visual-rail/HowItWorksTallVisualRail.tsx +349 -0
- package/registry/blocks/how-it-works-tall-visual-rail/index.ts +7 -0
- package/registry/blocks/how-it-works-timelines.test.tsx +265 -0
- package/registry/blocks/how-it-works-vertical-timeline-card/HowItWorksVerticalTimelineCard.tsx +169 -0
- package/registry/blocks/how-it-works-vertical-timeline-card/index.ts +8 -0
- package/registry/blocks/how-it-works-visual-steps.test.tsx +368 -0
- package/registry/blocks/logo-cloud-bento-logo-wall/LogoCloudBentoLogoWall.tsx +159 -0
- package/registry/blocks/logo-cloud-bento-logo-wall/index.ts +7 -0
- package/registry/blocks/logo-cloud-bordered-cell-grid/LogoCloudBorderedCellGrid.tsx +132 -0
- package/registry/blocks/logo-cloud-bordered-cell-grid/index.ts +7 -0
- package/registry/blocks/logo-cloud-centered-caption-row/LogoCloudCenteredCaptionRow.tsx +141 -0
- package/registry/blocks/logo-cloud-centered-caption-row/index.ts +7 -0
- package/registry/blocks/logo-cloud-contained-card/LogoCloudContainedCard.tsx +106 -0
- package/registry/blocks/logo-cloud-contained-card/index.ts +7 -0
- package/registry/blocks/logo-cloud-dark-logo-wall/LogoCloudDarkLogoWall.tsx +123 -0
- package/registry/blocks/logo-cloud-dark-logo-wall/index.ts +7 -0
- package/registry/blocks/logo-cloud-divider-rule-row/LogoCloudDividerRuleRow.tsx +156 -0
- package/registry/blocks/logo-cloud-divider-rule-row/index.ts +7 -0
- package/registry/blocks/logo-cloud-editorial-eyebrow-split/LogoCloudEditorialEyebrowSplit.tsx +121 -0
- package/registry/blocks/logo-cloud-editorial-eyebrow-split/index.ts +7 -0
- package/registry/blocks/logo-cloud-enterprise-wall/LogoCloudEnterpriseWall.tsx +114 -0
- package/registry/blocks/logo-cloud-enterprise-wall/index.ts +7 -0
- package/registry/blocks/logo-cloud-flanked-heading/LogoCloudFlankedHeading.tsx +162 -0
- package/registry/blocks/logo-cloud-flanked-heading/index.ts +8 -0
- package/registry/blocks/logo-cloud-grid-closing-cta/LogoCloudGridClosingCta.tsx +173 -0
- package/registry/blocks/logo-cloud-grid-closing-cta/index.ts +8 -0
- package/registry/blocks/logo-cloud-heading-grid/LogoCloudHeadingGrid.tsx +124 -0
- package/registry/blocks/logo-cloud-heading-grid/index.ts +7 -0
- package/registry/blocks/logo-cloud-heading-left-grid-right/LogoCloudHeadingLeftGridRight.tsx +172 -0
- package/registry/blocks/logo-cloud-heading-left-grid-right/index.ts +8 -0
- package/registry/blocks/logo-cloud-logo-metric-tiles/LogoCloudLogoMetricTiles.tsx +159 -0
- package/registry/blocks/logo-cloud-logo-metric-tiles/index.ts +8 -0
- package/registry/blocks/logo-cloud-logo-quote-cards/LogoCloudLogoQuoteCards.tsx +162 -0
- package/registry/blocks/logo-cloud-logo-quote-cards/index.ts +8 -0
- package/registry/blocks/logo-cloud-logo-testimonial-strip/LogoCloudLogoTestimonialStrip.tsx +159 -0
- package/registry/blocks/logo-cloud-logo-testimonial-strip/index.ts +8 -0
- package/registry/blocks/logo-cloud-named-integration-cards/LogoCloudNamedIntegrationCards.tsx +186 -0
- package/registry/blocks/logo-cloud-named-integration-cards/index.ts +9 -0
- package/registry/blocks/logo-cloud-pyramid-row-stack/LogoCloudPyramidRowStack.tsx +156 -0
- package/registry/blocks/logo-cloud-pyramid-row-stack/index.ts +7 -0
- package/registry/blocks/logo-cloud-quote-panel-grid/LogoCloudQuotePanelGrid.tsx +177 -0
- package/registry/blocks/logo-cloud-quote-panel-grid/index.ts +8 -0
- package/registry/blocks/logo-cloud-scatter-field/LogoCloudScatterField.tsx +190 -0
- package/registry/blocks/logo-cloud-scatter-field/index.ts +8 -0
- package/registry/blocks/logo-cloud-side-label-rail/LogoCloudSideLabelRail.tsx +139 -0
- package/registry/blocks/logo-cloud-side-label-rail/index.ts +7 -0
- package/registry/blocks/logo-cloud-stat-rail-above-grid/LogoCloudStatRailAboveGrid.tsx +173 -0
- package/registry/blocks/logo-cloud-stat-rail-above-grid/index.ts +8 -0
- package/registry/blocks/logo-cloud-tabbed-industry-filter/LogoCloudTabbedIndustryFilter.tsx +200 -0
- package/registry/blocks/logo-cloud-tabbed-industry-filter/index.ts +8 -0
- package/registry/blocks/navbar/index.ts +22 -11
- package/registry/blocks/navbar/navbar.test.tsx +42 -0
- package/registry/blocks/navbar/navbar.tsx +455 -0
- package/registry/blocks/navbar-active-action-with-border/NavbarActiveActionWithBorder.tsx +120 -0
- package/registry/blocks/navbar-active-action-with-border/index.ts +6 -0
- package/registry/blocks/navbar-active-action-with-round/NavbarActiveActionWithRound.tsx +120 -0
- package/registry/blocks/navbar-active-action-with-round/index.ts +6 -0
- package/registry/blocks/navbar-centered-floating/NavbarCenteredFloating.tsx +121 -0
- package/registry/blocks/navbar-centered-floating/index.ts +6 -0
- package/registry/blocks/navbar-default/NavbarDefault.tsx +102 -0
- package/registry/blocks/navbar-default/index.ts +6 -0
- package/registry/blocks/navbar-e-commerce/NavbarECommerce.tsx +212 -0
- package/registry/blocks/navbar-e-commerce/index.ts +6 -0
- package/registry/blocks/navbar-extended-at-top/NavbarExtendedAtTop.tsx +155 -0
- package/registry/blocks/navbar-extended-at-top/index.ts +7 -0
- package/registry/blocks/navbar-multiple-action/NavbarMultipleAction.tsx +133 -0
- package/registry/blocks/navbar-multiple-action/index.ts +6 -0
- package/registry/blocks/navbar-multiple-icon/NavbarMultipleIcon.tsx +132 -0
- package/registry/blocks/navbar-multiple-icon/index.ts +6 -0
- package/registry/blocks/navbar-rounded/NavbarRounded.tsx +140 -0
- package/registry/blocks/navbar-rounded/index.ts +6 -0
- package/registry/blocks/navbar-rounded-small/NavbarRoundedSmall.tsx +143 -0
- package/registry/blocks/navbar-rounded-small/index.ts +6 -0
- package/registry/blocks/navbar-small/NavbarSmall.tsx +142 -0
- package/registry/blocks/navbar-small/index.ts +6 -0
- package/registry/blocks/navbar-with-centered-logo/NavbarWithCenteredLogo.tsx +118 -0
- package/registry/blocks/navbar-with-centered-logo/index.ts +6 -0
- package/registry/blocks/navbar-with-cta-button/NavbarWithCtaButton.tsx +131 -0
- package/registry/blocks/navbar-with-cta-button/index.ts +6 -0
- package/registry/blocks/navbar-with-dropdown/NavbarWithDropdown.tsx +118 -0
- package/registry/blocks/navbar-with-dropdown/index.ts +6 -0
- package/registry/blocks/navbar-with-icon-indicator-avatar/NavbarWithIconIndicatorAvatar.tsx +85 -0
- package/registry/blocks/navbar-with-icon-indicator-avatar/index.ts +6 -0
- package/registry/blocks/navbar-with-search-input/NavbarWithSearchInput.tsx +90 -0
- package/registry/blocks/navbar-with-search-input/index.ts +6 -0
- package/registry/blocks/navbar-with-submenu/NavbarWithSubmenu.tsx +156 -0
- package/registry/blocks/navbar-with-submenu/index.ts +6 -0
- package/registry/blocks/page-header/PageHeader.tsx +5 -9
- package/registry/blocks/pricing/index.ts +20 -0
- package/registry/blocks/pricing/pricing.test.tsx +82 -0
- package/registry/blocks/pricing/pricing.tsx +343 -0
- package/registry/blocks/pricing-comparison-matrix/PricingComparisonMatrix.tsx +336 -0
- package/registry/blocks/pricing-comparison-matrix/index.ts +10 -0
- package/registry/blocks/pricing-plan-picker-summary/PricingPlanPickerSummary.tsx +399 -0
- package/registry/blocks/pricing-plan-picker-summary/index.ts +8 -0
- package/registry/blocks/pricing-plan-spotlight/PricingPlanSpotlight.tsx +281 -0
- package/registry/blocks/pricing-plan-spotlight/index.ts +7 -0
- package/registry/blocks/pricing-tiers/PricingTiers.tsx +264 -0
- package/registry/blocks/pricing-tiers/index.ts +8 -0
- package/registry/blocks/pricing-two-plan-compare/PricingTwoPlanCompare.tsx +187 -0
- package/registry/blocks/pricing-two-plan-compare/index.ts +7 -0
- package/registry/blocks/social-proof/index.ts +36 -0
- package/registry/blocks/social-proof/social-proof.test.tsx +504 -0
- package/registry/blocks/social-proof/social-proof.tsx +759 -0
- package/registry/blocks/social-proof-app-review-row/SocialProofAppReviewRow.tsx +168 -0
- package/registry/blocks/social-proof-app-review-row/index.ts +7 -0
- package/registry/blocks/social-proof-arch-portrait-quote/SocialProofArchPortraitQuote.tsx +114 -0
- package/registry/blocks/social-proof-arch-portrait-quote/index.ts +6 -0
- package/registry/blocks/social-proof-avatar-selector-row/SocialProofAvatarSelectorRow.tsx +276 -0
- package/registry/blocks/social-proof-avatar-selector-row/index.ts +7 -0
- package/registry/blocks/social-proof-benefit-title-cards/SocialProofBenefitTitleCards.tsx +182 -0
- package/registry/blocks/social-proof-benefit-title-cards/index.ts +8 -0
- package/registry/blocks/social-proof-bracket-framed-quote/SocialProofBracketFramedQuote.tsx +120 -0
- package/registry/blocks/social-proof-bracket-framed-quote/index.ts +6 -0
- package/registry/blocks/social-proof-case-study-row/SocialProofCaseStudyRow.tsx +210 -0
- package/registry/blocks/social-proof-case-study-row/index.ts +7 -0
- package/registry/blocks/social-proof-centered-logo-spotlight/SocialProofCenteredLogoSpotlight.tsx +103 -0
- package/registry/blocks/social-proof-centered-logo-spotlight/index.ts +6 -0
- package/registry/blocks/social-proof-classic-trio-grid/SocialProofClassicTrioGrid.tsx +138 -0
- package/registry/blocks/social-proof-classic-trio-grid/index.ts +7 -0
- package/registry/blocks/social-proof-dark-editorial-split/SocialProofDarkEditorialSplit.tsx +111 -0
- package/registry/blocks/social-proof-dark-editorial-split/index.ts +6 -0
- package/registry/blocks/social-proof-giant-quote-duo/SocialProofGiantQuoteDuo.tsx +156 -0
- package/registry/blocks/social-proof-giant-quote-duo/index.ts +8 -0
- package/registry/blocks/social-proof-highlighted-phrase-spotlight/SocialProofHighlightedPhraseSpotlight.tsx +130 -0
- package/registry/blocks/social-proof-highlighted-phrase-spotlight/index.ts +7 -0
- package/registry/blocks/social-proof-overlay-photo-quote/SocialProofOverlayPhotoQuote.tsx +111 -0
- package/registry/blocks/social-proof-overlay-photo-quote/index.ts +7 -0
- package/registry/blocks/social-proof-persona-pillars/SocialProofPersonaPillars.tsx +253 -0
- package/registry/blocks/social-proof-persona-pillars/index.ts +7 -0
- package/registry/blocks/social-proof-progress-carousel/SocialProofProgressCarousel.tsx +249 -0
- package/registry/blocks/social-proof-progress-carousel/index.ts +8 -0
- package/registry/blocks/social-proof-proof-bento/SocialProofProofBento.tsx +218 -0
- package/registry/blocks/social-proof-proof-bento/index.ts +6 -0
- package/registry/blocks/social-proof-spotlight-carousel/SocialProofSpotlightCarousel.tsx +212 -0
- package/registry/blocks/social-proof-spotlight-carousel/index.ts +7 -0
- package/registry/blocks/social-proof-staggered-columns/SocialProofStaggeredColumns.tsx +227 -0
- package/registry/blocks/social-proof-staggered-columns/index.ts +7 -0
- package/registry/blocks/social-proof-stat-story-cards/SocialProofStatStoryCards.tsx +218 -0
- package/registry/blocks/social-proof-stat-story-cards/index.ts +7 -0
- package/registry/blocks/social-proof-tinted-panel-portrait/SocialProofTintedPanelPortrait.tsx +130 -0
- package/registry/blocks/social-proof-tinted-panel-portrait/index.ts +7 -0
- package/registry/blocks/social-proof-tweet-wall/SocialProofTweetWall.tsx +179 -0
- package/registry/blocks/social-proof-tweet-wall/index.ts +7 -0
- package/registry/blocks/social-proof-vertical-column-wall/SocialProofVerticalColumnWall.tsx +220 -0
- package/registry/blocks/social-proof-vertical-column-wall/index.ts +7 -0
- package/registry/blocks/social-proof-video-story-cards/SocialProofVideoStoryCards.tsx +177 -0
- package/registry/blocks/social-proof-video-story-cards/index.ts +7 -0
- package/registry/blocks/social-proof-workplace-portrait-stories/SocialProofWorkplacePortraitStories.tsx +320 -0
- package/registry/blocks/social-proof-workplace-portrait-stories/index.ts +7 -0
- package/registry/blocks/team/index.ts +21 -0
- package/registry/blocks/team/team-classes.test.ts +35 -0
- package/registry/blocks/team/team.tsx +315 -0
- package/registry/blocks/team-annotated-portrait-lineup/TeamAnnotatedPortraitLineup.tsx +310 -0
- package/registry/blocks/team-annotated-portrait-lineup/index.ts +8 -0
- package/registry/blocks/team-annotated-portrait-lineup/team-annotated-portrait-lineup.test.tsx +71 -0
- package/registry/blocks/team-compact-directory-rows/TeamCompactDirectoryRows.tsx +190 -0
- package/registry/blocks/team-compact-directory-rows/compact-directory-rows.test.tsx +40 -0
- package/registry/blocks/team-compact-directory-rows/index.ts +7 -0
- package/registry/blocks/team-department-tabs-directory/TeamDepartmentTabsDirectory.tsx +414 -0
- package/registry/blocks/team-department-tabs-directory/department-tabs-directory.test.tsx +87 -0
- package/registry/blocks/team-department-tabs-directory/index.ts +10 -0
- package/registry/blocks/team-founder-spotlight/TeamFounderSpotlight.tsx +176 -0
- package/registry/blocks/team-founder-spotlight/index.ts +8 -0
- package/registry/blocks/team-founder-spotlight/team-founder-spotlight.test.tsx +70 -0
- package/registry/blocks/team-grid-backdrop-roster/TeamGridBackdropRoster.tsx +234 -0
- package/registry/blocks/team-grid-backdrop-roster/grid-backdrop-roster.test.tsx +72 -0
- package/registry/blocks/team-grid-backdrop-roster/index.ts +8 -0
- package/registry/blocks/team-hairline-grid/TeamHairlineGrid.tsx +190 -0
- package/registry/blocks/team-hairline-grid/hairline-grid.test.tsx +49 -0
- package/registry/blocks/team-hairline-grid/index.ts +1 -0
- package/registry/blocks/team-leadership-grid/TeamLeadershipGrid.tsx +183 -0
- package/registry/blocks/team-leadership-grid/index.ts +7 -0
- package/registry/blocks/team-leadership-grid/team-leadership-grid.test.tsx +38 -0
- package/registry/blocks/team-member-carousel/TeamMemberCarousel.tsx +178 -0
- package/registry/blocks/team-member-carousel/index.ts +7 -0
- package/registry/blocks/team-member-carousel/team-member-carousel.test.tsx +58 -0
- package/registry/blocks/team-member-table/TeamMemberTable.tsx +184 -0
- package/registry/blocks/team-member-table/index.ts +7 -0
- package/registry/blocks/team-member-table/member-table.test.tsx +43 -0
- package/registry/blocks/team-meta-profile-cards/TeamMetaProfileCards.tsx +155 -0
- package/registry/blocks/team-meta-profile-cards/index.ts +7 -0
- package/registry/blocks/team-meta-profile-cards/team-meta-profile-cards.test.tsx +29 -0
- package/registry/blocks/team-overlay-portrait-cards/TeamOverlayPortraitCards.tsx +145 -0
- package/registry/blocks/team-overlay-portrait-cards/index.ts +7 -0
- package/registry/blocks/team-overlay-portrait-cards/team-overlay-portrait-cards.test.tsx +49 -0
- package/registry/blocks/team-portrait-wall/TeamPortraitWall.tsx +131 -0
- package/registry/blocks/team-portrait-wall/index.ts +1 -0
- package/registry/blocks/team-portrait-wall/portrait-wall.test.tsx +45 -0
- package/registry/blocks/team-split-intro-member-rail/TeamSplitIntroMemberRail.tsx +203 -0
- package/registry/blocks/team-split-intro-member-rail/index.ts +7 -0
- package/registry/blocks/team-split-intro-member-rail/split-intro-member-rail.test.tsx +52 -0
- package/registry/blocks/team-we-re-hiring-cta/TeamWeReHiringCta.tsx +192 -0
- package/registry/blocks/team-we-re-hiring-cta/index.ts +7 -0
- package/registry/blocks/team-we-re-hiring-cta/we-re-hiring-cta.test.tsx +44 -0
- package/registry/blocks/video-call/index.ts +53 -0
- package/registry/blocks/video-call/video-call-around.test.tsx +427 -0
- package/registry/blocks/video-call/video-call-before.test.tsx +438 -0
- package/registry/blocks/video-call/video-call-hero.test.tsx +236 -0
- package/registry/blocks/video-call/video-call-stages.test.tsx +477 -0
- package/registry/blocks/video-call/video-call.test.tsx +794 -0
- package/registry/blocks/video-call/video-call.tsx +1282 -0
- package/registry/blocks/video-call-ai-meeting-recap/VideoCallAiMeetingRecap.tsx +466 -0
- package/registry/blocks/video-call-ai-meeting-recap/index.ts +9 -0
- package/registry/blocks/video-call-call-controls-dock/VideoCallCallControlsDock.tsx +211 -0
- package/registry/blocks/video-call-call-controls-dock/index.ts +6 -0
- package/registry/blocks/video-call-call-ended-summary/VideoCallCallEndedSummary.tsx +464 -0
- package/registry/blocks/video-call-call-ended-summary/index.ts +10 -0
- package/registry/blocks/video-call-call-with-side-panel/VideoCallCallWithSidePanel.tsx +357 -0
- package/registry/blocks/video-call-call-with-side-panel/index.ts +6 -0
- package/registry/blocks/video-call-captions-reactions/VideoCallCaptionsReactions.tsx +467 -0
- package/registry/blocks/video-call-captions-reactions/index.ts +10 -0
- package/registry/blocks/video-call-grid-gallery-call/VideoCallGridGalleryCall.tsx +312 -0
- package/registry/blocks/video-call-grid-gallery-call/index.ts +6 -0
- package/registry/blocks/video-call-hero-call-mockup/VideoCallHeroCallMockup.tsx +349 -0
- package/registry/blocks/video-call-hero-call-mockup/index.ts +7 -0
- package/registry/blocks/video-call-incoming-call/VideoCallIncomingCall.tsx +336 -0
- package/registry/blocks/video-call-incoming-call/index.ts +7 -0
- package/registry/blocks/video-call-join-link-dial-in/VideoCallJoinLinkDialIn.tsx +409 -0
- package/registry/blocks/video-call-join-link-dial-in/index.ts +9 -0
- package/registry/blocks/video-call-pre-join-lobby/VideoCallPreJoinLobby.tsx +345 -0
- package/registry/blocks/video-call-pre-join-lobby/index.ts +7 -0
- package/registry/blocks/video-call-screen-share-stage/VideoCallScreenShareStage.tsx +379 -0
- package/registry/blocks/video-call-screen-share-stage/index.ts +7 -0
- package/registry/blocks/video-call-speaker-filmstrip/VideoCallSpeakerFilmstrip.tsx +303 -0
- package/registry/blocks/video-call-speaker-filmstrip/index.ts +6 -0
- package/registry/blocks/video-call-upcoming-meetings/VideoCallUpcomingMeetings.tsx +349 -0
- package/registry/blocks/video-call-upcoming-meetings/index.ts +7 -0
- package/registry/blocks/video-call-waiting-room-knock/VideoCallWaitingRoomKnock.tsx +412 -0
- package/registry/blocks/video-call-waiting-room-knock/index.ts +7 -0
- package/registry/text-props-undefined.test.tsx +3 -26
- package/registry/ui/accordion/accordion.test.tsx +320 -0
- package/registry/ui/accordion/accordion.tsx +353 -0
- package/registry/ui/accordion/index.ts +15 -0
- package/registry/ui/alert/alert.test.tsx +325 -0
- package/registry/ui/alert/alert.tsx +384 -0
- package/registry/ui/alert/index.ts +10 -0
- package/registry/ui/alert-dialog/alert-dialog.test.tsx +396 -0
- package/registry/ui/alert-dialog/alert-dialog.tsx +423 -0
- package/registry/ui/alert-dialog/index.ts +21 -0
- package/registry/ui/avatar/avatar.test.tsx +2 -2
- package/registry/ui/avatar/avatar.tsx +3 -7
- package/registry/ui/breadcrumb/breadcrumb.test.tsx +305 -0
- package/registry/ui/breadcrumb/breadcrumb.tsx +205 -0
- package/registry/ui/breadcrumb/index.ts +11 -0
- package/registry/ui/button/button.test.tsx +353 -40
- package/registry/ui/button/button.tsx +304 -30
- package/registry/ui/calendar/calendar.test.tsx +192 -0
- package/registry/ui/calendar/calendar.tsx +405 -0
- package/registry/ui/calendar/index.ts +1 -0
- package/registry/ui/carousel/carousel.test.tsx +720 -0
- package/registry/ui/carousel/carousel.tsx +554 -0
- package/registry/ui/carousel/index.ts +11 -0
- package/registry/ui/checkbox/checkbox.test.tsx +318 -2
- package/registry/ui/checkbox/checkbox.tsx +253 -67
- package/registry/ui/checkbox/index.ts +1 -1
- package/registry/ui/content-carousel/content-carousel.test.tsx +303 -0
- package/registry/ui/content-carousel/content-carousel.tsx +180 -0
- package/registry/ui/content-carousel/index.ts +8 -0
- package/registry/ui/date-picker/date-picker.test.tsx +216 -0
- package/registry/ui/date-picker/date-picker.tsx +461 -0
- package/registry/ui/date-picker/index.ts +8 -0
- package/registry/ui/dialog/dialog.test.tsx +438 -0
- package/registry/ui/dialog/dialog.tsx +533 -0
- package/registry/ui/dialog/index.ts +20 -0
- package/registry/ui/dropdown-menu/dropdown-menu.test.tsx +502 -0
- package/registry/ui/dropdown-menu/dropdown-menu.tsx +627 -0
- package/registry/ui/dropdown-menu/index.ts +32 -0
- package/registry/ui/fasla-logo/fasla-logo.tsx +101 -0
- package/registry/ui/fasla-logo/index.ts +1 -0
- package/registry/ui/input/index.ts +10 -1
- package/registry/ui/input/input.test.tsx +251 -44
- package/registry/ui/input/input.tsx +311 -40
- package/registry/ui/input-number/index.ts +1 -0
- package/registry/ui/input-number/input-number.test.tsx +302 -0
- package/registry/ui/input-number/input-number.tsx +398 -0
- package/registry/ui/input-otp/index.ts +7 -0
- package/registry/ui/input-otp/input-otp.test.tsx +299 -0
- package/registry/ui/input-otp/input-otp.tsx +279 -0
- package/registry/ui/pagination/index.ts +12 -0
- package/registry/ui/pagination/pagination.test.tsx +330 -0
- package/registry/ui/pagination/pagination.tsx +336 -0
- package/registry/ui/progress/index.ts +8 -0
- package/registry/ui/progress/progress.test.tsx +168 -0
- package/registry/ui/progress/progress.tsx +165 -0
- package/registry/ui/select/index.ts +12 -1
- package/registry/ui/select/select.test.tsx +505 -0
- package/registry/ui/select/select.tsx +658 -56
- package/registry/ui/sheet/index.ts +19 -0
- package/registry/ui/sheet/sheet.test.tsx +411 -0
- package/registry/ui/sheet/sheet.tsx +496 -0
- package/registry/{blocks → ui}/sidebar/index.ts +10 -5
- package/registry/ui/sidebar/sidebar.test.tsx +224 -0
- package/registry/ui/sidebar/sidebar.tsx +754 -0
- package/registry/ui/slider/index.ts +8 -0
- package/registry/ui/slider/slider.test.tsx +231 -0
- package/registry/ui/slider/slider.tsx +319 -0
- package/registry/ui/social-icons/index.ts +1 -0
- package/registry/ui/social-icons/social-icons.tsx +284 -0
- package/registry/ui/steps/index.ts +16 -0
- package/registry/ui/steps/steps.test.tsx +435 -0
- package/registry/ui/steps/steps.tsx +571 -0
- package/registry/ui/switch/switch.tsx +3 -2
- package/registry/ui/tabs/index.ts +4 -0
- package/registry/ui/tabs/tabs.test.tsx +576 -0
- package/registry/ui/tabs/tabs.tsx +324 -112
- package/registry/ui/textarea/index.ts +1 -1
- package/registry/ui/textarea/textarea.test.tsx +294 -0
- package/registry/ui/textarea/textarea.tsx +329 -56
- package/registry/ui/tooltip/index.ts +14 -0
- package/registry/ui/tooltip/tooltip.test.tsx +301 -0
- package/registry/ui/tooltip/tooltip.tsx +409 -0
- package/registry.json +9703 -140
- package/tailwind-preset.ts +2 -2
- package/registry/blocks/navbar/Navbar.test.tsx +0 -12
- package/registry/blocks/navbar/Navbar.tsx +0 -175
- package/registry/blocks/sidebar/Sidebar.test.tsx +0 -39
- package/registry/blocks/sidebar/Sidebar.tsx +0 -212
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import { CircleCheck } from "lucide-react"
|
|
5
|
+
import { cn } from "../../../src/lib/utils"
|
|
6
|
+
import { Button, buttonVariants } from "../../ui/button/button"
|
|
7
|
+
import {
|
|
8
|
+
EASE_OUT,
|
|
9
|
+
HowItWorksEyebrow,
|
|
10
|
+
HowItWorksLtr,
|
|
11
|
+
HowItWorksImage,
|
|
12
|
+
HowItWorksSection,
|
|
13
|
+
prefersReducedMotion,
|
|
14
|
+
type HowItWorksLocale,
|
|
15
|
+
type HowItWorksPhoto,
|
|
16
|
+
} from "../how-it-works/how-it-works"
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* Figma: `How it Works` (42334:294272), Type=Full-Bleed Step Panel.
|
|
20
|
+
*
|
|
21
|
+
* An eyebrow line with a row of step dots at its end, then one wide `muted`
|
|
22
|
+
* panel showing a step at a time: an oversized numeral, a meta line, the title,
|
|
23
|
+
* a paragraph, four ticked points and two buttons, beside a 560 × 440 photo.
|
|
24
|
+
* The dots, the arrow keys and Home and End move between steps.
|
|
25
|
+
*
|
|
26
|
+
* Desktop sets the copy on the start side and the photo at the end. Tablet and
|
|
27
|
+
* Mobile put the photo above the copy (360px and 240px tall) and step the
|
|
28
|
+
* numeral down to 5XL and 4XL. The page's `dir` mirrors the panel and the dots,
|
|
29
|
+
* so step 1 is at the start, and the arrow keys follow the reading direction.
|
|
30
|
+
*
|
|
31
|
+
* A step change fades the copy out and in (a 12px slide, 280ms), the numeral
|
|
32
|
+
* rises into place, and the photo cross-fades (400ms, settling from 103%).
|
|
33
|
+
* Under reduced motion a step is an instant swap. Figma's card also has the
|
|
34
|
+
* panel change by itself every 7s and the numeral roll like a counter; the
|
|
35
|
+
* code has no autoplay (a step changes only when asked) and the numeral
|
|
36
|
+
* rises rather than rolls.
|
|
37
|
+
*
|
|
38
|
+
* Content limits: four steps in Figma; any number from two to six works. A
|
|
39
|
+
* title up to 44 characters, the paragraph up to 170, a point up to 40.
|
|
40
|
+
* Figma draws only step one; steps two to four are written for the code.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
export interface HowItWorksFullBleedStep {
|
|
44
|
+
/** Keys the step. */
|
|
45
|
+
id: string
|
|
46
|
+
/** The small uppercase line, such as "Step one — set up the file". */
|
|
47
|
+
meta: React.ReactNode
|
|
48
|
+
title: React.ReactNode
|
|
49
|
+
description: React.ReactNode
|
|
50
|
+
/** The ticked points. Up to four. */
|
|
51
|
+
points: React.ReactNode[]
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface HowItWorksFullBleedStepPanelCopy {
|
|
55
|
+
/** The small line at the start of the top row, which also names the section. */
|
|
56
|
+
eyebrow: React.ReactNode
|
|
57
|
+
steps: HowItWorksFullBleedStep[]
|
|
58
|
+
/** The two buttons' labels, the first solid and the second outline. */
|
|
59
|
+
primaryAction: string
|
|
60
|
+
secondaryAction: string
|
|
61
|
+
/** The accessible name of the step dots, such as "Steps". */
|
|
62
|
+
stepsLabel: string
|
|
63
|
+
/** Names one step's dot, such as "Step 2 of 4": `{n}` and `{total}` stand for the numbers. */
|
|
64
|
+
stepLabel: string
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** Figma's copy for step one, English and Arabic, and generic copy for the other three. */
|
|
68
|
+
const COPY: Record<HowItWorksLocale, HowItWorksFullBleedStepPanelCopy> = {
|
|
69
|
+
en: {
|
|
70
|
+
eyebrow: "How it works",
|
|
71
|
+
steps: [
|
|
72
|
+
{
|
|
73
|
+
id: "file",
|
|
74
|
+
meta: "Step one — set up the file",
|
|
75
|
+
title: "Start from a file the whole team can read",
|
|
76
|
+
description: "One structure, named the same way every time. New people find things without asking, and nothing gets rebuilt because someone could not find it.",
|
|
77
|
+
points: ["One page per flow, kept in order", "Every screen named, not numbered", "Decisions noted beside the work", "Light and dark set up from the start"],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: "sketch",
|
|
81
|
+
meta: "Step two — sketch the flow",
|
|
82
|
+
title: "Draw the whole flow before you style any of it",
|
|
83
|
+
description: "Boxes and arrows, on paper or on a board. It is the cheapest place to find that two screens do the same job, or that one is missing.",
|
|
84
|
+
points: ["Every screen, in order", "Dead ends marked early", "One owner for each decision", "Nothing styled yet"],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "build",
|
|
88
|
+
meta: "Step three — build the screens",
|
|
89
|
+
title: "Build with real content on a shared grid",
|
|
90
|
+
description: "Real words and real numbers change the layout, so they go in early. Everyone builds on the same grid, so the screens fit together without a clean-up pass.",
|
|
91
|
+
points: ["Real copy from the first draft", "One grid and one type scale", "Every state drawn, not just the happy one", "Both directions checked as you go"],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: "handover",
|
|
95
|
+
meta: "Step four — hand over",
|
|
96
|
+
title: "Hand over the reasoning, not only the screens",
|
|
97
|
+
description: "Walk the flow together, then pass it on with the notes that explain it. Whoever builds it next can tell what was decided and why.",
|
|
98
|
+
points: ["A walkthrough with the whole team", "Notes kept beside each screen", "Open questions listed, not buried", "Nothing ships on one person's opinion"],
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
primaryAction: "See the process",
|
|
102
|
+
secondaryAction: "Read the guide",
|
|
103
|
+
stepsLabel: "Steps",
|
|
104
|
+
stepLabel: "Step {n} of {total}",
|
|
105
|
+
},
|
|
106
|
+
ar: {
|
|
107
|
+
eyebrow: "كيف نعمل",
|
|
108
|
+
steps: [
|
|
109
|
+
{
|
|
110
|
+
id: "file",
|
|
111
|
+
meta: "الخطوة الأولى — تجهيز الملف",
|
|
112
|
+
title: "ابدأ من ملف يستطيع الفريق كله قراءته",
|
|
113
|
+
description: "هيكل واحد، بالتسمية نفسها في كل مرة. يجد المنضمّون الجدد ما يريدون دون سؤال، ولا يُعاد بناء شيء لأن أحدهم لم يجده.",
|
|
114
|
+
points: ["صفحة واحدة لكل مسار، مرتّبة", "كل شاشة باسم لا برقم", "المبرّرات مدوّنة جانب العمل", "الوضع الفاتح والداكن مهيّآن من البداية"],
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: "sketch",
|
|
118
|
+
meta: "الخطوة الثانية — رسم المسار",
|
|
119
|
+
title: "ارسم المسار كاملًا قبل تنسيق أي جزء منه",
|
|
120
|
+
description: "مربعات وأسهم، على ورقة أو على لوح. هو أرخص مكان لتكتشف أن شاشتين تؤديان العمل نفسه، أو أن إحداهما ناقصة.",
|
|
121
|
+
points: ["كل شاشة بترتيبها", "الطرق المسدودة تُعلَّم مبكرًا", "مسؤول واحد عن كل قرار", "لا تنسيق بعد"],
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: "build",
|
|
125
|
+
meta: "الخطوة الثالثة — بناء الشاشات",
|
|
126
|
+
title: "ابنِ بمحتوى حقيقي على شبكة مشتركة",
|
|
127
|
+
description: "الكلمات والأرقام الحقيقية تغيّر التخطيط، فتدخل مبكرًا. يبني الجميع على الشبكة نفسها، فتتناسق الشاشات دون جولة تنظيف.",
|
|
128
|
+
points: ["نص حقيقي من المسوّدة الأولى", "شبكة واحدة وسلّم خطوط واحد", "كل حالة مرسومة لا الحالة المثالية وحدها", "الاتجاهان يُفحصان أثناء العمل"],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: "handover",
|
|
132
|
+
meta: "الخطوة الرابعة — التسليم",
|
|
133
|
+
title: "سلّم المبرّرات لا الشاشات وحدها",
|
|
134
|
+
description: "استعرضوا المسار معًا، ثم مرّروه مع الملاحظات التي تشرحه. من يبنيه بعد ذلك يعرف ما تقرّر ولماذا.",
|
|
135
|
+
points: ["استعراض مع الفريق كله", "ملاحظات بجانب كل شاشة", "الأسئلة المفتوحة مدرجة لا مدفونة", "لا شيء يُطلق برأي شخص واحد"],
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
primaryAction: "اطّلع على العملية",
|
|
139
|
+
secondaryAction: "اقرأ الدليل",
|
|
140
|
+
stepsLabel: "الخطوات",
|
|
141
|
+
stepLabel: "الخطوة {n} من {total}",
|
|
142
|
+
},
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface HowItWorksFullBleedStepPanelProps extends Omit<React.HTMLAttributes<HTMLElement>, "title" | "onChange">, Partial<HowItWorksFullBleedStepPanelCopy> {
|
|
146
|
+
/** Which language the default copy is in. The page's `dir` sets the direction. */
|
|
147
|
+
locale?: HowItWorksLocale
|
|
148
|
+
/**
|
|
149
|
+
* The photo in the panel: one for all the steps, or one per step to cross-fade
|
|
150
|
+
* between. A `muted` placeholder shows without any.
|
|
151
|
+
* @default none: a `muted` placeholder
|
|
152
|
+
*/
|
|
153
|
+
photos?: HowItWorksPhoto[]
|
|
154
|
+
/** Where the first button goes. Without it, the button calls `onPrimaryAction`. */
|
|
155
|
+
primaryHref?: string
|
|
156
|
+
/** Where the second button goes. Without it, the button calls `onSecondaryAction`. */
|
|
157
|
+
secondaryHref?: string
|
|
158
|
+
/** Called when the first button is pressed and has no `primaryHref`. */
|
|
159
|
+
onPrimaryAction?: () => void
|
|
160
|
+
/** Called when the second button is pressed and has no `secondaryHref`. */
|
|
161
|
+
onSecondaryAction?: () => void
|
|
162
|
+
/** The step to show first, from 0. */
|
|
163
|
+
defaultStep?: number
|
|
164
|
+
/** Called with the new step's index when the step changes. */
|
|
165
|
+
onStepChange?: (index: number) => void
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function HowItWorksFullBleedStepPanel({
|
|
169
|
+
locale = "en",
|
|
170
|
+
eyebrow,
|
|
171
|
+
steps,
|
|
172
|
+
primaryAction,
|
|
173
|
+
secondaryAction,
|
|
174
|
+
stepsLabel,
|
|
175
|
+
stepLabel,
|
|
176
|
+
photos,
|
|
177
|
+
primaryHref,
|
|
178
|
+
secondaryHref,
|
|
179
|
+
onPrimaryAction,
|
|
180
|
+
onSecondaryAction,
|
|
181
|
+
defaultStep = 0,
|
|
182
|
+
onStepChange,
|
|
183
|
+
className,
|
|
184
|
+
...props
|
|
185
|
+
}: HowItWorksFullBleedStepPanelProps) {
|
|
186
|
+
const copy = COPY[locale]
|
|
187
|
+
const headingId = React.useId()
|
|
188
|
+
const list = steps ?? copy.steps
|
|
189
|
+
const [active, setActive] = React.useState(Math.min(Math.max(defaultStep, 0), list.length - 1))
|
|
190
|
+
const copyRef = React.useRef<HTMLDivElement>(null)
|
|
191
|
+
const numeralRef = React.useRef<HTMLSpanElement>(null)
|
|
192
|
+
const dotRefs = React.useRef<(HTMLButtonElement | null)[]>([])
|
|
193
|
+
const first = React.useRef(true)
|
|
194
|
+
const step = list[active] ?? list[0]
|
|
195
|
+
const shown = photos && photos.length > 0 ? photos : undefined
|
|
196
|
+
const photoIndex = shown ? Math.min(active, shown.length - 1) : 0
|
|
197
|
+
const primary = primaryAction ?? copy.primaryAction
|
|
198
|
+
const secondary = secondaryAction ?? copy.secondaryAction
|
|
199
|
+
|
|
200
|
+
const go = (next: number, focus = false) => {
|
|
201
|
+
const index = (next + list.length) % list.length
|
|
202
|
+
setActive(index)
|
|
203
|
+
onStepChange?.(index)
|
|
204
|
+
if (focus) dotRefs.current[index]?.focus()
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// A step change after the first render: the copy fades in from 12px below, the numeral rises.
|
|
208
|
+
React.useLayoutEffect(() => {
|
|
209
|
+
if (first.current) {
|
|
210
|
+
first.current = false
|
|
211
|
+
return
|
|
212
|
+
}
|
|
213
|
+
if (prefersReducedMotion()) return
|
|
214
|
+
const keyframes = [{ opacity: 0, transform: "translateY(12px)" }, { opacity: 1, transform: "none" }]
|
|
215
|
+
const options = { duration: 280, easing: EASE_OUT }
|
|
216
|
+
copyRef.current?.animate?.(keyframes, options)
|
|
217
|
+
numeralRef.current?.animate?.([{ transform: "translateY(24px)" }, { transform: "none" }], { duration: 360, easing: EASE_OUT })
|
|
218
|
+
}, [active])
|
|
219
|
+
|
|
220
|
+
const onKeyDown = (event: React.KeyboardEvent) => {
|
|
221
|
+
const rtl = getComputedStyle(event.currentTarget).direction === "rtl"
|
|
222
|
+
const forward = rtl ? "ArrowLeft" : "ArrowRight"
|
|
223
|
+
const back = rtl ? "ArrowRight" : "ArrowLeft"
|
|
224
|
+
if (event.key === forward) go(active + 1, true)
|
|
225
|
+
else if (event.key === back) go(active - 1, true)
|
|
226
|
+
else if (event.key === "Home") go(0, true)
|
|
227
|
+
else if (event.key === "End") go(list.length - 1, true)
|
|
228
|
+
else return
|
|
229
|
+
event.preventDefault()
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
const action = (label: string, href: string | undefined, onPress: (() => void) | undefined, variant: "default" | "outline") =>
|
|
233
|
+
href ? (
|
|
234
|
+
<a href={href} className={buttonVariants({ variant, size: "md" })}>
|
|
235
|
+
{label}
|
|
236
|
+
</a>
|
|
237
|
+
) : (
|
|
238
|
+
<Button type="button" variant={variant} size="md" onClick={onPress}>
|
|
239
|
+
{label}
|
|
240
|
+
</Button>
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
return (
|
|
244
|
+
<HowItWorksSection labelledBy={headingId} className={className} contentClassName="gap-8" {...props}>
|
|
245
|
+
<div className="flex w-full items-center justify-between gap-4">
|
|
246
|
+
<HowItWorksEyebrow>{eyebrow ?? copy.eyebrow}</HowItWorksEyebrow>
|
|
247
|
+
<div role="group" aria-label={stepsLabel ?? copy.stepsLabel} onKeyDown={onKeyDown} className="flex items-center gap-1">
|
|
248
|
+
{list.map((item, index) => (
|
|
249
|
+
<button
|
|
250
|
+
key={item.id}
|
|
251
|
+
ref={(node) => {
|
|
252
|
+
dotRefs.current[index] = node
|
|
253
|
+
}}
|
|
254
|
+
type="button"
|
|
255
|
+
aria-label={(stepLabel ?? copy.stepLabel).replace("{n}", String(index + 1)).replace("{total}", String(list.length))}
|
|
256
|
+
aria-current={index === active ? "step" : undefined}
|
|
257
|
+
tabIndex={index === active ? 0 : -1}
|
|
258
|
+
onClick={() => go(index)}
|
|
259
|
+
className="group flex h-6 items-center px-0.5 focus-visible:outline-none"
|
|
260
|
+
>
|
|
261
|
+
<span
|
|
262
|
+
className={cn(
|
|
263
|
+
"block h-2 rounded-full transition-all duration-200 group-focus-visible:ring-2 group-focus-visible:ring-ring group-focus-visible:ring-offset-2 group-focus-visible:ring-offset-background motion-reduce:transition-none",
|
|
264
|
+
index === active ? "w-6 bg-foreground" : "w-2 bg-border"
|
|
265
|
+
)}
|
|
266
|
+
/>
|
|
267
|
+
</button>
|
|
268
|
+
))}
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
|
|
272
|
+
<div className="flex flex-col gap-8 rounded-[14px] bg-muted p-6 [@container(min-width:40rem)]:p-8 [@container(min-width:64rem)]:flex-row [@container(min-width:64rem)]:items-center [@container(min-width:64rem)]:gap-12 [@container(min-width:64rem)]:p-12">
|
|
273
|
+
<div ref={copyRef} className="flex min-w-0 flex-1 flex-col gap-5" aria-live="polite">
|
|
274
|
+
<span className="block overflow-hidden">
|
|
275
|
+
<span ref={numeralRef} className="block text-4xl font-semibold leading-none text-foreground [@container(min-width:40rem)]:text-5xl [@container(min-width:64rem)]:text-7xl">
|
|
276
|
+
<HowItWorksLtr>{String(active + 1).padStart(2, "0")}</HowItWorksLtr>
|
|
277
|
+
</span>
|
|
278
|
+
</span>
|
|
279
|
+
<HowItWorksEyebrow>{step?.meta}</HowItWorksEyebrow>
|
|
280
|
+
<h2 id={headingId} className="text-2xl font-semibold text-foreground [@container(min-width:64rem)]:text-3xl">
|
|
281
|
+
{step?.title}
|
|
282
|
+
</h2>
|
|
283
|
+
<p className="text-base text-muted-foreground">{step?.description}</p>
|
|
284
|
+
<ul className="flex flex-col gap-2">
|
|
285
|
+
{step?.points.map((point, index) => (
|
|
286
|
+
<li key={index} className="flex items-center gap-2 text-sm text-foreground">
|
|
287
|
+
<CircleCheck size={18} strokeWidth={1.5} absoluteStrokeWidth aria-hidden className="shrink-0" />
|
|
288
|
+
{point}
|
|
289
|
+
</li>
|
|
290
|
+
))}
|
|
291
|
+
</ul>
|
|
292
|
+
<div className="flex flex-col gap-3 [@container(min-width:40rem)]:flex-row [&>*]:w-full [@container(min-width:40rem)]:[&>*]:w-auto">
|
|
293
|
+
{action(primary, primaryHref, onPrimaryAction, "default")}
|
|
294
|
+
{action(secondary, secondaryHref, onSecondaryAction, "outline")}
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
<div className="relative order-first h-60 w-full shrink-0 overflow-hidden rounded-[10px] bg-card [@container(min-width:40rem)]:h-[360px] [@container(min-width:64rem)]:order-none [@container(min-width:64rem)]:h-[440px] [@container(min-width:64rem)]:w-[560px]">
|
|
298
|
+
{shown
|
|
299
|
+
? shown.map((photo, index) => (
|
|
300
|
+
<div
|
|
301
|
+
key={photo.src + index}
|
|
302
|
+
aria-hidden={index !== photoIndex}
|
|
303
|
+
className={cn("absolute inset-0 transition-[opacity,transform] duration-[400ms] ease-out motion-reduce:transition-none", index === photoIndex ? "scale-100 opacity-100" : "scale-[1.03] opacity-0")}
|
|
304
|
+
>
|
|
305
|
+
<HowItWorksImage photo={photo} />
|
|
306
|
+
</div>
|
|
307
|
+
))
|
|
308
|
+
: null}
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
</HowItWorksSection>
|
|
312
|
+
)
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* The default copy, English and Arabic, as `locale` picks it. Spread it to
|
|
317
|
+
* change a few strings and keep the rest.
|
|
318
|
+
*/
|
|
319
|
+
export const howItWorksFullBleedStepPanelCopy = COPY
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"
|
|
2
|
+
import { act, cleanup, render, screen } from "@testing-library/react"
|
|
3
|
+
import { HowItWorksColumnPanels, howItWorksColumnPanelsCopy } from "./how-it-works-column-panels"
|
|
4
|
+
import { HowItWorksNumberedEditorialRows, howItWorksNumberedEditorialRowsCopy } from "./how-it-works-numbered-editorial-rows"
|
|
5
|
+
import { HowItWorksNumberedInstructionPanels, howItWorksNumberedInstructionPanelsCopy } from "./how-it-works-numbered-instruction-panels"
|
|
6
|
+
import { HowItWorksRoundedCardsDeviceCrop, howItWorksRoundedCardsDeviceCropCopy } from "./how-it-works-rounded-cards-device-crop"
|
|
7
|
+
import { HowItWorksSixCardGrid, howItWorksSixCardGridCopy } from "./how-it-works-six-card-grid"
|
|
8
|
+
import { HowItWorksSplitFeatureBand, howItWorksSplitFeatureBandCopy } from "./how-it-works-split-feature-band"
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* The six Grids and panels Types. jsdom has no media queries, observers or Web
|
|
12
|
+
* Animations, so each is stubbed: the tests check what the blocks do with them
|
|
13
|
+
* (the finished state under reduced motion, one play when the block enters the
|
|
14
|
+
* view), not how the browser animates.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
let started: number
|
|
18
|
+
let observers: { callback: IntersectionObserverCallback; observer: IntersectionObserver; active: boolean }[]
|
|
19
|
+
|
|
20
|
+
function setReducedMotion(reduced: boolean) {
|
|
21
|
+
window.matchMedia = vi.fn((query: string) => ({
|
|
22
|
+
matches: reduced && query.includes("prefers-reduced-motion: reduce"),
|
|
23
|
+
media: query,
|
|
24
|
+
onchange: null,
|
|
25
|
+
addEventListener: vi.fn(),
|
|
26
|
+
removeEventListener: vi.fn(),
|
|
27
|
+
addListener: vi.fn(),
|
|
28
|
+
removeListener: vi.fn(),
|
|
29
|
+
dispatchEvent: vi.fn(),
|
|
30
|
+
})) as unknown as typeof window.matchMedia
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** The household switches. The phones are hidden from screen readers, so they are found by markup, not by role. */
|
|
34
|
+
const switchInputs = (container: HTMLElement) => [...container.querySelectorAll<HTMLInputElement>('input[type="checkbox"]')]
|
|
35
|
+
|
|
36
|
+
/** Brings every observed block into view, as scrolling to it would. */
|
|
37
|
+
function scrollIntoView() {
|
|
38
|
+
act(() => {
|
|
39
|
+
for (const { callback, observer, active } of [...observers]) if (active) callback([{ isIntersecting: true } as IntersectionObserverEntry], observer)
|
|
40
|
+
})
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
beforeEach(() => {
|
|
44
|
+
started = 0
|
|
45
|
+
observers = []
|
|
46
|
+
setReducedMotion(false)
|
|
47
|
+
globalThis.IntersectionObserver = class {
|
|
48
|
+
private record: (typeof observers)[number]
|
|
49
|
+
constructor(callback: IntersectionObserverCallback) {
|
|
50
|
+
this.record = { callback, observer: this as unknown as IntersectionObserver, active: true }
|
|
51
|
+
observers.push(this.record)
|
|
52
|
+
}
|
|
53
|
+
observe() {}
|
|
54
|
+
unobserve() {}
|
|
55
|
+
disconnect() {
|
|
56
|
+
this.record.active = false
|
|
57
|
+
}
|
|
58
|
+
takeRecords() {
|
|
59
|
+
return []
|
|
60
|
+
}
|
|
61
|
+
} as unknown as typeof IntersectionObserver
|
|
62
|
+
Element.prototype.animate = vi.fn(() => {
|
|
63
|
+
started += 1
|
|
64
|
+
return { cancel: vi.fn(), finished: Promise.resolve() } as unknown as Animation
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
afterEach(() => {
|
|
68
|
+
cleanup()
|
|
69
|
+
vi.useRealTimers()
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
const TYPES = [
|
|
73
|
+
{ name: "Six-Card Grid", Block: HowItWorksSixCardGrid, copy: howItWorksSixCardGridCopy, hasH2: true },
|
|
74
|
+
{ name: "Column Panels", Block: HowItWorksColumnPanels, copy: howItWorksColumnPanelsCopy, hasH2: true },
|
|
75
|
+
{ name: "Numbered Instruction Panels", Block: HowItWorksNumberedInstructionPanels, copy: howItWorksNumberedInstructionPanelsCopy, hasH2: true },
|
|
76
|
+
{ name: "Numbered Editorial Rows", Block: HowItWorksNumberedEditorialRows, copy: howItWorksNumberedEditorialRowsCopy, hasH2: true },
|
|
77
|
+
{ name: "Split Feature Band", Block: HowItWorksSplitFeatureBand, copy: howItWorksSplitFeatureBandCopy, hasH2: false },
|
|
78
|
+
{ name: "Rounded Cards + Device Crop", Block: HowItWorksRoundedCardsDeviceCrop, copy: howItWorksRoundedCardsDeviceCropCopy, hasH2: true },
|
|
79
|
+
] as const
|
|
80
|
+
|
|
81
|
+
describe.each(TYPES)("$name", ({ Block, copy, hasH2 }) => {
|
|
82
|
+
it.each(["en", "ar"] as const)("renders in %s and names its section", (locale) => {
|
|
83
|
+
const { container } = render(<Block locale={locale} />)
|
|
84
|
+
const section = container.querySelector("section")
|
|
85
|
+
expect(section).toBeTruthy()
|
|
86
|
+
expect(section?.getAttribute("aria-labelledby") ?? section?.getAttribute("aria-label")).toBeTruthy()
|
|
87
|
+
const headings = screen.getAllByRole("heading", { level: 2 })
|
|
88
|
+
expect(headings.length).toBeGreaterThan(0)
|
|
89
|
+
if (hasH2) expect(section?.getAttribute("aria-labelledby")).toBe(headings[0]?.id)
|
|
90
|
+
expect(Object.keys(copy)).toEqual(["en", "ar"])
|
|
91
|
+
})
|
|
92
|
+
|
|
93
|
+
it("draws every colour from the theme: no hex, rgb or palette colours in its classes", () => {
|
|
94
|
+
const { container } = render(<Block />)
|
|
95
|
+
const classes = [...container.querySelectorAll("[class]")].map((node) => node.getAttribute("class") ?? "").join(" ")
|
|
96
|
+
expect(classes).not.toMatch(/\[#|\brgb\(|\bhsl\(/)
|
|
97
|
+
expect(classes).not.toMatch(/\b(?:bg|text|border|ring|fill|stroke|from|to)-(?:red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose|slate|gray|zinc|neutral|stone|black|white)(?:-\d+)?\b/)
|
|
98
|
+
expect(container.innerHTML).not.toMatch(/style="[^"]*(?:#[0-9a-f]{3,8}|rgb\()/i)
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
it("plays its motion once, when it comes into view, and not under reduced motion", () => {
|
|
102
|
+
const { unmount } = render(<Block />)
|
|
103
|
+
expect(started).toBe(0)
|
|
104
|
+
scrollIntoView()
|
|
105
|
+
expect(started).toBeGreaterThan(0)
|
|
106
|
+
const after = started
|
|
107
|
+
scrollIntoView()
|
|
108
|
+
expect(started).toBe(after)
|
|
109
|
+
unmount()
|
|
110
|
+
|
|
111
|
+
cleanup()
|
|
112
|
+
started = 0
|
|
113
|
+
observers = []
|
|
114
|
+
setReducedMotion(true)
|
|
115
|
+
render(<Block />)
|
|
116
|
+
scrollIntoView()
|
|
117
|
+
expect(started).toBe(0)
|
|
118
|
+
})
|
|
119
|
+
})
|
|
120
|
+
|
|
121
|
+
describe("Six-Card Grid", () => {
|
|
122
|
+
it("has six cards, each a title and a line, with the pictures hidden from screen readers", () => {
|
|
123
|
+
const { container } = render(<HowItWorksSixCardGrid />)
|
|
124
|
+
expect(container.querySelectorAll("li > article")).toHaveLength(6)
|
|
125
|
+
expect(screen.getAllByRole("heading", { level: 3 })).toHaveLength(6)
|
|
126
|
+
expect(container.querySelectorAll('[aria-hidden="true"].bg-muted').length).toBeGreaterThanOrEqual(6)
|
|
127
|
+
expect(screen.getByRole("heading", { level: 2 }).textContent).toBe("From plan to plate")
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
it("sets a figure in Arabic copy in its own left-to-right run, so the word beside it keeps its order", () => {
|
|
131
|
+
const { container } = render(<HowItWorksSixCardGrid locale="ar" />)
|
|
132
|
+
const runs = [...container.querySelectorAll("bdi")].map((node) => ({ text: node.textContent, dir: node.getAttribute("dir") }))
|
|
133
|
+
expect(runs).toContainEqual({ text: "12", dir: "ltr" })
|
|
134
|
+
expect(runs).toContainEqual({ text: "09:00", dir: "ltr" })
|
|
135
|
+
expect(container.textContent).toContain("دقيقة")
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
it("takes its words from props, and keeps the rest", () => {
|
|
139
|
+
render(<HowItWorksSixCardGrid heading="Your week, planned" plan={{ ...howItWorksSixCardGridCopy.en.plan, title: "Plan it" }} />)
|
|
140
|
+
expect(screen.getByRole("heading", { level: 2 }).textContent).toBe("Your week, planned")
|
|
141
|
+
expect(screen.getByText("Plan it")).toBeTruthy()
|
|
142
|
+
expect(screen.getByText("Cook together")).toBeTruthy()
|
|
143
|
+
})
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
describe("Column Panels", () => {
|
|
147
|
+
it("has three panels, with the step in an outline badge, and the intro in the header", () => {
|
|
148
|
+
const { container } = render(<HowItWorksColumnPanels />)
|
|
149
|
+
expect(container.querySelectorAll("ul > li")).toHaveLength(3)
|
|
150
|
+
expect(screen.getByText("1 · Gather")).toBeTruthy()
|
|
151
|
+
expect(screen.getByText(howItWorksColumnPanelsCopy.en.intro as string)).toBeTruthy()
|
|
152
|
+
})
|
|
153
|
+
|
|
154
|
+
it.each(["en", "ar"] as const)("sets each summary figure in a box that follows the page, with only its digits isolated (%s)", (locale) => {
|
|
155
|
+
const { container } = render(<HowItWorksColumnPanels locale={locale} />)
|
|
156
|
+
const figures = [...container.querySelectorAll<HTMLElement>('[data-figure="metric"]')]
|
|
157
|
+
expect(figures).toHaveLength(3)
|
|
158
|
+
for (const figure of figures) {
|
|
159
|
+
// The box carries no direction of its own and aligns to the start, so it sits right in Arabic and left in English.
|
|
160
|
+
expect(figure.hasAttribute("dir")).toBe(false)
|
|
161
|
+
expect(figure.className).toContain("text-start")
|
|
162
|
+
expect(figure.className).toContain("block")
|
|
163
|
+
// The digits keep their order inside one left-to-right isolate, which is the only child and never the flex item itself.
|
|
164
|
+
expect(figure.children).toHaveLength(1)
|
|
165
|
+
const isolate = figure.firstElementChild as HTMLElement
|
|
166
|
+
expect(isolate.tagName).toBe("BDI")
|
|
167
|
+
expect(isolate.getAttribute("dir")).toBe("ltr")
|
|
168
|
+
}
|
|
169
|
+
// The order of "98%" is intact in the isolate.
|
|
170
|
+
expect(figures.map((figure) => figure.textContent)).toContain("98%")
|
|
171
|
+
})
|
|
172
|
+
})
|
|
173
|
+
|
|
174
|
+
describe("Numbered Instruction Panels", () => {
|
|
175
|
+
it("has three numbered steps in an ordered list, each with its caption", () => {
|
|
176
|
+
const { container } = render(<HowItWorksNumberedInstructionPanels />)
|
|
177
|
+
expect(container.querySelectorAll("ol > li")).toHaveLength(3)
|
|
178
|
+
for (const caption of howItWorksNumberedInstructionPanelsCopy.en.steps) expect(screen.getByText(caption as string)).toBeTruthy()
|
|
179
|
+
})
|
|
180
|
+
|
|
181
|
+
it("plays a step again on hover, and not under reduced motion", () => {
|
|
182
|
+
const { container } = render(<HowItWorksNumberedInstructionPanels />)
|
|
183
|
+
const step = container.querySelector("ol > li") as HTMLElement
|
|
184
|
+
act(() => {
|
|
185
|
+
step.dispatchEvent(new MouseEvent("mouseover", { bubbles: true }))
|
|
186
|
+
})
|
|
187
|
+
const before = started
|
|
188
|
+
const handler = Object.keys(step).find((key) => key.startsWith("__reactProps"))
|
|
189
|
+
expect(handler).toBeTruthy()
|
|
190
|
+
;(step as unknown as Record<string, { onMouseEnter: (event: unknown) => void }>)[handler as string]?.onMouseEnter({ currentTarget: step })
|
|
191
|
+
expect(started).toBeGreaterThan(before)
|
|
192
|
+
|
|
193
|
+
cleanup()
|
|
194
|
+
setReducedMotion(true)
|
|
195
|
+
const reduced = render(<HowItWorksNumberedInstructionPanels />)
|
|
196
|
+
const second = reduced.container.querySelector("ol > li") as HTMLElement
|
|
197
|
+
const key = Object.keys(second).find((name) => name.startsWith("__reactProps")) as string
|
|
198
|
+
const count = started
|
|
199
|
+
;(second as unknown as Record<string, { onMouseEnter: (event: unknown) => void }>)[key]?.onMouseEnter({ currentTarget: second })
|
|
200
|
+
expect(started).toBe(count)
|
|
201
|
+
})
|
|
202
|
+
})
|
|
203
|
+
|
|
204
|
+
describe("Numbered Editorial Rows", () => {
|
|
205
|
+
it("numbers its rows from 1 and keeps the figures at rest", () => {
|
|
206
|
+
const { container } = render(<HowItWorksNumberedEditorialRows />)
|
|
207
|
+
const numbers = [...container.querySelectorAll('[data-reveal="count"]')].map((node) => node.textContent)
|
|
208
|
+
expect(numbers).toEqual(["1", "2", "3", "4"])
|
|
209
|
+
})
|
|
210
|
+
|
|
211
|
+
it("takes any number of rows, with a hairline above each and under the last", () => {
|
|
212
|
+
const { container } = render(<HowItWorksNumberedEditorialRows rows={[{ id: "a", title: "A", description: "One" }, { id: "b", title: "B", description: "Two" }]} />)
|
|
213
|
+
expect(container.querySelectorAll('[data-reveal="row"]')).toHaveLength(2)
|
|
214
|
+
expect(container.querySelectorAll('[data-reveal="rule"]')).toHaveLength(3)
|
|
215
|
+
})
|
|
216
|
+
|
|
217
|
+
it("ends on the real figures after the count-up", () => {
|
|
218
|
+
vi.useFakeTimers()
|
|
219
|
+
const { container } = render(<HowItWorksNumberedEditorialRows />)
|
|
220
|
+
scrollIntoView()
|
|
221
|
+
act(() => {
|
|
222
|
+
vi.advanceTimersByTime(2000)
|
|
223
|
+
})
|
|
224
|
+
const numbers = [...container.querySelectorAll('[data-reveal="count"]')].map((node) => node.textContent)
|
|
225
|
+
expect(numbers.length).toBe(4)
|
|
226
|
+
})
|
|
227
|
+
})
|
|
228
|
+
|
|
229
|
+
describe("Split Feature Band", () => {
|
|
230
|
+
it("has two bands, each with its own h2, two buttons and a picture hidden from screen readers", () => {
|
|
231
|
+
const { container } = render(<HowItWorksSplitFeatureBand />)
|
|
232
|
+
expect(screen.getAllByRole("heading", { level: 2 })).toHaveLength(2)
|
|
233
|
+
expect(screen.getAllByRole("button", { name: "Try it free" })).toHaveLength(2)
|
|
234
|
+
expect(container.querySelectorAll('[aria-hidden="true"].overflow-hidden')).toHaveLength(2)
|
|
235
|
+
expect(container.querySelector("section")?.getAttribute("aria-label")).toBe("How it works")
|
|
236
|
+
})
|
|
237
|
+
|
|
238
|
+
it("pins each picture to Light, and nothing else: the `light` class is on the two pictures only", () => {
|
|
239
|
+
const { container } = render(<HowItWorksSplitFeatureBand />)
|
|
240
|
+
const pinned = [...container.querySelectorAll(".light")]
|
|
241
|
+
expect(pinned).toHaveLength(2)
|
|
242
|
+
expect(pinned.every((node) => node.getAttribute("data-pinned") === "light" && node.getAttribute("aria-hidden") === "true")).toBe(true)
|
|
243
|
+
expect(container.querySelector("section")?.classList.contains("light")).toBe(false)
|
|
244
|
+
// The band behind the copy follows the mode.
|
|
245
|
+
expect(pinned.every((node) => !node.parentElement?.classList.contains("light"))).toBe(true)
|
|
246
|
+
})
|
|
247
|
+
|
|
248
|
+
it("draws the glows from theme tokens", () => {
|
|
249
|
+
const { container } = render(<HowItWorksSplitFeatureBand />)
|
|
250
|
+
const glows = [...container.querySelectorAll('[data-reveal="glow"]')]
|
|
251
|
+
expect(glows).toHaveLength(6)
|
|
252
|
+
expect(glows.every((glow) => /bg-(chart-[1-5]|info)\b/.test(glow.getAttribute("class") ?? ""))).toBe(true)
|
|
253
|
+
})
|
|
254
|
+
|
|
255
|
+
it("shows both a step's long label and its short one, one for each width", () => {
|
|
256
|
+
render(<HowItWorksSplitFeatureBand />)
|
|
257
|
+
expect(screen.getByText("New request")).toBeTruthy()
|
|
258
|
+
expect(screen.getByText("Request")).toBeTruthy()
|
|
259
|
+
})
|
|
260
|
+
})
|
|
261
|
+
|
|
262
|
+
describe("Rounded Cards + Device Crop", () => {
|
|
263
|
+
it("keeps the phone's body and the Door unlocked screen solid black with white text in both modes, from the base tokens", () => {
|
|
264
|
+
const { container } = render(<HowItWorksRoundedCardsDeviceCrop />)
|
|
265
|
+
const bodies = [...container.querySelectorAll('[data-reveal="phone"]')]
|
|
266
|
+
expect(bodies).toHaveLength(3)
|
|
267
|
+
expect(bodies.every((body) => /\bbg-base-black\b/.test(body.getAttribute("class") ?? ""))).toBe(true)
|
|
268
|
+
const classes = [...container.querySelectorAll("[class]")].map((node) => node.getAttribute("class") ?? "").join(" ")
|
|
269
|
+
expect(classes).toMatch(/text-base-white\b/)
|
|
270
|
+
expect(classes).not.toMatch(/\bbg-foreground\b|inverse|dark:/)
|
|
271
|
+
expect(screen.getByText("Door unlocked").className).toContain("text-base-white")
|
|
272
|
+
})
|
|
273
|
+
|
|
274
|
+
it("has three cards, a footer of chips, and the household switches at their finished state", () => {
|
|
275
|
+
const { container } = render(<HowItWorksRoundedCardsDeviceCrop />)
|
|
276
|
+
expect(container.querySelectorAll("ol > li")).toHaveLength(3)
|
|
277
|
+
expect(screen.getByText("Also works with")).toBeTruthy()
|
|
278
|
+
const switches = switchInputs(container)
|
|
279
|
+
expect(switches.map((input) => input.checked)).toEqual([true, true, false])
|
|
280
|
+
})
|
|
281
|
+
|
|
282
|
+
it("flips the household switches on after it comes into view, and ends where it began", () => {
|
|
283
|
+
vi.useFakeTimers()
|
|
284
|
+
const { container } = render(<HowItWorksRoundedCardsDeviceCrop />)
|
|
285
|
+
scrollIntoView()
|
|
286
|
+
expect(switchInputs(container).map((input) => input.checked)).toEqual([false, false, false])
|
|
287
|
+
act(() => {
|
|
288
|
+
vi.advanceTimersByTime(1500)
|
|
289
|
+
})
|
|
290
|
+
expect(switchInputs(container).map((input) => input.checked)).toEqual([true, true, false])
|
|
291
|
+
})
|
|
292
|
+
})
|