@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
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
@import "../../scss/variables";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--counter-background-color: #ffffff;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--counter-background-color: #414141;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
$counter-background-color: var(--counter-background-color);
|
|
12
|
+
|
|
13
|
+
.BadgeView {
|
|
14
|
+
$root: &;
|
|
15
|
+
|
|
16
|
+
display: inline-block;
|
|
17
|
+
position: relative;
|
|
18
|
+
width: fit-content;
|
|
19
|
+
|
|
20
|
+
font-family: $font-family-nunito;
|
|
21
|
+
color: $white;
|
|
22
|
+
font-size: $font-size-xs;
|
|
23
|
+
line-height: 16px;
|
|
24
|
+
|
|
25
|
+
&__content {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-flow: row nowrap;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__close {
|
|
34
|
+
width: 16px;
|
|
35
|
+
height: 16px;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
$badge-types: (
|
|
40
|
+
"primary": $primary,
|
|
41
|
+
"secondary": $secondary,
|
|
42
|
+
"success": $success,
|
|
43
|
+
"danger": $danger,
|
|
44
|
+
"warning": $warning,
|
|
45
|
+
"info": $info,
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
@each $type, $color in $badge-types {
|
|
49
|
+
&_#{$type} {
|
|
50
|
+
background-color: $color;
|
|
51
|
+
|
|
52
|
+
@if ($type == "warning" or $type == "info") {
|
|
53
|
+
color: $text-color;
|
|
54
|
+
|
|
55
|
+
#{$root}__close {
|
|
56
|
+
svg {
|
|
57
|
+
path {
|
|
58
|
+
stroke: #000;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&_size {
|
|
67
|
+
&_lg {
|
|
68
|
+
padding: 4px 8px;
|
|
69
|
+
}
|
|
70
|
+
&_md {
|
|
71
|
+
padding: 3px 8px;
|
|
72
|
+
}
|
|
73
|
+
&_sm {
|
|
74
|
+
padding: 1px 8px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&_squarer {
|
|
79
|
+
border-radius: $radius-small;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&_rounder {
|
|
83
|
+
border-radius: $radius-xlarge;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&_hasClose {
|
|
87
|
+
#{$root}__message {
|
|
88
|
+
margin-right: 4px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&_has-counter {
|
|
93
|
+
border: 1px solid #e9e9e9;
|
|
94
|
+
border-radius: 100px;
|
|
95
|
+
|
|
96
|
+
background: $light-gray;
|
|
97
|
+
color: $text-color;
|
|
98
|
+
padding: 3px 12px;
|
|
99
|
+
|
|
100
|
+
#{$root}__content {
|
|
101
|
+
height: 100%;
|
|
102
|
+
padding: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#{$root}__message {
|
|
106
|
+
margin-right: 8px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
#{$root}__counter {
|
|
110
|
+
display: flex;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
align-items: center;
|
|
113
|
+
|
|
114
|
+
margin-right: 4px;
|
|
115
|
+
padding: 0 5.4px;
|
|
116
|
+
background-color: $white;
|
|
117
|
+
|
|
118
|
+
border-radius: $radius-circle;
|
|
119
|
+
background-color: $counter-background-color;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
#{$root}__counter-content {
|
|
123
|
+
font-weight: $font-weight-sm;
|
|
124
|
+
font-size: $font-size-xs;
|
|
125
|
+
line-height: 16px;
|
|
126
|
+
color: $text-color;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
#{$root}__close {
|
|
130
|
+
path {
|
|
131
|
+
stroke: #000;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
|
|
1
2
|
.CaptionElement {
|
|
2
3
|
height: 45px;
|
|
3
4
|
display: table-caption;
|
|
4
5
|
padding: 0 10px;
|
|
5
|
-
border-bottom: 1px solid
|
|
6
|
+
border-bottom: 1px solid gray;
|
|
6
7
|
|
|
7
8
|
& > div {
|
|
8
9
|
font-size: 14px;
|
|
@@ -85,12 +86,12 @@
|
|
|
85
86
|
padding: 5px;
|
|
86
87
|
|
|
87
88
|
text-align: center;
|
|
88
|
-
border-bottom: 1px solid
|
|
89
|
+
border-bottom: 1px solid gray;
|
|
89
90
|
background-color: $calendar-primary-light-color;
|
|
90
91
|
|
|
91
92
|
&_months {
|
|
92
93
|
grid-area: HeaderMonths;
|
|
93
|
-
border-right: 1px solid
|
|
94
|
+
border-right: 1px solid gray;
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
&_years {
|
|
@@ -99,7 +100,7 @@
|
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
&__panel-column-months {
|
|
102
|
-
border-right: 1px solid
|
|
103
|
+
border-right: 1px solid gray;
|
|
103
104
|
|
|
104
105
|
&_first {
|
|
105
106
|
grid-area: Months1stCol;
|
package/content/Card/CardView.js
CHANGED
|
@@ -1,27 +1,47 @@
|
|
|
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
|
+
};
|
|
2
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
15
|
};
|
|
5
16
|
exports.__esModule = true;
|
|
6
17
|
var react_1 = __importDefault(require("react"));
|
|
7
18
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
19
|
+
var form_1 = require("@steroidsjs/core/ui/form");
|
|
20
|
+
var Avatar_1 = __importDefault(require("@steroidsjs/core/ui/content/Avatar/Avatar"));
|
|
21
|
+
var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon"));
|
|
22
|
+
var nav_1 = require("@steroidsjs/core/ui/nav");
|
|
8
23
|
function CardView(props) {
|
|
9
24
|
var bem = (0, hooks_1.useBem)('CardView');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
var hasContent = props.title || props.buttons || props.links || props.description;
|
|
26
|
+
return (react_1["default"].createElement("div", { className: bem(bem.block(), props.className), style: props.style },
|
|
27
|
+
props.header && (react_1["default"].createElement("div", { className: bem.element('header') },
|
|
28
|
+
react_1["default"].createElement("div", { className: bem.element('header-data') },
|
|
29
|
+
props.header.avatar && react_1["default"].createElement(Avatar_1["default"], __assign({}, props.header.avatar)),
|
|
30
|
+
react_1["default"].createElement("div", { className: bem.element('header-text-content') },
|
|
31
|
+
react_1["default"].createElement("h3", { className: bem.element('header-head') }, props.header.head),
|
|
32
|
+
react_1["default"].createElement("p", { className: bem.element('header-subhead') }, props.header.subhead))),
|
|
33
|
+
props.header.menu && (react_1["default"].createElement("div", { className: bem.element('header-menu'), role: 'button' },
|
|
34
|
+
react_1["default"].createElement(Icon_1["default"], { name: 'dots', className: bem.element('header-dots') }))))),
|
|
17
35
|
props.cover && (react_1["default"].createElement("div", { className: bem.element('cover') },
|
|
18
|
-
react_1["default"].createElement("img", { src: props.cover, alt: 'cover
|
|
19
|
-
react_1["default"].createElement("div", { className: bem.element('content') },
|
|
20
|
-
props.title && (react_1["default"].createElement("
|
|
36
|
+
react_1["default"].createElement("img", { src: props.cover, alt: 'Card cover img' }))),
|
|
37
|
+
hasContent && (react_1["default"].createElement("div", { className: bem.element('content') },
|
|
38
|
+
props.title && (react_1["default"].createElement("h3", { className: bem.element('title') }, props.title)),
|
|
21
39
|
react_1["default"].createElement("div", { className: bem.element('content-inner') },
|
|
22
|
-
react_1["default"].createElement(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
props.footer && (react_1["default"].createElement("div", { className: bem.element('footer') },
|
|
40
|
+
props.description && (react_1["default"].createElement("p", { className: bem.element('description') }, props.description)),
|
|
41
|
+
props.buttons && (react_1["default"].createElement("div", { className: bem.element('buttons') }, props.buttons.map(function (button, buttonIndex) { return (react_1["default"].createElement(form_1.Button, __assign({}, button, { key: buttonIndex }))); }))),
|
|
42
|
+
props.links && (react_1["default"].createElement("div", { className: bem.element('links') }, props.links.map(function (link, linkIndex) { return (react_1["default"].createElement(nav_1.Link, __assign({}, link, { key: linkIndex }))); })))))),
|
|
43
|
+
props.footer && (react_1["default"].createElement("div", { className: bem.element('footer') },
|
|
44
|
+
react_1["default"].createElement("h3", { className: bem.element('footer-head') }, props.footer.head),
|
|
45
|
+
react_1["default"].createElement("p", { className: bem.element('footer-subhead') }, props.footer.subhead)))));
|
|
26
46
|
}
|
|
27
47
|
exports["default"] = CardView;
|
|
@@ -1,154 +1,170 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--card-background-color: #ffffff;
|
|
3
|
+
--card-footer-background-color: #f9fcff;
|
|
4
|
+
--card-dots-color: #323232;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--card-background-color: #4e4f57;
|
|
9
|
+
--card-footer-background-color: #6b6477;
|
|
10
|
+
--card-dots-color: #ffffff;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
$card-background-color: var(--card-background-color);
|
|
14
|
+
$card-footer-background-color: var(--card-footer-background-color);
|
|
15
|
+
$card-dots-color: var(--card-dots-color);
|
|
16
|
+
|
|
17
|
+
%headTemplate {
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
font-size: $font-size-lg;
|
|
20
|
+
line-height: 24px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
%subheadTemplate {
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
font-size: $font-size-xs;
|
|
26
|
+
line-height: 16px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
%dotTemplate {
|
|
30
|
+
display: inline-block;
|
|
31
|
+
width: 4px;
|
|
32
|
+
height: 4px;
|
|
33
|
+
background-color: $card-dots-color;
|
|
34
|
+
border-radius: $radius-circle;
|
|
35
|
+
}
|
|
36
|
+
|
|
1
37
|
.CardView {
|
|
2
38
|
$root: &;
|
|
3
39
|
|
|
4
|
-
background: $white;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
height: fit-content;
|
|
7
|
-
position: relative;
|
|
8
40
|
display: flex;
|
|
9
|
-
flex-
|
|
41
|
+
flex-flow: column;
|
|
10
42
|
overflow: hidden;
|
|
43
|
+
height: fit-content;
|
|
11
44
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
&_vertical-reverse {
|
|
18
|
-
font-size: $card-font-size;
|
|
19
|
-
flex-direction: column-reverse;
|
|
20
|
-
}
|
|
45
|
+
border: 1px solid $border-color;
|
|
46
|
+
border-radius: $radius-large;
|
|
47
|
+
color: $text-color;
|
|
48
|
+
background-color: $card-background-color;
|
|
21
49
|
|
|
22
|
-
|
|
23
|
-
|
|
50
|
+
&__header {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-flow: row nowrap;
|
|
53
|
+
justify-content: space-between;
|
|
24
54
|
|
|
25
|
-
|
|
26
|
-
font-size: $card-horizontal-header-font-size;
|
|
27
|
-
}
|
|
55
|
+
padding: 16px;
|
|
28
56
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
57
|
+
&-data {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-flow: row nowrap;
|
|
60
|
+
align-items: center;
|
|
61
|
+
column-gap: 8px;
|
|
62
|
+
}
|
|
33
63
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
64
|
+
&-text-content {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-flow: column nowrap;
|
|
37
67
|
}
|
|
38
|
-
}
|
|
39
68
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
@include card-theme($root, $value)
|
|
69
|
+
&-head {
|
|
70
|
+
@extend %headTemplate;
|
|
43
71
|
}
|
|
44
|
-
}
|
|
45
72
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
border: 1px solid $border-default;
|
|
73
|
+
&-subhead {
|
|
74
|
+
@extend %subheadTemplate;
|
|
49
75
|
}
|
|
50
76
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
77
|
+
&-menu {
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-items: center;
|
|
81
|
+
cursor: pointer;
|
|
55
82
|
}
|
|
56
83
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
84
|
+
&-dots {
|
|
85
|
+
width: 24px;
|
|
86
|
+
height: 24px;
|
|
87
|
+
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: center;
|
|
91
|
+
|
|
92
|
+
rect {
|
|
93
|
+
fill: $card-dots-color;
|
|
60
94
|
}
|
|
61
95
|
}
|
|
62
96
|
}
|
|
63
97
|
|
|
64
|
-
&
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
98
|
+
&__cover {
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 227px;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
border-radius: $radius-large;
|
|
68
103
|
|
|
69
|
-
|
|
70
|
-
|
|
104
|
+
img {
|
|
105
|
+
display: block;
|
|
106
|
+
width: 100%;
|
|
107
|
+
height: 100%;
|
|
108
|
+
object-fit: cover;
|
|
71
109
|
}
|
|
72
110
|
}
|
|
73
111
|
|
|
74
|
-
&__content
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&__children {
|
|
80
|
-
font-size: $card-children-font-size;
|
|
81
|
-
line-height: $card-children-line-height;
|
|
82
|
-
box-sizing: border-box;
|
|
83
|
-
width: 100%;
|
|
84
|
-
word-break: break-all;
|
|
112
|
+
&__content {
|
|
113
|
+
padding: 8px 16px;
|
|
114
|
+
padding-bottom: 16px;
|
|
85
115
|
}
|
|
86
116
|
|
|
87
|
-
&
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
font-weight: bold;
|
|
92
|
-
font-size: $card-header-font-size;
|
|
93
|
-
line-height: $card-header-line-height;
|
|
94
|
-
word-break: break-all;
|
|
117
|
+
&__content-inner {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-flow: column nowrap;
|
|
120
|
+
row-gap: 16px;
|
|
95
121
|
}
|
|
96
122
|
|
|
97
|
-
&
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
border-top: 1px solid $border-default;
|
|
101
|
-
font-weight: bold;
|
|
102
|
-
font-size: $card-header-font-size;
|
|
103
|
-
line-height: $card-header-line-height;
|
|
104
|
-
word-break: break-all;
|
|
123
|
+
&__title {
|
|
124
|
+
@extend %headTemplate;
|
|
125
|
+
margin-bottom: 8px;
|
|
105
126
|
}
|
|
106
127
|
|
|
107
|
-
&
|
|
108
|
-
|
|
128
|
+
&__description {
|
|
129
|
+
font-size: $font-size-base;
|
|
130
|
+
line-height: 22px;
|
|
109
131
|
}
|
|
110
132
|
|
|
111
|
-
&
|
|
133
|
+
&__buttons {
|
|
112
134
|
display: flex;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
135
|
+
flex-flow: row wrap;
|
|
136
|
+
$columnGap: 6px;
|
|
137
|
+
row-gap: 8px;
|
|
138
|
+
column-gap: $columnGap;
|
|
139
|
+
|
|
140
|
+
button:only-of-type {
|
|
141
|
+
width: 100%;
|
|
142
|
+
}
|
|
120
143
|
|
|
121
|
-
|
|
122
|
-
|
|
144
|
+
button:not(:only-of-type) {
|
|
145
|
+
width: calc(50% - $columnGap);
|
|
146
|
+
}
|
|
123
147
|
}
|
|
124
148
|
|
|
125
|
-
|
|
149
|
+
&__links {
|
|
126
150
|
display: flex;
|
|
127
|
-
flex-
|
|
128
|
-
|
|
129
|
-
align-items: center;
|
|
130
|
-
padding: 10px 20px;
|
|
131
|
-
position: static;
|
|
132
|
-
width: 140px;
|
|
133
|
-
height: 28px;
|
|
134
|
-
border: none;
|
|
135
|
-
color: $white;
|
|
136
|
-
background: $primary;
|
|
137
|
-
border-radius: $card-button-border-radius;
|
|
151
|
+
flex-flow: row wrap;
|
|
152
|
+
column-gap: 16px;
|
|
138
153
|
}
|
|
139
154
|
|
|
140
|
-
|
|
141
|
-
display:
|
|
142
|
-
|
|
143
|
-
height: 100%;
|
|
144
|
-
object-fit: cover;
|
|
145
|
-
}
|
|
155
|
+
&__footer {
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-flow: column wrap;
|
|
146
158
|
|
|
147
|
-
|
|
148
|
-
color: $
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
159
|
+
padding: 16px;
|
|
160
|
+
background-color: $card-footer-background-color;
|
|
161
|
+
|
|
162
|
+
&-head {
|
|
163
|
+
@extend %headTemplate;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&-subhead {
|
|
167
|
+
@extend %subheadTemplate;
|
|
168
|
+
}
|
|
153
169
|
}
|
|
154
170
|
}
|
|
@@ -1,66 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
margin-bottom: 32px;
|
|
7
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--detail-background-color-value: #ffffff;
|
|
3
|
+
--detail-background-color-label: #f9fcff;
|
|
4
|
+
--detail-border-color: #e9e9e9;
|
|
5
|
+
}
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
color: #
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--detail-background-color-value: #4E4F57;
|
|
9
|
+
--detail-background-color-label: #5B5C6B;
|
|
10
|
+
--detail-border-color: #ADAAB3;
|
|
11
|
+
}
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
$detail-border-color: var(--detail-border-color);
|
|
14
|
+
$detail-background-color-value: var(--detail-background-color-value);
|
|
15
|
+
$detail-background-color-label: var(--detail-background-color-label);
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
border-radius: 10px;
|
|
23
|
-
border: 1px solid #cccccc;
|
|
24
|
-
filter: drop-shadow(0px 0px 30px rgba(0, 0, 0, 0.1));
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
}
|
|
17
|
+
.DetailView {
|
|
18
|
+
font-family: $font-family-nunito;
|
|
27
19
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
20
|
+
&__header {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
margin-bottom: 32px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__title {
|
|
28
|
+
color: $black-30;
|
|
29
|
+
font-size: 56px;
|
|
30
|
+
line-height: 56px;
|
|
31
|
+
font-weight: $font-weight-lg;
|
|
32
|
+
}
|
|
36
33
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
&__controls {
|
|
35
|
+
margin-left: auto;
|
|
36
|
+
}
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
&__table-container {
|
|
39
|
+
display: flex;
|
|
40
|
+
border-radius: 10px;
|
|
41
|
+
border: 1px solid $detail-border-color;
|
|
42
|
+
overflow: hidden;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
&__table {
|
|
46
|
+
background: #ffffff;
|
|
47
|
+
height: 100%;
|
|
48
|
+
width: 100%;
|
|
49
|
+
border-collapse: collapse;
|
|
50
|
+
border-spacing: 0;
|
|
51
|
+
border: none;
|
|
52
|
+
}
|
|
51
53
|
|
|
52
|
-
&
|
|
53
|
-
|
|
54
|
-
font-size: 16px;
|
|
54
|
+
&__row:not(:last-child) {
|
|
55
|
+
border-bottom: 1px solid $detail-border-color;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
|
-
&
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
&__label,
|
|
59
|
+
&__value {
|
|
60
|
+
&:not(:last-child) {
|
|
61
|
+
border-right: 1px solid $detail-border-color;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
padding: 12px;
|
|
65
|
+
|
|
66
|
+
font-weight: $font-weight-md;
|
|
67
|
+
font-size: $font-size-sm;
|
|
68
|
+
line-height: 18px;
|
|
69
|
+
color: $text-color;
|
|
70
|
+
background-color: $detail-background-color-value;
|
|
71
|
+
text-align: start;
|
|
72
|
+
|
|
73
|
+
&_size_md {
|
|
74
|
+
padding: 16px 12px;
|
|
75
|
+
font-size: $font-size-base;
|
|
76
|
+
line-height: 22px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&_size_lg {
|
|
80
|
+
padding: 18px 12px;
|
|
81
|
+
font-size: $font-size-lg;
|
|
82
|
+
line-height: 24px;
|
|
83
|
+
}
|
|
60
84
|
}
|
|
61
|
-
}
|
|
62
85
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
86
|
+
&__label {
|
|
87
|
+
background: $detail-background-color-label;
|
|
88
|
+
}
|
|
66
89
|
}
|
|
@@ -42,9 +42,12 @@ function DropDownView(props) {
|
|
|
42
42
|
var contentProps = (0, react_1.useMemo)(function () { return ({
|
|
43
43
|
onClose: props.onClose
|
|
44
44
|
}); }, [props.onClose]);
|
|
45
|
-
var content
|
|
46
|
-
if (
|
|
47
|
-
content =
|
|
45
|
+
var content;
|
|
46
|
+
if (props.content) {
|
|
47
|
+
content = props.content();
|
|
48
|
+
if ((0, isFunction_1["default"])(content)) {
|
|
49
|
+
content = ui.renderView(content, contentProps);
|
|
50
|
+
}
|
|
48
51
|
}
|
|
49
52
|
return (React.createElement("div", { ref: props.forwardedRef, className: bem(bem.block((_a = {
|
|
50
53
|
show: props.isComponentVisible
|