@taiga-ui/core 5.0.0-canary.fc35565 → 5.0.0-rc.1
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.
|
@@ -33,7 +33,7 @@ class TuiRoot {
|
|
|
33
33
|
return this.doc.fullscreenElement === this.el || !this.child;
|
|
34
34
|
}
|
|
35
35
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiRoot, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiRoot, isStandalone: true, selector: "tui-root", host: { attributes: { "data-tui-version": "5.0.0-
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiRoot, isStandalone: true, selector: "tui-root", host: { attributes: { "data-tui-version": "5.0.0-rc.1" }, listeners: { "touchstart.passive.zoneless": "0", "document:fullscreenchange": "top.set(parent)" }, properties: { "style.--tui-duration.ms": "duration", "style.--tui-scroll-behavior": "reducedMotion ? \"auto\" : \"smooth\"", "class._mobile": "breakpoint() === \"mobile\"" } }, hostDirectives: [{ directive: i1.TuiPlatform }, { directive: i2.TuiVisualViewport }, { directive: i3.TuiFontSize }], ngImport: i0, template: "<div class=\"t-root-content\">\n <ng-content />\n</div>\n@if (top()) {\n @if (scrollbars) {\n <tui-scroll-controls class=\"t-root-scrollbar\" />\n }\n <tui-popups>\n <ng-content select=\"tuiOverContent\" />\n </tui-popups>\n}\n", styles: ["@keyframes tuiPresent{to{opacity:.99999}}@keyframes tuiFade{0%{opacity:0}}@keyframes tuiSlide{0%{transform:var(--tui-from, translateY(100%))}}@keyframes tuiScale{0%{transform:scale(var(--tui-scale, 0))}}@keyframes tuiCollapse{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}.tui-enter,.tui-leave{animation-duration:var(--tui-duration);animation-timing-function:ease-in-out;pointer-events:none}.tui-leave{animation-direction:reverse}\n", ".tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.tui-zero-scrollbar::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar-thumb{display:none}body,input{margin:0}tui-root{position:relative;display:block;font:var(--tui-font-body-s);color:var(--tui-text-primary);flex:1;border-image:conic-gradient(var(--tui-background-base) 0 0) fill 0/0/0 0 100vh 0;-webkit-tap-highlight-color:transparent}:root{--tui-inline-start: left;--tui-inline-end: right;--tui-inline: 1}[dir=rtl]{--tui-inline-start: right;--tui-inline-end: left;--tui-inline: -1}tui-root>.t-root-scrollbar{position:fixed;z-index:0;inset:0}.t-root-content{position:relative;top:var(--t-root-top);block-size:100%;isolation:isolate}.t-root-content>*{--t-root-top: 0}[tuiDropdownButton][tuiDropdownButton]{display:none}\n"], dependencies: [{ kind: "component", type: TuiPopups, selector: "tui-popups" }, { kind: "component", type: TuiScrollControls, selector: "tui-scroll-controls" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
|
|
37
37
|
}
|
|
38
38
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiRoot, decorators: [{
|
|
39
39
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-components-root.mjs","sources":["../../../projects/core/components/root/root.component.ts","../../../projects/core/components/root/root.template.html","../../../projects/core/components/root/taiga-ui-core-components-root.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {TuiFontSize} from '@taiga-ui/cdk/directives/font-size';\nimport {TuiPlatform} from '@taiga-ui/cdk/directives/platform';\nimport {TuiVisualViewport} from '@taiga-ui/cdk/directives/visual-viewport';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {\n TUI_SCROLLBAR_OPTIONS,\n TuiScrollControls,\n} from '@taiga-ui/core/components/scrollbar';\nimport {TuiPopups} from '@taiga-ui/core/portals/popup';\nimport {\n TUI_ANIMATIONS_SPEED,\n TUI_BREAKPOINT,\n TUI_REDUCED_MOTION,\n} from '@taiga-ui/core/tokens';\nimport {TUI_OPTIONS, tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous';\n\n@Component({\n selector: 'tui-root',\n imports: [TuiPopups, TuiScrollControls],\n templateUrl: './root.template.html',\n styleUrls: ['./animations.less', './root.style.less'],\n encapsulation: ViewEncapsulation.None,\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n hostDirectives: [TuiPlatform, TuiVisualViewport, TuiFontSize],\n host: {\n 'data-tui-version': TUI_VERSION,\n '[style.--tui-duration.ms]': 'duration',\n '[style.--tui-scroll-behavior]': 'reducedMotion ? \"auto\" : \"smooth\"',\n '[class._mobile]': 'breakpoint() === \"mobile\"',\n // Required for the :active state to work in Safari. https://stackoverflow.com/a/33681490\n '(touchstart.passive.zoneless)': '0',\n '(document:fullscreenchange)': 'top.set(parent)',\n },\n})\nexport class TuiRoot {\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n private readonly child = !!inject(TuiRoot, {optional: true, skipSelf: true});\n\n protected readonly reducedMotion = inject(TUI_REDUCED_MOTION);\n protected readonly duration = tuiGetDuration(inject(TUI_ANIMATIONS_SPEED));\n protected readonly top = signal(this.parent);\n protected readonly breakpoint = inject(TUI_BREAKPOINT);\n protected readonly scrollbars =\n !inject(WA_IS_MOBILE) &&\n !this.child &&\n inject(TUI_SCROLLBAR_OPTIONS).mode !== 'native' &&\n inject(TUI_OPTIONS).scrollbars !== 'native';\n\n protected get parent(): boolean {\n return this.doc.fullscreenElement === this.el || !this.child;\n }\n}\n","<div class=\"t-root-content\">\n <ng-content />\n</div>\n@if (top()) {\n @if (scrollbars) {\n <tui-scroll-controls class=\"t-root-scrollbar\" />\n }\n <tui-popups>\n <ng-content select=\"tuiOverContent\" />\n </tui-popups>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MA6Ca,OAAO,CAAA;AAnBpB,IAAA,WAAA,GAAA;AAoBqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;QACtB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AACvB,QAAA,IAAA,CAAA,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;AAEzD,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC;QAC1C,IAAQ,CAAA,QAAA,GAAG,cAAc,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;AACvD,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;AACzB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC;AACnC,QAAA,IAAA,CAAA,UAAU,GACzB,CAAC,MAAM,CAAC,YAAY,CAAC;YACrB,CAAC,IAAI,CAAC,KAAK;AACX,YAAA,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,KAAK,QAAQ;AAC/C,YAAA,MAAM,CAAC,WAAW,CAAC,CAAC,UAAU,KAAK,QAAQ;AAKlD;AAHG,IAAA,IAAc,MAAM,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,GAAG,CAAC,iBAAiB,KAAK,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;;+GAhBvD,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAP,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,OAAO,EC7CpB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,kBAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-components-root.mjs","sources":["../../../projects/core/components/root/root.component.ts","../../../projects/core/components/root/root.template.html","../../../projects/core/components/root/taiga-ui-core-components-root.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {TuiFontSize} from '@taiga-ui/cdk/directives/font-size';\nimport {TuiPlatform} from '@taiga-ui/cdk/directives/platform';\nimport {TuiVisualViewport} from '@taiga-ui/cdk/directives/visual-viewport';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {\n TUI_SCROLLBAR_OPTIONS,\n TuiScrollControls,\n} from '@taiga-ui/core/components/scrollbar';\nimport {TuiPopups} from '@taiga-ui/core/portals/popup';\nimport {\n TUI_ANIMATIONS_SPEED,\n TUI_BREAKPOINT,\n TUI_REDUCED_MOTION,\n} from '@taiga-ui/core/tokens';\nimport {TUI_OPTIONS, tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous';\n\n@Component({\n selector: 'tui-root',\n imports: [TuiPopups, TuiScrollControls],\n templateUrl: './root.template.html',\n styleUrls: ['./animations.less', './root.style.less'],\n encapsulation: ViewEncapsulation.None,\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n hostDirectives: [TuiPlatform, TuiVisualViewport, TuiFontSize],\n host: {\n 'data-tui-version': TUI_VERSION,\n '[style.--tui-duration.ms]': 'duration',\n '[style.--tui-scroll-behavior]': 'reducedMotion ? \"auto\" : \"smooth\"',\n '[class._mobile]': 'breakpoint() === \"mobile\"',\n // Required for the :active state to work in Safari. https://stackoverflow.com/a/33681490\n '(touchstart.passive.zoneless)': '0',\n '(document:fullscreenchange)': 'top.set(parent)',\n },\n})\nexport class TuiRoot {\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n private readonly child = !!inject(TuiRoot, {optional: true, skipSelf: true});\n\n protected readonly reducedMotion = inject(TUI_REDUCED_MOTION);\n protected readonly duration = tuiGetDuration(inject(TUI_ANIMATIONS_SPEED));\n protected readonly top = signal(this.parent);\n protected readonly breakpoint = inject(TUI_BREAKPOINT);\n protected readonly scrollbars =\n !inject(WA_IS_MOBILE) &&\n !this.child &&\n inject(TUI_SCROLLBAR_OPTIONS).mode !== 'native' &&\n inject(TUI_OPTIONS).scrollbars !== 'native';\n\n protected get parent(): boolean {\n return this.doc.fullscreenElement === this.el || !this.child;\n }\n}\n","<div class=\"t-root-content\">\n <ng-content />\n</div>\n@if (top()) {\n @if (scrollbars) {\n <tui-scroll-controls class=\"t-root-scrollbar\" />\n }\n <tui-popups>\n <ng-content select=\"tuiOverContent\" />\n </tui-popups>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/core",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-rc.1",
|
|
4
4
|
"description": "Core library for creating Angular components and applications using Taiga UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"types": "./directives/index.d.ts",
|
|
35
35
|
"default": "./fesm2022/taiga-ui-core-directives.mjs"
|
|
36
36
|
},
|
|
37
|
-
"./components": {
|
|
38
|
-
"types": "./components/index.d.ts",
|
|
39
|
-
"default": "./fesm2022/taiga-ui-core-components.mjs"
|
|
40
|
-
},
|
|
41
37
|
"./pipes": {
|
|
42
38
|
"types": "./pipes/index.d.ts",
|
|
43
39
|
"default": "./fesm2022/taiga-ui-core-pipes.mjs"
|
|
44
40
|
},
|
|
41
|
+
"./components": {
|
|
42
|
+
"types": "./components/index.d.ts",
|
|
43
|
+
"default": "./fesm2022/taiga-ui-core-components.mjs"
|
|
44
|
+
},
|
|
45
45
|
"./portals": {
|
|
46
46
|
"types": "./portals/index.d.ts",
|
|
47
47
|
"default": "./fesm2022/taiga-ui-core-portals.mjs"
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"types": "./services/index.d.ts",
|
|
51
51
|
"default": "./fesm2022/taiga-ui-core-services.mjs"
|
|
52
52
|
},
|
|
53
|
-
"./tokens": {
|
|
54
|
-
"types": "./tokens/index.d.ts",
|
|
55
|
-
"default": "./fesm2022/taiga-ui-core-tokens.mjs"
|
|
56
|
-
},
|
|
57
53
|
"./types": {
|
|
58
54
|
"types": "./types/index.d.ts",
|
|
59
55
|
"default": "./fesm2022/taiga-ui-core-types.mjs"
|
|
60
56
|
},
|
|
57
|
+
"./tokens": {
|
|
58
|
+
"types": "./tokens/index.d.ts",
|
|
59
|
+
"default": "./fesm2022/taiga-ui-core-tokens.mjs"
|
|
60
|
+
},
|
|
61
61
|
"./utils": {
|
|
62
62
|
"types": "./utils/index.d.ts",
|
|
63
63
|
"default": "./fesm2022/taiga-ui-core-utils.mjs"
|
|
@@ -90,6 +90,10 @@
|
|
|
90
90
|
"types": "./directives/number-format/index.d.ts",
|
|
91
91
|
"default": "./fesm2022/taiga-ui-core-directives-number-format.mjs"
|
|
92
92
|
},
|
|
93
|
+
"./pipes/format-number": {
|
|
94
|
+
"types": "./pipes/format-number/index.d.ts",
|
|
95
|
+
"default": "./fesm2022/taiga-ui-core-pipes-format-number.mjs"
|
|
96
|
+
},
|
|
93
97
|
"./components/button": {
|
|
94
98
|
"types": "./components/button/index.d.ts",
|
|
95
99
|
"default": "./fesm2022/taiga-ui-core-components-button.mjs"
|
|
@@ -138,14 +142,14 @@
|
|
|
138
142
|
"types": "./components/notification/index.d.ts",
|
|
139
143
|
"default": "./fesm2022/taiga-ui-core-components-notification.mjs"
|
|
140
144
|
},
|
|
141
|
-
"./components/root": {
|
|
142
|
-
"types": "./components/root/index.d.ts",
|
|
143
|
-
"default": "./fesm2022/taiga-ui-core-components-root.mjs"
|
|
144
|
-
},
|
|
145
145
|
"./components/scrollbar": {
|
|
146
146
|
"types": "./components/scrollbar/index.d.ts",
|
|
147
147
|
"default": "./fesm2022/taiga-ui-core-components-scrollbar.mjs"
|
|
148
148
|
},
|
|
149
|
+
"./components/root": {
|
|
150
|
+
"types": "./components/root/index.d.ts",
|
|
151
|
+
"default": "./fesm2022/taiga-ui-core-components-root.mjs"
|
|
152
|
+
},
|
|
149
153
|
"./components/spin-button": {
|
|
150
154
|
"types": "./components/spin-button/index.d.ts",
|
|
151
155
|
"default": "./fesm2022/taiga-ui-core-components-spin-button.mjs"
|
|
@@ -158,10 +162,6 @@
|
|
|
158
162
|
"types": "./components/title/index.d.ts",
|
|
159
163
|
"default": "./fesm2022/taiga-ui-core-components-title.mjs"
|
|
160
164
|
},
|
|
161
|
-
"./pipes/format-number": {
|
|
162
|
-
"types": "./pipes/format-number/index.d.ts",
|
|
163
|
-
"default": "./fesm2022/taiga-ui-core-pipes-format-number.mjs"
|
|
164
|
-
},
|
|
165
165
|
"./portals/alert": {
|
|
166
166
|
"types": "./portals/alert/index.d.ts",
|
|
167
167
|
"default": "./fesm2022/taiga-ui-core-portals-alert.mjs"
|
|
@@ -205,12 +205,12 @@
|
|
|
205
205
|
"@angular/forms": ">=19.0.0",
|
|
206
206
|
"@angular/platform-browser": ">=19.0.0",
|
|
207
207
|
"@angular/router": ">=19.0.0",
|
|
208
|
-
"@ng-web-apis/common": "^5.0.
|
|
209
|
-
"@ng-web-apis/mutation-observer": "^5.0.
|
|
210
|
-
"@ng-web-apis/platform": "^5.0.
|
|
211
|
-
"@taiga-ui/cdk": "^5.0.0-rc.
|
|
208
|
+
"@ng-web-apis/common": "^5.0.3",
|
|
209
|
+
"@ng-web-apis/mutation-observer": "^5.0.3",
|
|
210
|
+
"@ng-web-apis/platform": "^5.0.3",
|
|
211
|
+
"@taiga-ui/cdk": "^5.0.0-rc.1",
|
|
212
212
|
"@taiga-ui/event-plugins": "^5.0.0",
|
|
213
|
-
"@taiga-ui/i18n": "^5.0.0-rc.
|
|
213
|
+
"@taiga-ui/i18n": "^5.0.0-rc.1",
|
|
214
214
|
"@taiga-ui/polymorpheus": "^5.0.0",
|
|
215
215
|
"rxjs": ">=7.0.0"
|
|
216
216
|
},
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
@thumb-diameters: {
|
|
2
|
-
@s: 0.5rem;
|
|
3
|
-
@m: 0.75rem;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
1
|
@track-inset: {
|
|
7
2
|
@s: 0.625rem;
|
|
8
3
|
@m: 0.75rem;
|
|
9
4
|
@l: 1rem;
|
|
10
5
|
};
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
@thumb-diameter: var(--tui-thumb-size, 0.75rem);
|
|
8
|
+
@thumb-radius: calc(@thumb-diameter / 2);
|
|
9
|
+
@track-thickness: max(calc(@thumb-radius - 0.25rem), 0.125rem);
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
.tui-slider-ticks-labels() {
|
|
12
|
+
--t-offset: @thumb-radius;
|
|
16
13
|
|
|
17
14
|
display: flex;
|
|
18
15
|
font: var(--tui-font-body-s);
|
|
@@ -38,33 +35,33 @@
|
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
tui-range + & {
|
|
41
|
-
--t-offset: @thumb;
|
|
38
|
+
--t-offset: @thumb-diameter;
|
|
42
39
|
}
|
|
43
40
|
|
|
44
41
|
/* TODO: add :has([tuiInputSlider]) */
|
|
45
42
|
tui-textfield[data-size='l'] + & {
|
|
46
|
-
--t-offset: calc(@track-inset[@l] + @thumb
|
|
43
|
+
--t-offset: calc(@track-inset[@l] + @thumb-radius);
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
/* TODO: add :has([tuiInputSlider]) */
|
|
50
47
|
tui-textfield[data-size='m'] + & {
|
|
51
|
-
--t-offset: calc(@track-inset[@m] + @thumb
|
|
48
|
+
--t-offset: calc(@track-inset[@m] + @thumb-radius);
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
/* TODO: add :has([tuiInputSlider]) */
|
|
55
52
|
tui-textfield[data-size='s'] + & {
|
|
56
|
-
--t-offset: calc(@track-inset[@s] + @thumb
|
|
53
|
+
--t-offset: calc(@track-inset[@s] + @thumb-radius);
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
tui-input-range[data-size='l'] + & {
|
|
60
|
-
--t-offset: calc(@track-inset[@l] + @thumb);
|
|
57
|
+
--t-offset: calc(@track-inset[@l] + @thumb-diameter);
|
|
61
58
|
}
|
|
62
59
|
|
|
63
60
|
tui-input-range[data-size='m'] + & {
|
|
64
|
-
--t-offset: calc(@track-inset[@m] + @thumb);
|
|
61
|
+
--t-offset: calc(@track-inset[@m] + @thumb-diameter);
|
|
65
62
|
}
|
|
66
63
|
|
|
67
64
|
tui-input-range[data-size='s'] + & {
|
|
68
|
-
--t-offset: calc(@track-inset[@s] + @thumb);
|
|
65
|
+
--t-offset: calc(@track-inset[@s] + @thumb-diameter);
|
|
69
66
|
}
|
|
70
67
|
}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
$thumb-diameters: (
|
|
2
|
-
's': 0.5rem,
|
|
3
|
-
'm': 0.75rem,
|
|
4
|
-
'l': 0.75rem,
|
|
5
|
-
);
|
|
6
|
-
|
|
7
1
|
$track-inset: (
|
|
8
2
|
's': 0.625rem,
|
|
9
3
|
'm': 0.75rem,
|
|
10
4
|
'l': 1rem,
|
|
11
5
|
);
|
|
12
6
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
$thumb-diameter: var(--tui-thumb-size, 0.75rem);
|
|
8
|
+
$thumb-radius: calc($thumb-diameter / 2);
|
|
9
|
+
$track-thickness: max(calc($thumb-radius - 0.25rem), 0.125rem);
|
|
16
10
|
|
|
17
|
-
|
|
11
|
+
@mixin tui-slider-ticks-labels() {
|
|
12
|
+
--t-offset: $thumb-radius;
|
|
18
13
|
|
|
19
14
|
display: flex;
|
|
20
15
|
font: var(--tui-font-body-s);
|
|
@@ -40,33 +35,33 @@ $track-inset: (
|
|
|
40
35
|
}
|
|
41
36
|
|
|
42
37
|
tui-range + & {
|
|
43
|
-
--t-offset: $thumb;
|
|
38
|
+
--t-offset: $thumb-diameter;
|
|
44
39
|
}
|
|
45
40
|
|
|
46
41
|
/* TODO: add :has([tuiInputSlider]) */
|
|
47
42
|
tui-textfield[data-size='l'] + & {
|
|
48
|
-
--t-offset: calc(map-get($track-inset, 'l') + $thumb
|
|
43
|
+
--t-offset: calc(map-get($track-inset, 'l') + $thumb-radius);
|
|
49
44
|
}
|
|
50
45
|
|
|
51
46
|
/* TODO: add :has([tuiInputSlider]) */
|
|
52
47
|
tui-textfield[data-size='m'] + & {
|
|
53
|
-
--t-offset: calc(map-get($track-inset, 'm') + $thumb
|
|
48
|
+
--t-offset: calc(map-get($track-inset, 'm') + $thumb-radius);
|
|
54
49
|
}
|
|
55
50
|
|
|
56
51
|
/* TODO: add :has([tuiInputSlider]) */
|
|
57
52
|
tui-textfield[data-size='s'] + & {
|
|
58
|
-
--t-offset: calc(map-get($track-inset, 's') + $thumb
|
|
53
|
+
--t-offset: calc(map-get($track-inset, 's') + $thumb-radius);
|
|
59
54
|
}
|
|
60
55
|
|
|
61
56
|
tui-input-range[data-size='l'] + & {
|
|
62
|
-
--t-offset: calc(map-get($track-inset, 'l') + $thumb);
|
|
57
|
+
--t-offset: calc(map-get($track-inset, 'l') + $thumb-diameter);
|
|
63
58
|
}
|
|
64
59
|
|
|
65
60
|
tui-input-range[data-size='m'] + & {
|
|
66
|
-
--t-offset: calc(map-get($track-inset, 'm') + $thumb);
|
|
61
|
+
--t-offset: calc(map-get($track-inset, 'm') + $thumb-diameter);
|
|
67
62
|
}
|
|
68
63
|
|
|
69
64
|
tui-input-range[data-size='s'] + & {
|
|
70
|
-
--t-offset: calc(map-get($track-inset, 's') + $thumb);
|
|
65
|
+
--t-offset: calc(map-get($track-inset, 's') + $thumb-diameter);
|
|
71
66
|
}
|
|
72
67
|
}
|