diff --git a/.gitignore b/.gitignore index 5ccd65a..50cc40b 100644 --- a/.gitignore +++ b/.gitignore @@ -57,4 +57,4 @@ typings/ # dotenv environment variables file .env -dist +dist/ diff --git a/example/package.json b/example/package.json index 6e18627..338ec92 100644 --- a/example/package.json +++ b/example/package.json @@ -6,7 +6,7 @@ "react": "^16.2.0", "react-dom": "^16.2.0", "react-scripts": "1.1.1", - "react-simply-carousel": "file:.." + "react-simply-carousel": "^1.0.1" }, "scripts": { "start": "react-scripts start", diff --git a/example/yarn.lock b/example/yarn.lock index 997c5b0..6a04786 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -2,6 +2,13 @@ # yarn lockfile v1 +"@babel/runtime@^7.3.4": + version "7.6.2" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.6.2.tgz#c3d6e41b304ef10dcf13777a33e7694ec4a9a6dd" + integrity sha512-EXxN64agfUqqIGeEjI5dL5z0Sw0ZwWo1mLTi4mQowCZ42O59b7DRpZAnTC6OqdF28wMBMFKNb/4uFGrVaigSpg== + dependencies: + regenerator-runtime "^0.13.2" + abab@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e" @@ -6345,6 +6352,16 @@ react-dom@^16.2.0: prop-types "^15.6.2" scheduler "^0.13.3" +react-dom@^16.6.3: + version "16.9.0" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.9.0.tgz#5e65527a5e26f22ae3701131bcccaee9fb0d3962" + integrity sha512-YFT2rxO9hM70ewk9jq0y6sQk8cL02xm4+IzYBz75CQGlClQQ1Bxq0nhHF6OtSbit+AIahujJgb/CPRibFkMNJQ== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.2" + scheduler "^0.15.0" + react-error-overlay@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-4.0.1.tgz#417addb0814a90f3a7082eacba7cee588d00da89" @@ -6400,6 +6417,16 @@ react-scripts@1.1.1: optionalDependencies: fsevents "^1.1.3" +react-simply-carousel@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/react-simply-carousel/-/react-simply-carousel-1.0.1.tgz#f74877e6db1771bb4ff0159a135c9d3bd373cae1" + integrity sha512-boJlFoFPJG1JYccKzTU/GBQQ9ZDadESfwOu06SJopV8SlmcdC7C82K0F4LD8/l6JzPdG9clG8tS8k8pnxwxYZA== + dependencies: + "@babel/runtime" "^7.3.4" + prop-types "^15.6.2" + react "^16.6.3" + react-dom "^16.6.3" + react@^16.2.0: version "16.8.3" resolved "https://registry.yarnpkg.com/react/-/react-16.8.3.tgz#c6f988a2ce895375de216edcfaedd6b9a76451d9" @@ -6410,6 +6437,15 @@ react@^16.2.0: prop-types "^15.6.2" scheduler "^0.13.3" +react@^16.6.3: + version "16.9.0" + resolved "https://registry.yarnpkg.com/react/-/react-16.9.0.tgz#40ba2f9af13bc1a38d75dbf2f4359a5185c4f7aa" + integrity sha512-+7LQnFBwkiw+BobzOF6N//BdoNw0ouwmSJTEm9cglOOmsg/TMiFHZLe2sEoN5M7LgJTj9oHH0gxklfnQe66S1w== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.2" + read-pkg-up@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" @@ -6516,6 +6552,11 @@ regenerator-runtime@^0.11.0: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== +regenerator-runtime@^0.13.2: + version "0.13.3" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5" + integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw== + regenerator-transform@^0.10.0: version "0.10.1" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" @@ -6816,6 +6857,14 @@ scheduler@^0.13.3: loose-envify "^1.1.0" object-assign "^4.1.1" +scheduler@^0.15.0: + version "0.15.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.15.0.tgz#6bfcf80ff850b280fed4aeecc6513bc0b4f17f8e" + integrity sha512-xAefmSfN6jqAa7Kuq7LIJY0bwAPG3xlCj0HMEBQk1lxYiDKZscY2xJ5U/61ZTrYbmNQbXa+gc7czPkVo11tnCg== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + schema-utils@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.3.0.tgz#f5877222ce3e931edae039f17eb3716e7137f8cf" diff --git a/package.json b/package.json index c2c323e..0e3b956 100644 --- a/package.json +++ b/package.json @@ -83,6 +83,8 @@ "eslint-plugin-react": "^7.14.2", "husky": "^3.0.5", "jest": "^24.9.0", + "less": "^3.10.3", + "less-loader": "^5.0.0", "lint-staged": "^9.4.0", "postcss-loader": "^3.0.0", "style-loader": "^1.0.0", diff --git a/src/index.jsx b/src/index.jsx index 758e6bf..4e87474 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -1,7 +1,7 @@ import React, { Component, Children, createRef } from 'react'; import PropTypes from 'prop-types'; -import styles from './styles.css'; +import styles from './styles.less'; class ReactJSSimpleCarousel extends Component { static propTypes = { @@ -534,7 +534,7 @@ class ReactJSSimpleCarousel extends Component { ref={this.innerRef} >