@mohasinac/appkit 2.7.56 → 2.7.58

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 (364) hide show
  1. package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +7 -1
  2. package/dist/_internal/client/features/layout/DashboardLayoutClient.js +8 -2
  3. package/dist/_internal/shared/actions/action-registry.js +31 -5
  4. package/dist/client.d.ts +2 -4
  5. package/dist/client.js +2 -3
  6. package/dist/configs/tailwind.d.ts +16 -3
  7. package/dist/configs/tailwind.js +18 -5
  8. package/dist/constants/field-names.d.ts +3 -0
  9. package/dist/constants/field-names.js +3 -0
  10. package/dist/features/about/components/FAQPageView.js +2 -2
  11. package/dist/features/about/components/FeesView.js +1 -1
  12. package/dist/features/about/components/PolicyPageView.js +1 -1
  13. package/dist/features/about/components/PublicProfileView.js +1 -1
  14. package/dist/features/account/components/AddressBook.js +1 -1
  15. package/dist/features/account/components/AddressesIndexListing.js +1 -1
  16. package/dist/features/account/components/BuyerAccountGuideView.js +7 -7
  17. package/dist/features/account/components/BuyerAuctionsGuideView.js +7 -7
  18. package/dist/features/account/components/BuyerOrdersGuideView.js +6 -6
  19. package/dist/features/account/components/BuyerShoppingGuideView.js +7 -7
  20. package/dist/features/account/components/MessagesView.js +1 -1
  21. package/dist/features/account/components/NotificationPreferencesPanel.js +12 -3
  22. package/dist/features/account/components/UserOffersPanel.js +2 -2
  23. package/dist/features/account/components/UserSidebar.js +3 -3
  24. package/dist/features/account/components/UserSupportView.js +5 -5
  25. package/dist/features/admin/components/AdminAdsView.js +1 -1
  26. package/dist/features/admin/components/AdminAllEventEntriesView.js +2 -2
  27. package/dist/features/admin/components/AdminAnalyticsGuideView.js +3 -3
  28. package/dist/features/admin/components/AdminBidsView.js +6 -2
  29. package/dist/features/admin/components/AdminBlogView.js +7 -2
  30. package/dist/features/admin/components/AdminBrandsView.js +7 -2
  31. package/dist/features/admin/components/AdminBundleEditorView.js +13 -9
  32. package/dist/features/admin/components/AdminBundlesView.js +4 -2
  33. package/dist/features/admin/components/AdminCarouselEditorView.js +7 -8
  34. package/dist/features/admin/components/AdminCarouselView.js +6 -4
  35. package/dist/features/admin/components/AdminCartsView.js +1 -1
  36. package/dist/features/admin/components/AdminCatalogGuideView.js +5 -5
  37. package/dist/features/admin/components/AdminCategoriesView.js +7 -2
  38. package/dist/features/admin/components/AdminContactEditorView.js +2 -2
  39. package/dist/features/admin/components/AdminContactView.js +4 -2
  40. package/dist/features/admin/components/AdminContentGuideView.js +6 -6
  41. package/dist/features/admin/components/AdminCouponsView.js +4 -2
  42. package/dist/features/admin/components/AdminEmployeeEditorView.js +1 -1
  43. package/dist/features/admin/components/AdminFaqsView.js +4 -2
  44. package/dist/features/admin/components/AdminFeatureFlagsView.js +1 -1
  45. package/dist/features/admin/components/AdminFeaturesView.js +5 -1
  46. package/dist/features/admin/components/AdminGuideHubView.js +1 -1
  47. package/dist/features/admin/components/AdminHistoryView.js +1 -1
  48. package/dist/features/admin/components/AdminListingScaffold.js +1 -1
  49. package/dist/features/admin/components/AdminMediaView.js +10 -5
  50. package/dist/features/admin/components/AdminNavigationView.js +1 -1
  51. package/dist/features/admin/components/AdminNewsletterView.js +4 -2
  52. package/dist/features/admin/components/AdminNotificationsView.js +7 -2
  53. package/dist/features/admin/components/AdminOrdersGuideView.js +5 -5
  54. package/dist/features/admin/components/AdminOrdersView.js +11 -2
  55. package/dist/features/admin/components/AdminPayoutsView.js +6 -2
  56. package/dist/features/admin/components/AdminPrizeDrawsView.js +4 -0
  57. package/dist/features/admin/components/AdminProductsView.js +14 -2
  58. package/dist/features/admin/components/AdminReturnRequestsView.js +1 -1
  59. package/dist/features/admin/components/AdminReviewsView.js +7 -2
  60. package/dist/features/admin/components/AdminScammerEditorView.js +3 -3
  61. package/dist/features/admin/components/AdminScammersView.js +5 -5
  62. package/dist/features/admin/components/AdminSectionsView.js +2 -2
  63. package/dist/features/admin/components/AdminSessionsView.js +6 -2
  64. package/dist/features/admin/components/AdminSidebar.js +3 -3
  65. package/dist/features/admin/components/AdminSiteSettingsView.js +1 -1
  66. package/dist/features/admin/components/AdminStoreAddressesView.js +1 -1
  67. package/dist/features/admin/components/AdminStoreEditorView.js +1 -1
  68. package/dist/features/admin/components/AdminStoresGuideView.js +6 -6
  69. package/dist/features/admin/components/AdminStoresView.js +7 -2
  70. package/dist/features/admin/components/AdminSublistingCategoriesView.js +3 -1
  71. package/dist/features/admin/components/AdminSupportTicketDetailView.js +4 -4
  72. package/dist/features/admin/components/AdminSupportTicketsView.js +8 -8
  73. package/dist/features/admin/components/AdminTeamGuideView.js +4 -4
  74. package/dist/features/admin/components/AdminTeamView.js +4 -2
  75. package/dist/features/admin/components/AdminTrustGuideView.js +5 -5
  76. package/dist/features/admin/components/AdminUserEditorView.js +2 -2
  77. package/dist/features/admin/components/AdminUsersGuideView.js +5 -5
  78. package/dist/features/admin/components/AdminUsersView.js +6 -2
  79. package/dist/features/admin/components/AdminViewCards.js +3 -3
  80. package/dist/features/admin/components/AdminWishlistsView.js +1 -1
  81. package/dist/features/admin/components/DataTable.js +1 -1
  82. package/dist/features/admin/constants/filter-tabs.d.ts +9 -0
  83. package/dist/features/admin/constants/filter-tabs.js +3 -0
  84. package/dist/features/auctions/components/AuctionBidsTable.js +1 -1
  85. package/dist/features/auctions/components/AuctionBottomActions.d.ts +7 -0
  86. package/dist/features/auctions/components/AuctionBottomActions.js +24 -0
  87. package/dist/features/auctions/components/AuctionDetailPageView.js +7 -7
  88. package/dist/features/auctions/components/AuctionsListView.js +1 -1
  89. package/dist/features/auctions/components/MarketplaceAuctionCard.js +2 -2
  90. package/dist/features/auctions/components/MarketplaceAuctionGrid.js +1 -1
  91. package/dist/features/auctions/components/PlaceBidFormClient.js +1 -1
  92. package/dist/features/auth/components/LoginForm.js +1 -1
  93. package/dist/features/auth/components/VerifyEmailView.js +2 -2
  94. package/dist/features/before-after/components/BeforeAfterGallery.js +1 -1
  95. package/dist/features/blog/components/BlogFeaturedCard.js +1 -1
  96. package/dist/features/blog/components/BlogIndexListing.js +1 -1
  97. package/dist/features/blog/components/BlogListView.js +2 -2
  98. package/dist/features/blog/components/BlogPostView.js +8 -8
  99. package/dist/features/cart/components/CartDrawer.js +2 -2
  100. package/dist/features/cart/repository/cart.repository.js +11 -4
  101. package/dist/features/cart/schemas/firestore.d.ts +3 -0
  102. package/dist/features/categories/components/BrandDetailPageView.js +1 -1
  103. package/dist/features/categories/components/CategoriesIndexListing.js +1 -1
  104. package/dist/features/categories/components/CategoryDetailPageView.js +39 -3
  105. package/dist/features/categories/components/CategoryDetailTabs.d.ts +4 -1
  106. package/dist/features/categories/components/CategoryDetailTabs.js +7 -2
  107. package/dist/features/categories/components/CategoryGrid.js +1 -1
  108. package/dist/features/categories/components/CategoryProductsView.js +1 -1
  109. package/dist/features/categories/components/CategoryStoresListing.d.ts +5 -0
  110. package/dist/features/categories/components/CategoryStoresListing.js +11 -0
  111. package/dist/features/categories/components/CategoryTableColumns.js +2 -2
  112. package/dist/features/categories/components/CategoryTree.js +1 -1
  113. package/dist/features/categories/components/index.d.ts +2 -0
  114. package/dist/features/categories/components/index.js +1 -0
  115. package/dist/features/checkout/components/CheckoutStepper.js +2 -2
  116. package/dist/features/classified/components/ClassifiedIndexListing.js +2 -0
  117. package/dist/features/classified/components/ClassifiedListView.js +1 -1
  118. package/dist/features/collections/components/CollectionCard.js +1 -1
  119. package/dist/features/contact/components/ContactInfoSidebar.js +1 -1
  120. package/dist/features/copilot/components/AdminCopilotView.js +2 -2
  121. package/dist/features/digital-codes/components/DigitalCodesIndexListing.js +2 -0
  122. package/dist/features/digital-codes/components/DigitalCodesListView.js +1 -1
  123. package/dist/features/events/components/AdminEventsView.js +5 -1
  124. package/dist/features/events/components/EventCard.js +1 -1
  125. package/dist/features/events/components/EventPollWidget.js +3 -3
  126. package/dist/features/events/components/EventStatusBadge.js +5 -5
  127. package/dist/features/events/components/EventsIndexListing.js +1 -1
  128. package/dist/features/events/components/EventsListView.js +2 -2
  129. package/dist/features/events/components/SpinWheelView.js +5 -3
  130. package/dist/features/faq/components/FAQAccordion.js +2 -2
  131. package/dist/features/filters/AsyncFacetSection.js +3 -3
  132. package/dist/features/filters/FilterFacetSection.js +5 -5
  133. package/dist/features/filters/RangeFilter.js +1 -1
  134. package/dist/features/forms/Input.js +5 -5
  135. package/dist/features/forms/Select.js +3 -3
  136. package/dist/features/forms/Slider.js +1 -1
  137. package/dist/features/forms/Textarea.js +3 -3
  138. package/dist/features/forms/utils.d.ts +2 -2
  139. package/dist/features/forms/utils.js +2 -2
  140. package/dist/features/history/hooks/useHistory.js +23 -10
  141. package/dist/features/homepage/components/AdvertisementBanner.js +2 -2
  142. package/dist/features/homepage/components/CharacterHotspotForm.js +2 -2
  143. package/dist/features/homepage/components/FeaturedResultsSection.js +1 -1
  144. package/dist/features/homepage/components/HeroSection.js +1 -1
  145. package/dist/features/homepage/components/NewsletterSection.js +1 -1
  146. package/dist/features/homepage/components/SectionCarousel.js +1 -1
  147. package/dist/features/layout/BottomActions.js +2 -2
  148. package/dist/features/layout/ListingLayout.js +3 -3
  149. package/dist/features/layout/TitleBarLayout.js +1 -1
  150. package/dist/features/live/components/LiveItemsIndexListing.js +2 -0
  151. package/dist/features/live/components/LiveItemsListView.js +1 -1
  152. package/dist/features/media/index.d.ts +2 -0
  153. package/dist/features/media/index.js +1 -0
  154. package/dist/features/media/modals/ImageCropModal.js +1 -1
  155. package/dist/features/media/modals/ImageEditor.d.ts +12 -0
  156. package/dist/features/media/modals/ImageEditor.js +73 -0
  157. package/dist/features/media/upload/ImageUpload.d.ts +5 -1
  158. package/dist/features/media/upload/ImageUpload.js +33 -8
  159. package/dist/features/media/upload/MediaUploadField.d.ts +5 -1
  160. package/dist/features/media/upload/MediaUploadField.js +26 -12
  161. package/dist/features/orders/components/OrdersList.js +12 -12
  162. package/dist/features/orders/components/RefundHistoryTable.js +2 -2
  163. package/dist/features/orders/components/RefundRequestView.js +3 -3
  164. package/dist/features/pre-orders/components/MarketplacePreorderCard.js +1 -1
  165. package/dist/features/pre-orders/components/PreOrderActionsClient.js +1 -1
  166. package/dist/features/pre-orders/components/PreOrderBadge.js +5 -5
  167. package/dist/features/pre-orders/components/PreOrderBottomActions.d.ts +5 -0
  168. package/dist/features/pre-orders/components/PreOrderBottomActions.js +22 -0
  169. package/dist/features/pre-orders/components/PreOrderDetailPageView.js +5 -5
  170. package/dist/features/pre-orders/components/PreOrdersIndexListing.js +47 -0
  171. package/dist/features/pre-orders/components/PreOrdersListView.js +1 -1
  172. package/dist/features/pre-orders/components/PreorderCard.js +3 -3
  173. package/dist/features/products/components/AuctionsIndexListing.js +23 -0
  174. package/dist/features/products/components/BidHistory.js +2 -2
  175. package/dist/features/products/components/CompareOverlay.js +1 -1
  176. package/dist/features/products/components/CustomFieldsEditor.js +1 -1
  177. package/dist/features/products/components/CustomSectionTabContent.js +1 -1
  178. package/dist/features/products/components/CustomSectionsEditor.js +1 -1
  179. package/dist/features/products/components/GroupSettingsPanel.js +2 -2
  180. package/dist/features/products/components/MakeOfferButton.js +2 -2
  181. package/dist/features/products/components/PrizeDrawBottomActions.d.ts +6 -0
  182. package/dist/features/products/components/PrizeDrawBottomActions.js +24 -0
  183. package/dist/features/products/components/PrizeDrawDetailPageView.js +5 -7
  184. package/dist/features/products/components/PrizeDrawEntryActions.js +5 -18
  185. package/dist/features/products/components/PrizeDrawItemsEditor.js +3 -3
  186. package/dist/features/products/components/PrizeRevealModal.js +7 -4
  187. package/dist/features/products/components/ProductDetailActions.d.ts +6 -1
  188. package/dist/features/products/components/ProductDetailActions.js +36 -6
  189. package/dist/features/products/components/ProductDetailPageView.js +19 -18
  190. package/dist/features/products/components/ProductFeaturesSelector.js +1 -1
  191. package/dist/features/products/components/ProductGalleryClient.js +1 -1
  192. package/dist/features/products/components/ProductGrid.js +8 -8
  193. package/dist/features/products/components/ProductTabs.js +1 -1
  194. package/dist/features/products/components/ProductTabsShell.js +1 -1
  195. package/dist/features/products/components/ProductsIndexListing.js +47 -0
  196. package/dist/features/products/components/RelatedProducts.js +1 -1
  197. package/dist/features/products/components/ShowGroupSection.js +1 -1
  198. package/dist/features/products/components/SublistingCarouselSection.js +1 -1
  199. package/dist/features/products/components/SublistingCategorySelect.js +1 -1
  200. package/dist/features/products/components/index.d.ts +0 -2
  201. package/dist/features/products/components/index.js +0 -1
  202. package/dist/features/products/constants/action-defs.d.ts +7 -0
  203. package/dist/features/products/constants/action-defs.js +14 -0
  204. package/dist/features/products/constants/listing-tabs.d.ts +6 -0
  205. package/dist/features/products/constants/listing-tabs.js +1 -0
  206. package/dist/features/promotions/components/CouponCard.js +3 -3
  207. package/dist/features/promotions/components/CouponsIndexListing.js +2 -2
  208. package/dist/features/promotions/components/PromotionsView.js +1 -1
  209. package/dist/features/reviews/components/ReviewDetailPageView.js +1 -1
  210. package/dist/features/reviews/components/ReviewDetailShell.js +4 -4
  211. package/dist/features/reviews/components/ReviewModal.js +2 -2
  212. package/dist/features/reviews/components/ReviewSummary.js +1 -1
  213. package/dist/features/reviews/components/ReviewsIndexListing.js +1 -1
  214. package/dist/features/reviews/components/ReviewsList.js +1 -1
  215. package/dist/features/seller/components/SellerAddressesView.js +4 -3
  216. package/dist/features/seller/components/SellerAnalyticsAlertsView.js +2 -2
  217. package/dist/features/seller/components/SellerAuctionsView.js +11 -4
  218. package/dist/features/seller/components/SellerBidsView.js +22 -7
  219. package/dist/features/seller/components/SellerBundlesView.js +11 -4
  220. package/dist/features/seller/components/SellerClassifiedView.js +12 -5
  221. package/dist/features/seller/components/SellerCouponEditorView.js +2 -2
  222. package/dist/features/seller/components/SellerCouponsView.js +13 -4
  223. package/dist/features/seller/components/SellerDigitalCodesView.js +11 -4
  224. package/dist/features/seller/components/SellerFeaturesView.js +1 -1
  225. package/dist/features/seller/components/SellerGoogleReviewsView.js +10 -5
  226. package/dist/features/seller/components/SellerGroupedListingsView.js +2 -0
  227. package/dist/features/seller/components/SellerLiveView.js +13 -6
  228. package/dist/features/seller/components/SellerOffersPanel.js +2 -2
  229. package/dist/features/seller/components/SellerOffersView.js +2 -2
  230. package/dist/features/seller/components/SellerOrdersView.js +41 -18
  231. package/dist/features/seller/components/SellerPayoutMethodsView.js +14 -5
  232. package/dist/features/seller/components/SellerPayoutsView.js +2 -2
  233. package/dist/features/seller/components/SellerPreOrdersView.js +7 -2
  234. package/dist/features/seller/components/SellerPrizeDrawsView.js +7 -2
  235. package/dist/features/seller/components/SellerProductShell.js +27 -9
  236. package/dist/features/seller/components/SellerProductsCards.js +2 -1
  237. package/dist/features/seller/components/SellerProductsView.js +22 -9
  238. package/dist/features/seller/components/SellerReviewsView.js +9 -1
  239. package/dist/features/seller/components/SellerShippingConfigsView.js +15 -6
  240. package/dist/features/seller/components/SellerSidebar.js +2 -2
  241. package/dist/features/seller/components/SellerStoreCategoriesView.js +11 -4
  242. package/dist/features/seller/components/SellerTemplatesView.js +20 -7
  243. package/dist/features/seller/components/analytics/SellerTopProducts.js +1 -1
  244. package/dist/features/shell/StepForm.js +9 -3
  245. package/dist/features/site-settings/components/ActionPermissionsManager.js +1 -1
  246. package/dist/features/site-settings/components/NavPermissionsManager.js +1 -1
  247. package/dist/features/stores/components/InteractiveStoreCard.js +1 -1
  248. package/dist/features/stores/components/StoreDetailLayoutView.js +1 -1
  249. package/dist/features/stores/components/StoreFinanceGuideView.js +2 -2
  250. package/dist/features/stores/components/StoreHeader.js +1 -1
  251. package/dist/features/stores/components/StoreListingsGuideView.js +3 -3
  252. package/dist/features/stores/components/StoreOrdersGuideView.js +4 -4
  253. package/dist/features/stores/components/StoreReviewsListing.js +1 -1
  254. package/dist/features/stores/components/StoreSettingsGuideView.js +2 -2
  255. package/dist/features/stores/components/StoresIndexListing.js +17 -1
  256. package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +4 -4
  257. package/dist/features/wishlist/components/WishlistPage.js +3 -3
  258. package/dist/features/wishlist/hooks/useWishlistToggle.js +6 -1
  259. package/dist/index.d.ts +5 -2
  260. package/dist/index.js +9 -3
  261. package/dist/react/hooks/use-action-dispatch.d.ts +5 -0
  262. package/dist/react/hooks/use-action-dispatch.js +10 -0
  263. package/dist/seed/cart-seed-data.js +50 -3
  264. package/dist/seed/categories-seed-data.js +80 -16
  265. package/dist/seed/index.d.ts +3 -0
  266. package/dist/seed/index.js +3 -0
  267. package/dist/seed/manifest.js +15 -1
  268. package/dist/seed/products-classifieds-seed-data.d.ts +10 -0
  269. package/dist/seed/products-classifieds-seed-data.js +197 -0
  270. package/dist/seed/products-digital-codes-seed-data.d.ts +10 -0
  271. package/dist/seed/products-digital-codes-seed-data.js +204 -0
  272. package/dist/seed/products-live-items-seed-data.d.ts +13 -0
  273. package/dist/seed/products-live-items-seed-data.js +190 -0
  274. package/dist/styles.css +301 -3
  275. package/dist/tailwind-utilities.css +1 -1
  276. package/dist/tokens/index.d.ts +3 -3
  277. package/dist/tokens/index.js +3 -3
  278. package/dist/tokens/motion.d.ts +162 -0
  279. package/dist/tokens/motion.js +89 -0
  280. package/dist/ui/DataTable.js +6 -5
  281. package/dist/ui/components/Accordion.js +2 -1
  282. package/dist/ui/components/Button.style.css +15 -0
  283. package/dist/ui/components/Card.d.ts +5 -2
  284. package/dist/ui/components/Card.js +29 -11
  285. package/dist/ui/components/Div.d.ts +2 -16
  286. package/dist/ui/components/Div.js +2 -16
  287. package/dist/ui/components/Input.js +1 -1
  288. package/dist/ui/components/Layout.d.ts +9 -19
  289. package/dist/ui/components/Layout.js +9 -7
  290. package/dist/ui/components/ListingToolbar.js +1 -1
  291. package/dist/ui/components/Modal.js +7 -4
  292. package/dist/ui/components/Motion.d.ts +75 -0
  293. package/dist/ui/components/Motion.js +122 -0
  294. package/dist/ui/components/Select.js +1 -1
  295. package/dist/ui/components/Semantic.d.ts +81 -14
  296. package/dist/ui/components/Semantic.js +75 -10
  297. package/dist/ui/components/Semantic.style.css +261 -2
  298. package/dist/ui/components/SideDrawer.d.ts +1 -1
  299. package/dist/ui/components/SideDrawer.js +8 -6
  300. package/dist/ui/components/SideModal.d.ts +1 -1
  301. package/dist/ui/components/SideModal.js +11 -9
  302. package/dist/ui/components/StackedViewShell.js +6 -1
  303. package/dist/ui/components/StatsGrid.js +1 -1
  304. package/dist/ui/components/Toast.js +5 -2
  305. package/dist/ui/components/Typography.d.ts +44 -3
  306. package/dist/ui/components/Typography.js +15 -30
  307. package/dist/ui/components/Typography.style.css +24 -0
  308. package/dist/ui/components/VacationBanner.js +2 -1
  309. package/dist/ui/components/surface-tokens.d.ts +70 -0
  310. package/dist/ui/components/surface-tokens.js +68 -0
  311. package/dist/ui/forms/FormShell.d.ts +6 -1
  312. package/dist/ui/forms/FormShell.js +32 -4
  313. package/dist/ui/index.d.ts +9 -6
  314. package/dist/ui/index.js +4 -4
  315. package/dist/validation/schemas.d.ts +28 -28
  316. package/package.json +3 -1
  317. package/dist/_internal/client/features/seller/print-center/InventoryLabel.d.ts +0 -12
  318. package/dist/_internal/client/features/seller/print-center/InventoryLabel.js +0 -49
  319. package/dist/_internal/client/features/seller/print-center/LabelDesignPicker.d.ts +0 -7
  320. package/dist/_internal/client/features/seller/print-center/LabelDesignPicker.js +0 -32
  321. package/dist/_internal/client/features/seller/print-center/OrderPackingLabel.d.ts +0 -28
  322. package/dist/_internal/client/features/seller/print-center/OrderPackingLabel.js +0 -33
  323. package/dist/_internal/client/features/seller/print-center/PhysicalLocationModal.d.ts +0 -12
  324. package/dist/_internal/client/features/seller/print-center/PhysicalLocationModal.js +0 -30
  325. package/dist/_internal/client/features/seller/print-center/PrintCenterView.d.ts +0 -12
  326. package/dist/_internal/client/features/seller/print-center/PrintCenterView.js +0 -102
  327. package/dist/_internal/client/features/seller/print-center/PrintGrid.d.ts +0 -12
  328. package/dist/_internal/client/features/seller/print-center/PrintGrid.js +0 -13
  329. package/dist/_internal/client/features/seller/print-center/StoreCard.d.ts +0 -19
  330. package/dist/_internal/client/features/seller/print-center/StoreCard.js +0 -30
  331. package/dist/_internal/client/features/seller/print-center/WebsiteCard.d.ts +0 -11
  332. package/dist/_internal/client/features/seller/print-center/WebsiteCard.js +0 -25
  333. package/dist/_internal/client/features/seller/print-center/index.d.ts +0 -11
  334. package/dist/_internal/client/features/seller/print-center/index.js +0 -10
  335. package/dist/_internal/client/features/seller/print-center/types.d.ts +0 -20
  336. package/dist/_internal/client/features/seller/print-center/types.js +0 -20
  337. package/dist/_internal/client/features/seller/print-center/useInventoryPdf.d.ts +0 -18
  338. package/dist/_internal/client/features/seller/print-center/useInventoryPdf.js +0 -76
  339. package/dist/features/account/repository/address.repository.d.ts +0 -17
  340. package/dist/features/account/repository/address.repository.js +0 -184
  341. package/dist/features/auctions/components/AuctionCard.d.ts +0 -29
  342. package/dist/features/auctions/components/AuctionCard.js +0 -38
  343. package/dist/features/categories/components/BundleAddToCartCta.d.ts +0 -16
  344. package/dist/features/categories/components/BundleAddToCartCta.js +0 -54
  345. package/dist/features/categories/components/CategoriesListView.d.ts +0 -31
  346. package/dist/features/categories/components/CategoriesListView.js +0 -27
  347. package/dist/features/products/components/AuctionsView.d.ts +0 -6
  348. package/dist/features/products/components/AuctionsView.js +0 -5
  349. package/dist/features/products/components/BuyBar.d.ts +0 -21
  350. package/dist/features/products/components/BuyBar.js +0 -19
  351. package/dist/features/products/components/PreOrdersView.d.ts +0 -6
  352. package/dist/features/products/components/PreOrdersView.js +0 -5
  353. package/dist/features/reviews/components/ReviewsListView.d.ts +0 -31
  354. package/dist/features/reviews/components/ReviewsListView.js +0 -16
  355. package/dist/features/stores/components/StoresListView.d.ts +0 -19
  356. package/dist/features/stores/components/StoresListView.js +0 -25
  357. package/dist/features/stores/repository/store-address.repository.d.ts +0 -55
  358. package/dist/features/stores/repository/store-address.repository.js +0 -187
  359. package/dist/ui/components/BulkActionsBar.d.ts +0 -18
  360. package/dist/ui/components/BulkActionsBar.js +0 -25
  361. package/dist/ui/components/CollageLightbox.d.ts +0 -18
  362. package/dist/ui/components/CollageLightbox.js +0 -41
  363. package/dist/ui/components/StickyBottomBar.d.ts +0 -22
  364. package/dist/ui/components/StickyBottomBar.js +0 -20
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Surface & layout tokens — shared prop maps for all layout primitives.
3
+ *
4
+ * These maps power the Bootstrap/MUI-style props (`surface`, `padding`,
5
+ * `rounded`, `border`, `shadow`) on Stack, Row, Grid, Container, Section,
6
+ * Article, Main, Aside, Div, BlockHeader, and BlockFooter.
7
+ */
8
+ export declare const SURFACE_MAP: {
9
+ readonly none: "";
10
+ readonly default: "bg-white dark:bg-slate-900";
11
+ readonly muted: "bg-zinc-50 dark:bg-slate-950";
12
+ readonly subtle: "bg-zinc-100 dark:bg-slate-900";
13
+ readonly inset: "bg-zinc-200 dark:bg-slate-800";
14
+ readonly card: "bg-white dark:bg-slate-900 border border-zinc-200 dark:border-slate-700 rounded-xl shadow-sm";
15
+ readonly elevated: "bg-white dark:bg-slate-900 border border-zinc-200 dark:border-slate-700 rounded-2xl shadow-md";
16
+ readonly interactive: "bg-white dark:bg-slate-900 border border-zinc-200 dark:border-slate-700 rounded-xl shadow-sm hover:shadow-md hover:border-primary-300/60 dark:hover:border-secondary-500/60 transition-all cursor-pointer";
17
+ readonly glass: "backdrop-blur-md bg-white/85 dark:bg-slate-900/85 border border-zinc-200/60 dark:border-slate-700/40 rounded-2xl shadow-lg";
18
+ readonly form: "bg-white dark:bg-slate-900 rounded-2xl border border-zinc-200 dark:border-slate-700 shadow-sm";
19
+ };
20
+ export type SurfaceKey = keyof typeof SURFACE_MAP;
21
+ export declare const PADDING_MAP: {
22
+ readonly none: "";
23
+ readonly xs: "p-2";
24
+ readonly sm: "p-3";
25
+ readonly md: "p-4";
26
+ readonly lg: "p-6";
27
+ readonly xl: "p-8";
28
+ readonly card: "p-5 sm:p-6 lg:p-8";
29
+ readonly section: "py-10 sm:py-14 xl:py-20";
30
+ readonly sectionSm: "py-6 sm:py-10";
31
+ readonly page: "py-6 sm:py-8 lg:py-10";
32
+ readonly inline: "px-4 py-3";
33
+ readonly inlineSm: "px-3 py-2";
34
+ readonly inlineLg: "px-6 py-4";
35
+ };
36
+ export type PaddingKey = keyof typeof PADDING_MAP;
37
+ export declare const ROUNDED_MAP: {
38
+ readonly none: "";
39
+ readonly sm: "rounded-sm";
40
+ readonly md: "rounded-md";
41
+ readonly lg: "rounded-lg";
42
+ readonly xl: "rounded-xl";
43
+ readonly "2xl": "rounded-2xl";
44
+ readonly full: "rounded-full";
45
+ };
46
+ export type RoundedKey = keyof typeof ROUNDED_MAP;
47
+ export declare const BORDER_MAP: {
48
+ readonly none: "";
49
+ readonly default: "border border-zinc-200 dark:border-slate-700";
50
+ readonly subtle: "border border-zinc-100 dark:border-slate-800/60";
51
+ readonly strong: "border border-zinc-300 dark:border-slate-600";
52
+ readonly dashed: "border border-dashed border-zinc-300 dark:border-slate-600";
53
+ };
54
+ export type BorderKey = keyof typeof BORDER_MAP;
55
+ export declare const SHADOW_MAP: {
56
+ readonly none: "";
57
+ readonly sm: "shadow-sm";
58
+ readonly md: "shadow-md";
59
+ readonly lg: "shadow-lg";
60
+ readonly xl: "shadow-xl";
61
+ };
62
+ export type ShadowKey = keyof typeof SHADOW_MAP;
63
+ export interface SurfaceProps {
64
+ surface?: SurfaceKey;
65
+ padding?: PaddingKey;
66
+ rounded?: RoundedKey;
67
+ border?: BorderKey;
68
+ shadow?: ShadowKey;
69
+ }
70
+ export declare function buildSurfaceClasses(props: SurfaceProps): string;
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Surface & layout tokens — shared prop maps for all layout primitives.
3
+ *
4
+ * These maps power the Bootstrap/MUI-style props (`surface`, `padding`,
5
+ * `rounded`, `border`, `shadow`) on Stack, Row, Grid, Container, Section,
6
+ * Article, Main, Aside, Div, BlockHeader, and BlockFooter.
7
+ */
8
+ export const SURFACE_MAP = {
9
+ none: "",
10
+ default: "bg-white dark:bg-slate-900",
11
+ muted: "bg-zinc-50 dark:bg-slate-950",
12
+ subtle: "bg-zinc-100 dark:bg-slate-900",
13
+ inset: "bg-zinc-200 dark:bg-slate-800",
14
+ card: "bg-white dark:bg-slate-900 border border-zinc-200 dark:border-slate-700 rounded-xl shadow-sm",
15
+ elevated: "bg-white dark:bg-slate-900 border border-zinc-200 dark:border-slate-700 rounded-2xl shadow-md",
16
+ interactive: "bg-white dark:bg-slate-900 border border-zinc-200 dark:border-slate-700 rounded-xl shadow-sm hover:shadow-md hover:border-primary-300/60 dark:hover:border-secondary-500/60 transition-all cursor-pointer",
17
+ glass: "backdrop-blur-md bg-white/85 dark:bg-slate-900/85 border border-zinc-200/60 dark:border-slate-700/40 rounded-2xl shadow-lg",
18
+ form: "bg-white dark:bg-slate-900 rounded-2xl border border-zinc-200 dark:border-slate-700 shadow-sm",
19
+ };
20
+ export const PADDING_MAP = {
21
+ none: "",
22
+ xs: "p-2",
23
+ sm: "p-3",
24
+ md: "p-4",
25
+ lg: "p-6",
26
+ xl: "p-8",
27
+ card: "p-5 sm:p-6 lg:p-8",
28
+ section: "py-10 sm:py-14 xl:py-20",
29
+ sectionSm: "py-6 sm:py-10",
30
+ page: "py-6 sm:py-8 lg:py-10",
31
+ inline: "px-4 py-3",
32
+ inlineSm: "px-3 py-2",
33
+ inlineLg: "px-6 py-4",
34
+ };
35
+ export const ROUNDED_MAP = {
36
+ none: "",
37
+ sm: "rounded-sm",
38
+ md: "rounded-md",
39
+ lg: "rounded-lg",
40
+ xl: "rounded-xl",
41
+ "2xl": "rounded-2xl",
42
+ full: "rounded-full",
43
+ };
44
+ export const BORDER_MAP = {
45
+ none: "",
46
+ default: "border border-zinc-200 dark:border-slate-700",
47
+ subtle: "border border-zinc-100 dark:border-slate-800/60",
48
+ strong: "border border-zinc-300 dark:border-slate-600",
49
+ dashed: "border border-dashed border-zinc-300 dark:border-slate-600",
50
+ };
51
+ export const SHADOW_MAP = {
52
+ none: "",
53
+ sm: "shadow-sm",
54
+ md: "shadow-md",
55
+ lg: "shadow-lg",
56
+ xl: "shadow-xl",
57
+ };
58
+ export function buildSurfaceClasses(props) {
59
+ return [
60
+ props.surface ? SURFACE_MAP[props.surface] : "",
61
+ props.padding ? PADDING_MAP[props.padding] : "",
62
+ props.rounded ? ROUNDED_MAP[props.rounded] : "",
63
+ props.border ? BORDER_MAP[props.border] : "",
64
+ props.shadow ? SHADOW_MAP[props.shadow] : "",
65
+ ]
66
+ .filter(Boolean)
67
+ .join(" ");
68
+ }
@@ -1,4 +1,5 @@
1
1
  import React, { type ReactNode } from "react";
