@carlonicora/nextjs-jsonapi 1.47.1 → 1.48.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.
Files changed (33) hide show
  1. package/dist/{BlockNoteEditor-GBD4N4SA.js → BlockNoteEditor-4ZNFPFIR.js} +8 -8
  2. package/dist/{BlockNoteEditor-GBD4N4SA.js.map → BlockNoteEditor-4ZNFPFIR.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-34PX47L4.mjs → BlockNoteEditor-MY2WUSZY.mjs} +4 -4
  4. package/dist/{BlockNoteEditor-34PX47L4.mjs.map → BlockNoteEditor-MY2WUSZY.mjs.map} +1 -1
  5. package/dist/billing/index.js +299 -299
  6. package/dist/billing/index.mjs +1 -1
  7. package/dist/{chunk-L7RMKAGH.mjs → chunk-56YOTJYS.mjs} +2572 -2053
  8. package/dist/chunk-56YOTJYS.mjs.map +1 -0
  9. package/dist/{chunk-FLQPQEY2.js → chunk-6RE6272L.js} +771 -252
  10. package/dist/chunk-6RE6272L.js.map +1 -0
  11. package/dist/client/index.js +2 -2
  12. package/dist/client/index.mjs +1 -1
  13. package/dist/components/index.d.mts +96 -3
  14. package/dist/components/index.d.ts +96 -3
  15. package/dist/components/index.js +6 -2
  16. package/dist/components/index.js.map +1 -1
  17. package/dist/components/index.mjs +5 -1
  18. package/dist/contexts/index.js +2 -2
  19. package/dist/contexts/index.mjs +1 -1
  20. package/dist/scripts/generate-web-module/templates/components/multi-selector.template.d.ts.map +1 -1
  21. package/dist/scripts/generate-web-module/templates/components/multi-selector.template.js +52 -54
  22. package/dist/scripts/generate-web-module/templates/components/multi-selector.template.js.map +1 -1
  23. package/package.json +1 -1
  24. package/scripts/generate-web-module/templates/components/multi-selector.template.ts +52 -54
  25. package/src/components/editors/BlockNoteEditor.tsx +2 -2
  26. package/src/components/tables/ContentListTable.tsx +4 -1
  27. package/src/features/company/hooks/useSubscriptionStatus.ts +12 -0
  28. package/src/features/user/components/forms/UserMultiSelect.tsx +82 -64
  29. package/src/shadcnui/custom/multi-select.tsx +86 -22
  30. package/src/shadcnui/custom/multiple-selector.tsx +608 -0
  31. package/src/shadcnui/index.ts +1 -0
  32. package/dist/chunk-FLQPQEY2.js.map +0 -1
  33. package/dist/chunk-L7RMKAGH.mjs.map +0 -1
