@shophost/react 2.0.17 → 2.0.19

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.
@@ -0,0 +1,12 @@
1
+ import { UploadedFile } from '../../../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
+ export interface CartDrawerItemProps {
4
+ title: string;
5
+ subtitle?: (string | null)[];
6
+ image?: UploadedFile;
7
+ price: string;
8
+ quantity: number;
9
+ remove: () => void;
10
+ updateQuantity: (quantity: number) => void;
11
+ }
12
+ export declare const CartDrawerItem: React.FC<CartDrawerItemProps>;
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { CartPanelFooterRenderProps } from './cart-panel';
3
+ import { CartDrawerItemProps } from './cart-drawer-item';
4
+ export interface CartDrawerProps {
5
+ isOpen: boolean;
6
+ onClose: () => void;
7
+ checkoutHref?: string;
8
+ checkoutLabel?: React.ReactNode;
9
+ title?: React.ReactNode;
10
+ className?: string;
11
+ contentClassName?: string;
12
+ emptyCartComponent?: React.ReactNode;
13
+ loadingComponent?: React.ReactNode;
14
+ renderFooter?: (props: CartPanelFooterRenderProps) => React.ReactNode;
15
+ renderItem?: (props: CartDrawerItemProps) => React.ReactNode;
16
+ }
17
+ export declare const CartDrawer: React.FC<CartDrawerProps>;
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+ import { CartDrawerItemProps } from './cart-drawer-item';
3
+ export interface CartPanelHeaderRenderProps {
4
+ onClose?: () => void;
5
+ showCloseButton: boolean;
6
+ title: React.ReactNode;
7
+ }
8
+ export interface CartPanelFooterRenderProps {
9
+ checkoutHref: string;
10
+ checkoutLabel: React.ReactNode;
11
+ close: () => void;
12
+ formattedTotal: string;
13
+ itemCount: number;
14
+ total: number;
15
+ }
16
+ export interface CartPanelProps {
17
+ checkoutHref?: string;
18
+ checkoutLabel?: React.ReactNode;
19
+ title?: React.ReactNode;
20
+ className?: string;
21
+ bodyClassName?: string;
22
+ headerClassName?: string;
23
+ onClose?: () => void;
24
+ showCloseButton?: boolean;
25
+ emptyCartComponent?: React.ReactNode;
26
+ loadingComponent?: React.ReactNode;
27
+ renderFooter?: (props: CartPanelFooterRenderProps) => React.ReactNode;
28
+ renderHeader?: (props: CartPanelHeaderRenderProps) => React.ReactNode;
29
+ renderItem?: (props: CartDrawerItemProps) => React.ReactNode;
30
+ }
31
+ export declare const CartPanel: React.FC<CartPanelProps>;
@@ -1,4 +1,5 @@
1
1
  export * from './modifier-dialog-container';
2
+ export * from './modifiers-dialog';
2
3
  export * from './quantity-control';
3
4
  export * from './modifiers-group';
4
5
  export * from './modifiers-option';
