@nayhoo/ui 0.2.0 → 0.3.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.
- package/dist/index.css +691 -576
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +41 -7
- package/dist/index.js +448 -72
- package/dist/index.js.map +1 -1
- package/package.json +12 -5
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
|
|
|
@@ -51,7 +54,7 @@ declare const Avatar: ({ alt, fallback, shape, size, src, status, style, ...prop
|
|
|
51
54
|
interactive?: boolean | undefined;
|
|
52
55
|
} & {
|
|
53
56
|
alt?: string | undefined;
|
|
54
|
-
fallback?:
|
|
57
|
+
fallback?: react__default.ReactNode;
|
|
55
58
|
src?: string | undefined;
|
|
56
59
|
status?: StatusVariants["variant"];
|
|
57
60
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -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:
|
|
348
|
-
declare const FormControl:
|
|
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:
|
|
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
|
|
|
@@ -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 };
|