2
+ import type { ZodType } from "zod";
2
3
  export interface FormShellStep {
3
4
  id: string;
4
5
  label: string;
@@ -32,6 +33,10 @@ export interface FormShellProps {
32
33
  onPublish: (values: Record<string, unknown>) => Promise<void>;
33
34
  /** Current form values — caller owns state */
34
35
  values: Record<string, unknown>;
36
+ /** Zod schema for auto-validation on publish. Errors are mapped to field names. */
37
+ schema?: ZodType;
38
+ /** When true + schema provided, validate on every value change (not just publish). */
39
+ validateOnChange?: boolean;
35
40
  /** Whether any values differ from the persisted state */
36
41
  isDirty?: boolean;
37
42
  draftId?: string;
@@ -63,4 +68,4 @@ export interface FormShellProviderProps {
63
68
  values?: Record<string, unknown>;
64
69
  }
65
70
  export declare function FormShellProvider({ children, onSaveDraft, isDirty, autoSaveDelayMs, values, }: FormShellProviderProps): import("react/jsx-runtime").JSX.Element;
66
- export declare function FormShell({ steps, onSaveDraft, onPublish, values, isDirty, autoSaveDelayMs, publishLabel, saveDraftLabel, title, className, mobileAccordion, }: FormShellProps): import("react/jsx-runtime").JSX.Element;
71
+ export declare function FormShell({ steps, onSaveDraft, onPublish, values, schema, validateOnChange, isDirty, autoSaveDelayMs, publishLabel, saveDraftLabel, title, className, mobileAccordion, }: FormShellProps): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, } from "react";
4
4
  import { Button } from "../components/Button";
5
- import { Heading, Text } from "../components/Typography";
5
+ import { Heading, Span, Text } from "../components/Typography";
6
6
  // ─── Context ──────────────────────────────────────────────────────────────────
7
7
  export const FormShellContext = createContext(null);
8
8
  export function useFormShell() {
@@ -61,7 +61,7 @@ function ErrorSummary({ errors, visible }) {
61
61
  const entries = Object.entries(errors).filter(([, v]) => v);
62
62
  if (!visible || entries.length === 0)
63
63
  return null;
64
- return (_jsxs("div", { className: "appkit-formshell__error-summary", role: "alert", "aria-live": "assertive", children: [_jsxs(Text, { size: "sm", variant: "error", className: "appkit-formshell__error-summary__title", children: ["Please fix ", entries.length, " error", entries.length !== 1 ? "s" : "", " before publishing."] }), _jsx("ul", { className: "appkit-formshell__error-summary__list", children: entries.map(([field, msg]) => (_jsx("li", { children: _jsxs(Text, { size: "sm", variant: "error", children: [_jsx("strong", { children: field }), ": ", msg] }) }, field))) })] }));
64
+ return (_jsxs("div", { className: "appkit-formshell__error-summary", role: "alert", "aria-live": "assertive", children: [_jsxs(Text, { size: "sm", variant: "error", className: "appkit-formshell__error-summary__title", children: ["Please fix ", entries.length, " error", entries.length !== 1 ? "s" : "", " before publishing."] }), _jsx("ul", { className: "appkit-formshell__error-summary__list", children: entries.map(([field, msg]) => (_jsx("li", { children: _jsxs(Text, { size: "sm", variant: "error", children: [_jsx(Span, { weight: "bold", children: field }), ": ", msg] }) }, field))) })] }));
65
65
  }
66
66
  export function FormShellProvider({ children, onSaveDraft, isDirty = false, autoSaveDelayMs = 2000, values = {}, }) {
67
67
  const [errors, setErrors] = useState({});
@@ -122,8 +122,25 @@ export function FormShellProvider({ children, onSaveDraft, isDirty = false, auto
122
122
  }), [errors, touched, setFieldError, setFieldTouched, clearFieldError, isDirty]);
123
123
  return _jsx(FormShellContext.Provider, { value: ctx, children: children });
124
124
  }
125
+ // ─── Schema validation helper ────────────────────────────────────────────────
126
+ function validateSchema(schema, values, setFieldError, setErrors) {
127
+ const result = schema.safeParse(values);
128
+ if (result.success) {
129
+ setErrors({});
130
+ return true;
131
+ }
132
+ const newErrors = {};
133
+ for (const issue of result.error.issues) {
134
+ const path = issue.path.join(".");
135
+ if (path && !newErrors[path]) {
136
+ newErrors[path] = issue.message;
137
+ }
138
+ }
139
+ setErrors(newErrors);
140
+ return false;
141
+ }
125
142
  // ─── FormShell ────────────────────────────────────────────────────────────────
126
- export function FormShell({ steps, onSaveDraft, onPublish, values, isDirty = false, autoSaveDelayMs = 2000, publishLabel = "Publish", saveDraftLabel = "Save Draft", title, className = "", mobileAccordion = true, }) {
143
+ export function FormShell({ steps, onSaveDraft, onPublish, values, schema, validateOnChange = false, isDirty = false, autoSaveDelayMs = 2000, publishLabel = "Publish", saveDraftLabel = "Save Draft", title, className = "", mobileAccordion = true, }) {
127
144
  const [errors, setErrors] = useState({});
128
145
  const [touched, setTouched] = useState({});
129
146
  const [currentStep, setCurrentStep] = useState(0);
@@ -198,8 +215,19 @@ export function FormShell({ steps, onSaveDraft, onPublish, values, isDirty = fal
198
215
  setIsSubmitting(false);
199
216
  }
200
217
  }, [onSaveDraft, values]);
218
+ // Schema-driven live validation on value changes
219
+ useEffect(() => {
220
+ if (!schema || !validateOnChange)
221
+ return;
222
+ validateSchema(schema, values, setFieldError, setErrors);
223
+ }, [schema, validateOnChange, values, setFieldError]);
201
224
  const handlePublish = useCallback(async () => {
202
225
  setShowErrorSummary(true);
226
+ if (schema) {
227
+ const valid = validateSchema(schema, values, setFieldError, setErrors);
228
+ if (!valid)
229
+ return;
230
+ }
203
231
  if (!isPublishReady)
204
232
  return;
205
233
  setIsSubmitting(true);
@@ -209,7 +237,7 @@ export function FormShell({ steps, onSaveDraft, onPublish, values, isDirty = fal
209
237
  finally {
210
238
  setIsSubmitting(false);
211
239
  }
212
- }, [isPublishReady, onPublish, values]);
240
+ }, [isPublishReady, onPublish, values, schema, setFieldError]);
213
241
  const ctx = useMemo(() => ({
214
242
  errors,
215
243
  touched,
@@ -10,10 +10,11 @@ export type { FieldCheckboxProps } from "./forms";
10
10
  export { FieldCheckbox } from "./forms";
11
11
  export { buildColumns, createColumnBuilder, renderBoolean, renderCurrency, renderCurrencyCompact, renderCount, renderNullable, renderRating, } from "./columns";
12
12
  export type { BooleanRenderOpts, RatingMode, RatingRenderOpts, } from "./columns";
13
- export type { SectionProps, ArticleProps, MainProps, AsideProps, NavProps, BlockHeaderProps, BlockFooterProps, HeaderProps, FooterProps, UlProps, OlProps, LiProps, } from "./components/Semantic";
14
- export { Section, Article, Main, Aside, Nav, BlockHeader, BlockFooter, Header, Footer, Ul, Ol, Li, } from "./components/Semantic";
13
+ export type { SectionProps, ArticleProps, MainProps, AsideProps, NavProps, BlockHeaderProps, BlockFooterProps, HeaderProps, FooterProps, UlProps, OlProps, LiProps, TableProps, TheadProps, TbodyProps, TrProps, ThProps, TdProps, CodeProps, PreProps, BlockquoteProps, FigureProps, FigcaptionProps, DlProps, DtProps, DdProps, } from "./components/Semantic";
14
+ export { Section, Article, Main, Aside, Nav, BlockHeader, BlockFooter, Header, Footer, Ul, Ol, Li, Table, Thead, Tbody, Tr, Th, Td, Code, Pre, Blockquote, Figure, Figcaption, Dl, Dt, Dd, } from "./components/Semantic";
15
15
  export type { DivProps } from "./components/Div";
16
16
  export { Div } from "./components/Div";
17
+ export type { ColorVariant } from "./components/Typography";
17
18
  export { Heading, Text, Label, Caption, Span } from "./components/Typography";
18
19
  export { FilterChipGroup } from "./components/FilterChipGroup";
19
20
  export type { FilterChipGroupProps, FilterChipGroupTab, } from "./components/FilterChipGroup";
@@ -166,6 +167,8 @@ export type { DataTableProps, DataTableColumn } from "./DataTable";
166
167
  export { DataTable } from "./DataTable";
167
168
  export type { TableConfig, TableViewMode, PaginationConfig, StickyConfig, } from "../contracts";
168
169
  export { DEFAULT_TABLE_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_STICKY_CONFIG, mergeTableConfig, } from "../contracts";
170
+ export type { SurfaceKey, PaddingKey, RoundedKey, BorderKey, ShadowKey, SurfaceProps, } from "./components/surface-tokens";
171
+ export { SURFACE_MAP, PADDING_MAP, ROUNDED_MAP, BORDER_MAP, SHADOW_MAP, buildSurfaceClasses, } from "./components/surface-tokens";
169
172
  export type { GapKey, ContainerSize, GridCols, ViewPortal, ContainerProps, StackProps, RowProps, GridProps, } from "./components/Layout";
170
173
  export { Container, Stack, Row, Grid, GRID_MAP } from "./components/Layout";
171
174
  export { classNames, mergeTailwindClasses } from "./style.helper";
@@ -189,10 +192,6 @@ export type { StackedViewShellProps, StackedViewShellLabels, } from "./component
189
192
  export { StackedViewShell } from "./components/StackedViewShell";
190
193
  export type { BulkActionBarProps, BulkActionBarLabels, BulkActionItem, } from "./components/BulkActionBar";
191
194
  export { BulkActionBar } from "./components/BulkActionBar";
192
- export type { BulkActionsBarProps, BulkAction } from "./components/BulkActionsBar";
193
- export { BulkActionsBar } from "./components/BulkActionsBar";
194
- export type { StickyBottomBarProps } from "./components/StickyBottomBar";
195
- export { StickyBottomBar } from "./components/StickyBottomBar";
196
195
  export type { ClaimCouponButtonProps } from "./components/ClaimCouponButton";
197
196
  export { ClaimCouponButton } from "./components/ClaimCouponButton";
198
197
  export type { FlowStep, FlowDiagramProps } from "./components/FlowDiagram";
@@ -207,3 +206,7 @@ export type { FormActionBarProps, FormActionBarBreadcrumb } from "./components/F
207
206
  export { FormActionBar } from "./components/FormActionBar";
208
207
  export type { ConfirmDeleteModalProps } from "./components/ConfirmDeleteModal";
209
208
  export { ConfirmDeleteModal } from "./components/ConfirmDeleteModal";
209
+ export type { FadeInProps, SlideUpProps, SlideInProps, ScaleInProps, CollapseProps, PressScaleProps, HoverLiftProps, AnimatedListProps, AnimatedDivProps, AnimatedStackProps, AnimatedRowProps, DraggableProps, SwipeableProps, } from "./components/Motion";
210
+ export { FadeIn, SlideUp, SlideIn, ScaleIn, Collapse, PressScale, HoverLift, AnimatedList, AnimatedDiv, AnimatedStack, AnimatedRow, Draggable, Swipeable, AnimatePresence, } from "./components/Motion";
211
+ export type { MotionPreset } from "../tokens/motion";
212
+ export { MOTION_PRESETS, SPRING_SNAPPY, SPRING_GENTLE, EASE_OUT, } from "../tokens/motion";
package/dist/ui/index.js CHANGED
@@ -6,9 +6,8 @@ export { FieldSelect } from "./forms";
6
6
  export { FieldCheckbox } from "./forms";
7
7
  // --- Column utilities ---------------------------------------------------------
8
8
  export { buildColumns, createColumnBuilder, renderBoolean, renderCurrency, renderCurrencyCompact, renderCount, renderNullable, renderRating, } from "./columns";
9
- export { Section, Article, Main, Aside, Nav, BlockHeader, BlockFooter, Header, Footer, Ul, Ol, Li, } from "./components/Semantic";
9
+ export { Section, Article, Main, Aside, Nav, BlockHeader, BlockFooter, Header, Footer, Ul, Ol, Li, Table, Thead, Tbody, Tr, Th, Td, Code, Pre, Blockquote, Figure, Figcaption, Dl, Dt, Dd, } from "./components/Semantic";
10
10
  export { Div } from "./components/Div";
11
- // --- Typography primitives ----------------------------------------------------
12
11
  export { Heading, Text, Label, Caption, Span } from "./components/Typography";
13
12
  // --- Filter chip group (SB10-C completion, S8 2026-05-13) --------------------
14
13
  export { FilterChipGroup } from "./components/FilterChipGroup";
@@ -87,6 +86,7 @@ export { ListingToolbar } from "./components/ListingToolbar";
87
86
  export { TablePagination } from "./components/TablePagination";
88
87
  export { DataTable } from "./DataTable";
89
88
  export { DEFAULT_TABLE_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_STICKY_CONFIG, mergeTableConfig, } from "../contracts";
89
+ export { SURFACE_MAP, PADDING_MAP, ROUNDED_MAP, BORDER_MAP, SHADOW_MAP, buildSurfaceClasses, } from "./components/surface-tokens";
90
90
  export { Container, Stack, Row, Grid, GRID_MAP } from "./components/Layout";
91
91
  // --- UI Helpers ---------------------------------------------------------------
92
92
  export { classNames, mergeTailwindClasses } from "./style.helper";
@@ -100,8 +100,6 @@ export { SlottedListingView } from "./components/SlottedListingView";
100
100
  export { DetailViewShell } from "./components/DetailViewShell";
101
101
  export { StackedViewShell } from "./components/StackedViewShell";
102
102
  export { BulkActionBar } from "./components/BulkActionBar";
103
- export { BulkActionsBar } from "./components/BulkActionsBar";
104
- export { StickyBottomBar } from "./components/StickyBottomBar";
105
103
  export { ClaimCouponButton } from "./components/ClaimCouponButton";
106
104
  export { FlowDiagram } from "./components/FlowDiagram";
107
105
  export { BaseListingCard } from "./components/BaseListingCard";
@@ -109,3 +107,5 @@ export { default as ImageGallery } from "./components/ImageGallery";
109
107
  export { SideDrawer } from "./components/SideDrawer";
110
108
  export { FormActionBar } from "./components/FormActionBar";
111
109
  export { ConfirmDeleteModal } from "./components/ConfirmDeleteModal";
110
+ export { FadeIn, SlideUp, SlideIn, ScaleIn, Collapse, PressScale, HoverLift, AnimatedList, AnimatedDiv, AnimatedStack, AnimatedRow, Draggable, Swipeable, AnimatePresence, } from "./components/Motion";
111
+ export { MOTION_PRESETS, SPRING_SNAPPY, SPRING_GENTLE, EASE_OUT, } from "../tokens/motion";
@@ -122,104 +122,104 @@ export declare const cropDataSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
122
122
  x: number;
123
123
  y: number;
124
124
  sourceUrl: string;
125
+ aspectRatio?: string | undefined;
125
126
  minHeight?: number | undefined;
126
- rotation?: number | undefined;
127
127
  minWidth?: number | undefined;
128
+ rotation?: number | undefined;
128
129
  quality?: number | undefined;
129
- aspectRatio?: string | undefined;
130
- outputFolder?: string | undefined;
131
130
  outputFormat?: "webp" | "png" | "jpeg" | undefined;
131
+ outputFolder?: string | undefined;
132
132
  }, {
133
133
  height: number;
134
134
  width: number;
135
135
  x: number;
136
136
  y: number;
137
137
  sourceUrl: string;
138
+ aspectRatio?: string | undefined;
138
139
  minHeight?: number | undefined;
139
- rotation?: number | undefined;
140
140
  minWidth?: number | undefined;
141
+ rotation?: number | undefined;
141
142
  quality?: number | undefined;
142
- aspectRatio?: string | undefined;
143
- outputFolder?: string | undefined;
144
143
  outputFormat?: "webp" | "png" | "jpeg" | undefined;
144
+ outputFolder?: string | undefined;
145
145
  }>, {
146
146
  height: number;
147
147
  width: number;
148
148
  x: number;
149
149
  y: number;
150
150
  sourceUrl: string;
151
+ aspectRatio?: string | undefined;
151
152
  minHeight?: number | undefined;
152
- rotation?: number | undefined;
153
153
  minWidth?: number | undefined;
154
+ rotation?: number | undefined;
154
155
  quality?: number | undefined;
155
- aspectRatio?: string | undefined;
156
- outputFolder?: string | undefined;
157
156
  outputFormat?: "webp" | "png" | "jpeg" | undefined;
157
+ outputFolder?: string | undefined;
158
158
  }, {
159
159
  height: number;
160
160
  width: number;
161
161
  x: number;
162
162
  y: number;
163
163
  sourceUrl: string;
164
+ aspectRatio?: string | undefined;
164
165
  minHeight?: number | undefined;
165
- rotation?: number | undefined;
166
166
  minWidth?: number | undefined;
167
+ rotation?: number | undefined;
167
168
  quality?: number | undefined;
168
- aspectRatio?: string | undefined;
169
- outputFolder?: string | undefined;
170
169
  outputFormat?: "webp" | "png" | "jpeg" | undefined;
170
+ outputFolder?: string | undefined;
171
171
  }>, {
172
172
  height: number;
173
173
  width: number;
174
174
  x: number;
175
175
  y: number;
176
176
  sourceUrl: string;
177
+ aspectRatio?: string | undefined;
177
178
  minHeight?: number | undefined;
178
- rotation?: number | undefined;
179
179
  minWidth?: number | undefined;
180
+ rotation?: number | undefined;
180
181
  quality?: number | undefined;
181
- aspectRatio?: string | undefined;
182
- outputFolder?: string | undefined;
183
182
  outputFormat?: "webp" | "png" | "jpeg" | undefined;
183
+ outputFolder?: string | undefined;
184
184
  }, {
185
185
  height: number;
186
186
  width: number;
187
187
  x: number;
188
188
  y: number;
189
189
  sourceUrl: string;
190
+ aspectRatio?: string | undefined;
190
191
  minHeight?: number | undefined;
191
- rotation?: number | undefined;
192
192
  minWidth?: number | undefined;
193
+ rotation?: number | undefined;
193
194
  quality?: number | undefined;
194
- aspectRatio?: string | undefined;
195
- outputFolder?: string | undefined;
196
195
  outputFormat?: "webp" | "png" | "jpeg" | undefined;
196
+ outputFolder?: string | undefined;
197
197
  }>, {
198
198
  height: number;
199
199
  width: number;
200
200
  x: number;
201
201
  y: number;
202
202
  sourceUrl: string;
203
+ aspectRatio?: string | undefined;
203
204
  minHeight?: number | undefined;
204
- rotation?: number | undefined;
205
205
  minWidth?: number | undefined;
206
+ rotation?: number | undefined;
206
207
  quality?: number | undefined;
207
- aspectRatio?: string | undefined;
208
- outputFolder?: string | undefined;
209
208
  outputFormat?: "webp" | "png" | "jpeg" | undefined;
209
+ outputFolder?: string | undefined;
210
210
  }, {
211
211
  height: number;
212
212
  width: number;
213
213
  x: number;
214
214
  y: number;
215
215
  sourceUrl: string;
216
+ aspectRatio?: string | undefined;
216
217
  minHeight?: number | undefined;
217
- rotation?: number | undefined;
218
218
  minWidth?: number | undefined;
219
+ rotation?: number | undefined;
219
220
  quality?: number | undefined;
220
- aspectRatio?: string | undefined;
221
- outputFolder?: string | undefined;
222
221
  outputFormat?: "webp" | "png" | "jpeg" | undefined;
222
+ outputFolder?: string | undefined;
223
223
  }>;
224
224
  export declare const trimDataSchema: z.ZodEffects<z.ZodObject<{
225
225
  sourceUrl: z.ZodEffects<z.ZodString, string, string>;
@@ -233,29 +233,29 @@ export declare const trimDataSchema: z.ZodEffects<z.ZodObject<{
233
233
  endTime: number;
234
234
  sourceUrl: string;
235
235
  quality?: "medium" | "high" | "low" | undefined;
236
- outputFolder?: string | undefined;
237
236
  outputFormat?: "mp4" | "webm" | undefined;
237
+ outputFolder?: string | undefined;
238
238
  }, {
239
239
  startTime: number;
240
240
  endTime: number;
241
241
  sourceUrl: string;
242
242
  quality?: "medium" | "high" | "low" | undefined;
243
- outputFolder?: string | undefined;
244
243
  outputFormat?: "mp4" | "webm" | undefined;
244
+ outputFolder?: string | undefined;
245
245
  }>, {
246
246
  startTime: number;
247
247
  endTime: number;
248
248
  sourceUrl: string;
249
249
  quality?: "medium" | "high" | "low" | undefined;
250
- outputFolder?: string | undefined;
251
250
  outputFormat?: "mp4" | "webm" | undefined;
251
+ outputFolder?: string | undefined;
252
252
  }, {
253
253
  startTime: number;
254
254
  endTime: number;
255
255
  sourceUrl: string;
256
256
  quality?: "medium" | "high" | "low" | undefined;
257
- outputFolder?: string | undefined;
258
257
  outputFormat?: "mp4" | "webm" | undefined;
258
+ outputFolder?: string | undefined;
259
259
  }>;
260
260
  export declare function validateRequestBody<T>(schema: z.ZodSchema<T>, body: unknown): {
261
261
  success: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mohasinac/appkit",
3
- "version": "2.7.56",
3
+ "version": "2.7.58",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -155,6 +155,8 @@
155
155
  },
156
156
  "dependencies": {
157
157
  "@mohasinac/sievejs": "^1.0.0",
158
+ "motion": "^12.40.0",
159
+ "react-advanced-cropper": "^0.20.1",
158
160
  "tailwind-merge": "^3.3.0",
159
161
  "zod": "^3.24.0",
160
162
  "zustand": "^5.0.13"
@@ -1,12 +0,0 @@
1
- import type { ProductItem } from "../../../../../features/products/types";
2
- import type { LabelDesign } from "./types";
3
- interface InventoryLabelProps {
4
- product: ProductItem;
5
- publicBaseUrl: string;
6
- design: LabelDesign;
7
- qrDataUrl?: string;
8
- barcodeDataUrl?: string;
9
- brandName?: string;
10
- }
11
- export declare function InventoryLabel({ product, design, qrDataUrl, barcodeDataUrl, brandName }: InventoryLabelProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,49 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- function getListingBadge(product) {
4
- const lt = product.listingType;
5
- if (lt === "auction") {
6
- const sub = product.auctionEndDate
7
- ? `Ends ${new Date(product.auctionEndDate).toLocaleDateString("en-IN")}`
8
- : undefined;
9
- return { label: "AUCTION", sub };
10
- }
11
- if (lt === "pre-order") {
12
- const sub = product.preOrderDeliveryDate
13
- ? `Expected ${new Date(product.preOrderDeliveryDate).toLocaleDateString("en-IN")}`
14
- : undefined;
15
- return { label: "PRE-ORDER", sub };
16
- }
17
- if (lt === "prize-draw")
18
- return { label: "PRIZE DRAW" };
19
- return null;
20
- }
21
- export function InventoryLabel({ product, design, qrDataUrl, barcodeDataUrl, brandName = "" }) {
22
- const { size, show, colorScheme } = design;
23
- const isDark = colorScheme === "dark";
24
- const bg = isDark ? "#1a1a1a" : "#ffffff";
25
- const fg = isDark ? "#f5f5f5" : "#111111";
26
- const muted = isDark ? "#999999" : "#666666";
27
- const border = isDark ? "#333333" : "#e5e5e5";
28
- const badge = show.listingTypeBadge ? getListingBadge(product) : null;
29
- const loc = product.physicalLocation;
30
- const locStr = loc ? `${loc.zone} / ${loc.shelf} / ${loc.bin}` : null;
31
- const priceStr = product.price != null ? `₹${(product.price / 100).toFixed(2)}` : null;
32
- return (_jsxs("div", { style: {
33
- width: `${size.widthMm}mm`,
34
- height: `${size.heightMm}mm`,
35
- background: bg,
36
- color: fg,
37
- border: `1px solid ${border}`,
38
- borderRadius: "2px",
39
- padding: "2mm",
40
- fontFamily: "monospace, sans-serif",
41
- fontSize: "7pt",
42
- display: "flex",
43
- flexDirection: "column",
44
- gap: "1mm",
45
- overflow: "hidden",
46
- boxSizing: "border-box",
47
- pageBreakInside: "avoid",
48
- }, children: [_jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start" }, children: [show.logo && brandName && (_jsx("span", { style: { fontWeight: 700, fontSize: "6pt", color: muted, letterSpacing: "0.05em" }, children: brandName })), badge && (_jsx("span", { style: { background: "#111", color: "#fff", fontSize: "5pt", fontWeight: 700, padding: "0.5mm 1.5mm", borderRadius: "1px", letterSpacing: "0.05em" }, children: badge.label }))] }), _jsx("div", { style: { fontWeight: 700, fontSize: "8pt", lineHeight: 1.2, flex: 1 }, children: product.title }), badge?.sub && _jsx("div", { style: { fontSize: "6pt", color: muted }, children: badge.sub }), (show.price || show.stock) && (_jsxs("div", { style: { display: "flex", gap: "3mm", alignItems: "center" }, children: [show.price && priceStr && _jsx("span", { style: { fontWeight: 700, fontSize: "8pt" }, children: priceStr }), show.stock && product.stockCount != null && (_jsxs("span", { style: { fontSize: "6pt", color: muted }, children: ["Qty: ", product.stockCount] })), product.condition && _jsx("span", { style: { fontSize: "6pt", color: muted }, children: product.condition })] })), show.location && locStr && _jsx("div", { style: { fontSize: "6pt", color: muted }, children: locStr }), (show.barcode || qrDataUrl) && (_jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-end", marginTop: "auto" }, children: [show.barcode && barcodeDataUrl && (_jsx("img", { src: barcodeDataUrl, alt: "barcode", style: { height: "8mm", maxWidth: "60%" } })), qrDataUrl && _jsx("img", { src: qrDataUrl, alt: "qr", style: { width: "10mm", height: "10mm" } })] })), _jsx("div", { style: { fontSize: "5pt", color: muted, textAlign: "center" }, children: product.id })] }));
49
- }
@@ -1,7 +0,0 @@
1
- import { type LabelDesign } from "./types";
2
- interface LabelDesignPickerProps {
3
- value: LabelDesign;
4
- onChange: (design: LabelDesign) => void;
5
- }
6
- export declare function LabelDesignPicker({ value, onChange }: LabelDesignPickerProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,32 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Row } from "../../../../../ui/components/Layout";
4
- import { Button } from "../../../../../ui/components/Button";
5
- import { Input } from "../../../../../ui/components/Input";
6
- import { Text } from "../../../../../ui/components/Typography";
7
- import { LABEL_DESIGN_STORAGE_KEY } from "./types";
8
- const TEMPLATES = ["minimal", "detailed", "branded"];
9
- const SCHEMES = [
10
- { value: "light", label: "Light" },
11
- { value: "dark", label: "Dark" },
12
- { value: "store-primary", label: "Brand" },
13
- ];
14
- const SHOW_FIELDS = [
15
- { key: "logo", label: "Logo" },
16
- { key: "price", label: "Price" },
17
- { key: "stock", label: "Stock" },
18
- { key: "barcode", label: "Barcode" },
19
- { key: "location", label: "Location" },
20
- { key: "listingTypeBadge", label: "Type badge" },
21
- ];
22
- export function LabelDesignPicker({ value, onChange }) {
23
- const set = (key, val) => {
24
- const next = { ...value, [key]: val };
25
- onChange(next);
26
- try {
27
- localStorage.setItem(LABEL_DESIGN_STORAGE_KEY, JSON.stringify(next));
28
- }
29
- catch { /* noop */ }
30
- };
31
- return (_jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "12px", padding: "16px" }, children: [_jsxs(_Fragment, { children: [_jsx(Text, { variant: "muted", style: { fontSize: "11px", fontWeight: 600, marginBottom: "6px", display: "block" }, children: "Template" }), _jsx(Row, { gap: "xs", children: TEMPLATES.map(t => (_jsx(Button, { variant: value.template === t ? "primary" : "outline", size: "sm", onClick: () => set("template", t), children: t.charAt(0).toUpperCase() + t.slice(1) }, t))) })] }), _jsxs(_Fragment, { children: [_jsx(Text, { variant: "muted", style: { fontSize: "11px", fontWeight: 600, marginBottom: "6px", display: "block" }, children: "Color" }), _jsx(Row, { gap: "xs", children: SCHEMES.map(s => (_jsx(Button, { variant: value.colorScheme === s.value ? "primary" : "outline", size: "sm", onClick: () => set("colorScheme", s.value), children: s.label }, s.value))) })] }), _jsxs(_Fragment, { children: [_jsx(Text, { variant: "muted", style: { fontSize: "11px", fontWeight: 600, marginBottom: "6px", display: "block" }, children: "Size (mm)" }), _jsxs(Row, { gap: "sm", children: [_jsx(Input, { label: "W", type: "number", value: value.size.widthMm, onChange: e => set("size", { ...value.size, widthMm: Number(e.target.value) }), style: { width: "70px" } }), _jsx(Input, { label: "H", type: "number", value: value.size.heightMm, onChange: e => set("size", { ...value.size, heightMm: Number(e.target.value) }), style: { width: "70px" } })] })] }), _jsxs(_Fragment, { children: [_jsx(Text, { variant: "muted", style: { fontSize: "11px", fontWeight: 600, marginBottom: "6px", display: "block" }, children: "Show" }), _jsx("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "4px" }, children: SHOW_FIELDS.map(f => (_jsxs("label", { style: { display: "flex", alignItems: "center", gap: "6px", cursor: "pointer", fontSize: "12px" }, children: [_jsx("input", { type: "checkbox", checked: value.show[f.key], onChange: e => set("show", { ...value.show, [f.key]: e.target.checked }) }), f.label] }, f.key))) })] })] }));
32
- }
@@ -1,28 +0,0 @@
1
- import type { LabelDesign } from "./types";
2
- export interface OrderForLabel {
3
- id: string;
4
- createdAt?: string;
5
- status?: string;
6
- buyerDisplayName?: string;
7
- buyerCity?: string;
8
- items: {
9
- productName: string;
10
- quantity: number;
11
- price: number;
12
- }[];
13
- physicalLocation?: {
14
- zone: string;
15
- shelf: string;
16
- bin: string;
17
- };
18
- }
19
- interface OrderPackingLabelProps {
20
- order: OrderForLabel;
21
- storeBaseUrl: string;
22
- design: LabelDesign;
23
- qrDataUrl?: string;
24
- barcodeDataUrl?: string;
25
- brandName?: string;
26
- }
27
- export declare function OrderPackingLabel({ order, design, qrDataUrl, barcodeDataUrl, brandName }: OrderPackingLabelProps): import("react/jsx-runtime").JSX.Element;
28
- export {};