@mohasinac/appkit 3.4.7 → 3.5.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/dist/_internal/client/features/classified/ClassifiedDetailView.js +1 -1
- package/dist/_internal/client/features/digital-code/CodeRevealPanel.js +1 -1
- package/dist/_internal/client/features/digital-code/DigitalCodeDetailView.js +1 -1
- package/dist/_internal/client/features/filters/filter-load-options.js +10 -9
- package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +6 -1
- package/dist/_internal/client/features/layout/DashboardLayoutClient.js +11 -4
- package/dist/_internal/client/features/live/LiveItemDetailView.js +2 -2
- package/dist/_internal/client/features/maintenance/views/AnalysisRunnerView.js +10 -3
- package/dist/_internal/client/features/maintenance/views/ServerErrorsListView.js +2 -2
- package/dist/_internal/client/scaffolds/DashboardScaffold.js +3 -1
- package/dist/_internal/server/features/checkout/actions.d.ts +16 -0
- package/dist/_internal/server/features/checkout/actions.js +149 -35
- package/dist/_internal/server/features/checkout/bundle-expansion.d.ts +31 -0
- package/dist/_internal/server/features/checkout/bundle-expansion.js +41 -0
- package/dist/_internal/server/features/lottery/actions.js +14 -4
- package/dist/_internal/server/features/maintenance/analyze.js +4 -2
- package/dist/_internal/server/features/orders/actions.js +9 -0
- package/dist/_internal/server/features/orders/adapters.js +19 -0
- package/dist/_internal/server/features/seo/robots.js +1 -1
- package/dist/_internal/server/functions/firestore.d.ts +47 -1
- package/dist/_internal/server/functions/firestore.js +56 -1
- package/dist/_internal/server/functions/scheduled.d.ts +2 -1
- package/dist/_internal/server/functions/scheduled.js +9 -1
- package/dist/_internal/server/jobs/core/catalogueImageStalenessReminder.d.ts +10 -0
- package/dist/_internal/server/jobs/core/catalogueImageStalenessReminder.js +49 -0
- package/dist/_internal/server/jobs/core/cleanupRtdbEvents.js +32 -0
- package/dist/_internal/server/jobs/core/hardBanCascade.d.ts +26 -0
- package/dist/_internal/server/jobs/core/hardBanCascade.js +179 -0
- package/dist/_internal/server/jobs/core/index.d.ts +4 -1
- package/dist/_internal/server/jobs/core/index.js +4 -1
- package/dist/_internal/server/jobs/core/jobRunners.d.ts +28 -0
- package/dist/_internal/server/jobs/core/jobRunners.js +37 -0
- package/dist/_internal/server/jobs/core/onCatalogueSubmittedForApproval.d.ts +15 -0
- package/dist/_internal/server/jobs/core/onCatalogueSubmittedForApproval.js +38 -0
- package/dist/_internal/server/jobs/core/onJobCreated.d.ts +22 -0
- package/dist/_internal/server/jobs/core/onJobCreated.js +59 -0
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.d.ts +6 -1
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +5 -2
- package/dist/_internal/server/jobs/handlers/catalogueImageStalenessReminder.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/catalogueImageStalenessReminder.js +2 -0
- package/dist/_internal/server/jobs/handlers/index.d.ts +6 -0
- package/dist/_internal/server/jobs/handlers/index.js +8 -0
- package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.d.ts +12 -0
- package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.js +20 -0
- package/dist/_internal/server/jobs/handlers/onJobCreated.d.ts +3 -0
- package/dist/_internal/server/jobs/handlers/onJobCreated.js +9 -0
- package/dist/_internal/server/jobs/handlers/onShipmentAllocationSync.d.ts +25 -0
- package/dist/_internal/server/jobs/handlers/onShipmentAllocationSync.js +71 -0
- package/dist/_internal/server/jobs/handlers/onShipmentDeleted.d.ts +14 -0
- package/dist/_internal/server/jobs/handlers/onShipmentDeleted.js +23 -0
- package/dist/_internal/server/jobs/handlers/onShipmentItemWrite.d.ts +17 -0
- package/dist/_internal/server/jobs/handlers/onShipmentItemWrite.js +26 -0
- package/dist/_internal/server/jobs/handlers/weeklyPayoutEligibility.js +3 -1
- package/dist/_internal/shared/actions/action-registry.d.ts +1 -1
- package/dist/_internal/shared/actions/action-registry.js +136 -0
- package/dist/_internal/shared/features/blog/schema.d.ts +8 -8
- package/dist/_internal/shared/features/brands/schema.d.ts +4 -4
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +8 -8
- package/dist/_internal/shared/features/events/schema.d.ts +4 -4
- package/dist/_internal/shared/features/products/schema.d.ts +8 -8
- package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
- package/dist/_internal/shared/features/reviews/schema.d.ts +4 -4
- package/dist/client/api/useFeatureFlags.d.ts +22 -0
- package/dist/client/api/useFeatureFlags.js +27 -0
- package/dist/client/observability/reportClientError.js +3 -2
- package/dist/client.d.ts +4 -2
- package/dist/client.js +2 -1
- package/dist/configs/next.js +1 -0
- package/dist/constants/api-endpoints.d.ts +279 -3
- package/dist/constants/api-endpoints.js +130 -2
- package/dist/core/hooks/useSyncManager.js +5 -4
- package/dist/errors/conflict-error.d.ts +4 -0
- package/dist/errors/conflict-error.js +6 -0
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.js +1 -0
- package/dist/features/about/components/FeesView.js +2 -2
- package/dist/features/about/components/HelpPageView.js +2 -2
- package/dist/features/about/components/HowAuctionsWorkView.js +2 -2
- package/dist/features/about/components/HowCheckoutWorksView.js +2 -2
- package/dist/features/about/components/HowEmiWorksView.js +2 -2
- package/dist/features/about/components/HowOffersWorkView.js +3 -3
- package/dist/features/about/components/HowOrdersWorkView.js +3 -3
- package/dist/features/about/components/HowPayoutsWorkView.js +2 -2
- package/dist/features/about/components/HowPreOrdersWorkView.js +2 -2
- package/dist/features/about/components/HowReviewsWorkView.js +2 -2
- package/dist/features/about/components/PublicProfileView.d.ts +8 -1
- package/dist/features/about/components/PublicProfileView.js +11 -9
- package/dist/features/about/components/SecurityPrivacyView.js +2 -2
- package/dist/features/about/components/UnauthorizedView.js +2 -2
- package/dist/features/account/components/AddressBook.js +1 -1
- package/dist/features/account/components/AddressesIndexListing.js +1 -1
- package/dist/features/account/components/NotificationBell.js +5 -5
- package/dist/features/account/components/NotificationPreferencesPanel.js +5 -2
- package/dist/features/account/components/UserOffersPanel.js +5 -4
- package/dist/features/account/components/UserSidebar.js +2 -2
- package/dist/features/account/components/UserSupportView.js +3 -3
- package/dist/features/account/schemas/index.d.ts +12 -12
- package/dist/features/addresses/schemas/index.d.ts +6 -6
- package/dist/features/admin/components/AdminAdEditorView.js +3 -3
- package/dist/features/admin/components/AdminAddressEditorView.js +3 -3
- package/dist/features/admin/components/AdminAdsView.js +3 -3
- package/dist/features/admin/components/AdminBlogEditorView.js +1 -1
- package/dist/features/admin/components/AdminBlogView.js +12 -15
- package/dist/features/admin/components/AdminBrandEditorView.js +1 -1
- package/dist/features/admin/components/AdminBrandsView.js +12 -13
- package/dist/features/admin/components/AdminBundleEditorView.js +5 -4
- package/dist/features/admin/components/AdminBundlesView.js +32 -23
- package/dist/features/admin/components/AdminCarouselEditorView.js +5 -5
- package/dist/features/admin/components/AdminCarouselView.js +2 -2
- package/dist/features/admin/components/AdminCatalogGuideView.js +1 -1
- package/dist/features/admin/components/AdminCategoriesView.js +12 -13
- package/dist/features/admin/components/AdminCategoryEditorView.js +2 -2
- package/dist/features/admin/components/AdminContactEditorView.js +2 -2
- package/dist/features/admin/components/AdminCouponEditorView.d.ts +10 -1
- package/dist/features/admin/components/AdminCouponEditorView.js +7 -2
- package/dist/features/admin/components/AdminCouponsView.js +32 -27
- package/dist/features/admin/components/AdminEmployeeEditorView.js +3 -3
- package/dist/features/admin/components/AdminFaqEditorView.js +1 -1
- package/dist/features/admin/components/AdminFaqsView.js +20 -20
- package/dist/features/admin/components/AdminFeatureEditorView.js +5 -5
- package/dist/features/admin/components/AdminFeaturesView.js +9 -10
- package/dist/features/admin/components/AdminFilterBar.js +1 -1
- package/dist/features/admin/components/AdminFulfillmentView.js +4 -4
- package/dist/features/admin/components/AdminGuideHubView.js +2 -2
- package/dist/features/admin/components/AdminMediaView.js +3 -2
- package/dist/features/admin/components/AdminNavigationView.js +1 -1
- package/dist/features/admin/components/AdminOrderEditorView.js +3 -3
- package/dist/features/admin/components/AdminOrdersView.js +21 -30
- package/dist/features/admin/components/AdminPageHeader.js +3 -3
- package/dist/features/admin/components/AdminPayoutsView.js +8 -8
- package/dist/features/admin/components/AdminPrizeDrawsView.js +8 -9
- package/dist/features/admin/components/AdminProductEditorView.d.ts +9 -1
- package/dist/features/admin/components/AdminProductEditorView.js +7 -4
- package/dist/features/admin/components/AdminProductsView.js +30 -41
- package/dist/features/admin/components/AdminReviewsView.js +14 -17
- package/dist/features/admin/components/AdminScammerEditorView.js +5 -5
- package/dist/features/admin/components/AdminSectionsView.js +3 -3
- package/dist/features/admin/components/AdminSessionsView.js +8 -10
- package/dist/features/admin/components/AdminSidebar.js +2 -2
- package/dist/features/admin/components/AdminSiteSettingsView.js +10 -3
- package/dist/features/admin/components/AdminStoreEditorView.js +4 -5
- package/dist/features/admin/components/AdminStoresView.js +18 -13
- package/dist/features/admin/components/AdminSupportTicketDetailView.js +7 -7
- package/dist/features/admin/components/AdminTeamView.js +9 -5
- package/dist/features/admin/components/AdminUsersView.js +19 -15
- package/dist/features/admin/components/AdminViewCards.js +5 -5
- package/dist/features/admin/components/DashboardStats.js +1 -1
- package/dist/features/admin/components/DataListingView.js +2 -2
- package/dist/features/admin/components/DataTable.js +2 -2
- package/dist/features/admin/components/DrawerFormFooter.js +1 -1
- package/dist/features/admin/components/analytics/AdminAnalyticsCharts.js +2 -2
- package/dist/features/admin/components/analytics/AdminStatCard.js +1 -1
- package/dist/features/admin/hooks/useAdminListing.d.ts +3 -2
- package/dist/features/admin/hooks/useAdminListing.js +8 -2
- package/dist/features/admin/permission-map.js +2 -0
- package/dist/features/admin/schemas/firestore.d.ts +7 -0
- package/dist/features/admin/schemas/firestore.js +4 -0
- package/dist/features/auctions/components/AuctionBidsTable.js +1 -1
- package/dist/features/auctions/components/AuctionDetailPageView.js +7 -7
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +3 -3
- package/dist/features/auctions/components/MarketplaceAuctionGrid.js +4 -4
- package/dist/features/auctions/components/PlaceBidFormClient.js +1 -1
- package/dist/features/auctions/schemas/index.d.ts +16 -16
- package/dist/features/auth/permissions/constants.d.ts +1 -1
- package/dist/features/auth/permissions/constants.js +2 -0
- package/dist/features/auth/schemas/index.d.ts +6 -6
- package/dist/features/before-after/schemas/index.d.ts +3 -3
- package/dist/features/blog/actions/blog-actions.d.ts +32 -32
- package/dist/features/blog/components/BlogFeaturedCard.js +2 -2
- package/dist/features/blog/components/BlogIndexListing.js +2 -2
- package/dist/features/blog/components/BlogListView.js +4 -4
- package/dist/features/blog/components/BlogPostView.js +4 -4
- package/dist/features/blog/schemas/index.d.ts +77 -77
- package/dist/features/cart/components/CartDrawer.js +2 -2
- package/dist/features/catalogue/actions/approve-catalogue-listing.d.ts +12 -0
- package/dist/features/catalogue/actions/approve-catalogue-listing.js +50 -0
- package/dist/features/catalogue/actions/list-from-catalogue.d.ts +17 -0
- package/dist/features/catalogue/actions/list-from-catalogue.js +50 -0
- package/dist/features/catalogue/actions/submit-for-approval.d.ts +8 -0
- package/dist/features/catalogue/actions/submit-for-approval.js +30 -0
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.d.ts +2 -0
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +53 -0
- package/dist/features/catalogue/components/CatalogueItemEditorView.d.ts +7 -0
- package/dist/features/catalogue/components/CatalogueItemEditorView.js +79 -0
- package/dist/features/catalogue/components/PublicCatalogueView.d.ts +5 -0
- package/dist/features/catalogue/components/PublicCatalogueView.js +22 -0
- package/dist/features/catalogue/components/UserCatalogueView.d.ts +12 -0
- package/dist/features/catalogue/components/UserCatalogueView.js +51 -0
- package/dist/features/catalogue/index.d.ts +12 -0
- package/dist/features/catalogue/index.js +9 -0
- package/dist/features/catalogue/repository/catalogue.repository.d.ts +39 -0
- package/dist/features/catalogue/repository/catalogue.repository.js +68 -0
- package/dist/features/catalogue/schemas/firestore.d.ts +47 -0
- package/dist/features/catalogue/schemas/firestore.js +22 -0
- package/dist/features/catalogue/schemas/index.d.ts +2 -0
- package/dist/features/catalogue/schemas/index.js +2 -0
- package/dist/features/catalogue/schemas/validation.d.ts +71 -0
- package/dist/features/catalogue/schemas/validation.js +25 -0
- package/dist/features/catalogue/utils/freshness.d.ts +10 -0
- package/dist/features/catalogue/utils/freshness.js +15 -0
- package/dist/features/catalogue/utils/product-from-item.d.ts +15 -0
- package/dist/features/catalogue/utils/product-from-item.js +34 -0
- package/dist/features/categories/components/BrandDetailPageView.js +1 -1
- package/dist/features/categories/components/BrandDetailTabs.js +2 -2
- package/dist/features/categories/components/BundleCollage.js +2 -2
- package/dist/features/categories/components/BundleItemsPicker.js +3 -2
- package/dist/features/categories/components/CategoriesIndexListing.js +8 -6
- package/dist/features/categories/components/CategoryBundlesListing.js +10 -4
- package/dist/features/categories/components/CategoryDetailPageView.js +1 -1
- package/dist/features/categories/components/CategoryDetailTabs.js +2 -2
- package/dist/features/categories/components/CategoryGrid.js +3 -3
- package/dist/features/categories/components/CategoryProductsListing.js +1 -1
- package/dist/features/categories/components/CategorySortSelect.js +1 -1
- package/dist/features/categories/components/CategoryStoresListing.js +1 -1
- package/dist/features/categories/components/CategoryTableColumns.js +1 -1
- package/dist/features/categories/components/CategoryTree.js +2 -2
- package/dist/features/categories/components/ConcernCard.js +1 -1
- package/dist/features/categories/hooks/useCategories.js +1 -1
- package/dist/features/categories/schemas/index.d.ts +32 -32
- package/dist/features/classified/components/ClassifiedFilters.js +2 -2
- package/dist/features/classified/components/ClassifiedIndexListing.js +9 -3
- package/dist/features/collections/schemas/index.d.ts +2 -2
- package/dist/features/consultation/components/ConsultationForm.js +1 -1
- package/dist/features/consultation/schemas/index.d.ts +10 -10
- package/dist/features/contact/components/ContactForm.js +4 -4
- package/dist/features/contact/components/ContactInfoSidebar.js +1 -1
- package/dist/features/contact/components/ContactPageView.js +2 -1
- package/dist/features/copilot/components/AdminCopilotView.js +5 -4
- package/dist/features/corporate/schemas/index.d.ts +2 -2
- package/dist/features/digital-codes/components/DigitalCodesIndexListing.js +3 -3
- package/dist/features/events/components/AdminEventEditorView.js +4 -4
- package/dist/features/events/components/AdminEventEntriesView.js +2 -2
- package/dist/features/events/components/AdminEventsView.js +8 -8
- package/dist/features/events/components/EventBanner.js +1 -1
- package/dist/features/events/components/EventCard.js +3 -3
- package/dist/features/events/components/EventLeaderboard.js +1 -1
- package/dist/features/events/components/EventOfferCard.js +1 -1
- package/dist/features/events/components/EventPollWidget.js +6 -5
- package/dist/features/events/components/EventRaffleEntryForm.js +1 -1
- package/dist/features/events/components/EventRaffleWinnerView.js +5 -5
- package/dist/features/events/components/EventRafflesSection.js +1 -1
- package/dist/features/events/components/EventSaleBanner.js +1 -1
- package/dist/features/events/components/EventsIndexListing.js +4 -2
- package/dist/features/events/components/EventsListView.js +2 -2
- package/dist/features/events/components/SpinWheelView.js +11 -5
- package/dist/features/events/schemas/index.d.ts +100 -100
- package/dist/features/faq/actions/faq-actions.d.ts +6 -6
- package/dist/features/faq/components/ContactCTA.js +3 -3
- package/dist/features/faq/components/FAQCategorySidebar.js +2 -2
- package/dist/features/faq/components/FAQHelpfulButtons.js +3 -3
- package/dist/features/faq/schemas/index.d.ts +12 -12
- package/dist/features/filters/AsyncFacetSection.js +4 -4
- package/dist/features/filters/FilterFacetSection.js +8 -8
- package/dist/features/filters/RangeFilter.js +2 -2
- package/dist/features/filters/SwitchFilter.js +1 -1
- package/dist/features/forms/Checkbox.js +2 -8
- package/dist/features/forms/Input.js +2 -1
- package/dist/features/forms/Radio.js +3 -3
- package/dist/features/forms/Select.d.ts +1 -1
- package/dist/features/forms/Select.js +3 -2
- package/dist/features/forms/Slider.js +5 -11
- package/dist/features/forms/Textarea.js +2 -1
- package/dist/features/grouped/schemas/index.d.ts +6 -6
- package/dist/features/homepage/actions/homepage-section-actions.d.ts +4 -4
- package/dist/features/homepage/components/AdvertisementBanner.js +4 -4
- package/dist/features/homepage/components/AnnouncementBar.js +3 -3
- package/dist/features/homepage/components/BeforeAfterCard.js +1 -1
- package/dist/features/homepage/components/BrandsSection.js +9 -9
- package/dist/features/homepage/components/CTABannerSection.js +1 -1
- package/dist/features/homepage/components/CharacterHotspot.js +4 -4
- package/dist/features/homepage/components/CharacterHotspotForm.js +15 -13
- package/dist/features/homepage/components/CollectionCardsSection.js +1 -1
- package/dist/features/homepage/components/CustomCardsSection.js +6 -6
- package/dist/features/homepage/components/CustomerReviewsSection.js +2 -2
- package/dist/features/homepage/components/FAQSection.js +2 -2
- package/dist/features/homepage/components/FeaturedBundlesSection.js +3 -3
- package/dist/features/homepage/components/FeaturedResultsSection.js +2 -2
- package/dist/features/homepage/components/GoogleReviewsSection.js +6 -6
- package/dist/features/homepage/components/HeroBanner.js +1 -1
- package/dist/features/homepage/components/HeroCarousel.js +5 -4
- package/dist/features/homepage/components/HeroSection.js +1 -7
- package/dist/features/homepage/components/HomepageSkeleton.js +1 -1
- package/dist/features/homepage/components/HowItWorksInfoView.js +1 -1
- package/dist/features/homepage/components/HowItWorksSection.js +2 -2
- package/dist/features/homepage/components/NewsletterBanner.js +2 -2
- package/dist/features/homepage/components/NewsletterSection.js +1 -1
- package/dist/features/homepage/components/PromoGrid.js +1 -1
- package/dist/features/homepage/components/SectionCarousel.js +6 -6
- package/dist/features/homepage/components/SecurityHighlightsSection.js +2 -2
- package/dist/features/homepage/components/ShopByCategorySection.js +10 -10
- package/dist/features/homepage/components/SiteFeaturesSection.js +2 -2
- package/dist/features/homepage/components/SocialFeedSection.js +5 -5
- package/dist/features/homepage/components/SocialPostCard.js +1 -1
- package/dist/features/homepage/components/StatsCounterSection.js +1 -1
- package/dist/features/homepage/components/TestimonialsCarousel.js +1 -1
- package/dist/features/homepage/components/TrustBadges.js +1 -1
- package/dist/features/homepage/components/TrustFeaturesSection.js +2 -2
- package/dist/features/homepage/components/TrustIndicatorsSection.js +2 -2
- package/dist/features/homepage/components/WelcomeSection.js +2 -2
- package/dist/features/homepage/components/WhatsAppCommunitySection.js +1 -1
- package/dist/features/homepage/hooks/useActiveAd.js +2 -1
- package/dist/features/homepage/schemas/firestore.d.ts +10 -0
- package/dist/features/homepage/schemas/index.d.ts +116 -116
- package/dist/features/jobs/actions/enqueue-job.d.ts +24 -0
- package/dist/features/jobs/actions/enqueue-job.js +44 -0
- package/dist/features/jobs/repository/jobs.repository.d.ts +21 -0
- package/dist/features/jobs/repository/jobs.repository.js +48 -0
- package/dist/features/jobs/schemas/firestore.d.ts +54 -0
- package/dist/features/jobs/schemas/firestore.js +24 -0
- package/dist/features/layout/AppLayoutShell.js +17 -11
- package/dist/features/layout/AutoBreadcrumbs.js +1 -1
- package/dist/features/layout/BackToTop.js +2 -2
- package/dist/features/layout/BottomActions.js +7 -7
- package/dist/features/layout/BottomNavItem.js +2 -2
- package/dist/features/layout/BottomNavLayout.js +13 -4
- package/dist/features/layout/BottomNavbar.d.ts +9 -1
- package/dist/features/layout/BottomNavbar.js +12 -5
- package/dist/features/layout/BottomSheet.js +1 -1
- package/dist/features/layout/Breadcrumbs.js +1 -1
- package/dist/features/layout/FooterLayout.js +2 -2
- package/dist/features/layout/NavItem.js +3 -3
- package/dist/features/layout/NavbarLayout.js +6 -6
- package/dist/features/layout/SidebarLayout.d.ts +3 -0
- package/dist/features/layout/SidebarLayout.js +3 -3
- package/dist/features/layout/TitleBarLayout.js +4 -4
- package/dist/features/live/components/LiveItemFilters.js +2 -2
- package/dist/features/live/components/LiveItemsIndexListing.js +3 -3
- package/dist/features/lottery/types/index.d.ts +3 -1
- package/dist/features/lottery/types/index.js +16 -3
- package/dist/features/loyalty/components/CoinsDisplay.js +2 -2
- package/dist/features/media/MediaImage.d.ts +6 -1
- package/dist/features/media/MediaImage.js +10 -4
- package/dist/features/media/MediaLightbox.js +1 -1
- package/dist/features/media/MediaPickerModal.js +4 -3
- package/dist/features/media/MediaVideo.js +1 -1
- package/dist/features/media/modals/ImageCropModal.js +1 -1
- package/dist/features/media/modals/ImageEditor.js +1 -1
- package/dist/features/media/repository/media-assets.repository.d.ts +9 -0
- package/dist/features/media/types/index.d.ts +4 -4
- package/dist/features/media/upload/MediaUploadField.js +3 -3
- package/dist/features/media/upload/MediaUploadList.js +1 -1
- package/dist/features/messages/hooks/useConversation.js +4 -3
- package/dist/features/messages/hooks/useConversations.js +2 -1
- package/dist/features/messages/schemas/index.d.ts +6 -6
- package/dist/features/orders/components/MarketplaceOrderCard.js +1 -1
- package/dist/features/orders/components/OrderPaymentSummary.d.ts +16 -0
- package/dist/features/orders/components/OrderPaymentSummary.js +32 -0
- package/dist/features/orders/components/OrderSiblingPayments.js +1 -1
- package/dist/features/orders/components/OrdersList.d.ts +7 -2
- package/dist/features/orders/components/OrdersList.js +5 -5
- package/dist/features/orders/components/RefundHistoryTable.js +1 -1
- package/dist/features/orders/components/RefundRequestView.js +1 -1
- package/dist/features/orders/components/index.d.ts +2 -0
- package/dist/features/orders/components/index.js +1 -0
- package/dist/features/orders/repository/orders.repository.d.ts +8 -0
- package/dist/features/orders/repository/orders.repository.js +24 -0
- package/dist/features/orders/schemas/firestore.d.ts +59 -0
- package/dist/features/orders/schemas/firestore.js +5 -0
- package/dist/features/orders/schemas/index.d.ts +91 -40
- package/dist/features/orders/schemas/index.js +10 -0
- package/dist/features/orders/types/index.d.ts +15 -0
- package/dist/features/payments/schemas/index.d.ts +12 -12
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +5 -5
- package/dist/features/pre-orders/components/PreOrderActionsClient.js +1 -1
- package/dist/features/pre-orders/components/PreOrderBadge.js +1 -1
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +7 -7
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +3 -3
- package/dist/features/pre-orders/schemas/index.d.ts +12 -12
- package/dist/features/products/columns/productTableColumns.js +2 -2
- package/dist/features/products/components/AuctionsIndexListing.js +3 -3
- package/dist/features/products/components/CompareOverlay.js +15 -10
- package/dist/features/products/components/CustomFieldsEditor.js +2 -2
- package/dist/features/products/components/CustomSectionsEditor.js +3 -3
- package/dist/features/products/components/FeatureBadge.js +2 -2
- package/dist/features/products/components/GroupSettingsPanel.js +5 -4
- package/dist/features/products/components/MakeOfferButton.js +4 -4
- package/dist/features/products/components/MarketplaceBundleCard.js +3 -2
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +1 -1
- package/dist/features/products/components/PrizeDrawCollage.js +6 -6
- package/dist/features/products/components/PrizeDrawDetailPageView.js +5 -5
- package/dist/features/products/components/PrizeDrawEntryActions.js +1 -1
- package/dist/features/products/components/PrizeDrawItemsEditor.js +4 -4
- package/dist/features/products/components/PrizeDrawsIndexListing.js +11 -4
- package/dist/features/products/components/PrizeDrawsSection.js +1 -1
- package/dist/features/products/components/PrizeRevealModal.js +9 -4
- package/dist/features/products/components/ProductDetailActions.js +2 -1
- package/dist/features/products/components/ProductDetailPageView.js +16 -16
- package/dist/features/products/components/ProductFeaturesSelector.js +5 -5
- package/dist/features/products/components/ProductForm.js +1 -1
- package/dist/features/products/components/ProductGalleryClient.js +5 -3
- package/dist/features/products/components/ProductGrid.js +11 -11
- package/dist/features/products/components/ProductTabs.js +2 -2
- package/dist/features/products/components/ProductTabsShell.js +2 -1
- package/dist/features/products/components/ProductsIndexListing.js +6 -1
- package/dist/features/products/components/ShareButton.js +2 -1
- package/dist/features/products/components/ShowGroupSection.js +9 -5
- package/dist/features/products/components/SublistingCarouselSection.js +8 -4
- package/dist/features/products/constants/action-defs.d.ts +10 -2
- package/dist/features/products/constants/action-defs.js +20 -2
- package/dist/features/products/schemas/firestore.d.ts +5 -0
- package/dist/features/products/schemas/index.d.ts +40 -40
- package/dist/features/products/schemas/product-features.validators.d.ts +14 -14
- package/dist/features/promotions/components/CouponCard.js +13 -7
- package/dist/features/promotions/components/CouponsIndexListing.js +4 -6
- package/dist/features/promotions/components/PromotionsView.js +2 -2
- package/dist/features/promotions/schemas/index.d.ts +26 -26
- package/dist/features/reviews/components/ReviewDetailPageView.js +1 -1
- package/dist/features/reviews/components/ReviewDetailShell.js +11 -11
- package/dist/features/reviews/components/ReviewModal.js +1 -1
- package/dist/features/reviews/components/ReviewsIndexListing.js +2 -2
- package/dist/features/reviews/components/ReviewsList.js +2 -2
- package/dist/features/reviews/schemas/index.d.ts +22 -22
- package/dist/features/scams/components/ScamAwarenessModal.js +2 -2
- package/dist/features/scams/components/ScamProfileView.js +3 -3
- package/dist/features/scams/components/ScamRegistryView.js +2 -2
- package/dist/features/scams/schemas/index.d.ts +20 -20
- package/dist/features/search/components/Search.js +9 -9
- package/dist/features/search/components/SearchFiltersRow.js +1 -1
- package/dist/features/search/components/SearchResultsSection.js +3 -3
- package/dist/features/search/components/SearchView.js +1 -1
- package/dist/features/search/hooks/useNavSuggestions.js +2 -1
- package/dist/features/search/hooks/useSearch.js +2 -2
- package/dist/features/search/schemas/index.d.ts +3 -3
- package/dist/features/seller/components/BrandInlineSelect.js +2 -2
- package/dist/features/seller/components/CategoryInlineSelect.js +2 -2
- package/dist/features/seller/components/QuickProductForm.js +1 -1
- package/dist/features/seller/components/SellerAddressesView.js +4 -4
- package/dist/features/seller/components/SellerAnalyticsAlertsView.js +3 -3
- package/dist/features/seller/components/SellerAnalyticsView.js +2 -2
- package/dist/features/seller/components/SellerArtView.js +11 -11
- package/dist/features/seller/components/SellerAuctionsView.js +11 -11
- package/dist/features/seller/components/SellerBidsView.js +3 -3
- package/dist/features/seller/components/SellerBundlesView.js +12 -12
- package/dist/features/seller/components/SellerClassifiedView.js +11 -11
- package/dist/features/seller/components/SellerCouponEditorView.js +2 -2
- package/dist/features/seller/components/SellerDigitalCodesView.js +11 -11
- package/dist/features/seller/components/SellerFeaturesView.js +4 -4
- package/dist/features/seller/components/SellerLiveView.js +11 -11
- package/dist/features/seller/components/SellerOffersPanel.js +3 -2
- package/dist/features/seller/components/SellerOrdersView.js +2 -2
- package/dist/features/seller/components/SellerPayoutMethodsView.js +1 -1
- package/dist/features/seller/components/SellerPayoutRequestView.js +6 -5
- package/dist/features/seller/components/SellerPayoutSettingsView.js +5 -4
- package/dist/features/seller/components/SellerPreOrdersView.js +1 -1
- package/dist/features/seller/components/SellerPrizeDrawsView.js +1 -1
- package/dist/features/seller/components/SellerProductShell.js +20 -6
- package/dist/features/seller/components/SellerProductsCards.js +3 -3
- package/dist/features/seller/components/SellerProductsView.js +4 -4
- package/dist/features/seller/components/SellerReviewsView.js +7 -6
- package/dist/features/seller/components/SellerShippingView.js +2 -1
- package/dist/features/seller/components/SellerSidebar.js +5 -5
- package/dist/features/seller/components/SellerStickersView.js +11 -11
- package/dist/features/seller/components/SellerTemplatesView.js +1 -1
- package/dist/features/seller/schemas/index.d.ts +20 -20
- package/dist/features/server-errors/schemas/index.d.ts +6 -6
- package/dist/features/shell/CommandPalette.d.ts +27 -0
- package/dist/features/shell/CommandPalette.js +92 -0
- package/dist/features/shell/FormShell.js +4 -3
- package/dist/features/shell/QuickFormDrawer.js +3 -2
- package/dist/features/shell/StepForm.js +2 -2
- package/dist/features/shell/index.d.ts +2 -0
- package/dist/features/shell/index.js +1 -0
- package/dist/features/shipments/components/AdminShipmentEditorView.d.ts +7 -0
- package/dist/features/shipments/components/AdminShipmentEditorView.js +123 -0
- package/dist/features/shipments/components/AdminShipmentLotItemsView.d.ts +6 -0
- package/dist/features/shipments/components/AdminShipmentLotItemsView.js +96 -0
- package/dist/features/shipments/components/AdminShipmentProjectionsView.d.ts +9 -0
- package/dist/features/shipments/components/AdminShipmentProjectionsView.js +44 -0
- package/dist/features/shipments/components/AdminShipmentsView.d.ts +8 -0
- package/dist/features/shipments/components/AdminShipmentsView.js +82 -0
- package/dist/features/shipments/components/ShipmentItemLinkModal.d.ts +15 -0
- package/dist/features/shipments/components/ShipmentItemLinkModal.js +37 -0
- package/dist/features/shipments/hooks/useShipments.d.ts +69 -0
- package/dist/features/shipments/hooks/useShipments.js +96 -0
- package/dist/features/shipments/index.d.ts +10 -0
- package/dist/features/shipments/index.js +7 -0
- package/dist/features/shipments/manifest.d.ts +2 -0
- package/dist/features/shipments/manifest.js +26 -0
- package/dist/features/shipments/repository/shipment-items.repository.d.ts +56 -0
- package/dist/features/shipments/repository/shipment-items.repository.js +78 -0
- package/dist/features/shipments/repository/shipment-lots.repository.d.ts +48 -0
- package/dist/features/shipments/repository/shipment-lots.repository.js +55 -0
- package/dist/features/shipments/repository/shipments.repository.d.ts +50 -0
- package/dist/features/shipments/repository/shipments.repository.js +77 -0
- package/dist/features/shipments/schemas/firestore.d.ts +150 -0
- package/dist/features/shipments/schemas/firestore.js +76 -0
- package/dist/features/shipments/schemas/index.d.ts +2 -0
- package/dist/features/shipments/schemas/index.js +2 -0
- package/dist/features/shipments/schemas/validation.d.ts +350 -0
- package/dist/features/shipments/schemas/validation.js +96 -0
- package/dist/features/shipments/utils/cost-allocation.d.ts +25 -0
- package/dist/features/shipments/utils/cost-allocation.js +83 -0
- package/dist/features/site-settings/components/ActionPermissionsManager.js +2 -2
- package/dist/features/stores/components/InteractiveStoreCard.js +2 -2
- package/dist/features/stores/components/StoreAboutView.js +1 -1
- package/dist/features/stores/components/StoreAuctionsListing.js +3 -3
- package/dist/features/stores/components/StoreAuctionsView.js +1 -1
- package/dist/features/stores/components/StoreCapabilitiesGuideView.js +1 -1
- package/dist/features/stores/components/StoreClassifiedsListing.js +2 -2
- package/dist/features/stores/components/StoreDetailLayoutView.js +1 -1
- package/dist/features/stores/components/StoreDigitalCodesListing.js +2 -2
- package/dist/features/stores/components/StoreFinanceGuideView.js +2 -2
- package/dist/features/stores/components/StoreGuideHubView.js +2 -2
- package/dist/features/stores/components/StoreHeader.js +4 -4
- package/dist/features/stores/components/StoreLiveItemsListing.js +2 -2
- package/dist/features/stores/components/StoreNavTabs.js +2 -2
- package/dist/features/stores/components/StoreOrdersGuideView.js +1 -1
- package/dist/features/stores/components/StorePreOrdersListing.js +3 -3
- package/dist/features/stores/components/StoreProductsListing.js +1 -1
- package/dist/features/stores/components/StoreReviewsListing.js +2 -2
- package/dist/features/stores/components/StoreReviewsView.js +1 -1
- package/dist/features/stores/components/StoreSettingsGuideView.js +1 -1
- package/dist/features/stores/components/StoresIndexListing.js +9 -3
- package/dist/features/stores/schemas/index.d.ts +10 -10
- package/dist/features/support/schemas/index.d.ts +22 -22
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +3 -3
- package/dist/features/whatsapp-bot/components/WhatsAppChatButton.js +1 -1
- package/dist/features/wishlist/hooks/useWishlistCount.js +1 -2
- package/dist/index.d.ts +44 -1
- package/dist/index.js +37 -1
- package/dist/next/routing/route-map.d.ts +18 -0
- package/dist/next/routing/route-map.js +9 -0
- package/dist/react/hooks/useVisualViewportInset.d.ts +1 -0
- package/dist/react/hooks/useVisualViewportInset.js +59 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -0
- package/dist/repositories/index.d.ts +5 -0
- package/dist/repositories/index.js +5 -0
- package/dist/schemas/registry.d.ts +398 -364
- package/dist/schemas/sieve.d.ts +2 -2
- package/dist/schemas/webhooks/google-oauth.d.ts +2 -2
- package/dist/schemas/webhooks/razorpay.d.ts +100 -100
- package/dist/seed/_helpers/media.js +1 -0
- package/dist/seed/actions/demo-seed-actions.d.ts +1 -1
- package/dist/seed/catalogue-seed-data.d.ts +2 -0
- package/dist/seed/catalogue-seed-data.js +112 -0
- package/dist/seed/grouped-listings-seed-data.d.ts +5 -0
- package/dist/seed/homepage-sections-seed-data.js +0 -1
- package/dist/seed/index.d.ts +2 -0
- package/dist/seed/index.js +2 -0
- package/dist/seed/manifest.js +6 -0
- package/dist/seed/products-preorders-seed-data.d.ts +5 -0
- package/dist/seed/shipments-seed-data.d.ts +5 -0
- package/dist/seed/shipments-seed-data.js +185 -0
- package/dist/server.d.ts +4 -0
- package/dist/server.js +5 -0
- package/dist/styles.css +75 -19
- package/dist/tailwind-utilities.css +1 -1
- package/dist/tokens/index.d.ts +0 -2
- package/dist/tokens/index.js +0 -2
- package/dist/tokens/tokens.css +12 -2
- package/dist/ui/DataTable.js +4 -3
- package/dist/ui/components/Button.d.ts +4 -1
- package/dist/ui/components/Button.js +11 -5
- package/dist/ui/components/Checkbox.d.ts +9 -1
- package/dist/ui/components/Checkbox.js +5 -2
- package/dist/ui/components/ClaimCouponButton.js +2 -1
- package/dist/ui/components/ConfirmDeleteModal.style.css +1 -1
- package/dist/ui/components/Drawer.style.css +13 -1
- package/dist/ui/components/Dropdown.style.css +2 -2
- package/dist/ui/components/FilterDrawer.d.ts +4 -1
- package/dist/ui/components/FilterDrawer.js +8 -2
- package/dist/ui/components/Form.d.ts +1 -1
- package/dist/ui/components/Form.js +2 -2
- package/dist/ui/components/FormActionBar.style.css +6 -1
- package/dist/ui/components/IconButton.d.ts +6 -1
- package/dist/ui/components/IconButton.js +5 -2
- package/dist/ui/components/IconButton.style.css +11 -0
- package/dist/ui/components/ImageGallery.style.css +2 -0
- package/dist/ui/components/ImageLightbox.style.css +1 -0
- package/dist/ui/components/ListingFilterDrawer.d.ts +4 -1
- package/dist/ui/components/ListingFilterDrawer.js +4 -3
- package/dist/ui/components/ListingLayout.style.css +2 -2
- package/dist/ui/components/Modal.style.css +1 -1
- package/dist/ui/components/Pagination.d.ts +5 -1
- package/dist/ui/components/Pagination.js +4 -2
- package/dist/ui/components/RowActionMenu.js +1 -1
- package/dist/ui/components/RowActionMenu.style.css +1 -1
- package/dist/ui/components/Select.d.ts +6 -1
- package/dist/ui/components/Select.js +18 -13
- package/dist/ui/components/Select.style.css +1 -1
- package/dist/ui/components/Semantic.d.ts +13 -0
- package/dist/ui/components/Semantic.js +16 -3
- package/dist/ui/components/SideDrawer.style.css +16 -4
- package/dist/ui/components/SideModal.style.css +1 -1
- package/dist/ui/components/StickyToolbar.d.ts +3 -2
- package/dist/ui/components/StickyToolbar.js +1 -1
- package/dist/ui/components/Textarea.d.ts +5 -0
- package/dist/ui/components/Textarea.js +8 -4
- package/dist/ui/components/Toast.style.css +3 -0
- package/dist/ui/components/Typography.js +69 -8
- package/dist/ui/components/UnsavedChangesModal.style.css +1 -1
- package/dist/ui/components/surface-tokens.d.ts +121 -113
- package/dist/ui/components/surface-tokens.js +110 -104
- package/dist/ui/forms/FormShell.d.ts +8 -27
- package/dist/ui/forms/FormShell.js +1 -194
- package/dist/ui/forms/index.d.ts +2 -2
- package/dist/ui/forms/index.js +1 -1
- package/dist/ui/index.d.ts +8 -4
- package/dist/ui/index.js +4 -2
- package/dist/utils/id-generators.d.ts +27 -0
- package/dist/utils/id-generators.js +45 -0
- package/dist/utils/number.formatter.d.ts +7 -0
- package/dist/utils/number.formatter.js +9 -0
- package/dist/validation/schemas.d.ts +5 -5
- package/package.json +1 -1
|
@@ -32,60 +32,68 @@ export declare const SURFACE_MAP: {
|
|
|
32
32
|
readonly "media-dark": "bg-zinc-900";
|
|
33
33
|
};
|
|
34
34
|
export type SurfaceKey = keyof typeof SURFACE_MAP;
|
|
35
|
+
/**
|
|
36
|
+
* Every className below is spelled out as a complete string literal — Tailwind's
|
|
37
|
+
* content scanner reads this source file as plain text (it does not evaluate
|
|
38
|
+
* JS), so building a class name via template-literal interpolation of the
|
|
39
|
+
* space step leaves an unresolved placeholder that the scanner cannot turn
|
|
40
|
+
* into a generatable candidate. See the same fix in Typography.tsx
|
|
41
|
+
* (RESPONSIVE_TEXT_SIZE_CLASS) for the identical issue with text sizes.
|
|
42
|
+
*/
|
|
35
43
|
export declare const PADDING_MAP: {
|
|
36
44
|
readonly none: "";
|
|
37
|
-
readonly "2xs":
|
|
38
|
-
readonly xs:
|
|
39
|
-
readonly sm:
|
|
40
|
-
readonly md:
|
|
41
|
-
readonly "5":
|
|
42
|
-
readonly lg:
|
|
43
|
-
readonly xl:
|
|
44
|
-
readonly "3xl":
|
|
45
|
-
readonly card:
|
|
46
|
-
readonly "card-tight":
|
|
47
|
-
readonly section:
|
|
48
|
-
readonly sectionSm:
|
|
49
|
-
readonly page:
|
|
50
|
-
readonly hero:
|
|
51
|
-
readonly toolbar:
|
|
52
|
-
readonly inline:
|
|
53
|
-
readonly inlineSm:
|
|
54
|
-
readonly inlineLg:
|
|
45
|
+
readonly "2xs": "p-[var(--appkit-space-1)]";
|
|
46
|
+
readonly xs: "p-[var(--appkit-space-2)]";
|
|
47
|
+
readonly sm: "p-[var(--appkit-space-3)]";
|
|
48
|
+
readonly md: "p-[var(--appkit-space-4)]";
|
|
49
|
+
readonly "5": "p-[var(--appkit-space-5)]";
|
|
50
|
+
readonly lg: "p-[var(--appkit-space-6)]";
|
|
51
|
+
readonly xl: "p-[var(--appkit-space-8)]";
|
|
52
|
+
readonly "3xl": "p-[var(--appkit-space-12)]";
|
|
53
|
+
readonly card: "p-[var(--appkit-space-5)] sm:p-[var(--appkit-space-6)] lg:p-[var(--appkit-space-8)]";
|
|
54
|
+
readonly "card-tight": "p-[var(--appkit-space-3)] sm:p-[var(--appkit-space-4)]";
|
|
55
|
+
readonly section: "py-[var(--appkit-space-10)] sm:py-[var(--appkit-space-14)] xl:py-[var(--appkit-space-20)]";
|
|
56
|
+
readonly sectionSm: "py-[var(--appkit-space-6)] sm:py-[var(--appkit-space-10)]";
|
|
57
|
+
readonly page: "py-[var(--appkit-space-6)] sm:py-[var(--appkit-space-8)] lg:py-[var(--appkit-space-10)]";
|
|
58
|
+
readonly hero: "py-[var(--appkit-space-12)] sm:py-[var(--appkit-space-16)] lg:py-[var(--appkit-space-24)]";
|
|
59
|
+
readonly toolbar: "px-[var(--appkit-space-3)] py-[var(--appkit-space-1-5)]";
|
|
60
|
+
readonly inline: "px-[var(--appkit-space-4)] py-[var(--appkit-space-3)]";
|
|
61
|
+
readonly inlineSm: "px-[var(--appkit-space-3)] py-[var(--appkit-space-2)]";
|
|
62
|
+
readonly inlineLg: "px-[var(--appkit-space-6)] py-[var(--appkit-space-4)]";
|
|
55
63
|
/** Tiny pill chip — `px-1.5 py-0.5`. Used by Bundle/PrizeDraw badge labels. */
|
|
56
|
-
readonly "chip-2xs":
|
|
57
|
-
readonly "y-2xs":
|
|
58
|
-
readonly "y-xs":
|
|
59
|
-
readonly "y-sm":
|
|
60
|
-
readonly "y-md":
|
|
61
|
-
readonly "y-lg":
|
|
62
|
-
readonly "y-xl":
|
|
63
|
-
readonly "y-2xl":
|
|
64
|
-
readonly "y-3xl":
|
|
65
|
-
readonly "y-4xl":
|
|
66
|
-
readonly "x-xs":
|
|
67
|
-
readonly "x-sm":
|
|
68
|
-
readonly "x-md":
|
|
69
|
-
readonly "x-lg":
|
|
70
|
-
readonly "x-xl":
|
|
71
|
-
readonly "t-2xs":
|
|
72
|
-
readonly "b-2xs":
|
|
73
|
-
readonly "t-xs":
|
|
74
|
-
readonly "t-sm":
|
|
75
|
-
readonly "t-md":
|
|
76
|
-
readonly "t-lg":
|
|
77
|
-
readonly "t-xl":
|
|
78
|
-
readonly "b-xs":
|
|
79
|
-
readonly "b-sm":
|
|
80
|
-
readonly "b-md":
|
|
81
|
-
readonly "b-lg":
|
|
82
|
-
readonly "b-xl":
|
|
83
|
-
readonly "b-2xl":
|
|
84
|
-
readonly "y-2-5xl":
|
|
85
|
-
readonly "y-5xl":
|
|
86
|
-
readonly "y-6xl":
|
|
87
|
-
readonly banner:
|
|
88
|
-
readonly "content-banner":
|
|
64
|
+
readonly "chip-2xs": "px-[var(--appkit-space-1-5)] py-[var(--appkit-space-0-5)]";
|
|
65
|
+
readonly "y-2xs": "py-[var(--appkit-space-1)]";
|
|
66
|
+
readonly "y-xs": "py-[var(--appkit-space-2)]";
|
|
67
|
+
readonly "y-sm": "py-[var(--appkit-space-3)]";
|
|
68
|
+
readonly "y-md": "py-[var(--appkit-space-4)]";
|
|
69
|
+
readonly "y-lg": "py-[var(--appkit-space-6)]";
|
|
70
|
+
readonly "y-xl": "py-[var(--appkit-space-8)]";
|
|
71
|
+
readonly "y-2xl": "py-[var(--appkit-space-10)]";
|
|
72
|
+
readonly "y-3xl": "py-[var(--appkit-space-12)]";
|
|
73
|
+
readonly "y-4xl": "py-[var(--appkit-space-16)]";
|
|
74
|
+
readonly "x-xs": "px-[var(--appkit-space-2)]";
|
|
75
|
+
readonly "x-sm": "px-[var(--appkit-space-3)]";
|
|
76
|
+
readonly "x-md": "px-[var(--appkit-space-4)]";
|
|
77
|
+
readonly "x-lg": "px-[var(--appkit-space-6)]";
|
|
78
|
+
readonly "x-xl": "px-[var(--appkit-space-8)]";
|
|
79
|
+
readonly "t-2xs": "pt-[var(--appkit-space-1)]";
|
|
80
|
+
readonly "b-2xs": "pb-[var(--appkit-space-1)]";
|
|
81
|
+
readonly "t-xs": "pt-[var(--appkit-space-2)]";
|
|
82
|
+
readonly "t-sm": "pt-[var(--appkit-space-3)]";
|
|
83
|
+
readonly "t-md": "pt-[var(--appkit-space-4)]";
|
|
84
|
+
readonly "t-lg": "pt-[var(--appkit-space-6)]";
|
|
85
|
+
readonly "t-xl": "pt-[var(--appkit-space-8)]";
|
|
86
|
+
readonly "b-xs": "pb-[var(--appkit-space-2)]";
|
|
87
|
+
readonly "b-sm": "pb-[var(--appkit-space-3)]";
|
|
88
|
+
readonly "b-md": "pb-[var(--appkit-space-4)]";
|
|
89
|
+
readonly "b-lg": "pb-[var(--appkit-space-6)]";
|
|
90
|
+
readonly "b-xl": "pb-[var(--appkit-space-8)]";
|
|
91
|
+
readonly "b-2xl": "pb-[var(--appkit-space-10)]";
|
|
92
|
+
readonly "y-2-5xl": "py-[var(--appkit-space-14)]";
|
|
93
|
+
readonly "y-5xl": "py-[var(--appkit-space-20)]";
|
|
94
|
+
readonly "y-6xl": "py-[var(--appkit-space-24)]";
|
|
95
|
+
readonly banner: "py-[var(--appkit-space-14)] md:py-[var(--appkit-space-16)] lg:py-[var(--appkit-space-20)]";
|
|
96
|
+
readonly "content-banner": "py-[var(--appkit-space-10)] md:py-[var(--appkit-space-12)] lg:py-[var(--appkit-space-16)]";
|
|
89
97
|
};
|
|
90
98
|
export type PaddingKey = keyof typeof PADDING_MAP;
|
|
91
99
|
export declare const ROUNDED_MAP: {
|
|
@@ -143,17 +151,17 @@ export type ShadowKey = keyof typeof SHADOW_MAP;
|
|
|
143
151
|
export declare const GAP_PRESETS: {
|
|
144
152
|
readonly none: "gap-0";
|
|
145
153
|
readonly px: "gap-px";
|
|
146
|
-
readonly xs:
|
|
147
|
-
readonly sm:
|
|
148
|
-
readonly dense:
|
|
149
|
-
readonly md:
|
|
150
|
-
readonly comfortable:
|
|
151
|
-
readonly lg:
|
|
152
|
-
readonly loose:
|
|
153
|
-
readonly xl:
|
|
154
|
-
readonly "2xl":
|
|
155
|
-
readonly section:
|
|
156
|
-
readonly hero:
|
|
154
|
+
readonly xs: "gap-[var(--appkit-space-1)]";
|
|
155
|
+
readonly sm: "gap-[var(--appkit-space-2)]";
|
|
156
|
+
readonly dense: "gap-[var(--appkit-space-2)]";
|
|
157
|
+
readonly md: "gap-[var(--appkit-space-3)]";
|
|
158
|
+
readonly comfortable: "gap-[var(--appkit-space-3)]";
|
|
159
|
+
readonly lg: "gap-[var(--appkit-space-4)]";
|
|
160
|
+
readonly loose: "gap-[var(--appkit-space-4)]";
|
|
161
|
+
readonly xl: "gap-[var(--appkit-space-5)]";
|
|
162
|
+
readonly "2xl": "gap-[var(--appkit-space-6)]";
|
|
163
|
+
readonly section: "gap-[var(--appkit-space-6)] sm:gap-[var(--appkit-space-8)]";
|
|
164
|
+
readonly hero: "gap-[var(--appkit-space-10)] sm:gap-[var(--appkit-space-12)]";
|
|
157
165
|
};
|
|
158
166
|
export type GapPresetKey = keyof typeof GAP_PRESETS;
|
|
159
167
|
/**
|
|
@@ -164,58 +172,58 @@ export type GapPresetKey = keyof typeof GAP_PRESETS;
|
|
|
164
172
|
*/
|
|
165
173
|
export declare const PADDING_PRESETS: {
|
|
166
174
|
readonly none: "";
|
|
167
|
-
readonly "2xs":
|
|
168
|
-
readonly xs:
|
|
169
|
-
readonly sm:
|
|
170
|
-
readonly md:
|
|
171
|
-
readonly "5":
|
|
172
|
-
readonly lg:
|
|
173
|
-
readonly xl:
|
|
174
|
-
readonly "3xl":
|
|
175
|
-
readonly card:
|
|
176
|
-
readonly "card-tight":
|
|
177
|
-
readonly section:
|
|
178
|
-
readonly sectionSm:
|
|
179
|
-
readonly page:
|
|
180
|
-
readonly hero:
|
|
181
|
-
readonly toolbar:
|
|
182
|
-
readonly inline:
|
|
183
|
-
readonly inlineSm:
|
|
184
|
-
readonly inlineLg:
|
|
175
|
+
readonly "2xs": "p-[var(--appkit-space-1)]";
|
|
176
|
+
readonly xs: "p-[var(--appkit-space-2)]";
|
|
177
|
+
readonly sm: "p-[var(--appkit-space-3)]";
|
|
178
|
+
readonly md: "p-[var(--appkit-space-4)]";
|
|
179
|
+
readonly "5": "p-[var(--appkit-space-5)]";
|
|
180
|
+
readonly lg: "p-[var(--appkit-space-6)]";
|
|
181
|
+
readonly xl: "p-[var(--appkit-space-8)]";
|
|
182
|
+
readonly "3xl": "p-[var(--appkit-space-12)]";
|
|
183
|
+
readonly card: "p-[var(--appkit-space-5)] sm:p-[var(--appkit-space-6)] lg:p-[var(--appkit-space-8)]";
|
|
184
|
+
readonly "card-tight": "p-[var(--appkit-space-3)] sm:p-[var(--appkit-space-4)]";
|
|
185
|
+
readonly section: "py-[var(--appkit-space-10)] sm:py-[var(--appkit-space-14)] xl:py-[var(--appkit-space-20)]";
|
|
186
|
+
readonly sectionSm: "py-[var(--appkit-space-6)] sm:py-[var(--appkit-space-10)]";
|
|
187
|
+
readonly page: "py-[var(--appkit-space-6)] sm:py-[var(--appkit-space-8)] lg:py-[var(--appkit-space-10)]";
|
|
188
|
+
readonly hero: "py-[var(--appkit-space-12)] sm:py-[var(--appkit-space-16)] lg:py-[var(--appkit-space-24)]";
|
|
189
|
+
readonly toolbar: "px-[var(--appkit-space-3)] py-[var(--appkit-space-1-5)]";
|
|
190
|
+
readonly inline: "px-[var(--appkit-space-4)] py-[var(--appkit-space-3)]";
|
|
191
|
+
readonly inlineSm: "px-[var(--appkit-space-3)] py-[var(--appkit-space-2)]";
|
|
192
|
+
readonly inlineLg: "px-[var(--appkit-space-6)] py-[var(--appkit-space-4)]";
|
|
185
193
|
/** Tiny pill chip — `px-1.5 py-0.5`. Used by Bundle/PrizeDraw badge labels. */
|
|
186
|
-
readonly "chip-2xs":
|
|
187
|
-
readonly "y-2xs":
|
|
188
|
-
readonly "y-xs":
|
|
189
|
-
readonly "y-sm":
|
|
190
|
-
readonly "y-md":
|
|
191
|
-
readonly "y-lg":
|
|
192
|
-
readonly "y-xl":
|
|
193
|
-
readonly "y-2xl":
|
|
194
|
-
readonly "y-3xl":
|
|
195
|
-
readonly "y-4xl":
|
|
196
|
-
readonly "x-xs":
|
|
197
|
-
readonly "x-sm":
|
|
198
|
-
readonly "x-md":
|
|
199
|
-
readonly "x-lg":
|
|
200
|
-
readonly "x-xl":
|
|
201
|
-
readonly "t-2xs":
|
|
202
|
-
readonly "b-2xs":
|
|
203
|
-
readonly "t-xs":
|
|
204
|
-
readonly "t-sm":
|
|
205
|
-
readonly "t-md":
|
|
206
|
-
readonly "t-lg":
|
|
207
|
-
readonly "t-xl":
|
|
208
|
-
readonly "b-xs":
|
|
209
|
-
readonly "b-sm":
|
|
210
|
-
readonly "b-md":
|
|
211
|
-
readonly "b-lg":
|
|
212
|
-
readonly "b-xl":
|
|
213
|
-
readonly "b-2xl":
|
|
214
|
-
readonly "y-2-5xl":
|
|
215
|
-
readonly "y-5xl":
|
|
216
|
-
readonly "y-6xl":
|
|
217
|
-
readonly banner:
|
|
218
|
-
readonly "content-banner":
|
|
194
|
+
readonly "chip-2xs": "px-[var(--appkit-space-1-5)] py-[var(--appkit-space-0-5)]";
|
|
195
|
+
readonly "y-2xs": "py-[var(--appkit-space-1)]";
|
|
196
|
+
readonly "y-xs": "py-[var(--appkit-space-2)]";
|
|
197
|
+
readonly "y-sm": "py-[var(--appkit-space-3)]";
|
|
198
|
+
readonly "y-md": "py-[var(--appkit-space-4)]";
|
|
199
|
+
readonly "y-lg": "py-[var(--appkit-space-6)]";
|
|
200
|
+
readonly "y-xl": "py-[var(--appkit-space-8)]";
|
|
201
|
+
readonly "y-2xl": "py-[var(--appkit-space-10)]";
|
|
202
|
+
readonly "y-3xl": "py-[var(--appkit-space-12)]";
|
|
203
|
+
readonly "y-4xl": "py-[var(--appkit-space-16)]";
|
|
204
|
+
readonly "x-xs": "px-[var(--appkit-space-2)]";
|
|
205
|
+
readonly "x-sm": "px-[var(--appkit-space-3)]";
|
|
206
|
+
readonly "x-md": "px-[var(--appkit-space-4)]";
|
|
207
|
+
readonly "x-lg": "px-[var(--appkit-space-6)]";
|
|
208
|
+
readonly "x-xl": "px-[var(--appkit-space-8)]";
|
|
209
|
+
readonly "t-2xs": "pt-[var(--appkit-space-1)]";
|
|
210
|
+
readonly "b-2xs": "pb-[var(--appkit-space-1)]";
|
|
211
|
+
readonly "t-xs": "pt-[var(--appkit-space-2)]";
|
|
212
|
+
readonly "t-sm": "pt-[var(--appkit-space-3)]";
|
|
213
|
+
readonly "t-md": "pt-[var(--appkit-space-4)]";
|
|
214
|
+
readonly "t-lg": "pt-[var(--appkit-space-6)]";
|
|
215
|
+
readonly "t-xl": "pt-[var(--appkit-space-8)]";
|
|
216
|
+
readonly "b-xs": "pb-[var(--appkit-space-2)]";
|
|
217
|
+
readonly "b-sm": "pb-[var(--appkit-space-3)]";
|
|
218
|
+
readonly "b-md": "pb-[var(--appkit-space-4)]";
|
|
219
|
+
readonly "b-lg": "pb-[var(--appkit-space-6)]";
|
|
220
|
+
readonly "b-xl": "pb-[var(--appkit-space-8)]";
|
|
221
|
+
readonly "b-2xl": "pb-[var(--appkit-space-10)]";
|
|
222
|
+
readonly "y-2-5xl": "py-[var(--appkit-space-14)]";
|
|
223
|
+
readonly "y-5xl": "py-[var(--appkit-space-20)]";
|
|
224
|
+
readonly "y-6xl": "py-[var(--appkit-space-24)]";
|
|
225
|
+
readonly banner: "py-[var(--appkit-space-14)] md:py-[var(--appkit-space-16)] lg:py-[var(--appkit-space-20)]";
|
|
226
|
+
readonly "content-banner": "py-[var(--appkit-space-10)] md:py-[var(--appkit-space-12)] lg:py-[var(--appkit-space-16)]";
|
|
219
227
|
};
|
|
220
228
|
export type PaddingPresetKey = PaddingKey;
|
|
221
229
|
export type XPaddingKey = "none" | "x-xs" | "x-sm" | "x-md" | "x-5" | "x-lg" | "x-xl" | "x-sm-md" | "x-sm-lg-md" | "x-md-lg" | "x-md-xl" | "x-md-2xl" | "x-page" | "l-xl";
|
|
@@ -37,69 +37,75 @@ export const SURFACE_MAP = {
|
|
|
37
37
|
/** Near-black placeholder behind a media thumbnail (e.g. YouTube card) — deliberately not theme-tinted. */
|
|
38
38
|
"media-dark": "bg-zinc-900",
|
|
39
39
|
};
|
|
40
|
-
/**
|
|
41
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Every className below is spelled out as a complete string literal — Tailwind's
|
|
42
|
+
* content scanner reads this source file as plain text (it does not evaluate
|
|
43
|
+
* JS), so building a class name via template-literal interpolation of the
|
|
44
|
+
* space step leaves an unresolved placeholder that the scanner cannot turn
|
|
45
|
+
* into a generatable candidate. See the same fix in Typography.tsx
|
|
46
|
+
* (RESPONSIVE_TEXT_SIZE_CLASS) for the identical issue with text sizes.
|
|
47
|
+
*/
|
|
42
48
|
export const PADDING_MAP = {
|
|
43
49
|
none: "",
|
|
44
|
-
"2xs":
|
|
45
|
-
xs:
|
|
46
|
-
sm:
|
|
47
|
-
md:
|
|
48
|
-
"5":
|
|
49
|
-
lg:
|
|
50
|
-
xl:
|
|
51
|
-
"3xl":
|
|
52
|
-
card:
|
|
53
|
-
"card-tight":
|
|
54
|
-
section:
|
|
55
|
-
sectionSm:
|
|
56
|
-
page:
|
|
57
|
-
hero:
|
|
58
|
-
toolbar:
|
|
59
|
-
inline:
|
|
60
|
-
inlineSm:
|
|
61
|
-
inlineLg:
|
|
50
|
+
"2xs": "p-[var(--appkit-space-1)]",
|
|
51
|
+
xs: "p-[var(--appkit-space-2)]",
|
|
52
|
+
sm: "p-[var(--appkit-space-3)]",
|
|
53
|
+
md: "p-[var(--appkit-space-4)]",
|
|
54
|
+
"5": "p-[var(--appkit-space-5)]",
|
|
55
|
+
lg: "p-[var(--appkit-space-6)]",
|
|
56
|
+
xl: "p-[var(--appkit-space-8)]",
|
|
57
|
+
"3xl": "p-[var(--appkit-space-12)]",
|
|
58
|
+
card: "p-[var(--appkit-space-5)] sm:p-[var(--appkit-space-6)] lg:p-[var(--appkit-space-8)]",
|
|
59
|
+
"card-tight": "p-[var(--appkit-space-3)] sm:p-[var(--appkit-space-4)]",
|
|
60
|
+
section: "py-[var(--appkit-space-10)] sm:py-[var(--appkit-space-14)] xl:py-[var(--appkit-space-20)]",
|
|
61
|
+
sectionSm: "py-[var(--appkit-space-6)] sm:py-[var(--appkit-space-10)]",
|
|
62
|
+
page: "py-[var(--appkit-space-6)] sm:py-[var(--appkit-space-8)] lg:py-[var(--appkit-space-10)]",
|
|
63
|
+
hero: "py-[var(--appkit-space-12)] sm:py-[var(--appkit-space-16)] lg:py-[var(--appkit-space-24)]",
|
|
64
|
+
toolbar: "px-[var(--appkit-space-3)] py-[var(--appkit-space-1-5)]",
|
|
65
|
+
inline: "px-[var(--appkit-space-4)] py-[var(--appkit-space-3)]",
|
|
66
|
+
inlineSm: "px-[var(--appkit-space-3)] py-[var(--appkit-space-2)]",
|
|
67
|
+
inlineLg: "px-[var(--appkit-space-6)] py-[var(--appkit-space-4)]",
|
|
62
68
|
/** Tiny pill chip — `px-1.5 py-0.5`. Used by Bundle/PrizeDraw badge labels. */
|
|
63
|
-
"chip-2xs":
|
|
69
|
+
"chip-2xs": "px-[var(--appkit-space-1-5)] py-[var(--appkit-space-0-5)]",
|
|
64
70
|
// Vertical-only presets — the variant-catalogue codemod migrates raw
|
|
65
71
|
// `py-N` / `py-N md:py-M` className tokens into these names.
|
|
66
|
-
"y-2xs":
|
|
67
|
-
"y-xs":
|
|
68
|
-
"y-sm":
|
|
69
|
-
"y-md":
|
|
70
|
-
"y-lg":
|
|
71
|
-
"y-xl":
|
|
72
|
-
"y-2xl":
|
|
73
|
-
"y-3xl":
|
|
74
|
-
"y-4xl":
|
|
72
|
+
"y-2xs": "py-[var(--appkit-space-1)]",
|
|
73
|
+
"y-xs": "py-[var(--appkit-space-2)]",
|
|
74
|
+
"y-sm": "py-[var(--appkit-space-3)]",
|
|
75
|
+
"y-md": "py-[var(--appkit-space-4)]",
|
|
76
|
+
"y-lg": "py-[var(--appkit-space-6)]",
|
|
77
|
+
"y-xl": "py-[var(--appkit-space-8)]",
|
|
78
|
+
"y-2xl": "py-[var(--appkit-space-10)]",
|
|
79
|
+
"y-3xl": "py-[var(--appkit-space-12)]",
|
|
80
|
+
"y-4xl": "py-[var(--appkit-space-16)]",
|
|
75
81
|
// Horizontal-only presets.
|
|
76
|
-
"x-xs":
|
|
77
|
-
"x-sm":
|
|
78
|
-
"x-md":
|
|
79
|
-
"x-lg":
|
|
80
|
-
"x-xl":
|
|
82
|
+
"x-xs": "px-[var(--appkit-space-2)]",
|
|
83
|
+
"x-sm": "px-[var(--appkit-space-3)]",
|
|
84
|
+
"x-md": "px-[var(--appkit-space-4)]",
|
|
85
|
+
"x-lg": "px-[var(--appkit-space-6)]",
|
|
86
|
+
"x-xl": "px-[var(--appkit-space-8)]",
|
|
81
87
|
// Top-only and bottom-only side presets.
|
|
82
|
-
"t-2xs":
|
|
83
|
-
"b-2xs":
|
|
84
|
-
"t-xs":
|
|
85
|
-
"t-sm":
|
|
86
|
-
"t-md":
|
|
87
|
-
"t-lg":
|
|
88
|
-
"t-xl":
|
|
89
|
-
"b-xs":
|
|
90
|
-
"b-sm":
|
|
91
|
-
"b-md":
|
|
92
|
-
"b-lg":
|
|
93
|
-
"b-xl":
|
|
94
|
-
"b-2xl":
|
|
88
|
+
"t-2xs": "pt-[var(--appkit-space-1)]",
|
|
89
|
+
"b-2xs": "pb-[var(--appkit-space-1)]",
|
|
90
|
+
"t-xs": "pt-[var(--appkit-space-2)]",
|
|
91
|
+
"t-sm": "pt-[var(--appkit-space-3)]",
|
|
92
|
+
"t-md": "pt-[var(--appkit-space-4)]",
|
|
93
|
+
"t-lg": "pt-[var(--appkit-space-6)]",
|
|
94
|
+
"t-xl": "pt-[var(--appkit-space-8)]",
|
|
95
|
+
"b-xs": "pb-[var(--appkit-space-2)]",
|
|
96
|
+
"b-sm": "pb-[var(--appkit-space-3)]",
|
|
97
|
+
"b-md": "pb-[var(--appkit-space-4)]",
|
|
98
|
+
"b-lg": "pb-[var(--appkit-space-6)]",
|
|
99
|
+
"b-xl": "pb-[var(--appkit-space-8)]",
|
|
100
|
+
"b-2xl": "pb-[var(--appkit-space-10)]",
|
|
95
101
|
// Fill-in vertical sizes.
|
|
96
|
-
"y-2-5xl":
|
|
97
|
-
"y-5xl":
|
|
98
|
-
"y-6xl":
|
|
102
|
+
"y-2-5xl": "py-[var(--appkit-space-14)]",
|
|
103
|
+
"y-5xl": "py-[var(--appkit-space-20)]",
|
|
104
|
+
"y-6xl": "py-[var(--appkit-space-24)]",
|
|
99
105
|
// Responsive banner preset — used by accent-banner Sections.
|
|
100
|
-
banner:
|
|
106
|
+
banner: "py-[var(--appkit-space-14)] md:py-[var(--appkit-space-16)] lg:py-[var(--appkit-space-20)]",
|
|
101
107
|
// Responsive content preset — about-views inner container padding.
|
|
102
|
-
"content-banner":
|
|
108
|
+
"content-banner": "py-[var(--appkit-space-10)] md:py-[var(--appkit-space-12)] lg:py-[var(--appkit-space-16)]",
|
|
103
109
|
};
|
|
104
110
|
export const ROUNDED_MAP = {
|
|
105
111
|
none: "",
|
|
@@ -175,17 +181,17 @@ export const SHADOW_MAP = {
|
|
|
175
181
|
export const GAP_PRESETS = {
|
|
176
182
|
none: "gap-0",
|
|
177
183
|
px: "gap-px",
|
|
178
|
-
xs:
|
|
179
|
-
sm:
|
|
180
|
-
dense:
|
|
181
|
-
md:
|
|
182
|
-
comfortable:
|
|
183
|
-
lg:
|
|
184
|
-
loose:
|
|
185
|
-
xl:
|
|
186
|
-
"2xl":
|
|
187
|
-
section:
|
|
188
|
-
hero:
|
|
184
|
+
xs: "gap-[var(--appkit-space-1)]",
|
|
185
|
+
sm: "gap-[var(--appkit-space-2)]",
|
|
186
|
+
dense: "gap-[var(--appkit-space-2)]",
|
|
187
|
+
md: "gap-[var(--appkit-space-3)]",
|
|
188
|
+
comfortable: "gap-[var(--appkit-space-3)]",
|
|
189
|
+
lg: "gap-[var(--appkit-space-4)]",
|
|
190
|
+
loose: "gap-[var(--appkit-space-4)]",
|
|
191
|
+
xl: "gap-[var(--appkit-space-5)]",
|
|
192
|
+
"2xl": "gap-[var(--appkit-space-6)]",
|
|
193
|
+
section: "gap-[var(--appkit-space-6)] sm:gap-[var(--appkit-space-8)]",
|
|
194
|
+
hero: "gap-[var(--appkit-space-10)] sm:gap-[var(--appkit-space-12)]",
|
|
189
195
|
};
|
|
190
196
|
/**
|
|
191
197
|
* Named padding presets consumed by `<Container>` / `<Section>` / `<Card>` /
|
|
@@ -196,60 +202,60 @@ export const GAP_PRESETS = {
|
|
|
196
202
|
export const PADDING_PRESETS = PADDING_MAP;
|
|
197
203
|
export const X_ONLY_MAP = {
|
|
198
204
|
none: "",
|
|
199
|
-
"x-xs":
|
|
200
|
-
"x-sm":
|
|
201
|
-
"x-md":
|
|
202
|
-
"x-5":
|
|
203
|
-
"x-lg":
|
|
204
|
-
"x-xl":
|
|
205
|
+
"x-xs": "px-[var(--appkit-space-2)]",
|
|
206
|
+
"x-sm": "px-[var(--appkit-space-3)]",
|
|
207
|
+
"x-md": "px-[var(--appkit-space-4)]",
|
|
208
|
+
"x-5": "px-[var(--appkit-space-5)]",
|
|
209
|
+
"x-lg": "px-[var(--appkit-space-6)]",
|
|
210
|
+
"x-xl": "px-[var(--appkit-space-8)]",
|
|
205
211
|
/** Responsive: `px-3 sm:px-4` — the canonical mobile-tight container. */
|
|
206
|
-
"x-sm-md":
|
|
212
|
+
"x-sm-md": "px-[var(--appkit-space-3)] sm:px-[var(--appkit-space-4)]",
|
|
207
213
|
/** Responsive: `px-3 lg:px-4` — the canonical mobile-tight wide container. */
|
|
208
|
-
"x-sm-lg-md":
|
|
214
|
+
"x-sm-lg-md": "px-[var(--appkit-space-3)] lg:px-[var(--appkit-space-4)]",
|
|
209
215
|
/** Responsive: `px-4 sm:px-6` — narrow container horizontal padding. */
|
|
210
|
-
"x-md-lg":
|
|
216
|
+
"x-md-lg": "px-[var(--appkit-space-4)] sm:px-[var(--appkit-space-6)]",
|
|
211
217
|
/** Responsive: `px-6 md:px-10` — guide hub / store-extension container padding. */
|
|
212
|
-
"x-md-xl":
|
|
218
|
+
"x-md-xl": "px-[var(--appkit-space-6)] md:px-[var(--appkit-space-10)]",
|
|
213
219
|
/** Responsive: `px-4 sm:px-8` — section header container padding. */
|
|
214
|
-
"x-md-2xl":
|
|
220
|
+
"x-md-2xl": "px-[var(--appkit-space-4)] sm:px-[var(--appkit-space-8)]",
|
|
215
221
|
/** Responsive: `px-4 sm:px-6 lg:px-8` — canonical page-container horizontal padding. */
|
|
216
|
-
"x-page":
|
|
222
|
+
"x-page": "px-[var(--appkit-space-4)] sm:px-[var(--appkit-space-6)] lg:px-[var(--appkit-space-8)]",
|
|
217
223
|
// Asymmetric left one-sided value (for sites that pad just one edge, e.g. a
|
|
218
224
|
// selection-checkbox gutter).
|
|
219
225
|
/** Asymmetric: `pl-8` — reserves a left gutter (e.g. for an overlaid selection checkbox). */
|
|
220
|
-
"l-xl":
|
|
226
|
+
"l-xl": "pl-[var(--appkit-space-8)]",
|
|
221
227
|
};
|
|
222
228
|
const Y_ONLY_MAP = {
|
|
223
229
|
none: "",
|
|
224
|
-
"y-2xs":
|
|
225
|
-
"y-2xs-tall":
|
|
226
|
-
"y-xs":
|
|
227
|
-
"y-xs-tall":
|
|
228
|
-
"y-sm":
|
|
229
|
-
"y-sm-tall":
|
|
230
|
-
"y-md":
|
|
231
|
-
"y-md-lg":
|
|
232
|
-
"y-lg":
|
|
233
|
-
"y-xl":
|
|
234
|
-
"y-2xl":
|
|
235
|
-
"y-3xl":
|
|
236
|
-
"y-2-5xl":
|
|
237
|
-
"y-4xl":
|
|
238
|
-
"y-5xl":
|
|
239
|
-
"y-6xl":
|
|
230
|
+
"y-2xs": "py-[var(--appkit-space-1)]",
|
|
231
|
+
"y-2xs-tall": "py-[var(--appkit-space-1-5)]",
|
|
232
|
+
"y-xs": "py-[var(--appkit-space-2)]",
|
|
233
|
+
"y-xs-tall": "py-[var(--appkit-space-2-5)]",
|
|
234
|
+
"y-sm": "py-[var(--appkit-space-3)]",
|
|
235
|
+
"y-sm-tall": "py-[var(--appkit-space-3-5)]",
|
|
236
|
+
"y-md": "py-[var(--appkit-space-4)]",
|
|
237
|
+
"y-md-lg": "py-[var(--appkit-space-5)]",
|
|
238
|
+
"y-lg": "py-[var(--appkit-space-6)]",
|
|
239
|
+
"y-xl": "py-[var(--appkit-space-8)]",
|
|
240
|
+
"y-2xl": "py-[var(--appkit-space-10)]",
|
|
241
|
+
"y-3xl": "py-[var(--appkit-space-12)]",
|
|
242
|
+
"y-2-5xl": "py-[var(--appkit-space-14)]",
|
|
243
|
+
"y-4xl": "py-[var(--appkit-space-16)]",
|
|
244
|
+
"y-5xl": "py-[var(--appkit-space-20)]",
|
|
245
|
+
"y-6xl": "py-[var(--appkit-space-24)]",
|
|
240
246
|
// Asymmetric top/bottom one-sided values (for sites that pad just one edge).
|
|
241
|
-
"t-2xs":
|
|
242
|
-
"b-2xs":
|
|
243
|
-
"t-xs":
|
|
244
|
-
"b-xs":
|
|
245
|
-
"t-sm":
|
|
246
|
-
"b-sm":
|
|
247
|
-
"t-md":
|
|
248
|
-
"b-md":
|
|
249
|
-
"b-md-lg":
|
|
250
|
-
"b-lg":
|
|
247
|
+
"t-2xs": "pt-[var(--appkit-space-1)]",
|
|
248
|
+
"b-2xs": "pb-[var(--appkit-space-1)]",
|
|
249
|
+
"t-xs": "pt-[var(--appkit-space-2)]",
|
|
250
|
+
"b-xs": "pb-[var(--appkit-space-2)]",
|
|
251
|
+
"t-sm": "pt-[var(--appkit-space-3)]",
|
|
252
|
+
"b-sm": "pb-[var(--appkit-space-3)]",
|
|
253
|
+
"t-md": "pt-[var(--appkit-space-4)]",
|
|
254
|
+
"b-md": "pb-[var(--appkit-space-4)]",
|
|
255
|
+
"b-md-lg": "pb-[var(--appkit-space-5)]",
|
|
256
|
+
"b-lg": "pb-[var(--appkit-space-6)]",
|
|
251
257
|
/** Asymmetric: `pt-4 pb-6` — hotspot control bar with tighter top than bottom. */
|
|
252
|
-
"t-md-b-lg":
|
|
258
|
+
"t-md-b-lg": "pt-[var(--appkit-space-4)] pb-[var(--appkit-space-6)]",
|
|
253
259
|
};
|
|
254
260
|
const OVERFLOW_MAP = {
|
|
255
261
|
auto: "overflow-auto",
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import React, { type ReactNode } from "react";
|
|
2
|
-
import type { ZodType } from "zod";
|
|
3
2
|
import type { FormValues } from "../../schemas/types";
|
|
3
|
+
/**
|
|
4
|
+
* A step descriptor. The step-wizard *rendering* this once drove
|
|
5
|
+
* (`<FormShell steps={…}>`) was deleted 2026-08-09 as dead code — the real
|
|
6
|
+
* wizard chrome is `features/shell/FormShell.tsx` + `StepForm.tsx`. This type
|
|
7
|
+
* survives because `FormShellContextValue.steps` still carries the shape for
|
|
8
|
+
* any context consumer that reads it (FormShellProvider/useFormShellState
|
|
9
|
+
* both populate it as `[]` since neither is step-aware).
|
|
10
|
+
*/
|
|
4
11
|
export interface FormShellStep {
|
|
5
12
|
id: string;
|
|
6
13
|
label: string;
|
|
@@ -24,31 +31,6 @@ export interface FormShellContextValue {
|
|
|
24
31
|
isSubmitting: boolean;
|
|
25
32
|
stepErrorCounts: number[];
|
|
26
33
|
}
|
|
27
|
-
export interface FormShellProps {
|
|
28
|
-
steps: FormShellStep[];
|
|
29
|
-
/** Called on debounced auto-save and "Save Draft" click */
|
|
30
|
-
onSaveDraft?: (values: FormValues) => Promise<{
|
|
31
|
-
id?: string;
|
|
32
|
-
} | void>;
|
|
33
|
-
/** Called on Publish / Save */
|
|
34
|
-
onPublish: (values: FormValues) => Promise<void>;
|
|
35
|
-
/** Current form values — caller owns state */
|
|
36
|
-
values: FormValues;
|
|
37
|
-
/** Zod schema for auto-validation on publish. Errors are mapped to field names. */
|
|
38
|
-
schema?: ZodType;
|
|
39
|
-
/** When true + schema provided, validate on every value change (not just publish). */
|
|
40
|
-
validateOnChange?: boolean;
|
|
41
|
-
/** Whether any values differ from the persisted state */
|
|
42
|
-
isDirty?: boolean;
|
|
43
|
-
draftId?: string;
|
|
44
|
-
autoSaveDelayMs?: number;
|
|
45
|
-
publishLabel?: string;
|
|
46
|
-
saveDraftLabel?: string;
|
|
47
|
-
title?: string;
|
|
48
|
-
className?: string;
|
|
49
|
-
/** If true, show steps as vertical accordion on mobile instead of wizard tabs */
|
|
50
|
-
mobileAccordion?: boolean;
|
|
51
|
-
}
|
|
52
34
|
export declare const FormShellContext: React.Context<FormShellContextValue | null>;
|
|
53
35
|
export declare function useFormShell(): FormShellContextValue;
|
|
54
36
|
export interface UseFormShellStateResult {
|
|
@@ -90,4 +72,3 @@ export interface FormShellProviderProps {
|
|
|
90
72
|
values?: FormValues;
|
|
91
73
|
}
|
|
92
74
|
export declare function FormShellProvider({ children, onSaveDraft, isDirty, autoSaveDelayMs, values, }: FormShellProviderProps): React.JSX.Element;
|
|
93
|
-
export declare function FormShell({ steps, onSaveDraft, onPublish, values, schema, validateOnChange, isDirty, autoSaveDelayMs, publishLabel, saveDraftLabel, title, className, mobileAccordion, }: FormShellProps): React.JSX.Element;
|