@energycap/components 0.37.6 → 0.37.7-ECAP-18600-ech-theme-updates.20230912-2334
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/energycap-components.min.css +2 -2
- package/esm2020/lib/controls/banner/banner.component.mjs +3 -3
- package/esm2020/lib/controls/button/button.component.mjs +3 -3
- package/esm2020/lib/controls/checkbox/checkbox.component.mjs +2 -2
- package/esm2020/lib/controls/combobox/combobox.component.mjs +2 -2
- package/esm2020/lib/controls/file-upload/file-upload.component.mjs +2 -2
- package/esm2020/lib/controls/form-control/form-control.component.mjs +2 -2
- package/esm2020/lib/controls/form-control-label/form-control-label.component.mjs +2 -2
- package/esm2020/lib/controls/form-group/form-group.component.mjs +2 -2
- package/esm2020/lib/controls/numericbox/numericbox.component.mjs +2 -2
- package/esm2020/lib/controls/radio-button/radio-button.component.mjs +2 -2
- package/esm2020/lib/controls/select/select.component.mjs +2 -2
- package/esm2020/lib/controls/tabs/tabs.component.mjs +2 -2
- package/esm2020/lib/controls/textbox/textbox.component.mjs +2 -2
- package/esm2020/lib/display/avatar/avatar.component.mjs +2 -2
- package/esm2020/lib/display/splash/splash.component.mjs +3 -3
- package/esm2020/lib/display/table/table-pagination.component.mjs +3 -3
- package/esm2020/lib/display/table/table-selectable-row.component.mjs +2 -2
- package/esm2020/lib/display/table/table.component.mjs +2 -2
- package/esm2020/lib/display/tags/tags.component.mjs +3 -3
- package/esm2020/lib/display/tour/tour.component.mjs +2 -2
- package/esm2020/lib/shared/page/page-view/page-view.component.mjs +2 -2
- package/fesm2015/energycap-components.mjs +42 -42
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +42 -42
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/images/icon-carbonhub.svg +10 -0
- package/src/assets/images/icon-eum.svg +5 -0
- package/src/assets/images/icon-ucp.svg +12 -0
- package/src/assets/images/icon-wattics.svg +4 -2
- package/src/assets/images/icon.svg +9 -7
- package/src/assets/images/logo.svg +8 -13
- package/src/assets/images/splash.gif +0 -0
- package/src/styles/_colors.scss +73 -55
- package/src/styles/_global-variables.scss +107 -40
- package/src/styles/components/_splash.scss +31 -12
- package/src/styles/mixins/_button-base.scss +72 -44
- package/src/styles/mixins/_control-base.scss +2 -17
- package/src/styles/mixins/_form-control-base.scss +96 -62
- package/src/styles/mixins/_login.scss +3 -2
- package/src/styles/mixins/_tabs-base.scss +50 -43
- package/src/styles/mixins/_tags-base.scss +30 -19
- package/src/assets/images/icon-carbon-hub.svg +0 -6
@@ -1,24 +1,12 @@
|
|
1
1
|
@import 'nav-control-base';
|
2
2
|
|
3
|
-
$tab-border-width: 1px;
|
4
|
-
$tab-border-color: var(--ec-border-color);
|
5
|
-
$tab-color: var(--ec-color-secondary-dark);
|
6
|
-
$tab-color-active: $gray-7;
|
7
|
-
$tab-color-hover: $gray-7;
|
8
|
-
$tab-bg-active: var(--ec-background-color-body);
|
9
|
-
|
10
|
-
$tab-pill-bg-active: #d2d7d9;
|
11
|
-
|
12
3
|
@mixin tab-active($style: tabs) {
|
13
|
-
color:
|
4
|
+
color: var(--ec-tab-color-active, var(--ec-color-interactive));
|
14
5
|
|
15
6
|
@if $style == tabs {
|
16
|
-
|
17
|
-
border-top-color: $tab-border-color;
|
18
|
-
border-left-color: $tab-border-color;
|
19
|
-
border-right-color: $tab-border-color;
|
7
|
+
border-color: var(--ec-tab-border-color-active, var(--ec-border-color-focus));
|
20
8
|
} @else {
|
21
|
-
background-color:
|
9
|
+
background-color: var(--ec-tab-background-color-active, var(--ec-background-color));
|
22
10
|
}
|
23
11
|
}
|
24
12
|
|
@@ -26,53 +14,52 @@ $tab-pill-bg-active: #d2d7d9;
|
|
26
14
|
$height: rem-calc(32px);
|
27
15
|
|
28
16
|
@if $style == 'pills' {
|
29
|
-
$height:
|
17
|
+
$height: 1.75rem;
|
18
|
+
padding-left: .5rem;
|
19
|
+
padding-right: .5rem;
|
30
20
|
border-radius: var(--ec-border-radius);
|
21
|
+
border: 1px solid var(--ec-tab-border-color, var(--ec-border-color));
|
22
|
+
|
23
|
+
} @else {
|
24
|
+
padding-left: 0;
|
25
|
+
padding-right: 0;
|
26
|
+
border-bottom: 2px solid transparent;
|
27
|
+
margin-bottom: -1px;
|
31
28
|
}
|
32
29
|
|
33
30
|
align-items: center;
|
34
|
-
|
35
|
-
color: $tab-color;
|
31
|
+
color: var(--ec-tab-color, var(--ec-color-secondary-dark));
|
36
32
|
cursor: pointer;
|
37
|
-
font-size: var(--ec-font-size-label);
|
33
|
+
font-size: var(--ec-tab-font-size, var(--ec-font-size-label));
|
38
34
|
display: flex;
|
39
35
|
height: $height;
|
40
36
|
min-width: $height;
|
41
|
-
|
42
|
-
padding-right: rem-calc(8px);
|
37
|
+
|
43
38
|
justify-content: center;
|
44
39
|
|
45
|
-
@if $style == tabs {
|
46
|
-
margin-bottom: -($tab-border-width);
|
47
|
-
border-top-right-radius: var(--ec-border-radius);
|
48
|
-
border-top-left-radius: var(--ec-border-radius);
|
49
|
-
border-bottom-left-radius: 0;
|
50
|
-
border-bottom-right-radius: 0;
|
51
|
-
}
|
52
|
-
|
53
|
-
&:hover {
|
54
|
-
color: $tab-color-hover;
|
55
|
-
}
|
56
|
-
|
57
40
|
&.active {
|
58
41
|
@include tab-active($style);
|
59
42
|
}
|
60
43
|
|
44
|
+
&:hover,
|
61
45
|
&:focus {
|
62
46
|
// Override the default browser focus ring
|
63
47
|
outline: none;
|
64
48
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
49
|
+
@if $style == 'pills' {
|
50
|
+
border-color: var(--ec-tab-border-color-active, var(--ec-border-color-focus));
|
51
|
+
box-shadow: 0 0 0 1px var(--ec-tab-border-color-active, var(--ec-border-color-focus));
|
52
|
+
position: relative;
|
53
|
+
z-index: 1;
|
54
|
+
} @else {
|
55
|
+
border-color: var(--ec-tab-border-color-active, var(--ec-border-color-focus));
|
70
56
|
}
|
71
57
|
}
|
72
58
|
|
73
59
|
&.is-disabled {
|
74
|
-
|
60
|
+
opacity: var(--ec-form-control-opacity-disabled);
|
75
61
|
cursor: default;
|
62
|
+
pointer-events: none;
|
76
63
|
}
|
77
64
|
}
|
78
65
|
|
@@ -86,7 +73,29 @@ $tab-pill-bg-active: #d2d7d9;
|
|
86
73
|
min-width: 0;
|
87
74
|
|
88
75
|
&:not(:last-child) {
|
89
|
-
|
76
|
+
@if $style == tabs {
|
77
|
+
margin-right: 1rem;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
@if $style == pills {
|
82
|
+
&:not(:first-child) {
|
83
|
+
margin-left: -1px;
|
84
|
+
}
|
85
|
+
|
86
|
+
.tab {
|
87
|
+
border-radius: 0;
|
88
|
+
}
|
89
|
+
|
90
|
+
&:first-child .tab {
|
91
|
+
border-top-left-radius: var(--ec-border-radius);
|
92
|
+
border-bottom-left-radius: var(--ec-border-radius);
|
93
|
+
}
|
94
|
+
|
95
|
+
&:last-child .tab {
|
96
|
+
border-top-right-radius: var(--ec-border-radius);
|
97
|
+
border-bottom-right-radius: var(--ec-border-radius);
|
98
|
+
}
|
90
99
|
}
|
91
100
|
}
|
92
101
|
|
@@ -94,8 +103,6 @@ $tab-pill-bg-active: #d2d7d9;
|
|
94
103
|
display: flex;
|
95
104
|
|
96
105
|
@if $style == tabs {
|
97
|
-
border-bottom:
|
98
|
-
padding-left: rem-calc(16px);
|
99
|
-
padding-right: rem-calc(16px);
|
106
|
+
border-bottom: 1px solid var(--ec-tab-border-color, var(--ec-border-color));
|
100
107
|
}
|
101
108
|
}
|
@@ -1,18 +1,23 @@
|
|
1
1
|
@import '../core';
|
2
2
|
|
3
3
|
$tag-colors: (
|
4
|
-
info:
|
5
|
-
success:
|
6
|
-
warning:
|
7
|
-
danger:
|
8
|
-
accent:
|
9
|
-
chargeback:
|
10
|
-
accrual:
|
4
|
+
info: (bg: var(--ec-color-cobalt-1), border: var(--ec-color-info)),
|
5
|
+
success: (bg: var(--ec-color-green-1), border: var(--ec-color-success)),
|
6
|
+
warning: (bg: var(--ec-color-yellow-1), border: var(--ec-color-caution)),
|
7
|
+
danger: (bg: var(--ec-color-red-1), border: var(--ec-color-danger)),
|
8
|
+
accent: (bg: var(--ec-color-purple-1), border: var(--ec-color-accent)),
|
9
|
+
chargeback: (bg: var(--ec-color-orange-1), border: var(--ec-color-orange-7)),
|
10
|
+
accrual: (bg: var(--ec-color-aqua-1), border: var(--ec-color-aqua-5))
|
11
11
|
);
|
12
12
|
|
13
13
|
@mixin tag-type($type) {
|
14
|
-
|
15
|
-
|
14
|
+
$colors: map-get($tag-colors, $type);
|
15
|
+
background-color: map-get($colors, bg);
|
16
|
+
border-color: map-get($colors, border);
|
17
|
+
|
18
|
+
> .ec-icon:first-child {
|
19
|
+
color: map-get($colors, border);
|
20
|
+
}
|
16
21
|
}
|
17
22
|
|
18
23
|
@mixin tags {
|
@@ -32,8 +37,8 @@ $tag-colors: (
|
|
32
37
|
@mixin tag() {
|
33
38
|
@include truncate;
|
34
39
|
|
35
|
-
background-color:
|
36
|
-
border: 2px solid
|
40
|
+
background-color: var(--ec-color-gray-1);
|
41
|
+
border: 2px solid var(--ec-color-gray-4);
|
37
42
|
display: inline-flex;
|
38
43
|
align-items: center;
|
39
44
|
border-radius: calc(var(--ec-border-radius, .25rem) * 3);
|
@@ -73,20 +78,31 @@ $tag-colors: (
|
|
73
78
|
border: 0;
|
74
79
|
display: flex;
|
75
80
|
align-items: center;
|
76
|
-
padding: 0
|
81
|
+
padding: 0 .25rem;
|
77
82
|
height: 100%;
|
78
83
|
cursor: pointer;
|
84
|
+
position: relative;
|
79
85
|
|
80
86
|
&:hover,
|
81
87
|
&:focus {
|
82
|
-
|
88
|
+
&::before {
|
89
|
+
display: block;
|
90
|
+
content: '';
|
91
|
+
position: absolute;
|
92
|
+
left: .125rem;
|
93
|
+
right: .125rem;
|
94
|
+
top: .0625rem;
|
95
|
+
bottom: .0625rem;
|
96
|
+
background-color: rgba(26, 26, 35, .1);
|
97
|
+
border-radius: .125rem;
|
98
|
+
}
|
83
99
|
outline: none;
|
84
100
|
}
|
85
101
|
}
|
86
102
|
|
87
103
|
@mixin tag-condensed {
|
88
104
|
border-radius: var(--ec-border-radius);
|
89
|
-
border:
|
105
|
+
border-width: 1px;
|
90
106
|
padding: 0 .25rem;
|
91
107
|
height: 1.125rem;
|
92
108
|
line-height: 1.125rem;
|
@@ -96,9 +112,4 @@ $tag-colors: (
|
|
96
112
|
> .ec-icon:first-child {
|
97
113
|
margin-right: .125rem;
|
98
114
|
}
|
99
|
-
|
100
|
-
button {
|
101
|
-
padding-right: .25rem;
|
102
|
-
padding-left: .125rem;
|
103
|
-
}
|
104
115
|
}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32">
|
2
|
-
<path fill="#162F3B" d="M25.477 22.624v1.44h-6.378v-1.12l3.264-2.96c.35-.32.782-.704.916-.928.15-.24.183-.448.183-.672 0-.32-.117-.576-.35-.752-.233-.176-.566-.256-1.015-.256-.567-.016-.916.176-1.216.304-.3.144-.55.336-.75.608l-1.431-.88a3.16 3.16 0 0 1 1.365-1.104c.583-.272 1.249-.4 1.998-.4.633 0 1.182.096 1.649.304a2.6 2.6 0 0 1 1.099.832c.266.368.4.784.4 1.28 0 .448-.1.864-.284 1.248-.2.384-.566.832-1.132 1.328l-1.948 1.76h3.63v-.032Z"/>
|
3
|
-
<path fill="#2D9AB8" d="M17.65 3.2c-4.062 0-7.708 1.76-10.156 4.528l-2.73-1.872C7.826 2.288 12.455 0 17.65 0s9.824 2.288 12.888 5.856l-2.731 1.872C25.36 4.96 21.714 3.2 17.65 3.2Z"/>
|
4
|
-
<path fill="#162F3B" d="M17.65 32c5.196 0 9.825-2.288 12.889-5.856l-2.731-1.872C25.36 27.04 21.714 28.8 17.65 28.8c-7.36 0-13.32-5.728-13.32-12.8 0-2 .499-3.904 1.348-5.584L2.93 8.528A15.409 15.409 0 0 0 1 16c0 8.832 7.46 16 16.65 16Z"/>
|
5
|
-
<path fill="#2D9AB8" d="M13.621 20.352a5.835 5.835 0 0 1-1.715-2.32 5.448 5.448 0 0 1 0-4.096 5.62 5.62 0 0 1 1.715-2.32c2.132-1.808 5.578-1.808 7.71 0a5.835 5.835 0 0 1 1.715 2.32l.1.288a5.744 5.744 0 0 1 1.548.384 4.4 4.4 0 0 1 1.432.944 7.953 7.953 0 0 0-.85-3.136 8.299 8.299 0 0 0-1.764-2.288c-3.23-3.024-8.792-3.024-12.022 0a7.706 7.706 0 0 0-1.765 2.288 7.686 7.686 0 0 0 0 7.12 8.299 8.299 0 0 0 1.765 2.288c1.565 1.456 3.663 2.208 5.778 2.256v-2.384c-1.332-.048-2.631-.48-3.647-1.344Z"/>
|
6
|
-
</svg>
|