@gusarov-studio/rubik-ui 16.0.0 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,8 @@
1
1
  import React from "react";
2
2
  import { CheckboxItem } from "@radix-ui/react-context-menu";
3
- type ContextMenuCheckboxProps = Omit<React.ComponentPropsWithoutRef<typeof CheckboxItem>, "asChild">;
3
+ interface ContextMenuCheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeof CheckboxItem>, "asChild" | "prefix"> {
4
+ prefix?: React.ReactNode;
5
+ suffix?: React.ReactNode;
6
+ }
4
7
  declare const ContextMenuCheckbox: React.ForwardRefExoticComponent<ContextMenuCheckboxProps & React.RefAttributes<HTMLDivElement>>;
5
8
  export { ContextMenuCheckbox, type ContextMenuCheckboxProps };
@@ -1,5 +1,8 @@
1
1
  import React from "react";
2
2
  import { Item } from "@radix-ui/react-context-menu";
3
- type ContextMenuItemProps = Omit<React.ComponentPropsWithoutRef<typeof Item>, "asChild">;
3
+ interface ContextMenuItemProps extends Omit<React.ComponentPropsWithoutRef<typeof Item>, "asChild" | "prefix"> {
4
+ prefix?: React.ReactNode;
5
+ suffix?: React.ReactNode;
6
+ }
4
7
  declare const ContextMenuItem: React.ForwardRefExoticComponent<ContextMenuItemProps & React.RefAttributes<HTMLDivElement>>;
5
8
  export { ContextMenuItem, type ContextMenuItemProps };
@@ -1,5 +1,8 @@
1
1
  import React from "react";
2
2
  import { SubTrigger } from "@radix-ui/react-context-menu";
3
- type ContextMenuSubTriggerProps = Omit<React.ComponentPropsWithoutRef<typeof SubTrigger>, "asChild">;
3
+ interface ContextMenuSubTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof SubTrigger>, "asChild" | "prefix"> {
4
+ prefix?: React.ReactNode;
5
+ suffix?: React.ReactNode;
6
+ }
4
7
  declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
5
8
  export { ContextMenuSubTrigger, type ContextMenuSubTriggerProps };
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import "./InputText.scss";
3
3
  type InputTextSize = 24 | 32 | 36 | 40 | 44 | 48;
4
4
  interface InputTextProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "prefix" | "size"> {
5
- type?: "text" | "password" | "email" | "search" | "tel" | "url";
5
+ type?: "text" | "number" | "password" | "email" | "search" | "tel" | "url";
6
6
  appearance?: "fill" | "outline";
7
7
  quiet?: boolean;
8
8
  size?: InputTextSize | `${InputTextSize}`;