@nayhoo/ui 0.2.0 → 0.3.1

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.d.ts CHANGED
@@ -1,9 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React$1 from 'react';
3
2
  import * as _vanilla_extract_recipes from '@vanilla-extract/recipes';
4
3
  import { RecipeVariants } from '@vanilla-extract/recipes';
5
4
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
+ import * as react from 'react';
6
+ import react__default from 'react';
7
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
6
8
  import * as FormPrimitive from '@radix-ui/react-form';
9
+ import * as MenuPrimitive from '@radix-ui/react-menu';
7
10
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
8
11
  import * as SwitchPrimitive from '@radix-ui/react-switch';
9
12
 
@@ -44,14 +47,14 @@ declare const statusRecipe: _vanilla_extract_recipes.RuntimeFn<{
44
47
  }>;
45
48
  type StatusVariants = NonNullable<RecipeVariants<typeof statusRecipe>>;
46
49
 
47
- declare const Avatar: ({ alt, fallback, shape, size, src, status, style, ...props }: AvatarPrimitive.AvatarProps & {
50
+ declare const Avatar: ({ alt, fallback, inactive, interactive, shape, size, src, status, style, ...props }: AvatarPrimitive.AvatarProps & {
48
51
  size?: "1" | "2" | "3" | "4" | "5" | "6" | undefined;
49
52
  shape?: "circle" | "square" | undefined;
50
53
  inactive?: boolean | undefined;
51
54
  interactive?: boolean | undefined;
52
55
  } & {
53
56
  alt?: string | undefined;
54
- fallback?: React$1.ReactNode;
57
+ fallback?: react__default.ReactNode;
55
58
  src?: string | undefined;
56
59
  status?: StatusVariants["variant"];
57
60
  }) => react_jsx_runtime.JSX.Element;
@@ -121,12 +124,6 @@ declare const buttonRecipe: _vanilla_extract_recipes.RuntimeFn<{
121
124
  color: "transparent !important";
122
125
  };
123
126
  };
124
- shape: {
125
- square: {};
126
- pill: {
127
- borderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
128
- };
129
- };
130
127
  size: {
131
128
  "1": {
132
129
  borderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -153,6 +150,12 @@ declare const buttonRecipe: _vanilla_extract_recipes.RuntimeFn<{
153
150
  lineHeight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
154
151
  };
155
152
  };
153
+ shape: {
154
+ square: {};
155
+ pill: {
156
+ borderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
157
+ };
158
+ };
156
159
  variant: {
157
160
  default: {
158
161
  selectors: {
@@ -238,6 +241,17 @@ declare const defaultElement$b = "div";
238
241
  type ContainerProps = ComponentProps<typeof defaultElement$b, ContainerVariants>;
239
242
  declare const Container: ({ asChild, size, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
240
243
 
244
+ declare const DropdownMenu: react.FC<DropdownMenuPrimitive.DropdownMenuProps>;
245
+ declare const DropdownMenuTrigger: react.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & react.RefAttributes<HTMLButtonElement>>;
246
+ declare const DropdownMenuContent: ({ ...props }: DropdownMenuPrimitive.DropdownMenuContentProps) => react_jsx_runtime.JSX.Element;
247
+ declare const DropdownMenuItem: ({ ...props }: DropdownMenuPrimitive.DropdownMenuItemProps) => react_jsx_runtime.JSX.Element;
248
+ declare const DropdownMenuGroup: react.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & react.RefAttributes<HTMLDivElement>>;
249
+ declare const DropdownMenuLabel: ({ ...props }: DropdownMenuPrimitive.DropdownMenuLabelProps) => react_jsx_runtime.JSX.Element;
250
+ declare const DropdownMenuSeparator: ({ ...props }: DropdownMenuPrimitive.DropdownMenuSeparatorProps) => react_jsx_runtime.JSX.Element;
251
+ declare const DropdownMenuCheckboxItem: ({ ...props }: DropdownMenuPrimitive.DropdownMenuCheckboxItemProps) => react_jsx_runtime.JSX.Element;
252
+ declare const DropdownMenuRadioGroup: react.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & react.RefAttributes<HTMLDivElement>>;
253
+ declare const DropdownMenuRadioItem: ({ children, ...props }: DropdownMenuPrimitive.DropdownMenuRadioItemProps) => react_jsx_runtime.JSX.Element;
254
+
241
255
  declare const flexRecipe: _vanilla_extract_recipes.RuntimeFn<{
242
256
  align: {
243
257
  start: {
@@ -344,12 +358,12 @@ declare const formMessageRecipe: _vanilla_extract_recipes.RuntimeFn<{
344
358
  }>;
345
359
  type FormMessageVariants = NonNullable<RecipeVariants<typeof formMessageRecipe>>;
346
360
 
347
- declare const Form: React$1.ForwardRefExoticComponent<FormPrimitive.FormProps & React$1.RefAttributes<HTMLFormElement>>;
348
- declare const FormControl: React$1.ForwardRefExoticComponent<FormPrimitive.FormControlProps & React$1.RefAttributes<HTMLInputElement>>;
361
+ declare const Form: react.ForwardRefExoticComponent<FormPrimitive.FormProps & react.RefAttributes<HTMLFormElement>>;
362
+ declare const FormControl: react.ForwardRefExoticComponent<FormPrimitive.FormControlProps & react.RefAttributes<HTMLInputElement>>;
349
363
  declare const FormField: ({ ...props }: FormPrimitive.FormFieldProps & FormFieldVariants) => react_jsx_runtime.JSX.Element;
350
364
  declare const FormLabel: ({ ...props }: FormPrimitive.FormLabelProps & FormLabelVariants) => react_jsx_runtime.JSX.Element;
351
365
  declare const FormMessage: ({ error, ...props }: FormPrimitive.FormMessageProps & FormMessageVariants) => react_jsx_runtime.JSX.Element;
352
- declare const FormSubmit: React$1.ForwardRefExoticComponent<FormPrimitive.FormSubmitProps & React$1.RefAttributes<HTMLButtonElement>>;
366
+ declare const FormSubmit: react.ForwardRefExoticComponent<FormPrimitive.FormSubmitProps & react.RefAttributes<HTMLButtonElement>>;
353
367
 
354
368
  declare const gridRecipe: _vanilla_extract_recipes.RuntimeFn<{
355
369
  align: {
@@ -702,6 +716,18 @@ declare const defaultElement$7 = "a";
702
716
  type LinkProps = ComponentProps<typeof defaultElement$7, LinkVariants>;
703
717
  declare const Link: ({ asChild, color, ...props }: LinkProps) => react_jsx_runtime.JSX.Element;
704
718
 
719
+ declare const Menu: ({ ...props }: MenuPrimitive.MenuProps & {
720
+ className?: string;
721
+ }) => react_jsx_runtime.JSX.Element;
722
+ declare const MenuContent: ({ ...props }: MenuPrimitive.MenuContentProps) => react_jsx_runtime.JSX.Element;
723
+ declare const MenuSeparator: ({ ...props }: MenuPrimitive.MenuSeparatorProps) => react_jsx_runtime.JSX.Element;
724
+ declare const MenuItem: ({ ...props }: MenuPrimitive.MenuItemProps) => react_jsx_runtime.JSX.Element;
725
+ declare const MenuRadioItem: ({ ...props }: MenuPrimitive.MenuRadioItemProps) => react_jsx_runtime.JSX.Element;
726
+ declare const MenuCheckboxItem: ({ ...props }: MenuPrimitive.MenuCheckboxItemProps) => react_jsx_runtime.JSX.Element;
727
+ declare const MenuLabel: ({ ...props }: MenuPrimitive.MenuLabelProps) => react_jsx_runtime.JSX.Element;
728
+ declare const MenuRadioGroup: react.ForwardRefExoticComponent<MenuPrimitive.MenuRadioGroupProps & react.RefAttributes<HTMLDivElement>>;
729
+ declare const MenuGroup: react.ForwardRefExoticComponent<MenuPrimitive.MenuGroupProps & react.RefAttributes<HTMLDivElement>>;
730
+
705
731
  declare const panelRecipe: _vanilla_extract_recipes.RuntimeFn<{}>;
706
732
  type PanelVariants = NonNullable<RecipeVariants<typeof panelRecipe>>;
707
733
 
@@ -823,7 +849,7 @@ declare const Spinner: ({ asChild, size, ...props }: SpinnerProps) => react_jsx_
823
849
 
824
850
  declare const defaultElement$2 = "div";
825
851
  type statusProps = ComponentProps<typeof defaultElement$2, StatusVariants>;
826
- declare const Status: ({ asChild, ...props }: statusProps) => react_jsx_runtime.JSX.Element;
852
+ declare const Status: ({ asChild, size, variant, ...props }: statusProps) => react_jsx_runtime.JSX.Element;
827
853
 
828
854
  declare const switchRecipe: _vanilla_extract_recipes.RuntimeFn<{
829
855
  size: {
@@ -929,6 +955,14 @@ declare const sprinkles: ((props: {
929
955
  lg?: "initial" | "none" | "flex" | "block" | undefined;
930
956
  xl?: "initial" | "none" | "flex" | "block" | undefined;
931
957
  } | undefined;
958
+ flexDirection?: "row" | "column" | "column-reverse" | "row-reverse" | {
959
+ initial?: "row" | "column" | "column-reverse" | "row-reverse" | undefined;
960
+ xs?: "row" | "column" | "column-reverse" | "row-reverse" | undefined;
961
+ sm?: "row" | "column" | "column-reverse" | "row-reverse" | undefined;
962
+ md?: "row" | "column" | "column-reverse" | "row-reverse" | undefined;
963
+ lg?: "row" | "column" | "column-reverse" | "row-reverse" | undefined;
964
+ xl?: "row" | "column" | "column-reverse" | "row-reverse" | undefined;
965
+ } | undefined;
932
966
  gridTemplateColumns?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | {
933
967
  initial?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
934
968
  xs?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
@@ -1066,7 +1100,7 @@ declare const sprinkles: ((props: {
1066
1100
  xl?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | undefined;
1067
1101
  } | undefined;
1068
1102
  }) => string) & {
1069
- properties: Set<"display" | "gridTemplateColumns" | "gridTemplateRows" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "margin" | "padding" | "marginX" | "marginY" | "paddingX" | "paddingY">;
1103
+ properties: Set<"display" | "flexDirection" | "gridTemplateColumns" | "gridTemplateRows" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "margin" | "padding" | "marginX" | "marginY" | "paddingX" | "paddingY">;
1070
1104
  };
1071
1105
  type Sprinkles = Parameters<typeof sprinkles>[0];
1072
1106
 
@@ -4801,4 +4835,4 @@ declare const lightTheme: string;
4801
4835
 
4802
4836
  declare function mergeClasses(...classes: (string | undefined)[]): string;
4803
4837
 
4804
- export { Avatar, Badge, Box, Button, Card, Container, Flex, Form, FormControl, FormField, FormLabel, FormMessage, FormSubmit, Grid, Heading, type HeadingProps, IconButton, Link, Panel, Paragraph, Separator, Skeleton, Spinner, type Sprinkles, Status, Switch, Text, TextField, darkTheme, hide, lightTheme, mergeClasses, pulse, spin, sprinkles, theme };
4838
+ export { Avatar, Badge, Box, Button, Card, Container, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, Flex, Form, FormControl, FormField, FormLabel, FormMessage, FormSubmit, Grid, Heading, type HeadingProps, IconButton, Link, Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuItem, MenuLabel, MenuRadioGroup, MenuRadioItem, MenuSeparator, Panel, Paragraph, Separator, Skeleton, Spinner, type Sprinkles, Status, Switch, Text, TextField, darkTheme, hide, lightTheme, mergeClasses, pulse, spin, sprinkles, theme };