{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b71458fb2c1bbeac2672c4035f93b57eadd7a2be","tarball":"https://registry.npmjs.org/@material/density/-/density-4.0.0-canary.8e36b3b7.0.tgz","fileCount":6,"integrity":"sha512-rJoQMTkF4Sfb4n4t33UJq81DzJw38qbW5NhkAU+Zpt77mlVvo20IJ44XA5l2ha/msu9leKhjE3MnKv7PQv80Og==","signatures":[{"sig":"MEUCIQDgyA7lu1lI/4bjudTiyGCbrPgrzzH5fvMt9F5FSEu5RQIgbbrvpo5rgOtPKat3rkcWahMtt44bdsjhT8C1WqGAzOw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvJz1CRA9TVsSAnZWagAAT7wQAIRWEo+UJMFPDheP63ng\ngGn2y2zcQC4NSxj9QG/KYaK9/+BPwIwJKwQ8xyaZLY5DgsNJl3ENGq+U6euE\nxjbQJ/fkM6SbjIgWE9kn0Ods+aywp3orFURLDzEuhxb1u37LVX0+cQSiyOi/\nCRJIxirrPJTV88DprS14m5tpF/CcgsAdOA6r6QDNHRi8zI2UuK82eNC/a0u2\ny2AhJWIGOcFGxaq2p/IG7pBvkG8SVg34jCTWn44QjakHY+kgkIOY86nYEQ06\nW+p3WHSrlnYPMGOMcV85YfOQHPfVVwDFja3A+K0RBqaNgCaEsa+TZHpsWjur\nH56gnu9XGhkzWZmGx1JVL7Gb8rDWOx9QP1D5y0HHxulxRwj389TJzmY5smIT\nUOYU9LRbSot+oJQ/RWYN1845F43zs2DzWmqE/0B8OGM5Zw1zcF/boa3H+rEx\nRFQsZa5O+UvnhLcvsGzorEHjwPqworn7AfGVyV5A/tVWe95Tg79+fDiF8hhK\nPLoNJT3evGcgYfYOq+T6cWYq4VznOB0ujzzZIcK1hn3b/3EJ10YR2WCOBod6\npIIVWWVNatnWKW2eqNadtnpynDmH9tsviZHCbfFLa3entpPXernlWiVnzVNf\nEOUr98LH4eALsvDTOhEefsnrg1eNg0O5Eiv2o09Ga2cSWqGFYPsKebBsuMGb\nkkVF\r\n=8Tvu\r\n-----END PGP SIGNATURE-----\r\n"},"name":"@material/density","readme":"<!--docs:\ntitle: \"Density\"\nlayout: detail\nsection: components\nexcerpt: \"Density subsystem provides adaptive layout to components.\"\npath: /catalog/density/\n-->\n\n# Density\n\nDensity subsystem provides adaptive layout to components. Material Design uses low-density space by default but offers high-density space when it improves the user experience. Components with high density enable users to process and take action against large amounts of information in a more manageable way. List, tables, and long forms are components that benefit from increased density.\n\n## Installation\n\n```\nnpm install @material/density\n```\n\n> NOTE: You do not need to directly depend on `@material/density`, Use component provided density Sass mixins instead.\n\n## Basic Usage\n\nThe styles for applying density to button component instance looks like this:\n\n```scss\n@import \"@material/button/mixins\";\n\n.my-custom-button {\n  // Sets button density scale to `-3`, i.e. button height to `24px`.\n  @include mdc-button-density(-3);\n}\n```\n\nThis would apply `-3` (high density) to button component instance.\n\n> You would indirectly use the Density API through respective component's mixin which takes care of setting appropriate\n> component height.\n\n## Density Mixins\n\nComponents that supports density provides Sass mixins to customize density for that component. Each density mixin takes in a density scale number, e.g. 0 (the default) or -1 (higher density).\n\nCurrently, the density system only allows negative numbers to customize for high density. The lower the density scale, the higher the component density. The exact density scale range depends on the component. If the scale number is unsupported by the component density mixin, the compiler will report an error at build time.\n\nThe height or size of a component is calculated with the following formula:\n\n```scss\n$height: $mdc-button-height + $mdc-density-interval * $density-scale\n/// @example 36px + 4px * (-3) => 24px\n```\n\nThe density interval is set to 4px for visual consistency.\n\nIt is recommended to customize density via the provided density mixins, rather than arbitrarily applying component height.\n\nNOTE: Touch targets are automatically disabled when density mixins are applied, since dense components should be optionally enabled and therefore do not have the same default accessibility requirements.\n\n## Style Customization\n\nThis package is used as utility for other components' density mixins. Customizations provided by this package is not intended to\nbe consumed directly by developers, use component's density mixin instead.\n\n### Sass Variables\n\nVariable | Description\n--- | ---\n`$mdc-density-interval` | Density interval between each dense scale. This interval is used for numbered density scale to calculate dense height based on baseline component height.\n`$mdc-density-minimum-scale` | Minimum scale supported by density subsystem. This scale always maps to highest dense scale.\n`$mdc-density-maximum-scale` | Maximum scale supported by density subsystem. This scale always maps to lowest dense scale.\n`$mdc-density-supported-scales` | Supported density scale when density literal is used (For example, `minimum`).\n\n### Sass Functions\n\nFunction | Description\n--- | ---\n`mdc-density-prop-value($density-config, $density-scale, $property-name)` | Returns component property value based on given density config and density scale.\n","gitHead":"62f51968b94685823af7942f779c63658f2b0350","license":"MIT","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"homepage":"https://github.com/material-components/material-components-web#readme","keywords":["material components","material design","density","adaptive layout"],"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-density"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"Density utilities for Material Components for the web","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"}],"_nodeVersion":"10.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/density_4.0.0-canary.8e36b3b7.0_1572642036810_0.572174043188399","host":"s3://npm-registry-packages"},"_id":"@material/density@4.0.0-canary.8e36b3b7.0","version":"4.0.0-canary.8e36b3b7.0"}