@steroidsjs/bootstrap 3.0.0-beta.62 → 3.0.0-beta.64
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 +96 -53
- package/content/Accordion/AccordionView.scss +23 -9
- package/content/Alert/AlertView.scss +48 -18
- package/content/Avatar/AvatarView.scss +1 -1
- package/content/Badge/BadgeView.scss +10 -4
- package/content/Calendar/CalendarView.scss +7 -3
- package/content/Calendar/CaptionElement.scss +1 -1
- package/content/Card/CardView.scss +5 -5
- package/content/Detail/DetailView.scss +7 -10
- package/content/DropDown/DropDownView.js +1 -0
- package/content/DropDown/DropDownView.scss +20 -8
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +5 -5
- package/form/CheckboxField/CheckboxFieldView.scss +2 -2
- package/form/DateField/DateFieldView.js +1 -1
- package/form/DateField/DateFieldView.scss +9 -1
- package/form/DateRangeField/DateRangeFieldView.js +1 -1
- package/form/DateRangeField/DateRangeFieldView.scss +4 -0
- package/form/DateTimeField/DateTimeFieldView.js +1 -1
- package/form/DateTimeField/DateTimeFieldView.scss +5 -0
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +1 -1
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +5 -0
- package/form/DropDownField/DropDownFieldView.scss +6 -13
- package/form/DropDownFieldItem/DropDownFieldItemView.scss +2 -2
- package/form/FieldList/FieldListView.scss +63 -55
- package/form/FileField/FileFieldView.scss +34 -34
- package/form/InputField/InputFieldView.scss +7 -7
- package/form/NumberField/NumberFieldView.scss +7 -7
- package/form/PasswordField/PasswordFieldView.scss +16 -11
- package/form/RadioField/RadioFieldView.scss +6 -6
- package/form/TextField/TextFieldView.scss +7 -7
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/index.scss +3 -2
- package/layout/ProgressBar/LineProgressBarView.scss +1 -1
- package/list/FlexGrid/FlexGridView.d.ts +2 -0
- package/list/FlexGrid/FlexGridView.js +71 -0
- package/list/FlexGrid/FlexGridView.scss +57 -0
- package/list/Grid/GridView.scss +12 -9
- package/list/Grid/views/ContentColumnView/ContentColumnView.scss +1 -1
- package/list/Pagination/PaginationButtonView.scss +21 -23
- package/modal/Modal/ModalView.scss +11 -1
- package/package.json +3 -3
- package/scss/mixins/date.scss +38 -17
- package/scss/variables/common/colors.scss +84 -72
- package/scss/variables/common/media.scss +1 -0
- package/scss/variables/components/calendar.scss +0 -1
|
@@ -1,23 +1,81 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--accordion-background
|
|
3
|
-
--accordion-background
|
|
4
|
-
--accordion-background
|
|
5
|
-
|
|
6
|
-
--accordion-chevron-
|
|
2
|
+
--accordion-light-background: var(--gray);
|
|
3
|
+
--accordion-intermediate-background: #ffffff;
|
|
4
|
+
--accordion-dark-background: #312c3a;
|
|
5
|
+
|
|
6
|
+
--accordion-chevron-light-background: #ffffff;
|
|
7
|
+
--accordion-chevron-intermediate-background: #ffffff;
|
|
8
|
+
--accordion-chevron-dark-background: #ffffff;
|
|
9
|
+
|
|
10
|
+
--accordion-chevron-inner-default-color: var(--graphite);
|
|
11
|
+
--accordion-chevron-inner-revert-color: #323232;
|
|
12
|
+
|
|
13
|
+
--accordion-chevron-default-box-shadow: 0px 1px 20px rgba(0, 0, 0, 0.1);
|
|
14
|
+
--accordion-chevron-revert-box-shadow: none;
|
|
15
|
+
|
|
16
|
+
--accordion-content-background: #ffffff;
|
|
7
17
|
}
|
|
8
18
|
|
|
9
19
|
html[data-theme="dark"] {
|
|
10
|
-
--accordion-background
|
|
11
|
-
--accordion-background
|
|
12
|
-
--accordion-background-dark
|
|
13
|
-
|
|
14
|
-
--accordion-chevron-
|
|
20
|
+
--accordion-light-background: var(--graphite);
|
|
21
|
+
--accordion-intermediate-background: var(--gray);
|
|
22
|
+
--accordion-dark-background: var(--gray-dark);
|
|
23
|
+
|
|
24
|
+
--accordion-chevron-light-background: var(--gray);
|
|
25
|
+
--accordion-chevron-intermediate-background: var(--gray-dark);
|
|
26
|
+
--accordion-chevron-dark-background: #ffffff;
|
|
27
|
+
|
|
28
|
+
--accordion-chevron-inner-default-color: #ffffff;
|
|
29
|
+
--accordion-chevron-inner-revert-color: #323232;
|
|
30
|
+
|
|
31
|
+
--accordion-chevron-default-box-shadow: 0px 1px 20px rgba(0, 0, 0, 0.1);
|
|
32
|
+
--accordion-chevron-revert-box-shadow: 0px 1px 20px rgba(0, 0, 0, 0.1);
|
|
33
|
+
|
|
34
|
+
--accordion-content-background: var(--graphite);
|
|
15
35
|
}
|
|
16
36
|
|
|
17
|
-
$
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
37
|
+
$accordion-light-background: var(--accordion-light-background);
|
|
38
|
+
$accordion-intermediate-background: var(--accordion-intermediate-background);
|
|
39
|
+
$accordion-dark-background: var(--accordion-dark-background);
|
|
40
|
+
|
|
41
|
+
$accordion-chevron-light-background: var(--accordion-chevron-light-background);
|
|
42
|
+
$accordion-chevron-intermediate-background: var(--accordion-chevron-intermediate-background);
|
|
43
|
+
$accordion-chevron-dark-background: var(--accordion-chevron-dark-background);
|
|
44
|
+
|
|
45
|
+
$accordion-chevron-inner-default-color: var(--accordion-chevron-inner-default-color);
|
|
46
|
+
$accordion-chevron-inner-revert-color: var(--accordion-chevron-inner-revert-color);
|
|
47
|
+
|
|
48
|
+
$accordion-chevron-default-box-shadow: var(--accordion-chevron-default-box-shadow);
|
|
49
|
+
$accordion-chevron-revert-box-shadow: var(--accordion-chevron-revert-box-shadow);
|
|
50
|
+
|
|
51
|
+
$accordion-content-background: var(--accordion-content-background);
|
|
52
|
+
|
|
53
|
+
$accordion-themes: () !default;
|
|
54
|
+
$accordion-themes: map-merge(
|
|
55
|
+
(
|
|
56
|
+
"light": (
|
|
57
|
+
"background": $accordion-light-background,
|
|
58
|
+
"text-color": $text-color,
|
|
59
|
+
"chevron-box-shadow": $accordion-chevron-default-box-shadow,
|
|
60
|
+
"chevron-background": $accordion-chevron-light-background,
|
|
61
|
+
"chevron-inner-color": $accordion-chevron-inner-default-color,
|
|
62
|
+
),
|
|
63
|
+
"intermediate": (
|
|
64
|
+
"background": $accordion-intermediate-background,
|
|
65
|
+
"text-color": $text-color,
|
|
66
|
+
"chevron-box-shadow": $accordion-chevron-default-box-shadow,
|
|
67
|
+
"chevron-background": $accordion-chevron-intermediate-background,
|
|
68
|
+
"chevron-inner-color": $accordion-chevron-inner-default-color,
|
|
69
|
+
),
|
|
70
|
+
"dark": (
|
|
71
|
+
"background": $accordion-dark-background,
|
|
72
|
+
"text-color": #ffffff,
|
|
73
|
+
"chevron-box-shadow": $accordion-chevron-revert-box-shadow,
|
|
74
|
+
"chevron-background": $accordion-chevron-dark-background,
|
|
75
|
+
"chevron-inner-color": $accordion-chevron-inner-revert-color,
|
|
76
|
+
),
|
|
77
|
+
),
|
|
78
|
+
$accordion-themes
|
|
21
79
|
);
|
|
22
80
|
|
|
23
81
|
$accordion-rect-background: var(--accordion-rect-background);
|
|
@@ -28,39 +86,28 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
28
86
|
|
|
29
87
|
display: grid;
|
|
30
88
|
align-items: center;
|
|
89
|
+
overflow: hidden;
|
|
31
90
|
|
|
32
|
-
background-color:
|
|
91
|
+
background-color: $accordion-content-background;
|
|
33
92
|
height: 56px;
|
|
34
93
|
width: 480px;
|
|
35
94
|
height: fit-content;
|
|
36
95
|
font-family: $font-family-nunito;
|
|
37
96
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
#{$root}__title-container {
|
|
46
|
-
color: $text-color;
|
|
97
|
+
@each $theme, $themeProperties in $accordion-themes {
|
|
98
|
+
&_theme_#{$theme} {
|
|
99
|
+
#{$root}__header-container {
|
|
100
|
+
background-color: map-get($themeProperties, background);
|
|
101
|
+
color: map-get($themeProperties, text-color);
|
|
102
|
+
}
|
|
47
103
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
104
|
+
#{$root}__icon-chevron {
|
|
105
|
+
box-shadow: map-get($themeProperties, chevron-box-shadow);
|
|
106
|
+
rect {
|
|
107
|
+
fill: map-get($themeProperties, chevron-background);
|
|
51
108
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
svg {
|
|
55
|
-
@if ($theme == "light" or $theme == "intermediate") {
|
|
56
|
-
rect {
|
|
57
|
-
fill: $accordion-rect-background;
|
|
58
|
-
}
|
|
59
|
-
path {
|
|
60
|
-
stroke: $accordion-chevron-color;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
109
|
+
path {
|
|
110
|
+
stroke: map-get($themeProperties, chevron-inner-color);
|
|
64
111
|
}
|
|
65
112
|
}
|
|
66
113
|
}
|
|
@@ -68,28 +115,22 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
68
115
|
|
|
69
116
|
&_position {
|
|
70
117
|
&_top {
|
|
71
|
-
|
|
72
|
-
border-bottom: 1px solid rgba(#000, 0.1);
|
|
73
|
-
border-radius: $radius-large $radius-large 0 0;
|
|
74
|
-
}
|
|
118
|
+
border-radius: $radius-large $radius-large 0 0;
|
|
75
119
|
}
|
|
76
120
|
|
|
77
121
|
&_middle {
|
|
78
|
-
|
|
79
|
-
border-top: 1px solid rgba(#000, 0.1);
|
|
80
|
-
border-radius: 0px;
|
|
81
|
-
}
|
|
122
|
+
border-radius: 0px;
|
|
82
123
|
}
|
|
83
124
|
|
|
84
125
|
&_bottom {
|
|
126
|
+
border-radius: 0 0 $radius-large $radius-large;
|
|
127
|
+
|
|
85
128
|
#{$root}__content {
|
|
86
129
|
grid-row-start: 1;
|
|
87
130
|
grid-row-end: 1;
|
|
88
131
|
}
|
|
89
132
|
|
|
90
133
|
#{$root}__header-container {
|
|
91
|
-
border-top: 1px solid rgba(#000, 0.1);
|
|
92
|
-
border-radius: 0 0 $radius-large $radius-large;
|
|
93
134
|
grid-row-start: 2;
|
|
94
135
|
grid-row-end: 2;
|
|
95
136
|
}
|
|
@@ -143,6 +184,7 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
143
184
|
width: 100%;
|
|
144
185
|
padding: 16px;
|
|
145
186
|
align-self: center;
|
|
187
|
+
|
|
146
188
|
font-size: $font-size-lg;
|
|
147
189
|
line-height: 24px;
|
|
148
190
|
}
|
|
@@ -161,7 +203,7 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
161
203
|
}
|
|
162
204
|
}
|
|
163
205
|
|
|
164
|
-
.IconView {
|
|
206
|
+
.IconView {
|
|
165
207
|
display: inline-block;
|
|
166
208
|
width: 24px;
|
|
167
209
|
height: 24px;
|
|
@@ -172,12 +214,12 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
172
214
|
overflow: hidden;
|
|
173
215
|
max-height: 0;
|
|
174
216
|
padding: 0 16px;
|
|
175
|
-
color:
|
|
217
|
+
color: $text-color;
|
|
176
218
|
|
|
177
219
|
&_visible {
|
|
178
220
|
max-height: 1024px;
|
|
179
221
|
padding: 18px 32px 18px 16px;
|
|
180
|
-
border: 1px solid
|
|
222
|
+
border: 1px solid $accordion-content-border;
|
|
181
223
|
}
|
|
182
224
|
}
|
|
183
225
|
|
|
@@ -199,11 +241,12 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
199
241
|
opacity: 1;
|
|
200
242
|
pointer-events: all;
|
|
201
243
|
}
|
|
202
|
-
|
|
244
|
+
|
|
203
245
|
#{$root}__open-icon {
|
|
204
246
|
position: absolute;
|
|
205
247
|
opacity: 0;
|
|
206
248
|
pointer-events: none;
|
|
207
249
|
}
|
|
208
250
|
}
|
|
251
|
+
|
|
209
252
|
}
|
|
@@ -1,14 +1,28 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--accordion-content-border: rgba(0, 0, 0, 0.1);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
html[data-theme="dark"] {
|
|
6
|
+
--accordion-content-border: rgba(255, 255, 255, 0.1);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
$accordion-content-border: var(--accordion-content-border);
|
|
10
|
+
|
|
1
11
|
.AccordionView {
|
|
2
|
-
|
|
12
|
+
height: fit-content;
|
|
13
|
+
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-gap: 0;
|
|
3
16
|
|
|
4
|
-
|
|
5
|
-
|
|
17
|
+
.AccordionItemView {
|
|
18
|
+
$root: &;
|
|
6
19
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
20
|
+
&__header-container {
|
|
21
|
+
border-bottom: 1px solid $accordion-content-border;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
10
24
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
25
|
+
.AccordionItemView:last-of-type .AccordionItemView__header-container {
|
|
26
|
+
border-bottom: none;
|
|
27
|
+
}
|
|
14
28
|
}
|
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--alert-text-color: #152536;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
html[data-theme="dark"] {
|
|
6
|
+
--alert-text-color: #152536;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
$alert-text-color: var(--alert-text-color);
|
|
10
|
+
|
|
11
|
+
$alert-themes: () !default;
|
|
12
|
+
$alert-themes: map-merge(
|
|
13
|
+
(
|
|
14
|
+
"success": (
|
|
15
|
+
"background-color": $success-light,
|
|
16
|
+
"icon-color": $success,
|
|
17
|
+
),
|
|
18
|
+
"info": (
|
|
19
|
+
"background-color": $info-light,
|
|
20
|
+
"icon-color": $info,
|
|
21
|
+
),
|
|
22
|
+
"warning": (
|
|
23
|
+
"background-color": $warning-light,
|
|
24
|
+
"icon-color": $warning,
|
|
25
|
+
),
|
|
26
|
+
"error": (
|
|
27
|
+
"background-color": $danger-light,
|
|
28
|
+
"icon-color": $danger,
|
|
29
|
+
),
|
|
30
|
+
"default": (
|
|
31
|
+
"background-color": $light-gray,
|
|
32
|
+
"icon-color": $gray-dark,
|
|
33
|
+
),
|
|
34
|
+
),
|
|
35
|
+
$alert-themes
|
|
36
|
+
);
|
|
37
|
+
|
|
1
38
|
.AlertView {
|
|
2
39
|
$root: &;
|
|
3
40
|
|
|
@@ -43,7 +80,7 @@
|
|
|
43
80
|
display: flex;
|
|
44
81
|
justify-content: center;
|
|
45
82
|
align-items: center;
|
|
46
|
-
cursor: pointer;
|
|
83
|
+
cursor: pointer;
|
|
47
84
|
}
|
|
48
85
|
|
|
49
86
|
&__text-block {
|
|
@@ -51,26 +88,19 @@
|
|
|
51
88
|
row-gap: 12px;
|
|
52
89
|
max-width: 444px;
|
|
53
90
|
margin-right: auto;
|
|
91
|
+
color: $alert-text-color;
|
|
54
92
|
}
|
|
55
93
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
94
|
+
@each $color, $alert-properties in $alert-themes {
|
|
95
|
+
&_#{$color} {
|
|
96
|
+
background-color: map-get($alert-properties, background-color);
|
|
59
97
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&_error {
|
|
69
|
-
background: $danger-light;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&_default {
|
|
73
|
-
background: $light-gray;
|
|
98
|
+
#{$root}__icon_#{$color} {
|
|
99
|
+
g > circle:not([fill="white"]), rect {
|
|
100
|
+
fill: map-get($alert-properties, icon-color);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
74
104
|
}
|
|
75
105
|
|
|
76
106
|
&__message {
|
|
@@ -2,13 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
--counter-background-color: #ffffff;
|
|
5
|
+
--counter-border-color: var(--gray);
|
|
6
|
+
--counter-cross-color: #000000;
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
html[data-theme="dark"] {
|
|
8
|
-
--counter-background-color:
|
|
10
|
+
--counter-background-color: rgba(255, 255, 255, 0.1);;
|
|
11
|
+
--counter-border-color: transparent;
|
|
12
|
+
--counter-cross-color: #FFFFFF;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
15
|
$counter-background-color: var(--counter-background-color);
|
|
16
|
+
$counter-border-color: var(--counter-border-color);
|
|
17
|
+
$counter-cross-color: var(--counter-cross-color);
|
|
12
18
|
|
|
13
19
|
.BadgeView {
|
|
14
20
|
$root: &;
|
|
@@ -50,7 +56,7 @@ $counter-background-color: var(--counter-background-color);
|
|
|
50
56
|
background-color: $color;
|
|
51
57
|
|
|
52
58
|
@if ($type == "warning" or $type == "info") {
|
|
53
|
-
color: $text-color;
|
|
59
|
+
color: $static-text-color;
|
|
54
60
|
|
|
55
61
|
#{$root}__close {
|
|
56
62
|
svg {
|
|
@@ -90,7 +96,7 @@ $counter-background-color: var(--counter-background-color);
|
|
|
90
96
|
}
|
|
91
97
|
|
|
92
98
|
&_has-counter {
|
|
93
|
-
border: 1px solid
|
|
99
|
+
border: 1px solid $counter-border-color;
|
|
94
100
|
border-radius: 100px;
|
|
95
101
|
|
|
96
102
|
background: $light-gray;
|
|
@@ -128,7 +134,7 @@ $counter-background-color: var(--counter-background-color);
|
|
|
128
134
|
|
|
129
135
|
#{$root}__close {
|
|
130
136
|
path {
|
|
131
|
-
stroke:
|
|
137
|
+
stroke: $counter-cross-color;
|
|
132
138
|
}
|
|
133
139
|
}
|
|
134
140
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--day-background-color-hover: rgba(0, 0, 0, 0.1);
|
|
3
|
-
--calendar-border-color:
|
|
3
|
+
--calendar-border-color: var(--light-gray);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
html[data-theme="dark"] {
|
|
7
7
|
--day-background-color-hover: rgba(255, 255, 255, 0.1);
|
|
8
|
-
--calendar-border-color:
|
|
8
|
+
--calendar-border-color: var(--gray);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
$day-background-color-hover: var(--day-background-color-hover);
|
|
@@ -26,6 +26,10 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
26
26
|
|
|
27
27
|
.CalendarView {
|
|
28
28
|
$root: &;
|
|
29
|
+
|
|
30
|
+
background-color: $element-background-color;
|
|
31
|
+
border-radius: $radius-large;
|
|
32
|
+
border: 4px solid $calendar-border-color;
|
|
29
33
|
position: relative;
|
|
30
34
|
color: $text-color;
|
|
31
35
|
font-weight: $font-weight-md;
|
|
@@ -148,7 +152,7 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
148
152
|
}
|
|
149
153
|
|
|
150
154
|
&--outside {
|
|
151
|
-
color: $placeholder-color;
|
|
155
|
+
color: $element-placeholder-color;
|
|
152
156
|
|
|
153
157
|
}
|
|
154
158
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
html[data-theme="dark"] {
|
|
9
|
-
--caption-arrow-background-color:
|
|
9
|
+
--caption-arrow-background-color: var(--gray);
|
|
10
10
|
--caption-arrow-color: #ffffff;
|
|
11
11
|
--caption-header-month-background-color: #333646;
|
|
12
12
|
--separator-background-color: rgba(255, 255, 255, 0.1);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--card-background-color:
|
|
3
|
-
--card-footer-background-color:
|
|
2
|
+
--card-background-color: $white;
|
|
3
|
+
--card-footer-background-color: var(--additional-light-blue);
|
|
4
4
|
--card-dots-color: #323232;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
html[data-theme="dark"] {
|
|
8
|
-
--card-background-color:
|
|
9
|
-
--card-footer-background-color:
|
|
8
|
+
--card-background-color: var(--graphite);
|
|
9
|
+
--card-footer-background-color: var(--gray-dark);
|
|
10
10
|
--card-dots-color: #ffffff;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -42,7 +42,7 @@ $card-dots-color: var(--card-dots-color);
|
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
height: fit-content;
|
|
44
44
|
|
|
45
|
-
border: 1px solid $border-color;
|
|
45
|
+
border: 1px solid $element-border-color;
|
|
46
46
|
border-radius: $radius-large;
|
|
47
47
|
color: $text-color;
|
|
48
48
|
background-color: $card-background-color;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--detail-background-color-value:
|
|
3
|
-
--detail-background-color-label:
|
|
4
|
-
--detail-border-color: #e9e9e9;
|
|
2
|
+
--detail-background-color-value: $white;
|
|
3
|
+
--detail-background-color-label: var(--additional-light-blue);
|
|
5
4
|
}
|
|
6
5
|
|
|
7
6
|
html[data-theme="dark"] {
|
|
8
|
-
--detail-background-color-value:
|
|
9
|
-
--detail-background-color-label:
|
|
10
|
-
--detail-border-color: #ADAAB3;
|
|
7
|
+
--detail-background-color-value: var(--graphite);
|
|
8
|
+
--detail-background-color-label: var(--additional-gray-dark);
|
|
11
9
|
}
|
|
12
10
|
|
|
13
|
-
$detail-border-color: var(--detail-border-color);
|
|
14
11
|
$detail-background-color-value: var(--detail-background-color-value);
|
|
15
12
|
$detail-background-color-label: var(--detail-background-color-label);
|
|
16
13
|
|
|
@@ -38,7 +35,7 @@ $detail-background-color-label: var(--detail-background-color-label);
|
|
|
38
35
|
&__table-container {
|
|
39
36
|
display: flex;
|
|
40
37
|
border-radius: 10px;
|
|
41
|
-
border: 1px solid $
|
|
38
|
+
border: 1px solid $gray;
|
|
42
39
|
overflow: hidden;
|
|
43
40
|
}
|
|
44
41
|
|
|
@@ -52,13 +49,13 @@ $detail-background-color-label: var(--detail-background-color-label);
|
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
&__row:not(:last-child) {
|
|
55
|
-
border-bottom: 1px solid $
|
|
52
|
+
border-bottom: 1px solid $gray;
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
&__label,
|
|
59
56
|
&__value {
|
|
60
57
|
&:not(:last-child) {
|
|
61
|
-
border-right: 1px solid $
|
|
58
|
+
border-right: 1px solid $gray;
|
|
62
59
|
}
|
|
63
60
|
|
|
64
61
|
padding: 12px;
|
|
@@ -52,6 +52,7 @@ function DropDownView(props) {
|
|
|
52
52
|
show: props.isComponentVisible
|
|
53
53
|
},
|
|
54
54
|
_a["position-".concat(props.position)] = !!props.position,
|
|
55
|
+
_a.hasArrow = props.hasArrow,
|
|
55
56
|
_a)), props.className), style: props.style }, content));
|
|
56
57
|
}
|
|
57
58
|
exports["default"] = DropDownView;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
html[data-theme="dark"] {
|
|
10
|
-
--dropdown-background:
|
|
10
|
+
--dropdown-background: var(--gray-dark);
|
|
11
11
|
--dropdown-border: transparent;
|
|
12
|
-
--dropdown-triangle-svg: url("data:image/svg+xml,%3Csvg width='21' height='
|
|
12
|
+
--dropdown-triangle-svg: url("data:image/svg+xml,%3Csvg width='21' height='12' viewBox='0 0 21 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5859 11.222L0.585938 0.222044L20.5859 0.222046L10.5859 11.222Z' fill='%23272A37'/%3E%3C/svg%3E");
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
$dropdown-background: var(--dropdown-background);
|
|
@@ -87,10 +87,9 @@ $gap: 12px;
|
|
|
87
87
|
|
|
88
88
|
left: 100%;
|
|
89
89
|
top: $padding;
|
|
90
|
-
transform: rotate(-90deg) translate(-30%, -7.5px)
|
|
90
|
+
transform: rotate(-90deg) translate(-30%, -7.5px);
|
|
91
91
|
}
|
|
92
|
-
}
|
|
93
|
-
@else if($edge == "right") {
|
|
92
|
+
} @else if($edge == "right") {
|
|
94
93
|
&::before {
|
|
95
94
|
@extend %triangle;
|
|
96
95
|
|
|
@@ -104,7 +103,7 @@ $gap: 12px;
|
|
|
104
103
|
|
|
105
104
|
right: 100%;
|
|
106
105
|
top: $padding;
|
|
107
|
-
transform: rotate(-90deg) translate(-30%, 7.5px)
|
|
106
|
+
transform: rotate(-90deg) translate(-30%, 7.5px);
|
|
108
107
|
}
|
|
109
108
|
}
|
|
110
109
|
}
|
|
@@ -114,6 +113,7 @@ $gap: 12px;
|
|
|
114
113
|
|
|
115
114
|
z-index: 1000;
|
|
116
115
|
position: absolute;
|
|
116
|
+
color: $text-color;
|
|
117
117
|
|
|
118
118
|
transform: translate(0, 0);
|
|
119
119
|
opacity: 0;
|
|
@@ -179,11 +179,11 @@ $gap: 12px;
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
&_position-leftTop {
|
|
182
|
-
@include drop("left", 12.5%)
|
|
182
|
+
@include drop("left", 12.5%);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
&_position-leftBottom {
|
|
186
|
-
@include drop("left", 80%)
|
|
186
|
+
@include drop("left", 80%);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
&_position-right {
|
|
@@ -197,4 +197,16 @@ $gap: 12px;
|
|
|
197
197
|
&_position-rightBottom {
|
|
198
198
|
@include drop("right", 80%);
|
|
199
199
|
}
|
|
200
|
+
|
|
201
|
+
&::before,
|
|
202
|
+
&::after {
|
|
203
|
+
opacity: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&_hasArrow {
|
|
207
|
+
&::before,
|
|
208
|
+
&::after {
|
|
209
|
+
opacity: 1;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
200
212
|
}
|
|
@@ -24,8 +24,8 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
24
24
|
|
|
25
25
|
&__input {
|
|
26
26
|
width: 100%;
|
|
27
|
-
border: 1px solid $border-color;
|
|
28
|
-
background-color: $element-background-color;
|
|
27
|
+
border: 1px solid $element-border-color;
|
|
28
|
+
background-color: $element-field-background-color;
|
|
29
29
|
color: $text-color;
|
|
30
30
|
transition: border-color 150ms ease-in-out;
|
|
31
31
|
font-size: inherit;
|
|
@@ -47,7 +47,7 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
47
47
|
margin-top: 8px;
|
|
48
48
|
border-radius: $radius-large;
|
|
49
49
|
background-color: $element-background-color;
|
|
50
|
-
border: 1px solid $border-color;
|
|
50
|
+
border: 1px solid $element-border-color;
|
|
51
51
|
overflow: hidden;
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -111,7 +111,7 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
111
111
|
&__label {
|
|
112
112
|
display: block;
|
|
113
113
|
padding: 12px 8px;
|
|
114
|
-
color: $placeholder-color;
|
|
114
|
+
color: $element-placeholder-color;
|
|
115
115
|
}
|
|
116
116
|
&__content {
|
|
117
117
|
width: 100%;
|
|
@@ -123,7 +123,7 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
&__nothing {
|
|
126
|
-
color: $placeholder-color;
|
|
126
|
+
color: $element-placeholder-color;
|
|
127
127
|
width: 100%;
|
|
128
128
|
margin-bottom: 48px;
|
|
129
129
|
padding: 8px 12px;
|
|
@@ -113,13 +113,13 @@
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
&::before {
|
|
116
|
-
background: $background-disabled
|
|
116
|
+
background: $element-background-color-disabled;
|
|
117
117
|
border: none;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
&:disabled:checked #{$root}__label::before {
|
|
122
|
-
background-color: $background-disabled
|
|
122
|
+
background-color: $element-background-color-disabled;
|
|
123
123
|
border-color: none;
|
|
124
124
|
background-image: url("data:image/svg+xml,%3Csvg width='11' height='9' viewBox='0 0 11 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.8584 1.48401L4.3584 7.48401L1.8584 4.75674' stroke='black' stroke-opacity='0.1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
|
|
125
125
|
}
|
|
@@ -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: 'bottomLeft', visible: props.isOpened, onClose: props.onClose, className: bem.element('dropdown') },
|
|
49
|
+
return (React.createElement(DropDown_1["default"], { content: renderCalendar, position: 'bottomLeft', 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,
|