@steroidsjs/bootstrap 3.0.0-beta.3 → 3.0.0-beta.31
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/Accordion/AccordionItemView.js +96 -0
- 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 +29 -36
- 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 +34 -14
- package/content/Card/CardView.scss +126 -110
- 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 +157 -71
- package/form/CheckboxField/CheckboxFieldView.js +6 -3
- package/form/CheckboxField/CheckboxFieldView.scss +185 -36
- package/form/DropDownField/DropDownFieldView.js +46 -47
- package/form/DropDownField/DropDownFieldView.scss +391 -181
- package/form/DropDownField/views/DropDownItem/DropDownItemView.d.ts +3 -0
- package/form/DropDownField/views/DropDownItem/DropDownItemView.js +80 -0
- package/form/DropDownField/views/DropDownItem/DropDownItemView.scss +217 -0
- package/form/DropDownField/views/DropDownItem/index.d.ts +2 -0
- package/form/DropDownField/views/DropDownItem/index.js +7 -0
- package/form/FieldLayout/FieldLayoutView.js +12 -4
- package/form/FieldLayout/FieldLayoutView.scss +128 -24
- package/form/Form/FormView.js +3 -3
- package/form/Form/FormView.scss +10 -14
- package/form/InputField/InputFieldView.js +32 -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/RadioListField/RadioListFieldView.js +10 -3
- package/form/RadioListField/RadioListFieldView.scss +229 -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} +37 -11
- package/icons/svgs/accordion-chevron.svg +4 -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/error.svg +12 -0
- package/icons/svgs/field-close.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 +6 -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.scss +28 -30
- package/nav/Tree/TreeView.scss +14 -11
- package/package.json +56 -56
- package/scss/fonts.scss +6 -0
- package/scss/mixins/button.scss +51 -25
- 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 +87 -67
- 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 +21 -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/content/Collapse/CollapseItemView.d.ts +0 -2
- package/content/Collapse/CollapseItemView.js +0 -65
- 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/scss/mixins/card.scss +0 -26
- package/scss/variables/components/card.scss +0 -20
package/index.js
CHANGED
|
@@ -26,6 +26,9 @@ exports["default"] = {
|
|
|
26
26
|
'content.IconView': {
|
|
27
27
|
lazy: function () { return require('./content/Icon/IconView')["default"]; }
|
|
28
28
|
},
|
|
29
|
+
'content.BadgeView': {
|
|
30
|
+
lazy: function () { return require('./content/Badge/BadgeView')["default"]; }
|
|
31
|
+
},
|
|
29
32
|
'form.AutoCompleteFieldView': {
|
|
30
33
|
lazy: function () { return require('./form/AutoCompleteField/AutoCompleteFieldView')["default"]; }
|
|
31
34
|
},
|
|
@@ -35,11 +38,11 @@ exports["default"] = {
|
|
|
35
38
|
'content.CardView': {
|
|
36
39
|
lazy: function () { return require('./content/Card/CardView')["default"]; }
|
|
37
40
|
},
|
|
38
|
-
'content.
|
|
39
|
-
lazy: function () { return require('./content/
|
|
41
|
+
'content.AccordionView': {
|
|
42
|
+
lazy: function () { return require('./content/Accordion/AccordionView')["default"]; }
|
|
40
43
|
},
|
|
41
|
-
'content.
|
|
42
|
-
lazy: function () { return require('./content/
|
|
44
|
+
'content.AccordionItemView': {
|
|
45
|
+
lazy: function () { return require('./content/Accordion/AccordionItemView')["default"]; }
|
|
43
46
|
},
|
|
44
47
|
'form.CheckboxFieldView': {
|
|
45
48
|
lazy: function () { return require('./form/CheckboxField/CheckboxFieldView')["default"]; }
|
|
@@ -217,5 +220,11 @@ exports["default"] = {
|
|
|
217
220
|
},
|
|
218
221
|
'nav.TreeView': {
|
|
219
222
|
lazy: function () { return require('./nav/Tree/TreeView')["default"]; }
|
|
223
|
+
},
|
|
224
|
+
'typography.TextView': {
|
|
225
|
+
lazy: function () { return require('./typography/Text/TextView')["default"]; }
|
|
226
|
+
},
|
|
227
|
+
'typography.TitleView': {
|
|
228
|
+
lazy: function () { return require('./typography/Title/TitleView')["default"]; }
|
|
220
229
|
}
|
|
221
230
|
};
|
package/index.scss
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
@import './scss/mixins';
|
|
2
2
|
@import './scss/variables';
|
|
3
|
+
@import './scss/fonts';
|
|
3
4
|
|
|
4
5
|
@import './crud/Crud/CrudView';
|
|
5
6
|
@import './content/Alert/AlertView';
|
|
6
7
|
@import './content/Avatar/AvatarView';
|
|
7
8
|
@import './content/Avatar/AvatarGroupView';
|
|
9
|
+
@import './content/Badge/BadgeView';
|
|
8
10
|
@import './content/Calendar/CalendarView';
|
|
9
11
|
@import './content/Calendar/CaptionElement';
|
|
10
12
|
@import './content/Card/CardView';
|
|
11
|
-
@import './content/
|
|
12
|
-
@import './content/
|
|
13
|
+
@import './content/Accordion/AccordionView';
|
|
14
|
+
@import './content/Accordion/AccordionItemView';
|
|
13
15
|
@import './content/Detail/DetailView';
|
|
14
16
|
@import './form/AutoCompleteField/AutoCompleteFieldView';
|
|
15
17
|
@import './form/Button/ButtonView';
|
|
@@ -38,7 +40,6 @@
|
|
|
38
40
|
@import './form/TextField/TextFieldView';
|
|
39
41
|
@import './form/TimeField/TimeFieldView';
|
|
40
42
|
@import './form/TimeField/TimePanelView';
|
|
41
|
-
@import './content/Icon/IconView';
|
|
42
43
|
@import './layout/Header/HeaderView';
|
|
43
44
|
@import './layout/Tooltip/TooltipView';
|
|
44
45
|
@import './layout/Notifications/NotificationsView';
|
|
@@ -67,3 +68,5 @@
|
|
|
67
68
|
@import './nav/Nav/NavListView';
|
|
68
69
|
@import './nav/Nav/NavTabsView';
|
|
69
70
|
@import './nav/Tree/TreeView';
|
|
71
|
+
@import './typography/Text/TextView';
|
|
72
|
+
@import './typography/Title/TitleView';
|
|
@@ -27,18 +27,18 @@ var React = __importStar(require("react"));
|
|
|
27
27
|
var react_1 = require("react");
|
|
28
28
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
29
29
|
function TooltipView(props) {
|
|
30
|
-
var _a;
|
|
31
30
|
var tooltipRef = (0, react_1.useRef)(null);
|
|
32
31
|
var arrowRef = (0, react_1.useRef)(null);
|
|
33
32
|
(0, react_1.useEffect)(function () {
|
|
34
33
|
props.calculatePosition(tooltipRef.current.getBoundingClientRect(), arrowRef.current.getBoundingClientRect());
|
|
35
34
|
}, [props.calculatePosition]);
|
|
36
35
|
var bem = (0, hooks_1.useBem)('TooltipView');
|
|
37
|
-
return (React.createElement("div", { ref: tooltipRef, className: bem
|
|
38
|
-
show: props.isTooltipVisible
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
React.createElement("div", { className: bem
|
|
36
|
+
return (React.createElement("div", { ref: tooltipRef, className: bem.block({
|
|
37
|
+
show: props.isTooltipVisible,
|
|
38
|
+
position: props.position
|
|
39
|
+
}), style: props.style },
|
|
40
|
+
React.createElement("div", { ref: arrowRef, className: bem.element('arrow', { position: props.position }), style: props.arrowPosition }),
|
|
41
|
+
React.createElement("div", { className: bem.element('content') },
|
|
42
42
|
React.createElement("span", null, props.content))));
|
|
43
43
|
}
|
|
44
44
|
exports["default"] = TooltipView;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
|
|
3
|
-
$tooltip-arrow-
|
|
4
|
-
$tooltip-arrow-
|
|
5
|
-
$tooltip-arrow-height: 8px;
|
|
3
|
+
$tooltip-arrow-width: 10px;
|
|
4
|
+
$tooltip-arrow-height: 10px;
|
|
6
5
|
$tooltip-arrow-border: math.div($tooltip-arrow-width, 2);
|
|
7
6
|
$tooltip-gap: 12px;
|
|
8
7
|
|
|
@@ -10,10 +9,18 @@ $tooltip-arrow-offset-horizontal: 20px;
|
|
|
10
9
|
$tooltip-arrow-offset-vertical-top: 15px;
|
|
11
10
|
$tooltip-arrow-offset-vertical-bottom: 7px;
|
|
12
11
|
|
|
12
|
+
$tooltip-background-color: rgba(65, 65, 65, 0.95);
|
|
13
|
+
|
|
13
14
|
.TooltipView {
|
|
14
15
|
position: absolute;
|
|
15
16
|
top: 0;
|
|
16
17
|
left: 0;
|
|
18
|
+
max-width: 300px;
|
|
19
|
+
word-break: break-all;
|
|
20
|
+
padding: 8px 12px;
|
|
21
|
+
border-radius: 6px;
|
|
22
|
+
background: $tooltip-background-color;
|
|
23
|
+
|
|
17
24
|
transform: translate(0,0);
|
|
18
25
|
opacity: 0;
|
|
19
26
|
transition: opacity .15s ease-in, transform .15s ease-in;
|
|
@@ -22,99 +29,100 @@ $tooltip-arrow-offset-vertical-bottom: 7px;
|
|
|
22
29
|
&_show {
|
|
23
30
|
opacity: 1;
|
|
24
31
|
}
|
|
25
|
-
|
|
32
|
+
|
|
33
|
+
&_position{
|
|
34
|
+
&_top, &_topLeft, &_topRight {
|
|
26
35
|
transform: translateY(-$tooltip-gap);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&_bottom, &_bottomLeft, &_bottomRight {
|
|
39
|
+
transform: translateY($tooltip-gap);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&_left, &_leftTop, &_leftBottom {
|
|
43
|
+
transform: translateX(-$tooltip-gap);
|
|
44
|
+
}
|
|
37
45
|
|
|
46
|
+
&_right, &_rightTop, &_rightBottom {
|
|
47
|
+
transform: translateX($tooltip-gap);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
38
50
|
|
|
39
51
|
&__arrow{
|
|
40
52
|
position: absolute;
|
|
41
|
-
|
|
53
|
+
|
|
42
54
|
width: $tooltip-arrow-width;
|
|
43
55
|
height: $tooltip-arrow-height;
|
|
44
56
|
|
|
45
57
|
border-style: solid;
|
|
46
58
|
border-width: math.div($tooltip-arrow-height, 2);
|
|
59
|
+
border-color: $tooltip-background-color;
|
|
47
60
|
box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
|
|
48
61
|
|
|
49
|
-
|
|
50
|
-
&_position-top, &_position-topLeft, &_position-topRight{
|
|
62
|
+
&_position_top, &_position_topLeft, &_position_topRight{
|
|
51
63
|
bottom: -$tooltip-arrow-border;
|
|
52
64
|
left: 50%;
|
|
53
|
-
|
|
54
65
|
border-top-color: transparent;
|
|
55
66
|
border-left-color: transparent;
|
|
56
|
-
border-right-color: $tooltip-arrow-color;
|
|
57
|
-
border-bottom-color: $tooltip-arrow-color;
|
|
58
67
|
transform: translateX(-50%) rotate(45deg);
|
|
59
68
|
}
|
|
60
|
-
&
|
|
69
|
+
&_position_topLeft{
|
|
61
70
|
left: $tooltip-arrow-offset-horizontal;
|
|
62
71
|
}
|
|
63
|
-
&
|
|
72
|
+
&_position_topRight{
|
|
64
73
|
left: unset;
|
|
65
74
|
right: $tooltip-arrow-offset-horizontal;
|
|
66
75
|
}
|
|
67
76
|
|
|
68
|
-
&
|
|
77
|
+
&_position_bottom, &_position_bottomLeft, &_position_bottomRight{
|
|
69
78
|
top: -$tooltip-arrow-border;
|
|
70
79
|
left: 50%;
|
|
71
|
-
border-top-color: $tooltip-arrow-color;
|
|
72
|
-
border-left-color: $tooltip-arrow-color;
|
|
73
80
|
border-right-color: transparent;
|
|
74
81
|
border-bottom-color: transparent;
|
|
75
82
|
transform: translateX(-50%) rotate(45deg);
|
|
76
83
|
}
|
|
77
|
-
&
|
|
84
|
+
&_position_bottomLeft{
|
|
78
85
|
left: $tooltip-arrow-offset-horizontal;
|
|
79
86
|
}
|
|
80
|
-
&
|
|
87
|
+
&_position_bottomRight{
|
|
81
88
|
left: unset;
|
|
82
89
|
right: $tooltip-arrow-offset-horizontal;
|
|
83
90
|
}
|
|
84
91
|
|
|
85
|
-
&
|
|
92
|
+
&_position_left, &_position_leftTop, &_position_leftBottom{
|
|
86
93
|
right: -$tooltip-arrow-border;
|
|
87
94
|
top: 50%;
|
|
88
|
-
border-top-color: $tooltip-arrow-color;
|
|
89
95
|
border-left-color: transparent;
|
|
90
|
-
border-right-color: $tooltip-arrow-color;
|
|
91
96
|
border-bottom-color: transparent;
|
|
92
97
|
transform: translateY(-50%) rotate(45deg);
|
|
93
98
|
}
|
|
94
|
-
&
|
|
99
|
+
&_position_leftTop{
|
|
95
100
|
top: $tooltip-arrow-offset-vertical-top;
|
|
96
101
|
}
|
|
97
|
-
&
|
|
102
|
+
&_position_leftBottom{
|
|
98
103
|
top: unset;
|
|
99
104
|
bottom: $tooltip-arrow-offset-vertical-bottom;
|
|
100
105
|
}
|
|
101
106
|
|
|
102
|
-
&
|
|
107
|
+
&_position_right, &_position_rightTop, &_position_rightBottom{
|
|
103
108
|
left: -$tooltip-arrow-border;
|
|
104
109
|
top: 50%;
|
|
105
110
|
border-top-color: transparent;
|
|
106
|
-
border-left-color: $tooltip-arrow-color;
|
|
107
111
|
border-right-color: transparent;
|
|
108
|
-
border-bottom-color: $tooltip-arrow-color;
|
|
109
112
|
transform: translateY(-50%) rotate(45deg);
|
|
110
113
|
}
|
|
111
|
-
&
|
|
114
|
+
&_position_rightTop{
|
|
112
115
|
top: $tooltip-arrow-offset-vertical-top;
|
|
113
116
|
}
|
|
114
|
-
&
|
|
117
|
+
&_position_rightBottom{
|
|
115
118
|
top: unset;
|
|
116
119
|
bottom: $tooltip-arrow-offset-vertical-bottom;
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
|
|
123
|
+
&__content{
|
|
124
|
+
color: $white;
|
|
125
|
+
font-size: 14px;
|
|
126
|
+
line-height: 24px;
|
|
127
|
+
}
|
|
120
128
|
}
|
package/list/Grid/GridView.scss
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@import '~bootstrap/scss/mixins/_breakpoints.scss';
|
|
2
|
-
|
|
3
1
|
.GridView {
|
|
4
2
|
opacity: 1;
|
|
5
3
|
transition: opacity .2s;
|
|
@@ -9,34 +7,34 @@
|
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
//adaptive styles
|
|
12
|
-
@include media-breakpoint-down(sm) {
|
|
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
|
-
}
|
|
10
|
+
// @include media-breakpoint-down(sm) {
|
|
11
|
+
// thead, tbody, th, tr {
|
|
12
|
+
// display: block;
|
|
13
|
+
// }
|
|
14
|
+
|
|
15
|
+
// thead tr {
|
|
16
|
+
// position: absolute;
|
|
17
|
+
// top: -9999px;
|
|
18
|
+
// left: -9999px;
|
|
19
|
+
// }
|
|
20
|
+
|
|
21
|
+
// td {
|
|
22
|
+
// position: relative;
|
|
23
|
+
// width: 100% !important;
|
|
24
|
+
// text-align: left !important;
|
|
25
|
+
|
|
26
|
+
// display: flex;
|
|
27
|
+
// align-items: center;
|
|
28
|
+
// white-space: pre-wrap;
|
|
29
|
+
// }
|
|
30
|
+
|
|
31
|
+
// td:before {
|
|
32
|
+
// padding-right: 1rem;
|
|
33
|
+
// width: 50%;
|
|
34
|
+
// flex-shrink: 0;
|
|
35
|
+
// content: attr(data-label);
|
|
36
|
+
// }
|
|
37
|
+
// }
|
|
40
38
|
|
|
41
39
|
&__sort-button {
|
|
42
40
|
opacity: 0.5;
|
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.31",
|
|
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.15",
|
|
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.15"
|
|
57
|
+
}
|
|
58
58
|
}
|
package/scss/fonts.scss
ADDED
package/scss/mixins/button.scss
CHANGED
|
@@ -1,33 +1,59 @@
|
|
|
1
|
-
@mixin button-theme($
|
|
2
|
-
background-color: map-get($
|
|
3
|
-
color: map-get($
|
|
1
|
+
@mixin button-theme($colorMap, $colorName, $root) {
|
|
2
|
+
background-color: map-get($colorMap, color);
|
|
3
|
+
color: map-get($colorMap, text-color);
|
|
4
4
|
|
|
5
|
-
&:hover {
|
|
6
|
-
|
|
5
|
+
&:not(:disabled):hover {
|
|
6
|
+
background-color: map-get($colorMap, color-dark);
|
|
7
7
|
}
|
|
8
|
-
&:focus,
|
|
9
|
-
|
|
8
|
+
&:not(:disabled):focus,
|
|
9
|
+
&:not(:disabled):focus-visible {
|
|
10
|
+
border: 4px solid map-get($colorMap, color-light);
|
|
10
11
|
}
|
|
11
|
-
&:active {
|
|
12
|
-
|
|
12
|
+
&:not(:disabled):active {
|
|
13
|
+
background-color: map-get($colorMap, color-light);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
#{$root}__loader {
|
|
17
|
+
svg {
|
|
18
|
+
path {
|
|
19
|
+
stroke: map-get($colorMap, color-light);
|
|
20
|
+
|
|
21
|
+
@if ($colorName == 'basic' ) {
|
|
22
|
+
stroke: map-get($colorMap, color-dark);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
13
26
|
}
|
|
14
27
|
}
|
|
15
28
|
|
|
16
|
-
@mixin button-outline-theme($
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
29
|
+
@mixin button-outline-theme($colorMap, $colorName, $root) {
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
color: map-get($colorMap, color);
|
|
32
|
+
border: 1px solid map-get($colorMap, color);
|
|
20
33
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
&:not(:disabled):hover {
|
|
35
|
+
color: map-get($colorMap, color-dark);
|
|
36
|
+
border-color: map-get($colorMap, color-dark);
|
|
37
|
+
}
|
|
38
|
+
&:not(:disabled):focus {
|
|
39
|
+
box-shadow: 0 0 0 4px map-get($colorMap, color-light), 0 0 0 4px map-get($colorMap, color-light);
|
|
40
|
+
border: none;
|
|
41
|
+
}
|
|
42
|
+
&:not(:disabled):active {
|
|
43
|
+
color: map-get($colorMap, color-light);
|
|
44
|
+
border-color: map-get($colorMap, color-light);
|
|
45
|
+
box-shadow: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@if ($colorName == "basic") {
|
|
49
|
+
color: $text-color;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#{$root}__loader {
|
|
53
|
+
svg {
|
|
54
|
+
path {
|
|
55
|
+
stroke: map-get($colorMap, color);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
33
59
|
}
|
package/scss/mixins/index.scss
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@mixin custom-scroll($thumbColor, $backgroundColor) {
|
|
2
|
+
scrollbar-color: $thumbColor $backgroundColor;
|
|
3
|
+
scrollbar-width: thin;
|
|
4
|
+
|
|
5
|
+
&::-webkit-scrollbar {
|
|
6
|
+
width: 4px;
|
|
7
|
+
height: 4px;
|
|
8
|
+
border-radius: 3px;
|
|
9
|
+
|
|
10
|
+
&:hover {
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&::-webkit-scrollbar-track {
|
|
16
|
+
border-radius: 3px;
|
|
17
|
+
background-color: $backgroundColor;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&::-webkit-scrollbar-thumb {
|
|
21
|
+
border-radius: 3px;
|
|
22
|
+
background-color: $thumbColor;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin scrollWrapper($maxHeight, $paddingRight: 0, $thumbColor, $backgroundColor) {
|
|
27
|
+
@include custom-scroll($thumbColor, $backgroundColor);
|
|
28
|
+
padding-right: $paddingRight;
|
|
29
|
+
max-height: $maxHeight;
|
|
30
|
+
overflow: auto;
|
|
31
|
+
}
|