{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1c74ad926c22b1d018f6201046bcc0830f39a8f3","tarball":"https://registry.npmjs.org/@material/linear-progress/-/linear-progress-5.0.0-canary.397905b4e.0.tgz","fileCount":31,"integrity":"sha512-q2wrQAjNiZV3uEjD5NBoZtZmna8a8ABqN2w17+H54ZIiUJgjsNAwqCX6QgcAVeF+hDJbfZ8+Nif+/wRJPLrjtA==","signatures":[{"sig":"MEQCIEsnn5QJw16Lc7s6vx5aHToF7fOiUpUBXlr8AwN58gsXAiBSxrEDaj+OHTzLHLGmTMkbHl6MDlEdhTeO3amQgLB1sg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":217247,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8aowCRA9TVsSAnZWagAAOq8QAINSCZ09NYVZimntKYu4\ndTZNnPODtpIIeh6bdFFxUVYfi5Xp8eNzAwPMMk4lgSwzFR9Ab+Ajz98COSmo\nfOk+rNuRi3hP16rXV6jPxIx6u6ccD2ikxhtPBUgCrClc3V7GqAm4qgmdu09N\nDegFD7iHS+TwpwRhfRikboz9FpCkvGVffVDQvLvj2xSCgNTHDeBqZEmJqWfo\nhVkWQCTqJFqOO9Vi1m8UpeCrq4zQHZdf9q9d9JZGfLdzPzcq8OWncHhzrbtV\nsWUrBgvwCAUWlWq/TT9tvqChPbW7+ioVyH+EoriNjxYLCCG9KG9B+xowlIhm\nAlsgjwSBpI6lCQKV0iOP/Z4pCAPHPOPGE/4wu3Z3YDfxmDsmI3roEx1rJb33\n3KgFb8LV3psOmG30o2BRSk4NZXWcSiZ4M4tKvtVB9FHBuLCSjv/kJB7X5t26\ndKXI0PTf2p9FTUObljVwM2F56Hgyrq8pO/jD246uNG14cOLTNUFuWBqYcX52\nV99NCfCZDNwuaHrx5ZEnG5arLxyyhjkzQ1eNvyfrCfjfrrt9wA86cuomp44J\ndPcgDivjCfhQZ3twOJfoflwqYhyfeAAVeFg/JJ5gK3aWXbNGEHdUpW3txfAr\nFVmbcp+mDfzcfkKOmDZ8YhsX4SS7Cxqi2kApUVwjFnTr/Ba8/YOnLhRsQAn3\n/WpC\r\n=UeY2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.linearProgress.js","name":"@material/linear-progress","types":"dist/mdc.linearProgress.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Linear Progress\"\nlayout: detail\nsection: components\nexcerpt: \"Material Design-styled linear progress indicators.\"\niconId: progress_linear\npath: /catalog/linear-progress/\n-->\n\n# Linear Progress\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n      href=\"https://material-components.github.io/material-components-web-catalog/#/component/linear-progress-indicator\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/linear-progress.png\" width=\"586\" alt=\"Linear progress screenshot\">\n  </a>\n</div>-->\n\nThe MDC Linear Progress component is a spec-aligned linear progress indicator component adhering to the\n[Material Design progress & activity requirements](https://material.io/go/design-progress-indicators).\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-progress-indicators\">Guidelines</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/linear-progress-indicator\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/linear-progress\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<div role=\"progressbar\" class=\"mdc-linear-progress\" aria-label=\"Example Progress Bar\" aria-valuemin=\"0\" aria-valuemax=\"1\" aria-valuenow=\"0\">\n  <div class=\"mdc-linear-progress__buffering-dots\"></div>\n  <div class=\"mdc-linear-progress__buffer\"></div>\n  <div class=\"mdc-linear-progress__bar mdc-linear-progress__primary-bar\">\n    <span class=\"mdc-linear-progress__bar-inner\"></span>\n  </div>\n  <div class=\"mdc-linear-progress__bar mdc-linear-progress__secondary-bar\">\n    <span class=\"mdc-linear-progress__bar-inner\"></span>\n  </div>\n</div>\n```\n\n### Accessibility\n\nProgress bars conform to the [WAI-ARIA Progressbar Specification](https://www.w3.org/TR/wai-aria/#progressbar). The supported ARIA attributes for this progress bar are:\n\n| Attribute | Description |\n| --------- | ----------- |\n| `aria-label` | Label indicating how the progress bar should be announced to the user. |\n| `aria-valuemin` | The minimum numeric value of the progress bar, which should always be `0`. |\n| `aria-valuemax` | The maximum numeric value of the progress bar, which should always be `1`. |\n| `aria-valuenow` | A numeric value between `aria-valuemin` and `aria-valuemax` indicating the progress value of the primary progress bar. This attribute is removed in indeterminate progress bars. |\n\nNote that `aria-label`, `aria-valuemin`, and `aria-valuemax` are static and must be configured in the HTML. `aria-valuenow` is updated dynamically by the foundation when the progress value is updated in determinate progress bars.\n\n### Styles\n```scss\n@import \"@material/linear-progress/mdc-linear-progress\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport { MDCLinearProgress } from '@material/linear-progress';\n\nconst linearProgress = new MDCLinearProgress(document.querySelector('.mdc-linear-progress'));\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n### CSS Modifiers\n\nThe provided modifiers are:\n\n| Class                 | Description                                             |\n| --------------------- | ------------------------------------------------------- |\n| `mdc-linear-progress--indeterminate`   | Puts the linear progress indicator in an indeterminate state. |\n| `mdc-linear-progress--reversed`  | Reverses the direction of the linear progress indicator.   |\n| `mdc-linear-progress--closed`  | Hides the linear progress indicator. |\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-linear-progress-bar-color($color)` | Sets the color of the progress bar\n`mdc-linear-progress-buffer-color($color)` | Sets the color of the buffer bar and dots\n\n### Using the Foundation Class\n\nMDC Linear Progress ships with an `MDCLinearProgressFoundation` class that external frameworks and libraries can\nuse to integrate the component. As with all foundation classes, an adapter object must be provided.\nThe adapter for linear progress must provide the following functions, with correct signatures:\n\n| Method Signature | Description |\n| --- | --- |\n| `addClass(className: string) => void` | Adds a class to the root element. |\n| `removeAttribute(attributeName: string) => void` | Removes the specified attribute from the root element. |\n| `removeClass(className: string) => void` | Removes a class from the root element. |\n| `hasClass(className: string) => boolean` | Returns boolean indicating whether the root element has a given class. |\n| `forceLayout() => void` | Force-trigger a layout on the root element. This is needed to restart animations correctly. |\n| `getPrimaryBar() => Element` | Returns the primary bar element. |\n| `getBuffer() => Element` | Returns the buffer element. |\n| `setAttribute(attributeName: string, value: string) => void` | Sets the specified attribute on the root element. |\n| `setStyle(el: Element, styleProperty: string, value: string) => void` | Sets the inline style on the given element. |\n\n### MDCLinearProgressFoundation API\n\nMDC Linear Progress Foundation exposes the following methods:\n\n| Method Signature | Description |\n| --- | --- |\n| `setDeterminate(value: boolean) => void` | Toggles the component between the determinate and indeterminate state. |\n| `setProgress(value: number) => void` | Sets the progress bar to this value. Value should be between [0, 1]. |\n| `setBuffer(value: number) => void` | Sets the buffer bar to this value. Value should be between [0, 1]. |\n| `setReverse(value: boolean) => void` | Reverses the direction of the linear progress indicator. |\n| `open() => void` | Puts the component in the open state. |\n| `close() => void` | Puts the component in the closed state. |\n\n### MDCLinearProgress API\n\nMDC Linear Progress exposes the following methods:\n\n| Method Signature | Description |\n| --- | --- |\n| `set determinate(value: boolean) => void` | Toggles the component between the determinate and indeterminate state. |\n| `set progress(value: number) => void` | Sets the progress bar to this value. Value should be between [0, 1]. |\n| `set buffer(value: number) => void` | Sets the buffer bar to this value. Value should be between [0, 1]. |\n| `set reverse(value: boolean) => void` | Reverses the direction of the linear progress indicator. |\n| `open() => void` | Puts the component in the open state. |\n| `close() => void` | Puts the component in the closed state. |\n","gitHead":"43ff8b8aaa48d3a31fc6835290f1ea1822301146","license":"MIT","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"homepage":"https://github.com/material-components/material-components-web#readme","keywords":["material components","material design","linear progress"],"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-linear-progress"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web linear progress indicator 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.17.0","dependencies":{"tslib":"^1.9.3","@material/base":"5.0.0-canary.397905b4e.0","@material/theme":"5.0.0-canary.397905b4e.0","@material/animation":"5.0.0-canary.397905b4e.0","@material/feature-targeting":"5.0.0-canary.397905b4e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/linear-progress_5.0.0-canary.397905b4e.0_1576118832345_0.9241864224148519","host":"s3://npm-registry-packages"},"_id":"@material/linear-progress@5.0.0-canary.397905b4e.0","version":"5.0.0-canary.397905b4e.0"}