randmarcomps 1.94.0 → 1.96.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.
@@ -5,17 +5,20 @@ import { default as default_2 } from 'react';
5
5
  import * as DialogPrimitive from '@radix-ui/react-dialog';
6
6
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
7
7
  import { FC } from 'react';
8
- import { FlatProduct } from 'randmar-api-client';
9
8
  import { ForwardRefExoticComponent } from 'react';
10
9
  import { InputProps as InputProps_2 } from './input';
11
10
  import { Inventory } from 'randmar-api-client';
12
11
  import { JSX } from 'react/jsx-runtime';
13
12
  import * as LabelPrimitive from '@radix-ui/react-label';
13
+ import { LucideIcon } from 'lucide-react';
14
+ import { Manufacturer } from 'randmar-api-client';
14
15
  import { MouseEventHandler } from 'react';
15
16
  import { OTPInput } from 'input-otp';
17
+ import { Product } from 'randmar-api-client';
16
18
  import * as React_2 from 'react';
17
19
  import { ReactNode } from 'react';
18
20
  import { RefAttributes } from 'react';
21
+ import { Reseller } from 'randmar-api-client';
19
22
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
20
23
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
21
24
  import { SeparatorProps } from '@radix-ui/react-separator';
@@ -24,6 +27,20 @@ import * as ToastPrimitives from '@radix-ui/react-toast';
24
27
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
25
28
  import { VariantProps } from 'class-variance-authority';
26
29
 
30
+ declare interface ActionItem {
31
+ icon: LucideIcon;
32
+ label: string;
33
+ link?: string;
34
+ onClick?: () => void;
35
+ }
36
+
37
+ declare interface ActionItem_2 {
38
+ icon: LucideIcon;
39
+ label: string;
40
+ link?: string;
41
+ onClick?: () => void;
42
+ }
43
+
27
44
  export declare function AreaChart({ data, units, unitsPosition, width, height, className }: AreaChartProps): JSX.Element;
28
45
 
29
46
  export declare interface AreaChartProps {
@@ -69,7 +86,7 @@ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLBu
69
86
  }
70
87
 
71
88
  export declare const buttonVariants: (props?: ({
72
- variant?: "link" | "default" | "none" | "destructive" | "outline" | "defaultOutline" | "secondary" | "ghost" | "blue" | "red" | null | undefined;
89
+ variant?: "link" | "default" | "none" | "destructive" | "outline" | "defaultOutline" | "secondary" | "ghost" | "blue" | "red" | "purple" | null | undefined;
73
90
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
74
91
  } & ClassProp) | undefined) => string;
75
92
 
@@ -225,6 +242,15 @@ declare interface LayoutProps {
225
242
  chatRef?: React.Ref<ChatLayoutHandle>;
226
243
  }
227
244
 
245
+ export declare function ManufacturerCard({ manufacturer, goToManufacturerLink, actionItems, isLoading, }: ManufacturerCardProps): JSX.Element;
246
+
247
+ declare interface ManufacturerCardProps {
248
+ manufacturer: Manufacturer;
249
+ goToManufacturerLink: string;
250
+ actionItems?: ActionItem[];
251
+ isLoading?: boolean;
252
+ }
253
+
228
254
  declare type MaskType = "phone" | "postal-code-ca" | "zip-code-us";
229
255
 
230
256
  export declare const Navbar: default_2.ForwardRefExoticComponent<NavbarProps & default_2.RefAttributes<ChatLayoutHandle>>;
@@ -267,14 +293,14 @@ export declare interface PreloaderProps {
267
293
  className?: string;
268
294
  }
269
295
 
270
- export declare function ProductCard({ item, addToCart, syncToShopify, customAction, defaultOpportunityNumber, viewProductAction, addToCartAction, isAddToCartActionLoading, syncToShopifyAction, isSyncToShopifyActionLoading, }: ProductCardProps): JSX.Element;
296
+ export declare function ProductCard({ item, addToCart, syncToShopify, customAction, defaultOpportunityNumber, viewProductLink, addToCartAction, isAddToCartActionLoading, syncToShopifyAction, isSyncToShopifyActionLoading, }: ProductCardProps): JSX.Element;
271
297
 
272
298
  export declare interface ProductCardProps {
273
- item?: FlatProduct;
299
+ item?: Product;
274
300
  addToCart?: boolean;
275
301
  syncToShopify?: boolean;
276
302
  defaultOpportunityNumber?: string;
277
- viewProductAction?: () => void;
303
+ viewProductLink?: string;
278
304
  addToCartAction?: (state: {
279
305
  quantity: number;
280
306
  bidNumber: string | null;
@@ -301,6 +327,15 @@ declare interface ProductInventoryGridProps {
301
327
  showBinLocation?: boolean;
302
328
  }
303
329
 
330
+ export declare function ResellerCard({ reseller, goToResellerLink, actionItems, isLoading, }: ResellerCardProps): JSX.Element;
331
+
332
+ declare interface ResellerCardProps {
333
+ reseller: Reseller;
334
+ goToResellerLink: string;
335
+ actionItems?: ActionItem_2[];
336
+ isLoading?: boolean;
337
+ }
338
+
304
339
  export declare const ScrollArea: React_2.ForwardRefExoticComponent<ScrollAreaProps & React_2.RefAttributes<HTMLDivElement>>;
305
340
 
306
341
  export declare interface ScrollAreaProps extends React_2.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> {