UNPKG

@uswds/web-components

Version:

> [!CAUTION] > Work on the next version of the Design System is happening in this repo. The code in this repository is not yet ready for production use.

1 lines 4.19 kB
{"schemaVersion":"1.0.0","readme":"","modules":[{"kind":"javascript-module","path":"index.js","declarations":[{"kind":"class","description":"","name":"UsaLink","cssProperties":[{"description":"Sets the link color","name":"--theme-link-color"},{"description":"Sets the color for visited links","name":"--theme-link-visited-color"},{"description":"Sets the hover state link color","name":"--theme-link-hover-color"},{"description":"Sets the active state link color","name":"--theme-link-active-color"}],"slots":[{"description":"This element has a slot","name":""}],"members":[{"kind":"field","name":"styles","type":{"text":"array"},"static":true,"default":"[styles]"},{"kind":"field","name":"properties","type":{"text":"object"},"static":true,"default":"{\n href: {},\n }"},{"kind":"method","name":"hasLinkChild"},{"kind":"method","name":"templateWithChildren"},{"kind":"method","name":"templateWithSlots"},{"kind":"method","name":"render"}],"attributes":[{"type":{"text":"String"},"description":"The url for the link","name":"href"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"usa-link","summary":"The usa-link component.","customElement":true}],"exports":[{"kind":"js","name":"UsaLink","declaration":{"name":"UsaLink","module":"index.js"}},{"kind":"custom-element-definition","name":"usa-link","declaration":{"name":"UsaLink","module":"index.js"}}]},{"kind":"javascript-module","path":"link.stories.js","declarations":[{"kind":"variable","name":"Default","type":{"text":"object"},"default":"{}"},{"kind":"variable","name":"ChildLink","type":{"text":"object"},"default":"{\n parameters: {\n a11y: {\n config: {\n rules: [\n {\n // It seems like this is just an issue with the test not\n // knowing about shadow DOM content projecting into the slot\n // but this should be verified manually\n id: \"link-name\",\n reviewOnFail: true,\n },\n ],\n },\n },\n },\n\n render: ({ href, label }) => html`\n <usa-link>\n <a href=\"${href}\">${label}</a>\n </usa-link>\n `,\n}"},{"kind":"variable","name":"Inverse","type":{"text":"object"},"default":"{\n parameters: {\n backgrounds: { default: \"dark\" },\n },\n}"}],"exports":[{"kind":"js","name":"default","declaration":{"module":"link.stories.js"}},{"kind":"js","name":"Default","declaration":{"name":"Default","module":"link.stories.js"}},{"kind":"js","name":"ChildLink","declaration":{"name":"ChildLink","module":"link.stories.js"}},{"kind":"js","name":"Inverse","declaration":{"name":"Inverse","module":"link.stories.js"}}]},{"kind":"javascript-module","path":"usa-link.css.js","declarations":[],"exports":[{"kind":"js","name":"default","declaration":{"module":"usa-link.css.js"}}]},{"kind":"javascript-module","path":"usa-link.spec.js","declarations":[],"exports":[]},{"kind":"javascript-module","path":"vite.config.js","declarations":[],"exports":[{"kind":"js","name":"default","declaration":{"module":"vite.config.js"}}]},{"kind":"javascript-module","path":"dist/usa-link.js","declarations":[{"kind":"class","description":"","name":"i","members":[{"kind":"method","name":"hasLinkChild"},{"kind":"method","name":"templateWithChildren"},{"kind":"method","name":"templateWithSlots"},{"kind":"method","name":"render"}],"superclass":{"name":"n","package":"lit"},"tagName":"usa-link","customElement":true}],"exports":[{"kind":"custom-element-definition","name":"usa-link","declaration":{"name":"i","module":"dist/usa-link.js"}},{"kind":"js","name":"UsaLink","declaration":{"name":"i","module":"dist/usa-link.js"}}]},{"kind":"javascript-module","path":"dist/usa-link.umd.cjs","declarations":[{"kind":"class","description":"","name":"s","members":[{"kind":"method","name":"hasLinkChild"},{"kind":"method","name":"templateWithChildren"},{"kind":"method","name":"templateWithSlots"},{"kind":"method","name":"render"}],"superclass":{"module":"/Users/matt/Code/18F/USWDS/uswds-next/src/components/usa-link/dist/usa-link.umd.cjs"},"tagName":"usa-link","customElement":true}],"exports":[{"kind":"custom-element-definition","name":"usa-link","declaration":{"name":"s","module":"dist/usa-link.umd.cjs"}}]}]}