@@ -9,7 +9,7 @@ RTL conversion for CSS in JS objects
9
9
[ ![ downloads] [ downloads-badge ]] [ npm-stat ]
10
10
[ ![ MIT License] [ license-badge ]] [ LICENSE ]
11
11
12
- [ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-4 -orange.svg?style=flat-square )] ( #contributors )
12
+ [ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-5 -orange.svg?style=flat-square )] ( #contributors )
13
13
[ ![ PRs Welcome] [ prs-badge ]] [ prs ]
14
14
[ ![ Donate] [ donate-badge ]] [ donate ]
15
15
[ ![ Code of Conduct] [ coc-badge ]] [ coc ]
@@ -59,7 +59,7 @@ console.log(styles) // logs {paddingRight: 23}
59
59
You can also just include a script tag in your browser and use the ` rtlCSSJS ` variable:
60
60
61
61
``` html
62
- <script src =" https://unpkg.com/rtl-css-js@1.0.0-beta.1 " ></script >
62
+ <script src =" https://unpkg.com/rtl-css-js" ></script >
63
63
<script >
64
64
const styles = rtlCSSJS ({paddingRight: 23 })
65
65
console .log (styles) // logs {paddingLeft: 23}
@@ -74,6 +74,17 @@ const styles = rtlCSSJS({paddingLeft: '20px /* @noflip */'})
74
74
console .log (styles) // logs {paddingLeft: '20px /* @noflip */' }
75
75
```
76
76
77
+ ### core
78
+
79
+ ` rtl-css-js ` also exposes its internal helpers and utilities so you can deal
80
+ with [ certain scenarios] ( https://github.com/kentcdodds/rtl-css-js/pull/22 )
81
+ yourself. To use these you can use the ` rtlCSSJSCore ` global with the UMD build,
82
+ ` require('rtl-css-js/core') ` , or use
83
+ ` import {propertyValueConverters, arrayToObject} from 'rtl-css-js/core.esm' ` .
84
+
85
+ You can import anything that's exported from ` src/core ` . Please see the code
86
+ comments for documentation on how to use these.
87
+
77
88
## Caveats
78
89
79
90
### ` background `
@@ -96,8 +107,8 @@ I'm not aware of any, if you are please [make a pull request](http://makeapullre
96
107
Thanks goes to these people ([ emoji key] [ emojis ] ):
97
108
98
109
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
99
- | [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub>Kent C. Dodds</sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=kentcdodds "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=kentcdodds "Tests") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") | [<img src="https://avatars.githubusercontent.com/u/63876?v=3" width="100px;"/><br /><sub>Ahmed El Gabri</sub>](https://gabri.me)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Code") [📖](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Documentation") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Tests") | [<img src="https://avatars1.githubusercontent.com/u/1383861?v=4" width="100px;"/><br /><sub>Maja Wichrowska</sub>](https://github.com/majapw)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=majapw "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=majapw "Tests") | [<img src="https://avatars2.githubusercontent.com/u/6600720?v=4" width="100px;"/><br /><sub>Yaniv</sub>](https://github.com/yzimet)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=yzimet "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=yzimet "Tests") |
100
- | :---: | :---: | :---: | :---: |
110
+ | [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub>Kent C. Dodds</sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=kentcdodds "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=kentcdodds "Tests") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") | [<img src="https://avatars.githubusercontent.com/u/63876?v=3" width="100px;"/><br /><sub>Ahmed El Gabri</sub>](https://gabri.me)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Code") [📖](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Documentation") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Tests") | [<img src="https://avatars1.githubusercontent.com/u/1383861?v=4" width="100px;"/><br /><sub>Maja Wichrowska</sub>](https://github.com/majapw)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=majapw "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=majapw "Tests") | [<img src="https://avatars2.githubusercontent.com/u/6600720?v=4" width="100px;"/><br /><sub>Yaniv</sub>](https://github.com/yzimet)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=yzimet "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=yzimet "Tests") | [<img src="https://avatars2.githubusercontent.com/u/5658514?v=4" width="100px;"/><br /><sub>Jonathan Pollak</sub>](https://github.com/TxHawks)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=TxHawks "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=TxHawks "Tests") |
111
+ | :---: | :---: | :---: | :---: | :---: |
101
112
<!-- ALL-CONTRIBUTORS-LIST:END -->
102
113
103
114
This project follows the [ all-contributors] [ all-contributors ] specification. Contributions of any kind welcome!
0 commit comments