@smicolon/fasla-ui 0.6.0 → 0.8.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 +24 -5
- package/dist/cli/index.js +2983 -648
- 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 +6 -1
- 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 +9702 -139
- 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,608 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"
|
|
3
|
+
import { act, cleanup, fireEvent, render, screen, within } from "@testing-library/react"
|
|
4
|
+
import { FooterBrandPanelSplit, footerBrandPanelSplitCopy } from "./footer-brand-panel-split"
|
|
5
|
+
import { FooterGiantWordmark, footerGiantWordmarkCopy } from "./footer-giant-wordmark"
|
|
6
|
+
import { FooterImageBackedBrand, footerImageBackedBrandCopy } from "./footer-image-backed-brand"
|
|
7
|
+
import { FooterCenteredBrandMinimal, footerCenteredBrandMinimalCopy } from "./footer-centered-brand-minimal"
|
|
8
|
+
import { FooterMarqueeStrip, footerMarqueeStripCopy } from "./footer-marquee-strip"
|
|
9
|
+
import { FooterBigTypeLinkStack, footerBigTypeLinkStackCopy } from "./footer-big-type-link-stack"
|
|
10
|
+
import { FooterBentoTile, footerBentoTileCopy } from "./footer-bento-tile"
|
|
11
|
+
|
|
12
|
+
/** Whether some class on `cls` has every variant in `spec`, in any order, and the same utility: `a:b:x` matches `b:a:x`. */
|
|
13
|
+
function hasVariants(cls: string, spec: string): boolean {
|
|
14
|
+
const split = (token: string) => {
|
|
15
|
+
const out: string[] = []
|
|
16
|
+
let cur = ""
|
|
17
|
+
let depth = 0
|
|
18
|
+
for (const ch of token) {
|
|
19
|
+
if (ch === "[" || ch === "(") depth++
|
|
20
|
+
if (ch === "]" || ch === ")") depth--
|
|
21
|
+
if (ch === ":" && depth === 0) {
|
|
22
|
+
out.push(cur)
|
|
23
|
+
cur = ""
|
|
24
|
+
} else cur += ch
|
|
25
|
+
}
|
|
26
|
+
out.push(cur)
|
|
27
|
+
return out
|
|
28
|
+
}
|
|
29
|
+
const want = split(spec)
|
|
30
|
+
const util = want.pop()
|
|
31
|
+
return cls.split(/\s+/).some((token) => {
|
|
32
|
+
const have = split(token)
|
|
33
|
+
return have.pop() === util && want.every((variant) => have.includes(variant))
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/*
|
|
39
|
+
* The seven Footer Types of the brand family. jsdom has no layout, media
|
|
40
|
+
* queries, observers, scrolling or Web Animations, so each is stubbed: the
|
|
41
|
+
* tests check contracts (what is on the page, what the motion is handed, what
|
|
42
|
+
* reduced motion and a coarse pointer switch off), not how a browser paints
|
|
43
|
+
* them. Sizes, gaps and the look of the rise, the parallax and the loop were
|
|
44
|
+
* read from Figma and are checked in a browser.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
type Recorded = { el: Element; keyframes: Keyframe[]; options: KeyframeAnimationOptions; pause: ReturnType<typeof vi.fn>; play: ReturnType<typeof vi.fn>; cancel: ReturnType<typeof vi.fn> }
|
|
48
|
+
type Callback = (entries: { isIntersecting: boolean }[]) => void
|
|
49
|
+
|
|
50
|
+
let animations: Recorded[]
|
|
51
|
+
let observers: { callback: Callback; live: boolean }[]
|
|
52
|
+
const env = { reduced: false, fine: true, hover: true, width: 1440 }
|
|
53
|
+
|
|
54
|
+
beforeEach(() => {
|
|
55
|
+
animations = []
|
|
56
|
+
observers = []
|
|
57
|
+
Object.assign(env, { reduced: false, fine: true, hover: true, width: 1440 })
|
|
58
|
+
window.matchMedia = vi.fn((query: string) => ({
|
|
59
|
+
matches: (query.includes("prefers-reduced-motion") && env.reduced) || (query.includes("pointer: fine") && env.fine) || (query.includes("hover: hover") && env.hover),
|
|
60
|
+
media: query,
|
|
61
|
+
onchange: null,
|
|
62
|
+
addEventListener: vi.fn(),
|
|
63
|
+
removeEventListener: vi.fn(),
|
|
64
|
+
addListener: vi.fn(),
|
|
65
|
+
removeListener: vi.fn(),
|
|
66
|
+
dispatchEvent: vi.fn(),
|
|
67
|
+
})) as unknown as typeof window.matchMedia
|
|
68
|
+
Element.prototype.animate = function (this: Element, keyframes: Keyframe[], options: KeyframeAnimationOptions) {
|
|
69
|
+
const animation: Recorded = { el: this, keyframes, options, pause: vi.fn(), play: vi.fn(), cancel: vi.fn() }
|
|
70
|
+
animations.push(animation)
|
|
71
|
+
return animation as unknown as Animation
|
|
72
|
+
} as typeof Element.prototype.animate
|
|
73
|
+
class FakeObserver {
|
|
74
|
+
entry: { callback: Callback; live: boolean }
|
|
75
|
+
constructor(callback: Callback) {
|
|
76
|
+
this.entry = { callback, live: true }
|
|
77
|
+
observers.push(this.entry)
|
|
78
|
+
}
|
|
79
|
+
observe() {}
|
|
80
|
+
unobserve() {}
|
|
81
|
+
disconnect() {
|
|
82
|
+
this.entry.live = false
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
vi.stubGlobal("IntersectionObserver", FakeObserver)
|
|
86
|
+
Object.defineProperty(HTMLElement.prototype, "clientWidth", { configurable: true, get: () => env.width })
|
|
87
|
+
})
|
|
88
|
+
afterEach(() => {
|
|
89
|
+
cleanup()
|
|
90
|
+
vi.unstubAllGlobals()
|
|
91
|
+
// @ts-expect-error the stubs are removed again
|
|
92
|
+
delete window.matchMedia
|
|
93
|
+
// @ts-expect-error the stubs are removed again
|
|
94
|
+
delete Element.prototype.animate
|
|
95
|
+
// @ts-expect-error the stub is removed again
|
|
96
|
+
delete HTMLElement.prototype.clientWidth
|
|
97
|
+
})
|
|
98
|
+
|
|
99
|
+
/** Brings every observed block into view, as scrolling to it would. */
|
|
100
|
+
const scrollIntoView = () =>
|
|
101
|
+
act(() => {
|
|
102
|
+
observers.filter((o) => o.live).forEach((o) => o.callback([{ isIntersecting: true }]))
|
|
103
|
+
})
|
|
104
|
+
|
|
105
|
+
const strings = (value: unknown): string[] => (typeof value === "string" ? [value] : value && typeof value === "object" ? Object.values(value).flatMap(strings) : [])
|
|
106
|
+
|
|
107
|
+
const inDir = (dir: "ltr" | "rtl", node: React.ReactNode) => <div dir={dir}>{node}</div>
|
|
108
|
+
|
|
109
|
+
type Case = { name: string; copy: Record<"en" | "ar", unknown>; render: (locale: "en" | "ar") => React.ReactElement; empty: React.ReactElement; text: { en: string; ar: string }; navs: number }
|
|
110
|
+
|
|
111
|
+
const cases: Case[] = [
|
|
112
|
+
{ name: "Brand Panel Split", copy: footerBrandPanelSplitCopy, render: (locale) => <FooterBrandPanelSplit locale={locale} />, empty: <FooterBrandPanelSplit columns={[]} legal={[]} socials={[]} body="" email="" />, text: { en: "Build it once. Ship it in two languages.", ar: "ابنِه مرة واحدة. أطلقه بلغتين." }, navs: 5 },
|
|
113
|
+
{ name: "Giant Wordmark", copy: footerGiantWordmarkCopy, render: (locale) => <FooterGiantWordmark locale={locale} />, empty: <FooterGiantWordmark columns={[]} legal={[]} socials={[]} introSub="" />, text: { en: "A design system that reads both ways.", ar: "نظام تصميم يُقرأ في الاتجاهين." }, navs: 4 },
|
|
114
|
+
{ name: "Image-Backed Brand", copy: footerImageBackedBrandCopy, render: (locale) => <FooterImageBackedBrand locale={locale} />, empty: <FooterImageBackedBrand links={[]} legal={[]} socials={[]} sub="" />, text: { en: "Design once. Ship in every direction.", ar: "صمّم مرة واحدة. أطلق في كل اتجاه." }, navs: 2 },
|
|
115
|
+
{ name: "Centered Brand Minimal", copy: footerCenteredBrandMinimalCopy, render: (locale) => <FooterCenteredBrandMinimal locale={locale} />, empty: <FooterCenteredBrandMinimal links={[]} socials={[]} tagline="" />, text: { en: "The bilingual design system for product teams.", ar: "نظام التصميم ثنائي اللغة لفرق المنتج." }, navs: 1 },
|
|
116
|
+
{ name: "Marquee Strip", copy: footerMarqueeStripCopy, render: (locale) => <FooterMarqueeStrip locale={locale} />, empty: <FooterMarqueeStrip links={[]} legal={[]} socials={[]} phrase="" />, text: { en: "Bilingual by default", ar: "ثنائية اللغة افتراضيًا" }, navs: 2 },
|
|
117
|
+
{ name: "Big-Type Link Stack", copy: footerBigTypeLinkStackCopy, render: (locale) => <FooterBigTypeLinkStack locale={locale} />, empty: <FooterBigTypeLinkStack rows={[]} legal={[]} socials={[]} studio={{ title: "Studio", lines: [] }} contact={{ title: "Contact", lines: [] }} hours={{ title: "Hours", lines: [] }} />, text: { en: "Documentation", ar: "التوثيق" }, navs: 2 },
|
|
118
|
+
{ name: "Bento Tile", copy: footerBentoTileCopy, render: (locale) => <FooterBentoTile locale={locale} />, empty: <FooterBentoTile columns={[]} legal={[]} socials={[]} />, text: { en: "Monthly changelog", ar: "سجل تغييرات شهري" }, navs: 3 },
|
|
119
|
+
]
|
|
120
|
+
|
|
121
|
+
describe.each(cases)("$name", (c) => {
|
|
122
|
+
it.each(["en", "ar"] as const)("renders in %s with one footer landmark and its copy", (locale) => {
|
|
123
|
+
const { container } = render(inDir(locale === "ar" ? "rtl" : "ltr", c.render(locale)))
|
|
124
|
+
expect(screen.getAllByRole("contentinfo")).toHaveLength(1)
|
|
125
|
+
expect(container.textContent).toContain(c.text[locale])
|
|
126
|
+
})
|
|
127
|
+
|
|
128
|
+
it.each(["en", "ar"] as const)("names every link group (%s)", (locale) => {
|
|
129
|
+
const { container } = render(inDir(locale === "ar" ? "rtl" : "ltr", c.render(locale)))
|
|
130
|
+
const navs = screen.getAllByRole("navigation")
|
|
131
|
+
expect(navs).toHaveLength(c.navs)
|
|
132
|
+
navs.forEach((nav) => {
|
|
133
|
+
const name = nav.getAttribute("aria-label") ?? container.querySelector(`[id="${nav.getAttribute("aria-labelledby")}"]`)?.textContent
|
|
134
|
+
expect(name?.trim()).toBeTruthy()
|
|
135
|
+
})
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
it("has no em dash or middle dot in the Arabic copy", () => {
|
|
139
|
+
strings(c.copy.ar).forEach((text) => {
|
|
140
|
+
expect(text).not.toMatch(/[—·]/)
|
|
141
|
+
})
|
|
142
|
+
})
|
|
143
|
+
|
|
144
|
+
it("has no asterisks in the markup", () => {
|
|
145
|
+
const { container } = render(c.render("en"))
|
|
146
|
+
expect(container.textContent).not.toContain("*")
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
it("takes empty collections without crashing or drawing an empty heading", () => {
|
|
150
|
+
const { container } = render(c.empty)
|
|
151
|
+
expect(screen.getAllByRole("contentinfo")).toHaveLength(1)
|
|
152
|
+
container.querySelectorAll("h2, h3").forEach((heading) => {
|
|
153
|
+
expect(heading.textContent?.trim()).not.toBe("")
|
|
154
|
+
})
|
|
155
|
+
})
|
|
156
|
+
})
|
|
157
|
+
|
|
158
|
+
describe("Brand Panel Split", () => {
|
|
159
|
+
it("is Figma's four columns of six links, with the email and four social marks", () => {
|
|
160
|
+
const { container } = render(<FooterBrandPanelSplit />)
|
|
161
|
+
expect(footerBrandPanelSplitCopy.en.columns.map((col) => [col.title, col.links.length])).toEqual([["Product", 6], ["Learn", 6], ["Company", 6], ["Support", 6]])
|
|
162
|
+
expect(screen.getByRole("link", { name: /you@company\.com/ }).getAttribute("href")).toBe("mailto:you@company.com")
|
|
163
|
+
;["LinkedIn", "X (Twitter)", "GitHub", "YouTube"].forEach((name) => expect(container.querySelector(`a[aria-label="${name}"]`) ?? container.querySelector(`a[aria-label*="${name.split(" ")[0]}" i]`)).toBeTruthy())
|
|
164
|
+
})
|
|
165
|
+
|
|
166
|
+
it("puts the panel on the secondary ground and plays no motion", () => {
|
|
167
|
+
const { container } = render(<FooterBrandPanelSplit />)
|
|
168
|
+
expect(container.querySelector(".bg-secondary")).toBeTruthy()
|
|
169
|
+
expect(container.querySelector("[data-reveal]")).toBeNull()
|
|
170
|
+
scrollIntoView()
|
|
171
|
+
expect(animations).toHaveLength(0)
|
|
172
|
+
})
|
|
173
|
+
|
|
174
|
+
it("keeps the year a left-to-right island in Arabic", () => {
|
|
175
|
+
const { container } = render(inDir("rtl", <FooterBrandPanelSplit locale="ar" />))
|
|
176
|
+
expect(Array.from(container.querySelectorAll("bdi[dir='ltr']")).map((b) => b.textContent)).toContain("2026")
|
|
177
|
+
})
|
|
178
|
+
})
|
|
179
|
+
|
|
180
|
+
describe("Centered Brand Minimal", () => {
|
|
181
|
+
it("lists Figma's eight links and five marks, and plays no motion", () => {
|
|
182
|
+
const { container } = render(<FooterCenteredBrandMinimal />)
|
|
183
|
+
expect(within(screen.getByRole("navigation")).getAllByRole("link")).toHaveLength(8)
|
|
184
|
+
expect(container.querySelectorAll("ul a[aria-label]")).toHaveLength(5)
|
|
185
|
+
scrollIntoView()
|
|
186
|
+
expect(animations).toHaveLength(0)
|
|
187
|
+
})
|
|
188
|
+
})
|
|
189
|
+
|
|
190
|
+
describe("Giant Wordmark", () => {
|
|
191
|
+
const mark = (container: HTMLElement) => container.querySelector<HTMLElement>("[data-wordmark]")!
|
|
192
|
+
const stubRect = (container: HTMLElement, top: number, height: number) => {
|
|
193
|
+
container.querySelector("footer")!.getBoundingClientRect = () => ({ top, height, bottom: top + height, left: 0, right: 0, width: 0, x: 0, y: top, toJSON() {} }) as DOMRect
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
it("draws the lockup inside the block, in flow, at the three heights Figma gives", () => {
|
|
197
|
+
const { container } = render(<FooterGiantWordmark />)
|
|
198
|
+
const svg = mark(container).querySelector("svg")!
|
|
199
|
+
expect(svg.getAttribute("class")).toContain("h-[97px]")
|
|
200
|
+
expect(svg.getAttribute("class")).toContain("[@container(min-width:40rem)]:h-[207px]")
|
|
201
|
+
expect(svg.getAttribute("class")).toContain("[@container(min-width:64rem)]:h-[260px]")
|
|
202
|
+
expect(container.querySelector("footer > div")!.lastElementChild).toBe(mark(container))
|
|
203
|
+
})
|
|
204
|
+
|
|
205
|
+
it("fades and rises the three link columns once, 300ms, 60ms apart, when the block is seen", () => {
|
|
206
|
+
const { container } = render(<FooterGiantWordmark />)
|
|
207
|
+
expect(animations).toHaveLength(0)
|
|
208
|
+
scrollIntoView()
|
|
209
|
+
const columns = container.querySelectorAll("nav[data-reveal]")
|
|
210
|
+
expect(columns).toHaveLength(3)
|
|
211
|
+
const played = animations.filter((a) => a.options.duration === 300)
|
|
212
|
+
expect(played.map((a) => a.options.delay)).toEqual([0, 60, 120])
|
|
213
|
+
expect(played[0]!.keyframes[0]).toMatchObject({ opacity: 0, transform: "translateY(12px)" })
|
|
214
|
+
})
|
|
215
|
+
|
|
216
|
+
it("rises with the scroll on Desktop: 48px down at first, none once the block has fully entered", () => {
|
|
217
|
+
const { container } = render(<FooterGiantWordmark />)
|
|
218
|
+
vi.spyOn(window, "requestAnimationFrame").mockImplementation((cb) => (cb(0), 0))
|
|
219
|
+
stubRect(container, 700, 600)
|
|
220
|
+
act(() => {
|
|
221
|
+
window.dispatchEvent(new Event("scroll"))
|
|
222
|
+
})
|
|
223
|
+
expect(mark(container).style.transform).toBe("translateY(48px)")
|
|
224
|
+
stubRect(container, -200, 600)
|
|
225
|
+
act(() => {
|
|
226
|
+
window.dispatchEvent(new Event("scroll"))
|
|
227
|
+
})
|
|
228
|
+
expect(mark(container).style.transform).toBe("")
|
|
229
|
+
})
|
|
230
|
+
|
|
231
|
+
it("listens to the scroll passively", () => {
|
|
232
|
+
const add = vi.spyOn(window, "addEventListener")
|
|
233
|
+
render(<FooterGiantWordmark />)
|
|
234
|
+
expect(add).toHaveBeenCalledWith("scroll", expect.any(Function), { passive: true })
|
|
235
|
+
})
|
|
236
|
+
|
|
237
|
+
it("on Mobile pins the lockup and fades it in over 260ms instead of rising", () => {
|
|
238
|
+
env.width = 360
|
|
239
|
+
const add = vi.spyOn(window, "addEventListener")
|
|
240
|
+
const { container } = render(<FooterGiantWordmark />)
|
|
241
|
+
expect(add).not.toHaveBeenCalledWith("scroll", expect.any(Function), expect.anything())
|
|
242
|
+
scrollIntoView()
|
|
243
|
+
const fade = animations.find((a) => a.el === mark(container))!
|
|
244
|
+
expect(fade.options.duration).toBe(260)
|
|
245
|
+
expect(fade.keyframes).toEqual([{ opacity: 0 }, { opacity: 1 }])
|
|
246
|
+
expect(mark(container).style.transform).toBe("")
|
|
247
|
+
})
|
|
248
|
+
|
|
249
|
+
it("under reduced motion pins the lockup at its final place and plays nothing", () => {
|
|
250
|
+
env.reduced = true
|
|
251
|
+
const add = vi.spyOn(window, "addEventListener")
|
|
252
|
+
const remove = vi.spyOn(window, "removeEventListener")
|
|
253
|
+
const { container } = render(<FooterGiantWordmark />)
|
|
254
|
+
scrollIntoView()
|
|
255
|
+
expect(animations).toHaveLength(0)
|
|
256
|
+
expect(add.mock.calls.filter(([type]) => type === "scroll")).toHaveLength(0)
|
|
257
|
+
expect(remove.mock.calls.filter(([type]) => type === "scroll")).toHaveLength(0)
|
|
258
|
+
expect(mark(container).style.transform).toBe("")
|
|
259
|
+
})
|
|
260
|
+
|
|
261
|
+
it("draws the Arabic lockup in Arabic", () => {
|
|
262
|
+
const { container } = render(inDir("rtl", <FooterGiantWordmark locale="ar" />))
|
|
263
|
+
expect(container.querySelector("[data-wordmark] svg[data-direction='rtl']")).toBeTruthy()
|
|
264
|
+
})
|
|
265
|
+
})
|
|
266
|
+
|
|
267
|
+
describe("Image-Backed Brand", () => {
|
|
268
|
+
const photo = (container: HTMLElement) => container.querySelector<HTMLElement>("[data-photo]")!
|
|
269
|
+
const scrim = (container: HTMLElement) => container.querySelector<HTMLElement>("[data-scrim]")!
|
|
270
|
+
const scrolled = (container: HTMLElement, top: number) => {
|
|
271
|
+
container.querySelector("footer")!.getBoundingClientRect = () => ({ top, height: 400, bottom: top + 400, left: 0, right: 0, width: 0, x: 0, y: top, toJSON() {} }) as DOMRect
|
|
272
|
+
vi.spyOn(window, "requestAnimationFrame").mockImplementation((cb) => (cb(0), 0))
|
|
273
|
+
act(() => {
|
|
274
|
+
window.dispatchEvent(new Event("scroll"))
|
|
275
|
+
})
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
it("draws the photo from the `background` prop, and the muted ground without one", () => {
|
|
279
|
+
const { container, rerender } = render(<FooterImageBackedBrand />)
|
|
280
|
+
expect(container.querySelector("img")).toBeNull()
|
|
281
|
+
expect(photo(container).className).toContain("bg-muted")
|
|
282
|
+
rerender(<FooterImageBackedBrand background={{ src: "/photo.jpg", alt: "A room" }} />)
|
|
283
|
+
expect(container.querySelector("img")!.getAttribute("src")).toBe("/photo.jpg")
|
|
284
|
+
expect(container.querySelector("img")!.getAttribute("loading")).toBe("lazy")
|
|
285
|
+
})
|
|
286
|
+
|
|
287
|
+
it("lays the photo and the scrim over the whole band, outside the 1280px column and its padding", () => {
|
|
288
|
+
const { container } = render(<FooterImageBackedBrand />)
|
|
289
|
+
const band = container.querySelector("footer")!
|
|
290
|
+
// Direct children of the footer, so inset-0 means the band's own edges: no bars above or below, none at the sides.
|
|
291
|
+
expect(photo(container).parentElement).toBe(band)
|
|
292
|
+
expect(scrim(container).parentElement).toBe(band)
|
|
293
|
+
expect(photo(container).className).toContain("inset-x-0")
|
|
294
|
+
expect(scrim(container).className).toContain("inset-0")
|
|
295
|
+
expect(band.className).toContain("overflow-hidden")
|
|
296
|
+
})
|
|
297
|
+
|
|
298
|
+
it("draws the hairline at Figma's .18", () => {
|
|
299
|
+
const { container } = render(<FooterImageBackedBrand />)
|
|
300
|
+
expect(container.querySelector('[role="presentation"]')!.className).toContain("opacity-[.18]")
|
|
301
|
+
})
|
|
302
|
+
|
|
303
|
+
it("lays the scrim as its own layer in background-inverse at .62, under the text", () => {
|
|
304
|
+
const { container } = render(<FooterImageBackedBrand />)
|
|
305
|
+
const layer = scrim(container)
|
|
306
|
+
expect(layer.className).toContain("bg-background-inverse")
|
|
307
|
+
expect(layer.className).toContain("opacity-[.62]")
|
|
308
|
+
expect(layer.className).toContain("absolute")
|
|
309
|
+
expect(container.querySelector("h2")!.className).toContain("text-foreground-inverse")
|
|
310
|
+
})
|
|
311
|
+
|
|
312
|
+
it("parallaxes the photo by transform only, and takes the scrim from .72 to .62", () => {
|
|
313
|
+
const { container } = render(<FooterImageBackedBrand />)
|
|
314
|
+
scrolled(container, 768)
|
|
315
|
+
expect(photo(container).style.transform).toBe("translateY(-24px)")
|
|
316
|
+
expect(photo(container).style.backgroundPosition).toBe("")
|
|
317
|
+
expect(scrim(container).style.opacity).toBe("0.72")
|
|
318
|
+
scrolled(container, -400)
|
|
319
|
+
expect(photo(container).style.transform).toBe("translateY(24px)")
|
|
320
|
+
expect(scrim(container).style.opacity).toBe("0.62")
|
|
321
|
+
})
|
|
322
|
+
|
|
323
|
+
it("shrinks the range with the block: 16px on Tablet, 8px on Mobile", () => {
|
|
324
|
+
env.width = 768
|
|
325
|
+
const tablet = render(<FooterImageBackedBrand />)
|
|
326
|
+
scrolled(tablet.container, 768)
|
|
327
|
+
expect(photo(tablet.container).style.transform).toBe("translateY(-16px)")
|
|
328
|
+
tablet.unmount()
|
|
329
|
+
env.width = 360
|
|
330
|
+
const mobile = render(<FooterImageBackedBrand />)
|
|
331
|
+
scrolled(mobile.container, 768)
|
|
332
|
+
expect(photo(mobile.container).style.transform).toBe("translateY(-8px)")
|
|
333
|
+
})
|
|
334
|
+
|
|
335
|
+
it("does no parallax without a fine pointer, or under reduced motion; the scrim stays .62", () => {
|
|
336
|
+
env.fine = false
|
|
337
|
+
const coarse = render(<FooterImageBackedBrand />)
|
|
338
|
+
scrolled(coarse.container, 300)
|
|
339
|
+
expect(photo(coarse.container).style.transform).toBe("")
|
|
340
|
+
expect(scrim(coarse.container).style.opacity).toBe("")
|
|
341
|
+
coarse.unmount()
|
|
342
|
+
env.fine = true
|
|
343
|
+
env.reduced = true
|
|
344
|
+
const reduced = render(<FooterImageBackedBrand />)
|
|
345
|
+
scrolled(reduced.container, 300)
|
|
346
|
+
expect(photo(reduced.container).style.transform).toBe("")
|
|
347
|
+
expect(scrim(reduced.container).style.opacity).toBe("")
|
|
348
|
+
})
|
|
349
|
+
|
|
350
|
+
it("fades the content in at 30% visible, 320ms, 60ms apart, and the links as one group", () => {
|
|
351
|
+
const { container } = render(<FooterImageBackedBrand />)
|
|
352
|
+
scrollIntoView()
|
|
353
|
+
const played = animations.filter((a) => a.options.duration === 320)
|
|
354
|
+
expect(played.length).toBeGreaterThan(3)
|
|
355
|
+
expect(played.map((a) => a.options.delay)).toEqual(played.map((_, i) => i * 60))
|
|
356
|
+
expect(container.querySelectorAll("nav[data-reveal]")).toHaveLength(1)
|
|
357
|
+
expect(container.querySelectorAll("nav li[data-reveal]")).toHaveLength(0)
|
|
358
|
+
})
|
|
359
|
+
|
|
360
|
+
it("plays no entrance under reduced motion", () => {
|
|
361
|
+
env.reduced = true
|
|
362
|
+
render(<FooterImageBackedBrand />)
|
|
363
|
+
scrollIntoView()
|
|
364
|
+
expect(animations).toHaveLength(0)
|
|
365
|
+
})
|
|
366
|
+
})
|
|
367
|
+
|
|
368
|
+
describe("Marquee Strip", () => {
|
|
369
|
+
const track = (container: HTMLElement) => container.querySelector<HTMLElement>("[data-marquee-track]")!
|
|
370
|
+
const loop = () => animations.find((a) => a.options.iterations === Infinity)!
|
|
371
|
+
|
|
372
|
+
it("is a track of fourteen children drawn twice, so the seam is invisible", () => {
|
|
373
|
+
const { container } = render(<FooterMarqueeStrip />)
|
|
374
|
+
const sets = track(container).querySelectorAll("[data-marquee-set]")
|
|
375
|
+
expect(sets).toHaveLength(2)
|
|
376
|
+
sets.forEach((set) => expect(set.children).toHaveLength(14))
|
|
377
|
+
expect(sets[1]!.getAttribute("aria-hidden")).toBe("true")
|
|
378
|
+
expect(container.querySelectorAll("[data-marquee-phrase]")[0]!.textContent).toBe("Bilingual by default")
|
|
379
|
+
})
|
|
380
|
+
|
|
381
|
+
it("translates 0 to -50% of its width, linear, forever, 28s on Desktop", () => {
|
|
382
|
+
const { container } = render(<FooterMarqueeStrip />)
|
|
383
|
+
const a = loop()
|
|
384
|
+
expect(a.el).toBe(track(container))
|
|
385
|
+
expect(a.keyframes).toEqual([{ transform: "translateX(0)" }, { transform: "translateX(-50%)" }])
|
|
386
|
+
expect(a.options).toMatchObject({ duration: 28000, iterations: Infinity, easing: "linear" })
|
|
387
|
+
})
|
|
388
|
+
|
|
389
|
+
it("scales the duration with the width: 15s on Tablet, 7s on Mobile", () => {
|
|
390
|
+
env.width = 768
|
|
391
|
+
const tablet = render(<FooterMarqueeStrip />)
|
|
392
|
+
expect(loop().options.duration).toBe(15000)
|
|
393
|
+
tablet.unmount()
|
|
394
|
+
animations = []
|
|
395
|
+
env.width = 360
|
|
396
|
+
render(<FooterMarqueeStrip />)
|
|
397
|
+
expect(loop().options.duration).toBe(7000)
|
|
398
|
+
})
|
|
399
|
+
|
|
400
|
+
it("runs the other way in Arabic: 0 to +50%", () => {
|
|
401
|
+
render(inDir("rtl", <FooterMarqueeStrip locale="ar" />))
|
|
402
|
+
expect(loop().keyframes).toEqual([{ transform: "translateX(0)" }, { transform: "translateX(50%)" }])
|
|
403
|
+
})
|
|
404
|
+
|
|
405
|
+
it("pauses on hover on Desktop, resumes on leave, and just runs on touch and on Mobile", () => {
|
|
406
|
+
const { container } = render(<FooterMarqueeStrip />)
|
|
407
|
+
const stage = container.querySelector("[data-marquee-stage]")!
|
|
408
|
+
fireEvent.mouseEnter(stage)
|
|
409
|
+
expect(loop().pause).toHaveBeenCalledTimes(1)
|
|
410
|
+
fireEvent.mouseLeave(stage)
|
|
411
|
+
expect(loop().play).toHaveBeenCalledTimes(1)
|
|
412
|
+
cleanup()
|
|
413
|
+
animations = []
|
|
414
|
+
env.hover = false
|
|
415
|
+
const touch = render(<FooterMarqueeStrip />)
|
|
416
|
+
fireEvent.mouseEnter(touch.container.querySelector("[data-marquee-stage]")!)
|
|
417
|
+
expect(loop().pause).not.toHaveBeenCalled()
|
|
418
|
+
cleanup()
|
|
419
|
+
animations = []
|
|
420
|
+
env.hover = true
|
|
421
|
+
env.width = 360
|
|
422
|
+
const mobile = render(<FooterMarqueeStrip />)
|
|
423
|
+
fireEvent.mouseEnter(mobile.container.querySelector("[data-marquee-stage]")!)
|
|
424
|
+
expect(loop().pause).not.toHaveBeenCalled()
|
|
425
|
+
})
|
|
426
|
+
|
|
427
|
+
it("stops the loop under reduced motion and centres one phrase set", () => {
|
|
428
|
+
env.reduced = true
|
|
429
|
+
const { container } = render(<FooterMarqueeStrip />)
|
|
430
|
+
expect(animations).toHaveLength(0)
|
|
431
|
+
expect(track(container).querySelectorAll("[data-marquee-set]")).toHaveLength(1)
|
|
432
|
+
expect(container.querySelector("[data-marquee-stage]")!.className).toContain("justify-center")
|
|
433
|
+
})
|
|
434
|
+
|
|
435
|
+
it("clips the edges hard, with no gradient mask, and sizes the stage 88 / 104 / 132", () => {
|
|
436
|
+
const { container } = render(<FooterMarqueeStrip />)
|
|
437
|
+
const stage = container.querySelector("[data-marquee-stage]")!
|
|
438
|
+
expect(stage.className).toContain("overflow-hidden")
|
|
439
|
+
expect(stage.className).not.toMatch(/mask|gradient/)
|
|
440
|
+
expect(stage.className).toContain("h-[88px]")
|
|
441
|
+
expect(hasVariants(stage.getAttribute("class") ?? "", "[@container(min-width:40rem)]:h-[104px]")).toBe(true)
|
|
442
|
+
expect(hasVariants(stage.getAttribute("class") ?? "", "[@container(min-width:64rem)]:h-[132px]")).toBe(true)
|
|
443
|
+
})
|
|
444
|
+
|
|
445
|
+
it("keeps the phrase readable by assistive tech once, not fourteen times", () => {
|
|
446
|
+
const { container } = render(<FooterMarqueeStrip />)
|
|
447
|
+
expect(container.querySelector(".sr-only")!.textContent).toBe("Bilingual by default")
|
|
448
|
+
expect(track(container).getAttribute("aria-hidden")).toBe("true")
|
|
449
|
+
})
|
|
450
|
+
})
|
|
451
|
+
|
|
452
|
+
describe("Big-Type Link Stack", () => {
|
|
453
|
+
const rows = (container: HTMLElement) => Array.from(container.querySelectorAll<HTMLElement>("[data-row]"))
|
|
454
|
+
|
|
455
|
+
it("is five rows, each a label and an up-right arrow that flips in Arabic", () => {
|
|
456
|
+
const { container } = render(<FooterBigTypeLinkStack />)
|
|
457
|
+
expect(rows(container).map((row) => row.textContent)).toEqual(["Product", "Documentation", "Pricing", "Company", "Contact"])
|
|
458
|
+
rows(container).forEach((row) => {
|
|
459
|
+
expect(row.querySelector("svg")!.getAttribute("class")).toContain("rtl:-scale-x-100")
|
|
460
|
+
expect(row.querySelector("svg")!.getAttribute("aria-hidden")).toBe("true")
|
|
461
|
+
})
|
|
462
|
+
})
|
|
463
|
+
|
|
464
|
+
it("sets the labels 3XL (30px) up to Tablet and 5XL on Desktop, as the frames render them", () => {
|
|
465
|
+
const { container } = render(<FooterBigTypeLinkStack />)
|
|
466
|
+
const label = rows(container)[0]!.querySelector("span")!.className
|
|
467
|
+
expect(label).toContain("text-3xl")
|
|
468
|
+
expect(label).not.toContain("text-4xl")
|
|
469
|
+
expect(hasVariants(label, "[@container(min-width:64rem)]:text-5xl")).toBe(true)
|
|
470
|
+
expect(label).toContain("font-light")
|
|
471
|
+
})
|
|
472
|
+
|
|
473
|
+
it("moves label and arrow only under a real hover, 8px on Desktop, 6px on Tablet, toward the end side, and the reverse in Arabic", () => {
|
|
474
|
+
const { container } = render(<FooterBigTypeLinkStack />)
|
|
475
|
+
const label = rows(container)[0]!.querySelector("span")!.className
|
|
476
|
+
expect(hasVariants(label, "group-hover:[@container(min-width:64rem)]:translate-x-2")).toBe(true)
|
|
477
|
+
expect(hasVariants(label, "group-hover:[@container(min-width:40rem)]:translate-x-[6px]")).toBe(true)
|
|
478
|
+
expect(hasVariants(label, "group-hover:rtl:[@container(min-width:64rem)]:-translate-x-2")).toBe(true)
|
|
479
|
+
expect(hasVariants(label, "group-focus-visible:translate-x-2")).toBe(true)
|
|
480
|
+
const arrow = rows(container)[0]!.querySelector("svg")!.getAttribute("class")!
|
|
481
|
+
expect(arrow).toContain("opacity-60")
|
|
482
|
+
expect(hasVariants(arrow, "group-hover:opacity-100")).toBe(true)
|
|
483
|
+
})
|
|
484
|
+
|
|
485
|
+
it("tints the row secondary on tap on Mobile and thickens the hairline 1 to 2px on hover", () => {
|
|
486
|
+
const { container } = render(<FooterBigTypeLinkStack />)
|
|
487
|
+
const row = rows(container)[0]!.querySelector("a")!.className
|
|
488
|
+
expect(hasVariants(row, "active:bg-secondary")).toBe(true)
|
|
489
|
+
expect(row).toContain("duration-[120ms]")
|
|
490
|
+
expect(hasVariants(row, "hover:after:scale-y-[2]")).toBe(true)
|
|
491
|
+
})
|
|
492
|
+
|
|
493
|
+
it("reveals the rows with a bottom-up clip, 420ms, 70ms apart (50ms on Mobile)", () => {
|
|
494
|
+
const { container } = render(<FooterBigTypeLinkStack />)
|
|
495
|
+
expect(animations).toHaveLength(0)
|
|
496
|
+
scrollIntoView()
|
|
497
|
+
const played = animations.filter((a) => a.options.duration === 420)
|
|
498
|
+
expect(played).toHaveLength(5)
|
|
499
|
+
expect(played.map((a) => a.options.delay)).toEqual([0, 70, 140, 210, 280])
|
|
500
|
+
expect(played[0]!.keyframes).toEqual([{ clipPath: "inset(100% 0 0 0)" }, { clipPath: "inset(0 0 0 0)" }])
|
|
501
|
+
expect(rows(container)).toHaveLength(5)
|
|
502
|
+
cleanup()
|
|
503
|
+
animations = []
|
|
504
|
+
env.width = 360
|
|
505
|
+
render(<FooterBigTypeLinkStack />)
|
|
506
|
+
scrollIntoView()
|
|
507
|
+
expect(animations.map((a) => a.options.delay)).toEqual([0, 50, 100, 150, 200])
|
|
508
|
+
})
|
|
509
|
+
|
|
510
|
+
it("reveals nothing under reduced motion", () => {
|
|
511
|
+
env.reduced = true
|
|
512
|
+
render(<FooterBigTypeLinkStack />)
|
|
513
|
+
scrollIntoView()
|
|
514
|
+
expect(animations).toHaveLength(0)
|
|
515
|
+
})
|
|
516
|
+
|
|
517
|
+
it("keeps the email and the address line apart: one a link, one text, and times as a left-to-right island in Arabic", () => {
|
|
518
|
+
const { container } = render(inDir("rtl", <FooterBigTypeLinkStack locale="ar" />))
|
|
519
|
+
expect(screen.getByRole("link", { name: "you@company.com" }).getAttribute("href")).toBe("mailto:you@company.com")
|
|
520
|
+
expect(Array.from(container.querySelectorAll("bdi[dir='ltr']")).map((b) => b.textContent)).toContain("09:00 – 18:00 CET")
|
|
521
|
+
})
|
|
522
|
+
})
|
|
523
|
+
|
|
524
|
+
describe("Bento Tile", () => {
|
|
525
|
+
it("has Figma's six tiles, the form's size is sm, and the dot is an 8px online indicator", () => {
|
|
526
|
+
const { container } = render(<FooterBentoTile />)
|
|
527
|
+
expect(container.querySelectorAll("[data-reveal]")).toHaveLength(5)
|
|
528
|
+
expect(screen.getByRole("textbox", { name: "Email address" })).toBeTruthy()
|
|
529
|
+
expect(screen.getByRole("button", { name: "Join" })).toBeTruthy()
|
|
530
|
+
expect(container.querySelector("[data-halo]")).toBeTruthy()
|
|
531
|
+
expect(screen.getByText("Online")).toBeTruthy()
|
|
532
|
+
})
|
|
533
|
+
|
|
534
|
+
it("runs the Subscribe form through its states", async () => {
|
|
535
|
+
let resolve!: () => void
|
|
536
|
+
const onSubscribe = vi.fn(() => new Promise<void>((r) => (resolve = r)))
|
|
537
|
+
render(<FooterBentoTile onSubscribe={onSubscribe} />)
|
|
538
|
+
const input = screen.getByRole("textbox", { name: "Email address" })
|
|
539
|
+
fireEvent.change(input, { target: { value: "nope" } })
|
|
540
|
+
fireEvent.submit(input.closest("form")!)
|
|
541
|
+
expect(screen.getByRole("alert").textContent).toBe("Enter a valid email address.")
|
|
542
|
+
expect(onSubscribe).not.toHaveBeenCalled()
|
|
543
|
+
fireEvent.change(input, { target: { value: "me@company.com" } })
|
|
544
|
+
fireEvent.submit(input.closest("form")!)
|
|
545
|
+
expect(onSubscribe).toHaveBeenCalledWith("me@company.com")
|
|
546
|
+
await act(async () => resolve())
|
|
547
|
+
await act(async () => { await new Promise((resolve) => setTimeout(resolve, 200)) }) // the spinner holds for 150ms
|
|
548
|
+
expect(screen.getByRole("status", { name: "" }).textContent).toBe("Thanks. Check your inbox to confirm.")
|
|
549
|
+
})
|
|
550
|
+
|
|
551
|
+
it("shows the failure line when sending throws", async () => {
|
|
552
|
+
render(<FooterBentoTile onSubscribe={() => Promise.reject(new Error("no"))} />)
|
|
553
|
+
const input = screen.getByRole("textbox", { name: "Email address" })
|
|
554
|
+
fireEvent.change(input, { target: { value: "me@company.com" } })
|
|
555
|
+
await act(async () => {
|
|
556
|
+
fireEvent.submit(input.closest("form")!)
|
|
557
|
+
})
|
|
558
|
+
await act(async () => { await new Promise((resolve) => setTimeout(resolve, 200)) }) // the spinner holds for 150ms
|
|
559
|
+
expect(screen.getByRole("alert").textContent).toBe("That didn't go through. Try again in a moment.")
|
|
560
|
+
})
|
|
561
|
+
|
|
562
|
+
it("pulses a 2px halo from 1 to 1.8 while it fades, 2s, forever, and not under reduced motion", () => {
|
|
563
|
+
const { container, unmount } = render(<FooterBentoTile />)
|
|
564
|
+
const halo = animations.find((a) => a.options.iterations === Infinity)!
|
|
565
|
+
expect(halo.el).toBe(container.querySelector("[data-halo]"))
|
|
566
|
+
expect(halo.el.className).toContain("border-2")
|
|
567
|
+
expect(halo.keyframes).toEqual([{ transform: "scale(1)", opacity: 0.6 }, { transform: "scale(1.8)", opacity: 0 }])
|
|
568
|
+
expect(halo.options.duration).toBe(2000)
|
|
569
|
+
unmount()
|
|
570
|
+
animations = []
|
|
571
|
+
env.reduced = true
|
|
572
|
+
const reduced = render(<FooterBentoTile />)
|
|
573
|
+
expect(reduced.container.querySelector("[data-halo]")).toBeNull()
|
|
574
|
+
expect(animations).toHaveLength(0)
|
|
575
|
+
})
|
|
576
|
+
|
|
577
|
+
it("enters the tiles with a 12px rise (8px on Mobile), 300ms, 60ms apart in reading order", () => {
|
|
578
|
+
render(<FooterBentoTile />)
|
|
579
|
+
scrollIntoView()
|
|
580
|
+
const played = animations.filter((a) => a.options.duration === 300)
|
|
581
|
+
expect(played.map((a) => a.options.delay)).toEqual([0, 60, 120, 180, 240])
|
|
582
|
+
expect(played[0]!.keyframes[0]).toMatchObject({ transform: "translateY(12px)" })
|
|
583
|
+
cleanup()
|
|
584
|
+
animations = []
|
|
585
|
+
env.width = 360
|
|
586
|
+
render(<FooterBentoTile />)
|
|
587
|
+
scrollIntoView()
|
|
588
|
+
expect(animations.filter((a) => a.options.duration === 300)[0]!.keyframes[0]).toMatchObject({ transform: "translateY(8px)" })
|
|
589
|
+
})
|
|
590
|
+
|
|
591
|
+
it("drops the rise but keeps the hover border under reduced motion", () => {
|
|
592
|
+
env.reduced = true
|
|
593
|
+
const { container } = render(<FooterBentoTile />)
|
|
594
|
+
scrollIntoView()
|
|
595
|
+
expect(animations).toHaveLength(0)
|
|
596
|
+
const tile = container.querySelector("[data-reveal]")!.className
|
|
597
|
+
expect(hasVariants(tile, "hover:border-foreground")).toBe(true)
|
|
598
|
+
expect(tile).toContain("motion-safe:")
|
|
599
|
+
expect(hasVariants(tile, "hover:-translate-y-[3px]")).toBe(true)
|
|
600
|
+
})
|
|
601
|
+
|
|
602
|
+
it("draws the status link arrow so that it flips in Arabic", () => {
|
|
603
|
+
const { container } = render(inDir("rtl", <FooterBentoTile locale="ar" />))
|
|
604
|
+
const link = screen.getByRole("link", { name: "عرض سجل الحالة" })
|
|
605
|
+
expect(link.querySelector("svg")!.getAttribute("class")).toContain("rtl:-scale-x-100")
|
|
606
|
+
expect(container.querySelector("bdi[dir='ltr']")).toBeTruthy()
|
|
607
|
+
})
|
|
608
|
+
})
|