{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a15a960a2825018a77451007c4a6a6d4b729e6d7","tarball":"https://registry.npmjs.org/@material/line-ripple/-/line-ripple-1.0.0-1.tgz","fileCount":29,"integrity":"sha512-yHT+Gi3invZv3Ya16YWAJZJ/h0cUr83ToO9uDlAnjW8VWaH9q2XEadGNqSNxva5Ucsm25KCGijtlVpnGutL0vg==","signatures":[{"sig":"MEQCIHveWzupiPuY+HwCjMZoTo/xraMk7n8NJnMH3Vod+eZCAiBCKZvMpI5V6cYccG+wK4OqS95evFoRKoQdXHs/3Mf6ZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":273535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfbW5CRA9TVsSAnZWagAABjgP/iA1HcIqwz2ATAoIQm1i\nL/amiK0qHnB/39NtKziL+jQ+6EdvCiWo2TdODLIYjqkOgx8j/Xp9ay7dNsHX\nwPleQNODNvXwU4njGNXfs9qJpKO9aMrbrCLoTW4bZxUOiJzyVHg1j3dJRY/1\nCev/LwQdP/5rtR9Tebkm6jIveJGiPhzpFowQqAXUL5uJa2cmOZHzFpxS0KTN\nRJL/XuOW80ZRAmC5Vvq7Yk5kB0sJ/VzBIp3aBqDthlTyf/LgeG+HfvpPD2Ty\ndI63r+xOGiz+6OXjMjK8tA8dSb9RWVXyjDrqhZaT9ZtFMSuZtW4OQn04cu3J\nP8+ObDDMK+1TnNciasClPSQw1O9OKTQch7+Cnk6DJJieV5soi4yDH4jxC9aP\n5YNh/QB8mz371m3Vly8IST/kwfojs3UzU3rG+ylvs+kQxABKqJMEN0bAN4OH\nfu5yH8zUU365S5v8f0gGTKuA71Fj0A47UE1RZLSh62mFI9rn8QWQsr0KQrrn\nVpiyMvUiJ7o/7TG12haHuyZgM8SRquG0D+N3hZaoOYGeYVYZRPW1JADXYEkY\n6txIq6RWQI4fYlB8Z7XUVIu4QSLq7b+sgUhe3m4AMHJEnqrea2LCCyosZeLx\nFN5OHJKIt2QSZAIln02WVThq3EGQh7wwnIbgGvQ/tb3pfcpS3GB55favGqwq\nNWp9\r\n=CFAk\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<div class=\"mdc-line-ripple\"></div>\n```\n\n### Styles\n\n```scss\n@import \"@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`mdc-line-ripple-color($color)` | Customizes the color of the line ripple when active.\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`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","license":"MIT","_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@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"},"_npmVersion":"6.7.0","description":"The Material Components for the web line-ripple component","directories":{},"maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.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":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+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.9.0","dependencies":{"tslib":"^1.9.3","@material/base":"^1.0.0-1","@material/theme":"^1.0.0-1","@material/animation":"^1.0.0-1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/line-ripple_1.0.0-1_1551742393217_0.7870868575918504","host":"s3://npm-registry-packages"},"_id":"@material/line-ripple@1.0.0-1","version":"1.0.0-1"}