{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8da5b0495c695921af629355de2f7928d9cfd905","tarball":"https://registry.npmjs.org/@material/notched-outline/-/notched-outline-7.0.0-canary.2f052d824.0.tgz","fileCount":34,"integrity":"sha512-BTjcqLRd+s8Mqymgv2c36VUpyVpgUSLVM1s4YPgAfomax5qZy2ePfsaf/tXqJYb4ubBp7f75ebbNSujaTlyByQ==","signatures":[{"sig":"MEUCIQCOIiG+0V+Tnu6aUenM5/awhYybTEw7+jBHn/KICIDvGQIga8Tdr97cjiEKc21bw4c3MTOGvIrahdSURbSS9HIGYAQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":188881,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetcpGCRA9TVsSAnZWagAAHkgQAJ2WsX6MsJrIp37nRrFj\nsW6TBMpkgkkkgoONyG+CvFKqHuUUksC8GOldbr0WuqSZV4MWMrLD4AUG36hV\nfvmzlViOjiTKxtQ0YTT3pOuHFtsZhRv0l8wWC9A/PYeV3Q28TIWGpWs9n+LR\n1YcB2ixoklomOc9m7dCD6gGOTAgqH9uXFiZKYhjA9dEDco0rz1Ml420M1jqt\nOsXXQCCQsmaoZzC6k8HxRCj5AgQiiSflJFD3wzGZF9+0b7JVEh3QACdsuptM\ndbbyq+6wbwyb3fnvDNyyhGQxlWY4oVKwb7Jt5UY/6PpUUwfXa8ApTdNaJajV\nLnV2PYd/8CLqg+n3SPz7Pl/axngcupRk4YvSqllIdCuSOnPN9+WiiaK+znoN\nOvtEKYyaEY8rEgSoeHfRYodAriQUQ7hs5FtDJtoTkCph/4OQ+9PkeUYPEYc6\n4touFi4KMgkd/9y4s6YFZBTG5cfWY8aDXS9x5Awv/jjcbfatt9Oc3f02wZIg\nH6Bv7+Mk7PkfDVS4Jhmrgzu17GyQpoPiLMQH5jS2H43pYu81KG49X7wz4bdZ\ne+JaTaaS8kET3YTAlXgUOhsBPj6lqlbmQd0jPpzOQqCWGIu5OqRo0Al3HpcJ\nvOc09NSfW9GAOh1qUWHEXGXF/It3JA5GSv8DMKfiubND1ykQE9Aoo2J4WL6u\nfNwH\r\n=eakY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.notchedOutline.js","name":"@material/notched-outline","types":"dist/mdc.notchedOutline.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Notched Outline\"\nlayout: detail\nsection: components\nexcerpt: \"The notched outline is a border around either a Text Field or Select element\"\niconId: text_field\npath: /catalog/input-controls/notched-outline/\n-->\n\n# Notched Outline\n\nThe notched outline is a border around all sides of either a Text Field or Select component. This is used for the Outlined variant of either a Text Field or Select.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-text-fields#text-fields-field-variations\">Material Design guidelines: Text Field Variations</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/text-field\">Demo with Notched Outline on Text Field</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/notched-outline\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<span class=\"mdc-notched-outline\">\n  <span class=\"mdc-notched-outline__leading\"></span>\n  <span class=\"mdc-notched-outline__notch\">\n    <span class=\"mdc-floating-label\">Label</span>\n  </span>\n  <span class=\"mdc-notched-outline__trailing\"></span>\n</span>\n```\n\n> Note that the [MDC Floating Label](../mdc-floating-label/README.md) component is placed inside the notch element when\n> used together with MDC Notched Outline.\n\n> See the [MDC Text Field](../mdc-textfield/README.md#outlined) and\n> [MDC Select](../mdc-select/README.md#outlined-select) documentation for\n> information on using Notched Outline in the context of those components.\n\n### Styles\n\n```scss\n@use \"@material/notched-outline/mdc-notched-outline\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCNotchedOutline} from '@material/notched-outline';\n\nconst notchedOutline = new MDCNotchedOutline(document.querySelector('.mdc-notched-outline'));\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Style Customization\n\n### CSS Classes\n\nCSS Class | Description\n--- | ---\n`mdc-notched-outline` | Mandatory. Container for the outline's sides and notch.\n`mdc-notched-outline--notched` | Modifier class to open the notched outline.\n`mdc-notched-outline--no-label` | Modifier class to use when the floating label is empty or not used.\n`mdc-notched-outline__leading` | Mandatory. Element representing the leading side of the notched outline (before the notch).\n`mdc-notched-outline__notch` | Mandatory. Element representing the notch.\n`mdc-notched-outline__trailing` | Mandatory. Element representing the trailing side of the notched outline (after the notch).\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`color($color)` | Customizes the border color of the notched outline.\n`stroke-width($width)` | Changes notched outline width to a specified pixel value.\n`shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to notched outline element with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to false.\n`floating-label-float-position($positionY, $positionX, $scale)` | Sets the position and scale of the floating label inside the notched outline.\n\n## `MDCNotchedOutline` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`notch(notchWidth: number) => void` | Opens the notch with the specified width.\n`closeNotch() => void` | Closes the notch, rendering a full outline.\n\n## Usage Within Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Notched Outline for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCNotchedOutlineAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the notched outline element.\n`removeClass(className: string) => void` | Removes a class from the notched outline element.\n`setNotchWidthProperty(width: number) => void` | Sets the width of the notch in pixels.\n`removeNotchWidthProperty() => void` | Removes the width property from the notch element.\n\n### `MDCNotchedOutlineFoundation`\n\nMethod Signature | Description\n--- | ---\n`notch(notchWidth: number) => void` | Adds the `mdc-notched-outline--notched` class and updates the notch element's style based on `notchWidth`.\n`closeNotch() => void` | Removes the `mdc-notched-outline--notched` class.\n","gitHead":"e3bfb78e98db35607ba75f333490d9693f14e844","license":"MIT","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"homepage":"https://github.com/material-components/material-components-web#readme","keywords":["material components","material design","notchedoutline","notched outline"],"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-notched-outline"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web notched-outline component","directories":{},"maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.2f052d824.0","@material/base":"7.0.0-canary.2f052d824.0","@material/shape":"7.0.0-canary.2f052d824.0","@material/theme":"7.0.0-canary.2f052d824.0","@material/floating-label":"7.0.0-canary.2f052d824.0","@material/feature-targeting":"7.0.0-canary.2f052d824.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/notched-outline_7.0.0-canary.2f052d824.0_1588972102428_0.3873563931908557","host":"s3://npm-registry-packages"},"_id":"@material/notched-outline@7.0.0-canary.2f052d824.0","version":"7.0.0-canary.2f052d824.0"}