@tuwaio/docs-ui 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.cjs +2 -2
- package/dist/index.css +117 -173
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var novaCore=require('@tuwaio/nova-core'),outline=require('@heroicons/react/24/outline'),jsxRuntime=require('react/jsx-runtime'),reactSyntaxHighlighter=require('react-syntax-highlighter'),prism=require('react-syntax-highlighter/dist/esm/styles/prism'),O=require('next/dynamic'),D=require('next/image'),nextraThemeDocs=require('nextra-theme-docs'),components=require('nextra/components');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var O__default=/*#__PURE__*/_interopDefault(O);var D__default=/*#__PURE__*/_interopDefault(D);function h({isCopied:o,onCopy:t}){return jsxRuntime.jsx("button",{onClick:t,type:"button",className:novaCore.cn("tuwadocs:h-6 tuwadocs:w-6 tuwadocs:cursor-pointer tuwadocs:transition-colors",o?"tuwadocs:text-[var(--tuwa-success-icon)]":"tuwadocs:text-[var(--tuwa-text-secondary)] tuwadocs:hover:text-[var(--tuwa-text-primary)]"),children:o?jsxRuntime.jsx(outline.CheckCircleIcon,{}):jsxRuntime.jsx(outline.Square2StackIcon,{})})}function b({title:o,titleIcons:t,children:a,textToCopy:s}){let{isCopied:r,copy:m}=novaCore.useCopyToClipboard(1500);return jsxRuntime.jsxs("div",{className:novaCore.cn("tuwadocs:group tuwadocs:overflow-hidden tuwadocs:rounded-lg tuwadocs:border","tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-primary)]"),children:[jsxRuntime.jsxs("div",{className:novaCore.cn("tuwadocs:flex tuwadocs:items-center tuwadocs:justify-between tuwadocs:gap-4 tuwadocs:px-4 tuwadocs:py-2","tuwadocs:border-b tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-secondary)]"),children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-2",children:[jsxRuntime.jsx("div",{className:"tuwadocs:h-[20px] tuwadocs:w-[20px] tuwadocs:text-[var(--tuwa-text-secondary)]",children:t}),jsxRuntime.jsx("p",{className:"tuwadocs:text-sm tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-primary)]",children:o})]}),jsxRuntime.jsx("div",{className:"tuwadocs:transition tuwadocs:md:opacity-0 tuwadocs:group-hover:opacity-100",children:jsxRuntime.jsx(h,{isCopied:r,onCopy:()=>m(s)})})]}),a]})}var V=({children:o})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:o}),d=O__default.default(()=>Promise.resolve(V),{ssr:false});function x({children:o,language:t,resolvedTheme:a}){return jsxRuntime.jsx("div",{className:"tuwadocs:border-t tuwadocs:border-[var(--tuwa-border-secondary)]",children:jsxRuntime.jsx(d,{children:jsxRuntime.jsx(reactSyntaxHighlighter.Prism,{language:t??"bash",customStyle:{margin:0,background:"transparent"},style:a==="dark"?prism.materialOceanic:prism.materialLight,children:String(o).replace(/\n$/,"")})})})}function No({features:o}){return jsxRuntime.jsx("div",{className:"tuwadocs:grid tuwadocs:grid-cols-1 tuwadocs:md:grid-cols-3 tuwadocs:gap-6 tuwadocs:mt-12",children:o.map(t=>jsxRuntime.jsxs("div",{className:"tuwadocs:p-6 tuwadocs:border tuwadocs:rounded-lg tuwadocs:hover:shadow-lg tuwadocs:transition-shadow",children:[jsxRuntime.jsx("div",{className:"tuwadocs:text-2xl tuwadocs:mb-3",children:t.icon}),jsxRuntime.jsx("h3",{className:"tuwadocs:text-lg tuwadocs:font-semibold tuwadocs:mb-2",children:t.title}),jsxRuntime.jsx("p",{className:"tuwadocs:text-gray-600 tuwadocs:dark:text-gray-400",children:t.description})]},t.title))})}var y=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwadocs:hover:text-red-600 tuwadocs:dark:hover:text-red-400",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})}],k=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwa-footer-link--npm",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})},{title:"GitHub",href:"https://github.com/TuwaIO",className:"tuwa-footer-link--github",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}];function Io({links:o}){return jsxRuntime.jsx(nextraThemeDocs.Footer,{children:jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:w-full tuwadocs:flex-col tuwadocs:items-center tuwadocs:sm:items-start tuwa-footer-border tuwadocs:pt-8",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:mb-6 tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:w-full tuwadocs:justify-between",children:[jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center",children:jsxRuntime.jsx(d,{children:jsxRuntime.jsx(D__default.default,{width:120,height:40,src:"https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/tuwa_logo.svg",alt:"TUWA Logo",className:"tuwadocs:transition-opacity tuwadocs:duration-300"})})}),jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:text-sm",children:(o??k).map(({title:t,href:a,image:s,className:r})=>jsxRuntime.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:novaCore.cn("tuwa-footer-link tuwadocs:flex tuwadocs:items-center tuwadocs:gap-1",r),children:[s,jsxRuntime.jsx("span",{className:"tuwadocs:hidden tuwadocs:sm:inline",children:t})]},t))})]}),jsxRuntime.jsxs("div",{className:"tuwadocs:w-full tuwa-footer-border tuwadocs:pt-4",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:flex-col tuwadocs:sm:flex-row tuwadocs:justify-between tuwadocs:items-start tuwadocs:sm:items-center tuwadocs:gap-4",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex-1",children:[jsxRuntime.jsx("p",{className:"tuwa-footer-description",children:"A useful and powerful utils for building decentralized applications."}),jsxRuntime.jsx("p",{className:"tuwa-footer-license",children:"Licensed under Apache 2.0. Open source and free to use."})]}),jsxRuntime.jsxs("div",{className:"tuwa-footer-copyright",children:["\xA9 2025 - ",new Date().getFullYear()," TUWA. Built with"," ",jsxRuntime.jsx("span",{className:"tuwa-heart","aria-label":"love",children:"\u2764\uFE0F"})," ","for Web3."]})]}),jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:flex-wrap tuwadocs:items-center tuwadocs:gap-3 tuwadocs:mt-4 tuwadocs:pt-4 tuwa-footer-border"})]})]})})}function Oo({links:o}){return jsxRuntime.jsx(nextraThemeDocs.Navbar,{logo:jsxRuntime.jsx(d,{children:jsxRuntime.jsx(D__default.default,{width:120,height:40,src:"https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/tuwa_logo.svg",alt:"TUWA Logo"})}),children:jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-3",children:(o??y).map(({title:t,href:a,image:s,className:r})=>jsxRuntime.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:novaCore.cn("tuwadocs:hidden tuwadocs:sm:flex tuwadocs:items-center tuwadocs:gap-1 tuwadocs:px-3 tuwadocs:py-1.5 tuwadocs:text-sm tuwadocs:font-medium tuwadocs:transition-colors tuwadocs:text-gray-700 tuwadocs:dark:text-gray-300",r),children:[s,t]},t))})})}var P=[{title:"pnpm",command:"pnpm add"},{title:"bun",command:"bun add"},{title:"npm",command:"npm install"},{title:"yarn",command:"yarn add"}];function Yo({packagesList:o,resolvedTheme:t}){return jsxRuntime.jsx("div",{className:"tuwadocs:my-4",children:jsxRuntime.jsx(components.Tabs,{items:P.map(a=>a.title),children:P.map(a=>jsxRuntime.jsx(components.Tabs.Tab,{children:jsxRuntime.jsx(b,{title:"Terminal",titleIcons:jsxRuntime.jsx(outline.CommandLineIcon,{}),textToCopy:`${a.command} ${o}`,children:jsxRuntime.jsx(x,{resolvedTheme:t,language:"bash",children:`${a.command} ${o}`})})},a.title))})})}function Ko({href:o,children:t}){return jsxRuntime.jsx("a",{className:novaCore.cn("tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-accent)]","tuwadocs:transition-all tuwadocs:hover:underline tuwadocs:underline-offset-4"),href:o,target:"_blank",rel:"noopener noreferrer",children:t})}var jo=({src:o,poster:t,autoplay:a=false,muted:s=false,loop:r=false,controls:m=true,className:R="",aspectRatio:T="aspect-video",onPlay:I,onPause:L,onEnded:B,"aria-label":H})=>jsxRuntime.jsx("div",{className:novaCore.cn("tuwadocs:relative tuwadocs:w-full tuwadocs:overflow-hidden tuwadocs:rounded-lg tuwadocs:bg-black tuwadocs:my-4",T,R),children:jsxRuntime.jsxs("video",{src:o,poster:t,controls:m,autoPlay:a,muted:s,loop:r,className:novaCore.cn("tuwadocs:absolute tuwadocs:inset-0 tuwadocs:h-full tuwadocs:w-full tuwadocs:object-contain","tuwadocs:transition-opacity tuwadocs:duration-200","tuwadocs:focus:outline-none tuwadocs:focus:ring-2 tuwadocs:focus:ring-blue-500 tuwadocs:focus:ring-offset-2"),onPlay:I,onPause:L,onEnded:B,"aria-label":H,preload:"metadata",children:[jsxRuntime.jsx("track",{kind:"captions"}),"Your browser does not support the video tag. Please"," ",jsxRuntime.jsx("a",{href:o,download:true,className:"tuwadocs:text-blue-400 tuwadocs:underline tuwadocs:hover:text-blue-300",children:"download the video"})," ","to watch it."]})});
|
|
2
|
-
exports.CodeBlock=b;exports.CodeHighlighter=x;exports.CopyIconButton=h;exports.Features=No;exports.Footer=Io;exports.Navbar=Oo;exports.PackageInstallationTabs=Yo;exports.StyledLink=Ko;exports.VideoPlayer=jo;exports.baseFooterLinks=
|
|
1
|
+
'use strict';var novaCore=require('@tuwaio/nova-core'),outline=require('@heroicons/react/24/outline'),jsxRuntime=require('react/jsx-runtime'),reactSyntaxHighlighter=require('react-syntax-highlighter'),prism=require('react-syntax-highlighter/dist/esm/styles/prism'),O=require('next/dynamic'),D=require('next/image'),nextraThemeDocs=require('nextra-theme-docs'),components=require('nextra/components');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var O__default=/*#__PURE__*/_interopDefault(O);var D__default=/*#__PURE__*/_interopDefault(D);function h({isCopied:o,onCopy:t}){return jsxRuntime.jsx("button",{onClick:t,type:"button",className:novaCore.cn("tuwadocs:h-6 tuwadocs:w-6 tuwadocs:cursor-pointer tuwadocs:transition-colors",o?"tuwadocs:text-[var(--tuwa-success-icon)]":"tuwadocs:text-[var(--tuwa-text-secondary)] tuwadocs:hover:text-[var(--tuwa-text-primary)]"),children:o?jsxRuntime.jsx(outline.CheckCircleIcon,{}):jsxRuntime.jsx(outline.Square2StackIcon,{})})}function b({title:o,titleIcons:t,children:a,textToCopy:s}){let{isCopied:r,copy:m}=novaCore.useCopyToClipboard(1500);return jsxRuntime.jsxs("div",{className:novaCore.cn("tuwadocs:group tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:border","tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-primary)]"),children:[jsxRuntime.jsxs("div",{className:novaCore.cn("tuwadocs:flex tuwadocs:items-center tuwadocs:justify-between tuwadocs:gap-4 tuwadocs:px-4 tuwadocs:py-2","tuwadocs:border-b tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-secondary)]"),children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-2",children:[jsxRuntime.jsx("div",{className:"tuwadocs:h-[20px] tuwadocs:w-[20px] tuwadocs:text-[var(--tuwa-text-secondary)]",children:t}),jsxRuntime.jsx("p",{className:"tuwadocs:text-sm tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-primary)]",children:o})]}),jsxRuntime.jsx("div",{className:"tuwadocs:transition tuwadocs:md:opacity-0 tuwadocs:group-hover:opacity-100",children:jsxRuntime.jsx(h,{isCopied:r,onCopy:()=>m(s)})})]}),a]})}var V=({children:o})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:o}),d=O__default.default(()=>Promise.resolve(V),{ssr:false});function x({children:o,language:t,resolvedTheme:a}){return jsxRuntime.jsx("div",{className:"tuwadocs:border-t tuwadocs:border-[var(--tuwa-border-secondary)]",children:jsxRuntime.jsx(d,{children:jsxRuntime.jsx(reactSyntaxHighlighter.Prism,{language:t??"bash",customStyle:{margin:0,background:"transparent"},style:a==="dark"?prism.materialOceanic:prism.materialLight,children:String(o).replace(/\n$/,"")})})})}function No({features:o}){return jsxRuntime.jsx("div",{className:"tuwadocs:grid tuwadocs:grid-cols-1 tuwadocs:md:grid-cols-3 tuwadocs:gap-6 tuwadocs:mt-12",children:o.map(t=>jsxRuntime.jsxs("div",{className:"tuwadocs:p-6 tuwadocs:border tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:hover:shadow-lg tuwadocs:transition-shadow",children:[jsxRuntime.jsx("div",{className:"tuwadocs:text-2xl tuwadocs:mb-3",children:t.icon}),jsxRuntime.jsx("h3",{className:"tuwadocs:text-lg tuwadocs:font-semibold tuwadocs:mb-2",children:t.title}),jsxRuntime.jsx("p",{className:"tuwadocs:text-[var(--tuwa-text-secondary)]",children:t.description})]},t.title))})}var y=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwadocs:hover:text-red-600 tuwadocs:dark:hover:text-red-400",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})}],C=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwa-footer-link--npm",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})},{title:"GitHub",href:"https://github.com/TuwaIO",className:"tuwa-footer-link--github",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}];function Io({links:o}){return jsxRuntime.jsx(nextraThemeDocs.Footer,{children:jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:w-full tuwadocs:flex-col tuwadocs:items-center tuwadocs:sm:items-start tuwa-footer-border tuwadocs:pt-8",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:mb-6 tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:w-full tuwadocs:justify-between",children:[jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center",children:jsxRuntime.jsx(d,{children:jsxRuntime.jsx(D__default.default,{width:120,height:40,src:"https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/tuwa_logo.svg",alt:"TUWA Logo",className:"tuwadocs:transition-opacity tuwadocs:duration-300"})})}),jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:text-sm",children:(o??C).map(({title:t,href:a,image:s,className:r})=>jsxRuntime.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:novaCore.cn("tuwa-footer-link tuwadocs:flex tuwadocs:items-center tuwadocs:gap-1",r),children:[s,jsxRuntime.jsx("span",{className:"tuwadocs:hidden tuwadocs:sm:inline",children:t})]},t))})]}),jsxRuntime.jsxs("div",{className:"tuwadocs:w-full tuwa-footer-border tuwadocs:pt-4",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:flex-col tuwadocs:sm:flex-row tuwadocs:justify-between tuwadocs:items-start tuwadocs:sm:items-center tuwadocs:gap-4",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex-1",children:[jsxRuntime.jsx("p",{className:"tuwa-footer-description",children:"A useful and powerful utils for building decentralized applications."}),jsxRuntime.jsx("p",{className:"tuwa-footer-license",children:"Licensed under Apache 2.0. Open source and free to use."})]}),jsxRuntime.jsxs("div",{className:"tuwa-footer-copyright",children:["\xA9 2025 - ",new Date().getFullYear()," TUWA. Built with"," ",jsxRuntime.jsx("span",{className:"tuwa-heart","aria-label":"love",children:"\u2764\uFE0F"})," ","for Web3."]})]}),jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:flex-wrap tuwadocs:items-center tuwadocs:gap-3 tuwadocs:mt-4 tuwadocs:pt-4 tuwa-footer-border"})]})]})})}function Oo({links:o}){return jsxRuntime.jsx(nextraThemeDocs.Navbar,{logo:jsxRuntime.jsx(d,{children:jsxRuntime.jsx(D__default.default,{width:120,height:40,src:"https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/tuwa_logo.svg",alt:"TUWA Logo"})}),children:jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-3",children:(o??y).map(({title:t,href:a,image:s,className:r})=>jsxRuntime.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:novaCore.cn("tuwadocs:hidden tuwadocs:sm:flex tuwadocs:items-center tuwadocs:gap-1 tuwadocs:px-3 tuwadocs:py-1.5 tuwadocs:text-sm tuwadocs:font-medium tuwadocs:transition-colors tuwadocs:text-[var(--tuwa-text-primary)]",r),children:[s,t]},t))})})}var P=[{title:"pnpm",command:"pnpm add"},{title:"bun",command:"bun add"},{title:"npm",command:"npm install"},{title:"yarn",command:"yarn add"}];function Yo({packagesList:o,resolvedTheme:t}){return jsxRuntime.jsx("div",{className:"tuwadocs:my-4",children:jsxRuntime.jsx(components.Tabs,{items:P.map(a=>a.title),children:P.map(a=>jsxRuntime.jsx(components.Tabs.Tab,{children:jsxRuntime.jsx(b,{title:"Terminal",titleIcons:jsxRuntime.jsx(outline.CommandLineIcon,{}),textToCopy:`${a.command} ${o}`,children:jsxRuntime.jsx(x,{resolvedTheme:t,language:"bash",children:`${a.command} ${o}`})})},a.title))})})}function Ko({href:o,children:t}){return jsxRuntime.jsx("a",{className:novaCore.cn("tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-accent)]","tuwadocs:transition-all tuwadocs:hover:underline tuwadocs:underline-offset-4"),href:o,target:"_blank",rel:"noopener noreferrer",children:t})}var jo=({src:o,poster:t,autoplay:a=false,muted:s=false,loop:r=false,controls:m=true,className:R="",aspectRatio:T="aspect-video",onPlay:I,onPause:L,onEnded:B,"aria-label":H})=>jsxRuntime.jsx("div",{className:novaCore.cn("tuwadocs:relative tuwadocs:w-full tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:bg-black tuwadocs:my-4",T,R),children:jsxRuntime.jsxs("video",{src:o,poster:t,controls:m,autoPlay:a,muted:s,loop:r,className:novaCore.cn("tuwadocs:absolute tuwadocs:inset-0 tuwadocs:h-full tuwadocs:w-full tuwadocs:object-contain","tuwadocs:transition-opacity tuwadocs:duration-200","tuwadocs:focus:outline-none tuwadocs:focus:ring-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-[var(--tuwa-text-accent)] tuwadocs:focus:ring-offset-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-offset-[var(--tuwa-bg-primary)]"),onPlay:I,onPause:L,onEnded:B,"aria-label":H,preload:"metadata",children:[jsxRuntime.jsx("track",{kind:"captions"}),"Your browser does not support the video tag. Please"," ",jsxRuntime.jsx("a",{href:o,download:true,className:"tuwadocs:text-[var(--tuwa-text-accent)] tuwadocs:underline tuwadocs:hover:opacity-80",children:"download the video"})," ","to watch it."]})});
|
|
2
|
+
exports.CodeBlock=b;exports.CodeHighlighter=x;exports.CopyIconButton=h;exports.Features=No;exports.Footer=Io;exports.Navbar=Oo;exports.PackageInstallationTabs=Yo;exports.StyledLink=Ko;exports.VideoPlayer=jo;exports.baseFooterLinks=C;exports.baseNavLinks=y;Object.keys(novaCore).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return novaCore[k]}})});
|
package/dist/index.css
CHANGED
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
--novacore-font-weight-semibold: 600;
|
|
15
15
|
--novacore-font-weight-bold: 700;
|
|
16
16
|
--novacore-tracking-tight: -0.025em;
|
|
17
|
-
--novacore-radius-md: 0.375rem;
|
|
18
|
-
--novacore-radius-2xl: 1rem;
|
|
19
17
|
--novacore-animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
20
18
|
--novacore-blur-sm: 8px;
|
|
21
19
|
--novacore-default-transition-duration: 150ms;
|
|
@@ -110,6 +108,9 @@
|
|
|
110
108
|
.novacore\:justify-between {
|
|
111
109
|
justify-content: space-between;
|
|
112
110
|
}
|
|
111
|
+
.novacore\:justify-center {
|
|
112
|
+
justify-content: center;
|
|
113
|
+
}
|
|
113
114
|
.novacore\:gap-1 {
|
|
114
115
|
gap: calc(var(--novacore-spacing) * 1);
|
|
115
116
|
}
|
|
@@ -122,15 +123,15 @@
|
|
|
122
123
|
.novacore\:overflow-y-auto {
|
|
123
124
|
overflow-y: auto;
|
|
124
125
|
}
|
|
126
|
+
.novacore\:rounded-\[var\(--tuwa-rounded-corners\)\] {
|
|
127
|
+
border-radius: var(--tuwa-rounded-corners);
|
|
128
|
+
}
|
|
125
129
|
.novacore\:rounded-full {
|
|
126
130
|
border-radius: calc(infinity * 1px);
|
|
127
131
|
}
|
|
128
|
-
.novacore\:rounded-
|
|
129
|
-
border-radius: var(--
|
|
130
|
-
|
|
131
|
-
.novacore\:rounded-t-2xl {
|
|
132
|
-
border-top-left-radius: var(--novacore-radius-2xl);
|
|
133
|
-
border-top-right-radius: var(--novacore-radius-2xl);
|
|
132
|
+
.novacore\:rounded-t-\[var\(--tuwa-rounded-corners\)\] {
|
|
133
|
+
border-top-left-radius: var(--tuwa-rounded-corners);
|
|
134
|
+
border-top-right-radius: var(--tuwa-rounded-corners);
|
|
134
135
|
}
|
|
135
136
|
.novacore\:border {
|
|
136
137
|
border-style: var(--tw-border-style);
|
|
@@ -209,10 +210,6 @@
|
|
|
209
210
|
.novacore\:text-\[var\(--tuwa-text-tertiary\)\] {
|
|
210
211
|
color: var(--tuwa-text-tertiary);
|
|
211
212
|
}
|
|
212
|
-
.novacore\:shadow-2xl {
|
|
213
|
-
--tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
|
|
214
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
215
|
-
}
|
|
216
213
|
.novacore\:backdrop-blur-sm {
|
|
217
214
|
--tw-backdrop-blur: blur(var(--novacore-blur-sm));
|
|
218
215
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
@@ -307,9 +304,9 @@
|
|
|
307
304
|
}
|
|
308
305
|
}
|
|
309
306
|
}
|
|
310
|
-
.novacore\:sm\:rounded-
|
|
307
|
+
.novacore\:sm\:rounded-\[var\(--tuwa-rounded-corners\)\] {
|
|
311
308
|
@media (width >= 40rem) {
|
|
312
|
-
border-radius: var(--
|
|
309
|
+
border-radius: var(--tuwa-rounded-corners);
|
|
313
310
|
}
|
|
314
311
|
}
|
|
315
312
|
.novacore\:sm\:p-4 {
|
|
@@ -317,13 +314,6 @@
|
|
|
317
314
|
padding: calc(var(--novacore-spacing) * 4);
|
|
318
315
|
}
|
|
319
316
|
}
|
|
320
|
-
.novacore\:\[\&_path\]\:first-of-type\:fill-\[var\(--tuwa-testnet-icons\)\] {
|
|
321
|
-
& path {
|
|
322
|
-
&:first-of-type {
|
|
323
|
-
fill: var(--tuwa-testnet-icons);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
317
|
}
|
|
328
318
|
:root {
|
|
329
319
|
--tuwa-success-bg: oklch(96.2% 0.044 156.743);
|
|
@@ -355,6 +345,8 @@
|
|
|
355
345
|
--tuwa-standart-button-bg: oklch(96.7% 0.003 264.542);
|
|
356
346
|
--tuwa-standart-button-hover: oklch(92.8% 0.006 264.531);
|
|
357
347
|
--tuwa-testnet-icons: #c4bfb8;
|
|
348
|
+
--tuwa-rounded-corners: 4px;
|
|
349
|
+
--tuwa-ring-width: 2px;
|
|
358
350
|
}
|
|
359
351
|
.dark {
|
|
360
352
|
--tuwa-success-bg: oklch(39.3% 0.095 152.535);
|
|
@@ -452,71 +444,6 @@
|
|
|
452
444
|
syntax: "*";
|
|
453
445
|
inherits: false;
|
|
454
446
|
}
|
|
455
|
-
@property --tw-shadow {
|
|
456
|
-
syntax: "*";
|
|
457
|
-
inherits: false;
|
|
458
|
-
initial-value: 0 0 #0000;
|
|
459
|
-
}
|
|
460
|
-
@property --tw-shadow-color {
|
|
461
|
-
syntax: "*";
|
|
462
|
-
inherits: false;
|
|
463
|
-
}
|
|
464
|
-
@property --tw-shadow-alpha {
|
|
465
|
-
syntax: "<percentage>";
|
|
466
|
-
inherits: false;
|
|
467
|
-
initial-value: 100%;
|
|
468
|
-
}
|
|
469
|
-
@property --tw-inset-shadow {
|
|
470
|
-
syntax: "*";
|
|
471
|
-
inherits: false;
|
|
472
|
-
initial-value: 0 0 #0000;
|
|
473
|
-
}
|
|
474
|
-
@property --tw-inset-shadow-color {
|
|
475
|
-
syntax: "*";
|
|
476
|
-
inherits: false;
|
|
477
|
-
}
|
|
478
|
-
@property --tw-inset-shadow-alpha {
|
|
479
|
-
syntax: "<percentage>";
|
|
480
|
-
inherits: false;
|
|
481
|
-
initial-value: 100%;
|
|
482
|
-
}
|
|
483
|
-
@property --tw-ring-color {
|
|
484
|
-
syntax: "*";
|
|
485
|
-
inherits: false;
|
|
486
|
-
}
|
|
487
|
-
@property --tw-ring-shadow {
|
|
488
|
-
syntax: "*";
|
|
489
|
-
inherits: false;
|
|
490
|
-
initial-value: 0 0 #0000;
|
|
491
|
-
}
|
|
492
|
-
@property --tw-inset-ring-color {
|
|
493
|
-
syntax: "*";
|
|
494
|
-
inherits: false;
|
|
495
|
-
}
|
|
496
|
-
@property --tw-inset-ring-shadow {
|
|
497
|
-
syntax: "*";
|
|
498
|
-
inherits: false;
|
|
499
|
-
initial-value: 0 0 #0000;
|
|
500
|
-
}
|
|
501
|
-
@property --tw-ring-inset {
|
|
502
|
-
syntax: "*";
|
|
503
|
-
inherits: false;
|
|
504
|
-
}
|
|
505
|
-
@property --tw-ring-offset-width {
|
|
506
|
-
syntax: "<length>";
|
|
507
|
-
inherits: false;
|
|
508
|
-
initial-value: 0px;
|
|
509
|
-
}
|
|
510
|
-
@property --tw-ring-offset-color {
|
|
511
|
-
syntax: "*";
|
|
512
|
-
inherits: false;
|
|
513
|
-
initial-value: #fff;
|
|
514
|
-
}
|
|
515
|
-
@property --tw-ring-offset-shadow {
|
|
516
|
-
syntax: "*";
|
|
517
|
-
inherits: false;
|
|
518
|
-
initial-value: 0 0 #0000;
|
|
519
|
-
}
|
|
520
447
|
@property --tw-backdrop-blur {
|
|
521
448
|
syntax: "*";
|
|
522
449
|
inherits: false;
|
|
@@ -585,20 +512,6 @@
|
|
|
585
512
|
--tw-leading: initial;
|
|
586
513
|
--tw-font-weight: initial;
|
|
587
514
|
--tw-tracking: initial;
|
|
588
|
-
--tw-shadow: 0 0 #0000;
|
|
589
|
-
--tw-shadow-color: initial;
|
|
590
|
-
--tw-shadow-alpha: 100%;
|
|
591
|
-
--tw-inset-shadow: 0 0 #0000;
|
|
592
|
-
--tw-inset-shadow-color: initial;
|
|
593
|
-
--tw-inset-shadow-alpha: 100%;
|
|
594
|
-
--tw-ring-color: initial;
|
|
595
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
596
|
-
--tw-inset-ring-color: initial;
|
|
597
|
-
--tw-inset-ring-shadow: 0 0 #0000;
|
|
598
|
-
--tw-ring-inset: initial;
|
|
599
|
-
--tw-ring-offset-width: 0px;
|
|
600
|
-
--tw-ring-offset-color: #fff;
|
|
601
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
602
515
|
--tw-backdrop-blur: initial;
|
|
603
516
|
--tw-backdrop-brightness: initial;
|
|
604
517
|
--tw-backdrop-contrast: initial;
|
|
@@ -620,17 +533,7 @@
|
|
|
620
533
|
:root, :host {
|
|
621
534
|
--tuwadocs-color-red-400: oklch(70.4% 0.191 22.216);
|
|
622
535
|
--tuwadocs-color-red-600: oklch(57.7% 0.245 27.325);
|
|
623
|
-
--tuwadocs-color-blue-300: oklch(80.9% 0.105 251.813);
|
|
624
|
-
--tuwadocs-color-blue-400: oklch(70.7% 0.165 254.624);
|
|
625
|
-
--tuwadocs-color-blue-500: oklch(62.3% 0.214 259.815);
|
|
626
|
-
--tuwadocs-color-gray-200: oklch(92.8% 0.006 264.531);
|
|
627
|
-
--tuwadocs-color-gray-300: oklch(87.2% 0.01 258.338);
|
|
628
|
-
--tuwadocs-color-gray-400: oklch(70.7% 0.022 261.325);
|
|
629
|
-
--tuwadocs-color-gray-600: oklch(44.6% 0.03 256.802);
|
|
630
|
-
--tuwadocs-color-gray-700: oklch(37.3% 0.034 259.733);
|
|
631
|
-
--tuwadocs-color-gray-900: oklch(21% 0.034 264.665);
|
|
632
536
|
--tuwadocs-color-black: #000;
|
|
633
|
-
--tuwadocs-color-white: #fff;
|
|
634
537
|
--tuwadocs-spacing: 0.25rem;
|
|
635
538
|
--tuwadocs-text-xs: 0.75rem;
|
|
636
539
|
--tuwadocs-text-xs--line-height: calc(1 / 0.75);
|
|
@@ -644,10 +547,6 @@
|
|
|
644
547
|
--tuwadocs-font-weight-semibold: 600;
|
|
645
548
|
--tuwadocs-font-weight-bold: 700;
|
|
646
549
|
--tuwadocs-tracking-tight: -0.025em;
|
|
647
|
-
--tuwadocs-radius-md: 0.375rem;
|
|
648
|
-
--tuwadocs-radius-lg: 0.5rem;
|
|
649
|
-
--tuwadocs-radius-xl: 0.75rem;
|
|
650
|
-
--tuwadocs-radius-2xl: 1rem;
|
|
651
550
|
--tuwadocs-animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
652
551
|
--tuwadocs-blur-sm: 8px;
|
|
653
552
|
--tuwadocs-default-transition-duration: 150ms;
|
|
@@ -757,8 +656,8 @@
|
|
|
757
656
|
.tuwadocs\:overflow-hidden {
|
|
758
657
|
overflow: hidden;
|
|
759
658
|
}
|
|
760
|
-
.tuwadocs\:rounded-
|
|
761
|
-
border-radius: var(--
|
|
659
|
+
.tuwadocs\:rounded-\[var\(--tuwa-rounded-corners\)\] {
|
|
660
|
+
border-radius: var(--tuwa-rounded-corners);
|
|
762
661
|
}
|
|
763
662
|
.tuwadocs\:border {
|
|
764
663
|
border-style: var(--tw-border-style);
|
|
@@ -841,15 +740,6 @@
|
|
|
841
740
|
.tuwadocs\:text-\[var\(--tuwa-text-secondary\)\] {
|
|
842
741
|
color: var(--tuwa-text-secondary);
|
|
843
742
|
}
|
|
844
|
-
.tuwadocs\:text-blue-400 {
|
|
845
|
-
color: var(--tuwadocs-color-blue-400);
|
|
846
|
-
}
|
|
847
|
-
.tuwadocs\:text-gray-600 {
|
|
848
|
-
color: var(--tuwadocs-color-gray-600);
|
|
849
|
-
}
|
|
850
|
-
.tuwadocs\:text-gray-700 {
|
|
851
|
-
color: var(--tuwadocs-color-gray-700);
|
|
852
|
-
}
|
|
853
743
|
.tuwadocs\:underline {
|
|
854
744
|
text-decoration-line: underline;
|
|
855
745
|
}
|
|
@@ -903,24 +793,24 @@
|
|
|
903
793
|
}
|
|
904
794
|
}
|
|
905
795
|
}
|
|
906
|
-
.tuwadocs\:hover\:text-
|
|
796
|
+
.tuwadocs\:hover\:text-red-600 {
|
|
907
797
|
&:hover {
|
|
908
798
|
@media (hover: hover) {
|
|
909
|
-
color: var(--tuwadocs-color-
|
|
799
|
+
color: var(--tuwadocs-color-red-600);
|
|
910
800
|
}
|
|
911
801
|
}
|
|
912
802
|
}
|
|
913
|
-
.tuwadocs\:hover\:
|
|
803
|
+
.tuwadocs\:hover\:underline {
|
|
914
804
|
&:hover {
|
|
915
805
|
@media (hover: hover) {
|
|
916
|
-
|
|
806
|
+
text-decoration-line: underline;
|
|
917
807
|
}
|
|
918
808
|
}
|
|
919
809
|
}
|
|
920
|
-
.tuwadocs\:hover\:
|
|
810
|
+
.tuwadocs\:hover\:opacity-80 {
|
|
921
811
|
&:hover {
|
|
922
812
|
@media (hover: hover) {
|
|
923
|
-
|
|
813
|
+
opacity: 80%;
|
|
924
814
|
}
|
|
925
815
|
}
|
|
926
816
|
}
|
|
@@ -932,23 +822,28 @@
|
|
|
932
822
|
}
|
|
933
823
|
}
|
|
934
824
|
}
|
|
935
|
-
.tuwadocs\:focus\:ring-
|
|
825
|
+
.tuwadocs\:focus\:ring-\[length\:var\(--tuwa-ring-width\)\] {
|
|
936
826
|
&:focus {
|
|
937
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(
|
|
827
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(var(--tuwa-ring-width) + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
938
828
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
939
829
|
}
|
|
940
830
|
}
|
|
941
|
-
.tuwadocs\:focus\:ring-
|
|
831
|
+
.tuwadocs\:focus\:ring-\[var\(--tuwa-text-accent\)\] {
|
|
942
832
|
&:focus {
|
|
943
|
-
--tw-ring-color: var(--
|
|
833
|
+
--tw-ring-color: var(--tuwa-text-accent);
|
|
944
834
|
}
|
|
945
835
|
}
|
|
946
|
-
.tuwadocs\:focus\:ring-offset-
|
|
836
|
+
.tuwadocs\:focus\:ring-offset-\[length\:var\(--tuwa-ring-width\)\] {
|
|
947
837
|
&:focus {
|
|
948
|
-
--tw-ring-offset-width:
|
|
838
|
+
--tw-ring-offset-width: var(--tuwa-ring-width);
|
|
949
839
|
--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
950
840
|
}
|
|
951
841
|
}
|
|
842
|
+
.tuwadocs\:focus\:ring-offset-\[var\(--tuwa-bg-primary\)\] {
|
|
843
|
+
&:focus {
|
|
844
|
+
--tw-ring-offset-color: var(--tuwa-bg-primary);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
952
847
|
.tuwadocs\:focus\:outline-none {
|
|
953
848
|
&:focus {
|
|
954
849
|
--tw-outline-style: none;
|
|
@@ -990,16 +885,6 @@
|
|
|
990
885
|
opacity: 0%;
|
|
991
886
|
}
|
|
992
887
|
}
|
|
993
|
-
.tuwadocs\:dark\:text-gray-300 {
|
|
994
|
-
@media (prefers-color-scheme: dark) {
|
|
995
|
-
color: var(--tuwadocs-color-gray-300);
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
.tuwadocs\:dark\:text-gray-400 {
|
|
999
|
-
@media (prefers-color-scheme: dark) {
|
|
1000
|
-
color: var(--tuwadocs-color-gray-400);
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
888
|
.tuwadocs\:dark\:hover\:text-red-400 {
|
|
1004
889
|
@media (prefers-color-scheme: dark) {
|
|
1005
890
|
&:hover {
|
|
@@ -1161,7 +1046,7 @@
|
|
|
1161
1046
|
[data-nextra-search] input {
|
|
1162
1047
|
border-color: rgb(229 231 235);
|
|
1163
1048
|
transition: all 0.2s ease;
|
|
1164
|
-
border-radius:
|
|
1049
|
+
border-radius: var(--tuwa-rounded-corners);
|
|
1165
1050
|
}
|
|
1166
1051
|
[data-nextra-search] input:focus {
|
|
1167
1052
|
border-color: var(--tuwa-primary) !important;
|
|
@@ -1184,7 +1069,7 @@
|
|
|
1184
1069
|
color: var(--tuwa-primary);
|
|
1185
1070
|
}
|
|
1186
1071
|
[data-nextra-code] {
|
|
1187
|
-
border-radius:
|
|
1072
|
+
border-radius: var(--tuwa-rounded-corners);
|
|
1188
1073
|
border: 1px solid rgb(229 231 235);
|
|
1189
1074
|
background: rgb(249 250 251);
|
|
1190
1075
|
}
|
|
@@ -1257,7 +1142,7 @@
|
|
|
1257
1142
|
.tuwa-button {
|
|
1258
1143
|
display: inline-flex;
|
|
1259
1144
|
align-items: center;
|
|
1260
|
-
border-radius: var(--
|
|
1145
|
+
border-radius: var(--tuwa-rounded-corners);
|
|
1261
1146
|
border-style: var(--tw-border-style);
|
|
1262
1147
|
border-width: 1px;
|
|
1263
1148
|
border-color: transparent;
|
|
@@ -1276,11 +1161,9 @@
|
|
|
1276
1161
|
box-shadow: 0 4px 12px rgb(99 102 241 / 0.3);
|
|
1277
1162
|
}
|
|
1278
1163
|
.tuwa-card {
|
|
1279
|
-
border-radius: var(--
|
|
1164
|
+
border-radius: var(--tuwa-rounded-corners);
|
|
1280
1165
|
border-style: var(--tw-border-style);
|
|
1281
1166
|
border-width: 1px;
|
|
1282
|
-
border-color: var(--tuwadocs-color-gray-200);
|
|
1283
|
-
background-color: var(--tuwadocs-color-white);
|
|
1284
1167
|
padding: calc(var(--tuwadocs-spacing) * 6);
|
|
1285
1168
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1286
1169
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -1295,12 +1178,8 @@
|
|
|
1295
1178
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1296
1179
|
}
|
|
1297
1180
|
}
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
}
|
|
1301
|
-
@media (prefers-color-scheme: dark) {
|
|
1302
|
-
background-color: var(--tuwadocs-color-gray-900);
|
|
1303
|
-
}
|
|
1181
|
+
background-color: var(--tuwa-bg-primary);
|
|
1182
|
+
border-color: var(--tuwa-border-primary);
|
|
1304
1183
|
}
|
|
1305
1184
|
.nextra-nav-container .nx-text-primary-600 {
|
|
1306
1185
|
color: var(--tuwa-primary) !important;
|
|
@@ -1367,6 +1246,71 @@
|
|
|
1367
1246
|
syntax: "*";
|
|
1368
1247
|
inherits: false;
|
|
1369
1248
|
}
|
|
1249
|
+
@property --tw-shadow {
|
|
1250
|
+
syntax: "*";
|
|
1251
|
+
inherits: false;
|
|
1252
|
+
initial-value: 0 0 #0000;
|
|
1253
|
+
}
|
|
1254
|
+
@property --tw-shadow-color {
|
|
1255
|
+
syntax: "*";
|
|
1256
|
+
inherits: false;
|
|
1257
|
+
}
|
|
1258
|
+
@property --tw-shadow-alpha {
|
|
1259
|
+
syntax: "<percentage>";
|
|
1260
|
+
inherits: false;
|
|
1261
|
+
initial-value: 100%;
|
|
1262
|
+
}
|
|
1263
|
+
@property --tw-inset-shadow {
|
|
1264
|
+
syntax: "*";
|
|
1265
|
+
inherits: false;
|
|
1266
|
+
initial-value: 0 0 #0000;
|
|
1267
|
+
}
|
|
1268
|
+
@property --tw-inset-shadow-color {
|
|
1269
|
+
syntax: "*";
|
|
1270
|
+
inherits: false;
|
|
1271
|
+
}
|
|
1272
|
+
@property --tw-inset-shadow-alpha {
|
|
1273
|
+
syntax: "<percentage>";
|
|
1274
|
+
inherits: false;
|
|
1275
|
+
initial-value: 100%;
|
|
1276
|
+
}
|
|
1277
|
+
@property --tw-ring-color {
|
|
1278
|
+
syntax: "*";
|
|
1279
|
+
inherits: false;
|
|
1280
|
+
}
|
|
1281
|
+
@property --tw-ring-shadow {
|
|
1282
|
+
syntax: "*";
|
|
1283
|
+
inherits: false;
|
|
1284
|
+
initial-value: 0 0 #0000;
|
|
1285
|
+
}
|
|
1286
|
+
@property --tw-inset-ring-color {
|
|
1287
|
+
syntax: "*";
|
|
1288
|
+
inherits: false;
|
|
1289
|
+
}
|
|
1290
|
+
@property --tw-inset-ring-shadow {
|
|
1291
|
+
syntax: "*";
|
|
1292
|
+
inherits: false;
|
|
1293
|
+
initial-value: 0 0 #0000;
|
|
1294
|
+
}
|
|
1295
|
+
@property --tw-ring-inset {
|
|
1296
|
+
syntax: "*";
|
|
1297
|
+
inherits: false;
|
|
1298
|
+
}
|
|
1299
|
+
@property --tw-ring-offset-width {
|
|
1300
|
+
syntax: "<length>";
|
|
1301
|
+
inherits: false;
|
|
1302
|
+
initial-value: 0px;
|
|
1303
|
+
}
|
|
1304
|
+
@property --tw-ring-offset-color {
|
|
1305
|
+
syntax: "*";
|
|
1306
|
+
inherits: false;
|
|
1307
|
+
initial-value: #fff;
|
|
1308
|
+
}
|
|
1309
|
+
@property --tw-ring-offset-shadow {
|
|
1310
|
+
syntax: "*";
|
|
1311
|
+
inherits: false;
|
|
1312
|
+
initial-value: 0 0 #0000;
|
|
1313
|
+
}
|
|
1370
1314
|
@keyframes pulse {
|
|
1371
1315
|
50% {
|
|
1372
1316
|
opacity: 0.5;
|
|
@@ -1379,20 +1323,6 @@
|
|
|
1379
1323
|
--tw-leading: initial;
|
|
1380
1324
|
--tw-font-weight: initial;
|
|
1381
1325
|
--tw-tracking: initial;
|
|
1382
|
-
--tw-shadow: 0 0 #0000;
|
|
1383
|
-
--tw-shadow-color: initial;
|
|
1384
|
-
--tw-shadow-alpha: 100%;
|
|
1385
|
-
--tw-inset-shadow: 0 0 #0000;
|
|
1386
|
-
--tw-inset-shadow-color: initial;
|
|
1387
|
-
--tw-inset-shadow-alpha: 100%;
|
|
1388
|
-
--tw-ring-color: initial;
|
|
1389
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
1390
|
-
--tw-inset-ring-color: initial;
|
|
1391
|
-
--tw-inset-ring-shadow: 0 0 #0000;
|
|
1392
|
-
--tw-ring-inset: initial;
|
|
1393
|
-
--tw-ring-offset-width: 0px;
|
|
1394
|
-
--tw-ring-offset-color: #fff;
|
|
1395
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
1396
1326
|
--tw-backdrop-blur: initial;
|
|
1397
1327
|
--tw-backdrop-brightness: initial;
|
|
1398
1328
|
--tw-backdrop-contrast: initial;
|
|
@@ -1407,6 +1337,20 @@
|
|
|
1407
1337
|
--tw-translate-z: 0;
|
|
1408
1338
|
--tw-space-x-reverse: 0;
|
|
1409
1339
|
--tw-duration: initial;
|
|
1340
|
+
--tw-shadow: 0 0 #0000;
|
|
1341
|
+
--tw-shadow-color: initial;
|
|
1342
|
+
--tw-shadow-alpha: 100%;
|
|
1343
|
+
--tw-inset-shadow: 0 0 #0000;
|
|
1344
|
+
--tw-inset-shadow-color: initial;
|
|
1345
|
+
--tw-inset-shadow-alpha: 100%;
|
|
1346
|
+
--tw-ring-color: initial;
|
|
1347
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
1348
|
+
--tw-inset-ring-color: initial;
|
|
1349
|
+
--tw-inset-ring-shadow: 0 0 #0000;
|
|
1350
|
+
--tw-ring-inset: initial;
|
|
1351
|
+
--tw-ring-offset-width: 0px;
|
|
1352
|
+
--tw-ring-offset-color: #fff;
|
|
1353
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
1410
1354
|
}
|
|
1411
1355
|
}
|
|
1412
1356
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {cn,useCopyToClipboard}from'@tuwaio/nova-core';export*from'@tuwaio/nova-core';import {CheckCircleIcon,Square2StackIcon,CommandLineIcon}from'@heroicons/react/24/outline';import {jsx,Fragment,jsxs}from'react/jsx-runtime';import {Prism}from'react-syntax-highlighter';import {materialOceanic,materialLight}from'react-syntax-highlighter/dist/esm/styles/prism';import O from'next/dynamic';import D from'next/image';import {Footer,Navbar}from'nextra-theme-docs';import {Tabs}from'nextra/components';function h({isCopied:o,onCopy:t}){return jsx("button",{onClick:t,type:"button",className:cn("tuwadocs:h-6 tuwadocs:w-6 tuwadocs:cursor-pointer tuwadocs:transition-colors",o?"tuwadocs:text-[var(--tuwa-success-icon)]":"tuwadocs:text-[var(--tuwa-text-secondary)] tuwadocs:hover:text-[var(--tuwa-text-primary)]"),children:o?jsx(CheckCircleIcon,{}):jsx(Square2StackIcon,{})})}function b({title:o,titleIcons:t,children:a,textToCopy:s}){let{isCopied:r,copy:m}=useCopyToClipboard(1500);return jsxs("div",{className:cn("tuwadocs:group tuwadocs:overflow-hidden tuwadocs:rounded-
|
|
2
|
-
export{b as CodeBlock,x as CodeHighlighter,h as CopyIconButton,No as Features,Io as Footer,Oo as Navbar,Yo as PackageInstallationTabs,Ko as StyledLink,jo as VideoPlayer,
|
|
1
|
+
import {cn,useCopyToClipboard}from'@tuwaio/nova-core';export*from'@tuwaio/nova-core';import {CheckCircleIcon,Square2StackIcon,CommandLineIcon}from'@heroicons/react/24/outline';import {jsx,Fragment,jsxs}from'react/jsx-runtime';import {Prism}from'react-syntax-highlighter';import {materialOceanic,materialLight}from'react-syntax-highlighter/dist/esm/styles/prism';import O from'next/dynamic';import D from'next/image';import {Footer,Navbar}from'nextra-theme-docs';import {Tabs}from'nextra/components';function h({isCopied:o,onCopy:t}){return jsx("button",{onClick:t,type:"button",className:cn("tuwadocs:h-6 tuwadocs:w-6 tuwadocs:cursor-pointer tuwadocs:transition-colors",o?"tuwadocs:text-[var(--tuwa-success-icon)]":"tuwadocs:text-[var(--tuwa-text-secondary)] tuwadocs:hover:text-[var(--tuwa-text-primary)]"),children:o?jsx(CheckCircleIcon,{}):jsx(Square2StackIcon,{})})}function b({title:o,titleIcons:t,children:a,textToCopy:s}){let{isCopied:r,copy:m}=useCopyToClipboard(1500);return jsxs("div",{className:cn("tuwadocs:group tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:border","tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-primary)]"),children:[jsxs("div",{className:cn("tuwadocs:flex tuwadocs:items-center tuwadocs:justify-between tuwadocs:gap-4 tuwadocs:px-4 tuwadocs:py-2","tuwadocs:border-b tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-secondary)]"),children:[jsxs("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-2",children:[jsx("div",{className:"tuwadocs:h-[20px] tuwadocs:w-[20px] tuwadocs:text-[var(--tuwa-text-secondary)]",children:t}),jsx("p",{className:"tuwadocs:text-sm tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-primary)]",children:o})]}),jsx("div",{className:"tuwadocs:transition tuwadocs:md:opacity-0 tuwadocs:group-hover:opacity-100",children:jsx(h,{isCopied:r,onCopy:()=>m(s)})})]}),a]})}var V=({children:o})=>jsx(Fragment,{children:o}),d=O(()=>Promise.resolve(V),{ssr:false});function x({children:o,language:t,resolvedTheme:a}){return jsx("div",{className:"tuwadocs:border-t tuwadocs:border-[var(--tuwa-border-secondary)]",children:jsx(d,{children:jsx(Prism,{language:t??"bash",customStyle:{margin:0,background:"transparent"},style:a==="dark"?materialOceanic:materialLight,children:String(o).replace(/\n$/,"")})})})}function No({features:o}){return jsx("div",{className:"tuwadocs:grid tuwadocs:grid-cols-1 tuwadocs:md:grid-cols-3 tuwadocs:gap-6 tuwadocs:mt-12",children:o.map(t=>jsxs("div",{className:"tuwadocs:p-6 tuwadocs:border tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:hover:shadow-lg tuwadocs:transition-shadow",children:[jsx("div",{className:"tuwadocs:text-2xl tuwadocs:mb-3",children:t.icon}),jsx("h3",{className:"tuwadocs:text-lg tuwadocs:font-semibold tuwadocs:mb-2",children:t.title}),jsx("p",{className:"tuwadocs:text-[var(--tuwa-text-secondary)]",children:t.description})]},t.title))})}var y=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwadocs:hover:text-red-600 tuwadocs:dark:hover:text-red-400",image:jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})}],C=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwa-footer-link--npm",image:jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})},{title:"GitHub",href:"https://github.com/TuwaIO",className:"tuwa-footer-link--github",image:jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}];function Io({links:o}){return jsx(Footer,{children:jsxs("div",{className:"tuwadocs:flex tuwadocs:w-full tuwadocs:flex-col tuwadocs:items-center tuwadocs:sm:items-start tuwa-footer-border tuwadocs:pt-8",children:[jsxs("div",{className:"tuwadocs:mb-6 tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:w-full tuwadocs:justify-between",children:[jsx("div",{className:"tuwadocs:flex tuwadocs:items-center",children:jsx(d,{children:jsx(D,{width:120,height:40,src:"https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/tuwa_logo.svg",alt:"TUWA Logo",className:"tuwadocs:transition-opacity tuwadocs:duration-300"})})}),jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:text-sm",children:(o??C).map(({title:t,href:a,image:s,className:r})=>jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:cn("tuwa-footer-link tuwadocs:flex tuwadocs:items-center tuwadocs:gap-1",r),children:[s,jsx("span",{className:"tuwadocs:hidden tuwadocs:sm:inline",children:t})]},t))})]}),jsxs("div",{className:"tuwadocs:w-full tuwa-footer-border tuwadocs:pt-4",children:[jsxs("div",{className:"tuwadocs:flex tuwadocs:flex-col tuwadocs:sm:flex-row tuwadocs:justify-between tuwadocs:items-start tuwadocs:sm:items-center tuwadocs:gap-4",children:[jsxs("div",{className:"tuwadocs:flex-1",children:[jsx("p",{className:"tuwa-footer-description",children:"A useful and powerful utils for building decentralized applications."}),jsx("p",{className:"tuwa-footer-license",children:"Licensed under Apache 2.0. Open source and free to use."})]}),jsxs("div",{className:"tuwa-footer-copyright",children:["\xA9 2025 - ",new Date().getFullYear()," TUWA. Built with"," ",jsx("span",{className:"tuwa-heart","aria-label":"love",children:"\u2764\uFE0F"})," ","for Web3."]})]}),jsx("div",{className:"tuwadocs:flex tuwadocs:flex-wrap tuwadocs:items-center tuwadocs:gap-3 tuwadocs:mt-4 tuwadocs:pt-4 tuwa-footer-border"})]})]})})}function Oo({links:o}){return jsx(Navbar,{logo:jsx(d,{children:jsx(D,{width:120,height:40,src:"https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/tuwa_logo.svg",alt:"TUWA Logo"})}),children:jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-3",children:(o??y).map(({title:t,href:a,image:s,className:r})=>jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:cn("tuwadocs:hidden tuwadocs:sm:flex tuwadocs:items-center tuwadocs:gap-1 tuwadocs:px-3 tuwadocs:py-1.5 tuwadocs:text-sm tuwadocs:font-medium tuwadocs:transition-colors tuwadocs:text-[var(--tuwa-text-primary)]",r),children:[s,t]},t))})})}var P=[{title:"pnpm",command:"pnpm add"},{title:"bun",command:"bun add"},{title:"npm",command:"npm install"},{title:"yarn",command:"yarn add"}];function Yo({packagesList:o,resolvedTheme:t}){return jsx("div",{className:"tuwadocs:my-4",children:jsx(Tabs,{items:P.map(a=>a.title),children:P.map(a=>jsx(Tabs.Tab,{children:jsx(b,{title:"Terminal",titleIcons:jsx(CommandLineIcon,{}),textToCopy:`${a.command} ${o}`,children:jsx(x,{resolvedTheme:t,language:"bash",children:`${a.command} ${o}`})})},a.title))})})}function Ko({href:o,children:t}){return jsx("a",{className:cn("tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-accent)]","tuwadocs:transition-all tuwadocs:hover:underline tuwadocs:underline-offset-4"),href:o,target:"_blank",rel:"noopener noreferrer",children:t})}var jo=({src:o,poster:t,autoplay:a=false,muted:s=false,loop:r=false,controls:m=true,className:R="",aspectRatio:T="aspect-video",onPlay:I,onPause:L,onEnded:B,"aria-label":H})=>jsx("div",{className:cn("tuwadocs:relative tuwadocs:w-full tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:bg-black tuwadocs:my-4",T,R),children:jsxs("video",{src:o,poster:t,controls:m,autoPlay:a,muted:s,loop:r,className:cn("tuwadocs:absolute tuwadocs:inset-0 tuwadocs:h-full tuwadocs:w-full tuwadocs:object-contain","tuwadocs:transition-opacity tuwadocs:duration-200","tuwadocs:focus:outline-none tuwadocs:focus:ring-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-[var(--tuwa-text-accent)] tuwadocs:focus:ring-offset-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-offset-[var(--tuwa-bg-primary)]"),onPlay:I,onPause:L,onEnded:B,"aria-label":H,preload:"metadata",children:[jsx("track",{kind:"captions"}),"Your browser does not support the video tag. Please"," ",jsx("a",{href:o,download:true,className:"tuwadocs:text-[var(--tuwa-text-accent)] tuwadocs:underline tuwadocs:hover:opacity-80",children:"download the video"})," ","to watch it."]})});
|
|
2
|
+
export{b as CodeBlock,x as CodeHighlighter,h as CopyIconButton,No as Features,Io as Footer,Oo as Navbar,Yo as PackageInstallationTabs,Ko as StyledLink,jo as VideoPlayer,C as baseFooterLinks,y as baseNavLinks};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuwaio/docs-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Oleksandr Tkach",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@tuwaio/nova-core": "^0.
|
|
50
|
+
"@tuwaio/nova-core": "^0.3.0",
|
|
51
51
|
"clsx": "^2.1.1",
|
|
52
52
|
"react-syntax-highlighter": "^16.1.0",
|
|
53
53
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@tailwindcss/vite": "^4.1.18",
|
|
70
70
|
"@types/node": "^25",
|
|
71
71
|
"@types/react": "^19.2.10",
|
|
72
|
-
"autoprefixer": "^10.4.
|
|
72
|
+
"autoprefixer": "^10.4.24",
|
|
73
73
|
"postcss": "^8.5.6",
|
|
74
74
|
"postcss-cli": "^11.0.1",
|
|
75
75
|
"react": "^19.2.4",
|