@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
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { buildSurfaceClasses } from "./surface-tokens";
2
3
  /**
3
4
  * Layout Primitives — Container, Stack, Row, Grid
4
5
  *
@@ -142,26 +143,27 @@ const JUSTIFY_MAP = {
142
143
  around: "appkit-justify--around",
143
144
  evenly: "appkit-justify--evenly",
144
145
  };
145
- export function Container({ size = "2xl", as, className = "", children, ...props }) {
146
+ export function Container({ size = "2xl", as, surface, padding, rounded, border, shadow, className = "", children, ...props }) {
146
147
  const Tag = (as ?? "div");
147
- return (_jsx(Tag, { className: ["appkit-container", CONTAINER_MAP[size], className]
148
+ return (_jsx(Tag, { className: ["appkit-container", CONTAINER_MAP[size], buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className]
148
149
  .filter(Boolean)
149
150
  .join(" "), ...props, children: children }));
150
151
  }
151
- export function Stack({ gap = "md", centered = false, align = "stretch", as, className = "", children, ...props }) {
152
+ export function Stack({ gap = "md", centered = false, align = "stretch", as, surface, padding, rounded, border, shadow, className = "", children, ...props }) {
152
153
  const Tag = (as ?? "div");
153
154
  const classes = [
154
155
  "appkit-stack",
155
156
  GAP_MAP[gap],
156
157
  centered ? "appkit-stack--centered" : "",
157
158
  !centered && align !== "stretch" ? ITEMS_MAP[align] : "",
159
+ buildSurfaceClasses({ surface, padding, rounded, border, shadow }),
158
160
  className,
159
161
  ]
160
162
  .filter(Boolean)
161
163
  .join(" ");
162
164
  return (_jsx(Tag, { className: classes, ...props, children: children }));
163
165
  }
164
- export function Row({ gap = "md", centered = false, align = "center", justify = "start", wrap = false, as, className = "", children, ...props }) {
166
+ export function Row({ gap = "md", centered = false, align = "center", justify = "start", wrap = false, as, surface, padding, rounded, border, shadow, className = "", children, ...props }) {
165
167
  const Tag = (as ?? "div");
166
168
  const classes = [
167
169
  "appkit-row",
@@ -169,17 +171,17 @@ export function Row({ gap = "md", centered = false, align = "center", justify =
169
171
  !centered && justify !== "start" ? JUSTIFY_MAP[justify] : "",
170
172
  GAP_MAP[gap],
171
173
  wrap ? "appkit-row--wrap" : "",
174
+ buildSurfaceClasses({ surface, padding, rounded, border, shadow }),
172
175
  className,
173
176
  ]
174
177
  .filter(Boolean)
175
178
  .join(" ");
176
179
  return (_jsx(Tag, { className: classes, ...props, children: children }));
177
180
  }
178
- export function Grid({ cols, gap = "md", as, className = "", children, ...props }) {
181
+ export function Grid({ cols, gap = "md", as, surface, padding, rounded, border, shadow, className = "", children, ...props }) {
179
182
  const Tag = (as ?? "div");
180
- // When cols is omitted callers supply grid-cols-* themselves via className.
181
183
  const baseClass = cols !== undefined ? GRID_MAP[cols] : "appkit-grid";
182
- const classes = [baseClass, GAP_MAP[gap], className]
184
+ const classes = [baseClass, GAP_MAP[gap], buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className]
183
185
  .filter(Boolean)
184
186
  .join(" ");
185
187
  return (_jsx(Tag, { className: classes, ...props, children: children }));
@@ -31,7 +31,7 @@ export function ListingToolbar({ filterCount = 0, onFiltersClick, searchValue =
31
31
  const allSelected = bulkTotalCount > 0 && bulkSelectedCount === bulkTotalCount;
32
32
  return (_jsx("div", { "data-testid": "listing-toolbar", className: `sticky top-[var(--header-height,0px)] z-20 border-b border-zinc-200 dark:border-slate-700 bg-white/95 dark:bg-slate-900/95 backdrop-blur-sm py-2 px-3 sm:py-2.5 sm:px-4 ${className}`, children: _jsxs("div", { className: "flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-2.5", children: [bulkMode ? (_jsxs("div", { className: "flex flex-1 items-center gap-2", children: [_jsxs("button", { type: "button", onClick: onBulkSelectAll, className: "flex items-center gap-1.5 rounded-lg border border-zinc-300 dark:border-slate-600 px-3 py-1.5 text-sm font-medium text-zinc-700 dark:text-zinc-200 hover:bg-zinc-50 dark:hover:bg-slate-800 transition-colors", children: [allSelected
33
33
  ? _jsx(CheckSquare, { className: "h-4 w-4 text-[var(--appkit-color-primary,theme(colors.violet.600))]" })
34
- : _jsx(Square, { className: "h-4 w-4" }), allSelected ? l.deselectAll : l.selectAll(bulkTotalCount)] }), _jsx("span", { className: "text-sm text-zinc-500 dark:text-zinc-400", children: l.selected(bulkSelectedCount) }), _jsx("button", { type: "button", onClick: onBulkClear, className: "text-xs text-zinc-400 hover:text-rose-500 dark:text-zinc-500 transition-colors", children: l.clearSelection })] })) : onSearchChange ? (_jsxs("div", { className: "flex flex-1 items-center overflow-hidden rounded-lg border border-zinc-300 dark:border-slate-600 bg-white dark:bg-slate-900 min-w-0", children: [_jsx("input", { type: "text", value: searchValue, onChange: (e) => onSearchChange(e.target.value), onKeyDown: handleKeyDown, placeholder: searchPlaceholder, className: "min-w-0 flex-1 bg-transparent px-3 py-2 text-sm text-zinc-900 dark:text-zinc-100 placeholder-zinc-400 outline-none" }), _jsx("button", { type: "button", onClick: onSearchCommit, className: "flex shrink-0 items-center justify-center px-2.5 py-2 text-zinc-400 hover:text-[var(--appkit-color-primary,theme(colors.violet.600))] transition-colors", "aria-label": l.search, children: _jsx(Search, { className: "h-4 w-4" }) })] })) : null, _jsxs("div", { className: "flex items-center gap-1.5 sm:gap-2 shrink-0", children: [onFiltersClick && (_jsxs("button", { type: "button", onClick: onFiltersClick, className: "relative flex shrink-0 items-center gap-1.5 rounded-lg border border-zinc-300 dark:border-slate-600 px-2.5 py-1.5 sm:px-3.5 sm:py-2 text-sm font-medium text-zinc-700 dark:text-zinc-200 hover:bg-zinc-50 dark:hover:bg-slate-800 transition-colors", children: [_jsx(SlidersHorizontal, { className: "h-4 w-4" }), _jsx("span", { className: "hidden sm:inline", children: l.filters }), filterCount > 0 && (_jsx("span", { className: "absolute -top-1.5 -right-1.5 flex h-4 w-4 items-center justify-center rounded-full bg-[var(--appkit-color-primary,theme(colors.violet.600))] text-[10px] font-bold text-white", children: filterCount }))] })), sortOptions && sortValue !== undefined && onSortChange && (_jsxs("div", { className: "flex items-center gap-1.5 text-sm text-zinc-500 dark:text-zinc-400", children: [_jsx("span", { className: "hidden md:inline whitespace-nowrap text-xs", children: l.sort }), _jsx(SortDropdown, { value: sortValue, onChange: onSortChange, options: sortOptions })] })), !hideViewToggle && onViewChange && (_jsxs("div", { className: "flex items-center rounded-lg border border-zinc-300 dark:border-slate-600 overflow-hidden", children: [_jsx("button", { type: "button", onClick: () => onViewChange("grid"), "aria-label": l.gridView, className: `${VIEW_BTN_BASE} ${view === "grid" ? VIEW_BTN_ACTIVE : VIEW_BTN_INACTIVE}`, children: _jsx(LayoutGrid, { className: "h-4 w-4" }) }), _jsx("button", { type: "button", onClick: () => onViewChange("list"), "aria-label": l.listView, className: `${VIEW_BTN_BASE} ${view === "list" ? VIEW_BTN_ACTIVE : VIEW_BTN_INACTIVE}`, children: _jsx(List, { className: "h-4 w-4" }) }), showTableView && (_jsx("button", { type: "button", onClick: () => onViewChange("table"), "aria-label": l.tableView, className: `${VIEW_BTN_BASE} ${view === "table" ? VIEW_BTN_ACTIVE : VIEW_BTN_INACTIVE}`, children: _jsx(Table2, { className: "h-4 w-4" }) }))] })), onResetAll && hasActiveState && (_jsx("button", { type: "button", onClick: onResetAll, "aria-label": l.resetAll, title: l.resetAll, className: "flex shrink-0 items-center justify-center rounded-lg border border-zinc-300 dark:border-slate-600 p-1.5 sm:p-2 text-zinc-500 dark:text-zinc-400 hover:bg-zinc-50 dark:hover:bg-slate-800 hover:text-rose-500 dark:hover:text-rose-400 transition-colors", children: _jsx(RotateCcw, { className: "h-4 w-4" }) })), toggles && toggles.length > 0 && (_jsx("div", { className: "flex items-center gap-1", children: toggles.map((t) => (_jsx("button", { type: "button", role: "switch", "aria-checked": t.active, onClick: () => t.onChange(!t.active), className: `rounded-full border px-2.5 py-1 text-xs font-medium transition-colors whitespace-nowrap ${t.active
34
+ : _jsx(Square, { className: "h-4 w-4" }), allSelected ? l.deselectAll : l.selectAll(bulkTotalCount)] }), _jsx("span", { className: "text-sm text-zinc-500 dark:text-zinc-400", children: l.selected(bulkSelectedCount) }), _jsx("button", { type: "button", onClick: onBulkClear, className: "text-xs text-zinc-400 hover:text-rose-500 dark:text-zinc-400 transition-colors", children: l.clearSelection })] })) : onSearchChange ? (_jsxs("div", { className: "flex flex-1 items-center overflow-hidden rounded-lg border border-zinc-300 dark:border-slate-600 bg-white dark:bg-slate-900 min-w-0", children: [_jsx("input", { type: "text", value: searchValue, onChange: (e) => onSearchChange(e.target.value), onKeyDown: handleKeyDown, placeholder: searchPlaceholder, className: "min-w-0 flex-1 bg-transparent px-3 py-2 text-sm text-zinc-900 dark:text-zinc-100 placeholder-zinc-400 outline-none" }), _jsx("button", { type: "button", onClick: onSearchCommit, className: "flex shrink-0 items-center justify-center px-2.5 py-2 text-zinc-400 hover:text-[var(--appkit-color-primary,theme(colors.violet.600))] transition-colors", "aria-label": l.search, children: _jsx(Search, { className: "h-4 w-4" }) })] })) : null, _jsxs("div", { className: "flex items-center gap-1.5 sm:gap-2 shrink-0", children: [onFiltersClick && (_jsxs("button", { type: "button", onClick: onFiltersClick, className: "relative flex shrink-0 items-center gap-1.5 rounded-lg border border-zinc-300 dark:border-slate-600 px-2.5 py-1.5 sm:px-3.5 sm:py-2 text-sm font-medium text-zinc-700 dark:text-zinc-200 hover:bg-zinc-50 dark:hover:bg-slate-800 transition-colors", children: [_jsx(SlidersHorizontal, { className: "h-4 w-4" }), _jsx("span", { className: "hidden sm:inline", children: l.filters }), filterCount > 0 && (_jsx("span", { className: "absolute -top-1.5 -right-1.5 flex h-4 w-4 items-center justify-center rounded-full bg-[var(--appkit-color-primary,theme(colors.violet.600))] text-[10px] font-bold text-white", children: filterCount }))] })), sortOptions && sortValue !== undefined && onSortChange && (_jsxs("div", { className: "flex items-center gap-1.5 text-sm text-zinc-500 dark:text-zinc-400", children: [_jsx("span", { className: "hidden md:inline whitespace-nowrap text-xs", children: l.sort }), _jsx(SortDropdown, { value: sortValue, onChange: onSortChange, options: sortOptions })] })), !hideViewToggle && onViewChange && (_jsxs("div", { className: "flex items-center rounded-lg border border-zinc-300 dark:border-slate-600 overflow-hidden", children: [_jsx("button", { type: "button", onClick: () => onViewChange("grid"), "aria-label": l.gridView, className: `${VIEW_BTN_BASE} ${view === "grid" ? VIEW_BTN_ACTIVE : VIEW_BTN_INACTIVE}`, children: _jsx(LayoutGrid, { className: "h-4 w-4" }) }), _jsx("button", { type: "button", onClick: () => onViewChange("list"), "aria-label": l.listView, className: `${VIEW_BTN_BASE} ${view === "list" ? VIEW_BTN_ACTIVE : VIEW_BTN_INACTIVE}`, children: _jsx(List, { className: "h-4 w-4" }) }), showTableView && (_jsx("button", { type: "button", onClick: () => onViewChange("table"), "aria-label": l.tableView, className: `${VIEW_BTN_BASE} ${view === "table" ? VIEW_BTN_ACTIVE : VIEW_BTN_INACTIVE}`, children: _jsx(Table2, { className: "h-4 w-4" }) }))] })), onResetAll && hasActiveState && (_jsx("button", { type: "button", onClick: onResetAll, "aria-label": l.resetAll, title: l.resetAll, className: "flex shrink-0 items-center justify-center rounded-lg border border-zinc-300 dark:border-slate-600 p-1.5 sm:p-2 text-zinc-500 dark:text-zinc-400 hover:bg-zinc-50 dark:hover:bg-slate-800 hover:text-rose-500 dark:hover:text-rose-400 transition-colors", children: _jsx(RotateCcw, { className: "h-4 w-4" }) })), toggles && toggles.length > 0 && (_jsx("div", { className: "flex items-center gap-1", children: toggles.map((t) => (_jsx("button", { type: "button", role: "switch", "aria-checked": t.active, onClick: () => t.onChange(!t.active), className: `rounded-full border px-2.5 py-1 text-xs font-medium transition-colors whitespace-nowrap ${t.active
35
35
  ? "border-transparent bg-[var(--appkit-color-primary,theme(colors.violet.600))] text-white"
36
36
  : "border-zinc-300 dark:border-slate-600 text-zinc-600 dark:text-zinc-300 hover:bg-zinc-50 dark:hover:bg-slate-800"}`, children: t.label }, t.label))) })), extra] })] }) }));
37
37
  }
@@ -2,8 +2,10 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import React from "react";
4
4
  import { createPortal } from "react-dom";
5
+ import { motion, AnimatePresence, useReducedMotion } from "motion/react";
5
6
  import { Heading } from "./Typography";
6
7
  import { Button } from "./Button";
8
+ import { SPRING_GENTLE } from "../../tokens/motion";
7
9
  const SIZE_CLASSES = {
8
10
  sm: "appkit-modal__panel--sm",
9
11
  md: "appkit-modal__panel--md",
@@ -61,12 +63,13 @@ export function Modal({ isOpen, open, onClose, title, children, size = "md", sho
61
63
  first.focus();
62
64
  }
63
65
  };
64
- if (!visible || typeof document === "undefined") {
66
+ const reduced = useReducedMotion();
67
+ if (typeof document === "undefined") {
65
68
  return null;
66
69
  }
67
- return createPortal(_jsxs("div", { className: "appkit-modal", role: "dialog", "aria-modal": "true", "aria-labelledby": title ? titleId : undefined, onKeyDown: handleKeyDown, "data-section": "modal-div-561", children: [_jsx("div", { className: "appkit-modal__backdrop", "aria-hidden": "true", onClick: onClose }), _jsxs("div", { ref: panelRef, tabIndex: -1, className: ["appkit-modal__panel", SIZE_CLASSES[size], className]
68
- .filter(Boolean)
69
- .join(" "), "data-section": "modal-div-562", children: [(title || showCloseButton) && (_jsxs("div", { className: "appkit-modal__header", "data-section": "modal-div-563", children: [title ? (_jsx(Heading, { level: 2, id: titleId, className: "appkit-modal__title", children: title })) : (_jsx("span", {})), showCloseButton ? (_jsx(Button, { variant: "ghost", size: "sm", type: "button", onClick: onClose, className: "appkit-modal__close", "aria-label": "Close", children: _jsx("span", { className: "appkit-modal__close-icon", "aria-hidden": "true", children: "\u00D7" }) })) : null] })), _jsx("div", { className: "appkit-modal__body", "data-section": "modal-div-564", children: children }), actions ? _jsx(ModalFooter, { children: actions }) : null] })] }), document.body);
70
+ return createPortal(_jsx(AnimatePresence, { children: visible && (_jsxs(motion.div, { className: "appkit-modal", role: "dialog", "aria-modal": "true", "aria-labelledby": title ? titleId : undefined, onKeyDown: handleKeyDown, initial: reduced ? false : { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.15 }, "data-section": "modal-div-561", children: [_jsx("div", { className: "appkit-modal__backdrop", "aria-hidden": "true", onClick: onClose }), _jsxs(motion.div, { ref: panelRef, tabIndex: -1, className: ["appkit-modal__panel", SIZE_CLASSES[size], className]
71
+ .filter(Boolean)
72
+ .join(" "), initial: reduced ? false : { opacity: 0, scale: 0.95, y: 8 }, animate: { opacity: 1, scale: 1, y: 0 }, exit: { opacity: 0, scale: 0.95, y: 8 }, transition: SPRING_GENTLE, "data-section": "modal-div-562", children: [(title || showCloseButton) && (_jsxs("div", { className: "appkit-modal__header", "data-section": "modal-div-563", children: [title ? (_jsx(Heading, { level: 2, id: titleId, className: "appkit-modal__title", children: title })) : (_jsx("span", {})), showCloseButton ? (_jsx(Button, { variant: "ghost", size: "sm", type: "button", onClick: onClose, className: "appkit-modal__close", "aria-label": "Close", children: _jsx("span", { className: "appkit-modal__close-icon", "aria-hidden": "true", children: "\u00D7" }) })) : null] })), _jsx("div", { className: "appkit-modal__body", "data-section": "modal-div-564", children: children }), actions ? _jsx(ModalFooter, { children: actions }) : null] })] })) }), document.body);
70
73
  }
71
74
  export function ModalFooter({ children, className = "", }) {
72
75
  return (_jsx("div", { className: [
@@ -0,0 +1,75 @@
1
+ import React from "react";
2
+ import type { HTMLMotionProps } from "motion/react";
3
+ export declare const AnimatePresence: ({ children, custom, initial, onExitComplete, presenceAffectsLayout, mode, propagate, anchorX, anchorY, root }: React.PropsWithChildren<import("framer-motion").AnimatePresenceProps>) => import("react/jsx-runtime").JSX.Element | null;
4
+ export interface FadeInProps extends Omit<HTMLMotionProps<"div">, "ref"> {
5
+ delay?: number;
6
+ duration?: number;
7
+ children: React.ReactNode;
8
+ }
9
+ export declare function FadeIn({ delay, duration, children, ...props }: FadeInProps): import("react/jsx-runtime").JSX.Element;
10
+ export interface SlideUpProps extends Omit<HTMLMotionProps<"div">, "ref"> {
11
+ delay?: number;
12
+ distance?: number;
13
+ children: React.ReactNode;
14
+ }
15
+ export declare function SlideUp({ delay, distance, children, ...props }: SlideUpProps): import("react/jsx-runtime").JSX.Element;
16
+ export interface SlideInProps extends Omit<HTMLMotionProps<"div">, "ref"> {
17
+ direction?: "left" | "right" | "up" | "down";
18
+ delay?: number;
19
+ distance?: number;
20
+ children: React.ReactNode;
21
+ }
22
+ export declare function SlideIn({ direction, delay, distance, children, ...props }: SlideInProps): import("react/jsx-runtime").JSX.Element;
23
+ export interface ScaleInProps extends Omit<HTMLMotionProps<"div">, "ref"> {
24
+ delay?: number;
25
+ children: React.ReactNode;
26
+ }
27
+ export declare function ScaleIn({ delay, children, ...props }: ScaleInProps): import("react/jsx-runtime").JSX.Element;
28
+ export interface CollapseProps extends Omit<HTMLMotionProps<"div">, "ref"> {
29
+ isOpen: boolean;
30
+ children: React.ReactNode;
31
+ }
32
+ export declare function Collapse({ isOpen, children, ...props }: CollapseProps): import("react/jsx-runtime").JSX.Element;
33
+ export interface PressScaleProps extends Omit<HTMLMotionProps<"div">, "ref"> {
34
+ scale?: number;
35
+ children: React.ReactNode;
36
+ }
37
+ export declare function PressScale({ scale, children, ...props }: PressScaleProps): import("react/jsx-runtime").JSX.Element;
38
+ export interface HoverLiftProps extends Omit<HTMLMotionProps<"div">, "ref"> {
39
+ lift?: number;
40
+ children: React.ReactNode;
41
+ }
42
+ export declare function HoverLift({ lift, children, ...props }: HoverLiftProps): import("react/jsx-runtime").JSX.Element;
43
+ export interface AnimatedListProps extends Omit<HTMLMotionProps<"div">, "ref"> {
44
+ staggerDelay?: number;
45
+ children: React.ReactNode;
46
+ }
47
+ export declare function AnimatedList({ staggerDelay, children, ...props }: AnimatedListProps): import("react/jsx-runtime").JSX.Element;
48
+ export interface AnimatedDivProps extends Omit<HTMLMotionProps<"div">, "ref"> {
49
+ delay?: number;
50
+ children?: React.ReactNode;
51
+ }
52
+ export declare function AnimatedDiv({ delay, children, ...props }: AnimatedDivProps): import("react/jsx-runtime").JSX.Element;
53
+ export type AnimatedStackProps = AnimatedDivProps;
54
+ export declare function AnimatedStack({ delay, children, className, ...props }: AnimatedStackProps): import("react/jsx-runtime").JSX.Element;
55
+ export type AnimatedRowProps = AnimatedDivProps;
56
+ export declare function AnimatedRow({ delay, children, className, ...props }: AnimatedRowProps): import("react/jsx-runtime").JSX.Element;
57
+ export interface DraggableProps extends Omit<HTMLMotionProps<"div">, "ref"> {
58
+ axis?: "x" | "y" | boolean;
59
+ constraints?: {
60
+ top?: number;
61
+ right?: number;
62
+ bottom?: number;
63
+ left?: number;
64
+ } | React.RefObject<HTMLElement | null>;
65
+ dragElastic?: number;
66
+ children: React.ReactNode;
67
+ }
68
+ export declare function Draggable({ axis, constraints, dragElastic, children, ...props }: DraggableProps): import("react/jsx-runtime").JSX.Element;
69
+ export interface SwipeableProps extends Omit<HTMLMotionProps<"div">, "ref"> {
70
+ onSwipeLeft?: () => void;
71
+ onSwipeRight?: () => void;
72
+ threshold?: number;
73
+ children: React.ReactNode;
74
+ }
75
+ export declare function Swipeable({ onSwipeLeft, onSwipeRight, threshold, children, ...props }: SwipeableProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,122 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import { motion, useReducedMotion, AnimatePresence as MotionAnimatePresence, } from "motion/react";
5
+ import { MOTION_PRESETS, SPRING_SNAPPY, EASE_OUT } from "../../tokens/motion";
6
+ // Re-export AnimatePresence for consumer convenience
7
+ export const AnimatePresence = MotionAnimatePresence;
8
+ // ── Reduced motion helper ────────────────────────────────────────────────────
9
+ function useMotionProps(props) {
10
+ const reduced = useReducedMotion();
11
+ if (!reduced)
12
+ return props;
13
+ const { initial, animate, exit, whileHover, whileTap, whileInView, transition, ...rest } = props;
14
+ return { ...rest, initial: false, animate: false };
15
+ }
16
+ export function FadeIn({ delay = 0, duration = 0.3, children, ...props }) {
17
+ const motionProps = useMotionProps({
18
+ initial: { opacity: 0 },
19
+ animate: { opacity: 1 },
20
+ exit: { opacity: 0 },
21
+ transition: { duration, delay },
22
+ ...props,
23
+ });
24
+ return _jsx(motion.div, { ...motionProps, children: children });
25
+ }
26
+ export function SlideUp({ delay = 0, distance = 20, children, ...props }) {
27
+ const motionProps = useMotionProps({
28
+ initial: { opacity: 0, y: distance },
29
+ animate: { opacity: 1, y: 0 },
30
+ exit: { opacity: 0, y: distance },
31
+ transition: { ...SPRING_SNAPPY, delay },
32
+ ...props,
33
+ });
34
+ return _jsx(motion.div, { ...motionProps, children: children });
35
+ }
36
+ const SLIDE_OFFSETS = {
37
+ left: { x: -24, y: 0 },
38
+ right: { x: 24, y: 0 },
39
+ up: { x: 0, y: -20 },
40
+ down: { x: 0, y: 20 },
41
+ };
42
+ export function SlideIn({ direction = "left", delay = 0, distance, children, ...props }) {
43
+ const offset = SLIDE_OFFSETS[direction];
44
+ const scale = distance ? distance / Math.max(Math.abs(offset.x || 1), Math.abs(offset.y || 1)) : 1;
45
+ const motionProps = useMotionProps({
46
+ initial: { opacity: 0, x: offset.x * scale, y: offset.y * scale },
47
+ animate: { opacity: 1, x: 0, y: 0 },
48
+ exit: { opacity: 0, x: offset.x * scale, y: offset.y * scale },
49
+ transition: { ...SPRING_SNAPPY, delay },
50
+ ...props,
51
+ });
52
+ return _jsx(motion.div, { ...motionProps, children: children });
53
+ }
54
+ export function ScaleIn({ delay = 0, children, ...props }) {
55
+ const motionProps = useMotionProps({
56
+ ...MOTION_PRESETS.scaleIn,
57
+ transition: { ...MOTION_PRESETS.scaleIn.transition, delay },
58
+ ...props,
59
+ });
60
+ return _jsx(motion.div, { ...motionProps, children: children });
61
+ }
62
+ export function Collapse({ isOpen, children, ...props }) {
63
+ const reduced = useReducedMotion();
64
+ return (_jsx(MotionAnimatePresence, { initial: false, children: isOpen && (_jsx(motion.div, { initial: reduced ? false : { height: 0, opacity: 0, overflow: "hidden" }, animate: { height: "auto", opacity: 1, overflow: "hidden" }, exit: { height: 0, opacity: 0, overflow: "hidden" }, transition: EASE_OUT, ...props, children: children })) }));
65
+ }
66
+ export function PressScale({ scale = 0.97, children, ...props }) {
67
+ const reduced = useReducedMotion();
68
+ return (_jsx(motion.div, { whileTap: reduced ? undefined : { scale }, transition: { duration: 0.1 }, ...props, children: children }));
69
+ }
70
+ export function HoverLift({ lift = 2, children, ...props }) {
71
+ const reduced = useReducedMotion();
72
+ return (_jsx(motion.div, { whileHover: reduced ? undefined : { y: -lift }, transition: SPRING_SNAPPY, ...props, children: children }));
73
+ }
74
+ export function AnimatedList({ staggerDelay = 0.05, children, ...props }) {
75
+ const reduced = useReducedMotion();
76
+ const items = React.Children.toArray(children);
77
+ return (_jsx(motion.div, { ...props, children: items.map((child, i) => (_jsx(motion.div, { initial: reduced ? false : { opacity: 0, y: 16 }, animate: { opacity: 1, y: 0 }, transition: { ...EASE_OUT, delay: i * staggerDelay }, children: child }, React.isValidElement(child) ? (child.key ?? i) : i))) }));
78
+ }
79
+ export function AnimatedDiv({ delay = 0, children, ...props }) {
80
+ const motionProps = useMotionProps({
81
+ initial: { opacity: 0 },
82
+ animate: { opacity: 1 },
83
+ exit: { opacity: 0 },
84
+ transition: { duration: 0.2, delay },
85
+ ...props,
86
+ });
87
+ return _jsx(motion.div, { ...motionProps, children: children });
88
+ }
89
+ export function AnimatedStack({ delay = 0, children, className, ...props }) {
90
+ const motionProps = useMotionProps({
91
+ initial: { opacity: 0 },
92
+ animate: { opacity: 1 },
93
+ exit: { opacity: 0 },
94
+ transition: { duration: 0.2, delay },
95
+ ...props,
96
+ });
97
+ return (_jsx(motion.div, { ...motionProps, className: ["flex flex-col gap-4", className].filter(Boolean).join(" "), children: children }));
98
+ }
99
+ export function AnimatedRow({ delay = 0, children, className, ...props }) {
100
+ const motionProps = useMotionProps({
101
+ initial: { opacity: 0 },
102
+ animate: { opacity: 1 },
103
+ exit: { opacity: 0 },
104
+ transition: { duration: 0.2, delay },
105
+ ...props,
106
+ });
107
+ return (_jsx(motion.div, { ...motionProps, className: ["flex flex-row gap-4", className].filter(Boolean).join(" "), children: children }));
108
+ }
109
+ export function Draggable({ axis, constraints, dragElastic = 0.1, children, ...props }) {
110
+ const reduced = useReducedMotion();
111
+ const drag = reduced ? false : (axis === true ? true : axis || true);
112
+ return (_jsx(motion.div, { drag: drag, dragConstraints: constraints, dragElastic: dragElastic, ...props, children: children }));
113
+ }
114
+ export function Swipeable({ onSwipeLeft, onSwipeRight, threshold = 50, children, ...props }) {
115
+ const reduced = useReducedMotion();
116
+ return (_jsx(motion.div, { drag: reduced ? false : "x", dragConstraints: { left: 0, right: 0 }, dragElastic: 0.2, onDragEnd: (_e, info) => {
117
+ if (info.offset.x < -threshold)
118
+ onSwipeLeft?.();
119
+ if (info.offset.x > threshold)
120
+ onSwipeRight?.();
121
+ }, ...props, children: children }));
122
+ }
@@ -23,5 +23,5 @@ export function Select({ options, value, onChange, onValueChange, placeholder, l
23
23
  className,
24
24
  ]
25
25
  .filter(Boolean)
26
- .join(" "), children: [placeholder ? (_jsx("option", { value: "", disabled: true, children: placeholder })) : null, options.map((option) => (_jsx("option", { value: option.value, disabled: option.disabled, children: option.label }, String(option.value))))] }), _jsx("div", { className: "pointer-events-none absolute inset-y-0 right-3 flex items-center text-zinc-400 dark:text-zinc-500", "data-section": "select-div-594", children: _jsx("svg", { className: "h-4 w-4", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: _jsx("path", { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }) }) })] }), error ? (_jsx(Text, { size: "sm", variant: "error", className: "appkit-select__error", role: "alert", children: error })) : helperText ? (_jsx(Text, { size: "sm", variant: "secondary", className: "appkit-select__error", children: helperText })) : null] }));
26
+ .join(" "), children: [placeholder ? (_jsx("option", { value: "", disabled: true, children: placeholder })) : null, options.map((option) => (_jsx("option", { value: option.value, disabled: option.disabled, children: option.label }, String(option.value))))] }), _jsx("div", { className: "pointer-events-none absolute inset-y-0 right-3 flex items-center text-zinc-400 dark:text-zinc-400", "data-section": "select-div-594", children: _jsx("svg", { className: "h-4 w-4", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: _jsx("path", { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }) }) })] }), error ? (_jsx(Text, { size: "sm", variant: "error", className: "appkit-select__error", role: "alert", children: error })) : helperText ? (_jsx(Text, { size: "sm", variant: "secondary", className: "appkit-select__error", children: helperText })) : null] }));
27
27
  }
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import type { SurfaceProps } from "./surface-tokens";
2
3
  /**
3
4
  * Semantic HTML Wrapper Components
4
5
  *
@@ -35,7 +36,7 @@ import React from "react";
35
36
  * Use for thematically grouped content that would appear in an outline.
36
37
  * Prefer this over a plain `<div data-section="semantic-div-596">` when the block has a heading.
37
38
  */
