{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4919e1aa4d239b97faf05b9c985a4e585184d8e5","tarball":"https://registry.npmjs.org/@material/circular-progress/-/circular-progress-15.0.0-canary.e6072cd6a.0.tgz","fileCount":35,"integrity":"sha512-SDorFQF6zlkUa418gEoOiq73CP17S4dHe8WFagVcPM9Ya6CfBmhmBuW+J91xCVoB8aw2VRBbNh/zkTCbdGngvA==","signatures":[{"sig":"MEQCIAmH0L5gPAUNzA+boABoSt2TlmLenUafUBJd1L2CHvNaAiBixNNU8126ABtRtY+dhYKd6qNSQtjhl03l2rMthIGk7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":218586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifBn7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmor7g//YMbwoRUanRUn5Hh4b9eQgIpRh8pVh1b6syPOOqHknjGCzP1j\r\nMLVz+N7ZE38IqW8sz2jKmt1ThVmRT7x1dDeYvchG5DLV7L0f80DPxaHSb1hQ\r\nDwLzqPfjkHWiY7Fn3BYpKDbEQXINkvwc1uiDFivpdNt8A5on2D+C7PfC07zU\r\naXflcV4M4McAWy7RBJQAAlcDYvBm4J7+0Vuiy/yY3UuwnB6QBR7t7Idk75Ef\r\ndeMZ26i4T2Pwf7JnL3lNgzT1mZyU4dcFR7yqlmGyPVlvsaEtVcU8kX7ly+L8\r\nGC84y8GlDtRYUfxlGqdB5OuYLGqGMRLUSLd/Mw28iu/3/RP71igW+aPcWWwB\r\ng3EUBc5BpcP5vPCbsi/L6VS1dnyEqPMB1ZDTFkfr1fKWjIUibmFt8whJLVeb\r\np7GgefioIS+UyjK/mj0W6PFt7EcMjQkzEE919RMw5/q4YeEbUqbmW22+p1YL\r\niY4e8r8ViGE//c6x5nZbitWjivGa+lZi5ZRiup3nY252B6Arj3p17bfriIFf\r\naotIWfI1C6iFUQUigP0cWRjMvg4I4x/JxSuMgFLb8bnx91rHnH8cpiiwEn/x\r\n3tffzDVce+8bs6biFXGSyzjbKyRmwzWmI+D8iKcyADQlCelNR9BXn5fbaElh\r\nT8hbDOiMPJv+NcMTGbs+9yZs75HyrX+usrM=\r\n=nUz7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.circularProgress.js","name":"@material/circular-progress","module":"./index.js","readme":"<!--docs:\ntitle: \"Circular Progress\"\nlayout: detail\nsection: components\nexcerpt: \"Material Design-styled circular progress indicators.\"\niconId: progress_activity\npath: /catalog/circular-progress/\n-->\n\n# Circular Progress\n\nThe MDC Circular Progress component is a spec-aligned circular 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</ul>\n\n## Installation\n\n```\nnpm install @material/circular-progress\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<div class=\"mdc-circular-progress\" style=\"width:48px;height:48px;\" role=\"progressbar\" aria-label=\"Example Progress Bar\" aria-valuemin=\"0\" aria-valuemax=\"1\">\n  <div class=\"mdc-circular-progress__determinate-container\">\n    <svg class=\"mdc-circular-progress__determinate-circle-graphic\" viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\">\n      <circle class=\"mdc-circular-progress__determinate-track\" cx=\"24\" cy=\"24\" r=\"18\" stroke-width=\"4\"/>\n      <circle class=\"mdc-circular-progress__determinate-circle\" cx=\"24\" cy=\"24\" r=\"18\" stroke-dasharray=\"113.097\" stroke-dashoffset=\"113.097\" stroke-width=\"4\"/>\n    </svg>\n  </div>\n  <div class=\"mdc-circular-progress__indeterminate-container\">\n    <div class=\"mdc-circular-progress__spinner-layer\">\n      <div class=\"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"24\" cy=\"24\" r=\"18\" stroke-dasharray=\"113.097\" stroke-dashoffset=\"56.549\" stroke-width=\"4\"/>\n        </svg>\n      </div>\n      <div class=\"mdc-circular-progress__gap-patch\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"24\" cy=\"24\" r=\"18\" stroke-dasharray=\"113.097\" stroke-dashoffset=\"56.549\" stroke-width=\"3.2\"/>\n        </svg>\n      </div>\n      <div class=\"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-right\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"24\" cy=\"24\" r=\"18\" stroke-dasharray=\"113.097\" stroke-dashoffset=\"56.549\" stroke-width=\"4\"/>\n        </svg>\n      </div>\n    </div>\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@use \"@material/circular-progress/mdc-circular-progress\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport { MDCCircularProgress } from '@material/circular-progress';\n\nconst circularProgress = new MDCCircularProgress(document.querySelector('.mdc-circular-progress'));\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Sizing\n\nTo set the stroke-width and container size strictly to one of three sizes defined by guidelines, replace the templates with the following.\n\n#### Large (48px)\nSee [baseline template](#HTML-Structure) above.\n\n#### Medium (36px)\n```html\n<div class=\"mdc-circular-progress\" style=\"width:36px;height:36px;\" role=\"progressbar\" aria-label=\"Example Progress Bar\" aria-valuemin=\"0\" aria-valuemax=\"1\">\n  <div class=\"mdc-circular-progress__determinate-container\">\n    <svg class=\"mdc-circular-progress__determinate-circle-graphic\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n      <circle class=\"mdc-circular-progress__determinate-track\" cx=\"16\" cy=\"16\" r=\"12.5\" stroke-width=\"3\"/>\n      <circle class=\"mdc-circular-progress__determinate-circle\" cx=\"16\" cy=\"16\" r=\"12.5\" stroke-dasharray=\"78.54\" stroke-dashoffset=\"78.54\" stroke-width=\"3\"/>\n    </svg>\n  </div>\n  <div class=\"mdc-circular-progress__indeterminate-container\">\n    <div class=\"mdc-circular-progress__spinner-layer\">\n      <div class=\"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"16\" cy=\"16\" r=\"12.5\" stroke-dasharray=\"78.54\" stroke-dashoffset=\"39.27\" stroke-width=\"3\"/>\n        </svg>\n      </div>\n      <div class=\"mdc-circular-progress__gap-patch\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"16\" cy=\"16\" r=\"12.5\" stroke-dasharray=\"78.54\" stroke-dashoffset=\"39.27\" stroke-width=\"2.4\"/>\n        </svg>\n      </div>\n      <div class=\"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-right\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"16\" cy=\"16\" r=\"12.5\" stroke-dasharray=\"78.54\" stroke-dashoffset=\"39.27\" stroke-width=\"3\"/>\n        </svg>\n      </div>\n    </div>\n  </div>\n</div>\n```\n\n#### Small (24px)\n```html\n<div class=\"mdc-circular-progress\" style=\"width:24px;height:24px;\" role=\"progressbar\" aria-label=\"Example Progress Bar\" aria-valuemin=\"0\" aria-valuemax=\"1\">\n  <div class=\"mdc-circular-progress__determinate-container\">\n    <svg class=\"mdc-circular-progress__determinate-circle-graphic\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n      <circle class=\"mdc-circular-progress__determinate-track\" cx=\"12\" cy=\"12\" r=\"8.75\" stroke-width=\"2.5\"/>\n      <circle class=\"mdc-circular-progress__determinate-circle\" cx=\"12\" cy=\"12\" r=\"8.75\" stroke-dasharray=\"54.978\" stroke-dashoffset=\"54.978\" stroke-width=\"2.5\"/>\n    </svg>\n  </div>\n  <div class=\"mdc-circular-progress__indeterminate-container\">\n    <div class=\"mdc-circular-progress__spinner-layer\">\n      <div class=\"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"12\" cy=\"12\" r=\"8.75\" stroke-dasharray=\"54.978\" stroke-dashoffset=\"27.489\" stroke-width=\"2.5\"/>\n        </svg>\n      </div>\n      <div class=\"mdc-circular-progress__gap-patch\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"12\" cy=\"12\" r=\"8.75\" stroke-dasharray=\"54.978\" stroke-dashoffset=\"27.489\" stroke-width=\"2\"/>\n        </svg>\n      </div>\n      <div class=\"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-right\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"12\" cy=\"12\" r=\"8.75\" stroke-dasharray=\"54.978\" stroke-dashoffset=\"27.489\" stroke-width=\"2.5\"/>\n        </svg>\n      </div>\n    </div>\n  </div>\n</div>\n```\n### Four-Colored\n\nYou may choose to have the indicator in inderminate state animate through 4 colors. The template for the four-colored indicator is like that of the [baseline](#HTML-Structure), except the spinner layer is replicated 4 times, 1 for each color. See [Sass-Mixins](#Sass-Mixins) for how to customize the four colors.\nThis is done instead of animating the color property to reduce browser repaints.\n\n```html\n<div class=\"mdc-circular-progress\" style=\"width:48px;height:48px;\" role=\"progressbar\" aria-label=\"Example Progress Bar\" aria-valuemin=\"0\" aria-valuemax=\"1\">\n  <div class=\"mdc-circular-progress__determinate-container\">\n    <svg class=\"mdc-circular-progress__determinate-circle-graphic\" viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\">\n      <circle class=\"mdc-circular-progress__determinate-track\" cx=\"24\" cy=\"24\" r=\"18\" stroke-width=\"4\"/>\n      <circle class=\"mdc-circular-progress__determinate-circle\" cx=\"24\" cy=\"24\" r=\"18\" stroke-dasharray=\"113.097\" stroke-dashoffset=\"113.097\" stroke-width=\"4\"/>\n    </svg>\n  </div>\n  <div class=\"mdc-circular-progress__indeterminate-container\">\n    <div class=\"mdc-circular-progress__spinner-layer mdc-circular-progress__color-1\">\n      <div class=\"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"24\" cy=\"24\" r=\"18\" stroke-dasharray=\"113.097\" stroke-dashoffset=\"56.549\" stroke-width=\"4\"/>\n        </svg>\n      </div>\n      <div class=\"mdc-circular-progress__gap-patch\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"24\" cy=\"24\" r=\"18\" stroke-dasharray=\"113.097\" stroke-dashoffset=\"56.549\" stroke-width=\"3.8\"/>\n        </svg>\n      </div>\n      <div class=\"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-right\">\n        <svg class=\"mdc-circular-progress__indeterminate-circle-graphic\" viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle cx=\"24\" cy=\"24\" r=\"18\" stroke-dasharray=\"113.097\" stroke-dashoffset=\"56.549\" stroke-width=\"4\"/>\n        </svg>\n      </div>\n    </div>\n\n    <div class=\"mdc-circular-progress__spinner-layer mdc-circular-progress__color-2\">\n      <!-- Same as above -->\n    </div>\n\n    <div class=\"mdc-circular-progress__spinner-layer mdc-circular-progress__color-3\">\n      <!-- Same as above -->\n    </div>\n\n    <div class=\"mdc-circular-progress__spinner-layer mdc-circular-progress__color-4\">\n      <!-- Same as above -->\n    </div>\n  </div>\n</div>\n```\n\n## Style Customization\n\n### CSS Classes\n\nCSS Class | Description\n--------- | -------------\n`mdc-circular-progress` | Mandatory.  The root element.\n`mdc-circular-progress--indeterminate`   | Optional. Puts the circular progress indicator in an indeterminate state. |\n`mdc-circular-progress--closed`  | Optional. Hides the circular progress indicator. |\n`mdc-circular-progress__determinate-container` | Mandatory.  Contains the determinate progress indicator.\n`mdc-circular-progress__indeterminate-container` | Mandatory.  Contains the indeterminate progress indicator.\n`mdc-circular-progress__determinate-circle-graphic` | Mandatory. The determinate SVG.\n`mdc-circular-progress__determinate-track` | Mandatory.  The determinate SVG track.\n`mdc-circular-progress__determinate-circle` | Mandatory.  The determinate SVG circle.\n`mdc-circular-progress__spinner-layer` | Mandatory.  Another wrapper around the indeterminate indicator.\n`mdc-circular-progress__indeterminate-circle-graphic` | Mandatory.  An indeterminate SVG (there are three of these in total).\n`mdc-circular-progress__circle-clipper` | Mandatory.  Clips an indeterminate SVG circle so that only a section of it is visible.\n`mdc-circular-progress__circle-left` | Mandatory.  One of two circle sections that when combined are animated to form the full indeterminate progress indicator.\n`mdc-circular-progress__circle-right` | Mandatory.  One of two circle sections that when combined are animated to form the full indeterminate progress indicator.\n`mdc-circular-progress__gap-patch` | Mandatory.  A tiny little sliver of an SVG circle used to patch a gap between the circle-left and the circle-right.\n\n\n> _NOTE_: Ensure the correct inner SVG templates for each size are used to ensure optimal ratio of the stroke width to container size as specified in Material Design guidelines.\n\n### Sass Mixins\n\nMixin | Description\n----- | ------------\n`color($color)` | Customizes the stroke-color of the indicator. Applies to the determinate variant, and also the indeterminate variant unless the four-color mixin is applied.\n`track-color($color)` | Customizes the track color of the indicator. Applies to the determinate variant only.\n`indeterminate-colors($colors)` | Applies four animated stroke-colors to the indeterminate indicator. Applicable to the indeterminate variant only and overrides any single color currently set. Takes a list of exacty four colors.\n\n## `MDCCircularProgress` Properties and Methods\n\nProperty | Value Type | Description\n-------- | ---------- | --------------\n`determinate` | `boolean` (write-only) | Toggles the component between the determinate and indeterminate state.\n`progress` | `number` (write-only) | Sets the progress bar to this value. Value should be between 0 and 1.\n\nMethod Signature | Description |\n---------------- | ----------- |\n`open() => void` | Puts the component in the open state. |\n`close() => void` | Puts the component in the closed state. |\n\n\n## Usage within Web Frameworks\n\n### `MDCCircularProgressAdapter`\n\nMethod Signature | Description\n---------------- | -----------\n`addClass(className: string) => void` | Adds a class to the root element.\n`getDeterminateCircleAttribute(attributeName: string) => void` | Gets the specified attribute from the determinate circle element.\n`hasClass(className: string) => boolean` | Returns boolean indicating whether the root element has a given class.\n`removeClass(className: string) => void` | Removes a class from the root element.\n`removeAttribute(attributeName: string) => void` | Removes the specified attribute from the root element.\n`setAttribute(attributeName: string, value: string) => void` | Sets the specified attribute on the root element.\n`setDeterminateCircleAttribute(attributeName: string, value: string) => void` | Sets the specified attribute on the determinate circle element.\n\n### `MDCCircularProgressFoundation`\n\nMethod Signature | Description\n---------------- | ---\n`setDeterminate(value: boolean) => void` | Toggles the component between the determinate and indeterminate state.\n`isDeterminate() => boolean` | Whether or not the component is in determinate state.\n`setProgress(value: number) => void` | Sets the progress bar to this value. Value should be between [0, 1].\n`getProgress() => number` | The current progress value in the interval [0,1].\n`open() => void` | Puts the component in the open state.\n`close() => void` | Puts the component in the closed state.\n`isClosed() => boolean` | Whether or not the progress indicator is closed.\n\n\n","gitHead":"ef2da678e66576709be19aed16a880b00e73a039","license":"MIT","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"homepage":"https://github.com/material-components/material-components-web#readme","keywords":["material components","material design","circular-progress"],"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-circular-progress"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web circular progress component","directories":{},"maintainers":[{"name":"yefim","email":"hi@yef.im"},{"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":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@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":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e6072cd6a.0","@material/base":"15.0.0-canary.e6072cd6a.0","@material/theme":"15.0.0-canary.e6072cd6a.0","@material/animation":"15.0.0-canary.e6072cd6a.0","@material/feature-targeting":"15.0.0-canary.e6072cd6a.0","@material/progress-indicator":"15.0.0-canary.e6072cd6a.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/circular-progress_15.0.0-canary.e6072cd6a.0_1652300283541_0.746219165722072","host":"s3://npm-registry-packages"},"_id":"@material/circular-progress@15.0.0-canary.e6072cd6a.0","version":"15.0.0-canary.e6072cd6a.0"}