randmarcomps 1.185.0 → 1.186.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 +96 -0
- package/dist/randmarcomps.js +34 -7
- package/dist/randmarcomps.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
|
5
5
|
import { ClassProp } from 'class-variance-authority/types';
|
|
6
6
|
import { default as default_2 } from 'react';
|
|
7
7
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
8
9
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
9
10
|
import { FC } from 'react';
|
|
10
11
|
import { ForwardRefExoticComponent } from 'react';
|
|
@@ -17,6 +18,7 @@ import { Manufacturer } from 'randmar-api-client';
|
|
|
17
18
|
import { MouseEventHandler } from 'react';
|
|
18
19
|
import { OrderDetail } from 'randmar-api-client';
|
|
19
20
|
import { OTPInput } from 'input-otp';
|
|
21
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
20
22
|
import { Product } from 'randmar-api-client';
|
|
21
23
|
import { Qualification } from 'randmar-api-client';
|
|
22
24
|
import * as React_2 from 'react';
|
|
@@ -153,6 +155,92 @@ export declare const ChatProvider: default_2.FC<{
|
|
|
153
155
|
|
|
154
156
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
155
157
|
|
|
158
|
+
export declare const Command: React_2.ForwardRefExoticComponent<Omit<{
|
|
159
|
+
children?: React_2.ReactNode;
|
|
160
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
161
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
162
|
+
} & {
|
|
163
|
+
asChild?: boolean;
|
|
164
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
165
|
+
label?: string;
|
|
166
|
+
shouldFilter?: boolean;
|
|
167
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
168
|
+
defaultValue?: string;
|
|
169
|
+
value?: string;
|
|
170
|
+
onValueChange?: (value: string) => void;
|
|
171
|
+
loop?: boolean;
|
|
172
|
+
disablePointerSelection?: boolean;
|
|
173
|
+
vimBindings?: boolean;
|
|
174
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
175
|
+
|
|
176
|
+
export declare const CommandDialog: ({ children, ...props }: DialogProps) => JSX.Element;
|
|
177
|
+
|
|
178
|
+
export declare const CommandEmpty: React_2.ForwardRefExoticComponent<Omit<{
|
|
179
|
+
children?: React_2.ReactNode;
|
|
180
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
181
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
182
|
+
} & {
|
|
183
|
+
asChild?: boolean;
|
|
184
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
185
|
+
|
|
186
|
+
export declare const CommandGroup: React_2.ForwardRefExoticComponent<Omit<{
|
|
187
|
+
children?: React_2.ReactNode;
|
|
188
|
+
} & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
189
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
190
|
+
} & {
|
|
191
|
+
asChild?: boolean;
|
|
192
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
193
|
+
heading?: React_2.ReactNode;
|
|
194
|
+
value?: string;
|
|
195
|
+
forceMount?: boolean;
|
|
196
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
197
|
+
|
|
198
|
+
export declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof React_2.InputHTMLAttributes<HTMLInputElement> | "key"> & {
|
|
199
|
+
ref?: React_2.Ref<HTMLInputElement>;
|
|
200
|
+
} & {
|
|
201
|
+
asChild?: boolean;
|
|
202
|
+
}, keyof React_2.InputHTMLAttributes<HTMLInputElement> | "key" | "asChild">, "type" | "value" | "onChange"> & {
|
|
203
|
+
value?: string;
|
|
204
|
+
onValueChange?: (search: string) => void;
|
|
205
|
+
} & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
206
|
+
|
|
207
|
+
export declare const CommandItem: React_2.ForwardRefExoticComponent<Omit<{
|
|
208
|
+
children?: React_2.ReactNode;
|
|
209
|
+
} & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
210
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
211
|
+
} & {
|
|
212
|
+
asChild?: boolean;
|
|
213
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
|
|
214
|
+
disabled?: boolean;
|
|
215
|
+
onSelect?: (value: string) => void;
|
|
216
|
+
value?: string;
|
|
217
|
+
keywords?: string[];
|
|
218
|
+
forceMount?: boolean;
|
|
219
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
220
|
+
|
|
221
|
+
export declare const CommandList: React_2.ForwardRefExoticComponent<Omit<{
|
|
222
|
+
children?: React_2.ReactNode;
|
|
223
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
224
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
225
|
+
} & {
|
|
226
|
+
asChild?: boolean;
|
|
227
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
228
|
+
label?: string;
|
|
229
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
230
|
+
|
|
231
|
+
export declare const CommandSeparator: React_2.ForwardRefExoticComponent<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
232
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
233
|
+
} & {
|
|
234
|
+
asChild?: boolean;
|
|
235
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
236
|
+
alwaysRender?: boolean;
|
|
237
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
238
|
+
|
|
239
|
+
export declare const CommandShortcut: {
|
|
240
|
+
({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
241
|
+
displayName: string;
|
|
242
|
+
};
|
|
243
|
+
|
|
156
244
|
export declare interface ConfirmationDialogProps {
|
|
157
245
|
title: string;
|
|
158
246
|
content: React_2.ReactNode;
|
|
@@ -369,6 +457,14 @@ declare interface PartnerCardProps {
|
|
|
369
457
|
withVoice?: boolean;
|
|
370
458
|
}
|
|
371
459
|
|
|
460
|
+
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
461
|
+
|
|
462
|
+
export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
463
|
+
|
|
464
|
+
export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
465
|
+
|
|
466
|
+
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
467
|
+
|
|
372
468
|
export declare function Preloader({ text, color, className }: PreloaderProps): JSX.Element;
|
|
373
469
|
|
|
374
470
|
export declare interface PreloaderProps {
|
package/dist/randmarcomps.js
CHANGED
|
@@ -7398,7 +7398,7 @@ function isPointerInGraceArea(e, t) {
|
|
|
7398
7398
|
function whenMouse(e) {
|
|
7399
7399
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
7400
7400
|
}
|
|
7401
|
-
var Root3$1 = Menu, Anchor2 = MenuAnchor, Portal$3 = MenuPortal, Content2$4 = MenuContent, Group$1 = MenuGroup, Label$4 = MenuLabel, Item2$1 = MenuItem, CheckboxItem = MenuCheckboxItem, RadioGroup = MenuRadioGroup, RadioItem = MenuRadioItem, ItemIndicator$1 = MenuItemIndicator, Separator$3 = MenuSeparator, Arrow2 = MenuArrow, Sub = MenuSub, SubTrigger = MenuSubTrigger, SubContent = MenuSubContent, DROPDOWN_MENU_NAME = "DropdownMenu", [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(
|
|
7401
|
+
var Root3$1 = Menu, Anchor2$1 = MenuAnchor, Portal$3 = MenuPortal, Content2$4 = MenuContent, Group$1 = MenuGroup, Label$4 = MenuLabel, Item2$1 = MenuItem, CheckboxItem = MenuCheckboxItem, RadioGroup = MenuRadioGroup, RadioItem = MenuRadioItem, ItemIndicator$1 = MenuItemIndicator, Separator$3 = MenuSeparator, Arrow2 = MenuArrow, Sub = MenuSub, SubTrigger = MenuSubTrigger, SubContent = MenuSubContent, DROPDOWN_MENU_NAME = "DropdownMenu", [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(
|
|
7402
7402
|
DROPDOWN_MENU_NAME,
|
|
7403
7403
|
[createMenuScope]
|
|
7404
7404
|
), useMenuScope = createMenuScope(), [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME), DropdownMenu$1 = (e) => {
|
|
@@ -7435,7 +7435,7 @@ DropdownMenu$1.displayName = DROPDOWN_MENU_NAME;
|
|
|
7435
7435
|
var TRIGGER_NAME$4 = "DropdownMenuTrigger", DropdownMenuTrigger$1 = React.forwardRef(
|
|
7436
7436
|
(e, t) => {
|
|
7437
7437
|
const { __scopeDropdownMenu: n, disabled: o = !1, ...l } = e, d = useDropdownMenuContext(TRIGGER_NAME$4, n), f = useMenuScope(n);
|
|
7438
|
-
return /* @__PURE__ */ jsx(Anchor2, { asChild: !0, ...f, children: /* @__PURE__ */ jsx(
|
|
7438
|
+
return /* @__PURE__ */ jsx(Anchor2$1, { asChild: !0, ...f, children: /* @__PURE__ */ jsx(
|
|
7439
7439
|
Primitive.button,
|
|
7440
7440
|
{
|
|
7441
7441
|
type: "button",
|
|
@@ -62280,7 +62280,7 @@ const Command = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
62280
62280
|
}
|
|
62281
62281
|
));
|
|
62282
62282
|
Command.displayName = _e.displayName;
|
|
62283
|
-
const CommandInput = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
62283
|
+
const CommandDialog = ({ children: e, ...t }) => /* @__PURE__ */ jsx(Dialog, { ...t, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), CommandInput = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
62284
62284
|
/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
62285
62285
|
/* @__PURE__ */ jsx(
|
|
62286
62286
|
_e.Input,
|
|
@@ -62346,6 +62346,20 @@ const CommandItem = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__
|
|
|
62346
62346
|
}
|
|
62347
62347
|
));
|
|
62348
62348
|
CommandItem.displayName = _e.Item.displayName;
|
|
62349
|
+
const CommandShortcut = ({
|
|
62350
|
+
className: e,
|
|
62351
|
+
...t
|
|
62352
|
+
}) => /* @__PURE__ */ jsx(
|
|
62353
|
+
"span",
|
|
62354
|
+
{
|
|
62355
|
+
className: cn(
|
|
62356
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
62357
|
+
e
|
|
62358
|
+
),
|
|
62359
|
+
...t
|
|
62360
|
+
}
|
|
62361
|
+
);
|
|
62362
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
62349
62363
|
var POPOVER_NAME = "Popover", [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
|
|
62350
62364
|
createPopperScope
|
|
62351
62365
|
]), usePopperScope = createPopperScope(), [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME), Popover$1 = (e) => {
|
|
@@ -62380,13 +62394,13 @@ var POPOVER_NAME = "Popover", [createPopoverContext, createPopoverScope] = creat
|
|
|
62380
62394
|
) });
|
|
62381
62395
|
};
|
|
62382
62396
|
Popover$1.displayName = POPOVER_NAME;
|
|
62383
|
-
var ANCHOR_NAME = "PopoverAnchor", PopoverAnchor = React.forwardRef(
|
|
62397
|
+
var ANCHOR_NAME = "PopoverAnchor", PopoverAnchor$1 = React.forwardRef(
|
|
62384
62398
|
(e, t) => {
|
|
62385
62399
|
const { __scopePopover: n, ...o } = e, l = usePopoverContext(ANCHOR_NAME, n), d = usePopperScope(n), { onCustomAnchorAdd: f, onCustomAnchorRemove: g } = l;
|
|
62386
62400
|
return React.useEffect(() => (f(), () => g()), [f, g]), /* @__PURE__ */ jsx(Anchor, { ...d, ...o, ref: t });
|
|
62387
62401
|
}
|
|
62388
62402
|
);
|
|
62389
|
-
PopoverAnchor.displayName = ANCHOR_NAME;
|
|
62403
|
+
PopoverAnchor$1.displayName = ANCHOR_NAME;
|
|
62390
62404
|
var TRIGGER_NAME = "PopoverTrigger", PopoverTrigger$1 = React.forwardRef(
|
|
62391
62405
|
(e, t) => {
|
|
62392
62406
|
const { __scopePopover: n, ...o } = e, l = usePopoverContext(TRIGGER_NAME, n), d = usePopperScope(n), f = useComposedRefs(t, l.triggerRef), g = /* @__PURE__ */ jsx(
|
|
@@ -62557,8 +62571,8 @@ PopoverArrow.displayName = ARROW_NAME;
|
|
|
62557
62571
|
function getState(e) {
|
|
62558
62572
|
return e ? "open" : "closed";
|
|
62559
62573
|
}
|
|
62560
|
-
var Root2 = Popover$1, Trigger = PopoverTrigger$1, Portal = PopoverPortal, Content2 = PopoverContent$1;
|
|
62561
|
-
const Popover = Root2, PopoverTrigger = Trigger, PopoverContent = React.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...o }, l) => /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(
|
|
62574
|
+
var Root2 = Popover$1, Anchor2 = PopoverAnchor$1, Trigger = PopoverTrigger$1, Portal = PopoverPortal, Content2 = PopoverContent$1;
|
|
62575
|
+
const Popover = Root2, PopoverTrigger = Trigger, PopoverAnchor = Anchor2, PopoverContent = React.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...o }, l) => /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(
|
|
62562
62576
|
Content2,
|
|
62563
62577
|
{
|
|
62564
62578
|
ref: l,
|
|
@@ -62685,6 +62699,15 @@ export {
|
|
|
62685
62699
|
ChatLayout,
|
|
62686
62700
|
ChatProvider,
|
|
62687
62701
|
Checkbox,
|
|
62702
|
+
Command,
|
|
62703
|
+
CommandDialog,
|
|
62704
|
+
CommandEmpty,
|
|
62705
|
+
CommandGroup,
|
|
62706
|
+
CommandInput,
|
|
62707
|
+
CommandItem,
|
|
62708
|
+
CommandList,
|
|
62709
|
+
CommandSeparator,
|
|
62710
|
+
CommandShortcut,
|
|
62688
62711
|
CountryFlag,
|
|
62689
62712
|
Dialog,
|
|
62690
62713
|
DialogClose,
|
|
@@ -62726,6 +62749,10 @@ export {
|
|
|
62726
62749
|
MultiSelect,
|
|
62727
62750
|
Navbar,
|
|
62728
62751
|
PartnerCard,
|
|
62752
|
+
Popover,
|
|
62753
|
+
PopoverAnchor,
|
|
62754
|
+
PopoverContent,
|
|
62755
|
+
PopoverTrigger,
|
|
62729
62756
|
Preloader,
|
|
62730
62757
|
ProductCard,
|
|
62731
62758
|
ProductImage,
|