@steroidsjs/bootstrap 3.0.0-beta.35 → 3.0.0-beta.37
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/Accordion/AccordionItemView.js +4 -11
- package/content/Avatar/AvatarView.scss +4 -4
- package/content/Card/CardView.js +5 -3
- package/content/Card/CardView.scss +21 -5
- package/form/Button/ButtonView.scss +10 -0
- package/form/CheckboxField/CheckboxFieldView.js +2 -2
- package/form/CheckboxField/CheckboxFieldView.scss +3 -5
- package/form/CheckboxListField/CheckboxListFieldView.js +19 -15
- package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
- package/form/DropDownField/DropDownFieldView.js +4 -19
- package/form/DropDownField/DropDownFieldView.scss +14 -16
- package/form/DropDownField/utils.d.ts +2 -0
- package/form/DropDownField/utils.js +15 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.d.ts +2 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.js +78 -0
- package/form/{DropDownField/views/DropDownItem/DropDownItemView.scss → DropDownFieldItem/DropDownFieldItemView.scss} +4 -5
- package/form/InputField/InputFieldView.js +5 -7
- package/form/RadioField/RadioFieldView.d.ts +3 -0
- package/form/RadioField/RadioFieldView.js +57 -0
- package/form/RadioField/RadioFieldView.scss +226 -0
- package/form/RadioListField/RadioListFieldView.js +20 -23
- package/form/RadioListField/RadioListFieldView.scss +7 -225
- package/icons/index.js +3 -0
- package/icons/svgs/arrow-left.svg +3 -0
- package/icons/svgs/double-arrow-left.svg +4 -0
- package/icons/svgs/home.svg +4 -0
- package/index.scss +2 -0
- package/list/List/ListView.d.ts +1 -0
- package/list/List/ListView.js +5 -5
- package/list/List/ListView.scss +9 -0
- package/list/Pagination/PaginationButtonView.js +34 -5
- package/list/Pagination/PaginationButtonView.scss +258 -1
- package/list/Pagination/PaginationMoreView.js +1 -1
- package/list/Pagination/PaginationMoreView.scss +4 -1
- package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
- package/nav/Breadcrubms/BreadcrumbsView.scss +51 -0
- package/package.json +3 -3
- package/scss/mixins/button.scss +18 -7
- package/scss/variables/common/colors.scss +10 -5
- package/scss/variables/normalize.scss +4 -0
- package/utils/renderIcon.d.ts +9 -0
- package/utils/renderIcon.js +27 -0
- package/form/DropDownField/views/DropDownItem/DropDownItemView.d.ts +0 -3
- package/form/DropDownField/views/DropDownItem/DropDownItemView.js +0 -80
- package/form/DropDownField/views/DropDownItem/index.d.ts +0 -2
- package/form/DropDownField/views/DropDownItem/index.js +0 -7
- package/list/List/ListItemView.scss +0 -3
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
exports.__esModule = true;
|
|
40
|
+
var React = __importStar(require("react"));
|
|
41
|
+
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
42
|
+
var useUniqueId_1 = __importDefault(require("@steroidsjs/core/hooks/useUniqueId"));
|
|
43
|
+
function RadioFieldView(props) {
|
|
44
|
+
var bem = (0, hooks_1.useBem)('RadioFieldView');
|
|
45
|
+
var id = (0, useUniqueId_1["default"])('radio');
|
|
46
|
+
return (React.createElement("div", { className: bem(bem.block({
|
|
47
|
+
hasError: !!props.errors,
|
|
48
|
+
size: props.size
|
|
49
|
+
}), props.className), onClick: props.onChange },
|
|
50
|
+
React.createElement("input", __assign({ className: bem(bem.element('input', {
|
|
51
|
+
checked: props.checked
|
|
52
|
+
})), id: props.id || id }, props.inputProps, { checked: props.checked, disabled: props.disabled, required: props.required })),
|
|
53
|
+
React.createElement("label", { className: bem.element('label'), htmlFor: props.id || id },
|
|
54
|
+
React.createElement("span", { className: bem.element('ellipse') }),
|
|
55
|
+
props.label)));
|
|
56
|
+
}
|
|
57
|
+
exports["default"] = RadioFieldView;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--radio-hover-color: #651fff;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
html[data-theme="dark"] {
|
|
6
|
+
--radio-hover-color: #6648a7;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
$radio-hover-color: var(--radio-hover-color);
|
|
10
|
+
|
|
11
|
+
.RadioFieldView {
|
|
12
|
+
position: relative;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
|
|
15
|
+
$root: &;
|
|
16
|
+
|
|
17
|
+
font-family: $font-family-nunito;
|
|
18
|
+
color: $text-color;
|
|
19
|
+
line-height: 24px;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
font-size: $font-size-sm;
|
|
22
|
+
|
|
23
|
+
&__ellipse {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 50%;
|
|
26
|
+
left: 6px;
|
|
27
|
+
transform: translateY(-50%);
|
|
28
|
+
display: inline-block;
|
|
29
|
+
width: 12px;
|
|
30
|
+
height: 12px;
|
|
31
|
+
background-color: $primary;
|
|
32
|
+
border-radius: $radius-circle;
|
|
33
|
+
opacity: 0;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__label {
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__input {
|
|
42
|
+
position: absolute;
|
|
43
|
+
z-index: -1;
|
|
44
|
+
opacity: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__input + &__label {
|
|
48
|
+
position: relative;
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
user-select: none;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
//Custom Radio
|
|
56
|
+
&__input + label::before {
|
|
57
|
+
content: "";
|
|
58
|
+
display: inline-block;
|
|
59
|
+
width: 24px;
|
|
60
|
+
height: 24px;
|
|
61
|
+
border-radius: $radius-circle;
|
|
62
|
+
border: 1px solid $border-color;
|
|
63
|
+
margin-right: 8px;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
|
|
66
|
+
background-repeat: no-repeat;
|
|
67
|
+
background-position: 53% 50%;
|
|
68
|
+
background-size: 50% 50%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__input + &__label::after {
|
|
72
|
+
content: "";
|
|
73
|
+
width: 26px;
|
|
74
|
+
height: 26px;
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 0;
|
|
77
|
+
left: 0;
|
|
78
|
+
border: 4px solid $primary-light;
|
|
79
|
+
border-radius: $radius-circle;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
opacity: 0;
|
|
82
|
+
|
|
83
|
+
transform: translate(-12%, -12%);
|
|
84
|
+
|
|
85
|
+
transition: opacity 150ms ease-in-out;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&__input:not(:disabled):not(:checked):hover + &__label::before {
|
|
89
|
+
border-color: $border-color-hover;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&__input:not(:disabled):not(:checked):active + &__label::before {
|
|
93
|
+
border-color: $primary;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__input:not(:disabled):focus + &__label::after {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&__input:not(:disabled):focus + &__label &__ellipse {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__input:checked + &__label::before {
|
|
105
|
+
border: 1px solid $primary;
|
|
106
|
+
}
|
|
107
|
+
&__input:checked + &__label &__ellipse {
|
|
108
|
+
opacity: 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&__input:not(:disabled):checked:hover + &__label::before {
|
|
112
|
+
border-color: $primary-dark;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&__input:not(:disabled):checked:hover + &__label &__ellipse {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
background-color: $radio-hover-color;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&__input:not(:disabled):checked:active + &__label::before {
|
|
121
|
+
border-color: $primary-light;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&__input:not(:disabled):checked:active + &__label &__ellipse {
|
|
125
|
+
opacity: 1;
|
|
126
|
+
background-color: $primary-light;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&__input:disabled + &__label {
|
|
130
|
+
cursor: not-allowed;
|
|
131
|
+
color: $placeholder-color;
|
|
132
|
+
|
|
133
|
+
&::before {
|
|
134
|
+
cursor: not-allowed;
|
|
135
|
+
background-color: $background-disabled-color;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&__input:disabled:checked + &__label::before {
|
|
140
|
+
cursor: not-allowed;
|
|
141
|
+
|
|
142
|
+
background-color: transparent;
|
|
143
|
+
border-color: $background-disabled-color;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&__input:disabled:checked + &__label &__ellipse {
|
|
147
|
+
background-color: $background-disabled-color;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&_hasError {
|
|
151
|
+
#{$root}__input:not(:disabled):not(:checked) + #{$root}__label {
|
|
152
|
+
color: $danger;
|
|
153
|
+
|
|
154
|
+
&::before {
|
|
155
|
+
border-color: $danger;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&_size {
|
|
161
|
+
&_lg {
|
|
162
|
+
#{$root}__label {
|
|
163
|
+
font-size: $font-size-lg;
|
|
164
|
+
line-height: 24px;
|
|
165
|
+
|
|
166
|
+
&::before {
|
|
167
|
+
width: 22px;
|
|
168
|
+
height: 22px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&::after {
|
|
172
|
+
width: 24px;
|
|
173
|
+
height: 24px;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&_md {
|
|
179
|
+
#{$root}__label {
|
|
180
|
+
font-size: $font-size-base;
|
|
181
|
+
line-height: 22px;
|
|
182
|
+
|
|
183
|
+
&::before {
|
|
184
|
+
width: 18px;
|
|
185
|
+
height: 18px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&::after {
|
|
189
|
+
width: 20px;
|
|
190
|
+
height: 20px;
|
|
191
|
+
transform: translate(-14.5%, -10.5%);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
#{$root}__ellipse {
|
|
196
|
+
width: 10px;
|
|
197
|
+
height: 10px;
|
|
198
|
+
left: 5px;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&_sm {
|
|
203
|
+
#{$root}__label {
|
|
204
|
+
font-size: $font-size-sm;
|
|
205
|
+
line-height: 18px;
|
|
206
|
+
|
|
207
|
+
&::before {
|
|
208
|
+
width: 14px;
|
|
209
|
+
height: 14px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&::after {
|
|
213
|
+
width: 16px;
|
|
214
|
+
height: 16px;
|
|
215
|
+
transform: translate(-16.5%, -12.5%);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
#{$root}__ellipse {
|
|
220
|
+
width: 8px;
|
|
221
|
+
height: 8px;
|
|
222
|
+
left: 4px;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -41,19 +30,27 @@ var React = __importStar(require("react"));
|
|
|
41
30
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
42
31
|
var useUniqueId_1 = __importDefault(require("@steroidsjs/core/hooks/useUniqueId"));
|
|
43
32
|
function RadioListFieldView(props) {
|
|
33
|
+
var _a;
|
|
44
34
|
var bem = (0, hooks_1.useBem)('RadioListFieldView');
|
|
45
35
|
var prefix = (0, useUniqueId_1["default"])('radio');
|
|
46
|
-
return (React.createElement("div", { className: bem(bem.block(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
36
|
+
return (React.createElement("div", { className: bem(bem.block((_a = {},
|
|
37
|
+
_a["".concat(props.orientation)] = !!props.orientation,
|
|
38
|
+
_a)), props.className) }, props.items.map(function (radio, radioIndex) { return props.renderRadio({
|
|
39
|
+
inputProps: {
|
|
40
|
+
name: "".concat(prefix, "_").concat(radio.id),
|
|
41
|
+
checked: null,
|
|
42
|
+
type: 'radio',
|
|
43
|
+
disabled: false,
|
|
44
|
+
onChange: function () {
|
|
45
|
+
props.onItemSelect(radio.id);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
disabled: props.disabled,
|
|
49
|
+
checked: props.selectedIds.includes(radio.id),
|
|
50
|
+
label: radio.label,
|
|
51
|
+
id: "".concat(prefix, "_").concat(radio.id),
|
|
52
|
+
key: radioIndex,
|
|
53
|
+
size: props.size
|
|
54
|
+
}); })));
|
|
58
55
|
}
|
|
59
56
|
exports["default"] = RadioListFieldView;
|
|
@@ -1,231 +1,13 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--radio-hover-color: #651fff;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
html[data-theme="dark"] {
|
|
6
|
-
--radio-hover-color: #6648A7;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
$radio-hover-color: var(--radio-hover-color);
|
|
10
|
-
|
|
11
1
|
.RadioListFieldView {
|
|
12
|
-
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
|
|
15
|
-
$root: &;
|
|
16
|
-
|
|
17
|
-
font-family: $font-family-nunito;
|
|
18
|
-
color: $text-color;
|
|
19
|
-
line-height: 24px;
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
font-size: $font-size-sm;
|
|
22
|
-
|
|
23
|
-
&__ellipse {
|
|
24
|
-
position: absolute;
|
|
25
|
-
top: 50%;
|
|
26
|
-
left: 6px;
|
|
27
|
-
transform: translateY(-50%);
|
|
28
|
-
display: inline-block;
|
|
29
|
-
width: 12px;
|
|
30
|
-
height: 12px;
|
|
31
|
-
background-color: $primary;
|
|
32
|
-
border-radius: $radius-circle;
|
|
33
|
-
opacity: 0;
|
|
34
|
-
pointer-events: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&__label {
|
|
38
|
-
position: relative;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&__input {
|
|
42
|
-
position: absolute;
|
|
43
|
-
z-index: -1;
|
|
44
|
-
opacity: 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&__input + &__label {
|
|
48
|
-
position: relative;
|
|
49
|
-
display: inline-flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
user-select: none;
|
|
52
|
-
cursor: pointer;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
//Custom Radio
|
|
56
|
-
&__input + label::before {
|
|
57
|
-
content: "";
|
|
58
|
-
display: inline-block;
|
|
59
|
-
width: 24px;
|
|
60
|
-
height: 24px;
|
|
61
|
-
border-radius: $radius-circle;
|
|
62
|
-
border: 1px solid $border-color;
|
|
63
|
-
margin-right: 8px;
|
|
64
|
-
cursor: pointer;
|
|
2
|
+
display: flex;
|
|
65
3
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&__input + &__label::after {
|
|
72
|
-
content: "";
|
|
73
|
-
width: 26px;
|
|
74
|
-
height: 26px;
|
|
75
|
-
position: absolute;
|
|
76
|
-
top: 0;
|
|
77
|
-
left: 0;
|
|
78
|
-
border: 4px solid $primary-light;
|
|
79
|
-
border-radius: $radius-circle;
|
|
80
|
-
pointer-events: none;
|
|
81
|
-
opacity: 0;
|
|
82
|
-
|
|
83
|
-
transform: translate(-12%, -12%);
|
|
84
|
-
|
|
85
|
-
transition: opacity 150ms ease-in-out;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&__input:not(:disabled):not(:checked):hover + &__label::before {
|
|
89
|
-
border-color: $border-color-hover;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&__input:not(:disabled):not(:checked):active + &__label::before {
|
|
93
|
-
border-color: $primary;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&__input:not(:disabled):focus + &__label::after {
|
|
97
|
-
opacity: 1;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&__input:not(:disabled):focus + &__label &__ellipse {
|
|
101
|
-
opacity: 1;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&__input:checked + &__label::before {
|
|
105
|
-
border: 1px solid $primary;
|
|
106
|
-
}
|
|
107
|
-
&__input:checked + &__label &__ellipse {
|
|
108
|
-
opacity: 1;
|
|
4
|
+
&_vertical {
|
|
5
|
+
flex-flow: column wrap;
|
|
6
|
+
row-gap: 8px;
|
|
109
7
|
}
|
|
110
8
|
|
|
111
|
-
&
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
&__input:not(:disabled):checked:hover + &__label &__ellipse {
|
|
116
|
-
opacity: 1;
|
|
117
|
-
background-color: $radio-hover-color;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&__input:not(:disabled):checked:active + &__label::before {
|
|
121
|
-
border-color: $primary-light;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&__input:not(:disabled):checked:active + &__label &__ellipse {
|
|
125
|
-
opacity: 1;
|
|
126
|
-
background-color: $primary-light;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&__input:disabled + &__label {
|
|
130
|
-
cursor: not-allowed;
|
|
131
|
-
color: $placeholder-color;
|
|
132
|
-
|
|
133
|
-
&::before {
|
|
134
|
-
cursor: not-allowed;
|
|
135
|
-
background-color: $background-disabled-color;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&__input:disabled:checked + &__label::before {
|
|
140
|
-
cursor: not-allowed;
|
|
141
|
-
|
|
142
|
-
background-color: transparent;
|
|
143
|
-
border-color: $background-disabled-color;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&__input:disabled:checked + &__label &__ellipse {
|
|
147
|
-
background-color: $background-disabled-color;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&__item_hasError {
|
|
151
|
-
#{$root}__input:not(:disabled):not(:checked) + #{$root}__label {
|
|
152
|
-
color: $danger;
|
|
153
|
-
|
|
154
|
-
&::before {
|
|
155
|
-
border-color: $danger;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&__item {
|
|
161
|
-
width: fit-content;
|
|
162
|
-
position: relative;
|
|
163
|
-
|
|
164
|
-
&_size {
|
|
165
|
-
&_lg {
|
|
166
|
-
#{$root}__label {
|
|
167
|
-
font-size: $font-size-lg;
|
|
168
|
-
line-height: 24px;
|
|
169
|
-
|
|
170
|
-
&::before {
|
|
171
|
-
width: 22px;
|
|
172
|
-
height: 22px;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&::after {
|
|
176
|
-
width: 24px;
|
|
177
|
-
height: 24px;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&_md {
|
|
183
|
-
#{$root}__label {
|
|
184
|
-
font-size: $font-size-base;
|
|
185
|
-
line-height: 22px;
|
|
186
|
-
|
|
187
|
-
&::before {
|
|
188
|
-
width: 18px;
|
|
189
|
-
height: 18px;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&::after {
|
|
193
|
-
width: 20px;
|
|
194
|
-
height: 20px;
|
|
195
|
-
transform: translate(-14.5%, -10.5%);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
#{$root}__ellipse {
|
|
200
|
-
width: 10px;
|
|
201
|
-
height: 10px;
|
|
202
|
-
left: 5px;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
&_sm {
|
|
207
|
-
#{$root}__label {
|
|
208
|
-
font-size: $font-size-sm;
|
|
209
|
-
line-height: 18px;
|
|
210
|
-
|
|
211
|
-
&::before {
|
|
212
|
-
width: 14px;
|
|
213
|
-
height: 14px;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
&::after {
|
|
217
|
-
width: 16px;
|
|
218
|
-
height: 16px;
|
|
219
|
-
transform: translate(-16.5%, -12.5%);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
#{$root}__ellipse {
|
|
224
|
-
width: 8px;
|
|
225
|
-
height: 8px;
|
|
226
|
-
left: 4px;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
9
|
+
&_horizontal {
|
|
10
|
+
flex-flow: row nowrap;
|
|
11
|
+
column-gap: 8px;
|
|
230
12
|
}
|
|
231
13
|
}
|
package/icons/index.js
CHANGED
|
@@ -269,6 +269,9 @@ exports["default"] = (function (customIcons) {
|
|
|
269
269
|
'crossed-out-eye',
|
|
270
270
|
'dots',
|
|
271
271
|
'search',
|
|
272
|
+
'home',
|
|
273
|
+
'arrow-left',
|
|
274
|
+
'double-arrow-left',
|
|
272
275
|
];
|
|
273
276
|
steroidsIcons.forEach(function (iconName) {
|
|
274
277
|
icons[iconName] = require("./svgs/".concat(iconName, ".svg"));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M11.8535 16.5815L7.85352 12.5815L11.8535 8.58148" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M16.8535 16.5815L12.8535 12.5815L16.8535 8.58148" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M5.35352 12.3655C5.35352 11.0077 5.35352 10.3289 5.62798 9.73213C5.90244 9.13539 6.41788 8.69358 7.44877 7.80997L8.44877 6.95282C10.3121 5.35569 11.2437 4.55713 12.3535 4.55713C13.4633 4.55713 14.3949 5.35569 16.2583 6.95282L17.2583 7.80997C18.2892 8.69358 18.8046 9.13539 19.0791 9.73213C19.3535 10.3289 19.3535 11.0077 19.3535 12.3655V16.6059C19.3535 18.4915 19.3535 19.4343 18.7677 20.0201C18.1819 20.6059 17.2391 20.6059 15.3535 20.6059H9.35352C7.4679 20.6059 6.52509 20.6059 5.9393 20.0201C5.35352 19.4343 5.35352 18.4915 5.35352 16.6059V12.3655Z" stroke="#323232"/>
|
|
3
|
+
<path d="M14.8535 20.606V15.606C14.8535 15.0537 14.4058 14.606 13.8535 14.606H10.8535C10.3012 14.606 9.85352 15.0537 9.85352 15.606V20.606" stroke="#323232" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
package/index.scss
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
@import './form/DateRangeField/DateRangeFieldView';
|
|
22
22
|
@import './form/DateTimeField/DateTimeFieldView';
|
|
23
23
|
@import './form/DateTimeRangeField/DateTimeRangeFieldView';
|
|
24
|
+
@import './form/DropDownFieldItem/DropDownFieldItemView';
|
|
24
25
|
@import './form/DropDownField/DropDownFieldView';
|
|
25
26
|
@import './form/FieldLayout/FieldLayoutView';
|
|
26
27
|
@import './form/FieldList/FieldListView';
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
@import './form/NumberField/NumberFieldView';
|
|
34
35
|
@import './form/PasswordField/PasswordFieldView';
|
|
35
36
|
@import './form/RateField/RateFieldView';
|
|
37
|
+
@import './form/RadioField/RadioFieldView';
|
|
36
38
|
@import './form/RadioListField/RadioListFieldView';
|
|
37
39
|
@import './form/ReCaptchaField/ReCaptchaFieldView';
|
|
38
40
|
@import './form/SliderField/SliderFieldView';
|
package/list/List/ListView.d.ts
CHANGED
package/list/List/ListView.js
CHANGED
|
@@ -25,6 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
exports.__esModule = true;
|
|
26
26
|
var React = __importStar(require("react"));
|
|
27
27
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
28
|
+
require("./ListView.scss");
|
|
28
29
|
function ListView(props) {
|
|
29
30
|
var bem = (0, hooks_1.useBem)('ListView');
|
|
30
31
|
if (!props.list) {
|
|
@@ -34,17 +35,16 @@ function ListView(props) {
|
|
|
34
35
|
if (!pagination && !paginationSize && !layout) {
|
|
35
36
|
return null;
|
|
36
37
|
}
|
|
37
|
-
return (React.createElement("div", { className: bem
|
|
38
|
-
React.createElement("div",
|
|
39
|
-
React.createElement("div",
|
|
40
|
-
React.createElement("div", { className: 'col-4 d-flex justify-content-end' },
|
|
38
|
+
return (React.createElement("div", { className: bem.element('pagination') },
|
|
39
|
+
React.createElement("div", null, pagination),
|
|
40
|
+
React.createElement("div", null,
|
|
41
41
|
layout,
|
|
42
42
|
paginationSize)));
|
|
43
43
|
};
|
|
44
44
|
return props.renderList(React.createElement("div", { className: bem(bem.block({ loading: props.isLoading || props.list.isLoading }), props.className) },
|
|
45
45
|
props.renderSearchForm(),
|
|
46
46
|
renderPagination(['top', 'both'].includes(props.paginationPosition) && props.renderPagination(), ['top', 'both'].includes(props.paginationSizePosition) && props.renderPaginationSize(), ['top', 'both'].includes(props.layoutNamesPosition) && props.renderLayoutNames()),
|
|
47
|
-
React.createElement("div", { className: bem(
|
|
47
|
+
React.createElement("div", { className: bem(bem.element('content'), props.contentClassName) }, props.content),
|
|
48
48
|
renderPagination(['bottom', 'both'].includes(props.paginationPosition) && props.renderPagination(), ['bottom', 'both'].includes(props.paginationSizePosition) && props.renderPaginationSize(), ['bottom', 'both'].includes(props.layoutNamesPosition) && props.renderLayoutNames()),
|
|
49
49
|
props.renderEmpty()));
|
|
50
50
|
}
|