randmarcomps 1.52.0 → 1.57.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 +77 -0
- package/dist/randmarcomps.js +2605 -2135
- package/dist/randmarcomps.umd.cjs +53 -33
- package/package.json +10 -20
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -22,6 +22,17 @@ export declare interface AvatarFooterProps {
|
|
|
22
22
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
export declare const Badge: React_2.ForwardRefExoticComponent<BadgeProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
|
|
27
|
+
export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
28
|
+
icon?: React_2.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare const badgeVariants: (props?: ({
|
|
32
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "success" | "warning" | "info" | "randmarRed" | "randmarBlue" | "randmarPurple" | "randmarGreen" | "randmarBlack" | "randmarYellow" | null | undefined;
|
|
33
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
34
|
+
} & ClassProp) | undefined) => string;
|
|
35
|
+
|
|
25
36
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
26
37
|
|
|
27
38
|
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -34,6 +45,18 @@ export declare const buttonVariants: (props?: ({
|
|
|
34
45
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
35
46
|
} & ClassProp) | undefined) => string;
|
|
36
47
|
|
|
48
|
+
export declare const Card: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
|
|
50
|
+
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
|
|
52
|
+
export declare const CardDescription: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
|
|
54
|
+
export declare const CardFooter: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
|
|
56
|
+
export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
|
|
58
|
+
export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
|
|
37
60
|
export declare interface ConfirmationDialogProps {
|
|
38
61
|
title: string;
|
|
39
62
|
content: React_2.ReactNode;
|
|
@@ -63,6 +86,10 @@ export declare const DialogHeader: {
|
|
|
63
86
|
displayName: string;
|
|
64
87
|
};
|
|
65
88
|
|
|
89
|
+
export declare const DialogOverlay: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
90
|
+
|
|
91
|
+
export declare const DialogPortal: React_2.FC<DialogPrimitive.DialogPortalProps>;
|
|
92
|
+
|
|
66
93
|
export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
|
|
67
94
|
|
|
68
95
|
export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -118,6 +145,56 @@ export declare interface NavRoute {
|
|
|
118
145
|
showInNav?: boolean;
|
|
119
146
|
}
|
|
120
147
|
|
|
148
|
+
export declare function ProductCard({ product, addToCart, syncToShopify, viewProductAction, addToCartAction, syncToShopifyAction, isActionLoading, }: ProductCardProps): JSX.Element;
|
|
149
|
+
|
|
150
|
+
export declare interface ProductCardProps {
|
|
151
|
+
product?: {
|
|
152
|
+
RandmarSKU: string;
|
|
153
|
+
RandmarTitle: string;
|
|
154
|
+
Title?: string;
|
|
155
|
+
MPN?: string;
|
|
156
|
+
UPC?: string;
|
|
157
|
+
UnitWeight?: number;
|
|
158
|
+
MAP?: number;
|
|
159
|
+
AvailableToBuy?: boolean;
|
|
160
|
+
SerialNumber?: boolean;
|
|
161
|
+
TransparencyCode?: boolean;
|
|
162
|
+
ManufacturerCategory?: {
|
|
163
|
+
QualificationRequired?: boolean;
|
|
164
|
+
};
|
|
165
|
+
AutoUpdate?: boolean;
|
|
166
|
+
ShopifyProduct?: object;
|
|
167
|
+
Distribution?: {
|
|
168
|
+
RegularPrice: number;
|
|
169
|
+
Price: number;
|
|
170
|
+
Inventory?: {
|
|
171
|
+
AvailableQuantity?: number;
|
|
172
|
+
}[];
|
|
173
|
+
};
|
|
174
|
+
Opportunities?: {
|
|
175
|
+
Opportunity: string;
|
|
176
|
+
BidNumber: string;
|
|
177
|
+
Price: number;
|
|
178
|
+
Rebate: number;
|
|
179
|
+
EndDate?: string;
|
|
180
|
+
Active?: boolean;
|
|
181
|
+
}[];
|
|
182
|
+
InstantRebate?: {
|
|
183
|
+
EndDate?: string;
|
|
184
|
+
};
|
|
185
|
+
ManufacturerId?: string;
|
|
186
|
+
ManufacturerName?: string;
|
|
187
|
+
};
|
|
188
|
+
addToCart?: boolean;
|
|
189
|
+
syncToShopify?: boolean;
|
|
190
|
+
viewProductAction?: () => void;
|
|
191
|
+
addToCartAction?: (state: {
|
|
192
|
+
quantity: number;
|
|
193
|
+
}) => void;
|
|
194
|
+
syncToShopifyAction?: () => void;
|
|
195
|
+
isActionLoading?: boolean;
|
|
196
|
+
}
|
|
197
|
+
|
|
121
198
|
export declare function ProductImage({ randmarSKU, size, alt, secondaryContent }: ProductImageProps): JSX.Element;
|
|
122
199
|
|
|
123
200
|
export declare interface ProductImageProps {
|