@@ -0,0 +1,35 @@
1
+ import { default as React } from 'react';
2
+ export interface ModifiersDialogOptionRenderProps {
3
+ formattedPrice: string;
4
+ isMultiSelect: boolean;
5
+ isSelected: boolean;
6
+ modifier: any;
7
+ onSelect: () => void;
8
+ }
9
+ export interface ModifiersDialogFooterRenderProps {
10
+ isDecrementDisabled: boolean;
11
+ onAddToCart: () => void;
12
+ onDecrement: () => void;
13
+ onIncrement: () => void;
14
+ quantity: number;
15
+ validationError: string | null;
16
+ }
17
+ export interface ModifiersDialogProps {
18
+ addToCartLabel?: React.ReactNode;
19
+ emptyState?: React.ReactNode;
20
+ panelClassName?: string;
21
+ renderFooter?: (props: ModifiersDialogFooterRenderProps) => React.ReactNode;
22
+ renderGroup?: (props: {
23
+ group: any;
24
+ groupName: string;
25
+ isRequired: boolean;
26
+ renderOptions: () => React.ReactNode;
27
+ selectionRequirements: string | null;
28
+ }) => React.ReactNode;
29
+ renderHeader?: (props: {
30
+ onClose: () => void;
31
+ product: any;
32
+ }) => React.ReactNode;
33
+ renderOption?: (props: ModifiersDialogOptionRenderProps) => React.ReactNode;
34
+ }
35
+ export declare const ModifiersDialog: React.FC<ModifiersDialogProps>;
@@ -1,2 +1,2 @@
1
- declare const AuthPages: () => import("react/jsx-runtime").JSX.Element;
2
- export { AuthPages };
1
+ declare const AccountPages: () => import("react/jsx-runtime").JSX.Element;
2
+ export { AccountPages };
@@ -1,4 +1,10 @@
1
1
  import { default as React } from 'react';
2
+ interface AccountSplitLayoutProps {
3
+ children: React.ReactNode;
4
+ description?: React.ReactNode;
5
+ title?: React.ReactNode;
6
+ }
7
+ declare const AccountSplitLayout: React.FC<AccountSplitLayoutProps>;
2
8
  interface AuthLayoutProps {
3
9
  children: React.ReactNode;
4
10
  }
@@ -7,4 +13,4 @@ interface LoggedInViewLayoutProps {
7
13
  children: React.ReactNode;
8
14
  }
9
15
  declare const LoggedInView: React.FC<LoggedInViewLayoutProps>;
10
- export { AuthLayout, LoggedInView };
16
+ export { AccountSplitLayout, AuthLayout, LoggedInView };
@@ -0,0 +1,2 @@
1
+ declare const ReservationBookPage: () => import("react/jsx-runtime").JSX.Element | null;
2
+ export { ReservationBookPage };
@@ -0,0 +1,5 @@
1
+ interface ReservationDetailsPageProps {
2
+ reservationId: string;
3
+ }
4
+ declare const ReservationDetailsPage: ({ reservationId, }: ReservationDetailsPageProps) => import("react/jsx-runtime").JSX.Element;
5
+ export { ReservationDetailsPage };
@@ -6,7 +6,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
6
6
  ref?: React.Ref<HTMLDivElement>;
7
7
  } & {
8
8
  asChild?: boolean;
9
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
9
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
10
10
  label?: string;
11
11
  shouldFilter?: boolean;
12
12
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -22,7 +22,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
22
22
  ref?: React.Ref<HTMLInputElement>;
23
23
  } & {
24
24
  asChild?: boolean;
25
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
25
+ }, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "asChild">, "value" | "type" | "onChange"> & {
26
26
  value?: string;
27
27
  onValueChange?: (search: string) => void;
28
28
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -32,7 +32,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
32
32
  ref?: React.Ref<HTMLDivElement>;
33
33
  } & {
34
34
  asChild?: boolean;
35
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
35
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
36
36
  label?: string;
37
37
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
38
38
  declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
@@ -41,14 +41,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
41
41
  ref?: React.Ref<HTMLDivElement>;
42
42
  } & {
43
43
  asChild?: boolean;
44
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
44
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
45
45
  declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
46
46
  children?: React.ReactNode;
47
47
  } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
48
48
  ref?: React.Ref<HTMLDivElement>;
