{"_id":"99roomz-react-slick","_rev":"2-07d49402f582d80dbb01b3b780984df2","name":"99roomz-react-slick","description":"99roomz React port of slick carousel","dist-tags":{"latest":"0.14.11"},"versions":{"0.14.11":{"name":"99roomz-react-slick","version":"0.14.11","description":"99roomz React port of slick carousel","main":"./lib","scripts":{"start":"gulp server","prepublish":"babel ./src --out-dir ./lib && gulp dist","test":"jest","dev-test":"jest --watch","lint":"eslint src"},"author":{"name":"Kiran Abburi"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/akiran/react-slick.git"},"keywords":["slick","carousel","Image slider","orbit","slider","react-component"],"devDependencies":{"autoprefixer-core":"^6.0.1","babel-cli":"^6.16.0","babel-core":"^6.16.0","babel-eslint":"^7.0.0","babel-jest":"^19.0.0","babel-loader":"^6.2.5","babel-plugin-transform-object-assign":"^6.8.0","babel-polyfill":"^6.16.0","babel-preset-airbnb":"^2.1.1","babel-preset-es2015":"^6.16.0","babel-preset-react":"^6.16.0","css-loader":"^0.28.0","deepmerge":"^1.1.0","del":"^2.2.2","enzyme":"^2.8.2","es5-shim":"^4.5.9","eslint":"^3.6.1","eslint-plugin-react":"^6.3.0","express":"^4.14.0","foundation-apps":"^1.2.0","gulp":"^3.9.1","gulp-sass":"^3.1.0","jasmine-core":"^2.5.2","jest":"^19.0.2","json-loader":"^0.5.4","node-sass":"^4.5.2","postcss-loader":"^1.3.3","react":"^15.3.2","react-addons-test-utils":"^15.3.2","react-dom":"^15.3.2","react-test-renderer":"^15.5.4","run-sequence":"^1.2.2","sass-loader":"^6.0.3","sinon":"^2.1.0","style-loader":"^0.16.1","webpack":"^1.13.2","webpack-dev-server":"^1.16.1"},"dependencies":{"can-use-dom":"^0.1.0","classnames":"^2.2.5","create-react-class":"^15.5.2","json2mq":"^0.2.0","object-assign":"^4.1.0","slick-carousel":"^1.6.0","enquire.js":"^2.1.6"},"peerDependencies":{"react":"^0.14.0 || ^15.0.1","react-dom":"^0.14.0 || ^15.0.1"},"jest":{"setupFiles":["./test-setup.js"]},"npmName":"react-slick","npmFileMap":[{"basePath":"/dist/","files":["*.js"]}],"bugs":{"url":"https://github.com/akiran/react-slick/issues"},"homepage":"https://github.com/akiran/react-slick","gitHead":"23e949348d8d6a322b660749385be3bdadb7af75","_id":"99roomz-react-slick@0.14.11","_shasum":"95f11b7be283e8bbc566f5b1a8dc1957d7419062","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"lalitsharma95","email":"lalit.sh95@gmail.com"},"dist":{"shasum":"95f11b7be283e8bbc566f5b1a8dc1957d7419062","tarball":"https://registry.npmjs.org/99roomz-react-slick/-/99roomz-react-slick-0.14.11.tgz","integrity":"sha512-NmOnE4vSeD0rReUWw/dwgrztvyKdLSjQ93m/cCgOgv8t/BpGHgDI/93Gmh5w8xgouZSphw7beGsAoygCMkW2qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcnB4Y8+ItVC+LeRJaRKRLu3slGKr2gct5rWaMpeVDRAiEApXDrPgHXOLjLw4C0EifsJxRIM3KZdzFAV8Nin3dqTrE="}]},"maintainers":[{"name":"lalitsharma95","email":"lalit.sh95@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/99roomz-react-slick-0.14.11.tgz_1493198044189_0.6309973150491714"}}},"readme":"# react-slick\r\n\r\n[![Join the chat at https://gitter.im/akiran/react-slick](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/akiran/react-slick?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\r\n\r\n\r\nCarousel component built with React. It is a react port of [slick carousel](http://kenwheeler.github.io/slick/)\r\n\r\n\r\n\r\n### Installation\r\n\r\n```bash\r\nnpm install react-slick\r\n```\r\n\r\nAlso install slick-carousel for css and font\r\n\r\n```bash\r\nnpm install slick-carousel\r\n@import \"~slick-carousel/slick/slick.css\";\r\n@import \"~slick-carousel/slick/slick-theme.css\";\r\n```\r\n\r\nor add cdn link in your html\r\n\r\n```html\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css\" />\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css\" />\r\n```\r\n\r\n### [Demos](http://neostack.com/opensource/react-slick)\r\n\r\n### [PlayGround](https://jsfiddle.net/kirana/20bumb4g/)\r\nUse [jsfiddle template](https://jsfiddle.net/kirana/20bumb4g/) to try react-slick with different settings.\r\n\r\n### Filing issues\r\nPlease replicate your issue with [jsfiddle template](https://jsfiddle.net/kirana/20bumb4g/) and post it along with issue to make it easy for me to debug.\r\n\r\n\r\n### Starter Kit\r\nCheckout [yeoman generator](https://github.com/akiran/generator-react-slick) to quickly\r\nget started with react-slick.\r\n\r\n### Example\r\n\r\n```js\r\nvar React = require('react');\r\nvar Slider = require('react-slick');\r\n\r\nclass SimpleSlider extends React.Component {\r\n  render: function () {\r\n    var settings = {\r\n      dots: true,\r\n      infinite: true,\r\n      speed: 500,\r\n      slidesToShow: 1,\r\n      slidesToScroll: 1\r\n    };\r\n    return (\r\n      <Slider {...settings}>\r\n        <div><h3>1</h3></div>\r\n        <div><h3>2</h3></div>\r\n        <div><h3>3</h3></div>\r\n        <div><h3>4</h3></div>\r\n        <div><h3>5</h3></div>\r\n        <div><h3>6</h3></div>\r\n      </Slider>\r\n    );\r\n  }\r\n}\r\n```\r\n\r\n|    Property    | Type |          Description          | Working |\r\n| -------------  | ---- |          -----------          | ------- |\r\n| accessibility  | bool | Enables tabbing and arrow key navigation | Yes |\r\n| className      | String |Additional class name for the inner slider div | Yes |\r\n| adaptiveHeight | bool | Adjust the slide's height automatically | Yes |\r\n| arrows         | bool | Should we show Left and right nav arrows | Yes |\r\n| nextArrow      | React Element | Use this element for the next arrow button | Yes |\r\n| prevArrow      | React Element | Use this element for the prev arrow button | Yes |\r\n| autoplay       | bool | Should the scroller auto scroll? | Yes |\r\n| autoplaySpeed  |  int | delay between each auto scoll. in ms | Yes |\r\n| centerMode     | bool | Should we centre to a single item? | Yes |\r\n| centerPadding  | | | |\r\n| cssEase        | | | |\r\n| customPaging   | func | Custom paging templates. [Example](https://github.com/akiran/react-slick/blob/master/examples/CustomPaging.js)| Yes |\r\n| dots           | bool | Should we show the dots at the bottom of the gallery | Yes |\r\n| dotsClass      | string | Class applied to the dots if they are enabled | Yes |\r\n| draggable      | bool | Is the gallery scrollable via dragging on desktop? | Yes |\r\n| easing         | string | | |\r\n| fade           | bool | Slides use fade for transition  | Yes |\r\n| focusOnSelect  | bool | Go to slide on click | Yes |\r\n| infinite       | bool | should the gallery wrap around it's contents | Yes |\r\n| initialSlide   | int | which item should be the first to be displayed | Yes |\r\n| lazyLoad       | bool | Loads images or renders components on demands | Yes |\r\n| pauseOnHover   | bool | prevents autoplay while hovering | Yes |\r\n| responsive     | array | Array of objects in the form of `{ breakpoint: int, settings: { ... } }` The breakpoint _int_ is the `maxWidth` so the settings will be applied when resolution is below this value. Breakpoints in the array should be ordered from smalles to greatest. Use 'unslick' in place of the settings object to disable rendering the carousel at that breakpoint. Example: `[ { breakpoint: 768, settings: { slidesToShow: 3 } }, { breakpoint: 1024, settings: { slidesToShow: 5 } }, { breakpoint: 100000, settings: 'unslick' } ]`| Yes |\r\n| rtl            | bool | Reverses the slide order | Yes |\r\n| slide         | string |||\r\n| slidesToShow | int | Number of slides to be visible at a time | Yes |\r\n| slidesToScroll | int | Number of slides to scroll for each navigation item\r\n| speed | int |||\r\n| swipe | bool |||\r\n| swipeToSlide | bool | Allow users to drag or swipe directly to a slide irrespective of slidesToScroll | Yes |\r\n| touchMove | bool |||\r\n| touchThreshold | int |||\r\n| variableWidth | bool |||\r\n| useCSS | bool | Enable/Disable CSS Transitions | Yes |\r\n| vertical | bool | Vertical slide mode | Yes |\r\n| afterChange | function | callback function called after the current index changes | Yes |\r\n| beforeChange | function | callback function called before the current index changes | Yes |\r\n| slickGoTo | int | go to the specified slide number | |\r\n\r\n\r\n### Methods\r\n* `slickNext()`   - function called to change current slide on next slide ([Example](https://github.com/akiran/react-slick/blob/master/examples/PreviousNextMethods.js))\r\n* `slickPrev()`   - function called to change current slide on previous slide ([Example](https://github.com/akiran/react-slick/blob/master/examples/PreviousNextMethods.js))\r\n* `slickGoTo(slideNumber)` - function called to change current slide to given slide number ([Example](https://github.com/akiran/react-slick/blob/master/examples/SlickGoTo.js))\r\n\r\n### Custom next/prev arrows\r\n\r\nTo customize the next/prev arrow elements, simply create new React components and set them\r\nas the values of nextArrow and prevArrow.\r\n\r\n```js\r\nclass LeftNavButton extends React.Component {\r\n  render() {\r\n    return <button {...this.props}>Next</button>\r\n  }\r\n}\r\n```\r\n\r\nImportant: be sure that you pass your component's props to your clickable element\r\nlike the example above. If you don't, your custom component won't trigger the click handler.\r\n\r\nYou can also set `onClick={this.props.onClick}` if you only want to set the click handler.\r\n\r\n### Flexbox support\r\nIf you have flex property on container div of slider, add below css\r\n```css\r\n* {\r\n  min-height: 0;\r\n  min-width: 0;\r\n}\r\n```\r\n\r\n### Test Setup\r\nIf you try to run tests with jest in a project that uses react-slick, you my run into this error\r\n```\r\nmatchMedia not present, legacy browsers require a polyfill\r\n```\r\n\r\nTo fix this issue add below snippet in test-setup.js\r\n```js\r\nwindow.matchMedia = window.matchMedia || function() {\r\n    return {\r\n        matches : false,\r\n        addListener : function() {},\r\n        removeListener: function() {}\r\n    };\r\n};\r\n\r\n```\r\nand add below jest config in package.json\r\n```json\r\n\"jest\": {\r\n    \"setupFiles\": [\"test-setup.js\"]\r\n}\r\n```\r\n\r\n\r\n### Development\r\nWant to run demos locally\r\n\r\n```bash\r\ngit clone https://github.com/akiran/react-slick\r\nnpm install\r\nnpm start\r\nopen http://localhost:8080\r\n```\r\n\r\n### Polyfills for old IE support\r\n`matchMedia` support from [media-match](https://github.com/weblinc/media-match)\r\n","maintainers":[{"name":"lalitsharma95","email":"lalit.sh95@gmail.com"}],"time":{"modified":"2022-06-12T14:09:00.435Z","created":"2017-04-26T09:14:05.261Z","0.14.11":"2017-04-26T09:14:05.261Z"},"homepage":"https://github.com/akiran/react-slick","keywords":["slick","carousel","Image slider","orbit","slider","react-component"],"repository":{"type":"git","url":"git+https://github.com/akiran/react-slick.git"},"author":{"name":"Kiran Abburi"},"bugs":{"url":"https://github.com/akiran/react-slick/issues"},"license":"MIT","readmeFilename":"README.md"}