@steroidsjs/bootstrap 3.0.0-beta.80 → 3.0.0-beta.81
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.
- package/content/Slider/SliderView.d.ts +2 -0
- package/content/Slider/SliderView.js +18 -0
- package/content/Slider/SliderView.scss +5 -0
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/index.scss +3 -0
- package/package.json +2 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var useBem_1 = __importDefault(require("@steroidsjs/core/hooks/useBem"));
|
|
9
|
+
var react_splide_1 = require("@splidejs/react-splide");
|
|
10
|
+
function SliderView(props) {
|
|
11
|
+
var _a;
|
|
12
|
+
var bem = (0, useBem_1["default"])('Slider');
|
|
13
|
+
var ItemView = props.itemView;
|
|
14
|
+
return (react_1["default"].createElement("div", { className: bem(bem.block(), props.className), style: props.style },
|
|
15
|
+
react_1["default"].createElement(react_splide_1.Splide, { options: props.sliderOptions, extensions: props.extensions, hasTrack: props.hasTrack, tag: props.tag, transition: props.transition }, (_a = props.items) === null || _a === void 0 ? void 0 : _a.map(function (item, itemIndex) { return (react_1["default"].createElement(react_splide_1.SplideSlide, { key: itemIndex },
|
|
16
|
+
react_1["default"].createElement(ItemView, { item: item }))); }))));
|
|
17
|
+
}
|
|
18
|
+
exports["default"] = SliderView;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -38,6 +38,9 @@ exports["default"] = {
|
|
|
38
38
|
'content.CopyToClipboardView': {
|
|
39
39
|
lazy: function () { return require('./content/CopyToClipboard/CopyToClipboardView')["default"]; }
|
|
40
40
|
},
|
|
41
|
+
'content.SliderView': {
|
|
42
|
+
lazy: function () { return require('./content/Slider/SliderView')["default"]; }
|
|
43
|
+
},
|
|
41
44
|
'form.AutoCompleteFieldView': {
|
|
42
45
|
lazy: function () { return require('./form/AutoCompleteField/AutoCompleteFieldView')["default"]; }
|
|
43
46
|
},
|
package/index.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import '~@splidejs/splide/dist/css/splide.min.css';
|
|
2
|
+
|
|
1
3
|
@import './scss/normalize';
|
|
2
4
|
@import './scss/mixins';
|
|
3
5
|
@import './scss/variables';
|
|
@@ -20,6 +22,7 @@
|
|
|
20
22
|
@import './content/Menu/MenuView';
|
|
21
23
|
@import './content/Icon/IconView';
|
|
22
24
|
@import './content/CopyToClipboard/CopyToClipboardView';
|
|
25
|
+
@import './content/Slider//SliderView';
|
|
23
26
|
@import './form/AutoCompleteField/AutoCompleteFieldView';
|
|
24
27
|
@import './form/Button/ButtonView';
|
|
25
28
|
@import './form/CheckboxField/CheckboxFieldView';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steroidsjs/bootstrap",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.81",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Vladimir Kozhin <hello@kozhindev.com>",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@ckeditor/ckeditor5-react": "^3.0.2",
|
|
22
|
+
"@splidejs/react-splide": "^0.7.12",
|
|
22
23
|
"@steroidsjs/ckeditor5": "^27.0.2-rc.2",
|
|
23
24
|
"date-fns": "^2.29.3",
|
|
24
25
|
"lodash": "^4.17.20",
|