@ng-matero/extensions 18.4.2 → 18.5.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.
@@ -15,6 +15,7 @@ $_tokens: tokens-mtx-select.$prefix, tokens-mtx-select.get-token-slots();
15
15
  $filled-padding-top: var(--mat-form-field-filled-with-label-container-padding-top);
16
16
  $filled-padding-bottom: var(--mat-form-field-filled-with-label-container-padding-bottom);
17
17
  $vertical-padding: var(--mat-form-field-container-vertical-padding);
18
+ $text-line-height: var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));
18
19
 
19
20
  padding: $filled-padding-top 16px $filled-padding-bottom;
20
21
  margin: calc($filled-padding-top * -1) -16px calc($filled-padding-bottom * -1);
@@ -34,17 +35,21 @@ $_tokens: tokens-mtx-select.$prefix, tokens-mtx-select.get-token-slots();
34
35
 
35
36
  .ng-value-container {
36
37
  align-items: center;
38
+ gap: 4px;
37
39
 
38
40
  .ng-input>input {
39
- padding: 0;
41
+ height: $text-line-height;
40
42
  color: inherit;
41
43
  font: inherit;
42
44
  }
43
45
  }
44
46
 
45
47
  .ng-clear-wrapper {
48
+ display: inline-flex;
49
+ justify-content: center;
50
+ align-items: center;
46
51
  width: 24px;
47
- text-align: center;
52
+ height: $text-line-height;
48
53
  }
49
54
  }
50
55
 
@@ -93,10 +98,12 @@ $_tokens: tokens-mtx-select.$prefix, tokens-mtx-select.get-token-slots();
93
98
 
94
99
  &.ng-select-multiple {
95
100
  .ng-select-container .ng-value-container .ng-value {
96
- margin: 2px 4px 2px 0;
97
- border-radius: 16px;
101
+ display: inline-flex;
102
+ align-items: center;
103
+ height: $text-line-height;
104
+ padding: 0 calc(($text-line-height - 16px) / 2);
105
+ border-radius: 9999px;
98
106
  font-size: .875em;
99
- line-height: 18px;
100
107
 
101
108
  @include token-utils.create-token-slot(background-color, multiple-value-background-color);
102
109
 
@@ -104,50 +111,32 @@ $_tokens: tokens-mtx-select.$prefix, tokens-mtx-select.get-token-slots();
104
111
 
105
112
  border: 1px solid $border-color;
106
113
 
107
- @include rtl {
108
- margin-right: auto;
109
- margin-left: 4px;
110
- }
111
-
112
114
  &.ng-value-disabled {
113
115
  opacity: .4;
114
116
  }
115
117
 
116
118
  .ng-value-label {
117
119
  display: inline-block;
118
- margin: 0 8px;
120
+ margin: 0 4px;
121
+ line-height: 16px;
119
122
  }
120
123
 
121
124
  .ng-value-icon {
122
- display: inline-block;
123
- width: 18px;
124
- height: 18px;
125
- border-radius: 100%;
125
+ width: 16px;
126
+ height: 16px;
127
+ line-height: 16px;
128
+ border-radius: 50%;
126
129
  text-align: center;
127
130
 
128
- &.left {
129
- margin-right: -4px;
130
-
131
- @include rtl {
132
- margin-left: -4px;
133
- margin-right: auto;
134
- }
135
- }
136
-
137
- &.right {
138
- margin-left: -4px;
139
-
140
- @include rtl {
141
- margin-right: -4px;
142
- margin-left: auto;
143
- }
144
- }
145
-
146
131
  &:hover {
147
132
  @include token-utils.create-token-slot(background-color, multiple-value-icon-hover-background-color);
148
133
  }
149
134
  }
150
135
  }
136
+
137
+ &.ng-select-disabled .ng-select-container .ng-value-container .ng-value {
138
+ border-color: token-utils.get-token-variable(multiple-value-disabled-outline-color);
139
+ }
151
140
  }
152
141
 
153
142
  .ng-arrow-wrapper {
@@ -37,7 +37,7 @@
37
37
  }
38
38
  }
39
39
 
40
- &._mat-animation-noopable {
40
+ &._mtx-animation-noopable {
41
41
  animation: none;
42
42
  transform: scale(1);
43
43
  }