{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d03e33f0c38a24bdf5ced4c22ea63c7f083b8c54","tarball":"https://registry.npmjs.org/@material/line-ripple/-/line-ripple-12.0.0-canary.25751d2ed.0.tgz","fileCount":34,"integrity":"sha512-Fe+0Aut6rehjvsvcyL+DHpSFtHUlA1DH0umUfihwBr45aMJnWrJ1f51NaAJxpKupVpiNfWJRL4N4ooLywWvjyA==","signatures":[{"sig":"MEYCIQD/2XAgcttOJ/DSkmZ5aR+vMH3nRIILTqD+rkyZ4U6ZRgIhAMa3NGVPbKjSMFVVW5uMlTwA0QQ4cPdYHiswQOlkjo/D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":132109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnAAICRA9TVsSAnZWagAAxTEQAJMhYIUECGOBSBbH+YgC\nwBXMt6L3TH3Y3xgBwOG1bI7d43WpETXePrGk5RXwC/mG8jJQuddtNrTjS4gS\ngfYQnBoYUpzf8hVuZ7+GNCs6/mI4cq4cx16+F6VIccz3OxVTSfHfa5KET/jk\ns5jsAEeK5NVF7DMN5kr7x4gnY162WXY3/8j9KVbjCVIeY6GfctnTPmCMwosT\nglKWMy4EJ7XUe6+jOhEcSXMWqY+5318ZeAhBgRASWUCRxM5O5tmcHQIRzi3H\nZQOjt0/b1VIQB3mMi7oLOI0f/wl7Pen0eY+3J3JTYguTL8MAGqZgZs5ttgYq\nAn84Vchwwf8ErXpGv+9aUsydjzUptTbHo+cRDaQ4kQKnB9GBnclDvlO7vneS\na8k5lkJbzFNkZLgLNykdQCp2N0eweWKU4dWEcoef7ce6/pil4q/gdb1EXDHv\nFZ7kzR0NyE2VelXPczAhzFrkfGpx/3TNgnGu9SDxr3x+W3LfaFeW81xX6aj6\npI/zxLRUAI2s7tmCE+WCPb0yv+K5ZFAi1ur3LHx+HaOYiesznREXdKue+Mbp\nlMn7EcDassmSd2qQrOkB+Aay8QNHV+CenXAFsuwqHYLdJ3PvuCfZOSTmI829\nqrVSzqBFSXZ2cq/eym/O5/822NWy0o5+VhQICHTm7h4bFTW0KfpgpjLJBXDC\nfHX5\r\n=AGsH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.lineRipple.js","name":"@material/line-ripple","types":"dist/mdc.lineRipple.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Line Ripple\"\nlayout: detail\nsection: components\nexcerpt: \"The line ripple is used to highlight user-specified input above it.\"\npath: /catalog/input-controls/line-ripple/\n-->\n\n# Line Ripple\n\nThe line ripple is used to highlight user-specified input above it. When a line ripple is active, the line’s color and thickness changes.\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-layout\">Material Design guidelines: Text Fields Layout</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 Line Ripple on Text Field</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/line-ripple\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<span class=\"mdc-line-ripple\"></span>\n```\n\n### Styles\n\n```scss\n@use \"@material/line-ripple/mdc-line-ripple\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCLineRipple} from '@material/line-ripple';\n\nconst lineRipple = new MDCLineRipple(document.querySelector('.mdc-line-ripple'));\n```\n\n## Style Customization\n\n### CSS Classes\n\nCSS Class | Description\n--- | ---\n`mdc-line-ripple` | Mandatory.\n`mdc-line-ripple--active` | Styles the line ripple as an active line ripple.\n`mdc-line-ripple--deactivating` | Styles the line ripple as a deactivating line ripple.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`active-color($color)` | Customizes the color of the line ripple when active.\n`inactive-color($color)` | Customizes the color of the line ripple when inactive.\n\n## `MDCLineRipple` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`activate() => void` | Proxies to the foundation's `activate()` method.\n`deactivate() => void` | Proxies to the foundation's `deactivate()` method.\n`setRippleCenter(xCoordinate: number) => void` | Proxies to the foundation's `setRippleCenter(xCoordinate: number)` method.\n\n## Usage Within Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Line Ripple 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### `MDCLineRippleAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element.\n`removeClass(className: string) => void` | Removes a class from the root element.\n`hasClass(className: string) => boolean` | Determines whether the root element has the given CSS class name.\n`setStyle(propertyName: string, value: string) => void` | Sets the style property with `propertyName` to `value` on the root element.\n`registerEventHandler(evtType: EventType, handler: EventListener) => void` | Registers an event listener on the root element for a given event.\n`deregisterEventHandler(evtType: EventType, handler: EventListener) => void` | Deregisters an event listener on the root element for a given event.\n\n### `MDCLineRippleFoundation`\n\nMethod Signature | Description\n--- | ---\n`activate() => void` | Activates the line ripple.\n`deactivate() => void` |  Deactivates the line ripple.\n`setRippleCenter(xCoordinate: number) => void` | Sets the center of the ripple to the `xCoordinate` given.\n`handleTransitionEnd(evt: Event) => void` | Handles a `transitionend` event.\n","gitHead":"c38dadd226475a1dd91a992667019eefec273bbb","license":"MIT","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"homepage":"https://github.com/material-components/material-components-web#readme","keywords":["material components","material design","lineripple","line-ripple"],"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-line-ripple"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web line-ripple component","directories":{},"maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/base":"12.0.0-canary.25751d2ed.0","@material/theme":"12.0.0-canary.25751d2ed.0","@material/animation":"12.0.0-canary.25751d2ed.0","@material/feature-targeting":"12.0.0-canary.25751d2ed.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/line-ripple_12.0.0-canary.25751d2ed.0_1620836360140_0.03820222764876724","host":"s3://npm-registry-packages"},"_id":"@material/line-ripple@12.0.0-canary.25751d2ed.0","version":"12.0.0-canary.25751d2ed.0"}