randmarcomps 1.84.0 → 1.86.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 +22 -65
- package/dist/randmarcomps.js +22930 -4798
- package/dist/randmarcomps.umd.cjs +141 -47
- package/package.json +3 -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';
|
|
@@ -18,6 +20,17 @@ import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
|
18
20
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
19
21
|
import { VariantProps } from 'class-variance-authority';
|
|
20
22
|
|
|
23
|
+
export declare function AreaChart({ data, units, unitsPosition, width, height, className }: AreaChartProps): JSX.Element;
|
|
24
|
+
|
|
25
|
+
export declare interface AreaChartProps {
|
|
26
|
+
data: DataPoint[];
|
|
27
|
+
units?: string;
|
|
28
|
+
unitsPosition?: "left" | "right";
|
|
29
|
+
width?: string | number;
|
|
30
|
+
height?: string | number;
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
21
34
|
export declare function AvatarFooter({ onClick, publicName, applicationName, partnerId }: AvatarFooterProps): JSX.Element;
|
|
22
35
|
|
|
23
36
|
export declare interface AvatarFooterProps {
|
|
@@ -34,7 +47,7 @@ export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElemen
|
|
|
34
47
|
}
|
|
35
48
|
|
|
36
49
|
export declare const badgeVariants: (props?: ({
|
|
37
|
-
variant?: "default" | "
|
|
50
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "success" | "warning" | "info" | "randmarRed" | "randmarBlue" | "randmarPurple" | "randmarGreen" | "randmarBlack" | "randmarYellow" | null | undefined;
|
|
38
51
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
39
52
|
} & ClassProp) | undefined) => string;
|
|
40
53
|
|
|
@@ -46,7 +59,7 @@ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLBu
|
|
|
46
59
|
}
|
|
47
60
|
|
|
48
61
|
export declare const buttonVariants: (props?: ({
|
|
49
|
-
variant?: "link" | "default" | "none" | "
|
|
62
|
+
variant?: "link" | "default" | "none" | "destructive" | "outline" | "defaultOutline" | "secondary" | "ghost" | "blue" | "red" | null | undefined;
|
|
50
63
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
51
64
|
} & ClassProp) | undefined) => string;
|
|
52
65
|
|
|
@@ -77,6 +90,10 @@ export declare interface CountryFlagProps {
|
|
|
77
90
|
className?: string;
|
|
78
91
|
}
|
|
79
92
|
|
|
93
|
+
export declare interface DataPoint {
|
|
94
|
+
[key: string]: string | number;
|
|
95
|
+
}
|
|
96
|
+
|
|
80
97
|
export declare const Dialog: {
|
|
81
98
|
({ modal, ...props }: DialogPrimitive.DialogProps): JSX.Element;
|
|
82
99
|
displayName: string | undefined;
|
|
@@ -210,38 +227,10 @@ declare interface PartnerCardProps {
|
|
|
210
227
|
loading?: boolean;
|
|
211
228
|
}
|
|
212
229
|
|
|
213
|
-
declare interface Product {
|
|
214
|
-
Title?: string;
|
|
215
|
-
RandmarTitle?: string;
|
|
216
|
-
RandmarSKU?: string;
|
|
217
|
-
ManufacturerId?: string;
|
|
218
|
-
ManufacturerName?: string;
|
|
219
|
-
MPN?: string;
|
|
220
|
-
UPC?: string;
|
|
221
|
-
UnitWeight?: number;
|
|
222
|
-
MAP?: number;
|
|
223
|
-
CountryCodeOfOrigin?: string;
|
|
224
|
-
State?: string;
|
|
225
|
-
SerialNumber?: boolean;
|
|
226
|
-
TransparencyCode?: boolean;
|
|
227
|
-
AvailableToBuy?: boolean;
|
|
228
|
-
AutoUpdate?: boolean;
|
|
229
|
-
MasterCarton?: number;
|
|
230
|
-
BodyHTML?: string;
|
|
231
|
-
Distribution?: ProductDistribution;
|
|
232
|
-
Opportunities?: Array<ProductOpportunity>;
|
|
233
|
-
InstantRebate?: {
|
|
234
|
-
EndDate?: string;
|
|
235
|
-
};
|
|
236
|
-
ManufacturerCategory?: {
|
|
237
|
-
QualificationRequired?: boolean;
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
|
|
241
230
|
export declare function ProductCard({ item, addToCart, syncToShopify, customAction, defaultOpportunityNumber, viewProductAction, addToCartAction, isAddToCartActionLoading, syncToShopifyAction, isSyncToShopifyActionLoading, }: ProductCardProps): JSX.Element;
|
|
242
231
|
|
|
243
232
|
export declare interface ProductCardProps {
|
|
244
|
-
item?:
|
|
233
|
+
item?: FlatProduct;
|
|
245
234
|
addToCart?: boolean;
|
|
246
235
|
syncToShopify?: boolean;
|
|
247
236
|
defaultOpportunityNumber?: string;
|
|
@@ -256,13 +245,6 @@ export declare interface ProductCardProps {
|
|
|
256
245
|
customAction?: React.ReactNode;
|
|
257
246
|
}
|
|
258
247
|
|
|
259
|
-
export declare interface ProductDistribution {
|
|
260
|
-
Price?: number;
|
|
261
|
-
RegularPrice?: number;
|
|
262
|
-
Cost?: number;
|
|
263
|
-
Inventory?: Array<WarehouseInventory>;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
248
|
export declare function ProductImage({ randmarSKU, size, alt, secondaryContent }: ProductImageProps): JSX.Element;
|
|
267
249
|
|
|
268
250
|
export declare interface ProductImageProps {
|
|
@@ -275,22 +257,10 @@ export declare interface ProductImageProps {
|
|
|
275
257
|
export declare function ProductInventoryGrid({ inventory, showBinLocation }: ProductInventoryGridProps): JSX.Element;
|
|
276
258
|
|
|
277
259
|
declare interface ProductInventoryGridProps {
|
|
278
|
-
inventory:
|
|
260
|
+
inventory: Inventory[];
|
|
279
261
|
showBinLocation?: boolean;
|
|
280
262
|
}
|
|
281
263
|
|
|
282
|
-
export declare interface ProductOpportunity {
|
|
283
|
-
Active?: boolean;
|
|
284
|
-
BidNumber?: string;
|
|
285
|
-
StartDate?: string;
|
|
286
|
-
EndDate?: string;
|
|
287
|
-
Opportunity?: string;
|
|
288
|
-
ManufacturerId?: string;
|
|
289
|
-
Price?: number;
|
|
290
|
-
RandmarSKU?: string;
|
|
291
|
-
Rebate?: number;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
264
|
export declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
295
265
|
|
|
296
266
|
export declare const Sheet: React_2.FC<DialogPrimitive.DialogProps>;
|
|
@@ -415,7 +385,7 @@ export declare const SidebarTrigger: React_2.ForwardRefExoticComponent<Omit<Butt
|
|
|
415
385
|
export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
416
386
|
|
|
417
387
|
export declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
418
|
-
variant?: "default" | "
|
|
388
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
419
389
|
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
420
390
|
|
|
421
391
|
export declare function toast({ ...props }: Toast_2): {
|
|
@@ -478,17 +448,4 @@ export declare function useToast(): {
|
|
|
478
448
|
toasts: ToasterToast[];
|
|
479
449
|
};
|
|
480
450
|
|
|
481
|
-
declare interface WarehouseInventory {
|
|
482
|
-
RandmarSKU?: string;
|
|
483
|
-
WarehouseId?: string;
|
|
484
|
-
WarehouseType?: string;
|
|
485
|
-
Name?: string;
|
|
486
|
-
City?: string;
|
|
487
|
-
Province?: string;
|
|
488
|
-
Country?: string;
|
|
489
|
-
AvailableQuantity?: number;
|
|
490
|
-
PurchaseOrderQuantity?: number;
|
|
491
|
-
BinLocation?: string;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
451
|
export { }
|