@me1a/ui 1.2.13 → 2.0.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.
Files changed (56) hide show
  1. package/dist/index.css +2 -0
  2. package/dist/index.css.map +1 -0
  3. package/dist/index.d.mts +437 -0
  4. package/dist/index.d.ts +437 -2
  5. package/dist/index.js +2 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.mjs +2 -0
  8. package/dist/index.mjs.map +1 -0
  9. package/package.json +84 -96
  10. package/dist/components/iconify/iconify.d.ts +0 -7
  11. package/dist/components/iconify/index.d.ts +0 -2
  12. package/dist/components/iconify/types.d.ts +0 -2
  13. package/dist/components/index.cjs.js +0 -7961
  14. package/dist/components/index.cjs.js.map +0 -1
  15. package/dist/components/index.d.ts +0 -1
  16. package/dist/components/index.es.js +0 -7941
  17. package/dist/components/index.es.js.map +0 -1
  18. package/dist/hook-forms/form-provider.d.ts +0 -8
  19. package/dist/hook-forms/index.cjs.js +0 -27806
  20. package/dist/hook-forms/index.cjs.js.map +0 -1
  21. package/dist/hook-forms/index.d.ts +0 -11
  22. package/dist/hook-forms/index.es.js +0 -27765
  23. package/dist/hook-forms/index.es.js.map +0 -1
  24. package/dist/hook-forms/rhf-autocomplete.d.ts +0 -11
  25. package/dist/hook-forms/rhf-checkbox.d.ts +0 -19
  26. package/dist/hook-forms/rhf-radio-group.d.ts +0 -13
  27. package/dist/hook-forms/rhf-select.d.ts +0 -11
  28. package/dist/hook-forms/rhf-slider.d.ts +0 -7
  29. package/dist/hook-forms/rhf-switch.d.ts +0 -7
  30. package/dist/hook-forms/rhf-text-field.d.ts +0 -6
  31. package/dist/hooks/index.cjs.js +0 -27
  32. package/dist/hooks/index.cjs.js.map +0 -1
  33. package/dist/hooks/index.d.ts +0 -1
  34. package/dist/hooks/index.es.js +0 -25
  35. package/dist/hooks/index.es.js.map +0 -1
  36. package/dist/hooks/use-boolean.d.ts +0 -9
  37. package/dist/index.cjs.js +0 -27828
  38. package/dist/index.cjs.js.map +0 -1
  39. package/dist/index.es.js +0 -27786
  40. package/dist/index.es.js.map +0 -1
  41. package/dist/redux/index.cjs.js +0 -1347
  42. package/dist/redux/index.cjs.js.map +0 -1
  43. package/dist/redux/index.d.ts +0 -1
  44. package/dist/redux/index.es.js +0 -1317
  45. package/dist/redux/index.es.js.map +0 -1
  46. package/dist/redux-toolkit/index.cjs.js +0 -7668
  47. package/dist/redux-toolkit/index.cjs.js.map +0 -1
  48. package/dist/redux-toolkit/index.d.ts +0 -2
  49. package/dist/redux-toolkit/index.es.js +0 -7589
  50. package/dist/redux-toolkit/index.es.js.map +0 -1
  51. package/dist/snackbar/index.cjs.js +0 -10873
  52. package/dist/snackbar/index.cjs.js.map +0 -1
  53. package/dist/snackbar/index.d.ts +0 -2
  54. package/dist/snackbar/index.es.js +0 -10849
  55. package/dist/snackbar/index.es.js.map +0 -1
  56. package/dist/snackbar/snackbar-provider.d.ts +0 -7
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/atoms/button/button.tsx","../src/utils/cn.ts","../src/components/atoms/input/input.tsx","../src/components/atoms/text-field/text-field.tsx","../src/components/atoms/container/container.tsx","../src/components/atoms/box/box.tsx","../src/components/atoms/stack/stack.tsx","../src/components/atoms/dialog/dialog.tsx","../src/components/molecules/card/card.tsx","../src/components/organisms/drawer/drawer.tsx"],"names":["cn","inputs","twMerge","clsx","buttonVariants","cva","Button","O","_a","ref","_b","className","variant","size","asChild","startIcon","endIcon","loading","disabled","children","props","__objRest","Comp","Slot","jsx","__spreadProps","__spreadValues","jsxs","Loader2","Input","S","type","textFieldVariants","TextField","C","error","label","helperText","id","Container","W","maxWidth","disablePadding","fluid","Box","X","Component","Stack","q","direction","spacing","wrap","center","justify","align","Dialog","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","N","DialogContent","DialogHeader","DialogFooter","DialogTitle","DialogDescription","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","Drawer","shouldScaleBackground","D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OAAAc,GAAAA,CAAC,MAAAE,CAAA,CAAA,CAAI,UAAW1B,CAAG,CAAA,iCAAA,CAAmCW,CAAS,CAAOS,CAAAA,CAAAA,CAAAA,CAAO,GAE/E8D,EAAa,CAAA,WAAA,CAAc,eAMrBC,IAAAA,EAAAA,CAAoBJ,aAGxB,CAACvE,CAAAA,CAAyBC,IAAK,CAA9B,IAAAC,EAAAF,CAAE,CAAA,CAAA,SAAA,CAAAG,CAxHL,CAwHGD,CAAAA,CAAAA,CAAgBU,EAAAC,CAAhBX,CAAAA,CAAAA,CAAgB,CAAd,WACH,CAAA,CAAA,CAAA,OAAAc,IAACkD,MAAgB,CAAA,KAAA,CAAhBhD,EAAA,CACC,GAAA,CAAKjB,EACL,SAAWT,CAAAA,CAAAA,CAAG,oDAAqDW,CAAS,CAAA,CAAA,CACxES,EACN,CACD,CAAA,EACD+D,GAAY,WAAcT,CAAAA,MAAAA,CAAgB,MAAM,WAMhD,CAAA,IAAMU,GAA0BL,CAG9B,CAAA,UAAA,CAAA,CAACvE,EAAyBC,CAAK,GAAA,CAA9B,IAAAC,CAAAF,CAAAA,CAAAA,CAAE,WAAAG,CAxIL,CAAA,CAwIGD,EAAgBU,CAAAC,CAAAA,CAAAA,CAAhBX,EAAgB,CAAd,WAAA,CAAA,CAAA,CACH,OAAAc,GAACkD,CAAAA,MAAAA,CAAgB,YAAhBhD,CAAA,CAAA,CACC,IAAKjB,CACL,CAAA,SAAA,CAAWT,EAAG,+BAAiCW,CAAAA,CAAS,GACpDS,CACN,CAAA,CAAA,CACD,EACDgE,EAAkB,CAAA,WAAA,CAAcV,OAAgB,WAAY,CAAA,WAAA","file":"index.mjs","sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva } from \"class-variance-authority\"\nimport { cn } from \"@/utils/cn\"\nimport { ButtonProps } from \"./button.types\"\nimport { Loader2 } from \"lucide-react\"\n\n/**\n * Button variant styles using class-variance-authority.\n * Defines the visual styles for different button variants and sizes.\n *\n * @example\n * ```tsx\n * <Button variant=\"primary\" size=\"lg\">Click me</Button>\n * ```\n */\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground shadow hover:bg-primary/90\",\n destructive: \"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground\",\n secondary: \"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\"\n },\n size: {\n default: \"h-9 px-4 py-2\",\n sm: \"h-8 rounded-md px-3 text-xs\",\n lg: \"h-10 rounded-md px-8\",\n icon: \"h-9 w-9\"\n }\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\"\n }\n }\n)\n\n/**\n * A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.\n * Built on top of Radix UI's Slot primitive for maximum flexibility.\n *\n * @component\n * @example\n * ```tsx\n * // Default button\n * <Button>Click me</Button>\n *\n * // Destructive button with small size\n * <Button variant=\"destructive\" size=\"sm\">Delete</Button>\n *\n * // As a link\n * <Button variant=\"link\" asChild>\n * <a href=\"/about\">About</a>\n * </Button>\n *\n * // With icons\n * <Button startIcon={<Icon />}>With Start Icon</Button>\n * <Button endIcon={<Icon />}>With End Icon</Button>\n *\n * // Loading state\n * <Button loading>Loading</Button>\n * ```\n *\n * @param {ButtonProps} props - The component props\n * @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref\n * @returns {JSX.Element} A button element\n */\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n className,\n variant,\n size,\n asChild = false,\n startIcon,\n endIcon,\n loading = false,\n disabled,\n children,\n ...props\n },\n ref\n ) => {\n const Comp = asChild ? Slot : \"button\"\n\n if (asChild) {\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={disabled || loading}\n {...props}\n >\n {children}\n </Comp>\n )\n }\n\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={disabled || loading}\n {...props}\n >\n {loading && (\n <Loader2 className=\"mr-2 h-4 w-4 animate-spin\" role=\"status\" aria-label=\"Loading\" />\n )}\n {!loading && startIcon && <span className=\"mr-2\">{startIcon}</span>}\n {children}\n {!loading && endIcon && <span className=\"ml-2\">{endIcon}</span>}\n </Comp>\n )\n }\n)\nButton.displayName = \"Button\"\n\nexport { Button, buttonVariants }\n","import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from \"react\"\n\nimport { cn } from \"@/utils/cn\"\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\nInput.displayName = \"Input\"\n\nexport { Input }\n","import * as React from \"react\"\nimport { cva } from \"class-variance-authority\"\nimport { cn } from \"@/utils/cn\"\nimport { TextFieldProps } from \"./text-field.types\"\nimport { Loader2 } from \"lucide-react\"\nimport { Input } from \"../input\"\n\n/**\n * Text field variant styles using class-variance-authority.\n * Defines the visual styles for different text field variants and sizes.\n */\nconst textFieldVariants = cva(\"w-full\", {\n variants: {\n variant: {\n default: \"\",\n error: \"border-destructive focus-visible:ring-destructive\"\n },\n size: {\n default: \"h-10\",\n sm: \"h-8 text-xs\",\n lg: \"h-12 text-base\"\n }\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\"\n }\n})\n\n/**\n * A versatile text field component that supports multiple variants, sizes, and icons.\n * Built on top of shadcn/ui's Input component.\n *\n * @component\n * @example\n * ```tsx\n * // Default text field\n * <TextField placeholder=\"Enter text\" />\n *\n * // With icons\n * <TextField startIcon={<SearchIcon />} placeholder=\"Search...\" />\n * <TextField endIcon={<CalendarIcon />} placeholder=\"Select date\" />\n *\n * // With loading state\n * <TextField loading placeholder=\"Loading...\" />\n *\n * // With error\n * <TextField error=\"Invalid input\" placeholder=\"Enter text\" />\n * ```\n */\nconst TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n className,\n variant,\n size,\n startIcon,\n endIcon,\n loading = false,\n error,\n label,\n helperText,\n disabled,\n ...props\n },\n ref\n ) => {\n const id = React.useId()\n\n return (\n <div className=\"w-full space-y-2\">\n {label && (\n <label\n htmlFor={id}\n className=\"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n >\n {label}\n </label>\n )}\n <div className=\"relative\">\n {startIcon && (\n <div className=\"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground\">\n {startIcon}\n </div>\n )}\n <Input\n id={id}\n className={cn(\n textFieldVariants({ variant: error ? \"error\" : variant, size, className }),\n startIcon && \"pl-9\",\n (endIcon || loading) && \"pr-9\"\n )}\n ref={ref}\n disabled={disabled || loading}\n {...props}\n />\n {(endIcon || loading) && (\n <div className=\"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground\">\n {loading ? <Loader2 className=\"h-4 w-4 animate-spin\" /> : endIcon}\n </div>\n )}\n </div>\n {(error || helperText) && (\n <p className={cn(\"text-sm\", error ? \"text-destructive\" : \"text-muted-foreground\")}>\n {error || helperText}\n </p>\n )}\n </div>\n )\n }\n)\n\nTextField.displayName = \"TextField\"\n\nexport { TextField, textFieldVariants }\n","/**\n * Container is a layout component that provides a centered, max-width wrapper for content.\n * It's designed to create consistent horizontal padding and maximum widths across different screen sizes.\n *\n * @example\n * ```tsx\n * // Basic usage\n * <Container>\n * <h1>Page Title</h1>\n * <p>Content goes here...</p>\n * </Container>\n *\n * // With custom max width\n * <Container maxWidth=\"xl\">\n * <h1>Wider Content</h1>\n * </Container>\n *\n * // Fluid container (no max-width)\n * <Container fluid>\n * <h1>Full Width Content</h1>\n * </Container>\n *\n * // Without padding\n * <Container disablePadding>\n * <h1>No Padding Content</h1>\n * </Container>\n * ```\n */\nimport { cn } from \"@/utils\"\nimport * as React from \"react\"\n\nexport interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * The maximum width of the container.\n * - \"sm\": 640px\n * - \"md\": 768px\n * - \"lg\": 1024px\n * - \"xl\": 1280px\n * - \"full\": 100%\n * - false: No max-width (fluid)\n *\n * @default \"lg\"\n */\n maxWidth?: \"sm\" | \"md\" | \"lg\" | \"xl\" | \"full\" | false\n /**\n * Whether to disable the default horizontal padding.\n * When true, removes the default padding (px-4 sm:px-6 lg:px-8).\n *\n * @default false\n */\n disablePadding?: boolean\n /**\n * Whether to make the container fluid (no max-width).\n * When true, the container will expand to fill its parent's width.\n *\n * @default false\n */\n fluid?: boolean\n}\n\nconst Container = React.forwardRef<HTMLDivElement, ContainerProps>(\n ({ className, maxWidth = \"lg\", disablePadding = false, fluid = false, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n // Base styles\n \"mx-auto w-full\",\n // Padding\n !disablePadding && \"px-4 sm:px-6 lg:px-8\",\n // Max width\n !fluid && {\n \"max-w-screen-sm\": maxWidth === \"sm\",\n \"max-w-screen-md\": maxWidth === \"md\",\n \"max-w-screen-lg\": maxWidth === \"lg\",\n \"max-w-screen-xl\": maxWidth === \"xl\",\n \"max-w-full\": maxWidth === \"full\"\n },\n className\n )}\n {...props}\n />\n )\n }\n)\n\nContainer.displayName = \"Container\"\n\nexport { Container }\n","/**\n * Box is a fundamental layout component that serves as a building block for other components.\n * It's a polymorphic component that can render as different HTML elements while maintaining\n * consistent styling and behavior.\n *\n * @example\n * ```tsx\n * // Basic usage\n * <Box>Content</Box>\n *\n * // As a different element\n * <Box as=\"section\">Section content</Box>\n *\n * // With custom className\n * <Box className=\"bg-primary text-white p-4\">Styled content</Box>\n * ```\n */\nimport * as React from \"react\"\nimport { cn } from \"@/utils\"\n\ntype BoxComponent =\n | \"div\"\n | \"span\"\n | \"section\"\n | \"article\"\n | \"main\"\n | \"aside\"\n | \"header\"\n | \"footer\"\n | \"nav\"\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * The HTML element to render the Box as.\n * This allows for semantic HTML while maintaining consistent styling.\n *\n * @default \"div\"\n */\n as?: BoxComponent\n}\n\nconst Box = React.forwardRef<HTMLDivElement, BoxProps>(\n ({ as: Component = \"div\", className, ...props }, ref) => {\n return <Component ref={ref} className={cn(className)} {...props} />\n }\n)\n\nBox.displayName = \"Box\"\n\nexport { Box }\n","/**\n * Stack is a layout component that arranges its children in a vertical or horizontal stack\n * with consistent spacing between items. It's built on top of Flexbox and provides\n * a simple way to create consistent layouts.\n *\n * @example\n * ```tsx\n * // Basic vertical stack\n * <Stack>\n * <div>Item 1</div>\n * <div>Item 2</div>\n * <div>Item 3</div>\n * </Stack>\n *\n * // Horizontal stack with custom spacing\n * <Stack direction=\"horizontal\" spacing=\"lg\">\n * <div>Item 1</div>\n * <div>Item 2</div>\n * </Stack>\n *\n * // Centered stack with wrapping\n * <Stack direction=\"horizontal\" center wrap>\n * <div>Item 1</div>\n * <div>Item 2</div>\n * <div>Item 3</div>\n * </Stack>\n *\n * // Stack with custom alignment\n * <Stack align=\"center\" justify=\"between\">\n * <div>Left</div>\n * <div>Center</div>\n * <div>Right</div>\n * </Stack>\n * ```\n */\nimport * as React from \"react\"\nimport { cn } from \"@/utils\"\n\nexport interface StackProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * The direction in which to stack the items.\n * - \"vertical\": Items are stacked top to bottom\n * - \"horizontal\": Items are stacked left to right\n *\n * @default \"vertical\"\n */\n direction?: \"vertical\" | \"horizontal\"\n /**\n * The spacing between items in the stack.\n * - \"none\": 0px\n * - \"xs\": 0.25rem (4px)\n * - \"sm\": 0.5rem (8px)\n * - \"md\": 1rem (16px)\n * - \"lg\": 1.5rem (24px)\n * - \"xl\": 2rem (32px)\n *\n * @default \"md\"\n */\n spacing?: \"none\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\"\n /**\n * Whether to allow items to wrap to the next line when they don't fit.\n * Only applies to horizontal stacks.\n *\n * @default false\n */\n wrap?: boolean\n /**\n * Whether to center items both horizontally and vertically.\n * This is a shorthand for setting both align and justify to \"center\".\n *\n * @default false\n */\n center?: boolean\n /**\n * How to justify items along the main axis.\n * - \"start\": Items are packed toward the start\n * - \"end\": Items are packed toward the end\n * - \"center\": Items are centered\n * - \"between\": Items are evenly distributed with first item at start and last at end\n * - \"around\": Items are evenly distributed with equal space around them\n * - \"evenly\": Items are distributed so that the spacing between any two items is equal\n *\n * @default undefined\n */\n justify?: \"start\" | \"end\" | \"center\" | \"between\" | \"around\" | \"evenly\"\n /**\n * How to align items along the cross axis.\n * - \"start\": Items are aligned at the start\n * - \"end\": Items are aligned at the end\n * - \"center\": Items are centered\n * - \"stretch\": Items are stretched to fill the container\n * - \"baseline\": Items are aligned at their baselines\n *\n * @default undefined\n */\n align?: \"start\" | \"end\" | \"center\" | \"stretch\" | \"baseline\"\n}\n\nconst Stack = React.forwardRef<HTMLDivElement, StackProps>(\n (\n {\n className,\n direction = \"vertical\",\n spacing = \"md\",\n wrap = false,\n center = false,\n justify,\n align,\n ...props\n },\n ref\n ) => {\n return (\n <div\n ref={ref}\n className={cn(\n // Base styles\n \"flex\",\n // Direction\n direction === \"vertical\" ? \"flex-col\" : \"flex-row\",\n // Spacing\n {\n \"gap-0\": spacing === \"none\",\n \"gap-1\": spacing === \"xs\",\n \"gap-2\": spacing === \"sm\",\n \"gap-4\": spacing === \"md\",\n \"gap-6\": spacing === \"lg\",\n \"gap-8\": spacing === \"xl\"\n },\n // Wrap\n wrap && \"flex-wrap\",\n // Center\n center && \"items-center justify-center\",\n // Justify\n justify && {\n \"justify-start\": justify === \"start\",\n \"justify-end\": justify === \"end\",\n \"justify-center\": justify === \"center\",\n \"justify-between\": justify === \"between\",\n \"justify-around\": justify === \"around\",\n \"justify-evenly\": justify === \"evenly\"\n },\n // Align\n align && {\n \"items-start\": align === \"start\",\n \"items-end\": align === \"end\",\n \"items-center\": align === \"center\",\n \"items-stretch\": align === \"stretch\",\n \"items-baseline\": align === \"baseline\"\n },\n className\n )}\n {...props}\n />\n )\n }\n)\n\nStack.displayName = \"Stack\"\n\nexport { Stack }\n","import * as React from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport { X } from \"lucide-react\"\nimport { cn } from \"@/utils\"\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className\n )}\n {...props}\n />\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\n className\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"flex flex-col space-y-1.5 text-center sm:text-left\", className)} {...props} />\n)\nDialogHeader.displayName = \"DialogHeader\"\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\", className)}\n {...props}\n />\n)\nDialogFooter.displayName = \"DialogFooter\"\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold leading-none tracking-tight\", className)}\n {...props}\n />\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription\n}\n","/**\n * Card is a flexible container component that can be used to group related content and actions.\n * It provides a consistent visual style with a subtle border, shadow, and rounded corners.\n *\n * @example\n * ```tsx\n * // Basic card\n * <Card>\n * <CardHeader>\n * <CardTitle>Card Title</CardTitle>\n * <CardDescription>Card Description</CardDescription>\n * </CardHeader>\n * <CardContent>\n * <p>Card content goes here.</p>\n * </CardContent>\n * <CardFooter>\n * <Button>Action</Button>\n * </CardFooter>\n * </Card>\n *\n * // Card with custom styling\n * <Card className=\"bg-primary text-primary-foreground\">\n * <CardHeader>\n * <CardTitle>Custom Styled Card</CardTitle>\n * </CardHeader>\n * <CardContent>\n * <p>This card has custom background and text colors.</p>\n * </CardContent>\n * </Card>\n * ```\n */\nimport * as React from \"react\"\nimport { cn } from \"@/utils\"\n\n/**\n * The main card container component.\n * Provides the base styling for the card including border, shadow, and rounded corners.\n */\nconst Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"rounded-lg border bg-card text-card-foreground shadow-sm\", className)}\n {...props}\n />\n )\n)\nCard.displayName = \"Card\"\n\n/**\n * Header section of the card.\n * Typically contains the card title and description.\n * Includes padding and spacing for consistent layout.\n */\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex flex-col space-y-1.5 p-6\", className)} {...props} />\n )\n)\nCardHeader.displayName = \"CardHeader\"\n\n/**\n * Title component for the card.\n * Should be used within CardHeader.\n * Provides consistent typography styling for card titles.\n */\nconst CardTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(\n ({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn(\"text-2xl font-semibold leading-none tracking-tight\", className)}\n {...props}\n />\n )\n)\nCardTitle.displayName = \"CardTitle\"\n\n/**\n * Description component for the card.\n * Should be used within CardHeader.\n * Provides consistent typography styling for card descriptions.\n */\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p ref={ref} className={cn(\"text-sm text-muted-foreground\", className)} {...props} />\n))\nCardDescription.displayName = \"CardDescription\"\n\n/**\n * Main content section of the card.\n * Includes padding and removes top padding to maintain consistent spacing with the header.\n */\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"p-6 pt-0\", className)} {...props} />\n )\n)\nCardContent.displayName = \"CardContent\"\n\n/**\n * Footer section of the card.\n * Typically contains action buttons or additional information.\n * Includes padding and removes top padding to maintain consistent spacing with the content.\n */\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center p-6 pt-0\", className)} {...props} />\n )\n)\nCardFooter.displayName = \"CardFooter\"\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n","/**\n * Drawer is a slide-out panel component that appears from the bottom of the screen.\n * It's built on top of Vaul and provides a smooth, accessible drawer experience.\n *\n * @example\n * ```tsx\n * // Basic usage\n * <Drawer>\n * <DrawerTrigger>\n * <Button>Open Drawer</Button>\n * </DrawerTrigger>\n * <DrawerContent>\n * <DrawerHeader>\n * <DrawerTitle>Title</DrawerTitle>\n * <DrawerDescription>Description</DrawerDescription>\n * </DrawerHeader>\n * <div>Content</div>\n * <DrawerFooter>\n * <Button>Save</Button>\n * </DrawerFooter>\n * </DrawerContent>\n * </Drawer>\n * ```\n */\nimport { cn } from \"@/utils\"\nimport * as React from \"react\"\nimport { Drawer as DrawerPrimitive } from \"vaul\"\n\nconst Drawer = ({\n shouldScaleBackground = true,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n)\nDrawer.displayName = \"Drawer\"\n\n/**\n * The trigger element that opens the drawer.\n * Should be used with the `asChild` prop to wrap your own trigger element.\n */\nconst DrawerTrigger = DrawerPrimitive.Trigger\n\n/**\n * Portal component that renders the drawer content outside the DOM hierarchy.\n * This ensures proper stacking context and accessibility.\n */\nconst DrawerPortal = DrawerPrimitive.Portal\n\n/**\n * Close button component for the drawer.\n * Should be used with the `asChild` prop to wrap your own close button.\n */\nconst DrawerClose = DrawerPrimitive.Close\n\n/**\n * Overlay component that appears behind the drawer.\n * Provides a semi-transparent backdrop and handles click-outside behavior.\n */\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay\n ref={ref}\n className={cn(\"fixed inset-0 z-50 bg-black/80\", className)}\n {...props}\n />\n))\nDrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName\n\n/**\n * The main content container for the drawer.\n * Includes the handle bar at the top and manages the slide-up animation.\n */\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background\",\n className\n )}\n {...props}\n >\n <div className=\"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n))\nDrawerContent.displayName = \"DrawerContent\"\n\n/**\n * Header section of the drawer.\n * Typically contains the title and description.\n */\nconst DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"grid gap-1.5 p-4 text-center sm:text-left\", className)} {...props} />\n)\nDrawerHeader.displayName = \"DrawerHeader\"\n\n/**\n * Footer section of the drawer.\n * Typically contains action buttons.\n */\nconst DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)} {...props} />\n)\nDrawerFooter.displayName = \"DrawerFooter\"\n\n/**\n * Title component for the drawer.\n * Should be used within DrawerHeader.\n */\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold leading-none tracking-tight\", className)}\n {...props}\n />\n))\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName\n\n/**\n * Description component for the drawer.\n * Should be used within DrawerHeader.\n */\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName\n\nexport {\n Drawer,\n DrawerPortal,\n DrawerOverlay,\n DrawerTrigger,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerFooter,\n DrawerTitle,\n DrawerDescription\n}\n"]}
package/package.json CHANGED
@@ -1,111 +1,99 @@
1
1
  {
2
2
  "name": "@me1a/ui",
3
- "version": "1.2.13",
4
- "type": "module",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.es.js",
7
- "types": "dist/index.d.ts",
3
+ "version": "2.0.1",
4
+ "private": false,
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "sideEffects": false,
8
9
  "files": [
9
- "/dist"
10
+ "dist/**"
10
11
  ],
11
12
  "scripts": {
12
- "format": "prettier --write --parser typescript '**/*.{ts,tsx}'",
13
- "lint": "eslint . --ext .ts,.tsx --ignore-path .gitignore --fix",
14
- "clean": "rimraf dist",
15
- "build": "npm run clean && rollup -c",
13
+ "build": "tsup",
14
+ "dev": "tsup --watch",
15
+ "lint": "eslint . --max-warnings 0",
16
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
17
+ "format": "prettier --check . --ignore-path .gitignore",
18
+ "format:fix": "prettier --write . --ignore-path .gitignore",
19
+ "test": "jest",
20
+ "test:watch": "jest --watch",
21
+ "typecheck": "tsc --noEmit",
16
22
  "storybook": "storybook dev -p 6006",
17
- "build-storybook": "storybook build"
23
+ "build-storybook": "storybook build",
24
+ "serve-storybook": "npx serve storybook-static"
18
25
  },
19
- "author": "",
20
- "license": "ISC",
21
26
  "peerDependencies": {
22
- "@emotion/react": "^11.11.0",
23
- "@emotion/styled": "^11.11.0",
24
- "@mui/icons-material": "^6.1.5",
25
- "@mui/material": "^6.1.5",
26
- "react": "18.2.0",
27
- "react-dom": "18.2.0"
28
- },
29
- "dependencies": {
30
- "@hookform/resolvers": "^3.9.1",
31
- "@iconify/react": "^5.0.2",
32
- "@reduxjs/toolkit": "^2.3.0",
33
- "notistack": "^3.0.1",
34
- "react-hook-form": "^7.51.3",
35
- "react-redux": "^9.1.2",
36
- "yup": "^1.4.0"
27
+ "next": "^14.1.0",
28
+ "react": "^18.2.0",
29
+ "react-dom": "^18.2.0"
37
30
  },
38
31
  "devDependencies": {
39
- "@babel/core": "^7.26.0",
40
- "@babel/preset-env": "^7.26.0",
41
- "@babel/preset-react": "^7.25.9",
42
- "@chromatic-com/storybook": "^1.3.3",
43
- "@rollup/plugin-babel": "^6.0.4",
44
- "@rollup/plugin-commonjs": "^28.0.1",
45
- "@rollup/plugin-json": "^6.1.0",
46
- "@rollup/plugin-node-resolve": "^15.3.0",
47
- "@rollup/plugin-typescript": "^12.1.1",
48
- "@storybook/addon-essentials": "^8.0.9",
49
- "@storybook/addon-interactions": "^8.0.9",
50
- "@storybook/addon-links": "^8.0.9",
51
- "@storybook/addon-onboarding": "^8.0.9",
52
- "@storybook/blocks": "^8.0.9",
53
- "@storybook/react": "^8.0.9",
54
- "@storybook/react-vite": "^8.0.9",
55
- "@storybook/test": "^8.0.9",
56
- "@types/react": "^18.2.79",
57
- "@typescript-eslint/eslint-plugin": "^7.7.1",
58
- "@typescript-eslint/parser": "^7.7.1",
59
- "babel-plugin-syntax-dynamic-import": "^6.18.0",
60
- "eslint": "^8.57.0",
32
+ "@babel/core": "^7.27.1",
33
+ "@babel/preset-env": "^7.27.2",
34
+ "@babel/preset-react": "^7.27.1",
35
+ "@babel/preset-typescript": "^7.27.1",
36
+ "@storybook/addon-a11y": "^8.6.14",
37
+ "@storybook/addon-essentials": "^8.6.14",
38
+ "@storybook/addon-interactions": "^8.6.14",
39
+ "@storybook/addon-onboarding": "^8.6.14",
40
+ "@storybook/blocks": "^8.6.14",
41
+ "@storybook/react": "^8.6.14",
42
+ "@storybook/react-vite": "^8.6.14",
43
+ "@storybook/test": "^8.6.14",
44
+ "@testing-library/jest-dom": "^6.6.3",
45
+ "@testing-library/react": "^16.3.0",
46
+ "@testing-library/user-event": "^14.6.1",
47
+ "@types/jest": "^29.5.14",
48
+ "@types/node": "^20.11.0",
49
+ "@types/react": "^18.2.0",
50
+ "@types/react-dom": "^18.2.0",
51
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
52
+ "@typescript-eslint/parser": "^6.21.0",
53
+ "@vitejs/plugin-react": "^4.4.1",
54
+ "autoprefixer": "^10.4.21",
55
+ "babel-jest": "^29.7.0",
56
+ "eslint": "^8.56.0",
57
+ "eslint-config-next": "^14.1.0",
61
58
  "eslint-config-prettier": "^9.1.0",
62
- "eslint-plugin-prettier": "^5.1.3",
63
- "eslint-plugin-react": "^7.34.1",
59
+ "eslint-plugin-react": "^7.33.2",
64
60
  "eslint-plugin-react-hooks": "^4.6.0",
65
- "eslint-plugin-storybook": "^0.8.0",
61
+ "eslint-plugin-storybook": "^0.12.0",
62
+ "jest": "^29.7.0",
63
+ "jest-environment-jsdom": "^29.7.0",
64
+ "postcss": "^8.5.3",
66
65
  "prettier": "^3.2.5",
67
- "rollup": "^4.24.4",
68
- "rollup-plugin-dts": "^6.1.1",
69
- "rollup-plugin-postcss": "^4.0.2",
70
- "rollup-plugin-strip": "^1.2.2",
71
- "storybook": "^8.0.9",
72
- "typescript": "^5.4.5"
66
+ "prettier-plugin-tailwindcss": "^0.5.11",
67
+ "storybook": "^8.6.14",
68
+ "tailwindcss": "^3.4.17",
69
+ "ts-node": "^10.9.2",
70
+ "tsup": "^8.0.2",
71
+ "typescript": "^5.3.3"
72
+ },
73
+ "dependencies": {
74
+ "@radix-ui/react-dialog": "^1.1.13",
75
+ "@radix-ui/react-icons": "^1.3.0",
76
+ "@radix-ui/react-slot": "^1.0.2",
77
+ "class-variance-authority": "^0.7.1",
78
+ "clsx": "^2.1.1",
79
+ "lucide-react": "^0.330.0",
80
+ "next-themes": "^0.2.1",
81
+ "tailwind-merge": "^2.6.0",
82
+ "tailwindcss-animate": "^1.0.7",
83
+ "vaul": "^1.1.2"
84
+ },
85
+ "publishConfig": {
86
+ "access": "public"
87
+ },
88
+ "repository": {
89
+ "type": "git",
90
+ "url": "git+https://github.com/SegiiMelnykov/ui.git"
91
+ },
92
+ "author": "",
93
+ "license": "ISC",
94
+ "bugs": {
95
+ "url": "https://github.com/SegiiMelnykov/ui/issues"
73
96
  },
74
- "exports": {
75
- ".": {
76
- "import": "./dist/index.es.js",
77
- "require": "./dist/index.cjs.js",
78
- "types": "./dist/index.d.ts"
79
- },
80
- "./components": {
81
- "import": "./dist/components/index.es.js",
82
- "require": "./dist/components/index.cjs.js",
83
- "types": "./dist/components/index.d.ts"
84
- },
85
- "./hooks": {
86
- "import": "./dist/hooks/index.es.js",
87
- "require": "./dist/hooks/index.cjs.js",
88
- "types": "./dist/hooks/index.d.ts"
89
- },
90
- "./hook-forms": {
91
- "import": "./dist/hook-forms/index.es.js",
92
- "require": "./dist/hook-forms/index.cjs.js",
93
- "types": "./dist/hook-forms/index.d.ts"
94
- },
95
- "./redux": {
96
- "import": "./dist/redux/index.es.js",
97
- "require": "./dist/redux/index.cjs.js",
98
- "types": "./dist/redux/index.d.ts"
99
- },
100
- "./redux-toolkit": {
101
- "import": "./dist/redux-toolkit/index.es.js",
102
- "require": "./dist/redux-toolkit/index.cjs.js",
103
- "types": "./dist/redux-toolkit/index.d.ts"
104
- },
105
- "./snackbar": {
106
- "import": "./dist/snackbar/index.es.js",
107
- "require": "./dist/snackbar/index.cjs.js",
108
- "types": "./dist/snackbar/index.d.ts"
109
- }
110
- }
97
+ "homepage": "https://github.com/SegiiMelnykov/ui#readme",
98
+ "description": "A modern UI library for Next.js applications"
111
99
  }
@@ -1,7 +0,0 @@
1
- import { BoxProps } from "@mui/material/Box";
2
- import { IconifyProps } from "./types";
3
- interface Props extends BoxProps {
4
- icon: IconifyProps;
5
- }
6
- declare const Iconify: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<SVGElement>>;
7
- export default Iconify;
@@ -1,2 +0,0 @@
1
- export * from "./types";
2
- export { default } from "./iconify";
@@ -1,2 +0,0 @@
1
- import { IconifyIcon } from "@iconify/react";
2
- export type IconifyProps = IconifyIcon | string;