@sykoramaros/marosh-components 0.0.9 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/dist/cli/index.cjs +7854 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -3
- package/src/App.css +42 -0
- package/src/App.tsx +42 -0
- package/src/components/CustomButton.tsx +32 -0
- package/src/components/Footer.tsx +59 -0
- package/src/components/MainNav.tsx +81 -0
- package/src/components/ui/button.tsx +62 -0
- package/src/components/ui/input.tsx +21 -0
- package/src/components/ui/navigation-menu.tsx +168 -0
- package/src/components/ui/separator.tsx +26 -0
- package/src/components/ui/sheet.tsx +139 -0
- package/src/components/ui/sidebar.tsx +726 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/tooltip.tsx +59 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/index.css +122 -0
- package/src/index.ts +17 -0
- package/src/lib/utils.ts +6 -0
- package/src/main.tsx +10 -0
package/dist/index.js
CHANGED
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
|
|
43
43
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
44
44
|
|
|
45
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ma="DialogDescriptionWarning",Pa=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Un(Ma).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ia=Mn,Da=In,Aa=An,La=Ln,ja=jn,ka=Wn;function Fa({...e}){return d.jsx(Ia,{"data-slot":"sheet",...e})}function Va({...e}){return d.jsx(Da,{"data-slot":"sheet-trigger",...e})}function Wa({...e}){return d.jsx(Aa,{"data-slot":"sheet-portal",...e})}function Ka({className:e,...t}){return d.jsx(La,{"data-slot":"sheet-overlay",className:L("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",e),...t})}function Ua({className:e,children:t,side:n="right",...r}){return d.jsxs(Wa,{children:[d.jsx(Ka,{}),d.jsxs(ja,{"data-slot":"sheet-content",className:L("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,d.jsxs(ka,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[d.jsx(Bt.XIcon,{className:"size-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}const za=({navItems:e,LinkComponent:t="a",className:n,...r})=>d.jsxs("header",{className:L(n),...r,children:[d.jsx("nav",{className:"hidden sm:flex sticky top-0 z-10 items-center px-4 h-14",children:d.jsx(bo,{children:d.jsx(wo,{children:e.map(o=>d.jsx(xo,{children:d.jsx(Ro,{asChild:!0,className:So(),children:d.jsxs(t,{to:o.url,className:"flex items-center",children:[o.icon&&d.jsx(o.icon,{}),d.jsx("span",{children:o.title})]})})},o.title))})})}),d.jsx("nav",{className:"flex sm:hidden",children:d.jsxs(Fa,{children:[d.jsx(Va,{asChild:!0,children:d.jsx(Qe,{variant:"ghost",size:"icon",children:d.jsx(Bt.Menu,{})})}),d.jsx(Ua,{side:"top",className:"p-8",children:d.jsx("div",{className:"flex flex-col gap-4",children:e.map(o=>d.jsxs(t,{to:o.url,className:"flex items-center gap-2",children:[o.icon&&d.jsx(o.icon,{}),d.jsx("span",{className:"text-base font-medium",children:o.title})]},o.title))})})]})})]}),$a=({links:e,copyright:t,socialProfiles:n,className:r,...o})=>d.jsx("footer",{className:L(r),...o,children:d.jsxs("div",{className:"flex flex-col items-center justify-center gap-5 bg-background py-8 border-t",children:[d.jsx("div",{className:"flex justify-center gap-5 sm:gap-8 xl:gap-13",children:n.map(a=>d.jsx(Qe,{variant:"secondary",size:"icon",className:"rounded-xl",children:d.jsx("a",{href:a.url,children:a.icon&&d.jsx(a.icon,{})})},a.title))}),d.jsx("div",{className:"flex justify-center gap-5 sm:gap-8 xl:gap-13",children:e.map(a=>{const c=a.url;return d.jsx("a",{href:c,children:a.title},a.title)})}),d.
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ma="DialogDescriptionWarning",Pa=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Un(Ma).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ia=Mn,Da=In,Aa=An,La=Ln,ja=jn,ka=Wn;function Fa({...e}){return d.jsx(Ia,{"data-slot":"sheet",...e})}function Va({...e}){return d.jsx(Da,{"data-slot":"sheet-trigger",...e})}function Wa({...e}){return d.jsx(Aa,{"data-slot":"sheet-portal",...e})}function Ka({className:e,...t}){return d.jsx(La,{"data-slot":"sheet-overlay",className:L("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",e),...t})}function Ua({className:e,children:t,side:n="right",...r}){return d.jsxs(Wa,{children:[d.jsx(Ka,{}),d.jsxs(ja,{"data-slot":"sheet-content",className:L("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,d.jsxs(ka,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[d.jsx(Bt.XIcon,{className:"size-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}const za=({navItems:e,LinkComponent:t="a",className:n,...r})=>d.jsxs("header",{className:L(n),...r,children:[d.jsx("nav",{className:"hidden sm:flex sticky top-0 z-10 items-center px-4 h-14",children:d.jsx(bo,{children:d.jsx(wo,{children:e.map(o=>d.jsx(xo,{children:d.jsx(Ro,{asChild:!0,className:So(),children:d.jsxs(t,{to:o.url,className:"flex items-center",children:[o.icon&&d.jsx(o.icon,{}),d.jsx("span",{children:o.title})]})})},o.title))})})}),d.jsx("nav",{className:"flex sm:hidden",children:d.jsxs(Fa,{children:[d.jsx(Va,{asChild:!0,children:d.jsx(Qe,{variant:"ghost",size:"icon",children:d.jsx(Bt.Menu,{})})}),d.jsx(Ua,{side:"top",className:"p-8",children:d.jsx("div",{className:"flex flex-col gap-4",children:e.map(o=>d.jsxs(t,{to:o.url,className:"flex items-center gap-2",children:[o.icon&&d.jsx(o.icon,{}),d.jsx("span",{className:"text-base font-medium",children:o.title})]},o.title))})})]})})]}),$a=({links:e,copyright:t,socialProfiles:n,className:r,...o})=>d.jsx("footer",{className:L(r),...o,children:d.jsxs("div",{className:"flex flex-col items-center justify-center gap-5 bg-background py-8 border-t",children:[d.jsx("div",{className:"flex justify-center gap-5 sm:gap-8 xl:gap-13",children:n.map(a=>d.jsx(Qe,{variant:"secondary",size:"icon",className:"rounded-xl",children:d.jsx("a",{href:a.url,children:a.icon&&d.jsx(a.icon,{})})},a.title))}),d.jsx("div",{className:"flex justify-center gap-5 sm:gap-8 xl:gap-13",children:e.map(a=>{const c=a.url;return d.jsx("a",{href:c,children:a.title},a.title)})}),d.jsx("div",{className:"text-muted",children:t})]})});exports.CustomButton=Cr;exports.Footer=$a;exports.Link=wr;exports.MainNav=za;exports.cn=L;
|
|
46
46
|
//# sourceMappingURL=index.js.map
|