@taiga-ui/core 4.8.0 → 4.8.1-canary.0ecc12f

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.
Files changed (28) hide show
  1. package/components/data-list/data-list.tokens.d.ts +3 -4
  2. package/directives/dropdown/dropdown-context.directive.d.ts +1 -1
  3. package/directives/dropdown/dropdown.providers.d.ts +2 -3
  4. package/esm2022/components/data-list/data-list.tokens.mjs +5 -6
  5. package/esm2022/components/root/root.component.mjs +1 -1
  6. package/esm2022/components/scrollbar/scrollbar.directive.mjs +7 -2
  7. package/esm2022/components/scrollbar/scrollbar.service.mjs +3 -3
  8. package/esm2022/components/textfield/textfield.component.mjs +3 -3
  9. package/esm2022/components/textfield/textfield.directive.mjs +9 -3
  10. package/esm2022/directives/dropdown/dropdown-context.directive.mjs +9 -9
  11. package/esm2022/directives/dropdown/dropdown.component.mjs +3 -3
  12. package/esm2022/directives/dropdown/dropdown.providers.mjs +3 -4
  13. package/esm2022/tokens/dark-mode.mjs +30 -32
  14. package/fesm2022/taiga-ui-core-components-data-list.mjs +5 -5
  15. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  16. package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
  17. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +8 -3
  18. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-core-components-textfield.mjs +10 -4
  20. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-core-directives-dropdown.mjs +12 -12
  22. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-core-tokens.mjs +28 -30
  24. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  25. package/package.json +324 -324
  26. package/styles/components/textfield.less +10 -16
  27. package/styles/theme/appearance/textfield.less +0 -4
  28. package/tokens/dark-mode.d.ts +3 -3
@@ -140,15 +140,13 @@ tui-textfield {
140
140
 
141
141
  &:has(label:not(:empty)) {
142
142
  .t-template,
143
- input,
144
- select {
143
+ input:defined,
144
+ select:defined {
145
145
  padding-top: calc(var(--t-height) / 3);
146
146
 
147
- &:not(:-webkit-autofill)::placeholder,
147
+ &::placeholder,
148
148
  &._empty {
149
- caret-color: var(--tui-text-primary);
150
- color: transparent !important;
151
- -webkit-text-fill-color: transparent !important;
149
+ color: transparent;
152
150
  }
153
151
  }
154
152
  }
@@ -156,15 +154,13 @@ tui-textfield {
156
154
  // TODO: Fallback until Safari 15.4
157
155
  &._with-label {
158
156
  .t-template,
159
- input,
160
- select {
157
+ input:defined,
158
+ select:defined {
161
159
  padding-top: calc(var(--t-height) / 3);
162
160
 
163
- &:not(:-webkit-autofill)::placeholder,
161
+ &::placeholder,
164
162
  &._empty {
165
- caret-color: var(--tui-text-primary);
166
- color: transparent !important;
167
- -webkit-text-fill-color: transparent !important;
163
+ color: transparent;
168
164
  }
169
165
  }
170
166
  }
@@ -172,7 +168,7 @@ tui-textfield {
172
168
  .t-template,
173
169
  input:defined,
174
170
  select:defined {
175
- .fullsize(absolute, inset);
171
+ .fullsize();
176
172
 
177
173
  appearance: none;
178
174
  box-sizing: border-box;
@@ -233,9 +229,7 @@ tui-textfield {
233
229
  .appearance-focus({
234
230
  &::placeholder,
235
231
  &._empty {
236
- caret-color: var(--tui-text-primary);
237
- color: transparent !important;
238
- -webkit-text-fill-color: var(--tui-text-tertiary) !important;
232
+ color: var(--tui-text-tertiary);
239
233
  }
240
234
 
241
235
  & ~ label {
@@ -42,10 +42,6 @@
42
42
  caret-color: var(--tui-text-primary) !important;
43
43
  box-shadow: 0 0 0 100rem var(--tui-service-autofill-background) inset !important;
44
44
  transition: background-color 600000s 0s;
45
-
46
- &::placeholder {
47
- -webkit-text-fill-color: var(--tui-text-secondary);
48
- }
49
45
  }
50
46
  }
51
47
 
@@ -1,6 +1,6 @@
1
- import { InjectionToken, type WritableSignal } from '@angular/core';
1
+ import { type WritableSignal } from '@angular/core';
2
2
  export declare const TUI_DARK_MODE_DEFAULT_KEY = "tuiDark";
3
- export declare const TUI_DARK_MODE_KEY: InjectionToken<string>;
4
- export declare const TUI_DARK_MODE: InjectionToken<WritableSignal<boolean> & {
3
+ export declare const TUI_DARK_MODE_KEY: import("@angular/core").InjectionToken<string>;
4
+ export declare const TUI_DARK_MODE: import("@angular/core").InjectionToken<WritableSignal<boolean> & {
5
5
  reset(): void;
6
6
  }>;