@dev-tcloud/tcloud-ui 5.4.0 → 5.4.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.
@@ -16,7 +16,6 @@ export declare class TCloudUiTooltipDirective {
16
16
  onMouseOver(event: MouseEvent): void;
17
17
  onMouseOut(event: MouseEvent): void;
18
18
  onClick(event: MouseEvent): void;
19
- private isValidTooltipText;
20
19
  private createTooltip;
21
20
  private removeTooltip;
22
21
  private repositionTooltip;
@@ -0,0 +1,22 @@
1
+ import { TemplateRef, RendererFactory2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TCloudUiDeviceUtilsService {
4
+ /*** Viewport mobile ***/
5
+ private readonly DESKTOP_MIN;
6
+ private widthScreen;
7
+ width: import("@angular/core").Signal<number>;
8
+ isDesktop: import("@angular/core").Signal<boolean>;
9
+ isMobile: import("@angular/core").Signal<boolean>;
10
+ /*** Utils ***/
11
+ private renderer;
12
+ private menuHost;
13
+ private embeddedView;
14
+ private appRef;
15
+ private animationBuilder;
16
+ private player;
17
+ constructor(rendererFactory: RendererFactory2);
18
+ openDropdownDevice(menuTemplate: TemplateRef<any>): void;
19
+ closeDropdownDevice(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<TCloudUiDeviceUtilsService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<TCloudUiDeviceUtilsService>;
22
+ }
@@ -1,5 +1,12 @@
1
+ import { TCloudUiDeviceUtilsService } from '../../../_services/tcloud-ui-device-utils.service';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class TcRevCardComponent {
4
+ _viewPort: TCloudUiDeviceUtilsService;
5
+ isDesktop: import("@angular/core").Signal<boolean>;
6
+ /**
7
+ * APPLY FUNCTIONS RESPONSIVE < 480PX
8
+ */
9
+ get extraClasses(): string[];
3
10
  static ɵfac: i0.ɵɵFactoryDeclaration<TcRevCardComponent, never>;
4
11
  static ɵcmp: i0.ɵɵComponentDeclaration<TcRevCardComponent, "tc-rev-card", never, {}, {}, never, ["*"], true, never>;
5
12
  }
@@ -1,5 +1,7 @@
1
+ import { TCloudUiDeviceUtilsService } from '../../../_services/tcloud-ui-device-utils.service';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class TcRevCardAccordionComponent {
4
+ _viewPort: TCloudUiDeviceUtilsService;
3
5
  toggle: import("@angular/core").OutputEmitterRef<boolean>;
4
6
  title: import("@angular/core").InputSignal<string>;
5
7
  iconClass: import("@angular/core").InputSignal<string>;
@@ -10,7 +12,12 @@ export declare class TcRevCardAccordionComponent {
10
12
  class: string;
11
13
  }>;
12
14
  isOpen: import("@angular/core").ModelSignal<boolean>;
15
+ isDesktop: import("@angular/core").Signal<boolean>;
13
16
  toggleAccordion(): void;
17
+ /**
18
+ * APPLY FUNCTIONS RESPONSIVE < 500PX
19
+ */
20
+ get accordionExtraClasses(): string[];
14
21
  static ɵfac: i0.ɵɵFactoryDeclaration<TcRevCardAccordionComponent, never>;
15
22
  static ɵcmp: i0.ɵɵComponentDeclaration<TcRevCardAccordionComponent, "tc-rev-card-accordion", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "iconClass": { "alias": "iconClass"; "required": false; "isSignal": true; }; "showMoreText": { "alias": "showMoreText"; "required": false; "isSignal": true; }; "showLessText": { "alias": "showLessText"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; }, { "toggle": "toggle"; "isOpen": "isOpenChange"; }, never, ["*"], true, never>;
16
23
  }
@@ -23,17 +23,19 @@ import * as i21 from "./tc-rev-progress-status-bar/tc-rev-progress-status-bar.co
23
23
  import * as i22 from "./tc-rev-radio/tc-rev-radio.directive";
24
24
  import * as i23 from "./tc-rev-search-input/tc-rev-search-input.component";
25
25
  import * as i24 from "./tc-rev-side-drawer/tc-rev-side-drawer.component";
26
- import * as i25 from "./tc-rev-slide-toggle/tc-rev-slide-toggle.directive";
27
- import * as i26 from "./tc-rev-small-loading/tc-rev-small-loading.component";
28
- import * as i27 from "./tc-rev-tab-group/tc-rev-tab-group.component";
29
- import * as i28 from "./tc-rev-tab-group/tc-rev-tab-item/tc-rev-tab-item.component";
30
- import * as i29 from "./tc-rev-tag/tc-rev-tag.component";
31
- import * as i30 from "./tc-rev-toast/tc-rev-toast.component";
32
- import * as i31 from "./tc-sub-navbar/tc-sub-navbar.component";
33
- import * as i32 from "./tc-sub-navbar/component/tc-sub-navbar-item/tc-sub-navbar-item.component";
34
- import * as i33 from "./tc-rev-wizard-steps/tc-rev-wizard-steps.component";
26
+ import * as i25 from "./tc-rev-skeleton-loading/tc-rev-skeleton-loading.component";
27
+ import * as i26 from "./tc-rev-slide-toggle/tc-rev-slide-toggle.directive";
28
+ import * as i27 from "./tc-rev-small-loading/tc-rev-small-loading.component";
29
+ import * as i28 from "./tc-rev-tab-group/tc-rev-tab-group.component";
30
+ import * as i29 from "./tc-rev-tab-group/tc-rev-tab-item/tc-rev-tab-item.component";
31
+ import * as i30 from "./tc-rev-tag/tc-rev-tag.component";
32
+ import * as i31 from "./tc-rev-toast/tc-rev-toast.component";
33
+ import * as i32 from "./tc-rev-tooltip/tc-rev-tooltip.directive";
34
+ import * as i33 from "./tc-sub-navbar/tc-sub-navbar.component";
35
+ import * as i34 from "./tc-sub-navbar/component/tc-sub-navbar-item/tc-sub-navbar-item.component";
36
+ import * as i35 from "./tc-rev-wizard-steps/tc-rev-wizard-steps.component";
35
37
  export declare class TcRevComponentsLibModule {
36
38
  static ɵfac: i0.ɵɵFactoryDeclaration<TcRevComponentsLibModule, never>;
37
- static ɵmod: i0.ɵɵNgModuleDeclaration<TcRevComponentsLibModule, never, [typeof i1.TcRevBreadcrumbComponent, typeof i2.TcRevButtonDirective, typeof i3.TcRevCalendarComponent, typeof i4.TcRevCardComponent, typeof i5.TcRevCardAccordionComponent, typeof i6.TcRevCardTitleComponent, typeof i7.TcRevCheckboxDirective, typeof i8.TcRevDropdownComponent, typeof i9.TcRevDropdownGroupedComponent, typeof i10.TcRevDropdownMultiComponent, typeof i11.TcRevDropdownMultiLevelComponent, typeof i12.TcRevEmptyContentComponent, typeof i13.TcRevFaqComponent, typeof i14.TcRevIconButtonDirective, typeof i15.TcRevInputContainerComponent, typeof i16.TcRevInputDirective, typeof i17.TcRevLoadingComponent, typeof i18.TcRevMessageComponent, typeof i19.TcRevMultiInputComponent, typeof i20.TcRevPaginationComponent, typeof i21.TcRevProgressStatusBarComponent, typeof i22.TcRevRadioDirective, typeof i23.TcRevSearchInputComponent, typeof i24.TcRevSideDrawerComponent, typeof i25.TcRevSlideToggleDirective, typeof i26.TcRevSmallLoadingComponent, typeof i27.TcRevTabGroupComponent, typeof i28.TcRevTabItemComponent, typeof i29.TcRevTagComponent, typeof i30.TcRevToastComponent, typeof i31.TcRevSubNavbarComponent, typeof i32.TcRevSubNavbarItemComponent, typeof i33.TcRevWizardStepsComponent], [typeof i2.TcRevButtonDirective, typeof i3.TcRevCalendarComponent, typeof i4.TcRevCardComponent, typeof i5.TcRevCardAccordionComponent, typeof i6.TcRevCardTitleComponent, typeof i7.TcRevCheckboxDirective, typeof i8.TcRevDropdownComponent, typeof i9.TcRevDropdownGroupedComponent, typeof i10.TcRevDropdownMultiComponent, typeof i11.TcRevDropdownMultiLevelComponent, typeof i12.TcRevEmptyContentComponent, typeof i13.TcRevFaqComponent, typeof i14.TcRevIconButtonDirective, typeof i15.TcRevInputContainerComponent, typeof i16.TcRevInputDirective, typeof i17.TcRevLoadingComponent, typeof i18.TcRevMessageComponent, typeof i19.TcRevMultiInputComponent, typeof i20.TcRevPaginationComponent, typeof i21.TcRevProgressStatusBarComponent, typeof i26.TcRevSmallLoadingComponent, typeof i22.TcRevRadioDirective, typeof i23.TcRevSearchInputComponent, typeof i24.TcRevSideDrawerComponent, typeof i25.TcRevSlideToggleDirective, typeof i27.TcRevTabGroupComponent, typeof i28.TcRevTabItemComponent, typeof i29.TcRevTagComponent, typeof i30.TcRevToastComponent, typeof i31.TcRevSubNavbarComponent, typeof i32.TcRevSubNavbarItemComponent, typeof i33.TcRevWizardStepsComponent]>;
39
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TcRevComponentsLibModule, never, [typeof i1.TcRevBreadcrumbComponent, typeof i2.TcRevButtonDirective, typeof i3.TcRevCalendarComponent, typeof i4.TcRevCardComponent, typeof i5.TcRevCardAccordionComponent, typeof i6.TcRevCardTitleComponent, typeof i7.TcRevCheckboxDirective, typeof i8.TcRevDropdownComponent, typeof i9.TcRevDropdownGroupedComponent, typeof i10.TcRevDropdownMultiComponent, typeof i11.TcRevDropdownMultiLevelComponent, typeof i12.TcRevEmptyContentComponent, typeof i13.TcRevFaqComponent, typeof i14.TcRevIconButtonDirective, typeof i15.TcRevInputContainerComponent, typeof i16.TcRevInputDirective, typeof i17.TcRevLoadingComponent, typeof i18.TcRevMessageComponent, typeof i19.TcRevMultiInputComponent, typeof i20.TcRevPaginationComponent, typeof i21.TcRevProgressStatusBarComponent, typeof i22.TcRevRadioDirective, typeof i23.TcRevSearchInputComponent, typeof i24.TcRevSideDrawerComponent, typeof i25.TcRevSkeletonLoadingComponent, typeof i26.TcRevSlideToggleDirective, typeof i27.TcRevSmallLoadingComponent, typeof i28.TcRevTabGroupComponent, typeof i29.TcRevTabItemComponent, typeof i30.TcRevTagComponent, typeof i31.TcRevToastComponent, typeof i32.TcRevTooltipDirective, typeof i33.TcRevSubNavbarComponent, typeof i34.TcRevSubNavbarItemComponent, typeof i35.TcRevWizardStepsComponent], [typeof i2.TcRevButtonDirective, typeof i3.TcRevCalendarComponent, typeof i4.TcRevCardComponent, typeof i5.TcRevCardAccordionComponent, typeof i6.TcRevCardTitleComponent, typeof i7.TcRevCheckboxDirective, typeof i8.TcRevDropdownComponent, typeof i9.TcRevDropdownGroupedComponent, typeof i10.TcRevDropdownMultiComponent, typeof i11.TcRevDropdownMultiLevelComponent, typeof i12.TcRevEmptyContentComponent, typeof i13.TcRevFaqComponent, typeof i14.TcRevIconButtonDirective, typeof i15.TcRevInputContainerComponent, typeof i16.TcRevInputDirective, typeof i17.TcRevLoadingComponent, typeof i18.TcRevMessageComponent, typeof i19.TcRevMultiInputComponent, typeof i20.TcRevPaginationComponent, typeof i21.TcRevProgressStatusBarComponent, typeof i27.TcRevSmallLoadingComponent, typeof i22.TcRevRadioDirective, typeof i23.TcRevSearchInputComponent, typeof i24.TcRevSideDrawerComponent, typeof i25.TcRevSkeletonLoadingComponent, typeof i26.TcRevSlideToggleDirective, typeof i28.TcRevTabGroupComponent, typeof i29.TcRevTabItemComponent, typeof i30.TcRevTagComponent, typeof i31.TcRevToastComponent, typeof i32.TcRevTooltipDirective, typeof i33.TcRevSubNavbarComponent, typeof i34.TcRevSubNavbarItemComponent, typeof i35.TcRevWizardStepsComponent]>;
38
40
  static ɵinj: i0.ɵɵInjectorDeclaration<TcRevComponentsLibModule>;
39
41
  }
@@ -1,4 +1,5 @@
1
- import { ElementRef, SimpleChanges } from '@angular/core';
1
+ import { ElementRef, SimpleChanges, TemplateRef } from '@angular/core';
2
+ import { TCloudUiDeviceUtilsService } from '../../../_services/tcloud-ui-device-utils.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export interface DropdownOption {
4
5
  id?: any;
@@ -13,7 +14,9 @@ export declare enum DropdownSize {
13
14
  }
14
15
  export declare class TcRevDropdownComponent {
15
16
  private elementRef;
17
+ menuTemplate: TemplateRef<any>;
16
18
  onDocumentClick(event: MouseEvent): void;
19
+ _deviceService: TCloudUiDeviceUtilsService;
17
20
  label: import("@angular/core").InputSignal<string>;
18
21
  disabled: import("@angular/core").InputSignal<boolean>;
19
22
  options: import("@angular/core").InputSignal<DropdownOption[]>;
@@ -25,6 +28,8 @@ export declare class TcRevDropdownComponent {
25
28
  selectedOption: import("@angular/core").WritableSignal<DropdownOption>;
26
29
  isOpen: boolean;
27
30
  dropdownSize: typeof DropdownSize;
31
+ isDesktop: import("@angular/core").Signal<boolean>;
32
+ isMobile: import("@angular/core").Signal<boolean>;
28
33
  constructor(elementRef: ElementRef);
29
34
  ngOnChanges(_simpleChanges: SimpleChanges): void;
30
35
  ngOnInit(): void;
@@ -1,11 +1,14 @@
1
+ import { EventEmitter, SimpleChanges } from '@angular/core';
1
2
  import { FormControl } from '@angular/forms';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class TcRevSearchInputComponent {
5
+ searchText: string;
6
+ searchTextChange: EventEmitter<string>;
4
7
  protected searchTextForm: FormControl<string>;
5
8
  placeholder: import("@angular/core").InputSignal<string>;
6
- searchText: import("@angular/core").ModelSignal<string>;
7
9
  onSearch: import("@angular/core").OutputEmitterRef<string>;
10
+ ngOnChanges(_simpleChanges: SimpleChanges): void;
8
11
  ngOnInit(): void;
9
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TcRevSearchInputComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<TcRevSearchInputComponent, "tc-rev-search-input", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "searchText": { "alias": "searchText"; "required": false; "isSignal": true; }; }, { "searchText": "searchTextChange"; "onSearch": "onSearch"; }, never, never, true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<TcRevSearchInputComponent, "tc-rev-search-input", never, { "searchText": { "alias": "searchText"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, { "searchTextChange": "searchTextChange"; "onSearch": "onSearch"; }, never, never, true, never>;
11
14
  }
@@ -0,0 +1,17 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TcRevSkeletonLoadingComponent implements OnInit {
4
+ /** Params of the loading skeleton accepts string with CSS units (px, rem, em) */
5
+ width: import("@angular/core").InputSignal<string>;
6
+ height: import("@angular/core").InputSignal<string>;
7
+ borderRadius: import("@angular/core").InputSignal<string>;
8
+ style: TcRevSkeletonLoadingComponentStyle;
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TcRevSkeletonLoadingComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<TcRevSkeletonLoadingComponent, "tc-rev-skeleton-loading", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "borderRadius": { "alias": "borderRadius"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
+ }
13
+ export declare class TcRevSkeletonLoadingComponentStyle {
14
+ width: string;
15
+ height: string;
16
+ borderRadius: string;
17
+ }
@@ -7,7 +7,6 @@ export declare class TcRevTabGroupComponent {
7
7
  ngOnInit(): void;
8
8
  private checkCarouselOverflow;
9
9
  scrollTabsCarousel(direction: 'left' | 'right'): void;
10
- private checkResponsiveMode;
11
10
  static ɵfac: i0.ɵɵFactoryDeclaration<TcRevTabGroupComponent, never>;
12
11
  static ɵcmp: i0.ɵɵComponentDeclaration<TcRevTabGroupComponent, "tc-rev-tab-group", never, {}, {}, never, ["*"], true, never>;
13
12
  }
@@ -2,6 +2,7 @@ import * as i0 from "@angular/core";
2
2
  export declare class TcRevToastComponent {
3
3
  type: import("@angular/core").InputSignal<"info" | "success" | "danger" | "alert">;
4
4
  fullWidth: import("@angular/core").InputSignal<boolean>;
5
+ size: import("@angular/core").InputSignal<"lg" | "md" | "sm">;
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<TcRevToastComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<TcRevToastComponent, "tc-rev-toast", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; }, {}, never, ["[icon]", "*"], true, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<TcRevToastComponent, "tc-rev-toast", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["[icon]", "*"], true, never>;
7
8
  }
@@ -0,0 +1,19 @@
1
+ import { ElementRef, Renderer2, ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TcRevTooltipDirective {
4
+ private _el;
5
+ private _renderer;
6
+ private _vcr;
7
+ tcRevTooltip: import("@angular/core").InputSignal<string>;
8
+ position: import("@angular/core").InputSignal<"top" | "left" | "right" | "bottom">;
9
+ private tooltipElement;
10
+ constructor(_el: ElementRef, _renderer: Renderer2, _vcr: ViewContainerRef);
11
+ onMouseEnter(): void;
12
+ onMouseLeave(): void;
13
+ private isValidTooltipText;
14
+ private showTooltip;
15
+ private hideTooltip;
16
+ private positionTooltip;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<TcRevTooltipDirective, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TcRevTooltipDirective, "[tcRevTooltip]", never, { "tcRevTooltip": { "alias": "tcRevTooltip"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
19
+ }
@@ -5,4 +5,5 @@ export interface TCloudUiConfig {
5
5
  export interface TCloudUiCustomServices {
6
6
  userService?: any;
7
7
  themeService?: any;
8
+ viewportService?: any;
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-tcloud/tcloud-ui",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14"
package/public-api.d.ts CHANGED
@@ -106,6 +106,7 @@ export * from './lib/revitalizacao/components/tc-rev-progress-status-bar/tc-rev-
106
106
  export * from './lib/revitalizacao/components/tc-rev-radio/tc-rev-radio.directive';
107
107
  export * from './lib/revitalizacao/components/tc-rev-search-input/tc-rev-search-input.component';
108
108
  export * from './lib/revitalizacao/components/tc-rev-side-drawer/tc-rev-side-drawer.component';
109
+ export * from './lib/revitalizacao/components/tc-rev-skeleton-loading/tc-rev-skeleton-loading.component';
109
110
  export * from './lib/revitalizacao/components/tc-rev-slide-toggle/tc-rev-slide-toggle.directive';
110
111
  export * from './lib/revitalizacao/components/tc-rev-small-loading/tc-rev-small-loading.component';
111
112
  export * from './lib/revitalizacao/components/tc-rev-tab-group/tc-rev-tab-group.component';
@@ -113,6 +114,7 @@ export * from './lib/revitalizacao/components/tc-rev-tab-group/tc-rev-tab-item/t
113
114
  export * from './lib/revitalizacao/components/tc-rev-tag/tag-colors.enum';
114
115
  export * from './lib/revitalizacao/components/tc-rev-tag/tc-rev-tag.component';
115
116
  export * from './lib/revitalizacao/components/tc-rev-toast/tc-rev-toast.component';
117
+ export * from './lib/revitalizacao/components/tc-rev-tooltip/tc-rev-tooltip.directive';
116
118
  export * from './lib/revitalizacao/components/tc-sub-navbar/component/tc-sub-navbar-item/tc-sub-navbar-item.component';
117
119
  export * from './lib/revitalizacao/components/tc-sub-navbar/tc-sub-navbar.component';
118
120
  export * from './lib/revitalizacao/util/ellipsed-text';
@@ -0,0 +1,206 @@
1
+ .tc-rev-tooltip {
2
+ position: absolute;
3
+ z-index: 9999;
4
+ font-family: var(--f-family);
5
+ font-size: var(--f-size-12);
6
+ line-height: var(--l-height-16);
7
+ font-weight: var(--f-weight-400);
8
+ color: var(--c-neutral-50);
9
+ background-color: var(--c-neutral-800);
10
+ padding: 8px 12px;
11
+ border-radius: 6px;
12
+ box-shadow: var(--shadow-md);
13
+ white-space: nowrap;
14
+ max-width: 300px;
15
+ word-wrap: break-word;
16
+ white-space: normal;
17
+ opacity: 0;
18
+ visibility: hidden;
19
+ transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
20
+ pointer-events: none;
21
+
22
+ // Estado visível
23
+ &.tc-rev-tooltip--visible {
24
+ opacity: 1;
25
+ visibility: visible;
26
+ }
27
+
28
+ // Setas indicativas de direção
29
+ &::after {
30
+ content: '';
31
+ position: absolute;
32
+ width: 0;
33
+ height: 0;
34
+ border: 5px solid transparent;
35
+ }
36
+
37
+ // Tooltip posicionado no topo
38
+ &.tc-rev-tooltip--top {
39
+ &::after {
40
+ top: 100%;
41
+ left: 50%;
42
+ transform: translateX(-50%);
43
+ border-top-color: var(--c-neutral-800);
44
+ border-bottom: none;
45
+ }
46
+ }
47
+
48
+ // Tooltip posicionado embaixo
49
+ &.tc-rev-tooltip--bottom {
50
+ &::after {
51
+ bottom: 100%;
52
+ left: 50%;
53
+ transform: translateX(-50%);
54
+ border-bottom-color: var(--c-neutral-800);
55
+ border-top: none;
56
+ }
57
+ }
58
+
59
+ // Tooltip posicionado à esquerda
60
+ &.tc-rev-tooltip--left {
61
+ &::after {
62
+ top: 50%;
63
+ left: 100%;
64
+ transform: translateY(-50%);
65
+ border-left-color: var(--c-neutral-800);
66
+ border-right: none;
67
+ }
68
+ }
69
+
70
+ // Tooltip posicionado à direita
71
+ &.tc-rev-tooltip--right {
72
+ &::after {
73
+ top: 50%;
74
+ right: 100%;
75
+ transform: translateY(-50%);
76
+ border-right-color: var(--c-neutral-800);
77
+ border-left: none;
78
+ }
79
+ }
80
+
81
+ // Variantes de tema
82
+ &.tc-rev-tooltip--primary {
83
+ background-color: var(--c-primary-600);
84
+
85
+ &.tc-rev-tooltip--top::after {
86
+ border-top-color: var(--c-primary-600);
87
+ }
88
+
89
+ &.tc-rev-tooltip--bottom::after {
90
+ border-bottom-color: var(--c-primary-600);
91
+ }
92
+
93
+ &.tc-rev-tooltip--left::after {
94
+ border-left-color: var(--c-primary-600);
95
+ }
96
+
97
+ &.tc-rev-tooltip--right::after {
98
+ border-right-color: var(--c-primary-600);
99
+ }
100
+ }
101
+
102
+ &.tc-rev-tooltip--danger {
103
+ background-color: var(--c-danger-500);
104
+
105
+ &.tc-rev-tooltip--top::after {
106
+ border-top-color: var(--c-danger-500);
107
+ }
108
+
109
+ &.tc-rev-tooltip--bottom::after {
110
+ border-bottom-color: var(--c-danger-500);
111
+ }
112
+
113
+ &.tc-rev-tooltip--left::after {
114
+ border-left-color: var(--c-danger-500);
115
+ }
116
+
117
+ &.tc-rev-tooltip--right::after {
118
+ border-right-color: var(--c-danger-500);
119
+ }
120
+ }
121
+
122
+ &.tc-rev-tooltip--success {
123
+ background-color: var(--c-success-500);
124
+
125
+ &.tc-rev-tooltip--top::after {
126
+ border-top-color: var(--c-success-500);
127
+ }
128
+
129
+ &.tc-rev-tooltip--bottom::after {
130
+ border-bottom-color: var(--c-success-500);
131
+ }
132
+
133
+ &.tc-rev-tooltip--left::after {
134
+ border-left-color: var(--c-success-500);
135
+ }
136
+
137
+ &.tc-rev-tooltip--right::after {
138
+ border-right-color: var(--c-success-500);
139
+ }
140
+ }
141
+
142
+ &.tc-rev-tooltip--info {
143
+ background-color: var(--c-info-500);
144
+
145
+ &.tc-rev-tooltip--top::after {
146
+ border-top-color: var(--c-info-500);
147
+ }
148
+
149
+ &.tc-rev-tooltip--bottom::after {
150
+ border-bottom-color: var(--c-info-500);
151
+ }
152
+
153
+ &.tc-rev-tooltip--left::after {
154
+ border-left-color: var(--c-info-500);
155
+ }
156
+
157
+ &.tc-rev-tooltip--right::after {
158
+ border-right-color: var(--c-info-500);
159
+ }
160
+ }
161
+
162
+ &.tc-rev-tooltip--alert {
163
+ background-color: var(--c-alert-500);
164
+
165
+ &.tc-rev-tooltip--top::after {
166
+ border-top-color: var(--c-alert-500);
167
+ }
168
+
169
+ &.tc-rev-tooltip--bottom::after {
170
+ border-bottom-color: var(--c-alert-500);
171
+ }
172
+
173
+ &.tc-rev-tooltip--left::after {
174
+ border-left-color: var(--c-alert-500);
175
+ }
176
+
177
+ &.tc-rev-tooltip--right::after {
178
+ border-right-color: var(--c-alert-500);
179
+ }
180
+ }
181
+
182
+ // Variantes de tamanho
183
+ &.tc-rev-tooltip--sm {
184
+ font-size: var(--f-size-12);
185
+ padding: 6px 10px;
186
+
187
+ &::after {
188
+ border-width: 4px;
189
+ }
190
+ }
191
+
192
+ &.tc-rev-tooltip--md {
193
+ font-size: var(--f-size-14);
194
+ padding: 8px 12px;
195
+ }
196
+
197
+ &.tc-rev-tooltip--lg {
198
+ font-size: var(--f-size-16);
199
+ padding: 10px 16px;
200
+ max-width: 400px;
201
+
202
+ &::after {
203
+ border-width: 6px;
204
+ }
205
+ }
206
+ }
@@ -1,8 +1,3 @@
1
-
2
- :root{
3
- --breakpoint-mobile: 480px;
4
- }
5
-
6
1
  .cursor-pointer
7
2
  {
8
3
  cursor: pointer;
@@ -13,6 +13,7 @@
13
13
  @use './components/tc-rev-search-input';
14
14
  @use './components/tc-rev-slide-toggle';
15
15
  @use './components/tc-rev-tab-item';
16
+ @use './components/tc-rev-tooltip';
16
17
  @use './components/tc-rev-util';
17
18
  @use './_tc-rev-opacity';
18
19