funuicss 3.8.7 → 3.8.9

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.
@@ -59,16 +59,43 @@ export type CartStorage = {
59
59
  items: CartItem[];
60
60
  updatedAt: number;
61
61
  };
62
+ export type UserInfoField = {
63
+ infoName: string;
64
+ type: 'text' | 'tel' | 'email' | 'number' | 'textarea';
65
+ required: boolean;
66
+ label?: string;
67
+ placeholder?: string;
68
+ };
69
+ export type OtherInfo = UserInfoField[] | string;
70
+ export type CheckoutData = {
71
+ cartItems: CartItem[];
72
+ totalAmount: number;
73
+ userInfo: Record<string, string>;
74
+ };
62
75
  type ProductsPageProps = {
63
76
  products?: Product[] | string;
64
77
  bucket?: string;
65
78
  bucketPage?: number;
66
79
  bucketSize?: number;
67
80
  title?: string;
68
- showHeader?: boolean;
81
+ heroAlign?: 'left' | 'center' | 'right' | 'justify';
82
+ heroTitle?: string;
83
+ heroDescription?: string;
84
+ heroBackgroundImage?: string;
85
+ heroHeight?: string;
86
+ overlayColor?: string;
87
+ overlayOpacity?: number;
88
+ overlayGradient?: boolean;
89
+ gradientDirection?: 'to-bottom' | 'to-top' | 'to-left' | 'to-right' | 'to-bottom-right' | 'to-bottom-left' | 'to-top-right' | 'to-top-left';
90
+ invertGradient?: boolean;
69
91
  showSearch?: boolean;
70
92
  showFilters?: boolean;
71
- showCart?: boolean;
93
+ showHero?: boolean;
94
+ titleSize?: string;
95
+ titleColor?: string;
96
+ descriptionSize?: string;
97
+ descriptionColor?: string;
98
+ descriptionOpacity?: number;
72
99
  cartIcon?: string | React.ReactNode;
73
100
  cartBadgeColor?: string;
74
101
  cartBadgeText?: string;
@@ -77,21 +104,19 @@ type ProductsPageProps = {
77
104
  currency?: string;
78
105
  persistCart?: boolean;
79
106
  storageKey?: string;
107
+ whatsappOrderNumber?: string;
108
+ otherInfo?: OtherInfo;
80
109
  onAddToCart?: (item: CartItem) => void;
81
110
  onRemoveFromCart?: (itemId: string) => void;
82
111
  onUpdateQuantity?: (itemId: string, quantity: number) => void;
83
- onCheckout?: (cartItems: CartItem[], totalAmount: number) => void;
112
+ onCheckout?: (checkoutData: CheckoutData) => void;
84
113
  onProductClick?: (product: Product) => void;
85
114
  className?: string;
86
115
  gridClassName?: string;
87
116
  children?: React.ReactNode;
88
117
  id?: string;
89
118
  funcss?: string;
90
- bg?: string;
91
- color?: string;
92
119
  fullWidth?: boolean;
93
- small?: boolean;
94
- big?: boolean;
95
120
  itemsPerPage?: number;
96
121
  variant?: string;
97
122
  };