{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ff9aee4782e92e79615ce95567a0b44783a96df3","tarball":"https://registry.npmjs.org/@material/rtl/-/rtl-4.0.0-canary.905884690.0.tgz","fileCount":6,"integrity":"sha512-ZEuS0SR8pyD9LKwCwy3pkFl28llWnZw+7Gdo2YZ4Aaqox3614YEH3CSBirmDvHN/0Xl3oheydLDieOP88CeYFw==","signatures":[{"sig":"MEQCIGJrpiH3sifGzA6B8F5Ol4zxvM5BrdwKnjZOPDKbIir/AiBQR6n35TR2ztQhUZl1q/SX27MbmOPeVg6bXJdgdNn7NA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgB8rCRA9TVsSAnZWagAAGFgP/003q6WVSG7N+41RUMZo\nQpxVgAkKcyBGExul2mN6TMRMtZuo1SRCcTG49sKGoX2OEt7203qBblRVT3Ag\nHocYRpOVUs0qTh3PCSU7sGVKyWm3P12d6PCIOAI9SSU0NWcK7NawqcS6Z1CA\nhtTKQYe8cqvN4HG8k7UrkXIvQxb56/63iWSq0wqoMyJ5XrdDhzUtkda7SbMP\nnamsLPCrLeXJ4oQwhILVA/YFpECNVFjo9mOYaqtKVdmP4ucHUnzrKqz8odib\nlteAyHoEC1DPB96vNOIVAZGl94aR8NJQfhEFW4MytMmANL7nx9vp6cxGfHdi\nR74iIPg0Qifm/v2YP6pnaBJUVGaz6l0RAyJAMdpj1A0z870bNDL6NxB8aLXd\n5lYJ9U1auYkU7bPYWTRSBXHsPlYMaog7MRFy3Hw78VlCoWgN4wGgaQYO31Di\nhRfpL0wztXbZtsNUV7AgzzyBGg4KCqcGk22YGTpvTMTE4aXeJyCrk+f+HFBn\nAarhqough/wdR1Bju4RItDiGa41zPUgxTEr9CoolJhQzgVNQBTByxzHW9BZ3\nKZljiUegyZifuVSpfgLfX0XRi6+6COZLXW7owdAl4eWVO/vzlfa6gLKE2q1M\n2kEmCtX6KZtYsGyFU3Z+qfXXeaN1cd5dA4WodDc2qTdEQSHm+g264fjv8uKO\nl55c\r\n=yX6j\r\n-----END PGP SIGNATURE-----\r\n"},"name":"@material/rtl","readme":"<!--docs:\ntitle: \"RTL\"\nlayout: detail\nsection: components\nexcerpt: \"Right-to-left and bi-directional text layout via SCSS helpers.\"\npath: /catalog/rtl/\n-->\n\n# RTL\n\nUIs for languages that are read from right-to-left (RTL), such as Arabic and Hebrew, should be mirrored to ensure content is easy to understand.\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-bidirectionality\">Material Design guidelines: Bidirectionality</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/rtl\n```\n\n## Usage\n\n### Sass Mixins\n\n`mdc-rtl` is the most flexible mixin, because it can work with multiple CSS properties. All other RTL mixins logic could be engineered by only using `mdc-rtl`, but we provide these mixins for convenience.\n\nBoth `mdc-rtl-reflexive-property` and `mdc-rtl-reflexive-box` work with one base box-model property, e.g. margin, border, padding. But `mdc-rtl-reflexive-property` is more flexible because it accepts different left and right values. `mdc-rtl-reflexive-box` assumes the left and right values are the same, and therefore that the box-model is symmetrical.\n\n`mdc-rtl-reflexive-position` is the least flexible mixin. It only works with one horizontal position property, \"left\" or \"right\". It also assumes the left and right values are the same.\n\n| Mixin | Description |\n| ----------------------------------------------- | - |\n| `mdc-rtl($root-selector)` | Creates a rule that is applied when the root element is within an RTL context |\n| `mdc-rtl-reflexive-box($base-property, $default-direction, $value, $root-selector)` | Applies the value to the `#{$base-property}-#{$default-direction}` property  in a LTR context, and flips the direction in an RTL context. **This mixin zeros out the original value in an RTL context.**  |\n| `mdc-rtl-reflexive-property($base-property, $left-value, $right-value, $root-selector)` | Emits rules that assign `#{$base-property}`-left to `#{left-value}` and `#{base-property}`-right to `#{right-value}` in a LTR context, and vice versa in a RTL context. **Basically it flips values between a LTR and RTL context.** |\n| `mdc-rtl-reflexive-position($position-property, $value, $root-selector)` | Applies the value to the specified position in a LTR context, and flips the direction in an RTL context. `$position-property` is a horizontal position, either \"left\" or \"right\". |\n| `mdc-rtl-reflexive($left-property, $left-value, $right-property, $right-value, $root-selector)` | Applies the pair of property values to the specified position in a LTR context, and flips the direction in an RTL context. |\n\n**A note about [dir=\"rtl\"]**: `mdc-rtl($root-selector)` checks for `[dir=\"rtl\"]` on the ancestor element. This works in most cases, it will sometimes lead to false negatives for more complex layouts, e.g.\n\n```html\n<html dir=\"rtl\">\n  <!-- ... -->\n  <div dir=\"ltr\">\n    <div class=\"mdc-foo\">Styled incorrectly as RTL!</div>\n  </div>\n</html>\n```\n\nUnfortunately, we've found that this is the best we can do for now. In the future, selectors such as [:dir](http://mdn.io/:dir) will help us mitigate this.\n","gitHead":"df7fbf65943b1227b1bf145a2774abe7710b1e30","license":"MIT","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"homepage":"https://github.com/material-components/material-components-web#readme","keywords":["material components","material design","rtl","right to left"],"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-rtl"},"_npmVersion":"lerna/3.14.1/node@v10.16.3+x64 (darwin)","description":"Material Components for the web RTL Scss helpers","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.16.3","_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/rtl_4.0.0-canary.905884690.0_1568677674902_0.7573523739191317","host":"s3://npm-registry-packages"},"_id":"@material/rtl@4.0.0-canary.905884690.0","version":"4.0.0-canary.905884690.0"}