@sykoramaros/marosh-components 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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},ao="DialogDescriptionWarning",io=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Yt(ao).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},so=kt,co=Ft,uo=Vt,lo=Kt,fo=Bt,vo=Ht;function mo({...e}){return u.jsx(so,{"data-slot":"sheet",...e})}function go({...e}){return u.jsx(co,{"data-slot":"sheet-trigger",...e})}function po({...e}){return u.jsx(uo,{"data-slot":"sheet-portal",...e})}function ho({className:e,...t}){return u.jsx(lo,{"data-slot":"sheet-overlay",className:A("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 yo({className:e,children:t,side:n="right",...r}){return u.jsxs(po,{children:[u.jsx(ho,{}),u.jsxs(fo,{"data-slot":"sheet-content",className:A("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,u.jsxs(vo,{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:[u.jsx(et.XIcon,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}const bo=({navItems:e,LinkComponent:t="a",className:n,...r})=>u.jsxs("header",{className:A(n),...r,children:[u.jsx("nav",{className:"hidden sm:flex sticky top-0 z-10 items-center px-4 h-14",children:u.jsx(qn,{children:u.jsx(Xn,{children:e.map(o=>u.jsx(Zn,{children:u.jsx(er,{asChild:!0,className:Qn(),children:u.jsxs(t,{to:o.url,className:"flex items-center
|
|
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},ao="DialogDescriptionWarning",io=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Yt(ao).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},so=kt,co=Ft,uo=Vt,lo=Kt,fo=Bt,vo=Ht;function mo({...e}){return u.jsx(so,{"data-slot":"sheet",...e})}function go({...e}){return u.jsx(co,{"data-slot":"sheet-trigger",...e})}function po({...e}){return u.jsx(uo,{"data-slot":"sheet-portal",...e})}function ho({className:e,...t}){return u.jsx(lo,{"data-slot":"sheet-overlay",className:A("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 yo({className:e,children:t,side:n="right",...r}){return u.jsxs(po,{children:[u.jsx(ho,{}),u.jsxs(fo,{"data-slot":"sheet-content",className:A("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,u.jsxs(vo,{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:[u.jsx(et.XIcon,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}const bo=({navItems:e,LinkComponent:t="a",className:n,...r})=>u.jsxs("header",{className:A(n),...r,children:[u.jsx("nav",{className:"hidden sm:flex sticky top-0 z-10 items-center px-4 h-14",children:u.jsx(qn,{children:u.jsx(Xn,{children:e.map(o=>u.jsx(Zn,{children:u.jsx(er,{asChild:!0,className:Qn(),children:u.jsxs(t,{to:o.url,className:"flex items-center",children:[o.icon&&u.jsx(o.icon,{}),u.jsx("span",{children:o.title})]})})},o.title))})})}),u.jsx("nav",{className:"flex sm:hidden",children:u.jsxs(mo,{children:[u.jsx(go,{asChild:!0,children:u.jsx(nt,{variant:"ghost",size:"icon",children:u.jsx(et.Menu,{})})}),u.jsx(yo,{side:"top",className:"p-8",children:u.jsx("div",{className:"flex flex-col gap-4",children:e.map(o=>u.jsxs(t,{to:o.url,className:"flex items-center gap-2",children:[o.icon&&u.jsx(o.icon,{}),u.jsx("span",{className:"text-base font-medium",children:o.title})]},o.title))})})]})})]});exports.CustomButton=Jt;exports.MainNav=bo;exports.cn=A;
|
|
46
46
|
//# sourceMappingURL=index.js.map
|