@steroidsjs/bootstrap 3.0.0-beta.93 → 3.0.0-beta.95
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.scss +1 -1
- package/content/Alert/AlertView.js +2 -2
- package/content/Alert/AlertView.scss +3 -0
- package/content/Calendar/CalendarView.js +2 -1
- package/content/Calendar/CalendarView.scss +22 -0
- package/content/Calendar/CaptionElement.scss +3 -2
- package/content/Detail/DetailView.scss +1 -1
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +2 -0
- package/form/CheckboxField/CheckboxFieldView.scss +1 -1
- package/form/DateField/DateFieldView.js +1 -1
- package/form/DateRangeField/DateRangeFieldView.scss +0 -1
- package/form/FieldList/FieldListView.scss +2 -0
- package/form/FileField/FileFieldView.scss +2 -1
- package/form/HtmlField/HtmlFieldView.scss +6 -6
- package/form/InputField/InputFieldView.scss +10 -0
- package/layout/Header/HeaderView.js +2 -2
- package/layout/Header/HeaderView.scss +2 -3
- package/layout/Notifications/NotificationsItemView.scss +57 -47
- package/layout/Notifications/NotificationsView.scss +1 -1
- package/list/Grid/GridView.scss +1 -0
- package/list/List/ListView.scss +1 -1
- package/list/Pagination/PaginationButtonView.scss +13 -1
- package/nav/Controls/ControlsView.js +1 -1
- package/nav/Controls/ControlsView.scss +2 -1
- package/nav/Nav/NavIconView.scss +1 -1
- package/package.json +1 -1
- package/scss/mixins/date.scss +3 -3
|
@@ -101,7 +101,7 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
101
101
|
|
|
102
102
|
background-color: $accordion-content-background;
|
|
103
103
|
height: 56px;
|
|
104
|
-
width:
|
|
104
|
+
width: 100%;
|
|
105
105
|
height: fit-content;
|
|
106
106
|
|
|
107
107
|
@each $theme, $themeProperties in $accordion-themes {
|
|
@@ -22,9 +22,9 @@ function Alert(props) {
|
|
|
22
22
|
react_1["default"].createElement("div", { className: bem.element('text-block') },
|
|
23
23
|
props.message && (react_1["default"].createElement("div", { className: bem.element('message') }, props.message)),
|
|
24
24
|
props.description && (react_1["default"].createElement("div", { className: bem.element('description') }, props.description))),
|
|
25
|
-
|
|
25
|
+
props.showClose && (react_1["default"].createElement(Icon_1["default"], { className: bem.element('icon-close', {
|
|
26
26
|
large: !!props.description
|
|
27
|
-
}), name: 'circle_cross_16x16', onClick: props.onClose })))
|
|
27
|
+
}), name: 'circle_cross_16x16', onClick: props.onClose }))),
|
|
28
28
|
props.children || null))));
|
|
29
29
|
}
|
|
30
30
|
exports["default"] = Alert;
|
|
@@ -68,6 +68,7 @@ $alert-themes: map.merge(
|
|
|
68
68
|
&__icon {
|
|
69
69
|
width: 24px;
|
|
70
70
|
height: 24px;
|
|
71
|
+
min-width: 24px;
|
|
71
72
|
margin-right: 12px;
|
|
72
73
|
|
|
73
74
|
svg {
|
|
@@ -79,6 +80,7 @@ $alert-themes: map.merge(
|
|
|
79
80
|
display: inline-block;
|
|
80
81
|
width: 24px;
|
|
81
82
|
height: 24px;
|
|
83
|
+
min-width: 24px;
|
|
82
84
|
|
|
83
85
|
display: flex;
|
|
84
86
|
justify-content: center;
|
|
@@ -121,6 +123,7 @@ $alert-themes: map.merge(
|
|
|
121
123
|
width: 100%;
|
|
122
124
|
display: flex;
|
|
123
125
|
flex-direction: row;
|
|
126
|
+
align-items: flex-start;
|
|
124
127
|
}
|
|
125
128
|
|
|
126
129
|
&__description {
|
|
@@ -45,6 +45,7 @@ var react_day_picker_1 = __importStar(require("react-day-picker"));
|
|
|
45
45
|
var CaptionElement_1 = __importDefault(require("./CaptionElement"));
|
|
46
46
|
function CalendarView(props) {
|
|
47
47
|
var bem = (0, hooks_1.useBem)('CalendarView');
|
|
48
|
+
var locale = (0, hooks_1.useComponents)().locale;
|
|
48
49
|
var month = props.month, toYear = props.toYear, fromYear = props.fromYear, showFooter = props.showFooter, onDaySelect = props.onDaySelect, selectedDates = props.selectedDates, onMonthSelect = props.onMonthSelect, numberOfMonths = props.numberOfMonths, toggleCaptionPanel = props.toggleCaptionPanel, isCaptionPanelVisible = props.isCaptionPanelVisible;
|
|
49
50
|
var isRange = !!selectedDates[0] && !!selectedDates[1];
|
|
50
51
|
var _a = (0, react_1.useMemo)(function () {
|
|
@@ -78,6 +79,6 @@ function CalendarView(props) {
|
|
|
78
79
|
else {
|
|
79
80
|
onDaySelect(day);
|
|
80
81
|
}
|
|
81
|
-
}, fixedWeeks: true, month: month, firstDayOfWeek: 1, modifiers: modifiers, canChangeMonth: false, onDayClick: onDaySelect, selectedDays: selectedDays, numberOfMonths: numberOfMonths, localeUtils: moment_1["default"], locale:
|
|
82
|
+
}, fixedWeeks: true, month: month, firstDayOfWeek: 1, modifiers: modifiers, canChangeMonth: false, onDayClick: onDaySelect, selectedDays: selectedDays, numberOfMonths: numberOfMonths, localeUtils: moment_1["default"], locale: locale.language })));
|
|
82
83
|
}
|
|
83
84
|
exports["default"] = CalendarView;
|
|
@@ -47,8 +47,19 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.DayPicker-WeekdaysRow {
|
|
50
|
+
width: 100%;
|
|
50
51
|
display: inline-flex;
|
|
51
52
|
column-gap: 16px;
|
|
53
|
+
|
|
54
|
+
@media (max-width: 392px) {
|
|
55
|
+
column-gap: 10px;
|
|
56
|
+
}
|
|
57
|
+
@media (max-width: 370px) {
|
|
58
|
+
column-gap: 6px;
|
|
59
|
+
}
|
|
60
|
+
@media (max-width: 334px) {
|
|
61
|
+
column-gap: 4px;
|
|
62
|
+
}
|
|
52
63
|
}
|
|
53
64
|
|
|
54
65
|
.DayPicker-Weekday {
|
|
@@ -83,6 +94,16 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
83
94
|
width: 100%;
|
|
84
95
|
column-gap: 16px;
|
|
85
96
|
|
|
97
|
+
@media (max-width: 392px) {
|
|
98
|
+
column-gap: 10px;
|
|
99
|
+
}
|
|
100
|
+
@media (max-width: 370px) {
|
|
101
|
+
column-gap: 6px;
|
|
102
|
+
}
|
|
103
|
+
@media (max-width: 334px) {
|
|
104
|
+
column-gap: 4px;
|
|
105
|
+
}
|
|
106
|
+
|
|
86
107
|
&--disabled {
|
|
87
108
|
pointer-events: none;
|
|
88
109
|
opacity: 0.5;
|
|
@@ -91,6 +112,7 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
91
112
|
|
|
92
113
|
.DayPicker-Day {
|
|
93
114
|
position: relative;
|
|
115
|
+
flex-shrink: 0;
|
|
94
116
|
padding: 0;
|
|
95
117
|
border-radius: variables.$radius-large;
|
|
96
118
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use "../../scss/variables";
|
|
2
|
-
@use
|
|
2
|
+
@use "../../scss/mixins";
|
|
3
3
|
|
|
4
4
|
:root {
|
|
5
5
|
--caption-arrow-background-color: #f1f5f7;
|
|
@@ -123,6 +123,7 @@ $separator-background-color: var(--separator-background-color);
|
|
|
123
123
|
font-weight: variables.$font-weight-lg;
|
|
124
124
|
|
|
125
125
|
&_months {
|
|
126
|
+
height: 32px;
|
|
126
127
|
position: relative;
|
|
127
128
|
grid-area: HeaderMonths;
|
|
128
129
|
border-radius: 8px 0px 0px 8px;
|
|
@@ -167,7 +168,7 @@ $separator-background-color: var(--separator-background-color);
|
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
&__panel-cell {
|
|
170
|
-
&:first-child{
|
|
171
|
+
&:first-child {
|
|
171
172
|
margin-top: 10px;
|
|
172
173
|
}
|
|
173
174
|
display: block;
|
|
@@ -59,6 +59,7 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
59
59
|
|
|
60
60
|
&__item {
|
|
61
61
|
width: 100%;
|
|
62
|
+
flex-shrink: 0;
|
|
62
63
|
background-color: variables.$element-background-color;
|
|
63
64
|
outline: none;
|
|
64
65
|
border: none;
|
|
@@ -107,6 +108,7 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
107
108
|
&__category {
|
|
108
109
|
background-color: variables.$element-background-color;
|
|
109
110
|
width: 100%;
|
|
111
|
+
flex-shrink: 0;
|
|
110
112
|
|
|
111
113
|
&__label {
|
|
112
114
|
display: block;
|
|
@@ -46,7 +46,7 @@ var Calendar_1 = __importDefault(require("@steroidsjs/core/ui/content/Calendar")
|
|
|
46
46
|
function DateFieldView(props) {
|
|
47
47
|
var bem = (0, hooks_1.useBem)('DateFieldView');
|
|
48
48
|
var renderCalendar = (0, react_1.useCallback)(function () { return (React.createElement(Calendar_1["default"], __assign({}, props.calendarProps))); }, [props.calendarProps]);
|
|
49
|
-
return (React.createElement(DropDown_1["default"], { content: renderCalendar, position:
|
|
49
|
+
return (React.createElement(DropDown_1["default"], { content: renderCalendar, position: "bottom", visible: props.isOpened, onClose: props.onClose, className: bem.element('dropdown'), hasArrow: false },
|
|
50
50
|
React.createElement("div", { className: bem(bem.block({
|
|
51
51
|
size: props.size,
|
|
52
52
|
disabled: props.disabled,
|
|
@@ -15,6 +15,7 @@ $background-th: var(--background-th);
|
|
|
15
15
|
$background-td-alternating: var(--background-td-alternating);
|
|
16
16
|
|
|
17
17
|
.FieldListView {
|
|
18
|
+
overflow-x: auto;
|
|
18
19
|
table {
|
|
19
20
|
width: 100%;
|
|
20
21
|
background-color: transparent;
|
|
@@ -61,6 +62,7 @@ $background-td-alternating: var(--background-td-alternating);
|
|
|
61
62
|
|
|
62
63
|
td {
|
|
63
64
|
background: variables.$element-background-color;
|
|
65
|
+
overflow: hidden;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
&_hasAlternatingColors {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.HtmlFieldView {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
2
|
+
--ck-color-toolbar-background: #f1f5f7;
|
|
3
|
+
--ck-color-toolbar-border: #dbe2e6;
|
|
4
|
+
--ck-color-base-border: #dbe2e6;
|
|
5
|
+
--ck-border-radius: 12px;
|
|
6
|
+
|
|
7
|
+
}
|
|
@@ -50,6 +50,10 @@ $lead-icon-disabled-color: var(--lead-icon-disabled-color);
|
|
|
50
50
|
border: 1px solid variables.$element-border-color;
|
|
51
51
|
border-radius: inherit;
|
|
52
52
|
|
|
53
|
+
white-space: nowrap; /* Запретить перенос текста */
|
|
54
|
+
overflow: hidden; /* Скрыть содержимое, выходящее за границы ячейки */
|
|
55
|
+
text-overflow: ellipsis; /* Добавить многоточие, если текст обрезается */
|
|
56
|
+
|
|
53
57
|
&::placeholder {
|
|
54
58
|
color: variables.$element-placeholder-color;
|
|
55
59
|
font-size: inherit;
|
|
@@ -283,8 +287,14 @@ $lead-icon-disabled-color: var(--lead-icon-disabled-color);
|
|
|
283
287
|
}
|
|
284
288
|
}
|
|
285
289
|
|
|
290
|
+
&__text-before,
|
|
291
|
+
&__text-after {
|
|
292
|
+
flex-shrink: 0;
|
|
293
|
+
}
|
|
294
|
+
|
|
286
295
|
&__addon-before,
|
|
287
296
|
&__addon-after {
|
|
297
|
+
flex-shrink: 0;
|
|
288
298
|
padding: 11px 12px;
|
|
289
299
|
background-color: variables.$element-background-color-disabled;
|
|
290
300
|
color: variables.$text-color;
|
|
@@ -83,9 +83,9 @@ function HeaderView(props) {
|
|
|
83
83
|
})),
|
|
84
84
|
React.createElement("span", { className: bem.element('logo-title') }, props.logo.title || ''))),
|
|
85
85
|
props.nav && (React.createElement(Nav_1["default"], __assign({ size: props.size, layout: 'navbar', className: bem.element('nav') }, props.nav))),
|
|
86
|
-
React.createElement("div", { className: bem.element('interaction') },
|
|
86
|
+
(props.burgerMenu || props.authParams || props.user) && (React.createElement("div", { className: bem.element('interaction') },
|
|
87
87
|
((_e = props === null || props === void 0 ? void 0 : props.authParams) === null || _e === void 0 ? void 0 : _e.isAuth) ? renderAuthBlock() : renderUserBlock(),
|
|
88
|
-
props.burgerMenu && renderBurger()),
|
|
88
|
+
props.burgerMenu && renderBurger())),
|
|
89
89
|
props.children));
|
|
90
90
|
}
|
|
91
91
|
exports["default"] = HeaderView;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
@use "../../scss/variables";
|
|
2
2
|
|
|
3
3
|
.HeaderView {
|
|
4
|
-
width:
|
|
4
|
+
width: 100%;
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
|
+
justify-content: space-between;
|
|
7
8
|
background-color: variables.$element-background-color;
|
|
8
9
|
border-bottom: 1px solid variables.$element-placeholder-color-disabled;
|
|
9
10
|
position: relative;
|
|
@@ -21,7 +22,6 @@
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
&__logo {
|
|
24
|
-
margin-right: 136px;
|
|
25
25
|
|
|
26
26
|
.ButtonView__text {
|
|
27
27
|
display: flex;
|
|
@@ -134,7 +134,6 @@
|
|
|
134
134
|
display: flex;
|
|
135
135
|
flex-flow: row nowrap;
|
|
136
136
|
align-items: center;
|
|
137
|
-
margin-left: auto;
|
|
138
137
|
column-gap: 16px;
|
|
139
138
|
}
|
|
140
139
|
}
|
|
@@ -1,56 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
@use "style/variables";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
.NotificationsItemView {
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
max-height: 120px;
|
|
6
|
+
padding: 0;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
border-width: 0;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
transition:
|
|
11
|
+
opacity 0.6s,
|
|
12
|
+
transform 0.4s,
|
|
13
|
+
max-height 0.6s 0.4s,
|
|
14
|
+
margin 0.6s 0.6s;
|
|
15
|
+
// Styles for React-Transition-Groups
|
|
16
|
+
////////////////////////////////////////
|
|
17
|
+
///
|
|
13
18
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
// Opacity + Size
|
|
20
|
+
&_top-right,
|
|
21
|
+
&_bottom-right,
|
|
22
|
+
&_top-left,
|
|
23
|
+
&_bottom-left {
|
|
24
|
+
&-enter {
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
&-enter-active {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
}
|
|
30
|
+
&-exit {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
}
|
|
33
|
+
&-exit-active {
|
|
34
|
+
opacity: 0;
|
|
35
|
+
max-height: 0;
|
|
36
|
+
margin: 0;
|
|
37
|
+
}
|
|
24
38
|
}
|
|
25
|
-
&-exit-active {
|
|
26
|
-
opacity: 0;
|
|
27
|
-
max-height: 0;
|
|
28
|
-
margin: 0;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Transform-Translate
|
|
33
|
-
&_top-right,&_bottom-right{
|
|
34
|
-
&-enter {
|
|
35
|
-
transform: translateX(450px);
|
|
36
|
-
}
|
|
37
|
-
&-enter-active {
|
|
38
|
-
transform: translateX(0px);
|
|
39
|
-
}
|
|
40
|
-
&-exit-active {
|
|
41
|
-
transform: translateX(450px);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
39
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
// Transform-Translate
|
|
41
|
+
&_top-right,
|
|
42
|
+
&_bottom-right {
|
|
43
|
+
&-enter {
|
|
44
|
+
transform: translateX(450px);
|
|
45
|
+
}
|
|
46
|
+
&-enter-active {
|
|
47
|
+
transform: translateX(0px);
|
|
48
|
+
}
|
|
49
|
+
&-exit-active {
|
|
50
|
+
transform: translateX(450px);
|
|
51
|
+
}
|
|
48
52
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
|
|
54
|
+
&_top-left,
|
|
55
|
+
&_bottom-left {
|
|
56
|
+
&-enter {
|
|
57
|
+
transform: translateX(-450px);
|
|
58
|
+
}
|
|
59
|
+
&-enter-active {
|
|
60
|
+
transform: translateX(0px);
|
|
61
|
+
}
|
|
62
|
+
&-exit-active {
|
|
63
|
+
transform: translateX(-450px);
|
|
64
|
+
}
|
|
54
65
|
}
|
|
55
|
-
}
|
|
56
66
|
}
|
package/list/Grid/GridView.scss
CHANGED
package/list/List/ListView.scss
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
--pagination-hover-background-color: $white;
|
|
6
6
|
|
|
7
7
|
--pagination-arrow-color: #323232;
|
|
8
|
-
--pagination-background-color-disabled: #
|
|
8
|
+
--pagination-background-color-disabled: #f1f5f7;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
html[data-theme="dark"] {
|
|
@@ -38,6 +38,14 @@ $pagination-background-color-disabled: var(--pagination-background-color-disable
|
|
|
38
38
|
font-size: variables.$font-size-lg;
|
|
39
39
|
line-height: 24px;
|
|
40
40
|
|
|
41
|
+
@media (max-width: 460px) {
|
|
42
|
+
padding: 10px 12px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media (max-width: 372px) {
|
|
46
|
+
padding: 10px 6px;
|
|
47
|
+
}
|
|
48
|
+
|
|
41
49
|
&_hasIcon {
|
|
42
50
|
padding: 12px;
|
|
43
51
|
}
|
|
@@ -76,6 +84,10 @@ $pagination-background-color-disabled: var(--pagination-background-color-disable
|
|
|
76
84
|
font-size: variables.$font-size-base;
|
|
77
85
|
line-height: 24px;
|
|
78
86
|
|
|
87
|
+
@media (max-width: 428px) {
|
|
88
|
+
padding: 8px;
|
|
89
|
+
}
|
|
90
|
+
|
|
79
91
|
&_hasIcon {
|
|
80
92
|
padding: 8px 11px;
|
|
81
93
|
}
|
|
@@ -41,13 +41,13 @@ var React = __importStar(require("react"));
|
|
|
41
41
|
var Nav_1 = __importDefault(require("@steroidsjs/core/ui/nav/Nav"));
|
|
42
42
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
43
43
|
function ControlsView(props) {
|
|
44
|
+
var bem = (0, hooks_1.useBem)('ControlsView');
|
|
44
45
|
var renderControls = function (items) {
|
|
45
46
|
if (items.length === 0) {
|
|
46
47
|
return null;
|
|
47
48
|
}
|
|
48
49
|
return (React.createElement(Nav_1["default"], __assign({ layout: 'button' }, props.navProps, { items: items })));
|
|
49
50
|
};
|
|
50
|
-
var bem = (0, hooks_1.useBem)('ControlsView');
|
|
51
51
|
return (React.createElement("div", { className: bem(bem.block(), props.className) },
|
|
52
52
|
renderControls(props.items.filter(function (item) { return item.position !== 'right'; })),
|
|
53
53
|
renderControls(props.items.filter(function (item) { return item.position === 'right'; }))));
|
package/nav/Nav/NavIconView.scss
CHANGED
package/package.json
CHANGED
package/scss/mixins/date.scss
CHANGED
|
@@ -28,21 +28,21 @@ $date-sizes: map.merge(
|
|
|
28
28
|
"radius": variables.$radius-large,
|
|
29
29
|
"font-size": variables.$font-size-lg,
|
|
30
30
|
"height": 56px,
|
|
31
|
-
"first-input-width":
|
|
31
|
+
"first-input-width": 200px,
|
|
32
32
|
),
|
|
33
33
|
"md": (
|
|
34
34
|
"padding": 11px 8px,
|
|
35
35
|
"radius": variables.$radius-large,
|
|
36
36
|
"font-size": variables.$font-size-base,
|
|
37
37
|
"height": 46px,
|
|
38
|
-
"first-input-width":
|
|
38
|
+
"first-input-width": 168px,
|
|
39
39
|
),
|
|
40
40
|
"sm": (
|
|
41
41
|
"padding": 5px 8px,
|
|
42
42
|
"radius": variables.$radius-small,
|
|
43
43
|
"font-size": variables.$font-size-sm,
|
|
44
44
|
"height": 34px,
|
|
45
|
-
"first-input-width":
|
|
45
|
+
"first-input-width": 142px,
|
|
46
46
|
),
|
|
47
47
|
),
|
|
48
48
|
$date-sizes
|