@xyd-js/components 0.1.0-xyd.10 → 0.1.0-xyd.13
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/.idea/git_toolbox_blame.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/xyd-components.iml +12 -0
- package/CHANGELOG.md +22 -0
- package/TODO.md +1 -0
- package/content.ts +0 -2
- package/dist/CTABanner-BD4wweO5.js +2 -0
- package/dist/CTABanner-BD4wweO5.js.map +1 -0
- package/dist/CTABanner-DLG0_gv8.js +2 -0
- package/dist/CTABanner-DLG0_gv8.js.map +1 -0
- package/dist/CTABanner-DpPtA-FL.js +2 -0
- package/dist/CTABanner-DpPtA-FL.js.map +1 -0
- package/dist/CodeSample--qfqZ1hL.js +2 -0
- package/dist/CodeSample--qfqZ1hL.js.map +1 -0
- package/dist/CodeSample-CqFaFwwz.js +2 -0
- package/dist/CodeSample-CqFaFwwz.js.map +1 -0
- package/dist/CodeSample-GbqwRbcO.js +2 -0
- package/dist/CodeSample-GbqwRbcO.js.map +1 -0
- package/dist/HomeView-BZdY0g_7.js +2 -0
- package/dist/{HomeView-ACBdUgyz.js.map → HomeView-BZdY0g_7.js.map} +1 -1
- package/dist/HomeView-C_mEMzjV.js +2 -0
- package/dist/{HomeView-B0ATNUF1.js.map → HomeView-C_mEMzjV.js.map} +1 -1
- package/dist/HomeView-RATm-3zT.js +2 -0
- package/dist/{HomeView-CHSb4HL6.js.map → HomeView-RATm-3zT.js.map} +1 -1
- package/dist/Icon-BkXdTctK.js +2 -0
- package/dist/Icon-BkXdTctK.js.map +1 -0
- package/dist/Icon-BoKcRZAF.js +2 -0
- package/dist/Icon-BoKcRZAF.js.map +1 -0
- package/dist/Icon-CouPZRkJ.js +2 -0
- package/dist/Icon-CouPZRkJ.js.map +1 -0
- package/dist/Text-B-E3eaWW.js +2 -0
- package/dist/Text-B-E3eaWW.js.map +1 -0
- package/dist/Text-B5Ba_pci.js +2 -0
- package/dist/Text-B5Ba_pci.js.map +1 -0
- package/dist/Text-QH4jjPUM.js +2 -0
- package/dist/Text-QH4jjPUM.js.map +1 -0
- package/dist/Update-BlhP2VFR.js +2 -0
- package/dist/Update-BlhP2VFR.js.map +1 -0
- package/dist/Update-CMM38Snc.js +2 -0
- package/dist/Update-CMM38Snc.js.map +1 -0
- package/dist/Update-D5e_yqty.js +2 -0
- package/dist/Update-D5e_yqty.js.map +1 -0
- package/dist/VideoGuide-C5aW4OXW.js +2 -0
- package/dist/VideoGuide-C5aW4OXW.js.map +1 -0
- package/dist/VideoGuide-CoQXlHjQ.js +2 -0
- package/dist/VideoGuide-CoQXlHjQ.js.map +1 -0
- package/dist/VideoGuide-CwkedH8b.js +2 -0
- package/dist/VideoGuide-CwkedH8b.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-9wcO9jN6.js +4 -0
- package/dist/_rollupPluginBabelHelpers-9wcO9jN6.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-CiqSP2w-.js +4 -0
- package/dist/_rollupPluginBabelHelpers-CiqSP2w-.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-DmvUE1MU.js +4 -0
- package/dist/_rollupPluginBabelHelpers-DmvUE1MU.js.map +1 -0
- package/dist/brand.js +1 -1
- package/dist/brand.js.map +1 -1
- package/dist/coder/themes/cosmo-light.js.map +1 -1
- package/dist/coder.d.ts +29 -9
- package/dist/coder.js +1 -1
- package/dist/coder.js.map +1 -1
- package/dist/content.d.ts +264 -201
- package/dist/content.js +1 -1
- package/dist/content.js.map +1 -1
- package/dist/index.css +260 -210
- package/dist/layouts.d.ts +20 -21
- package/dist/layouts.js +1 -1
- package/dist/layouts.js.map +1 -1
- package/dist/pages.js +1 -1
- package/dist/pages.js.map +1 -1
- package/dist/system.d.ts +10 -0
- package/dist/system.js +2 -0
- package/dist/system.js.map +1 -0
- package/dist/tslib.es6-Bb9zBh0L.js +2 -0
- package/dist/{tslib.es6-BBkx4Se1.js.map → tslib.es6-Bb9zBh0L.js.map} +1 -1
- package/dist/tslib.es6-Bd9lzVn6.js +2 -0
- package/dist/{tslib.es6-BF6ZLEXa.js.map → tslib.es6-Bd9lzVn6.js.map} +1 -1
- package/dist/tslib.es6-DwnOrHRg.js +2 -0
- package/dist/{tslib.es6-BOZCDgb8.js.map → tslib.es6-DwnOrHRg.js.map} +1 -1
- package/dist/views.js +1 -1
- package/dist/writer.d.ts +409 -77
- package/dist/writer.js +1 -1
- package/dist/writer.js.map +1 -1
- package/docs/.nojekyll +1 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +22 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1640 -0
- package/docs/functions/GuideCard.html +6 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +2 -0
- package/docs/interfaces/GuideCardProps.html +18 -0
- package/docs/modules.html +1 -0
- package/index.ts +0 -1
- package/package.json +10 -6
- package/project.json +677 -0
- package/rollup.config.js +30 -20
- package/src/brand/Button/Button.styles.tsx +0 -3
- package/src/brand/CTABanner/CTABanner.styles.tsx +2 -4
- package/src/brand/Footer/Footer.styles.tsx +0 -3
- package/src/coder/Code/Code.styles.tsx +132 -33
- package/src/coder/Code/Code.tsx +129 -38
- package/src/coder/Code/CodeLoader.tsx +3 -3
- package/src/coder/Code/annotations.tsx +28 -8
- package/src/coder/Code/highlight.ts +38 -0
- package/src/coder/Code/index.ts +2 -1
- package/src/coder/CodeCopy/CodeCopy.styles.tsx +13 -11
- package/src/coder/CodeCopy/CodeCopy.tsx +5 -3
- package/src/coder/CodeSample/CodeSample.tsx +83 -27
- package/src/coder/CodeTabs/CodeTabs.styles.tsx +111 -94
- package/src/coder/CodeTabs/CodeTabs.tsx +69 -51
- package/src/coder/CodeTheme/CodeTheme.tsx +89 -49
- package/src/coder/CodeTheme/index.ts +0 -1
- package/src/coder/CoderProvider.tsx +26 -0
- package/src/coder/index.ts +8 -4
- package/src/content/ContentDecoator.styles.tsx +113 -0
- package/src/content/ContentDecorator.tsx +17 -0
- package/src/content/GridDecorator.styles.tsx +67 -0
- package/src/content/GridDecorator.tsx +21 -0
- package/src/content/ReactContent.tsx +575 -0
- package/src/content/index.ts +10 -2
- package/src/icons/index.ts +0 -0
- package/src/kit/Loader/Loader.styles.tsx +53 -0
- package/src/kit/Loader/Loader.tsx +22 -0
- package/src/kit/index.ts +1 -0
- package/src/layouts/LayoutPrimary/LayoutPrimary.styles.tsx +270 -306
- package/src/layouts/LayoutPrimary/LayoutPrimary.tsx +171 -91
- package/src/layouts/LayoutPrimary/index.ts +0 -2
- package/src/layouts/index.ts +0 -7
- package/src/system/SearchButton/SearchButton.styles.tsx +86 -0
- package/src/system/SearchButton/SearchButton.tsx +116 -0
- package/src/system/SearchButton/index.ts +1 -0
- package/src/system/index.ts +1 -0
- package/src/writer/Anchor/Anchor.styles.tsx +11 -0
- package/src/{content → writer}/Anchor/Anchor.tsx +20 -22
- package/src/writer/Anchor/index.tsx +1 -0
- package/src/writer/Badge/Badge.styles.tsx +37 -27
- package/src/writer/Badge/Badge.tsx +34 -48
- package/src/writer/Banner/Banner.styles.tsx +91 -0
- package/src/writer/Banner/Banner.tsx +70 -0
- package/src/writer/Banner/index.ts +1 -0
- package/src/writer/Blockquote/Blockquote.styles.tsx +6 -4
- package/src/writer/Blockquote/Blockquote.tsx +5 -2
- package/src/writer/Breadcrumbs/Breadcrumbs.styles.ts +25 -25
- package/src/writer/Breadcrumbs/Breadcrumbs.tsx +18 -12
- package/src/writer/Button/Button.styles.tsx +137 -0
- package/src/writer/Button/Button.tsx +75 -0
- package/src/writer/Button/index.ts +2 -0
- package/src/writer/Callout/Callout.styles.tsx +35 -42
- package/src/writer/Callout/Callout.tsx +30 -15
- package/src/writer/Card/Card.styles.tsx +47 -0
- package/src/writer/Card/Card.tsx +69 -0
- package/src/writer/Card/index.ts +1 -0
- package/src/writer/Code/Code.styles.tsx +12 -11
- package/src/writer/Code/Code.tsx +6 -3
- package/src/writer/ColorSchemeButton/ColorSchemeButton.tsx +172 -0
- package/src/writer/ColorSchemeButton/index.ts +1 -0
- package/src/writer/Details/Details.styles.tsx +87 -98
- package/src/writer/Details/Details.tsx +65 -44
- package/src/writer/Example/index.tsx +5 -0
- package/src/writer/GuideCard/GuideCard.styles.tsx +100 -103
- package/src/writer/GuideCard/GuideCard.tsx +72 -37
- package/src/writer/Heading/Heading.styles.tsx +76 -60
- package/src/writer/Heading/Heading.tsx +92 -22
- package/src/writer/Hr/Hr.styles.tsx +3 -1
- package/src/writer/Hr/Hr.tsx +2 -5
- package/src/writer/Icon/Icon.tsx +48 -0
- package/src/writer/Icon/index.ts +1 -0
- package/src/writer/Image/Image.styles.tsx +9 -0
- package/src/writer/Image/Image.tsx +19 -0
- package/src/writer/Image/index.ts +1 -0
- package/src/writer/List/List.styles.tsx +47 -0
- package/src/writer/List/List.tsx +29 -0
- package/src/writer/List/index.ts +4 -0
- package/src/writer/NavLinks/NavLinks.styles.ts +26 -26
- package/src/writer/NavLinks/NavLinks.tsx +65 -18
- package/src/writer/Pre/Pre.styles.tsx +8 -6
- package/src/writer/Pre/Pre.tsx +3 -2
- package/src/writer/Steps/Steps.styles.tsx +27 -24
- package/src/writer/Steps/Steps.tsx +38 -8
- package/src/writer/Table/Table.styles.tsx +65 -34
- package/src/writer/Table/Table.tsx +121 -11
- package/src/writer/Table/index.ts +0 -11
- package/src/writer/Tabs/Tabs.styles.tsx +51 -55
- package/src/writer/Tabs/Tabs.tsx +30 -23
- package/src/writer/Text/Text.styles.tsx +66 -0
- package/src/writer/Text/Text.tsx +79 -0
- package/src/writer/Text/index.ts +3 -0
- package/src/writer/TocCard/TocCard.module.css +44 -0
- package/src/writer/TocCard/TocCard.tsx +42 -0
- package/src/writer/TocCard/index.ts +3 -0
- package/src/writer/UnderlineNav/Tabs.tsx +51 -0
- package/src/writer/UnderlineNav/TabsPrimary.styles.tsx +184 -0
- package/src/writer/UnderlineNav/TabsPrimary.tsx +209 -0
- package/src/writer/UnderlineNav/TabsSecondary.styles.tsx +77 -0
- package/src/writer/UnderlineNav/TabsSecondary.tsx +171 -0
- package/src/writer/UnderlineNav/UnderlineNav.styles.tsx +165 -31
- package/src/writer/UnderlineNav/UnderlineNav.tsx +257 -22
- package/src/writer/UnderlineNav/index.ts +2 -1
- package/src/writer/UnderlineNav/useValueChange.ts +60 -0
- package/src/writer/Update/Update.styles.tsx +33 -0
- package/src/writer/Update/Update.tsx +37 -0
- package/src/writer/Update/index.ts +1 -0
- package/src/writer/VideoGuide/VideoGuide.module.css +105 -0
- package/src/writer/VideoGuide/VideoGuide.tsx +75 -0
- package/src/writer/VideoGuide/index.ts +1 -0
- package/src/writer/index.ts +23 -1
- package/tsconfig.json +9 -3
- package/types.d.ts +50 -0
- package/writer.ts +1 -1
- package/dist/CTABanner-4FVIoaTR.js +0 -2
- package/dist/CTABanner-4FVIoaTR.js.map +0 -1
- package/dist/CTABanner-BQx2SLf8.js +0 -2
- package/dist/CTABanner-BQx2SLf8.js.map +0 -1
- package/dist/CTABanner-C6afsXoE.js +0 -2
- package/dist/CTABanner-C6afsXoE.js.map +0 -1
- package/dist/CTABanner-CEKs-Hb-.js +0 -2
- package/dist/CTABanner-CEKs-Hb-.js.map +0 -1
- package/dist/CTABanner-CUNcTr6s.js +0 -2
- package/dist/CTABanner-CUNcTr6s.js.map +0 -1
- package/dist/CTABanner-D02aIAsD.js +0 -2
- package/dist/CTABanner-D02aIAsD.js.map +0 -1
- package/dist/CTABanner-Dm3tUG3I.js +0 -2
- package/dist/CTABanner-Dm3tUG3I.js.map +0 -1
- package/dist/CTABanner-MCOcVowa.js +0 -2
- package/dist/CTABanner-MCOcVowa.js.map +0 -1
- package/dist/CTABanner-X6K49gSr.js +0 -2
- package/dist/CTABanner-X6K49gSr.js.map +0 -1
- package/dist/CodeSample-B9VUhTKF.js +0 -2
- package/dist/CodeSample-B9VUhTKF.js.map +0 -1
- package/dist/CodeSample-BSXeFy0x.js +0 -2
- package/dist/CodeSample-BSXeFy0x.js.map +0 -1
- package/dist/CodeSample-BwP208sQ.js +0 -2
- package/dist/CodeSample-BwP208sQ.js.map +0 -1
- package/dist/CodeSample-CK-CQYrV.js +0 -2
- package/dist/CodeSample-CK-CQYrV.js.map +0 -1
- package/dist/CodeSample-CUemtj_W.js +0 -2
- package/dist/CodeSample-CUemtj_W.js.map +0 -1
- package/dist/CodeSample-D0iKih-A.js +0 -2
- package/dist/CodeSample-D0iKih-A.js.map +0 -1
- package/dist/CodeSample-D33vTa6M.js +0 -2
- package/dist/CodeSample-D33vTa6M.js.map +0 -1
- package/dist/CodeSample-DUSx2KBt.js +0 -2
- package/dist/CodeSample-DUSx2KBt.js.map +0 -1
- package/dist/CodeSample-P4yxkHPW.js +0 -2
- package/dist/CodeSample-P4yxkHPW.js.map +0 -1
- package/dist/HomeView-ACBdUgyz.js +0 -2
- package/dist/HomeView-B0ATNUF1.js +0 -2
- package/dist/HomeView-CHSb4HL6.js +0 -2
- package/dist/HomeView-COJrg8Ju.js +0 -2
- package/dist/HomeView-COJrg8Ju.js.map +0 -1
- package/dist/HomeView-Cun4apuy.js +0 -2
- package/dist/HomeView-Cun4apuy.js.map +0 -1
- package/dist/HomeView-D4DXEOOn.js +0 -2
- package/dist/HomeView-D4DXEOOn.js.map +0 -1
- package/dist/HomeView-DaH1PSBB.js +0 -2
- package/dist/HomeView-DaH1PSBB.js.map +0 -1
- package/dist/HomeView-O_lj2c2t.js +0 -2
- package/dist/HomeView-O_lj2c2t.js.map +0 -1
- package/dist/HomeView-_Nu2RcOM.js +0 -2
- package/dist/HomeView-_Nu2RcOM.js.map +0 -1
- package/dist/UnderlineNav-3-KptDYD.js +0 -2
- package/dist/UnderlineNav-3-KptDYD.js.map +0 -1
- package/dist/UnderlineNav-BCyB0G5d.js +0 -2
- package/dist/UnderlineNav-BCyB0G5d.js.map +0 -1
- package/dist/UnderlineNav-BEhDJk0H.js +0 -2
- package/dist/UnderlineNav-BEhDJk0H.js.map +0 -1
- package/dist/UnderlineNav-BqZ2xAp7.js +0 -2
- package/dist/UnderlineNav-BqZ2xAp7.js.map +0 -1
- package/dist/UnderlineNav-C2-4Vyj8.js +0 -2
- package/dist/UnderlineNav-C2-4Vyj8.js.map +0 -1
- package/dist/UnderlineNav-Co08Gykm.js +0 -2
- package/dist/UnderlineNav-Co08Gykm.js.map +0 -1
- package/dist/UnderlineNav-DC3UVmnZ.js +0 -2
- package/dist/UnderlineNav-DC3UVmnZ.js.map +0 -1
- package/dist/UnderlineNav-DsRYwuGB.js +0 -2
- package/dist/UnderlineNav-DsRYwuGB.js.map +0 -1
- package/dist/UnderlineNav-FbclXKUW.js +0 -2
- package/dist/UnderlineNav-FbclXKUW.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-BEouSrrZ.js +0 -2
- package/dist/_rollupPluginBabelHelpers-BEouSrrZ.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-BHehKRBq.js +0 -2
- package/dist/_rollupPluginBabelHelpers-BHehKRBq.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-Bunpz22T.js +0 -2
- package/dist/_rollupPluginBabelHelpers-Bunpz22T.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-CVblpRvU.js +0 -2
- package/dist/_rollupPluginBabelHelpers-CVblpRvU.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-CxmswfqM.js +0 -2
- package/dist/_rollupPluginBabelHelpers-CxmswfqM.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-D0XU6lDu.js +0 -2
- package/dist/_rollupPluginBabelHelpers-D0XU6lDu.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-DQJTK9EO.js +0 -2
- package/dist/_rollupPluginBabelHelpers-DQJTK9EO.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-DuRQdJ01.js +0 -2
- package/dist/_rollupPluginBabelHelpers-DuRQdJ01.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-tRAa4O0f.js +0 -2
- package/dist/_rollupPluginBabelHelpers-tRAa4O0f.js.map +0 -1
- package/dist/index-B0FncPxO.js +0 -2
- package/dist/index-B0FncPxO.js.map +0 -1
- package/dist/index-BEm-xkm-.js +0 -2
- package/dist/index-BEm-xkm-.js.map +0 -1
- package/dist/index-BHwtxG27.js +0 -2
- package/dist/index-BHwtxG27.js.map +0 -1
- package/dist/index-BTcmIG47.js +0 -2
- package/dist/index-BTcmIG47.js.map +0 -1
- package/dist/index-BbIMmTvo.js +0 -2
- package/dist/index-BbIMmTvo.js.map +0 -1
- package/dist/index-CNkHt1r7.js +0 -2
- package/dist/index-CNkHt1r7.js.map +0 -1
- package/dist/index-D0XuyFm7.js +0 -2
- package/dist/index-D0XuyFm7.js.map +0 -1
- package/dist/index-DBspcqWq.js +0 -2
- package/dist/index-DBspcqWq.js.map +0 -1
- package/dist/index-DVBO4gYE.js +0 -2
- package/dist/index-DVBO4gYE.js.map +0 -1
- package/dist/tslib.es6-BBkx4Se1.js +0 -2
- package/dist/tslib.es6-BF6ZLEXa.js +0 -2
- package/dist/tslib.es6-BOZCDgb8.js +0 -2
- package/dist/tslib.es6-CNVK7Xcu.js +0 -2
- package/dist/tslib.es6-CNVK7Xcu.js.map +0 -1
- package/dist/tslib.es6-Cjl5tesf.js +0 -2
- package/dist/tslib.es6-Cjl5tesf.js.map +0 -1
- package/dist/tslib.es6-DEH7Dkgy.js +0 -2
- package/dist/tslib.es6-DEH7Dkgy.js.map +0 -1
- package/dist/tslib.es6-DTeJ7dWi.js +0 -2
- package/dist/tslib.es6-DTeJ7dWi.js.map +0 -1
- package/dist/tslib.es6-U9-f6pA7.js +0 -2
- package/dist/tslib.es6-U9-f6pA7.js.map +0 -1
- package/dist/tslib.es6-cb69JjeS.js +0 -2
- package/dist/tslib.es6-cb69JjeS.js.map +0 -1
- package/src/content/Anchor/Anchor.styles.tsx +0 -5
- package/src/content/Anchor/index.tsx +0 -3
- package/src/content/Content/Content.styles.tsx +0 -9
- package/src/content/Content/Content.tsx +0 -13
- package/src/content/Content/index.tsx +0 -3
- package/src/content/Content.tsx +0 -179
- package/src/content/Subtitle/Subtitle.styles.ts +0 -8
- package/src/content/Subtitle/Subtitle.tsx +0 -12
- package/src/content/Subtitle/index.tsx +0 -3
- package/src/layouts/Layout.styles.tsx +0 -155
- package/src/layouts/Layout.tsx +0 -119
- package/src/ui/Loader/Loader.styles.tsx +0 -54
- package/src/ui/Loader/Loader.tsx +0 -26
- package/src/ui/index.ts +0 -1
- package/src/writer/Icon/index.tsx +0 -355
- package/src/writer/Table/TableV2.styles.tsx +0 -117
- package/src/writer/Table/TableV2.tsx +0 -83
- /package/src/{ui → kit}/TODO.md +0 -0
package/dist/writer.d.ts
CHANGED
|
@@ -1,101 +1,269 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
|
|
3
|
+
declare const Anchor: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
4
|
+
newWindow?: boolean;
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
7
|
+
|
|
3
8
|
interface BadgeProps {
|
|
9
|
+
/**
|
|
10
|
+
* The class name of the badge.
|
|
11
|
+
*/
|
|
4
12
|
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The children of the badge.
|
|
15
|
+
*/
|
|
5
16
|
children?: React.ReactNode;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The size of the badge.
|
|
19
|
+
*/
|
|
20
|
+
size?: "sm" | "xs";
|
|
21
|
+
/**
|
|
22
|
+
* The kind of the badge.
|
|
23
|
+
*/
|
|
24
|
+
kind?: "warning" | "info" | "default";
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Badge component is used to display a badge.
|
|
28
|
+
*
|
|
29
|
+
* @group Components
|
|
30
|
+
*/
|
|
9
31
|
declare function Badge({ className, children, size, kind }: BadgeProps): React.JSX.Element;
|
|
10
32
|
|
|
33
|
+
interface BannerProps {
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
kind?: "secondary";
|
|
36
|
+
label?: string;
|
|
37
|
+
href?: string;
|
|
38
|
+
icon?: React.ReactNode | string;
|
|
39
|
+
}
|
|
40
|
+
declare function Banner(props: BannerProps): React.JSX.Element;
|
|
41
|
+
declare namespace Banner {
|
|
42
|
+
var Secondary: (props: BannerProps) => React.JSX.Element;
|
|
43
|
+
}
|
|
44
|
+
|
|
11
45
|
interface BlockquoteProps {
|
|
46
|
+
className?: string;
|
|
12
47
|
children: React.ReactNode;
|
|
13
48
|
}
|
|
14
|
-
declare function Blockquote({ children }: BlockquoteProps): React.JSX.Element;
|
|
49
|
+
declare function Blockquote({ className, children }: BlockquoteProps): React.JSX.Element;
|
|
15
50
|
|
|
16
51
|
interface BreadcrumbsProps {
|
|
52
|
+
className?: string;
|
|
17
53
|
items: {
|
|
18
54
|
title: string;
|
|
19
55
|
href?: string;
|
|
20
56
|
}[];
|
|
21
57
|
}
|
|
22
|
-
declare function Breadcrumbs(
|
|
58
|
+
declare function Breadcrumbs({ className, items }: BreadcrumbsProps): ReactElement;
|
|
59
|
+
|
|
60
|
+
interface ButtonProps {
|
|
61
|
+
children?: React.ReactNode;
|
|
62
|
+
kind?: "primary" | "secondary" | "tertiary" | undefined;
|
|
63
|
+
theme?: "ghost";
|
|
64
|
+
size?: "sm" | "md" | "lg";
|
|
65
|
+
className?: string;
|
|
66
|
+
onClick?: () => void;
|
|
67
|
+
disabled?: boolean;
|
|
68
|
+
icon?: React.ReactElement;
|
|
69
|
+
iconPosition?: "left" | "right";
|
|
70
|
+
href?: string;
|
|
71
|
+
}
|
|
72
|
+
declare function Button({ children, kind, theme, size, className, onClick, disabled, icon, iconPosition, href }: ButtonProps): React.JSX.Element;
|
|
23
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Props for the Callout component
|
|
76
|
+
*/
|
|
24
77
|
interface CalloutProps {
|
|
78
|
+
/** Additional CSS class name to be applied to the callout */
|
|
79
|
+
className?: string;
|
|
80
|
+
/** Content to be displayed inside the callout */
|
|
25
81
|
children: React.ReactNode;
|
|
26
82
|
}
|
|
27
|
-
|
|
83
|
+
/**
|
|
84
|
+
* A Callout component that displays important information or notices in a visually distinct way.
|
|
85
|
+
* It includes an info icon and a message area for content.
|
|
86
|
+
*
|
|
87
|
+
* @category Component
|
|
88
|
+
*/
|
|
89
|
+
declare function Callout({ className, children }: CalloutProps): React.JSX.Element;
|
|
90
|
+
|
|
91
|
+
interface CardProps {
|
|
92
|
+
title: string;
|
|
93
|
+
href?: string;
|
|
94
|
+
link?: React.ElementType;
|
|
95
|
+
description?: string;
|
|
96
|
+
imgSrc?: string;
|
|
97
|
+
imgAlt?: string;
|
|
98
|
+
shadow?: "md";
|
|
99
|
+
}
|
|
100
|
+
declare function Card(props: CardProps): React.JSX.Element;
|
|
28
101
|
|
|
29
102
|
interface CodeProps {
|
|
103
|
+
className?: string;
|
|
30
104
|
children: React.ReactNode;
|
|
31
105
|
}
|
|
32
|
-
declare function Code({ children }: CodeProps): React.JSX.Element;
|
|
106
|
+
declare function Code({ className, children }: CodeProps): React.JSX.Element;
|
|
107
|
+
|
|
108
|
+
declare function ColorSchemeButton(): React.JSX.Element;
|
|
109
|
+
declare function useColorScheme(): (string | (() => void))[];
|
|
33
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Base interface for all Details component variants
|
|
113
|
+
*/
|
|
34
114
|
interface BaseDetailsProps {
|
|
115
|
+
/** Content to be displayed inside the details element */
|
|
35
116
|
children: React.ReactNode;
|
|
117
|
+
/** Label text displayed in the summary */
|
|
36
118
|
label: string;
|
|
119
|
+
/** Optional icon element to be displayed in the summary */
|
|
37
120
|
icon?: React.ReactElement;
|
|
121
|
+
/** Optional CSS class name for custom styling */
|
|
122
|
+
className?: string;
|
|
38
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Props for the tertiary variant of the Details component
|
|
126
|
+
*/
|
|
39
127
|
interface TertiaryDetailsProps extends BaseDetailsProps {
|
|
128
|
+
/** Specifies the tertiary variant */
|
|
40
129
|
kind: "tertiary";
|
|
130
|
+
/** Title text or element displayed in the summary */
|
|
41
131
|
title: string | React.ReactNode;
|
|
42
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Props for the secondary variant of the Details component
|
|
135
|
+
*/
|
|
43
136
|
interface SecondaryDetailsProps extends BaseDetailsProps {
|
|
137
|
+
/** Specifies the secondary variant */
|
|
44
138
|
kind: "secondary";
|
|
139
|
+
/** Title text or element displayed in the summary */
|
|
45
140
|
title: string | React.ReactNode;
|
|
46
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Props for the primary variant of the Details component
|
|
144
|
+
*/
|
|
47
145
|
interface PrimaryDetailsProps extends BaseDetailsProps {
|
|
146
|
+
/** Specifies the primary variant (default) */
|
|
48
147
|
kind?: "primary";
|
|
49
148
|
}
|
|
149
|
+
/** Union type of all possible Details component variants */
|
|
50
150
|
type DetailsProps = PrimaryDetailsProps | SecondaryDetailsProps | TertiaryDetailsProps;
|
|
51
|
-
|
|
151
|
+
/**
|
|
152
|
+
* A collapsible details component that supports three variants: primary, secondary, and tertiary.
|
|
153
|
+
* Each variant has a different visual style and structure.
|
|
154
|
+
*
|
|
155
|
+
* @param props - The component props
|
|
156
|
+
* @returns A details element with collapsible content
|
|
157
|
+
*
|
|
158
|
+
* @category Component
|
|
159
|
+
*/
|
|
160
|
+
declare function Details(props: DetailsProps): React.ReactElement;
|
|
52
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Props for the GuideCard component
|
|
164
|
+
*/
|
|
53
165
|
interface GuideCardProps {
|
|
166
|
+
/** Content to be displayed in the card body */
|
|
54
167
|
children: React.ReactNode;
|
|
168
|
+
/** URL the card links to */
|
|
55
169
|
href: string;
|
|
170
|
+
/** Title displayed at the top of the card */
|
|
56
171
|
title: string;
|
|
172
|
+
/** Optional icon displayed to the left of the content */
|
|
57
173
|
icon?: React.ReactNode;
|
|
174
|
+
/** Visual style variant of the card */
|
|
58
175
|
kind?: "secondary";
|
|
176
|
+
/** Size variant of the card */
|
|
59
177
|
size?: "sm" | "md";
|
|
60
|
-
|
|
61
|
-
|
|
178
|
+
/** Additional CSS class names to apply to the card */
|
|
179
|
+
className?: string;
|
|
180
|
+
/** Additional props to pass to the link element */
|
|
181
|
+
as?: React.ElementType;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* A card component that displays content with a title and optional icon.
|
|
185
|
+
* The entire card is clickable and links to the specified URL.
|
|
186
|
+
*
|
|
187
|
+
* @category Component
|
|
188
|
+
*/
|
|
189
|
+
declare function GuideCard({ children, href, icon, title, kind, size, className, as, }: GuideCardProps): React.JSX.Element;
|
|
62
190
|
declare namespace GuideCard {
|
|
63
191
|
var List: ({ children }: {
|
|
64
192
|
children: React.ReactNode;
|
|
65
193
|
}) => React.JSX.Element;
|
|
66
194
|
}
|
|
67
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Props for the Heading component
|
|
198
|
+
* @interface HeadingProps
|
|
199
|
+
*/
|
|
68
200
|
interface HeadingProps {
|
|
201
|
+
/** Content to be rendered inside the heading */
|
|
69
202
|
children: React.ReactNode;
|
|
203
|
+
/** The size of the heading (1-6, corresponding to h1-h6) */
|
|
70
204
|
size: 1 | 2 | 3 | 4 | 5 | 6;
|
|
205
|
+
/** Optional HTML element to render as (div or span) */
|
|
71
206
|
as?: "div" | "span";
|
|
207
|
+
/** Optional ID for the heading element */
|
|
72
208
|
id?: string;
|
|
209
|
+
/** Optional visual style variant */
|
|
210
|
+
kind?: "muted";
|
|
211
|
+
/** Optional click handler */
|
|
73
212
|
onClick?: () => void;
|
|
74
|
-
|
|
75
|
-
|
|
213
|
+
/** Optional additional CSS class name */
|
|
214
|
+
className?: string;
|
|
215
|
+
/** Optional active state */
|
|
216
|
+
active?: boolean;
|
|
217
|
+
/** Optional label for the heading */
|
|
218
|
+
label?: string;
|
|
219
|
+
/** Optional subtitle for the heading */
|
|
220
|
+
subtitle?: string;
|
|
221
|
+
/** Optional to hide the anchor icon */
|
|
222
|
+
noanchor?: boolean;
|
|
223
|
+
/** Optional ref for the heading element */
|
|
224
|
+
ref?: React.RefObject<HTMLHeadingElement>;
|
|
225
|
+
style?: React.CSSProperties;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* A flexible heading component that can render as any heading level (h1-h6) or as a div/span
|
|
229
|
+
*
|
|
230
|
+
* @category Component
|
|
231
|
+
*/
|
|
232
|
+
declare function Heading(props: HeadingProps): React.JSX.Element;
|
|
76
233
|
|
|
77
234
|
interface HrProps {
|
|
235
|
+
}
|
|
236
|
+
declare function Hr(): React.JSX.Element;
|
|
237
|
+
|
|
238
|
+
declare const IconProvider: React.Context<{
|
|
239
|
+
iconSet: {};
|
|
240
|
+
}>;
|
|
241
|
+
interface IconProps {
|
|
242
|
+
name: string;
|
|
243
|
+
size?: number;
|
|
244
|
+
color?: string;
|
|
245
|
+
}
|
|
246
|
+
declare function Icon(props: IconProps): ReactElement | null;
|
|
247
|
+
|
|
248
|
+
interface ImageProps {
|
|
249
|
+
src: string;
|
|
250
|
+
alt: string;
|
|
251
|
+
style?: React.CSSProperties;
|
|
252
|
+
}
|
|
253
|
+
declare function Image(props: ImageProps): React.JSX.Element;
|
|
254
|
+
|
|
255
|
+
interface ListProps {
|
|
78
256
|
children: React.ReactNode;
|
|
79
257
|
}
|
|
80
|
-
declare function
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
declare function
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
declare function
|
|
89
|
-
declare function IconREST(): React.JSX.Element;
|
|
90
|
-
declare function IconGraphQL(): React.JSX.Element;
|
|
91
|
-
declare function IconWebhooks(): React.JSX.Element;
|
|
92
|
-
declare function IconJSBrowser(): React.JSX.Element;
|
|
93
|
-
declare function IconJSNode(): React.JSX.Element;
|
|
94
|
-
declare function IconStorybook(): React.JSX.Element;
|
|
95
|
-
declare function IconReactRouter(): React.JSX.Element;
|
|
96
|
-
declare function IconNextJS(): React.JSX.Element;
|
|
97
|
-
declare function IconAppTemplate(): React.JSX.Element;
|
|
98
|
-
declare function IconQuote(): React.JSX.Element;
|
|
258
|
+
declare function List({ children }: ListProps): React.JSX.Element;
|
|
259
|
+
declare namespace List {
|
|
260
|
+
var Item: typeof ListItem;
|
|
261
|
+
}
|
|
262
|
+
declare function ListOl({ children }: ListProps): React.JSX.Element;
|
|
263
|
+
interface ListItemProps {
|
|
264
|
+
children: React.ReactNode;
|
|
265
|
+
}
|
|
266
|
+
declare function ListItem({ children }: ListItemProps): React.JSX.Element;
|
|
99
267
|
|
|
100
268
|
interface NavLinksProps {
|
|
101
269
|
prev?: {
|
|
@@ -106,106 +274,270 @@ interface NavLinksProps {
|
|
|
106
274
|
title: string;
|
|
107
275
|
href: string;
|
|
108
276
|
};
|
|
277
|
+
as?: React.ElementType;
|
|
278
|
+
className?: string;
|
|
109
279
|
}
|
|
110
280
|
declare function NavLinks(props: NavLinksProps): React.JSX.Element;
|
|
111
281
|
|
|
112
282
|
interface PreProps {
|
|
113
283
|
children: React.ReactNode;
|
|
284
|
+
className?: string;
|
|
114
285
|
}
|
|
115
|
-
declare function Pre({ children }: PreProps): React.JSX.Element;
|
|
286
|
+
declare function Pre({ children, className }: PreProps): React.JSX.Element;
|
|
116
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Props for the Steps component
|
|
290
|
+
*/
|
|
117
291
|
interface StepsProps {
|
|
292
|
+
/** Content to be rendered inside the steps list */
|
|
118
293
|
children: React.ReactNode;
|
|
294
|
+
/** Optional CSS class name to be applied to the steps container */
|
|
295
|
+
className?: string;
|
|
119
296
|
}
|
|
120
|
-
|
|
297
|
+
/**
|
|
298
|
+
* Steps component that renders a numbered list of steps or stages.
|
|
299
|
+
* Use this component to display a sequence of steps in a process or workflow.
|
|
300
|
+
*
|
|
301
|
+
* @category Component
|
|
302
|
+
*/
|
|
303
|
+
declare function Steps({ children, className }: StepsProps): React.JSX.Element;
|
|
121
304
|
declare namespace Steps {
|
|
122
|
-
var Item: ({ children }: StepsItemProps) => React.JSX.Element;
|
|
305
|
+
var Item: ({ children, className }: StepsItemProps) => React.JSX.Element;
|
|
123
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* Props for the Steps.Item component
|
|
309
|
+
*/
|
|
124
310
|
interface StepsItemProps {
|
|
311
|
+
/** Content to be rendered inside the step item */
|
|
125
312
|
children: React.ReactNode;
|
|
313
|
+
/** Optional CSS class name to be applied to the step item */
|
|
314
|
+
className?: string;
|
|
126
315
|
}
|
|
127
316
|
|
|
317
|
+
/**
|
|
318
|
+
* Props for the Table component
|
|
319
|
+
*/
|
|
128
320
|
interface TableProps {
|
|
321
|
+
/** The content to be rendered inside the table */
|
|
129
322
|
children: React.ReactNode;
|
|
130
|
-
|
|
131
|
-
declare function Table({ children }: TableProps): React.JSX.Element;
|
|
132
|
-
declare namespace Table {
|
|
133
|
-
var Th: ({ children }: TableThProps$1) => React.JSX.Element;
|
|
134
|
-
var Tr: ({ children }: TableTrProps$1) => React.JSX.Element;
|
|
135
|
-
var Td: ({ children }: TableTdProps$1) => React.JSX.Element;
|
|
136
|
-
}
|
|
137
|
-
interface TableThProps$1 {
|
|
138
|
-
children: React.ReactNode;
|
|
139
|
-
}
|
|
140
|
-
interface TableTrProps$1 {
|
|
141
|
-
children: React.ReactNode;
|
|
142
|
-
}
|
|
143
|
-
interface TableTdProps$1 {
|
|
144
|
-
children: React.ReactNode;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
interface TableV2Props {
|
|
148
|
-
children: React.ReactNode;
|
|
323
|
+
/** Optional CSS class name to be applied to the table */
|
|
149
324
|
className?: string;
|
|
150
325
|
}
|
|
151
|
-
|
|
152
|
-
|
|
326
|
+
/**
|
|
327
|
+
* A table component that provides a structured way to display tabular data.
|
|
328
|
+
* It supports custom styling through className prop and can contain various table elements.
|
|
329
|
+
*
|
|
330
|
+
* @category Component
|
|
331
|
+
*/
|
|
332
|
+
declare function Table({ children, className }: TableProps): React.JSX.Element;
|
|
333
|
+
declare namespace Table {
|
|
153
334
|
var Head: ({ children }: TableHeadProps) => React.JSX.Element;
|
|
154
335
|
var Th: ({ children, numeric }: TableThProps) => React.JSX.Element;
|
|
155
336
|
var Tr: ({ children }: TableTrProps) => React.JSX.Element;
|
|
337
|
+
var Body: ({ children }: TableBodyProps) => React.JSX.Element;
|
|
156
338
|
var Td: ({ children, numeric, muted }: TableTdProps) => React.JSX.Element;
|
|
157
339
|
var Cell: ({ children }: TableCellProps) => React.JSX.Element;
|
|
158
|
-
var ModelCell: ({ children }: TableModelCellProps) => React.JSX.Element;
|
|
159
340
|
}
|
|
341
|
+
/**
|
|
342
|
+
* Props for the TableHead component
|
|
343
|
+
*/
|
|
160
344
|
interface TableHeadProps {
|
|
345
|
+
/** The content to be rendered inside the table header */
|
|
161
346
|
children: React.ReactNode;
|
|
162
347
|
}
|
|
348
|
+
/**
|
|
349
|
+
* Props for the TableTh component
|
|
350
|
+
*/
|
|
163
351
|
interface TableThProps {
|
|
352
|
+
/** The content to be rendered inside the table header cell */
|
|
164
353
|
children: React.ReactNode;
|
|
354
|
+
/** Whether the cell content should be right-aligned (for numeric values) */
|
|
165
355
|
numeric?: boolean;
|
|
166
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* Props for the TableTr component
|
|
359
|
+
*/
|
|
167
360
|
interface TableTrProps {
|
|
361
|
+
/** The content to be rendered inside the table row */
|
|
168
362
|
children: React.ReactNode;
|
|
169
363
|
}
|
|
364
|
+
/**
|
|
365
|
+
* Props for the TableBody component
|
|
366
|
+
*/
|
|
367
|
+
interface TableBodyProps {
|
|
368
|
+
/** The content to be rendered inside the table body */
|
|
369
|
+
children: React.ReactNode;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Props for the TableTd component
|
|
373
|
+
*/
|
|
170
374
|
interface TableTdProps {
|
|
375
|
+
/** The content to be rendered inside the table cell */
|
|
171
376
|
children: React.ReactNode;
|
|
377
|
+
/** Whether the cell content should be right-aligned (for numeric values) */
|
|
172
378
|
numeric?: boolean;
|
|
379
|
+
/** Whether the cell should have a muted appearance */
|
|
173
380
|
muted?: boolean;
|
|
174
381
|
}
|
|
382
|
+
/**
|
|
383
|
+
* Props for the TableCell component
|
|
384
|
+
*/
|
|
175
385
|
interface TableCellProps {
|
|
386
|
+
/** The content to be rendered inside the table cell */
|
|
176
387
|
children: React.ReactNode;
|
|
177
388
|
}
|
|
178
|
-
|
|
179
|
-
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Available font sizes for the Text component
|
|
392
|
+
*/
|
|
393
|
+
type TextFontSizes = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
394
|
+
/**
|
|
395
|
+
* Available text styles/kinds for the Text component
|
|
396
|
+
*/
|
|
397
|
+
type TextKindTypes = "default" | "ghost" | "success" | "warn" | "error" | "primary" | "secondary";
|
|
398
|
+
/**
|
|
399
|
+
* Available font weights for the Text component
|
|
400
|
+
*/
|
|
401
|
+
type TextFontWeights = "normal" | "bold" | "extra-bold";
|
|
402
|
+
/**
|
|
403
|
+
* Props for the Text component
|
|
404
|
+
*/
|
|
405
|
+
interface TextProps {
|
|
406
|
+
/** Font size of the text */
|
|
407
|
+
size?: TextFontSizes;
|
|
408
|
+
/** Visual style/kind of the text */
|
|
409
|
+
kind?: TextKindTypes;
|
|
410
|
+
/** Font weight of the text */
|
|
411
|
+
weight?: TextFontWeights;
|
|
412
|
+
/** Content to be rendered inside the text component */
|
|
413
|
+
children?: React.ReactNode;
|
|
414
|
+
/** Additional CSS class name */
|
|
415
|
+
className?: string;
|
|
416
|
+
/** HTML id attribute */
|
|
417
|
+
id?: string;
|
|
418
|
+
/** Click event handler */
|
|
419
|
+
onClick?: () => void;
|
|
420
|
+
/** HTML tag to render the text as */
|
|
421
|
+
as?: "span" | "p";
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* A flexible text component that supports different sizes, styles, and weights.
|
|
425
|
+
*
|
|
426
|
+
* @category Component
|
|
427
|
+
*/
|
|
428
|
+
declare function Text({ size, kind, weight, children, className, id, onClick, as }: TextProps): React.JSX.Element;
|
|
429
|
+
|
|
430
|
+
interface TocCardProps {
|
|
431
|
+
title: string;
|
|
432
|
+
description: string;
|
|
433
|
+
href: string;
|
|
434
|
+
className?: string;
|
|
435
|
+
icon?: string;
|
|
436
|
+
as?: React.ElementType;
|
|
180
437
|
}
|
|
438
|
+
declare function TocCard({ title, description, href, className, icon, as }: TocCardProps): React.JSX.Element;
|
|
181
439
|
|
|
182
440
|
interface TabsProps$1 {
|
|
441
|
+
/** Child elements to be rendered within the navigation */
|
|
183
442
|
children: React.ReactNode;
|
|
184
|
-
|
|
185
|
-
|
|
443
|
+
/** The currently selected tab value */
|
|
444
|
+
value?: string;
|
|
445
|
+
/** Callback function triggered when a tab is selected */
|
|
446
|
+
onChange?: (value: string) => void;
|
|
447
|
+
/** Whether to enable sliding animation between tabs */
|
|
448
|
+
slide?: boolean;
|
|
449
|
+
/** Additional CSS class name for the component */
|
|
450
|
+
className?: string;
|
|
451
|
+
/** The variant of the navigation */
|
|
452
|
+
kind?: 'default' | 'secondary';
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* A navigation component that displays tabs with an underline indicator
|
|
456
|
+
*
|
|
457
|
+
* @category Component
|
|
458
|
+
*/
|
|
459
|
+
declare function UnderlineNav({ children, value: controlledValue, onChange, slide, className, kind }: TabsProps$1): React.JSX.Element;
|
|
460
|
+
declare namespace UnderlineNav {
|
|
461
|
+
var Item: ({ children, value, href, as, defaultActive }: UnderlineNavItemProps) => React.JSX.Element;
|
|
462
|
+
var Content: ({ children, value, defaultActive }: UnderlineNavContentProps) => React.JSX.Element;
|
|
186
463
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
464
|
+
/**
|
|
465
|
+
* Props for the UnderlineNav.Item component
|
|
466
|
+
*/
|
|
467
|
+
interface UnderlineNavItemProps {
|
|
468
|
+
/** Child elements to be rendered within the navigation item */
|
|
469
|
+
children: React.ReactNode;
|
|
470
|
+
/** Unique identifier for the navigation item */
|
|
471
|
+
value: string;
|
|
472
|
+
/** URL for the navigation item link */
|
|
473
|
+
href?: string;
|
|
474
|
+
/** Custom component to render as the link element */
|
|
475
|
+
as?: React.ElementType;
|
|
476
|
+
/** Whether this item should be active by default */
|
|
477
|
+
defaultActive?: boolean;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Props for the UnderlineNav.Content component
|
|
481
|
+
*/
|
|
482
|
+
interface UnderlineNavContentProps {
|
|
483
|
+
/** Child elements to be rendered within the content area */
|
|
484
|
+
children: React.ReactNode;
|
|
485
|
+
/** Unique identifier for the content section */
|
|
486
|
+
value: string;
|
|
487
|
+
/** Whether this content should be active by default */
|
|
488
|
+
defaultActive?: boolean;
|
|
193
489
|
}
|
|
194
490
|
|
|
195
|
-
|
|
491
|
+
/**
|
|
492
|
+
* Props for the TabsPrimary component
|
|
493
|
+
*/
|
|
494
|
+
interface TabsPrimaryProps {
|
|
495
|
+
/** Child elements to be rendered within the navigation */
|
|
196
496
|
children: React.ReactNode;
|
|
197
|
-
value
|
|
198
|
-
|
|
497
|
+
/** The currently selected tab value */
|
|
498
|
+
value?: string;
|
|
499
|
+
/** Callback function triggered when a tab is selected */
|
|
500
|
+
onChange?: (value: string) => void;
|
|
501
|
+
/** Whether to enable sliding animation between tabs */
|
|
502
|
+
slide?: boolean;
|
|
503
|
+
/** Additional CSS class name for the component */
|
|
504
|
+
className?: string;
|
|
199
505
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
506
|
+
|
|
507
|
+
interface TabsSecondaryProps {
|
|
508
|
+
/** The currently selected tab value */
|
|
509
|
+
value?: string;
|
|
510
|
+
children: React.ReactNode;
|
|
511
|
+
className?: string;
|
|
512
|
+
onChange?: (value: string) => void;
|
|
203
513
|
}
|
|
204
|
-
|
|
514
|
+
|
|
515
|
+
interface TabsPropsCommon {
|
|
516
|
+
kind?: 'secondary' | null;
|
|
517
|
+
}
|
|
518
|
+
type TabsProps<T> = T & TabsPropsCommon;
|
|
519
|
+
declare function Tabs(props: TabsProps<TabsSecondaryProps | TabsPrimaryProps>): React.JSX.Element;
|
|
520
|
+
declare namespace Tabs {
|
|
521
|
+
var Item: (props: any) => React.JSX.Element;
|
|
522
|
+
var Content: (props: any) => React.JSX.Element;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
interface UpdateProps {
|
|
205
526
|
children: React.ReactNode;
|
|
206
|
-
|
|
207
|
-
|
|
527
|
+
version: string;
|
|
528
|
+
date?: string;
|
|
529
|
+
}
|
|
530
|
+
declare function Update(props: UpdateProps): React.JSX.Element;
|
|
531
|
+
|
|
532
|
+
declare function VideoGuide(): null;
|
|
533
|
+
declare namespace VideoGuide {
|
|
534
|
+
var Miniature: (props: VideoGuideMiniatureProps) => React.JSX.Element;
|
|
535
|
+
}
|
|
536
|
+
interface VideoGuideMiniatureProps {
|
|
537
|
+
videoSrc?: string;
|
|
538
|
+
description?: string;
|
|
539
|
+
className?: string;
|
|
208
540
|
}
|
|
209
541
|
|
|
210
|
-
export {
|
|
211
|
-
export type { BadgeProps, BlockquoteProps, BreadcrumbsProps, CalloutProps, CodeProps, DetailsProps, HeadingProps, HrProps, NavLinksProps, PreProps, StepsProps
|
|
542
|
+
export { Anchor, Badge, Banner, Blockquote, Breadcrumbs, Button, Callout, Card, Code, ColorSchemeButton, Details, GuideCard, Heading, Hr, Icon, IconProvider, Image, List, ListOl, NavLinks, Pre, Steps, Table, Tabs, Text, TocCard, UnderlineNav, Update, VideoGuide, useColorScheme };
|
|
543
|
+
export type { BadgeProps, BannerProps, BlockquoteProps, BreadcrumbsProps, ButtonProps, CalloutProps, CodeProps, DetailsProps, HeadingProps, HrProps, NavLinksProps, PreProps, StepsProps };
|
package/dist/writer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{A as Anchor,c as Banner,B as Button,G as GuideCard,L as List,a as ListOl,S as Steps,T as Table,b as Tabs,U as UnderlineNav,V as VideoGuide}from"./VideoGuide-CoQXlHjQ.js";export{b as Badge,B as Blockquote,c as Callout,e as Card,C as Code,a as ColorSchemeButton,D as Details,d as Heading,H as Hr,I as Image,U as Update,u as useColorScheme}from"./Update-D5e_yqty.js";import{a as t}from"./tslib.es6-DwnOrHRg.js";import r,{Fragment as n}from"react";import{I as l}from"./Icon-BoKcRZAF.js";export{a as IconProvider}from"./Icon-BoKcRZAF.js";export{T as Text}from"./Text-QH4jjPUM.js";import"./_rollupPluginBabelHelpers-CiqSP2w-.js";import"radix-ui";import"lucide-react";function i(){return r.createElement("div",null,"TODO")}function s(e){var a=e.children,n=t(e,["children"]);return r.createElement("a",Object.assign({},n),a)}function o(e){var t=e.className,a=e.items;return r.createElement("xyd-breadcrumbs",{className:"".concat("bwgsk4h"," ").concat(t||"")},a.map(function(e,t){var l=t===a.length-1;return r.createElement(n,{key:e.href+e.title},t>0&&r.createElement(i,{part:"icon"}),r.createElement("div",{part:"item","data-active":l?"true":"false"},e.href&&!l?r.createElement(s,{href:e.href},e.title):e.title))}))}function m(e){var t=e.as||p;return r.createElement("xyd-navlinks",{className:"".concat("n1xhrk1"," ").concat(e.className||"")},e.prev?r.createElement(t,{href:e.prev.href,title:e.prev.title,part:"link"},r.createElement(h,{part:"icon"}),e.prev.title):r.createElement("div",null),e.next&&r.createElement(t,{href:e.next.href,title:e.next.title,part:"link"},e.next.title,r.createElement(f,{part:"icon"})))}function p(e){var a=e.children,n=t(e,["children"]);return r.createElement("a",Object.assign({},n),a)}function f(e){return r.createElement("svg",Object.assign({width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function h(e){return r.createElement("svg",Object.assign({width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function v(e){var t=e.children,a=e.className;return r.createElement("pre",{className:"".concat("p1vb39qj"," ").concat(a||"")},t)}var E="TocCard-module_TocCardHost__pT0XJ";function g(e){var t=e.title,a=e.description,n=e.href,c=e.className,i=e.icon,s=e.as||x;return r.createElement("xyd-toccard",{className:"".concat(E," ").concat(c||"")},r.createElement("div",{part:"container"},r.createElement(s,{part:"link",href:n,target:"_blank",rel:"noreferrer"},r.createElement("div",{part:"title-container"},r.createElement("div",{part:"title"},t),i&&r.createElement(l,{name:i,size:16})),r.createElement("div",{part:"description"},a))))}function x(e){var a=e.children,n=e.href,l=t(e,["children","href"]);return r.createElement("a",Object.assign({href:n},l),a)}export{o as Breadcrumbs,l as Icon,m as NavLinks,v as Pre,g as TocCard};
|
|
2
2
|
//# sourceMappingURL=writer.js.map
|