@mohasinac/appkit 4.64.1 → 4.66.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.
Files changed (934) hide show
  1. package/dist/.build-stamp.json +3 -3
  2. package/dist/_internal/client/features/digital-code/CodeRevealPanel.js +4 -1
  3. package/dist/_internal/client/features/digital-code/DigitalContentPoolManager.js +5 -1
  4. package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +1 -1
  5. package/dist/_internal/client/features/layout/DashboardLayoutClient.js +3 -1
  6. package/dist/_internal/client/features/lottery/LotteryAdminEditView.js +6 -2
  7. package/dist/_internal/client/features/lottery/LotteryAdminSlotView.js +5 -1
  8. package/dist/_internal/client/features/lottery/LotteryDetailView.js +6 -1
  9. package/dist/_internal/client/features/lottery/LotteryEntriesView.js +6 -1
  10. package/dist/_internal/client/features/lottery/LotteryListView.js +7 -1
  11. package/dist/_internal/client/features/lottery/LotteryPullForm.js +3 -1
  12. package/dist/_internal/client/features/lottery/LotterySlotGrid.js +3 -1
  13. package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.js +6 -1
  14. package/dist/_internal/client/scaffolds/AppShell.js +3 -1
  15. package/dist/_internal/server/features/account/data.js +2 -1
  16. package/dist/_internal/server/features/auctions/service.js +1 -1
  17. package/dist/_internal/server/features/auth/capabilities.js +1 -1
  18. package/dist/_internal/server/features/auth/permissions.js +1 -1
  19. package/dist/_internal/server/features/brands/actions.js +1 -1
  20. package/dist/_internal/server/features/brands/data.js +1 -1
  21. package/dist/_internal/server/features/brands/service.js +1 -1
  22. package/dist/_internal/server/features/bundles/actions.js +1 -1
  23. package/dist/_internal/server/features/bundles/data.js +2 -2
  24. package/dist/_internal/server/features/cart/actions.js +1 -1
  25. package/dist/_internal/server/features/cart/data.js +1 -1
  26. package/dist/_internal/server/features/cart/service.js +1 -1
  27. package/dist/_internal/server/features/categories/data.js +1 -1
  28. package/dist/_internal/server/features/checkout/actions.js +20 -3
  29. package/dist/_internal/server/features/checkout/group-rule-revalidation.js +1 -1
  30. package/dist/_internal/server/features/checkout/locked-lines.js +1 -1
  31. package/dist/_internal/server/features/checkout/upi-resolution.js +2 -1
  32. package/dist/_internal/server/features/grouped/data.js +2 -1
  33. package/dist/_internal/server/features/history/actions.d.ts +1 -1
  34. package/dist/_internal/server/features/history/actions.js +1 -1
  35. package/dist/_internal/server/features/history/data.d.ts +1 -1
  36. package/dist/_internal/server/features/history/data.js +1 -1
  37. package/dist/_internal/server/features/item-requests/data.js +1 -1
  38. package/dist/_internal/server/features/messages/actions.js +1 -1
  39. package/dist/_internal/server/features/payouts/actions.js +1 -1
  40. package/dist/_internal/server/features/pre-orders/actions.js +1 -1
  41. package/dist/_internal/server/features/pre-orders/service.js +1 -1
  42. package/dist/_internal/server/features/prize-draws/actions.js +1 -1
  43. package/dist/_internal/server/features/products/actions.js +1 -1
  44. package/dist/_internal/server/features/products/data.js +1 -1
  45. package/dist/_internal/server/features/products/list-public.js +1 -1
  46. package/dist/_internal/server/features/products/service.js +1 -1
  47. package/dist/_internal/server/features/promotions/actions.js +1 -1
  48. package/dist/_internal/server/features/promotions/adapters.js +9 -0
  49. package/dist/_internal/server/features/promotions/data.d.ts +24 -3
  50. package/dist/_internal/server/features/promotions/data.js +41 -6
  51. package/dist/_internal/server/features/promotions/index.d.ts +1 -1
  52. package/dist/_internal/server/features/promotions/index.js +1 -1
  53. package/dist/_internal/server/features/promotions/service.js +1 -1
  54. package/dist/_internal/server/features/search/index-build/sources.js +27 -12
  55. package/dist/_internal/server/features/seo/sitemap.js +79 -13
  56. package/dist/_internal/server/features/shared/listing-data-factory.js +1 -1
  57. package/dist/_internal/server/features/shipping/courier-block.js +1 -1
  58. package/dist/_internal/server/features/site-settings/adapters.d.ts +1 -1
  59. package/dist/_internal/server/features/site-settings/adapters.js +16 -1
  60. package/dist/_internal/server/features/sticker-trace/promote-to-listings.js +1 -1
  61. package/dist/_internal/server/features/stores/adapters.d.ts +1 -1
  62. package/dist/_internal/server/features/stores/adapters.js +14 -0
  63. package/dist/_internal/server/features/stores/data.js +1 -1
  64. package/dist/_internal/server/features/stores/tabs.d.ts +19 -15
  65. package/dist/_internal/server/features/stores/tabs.js +20 -21
  66. package/dist/_internal/server/features/sublisting-categories/data.js +1 -1
  67. package/dist/_internal/server/features/wishlist/actions.d.ts +1 -1
  68. package/dist/_internal/server/features/wishlist/actions.js +1 -1
  69. package/dist/_internal/server/features/wishlist/data.d.ts +1 -1
  70. package/dist/_internal/server/features/wishlist/data.js +1 -1
  71. package/dist/_internal/server/jobs/core/analyticsAlertEvaluate.js +9 -4
  72. package/dist/_internal/server/jobs/core/autoPayoutEligibility.js +1 -1
  73. package/dist/_internal/server/jobs/core/cartPrune.js +1 -1
  74. package/dist/_internal/server/jobs/core/catalogueImageStalenessReminder.js +1 -1
  75. package/dist/_internal/server/jobs/core/categoryTaxonomyBackfill.js +22 -0
  76. package/dist/_internal/server/jobs/core/cleanupRtdbEvents.js +1 -1
  77. package/dist/_internal/server/jobs/core/countersReconcile.js +0 -1
  78. package/dist/_internal/server/jobs/core/couponExpiry.js +1 -1
  79. package/dist/_internal/server/jobs/core/dailyDataCleanup.js +2 -1
  80. package/dist/_internal/server/jobs/core/draftPrune.js +1 -1
  81. package/dist/_internal/server/jobs/core/hardBanReinstatement.js +1 -1
  82. package/dist/_internal/server/jobs/core/newsletterExport.js +1 -1
  83. package/dist/_internal/server/jobs/core/notificationPrune.js +1 -1
  84. package/dist/_internal/server/jobs/core/onJobCreated.js +1 -1
  85. package/dist/_internal/server/jobs/core/onOrderCreate.js +3 -1
  86. package/dist/_internal/server/jobs/core/onProductWrite.js +2 -1
  87. package/dist/_internal/server/jobs/core/onScamReportCreate.js +2 -1
  88. package/dist/_internal/server/jobs/core/onScamReportRejected.js +1 -1
  89. package/dist/_internal/server/jobs/core/onScamReportVerified.js +1 -1
  90. package/dist/_internal/server/jobs/core/revenueRollup.js +1 -1
  91. package/dist/_internal/server/jobs/core/runJobOnce.js +1 -1
  92. package/dist/_internal/server/jobs/core/sellerStandingRollup.js +1 -1
  93. package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +1 -1
  94. package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.js +2 -2
  95. package/dist/_internal/shared/features/blog/schema.d.ts +12 -12
  96. package/dist/_internal/shared/features/brands/schema.d.ts +19 -19
  97. package/dist/_internal/shared/features/cart/schema.d.ts +17 -17
  98. package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +60 -60
  99. package/dist/_internal/shared/features/events/schema.d.ts +4 -4
  100. package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
  101. package/dist/_internal/shared/features/products/schema.d.ts +2 -2
  102. package/dist/_internal/shared/features/promotions/schema.d.ts +12 -12
  103. package/dist/_internal/shared/features/reviews/schema.d.ts +3 -3
  104. package/dist/_internal/shared/features/site-settings/types.d.ts +10 -2
  105. package/dist/_internal/shared/features/sticker-trace/trace/segment.js +13 -2
  106. package/dist/_internal/shared/listing-types/feature-flags.d.ts +54 -0
  107. package/dist/_internal/shared/listing-types/feature-flags.js +72 -0
  108. package/dist/client.d.ts +225 -117
  109. package/dist/client.js +148 -74
  110. package/dist/constants/field-names.d.ts +1 -0
  111. package/dist/constants/field-names.js +14 -0
  112. package/dist/errors/error-handler.d.ts +1 -1
  113. package/dist/features/about/components/AboutView.js +9 -1
  114. package/dist/features/about/components/DeveloperView.js +8 -2
  115. package/dist/features/about/components/FAQPageView.js +5 -2
  116. package/dist/features/about/components/FeesView.js +4 -1
  117. package/dist/features/about/components/GstExplainerView.js +6 -1
  118. package/dist/features/about/components/GuidesHubView.js +5 -1
  119. package/dist/features/about/components/HelpPageView.js +6 -2
  120. package/dist/features/about/components/HowAuctionsWorkView.js +6 -2
  121. package/dist/features/about/components/HowCheckoutWorksView.js +6 -2
  122. package/dist/features/about/components/HowEmiWorksView.js +7 -2
  123. package/dist/features/about/components/HowOffersWorkView.js +6 -2
  124. package/dist/features/about/components/HowOrdersWorkView.js +6 -2
  125. package/dist/features/about/components/HowPayoutsWorkView.js +6 -2
  126. package/dist/features/about/components/HowPreOrdersWorkView.js +6 -2
  127. package/dist/features/about/components/HowReviewsWorkView.js +6 -2
  128. package/dist/features/about/components/PolicyPageView.js +6 -3
  129. package/dist/features/about/components/ProseHero.js +3 -1
  130. package/dist/features/about/components/PublicProfileView.js +6 -1
  131. package/dist/features/about/components/SecurityPrivacyView.js +6 -2
  132. package/dist/features/about/components/ShippingPolicyView.js +7 -3
  133. package/dist/features/about/components/SpotAFakeView.js +6 -1
  134. package/dist/features/about/components/TrackOrderView.js +5 -2
  135. package/dist/features/about/components/UnauthorizedView.js +5 -2
  136. package/dist/features/about/schemas/index.d.ts +18 -18
  137. package/dist/features/account/api/[userId]/addresses/route.js +1 -5
  138. package/dist/features/account/components/AddressBook.js +4 -1
  139. package/dist/features/account/components/AddressFilters.js +1 -1
  140. package/dist/features/account/components/AddressForm.js +1 -1
  141. package/dist/features/account/components/AddressSelectorCreate.js +2 -1
  142. package/dist/features/account/components/AddressesIndexListing.js +5 -1
  143. package/dist/features/account/components/BecomeSellerView.js +2 -1
  144. package/dist/features/account/components/BuyerAccountGuideView.js +6 -1
  145. package/dist/features/account/components/BuyerAuctionsGuideView.js +5 -1
  146. package/dist/features/account/components/BuyerOrdersGuideView.js +5 -1
  147. package/dist/features/account/components/BuyerShoppingGuideView.js +5 -1
  148. package/dist/features/account/components/LinkedAccountsSection.js +5 -1
  149. package/dist/features/account/components/NotificationBell.js +8 -1
  150. package/dist/features/account/components/NotificationPreferencesPanel.js +6 -1
  151. package/dist/features/account/components/OrderDetailView.d.ts +1 -1
  152. package/dist/features/account/components/OrderDetailView.js +1 -1
  153. package/dist/features/account/components/ProfileView.d.ts +1 -1
  154. package/dist/features/account/components/ProfileView.js +1 -1
  155. package/dist/features/account/components/UserAccountHubView.d.ts +1 -1
  156. package/dist/features/account/components/UserAccountHubView.js +1 -1
  157. package/dist/features/account/components/UserBidsView.js +5 -1
  158. package/dist/features/account/components/UserOffersPanel.js +9 -1
  159. package/dist/features/account/components/UserOrderTrackView.d.ts +1 -1
  160. package/dist/features/account/components/UserOrderTrackView.js +1 -1
  161. package/dist/features/account/components/UserOrdersView.js +6 -1
  162. package/dist/features/account/components/UserReturnsView.js +3 -1
  163. package/dist/features/account/components/UserSidebar.js +8 -1
  164. package/dist/features/account/schemas/index.d.ts +10 -10
  165. package/dist/features/addresses/repository/addresses.repository.js +1 -1
  166. package/dist/features/addresses/schemas/address-form.d.ts +16 -16
  167. package/dist/features/addresses/schemas/index.d.ts +2 -2
  168. package/dist/features/admin/actions/admin-actions.d.ts +3 -3
  169. package/dist/features/admin/actions/admin-coupon-actions.d.ts +1 -1
  170. package/dist/features/admin/actions/admin-read-actions.d.ts +3 -3
  171. package/dist/features/admin/api/bids/route.js +1 -5
  172. package/dist/features/admin/api/coupons/route.js +1 -5
  173. package/dist/features/admin/api/products/route.js +1 -5
  174. package/dist/features/admin/api/reviews/route.js +1 -5
  175. package/dist/features/admin/components/AdminActionIndexView.d.ts +1 -1
  176. package/dist/features/admin/components/AdminActionIndexView.js +7 -1
  177. package/dist/features/admin/components/AdminAdEditorView.d.ts +1 -1
  178. package/dist/features/admin/components/AdminAdEditorView.js +8 -1
  179. package/dist/features/admin/components/AdminAddressBookView.js +8 -1
  180. package/dist/features/admin/components/AdminAddressClustersView.js +7 -1
  181. package/dist/features/admin/components/AdminAddressEditorView.d.ts +1 -1
  182. package/dist/features/admin/components/AdminAddressEditorView.js +4 -1
  183. package/dist/features/admin/components/AdminAddressesView.js +6 -1
  184. package/dist/features/admin/components/AdminAllEventEntriesView.d.ts +1 -1
  185. package/dist/features/admin/components/AdminAllEventEntriesView.js +5 -1
  186. package/dist/features/admin/components/AdminAnalyticsGuideView.js +5 -1
  187. package/dist/features/admin/components/AdminAnalyticsView.js +4 -2
  188. package/dist/features/admin/components/AdminArtView.d.ts +1 -1
  189. package/dist/features/admin/components/AdminArtView.js +1 -1
  190. package/dist/features/admin/components/AdminAuditLogView.d.ts +1 -1
  191. package/dist/features/admin/components/AdminAuditLogView.js +5 -1
  192. package/dist/features/admin/components/AdminBeysView.d.ts +1 -1
  193. package/dist/features/admin/components/AdminBeysView.js +3 -1
  194. package/dist/features/admin/components/AdminBidsView.d.ts +1 -1
  195. package/dist/features/admin/components/AdminBidsView.js +7 -2
  196. package/dist/features/admin/components/AdminBlogEditorView.d.ts +1 -1
  197. package/dist/features/admin/components/AdminBlogEditorView.js +14 -2
  198. package/dist/features/admin/components/AdminBlogView.d.ts +1 -1
  199. package/dist/features/admin/components/AdminBlogView.js +2 -1
  200. package/dist/features/admin/components/AdminBrandEditorView.d.ts +1 -1
  201. package/dist/features/admin/components/AdminBrandEditorView.js +7 -2
  202. package/dist/features/admin/components/AdminBrandsView.d.ts +1 -1
  203. package/dist/features/admin/components/AdminBrandsView.js +4 -2
  204. package/dist/features/admin/components/AdminBundleEditorView.d.ts +1 -1
  205. package/dist/features/admin/components/AdminBundleEditorView.js +3 -1
  206. package/dist/features/admin/components/AdminBundlesView.js +7 -1
  207. package/dist/features/admin/components/AdminCarouselEditorView.d.ts +1 -1
  208. package/dist/features/admin/components/AdminCarouselEditorView.js +12 -3
  209. package/dist/features/admin/components/AdminCarouselGroupEditorView.d.ts +1 -1
  210. package/dist/features/admin/components/AdminCarouselView.d.ts +1 -1
  211. package/dist/features/admin/components/AdminCarouselView.js +16 -2
  212. package/dist/features/admin/components/AdminCartsView.d.ts +1 -1
  213. package/dist/features/admin/components/AdminCartsView.js +3 -1
  214. package/dist/features/admin/components/AdminCatalogGuideView.js +5 -1
  215. package/dist/features/admin/components/AdminCategoriesView.d.ts +1 -1
  216. package/dist/features/admin/components/AdminCategoriesView.js +3 -1
  217. package/dist/features/admin/components/AdminCategoryEditorView.d.ts +1 -1
  218. package/dist/features/admin/components/AdminCategoryEditorView.js +2 -2
  219. package/dist/features/admin/components/AdminClassifiedView.d.ts +1 -1
  220. package/dist/features/admin/components/AdminClassifiedView.js +1 -1
  221. package/dist/features/admin/components/AdminContactView.d.ts +1 -1
  222. package/dist/features/admin/components/AdminContactView.js +5 -1
  223. package/dist/features/admin/components/AdminContentGuideView.js +5 -1
  224. package/dist/features/admin/components/AdminCouponEditorView.d.ts +1 -1
  225. package/dist/features/admin/components/AdminCouponEditorView.js +5 -1
  226. package/dist/features/admin/components/AdminCouponsView.d.ts +1 -1
  227. package/dist/features/admin/components/AdminCouponsView.js +6 -1
  228. package/dist/features/admin/components/AdminDashboardView.d.ts +1 -1
  229. package/dist/features/admin/components/AdminDashboardView.js +2 -2
  230. package/dist/features/admin/components/AdminDigitalCodesView.d.ts +1 -1
  231. package/dist/features/admin/components/AdminDigitalCodesView.js +1 -1
  232. package/dist/features/admin/components/AdminFaqEditorView.d.ts +1 -1
  233. package/dist/features/admin/components/AdminFaqEditorView.js +12 -2
  234. package/dist/features/admin/components/AdminFaqsView.d.ts +1 -1
  235. package/dist/features/admin/components/AdminFaqsView.js +3 -1
  236. package/dist/features/admin/components/AdminFeatureEditorView.d.ts +1 -1
  237. package/dist/features/admin/components/AdminFeatureEditorView.js +6 -2
  238. package/dist/features/admin/components/AdminFeaturesView.d.ts +1 -1
  239. package/dist/features/admin/components/AdminFeaturesView.js +2 -1
  240. package/dist/features/admin/components/AdminFulfillmentView.js +2 -1
  241. package/dist/features/admin/components/AdminGatewayEventsView.d.ts +1 -1
  242. package/dist/features/admin/components/AdminGatewayEventsView.js +8 -1
  243. package/dist/features/admin/components/AdminGroupedListingsView.d.ts +1 -1
  244. package/dist/features/admin/components/AdminGroupedListingsView.js +7 -2
  245. package/dist/features/admin/components/AdminGuideHubView.js +7 -2
  246. package/dist/features/admin/components/AdminHistoryView.d.ts +1 -1
  247. package/dist/features/admin/components/AdminHistoryView.js +1 -1
  248. package/dist/features/admin/components/AdminIntegrationsView.js +6 -1
  249. package/dist/features/admin/components/AdminInvoicingView.js +6 -1
  250. package/dist/features/admin/components/AdminLiveView.d.ts +1 -1
  251. package/dist/features/admin/components/AdminLiveView.js +1 -1
  252. package/dist/features/admin/components/AdminMediaView.d.ts +1 -1
  253. package/dist/features/admin/components/AdminMediaView.js +11 -1
  254. package/dist/features/admin/components/AdminMoneyCasesView.d.ts +1 -1
  255. package/dist/features/admin/components/AdminMoneyCasesView.js +7 -1
  256. package/dist/features/admin/components/AdminNavEditorView.js +3 -1
  257. package/dist/features/admin/components/AdminNavigationView.d.ts +1 -1
  258. package/dist/features/admin/components/AdminNavigationView.js +10 -1
  259. package/dist/features/admin/components/AdminNewsletterView.d.ts +1 -1
  260. package/dist/features/admin/components/AdminNewsletterView.js +7 -1
  261. package/dist/features/admin/components/AdminNotificationsView.d.ts +1 -1
  262. package/dist/features/admin/components/AdminNotificationsView.js +5 -1
  263. package/dist/features/admin/components/AdminOffersView.d.ts +1 -1
  264. package/dist/features/admin/components/AdminOffersView.js +5 -1
  265. package/dist/features/admin/components/AdminOrderEditorView.js +8 -2
  266. package/dist/features/admin/components/AdminOrdersGuideView.js +4 -1
  267. package/dist/features/admin/components/AdminOrdersView.d.ts +1 -1
  268. package/dist/features/admin/components/AdminOrdersView.js +3 -1
  269. package/dist/features/admin/components/AdminPartsView.d.ts +1 -1
  270. package/dist/features/admin/components/AdminPartsView.js +3 -1
  271. package/dist/features/admin/components/AdminPaymentClustersView.js +7 -1
  272. package/dist/features/admin/components/AdminPaymentMethodsView.js +7 -1
  273. package/dist/features/admin/components/AdminPaymentsGuideView.js +4 -1
  274. package/dist/features/admin/components/AdminPayoutsView.d.ts +1 -1
  275. package/dist/features/admin/components/AdminPayoutsView.js +5 -1
  276. package/dist/features/admin/components/AdminPrizeDrawsView.d.ts +1 -1
  277. package/dist/features/admin/components/AdminPrizeDrawsView.js +7 -1
  278. package/dist/features/admin/components/AdminProductEditorView.d.ts +1 -1
  279. package/dist/features/admin/components/AdminProductEditorView.js +5 -2
  280. package/dist/features/admin/components/AdminProductsView.d.ts +1 -1
  281. package/dist/features/admin/components/AdminProductsView.js +5 -2
  282. package/dist/features/admin/components/AdminReturnRequestsView.js +3 -1
  283. package/dist/features/admin/components/AdminReviewsView.d.ts +1 -1
  284. package/dist/features/admin/components/AdminReviewsView.js +8 -1
  285. package/dist/features/admin/components/AdminScammersView.d.ts +1 -1
  286. package/dist/features/admin/components/AdminScammersView.js +5 -1
  287. package/dist/features/admin/components/AdminSectionsView.js +1 -1
  288. package/dist/features/admin/components/AdminSessionsManager.js +1 -1
  289. package/dist/features/admin/components/AdminSessionsView.d.ts +1 -1
  290. package/dist/features/admin/components/AdminSessionsView.js +6 -1
  291. package/dist/features/admin/components/AdminSidebar.js +7 -1
  292. package/dist/features/admin/components/AdminSiteConfigGuideView.js +5 -1
  293. package/dist/features/admin/components/AdminSiteSettingsView.d.ts +1 -1
  294. package/dist/features/admin/components/AdminSiteSettingsView.js +21 -5
  295. package/dist/features/admin/components/AdminSparesView.d.ts +1 -1
  296. package/dist/features/admin/components/AdminSparesView.js +1 -1
  297. package/dist/features/admin/components/AdminStickersView.d.ts +1 -1
  298. package/dist/features/admin/components/AdminStickersView.js +1 -1
  299. package/dist/features/admin/components/AdminStoreAddressesView.js +1 -1
  300. package/dist/features/admin/components/AdminStoreEditorView.js +7 -1
  301. package/dist/features/admin/components/AdminStoresGuideView.js +5 -1
  302. package/dist/features/admin/components/AdminStoresView.d.ts +1 -1
  303. package/dist/features/admin/components/AdminStoresView.js +4 -1
  304. package/dist/features/admin/components/AdminSublistingCategoryEditorView.d.ts +1 -1
  305. package/dist/features/admin/components/AdminSublistingCategoryEditorView.js +8 -3
  306. package/dist/features/admin/components/AdminSupportTicketDetailView.js +12 -1
  307. package/dist/features/admin/components/AdminSupportTicketsView.d.ts +1 -1
  308. package/dist/features/admin/components/AdminSupportTicketsView.js +4 -1
  309. package/dist/features/admin/components/AdminTaxCodeEditorView.d.ts +1 -1
  310. package/dist/features/admin/components/AdminTaxCodeEditorView.js +4 -1
  311. package/dist/features/admin/components/AdminTaxCodesView.d.ts +1 -1
  312. package/dist/features/admin/components/AdminTaxCodesView.js +1 -1
  313. package/dist/features/admin/components/AdminTeamGuideView.js +5 -1
  314. package/dist/features/admin/components/AdminTeamView.d.ts +1 -1
  315. package/dist/features/admin/components/AdminTeamView.js +4 -1
  316. package/dist/features/admin/components/AdminTesterChecklistItemEditorView.d.ts +1 -1
  317. package/dist/features/admin/components/AdminTesterChecklistItemEditorView.js +4 -1
  318. package/dist/features/admin/components/AdminTesterChecklistView.d.ts +1 -1
  319. package/dist/features/admin/components/AdminTesterChecklistView.js +4 -1
  320. package/dist/features/admin/components/AdminTopBar.js +1 -1
  321. package/dist/features/admin/components/AdminTrustGuideView.js +5 -1
  322. package/dist/features/admin/components/AdminUserEditorView.js +12 -1
  323. package/dist/features/admin/components/AdminUsersGuideView.js +5 -1
  324. package/dist/features/admin/components/AdminUsersView.d.ts +1 -1
  325. package/dist/features/admin/components/AdminViewCards.js +4 -1
  326. package/dist/features/admin/components/AdminWishlistsView.d.ts +1 -1
  327. package/dist/features/admin/components/AdminWishlistsView.js +1 -1
  328. package/dist/features/admin/components/DashboardStats.js +3 -1
  329. package/dist/features/admin/components/DataListingView.d.ts +1 -1
  330. package/dist/features/admin/components/DataListingView.js +14 -2
  331. package/dist/features/admin/components/DataTable.js +7 -1
  332. package/dist/features/admin/components/OwnerQuickActions.d.ts +7 -1
  333. package/dist/features/admin/components/OwnerQuickActions.js +3 -2
  334. package/dist/features/admin/components/QuickEditMenu.js +2 -1
  335. package/dist/features/admin/components/ViewAuditLogEntryModal.js +6 -1
  336. package/dist/features/admin/components/ViewNotificationModal.js +6 -1
  337. package/dist/features/admin/components/analytics/AdminAnalyticsCharts.js +2 -1
  338. package/dist/features/admin/components/analytics/AdminStatCard.js +3 -1
  339. package/dist/features/admin/components/analytics/AdminTopProductsTable.js +3 -1
  340. package/dist/features/admin/components/sections/adminSectionsTypes.js +1 -0
  341. package/dist/features/admin/constants/site-settings-tabs.d.ts +1 -1
  342. package/dist/features/admin/hooks/useAdminListing.d.ts +1 -1
  343. package/dist/features/admin/hooks/useOptimisticRowFlag.js +1 -1
  344. package/dist/features/admin/schemas/action-index-form.d.ts +2 -2
  345. package/dist/features/admin/schemas/admin-editor-forms.d.ts +12 -12
  346. package/dist/features/admin/schemas/admin-editor-forms.js +0 -1
  347. package/dist/features/admin/schemas/admin-ops-forms.d.ts +8 -8
  348. package/dist/features/admin/schemas/admin-user-form.d.ts +8 -8
  349. package/dist/features/admin/schemas/firestore.d.ts +52 -0
  350. package/dist/features/admin/schemas/firestore.js +20 -0
  351. package/dist/features/admin/schemas/nav-item-form.d.ts +8 -8
  352. package/dist/features/auctions/actions/bid-actions.js +1 -1
  353. package/dist/features/auctions/api/route.js +1 -8
  354. package/dist/features/auctions/components/AuctionBidsTable.js +6 -1
  355. package/dist/features/auctions/components/AuctionBottomActions.js +1 -1
  356. package/dist/features/auctions/components/AuctionDetailPageView.js +12 -9
  357. package/dist/features/auctions/components/AuctionFilters.js +1 -1
  358. package/dist/features/auctions/components/AuctionLiveStatusBadge.js +1 -1
  359. package/dist/features/auctions/components/AuctionsListView.js +3 -1
  360. package/dist/features/auctions/components/CollapsibleBidHistory.js +4 -1
  361. package/dist/features/auctions/components/LiveBidPrice.js +3 -1
  362. package/dist/features/auctions/components/LiveMinIncrement.js +1 -1
  363. package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +1 -1
  364. package/dist/features/auctions/components/MarketplaceAuctionCard.js +9 -3
  365. package/dist/features/auctions/components/MarketplaceAuctionGrid.d.ts +1 -1
  366. package/dist/features/auctions/components/MarketplaceAuctionGrid.js +3 -1
  367. package/dist/features/auctions/components/PlaceBidFormClient.js +8 -1
  368. package/dist/features/auctions/schemas/index.d.ts +34 -34
  369. package/dist/features/auth/components/ForgotPasswordView.js +6 -1
  370. package/dist/features/auth/components/Guards.js +4 -1
  371. package/dist/features/auth/components/LoginForm.js +7 -1
  372. package/dist/features/auth/components/OAuthLoadingView.js +3 -1
  373. package/dist/features/auth/components/RegisterForm.js +5 -1
  374. package/dist/features/auth/components/ResetPasswordView.js +6 -1
  375. package/dist/features/auth/components/SocialAuthButtons.js +4 -1
  376. package/dist/features/auth/components/VerifyEmailView.js +4 -1
  377. package/dist/features/auth/hooks/useAuth.js +1 -1
  378. package/dist/features/auth/schemas/index.d.ts +2 -2
  379. package/dist/features/before-after/api/route.js +1 -5
  380. package/dist/features/before-after/components/BeforeAfterGallery.js +3 -1
  381. package/dist/features/before-after/components/BeforeAfterSlider.js +3 -1
  382. package/dist/features/before-after/schemas/index.d.ts +4 -4
  383. package/dist/features/beys/components/BeyDetailPageView.js +7 -1
  384. package/dist/features/blog/actions/blog-actions.d.ts +39 -39
  385. package/dist/features/blog/api/route.js +1 -8
  386. package/dist/features/blog/components/BlogFeaturedCard.js +6 -1
  387. package/dist/features/blog/components/BlogFilters.js +1 -1
  388. package/dist/features/blog/components/BlogIndexListing.js +7 -1
  389. package/dist/features/blog/components/BlogIndexPageView.d.ts +2 -3
  390. package/dist/features/blog/components/BlogIndexPageView.js +9 -10
  391. package/dist/features/blog/components/BlogListView.js +6 -1
  392. package/dist/features/blog/components/BlogPostForm.js +9 -2
  393. package/dist/features/blog/components/BlogPostView.js +5 -1
  394. package/dist/features/blog/schemas/blog-form.d.ts +10 -10
  395. package/dist/features/blog/schemas/index.d.ts +80 -80
  396. package/dist/features/cart/actions/cart-actions.js +1 -1
  397. package/dist/features/cart/api/route.js +1 -5
  398. package/dist/features/cart/components/CartDrawer.js +6 -1
  399. package/dist/features/cart/components/CartGroupLineRow.js +5 -1
  400. package/dist/features/cart/components/CartPriceBreakdown.js +4 -1
  401. package/dist/features/cart/components/CartSummary.js +2 -1
  402. package/dist/features/cart/components/CartView.js +3 -1
  403. package/dist/features/cart/components/CheckoutAddressStep.js +3 -1
  404. package/dist/features/cart/components/CheckoutSuccessView.d.ts +1 -1
  405. package/dist/features/cart/components/CheckoutSuccessView.js +1 -1
  406. package/dist/features/cart/components/CheckoutView.js +3 -1
  407. package/dist/features/cart/components/PointsTenderPicker.js +3 -1
  408. package/dist/features/cart/components/ShippingPicker.js +4 -1
  409. package/dist/features/cart/components/StoreAddonsPicker.js +3 -1
  410. package/dist/features/cart/schemas/index.d.ts +30 -30
  411. package/dist/features/cart/utils/guest-cart.js +1 -5
  412. package/dist/features/catalogue/actions/approve-catalogue-listing.js +1 -1
  413. package/dist/features/catalogue/actions/list-from-catalogue.js +2 -1
  414. package/dist/features/catalogue/actions/submit-for-approval.js +1 -1
  415. package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +6 -1
  416. package/dist/features/catalogue/components/CatalogueItemEditorView.js +1 -1
  417. package/dist/features/catalogue/components/PublicCatalogueItemDetailView.js +6 -1
  418. package/dist/features/catalogue/components/PublicCatalogueView.js +5 -1
  419. package/dist/features/catalogue/components/UserCatalogueView.js +7 -1
  420. package/dist/features/catalogue/repository/catalogue.repository.js +1 -1
  421. package/dist/features/catalogue/schemas/validation.d.ts +12 -12
  422. package/dist/features/catalogue/utils/product-from-item.js +1 -1
  423. package/dist/features/categories/api/route.js +5 -23
  424. package/dist/features/categories/components/BrandDetailPageView.js +6 -2
  425. package/dist/features/categories/components/BrandDetailTabs.js +2 -1
  426. package/dist/features/categories/components/BreadcrumbTrail.js +4 -2
  427. package/dist/features/categories/components/BundleBuyNowCta.js +5 -2
  428. package/dist/features/categories/components/BundleCollage.js +5 -1
  429. package/dist/features/categories/components/BundleDetailView.js +6 -1
  430. package/dist/features/categories/components/BundleDynamicRuleEditor.js +6 -1
  431. package/dist/features/categories/components/BundleItemsPicker.js +7 -1
  432. package/dist/features/categories/components/BundlesListView.d.ts +2 -3
  433. package/dist/features/categories/components/BundlesListView.js +6 -7
  434. package/dist/features/categories/components/CategoriesIndexListing.js +55 -6
  435. package/dist/features/categories/components/CategoriesIndexPageView.d.ts +2 -3
  436. package/dist/features/categories/components/CategoriesIndexPageView.js +3 -33
  437. package/dist/features/categories/components/CategoryBundlesListing.js +8 -2
  438. package/dist/features/categories/components/CategoryDetailPageView.js +7 -2
  439. package/dist/features/categories/components/CategoryDetailTabs.js +2 -1
  440. package/dist/features/categories/components/CategoryFilters.js +1 -1
  441. package/dist/features/categories/components/CategoryForm.js +3 -1
  442. package/dist/features/categories/components/CategoryGrid.js +3 -1
  443. package/dist/features/categories/components/CategoryHighlightsAndFaqSection.js +3 -1
  444. package/dist/features/categories/components/CategoryProductsListing.js +8 -1
  445. package/dist/features/categories/components/CategorySelectorCreate.js +6 -1
  446. package/dist/features/categories/components/CategorySortSelect.js +4 -1
  447. package/dist/features/categories/components/CategoryStoresListing.js +2 -1
  448. package/dist/features/categories/components/CategoryTableColumns.js +6 -2
  449. package/dist/features/categories/components/CategoryTemplatePicker.js +4 -1
  450. package/dist/features/categories/components/CategoryTree.js +2 -1
  451. package/dist/features/categories/components/ConcernCard.js +3 -1
  452. package/dist/features/categories/components/ConcernGrid.js +1 -1
  453. package/dist/features/categories/components/PriceGuidanceHint.js +3 -1
  454. package/dist/features/categories/components/SubcategoryCardRow.js +4 -1
  455. package/dist/features/categories/constants/category-tabs.d.ts +1 -1
  456. package/dist/features/categories/constants/category-tabs.js +7 -0
  457. package/dist/features/categories/hooks/useCategories.d.ts +6 -0
  458. package/dist/features/categories/hooks/useCategories.js +73 -2
  459. package/dist/features/categories/schemas/bundle-form.d.ts +22 -22
  460. package/dist/features/categories/schemas/index.d.ts +100 -100
  461. package/dist/features/categories/types/index.d.ts +1 -1
  462. package/dist/features/checkout/components/CheckoutStepper.js +3 -1
  463. package/dist/features/classified/components/ClassifiedDetailPageView.js +9 -9
  464. package/dist/features/classified/components/ClassifiedFilters.js +3 -1
  465. package/dist/features/collections/api/route.js +1 -5
  466. package/dist/features/collections/components/CollectionCard.js +4 -1
  467. package/dist/features/collections/schemas/index.d.ts +9 -9
  468. package/dist/features/consultation/api/route.js +1 -5
  469. package/dist/features/consultation/components/ConsultationForm.js +3 -1
  470. package/dist/features/consultation/schemas/index.d.ts +8 -8
  471. package/dist/features/contact/components/ContactForm.js +5 -2
  472. package/dist/features/contact/components/ContactInfoSidebar.js +4 -1
  473. package/dist/features/contact/components/ContactPageView.js +6 -1
  474. package/dist/features/contact/email.js +2 -5
  475. package/dist/features/corporate/api/route.js +1 -5
  476. package/dist/features/corporate/components/CorporateInquiryForm.js +3 -1
  477. package/dist/features/dashboard/components/DashboardHubView.js +7 -1
  478. package/dist/features/digital-codes/components/DigitalCodeDetailPageView.js +8 -8
  479. package/dist/features/digital-codes/components/DigitalCodeFilters.js +1 -1
  480. package/dist/features/dispute-reasons/components/AdminDisputeReasonsView.js +4 -1
  481. package/dist/features/events/components/AdminEventEditorView.d.ts +1 -1
  482. package/dist/features/events/components/AdminEventEditorView.js +14 -3
  483. package/dist/features/events/components/AdminEventEntriesView.js +10 -2
  484. package/dist/features/events/components/AdminEventsView.d.ts +1 -1
  485. package/dist/features/events/components/AdminEventsView.js +2 -1
  486. package/dist/features/events/components/EventBanner.js +3 -1
  487. package/dist/features/events/components/EventCard.js +7 -1
  488. package/dist/features/events/components/EventDetailView.d.ts +1 -1
  489. package/dist/features/events/components/EventDetailView.js +1 -1
  490. package/dist/features/events/components/EventFilters.js +1 -1
  491. package/dist/features/events/components/EventFormDrawer.js +1 -1
  492. package/dist/features/events/components/EventInsights.js +3 -1
  493. package/dist/features/events/components/EventLeaderboard.js +3 -1
  494. package/dist/features/events/components/EventLikeButton.js +4 -1
  495. package/dist/features/events/components/EventLikersRail.js +5 -1
  496. package/dist/features/events/components/EventOfferCard.js +3 -1
  497. package/dist/features/events/components/EventParticipateView.js +1 -1
  498. package/dist/features/events/components/EventPollWidget.js +8 -1
  499. package/dist/features/events/components/EventRaffleEntryForm.js +3 -1
  500. package/dist/features/events/components/EventRaffleWinnerView.js +6 -1
  501. package/dist/features/events/components/EventRafflesSection.js +3 -1
  502. package/dist/features/events/components/EventSaleBanner.js +4 -1
  503. package/dist/features/events/components/EventStatusBadge.js +1 -1
  504. package/dist/features/events/components/EventTypeBadge.js +1 -1
  505. package/dist/features/events/components/EventsIndexListing.js +7 -1
  506. package/dist/features/events/components/EventsListPageView.d.ts +2 -3
  507. package/dist/features/events/components/EventsListPageView.js +11 -12
  508. package/dist/features/events/components/EventsListView.js +4 -1
  509. package/dist/features/events/components/RelatedEventsCarousel.js +3 -1
  510. package/dist/features/events/components/SpinWheel.js +1 -1
  511. package/dist/features/events/components/SpinWheelView.js +7 -1
  512. package/dist/features/events/schemas/event-form.d.ts +5 -0
  513. package/dist/features/events/schemas/event-form.js +17 -0
  514. package/dist/features/events/schemas/firestore.d.ts +49 -1
  515. package/dist/features/events/schemas/index.d.ts +184 -184
  516. package/dist/features/events/utils/carousel-slide.d.ts +0 -9
  517. package/dist/features/events/utils/carousel-slide.js +38 -1
  518. package/dist/features/faq/actions/faq-actions.d.ts +12 -12
  519. package/dist/features/faq/components/ContactCTA.js +5 -1
  520. package/dist/features/faq/components/FAQAccordion.js +6 -1
  521. package/dist/features/faq/components/FAQCategorySidebar.js +5 -1
  522. package/dist/features/faq/components/FAQHelpfulButtons.js +3 -1
  523. package/dist/features/faq/components/FAQPageContent.js +8 -1
  524. package/dist/features/faq/components/FAQSearchableList.js +2 -1
  525. package/dist/features/faq/components/FAQSortDropdown.js +4 -1
  526. package/dist/features/faq/components/RelatedFAQs.js +4 -1
  527. package/dist/features/faq/constants/help-guides.d.ts +8 -5
  528. package/dist/features/faq/constants/help-guides.js +9 -5
  529. package/dist/features/faq/schemas/index.d.ts +14 -14
  530. package/dist/features/filters/AsyncFacetSection.js +8 -3
  531. package/dist/features/filters/FilterFacetSection.js +11 -6
  532. package/dist/features/filters/FilterPanel.js +1 -1
  533. package/dist/features/filters/RangeFilter.js +8 -3
  534. package/dist/features/filters/SwitchFilter.js +7 -3
  535. package/dist/features/filters/filterUtils.d.ts +0 -2
  536. package/dist/features/filters/filterUtils.js +0 -4
  537. package/dist/features/filters/index.d.ts +1 -1
  538. package/dist/features/filters/index.js +1 -1
  539. package/dist/features/forms/Checkbox.js +7 -4
  540. package/dist/features/forms/Input.js +7 -5
  541. package/dist/features/forms/Radio.js +9 -6
  542. package/dist/features/forms/Select.js +5 -3
  543. package/dist/features/forms/Slider.js +6 -3
  544. package/dist/features/forms/Textarea.js +6 -3
  545. package/dist/features/forms/Toggle.js +6 -4
  546. package/dist/features/forms/index.d.ts +1 -1
  547. package/dist/features/forms/index.js +1 -1
  548. package/dist/features/forms/utils.d.ts +0 -2
  549. package/dist/features/forms/utils.js +0 -4
  550. package/dist/features/gateway-events/schemas/index.d.ts +10 -10
  551. package/dist/features/grouped/components/GroupedListingDetailView.js +4 -1
  552. package/dist/features/grouped/components/GroupedListingEditorView.js +5 -2
  553. package/dist/features/grouped/components/GroupedListingsCarousel.js +1 -1
  554. package/dist/features/grouped/schemas/grouped-listing-form.d.ts +8 -8
  555. package/dist/features/grouped/schemas/index.d.ts +8 -8
  556. package/dist/features/history/hooks/useHistory.js +1 -1
  557. package/dist/features/history/utils/guest-history.js +1 -5
  558. package/dist/features/homepage/actions/homepage-section-actions.d.ts +4 -4
  559. package/dist/features/homepage/components/AdSlot.js +3 -1
  560. package/dist/features/homepage/components/BrandsSection.js +6 -1
  561. package/dist/features/homepage/components/CTABannerSection.js +6 -1
  562. package/dist/features/homepage/components/CharacterHotspot.js +5 -1
  563. package/dist/features/homepage/components/CharacterHotspotForm.js +8 -1
  564. package/dist/features/homepage/components/CollectionCardsSection.js +4 -1
  565. package/dist/features/homepage/components/CustomCardsSection.js +13 -2
  566. package/dist/features/homepage/components/CustomerReviewsSection.js +5 -1
  567. package/dist/features/homepage/components/FAQSection.js +8 -1
  568. package/dist/features/homepage/components/FeaturedBundlesSection.d.ts +6 -1
  569. package/dist/features/homepage/components/FeaturedBundlesSection.js +4 -2
  570. package/dist/features/homepage/components/GoogleReviewsSection.js +6 -1
  571. package/dist/features/homepage/components/HeroCarousel.js +6 -1
  572. package/dist/features/homepage/components/HomepageCouponsSection.d.ts +25 -0
  573. package/dist/features/homepage/components/HomepageCouponsSection.js +42 -0
  574. package/dist/features/homepage/components/HowItWorksSection.d.ts +1 -1
  575. package/dist/features/homepage/components/HowItWorksSection.js +7 -1
  576. package/dist/features/homepage/components/MarketplaceHomepageView.js +52 -4
  577. package/dist/features/homepage/components/NewsletterSection.js +4 -1
  578. package/dist/features/homepage/components/PromoGrid.js +4 -1
  579. package/dist/features/homepage/components/SectionCarousel.d.ts +1 -1
  580. package/dist/features/homepage/components/SectionCarousel.js +6 -1
  581. package/dist/features/homepage/components/SecurityHighlightsSection.js +6 -1
  582. package/dist/features/homepage/components/ShopByCategorySection.js +7 -1
  583. package/dist/features/homepage/components/SocialFeedSection.js +6 -1
  584. package/dist/features/homepage/components/SocialPostCard.js +4 -1
  585. package/dist/features/homepage/components/StatsCounterSection.js +5 -1
  586. package/dist/features/homepage/components/TestimonialsCarousel.js +4 -1
  587. package/dist/features/homepage/components/TrustFeaturesSection.js +5 -1
  588. package/dist/features/homepage/components/WelcomeSection.js +10 -1
  589. package/dist/features/homepage/components/WhatsAppCommunitySection.js +8 -1
  590. package/dist/features/homepage/lib/section-renderer.d.ts +2 -0
  591. package/dist/features/homepage/lib/section-renderer.js +8 -0
  592. package/dist/features/homepage/schemas/firestore.d.ts +23 -2
  593. package/dist/features/homepage/schemas/firestore.js +2 -0
  594. package/dist/features/homepage/schemas/index.d.ts +133 -133
  595. package/dist/features/inventory/components/ReceiveStationView.js +9 -1
  596. package/dist/features/jobs/actions/enqueue-job.js +1 -1
  597. package/dist/features/layout/AppLayoutShell.d.ts +23 -1
  598. package/dist/features/layout/AppLayoutShell.js +13 -12
  599. package/dist/features/layout/AutoBreadcrumbs.js +3 -1
  600. package/dist/features/layout/BackToTop.js +2 -1
  601. package/dist/features/layout/BottomActions.js +5 -1
  602. package/dist/features/layout/BottomActionsContext.d.ts +1 -1
  603. package/dist/features/layout/BottomChrome.js +1 -1
  604. package/dist/features/layout/BottomNavItem.d.ts +9 -1
  605. package/dist/features/layout/BottomNavItem.js +20 -5
  606. package/dist/features/layout/BottomNavLayout.js +1 -1
  607. package/dist/features/layout/BottomSheet.js +4 -1
  608. package/dist/features/layout/Breadcrumbs.js +2 -1
  609. package/dist/features/layout/FooterLayout.js +5 -1
  610. package/dist/features/layout/LocaleSwitcher.js +1 -1
  611. package/dist/features/layout/NavItem.js +2 -1
  612. package/dist/features/layout/NavbarLayout.js +5 -1
  613. package/dist/features/layout/PageTabs.js +1 -1
  614. package/dist/features/layout/SideActionDock.js +7 -1
  615. package/dist/features/layout/SidebarLayout.d.ts +1 -1
  616. package/dist/features/layout/SidebarLayout.js +2 -1
  617. package/dist/features/layout/TitleBarLayout.js +9 -1
  618. package/dist/features/layout/index.d.ts +1 -1
  619. package/dist/features/live/components/LiveItemDetailPageView.js +8 -8
  620. package/dist/features/live/components/LiveItemFilters.js +3 -1
  621. package/dist/features/lottery/schemas/config-write.d.ts +10 -10
  622. package/dist/features/lottery/schemas/zod.d.ts +6 -6
  623. package/dist/features/media/MediaLightbox.js +3 -5
  624. package/dist/features/media/modals/ImageCropModal.js +6 -1
  625. package/dist/features/media/modals/ImageEditor.js +6 -1
  626. package/dist/features/media/modals/VideoTrimModal.js +6 -1
  627. package/dist/features/media/types/index.d.ts +4 -4
  628. package/dist/features/media/upload/MediaUploadList.js +7 -1
  629. package/dist/features/orders/components/OrderAddonBadges.js +2 -1
  630. package/dist/features/orders/components/OrderCompletionPanel.d.ts +1 -1
  631. package/dist/features/orders/components/OrderCompletionPanel.js +1 -1
  632. package/dist/features/orders/components/OrderFilters.js +1 -1
  633. package/dist/features/orders/components/OrderPaymentSummary.js +4 -1
  634. package/dist/features/orders/components/OrderProvenanceCard.js +5 -1
  635. package/dist/features/orders/components/OrderScopeTabs.js +1 -1
  636. package/dist/features/orders/components/OrderSiblingPayments.js +3 -1
  637. package/dist/features/orders/components/OrderStatusTimeline.js +4 -1
  638. package/dist/features/orders/components/OrdersList.js +4 -1
  639. package/dist/features/orders/components/RaiseDisputeForm.js +1 -1
  640. package/dist/features/orders/components/RefundHistoryTable.js +4 -1
  641. package/dist/features/orders/components/RefundRequestView.js +2 -2
  642. package/dist/features/orders/components/YourPurchaseStrip.js +5 -1
  643. package/dist/features/orders/schemas/index.d.ts +86 -86
  644. package/dist/features/parts/components/AssemblyDrawer.js +8 -1
  645. package/dist/features/parts/components/ModelCompositionPanel.js +5 -1
  646. package/dist/features/parts/components/PartDetailPageView.js +7 -1
  647. package/dist/features/parts/components/PartsIndexPageView.js +6 -1
  648. package/dist/features/parts/components/PartsSearchBox.js +5 -1
  649. package/dist/features/parts/schemas/firestore.d.ts +274 -0
  650. package/dist/features/parts/schemas/firestore.js +19 -0
  651. package/dist/features/payments/repository/saved-payment-methods.repository.js +1 -1
  652. package/dist/features/payments/schemas/index.d.ts +10 -10
  653. package/dist/features/points/schemas/adjust-form.d.ts +2 -2
  654. package/dist/features/pre-orders/api/admin/route.js +1 -5
  655. package/dist/features/pre-orders/components/MarketplacePreorderCard.d.ts +1 -1
  656. package/dist/features/pre-orders/components/MarketplacePreorderCard.js +10 -3
  657. package/dist/features/pre-orders/components/PreOrderActionsClient.js +6 -1
  658. package/dist/features/pre-orders/components/PreOrderBadge.js +2 -1
  659. package/dist/features/pre-orders/components/PreOrderDetailPageView.js +10 -9
  660. package/dist/features/pre-orders/components/PreOrderFilters.js +1 -1
  661. package/dist/features/pre-orders/components/PreOrdersIndexListing.js +11 -2
  662. package/dist/features/pre-orders/components/PreOrdersListView.js +3 -1
  663. package/dist/features/pre-orders/components/PreorderCard.js +1 -1
  664. package/dist/features/pre-orders/schemas/index.d.ts +15 -15
  665. package/dist/features/price-index/components/PriceIndexToolView.js +4 -1
  666. package/dist/features/pricing/components/AdminPricingView.js +4 -1
  667. package/dist/features/print/components/BoxLabelPrintView.js +5 -1
  668. package/dist/features/print/components/LabelProfilePicker.js +3 -1
  669. package/dist/features/print/components/labels.js +3 -1
  670. package/dist/features/products/api/route.js +1 -3
  671. package/dist/features/products/columns/productTableColumns.js +5 -1
  672. package/dist/features/products/components/ArtStickersListView.js +3 -1
  673. package/dist/features/products/components/AuctionDetailView.d.ts +1 -1
  674. package/dist/features/products/components/AuctionDetailView.js +2 -1
  675. package/dist/features/products/components/AuctionsIndexListing.js +10 -2
  676. package/dist/features/products/components/AvailabilityScopeHint.js +3 -1
  677. package/dist/features/products/components/AvailabilityTabs.js +1 -1
  678. package/dist/features/products/components/BidHistory.js +4 -1
  679. package/dist/features/products/components/CityCollectiblesView.js +6 -1
  680. package/dist/features/products/components/CompareOverlay.js +6 -1
  681. package/dist/features/products/components/CustomFieldsEditor.js +6 -1
  682. package/dist/features/products/components/CustomSectionTabContent.js +4 -6
  683. package/dist/features/products/components/CustomSectionsEditor.js +6 -1
  684. package/dist/features/products/components/FeatureBadge.js +2 -1
  685. package/dist/features/products/components/GroupMemberPicker.js +9 -2
  686. package/dist/features/products/components/GroupSettingsPanel.js +13 -2
  687. package/dist/features/products/components/MakeOfferButton.js +6 -1
  688. package/dist/features/products/components/MarketplaceBundleCard.js +6 -1
  689. package/dist/features/products/components/MarketplacePrizeDrawCard.js +7 -1
  690. package/dist/features/products/components/NonRefundableConsentModal.js +6 -1
  691. package/dist/features/products/components/PreOrderDetailView.d.ts +1 -1
  692. package/dist/features/products/components/PreOrderDetailView.js +1 -1
  693. package/dist/features/products/components/PrizeDrawCollage.js +6 -1
  694. package/dist/features/products/components/PrizeDrawDetailPageView.js +7 -8
  695. package/dist/features/products/components/PrizeDrawEntryActions.d.ts +1 -1
  696. package/dist/features/products/components/PrizeDrawEntryActions.js +8 -2
  697. package/dist/features/products/components/PrizeDrawWinnerMappingView.js +7 -1
  698. package/dist/features/products/components/PrizeDrawsIndexListing.js +8 -1
  699. package/dist/features/products/components/PrizeDrawsListingView.js +3 -1
  700. package/dist/features/products/components/PrizeDrawsSection.js +3 -1
  701. package/dist/features/products/components/PrizeRevealModal.js +6 -1
  702. package/dist/features/products/components/ProductCardMetadataSection.js +3 -1
  703. package/dist/features/products/components/ProductDetailActions.js +4 -1
  704. package/dist/features/products/components/ProductDetailPageView.js +11 -9
  705. package/dist/features/products/components/ProductDetailView.d.ts +1 -1
  706. package/dist/features/products/components/ProductDetailView.js +1 -1
  707. package/dist/features/products/components/ProductFeatureBadges.js +4 -1
  708. package/dist/features/products/components/ProductFeaturesSelector.js +3 -1
  709. package/dist/features/products/components/ProductFilters.js +2 -1
  710. package/dist/features/products/components/ProductForm.js +1 -1
  711. package/dist/features/products/components/ProductGalleryClient.js +4 -1
  712. package/dist/features/products/components/ProductGradingTab.js +4 -1
  713. package/dist/features/products/components/ProductGrid.d.ts +1 -1
  714. package/dist/features/products/components/ProductGrid.js +7 -1
  715. package/dist/features/products/components/ProductsIndexListing.js +11 -3
  716. package/dist/features/products/components/ProductsIndexPageView.js +6 -2
  717. package/dist/features/products/components/RelatedItemsSection.js +1 -1
  718. package/dist/features/products/components/RelatedProducts.js +3 -1
  719. package/dist/features/products/components/ShowGroupSection.js +7 -1
  720. package/dist/features/products/components/SparesListView.js +4 -1
  721. package/dist/features/products/components/SublistingCarouselSection.js +4 -1
  722. package/dist/features/products/components/SublistingCategorySelect.js +2 -1
  723. package/dist/features/products/hooks/useProducts.js +1 -1
  724. package/dist/features/products/repository/products.repository.js +0 -1
  725. package/dist/features/products/schemas/index.d.ts +70 -70
  726. package/dist/features/products/schemas/product-features.validators.d.ts +52 -52
  727. package/dist/features/promotions/actions/promotions-actions.js +22 -6
  728. package/dist/features/promotions/api/route.js +1 -8
  729. package/dist/features/promotions/components/AttachedCouponsSection.js +5 -2
  730. package/dist/features/promotions/components/CouponCard.js +8 -1
  731. package/dist/features/promotions/components/CouponCodeCopyRow.js +2 -1
  732. package/dist/features/promotions/components/CouponHelpDetails.js +4 -1
  733. package/dist/features/promotions/components/CouponsIndexListing.js +12 -1
  734. package/dist/features/promotions/components/PromotionsView.js +4 -1
  735. package/dist/features/promotions/constants/attached-coupons.d.ts +14 -0
  736. package/dist/features/promotions/repository/coupons.repository.js +32 -2
  737. package/dist/features/promotions/schemas/firestore.d.ts +33 -0
  738. package/dist/features/promotions/schemas/firestore.js +44 -0
  739. package/dist/features/promotions/schemas/index.d.ts +108 -108
  740. package/dist/features/reviews/components/ReviewDetailPageView.js +4 -1
  741. package/dist/features/reviews/components/ReviewDetailShell.js +8 -1
  742. package/dist/features/reviews/components/ReviewFilters.js +1 -1
  743. package/dist/features/reviews/components/ReviewModal.js +7 -2
  744. package/dist/features/reviews/components/ReviewSummary.js +4 -2
  745. package/dist/features/reviews/components/ReviewsIndexPageView.d.ts +2 -3
  746. package/dist/features/reviews/components/ReviewsIndexPageView.js +12 -13
  747. package/dist/features/reviews/components/ReviewsList.js +7 -2
  748. package/dist/features/reviews/components/ReviewsListingPanel.js +7 -1
  749. package/dist/features/reviews/schemas/index.d.ts +40 -40
  750. package/dist/features/scams/components/ScamAwarenessModal.js +7 -1
  751. package/dist/features/scams/components/ScamProfileView.js +11 -1
  752. package/dist/features/scams/constants/scammer-status-display.d.ts +1 -1
  753. package/dist/features/scams/schemas/index.d.ts +22 -22
  754. package/dist/features/scams/schemas/report-form.d.ts +4 -4
  755. package/dist/features/search/components/EntityTypeahead.js +5 -1
  756. package/dist/features/search/components/Search.js +7 -1
  757. package/dist/features/search/components/SearchFacetRail.js +4 -1
  758. package/dist/features/search/components/SearchResultsClient.js +1 -1
  759. package/dist/features/search/components/SearchResultsPageView.js +5 -1
  760. package/dist/features/seller/api/coupons/route.js +1 -5
  761. package/dist/features/seller/api/products/route.js +1 -5
  762. package/dist/features/seller/components/BulkStockModal.js +2 -1
  763. package/dist/features/seller/components/CategoryChipPicker.js +3 -1
  764. package/dist/features/seller/components/FulfillmentView.js +2 -1
  765. package/dist/features/seller/components/GroupInlineSelect.js +1 -1
  766. package/dist/features/seller/components/SellerAddressesView.js +11 -2
  767. package/dist/features/seller/components/SellerAnalyticsAlertsView.js +9 -1
  768. package/dist/features/seller/components/SellerAnalyticsView.d.ts +1 -1
  769. package/dist/features/seller/components/SellerAnalyticsView.js +4 -1
  770. package/dist/features/seller/components/SellerBidsView.js +8 -2
  771. package/dist/features/seller/components/SellerBundlesView.js +7 -1
  772. package/dist/features/seller/components/SellerCouponEditorView.js +5 -1
  773. package/dist/features/seller/components/SellerCouponsView.d.ts +1 -1
  774. package/dist/features/seller/components/SellerCouponsView.js +5 -1
  775. package/dist/features/seller/components/SellerDashboardView.d.ts +1 -1
  776. package/dist/features/seller/components/SellerDashboardView.js +4 -1
  777. package/dist/features/seller/components/SellerFeaturesView.js +8 -1
  778. package/dist/features/seller/components/SellerGoogleReviewsView.js +7 -1
  779. package/dist/features/seller/components/SellerGroupedListingsView.js +4 -1
  780. package/dist/features/seller/components/SellerGuideView.d.ts +1 -1
  781. package/dist/features/seller/components/SellerGuideView.js +1 -1
  782. package/dist/features/seller/components/SellerListingTypeView.js +4 -1
  783. package/dist/features/seller/components/SellerOffersView.d.ts +1 -1
  784. package/dist/features/seller/components/SellerOffersView.js +4 -1
  785. package/dist/features/seller/components/SellerOrdersView.js +8 -1
  786. package/dist/features/seller/components/SellerPayoutHistoryTable.js +2 -1
  787. package/dist/features/seller/components/SellerPayoutMethodsView.js +7 -1
  788. package/dist/features/seller/components/SellerPayoutRequestView.js +8 -1
  789. package/dist/features/seller/components/SellerPayoutSettingsView.js +3 -2
  790. package/dist/features/seller/components/SellerPayoutStats.js +1 -1
  791. package/dist/features/seller/components/SellerPayoutsView.d.ts +1 -1
  792. package/dist/features/seller/components/SellerPayoutsView.js +10 -1
  793. package/dist/features/seller/components/SellerProductShell.js +1 -2
  794. package/dist/features/seller/components/SellerProductsCards.js +7 -1
  795. package/dist/features/seller/components/SellerProductsFilterDrawer.js +4 -1
  796. package/dist/features/seller/components/SellerProductsView.js +7 -1
  797. package/dist/features/seller/components/SellerReviewsView.js +11 -1
  798. package/dist/features/seller/components/SellerShippingConfigsView.js +6 -1
  799. package/dist/features/seller/components/SellerShippingView.js +2 -2
  800. package/dist/features/seller/components/SellerSidebar.js +7 -1
  801. package/dist/features/seller/components/SellerStoreCategoriesView.js +5 -1
  802. package/dist/features/seller/components/SellerStoreSetupView.js +2 -1
  803. package/dist/features/seller/components/SellerStorefrontView.js +1 -1
  804. package/dist/features/seller/components/SellerSupportView.d.ts +1 -1
  805. package/dist/features/seller/components/SellerSupportView.js +4 -1
  806. package/dist/features/seller/components/SellersListView.d.ts +1 -1
  807. package/dist/features/seller/components/SellersListView.js +1 -1
  808. package/dist/features/seller/components/analytics/SellerAnalyticsStats.js +1 -1
  809. package/dist/features/seller/components/analytics/SellerRevenueChart.js +2 -1
  810. package/dist/features/seller/components/analytics/SellerTopProducts.js +3 -1
  811. package/dist/features/seller/hooks/useSellerListingData.js +0 -30
  812. package/dist/features/seller/schemas/coupon-form.d.ts +50 -50
  813. package/dist/features/seller/schemas/index.d.ts +22 -22
  814. package/dist/features/seller/schemas/order-forms.d.ts +12 -12
  815. package/dist/features/server-errors/schemas/index.d.ts +4 -4
  816. package/dist/features/shell/CommandPalette.js +7 -1
  817. package/dist/features/shell/FormShell.js +5 -1
  818. package/dist/features/shell/SectionForm.js +4 -1
  819. package/dist/features/shipments/components/AdminShipmentEditorView.js +9 -1
  820. package/dist/features/shipments/components/AdminShipmentLotItemsView.js +11 -1
  821. package/dist/features/shipments/components/AdminShipmentProjectionsView.js +10 -1
  822. package/dist/features/shipments/components/AdminShipmentsView.d.ts +1 -1
  823. package/dist/features/shipments/components/AdminShipmentsView.js +3 -1
  824. package/dist/features/shipments/components/ShipmentItemLinkModal.js +7 -1
  825. package/dist/features/shipments/schemas/validation.d.ts +44 -44
  826. package/dist/features/site-settings/components/ActionPermissionsManager.js +7 -2
  827. package/dist/features/site-settings/components/NavPermissionsManager.js +6 -2
  828. package/dist/features/site-settings/components/ThemeManagerView.js +9 -1
  829. package/dist/features/status-history/components/StatusTimeline.js +4 -1
  830. package/dist/features/sticker-trace/components/StickerPrintPanel.js +6 -1
  831. package/dist/features/sticker-trace/components/StickerRetryPanel.js +4 -1
  832. package/dist/features/sticker-trace/components/StickerRunHistoryPanel.js +5 -1
  833. package/dist/features/sticker-trace/components/StickerTraceStudio.js +5 -1
  834. package/dist/features/store-extensions/schemas/admin-notification-form.d.ts +5 -5
  835. package/dist/features/store-extensions/schemas/custom-role-form.d.ts +12 -12
  836. package/dist/features/store-extensions/schemas/item-request-create-form.d.ts +2 -2
  837. package/dist/features/store-extensions/schemas/listing-template-form.d.ts +13 -13
  838. package/dist/features/store-extensions/schemas/payout-method-form.d.ts +10 -10
  839. package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +12 -12
  840. package/dist/features/store-extensions/schemas/store-category-form.d.ts +10 -10
  841. package/dist/features/stores/api/[storeSlug]/auctions/route.js +1 -10
  842. package/dist/features/stores/api/[storeSlug]/products/route.js +1 -10
  843. package/dist/features/stores/components/InteractiveStoreCard.js +15 -2
  844. package/dist/features/stores/components/SellerStandingPanel.js +3 -1
  845. package/dist/features/stores/components/SellerTierBadge.js +2 -1
  846. package/dist/features/stores/components/StoreAboutView.js +5 -1
  847. package/dist/features/stores/components/StoreAddressSelectorCreate.js +2 -1
  848. package/dist/features/stores/components/StoreAuctionsListing.js +8 -1
  849. package/dist/features/stores/components/StoreAuctionsView.d.ts +1 -1
  850. package/dist/features/stores/components/StoreAuctionsView.js +1 -1
  851. package/dist/features/stores/components/StoreBundlesPageView.js +1 -1
  852. package/dist/features/stores/components/StoreCapabilitiesGuideView.js +6 -1
  853. package/dist/features/stores/components/StoreClassifiedsListing.js +7 -1
  854. package/dist/features/stores/components/StoreCreateForm.js +3 -1
  855. package/dist/features/stores/components/StoreDetailLayoutView.js +5 -2
  856. package/dist/features/stores/components/StoreDigitalCodesListing.js +7 -1
  857. package/dist/features/stores/components/StoreFilters.js +1 -1
  858. package/dist/features/stores/components/StoreFinanceGuideView.js +6 -1
  859. package/dist/features/stores/components/StoreGuideHubView.js +7 -2
  860. package/dist/features/stores/components/StoreHeader.js +6 -1
  861. package/dist/features/stores/components/StoreListingsGuideView.js +6 -1
  862. package/dist/features/stores/components/StoreLiveItemsListing.js +7 -1
  863. package/dist/features/stores/components/StoreNavTabs.js +3 -1
  864. package/dist/features/stores/components/StoreOrdersGuideView.js +7 -1
  865. package/dist/features/stores/components/StorePreOrdersListing.js +7 -1
  866. package/dist/features/stores/components/StoreProductsListing.js +8 -1
  867. package/dist/features/stores/components/StoreProductsView.js +5 -1
  868. package/dist/features/stores/components/StoreReviewsView.d.ts +1 -1
  869. package/dist/features/stores/components/StoreReviewsView.js +1 -1
  870. package/dist/features/stores/components/StoreSettingsGuideView.js +6 -1
  871. package/dist/features/stores/components/StoresIndexListing.js +9 -2
  872. package/dist/features/stores/components/StoresIndexPageView.d.ts +2 -3
  873. package/dist/features/stores/components/StoresIndexPageView.js +10 -11
  874. package/dist/features/stores/hooks/useStoreAddressSelector.d.ts +1 -1
  875. package/dist/features/stores/schemas/firestore.d.ts +27 -0
  876. package/dist/features/stores/schemas/firestore.js +2 -0
  877. package/dist/features/stores/schemas/index.d.ts +28 -28
  878. package/dist/features/support/schemas/index.d.ts +14 -14
  879. package/dist/features/support/schemas/ticket-create-form.d.ts +4 -4
  880. package/dist/features/tax-codes/schemas/tax-code-form.d.ts +4 -4
  881. package/dist/features/tax-codes/schemas/tax-codes.validators.d.ts +10 -10
  882. package/dist/features/tester/actions/checklist-item-actions.d.ts +3 -3
  883. package/dist/features/tester/components/AdminTesterFeedbackIssuesView.js +7 -1
  884. package/dist/features/tester/components/AdminTesterFeedbackListView.js +5 -1
  885. package/dist/features/tester/components/AdminTesterFeedbackReportView.js +2 -1
  886. package/dist/features/tester/components/AdminTesterFeedbackView.js +5 -1
  887. package/dist/features/tester/components/TesterChecklistStepRow.js +8 -1
  888. package/dist/features/tester/components/TesterFeedbackChart.js +3 -1
  889. package/dist/features/tester/schemas/checklist-item-form.d.ts +2 -2
  890. package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +8 -1
  891. package/dist/features/wishlist/components/WishlistCapWatcher.js +1 -1
  892. package/dist/features/wishlist/components/WishlistHeartButton.js +2 -1
  893. package/dist/features/wishlist/components/WishlistPage.js +5 -1
  894. package/dist/features/wishlist/components/WishlistView.js +3 -1
  895. package/dist/features/wishlist/hooks/useWishlistToggle.js +1 -1
  896. package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +1 -1
  897. package/dist/features/wishlist/schemas/index.d.ts +2 -2
  898. package/dist/features/wishlist/utils/guest-wishlist.js +1 -5
  899. package/dist/index.d.ts +2496 -2452
  900. package/dist/index.js +1549 -1500
  901. package/dist/next/api/routeHandler.js +1 -1
  902. package/dist/providers/db-firebase/admin-app-lite.js +14 -2
  903. package/dist/providers/db-firebase/admin.js +8 -2
  904. package/dist/react/hooks/use-action-dispatch.d.ts +1 -1
  905. package/dist/react/hooks/use-action-dispatch.js +1 -1
  906. package/dist/react/hooks/useBrowsePageFlags.d.ts +26 -0
  907. package/dist/react/hooks/useBrowsePageFlags.js +18 -0
  908. package/dist/schemas/registry.d.ts +492 -487
  909. package/dist/schemas/sieve.d.ts +5 -5
  910. package/dist/schemas/webhooks/google-oauth.d.ts +4 -4
  911. package/dist/security/csp.d.ts +32 -2
  912. package/dist/security/csp.js +32 -2
  913. package/dist/server.d.ts +369 -362
  914. package/dist/server.js +355 -351
  915. package/dist/styles.css +1 -1
  916. package/dist/tailwind-utilities.css +1 -1
  917. package/dist/ui/components/Button.js +1 -1
  918. package/dist/ui/components/Chart.js +0 -1
  919. package/dist/ui/components/HorizontalScroller.js +27 -2
  920. package/dist/ui/components/Repeater.js +4 -1
  921. package/dist/ui/rich-text/RichText.js +1 -3
  922. package/dist/ui/rich-text/RichTextRenderer.js +1 -3
  923. package/dist/utils/browser-storage.d.ts +14 -0
  924. package/dist/utils/browser-storage.js +18 -0
  925. package/dist/utils/classnames.d.ts +19 -0
  926. package/dist/utils/classnames.js +21 -0
  927. package/dist/utils/search-params.d.ts +44 -0
  928. package/dist/utils/search-params.js +46 -0
  929. package/dist/utils/sieve-builder.d.ts +13 -0
  930. package/dist/utils/sieve-builder.js +22 -0
  931. package/dist/utils/string.formatter.d.ts +12 -0
  932. package/dist/utils/string.formatter.js +17 -0
  933. package/dist/validation/schemas.d.ts +26 -26
  934. package/package.json +90 -2
