diff --git a/packages/clay-link/docs/index.js b/packages/clay-link/docs/index.js index 424cf1fccc..fdb2ee5e6e 100644 --- a/packages/clay-link/docs/index.js +++ b/packages/clay-link/docs/index.js @@ -56,164 +56,6 @@ export const Link = () => { return ; }; -const linkWeightImportsCode = `import ClayLink from '@clayui/link';`; - -const LinkWeightCode = `const Component = () => { - return ( -
- - {'Primary'} - -
- ); -} - -render();`; - -const linkWeightJSPImportsCode = `<%@ taglib uri="http://liferay.com/tld/clay" prefix="clay" %>`; - -const LinkWeightJSPCode = ``; - -export const LinkWeight = () => { - const scope = {ClayLink}; - const codeSnippets = [ - { - imports: linkWeightImportsCode, - name: 'React', - value: LinkWeightCode, - }, - { - disabled: true, - imports: linkWeightJSPImportsCode, - name: 'JSP', - value: LinkWeightJSPCode, - }, - ]; - - return ; -}; - -const LinkOutlineCode = `const Component = () => { - return ( -
- - {'Primary'} - -
- ); -} - -render();`; - -const LinkOutlineJSPCode = ``; - -export const LinkOutline = () => { - const scope = {ClayLink}; - const codeSnippets = [ - { - imports: `import ClayLink from '@clayui/link';`, - name: 'React', - value: LinkOutlineCode, - }, - { - disabled: true, - imports: `<%@ taglib uri="http://liferay.com/tld/clay" prefix="clay" %>`, - name: 'JSP', - value: LinkOutlineJSPCode, - }, - ]; - - return ; -}; - -const LinkBorderlessCode = `const Component = () => { - return ( -
- - {'Primary'} - -
- ); -} - -render();`; - -const LinkBorderlessJSPCode = ``; - -export const LinkBorderless = () => { - const scope = {ClayLink}; - const codeSnippets = [ - { - imports: `import ClayLink from '@clayui/link';`, - name: 'React', - value: LinkBorderlessCode, - }, - { - disabled: true, - imports: `<%@ taglib uri="http://liferay.com/tld/clay" prefix="clay" %>`, - name: 'JSP', - value: LinkBorderlessJSPCode, - }, - ]; - - return ; -}; - -const LinkMonospacedCode = `const Component = () => { - return ( -
- - {'P'} - -
- ); -} - -render();`; - -const LinkMonospacedJSPCode = ``; - -export const LinkMonospaced = () => { - const scope = {ClayLink}; - const codeSnippets = [ - { - imports: `import ClayLink from '@clayui/link';`, - name: 'React', - value: LinkMonospacedCode, - }, - { - disabled: true, - imports: `<%@ taglib uri="http://liferay.com/tld/clay" prefix="clay" %>`, - name: 'JSP', - value: LinkMonospacedJSPCode, - }, - ]; - - return ; -}; - const linkContextImportsCode = `import ClayLink, {ClayLinkContext} from '@clayui/link';`; const LinkContextCode = `const Component = () => { diff --git a/packages/clay-link/docs/link.mdx b/packages/clay-link/docs/link.mdx index 247639199d..65a2511332 100644 --- a/packages/clay-link/docs/link.mdx +++ b/packages/clay-link/docs/link.mdx @@ -5,23 +5,12 @@ lexiconDefinition: 'https://liferay.design/lexicon/core-components/link/' packageNpm: '@clayui/link' --- -import { - Link, - LinkBorderless, - LinkMonospaced, - LinkOutline, - LinkWeight, - LinkContext, -} from '$packages/clay-link/docs/index'; +import {Link, LinkContext} from '$packages/clay-link/docs/index';
- Don't forget to check WAI-ARIA accessibility pratices for links when writting your markup. + Don't forget to check WAI-ARIA accessibility practices for links when writing your markup.
-These elements should be used to style links based on the global link and primary colors. - ## Styles(#css-styles)
@@ -151,28 +146,6 @@ Use these patterns for actions in components. ``` -## Outline(#css-outline) - -
- Primary -
- -```html -Primary -``` - -## Outline Borderless(#css-outline-borderless) - -
- Primary -
- -```html -Primary -``` - ## External Link(#css-external-link)
@@ -192,61 +165,6 @@ Use these patterns for actions in components. ``` -## Monospaced(#css-monospaced) - - - -```html - - - - - - - - - - - - - - - -``` - ## Title Link(#css-title-link)