hey-pharmacist-ecommerce 1.1.0 → 1.1.1
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/dist/index.d.mts +48 -39
- package/dist/index.d.ts +48 -39
- package/dist/index.js +579 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +576 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { ReactNode } from 'react';
|
|
2
3
|
import { LucideIcon } from 'lucide-react';
|
|
3
4
|
|
|
4
5
|
interface EcommerceConfig {
|
|
@@ -48,10 +49,10 @@ interface Category {
|
|
|
48
49
|
|
|
49
50
|
interface EcommerceProviderProps {
|
|
50
51
|
config: EcommerceConfig;
|
|
51
|
-
children:
|
|
52
|
+
children: React__default.ReactNode;
|
|
52
53
|
withToaster?: boolean;
|
|
53
54
|
}
|
|
54
|
-
declare function EcommerceProvider({ config, children, withToaster }: EcommerceProviderProps):
|
|
55
|
+
declare function EcommerceProvider({ config, children, withToaster }: EcommerceProviderProps): React__default.JSX.Element;
|
|
55
56
|
|
|
56
57
|
interface ThemeContextValue {
|
|
57
58
|
config: EcommerceConfig;
|
|
@@ -59,9 +60,9 @@ interface ThemeContextValue {
|
|
|
59
60
|
declare function useTheme(): ThemeContextValue;
|
|
60
61
|
interface ThemeProviderProps {
|
|
61
62
|
config: EcommerceConfig;
|
|
62
|
-
children:
|
|
63
|
+
children: React__default.ReactNode;
|
|
63
64
|
}
|
|
64
|
-
declare function ThemeProvider({ config, children }: ThemeProviderProps):
|
|
65
|
+
declare function ThemeProvider({ config, children }: ThemeProviderProps): React__default.JSX.Element;
|
|
65
66
|
|
|
66
67
|
/**
|
|
67
68
|
* Hey Pharamcist API
|
|
@@ -3771,9 +3772,9 @@ interface AuthContextValue {
|
|
|
3771
3772
|
}
|
|
3772
3773
|
declare function useAuth(): AuthContextValue;
|
|
3773
3774
|
interface AuthProviderProps {
|
|
3774
|
-
children:
|
|
3775
|
+
children: React__default.ReactNode;
|
|
3775
3776
|
}
|
|
3776
|
-
declare function AuthProvider({ children }: AuthProviderProps):
|
|
3777
|
+
declare function AuthProvider({ children }: AuthProviderProps): React__default.JSX.Element;
|
|
3777
3778
|
|
|
3778
3779
|
interface CartContextValue {
|
|
3779
3780
|
cart: CartResponseDto | null;
|
|
@@ -3786,9 +3787,9 @@ interface CartContextValue {
|
|
|
3786
3787
|
}
|
|
3787
3788
|
declare function useCart(): CartContextValue;
|
|
3788
3789
|
interface CartProviderProps {
|
|
3789
|
-
children:
|
|
3790
|
+
children: React__default.ReactNode;
|
|
3790
3791
|
}
|
|
3791
|
-
declare function CartProvider({ children }: CartProviderProps):
|
|
3792
|
+
declare function CartProvider({ children }: CartProviderProps): React__default.JSX.Element;
|
|
3792
3793
|
|
|
3793
3794
|
/**
|
|
3794
3795
|
* Hey Pharamcist API
|
|
@@ -3865,39 +3866,47 @@ interface WishlistContextType extends Wishlist {
|
|
|
3865
3866
|
}
|
|
3866
3867
|
declare function WishlistProvider({ children }: {
|
|
3867
3868
|
children: ReactNode;
|
|
3868
|
-
}):
|
|
3869
|
+
}): React__default.JSX.Element;
|
|
3869
3870
|
declare const useWishlist: () => WishlistContextType;
|
|
3870
3871
|
|
|
3871
3872
|
interface ShopScreenProps {
|
|
3872
3873
|
initialFilters?: ProductFilters;
|
|
3873
3874
|
categoryName?: string;
|
|
3874
3875
|
}
|
|
3875
|
-
declare function ShopScreen({ initialFilters, categoryName }: ShopScreenProps):
|
|
3876
|
+
declare function ShopScreen({ initialFilters, categoryName }: ShopScreenProps): React__default.JSX.Element;
|
|
3876
3877
|
|
|
3877
3878
|
interface ProductDetailScreenProps {
|
|
3878
3879
|
productId: string;
|
|
3879
3880
|
}
|
|
3880
|
-
declare function ProductDetailScreen({ productId }: ProductDetailScreenProps):
|
|
3881
|
+
declare function ProductDetailScreen({ productId }: ProductDetailScreenProps): React__default.JSX.Element;
|
|
3881
3882
|
|
|
3882
|
-
declare function CartScreen():
|
|
3883
|
+
declare function CartScreen(): React__default.JSX.Element;
|
|
3883
3884
|
|
|
3884
|
-
declare function CheckoutScreen():
|
|
3885
|
+
declare function CheckoutScreen(): React__default.JSX.Element | null;
|
|
3885
3886
|
|
|
3886
|
-
declare function LoginScreen():
|
|
3887
|
+
declare function LoginScreen(): React__default.JSX.Element;
|
|
3887
3888
|
|
|
3888
|
-
declare function RegisterScreen():
|
|
3889
|
+
declare function RegisterScreen(): React__default.JSX.Element;
|
|
3889
3890
|
|
|
3890
|
-
declare function ProfileScreen():
|
|
3891
|
+
declare function ProfileScreen(): React__default.JSX.Element | null;
|
|
3891
3892
|
|
|
3892
|
-
declare function OrdersScreen():
|
|
3893
|
+
declare function OrdersScreen(): React__default.JSX.Element;
|
|
3893
3894
|
|
|
3894
|
-
declare function CurrentOrdersScreen():
|
|
3895
|
+
declare function CurrentOrdersScreen(): React__default.JSX.Element;
|
|
3895
3896
|
|
|
3896
|
-
declare function AddressesScreen():
|
|
3897
|
+
declare function AddressesScreen(): React__default.JSX.Element;
|
|
3897
3898
|
|
|
3898
|
-
declare function
|
|
3899
|
+
declare function WishlistScreen(): React__default.JSX.Element;
|
|
3899
3900
|
|
|
3900
|
-
declare function
|
|
3901
|
+
declare function SearchPage(): React.JSX.Element;
|
|
3902
|
+
|
|
3903
|
+
declare function CategoriesScreen(): React__default.JSX.Element;
|
|
3904
|
+
|
|
3905
|
+
declare function NewAddressPage(): React.JSX.Element;
|
|
3906
|
+
|
|
3907
|
+
declare function Header(): React__default.JSX.Element;
|
|
3908
|
+
|
|
3909
|
+
declare function Footer(): React__default.JSX.Element;
|
|
3901
3910
|
|
|
3902
3911
|
interface ProductCardProps {
|
|
3903
3912
|
product: ExtendedProductDTO;
|
|
@@ -3908,17 +3917,17 @@ interface ProductCardProps {
|
|
|
3908
3917
|
}
|
|
3909
3918
|
declare function ProductCard({ product, onClickProduct, onFavorite, isFavorited, showFavoriteButton, className }: ProductCardProps & {
|
|
3910
3919
|
className?: string;
|
|
3911
|
-
}):
|
|
3920
|
+
}): React__default.JSX.Element;
|
|
3912
3921
|
|
|
3913
3922
|
interface CartItemProps {
|
|
3914
3923
|
item: CartItemPopulated;
|
|
3915
3924
|
}
|
|
3916
|
-
declare function CartItem({ item }: CartItemProps):
|
|
3925
|
+
declare function CartItem({ item }: CartItemProps): React__default.JSX.Element;
|
|
3917
3926
|
|
|
3918
3927
|
interface OrderCardProps {
|
|
3919
3928
|
order: PopulatedOrder;
|
|
3920
3929
|
}
|
|
3921
|
-
declare function OrderCard({ order }: OrderCardProps):
|
|
3930
|
+
declare function OrderCard({ order }: OrderCardProps): React__default.JSX.Element;
|
|
3922
3931
|
|
|
3923
3932
|
interface EmptyStateProps {
|
|
3924
3933
|
icon: LucideIcon;
|
|
@@ -3927,46 +3936,46 @@ interface EmptyStateProps {
|
|
|
3927
3936
|
actionLabel?: string;
|
|
3928
3937
|
onAction?: () => void;
|
|
3929
3938
|
}
|
|
3930
|
-
declare function EmptyState({ icon: Icon, title, description, actionLabel, onAction }: EmptyStateProps):
|
|
3939
|
+
declare function EmptyState({ icon: Icon, title, description, actionLabel, onAction }: EmptyStateProps): React__default.JSX.Element;
|
|
3931
3940
|
|
|
3932
|
-
interface ButtonProps extends
|
|
3941
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3933
3942
|
variant?: 'primary' | 'secondary' | 'outline' | 'ghost';
|
|
3934
3943
|
size?: 'sm' | 'md' | 'lg';
|
|
3935
3944
|
isLoading?: boolean;
|
|
3936
|
-
children:
|
|
3945
|
+
children: React__default.ReactNode;
|
|
3937
3946
|
}
|
|
3938
|
-
declare function Button({ variant, size, isLoading, disabled, className, children, ...props }: ButtonProps):
|
|
3947
|
+
declare function Button({ variant, size, isLoading, disabled, className, children, ...props }: ButtonProps): React__default.JSX.Element;
|
|
3939
3948
|
|
|
3940
|
-
interface InputProps extends
|
|
3949
|
+
interface InputProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
3941
3950
|
label?: string;
|
|
3942
3951
|
error?: string;
|
|
3943
3952
|
helperText?: string;
|
|
3944
3953
|
}
|
|
3945
|
-
declare const Input:
|
|
3954
|
+
declare const Input: React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
3946
3955
|
|
|
3947
3956
|
interface BadgeProps {
|
|
3948
|
-
children:
|
|
3957
|
+
children: React__default.ReactNode;
|
|
3949
3958
|
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'gray';
|
|
3950
3959
|
size?: 'sm' | 'md';
|
|
3951
3960
|
className?: string;
|
|
3952
3961
|
}
|
|
3953
|
-
declare function Badge({ children, variant, size, className }: BadgeProps):
|
|
3962
|
+
declare function Badge({ children, variant, size, className }: BadgeProps): React__default.JSX.Element;
|
|
3954
3963
|
|
|
3955
3964
|
interface ModalProps {
|
|
3956
3965
|
isOpen: boolean;
|
|
3957
3966
|
onClose: () => void;
|
|
3958
3967
|
title?: string;
|
|
3959
|
-
children:
|
|
3968
|
+
children: React__default.ReactNode;
|
|
3960
3969
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
3961
3970
|
}
|
|
3962
|
-
declare function Modal({ isOpen, onClose, title, children, size }: ModalProps):
|
|
3971
|
+
declare function Modal({ isOpen, onClose, title, children, size }: ModalProps): React__default.JSX.Element;
|
|
3963
3972
|
|
|
3964
3973
|
interface SkeletonProps {
|
|
3965
3974
|
className?: string;
|
|
3966
3975
|
}
|
|
3967
|
-
declare function Skeleton({ className }: SkeletonProps):
|
|
3968
|
-
declare function ProductCardSkeleton():
|
|
3969
|
-
declare function OrderCardSkeleton():
|
|
3976
|
+
declare function Skeleton({ className }: SkeletonProps): React__default.JSX.Element;
|
|
3977
|
+
declare function ProductCardSkeleton(): React__default.JSX.Element;
|
|
3978
|
+
declare function OrderCardSkeleton(): React__default.JSX.Element;
|
|
3970
3979
|
|
|
3971
3980
|
declare function useProducts(filters?: ProductFilters, page?: number, limit?: number): {
|
|
3972
3981
|
products: ExtendedProductDTO[];
|
|
@@ -4080,4 +4089,4 @@ declare function generateColorShades(baseColor: string): {
|
|
|
4080
4089
|
950: string;
|
|
4081
4090
|
};
|
|
4082
4091
|
|
|
4083
|
-
export { AddressesScreen, AuthProvider, Badge, Button, CartItem, CartProvider, CartScreen, type Category, CheckoutScreen, CurrentOrdersScreen, type EcommerceConfig, EcommerceProvider, EmptyState, Footer, Header, Input, LoginScreen, Modal, OrderCard, OrderCardSkeleton, OrderStatus, OrdersScreen, ProductCard, ProductCardSkeleton, ProductDetailScreen, type ProductFilters, ProfileScreen, RegisterScreen, ShopScreen, Skeleton, ThemeProvider, WishlistProvider, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useCart, useCategories, useCurrentOrders, useOrder, useOrders, useProduct, useProducts, useTheme, useWishlist };
|
|
4092
|
+
export { AddressesScreen, AuthProvider, Badge, Button, CartItem, CartProvider, CartScreen, CategoriesScreen, type Category, CheckoutScreen, CurrentOrdersScreen, type EcommerceConfig, EcommerceProvider, EmptyState, Footer, Header, Input, LoginScreen, Modal, NewAddressPage as NewAddressScreen, OrderCard, OrderCardSkeleton, OrderStatus, OrdersScreen, ProductCard, ProductCardSkeleton, ProductDetailScreen, type ProductFilters, ProfileScreen, RegisterScreen, SearchPage as SearchResultsScreen, ShopScreen, Skeleton, ThemeProvider, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useCart, useCategories, useCurrentOrders, useOrder, useOrders, useProduct, useProducts, useTheme, useWishlist };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { ReactNode } from 'react';
|
|
2
3
|
import { LucideIcon } from 'lucide-react';
|
|
3
4
|
|
|
4
5
|
interface EcommerceConfig {
|
|
@@ -48,10 +49,10 @@ interface Category {
|
|
|
48
49
|
|
|
49
50
|
interface EcommerceProviderProps {
|
|
50
51
|
config: EcommerceConfig;
|
|
51
|
-
children:
|
|
52
|
+
children: React__default.ReactNode;
|
|
52
53
|
withToaster?: boolean;
|
|
53
54
|
}
|
|
54
|
-
declare function EcommerceProvider({ config, children, withToaster }: EcommerceProviderProps):
|
|
55
|
+
declare function EcommerceProvider({ config, children, withToaster }: EcommerceProviderProps): React__default.JSX.Element;
|
|
55
56
|
|
|
56
57
|
interface ThemeContextValue {
|
|
57
58
|
config: EcommerceConfig;
|
|
@@ -59,9 +60,9 @@ interface ThemeContextValue {
|
|
|
59
60
|
declare function useTheme(): ThemeContextValue;
|
|
60
61
|
interface ThemeProviderProps {
|
|
61
62
|
config: EcommerceConfig;
|
|
62
|
-
children:
|
|
63
|
+
children: React__default.ReactNode;
|
|
63
64
|
}
|
|
64
|
-
declare function ThemeProvider({ config, children }: ThemeProviderProps):
|
|
65
|
+
declare function ThemeProvider({ config, children }: ThemeProviderProps): React__default.JSX.Element;
|
|
65
66
|
|
|
66
67
|
/**
|
|
67
68
|
* Hey Pharamcist API
|
|
@@ -3771,9 +3772,9 @@ interface AuthContextValue {
|
|
|
3771
3772
|
}
|
|
3772
3773
|
declare function useAuth(): AuthContextValue;
|
|
3773
3774
|
interface AuthProviderProps {
|
|
3774
|
-
children:
|
|
3775
|
+
children: React__default.ReactNode;
|
|
3775
3776
|
}
|
|
3776
|
-
declare function AuthProvider({ children }: AuthProviderProps):
|
|
3777
|
+
declare function AuthProvider({ children }: AuthProviderProps): React__default.JSX.Element;
|
|
3777
3778
|
|
|
3778
3779
|
interface CartContextValue {
|
|
3779
3780
|
cart: CartResponseDto | null;
|
|
@@ -3786,9 +3787,9 @@ interface CartContextValue {
|
|
|
3786
3787
|
}
|
|
3787
3788
|
declare function useCart(): CartContextValue;
|
|
3788
3789
|
interface CartProviderProps {
|
|
3789
|
-
children:
|
|
3790
|
+
children: React__default.ReactNode;
|
|
3790
3791
|
}
|
|
3791
|
-
declare function CartProvider({ children }: CartProviderProps):
|
|
3792
|
+
declare function CartProvider({ children }: CartProviderProps): React__default.JSX.Element;
|
|
3792
3793
|
|
|
3793
3794
|
/**
|
|
3794
3795
|
* Hey Pharamcist API
|
|
@@ -3865,39 +3866,47 @@ interface WishlistContextType extends Wishlist {
|
|
|
3865
3866
|
}
|
|
3866
3867
|
declare function WishlistProvider({ children }: {
|
|
3867
3868
|
children: ReactNode;
|
|
3868
|
-
}):
|
|
3869
|
+
}): React__default.JSX.Element;
|
|
3869
3870
|
declare const useWishlist: () => WishlistContextType;
|
|
3870
3871
|
|
|
3871
3872
|
interface ShopScreenProps {
|
|
3872
3873
|
initialFilters?: ProductFilters;
|
|
3873
3874
|
categoryName?: string;
|
|
3874
3875
|
}
|
|
3875
|
-
declare function ShopScreen({ initialFilters, categoryName }: ShopScreenProps):
|
|
3876
|
+
declare function ShopScreen({ initialFilters, categoryName }: ShopScreenProps): React__default.JSX.Element;
|
|
3876
3877
|
|
|
3877
3878
|
interface ProductDetailScreenProps {
|
|
3878
3879
|
productId: string;
|
|
3879
3880
|
}
|
|
3880
|
-
declare function ProductDetailScreen({ productId }: ProductDetailScreenProps):
|
|
3881
|
+
declare function ProductDetailScreen({ productId }: ProductDetailScreenProps): React__default.JSX.Element;
|
|
3881
3882
|
|
|
3882
|
-
declare function CartScreen():
|
|
3883
|
+
declare function CartScreen(): React__default.JSX.Element;
|
|
3883
3884
|
|
|
3884
|
-
declare function CheckoutScreen():
|
|
3885
|
+
declare function CheckoutScreen(): React__default.JSX.Element | null;
|
|
3885
3886
|
|
|
3886
|
-
declare function LoginScreen():
|
|
3887
|
+
declare function LoginScreen(): React__default.JSX.Element;
|
|
3887
3888
|
|
|
3888
|
-
declare function RegisterScreen():
|
|
3889
|
+
declare function RegisterScreen(): React__default.JSX.Element;
|
|
3889
3890
|
|
|
3890
|
-
declare function ProfileScreen():
|
|
3891
|
+
declare function ProfileScreen(): React__default.JSX.Element | null;
|
|
3891
3892
|
|
|
3892
|
-
declare function OrdersScreen():
|
|
3893
|
+
declare function OrdersScreen(): React__default.JSX.Element;
|
|
3893
3894
|
|
|
3894
|
-
declare function CurrentOrdersScreen():
|
|
3895
|
+
declare function CurrentOrdersScreen(): React__default.JSX.Element;
|
|
3895
3896
|
|
|
3896
|
-
declare function AddressesScreen():
|
|
3897
|
+
declare function AddressesScreen(): React__default.JSX.Element;
|
|
3897
3898
|
|
|
3898
|
-
declare function
|
|
3899
|
+
declare function WishlistScreen(): React__default.JSX.Element;
|
|
3899
3900
|
|
|
3900
|
-
declare function
|
|
3901
|
+
declare function SearchPage(): React.JSX.Element;
|
|
3902
|
+
|
|
3903
|
+
declare function CategoriesScreen(): React__default.JSX.Element;
|
|
3904
|
+
|
|
3905
|
+
declare function NewAddressPage(): React.JSX.Element;
|
|
3906
|
+
|
|
3907
|
+
declare function Header(): React__default.JSX.Element;
|
|
3908
|
+
|
|
3909
|
+
declare function Footer(): React__default.JSX.Element;
|
|
3901
3910
|
|
|
3902
3911
|
interface ProductCardProps {
|
|
3903
3912
|
product: ExtendedProductDTO;
|
|
@@ -3908,17 +3917,17 @@ interface ProductCardProps {
|
|
|
3908
3917
|
}
|
|
3909
3918
|
declare function ProductCard({ product, onClickProduct, onFavorite, isFavorited, showFavoriteButton, className }: ProductCardProps & {
|
|
3910
3919
|
className?: string;
|
|
3911
|
-
}):
|
|
3920
|
+
}): React__default.JSX.Element;
|
|
3912
3921
|
|
|
3913
3922
|
interface CartItemProps {
|
|
3914
3923
|
item: CartItemPopulated;
|
|
3915
3924
|
}
|
|
3916
|
-
declare function CartItem({ item }: CartItemProps):
|
|
3925
|
+
declare function CartItem({ item }: CartItemProps): React__default.JSX.Element;
|
|
3917
3926
|
|
|
3918
3927
|
interface OrderCardProps {
|
|
3919
3928
|
order: PopulatedOrder;
|
|
3920
3929
|
}
|
|
3921
|
-
declare function OrderCard({ order }: OrderCardProps):
|
|
3930
|
+
declare function OrderCard({ order }: OrderCardProps): React__default.JSX.Element;
|
|
3922
3931
|
|
|
3923
3932
|
interface EmptyStateProps {
|
|
3924
3933
|
icon: LucideIcon;
|
|
@@ -3927,46 +3936,46 @@ interface EmptyStateProps {
|
|
|
3927
3936
|
actionLabel?: string;
|
|
3928
3937
|
onAction?: () => void;
|
|
3929
3938
|
}
|
|
3930
|
-
declare function EmptyState({ icon: Icon, title, description, actionLabel, onAction }: EmptyStateProps):
|
|
3939
|
+
declare function EmptyState({ icon: Icon, title, description, actionLabel, onAction }: EmptyStateProps): React__default.JSX.Element;
|
|
3931
3940
|
|
|
3932
|
-
interface ButtonProps extends
|
|
3941
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3933
3942
|
variant?: 'primary' | 'secondary' | 'outline' | 'ghost';
|
|
3934
3943
|
size?: 'sm' | 'md' | 'lg';
|
|
3935
3944
|
isLoading?: boolean;
|
|
3936
|
-
children:
|
|
3945
|
+
children: React__default.ReactNode;
|
|
3937
3946
|
}
|
|
3938
|
-
declare function Button({ variant, size, isLoading, disabled, className, children, ...props }: ButtonProps):
|
|
3947
|
+
declare function Button({ variant, size, isLoading, disabled, className, children, ...props }: ButtonProps): React__default.JSX.Element;
|
|
3939
3948
|
|
|
3940
|
-
interface InputProps extends
|
|
3949
|
+
interface InputProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
3941
3950
|
label?: string;
|
|
3942
3951
|
error?: string;
|
|
3943
3952
|
helperText?: string;
|
|
3944
3953
|
}
|
|
3945
|
-
declare const Input:
|
|
3954
|
+
declare const Input: React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
3946
3955
|
|
|
3947
3956
|
interface BadgeProps {
|
|
3948
|
-
children:
|
|
3957
|
+
children: React__default.ReactNode;
|
|
3949
3958
|
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'gray';
|
|
3950
3959
|
size?: 'sm' | 'md';
|
|
3951
3960
|
className?: string;
|
|
3952
3961
|
}
|
|
3953
|
-
declare function Badge({ children, variant, size, className }: BadgeProps):
|
|
3962
|
+
declare function Badge({ children, variant, size, className }: BadgeProps): React__default.JSX.Element;
|
|
3954
3963
|
|
|
3955
3964
|
interface ModalProps {
|
|
3956
3965
|
isOpen: boolean;
|
|
3957
3966
|
onClose: () => void;
|
|
3958
3967
|
title?: string;
|
|
3959
|
-
children:
|
|
3968
|
+
children: React__default.ReactNode;
|
|
3960
3969
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
3961
3970
|
}
|
|
3962
|
-
declare function Modal({ isOpen, onClose, title, children, size }: ModalProps):
|
|
3971
|
+
declare function Modal({ isOpen, onClose, title, children, size }: ModalProps): React__default.JSX.Element;
|
|
3963
3972
|
|
|
3964
3973
|
interface SkeletonProps {
|
|
3965
3974
|
className?: string;
|
|
3966
3975
|
}
|
|
3967
|
-
declare function Skeleton({ className }: SkeletonProps):
|
|
3968
|
-
declare function ProductCardSkeleton():
|
|
3969
|
-
declare function OrderCardSkeleton():
|
|
3976
|
+
declare function Skeleton({ className }: SkeletonProps): React__default.JSX.Element;
|
|
3977
|
+
declare function ProductCardSkeleton(): React__default.JSX.Element;
|
|
3978
|
+
declare function OrderCardSkeleton(): React__default.JSX.Element;
|
|
3970
3979
|
|
|
3971
3980
|
declare function useProducts(filters?: ProductFilters, page?: number, limit?: number): {
|
|
3972
3981
|
products: ExtendedProductDTO[];
|
|
@@ -4080,4 +4089,4 @@ declare function generateColorShades(baseColor: string): {
|
|
|
4080
4089
|
950: string;
|
|
4081
4090
|
};
|
|
4082
4091
|
|
|
4083
|
-
export { AddressesScreen, AuthProvider, Badge, Button, CartItem, CartProvider, CartScreen, type Category, CheckoutScreen, CurrentOrdersScreen, type EcommerceConfig, EcommerceProvider, EmptyState, Footer, Header, Input, LoginScreen, Modal, OrderCard, OrderCardSkeleton, OrderStatus, OrdersScreen, ProductCard, ProductCardSkeleton, ProductDetailScreen, type ProductFilters, ProfileScreen, RegisterScreen, ShopScreen, Skeleton, ThemeProvider, WishlistProvider, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useCart, useCategories, useCurrentOrders, useOrder, useOrders, useProduct, useProducts, useTheme, useWishlist };
|
|
4092
|
+
export { AddressesScreen, AuthProvider, Badge, Button, CartItem, CartProvider, CartScreen, CategoriesScreen, type Category, CheckoutScreen, CurrentOrdersScreen, type EcommerceConfig, EcommerceProvider, EmptyState, Footer, Header, Input, LoginScreen, Modal, NewAddressPage as NewAddressScreen, OrderCard, OrderCardSkeleton, OrderStatus, OrdersScreen, ProductCard, ProductCardSkeleton, ProductDetailScreen, type ProductFilters, ProfileScreen, RegisterScreen, SearchPage as SearchResultsScreen, ShopScreen, Skeleton, ThemeProvider, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useCart, useCategories, useCurrentOrders, useOrder, useOrders, useProduct, useProducts, useTheme, useWishlist };
|