@taiga-ui/core 4.20.0 → 4.21.0-canary.4cd9438

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 (35) hide show
  1. package/components/dialog/dialog.factory.d.ts +1 -1
  2. package/components/textfield/select.directive.d.ts +1 -1
  3. package/components/textfield/textfield.component.d.ts +3 -3
  4. package/components/textfield/textfield.directive.d.ts +1 -1
  5. package/directives/hint/hint.component.d.ts +0 -1
  6. package/esm2022/components/data-list/data-list.component.mjs +3 -3
  7. package/esm2022/components/dialog/dialog.factory.mjs +1 -1
  8. package/esm2022/components/root/root.component.mjs +2 -2
  9. package/esm2022/components/textfield/select.directive.mjs +6 -6
  10. package/esm2022/components/textfield/textfield.component.mjs +9 -9
  11. package/esm2022/components/textfield/textfield.directive.mjs +2 -2
  12. package/esm2022/directives/appearance/appearance.directive.mjs +2 -2
  13. package/esm2022/directives/hint/hint-position.directive.mjs +6 -6
  14. package/esm2022/directives/hint/hint.component.mjs +4 -8
  15. package/esm2022/directives/surface/surface.directive.mjs +2 -2
  16. package/fesm2022/taiga-ui-core-components-data-list.mjs +2 -2
  17. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  18. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
  20. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-core-components-textfield.mjs +14 -14
  22. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-core-directives-appearance.mjs +2 -2
  24. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-core-directives-hint.mjs +10 -14
  26. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-core-directives-surface.mjs +2 -2
  28. package/fesm2022/taiga-ui-core-directives-surface.mjs.map +1 -1
  29. package/package.json +4 -4
  30. package/styles/components/appearance.less +1 -1
  31. package/styles/mixins/mixins.less +3 -3
  32. package/styles/mixins/mixins.scss +3 -3
  33. package/styles/theme/appearance/table.less +66 -0
  34. package/styles/theme/appearance/textfield.less +1 -1
  35. package/styles/theme/appearance.less +1 -0
@@ -0,0 +1,66 @@
1
+ @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
+
3
+ /*
4
+ TODO: remove :not([tuiWrapper]) after legacy controls deletion
5
+ */
6
+ [tuiAppearance][data-appearance='table']:not([tuiWrapper]) {
7
+ content: '';
8
+ position: fixed;
9
+ /* TODO: Use inset: -0.0625rem after Safari 14+ support */
10
+ top: -0.0625rem;
11
+ bottom: -0.0625rem;
12
+ left: -0.0625rem;
13
+ right: -0.0625rem;
14
+ inline-size: auto;
15
+ block-size: auto;
16
+ border-radius: 0;
17
+ background: transparent;
18
+ border: none;
19
+ outline: none;
20
+ padding-bottom: calc(var(--t-row-height) - var(--t-height));
21
+
22
+ &:not(._empty) {
23
+ color: var(--tui-text-primary);
24
+ }
25
+
26
+ .appearance-hover({
27
+ &[data-focus='false'] {
28
+ background-color: var(--tui-background-neutral-1);
29
+ }
30
+ });
31
+
32
+ .appearance-focus({
33
+ outline-offset: -0.125rem;
34
+ outline: 0.125rem solid var(--tui-border-focus);
35
+ });
36
+
37
+ &:invalid,
38
+ &[data-mode~='invalid'] {
39
+ background-origin: border-box;
40
+ background-position: top right;
41
+ background-repeat: no-repeat;
42
+ background-image: linear-gradient(to top right, transparent 0% 50%, var(--tui-status-negative) 50% 100%);
43
+ background-size: 0.5rem 0.5rem;
44
+
45
+ &[data-focus='false'] {
46
+ background-color: var(--tui-status-negative-pale);
47
+ }
48
+
49
+ .appearance-hover({
50
+ &[data-focus='false'] {
51
+ background-color: var(--tui-status-negative-pale-hover);
52
+ }
53
+ });
54
+
55
+ .appearance-disabled({
56
+ background: transparent;
57
+ outline: none;
58
+ });
59
+
60
+ .appearance-focus({
61
+ background-color: transparent;
62
+ outline-offset: -0.0625rem;
63
+ outline: 0.0625rem solid var(--tui-status-negative);
64
+ });
65
+ }
66
+ }
@@ -1,7 +1,7 @@
1
1
  @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
2
 
3
3
  [tuiAppearance][data-appearance='textfield'] {
4
- .transition(~'box-shadow, background, outline-color, border-color');
4
+ .transition(~'box-shadow, background-color, outline-color, border-color');
5
5
 
6
6
  --t-shadow: 0 0.125rem 0.1875rem rgba(0, 0, 0, 0.1);
7
7
 
@@ -8,5 +8,6 @@
8
8
  @import 'appearance/primary.less';
9
9
  @import 'appearance/secondary.less';
10
10
  @import 'appearance/status.less';
11
+ @import 'appearance/table.less';
11
12
  // Do not add it, we need it separately in proprietary theme
12
13
  // @import 'appearance/textfield.less';