49
49
  } & {
50
50
  asChild?: boolean;
51
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
51
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
52
52
  heading?: React.ReactNode;
53
53
  value?: string;
54
54
  forceMount?: boolean;
@@ -57,7 +57,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
57
57
  ref?: React.Ref<HTMLDivElement>;
58
58
  } & {
59
59
  asChild?: boolean;
60
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
60
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
61
61
  alwaysRender?: boolean;
62
62
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
63
63
  declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
@@ -66,7 +66,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
66
66
  ref?: React.Ref<HTMLDivElement>;
67
67
  } & {
68
68
  asChild?: boolean;
69
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
69
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "onSelect" | "disabled"> & {
70
70
  disabled?: boolean;
71
71
  onSelect?: (value: string) => void;
72
72
  value?: string;
@@ -1,5 +1,3 @@
1
1
  import { default as React } from 'react';
2
- interface DividerProps extends React.ComponentPropsWithoutRef<'div'> {
3
- }
4
- declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement>>;
2
+ declare const Divider: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
3
  export { Divider };
@@ -7,7 +7,5 @@ declare const Popover: {
7
7
  declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<PopoverPrimitives.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
8
8
  declare const PopoverAnchor: React.ForwardRefExoticComponent<Omit<PopoverPrimitives.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const PopoverClose: React.ForwardRefExoticComponent<Omit<PopoverPrimitives.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
- interface ContentProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitives.Content> {
11
- }
12
- declare const PopoverContent: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
10
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitives.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
11
  export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger };
@@ -1,10 +1,14 @@
1
1
  export { CartProvider, useCartContext, useCart, } from './providers/cart-provider';
2
2
  export { useModifiers } from './providers/modifiers-provider';
3
3
  export { CartItems } from './components/cart/cart-items';
4
+ export { CartPanel } from './components/cart/cart-panel';
5
+ export { CartDrawer } from './components/cart/cart-drawer';
6
+ export { CartDrawerItem } from './components/cart/cart-drawer-item';
4
7
  export { CustomerDetailsPage } from './components/pages/checkout-pages/customer-details-page';
5
8
  export { ShippingAndPaymentPage } from './components/pages/checkout-pages/shipping-and-payment-page';
6
- export { AuthPages } from './components/pages/account-pages';
9
+ export { AccountPages } from './components/pages/account-pages';
7
10
  export { CheckoutPages } from './components/pages/checkout-pages';
11
+ export { ModifiersDialog } from './components/modifiers/modifiers-dialog';
8
12
  export * from './components';
9
13
  export { ModifierContainer, QuantityControl, ModifiersGroup, ModifiersOption, ModifiersModal, } from './components/modifiers';
10
14
  export { useProductDetails, useMultipleProductDetails, } from './hooks/useProductDetails';
@@ -33,7 +33,7 @@ export declare const useSession: () => {
33
33
  } | undefined) => Promise<void>;
34
34
  }, signIn: {
35
35
  social: <FetchOptions extends import('@better-auth/core').ClientFetchOption<Partial<{
36
- provider: (string & {}) | "paypal" | "line" | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "polar" | "railway" | "vercel";
36
+ provider: (string & {}) | "paypal" | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "polar" | "railway" | "vercel";
37
37
  callbackURL?: string | undefined;
38
38
  newUserCallbackURL?: string | undefined;
39
39
  errorCallbackURL?: string | undefined;
@@ -57,7 +57,7 @@ export declare const useSession: () => {
57
57
  loginHint?: string | undefined;
58
58
  additionalData?: Record<string, any> | undefined;
59
59
  }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth/react').Prettify<{
60
- provider: (string & {}) | "paypal" | "line" | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "polar" | "railway" | "vercel";
60
+ provider: (string & {}) | "paypal" | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "polar" | "railway" | "vercel";
61
61
  callbackURL?: string | undefined;
62
62
  newUserCallbackURL?: string | undefined;
63
63
  errorCallbackURL?: string | undefined;
@@ -1047,7 +1047,7 @@ export declare const useSession: () => {
1047
1047
  limit?: string | number | undefined;
1048
1048
  offset?: string | number | undefined;
1049
1049
  sortBy?: string | undefined;
1050
- sortDirection?: "desc" | "asc" | undefined;
1050
+ sortDirection?: "asc" | "desc" | undefined;
1051
1051
  filterField?: string | undefined;
1052
1052
  filterValue?: string | number | boolean | string[] | number[] | undefined;
1053
1053
  filterOperator?: "in" | "lt" | "eq" | "ne" | "gt" | "gte" | "lte" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
@@ -1058,7 +1058,7 @@ export declare const useSession: () => {
1058
1058
  limit?: string | number | undefined;
1059
1059
  offset?: string | number | undefined;
1060
1060
  sortBy?: string | undefined;
1061
- sortDirection?: "desc" | "asc" | undefined;
1061
+ sortDirection?: "asc" | "desc" | undefined;
1062
1062
  filterField?: string | undefined;
1063
1063
  filterValue?: string | number | boolean | string[] | number[] | undefined;
1064
1064
  filterOperator?: "in" | "lt" | "eq" | "ne" | "gt" | "gte" | "lte" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
package/storefront.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./admin-client.cjs");exports.APIProvider=o.APIProvider;exports.AuthPages=o.AuthPages;exports.Badge=o.Badge;exports.Button=o.Button;exports.CartItems=o.CartItems;exports.CartProvider=o.CartProvider;exports.CheckoutPages=o.CheckoutPages;exports.Command=o.Command;exports.CommandBar=o.CommandBar;exports.CommandBarBar=o.CommandBarBar;exports.CommandBarCommand=o.CommandBarCommand;exports.CommandBarSeperator=o.CommandBarSeperator;exports.CommandBarValue=o.CommandBarValue;exports.CommandDialog=o.CommandDialog;exports.CommandEmpty=o.CommandEmpty;exports.CommandGroup=o.CommandGroup;exports.CommandInput=o.CommandInput;exports.CommandItem=o.CommandItem;exports.CommandList=o.CommandList;exports.CommandSeparator=o.CommandSeparator;exports.CommandShortcut=o.CommandShortcut;exports.CountryInput=o.CountryInput;exports.CustomerDetailsPage=o.CustomerDetailsPage;exports.Dialog=o.Dialog;exports.DialogClose=o.DialogClose;exports.DialogContent=o.DialogContent;exports.DialogDescription=o.DialogDescription;exports.DialogFooter=o.DialogFooter;exports.DialogHeader=o.DialogHeader;exports.DialogTitle=o.DialogTitle;exports.DialogTrigger=o.DialogTrigger;exports.Divider=o.Divider;exports.EmailInput=o.EmailInput;exports.ImageUploadInput=o.ImageUploadInput;exports.Input=o.Input;exports.InputGroup=o.InputGroup;exports.Label=o.Label;exports.LocationInput=o.LocationInput;exports.ModifierContainer=o.ModifierContainer;exports.ModifiersGroup=o.ModifiersGroup;exports.ModifiersModal=o.ModifiersModal;exports.ModifiersOption=o.ModifiersOption;exports.PhoneNumberInput=o.PhoneNumberInput;exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverClose=o.PopoverClose;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;exports.QuantityControl=o.QuantityControl;exports.RadioCardGroup=o.RadioCardGroup;exports.RadioCardGroupIndicator=o.RadioCardGroupIndicator;exports.RadioCardItem=o.RadioCardItem;exports.SelectInput=o.SelectInput;exports.ShippingAndPaymentPage=o.ShippingAndPaymentPage;exports.ShophostProvider=o.ShophostProvider;exports.SliderOver=o.SliderOver;exports.Switch=o.Switch;exports.TextInput=o.TextInput;exports.TimeInput=o.TimeInput;exports.badgeVariants=o.badgeVariants;exports.buttonVariants=o.buttonVariants;exports.calculateCartTotal=o.calculateCartTotal;exports.findCartItem=o.findCartItem;exports.formatPrice=o.formatPrice;exports.getFieldError=o.getFieldError;exports.getFormattedModifiers=o.getFormattedModifiers;exports.mockProducts=o.mockProducts;exports.productRequiresModifiers=o.productRequiresModifiers;exports.useAPI=o.useAPI;exports.useCart=o.useCart;exports.useCartContext=o.useCartContext;exports.useLocalization=o.useLocalization;exports.useModifierSelection=o.useModifierSelection;exports.useModifiers=o.useModifiers;exports.useMultipleProductDetails=o.useMultipleProductDetails;exports.useOrganization=o.useOrganization;exports.useProductDetails=o.useProductDetails;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./admin-client.cjs");exports.APIProvider=o.APIProvider;exports.AccountPages=o.AccountPages;exports.Badge=o.Badge;exports.Button=o.Button;exports.CartDrawer=o.CartDrawer;exports.CartDrawerItem=o.CartDrawerItem;exports.CartItems=o.CartItems;exports.CartPanel=o.CartPanel;exports.CartProvider=o.CartProvider;exports.CheckoutPages=o.CheckoutPages;exports.Command=o.Command;exports.CommandBar=o.CommandBar;exports.CommandBarBar=o.CommandBarBar;exports.CommandBarCommand=o.CommandBarCommand;exports.CommandBarSeperator=o.CommandBarSeperator;exports.CommandBarValue=o.CommandBarValue;exports.CommandDialog=o.CommandDialog;exports.CommandEmpty=o.CommandEmpty;exports.CommandGroup=o.CommandGroup;exports.CommandInput=o.CommandInput;exports.CommandItem=o.CommandItem;exports.CommandList=o.CommandList;exports.CommandSeparator=o.CommandSeparator;exports.CommandShortcut=o.CommandShortcut;exports.CountryInput=o.CountryInput;exports.CustomerDetailsPage=o.CustomerDetailsPage;exports.Dialog=o.Dialog;exports.DialogClose=o.DialogClose;exports.DialogContent=o.DialogContent;exports.DialogDescription=o.DialogDescription;exports.DialogFooter=o.DialogFooter;exports.DialogHeader=o.DialogHeader;exports.DialogTitle=o.DialogTitle;exports.DialogTrigger=o.DialogTrigger;exports.Divider=o.Divider;exports.EmailInput=o.EmailInput;exports.ImageUploadInput=o.ImageUploadInput;exports.Input=o.Input;exports.InputGroup=o.InputGroup;exports.Label=o.Label;exports.LocationInput=o.LocationInput;exports.ModifierContainer=o.ModifierContainer;exports.ModifiersDialog=o.ModifiersDialog;exports.ModifiersGroup=o.ModifiersGroup;exports.ModifiersModal=o.ModifiersModal;exports.ModifiersOption=o.ModifiersOption;exports.PhoneNumberInput=o.PhoneNumberInput;exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverClose=o.PopoverClose;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;exports.QuantityControl=o.QuantityControl;exports.RadioCardGroup=o.RadioCardGroup;exports.RadioCardGroupIndicator=o.RadioCardGroupIndicator;exports.RadioCardItem=o.RadioCardItem;exports.SelectInput=o.SelectInput;exports.ShippingAndPaymentPage=o.ShippingAndPaymentPage;exports.ShophostProvider=o.ShophostProvider;exports.SliderOver=o.SliderOver;exports.Switch=o.Switch;exports.TextInput=o.TextInput;exports.TimeInput=o.TimeInput;exports.badgeVariants=o.badgeVariants;exports.buttonVariants=o.buttonVariants;exports.calculateCartTotal=o.calculateCartTotal;exports.findCartItem=o.findCartItem;exports.formatPrice=o.formatPrice;exports.getFieldError=o.getFieldError;exports.getFormattedModifiers=o.getFormattedModifiers;exports.mockProducts=o.mockProducts;exports.productRequiresModifiers=o.productRequiresModifiers;exports.useAPI=o.useAPI;exports.useCart=o.useCart;exports.useCartContext=o.useCartContext;exports.useLocalization=o.useLocalization;exports.useModifierSelection=o.useModifierSelection;exports.useModifiers=o.useModifiers;exports.useMultipleProductDetails=o.useMultipleProductDetails;exports.useOrganization=o.useOrganization;exports.useProductDetails=o.useProductDetails;
package/storefront.mjs CHANGED
@@ -1,81 +1,85 @@
1
1
  "use client";
2
- import { z as o, i as e, aq as r, F as t, f as i, C as n, j as d, X as m, ai as u, aj as p, ak as C, al as l, am as g, Y as P, $ as I, a0 as c, Z as D, a1 as f, _ as h, a3 as v, a2 as M, J as S, h as B, a4 as T, a5 as G, a6 as b, a7 as y, a8 as A, a9 as L, aa as R, ab as k, as as x, H as F, O, I as V, W as q, U as z, L as E, M as j, k as w, m as H, l as N, P as Q, ac as U, ad as J, ae as K, af as W, ag as X, Q as Y, an as Z, ao as _, ap as $, K as aa, S as sa, y as oa, ah as ea, N as ra, T as ta, R as ia, ar as na, G as da, r as ma, v as ua, s as pa, V as Ca, t as la, x as ga, w as Pa, B as Ia, d as ca, u as Da, q as fa, p as ha, e as va, o as Ma, D as Sa, n as Ba } from "./admin-client.js";
2
+ import { G as o, l as e, au as r, J as t, i, j as n, f as d, h as m, C as u, m as C, $ as l, am as p, an as g, ao as P, ap as c, aq as I, a0 as D, a3 as f, a4 as v, a1 as M, a5 as h, a2 as S, a7 as B, a6 as T, R as G, k as b, a8 as w, a9 as y, aa as A, ab as L, ac as R, ad as k, ae as x, af as F, aw as O, O as V, W as q, L as z, _ as E, Y as j, N as H, n as N, M as Q, o as U, q as J, p as K, P as W, ag as X, ah as Y, ai as Z, aj as _, ak as $, Q as aa, ar as sa, as as oa, at as ea, T as ra, S as ta, F as ia, al as na, U as da, V as ma, X as ua, av as Ca, K as la, w as pa, z as ga, x as Pa, Z as ca, y as Ia, D as Da, B as fa, H as va, d as Ma, u as ha, v as Sa, t as Ba, e as Ta, s as Ga, I as ba, r as wa } from "./admin-client.js";
3
3
  export {
4
4
  o as APIProvider,
5
- e as AuthPages,
5
+ e as AccountPages,
6
6
  r as Badge,
7
7
  t as Button,
8
- i as CartItems,
9
- n as CartProvider,
10
- d as CheckoutPages,
11
- m as Command,
12
- u as CommandBar,
13
- p as CommandBarBar,
14
- C as CommandBarCommand,
15
- l as CommandBarSeperator,
16
- g as CommandBarValue,
17
- P as CommandDialog,
18
- I as CommandEmpty,
19
- c as CommandGroup,
20
- D as CommandInput,
21
- f as CommandItem,
22
- h as CommandList,
23
- v as CommandSeparator,
24
- M as CommandShortcut,
25
- S as CountryInput,
26
- B as CustomerDetailsPage,
27
- T as Dialog,
28
- G as DialogClose,
29
- b as DialogContent,
30
- y as DialogDescription,
31
- A as DialogFooter,
32
- L as DialogHeader,
33
- R as DialogTitle,
34
- k as DialogTrigger,
35
- x as Divider,
36
- F as EmailInput,
37
- O as ImageUploadInput,
38
- V as Input,
39
- q as InputGroup,
40
- z as Label,
41
- E as LocationInput,
42
- j as ModifierContainer,
43
- w as ModifiersGroup,
44
- H as ModifiersModal,
45
- N as ModifiersOption,
46
- Q as PhoneNumberInput,
47
- U as Popover,
48
- J as PopoverAnchor,
49
- K as PopoverClose,
50
- W as PopoverContent,
51
- X as PopoverTrigger,
52
- Y as QuantityControl,
53
- Z as RadioCardGroup,
54
- _ as RadioCardGroupIndicator,
55
- $ as RadioCardItem,
56
- aa as SelectInput,
57
- sa as ShippingAndPaymentPage,
58
- oa as ShophostProvider,
59
- ea as SliderOver,
60
- ra as Switch,
61
- ta as TextInput,
62
- ia as TimeInput,
63
- na as badgeVariants,
64
- da as buttonVariants,
65
- ma as calculateCartTotal,
66
- ua as findCartItem,
67
- pa as formatPrice,
68
- Ca as getFieldError,
69
- la as getFormattedModifiers,
70
- ga as mockProducts,
71
- Pa as productRequiresModifiers,
72
- Ia as useAPI,
73
- ca as useCart,
74
- Da as useCartContext,
75
- fa as useLocalization,
76
- ha as useModifierSelection,
77
- va as useModifiers,
78
- Ma as useMultipleProductDetails,
79
- Sa as useOrganization,
80
- Ba as useProductDetails
8
+ i as CartDrawer,
9
+ n as CartDrawerItem,
10
+ d as CartItems,
11
+ m as CartPanel,
12
+ u as CartProvider,
13
+ C as CheckoutPages,
14
+ l as Command,
15
+ p as CommandBar,
16
+ g as CommandBarBar,
17
+ P as CommandBarCommand,
18
+ c as CommandBarSeperator,
19
+ I as CommandBarValue,
20
+ D as CommandDialog,
21
+ f as CommandEmpty,
22
+ v as CommandGroup,
23
+ M as CommandInput,
24
+ h as CommandItem,
25
+ S as CommandList,
26
+ B as CommandSeparator,
27
+ T as CommandShortcut,
28
+ G as CountryInput,
29
+ b as CustomerDetailsPage,
30
+ w as Dialog,
31
+ y as DialogClose,
32
+ A as DialogContent,
33
+ L as DialogDescription,
34
+ R as DialogFooter,
35
+ k as DialogHeader,
36
+ x as DialogTitle,
37
+ F as DialogTrigger,
38
+ O as Divider,
39
+ V as EmailInput,
40
+ q as ImageUploadInput,
41
+ z as Input,
42
+ E as InputGroup,
43
+ j as Label,
44
+ H as LocationInput,
45
+ N as ModifierContainer,
46
+ Q as ModifiersDialog,
47
+ U as ModifiersGroup,
48
+ J as ModifiersModal,
49
+ K as ModifiersOption,
50
+ W as PhoneNumberInput,
51
+ X as Popover,
52
+ Y as PopoverAnchor,
53
+ Z as PopoverClose,
54
+ _ as PopoverContent,
55
+ $ as PopoverTrigger,
56
+ aa as QuantityControl,
57
+ sa as RadioCardGroup,
58
+ oa as RadioCardGroupIndicator,
59
+ ea as RadioCardItem,
60
+ ra as SelectInput,
61
+ ta as ShippingAndPaymentPage,
62
+ ia as ShophostProvider,
63
+ na as SliderOver,
64
+ da as Switch,
65
+ ma as TextInput,
66
+ ua as TimeInput,
67
+ Ca as badgeVariants,
68
+ la as buttonVariants,
69
+ pa as calculateCartTotal,
70
+ ga as findCartItem,
71
+ Pa as formatPrice,
72
+ ca as getFieldError,
73
+ Ia as getFormattedModifiers,
74
+ Da as mockProducts,
75
+ fa as productRequiresModifiers,
76
+ va as useAPI,
77
+ Ma as useCart,
78
+ ha as useCartContext,
79
+ Sa as useLocalization,
80
+ Ba as useModifierSelection,
81
+ Ta as useModifiers,
82
+ Ga as useMultipleProductDetails,
83
+ ba as useOrganization,
84
+ wa as useProductDetails
81
85
  };