-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing swipe component and add behaviour through another lib
- Loading branch information
Showing
10 changed files
with
780 additions
and
400 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
var React = require('react/addons'); | ||
var classSet = React.addons.classSet; | ||
|
||
module.exports = { | ||
CAROUSEL (isSlider) { | ||
return classSet({ | ||
"carousel": true, | ||
"carousel-slider": isSlider | ||
}); | ||
}, | ||
|
||
WRAPPER (isSlider) { | ||
return classSet({ | ||
"thumbs-wrapper": !isSlider, | ||
"slider-wrapper": isSlider | ||
}); | ||
}, | ||
|
||
SLIDER (isSlider){ | ||
return classSet({ | ||
"thumbs": !isSlider, | ||
"slider": isSlider | ||
}); | ||
}, | ||
|
||
ITEM (isSlider, index, selectedItem) { | ||
return classSet({ | ||
"thumb": !isSlider, | ||
"slide": isSlider, | ||
"selected": index === selectedItem | ||
}); | ||
}, | ||
|
||
ARROW_LEFT (disabled) { | ||
return classSet({ | ||
"control-arrow control-left": true, | ||
"control-disabled": disabled | ||
}); | ||
}, | ||
|
||
ARROW_RIGHT (disabled) { | ||
return classSet({ | ||
"control-arrow control-right": true, | ||
"control-disabled": disabled | ||
}) | ||
}, | ||
|
||
DOT (selected) { | ||
return classSet({ | ||
"dot": true, | ||
'selected': selected | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
outerWidth: (el) => { | ||
var width = el.offsetWidth; | ||
var style = getComputedStyle(el); | ||
|
||
width += parseInt(style.marginLeft) + parseInt(style.marginRight); | ||
return width; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,12 +35,6 @@ h4 { | |
margin-bottom: 10px; | ||
} | ||
|
||
|
||
|
||
pre { | ||
|
||
} | ||
|
||
code { | ||
border-radius: 20px; | ||
background: #f5f5f5; | ||
|