@gentleduck/docs 0.0.13 → 0.0.16
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/alert-DXO4N8gL.js +2 -0
- package/dist/alert-DXO4N8gL.js.map +1 -0
- package/dist/arrow-CU5T6t_D-BA13FgoC.js +2 -0
- package/dist/arrow-CU5T6t_D-BA13FgoC.js.map +1 -0
- package/dist/badge-BaSJ_om8.js +2 -0
- package/dist/badge-BaSJ_om8.js.map +1 -0
- package/dist/button-BPQ9zanb.js +2 -0
- package/dist/button-BPQ9zanb.js.map +1 -0
- package/dist/callout-2UaufBMG.d.ts +24 -0
- package/dist/callout-2UaufBMG.d.ts.map +1 -0
- package/dist/callout-DkKMc7na.js +2 -0
- package/dist/callout-DkKMc7na.js.map +1 -0
- package/dist/{charts-CvYC8d1e.js → charts-B7Xy2hnG.js} +1 -1
- package/dist/{charts-CvYC8d1e.js.map → charts-B7Xy2hnG.js.map} +1 -1
- package/dist/{charts-Cyick3Tp.d.ts → charts-D4Uj_gtE.d.ts} +1 -1
- package/dist/{charts-Cyick3Tp.d.ts.map → charts-D4Uj_gtE.d.ts.map} +1 -1
- package/dist/client.d.ts +53 -54
- package/dist/client.js +1 -1
- package/dist/{code-block-BNW0BxR6.d.ts → code-block-DAy3JZ6j.d.ts} +3 -3
- package/dist/{code-block-BNW0BxR6.d.ts.map → code-block-DAy3JZ6j.d.ts.map} +1 -1
- package/dist/{code-block-uesBcZgM.js → code-block-DzuzMGMr.js} +1 -1
- package/dist/{code-block-uesBcZgM.js.map → code-block-DzuzMGMr.js.map} +1 -1
- package/dist/{code-block-wrapper-XLG-BrIs.js → code-block-wrapper-BNMwGoo7.js} +1 -1
- package/dist/{code-block-wrapper-XLG-BrIs.js.map → code-block-wrapper-BNMwGoo7.js.map} +1 -1
- package/dist/{code-block-wrapper-B0GrI7hb.d.ts → code-block-wrapper-Uomy0XJY.d.ts} +3 -3
- package/dist/{code-block-wrapper-B0GrI7hb.d.ts.map → code-block-wrapper-Uomy0XJY.d.ts.map} +1 -1
- package/dist/code-preview-CosZjiht.js +2 -0
- package/dist/code-preview-CosZjiht.js.map +1 -0
- package/dist/{code-preview-D5Og4Jk3.d.ts → code-preview-DMjl8mgw.d.ts} +3 -3
- package/dist/{code-preview-D5Og4Jk3.d.ts.map → code-preview-DMjl8mgw.d.ts.map} +1 -1
- package/dist/{colors-BDTM1-gZ.d.ts → colors-Cx-Rmxum.d.ts} +1 -1
- package/dist/{colors-BDTM1-gZ.d.ts.map → colors-Cx-Rmxum.d.ts.map} +1 -1
- package/dist/{colors-BUDdXvJ2.js → colors-IvpyMpg7.js} +2 -2
- package/dist/{colors-BUDdXvJ2.js.map → colors-IvpyMpg7.js.map} +1 -1
- package/dist/command-menu-BY4dKRHx.js +2 -0
- package/dist/command-menu-BY4dKRHx.js.map +1 -0
- package/dist/command-menu-LHgyNFdE.d.ts +7 -0
- package/dist/command-menu-LHgyNFdE.d.ts.map +1 -0
- package/dist/{component-preview-D2UaIsBZ.d.ts → component-preview-BHW7X6pM.d.ts} +4 -4
- package/dist/component-preview-BHW7X6pM.d.ts.map +1 -0
- package/dist/component-preview-g-CoGwuu.js +2 -0
- package/dist/component-preview-g-CoGwuu.js.map +1 -0
- package/dist/component-source-BhZijwev.js +3 -0
- package/dist/component-source-BhZijwev.js.map +1 -0
- package/dist/component-source-C4Ul_ToZ.d.ts +16 -0
- package/dist/component-source-C4Ul_ToZ.d.ts.map +1 -0
- package/dist/components/copy-button.d.ts +4 -0
- package/dist/components/copy-button.js +1 -0
- 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 +45 -46
- package/dist/components/index.js +1 -1
- package/dist/components/layouts/command-menu.d.ts +2 -0
- package/dist/components/layouts/command-menu.js +1 -0
- package/dist/components/layouts/{site-header/header-shell.d.ts → header-shell.d.ts} +1 -1
- package/dist/components/layouts/header-shell.js +1 -0
- package/dist/components/layouts/index.d.ts +6 -7
- package/dist/components/layouts/index.js +1 -1
- package/dist/components/layouts/site-footer.d.ts +2 -0
- package/dist/components/layouts/site-footer.js +1 -0
- package/dist/components/layouts/site-header.d.ts +3 -0
- package/dist/components/layouts/site-header.js +1 -0
- package/dist/components/layouts/tailwind-indicator.d.ts +2 -0
- package/dist/components/layouts/tailwind-indicator.js +1 -0
- package/dist/components/main-nav.d.ts +1 -1
- package/dist/components/main-nav.js +1 -1
- package/dist/components/mdx/mdx-component-registry.types.d.ts +8 -0
- package/dist/components/mdx/mdx-component-registry.types.d.ts.map +1 -0
- 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 +15 -12
- package/dist/components/mdx/mdx-components/code/index.js +1 -1
- package/dist/components/mdx/mdx-components/code/mermaid-block.d.ts +1 -1
- package/dist/components/mdx/mdx-components/code/mermaid-block.js +1 -1
- package/dist/components/mdx/mdx-components/code/pre-block/index.d.ts +7 -0
- package/dist/components/mdx/mdx-components/code/pre-block/index.js +1 -0
- package/dist/components/mdx/mdx-components/code/pre-block/pre-block.d.ts +6 -0
- package/dist/components/mdx/mdx-components/code/pre-block/pre-block.js +1 -0
- package/dist/components/mdx/mdx-components/code/pre-block/shell-command.d.ts +14 -0
- package/dist/components/mdx/mdx-components/code/pre-block/shell-command.d.ts.map +1 -0
- package/dist/components/mdx/mdx-components/code/pre-block/shell-command.js +1 -0
- package/dist/components/mdx/mdx-components/code/pre-block/types.d.ts +5 -0
- package/dist/components/mdx/mdx-components/code/span-block.d.ts +2 -2
- package/dist/components/mdx/mdx-components/code/span-block.d.ts.map +1 -1
- 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/index.d.ts +24 -21
- 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-components/typography.d.ts +3 -0
- package/dist/components/mdx/mdx-components/typography.js +1 -0
- package/dist/components/mdx/mdx-components-base.d.ts +119 -0
- package/dist/components/mdx/mdx-components-base.d.ts.map +1 -0
- package/dist/components/mdx/mdx-components-base.js +1 -0
- package/dist/components/mdx/mdx-components-registry.d.ts +171 -0
- package/dist/components/mdx/mdx-components-registry.d.ts.map +1 -0
- package/dist/components/mdx/mdx-components-registry.js +1 -0
- package/dist/components/mdx/mdx-components-ui.d.ts +50 -0
- package/dist/components/mdx/mdx-components-ui.d.ts.map +1 -0
- package/dist/components/mdx/mdx-components-ui.js +1 -0
- package/dist/components/mdx/mdx-icons.d.ts +9 -9
- package/dist/components/mdx/mdx-icons.d.ts.map +1 -1
- package/dist/components/mdx/mdx-icons.js +1 -1
- package/dist/components/mdx/mdx-runtime.d.ts +11 -0
- package/dist/components/mdx/mdx-runtime.d.ts.map +1 -0
- package/dist/components/mdx/mdx-runtime.js +1 -0
- 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/style-switcher.d.ts +2 -0
- package/dist/components/style-switcher.js +1 -0
- package/dist/components-list-C67E8feA.d.ts +12 -0
- package/dist/{components-list-VYl4HAYt.d.ts.map → components-list-C67E8feA.d.ts.map} +1 -1
- package/dist/{components-list-DiOUxZd_.js → components-list-Cg9ggVyv.js} +2 -2
- package/dist/{components-list-DiOUxZd_.js.map → components-list-Cg9ggVyv.js.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-C656KJNk.d.ts → context-Boqhj3tq.d.ts} +4 -4
- package/dist/{context-C656KJNk.d.ts.map → context-Boqhj3tq.d.ts.map} +1 -1
- package/dist/{context-CibrcgaK.js → context-Bu-bPlyW.js} +1 -1
- package/dist/{context-CibrcgaK.js.map → context-Bu-bPlyW.js.map} +1 -1
- package/dist/{context.types-KUK2rNdz.d.ts → context.types-pTQ85uw2.d.ts} +6 -2
- package/dist/context.types-pTQ85uw2.d.ts.map +1 -0
- package/dist/copy-button-BKx55olo.d.ts +20 -0
- package/dist/copy-button-BKx55olo.d.ts.map +1 -0
- package/dist/copy-button-Ccbj3Omt.js +2 -0
- package/dist/copy-button-Ccbj3Omt.js.map +1 -0
- package/dist/create-collection-S3CvffX1-DA20ZU15.js +2 -0
- package/dist/create-collection-S3CvffX1-DA20ZU15.js.map +1 -0
- package/dist/dialog-68QLl2rI.js +4 -0
- package/dist/dialog-68QLl2rI.js.map +1 -0
- package/dist/direction-B-anGbxM-BdqxtlGV.js +2 -0
- package/dist/direction-B-anGbxM-BdqxtlGV.js.map +1 -0
- package/dist/{dist-DfVBUGvk.js → dist-BEBzXlAF.js} +1 -1
- package/dist/{dist-DfVBUGvk.js.map → dist-BEBzXlAF.js.map} +1 -1
- package/dist/{docs-copy-page-BEtbT7qX.d.ts → docs-copy-page-BZuaAwiB.d.ts} +3 -3
- package/dist/docs-copy-page-BZuaAwiB.d.ts.map +1 -0
- package/dist/docs-copy-page-QXgUbioW.js +2 -0
- package/dist/docs-copy-page-QXgUbioW.js.map +1 -0
- package/dist/{docs-pager-BFx4yEm-.d.ts → docs-pager-D2ekv5NL.d.ts} +6 -6
- package/dist/{docs-pager-BFx4yEm-.d.ts.map → docs-pager-D2ekv5NL.d.ts.map} +1 -1
- package/dist/docs-pager-mprD1O3r.js +2 -0
- package/dist/docs-pager-mprD1O3r.js.map +1 -0
- package/dist/docs-sidebar-C0yQ6ZWj.d.ts +43 -0
- package/dist/docs-sidebar-C0yQ6ZWj.d.ts.map +1 -0
- package/dist/docs-sidebar-DY2ybOuM.js +2 -0
- package/dist/docs-sidebar-DY2ybOuM.js.map +1 -0
- package/dist/docs-toc-Bjmkbd6l.js +2 -0
- package/dist/docs-toc-Bjmkbd6l.js.map +1 -0
- package/dist/docs-toc-D-hn1gA2.d.ts +13 -0
- package/dist/docs-toc-D-hn1gA2.d.ts.map +1 -0
- package/dist/drawer-kwSiurIF.js +8 -0
- package/dist/drawer-kwSiurIF.js.map +1 -0
- package/dist/{events-CFVHB4m8.d.ts → events-CQ5HMYtp.d.ts} +1 -1
- package/dist/{events-CFVHB4m8.d.ts.map → events-CQ5HMYtp.d.ts.map} +1 -1
- package/dist/{events-DHlTM_S_.js → events-Tn9hD65k.js} +1 -1
- package/dist/{events-DHlTM_S_.js.map → events-Tn9hD65k.js.map} +1 -1
- package/dist/{figcaption-block-DfyvzBoz.d.ts → figcaption-block-Ccf4yBMy.d.ts} +3 -3
- package/dist/figcaption-block-Ccf4yBMy.d.ts.map +1 -0
- package/dist/figcaption-block-RFNt1OSv.js +2 -0
- package/dist/figcaption-block-RFNt1OSv.js.map +1 -0
- package/dist/hast-properties-C103K0PZ.js +2 -0
- package/dist/hast-properties-C103K0PZ.js.map +1 -0
- package/dist/{header-shell-DG6EtZSb.d.ts → header-shell-BYafp8lR.d.ts} +7 -7
- package/dist/header-shell-BYafp8lR.d.ts.map +1 -0
- package/dist/{header-shell-BnhiboVH.js → header-shell-PLI5ZAwI.js} +2 -2
- package/dist/header-shell-PLI5ZAwI.js.map +1 -0
- 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-B8awNAgi.d.ts +33 -0
- package/dist/icons-B8awNAgi.d.ts.map +1 -0
- package/dist/icons-dASZ3daW.js +2 -0
- package/dist/icons-dASZ3daW.js.map +1 -0
- package/dist/index-B94w2qPS.d.ts +17 -0
- package/dist/index-B94w2qPS.d.ts.map +1 -0
- package/dist/{index-C2_c9Mqo.d.ts → index-CdFFVx85.d.ts} +5 -13
- package/dist/index-CdFFVx85.d.ts.map +1 -0
- package/dist/index.d.ts +12 -11
- 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/events.js +1 -1
- package/dist/lib/index.d.ts +6 -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/list-navigation-LJg-1TD2-DsfZPowW.js +2 -0
- package/dist/list-navigation-LJg-1TD2-DsfZPowW.js.map +1 -0
- package/dist/main-nav-Ctrj2x2N.d.ts +7 -0
- package/dist/main-nav-Ctrj2x2N.d.ts.map +1 -0
- package/dist/mdx-B4bzoDDs.d.ts +12 -0
- package/dist/mdx-B4bzoDDs.d.ts.map +1 -0
- package/dist/mdx-CpGlQTio.js +2 -0
- package/dist/mdx-CpGlQTio.js.map +1 -0
- package/dist/mdx-components-base-ByG7D4Kc.js +2 -0
- package/dist/mdx-components-base-ByG7D4Kc.js.map +1 -0
- package/dist/mdx-components-registry-H3xD8Epe.js +2 -0
- package/dist/mdx-components-registry-H3xD8Epe.js.map +1 -0
- package/dist/mdx-components-ui-Cp73cCYd.js +2 -0
- package/dist/mdx-components-ui-Cp73cCYd.js.map +1 -0
- package/dist/{mdx-icons-BH4zLUw0.js → mdx-icons-Duo8BbOA.js} +1 -1
- package/dist/{mdx-icons-BH4zLUw0.js.map → mdx-icons-Duo8BbOA.js.map} +1 -1
- package/dist/mdx-runtime-BeG80qPS.js +2 -0
- package/dist/mdx-runtime-BeG80qPS.js.map +1 -0
- package/dist/mdx-runtime-DjYaVtmv.d.ts +23 -0
- package/dist/mdx-runtime-DjYaVtmv.d.ts.map +1 -0
- package/dist/mermaid-block-BfbjIpjJ.js +12 -0
- package/dist/mermaid-block-BfbjIpjJ.js.map +1 -0
- package/dist/{mermaid-block-DOJ68HFE.d.ts → mermaid-block-C3dgb4nS.d.ts} +3 -3
- package/dist/{mermaid-block-DOJ68HFE.d.ts.map → mermaid-block-C3dgb4nS.d.ts.map} +1 -1
- package/dist/metadata-plugin-BL84sQM5.d.ts +8 -0
- package/dist/metadata-plugin-BL84sQM5.d.ts.map +1 -0
- package/dist/metadata-plugin-DA7OesoA.js +2 -0
- package/dist/metadata-plugin-DA7OesoA.js.map +1 -0
- package/dist/metadata-utils-C_8CcvsG.js +2 -0
- package/dist/metadata-utils-C_8CcvsG.js.map +1 -0
- package/dist/mobile-nav-BwxnYQIS.d.ts +7 -0
- package/dist/mobile-nav-BwxnYQIS.d.ts.map +1 -0
- package/dist/mobile-nav-rBOCLILt.js +2 -0
- package/dist/mobile-nav-rBOCLILt.js.map +1 -0
- package/dist/mode-toggle-DTIF2o7F.d.ts +7 -0
- package/dist/mode-toggle-DTIF2o7F.d.ts.map +1 -0
- package/dist/mode-toggle-DhgB9p1I.js +2 -0
- package/dist/mode-toggle-DhgB9p1I.js.map +1 -0
- package/dist/mount-CoAqNcc6.js +2 -0
- package/dist/mount-CoAqNcc6.js.map +1 -0
- package/dist/{nav-B2NAfb21.d.ts → nav-B0m_RJfC.d.ts} +3 -1
- package/dist/nav-B0m_RJfC.d.ts.map +1 -0
- package/dist/{page-header-D8n3yXQF.js → page-header-TUu9iNwc.js} +1 -1
- package/dist/{page-header-D8n3yXQF.js.map → page-header-TUu9iNwc.js.map} +1 -1
- package/dist/{page-header-h4wXUkUH.d.ts → page-header-raOcAxSb.d.ts} +6 -6
- package/dist/{page-header-h4wXUkUH.d.ts.map → page-header-raOcAxSb.d.ts.map} +1 -1
- package/dist/portal-BNuCvTAR-DDrsnIMA.js +2 -0
- package/dist/portal-BNuCvTAR-DDrsnIMA.js.map +1 -0
- package/dist/pre-block-Bt_9UuCv.js +2 -0
- package/dist/pre-block-Bt_9UuCv.js.map +1 -0
- package/dist/pre-block-MqyNpmYa.d.ts +19 -0
- package/dist/pre-block-MqyNpmYa.d.ts.map +1 -0
- package/dist/providers-BlEJC-ZF.js +2 -0
- package/dist/providers-BlEJC-ZF.js.map +1 -0
- package/dist/{providers-Do13WJMr.d.ts → providers-CxZdaO7_.d.ts} +3 -3
- package/dist/providers-CxZdaO7_.d.ts.map +1 -0
- package/dist/{registry-colors-data-tROJGGvk.js → registry-colors-data-C5Xv_bOz.js} +1 -1
- package/dist/{registry-colors-data-tROJGGvk.js.map → registry-colors-data-C5Xv_bOz.js.map} +1 -1
- package/dist/{registry-styles-DACce7ra.d.ts → registry-styles-Boe9P1LO.d.ts} +1 -1
- package/dist/{registry-styles-DACce7ra.d.ts.map → registry-styles-Boe9P1LO.d.ts.map} +1 -1
- package/dist/{registry-styles-Bby12FIz.js → registry-styles-DwoJ9Qa9.js} +1 -1
- package/dist/{registry-styles-Bby12FIz.js.map → registry-styles-DwoJ9Qa9.js.map} +1 -1
- package/dist/{rehype-mermaid-gkaeJtqn.js → rehype-mermaid-Ctag2Ywx.js} +1 -1
- package/dist/{rehype-mermaid-gkaeJtqn.js.map → rehype-mermaid-Ctag2Ywx.js.map} +1 -1
- package/dist/{rehype-mermaid-kjf2DmAC.d.ts → rehype-mermaid-DPZ6UzOu.d.ts} +2 -2
- package/dist/rehype-mermaid-DPZ6UzOu.d.ts.map +1 -0
- package/dist/rehype-npm-command-0W5WqcQY.js +2 -0
- package/dist/rehype-npm-command-0W5WqcQY.js.map +1 -0
- package/dist/{rehype-npm-command-C7BP6nqi.d.ts → rehype-npm-command-khRZrj_X.d.ts} +2 -2
- package/dist/rehype-npm-command-khRZrj_X.d.ts.map +1 -0
- package/dist/{rehype-pre-block-source-zKoXg4aL.d.ts → rehype-pre-block-source-0UyWe2hh.d.ts} +2 -2
- package/dist/rehype-pre-block-source-0UyWe2hh.d.ts.map +1 -0
- package/dist/rehype-pre-block-source-paX7yPQ4.js +2 -0
- package/dist/rehype-pre-block-source-paX7yPQ4.js.map +1 -0
- package/dist/{rehype-title-TRUGszot.js → rehype-title-CB9V-h9I.js} +1 -1
- package/dist/{rehype-title-TRUGszot.js.map → rehype-title-CB9V-h9I.js.map} +1 -1
- package/dist/{rehype-title-umwuNb2D.d.ts → rehype-title-CTj31zR2.d.ts} +2 -2
- package/dist/rehype-title-CTj31zR2.d.ts.map +1 -0
- package/dist/scroll-area-DwfrxxQ_.js +2 -0
- package/dist/scroll-area-DwfrxxQ_.js.map +1 -0
- package/dist/separator-BL4VUMvX.js +2 -0
- package/dist/separator-BL4VUMvX.js.map +1 -0
- package/dist/shared-utils-DqLwMUcj-Cs7um3C7.js +2 -0
- package/dist/shared-utils-DqLwMUcj-Cs7um3C7.js.map +1 -0
- package/dist/shell-command-BQkaAnLc.js +2 -0
- package/dist/shell-command-BQkaAnLc.js.map +1 -0
- package/dist/site-footer-Dh_aYkTp.d.ts +8 -0
- package/dist/site-footer-Dh_aYkTp.d.ts.map +1 -0
- package/dist/site-footer-DoVwgNqf.js +2 -0
- package/dist/site-footer-DoVwgNqf.js.map +1 -0
- package/dist/site-header-BiFOBrXI.js +2 -0
- package/dist/site-header-BiFOBrXI.js.map +1 -0
- package/dist/site-header-C77EADsW.d.ts +8 -0
- package/dist/site-header-C77EADsW.d.ts.map +1 -0
- package/dist/slot-B-X2-pKU-DOhFF3E_.js +2 -0
- package/dist/slot-B-X2-pKU-DOhFF3E_.js.map +1 -0
- package/dist/style-switcher--saWXPVm.js +2 -0
- package/dist/style-switcher--saWXPVm.js.map +1 -0
- package/dist/style-switcher-BCCh5sxc.d.ts +15 -0
- package/dist/style-switcher-BCCh5sxc.d.ts.map +1 -0
- package/dist/styles/base.css +12 -12
- package/dist/styles/docs.css +14 -1
- package/dist/styles/mdx-base.css +27 -0
- package/dist/styles/mdx-code.css +142 -0
- package/dist/styles/mdx-extensions.css +3 -0
- package/dist/styles/mdx-typography.css +27 -0
- package/dist/styles/mdx.css +4 -197
- package/dist/table-E1lSNeuD.js +2 -0
- package/dist/table-E1lSNeuD.js.map +1 -0
- package/dist/table-tgo1Zoi5.d.ts +22 -0
- package/dist/table-tgo1Zoi5.d.ts.map +1 -0
- package/dist/tabs-Bi5DkOoD.d.ts +43 -0
- package/dist/tabs-Bi5DkOoD.d.ts.map +1 -0
- package/dist/{tabs-Cvy3-KIA.js → tabs-BonSZ_0a.js} +2 -2
- package/dist/tabs-BonSZ_0a.js.map +1 -0
- package/dist/tabs-CrZf6_5d.js +2 -0
- package/dist/tabs-CrZf6_5d.js.map +1 -0
- package/dist/tailwind-indicator-C2nO7EAI.d.ts +7 -0
- package/dist/tailwind-indicator-C2nO7EAI.d.ts.map +1 -0
- package/dist/{tailwind-indicator-Dt4Bfpta.js → tailwind-indicator-z53_j-ZR.js} +1 -1
- package/dist/tailwind-indicator-z53_j-ZR.js.map +1 -0
- package/dist/{themes-BzMklu0h.js → themes-DSmnGG_O.js} +2 -2
- package/dist/{themes-BzMklu0h.js.map → themes-DSmnGG_O.js.map} +1 -1
- package/dist/{themes-Ba683LGu.d.ts → themes-M1nDuQoV.d.ts} +1 -1
- package/dist/{themes-Ba683LGu.d.ts.map → themes-M1nDuQoV.d.ts.map} +1 -1
- package/dist/{typepography-BdIMY3Y2.d.ts → typepography-Bb4KzfVL.d.ts} +13 -13
- package/dist/{typepography-BdIMY3Y2.d.ts.map → typepography-Bb4KzfVL.d.ts.map} +1 -1
- package/dist/{typepography-CLdrb7_b.js → typepography-Bn-ZmO71.js} +1 -1
- package/dist/{typepography-CLdrb7_b.js.map → typepography-Bn-ZmO71.js.map} +1 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/mdx-runtime.d.ts +2 -0
- package/dist/types/nav.d.ts +1 -1
- package/dist/types/unist.d.ts +2 -1
- package/dist/types-DsWNixhq.d.ts +14 -0
- package/dist/types-DsWNixhq.d.ts.map +1 -0
- package/dist/typography-BcEByhvR.js +0 -0
- package/dist/unist-Dtu3x3-k.js +0 -0
- package/dist/unist-q3NIH9ya.d.ts +29 -0
- package/dist/unist-q3NIH9ya.d.ts.map +1 -0
- package/dist/{use-colors-BSOymnQG.js → use-colors-BiVXxR31.js} +2 -2
- package/dist/{use-colors-BSOymnQG.js.map → use-colors-BiVXxR31.js.map} +1 -1
- package/dist/{use-colors-tvFBbu3S.d.ts → use-colors-CBAXuqtP.d.ts} +2 -2
- package/dist/use-colors-CBAXuqtP.d.ts.map +1 -0
- package/dist/{use-config-DlgXRPaN.d.ts → use-config-3gNoFPn6.d.ts} +2 -2
- package/dist/{use-config-DlgXRPaN.d.ts.map → use-config-3gNoFPn6.d.ts.map} +1 -1
- package/dist/{use-config-DViAkW1f.js → use-config-CkoOe8Fw.js} +1 -1
- package/dist/{use-config-DViAkW1f.js.map → use-config-CkoOe8Fw.js.map} +1 -1
- package/dist/{use-lift-mode-CqcC0vis.js → use-lift-mode-CRK6jO9I.js} +1 -1
- package/dist/{use-lift-mode-CqcC0vis.js.map → use-lift-mode-CRK6jO9I.js.map} +1 -1
- package/dist/{use-lift-mode-DEELjsRA.d.ts → use-lift-mode-DAQuqoIt.d.ts} +1 -1
- package/dist/use-lift-mode-DAQuqoIt.d.ts.map +1 -0
- package/dist/{use-meta-colors-CkNbJTgD.d.ts → use-meta-colors-Dlzg21A8.d.ts} +1 -1
- package/dist/use-meta-colors-Dlzg21A8.d.ts.map +1 -0
- package/dist/{use-meta-colors-B7HIXaHI.js → use-meta-colors-ye3z03RL.js} +2 -2
- package/dist/{use-meta-colors-B7HIXaHI.js.map → use-meta-colors-ye3z03RL.js.map} +1 -1
- package/dist/{use-mounted-gdBJPRp0.js → use-mounted-Bi7J0dBb.js} +1 -1
- package/dist/{use-mounted-gdBJPRp0.js.map → use-mounted-Bi7J0dBb.js.map} +1 -1
- package/dist/{use-mounted-BtOuPtMk.d.ts → use-mounted-CqC1Le-n.d.ts} +1 -1
- package/dist/use-mounted-CqC1Le-n.d.ts.map +1 -0
- package/dist/{use-themes-config-Dtk_egkh.d.ts → use-themes-config-DfxLBbQI.d.ts} +2 -2
- package/dist/{use-themes-config-Dtk_egkh.d.ts.map → use-themes-config-DfxLBbQI.d.ts.map} +1 -1
- package/dist/{use-themes-config-BRcxOF-M.js → use-themes-config-t4NBMHl1.js} +2 -2
- package/dist/{use-themes-config-BRcxOF-M.js.map → use-themes-config-t4NBMHl1.js.map} +1 -1
- package/dist/{utils-gls3XPIE.d.ts → utils-BGWVtLBe.d.ts} +1 -1
- package/dist/utils-BGWVtLBe.d.ts.map +1 -0
- package/dist/utils-CN0aIGfJ.js +2 -0
- package/dist/utils-CN0aIGfJ.js.map +1 -0
- package/dist/velite/browser.d.ts +2 -1
- package/dist/velite/browser.d.ts.map +1 -1
- package/dist/velite/browser.js +1 -1
- package/dist/velite/browser.js.map +1 -1
- package/dist/velite/config.d.ts.map +1 -1
- package/dist/velite/config.js +1 -1
- package/dist/velite/config.js.map +1 -1
- package/dist/velite/index.d.ts +8 -8
- package/dist/velite/index.js +1 -1
- package/dist/velite/plugins/hast-properties.d.ts +9 -0
- package/dist/velite/plugins/hast-properties.d.ts.map +1 -0
- package/dist/velite/plugins/hast-properties.js +1 -0
- package/dist/velite/plugins/index.d.ts +8 -8
- package/dist/velite/plugins/index.js +1 -1
- package/dist/velite/plugins/metadata-plugin.d.ts +4 -4
- package/dist/velite/plugins/metadata-plugin.js +1 -1
- package/dist/velite/plugins/metadata-utils.d.ts +9 -0
- package/dist/velite/plugins/metadata-utils.d.ts.map +1 -0
- package/dist/velite/plugins/metadata-utils.js +1 -0
- package/dist/velite/plugins/rehype-mermaid.d.ts +3 -3
- package/dist/velite/plugins/rehype-mermaid.js +1 -1
- package/dist/velite/plugins/rehype-npm-command.d.ts +3 -3
- package/dist/velite/plugins/rehype-npm-command.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/visibility-hidden-CAHx9RLp-CN32k1Im.js +2 -0
- package/dist/visibility-hidden-CAHx9RLp-CN32k1Im.js.map +1 -0
- package/package.json +28 -30
- package/src/client.ts +0 -0
- package/src/components/copy-button.tsx +54 -0
- package/src/components/docs/docs-copy-page.tsx +161 -46
- package/src/components/docs/docs-pager.tsx +22 -12
- package/src/components/docs/docs-sidebar.tsx +194 -29
- package/src/components/docs/docs-toc.tsx +233 -56
- package/src/components/docs/index.ts +0 -0
- package/src/components/icons.tsx +13 -25
- package/src/components/index.ts +1 -1
- package/src/components/layouts/command-menu.tsx +491 -0
- package/src/components/layouts/{site-header/header-shell.tsx → header-shell.tsx} +2 -2
- package/src/components/layouts/{site-footer/index.tsx → site-footer.tsx} +10 -7
- package/src/components/layouts/site-header.tsx +178 -0
- package/src/components/main-nav.tsx +3 -2
- package/src/components/mdx/ARCHITECTURE.md +61 -0
- package/src/components/mdx/mdx-component-registry.types.ts +5 -0
- package/src/components/mdx/mdx-components/callout.tsx +29 -9
- package/src/components/mdx/mdx-components/code/code-preview.tsx +11 -8
- package/src/components/mdx/mdx-components/code/component-preview.tsx +59 -27
- package/src/components/mdx/mdx-components/code/component-source.tsx +49 -21
- package/src/components/mdx/mdx-components/code/figcaption-block.tsx +2 -8
- package/src/components/mdx/mdx-components/code/mermaid-block.tsx +5 -3
- package/src/components/mdx/mdx-components/code/pre-block/index.ts +1 -0
- package/src/components/mdx/mdx-components/code/pre-block/pre-block.tsx +52 -0
- package/src/components/mdx/mdx-components/code/{pre-block.tsx → pre-block/shell-command.tsx} +4 -58
- package/src/components/mdx/mdx-components/code/pre-block/types.ts +10 -0
- package/src/components/mdx/mdx-components/components-list.tsx +0 -0
- package/src/components/mdx/mdx-components/index.ts +1 -2
- package/src/components/mdx/mdx-components/table.tsx +36 -27
- package/src/components/mdx/mdx-components/tabs.tsx +5 -2
- package/src/components/mdx/mdx-components/typography.tsx +1 -0
- package/src/components/mdx/mdx-components-base.tsx +81 -0
- package/src/components/mdx/mdx-components-registry.ts +8 -0
- package/src/components/mdx/mdx-components-ui.tsx +21 -0
- package/src/components/mdx/mdx-icons.ts +0 -0
- package/src/components/mdx/mdx-runtime.ts +10 -0
- package/src/components/mdx/mdx.tsx +3 -103
- package/src/components/mobile-nav.tsx +57 -22
- package/src/components/mode-toggle.tsx +4 -4
- package/src/components/providers.tsx +0 -1
- package/src/components/{themes/style-switcher.tsx → style-switcher.tsx} +5 -2
- package/src/context/context.tsx +0 -0
- package/src/context/context.types.ts +4 -0
- package/src/context/index.ts +0 -0
- package/src/hooks/index.ts +0 -0
- package/src/lib/index.ts +0 -0
- package/src/lib/registry-styles.ts +0 -0
- package/src/lib/utils.ts +7 -1
- package/src/styles/base.css +12 -12
- package/src/styles/docs.css +14 -1
- package/src/styles/mdx-base.css +27 -0
- package/src/styles/mdx-code.css +142 -0
- package/src/styles/mdx-extensions.css +3 -0
- package/src/styles/mdx-typography.css +27 -0
- package/src/styles/mdx.css +4 -197
- package/src/types/index.ts +1 -0
- package/src/types/mdx-runtime.ts +21 -0
- package/src/types/nav.ts +2 -0
- package/src/types/unist.ts +5 -19
- package/src/velite/browser.ts +1 -0
- package/src/velite/config.ts +56 -38
- package/src/velite/index.ts +0 -0
- package/src/velite/plugins/hast-properties.ts +12 -0
- package/src/velite/plugins/index.ts +0 -0
- package/src/velite/plugins/metadata-plugin.ts +14 -11
- package/src/velite/plugins/metadata-utils.ts +14 -0
- package/src/velite/plugins/rehype-mermaid.ts +0 -0
- package/src/velite/plugins/rehype-npm-command.ts +24 -22
- package/src/velite/plugins/rehype-pre-block-source.ts +6 -4
- package/src/velite/plugins/rehype-title.ts +0 -0
- package/src/velite/utils.ts +0 -0
- package/dist/button-Ao0Egplu.js +0 -2
- package/dist/button-Ao0Egplu.js.map +0 -1
- package/dist/callout-C1MveMtC.d.ts +0 -20
- package/dist/callout-C1MveMtC.d.ts.map +0 -1
- package/dist/callout-ChU_uu_5.js +0 -2
- package/dist/callout-ChU_uu_5.js.map +0 -1
- package/dist/chunk-BPpoHddQ-DLGSIJHp.js +0 -2
- package/dist/chunk-BPpoHddQ-DLGSIJHp.js.map +0 -1
- package/dist/code-preview-DTVYDNkK.js +0 -2
- package/dist/code-preview-DTVYDNkK.js.map +0 -1
- package/dist/command-2PGkRCUM.js +0 -2
- package/dist/command-2PGkRCUM.js.map +0 -1
- package/dist/command-menu-Db8sDulu.js +0 -2
- package/dist/command-menu-Db8sDulu.js.map +0 -1
- package/dist/command-menu-DtpwoKe8.d.ts +0 -7
- package/dist/command-menu-DtpwoKe8.d.ts.map +0 -1
- package/dist/component-preview-D2UaIsBZ.d.ts.map +0 -1
- package/dist/component-preview-InhzN4h1.js +0 -2
- package/dist/component-preview-InhzN4h1.js.map +0 -1
- package/dist/component-source-CLa1Z_vJ.d.ts +0 -17
- package/dist/component-source-CLa1Z_vJ.d.ts.map +0 -1
- package/dist/component-source-DtSz1ZSB.js +0 -5
- package/dist/component-source-DtSz1ZSB.js.map +0 -1
- package/dist/components/copy-button/copy-button.d.ts +0 -5
- package/dist/components/copy-button/copy-button.js +0 -1
- package/dist/components/copy-button/copy-button.types.d.ts +0 -4
- package/dist/components/copy-button/index.d.ts +0 -6
- package/dist/components/copy-button/index.js +0 -1
- package/dist/components/layouts/command-menu/command-menu.d.ts +0 -2
- package/dist/components/layouts/command-menu/command-menu.js +0 -1
- package/dist/components/layouts/command-menu/index.d.ts +0 -3
- package/dist/components/layouts/command-menu/index.js +0 -1
- package/dist/components/layouts/site-footer/index.d.ts +0 -2
- package/dist/components/layouts/site-footer/index.js +0 -1
- package/dist/components/layouts/site-header/header-shell.js +0 -1
- package/dist/components/layouts/site-header/index.d.ts +0 -3
- package/dist/components/layouts/site-header/index.js +0 -1
- package/dist/components/layouts/tailwind-indicator/index.d.ts +0 -2
- package/dist/components/layouts/tailwind-indicator/index.js +0 -1
- package/dist/components/mdx/mdx-components/code/pre-block.d.ts +0 -4
- package/dist/components/mdx/mdx-components/code/pre-block.js +0 -1
- package/dist/components/mdx/mdx-components/framework-docs.d.ts +0 -2
- package/dist/components/mdx/mdx-components/framework-docs.js +0 -1
- package/dist/components/themes/index.d.ts +0 -4
- package/dist/components/themes/index.js +0 -1
- package/dist/components/themes/style-switcher.d.ts +0 -3
- package/dist/components/themes/style-switcher.js +0 -1
- package/dist/components-list-VYl4HAYt.d.ts +0 -12
- package/dist/context.types-KUK2rNdz.d.ts.map +0 -1
- package/dist/copy-button-DSpL6XPh.d.ts +0 -21
- package/dist/copy-button-DSpL6XPh.d.ts.map +0 -1
- package/dist/copy-button-DZizVQ8G.js +0 -2
- package/dist/copy-button-DZizVQ8G.js.map +0 -1
- package/dist/copy-button.types-CGEbiMXO.d.ts +0 -29
- package/dist/copy-button.types-CGEbiMXO.d.ts.map +0 -1
- package/dist/dialog-BJXRFGlQ.js +0 -31
- package/dist/dialog-BJXRFGlQ.js.map +0 -1
- package/dist/docs-copy-page-BEtbT7qX.d.ts.map +0 -1
- package/dist/docs-copy-page-DZDkcR09.js +0 -3
- package/dist/docs-copy-page-DZDkcR09.js.map +0 -1
- package/dist/docs-pager-Dr6dooWP.js +0 -2
- package/dist/docs-pager-Dr6dooWP.js.map +0 -1
- package/dist/docs-sidebar-CWDyV0Rj.d.ts +0 -30
- package/dist/docs-sidebar-CWDyV0Rj.d.ts.map +0 -1
- package/dist/docs-sidebar-MtBCNnEG.js +0 -2
- package/dist/docs-sidebar-MtBCNnEG.js.map +0 -1
- package/dist/docs-toc-B7RS1k0Z.d.ts +0 -13
- package/dist/docs-toc-B7RS1k0Z.d.ts.map +0 -1
- package/dist/docs-toc-Czi8gMJf.js +0 -2
- package/dist/docs-toc-Czi8gMJf.js.map +0 -1
- package/dist/drawer-DVVyDJ2D.js +0 -8
- package/dist/drawer-DVVyDJ2D.js.map +0 -1
- package/dist/dropdown-menu-Cf4PnvE4.js +0 -2
- package/dist/dropdown-menu-Cf4PnvE4.js.map +0 -1
- package/dist/figcaption-block-7FWvsSXj.js +0 -2
- package/dist/figcaption-block-7FWvsSXj.js.map +0 -1
- package/dist/figcaption-block-DfyvzBoz.d.ts.map +0 -1
- package/dist/framework-docs-BQx_CG7u.js +0 -2
- package/dist/framework-docs-BQx_CG7u.js.map +0 -1
- package/dist/framework-docs-BuqO4yKf.d.ts +0 -13
- package/dist/framework-docs-BuqO4yKf.d.ts.map +0 -1
- package/dist/header-shell-BnhiboVH.js.map +0 -1
- package/dist/header-shell-DG6EtZSb.d.ts.map +0 -1
- package/dist/icons-Bp6-jojO.d.ts +0 -30
- package/dist/icons-Bp6-jojO.d.ts.map +0 -1
- package/dist/icons-CiCgiCYy.js +0 -2
- package/dist/icons-CiCgiCYy.js.map +0 -1
- package/dist/index-BgMLDj-T.d.ts +0 -8
- package/dist/index-BgMLDj-T.d.ts.map +0 -1
- package/dist/index-Bler93Rv.d.ts +0 -7
- package/dist/index-Bler93Rv.d.ts.map +0 -1
- package/dist/index-C2_c9Mqo.d.ts.map +0 -1
- package/dist/index-DWZV2KV9.d.ts +0 -8
- package/dist/index-DWZV2KV9.d.ts.map +0 -1
- package/dist/main-nav-Ci0i9b05.js +0 -2
- package/dist/main-nav-Ci0i9b05.js.map +0 -1
- package/dist/main-nav-DdJSFX9R.d.ts +0 -7
- package/dist/main-nav-DdJSFX9R.d.ts.map +0 -1
- package/dist/mdx-Bc39yJEk.js +0 -2
- package/dist/mdx-Bc39yJEk.js.map +0 -1
- package/dist/mdx-CKRU84WS.d.ts +0 -12
- package/dist/mdx-CKRU84WS.d.ts.map +0 -1
- package/dist/mermaid-block-BlCALvQ4.js +0 -13
- package/dist/mermaid-block-BlCALvQ4.js.map +0 -1
- package/dist/metadata-plugin-OKcE6Xsj.d.ts +0 -7
- package/dist/metadata-plugin-OKcE6Xsj.d.ts.map +0 -1
- package/dist/metadata-plugin-tEixstEj.js +0 -2
- package/dist/metadata-plugin-tEixstEj.js.map +0 -1
- package/dist/mobile-nav-BAkYO55-.js +0 -2
- package/dist/mobile-nav-BAkYO55-.js.map +0 -1
- package/dist/mobile-nav-wLU7upp-.d.ts +0 -7
- package/dist/mobile-nav-wLU7upp-.d.ts.map +0 -1
- package/dist/mode-toggle-B4gU5bK6.d.ts +0 -7
- package/dist/mode-toggle-B4gU5bK6.d.ts.map +0 -1
- package/dist/mode-toggle-BFNnk0Th.js +0 -2
- package/dist/mode-toggle-BFNnk0Th.js.map +0 -1
- package/dist/mount-CNbhMJe--D9ALOndF.js +0 -2
- package/dist/mount-CNbhMJe--D9ALOndF.js.map +0 -1
- package/dist/nav-B2NAfb21.d.ts.map +0 -1
- package/dist/popover-DBuHxfGT.js +0 -2
- package/dist/popover-DBuHxfGT.js.map +0 -1
- package/dist/pre-block-C2YQ_YU_.js +0 -2
- package/dist/pre-block-C2YQ_YU_.js.map +0 -1
- package/dist/pre-block-DMxLF2Tm.d.ts +0 -33
- package/dist/pre-block-DMxLF2Tm.d.ts.map +0 -1
- package/dist/presence-DKRzzG6_-DV_YtF92.js +0 -2
- package/dist/presence-DKRzzG6_-DV_YtF92.js.map +0 -1
- package/dist/providers-CFfgRc3G.js +0 -2
- package/dist/providers-CFfgRc3G.js.map +0 -1
- package/dist/providers-Do13WJMr.d.ts.map +0 -1
- package/dist/rehype-mermaid-kjf2DmAC.d.ts.map +0 -1
- package/dist/rehype-npm-command-C7BP6nqi.d.ts.map +0 -1
- package/dist/rehype-npm-command-O7ik2lKv.js +0 -2
- package/dist/rehype-npm-command-O7ik2lKv.js.map +0 -1
- package/dist/rehype-pre-block-source-D8t3NCnT.js +0 -2
- package/dist/rehype-pre-block-source-D8t3NCnT.js.map +0 -1
- package/dist/rehype-pre-block-source-zKoXg4aL.d.ts.map +0 -1
- package/dist/rehype-title-umwuNb2D.d.ts.map +0 -1
- package/dist/scroll-area-Bj8-58Fz.js +0 -2
- package/dist/scroll-area-Bj8-58Fz.js.map +0 -1
- package/dist/separator-t0JrmyLj.js +0 -2
- package/dist/separator-t0JrmyLj.js.map +0 -1
- package/dist/site-footer-BZQcOAVy.js +0 -2
- package/dist/site-footer-BZQcOAVy.js.map +0 -1
- package/dist/site-header-DH4ChrKl.js +0 -2
- package/dist/site-header-DH4ChrKl.js.map +0 -1
- package/dist/style-switcher-BvF4n8f4.js +0 -2
- package/dist/style-switcher-BvF4n8f4.js.map +0 -1
- package/dist/style-switcher-gHkRCCrl.d.ts +0 -25
- package/dist/style-switcher-gHkRCCrl.d.ts.map +0 -1
- package/dist/table-Cu1wFi9V.js +0 -2
- package/dist/table-Cu1wFi9V.js.map +0 -1
- package/dist/table-DAVFXCAf.d.ts +0 -10
- package/dist/table-DAVFXCAf.d.ts.map +0 -1
- package/dist/tabs-33zMuIHi.d.ts +0 -68
- package/dist/tabs-33zMuIHi.d.ts.map +0 -1
- package/dist/tabs-Cvy3-KIA.js.map +0 -1
- package/dist/tabs-jsmxQQW0.js +0 -2
- package/dist/tabs-jsmxQQW0.js.map +0 -1
- package/dist/tailwind-indicator-Dt4Bfpta.js.map +0 -1
- package/dist/unist-DN6buKAy.d.ts +0 -44
- package/dist/unist-DN6buKAy.d.ts.map +0 -1
- package/dist/use-colors-tvFBbu3S.d.ts.map +0 -1
- package/dist/use-lift-mode-DEELjsRA.d.ts.map +0 -1
- package/dist/use-meta-colors-CkNbJTgD.d.ts.map +0 -1
- package/dist/use-mounted-BtOuPtMk.d.ts.map +0 -1
- package/dist/utils-Ck5VSddf.js +0 -2
- package/dist/utils-Ck5VSddf.js.map +0 -1
- package/dist/utils-gls3XPIE.d.ts.map +0 -1
- package/src/components/copy-button/copy-button.tsx +0 -88
- package/src/components/copy-button/copy-button.types.ts +0 -17
- package/src/components/copy-button/index.ts +0 -2
- package/src/components/layouts/command-menu/command-menu.tsx +0 -166
- package/src/components/layouts/command-menu/index.ts +0 -1
- package/src/components/layouts/site-header/index.tsx +0 -127
- package/src/components/mdx/mdx-components/framework-docs.tsx +0 -20
- package/src/components/themes/index.ts +0 -1
- /package/dist/{code-CRijMbf8.js → code-B8oMaOlf.js} +0 -0
- /package/dist/{command-menu-DJNwkpf0.js → components/mdx/mdx-component-registry.types.js} +0 -0
- /package/dist/components/{copy-button/copy-button.types.js → mdx/mdx-components/code/pre-block/types.js} +0 -0
- /package/dist/{context-DAoDXLlH.js → context-BC4O8IkN.js} +0 -0
- /package/dist/{context.types-XX-41b7E.js → context.types-xqn674mu.js} +0 -0
- /package/dist/{copy-button-BKOhlef4.js → direction-BgdQqJSh.js} +0 -0
- /package/dist/{copy-button.types-B9s047di.js → docs-BxKlMynn.js} +0 -0
- /package/dist/{index-2DqdDmQN.d.ts → index-2ODhJ4PF.d.ts} +0 -0
- /package/dist/{index-CGglgRYd.d.ts → index-BCvK1fdV.d.ts} +0 -0
- /package/dist/{index-CX84Uo3j.d.ts → index-BOXZdgrl.d.ts} +0 -0
- /package/dist/{index-DOo6j0yP.d.ts → index-CDXWDYLH.d.ts} +0 -0
- /package/dist/{index-DUfvqU8v.d.ts → index-CEmd2iJF.d.ts} +0 -0
- /package/dist/{index-DlpwrdjG.d.ts → index-CMgWXPTi.d.ts} +0 -0
- /package/dist/{index-DxmiBoAj.d.ts → index-J4eIjbSW.d.ts} +0 -0
- /package/dist/{index-DzZbxTJ5.d.ts → index-PiDlmF8F.d.ts} +0 -0
- /package/dist/{docs-BXWvl6Zg.js → layouts-CZzkzPUj.js} +0 -0
- /package/dist/{layouts-MJSz-Ia5.js → mdx-components-DVXN21iW.js} +0 -0
- /package/dist/{mdx-components-Bvz2OZPf.js → mdx-runtime-8ZPauNCe.js} +0 -0
- /package/dist/{nav-CVNxjtXM.js → nav-n66GykpT.js} +0 -0
- /package/dist/{themes-k-j3m6gv.js → pre-block-B4y5yM69.js} +0 -0
- /package/dist/{unist-C_C48flD.js → types/mdx-runtime.js} +0 -0
- /package/dist/{index-MPFNOj9E.d.ts → typography-BjwZeImL.d.ts} +0 -0
- /package/src/components/layouts/{tailwind-indicator/index.tsx → tailwind-indicator.tsx} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import { cn } from '@gentleduck/libs/cn'
|
|
4
|
-
import { PreviewPanelDialog } from '@gentleduck/registry-ui
|
|
4
|
+
import { PreviewPanelDialog } from '@gentleduck/registry-ui/preview-panel'
|
|
5
5
|
import { Loader } from 'lucide-react'
|
|
6
6
|
import { useTheme } from 'next-themes'
|
|
7
7
|
import { useEffect, useState } from 'react'
|
|
@@ -33,9 +33,11 @@ export function MermaidBlock(props: MermaidBlockProps) {
|
|
|
33
33
|
|
|
34
34
|
if (!mounted) {
|
|
35
35
|
return (
|
|
36
|
-
<div
|
|
36
|
+
<div
|
|
37
|
+
className={cn('my-6 flex h-[300px] items-center justify-center rounded-lg border bg-card', props.className)}
|
|
38
|
+
role="status">
|
|
37
39
|
<div className="flex flex-col items-center gap-3">
|
|
38
|
-
<Loader className="size-4 animate-spin opacity-50" />
|
|
40
|
+
<Loader aria-hidden="true" className="size-4 animate-spin opacity-50" />
|
|
39
41
|
<p className="text-muted-foreground text-sm">Loading diagram...</p>
|
|
40
42
|
</div>
|
|
41
43
|
</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pre-block'
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { CopyButton } from '@duck-docs/components/copy-button'
|
|
2
|
+
import { cn } from '@gentleduck/libs/cn'
|
|
3
|
+
import { ShellCommand } from './shell-command'
|
|
4
|
+
import type { CodeBlockProps } from './types'
|
|
5
|
+
|
|
6
|
+
export function PreBlock({
|
|
7
|
+
className,
|
|
8
|
+
__rawString__,
|
|
9
|
+
__npmCommand__,
|
|
10
|
+
__yarnCommand__,
|
|
11
|
+
__pnpmCommand__,
|
|
12
|
+
__bunCommand__,
|
|
13
|
+
__withMeta__,
|
|
14
|
+
__event__,
|
|
15
|
+
children,
|
|
16
|
+
...props
|
|
17
|
+
}: CodeBlockProps) {
|
|
18
|
+
const theme = props['data-theme']
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<div data-theme={theme}>
|
|
22
|
+
{__npmCommand__ && __yarnCommand__ && __pnpmCommand__ && __bunCommand__ ? (
|
|
23
|
+
<ShellCommand
|
|
24
|
+
__bunCommand__={__bunCommand__}
|
|
25
|
+
__npmCommand__={__npmCommand__}
|
|
26
|
+
__pnpmCommand__={__pnpmCommand__}
|
|
27
|
+
__yarnCommand__={__yarnCommand__}
|
|
28
|
+
{...props}
|
|
29
|
+
/>
|
|
30
|
+
) : (
|
|
31
|
+
<>
|
|
32
|
+
{__rawString__ && !__npmCommand__ && (
|
|
33
|
+
<CopyButton
|
|
34
|
+
className={cn('absolute top-2 right-2 bg-muted [&_svg]:text-muted-foreground', __withMeta__ && 'top-16')}
|
|
35
|
+
event={__event__}
|
|
36
|
+
value={__rawString__}
|
|
37
|
+
variant={'outline'}
|
|
38
|
+
/>
|
|
39
|
+
)}
|
|
40
|
+
<pre
|
|
41
|
+
className={cn(
|
|
42
|
+
'max-h-[650px] overflow-auto rounded-lg py-4 focus-visible:shadow-none focus-visible:outline-none',
|
|
43
|
+
className,
|
|
44
|
+
)}
|
|
45
|
+
{...props}>
|
|
46
|
+
{children}
|
|
47
|
+
</pre>
|
|
48
|
+
</>
|
|
49
|
+
)}
|
|
50
|
+
</div>
|
|
51
|
+
)
|
|
52
|
+
}
|
package/src/components/mdx/mdx-components/code/{pre-block.tsx → pre-block/shell-command.tsx}
RENAMED
|
@@ -1,65 +1,10 @@
|
|
|
1
1
|
import { CopyButton } from '@duck-docs/components/copy-button'
|
|
2
|
-
import type { Event } from '@duck-docs/lib/events'
|
|
3
2
|
import type { NpmCommands } from '@duck-docs/types/unist'
|
|
4
3
|
import { cn } from '@gentleduck/libs/cn'
|
|
5
|
-
import { Separator } from '@gentleduck/registry-ui
|
|
6
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@gentleduck/registry-ui
|
|
4
|
+
import { Separator } from '@gentleduck/registry-ui/separator'
|
|
5
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@gentleduck/registry-ui/tabs'
|
|
7
6
|
import { Terminal } from 'lucide-react'
|
|
8
7
|
|
|
9
|
-
export type CodeBlockProps = React.HTMLAttributes<HTMLPreElement> & {
|
|
10
|
-
__rawString__?: string
|
|
11
|
-
__withMeta__?: boolean
|
|
12
|
-
__title__?: string
|
|
13
|
-
__event__?: Event['name']
|
|
14
|
-
} & NpmCommands
|
|
15
|
-
|
|
16
|
-
export function PreBlock({
|
|
17
|
-
className,
|
|
18
|
-
__rawString__,
|
|
19
|
-
__npmCommand__,
|
|
20
|
-
__yarnCommand__,
|
|
21
|
-
__pnpmCommand__,
|
|
22
|
-
__bunCommand__,
|
|
23
|
-
__withMeta__,
|
|
24
|
-
__event__,
|
|
25
|
-
__title__,
|
|
26
|
-
children,
|
|
27
|
-
...props
|
|
28
|
-
}: CodeBlockProps) {
|
|
29
|
-
return (
|
|
30
|
-
<div data-theme={(props as any)['data-theme']}>
|
|
31
|
-
{__npmCommand__ && __yarnCommand__ && __pnpmCommand__ && __bunCommand__ ? (
|
|
32
|
-
<ShellCommand
|
|
33
|
-
__bunCommand__={__bunCommand__}
|
|
34
|
-
__npmCommand__={__npmCommand__}
|
|
35
|
-
__pnpmCommand__={__pnpmCommand__}
|
|
36
|
-
__yarnCommand__={__yarnCommand__}
|
|
37
|
-
{...props}
|
|
38
|
-
/>
|
|
39
|
-
) : (
|
|
40
|
-
<>
|
|
41
|
-
{__rawString__ && !__npmCommand__ && (
|
|
42
|
-
<CopyButton
|
|
43
|
-
className={cn('absolute top-2 right-2 bg-muted [&_svg]:text-muted-foreground', __withMeta__ && 'top-16')}
|
|
44
|
-
event={__event__}
|
|
45
|
-
value={__rawString__}
|
|
46
|
-
variant={'outline'}
|
|
47
|
-
/>
|
|
48
|
-
)}
|
|
49
|
-
<pre
|
|
50
|
-
className={cn(
|
|
51
|
-
'max-h-[650px] overflow-auto rounded-lg py-4 focus-visible:shadow-none focus-visible:outline-none',
|
|
52
|
-
className,
|
|
53
|
-
)}
|
|
54
|
-
{...props}>
|
|
55
|
-
{children}
|
|
56
|
-
</pre>
|
|
57
|
-
</>
|
|
58
|
-
)}
|
|
59
|
-
</div>
|
|
60
|
-
)
|
|
61
|
-
}
|
|
62
|
-
|
|
63
8
|
export function ShellCommand({ __npmCommand__, __yarnCommand__, __pnpmCommand__, __bunCommand__ }: NpmCommands) {
|
|
64
9
|
const commands = {
|
|
65
10
|
__bunCommand__,
|
|
@@ -67,11 +12,12 @@ export function ShellCommand({ __npmCommand__, __yarnCommand__, __pnpmCommand__,
|
|
|
67
12
|
__pnpmCommand__,
|
|
68
13
|
__yarnCommand__,
|
|
69
14
|
}
|
|
15
|
+
|
|
70
16
|
return (
|
|
71
17
|
<Tabs className="rounded-md" defaultValue="__npmCommand__">
|
|
72
18
|
<TabsList className="w-fit justify-start bg-transparent py-2">
|
|
73
19
|
<div className="flex size-4 flex-col items-center justify-center bg-foreground/65 ltr:mr-2 ltr:ml-3 rtl:mr-3 rtl:ml-2">
|
|
74
|
-
<Terminal className="size-4 text-background" />
|
|
20
|
+
<Terminal aria-hidden="true" className="size-4 text-background" />
|
|
75
21
|
</div>
|
|
76
22
|
{Object.keys(commands).map((command, idx) => {
|
|
77
23
|
return (
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Event } from '@duck-docs/lib/events'
|
|
2
|
+
import type { MdxCodeNodeProperties, NpmCommands } from '@duck-docs/types'
|
|
3
|
+
|
|
4
|
+
export type CodeBlockProps = React.HTMLAttributes<HTMLPreElement> & {
|
|
5
|
+
'data-theme'?: string
|
|
6
|
+
__rawString__?: MdxCodeNodeProperties['__rawString__']
|
|
7
|
+
__withMeta__?: boolean
|
|
8
|
+
__title__?: MdxCodeNodeProperties['__title__']
|
|
9
|
+
__event__?: Event['name']
|
|
10
|
+
} & NpmCommands
|
|
File without changes
|
|
@@ -1,32 +1,41 @@
|
|
|
1
1
|
import { cn } from '@gentleduck/libs/cn'
|
|
2
|
-
import type { FC } from 'react'
|
|
3
2
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
export function Table({ className, ...props }: React.HTMLAttributes<HTMLTableElement>) {
|
|
4
|
+
return (
|
|
5
|
+
<div className="my-6 w-full overflow-x-auto rounded-lg border">
|
|
6
|
+
<table
|
|
7
|
+
className={cn('relative w-full border-none text-sm [&_tbody_tr:last-child]:border-b-0', className)}
|
|
8
|
+
{...props}
|
|
9
|
+
/>
|
|
10
|
+
</div>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
12
13
|
|
|
13
|
-
export
|
|
14
|
-
<tr className={cn('m-0 border-b', className)} {...props} />
|
|
15
|
-
|
|
14
|
+
export function TableRow({ className, ...props }: React.HTMLAttributes<HTMLTableRowElement>) {
|
|
15
|
+
return <tr className={cn('m-0 border-b', className)} {...props} />
|
|
16
|
+
}
|
|
16
17
|
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
export function TableHeader({ className, ...props }: React.ThHTMLAttributes<HTMLTableCellElement>) {
|
|
19
|
+
return (
|
|
20
|
+
<th
|
|
21
|
+
className={cn(
|
|
22
|
+
'px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right',
|
|
23
|
+
className,
|
|
24
|
+
)}
|
|
25
|
+
scope="col"
|
|
26
|
+
{...props}
|
|
27
|
+
/>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
23
30
|
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
export function TableCell({ className, ...props }: React.HTMLAttributes<HTMLTableCellElement>) {
|
|
32
|
+
return (
|
|
33
|
+
<td
|
|
34
|
+
className={cn(
|
|
35
|
+
'whitespace-nowrap px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right',
|
|
36
|
+
className,
|
|
37
|
+
)}
|
|
38
|
+
{...props}
|
|
39
|
+
/>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '@gentleduck/libs/cn'
|
|
2
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@gentleduck/registry-ui
|
|
2
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@gentleduck/registry-ui/tabs'
|
|
3
3
|
|
|
4
4
|
export function Tab({ className, ...props }: React.ComponentProps<typeof Tabs>) {
|
|
5
5
|
return <Tabs className={cn('relative mt-6 w-full', className)} {...props} />
|
|
@@ -25,7 +25,10 @@ export function TabTrigger({ className, ...props }: React.ComponentProps<typeof
|
|
|
25
25
|
export function TabContent({ className, ...props }: React.ComponentProps<typeof TabsContent>) {
|
|
26
26
|
return (
|
|
27
27
|
<TabsContent
|
|
28
|
-
className={cn(
|
|
28
|
+
className={cn(
|
|
29
|
+
'relative [&>div[data-rehype-pretty-code-fragment]]:relative [&>div[data-rehype-pretty-code-fragment]]:my-3 [&>div[data-rehype-pretty-code-fragment]]:rounded-lg [&>div[data-rehype-pretty-code-fragment]]:bg-muted/40 [&_h3.font-heading]:font-semibold [&_h3.font-heading]:text-base',
|
|
30
|
+
className,
|
|
31
|
+
)}
|
|
29
32
|
{...props}
|
|
30
33
|
/>
|
|
31
34
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './typepography'
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { cn } from '@gentleduck/libs/cn'
|
|
2
|
+
import Image from 'next/image'
|
|
3
|
+
import type * as React from 'react'
|
|
4
|
+
import type { MdxComponentMap } from './mdx-component-registry.types'
|
|
5
|
+
import { Callout } from './mdx-components/callout'
|
|
6
|
+
import {
|
|
7
|
+
CodeBlock,
|
|
8
|
+
CodeBlockWrapper,
|
|
9
|
+
ComponentPreview,
|
|
10
|
+
ComponentSource,
|
|
11
|
+
MermaidBlock,
|
|
12
|
+
PreBlock,
|
|
13
|
+
} from './mdx-components/code'
|
|
14
|
+
import { FigcaptionBlock } from './mdx-components/code/figcaption-block'
|
|
15
|
+
import { ComponentsList } from './mdx-components/components-list'
|
|
16
|
+
import { Table, TableCell, TableHeader, TableRow } from './mdx-components/table'
|
|
17
|
+
import { Tab, TabContent, TabList, TabTrigger } from './mdx-components/tabs'
|
|
18
|
+
import { A, H1, H2, H3, H4, H5, H6, Hr, LinkBlock, LinkedCard, P } from './mdx-components/typography'
|
|
19
|
+
import { mdxIcons } from './mdx-icons'
|
|
20
|
+
|
|
21
|
+
type PreRendererProps = React.ComponentProps<typeof PreBlock> & {
|
|
22
|
+
__isMermaid__?: boolean
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const mdxBaseComponents = {
|
|
26
|
+
...mdxIcons,
|
|
27
|
+
a: A,
|
|
28
|
+
blockquote: ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => (
|
|
29
|
+
<blockquote className={cn('mt-6 border-l-2 pl-6 italic', className)} {...props} />
|
|
30
|
+
),
|
|
31
|
+
Callout,
|
|
32
|
+
CodeBlockWrapper,
|
|
33
|
+
ComponentPreview,
|
|
34
|
+
ComponentSource,
|
|
35
|
+
ComponentsList,
|
|
36
|
+
code: CodeBlock,
|
|
37
|
+
figcaption: FigcaptionBlock,
|
|
38
|
+
h1: H1,
|
|
39
|
+
h2: H2,
|
|
40
|
+
h3: H3,
|
|
41
|
+
h4: H4,
|
|
42
|
+
h5: H5,
|
|
43
|
+
h6: H6,
|
|
44
|
+
hr: Hr,
|
|
45
|
+
Image,
|
|
46
|
+
img: ({ className, alt, ...props }: React.ImgHTMLAttributes<HTMLImageElement>) => (
|
|
47
|
+
<img alt={alt} className={cn('rounded-md', className)} {...props} />
|
|
48
|
+
),
|
|
49
|
+
Link: LinkBlock,
|
|
50
|
+
LinkedCard,
|
|
51
|
+
li: (props: React.HTMLAttributes<HTMLElement>) => <li {...props} />,
|
|
52
|
+
MermaidDiagram: MermaidBlock,
|
|
53
|
+
ol: ({ className, ...props }: React.HTMLAttributes<HTMLOListElement>) => (
|
|
54
|
+
<ol className={cn('my-6 ml-7 flex list-decimal flex-col gap-2', className)} {...props} />
|
|
55
|
+
),
|
|
56
|
+
p: P,
|
|
57
|
+
pre: (props: PreRendererProps) => {
|
|
58
|
+
if (props.__isMermaid__) {
|
|
59
|
+
return <MermaidBlock {...props} className="my-0 border-none [&_*]:border-none" />
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return <PreBlock {...props} />
|
|
63
|
+
},
|
|
64
|
+
Step: ({ className, ...props }: React.ComponentProps<'h3'>) => (
|
|
65
|
+
<h3 className={cn('step scroll-m-20 font-heading font-semibold text-base tracking-tight', className)} {...props} />
|
|
66
|
+
),
|
|
67
|
+
Steps: ({ ...props }: React.ComponentProps<'div'>) => (
|
|
68
|
+
<div className="[&>h3]:step steps mb-12 ml-4 border-l pl-8 [counter-reset:step]" {...props} />
|
|
69
|
+
),
|
|
70
|
+
table: Table,
|
|
71
|
+
Tabs: Tab,
|
|
72
|
+
TabsContent: TabContent,
|
|
73
|
+
TabsList: TabList,
|
|
74
|
+
TabsTrigger: TabTrigger,
|
|
75
|
+
td: TableCell,
|
|
76
|
+
th: TableHeader,
|
|
77
|
+
tr: TableRow,
|
|
78
|
+
ul: ({ className, ...props }: React.HTMLAttributes<HTMLUListElement>) => (
|
|
79
|
+
<ul className={cn('my-6 ml-6 flex list-disc flex-col gap-2', className)} {...props} />
|
|
80
|
+
),
|
|
81
|
+
} satisfies MdxComponentMap
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MdxComponentMap } from './mdx-component-registry.types'
|
|
2
|
+
import { mdxBaseComponents } from './mdx-components-base'
|
|
3
|
+
import { mdxUiComponents } from './mdx-components-ui'
|
|
4
|
+
|
|
5
|
+
export const mdxComponents = {
|
|
6
|
+
...mdxBaseComponents,
|
|
7
|
+
...mdxUiComponents,
|
|
8
|
+
} satisfies MdxComponentMap
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@gentleduck/registry-ui/accordion'
|
|
2
|
+
import { Alert, AlertDescription, AlertTitle } from '@gentleduck/registry-ui/alert'
|
|
3
|
+
import { AspectRatio } from '@gentleduck/registry-ui/aspect-ratio'
|
|
4
|
+
import { Badge } from '@gentleduck/registry-ui/badge'
|
|
5
|
+
import { Button } from '@gentleduck/registry-ui/button'
|
|
6
|
+
import { Kbd } from '@gentleduck/registry-ui/kbd'
|
|
7
|
+
import type { MdxComponentMap } from './mdx-component-registry.types'
|
|
8
|
+
|
|
9
|
+
export const mdxUiComponents = {
|
|
10
|
+
Accordion,
|
|
11
|
+
AccordionContent,
|
|
12
|
+
AccordionItem,
|
|
13
|
+
AccordionTrigger,
|
|
14
|
+
Alert,
|
|
15
|
+
AlertDescription,
|
|
16
|
+
AlertTitle,
|
|
17
|
+
AspectRatio,
|
|
18
|
+
Badge,
|
|
19
|
+
Button,
|
|
20
|
+
Kbd,
|
|
21
|
+
} satisfies MdxComponentMap
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentType } from 'react'
|
|
2
|
+
import runtime from 'react/jsx-runtime'
|
|
3
|
+
import type { MdxComponentMap } from './mdx-component-registry.types'
|
|
4
|
+
|
|
5
|
+
export type CompiledMdxComponent = ComponentType<{ components: MdxComponentMap }>
|
|
6
|
+
|
|
7
|
+
export const useMDXComponent = (code: string): CompiledMdxComponent => {
|
|
8
|
+
const fn = new Function(code)
|
|
9
|
+
return fn({ ...runtime }).default as CompiledMdxComponent
|
|
10
|
+
}
|
|
@@ -1,107 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Alert, AlertDescription, AlertTitle } from '@gentleduck/registry-ui-duckui/alert'
|
|
6
|
-
import { AspectRatio } from '@gentleduck/registry-ui-duckui/aspect-ratio'
|
|
7
|
-
import { Badge } from '@gentleduck/registry-ui-duckui/badge'
|
|
8
|
-
import { Button } from '@gentleduck/registry-ui-duckui/button'
|
|
9
|
-
import { Kbd } from '@gentleduck/registry-ui-duckui/kbd'
|
|
10
|
-
import Image from 'next/image'
|
|
11
|
-
import type * as React from 'react'
|
|
12
|
-
import runtime from 'react/jsx-runtime'
|
|
13
|
-
import { Callout } from './mdx-components/callout'
|
|
14
|
-
import {
|
|
15
|
-
CodeBlock,
|
|
16
|
-
CodeBlockWrapper,
|
|
17
|
-
ComponentPreview,
|
|
18
|
-
ComponentSource,
|
|
19
|
-
MermaidBlock,
|
|
20
|
-
PreBlock,
|
|
21
|
-
} from './mdx-components/code'
|
|
22
|
-
import { FigcaptionBlock } from './mdx-components/code/figcaption-block'
|
|
23
|
-
import { ComponentsList } from './mdx-components/components-list'
|
|
24
|
-
import { Table, TableCell, TableHeader, TableRow } from './mdx-components/table'
|
|
25
|
-
import { Tab, TabContent, TabList, TabTrigger } from './mdx-components/tabs'
|
|
26
|
-
import { A, H1, H2, H3, H4, H5, H6, Hr, LinkBlock, LinkedCard, P } from './mdx-components/typepography'
|
|
27
|
-
import { mdxIcons } from './mdx-icons'
|
|
28
|
-
|
|
29
|
-
const useMDXComponent = (code: string) => {
|
|
30
|
-
const fn = new Function(code)
|
|
31
|
-
return fn({ ...runtime }).default
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const components = {
|
|
35
|
-
...mdxIcons,
|
|
36
|
-
Accordion,
|
|
37
|
-
AccordionContent,
|
|
38
|
-
AccordionItem,
|
|
39
|
-
AccordionTrigger,
|
|
40
|
-
Alert,
|
|
41
|
-
AlertDescription,
|
|
42
|
-
AlertTitle,
|
|
43
|
-
AspectRatio,
|
|
44
|
-
a: A,
|
|
45
|
-
Badge,
|
|
46
|
-
Button,
|
|
47
|
-
blockquote: ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => (
|
|
48
|
-
<blockquote className={cn('mt-6 border-l-2 pl-6 italic', className)} {...props} />
|
|
49
|
-
),
|
|
50
|
-
Callout,
|
|
51
|
-
CodeBlockWrapper,
|
|
52
|
-
ComponentPreview,
|
|
53
|
-
ComponentSource,
|
|
54
|
-
ComponentsList,
|
|
55
|
-
code: CodeBlock,
|
|
56
|
-
figcaption: FigcaptionBlock,
|
|
57
|
-
h1: H1,
|
|
58
|
-
h2: H2,
|
|
59
|
-
h3: H3,
|
|
60
|
-
h4: H4,
|
|
61
|
-
h5: H5,
|
|
62
|
-
h6: H6,
|
|
63
|
-
hr: Hr,
|
|
64
|
-
// span: SpanBlock,
|
|
65
|
-
Image,
|
|
66
|
-
img: ({ className, alt, ...props }: React.ImgHTMLAttributes<HTMLImageElement>) => (
|
|
67
|
-
<img alt={alt} className={cn('rounded-md', className)} {...props} />
|
|
68
|
-
),
|
|
69
|
-
Kbd: Kbd,
|
|
70
|
-
Link: LinkBlock,
|
|
71
|
-
LinkedCard,
|
|
72
|
-
li: ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => (
|
|
73
|
-
<li className={cn('mt-2', className)} {...props} />
|
|
74
|
-
),
|
|
75
|
-
ol: ({ className, ...props }: React.HTMLAttributes<HTMLOListElement>) => (
|
|
76
|
-
<ol className={cn('my-6 ml-7 list-decimal', className)} {...props} />
|
|
77
|
-
),
|
|
78
|
-
p: P,
|
|
79
|
-
MermaidDiagram: MermaidBlock,
|
|
80
|
-
pre: (props: any) => {
|
|
81
|
-
if (props.__isMermaid__) {
|
|
82
|
-
return <MermaidBlock {...props} className="my-0 border-none [&_*]:border-none" />
|
|
83
|
-
}
|
|
84
|
-
return <PreBlock {...props} />
|
|
85
|
-
},
|
|
86
|
-
Step: ({ className, ...props }: React.ComponentProps<'h3'>) => (
|
|
87
|
-
<h3 className={cn('step scroll-m-20 font-heading font-semibold text-xl tracking-tight', className)} {...props} />
|
|
88
|
-
),
|
|
89
|
-
Steps: ({ ...props }) => (
|
|
90
|
-
<div className="[&>h3]:step steps mb-12 ml-4 border-l pl-8 [counter-reset:step]" {...props} />
|
|
91
|
-
),
|
|
92
|
-
Tabs: Tab,
|
|
93
|
-
TabsContent: TabContent,
|
|
94
|
-
TabsList: TabList,
|
|
95
|
-
TabsTrigger: TabTrigger,
|
|
96
|
-
table: Table,
|
|
97
|
-
td: TableCell,
|
|
98
|
-
th: TableHeader,
|
|
99
|
-
tr: TableRow,
|
|
100
|
-
ul: ({ className, ...props }: React.HTMLAttributes<HTMLUListElement>) => (
|
|
101
|
-
<ul className={cn('my-6 ml-6 list-disc', className)} {...props} />
|
|
102
|
-
),
|
|
103
|
-
// FrameworkDocs,
|
|
104
|
-
}
|
|
3
|
+
import { mdxComponents } from './mdx-components-registry'
|
|
4
|
+
import { useMDXComponent } from './mdx-runtime'
|
|
105
5
|
|
|
106
6
|
interface MdxProps {
|
|
107
7
|
code: string
|
|
@@ -112,7 +12,7 @@ export function Mdx({ code }: MdxProps) {
|
|
|
112
12
|
|
|
113
13
|
return (
|
|
114
14
|
<div className="mdx">
|
|
115
|
-
<Component components={
|
|
15
|
+
<Component components={mdxComponents} />
|
|
116
16
|
</div>
|
|
117
17
|
)
|
|
118
18
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import { useDocsConfig } from '@duck-docs/context'
|
|
4
|
+
import type { SidebarNavItem } from '@duck-docs/types/nav'
|
|
4
5
|
import { cn } from '@gentleduck/libs/cn'
|
|
5
|
-
import { Button } from '@gentleduck/registry-ui
|
|
6
|
-
import { Drawer, DrawerContent, DrawerTrigger } from '@gentleduck/registry-ui
|
|
7
|
-
import { ScrollArea } from '@gentleduck/registry-ui
|
|
6
|
+
import { Button } from '@gentleduck/registry-ui/button'
|
|
7
|
+
import { Drawer, DrawerContent, DrawerHeader, DrawerTitle, DrawerTrigger } from '@gentleduck/registry-ui/drawer'
|
|
8
|
+
import { ScrollArea } from '@gentleduck/registry-ui/scroll-area'
|
|
8
9
|
import { PanelsTopLeft } from 'lucide-react'
|
|
9
10
|
import Link, { type LinkProps } from 'next/link'
|
|
11
|
+
import { usePathname } from 'next/navigation'
|
|
10
12
|
import * as React from 'react'
|
|
11
13
|
|
|
12
14
|
export function MobileNav() {
|
|
@@ -17,12 +19,16 @@ export function MobileNav() {
|
|
|
17
19
|
<Drawer onOpenChange={setOpen} open={open}>
|
|
18
20
|
<DrawerTrigger asChild>
|
|
19
21
|
<Button
|
|
22
|
+
aria-label="Open navigation menu"
|
|
20
23
|
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"
|
|
21
|
-
icon={<PanelsTopLeft />}
|
|
24
|
+
icon={<PanelsTopLeft aria-hidden="true" />}
|
|
22
25
|
size={'icon'}
|
|
23
26
|
variant="ghost"></Button>
|
|
24
27
|
</DrawerTrigger>
|
|
25
28
|
<DrawerContent className="pr-0 pb-4">
|
|
29
|
+
<DrawerHeader className="sr-only">
|
|
30
|
+
<DrawerTitle>Site navigation</DrawerTitle>
|
|
31
|
+
</DrawerHeader>
|
|
26
32
|
<ScrollArea>
|
|
27
33
|
<div className="hide-scroll my-4 h-[calc(100vh-8rem)] pb-10 pl-6">
|
|
28
34
|
<div className="flex flex-col space-y-3">
|
|
@@ -39,24 +45,7 @@ export function MobileNav() {
|
|
|
39
45
|
{docsConfig.sidebarNav.map((item, index) => (
|
|
40
46
|
<div className="flex flex-col space-y-3 pt-6" key={index}>
|
|
41
47
|
<h4 className="font-medium">{item.title}</h4>
|
|
42
|
-
{item
|
|
43
|
-
item.items.map((item) => (
|
|
44
|
-
<React.Fragment key={item.href}>
|
|
45
|
-
{!item.disabled &&
|
|
46
|
-
(item.href ? (
|
|
47
|
-
<MobileLink className="text-muted-foreground" href={item.href} onOpenChange={setOpen}>
|
|
48
|
-
{item.title}
|
|
49
|
-
{item.label && (
|
|
50
|
-
<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">
|
|
51
|
-
{item.label}
|
|
52
|
-
</span>
|
|
53
|
-
)}
|
|
54
|
-
</MobileLink>
|
|
55
|
-
) : (
|
|
56
|
-
item.title
|
|
57
|
-
))}
|
|
58
|
-
</React.Fragment>
|
|
59
|
-
))}
|
|
48
|
+
<MobileSidebarNavItems items={item.items ?? []} onOpenChange={setOpen} />
|
|
60
49
|
</div>
|
|
61
50
|
))}
|
|
62
51
|
</div>
|
|
@@ -67,6 +56,50 @@ export function MobileNav() {
|
|
|
67
56
|
)
|
|
68
57
|
}
|
|
69
58
|
|
|
59
|
+
function MobileSidebarNavItems({
|
|
60
|
+
items,
|
|
61
|
+
onOpenChange,
|
|
62
|
+
depth = 0,
|
|
63
|
+
}: {
|
|
64
|
+
items: SidebarNavItem[]
|
|
65
|
+
onOpenChange: (open: boolean) => void
|
|
66
|
+
depth?: number
|
|
67
|
+
}) {
|
|
68
|
+
if (!items.length) {
|
|
69
|
+
return null
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return (
|
|
73
|
+
<div className={cn('flex flex-col space-y-2', depth > 0 && 'ml-4 border-l pl-3')}>
|
|
74
|
+
{items.map((item, index) => {
|
|
75
|
+
const key = item.href ?? `${depth}-${index}-${item.title}`
|
|
76
|
+
const hasChildren = Boolean(item.items?.length)
|
|
77
|
+
|
|
78
|
+
return (
|
|
79
|
+
<div className="flex flex-col space-y-2" key={key}>
|
|
80
|
+
{!item.disabled &&
|
|
81
|
+
(item.href ? (
|
|
82
|
+
<MobileLink className="text-muted-foreground" href={item.href} onOpenChange={onOpenChange}>
|
|
83
|
+
{item.title}
|
|
84
|
+
{item.label && (
|
|
85
|
+
<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">
|
|
86
|
+
{item.label}
|
|
87
|
+
</span>
|
|
88
|
+
)}
|
|
89
|
+
</MobileLink>
|
|
90
|
+
) : (
|
|
91
|
+
<p className="text-muted-foreground text-sm">{item.title}</p>
|
|
92
|
+
))}
|
|
93
|
+
{hasChildren && (
|
|
94
|
+
<MobileSidebarNavItems depth={depth + 1} items={item.items ?? []} onOpenChange={onOpenChange} />
|
|
95
|
+
)}
|
|
96
|
+
</div>
|
|
97
|
+
)
|
|
98
|
+
})}
|
|
99
|
+
</div>
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
|
|
70
103
|
interface MobileLinkProps extends LinkProps {
|
|
71
104
|
onOpenChange?: (open: boolean) => void
|
|
72
105
|
children: React.ReactNode
|
|
@@ -74,8 +107,10 @@ interface MobileLinkProps extends LinkProps {
|
|
|
74
107
|
}
|
|
75
108
|
|
|
76
109
|
function MobileLink({ href, onOpenChange, className, children, ...props }: MobileLinkProps) {
|
|
110
|
+
const pathname = usePathname()
|
|
77
111
|
return (
|
|
78
112
|
<Link
|
|
113
|
+
aria-current={pathname === href ? 'page' : undefined}
|
|
79
114
|
className={cn(className)}
|
|
80
115
|
href={href}
|
|
81
116
|
scroll
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useSiteConfig } from '@duck-docs/context'
|
|
4
4
|
import { useMetaColor } from '@duck-docs/hooks/use-meta-colors'
|
|
5
|
-
import { Button } from '@gentleduck/registry-ui
|
|
5
|
+
import { Button } from '@gentleduck/registry-ui/button'
|
|
6
6
|
import { MoonIcon, SunIcon } from 'lucide-react'
|
|
7
7
|
import { useTheme } from 'next-themes'
|
|
8
8
|
import * as React from 'react'
|
|
@@ -25,12 +25,12 @@ export function ModeSwitcher() {
|
|
|
25
25
|
|
|
26
26
|
return (
|
|
27
27
|
<Button
|
|
28
|
-
aria-label=
|
|
28
|
+
aria-label={`Switch to ${resolvedTheme === 'dark' ? 'light' : 'dark'} theme`}
|
|
29
29
|
className="group/toggle"
|
|
30
30
|
icon={
|
|
31
31
|
<>
|
|
32
|
-
<SunIcon className="hidden [html.dark_&]:block" />
|
|
33
|
-
<MoonIcon className="hidden [html.light_&]:block" />
|
|
32
|
+
<SunIcon aria-hidden="true" className="hidden [html.dark_&]:block" />
|
|
33
|
+
<MoonIcon aria-hidden="true" className="hidden [html.light_&]:block" />
|
|
34
34
|
</>
|
|
35
35
|
}
|
|
36
36
|
onClick={toggleTheme}
|