@mohasinac/appkit 3.3.5 → 3.3.6

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 (37) hide show
  1. package/dist/features/about/components/AboutView.js +1 -1
  2. package/dist/features/about/components/TrackOrderView.js +1 -1
  3. package/dist/features/account/components/AddressesIndexListing.js +1 -1
  4. package/dist/features/admin/components/AdminBlogEditorView.js +1 -1
  5. package/dist/features/admin/components/AdminProductsView.js +2 -2
  6. package/dist/features/admin/components/AdminSiteSettingsView.js +1 -1
  7. package/dist/features/auctions/components/AuctionBidsTable.js +1 -1
  8. package/dist/features/cart/components/CartDrawer.js +1 -1
  9. package/dist/features/events/components/EventLeaderboard.js +1 -1
  10. package/dist/features/forms/Slider.js +1 -1
  11. package/dist/features/homepage/components/AdSlot.js +1 -1
  12. package/dist/features/homepage/components/BeforeAfterCard.js +1 -1
  13. package/dist/features/homepage/components/HowItWorksInfoView.js +1 -1
  14. package/dist/features/homepage/components/SiteFeaturesSection.js +1 -1
  15. package/dist/features/homepage/components/TrustIndicatorsSection.js +1 -1
  16. package/dist/features/orders/components/MarketplaceOrderCard.js +7 -4
  17. package/dist/features/products/components/BidHistory.js +1 -1
  18. package/dist/features/products/components/ProductGalleryClient.js +1 -1
  19. package/dist/features/products/components/ShowGroupSection.js +1 -1
  20. package/dist/features/products/components/SublistingCarouselSection.js +1 -1
  21. package/dist/features/scams/components/ScamAwarenessModal.js +1 -1
  22. package/dist/features/search/components/Search.js +1 -1
  23. package/dist/features/seller/components/SellerGoogleReviewsView.js +1 -1
  24. package/dist/features/seller/components/SellerPayoutMethodsView.js +1 -1
  25. package/dist/features/shell/QuickFormDrawer.js +1 -1
  26. package/dist/next/ErrorBoundary.js +2 -2
  27. package/dist/styles.css +1 -1
  28. package/dist/tailwind-utilities.css +1 -1
  29. package/dist/ui/components/Anchor.d.ts +9 -2
  30. package/dist/ui/components/Anchor.js +17 -2
  31. package/dist/ui/components/Div.d.ts +1 -1
  32. package/dist/ui/components/Div.js +2 -0
  33. package/dist/ui/components/Typography.d.ts +1 -1
  34. package/dist/ui/components/Typography.js +1 -0
  35. package/dist/ui/components/surface-tokens.d.ts +1 -1
  36. package/dist/ui/components/surface-tokens.js +4 -0
  37. package/package.json +1 -1
@@ -2,10 +2,10 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Component } from "react";
4
4
  import { Button } from "../ui/components/Button";
5
- import { Div } from "../ui/components/Div";
5
+ import { Stack } from "../ui/components/Layout";
6
6
  import { Heading, Text } from "../ui/components/Typography";
7
7
  function DefaultFallback({ error, onReset, }) {
8
- return (_jsxs(Div, { className: "flex min-h-[40vh] flex-col items-center justify-center gap-4 rounded-xl border border-zinc-200 bg-[var(--appkit-color-surface)] p-6 text-center border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface)]", "data-section": "errorboundary-div-445", children: [_jsx(Heading, { level: 2, children: "Something went wrong" }), _jsx(Text, { variant: "secondary", children: "An unexpected error occurred. Please try again." }), process.env.NODE_ENV === "development" && error ? (_jsx("pre", { className: "max-w-full overflow-auto rounded-md bg-[var(--appkit-color-surface)] p-3 text-left text-xs bg-[var(--appkit-color-surface-elevated)]", children: error.message })) : null, _jsx(Button, { type: "button", onClick: onReset, children: "Try again" })] }));
8
+ return (_jsxs(Stack, { centered: true, gap: "md", surface: "default", padding: "lg", rounded: "xl", border: "default", className: "min-h-[40vh] text-center", "data-section": "errorboundary-div-445", children: [_jsx(Heading, { level: 2, children: "Something went wrong" }), _jsx(Text, { variant: "secondary", children: "An unexpected error occurred. Please try again." }), process.env.NODE_ENV === "development" && error ? (_jsx("pre", { className: "max-w-full overflow-auto rounded-md bg-[var(--appkit-color-surface)] p-3 text-left text-xs bg-[var(--appkit-color-surface-elevated)]", children: error.message })) : null, _jsx(Button, { type: "button", onClick: onReset, children: "Try again" })] }));
9
9
  }
10
10
  export class ErrorBoundary extends Component {
11
11
  constructor(props) {