@taiga-ui/core 4.24.0 → 4.25.0-canary.7a6c06d
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/directives/dropdown/dropdown-context.directive.d.ts +2 -1
- package/directives/dropdown/dropdown.component.d.ts +4 -1
- package/esm2022/components/button/button.directive.mjs +2 -2
- package/esm2022/components/data-list/data-list.component.mjs +3 -3
- package/esm2022/components/dialog/dialog.component.mjs +3 -3
- package/esm2022/components/root/root.component.mjs +2 -2
- package/esm2022/components/textfield/textfield.component.mjs +3 -3
- package/esm2022/directives/appearance/appearance.bindings.mjs +1 -1
- package/esm2022/directives/appearance/appearance.directive.mjs +3 -4
- package/esm2022/directives/dropdown/dropdown-context.directive.mjs +4 -3
- package/esm2022/directives/dropdown/dropdown.component.mjs +11 -8
- package/esm2022/directives/surface/surface.directive.mjs +2 -2
- package/esm2022/utils/miscellaneous/font-scaling.mjs +11 -0
- package/esm2022/utils/miscellaneous/index.mjs +2 -1
- package/fesm2022/taiga-ui-core-components-button.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-data-list.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-dialog.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
- package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-textfield.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-appearance.mjs +2 -3
- package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-dropdown.mjs +13 -9
- package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-surface.mjs +2 -2
- package/fesm2022/taiga-ui-core-directives-surface.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +12 -2
- package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
- package/package.json +9 -9
- package/styles/components/appearance.less +2 -2
- package/styles/components/button.less +2 -1
- package/styles/components/textfield.less +2 -1
- package/styles/mixins/mixins.less +4 -3
- package/styles/mixins/mixins.scss +2 -2
- package/styles/theme/appearance/primary.less +0 -2
- package/styles/theme/variables.less +16 -15
- package/utils/miscellaneous/font-scaling.d.ts +2 -0
- package/utils/miscellaneous/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.25.0-canary.7a6c06d",
|
|
4
4
|
"description": "Core library for creating Angular components and applications using Taiga UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"esm": "./esm2022/animations/taiga-ui-core-animations.mjs",
|
|
32
32
|
"default": "./fesm2022/taiga-ui-core-animations.mjs"
|
|
33
33
|
},
|
|
34
|
-
"./classes": {
|
|
35
|
-
"types": "./classes/index.d.ts",
|
|
36
|
-
"esm2022": "./esm2022/classes/taiga-ui-core-classes.mjs",
|
|
37
|
-
"esm": "./esm2022/classes/taiga-ui-core-classes.mjs",
|
|
38
|
-
"default": "./fesm2022/taiga-ui-core-classes.mjs"
|
|
39
|
-
},
|
|
40
34
|
"./components": {
|
|
41
35
|
"types": "./components/index.d.ts",
|
|
42
36
|
"esm2022": "./esm2022/components/taiga-ui-core-components.mjs",
|
|
43
37
|
"esm": "./esm2022/components/taiga-ui-core-components.mjs",
|
|
44
38
|
"default": "./fesm2022/taiga-ui-core-components.mjs"
|
|
45
39
|
},
|
|
40
|
+
"./classes": {
|
|
41
|
+
"types": "./classes/index.d.ts",
|
|
42
|
+
"esm2022": "./esm2022/classes/taiga-ui-core-classes.mjs",
|
|
43
|
+
"esm": "./esm2022/classes/taiga-ui-core-classes.mjs",
|
|
44
|
+
"default": "./fesm2022/taiga-ui-core-classes.mjs"
|
|
45
|
+
},
|
|
46
46
|
"./directives": {
|
|
47
47
|
"types": "./directives/index.d.ts",
|
|
48
48
|
"esm2022": "./esm2022/directives/taiga-ui-core-directives.mjs",
|
|
@@ -317,9 +317,9 @@
|
|
|
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.
|
|
320
|
+
"@taiga-ui/cdk": "^4.25.0",
|
|
321
321
|
"@taiga-ui/event-plugins": "^4.4.0",
|
|
322
|
-
"@taiga-ui/i18n": "^4.
|
|
322
|
+
"@taiga-ui/i18n": "^4.25.0",
|
|
323
323
|
"@taiga-ui/polymorpheus": "^4.8.0",
|
|
324
324
|
"rxjs": ">=7.0.0"
|
|
325
325
|
},
|
|
@@ -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-color, opacity, box-shadow, border, border-radius;
|
|
29
|
+
transition-property: color, background-color, opacity, box-shadow, border, border-radius, filter;
|
|
30
30
|
|
|
31
31
|
&.tui-appearance-initializing {
|
|
32
32
|
transition: none !important;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
.appearance-disabled({
|
|
40
|
-
|
|
40
|
+
cursor: initial;
|
|
41
41
|
opacity: var(--tui-disabled-opacity);
|
|
42
42
|
});
|
|
43
43
|
}
|
|
@@ -111,8 +111,9 @@
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
&[tuiButtonVertical] {
|
|
114
|
+
// StackBlitz changes "0rem" to "0" breaking calc
|
|
115
|
+
--t-margin: ~'0rem' !important;
|
|
114
116
|
--t-line-height: 1rem;
|
|
115
|
-
--t-margin: var(--t-0, 0rem) !important;
|
|
116
117
|
|
|
117
118
|
flex-direction: column;
|
|
118
119
|
flex-shrink: 1;
|
|
@@ -173,7 +173,8 @@ tui-textfield {
|
|
|
173
173
|
padding: inherit;
|
|
174
174
|
border: none;
|
|
175
175
|
text-indent: var(--t-left, 0);
|
|
176
|
-
|
|
176
|
+
// StackBlitz changes "0rem" to "0" breaking calc
|
|
177
|
+
padding-inline-end: calc(var(--t-right, ~'0rem') + var(--t-side) + var(--t-padding));
|
|
177
178
|
}
|
|
178
179
|
|
|
179
180
|
.t-template {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
.interactive(@ruleset) {
|
|
4
4
|
// TODO remove after dropping Safari 13 support
|
|
5
|
-
&:matches(a, button, select, textarea, input, label) {
|
|
5
|
+
&:matches(a, button, select, textarea, input, label):not(:disabled) {
|
|
6
6
|
@ruleset();
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
&:is(a, button, select, textarea, input, label) {
|
|
9
|
+
&:is(a, button, select, textarea, input, label):not(:disabled) {
|
|
10
10
|
@ruleset();
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
overflow: hidden;
|
|
72
72
|
vertical-align: middle;
|
|
73
73
|
max-inline-size: 100%;
|
|
74
|
-
|
|
74
|
+
// StackBlitz changes "0rem" to "0" breaking calc
|
|
75
|
+
gap: calc(var(--t-gap, ~'0rem') - 2 * var(--t-margin, 0rem));
|
|
75
76
|
|
|
76
77
|
> img,
|
|
77
78
|
> tui-svg,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@mixin interactive {
|
|
4
4
|
// TODO remove after dropping Safari 13 support
|
|
5
|
-
&:matches(a, button, select, textarea, input) {
|
|
5
|
+
&:matches(a, button, select, textarea, input):not(:disabled) {
|
|
6
6
|
@content;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
&:is(a, button, select, textarea, input) {
|
|
9
|
+
&:is(a, button, select, textarea, input):not(:disabled) {
|
|
10
10
|
@content;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -4,24 +4,25 @@
|
|
|
4
4
|
// Fonts
|
|
5
5
|
--tui-font-heading: 'Manrope', @font-fallback;
|
|
6
6
|
--tui-font-text: 'Manrope', @font-fallback;
|
|
7
|
+
--tui-font-offset: 0rem;
|
|
7
8
|
// Heading
|
|
8
|
-
--tui-font-heading-1: bold 3.125rem/3.5rem var(--tui-font-heading);
|
|
9
|
-
--tui-font-heading-2: bold 2.75rem/3rem var(--tui-font-heading);
|
|
10
|
-
--tui-font-heading-3: bold 2.25rem/2.5rem var(--tui-font-heading);
|
|
11
|
-
--tui-font-heading-4: bold 1.75rem/2rem var(--tui-font-heading);
|
|
12
|
-
--tui-font-heading-5: bold 1.5rem/1.75rem var(--tui-font-heading);
|
|
13
|
-
--tui-font-heading-6: bold 1.25rem/1.5rem var(--tui-font-heading);
|
|
9
|
+
--tui-font-heading-1: bold calc(var(--tui-font-offset) + 3.125rem) / 3.5rem var(--tui-font-heading);
|
|
10
|
+
--tui-font-heading-2: bold calc(var(--tui-font-offset) + 2.75rem) / 3rem var(--tui-font-heading);
|
|
11
|
+
--tui-font-heading-3: bold calc(var(--tui-font-offset) + 2.25rem) / 2.5rem var(--tui-font-heading);
|
|
12
|
+
--tui-font-heading-4: bold calc(var(--tui-font-offset) + 1.75rem) / 2rem var(--tui-font-heading);
|
|
13
|
+
--tui-font-heading-5: bold calc(var(--tui-font-offset) + 1.5rem) / 1.75rem var(--tui-font-heading);
|
|
14
|
+
--tui-font-heading-6: bold calc(var(--tui-font-offset) + 1.25rem) / 1.5rem var(--tui-font-heading);
|
|
14
15
|
// Body
|
|
15
|
-
--tui-font-text-xl: normal 1.1875rem/1.75rem var(--tui-font-text);
|
|
16
|
-
--tui-font-text-l: normal 1.0625rem/1.75rem var(--tui-font-text);
|
|
17
|
-
--tui-font-text-m: normal 1rem/1.5rem var(--tui-font-text);
|
|
18
|
-
--tui-font-text-s: normal 0.8125rem/1.25rem var(--tui-font-text);
|
|
19
|
-
--tui-font-text-xs: normal 0.6875rem/1rem var(--tui-font-text);
|
|
16
|
+
--tui-font-text-xl: normal calc(var(--tui-font-offset) + 1.1875rem) / 1.75rem var(--tui-font-text);
|
|
17
|
+
--tui-font-text-l: normal calc(var(--tui-font-offset) + 1.0625rem) / 1.75rem var(--tui-font-text);
|
|
18
|
+
--tui-font-text-m: normal calc(var(--tui-font-offset) + 1rem) / 1.5rem var(--tui-font-text);
|
|
19
|
+
--tui-font-text-s: normal calc(var(--tui-font-offset) + 0.8125rem) / 1.25rem var(--tui-font-text);
|
|
20
|
+
--tui-font-text-xs: normal calc(var(--tui-font-offset) + 0.6875rem) / 1rem var(--tui-font-text);
|
|
20
21
|
// Reduced
|
|
21
|
-
--tui-font-text-ui-l: normal 1.0625rem/1.5rem var(--tui-font-text);
|
|
22
|
-
--tui-font-text-ui-m: normal 1rem/1.25rem var(--tui-font-text);
|
|
23
|
-
--tui-font-text-ui-s: normal 0.8125rem/1rem var(--tui-font-text);
|
|
24
|
-
--tui-font-text-ui-xs: normal 0.6875rem/0.8125rem var(--tui-font-text);
|
|
22
|
+
--tui-font-text-ui-l: normal calc(var(--tui-font-offset) + 1.0625rem) / 1.5rem var(--tui-font-text);
|
|
23
|
+
--tui-font-text-ui-m: normal calc(var(--tui-font-offset) + 1rem) / 1.25rem var(--tui-font-text);
|
|
24
|
+
--tui-font-text-ui-s: normal calc(var(--tui-font-offset) + 0.8125rem) / 1rem var(--tui-font-text);
|
|
25
|
+
--tui-font-text-ui-xs: normal calc(var(--tui-font-offset) + 0.6875rem) / 0.8125rem var(--tui-font-text);
|
|
25
26
|
// Radii
|
|
26
27
|
--tui-radius-xs: 0.25rem;
|
|
27
28
|
--tui-radius-s: 0.5rem;
|