@@ -0,0 +1,608 @@
1
+ "use client";
2
+
3
+ import { Command as CommandPrimitive, useCommandState } from "cmdk";
4
+ import { ChevronDownIcon, X } from "lucide-react";
5
+ import * as React from "react";
6
+ import { forwardRef, useEffect } from "react";
7
+
8
+ import { cn } from "../../utils/cn";
9
+ import { Badge } from "../ui/badge";
10
+ import { Command, CommandGroup, CommandItem, CommandList } from "../ui/command";
11
+
12
+ export interface Option {
13
+ value: string;
14
+ label: string;
15
+ /** Label to display in the badge when selected. Falls back to label if not provided. */
16
+ selectedLabel?: string;
17
+ disable?: boolean;
18
+ /** fixed option that can't be removed. */
19
+ fixed?: boolean;
20
+ /** Group the options by providing key. */
21
+ [key: string]: unknown;
22
+ }
23
+
24
+ interface GroupOption {
25
+ [key: string]: Option[];
26
+ }
27
+
28
+ export interface MultipleSelectorProps {
29
+ value?: Option[];
30
+ defaultOptions?: Option[];
31
+ /** manually controlled options */
32
+ options?: Option[];
33
+ placeholder?: string;
34
+ /** Loading component. */
35
+ loadingIndicator?: React.ReactNode;
36
+ /** Empty component. */
37
+ emptyIndicator?: React.ReactNode;
38
+ /** Debounce time for async search. Only work with `onSearch`. */
39
+ delay?: number;
40
+ /**
41
+ * Only work with `onSearch` prop. Trigger search when `onFocus`.
42
+ * For example, when user click on the input, it will trigger the search to get initial options.
43
+ **/
44
+ triggerSearchOnFocus?: boolean;
45
+ /** async search */
46
+ onSearch?: (value: string) => Promise<Option[]>;
47
+ /**
48
+ * sync search. This search will not showing loadingIndicator.
49
+ * The rest props are the same as async search.
50
+ * i.e.: creatable, groupBy, delay.
51
+ **/
52
+ onSearchSync?: (value: string) => Option[];
53
+ onChange?: (options: Option[]) => void;
54
+ /** Limit the maximum number of selected options. */
55
+ maxSelected?: number;
56
+ /** When the number of selected options exceeds the limit, the onMaxSelected will be called. */
57
+ onMaxSelected?: (maxLimit: number) => void;
58
+ /** Hide the placeholder when there are options selected. */
59
+ hidePlaceholderWhenSelected?: boolean;
60
+ disabled?: boolean;
61
+ /** Group the options base on provided key. */
62
+ groupBy?: string;
63
+ className?: string;
64
+ badgeClassName?: string;
65
+ /**
66
+ * First item selected is a default behavior by cmdk. That is why the default is true.
67
+ * This is a workaround solution by add a dummy item.
68
+ *
69
+ * @reference: https://github.com/pacocoursey/cmdk/issues/171
70
+ */
71
+ selectFirstItem?: boolean;
72
+ /** Allow user to create option when there is no option matched. */
73
+ creatable?: boolean;
74
+ /** Props of `Command` */
75
+ commandProps?: React.ComponentPropsWithoutRef<typeof Command>;
76
+ /** Props of `CommandInput` */
77
+ inputProps?: Omit<
78
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>,
79
+ "value" | "placeholder" | "disabled"
80
+ >;
81
+ /** hide the clear all button. */
82
+ hideClearAllButton?: boolean;
83
+ /** Custom render function for options in the dropdown */
84
+ renderOption?: (option: Option) => React.ReactNode;
85
+ /** Maximum number of badges to display before showing "+X more" */
86
+ maxDisplayCount?: number;
87
+ }
88
+
89
+ export interface MultipleSelectorRef {
90
+ selectedValue: Option[];
91
+ input: HTMLInputElement;
92
+ focus: () => void;
93
+ reset: () => void;
94
+ }
95
+
96
+ export function useDebounce<T>(value: T, delay?: number): T {
97
+ const [debouncedValue, setDebouncedValue] = React.useState<T>(value);
98
+
99
+ useEffect(() => {
100
+ const timer = setTimeout(() => setDebouncedValue(value), delay || 500);
101
+
102
+ return () => {
103
+ clearTimeout(timer);
104
+ };
105
+ }, [value, delay]);
106
+
107
+ return debouncedValue;
108
+ }
109
+
110
+ function transToGroupOption(options: Option[], groupBy?: string) {
111
+ if (options.length === 0) {
112
+ return {};
113
+ }
114
+ if (!groupBy) {
115
+ return {
116
+ "": options,
117
+ };
118
+ }
119
+
120
+ const groupOption: GroupOption = {};
121
+ options.forEach((option) => {
122
+ const key = (option[groupBy] as string) || "";
123
+ if (!groupOption[key]) {
124
+ groupOption[key] = [];
125
+ }
126
+ groupOption[key].push(option);
127
+ });
128
+ return groupOption;
129
+ }
130
+
131
+ function removePickedOption(groupOption: GroupOption, picked: Option[]) {
132
+ const cloneOption = JSON.parse(JSON.stringify(groupOption)) as GroupOption;
133
+
134
+ for (const [key, value] of Object.entries(cloneOption)) {
135
+ cloneOption[key] = value.filter((val) => !picked.find((p) => p.value === val.value));
136
+ }
137
+ return cloneOption;
138
+ }
139
+
140
+ function isOptionsExist(groupOption: GroupOption, targetOption: Option[]) {
141
+ for (const [, value] of Object.entries(groupOption)) {
142
+ if (value.some((option) => targetOption.find((p) => p.value === option.value))) {
143
+ return true;
144
+ }
145
+ }
146
+ return false;
147
+ }
148
+
149
+ /**
150
+ * The `CommandEmpty` of shadcn/ui will cause the cmdk empty not rendering correctly.
151
+ * So we create one and copy the `Empty` implementation from `cmdk`.
152
+ *
153
+ * @reference: https://github.com/hsuanyi-chou/shadcn-ui-expansions/issues/34#issuecomment-1949561607
154
+ **/
155
+ const CommandEmpty = forwardRef<HTMLDivElement, React.ComponentProps<typeof CommandPrimitive.Empty>>(
156
+ ({ className, ...props }, forwardedRef) => {
157
+ const render = useCommandState((state) => state.filtered.count === 0);
158
+
159
+ if (!render) return null;
160
+
161
+ return (
162
+ <div
163
+ ref={forwardedRef}
164
+ className={cn("py-6 text-center text-sm", className)}
165
+ cmdk-empty=""
166
+ role="presentation"
167
+ {...props}
168
+ />
169
+ );
170
+ },
171
+ );
172
+
173
+ CommandEmpty.displayName = "CommandEmpty";
174
+
175
+ const MultipleSelector = React.forwardRef<MultipleSelectorRef, MultipleSelectorProps>(
176
+ (
177
+ {
178
+ value,
179
+ onChange,
180
+ placeholder,
181
+ defaultOptions: arrayDefaultOptions = [],
182
+ options: arrayOptions,
183
+ delay,
184
+ onSearch,
185
+ onSearchSync,
186
+ loadingIndicator,
187
+ emptyIndicator,
188
+ maxSelected = Number.MAX_SAFE_INTEGER,
189
+ onMaxSelected,
190
+ hidePlaceholderWhenSelected,
191
+ disabled,
192
+ groupBy,
193
+ className,
194
+ badgeClassName,
195
+ selectFirstItem = true,
196
+ creatable = false,
197
+ triggerSearchOnFocus = false,
198
+ commandProps,
199
+ inputProps,
200
+ hideClearAllButton = false,
201
+ renderOption,
202
+ maxDisplayCount,
203
+ }: MultipleSelectorProps,
204
+ ref: React.Ref<MultipleSelectorRef>,
205
+ ) => {
206
+ const inputRef = React.useRef<HTMLInputElement>(null);
207
+ const [open, setOpen] = React.useState(false);
208
+ const [onScrollbar, setOnScrollbar] = React.useState(false);
209
+ const [isLoading, setIsLoading] = React.useState(false);
210
+ const dropdownRef = React.useRef<HTMLDivElement>(null);
211
+
212
+ const [selected, setSelected] = React.useState<Option[]>(value || []);
213
+ const [options, setOptions] = React.useState<GroupOption>(transToGroupOption(arrayDefaultOptions, groupBy));
214
+ const [inputValue, setInputValue] = React.useState("");
215
+ const debouncedSearchTerm = useDebounce(inputValue, delay || 500);
216
+
217
+ React.useImperativeHandle(
218
+ ref,
219
+ () => ({
220
+ selectedValue: [...selected],
221
+ input: inputRef.current as HTMLInputElement,
222
+ focus: () => inputRef?.current?.focus(),
223
+ reset: () => setSelected([]),
224
+ }),
225
+ [selected],
226
+ );
227
+
228
+ const handleClickOutside = (event: MouseEvent | TouchEvent) => {
229
+ if (
230
+ dropdownRef.current &&
231
+ !dropdownRef.current.contains(event.target as Node) &&
232
+ inputRef.current &&
233
+ !inputRef.current.contains(event.target as Node)
234
+ ) {
235
+ setOpen(false);
236
+ inputRef.current.blur();
237
+ }
238
+ };
239
+
240
+ const handleUnselect = React.useCallback(
241
+ (option: Option) => {
242
+ const newOptions = selected.filter((s) => s.value !== option.value);
243
+ setSelected(newOptions);
244
+ onChange?.(newOptions);
245
+ },
246
+ [onChange, selected],
247
+ );
248
+
249
+ const handleKeyDown = React.useCallback(
250
+ (e: React.KeyboardEvent<HTMLDivElement>) => {
251
+ const input = inputRef.current;
252
+ if (input) {
253
+ if (e.key === "Delete" || e.key === "Backspace") {
254
+ if (input.value === "" && selected.length > 0) {
255
+ const lastSelectOption = selected[selected.length - 1];
256
+ if (lastSelectOption && !lastSelectOption.fixed) {
257
+ handleUnselect(lastSelectOption);
258
+ }
259
+ }
260
+ }
261
+ if (e.key === "Escape") {
262
+ input.blur();
263
+ }
264
+ }
265
+ },
266
+ [handleUnselect, selected],
267
+ );
268
+
269
+ useEffect(() => {
270
+ if (open) {
271
+ document.addEventListener("mousedown", handleClickOutside);
272
+ document.addEventListener("touchend", handleClickOutside);
273
+ } else {
274
+ document.removeEventListener("mousedown", handleClickOutside);
275
+ document.removeEventListener("touchend", handleClickOutside);
276
+ }
277
+
278
+ return () => {
279
+ document.removeEventListener("mousedown", handleClickOutside);
280
+ document.removeEventListener("touchend", handleClickOutside);
281
+ };
282
+ }, [open]);
283
+
284
+ useEffect(() => {
285
+ if (value) {
286
+ setSelected(value);
287
+ }
288
+ }, [value]);
289
+
290
+ useEffect(() => {
291
+ if (!arrayOptions || onSearch) {
292
+ return;
293
+ }
294
+ const newOption = transToGroupOption(arrayOptions || [], groupBy);
295
+ if (JSON.stringify(newOption) !== JSON.stringify(options)) {
296
+ setOptions(newOption);
297
+ }
298
+ }, [arrayDefaultOptions, arrayOptions, groupBy, onSearch, options]);
299
+
300
+ useEffect(() => {
301
+ const doSearchSync = () => {
302
+ const res = onSearchSync?.(debouncedSearchTerm);
303
+ setOptions(transToGroupOption(res || [], groupBy));
304
+ };
305
+
306
+ const exec = async () => {
307
+ if (!onSearchSync || !open) return;
308
+
309
+ if (triggerSearchOnFocus) {
310
+ doSearchSync();
311
+ }
312
+
313
+ // Always call doSearchSync when search term changes (including when cleared to empty string)
314
+ doSearchSync();
315
+ };
316
+
317
+ void exec();
318
+ }, [debouncedSearchTerm, groupBy, open, triggerSearchOnFocus, onSearchSync]);
319
+
320
+ useEffect(() => {
321
+ const doSearch = async () => {
322
+ setIsLoading(true);
323
+ const res = await onSearch?.(debouncedSearchTerm);
324
+ setOptions(transToGroupOption(res || [], groupBy));
325
+ setIsLoading(false);
326
+ };
327
+
328
+ const exec = async () => {
329
+ if (!onSearch || !open) return;
330
+
331
+ if (triggerSearchOnFocus) {
332
+ await doSearch();
333
+ }
334
+
335
+ if (debouncedSearchTerm) {
336
+ await doSearch();
337
+ }
338
+ };
339
+
340
+ void exec();
341
+ }, [debouncedSearchTerm, groupBy, open, triggerSearchOnFocus, onSearch]);
342
+
343
+ const CreatableItem = () => {
344
+ if (!creatable) return undefined;
345
+ if (
346
+ isOptionsExist(options, [{ value: inputValue, label: inputValue }]) ||
347
+ selected.find((s) => s.value === inputValue)
348
+ ) {
349
+ return undefined;
350
+ }
351
+
352
+ const Item = (
353
+ <CommandItem
354
+ value={inputValue}
355
+ className="cursor-pointer"
356
+ onMouseDown={(e) => {
357
+ e.preventDefault();
358
+ e.stopPropagation();
359
+ }}
360
+ onSelect={(value: string) => {
361
+ if (selected.length >= maxSelected) {
362
+ onMaxSelected?.(selected.length);
363
+ return;
364
+ }
365
+ setInputValue("");
366
+ const newOptions = [...selected, { value, label: value }];
367
+ setSelected(newOptions);
368
+ onChange?.(newOptions);
369
+ }}
370
+ >
371
+ {`Create "${inputValue}"`}
372
+ </CommandItem>
373
+ );
374
+
375
+ if (!onSearch && inputValue.length > 0) {
376
+ return Item;
377
+ }
378
+
379
+ if (onSearch && debouncedSearchTerm.length > 0 && !isLoading) {
380
+ return Item;
381
+ }
382
+
383
+ return undefined;
384
+ };
385
+
386
+ const EmptyItem = React.useCallback(() => {
387
+ if (!emptyIndicator) return undefined;
388
+
389
+ if (onSearch && !creatable && Object.keys(options).length === 0) {
390
+ return (
391
+ <CommandItem value="-" disabled>
392
+ {emptyIndicator}
393
+ </CommandItem>
394
+ );
395
+ }
396
+
397
+ return <CommandEmpty>{emptyIndicator}</CommandEmpty>;
398
+ }, [creatable, emptyIndicator, onSearch, options]);
399
+
400
+ const selectables = React.useMemo<GroupOption>(() => removePickedOption(options, selected), [options, selected]);
401
+
402
+ const commandFilter = React.useCallback(() => {
403
+ if (commandProps?.filter) {
404
+ return commandProps.filter;
405
+ }
406
+
407
+ if (creatable) {
408
+ return (value: string, search: string) => {
409
+ return value.toLowerCase().includes(search.toLowerCase()) ? 1 : -1;
410
+ };
411
+ }
412
+ return undefined;
413
+ }, [creatable, commandProps?.filter]);
414
+
415
+ // Determine which badges to display
416
+ const displayedBadges = maxDisplayCount ? selected.slice(0, maxDisplayCount) : selected;
417
+ const hiddenCount = maxDisplayCount ? Math.max(0, selected.length - maxDisplayCount) : 0;
418
+
419
+ return (
420
+ <Command
421
+ ref={dropdownRef}
422
+ {...commandProps}
423
+ onKeyDown={(e) => {
424
+ handleKeyDown(e);
425
+ commandProps?.onKeyDown?.(e);
426
+ }}
427
+ className={cn("h-auto overflow-visible bg-transparent!", commandProps?.className)}
428
+ shouldFilter={commandProps?.shouldFilter !== undefined ? commandProps.shouldFilter : !onSearch}
429
+ filter={commandFilter()}
430
+ >
431
+ <div
432
+ className={cn(
433
+ "flex min-h-10 items-start justify-between rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 md:text-sm",
434
+ {
435
+ "cursor-text": !disabled && selected.length !== 0,
436
+ },
437
+ className,
438
+ )}
439
+ onClick={() => {
440
+ if (disabled) return;
441
+ inputRef?.current?.focus();
442
+ }}
443
+ >
444
+ <div className="relative flex flex-1 flex-wrap gap-1">
445
+ {displayedBadges.map((option) => {
446
+ return (
447
+ <Badge
448
+ key={option.value}
449
+ variant="secondary"
450
+ className={cn(
451
+ "data-[disabled]:bg-muted-foreground data-[disabled]:text-muted data-[disabled]:hover:bg-muted-foreground",
452
+ "data-[fixed]:bg-muted-foreground data-[fixed]:text-muted data-[fixed]:hover:bg-muted-foreground",
453
+ badgeClassName,
454
+ )}
455
+ data-fixed={option.fixed}
456
+ data-disabled={disabled || undefined}
457
+ >
458
+ {option.selectedLabel ?? option.label}
459
+ <button
460
+ type="button"
461
+ className={cn(
462
+ "ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
463
+ (disabled || option.fixed) && "hidden",
464
+ )}
465
+ onKeyDown={(e) => {
466
+ if (e.key === "Enter") {
467
+ handleUnselect(option);
468
+ }
469
+ }}
470
+ onMouseDown={(e) => {
471
+ e.preventDefault();
472
+ e.stopPropagation();
473
+ }}
474
+ onClick={() => handleUnselect(option)}
475
+ >
476
+ <X className="h-3 w-3 text-muted-foreground hover:text-foreground" />
477
+ </button>
478
+ </Badge>
479
+ );
480
+ })}
481
+ {hiddenCount > 0 && (
482
+ <Badge className={cn("bg-transparent text-foreground hover:bg-transparent", badgeClassName)}>
483
+ {`+${hiddenCount} more`}
484
+ </Badge>
485
+ )}
486
+ <CommandPrimitive.Input
487
+ {...inputProps}
488
+ ref={inputRef}
489
+ value={inputValue}
490
+ disabled={disabled}
491
+ onValueChange={(value) => {
492
+ setInputValue(value);
493
+ inputProps?.onValueChange?.(value);
494
+ }}
495
+ onBlur={(event) => {
496
+ if (!onScrollbar) {
497
+ setOpen(false);
498
+ }
499
+ inputProps?.onBlur?.(event);
500
+ }}
501
+ onFocus={(event) => {
502
+ setOpen(true);
503
+ inputProps?.onFocus?.(event);
504
+ }}
505
+ placeholder={hidePlaceholderWhenSelected && selected.length !== 0 ? "" : placeholder}
506
+ className={cn(
507
+ "flex-1 self-baseline bg-transparent outline-none placeholder:text-muted-foreground text-foreground caret-foreground",
508
+ {
509
+ "w-full": hidePlaceholderWhenSelected,
510
+ "ml-1": selected.length !== 0,
511
+ },
512
+ inputProps?.className,
513
+ )}
514
+ />
515
+ </div>
516
+ <div className="flex items-center gap-1">
517
+ <button
518
+ type="button"
519
+ onClick={() => {
520
+ setSelected(selected.filter((s) => s.fixed));
521
+ onChange?.(selected.filter((s) => s.fixed));
522
+ }}
523
+ className={cn(
524
+ "size-5",
525
+ (hideClearAllButton ||
526
+ disabled ||
527
+ selected.length < 1 ||
528
+ selected.filter((s) => s.fixed).length === selected.length) &&
529
+ "hidden",
530
+ )}
531
+ >
532
+ <X />
533
+ </button>
534
+ <ChevronDownIcon className={cn("size-5 text-muted-foreground/50", selected.length >= 1 && "hidden")} />
535
+ </div>
536
+ </div>
537
+ <div className="relative">
538
+ {open && (
539
+ <CommandList
540
+ className="absolute top-1 z-10 w-full rounded-md border bg-background text-foreground shadow-md outline-none animate-in"
541
+ onMouseLeave={() => {
542
+ setOnScrollbar(false);
543
+ }}
544
+ onMouseEnter={() => {
545
+ setOnScrollbar(true);
546
+ }}
547
+ onMouseUp={() => {
548
+ inputRef?.current?.focus();
549
+ }}
550
+ >
551
+ {isLoading ? (
552
+ <>{loadingIndicator}</>
553
+ ) : (
554
+ <>
555
+ {EmptyItem()}
556
+ {CreatableItem()}
557
+ {!selectFirstItem && <CommandItem value="-" className="hidden" />}
558
+ {Object.entries(selectables).map(([key, dropdowns]) => (
559
+ <CommandGroup
560
+ key={key}
561
+ heading={key}
562
+ className="h-full overflow-auto [&_[cmdk-group-heading]]:border-b [&_[cmdk-group-heading]]:border-border/50 [&_[cmdk-group-heading]]:mb-1"
563
+ >
564
+ <>
565
+ {dropdowns.map((option) => {
566
+ return (
567
+ <CommandItem
568
+ key={option.value}
569
+ value={option.label}
570
+ disabled={option.disable}
571
+ onMouseDown={(e) => {
572
+ e.preventDefault();
573
+ e.stopPropagation();
574
+ }}
575
+ onSelect={() => {
576
+ if (selected.length >= maxSelected) {
577
+ onMaxSelected?.(selected.length);
578
+ return;
579
+ }
580
+ setInputValue("");
581
+ const newOptions = [...selected, option];
582
+ setSelected(newOptions);
583
+ onChange?.(newOptions);
584
+ }}
585
+ className={cn(
586
+ "cursor-pointer bg-transparent hover:bg-accent data-selected:bg-transparent data-selected:hover:bg-accent",
587
+ option.disable && "cursor-default text-muted-foreground",
588
+ )}
589
+ >
590
+ {renderOption ? renderOption(option) : option.label}
591
+ </CommandItem>
592
+ );
593
+ })}
594
+ </>
595
+ </CommandGroup>
596
+ ))}
597
+ </>
598
+ )}
599
+ </CommandList>
600
+ )}
601
+ </div>
602
+ </Command>
603
+ );
604
+ },
605
+ );
606
+
607
+ MultipleSelector.displayName = "MultipleSelector";
608
+ export { MultipleSelector };
@@ -50,3 +50,4 @@ export * from "./ui/tooltip";
50
50
  export * from "./custom/kanban";
51
51
  export * from "./custom/link";
52
52
  export * from "./custom/multi-select";
53
+ export * from "./custom/multiple-selector";