@xyd-js/components 0.0.0-build-87368f8-20251101145203 → 0.0.0-build-c7bdbdb-20251129215505

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/Button-BBxaVRAi.js +2 -0
  3. package/dist/Button-BBxaVRAi.js.map +1 -0
  4. package/dist/CodeSample-DViMZ0Kn.js +2 -0
  5. package/dist/CodeSample-DViMZ0Kn.js.map +1 -0
  6. package/dist/Icon-CbDEiA4L.js +4 -0
  7. package/dist/Icon-CbDEiA4L.js.map +1 -0
  8. package/dist/PageFirstSlide-DlLBIXez.js +2 -0
  9. package/dist/{PageFirstSlide-04ZOtm1Q.js.map → PageFirstSlide-DlLBIXez.js.map} +1 -1
  10. package/dist/TabsAnalytics-OQlfG-3q.js +2 -0
  11. package/dist/TabsAnalytics-OQlfG-3q.js.map +1 -0
  12. package/dist/Update-ByqPw65k.js +2 -0
  13. package/dist/Update-ByqPw65k.js.map +1 -0
  14. package/dist/VideoGuide-BNPKC79p.js +2 -0
  15. package/dist/VideoGuide-BNPKC79p.js.map +1 -0
  16. package/dist/coder.js +1 -1
  17. package/dist/coder.js.map +1 -1
  18. package/dist/content.js +1 -1
  19. package/dist/content.js.map +1 -1
  20. package/dist/index.css +77 -77
  21. package/dist/layouts.js +1 -1
  22. package/dist/layouts.js.map +1 -1
  23. package/dist/pages.js +1 -1
  24. package/dist/pages.js.map +1 -1
  25. package/dist/system.js +1 -1
  26. package/dist/system.js.map +1 -1
  27. package/dist/useUXClick-DFIG_rVc.js +2 -0
  28. package/dist/{useUXClick-CXf2Q9Ik.js.map → useUXClick-DFIG_rVc.js.map} +1 -1
  29. package/dist/useUXEvents-C4q-ORmz.js +2 -0
  30. package/dist/{useUXEvents-DyuVrtlr.js.map → useUXEvents-C4q-ORmz.js.map} +1 -1
  31. package/dist/useUXScrollDepth-C--8FLqx.js +2 -0
  32. package/dist/{useUXScrollDepth-C5VYtUdO.js.map → useUXScrollDepth-C--8FLqx.js.map} +1 -1
  33. package/dist/uxsdk.js +1 -1
  34. package/dist/uxsdk.js.map +1 -1
  35. package/dist/views.js +1 -1
  36. package/dist/views.js.map +1 -1
  37. package/dist/writer.js +1 -1
  38. package/dist/writer.js.map +1 -1
  39. package/package.json +3 -2
  40. package/rollup.config.js +206 -173
  41. package/dist/Button-BHQFhDSv.js +0 -2
  42. package/dist/Button-BHQFhDSv.js.map +0 -1
  43. package/dist/CodeSample-B0ffqz0o.js +0 -2
  44. package/dist/CodeSample-B0ffqz0o.js.map +0 -1
  45. package/dist/Icon-Dw8kuLfy.js +0 -2
  46. package/dist/Icon-Dw8kuLfy.js.map +0 -1
  47. package/dist/PageFirstSlide-04ZOtm1Q.js +0 -2
  48. package/dist/TabsAnalytics-DFKcGPXp.js +0 -2
  49. package/dist/TabsAnalytics-DFKcGPXp.js.map +0 -1
  50. package/dist/Update-BYqk444o.js +0 -2
  51. package/dist/Update-BYqk444o.js.map +0 -1
  52. package/dist/VideoGuide-tuJ1s9Hq.js +0 -2
  53. package/dist/VideoGuide-tuJ1s9Hq.js.map +0 -1
  54. package/dist/_rollupPluginBabelHelpers-DsquMTLQ.js +0 -4
  55. package/dist/_rollupPluginBabelHelpers-DsquMTLQ.js.map +0 -1
  56. package/dist/useUXClick-CXf2Q9Ik.js +0 -2
  57. package/dist/useUXEvents-DyuVrtlr.js +0 -2
  58. package/dist/useUXScrollDepth-C5VYtUdO.js +0 -2
@@ -1 +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, p > 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 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 32px;\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(--xyd-text-color--default, var(--dark48));\n font-size: var(--xyd-font-size-small);\n line-height: var(--xyd-line-height-medium);\n\n p {\n color: var(--xyd-text-color--default, 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 margin-bottom: var(--space-small);\n font-weight: var(--xyd-font-weight-semibold);\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,KAAAH,SAAAA,EACAG,KAAAF,QAAAA,CAEd,EAAC,CAAA,CAAAG,IAAA,aAAAC,MAEM,WAAU,MAAAC,EAAAH,KACPI,EAAoB,CACtBC,EACAC,EACAC,EACAC,GACAC,GACAC,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,UAAW0C,GAAuB,iBAClBE,QAAiB9D,GAEhCnJ,EAET"}
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, p > 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 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 32px;\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(--xyd-text-color--default, var(--dark48));\n font-size: var(--xyd-font-size-small);\n line-height: var(--xyd-line-height-medium);\n\n p {\n color: var(--xyd-text-color--default, 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 margin-bottom: var(--space-small);\n font-weight: var(--xyd-font-weight-semibold);\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","components","builtInComponents","stdContent","writerContent","pageComponents","iconContent","coderContent","directiveContent","contentDecorators","map","fn","bind","this","reduce","acc","Object","assign","_a","options","noop","noopBuiltInFlatComponents","keys","key","noopNestedComponents","Steps","NoopComponent","Tabs","GuideCard","Table","React","NoopReactComponent","constructor","settings","$$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","id","label","subtitle","style","navigation","useNavigation","ux","useUXEvents","ref","useRef","active","setActive","useState","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","value","onChange","v","setValue","val","currentParams","searchParams","URLSearchParams","forEach","set","search","toString","useContext","useLocation","call","params","propsParams","tabsMatch","keyMatchExists","paramKey","get","undefined","defaultActive","Icon","CodeSample","DirectiveCodeGroup","coder","syntaxHighlight","codeblocks","JSON","parse","GridDecorator","highlighted","serverHighlight","console","error","lang","className","replace","descriptionContent","mdxExport","component","default","mdxContent","Component","codeComponent","useMemo","_e","name","description","title","_g","_f","meta","_j","_h","lineNumbers","descriptionHead","descriptionIcon","EXTERNAL_HREF_REGEX","newWindow","Anchor","test","scope","jsxs","createElementWithKeys","jsx","jsxDEV","Function","type","processChildren","childrenArray","child","index","isValidElement","cloneElement","Array","isArray","processedChildren","cn","ContentDecoratorHost","ContentDecorator","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