mtxuilib 0.1.518 → 0.1.520

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import * as ResizablePrimitive from "react-resizable-panels";
2
2
  declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
- declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<keyof HTMLElementTagNameMap>, "id" | "onResize"> & {
3
+ declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLAnchorElement | HTMLElement | HTMLTextAreaElement | HTMLButtonElement | HTMLDivElement | HTMLObjectElement | HTMLDataElement | HTMLInputElement | HTMLLinkElement | HTMLFormElement | HTMLStyleElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
4
  className?: string | undefined;
5
5
  collapsedSize?: number | undefined;
6
6
  collapsible?: boolean | undefined;
@@ -4,7 +4,7 @@ import * as React from "react";
4
4
  declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
5
5
  declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
6
  declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
7
- variant?: "destructive" | "default" | null | undefined;
7
+ variant?: "destructive" | "default" | "success" | "warning" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
9
9
  declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
10
  declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -12,4 +12,4 @@ declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.T
12
12
  declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
13
  type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
14
14
  type ToastActionElement = React.ReactElement<typeof ToastAction>;
15
- export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, type ToastActionElement, type ToastProps };
15
+ export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, type ToastActionElement, type ToastProps, };
package/dist/ui/toast.js CHANGED
@@ -12,6 +12,8 @@ const toastVariants = cva("group pointer-events-auto relative flex w-full items-
12
12
  variant: {
13
13
  default: "border bg-background text-foreground",
14
14
  destructive: "destructive group border-destructive bg-destructive text-destructive-foreground",
15
+ success: "success group border-success bg-success text-success-foreground",
16
+ warning: "warning group border-warning bg-warning text-warning-foreground",
15
17
  },
16
18
  },
17
19
  defaultVariants: {
@@ -30,4 +32,4 @@ const ToastTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(Toas
30
32
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
31
33
  const ToastDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(ToastPrimitives.Description, { ref: ref, className: cn("text-sm opacity-90", className), ...props })));
32
34
  ToastDescription.displayName = ToastPrimitives.Description.displayName;
33
- export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport };
35
+ export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mtxuilib",
3
3
  "private": false,
4
- "version": "0.1.518",
4
+ "version": "0.1.520",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -153,6 +153,7 @@
153
153
  "react-error-boundary": "^4.0.13",
154
154
  "react-hook-form": "^7.53.0",
155
155
  "react-hotkeys-hook": "^4.5.0",
156
+ "react-i18next": "^15.1.0",
156
157
  "react-intersection-observer": "^9.13.0",
157
158
  "react-markdown": "9.0.1",
158
159
  "react-moveable": "^0.56.0",