Skip to content

Commit

Permalink
fix not enough items to show
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagiv Ben Giat authored and Sagiv Ben Giat committed Oct 7, 2018
1 parent 3d293a5 commit a824e32
Show file tree
Hide file tree
Showing 22 changed files with 115 additions and 116 deletions.
134 changes: 67 additions & 67 deletions .docz/app/db.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
},
"ordering": "ascending",
"version": "0.1.14",
"version": "0.1.17",
"repository": "https://github.com/sag1v/react-elastic-carousel",
"native": false,
"src": "./src/docs",
Expand Down Expand Up @@ -112,28 +112,6 @@
}
]
},
"mdx/focusOnSelect.mdx": {
"name": "focusOnSelect",
"order": 5,
"route": "/focusOnSelect",
"menu": "Examples",
"id": "6ed5d03c60339f008d3a8a9765237026",
"filepath": "mdx/focusOnSelect.mdx",
"link": "https://github.com/sag1v/react-elastic-carousel\\edit\\master\\src\\docs\\mdx/focusOnSelect.mdx",
"slug": "mdx-focus-on-select",
"headings": [
{
"depth": 1,
"slug": "focusonselect",
"value": "focusOnSelect"
},
{
"depth": 4,
"slug": "sliding-to-an-item-on-click",
"value": "Sliding to an item on click"
}
]
},
"mdx/goTo.mdx": {
"name": "goTo",
"order": 989,
Expand All @@ -156,6 +134,28 @@
}
]
},
"mdx/focusOnSelect.mdx": {
"name": "focusOnSelect",
"order": 5,
"route": "/focusOnSelect",
"menu": "Examples",
"id": "6ed5d03c60339f008d3a8a9765237026",
"filepath": "mdx/focusOnSelect.mdx",
"link": "https://github.com/sag1v/react-elastic-carousel\\edit\\master\\src\\docs\\mdx/focusOnSelect.mdx",
"slug": "mdx-focus-on-select",
"headings": [
{
"depth": 1,
"slug": "focusonselect",
"value": "focusOnSelect"
},
{
"depth": 4,
"slug": "sliding-to-an-item-on-click",
"value": "Sliding to an item on click"
}
]
},
"mdx/index.mdx": {
"name": "Getting started",
"route": "/",
Expand Down Expand Up @@ -369,28 +369,6 @@
}
]
},
"mdx/onPrevEnd.mdx": {
"name": "onPrevEnd",
"order": 993,
"route": "/onPrevEnd",
"menu": "Examples",
"id": "bdace8475c6734e4203406c1abecff98",
"filepath": "mdx/onPrevEnd.mdx",
"link": "https://github.com/sag1v/react-elastic-carousel\\edit\\master\\src\\docs\\mdx/onPrevEnd.mdx",
"slug": "mdx-on-prev-end",
"headings": [
{
"depth": 1,
"slug": "onprevend",
"value": "onPrevEnd"
},
{
"depth": 4,
"slug": "onprevend-will-pass-the-new-current-item-object",
"value": "onPrevEnd will pass the new item-object :"
}
]
},
"mdx/onPrevStart.mdx": {
"name": "onPrevStart",
"order": 992,
Expand All @@ -413,6 +391,28 @@
}
]
},
"mdx/onPrevEnd.mdx": {
"name": "onPrevEnd",
"order": 993,
"route": "/onPrevEnd",
"menu": "Examples",
"id": "bdace8475c6734e4203406c1abecff98",
"filepath": "mdx/onPrevEnd.mdx",
"link": "https://github.com/sag1v/react-elastic-carousel\\edit\\master\\src\\docs\\mdx/onPrevEnd.mdx",
"slug": "mdx-on-prev-end",
"headings": [
{
"depth": 1,
"slug": "onprevend",
"value": "onPrevEnd"
},
{
"depth": 4,
"slug": "onprevend-will-pass-the-new-current-item-object",
"value": "onPrevEnd will pass the new item-object :"
}
]
},
"mdx/onResize.mdx": {
"name": "onResize",
"order": 995,
Expand Down Expand Up @@ -467,6 +467,28 @@
}
]
},
"mdx/verticalMode.mdx": {
"name": "verticalMode",
"order": 3,
"route": "/verticalMode",
"menu": "Examples",
"id": "476b3baef72cbd65f9331611342d646b",
"filepath": "mdx/verticalMode.mdx",
"link": "https://github.com/sag1v/react-elastic-carousel\\edit\\master\\src\\docs\\mdx/verticalMode.mdx",
"slug": "mdx-vertical-mode",
"headings": [
{
"depth": 1,
"slug": "verticalmode",
"value": "verticalMode"
},
{
"depth": 4,
"slug": "display-and-animate-the-carousel-in-a-vertical-layout",
"value": "Display and animate the Carousel in a vertical layout"
}
]
},
"mdx/renderPagination.mdx": {
"name": "renderPagination",
"order": 11,
Expand Down Expand Up @@ -520,28 +542,6 @@
"value": "You can trigger the slideNext or slidePrev methods via a ref to the Carousel :"
}
]
},
"mdx/verticalMode.mdx": {
"name": "verticalMode",
"order": 3,
"route": "/verticalMode",
"menu": "Examples",
"id": "476b3baef72cbd65f9331611342d646b",
"filepath": "mdx/verticalMode.mdx",
"link": "https://github.com/sag1v/react-elastic-carousel\\edit\\master\\src\\docs\\mdx/verticalMode.mdx",
"slug": "mdx-vertical-mode",
"headings": [
{
"depth": 1,
"slug": "verticalmode",
"value": "verticalMode"
},
{
"depth": 4,
"slug": "display-and-animate-the-carousel-in-a-vertical-layout",
"value": "Display and animate the Carousel in a vertical layout"
}
]
}
}
}
12 changes: 6 additions & 6 deletions .docz/app/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export const imports = {
import(/* webpackPrefetch: true, webpackChunkName: "mdx-easing" */ 'mdx/easing.mdx'),
'mdx/enableAutoPlay.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-enable-auto-play" */ 'mdx/enableAutoPlay.mdx'),
'mdx/focusOnSelect.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-focus-on-select" */ 'mdx/focusOnSelect.mdx'),
'mdx/goTo.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-go-to" */ 'mdx/goTo.mdx'),
'mdx/focusOnSelect.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-focus-on-select" */ 'mdx/focusOnSelect.mdx'),
'mdx/index.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-index" */ 'mdx/index.mdx'),
'mdx/initialFirstItem.mdx': () =>
Expand All @@ -27,18 +27,18 @@ export const imports = {
import(/* webpackPrefetch: true, webpackChunkName: "mdx-on-next-end" */ 'mdx/onNextEnd.mdx'),
'mdx/onNextStart.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-on-next-start" */ 'mdx/onNextStart.mdx'),
'mdx/onPrevEnd.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-on-prev-end" */ 'mdx/onPrevEnd.mdx'),
'mdx/onPrevStart.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-on-prev-start" */ 'mdx/onPrevStart.mdx'),
'mdx/onPrevEnd.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-on-prev-end" */ 'mdx/onPrevEnd.mdx'),
'mdx/onResize.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-on-resize" */ 'mdx/onResize.mdx'),
'mdx/renderArrow.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-render-arrow" */ 'mdx/renderArrow.mdx'),
'mdx/verticalMode.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-vertical-mode" */ 'mdx/verticalMode.mdx'),
'mdx/renderPagination.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-render-pagination" */ 'mdx/renderPagination.mdx'),
'mdx/slideNext.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-slide-next" */ 'mdx/slideNext.mdx'),
'mdx/verticalMode.mdx': () =>
import(/* webpackPrefetch: true, webpackChunkName: "mdx-vertical-mode" */ 'mdx/verticalMode.mdx'),
}
1 change: 0 additions & 1 deletion .docz/app/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'webpack-serve-overlay'
import React from 'react'
import ReactDOM from 'react-dom'
import Root from './root'
Expand Down
9 changes: 1 addition & 8 deletions .docz/app/root.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ import Theme from 'docz-theme-default'
import { imports } from './imports'
import db from './db.json'

const Root = () => (
<Theme
db={db}
imports={imports}
hashRouter={true}
websocketUrl="ws://127.0.0.1:60505"
/>
)
const Root = () => <Theme db={db} imports={imports} hashRouter={true} />

export default hot(module)(Root)
26 changes: 13 additions & 13 deletions demo/assets.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"vendors.js": "/react-elastic-carousel/static/js/vendors.1dd8f936.js",
"app.js": "/react-elastic-carousel/static/js/app.15cbd183.js",
"mdx-easing.js": "/react-elastic-carousel/static/js/mdx-easing.8ebc81a5.js",
"mdx-enable-auto-play.js": "/react-elastic-carousel/static/js/mdx-enable-auto-play.71e6282c.js",
"mdx-breakpoints.js": "/react-elastic-carousel/static/js/mdx-breakpoints.2b41dc46.js",
"mdx-focus-on-select.js": "/react-elastic-carousel/static/js/mdx-focus-on-select.9cbe56ec.js",
"mdx-go-to.js": "/react-elastic-carousel/static/js/mdx-go-to.81eac1b1.js",
"vendors.js": "/react-elastic-carousel/static/js/vendors.28881de3.js",
"app.js": "/react-elastic-carousel/static/js/app.73f38a70.js",
"mdx-breakpoints.js": "/react-elastic-carousel/static/js/mdx-breakpoints.8b0f7f1a.js",
"mdx-easing.js": "/react-elastic-carousel/static/js/mdx-easing.36674c42.js",
"mdx-enable-auto-play.js": "/react-elastic-carousel/static/js/mdx-enable-auto-play.b6a2c8d8.js",
"mdx-go-to.js": "/react-elastic-carousel/static/js/mdx-go-to.2f9e272e.js",
"mdx-focus-on-select.js": "/react-elastic-carousel/static/js/mdx-focus-on-select.e0518d92.js",
"mdx-index.js": "/react-elastic-carousel/static/js/mdx-index.ef487804.js",
"mdx-initial-first-item.js": "/react-elastic-carousel/static/js/mdx-initial-first-item.d5356dc4.js",
"mdx-is-rtl.js": "/react-elastic-carousel/static/js/mdx-is-rtl.f2cf858c.js",
Expand All @@ -15,13 +15,13 @@
"mdx-items-to-show.js": "/react-elastic-carousel/static/js/mdx-items-to-show.134555c9.js",
"mdx-on-next-end.js": "/react-elastic-carousel/static/js/mdx-on-next-end.c03dd7e6.js",
"mdx-on-next-start.js": "/react-elastic-carousel/static/js/mdx-on-next-start.b408cffe.js",
"mdx-on-prev-end.js": "/react-elastic-carousel/static/js/mdx-on-prev-end.a0309c4b.js",
"mdx-on-prev-start.js": "/react-elastic-carousel/static/js/mdx-on-prev-start.0e294702.js",
"mdx-on-prev-start.js": "/react-elastic-carousel/static/js/mdx-on-prev-start.4b5257a3.js",
"mdx-on-prev-end.js": "/react-elastic-carousel/static/js/mdx-on-prev-end.0291ea17.js",
"mdx-on-resize.js": "/react-elastic-carousel/static/js/mdx-on-resize.75769ad9.js",
"mdx-render-arrow.js": "/react-elastic-carousel/static/js/mdx-render-arrow.a1c5a675.js",
"mdx-render-pagination.js": "/react-elastic-carousel/static/js/mdx-render-pagination.bcc92b6c.js",
"mdx-slide-next.js": "/react-elastic-carousel/static/js/mdx-slide-next.285170ff.js",
"mdx-vertical-mode.js": "/react-elastic-carousel/static/js/mdx-vertical-mode.c5283b12.js",
"runtime~app.js": "/react-elastic-carousel/static/js/runtime~app.0a28a1aaecf2551082ac.js",
"mdx-vertical-mode.js": "/react-elastic-carousel/static/js/mdx-vertical-mode.3fb9fdc7.js",
"mdx-render-pagination.js": "/react-elastic-carousel/static/js/mdx-render-pagination.af3ad6e8.js",
"mdx-slide-next.js": "/react-elastic-carousel/static/js/mdx-slide-next.1fdb5e4a.js",
"runtime~app.js": "/react-elastic-carousel/static/js/runtime~app.9c9e323fb06637a3c830.js",
"index.html": "/react-elastic-carousel/index.html"
}
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="description" content="A flexible and responsive carousel component for react"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>react-elastic-carousel</title><link rel="stylesheet" href="https://unpkg.com/[email protected]/lib/codemirror.css"/><link rel="stylesheet" href="//codemirror.net/theme/dracula.css"></head><body><div id="root"/><script src="/react-elastic-carousel/static/js/runtime~app.0a28a1aaecf2551082ac.js"></script><script src="/react-elastic-carousel/static/js/vendors.1dd8f936.js"></script><script src="/react-elastic-carousel/static/js/app.15cbd183.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="description" content="A flexible and responsive carousel component for react"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>react-elastic-carousel</title><link rel="stylesheet" href="https://unpkg.com/[email protected]/lib/codemirror.css"/><link rel="stylesheet" href="//codemirror.net/theme/dracula.css"></head><body><div id="root"/><script src="/react-elastic-carousel/static/js/runtime~app.9c9e323fb06637a3c830.js"></script><script src="/react-elastic-carousel/static/js/vendors.28881de3.js"></script><script src="/react-elastic-carousel/static/js/app.73f38a70.js"></script></body></html>
Loading

0 comments on commit a824e32

Please sign in to comment.