@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.43.3-ECAP-26516-add-party-hat-icon.20250325-1153",
3
+ "version": "0.43.4-ECAP-29229-tag-component.20250502-1711",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"
@@ -0,0 +1,18 @@
1
+ @import '../mixins/tags-base';
2
+
3
+ .tag {
4
+ @include tag;
5
+
6
+ &.is-condensed {
7
+ @include tag-condensed;
8
+ }
9
+
10
+ a::after {
11
+ opacity: 1;
12
+ margin-left: .1875rem;
13
+ }
14
+ }
15
+
16
+ .tag-close-btn {
17
+ @include tag-close-btn;
18
+ }
@@ -16,6 +16,7 @@
16
16
  @import 'components/splash';
17
17
  @import 'components/unsupported-browsers';
18
18
  @import 'components/link-icons';
19
+ @import 'components/tag';
19
20
 
20
21
  /*!
21
22
  * EnergyCAP Components - Utility Styles
@@ -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;