@steroidsjs/bootstrap 3.0.0-beta.4 → 3.0.0-beta.40
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/README.md +1 -2
- package/content/Accordion/AccordionItemView.d.ts +2 -0
- package/content/{Collapse/CollapseItemView.js → Accordion/AccordionItemView.js} +46 -22
- package/content/Accordion/AccordionItemView.scss +209 -0
- package/content/Accordion/AccordionView.d.ts +2 -0
- package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
- package/content/{Collapse/CollapseView.scss → Accordion/AccordionView.scss} +3 -4
- package/content/Alert/AlertView.scss +19 -4
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +32 -39
- package/content/Badge/BadgeView.d.ts +3 -0
- package/content/Badge/BadgeView.js +25 -0
- package/content/Badge/BadgeView.scss +135 -0
- package/content/Calendar/CaptionElement.scss +5 -4
- package/content/Card/CardView.js +36 -14
- package/content/Card/CardView.scss +139 -107
- package/content/Detail/DetailView.scss +75 -52
- package/content/DropDown/DropDownView.js +6 -3
- package/content/DropDown/DropDownView.scss +196 -27
- package/content/Icon/IconView.js +2 -2
- package/form/Button/ButtonView.js +12 -8
- package/form/Button/ButtonView.scss +166 -68
- package/form/CheckboxField/CheckboxFieldView.js +6 -3
- package/form/CheckboxField/CheckboxFieldView.scss +183 -36
- package/form/CheckboxListField/CheckboxListFieldView.js +19 -15
- package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
- package/form/DropDownField/DropDownFieldView.js +31 -47
- package/form/DropDownField/DropDownFieldView.scss +390 -182
- 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/DropDownFieldItem/DropDownFieldItemView.scss +216 -0
- package/form/FieldLayout/FieldLayoutView.js +13 -9
- package/form/FieldLayout/FieldLayoutView.scss +129 -24
- package/form/FieldList/FieldListView.js +1 -1
- package/form/FileField/FileFieldView.js +1 -1
- package/form/Form/FormView.js +1 -4
- package/form/Form/FormView.scss +1 -14
- package/form/InputField/InputFieldView.js +30 -13
- package/form/InputField/InputFieldView.scss +245 -99
- package/form/NumberField/NumberFieldView.js +19 -13
- package/form/NumberField/NumberFieldView.scss +195 -89
- package/form/PasswordField/PasswordFieldView.js +11 -9
- package/form/PasswordField/PasswordFieldView.scss +231 -63
- 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 -16
- package/form/RadioListField/RadioListFieldView.scss +11 -1
- package/form/ReCaptchaField/ReCaptchaFieldView.js +2 -2
- package/form/SwitcherField/SwitcherFieldView.js +1 -1
- package/form/TextField/TextFieldView.js +10 -2
- package/form/TextField/TextFieldView.scss +143 -2
- package/icons/index.d.ts +2 -0
- package/{icon/fontawesome.js → icons/index.js} +40 -11
- package/icons/svgs/accordion-chevron.svg +4 -0
- package/icons/svgs/arrow-left.svg +3 -0
- package/icons/svgs/arrow.svg +3 -0
- package/icons/svgs/badge-close.svg +3 -0
- package/icons/svgs/close.svg +4 -0
- package/icons/svgs/crossed-out-eye.svg +5 -0
- package/icons/svgs/default.svg +11 -0
- package/icons/svgs/dots.svg +5 -0
- package/icons/svgs/double-arrow-left.svg +4 -0
- package/icons/svgs/error.svg +12 -0
- package/icons/svgs/field-close.svg +4 -0
- package/icons/svgs/home.svg +4 -0
- package/icons/svgs/info.svg +12 -0
- package/icons/svgs/loader.svg +3 -0
- package/icons/svgs/search.svg +4 -0
- package/icons/svgs/success.svg +4 -0
- package/icons/svgs/user.svg +4 -0
- package/icons/svgs/visible-eye.svg +4 -0
- package/icons/svgs/warning.svg +12 -0
- package/index.d.ts +11 -2
- package/index.js +13 -4
- package/index.scss +8 -3
- package/layout/Header/HeaderView.scss +3 -3
- package/layout/Tooltip/TooltipView.js +6 -6
- package/layout/Tooltip/TooltipView.scss +45 -37
- package/list/Grid/GridView.js +1 -1
- package/list/Grid/GridView.scss +28 -30
- 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/nav/Nav/NavIconView.js +1 -1
- package/nav/Nav/NavListView.js +1 -1
- package/nav/Nav/NavTabsView.js +1 -1
- package/nav/Tree/TreeView.scss +14 -11
- package/package.json +56 -56
- package/scss/fonts.scss +6 -0
- package/scss/mixins/button.scss +61 -24
- package/scss/mixins/index.scss +2 -1
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/typography.scss +26 -0
- package/scss/variables/common/colors.scss +95 -70
- package/scss/variables/common/media.scss +2 -0
- package/scss/variables/common/typography.scss +96 -28
- package/scss/variables/components/input.scss +7 -6
- package/scss/variables/index.scss +2 -2
- package/scss/variables/normalize.scss +25 -0
- package/typography/Text/TextView.d.ts +3 -0
- package/typography/Text/TextView.js +46 -0
- package/typography/Text/TextView.scss +16 -0
- package/typography/Title/TitleView.d.ts +3 -0
- package/typography/Title/TitleView.js +50 -0
- package/typography/Title/TitleView.scss +16 -0
- package/utils/renderIcon.d.ts +9 -0
- package/utils/renderIcon.js +27 -0
- package/content/Collapse/CollapseItemView.d.ts +0 -2
- package/content/Collapse/CollapseItemView.scss +0 -88
- package/content/Collapse/CollapseView.d.ts +0 -2
- package/content/Icon/IconView.scss +0 -25
- package/icon/fontawesome.d.ts +0 -2
- package/list/List/ListItemView.scss +0 -3
- package/scss/mixins/card.scss +0 -26
- package/scss/variables/components/card.scss +0 -20
|
@@ -1,2 +1,259 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--pagination-hover-color: #e5e9eb;
|
|
3
|
+
--pagination-hover-background-color: #ffffff;
|
|
4
|
+
--pagination-arrow-color: #323232;
|
|
5
|
+
--pagination-focus-color: #f5f8fa;
|
|
6
|
+
--pagination-disabled-background-color: #eef1f2;
|
|
7
|
+
--pagination-disabled-color: rgba(0, 0, 0, 0.1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
html[data-theme="dark"] {
|
|
11
|
+
--pagination-hover-color: #5b5c6b;
|
|
12
|
+
--pagination-hover-background-color: #5b5c6b;
|
|
13
|
+
--pagination-arrow-color: #ffffff;
|
|
14
|
+
--pagination-focus-color: #adaab3;
|
|
15
|
+
--pagination-disabled-background-color: #5b5c6b;
|
|
16
|
+
--pagination-disabled-color: rgba(255, 255, 255, 0.1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
$pagination-hover-color: var(--pagination-hover-color);
|
|
20
|
+
$pagination-hover-background-color: var(--pagination-hover-background-color);
|
|
21
|
+
$pagination-arrow-color: var(--pagination-arrow-color);
|
|
22
|
+
$pagination-focus-color: var(--pagination-focus-color);
|
|
23
|
+
$pagination-disabled-background-color: var(--pagination-disabled-background-color);
|
|
24
|
+
$pagination-disabled-color: var(--pagination-disabled-color);
|
|
25
|
+
|
|
1
26
|
.PaginationButtonView {
|
|
2
|
-
|
|
27
|
+
$root: &;
|
|
28
|
+
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-flow: row nowrap;
|
|
31
|
+
color: $text-color;
|
|
32
|
+
|
|
33
|
+
&_size {
|
|
34
|
+
&_lg {
|
|
35
|
+
#{$root}__page {
|
|
36
|
+
&-button {
|
|
37
|
+
padding: 12px 18px;
|
|
38
|
+
font-size: $font-size-lg;
|
|
39
|
+
line-height: 24px;
|
|
40
|
+
|
|
41
|
+
&_hasIcon {
|
|
42
|
+
padding: 12px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&_rounding-left {
|
|
47
|
+
border-top-left-radius: 12px;
|
|
48
|
+
border-bottom-left-radius: 12px;
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
border-top-left-radius: 14px;
|
|
52
|
+
border-bottom-left-radius: 14px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&_rounding-right {
|
|
57
|
+
border-top-right-radius: 12px;
|
|
58
|
+
border-bottom-right-radius: 12px;
|
|
59
|
+
|
|
60
|
+
&::before {
|
|
61
|
+
border-top-right-radius: 14px;
|
|
62
|
+
border-bottom-right-radius: 14px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&::before {
|
|
67
|
+
transform: translate(-4px, -4px);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
&_md {
|
|
72
|
+
#{$root}__page {
|
|
73
|
+
&-button {
|
|
74
|
+
padding: 8px 14px;
|
|
75
|
+
font-size: $font-size-base;
|
|
76
|
+
line-height: 24px;
|
|
77
|
+
|
|
78
|
+
&_hasIcon {
|
|
79
|
+
padding: 8px 11px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&_rounding-left {
|
|
84
|
+
border-top-left-radius: 12px;
|
|
85
|
+
border-bottom-left-radius: 12px;
|
|
86
|
+
|
|
87
|
+
&::before {
|
|
88
|
+
border-top-left-radius: 14px;
|
|
89
|
+
border-bottom-left-radius: 14px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&_rounding-right {
|
|
94
|
+
border-top-right-radius: 12px;
|
|
95
|
+
border-bottom-right-radius: 12px;
|
|
96
|
+
|
|
97
|
+
&::before {
|
|
98
|
+
border-top-right-radius: 14px;
|
|
99
|
+
border-bottom-right-radius: 14px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&::before {
|
|
104
|
+
transform: translate(-4px, -4px);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
&_sm {
|
|
109
|
+
#{$root}__page {
|
|
110
|
+
&-button {
|
|
111
|
+
padding: 4px 12px;
|
|
112
|
+
font-size: $font-size-sm;
|
|
113
|
+
line-height: 25px;
|
|
114
|
+
|
|
115
|
+
&_hasIcon {
|
|
116
|
+
padding: 4px 7px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&_rounding-left {
|
|
121
|
+
border-top-left-radius: 8px;
|
|
122
|
+
border-bottom-left-radius: 8px;
|
|
123
|
+
|
|
124
|
+
&::before {
|
|
125
|
+
border-top-left-radius: 10px;
|
|
126
|
+
border-bottom-left-radius: 10px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&_rounding-right {
|
|
131
|
+
border-top-right-radius: 8px;
|
|
132
|
+
border-bottom-right-radius: 8px;
|
|
133
|
+
|
|
134
|
+
&::before {
|
|
135
|
+
border-top-right-radius: 10px;
|
|
136
|
+
border-bottom-right-radius: 10px;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&::before {
|
|
141
|
+
transform: translate(-4px, -4px);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&__page {
|
|
148
|
+
position: relative;
|
|
149
|
+
$pageRoot: &;
|
|
150
|
+
|
|
151
|
+
display: inline-block;
|
|
152
|
+
cursor: pointer;
|
|
153
|
+
|
|
154
|
+
background-color: $element-background-color;
|
|
155
|
+
border: 1px solid $border-color;
|
|
156
|
+
border-right: none;
|
|
157
|
+
|
|
158
|
+
&::before {
|
|
159
|
+
position: absolute;
|
|
160
|
+
z-index: 2;
|
|
161
|
+
content: "";
|
|
162
|
+
top: 0;
|
|
163
|
+
left: 0;
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: 100%;
|
|
166
|
+
pointer-events: none;
|
|
167
|
+
border-radius: inherit;
|
|
168
|
+
border: 4px solid $pagination-focus-color;
|
|
169
|
+
opacity: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&:last-child {
|
|
173
|
+
border: 1px solid $border-color;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&_active {
|
|
177
|
+
background-color: $primary;
|
|
178
|
+
color: $white;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&_hasIcon:not(#{$pageRoot}_disabled):active {
|
|
182
|
+
background-color: $primary;
|
|
183
|
+
|
|
184
|
+
#{$pageRoot}-icon {
|
|
185
|
+
path {
|
|
186
|
+
stroke: #ffffff;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&:not(#{$pageRoot}_disabled):not(#{$pageRoot}_active):hover {
|
|
192
|
+
border-color: $pagination-hover-color;
|
|
193
|
+
background-color: $pagination-hover-background-color;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&:not(#{$pageRoot}_disabled):focus-within::before {
|
|
197
|
+
opacity: 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&_rounding {
|
|
201
|
+
&-left {
|
|
202
|
+
border-top-left-radius: 10px;
|
|
203
|
+
border-bottom-left-radius: 10px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&-right {
|
|
207
|
+
border-top-right-radius: 10px;
|
|
208
|
+
border-bottom-right-radius: 10px;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&-button {
|
|
213
|
+
cursor: pointer;
|
|
214
|
+
width: 100%;
|
|
215
|
+
height: 100%;
|
|
216
|
+
border: none;
|
|
217
|
+
background: none;
|
|
218
|
+
color: inherit;
|
|
219
|
+
user-select: none;
|
|
220
|
+
outline: none;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&-icon {
|
|
224
|
+
display: inline-block;
|
|
225
|
+
width: 24px;
|
|
226
|
+
height: 24px;
|
|
227
|
+
pointer-events: none;
|
|
228
|
+
|
|
229
|
+
display: flex;
|
|
230
|
+
justify-content: center;
|
|
231
|
+
align-items: center;
|
|
232
|
+
|
|
233
|
+
path {
|
|
234
|
+
stroke: $pagination-arrow-color;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&_rotate {
|
|
238
|
+
transform: rotate(180deg);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&_disabled {
|
|
243
|
+
background-color: $pagination-disabled-background-color;
|
|
244
|
+
color: $pagination-disabled-color;
|
|
245
|
+
cursor: not-allowed;
|
|
246
|
+
|
|
247
|
+
button {
|
|
248
|
+
cursor: not-allowed;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
#{$pageRoot}-icon {
|
|
252
|
+
pointer-events: none;
|
|
253
|
+
path {
|
|
254
|
+
stroke: $pagination-disabled-color;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
@@ -42,7 +42,7 @@ var Button_1 = __importDefault(require("@steroidsjs/core/ui/form/Button"));
|
|
|
42
42
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
43
43
|
function PaginationMoreView(props) {
|
|
44
44
|
var bem = (0, hooks_1.useBem)('PaginationMoreView');
|
|
45
|
-
return (React.createElement("div", { className: bem(
|
|
45
|
+
return (React.createElement("div", { className: bem(bem.block(), props.className) },
|
|
46
46
|
React.createElement(Button_1["default"], __assign({ color: 'secondary', outline: true, label: __('Загрузить еще...') }, props.buttonProps, { onClick: props.onSelectNext }))));
|
|
47
47
|
}
|
|
48
48
|
exports["default"] = PaginationMoreView;
|
|
@@ -29,14 +29,22 @@ exports.__esModule = true;
|
|
|
29
29
|
var React = __importStar(require("react"));
|
|
30
30
|
var Link_1 = __importDefault(require("@steroidsjs/core/ui/nav/Link"));
|
|
31
31
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
32
|
+
var content_1 = require("@steroidsjs/core/ui/content");
|
|
33
|
+
var renderIcon_1 = __importDefault(require("../../utils/renderIcon"));
|
|
32
34
|
function BreadcrumbsView(props) {
|
|
33
35
|
var bem = (0, hooks_1.useBem)('BreadcrumbsView');
|
|
34
36
|
var items = props.items || [];
|
|
37
|
+
var renderLink = React.useCallback(function (item, children) { return (React.createElement(Link_1["default"], { toRoute: item.id, toRouteParams: props.routeParams, href: item.id }, children)); }, [props.routeParams]);
|
|
38
|
+
var renderHomeIcon = React.useCallback(function () { return (props.customIcon
|
|
39
|
+
? (0, renderIcon_1["default"])(props.customIcon, { className: bem.element('custom-icon') })
|
|
40
|
+
: (React.createElement(content_1.Icon, { name: 'home', className: bem.element('icon') }))); }, [bem, props.customIcon]);
|
|
35
41
|
return (React.createElement("nav", { className: bem(bem.block(), props.className), "aria-label": 'breadcrumb' },
|
|
36
42
|
React.createElement("ol", { className: bem.element('list') }, items.map(function (item, index) {
|
|
37
43
|
var isLastItem = items.length === index + 1;
|
|
44
|
+
var isFirstItem = index === 0;
|
|
38
45
|
return (React.createElement("li", { key: item.id || index, className: bem.element('item') },
|
|
39
|
-
|
|
46
|
+
isFirstItem && item.id && renderLink(item, props.showIcon ? renderHomeIcon() : item.title),
|
|
47
|
+
!isFirstItem && !isLastItem && item.id && renderLink(item, item.title),
|
|
40
48
|
(isLastItem || !item.id) && (React.createElement("span", null, props.pageTitle || item.title))));
|
|
41
49
|
}))));
|
|
42
50
|
}
|
|
@@ -1,6 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--last-link-color: rgba(0, 0, 0, 0.3);;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--last-link-color: rgba(255, 255, 255, 0.3);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
$last-link-color: var(--last-link-color);
|
|
12
|
+
|
|
1
13
|
.BreadcrumbsView {
|
|
2
14
|
$breadcrumb-item-separator: '/';
|
|
3
15
|
|
|
16
|
+
&__custom-icon {
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__icon {
|
|
21
|
+
display: flex;
|
|
22
|
+
|
|
23
|
+
svg {
|
|
24
|
+
stroke: $link-color;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
svg:hover {
|
|
28
|
+
stroke: $link-color-hover;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
svg path {
|
|
32
|
+
stroke:inherit;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
4
36
|
&__list {
|
|
5
37
|
display: flex;
|
|
6
38
|
flex-wrap: wrap;
|
|
@@ -8,11 +40,30 @@
|
|
|
8
40
|
padding: 0;
|
|
9
41
|
}
|
|
10
42
|
|
|
43
|
+
&__list {
|
|
44
|
+
li:last-child span{
|
|
45
|
+
color: $last-link-color;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
11
49
|
&__item {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
|
|
12
53
|
&:not(:first-child)::before {
|
|
13
54
|
content: $breadcrumb-item-separator;
|
|
14
55
|
display: inline-block;
|
|
15
56
|
margin: 0 8px;
|
|
57
|
+
color: $link-color;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
span {
|
|
61
|
+
line-height: 24px;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
span:hover {
|
|
66
|
+
color: $link-color-hover;
|
|
16
67
|
}
|
|
17
68
|
}
|
|
18
69
|
}
|
package/nav/Nav/NavIconView.js
CHANGED
|
@@ -43,7 +43,7 @@ var hooks_1 = require("@steroidsjs/core/hooks");
|
|
|
43
43
|
function NavIconView(props) {
|
|
44
44
|
var bem = (0, hooks_1.useBem)('NavIconView');
|
|
45
45
|
return (React.createElement("div", { className: bem(bem.block(), props.className) },
|
|
46
|
-
props.items.map(function (item, index) { return (React.createElement(Button_1["default"], __assign({ icon: props.icon ? props.icon : 'circle-notch', key: item.id || index, link: true, onClick: function () { return props.onClick(item, index); }
|
|
46
|
+
props.items.map(function (item, index) { return (React.createElement(Button_1["default"], __assign({ icon: props.icon ? props.icon : 'circle-notch', key: item.id || index, link: true, onClick: function () { return props.onClick(item, index); } }, item, { label: null, hint: item.hint || item.label || null }))); }),
|
|
47
47
|
props.children));
|
|
48
48
|
}
|
|
49
49
|
exports["default"] = NavIconView;
|
package/nav/Nav/NavListView.js
CHANGED
|
@@ -47,7 +47,7 @@ function NavListView(props) {
|
|
|
47
47
|
return null;
|
|
48
48
|
}
|
|
49
49
|
return items.map(function (item, index) { return (React.createElement("li", { key: index, className: bem('nav-item', bem.element('item'), props.navClassName) },
|
|
50
|
-
React.createElement(Link_1["default"], __assign({ onClick: function () { return props.onClick(item, index); }
|
|
50
|
+
React.createElement(Link_1["default"], __assign({ onClick: function () { return props.onClick(item, index); } }, item, { key: item.id || index, className: bem(item.isActive && 'active', bem.element('item-link'), item.className) })),
|
|
51
51
|
item.items && item.items.length > 0 && (React.createElement("ul", { className: bem('nav flex-column', bem.element('sub-list')) }, renderItems(item.items))))); });
|
|
52
52
|
};
|
|
53
53
|
return (React.createElement("ul", { className: bem('nav flex-column', bem.block(), props.className) },
|
package/nav/Nav/NavTabsView.js
CHANGED
|
@@ -44,7 +44,7 @@ function NavTabsView(props) {
|
|
|
44
44
|
var bem = (0, hooks_1.useBem)('NavTabsView');
|
|
45
45
|
return (React.createElement("div", { className: bem(bem.block(), props.className) },
|
|
46
46
|
React.createElement("div", { className: bem('nav nav-tabs', !props.children && 'mb-3') }, props.items.map(function (item, index) { return (React.createElement("li", { key: item.id || index, className: 'nav-item' },
|
|
47
|
-
React.createElement(Button_1["default"], __assign({ link: true, onClick: function () { return props.onClick(item, index); }
|
|
47
|
+
React.createElement(Button_1["default"], __assign({ link: true, onClick: function () { return props.onClick(item, index); } }, item, { className: bem('nav-link', item.isActive && 'active', item.className) })))); })),
|
|
48
48
|
props.children));
|
|
49
49
|
}
|
|
50
50
|
exports["default"] = NavTabsView;
|
package/nav/Tree/TreeView.scss
CHANGED
|
@@ -17,22 +17,26 @@
|
|
|
17
17
|
padding: 5px 10px;
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: row;
|
|
20
|
-
|
|
21
|
-
background-color: $
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
background-color: $background-color;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
color: $
|
|
25
|
-
background-color: $list-group-hover-bg;
|
|
23
|
+
.ButtonView__label {
|
|
24
|
+
color: $text-color;
|
|
26
25
|
}
|
|
27
26
|
|
|
27
|
+
// &:hover {
|
|
28
|
+
// color: $list-group-action-hover-color;
|
|
29
|
+
// background-color: $list-group-hover-bg;
|
|
30
|
+
// }
|
|
31
|
+
|
|
28
32
|
&, &:hover {
|
|
29
33
|
text-decoration: none !important;
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
36
|
&__item_selected &__item-label {
|
|
33
|
-
background-color: $
|
|
37
|
+
background-color: $secondary;
|
|
34
38
|
&, &::before {
|
|
35
|
-
color: $
|
|
39
|
+
color: $text-color;
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
&__item-label::before {
|
|
@@ -43,11 +47,10 @@
|
|
|
43
47
|
height: 20px;
|
|
44
48
|
font-size: 12px;
|
|
45
49
|
font-weight: bold;
|
|
46
|
-
font-family: $font-family-monospace;
|
|
47
50
|
margin-left: 10px;
|
|
48
|
-
color: $
|
|
51
|
+
color: $text-color;
|
|
49
52
|
position: relative;
|
|
50
|
-
top:
|
|
53
|
+
top: 1px;
|
|
51
54
|
left: 3px;
|
|
52
55
|
}
|
|
53
56
|
&__item_has-items &__item-label::before {
|
|
@@ -55,7 +58,7 @@
|
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
&__item_opened &__item-label::before {
|
|
58
|
-
top:
|
|
61
|
+
top: 7px;
|
|
59
62
|
left: -4px;
|
|
60
63
|
transform: rotate(90deg);
|
|
61
64
|
}
|
package/package.json
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
2
|
+
"name": "@steroidsjs/bootstrap",
|
|
3
|
+
"version": "3.0.0-beta.40",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"author": "Vladimir Kozhin <hello@kozhindev.com>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/steroids/react-bootstrap"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"lint": "eslint -c ./.eslintrc --ext .js,.jsx,.ts,.tsx ./src --quiet",
|
|
13
|
+
"build": "tsc && cp ./{package.json,LICENSE,README.md} dist && copyfiles -u 1 \"src/**/*.scss\" \"src/icons/svgs/*.svg\" dist"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"homepage": "https://github.com/steroids/react-bootstrap",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/steroids/react-bootstrap/issues"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@ckeditor/ckeditor5-react": "^3.0.2",
|
|
22
|
+
"@steroidsjs/ckeditor5": "^27.0.2-rc.2",
|
|
23
|
+
"date-fns": "^2.29.3",
|
|
24
|
+
"lodash": "^4.17.20",
|
|
25
|
+
"lodash-es": "^4.17.20",
|
|
26
|
+
"normalize.css": "^8.0.1",
|
|
27
|
+
"rc-slider": "^9.7.4",
|
|
28
|
+
"react": "^18.2.0",
|
|
29
|
+
"react-collapse": "^5.0.1",
|
|
30
|
+
"react-day-picker": "^7.4.10",
|
|
31
|
+
"react-dom": "^18.2.0",
|
|
32
|
+
"react-image-crop": "^9.0.2",
|
|
33
|
+
"react-modal": "^3.11.2",
|
|
34
|
+
"react-transition-group": "^2.9.0",
|
|
35
|
+
"react-use": "^17.4.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@steroidsjs/core": "^3.0 || >=3.0.0-beta.18",
|
|
39
|
+
"@steroidsjs/eslint-config": "^2.1.4",
|
|
40
|
+
"@types/enzyme": "^3.10.8",
|
|
41
|
+
"@types/googlemaps": "^3.43.3",
|
|
42
|
+
"@types/jest": "^26.0.22",
|
|
43
|
+
"@types/markdown-to-jsx": "^6.11.3",
|
|
44
|
+
"@types/node": "^14.14.37",
|
|
45
|
+
"@types/overlayscrollbars": "^1.12.0",
|
|
46
|
+
"@types/reach__router": "^1.3.7",
|
|
47
|
+
"@types/react": "^18.0.27",
|
|
48
|
+
"@types/react-color": "^3.0.4",
|
|
49
|
+
"@types/react-syntax-highlighter": "^13.5.0",
|
|
50
|
+
"@types/webpack-env": "^1.16.0",
|
|
51
|
+
"copyfiles": "^2.4.1",
|
|
52
|
+
"eslint": "^8.34.0",
|
|
53
|
+
"typescript": "^4.9.5"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@steroidsjs/core": "^3.0 || >=3.0.0-beta.18"
|
|
57
|
+
}
|
|
58
58
|
}
|