randmarcomps 1.58.0 → 1.60.0
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/randmarcomps.d.ts +15 -12
- package/dist/randmarcomps.js +1483 -1481
- package/dist/randmarcomps.umd.cjs +15 -13
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -115,14 +115,14 @@ export declare interface InputProps extends Omit<React_2.ComponentProps<"input">
|
|
|
115
115
|
|
|
116
116
|
export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
|
|
117
117
|
|
|
118
|
-
export declare function Layout({ children, rightMenu, routes, footer,
|
|
118
|
+
export declare function Layout({ children, rightMenu, routes, footer, handleValidSearch, dashboardTitle, onSignOut, }: LayoutProps): JSX.Element;
|
|
119
119
|
|
|
120
120
|
declare interface LayoutProps {
|
|
121
121
|
children: React.ReactNode;
|
|
122
122
|
rightMenu?: React.ReactNode;
|
|
123
123
|
footer: React.ReactNode;
|
|
124
124
|
routes: NavRoute[];
|
|
125
|
-
|
|
125
|
+
handleValidSearch: (q: string) => void;
|
|
126
126
|
dashboardTitle?: string;
|
|
127
127
|
onSignOut?: () => void;
|
|
128
128
|
}
|
|
@@ -145,6 +145,15 @@ export declare interface NavRoute {
|
|
|
145
145
|
showInNav?: boolean;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
+
declare interface Opportunity {
|
|
149
|
+
Opportunity: string;
|
|
150
|
+
BidNumber: string;
|
|
151
|
+
Price: number;
|
|
152
|
+
Rebate: number;
|
|
153
|
+
EndDate?: string;
|
|
154
|
+
Active?: boolean;
|
|
155
|
+
}
|
|
156
|
+
|
|
148
157
|
export declare function ProductCard({ product, addToCart, syncToShopify, viewProductAction, addToCartAction, syncToShopifyAction, isActionLoading, }: ProductCardProps): JSX.Element;
|
|
149
158
|
|
|
150
159
|
export declare interface ProductCardProps {
|
|
@@ -171,14 +180,7 @@ export declare interface ProductCardProps {
|
|
|
171
180
|
AvailableQuantity?: number;
|
|
172
181
|
}[];
|
|
173
182
|
};
|
|
174
|
-
Opportunities?:
|
|
175
|
-
Opportunity: string;
|
|
176
|
-
BidNumber: string;
|
|
177
|
-
Price: number;
|
|
178
|
-
Rebate: number;
|
|
179
|
-
EndDate?: string;
|
|
180
|
-
Active?: boolean;
|
|
181
|
-
}[];
|
|
183
|
+
Opportunities?: Opportunity[];
|
|
182
184
|
InstantRebate?: {
|
|
183
185
|
EndDate?: string;
|
|
184
186
|
};
|
|
@@ -190,6 +192,7 @@ export declare interface ProductCardProps {
|
|
|
190
192
|
viewProductAction?: () => void;
|
|
191
193
|
addToCartAction?: (state: {
|
|
192
194
|
quantity: number;
|
|
195
|
+
bidNumber: string | null;
|
|
193
196
|
}) => void;
|
|
194
197
|
syncToShopifyAction?: () => void;
|
|
195
198
|
isActionLoading?: boolean;
|
|
@@ -372,12 +375,12 @@ export declare const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProvide
|
|
|
372
375
|
|
|
373
376
|
export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
374
377
|
|
|
375
|
-
export declare function Topbar({ onSignOut,
|
|
378
|
+
export declare function Topbar({ onSignOut, handleValidSearch, rightMenu }: TopbarProps): JSX.Element;
|
|
376
379
|
|
|
377
380
|
declare interface TopbarProps {
|
|
378
381
|
onSignOut?: () => void;
|
|
379
382
|
rightMenu?: React.ReactNode;
|
|
380
|
-
|
|
383
|
+
handleValidSearch: (q: string) => void;
|
|
381
384
|
}
|
|
382
385
|
|
|
383
386
|
export declare function useIsMobile(): boolean;
|