@evotor-dev/ui-kit 8.6.0 → 8.7.1

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.
@@ -9,7 +9,8 @@ export declare enum EvoChipType {
9
9
  }
10
10
  export declare enum EvoChipTheme {
11
11
  grey = "grey",// default
12
- white = "white"
12
+ white = "white",
13
+ custom = "custom"
13
14
  }
14
15
  export declare class EvoChipComponent extends EvoBaseControl implements ControlValueAccessor, OnInit, AfterViewInit {
15
16
  type: EvoChipType | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evotor-dev/ui-kit",
3
- "version": "8.6.0",
3
+ "version": "8.7.1",
4
4
  "homepage": "https://evotor.github.io/Evo-UI-Kit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,4 +1,4 @@
1
- @use "sass:math";
1
+ @use 'sass:math';
2
2
  @import '../mixins.scss';
3
3
 
4
4
  .chip {
@@ -26,7 +26,9 @@
26
26
  border-radius: math.div($height, 2);
27
27
 
28
28
  cursor: pointer;
29
- transition: color 0.3s, background-color 0.3s;
29
+ transition:
30
+ color 0.3s,
31
+ background-color 0.3s;
30
32
 
31
33
  user-select: none;
32
34
  }
@@ -97,6 +99,44 @@
97
99
  }
98
100
  }
99
101
 
102
+ &_theme-custom:not(&_type-label) {
103
+ input:not(:checked) {
104
+ & + #{$parent-selector}__label {
105
+ color: var(--evo-chip-color, $color-link);
106
+ background-color: var(--evo-chip-background-color, $color-background-grey);
107
+ }
108
+
109
+ &:focus + #{$parent-selector}__label,
110
+ &:hover + #{$parent-selector}__label {
111
+ color: var(--evo-chip-color-hover, $color-link);
112
+ background-color: var(--evo-chip-background-color-hover, $color-grey-hover);
113
+ }
114
+
115
+ &:active + #{$parent-selector}__label {
116
+ color: var(--evo-chip-color-active, $color-link);
117
+ background-color: var(--evo-chip-background-color-active, $color-grey-active);
118
+ }
119
+ }
120
+
121
+ input:checked {
122
+ & + #{$parent-selector}__label {
123
+ color: var(--evo-chip-checked-color, $color-white) !important;
124
+ background-color: var(--evo-chip-checked-background-color, $color-link) !important;
125
+ }
126
+
127
+ &:focus + #{$parent-selector}__label,
128
+ &:hover + #{$parent-selector}__label {
129
+ color: var(--evo-chip-color-hover, $color-link) !important;
130
+ background-color: var(--evo-chip-checked-background-color-hover, $color-link-hover) !important;
131
+ }
132
+
133
+ &:active + #{$parent-selector}__label {
134
+ color: var(--evo-chip-color-active, $color-link) !important;
135
+ background-color: var(--evo-chip-checked-background-color-active, $color-link-active) !important;
136
+ }
137
+ }
138
+ }
139
+
100
140
  &_type-label {
101
141
  #{$parent-selector}__label {
102
142
  color: $color-white;