@shophost/react 0.1.3
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.
- package/admin-client.cjs +2 -0
- package/admin-client.js +21796 -0
- package/components/admin/forms/manufacturer-form.d.ts +7 -0
- package/components/admin/forms/organization-configuration-form.d.ts +10 -0
- package/components/admin/forms/organization-form.d.ts +8 -0
- package/components/admin/forms/organization-schedule-form.d.ts +10 -0
- package/components/admin/forms/product-category.form.d.ts +7 -0
- package/components/admin/forms/product-form/basic-info-section.d.ts +8 -0
- package/components/admin/forms/product-form/index.d.ts +7 -0
- package/components/admin/forms/product-form/metadata-section.d.ts +8 -0
- package/components/admin/forms/product-form/modifier-group-dialog.d.ts +9 -0
- package/components/admin/forms/product-form/modifiers-list.d.ts +7 -0
- package/components/admin/forms/product-form/modifiers-section.d.ts +8 -0
- package/components/admin/forms/product-form/price-section.d.ts +9 -0
- package/components/admin/forms/shipping-method-form.d.ts +7 -0
- package/components/admin/forms/sign-in-form.d.ts +2 -0
- package/components/admin/forms/sign-up-form.d.ts +2 -0
- package/components/admin/partials/manufacturers-list/columns.d.ts +3 -0
- package/components/admin/partials/manufacturers-list/index.d.ts +2 -0
- package/components/admin/partials/orders-list/actions-cell.d.ts +10 -0
- package/components/admin/partials/orders-list/columns.d.ts +3 -0
- package/components/admin/partials/orders-list/index.d.ts +2 -0
- package/components/admin/partials/orders-list/order-details-modal.d.ts +9 -0
- package/components/admin/partials/organization-list/index.d.ts +2 -0
- package/components/admin/partials/product-categories-list/columns.d.ts +14 -0
- package/components/admin/partials/product-categories-list/index.d.ts +2 -0
- package/components/admin/partials/products-list/columns.d.ts +14 -0
- package/components/admin/partials/products-list/index.d.ts +2 -0
- package/components/admin/partials/reservations-list/actions-cell.d.ts +10 -0
- package/components/admin/partials/reservations-list/columns.d.ts +3 -0
- package/components/admin/partials/reservations-list/index.d.ts +2 -0
- package/components/admin/partials/reservations-list/reservation-details-modal.d.ts +8 -0
- package/components/admin/partials/shipping-methods-list/columns.d.ts +3 -0
- package/components/admin/partials/shipping-methods-list/index.d.ts +2 -0
- package/components/ui/badge.d.ts +31 -0
- package/components/ui/button.d.ts +35 -0
- package/components/ui/calendar.d.ts +21 -0
- package/components/ui/card.d.ts +6 -0
- package/components/ui/checkbox.d.ts +4 -0
- package/components/ui/command-bar.d.ts +24 -0
- package/components/ui/command.d.ts +80 -0
- package/components/ui/data-table/DataTable.d.ts +13 -0
- package/components/ui/data-table/DataTableBulkEditor.d.ts +7 -0
- package/components/ui/data-table/DataTableColumnHeader.d.ts +7 -0
- package/components/ui/data-table/DataTableFilter.d.ts +18 -0
- package/components/ui/data-table/DataTablePagination.d.ts +8 -0
- package/components/ui/data-table/DataTableViewOptions.d.ts +6 -0
- package/components/ui/data-table/tanstack-table.d.ts +7 -0
- package/components/ui/date-picker.d.ts +72 -0
- package/components/ui/dialog.d.ts +20 -0
- package/components/ui/divider.d.ts +5 -0
- package/components/ui/drawer.d.ts +18 -0
- package/components/ui/dropdown.d.ts +30 -0
- package/components/ui/form-generator.d.ts +29 -0
- package/components/ui/header.d.ts +2 -0
- package/components/ui/icons/ArrowAnimated.d.ts +1 -0
- package/components/ui/icons/spinner-icon.d.ts +5 -0
- package/components/ui/input/country-input.d.ts +7 -0
- package/components/ui/input/email-input.d.ts +7 -0
- package/components/ui/input/image-upload-input.d.ts +19 -0
- package/components/ui/input/phone-number-input.d.ts +8 -0
- package/components/ui/input/select-input.d.ts +14 -0
- package/components/ui/input/text-input.d.ts +87 -0
- package/components/ui/input-array-group.d.ts +10 -0
- package/components/ui/input-group.d.ts +19 -0
- package/components/ui/input-object-group.d.ts +8 -0
- package/components/ui/input.d.ts +13 -0
- package/components/ui/label.d.ts +7 -0
- package/components/ui/line-chart.d.ts +35 -0
- package/components/ui/logo.d.ts +5 -0
- package/components/ui/multiple-select.d.ts +73 -0
- package/components/ui/navigation/DropdownUserProfile.d.ts +6 -0
- package/components/ui/navigation/MobileSidebar.d.ts +1 -0
- package/components/ui/navigation/Sidebar.d.ts +1 -0
- package/components/ui/navigation/SidebarWorkspacesDropdown.d.ts +2 -0
- package/components/ui/navigation/UserProfile.d.ts +2 -0
- package/components/ui/overview/DashboardCategoryBarCard.d.ts +13 -0
- package/components/ui/overview/DashboardChartCard.d.ts +12 -0
- package/components/ui/overview/DashboardFilterbar.d.ts +16 -0
- package/components/ui/overview/DashboardProgressBarCard.d.ts +12 -0
- package/components/ui/overview/dashboard-types.d.ts +12 -0
- package/components/ui/popover.d.ts +13 -0
- package/components/ui/progress-bar.d.ts +89 -0
- package/components/ui/progress-circle.d.ts +91 -0
- package/components/ui/radio-card.d.ts +6 -0
- package/components/ui/search-bar.d.ts +29 -0
- package/components/ui/select.d.ts +17 -0
- package/components/ui/settings/ModalAddUser.d.ts +4 -0
- package/components/ui/switch.d.ts +50 -0
- package/components/ui/tab-navigation.d.ts +7 -0
- package/components/ui/table.d.ts +11 -0
- package/components/ui/tooltip.d.ts +11 -0
- package/config/countries.d.ts +8 -0
- package/data/data.d.ts +31 -0
- package/data/overview-data.d.ts +2 -0
- package/data/schema.d.ts +19 -0
- package/index.cjs +1 -0
- package/index.d.ts +7 -0
- package/index.mjs +14 -0
- package/index.react-server.cjs +1 -0
- package/index.react-server.d.ts +8 -0
- package/index.react-server.mjs +37 -0
- package/lib/auth-redirect.d.ts +4 -0
- package/lib/auth.d.ts +23 -0
- package/lib/chartUtils.d.ts +63 -0
- package/lib/query-client.d.ts +2 -0
- package/lib/useOnWindowResize.d.ts +3 -0
- package/lib/utils.d.ts +11 -0
- package/next/server.cjs +1 -0
- package/next/server.d.ts +43 -0
- package/next/server.mjs +21 -0
- package/next/views.cjs +2 -0
- package/next/views.d.ts +7 -0
- package/next/views.mjs +5 -0
- package/package.json +119 -0
- package/providers/admin-provider.d.ts +13 -0
- package/providers/flyout-provider.d.ts +10 -0
- package/providers/organization-provider.d.ts +22 -0
- package/react.css +1 -0
- package/router/AdminRouter.d.ts +5 -0
- package/router/resolve.d.ts +67 -0
- package/router/routes.d.ts +25 -0
- package/storefront/components/cart/cart-items.d.ts +20 -0
- package/storefront/components/cart-summary/index.d.ts +13 -0
- package/storefront/components/cart-summary/schimmer.d.ts +3 -0
- package/storefront/components/header/index.d.ts +11 -0
- package/storefront/components/header/shimmer.d.ts +2 -0
- package/storefront/components/header/user-profile.d.ts +1 -0
- package/storefront/components/index.d.ts +1 -0
- package/storefront/components/modifiers/index.d.ts +5 -0
- package/storefront/components/modifiers/modifier-dialog-container.d.ts +21 -0
- package/storefront/components/modifiers/modifiers-group.d.ts +37 -0
- package/storefront/components/modifiers/modifiers-modal.d.ts +12 -0
- package/storefront/components/modifiers/modifiers-option.d.ts +37 -0
- package/storefront/components/modifiers/quantity-control.d.ts +29 -0
- package/storefront/components/pages/account-pages/index.d.ts +2 -0
- package/storefront/components/pages/account-pages/layouts.d.ts +10 -0
- package/storefront/components/pages/account-pages/order-details-page/index.d.ts +5 -0
- package/storefront/components/pages/account-pages/order-details-page/shimmer.d.ts +2 -0
- package/storefront/components/pages/account-pages/order-details-page/tracking-icons.d.ts +13 -0
- package/storefront/components/pages/account-pages/order-details-page/tracking-step.d.ts +10 -0
- package/storefront/components/pages/account-pages/orders-list-page/index.d.ts +2 -0
- package/storefront/components/pages/account-pages/sign-in-page/index.d.ts +1 -0
- package/storefront/components/pages/account-pages/sign-in-page/sign-in-form.d.ts +2 -0
- package/storefront/components/pages/account-pages/sign-up-page/index.d.ts +1 -0
- package/storefront/components/pages/account-pages/sign-up-page/sign-up-form.d.ts +2 -0
- package/storefront/components/pages/checkout-pages/customer-details-page/customer-details-form.d.ts +9 -0
- package/storefront/components/pages/checkout-pages/customer-details-page/index.d.ts +6 -0
- package/storefront/components/pages/checkout-pages/customer-details-page/shimmer.d.ts +2 -0
- package/storefront/components/pages/checkout-pages/index.d.ts +2 -0
- package/storefront/components/pages/checkout-pages/reservation-page/index.d.ts +2 -0
- package/storefront/components/pages/checkout-pages/reservation-page/reservation-form.d.ts +10 -0
- package/storefront/components/pages/checkout-pages/shipping-and-payment-page/index.d.ts +6 -0
- package/storefront/components/pages/checkout-pages/shipping-and-payment-page/shimmer.d.ts +2 -0
- package/storefront/components/pages/checkout-pages/shipping-and-payment-page/shipping-and-payment-form.d.ts +9 -0
- package/storefront/components/ui/badge.d.ts +31 -0
- package/storefront/components/ui/button.d.ts +35 -0
- package/storefront/components/ui/command-bar.d.ts +24 -0
- package/storefront/components/ui/command.d.ts +80 -0
- package/storefront/components/ui/datefield-rac.d.ts +12 -0
- package/storefront/components/ui/dialog.d.ts +20 -0
- package/storefront/components/ui/divider.d.ts +5 -0
- package/storefront/components/ui/index.d.ts +12 -0
- package/storefront/components/ui/input/country-input.d.ts +8 -0
- package/storefront/components/ui/input/email-input.d.ts +7 -0
- package/storefront/components/ui/input/image-upload-input.d.ts +19 -0
- package/storefront/components/ui/input/index.d.ts +22 -0
- package/storefront/components/ui/input/location-input.d.ts +9 -0
- package/storefront/components/ui/input/phone-number-input.d.ts +8 -0
- package/storefront/components/ui/input/select-input.d.ts +14 -0
- package/storefront/components/ui/input/switch.d.ts +50 -0
- package/storefront/components/ui/input/text-input.d.ts +87 -0
- package/storefront/components/ui/input/time-input.d.ts +4 -0
- package/storefront/components/ui/input/week-time-input.d.ts +8 -0
- package/storefront/components/ui/input-group.d.ts +20 -0
- package/storefront/components/ui/label.d.ts +7 -0
- package/storefront/components/ui/popover.d.ts +13 -0
- package/storefront/components/ui/radio-card.d.ts +6 -0
- package/storefront/components/ui/slideover.d.ts +8 -0
- package/storefront/components/ui/text-input.d.ts +3 -0
- package/storefront/config/countries.d.ts +8 -0
- package/storefront/constants/cart.constants.d.ts +3 -0
- package/storefront/exports.d.ts +21 -0
- package/storefront/hooks/useLocalization.d.ts +12 -0
- package/storefront/hooks/useModifierSelection.d.ts +21 -0
- package/storefront/hooks/useProductDetails.d.ts +11 -0
- package/storefront/index.d.ts +1 -0
- package/storefront/lib/better-auth.d.ts +2642 -0
- package/storefront/lib/react-query.lib.d.ts +2 -0
- package/storefront/lib/utils.d.ts +11 -0
- package/storefront/mock/products.d.ts +48 -0
- package/storefront/providers/api-provider.d.ts +11 -0
- package/storefront/providers/auth-provider.d.ts +9 -0
- package/storefront/providers/cart-provider.d.ts +39 -0
- package/storefront/providers/modifiers-provider.d.ts +27 -0
- package/storefront/providers/organization-provider.d.ts +15 -0
- package/storefront/providers/shophost-provider.d.ts +29 -0
- package/storefront/providers/translation-provider.d.ts +16 -0
- package/storefront/reducers/cart.reducer.d.ts +13 -0
- package/storefront/schemas/cart.schema.d.ts +13 -0
- package/storefront/translations/en.d.ts +150 -0
- package/storefront/translations/index.d.ts +4 -0
- package/storefront/translations/pl.d.ts +150 -0
- package/storefront/types/cart.types.d.ts +109 -0
- package/storefront/utils/cart-item.util.d.ts +3 -0
- package/storefront/utils/cart.util.d.ts +53 -0
- package/storefront.cjs +2 -0
- package/storefront.mjs +81 -0
- package/utils/object.util.d.ts +11 -0
- package/views/AdminShell.d.ts +4 -0
- package/views/DashboardView.d.ts +3 -0
- package/views/ErrorView.d.ts +3 -0
- package/views/OrdersView.d.ts +1 -0
- package/views/OrganizationsView.d.ts +1 -0
- package/views/ReservationsView.d.ts +1 -0
- package/views/auth/SignInView.d.ts +1 -0
- package/views/auth/SignUpView.d.ts +1 -0
- package/views/auth/auth-layout.d.ts +4 -0
- package/views/manufacturers/ManufacturerCreateView.d.ts +1 -0
- package/views/manufacturers/ManufacturerEditView.d.ts +1 -0
- package/views/manufacturers/ManufacturersListView.d.ts +1 -0
- package/views/product-categories/ProductCategoriesListView.d.ts +1 -0
- package/views/product-categories/ProductCategoryCreateView.d.ts +1 -0
- package/views/product-categories/ProductCategoryEditView.d.ts +1 -0
- package/views/products/ProductCreateView.d.ts +1 -0
- package/views/products/ProductEditView.d.ts +1 -0
- package/views/products/ProductsListView.d.ts +1 -0
- package/views/settings/OpeningTimesView.d.ts +1 -0
- package/views/settings/SettingsLayout.d.ts +4 -0
- package/views/settings/SettingsView.d.ts +1 -0
- package/views/settings/shipping-methods/ShippingMethodCreateView.d.ts +1 -0
- package/views/settings/shipping-methods/ShippingMethodEditView.d.ts +1 -0
- package/views/settings/shipping-methods/ShippingMethodsListView.d.ts +1 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { CartItem } from '../../../../client/src/index.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Calculate the total price of a cart based on product data
|
|
4
|
+
*/
|
|
5
|
+
export declare const calculateCartTotal: (items: CartItem[], getProductDetails: (productId: string) => any) => number;
|
|
6
|
+
/**
|
|
7
|
+
* Format price according to locale and currency
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatPrice: (price: number, currency?: string, locale?: string) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Get the selected modifiers for a product as a formatted string
|
|
12
|
+
*/
|
|
13
|
+
export declare const getFormattedModifiers: (item: CartItem, getProductDetails: (productId: string) => any, locale?: string) => string;
|
|
14
|
+
/**
|
|
15
|
+
* Find a cart item by product ID and optional modifier groups
|
|
16
|
+
*/
|
|
17
|
+
export declare const findCartItem: (items: CartItem[], productId: string, modifierGroups?: {
|
|
18
|
+
id: string;
|
|
19
|
+
modifiers: {
|
|
20
|
+
id: string;
|
|
21
|
+
quantity?: number;
|
|
22
|
+
}[];
|
|
23
|
+
}[]) => CartItem | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Helper function to compare modifier groups
|
|
26
|
+
*/
|
|
27
|
+
export declare const areModifierGroupsEqual: (groupsA: {
|
|
28
|
+
id: string;
|
|
29
|
+
modifiers: {
|
|
30
|
+
id: string;
|
|
31
|
+
quantity?: number;
|
|
32
|
+
}[];
|
|
33
|
+
}[], groupsB: {
|
|
34
|
+
id: string;
|
|
35
|
+
modifiers: {
|
|
36
|
+
id: string;
|
|
37
|
+
quantity?: number;
|
|
38
|
+
}[];
|
|
39
|
+
}[]) => boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Check if a product requires modifiers based on selectMin values
|
|
42
|
+
*/
|
|
43
|
+
export declare const productRequiresModifiers: (product: any) => boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Validate if selected modifiers meet the requirements
|
|
46
|
+
*/
|
|
47
|
+
export declare const validateModifierSelections: (product: any, selectedModifiers: {
|
|
48
|
+
groupId: string;
|
|
49
|
+
modifierIds: string[];
|
|
50
|
+
}[]) => {
|
|
51
|
+
valid: boolean;
|
|
52
|
+
message?: string;
|
|
53
|
+
};
|
package/storefront.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
package/storefront.mjs
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
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";
|
|
3
|
+
export {
|
|
4
|
+
o as APIProvider,
|
|
5
|
+
e as AuthPages,
|
|
6
|
+
r as Badge,
|
|
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
|
|
81
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A standalone implementation of Lodash's `_.get` in TypeScript.
|
|
3
|
+
*
|
|
4
|
+
* @param object The object to query.
|
|
5
|
+
* @param path The path to get. Can be:
|
|
6
|
+
* - a string in dot/bracket notation, e.g. "a.b[0].c"
|
|
7
|
+
* - an array of string/number keys, e.g. ["a", "b", 0, "c"].
|
|
8
|
+
* @param defaultValue The value returned if the resolved value is undefined.
|
|
9
|
+
* @returns The resolved value, or defaultValue if it's undefined.
|
|
10
|
+
*/
|
|
11
|
+
export declare const get: <T extends object, R = unknown>(object: T | null | undefined, path: string | Array<string | number>, defaultValue?: R) => R | unknown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OrdersView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OrganizationsView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ReservationsView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SignInView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SignUpView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ManufacturerCreateView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ManufacturerEditView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ManufacturersListView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ProductCategoriesListView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ProductCategoryCreateView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ProductCategoryEditView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ProductCreateView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ProductEditView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ProductsListView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OpeningTimesView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SettingsView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ShippingMethodCreateView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ShippingMethodEditView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ShippingMethodsListView(): import("react/jsx-runtime").JSX.Element;
|