react-styled-slider-component 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,23 +12,23 @@ export var SliderWrapper = styled.div(templateObject_1 || (templateObject_1 = __
|
|
|
12
12
|
});
|
|
13
13
|
export var SlideTrack = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n transition: transform 0.3s ease-in-out;\n"], ["\n display: flex;\n transition: transform 0.3s ease-in-out;\n"])));
|
|
14
14
|
export var Slide = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n margin: 0; \n padding: 0; \n"], ["\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n margin: 0; \n padding: 0; \n"])));
|
|
15
|
-
export var DotsWrapper = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n flex-direction: ", ";\n
|
|
15
|
+
export var DotsWrapper = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: absolute;\n display: flex;\n justify-content: center;\n flex-direction: ", ";\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n"], ["\n position: absolute;\n display: flex;\n justify-content: center;\n flex-direction: ", ";\n \n ", "\n \n ", "\n \n ", "\n \n ", "\n"])), function (_a) {
|
|
16
16
|
var position = _a.position;
|
|
17
17
|
return (position === 'left' || position === 'right' ? 'column' : 'row');
|
|
18
18
|
}, function (_a) {
|
|
19
19
|
var position = _a.position;
|
|
20
|
-
return
|
|
20
|
+
return position === 'top' && "\n top: 10px;\n left: 50%;\n transform: translateX(-50%);\n ";
|
|
21
21
|
}, function (_a) {
|
|
22
22
|
var position = _a.position;
|
|
23
|
-
return
|
|
23
|
+
return position === 'bottom' && "\n bottom: 10px;\n left: 50%;\n transform: translateX(-50%);\n ";
|
|
24
24
|
}, function (_a) {
|
|
25
25
|
var position = _a.position;
|
|
26
|
-
return
|
|
26
|
+
return position === 'left' && "\n left: 10px;\n top: 50%;\n transform: translateY(-50%);\n ";
|
|
27
27
|
}, function (_a) {
|
|
28
28
|
var position = _a.position;
|
|
29
|
-
return
|
|
29
|
+
return position === 'right' && "\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n ";
|
|
30
30
|
});
|
|
31
|
-
export var Dot = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background-color: ", ";\n margin:
|
|
31
|
+
export var Dot = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background-color: ", ";\n margin: 5px;\n cursor: pointer;\n"], ["\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background-color: ", ";\n margin: 5px;\n cursor: pointer;\n"])), function (_a) {
|
|
32
32
|
var active = _a.active;
|
|
33
33
|
return (active ? 'black' : 'lightgray');
|
|
34
34
|
});
|
package/package.json
CHANGED