@taiga-ui/core 4.52.0-canary.abf3e8c → 4.52.0-canary.ae38a1e
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/components/calendar/calendar-sheet.component.d.ts +1 -1
- package/components/calendar/calendar-sheet.pipe.d.ts +1 -1
- package/components/calendar/calendar.options.d.ts +9 -0
- package/components/calendar/index.d.ts +1 -0
- package/components/calendar/order-week-days.pipe.d.ts +1 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.directive.d.ts +1 -2
- package/components/label/label.directive.d.ts +1 -1
- package/components/link/index.d.ts +0 -1
- package/components/link/link.directive.d.ts +8 -6
- package/components/notification/notification.directive.d.ts +2 -2
- package/components/root/root.component.d.ts +1 -1
- package/components/scrollbar/scroll-ref.directive.d.ts +2 -0
- package/components/scrollbar/scrollbar.component.d.ts +1 -5
- package/components/spin-button/spin-button.component.d.ts +1 -1
- package/components/textfield/textfield-multi/textfield-multi.component.d.ts +1 -2
- package/components/textfield/textfield.component.d.ts +6 -7
- package/directives/appearance/appearance.directive.d.ts +1 -1
- package/directives/appearance/appearance.options.d.ts +1 -2
- package/directives/button-x/button-x.directive.d.ts +6 -0
- package/directives/button-x/index.d.ts +1 -0
- package/directives/index.d.ts +1 -0
- package/directives/items-handlers/items-handlers.directive.d.ts +5 -9
- package/directives/items-handlers/items-handlers.tokens.d.ts +4 -4
- package/fesm2022/taiga-ui-core-classes.mjs +3 -3
- package/fesm2022/taiga-ui-core-components-button.mjs +7 -7
- package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-calendar.mjs +38 -36
- package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-cell.mjs +7 -7
- package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-data-list.mjs +17 -17
- package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-error.mjs +10 -10
- package/fesm2022/taiga-ui-core-components-expand.mjs +3 -3
- package/fesm2022/taiga-ui-core-components-icon.mjs +7 -7
- package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-input.mjs +10 -10
- package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-label.mjs +11 -13
- package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-link.mjs +13 -24
- package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-loader.mjs +4 -4
- package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-notification.mjs +21 -23
- package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-root.mjs +6 -8
- package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs +43 -48
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-spin-button.mjs +6 -6
- package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-textfield.mjs +47 -47
- package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-title.mjs +7 -7
- package/fesm2022/taiga-ui-core-components-title.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-appearance.mjs +10 -10
- package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-button-x.mjs +51 -0
- package/fesm2022/taiga-ui-core-directives-button-x.mjs.map +1 -0
- package/fesm2022/taiga-ui-core-directives-date-format.mjs +3 -3
- package/fesm2022/taiga-ui-core-directives-group.mjs +7 -7
- package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-icons.mjs +10 -10
- package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +15 -36
- package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-number-format.mjs +3 -3
- package/fesm2022/taiga-ui-core-directives.mjs +1 -0
- package/fesm2022/taiga-ui-core-directives.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-pipes-format-number.mjs +3 -3
- package/fesm2022/taiga-ui-core-portals-alert.mjs +9 -9
- package/fesm2022/taiga-ui-core-portals-dialog.mjs +16 -15
- package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-dropdown.mjs +119 -138
- package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-hint.mjs +61 -116
- package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-modal.mjs +8 -8
- package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-popup.mjs +9 -9
- package/fesm2022/taiga-ui-core-services.mjs +12 -56
- package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-tokens.mjs +32 -42
- package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +13 -4
- package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
- package/fesm2022/taiga-ui-core.mjs +0 -1
- package/fesm2022/taiga-ui-core.mjs.map +1 -1
- package/index.d.ts +0 -1
- package/package.json +63 -64
- package/portals/dropdown/dropdown-close.directive.d.ts +15 -0
- package/portals/dropdown/dropdown-context.directive.d.ts +0 -1
- package/portals/dropdown/dropdown-open.directive.d.ts +6 -7
- package/portals/dropdown/dropdown-options.directive.d.ts +0 -4
- package/portals/dropdown/index.d.ts +1 -0
- package/portals/hint/hint-options.directive.d.ts +1 -20
- package/portals/hint/hint-position.directive.d.ts +4 -4
- package/portals/hint/hint.d.ts +1 -2
- package/portals/hint/hint.directive.d.ts +2 -2
- package/services/index.d.ts +0 -2
- package/styles/components/appearance.less +5 -0
- package/styles/components/button.less +10 -20
- package/styles/components/icon.less +11 -0
- package/styles/components/icons.less +2 -1
- package/styles/components/label.less +3 -12
- package/styles/components/link.less +8 -24
- package/styles/components/notification.less +31 -65
- package/styles/components/textfield.less +127 -212
- package/styles/components/title.less +8 -8
- package/styles/mixins/appearance.less +8 -24
- package/styles/mixins/appearance.scss +8 -24
- package/styles/mixins/date-picker.less +1 -1
- package/styles/mixins/picker.less +1 -1
- package/styles/mixins/picker.scss +1 -1
- package/styles/mixins/slider.less +4 -10
- package/styles/mixins/slider.scss +23 -21
- package/styles/taiga-ui-local.less +0 -1
- package/styles/taiga-ui-local.scss +0 -1
- package/styles/taiga-ui-theme.less +0 -1
- package/styles/theme/appearance/outline.less +9 -18
- package/styles/theme/appearance/primary.less +2 -4
- package/styles/theme/appearance/secondary.less +6 -14
- package/styles/theme/appearance/status.less +0 -4
- package/styles/theme/appearance/table.less +36 -35
- package/styles/theme/appearance/textfield.less +30 -27
- package/styles/theme/appearance.less +0 -1
- package/styles/theme/variables.less +16 -17
- package/styles/variables/media.less +13 -18
- package/styles/variables/media.scss +13 -13
- package/tokens/breakpoint.d.ts +4 -0
- package/tokens/common-icons.d.ts +2 -0
- package/tokens/index.d.ts +1 -4
- package/utils/miscellaneous/font-scaling.d.ts +2 -1
- package/animations/animations.d.ts +0 -109
- package/animations/index.d.ts +0 -1
- package/components/link/link.options.d.ts +0 -10
- package/fesm2022/taiga-ui-core-animations.mjs +0 -370
- package/fesm2022/taiga-ui-core-animations.mjs.map +0 -1
- package/services/breakpoint.service.d.ts +0 -16
- package/services/dark-theme.service.d.ts +0 -10
- package/styles/mixins/wrapper.less +0 -64
- package/styles/mixins/wrapper.scss +0 -61
- package/styles/theme/appearance/opposite.less +0 -17
- package/styles/theme/wrapper.less +0 -211
- package/tokens/day-type-handler.d.ts +0 -7
- package/tokens/first-day-of-week.d.ts +0 -5
- package/tokens/scroll-ref.d.ts +0 -2
- package/tokens/spin-icons.d.ts +0 -6
|
@@ -4,6 +4,7 @@ export * from './dropdown.component';
|
|
|
4
4
|
export * from './dropdown.directive';
|
|
5
5
|
export * from './dropdown.driver';
|
|
6
6
|
export * from './dropdown.providers';
|
|
7
|
+
export * from './dropdown-close.directive';
|
|
7
8
|
export * from './dropdown-content.directive';
|
|
8
9
|
export * from './dropdown-context.directive';
|
|
9
10
|
export * from './dropdown-hover.directive';
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { type FactoryProvider, InjectionToken
|
|
1
|
+
import { type FactoryProvider, InjectionToken } from '@angular/core';
|
|
2
2
|
import { type TuiAppearanceOptions } from '@taiga-ui/core/directives/appearance';
|
|
3
|
-
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
3
|
export type TuiHintDirection = 'bottom-left' | 'bottom-right' | 'bottom' | 'left-bottom' | 'left-top' | 'left' | 'right-bottom' | 'right-top' | 'right' | 'top-left' | 'top-right' | 'top';
|
|
7
4
|
export declare const TUI_HINT_DIRECTIONS: readonly TuiHintDirection[];
|
|
8
5
|
export interface TuiHintOptions extends TuiAppearanceOptions {
|
|
@@ -18,19 +15,3 @@ export declare const TUI_HINT_DEFAULT_OPTIONS: TuiHintOptions;
|
|
|
18
15
|
*/
|
|
19
16
|
export declare const TUI_HINT_OPTIONS: InjectionToken<TuiHintOptions>;
|
|
20
17
|
export declare const tuiHintOptionsProvider: (options: Partial<TuiHintOptions>) => FactoryProvider;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated: drop in 5.0
|
|
23
|
-
*/
|
|
24
|
-
export declare class TuiHintOptionsDirective implements TuiHintOptions, OnChanges {
|
|
25
|
-
private readonly options;
|
|
26
|
-
content: PolymorpheusContent;
|
|
27
|
-
direction: TuiHintDirection | TuiHintDirection[];
|
|
28
|
-
appearance: "" | ("accent" | "action-destructive" | "action-grayscale" | "action" | "flat-destructive" | "flat-grayscale" | "flat" | "floating" | "glass" | "icon" | "info" | "negative" | "neutral" | "outline-destructive" | "outline-grayscale" | "outline" | "positive" | "primary-destructive" | "primary-grayscale" | "primary" | "secondary-destructive" | "secondary-grayscale" | "secondary" | "textfield" | "warning" | (Record<never, never> & string));
|
|
29
|
-
showDelay: number;
|
|
30
|
-
hideDelay: number;
|
|
31
|
-
icon: string;
|
|
32
|
-
readonly change$: Subject<void>;
|
|
33
|
-
ngOnChanges(): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintOptionsDirective, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintOptionsDirective, "[tuiHintContent]", never, { "content": { "alias": "tuiHintContent"; "required": false; }; "direction": { "alias": "tuiHintDirection"; "required": false; }; "appearance": { "alias": "tuiHintAppearance"; "required": false; }; "showDelay": { "alias": "tuiHintShowDelay"; "required": false; }; "hideDelay": { "alias": "tuiHintHideDelay"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
|
-
}
|
|
@@ -4,17 +4,17 @@ import { type TuiHintDirection } from './hint-options.directive';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class TuiHintPosition extends TuiPositionAccessor {
|
|
6
6
|
private readonly el;
|
|
7
|
-
private readonly offset;
|
|
8
7
|
private readonly viewport;
|
|
8
|
+
private readonly directionChange;
|
|
9
9
|
private readonly accessor;
|
|
10
10
|
private readonly points;
|
|
11
11
|
readonly direction: import("@angular/core").InputSignal<TuiHintDirection | TuiHintDirection[]>;
|
|
12
|
-
readonly
|
|
12
|
+
readonly offset: import("@angular/core").InputSignal<number>;
|
|
13
|
+
readonly tuiHintDirectionChange: import("@angular/core").OutputRef<TuiHintDirection>;
|
|
13
14
|
readonly type = "hint";
|
|
14
|
-
emitDirection(direction: TuiHintDirection): void;
|
|
15
15
|
getPosition({ width, height }: DOMRect): TuiPoint;
|
|
16
16
|
private get fallback();
|
|
17
17
|
private checkPosition;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintPosition, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintPosition, never, never, { "direction": { "alias": "tuiHintDirection"; "required": false; "isSignal": true; }; }, { "
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintPosition, never, never, { "direction": { "alias": "tuiHintDirection"; "required": false; "isSignal": true; }; "offset": { "alias": "tuiHintOffset"; "required": false; "isSignal": true; }; }, { "tuiHintDirectionChange": "tuiHintDirectionChange"; }, never, never, true, never>;
|
|
20
20
|
}
|
package/portals/hint/hint.d.ts
CHANGED
|
@@ -5,9 +5,8 @@ import { TuiHintDriver } from './hint-driver.directive';
|
|
|
5
5
|
import { TuiHintHost } from './hint-host.directive';
|
|
6
6
|
import { TuiHintHover } from './hint-hover.directive';
|
|
7
7
|
import { TuiHintManual } from './hint-manual.directive';
|
|
8
|
-
import { TuiHintOptionsDirective } from './hint-options.directive';
|
|
9
8
|
import { TuiHintOverflow } from './hint-overflow.directive';
|
|
10
9
|
import { TuiHintPointer } from './hint-pointer.directive';
|
|
11
10
|
import { TuiHintPosition } from './hint-position.directive';
|
|
12
11
|
import { TuiHintUnstyled } from './hint-unstyled.component';
|
|
13
|
-
export declare const TuiHint: readonly [typeof TuiHintComponent, typeof TuiHintDirective, typeof
|
|
12
|
+
export declare const TuiHint: readonly [typeof TuiHintComponent, typeof TuiHintDirective, typeof TuiHintUnstyled, typeof TuiHintDriver, typeof TuiHintPosition, typeof TuiHintHover, typeof TuiHintOverflow, typeof TuiHintDescribe, typeof TuiHintHost, typeof TuiHintManual, typeof TuiHintPointer];
|
|
@@ -10,7 +10,7 @@ export declare class TuiHintDirective<C> implements OnDestroy, OnChanges, TuiRec
|
|
|
10
10
|
private ref?;
|
|
11
11
|
readonly content: import("@angular/core").InputSignal<PolymorpheusContent<C>>;
|
|
12
12
|
readonly context: import("@angular/core").InputSignal<C | undefined>;
|
|
13
|
-
readonly appearance: import("@angular/core").InputSignal<
|
|
13
|
+
readonly appearance: import("@angular/core").InputSignal<string>;
|
|
14
14
|
readonly visible: import("@angular/core").OutputEmitterRef<boolean>;
|
|
15
15
|
component: PolymorpheusComponent<any>;
|
|
16
16
|
readonly el: HTMLElement;
|
|
@@ -20,5 +20,5 @@ export declare class TuiHintDirective<C> implements OnDestroy, OnChanges, TuiRec
|
|
|
20
20
|
getClientRect(): DOMRect;
|
|
21
21
|
toggle(show: boolean): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintDirective<any>, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintDirective<any>, "[tuiHint]:not(ng-container):not(ng-template)", never, { "content": { "alias": "tuiHint"; "required": false; "isSignal": true; }; "context": { "alias": "tuiHintContext"; "required": false; "isSignal": true; }; "appearance": { "alias": "tuiHintAppearance"; "required": false; "isSignal": true; }; }, { "visible": "tuiHintVisible"; }, never, never, true, [{ directive: typeof i1.TuiHintDriver; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiHintHover; inputs: { "tuiHintHideDelay": "tuiHintHideDelay"; "tuiHintShowDelay": "tuiHintShowDelay"; }; outputs: {}; }, { directive: typeof i3.TuiHintPosition; inputs: { "tuiHintDirection": "tuiHintDirection"; }; outputs: { "tuiHintDirectionChange": "tuiHintDirectionChange"; }; }]>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintDirective<any>, "[tuiHint]:not(ng-container):not(ng-template)", never, { "content": { "alias": "tuiHint"; "required": false; "isSignal": true; }; "context": { "alias": "tuiHintContext"; "required": false; "isSignal": true; }; "appearance": { "alias": "tuiHintAppearance"; "required": false; "isSignal": true; }; }, { "visible": "tuiHintVisible"; }, never, never, true, [{ directive: typeof i1.TuiHintDriver; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiHintHover; inputs: { "tuiHintHideDelay": "tuiHintHideDelay"; "tuiHintShowDelay": "tuiHintShowDelay"; }; outputs: {}; }, { directive: typeof i3.TuiHintPosition; inputs: { "tuiHintDirection": "tuiHintDirection"; "tuiHintOffset": "tuiHintOffset"; }; outputs: { "tuiHintDirectionChange": "tuiHintDirectionChange"; }; }]>;
|
|
24
24
|
}
|
package/services/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
padding: var(--t-padding);
|
|
33
33
|
user-select: none;
|
|
34
34
|
cursor: pointer;
|
|
35
|
-
font: var(--tui-font-
|
|
35
|
+
font: var(--tui-font-body-m);
|
|
36
36
|
font-weight: bold;
|
|
37
37
|
|
|
38
38
|
> .t-loader {
|
|
@@ -50,10 +50,11 @@
|
|
|
50
50
|
--t-padding: 0 0.375rem;
|
|
51
51
|
--t-margin: -0.125rem;
|
|
52
52
|
|
|
53
|
-
font: var(--tui-font-
|
|
53
|
+
font: var(--tui-font-body-s);
|
|
54
54
|
|
|
55
55
|
tui-icon,
|
|
56
|
-
&::before
|
|
56
|
+
&::before,
|
|
57
|
+
&::after {
|
|
57
58
|
font-size: 1rem;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -65,10 +66,11 @@
|
|
|
65
66
|
--t-padding: 0 0.625rem;
|
|
66
67
|
--t-margin: -0.125rem;
|
|
67
68
|
|
|
68
|
-
font: var(--tui-font-
|
|
69
|
+
font: var(--tui-font-body-s);
|
|
69
70
|
|
|
70
71
|
tui-icon,
|
|
71
|
-
&:not([tuiIconButton][data-appearance='icon']
|
|
72
|
+
&:not([tuiIconButton][data-appearance='icon'], [tuiIconButton][data-appearance='link'])::before,
|
|
73
|
+
&:not([tuiIconButton][data-appearance='icon'], [tuiIconButton][data-appearance='link'])::after {
|
|
72
74
|
font-size: 1rem;
|
|
73
75
|
}
|
|
74
76
|
}
|
|
@@ -80,12 +82,8 @@
|
|
|
80
82
|
--t-padding: 0 1rem;
|
|
81
83
|
--t-margin: -0.375rem;
|
|
82
84
|
|
|
83
|
-
font: var(--tui-font-
|
|
85
|
+
font: var(--tui-font-body-m);
|
|
84
86
|
font-weight: bold;
|
|
85
|
-
|
|
86
|
-
&::after {
|
|
87
|
-
margin-inline-end: -0.125rem;
|
|
88
|
-
}
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
&._loading {
|
|
@@ -104,10 +102,6 @@
|
|
|
104
102
|
}
|
|
105
103
|
}
|
|
106
104
|
|
|
107
|
-
&[tuiIcons]::after {
|
|
108
|
-
font-size: 1rem;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
105
|
&[tuiButtonVertical] {
|
|
112
106
|
// StackBlitz changes "0rem" to "0" breaking calc
|
|
113
107
|
--t-margin: ~'0rem' !important;
|
|
@@ -120,7 +114,7 @@
|
|
|
120
114
|
gap: 0.375rem;
|
|
121
115
|
min-inline-size: 5rem;
|
|
122
116
|
white-space: pre-line;
|
|
123
|
-
font: var(--tui-font-
|
|
117
|
+
font: var(--tui-font-ui-s);
|
|
124
118
|
|
|
125
119
|
& > * {
|
|
126
120
|
max-block-size: calc(var(--t-line-height) * 2);
|
|
@@ -134,11 +128,7 @@
|
|
|
134
128
|
font-size: 0 !important;
|
|
135
129
|
padding: 0;
|
|
136
130
|
|
|
137
|
-
|
|
138
|
-
margin: 0;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&&[style*='--t-icon-start:']::after {
|
|
131
|
+
&&[data-icon-start]::after {
|
|
142
132
|
display: none;
|
|
143
133
|
}
|
|
144
134
|
}
|
|
@@ -31,6 +31,7 @@ tui-icon {
|
|
|
31
31
|
vertical-align: middle;
|
|
32
32
|
box-sizing: border-box;
|
|
33
33
|
mask: var(--t-icon-bg) no-repeat center / calc(100% + 10 * var(--tui-stroke-width, 0.125rem)) 100%;
|
|
34
|
+
zoom: ~'calc(100% * (min(max(var(--tui-font-offset) - 10px, 0px), 1px) / 0.8px))';
|
|
34
35
|
|
|
35
36
|
@media @tui-mouse {
|
|
36
37
|
&[data-appearance='icon']:hover {
|
|
@@ -69,4 +70,14 @@ tui-icon {
|
|
|
69
70
|
--tui-icon-size: 0.5715em;
|
|
70
71
|
}
|
|
71
72
|
}
|
|
73
|
+
|
|
74
|
+
&[data-icon-start='img']::before,
|
|
75
|
+
&[data-icon-end='img']::after {
|
|
76
|
+
zoom: 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&[data-icon-start='font']::before,
|
|
80
|
+
&[data-icon-end='font']::after {
|
|
81
|
+
zoom: 0.667;
|
|
82
|
+
}
|
|
72
83
|
}
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
flex-shrink: 0;
|
|
32
32
|
box-sizing: content-box;
|
|
33
33
|
background: currentColor;
|
|
34
|
+
zoom: ~'calc(100% * (min(max(var(--tui-font-offset) - 10px, 0px), 1px) / 0.8px))';
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
&::before {
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
display: grid;
|
|
63
64
|
mask: none;
|
|
64
65
|
background: none;
|
|
65
|
-
font: 1.
|
|
66
|
+
font: 1.5em / 1 var(--tui-font-icon, inherit);
|
|
66
67
|
text-align: center;
|
|
67
68
|
place-content: center;
|
|
68
69
|
text-transform: none;
|
|
@@ -18,22 +18,13 @@
|
|
|
18
18
|
display: flex;
|
|
19
19
|
gap: 0.25rem;
|
|
20
20
|
flex-direction: column;
|
|
21
|
-
font: var(--tui-font-
|
|
21
|
+
font: var(--tui-font-body-s);
|
|
22
22
|
color: var(--tui-text-primary);
|
|
23
23
|
|
|
24
24
|
&:not([data-orientation='vertical']) {
|
|
25
25
|
flex-direction: row;
|
|
26
26
|
inline-size: fit-content;
|
|
27
|
-
font: var(--tui-font-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// TODO: Remove after legacy inputs are dropped
|
|
31
|
-
&:has(tui-textfield),
|
|
32
|
-
&:has(tui-primitive-textfield),
|
|
33
|
-
&:has(tui-textarea) {
|
|
34
|
-
flex-direction: column !important;
|
|
35
|
-
inline-size: auto !important;
|
|
36
|
-
font: var(--tui-font-text-s) !important;
|
|
27
|
+
font: var(--tui-font-body-m);
|
|
37
28
|
}
|
|
38
29
|
|
|
39
30
|
input[type='checkbox'],
|
|
@@ -47,7 +38,7 @@
|
|
|
47
38
|
}
|
|
48
39
|
|
|
49
40
|
small {
|
|
50
|
-
font: var(--tui-font-
|
|
41
|
+
font: var(--tui-font-body-s);
|
|
51
42
|
}
|
|
52
43
|
|
|
53
44
|
[tuiTitle] {
|
|
@@ -21,19 +21,14 @@
|
|
|
21
21
|
border: none;
|
|
22
22
|
cursor: pointer;
|
|
23
23
|
font: inherit;
|
|
24
|
-
color:
|
|
25
|
-
|
|
24
|
+
color: inherit;
|
|
25
|
+
border-radius: 0.125rem;
|
|
26
|
+
outline-width: 1px;
|
|
27
|
+
outline-offset: -1px;
|
|
26
28
|
text-underline-offset: 0.2em;
|
|
27
|
-
text-decoration
|
|
29
|
+
text-decoration: none dashed currentColor 1px;
|
|
28
30
|
text-decoration-color: color-mix(in lch, currentColor, transparent);
|
|
29
31
|
|
|
30
|
-
// TODO: Remove in v5
|
|
31
|
-
@media @tui-mouse {
|
|
32
|
-
&:hover {
|
|
33
|
-
--tui-text-secondary: var(--tui-text-primary);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
32
|
&::before {
|
|
38
33
|
margin-inline-end: 0.25rem;
|
|
39
34
|
}
|
|
@@ -58,12 +53,6 @@
|
|
|
58
53
|
display: inline-block;
|
|
59
54
|
}
|
|
60
55
|
|
|
61
|
-
.appearance-focus({
|
|
62
|
-
outline: none;
|
|
63
|
-
background: var(--tui-service-selection-background);
|
|
64
|
-
background: color-mix(in lch, currentColor 12%, transparent);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
56
|
.appearance-hover({
|
|
68
57
|
text-decoration-color: currentColor;
|
|
69
58
|
});
|
|
@@ -72,13 +61,8 @@
|
|
|
72
61
|
text-decoration-color: currentColor;
|
|
73
62
|
});
|
|
74
63
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&[data-appearance='']:active {
|
|
82
|
-
opacity: 0.7;
|
|
64
|
+
&[data-appearance=''] {
|
|
65
|
+
text-decoration-line: underline;
|
|
66
|
+
text-decoration-style: solid;
|
|
83
67
|
}
|
|
84
68
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @name Notification
|
|
5
|
-
* @selector
|
|
5
|
+
* @selector [tuiNotification]
|
|
6
6
|
*
|
|
7
7
|
* @description
|
|
8
8
|
* A colored rounded block of information with optional icon, title, subtitle and actions
|
|
@@ -11,17 +11,16 @@
|
|
|
11
11
|
* data-size — size (default: 'l') ('s' | 'm' | 'l')
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
|
-
* <
|
|
14
|
+
* <div tuiNotification tuiAppearance data-appearance="negative">
|
|
15
15
|
* <span tuiTitle>
|
|
16
16
|
* Error
|
|
17
17
|
* <span tuiSubtitle>Something went wrong</span>
|
|
18
18
|
* </span>
|
|
19
|
-
* </
|
|
19
|
+
* </div>
|
|
20
20
|
*
|
|
21
21
|
* @see-also
|
|
22
22
|
* Icons, Appearance
|
|
23
23
|
*/
|
|
24
|
-
tui-notification,
|
|
25
24
|
[tuiNotification] {
|
|
26
25
|
.button-clear();
|
|
27
26
|
|
|
@@ -30,7 +29,7 @@ tui-notification,
|
|
|
30
29
|
max-block-size: 100%;
|
|
31
30
|
color: var(--tui-text-primary);
|
|
32
31
|
padding: 1rem;
|
|
33
|
-
font: var(--tui-font-
|
|
32
|
+
font: var(--tui-font-body-m);
|
|
34
33
|
line-height: 1.5rem;
|
|
35
34
|
border-radius: var(--tui-radius-l);
|
|
36
35
|
box-sizing: border-box;
|
|
@@ -39,63 +38,55 @@ tui-notification,
|
|
|
39
38
|
border-inline-start: var(--t-start) solid transparent;
|
|
40
39
|
border-inline-end: var(--t-end) solid transparent;
|
|
41
40
|
|
|
41
|
+
.interactive({
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
});
|
|
44
|
+
|
|
42
45
|
--t-start: 0;
|
|
43
46
|
--t-end: 0;
|
|
44
47
|
|
|
45
|
-
&[
|
|
48
|
+
&[data-icon-start] {
|
|
46
49
|
--t-start: 2rem;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
|
-
&[
|
|
52
|
+
&[data-icon-end] {
|
|
50
53
|
--t-end: 1.5rem;
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
&::before {
|
|
54
57
|
position: absolute;
|
|
55
|
-
left: -1rem;
|
|
56
58
|
inset-inline-start: -1rem;
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
&::after {
|
|
60
62
|
.center-top();
|
|
61
63
|
|
|
62
|
-
|
|
64
|
+
inset-inline-end: -0.5rem;
|
|
63
65
|
font-size: 1rem;
|
|
64
66
|
margin: 0;
|
|
65
67
|
margin-inline-end: -0.25rem;
|
|
66
68
|
margin-inline-start: auto;
|
|
67
69
|
color: var(--tui-text-tertiary) !important;
|
|
68
|
-
|
|
69
|
-
@supports (inset-inline-end: 0) {
|
|
70
|
-
right: unset;
|
|
71
|
-
inset-inline-end: -0.5rem;
|
|
72
|
-
}
|
|
73
70
|
}
|
|
74
71
|
|
|
75
72
|
&[data-size='s'] {
|
|
76
73
|
padding: 0.375rem 0.625rem;
|
|
77
|
-
font: var(--tui-font-
|
|
74
|
+
font: var(--tui-font-body-s);
|
|
78
75
|
line-height: 1.25rem;
|
|
79
76
|
border-radius: var(--tui-radius-m);
|
|
80
77
|
|
|
81
|
-
&[
|
|
78
|
+
&[data-icon-start] {
|
|
82
79
|
--t-start: 1.5rem;
|
|
83
80
|
}
|
|
84
81
|
|
|
85
82
|
&::before {
|
|
86
|
-
|
|
87
|
-
left: -0.875rem;
|
|
83
|
+
inset-block-start: 0.5rem;
|
|
88
84
|
inset-inline-start: -0.875rem;
|
|
89
85
|
font-size: 1rem;
|
|
90
86
|
}
|
|
91
87
|
|
|
92
88
|
&::after {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
@supports (inset-inline-end: 0) {
|
|
96
|
-
right: unset;
|
|
97
|
-
inset-inline-end: -0.875rem;
|
|
98
|
-
}
|
|
89
|
+
inset-inline-end: -0.875rem;
|
|
99
90
|
}
|
|
100
91
|
|
|
101
92
|
tui-icon {
|
|
@@ -103,12 +94,12 @@ tui-notification,
|
|
|
103
94
|
}
|
|
104
95
|
|
|
105
96
|
[tuiTitle] {
|
|
106
|
-
font: var(--tui-font-
|
|
97
|
+
font: var(--tui-font-body-s);
|
|
107
98
|
font-weight: bold;
|
|
108
99
|
}
|
|
109
100
|
|
|
110
101
|
[tuiSubtitle] {
|
|
111
|
-
font: var(--tui-font-
|
|
102
|
+
font: var(--tui-font-body-s);
|
|
112
103
|
}
|
|
113
104
|
|
|
114
105
|
[tuiSubtitle] + * {
|
|
@@ -117,39 +108,28 @@ tui-notification,
|
|
|
117
108
|
}
|
|
118
109
|
|
|
119
110
|
> [tuiIconButton] {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
@supports (inset-inline-end: 0) {
|
|
124
|
-
right: unset;
|
|
125
|
-
inset-inline-end: 0;
|
|
126
|
-
}
|
|
111
|
+
inset-block-start: 0;
|
|
112
|
+
inset-inline-end: 0;
|
|
127
113
|
}
|
|
128
114
|
}
|
|
129
115
|
|
|
130
116
|
&[data-size='m'] {
|
|
131
117
|
padding: 0.75rem;
|
|
132
|
-
font: var(--tui-font-
|
|
118
|
+
font: var(--tui-font-body-s);
|
|
133
119
|
line-height: 1.25rem;
|
|
134
120
|
border-radius: var(--tui-radius-m);
|
|
135
121
|
|
|
136
|
-
&[
|
|
122
|
+
&[data-icon-start] {
|
|
137
123
|
--t-start: 1.625rem;
|
|
138
124
|
}
|
|
139
125
|
|
|
140
126
|
&::before {
|
|
141
|
-
left: -0.875rem;
|
|
142
127
|
inset-inline-start: -0.875rem;
|
|
143
128
|
font-size: 1.25rem;
|
|
144
129
|
}
|
|
145
130
|
|
|
146
131
|
&::after {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
@supports (inset-inline-end: 0) {
|
|
150
|
-
right: unset;
|
|
151
|
-
inset-inline-end: -0.75rem;
|
|
152
|
-
}
|
|
132
|
+
inset-inline-end: -0.75rem;
|
|
153
133
|
}
|
|
154
134
|
|
|
155
135
|
tui-icon {
|
|
@@ -157,12 +137,12 @@ tui-notification,
|
|
|
157
137
|
}
|
|
158
138
|
|
|
159
139
|
[tuiTitle] {
|
|
160
|
-
font: var(--tui-font-
|
|
140
|
+
font: var(--tui-font-ui-m);
|
|
161
141
|
font-weight: bold;
|
|
162
142
|
}
|
|
163
143
|
|
|
164
144
|
[tuiSubtitle] {
|
|
165
|
-
font: var(--tui-font-
|
|
145
|
+
font: var(--tui-font-body-s);
|
|
166
146
|
}
|
|
167
147
|
|
|
168
148
|
[tuiSubtitle] + * {
|
|
@@ -171,48 +151,34 @@ tui-notification,
|
|
|
171
151
|
}
|
|
172
152
|
|
|
173
153
|
> [tuiIconButton] {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
@supports (inset-inline-end: 0) {
|
|
178
|
-
right: unset;
|
|
179
|
-
inset-inline-end: 0.5rem;
|
|
180
|
-
}
|
|
154
|
+
inset-block-start: 0.375rem;
|
|
155
|
+
inset-inline-end: 0.5rem;
|
|
181
156
|
}
|
|
182
157
|
}
|
|
183
158
|
|
|
184
159
|
[tuiTitle] {
|
|
185
160
|
gap: 0.125rem;
|
|
186
|
-
font: var(--tui-font-
|
|
161
|
+
font: var(--tui-font-ui-l);
|
|
187
162
|
font-weight: bold;
|
|
188
163
|
}
|
|
189
164
|
|
|
190
165
|
[tuiSubtitle] {
|
|
191
|
-
font: var(--tui-font-
|
|
166
|
+
font: var(--tui-font-body-m);
|
|
192
167
|
|
|
193
168
|
+ * {
|
|
194
169
|
display: flex;
|
|
195
170
|
align-items: center;
|
|
196
171
|
gap: 1.25rem;
|
|
197
172
|
margin-block-start: 0.625rem;
|
|
198
|
-
font: var(--tui-font-
|
|
173
|
+
font: var(--tui-font-body-s);
|
|
199
174
|
}
|
|
200
175
|
}
|
|
201
176
|
|
|
202
177
|
> [tuiIconButton] {
|
|
203
178
|
position: absolute;
|
|
204
|
-
|
|
205
|
-
|
|
179
|
+
inset-block-start: 0.75rem;
|
|
180
|
+
inset-inline-end: 0.75rem;
|
|
206
181
|
box-shadow: none !important;
|
|
207
182
|
background: transparent !important;
|
|
208
|
-
|
|
209
|
-
@supports (inset-inline-end: 0) {
|
|
210
|
-
right: unset;
|
|
211
|
-
inset-inline-end: 0.75rem;
|
|
212
|
-
}
|
|
213
183
|
}
|
|
214
184
|
}
|
|
215
|
-
|
|
216
|
-
[tuiNotification] {
|
|
217
|
-
cursor: pointer;
|
|
218
|
-
}
|