{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c3b1a6930317d6c3917f50a64b881b179032d930","tarball":"https://registry.npmjs.org/@material/notched-outline/-/notched-outline-4.0.0-canary.1.tgz","fileCount":30,"integrity":"sha512-WZlPVpjl3ZEuzvARFIFvT3sNB3PrVR77/9tOXNRFyHki07gL41ZOrLSJwaoUU9Tz/dPZmWFlff207fZz4SNqNA==","signatures":[{"sig":"MEYCIQCFRS3RtrUJnK7C07lnLxKKSon3yXCsp8B02bA0RiFZgwIhAInwN+797MjSlosJ9KKdLzEkI/fNjpmUL6mPCKLWWK7x","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddrQuCRA9TVsSAnZWagAAJNgQAIkfGF5eOb78YUombGb8\n2NoG754NTgA0xrCuDgnhZ0MviIT0S1EnCP87YUV5dAFLIZFXUoYQX1UL8SUC\nZf4GCjGhP829DfmpA3nF092vx4w11M22zWnDQ6E30/wn++kQxoWsokevOBUR\n+DJlMAjHdl/j748ztqThqhGOXc9gyVhIPrju61VCvAi9aR0D1DkvgPxAtRn/\nET+vVNszFbJvL/qOal3/4BiTHwujHm/bIKxbsG7wYPDxLgZLNIUw5BZFvjcv\n2qudehSjeukvrPsREjSvg8+Or4c5Agty1Wr0VnILlbnhcwHC6YmPg9iQutBP\n8Q97JkzE1xNixu8jIfCAGEpxcXp3CRraL/qXf6RQMuqaRHtHVmu9Z1heRSDa\no5rG4YWdY4qxA6ZbYO2asJJgiW66yyfJN2vbgoAZXNvgGgM6Cy/Am2+6QInl\nbvdHe4X9Zla0tL9OH9lu0Ygj8YrSjtgFve04dkBuZ8z/kD1tSpl31HKvt6tZ\nZunBODJTwzbH5cV5aAuZZdYAlrENqR2mDIuW9ZOgrsry7vZzx8CB5q6QQ/sd\nvAppHdOE2GFVvhp7CHNYxrogiWQRKEbQComnVAIX8n5UuBvmf+a7A8TBVYsL\nbM97AOvIeGQ+8rYowut/C3ZwHNyfXA4UwDGGEsxM9t+ADgeBdbbP0/vrPb40\nb0d7\r\n=TM49\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<div class=\"mdc-notched-outline\">\n  <div class=\"mdc-notched-outline__leading\"></div>\n  <div class=\"mdc-notched-outline__notch\">\n    <label class=\"mdc-floating-label\">Label</label>\n  </div>\n  <div class=\"mdc-notched-outline__trailing\"></div>\n</div>\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@import \"@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`mdc-notched-outline-color($color)` | Customizes the border color of the notched outline.\n`mdc-notched-outline-stroke-width($width)` | Changes notched outline width to a specified pixel value.\n`mdc-notched-outline-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`mdc-notched-outline-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":"edc72a4d7d6a61d61620fd05a80e2491e518bccf","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.14.1/node@v8.16.0+x64 (darwin)","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":"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":"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":"8.16.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^4.0.0-canary.1","@material/base":"^4.0.0-canary.1","@material/shape":"^4.0.0-canary.1","@material/theme":"^4.0.0-canary.1","@material/floating-label":"^4.0.0-canary.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/notched-outline_4.0.0-canary.1_1568060461821_0.41262160068178466","host":"s3://npm-registry-packages"},"_id":"@material/notched-outline@4.0.0-canary.1","version":"4.0.0-canary.1"}