hey-pharmacist-ecommerce 1.1.18 → 1.1.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.
- package/dist/index.d.mts +43 -43
- package/dist/index.d.ts +43 -43
- package/dist/index.js +4272 -2610
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4026 -2364
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/AccountOrdersTab.tsx +1 -1
- package/src/components/AccountSettingsTab.tsx +6 -6
- package/src/components/FilterChips.tsx +2 -2
- package/src/components/Header.tsx +2 -2
- package/src/components/Notification.tsx +3 -3
- package/src/components/OrderCard.tsx +2 -2
- package/src/components/ProductCard.tsx +4 -4
- package/src/components/QuickViewModal.tsx +2 -2
- package/src/components/ui/Button.tsx +3 -3
- package/src/components/ui/Card.tsx +1 -1
- package/src/components/ui/Input.tsx +1 -1
- package/src/components/ui/Modal.tsx +1 -1
- package/src/components/ui/Skeleton.tsx +3 -3
- package/src/screens/AddressesScreen.tsx +7 -7
- package/src/screens/CartScreen.tsx +7 -7
- package/src/screens/ChangePasswordScreen.tsx +1 -1
- package/src/screens/CheckoutScreen.tsx +8 -8
- package/src/screens/CurrentOrdersScreen.tsx +6 -6
- package/src/screens/EditProfileScreen.tsx +1 -1
- package/src/screens/LoginScreen.tsx +2 -2
- package/src/screens/NewAddressScreen.tsx +3 -3
- package/src/screens/OrdersScreen.tsx +2 -2
- package/src/screens/ProductDetailScreen.tsx +5 -5
- package/src/screens/ProfileScreen.tsx +2 -2
- package/src/screens/RegisterScreen.tsx +1 -1
- package/src/screens/ShopScreen.tsx +17 -17
- package/src/screens/WishlistScreen.tsx +4 -4
- package/src/styles/globals.css +114 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
4
|
|
|
5
5
|
interface EcommerceConfig {
|
|
@@ -50,11 +50,11 @@ interface Category {
|
|
|
50
50
|
|
|
51
51
|
interface EcommerceProviderProps {
|
|
52
52
|
config: EcommerceConfig;
|
|
53
|
-
children:
|
|
53
|
+
children: React.ReactNode;
|
|
54
54
|
withToaster?: boolean;
|
|
55
55
|
basePath?: string;
|
|
56
56
|
}
|
|
57
|
-
declare function EcommerceProvider({ config, children, withToaster, basePath }: EcommerceProviderProps):
|
|
57
|
+
declare function EcommerceProvider({ config, children, withToaster, basePath }: EcommerceProviderProps): react_jsx_runtime.JSX.Element;
|
|
58
58
|
|
|
59
59
|
interface ThemeContextValue {
|
|
60
60
|
config: EcommerceConfig;
|
|
@@ -62,9 +62,9 @@ interface ThemeContextValue {
|
|
|
62
62
|
declare function useTheme(): ThemeContextValue;
|
|
63
63
|
interface ThemeProviderProps {
|
|
64
64
|
config: EcommerceConfig;
|
|
65
|
-
children:
|
|
65
|
+
children: React.ReactNode;
|
|
66
66
|
}
|
|
67
|
-
declare function ThemeProvider({ config, children }: ThemeProviderProps):
|
|
67
|
+
declare function ThemeProvider({ config, children }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Hey Pharamcist API
|
|
@@ -3774,9 +3774,9 @@ interface AuthContextValue {
|
|
|
3774
3774
|
}
|
|
3775
3775
|
declare function useAuth(): AuthContextValue;
|
|
3776
3776
|
interface AuthProviderProps {
|
|
3777
|
-
children:
|
|
3777
|
+
children: React.ReactNode;
|
|
3778
3778
|
}
|
|
3779
|
-
declare function AuthProvider({ children }: AuthProviderProps):
|
|
3779
|
+
declare function AuthProvider({ children }: AuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
3780
3780
|
|
|
3781
3781
|
interface CartContextValue {
|
|
3782
3782
|
cart: CartResponseDto | null;
|
|
@@ -3789,9 +3789,9 @@ interface CartContextValue {
|
|
|
3789
3789
|
}
|
|
3790
3790
|
declare function useCart(): CartContextValue;
|
|
3791
3791
|
interface CartProviderProps {
|
|
3792
|
-
children:
|
|
3792
|
+
children: React.ReactNode;
|
|
3793
3793
|
}
|
|
3794
|
-
declare function CartProvider({ children }: CartProviderProps):
|
|
3794
|
+
declare function CartProvider({ children }: CartProviderProps): react_jsx_runtime.JSX.Element;
|
|
3795
3795
|
|
|
3796
3796
|
/**
|
|
3797
3797
|
* Hey Pharamcist API
|
|
@@ -3868,7 +3868,7 @@ interface WishlistContextType extends Wishlist {
|
|
|
3868
3868
|
}
|
|
3869
3869
|
declare function WishlistProvider({ children }: {
|
|
3870
3870
|
children: ReactNode;
|
|
3871
|
-
}):
|
|
3871
|
+
}): react_jsx_runtime.JSX.Element;
|
|
3872
3872
|
declare const useWishlist: () => WishlistContextType;
|
|
3873
3873
|
|
|
3874
3874
|
interface BasePathContextValue {
|
|
@@ -3881,38 +3881,38 @@ interface ShopScreenProps {
|
|
|
3881
3881
|
initialFilters?: ProductFilters;
|
|
3882
3882
|
categoryName?: string;
|
|
3883
3883
|
}
|
|
3884
|
-
declare function ShopScreen({ initialFilters, categoryName }: ShopScreenProps):
|
|
3884
|
+
declare function ShopScreen({ initialFilters, categoryName }: ShopScreenProps): react_jsx_runtime.JSX.Element;
|
|
3885
3885
|
|
|
3886
3886
|
interface ProductDetailScreenProps {
|
|
3887
3887
|
productId: string;
|
|
3888
3888
|
}
|
|
3889
|
-
declare function ProductDetailScreen({ productId }: ProductDetailScreenProps):
|
|
3889
|
+
declare function ProductDetailScreen({ productId }: ProductDetailScreenProps): react_jsx_runtime.JSX.Element;
|
|
3890
3890
|
|
|
3891
|
-
declare function CartScreen():
|
|
3891
|
+
declare function CartScreen(): react_jsx_runtime.JSX.Element;
|
|
3892
3892
|
|
|
3893
|
-
declare function CheckoutScreen():
|
|
3893
|
+
declare function CheckoutScreen(): react_jsx_runtime.JSX.Element | null;
|
|
3894
3894
|
|
|
3895
|
-
declare function LoginScreen():
|
|
3895
|
+
declare function LoginScreen(): react_jsx_runtime.JSX.Element | null;
|
|
3896
3896
|
|
|
3897
|
-
declare function RegisterScreen():
|
|
3897
|
+
declare function RegisterScreen(): react_jsx_runtime.JSX.Element;
|
|
3898
3898
|
|
|
3899
|
-
declare function AccountPage():
|
|
3899
|
+
declare function AccountPage(): react_jsx_runtime.JSX.Element | null;
|
|
3900
3900
|
|
|
3901
|
-
declare function OrdersScreen():
|
|
3901
|
+
declare function OrdersScreen(): react_jsx_runtime.JSX.Element;
|
|
3902
3902
|
|
|
3903
|
-
declare function CurrentOrdersScreen():
|
|
3903
|
+
declare function CurrentOrdersScreen(): react_jsx_runtime.JSX.Element;
|
|
3904
3904
|
|
|
3905
|
-
declare function AddressesScreen():
|
|
3905
|
+
declare function AddressesScreen(): react_jsx_runtime.JSX.Element;
|
|
3906
3906
|
|
|
3907
|
-
declare function WishlistScreen():
|
|
3907
|
+
declare function WishlistScreen(): react_jsx_runtime.JSX.Element;
|
|
3908
3908
|
|
|
3909
|
-
declare function SearchPage():
|
|
3909
|
+
declare function SearchPage(): react_jsx_runtime.JSX.Element;
|
|
3910
3910
|
|
|
3911
|
-
declare function NewAddressPage():
|
|
3911
|
+
declare function NewAddressPage(): react_jsx_runtime.JSX.Element;
|
|
3912
3912
|
|
|
3913
|
-
declare function Header():
|
|
3913
|
+
declare function Header(): react_jsx_runtime.JSX.Element;
|
|
3914
3914
|
|
|
3915
|
-
declare function Footer():
|
|
3915
|
+
declare function Footer(): react_jsx_runtime.JSX.Element;
|
|
3916
3916
|
|
|
3917
3917
|
interface ProductCardProps {
|
|
3918
3918
|
product: ExtendedProductDTO;
|
|
@@ -3923,17 +3923,17 @@ interface ProductCardProps {
|
|
|
3923
3923
|
}
|
|
3924
3924
|
declare function ProductCard({ product, onClickProduct, onFavorite, isFavorited, showFavoriteButton, className }: ProductCardProps & {
|
|
3925
3925
|
className?: string;
|
|
3926
|
-
}):
|
|
3926
|
+
}): react_jsx_runtime.JSX.Element;
|
|
3927
3927
|
|
|
3928
3928
|
interface CartItemProps {
|
|
3929
3929
|
item: CartItemPopulated;
|
|
3930
3930
|
}
|
|
3931
|
-
declare function CartItem({ item }: CartItemProps):
|
|
3931
|
+
declare function CartItem({ item }: CartItemProps): react_jsx_runtime.JSX.Element;
|
|
3932
3932
|
|
|
3933
3933
|
interface OrderCardProps {
|
|
3934
3934
|
order: PopulatedOrder;
|
|
3935
3935
|
}
|
|
3936
|
-
declare function OrderCard({ order }: OrderCardProps):
|
|
3936
|
+
declare function OrderCard({ order }: OrderCardProps): react_jsx_runtime.JSX.Element;
|
|
3937
3937
|
|
|
3938
3938
|
interface EmptyStateProps {
|
|
3939
3939
|
icon: LucideIcon;
|
|
@@ -3942,46 +3942,46 @@ interface EmptyStateProps {
|
|
|
3942
3942
|
actionLabel?: string;
|
|
3943
3943
|
onAction?: () => void;
|
|
3944
3944
|
}
|
|
3945
|
-
declare function EmptyState({ icon: Icon, title, description, actionLabel, onAction }: EmptyStateProps):
|
|
3945
|
+
declare function EmptyState({ icon: Icon, title, description, actionLabel, onAction }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
3946
3946
|
|
|
3947
|
-
interface ButtonProps extends
|
|
3948
|
-
variant?: 'primary' | 'secondary' | '
|
|
3947
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3948
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'outline-solid';
|
|
3949
3949
|
size?: 'sm' | 'md' | 'lg';
|
|
3950
3950
|
isLoading?: boolean;
|
|
3951
|
-
children:
|
|
3951
|
+
children: React.ReactNode;
|
|
3952
3952
|
}
|
|
3953
|
-
declare function Button({ variant, size, isLoading, disabled, className, children, ...props }: ButtonProps):
|
|
3953
|
+
declare function Button({ variant, size, isLoading, disabled, className, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
3954
3954
|
|
|
3955
|
-
interface InputProps extends
|
|
3955
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3956
3956
|
label?: string;
|
|
3957
3957
|
error?: string;
|
|
3958
3958
|
helperText?: string;
|
|
3959
3959
|
}
|
|
3960
|
-
declare const Input:
|
|
3960
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
3961
3961
|
|
|
3962
3962
|
interface BadgeProps {
|
|
3963
|
-
children:
|
|
3963
|
+
children: React.ReactNode;
|
|
3964
3964
|
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'gray';
|
|
3965
3965
|
size?: 'sm' | 'md';
|
|
3966
3966
|
className?: string;
|
|
3967
3967
|
}
|
|
3968
|
-
declare function Badge({ children, variant, size, className }: BadgeProps):
|
|
3968
|
+
declare function Badge({ children, variant, size, className }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
3969
3969
|
|
|
3970
3970
|
interface ModalProps {
|
|
3971
3971
|
isOpen: boolean;
|
|
3972
3972
|
onClose: () => void;
|
|
3973
3973
|
title?: string;
|
|
3974
|
-
children:
|
|
3974
|
+
children: React.ReactNode;
|
|
3975
3975
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
3976
3976
|
}
|
|
3977
|
-
declare function Modal({ isOpen, onClose, title, children, size }: ModalProps):
|
|
3977
|
+
declare function Modal({ isOpen, onClose, title, children, size }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
3978
3978
|
|
|
3979
3979
|
interface SkeletonProps {
|
|
3980
3980
|
className?: string;
|
|
3981
3981
|
}
|
|
3982
|
-
declare function Skeleton({ className }: SkeletonProps):
|
|
3983
|
-
declare function ProductCardSkeleton():
|
|
3984
|
-
declare function OrderCardSkeleton():
|
|
3982
|
+
declare function Skeleton({ className }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
3983
|
+
declare function ProductCardSkeleton(): react_jsx_runtime.JSX.Element;
|
|
3984
|
+
declare function OrderCardSkeleton(): react_jsx_runtime.JSX.Element;
|
|
3985
3985
|
|
|
3986
3986
|
declare function useProducts(filters?: ProductFilters, page?: number, limit?: number): {
|
|
3987
3987
|
products: ExtendedProductDTO[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
4
|
|
|
5
5
|
interface EcommerceConfig {
|
|
@@ -50,11 +50,11 @@ interface Category {
|
|
|
50
50
|
|
|
51
51
|
interface EcommerceProviderProps {
|
|
52
52
|
config: EcommerceConfig;
|
|
53
|
-
children:
|
|
53
|
+
children: React.ReactNode;
|
|
54
54
|
withToaster?: boolean;
|
|
55
55
|
basePath?: string;
|
|
56
56
|
}
|
|
57
|
-
declare function EcommerceProvider({ config, children, withToaster, basePath }: EcommerceProviderProps):
|
|
57
|
+
declare function EcommerceProvider({ config, children, withToaster, basePath }: EcommerceProviderProps): react_jsx_runtime.JSX.Element;
|
|
58
58
|
|
|
59
59
|
interface ThemeContextValue {
|
|
60
60
|
config: EcommerceConfig;
|
|
@@ -62,9 +62,9 @@ interface ThemeContextValue {
|
|
|
62
62
|
declare function useTheme(): ThemeContextValue;
|
|
63
63
|
interface ThemeProviderProps {
|
|
64
64
|
config: EcommerceConfig;
|
|
65
|
-
children:
|
|
65
|
+
children: React.ReactNode;
|
|
66
66
|
}
|
|
67
|
-
declare function ThemeProvider({ config, children }: ThemeProviderProps):
|
|
67
|
+
declare function ThemeProvider({ config, children }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Hey Pharamcist API
|
|
@@ -3774,9 +3774,9 @@ interface AuthContextValue {
|
|
|
3774
3774
|
}
|
|
3775
3775
|
declare function useAuth(): AuthContextValue;
|
|
3776
3776
|
interface AuthProviderProps {
|
|
3777
|
-
children:
|
|
3777
|
+
children: React.ReactNode;
|
|
3778
3778
|
}
|
|
3779
|
-
declare function AuthProvider({ children }: AuthProviderProps):
|
|
3779
|
+
declare function AuthProvider({ children }: AuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
3780
3780
|
|
|
3781
3781
|
interface CartContextValue {
|
|
3782
3782
|
cart: CartResponseDto | null;
|
|
@@ -3789,9 +3789,9 @@ interface CartContextValue {
|
|
|
3789
3789
|
}
|
|
3790
3790
|
declare function useCart(): CartContextValue;
|
|
3791
3791
|
interface CartProviderProps {
|
|
3792
|
-
children:
|
|
3792
|
+
children: React.ReactNode;
|
|
3793
3793
|
}
|
|
3794
|
-
declare function CartProvider({ children }: CartProviderProps):
|
|
3794
|
+
declare function CartProvider({ children }: CartProviderProps): react_jsx_runtime.JSX.Element;
|
|
3795
3795
|
|
|
3796
3796
|
/**
|
|
3797
3797
|
* Hey Pharamcist API
|
|
@@ -3868,7 +3868,7 @@ interface WishlistContextType extends Wishlist {
|
|
|
3868
3868
|
}
|
|
3869
3869
|
declare function WishlistProvider({ children }: {
|
|
3870
3870
|
children: ReactNode;
|
|
3871
|
-
}):
|
|
3871
|
+
}): react_jsx_runtime.JSX.Element;
|
|
3872
3872
|
declare const useWishlist: () => WishlistContextType;
|
|
3873
3873
|
|
|
3874
3874
|
interface BasePathContextValue {
|
|
@@ -3881,38 +3881,38 @@ interface ShopScreenProps {
|
|
|
3881
3881
|
initialFilters?: ProductFilters;
|
|
3882
3882
|
categoryName?: string;
|
|
3883
3883
|
}
|
|
3884
|
-
declare function ShopScreen({ initialFilters, categoryName }: ShopScreenProps):
|
|
3884
|
+
declare function ShopScreen({ initialFilters, categoryName }: ShopScreenProps): react_jsx_runtime.JSX.Element;
|
|
3885
3885
|
|
|
3886
3886
|
interface ProductDetailScreenProps {
|
|
3887
3887
|
productId: string;
|
|
3888
3888
|
}
|
|
3889
|
-
declare function ProductDetailScreen({ productId }: ProductDetailScreenProps):
|
|
3889
|
+
declare function ProductDetailScreen({ productId }: ProductDetailScreenProps): react_jsx_runtime.JSX.Element;
|
|
3890
3890
|
|
|
3891
|
-
declare function CartScreen():
|
|
3891
|
+
declare function CartScreen(): react_jsx_runtime.JSX.Element;
|
|
3892
3892
|
|
|
3893
|
-
declare function CheckoutScreen():
|
|
3893
|
+
declare function CheckoutScreen(): react_jsx_runtime.JSX.Element | null;
|
|
3894
3894
|
|
|
3895
|
-
declare function LoginScreen():
|
|
3895
|
+
declare function LoginScreen(): react_jsx_runtime.JSX.Element | null;
|
|
3896
3896
|
|
|
3897
|
-
declare function RegisterScreen():
|
|
3897
|
+
declare function RegisterScreen(): react_jsx_runtime.JSX.Element;
|
|
3898
3898
|
|
|
3899
|
-
declare function AccountPage():
|
|
3899
|
+
declare function AccountPage(): react_jsx_runtime.JSX.Element | null;
|
|
3900
3900
|
|
|
3901
|
-
declare function OrdersScreen():
|
|
3901
|
+
declare function OrdersScreen(): react_jsx_runtime.JSX.Element;
|
|
3902
3902
|
|
|
3903
|
-
declare function CurrentOrdersScreen():
|
|
3903
|
+
declare function CurrentOrdersScreen(): react_jsx_runtime.JSX.Element;
|
|
3904
3904
|
|
|
3905
|
-
declare function AddressesScreen():
|
|
3905
|
+
declare function AddressesScreen(): react_jsx_runtime.JSX.Element;
|
|
3906
3906
|
|
|
3907
|
-
declare function WishlistScreen():
|
|
3907
|
+
declare function WishlistScreen(): react_jsx_runtime.JSX.Element;
|
|
3908
3908
|
|
|
3909
|
-
declare function SearchPage():
|
|
3909
|
+
declare function SearchPage(): react_jsx_runtime.JSX.Element;
|
|
3910
3910
|
|
|
3911
|
-
declare function NewAddressPage():
|
|
3911
|
+
declare function NewAddressPage(): react_jsx_runtime.JSX.Element;
|
|
3912
3912
|
|
|
3913
|
-
declare function Header():
|
|
3913
|
+
declare function Header(): react_jsx_runtime.JSX.Element;
|
|
3914
3914
|
|
|
3915
|
-
declare function Footer():
|
|
3915
|
+
declare function Footer(): react_jsx_runtime.JSX.Element;
|
|
3916
3916
|
|
|
3917
3917
|
interface ProductCardProps {
|
|
3918
3918
|
product: ExtendedProductDTO;
|
|
@@ -3923,17 +3923,17 @@ interface ProductCardProps {
|
|
|
3923
3923
|
}
|
|
3924
3924
|
declare function ProductCard({ product, onClickProduct, onFavorite, isFavorited, showFavoriteButton, className }: ProductCardProps & {
|
|
3925
3925
|
className?: string;
|
|
3926
|
-
}):
|
|
3926
|
+
}): react_jsx_runtime.JSX.Element;
|
|
3927
3927
|
|
|
3928
3928
|
interface CartItemProps {
|
|
3929
3929
|
item: CartItemPopulated;
|
|
3930
3930
|
}
|
|
3931
|
-
declare function CartItem({ item }: CartItemProps):
|
|
3931
|
+
declare function CartItem({ item }: CartItemProps): react_jsx_runtime.JSX.Element;
|
|
3932
3932
|
|
|
3933
3933
|
interface OrderCardProps {
|
|
3934
3934
|
order: PopulatedOrder;
|
|
3935
3935
|
}
|
|
3936
|
-
declare function OrderCard({ order }: OrderCardProps):
|
|
3936
|
+
declare function OrderCard({ order }: OrderCardProps): react_jsx_runtime.JSX.Element;
|
|
3937
3937
|
|
|
3938
3938
|
interface EmptyStateProps {
|
|
3939
3939
|
icon: LucideIcon;
|
|
@@ -3942,46 +3942,46 @@ interface EmptyStateProps {
|
|
|
3942
3942
|
actionLabel?: string;
|
|
3943
3943
|
onAction?: () => void;
|
|
3944
3944
|
}
|
|
3945
|
-
declare function EmptyState({ icon: Icon, title, description, actionLabel, onAction }: EmptyStateProps):
|
|
3945
|
+
declare function EmptyState({ icon: Icon, title, description, actionLabel, onAction }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
3946
3946
|
|
|
3947
|
-
interface ButtonProps extends
|
|
3948
|
-
variant?: 'primary' | 'secondary' | '
|
|
3947
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3948
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'outline-solid';
|
|
3949
3949
|
size?: 'sm' | 'md' | 'lg';
|
|
3950
3950
|
isLoading?: boolean;
|
|
3951
|
-
children:
|
|
3951
|
+
children: React.ReactNode;
|
|
3952
3952
|
}
|
|
3953
|
-
declare function Button({ variant, size, isLoading, disabled, className, children, ...props }: ButtonProps):
|
|
3953
|
+
declare function Button({ variant, size, isLoading, disabled, className, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
3954
3954
|
|
|
3955
|
-
interface InputProps extends
|
|
3955
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3956
3956
|
label?: string;
|
|
3957
3957
|
error?: string;
|
|
3958
3958
|
helperText?: string;
|
|
3959
3959
|
}
|
|
3960
|
-
declare const Input:
|
|
3960
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
3961
3961
|
|
|
3962
3962
|
interface BadgeProps {
|
|
3963
|
-
children:
|
|
3963
|
+
children: React.ReactNode;
|
|
3964
3964
|
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'gray';
|
|
3965
3965
|
size?: 'sm' | 'md';
|
|
3966
3966
|
className?: string;
|
|
3967
3967
|
}
|
|
3968
|
-
declare function Badge({ children, variant, size, className }: BadgeProps):
|
|
3968
|
+
declare function Badge({ children, variant, size, className }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
3969
3969
|
|
|
3970
3970
|
interface ModalProps {
|
|
3971
3971
|
isOpen: boolean;
|
|
3972
3972
|
onClose: () => void;
|
|
3973
3973
|
title?: string;
|
|
3974
|
-
children:
|
|
3974
|
+
children: React.ReactNode;
|
|
3975
3975
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
3976
3976
|
}
|
|
3977
|
-
declare function Modal({ isOpen, onClose, title, children, size }: ModalProps):
|
|
3977
|
+
declare function Modal({ isOpen, onClose, title, children, size }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
3978
3978
|
|
|
3979
3979
|
interface SkeletonProps {
|
|
3980
3980
|
className?: string;
|
|
3981
3981
|
}
|
|
3982
|
-
declare function Skeleton({ className }: SkeletonProps):
|
|
3983
|
-
declare function ProductCardSkeleton():
|
|
3984
|
-
declare function OrderCardSkeleton():
|
|
3982
|
+
declare function Skeleton({ className }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
3983
|
+
declare function ProductCardSkeleton(): react_jsx_runtime.JSX.Element;
|
|
3984
|
+
declare function OrderCardSkeleton(): react_jsx_runtime.JSX.Element;
|
|
3985
3985
|
|
|
3986
3986
|
declare function useProducts(filters?: ProductFilters, page?: number, limit?: number): {
|
|
3987
3987
|
products: ExtendedProductDTO[];
|