@taiga-ui/core 4.20.0 → 4.21.0-canary.07e335a

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/core",
3
- "version": "4.20.0",
3
+ "version": "4.21.0-canary.07e335a",
4
4
  "description": "Core library for creating Angular components and applications using Taiga UI",
5
5
  "keywords": [
6
6
  "angular",
@@ -317,10 +317,10 @@
317
317
  "@angular/router": ">=16.0.0",
318
318
  "@ng-web-apis/common": "^4.11.1",
319
319
  "@ng-web-apis/mutation-observer": "^4.11.1",
320
- "@taiga-ui/cdk": "^4.20.0",
320
+ "@taiga-ui/cdk": "^4.21.0",
321
321
  "@taiga-ui/event-plugins": "^4.3.1",
322
- "@taiga-ui/i18n": "^4.20.0",
323
- "@taiga-ui/polymorpheus": "^4.7.4",
322
+ "@taiga-ui/i18n": "^4.21.0",
323
+ "@taiga-ui/polymorpheus": "^4.8.0",
324
324
  "rxjs": ">=7.0.0"
325
325
  },
326
326
  "schematics": "./schematics/collection.json",
@@ -26,7 +26,7 @@
26
26
  appearance: none;
27
27
  outline: 0.125rem solid transparent;
28
28
  outline-offset: -0.125rem;
29
- transition-property: color, background, opacity, box-shadow, border, border-radius;
29
+ transition-property: color, background-color, opacity, box-shadow, border, border-radius;
30
30
 
31
31
  &.tui-appearance-initializing {
32
32
  transition: none !important;
@@ -1,12 +1,12 @@
1
1
  @import 'browsers.less';
2
2
 
3
3
  .interactive(@ruleset) {
4
- // TODO switch to :is after Safari 14 support
5
- &:-webkit-any(a, button, select, textarea, input, label) {
4
+ // TODO remove after dropping Safari 13 support
5
+ &:matches(a, button, select, textarea, input, label) {
6
6
  @ruleset();
7
7
  }
8
8
 
9
- &:-moz-any(a, button, select, textarea, input, label) {
9
+ &:is(a, button, select, textarea, input, label) {
10
10
  @ruleset();
11
11
  }
12
12
  }
@@ -1,12 +1,12 @@
1
1
  @import 'browsers.scss';
2
2
 
3
3
  @mixin interactive {
4
- // TODO switch to :is after Safari 14 and FF 78 support
5
- &:-webkit-any(a, button, select, textarea, input) {
4
+ // TODO remove after dropping Safari 13 support
5
+ &:matches(a, button, select, textarea, input) {
6
6
  @content;
7
7
  }
8
8
 
9
- &:-moz-any(a, button, select, textarea, input) {
9
+ &:is(a, button, select, textarea, input) {
10
10
  @content;
11
11
  }
12
12
  }
@@ -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';