randmarcomps 1.77.0 → 1.78.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.
@@ -1,6 +1,7 @@
1
1
  import { ButtonProps as ButtonProps_2 } from './button';
2
2
  import { ClassProp } from 'class-variance-authority/types';
3
3
  import * as DialogPrimitive from '@radix-ui/react-dialog';
4
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
4
5
  import { FC } from 'react';
5
6
  import { ForwardRefExoticComponent } from 'react';
6
7
  import { InputProps as InputProps_2 } from './input';
@@ -104,6 +105,45 @@ export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogP
104
105
 
105
106
  export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
106
107
 
108
+ export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
109
+
110
+ export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
111
+
112
+ export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
113
+
114
+ export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
115
+
116
+ export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
117
+ inset?: boolean;
118
+ } & React_2.RefAttributes<HTMLDivElement>>;
119
+
120
+ export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
121
+ inset?: boolean;
122
+ } & React_2.RefAttributes<HTMLDivElement>>;
123
+
124
+ export declare const DropdownMenuPortal: React_2.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
125
+
126
+ export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
127
+
128
+ export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
129
+
130
+ export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
131
+
132
+ export declare const DropdownMenuShortcut: {
133
+ ({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX.Element;
134
+ displayName: string;
135
+ };
136
+
137
+ export declare const DropdownMenuSub: React_2.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
138
+
139
+ export declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
140
+
141
+ export declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
142
+ inset?: boolean;
143
+ } & React_2.RefAttributes<HTMLDivElement>>;
144
+
145
+ export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
146
+
107
147
  export declare const Input: React_2.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
108
148
 
109
149
  export declare function InputOTP({ className, containerClassName, ...props }: React_2.ComponentProps<typeof OTPInput> & {
@@ -184,7 +224,7 @@ declare interface Product {
184
224
  };
185
225
  }
186
226
 
187
- export declare function ProductCard({ item, addToCart, syncToShopify, defaultOpportunityNumber, viewProductAction, addToCartAction, isAddToCartActionLoading, syncToShopifyAction, isSyncToShopifyActionLoading, }: ProductCardProps): JSX.Element;
227
+ export declare function ProductCard({ item, addToCart, syncToShopify, customAction, defaultOpportunityNumber, viewProductAction, addToCartAction, isAddToCartActionLoading, syncToShopifyAction, isSyncToShopifyActionLoading, }: ProductCardProps): JSX.Element;
188
228
 
189
229
  export declare interface ProductCardProps {
190
230
  item?: Product;
@@ -199,6 +239,7 @@ export declare interface ProductCardProps {
199
239
  isAddToCartActionLoading?: boolean;
200
240
  syncToShopifyAction?: () => void;
201
241
  isSyncToShopifyActionLoading?: boolean;
242
+ customAction?: React.ReactNode;
202
243
  }
203
244
 
204
245
  export declare interface ProductDistribution {