@gentleduck/docs 0.0.1 → 0.0.11
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/button-CR_OZcLS.js +2 -0
- package/dist/button-CR_OZcLS.js.map +1 -0
- package/dist/{callout-VcT2d48I.d.ts → callout-BtMq2tJx.d.ts} +3 -3
- package/dist/{callout-VcT2d48I.d.ts.map → callout-BtMq2tJx.d.ts.map} +1 -1
- package/dist/callout-C2bQgpQO.js +2 -0
- package/dist/callout-C2bQgpQO.js.map +1 -0
- package/dist/{charts-hfCEZEQp.d.ts → charts-CELN6vzr.d.ts} +1 -1
- package/dist/charts-CELN6vzr.d.ts.map +1 -0
- package/dist/{charts-DX0UohRi.js → charts-SaaTMCb9.js} +1 -1
- package/dist/{charts-DX0UohRi.js.map → charts-SaaTMCb9.js.map} +1 -1
- package/dist/chunk-CeaF__0A-BK-6UBbr.js +2 -0
- package/dist/chunk-CeaF__0A-BK-6UBbr.js.map +1 -0
- package/dist/client.d.ts +52 -51
- package/dist/client.js +1 -1
- package/dist/{code-block-DqFdGhI-.js → code-block-D-0dMRRv.js} +1 -1
- package/dist/{code-block-DqFdGhI-.js.map → code-block-D-0dMRRv.js.map} +1 -1
- package/dist/{code-block-CR2loi-i.d.ts → code-block-DRKzpa_7.d.ts} +3 -3
- package/dist/code-block-DRKzpa_7.d.ts.map +1 -0
- package/dist/{code-block-wrapper-C8I0XMsN.d.ts → code-block-wrapper-9DMaH5Br.d.ts} +3 -3
- package/dist/{code-block-wrapper-C8I0XMsN.d.ts.map → code-block-wrapper-9DMaH5Br.d.ts.map} +1 -1
- package/dist/{code-block-wrapper-CCAw9mie.js → code-block-wrapper-CZsaZm5E.js} +1 -1
- package/dist/{code-block-wrapper-CCAw9mie.js.map → code-block-wrapper-CZsaZm5E.js.map} +1 -1
- package/dist/code-preview-CH2PwR53.js +2 -0
- package/dist/code-preview-CH2PwR53.js.map +1 -0
- package/dist/{code-preview-CeNXQxYN.d.ts → code-preview-CfN-Mhwt.d.ts} +3 -3
- package/dist/{code-preview-CeNXQxYN.d.ts.map → code-preview-CfN-Mhwt.d.ts.map} +1 -1
- package/dist/{colors-Ba_cRR6y.js → colors-BT2tMNtt.js} +2 -2
- package/dist/{colors-Ba_cRR6y.js.map → colors-BT2tMNtt.js.map} +1 -1
- package/dist/{colors-CpJMSMtf.d.ts → colors-DBTwyOsD.d.ts} +1 -1
- package/dist/{colors-CpJMSMtf.d.ts.map → colors-DBTwyOsD.d.ts.map} +1 -1
- package/dist/command-D1QwvvDI.js +31 -0
- package/dist/command-D1QwvvDI.js.map +1 -0
- package/dist/{command-menu-C8RLyuBe.d.ts → command-menu-DyhJfAuE.d.ts} +1 -1
- package/dist/{command-menu-C8RLyuBe.d.ts.map → command-menu-DyhJfAuE.d.ts.map} +1 -1
- package/dist/command-menu-Dz8Cy4W4.js +2 -0
- package/dist/{command-menu-BVebU1JI.js.map → command-menu-Dz8Cy4W4.js.map} +1 -1
- package/dist/component-preview-Bc8FAVzP.js +2 -0
- package/dist/{component-preview-CL6guE-v.js.map → component-preview-Bc8FAVzP.js.map} +1 -1
- package/dist/{component-preview-DknaF8TG.d.ts → component-preview-BorhzzPJ.d.ts} +4 -4
- package/dist/{component-preview-DknaF8TG.d.ts.map → component-preview-BorhzzPJ.d.ts.map} +1 -1
- package/dist/component-source-DaY4BKlT.js +5 -0
- package/dist/{component-source-BCBDjfEb.js.map → component-source-DaY4BKlT.js.map} +1 -1
- package/dist/{component-source-IrGlRkUy.d.ts → component-source-nRdNY4PH.d.ts} +3 -3
- package/dist/{component-source-IrGlRkUy.d.ts.map → component-source-nRdNY4PH.d.ts.map} +1 -1
- package/dist/components/copy-button/copy-button.d.ts +4 -3
- package/dist/components/copy-button/copy-button.js +1 -1
- package/dist/components/copy-button/copy-button.types.d.ts +3 -2
- package/dist/components/copy-button/index.d.ts +5 -4
- package/dist/components/copy-button/index.js +1 -1
- package/dist/components/docs/docs-copy-page.d.ts +1 -1
- package/dist/components/docs/docs-copy-page.js +1 -1
- package/dist/components/docs/docs-pager.d.ts +3 -3
- package/dist/components/docs/docs-pager.js +1 -1
- package/dist/components/docs/docs-sidebar.d.ts +3 -3
- package/dist/components/docs/docs-sidebar.js +1 -1
- package/dist/components/docs/docs-toc.d.ts +3 -3
- package/dist/components/docs/docs-toc.js +1 -1
- package/dist/components/docs/index.d.ts +7 -7
- package/dist/components/docs/index.js +1 -1
- package/dist/components/icons.d.ts +1 -1
- package/dist/components/icons.js +1 -1
- package/dist/components/index.d.ts +44 -43
- package/dist/components/index.js +1 -1
- package/dist/components/layouts/command-menu/command-menu.d.ts +1 -1
- package/dist/components/layouts/command-menu/command-menu.js +1 -1
- package/dist/components/layouts/command-menu/index.d.ts +2 -2
- package/dist/components/layouts/command-menu/index.js +1 -1
- package/dist/components/layouts/index.d.ts +7 -7
- package/dist/components/layouts/index.js +1 -1
- package/dist/components/layouts/site-footer/index.d.ts +1 -1
- package/dist/components/layouts/site-footer/index.js +1 -1
- package/dist/components/layouts/site-header/header-shell.d.ts +1 -1
- package/dist/components/layouts/site-header/header-shell.js +1 -1
- package/dist/components/layouts/site-header/index.d.ts +2 -2
- package/dist/components/layouts/site-header/index.js +1 -1
- package/dist/components/layouts/tailwind-indicator/index.d.ts +1 -1
- package/dist/components/layouts/tailwind-indicator/index.js +1 -1
- package/dist/components/main-nav.d.ts +1 -1
- package/dist/components/main-nav.js +1 -1
- package/dist/components/mdx/mdx-components/callout.d.ts +1 -1
- package/dist/components/mdx/mdx-components/callout.js +1 -1
- package/dist/components/mdx/mdx-components/code/code-block-wrapper.d.ts +1 -1
- package/dist/components/mdx/mdx-components/code/code-block-wrapper.js +1 -1
- package/dist/components/mdx/mdx-components/code/code-block.d.ts +1 -1
- package/dist/components/mdx/mdx-components/code/code-block.js +1 -1
- package/dist/components/mdx/mdx-components/code/code-preview.d.ts +1 -1
- package/dist/components/mdx/mdx-components/code/code-preview.js +1 -1
- package/dist/components/mdx/mdx-components/code/component-preview.d.ts +1 -1
- package/dist/components/mdx/mdx-components/code/component-preview.js +1 -1
- package/dist/components/mdx/mdx-components/code/component-source.d.ts +1 -1
- package/dist/components/mdx/mdx-components/code/component-source.js +1 -1
- package/dist/components/mdx/mdx-components/code/figcaption-block.d.ts +1 -1
- package/dist/components/mdx/mdx-components/code/figcaption-block.js +1 -1
- package/dist/components/mdx/mdx-components/code/index.d.ts +10 -10
- package/dist/components/mdx/mdx-components/code/index.js +1 -1
- package/dist/components/mdx/mdx-components/code/pre-block.d.ts +3 -3
- package/dist/components/mdx/mdx-components/code/pre-block.js +1 -1
- package/dist/components/mdx/mdx-components/code/span-block.d.ts +2 -2
- package/dist/components/mdx/mdx-components/components-list.d.ts +3 -3
- package/dist/components/mdx/mdx-components/components-list.js +1 -1
- package/dist/components/mdx/mdx-components/exalidraw.d.ts +2 -2
- package/dist/components/mdx/mdx-components/framework-docs.d.ts +1 -1
- package/dist/components/mdx/mdx-components/framework-docs.js +1 -1
- package/dist/components/mdx/mdx-components/index.d.ts +19 -19
- package/dist/components/mdx/mdx-components/index.js +1 -1
- package/dist/components/mdx/mdx-components/table.d.ts +1 -1
- package/dist/components/mdx/mdx-components/table.js +1 -1
- package/dist/components/mdx/mdx-components/tabs.d.ts +1 -1
- package/dist/components/mdx/mdx-components/tabs.js +1 -1
- package/dist/components/mdx/mdx-components/typepography.d.ts +1 -1
- package/dist/components/mdx/mdx-components/typepography.js +1 -1
- package/dist/components/mdx/mdx.d.ts +1 -1
- package/dist/components/mdx/mdx.js +1 -1
- package/dist/components/mobile-nav.d.ts +1 -1
- package/dist/components/mobile-nav.js +1 -1
- package/dist/components/mode-toggle.d.ts +1 -1
- package/dist/components/mode-toggle.js +1 -1
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/page-header.js +1 -1
- package/dist/components/providers.d.ts +1 -1
- package/dist/components/providers.js +1 -1
- package/dist/components/themes/index.d.ts +3 -2
- package/dist/components/themes/index.js +1 -1
- package/dist/components/themes/style-switcher.d.ts +2 -1
- package/dist/components/themes/style-switcher.js +1 -1
- package/dist/{components-list-BCV3yN6H.js → components-list-aNKHINTJ.js} +2 -2
- package/dist/{components-list-BCV3yN6H.js.map → components-list-aNKHINTJ.js.map} +1 -1
- package/dist/components-list-oRqyUqpK.d.ts +12 -0
- package/dist/{components-list-ZLlUD-Nr.d.ts.map → components-list-oRqyUqpK.d.ts.map} +1 -1
- package/dist/context/context.d.ts +1 -1
- package/dist/context/context.js +1 -1
- package/dist/context/context.types.d.ts +1 -1
- package/dist/context/index.d.ts +3 -3
- package/dist/context/index.js +1 -1
- package/dist/{context-Bd4Sf8r8.js → context-BlGtI7pz.js} +1 -1
- package/dist/{context-Bd4Sf8r8.js.map → context-BlGtI7pz.js.map} +1 -1
- package/dist/{context-tLL-jUw_.d.ts → context-iK9ApdrV.d.ts} +4 -4
- package/dist/{context-tLL-jUw_.d.ts.map → context-iK9ApdrV.d.ts.map} +1 -1
- package/dist/{context.types-DgaGu8Ly.d.ts → context.types-B4K0TFVT.d.ts} +2 -2
- package/dist/{context.types-DgaGu8Ly.d.ts.map → context.types-B4K0TFVT.d.ts.map} +1 -1
- package/dist/copy-button-DYr4LYYX.js +2 -0
- package/dist/{copy-button-D50DXq56.js.map → copy-button-DYr4LYYX.js.map} +1 -1
- package/dist/{copy-button-Bh7DmVLN.d.ts → copy-button-v61urJdF.d.ts} +6 -6
- package/dist/{copy-button-Bh7DmVLN.d.ts.map → copy-button-v61urJdF.d.ts.map} +1 -1
- package/dist/copy-button.types-B1E_Dsja.d.ts +29 -0
- package/dist/copy-button.types-B1E_Dsja.d.ts.map +1 -0
- package/dist/dist-ws2wUF1U.js +2 -0
- package/dist/dist-ws2wUF1U.js.map +1 -0
- package/dist/{docs-copy-page-B1HSXqlm.js → docs-copy-page-CUBmgypz.js} +3 -3
- package/dist/{docs-copy-page-B1HSXqlm.js.map → docs-copy-page-CUBmgypz.js.map} +1 -1
- package/dist/{docs-copy-page-rZ3GkUUQ.d.ts → docs-copy-page-Dfona0Wa.d.ts} +3 -3
- package/dist/{docs-copy-page-rZ3GkUUQ.d.ts.map → docs-copy-page-Dfona0Wa.d.ts.map} +1 -1
- package/dist/docs-pager-8if8gb0V.js +2 -0
- package/dist/{docs-pager-2p2cKZcg.js.map → docs-pager-8if8gb0V.js.map} +1 -1
- package/dist/{docs-pager-CLERxm13.d.ts → docs-pager-BJcKsfVa.d.ts} +6 -6
- package/dist/{docs-pager-CLERxm13.d.ts.map → docs-pager-BJcKsfVa.d.ts.map} +1 -1
- package/dist/{docs-sidebar-Cq7haHti.js → docs-sidebar-CSZlkWWo.js} +2 -2
- package/dist/{docs-sidebar-Cq7haHti.js.map → docs-sidebar-CSZlkWWo.js.map} +1 -1
- package/dist/{docs-sidebar-C4HMPDIN.d.ts → docs-sidebar-DihF9d4s.d.ts} +7 -7
- package/dist/{docs-sidebar-C4HMPDIN.d.ts.map → docs-sidebar-DihF9d4s.d.ts.map} +1 -1
- package/dist/docs-toc-BRKFzAJy.d.ts +13 -0
- package/dist/{docs-toc-B4_Znnrj.d.ts.map → docs-toc-BRKFzAJy.d.ts.map} +1 -1
- package/dist/{docs-toc-DfQz3sNZ.js → docs-toc-BuFrK7vO.js} +2 -2
- package/dist/{docs-toc-DfQz3sNZ.js.map → docs-toc-BuFrK7vO.js.map} +1 -1
- package/dist/dropdown-menu-CbK2ioAt.js +2 -0
- package/dist/dropdown-menu-CbK2ioAt.js.map +1 -0
- package/dist/{events-BKAEw9TQ.d.ts → events-miUBWk_a.d.ts} +1 -1
- package/dist/{events-BKAEw9TQ.d.ts.map → events-miUBWk_a.d.ts.map} +1 -1
- package/dist/figcaption-block-BBWQRv4Q.js +2 -0
- package/dist/{figcaption-block-DWZhs-6i.js.map → figcaption-block-BBWQRv4Q.js.map} +1 -1
- package/dist/{figcaption-block-B7CmTI6d.d.ts → figcaption-block-BQsKallb.d.ts} +3 -3
- package/dist/{figcaption-block-B7CmTI6d.d.ts.map → figcaption-block-BQsKallb.d.ts.map} +1 -1
- package/dist/{framework-docs-tYKaeYsi.d.ts → framework-docs-BatpVEiM.d.ts} +3 -3
- package/dist/{framework-docs-tYKaeYsi.d.ts.map → framework-docs-BatpVEiM.d.ts.map} +1 -1
- package/dist/framework-docs-CtgNYWtQ.js +2 -0
- package/dist/{framework-docs-ZYLz3BBy.js.map → framework-docs-CtgNYWtQ.js.map} +1 -1
- package/dist/{header-shell-CWHnv2ot.js → header-shell-BEQgerdN.js} +2 -2
- package/dist/{header-shell-CWHnv2ot.js.map → header-shell-BEQgerdN.js.map} +1 -1
- package/dist/{header-shell-BusaKA4C.d.ts → header-shell-DnaqjTZK.d.ts} +6 -6
- package/dist/{header-shell-BusaKA4C.d.ts.map → header-shell-DnaqjTZK.d.ts.map} +1 -1
- package/dist/hooks/index.d.ts +7 -7
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-colors.d.ts +2 -2
- package/dist/hooks/use-colors.js +1 -1
- package/dist/hooks/use-config.d.ts +1 -1
- package/dist/hooks/use-config.js +1 -1
- package/dist/hooks/use-lift-mode.d.ts +1 -1
- package/dist/hooks/use-lift-mode.js +1 -1
- package/dist/hooks/use-meta-colors.d.ts +1 -1
- package/dist/hooks/use-meta-colors.js +1 -1
- package/dist/hooks/use-mounted.d.ts +1 -1
- package/dist/hooks/use-mounted.js +1 -1
- package/dist/hooks/use-themes-config.d.ts +1 -1
- package/dist/hooks/use-themes-config.js +1 -1
- package/dist/{icons-BqnlXRgx.d.ts → icons-Bu19iA4T.d.ts} +1 -1
- package/dist/{icons-BqnlXRgx.d.ts.map → icons-Bu19iA4T.d.ts.map} +1 -1
- package/dist/{icons-bFf026bR.js → icons-CRYTp4x9.js} +2 -2
- package/dist/{icons-bFf026bR.js.map → icons-CRYTp4x9.js.map} +1 -1
- package/dist/index-B4FEueq6.d.ts +7 -0
- package/dist/{index-2mWOLEIP.d.ts.map → index-B4FEueq6.d.ts.map} +1 -1
- package/dist/index-BaE3ZSOs.d.ts +62 -0
- package/dist/index-BaE3ZSOs.d.ts.map +1 -0
- package/dist/index-Bp2MJnFp.d.ts +8 -0
- package/dist/{index-Bunxo_8h.d.ts.map → index-Bp2MJnFp.d.ts.map} +1 -1
- package/dist/index-BrgHDO1Y.d.ts +8 -0
- package/dist/{index-BZ1Usw1L.d.ts.map → index-BrgHDO1Y.d.ts.map} +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/lib/charts.d.ts +1 -1
- package/dist/lib/charts.js +1 -1
- package/dist/lib/colors.d.ts +1 -1
- package/dist/lib/colors.js +1 -1
- package/dist/lib/events.d.ts +1 -1
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.js +1 -1
- package/dist/lib/registry-colors-data.js +1 -1
- package/dist/lib/registry-styles.d.ts +1 -1
- package/dist/lib/registry-styles.js +1 -1
- package/dist/lib/themes.d.ts +1 -1
- package/dist/lib/themes.js +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/{main-nav-Df2pgQUs.js → main-nav-C1zYcmcE.js} +2 -2
- package/dist/{main-nav-Df2pgQUs.js.map → main-nav-C1zYcmcE.js.map} +1 -1
- package/dist/main-nav-D-Uy7xjC.d.ts +7 -0
- package/dist/main-nav-D-Uy7xjC.d.ts.map +1 -0
- package/dist/mdx-0SRpwcYy.js +2 -0
- package/dist/mdx-0SRpwcYy.js.map +1 -0
- package/dist/{mdx-CBnfwESR.d.ts → mdx-MPp13c0r.d.ts} +1 -1
- package/dist/{mdx-CBnfwESR.d.ts.map → mdx-MPp13c0r.d.ts.map} +1 -1
- package/dist/{metadata-plugin-Ag61IUUu.d.ts → metadata-plugin-CMU3PUxV.d.ts} +2 -2
- package/dist/metadata-plugin-CMU3PUxV.d.ts.map +1 -0
- package/dist/{metadata-plugin-Mc8lCfYT.js → metadata-plugin-DGwA5NWw.js} +1 -1
- package/dist/{metadata-plugin-Mc8lCfYT.js.map → metadata-plugin-DGwA5NWw.js.map} +1 -1
- package/dist/mobile-nav-DlpUqdSL.js +2 -0
- package/dist/{mobile-nav-DRQtHK-O.js.map → mobile-nav-DlpUqdSL.js.map} +1 -1
- package/dist/mobile-nav-DqlSA30q.d.ts +7 -0
- package/dist/mobile-nav-DqlSA30q.d.ts.map +1 -0
- package/dist/mode-toggle-CKIf57IF.d.ts +7 -0
- package/dist/mode-toggle-CKIf57IF.d.ts.map +1 -0
- package/dist/mode-toggle-DoWxq87i.js +2 -0
- package/dist/{mode-toggle-CGGAaMUK.js.map → mode-toggle-DoWxq87i.js.map} +1 -1
- package/dist/mount-BuQtU842-CEQcCm2Y.js +2 -0
- package/dist/mount-BuQtU842-CEQcCm2Y.js.map +1 -0
- package/dist/{nav-0JAtUIst.d.ts → nav-CAnD-pGR.d.ts} +1 -1
- package/dist/{nav-0JAtUIst.d.ts.map → nav-CAnD-pGR.d.ts.map} +1 -1
- package/dist/{page-header-BGKsl1LK.js → page-header-BDMYarTX.js} +1 -1
- package/dist/{page-header-BGKsl1LK.js.map → page-header-BDMYarTX.js.map} +1 -1
- package/dist/{page-header-Brw3423H.d.ts → page-header-DC0P0tw9.d.ts} +6 -6
- package/dist/{page-header-Brw3423H.d.ts.map → page-header-DC0P0tw9.d.ts.map} +1 -1
- package/dist/popover-fCKP1e-n.js +2 -0
- package/dist/popover-fCKP1e-n.js.map +1 -0
- package/dist/pre-block-M0SrdSIi.js +2 -0
- package/dist/{pre-block-BThyCz1h.js.map → pre-block-M0SrdSIi.js.map} +1 -1
- package/dist/{pre-block-CTP3z9eq.d.ts → pre-block-itQGtf67.d.ts} +6 -6
- package/dist/{pre-block-CTP3z9eq.d.ts.map → pre-block-itQGtf67.d.ts.map} +1 -1
- package/dist/{providers-fDpVqSs8.js → providers-Cn0pPppV.js} +1 -1
- package/dist/{providers-fDpVqSs8.js.map → providers-Cn0pPppV.js.map} +1 -1
- package/dist/{providers-BU3xm7I4.d.ts → providers-DBsOm_ZR.d.ts} +3 -3
- package/dist/providers-DBsOm_ZR.d.ts.map +1 -0
- package/dist/{registry-colors-data-FyxAihEQ.js → registry-colors-data-BauG7f6N.js} +1 -1
- package/dist/{registry-colors-data-FyxAihEQ.js.map → registry-colors-data-BauG7f6N.js.map} +1 -1
- package/dist/{registry-styles-WvCGd0xY.d.ts → registry-styles-CeAvJ8GF.d.ts} +1 -1
- package/dist/{registry-styles-WvCGd0xY.d.ts.map → registry-styles-CeAvJ8GF.d.ts.map} +1 -1
- package/dist/{registry-styles-Cm1HpC4C.js → registry-styles-DuIzFkId.js} +1 -1
- package/dist/{registry-styles-Cm1HpC4C.js.map → registry-styles-DuIzFkId.js.map} +1 -1
- package/dist/{rehype-pre-block-source-Bz3-G4tr.js → rehype-pre-block-source-3-fJ4WJH.js} +1 -1
- package/dist/{rehype-pre-block-source-Bz3-G4tr.js.map → rehype-pre-block-source-3-fJ4WJH.js.map} +1 -1
- package/dist/{rehype-pre-block-source-Le9z9RN8.d.ts → rehype-pre-block-source-CMhCtBYe.d.ts} +2 -2
- package/dist/{rehype-pre-block-source-Le9z9RN8.d.ts.map → rehype-pre-block-source-CMhCtBYe.d.ts.map} +1 -1
- package/dist/{rehype-title-Dwt_OKnR.d.ts → rehype-title-DoG6hqwI.d.ts} +2 -2
- package/dist/rehype-title-DoG6hqwI.d.ts.map +1 -0
- package/dist/{rehype-title-C1q6PbyG.js → rehype-title-tATZyrYL.js} +1 -1
- package/dist/{rehype-title-C1q6PbyG.js.map → rehype-title-tATZyrYL.js.map} +1 -1
- package/dist/scroll-area-DOM4NPU1.js +8 -0
- package/dist/scroll-area-DOM4NPU1.js.map +1 -0
- package/dist/separator-C-EmvFf-.js +2 -0
- package/dist/separator-C-EmvFf-.js.map +1 -0
- package/dist/site-footer-U_loxsN7.js +2 -0
- package/dist/{site-footer-CsUC-l-l.js.map → site-footer-U_loxsN7.js.map} +1 -1
- package/dist/site-header-D0b71MM9.js +2 -0
- package/dist/{site-header-Bi3-9Kl3.js.map → site-header-D0b71MM9.js.map} +1 -1
- package/dist/style-switcher-DHUlWCK9.d.ts +25 -0
- package/dist/style-switcher-DHUlWCK9.d.ts.map +1 -0
- package/dist/style-switcher-mI1wYqx9.js +2 -0
- package/dist/style-switcher-mI1wYqx9.js.map +1 -0
- package/dist/{table-Sc60jiil.js → table-CGxZyAIU.js} +1 -1
- package/dist/{table-Sc60jiil.js.map → table-CGxZyAIU.js.map} +1 -1
- package/dist/{table-B1hJe5kw.d.ts → table-DBE7rAn8.d.ts} +1 -1
- package/dist/{table-B1hJe5kw.d.ts.map → table-DBE7rAn8.d.ts.map} +1 -1
- package/dist/tabs-B-epHnpP.js +2 -0
- package/dist/tabs-B-epHnpP.js.map +1 -0
- package/dist/tabs-CZHr50hx.d.ts +68 -0
- package/dist/tabs-CZHr50hx.d.ts.map +1 -0
- package/dist/tabs-Dkxe7gur.js +2 -0
- package/dist/{tabs-KvYm5au9.js.map → tabs-Dkxe7gur.js.map} +1 -1
- package/dist/{tailwind-indicator-CV2jUfip.js → tailwind-indicator-DfZbcuiV.js} +1 -1
- package/dist/{tailwind-indicator-CV2jUfip.js.map → tailwind-indicator-DfZbcuiV.js.map} +1 -1
- package/dist/{themes-DsvojWlq.js → themes-B_GZI47B.js} +2 -2
- package/dist/{themes-DsvojWlq.js.map → themes-B_GZI47B.js.map} +1 -1
- package/dist/{themes-dv8YVpXg.d.ts → themes-f-kJrN-m.d.ts} +1 -1
- package/dist/{themes-dv8YVpXg.d.ts.map → themes-f-kJrN-m.d.ts.map} +1 -1
- package/dist/{typepography-B_jjjv9F.d.ts → typepography-C7_sA_gd.d.ts} +13 -13
- package/dist/{typepography-B_jjjv9F.d.ts.map → typepography-C7_sA_gd.d.ts.map} +1 -1
- package/dist/{typepography-Btk-lJ3O.js → typepography-DCeDxf1d.js} +1 -1
- package/dist/{typepography-Btk-lJ3O.js.map → typepography-DCeDxf1d.js.map} +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/nav.d.ts +1 -1
- package/dist/types/unist.d.ts +1 -1
- package/dist/{unist-Bs-H_R8g.d.ts → unist-B-M8WB5-.d.ts} +1 -1
- package/dist/{unist-Bs-H_R8g.d.ts.map → unist-B-M8WB5-.d.ts.map} +1 -1
- package/dist/{use-colors-JhoQAYK2.js → use-colors-CPBjzcVb.js} +2 -2
- package/dist/{use-colors-JhoQAYK2.js.map → use-colors-CPBjzcVb.js.map} +1 -1
- package/dist/{use-colors-CeiLGCjZ.d.ts → use-colors-CS9koNDv.d.ts} +2 -2
- package/dist/use-colors-CS9koNDv.d.ts.map +1 -0
- package/dist/{use-config-CFygUPAg.d.ts → use-config-Ditx9N5z.d.ts} +2 -2
- package/dist/{use-config-CFygUPAg.d.ts.map → use-config-Ditx9N5z.d.ts.map} +1 -1
- package/dist/{use-config-D1zkiIbf.js → use-config-PB_AYm7O.js} +1 -1
- package/dist/{use-config-D1zkiIbf.js.map → use-config-PB_AYm7O.js.map} +1 -1
- package/dist/{use-lift-mode-IpZRia0D.d.ts → use-lift-mode-CZilliRQ.d.ts} +1 -1
- package/dist/use-lift-mode-CZilliRQ.d.ts.map +1 -0
- package/dist/{use-lift-mode-Dya2HcpU.js → use-lift-mode-l3nQtEGa.js} +1 -1
- package/dist/{use-lift-mode-Dya2HcpU.js.map → use-lift-mode-l3nQtEGa.js.map} +1 -1
- package/dist/{use-meta-colors-BhIhFzvx.js → use-meta-colors-CuAQwzr0.js} +2 -2
- package/dist/{use-meta-colors-BhIhFzvx.js.map → use-meta-colors-CuAQwzr0.js.map} +1 -1
- package/dist/{use-meta-colors-C8OegAZO.d.ts → use-meta-colors-DVSpBVKl.d.ts} +1 -1
- package/dist/use-meta-colors-DVSpBVKl.d.ts.map +1 -0
- package/dist/{use-mounted-SpB3P6Vt.js → use-mounted-C3BCVKvM.js} +1 -1
- package/dist/{use-mounted-SpB3P6Vt.js.map → use-mounted-C3BCVKvM.js.map} +1 -1
- package/dist/{use-mounted-D25Cx8rc.d.ts → use-mounted-CYGlYk2e.d.ts} +1 -1
- package/dist/use-mounted-CYGlYk2e.d.ts.map +1 -0
- package/dist/{use-themes-config-Bo-JZDNU.js → use-themes-config-Cmh0Zmyp.js} +2 -2
- package/dist/{use-themes-config-Bo-JZDNU.js.map → use-themes-config-Cmh0Zmyp.js.map} +1 -1
- package/dist/use-themes-config-FMiBGRMO.d.ts +14 -0
- package/dist/use-themes-config-FMiBGRMO.d.ts.map +1 -0
- package/dist/{utils-CMPpWmbv.d.ts → utils-BKcsqHz0.d.ts} +1 -1
- package/dist/{utils-CMPpWmbv.d.ts.map → utils-BKcsqHz0.d.ts.map} +1 -1
- package/dist/{utils-NjSy-iOL.js → utils-DJ_-rCtq.js} +1 -1
- package/dist/{utils-NjSy-iOL.js.map → utils-DJ_-rCtq.js.map} +1 -1
- package/dist/velite/config.js +1 -1
- package/dist/velite/index.d.ts +5 -5
- package/dist/velite/index.js +1 -1
- package/dist/velite/plugins/index.d.ts +5 -5
- package/dist/velite/plugins/index.js +1 -1
- package/dist/velite/plugins/metadata-plugin.d.ts +3 -3
- package/dist/velite/plugins/metadata-plugin.js +1 -1
- package/dist/velite/plugins/rehype-pre-block-source.d.ts +3 -3
- package/dist/velite/plugins/rehype-pre-block-source.js +1 -1
- package/dist/velite/plugins/rehype-title.d.ts +3 -3
- package/dist/velite/plugins/rehype-title.js +1 -1
- package/dist/velite/rehype-npm-command.d.ts +2 -2
- package/package.json +2 -6
- package/dist/callout-CFw8zUIz.js +0 -2
- package/dist/callout-CFw8zUIz.js.map +0 -1
- package/dist/charts-hfCEZEQp.d.ts.map +0 -1
- package/dist/code-block-CR2loi-i.d.ts.map +0 -1
- package/dist/code-preview-cIvw8qyg.js +0 -2
- package/dist/code-preview-cIvw8qyg.js.map +0 -1
- package/dist/command-menu-BVebU1JI.js +0 -2
- package/dist/component-preview-CL6guE-v.js +0 -2
- package/dist/component-source-BCBDjfEb.js +0 -5
- package/dist/components-list-ZLlUD-Nr.d.ts +0 -12
- package/dist/copy-button-D50DXq56.js +0 -2
- package/dist/copy-button.types-D6D1XKDN.d.ts +0 -19
- package/dist/copy-button.types-D6D1XKDN.d.ts.map +0 -1
- package/dist/docs-pager-2p2cKZcg.js +0 -2
- package/dist/docs-toc-B4_Znnrj.d.ts +0 -13
- package/dist/figcaption-block-DWZhs-6i.js +0 -2
- package/dist/framework-docs-ZYLz3BBy.js +0 -2
- package/dist/index-2mWOLEIP.d.ts +0 -7
- package/dist/index-BZ1Usw1L.d.ts +0 -8
- package/dist/index-Bunxo_8h.d.ts +0 -8
- package/dist/main-nav-SathVgSN.d.ts +0 -7
- package/dist/main-nav-SathVgSN.d.ts.map +0 -1
- package/dist/mdx-cqn1ggXI.js +0 -2
- package/dist/mdx-cqn1ggXI.js.map +0 -1
- package/dist/metadata-plugin-Ag61IUUu.d.ts.map +0 -1
- package/dist/mobile-nav-DRQtHK-O.js +0 -2
- package/dist/mobile-nav-hEfoD2ld.d.ts +0 -7
- package/dist/mobile-nav-hEfoD2ld.d.ts.map +0 -1
- package/dist/mode-toggle-BcPx4Vfk.d.ts +0 -7
- package/dist/mode-toggle-BcPx4Vfk.d.ts.map +0 -1
- package/dist/mode-toggle-CGGAaMUK.js +0 -2
- package/dist/pre-block-BThyCz1h.js +0 -2
- package/dist/providers-BU3xm7I4.d.ts.map +0 -1
- package/dist/rehype-title-Dwt_OKnR.d.ts.map +0 -1
- package/dist/site-footer-CsUC-l-l.js +0 -2
- package/dist/site-header-Bi3-9Kl3.js +0 -2
- package/dist/style-switcher-BXEGTMW2.d.ts +0 -12
- package/dist/style-switcher-BXEGTMW2.d.ts.map +0 -1
- package/dist/style-switcher-CpcMcuwL.js +0 -2
- package/dist/style-switcher-CpcMcuwL.js.map +0 -1
- package/dist/tabs-DWxNPhgN.d.ts +0 -23
- package/dist/tabs-DWxNPhgN.d.ts.map +0 -1
- package/dist/tabs-KvYm5au9.js +0 -2
- package/dist/use-colors-CeiLGCjZ.d.ts.map +0 -1
- package/dist/use-lift-mode-IpZRia0D.d.ts.map +0 -1
- package/dist/use-meta-colors-C8OegAZO.d.ts.map +0 -1
- package/dist/use-mounted-D25Cx8rc.d.ts.map +0 -1
- package/dist/use-themes-config-DfQCuhPn.d.ts +0 -14
- package/dist/use-themes-config-DfQCuhPn.d.ts.map +0 -1
- /package/dist/{code-Cz75Womb.js → code-EGxBRQzI.js} +0 -0
- /package/dist/{command-menu-7HTBKVxd.js → command-menu-B-4RwCHn.js} +0 -0
- /package/dist/{context-BoqMzqgD.js → context-D1vJbMz4.js} +0 -0
- /package/dist/{context.types-8c0sgn5Q.js → context.types-_ABj6_iF.js} +0 -0
- /package/dist/{copy-button-DpLK4Hc9.js → copy-button-1IrjQnN4.js} +0 -0
- /package/dist/{copy-button.types-ZXpoKEH1.js → copy-button.types-DyRzjYLJ.js} +0 -0
- /package/dist/{docs-B9qhW8T2.js → docs-DXceQpMa.js} +0 -0
- /package/dist/{index-BwEOYyLd.d.ts → index-BCvK1fdV.d.ts} +0 -0
- /package/dist/{index-CJOkJMYm.d.ts → index-BJZuNQ1k.d.ts} +0 -0
- /package/dist/{index-Cp46Zvz-.d.ts → index-BPt9YMeo.d.ts} +0 -0
- /package/dist/{index-CsVdkYso.d.ts → index-CAfgpWI7.d.ts} +0 -0
- /package/dist/{index-DIk3-d3u.d.ts → index-CDXWDYLH.d.ts} +0 -0
- /package/dist/{index-LAzYY5Wa.d.ts → index-ChT-j2Wd.d.ts} +0 -0
- /package/dist/{index-k586z2Y3.d.ts → index-CvYs74sQ.d.ts} +0 -0
- /package/dist/{index-mj9Ys67i.d.ts → index-Deaompgh.d.ts} +0 -0
- /package/dist/{index-otwxHF3U.d.ts → index-DfpeEs9r.d.ts} +0 -0
- /package/dist/{layouts-hVp-aKom.js → layouts-BhXcIjuP.js} +0 -0
- /package/dist/{mdx-components-BoD1jTr7.js → mdx-components-5zRXfhm4.js} +0 -0
- /package/dist/{nav-6wUjcK0K.js → nav-C5vWYEDs.js} +0 -0
- /package/dist/{themes-Dg5GgDgK.js → themes-D1HAElYM.js} +0 -0
- /package/dist/{unist-DpNAVhDX.js → unist-CnBII6A_.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ColorFormat } from "./colors-
|
|
1
|
+
import { n as ColorFormat } from "./colors-DBTwyOsD.js";
|
|
2
2
|
|
|
3
3
|
//#region src/hooks/use-colors.d.ts
|
|
4
4
|
declare function useColors(): {
|
|
@@ -10,4 +10,4 @@ declare function useColors(): {
|
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
12
|
export { useColors as t };
|
|
13
|
-
//# sourceMappingURL=use-colors-
|
|
13
|
+
//# sourceMappingURL=use-colors-CS9koNDv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-colors-CS9koNDv.d.ts","names":[],"sources":["../src/hooks/use-colors.ts"],"sourcesContent":[],"mappings":";;;iBAegB,SAAA,CAAA;;EAAA,SAAA,EAAA,OAAS;;sBAQD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Style } from "./registry-styles-
|
|
1
|
+
import { t as Style } from "./registry-styles-CeAvJ8GF.js";
|
|
2
2
|
import * as jotai_utils1 from "jotai/utils";
|
|
3
3
|
|
|
4
4
|
//#region src/hooks/use-config.d.ts
|
|
@@ -10,4 +10,4 @@ type Config = {
|
|
|
10
10
|
declare function useConfig(): [Config, (args_0: typeof jotai_utils1.RESET | Config | ((prev: Config) => typeof jotai_utils1.RESET | Config)) => void];
|
|
11
11
|
//#endregion
|
|
12
12
|
export { useConfig as t };
|
|
13
|
-
//# sourceMappingURL=use-config-
|
|
13
|
+
//# sourceMappingURL=use-config-Ditx9N5z.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-config-
|
|
1
|
+
{"version":3,"file":"use-config-Ditx9N5z.d.ts","names":[],"sources":["../src/hooks/use-config.ts"],"sourcesContent":[],"mappings":";;;;KAIK,MAAA;SACI;;EADJ,MAAA,EAAA,MAAM;AAYX,CAAA;AAAyB,iBAAT,SAAA,CAAA,CAAS,EAAA,CAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,YAAA,CAAA,KAAA,GAAA,MAAA,GAAA,CAAA,CAAA,IAAA,EAAA,MAAA,EAAA,GAAA,OAAA,YAAA,CAAA,KAAA,GAAA,MAAA,CAAA,EAAA,GAAA,IAAA,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{useAtom as e}from"jotai";import{atomWithStorage as t}from"jotai/utils";const n=t(`config`,{radius:.5,style:`default`,theme:`zinc`});function r(){return e(n)}export{r as t};
|
|
2
|
-
//# sourceMappingURL=use-config-
|
|
2
|
+
//# sourceMappingURL=use-config-PB_AYm7O.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-config-
|
|
1
|
+
{"version":3,"file":"use-config-PB_AYm7O.js","names":[],"sources":["../src/hooks/use-config.ts"],"sourcesContent":["import type { Style } from '@duck-docs/lib/registry-styles'\nimport { useAtom } from 'jotai'\nimport { atomWithStorage } from 'jotai/utils'\n\ntype Config = {\n style: Style['name']\n theme: string\n radius: number\n}\n\nconst configAtom = atomWithStorage<Config>('config', {\n radius: 0.5,\n style: 'default',\n theme: 'zinc',\n})\n\nexport function useConfig() {\n return useAtom(configAtom)\n}\n"],"mappings":"8EAUA,MAAM,EAAa,EAAwB,SAAU,CACnD,OAAQ,GACR,MAAO,UACP,MAAO,OACR,CAAC,CAEF,SAAgB,GAAY,CAC1B,OAAO,EAAQ,EAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-lift-mode-CZilliRQ.d.ts","names":[],"sources":["../src/hooks/use-lift-mode.ts"],"sourcesContent":[],"mappings":";iBAKgB,WAAA;EAAA,UAAA,EAAA,OAAW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{useAtom as e}from"jotai";import{atomWithStorage as t}from"jotai/utils";const n=t(`lift-mode`,[]);function r(t){let[r,i]=e(n);function a(e){i(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])}return{isLiftMode:r.includes(t),toggleLiftMode:a}}export{r as t};
|
|
2
|
-
//# sourceMappingURL=use-lift-mode-
|
|
2
|
+
//# sourceMappingURL=use-lift-mode-l3nQtEGa.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-lift-mode-
|
|
1
|
+
{"version":3,"file":"use-lift-mode-l3nQtEGa.js","names":["name"],"sources":["../src/hooks/use-lift-mode.ts"],"sourcesContent":["import { useAtom } from 'jotai'\nimport { atomWithStorage } from 'jotai/utils'\n\nconst configAtom = atomWithStorage<string[]>('lift-mode', [])\n\nexport function useLiftMode(name: string) {\n const [chunks, setChunks] = useAtom(configAtom)\n\n function toggleLiftMode(name: string) {\n setChunks((prev) => {\n return prev.includes(name) ? prev.filter((n) => n !== name) : [...prev, name]\n })\n }\n\n return {\n isLiftMode: chunks.includes(name),\n toggleLiftMode,\n }\n}\n"],"mappings":"8EAGA,MAAM,EAAa,EAA0B,YAAa,EAAE,CAAC,CAE7D,SAAgB,EAAY,EAAc,CACxC,GAAM,CAAC,EAAQ,GAAa,EAAQ,EAAW,CAE/C,SAAS,EAAe,EAAc,CACpC,EAAW,GACF,EAAK,SAASA,EAAK,CAAG,EAAK,OAAQ,GAAM,IAAMA,EAAK,CAAG,CAAC,GAAG,EAAMA,EAAK,CAC7E,CAGJ,MAAO,CACL,WAAY,EAAO,SAAS,EAAK,CACjC,iBACD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as e}from"./context-
|
|
2
|
-
//# sourceMappingURL=use-meta-colors-
|
|
1
|
+
import{o as e}from"./context-BlGtI7pz.js";import*as t from"react";import{useTheme as n}from"next-themes";const r={dark:`#000000`,light:`#ffffff`};function i(){let{resolvedTheme:i}=n(),a=e().metaThemeColors??r;return{metaColor:t.useMemo(()=>i===`dark`?a.dark:a.light,[a.dark,a.light,i]),setMetaColor:t.useCallback(e=>{document.querySelector(`meta[name="theme-color"]`)?.setAttribute(`content`,e)},[])}}export{i as t};
|
|
2
|
+
//# sourceMappingURL=use-meta-colors-CuAQwzr0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-meta-colors-
|
|
1
|
+
{"version":3,"file":"use-meta-colors-CuAQwzr0.js","names":["React"],"sources":["../src/hooks/use-meta-colors.ts"],"sourcesContent":["import { useSiteConfig } from '@duck-docs/context'\nimport { useTheme } from 'next-themes'\nimport * as React from 'react'\n\nconst DEFAULT_META_THEME_COLORS = {\n dark: '#000000',\n light: '#ffffff',\n}\n\nexport function useMetaColor() {\n const { resolvedTheme } = useTheme()\n const siteConfig = useSiteConfig()\n const metaThemeColors = siteConfig.metaThemeColors ?? DEFAULT_META_THEME_COLORS\n\n const metaColor = React.useMemo(() => {\n return resolvedTheme !== 'dark' ? metaThemeColors.light : metaThemeColors.dark\n }, [metaThemeColors.dark, metaThemeColors.light, resolvedTheme])\n\n const setMetaColor = React.useCallback((color: string) => {\n document.querySelector('meta[name=\"theme-color\"]')?.setAttribute('content', color)\n }, [])\n\n return {\n metaColor,\n setMetaColor,\n }\n}\n"],"mappings":"yGAIA,MAAM,EAA4B,CAChC,KAAM,UACN,MAAO,UACR,CAED,SAAgB,GAAe,CAC7B,GAAM,CAAE,iBAAkB,GAAU,CAE9B,EADa,GAAe,CACC,iBAAmB,EAUtD,MAAO,CACL,UATgBA,EAAM,YACf,IAAkB,OAAiC,EAAgB,KAAxC,EAAgB,MACjD,CAAC,EAAgB,KAAM,EAAgB,MAAO,EAAc,CAAC,CAQ9D,aANmBA,EAAM,YAAa,GAAkB,CACxD,SAAS,cAAc,2BAA2B,EAAE,aAAa,UAAW,EAAM,EACjF,EAAE,CAAC,CAKL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-meta-colors-DVSpBVKl.d.ts","names":[],"sources":["../src/hooks/use-meta-colors.ts"],"sourcesContent":[],"mappings":";iBASgB,YAAA,CAAA;EAAA,SAAA,EAAA,MAAY"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import*as e from"react";function t(){let[t,n]=e.useState(!1);return e.useEffect(()=>{n(!0)},[]),t}export{t};
|
|
2
|
-
//# sourceMappingURL=use-mounted-
|
|
2
|
+
//# sourceMappingURL=use-mounted-C3BCVKvM.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-mounted-
|
|
1
|
+
{"version":3,"file":"use-mounted-C3BCVKvM.js","names":["React"],"sources":["../src/hooks/use-mounted.ts"],"sourcesContent":["import * as React from 'react'\n\nexport function useMounted() {\n const [mounted, setMounted] = React.useState(false)\n\n React.useEffect(() => {\n setMounted(true)\n }, [])\n\n return mounted\n}\n"],"mappings":"wBAEA,SAAgB,GAAa,CAC3B,GAAM,CAAC,EAAS,GAAcA,EAAM,SAAS,GAAM,CAMnD,OAJA,EAAM,cAAgB,CACpB,EAAW,GAAK,EACf,EAAE,CAAC,CAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-mounted-CYGlYk2e.d.ts","names":[],"sources":["../src/hooks/use-mounted.ts"],"sourcesContent":[],"mappings":";iBAEgB,UAAA,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./themes-
|
|
2
|
-
//# sourceMappingURL=use-themes-config-
|
|
1
|
+
import{t as e}from"./themes-B_GZI47B.js";import{useAtom as t}from"jotai";import{atomWithStorage as n}from"jotai/utils";const r=n(`themes:config`,{activeTheme:e[0]});function i(){let[e,n]=t(r);return{setThemesConfig:n,themesConfig:e}}export{i as t};
|
|
2
|
+
//# sourceMappingURL=use-themes-config-Cmh0Zmyp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-themes-config-
|
|
1
|
+
{"version":3,"file":"use-themes-config-Cmh0Zmyp.js","names":[],"sources":["../src/hooks/use-themes-config.ts"],"sourcesContent":["import { THEMES, type Theme } from '@duck-docs/lib/themes'\nimport { useAtom } from 'jotai'\nimport { atomWithStorage } from 'jotai/utils'\n\ntype ThemesConfig = {\n activeTheme: Theme\n}\n\nconst configAtom = atomWithStorage<ThemesConfig>('themes:config', {\n activeTheme: THEMES[0] as Theme,\n})\n\nexport function useThemesConfig() {\n const [themesConfig, setThemesConfig] = useAtom(configAtom)\n\n return { setThemesConfig, themesConfig }\n}\n"],"mappings":"uHAQA,MAAM,EAAa,EAA8B,gBAAiB,CAChE,YAAa,EAAO,GACrB,CAAC,CAEF,SAAgB,GAAkB,CAChC,GAAM,CAAC,EAAc,GAAmB,EAAQ,EAAW,CAE3D,MAAO,CAAE,kBAAiB,eAAc"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { n as Theme } from "./themes-f-kJrN-m.js";
|
|
2
|
+
import * as jotai_utils0 from "jotai/utils";
|
|
3
|
+
|
|
4
|
+
//#region src/hooks/use-themes-config.d.ts
|
|
5
|
+
type ThemesConfig = {
|
|
6
|
+
activeTheme: Theme;
|
|
7
|
+
};
|
|
8
|
+
declare function useThemesConfig(): {
|
|
9
|
+
setThemesConfig: (args_0: typeof jotai_utils0.RESET | ThemesConfig | ((prev: ThemesConfig) => typeof jotai_utils0.RESET | ThemesConfig)) => void;
|
|
10
|
+
themesConfig: ThemesConfig;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { useThemesConfig as t };
|
|
14
|
+
//# sourceMappingURL=use-themes-config-FMiBGRMO.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-themes-config-FMiBGRMO.d.ts","names":[],"sources":["../src/hooks/use-themes-config.ts"],"sourcesContent":[],"mappings":";;;;KAIK,YAAA;eACU;;AADV,iBAQW,eAAA,CAAA,CAPI,EAAA;EAOJ,eAAA,EAAA,CAAe,MAAA,EAAA,OAAA,YAAA,CAAA,KAAA,eAAA,GAAA,CAAA,CAAA,IAAA,cAAA,EAAA,GAAA,yBAAA,eAAA,CAAA,EAAA,GAAA,IAAA;EAAA,YAAA,cAAA"}
|
|
@@ -6,4 +6,4 @@ declare function groupDataByNumbers<T>(strings: T[], groupSizes: number[]): T[][
|
|
|
6
6
|
declare function groupArrays<T>(numbers: number[], arr: T[]): T[][];
|
|
7
7
|
//#endregion
|
|
8
8
|
export { groupDataByNumbers as a, groupArrays as i, filteredObject as n, formatDate as r, absoluteUrl as t };
|
|
9
|
-
//# sourceMappingURL=utils-
|
|
9
|
+
//# sourceMappingURL=utils-BKcsqHz0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-BKcsqHz0.d.ts","names":[],"sources":["../src/lib/utils.ts"],"sourcesContent":[],"mappings":";iBAAgB,UAAA;AAAA,iBASA,WAAA,CATU,IAAA,EAAA,MAAA,CAAA,EAAA,MAAA;AASV,cAIH,cAJc,EAAA,CAAA,UAIc,MAJd,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,IAAA,EAAA,MAAA,EAAA,EAAA,GAAA,EAIwD,CAJxD,EAAA,GAI4D,OAJ5D,CAIoE,CAJpE,CAAA;AAId,iBAIG,kBAFf,CAAA,CAAA,CAAA,CAAA,OAAA,EAE8C,CAF9C,EAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,EAE0E,CAF1E,EAAA,EAAA;AAFwC,iBAiBzB,WAjByB,CAAA,CAAA,CAAA,CAAA,OAAA,EAAA,MAAA,EAAA,EAAA,GAAA,EAiBc,CAjBd,EAAA,CAAA,EAiBoB,CAjBpB,EAAA,EAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
function e(e){return new Date(e).toLocaleDateString(`en-US`,{day:`numeric`,month:`long`,year:`numeric`})}function t(e){return`${process.env.NEXT_PUBLIC_APP_URL}${e}`}const n=(e,t)=>Object.fromEntries(Object.entries(t).filter(([t])=>!e.includes(t)));function r(e,t){let n=[],r=0;for(let i of t){let t=e.slice(r,r+i);n.push(t),r+=i}return n}function i(e,t){let n=[],r=0;for(let i of e){let e=t.slice(r,r+i);n.push(e),r+=i}return n}export{r as a,i,n,e as r,t};
|
|
2
|
-
//# sourceMappingURL=utils-
|
|
2
|
+
//# sourceMappingURL=utils-DJ_-rCtq.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-DJ_-rCtq.js","names":["result: T[][]"],"sources":["../src/lib/utils.ts"],"sourcesContent":["export function formatDate(input: string | number): string {\n const date = new Date(input)\n return date.toLocaleDateString('en-US', {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n })\n}\n\nexport function absoluteUrl(path: string) {\n return `${process.env.NEXT_PUBLIC_APP_URL}${path}`\n}\n\nexport const filteredObject = <T extends Record<string, any>>(keys: string[], obj: T): Partial<T> => {\n return Object.fromEntries(Object.entries(obj).filter(([key]) => !keys.includes(key))) as Partial<T>\n}\n\nexport function groupDataByNumbers<T>(strings: T[], groupSizes: number[]): T[][] {\n const result: T[][] = []\n let index = 0\n\n for (const size of groupSizes) {\n const group = strings.slice(index, index + size)\n result.push(group)\n index += size\n }\n\n return result\n}\n\nexport function groupArrays<T>(numbers: number[], arr: T[]): T[][] {\n const result: T[][] = []\n let index = 0\n\n for (const num of numbers) {\n const headerGroup = arr.slice(index, index + num)\n result.push(headerGroup)\n index += num\n }\n\n return result\n}\n"],"mappings":"AAAA,SAAgB,EAAW,EAAgC,CAEzD,OADa,IAAI,KAAK,EAAM,CAChB,mBAAmB,QAAS,CACtC,IAAK,UACL,MAAO,OACP,KAAM,UACP,CAAC,CAGJ,SAAgB,EAAY,EAAc,CACxC,MAAO,GAAG,QAAQ,IAAI,sBAAsB,IAG9C,MAAa,GAAiD,EAAgB,IACrE,OAAO,YAAY,OAAO,QAAQ,EAAI,CAAC,QAAQ,CAAC,KAAS,CAAC,EAAK,SAAS,EAAI,CAAC,CAAC,CAGvF,SAAgB,EAAsB,EAAc,EAA6B,CAC/E,IAAMA,EAAgB,EAAE,CACpB,EAAQ,EAEZ,IAAK,IAAM,KAAQ,EAAY,CAC7B,IAAM,EAAQ,EAAQ,MAAM,EAAO,EAAQ,EAAK,CAChD,EAAO,KAAK,EAAM,CAClB,GAAS,EAGX,OAAO,EAGT,SAAgB,EAAe,EAAmB,EAAiB,CACjE,IAAMA,EAAgB,EAAE,CACpB,EAAQ,EAEZ,IAAK,IAAM,KAAO,EAAS,CACzB,IAAM,EAAc,EAAI,MAAM,EAAO,EAAQ,EAAI,CACjD,EAAO,KAAK,EAAY,CACxB,GAAS,EAGX,OAAO"}
|
package/dist/velite/config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"../metadata-plugin-
|
|
1
|
+
import{t as e}from"../metadata-plugin-DGwA5NWw.js";import{t}from"../rehype-pre-block-source-3-fJ4WJH.js";import{t as n}from"../rehype-title-tATZyrYL.js";import"./plugins/index.js";import{rehypeNpmCommand as r}from"./rehype-npm-command.js";import{cleanTocItems as i}from"./utils.js";import{getHighlighter as a}from"@shikijs/compat";import o from"rehype-autolink-headings";import s from"rehype-pretty-code";import c from"rehype-slug";import{codeImport as l}from"remark-code-import";import u from"remark-gfm";import{defineConfig as d,s as f}from"velite";function p({docsPattern:p=`docs/**/*.mdx`,rehypePlugins:m=[],rehypePluginsBefore:h=[],remarkPlugins:g=[],remarkPluginsBefore:_=[]}={}){return d({collections:{docs:{name:`Docs`,pattern:p,schema:f.object({body:f.mdx(),component:f.boolean().default(!1),content:f.markdown(),description:f.string(),excerpt:f.excerpt(),links:f.object({api:f.string().optional(),doc:f.string().optional()}).optional(),metadata:f.metadata(),title:f.string().max(99),toc:f.toc()}).transform((e,{path:t,meta:n})=>{let r=n;return{...e,contentType:r.path.split(`.`).pop(),flattenedPath:r.path.split(`/`).slice(-2,-1).join(`/`).replace(/\.mdx$/,``),permalink:r.path.replace(/^.*docs\//,``).replace(/\.mdx$/,``),slug:r.path.split(`docs/`).pop()?.replace(/\.mdx$/,``).replace(/^\/+/,``)?`docs/${r.path.split(`docs/`).pop()?.replace(/\.mdx$/,``).replace(/^\/+/,``)}`:`docs`,sourceFileDir:r.path.split(`/`).slice(-3,-1).join(`/`),sourceFileName:r.path.split(`/`).pop(),sourceFilePath:t,toc:i(e.toc)}})}},mdx:{rehypePlugins:[...h,c,e,[s,{getHighlighter:a,onVisitHighlightedLine(e){e.properties.className.push(`line--highlighted`)},onVisitHighlightedWord(e){e.properties.className=[`word--highlighted`]},onVisitLine(e){e.children?.length===0&&(e.children=[{type:`text`,value:` `}])},theme:{dark:`catppuccin-mocha`,light:`github-light`}}],n,t,r,[o,{properties:{ariaLabel:`Link to section`,className:[`subheading-anchor`]}}],...m],remarkPlugins:[..._,u,l,...g]}})}const m=p();export{p as createDocsVeliteConfig,m as docsVeliteConfig};
|
|
2
2
|
//# sourceMappingURL=config.js.map
|
package/dist/velite/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../unist-
|
|
2
|
-
import "../index-
|
|
1
|
+
import "../unist-B-M8WB5-.js";
|
|
2
|
+
import "../index-BCvK1fdV.js";
|
|
3
3
|
import { DocsVeliteConfigOptions, createDocsVeliteConfig, docsVeliteConfig } from "./config.js";
|
|
4
|
-
import { t as rhypeMetadataPlugin } from "../metadata-plugin-
|
|
5
|
-
import { t as rehypePreBlockSource } from "../rehype-pre-block-source-
|
|
6
|
-
import { t as rehypeTitle } from "../rehype-title-
|
|
4
|
+
import { t as rhypeMetadataPlugin } from "../metadata-plugin-CMU3PUxV.js";
|
|
5
|
+
import { t as rehypePreBlockSource } from "../rehype-pre-block-source-CMhCtBYe.js";
|
|
6
|
+
import { t as rehypeTitle } from "../rehype-title-DoG6hqwI.js";
|
|
7
7
|
import "./plugins/index.js";
|
|
8
8
|
import { rehypeNpmCommand } from "./rehype-npm-command.js";
|
|
9
9
|
import { cleanTocItems } from "./utils.js";
|
package/dist/velite/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../metadata-plugin-
|
|
1
|
+
import{t as e}from"../metadata-plugin-DGwA5NWw.js";import{t}from"../rehype-pre-block-source-3-fJ4WJH.js";import{t as n}from"../rehype-title-tATZyrYL.js";import"./plugins/index.js";import{rehypeNpmCommand as r}from"./rehype-npm-command.js";import{cleanTocItems as i}from"./utils.js";import{createDocsVeliteConfig as a,docsVeliteConfig as o}from"./config.js";export{i as cleanTocItems,a as createDocsVeliteConfig,o as docsVeliteConfig,r as rehypeNpmCommand,t as rehypePreBlockSource,n as rehypeTitle,e as rhypeMetadataPlugin};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../unist-
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { t as rhypeMetadataPlugin } from "../../metadata-plugin-
|
|
4
|
-
import { t as rehypePreBlockSource } from "../../rehype-pre-block-source-
|
|
5
|
-
import { t as rehypeTitle } from "../../rehype-title-
|
|
1
|
+
import "../../unist-B-M8WB5-.js";
|
|
2
|
+
import "../../index-BCvK1fdV.js";
|
|
3
|
+
import { t as rhypeMetadataPlugin } from "../../metadata-plugin-CMU3PUxV.js";
|
|
4
|
+
import { t as rehypePreBlockSource } from "../../rehype-pre-block-source-CMhCtBYe.js";
|
|
5
|
+
import { t as rehypeTitle } from "../../rehype-title-DoG6hqwI.js";
|
|
6
6
|
export { rehypePreBlockSource, rehypeTitle, rhypeMetadataPlugin };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../../metadata-plugin-
|
|
1
|
+
import{t as e}from"../../metadata-plugin-DGwA5NWw.js";import{t}from"../../rehype-pre-block-source-3-fJ4WJH.js";import{t as n}from"../../rehype-title-tATZyrYL.js";export{t as rehypePreBlockSource,n as rehypeTitle,e as rhypeMetadataPlugin};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../unist-
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { t as rhypeMetadataPlugin } from "../../metadata-plugin-
|
|
1
|
+
import "../../unist-B-M8WB5-.js";
|
|
2
|
+
import "../../index-BCvK1fdV.js";
|
|
3
|
+
import { t as rhypeMetadataPlugin } from "../../metadata-plugin-CMU3PUxV.js";
|
|
4
4
|
export { rhypeMetadataPlugin };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../../metadata-plugin-
|
|
1
|
+
import{t as e}from"../../metadata-plugin-DGwA5NWw.js";export{e as rhypeMetadataPlugin};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../unist-
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { t as rehypePreBlockSource } from "../../rehype-pre-block-source-
|
|
1
|
+
import "../../unist-B-M8WB5-.js";
|
|
2
|
+
import "../../index-BCvK1fdV.js";
|
|
3
|
+
import { t as rehypePreBlockSource } from "../../rehype-pre-block-source-CMhCtBYe.js";
|
|
4
4
|
export { rehypePreBlockSource };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../../rehype-pre-block-source-
|
|
1
|
+
import{t as e}from"../../rehype-pre-block-source-3-fJ4WJH.js";export{e as rehypePreBlockSource};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../unist-
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { t as rehypeTitle } from "../../rehype-title-
|
|
1
|
+
import "../../unist-B-M8WB5-.js";
|
|
2
|
+
import "../../index-BCvK1fdV.js";
|
|
3
|
+
import { t as rehypeTitle } from "../../rehype-title-DoG6hqwI.js";
|
|
4
4
|
export { rehypeTitle };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../../rehype-title-
|
|
1
|
+
import{t as e}from"../../rehype-title-tATZyrYL.js";export{e as rehypeTitle};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as UnistTree } from "../unist-
|
|
2
|
-
import "../index-
|
|
1
|
+
import { r as UnistTree } from "../unist-B-M8WB5-.js";
|
|
2
|
+
import "../index-BCvK1fdV.js";
|
|
3
3
|
|
|
4
4
|
//#region src/velite/rehype-npm-command.d.ts
|
|
5
5
|
declare function rehypeNpmCommand(): (tree: UnistTree) => void;
|
package/package.json
CHANGED
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"vitest": "^4.0.16",
|
|
52
52
|
"@gentleduck/hooks": "0.1.8",
|
|
53
53
|
"@gentleduck/libs": "0.1.11",
|
|
54
|
-
"@gentleduck/tsdown-config": "0.0.1",
|
|
55
54
|
"@gentleduck/registry-ui-duckui": "0.1.13",
|
|
56
55
|
"@gentleduck/typescript-config": "0.1.0",
|
|
56
|
+
"@gentleduck/tsdown-config": "0.0.1",
|
|
57
57
|
"@gentleduck/vim": "0.1.12"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
@@ -67,7 +67,6 @@
|
|
|
67
67
|
"react-resizable-panels": "^3.0.6",
|
|
68
68
|
"@gentleduck/hooks": "0.1.8",
|
|
69
69
|
"@gentleduck/vim": "0.1.12",
|
|
70
|
-
"@gentleduck/registry-ui-duckui": "0.1.13",
|
|
71
70
|
"@gentleduck/libs": "0.1.11"
|
|
72
71
|
},
|
|
73
72
|
"peerDependenciesMeta": {
|
|
@@ -80,9 +79,6 @@
|
|
|
80
79
|
"@gentleduck/libs": {
|
|
81
80
|
"optional": true
|
|
82
81
|
},
|
|
83
|
-
"@gentleduck/registry-ui-duckui": {
|
|
84
|
-
"optional": true
|
|
85
|
-
},
|
|
86
82
|
"@gentleduck/vim": {
|
|
87
83
|
"optional": true
|
|
88
84
|
},
|
|
@@ -164,7 +160,7 @@
|
|
|
164
160
|
},
|
|
165
161
|
"type": "module",
|
|
166
162
|
"types": "./dist/index.d.ts",
|
|
167
|
-
"version": "0.0.
|
|
163
|
+
"version": "0.0.11",
|
|
168
164
|
"scripts": {
|
|
169
165
|
"build": "cp -r ../registers/registry-colors/registry-colors.ts ./src/lib/registry-colors-data.ts && tsdown && node ./scripts/patch-react-refresh.mjs && node ./scripts/copy-styles.mjs",
|
|
170
166
|
"dev": "vitest",
|
package/dist/callout-CFw8zUIz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Alert as n,AlertDescription as r,AlertTitle as i}from"@gentleduck/registry-ui-duckui/alert";function a({title:a,children:o,icon:s,...c}){return t(n,{...c,children:[s&&e(`span`,{className:`mr-4 text-2xl`,children:s}),a&&e(i,{children:a}),e(r,{children:o})]})}export{a as t};
|
|
2
|
-
//# sourceMappingURL=callout-CFw8zUIz.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"callout-CFw8zUIz.js","names":[],"sources":["../src/components/mdx/mdx-components/callout.tsx"],"sourcesContent":["import { Alert, AlertDescription, AlertTitle } from '@gentleduck/registry-ui-duckui/alert'\n\ninterface CalloutProps {\n icon?: string\n title?: string\n children?: React.ReactNode\n}\n\nexport function Callout({ title, children, icon, ...props }: CalloutProps) {\n return (\n <Alert {...props}>\n {icon && <span className=\"mr-4 text-2xl\">{icon}</span>}\n {title && <AlertTitle>{title}</AlertTitle>}\n <AlertDescription>{children}</AlertDescription>\n </Alert>\n )\n}\n"],"mappings":"qJAQA,SAAgB,EAAQ,CAAE,QAAO,WAAU,OAAM,GAAG,GAAuB,CACzE,OACE,EAAC,EAAA,CAAM,GAAI,YACR,GAAQ,EAAC,OAAA,CAAK,UAAU,yBAAiB,GAAY,CACrD,GAAS,EAAC,EAAA,CAAA,SAAY,EAAA,CAAmB,CAC1C,EAAC,EAAA,CAAkB,WAAA,CAA4B,GACzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"charts-hfCEZEQp.d.ts","names":[],"sources":["../src/lib/charts.ts"],"sourcesContent":[],"mappings":";iBAAgB,yBAAA,SAAkC,yBAAyB;AAA3D,iBAoBA,2BAAA,CApB2D,IAAA,EAAA,MAAM,CAAA,EAAA,MAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-block-CR2loi-i.d.ts","names":[],"sources":["../src/components/mdx/mdx-components/code/code-block.tsx"],"sourcesContent":[],"mappings":";;;UAEU,SAAA,SAAkB,KAAA,CAAM,eAAe;;;AAAvC,iBAIM,SAAA,CAJiC;EAAA,SAArB;EAAA,aAAM;EAAA,GAAc;AAAA,CAAA,EAIkB,SAJlB,CAAA,EAI2B,mBAAA,CAAA,GAAA,CAAA,OAJ3B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./icons-bFf026bR.js";import{t}from"./use-lift-mode-Dya2HcpU.js";import{cn as n}from"@gentleduck/libs/cn";import r from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{ResizableHandle as o,ResizablePanel as s,ResizablePanelGroup as c}from"@gentleduck/registry-ui-duckui/resizable";import{Tabs as l,TabsContent as u}from"@gentleduck/registry-ui-duckui/tabs";function d({block:d}){let{isLiftMode:f}=t(d.name),[p,m]=r.useState(!0),h=r.useRef(null);return a(l,{className:`relative grid w-full scroll-m-20 gap-4`,defaultValue:`preview`,id:d.name,style:{"--container-height":d.container?.height},children:[i(u,{className:`relative after:absolute after:inset-0 after:right-3 after:z-0 after:rounded-lg after:bg-muted`,value:`preview`,children:a(c,{className:`relative z-10`,direction:`horizontal`,children:[a(s,{className:n(`relative rounded-lg border bg-background`,f?`border-border/50`:`border-border`),defaultSize:100,minSize:30,ref:h,children:[p?a(`div`,{className:`absolute inset-0 z-10 flex h-[--container-height] w-full items-center justify-center gap-2 bg-background text-muted-foreground text-sm`,children:[i(e.spinner,{className:`h-4 w-4 animate-spin`}),`Loading...`]}):null,i(`iframe`,{allowTransparency:!0,className:`chunk-mode relative z-20 w-full bg-background`,height:d.container?.height??450,onLoad:()=>{m(!1)},src:`/blocks/${d.name}`})]}),i(o,{className:n(`relative hidden w-3 bg-transparent p-0 after:absolute after:top-1/2 after:right-0 after:h-8 after:w-[6px] after:translate-x-[-1px] after:-translate-y-1/2 after:rounded-full after:bg-border after:transition-all after:hover:h-10 sm:block`,f&&`invisible`)}),i(s,{defaultSize:0,minSize:0})]})}),i(u,{value:`code`,children:i(`div`,{className:`w-full overflow-hidden rounded-md [&_pre]:my-0 [&_pre]:h-[--container-height] [&_pre]:overflow-auto [&_pre]:whitespace-break-spaces [&_pre]:p-6 [&_pre]:font-mono [&_pre]:text-sm [&_pre]:leading-relaxed`,dangerouslySetInnerHTML:{__html:d.highlightedCode},"data-rehype-pretty-code-fragment":!0})})]})}export{d as t};
|
|
2
|
-
//# sourceMappingURL=code-preview-cIvw8qyg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-preview-cIvw8qyg.js","names":[],"sources":["../src/components/mdx/mdx-components/code/code-preview.tsx"],"sourcesContent":["'use client'\n\nimport { Icons } from '@duck-docs/components/icons'\nimport { useLiftMode } from '@duck-docs/hooks/use-lift-mode'\nimport { cn } from '@gentleduck/libs/cn'\nimport { ResizableHandle, ResizablePanel, ResizablePanelGroup } from '@gentleduck/registry-ui-duckui/resizable'\nimport { Tabs, TabsContent } from '@gentleduck/registry-ui-duckui/tabs'\nimport React from 'react'\nimport type { ImperativePanelHandle } from 'react-resizable-panels'\n\ntype Block = {\n name: string\n container?: {\n height?: number\n }\n highlightedCode: string\n}\n\nexport function CodePreview({ block }: { block: Block & { hasLiftMode: boolean } }) {\n const { isLiftMode } = useLiftMode(block.name)\n const [isLoading, setIsLoading] = React.useState(true)\n const ref = React.useRef<ImperativePanelHandle>(null)\n\n return (\n <Tabs\n className=\"relative grid w-full scroll-m-20 gap-4\"\n defaultValue=\"preview\"\n id={block.name}\n style={\n {\n '--container-height': block.container?.height,\n } as React.CSSProperties\n }>\n <TabsContent\n className=\"relative after:absolute after:inset-0 after:right-3 after:z-0 after:rounded-lg after:bg-muted\"\n value=\"preview\">\n <ResizablePanelGroup className=\"relative z-10\" direction=\"horizontal\">\n <ResizablePanel\n className={cn(\n 'relative rounded-lg border bg-background',\n isLiftMode ? 'border-border/50' : 'border-border',\n )}\n defaultSize={100}\n minSize={30}\n ref={ref}>\n {isLoading ? (\n <div className=\"absolute inset-0 z-10 flex h-[--container-height] w-full items-center justify-center gap-2 bg-background text-muted-foreground text-sm\">\n <Icons.spinner className=\"h-4 w-4 animate-spin\" />\n Loading...\n </div>\n ) : null}\n <iframe\n allowTransparency\n className=\"chunk-mode relative z-20 w-full bg-background\"\n height={block.container?.height ?? 450}\n onLoad={() => {\n setIsLoading(false)\n }}\n src={`/blocks/${block.name}`}\n />\n </ResizablePanel>\n <ResizableHandle\n className={cn(\n 'relative hidden w-3 bg-transparent p-0 after:absolute after:top-1/2 after:right-0 after:h-8 after:w-[6px] after:translate-x-[-1px] after:-translate-y-1/2 after:rounded-full after:bg-border after:transition-all after:hover:h-10 sm:block',\n isLiftMode && 'invisible',\n )}\n />\n <ResizablePanel defaultSize={0} minSize={0} />\n </ResizablePanelGroup>\n </TabsContent>\n <TabsContent value=\"code\">\n <div\n className=\"w-full overflow-hidden rounded-md [&_pre]:my-0 [&_pre]:h-[--container-height] [&_pre]:overflow-auto [&_pre]:whitespace-break-spaces [&_pre]:p-6 [&_pre]:font-mono [&_pre]:text-sm [&_pre]:leading-relaxed\"\n dangerouslySetInnerHTML={{ __html: block.highlightedCode }}\n data-rehype-pretty-code-fragment\n />\n </TabsContent>\n </Tabs>\n )\n}\n"],"mappings":"uYAkBA,SAAgB,EAAY,CAAE,SAAsD,CAClF,GAAM,CAAE,cAAe,EAAY,EAAM,KAAK,CACxC,CAAC,EAAW,GAAgB,EAAM,SAAS,GAAK,CAChD,EAAM,EAAM,OAA8B,KAAK,CAErD,OACE,EAAC,EAAA,CACC,UAAU,yCACV,aAAa,UACb,GAAI,EAAM,KACV,MACE,CACE,qBAAsB,EAAM,WAAW,OACxC,WAEH,EAAC,EAAA,CACC,UAAU,gGACV,MAAM,mBACN,EAAC,EAAA,CAAoB,UAAU,gBAAgB,UAAU,uBACvD,EAAC,EAAA,CACC,UAAW,EACT,2CACA,EAAa,mBAAqB,gBACnC,CACD,YAAa,IACb,QAAS,GACJ,gBACJ,EACC,EAAC,MAAA,CAAI,UAAU,mJACb,EAAC,EAAM,QAAA,CAAQ,UAAU,uBAAA,CAAyB,CAAA,aAAA,EAE9C,CACJ,KACJ,EAAC,SAAA,CACC,kBAAA,GACA,UAAU,gDACV,OAAQ,EAAM,WAAW,QAAU,IACnC,WAAc,CACZ,EAAa,GAAM,EAErB,IAAK,WAAW,EAAM,QACtB,CAAA,EACa,CACjB,EAAC,EAAA,CACC,UAAW,EACT,8OACA,GAAc,YACf,CAAA,CACD,CACF,EAAC,EAAA,CAAe,YAAa,EAAG,QAAS,GAAK,GAC1B,EACV,CACd,EAAC,EAAA,CAAY,MAAM,gBACjB,EAAC,MAAA,CACC,UAAU,4MACV,wBAAyB,CAAE,OAAQ,EAAM,gBAAiB,CAC1D,mCAAA,IACA,EACU,CAAA,EACT"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./context-Bd4Sf8r8.js";import{cn as t}from"@gentleduck/libs/cn";import{Button as n}from"@gentleduck/registry-ui-duckui/button";import{Circle as r,Command as i,CornerDownLeft as a,FileIcon as o,Moon as s,Sun as c}from"lucide-react";import*as l from"react";import{Fragment as u,jsx as d,jsxs as f}from"react/jsx-runtime";import{Separator as p}from"@gentleduck/registry-ui-duckui/separator";import{useRouter as m}from"next/navigation";import{CommandDialog as h,CommandEmpty as g,CommandGroup as _,CommandInput as v,CommandItem as y,CommandList as b,CommandSeparator as x,CommandShortcut as S,useCommandRefsContext as C}from"@gentleduck/registry-ui-duckui/command";import{useKeyCommands as w}from"@gentleduck/vim/react";import{useTheme as T}from"next-themes";function E(){let a=m(),[p,C]=l.useState(!1),{setTheme:w}=T(),E=e(),O=l.useRef(null),k=[...E.sidebarNav.map(e=>({items:e.items?.map(e=>({action:()=>a.push(e.href),icon:d(r,{className:`mr-2 h-3 w-3`}),name:e.title})),title:e.title})),{items:[{action:()=>w(`light`),icon:d(c,{className:`mr-2 h-4 w-4`}),name:`Light`},{action:()=>w(`dark`),icon:d(s,{className:`mr-2 h-4 w-4`}),name:`Dark`},{action:()=>w(`system`),icon:d(o,{className:`mr-2 h-4 w-4`}),name:`System`}],title:`Theme`}];return f(u,{children:[f(n,{className:t(`relative h-8 w-full bg-muted/50 text-muted-foreground text-sm shadow-none md:w-40 lg:w-64 ltr:pr-2 rtl:pl-2 [&>div]:w-full [&>div]:justify-between`),onClick:()=>C(!0),size:`sm`,variant:`outline`,children:[d(`span`,{className:`hidden lg:inline-flex`,children:`Search documentation...`}),d(`span`,{className:`inline-flex lg:hidden`,children:`Search...`}),f(S,{className:`bg-secondary`,keys:`ctrl+k`,onKeysPressed:()=>{C(!p),window.event?.preventDefault()},children:[d(i,{className:`!size-3`}),d(`span`,{className:`text-md`,children:`K`})]})]}),f(h,{onOpenChange:C,open:p,children:[d(v,{autoFocus:!0,placeholder:`Search...`}),d(g,{children:`No results found.`}),d(b,{className:`h-[550px] max-h-full w-90 md:w-full`,children:k.map((e,t)=>f(l.Fragment,{children:[d(_,{heading:e.title,children:e.items?.map(e=>f(y,{id:e.name,onClick:()=>{C(!1),e.action(),O.current?.scrollTo(0,0),O.current?.scrollIntoView({behavior:`smooth`,block:`start`,inline:`start`})},children:[e.icon,d(`span`,{children:e.name})]},e.name))}),t!==k.length-1&&d(x,{})]},e.title))}),d(D,{})]})]})}function D(){let{selectedItem:r}=C(),o=e().sidebarNav.flatMap(e=>e.items??[]).find(e=>e.title===r?.innerText);return w({"ctrl+shift+c":{description:`Copy command`,execute:()=>navigator.clipboard.writeText(`pnpm dlx @gentleduck/cli add `+r?.innerText.toLowerCase().replace(/ /g,`-`)),name:`ctrl+shift+c`}}),d(`div`,{className:`hidden w-full items-center justify-between gap-4 border-t px-2 pt-2 lg:flex`,children:f(`div`,{className:`flex w-full items-center justify-between gap-4`,children:[r?.innerText&&f(n,{className:t(`px-2`),size:`sm`,variant:`outline`,children:[d(a,{}),d(p,{className:`m-0 h-4 p-0`,orientation:`vertical`}),r?.innerText]}),r?.innerText&&o?.title?f(n,{className:t(`px-2`),size:`sm`,variant:`outline`,children:[f(`div`,{className:`flex items-center gap-1`,children:[d(i,{className:`!size-3`}),d(`p`,{className:`text-md`,children:`C`})]}),d(p,{className:`m-0 h-4 p-0`,orientation:`vertical`}),f(`div`,{className:`flex items-center gap-1`,children:[d(`span`,{children:`pnpm dlx @gentleduck/cli add`}),d(`span`,{className:`text-blue-400`,children:o.title.toLowerCase()})]})]}):f(`p`,{className:`my-auto h-fit w-full whitespace-nowrap text-right text-muted-foreground text-sm`,children:[d(`span`,{className:`whitespace-nowrap font-medium text-sm`,children:`Command palette`}),` for the documentation content.`]})]})})}export{E as t};
|
|
2
|
-
//# sourceMappingURL=command-menu-BVebU1JI.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./copy-button-D50DXq56.js";import{a as t}from"./context-Bd4Sf8r8.js";import{t as n}from"./icons-bFf026bR.js";import{cn as r}from"@gentleduck/libs/cn";import{Button as i}from"@gentleduck/registry-ui-duckui/button";import{Crown as a}from"lucide-react";import*as o from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{Tabs as l,TabsContent as u,TabsList as d,TabsTrigger as f}from"@gentleduck/registry-ui-duckui/tabs";function p({name:i,children:a,className:p,extractClassname:g,extractedClassNames:_,align:v=`center`,description:y,hideCode:b=!1,showSettings:x=!1,...S}){let C=o.Children.toArray(a)[0],w=t(),T=o.useMemo(()=>{if(!w)return s(`p`,{className:`text-muted-foreground text-sm`,children:`Registry index is not configured for this docs app.`});let e=w[i]?.component;return e?s(e,{}):c(`p`,{className:`text-muted-foreground text-sm`,children:[`Component `,s(`code`,{className:`relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm`,children:i}),` `,`not found in registry.`]})},[i,w]),E=o.useMemo(()=>{if(C?.props[`data-rehype-pretty-code-fragment`]!==void 0){let e=o.Children.toArray(C.props.children);return e[1]?.props?.value||e[1]?.props?.__rawString__||null}},[C]);return s(`div`,{className:r(`group relative my-4 flex flex-col [&_div[data-slot="placeholder"]]:h-[512px]`,p),...S,children:c(l,{className:`relative mr-auto w-full`,defaultValue:`preview`,children:[s(`div`,{className:`flex items-center justify-between`,children:!b&&s(d,{className:`w-full justify-start overflow-x-auto rounded-none border-b bg-transparent p-0 [&_button]:shadow-none`,children:h.map((e,t)=>s(f,{className:`cursor-pointer rounded-none border-b-[2px] border-b-transparent px-12 py-2 [&[aria-selected='true']]:border-b-primary [&[aria-selected='true']]:shadow-none [&_input]:focus-visible:shadow-none [&_input]:focus-visible:ring-transparent [&_input]:focus-visible:ring-offset-0`,value:e.value,children:e.name},t))})}),c(u,{className:`relative min-w-2/5 rounded-md border`,value:`preview`,children:[c(`div`,{className:`absolute flex w-full items-center justify-between p-4`,children:[s(`span`,{className:`text-muted-foreground text-sm`}),s(`div`,{className:`flex items-center gap-2`,children:s(e,{value:E,variant:`outline`})})]}),s(`div`,{className:r(`preview flex h-[500px] w-full justify-center overflow-auto p-10`,{"items-center":v===`center`,"items-end":v===`end`,"items-start":v===`start`}),"duck-preview":``,children:s(o.Suspense,{fallback:c(`div`,{className:`flex w-full items-center justify-center text-muted-foreground text-sm`,children:[s(n.spinner,{className:`mr-2 h-4 w-4 animate-spin`}),`Loading...`]}),children:T})})]}),s(u,{className:`[&_[data-rehype-pretty-code-fragment]]:!m-0 relative mt-2 [&>div>div>button]:top-3 [&>div>div>button]:right-3 [&>div>div]:mb-0 [&>div]:rounded-lg [&>div]:border [&>div]:bg-muted/40 [&_pre]:h-[502px]`,value:`code`,children:C}),s(m,{})]})})}const m=()=>c(u,{className:`relative overflow-hidden`,value:`build`,children:[s(`div`,{className:`h-[500px] overflow-hidden rounded-lg`,children:s(`img`,{alt:`build`,className:`object-cover`,src:`/builder.png`})}),s(`div`,{className:`absolute inset-0 top-0 left-0 flex h-[500px] flex-col items-center justify-center gap-4 rounded-md bg-zinc-700/10 px-4 py-2 backdrop-blur-sm dark:bg-zinc-700/50`,children:s(`div`,{className:`flex items-center gap-4`,children:c(i,{className:`rounded-sm font-bold`,size:`sm`,children:[s(a,{}),s(`span`,{children:`Coming soon`})]})})})]}),h=[{name:`Preview`,value:`preview`},{name:`Code`,value:`code`}];export{p as n,h as r,m as t};
|
|
2
|
-
//# sourceMappingURL=component-preview-CL6guE-v.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./figcaption-block-DWZhs-6i.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{Separator as r}from"@gentleduck/registry-ui-duckui/separator";import{Tabs as i,TabsContent as a,TabsList as o,TabsTrigger as s}from"@gentleduck/registry-ui-duckui/tabs";function c({children:c,className:l,...u}){if(!c.length)return c;let d=String(c[0].props.children[0].props.__rawString__).split(`
|
|
2
|
-
`)[0]?.replace(`//`,``);return n(i,{className:`rounded-md border border-border bg-muted/40`,defaultValue:d,children:[t(o,{className:`w-[622px] justify-start overflow-x-auto bg-transparent px-2 py-2`,children:c.map((e,n)=>{let r=String(e.props.children[0].props.__rawString__).split(`
|
|
3
|
-
`)[0]?.replace(`//`,``);return t(s,{className:`aria-[selected='true']:bg-muted`,value:r,children:r},n)})}),t(r,{}),c.map((r,i)=>{let o=String(r.props.children[0].props.__rawString__).split(`
|
|
4
|
-
`)[0]?.replace(`//`,``);return n(a,{className:`relative m-0 bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 [&>div>div>button]:top-1 [&>div>div>button]:right-1 [&>div>div]:m-0`,value:o,children:[t(e,{children:o}),r]},i)})]})}export{c as t};
|
|
5
|
-
//# sourceMappingURL=component-source-BCBDjfEb.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { r as DocsEntry } from "./context.types-DgaGu8Ly.js";
|
|
2
|
-
import * as react_jsx_runtime43 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/mdx/mdx-components/components-list.d.ts
|
|
5
|
-
declare function ComponentsList({
|
|
6
|
-
components
|
|
7
|
-
}: {
|
|
8
|
-
components?: DocsEntry[];
|
|
9
|
-
}): react_jsx_runtime43.JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { ComponentsList as t };
|
|
12
|
-
//# sourceMappingURL=components-list-ZLlUD-Nr.d.ts.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./events-D55YvIRi.js";import{cn as t}from"@gentleduck/libs/cn";import{Button as n}from"@gentleduck/registry-ui-duckui/button";import{DropdownMenu as r,DropdownMenuContent as i,DropdownMenuItem as a,DropdownMenuTrigger as o}from"@gentleduck/registry-ui-duckui/dropdown-menu";import{CheckIcon as s,ClipboardIcon as c,Copy as l}from"lucide-react";import*as u from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";async function p(t,n){navigator.clipboard.writeText(t),n&&e(n)}function m({value:e,className:r,variant:i=`ghost`,event:a,...o}){let[c,f]=u.useState(!1);return u.useEffect(()=>{setTimeout(()=>{f(!1)},3e3)},[c]),d(n,{"aria-label":`Copy`,className:t(`[&_svg]:!size-3.5 z-50 size-7 rounded-sm shadow-none`,r),icon:d(c?s:l,{}),onClick:()=>{p(e,a?{name:a,properties:{code:e}}:void 0),f(!0)},size:`icon`,variant:i,...o})}function h({value:e,classNames:l,className:m,...h}){let[g,_]=u.useState(!1);u.useEffect(()=>{setTimeout(()=>{_(!1)},2e3)},[g]);let v=u.useCallback(e=>{p(e),_(!0)},[]);return f(r,{placement:`bottom-end`,children:[d(o,{asChild:!0,children:d(n,{className:t(`!size-6.5 relative z-50 [&_svg]:w-3.5`,m),icon:d(g?s:c,{}),size:`icon`,variant:`outline`,...h})}),f(i,{children:[d(a,{onClick:()=>v(e),children:`Component`}),d(a,{onClick:()=>v(l),children:`Classname`})]})]})}export{h as n,p as r,m as t};
|
|
2
|
-
//# sourceMappingURL=copy-button-D50DXq56.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { t as Event } from "./events-BKAEw9TQ.js";
|
|
2
|
-
import * as _gentleduck_registry_ui_duckui_button0 from "@gentleduck/registry-ui-duckui/button";
|
|
3
|
-
import * as _gentleduck_registry_ui_duckui_dropdown_menu0 from "@gentleduck/registry-ui-duckui/dropdown-menu";
|
|
4
|
-
import * as React$1 from "react";
|
|
5
|
-
|
|
6
|
-
//#region src/components/copy-button/copy-button.types.d.ts
|
|
7
|
-
type DropdownMenuTriggerProps = React$1.ComponentPropsWithoutRef<typeof _gentleduck_registry_ui_duckui_dropdown_menu0.DropdownMenuTrigger>;
|
|
8
|
-
type CopyWithClassNamesProps = DropdownMenuTriggerProps & {
|
|
9
|
-
value: string;
|
|
10
|
-
classNames: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
};
|
|
13
|
-
type CopyButtonProps = _gentleduck_registry_ui_duckui_button0.ButtonProps & {
|
|
14
|
-
value: string;
|
|
15
|
-
event?: Event['name'];
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { CopyWithClassNamesProps as n, DropdownMenuTriggerProps as r, CopyButtonProps as t };
|
|
19
|
-
//# sourceMappingURL=copy-button.types-D6D1XKDN.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"copy-button.types-D6D1XKDN.d.ts","names":[],"sources":["../src/components/copy-button/copy-button.types.ts"],"sourcesContent":[],"mappings":";;;;;;KAGY,wBAAA,GAA2B,OAAA,CAAM,gCAAT,6CAAA,CAC4B;KAGpD,uBAAA,GAA0B;;;EAJ1B,SAAA,CAAA,EAAA,MAAA;AAIZ,CAAA;AAMY,KAAA,eAAA,GAAe,sCAAA,CAAmD,WAAA,GAE/D;;UAAL"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./context-Bd4Sf8r8.js";import{cn as t}from"@gentleduck/libs/cn";import{buttonVariants as n}from"@gentleduck/registry-ui-duckui/button";import{ArrowLeft as r,ArrowRight as i,ChevronLeft as a,ChevronRight as o}from"lucide-react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import l from"next/link";function u({doc:r}){let i=f(r,e());return i?c(`div`,{className:`flex flex-row items-center justify-between`,children:[i?.prev?.href&&c(l,{className:t(n({className:`flex items-center`,variant:`outline`})),href:i.prev.href,children:[s(a,{className:`mr-2 size-4`}),s(`span`,{children:i.prev.title})]}),i?.next?.href&&c(l,{className:t(n({className:`flex items-center`,variant:`outline`})),href:i.next.href,children:[s(`span`,{children:i.next.title}),s(o,{className:`ml-2 size-4`})]})]}):null}function d({doc:a}){let o=f(a,e());return o?c(`div`,{className:`flex flex-row items-center justify-between`,children:[o?.prev?.href&&s(l,{className:t(n({className:`[&>svg]:!size-4 size-8 items-center`,size:`sm`,variant:`secondary`})),href:o.prev.href,children:s(r,{})}),o?.next?.href&&s(l,{className:t(n({className:`[&>svg]:!size-4 ml-2 size-8 items-center`,size:`sm`,variant:`secondary`})),href:o.next.href,children:s(i,{})})]}):null}function f(e,t){let n=[null,...p((e.title.startsWith(`/docs/charts`)?t.chartsNav:t.sidebarNav)??[]),null],r=n.findIndex(t=>t?.href?.includes(e.slug??e.title)),i=r===0?null:n[r-1];return{next:r===n.length-1?null:n[r+1],prev:i}}function p(e){return e.reduce((e,t)=>e.concat(t.items?.length?p(t.items):t),[]).filter(e=>!e?.disabled)}export{f as i,d as n,p as r,u as t};
|
|
2
|
-
//# sourceMappingURL=docs-pager-2p2cKZcg.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { o as TocEntry } from "./context.types-DgaGu8Ly.js";
|
|
2
|
-
import * as react_jsx_runtime36 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/docs/docs-toc.d.ts
|
|
5
|
-
interface TocProps {
|
|
6
|
-
toc: TocEntry[];
|
|
7
|
-
}
|
|
8
|
-
declare function DashboardTableOfContents({
|
|
9
|
-
toc
|
|
10
|
-
}: TocProps): react_jsx_runtime36.JSX.Element | null;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { DashboardTableOfContents as t };
|
|
13
|
-
//# sourceMappingURL=docs-toc-B4_Znnrj.d.ts.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./icons-bFf026bR.js";import{cn as t}from"@gentleduck/libs/cn";import{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";import{Separator as a}from"@gentleduck/registry-ui-duckui/separator";function o({children:o,className:s,...c}){let l=e(o?.toString().split(`.`).pop()??`terminal`);return i(n,{children:[r(`figcaption`,{...c,className:`rounded-lg p-2`,children:i(`div`,{className:t(s,`flex items-center gap-2 font-mono text-muted-foreground text-sm ltr:pl-1.5 rtl:pr-1.5 [&_svg]:h-4 [&_svg]:w-4`),children:[l,o]})}),r(a,{})]})}export{o as t};
|
|
2
|
-
//# sourceMappingURL=figcaption-block-DWZhs-6i.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./context-Bd4Sf8r8.js";import{t}from"./mdx-cqn1ggXI.js";import{jsx as n}from"react/jsx-runtime";function r({...r}){let i=(e()??[]).find(e=>e.slug===`/docs/installation/${r.data}`);return i?.content?n(t,{code:i.content}):null}export{r as t};
|
|
2
|
-
//# sourceMappingURL=framework-docs-ZYLz3BBy.js.map
|
package/dist/index-2mWOLEIP.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime67 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
//#region src/components/layouts/tailwind-indicator/index.d.ts
|
|
4
|
-
declare function TailwindIndicator(): react_jsx_runtime67.JSX.Element | null;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { TailwindIndicator as t };
|
|
7
|
-
//# sourceMappingURL=index-2mWOLEIP.d.ts.map
|
package/dist/index-BZ1Usw1L.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime59 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
//#region src/components/layouts/site-footer/index.d.ts
|
|
4
|
-
declare function SiteFooter(): react_jsx_runtime59.JSX.Element;
|
|
5
|
-
declare function FooterButtons(): react_jsx_runtime59.JSX.Element;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { SiteFooter as n, FooterButtons as t };
|
|
8
|
-
//# sourceMappingURL=index-BZ1Usw1L.d.ts.map
|
package/dist/index-Bunxo_8h.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime65 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
//#region src/components/layouts/site-header/index.d.ts
|
|
4
|
-
declare function SiteHeader(): react_jsx_runtime65.JSX.Element;
|
|
5
|
-
declare function FontStyleButton(): react_jsx_runtime65.JSX.Element;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { SiteHeader as n, FontStyleButton as t };
|
|
8
|
-
//# sourceMappingURL=index-Bunxo_8h.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main-nav-SathVgSN.d.ts","names":[],"sources":["../src/components/main-nav.tsx"],"sourcesContent":[],"mappings":";;;iBAQgB,OAAA,CAAA,GAAO,mBAAA,CAAA,GAAA,CAAA"}
|
package/dist/mdx-cqn1ggXI.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./callout-CFw8zUIz.js";import{t}from"./code-block-DqFdGhI-.js";import{t as n}from"./code-block-wrapper-CCAw9mie.js";import{n as r}from"./component-preview-CL6guE-v.js";import{t as i}from"./figcaption-block-DWZhs-6i.js";import{t as a}from"./component-source-BCBDjfEb.js";import{t as o}from"./pre-block-BThyCz1h.js";import{t as s}from"./components-list-BCV3yN6H.js";import{i as c,n as l,r as u,t as d}from"./table-Sc60jiil.js";import{i as f,n as p,r as m,t as h}from"./tabs-KvYm5au9.js";import{a as g,c as _,d as v,i as y,l as b,n as x,o as S,r as C,s as w,t as T,u as E}from"./typepography-Btk-lJ3O.js";import{cn as D}from"@gentleduck/libs/cn";import{Button as O}from"@gentleduck/registry-ui-duckui/button";import k,{jsx as A}from"react/jsx-runtime";import j from"next/image";import{Accordion as M,AccordionContent as N,AccordionItem as P,AccordionTrigger as F}from"@gentleduck/registry-ui-duckui/accordion";import{Alert as I,AlertDescription as L,AlertTitle as R}from"@gentleduck/registry-ui-duckui/alert";import{AspectRatio as z}from"@gentleduck/registry-ui-duckui/aspect-ratio";import{Badge as B}from"@gentleduck/registry-ui-duckui/badge";import{Kbd as V}from"@gentleduck/registry-ui-duckui/kbd";const H=e=>Function(e)({...k}).default,U={Accordion:M,AccordionContent:N,AccordionItem:P,AccordionTrigger:F,Alert:I,AlertDescription:L,AlertTitle:R,AspectRatio:z,a:T,Badge:B,Button:O,blockquote:({className:e,...t})=>A(`blockquote`,{className:D(`mt-6 border-l-2 pl-6 italic`,e),...t}),Callout:e,CodeBlockWrapper:n,ComponentPreview:r,ComponentSource:a,ComponentsList:s,code:t,figcaption:i,h1:x,h2:C,h3:y,h4:g,h5:S,h6:w,hr:_,Image:j,img:({className:e,alt:t,...n})=>A(`img`,{alt:t,className:D(`rounded-md`,e),...n}),Kbd:V,Link:b,LinkedCard:E,li:({className:e,...t})=>A(`li`,{className:D(`mt-2`,e),...t}),ol:({className:e,...t})=>A(`ol`,{className:D(`my-6 ml-6 list-decimal`,e),...t}),p:v,pre:o,Step:({className:e,...t})=>A(`h3`,{className:D(`step scroll-m-20 font-heading font-semibold text-xl tracking-tight`,e),...t}),Steps:({...e})=>A(`div`,{className:`[&>h3]:step steps mb-12 ml-4 border-l pl-8 [counter-reset:step]`,...e}),Tabs:h,TabsContent:p,TabsList:m,TabsTrigger:f,table:d,td:l,th:u,tr:c,ul:({className:e,...t})=>A(`ul`,{className:D(`my-6 ml-6 list-disc`,e),...t})};function W({code:e}){return A(`div`,{className:`mdx`,children:A(H(e),{components:U})})}export{W as t};
|
|
2
|
-
//# sourceMappingURL=mdx-cqn1ggXI.js.map
|
package/dist/mdx-cqn1ggXI.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mdx-cqn1ggXI.js","names":[],"sources":["../src/components/mdx/mdx.tsx"],"sourcesContent":["'use client'\n\nimport { cn } from '@gentleduck/libs/cn'\nimport { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@gentleduck/registry-ui-duckui/accordion'\nimport { Alert, AlertDescription, AlertTitle } from '@gentleduck/registry-ui-duckui/alert'\nimport { AspectRatio } from '@gentleduck/registry-ui-duckui/aspect-ratio'\nimport { Badge } from '@gentleduck/registry-ui-duckui/badge'\nimport { Button } from '@gentleduck/registry-ui-duckui/button'\nimport { Kbd } from '@gentleduck/registry-ui-duckui/kbd'\nimport Image from 'next/image'\nimport type * as React from 'react'\nimport runtime from 'react/jsx-runtime'\nimport { Callout } from './mdx-components/callout'\nimport { CodeBlock, CodeBlockWrapper, ComponentPreview, ComponentSource, PreBlock } from './mdx-components/code'\nimport { FigcaptionBlock } from './mdx-components/code/figcaption-block'\nimport { ComponentsList } from './mdx-components/components-list'\nimport { Table, TableCell, TableHeader, TableRow } from './mdx-components/table'\nimport { Tab, TabContent, TabList, TabTrigger } from './mdx-components/tabs'\nimport { A, H1, H2, H3, H4, H5, H6, Hr, LinkBlock, LinkedCard, P } from './mdx-components/typepography'\n\nconst useMDXComponent = (code: string) => {\n const fn = new Function(code)\n return fn({ ...runtime }).default\n}\n\nconst components = {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n Alert,\n AlertDescription,\n AlertTitle,\n AspectRatio,\n a: A,\n Badge,\n Button,\n blockquote: ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => (\n <blockquote className={cn('mt-6 border-l-2 pl-6 italic', className)} {...props} />\n ),\n Callout,\n CodeBlockWrapper,\n ComponentPreview,\n ComponentSource,\n ComponentsList,\n code: CodeBlock,\n figcaption: FigcaptionBlock,\n h1: H1,\n h2: H2,\n h3: H3,\n h4: H4,\n h5: H5,\n h6: H6,\n hr: Hr,\n // span: SpanBlock,\n Image,\n img: ({ className, alt, ...props }: React.ImgHTMLAttributes<HTMLImageElement>) => (\n <img alt={alt} className={cn('rounded-md', className)} {...props} />\n ),\n Kbd: Kbd,\n Link: LinkBlock,\n LinkedCard,\n li: ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => (\n <li className={cn('mt-2', className)} {...props} />\n ),\n ol: ({ className, ...props }: React.HTMLAttributes<HTMLOListElement>) => (\n <ol className={cn('my-6 ml-6 list-decimal', className)} {...props} />\n ),\n p: P,\n pre: PreBlock,\n Step: ({ className, ...props }: React.ComponentProps<'h3'>) => (\n <h3 className={cn('step scroll-m-20 font-heading font-semibold text-xl tracking-tight', className)} {...props} />\n ),\n Steps: ({ ...props }) => (\n <div className=\"[&>h3]:step steps mb-12 ml-4 border-l pl-8 [counter-reset:step]\" {...props} />\n ),\n Tabs: Tab,\n TabsContent: TabContent,\n TabsList: TabList,\n TabsTrigger: TabTrigger,\n table: Table,\n td: TableCell,\n th: TableHeader,\n tr: TableRow,\n ul: ({ className, ...props }: React.HTMLAttributes<HTMLUListElement>) => (\n <ul className={cn('my-6 ml-6 list-disc', className)} {...props} />\n ),\n // FrameworkDocs,\n}\n\ninterface MdxProps {\n code: string\n}\n\nexport function Mdx({ code }: MdxProps) {\n const Component = useMDXComponent(code)\n\n return (\n <div className=\"mdx\">\n <Component components={components} />\n </div>\n )\n}\n"],"mappings":"isCAoBA,MAAM,EAAmB,GACR,SAAS,EAAK,CACnB,CAAE,GAAG,EAAS,CAAC,CAAC,QAGtB,EAAa,CACjB,YACA,mBACA,gBACA,mBACA,QACA,mBACA,aACA,cACA,EAAG,EACH,QACA,SACA,YAAa,CAAE,YAAW,GAAG,KAC3B,EAAC,aAAA,CAAW,UAAW,EAAG,8BAA+B,EAAU,CAAE,GAAI,GAAS,CAEpF,UACA,mBACA,mBACA,kBACA,iBACA,KAAM,EACN,WAAY,EACZ,GAAI,EACJ,GAAI,EACJ,GAAI,EACJ,GAAI,EACJ,GAAI,EACJ,GAAI,EACJ,GAAI,EAEJ,QACA,KAAM,CAAE,YAAW,MAAK,GAAG,KACzB,EAAC,MAAA,CAAS,MAAK,UAAW,EAAG,aAAc,EAAU,CAAE,GAAI,GAAS,CAEjE,MACL,KAAM,EACN,aACA,IAAK,CAAE,YAAW,GAAG,KACnB,EAAC,KAAA,CAAG,UAAW,EAAG,OAAQ,EAAU,CAAE,GAAI,GAAS,CAErD,IAAK,CAAE,YAAW,GAAG,KACnB,EAAC,KAAA,CAAG,UAAW,EAAG,yBAA0B,EAAU,CAAE,GAAI,GAAS,CAEvE,EAAG,EACH,IAAK,EACL,MAAO,CAAE,YAAW,GAAG,KACrB,EAAC,KAAA,CAAG,UAAW,EAAG,qEAAsE,EAAU,CAAE,GAAI,GAAS,CAEnH,OAAQ,CAAE,GAAG,KACX,EAAC,MAAA,CAAI,UAAU,kEAAkE,GAAI,GAAS,CAEhG,KAAM,EACN,YAAa,EACb,SAAU,EACV,YAAa,EACb,MAAO,EACP,GAAI,EACJ,GAAI,EACJ,GAAI,EACJ,IAAK,CAAE,YAAW,GAAG,KACnB,EAAC,KAAA,CAAG,UAAW,EAAG,sBAAuB,EAAU,CAAE,GAAI,GAAS,CAGrE,CAMD,SAAgB,EAAI,CAAE,QAAkB,CAGtC,OACE,EAAC,MAAA,CAAI,UAAU,eACb,EAJc,EAAgB,EAAK,CAAA,CAIZ,aAAA,CAAc,EACjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-plugin-Ag61IUUu.d.ts","names":[],"sources":["../src/velite/plugins/metadata-plugin.ts"],"sourcesContent":[],"mappings":";;;iBAGgB,mBAAA,CAAA,UACA,cAAY"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./context-Bd4Sf8r8.js";import{cn as t}from"@gentleduck/libs/cn";import{Button as n}from"@gentleduck/registry-ui-duckui/button";import{PanelsTopLeft as r}from"lucide-react";import*as i from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";import s from"next/link";import{useRouter as c}from"next/navigation";import{Drawer as l,DrawerContent as u,DrawerTrigger as d}from"@gentleduck/registry-ui-duckui/drawer";import{ScrollArea as f}from"@gentleduck/registry-ui-duckui/scroll-area";function p(){let[t,s]=i.useState(!1),c=e();return o(l,{onOpenChange:s,open:t,children:[a(d,{asChild:!0,children:a(n,{className:`mr-2 px-0 text-base hover:bg-transparent focus-visible:bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0 md:hidden`,icon:a(r,{}),size:`icon`,variant:`ghost`})}),a(u,{className:`pr-0 pb-4`,children:a(f,{children:o(`div`,{className:`hide-scroll my-4 h-[calc(100vh-8rem)] pb-10 pl-6`,children:[a(`div`,{className:`flex flex-col space-y-3`,children:c.mainNav?.map(e=>e.href&&a(m,{href:e.href,onOpenChange:s,children:e.title},e.href))}),a(`div`,{className:`flex flex-col space-y-2`,children:c.sidebarNav.map((e,t)=>o(`div`,{className:`flex flex-col space-y-3 pt-6`,children:[a(`h4`,{className:`font-medium`,children:e.title}),e?.items?.length&&e.items.map(e=>a(i.Fragment,{children:!e.disabled&&(e.href?o(m,{className:`text-muted-foreground`,href:e.href,onOpenChange:s,children:[e.title,e.label&&a(`span`,{className:`ml-2 rounded-md bg-primary px-1.5 py-0.5 text-accent text-xs leading-none no-underline group-hover:no-underline`,children:e.label})]}):e.title)},e.href))]},t))})]})})})]})}function m({href:e,onOpenChange:n,className:r,children:i,...o}){let l=c();return a(s,{className:t(r),href:e,onClick:()=>{l.push(e.toString()),n?.(!1)},...o,children:i})}export{p as t};
|
|
2
|
-
//# sourceMappingURL=mobile-nav-DRQtHK-O.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-nav-hEfoD2ld.d.ts","names":[],"sources":["../src/components/mobile-nav.tsx"],"sourcesContent":[],"mappings":";;;iBAYgB,SAAA,CAAA,GAAS,mBAAA,CAAA,GAAA,CAAA"}
|