@me1a/ui 2.0.14 → 2.0.16
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.mts +1480 -0
- package/dist/index.d.ts +1480 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +2 -32
- package/dist/chunk-472YNZU2.mjs +0 -2
- package/dist/chunk-472YNZU2.mjs.map +0 -1
- package/dist/chunk-FWZYVYLU.mjs +0 -2
- package/dist/chunk-FWZYVYLU.mjs.map +0 -1
- package/dist/chunk-GH5JAZCC.js +0 -2
- package/dist/chunk-GH5JAZCC.js.map +0 -1
- package/dist/chunk-H3TEQK57.mjs +0 -2
- package/dist/chunk-H3TEQK57.mjs.map +0 -1
- package/dist/chunk-IPKT3LIP.js +0 -2
- package/dist/chunk-IPKT3LIP.js.map +0 -1
- package/dist/chunk-KITWXTCP.js +0 -2
- package/dist/chunk-KITWXTCP.js.map +0 -1
- package/dist/chunk-NCY2ZNET.js +0 -2
- package/dist/chunk-NCY2ZNET.js.map +0 -1
- package/dist/chunk-OAVWSSYJ.mjs +0 -2
- package/dist/chunk-OAVWSSYJ.mjs.map +0 -1
- package/dist/chunk-Q6STEQO7.js +0 -2
- package/dist/chunk-Q6STEQO7.js.map +0 -1
- package/dist/chunk-QY2HB6BB.mjs +0 -2
- package/dist/chunk-QY2HB6BB.mjs.map +0 -1
- package/dist/chunk-XY7LUWOK.mjs +0 -2
- package/dist/chunk-XY7LUWOK.mjs.map +0 -1
- package/dist/chunk-ZEUOBWG4.js +0 -2
- package/dist/chunk-ZEUOBWG4.js.map +0 -1
- package/dist/components/atoms/index.d.mts +0 -483
- package/dist/components/atoms/index.d.ts +0 -483
- package/dist/components/atoms/index.js +0 -2
- package/dist/components/atoms/index.js.map +0 -1
- package/dist/components/atoms/index.mjs +0 -2
- package/dist/components/atoms/index.mjs.map +0 -1
- package/dist/components/molecules/index.d.mts +0 -368
- package/dist/components/molecules/index.d.ts +0 -368
- package/dist/components/molecules/index.js +0 -2
- package/dist/components/molecules/index.js.map +0 -1
- package/dist/components/molecules/index.mjs +0 -2
- package/dist/components/molecules/index.mjs.map +0 -1
- package/dist/components/organisms/index.d.mts +0 -531
- package/dist/components/organisms/index.d.ts +0 -531
- package/dist/components/organisms/index.js +0 -2
- package/dist/components/organisms/index.js.map +0 -1
- package/dist/components/organisms/index.mjs +0 -2
- package/dist/components/organisms/index.mjs.map +0 -1
- package/dist/hooks/index.d.mts +0 -3
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/index.js +0 -2
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs +0 -2
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/input-TJ_d3ROF.d.mts +0 -12
- package/dist/input-TJ_d3ROF.d.ts +0 -12
- package/dist/tooltip-Bam0zJCO.d.mts +0 -104
- package/dist/tooltip-Bam0zJCO.d.ts +0 -104
- package/dist/types/index.d.mts +0 -2
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +0 -1
- package/dist/types/index.mjs +0 -2
- package/dist/types/index.mjs.map +0 -1
- package/dist/utils/index.d.mts +0 -5
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/index.js +0 -2
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -2
- package/dist/utils/index.mjs.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a}from'../../chunk-QY2HB6BB.mjs';export{b as Button,c as Separator,d as Sheet,f as SheetClose,i as SheetContent,m as SheetDescription,k as SheetFooter,j as SheetHeader,h as SheetOverlay,g as SheetPortal,l as SheetTitle,e as SheetTrigger,n as Skeleton,p as Tooltip,r as TooltipContent,o as TooltipProvider,q as TooltipTrigger,a as buttonVariants}from'../../chunk-FWZYVYLU.mjs';import {a as a$1}from'../../chunk-472YNZU2.mjs';export{a as Input}from'../../chunk-472YNZU2.mjs';import {a as a$3}from'../../chunk-OAVWSSYJ.mjs';import {c,a as a$2,b}from'../../chunk-H3TEQK57.mjs';import*as y from'react';import {cva}from'class-variance-authority';import {Loader2,X}from'lucide-react';import {jsxs,jsx}from'react/jsx-runtime';import*as m from'@radix-ui/react-dialog';import*as f from'@radix-ui/react-avatar';var K=cva("w-full",{variants:{variant:{default:"",error:"border-destructive focus-visible:ring-destructive"},size:{default:"h-10",sm:"h-8 text-xs",lg:"h-12 text-base"}},defaultVariants:{variant:"default",size:"default"}}),E=y.forwardRef((X,D)=>{var u=X,{className:o,variant:t,size:e,startIcon:r,endIcon:a$4,loading:l=false,error:d,label:p,helperText:c$1,disabled:g}=u,h=c(u,["className","variant","size","startIcon","endIcon","loading","error","label","helperText","disabled"]);let A=y.useId();return jsxs("div",{className:"w-full space-y-2",children:[p&&jsx(a,{htmlFor:A,children:p}),jsxs("div",{className:"relative",children:[r&&jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:r}),jsx(a$1,a$2({id:A,className:a$3(K({variant:d?"error":t,size:e,className:o}),r&&"pl-9",(a$4||l)&&"pr-9"),ref:D,disabled:g||l},h)),(a$4||l)&&jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:l?jsx(Loader2,{className:"h-4 w-4 animate-spin"}):a$4})]}),(d||c$1)&&jsx("p",{className:a$3("text-sm",d?"text-destructive":"text-muted-foreground"),children:d||c$1})]})});E.displayName="TextField";var Q=y.forwardRef((d,l)=>{var p=d,{className:o,maxWidth:t="lg",disablePadding:e=false,fluid:r=false}=p,a=c(p,["className","maxWidth","disablePadding","fluid"]);return jsx("div",a$2({ref:l,className:a$3("mx-auto w-full",!e&&"px-4 sm:px-6 lg:px-8",!r&&{"max-w-screen-sm":t==="sm","max-w-screen-md":t==="md","max-w-screen-lg":t==="lg","max-w-screen-xl":t==="xl","max-w-full":t==="full"},o)},a))});Q.displayName="Container";var Y=y.forwardRef((p,d)=>{var c$1=p,{as:o="div",className:t,width:e,height:r,style:a}=c$1,l=c(c$1,["as","className","width","height","style"]);let g=a$2({width:typeof e=="number"?`${e}px`:e,height:typeof r=="number"?`${r}px`:r},a);return jsx(o,a$2({ref:d,className:a$3(t),style:g},l))});Y.displayName="Box";var _=y.forwardRef((X,D)=>{var u=X,{className:o,direction:t="vertical",spacing:e="md",wrap:r=false,center:a=false,justify:l,align:d,width:p,height:c$1,style:g}=u,h=c(u,["className","direction","spacing","wrap","center","justify","align","width","height","style"]);return jsx("div",a$2({ref:D,className:a$3("flex",t==="vertical"?"flex-col":"flex-row",{"gap-0":e==="none","gap-1":e==="xs","gap-2":e==="sm","gap-4":e==="md","gap-6":e==="lg","gap-8":e==="xl"},r&&"flex-wrap",a&&"items-center justify-center",l&&{"justify-start":l==="start","justify-end":l==="end","justify-center":l==="center","justify-between":l==="between","justify-around":l==="around","justify-evenly":l==="evenly"},d&&{"items-start":d==="start","items-end":d==="end","items-center":d==="center","items-stretch":d==="stretch","items-baseline":d==="baseline"},o),style:a$2({width:p,height:c$1},g)},h))});_.displayName="Stack";var rt=m.Root,ot=m.Trigger,te=m.Portal,it=m.Close,V=y.forwardRef((r,e)=>{var a=r,{className:o}=a,t=c(a,["className"]);return jsx(m.Overlay,a$2({ref:e,className:a$3("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",o)},t))});V.displayName=m.Overlay.displayName;var ae=y.forwardRef((a,r)=>{var l=a,{className:o,children:t}=l,e=c(l,["className","children"]);return jsxs(te,{children:[jsx(V,{}),jsxs(m.Content,b(a$2({ref:r,className:a$3("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",o)},e),{children:[t,jsxs(m.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",children:[jsx(X,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})});ae.displayName=m.Content.displayName;var re=e=>{var r=e,{className:o}=r,t=c(r,["className"]);return jsx("div",a$2({className:a$3("flex flex-col space-y-1.5 text-center sm:text-left",o)},t))};re.displayName="DialogHeader";var oe=e=>{var r=e,{className:o}=r,t=c(r,["className"]);return jsx("div",a$2({className:a$3("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",o)},t))};oe.displayName="DialogFooter";var ie=y.forwardRef((r,e)=>{var a=r,{className:o}=a,t=c(a,["className"]);return jsx(m.Title,a$2({ref:e,className:a$3("text-lg font-semibold leading-none tracking-tight",o)},t))});ie.displayName=m.Title.displayName;var se=y.forwardRef((r,e)=>{var a=r,{className:o}=a,t=c(a,["className"]);return jsx(m.Description,a$2({ref:e,className:a$3("text-sm text-muted-foreground",o)},t))});se.displayName=m.Description.displayName;var z=y.forwardRef((r,e)=>{var a=r,{className:o}=a,t=c(a,["className"]);return jsx(f.Root,a$2({ref:e,className:a$3("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",o)},t))});z.displayName=f.Root.displayName;var B=y.forwardRef((r,e)=>{var a=r,{className:o}=a,t=c(a,["className"]);return jsx(f.Image,a$2({ref:e,className:a$3("aspect-square h-full w-full",o)},t))});B.displayName=f.Image.displayName;var I=y.forwardRef((r,e)=>{var a=r,{className:o}=a,t=c(a,["className"]);return jsx(f.Fallback,a$2({ref:e,className:a$3("flex h-full w-full items-center justify-center rounded-full bg-muted",o)},t))});I.displayName=f.Fallback.displayName;var T=cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white hover:bg-green-500/80",warning:"border-transparent bg-yellow-500 text-white hover:bg-yellow-500/80",info:"border-transparent bg-blue-500 text-white hover:bg-blue-500/80"},size:{default:"h-5",sm:"h-4 text-[10px]",lg:"h-6 text-sm"}},defaultVariants:{variant:"default",size:"default"}});var $=y.forwardRef((c$1,p)=>{var g=c$1,{className:o,variant:t,size:e,icon:r,iconAfter:a,children:l}=g,d=c(g,["className","variant","size","icon","iconAfter","children"]);return jsxs("div",b(a$2({ref:p,className:a$3(T({variant:t,size:e}),o)},d),{children:[r&&jsx("span",{className:"mr-1",children:r}),l,a&&jsx("span",{className:"ml-1",children:a})]}))});$.displayName="Badge";var de=cva("",{variants:{variant:{h1:"scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl",h2:"scroll-m-20 text-3xl font-semibold tracking-tight",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold tracking-tight",h5:"scroll-m-20 text-lg font-semibold tracking-tight",h6:"scroll-m-20 text-base font-semibold tracking-tight",p:"leading-7 [&:not(:first-child)]:mt-6",blockquote:"mt-6 border-l-2 border-slate-300 pl-6 italic",list:"my-6 ml-6 list-disc [&>li]:mt-2",lead:"text-xl text-muted-foreground",large:"text-lg font-semibold",small:"text-sm font-medium leading-none",muted:"text-sm text-muted-foreground"},align:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"}},defaultVariants:{variant:"p",align:"left"}}),pe=y.forwardRef((d,l)=>{var p=d,{className:o,variant:t,align:e,as:r="p"}=p,a=c(p,["className","variant","align","as"]);return jsx(r,a$2({className:a$3(de({variant:t,align:e,className:o})),ref:l},a))});pe.displayName="Typography";function Et({className:o,size:t="default",text:e,color:r="primary"}){let a={sm:"h-4 w-4",default:"h-8 w-8",lg:"h-12 w-12"},d={primary:"text-primary",secondary:"text-secondary",accent:"text-accent",muted:"text-muted-foreground",destructive:"text-destructive"}[r]||`text-[${r}]`;return jsxs("div",{className:a$3("fixed inset-0 z-50 flex min-h-screen flex-col items-center justify-center bg-background/80 backdrop-blur-sm",o),role:"alert","aria-live":"assertive",children:[jsx(Loader2,{className:a$3("animate-spin",d,a[t]),"aria-hidden":"true"}),e&&jsx("p",{className:"mt-4 text-sm text-muted-foreground","aria-label":e,children:e})]})}export{z as Avatar,I as AvatarFallback,B as AvatarImage,$ as Badge,Y as Box,Q as Container,rt as Dialog,it as DialogClose,ae as DialogContent,se as DialogDescription,oe as DialogFooter,re as DialogHeader,V as DialogOverlay,te as DialogPortal,ie as DialogTitle,ot as DialogTrigger,Et as PageLoader,_ as Stack,E as TextField,pe as Typography,T as badgeVariants,de as typographyVariants};//# sourceMappingURL=index.mjs.map
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../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/atoms/avatar/avatar.tsx","../../../src/components/atoms/badge/badge.variants.ts","../../../src/components/atoms/badge/badge.tsx","../../../src/components/atoms/typography/typography.tsx","../../../src/components/atoms/page-loader/page-loader.tsx"],"names":["textFieldVariants","cva","TextField","P","_a","ref","_b","className","variant","size","startIcon","endIcon","loading","error","label","helperText","disabled","props","__objRest","id","jsxs","jsx","Label","Input","__spreadValues","cn","Loader2","Container","H","maxWidth","disablePadding","fluid","Box","F","Component","width","height","style","dimensionStyles","Stack","M","direction","spacing","wrap","center","justify","align","Dialog","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","DialogContent","children","__spreadProps","X","DialogHeader","DialogFooter","DialogTitle","DialogDescription","Avatar","R","AvatarImage","AvatarFallback","badgeVariants","Badge","S","icon","iconAfter","typographyVariants","Typography","q","PageLoader","text","color","sizeClasses","loaderColor"],"mappings":"wyBAYMA,IAAAA,CAAAA,CAAoBC,GAAI,CAAA,QAAA,CAAU,CACtC,QAAU,CAAA,CACR,OAAS,CAAA,CACP,QAAS,EACT,CAAA,KAAA,CAAO,mDACT,CAAA,CACA,KAAM,CACJ,OAAA,CAAS,MACT,CAAA,EAAA,CAAI,cACJ,EAAI,CAAA,gBACN,CACF,CAAA,CACA,eAAiB,CAAA,CACf,OAAS,CAAA,SAAA,CACT,KAAM,SACR,CACF,CAAC,CAAA,CAyBKC,EAAkBC,CACtB,CAAA,UAAA,CAAA,CACEC,CAaAC,CAAAA,CAAAA,GACG,CAdH,IAAAC,CAAAA,CAAAF,CACE,CAAA,CAAA,SAAA,CAAAG,EACA,OAAAC,CAAAA,CAAAA,CACA,IAAAC,CAAAA,CAAAA,CACA,UAAAC,CACA,CAAA,OAAA,CAAAC,GACA,CAAA,OAAA,CAAAC,EAAU,KACV,CAAA,KAAA,CAAAC,CACA,CAAA,KAAA,CAAAC,EACA,UAAAC,CAAAA,GAAAA,CACA,QAAAC,CAAAA,CAjEN,CAuDIV,CAAAA,CAAAA,CAWKW,CAAAC,CAAAA,CAAAA,CAXLZ,EAWK,CAVH,WAAA,CACA,SACA,CAAA,MAAA,CACA,YACA,SACA,CAAA,SAAA,CACA,OACA,CAAA,OAAA,CACA,aACA,UAKF,CAAA,CAAA,CAAA,IAAMa,CAAW,CAAAhB,CAAA,CAAA,KAAA,GAEjB,OACEiB,IAAAA,CAAC,KAAI,CAAA,CAAA,SAAA,CAAU,mBACZ,QAAAN,CAAAA,CAAAA,CAAAA,EAASO,GAACC,CAAAA,CAAAA,CA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AAA,CAAG,aAAY,CAAA,MAAA,CAAO,EAC1FgE,CACCpD,EAAAA,GAAAA,CAAC,GAAE,CAAA,CAAA,SAAA,CAAU,qCAAqC,YAAYoD,CAAAA,CAAAA,CAC3D,QAAAA,CAAAA,CAAAA,CACH,GAEJ,CAEJ","file":"index.mjs","sourcesContent":["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\"\nimport { Label } from \"../label\"\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 * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-text-field--docs\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 && <Label htmlFor={id}>{label}</Label>}\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 * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-container--docs\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 * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-box--docs\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 * // With custom dimensions\n * <Box width=\"100px\" height=\"200px\">Fixed size content</Box>\n * <Box width=\"50%\" height=\"auto\">Responsive 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\ntype DimensionValue = string | number\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 /**\n * The width of the Box component.\n * Can be a number (interpreted as pixels) or a string (e.g., \"100%\", \"50px\", \"10rem\").\n */\n width?: DimensionValue\n\n /**\n * The height of the Box component.\n * Can be a number (interpreted as pixels) or a string (e.g., \"100%\", \"50px\", \"10rem\").\n */\n height?: DimensionValue\n}\n\nconst Box = React.forwardRef<HTMLDivElement, BoxProps>(\n ({ as: Component = \"div\", className, width, height, style, ...props }, ref) => {\n const dimensionStyles = {\n width: typeof width === \"number\" ? `${width}px` : width,\n height: typeof height === \"number\" ? `${height}px` : height,\n ...style\n }\n\n return <Component ref={ref} className={cn(className)} style={dimensionStyles} {...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 * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-stack--docs\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 * // Stack with custom dimensions\n * <Stack width=\"100%\" height=\"200px\">\n * <div>Full width, fixed height stack</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 * The width of the stack container.\n * Can be any valid CSS width value (e.g., \"100%\", \"200px\", \"50vw\").\n *\n * @default undefined\n */\n width?: string\n /**\n * The height of the stack container.\n * Can be any valid CSS height value (e.g., \"100%\", \"200px\", \"50vh\").\n *\n * @default undefined\n */\n height?: string\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 width,\n height,\n style,\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 style={{\n width,\n height,\n ...style\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\n/**\n * Dialog component for creating accessible dialogs with overlay and content.\n * Built on top of Radix UI's Dialog primitive.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-dialog--docs\n *\n * @example\n * ```tsx\n * <Dialog>\n * <DialogTrigger>Open Dialog</DialogTrigger>\n * <DialogContent>Dialog Content</DialogContent>\n * </Dialog>\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","import * as React from \"react\"\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\"\nimport { cn } from \"@/utils/index\"\nimport type { AvatarProps, AvatarImageProps, AvatarFallbackProps } from \"./avatar.types\"\n\n/**\n * Avatar component that displays a user's profile picture or fallback.\n * Built on top of Radix UI's Avatar primitive.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-avatar--docs\n *\n * @example\n * ```tsx\n * <Avatar>\n * <AvatarImage src=\"/path/to/image.jpg\" alt=\"User avatar\" />\n * <AvatarFallback>JD</AvatarFallback>\n * </Avatar>\n * ```\n */\nconst Avatar = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Root>, AvatarProps>(\n ({ className, ...props }, ref) => (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn(\"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\", className)}\n {...props}\n />\n )\n)\nAvatar.displayName = AvatarPrimitive.Root.displayName\n\n/**\n * AvatarImage component that displays the user's profile picture.\n * Falls back to AvatarFallback if the image fails to load.\n */\nconst AvatarImage = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Image>,\n AvatarImageProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={cn(\"aspect-square h-full w-full\", className)}\n {...props}\n />\n))\nAvatarImage.displayName = AvatarPrimitive.Image.displayName\n\n/**\n * AvatarFallback component that displays when the image fails to load.\n * Typically shows the user's initials or a placeholder icon.\n */\nconst AvatarFallback = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\n AvatarFallbackProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn(\n \"flex h-full w-full items-center justify-center rounded-full bg-muted\",\n className\n )}\n {...props}\n />\n))\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName\n\nexport { Avatar, AvatarImage, AvatarFallback }\n","import { cva } from \"class-variance-authority\"\n\nexport const badgeVariants = cva(\n \"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n {\n variants: {\n variant: {\n default: \"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n destructive:\n \"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\n outline: \"text-foreground\",\n success: \"border-transparent bg-green-500 text-white hover:bg-green-500/80\",\n warning: \"border-transparent bg-yellow-500 text-white hover:bg-yellow-500/80\",\n info: \"border-transparent bg-blue-500 text-white hover:bg-blue-500/80\"\n },\n size: {\n default: \"h-5\",\n sm: \"h-4 text-[10px]\",\n lg: \"h-6 text-sm\"\n }\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\"\n }\n }\n)\n","import * as React from \"react\"\nimport { cn } from \"@/utils/index\"\nimport { badgeVariants } from \"./badge.variants\"\nimport type { BadgeProps } from \"./badge.types\"\n\n/**\n * Badge component for displaying status, counts, or labels.\n * Supports various variants, sizes, and optional icons.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-badge--docs\n *\n * @example\n * ```tsx\n * <Badge variant=\"success\">Active</Badge>\n * <Badge variant=\"warning\" icon={<AlertIcon />}>Warning</Badge>\n * <Badge variant=\"info\" size=\"lg\" iconAfter={<ArrowIcon />}>New</Badge>\n * ```\n */\nconst Badge = React.forwardRef<HTMLDivElement, BadgeProps>(\n ({ className, variant, size, icon, iconAfter, children, ...props }, ref) => {\n return (\n <div ref={ref} className={cn(badgeVariants({ variant, size }), className)} {...props}>\n {icon && <span className=\"mr-1\">{icon}</span>}\n {children}\n {iconAfter && <span className=\"ml-1\">{iconAfter}</span>}\n </div>\n )\n }\n)\n\nBadge.displayName = \"Badge\"\n\nexport { Badge, badgeVariants }\n","import * as React from \"react\"\nimport { cn } from \"@/utils\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nconst typographyVariants = cva(\"\", {\n variants: {\n variant: {\n h1: \"scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl\",\n h2: \"scroll-m-20 text-3xl font-semibold tracking-tight\",\n h3: \"scroll-m-20 text-2xl font-semibold tracking-tight\",\n h4: \"scroll-m-20 text-xl font-semibold tracking-tight\",\n h5: \"scroll-m-20 text-lg font-semibold tracking-tight\",\n h6: \"scroll-m-20 text-base font-semibold tracking-tight\",\n p: \"leading-7 [&:not(:first-child)]:mt-6\",\n blockquote: \"mt-6 border-l-2 border-slate-300 pl-6 italic\",\n list: \"my-6 ml-6 list-disc [&>li]:mt-2\",\n lead: \"text-xl text-muted-foreground\",\n large: \"text-lg font-semibold\",\n small: \"text-sm font-medium leading-none\",\n muted: \"text-sm text-muted-foreground\"\n },\n align: {\n left: \"text-left\",\n center: \"text-center\",\n right: \"text-right\",\n justify: \"text-justify\"\n }\n },\n defaultVariants: {\n variant: \"p\",\n align: \"left\"\n }\n})\n\nexport interface TypographyProps\n extends React.HTMLAttributes<HTMLElement>,\n VariantProps<typeof typographyVariants> {\n as?: React.ElementType\n}\n\n/**\n * Typography component for creating accessible text elements.\n * Built on top of shadcn/ui's Typography component.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-typography--docs\n *\n */\nconst Typography = React.forwardRef<HTMLElement, TypographyProps>(\n ({ className, variant, align, as: Component = \"p\", ...props }, ref) => {\n return (\n <Component\n className={cn(typographyVariants({ variant, align, className }))}\n ref={ref}\n {...props}\n />\n )\n }\n)\n\nTypography.displayName = \"Typography\"\n\nexport { Typography, typographyVariants }\n","import { cn } from \"@/utils\"\nimport { Loader2 } from \"lucide-react\"\n\nexport interface PageLoaderProps {\n /**\n * Optional className to extend the component's styles\n */\n className?: string\n /**\n * Optional size of the loader (default: \"default\")\n */\n size?: \"sm\" | \"default\" | \"lg\"\n /**\n * Optional text to display below the loader\n */\n text?: string\n /**\n * Optional color of the loader (default: \"primary\")\n */\n color?: \"primary\" | \"secondary\" | \"accent\" | \"muted\" | \"destructive\" | string\n}\n\n/**\n * PageLoader component for displaying a loading indicator.\n *\n * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-page-loader--docs\n *\n */\n\nexport function PageLoader({\n className,\n size = \"default\",\n text,\n color = \"primary\"\n}: PageLoaderProps) {\n const sizeClasses = {\n sm: \"h-4 w-4\",\n default: \"h-8 w-8\",\n lg: \"h-12 w-12\"\n }\n\n const colorClasses = {\n primary: \"text-primary\",\n secondary: \"text-secondary\",\n accent: \"text-accent\",\n muted: \"text-muted-foreground\",\n destructive: \"text-destructive\"\n }\n\n const loaderColor = colorClasses[color as keyof typeof colorClasses] || `text-[${color}]`\n\n return (\n <div\n className={cn(\n \"fixed inset-0 z-50 flex min-h-screen flex-col items-center justify-center bg-background/80 backdrop-blur-sm\",\n className\n )}\n role=\"alert\"\n aria-live=\"assertive\"\n >\n <Loader2 className={cn(\"animate-spin\", loaderColor, sizeClasses[size])} aria-hidden=\"true\" />\n {text && (\n <p className=\"mt-4 text-sm text-muted-foreground\" aria-label={text}>\n {text}\n </p>\n )}\n </div>\n )\n}\n"]}
|
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
import * as React$1 from 'react';
|
|
2
|
-
import { TextareaHTMLAttributes } from 'react';
|
|
3
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import * as react_hook_form from 'react-hook-form';
|
|
8
|
-
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
9
|
-
import { I as Input } from '../../input-TJ_d3ROF.mjs';
|
|
10
|
-
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
11
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
12
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Card is a flexible container component that can be used to group related content and actions.
|
|
16
|
-
* It provides a consistent visual style with a subtle border, shadow, and rounded corners.
|
|
17
|
-
*
|
|
18
|
-
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-card--docs
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* // Basic card
|
|
23
|
-
* <Card>
|
|
24
|
-
* <CardHeader>
|
|
25
|
-
* <CardTitle>Card Title</CardTitle>
|
|
26
|
-
* <CardDescription>Card Description</CardDescription>
|
|
27
|
-
* </CardHeader>
|
|
28
|
-
* <CardContent>
|
|
29
|
-
* <p>Card content goes here.</p>
|
|
30
|
-
* </CardContent>
|
|
31
|
-
* <CardFooter>
|
|
32
|
-
* <Button>Action</Button>
|
|
33
|
-
* </CardFooter>
|
|
34
|
-
* </Card>
|
|
35
|
-
*
|
|
36
|
-
* // Card with custom styling
|
|
37
|
-
* <Card className="bg-primary text-primary-foreground">
|
|
38
|
-
* <CardHeader>
|
|
39
|
-
* <CardTitle>Custom Styled Card</CardTitle>
|
|
40
|
-
* </CardHeader>
|
|
41
|
-
* <CardContent>
|
|
42
|
-
* <p>This card has custom background and text colors.</p>
|
|
43
|
-
* </CardContent>
|
|
44
|
-
* </Card>
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* The main card container component.
|
|
50
|
-
* Provides the base styling for the card including border, shadow, and rounded corners.
|
|
51
|
-
*/
|
|
52
|
-
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
53
|
-
/**
|
|
54
|
-
* Header section of the card.
|
|
55
|
-
* Typically contains the card title and description.
|
|
56
|
-
* Includes padding and spacing for consistent layout.
|
|
57
|
-
*/
|
|
58
|
-
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
/**
|
|
60
|
-
* Title component for the card.
|
|
61
|
-
* Should be used within CardHeader.
|
|
62
|
-
* Provides consistent typography styling for card titles.
|
|
63
|
-
*/
|
|
64
|
-
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
65
|
-
/**
|
|
66
|
-
* Description component for the card.
|
|
67
|
-
* Should be used within CardHeader.
|
|
68
|
-
* Provides consistent typography styling for card descriptions.
|
|
69
|
-
*/
|
|
70
|
-
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
71
|
-
/**
|
|
72
|
-
* Main content section of the card.
|
|
73
|
-
* Includes padding and removes top padding to maintain consistent spacing with the header.
|
|
74
|
-
*/
|
|
75
|
-
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
76
|
-
/**
|
|
77
|
-
* Footer section of the card.
|
|
78
|
-
* Typically contains action buttons or additional information.
|
|
79
|
-
* Includes padding and removes top padding to maintain consistent spacing with the content.
|
|
80
|
-
*/
|
|
81
|
-
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
82
|
-
|
|
83
|
-
declare const navigationMenuTriggerStyle: (props?: ({
|
|
84
|
-
variant?: "default" | "link" | "ghost" | "mobile" | null | undefined;
|
|
85
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
86
|
-
|
|
87
|
-
interface NavigationMenuProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> {
|
|
88
|
-
/**
|
|
89
|
-
* The content of the navigation menu
|
|
90
|
-
*/
|
|
91
|
-
children: React.ReactNode;
|
|
92
|
-
/**
|
|
93
|
-
* Optional className for the root element
|
|
94
|
-
*/
|
|
95
|
-
className?: string;
|
|
96
|
-
}
|
|
97
|
-
interface NavigationMenuListProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List> {
|
|
98
|
-
/**
|
|
99
|
-
* Optional className for the list element
|
|
100
|
-
*/
|
|
101
|
-
className?: string;
|
|
102
|
-
}
|
|
103
|
-
interface NavigationMenuItemProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Item> {
|
|
104
|
-
/**
|
|
105
|
-
* Optional className for the item element
|
|
106
|
-
*/
|
|
107
|
-
className?: string;
|
|
108
|
-
}
|
|
109
|
-
interface NavigationMenuTriggerProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>, VariantProps<typeof navigationMenuTriggerStyle> {
|
|
110
|
-
/**
|
|
111
|
-
* Optional className for the trigger element
|
|
112
|
-
*/
|
|
113
|
-
className?: string;
|
|
114
|
-
}
|
|
115
|
-
interface NavigationMenuContentProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content> {
|
|
116
|
-
/**
|
|
117
|
-
* Optional className for the content element
|
|
118
|
-
*/
|
|
119
|
-
className?: string;
|
|
120
|
-
}
|
|
121
|
-
interface NavigationMenuLinkProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Link> {
|
|
122
|
-
/**
|
|
123
|
-
* Optional className for the link element
|
|
124
|
-
*/
|
|
125
|
-
className?: string;
|
|
126
|
-
}
|
|
127
|
-
interface NavigationMenuViewportProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport> {
|
|
128
|
-
/**
|
|
129
|
-
* Optional className for the viewport element
|
|
130
|
-
*/
|
|
131
|
-
className?: string;
|
|
132
|
-
}
|
|
133
|
-
interface NavigationMenuIndicatorProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator> {
|
|
134
|
-
/**
|
|
135
|
-
* Optional className for the indicator element
|
|
136
|
-
*/
|
|
137
|
-
className?: string;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* NavigationMenu component for creating accessible navigation menus with dropdowns.
|
|
142
|
-
* Built on top of Radix UI's NavigationMenu primitive.
|
|
143
|
-
*
|
|
144
|
-
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-navigation-menu--docs
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* ```tsx
|
|
148
|
-
* <NavigationMenu>
|
|
149
|
-
* <NavigationMenuList>
|
|
150
|
-
* <NavigationMenuItem>
|
|
151
|
-
* <NavigationMenuTrigger>Getting Started</NavigationMenuTrigger>
|
|
152
|
-
* <NavigationMenuContent>
|
|
153
|
-
* <ul className="grid gap-3 p-4 md:w-[400px] lg:w-[500px]">
|
|
154
|
-
* <li className="row-span-3">
|
|
155
|
-
* <NavigationMenuLink asChild>
|
|
156
|
-
* <a className="flex h-full w-full select-none flex-col justify-end rounded-md bg-gradient-to-b from-muted/50 to-muted p-6 no-underline outline-none focus:shadow-md">
|
|
157
|
-
* <div className="mb-2 mt-4 text-lg font-medium">shadcn/ui</div>
|
|
158
|
-
* <p className="text-sm leading-tight text-muted-foreground">
|
|
159
|
-
* Beautifully designed components built with Radix UI and Tailwind CSS.
|
|
160
|
-
* </p>
|
|
161
|
-
* </a>
|
|
162
|
-
* </NavigationMenuLink>
|
|
163
|
-
* </li>
|
|
164
|
-
* </ul>
|
|
165
|
-
* </NavigationMenuContent>
|
|
166
|
-
* </NavigationMenuItem>
|
|
167
|
-
* </NavigationMenuList>
|
|
168
|
-
* </NavigationMenu>
|
|
169
|
-
* ```
|
|
170
|
-
*/
|
|
171
|
-
declare const NavigationMenu: React$1.ForwardRefExoticComponent<NavigationMenuProps & React$1.RefAttributes<HTMLElement>>;
|
|
172
|
-
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>>;
|
|
173
|
-
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
174
|
-
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
175
|
-
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
176
|
-
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
177
|
-
declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<NavigationMenuViewportProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
178
|
-
declare const NavigationMenuIndicator: React$1.ForwardRefExoticComponent<NavigationMenuIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
179
|
-
|
|
180
|
-
interface RHFTextFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends Omit<React$1.ComponentProps<typeof Input>, "name"> {
|
|
181
|
-
/** The name of the field in the form */
|
|
182
|
-
name: TName;
|
|
183
|
-
/** Optional label for the field */
|
|
184
|
-
label?: string;
|
|
185
|
-
/** Optional description text below the field */
|
|
186
|
-
description?: string;
|
|
187
|
-
/** Optional warning text to display */
|
|
188
|
-
warningText?: string;
|
|
189
|
-
/** Whether the field is required */
|
|
190
|
-
required?: boolean;
|
|
191
|
-
/** Whether the field is disabled */
|
|
192
|
-
disabled?: boolean;
|
|
193
|
-
/** Whether the field is read-only */
|
|
194
|
-
readOnly?: boolean;
|
|
195
|
-
/** The type of input (text, number, email, etc.) */
|
|
196
|
-
type?: React$1.HTMLInputTypeAttribute;
|
|
197
|
-
/** Optional placeholder text */
|
|
198
|
-
placeholder?: string;
|
|
199
|
-
/** Optional aria-label for accessibility */
|
|
200
|
-
"aria-label"?: string;
|
|
201
|
-
/** Optional aria-describedby for accessibility */
|
|
202
|
-
"aria-describedby"?: string;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* A text field component that integrates with React Hook Form.
|
|
207
|
-
* Provides form validation, error handling, and accessibility features.
|
|
208
|
-
*
|
|
209
|
-
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-rhftextfield--docs
|
|
210
|
-
*
|
|
211
|
-
* * @example
|
|
212
|
-
* ```tsx
|
|
213
|
-
* <Form>
|
|
214
|
-
* <RHFTextField name="name" label="Name" />
|
|
215
|
-
* <RHFTextField name="email" label="Email" />
|
|
216
|
-
* </Form>
|
|
217
|
-
* ```
|
|
218
|
-
*/
|
|
219
|
-
declare function RHFTextField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ name, label, description, className, type, warningText, required, disabled, readOnly, placeholder, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, onBlur, ...other }: RHFTextFieldProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
|
|
220
|
-
|
|
221
|
-
interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
222
|
-
/**
|
|
223
|
-
* Whether the textarea should automatically resize
|
|
224
|
-
*/
|
|
225
|
-
autoResize?: boolean;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Textarea component for creating accessible text areas.
|
|
230
|
-
* Built on top of shadcn/ui's Textarea component.
|
|
231
|
-
*
|
|
232
|
-
* @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-textarea--docs
|
|
233
|
-
*
|
|
234
|
-
* @example
|
|
235
|
-
* ```tsx
|
|
236
|
-
* <Textarea placeholder="Enter text" />
|
|
237
|
-
* ```
|
|
238
|
-
*/
|
|
239
|
-
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
240
|
-
|
|
241
|
-
interface RHFTextareaProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends Omit<React$1.ComponentProps<typeof Textarea>, "name"> {
|
|
242
|
-
/** The name of the field in the form */
|
|
243
|
-
name: TName;
|
|
244
|
-
/** Optional label for the field */
|
|
245
|
-
label?: string;
|
|
246
|
-
/** Optional description text below the field */
|
|
247
|
-
description?: string;
|
|
248
|
-
/** Optional warning text to display */
|
|
249
|
-
warningText?: string;
|
|
250
|
-
/** Whether the field is required */
|
|
251
|
-
required?: boolean;
|
|
252
|
-
/** Whether the field is disabled */
|
|
253
|
-
disabled?: boolean;
|
|
254
|
-
/** Whether the field is read-only */
|
|
255
|
-
readOnly?: boolean;
|
|
256
|
-
/** Optional placeholder text */
|
|
257
|
-
placeholder?: string;
|
|
258
|
-
/** Optional aria-label for accessibility */
|
|
259
|
-
"aria-label"?: string;
|
|
260
|
-
/** Optional aria-describedby for accessibility */
|
|
261
|
-
"aria-describedby"?: string;
|
|
262
|
-
/** Whether the textarea should automatically resize */
|
|
263
|
-
autoResize?: boolean;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* A textarea component that integrates with React Hook Form.
|
|
268
|
-
* Provides form validation, error handling, and accessibility features.
|
|
269
|
-
*
|
|
270
|
-
* @url https://segiimelnykov.github.io/ui/?path=/docs/molecules-rhf-rhftextarea--docs
|
|
271
|
-
*
|
|
272
|
-
* @example
|
|
273
|
-
* ```tsx
|
|
274
|
-
* <Form>
|
|
275
|
-
* <RHFTextarea name="description" label="Description" />
|
|
276
|
-
* </Form>
|
|
277
|
-
* ```
|
|
278
|
-
*/
|
|
279
|
-
declare function RHFTextarea<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ name, label, description, className, warningText, required, disabled, readOnly, placeholder, autoResize, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, onBlur, ...other }: RHFTextareaProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
|
|
280
|
-
|
|
281
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
282
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
283
|
-
declare const useFormField: () => {
|
|
284
|
-
invalid: boolean;
|
|
285
|
-
isDirty: boolean;
|
|
286
|
-
isTouched: boolean;
|
|
287
|
-
isValidating: boolean;
|
|
288
|
-
error?: react_hook_form.FieldError;
|
|
289
|
-
id: string;
|
|
290
|
-
name: string;
|
|
291
|
-
formItemId: string;
|
|
292
|
-
formDescriptionId: string;
|
|
293
|
-
formMessageId: string;
|
|
294
|
-
};
|
|
295
|
-
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
296
|
-
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
297
|
-
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
298
|
-
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
299
|
-
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Props interface for the Form component.
|
|
303
|
-
* Extends react-hook-form's FormProvider props.
|
|
304
|
-
*/
|
|
305
|
-
interface FormProps<TFieldValues extends FieldValues = FieldValues> {
|
|
306
|
-
/**
|
|
307
|
-
* The form context value
|
|
308
|
-
*/
|
|
309
|
-
context: React$1.Context<TFieldValues>;
|
|
310
|
-
/**
|
|
311
|
-
* The form children
|
|
312
|
-
*/
|
|
313
|
-
children: React$1.ReactNode;
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* Props interface for the FormField component.
|
|
317
|
-
* Extends react-hook-form's Controller props.
|
|
318
|
-
*/
|
|
319
|
-
interface FormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends ControllerProps<TFieldValues, TName> {
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* Props interface for the FormItem component.
|
|
323
|
-
* Extends HTML div attributes.
|
|
324
|
-
*/
|
|
325
|
-
interface FormItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Props interface for the FormLabel component.
|
|
329
|
-
* Extends Radix UI Label props.
|
|
330
|
-
*/
|
|
331
|
-
interface FormLabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* Props interface for the FormControl component.
|
|
335
|
-
* Extends Radix UI Slot props.
|
|
336
|
-
*/
|
|
337
|
-
interface FormControlProps extends React$1.ComponentPropsWithoutRef<typeof Slot> {
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* Props interface for the FormDescription component.
|
|
341
|
-
* Extends HTML paragraph attributes.
|
|
342
|
-
*/
|
|
343
|
-
interface FormDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Props interface for the FormMessage component.
|
|
347
|
-
* Extends HTML paragraph attributes.
|
|
348
|
-
*/
|
|
349
|
-
interface FormMessageProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
350
|
-
/**
|
|
351
|
-
* The message content
|
|
352
|
-
*/
|
|
353
|
-
children?: React$1.ReactNode;
|
|
354
|
-
}
|
|
355
|
-
/**
|
|
356
|
-
* Context value type for form field context
|
|
357
|
-
*/
|
|
358
|
-
type FormFieldContextValue<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
|
359
|
-
name: TName;
|
|
360
|
-
};
|
|
361
|
-
/**
|
|
362
|
-
* Context value type for form item context
|
|
363
|
-
*/
|
|
364
|
-
type FormItemContextValue = {
|
|
365
|
-
id: string;
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldContextValue, type FormFieldProps, FormItem, type FormItemContextValue, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, type FormProps, NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuIndicator, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps, RHFTextField, RHFTextarea, useFormField };
|