@dev-tcloud/tcloud-ui 5.0.4-beta.2 → 5.0.4-beta.3

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.
@@ -17,6 +17,7 @@ export * from './tc-rev-multi-input/tc-rev-multi-input.component';
17
17
  export * from './tc-rev-pagination/tc-rev-pagination.component';
18
18
  export * from './tc-rev-search-input/tc-rev-search-input.component';
19
19
  export * from './tc-rev-side-drawer/tc-rev-side-drawer.component';
20
+ export * from './tc-rev-slide-toggle/tc-rev-slide-toggle.directive';
20
21
  export * from './tc-rev-tab-group/tc-rev-tab-group.component';
21
22
  export * from './tc-rev-tab-group/tc-rev-tab-item/tc-rev-tab-item.component';
22
23
  export * from './tc-rev-tag/tag-colors.enum';
@@ -17,13 +17,14 @@ import * as i15 from "./tc-rev-multi-input/tc-rev-multi-input.component";
17
17
  import * as i16 from "./tc-rev-pagination/tc-rev-pagination.component";
18
18
  import * as i17 from "./tc-rev-search-input/tc-rev-search-input.component";
19
19
  import * as i18 from "./tc-rev-side-drawer/tc-rev-side-drawer.component";
20
- import * as i19 from "./tc-rev-tab-group/tc-rev-tab-group.component";
21
- import * as i20 from "./tc-rev-tab-group/tc-rev-tab-item/tc-rev-tab-item.component";
22
- import * as i21 from "./tc-rev-tag/tc-rev-tag.component";
23
- import * as i22 from "./tc-sub-navbar/tc-sub-navbar.component";
24
- import * as i23 from "./tc-sub-navbar/component/tc-sub-navbar-item/tc-sub-navbar-item.component";
20
+ import * as i19 from "./tc-rev-slide-toggle/tc-rev-slide-toggle.directive";
21
+ import * as i20 from "./tc-rev-tab-group/tc-rev-tab-group.component";
22
+ import * as i21 from "./tc-rev-tab-group/tc-rev-tab-item/tc-rev-tab-item.component";
23
+ import * as i22 from "./tc-rev-tag/tc-rev-tag.component";
24
+ import * as i23 from "./tc-sub-navbar/tc-sub-navbar.component";
25
+ import * as i24 from "./tc-sub-navbar/component/tc-sub-navbar-item/tc-sub-navbar-item.component";
25
26
  export declare class TcRevComponentsLibModule {
26
27
  static ɵfac: i0.ɵɵFactoryDeclaration<TcRevComponentsLibModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<TcRevComponentsLibModule, never, [typeof i1.TcRevBreadcrumbComponent, typeof i2.TcRevButtonDirective, typeof i3.TcRevCalendarComponent, typeof i4.TcRevCardComponent, typeof i5.TcRevCardTitleComponent, typeof i6.TcRevDropdownComponent, typeof i7.TcRevDropdownMultiLevelComponent, typeof i8.TcRevEmptyContentComponent, typeof i9.TcRevFaqComponent, typeof i10.TcRevIconButtonDirective, typeof i11.TcRevInputContainerComponent, typeof i12.TcRevInputDirective, typeof i13.TcRevLoadingComponent, typeof i14.TcRevMessageComponent, typeof i15.TcRevMultiInputComponent, typeof i16.TcRevPaginationComponent, typeof i17.TcRevSearchInputComponent, typeof i18.TcRevSideDrawerComponent, typeof i19.TcRevTabGroupComponent, typeof i20.TcRevTabItemComponent, typeof i21.TcRevTagComponent, typeof i22.TcRevSubNavbarComponent, typeof i23.TcRevSubNavbarItemComponent], [typeof i1.TcRevBreadcrumbComponent, typeof i2.TcRevButtonDirective, typeof i3.TcRevCalendarComponent, typeof i4.TcRevCardComponent, typeof i5.TcRevCardTitleComponent, typeof i6.TcRevDropdownComponent, typeof i7.TcRevDropdownMultiLevelComponent, typeof i8.TcRevEmptyContentComponent, typeof i9.TcRevFaqComponent, typeof i10.TcRevIconButtonDirective, typeof i11.TcRevInputContainerComponent, typeof i12.TcRevInputDirective, typeof i13.TcRevLoadingComponent, typeof i14.TcRevMessageComponent, typeof i15.TcRevMultiInputComponent, typeof i16.TcRevPaginationComponent, typeof i17.TcRevSearchInputComponent, typeof i18.TcRevSideDrawerComponent, typeof i19.TcRevTabGroupComponent, typeof i20.TcRevTabItemComponent, typeof i21.TcRevTagComponent, typeof i22.TcRevSubNavbarComponent, typeof i23.TcRevSubNavbarItemComponent]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TcRevComponentsLibModule, never, [typeof i1.TcRevBreadcrumbComponent, typeof i2.TcRevButtonDirective, typeof i3.TcRevCalendarComponent, typeof i4.TcRevCardComponent, typeof i5.TcRevCardTitleComponent, typeof i6.TcRevDropdownComponent, typeof i7.TcRevDropdownMultiLevelComponent, typeof i8.TcRevEmptyContentComponent, typeof i9.TcRevFaqComponent, typeof i10.TcRevIconButtonDirective, typeof i11.TcRevInputContainerComponent, typeof i12.TcRevInputDirective, typeof i13.TcRevLoadingComponent, typeof i14.TcRevMessageComponent, typeof i15.TcRevMultiInputComponent, typeof i16.TcRevPaginationComponent, typeof i17.TcRevSearchInputComponent, typeof i18.TcRevSideDrawerComponent, typeof i19.TcRevSlideToggleDirective, typeof i20.TcRevTabGroupComponent, typeof i21.TcRevTabItemComponent, typeof i22.TcRevTagComponent, typeof i23.TcRevSubNavbarComponent, typeof i24.TcRevSubNavbarItemComponent], [typeof i1.TcRevBreadcrumbComponent, typeof i2.TcRevButtonDirective, typeof i3.TcRevCalendarComponent, typeof i4.TcRevCardComponent, typeof i5.TcRevCardTitleComponent, typeof i6.TcRevDropdownComponent, typeof i7.TcRevDropdownMultiLevelComponent, typeof i8.TcRevEmptyContentComponent, typeof i9.TcRevFaqComponent, typeof i10.TcRevIconButtonDirective, typeof i11.TcRevInputContainerComponent, typeof i12.TcRevInputDirective, typeof i13.TcRevLoadingComponent, typeof i14.TcRevMessageComponent, typeof i15.TcRevMultiInputComponent, typeof i16.TcRevPaginationComponent, typeof i17.TcRevSearchInputComponent, typeof i18.TcRevSideDrawerComponent, typeof i19.TcRevSlideToggleDirective, typeof i20.TcRevTabGroupComponent, typeof i21.TcRevTabItemComponent, typeof i22.TcRevTagComponent, typeof i23.TcRevSubNavbarComponent, typeof i24.TcRevSubNavbarItemComponent]>;
28
29
  static ɵinj: i0.ɵɵInjectorDeclaration<TcRevComponentsLibModule>;
29
30
  }
