@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,438 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import { readFileSync } from "node:fs"
|
|
3
|
+
import { dirname, resolve } from "node:path"
|
|
4
|
+
import { fileURLToPath } from "node:url"
|
|
5
|
+
import { afterEach, describe, expect, it, vi } from "vitest"
|
|
6
|
+
import { act, cleanup, fireEvent, render, screen, within } from "@testing-library/react"
|
|
7
|
+
import { VideoCallIncomingCall, videoCallIncomingCallCopy } from "../video-call-incoming-call/VideoCallIncomingCall"
|
|
8
|
+
import { VideoCallJoinLinkDialIn, videoCallJoinLinkDialInCopy } from "../video-call-join-link-dial-in/VideoCallJoinLinkDialIn"
|
|
9
|
+
import { VideoCallPreJoinLobby, videoCallPreJoinLobbyCopy } from "../video-call-pre-join-lobby/VideoCallPreJoinLobby"
|
|
10
|
+
import { VideoCallWaitingRoomKnock, videoCallWaitingRoomKnockCopy } from "../video-call-waiting-room-knock/VideoCallWaitingRoomKnock"
|
|
11
|
+
|
|
12
|
+
const here = dirname(fileURLToPath(import.meta.url))
|
|
13
|
+
const SOURCES = [
|
|
14
|
+
"video-call-pre-join-lobby/VideoCallPreJoinLobby.tsx",
|
|
15
|
+
"video-call-waiting-room-knock/VideoCallWaitingRoomKnock.tsx",
|
|
16
|
+
"video-call-incoming-call/VideoCallIncomingCall.tsx",
|
|
17
|
+
"video-call-join-link-dial-in/VideoCallJoinLinkDialIn.tsx",
|
|
18
|
+
].map((file) => readFileSync(resolve(here, "..", file), "utf8"))
|
|
19
|
+
|
|
20
|
+
const COPIES = [videoCallPreJoinLobbyCopy, videoCallWaitingRoomKnockCopy, videoCallIncomingCallCopy, videoCallJoinLinkDialInCopy]
|
|
21
|
+
|
|
22
|
+
/** Every string a copy object holds as a value, without its ids, its initials and its holes. */
|
|
23
|
+
function strings(value: unknown, key = ""): string[] {
|
|
24
|
+
if (typeof value === "string") return key === "id" || key === "initials" ? [] : [value.replace(/\{\w+\}/g, "")]
|
|
25
|
+
if (Array.isArray(value)) return value.flatMap((item) => strings(item))
|
|
26
|
+
if (value && typeof value === "object") return Object.entries(value).flatMap(([k, v]) => strings(v, k))
|
|
27
|
+
return []
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const originalMatchMedia = window.matchMedia
|
|
31
|
+
|
|
32
|
+
function reduceMotion(reduced: boolean) {
|
|
33
|
+
window.matchMedia = vi.fn().mockImplementation((query: string) => ({
|
|
34
|
+
matches: reduced && query.includes("reduce"),
|
|
35
|
+
media: query,
|
|
36
|
+
addEventListener: vi.fn(),
|
|
37
|
+
removeEventListener: vi.fn(),
|
|
38
|
+
addListener: vi.fn(),
|
|
39
|
+
removeListener: vi.fn(),
|
|
40
|
+
onchange: null,
|
|
41
|
+
dispatchEvent: vi.fn(),
|
|
42
|
+
})) as unknown as typeof window.matchMedia
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
afterEach(() => {
|
|
46
|
+
cleanup()
|
|
47
|
+
window.matchMedia = originalMatchMedia
|
|
48
|
+
vi.useRealTimers()
|
|
49
|
+
vi.restoreAllMocks()
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
describe("the pre-call source", () => {
|
|
53
|
+
it("uses logical properties only, and the motion library never", () => {
|
|
54
|
+
for (const source of SOURCES) {
|
|
55
|
+
expect(source).not.toMatch(/\b(?:ml|mr|pl|pr)-(?:\d|\[|px|auto)/)
|
|
56
|
+
expect(source).not.toMatch(/(?:^|[\s"'`:])(?:left|right)-(?:\d|\[|px|auto|full)/)
|
|
57
|
+
expect(source).not.toMatch(/text-(?:left|right)\b/)
|
|
58
|
+
expect(source).not.toMatch(/\b(?:rounded|border)-(?:l|r)(?:-|\b)/)
|
|
59
|
+
expect(source).not.toMatch(/from ["'](?:framer-motion|motion\/react)["']/)
|
|
60
|
+
expect(source).not.toMatch(/from ["'][^"']*src\/motion/)
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
it("asks for no camera, microphone or video element: stills only", () => {
|
|
65
|
+
for (const source of SOURCES) expect(source).not.toMatch(/getUserMedia|<video\b|mediaDevices/)
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
it("never writes a bare opacity tint, which has no rule under Tailwind 3", () => {
|
|
69
|
+
for (const source of SOURCES) expect(source).not.toMatch(/\bbg-(?:primary|success|destructive)\/\d/)
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
describe("the copy", () => {
|
|
74
|
+
it("has the same keys in English and Arabic, and no em dash, middle dot or bracketed English in the Arabic", () => {
|
|
75
|
+
for (const copy of COPIES) {
|
|
76
|
+
expect(Object.keys(copy.en)).toEqual(Object.keys(copy.ar))
|
|
77
|
+
for (const text of strings(copy.ar)) {
|
|
78
|
+
expect(text, text).not.toMatch(/[—·]/)
|
|
79
|
+
expect(text, text).not.toMatch(/\([A-Za-z]/)
|
|
80
|
+
expect(text, text).not.toMatch(/\b[٠-٩]/)
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
it("never glues an Arabic waw or tatweel prefix to a Latin word", () => {
|
|
86
|
+
for (const copy of COPIES) for (const text of strings(copy.ar)) expect(text, text).not.toMatch(/(?:^|\s)[وبكلـ]+[A-Za-z]/)
|
|
87
|
+
})
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
describe("Button sizes", () => {
|
|
91
|
+
it("never sizes a button by hand: every one is an atom size", () => {
|
|
92
|
+
for (const Block of [VideoCallPreJoinLobby, VideoCallWaitingRoomKnock, VideoCallIncomingCall, VideoCallJoinLinkDialIn]) {
|
|
93
|
+
const view = render(<Block />)
|
|
94
|
+
for (const button of view.container.querySelectorAll("button")) expect(button.className).not.toMatch(/(^|\s)(size|h|w)-(11|12|14)(\s|$)/)
|
|
95
|
+
view.unmount()
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
|
|
99
|
+
it("draws Incoming Call's round actions and the guest's mic and camera at the Icon Button's lg", () => {
|
|
100
|
+
const incoming = render(<VideoCallIncomingCall />)
|
|
101
|
+
const rounds = incoming.container.querySelectorAll("button.rounded-full.size-10")
|
|
102
|
+
expect(rounds.length).toBeGreaterThanOrEqual(2)
|
|
103
|
+
incoming.unmount()
|
|
104
|
+
render(<VideoCallWaitingRoomKnock />)
|
|
105
|
+
const guest = screen.getByRole("group", { name: videoCallWaitingRoomKnockCopy.en.selfPreview })
|
|
106
|
+
expect(guest.querySelectorAll("button.size-10")).toHaveLength(2)
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
describe("Pre-Join Lobby", () => {
|
|
111
|
+
it("draws the camera pill 152x56 as Figma does: the 1px stroke sits inside the 8px padding, not outside it", () => {
|
|
112
|
+
const { container } = render(<VideoCallPreJoinLobby />)
|
|
113
|
+
const pill = within(container).getByRole("group", { name: videoCallPreJoinLobbyCopy.en.pillLabel })
|
|
114
|
+
expect(pill).toHaveClass("p-2", "ring-1", "ring-inset", "ring-border")
|
|
115
|
+
expect(pill).not.toHaveClass("border")
|
|
116
|
+
})
|
|
117
|
+
|
|
118
|
+
it("names the meeting, shows the three pickers, and keeps the pill in physical order in Arabic too", () => {
|
|
119
|
+
for (const [locale, dir] of [["en", "ltr"], ["ar", "rtl"]] as const) {
|
|
120
|
+
const { container, unmount } = render(
|
|
121
|
+
<div dir={dir}>
|
|
122
|
+
<VideoCallPreJoinLobby locale={locale} />
|
|
123
|
+
</div>
|
|
124
|
+
)
|
|
125
|
+
const copy = videoCallPreJoinLobbyCopy[locale]
|
|
126
|
+
expect(screen.getByRole("heading", { level: 2 })).toHaveTextContent(copy.title)
|
|
127
|
+
for (const label of [copy.cameraLabel, copy.microphoneLabel, copy.speakerLabel]) expect(screen.getAllByText(label).length).toBeGreaterThan(0)
|
|
128
|
+
const pill = within(container).getByRole("group", { name: copy.pillLabel })
|
|
129
|
+
expect(pill).toHaveAttribute("dir", "ltr")
|
|
130
|
+
const labels = within(pill).getAllByRole("button").map((button) => button.getAttribute("aria-label"))
|
|
131
|
+
expect(labels).toEqual([copy.mic.label, copy.camera.label, copy.settings])
|
|
132
|
+
unmount()
|
|
133
|
+
}
|
|
134
|
+
})
|
|
135
|
+
|
|
136
|
+
it("toggles the mic and camera, says so, and calls back", () => {
|
|
137
|
+
const onControl = vi.fn()
|
|
138
|
+
render(<VideoCallPreJoinLobby onControl={onControl} />)
|
|
139
|
+
const mic = screen.getByRole("button", { name: "Mute microphone" })
|
|
140
|
+
expect(mic).toHaveAttribute("aria-pressed", "false")
|
|
141
|
+
fireEvent.click(mic)
|
|
142
|
+
expect(onControl).toHaveBeenLastCalledWith("mic", false)
|
|
143
|
+
expect(screen.getByRole("button", { name: "Unmute microphone" })).toHaveAttribute("aria-pressed", "true")
|
|
144
|
+
fireEvent.click(screen.getByRole("button", { name: "Turn camera off" }))
|
|
145
|
+
expect(onControl).toHaveBeenLastCalledWith("camera", false)
|
|
146
|
+
fireEvent.click(screen.getByRole("button", { name: "Device settings" }))
|
|
147
|
+
expect(onControl).toHaveBeenLastCalledWith("settings", true)
|
|
148
|
+
})
|
|
149
|
+
|
|
150
|
+
it("holds Join disabled with a spinner until the camera is ready, then enables it", () => {
|
|
151
|
+
const onJoin = vi.fn()
|
|
152
|
+
const { rerender } = render(<VideoCallPreJoinLobby cameraReady={false} onJoin={onJoin} />)
|
|
153
|
+
const join = screen.getByRole("button", { name: /Join now/ })
|
|
154
|
+
expect(join).toBeDisabled()
|
|
155
|
+
fireEvent.click(join)
|
|
156
|
+
expect(onJoin).not.toHaveBeenCalled()
|
|
157
|
+
rerender(<VideoCallPreJoinLobby cameraReady onJoin={onJoin} />)
|
|
158
|
+
const ready = screen.getByRole("button", { name: "Join now" })
|
|
159
|
+
expect(ready).toBeEnabled()
|
|
160
|
+
fireEvent.click(ready)
|
|
161
|
+
expect(onJoin).toHaveBeenCalledTimes(1)
|
|
162
|
+
})
|
|
163
|
+
|
|
164
|
+
it("calls Test speakers, and shows a photo only when it is given one", () => {
|
|
165
|
+
const onTest = vi.fn()
|
|
166
|
+
const { container, rerender } = render(<VideoCallPreJoinLobby onTestSpeakers={onTest} />)
|
|
167
|
+
fireEvent.click(screen.getByRole("button", { name: "Test speakers" }))
|
|
168
|
+
expect(onTest).toHaveBeenCalledTimes(1)
|
|
169
|
+
expect(container.querySelector("img")).toBeNull()
|
|
170
|
+
rerender(<VideoCallPreJoinLobby photo={{ src: "/p.webp", alt: "Omar" }} />)
|
|
171
|
+
expect(screen.getByAltText("Omar")).toHaveAttribute("src", "/p.webp")
|
|
172
|
+
})
|
|
173
|
+
|
|
174
|
+
it("keeps the eyebrow in sentence case in Arabic, with no tracking", () => {
|
|
175
|
+
render(<VideoCallPreJoinLobby locale="ar" />)
|
|
176
|
+
expect(screen.getByText(videoCallPreJoinLobbyCopy.ar.eyebrow).className).not.toMatch(/uppercase|tracking/)
|
|
177
|
+
})
|
|
178
|
+
})
|
|
179
|
+
|
|
180
|
+
describe("Waiting Room & Knock", () => {
|
|
181
|
+
it("lists the knocks with a count, and mirrors the plural in Arabic", () => {
|
|
182
|
+
const { unmount } = render(<VideoCallWaitingRoomKnock />)
|
|
183
|
+
expect(screen.getByText("3 people are waiting")).toBeInTheDocument()
|
|
184
|
+
expect(screen.getAllByRole("listitem")).toHaveLength(3)
|
|
185
|
+
unmount()
|
|
186
|
+
render(<VideoCallWaitingRoomKnock locale="ar" knocks={videoCallWaitingRoomKnockCopy.ar.knocks.slice(0, 2)} />)
|
|
187
|
+
expect(screen.getByText("شخصان في الانتظار")).toBeInTheDocument()
|
|
188
|
+
})
|
|
189
|
+
|
|
190
|
+
it("admits one guest: calls back, collapses the row, and updates the count", () => {
|
|
191
|
+
const onAdmit = vi.fn()
|
|
192
|
+
render(<VideoCallWaitingRoomKnock onAdmit={onAdmit} />)
|
|
193
|
+
fireEvent.click(screen.getByRole("button", { name: "Admit Nabil Khalil" }))
|
|
194
|
+
expect(onAdmit).toHaveBeenCalledWith("nabil")
|
|
195
|
+
expect(screen.queryByText("Nabil Khalil")).toBeNull()
|
|
196
|
+
expect(screen.getByText("2 people are waiting")).toBeInTheDocument()
|
|
197
|
+
})
|
|
198
|
+
|
|
199
|
+
it("denies a guest, and admits everyone at once with every id", () => {
|
|
200
|
+
const onDeny = vi.fn()
|
|
201
|
+
const onAdmitAll = vi.fn()
|
|
202
|
+
render(<VideoCallWaitingRoomKnock onDeny={onDeny} onAdmitAll={onAdmitAll} />)
|
|
203
|
+
fireEvent.click(screen.getByRole("button", { name: "Deny Tariq Aziz" }))
|
|
204
|
+
expect(onDeny).toHaveBeenCalledWith("tariq")
|
|
205
|
+
fireEvent.click(screen.getByRole("button", { name: "Admit everyone" }))
|
|
206
|
+
expect(onAdmitAll).toHaveBeenCalledWith(["nabil", "hani"])
|
|
207
|
+
expect(screen.queryAllByRole("listitem")).toHaveLength(0)
|
|
208
|
+
expect(screen.getByRole("status")).toHaveTextContent("No one is waiting.")
|
|
209
|
+
expect(screen.queryByRole("button", { name: "Admit everyone" })).toBeNull()
|
|
210
|
+
})
|
|
211
|
+
|
|
212
|
+
it("keeps the room locked, cancels for the guest, and toggles their mic and camera", () => {
|
|
213
|
+
const onKeepLocked = vi.fn()
|
|
214
|
+
const onCancel = vi.fn()
|
|
215
|
+
const onControl = vi.fn()
|
|
216
|
+
render(<VideoCallWaitingRoomKnock onKeepLocked={onKeepLocked} onCancel={onCancel} onControl={onControl} />)
|
|
217
|
+
fireEvent.click(screen.getByRole("button", { name: "Keep locked" }))
|
|
218
|
+
fireEvent.click(screen.getByRole("button", { name: "Cancel" }))
|
|
219
|
+
expect(onKeepLocked).toHaveBeenCalledTimes(1)
|
|
220
|
+
expect(onCancel).toHaveBeenCalledTimes(1)
|
|
221
|
+
fireEvent.click(screen.getByRole("button", { name: "Mute microphone" }))
|
|
222
|
+
expect(onControl).toHaveBeenLastCalledWith("mic", false)
|
|
223
|
+
expect(screen.getByRole("button", { name: "Unmute microphone" })).toHaveAttribute("aria-pressed", "true")
|
|
224
|
+
fireEvent.click(screen.getByRole("button", { name: "Turn camera off" }))
|
|
225
|
+
expect(onControl).toHaveBeenLastCalledWith("camera", false)
|
|
226
|
+
})
|
|
227
|
+
|
|
228
|
+
it("replaces its rows when a new list is passed, and isolates an email inside Arabic text", () => {
|
|
229
|
+
const { rerender, container } = render(<VideoCallWaitingRoomKnock locale="ar" />)
|
|
230
|
+
expect(container.querySelector('bdi[dir="ltr"]')?.textContent).toContain("nabil@fasla.design")
|
|
231
|
+
rerender(<VideoCallWaitingRoomKnock locale="ar" knocks={[]} />)
|
|
232
|
+
expect(screen.getByRole("status")).toHaveTextContent(videoCallWaitingRoomKnockCopy.ar.empty)
|
|
233
|
+
})
|
|
234
|
+
|
|
235
|
+
it("lets the lock breathe on a 2.4s loop, and holds it still under reduced motion", () => {
|
|
236
|
+
const calls: { options: KeyframeAnimationOptions }[] = []
|
|
237
|
+
const original = Element.prototype.animate
|
|
238
|
+
Element.prototype.animate = vi.fn(function (this: Element, _k: unknown, options: KeyframeAnimationOptions) {
|
|
239
|
+
calls.push({ options })
|
|
240
|
+
return { cancel: vi.fn(), onfinish: null } as unknown as Animation
|
|
241
|
+
}) as unknown as typeof Element.prototype.animate
|
|
242
|
+
try {
|
|
243
|
+
reduceMotion(false)
|
|
244
|
+
const first = render(<VideoCallWaitingRoomKnock />)
|
|
245
|
+
expect(calls.some((call) => call.options.iterations === Infinity && call.options.duration === 1200)).toBe(true)
|
|
246
|
+
first.unmount()
|
|
247
|
+
calls.length = 0
|
|
248
|
+
reduceMotion(true)
|
|
249
|
+
render(<VideoCallWaitingRoomKnock />)
|
|
250
|
+
expect(calls.some((call) => call.options.iterations === Infinity)).toBe(false)
|
|
251
|
+
} finally {
|
|
252
|
+
Element.prototype.animate = original
|
|
253
|
+
reduceMotion(false)
|
|
254
|
+
}
|
|
255
|
+
})
|
|
256
|
+
})
|
|
257
|
+
|
|
258
|
+
describe("Incoming Call", () => {
|
|
259
|
+
it("shows the three cards, and Decline on the start side with Join on the end side in the DOM order", () => {
|
|
260
|
+
render(<VideoCallIncomingCall />)
|
|
261
|
+
expect(screen.getAllByRole("article")).toHaveLength(3)
|
|
262
|
+
const incoming = screen.getByRole("article", { name: "Mazen Darwish" })
|
|
263
|
+
const names = within(incoming).getAllByRole("button").map((button) => button.getAttribute("aria-label") ?? button.textContent)
|
|
264
|
+
expect(names.slice(0, 2)).toEqual(["Decline", "Join"])
|
|
265
|
+
})
|
|
266
|
+
|
|
267
|
+
it("calls back on every real action", () => {
|
|
268
|
+
const handlers = {
|
|
269
|
+
onJoin: vi.fn(),
|
|
270
|
+
onDecline: vi.fn(),
|
|
271
|
+
onReply: vi.fn(),
|
|
272
|
+
onCancel: vi.fn(),
|
|
273
|
+
onSwitchToAudio: vi.fn(),
|
|
274
|
+
onCallBack: vi.fn(),
|
|
275
|
+
onMessage: vi.fn(),
|
|
276
|
+
}
|
|
277
|
+
render(<VideoCallIncomingCall {...handlers} />)
|
|
278
|
+
fireEvent.click(screen.getByRole("button", { name: "Join" }))
|
|
279
|
+
fireEvent.click(screen.getByRole("button", { name: "Decline" }))
|
|
280
|
+
fireEvent.click(screen.getByRole("button", { name: "Reply with a message" }))
|
|
281
|
+
fireEvent.click(screen.getByRole("button", { name: "Cancel" }))
|
|
282
|
+
fireEvent.click(screen.getByRole("button", { name: "Switch to audio only" }))
|
|
283
|
+
fireEvent.click(screen.getByRole("button", { name: "Call back" }))
|
|
284
|
+
fireEvent.click(screen.getByRole("button", { name: "Message" }))
|
|
285
|
+
for (const handler of Object.values(handlers)) expect(handler).toHaveBeenCalledTimes(1)
|
|
286
|
+
})
|
|
287
|
+
|
|
288
|
+
it("shows only the cards asked for", () => {
|
|
289
|
+
render(<VideoCallIncomingCall show={["missed"]} />)
|
|
290
|
+
expect(screen.getAllByRole("article")).toHaveLength(1)
|
|
291
|
+
expect(screen.queryByRole("button", { name: "Decline" })).toBeNull()
|
|
292
|
+
})
|
|
293
|
+
|
|
294
|
+
it("plays and pauses the voice note, and says so", () => {
|
|
295
|
+
const onPlayChange = vi.fn()
|
|
296
|
+
render(<VideoCallIncomingCall onPlayChange={onPlayChange} />)
|
|
297
|
+
const play = screen.getByRole("button", { name: "Play voice note" })
|
|
298
|
+
expect(play).toHaveAttribute("aria-pressed", "false")
|
|
299
|
+
fireEvent.click(play)
|
|
300
|
+
expect(onPlayChange).toHaveBeenLastCalledWith(true)
|
|
301
|
+
expect(screen.getByRole("button", { name: "Pause voice note" })).toHaveAttribute("aria-pressed", "true")
|
|
302
|
+
fireEvent.click(screen.getByRole("button", { name: "Pause voice note" }))
|
|
303
|
+
expect(onPlayChange).toHaveBeenLastCalledWith(false)
|
|
304
|
+
})
|
|
305
|
+
|
|
306
|
+
it("keeps the waveform left to right in Arabic", () => {
|
|
307
|
+
const { container } = render(
|
|
308
|
+
<div dir="rtl">
|
|
309
|
+
<VideoCallIncomingCall locale="ar" show={["missed"]} />
|
|
310
|
+
</div>
|
|
311
|
+
)
|
|
312
|
+
expect(container.querySelector('[dir="ltr"][aria-hidden]')).not.toBeNull()
|
|
313
|
+
})
|
|
314
|
+
|
|
315
|
+
it("counts the calling dots every 200ms, and holds them under reduced motion", () => {
|
|
316
|
+
vi.useFakeTimers()
|
|
317
|
+
reduceMotion(false)
|
|
318
|
+
const { container, unmount } = render(<VideoCallIncomingCall show={["calling"]} />)
|
|
319
|
+
const dots = () => Array.from(container.querySelectorAll("article [aria-hidden].flex > span")).map((dot) => dot.className.includes("bg-foreground"))
|
|
320
|
+
expect(dots()).toEqual([true, false, false])
|
|
321
|
+
act(() => {
|
|
322
|
+
vi.advanceTimersByTime(200)
|
|
323
|
+
})
|
|
324
|
+
expect(dots()).toEqual([false, true, false])
|
|
325
|
+
unmount()
|
|
326
|
+
reduceMotion(true)
|
|
327
|
+
const held = render(<VideoCallIncomingCall show={["calling"]} />)
|
|
328
|
+
act(() => {
|
|
329
|
+
vi.advanceTimersByTime(600)
|
|
330
|
+
})
|
|
331
|
+
expect(Array.from(held.container.querySelectorAll("article [aria-hidden].flex > span")).map((dot) => dot.className.includes("bg-foreground"))).toEqual([true, false, false])
|
|
332
|
+
reduceMotion(false)
|
|
333
|
+
})
|
|
334
|
+
|
|
335
|
+
it("draws the two rings only on the incoming card, and none under reduced motion", () => {
|
|
336
|
+
reduceMotion(false)
|
|
337
|
+
const { container, unmount } = render(<VideoCallIncomingCall />)
|
|
338
|
+
expect(container.querySelectorAll("span.border-success")).toHaveLength(2)
|
|
339
|
+
unmount()
|
|
340
|
+
const calling = render(<VideoCallIncomingCall show={["calling", "missed"]} />)
|
|
341
|
+
expect(calling.container.querySelectorAll("span.border-success")).toHaveLength(0)
|
|
342
|
+
})
|
|
343
|
+
|
|
344
|
+
it("shows a photo when given one, by caller", () => {
|
|
345
|
+
render(<VideoCallIncomingCall photos={{ mazen: { src: "/m.webp", alt: "Mazen" } }} />)
|
|
346
|
+
expect(screen.getByAltText("Mazen")).toHaveAttribute("src", "/m.webp")
|
|
347
|
+
})
|
|
348
|
+
})
|
|
349
|
+
|
|
350
|
+
describe("Join Link & Dial-in", () => {
|
|
351
|
+
it("copies the link, says Copied for 1.6s, and goes back", () => {
|
|
352
|
+
vi.useFakeTimers()
|
|
353
|
+
const onCopy = vi.fn()
|
|
354
|
+
render(<VideoCallJoinLinkDialIn onCopy={onCopy} />)
|
|
355
|
+
fireEvent.click(screen.getByRole("button", { name: "Copy link" }))
|
|
356
|
+
expect(onCopy).toHaveBeenCalledWith("fasla.to/yassin-haddad")
|
|
357
|
+
expect(screen.getByRole("button", { name: "Copied" })).toBeInTheDocument()
|
|
358
|
+
act(() => {
|
|
359
|
+
vi.advanceTimersByTime(1599)
|
|
360
|
+
})
|
|
361
|
+
expect(screen.getByRole("button", { name: "Copied" })).toBeInTheDocument()
|
|
362
|
+
act(() => {
|
|
363
|
+
vi.advanceTimersByTime(2)
|
|
364
|
+
})
|
|
365
|
+
expect(screen.getByRole("button", { name: "Copy link" })).toBeInTheDocument()
|
|
366
|
+
})
|
|
367
|
+
|
|
368
|
+
it("writes to the clipboard when there is no onCopy", () => {
|
|
369
|
+
const writeText = vi.fn().mockResolvedValue(undefined)
|
|
370
|
+
Object.defineProperty(navigator, "clipboard", { value: { writeText }, configurable: true })
|
|
371
|
+
render(<VideoCallJoinLinkDialIn />)
|
|
372
|
+
fireEvent.click(screen.getByRole("button", { name: "Copy link" }))
|
|
373
|
+
expect(writeText).toHaveBeenCalledWith("fasla.to/yassin-haddad")
|
|
374
|
+
})
|
|
375
|
+
|
|
376
|
+
it("calls back for each share and for Manage room settings", () => {
|
|
377
|
+
const onShare = vi.fn()
|
|
378
|
+
const onManage = vi.fn()
|
|
379
|
+
render(<VideoCallJoinLinkDialIn onShare={onShare} onManage={onManage} />)
|
|
380
|
+
for (const [label, id] of [["Email invite", "email"], ["Add to calendar", "calendar"], ["Invite by name", "name"], ["More ways", "more"]] as const) {
|
|
381
|
+
fireEvent.click(screen.getByRole("button", { name: label }))
|
|
382
|
+
expect(onShare).toHaveBeenLastCalledWith(id)
|
|
383
|
+
}
|
|
384
|
+
fireEvent.click(screen.getByRole("button", { name: "Manage room settings" }))
|
|
385
|
+
expect(onManage).toHaveBeenCalledTimes(1)
|
|
386
|
+
})
|
|
387
|
+
|
|
388
|
+
it("folds the QR behind Show QR on a phone, and tells assistive technology which way it is", () => {
|
|
389
|
+
const onQrOpenChange = vi.fn()
|
|
390
|
+
render(<VideoCallJoinLinkDialIn onQrOpenChange={onQrOpenChange} />)
|
|
391
|
+
const show = screen.getByRole("button", { name: "Show QR" })
|
|
392
|
+
expect(show).toHaveAttribute("aria-expanded", "false")
|
|
393
|
+
expect(screen.getByRole("img", { name: "QR code for the room link" }).parentElement?.className).toContain("hidden")
|
|
394
|
+
fireEvent.click(show)
|
|
395
|
+
expect(onQrOpenChange).toHaveBeenLastCalledWith(true)
|
|
396
|
+
expect(screen.getByRole("button", { name: "Hide QR" })).toHaveAttribute("aria-expanded", "true")
|
|
397
|
+
expect(screen.getByRole("img", { name: "QR code for the room link" }).parentElement?.className).not.toMatch(/(^|\s)hidden(\s|$)/)
|
|
398
|
+
})
|
|
399
|
+
|
|
400
|
+
it("lists the dial-in numbers and the access settings, and keeps links and numbers left to right in Arabic", () => {
|
|
401
|
+
const { container } = render(
|
|
402
|
+
<div dir="rtl">
|
|
403
|
+
<VideoCallJoinLinkDialIn locale="ar" />
|
|
404
|
+
</div>
|
|
405
|
+
)
|
|
406
|
+
const copy = videoCallJoinLinkDialInCopy.ar
|
|
407
|
+
for (const entry of copy.numbers) expect(screen.getByText(entry.country)).toBeInTheDocument()
|
|
408
|
+
for (const setting of copy.settings) expect(screen.getByText(setting.label)).toBeInTheDocument()
|
|
409
|
+
const bdi = Array.from(container.querySelectorAll('bdi[dir="ltr"]')).map((node) => node.textContent)
|
|
410
|
+
expect(bdi).toContain("fasla.to/yassin-haddad")
|
|
411
|
+
expect(bdi).toContain("+971 4 555 0198")
|
|
412
|
+
})
|
|
413
|
+
|
|
414
|
+
it("shows the Copied state from the start when asked", () => {
|
|
415
|
+
vi.useFakeTimers()
|
|
416
|
+
render(<VideoCallJoinLinkDialIn defaultCopied />)
|
|
417
|
+
expect(screen.getByRole("button", { name: "Copied" })).toBeInTheDocument()
|
|
418
|
+
})
|
|
419
|
+
|
|
420
|
+
it("cross-fades the QR when its key changes, then keeps one image", () => {
|
|
421
|
+
const calls: { keyframes: unknown }[] = []
|
|
422
|
+
const original = Element.prototype.animate
|
|
423
|
+
Element.prototype.animate = vi.fn(function (this: Element, keyframes: unknown) {
|
|
424
|
+
calls.push({ keyframes })
|
|
425
|
+
const animation = { cancel: vi.fn(), onfinish: null as null | (() => void) }
|
|
426
|
+
return animation as unknown as Animation
|
|
427
|
+
}) as unknown as typeof Element.prototype.animate
|
|
428
|
+
try {
|
|
429
|
+
reduceMotion(false)
|
|
430
|
+
const { rerender, container } = render(<VideoCallJoinLinkDialIn defaultQrOpen qrKey="a" />)
|
|
431
|
+
rerender(<VideoCallJoinLinkDialIn defaultQrOpen qrKey="b" />)
|
|
432
|
+
expect(JSON.stringify(calls.map((call) => call.keyframes))).toContain("blur(4px)")
|
|
433
|
+
expect(container.querySelector("[data-qr='b']")).not.toBeNull()
|
|
434
|
+
} finally {
|
|
435
|
+
Element.prototype.animate = original
|
|
436
|
+
}
|
|
437
|
+
})
|
|
438
|
+
})
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import { readFileSync } from "node:fs"
|
|
3
|
+
import { dirname, resolve } from "node:path"
|
|
4
|
+
import { fileURLToPath } from "node:url"
|
|
5
|
+
import { afterEach, describe, expect, it, vi } from "vitest"
|
|
6
|
+
import { act, cleanup, fireEvent, render, screen } from "@testing-library/react"
|
|
7
|
+
import { VideoCallHeroCallMockup, videoCallHeroCallMockupCopy } from "../video-call-hero-call-mockup/VideoCallHeroCallMockup"
|
|
8
|
+
|
|
9
|
+
const here = dirname(fileURLToPath(import.meta.url))
|
|
10
|
+
const SOURCE = readFileSync(resolve(here, "../video-call-hero-call-mockup/VideoCallHeroCallMockup.tsx"), "utf8")
|
|
11
|
+
|
|
12
|
+
/** Every string a copy object holds as a value, without its ids. */
|
|
13
|
+
function strings(value: unknown, key = ""): string[] {
|
|
14
|
+
if (typeof value === "string") return key === "id" ? [] : [value]
|
|
15
|
+
if (Array.isArray(value)) return value.flatMap((item) => strings(item))
|
|
16
|
+
if (value && typeof value === "object") return Object.entries(value).flatMap(([k, v]) => strings(v, k))
|
|
17
|
+
return []
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const originalMatchMedia = window.matchMedia
|
|
21
|
+
const originalAnimate = (Element.prototype as unknown as { animate?: unknown }).animate
|
|
22
|
+
|
|
23
|
+
function reduceMotion(reduced: boolean) {
|
|
24
|
+
window.matchMedia = vi.fn().mockImplementation((query: string) => ({
|
|
25
|
+
matches: reduced && query.includes("reduce"),
|
|
26
|
+
media: query,
|
|
27
|
+
addEventListener: vi.fn(),
|
|
28
|
+
removeEventListener: vi.fn(),
|
|
29
|
+
addListener: vi.fn(),
|
|
30
|
+
removeListener: vi.fn(),
|
|
31
|
+
onchange: null,
|
|
32
|
+
dispatchEvent: vi.fn(),
|
|
33
|
+
})) as unknown as typeof window.matchMedia
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** A fake `Element.animate` that records its calls, as jsdom has none. */
|
|
37
|
+
function stubAnimate() {
|
|
38
|
+
const calls: { target: Element; keyframes: Keyframe[]; options: KeyframeAnimationOptions }[] = []
|
|
39
|
+
;(Element.prototype as unknown as { animate: unknown }).animate = function (this: Element, keyframes: Keyframe[], options: KeyframeAnimationOptions) {
|
|
40
|
+
calls.push({ target: this, keyframes, options })
|
|
41
|
+
return { cancel: vi.fn(), finish: vi.fn(), finished: Promise.resolve(), onfinish: null }
|
|
42
|
+
}
|
|
43
|
+
return calls
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
afterEach(() => {
|
|
47
|
+
cleanup()
|
|
48
|
+
window.matchMedia = originalMatchMedia
|
|
49
|
+
if (originalAnimate === undefined) delete (Element.prototype as unknown as { animate?: unknown }).animate
|
|
50
|
+
else (Element.prototype as unknown as { animate: unknown }).animate = originalAnimate
|
|
51
|
+
vi.restoreAllMocks()
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
describe("the hero source", () => {
|
|
55
|
+
it("uses logical properties only, and the motion library never", () => {
|
|
56
|
+
expect(SOURCE).not.toMatch(/\b(?:ml|mr|pl|pr)-(?:\d|\[|px|auto)/)
|
|
57
|
+
expect(SOURCE).not.toMatch(/(?:^|[\s"'`:])(?:left|right)-(?:\d|\[|px|auto|full)/)
|
|
58
|
+
expect(SOURCE).not.toMatch(/text-(?:left|right)\b/)
|
|
59
|
+
expect(SOURCE).not.toMatch(/\b(?:rounded|border)-(?:l|r)(?:-|\b)/)
|
|
60
|
+
expect(SOURCE).not.toMatch(/from ["'](?:framer-motion|motion\/react)["']/)
|
|
61
|
+
expect(SOURCE).not.toMatch(/from ["'][^"']*src\/motion/)
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
it("asks for no camera, microphone or video element: stills only", () => {
|
|
65
|
+
expect(SOURCE).not.toMatch(/getUserMedia|<video\b|mediaDevices/)
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
it("never writes a bare opacity tint, which has no rule under Tailwind 3", () => {
|
|
69
|
+
expect(SOURCE).not.toMatch(/\bbg-(?:primary|success|destructive)\/\d/)
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
describe("the copy", () => {
|
|
74
|
+
it("has the same keys in English and Arabic, and no em dash, middle dot or bracketed English in the Arabic", () => {
|
|
75
|
+
expect(Object.keys(videoCallHeroCallMockupCopy.en)).toEqual(Object.keys(videoCallHeroCallMockupCopy.ar))
|
|
76
|
+
for (const text of strings(videoCallHeroCallMockupCopy.ar)) {
|
|
77
|
+
expect(text, text).not.toMatch(/[—·]/)
|
|
78
|
+
expect(text, text).not.toMatch(/\([A-Za-z]/)
|
|
79
|
+
expect(text, text).not.toMatch(/(?:^|\s)[وبكلـ]+[A-Za-z]/)
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
describe("Hero — Call Mockup", () => {
|
|
85
|
+
it("names the section by its headline, and shows the tag, the line, the buttons and the proof", () => {
|
|
86
|
+
render(<VideoCallHeroCallMockup />)
|
|
87
|
+
const heading = screen.getByRole("heading", { level: 2, name: "Meetings that start on time" })
|
|
88
|
+
expect(screen.getByRole("region", { name: "Meetings that start on time" })).toContainElement(heading)
|
|
89
|
+
expect(screen.getByText(/No downloads/)).toBeInTheDocument()
|
|
90
|
+
expect(screen.getByText(/remembers every device choice/)).toBeInTheDocument()
|
|
91
|
+
expect(screen.getByRole("button", { name: "Start a free room" })).toBeInTheDocument()
|
|
92
|
+
expect(screen.getByRole("button", { name: "Watch a 2-min tour" })).toBeInTheDocument()
|
|
93
|
+
expect(screen.getByText("4.9 from 2,100 teams that switched this year")).toBeInTheDocument()
|
|
94
|
+
expect(screen.getByRole("img", { name: "Rated 4.9 out of 5" })).toBeInTheDocument()
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
it("calls back for Start and for the tour", () => {
|
|
98
|
+
const onStart = vi.fn()
|
|
99
|
+
const onTour = vi.fn()
|
|
100
|
+
render(<VideoCallHeroCallMockup onStart={onStart} onTour={onTour} />)
|
|
101
|
+
fireEvent.click(screen.getByRole("button", { name: "Start a free room" }))
|
|
102
|
+
fireEvent.click(screen.getByRole("button", { name: "Watch a 2-min tour" }))
|
|
103
|
+
expect(onStart).toHaveBeenCalledTimes(1)
|
|
104
|
+
expect(onTour).toHaveBeenCalledTimes(1)
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
it("keeps the mockup a hidden, inert picture that nothing in it can focus", () => {
|
|
108
|
+
const { container } = render(<VideoCallHeroCallMockup />)
|
|
109
|
+
const mock = container.querySelector("[data-hero-mock]")!
|
|
110
|
+
expect(mock).toHaveAttribute("aria-hidden", "true")
|
|
111
|
+
expect(mock).toHaveAttribute("inert")
|
|
112
|
+
for (const button of mock.querySelectorAll("button")) expect(button).toHaveAttribute("tabindex", "-1")
|
|
113
|
+
// Only the two real buttons are reachable by name.
|
|
114
|
+
expect(screen.getAllByRole("button")).toHaveLength(2)
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
it("draws three tiles, a dock of five controls and Leave, and hides the third tile and last two controls on a phone", () => {
|
|
118
|
+
const { container } = render(<VideoCallHeroCallMockup />)
|
|
119
|
+
const tiles = container.querySelectorAll("[data-hero-tile]")
|
|
120
|
+
expect(tiles).toHaveLength(3)
|
|
121
|
+
expect(tiles[2]!.className).toMatch(/(?:^|\s)hidden(?:\s|$)/)
|
|
122
|
+
expect(tiles[1]!.className).not.toMatch(/(?:^|\s)hidden(?:\s|$)/)
|
|
123
|
+
const dock = container.querySelectorAll("[data-hero-mock] button")
|
|
124
|
+
expect(dock).toHaveLength(6)
|
|
125
|
+
expect(dock[3]!.className).toMatch(/(?:^|\s)hidden(?:\s|$)/)
|
|
126
|
+
expect(dock[4]!.className).toMatch(/(?:^|\s)hidden(?:\s|$)/)
|
|
127
|
+
expect(dock[2]!.className).not.toMatch(/(?:^|\s)hidden(?:\s|$)/)
|
|
128
|
+
expect(container.querySelector("[data-hero-mock]")).toHaveTextContent("Leave")
|
|
129
|
+
expect(container.querySelector("[data-hero-mock]")).toHaveTextContent("REC")
|
|
130
|
+
})
|
|
131
|
+
|
|
132
|
+
it("shows a still on each tile and a face in the proof only when given photos, with initials otherwise", () => {
|
|
133
|
+
const photos = { mazen: { src: "/m.webp", alt: "Mazen" }, adam: { src: "/a.webp", alt: "Adam" } }
|
|
134
|
+
const { container, rerender } = render(<VideoCallHeroCallMockup photos={photos} />)
|
|
135
|
+
const srcs = Array.from(container.querySelectorAll("[data-hero-tile] img")).map((img) => img.getAttribute("src"))
|
|
136
|
+
expect(srcs).toEqual(["/m.webp", "/a.webp"])
|
|
137
|
+
rerender(<VideoCallHeroCallMockup />)
|
|
138
|
+
expect(container.querySelectorAll("[data-hero-tile] img")).toHaveLength(0)
|
|
139
|
+
})
|
|
140
|
+
|
|
141
|
+
it("rises the five copy parts 16px and 70ms apart, then the mockup 120ms after the last, then the tiles 60ms apart", () => {
|
|
142
|
+
reduceMotion(false)
|
|
143
|
+
const calls = stubAnimate()
|
|
144
|
+
const { container } = render(<VideoCallHeroCallMockup />)
|
|
145
|
+
const copy = calls.filter((call) => (call.target as HTMLElement).hasAttribute("data-hero-copy"))
|
|
146
|
+
expect(copy).toHaveLength(5)
|
|
147
|
+
expect(copy.map((call) => call.options.delay)).toEqual([0, 70, 140, 210, 280])
|
|
148
|
+
expect(copy[0]!.keyframes[0]).toMatchObject({ opacity: 0, transform: "translateY(16px)" })
|
|
149
|
+
const mock = calls.find((call) => call.target === container.querySelector("[data-hero-mock]"))!
|
|
150
|
+
expect(mock.options.delay).toBe(280 + 120)
|
|
151
|
+
const tiles = calls.filter((call) => (call.target as HTMLElement).hasAttribute("data-hero-tile"))
|
|
152
|
+
expect(tiles).toHaveLength(3)
|
|
153
|
+
expect(tiles.map((call) => Number(call.options.delay) - Number(mock.options.delay) - 240)).toEqual([0, 60, 120])
|
|
154
|
+
})
|
|
155
|
+
|
|
156
|
+
it("scales the mockup in from 0.96 with its shadow growing, from Tablet up, and only fades it on a phone", () => {
|
|
157
|
+
reduceMotion(false)
|
|
158
|
+
let calls = stubAnimate()
|
|
159
|
+
let view = render(<VideoCallHeroCallMockup />)
|
|
160
|
+
// jsdom measures nothing, so the first render is a phone: a plain fade.
|
|
161
|
+
const phone = calls.find((call) => call.target === view.container.querySelector("[data-hero-mock]"))!
|
|
162
|
+
expect(phone.keyframes).toHaveLength(2)
|
|
163
|
+
expect(JSON.stringify(phone.keyframes)).not.toContain("scale")
|
|
164
|
+
view.unmount()
|
|
165
|
+
|
|
166
|
+
// A wide section: patch the width before the effect reads it.
|
|
167
|
+
const proto = HTMLElement.prototype
|
|
168
|
+
const descriptor = Object.getOwnPropertyDescriptor(proto, "clientWidth")
|
|
169
|
+
Object.defineProperty(proto, "clientWidth", { configurable: true, get: () => 1280 })
|
|
170
|
+
calls = stubAnimate()
|
|
171
|
+
view = render(<VideoCallHeroCallMockup />)
|
|
172
|
+
const wide = calls.find((call) => call.target === view.container.querySelector("[data-hero-mock]"))!
|
|
173
|
+
expect(wide.keyframes[0]).toMatchObject({ transform: "scale(0.96)" })
|
|
174
|
+
// The shadow grows from none into whatever shadow-2xl computes to (nothing in jsdom).
|
|
175
|
+
expect(wide.keyframes[0]!.boxShadow).toBe("none")
|
|
176
|
+
expect(wide.keyframes[1]).toHaveProperty("boxShadow")
|
|
177
|
+
if (descriptor) Object.defineProperty(proto, "clientWidth", descriptor)
|
|
178
|
+
else delete (proto as unknown as { clientWidth?: unknown }).clientWidth
|
|
179
|
+
})
|
|
180
|
+
|
|
181
|
+
it("starts the REC dot's 1.6s pulse only once the mockup has landed, and it is the only loop", async () => {
|
|
182
|
+
reduceMotion(false)
|
|
183
|
+
const calls = stubAnimate()
|
|
184
|
+
render(<VideoCallHeroCallMockup />)
|
|
185
|
+
await act(async () => {
|
|
186
|
+
await Promise.resolve()
|
|
187
|
+
})
|
|
188
|
+
const loops = calls.filter((call) => call.options.iterations === Infinity)
|
|
189
|
+
expect(loops).toHaveLength(1)
|
|
190
|
+
expect((loops[0]!.target as HTMLElement).hasAttribute("data-hero-dot")).toBe(true)
|
|
191
|
+
expect(loops[0]!.options.duration).toBe(1600)
|
|
192
|
+
})
|
|
193
|
+
|
|
194
|
+
it("under reduced motion fades the parts in 120ms together and loops nothing", async () => {
|
|
195
|
+
reduceMotion(true)
|
|
196
|
+
const calls = stubAnimate()
|
|
197
|
+
render(<VideoCallHeroCallMockup />)
|
|
198
|
+
await act(async () => {
|
|
199
|
+
await Promise.resolve()
|
|
200
|
+
})
|
|
201
|
+
expect(calls.length).toBeGreaterThan(0)
|
|
202
|
+
for (const call of calls) {
|
|
203
|
+
expect(call.options.duration).toBe(120)
|
|
204
|
+
expect(call.options.delay ?? 0).toBe(0)
|
|
205
|
+
expect(call.keyframes).toHaveLength(2)
|
|
206
|
+
expect(JSON.stringify(call.keyframes)).not.toContain("translate")
|
|
207
|
+
expect(call.options.iterations).toBeUndefined()
|
|
208
|
+
}
|
|
209
|
+
})
|
|
210
|
+
|
|
211
|
+
it("writes the Arabic copy, with the figures kept left to right and the Arabic tile names", () => {
|
|
212
|
+
const { container } = render(<VideoCallHeroCallMockup locale="ar" />)
|
|
213
|
+
expect(screen.getByRole("heading", { level: 2, name: "اجتماعات تبدأ في وقتها" })).toBeInTheDocument()
|
|
214
|
+
expect(screen.getByRole("button", { name: "ابدأ غرفة مجانية" })).toBeInTheDocument()
|
|
215
|
+
const proof = screen.getByText(/فريق انتقلوا هذا العام/)
|
|
216
|
+
expect(proof.querySelectorAll("bdi[dir='ltr']").length).toBeGreaterThanOrEqual(2)
|
|
217
|
+
expect(container.querySelector("[data-hero-mock]")).toHaveTextContent("مازن")
|
|
218
|
+
expect(container.querySelector("[data-hero-mock]")).toHaveTextContent("تسجيل")
|
|
219
|
+
expect(container.querySelector("[data-hero-mock]")).toHaveTextContent("خروج")
|
|
220
|
+
})
|
|
221
|
+
|
|
222
|
+
it("passes a changed string through and keeps the rest", () => {
|
|
223
|
+
render(<VideoCallHeroCallMockup heading="Calls that start now" />)
|
|
224
|
+
expect(screen.getByRole("heading", { level: 2, name: "Calls that start now" })).toBeInTheDocument()
|
|
225
|
+
expect(screen.getByRole("button", { name: "Start a free room" })).toBeInTheDocument()
|
|
226
|
+
})
|
|
227
|
+
})
|
|
228
|
+
|
|
229
|
+
describe("Figures and a thousands comma", () => {
|
|
230
|
+
it("keeps 2,100 one left-to-right run inside an Arabic sentence, so it cannot read 100,2", () => {
|
|
231
|
+
render(<VideoCallHeroCallMockup locale="ar" />)
|
|
232
|
+
const isolates = Array.from(screen.getByText(/فريق انتقلوا هذا العام/).querySelectorAll("bdi[dir='ltr']")).map((node) => node.textContent)
|
|
233
|
+
expect(isolates).toContain("2,100")
|
|
234
|
+
expect(isolates).toContain("4.9")
|
|
235
|
+
})
|
|
236
|
+
})
|