@steroidsjs/bootstrap 3.0.2 → 3.0.4
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.js +1 -1
- package/form/CheckboxListField/CheckboxListFieldView.js +1 -1
- package/form/FieldList/FieldListView.scss +33 -8
- package/form/Form/FormView.js +2 -2
- package/form/RadioListField/RadioListFieldView.js +1 -1
- package/index.scss +0 -1
- package/layout/Header/HeaderView.js +1 -1
- package/package.json +2 -2
- package/form/Form/FormView.scss +0 -4
|
@@ -15,7 +15,7 @@ function SliderView(props) {
|
|
|
15
15
|
var Splide = react_splide_1.Splide;
|
|
16
16
|
var ItemView = props.itemView;
|
|
17
17
|
return (react_1["default"].createElement("div", { className: bem(bem.block(), props.className), style: props.style },
|
|
18
|
-
react_1["default"].createElement(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 },
|
|
18
|
+
react_1["default"].createElement(Splide, { options: props.sliderOptions, extensions: props.extensions, hasTrack: props.hasTrack, tag: props.tag, transition: props.transition, ref: props.ref }, (_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 },
|
|
19
19
|
react_1["default"].createElement(ItemView, { item: item }))); }))));
|
|
20
20
|
}
|
|
21
21
|
exports["default"] = SliderView;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
@use "../../scss/variables";
|
|
3
2
|
|
|
4
3
|
:root {
|
|
@@ -15,7 +14,6 @@ $background-th: var(--background-th);
|
|
|
15
14
|
$background-td-alternating: var(--background-td-alternating);
|
|
16
15
|
|
|
17
16
|
.FieldListView {
|
|
18
|
-
overflow-x: auto;
|
|
19
17
|
table {
|
|
20
18
|
width: 100%;
|
|
21
19
|
background-color: transparent;
|
|
@@ -23,7 +21,20 @@ $background-td-alternating: var(--background-td-alternating);
|
|
|
23
21
|
border-collapse: separate;
|
|
24
22
|
border-radius: 10px;
|
|
25
23
|
border-spacing: 0;
|
|
26
|
-
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
thead tr:first-child {
|
|
27
|
+
th:first-child {
|
|
28
|
+
border-radius: 10px 0 0 0;
|
|
29
|
+
-moz-border-radius: 10px 0 0 0;
|
|
30
|
+
-webkit-border-radius: 10px 0 0 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
th:last-child {
|
|
34
|
+
border-radius: 0 10px 0 0;
|
|
35
|
+
-moz-border-radius: 0 10px 0 0;
|
|
36
|
+
-webkit-border-radius: 0 10px 0 0;
|
|
37
|
+
}
|
|
27
38
|
}
|
|
28
39
|
|
|
29
40
|
th:not(:last-child),
|
|
@@ -43,10 +54,6 @@ $background-td-alternating: var(--background-td-alternating);
|
|
|
43
54
|
border-bottom: 1px solid variables.$gray-dark;
|
|
44
55
|
}
|
|
45
56
|
|
|
46
|
-
tfoot > tr > td {
|
|
47
|
-
border-top: 1px solid variables.$gray-dark;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
57
|
tr td {
|
|
51
58
|
padding: 12px;
|
|
52
59
|
}
|
|
@@ -62,7 +69,11 @@ $background-td-alternating: var(--background-td-alternating);
|
|
|
62
69
|
|
|
63
70
|
td {
|
|
64
71
|
background: variables.$element-background-color;
|
|
65
|
-
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
tfoot > tr > td {
|
|
75
|
+
border-top: 1px solid variables.$gray-dark;
|
|
76
|
+
border-radius: 0 0 10px 10px;
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
&_hasAlternatingColors {
|
|
@@ -86,3 +97,17 @@ $background-td-alternating: var(--background-td-alternating);
|
|
|
86
97
|
margin-bottom: 0;
|
|
87
98
|
}
|
|
88
99
|
}
|
|
100
|
+
|
|
101
|
+
.FieldListView:not(:has(tfoot)) {
|
|
102
|
+
tbody tr:last-child td:first-child {
|
|
103
|
+
border-radius: 0 0 0 10px !important;
|
|
104
|
+
-moz-border-radius: 0 0 0 10px !important;
|
|
105
|
+
-webkit-border-radius: 0 0 0 10px !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
tbody tr:last-child td:last-child {
|
|
109
|
+
border-radius: 0 0 10px 0 !important;
|
|
110
|
+
-moz-border-radius: 0 0 10px 0 !important;
|
|
111
|
+
-webkit-border-radius: 0 0 10px 0 !important;
|
|
112
|
+
}
|
|
113
|
+
}
|
package/form/Form/FormView.js
CHANGED
|
@@ -60,8 +60,8 @@ function FormView(props) {
|
|
|
60
60
|
});
|
|
61
61
|
return (React.createElement("form", { ref: formRef, className: bem(bem.block(), props.className), onSubmit: props.onSubmit, style: props.style },
|
|
62
62
|
props.children,
|
|
63
|
-
(props.fields || []).map(function (field, index) { return (React.createElement(Field_1["default"], __assign({ key: index }, ((0, isString_1["default"])(field) ? { attribute: field } : field)))); }),
|
|
63
|
+
(props.fields || []).map(function (field, index) { return (React.createElement(Field_1["default"], __assign({ key: index }, ((0, isString_1["default"])(field) ? { attribute: field } : field), { size: field.size || props.size || null }))); }),
|
|
64
64
|
props.buttons,
|
|
65
|
-
props.submitLabel && (React.createElement(Button_1["default"], { type: 'submit', label: props.submitLabel }))));
|
|
65
|
+
props.submitLabel && (React.createElement(Button_1["default"], __assign({ type: 'submit', label: props.submitLabel }, props.submitButtonProps)))));
|
|
66
66
|
}
|
|
67
67
|
exports["default"] = React.memo(FormView);
|
package/index.scss
CHANGED
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
@include meta.load-css('form/ImageField/ImageFieldView');
|
|
54
54
|
@include meta.load-css('form/FileField/FileFieldItemView');
|
|
55
55
|
@include meta.load-css('form/FieldSet/FieldSetView');
|
|
56
|
-
@include meta.load-css('form/Form/FormView');
|
|
57
56
|
@include meta.load-css('form/WizardForm/WizardFormView');
|
|
58
57
|
@include meta.load-css('form/HtmlField/HtmlFieldView');
|
|
59
58
|
@include meta.load-css('form/InputField/InputFieldView');
|
|
@@ -77,7 +77,7 @@ function HeaderView(props) {
|
|
|
77
77
|
return (React.createElement("header", { className: bem(bem.block({
|
|
78
78
|
size: props.size
|
|
79
79
|
}), props.className), style: props.style },
|
|
80
|
-
props.logo && (React.createElement(nav_1.Link, __assign({ className: bem.element('logo'), toRoute: 'root', size: props.size }, props.logo.linkProps),
|
|
80
|
+
props.logo && (React.createElement(nav_1.Link, __assign({ className: bem(bem.element('logo'), props.logo.className), toRoute: 'root', size: props.size }, props.logo.linkProps),
|
|
81
81
|
props.logo.icon && ((0, renderIcon_1["default"])(props.logo.icon, {
|
|
82
82
|
className: bem.element('logo-image')
|
|
83
83
|
})),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steroidsjs/bootstrap",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Vladimir Kozhin <hello@kozhindev.com>",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react-use": "^17.4.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@steroidsjs/core": "^3.0.
|
|
38
|
+
"@steroidsjs/core": "^3.0.4",
|
|
39
39
|
"@steroidsjs/eslint-config": "^2.1.6",
|
|
40
40
|
"@types/enzyme": "^3.10.8",
|
|
41
41
|
"@types/googlemaps": "^3.43.3",
|
package/form/Form/FormView.scss
DELETED