randmarcomps 1.83.0 → 1.85.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 +9 -66
- package/dist/randmarcomps.js +915 -881
- package/dist/randmarcomps.umd.cjs +6 -6
- package/package.json +2 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -3,8 +3,10 @@ import { ClassProp } from 'class-variance-authority/types';
|
|
|
3
3
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
4
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
5
5
|
import { FC } from 'react';
|
|
6
|
+
import { FlatProduct } from 'randmar-api-client';
|
|
6
7
|
import { ForwardRefExoticComponent } from 'react';
|
|
7
8
|
import { InputProps as InputProps_2 } from './input';
|
|
9
|
+
import { Inventory } from 'randmar-api-client';
|
|
8
10
|
import { JSX } from 'react/jsx-runtime';
|
|
9
11
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
10
12
|
import { MouseEventHandler } from 'react';
|
|
@@ -34,7 +36,7 @@ export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElemen
|
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
export declare const badgeVariants: (props?: ({
|
|
37
|
-
variant?: "default" | "
|
|
39
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "success" | "warning" | "info" | "randmarRed" | "randmarBlue" | "randmarPurple" | "randmarGreen" | "randmarBlack" | "randmarYellow" | null | undefined;
|
|
38
40
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
39
41
|
} & ClassProp) | undefined) => string;
|
|
40
42
|
|
|
@@ -46,7 +48,7 @@ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLBu
|
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
export declare const buttonVariants: (props?: ({
|
|
49
|
-
variant?: "link" | "default" | "none" | "
|
|
51
|
+
variant?: "link" | "default" | "none" | "destructive" | "outline" | "defaultOutline" | "secondary" | "ghost" | "blue" | "red" | null | undefined;
|
|
50
52
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
51
53
|
} & ClassProp) | undefined) => string;
|
|
52
54
|
|
|
@@ -197,7 +199,7 @@ export declare interface NavRoute {
|
|
|
197
199
|
showInNav?: boolean;
|
|
198
200
|
}
|
|
199
201
|
|
|
200
|
-
export declare function PartnerCard({ id, name, about, voiceName, voiceStyle, sceneName, action, }: PartnerCardProps): JSX.Element;
|
|
202
|
+
export declare function PartnerCard({ id, name, about, voiceName, voiceStyle, sceneName, action, loading, }: PartnerCardProps): JSX.Element;
|
|
201
203
|
|
|
202
204
|
declare interface PartnerCardProps {
|
|
203
205
|
id: string;
|
|
@@ -207,40 +209,13 @@ declare interface PartnerCardProps {
|
|
|
207
209
|
voiceStyle?: string;
|
|
208
210
|
sceneName?: string;
|
|
209
211
|
action?: ReactNode;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
declare interface Product {
|
|
213
|
-
Title?: string;
|
|
214
|
-
RandmarTitle?: string;
|
|
215
|
-
RandmarSKU?: string;
|
|
216
|
-
ManufacturerId?: string;
|
|
217
|
-
ManufacturerName?: string;
|
|
218
|
-
MPN?: string;
|
|
219
|
-
UPC?: string;
|
|
220
|
-
UnitWeight?: number;
|
|
221
|
-
MAP?: number;
|
|
222
|
-
CountryCodeOfOrigin?: string;
|
|
223
|
-
State?: string;
|
|
224
|
-
SerialNumber?: boolean;
|
|
225
|
-
TransparencyCode?: boolean;
|
|
226
|
-
AvailableToBuy?: boolean;
|
|
227
|
-
AutoUpdate?: boolean;
|
|
228
|
-
MasterCarton?: number;
|
|
229
|
-
BodyHTML?: string;
|
|
230
|
-
Distribution?: ProductDistribution;
|
|
231
|
-
Opportunities?: Array<ProductOpportunity>;
|
|
232
|
-
InstantRebate?: {
|
|
233
|
-
EndDate?: string;
|
|
234
|
-
};
|
|
235
|
-
ManufacturerCategory?: {
|
|
236
|
-
QualificationRequired?: boolean;
|
|
237
|
-
};
|
|
212
|
+
loading?: boolean;
|
|
238
213
|
}
|
|
239
214
|
|
|
240
215
|
export declare function ProductCard({ item, addToCart, syncToShopify, customAction, defaultOpportunityNumber, viewProductAction, addToCartAction, isAddToCartActionLoading, syncToShopifyAction, isSyncToShopifyActionLoading, }: ProductCardProps): JSX.Element;
|
|
241
216
|
|
|
242
217
|
export declare interface ProductCardProps {
|
|
243
|
-
item?:
|
|
218
|
+
item?: FlatProduct;
|
|
244
219
|
addToCart?: boolean;
|
|
245
220
|
syncToShopify?: boolean;
|
|
246
221
|
defaultOpportunityNumber?: string;
|
|
@@ -255,13 +230,6 @@ export declare interface ProductCardProps {
|
|
|
255
230
|
customAction?: React.ReactNode;
|
|
256
231
|
}
|
|
257
232
|
|
|
258
|
-
export declare interface ProductDistribution {
|
|
259
|
-
Price?: number;
|
|
260
|
-
RegularPrice?: number;
|
|
261
|
-
Cost?: number;
|
|
262
|
-
Inventory?: Array<WarehouseInventory>;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
233
|
export declare function ProductImage({ randmarSKU, size, alt, secondaryContent }: ProductImageProps): JSX.Element;
|
|
266
234
|
|
|
267
235
|
export declare interface ProductImageProps {
|
|
@@ -274,22 +242,10 @@ export declare interface ProductImageProps {
|
|
|
274
242
|
export declare function ProductInventoryGrid({ inventory, showBinLocation }: ProductInventoryGridProps): JSX.Element;
|
|
275
243
|
|
|
276
244
|
declare interface ProductInventoryGridProps {
|
|
277
|
-
inventory:
|
|
245
|
+
inventory: Inventory[];
|
|
278
246
|
showBinLocation?: boolean;
|
|
279
247
|
}
|
|
280
248
|
|
|
281
|
-
export declare interface ProductOpportunity {
|
|
282
|
-
Active?: boolean;
|
|
283
|
-
BidNumber?: string;
|
|
284
|
-
StartDate?: string;
|
|
285
|
-
EndDate?: string;
|
|
286
|
-
Opportunity?: string;
|
|
287
|
-
ManufacturerId?: string;
|
|
288
|
-
Price?: number;
|
|
289
|
-
RandmarSKU?: string;
|
|
290
|
-
Rebate?: number;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
249
|
export declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
294
250
|
|
|
295
251
|
export declare const Sheet: React_2.FC<DialogPrimitive.DialogProps>;
|
|
@@ -414,7 +370,7 @@ export declare const SidebarTrigger: React_2.ForwardRefExoticComponent<Omit<Butt
|
|
|
414
370
|
export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
415
371
|
|
|
416
372
|
export declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
417
|
-
variant?: "default" | "
|
|
373
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
418
374
|
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
419
375
|
|
|
420
376
|
export declare function toast({ ...props }: Toast_2): {
|
|
@@ -477,17 +433,4 @@ export declare function useToast(): {
|
|
|
477
433
|
toasts: ToasterToast[];
|
|
478
434
|
};
|
|
479
435
|
|
|
480
|
-
declare interface WarehouseInventory {
|
|
481
|
-
RandmarSKU?: string;
|
|
482
|
-
WarehouseId?: string;
|
|
483
|
-
WarehouseType?: string;
|
|
484
|
-
Name?: string;
|
|
485
|
-
City?: string;
|
|
486
|
-
Province?: string;
|
|
487
|
-
Country?: string;
|
|
488
|
-
AvailableQuantity?: number;
|
|
489
|
-
PurchaseOrderQuantity?: number;
|
|
490
|
-
BinLocation?: string;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
436
|
export { }
|