├── example ├── src ├── umd ├── style.css ├── postcss.config.js ├── tsconfig.json ├── index.html ├── package.json ├── webpack.config.js └── index.tsx ├── .prettierrc ├── .editorconfig ├── tsconfig.json ├── .vscode └── settings.json ├── .gitignore ├── .npmignore ├── umd ├── OwlCarousel.d.ts ├── options.d.ts └── OwlCarousel.min.js ├── rollup.config.js ├── tslint.json ├── package.json ├── src ├── options.ts └── OwlCarousel.tsx ├── LICENSE ├── README.md └── yarn.lock /example/src: -------------------------------------------------------------------------------- 1 | ../src -------------------------------------------------------------------------------- /example/umd: -------------------------------------------------------------------------------- 1 | ../umd -------------------------------------------------------------------------------- /example/style.css: -------------------------------------------------------------------------------- 1 | .item { 2 | height: 10rem; 3 | background: #4DC7A0; 4 | padding: 1rem; 5 | } 6 | 7 | .item-video { 8 | height: 300px; 9 | } -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 4, 3 | "semi": true, 4 | "bracketSpacing": true, 5 | "arrowParens": "always", 6 | "jsxBracketSameLine": true, 7 | "jsxSingleQuote": true, 8 | "singleQuote": true 9 | } 10 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: https://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | [*] 7 | indent_style = space 8 | indent_size = 4 9 | end_of_line = lf 10 | charset = utf-8 11 | trim_trailing_whitespace = true 12 | insert_final_newline = true 13 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "lib": ["dom", "es5", "es2015"], 5 | "sourceMap": true, 6 | "moduleResolution": "node", 7 | "module": "ES2015", 8 | "jsx": "react", 9 | "declaration": true, 10 | "strict": true, 11 | "esModuleInterop": true, 12 | "allowSyntheticDefaultImports": true, 13 | "noUnusedLocals": true, 14 | "noUnusedParameters": true, 15 | "noImplicitReturns": true, 16 | "noEmitOnError": false 17 | }, 18 | "include": [ 19 | "./src" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /example/postcss.config.js: -------------------------------------------------------------------------------- 1 | // var postcssFlexbugsFixes = require('postcss-flexbugs-fixes'); 2 | 3 | module.exports = { 4 | plugins: { 5 | 'postcss-import': {}, 6 | 'postcss-cssnext': { 7 | browsers: [ 8 | '>1%', 9 | 'last 4 versions', 10 | 'Firefox ESR', 11 | 'not ie < 9', // React doesn't support IE8 anyway 12 | ], 13 | warnForDuplicates: false, 14 | flexbox: 'no-2009', 15 | }, 16 | 'cssnano': {}, 17 | }, 18 | }; 19 | -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "sourceMap": true, 5 | "moduleResolution": "node", 6 | "module": "esnext", 7 | "jsx": "react", 8 | "noEmitHelpers": true, 9 | "importHelpers": true, 10 | "strict": true, 11 | "esModuleInterop": true, 12 | "allowSyntheticDefaultImports": true, 13 | "noUnusedLocals": true, 14 | "noUnusedParameters": true, 15 | "noImplicitReturns": true, 16 | "noEmitOnError": false 17 | }, 18 | "files": [ 19 | "./index.tsx" 20 | ], 21 | "exclude": [ 22 | "./umd" 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "search.exclude": { 3 | "**/node_modules": true, 4 | "**/yarn.lock": true, 5 | "**/dist": true 6 | }, 7 | "emmet.showExpandedAbbreviation": "never", 8 | "tslint.enable": true, 9 | "tslint.run": "onType", 10 | "tslint.autoFixOnSave": true, 11 | "files.trimTrailingWhitespace": true, 12 | "files.insertFinalNewline": true, 13 | "typescript.locale": "en", 14 | "editor.tabSize": 4, 15 | "editor.insertSpaces": true, 16 | "workbench.colorCustomizations": { 17 | "editorWarning.foreground": "#FFAA00" 18 | }, 19 | "prettier.configPath": "./.prettierrc" 20 | } 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | dist 5 | .rpt2_cache 6 | !example/umd 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | 13 | # Directory for instrumented libs generated by jscoverage/JSCover 14 | lib-cov 15 | 16 | # Coverage directory used by tools like istanbul 17 | coverage 18 | 19 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 20 | .grunt 21 | 22 | # node-waf configuration 23 | .lock-wscript 24 | 25 | # Compiled binary addons (http://nodejs.org/api/addons.html) 26 | build/Release 27 | 28 | # Dependency directory 29 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git 30 | node_modules 31 | lib 32 | *.zip 33 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | dist 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 18 | .grunt 19 | 20 | # node-waf configuration 21 | .lock-wscript 22 | 23 | # Compiled binary addons (http://nodejs.org/api/addons.html) 24 | build/Release 25 | 26 | # Dependency directory 27 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git 28 | node_modules 29 | lib 30 | 31 | example 32 | tslint.json 33 | *.zip 34 | .vscode 35 | tsconfig.json 36 | rollup.config.js 37 | .yarn-lock 38 | .rpt2_cache 39 | -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 10 | 11 | 12 |