38
- export interface SectionProps extends React.HTMLAttributes<HTMLElement> {
39
+ export interface SectionProps extends React.HTMLAttributes<HTMLElement>, SurfaceProps {
39
40
  children: React.ReactNode;
40
41
  }
41
42
  export declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLElement>>;
@@ -43,24 +44,24 @@ export declare const Section: React.ForwardRefExoticComponent<SectionProps & Rea
43
44
  * Semantic `<article>` element.
44
45
  * Use for self-contained compositions: blog posts, product cards, reviews, forum posts.
45
46
  */
46
- export interface ArticleProps extends React.HTMLAttributes<HTMLElement> {
47
+ export interface ArticleProps extends React.HTMLAttributes<HTMLElement>, SurfaceProps {
47
48
  children?: React.ReactNode;
48
49
  }
49
- export declare function Article({ className, children, ...props }: ArticleProps): import("react/jsx-runtime").JSX.Element;
50
+ export declare function Article({ className, surface, padding, rounded, border, shadow, children, ...props }: ArticleProps): import("react/jsx-runtime").JSX.Element;
50
51
  /**
51
52
  * Semantic `<main>` element.
52
53
  * Wraps the primary content of the document. Should appear only once per page.
53
54
  */
54
- export interface MainProps extends React.HTMLAttributes<HTMLElement> {
55
+ export interface MainProps extends React.HTMLAttributes<HTMLElement>, SurfaceProps {
55
56
  children: React.ReactNode;
56
57
  }
57
- export declare function Main({ className, children, ...props }: MainProps): import("react/jsx-runtime").JSX.Element;
58
+ export declare function Main({ className, surface, padding, rounded, border, shadow, children, ...props }: MainProps): import("react/jsx-runtime").JSX.Element;
58
59
  /**
59
60
  * Semantic `<aside>` element.
60
61
  * Use for supplementary content tangentially related to the main content:
61
62
  * sidebars, callout boxes, related-link panels.
62
63
  */
63
- export interface AsideProps extends React.HTMLAttributes<HTMLElement> {
64
+ export interface AsideProps extends React.HTMLAttributes<HTMLElement>, SurfaceProps {
64
65
  children: React.ReactNode;
65
66
  }
66
67
  export declare const Aside: React.ForwardRefExoticComponent<AsideProps & React.RefAttributes<HTMLElement>>;
@@ -95,18 +96,18 @@ export declare function Nav({ className, children, ...props }: NavProps): import
95
96
  * </Article>
96
97
  * ```
97
98
  */
98
- export interface BlockHeaderProps extends React.HTMLAttributes<HTMLElement> {
99
+ export interface BlockHeaderProps extends React.HTMLAttributes<HTMLElement>, SurfaceProps {
99
100
  children: React.ReactNode;
100
101
  }
101
- export declare function BlockHeader({ className, children, ...props }: BlockHeaderProps): import("react/jsx-runtime").JSX.Element;
102
+ export declare function BlockHeader({ className, surface, padding, rounded, border, shadow, children, ...props }: BlockHeaderProps): import("react/jsx-runtime").JSX.Element;
102
103
  /**
103
104
  * Semantic `<footer>` element for block-level component footers.
104
105
  * Use inside `Section`, `Article`, or card bodies — NOT as the page-level footer.
105
106
  */
106
- export interface BlockFooterProps extends React.HTMLAttributes<HTMLElement> {
107
+ export interface BlockFooterProps extends React.HTMLAttributes<HTMLElement>, SurfaceProps {
107
108
  children: React.ReactNode;
108
109
  }
109
- export declare function BlockFooter({ className, children, ...props }: BlockFooterProps): import("react/jsx-runtime").JSX.Element;
110
+ export declare function BlockFooter({ className, surface, padding, rounded, border, shadow, children, ...props }: BlockFooterProps): import("react/jsx-runtime").JSX.Element;
110
111
  /**
111
112
  * Semantic `<ul>` (unordered list) element.
112
113
  *
@@ -144,11 +145,77 @@ export interface LiProps extends React.LiHTMLAttributes<HTMLLIElement> {
144
145
  children: React.ReactNode;
145
146
  }
146
147
  export declare function Li({ className, children, ...props }: LiProps): import("react/jsx-runtime").JSX.Element;
147
- /**
148
- * Aliases for `BlockHeader` and `BlockFooter`.
149
- * Use when importing from the standard `<Header>` / `<Footer>` names.
150
- */
151
148
  export type HeaderProps = BlockHeaderProps;
152
149
  export declare const Header: typeof BlockHeader;
153
150
  export type FooterProps = BlockFooterProps;
154
151
  export declare const Footer: typeof BlockFooter;
152
+ type TableVariant = "default" | "striped" | "bordered";
153
+ type TableSize = "sm" | "md" | "lg";
154
+ export interface TableProps extends Omit<React.TableHTMLAttributes<HTMLTableElement>, "border">, SurfaceProps {
155
+ variant?: TableVariant;
156
+ size?: TableSize;
157
+ stickyHeader?: boolean;
158
+ children: React.ReactNode;
159
+ }
160
+ export declare function Table({ variant, size, stickyHeader, className, surface, padding, rounded, border, shadow, children, ...props }: TableProps): import("react/jsx-runtime").JSX.Element;
161
+ export interface TheadProps extends React.HTMLAttributes<HTMLTableSectionElement> {
162
+ children: React.ReactNode;
163
+ }
164
+ export declare function Thead({ className, children, ...props }: TheadProps): import("react/jsx-runtime").JSX.Element;
165
+ export interface TbodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
166
+ children: React.ReactNode;
167
+ }
168
+ export declare function Tbody({ className, children, ...props }: TbodyProps): import("react/jsx-runtime").JSX.Element;
169
+ export interface TrProps extends React.HTMLAttributes<HTMLTableRowElement> {
170
+ hover?: boolean;
171
+ children: React.ReactNode;
172
+ }
173
+ export declare function Tr({ hover, className, children, ...props }: TrProps): import("react/jsx-runtime").JSX.Element;
174
+ type CellAlign = "left" | "center" | "right";
175
+ export interface ThProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
176
+ align?: CellAlign;
177
+ children?: React.ReactNode;
178
+ }
179
+ export declare function Th({ align, className, children, ...props }: ThProps): import("react/jsx-runtime").JSX.Element;
180
+ export interface TdProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
181
+ align?: CellAlign;
182
+ children?: React.ReactNode;
183
+ }
184
+ export declare function Td({ align, className, children, ...props }: TdProps): import("react/jsx-runtime").JSX.Element;
185
+ export interface CodeProps extends React.HTMLAttributes<HTMLElement> {
186
+ color?: "default" | "primary" | "error" | "success";
187
+ children: React.ReactNode;
188
+ }
189
+ export declare function Code({ color, className, children, ...props }: CodeProps): import("react/jsx-runtime").JSX.Element;
190
+ export interface PreProps extends React.HTMLAttributes<HTMLPreElement>, SurfaceProps {
191
+ children: React.ReactNode;
192
+ }
193
+ export declare function Pre({ className, surface, padding, rounded, border, shadow, children, ...props }: PreProps): import("react/jsx-runtime").JSX.Element;
194
+ export interface BlockquoteProps extends React.BlockquoteHTMLAttributes<HTMLQuoteElement>, SurfaceProps {
195
+ color?: "default" | "primary" | "info" | "warning";
196
+ children: React.ReactNode;
197
+ }
198
+ export declare function Blockquote({ color, className, surface, padding, rounded, border, shadow, children, ...props }: BlockquoteProps): import("react/jsx-runtime").JSX.Element;
199
+ export interface FigureProps extends React.HTMLAttributes<HTMLElement>, SurfaceProps {
200
+ children: React.ReactNode;
201
+ }
202
+ export declare function Figure({ className, surface, padding, rounded, border, shadow, children, ...props }: FigureProps): import("react/jsx-runtime").JSX.Element;
203
+ export interface FigcaptionProps extends React.HTMLAttributes<HTMLElement> {
204
+ children: React.ReactNode;
205
+ }
206
+ export declare function Figcaption({ className, children, ...props }: FigcaptionProps): import("react/jsx-runtime").JSX.Element;
207
+ type DlVariant = "stacked" | "inline";
208
+ export interface DlProps extends React.HTMLAttributes<HTMLDListElement>, SurfaceProps {
209
+ variant?: DlVariant;
210
+ children: React.ReactNode;
211
+ }
212
+ export declare function Dl({ variant, className, surface, padding, rounded, border, shadow, children, ...props }: DlProps): import("react/jsx-runtime").JSX.Element;
213
+ export interface DtProps extends React.HTMLAttributes<HTMLElement> {
214
+ children: React.ReactNode;
215
+ }
216
+ export declare function Dt({ className, children, ...props }: DtProps): import("react/jsx-runtime").JSX.Element;
217
+ export interface DdProps extends React.HTMLAttributes<HTMLElement> {
218
+ children: React.ReactNode;
219
+ }
220
+ export declare function Dd({ className, children, ...props }: DdProps): import("react/jsx-runtime").JSX.Element;
221
+ export {};
@@ -1,23 +1,24 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from "react";
3
- export const Section = React.forwardRef(({ className = "", children, ...props }, ref) => (_jsx("section", { className: className, ref: ref, ...props, children: children })));
3
+ import { buildSurfaceClasses } from "./surface-tokens";
4
+ export const Section = React.forwardRef(({ className = "", surface, padding, rounded, border, shadow, children, ...props }, ref) => (_jsx("section", { className: [buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className].filter(Boolean).join(" "), ref: ref, ...props, children: children })));
4
5
  Section.displayName = "Section";
5
- export function Article({ className = "", children, ...props }) {
6
- return (_jsx("article", { className: className, ...props, children: children }));
6
+ export function Article({ className = "", surface, padding, rounded, border, shadow, children, ...props }) {
7
+ return (_jsx("article", { className: [buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className].filter(Boolean).join(" "), ...props, children: children }));
7
8
  }
8
- export function Main({ className = "", children, ...props }) {
9
- return (_jsx("main", { className: className, ...props, children: children }));
9
+ export function Main({ className = "", surface, padding, rounded, border, shadow, children, ...props }) {
10
+ return (_jsx("main", { className: [buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className].filter(Boolean).join(" "), ...props, children: children }));
10
11
  }
11
- export const Aside = React.forwardRef(({ className = "", children, ...props }, ref) => (_jsx("aside", { className: className, ref: ref, ...props, children: children })));
12
+ export const Aside = React.forwardRef(({ className = "", surface, padding, rounded, border, shadow, children, ...props }, ref) => (_jsx("aside", { className: [buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className].filter(Boolean).join(" "), ref: ref, ...props, children: children })));
12
13
  Aside.displayName = "Aside";
13
14
  export function Nav({ className = "", children, ...props }) {
14
15
  return (_jsx("nav", { className: className, ...props, children: children }));
15
16
  }
16
- export function BlockHeader({ className = "", children, ...props }) {
17
- return (_jsx("header", { className: className, ...props, children: children }));
17
+ export function BlockHeader({ className = "", surface, padding, rounded, border, shadow, children, ...props }) {
18
+ return (_jsx("header", { className: [buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className].filter(Boolean).join(" "), ...props, children: children }));
18
19
  }
19
- export function BlockFooter({ className = "", children, ...props }) {
20
- return (_jsx("footer", { className: className, ...props, children: children }));
20
+ export function BlockFooter({ className = "", surface, padding, rounded, border, shadow, children, ...props }) {
21
+ return (_jsx("footer", { className: [buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className].filter(Boolean).join(" "), ...props, children: children }));
21
22
  }
22
23
  export function Ul({ className = "", children, ...props }) {
23
24
  return (_jsx("ul", { className: className, ...props, children: children }));
@@ -30,3 +31,67 @@ export function Li({ className = "", children, ...props }) {
30
31
  }
31
32
  export const Header = BlockHeader;
32
33
  export const Footer = BlockFooter;
34
+ const TABLE_VARIANT_MAP = {
35
+ default: "appkit-table--default",
36
+ striped: "appkit-table--striped",
37
+ bordered: "appkit-table--bordered",
38
+ };
39
+ const TABLE_SIZE_MAP = {
40
+ sm: "appkit-table--sm",
41
+ md: "appkit-table--md",
42
+ lg: "appkit-table--lg",
43
+ };
44
+ export function Table({ variant = "default", size = "md", stickyHeader = false, className = "", surface, padding, rounded, border, shadow, children, ...props }) {
45
+ return (_jsx("table", { className: ["appkit-table", TABLE_VARIANT_MAP[variant], TABLE_SIZE_MAP[size], stickyHeader ? "appkit-table--sticky-header" : "", buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className].filter(Boolean).join(" "), ...props, children: children }));
46
+ }
47
+ export function Thead({ className = "", children, ...props }) {
48
+ return (_jsx("thead", { className: ["appkit-thead", className].filter(Boolean).join(" "), ...props, children: children }));
49
+ }
50
+ export function Tbody({ className = "", children, ...props }) {
51
+ return (_jsx("tbody", { className: ["appkit-tbody", className].filter(Boolean).join(" "), ...props, children: children }));
52
+ }
53
+ export function Tr({ hover = false, className = "", children, ...props }) {
54
+ return (_jsx("tr", { className: ["appkit-tr", hover ? "appkit-tr--hover" : "", className].filter(Boolean).join(" "), ...props, children: children }));
55
+ }
56
+ export function Th({ align, className = "", children, ...props }) {
57
+ return (_jsx("th", { className: ["appkit-th", align ? `text-${align}` : "", className].filter(Boolean).join(" "), ...props, children: children }));
58
+ }
59
+ export function Td({ align, className = "", children, ...props }) {
60
+ return (_jsx("td", { className: ["appkit-td", align ? `text-${align}` : "", className].filter(Boolean).join(" "), ...props, children: children }));
61
+ }
62
+ const CODE_COLOR_MAP = {
63
+ default: "appkit-code--default",
64
+ primary: "appkit-code--primary",
65
+ error: "appkit-code--error",
66
+ success: "appkit-code--success",
67
+ };
68
+ export function Code({ color = "default", className = "", children, ...props }) {
69
+ return (_jsx("code", { className: ["appkit-code", CODE_COLOR_MAP[color], className].filter(Boolean).join(" "), ...props, children: children }));
70
+ }
71
+ export function Pre({ className = "", surface, padding, rounded, border, shadow, children, ...props }) {
72
+ return (_jsx("pre", { className: ["appkit-pre", buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className].filter(Boolean).join(" "), ...props, children: children }));
73
+ }
74
+ const BLOCKQUOTE_COLOR_MAP = {
75
+ default: "appkit-blockquote--default",
76
+ primary: "appkit-blockquote--primary",
77
+ info: "appkit-blockquote--info",
78
+ warning: "appkit-blockquote--warning",
79
+ };
80
+ export function Blockquote({ color = "default", className = "", surface, padding, rounded, border, shadow, children, ...props }) {
81
+ return (_jsx("blockquote", { className: ["appkit-blockquote", BLOCKQUOTE_COLOR_MAP[color], buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className].filter(Boolean).join(" "), ...props, children: children }));
82
+ }
83
+ export function Figure({ className = "", surface, padding, rounded, border, shadow, children, ...props }) {
84
+ return (_jsx("figure", { className: ["appkit-figure", buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className].filter(Boolean).join(" "), ...props, children: children }));
85
+ }
86
+ export function Figcaption({ className = "", children, ...props }) {
87
+ return (_jsx("figcaption", { className: ["appkit-figcaption", className].filter(Boolean).join(" "), ...props, children: children }));
88
+ }
89
+ export function Dl({ variant = "stacked", className = "", surface, padding, rounded, border, shadow, children, ...props }) {
90
+ return (_jsx("dl", { className: ["appkit-dl", variant === "inline" ? "appkit-dl--inline" : "appkit-dl--stacked", buildSurfaceClasses({ surface, padding, rounded, border, shadow }), className].filter(Boolean).join(" "), ...props, children: children }));
91
+ }
92
+ export function Dt({ className = "", children, ...props }) {
93
+ return (_jsx("dt", { className: ["appkit-dt", className].filter(Boolean).join(" "), ...props, children: children }));
94
+ }
95
+ export function Dd({ className = "", children, ...props }) {
96
+ return (_jsx("dd", { className: ["appkit-dd", className].filter(Boolean).join(" "), ...props, children: children }));
97
+ }