├── .npmignore ├── .gitignore ├── package.json ├── LICENSE ├── README.md └── lib └── index.js /.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /test.js 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store 32 | .DS_Store? 33 | ._* 34 | .Spotlight-V100 35 | .Trashes 36 | ehthumbs.db 37 | Thumbs.db 38 | 39 | 40 | # Custom 41 | ##################### 42 | /node_modules 43 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-masonry-mixin", 3 | "version": "1.0.5", 4 | "main": "./lib/index", 5 | "description": "A masonry mixin for React.js", 6 | "dependencies": { 7 | "masonry": "eiriklv/masonry", 8 | "imagesloaded": "eiriklv/imagesloaded" 9 | }, 10 | "devDependencies": {}, 11 | "scripts": { 12 | "test": "echo \"Error: no test specified\" && exit 1" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "git://github.com/eiriklv/react-masonry-mixin.git" 17 | }, 18 | "keywords": [ 19 | "react", 20 | "mixin", 21 | "masonry", 22 | "packery", 23 | "isotope", 24 | "react-component" 25 | ], 26 | "author": "Eirik Vullum (http://www.evconsult.no/)", 27 | "bugs": { 28 | "url": "https://github.com/eiriklv/react-masonry-mixin/issues" 29 | }, 30 | "homepage": "https://github.com/eiriklv/react-masonry-mixin", 31 | "license": "MIT" 32 | } 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Eirik L. Vullum 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | React Masonry Mixin 2 | =================== 3 | 4 | [![npm version](https://badge.fury.io/js/react-masonry-mixin.svg)](http://badge.fury.io/js/react-masonry-mixin) 5 | 6 | #### Introduction: 7 | A React.js Masonry mixin. (Also available as a [component](https://github.com/eiriklv/react-masonry-component)) 8 | 9 | #### Live demo: 10 | [hearsay.me (web)](http://www.hearsay.me) 11 | [hearsay.me (github)](https://github.com/eiriklv/hearsay-frontend) 12 | 13 | #### Usage: 14 | 15 | * The mixin is now bundled with Masonry, so no additional dependencies needed! 16 | * ~~You will have to use Masonry as a script dependency, as there is no complete npm module available at the moment.~~ 17 | * You can optionally include Masonry as a script tag 18 | `