@xyd-js/components 0.1.0-build.168
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 +1369 -0
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/TODO.md +1 -0
- package/coder.ts +1 -0
- package/content.ts +1 -0
- package/dist/Button-BLA2ghHZ.js +2 -0
- package/dist/Button-BLA2ghHZ.js.map +1 -0
- package/dist/Button-BTJ2hIal.js +2 -0
- package/dist/Button-BTJ2hIal.js.map +1 -0
- package/dist/Button-r4BCrEjy.js +2 -0
- package/dist/Button-r4BCrEjy.js.map +1 -0
- package/dist/CodeSample-BZ5tvyWY.js +2 -0
- package/dist/CodeSample-BZ5tvyWY.js.map +1 -0
- package/dist/CodeSample-BqXDbWdi.js +2 -0
- package/dist/CodeSample-BqXDbWdi.js.map +1 -0
- package/dist/CodeSample-Cqv86IdN.js +2 -0
- package/dist/CodeSample-Cqv86IdN.js.map +1 -0
- package/dist/Icon--77MqplU.js +2 -0
- package/dist/Icon--77MqplU.js.map +1 -0
- package/dist/Icon-DbNmvK_Q.js +2 -0
- package/dist/Icon-DbNmvK_Q.js.map +1 -0
- package/dist/Icon-uVIU1LW6.js +2 -0
- package/dist/Icon-uVIU1LW6.js.map +1 -0
- package/dist/PageFirstSlide-BDNmCTiJ.js +2 -0
- package/dist/PageFirstSlide-BDNmCTiJ.js.map +1 -0
- package/dist/PageFirstSlide-BpZ42bEU.js +2 -0
- package/dist/PageFirstSlide-BpZ42bEU.js.map +1 -0
- package/dist/PageFirstSlide-CqxiyK57.js +2 -0
- package/dist/PageFirstSlide-CqxiyK57.js.map +1 -0
- package/dist/TabsAnalytics-B_JYpawG.js +2 -0
- package/dist/TabsAnalytics-B_JYpawG.js.map +1 -0
- package/dist/TabsAnalytics-DAOfTZgv.js +2 -0
- package/dist/TabsAnalytics-DAOfTZgv.js.map +1 -0
- package/dist/TabsAnalytics-Dhyadlbu.js +2 -0
- package/dist/TabsAnalytics-Dhyadlbu.js.map +1 -0
- package/dist/Update-53fEhmjh.js +2 -0
- package/dist/Update-53fEhmjh.js.map +1 -0
- package/dist/Update-CFi6uapq.js +2 -0
- package/dist/Update-CFi6uapq.js.map +1 -0
- package/dist/Update-CiMIOgZi.js +2 -0
- package/dist/Update-CiMIOgZi.js.map +1 -0
- package/dist/VideoGuide-C0K9fFar.js +2 -0
- package/dist/VideoGuide-C0K9fFar.js.map +1 -0
- package/dist/VideoGuide-CJYkuLst.js +2 -0
- package/dist/VideoGuide-CJYkuLst.js.map +1 -0
- package/dist/VideoGuide-DBY-EyxG.js +2 -0
- package/dist/VideoGuide-DBY-EyxG.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-CvhQFv1t.js +4 -0
- package/dist/_rollupPluginBabelHelpers-CvhQFv1t.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-DSwDY1Dm.js +4 -0
- package/dist/_rollupPluginBabelHelpers-DSwDY1Dm.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-Dc-ocx4G.js +4 -0
- package/dist/_rollupPluginBabelHelpers-Dc-ocx4G.js.map +1 -0
- package/dist/coder/themes/classic.css +57 -0
- package/dist/coder/themes/classic.d.ts +96 -0
- package/dist/coder/themes/classic.js +2 -0
- package/dist/coder/themes/classic.js.map +1 -0
- package/dist/coder/themes/cosmo.css +64 -0
- package/dist/coder/themes/cosmo.d.ts +96 -0
- package/dist/coder/themes/cosmo.js +2 -0
- package/dist/coder/themes/cosmo.js.map +1 -0
- package/dist/coder.d.ts +94 -0
- package/dist/coder.js +2 -0
- package/dist/coder.js.map +1 -0
- package/dist/content.d.ts +411 -0
- package/dist/content.js +2 -0
- package/dist/content.js.map +1 -0
- package/dist/index.css +282 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/layouts.d.ts +33 -0
- package/dist/layouts.js +2 -0
- package/dist/layouts.js.map +1 -0
- package/dist/pages.d.ts +176 -0
- package/dist/pages.js +2 -0
- package/dist/pages.js.map +1 -0
- package/dist/system.d.ts +45 -0
- package/dist/system.js +2 -0
- package/dist/system.js.map +1 -0
- package/dist/useUXClick-DK3cTAMR.js +2 -0
- package/dist/useUXClick-DK3cTAMR.js.map +1 -0
- package/dist/useUXClick-DO6qBcRy.js +2 -0
- package/dist/useUXClick-DO6qBcRy.js.map +1 -0
- package/dist/useUXClick-NwpsiuK9.js +2 -0
- package/dist/useUXClick-NwpsiuK9.js.map +1 -0
- package/dist/useUXEvents-CJtgGV4R.js +2 -0
- package/dist/useUXEvents-CJtgGV4R.js.map +1 -0
- package/dist/useUXEvents-Cxgl7xb-.js +2 -0
- package/dist/useUXEvents-Cxgl7xb-.js.map +1 -0
- package/dist/useUXEvents-XqAGxoEj.js +2 -0
- package/dist/useUXEvents-XqAGxoEj.js.map +1 -0
- package/dist/useUXScrollDepth-3rk3Z95r.js +2 -0
- package/dist/useUXScrollDepth-3rk3Z95r.js.map +1 -0
- package/dist/useUXScrollDepth-BwK-XOBg.js +2 -0
- package/dist/useUXScrollDepth-BwK-XOBg.js.map +1 -0
- package/dist/useUXScrollDepth-DKre7PBz.js +2 -0
- package/dist/useUXScrollDepth-DKre7PBz.js.map +1 -0
- package/dist/uxsdk.d.ts +53 -0
- package/dist/uxsdk.js +2 -0
- package/dist/uxsdk.js.map +1 -0
- package/dist/views.d.ts +18 -0
- package/dist/views.js +2 -0
- package/dist/views.js.map +1 -0
- package/dist/writer.d.ts +580 -0
- package/dist/writer.js +2 -0
- package/dist/writer.js.map +1 -0
- 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 -0
- package/layouts.ts +1 -0
- package/output.txt +13 -0
- package/package.json +81 -0
- package/pages.ts +1 -0
- package/postcss.config.cjs +5 -0
- package/rollup.config.js +195 -0
- package/src/coder/Code/Code.styles.tsx +151 -0
- package/src/coder/Code/Code.tsx +171 -0
- package/src/coder/Code/CodeLoader.tsx +10 -0
- package/src/coder/Code/annotations.tsx +51 -0
- package/src/coder/Code/highlight.ts +208 -0
- package/src/coder/Code/index.ts +16 -0
- package/src/coder/CodeCopy/CodeCopy.styles.tsx +21 -0
- package/src/coder/CodeCopy/CodeCopy.tsx +36 -0
- package/src/coder/CodeCopy/index.ts +7 -0
- package/src/coder/CodeSample/CodeSample.tsx +118 -0
- package/src/coder/CodeSample/CodeSampleAnalytics.tsx +112 -0
- package/src/coder/CodeSample/index.ts +11 -0
- package/src/coder/CodeSample/withLocalStored.tsx +50 -0
- package/src/coder/CodeTabs/CodeTabs.styles.tsx +126 -0
- package/src/coder/CodeTabs/CodeTabs.tsx +128 -0
- package/src/coder/CodeTabs/index.ts +6 -0
- package/src/coder/CodeTheme/CodeTheme.tsx +126 -0
- package/src/coder/CodeTheme/index.ts +7 -0
- package/src/coder/CoderProvider.tsx +26 -0
- package/src/coder/README.md +1 -0
- package/src/coder/hooks/highlight.ts +182 -0
- package/src/coder/index.ts +37 -0
- package/src/coder/themes/classic.css +57 -0
- package/src/coder/themes/classic.ts +270 -0
- package/src/coder/themes/cosmo.css +64 -0
- package/src/coder/themes/cosmo.ts +264 -0
- package/src/content/AppearanceDecorator.styles.tsx +11 -0
- package/src/content/ContentDecoator.styles.tsx +180 -0
- package/src/content/ContentDecorator.tsx +17 -0
- package/src/content/GridDecorator.styles.tsx +86 -0
- package/src/content/GridDecorator.tsx +23 -0
- package/src/content/ReactContent.tsx +671 -0
- package/src/content/TODO.md +1 -0
- package/src/content/index.ts +13 -0
- package/src/kit/Loader/Loader.styles.tsx +53 -0
- package/src/kit/Loader/Loader.tsx +22 -0
- package/src/kit/TODO.md +2 -0
- package/src/kit/index.ts +1 -0
- package/src/layouts/LayoutPrimary/LayoutPrimary.styles.tsx +325 -0
- package/src/layouts/LayoutPrimary/LayoutPrimary.tsx +252 -0
- package/src/layouts/LayoutPrimary/index.ts +3 -0
- package/src/layouts/index.ts +6 -0
- package/src/pages/PageBlogHome/PageBlogHome.styles.tsx +67 -0
- package/src/pages/PageBlogHome/PageBlogHome.tsx +64 -0
- package/src/pages/PageBlogHome/index.ts +3 -0
- package/src/pages/PageBlogHome/types.ts +35 -0
- package/src/pages/PageBlogPost/PageBlogPost.styles.tsx +4 -0
- package/src/pages/PageBlogPost/PageBlogPost.tsx +9 -0
- package/src/pages/PageBlogPost/index.ts +3 -0
- package/src/pages/PageFirstSlide/PageFirstSlide.styles.tsx +134 -0
- package/src/pages/PageFirstSlide/PageFirstSlide.tsx +56 -0
- package/src/pages/PageFirstSlide/index.ts +1 -0
- package/src/pages/PageFirstSlide/types.ts +67 -0
- package/src/pages/PageHome/PageHome.styles.tsx +51 -0
- package/src/pages/PageHome/PageHome.tsx +62 -0
- package/src/pages/PageHome/index.ts +3 -0
- package/src/pages/PageHome/types.ts +79 -0
- package/src/pages/index.ts +7 -0
- package/src/system/Baseline/Baseline.styles.tsx +128 -0
- package/src/system/Baseline/Baseline.tsx +40 -0
- package/src/system/Baseline/bun.svg +1 -0
- package/src/system/Baseline/check.svg +1 -0
- package/src/system/Baseline/index.ts +1 -0
- package/src/system/Baseline/logo.svg +1 -0
- package/src/system/Baseline/node.svg +7 -0
- package/src/system/Baseline/npm.svg +5 -0
- package/src/system/Baseline/pnpm.svg +1 -0
- package/src/system/Footer/Footer.styles.tsx +213 -0
- package/src/system/Footer/Footer.tsx +105 -0
- package/src/system/Footer/index.ts +1 -0
- package/src/system/SearchButton/SearchButton.styles.tsx +89 -0
- package/src/system/SearchButton/SearchButton.tsx +118 -0
- package/src/system/SearchButton/index.ts +1 -0
- package/src/system/index.ts +3 -0
- package/src/utils/useStyle.ts +19 -0
- package/src/uxsdk/const.ts +1 -0
- package/src/uxsdk/index.ts +21 -0
- package/src/uxsdk/useUXClick.ts +21 -0
- package/src/uxsdk/useUXEvents.ts +105 -0
- package/src/uxsdk/useUXScrollDepth.ts +49 -0
- package/src/uxsdk/useUXUnreachableElementTracker.ts +100 -0
- package/src/views/HomeView/HomeView.styles.tsx +37 -0
- package/src/views/HomeView/HomeView.tsx +34 -0
- package/src/views/HomeView/index.ts +3 -0
- package/src/writer/Anchor/Anchor.styles.tsx +26 -0
- package/src/writer/Anchor/Anchor.tsx +51 -0
- package/src/writer/Anchor/index.tsx +1 -0
- package/src/writer/Badge/Badge.styles.tsx +44 -0
- package/src/writer/Badge/Badge.tsx +47 -0
- package/src/writer/Badge/index.ts +7 -0
- package/src/writer/Banner/Banner.styles.tsx +111 -0
- package/src/writer/Banner/Banner.tsx +151 -0
- package/src/writer/Banner/index.ts +1 -0
- package/src/writer/Blockquote/Blockquote.styles.tsx +20 -0
- package/src/writer/Blockquote/Blockquote.tsx +38 -0
- package/src/writer/Blockquote/index.ts +7 -0
- package/src/writer/BlogCard/BlogCard.styles.tsx +4 -0
- package/src/writer/BlogCard/BlogCard.tsx +9 -0
- package/src/writer/BlogCard/index.ts +3 -0
- package/src/writer/Breadcrumbs/Breadcrumbs.styles.ts +24 -0
- package/src/writer/Breadcrumbs/Breadcrumbs.tsx +57 -0
- package/src/writer/Breadcrumbs/index.ts +7 -0
- package/src/writer/Button/Button.styles.tsx +149 -0
- package/src/writer/Button/Button.tsx +82 -0
- package/src/writer/Button/index.ts +2 -0
- package/src/writer/Callout/Callout.styles.tsx +102 -0
- package/src/writer/Callout/Callout.tsx +166 -0
- package/src/writer/Callout/index.tsx +3 -0
- package/src/writer/Card/Card.styles.tsx +110 -0
- package/src/writer/Card/Card.tsx +94 -0
- package/src/writer/Card/index.ts +1 -0
- package/src/writer/Code/Code.styles.tsx +16 -0
- package/src/writer/Code/Code.tsx +16 -0
- package/src/writer/Code/index.ts +3 -0
- package/src/writer/ColorSchemeButton/ColorSchemeButton.tsx +191 -0
- package/src/writer/ColorSchemeButton/index.ts +1 -0
- package/src/writer/Details/Details.styles.tsx +101 -0
- package/src/writer/Details/Details.tsx +168 -0
- package/src/writer/Details/DetailsProps.tsx +34 -0
- package/src/writer/Details/index.ts +6 -0
- package/src/writer/GuideCard/GuideCard.styles.tsx +129 -0
- package/src/writer/GuideCard/GuideCard.tsx +123 -0
- package/src/writer/GuideCard/index.ts +1 -0
- package/src/writer/Heading/Heading.styles.tsx +93 -0
- package/src/writer/Heading/Heading.tsx +123 -0
- package/src/writer/Heading/index.ts +7 -0
- package/src/writer/Hr/Hr.styles.tsx +7 -0
- package/src/writer/Hr/Hr.tsx +10 -0
- package/src/writer/Hr/index.ts +3 -0
- package/src/writer/Icon/Icon.styles.tsx +15 -0
- package/src/writer/Icon/Icon.tsx +99 -0
- package/src/writer/Icon/index.ts +1 -0
- package/src/writer/IconSocial/IconSocial.tsx +107 -0
- package/src/writer/IconSocial/index.ts +1 -0
- package/src/writer/Image/Image.styles.tsx +9 -0
- package/src/writer/Image/Image.tsx +35 -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 +32 -0
- package/src/writer/NavLinks/NavLinks.tsx +95 -0
- package/src/writer/NavLinks/index.ts +7 -0
- package/src/writer/Pre/Pre.styles.tsx +13 -0
- package/src/writer/Pre/Pre.tsx +14 -0
- package/src/writer/Pre/index.ts +3 -0
- package/src/writer/README.md +1 -0
- package/src/writer/Steps/Steps.styles.tsx +91 -0
- package/src/writer/Steps/Steps.tsx +75 -0
- package/src/writer/Steps/index.ts +5 -0
- package/src/writer/Table/Table.styles.tsx +100 -0
- package/src/writer/Table/Table.tsx +158 -0
- package/src/writer/Table/index.ts +3 -0
- package/src/writer/Tabs/Tabs.tsx +67 -0
- package/src/writer/Tabs/TabsAnalytics.tsx +25 -0
- package/src/writer/Tabs/TabsPrimary.styles.tsx +187 -0
- package/src/writer/Tabs/TabsPrimary.tsx +215 -0
- package/src/writer/Tabs/TabsProps.tsx +13 -0
- package/src/writer/Tabs/TabsSecondary.styles.tsx +78 -0
- package/src/writer/Tabs/TabsSecondary.tsx +176 -0
- package/src/writer/Tabs/index.ts +2 -0
- package/src/writer/Tabs/useValueChange.ts +84 -0
- 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/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 +53 -0
- package/system.ts +1 -0
- package/tsconfig.json +46 -0
- package/types.d.ts +52 -0
- package/uxsdk.ts +1 -0
- package/views.ts +2 -0
- package/writer.ts +1 -0
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import * as _linaria_core from '@linaria/core';
|
|
2
|
+
import React, { ReactElement } from 'react';
|
|
3
|
+
import { Settings } from '@xyd-js/core';
|
|
4
|
+
import { Theme } from '@code-hike/lighter';
|
|
5
|
+
import { HighlightedCode } from 'codehike/code';
|
|
6
|
+
|
|
7
|
+
declare const SearchButtonFullWidth: _linaria_core.LinariaClassName;
|
|
8
|
+
|
|
9
|
+
interface BadgeProps {
|
|
10
|
+
/**
|
|
11
|
+
* The class name of the badge.
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The children of the badge.
|
|
16
|
+
*/
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* The size of the badge.
|
|
20
|
+
*/
|
|
21
|
+
size?: "sm" | "xs";
|
|
22
|
+
/**
|
|
23
|
+
* The kind of the badge.
|
|
24
|
+
*/
|
|
25
|
+
kind?: "warning" | "info" | "default";
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Badge component is used to display a badge.
|
|
29
|
+
*
|
|
30
|
+
* @group Components
|
|
31
|
+
*/
|
|
32
|
+
declare function Badge({ className, children, size, kind }: BadgeProps): React.JSX.Element;
|
|
33
|
+
|
|
34
|
+
interface ButtonProps {
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
kind?: "primary" | "secondary" | "tertiary" | undefined;
|
|
37
|
+
theme?: "ghost";
|
|
38
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
39
|
+
className?: string;
|
|
40
|
+
onClick?: () => void;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
icon?: React.ReactElement | string;
|
|
43
|
+
iconPosition?: "left" | "right";
|
|
44
|
+
href?: string;
|
|
45
|
+
}
|
|
46
|
+
declare function Button({ children, kind, theme, size, className, onClick, disabled, icon, iconPosition, href }: ButtonProps): React.JSX.Element;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Props for the Callout component
|
|
50
|
+
*/
|
|
51
|
+
interface CalloutProps {
|
|
52
|
+
/** Additional CSS class name to be applied to the callout */
|
|
53
|
+
className?: string;
|
|
54
|
+
/** Content to be displayed inside the callout */
|
|
55
|
+
children: React.ReactNode;
|
|
56
|
+
kind?: "warning" | "note" | "tip" | "check" | "danger";
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* A Callout component that displays important information or notices in a visually distinct way.
|
|
60
|
+
* It includes an info icon and a message area for content.
|
|
61
|
+
*
|
|
62
|
+
* @category Component
|
|
63
|
+
*/
|
|
64
|
+
declare function Callout({ className, children, kind }: CalloutProps): React.JSX.Element;
|
|
65
|
+
|
|
66
|
+
declare function ColorSchemeButton(): React.JSX.Element;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Base interface for all Details component variants
|
|
70
|
+
*/
|
|
71
|
+
interface BaseDetailsProps {
|
|
72
|
+
/** Content to be displayed inside the details element */
|
|
73
|
+
children: React.ReactNode;
|
|
74
|
+
/** Label text displayed in the summary */
|
|
75
|
+
label: string;
|
|
76
|
+
/** Optional icon element to be displayed in the summary */
|
|
77
|
+
icon?: React.ReactElement;
|
|
78
|
+
/** Optional CSS class name for custom styling */
|
|
79
|
+
className?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Props for the tertiary variant of the Details component
|
|
83
|
+
*/
|
|
84
|
+
interface TertiaryDetailsProps extends BaseDetailsProps {
|
|
85
|
+
/** Specifies the tertiary variant */
|
|
86
|
+
kind: "tertiary";
|
|
87
|
+
/** Title text or element displayed in the summary */
|
|
88
|
+
title: string | React.ReactNode;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Props for the secondary variant of the Details component
|
|
92
|
+
*/
|
|
93
|
+
interface SecondaryDetailsProps extends BaseDetailsProps {
|
|
94
|
+
/** Specifies the secondary variant */
|
|
95
|
+
kind: "secondary";
|
|
96
|
+
/** Title text or element displayed in the summary */
|
|
97
|
+
title: string | React.ReactNode;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Props for the primary variant of the Details component
|
|
101
|
+
*/
|
|
102
|
+
interface PrimaryDetailsProps extends BaseDetailsProps {
|
|
103
|
+
/** Specifies the primary variant (default) */
|
|
104
|
+
kind?: "primary";
|
|
105
|
+
}
|
|
106
|
+
/** Union type of all possible Details component variants */
|
|
107
|
+
type DetailsProps = PrimaryDetailsProps | SecondaryDetailsProps | TertiaryDetailsProps;
|
|
108
|
+
/**
|
|
109
|
+
* A collapsible details component that supports three variants: primary, secondary, and tertiary.
|
|
110
|
+
* Each variant has a different visual style and structure.
|
|
111
|
+
*
|
|
112
|
+
* @param props - The component props
|
|
113
|
+
* @returns A details element with collapsible content
|
|
114
|
+
*
|
|
115
|
+
* @category Component
|
|
116
|
+
*/
|
|
117
|
+
declare function Details(props: DetailsProps): React.ReactElement;
|
|
118
|
+
|
|
119
|
+
interface IconProps {
|
|
120
|
+
name: string;
|
|
121
|
+
size?: number;
|
|
122
|
+
color?: string;
|
|
123
|
+
}
|
|
124
|
+
declare function Icon(props: IconProps): ReactElement | null;
|
|
125
|
+
declare namespace Icon {
|
|
126
|
+
var ExternalArrow: () => React.JSX.Element;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Props for the Steps component
|
|
131
|
+
*/
|
|
132
|
+
interface StepsProps {
|
|
133
|
+
/** Content to be rendered inside the steps list */
|
|
134
|
+
children: React.ReactNode;
|
|
135
|
+
/** Optional CSS class name to be applied to the steps container */
|
|
136
|
+
className?: string;
|
|
137
|
+
/** Optional kind of steps to be rendered */
|
|
138
|
+
kind?: "secondary" | undefined;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Steps component that renders a numbered list of steps or stages.
|
|
142
|
+
* Use this component to display a sequence of steps in a process or workflow.
|
|
143
|
+
*
|
|
144
|
+
* @category Component
|
|
145
|
+
*/
|
|
146
|
+
declare function Steps({ children, className, kind }: StepsProps): React.JSX.Element;
|
|
147
|
+
declare namespace Steps {
|
|
148
|
+
var Item: ({ children, icon, title, className }: StepsItemProps) => React.JSX.Element;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Props for the Steps.Item component
|
|
152
|
+
*/
|
|
153
|
+
interface StepsItemProps {
|
|
154
|
+
/** Content to be rendered inside the step item */
|
|
155
|
+
children: React.ReactNode;
|
|
156
|
+
/** Optional icon to be displayed in the step item */
|
|
157
|
+
icon?: string | React.ReactNode;
|
|
158
|
+
/** Optional title to be displayed in the step item */
|
|
159
|
+
title?: string;
|
|
160
|
+
/** Optional CSS class name to be applied to the step item */
|
|
161
|
+
className?: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Props for the Table component
|
|
166
|
+
*/
|
|
167
|
+
interface TableProps {
|
|
168
|
+
/** The content to be rendered inside the table */
|
|
169
|
+
children: React.ReactNode;
|
|
170
|
+
/** Optional kind of the table, can be used for styling purposes */
|
|
171
|
+
kind?: "secondary";
|
|
172
|
+
/** Optional CSS class name to be applied to the table */
|
|
173
|
+
className?: string;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* A table component that provides a structured way to display tabular data.
|
|
177
|
+
* It supports custom styling through className prop and can contain various table elements.
|
|
178
|
+
*
|
|
179
|
+
* @category Component
|
|
180
|
+
*/
|
|
181
|
+
declare function Table({ children, kind, className }: TableProps): React.JSX.Element;
|
|
182
|
+
declare namespace Table {
|
|
183
|
+
var Head: ({ children }: TableHeadProps) => React.JSX.Element;
|
|
184
|
+
var Th: ({ children, numeric }: TableThProps) => React.JSX.Element;
|
|
185
|
+
var Tr: ({ children }: TableTrProps) => React.JSX.Element;
|
|
186
|
+
var Body: ({ children }: TableBodyProps) => React.JSX.Element;
|
|
187
|
+
var Td: ({ children, numeric, muted }: TableTdProps) => React.JSX.Element;
|
|
188
|
+
var Cell: ({ children }: TableCellProps) => React.JSX.Element;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Props for the TableHead component
|
|
192
|
+
*/
|
|
193
|
+
interface TableHeadProps {
|
|
194
|
+
/** The content to be rendered inside the table header */
|
|
195
|
+
children: React.ReactNode;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Props for the TableTh component
|
|
199
|
+
*/
|
|
200
|
+
interface TableThProps {
|
|
201
|
+
/** The content to be rendered inside the table header cell */
|
|
202
|
+
children: React.ReactNode;
|
|
203
|
+
/** Whether the cell content should be right-aligned (for numeric values) */
|
|
204
|
+
numeric?: boolean;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Props for the TableTr component
|
|
208
|
+
*/
|
|
209
|
+
interface TableTrProps {
|
|
210
|
+
/** The content to be rendered inside the table row */
|
|
211
|
+
children: React.ReactNode;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Props for the TableBody component
|
|
215
|
+
*/
|
|
216
|
+
interface TableBodyProps {
|
|
217
|
+
/** The content to be rendered inside the table body */
|
|
218
|
+
children: React.ReactNode;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Props for the TableTd component
|
|
222
|
+
*/
|
|
223
|
+
interface TableTdProps {
|
|
224
|
+
/** The content to be rendered inside the table cell */
|
|
225
|
+
children: React.ReactNode;
|
|
226
|
+
/** Whether the cell content should be right-aligned (for numeric values) */
|
|
227
|
+
numeric?: boolean;
|
|
228
|
+
/** Whether the cell should have a muted appearance */
|
|
229
|
+
muted?: boolean;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Props for the TableCell component
|
|
233
|
+
*/
|
|
234
|
+
interface TableCellProps {
|
|
235
|
+
/** The content to be rendered inside the table cell */
|
|
236
|
+
children: React.ReactNode;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
interface UpdateProps {
|
|
240
|
+
children: React.ReactNode;
|
|
241
|
+
version: string;
|
|
242
|
+
date?: string;
|
|
243
|
+
}
|
|
244
|
+
declare function Update(props: UpdateProps): React.JSX.Element;
|
|
245
|
+
|
|
246
|
+
interface SyntaxHighlightedCode extends HighlightedCode {
|
|
247
|
+
title?: string;
|
|
248
|
+
}
|
|
249
|
+
interface CodeThemeBlockProps {
|
|
250
|
+
/** This is the raw code. May include annotation comments. */
|
|
251
|
+
value: string;
|
|
252
|
+
/** The programming language. */
|
|
253
|
+
lang: string;
|
|
254
|
+
/** Metadata string (the content after the language name in a markdown codeblock). */
|
|
255
|
+
meta: string;
|
|
256
|
+
title?: string;
|
|
257
|
+
/** The highlighted code. */
|
|
258
|
+
highlighted?: SyntaxHighlightedCode;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
interface CodeSampleProps {
|
|
262
|
+
name: string;
|
|
263
|
+
description: string;
|
|
264
|
+
codeblocks?: CodeThemeBlockProps[];
|
|
265
|
+
theme?: Theme;
|
|
266
|
+
size?: "full";
|
|
267
|
+
lineNumbers?: boolean;
|
|
268
|
+
descriptionHead?: string;
|
|
269
|
+
descriptionContent?: string | React.ReactNode;
|
|
270
|
+
descriptionIcon?: string;
|
|
271
|
+
kind?: "secondary";
|
|
272
|
+
controlByMeta?: boolean;
|
|
273
|
+
}
|
|
274
|
+
declare function CodeSample(props: CodeSampleProps): React.JSX.Element;
|
|
275
|
+
|
|
276
|
+
interface ReactContentOptions {
|
|
277
|
+
Link?: React.ElementType;
|
|
278
|
+
components?: {
|
|
279
|
+
[component: string]: (props: any) => React.JSX.Element | null;
|
|
280
|
+
};
|
|
281
|
+
useLocation?: () => {
|
|
282
|
+
search: string;
|
|
283
|
+
};
|
|
284
|
+
useNavigate?: (to: any) => void;
|
|
285
|
+
useNavigation?: () => any;
|
|
286
|
+
}
|
|
287
|
+
declare class ReactContent {
|
|
288
|
+
protected settings?: Settings | undefined;
|
|
289
|
+
protected options?: ReactContentOptions | undefined;
|
|
290
|
+
constructor(settings?: Settings | undefined, options?: ReactContentOptions | undefined);
|
|
291
|
+
components(): {
|
|
292
|
+
[component: string]: (props: any) => React.JSX.Element | null;
|
|
293
|
+
};
|
|
294
|
+
noop(): {
|
|
295
|
+
React: typeof NoopReactComponent;
|
|
296
|
+
Steps: typeof NoopComponent;
|
|
297
|
+
Tabs: typeof NoopComponent;
|
|
298
|
+
GuideCard: typeof NoopComponent;
|
|
299
|
+
Table: typeof NoopComponent;
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
declare function NoopComponent(): null;
|
|
303
|
+
declare namespace NoopComponent {
|
|
304
|
+
var Item: () => null;
|
|
305
|
+
var Content: () => null;
|
|
306
|
+
var List: () => null;
|
|
307
|
+
var Head: () => null;
|
|
308
|
+
var Td: () => null;
|
|
309
|
+
var Tr: () => null;
|
|
310
|
+
var Th: () => null;
|
|
311
|
+
var Cell: () => null;
|
|
312
|
+
}
|
|
313
|
+
declare function NoopReactComponent(): null;
|
|
314
|
+
declare namespace NoopReactComponent {
|
|
315
|
+
var Fragment: React.ExoticComponent<React.FragmentProps>;
|
|
316
|
+
}
|
|
317
|
+
declare function stdContent(this: ReactContent): {
|
|
318
|
+
H1: (props: any) => React.JSX.Element;
|
|
319
|
+
H2: (props: any) => React.JSX.Element;
|
|
320
|
+
H3: (props: any) => React.JSX.Element;
|
|
321
|
+
H4: (props: any) => React.JSX.Element;
|
|
322
|
+
H5: (props: any) => React.JSX.Element;
|
|
323
|
+
P: (props: any) => React.JSX.Element;
|
|
324
|
+
Ul: (props: any) => React.JSX.Element;
|
|
325
|
+
Ol: (props: any) => React.JSX.Element;
|
|
326
|
+
Li: (props: any) => React.JSX.Element;
|
|
327
|
+
Table: (props: any) => React.JSX.Element;
|
|
328
|
+
Tr: (props: any) => React.JSX.Element;
|
|
329
|
+
Th: (props: any) => React.JSX.Element;
|
|
330
|
+
h1: (props: any) => React.JSX.Element;
|
|
331
|
+
h2: (props: any) => React.JSX.Element;
|
|
332
|
+
h3: (props: any) => React.JSX.Element;
|
|
333
|
+
h4: (props: any) => React.JSX.Element;
|
|
334
|
+
h5: (props: any) => React.JSX.Element;
|
|
335
|
+
p: (props: any) => React.JSX.Element;
|
|
336
|
+
ul: (props: any) => React.JSX.Element;
|
|
337
|
+
ol: (props: any) => React.JSX.Element;
|
|
338
|
+
li: (props: any) => React.JSX.Element;
|
|
339
|
+
table: (props: any) => React.JSX.Element;
|
|
340
|
+
tr: (props: any) => React.JSX.Element;
|
|
341
|
+
th: (props: any) => React.JSX.Element;
|
|
342
|
+
td: (props: any) => React.JSX.Element;
|
|
343
|
+
code: (props: any) => React.JSX.Element;
|
|
344
|
+
pre: any;
|
|
345
|
+
details: (props: any) => React.JSX.Element;
|
|
346
|
+
blockquote: (props: any) => React.JSX.Element;
|
|
347
|
+
hr: ({ children, ...props }: {
|
|
348
|
+
[x: string]: any;
|
|
349
|
+
children: any;
|
|
350
|
+
}) => React.JSX.Element;
|
|
351
|
+
a: (props: any) => React.JSX.Element;
|
|
352
|
+
br: ({ children, ...props }: {
|
|
353
|
+
[x: string]: any;
|
|
354
|
+
children: any;
|
|
355
|
+
}) => React.JSX.Element;
|
|
356
|
+
img: ({ children, src, alt, ...props }: {
|
|
357
|
+
[x: string]: any;
|
|
358
|
+
children: any;
|
|
359
|
+
src: any;
|
|
360
|
+
alt: any;
|
|
361
|
+
}) => React.JSX.Element;
|
|
362
|
+
picture: (props: any) => React.JSX.Element;
|
|
363
|
+
source: (props: any) => React.JSX.Element;
|
|
364
|
+
input: ({ children, ...props }: {
|
|
365
|
+
[x: string]: any;
|
|
366
|
+
children: any;
|
|
367
|
+
}) => React.JSX.Element;
|
|
368
|
+
textarea: ({ children, ...props }: {
|
|
369
|
+
[x: string]: any;
|
|
370
|
+
children: any;
|
|
371
|
+
}) => React.JSX.Element;
|
|
372
|
+
div: (props: any) => React.JSX.Element;
|
|
373
|
+
span: (props: any) => React.JSX.Element;
|
|
374
|
+
iframe: (props: any) => React.JSX.Element;
|
|
375
|
+
svg: (props: any) => React.JSX.Element;
|
|
376
|
+
feature: (props: any) => React.JSX.Element;
|
|
377
|
+
React: typeof NoopReactComponent;
|
|
378
|
+
};
|
|
379
|
+
declare function writerContent(): {
|
|
380
|
+
Callout: typeof Callout;
|
|
381
|
+
Details: typeof Details;
|
|
382
|
+
GuideCard: any;
|
|
383
|
+
Breadcrumbs: any;
|
|
384
|
+
Steps: typeof Steps;
|
|
385
|
+
Tabs: any;
|
|
386
|
+
Table: typeof Table;
|
|
387
|
+
Badge: typeof Badge;
|
|
388
|
+
Button: typeof Button;
|
|
389
|
+
Subtitle(props: any): React.JSX.Element;
|
|
390
|
+
Update: typeof Update;
|
|
391
|
+
Card: any;
|
|
392
|
+
ColorSchemeButton: typeof ColorSchemeButton;
|
|
393
|
+
Feature: (props: any) => React.JSX.Element;
|
|
394
|
+
};
|
|
395
|
+
declare function iconContent(): {
|
|
396
|
+
Icon: typeof Icon;
|
|
397
|
+
};
|
|
398
|
+
declare function coderContent(): {
|
|
399
|
+
CodeSample: typeof CodeSample;
|
|
400
|
+
};
|
|
401
|
+
declare function directiveContent(this: ReactContent): {
|
|
402
|
+
DirectiveCodeGroup: (props: any) => React.JSX.Element;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
interface ContentDecoratorProps {
|
|
406
|
+
children: React.ReactNode;
|
|
407
|
+
metaComponent?: string;
|
|
408
|
+
}
|
|
409
|
+
declare function ContentDecorator({ children, metaComponent }: ContentDecoratorProps): React.JSX.Element;
|
|
410
|
+
|
|
411
|
+
export { ContentDecorator, ReactContent, SearchButtonFullWidth, coderContent, directiveContent, iconContent, stdContent, writerContent };
|
package/dist/content.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as e,_ as n,d as t,a as i,e as r}from"./_rollupPluginBabelHelpers-CvhQFv1t.js";import{I as o,a}from"./Icon--77MqplU.js";import l,{useRef as c,useState as s,useEffect as u,createContext as d,useContext as v,useMemo as h}from"react";import{G as m,B as f,T as p,S as g,H as b,L as j,a as E,b as O,A as w}from"./VideoGuide-DBY-EyxG.js";import{C as k,U as y,D as C,a as S,I as L,H as T,B as H,b as I,c as U,d as x}from"./Update-CiMIOgZi.js";import{B as P}from"./Button-BLA2ghHZ.js";import{T as B}from"./TabsAnalytics-B_JYpawG.js";import{b as F,a as R,G as A,P as N}from"./PageFirstSlide-BDNmCTiJ.js";import{c as G}from"./CodeSample-BqXDbWdi.js";import"@code-hike/lighter";import"radix-ui";import"lucide-react";import{u as D}from"./useUXEvents-CJtgGV4R.js";import"openux-js";import"./useUXClick-NwpsiuK9.js";import"./coder/themes/cosmo.js";import"./useUXScrollDepth-BwK-XOBg.js";var V="shoi6ow",z=function(){return e(function e(n,i){t(this,e),this.settings=n,this.options=i},[{key:"components",value:function(){var e,n=this,t=[q,_,K,ie,re,oe,ae].map(function(e){return e.bind(n)}).reduce(function(e,n){return Object.assign(Object.assign({},e),n())},{});return Object.assign(Object.assign({},t),(null===(e=this.options)||void 0===e?void 0:e.components)||{})}},{key:"noop",value:function(){var e,t=this.components(),i=[].concat(n(Object.keys(t)),n(Object.keys((null===(e=this.options)||void 0===e?void 0:e.components)||{}))).reduce(function(e,n){return e[n]=function(){return null},e},{}),r={Steps:W,Tabs:W,GuideCard:W,Table:W};return Object.assign(Object.assign(Object.assign({},i),r),{React:X})}}])}();function W(){return null}function X(){return null}function q(){var e=this,n=le.bind(this),t=J.bind(this),i={h1:function(e){return l.createElement(t,Object.assign({depth:1},e,{noanchor:!0}))},h2:function(n){var i,r,o,a=null===(r=null===(i=e.settings)||void 0===i?void 0:i.theme)||void 0===r?void 0:r.appearance;return l.createElement(l.Fragment,null,(null===(o=null==a?void 0:a.content)||void 0===o?void 0:o.sectionSeparator)?l.createElement(T,null):null,l.createElement(t,Object.assign({depth:2},n)))},h3:function(e){return l.createElement(t,Object.assign({depth:3},e))},h4:function(e){return l.createElement(t,Object.assign({depth:4},e))},h5:function(e){return l.createElement(t,Object.assign({depth:5},e))},p:function(e){return l.createElement(B,Object.assign({},e))},ul:function(e){return l.createElement(j,Object.assign({},e),e.children)},ol:function(e){return l.createElement(E,Object.assign({},e),e.children)},li:function(e){return l.createElement(j.Item,Object.assign({},e),e.children)},table:function(n){var t,i,r,o,a=null===(o=null===(r=null===(i=null===(t=e.settings)||void 0===t?void 0:t.theme)||void 0===i?void 0:i.appearance)||void 0===r?void 0:r.tables)||void 0===o?void 0:o.kind;return l.createElement(p,Object.assign({kind:a},n))},tr:function(e){return l.createElement(p.Tr,Object.assign({},e))},th:function(e){return l.createElement(p.Th,Object.assign({},e))},td:function(e){return l.createElement(p.Td,Object.assign({},e),l.createElement(p.Cell,null,e.children))},code:function(e){return l.createElement(I,Object.assign({},e))},pre:n,details:function(e){return l.createElement(C,Object.assign({},e))},blockquote:function(e){return l.createElement(H,Object.assign({},e))},hr:function(e){e.children;var n=a(e,["children"]);return l.createElement(T,Object.assign({},n))},a:function(n){var t;return l.createElement(se,Object.assign({},n,{as:null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.Link}))},br:function(e){e.children;var n=a(e,["children"]);return l.createElement("br",Object.assign({},n))},img:function(e){e.children;var n=e.src,t=e.alt,i=a(e,["children","src","alt"]);return l.createElement(L,Object.assign({src:n,alt:t},i))},picture:function(e){var n=e.children,t=a(e,["children"]);return l.createElement("picture",Object.assign({},t),n)},source:function(e){e.children;var n=a(e,["children"]);return l.createElement("source",Object.assign({},n))},input:function(e){e.children;var n=a(e,["children"]);return l.createElement("input",Object.assign({},n))},textarea:function(e){e.children;var n=a(e,["children"]);return l.createElement("textarea",Object.assign({},n))},div:function(e){return l.createElement("div",Object.assign({},e))},span:function(e){return l.createElement("span",Object.assign({},e))},iframe:function(e){return l.createElement("iframe",Object.assign({},e))},svg:function(e){return l.createElement("svg",Object.assign({},e))},feature:function(e){return l.createElement("div",{"data-feature-flag":e.flag,"data-feature-match":e.match},e.children)},React:X};return Object.assign(Object.assign({},i),{H1:i.h1,H2:i.h2,H3:i.h3,H4:i.h4,H5:i.h5,P:i.p,Ul:i.ul,Ol:i.ol,Li:i.li,Table:i.table,Tr:i.tr,Th:i.th})}function J(e){var n,t=e.id,r=e.depth,o=e.children,a=e.label,d=e.subtitle,v=e.noanchor,h=e.style,m=null===(n=null==this?void 0:this.options)||void 0===n?void 0:n.useNavigation(),f=D(),p=c(null),g=s(!1),j=i(g,2),E=j[0],O=j[1];function w(e){var n=window.location.hash==="#".concat(t);O(n)}return u(function(){window.addEventListener("replaceState",w);var e=window.location.hash==="#".concat(t);return O(e),e&&p.current&&"loading"!==(null==m?void 0:m.state)&&p.current.scrollIntoView(),function(){window.removeEventListener("replaceState",w)}},[]),l.createElement(b,{ref:p,id:t,size:r,active:E,onClick:function(){var e;t&&f.docs.anchor.click({id:t});var n=new URL(window.location.href);n.hash=t,history.replaceState(null,"",n),null===(e=document.querySelector("#".concat(t)))||void 0===e||e.scrollIntoView()},label:a,subtitle:d,noanchor:v,style:h},o)}function _(){var e=Q.bind(this);e.List=m.List;var n=Y.bind(this),t=ee.bind(this);return t.Content=ne.bind(this),t.Item=te.bind(this),t.Item.displayName="Tabs.Item",{Callout:S,Details:C,GuideCard:e,Breadcrumbs:n,Steps:g,Tabs:t,Table:p,Badge:f,Button:P,Subtitle:function(e){var n,t,i=null===(t=null===(n=null==e?void 0:e.children)||void 0===n?void 0:n.props)||void 0===t?void 0:t.children;return l.createElement(b,Object.assign({size:4,kind:"muted"},e),i)},Update:y,Card:Z.bind(this),ColorSchemeButton:k,Feature:function(e){return l.createElement("div",{"data-feature-flag":e.flag,"data-feature-match":e.match},e.children)}}}function K(){return{PageHome:R,PageFirstSlide:F,PageBlogHome:M.bind(this)}}function M(e){var n;return l.createElement(N,Object.assign({},e,{as:null===(n=null==this?void 0:this.options)||void 0===n?void 0:n.Link}))}function Q(e){var n;return l.createElement(m,Object.assign({},e,{as:null===(n=null==this?void 0:this.options)||void 0===n?void 0:n.Link}))}function Y(e){var n;return l.createElement(U,Object.assign({},e,{as:null===(n=null==this?void 0:this.options)||void 0===n?void 0:n.Link}))}function Z(e){var n;return l.createElement(x,Object.assign({},e,{link:null===(n=null==this?void 0:this.options)||void 0===n?void 0:n.Link}))}W.Item=function(){return null},W.Content=function(){return null},W.List=function(){return null},W.Head=function(){return null},W.Td=function(){return null},W.Tr=function(){return null},W.Th=function(){return null},W.Cell=function(){return null},X.Fragment=l.Fragment;var $=d({value:"",onChange:function(e){}});function ee(e){var n=s(e.value),t=i(n,2),r=t[0],o=t[1];return l.createElement($,{value:{value:r,onChange:o}},l.createElement(O,Object.assign({},e,{value:r,onChange:function(e){var n=new URL(window.location.href),t=n.searchParams;new URLSearchParams(e).forEach(function(e,n){t.set(n,e)}),n.search=t.toString(),history.replaceState(null,"",n),o(e)}})))}function ne(e){var n,t,i=v($).onChange,r=null===(t=null===(n=null==this?void 0:this.options)||void 0===n?void 0:n.useLocation)||void 0===t?void 0:t.call(n),o=null==r?void 0:r.search,a=new URLSearchParams(o),c=new URLSearchParams(e.value),s=!0,d=!0;return c.forEach(function(e,n){var t=a.get(n);t!==e&&(s=!1),t||(d=!1)}),u(function(){s&&i(e.value)},[s]),d||(s=void 0),l.createElement(O.Content,Object.assign({},e,{defaultActive:s}))}function te(e){var n,t,i,r=v($).onChange,o=null===(t=null===(n=null==this?void 0:this.options)||void 0===n?void 0:n.useLocation)||void 0===t?void 0:t.call(n),a=null==o?void 0:o.search,c=new URLSearchParams(a),s=new URLSearchParams(e.value),d=!0;return s.forEach(function(e,n){c.get(n)!==e&&(d=!1)}),u(function(){d&&r(e.value)},[d]),l.createElement(O.Item,Object.assign({},e,{as:null===(i=null==this?void 0:this.options)||void 0===i?void 0:i.Link,defaultActive:d}))}function ie(){return{Icon:o}}function re(){return{CodeSample:G}}function oe(){var e=this;return{DirectiveCodeGroup:function(n){var t,i,r;return l.createElement(G,Object.assign({},n,{theme:(null===(r=null===(i=null===(t=e.settings)||void 0===t?void 0:t.theme)||void 0===i?void 0:i.coder)||void 0===r?void 0:r.syntaxHighlight)||void 0,codeblocks:JSON.parse(n.codeblocks||"[]")}))}}}function ae(){return{GridDecorator:A}}function le(e){var n,t,i,r,o,a,c,s,u,d=void 0;if(e.highlighted)try{var v=JSON.parse(e.highlighted);v&&(d=v)}catch(e){console.error("Error parsing highlighted code",e)}var m,f=((null===(t=null===(n=null==e?void 0:e.children)||void 0===n?void 0:n.props)||void 0===t?void 0:t.className)||"").replace("language-",""),p=void 0;if(null==e?void 0:e.descriptionContent){var g=function(e){var n=ue(e);if(!ue)return{};return{component:null==n?void 0:n.default}}(null==e?void 0:e.descriptionContent);if(null==g?void 0:g.component){var b=(m=null==g?void 0:g.component,h(function(){return m||null},[m]));p=l.createElement(b,{components:this.components()})}}return l.createElement(G,{theme:(null===(o=null===(r=null===(i=this.settings)||void 0===i?void 0:i.theme)||void 0===r?void 0:r.coder)||void 0===o?void 0:o.syntaxHighlight)||void 0,name:f,description:"string"==typeof(null==e?void 0:e.title)?null==e?void 0:e.title:null===(c=null===(a=null==e?void 0:e.children)||void 0===a?void 0:a.props)||void 0===c?void 0:c.meta,codeblocks:[{value:null===(u=null===(s=null==e?void 0:e.children)||void 0===s?void 0:s.props)||void 0===u?void 0:u.children,lang:f,meta:f,highlighted:d}],lineNumbers:null==e?void 0:e.lineNumbers,size:null==e?void 0:e.size,descriptionHead:null==e?void 0:e.descriptionHead,descriptionContent:p,descriptionIcon:null==e?void 0:e.descriptionIcon})}var ce=/https?:\/\//;function se(e){var n=e.href,t=void 0===n?"":n,i=e.as,r=e.newWindow,o=e.children,c=a(e,["href","as","newWindow","children"]),s=i||w;return i||(c.newWindow=r||ce.test(t)),l.createElement(s,Object.assign({href:t},c,{as:i}),o)}function ue(e){var t={Fragment:l.Fragment,jsxs:de,jsx:de,jsxDEV:de};return r(Function,n(Object.keys(t)).concat([e]))(t)}var de=function(e,n){var t,i=function(e){return e.map(function(e,n){return l.isValidElement(e)&&!e.key?l.cloneElement(e,{key:"mdx-".concat(n)}):Array.isArray(e)?i(e):e})};return t=n&&n.children?Array.isArray(n.children)?i(n.children):l.isValidElement(n.children)&&!n.children.key?l.cloneElement(n.children,{key:"mdx-child"}):n.children:[],l.createElement(e,Object.assign(Object.assign({},n),{children:t}))},ve="ca1c472";function he(e){var n=e.children,t=e.metaComponent;return l.createElement("xyd-content-decorator",{className:ve,"meta-component":t||void 0},n)}export{he as ContentDecorator,z as ReactContent,V as SearchButtonFullWidth,re as coderContent,oe as directiveContent,ie as iconContent,q as stdContent,_ as writerContent};
|
|
2
|
+
//# sourceMappingURL=content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","sources":["../src/content/AppearanceDecorator.styles.tsx","../src/content/ReactContent.tsx","../src/content/ContentDecoator.styles.tsx","../src/content/ContentDecorator.tsx"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nexport const SearchButtonFullWidth = css`\n [data-desktop]:has(xyd-nav-item xyd-search-button) {\n width: 100%;\n }\n\n xyd-nav-item:has(xyd-search-button) {\n flex: 1;\n }\n`\n","import React, { createContext, useContext, useEffect, useMemo, useRef, useState } from 'react'\nimport { HighlightedCode } from 'codehike/code';\n\nimport {\n Settings\n} from \"@xyd-js/core\"\n\nimport {\n Anchor,\n Badge,\n Blockquote,\n Callout,\n Code,\n Details,\n GuideCard,\n Heading,\n Hr,\n Table,\n Tabs,\n Steps,\n List,\n ListOl,\n Text,\n Button,\n Icon,\n Image,\n Update,\n Card,\n ColorSchemeButton,\n Breadcrumbs\n} from '../../writer'\nimport { PageHome, PageFirstSlide, PageBlogHome } from '../../pages'\nimport { CodeSample } from \"../../coder\";\nimport { GridDecorator } from './GridDecorator';\nimport { useUXEvents } from '../uxsdk';\n\ninterface ReactContentOptions {\n Link?: React.ElementType\n components?: { [component: string]: (props: any) => React.JSX.Element | null }\n useLocation?: () => {\n search: string\n } // TODO: !!!! BETTER API !!!!!\n useNavigate?: (to: any) => void // TODO: !!!! BETTER API !!!!!\n useNavigation?: () => any, // TODO: !!!! BETTER API !!!!!\n\n}\n\nexport class ReactContent {\n constructor(\n protected settings?: Settings,\n protected options?: ReactContentOptions\n ) {\n }\n\n public components(): { [component: string]: (props: any) => React.JSX.Element | null } {\n const builtInComponents = [\n stdContent,\n writerContent,\n pageComponents,\n iconContent,\n coderContent,\n directiveContent,\n contentDecorators,\n ]\n .map(fn => fn.bind(this))\n .reduce((acc, fn) => ({ ...acc, ...fn() }), {});\n\n return {\n ...builtInComponents,\n ...this.options?.components || {}\n }\n }\n\n public noop() {\n const components = this.components()\n\n const noopBuiltInFlatComponents = [\n ...Object.keys(components),\n ...Object.keys(this.options?.components || {})\n ].reduce((acc, key) => {\n acc[key] = () => null\n return acc\n }, {})\n\n const noopNestedComponents = {\n Steps: NoopComponent,\n Tabs: NoopComponent,\n GuideCard: NoopComponent,\n Table: NoopComponent,\n }\n\n return {\n ...noopBuiltInFlatComponents,\n ...noopNestedComponents,\n React: NoopReactComponent,\n }\n }\n}\n\nfunction NoopComponent() {\n return null\n}\nNoopComponent.Item = () => null\nNoopComponent.Content = () => null\nNoopComponent.List = () => null\nNoopComponent.Head = () => null\nNoopComponent.Td = () => null\nNoopComponent.Tr = () => null\nNoopComponent.Th = () => null\nNoopComponent.Cell = () => null\n\n\nfunction NoopReactComponent() { // TODO: !!!! in the future refactor but `html-to-jsx-transform` creates <React.Fragment> !!!\n return null\n}\nNoopReactComponent.Fragment = React.Fragment\n\nexport function stdContent(\n this: ReactContent,\n) {\n const $$Pre = $Pre.bind(this)\n const $$Heading = $Heading.bind(this)\n\n const stdComponents = {\n h1: (props) => {\n return <$$Heading depth={1} {...props} noanchor />\n },\n h2: props => {\n const appearance = this.settings?.theme?.appearance\n\n return <>\n {appearance?.content?.sectionSeparator ? <Hr /> : null}\n\n <$$Heading depth={2} {...props} />\n </>\n },\n h3: props => {\n return <$$Heading depth={3} {...props} />\n },\n h4: props => {\n return <$$Heading depth={4} {...props} />\n },\n h5: props => {\n return <$$Heading depth={5} {...props} />\n },\n p: props => {\n return <Text {...props} />\n },\n ul: props => {\n return <List {...props}>\n {props.children}\n </List>\n },\n ol: props => {\n return <ListOl {...props}>\n {props.children}\n </ListOl>\n },\n li: props => {\n return <List.Item {...props} >\n {props.children}\n </List.Item>\n },\n\n table: (props) => {\n const kind = this.settings?.theme?.appearance?.tables?.kind\n\n return <Table kind={kind} {...props} />\n },\n tr: (props) => {\n return <Table.Tr {...props} />\n },\n th: (props) => {\n return <Table.Th {...props} />\n },\n td: (props) => {\n return <Table.Td {...props}>\n <Table.Cell>\n {props.children}\n </Table.Cell>\n </Table.Td>\n },\n\n code: (props) => {\n return <Code {...props} />\n },\n pre: $$Pre,\n details: (props) => {\n return <Details {...props} />\n },\n blockquote: (props) => {\n return <Blockquote {...props} />\n },\n hr: ({ children, ...props }) => {\n return <Hr {...props} />\n },\n a: (props) => {\n return <$Link {...props} as={this?.options?.Link} />\n },\n br: ({ children, ...props }) => {\n return <br {...props} />\n },\n img: ({ children, src, alt, ...props }) => {\n return <Image src={src} alt={alt} {...props} />\n },\n picture: (props) => {\n const { children, ...rest } = props\n\n return <picture {...rest}>\n {children}\n </picture>\n },\n source: (props) => {\n const { children, ...rest } = props\n\n return <source {...rest} />\n },\n input: ({ children, ...props }) => {\n return <input {...props} />\n },\n textarea: ({ children, ...props }) => {\n return <textarea {...props} />\n },\n div: (props) => <div {...props} />,\n span: (props) => <span {...props} />,\n iframe: (props) => <iframe {...props} />,\n svg: (props) => <svg {...props} />,\n feature: (props) => <div data-feature-flag={props.flag} data-feature-match={props.match}>{props.children}</div>,\n React: NoopReactComponent,\n }\n\n return {\n ...stdComponents,\n H1: stdComponents.h1,\n H2: stdComponents.h2,\n H3: stdComponents.h3,\n H4: stdComponents.h4,\n H5: stdComponents.h5,\n P: stdComponents.p,\n Ul: stdComponents.ul,\n Ol: stdComponents.ol,\n Li: stdComponents.li,\n Table: stdComponents.table,\n Tr: stdComponents.tr,\n Th: stdComponents.th,\n }\n}\n\ninterface HeadingContentProps {\n id: string\n depth: 1 | 2 | 3 | 4 | 5 | 6\n children: React.ReactNode\n label?: string\n subtitle?: string\n noanchor?: boolean\n style?: any\n}\n\nfunction $Heading({ id, depth, children, label, subtitle, noanchor, style }: HeadingContentProps) {\n // const location = this?.options?.useLocation?.() // TODO: !!!! BETTER API !!!!!\n // const navigate = this?.options?.useNavigate() // TODO: !!!! BETTER API !!!!!\n const navigation = this?.options?.useNavigation() // TODO: !!!! BETTER API !!!!!\n const ux = useUXEvents()\n\n const ref = useRef<HTMLHeadingElement>(null!)\n const [active, setActive] = useState(false)\n\n function onReplaceState(e: any) {\n const active = window.location.hash === `#${id}`\n setActive(active)\n }\n\n useEffect(() => {\n window.addEventListener('replaceState', onReplaceState)\n\n const active = window.location.hash === `#${id}`\n setActive(active)\n\n if (active && ref.current && navigation?.state !== \"loading\") {\n ref.current.scrollIntoView()\n }\n\n return () => {\n window.removeEventListener('replaceState', onReplaceState)\n }\n }, [])\n\n return <Heading\n ref={ref}\n id={id}\n size={depth}\n active={active}\n onClick={() => {\n if (id) {\n ux.docs.anchor.click({\n id: id\n })\n }\n // navigate({\n // hash: id\n // })\n\n // TODO: !!! in the future we should use react-router but some issues with the hash !!!\n const url = new URL(window.location.href)\n url.hash = id\n history.replaceState(null, '', url)\n\n document.querySelector(`#${id}`)?.scrollIntoView()\n }}\n label={label}\n subtitle={subtitle}\n noanchor={noanchor}\n style={style}\n >\n {children}\n </Heading>\n}\n\nexport function writerContent() {\n const GuideCardContent = $GuideCardContentComponent.bind(this)\n GuideCardContent.List = GuideCard.List\n const BreadcrumbsContent = $BreadcrumbsContentComponent.bind(this)\n\n const TabsContent = $TabsContentComponent.bind(this)\n TabsContent.Content = $TabsContentContentComponent.bind(this)\n TabsContent.Item = $TabsItemContentComponent.bind(this)\n TabsContent.Item.displayName = \"Tabs.Item\"\n\n return {\n Callout,\n Details,\n GuideCard: GuideCardContent,\n Breadcrumbs: BreadcrumbsContent,\n Steps,\n Tabs: TabsContent,\n Table,\n Badge,\n Button,\n Subtitle(props) {\n const paragraph = props?.children?.props?.children\n\n return <Heading size={4} kind=\"muted\" {...props}>\n {paragraph}\n </Heading>\n },\n Update,\n Card: $Card.bind(this),\n ColorSchemeButton: ColorSchemeButton,\n Feature: (props) => <div data-feature-flag={props.flag} data-feature-match={props.match}>\n {props.children}\n </div>\n }\n}\n\nfunction pageComponents() {\n return {\n PageHome,\n PageFirstSlide,\n PageBlogHome: $PageBlogHome.bind(this)\n }\n}\n\nfunction $PageBlogHome(props) {\n return <PageBlogHome\n {...props}\n as={this?.options?.Link}\n />\n}\n\nfunction $GuideCardContentComponent(props) {\n return <GuideCard\n {...props}\n as={this?.options?.Link}\n />\n}\n\nfunction $BreadcrumbsContentComponent(props) {\n return <Breadcrumbs\n {...props}\n as={this?.options?.Link}\n />\n}\n\nfunction $Card(props) {\n return <Card\n {...props}\n link={this?.options?.Link}\n />\n}\n\nconst TabsContentContext = createContext({\n value: \"\",\n onChange: (v: string) => {\n }\n})\n\nfunction $TabsContentComponent(props) {\n const [value, setValue] = useState(props.value)\n\n return <TabsContentContext value={{ value, onChange: setValue }}>\n <Tabs\n {...props}\n value={value}\n onChange={val => {\n const url = new URL(window.location.href)\n const currentParams = url.searchParams\n\n // Update parameters from the new params\n new URLSearchParams(val).forEach((value, key) => {\n currentParams.set(key, value)\n })\n\n url.search = currentParams.toString()\n history.replaceState(null, '', url)\n\n setValue(val)\n }}\n />\n </TabsContentContext>\n}\n\nfunction $TabsContentContentComponent(this: ReactContent, props) {\n const { onChange } = useContext(TabsContentContext)\n const location = this?.options?.useLocation?.() // TODO: !!!! BETTER API !!!!!\n\n const search = location?.search\n const params = new URLSearchParams(search)\n const propsParams = new URLSearchParams(props.value)\n\n let tabsMatch: boolean | undefined = true\n let keyMatchExists = true\n propsParams.forEach((value, key) => {\n const paramKey = params.get(key)\n if (paramKey !== value) {\n tabsMatch = false\n }\n if (!paramKey) {\n keyMatchExists = false\n }\n })\n\n useEffect(() => {\n if (tabsMatch) {\n onChange(props.value)\n }\n }, [tabsMatch])\n\n if (!keyMatchExists) {\n tabsMatch = undefined\n }\n\n return <Tabs.Content {...props} defaultActive={tabsMatch} />\n}\n\nfunction $TabsItemContentComponent(props) {\n const { onChange } = useContext(TabsContentContext)\n const location = this?.options?.useLocation?.()\n\n const search = location?.search\n const params = new URLSearchParams(search)\n const propsParams = new URLSearchParams(props.value)\n\n let tabsMatch = true\n propsParams.forEach((value, key) => {\n if (params.get(key) !== value) {\n tabsMatch = false\n }\n })\n\n useEffect(() => {\n if (tabsMatch) {\n onChange(props.value)\n }\n }, [tabsMatch])\n\n return <Tabs.Item\n {...props}\n as={this?.options?.Link}\n defaultActive={tabsMatch}\n />\n}\n\n// TODO: better system for icons + should work with .md like icon=\"session-replay\" etc.\nexport function iconContent() {\n return {\n Icon,\n }\n}\n\nexport function coderContent() {\n return {\n CodeSample, // TODO: server side highlight?\n }\n}\n\nexport function directiveContent(\n this: ReactContent,\n) {\n return {\n // TODO: deprecate? - but currently needed for directive cuz we do JSON.parse here\n DirectiveCodeGroup: (props) => {\n return <CodeSample\n {...props}\n theme={this.settings?.theme?.coder?.syntaxHighlight || undefined}\n codeblocks={JSON.parse(props.codeblocks || \"[]\")}\n />\n }\n }\n}\n\nexport function contentDecorators() {\n return {\n GridDecorator\n }\n}\n\nfunction $Pre(\n this: ReactContent,\n props: any\n) {\n let highlighted: HighlightedCode | undefined = undefined\n\n if (props.highlighted) {\n // if ssr highlighted code\n try {\n const serverHighlight: HighlightedCode = JSON.parse(props.highlighted)\n\n if (serverHighlight) {\n highlighted = serverHighlight\n }\n } catch (e) {\n console.error(\"Error parsing highlighted code\", e)\n }\n }\n const lang = (props?.children?.props?.className || \"\").replace(\"language-\", \"\")\n\n let descriptionContent: React.ReactNode | undefined = undefined\n if (props?.descriptionContent) {\n const code = mdxContent(props?.descriptionContent)\n if (code?.component) {\n const Component = MemoMDXComponent(code?.component)\n\n descriptionContent = <Component components={this.components()} />\n }\n }\n\n return <CodeSample\n theme={this.settings?.theme?.coder?.syntaxHighlight || undefined}\n name={lang}\n description={typeof props?.title === \"string\" ? props?.title : props?.children?.props?.meta}\n codeblocks={[\n {\n value: props?.children?.props?.children,\n lang: lang,\n meta: lang,\n highlighted,\n }\n ]}\n lineNumbers={props?.lineNumbers}\n size={props?.size}\n descriptionHead={props?.descriptionHead}\n descriptionContent={descriptionContent}\n descriptionIcon={props?.descriptionIcon}\n />\n}\n\nconst EXTERNAL_HREF_REGEX = /https?:\\/\\//\n\ninterface LinkProps {\n href?: string\n as?: React.ElementType\n newWindow?: boolean\n children?: React.ReactNode\n}\n\nfunction $Link({\n href = '',\n as,\n newWindow,\n children,\n ...props\n}: LinkProps) {\n const Link = as || Anchor\n\n if (!as) {\n // TODO: fix any\n (props as any).newWindow = newWindow || EXTERNAL_HREF_REGEX.test(href)\n }\n\n return <Link\n href={href}\n {...props}\n as={as}\n >\n {children}\n </Link>\n}\n\n// TODO: move to content?\nfunction mdxExport(code: string) {\n // Create a wrapper around React.createElement that adds keys to elements in lists\n const scope = {\n Fragment: React.Fragment,\n jsxs: createElementWithKeys,\n jsx: createElementWithKeys,\n jsxDEV: createElementWithKeys,\n }\n const fn = new Function(...Object.keys(scope), code)\n\n return fn(scope)\n}\n\nfunction MemoMDXComponent(codeComponent: any) {\n return useMemo(\n () => codeComponent ? codeComponent : null,\n [codeComponent]\n )\n}\n\n\n// // TODO: move to content?\nfunction mdxContent(code: string) {\n const content = mdxExport(code) // TODO: fix any\n if (!mdxExport) {\n return {}\n }\n\n return {\n component: content?.default,\n }\n}\n\nconst createElementWithKeys = (type: any, props: any) => {\n // Process children to add keys to all elements\n const processChildren = (childrenArray: any[]): any[] => {\n return childrenArray.map((child, index) => {\n // If the child is a React element and doesn't have a key, add one\n if (React.isValidElement(child) && !child.key) {\n return React.cloneElement(child, { key: `mdx-${index}` });\n }\n // If the child is an array, process it recursively\n if (Array.isArray(child)) {\n return processChildren(child);\n }\n return child;\n });\n };\n\n // Handle both cases: children as separate args or as props.children\n let processedChildren;\n\n if (props && props.children) {\n if (Array.isArray(props.children)) {\n processedChildren = processChildren(props.children);\n } else if (React.isValidElement(props.children) && !props.children.key) {\n // Single child without key\n processedChildren = React.cloneElement(props.children, { key: 'mdx-child' });\n } else {\n // Single child with key or non-React element\n processedChildren = props.children;\n }\n } else {\n processedChildren = [];\n }\n\n // Create the element with processed children\n return React.createElement(type, {\n ...props,\n children: processedChildren\n });\n};","import { css } from \"@linaria/core\";\n\nexport default {\n ContentDecoratorHost: css`\n @layer components {\n --space-small: 8px;\n --space-medium: 16px;\n --space-large: 20px;\n --space-xlarge: 24px;\n --space-xxlarge: 32px;\n --space-2xlarge: 50px;\n\n font-size: var(--xyd-font-size-medium);\n line-height: var(--xyd-line-height-medium);\n\n p:not(li p):not(ul p):not(xyd-callout p):not(xyd-codetabs p):not(xyd-guidecard p):not([data-button=\"true\"] p) {\n margin-top: var(--space-medium);\n }\n\n button {\n p {\n color: var(--xyd-button-primary-color);\n }\n }\n\n & > img {\n margin-top: var(--space-medium);\n }\n\n figure {\n margin: 0;\n padding: 12px;\n background: var(--dark16);\n border-radius: 15px;\n border: 1px solid var(--dark32);\n text-align: center;\n padding-bottom: 0;\n\n figcaption {\n padding: 4px;\n }\n }\n\n blockquote {\n margin-top: var(--space-medium);\n }\n \n img {\n margin-top: var(--space-medium);\n }\n\n xyd-steps {\n margin-top: var(--space-medium);\n }\n \n table {\n margin-top: var(--space-xlarge);\n font-size: var(--xyd-font-size-small);\n line-height: var(--xyd-line-height-small);\n }\n \n details {\n &:not([data-kind=\"tertiary\"]) {\n --xyd-callout-bgcolor: var(--white);\n }\n margin-top: var(--space-medium);\n\n summary {\n [part=\"summary-deep\"], [part=\"summary-deep-label\"] {\n font-size: var(--xyd-font-size-small);\n line-height: var(--xyd-line-height-small);\n }\n [part=\"summary-deep-label\"] {\n font-weight: bold;\n }\n }\n\n &[data-kind=\"secondary\"] {\n code {\n background: var(--xyd-details-bgcolor--secondary);\n }\n }\n }\n\n hr {\n margin: var(--space-xxlarge) 0;\n }\n \n p {\n display: block;\n\n code {\n font-size: var(--xyd-font-size-small);\n line-height: var(--xyd-line-height-small);\n margin: 0;\n }\n }\n \n h2,h3,h4,h5,h6 {\n margin-top: var(--space-xxlarge);\n &[data-kind=\"muted\"] {\n display: block;\n }\n }\n h2 {\n margin-top: var(--space-2xlarge);\n }\n h2:first-of-type {\n margin-top: var(--space-xxlarge);\n }\n h4 {\n &[data-kind=\"muted\"] {\n margin: 4px 0 16px;\n }\n }\n \n ul:not(xyd-tabs ul), ol:not(xyd-tabs ol) {\n margin-top: var(--space-medium);\n }\n \n xyd-codetabs, xyd-callout, xyd-guidecard, xyd-tabs {\n margin: var(--space-large) 0;\n }\n \n xyd-guidecard [part=\"body\"] {\n color: var(--dark48);\n font-size: var(--xyd-font-size-small);\n line-height: var(--xyd-line-height-medium);\n\n p {\n color: var(--dark48);\n font-size: var(--xyd-font-size-small);\n line-height: var(--xyd-line-height-medium);\n }\n }\n \n xyd-guidecard-list xyd-guidecard {\n margin-bottom: 0;\n }\n\n xyd-tabs [part=\"buttons\"] {\n font-size: var(--xyd-font-size-small);\n line-height: var(--xyd-line-height-small);\n }\n\n xyd-callout {\n --xyd-font-size-medium: var(--xyd-font-size-small);\n }\n \n xyd-codetabs {\n xyd-code-pre {\n font-size: var(--xyd-font-size-xsmall);\n line-height: var(--xyd-line-height-xsmall);\n }\n }\n\n xyd-breadcrumbs {\n font-size: var(--xyd-font-size-small);\n line-height: var(--xyd-line-height-small);\n }\n\n xyd-grid-decorator {\n @media (min-width: 1025px) and (max-width: 1400px) {\n ul ul {\n grid-template-columns: repeat(2, 1fr);\n }\n \n /* Override data-cols for tablet */\n &[data-cols] {\n --data-cols: 2;\n }\n }\n }\n\n [data-content-element]:not([data-content-element=\"false\"]) {\n margin-top: var(--space-medium);\n }\n }\n `\n}\n","import React from 'react'\n\nimport cn from \"./ContentDecoator.styles\";\n\ninterface ContentDecoratorProps {\n children: React.ReactNode\n metaComponent?: string\n}\n\nexport function ContentDecorator({ children, metaComponent }: ContentDecoratorProps) {\n return <xyd-content-decorator\n className={cn.ContentDecoratorHost}\n meta-component={metaComponent || undefined}\n >\n {children}\n </xyd-content-decorator>\n}\n"],"names":["SearchButtonFullWidth","ReactContent","_createClass","settings","options","_classCallCheck","this","key","value","_this","builtInComponents","stdContent","writerContent","pageComponents","iconContent","coderContent","directiveContent","contentDecorators","map","fn","bind","reduce","acc","Object","assign","_a","components","noopBuiltInFlatComponents","concat","_toConsumableArray","keys","noopNestedComponents","Steps","NoopComponent","Tabs","GuideCard","Table","React","NoopReactComponent","_this2","$$Pre","$Pre","$$Heading","$Heading","stdComponents","h1","props","createElement","depth","noanchor","h2","appearance","_b","theme","Fragment","content","_c","sectionSeparator","Hr","h3","h4","h5","p","Text","ul","List","children","ol","ListOl","li","Item","table","kind","_d","tables","tr","Tr","th","Th","td","Td","Cell","code","Code","pre","details","Details","blockquote","Blockquote","hr","__rest","a","$Link","as","Link","br","img","src","alt","Image","picture","rest","source","input","textarea","div","span","iframe","svg","feature","flag","match","H1","H2","H3","H4","H5","P","Ul","Ol","Li","_ref","id","label","subtitle","style","navigation","useNavigation","ux","useUXEvents","ref","useRef","_useState","useState","_useState2","_slicedToArray","active","setActive","onReplaceState","e","window","location","hash","useEffect","addEventListener","current","state","scrollIntoView","removeEventListener","Heading","size","onClick","docs","anchor","click","url","URL","href","history","replaceState","document","querySelector","GuideCardContent","$GuideCardContentComponent","BreadcrumbsContent","$BreadcrumbsContentComponent","TabsContent","$TabsContentComponent","Content","$TabsContentContentComponent","$TabsItemContentComponent","displayName","Callout","Breadcrumbs","Badge","Button","Subtitle","paragraph","Update","Card","$Card","ColorSchemeButton","Feature","PageHome","PageFirstSlide","PageBlogHome","$PageBlogHome","link","Head","TabsContentContext","createContext","onChange","v","_useState3","_useState4","setValue","val","currentParams","searchParams","URLSearchParams","forEach","set","search","toString","useContext","useLocation","call","params","propsParams","tabsMatch","keyMatchExists","paramKey","get","undefined","defaultActive","Icon","CodeSample","_this3","DirectiveCodeGroup","coder","syntaxHighlight","codeblocks","JSON","parse","GridDecorator","highlighted","serverHighlight","console","error","codeComponent","lang","className","replace","descriptionContent","mdxExport","component","mdxContent","Component","useMemo","_e","name","description","title","_g","_f","meta","_j","_h","lineNumbers","descriptionHead","descriptionIcon","EXTERNAL_HREF_REGEX","_a$href","newWindow","Anchor","test","scope","jsxs","createElementWithKeys","jsx","jsxDEV","_construct","Function","type","processedChildren","processChildren","childrenArray","child","index","isValidElement","cloneElement","Array","isArray","cn","ContentDecorator","metaComponent"],"mappings":"k3BAEO,IAAMA,EAAqB,UC6CrBC,EAAY,WAKpB,OAAAC,EAJD,SAAAD,EACcE,EACAC,GAA6BC,OAAAJ,GAD7BK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