@mlw-packages/react-components 1.3.5 → 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 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
@@ -1083,16 +1084,15 @@ var DropDownMenuSubContentBase = React10.forwardRef(({ className, ...props }, re
1083
1084
  ...props
1084
1085
  }
1085
1086
  ));
1086
- DropDownMenuSubContentBase.displayName = DropdownMenuPrimitive.SubContent.displayName;
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)(import_framer_motion.AnimatePresence, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
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)(
1088
1088
  DropdownMenuPrimitive.Content,
1089
1089
  {
1090
- asChild: true,
1091
1090
  sideOffset,
1092
1091
  forceMount: true,
1093
1092
  ref,
1094
1093
  ...props,
1095
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
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
1096
  import_framer_motion.motion.div,
1097
1097
  {
1098
1098
  initial: { opacity: 0, scale: 0.95, y: 5 },
@@ -1105,9 +1105,9 @@ var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, .
1105
1105
  ),
1106
1106
  children: props.children
1107
1107
  }
1108
- )
1108
+ ) })
1109
1109
  }
1110
- ) }) }));
1110
+ ) }));
1111
1111
  DropDownMenuContentBase.displayName = DropdownMenuPrimitive.Content.displayName;
1112
1112
  var DropDownMenuItemBase = React10.forwardRef(({ className, inset, leftIcon, rightIcon, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1113
1113
  DropdownMenuPrimitive.Item,
@@ -1431,19 +1431,29 @@ function ComboboxBase({
1431
1431
  }) {
1432
1432
  const [open, setOpen] = (0, import_react4.useState)(false);
1433
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: [
1434
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverTriggerBase, { asChild: true, className: "flex w-full justify-between dark:bg-[hsl(231,15%,19%)]", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1435
- ButtonBase,
1434
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1435
+ PopoverTriggerBase,
1436
1436
  {
1437
- variant: "outline",
1438
- role: "combobox",
1439
- "aria-expanded": open,
1440
- children: [
1441
- renderSelected,
1442
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_phosphor_react8.CaretDown, { size: 16 }) }),
1443
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-red-500", children: errorMessage })
1444
- ]
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
+ )
1445
1455
  }
1446
- ) }),
1456
+ ),
1447
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: [
1448
1458
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1449
1459
  CommandInputBase,
@@ -1561,14 +1571,22 @@ function MultiCombobox({
1561
1571
  children: [
1562
1572
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "truncate whitespace-break-spaces text-xs", children: item.label }),
1563
1573
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1564
- import_phosphor_react9.X,
1574
+ "span",
1565
1575
  {
1566
- size: 14,
1576
+ role: "button",
1577
+ tabIndex: 0,
1567
1578
  onClick: (e) => {
1568
1579
  e.stopPropagation();
1569
1580
  handleSelection(item.value);
1570
1581
  },
1571
- className: "cursor-pointer"
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 })
1572
1590
  }
1573
1591
  )
1574
1592
  ]