@@ -1,9 +1,5 @@
1
- import { ElementRef } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class TcRevInputDirective {
4
- private elementRef;
5
- constructor(elementRef: ElementRef<HTMLInputElement>);
6
- private setErrorClass;
7
3
  static ɵfac: i0.ɵɵFactoryDeclaration<TcRevInputDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<TcRevInputDirective, "input[tcRevInput]", never, {}, {}, never, never, true, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TcRevInputDirective, "input[tcRevInput], select[tcRevInput]", never, {}, {}, never, never, true, never>;
9
5
  }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TcRevSlideToggleDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<TcRevSlideToggleDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TcRevSlideToggleDirective, "input[type=\"checkbox\"][tcRevSlideToggle]", never, {}, {}, never, never, true, never>;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-tcloud/tcloud-ui",
3
- "version": "5.0.4-beta.2",
3
+ "version": "5.0.4-beta.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14"
@@ -13,7 +13,7 @@
13
13
  max-width: 100%;
14
14
 
15
15
  &.error {
16
- border-color: var(--c-danger-500);
16
+ border-color: var(--c-danger-500);
17
17
  }
18
18
 
19
19
  &:hover,
@@ -329,3 +329,54 @@ input[type='checkbox'].tc-rev-input-checkbox {
329
329
  no-repeat center/contain;
330
330
  }
331
331
  }
332
+
333
+ // RESET SLIDE TOGGLE START
334
+ input.tc-rev-slide-toggle {
335
+ appearance: none;
336
+ -webkit-appearance: none;
337
+ -moz-appearance: none;
338
+ background: none;
339
+ border: none;
340
+ box-shadow: none;
341
+ margin: 0;
342
+ outline: none;
343
+ padding: 0;
344
+
345
+ &::after {
346
+ content: initial;
347
+ }
348
+ }
349
+ // RESET SLIDE TOGGLE END
350
+
351
+ input.tc-rev-slide-toggle {
352
+ width: 40px;
353
+ height: 24px;
354
+ border-radius: var(--bor-radius-pill);
355
+ background-color: var(--c-neutral-300);
356
+ cursor: pointer;
357
+ position: relative;
358
+ transition: background-color 0.2s ease;
359
+ display: inline-block;
360
+ }
361
+
362
+ input.tc-rev-slide-toggle::before {
363
+ content: '';
364
+ position: absolute;
365
+ top: 50%;
366
+ left: 2px;
367
+ transform: translateY(-50%);
368
+ width: 20px;
369
+ height: 20px;
370
+ border-radius: var(--bor-radius-rounded);
371
+ background-color: var(--c-neutral-50);
372
+ transition: left 0.2s ease, right 0.2s ease;
373
+ }
374
+
375
+ input.tc-rev-slide-toggle:checked {
376
+ background-color: var(--c-primary-500);
377
+ }
378
+
379
+ input.tc-rev-slide-toggle:checked::before {
380
+ left: auto;
381
+ right: 2px;
382
+ }