@@ -21,15 +21,6 @@ export interface BuildSlideOptions {
21
21
  /** Who the generated document records as its author. */
22
22
  createdBy: string;
23
23
  }
24
- /**
25
- * `null` when the event carries no `carouselConfig` — most events do not want
26
- * a slide, and that is the normal case rather than an error.
27
- *
28
- * @throws when the config is internally impossible (more cards than zones).
29
- * Refusing loudly is deliberate: `HeroCarousel` silently `.slice(0, 6)`s,
30
- * so a seventh card would vanish with nothing to indicate it had been
31
- * authored at all.
32
- */
33
24
  export declare function buildSlideFromEvent(event: EventDocument, opts: BuildSlideOptions): Partial<CarouselSlideDocument> | null;
34
25
  /**
35
26
  * Build every event-owned slide, newest-ordered, and refuse an over-full rail.
@@ -94,8 +94,30 @@ function toCard(card, eventHref, dim) {
94
94
  * so a seventh card would vanish with nothing to indicate it had been
95
95
  * authored at all.
96
96
  */
97
+ /**
98
+ * Is this event published to the hero rail?
99
+ *
100
+ * 🛑 `showOnCarousel` is the owner; `carouselConfig.active` is a READ-ONLY
101
+ * legacy fallback for documents written before the flag existed. The `??` is
102
+ * load-bearing and is not the same as `||`: a deliberate `showOnCarousel:
103
+ * false` on an event whose old `carouselConfig.active` is still `true` must
104
+ * mean OFF, and `||` would quietly resolve it back to on — turning an explicit
105
+ * unpublish into a no-op.
106
+ *
107
+ * See the deprecation note on `EventCarouselBase.active` for when the fallback
108
+ * can be deleted.
109
+ */
110
+ function isPublishedToCarousel(event) {
111
+ return (event.showOnCarousel ?? event.carouselConfig?.active) === true;
112
+ }
97
113
  export function buildSlideFromEvent(event, opts) {
98
114
  const cfg = event.carouselConfig;
115
+ /*
116
+ * Both halves are required: the flag says "publish it", the config says
117
+ * "publish WHAT". Without a config there is no authored artwork, and a slide
118
+ * synthesised from the event's bare title is a grey rectangle on the first
119
+ * screen of the site.
120
+ */
99
121
  if (!cfg)
100
122
  return null;
101
123
  const dim = cfg.dimOpacity ?? DEFAULT_DIM;
@@ -104,7 +126,22 @@ export function buildSlideFromEvent(event, opts) {
104
126
  id: `slide-${event.id}`,
105
127
  title: event.title,
106
128
  order: cfg.order ?? 99,
107
- active: cfg.active === true,
129
+ /*
130
+ * 🛑 `isPublishedToCarousel`, NOT `cfg.active` — and this line is the whole
131
+ * point of the `showOnCarousel` flag.
132
+ *
133
+ * It read `cfg.active === true`, which meant the new top-level flag was
134
+ * written to Firestore, round-tripped through the Zod schema and the admin
135
+ * form, and READ BY NOTHING. Setting it did exactly nothing; clearing it
136
+ * did exactly nothing. The helper that reads it sat directly above this
137
+ * function, defined and never called.
138
+ *
139
+ * Caught by eslint's no-unused-vars on the helper — which is the reason
140
+ * that rule is an `error` here and not a warning. A computed-then-discarded
141
+ * value gives no other signal, and three user-facing defects in this
142
+ * codebase have surfaced the same way.
143
+ */
144
+ active: isPublishedToCarousel(event),
108
145
  background: bg,
109
146
  settings: { autoplayDelayMs: DEFAULT_AUTOPLAY_MS, height: "medium" },
110
147
  createdBy: opts.createdBy,
@@ -27,10 +27,10 @@ export declare const faqCreateSchema: z.ZodEffects<z.ZodObject<{
27
27
  template: z.ZodOptional<z.ZodString>;
28
28
  }, "strip", z.ZodTypeAny, {
29
29
  category: string;
30
- priority: number;
31
30
  isActive: boolean;
32
31
  order: number;
33
32
  showOnHomepage: boolean;
33
+ priority: number;
34
34
  question: string;
35
35
  answer: {
36
36
  text: string;
@@ -39,10 +39,10 @@ export declare const faqCreateSchema: z.ZodEffects<z.ZodObject<{
39
39
  showInFooter: boolean;
40
40
  isPinned: boolean;
41
41
  useSiteSettings: boolean;
42
- template?: string | undefined;
43
42
  tags?: string[] | undefined;
44
43
  relatedFAQs?: string[] | undefined;
45
44
  variables?: Record<string, string> | undefined;
45
+ template?: string | undefined;
46
46
  }, {
47
47
  category: string;
48
48
  question: string;
@@ -50,23 +50,23 @@ export declare const faqCreateSchema: z.ZodEffects<z.ZodObject<{
50
50
  text: string;
51
51
  format?: "html" | "plain" | "markdown" | undefined;
52
52
  };
53
- template?: string | undefined;
54
- priority?: number | undefined;
55
53
  tags?: string[] | undefined;
56
54
  isActive?: boolean | undefined;
57
55
  order?: number | undefined;
58
56
  showOnHomepage?: boolean | undefined;
57
+ priority?: number | undefined;
59
58
  showInFooter?: boolean | undefined;
60
59
  isPinned?: boolean | undefined;
61
60
  relatedFAQs?: string[] | undefined;
62
61
  useSiteSettings?: boolean | undefined;
63
62
  variables?: Record<string, string> | undefined;
63
+ template?: string | undefined;
64
64
  }>, {
65
65
  category: string;
66
- priority: number;
67
66
  isActive: boolean;
68
67
  order: number;
69
68
  showOnHomepage: boolean;
69
+ priority: number;
70
70
  question: string;
71
71
  answer: {
72
72
  text: string;
@@ -75,10 +75,10 @@ export declare const faqCreateSchema: z.ZodEffects<z.ZodObject<{
75
75
  showInFooter: boolean;
76
76
  isPinned: boolean;
77
77
  useSiteSettings: boolean;
78
- template?: string | undefined;
79
78
  tags?: string[] | undefined;
80
79
  relatedFAQs?: string[] | undefined;
81
80
  variables?: Record<string, string> | undefined;
81
+ template?: string | undefined;
82
82
  }, {
83
83
  category: string;
84
84
  question: string;
@@ -86,17 +86,17 @@ export declare const faqCreateSchema: z.ZodEffects<z.ZodObject<{
86
86
  text: string;
87
87
  format?: "html" | "plain" | "markdown" | undefined;
88
88
  };
89
- template?: string | undefined;
90
- priority?: number | undefined;
91
89
  tags?: string[] | undefined;
92
90
  isActive?: boolean | undefined;
93
91
  order?: number | undefined;
94
92
  showOnHomepage?: boolean | undefined;
93
+ priority?: number | undefined;
95
94
  showInFooter?: boolean | undefined;
96
95
  isPinned?: boolean | undefined;
97
96
  relatedFAQs?: string[] | undefined;
98
97
  useSiteSettings?: boolean | undefined;
99
98
  variables?: Record<string, string> | undefined;
99
+ template?: string | undefined;
100
100
  }>;
101
101
  export declare const faqUpdateSchema: z.ZodObject<{
102
102
  question: z.ZodOptional<z.ZodString>;
@@ -123,13 +123,12 @@ export declare const faqUpdateSchema: z.ZodObject<{
123
123
  variables: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
124
124
  template: z.ZodOptional<z.ZodOptional<z.ZodString>>;
125
125
  }, "strip", z.ZodTypeAny, {
126
- template?: string | undefined;
127
126
  category?: string | undefined;
128
- priority?: number | undefined;
129
127
  tags?: string[] | undefined;
130
128
  isActive?: boolean | undefined;
131
129
  order?: number | undefined;
132
130
  showOnHomepage?: boolean | undefined;
131
+ priority?: number | undefined;
133
132
  question?: string | undefined;
134
133
  answer?: {
135
134
  text: string;
@@ -140,14 +139,14 @@ export declare const faqUpdateSchema: z.ZodObject<{
140
139
  relatedFAQs?: string[] | undefined;
141
140
  useSiteSettings?: boolean | undefined;
142
141
  variables?: Record<string, string> | undefined;
143
- }, {
144
142
  template?: string | undefined;
143
+ }, {
145
144
  category?: string | undefined;
146
- priority?: number | undefined;
147
145
  tags?: string[] | undefined;
148
146
  isActive?: boolean | undefined;
149
147
  order?: number | undefined;
150
148
  showOnHomepage?: boolean | undefined;
149
+ priority?: number | undefined;
151
150
  question?: string | undefined;
152
151
  answer?: {
153
152
  text: string;
@@ -158,6 +157,7 @@ export declare const faqUpdateSchema: z.ZodObject<{
158
157
  relatedFAQs?: string[] | undefined;
159
158
  useSiteSettings?: boolean | undefined;
160
159
  variables?: Record<string, string> | undefined;
160
+ template?: string | undefined;
161
161
  }>;
162
162
  export type FaqCreateInput = z.infer<typeof faqCreateSchema>;
163
163
  export type FaqUpdateInput = z.infer<typeof faqUpdateSchema>;
@@ -1,5 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Card, Div, Heading, Row, Span, Text, TextLink } from "../../../ui/index.js";
2
+ import { Card } from "../../../ui/components/Card.js";
3
+ import { Div } from "../../../ui/components/Div.js";
4
+ import { Heading, Span, Text } from "../../../ui/components/Typography.js";
5
+ import { Row } from "../../../ui/components/Layout.js";
6
+ import { TextLink } from "../../../ui/components/TextLink.js";
3
7
  const __P = {
4
8
  p8: "p-[var(--appkit-space-8)]",
5
9
  };
@@ -1,7 +1,12 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useState } from "react";
4
- import { Button, Div, RichText, Row, Span, Tabs, TabsList, TabsTrigger, Text } from "../../../ui/index.js";
4
+ import { Button } from "../../../ui/components/Button.js";
5
+ import { Div } from "../../../ui/components/Div.js";
6
+ import { RichText } from "../../../ui/rich-text/RichText.js";
7
+ import { Row } from "../../../ui/components/Layout.js";
8
+ import { Span, Text } from "../../../ui/components/Typography.js";
9
+ import { Tabs, TabsList, TabsTrigger } from "../../../ui/components/Tabs.js";
5
10
  /* Phase 9 — `publishedCopyKey`'s first reader. See the 🛑 at the render site. */
6
11
  import { resolvePublishedCopy, resolvePublishedValues, } from "../../../_internal/shared/content/published-values.js";
7
12
  import { RecordOwnerQuickActions } from "../../admin/components/RecordOwnerQuickActions.js";
@@ -1,5 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Card, Div, Heading, Row, Span, Text, TextLink } from "../../../ui/index.js";
2
+ import { Card } from "../../../ui/components/Card.js";
3
+ import { Div } from "../../../ui/components/Div.js";
4
+ import { Heading, Span, Text } from "../../../ui/components/Typography.js";
5
+ import { Row } from "../../../ui/components/Layout.js";
6
+ import { TextLink } from "../../../ui/components/TextLink.js";
3
7
  import { ROUTES } from "../../../next/routing/route-map.js";
4
8
  export function FAQCategorySidebar({ selectedCategory, onCategorySelect, categoryCounts, categories, allFaqsHref = String(ROUTES.PUBLIC.FAQS), categoryHref, contactHref, labels, }) {
5
9
  const totalCount = Object.values(categoryCounts).reduce((sum, count) => sum + count, 0);
@@ -2,7 +2,9 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Row } from "@mohasinac/appkit/ui";
4
4
  import { useState } from "react";
5
- import { Button, Div, Span, Text } from "../../../ui/index.js";
5
+ import { Button } from "../../../ui/components/Button.js";
6
+ import { Div } from "../../../ui/components/Div.js";
7
+ import { Span, Text } from "../../../ui/components/Typography.js";
6
8
  import { normalizeError } from "../../../errors/normalize.js";
7
9
  const __P = {
8
10
  p6: "p-[var(--appkit-space-6)]",
@@ -1,6 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Alert, Div, EmptyState, Heading, Input, Row, SlottedListingView, Text, TextLink } from "../../../ui/index.js";
3
+ import { Alert } from "../../../ui/components/Alert.js";
4
+ import { Div } from "../../../ui/components/Div.js";
5
+ import { EmptyState } from "../../../ui/components/EmptyState.js";
6
+ import { Heading, Text } from "../../../ui/components/Typography.js";
7
+ import { Input } from "../../../ui/components/Input.js";
8
+ import { Row } from "../../../ui/components/Layout.js";
9
+ import { SlottedListingView } from "../../../ui/components/SlottedListingView.js";
10
+ import { TextLink } from "../../../ui/components/TextLink.js";
4
11
  import { sortBy } from "../../../constants/sort.js";
5
12
  import { FAQCategorySidebar } from "./FAQCategorySidebar.js";
6
13
  import { FAQSortDropdown } from "./FAQSortDropdown.js";
@@ -1,7 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useMemo, useState } from "react";
4
- import { Div, Input } from "../../../ui/index.js";
4
+ import { Div } from "../../../ui/components/Div.js";
5
+ import { Input } from "../../../ui/components/Input.js";
5
6
  import { FAQAccordion } from "./FAQAccordion.js";
6
7
  const STRIP_HTML = /<[^>]+>/g;
7
8
  export function FAQSearchableList({ faqs, labels }) {
@@ -1,5 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Div, Row, Select, Span } from "../../../ui/index.js";
2
+ import { Div } from "../../../ui/components/Div.js";
3
+ import { Row } from "../../../ui/components/Layout.js";
4
+ import { Select } from "../../../ui/components/Select.js";
5
+ import { Span } from "../../../ui/components/Typography.js";
3
6
  export function FAQSortDropdown({ selectedSort, onSortChange, labels, }) {
4
7
  const sortOptions = [
5
8
  { value: "helpful", label: labels?.helpful ?? "Most Helpful" },
@@ -1,5 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Card, Heading, Row, Stack, Text, TextLink } from "../../../ui/index.js";
2
+ import { Card } from "../../../ui/components/Card.js";
3
+ import { Heading, Text } from "../../../ui/components/Typography.js";
4
+ import { Row, Stack } from "../../../ui/components/Layout.js";
5
+ import { TextLink } from "../../../ui/components/TextLink.js";
3
6
  export function RelatedFAQs({ relatedFAQs, hrefForFaq, labels, }) {
4
7
  if (!relatedFAQs || relatedFAQs.length === 0) {
5
8
  return null;
@@ -19,12 +19,15 @@ import type { FAQCategory } from "../types/index";
19
19
  * they get the Help Centre index instead, via `HELP_INDEX_PATH`. Writing a
20
20
  * guide to point them at later is a content decision, not a missing entry.
21
21
  *
22
- * 🛑 Paths, not `ROUTES`. The Help Centre pages are consumer routes under
23
- * `src/app/[locale]/help/`, and `ROUTES` is appkit's own map — adding them
24
- * there would make appkit declare pages it does not own. They are stable,
25
- * linked from the footer, and covered by `audit-nav-page-wiring`.
22
+ * 🛑 CORRECTED 2026-10-24 — this said *"Paths, not `ROUTES`. … `ROUTES` is
23
+ * appkit's own map — adding them there would make appkit declare pages it does
24
+ * not own."* The premise was already false when it was written: appkit's route
25
+ * map has declared `PUBLIC.HELP` and six `HELP_*` children for a long time
26
+ * (`route-map.ts:97-110`). So the file was hand-writing a literal to avoid
27
+ * adding something that was already there, and a renamed segment would have
28
+ * moved the real pages while leaving these guide links on the old path.
26
29
  */
27
- export declare const HELP_INDEX_PATH: "/help";
30
+ export declare const HELP_INDEX_PATH: string;
28
31
  export declare const FAQ_CATEGORY_HELP_GUIDE: Record<FAQCategory, {
29
32
  path: string;
30
33
  label: string;
@@ -1,3 +1,4 @@
1
+ import { ROUTES } from "../../../next/routing/route-map.js";
1
2
  /**
2
3
  * The Help Centre guide that answers a FAQ category at length.
3
4
  *
@@ -18,12 +19,15 @@
18
19
  * they get the Help Centre index instead, via `HELP_INDEX_PATH`. Writing a
19
20
  * guide to point them at later is a content decision, not a missing entry.
20
21
  *
21
- * 🛑 Paths, not `ROUTES`. The Help Centre pages are consumer routes under
22
- * `src/app/[locale]/help/`, and `ROUTES` is appkit's own map — adding them
23
- * there would make appkit declare pages it does not own. They are stable,
24
- * linked from the footer, and covered by `audit-nav-page-wiring`.
22
+ * 🛑 CORRECTED 2026-10-24 — this said *"Paths, not `ROUTES`. … `ROUTES` is
23
+ * appkit's own map — adding them there would make appkit declare pages it does
24
+ * not own."* The premise was already false when it was written: appkit's route
25
+ * map has declared `PUBLIC.HELP` and six `HELP_*` children for a long time
26
+ * (`route-map.ts:97-110`). So the file was hand-writing a literal to avoid
27
+ * adding something that was already there, and a renamed segment would have
28
+ * moved the real pages while leaving these guide links on the old path.
25
29
  */
26
- export const HELP_INDEX_PATH = "/help";
30
+ export const HELP_INDEX_PATH = String(ROUTES.PUBLIC.HELP);
27
31
  /**
28
32
  * The orders guide, named once because THREE categories share it.
29
33
  *
@@ -89,10 +89,9 @@ export declare const faqSchema: z.ZodObject<{
89
89
  text: string;
90
90
  format: "html" | "plain" | "markdown";
91
91
  };
92
+ tags?: string[] | undefined;
92
93
  createdAt?: string | undefined;
93
94
  updatedAt?: string | undefined;
94
- priority?: number | undefined;
95
- tags?: string[] | undefined;
96
95
  isActive?: boolean | undefined;
97
96
  order?: number | undefined;
98
97
  stats?: {
@@ -101,6 +100,7 @@ export declare const faqSchema: z.ZodObject<{
101
100
  notHelpful?: number | undefined;
102
101
  } | undefined;
103
102
  showOnHomepage?: boolean | undefined;
103
+ priority?: number | undefined;
104
104
  showInFooter?: boolean | undefined;
105
105
  isPinned?: boolean | undefined;
106
106
  relatedFAQs?: string[] | undefined;
@@ -115,10 +115,9 @@ export declare const faqSchema: z.ZodObject<{
115
115
  text: string;
116
116
  format: "html" | "plain" | "markdown";
117
117
  };
118
+ tags?: string[] | undefined;
118
119
  createdAt?: string | undefined;
119
120
  updatedAt?: string | undefined;
120
- priority?: number | undefined;
121
- tags?: string[] | undefined;
122
121
  isActive?: boolean | undefined;
123
122
  order?: number | undefined;
124
123
  stats?: {
@@ -127,6 +126,7 @@ export declare const faqSchema: z.ZodObject<{
127
126
  notHelpful?: number | undefined;
128
127
  } | undefined;
129
128
  showOnHomepage?: boolean | undefined;
129
+ priority?: number | undefined;
130
130
  showInFooter?: boolean | undefined;
131
131
  isPinned?: boolean | undefined;
132
132
  relatedFAQs?: string[] | undefined;
@@ -143,17 +143,17 @@ export declare const faqListParamsSchema: z.ZodObject<{
143
143
  pageSize: z.ZodOptional<z.ZodNumber>;
144
144
  perPage: z.ZodOptional<z.ZodNumber>;
145
145
  }, "strip", z.ZodTypeAny, {
146
+ category?: "orders_payment" | "shipping_delivery" | "returns_refunds" | "product_information" | "account_security" | "technical_support" | "general" | undefined;
146
147
  page?: number | undefined;
147
148
  q?: string | undefined;
148
149
  pageSize?: number | undefined;
149
- category?: "orders_payment" | "shipping_delivery" | "returns_refunds" | "product_information" | "account_security" | "technical_support" | "general" | undefined;
150
150
  perPage?: number | undefined;
151
151
  homepage?: boolean | undefined;
152
152
  }, {
153
+ category?: "orders_payment" | "shipping_delivery" | "returns_refunds" | "product_information" | "account_security" | "technical_support" | "general" | undefined;
153
154
  page?: number | undefined;
154
155
  q?: string | undefined;
155
156
  pageSize?: number | undefined;
156
- category?: "orders_payment" | "shipping_delivery" | "returns_refunds" | "product_information" | "account_security" | "technical_support" | "general" | undefined;
157
157
  perPage?: number | undefined;
158
158
  homepage?: boolean | undefined;
159
159
  }>;
@@ -278,18 +278,17 @@ export declare const faqFirestoreSchema: z.ZodObject<{
278
278
  createdBy: z.ZodString;
279
279
  }, "strip", z.ZodTypeAny, {
280
280
  id: string;
281
+ category: "orders_payment" | "shipping_delivery" | "returns_refunds" | "product_information" | "account_security" | "technical_support" | "general";
282
+ tags: string[];
281
283
  createdAt: string | Date | z.objectOutputType<{
282
284
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
283
285
  }, z.ZodTypeAny, "passthrough">;
284
286
  updatedAt: string | Date | z.objectOutputType<{
285
287
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
286
288
  }, z.ZodTypeAny, "passthrough">;
287
- category: "orders_payment" | "shipping_delivery" | "returns_refunds" | "product_information" | "account_security" | "technical_support" | "general";
288
- createdBy: string;
289
- priority: number;
290
- tags: string[];
291
289
  isActive: boolean;
292
290
  order: number;
291
+ createdBy: string;
293
292
  stats: {
294
293
  views: number;
295
294
  helpful: number;
@@ -299,6 +298,7 @@ export declare const faqFirestoreSchema: z.ZodObject<{
299
298
  }, z.ZodTypeAny, "passthrough"> | undefined;
300
299
  };
301
300
  showOnHomepage: boolean;
301
+ priority: number;
302
302
  question: string;
303
303
  answer: {
304
304
  text: string;
@@ -317,18 +317,17 @@ export declare const faqFirestoreSchema: z.ZodObject<{
317
317
  variables?: Record<string, string> | undefined;
318
318
  }, {
319
319
  id: string;
320
+ category: "orders_payment" | "shipping_delivery" | "returns_refunds" | "product_information" | "account_security" | "technical_support" | "general";
321
+ tags: string[];
320
322
  createdAt: string | Date | z.objectInputType<{
321
323
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
322
324
  }, z.ZodTypeAny, "passthrough">;
323
325
  updatedAt: string | Date | z.objectInputType<{
324
326
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
325
327
  }, z.ZodTypeAny, "passthrough">;
326
- category: "orders_payment" | "shipping_delivery" | "returns_refunds" | "product_information" | "account_security" | "technical_support" | "general";
327
- createdBy: string;
328
- priority: number;
329
- tags: string[];
330
328
  isActive: boolean;
331
329
  order: number;
330
+ createdBy: string;
332
331
  stats: {
333
332
  views: number;
334
333
  helpful: number;
@@ -338,6 +337,7 @@ export declare const faqFirestoreSchema: z.ZodObject<{
338
337
  }, z.ZodTypeAny, "passthrough"> | undefined;
339
338
  };
340
339
  showOnHomepage: boolean;
340
+ priority: number;
341
341
  question: string;
342
342
  answer: {
343
343
  text: string;
@@ -1,8 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useCallback, useEffect, useRef, useState } from "react";
4
- import { Button, Checkbox, Div, Input, Row, Span, Stack, Text } from "../../ui/index.js";
5
- import { cn } from "./filterUtils.js";
4
+ import { Button } from "../../ui/components/Button.js";
5
+ import { Checkbox } from "../../ui/components/Checkbox.js";
6
+ import { Div } from "../../ui/components/Div.js";
7
+ import { Input } from "../../ui/components/Input.js";
8
+ import { Row, Stack } from "../../ui/components/Layout.js";
9
+ import { Span, Text } from "../../ui/components/Typography.js";
10
+ import { joinClasses } from "../../utils/classnames.js";
6
11
  const CLS_BADGE_COUNT = "inline-flex items-center justify-center w-5 h-5 rounded-full bg-success-surface dark:bg-success-surface text-success dark:text-success ring-1 ring-success/20";
7
12
  const CLS_CLEAR_ICON = "inline-flex items-center justify-center w-5 h-5 p-[var(--appkit-space-0)] text-[var(--appkit-color-text-muted)] hover:text-error dark:hover:text-error hover:bg-[var(--appkit-color-surface)] dark:hover:bg-slate-700 transition-colors rounded-full";
8
13
  /**
@@ -60,7 +65,7 @@ export function AsyncFacetSection({ title, selected, onChange, loadOptions, sele
60
65
  const selectedLabels = selected
61
66
  .map((v) => labelMap.current.get(v) ?? v)
62
67
  .slice(0, 3);
63
- return (_jsxs(Div, { className: cn("p-[var(--appkit-space-4)] border-b border-[var(--appkit-color-border)] last:border-b-0", className), children: [_jsxs(Row, { gap: "xs", children: [_jsxs(Button, { type: "button", onClick: () => setCollapsed((c) => !c), variant: "ghost", size: "sm", className: "flex-1 justify-between text-[length:var(--appkit-text-sm)] font-semibold text-[var(--appkit-color-text)] py-[var(--appkit-space-1)] hover:opacity-80 transition-opacity", "aria-expanded": !collapsed, children: [_jsxs(Row, { as: Span, gap: "xs", children: [title, hasValue && (_jsx(Span, { size: "xs", className: CLS_BADGE_COUNT, children: selected.length }))] }), _jsx("svg", { className: cn("w-4 h-4 shrink-0 text-[var(--appkit-color-text-muted)] transition-transform duration-200", collapsed ? "" : "rotate-180"), fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) })] }), onClear && hasValue && (_jsx(Button, { type: "button", onClick: onClear, variant: "ghost", size: "sm", className: CLS_CLEAR_ICON, "aria-label": "Clear filter", children: _jsx("svg", { className: "w-3 h-3 shrink-0", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2.5, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" }) }) }))] }), collapsed && hasValue && (_jsxs(Row, { wrap: true, gap: "xs", className: "mt-2", children: [selectedLabels.map((label) => (_jsx(Span, { layout: "inline-flex", size: "xs", border: "default", rounded: "full", padding: "pill-xs", surface: "subtle", color: "muted", children: label }, label))), selected.length > 3 && (_jsxs(Span, { layout: "inline-flex", size: "xs", rounded: "full", padding: "pill-xs", color: "faint", children: ["+", selected.length - 3, " more"] }))] })), _jsx(Div, { className: "mt-2", children: _jsx(Input, { type: "search", placeholder: "Search\u2026", value: query, onChange: (e) => handleQueryChange(e.target.value), className: "w-full rounded-md border border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface-input)] px-[var(--appkit-space-2-5)] py-[var(--appkit-space-1-5)] text-[length:var(--appkit-text-xs)] text-[var(--appkit-color-text)] focus:outline-none focus:ring-2 focus:ring-primary-500/20" }) }), !collapsed && (_jsxs(Stack, { className: "mt-3", gap: "xs", children: [options.map((opt) => {
68
+ return (_jsxs(Div, { className: joinClasses("p-[var(--appkit-space-4)] border-b border-[var(--appkit-color-border)] last:border-b-0", className), children: [_jsxs(Row, { gap: "xs", children: [_jsxs(Button, { type: "button", onClick: () => setCollapsed((c) => !c), variant: "ghost", size: "sm", className: "flex-1 justify-between text-[length:var(--appkit-text-sm)] font-semibold text-[var(--appkit-color-text)] py-[var(--appkit-space-1)] hover:opacity-80 transition-opacity", "aria-expanded": !collapsed, children: [_jsxs(Row, { as: Span, gap: "xs", children: [title, hasValue && (_jsx(Span, { size: "xs", className: CLS_BADGE_COUNT, children: selected.length }))] }), _jsx("svg", { className: joinClasses("w-4 h-4 shrink-0 text-[var(--appkit-color-text-muted)] transition-transform duration-200", collapsed ? "" : "rotate-180"), fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) })] }), onClear && hasValue && (_jsx(Button, { type: "button", onClick: onClear, variant: "ghost", size: "sm", className: CLS_CLEAR_ICON, "aria-label": "Clear filter", children: _jsx("svg", { className: "w-3 h-3 shrink-0", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2.5, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" }) }) }))] }), collapsed && hasValue && (_jsxs(Row, { wrap: true, gap: "xs", className: "mt-2", children: [selectedLabels.map((label) => (_jsx(Span, { layout: "inline-flex", size: "xs", border: "default", rounded: "full", padding: "pill-xs", surface: "subtle", color: "muted", children: label }, label))), selected.length > 3 && (_jsxs(Span, { layout: "inline-flex", size: "xs", rounded: "full", padding: "pill-xs", color: "faint", children: ["+", selected.length - 3, " more"] }))] })), _jsx(Div, { className: "mt-2", children: _jsx(Input, { type: "search", placeholder: "Search\u2026", value: query, onChange: (e) => handleQueryChange(e.target.value), className: "w-full rounded-md border border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface-input)] px-[var(--appkit-space-2-5)] py-[var(--appkit-space-1-5)] text-[length:var(--appkit-text-xs)] text-[var(--appkit-color-text)] focus:outline-none focus:ring-2 focus:ring-primary-500/20" }) }), !collapsed && (_jsxs(Stack, { className: "mt-3", gap: "xs", children: [options.map((opt) => {
64
69
  const isSelected = selected.includes(opt.value);
65
70
  return (_jsxs(Row, { gap: "2.5", className: "cursor-pointer group", padding: "y-2xs", children: [_jsx(Checkbox, { bare: true, type: selectionMode === "single" ? "radio" : "checkbox", checked: isSelected, onChange: () => toggle(opt.value), "aria-label": opt.label, className: "flex-shrink-0 w-4 h-4 rounded border-[var(--appkit-color-border)] cursor-pointer text-primary-600 dark:text-secondary-500" }), _jsx(Span, { size: "sm", className: "flex-1 group-hover:text-[var(--appkit-color-text)] transition-colors truncate", color: "muted", children: opt.label }), opt.count !== undefined && (_jsx(Span, { size: "xs", className: "tabular-nums flex-shrink-0", color: "faint", children: opt.count }))] }, opt.value));
66
71
  }), options.length === 0 && !loading && (_jsx(Text, { paddingY: "2xs", color: "faint", size: "xs", children: "No results" })), loading && (_jsx(Text, { paddingY: "2xs", className: "animate-pulse", color: "faint", size: "xs", children: "Loading\u2026" })), hasMore && !loading && (_jsx(Button, { type: "button", variant: "ghost", size: "sm", textSize: "xs", textColor: "faint", className: "w-full text-left hover:text-[var(--appkit-color-text)] py-[0.25rem]", onClick: () => void load(query, page + 1), children: "Load more\u2026" }))] }))] }));
@@ -1,8 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useRef, useState } from "react";
4
- import { Button, Checkbox, Div, Input, Row, Span, Stack, Text } from "../../ui/index.js";
5
- import { cn } from "./filterUtils.js";
4
+ import { Button } from "../../ui/components/Button.js";
5
+ import { Checkbox } from "../../ui/components/Checkbox.js";
6
+ import { Div } from "../../ui/components/Div.js";
7
+ import { Input } from "../../ui/components/Input.js";
8
+ import { Row, Stack } from "../../ui/components/Layout.js";
9
+ import { Span, Text } from "../../ui/components/Typography.js";
10
+ import { joinClasses } from "../../utils/classnames.js";
6
11
  const __O = {
7
12
  yAuto: "overflow-y-auto",
8
13
  };
@@ -75,16 +80,16 @@ export function FilterFacetSection({ title, options, selected, onChange, selecti
75
80
  .slice(0, 3);
76
81
  // ── Dropdown variant ────────────────────────────────────────────────────
77
82
  if (displayAs === "dropdown") {
78
- return (_jsxs(Div, { ref: dropdownRef, className: cn("relative inline-block", className), children: [_jsxs(Button, { type: "button", onClick: () => setDropdownOpen((o) => !o), variant: "ghost", className: cn("inline-flex items-center gap-[var(--appkit-space-1-5)] rounded-full border px-[var(--appkit-space-3)] py-[var(--appkit-space-1-5)] text-[length:var(--appkit-text-sm)] font-medium transition-colors", hasValue
83
+ return (_jsxs(Div, { ref: dropdownRef, className: joinClasses("relative inline-block", className), children: [_jsxs(Button, { type: "button", onClick: () => setDropdownOpen((o) => !o), variant: "ghost", className: joinClasses("inline-flex items-center gap-[var(--appkit-space-1-5)] rounded-full border px-[var(--appkit-space-3)] py-[var(--appkit-space-1-5)] text-[length:var(--appkit-text-sm)] font-medium transition-colors", hasValue
79
84
  ? CLS_OPTION_SELECTED
80
- : "hover:border-zinc-400 border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface)] text-[var(--appkit-color-text-muted)] hover:border-[var(--appkit-color-border)]"), children: [title, hasValue && (_jsx(Span, { weight: "bold", className: CLS_OPTION_DOT, children: selected.length })), _jsx("svg", { className: cn("h-3.5 w-3.5 text-zinc-400 transition-transform", dropdownOpen ? "rotate-180" : ""), fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) })] }), dropdownOpen && (_jsxs(Div, { className: "absolute left-0 top-full z-[var(--appkit-z-dropdown,50)] mt-1 min-w-[180px] max-w-[260px]", surface: "default", rounded: "xl", shadow: "lg", border: "default", children: [searchable && (_jsx(Div, { border: "subtle", className: "border-b", padding: "xs", children: _jsx(Input, { type: "search", placeholder: "Search\u2026", value: search, onChange: (e) => handleSearch(e.target.value), className: "w-full rounded-md border px-[var(--appkit-space-2)] py-[var(--appkit-space-1)] text-[length:var(--appkit-text-xs)] focus:outline-none border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface-input)] text-[var(--appkit-color-text)]" }) })), _jsxs(Div, { className: `max-h-56 ${__O.yAuto}`, padding: "y-2xs", children: [filtered.map((option) => {
85
+ : "hover:border-zinc-400 border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface)] text-[var(--appkit-color-text-muted)] hover:border-[var(--appkit-color-border)]"), children: [title, hasValue && (_jsx(Span, { weight: "bold", className: CLS_OPTION_DOT, children: selected.length })), _jsx("svg", { className: joinClasses("h-3.5 w-3.5 text-zinc-400 transition-transform", dropdownOpen ? "rotate-180" : ""), fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) })] }), dropdownOpen && (_jsxs(Div, { className: "absolute left-0 top-full z-[var(--appkit-z-dropdown,50)] mt-1 min-w-[180px] max-w-[260px]", surface: "default", rounded: "xl", shadow: "lg", border: "default", children: [searchable && (_jsx(Div, { border: "subtle", className: "border-b", padding: "xs", children: _jsx(Input, { type: "search", placeholder: "Search\u2026", value: search, onChange: (e) => handleSearch(e.target.value), className: "w-full rounded-md border px-[var(--appkit-space-2)] py-[var(--appkit-space-1)] text-[length:var(--appkit-text-xs)] focus:outline-none border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface-input)] text-[var(--appkit-color-text)]" }) })), _jsxs(Div, { className: `max-h-56 ${__O.yAuto}`, padding: "y-2xs", children: [filtered.map((option) => {
81
86
  const isSelected = selected.includes(option.value);
82
87
  return (_jsxs(Row, { gap: "xs", className: "cursor-pointer py-[0.375rem] hover:bg-[var(--appkit-color-bg)] mx-1", padding: "x-sm", rounded: "lg", onClick: () => toggle(option.value), children: [_jsx(Checkbox, { bare: true, type: selectionMode === "single" ? "radio" : "checkbox", checked: isSelected, onChange: () => toggle(option.value), "aria-label": option.label, className: "h-3.5 w-3.5 flex-shrink-0 cursor-pointer rounded text-primary-600 border-[var(--appkit-color-border)] dark:text-secondary-500" }), _jsx(Span, { size: "xs", className: "flex-1 truncate", color: "muted", children: option.label }), option.count !== undefined && (_jsx(Span, { className: "flex-shrink-0 text-[10px] tabular-nums", color: "faint", children: option.count }))] }, option.value));
83
88
  }), filtered.length === 0 && (_jsx(Text, { paddingY: "xs", paddingX: "x-sm", color: "faint", size: "xs", children: "No results" }))] }), hasValue && (_jsx(Div, { border: "subtle", className: "border-t p-[0.25rem]", children: _jsx(Button, { type: "button", variant: "ghost", size: "sm", className: CLS_CLEAR_BTN, onClick: () => { onChange([]); onClear?.(); setDropdownOpen(false); }, children: "Clear" }) }))] }))] }));
84
89
  }
85
90
  // ── Accordion variant (default) ─────────────────────────────────────────
86
- return (_jsxs(Div, { className: cn("p-[var(--appkit-space-4)] border-b border-[var(--appkit-color-border)] last:border-b-0", className), children: [_jsxs(Row, { gap: "xs", children: [_jsxs(Button, { type: "button", onClick: handleToggle, variant: "ghost", size: "sm", justify: "between", className: "flex-1 text-[0.875rem] font-[600] text-[var(--appkit-color-text)] py-[0.25rem] hover:opacity-80 transition-opacity", "aria-expanded": !isCollapsed, children: [_jsxs(Row, { as: Span, gap: "xs", children: [title, hasValue && (_jsx(Span, { size: "xs", className: CLS_BADGE_COUNT, children: selected.length }))] }), _jsx("svg", { className: cn("w-4 h-4 shrink-0 text-[var(--appkit-color-text-muted)] transition-transform duration-200", isCollapsed ? "" : "rotate-180"), fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) })] }), onClear && hasValue && (_jsx(Button, { type: "button", onClick: onClear, variant: "ghost", size: "sm", className: CLS_CLEAR_ICON, "aria-label": "Clear filter", children: _jsx("svg", { className: "w-3 h-3 shrink-0", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2.5, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" }) }) }))] }), isCollapsed && hasValue && (_jsxs(Row, { wrap: true, gap: "xs", className: "mt-2", children: [selectedLabels.map((label) => (_jsx(Span, { layout: "inline-flex", size: "xs", className: "border border-[var(--appkit-color-border)]", rounded: "full", padding: "pill-xs", surface: "subtle", color: "muted", children: label }, label))), selected.length > 3 && (_jsxs(Span, { layout: "inline-flex", size: "xs", rounded: "full", padding: "pill-xs", color: "faint", children: ["+", selected.length - 3, " more"] }))] })), searchable && (_jsx(Div, { className: "mt-2", children: _jsx(Input, { type: "search", placeholder: "Search\u2026", value: search, onChange: (e) => handleSearch(e.target.value), className: "w-full rounded-md border border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface-input)] px-[var(--appkit-space-2-5)] py-[var(--appkit-space-1-5)] text-[length:var(--appkit-text-xs)] text-[var(--appkit-color-text)] focus:outline-none focus:ring-2 focus:ring-primary-500/20 " }) })), !isCollapsed && (_jsxs(Stack, { className: "mt-3", gap: "xs", children: [filtered.map((option) => {
91
+ return (_jsxs(Div, { className: joinClasses("p-[var(--appkit-space-4)] border-b border-[var(--appkit-color-border)] last:border-b-0", className), children: [_jsxs(Row, { gap: "xs", children: [_jsxs(Button, { type: "button", onClick: handleToggle, variant: "ghost", size: "sm", justify: "between", className: "flex-1 text-[0.875rem] font-[600] text-[var(--appkit-color-text)] py-[0.25rem] hover:opacity-80 transition-opacity", "aria-expanded": !isCollapsed, children: [_jsxs(Row, { as: Span, gap: "xs", children: [title, hasValue && (_jsx(Span, { size: "xs", className: CLS_BADGE_COUNT, children: selected.length }))] }), _jsx("svg", { className: joinClasses("w-4 h-4 shrink-0 text-[var(--appkit-color-text-muted)] transition-transform duration-200", isCollapsed ? "" : "rotate-180"), fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) })] }), onClear && hasValue && (_jsx(Button, { type: "button", onClick: onClear, variant: "ghost", size: "sm", className: CLS_CLEAR_ICON, "aria-label": "Clear filter", children: _jsx("svg", { className: "w-3 h-3 shrink-0", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2.5, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" }) }) }))] }), isCollapsed && hasValue && (_jsxs(Row, { wrap: true, gap: "xs", className: "mt-2", children: [selectedLabels.map((label) => (_jsx(Span, { layout: "inline-flex", size: "xs", className: "border border-[var(--appkit-color-border)]", rounded: "full", padding: "pill-xs", surface: "subtle", color: "muted", children: label }, label))), selected.length > 3 && (_jsxs(Span, { layout: "inline-flex", size: "xs", rounded: "full", padding: "pill-xs", color: "faint", children: ["+", selected.length - 3, " more"] }))] })), searchable && (_jsx(Div, { className: "mt-2", children: _jsx(Input, { type: "search", placeholder: "Search\u2026", value: search, onChange: (e) => handleSearch(e.target.value), className: "w-full rounded-md border border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface-input)] px-[var(--appkit-space-2-5)] py-[var(--appkit-space-1-5)] text-[length:var(--appkit-text-xs)] text-[var(--appkit-color-text)] focus:outline-none focus:ring-2 focus:ring-primary-500/20 " }) })), !isCollapsed && (_jsxs(Stack, { className: "mt-3", gap: "xs", children: [filtered.map((option) => {
87
92
  const isSelected = selected.includes(option.value);
88
- return (_jsxs(Row, { gap: "2.5", className: "cursor-pointer group", padding: "y-2xs", children: [selectionMode === "single" ? (_jsx(Checkbox, { bare: true, type: "radio", checked: isSelected, onChange: () => toggle(option.value), "aria-label": option.label, className: cn("flex-shrink-0 border-[var(--appkit-color-border)] cursor-pointer", "w-4 h-4 rounded-full text-primary-600 dark:text-secondary-500", "focus:ring-primary-500/30 dark:focus:ring-secondary-400/30") })) : (_jsx(Checkbox, { bare: true, type: "checkbox", checked: isSelected, onChange: () => toggle(option.value), "aria-label": option.label, className: cn("flex-shrink-0 border-[var(--appkit-color-border)] cursor-pointer", "w-4 h-4 rounded text-primary-600 dark:text-secondary-500 checked:bg-primary-600 dark:checked:bg-secondary-500", "focus:ring-primary-500/30 dark:focus:ring-secondary-400/30") })), _jsx(Span, { size: "sm", className: "flex-1 group-hover:text-[var(--appkit-color-text)] transition-colors truncate", color: "muted", children: option.label }), option.count !== undefined && (_jsx(Span, { size: "xs", className: "tabular-nums flex-shrink-0", color: "faint", children: option.count }))] }, option.value));
93
+ return (_jsxs(Row, { gap: "2.5", className: "cursor-pointer group", padding: "y-2xs", children: [selectionMode === "single" ? (_jsx(Checkbox, { bare: true, type: "radio", checked: isSelected, onChange: () => toggle(option.value), "aria-label": option.label, className: joinClasses("flex-shrink-0 border-[var(--appkit-color-border)] cursor-pointer", "w-4 h-4 rounded-full text-primary-600 dark:text-secondary-500", "focus:ring-primary-500/30 dark:focus:ring-secondary-400/30") })) : (_jsx(Checkbox, { bare: true, type: "checkbox", checked: isSelected, onChange: () => toggle(option.value), "aria-label": option.label, className: joinClasses("flex-shrink-0 border-[var(--appkit-color-border)] cursor-pointer", "w-4 h-4 rounded text-primary-600 dark:text-secondary-500 checked:bg-primary-600 dark:checked:bg-secondary-500", "focus:ring-primary-500/30 dark:focus:ring-secondary-400/30") })), _jsx(Span, { size: "sm", className: "flex-1 group-hover:text-[var(--appkit-color-text)] transition-colors truncate", color: "muted", children: option.label }), option.count !== undefined && (_jsx(Span, { size: "xs", className: "tabular-nums flex-shrink-0", color: "faint", children: option.count }))] }, option.value));
89
94
  }), filtered.length === 0 && (_jsx(Text, { paddingY: "2xs", color: "faint", size: "xs", children: "No results" }))] }))] }));
90
95
  }
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useState } from "react";
4
- import { Div } from "../../ui/index.js";
4
+ import { Div } from "../../ui/components/Div.js";
5
5
  import { FilterFacetSection } from "./FilterFacetSection.js";
6
6
  import { RangeFilter } from "./RangeFilter.js";
7
7
  import { SwitchFilter } from "./SwitchFilter.js";
@@ -1,8 +1,13 @@
1
1
  "use client";
2
2
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useState } from "react";
4
- import { Button, Div, Input, Row, Slider, Span, Stack, Text } from "../../ui/index.js";
5
- import { cn } from "./filterUtils.js";
4
+ import { Button } from "../../ui/components/Button.js";
5
+ import { Div } from "../../ui/components/Div.js";
6
+ import { Input } from "../../ui/components/Input.js";
7
+ import { Row, Stack } from "../../ui/components/Layout.js";
8
+ import { Slider } from "../../ui/components/Slider.js";
9
+ import { Span, Text } from "../../ui/components/Typography.js";
10
+ import { joinClasses } from "../../utils/classnames.js";
6
11
  const CLS_BADGE_COUNT = "inline-flex items-center justify-center w-5 h-5 rounded-full bg-success-surface dark:bg-success-surface text-success dark:text-success ring-1 ring-success/20";
7
12
  const CLS_CLEAR_BTN = "inline-flex items-center justify-center w-5 h-5 text-[var(--appkit-color-text-muted)] hover:text-error dark:hover:text-error rounded-full transition-colors";
8
13
  /**
@@ -63,5 +68,5 @@ export function RangeFilter({ title, minLabel, maxLabel, minValue, maxValue, onM
63
68
  onMaxChange("");
64
69
  });
65
70
  const inputClass = "w-full rounded-md border border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface-input)] px-[var(--appkit-space-2-5)] py-[var(--appkit-space-1-5)] text-[length:var(--appkit-text-xs)] text-[var(--appkit-color-text)] focus:outline-none focus:ring-2 focus:ring-primary-500/20 ";
66
- return (_jsxs(Div, { role: "group", "aria-labelledby": `rf-${title}`, className: cn("p-[var(--appkit-space-4)] border-b border-[var(--appkit-color-border)] last:border-b-0", className), children: [_jsxs(Row, { align: "center", gap: "sm", children: [_jsxs(Button, { type: "button", id: `rf-${title}`, onClick: handleToggle, variant: "ghost", size: "sm", justify: "between", className: "flex-1 text-[0.875rem] font-[600] text-[var(--appkit-color-text)] py-[0.25rem] hover:opacity-80 transition-opacity", "aria-expanded": !isCollapsed, children: [_jsxs(Span, { layout: "flex", gap: "md", children: [title, hasValue && (_jsx(Span, { size: "xs", className: CLS_BADGE_COUNT, children: "1" }))] }), _jsx("svg", { className: cn("w-4 h-4 shrink-0 text-[var(--appkit-color-text-muted)] transition-transform duration-200", isCollapsed ? "" : "rotate-180"), fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) })] }), hasValue && (_jsx(Button, { type: "button", onClick: handleClear, variant: "ghost", size: "sm", className: CLS_CLEAR_BTN, "aria-label": "Clear", children: _jsx("svg", { className: "w-3 h-3 shrink-0", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2.5, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" }) }) }))] }), !isCollapsed && (_jsxs(Stack, { gap: "3", className: "mt-3", children: [canShowSlider && (_jsx(DualSlider, { minValue: minValue, maxValue: maxValue, onMinChange: onMinChange, onMaxChange: onMaxChange, minBound: minBound, maxBound: maxBound, step: step, prefix: prefix })), _jsxs(Row, { align: "end", gap: "sm", children: [_jsxs(Div, { className: "flex-1 min-w-0", children: [minLabel && (_jsx(Text, { className: "mb-1", color: "muted", size: "xs", children: minLabel })), _jsxs(Div, { className: "relative", children: [prefix && (_jsx(Span, { size: "xs", className: "absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none", color: "faint", children: prefix })), _jsx(Input, { type: type, value: minValue, onChange: (e) => onMinChange(e.target.value), placeholder: minPlaceholder ?? (type === "date" ? "From" : "Min"), className: cn(inputClass, prefix ? "pl-5" : "") })] })] }), _jsx(Span, { size: "xs", className: "flex-shrink-0 pb-[0.375rem]", color: "faint", children: "-" }), _jsxs(Div, { className: "flex-1 min-w-0", children: [maxLabel && (_jsx(Text, { className: "mb-1", color: "muted", size: "xs", children: maxLabel })), _jsxs(Div, { className: "relative", children: [prefix && (_jsx(Span, { size: "xs", className: "absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none", color: "faint", children: prefix })), _jsx(Input, { type: type, value: maxValue, onChange: (e) => onMaxChange(e.target.value), placeholder: maxPlaceholder ?? (type === "date" ? "To" : "Max"), className: cn(inputClass, prefix ? "pl-5" : "") })] })] })] })] }))] }));
71
+ return (_jsxs(Div, { role: "group", "aria-labelledby": `rf-${title}`, className: joinClasses("p-[var(--appkit-space-4)] border-b border-[var(--appkit-color-border)] last:border-b-0", className), children: [_jsxs(Row, { align: "center", gap: "sm", children: [_jsxs(Button, { type: "button", id: `rf-${title}`, onClick: handleToggle, variant: "ghost", size: "sm", justify: "between", className: "flex-1 text-[0.875rem] font-[600] text-[var(--appkit-color-text)] py-[0.25rem] hover:opacity-80 transition-opacity", "aria-expanded": !isCollapsed, children: [_jsxs(Span, { layout: "flex", gap: "md", children: [title, hasValue && (_jsx(Span, { size: "xs", className: CLS_BADGE_COUNT, children: "1" }))] }), _jsx("svg", { className: joinClasses("w-4 h-4 shrink-0 text-[var(--appkit-color-text-muted)] transition-transform duration-200", isCollapsed ? "" : "rotate-180"), fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) })] }), hasValue && (_jsx(Button, { type: "button", onClick: handleClear, variant: "ghost", size: "sm", className: CLS_CLEAR_BTN, "aria-label": "Clear", children: _jsx("svg", { className: "w-3 h-3 shrink-0", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2.5, "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" }) }) }))] }), !isCollapsed && (_jsxs(Stack, { gap: "3", className: "mt-3", children: [canShowSlider && (_jsx(DualSlider, { minValue: minValue, maxValue: maxValue, onMinChange: onMinChange, onMaxChange: onMaxChange, minBound: minBound, maxBound: maxBound, step: step, prefix: prefix })), _jsxs(Row, { align: "end", gap: "sm", children: [_jsxs(Div, { className: "flex-1 min-w-0", children: [minLabel && (_jsx(Text, { className: "mb-1", color: "muted", size: "xs", children: minLabel })), _jsxs(Div, { className: "relative", children: [prefix && (_jsx(Span, { size: "xs", className: "absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none", color: "faint", children: prefix })), _jsx(Input, { type: type, value: minValue, onChange: (e) => onMinChange(e.target.value), placeholder: minPlaceholder ?? (type === "date" ? "From" : "Min"), className: joinClasses(inputClass, prefix ? "pl-5" : "") })] })] }), _jsx(Span, { size: "xs", className: "flex-shrink-0 pb-[0.375rem]", color: "faint", children: "-" }), _jsxs(Div, { className: "flex-1 min-w-0", children: [maxLabel && (_jsx(Text, { className: "mb-1", color: "muted", size: "xs", children: maxLabel })), _jsxs(Div, { className: "relative", children: [prefix && (_jsx(Span, { size: "xs", className: "absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none", color: "faint", children: prefix })), _jsx(Input, { type: type, value: maxValue, onChange: (e) => onMaxChange(e.target.value), placeholder: maxPlaceholder ?? (type === "date" ? "To" : "Max"), className: joinClasses(inputClass, prefix ? "pl-5" : "") })] })] })] })] }))] }));
67
72
  }