@@ -3005,19 +3023,19 @@ var SlideBase = React23.forwardRef(
3005
3023
  SlideBase.displayName = "SlideBase";
3006
3024
 
3007
3025
  // src/components/ui/SonnerBase.tsx
3008
- var import_next_themes = require("next-themes");
3009
3026
  var import_sonner = require("sonner");
3010
3027
  var import_jsx_runtime33 = require("react/jsx-runtime");
3011
3028
  var Toaster = ({ ...props }) => {
3012
- const { theme = "system" } = (0, import_next_themes.useTheme)();
3013
3029
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3014
3030
  import_sonner.Toaster,
3015
3031
  {
3016
- theme,
3017
3032
  className: "toaster group",
3033
+ position: "top-center",
3018
3034
  toastOptions: {
3019
3035
  classNames: {
3020
- toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
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`,
3021
3039
  description: "group-[.toast]:text-muted-foreground",
3022
3040
  actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
3023
3041
  cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
@@ -3027,6 +3045,7 @@ var Toaster = ({ ...props }) => {
3027
3045
  }
3028
3046
  );
3029
3047
  };
3048
+ var toast = import_sonner.toast;
3030
3049
 
3031
3050
  // src/components/ui/SwitchBase.tsx
3032
3051
  var React24 = __toESM(require("react"));
@@ -3484,6 +3503,7 @@ function buildFilterSummary(filter, availableFilters) {
3484
3503
  buildFilterSummary,
3485
3504
  buttonVariantsBase,
3486
3505
  defaultStringConditions,
3506
+ toast,
3487
3507
  useFormFieldBase,
3488
3508
  useIsMobile,
3489
3509
  useTheme
package/dist/index.mjs CHANGED
@@ -891,16 +891,15 @@ var DropDownMenuSubContentBase = React10.forwardRef(({ className, ...props }, re
891
891
  ...props
892
892
  }
893
893
  ));
894
- DropDownMenuSubContentBase.displayName = DropdownMenuPrimitive.SubContent.displayName;
895
- var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx11(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx11(AnimatePresence, { children: /* @__PURE__ */ jsx11(
894
+ var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx11(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx11(
896
895
  DropdownMenuPrimitive.Content,
897
896
  {
898
- asChild: true,
899
897
  sideOffset,
900
898
  forceMount: true,
901
899
  ref,
902
900
  ...props,
903
- children: /* @__PURE__ */ jsx11(
901
+ className: cn("p-0", className),
902
+ children: /* @__PURE__ */ jsx11(AnimatePresence, { children: /* @__PURE__ */ jsx11(
904
903
  motion.div,
905
904
  {
906
905
  initial: { opacity: 0, scale: 0.95, y: 5 },
@@ -913,9 +912,9 @@ var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, .
913
912
  ),
914
913
  children: props.children
915
914
  }
916
- )
915
+ ) })
917
916
  }
918
- ) }) }));
917
+ ) }));
919
918
  DropDownMenuContentBase.displayName = DropdownMenuPrimitive.Content.displayName;
920
919
  var DropDownMenuItemBase = React10.forwardRef(({ className, inset, leftIcon, rightIcon, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
921
920
  DropdownMenuPrimitive.Item,
@@ -1239,19 +1238,29 @@ function ComboboxBase({
1239
1238
  }) {
1240
1239
  const [open, setOpen] = useState4(false);
1241
1240
  return /* @__PURE__ */ jsx16("div", { className: "col-span-1 w-full ", children: /* @__PURE__ */ jsxs9(PopoverBase, { open, onOpenChange: setOpen, modal: true, children: [
1242
- /* @__PURE__ */ jsx16(PopoverTriggerBase, { asChild: true, className: "flex w-full justify-between dark:bg-[hsl(231,15%,19%)]", children: /* @__PURE__ */ jsxs9(
1243
- ButtonBase,
1241
+ /* @__PURE__ */ jsx16(
1242
+ PopoverTriggerBase,
1244
1243
  {
1245
- variant: "outline",
1246
- role: "combobox",
1247
- "aria-expanded": open,
1248
- children: [
1249
- renderSelected,
1250
- /* @__PURE__ */ jsx16("span", { children: /* @__PURE__ */ jsx16(CaretDown, { size: 16 }) }),
1251
- errorMessage && /* @__PURE__ */ jsx16("span", { className: "text-red-500", children: errorMessage })
1252
- ]
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
+ )
1253
1262
  }
1254
- ) }),
1263
+ ),
1255
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: [
1256
1265
  /* @__PURE__ */ jsx16(
1257
1266
  CommandInputBase,
@@ -1369,14 +1378,22 @@ function MultiCombobox({
1369
1378
  children: [
1370
1379
  /* @__PURE__ */ jsx18("span", { className: "truncate whitespace-break-spaces text-xs", children: item.label }),
1371
1380
  /* @__PURE__ */ jsx18(
1372
- X2,
1381
+ "span",
1373
1382
  {
1374
- size: 14,
1383
+ role: "button",
1384
+ tabIndex: 0,
1375
1385
  onClick: (e) => {
1376
1386
  e.stopPropagation();
1377
1387
  handleSelection(item.value);
1378
1388
  },
1379
- className: "cursor-pointer"
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 })
1380
1397
  }
1381
1398
  )
1382
1399
  ]
@@ -2817,19 +2834,19 @@ var SlideBase = React23.forwardRef(
2817
2834
  SlideBase.displayName = "SlideBase";
2818
2835
 
2819
2836
  // src/components/ui/SonnerBase.tsx
2820
- import { useTheme as useTheme2 } from "next-themes";
2821
- import { Toaster as Sonner } from "sonner";
2837
+ import { Toaster as Sonner, toast as sonnertoast } from "sonner";
2822
2838
  import { jsx as jsx33 } from "react/jsx-runtime";
2823
2839
  var Toaster = ({ ...props }) => {
2824
- const { theme = "system" } = useTheme2();
2825
2840
  return /* @__PURE__ */ jsx33(
2826
2841
  Sonner,
2827
2842
  {
2828
- theme,
2829
2843
  className: "toaster group",
2844
+ position: "top-center",
2830
2845
  toastOptions: {
2831
2846
  classNames: {
2832
- toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
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`,
2833
2850
  description: "group-[.toast]:text-muted-foreground",
2834
2851
  actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
2835
2852
  cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
@@ -2839,6 +2856,7 @@ var Toaster = ({ ...props }) => {
2839
2856
  }
2840
2857
  );
2841
2858
  };
2859
+ var toast = sonnertoast;
2842
2860
 
2843
2861
  // src/components/ui/SwitchBase.tsx
2844
2862
  import * as React24 from "react";
@@ -3295,6 +3313,7 @@ export {
3295
3313
  buildFilterSummary,
3296
3314
  buttonVariantsBase,
3297
3315
  defaultStringConditions,
3316
+ toast,
3298
3317
  useFormFieldBase,
3299
3318
  useIsMobile,
3300
3319
  useTheme
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlw-packages/react-components",
3
- "version": "1.3.5",
3
+ "version": "1.3.9",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",