@shopify/shop-minis-react
Version:
React component library for Shopify Shop Minis with Tailwind CSS v4 support (source-only, requires TypeScript)
227 lines (226 loc) • 10.4 kB
JavaScript
import { MinisContainer as o } from "./components/MinisContainer.js";
import { ProductCard as a, ProductCardBadge as i, ProductCardCurrentPrice as n, ProductCardFavoriteButton as c, ProductCardImage as l, ProductCardImageContainer as u, ProductCardInfo as d, ProductCardOriginalPrice as s, ProductCardPrice as p, ProductCardRoot as m, ProductCardTitle as f } from "./components/commerce/product-card.js";
import { ProductLink as C, ProductLinkActions as g, ProductLinkCurrentPrice as P, ProductLinkDiscountPrice as D, ProductLinkImage as S, ProductLinkInfo as A, ProductLinkOriginalPrice as h, ProductLinkPrice as L, ProductLinkRating as k, ProductLinkRoot as I, ProductLinkTitle as T } from "./components/commerce/product-link.js";
import { MerchantCard as w, MerchantCardImage as R, MerchantCardImageContainer as v, MerchantCardInfo as b, MerchantCardLogo as F, MerchantCardName as B, MerchantCardPrimitive as y, MerchantCardRating as E, MerchantCardRoot as H } from "./components/commerce/merchant-card.js";
import { Accordion as G, AccordionContent as N, AccordionItem as U, AccordionTrigger as V } from "./components/atoms/accordion.js";
import { Alert as j, AlertDescription as q, AlertTitle as J } from "./components/atoms/alert.js";
import { AlertDialog as Q, AlertDialogAction as W, AlertDialogCancel as X, AlertDialogContent as Y, AlertDialogDescription as Z, AlertDialogFooter as _, AlertDialogHeader as $, AlertDialogOverlay as rr, AlertDialogPortal as er, AlertDialogTitle as or, AlertDialogTrigger as tr } from "./components/atoms/alert-dialog.js";
import { Avatar as ir, AvatarFallback as nr, AvatarImage as cr } from "./components/atoms/avatar.js";
import { Badge as ur, badgeVariants as dr } from "./components/atoms/badge.js";
import { Button as pr, buttonVariants as mr } from "./components/atoms/button.js";
import { Card as xr, CardAction as Cr, CardContent as gr, CardDescription as Pr, CardFooter as Dr, CardHeader as Sr, CardTitle as Ar } from "./components/atoms/card.js";
import { Carousel as Lr, CarouselContent as kr, CarouselItem as Ir, CarouselNext as Tr, CarouselPrevious as Mr } from "./components/atoms/carousel.js";
import { Checkbox as Rr } from "./components/atoms/checkbox.js";
import { Dialog as br, DialogClose as Fr, DialogContent as Br, DialogDescription as yr, DialogFooter as Er, DialogHeader as Hr, DialogOverlay as Or, DialogPortal as Gr, DialogTitle as Nr, DialogTrigger as Ur } from "./components/atoms/dialog.js";
import { Drawer as zr, DrawerClose as jr, DrawerContent as qr, DrawerDescription as Jr, DrawerFooter as Kr, DrawerHeader as Qr, DrawerOverlay as Wr, DrawerPortal as Xr, DrawerTitle as Yr, DrawerTrigger as Zr } from "./components/atoms/drawer.js";
import { Input as $r } from "./components/atoms/input.js";
import { Label as ee } from "./components/atoms/label.js";
import { Progress as te } from "./components/atoms/progress.js";
import { RadioGroup as ie, RadioGroupItem as ne } from "./components/atoms/radio-group.js";
import { ResizableHandle as le, ResizablePanel as ue, ResizablePanelGroup as de } from "./components/atoms/resizable.js";
import { ScrollArea as pe, ScrollBar as me } from "./components/atoms/scroll-area.js";
import { Select as xe, SelectContent as Ce, SelectGroup as ge, SelectItem as Pe, SelectLabel as De, SelectScrollDownButton as Se, SelectScrollUpButton as Ae, SelectSeparator as he, SelectTrigger as Le, SelectValue as ke } from "./components/atoms/select.js";
import { Separator as Te } from "./components/atoms/separator.js";
import { Sheet as we, SheetClose as Re, SheetContent as ve, SheetDescription as be, SheetFooter as Fe, SheetHeader as Be, SheetTitle as ye, SheetTrigger as Ee } from "./components/atoms/sheet.js";
import { Toaster as Oe } from "./components/atoms/sonner.js";
import { useRecentProducts as Ne } from "./hooks/user/useRecentProducts.js";
import { useRecentShops as Ve } from "./hooks/user/useRecentShops.js";
import { useSavedProducts as je } from "./hooks/user/useSavedProducts.js";
import { useSavedProductsActions as Je } from "./hooks/user/useSavedProductsActions.js";
import { useFollowedShops as Qe } from "./hooks/user/useFollowedShops.js";
import { useFollowedShopsActions as Xe } from "./hooks/user/useFollowedShopsActions.js";
import { useCurrentUser as Ze } from "./hooks/user/useCurrentUser.js";
import { useOrders as $e } from "./hooks/user/useOrders.js";
import { useBuyerAttributes as eo } from "./hooks/user/useBuyerAttributes.js";
import { useProductListActions as to } from "./hooks/product/useProductListActions.js";
import { useProductLists as io } from "./hooks/product/useProductLists.js";
import { useProductList as co } from "./hooks/product/useProductList.js";
import { useProduct as uo } from "./hooks/product/useProduct.js";
import { useProducts as po } from "./hooks/product/useProducts.js";
import { useProductVariants as fo } from "./hooks/product/useProductVariants.js";
import { useProductMedia as Co } from "./hooks/product/useProductMedia.js";
import { useProductSearch as Po } from "./hooks/product/useProductSearch.js";
import { useRecommendedProducts as So } from "./hooks/product/useRecommendedProducts.js";
import { usePopularProducts as ho } from "./hooks/product/usePopularProducts.js";
import { useCuratedProducts as ko } from "./hooks/product/useCuratedProducts.js";
import { useAsyncStorage as To } from "./hooks/storage/useAsyncStorage.js";
import { useSecureStorage as wo } from "./hooks/storage/useSecureStorage.js";
import { useImageUpload as vo } from "./hooks/storage/useImageUpload.js";
import { useShopNavigation as Fo } from "./hooks/navigation/useShopNavigation.js";
import { useCloseMini as yo } from "./hooks/navigation/useCloseMini.js";
import { useDeeplink as Ho } from "./hooks/navigation/useDeeplink.js";
import { useShop as Go } from "./hooks/shop/useShop.js";
import { useShopCartActions as Uo } from "./hooks/shop/useShopCartActions.js";
import { useRecommendedShops as zo } from "./hooks/shop/useRecommendedShops.js";
import { useErrorToast as qo } from "./hooks/util/useErrorToast.js";
import { useErrorScreen as Ko } from "./hooks/util/useErrorScreen.js";
import { useShare as Wo } from "./hooks/util/useShare.js";
import { useImagePicker as Yo } from "./hooks/util/useImagePicker.js";
import { MiniEntityNotFoundError as _o, MiniError as $o, MiniNetworkError as rt, formatError as et } from "./utils/errors.js";
import { parseUrl as tt } from "./utils/parseUrl.js";
import { Consent as it, ConsentStatus as nt, CurrencyCode as ct, Gender as lt } from "./types/minisSDK.generated.d.js";
export {
G as Accordion,
N as AccordionContent,
U as AccordionItem,
V as AccordionTrigger,
j as Alert,
q as AlertDescription,
Q as AlertDialog,
W as AlertDialogAction,
X as AlertDialogCancel,
Y as AlertDialogContent,
Z as AlertDialogDescription,
_ as AlertDialogFooter,
$ as AlertDialogHeader,
rr as AlertDialogOverlay,
er as AlertDialogPortal,
or as AlertDialogTitle,
tr as AlertDialogTrigger,
J as AlertTitle,
ir as Avatar,
nr as AvatarFallback,
cr as AvatarImage,
ur as Badge,
pr as Button,
xr as Card,
Cr as CardAction,
gr as CardContent,
Pr as CardDescription,
Dr as CardFooter,
Sr as CardHeader,
Ar as CardTitle,
Lr as Carousel,
kr as CarouselContent,
Ir as CarouselItem,
Tr as CarouselNext,
Mr as CarouselPrevious,
Rr as Checkbox,
it as Consent,
nt as ConsentStatus,
ct as CurrencyCode,
br as Dialog,
Fr as DialogClose,
Br as DialogContent,
yr as DialogDescription,
Er as DialogFooter,
Hr as DialogHeader,
Or as DialogOverlay,
Gr as DialogPortal,
Nr as DialogTitle,
Ur as DialogTrigger,
zr as Drawer,
jr as DrawerClose,
qr as DrawerContent,
Jr as DrawerDescription,
Kr as DrawerFooter,
Qr as DrawerHeader,
Wr as DrawerOverlay,
Xr as DrawerPortal,
Yr as DrawerTitle,
Zr as DrawerTrigger,
lt as Gender,
$r as Input,
ee as Label,
w as MerchantCard,
R as MerchantCardImage,
v as MerchantCardImageContainer,
b as MerchantCardInfo,
F as MerchantCardLogo,
B as MerchantCardName,
y as MerchantCardPrimitive,
E as MerchantCardRating,
H as MerchantCardRoot,
_o as MiniEntityNotFoundError,
$o as MiniError,
rt as MiniNetworkError,
o as MinisContainer,
a as ProductCard,
i as ProductCardBadge,
n as ProductCardCurrentPrice,
c as ProductCardFavoriteButton,
l as ProductCardImage,
u as ProductCardImageContainer,
d as ProductCardInfo,
s as ProductCardOriginalPrice,
p as ProductCardPrice,
m as ProductCardRoot,
f as ProductCardTitle,
C as ProductLink,
g as ProductLinkActions,
P as ProductLinkCurrentPrice,
D as ProductLinkDiscountPrice,
S as ProductLinkImage,
A as ProductLinkInfo,
h as ProductLinkOriginalPrice,
L as ProductLinkPrice,
k as ProductLinkRating,
I as ProductLinkRoot,
T as ProductLinkTitle,
te as Progress,
ie as RadioGroup,
ne as RadioGroupItem,
le as ResizableHandle,
ue as ResizablePanel,
de as ResizablePanelGroup,
pe as ScrollArea,
me as ScrollBar,
xe as Select,
Ce as SelectContent,
ge as SelectGroup,
Pe as SelectItem,
De as SelectLabel,
Se as SelectScrollDownButton,
Ae as SelectScrollUpButton,
he as SelectSeparator,
Le as SelectTrigger,
ke as SelectValue,
Te as Separator,
we as Sheet,
Re as SheetClose,
ve as SheetContent,
be as SheetDescription,
Fe as SheetFooter,
Be as SheetHeader,
ye as SheetTitle,
Ee as SheetTrigger,
Oe as Toaster,
dr as badgeVariants,
mr as buttonVariants,
et as formatError,
tt as parseUrl,
To as useAsyncStorage,
eo as useBuyerAttributes,
yo as useCloseMini,
ko as useCuratedProducts,
Ze as useCurrentUser,
Ho as useDeeplink,
Ko as useErrorScreen,
qo as useErrorToast,
Qe as useFollowedShops,
Xe as useFollowedShopsActions,
Yo as useImagePicker,
vo as useImageUpload,
$e as useOrders,
ho as usePopularProducts,
uo as useProduct,
co as useProductList,
to as useProductListActions,
io as useProductLists,
Co as useProductMedia,
Po as useProductSearch,
fo as useProductVariants,
po as useProducts,
Ne as useRecentProducts,
Ve as useRecentShops,
So as useRecommendedProducts,
zo as useRecommendedShops,
je as useSavedProducts,
Je as useSavedProductsActions,
wo as useSecureStorage,
Wo as useShare,
Go as useShop,
Uo as useShopCartActions,
Fo as useShopNavigation
};
//# sourceMappingURL=index.js.map