randmarcomps 1.56.0 → 1.58.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.
@@ -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;
@@ -122,6 +145,56 @@ export declare interface NavRoute {
122
145
  showInNav?: boolean;
123
146
  }
124
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
+
125
198
  export declare function ProductImage({ randmarSKU, size, alt, secondaryContent }: ProductImageProps): JSX.Element;
126
199
 
127
200
  export declare interface ProductImageProps {