@taiga-ui/core 4.50.0-canary.f66e0da → 4.51.0
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/appearance/appearance.directive.d.ts +2 -2
- package/esm2022/components/dialog/dialogs.component.mjs +3 -3
- package/esm2022/components/loader/loader.component.mjs +3 -3
- package/esm2022/components/root/root.component.mjs +2 -2
- package/esm2022/components/scrollbar/scroll-controls.component.mjs +3 -3
- package/esm2022/components/textfield/textfield-multi/textfield-item.component.mjs +3 -3
- package/esm2022/components/textfield/textfield-multi/textfield-multi.component.mjs +11 -5
- package/esm2022/components/textfield/textfield.component.mjs +9 -4
- package/esm2022/directives/appearance/appearance.directive.mjs +9 -12
- package/esm2022/directives/hint/hint-describe.directive.mjs +3 -2
- package/esm2022/tokens/number-format.mjs +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-loader.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-loader.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-scrollbar.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-textfield.mjs +19 -8
- package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-appearance.mjs +8 -11
- package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-hint.mjs +2 -1
- package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
- package/package.json +3 -3
- package/styles/components/appearance.less +0 -4
- package/styles/components/textfield.less +9 -3
- package/styles/mixins/slider.less +33 -27
- package/styles/mixins/slider.scss +39 -19
- package/tokens/number-format.d.ts +1 -1
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
@thumb-diameters: {
|
|
2
2
|
@s: 0.5rem;
|
|
3
3
|
@m: 0.75rem;
|
|
4
|
+
@l: 0.75rem;
|
|
4
5
|
};
|
|
5
6
|
|
|
7
|
+
@track-inset: {
|
|
8
|
+
@s: 0.625rem;
|
|
9
|
+
@m: 0.75rem;
|
|
10
|
+
@l: 1rem;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// TODO(v5): use `l` by default (default size for new textfields)
|
|
6
14
|
.tui-slider-ticks-labels(@input-size: m) {
|
|
7
|
-
@
|
|
15
|
+
@thumb: @thumb-diameters[@@input-size];
|
|
16
|
+
|
|
17
|
+
--t-offset: calc(@thumb / 2);
|
|
8
18
|
|
|
9
19
|
display: flex;
|
|
10
|
-
margin: 0 @first-tick-center;
|
|
11
20
|
font: var(--tui-font-text-s);
|
|
21
|
+
margin-inline-start: var(--t-offset);
|
|
22
|
+
margin-inline-end: var(--t-offset);
|
|
12
23
|
|
|
13
24
|
& > * {
|
|
14
25
|
position: relative;
|
|
@@ -16,50 +27,45 @@
|
|
|
16
27
|
text-align: center;
|
|
17
28
|
|
|
18
29
|
&:first-child {
|
|
19
|
-
left:
|
|
20
|
-
inset-inline-start:
|
|
30
|
+
left: calc(-1 * var(--t-offset));
|
|
31
|
+
inset-inline-start: calc(-1 * var(--t-offset));
|
|
21
32
|
flex: 1;
|
|
22
33
|
text-align: start;
|
|
23
34
|
}
|
|
24
35
|
|
|
25
36
|
&:last-child {
|
|
26
|
-
right:
|
|
37
|
+
right: calc(-1 * var(--t-offset));
|
|
27
38
|
flex: 1;
|
|
28
39
|
text-align: end;
|
|
29
40
|
|
|
30
41
|
@supports (inset-inline-end: 0) {
|
|
31
42
|
right: unset;
|
|
32
|
-
inset-inline-end:
|
|
43
|
+
inset-inline-end: calc(-1 * var(--t-offset));
|
|
33
44
|
}
|
|
34
45
|
}
|
|
35
46
|
}
|
|
36
47
|
|
|
37
|
-
|
|
48
|
+
/* TODO(v5): delete */
|
|
38
49
|
tui-input-slider + & {
|
|
39
|
-
margin-inline-start: calc(var(--tui-radius-m) / 2 +
|
|
50
|
+
margin-inline-start: calc(var(--tui-radius-m) / 2 + var(--t-offset));
|
|
40
51
|
}
|
|
41
52
|
|
|
42
|
-
|
|
43
|
-
tui-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
margin-inline-start: @thumb;
|
|
47
|
-
margin-inline-end: @thumb;
|
|
53
|
+
/* TODO: add :has([tuiInputSlider]) */
|
|
54
|
+
tui-textfield + & {
|
|
55
|
+
--t-offset: calc(var(--tui-radius-m) / 2 + @thumb / 2);
|
|
56
|
+
}
|
|
48
57
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
58
|
+
/* TODO: add :has([tuiInputSlider]) */
|
|
59
|
+
tui-textfield[data-size='l'] + & {
|
|
60
|
+
--t-offset: calc(var(--tui-radius-l) / 2 + @thumb / 2);
|
|
61
|
+
}
|
|
54
62
|
|
|
55
|
-
|
|
56
|
-
|
|
63
|
+
tui-input-range:not([new]) + &, /* TODO(v5): delete */
|
|
64
|
+
tui-range + & {
|
|
65
|
+
--t-offset: @thumb;
|
|
66
|
+
}
|
|
57
67
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
inset-inline-end: -@thumb;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
68
|
+
tui-input-range[new] + & {
|
|
69
|
+
--t-offset: calc(@track-inset[@@input-size] + @thumb);
|
|
64
70
|
}
|
|
65
71
|
}
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
$thumb-diameters: (
|
|
2
2
|
's': 0.5rem,
|
|
3
|
-
'm':
|
|
3
|
+
'm': 0.75rem,
|
|
4
|
+
'l': 0.75rem,
|
|
4
5
|
);
|
|
5
6
|
|
|
7
|
+
$track-inset: (
|
|
8
|
+
's': 0.625rem,
|
|
9
|
+
'm': 0.75rem,
|
|
10
|
+
'l': 1rem,
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
// TODO(v5): use `l` by default (default size for new textfields)
|
|
6
14
|
@mixin tui-slider-ticks-labels($input-size: m) {
|
|
7
|
-
$
|
|
15
|
+
$thumb: map-get($thumb-diameters, $input-size);
|
|
16
|
+
|
|
17
|
+
--t-offset: calc($thumb / 2);
|
|
8
18
|
|
|
9
19
|
display: flex;
|
|
10
|
-
margin: 0 $first-tick-center;
|
|
11
20
|
font: var(--tui-font-text-s);
|
|
21
|
+
margin-inline-start: var(--t-offset);
|
|
22
|
+
margin-inline-end: var(--t-offset);
|
|
12
23
|
|
|
13
24
|
& > * {
|
|
14
25
|
position: relative;
|
|
@@ -16,36 +27,45 @@ $thumb-diameters: (
|
|
|
16
27
|
text-align: center;
|
|
17
28
|
|
|
18
29
|
&:first-child {
|
|
19
|
-
left:
|
|
30
|
+
left: calc(-1 * var(--t-offset));
|
|
31
|
+
inset-inline-start: calc(-1 * var(--t-offset));
|
|
20
32
|
flex: 1;
|
|
21
33
|
text-align: start;
|
|
22
34
|
}
|
|
23
35
|
|
|
24
36
|
&:last-child {
|
|
25
|
-
right:
|
|
37
|
+
right: calc(-1 * var(--t-offset));
|
|
26
38
|
flex: 1;
|
|
27
39
|
text-align: end;
|
|
40
|
+
|
|
41
|
+
@supports (inset-inline-end: 0) {
|
|
42
|
+
right: unset;
|
|
43
|
+
inset-inline-end: calc(-1 * var(--t-offset));
|
|
44
|
+
}
|
|
28
45
|
}
|
|
29
46
|
}
|
|
30
47
|
|
|
48
|
+
/* TODO(v5): delete */
|
|
31
49
|
tui-input-slider + & {
|
|
32
|
-
margin-inline-start: calc(var(--tui-radius-m) / 2 +
|
|
50
|
+
margin-inline-start: calc(var(--tui-radius-m) / 2 + var(--t-offset));
|
|
33
51
|
}
|
|
34
52
|
|
|
35
|
-
|
|
36
|
-
tui-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
margin-inline-end: $thumb;
|
|
53
|
+
/* TODO: add :has([tuiInputSlider]) */
|
|
54
|
+
tui-textfield + & {
|
|
55
|
+
--t-offset: calc(var(--tui-radius-m) / 2 + $thumb / 2);
|
|
56
|
+
}
|
|
40
57
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
58
|
+
/* TODO: add :has([tuiInputSlider]) */
|
|
59
|
+
tui-textfield[data-size='l'] + & {
|
|
60
|
+
--t-offset: calc(var(--tui-radius-l) / 2 + $thumb / 2);
|
|
61
|
+
}
|
|
45
62
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
63
|
+
tui-input-range:not([new]) + &, /* TODO(v5): delete */
|
|
64
|
+
tui-range + & {
|
|
65
|
+
--t-offset: $thumb;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
tui-input-range[new] + & {
|
|
69
|
+
--t-offset: calc(map-get($track-inset, $input-size) + $thumb);
|
|
50
70
|
}
|
|
51
71
|
}
|