@energycap/components 0.43.3-ECAP-26516-add-party-hat-icon.20250325-1153 → 0.43.4-ECAP-29229-tag-component.20250502-1711
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 +1 -1
- package/esm2022/lib/display/tags/tag.mjs +1 -1
- package/esm2022/lib/display/tags/tags.component.mjs +3 -3
- package/fesm2022/energycap-components.mjs +2 -2
- package/fesm2022/energycap-components.mjs.map +1 -1
- package/lib/display/tags/tag.d.ts +1 -1
- package/package.json +1 -1
- package/src/styles/components/_tag.scss +18 -0
- package/src/styles/index.scss +1 -0
- package/src/styles/mixins/_tags-base.scss +8 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
/** Tag type used to style the tag */
|
2
|
-
export type TagType = "info" | "success" | "warning" | "danger" | "accent" | "chargeback" | "accrual" | "inverted" | "system";
|
2
|
+
export type TagType = "info" | "success" | "warning" | "danger" | "accent" | "chargeback" | "accrual" | "inverted" | "system" | "interval";
|
3
3
|
/** Link target options, shared amongst tag, menu and item display */
|
4
4
|
export type LinkTarget = '_self' | '_blank' | '_parent' | '_top';
|
5
5
|
/** Tag contains a label and type. Type is default by default */
|
package/package.json
CHANGED
package/src/styles/index.scss
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
@import '../core';
|
2
|
+
@import '../mixins/text';
|
2
3
|
|
3
4
|
$tag-colors: (
|
4
5
|
info: (bg: var(--ec-color-cobalt-1), border: var(--ec-color-info)),
|
@@ -9,6 +10,7 @@ $tag-colors: (
|
|
9
10
|
chargeback: (bg: var(--ec-color-orange-1), border: var(--ec-color-orange-7)),
|
10
11
|
accrual: (bg: var(--ec-color-aqua-1), border: var(--ec-color-aqua-5)),
|
11
12
|
system: (bg: var(--ec-color-gray-1), border: var(--ec-color-gray-4)),
|
13
|
+
interval:(bg: var(--ec-color-gray-1), border: var(--ec-color-brand-black)),
|
12
14
|
);
|
13
15
|
|
14
16
|
@mixin tag-type($type) {
|
@@ -36,6 +38,7 @@ $tag-colors: (
|
|
36
38
|
}
|
37
39
|
|
38
40
|
@mixin tag() {
|
41
|
+
@include text-caption-1;
|
39
42
|
@include truncate;
|
40
43
|
|
41
44
|
background-color: var(--ec-color-gray-1);
|
@@ -45,7 +48,7 @@ $tag-colors: (
|
|
45
48
|
border-radius: calc(var(--ec-border-radius, .25rem) * 3);
|
46
49
|
height: 1.5rem;
|
47
50
|
line-height: 1.25rem;
|
48
|
-
padding: 0 0.4375rem;
|
51
|
+
padding: 0 var(--ec-tag-padding-x, 0.4375rem);
|
49
52
|
vertical-align: top;
|
50
53
|
|
51
54
|
> .ec-icon:first-child {
|
@@ -83,6 +86,7 @@ $tag-colors: (
|
|
83
86
|
height: 100%;
|
84
87
|
cursor: pointer;
|
85
88
|
position: relative;
|
89
|
+
margin-right: calc(0rem - var(--ec-tag-padding-x, 0.4375rem));
|
86
90
|
|
87
91
|
&:hover,
|
88
92
|
&:focus {
|
@@ -102,9 +106,11 @@ $tag-colors: (
|
|
102
106
|
}
|
103
107
|
|
104
108
|
@mixin tag-condensed {
|
109
|
+
@include text-caption-2;
|
110
|
+
--ec-tag-padding-x: 0.25rem;
|
111
|
+
|
105
112
|
border-radius: var(--ec-border-radius);
|
106
113
|
border-width: 1px;
|
107
|
-
padding: 0 .25rem;
|
108
114
|
height: 1.125rem;
|
109
115
|
line-height: 1.125rem;
|
110
116
|
min-width: 1.125rem;
|