yukit 0.0.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.
Files changed (117) hide show
  1. package/README.md +24 -0
  2. package/esm2022/lib/components/avatar/avatar.component.mjs +17 -0
  3. package/esm2022/lib/components/badge/badge.component.mjs +24 -0
  4. package/esm2022/lib/components/button/button.component.mjs +27 -0
  5. package/esm2022/lib/components/checkbox/checkbox.component.mjs +42 -0
  6. package/esm2022/lib/components/chip/chip.component.mjs +24 -0
  7. package/esm2022/lib/components/helper/helper.component.mjs +20 -0
  8. package/esm2022/lib/components/icon/icon.component.mjs +20 -0
  9. package/esm2022/lib/components/input/input.component.mjs +46 -0
  10. package/esm2022/lib/components/list-action/list-action.component.mjs +18 -0
  11. package/esm2022/lib/components/notice/notice.component.mjs +26 -0
  12. package/esm2022/lib/components/searchbar/searchbar.component.mjs +36 -0
  13. package/esm2022/lib/components/tag/tag.component.mjs +27 -0
  14. package/esm2022/lib/components/textarea/textarea.component.mjs +50 -0
  15. package/esm2022/lib/components/toggle/toggle.component.mjs +39 -0
  16. package/esm2022/lib/interface/color.interface.mjs +2 -0
  17. package/esm2022/lib/interface/input-mode.interface.mjs +2 -0
  18. package/esm2022/lib/interface/input-type.interface.mjs +2 -0
  19. package/esm2022/lib/interface/size.interface.mjs +2 -0
  20. package/esm2022/lib/yukit.module.mjs +83 -0
  21. package/esm2022/public-api.mjs +23 -0
  22. package/esm2022/yukit.mjs +5 -0
  23. package/fesm2022/yukit.mjs +439 -0
  24. package/fesm2022/yukit.mjs.map +1 -0
  25. package/index.d.ts +5 -0
  26. package/lib/components/avatar/avatar.component.d.ts +6 -0
  27. package/lib/components/badge/badge.component.d.ts +9 -0
  28. package/lib/components/button/button.component.d.ts +12 -0
  29. package/lib/components/checkbox/checkbox.component.d.ts +15 -0
  30. package/lib/components/chip/chip.component.d.ts +9 -0
  31. package/lib/components/helper/helper.component.d.ts +8 -0
  32. package/lib/components/icon/icon.component.d.ts +8 -0
  33. package/lib/components/input/input.component.d.ts +19 -0
  34. package/lib/components/list-action/list-action.component.d.ts +7 -0
  35. package/lib/components/notice/notice.component.d.ts +10 -0
  36. package/lib/components/searchbar/searchbar.component.d.ts +13 -0
  37. package/lib/components/tag/tag.component.d.ts +10 -0
  38. package/lib/components/textarea/textarea.component.d.ts +21 -0
  39. package/lib/components/toggle/toggle.component.d.ts +14 -0
  40. package/lib/interface/color.interface.d.ts +1 -0
  41. package/lib/interface/input-mode.interface.d.ts +1 -0
  42. package/lib/interface/input-type.interface.d.ts +1 -0
  43. package/lib/interface/size.interface.d.ts +1 -0
  44. package/lib/yukit.module.d.ts +23 -0
  45. package/package.json +30 -0
  46. package/public-api.d.ts +19 -0
  47. package/src/lib/components/avatar/avatar.component.html +4 -0
  48. package/src/lib/components/avatar/avatar.component.scss +0 -0
  49. package/src/lib/components/avatar/avatar.component.ts +9 -0
  50. package/src/lib/components/badge/badge.component.html +7 -0
  51. package/src/lib/components/badge/badge.component.scss +27 -0
  52. package/src/lib/components/badge/badge.component.ts +15 -0
  53. package/src/lib/components/button/button.component.html +9 -0
  54. package/src/lib/components/button/button.component.scss +99 -0
  55. package/src/lib/components/button/button.component.ts +16 -0
  56. package/src/lib/components/checkbox/checkbox.component.html +13 -0
  57. package/src/lib/components/checkbox/checkbox.component.scss +23 -0
  58. package/src/lib/components/checkbox/checkbox.component.ts +20 -0
  59. package/src/lib/components/chip/chip.component.html +11 -0
  60. package/src/lib/components/chip/chip.component.scss +34 -0
  61. package/src/lib/components/chip/chip.component.ts +12 -0
  62. package/src/lib/components/helper/helper.component.html +7 -0
  63. package/src/lib/components/helper/helper.component.scss +19 -0
  64. package/src/lib/components/helper/helper.component.ts +11 -0
  65. package/src/lib/components/icon/Phosphor.svg +3056 -0
  66. package/src/lib/components/icon/Phosphor.ttf +0 -0
  67. package/src/lib/components/icon/Phosphor.woff +0 -0
  68. package/src/lib/components/icon/Phosphor.woff2 +0 -0
  69. package/src/lib/components/icon/icon.component.html +6 -0
  70. package/src/lib/components/icon/icon.component.scss +4637 -0
  71. package/src/lib/components/icon/icon.component.ts +12 -0
  72. package/src/lib/components/input/input.component.html +26 -0
  73. package/src/lib/components/input/input.component.scss +39 -0
  74. package/src/lib/components/input/input.component.ts +26 -0
  75. package/src/lib/components/list-action/list-action.component.html +3 -0
  76. package/src/lib/components/list-action/list-action.component.scss +21 -0
  77. package/src/lib/components/list-action/list-action.component.ts +10 -0
  78. package/src/lib/components/notice/notice.component.html +8 -0
  79. package/src/lib/components/notice/notice.component.scss +56 -0
  80. package/src/lib/components/notice/notice.component.ts +13 -0
  81. package/src/lib/components/searchbar/searchbar.component.html +7 -0
  82. package/src/lib/components/searchbar/searchbar.component.scss +38 -0
  83. package/src/lib/components/searchbar/searchbar.component.ts +25 -0
  84. package/src/lib/components/tag/tag.component.html +10 -0
  85. package/src/lib/components/tag/tag.component.scss +38 -0
  86. package/src/lib/components/tag/tag.component.ts +13 -0
  87. package/src/lib/components/textarea/textarea.component.html +16 -0
  88. package/src/lib/components/textarea/textarea.component.scss +39 -0
  89. package/src/lib/components/textarea/textarea.component.ts +29 -0
  90. package/src/lib/components/toggle/toggle.component.html +12 -0
  91. package/src/lib/components/toggle/toggle.component.scss +26 -0
  92. package/src/lib/components/toggle/toggle.component.ts +19 -0
  93. package/src/lib/interface/color.interface.ts +1 -0
  94. package/src/lib/interface/input-mode.interface.ts +11 -0
  95. package/src/lib/interface/input-type.interface.ts +13 -0
  96. package/src/lib/interface/size.interface.ts +1 -0
  97. package/src/lib/theme/components/action-sheet.scss +113 -0
  98. package/src/lib/theme/components/alert.scss +83 -0
  99. package/src/lib/theme/components/back-button.scss +23 -0
  100. package/src/lib/theme/components/modal.scss +38 -0
  101. package/src/lib/theme/components/segment.scss +21 -0
  102. package/src/lib/theme/components/tabs.scss +48 -0
  103. package/src/lib/theme/components/toast.scss +41 -0
  104. package/src/lib/theme/structure/content.scss +58 -0
  105. package/src/lib/theme/structure/footer.scss +28 -0
  106. package/src/lib/theme/structure/form.scss +31 -0
  107. package/src/lib/theme/structure/header.scss +63 -0
  108. package/src/lib/theme/tokens/colors.scss +106 -0
  109. package/src/lib/theme/tokens/font/Geist-Variable.woff2 +0 -0
  110. package/src/lib/theme/tokens/icons.scss +4 -0
  111. package/src/lib/theme/tokens/radius.scss +14 -0
  112. package/src/lib/theme/tokens/shadow.scss +32 -0
  113. package/src/lib/theme/tokens/spacing.scss +40 -0
  114. package/src/lib/theme/tokens/typography.scss +175 -0
  115. package/src/lib/yukit.module.ts +48 -0
  116. package/src/lib/yukit.scss +33 -0
  117. package/yukit-0.0.1.tgz +0 -0
