{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4372b60b5f9a9fbe30a665793fd6a08c5b690bde","tarball":"https://registry.npmjs.org/@material/feature-targeting/-/feature-targeting-14.0.0-canary.cbd9358a6.0.tgz","fileCount":12,"integrity":"sha512-o1pj90QlCXL1eqgWwHV4qxafRrNqh/KbioR1GLflP1hJLTK6sTg3wK9EIrOJIvCZ2Wrc2w19s2lwccSH1W4oVw==","signatures":[{"sig":"MEUCIQDXqMUtDw5e+OwPvlcDhJZSPY2UNgWN80Hw2SPaE7Hc2wIgXZPBDtpZVNm7JTs+OncC283/sZ1uLgevWfZfAjEtrKQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiNQzdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpqjg//bmBeyypXeCE/fVDXtlQjX7QWDYI9TQ/+swP1LTr1ESqzFGHw\r\n5j9IBeMqeUm9uP3ggYQOPQUIitVV17g3AmcKSSbZgGb4xwjiNTs7U/xD5O6A\r\nYeLsUCNqrV6iS5p4VGy/0KphlucI+nt9qC5lWhhKozHU0eTQZZMZQUnvFexi\r\nfs5b3V2aA3Nxsl2TXslk2qGvCyetGrhp4v3kF+GRWmWSgzALThu4ZRUB44Z0\r\ncm1v396Ntkp6CIsEjfc354AX/rL4Nu4XsaHdZL3OoLkhA8lzhQnR+7MW9JaL\r\nV/7U6wVIHg4rOJlj2lEdRqIHSZDMEJm8uWNfn8LiPtGlHfiVPbbFvu+gWbhG\r\nzytATvGq8/xgeUAj7pSAnWRwATn8L7YrjIe5fX6Zjd6tWKIC06td1f3/zdrx\r\nIrM6G5n9dOdJQLTjZQYSF5G0B4mQ2xSLjQ26GDx9Vfi74Uy6HRxUuYYjPCGu\r\n4ayZUq2qoHPNmfdwzfmOmUPCbb+IDL2BAJ/0oMzqufxpAz34DS1hRgf2wUDy\r\n496IEUqr+F1FGFe6bI2muQck7+i83K3jkmlD8TX3HuiPkTc3SehtdDVvXxB/\r\nd12EYmzQP7EQARkM2p+YsAWbkkPTdUFqu6UNzJMzwnBdWRt/9tGQKrjGjlvy\r\n6U/4exbqjGJ02I9Q8YaY4Xm219B/gDYeLzI=\r\n=PSdY\r\n-----END PGP SIGNATURE-----\r\n"},"name":"@material/feature-targeting","readme":"<!--docs:\ntitle: \"Feature Targeting\"\nlayout: detail\nsection: components\nexcerpt: \"Provides infrastructure to allow CSS styles to be included or excluded categorically.\"\npath: /catalog/feature-targeting/\n-->\n\n# Feature Targeting\n\nMDC Feature Targeting provides infrastructure to allow CSS styles to be included or excluded categorically.\n\nMost of the time, you shouldn't need to depend on `mdc-feature-targeting` directly. However, understanding it can be useful if you're interested in having more control over when certain types of MDC styles are emitted.\n\n## Installation\n\n```\nnpm install @material/feature-targeting\n```\n\n## Basic Usage\n\n### Styles\n\nAuthoring component styles:\n\n```scss\n@use \"@material/feature-targeting\";\n\n@mixin my-component-core-styles($query: feature-targeting.all()) {\n  $feat-structure: feature-targeting.create-target($query, structure);\n\n  @include feature-targeting.targets($feat-structure) {\n    // ...\n  }\n}\n```\n\nConsuming component styles:\n\n```scss\n@use \"@material/feature-targeting\";\n@use \"my-component-mixins\";\n\n// To include all styles (using the default of mdc-feature-all() defined above):\n@include my-component-core-styles;\n\n// Or, to include a specific subset of styles:\n@include my-component-core-styles(structure);\n@include my-component-core-styles(feature-targeting.any(color, typography));\n// The above two @includes and the following @include would produce equivalent results:\n@include my-component-core-styles(feature-targeting.without(animation));\n```\n\n## Sass Mixins and Functions\n\nMixin | Description\n--- | ---\n`targets($feature-targets...)` | Conditionalizes content to only be emitted if the given feature target(s) is/are queried.\n\nFunction | Description\n--- | ---\n`create-target($feature-query, $targeted-feature)` | Returns a variable to be passed to `targets` in order to filter emitted styles.\n`all($feature-queries...)` | Returns a query object which will result in emitting `targets` blocks that match _all_ of the specified features. Passing no arguments results in all blocks being emitted, which is the most common use case.\n`any($feature-queries...)` | Returns a query object which will result in emitting `targets` blocks that match _any_ of the specified features. Passing no arguments results in no blocks being emitted.\n`without($feature-query)` | Returns a query object which will result in emitting `targets` blocks that do _not_ match the specified feature.\n\n`$feature-query` and `$feature-queries` refer to one or more of the values listed below under Supported Features.\n\n### Supported Features\n\nMDC Web's styles are currently split according to the following features:\n\n* `structure` - All baseline styles that don't fit into any other category\n* `animation` - Styles responsible for causing animations and transitions to occur\n* `color` - Color-specific styles which rely on `mdc-theme` variables\n* `typography` - Typography-specific styles which rely on `mdc-typography`\n","gitHead":"a4296a048e6aa0c1ab8e8d2cc6cb8321c24dab9f","license":"MIT","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"homepage":"https://github.com/material-components/material-components-web#readme","keywords":["material components","material design","feature targeting"],"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-feature-targeting"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"Material Components for the web Feature Targeting Scss helpers","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.0","dependencies":{"tslib":"^2.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/feature-targeting_14.0.0-canary.cbd9358a6.0_1647643869627_0.8976569143016688","host":"s3://npm-registry-packages"},"_id":"@material/feature-targeting@14.0.0-canary.cbd9358a6.0","version":"14.0.0-canary.cbd9358a6.0"}