Repository: Pau1fitz/react-slidez
Branch: master
Commit: d8d4bc220aeb
Files: 12
Total size: 46.8 KB
Directory structure:
gitextract_yi52esul/
├── .babelrc
├── .gitignore
├── .nvmrc
├── .prettierrc
├── LICENSE
├── README.md
├── build/
│ └── index.js
├── package.json
├── src/
│ ├── Arrows.js
│ ├── Slideshow.css
│ └── index.js
└── webpack.config.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .babelrc
================================================
{
"presets": ["env"],
"plugins": ["transform-object-rest-spread", "transform-react-jsx"]
}
================================================
FILE: .gitignore
================================================
/node_modules
================================================
FILE: .nvmrc
================================================
v6.10
================================================
FILE: .prettierrc
================================================
{
"singleQuote": true
}
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2017 Paul Fitzgerald
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README.md
================================================
# React Slidez
✨
Customisable React Slideshow component.✨
## Demo
💪
[Live demo](http://pau1fitz.github.io/react-slidez/)
💪
## Installation
```
npm install react-slidez --save
```
### Properties
| Property | Description | Type | Default |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ---------- |
| showIndex | Show the index of the current slide | Boolean | `false` |
| showArrows | Show arrows to navigate through the slides | Boolean | `true` |
| autoplay | Select whether you want the slideshow to autoplay or not | Boolean | `true` |
| enableKeyboard | Select whether you want to allow the user change the slides with the keyboard | Boolean | `true` |
| useDotIndex | Select whether you want the index to be dots or numbers | Boolean | `false` |
| slideInterval | Dictate the speed in ms at which the slides change | Integer | `2000` |
| defaultIndex | Choose the index that you wish to start at | Integer | `0` |
| slides | The slides you pass into the component. This can be an array of images, or other components which are passed as children. See example below. | Array | No default |
| effect | Choose the animation effect of your slideshow. Options include `fade`, `left`, `top`, `right`, `bottom`, `bounce-right`, `bounce-left` | String | `"fade"` |
| height | Choose the height of the slideshow. Example `height={'50px'}` or `height={'50%'}` | String | `"100%"` |
| width | Choose the width of the slideshow. Example `width="50px"` or `width="50%"` | String | `"100%"` |
## Usage
```js
const Slideshow = require("react-slidez");
```
You can also pass other components to the `Slideshow` component as children. All the same properties as above are available.
```js
const Slideshow = require("react-slidez");
```
## License
[MIT License](https://opensource.org/licenses/MIT)
Copyright (c) 2017 Paul Fitzgerald
================================================
FILE: build/index.js
================================================
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a