a
|
After Width: | Height: | Size: 418 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 928 KiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 2.6 MiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 927 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 245 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 463 KiB |
|
After Width: | Height: | Size: 2.2 MiB |
|
After Width: | Height: | Size: 224 KiB |
|
After Width: | Height: | Size: 1020 KiB |
|
After Width: | Height: | Size: 902 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 26 KiB |
@@ -0,0 +1,36 @@
|
||||
<svg width="1202" height="464" viewBox="0 0 1202 464" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<rect x="1050" y="59.9999" width="61" height="56" fill="url(#pattern0_222_54)"/>
|
||||
<rect x="43" y="24.9801" width="82.8127" height="75.9828" transform="rotate(-17.5565 43 24.9801)" fill="url(#pattern1_222_54)"/>
|
||||
<rect x="1111" y="398.315" width="73.9765" height="67.8754" transform="rotate(-17.5565 1111 398.315)" fill="url(#pattern2_222_54)"/>
|
||||
<rect y="298" width="43" height="39" fill="url(#pattern3_222_54)"/>
|
||||
<rect x="133" y="88.9999" width="25" height="27" fill="url(#pattern4_222_54)"/>
|
||||
<rect x="956" y="141" width="25" height="27" fill="url(#pattern5_222_54)"/>
|
||||
<rect x="529" y="318" width="41" height="38" fill="url(#pattern6_222_54)"/>
|
||||
<defs>
|
||||
<pattern id="pattern0_222_54" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0_222_54" transform="matrix(0.0107527 0 0 0.0117127 0 -0.00364823)"/>
|
||||
</pattern>
|
||||
<pattern id="pattern1_222_54" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image1_222_54" transform="matrix(0.00609756 0 0 0.00664566 0 -0.00174705)"/>
|
||||
</pattern>
|
||||
<pattern id="pattern2_222_54" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image1_222_54" transform="matrix(0.00609756 0 0 0.00664566 0 -0.00174702)"/>
|
||||
</pattern>
|
||||
<pattern id="pattern3_222_54" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image2_222_54" transform="matrix(0.0107527 0 0 0.0118555 0 -0.00385994)"/>
|
||||
</pattern>
|
||||
<pattern id="pattern4_222_54" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image3_222_54" transform="matrix(0.0172414 0 0 0.0159642 0 -0.00287356)"/>
|
||||
</pattern>
|
||||
<pattern id="pattern5_222_54" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image3_222_54" transform="matrix(0.0172414 0 0 0.0159642 0 -0.00287356)"/>
|
||||
</pattern>
|
||||
<pattern id="pattern6_222_54" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0_222_54" transform="matrix(0.0107771 0 0 0.0116279 -0.00113443 0)"/>
|
||||
</pattern>
|
||||
<image id="image0_222_54" width="93" height="86" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF0AAABWCAYAAACttpoAAAAACXBIWXMAAC4jAAAuIwF4pT92AAAGSElEQVR4nO2dz1HkOBSHP6gtXyEDfPUJNgK8EcBEQE8EMAmscQT0RjAmgoUItieCoS/b194M4Lh9YQ9+nhFGtmVbsiW2f1VUNZb/qD/LT09PT+6D19dXfNZukx0DN8A2SvJi5upY0eHcFTDQA5ABX3eb7GbuythQCNDPlc/pXJWwqRCgvyifz2arhUWFAP1J+XwiNj5ohQC9ruBb+x76DNpDn0EhQo/nrsBYhQD9ufb/uXavgBQC9Kf6ht0mi2eohzX9MncFBioGtrZPKu7okp8mrHARegihpeuU2j6hAF8BV5Qm7Jwy9HBr+1qhQrc6QNptsjNK4KeaYuvxnlDNizW3UQF+1LBL0/bBGgRdHrkz4DZK8ncd3QSKbZzEADjAPzaupaq3eZGKZsAFsNptsoXtStW00mw7GXtSQ+AvwOXYa9U1xKarfvMRZWdTTB2IEmhDj11gBjx18ST3hh4l+Rb4xNuQ6xVlq59yiD7oJgvwr8wEHAZ6L1GSP1C6bSr4U0rw1h/HBvW+wQrwNjkFDiNcRqlUylvwR8Cfu022HFkvE/Vq6YbAARaunYNRfnoDeIDr3SZ7cjxcN27pPYB/lqfYqUYPjgR8DKxrRafAkwVz09TqjFp6T+CFYZ1GycqINEryZ8oWXwc/2tzIuXWKu471EThYDAMo4B81xS7MTauv7itwsBx7iZL8OUryS+BeU2zL3HTKZ+DgKOAVJfkC+ENTZNW72W2yVLNtgcfAwWGUMUryG+BzQ7ET7yYE4OA4tCtfrD56rWTD3MTVh1CAwwTx9IbRayVTc/OtYXsMYQGHiSYxxJc/471LWWmwuZEnJRjgMOHMkQTKUppb7RBzkwKFwX7eAIeJp+vEpUzRu5TQ37s5p3tmxyvgMNMcqbiUX1p2seXdeAcc4GDOlRjSAS5pbq0vwIJycr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sgffW4HfterIo1mS47p18SKsbI6tx9qkUOvQgFQT0j/CDUqqCgE7z8Ho7ZSVsKRToTdrOXYEhCh16kAodepDjg9Ch713GGbRv6a4kEbx6isT9TD+CMloh/eROSploegw8TfGec1f6D5C9sM80rQAxAAAAAElFTkSuQmCC"/>
|
||||
<image id="image1_222_54" width="164" height="151" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAACXCAYAAACbW/BCAAAACXBIWXMAAC4jAAAuIwF4pT92AAALvklEQVR4nO2dzXXbuBaAP7+To63dQfiWWsVTQZQKJlNBnAri18DQrCBJBbErGKeCkSsYazNcPqWD5+Vwo7cgaFGMSVxIAAmA+M7JyY9pC7E/EcC9F5dnu92OhDlVmV8ulsXj1OOIjbMkpBlVmWfAI3AObIDVYln8b9JBRcS/ph5AgFxRywjwBng/3VDiIwl5OtnUA4iJJOTpZFMPICaSkKeTTT2AmEhCnk429QBiIgl5Oq+nHkBMJCHNuez+Q1XmF1MMJEaSkOa8JN9PkiaOIwmZ8IokpB1WUw8gFpKQCa9IQtohrSEtkYS0Q9plWyIJaYckpCWSkHZ4M/UAYiEJmfAKp0JWZf6lKvNdVebbqsyjXvhXZb6aegwx4PoO+Un9/hpYV2V+5fj1EoHjWshN68/nwLeqzL84fs2pCGZjU5X5ZVXmKx9nLddCvudQSoBPVZnfR1iQ4N0Pt0tV5hdVmd8DfwF/An9VZb726WfhVMjFsthSp9W6Uv5KPYVnLl8/sUdJt6b+3rd5C3gzaznfZasTeSt+lvIN8OjjtHEk3v4/WjL2hac+jDeaYUYJ+wxIeU49bVyNMQ7HeDPttRHI6BWjxSEHpIR6s3M71ljmgoGMD+5HI2PUwLhGyg++LbAN8WrKNpDxCbh2PiAho2dqNFK+pd7sePXDFXKuv2QcDGVc+dQSZpLUoUbKN9RSrsYcUyyoN/OaAGWECXPZGinPgT9D2+xM/SYKXUaYuLhCIyWkzY4YFdNdo186eCsjeFDtI5Ay9M2Oc9T35p7AZQQPhIQDKb/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vcugoaeqgKBXrXiDbxqhInCgK6vH6qCfmWAN7rotL/6f6+yus2GSsAAAAASUVORK5CYII="/>
|
||||
<image id="image3_222_54" width="58" height="63" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA/CAYAAACxdtubAAAACXBIWXMAAC4jAAAuIwF4pT92AAAEMElEQVRoge2bT3LbNhSHP3kyg6V8g/IGVTfYRjlBnZlyXeUG8gkin6D2CSyvsahzAjPLchP5BvQNol25UhcAZVoGAZAiwdTRN5PJDEd64I94f/Ae5clut2NIyjxNgAWwFlIVgy7m4CzCGhnwGdgY0aMQQ+gv5v8pkERYz0oMoXXmkdfbE1voaAwqtMzT84NLsyHXczH0jh4KOxQejdiu+9MI/TXyentOyWgoyjwdJSGNsaOjxOnJdQfk5LpD8m6MRbtS5ukCuEY3CE/AUkh1H/LdoXc0sVxr7bplnp6XeboGbtEiQXdFf5d5Og+xYd1R8+QS4F5ItWl7YzUSy7VWrmt62HuaDxtzdM/r5NWOmid0i26Wv5V5uh6rYTb3ssF9ovoeYsvmuoeu9Sd6OrCydCNdCLJR5ukSeODZVW08AusQezaha2OgzhS9w4Vx62Nwnndr8fiXx86dkGompOq2o0Kq70KqGXBl+fwUuC3ztAhNAm0wIZKhvcjFpZBq0cZ2Y9YVUq2A33i9u6Az3kOZp1lfZ1djxxePW+CDkOq6rX1neRFSbRy7C/CeDgnrMNZNOHzDH49zIVUWuk6doDrq2V1oTlhNN7X3glp9dPEFLbJzqZu0HWCXebpCJ6YmtugTy9rE8YPlMx/Qbprhb8avzIM+itZCYR9Pa9w3+WQ+Y3sol8CS55mvjS2wCD3i+egktCJgd7vyiBZ5zKnsBUcJheDdbcMXtMig+hjK0UIretrdTvHoqOlF9WJrL9RkS1tNbLpeJ6n9c8XdGDwC88m///xxjs6AP9oN9sndGfrd5VsWCZCcEdDLvQUmu92uCuZ57fqM5nYq4f/nAR/7zLrn6DLzey8G9YFhTWBj7SATUmW9CDUiM8Jr6Rb3Ab7+uV5OR0cPx8yBoaDdgWGDu0momKIHYNmx45yjhJrYzmjenUYhtRbwEr1zLt5juqP2d6npLNT0kK6Zzo0RYmOf6EwTPUMf/VxMgc9lnm66NPtdu5clzTOdF3FV5ql1ASHVxGJ3jk5AIVn9CrjuPDPy4RlcPQKzrslDSJUJqRK0CJ87V79dmofYDhZam841Da5uzFSuCLXZhDnYh7hzNbu68NkMElorHzaRW+CjkGoZYisUIVUhpLpATyN82Xnls+cV6qmRX/G76lffGi6MO8+ATzS7s3co7hRqsluGXeSVkGoe64eMQqo1+vhpi19vTmh8bVgTeVg+noCLPsccoZgMuzK5YoUWnoU0601v05pE3qEnfL2OOdpivGjR5ju2t2lVTNZFVgmnt1lO7Dd0thg956XIkITjomi4nnS014lXriukKso8vUHXsfsu7zkOKI78fi9YY7TvmvgjcPqd0VsjhtDo9dZGDKGj1tyKk+u+NWIILSKs4WVwoWP+mVadk+v2jK35LiKtDcQTuuRZ7Bb4FNul/wNPQpr7JEiLrAAAAABJRU5ErkJggg=="/>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 118 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "accordion-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "accordion-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/accordion.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/accordion-style-default.tsx",
|
||||
"content": "\"use client\";\n\nimport { Accordion } from \"@/components/retroui/Accordion\";\n\nexport default function AccordionStyleDefault() {\n return (\n <Accordion type=\"single\" collapsible className=\"space-y-4 w-full\">\n <Accordion.Item value=\"item-1\">\n <Accordion.Header>Accordion Item 1</Accordion.Header>\n <Accordion.Content>\n This is the content of the first accordion item.\n </Accordion.Content>\n </Accordion.Item>\n <Accordion.Item value=\"item-2\">\n <Accordion.Header>Accordion Item 2</Accordion.Header>\n <Accordion.Content>\n This is the content of the second accordion item.\n </Accordion.Content>\n </Accordion.Item>\n <Accordion.Item value=\"item-3\">\n <Accordion.Header>Accordion Item 3</Accordion.Header>\n <Accordion.Content>\n This is the content of the third accordion item.\n </Accordion.Content>\n </Accordion.Item>\n </Accordion>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/accordion-style-default.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "accordion",
|
||||
"type": "registry:component",
|
||||
"title": "Accordion",
|
||||
"description": "This collapsible component let's your users read only the content they care about. 😌",
|
||||
"dependencies": [
|
||||
"@radix-ui/react-accordion",
|
||||
"lucide-react"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Accordion.tsx",
|
||||
"content": "\"use client\";\n\nimport * as React from \"react\";\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\nimport { ChevronDown } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Accordion = AccordionPrimitive.Root;\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item\n ref={ref}\n className={cn(\n \"border-2 bg-background rounded text-foreground shadow-md hover:shadow-sm data-[state=open]:shadow-sm transition-all overflow-hidden\",\n className,\n )}\n {...props}\n />\n));\nAccordionItem.displayName = AccordionPrimitive.Item.displayName;\n\nconst AccordionHeader = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex flex-1 items-start justify-between px-4 py-2 font-head cursor-pointer focus:outline-hidden [&[data-state=open]>svg]:rotate-180\",\n className,\n )}\n {...props}\n >\n {children}\n <ChevronDown className=\"h-4 w-4 shrink-0 transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n));\nAccordionHeader.displayName = AccordionPrimitive.Header.displayName;\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"overflow-hidden font-body bg-white text-gray-700 data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up\"\n {...props}\n >\n <div className={cn(\"px-4 pt-2 pb-4\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n));\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\nconst AccordionComponent = Object.assign(Accordion, {\n Item: AccordionItem,\n Header: AccordionHeader,\n Content: AccordionContent,\n});\n\nexport { AccordionComponent as Accordion };\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Accordion.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "alert-style-all-status",
|
||||
"type": "registry:block",
|
||||
"title": "alert-style-all-status",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/alert.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/alert-style-all-status.tsx",
|
||||
"content": "import { Alert } from \"@/components/retroui/Alert\";\nimport { CheckCircle, InfoIcon, XIcon } from \"lucide-react\";\n\nexport default function AlertAllStatus() {\n return (\n <div className=\"space-y-4\">\n <Alert status=\"success\" className=\"flex items-center\">\n <CheckCircle className=\"h-4 w-4 mr-4\" />\n <Alert.Title>This is a success alert!</Alert.Title>\n </Alert>\n <Alert status=\"info\" className=\"flex items-center\">\n <InfoIcon className=\"h-4 w-4 mr-4\" />\n <Alert.Title>This is an info alert!</Alert.Title>\n </Alert>\n <Alert status=\"error\" className=\"flex items-center\">\n <XIcon className=\"h-4 w-4 mr-4\" />\n <Alert.Title>This is an error alert!</Alert.Title>\n </Alert>\n <Alert status=\"warning\" className=\"flex items-center\">\n <InfoIcon className=\"h-4 w-4 mr-4\" />\n <Alert.Title>This is an error alert!</Alert.Title>\n </Alert>\n </div>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/alert-style-all-status.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "alert-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "alert-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/alert.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/alert-style-default.tsx",
|
||||
"content": "import { Alert } from \"@/components/retroui/Alert\";\n\nexport default function AlertStyleDefault() {\n return (\n <Alert>\n <Alert.Title>Heads up!</Alert.Title>\n <Alert.Description>\n This is where you can write description that no one reads...\n </Alert.Description>\n </Alert>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/alert-style-default.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "alert-style-solid",
|
||||
"type": "registry:block",
|
||||
"title": "alert-style-solid",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/alert.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/alert-style-solid.tsx",
|
||||
"content": "import { Alert } from \"@/components/retroui/Alert\";\n\nexport default function AlertStyleDefault() {\n return (\n <Alert variant=\"solid\">\n <Alert.Title>Heads up!</Alert.Title>\n <Alert.Description>\n This is where you can write description that no one reads...\n </Alert.Description>\n </Alert>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/alert-style-solid.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "alert-style-with-icon",
|
||||
"type": "registry:block",
|
||||
"title": "alert-style-with-icon",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/alert.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/alert-style-with-icon.tsx",
|
||||
"content": "import { Alert } from \"@/components/retroui/Alert\";\nimport { CheckCircle } from \"lucide-react\";\n\nexport default function AlertStyleDefaultIcon() {\n return (\n <Alert className=\"flex\">\n <CheckCircle className=\"h-5 w-5 mr-4 mt-2\" />\n <div>\n <Alert.Title>Heads up!</Alert.Title>\n <Alert.Description>\n This is where you can write description that no one reads...\n </Alert.Description>\n </div>\n </Alert>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/alert-style-with-icon.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "alert",
|
||||
"type": "registry:component",
|
||||
"title": "Alert",
|
||||
"description": "Notify your users about important events and updates. 📣",
|
||||
"dependencies": [
|
||||
"class-variance-authority"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Alert.tsx",
|
||||
"content": "import { HtmlHTMLAttributes } from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Text } from \"@/components/retroui/Text\";\n\nconst alertVariants = cva(\"relative w-full rounded border-2 p-4\", {\n variants: {\n variant: {\n default: \"bg-background text-foreground [&_svg]:shrink-0\",\n solid: \"bg-black text-white\",\n },\n status: {\n error: \"bg-red-300 text-red-800 border-red-800\",\n success: \"bg-green-300 text-green-800 border-green-800\",\n warning: \"bg-yellow-300 text-yellow-800 border-yellow-800\",\n info: \"bg-blue-300 text-blue-800 border-blue-800\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\ninterface IAlertProps\n extends HtmlHTMLAttributes<HTMLDivElement>,\n VariantProps<typeof alertVariants> {}\n\nconst Alert = ({ className, variant, status, ...props }: IAlertProps) => (\n <div\n role=\"alert\"\n className={cn(alertVariants({ variant, status }), className)}\n {...props}\n />\n);\nAlert.displayName = \"Alert\";\n\ninterface IAlertTitleProps extends HtmlHTMLAttributes<HTMLHeadingElement> {}\nconst AlertTitle = ({ className, ...props }: IAlertTitleProps) => (\n <Text as=\"h5\" className={cn(className)} {...props} />\n);\nAlertTitle.displayName = \"AlertTitle\";\n\ninterface IAlertDescriptionProps\n extends HtmlHTMLAttributes<HTMLParagraphElement> {}\nconst AlertDescription = ({ className, ...props }: IAlertDescriptionProps) => (\n <div className={cn(\"text-muted-foreground\", className)} {...props} />\n);\n\nAlertDescription.displayName = \"AlertDescription\";\n\nconst AlertComponent = Object.assign(Alert, {\n Title: AlertTitle,\n Description: AlertDescription,\n});\n\nexport { AlertComponent as Alert };\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Alert.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "avatar-style-circle-sizes",
|
||||
"type": "registry:block",
|
||||
"title": "avatar-style-circle-sizes",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/avatar.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/avatar-style-circle-sizes.tsx",
|
||||
"content": "import { Avatar } from \"@/components/retroui/Avatar\";\n\nexport default function AvatarStyleCircleSizes() {\n return (\n <div className=\"flex items-center space-x-4\">\n <Avatar>\n <Avatar.Image src=\"/images/avatar.jpeg\" alt=\"Arif Logs\" />\n <Avatar.Fallback>AH</Avatar.Fallback>\n </Avatar>\n <Avatar className=\"h-16 w-16\">\n <Avatar.Image src=\"/images/avatar.jpeg\" alt=\"Arif Logs\" />\n <Avatar.Fallback>AH</Avatar.Fallback>\n </Avatar>\n <Avatar className=\"h-20 w-20\">\n <Avatar.Image src=\"/images/avatar.jpeg\" alt=\"Arif Logs\" />\n <Avatar.Fallback>AH</Avatar.Fallback>\n </Avatar>\n </div>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/avatar-style-circle-sizes.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "avatar-style-circle",
|
||||
"type": "registry:block",
|
||||
"title": "avatar-style-circle",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/avatar.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/avatar-style-circle.tsx",
|
||||
"content": "import { Avatar } from \"@/components/retroui/Avatar\";\n\nexport default function AvatarStyleCircle() {\n return (\n <Avatar>\n <Avatar.Image src=\"/images/avatar.jpeg\" alt=\"Arif Logs\" />\n <Avatar.Fallback>AH</Avatar.Fallback>\n </Avatar>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/avatar-style-circle.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "avatar-style-fallbacks",
|
||||
"type": "registry:block",
|
||||
"title": "avatar-style-fallbacks",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/avatar.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/avatar-style-circle-fallbacks.tsx",
|
||||
"content": "import { Avatar } from \"@/components/retroui/Avatar\";\n\nexport default function AvatarStyleFallback() {\n return (\n <Avatar>\n <Avatar.Image src=\"broken-link\" alt=\"Arif Logs\" />\n <Avatar.Fallback>AH</Avatar.Fallback>\n </Avatar>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/avatar-style-circle-fallbacks.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "avatar",
|
||||
"type": "registry:component",
|
||||
"title": "Avatar",
|
||||
"description": "Default rounded avatar that can show your users profile picture. ✨",
|
||||
"dependencies": [
|
||||
"@radix-ui/react-avatar"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Avatar.tsx",
|
||||
"content": "import * as React from \"react\";\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Avatar = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn(\n \"relative flex h-14 w-14 border-2 rounded-full overflow-hidden\",\n className,\n )}\n {...props}\n />\n));\nAvatar.displayName = \"Avatar\";\n\nconst AvatarImage = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Image>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>\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 = \"Avatar.Image\";\n\nconst AvatarFallback = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>\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 bg-primary\",\n className,\n )}\n {...props}\n />\n));\nAvatarFallback.displayName = \"Avatar.Fallback\";\n\nconst AvatarComponent = Object.assign(Avatar, {\n Image: AvatarImage,\n Fallback: AvatarFallback,\n});\n\nexport { AvatarComponent as Avatar };\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Avatar.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "badge-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "badge-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/badge.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/badge-style-rounded.tsx",
|
||||
"content": "import { Badge } from \"@/components/retroui/Badge\";\n\nexport default function BadgeStyleRounded() {\n return (\n <div className=\"space-x-4\">\n <Badge variant=\"solid\" className=\"rounded-sm\">\n Rounded\n </Badge>\n <Badge variant=\"solid\" className=\"rounded-full\">\n Full\n </Badge>\n </div>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/badge-style-rounded.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "badge-style-sizes",
|
||||
"type": "registry:block",
|
||||
"title": "badge-style-sizes",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/badge.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/badge-style-sizes.tsx",
|
||||
"content": "import { Badge } from \"@/components/retroui/Badge\";\n\nexport default function BadgeStyleVariants() {\n return (\n <div className=\"space-x-4\">\n <Badge size=\"sm\">small</Badge>\n <Badge>medium</Badge>\n <Badge size=\"lg\">large</Badge>\n </div>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/badge-style-sizes.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "badge-style-variants",
|
||||
"type": "registry:block",
|
||||
"title": "badge-style-variants",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/badge.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/badge-style-variants.tsx",
|
||||
"content": "import { Badge } from \"@/components/retroui/Badge\";\n\nexport default function BadgeStyleVariants() {\n return (\n <div className=\"flex flex-wrap gap-4\">\n <Badge>Default</Badge>\n <Badge variant=\"outline\">Outlined</Badge>\n <Badge variant=\"solid\">Solid</Badge>\n <Badge variant=\"surface\">Surface</Badge>\n </div>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/badge-style-variants.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "badge",
|
||||
"type": "registry:component",
|
||||
"title": "Badge",
|
||||
"description": "The component that looks like a button but isn't clickable!",
|
||||
"dependencies": [
|
||||
"class-variance-authority"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Badge.tsx",
|
||||
"content": "import { cn } from \"@/lib/utils\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport React, { HTMLAttributes } from \"react\";\n\nconst badgeVariants = cva(\"font-semibold rounded\", {\n variants: {\n variant: {\n default: \"bg-muted text-muted-foreground\",\n outline: \"outline-2 outline-foreground text-foreground\",\n solid: \"bg-foreground text-background\",\n surface: \"outline-2 bg-primary text-primary-foreground\",\n },\n size: {\n sm: \"px-2 py-1 text-xs\",\n md: \"px-2.5 py-1.5 text-sm\",\n lg: \"px-3 py-2 text-base\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n});\n\ninterface ButtonProps\n extends HTMLAttributes<HTMLSpanElement>,\n VariantProps<typeof badgeVariants> {}\n\nexport function Badge({\n children,\n size = \"md\",\n variant = \"default\",\n className = \"\",\n ...props\n}: ButtonProps) {\n return (\n <span\n className={cn(badgeVariants({ variant, size }), className)}\n {...props}\n >\n {children}\n </span>\n );\n}\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Badge.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "breadcrumb",
|
||||
"type": "registry:component",
|
||||
"title": "Breadcrumb",
|
||||
"dependencies": [
|
||||
"@radix-ui/react-slot"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Breadcrumb.tsx",
|
||||
"content": "import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { ChevronRight, MoreHorizontal } from \"lucide-react\"\nimport { cn } from \"@/lib/utils\"\n\nconst BreadcrumbRoot = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<\"nav\">\n>(({ className, ...props }, ref) => (\n <nav\n ref={ref}\n aria-label=\"breadcrumb\"\n className={cn(\"w-full text-sm\", className)}\n {...props}\n />\n))\nBreadcrumbRoot.displayName = \"Breadcrumb\"\n\nconst BreadcrumbList = React.forwardRef<\n HTMLOListElement,\n React.ComponentPropsWithoutRef<\"ol\">\n>(({ className, ...props }, ref) => (\n <ol\n ref={ref}\n className={cn(\n \"flex flex-wrap items-center gap-1.5 sm:gap-2.5 text-muted-foreground\",\n className\n )}\n {...props}\n />\n))\nBreadcrumbList.displayName = \"BreadcrumbList\"\n\nconst BreadcrumbItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentPropsWithoutRef<\"li\">\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"inline-flex items-center\", className)} {...props} />\n))\nBreadcrumbItem.displayName = \"BreadcrumbItem\"\n\nconst BreadcrumbLink = React.forwardRef<\n HTMLAnchorElement,\n React.ComponentPropsWithoutRef<\"a\"> & { asChild?: boolean }\n>(({ asChild, className, ...props }, ref) => {\n const Comp = asChild ? Slot : \"a\"\n return (\n <Comp\n ref={ref}\n className={cn(\n \"font-medium transition-colors hover:text-foreground focus:outline-none focus:ring-2 focus:ring-ring rounded-sm\",\n className\n )}\n {...props}\n />\n )\n})\nBreadcrumbLink.displayName = \"BreadcrumbLink\"\n\nconst BreadcrumbPage = React.forwardRef<\n HTMLSpanElement,\n React.ComponentPropsWithoutRef<\"span\">\n>(({ className, ...props }, ref) => (\n <span\n ref={ref}\n aria-current=\"page\"\n className={cn(\"text-foreground font-semibold\", className)}\n {...props}\n />\n))\nBreadcrumbPage.displayName = \"BreadcrumbPage\"\n\nconst BreadcrumbSeparator = ({\n children,\n className,\n ...props\n}: React.ComponentProps<\"li\">) => (\n <li\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"text-muted-foreground [&>svg]:h-4 [&>svg]:w-4\", className)}\n {...props}\n >\n {children ?? <ChevronRight />}\n </li>\n)\nBreadcrumbSeparator.displayName = \"BreadcrumbSeparator\"\n\nconst BreadcrumbEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<\"span\">) => (\n <span\n role=\"presentation\"\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n)\nBreadcrumbEllipsis.displayName = \"BreadcrumbEllipsis\"\n\nconst Breadcrumb = Object.assign(BreadcrumbRoot, {\n List: BreadcrumbList,\n Item: BreadcrumbItem,\n Link: BreadcrumbLink,\n Page: BreadcrumbPage,\n Separator: BreadcrumbSeparator,\n Ellipsis: BreadcrumbEllipsis,\n})\n\nexport { Breadcrumb }\n\n\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Breadcrumb.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "button-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "button-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/button.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/button-style-default.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\n\nexport default function ButtonStyleDefault() {\n return <Button>Click Me!</Button>;\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/button-style-default.tsx"
|
||||
}
|
||||
],
|
||||
"cssVars": {
|
||||
"light": {
|
||||
"primary": "60 100% 60%",
|
||||
"primary-foreground": "0 0% 0%"
|
||||
},
|
||||
"dark": {
|
||||
"primary": "60 100% 50%",
|
||||
"primary-foreground": "0 0% 0%"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "button-style-link",
|
||||
"type": "registry:block",
|
||||
"title": "button-style-link",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/button.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/button-style-link.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\n\nexport default function ButtonStyleLink() {\n return <Button variant=\"link\">Click Me!</Button>;\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/button-style-link.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "button-style-outline",
|
||||
"type": "registry:block",
|
||||
"title": "button-style-outline",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/button.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/button-style-outline.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\n\nexport default function ButtonStyleOutline() {\n return <Button variant=\"outline\">Click Me!</Button>;\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/button-style-outline.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "button-style-secondary",
|
||||
"type": "registry:block",
|
||||
"title": "button-style-secondary",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/button.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/button-style-secondary.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\n\nexport default function ButtonStyleSecondary() {\n return <Button variant=\"secondary\">Click Me!</Button>;\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/button-style-secondary.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "button-style-with-icon",
|
||||
"type": "registry:block",
|
||||
"title": "button-style-with-icon",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/button.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/button-style-with-icon.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\nimport { Trash } from \"lucide-react\";\n\nexport default function ButtonStyleWithIcon() {\n return (\n <Button className=\"bg-destructive text-white hover:bg-destructive/90\">\n <Trash className=\"h-4 w-4 mr-2\" /> Delete\n </Button>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/button-style-with-icon.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "button",
|
||||
"type": "registry:component",
|
||||
"title": "Retro Button",
|
||||
"description": "This bold button makes sure your users click on it and perform the actions you want!",
|
||||
"dependencies": [
|
||||
"class-variance-authority",
|
||||
"@radix-ui/react-slot"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Button.tsx",
|
||||
"content": "import { cn } from \"@/lib/utils\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport React, { ButtonHTMLAttributes } from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\nexport const buttonVariants = cva(\n \"font-head transition-all rounded outline-hidden cursor-pointer duration-200 font-medium flex items-center\",\n {\n variants: {\n variant: {\n default:\n \"shadow-md hover:shadow active:shadow-none bg-primary text-primary-foreground border-2 border-black transition hover:translate-y-1 active:translate-y-2 active:translate-x-1 hover:bg-primary-hover\",\n secondary:\n \"shadow-md hover:shadow active:shadow-none bg-secondary shadow-primary text-secondary-foreground border-2 border-black transition hover:translate-y-1 active:translate-y-2 active:translate-x-1 hover:bg-secondary-hover\",\n outline:\n \"shadow-md hover:shadow active:shadow-none bg-transparent border-2 transition hover:translate-y-1 active:translate-y-2 active:translate-x-1\",\n link: \"bg-transparent hover:underline\",\n ghost: \"bg-transparent hover:bg-accent\"\n },\n size: {\n sm: \"px-3 py-1 text-sm shadow hover:shadow-none\",\n md: \"px-4 py-1.5 text-base\",\n lg: \"px-6 lg:px-8 py-2 lg:py-3 text-md lg:text-lg\",\n icon: \"p-2\",\n },\n },\n defaultVariants: {\n size: \"md\",\n variant: \"default\",\n },\n },\n);\n\nexport interface IButtonProps\n extends ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef<HTMLButtonElement, IButtonProps>(\n (\n {\n children,\n size = \"md\",\n className = \"\",\n variant = \"default\",\n asChild = false,\n ...props\n }: IButtonProps,\n forwardedRef,\n ) => {\n const Comp = asChild ? Slot : \"button\";\n return (\n <Comp\n ref={forwardedRef}\n className={cn(buttonVariants({ variant, size }), className)}\n {...props}\n >\n {children}\n </Comp>\n );\n },\n);\n\nButton.displayName = \"Button\";",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Button.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "card-style-commerce",
|
||||
"type": "registry:block",
|
||||
"title": "card-style-commerce",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/card.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/card-style-commerce.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\nimport { Card } from \"@/components/retroui/Card\";\n\nexport default function CommerceCard() {\n return (\n <Card className=\"w-[350px] shadow-none hover:shadow-none\">\n <Card.Content className=\"pb-0\">\n <img\n src=\"/images/gameboy.jpg\"\n className=\"w-full h-full\"\n alt=\"Gameboy\"\n />\n </Card.Content>\n <Card.Header className=\"pb-0\">\n <Card.Title>Classic 8-bit Gameboy</Card.Title>\n </Card.Header>\n <Card.Content className=\"flex justify-between items-center\">\n <p className=\"text-lg font-semibold\">$29.90</p>\n <Button>Add to cart</Button>\n </Card.Content>\n </Card>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/card-style-commerce.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "card-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "card-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/card.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/card-style-default.tsx",
|
||||
"content": "import { Card } from \"@/components/retroui/Card\";\n\nexport default function BasicCard() {\n return (\n <Card>\n <Card.Header>\n <Card.Title>This is Card Title</Card.Title>\n <Card.Description>\n I can not find what to write here.. so imagine I wrote some good\n stuff.\n </Card.Description>\n </Card.Header>\n </Card>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/card-style-default.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "card-style-testimonial",
|
||||
"type": "registry:block",
|
||||
"title": "card-style-testimonial",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/card.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/card-style-testimonial.tsx",
|
||||
"content": "import { Text } from \"@/components/retroui/Text\";\nimport { Card } from \"@/components/retroui/Card\";\nimport { Avatar } from \"@/components/retroui/Avatar\";\n\nexport default function TestimonialCard() {\n return (\n <Card className=\"w-full max-w-[400px] shadow-none hover:shadow-md\">\n <Card.Content>\n <Text className=\"text-lg\">\n " RetroUI is the cooling looking UI library out there! "\n </Text>\n\n <div className=\"flex items-center space-x-2 mt-6\">\n <Avatar className=\"h-10 w-10\">\n <Avatar.Image\n alt=\"avatar\"\n src=\"https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=880&q=80\"\n />\n </Avatar>\n <div>\n <div className=\"font-medium\">Leroy Jenkins</div>\n <div className=\"text-sm text-gray-500 dark:text-gray-400\">\n CEO of Uber\n </div>\n </div>\n </div>\n </Card.Content>\n </Card>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/card-style-testimonial.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "card",
|
||||
"type": "registry:component",
|
||||
"title": "Card",
|
||||
"description": "A customizable card component to visualize your content. 📝",
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Card.tsx",
|
||||
"content": "import { cn } from \"@/lib/utils\";\nimport { HTMLAttributes } from \"react\";\nimport { Text } from \"@/components/retroui/Text\";\n\ninterface ICardProps extends HTMLAttributes<HTMLDivElement> {\n className?: string;\n}\n\nconst Card = ({ className, ...props }: ICardProps) => {\n return (\n <div\n className={cn(\n \"inline-block border-2 rounded shadow-md transition-all hover:shadow-none bg-card\",\n className,\n )}\n {...props}\n />\n );\n};\n\nconst CardHeader = ({ className, ...props }: ICardProps) => {\n return (\n <div\n className={cn(\"flex flex-col justify-start p-4\", className)}\n {...props}\n />\n );\n};\n\nconst CardTitle = ({ className, ...props }: ICardProps) => {\n return <Text as=\"h3\" className={cn(\"mb-2\", className)} {...props} />;\n};\n\nconst CardDescription = ({ className, ...props }: ICardProps) => (\n <p className={cn(\"text-muted-foreground\", className)} {...props} />\n);\n\nconst CardContent = ({ className, ...props }: ICardProps) => {\n return <div className={cn(\"p-4\", className)} {...props} />;\n};\n\nconst CardComponent = Object.assign(Card, {\n Header: CardHeader,\n Title: CardTitle,\n Description: CardDescription,\n Content: CardContent,\n});\n\nexport { CardComponent as Card };\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Card.tsx"
|
||||
},
|
||||
{
|
||||
"path": "components/retroui/Text.tsx",
|
||||
"content": "import { ElementType, HTMLAttributes } from \"react\";\nimport { VariantProps, cva } from \"class-variance-authority\";\nimport { cn } from \"@/lib/utils\";\n\nconst textVariants = cva(\"font-head\", {\n variants: {\n as: {\n p: \"font-sans text-base\",\n li: \"font-sans text-base\",\n a: \"font-sans text-base hover:underline underline-offset-2 decoration-primary\",\n h1: \"text-4xl lg:text-5xl font-bold\",\n h2: \"text-3xl lg:text-4xl font-semibold\",\n h3: \"text-2xl font-medium\",\n h4: \"text-xl font-normal\",\n h5: \"text-lg font-normal\",\n h6: \"text-base font-normal\",\n },\n },\n defaultVariants: {\n as: \"p\",\n },\n});\n\ninterface TextProps\n extends Omit<HTMLAttributes<HTMLElement>, \"className\">,\n VariantProps<typeof textVariants> {\n className?: string;\n}\n\nexport const Text = (props: TextProps) => {\n const { className, as, ...otherProps } = props;\n const Tag: ElementType = as || \"p\";\n\n return (\n <Tag className={cn(textVariants({ as }), className)} {...otherProps} />\n );\n};\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Text.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "checkbox-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "checkbox-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/checkbox.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/checkbox-style-sizes.tsx",
|
||||
"content": "import { Checkbox } from \"@/components/retroui/Checkbox\";\n\nexport default function CheckboxStyleSizes() {\n return (\n <div className=\"flex gap-4\">\n <Checkbox size=\"sm\" />\n <Checkbox />\n <Checkbox size=\"lg\" />\n </div>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/checkbox-style-sizes.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "checkbox-style-toggle",
|
||||
"type": "registry:block",
|
||||
"title": "checkbox-style-toggle",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/checkbox.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/checkbox-style-variants.tsx",
|
||||
"content": "import { Checkbox } from \"@/components/retroui/Checkbox\";\n\nexport default function CheckboxStyleVariants() {\n return (\n <div className=\"flex gap-4\">\n <Checkbox />\n <Checkbox variant=\"outline\" />\n <Checkbox variant=\"solid\" />\n </div>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/checkbox-style-variants.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "checkbox",
|
||||
"type": "registry:component",
|
||||
"title": "Checkbox",
|
||||
"description": "Let users confirm or reject an option.",
|
||||
"dependencies": [
|
||||
"@radix-ui/react-checkbox",
|
||||
"class-variance-authority",
|
||||
"lucide-react"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Checkbox.tsx",
|
||||
"content": "import { cn } from \"@/lib/utils\";\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport { Check } from \"lucide-react\";\n\nconst checkboxVariants = cva(\"border-2 rounded\", {\n variants: {\n variant: {\n default: \"data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground \",\n outline: \"\",\n solid:\n \"data-[state=checked]:bg-foreground data-[state=checked]:text-background\",\n },\n size: {\n sm: \"h-4 w-4\",\n md: \"h-5 w-5\",\n lg: \"h-6 w-6\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n});\n\ninterface CheckboxProps\n extends React.ComponentProps<typeof CheckboxPrimitive.Root>,\n VariantProps<typeof checkboxVariants> {}\n\nexport const Checkbox = ({\n className,\n size,\n variant,\n ...props\n}: CheckboxProps) => (\n <CheckboxPrimitive.Root\n className={cn(\n checkboxVariants({\n size,\n variant,\n }),\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className=\"h-full w-full\">\n <Check className=\"h-full w-full\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n);\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Checkbox.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "dialog-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "dialog-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/dialog.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/dialog-style-default.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\nimport { Dialog } from \"@/components/retroui/Dialog\";\nimport { Text } from \"@/components/retroui/Text\";\n\nexport default function DialogStyleDefault() {\n return (\n <Dialog>\n <Dialog.Trigger asChild>\n <Button>Open Dialog</Button>\n </Dialog.Trigger>\n <Dialog.Content>\n <Dialog.Header>\n <Text as=\"h5\">Confirm your action?</Text>\n </Dialog.Header>\n <section className=\"flex flex-col gap-4 p-4\">\n <section className=\"text-xl\">\n <p>Are you sure you want to delete this item?</p>\n <p>This action cannout be undone.</p>\n </section>\n <section className=\"flex w-full justify-end\">\n <Dialog.Trigger asChild>\n <Button>Confirm</Button>\n </Dialog.Trigger>\n </section>\n </section>\n </Dialog.Content>\n </Dialog>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/dialog-style-default.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "dialog-style-width-variant",
|
||||
"type": "registry:block",
|
||||
"title": "dialog-style-width-variant",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/dialog.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/dialog-style-width-variant.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\nimport { Dialog } from \"@/components/retroui/Dialog\";\nimport { Text } from \"@/components/retroui/Text\";\nimport { useState } from \"react\";\n\ntype Variants =\n | \"auto\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"screen\";\n\nexport default function DialogStyleWidthVariant() {\n const [variant, setVariant] = useState<Variants>(\"auto\");\n\n const sizes: Variants[] = [\n \"auto\",\n \"sm\",\n \"md\",\n \"lg\",\n \"xl\",\n \"2xl\",\n \"3xl\",\n \"4xl\",\n \"screen\",\n ];\n\n return (\n <Dialog>\n <Dialog.Trigger asChild>\n <Button>Open Dialog</Button>\n </Dialog.Trigger>\n <Dialog.Content size={variant}>\n <Dialog.Header>\n <Text as=\"h5\">Dialog with variants</Text>\n </Dialog.Header>\n <section className=\"flex flex-col gap-4 p-4\">\n <section className=\"text-xl\">\n <p>Choose your width size</p>\n <section className=\"flex flex-wrap gap-4\">\n {sizes.map((singleVariant) => (\n <Button\n key={\"variant-list-\" + singleVariant}\n type=\"button\"\n variant={singleVariant == variant ? \"default\" : \"outline\"}\n onClick={() => setVariant(singleVariant)}\n >\n {singleVariant}\n </Button>\n ))}\n </section>\n </section>\n </section>\n </Dialog.Content>\n </Dialog>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/dialog-style-width-variant.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "dialog-style-with-footer",
|
||||
"type": "registry:block",
|
||||
"title": "dialog-style-with-footer",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/dialog.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/dialog-style-with-footer.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\nimport { Text } from \"@/components/retroui/Text\";\nimport { Dialog } from \"@/components/retroui/Dialog\";\n\nexport default function DialogStyleWithFooter() {\n return (\n <Dialog>\n <Dialog.Trigger asChild>\n <Button>Open Dialog</Button>\n </Dialog.Trigger>\n <Dialog.Content>\n <Dialog.Header position={\"fixed\"} asChild>\n <Text as=\"h5\">Confirm your action?</Text>\n </Dialog.Header>\n <section className=\"flex flex-col gap-4 p-4\">\n <section className=\"text-xl\">\n <p>Are you sure you want to delete this item?</p>\n <p>This action cannout be undone.</p>\n </section>\n </section>\n <Dialog.Footer>\n <Dialog.Trigger asChild>\n <Button>Confirm</Button>\n </Dialog.Trigger>\n <Dialog.Trigger asChild>\n <Button variant={\"outline\"}>Close</Button>\n </Dialog.Trigger>\n </Dialog.Footer>\n </Dialog.Content>\n </Dialog>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/dialog-style-with-footer.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "dialog-style-with-form",
|
||||
"type": "registry:block",
|
||||
"title": "dialog-style-with-form",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/dialog.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/dialog-style-with-form.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\nimport { Dialog } from \"@/components/retroui/Dialog\";\nimport { Input } from \"@/components/retroui/Input\";\nimport { Text } from \"@/components/retroui/Text\";\n\nexport default function DialogStyleWithForm() {\n return (\n <Dialog>\n <Dialog.Trigger asChild>\n <Button>Open Form</Button>\n </Dialog.Trigger>\n <Dialog.Content size={\"md\"}>\n <Dialog.Header position={\"fixed\"}>\n <Text as=\"h5\">Contact Us</Text>\n </Dialog.Header>\n <form className=\"flex flex-col gap-4\">\n <div className=\"flex flex-col p-4 gap-4\">\n <div className=\"flex-col gap-2\">\n <label htmlFor=\"name\">\n Your name <span className=\"text-red-500\">*</span>\n </label>\n <Input placeholder=\"Type your name\" required />\n </div>\n <div className=\"flex-col gap-2\">\n <label htmlFor=\"name\">\n Your e-email <span className=\"text-red-500\">*</span>\n </label>\n <Input placeholder=\"Type your name\" required />\n </div>\n </div>\n <Dialog.Footer>\n <Dialog.Trigger asChild>\n <Button type=\"submit\">Submit</Button>\n </Dialog.Trigger>\n </Dialog.Footer>\n </form>\n </Dialog.Content>\n </Dialog>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/dialog-style-with-form.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "drawer",
|
||||
"type": "registry:component",
|
||||
"title": "Drawer",
|
||||
"description": "A component that can slide in from any side of the screen.",
|
||||
"dependencies": [
|
||||
"vaul"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Drawer.tsx",
|
||||
"content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Drawer as DrawerPrimitive } from \"vaul\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Drawer({\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n return <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />\n}\n\nfunction DrawerTrigger({\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />\n}\n\nfunction DrawerPortal({\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />\n}\n\nfunction DrawerClose({\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />\n}\n\nfunction DrawerOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n return (\n <DrawerPrimitive.Overlay\n data-slot=\"drawer-overlay\"\n className={cn(\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DrawerContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n \"group/drawer-content bg-background fixed z-50 flex h-auto flex-col\",\n \"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b data-[vaul-drawer-direction=top]:border-b-2\",\n \"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t data-[vaul-drawer-direction=bottom]:border-t-2\",\n \"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l-2 data-[vaul-drawer-direction=right]:sm:max-w-sm\",\n \"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r-2 data-[vaul-drawer-direction=left]:sm:max-w-sm\",\n className\n )}\n {...props}\n >\n <div className=\"bg-foreground mx-auto mt-4 hidden h-1 w-[60px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n )\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n \"flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"drawer-footer\"\n className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)}\n {...props}\n />\n )\n}\n\nfunction DrawerTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn(\"text-foreground text-xl font-head font-medium\", className)}\n {...props}\n />\n )\n}\n\nfunction DrawerDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n return (\n <DrawerPrimitive.Description\n data-slot=\"drawer-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n )\n}\n\nconst DrawerComponent = Object.assign(Drawer, {\n Trigger: DrawerTrigger,\n Portal: DrawerPortal,\n Overlay: DrawerOverlay,\n Close: DrawerClose,\n Content: DrawerContent,\n Header: DrawerHeader,\n Footer: DrawerFooter,\n Title: DrawerTitle,\n Description: DrawerDescription,\n});\n\nexport { DrawerComponent as Drawer };",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Drawer.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "input-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "input-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/input.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/input-style-default.tsx",
|
||||
"content": "import { Input } from \"@/components/retroui/Input\";\n\nexport default function InputStyleDefault() {\n return <Input type=\"text\" placeholder=\"type something...\" />;\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/input-style-default.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "input-style-error",
|
||||
"type": "registry:block",
|
||||
"title": "input-style-error",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/input.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/input-style-error.tsx",
|
||||
"content": "import { Input } from \"@/components/retroui/Input\";\nimport { Label } from \"@/components/retroui/Label\";\n\nexport default function InputStyleError() {\n return (\n <div className=\"grid w-full max-w-sm items-center gap-1.5\">\n <Label htmlFor=\"pokemon\">Favorite Pokemon</Label>\n <Input\n type=\"pokemon\"\n id=\"pokemon\"\n placeholder=\"Charmander\"\n defaultValue=\"Son Goku\"\n aria-invalid\n />\n <p className=\"text-sm text-red-500\">Please provide a valid pokemon!</p>\n </div>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/input-style-error.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "input-style-with-label",
|
||||
"type": "registry:block",
|
||||
"title": "input-style-with-label",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/input.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/input-style-with-label.tsx",
|
||||
"content": "import { Input } from \"@/components/retroui/Input\";\nimport { Label } from \"@/components/retroui/Label\";\n\nexport default function InputStyleWithLabel() {\n return (\n <div className=\"grid w-full max-w-sm items-center gap-1.5\">\n <Label htmlFor=\"pokemon\">Favorite Pokemon</Label>\n <Input type=\"pokemon\" id=\"pokemon\" placeholder=\"Charmander\" />\n </div>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/input-style-with-label.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "input",
|
||||
"type": "registry:component",
|
||||
"title": "Input",
|
||||
"description": "This pretty input makes your users want to type stuff! ⌨️",
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Input.tsx",
|
||||
"content": "import React, { InputHTMLAttributes } from \"react\";\n\ninterface InputProps extends InputHTMLAttributes<HTMLInputElement> {\n className?: string;\n}\n\nexport const Input: React.FC<InputProps> = ({\n type = \"text\",\n placeholder = \"Enter text\",\n className = \"\",\n ...props\n}) => {\n return (\n <input\n type={type}\n placeholder={placeholder}\n className={`px-4 py-2 w-full rounded border-2 shadow-md transition focus:outline-hidden focus:shadow-xs ${\n props[\"aria-invalid\"]\n ? \"border-destructive text-destructive shadow-xs shadow-destructive\"\n : \"\"\n } ${className}`}\n {...props}\n />\n );\n};\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Input.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "label",
|
||||
"type": "registry:component",
|
||||
"title": "Label",
|
||||
"description": "Label for form fields",
|
||||
"dependencies": [
|
||||
"@radix-ui/react-label",
|
||||
"class-variance-authority"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Label.tsx",
|
||||
"content": "import * as React from \"react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst labelVariants = cva(\n \"leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\",\n);\n\nexport const Label = ({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) => (\n <LabelPrimitive.Root className={cn(labelVariants(), className)} {...props} />\n);\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Label.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "line-chart",
|
||||
"type": "registry:component",
|
||||
"title": "Line Chart",
|
||||
"description": "Beautiful line chart for data visualization with retro styling",
|
||||
"dependencies": [
|
||||
"recharts"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/charts/LineChart.tsx",
|
||||
"content": "\"use client\"\n\nimport { cn } from \"@/lib/utils\"\nimport React from \"react\"\nimport {\n CartesianGrid,\n Line,\n LineChart as RechartsLineChart,\n ResponsiveContainer,\n Tooltip,\n XAxis,\n YAxis,\n} from \"recharts\"\n\ninterface LineChartProps extends React.HTMLAttributes<HTMLDivElement> {\n data: Record<string, any>[]\n index: string\n categories: string[]\n strokeColors?: string[]\n tooltipBgColor?: string\n tooltipBorderColor?: string\n gridColor?: string\n valueFormatter?: (value: number) => string\n showGrid?: boolean\n showTooltip?: boolean\n strokeWidth?: number\n dotSize?: number\n className?: string\n}\n\nconst LineChart = React.forwardRef<HTMLDivElement, LineChartProps>(\n (\n {\n data = [],\n index,\n categories = [],\n strokeColors = [\"var(--foreground)\"],\n tooltipBgColor = \"var(--background)\",\n tooltipBorderColor = \"var(--border)\",\n gridColor = \"var(--muted)\",\n valueFormatter = (value: number) => value.toString(),\n showGrid = true,\n showTooltip = true,\n strokeWidth = 2,\n dotSize = 4,\n className,\n ...props\n },\n ref\n ) => {\n return (\n <div ref={ref} className={cn(\"h-80 w-full\", className)} {...props}>\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <RechartsLineChart data={data} margin={{ top: 0, right: 30, left: 0, bottom: 0 }}>\n {showGrid && (\n <CartesianGrid strokeDasharray=\"3 3\" stroke={gridColor} />\n )}\n \n <XAxis \n dataKey={index}\n axisLine={false}\n tickLine={false}\n className=\"text-xs fill-muted-foreground\"\n />\n \n <YAxis\n axisLine={false}\n tickLine={false}\n className=\"text-xs fill-muted-foreground\"\n tickFormatter={valueFormatter}\n />\n \n {showTooltip && (\n <Tooltip\n content={({ active, payload, label }) => {\n if (!active || !payload?.length) return null\n \n return (\n <div \n className=\"border p-2 shadow\"\n style={{ \n backgroundColor: tooltipBgColor,\n borderColor: tooltipBorderColor \n }}\n >\n <div className=\"grid grid-cols-2 gap-2\">\n <div className=\"flex flex-col\">\n <span className=\"text-[0.70rem] uppercase text-muted-foreground\">\n {index}\n </span>\n <span className=\"font-bold text-muted-foreground\">\n {label}\n </span>\n </div>\n {payload.map((entry, index) => (\n <div key={index} className=\"flex flex-col\">\n <span className=\"text-[0.70rem] uppercase text-muted-foreground\">\n {entry.dataKey}\n </span>\n <span className=\"font-bold\" style={{ color: entry.color }}>\n {valueFormatter(entry.value as number)}\n </span>\n </div>\n ))}\n </div>\n </div>\n )\n }}\n />\n )}\n \n {categories.map((category, index) => {\n const strokeColor = strokeColors[index] || strokeColors[0]\n \n return (\n <Line\n key={category}\n dataKey={category}\n stroke={strokeColor}\n strokeWidth={strokeWidth}\n dot={{ r: dotSize, fill: strokeColor }}\n activeDot={{ r: dotSize + 2, fill: strokeColor }}\n />\n )\n })}\n </RechartsLineChart>\n </ResponsiveContainer>\n </div>\n )\n }\n)\n\nLineChart.displayName = \"LineChart\"\n\nexport { LineChart, type LineChartProps }",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/charts/LineChart.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "loader",
|
||||
"type": "registry:component",
|
||||
"title": "Loader",
|
||||
"description": "A loading indicator",
|
||||
"dependencies": [
|
||||
"class-variance-authority"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Loader.tsx",
|
||||
"content": "import * as React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"@/lib/utils\";\n\nconst loaderVariants = cva(\"flex gap-1\", {\n variants: {\n variant: {\n default: \"[&>div]:bg-primary [&>div]:border-black\",\n secondary:\n \"[&>div]:bg-secondary [&>div]:border-black\",\n outline: \"[&>div]:bg-transparent [&>div]:border-black\",\n },\n size: {\n sm: \"[&>div]:w-2 [&>div]:h-2\",\n md: \"[&>div]:w-3 [&>div]:h-3\",\n lg: \"[&>div]:w-4 [&>div]:h-4\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n});\n\ninterface LoaderProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, \"color\">,\n VariantProps<typeof loaderVariants> {\n asChild?: boolean;\n count?: number; // number of bouncing dots\n duration?: number; // animation duration in seconds\n delayStep?: number; // delay in ms\n}\n\nconst Loader = React.forwardRef<HTMLDivElement, LoaderProps>(\n (\n {\n className,\n variant,\n size,\n count = 3,\n duration = 0.5,\n delayStep = 100,\n ...props\n },\n ref,\n ) => {\n return (\n <div\n className={cn(loaderVariants({ variant, size }), className)}\n ref={ref}\n role=\"status\"\n aria-label=\"Loading...\"\n {...props}\n >\n {Array.from({ length: count }).map((_, i) => (\n <div\n key={i}\n className=\"border-2 animate-bounce\"\n style={{\n animationDuration: `${duration}s`,\n animationIterationCount: \"infinite\",\n animationDelay: `${i * delayStep}ms`,\n }}\n />\n ))}\n </div>\n );\n },\n);\n\nLoader.displayName = \"Loader\";\nexport { Loader };\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Loader.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "menu-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "menu-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/menu.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/menu-style-default.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\nimport { Menu } from \"@/components/retroui/Menu\";\n\nexport default function MenuDefault() {\n return (\n <Menu>\n <Menu.Trigger asChild>\n <Button>Menu</Button>\n </Menu.Trigger>\n <Menu.Content className=\"min-w-36\">\n <Menu.Item>Menu Item 1</Menu.Item>\n <Menu.Item>Menu Item 2</Menu.Item>\n <Menu.Item>Menu Item 3</Menu.Item>\n </Menu.Content>\n </Menu>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/menu-style-default.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "menu",
|
||||
"type": "registry:component",
|
||||
"title": "Menu",
|
||||
"description": "Show your users a list of actions they can take. 📋",
|
||||
"dependencies": [
|
||||
"@radix-ui/react-dropdown-menu"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Menu.tsx",
|
||||
"content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport * as DropdownMenu from \"@radix-ui/react-dropdown-menu\";\nimport React, { ComponentPropsWithoutRef } from \"react\";\n\nconst Menu = DropdownMenu.Root;\nconst Trigger = DropdownMenu.Trigger;\n\ninterface IMenuContent\n extends ComponentPropsWithoutRef<typeof DropdownMenu.Content> {}\n\nconst Content = ({ className, ...props }: IMenuContent) => (\n <DropdownMenu.Portal>\n <DropdownMenu.Content\n side=\"bottom\"\n align=\"start\"\n className={cn(\n \"bg-white border-2 shadow-md absolute top-2 min-w-20\",\n className,\n )}\n {...props}\n />\n </DropdownMenu.Portal>\n);\n\nconst MenuItem = React.forwardRef<\n HTMLDivElement,\n ComponentPropsWithoutRef<typeof DropdownMenu.Item>\n>(({ className, ...props }, ref) => (\n <DropdownMenu.Item\n ref={ref}\n className={cn(\n \"relative text-black flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden transition-colors hover:bg-primary focus:bg-primary data-disabled:pointer-events-none data-disabled:opacity-50\",\n className,\n )}\n {...props}\n />\n));\nMenuItem.displayName = \"MenuItem\";\n\nconst MenuComponent = Object.assign(Menu, {\n Trigger,\n Content,\n Item: MenuItem,\n});\n\nexport { MenuComponent as Menu };\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Menu.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "pie-chart",
|
||||
"type": "registry:component",
|
||||
"title": "Pie Chart",
|
||||
"description": "Beautiful pie chart for data visualization with retro styling",
|
||||
"dependencies": [
|
||||
"recharts"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/charts/PieChart.tsx",
|
||||
"content": "\"use client\"\n\nimport { cn } from \"@/lib/utils\"\nimport React from \"react\"\nimport {\n Cell,\n Pie,\n PieChart as RechartsPieChart,\n ResponsiveContainer,\n Tooltip,\n} from \"recharts\"\n\ninterface PieChartProps extends React.HTMLAttributes<HTMLDivElement> {\n data: Record<string, any>[]\n dataKey: string\n nameKey: string\n colors?: string[]\n tooltipBgColor?: string\n tooltipBorderColor?: string\n valueFormatter?: (value: number) => string\n showTooltip?: boolean\n innerRadius?: number\n outerRadius?: number\n className?: string\n}\n\nconst PieChart = React.forwardRef<HTMLDivElement, PieChartProps>(\n (\n {\n data = [],\n dataKey,\n nameKey,\n colors = [\"var(--chart-1)\", \"var(--chart-2)\", \"var(--chart-3)\", \"var(--chart-4)\", \"var(--chart-5)\"],\n tooltipBgColor = \"var(--background)\",\n tooltipBorderColor = \"var(--border)\",\n valueFormatter = (value: number) => value.toString(),\n showTooltip = true,\n innerRadius = 0,\n outerRadius = 100,\n className,\n ...props\n },\n ref\n ) => {\n return (\n <div ref={ref} className={cn(\"h-80 w-full\", className)} {...props}>\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <RechartsPieChart>\n <Pie\n data={data}\n dataKey={dataKey}\n nameKey={nameKey}\n cx=\"50%\"\n cy=\"50%\"\n innerRadius={innerRadius}\n outerRadius={outerRadius}\n isAnimationActive={false}\n className=\"w-full h-full\"\n >\n {data.map((entry, index) => (\n <Cell \n key={`cell-${index}`} \n fill={colors[index % colors.length]} \n />\n ))}\n </Pie>\n \n {showTooltip && (\n <Tooltip\n content={({ active, payload }) => {\n if (!active || !payload?.length) return null\n \n const data = payload[0]\n \n return (\n <div \n className=\"border p-2 shadow\"\n style={{ \n backgroundColor: tooltipBgColor,\n borderColor: tooltipBorderColor \n }}\n >\n <div className=\"flex flex-col gap-1\">\n <span className=\"text-[0.70rem] uppercase text-muted-foreground\">\n {data.name}\n </span>\n <span className=\"font-bold text-foreground\">\n {valueFormatter(data.value as number)}\n </span>\n </div>\n </div>\n )\n }}\n />\n )}\n </RechartsPieChart>\n </ResponsiveContainer>\n </div>\n )\n }\n)\n\nPieChart.displayName = \"PieChart\"\n\nexport { PieChart, type PieChartProps }",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/charts/PieChart.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "popover-style-default-shadow",
|
||||
"type": "registry:block",
|
||||
"title": "popover-style-default-shadow",
|
||||
"dependencies": [
|
||||
"lucide-react"
|
||||
],
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/popover.json",
|
||||
"https://retroui.dev/r/label.json",
|
||||
"https://retroui.dev/r/input.json",
|
||||
"https://retroui.dev/r/button.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/popover-style-default-shadow.tsx",
|
||||
"content": "\"use client\";\n\nimport { Popover, Label, Button, Input } from \"@/components/retroui\";\n\nexport default function PopoverStyleDefaultShadow() {\n return (\n <Popover>\n <Popover.Trigger asChild>\n <Button>Open Popover</Button>\n </Popover.Trigger>\n <Popover.Content className=\"w-80 shadow-md\">\n <div className=\"grid gap-4\">\n <div className=\"space-y-2\">\n <h4 className=\"font-medium leading-none\">Dimensions</h4>\n <p className=\"text-sm text-muted-foreground\">\n Set the dimensions for the layer.\n </p>\n </div>\n\n <div className=\"grid gap-2\">\n <div className=\"grid grid-cols-3 items-center gap-4\">\n <Label htmlFor=\"width\">Width</Label>\n\n <Input\n id=\"width\"\n defaultValue=\"100%\"\n className=\"col-span-2 h-8\"\n />\n </div>\n\n <div className=\"grid grid-cols-3 items-center gap-4\">\n <Label htmlFor=\"height\">Height</Label>\n\n <Input\n id=\"height\"\n defaultValue=\"25px\"\n className=\"col-span-2 h-8\"\n />\n </div>\n </div>\n </div>\n </Popover.Content>\n </Popover>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/popover-style-default-shadow.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "popover-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "popover-style-default",
|
||||
"dependencies": [
|
||||
"lucide-react"
|
||||
],
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/popover.json",
|
||||
"https://retroui.dev/r/label.json",
|
||||
"https://retroui.dev/r/input.json",
|
||||
"https://retroui.dev/r/button.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/popover-style-default.tsx",
|
||||
"content": "\"use client\";\n\nimport { Popover, Label, Button, Input } from \"@/components/retroui\";\n\nexport default function PopoverStyleDefault() {\n return (\n <Popover>\n <Popover.Trigger asChild>\n <Button>Open Popover</Button>\n </Popover.Trigger>\n <Popover.Content className=\"w-80 font-sans\">\n <div className=\"grid gap-4\">\n <div className=\"space-y-2\">\n <h4 className=\"font-medium leading-none\">Dimensions</h4>\n <p className=\"text-sm text-muted-foreground\">\n Set the dimensions for the layer.\n </p>\n </div>\n\n <div className=\"grid gap-2\">\n <div className=\"grid grid-cols-3 items-center gap-4\">\n <Label htmlFor=\"width\">Width</Label>\n\n <Input\n id=\"width\"\n defaultValue=\"100%\"\n className=\"col-span-2 h-8\"\n />\n </div>\n\n <div className=\"grid grid-cols-3 items-center gap-4\">\n <Label htmlFor=\"height\">Height</Label>\n\n <Input\n id=\"height\"\n defaultValue=\"25px\"\n className=\"col-span-2 h-8\"\n />\n </div>\n </div>\n </div>\n </Popover.Content>\n </Popover>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/popover-style-default.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "popover-style-primary-shadow",
|
||||
"title": "popover-style-primary-shadow",
|
||||
"type": "registry:block",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/popover.json",
|
||||
"https://retroui.dev/r/label.json",
|
||||
"https://retroui.dev/r/input.json",
|
||||
"https://retroui.dev/r/button.json"
|
||||
],
|
||||
"dependencies": ["lucide-react"],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/popover-style-primary-shadow.tsx",
|
||||
"target": "components/retroui/preview/popover-style-primary-shadow.tsx",
|
||||
"type": "registry:block",
|
||||
"content": "\"use client\";\n\nimport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n Label,\n Button,\n Input,\n} from \"@/components/retroui\";\n\nexport default function PopoverStylePrimaryShadow() {\n return (\n <Popover>\n <PopoverTrigger asChild>\n <Button>Open Popover</Button>\n </PopoverTrigger>\n <PopoverContent className=\"w-80 font-sans\" variant=\"primary\" shadow=\"md\">\n <div className=\"grid gap-4\">\n <div className=\"space-y-2\">\n <h4 className=\"font-medium leading-none\">Dimensions</h4>\n <p className=\"text-sm text-muted-foreground\">\n Set the dimensions for the layer.\n </p>\n </div>\n\n <div className=\"grid gap-2\">\n <div className=\"grid grid-cols-3 items-center gap-4\">\n <Label htmlFor=\"width\">Width</Label>\n\n <Input\n id=\"width\"\n defaultValue=\"100%\"\n className=\"col-span-2 h-8\"\n />\n </div>\n\n <div className=\"grid grid-cols-3 items-center gap-4\">\n <Label htmlFor=\"height\">Height</Label>\n\n <Input\n id=\"height\"\n defaultValue=\"25px\"\n className=\"col-span-2 h-8\"\n />\n </div>\n </div>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "popover-style-primary",
|
||||
"title": "popover-style-default",
|
||||
"type": "registry:block",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/popover.json",
|
||||
"https://retroui.dev/r/label.json",
|
||||
"https://retroui.dev/r/input.json",
|
||||
"https://retroui.dev/r/button.json"
|
||||
],
|
||||
"dependencies": ["lucide-react"],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/popover-style-primary.tsx",
|
||||
"target": "components/retroui/preview/popover-style-primary.tsx",
|
||||
"type": "registry:block",
|
||||
"content": "\"use client\";\n\nimport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n Label,\n Button,\n Input,\n} from \"@/components/retroui\";\n\nexport default function PopoverStylePrimary() {\n return (\n <Popover>\n <PopoverTrigger asChild>\n <Button>Open Popover</Button>\n </PopoverTrigger>\n <PopoverContent className=\"w-80 font-sans\" variant=\"primary\">\n <div className=\"grid gap-4\">\n <div className=\"space-y-2\">\n <h4 className=\"font-medium leading-none\">Dimensions</h4>\n <p className=\"text-sm text-muted-foreground\">\n Set the dimensions for the layer.\n </p>\n </div>\n\n <div className=\"grid gap-2\">\n <div className=\"grid grid-cols-3 items-center gap-4\">\n <Label htmlFor=\"width\">Width</Label>\n\n <Input\n id=\"width\"\n defaultValue=\"100%\"\n className=\"col-span-2 h-8\"\n />\n </div>\n\n <div className=\"grid grid-cols-3 items-center gap-4\">\n <Label htmlFor=\"height\">Height</Label>\n\n <Input\n id=\"height\"\n defaultValue=\"25px\"\n className=\"col-span-2 h-8\"\n />\n </div>\n </div>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "popover",
|
||||
"type": "registry:component",
|
||||
"title": "Popover",
|
||||
"author": "Ankan Bhattacharya <https://github.com/ankan002>",
|
||||
"description": "A handy small component for your little input needs...😉",
|
||||
"dependencies": [
|
||||
"@radix-ui/react-popover",
|
||||
"class-variance-authority"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Popover.tsx",
|
||||
"content": "\"use client\";\n\nimport * as React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\n\nimport { cn } from \"@/lib/utils\";\nimport { cva, VariantProps } from \"class-variance-authority\";\n\nconst popoverContentVariants = cva(\n \"z-50 w-72 border-2 bg-background p-4 text-popover-foreground outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]\",\n);\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> &\n VariantProps<typeof popoverContentVariants>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n popoverContentVariants({\n className,\n }),\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nconst PopoverObject = Object.assign(Popover, {\n Trigger: PopoverTrigger,\n Content: PopoverContent,\n Anchor: PopoverAnchor,\n});\n\nexport { PopoverObject as Popover };\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Popover.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "progress-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "progress-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/progress.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/progress-style-default.tsx",
|
||||
"content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { Progress } from \"@/components/retroui/Progress\";\n\nexport default function ProgressDemo() {\n const [progress, setProgress] = React.useState(13);\n\n React.useEffect(() => {\n const timer = setTimeout(() => setProgress(66), 500);\n return () => clearTimeout(timer);\n }, []);\n\n return <Progress value={progress} className=\"w-[60%]\" />;\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/progress-style-default.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "progress",
|
||||
"type": "registry:component",
|
||||
"title": "Progress",
|
||||
"description": "Show progress...",
|
||||
"dependencies": [
|
||||
"@radix-ui/react-progress"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Progress.tsx",
|
||||
"content": "\"use client\";\n\nimport * as React from \"react\";\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Progress = React.forwardRef<\n React.ElementRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n className={cn(\n \"relative h-4 w-full overflow-hidden bg-background border-2\",\n className,\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"h-full w-full flex-1 bg-primary transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n));\nProgress.displayName = ProgressPrimitive.Root.displayName;\n\nexport { Progress };\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Progress.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "radio-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "radio-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/radio.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/radio-style-default.tsx",
|
||||
"content": "import { RadioGroup } from \"@/components/retroui/Radio\";\n\nexport default function RadioStyleSizes() {\n return (\n <RadioGroup>\n <div className=\"flex items-center space-x-2\">\n <RadioGroup.Item value=\"1\" />\n <label htmlFor=\"1\"> Option 1</label>\n </div>\n <div className=\"flex items-center space-x-2\">\n <RadioGroup.Item value=\"2\" />\n <label htmlFor=\"2\"> Option 2</label>\n </div>\n <div className=\"flex items-center space-x-2\">\n <RadioGroup.Item value=\"3\" />\n <label htmlFor=\"3\"> Option 3</label>\n </div>\n </RadioGroup>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/radio-style-default.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "radio-style-sizes",
|
||||
"type": "registry:block",
|
||||
"title": "radio-style-sizes",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/radio.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/radio-style-sizes.tsx",
|
||||
"content": "import { RadioGroup } from \"@/components/retroui/Radio\";\n\nexport default function RadioStyleSizes() {\n return (\n <div className=\"flex gap-4\">\n <RadioGroup>\n <div className=\"flex items-center space-x-2\">\n <RadioGroup.Item value=\"sm\" size=\"sm\" />\n <label htmlFor=\"sm\" className=\"text-sm\">\n Small\n </label>\n </div>\n <div className=\"flex items-center space-x-2\">\n <RadioGroup.Item value=\"md\" size=\"md\" />\n <label htmlFor=\"md\">Medium</label>\n </div>\n <div className=\"flex items-center space-x-2\">\n <RadioGroup.Item value=\"lg\" size=\"lg\" />\n <label htmlFor=\"lg\" className=\"text-lg\">\n Large Size\n </label>\n </div>\n </RadioGroup>\n </div>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/radio-style-sizes.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "radio-style-variants",
|
||||
"type": "registry:block",
|
||||
"title": "radio-style-variants",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/radio.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/radio-style-variants.tsx",
|
||||
"content": "import { RadioGroup } from \"@/components/retroui/Radio\";\n\nexport default function RadioStyleVariants() {\n return (\n <div className=\"flex gap-4\">\n <RadioGroup>\n <div className=\"flex items-center space-x-2\">\n <RadioGroup.Item value=\"default\" variant=\"default\" />\n <label htmlFor=\"default\">Default Style</label>\n </div>\n <div className=\"flex items-center space-x-2\">\n <RadioGroup.Item value=\"outline\" variant=\"outline\" />\n <label htmlFor=\"outline\">Outline Style</label>\n </div>\n <div className=\"flex items-center space-x-2\">\n <RadioGroup.Item value=\"solid\" variant=\"solid\" />\n <label htmlFor=\"solid\">Solid Style</label>\n </div>\n </RadioGroup>\n </div>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/radio-style-variants.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "radio",
|
||||
"type": "registry:component",
|
||||
"title": "Radio",
|
||||
"description": "Sometimes you need to pick multiple options! That's where the Radio component comes into play.",
|
||||
"dependencies": [
|
||||
"@radix-ui/react-radio-group",
|
||||
"class-variance-authority"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "components/retroui/Radio.tsx",
|
||||
"content": "import { cn } from \"@/lib/utils\";\nimport * as RadioPrimitive from \"@radix-ui/react-radio-group\";\nimport { cva, VariantProps } from \"class-variance-authority\";\n\nconst radioVariants = cva(\"border-border border-2\", {\n variants: {\n variant: {\n default: \"\",\n outline: \"\",\n solid: \"\",\n },\n size: {\n sm: \"h-4 w-4\",\n md: \"h-5 w-5\",\n lg: \"h-6 w-6\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n});\n\nconst radioIndicatorVariants = cva(\"flex \", {\n variants: {\n variant: {\n default: \"bg-primary border-2 border-border\",\n outline: \"border-2 border-border\",\n solid: \"bg-border\",\n },\n size: {\n sm: \"h-2 w-2\",\n md: \"h-2.5 w-2.5\",\n lg: \"h-3.5 w-3.5\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n});\n\ninterface RadioGroupProps\n extends React.ComponentProps<typeof RadioPrimitive.Root> {}\n\nexport const RadioGroupRoot = ({ className, ...props }: RadioGroupProps) => (\n <RadioPrimitive.Root className={cn(\"grid gap-2\", className)} {...props} />\n);\n\ninterface RadioProps\n extends React.ComponentProps<typeof RadioPrimitive.Item>,\n VariantProps<typeof radioVariants> {}\n\nexport const RadioItem = ({\n children,\n className,\n size,\n variant,\n ...props\n}: RadioProps) => (\n <RadioPrimitive.Item\n {...props}\n className={cn(\n radioVariants({\n size,\n variant,\n }),\n className,\n )}\n >\n <RadioPrimitive.Indicator className=\"flex justify-center items-center\">\n <span className={radioIndicatorVariants({ size, variant })}></span>\n </RadioPrimitive.Indicator>\n {children}\n </RadioPrimitive.Item>\n);\n\nconst RadioComponent = Object.assign(RadioGroupRoot, {\n Item: RadioItem,\n});\n\nexport { RadioComponent as RadioGroup };\n",
|
||||
"type": "registry:component",
|
||||
"target": "components/retroui/Radio.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||