@@ -0,0 +1,12 @@
1
+ import {Component, Input} from '@angular/core';
2
+ import {YuColorDto} from '../../interface/color.interface';
3
+
4
+ @Component({
5
+ selector: 'yu-icon',
6
+ templateUrl: './icon.component.html',
7
+ styleUrls: ['./icon.component.scss'],
8
+ })
9
+ export class IconComponent {
10
+ @Input() name: string = '';
11
+ @Input() color: YuColorDto = 'gradient';
12
+ }
@@ -0,0 +1,26 @@
1
+ <ion-input
2
+ mode="md"
3
+ fill="outline"
4
+ labelPlacement="stacked"
5
+ [label]="label"
6
+ [placeholder]="placeholder"
7
+ [autocapitalize]="autocapitalize"
8
+ [inputmode]="inputmode"
9
+ [type]="type"
10
+ [disabled]="disabled"
11
+ [(ngModel)]="value"
12
+ (ngModelChange)="valueChange.emit(value)"
13
+ [ngClass]="{'has-error': isIncorrectValue}"
14
+ >
15
+ <ng-content></ng-content>
16
+
17
+ <ion-input-password-toggle
18
+ *ngIf="passwordToggle"
19
+ slot="end"
20
+ color="dark"
21
+ showIcon="eye-outline"
22
+ hideIcon="eye-off-outline"
23
+ ></ion-input-password-toggle>
24
+ </ion-input>
25
+
26
+ <yu-helper *ngIf="isIncorrectValue" color="error" icon="warning-circle">{{ helperText }}</yu-helper>
@@ -0,0 +1,39 @@
1
+ yu-input {
2
+ width: 100%;
3
+ margin-top: var(--layout-spacing-input-medium);
4
+ }
5
+
6
+ ion-input[mode="md"] {
7
+ --border-color: var(--element-outline) !important;
8
+ --border-radius: var(--layout-radius-component-medium) !important;
9
+
10
+ --highlight-color: var(--info) !important;
11
+ --highlight-color-focused: var(--info) !important;
12
+ --highlight-color-valid: var(--success) !important;
13
+ --highlight-color-invalid: var(--error) !important;
14
+
15
+ .input-wrapper {
16
+ box-shadow: var(--shadow-lowest-box-shadow);
17
+ }
18
+
19
+ &.has-error {
20
+ --border-color: var(--error) !important;
21
+ }
22
+
23
+ &.has-focus {
24
+ --border-color: var(--info) !important;
25
+
26
+ .label-text-wrapper {
27
+ color: var(--element-high) !important;
28
+ }
29
+ }
30
+
31
+ &.input-disabled {
32
+ opacity: 1 !important;
33
+
34
+ --border-color: var(--element-outline) !important;
35
+ --background: var(--surface-accent);
36
+ --color: var(--element-disabled);
37
+ }
38
+
39
+ }
@@ -0,0 +1,26 @@
1
+ import {Component, EventEmitter, Input, Output} from '@angular/core';
2
+ import {YuInputTypeDto} from '../../interface/input-type.interface';
3
+ import {YuInputModeDto} from '../../interface/input-mode.interface';
4
+
5
+ @Component({
6
+ selector: 'yu-input',
7
+ templateUrl: './input.component.html'
8
+ })
9
+ export class InputComponent {
10
+ @Input() label?: string;
11
+ @Input() placeholder?: string;
12
+
13
+ @Input() disabled: boolean = false;
14
+
15
+ @Input() type: YuInputTypeDto = 'text';
16
+ @Input() inputmode: YuInputModeDto = undefined;
17
+ @Input() autocapitalize: string = 'off';
18
+
19
+ @Input() helperText?: string;
20
+ @Input() isIncorrectValue: boolean = false;
21
+
22
+ @Input() passwordToggle: boolean = false;
23
+
24
+ @Input() value: any;
25
+ @Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
26
+ }
@@ -0,0 +1,3 @@
1
+ <ion-item-option [ngClass]="['yu-color-' + color]">
2
+ <ng-content></ng-content>
3
+ </ion-item-option>
@@ -0,0 +1,21 @@
1
+ ion-item-option {
2
+ height: 100%;
3
+ min-width: 75px;
4
+
5
+ display: inline-flex;
6
+
7
+ font-size: var(--label-large-size);
8
+ line-height: var(--label-large-height);
9
+ font-weight: var(--label-large-weight);
10
+
11
+ --background: var(--yu-color-lighter-ext);
12
+ --color: var(--yu-color);
13
+
14
+ yu-icon {
15
+ margin-bottom: 8px;
16
+ }
17
+
18
+ &.ion-activated {
19
+ background: var(--yu-color-lighter-ext);
20
+ }
21
+ }
@@ -0,0 +1,10 @@
1
+ import {Component, Input} from '@angular/core';
2
+ import {YuColorDto} from '../../interface/color.interface';
3
+
4
+ @Component({
5
+ selector: 'yu-list-action',
6
+ templateUrl: './list-action.component.html',
7
+ })
8
+ export class ListActionComponent {
9
+ @Input() color: YuColorDto = 'primary';
10
+ }
@@ -0,0 +1,8 @@
1
+ <div class="yu-notice yu-color-{{ color }}">
2
+ <yu-icon [name]="icon" [color]="color"></yu-icon>
3
+
4
+ <div class="notice-content">
5
+ <div class="title">{{ title }}</div>
6
+ <div class="message">{{ message }}</div>
7
+ </div>
8
+ </div>
@@ -0,0 +1,56 @@
1
+ .yu-notice {
2
+ background: var(--surface);
3
+ box-shadow: var(--shadow-lowest-box-shadow);
4
+ color: var(--element-high);
5
+
6
+ border-radius: var(--layout-radius-component-medium);
7
+ border: 1px solid var(--element-outline);
8
+
9
+ margin: 8px var(--layout-mobile-spacing-screen-lateral-small);
10
+
11
+ display: flex;
12
+ align-items: flex-start;
13
+
14
+ position: relative;
15
+
16
+ yu-icon {
17
+ padding: 15px 0 0 15px;
18
+ }
19
+
20
+ .notice-content {
21
+ display: flex;
22
+ justify-content: center;
23
+ flex-direction: column;
24
+ flex: 1;
25
+
26
+ padding: 15px;
27
+
28
+ font-size: var(--title-small-size);
29
+ line-height: var(--title-small-height);
30
+
31
+ .title {
32
+ color: var(--element-high);
33
+ font-weight: var(--title-small-weight);
34
+
35
+ margin-bottom: 2px;
36
+ }
37
+
38
+ .message {
39
+ color: var(--element-low);
40
+ }
41
+ }
42
+
43
+ &::before {
44
+ content: '';
45
+
46
+ position: absolute;
47
+ left: 0;
48
+ top: calc(50% - 25px);
49
+
50
+ height: 50px;
51
+ width: 4px;
52
+
53
+ border-radius: 0 2px 2px 0;
54
+ background: var(--yu-color);
55
+ }
56
+ }
@@ -0,0 +1,13 @@
1
+ import {Component, Input} from '@angular/core';
2
+ import {YuColorDto} from "../../interface/color.interface";
3
+
4
+ @Component({
5
+ selector: 'yu-notice',
6
+ templateUrl: './notice.component.html',
7
+ })
8
+ export class NoticeComponent {
9
+ @Input() title: string = '';
10
+ @Input() message: string = '';
11
+ @Input() icon: string = 'warning-circle';
12
+ @Input() color: YuColorDto = 'primary';
13
+ }
@@ -0,0 +1,7 @@
1
+ <ion-searchbar
2
+ #searchInput
3
+ clearIcon="close-outline"
4
+ [placeholder]="placeholder"
5
+ [(ngModel)]="value"
6
+ (ngModelChange)="valueChange.emit(value)"
7
+ ></ion-searchbar>
@@ -0,0 +1,38 @@
1
+ ion-searchbar {
2
+ --background: var(--surface) !important;
3
+ --border-radius: var(--layout-radius-component-medium) !important;
4
+ --box-shadow: var(--shadow-lowest-box-shadow) !important;
5
+
6
+ padding-inline-start: var(--layout-mobile-spacing-screen-lateral-small) !important;
7
+ padding-inline-end: var(--layout-mobile-spacing-screen-lateral-small) !important;
8
+
9
+ padding-top: 16px !important;
10
+ padding-bottom: 0 !important;
11
+
12
+ .searchbar-input-container {
13
+ min-height: 40px !important;
14
+
15
+ .searchbar-search-icon {
16
+ margin-inline-start: 7.5px !important;
17
+ }
18
+
19
+ .searchbar-input {
20
+ border: 1px solid var(--element-outline);
21
+
22
+ padding-inline-start: 2.5rem !important;
23
+ padding-inline-end: 2.5rem !important;
24
+
25
+ &:focus {
26
+ border: 1px solid var(--info);
27
+ }
28
+ }
29
+
30
+ .searchbar-clear-button {
31
+ margin-right: 7.5px;
32
+
33
+ .searchbar-clear-icon {
34
+ width: 1.75rem;
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,25 @@
1
+ import {Component, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core';
2
+ import {IonSearchbar} from '@ionic/angular';
3
+
4
+ @Component({
5
+ selector: 'yu-searchbar',
6
+ templateUrl: './searchbar.component.html'
7
+ })
8
+ export class SearchbarComponent implements OnInit {
9
+
10
+ @ViewChild('searchInput') searchInput!: IonSearchbar;
11
+
12
+ @Input() placeholder: string = 'Buscar';
13
+ @Input() setFocus: boolean = false;
14
+
15
+ @Input() value: any;
16
+ @Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
17
+
18
+ ngOnInit(): void {
19
+ setTimeout(() => {
20
+ if (this.setFocus) {
21
+ this.searchInput.setFocus();
22
+ }
23
+ }, 50);
24
+ }
25
+ }
@@ -0,0 +1,10 @@
1
+ <div
2
+ class="yu-tag yu-color-{{ color }}"
3
+ [ngClass]="[type, disabled ? 'tag-disabled' : '']"
4
+ >
5
+ <yu-icon [name]="icon" [color]="color"></yu-icon>
6
+
7
+ <span class="label">
8
+ <ng-content></ng-content>
9
+ </span>
10
+ </div>
@@ -0,0 +1,38 @@
1
+ .yu-tag {
2
+ display: inline-flex;
3
+ align-items: center;
4
+
5
+ padding: 4px;
6
+
7
+ background: var(--yu-color-lighter-ext);
8
+ border-radius: var(--layout-radius-component-regular);
9
+
10
+ yu-icon {
11
+ --yu-icon-size: 18px;
12
+ }
13
+
14
+ .label {
15
+ font-size: var(--title-small-size);
16
+ line-height: var(--title-small-height);
17
+ font-weight: var(--title-small-weight);
18
+
19
+ background: var(--yu-color);
20
+ background-clip: text;
21
+ -webkit-background-clip: text;
22
+ -webkit-text-fill-color: transparent;
23
+
24
+ padding: 0 4px;
25
+ }
26
+
27
+ &.outlined {
28
+ border: 1px solid var(--yu-color-dark);
29
+ }
30
+
31
+ &.tag-disabled {
32
+ --yu-color: var(--element-disabled) !important;
33
+ --yu-color-lighter-ext: var(--surface-accent) !important;
34
+
35
+ border: 1px solid var(--element-disabled) !important;
36
+ }
37
+
38
+ }
@@ -0,0 +1,13 @@
1
+ import {Component, Input} from '@angular/core';
2
+ import {YuColorDto} from '../../interface/color.interface';
3
+
4
+ @Component({
5
+ selector: 'yu-tag',
6
+ templateUrl: './tag.component.html'
7
+ })
8
+ export class TagComponent {
9
+ @Input() icon: string = '';
10
+ @Input() color: YuColorDto = 'primary';
11
+ @Input() type: 'contained' | 'outlined' = 'contained';
12
+ @Input() disabled: boolean = false;
13
+ }
@@ -0,0 +1,16 @@
1
+ <ion-textarea
2
+ mode="md"
3
+ fill="outline"
4
+ labelPlacement="stacked"
5
+ [label]="label"
6
+ [placeholder]="placeholder"
7
+ [autocapitalize]="autocapitalize"
8
+ [rows]="rows"
9
+ [cols]="cols"
10
+ [autoGrow]="autoGrow"
11
+ [(ngModel)]="value"
12
+ (ngModelChange)="valueChange.emit(value)"
13
+ [ngClass]="{'has-error': isIncorrectValue}"
14
+ ></ion-textarea>
15
+
16
+ <yu-helper *ngIf="isIncorrectValue" color="error" icon="warning-circle">{{ helperText }}</yu-helper>
@@ -0,0 +1,39 @@
1
+ yu-textarea {
2
+ width: 100%;
3
+ margin-top: var(--layout-spacing-input-medium);
4
+ }
5
+
6
+ ion-textarea[mode="md"] {
7
+ --border-color: var(--element-outline) !important;
8
+ --border-radius: var(--layout-radius-component-medium) !important;
9
+
10
+ --highlight-color: var(--info) !important;
11
+ --highlight-color-focused: var(--info) !important;
12
+ --highlight-color-valid: var(--success) !important;
13
+ --highlight-color-invalid: var(--error) !important;
14
+
15
+ .input-wrapper {
16
+ box-shadow: var(--shadow-lowest-box-shadow);
17
+ }
18
+
19
+ &.has-error {
20
+ --border-color: var(--error) !important;
21
+ }
22
+
23
+ &.has-focus {
24
+ --border-color: var(--info) !important;
25
+
26
+ .label-text-wrapper {
27
+ color: var(--element-high) !important;
28
+ }
29
+ }
30
+
31
+ &.textarea-disabled {
32
+ opacity: 1 !important;
33
+
34
+ --border-color: var(--element-outline) !important;
35
+ --background: var(--surface-accent);
36
+ --color: var(--element-disabled);
37
+ }
38
+
39
+ }
@@ -0,0 +1,29 @@
1
+ import {Component, EventEmitter, Input, Output} from '@angular/core';
2
+ import {YuInputTypeDto} from '../../interface/input-type.interface';
3
+ import {YuInputModeDto} from '../../interface/input-mode.interface';
4
+
5
+ @Component({
6
+ selector: 'yu-textarea',
7
+ templateUrl: './textarea.component.html',
8
+ })
9
+ export class TextareaComponent {
10
+ @Input() label?: string;
11
+ @Input() placeholder?: string;
12
+
13
+ @Input() disabled: boolean = false;
14
+
15
+ @Input() type: YuInputTypeDto = 'text';
16
+ @Input() inputmode: YuInputModeDto = undefined;
17
+ @Input() autocapitalize: string = 'off';
18
+
19
+ @Input() rows?: number | undefined;
20
+ @Input() cols?: number | undefined;
21
+
22
+ @Input() autoGrow: boolean = false;
23
+
24
+ @Input() helperText?: string;
25
+ @Input() isIncorrectValue: boolean = false;
26
+
27
+ @Input() value: any;
28
+ @Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
29
+ }
@@ -0,0 +1,12 @@
1
+ <ion-toggle
2
+ [alignment]="alignment"
3
+ [justify]="justify"
4
+ [labelPlacement]="labelPlacement"
5
+ [disabled]="disabled"
6
+ [(ngModel)]="value"
7
+ (ngModelChange)="valueChange.emit(value)"
8
+ >
9
+ <ng-content></ng-content>
10
+ </ion-toggle>
11
+
12
+ <yu-helper *ngIf="isIncorrectValue" color="error" icon="warning-circle">{{ helperText }}</yu-helper>
@@ -0,0 +1,26 @@
1
+ ion-toggle {
2
+
3
+ --track-background: var(--overlay);
4
+
5
+ --handle-box-shadow: var(--shadow-light-box-shadow);
6
+ --handle-spacing: 0px;
7
+
8
+ --handle-height: 24px;
9
+ --handle-width: 24px;
10
+
11
+ &::part(track) {
12
+ height: 26px;
13
+ border: 1px solid var(--element-low);
14
+ }
15
+
16
+ &::part(handle) {
17
+ border: 1px solid var(--element-low);
18
+ }
19
+
20
+ &.toggle-checked {
21
+ &::part(track), &::part(handle) {
22
+ border-color: transparent;
23
+ }
24
+ }
25
+
26
+ }
@@ -0,0 +1,19 @@
1
+ import {Component, EventEmitter, Input, Output} from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'yu-toggle',
5
+ templateUrl: './toggle.component.html',
6
+ })
7
+ export class ToggleComponent {
8
+ @Input() justify: 'end' | 'space-between' | 'start' = 'space-between';
9
+ @Input() labelPlacement: 'end' | 'fixed' | 'stacked'| 'start' = 'start';
10
+ @Input() alignment: 'start' | 'center' = 'center';
11
+
12
+ @Input() disabled: boolean = false;
13
+
14
+ @Input() helperText?: string;
15
+ @Input() isIncorrectValue: boolean = false;
16
+
17
+ @Input() value: any;
18
+ @Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
19
+ }
@@ -0,0 +1 @@
1
+ export type YuColorDto = 'primary' | 'success' | 'error' | 'warning' | 'info' | 'medium' | 'gradient' | 'light' | 'dark';
@@ -0,0 +1,11 @@
1
+ export type YuInputModeDto =
2
+ 'decimal'
3
+ | 'email'
4
+ | 'none'
5
+ | 'numeric'
6
+ | 'search'
7
+ | 'tel'
8
+ | 'text'
9
+ | 'url'
10
+ | 'password'
11
+ | undefined;
@@ -0,0 +1,13 @@
1
+ export type YuInputTypeDto =
2
+ 'date'
3
+ | 'datetime-local'
4
+ | 'email'
5
+ | 'month'
6
+ | 'number'
7
+ | 'password'
8
+ | 'search'
9
+ | 'tel'
10
+ | 'text'
11
+ | 'time'
12
+ | 'url'
13
+ | 'week';
@@ -0,0 +1 @@
1
+ export type YuSizeDto = 'small' | 'medium' | 'large';
@@ -0,0 +1,113 @@
1
+ ion-action-sheet {
2
+
3
+ .action-sheet-wrapper {
4
+ padding-bottom: 0 !important;
5
+
6
+ .action-sheet-container {
7
+ padding-inline-start: 0;
8
+ padding-inline-end: 0;
9
+
10
+ .action-sheet-group {
11
+ margin: 0 !important;
12
+ padding: 0 var(--layout-mobile-spacing-screen-lateral-medium);
13
+
14
+ background: var(--surface);
15
+ border-radius: var(--layout-radius-container-large) var(--layout-radius-container-large) 0 0;
16
+
17
+ .action-sheet-title {
18
+ font-size: var(--subhead-small-size);
19
+ line-height: var(--subhead-small-height);
20
+ font-weight: var(--subhead-small-weight);
21
+
22
+ color: var(--element-high);
23
+ border-bottom: 1px solid var(--element-outline);
24
+ text-align: left;
25
+
26
+ padding: 30px 0 12px;
27
+ }
28
+
29
+ .action-sheet-sub-title {
30
+ display: none;
31
+ }
32
+
33
+ button {
34
+ font-size: var(--title-medium-size);
35
+ line-height: var(--title-medium-height);
36
+
37
+ &:not(.action-sheet-principal) {
38
+ padding: 18px 0;
39
+ border-bottom: 1px solid var(--element-outline);
40
+
41
+ span {
42
+ color: var(--element-high);
43
+ justify-content: flex-start;
44
+ }
45
+ }
46
+
47
+ &.action-sheet-destructive {
48
+ span {
49
+ color: var(--error);
50
+ }
51
+ }
52
+
53
+ &.action-sheet-principal {
54
+ margin: 40px 0;
55
+ padding: 16px;
56
+
57
+ font-weight: 600;
58
+
59
+ color: var(--surface);
60
+ background: var(--gradient);
61
+ border-radius: var(--layout-radius-container-small);
62
+ box-shadow: var(--shadow-lowest-box-shadow);
63
+ }
64
+ }
65
+
66
+ &.action-sheet-group-cancel {
67
+ position: absolute;
68
+ top: 17px;
69
+ right: 0;
70
+
71
+ button {
72
+ --button-background: transparent;
73
+ --button-background-selected: transparent;
74
+ --button-background-activated: transparent;
75
+
76
+ padding: 1px;
77
+ border-bottom: none;
78
+
79
+ span {
80
+ width: 18px;
81
+ height: 18px;
82
+
83
+ &::before, &::after {
84
+ content: '';
85
+
86
+ position: absolute;
87
+ top: 0;
88
+ left: 50%;
89
+
90
+ width: 2px;
91
+ height: 100%;
92
+
93
+ border-radius: 30px;
94
+ background-color: var(--gradient-dark);
95
+ }
96
+
97
+ &::before {
98
+ transform: rotate(45deg);
99
+ }
100
+
101
+ &::after {
102
+ transform: rotate(-45deg);
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+
109
+ }
110
+
111
+ }
112
+
113
+ }