@mlw-packages/react-components 1.3.6 → 1.3.9
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/index.css +20 -0
- package/dist/index.d.mts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +67 -35
- package/dist/index.mjs +67 -36
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -498,6 +498,9 @@ body {
|
|
|
498
498
|
.col-span-3 {
|
|
499
499
|
grid-column: span 3 / span 3;
|
|
500
500
|
}
|
|
501
|
+
.m-0 {
|
|
502
|
+
margin: 0px;
|
|
503
|
+
}
|
|
501
504
|
.-mx-1 {
|
|
502
505
|
margin-left: -0.25rem;
|
|
503
506
|
margin-right: -0.25rem;
|
|
@@ -2278,6 +2281,11 @@ body {
|
|
|
2278
2281
|
--tw-scale-y: 1.05;
|
|
2279
2282
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2280
2283
|
}
|
|
2284
|
+
.hover\:scale-110:hover {
|
|
2285
|
+
--tw-scale-x: 1.1;
|
|
2286
|
+
--tw-scale-y: 1.1;
|
|
2287
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2288
|
+
}
|
|
2281
2289
|
.hover\:scale-125:hover {
|
|
2282
2290
|
--tw-scale-x: 1.25;
|
|
2283
2291
|
--tw-scale-y: 1.25;
|
|
@@ -2315,6 +2323,10 @@ body {
|
|
|
2315
2323
|
.hover\:text-accent-foreground:hover {
|
|
2316
2324
|
color: hsl(var(--accent-foreground));
|
|
2317
2325
|
}
|
|
2326
|
+
.hover\:text-red-500:hover {
|
|
2327
|
+
--tw-text-opacity: 1;
|
|
2328
|
+
color: rgb(239 68 68 / var(--tw-text-opacity, 1));
|
|
2329
|
+
}
|
|
2318
2330
|
.hover\:text-slate-50:hover {
|
|
2319
2331
|
--tw-text-opacity: 1;
|
|
2320
2332
|
color: rgb(248 250 252 / var(--tw-text-opacity, 1));
|
|
@@ -2669,6 +2681,14 @@ body {
|
|
|
2669
2681
|
.data-\[state\=open\]\:text-muted-foreground[data-state=open] {
|
|
2670
2682
|
color: hsl(var(--muted-foreground));
|
|
2671
2683
|
}
|
|
2684
|
+
.data-\[type\=error\]\:text-red-500[data-type=error] {
|
|
2685
|
+
--tw-text-opacity: 1;
|
|
2686
|
+
color: rgb(239 68 68 / var(--tw-text-opacity, 1));
|
|
2687
|
+
}
|
|
2688
|
+
.data-\[type\=success\]\:text-green-500[data-type=success] {
|
|
2689
|
+
--tw-text-opacity: 1;
|
|
2690
|
+
color: rgb(34 197 94 / var(--tw-text-opacity, 1));
|
|
2691
|
+
}
|
|
2672
2692
|
.data-\[disabled\=true\]\:opacity-50[data-disabled=true] {
|
|
2673
2693
|
opacity: 0.5;
|
|
2674
2694
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -18,6 +18,7 @@ import * as SelectPrimitive from '@radix-ui/react-select';
|
|
|
18
18
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
19
19
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
20
20
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
21
|
+
import * as sonner from 'sonner';
|
|
21
22
|
import { Toaster as Toaster$1 } from 'sonner';
|
|
22
23
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
23
24
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
@@ -375,6 +376,52 @@ declare const SlideBase: React$1.ForwardRefExoticComponent<SliderBaseProps & Rea
|
|
|
375
376
|
|
|
376
377
|
type ToasterProps = React.ComponentProps<typeof Toaster$1>;
|
|
377
378
|
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
379
|
+
declare const toast: ((message: React$1.ReactNode | (() => React.ReactNode), data?: sonner.ExternalToast) => string | number) & {
|
|
380
|
+
success: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
381
|
+
info: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
382
|
+
warning: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
383
|
+
error: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
384
|
+
custom: (jsx: (id: number | string) => React.ReactElement, data?: sonner.ExternalToast) => string | number;
|
|
385
|
+
message: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
386
|
+
promise: <ToastData>(promise: Promise<ToastData> | (() => Promise<ToastData>), data?: {
|
|
387
|
+
icon?: React$1.ReactNode;
|
|
388
|
+
className?: string | undefined;
|
|
389
|
+
id?: number | string | undefined;
|
|
390
|
+
style?: React.CSSProperties | undefined;
|
|
391
|
+
onDismiss?: ((toast: sonner.ToastT) => void) | undefined;
|
|
392
|
+
position?: ("top-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "bottom-center") | undefined;
|
|
393
|
+
duration?: number | undefined;
|
|
394
|
+
cancel?: React$1.ReactNode | sonner.Action;
|
|
395
|
+
invert?: boolean | undefined;
|
|
396
|
+
richColors?: boolean | undefined;
|
|
397
|
+
closeButton?: boolean | undefined;
|
|
398
|
+
dismissible?: boolean | undefined;
|
|
399
|
+
action?: React$1.ReactNode | sonner.Action;
|
|
400
|
+
onAutoClose?: ((toast: sonner.ToastT) => void) | undefined;
|
|
401
|
+
cancelButtonStyle?: React.CSSProperties | undefined;
|
|
402
|
+
actionButtonStyle?: React.CSSProperties | undefined;
|
|
403
|
+
unstyled?: boolean | undefined;
|
|
404
|
+
classNames?: sonner.ToastClassnames | undefined;
|
|
405
|
+
descriptionClassName?: string | undefined;
|
|
406
|
+
} & {
|
|
407
|
+
loading?: string | React.ReactNode;
|
|
408
|
+
success?: React$1.ReactNode | ((data: ToastData) => React.ReactNode | string | Promise<React.ReactNode | string>);
|
|
409
|
+
error?: React$1.ReactNode | ((data: any) => React.ReactNode | string | Promise<React.ReactNode | string>);
|
|
410
|
+
description?: React$1.ReactNode | ((data: any) => React.ReactNode | string | Promise<React.ReactNode | string>);
|
|
411
|
+
finally?: () => void | Promise<void>;
|
|
412
|
+
}) => (string & {
|
|
413
|
+
unwrap: () => Promise<ToastData>;
|
|
414
|
+
}) | (number & {
|
|
415
|
+
unwrap: () => Promise<ToastData>;
|
|
416
|
+
}) | {
|
|
417
|
+
unwrap: () => Promise<ToastData>;
|
|
418
|
+
};
|
|
419
|
+
dismiss: (id?: number | string) => string | number;
|
|
420
|
+
loading: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
421
|
+
} & {
|
|
422
|
+
getHistory: () => (sonner.ToastT | sonner.ToastToDismiss)[];
|
|
423
|
+
getToasts: () => (sonner.ToastT | sonner.ToastToDismiss)[];
|
|
424
|
+
};
|
|
378
425
|
|
|
379
426
|
declare const SwitchBase: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
380
427
|
|
|
@@ -542,4 +589,4 @@ declare const defaultStringConditions: AvailableFilterConditions[];
|
|
|
542
589
|
|
|
543
590
|
declare function buildFilterSummary<T extends Record<string, unknown>>(filter: Filter<T>, availableFilters: AvailableFilter<T>[]): string | null;
|
|
544
591
|
|
|
545
|
-
export { AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarFallbackBase, AvatarImageBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, type CalendarProps, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CheckboxBase, Combobox, type ComboboxProps, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, DateTimePicker, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, FormBase, FormControlBase, FormDescriptionBase, FormFieldBase, FormItemBase, FormLabelBase, FormMessageBase, InputBase, type InputBaseProps, LabelBase, type LabelBaseProps, ModeToggleBase, MultiCombobox, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, ScrollAreaBase, ScrollBarBase, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem$1 as SelectItem, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipTriggerBase, UseSideBarBase, applyfilter, buildFilterSummary, buttonVariantsBase, defaultStringConditions, useFormFieldBase, useIsMobile, useTheme };
|
|
592
|
+
export { AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarFallbackBase, AvatarImageBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, type CalendarProps, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CheckboxBase, Combobox, type ComboboxProps, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, DateTimePicker, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, FormBase, FormControlBase, FormDescriptionBase, FormFieldBase, FormItemBase, FormLabelBase, FormMessageBase, InputBase, type InputBaseProps, LabelBase, type LabelBaseProps, ModeToggleBase, MultiCombobox, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, ScrollAreaBase, ScrollBarBase, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem$1 as SelectItem, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipTriggerBase, UseSideBarBase, applyfilter, buildFilterSummary, buttonVariantsBase, defaultStringConditions, toast, useFormFieldBase, useIsMobile, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import * as SelectPrimitive from '@radix-ui/react-select';
|
|
|
18
18
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
19
19
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
20
20
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
21
|
+
import * as sonner from 'sonner';
|
|
21
22
|
import { Toaster as Toaster$1 } from 'sonner';
|
|
22
23
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
23
24
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
@@ -375,6 +376,52 @@ declare const SlideBase: React$1.ForwardRefExoticComponent<SliderBaseProps & Rea
|
|
|
375
376
|
|
|
376
377
|
type ToasterProps = React.ComponentProps<typeof Toaster$1>;
|
|
377
378
|
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
379
|
+
declare const toast: ((message: React$1.ReactNode | (() => React.ReactNode), data?: sonner.ExternalToast) => string | number) & {
|
|
380
|
+
success: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
381
|
+
info: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
382
|
+
warning: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
383
|
+
error: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
384
|
+
custom: (jsx: (id: number | string) => React.ReactElement, data?: sonner.ExternalToast) => string | number;
|
|
385
|
+
message: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
386
|
+
promise: <ToastData>(promise: Promise<ToastData> | (() => Promise<ToastData>), data?: {
|
|
387
|
+
icon?: React$1.ReactNode;
|
|
388
|
+
className?: string | undefined;
|
|
389
|
+
id?: number | string | undefined;
|
|
390
|
+
style?: React.CSSProperties | undefined;
|
|
391
|
+
onDismiss?: ((toast: sonner.ToastT) => void) | undefined;
|
|
392
|
+
position?: ("top-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "bottom-center") | undefined;
|
|
393
|
+
duration?: number | undefined;
|
|
394
|
+
cancel?: React$1.ReactNode | sonner.Action;
|
|
395
|
+
invert?: boolean | undefined;
|
|
396
|
+
richColors?: boolean | undefined;
|
|
397
|
+
closeButton?: boolean | undefined;
|
|
398
|
+
dismissible?: boolean | undefined;
|
|
399
|
+
action?: React$1.ReactNode | sonner.Action;
|
|
400
|
+
onAutoClose?: ((toast: sonner.ToastT) => void) | undefined;
|
|
401
|
+
cancelButtonStyle?: React.CSSProperties | undefined;
|
|
402
|
+
actionButtonStyle?: React.CSSProperties | undefined;
|
|
403
|
+
unstyled?: boolean | undefined;
|
|
404
|
+
classNames?: sonner.ToastClassnames | undefined;
|
|
405
|
+
descriptionClassName?: string | undefined;
|
|
406
|
+
} & {
|
|
407
|
+
loading?: string | React.ReactNode;
|
|
408
|
+
success?: React$1.ReactNode | ((data: ToastData) => React.ReactNode | string | Promise<React.ReactNode | string>);
|
|
409
|
+
error?: React$1.ReactNode | ((data: any) => React.ReactNode | string | Promise<React.ReactNode | string>);
|
|
410
|
+
description?: React$1.ReactNode | ((data: any) => React.ReactNode | string | Promise<React.ReactNode | string>);
|
|
411
|
+
finally?: () => void | Promise<void>;
|
|
412
|
+
}) => (string & {
|
|
413
|
+
unwrap: () => Promise<ToastData>;
|
|
414
|
+
}) | (number & {
|
|
415
|
+
unwrap: () => Promise<ToastData>;
|
|
416
|
+
}) | {
|
|
417
|
+
unwrap: () => Promise<ToastData>;
|
|
418
|
+
};
|
|
419
|
+
dismiss: (id?: number | string) => string | number;
|
|
420
|
+
loading: (message: (React$1.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: sonner.ExternalToast) => string | number;
|
|
421
|
+
} & {
|
|
422
|
+
getHistory: () => (sonner.ToastT | sonner.ToastToDismiss)[];
|
|
423
|
+
getToasts: () => (sonner.ToastT | sonner.ToastToDismiss)[];
|
|
424
|
+
};
|
|
378
425
|
|
|
379
426
|
declare const SwitchBase: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
380
427
|
|
|
@@ -542,4 +589,4 @@ declare const defaultStringConditions: AvailableFilterConditions[];
|
|
|
542
589
|
|
|
543
590
|
declare function buildFilterSummary<T extends Record<string, unknown>>(filter: Filter<T>, availableFilters: AvailableFilter<T>[]): string | null;
|
|
544
591
|
|
|
545
|
-
export { AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarFallbackBase, AvatarImageBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, type CalendarProps, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CheckboxBase, Combobox, type ComboboxProps, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, DateTimePicker, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, FormBase, FormControlBase, FormDescriptionBase, FormFieldBase, FormItemBase, FormLabelBase, FormMessageBase, InputBase, type InputBaseProps, LabelBase, type LabelBaseProps, ModeToggleBase, MultiCombobox, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, ScrollAreaBase, ScrollBarBase, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem$1 as SelectItem, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipTriggerBase, UseSideBarBase, applyfilter, buildFilterSummary, buttonVariantsBase, defaultStringConditions, useFormFieldBase, useIsMobile, useTheme };
|
|
592
|
+
export { AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarFallbackBase, AvatarImageBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, type CalendarProps, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CheckboxBase, Combobox, type ComboboxProps, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, DateTimePicker, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, FormBase, FormControlBase, FormDescriptionBase, FormFieldBase, FormItemBase, FormLabelBase, FormMessageBase, InputBase, type InputBaseProps, LabelBase, type LabelBaseProps, ModeToggleBase, MultiCombobox, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, ScrollAreaBase, ScrollBarBase, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem$1 as SelectItem, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipTriggerBase, UseSideBarBase, applyfilter, buildFilterSummary, buttonVariantsBase, defaultStringConditions, toast, useFormFieldBase, useIsMobile, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -186,6 +186,7 @@ __export(index_exports, {
|
|
|
186
186
|
buildFilterSummary: () => buildFilterSummary,
|
|
187
187
|
buttonVariantsBase: () => buttonVariantsBase,
|
|
188
188
|
defaultStringConditions: () => defaultStringConditions,
|
|
189
|
+
toast: () => toast,
|
|
189
190
|
useFormFieldBase: () => useFormFieldBase,
|
|
190
191
|
useIsMobile: () => useIsMobile,
|
|
191
192
|
useTheme: () => useTheme
|
|
@@ -1047,6 +1048,7 @@ var import_phosphor_react6 = require("phosphor-react");
|
|
|
1047
1048
|
var React10 = __toESM(require("react"));
|
|
1048
1049
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
1049
1050
|
var import_phosphor_react5 = require("phosphor-react");
|
|
1051
|
+
var import_framer_motion = require("framer-motion");
|
|
1050
1052
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1051
1053
|
var DropDownMenuBase = DropdownMenuPrimitive.Root;
|
|
1052
1054
|
var DropDownMenuTriggerBase = DropdownMenuPrimitive.Trigger;
|
|
@@ -1082,18 +1084,28 @@ var DropDownMenuSubContentBase = React10.forwardRef(({ className, ...props }, re
|
|
|
1082
1084
|
...props
|
|
1083
1085
|
}
|
|
1084
1086
|
));
|
|
1085
|
-
DropDownMenuSubContentBase.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1086
1087
|
var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1087
1088
|
DropdownMenuPrimitive.Content,
|
|
1088
1089
|
{
|
|
1089
1090
|
sideOffset,
|
|
1090
|
-
|
|
1091
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1092
|
-
className
|
|
1093
|
-
),
|
|
1091
|
+
forceMount: true,
|
|
1094
1092
|
ref,
|
|
1095
1093
|
...props,
|
|
1096
|
-
|
|
1094
|
+
className: cn("p-0", className),
|
|
1095
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_framer_motion.AnimatePresence, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1096
|
+
import_framer_motion.motion.div,
|
|
1097
|
+
{
|
|
1098
|
+
initial: { opacity: 0, scale: 0.95, y: 5 },
|
|
1099
|
+
animate: { opacity: 1, scale: 1, y: 0 },
|
|
1100
|
+
exit: { opacity: 0, scale: 0.95, y: 5 },
|
|
1101
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
1102
|
+
className: cn(
|
|
1103
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1104
|
+
className
|
|
1105
|
+
),
|
|
1106
|
+
children: props.children
|
|
1107
|
+
}
|
|
1108
|
+
) })
|
|
1097
1109
|
}
|
|
1098
1110
|
) }));
|
|
1099
1111
|
DropDownMenuContentBase.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
@@ -1292,7 +1304,7 @@ var import_react5 = require("react");
|
|
|
1292
1304
|
var React11 = __toESM(require("react"));
|
|
1293
1305
|
var import_cmdk = require("cmdk");
|
|
1294
1306
|
var import_phosphor_react7 = require("phosphor-react");
|
|
1295
|
-
var
|
|
1307
|
+
var import_framer_motion2 = require("framer-motion");
|
|
1296
1308
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1297
1309
|
var CommandBase = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1298
1310
|
import_cmdk.Command,
|
|
@@ -1312,8 +1324,8 @@ var dialogVariants = {
|
|
|
1312
1324
|
exit: { opacity: 0, scale: 0.95, y: -20 }
|
|
1313
1325
|
};
|
|
1314
1326
|
var CommandDialogBase = ({ children, open, ...props }) => {
|
|
1315
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DialogBase, { open, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1316
|
-
|
|
1327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DialogBase, { open, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_framer_motion2.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DialogContentBase, { asChild: true, forceMount: true, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1328
|
+
import_framer_motion2.motion.div,
|
|
1317
1329
|
{
|
|
1318
1330
|
initial: "hidden",
|
|
1319
1331
|
animate: "visible",
|
|
@@ -1419,19 +1431,29 @@ function ComboboxBase({
|
|
|
1419
1431
|
}) {
|
|
1420
1432
|
const [open, setOpen] = (0, import_react4.useState)(false);
|
|
1421
1433
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "col-span-1 w-full ", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(PopoverBase, { open, onOpenChange: setOpen, modal: true, children: [
|
|
1422
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1423
|
-
|
|
1434
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1435
|
+
PopoverTriggerBase,
|
|
1424
1436
|
{
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1437
|
+
asChild: true,
|
|
1438
|
+
className: "flex w-full justify-between dark:bg-[hsl(231,15%,19%)]",
|
|
1439
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1440
|
+
ButtonBase,
|
|
1441
|
+
{
|
|
1442
|
+
variant: "outline",
|
|
1443
|
+
role: "combobox",
|
|
1444
|
+
"aria-expanded": open,
|
|
1445
|
+
className: cn(
|
|
1446
|
+
"flex-wrap items-start gap-2 justify-between h-full",
|
|
1447
|
+
errorMessage && "border-red-500"
|
|
1448
|
+
),
|
|
1449
|
+
children: [
|
|
1450
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex flex-wrap gap-2 flex-1", children: renderSelected }),
|
|
1451
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_phosphor_react8.CaretDown, { size: 16, className: "mt-1" })
|
|
1452
|
+
]
|
|
1453
|
+
}
|
|
1454
|
+
)
|
|
1433
1455
|
}
|
|
1434
|
-
)
|
|
1456
|
+
),
|
|
1435
1457
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverContentBase, { className: "max-h-[--radix-popover-content-available-height] w-[--radix-popover-trigger-width] p-0 border-none", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CommandBase, { className: "dark:text-white", children: [
|
|
1436
1458
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1437
1459
|
CommandInputBase,
|
|
@@ -1549,14 +1571,22 @@ function MultiCombobox({
|
|
|
1549
1571
|
children: [
|
|
1550
1572
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "truncate whitespace-break-spaces text-xs", children: item.label }),
|
|
1551
1573
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1552
|
-
|
|
1574
|
+
"span",
|
|
1553
1575
|
{
|
|
1554
|
-
|
|
1576
|
+
role: "button",
|
|
1577
|
+
tabIndex: 0,
|
|
1555
1578
|
onClick: (e) => {
|
|
1556
1579
|
e.stopPropagation();
|
|
1557
1580
|
handleSelection(item.value);
|
|
1558
1581
|
},
|
|
1559
|
-
|
|
1582
|
+
onKeyDown: (e) => {
|
|
1583
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
1584
|
+
e.preventDefault();
|
|
1585
|
+
handleSelection(item.value);
|
|
1586
|
+
}
|
|
1587
|
+
},
|
|
1588
|
+
className: "cursor-pointer p-0 m-0 text-xs flex items-center justify-center hover:text-red-500 hover:scale-110 transition-all",
|
|
1589
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.X, { size: 14 })
|
|
1560
1590
|
}
|
|
1561
1591
|
)
|
|
1562
1592
|
]
|
|
@@ -1584,7 +1614,7 @@ function MultiCombobox({
|
|
|
1584
1614
|
var React13 = __toESM(require("react"));
|
|
1585
1615
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
1586
1616
|
var import_phosphor_react10 = require("phosphor-react");
|
|
1587
|
-
var
|
|
1617
|
+
var import_framer_motion3 = require("framer-motion");
|
|
1588
1618
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1589
1619
|
var SelectBase = SelectPrimitive.Root;
|
|
1590
1620
|
var SelectGroupBase = SelectPrimitive.Group;
|
|
@@ -1601,7 +1631,7 @@ var SelectTriggerBase = React13.forwardRef(({ className, children, open, ...prop
|
|
|
1601
1631
|
children: [
|
|
1602
1632
|
children,
|
|
1603
1633
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1604
|
-
|
|
1634
|
+
import_framer_motion3.motion.span,
|
|
1605
1635
|
{
|
|
1606
1636
|
animate: { rotate: open ? 180 : 0 },
|
|
1607
1637
|
transition: { duration: 0.3 },
|
|
@@ -1639,7 +1669,7 @@ var SelectScrollDownButtonBase = React13.forwardRef(({ className, ...props }, re
|
|
|
1639
1669
|
}
|
|
1640
1670
|
));
|
|
1641
1671
|
SelectScrollDownButtonBase.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1642
|
-
var SelectContentBase = React13.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1672
|
+
var SelectContentBase = React13.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_framer_motion3.AnimatePresence, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1643
1673
|
SelectPrimitive.Content,
|
|
1644
1674
|
{
|
|
1645
1675
|
ref,
|
|
@@ -1651,7 +1681,7 @@ var SelectContentBase = React13.forwardRef(({ className, children, position = "p
|
|
|
1651
1681
|
...props,
|
|
1652
1682
|
asChild: true,
|
|
1653
1683
|
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1654
|
-
|
|
1684
|
+
import_framer_motion3.motion.div,
|
|
1655
1685
|
{
|
|
1656
1686
|
initial: { opacity: 0, scale: 0.95 },
|
|
1657
1687
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -1889,7 +1919,7 @@ CardFooterBase.displayName = "CardFooter";
|
|
|
1889
1919
|
var React16 = __toESM(require("react"));
|
|
1890
1920
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
1891
1921
|
var import_phosphor_react12 = require("phosphor-react");
|
|
1892
|
-
var
|
|
1922
|
+
var import_framer_motion4 = require("framer-motion");
|
|
1893
1923
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1894
1924
|
var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1895
1925
|
CheckboxPrimitive.Root,
|
|
@@ -1901,7 +1931,7 @@ var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1901
1931
|
),
|
|
1902
1932
|
...props,
|
|
1903
1933
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CheckboxPrimitive.Indicator, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1904
|
-
|
|
1934
|
+
import_framer_motion4.motion.div,
|
|
1905
1935
|
{
|
|
1906
1936
|
initial: { scale: 0, opacity: 0, rotate: -90 },
|
|
1907
1937
|
animate: { scale: 1, opacity: 1, rotate: 0 },
|
|
@@ -2162,7 +2192,7 @@ var ProgressCirclesBase = ({
|
|
|
2162
2192
|
// src/components/ui/SeparatorBase.tsx
|
|
2163
2193
|
var React19 = __toESM(require("react"));
|
|
2164
2194
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
|
|
2165
|
-
var
|
|
2195
|
+
var import_framer_motion5 = require("framer-motion");
|
|
2166
2196
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2167
2197
|
var SeparatorBase = React19.forwardRef(
|
|
2168
2198
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => {
|
|
@@ -2176,7 +2206,7 @@ var SeparatorBase = React19.forwardRef(
|
|
|
2176
2206
|
asChild: true,
|
|
2177
2207
|
...props,
|
|
2178
2208
|
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2179
|
-
|
|
2209
|
+
import_framer_motion5.motion.div,
|
|
2180
2210
|
{
|
|
2181
2211
|
className: cn(
|
|
2182
2212
|
"shrink-0 bg-border",
|
|
@@ -2993,19 +3023,19 @@ var SlideBase = React23.forwardRef(
|
|
|
2993
3023
|
SlideBase.displayName = "SlideBase";
|
|
2994
3024
|
|
|
2995
3025
|
// src/components/ui/SonnerBase.tsx
|
|
2996
|
-
var import_next_themes = require("next-themes");
|
|
2997
3026
|
var import_sonner = require("sonner");
|
|
2998
3027
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2999
3028
|
var Toaster = ({ ...props }) => {
|
|
3000
|
-
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
3001
3029
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3002
3030
|
import_sonner.Toaster,
|
|
3003
3031
|
{
|
|
3004
|
-
theme,
|
|
3005
3032
|
className: "toaster group",
|
|
3033
|
+
position: "top-center",
|
|
3006
3034
|
toastOptions: {
|
|
3007
3035
|
classNames: {
|
|
3008
|
-
toast:
|
|
3036
|
+
toast: `group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg
|
|
3037
|
+
data-[type=success]:text-green-500
|
|
3038
|
+
data-[type=error]:text-red-500`,
|
|
3009
3039
|
description: "group-[.toast]:text-muted-foreground",
|
|
3010
3040
|
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
3011
3041
|
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
@@ -3015,6 +3045,7 @@ var Toaster = ({ ...props }) => {
|
|
|
3015
3045
|
}
|
|
3016
3046
|
);
|
|
3017
3047
|
};
|
|
3048
|
+
var toast = import_sonner.toast;
|
|
3018
3049
|
|
|
3019
3050
|
// src/components/ui/SwitchBase.tsx
|
|
3020
3051
|
var React24 = __toESM(require("react"));
|
|
@@ -3472,6 +3503,7 @@ function buildFilterSummary(filter, availableFilters) {
|
|
|
3472
3503
|
buildFilterSummary,
|
|
3473
3504
|
buttonVariantsBase,
|
|
3474
3505
|
defaultStringConditions,
|
|
3506
|
+
toast,
|
|
3475
3507
|
useFormFieldBase,
|
|
3476
3508
|
useIsMobile,
|
|
3477
3509
|
useTheme
|
package/dist/index.mjs
CHANGED
|
@@ -855,6 +855,7 @@ import { Check as Check2, Moon, Sun } from "phosphor-react";
|
|
|
855
855
|
import * as React10 from "react";
|
|
856
856
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
857
857
|
import { Check, CaretRight as CaretRight2, Circle } from "phosphor-react";
|
|
858
|
+
import { motion, AnimatePresence } from "framer-motion";
|
|
858
859
|
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
859
860
|
var DropDownMenuBase = DropdownMenuPrimitive.Root;
|
|
860
861
|
var DropDownMenuTriggerBase = DropdownMenuPrimitive.Trigger;
|
|
@@ -890,18 +891,28 @@ var DropDownMenuSubContentBase = React10.forwardRef(({ className, ...props }, re
|
|
|
890
891
|
...props
|
|
891
892
|
}
|
|
892
893
|
));
|
|
893
|
-
DropDownMenuSubContentBase.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
894
894
|
var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx11(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx11(
|
|
895
895
|
DropdownMenuPrimitive.Content,
|
|
896
896
|
{
|
|
897
897
|
sideOffset,
|
|
898
|
-
|
|
899
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
900
|
-
className
|
|
901
|
-
),
|
|
898
|
+
forceMount: true,
|
|
902
899
|
ref,
|
|
903
900
|
...props,
|
|
904
|
-
|
|
901
|
+
className: cn("p-0", className),
|
|
902
|
+
children: /* @__PURE__ */ jsx11(AnimatePresence, { children: /* @__PURE__ */ jsx11(
|
|
903
|
+
motion.div,
|
|
904
|
+
{
|
|
905
|
+
initial: { opacity: 0, scale: 0.95, y: 5 },
|
|
906
|
+
animate: { opacity: 1, scale: 1, y: 0 },
|
|
907
|
+
exit: { opacity: 0, scale: 0.95, y: 5 },
|
|
908
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
909
|
+
className: cn(
|
|
910
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
911
|
+
className
|
|
912
|
+
),
|
|
913
|
+
children: props.children
|
|
914
|
+
}
|
|
915
|
+
) })
|
|
905
916
|
}
|
|
906
917
|
) }));
|
|
907
918
|
DropDownMenuContentBase.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
@@ -1100,7 +1111,7 @@ import { useCallback, useMemo } from "react";
|
|
|
1100
1111
|
import * as React11 from "react";
|
|
1101
1112
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1102
1113
|
import { MagnifyingGlass } from "phosphor-react";
|
|
1103
|
-
import { motion, AnimatePresence } from "framer-motion";
|
|
1114
|
+
import { motion as motion2, AnimatePresence as AnimatePresence2 } from "framer-motion";
|
|
1104
1115
|
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1105
1116
|
var CommandBase = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
1106
1117
|
CommandPrimitive,
|
|
@@ -1120,8 +1131,8 @@ var dialogVariants = {
|
|
|
1120
1131
|
exit: { opacity: 0, scale: 0.95, y: -20 }
|
|
1121
1132
|
};
|
|
1122
1133
|
var CommandDialogBase = ({ children, open, ...props }) => {
|
|
1123
|
-
return /* @__PURE__ */ jsx14(DialogBase, { open, ...props, children: /* @__PURE__ */ jsx14(
|
|
1124
|
-
|
|
1134
|
+
return /* @__PURE__ */ jsx14(DialogBase, { open, ...props, children: /* @__PURE__ */ jsx14(AnimatePresence2, { children: open && /* @__PURE__ */ jsx14(DialogContentBase, { asChild: true, forceMount: true, children: /* @__PURE__ */ jsx14(
|
|
1135
|
+
motion2.div,
|
|
1125
1136
|
{
|
|
1126
1137
|
initial: "hidden",
|
|
1127
1138
|
animate: "visible",
|
|
@@ -1227,19 +1238,29 @@ function ComboboxBase({
|
|
|
1227
1238
|
}) {
|
|
1228
1239
|
const [open, setOpen] = useState4(false);
|
|
1229
1240
|
return /* @__PURE__ */ jsx16("div", { className: "col-span-1 w-full ", children: /* @__PURE__ */ jsxs9(PopoverBase, { open, onOpenChange: setOpen, modal: true, children: [
|
|
1230
|
-
/* @__PURE__ */ jsx16(
|
|
1231
|
-
|
|
1241
|
+
/* @__PURE__ */ jsx16(
|
|
1242
|
+
PopoverTriggerBase,
|
|
1232
1243
|
{
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1244
|
+
asChild: true,
|
|
1245
|
+
className: "flex w-full justify-between dark:bg-[hsl(231,15%,19%)]",
|
|
1246
|
+
children: /* @__PURE__ */ jsxs9(
|
|
1247
|
+
ButtonBase,
|
|
1248
|
+
{
|
|
1249
|
+
variant: "outline",
|
|
1250
|
+
role: "combobox",
|
|
1251
|
+
"aria-expanded": open,
|
|
1252
|
+
className: cn(
|
|
1253
|
+
"flex-wrap items-start gap-2 justify-between h-full",
|
|
1254
|
+
errorMessage && "border-red-500"
|
|
1255
|
+
),
|
|
1256
|
+
children: [
|
|
1257
|
+
/* @__PURE__ */ jsx16("div", { className: "flex flex-wrap gap-2 flex-1", children: renderSelected }),
|
|
1258
|
+
/* @__PURE__ */ jsx16(CaretDown, { size: 16, className: "mt-1" })
|
|
1259
|
+
]
|
|
1260
|
+
}
|
|
1261
|
+
)
|
|
1241
1262
|
}
|
|
1242
|
-
)
|
|
1263
|
+
),
|
|
1243
1264
|
/* @__PURE__ */ jsx16(PopoverContentBase, { className: "max-h-[--radix-popover-content-available-height] w-[--radix-popover-trigger-width] p-0 border-none", children: /* @__PURE__ */ jsxs9(CommandBase, { className: "dark:text-white", children: [
|
|
1244
1265
|
/* @__PURE__ */ jsx16(
|
|
1245
1266
|
CommandInputBase,
|
|
@@ -1357,14 +1378,22 @@ function MultiCombobox({
|
|
|
1357
1378
|
children: [
|
|
1358
1379
|
/* @__PURE__ */ jsx18("span", { className: "truncate whitespace-break-spaces text-xs", children: item.label }),
|
|
1359
1380
|
/* @__PURE__ */ jsx18(
|
|
1360
|
-
|
|
1381
|
+
"span",
|
|
1361
1382
|
{
|
|
1362
|
-
|
|
1383
|
+
role: "button",
|
|
1384
|
+
tabIndex: 0,
|
|
1363
1385
|
onClick: (e) => {
|
|
1364
1386
|
e.stopPropagation();
|
|
1365
1387
|
handleSelection(item.value);
|
|
1366
1388
|
},
|
|
1367
|
-
|
|
1389
|
+
onKeyDown: (e) => {
|
|
1390
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
1391
|
+
e.preventDefault();
|
|
1392
|
+
handleSelection(item.value);
|
|
1393
|
+
}
|
|
1394
|
+
},
|
|
1395
|
+
className: "cursor-pointer p-0 m-0 text-xs flex items-center justify-center hover:text-red-500 hover:scale-110 transition-all",
|
|
1396
|
+
children: /* @__PURE__ */ jsx18(X2, { size: 14 })
|
|
1368
1397
|
}
|
|
1369
1398
|
)
|
|
1370
1399
|
]
|
|
@@ -1392,7 +1421,7 @@ function MultiCombobox({
|
|
|
1392
1421
|
import * as React13 from "react";
|
|
1393
1422
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1394
1423
|
import { Check as Check4, CaretDown as CaretDown2, CaretUp } from "phosphor-react";
|
|
1395
|
-
import { motion as
|
|
1424
|
+
import { motion as motion3, AnimatePresence as AnimatePresence3 } from "framer-motion";
|
|
1396
1425
|
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1397
1426
|
var SelectBase = SelectPrimitive.Root;
|
|
1398
1427
|
var SelectGroupBase = SelectPrimitive.Group;
|
|
@@ -1409,7 +1438,7 @@ var SelectTriggerBase = React13.forwardRef(({ className, children, open, ...prop
|
|
|
1409
1438
|
children: [
|
|
1410
1439
|
children,
|
|
1411
1440
|
/* @__PURE__ */ jsx19(
|
|
1412
|
-
|
|
1441
|
+
motion3.span,
|
|
1413
1442
|
{
|
|
1414
1443
|
animate: { rotate: open ? 180 : 0 },
|
|
1415
1444
|
transition: { duration: 0.3 },
|
|
@@ -1447,7 +1476,7 @@ var SelectScrollDownButtonBase = React13.forwardRef(({ className, ...props }, re
|
|
|
1447
1476
|
}
|
|
1448
1477
|
));
|
|
1449
1478
|
SelectScrollDownButtonBase.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1450
|
-
var SelectContentBase = React13.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx19(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx19(
|
|
1479
|
+
var SelectContentBase = React13.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx19(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx19(AnimatePresence3, { children: /* @__PURE__ */ jsx19(
|
|
1451
1480
|
SelectPrimitive.Content,
|
|
1452
1481
|
{
|
|
1453
1482
|
ref,
|
|
@@ -1459,7 +1488,7 @@ var SelectContentBase = React13.forwardRef(({ className, children, position = "p
|
|
|
1459
1488
|
...props,
|
|
1460
1489
|
asChild: true,
|
|
1461
1490
|
children: /* @__PURE__ */ jsx19(
|
|
1462
|
-
|
|
1491
|
+
motion3.div,
|
|
1463
1492
|
{
|
|
1464
1493
|
initial: { opacity: 0, scale: 0.95 },
|
|
1465
1494
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -1697,7 +1726,7 @@ CardFooterBase.displayName = "CardFooter";
|
|
|
1697
1726
|
import * as React16 from "react";
|
|
1698
1727
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1699
1728
|
import { Check as Check5 } from "phosphor-react";
|
|
1700
|
-
import { motion as
|
|
1729
|
+
import { motion as motion4 } from "framer-motion";
|
|
1701
1730
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1702
1731
|
var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1703
1732
|
CheckboxPrimitive.Root,
|
|
@@ -1709,7 +1738,7 @@ var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1709
1738
|
),
|
|
1710
1739
|
...props,
|
|
1711
1740
|
children: /* @__PURE__ */ jsx24(CheckboxPrimitive.Indicator, { asChild: true, children: /* @__PURE__ */ jsx24(
|
|
1712
|
-
|
|
1741
|
+
motion4.div,
|
|
1713
1742
|
{
|
|
1714
1743
|
initial: { scale: 0, opacity: 0, rotate: -90 },
|
|
1715
1744
|
animate: { scale: 1, opacity: 1, rotate: 0 },
|
|
@@ -1974,7 +2003,7 @@ var ProgressCirclesBase = ({
|
|
|
1974
2003
|
// src/components/ui/SeparatorBase.tsx
|
|
1975
2004
|
import * as React19 from "react";
|
|
1976
2005
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
1977
|
-
import { motion as
|
|
2006
|
+
import { motion as motion5 } from "framer-motion";
|
|
1978
2007
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1979
2008
|
var SeparatorBase = React19.forwardRef(
|
|
1980
2009
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => {
|
|
@@ -1988,7 +2017,7 @@ var SeparatorBase = React19.forwardRef(
|
|
|
1988
2017
|
asChild: true,
|
|
1989
2018
|
...props,
|
|
1990
2019
|
children: /* @__PURE__ */ jsx27(
|
|
1991
|
-
|
|
2020
|
+
motion5.div,
|
|
1992
2021
|
{
|
|
1993
2022
|
className: cn(
|
|
1994
2023
|
"shrink-0 bg-border",
|
|
@@ -2805,19 +2834,19 @@ var SlideBase = React23.forwardRef(
|
|
|
2805
2834
|
SlideBase.displayName = "SlideBase";
|
|
2806
2835
|
|
|
2807
2836
|
// src/components/ui/SonnerBase.tsx
|
|
2808
|
-
import {
|
|
2809
|
-
import { Toaster as Sonner } from "sonner";
|
|
2837
|
+
import { Toaster as Sonner, toast as sonnertoast } from "sonner";
|
|
2810
2838
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2811
2839
|
var Toaster = ({ ...props }) => {
|
|
2812
|
-
const { theme = "system" } = useTheme2();
|
|
2813
2840
|
return /* @__PURE__ */ jsx33(
|
|
2814
2841
|
Sonner,
|
|
2815
2842
|
{
|
|
2816
|
-
theme,
|
|
2817
2843
|
className: "toaster group",
|
|
2844
|
+
position: "top-center",
|
|
2818
2845
|
toastOptions: {
|
|
2819
2846
|
classNames: {
|
|
2820
|
-
toast:
|
|
2847
|
+
toast: `group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg
|
|
2848
|
+
data-[type=success]:text-green-500
|
|
2849
|
+
data-[type=error]:text-red-500`,
|
|
2821
2850
|
description: "group-[.toast]:text-muted-foreground",
|
|
2822
2851
|
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
2823
2852
|
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
@@ -2827,6 +2856,7 @@ var Toaster = ({ ...props }) => {
|
|
|
2827
2856
|
}
|
|
2828
2857
|
);
|
|
2829
2858
|
};
|
|
2859
|
+
var toast = sonnertoast;
|
|
2830
2860
|
|
|
2831
2861
|
// src/components/ui/SwitchBase.tsx
|
|
2832
2862
|
import * as React24 from "react";
|
|
@@ -3283,6 +3313,7 @@ export {
|
|
|
3283
3313
|
buildFilterSummary,
|
|
3284
3314
|
buttonVariantsBase,
|
|
3285
3315
|
defaultStringConditions,
|
|
3316
|
+
toast,
|
|
3286
3317
|
useFormFieldBase,
|
|
3287
3318
|
useIsMobile,
|
|
3288
3319
|
useTheme
|