yukit 0.0.2 → 0.0.4

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 (33) hide show
  1. package/README.md +105 -6
  2. package/esm2022/lib/components/button/button.component.mjs +13 -4
  3. package/esm2022/lib/components/checkbox/checkbox.component.mjs +9 -3
  4. package/esm2022/lib/components/input/input.component.mjs +9 -3
  5. package/esm2022/lib/components/searchbar/searchbar.component.mjs +15 -3
  6. package/esm2022/lib/components/textarea/textarea.component.mjs +9 -3
  7. package/esm2022/lib/components/toggle/toggle.component.mjs +9 -3
  8. package/fesm2022/yukit.mjs +57 -12
  9. package/fesm2022/yukit.mjs.map +1 -1
  10. package/lib/components/button/button.component.d.ts +5 -1
  11. package/lib/components/checkbox/checkbox.component.d.ts +3 -1
  12. package/lib/components/input/input.component.d.ts +3 -1
  13. package/lib/components/searchbar/searchbar.component.d.ts +5 -1
  14. package/lib/components/textarea/textarea.component.d.ts +3 -1
  15. package/lib/components/toggle/toggle.component.d.ts +3 -1
  16. package/package.json +9 -3
  17. package/src/lib/components/button/button.component.html +3 -0
  18. package/src/lib/components/button/button.component.ts +5 -1
  19. package/src/lib/components/checkbox/checkbox.component.html +2 -0
  20. package/src/lib/components/checkbox/checkbox.component.ts +3 -0
  21. package/src/lib/components/input/input.component.html +3 -1
  22. package/src/lib/components/input/input.component.ts +3 -0
  23. package/src/lib/components/notice/notice.component.scss +1 -1
  24. package/src/lib/components/searchbar/searchbar.component.html +4 -0
  25. package/src/lib/components/searchbar/searchbar.component.ts +5 -0
  26. package/src/lib/components/textarea/textarea.component.html +4 -1
  27. package/src/lib/components/textarea/textarea.component.ts +3 -0
  28. package/src/lib/components/toggle/toggle.component.html +2 -0
  29. package/src/lib/components/toggle/toggle.component.ts +3 -0
  30. package/src/lib/theme/components/tabs.scss +0 -15
  31. package/src/lib/theme/structure/content.scss +7 -0
  32. package/yukit-0.0.4.tgz +0 -0
  33. package/yukit-0.0.2.tgz +0 -0
package/package.json CHANGED
@@ -1,14 +1,20 @@
1
1
  {
2
2
  "name": "yukit",
3
3
  "description": "Yukit is a library of components for Ionic apps",
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "author": {
6
6
  "name": "Pablo Claramunt",
7
7
  "email": "p.claramunt@yurest.com"
8
8
  },
9
+ "keywords": [
10
+ "ionic",
11
+ "angular",
12
+ "components",
13
+ "ui"
14
+ ],
9
15
  "peerDependencies": {
10
- "@angular/common": "^18.0.0",
11
- "@angular/core": "^18.0.0"
16
+ "@angular/common": "^16.0.0",
17
+ "@angular/core": "^16.0.0"
12
18
  },
13
19
  "dependencies": {
14
20
  "tslib": "^2.3.0"
@@ -4,6 +4,9 @@
4
4
  [expand]="expand"
5
5
  [size]="size"
6
6
  [disabled]="disabled"
7
+ (click)="yuClick.emit()"
8
+ (ionBlur)="yuBlur.emit()"
9
+ (ionFocus)="yuFocus.emit()"
7
10
  >
8
11
  <ng-content></ng-content>
9
12
  </ion-button>
@@ -1,4 +1,4 @@
1
- import {Component, Input} from '@angular/core';
1
+ import {Component, EventEmitter, Input, Output} from '@angular/core';
2
2
  import {YuColorDto} from '../../interface/color.interface';
3
3
  import {YuSizeDto} from '../../interface/size.interface';
4
4
 
@@ -13,4 +13,8 @@ export class ButtonComponent {
13
13
  @Input() size: YuSizeDto = 'medium';
14
14
 
15
15
  @Input() disabled: boolean = false;
16
+
17
+ @Output() yuClick: EventEmitter<any> = new EventEmitter<any>();
18
+ @Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
19
+ @Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
16
20
  }
@@ -6,6 +6,8 @@
6
6
  [disabled]="disabled"
7
7
  [(ngModel)]="value"
8
8
  (ngModelChange)="valueChange.emit(value)"
9
+ (ionFocus)="yuFocus.emit()"
10
+ (ionBlur)="yuBlur.emit()"
9
11
  >
10
12
  <ng-content></ng-content>
11
13
  </ion-checkbox>
@@ -17,4 +17,7 @@ export class CheckboxComponent {
17
17
 
18
18
  @Input() value: any;
19
19
  @Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
20
+
21
+ @Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
22
+ @Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
20
23
  }
@@ -2,6 +2,7 @@
2
2
  mode="md"
3
3
  fill="outline"
4
4
  labelPlacement="stacked"
5
+ [ngClass]="{'has-error': isIncorrectValue}"
5
6
  [label]="label"
6
7
  [placeholder]="placeholder"
7
8
  [autocapitalize]="autocapitalize"
@@ -10,7 +11,8 @@
10
11
  [disabled]="disabled"
11
12
  [(ngModel)]="value"
12
13
  (ngModelChange)="valueChange.emit(value)"
13
- [ngClass]="{'has-error': isIncorrectValue}"
14
+ (ionFocus)="yuFocus.emit()"
15
+ (ionBlur)="yuBlur.emit()"
14
16
  >
15
17
  <ng-content></ng-content>
16
18
 
@@ -23,4 +23,7 @@ export class InputComponent {
23
23
 
24
24
  @Input() value: any;
25
25
  @Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
26
+
27
+ @Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
28
+ @Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
26
29
  }
@@ -6,7 +6,7 @@
6
6
  border-radius: var(--layout-radius-component-medium);
7
7
  border: 1px solid var(--element-outline);
8
8
 
9
- margin: 8px var(--layout-mobile-spacing-screen-lateral-small);
9
+ margin: var(--layout-mobile-spacing-screen-lateral-small);
10
10
 
11
11
  display: flex;
12
12
  align-items: flex-start;
@@ -4,4 +4,8 @@
4
4
  [placeholder]="placeholder"
5
5
  [(ngModel)]="value"
6
6
  (ngModelChange)="valueChange.emit(value)"
7
+ (ionFocus)="yuFocus.emit()"
8
+ (ionBlur)="yuBlur.emit()"
9
+ (ionCancel)="yuCancel.emit()"
10
+ (ionClear)="yuClear.emit()"
7
11
  ></ion-searchbar>
@@ -15,6 +15,11 @@ export class SearchbarComponent implements OnInit {
15
15
  @Input() value: any;
16
16
  @Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
17
17
 
18
+ @Output() yuCancel: EventEmitter<any> = new EventEmitter<any>();
19
+ @Output() yuClear: EventEmitter<any> = new EventEmitter<any>();
20
+ @Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
21
+ @Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
22
+
18
23
  ngOnInit(): void {
19
24
  setTimeout(() => {
20
25
  if (this.setFocus) {
@@ -2,15 +2,18 @@
2
2
  mode="md"
3
3
  fill="outline"
4
4
  labelPlacement="stacked"
5
+ [ngClass]="{'has-error': isIncorrectValue}"
5
6
  [label]="label"
6
7
  [placeholder]="placeholder"
7
8
  [autocapitalize]="autocapitalize"
8
9
  [rows]="rows"
9
10
  [cols]="cols"
10
11
  [autoGrow]="autoGrow"
12
+ [disabled]="disabled"
11
13
  [(ngModel)]="value"
12
14
  (ngModelChange)="valueChange.emit(value)"
13
- [ngClass]="{'has-error': isIncorrectValue}"
15
+ (ionFocus)="yuFocus.emit()"
16
+ (ionBlur)="yuBlur.emit()"
14
17
  ></ion-textarea>
15
18
 
16
19
  <yu-helper *ngIf="isIncorrectValue" color="error" icon="warning-circle">{{ helperText }}</yu-helper>
@@ -26,4 +26,7 @@ export class TextareaComponent {
26
26
 
27
27
  @Input() value: any;
28
28
  @Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
29
+
30
+ @Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
31
+ @Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
29
32
  }
@@ -5,6 +5,8 @@
5
5
  [disabled]="disabled"
6
6
  [(ngModel)]="value"
7
7
  (ngModelChange)="valueChange.emit(value)"
8
+ (ionFocus)="yuFocus.emit()"
9
+ (ionBlur)="yuBlur.emit()"
8
10
  >
9
11
  <ng-content></ng-content>
10
12
  </ion-toggle>
@@ -16,4 +16,7 @@ export class ToggleComponent {
16
16
 
17
17
  @Input() value: any;
18
18
  @Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
19
+
20
+ @Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
21
+ @Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
19
22
  }
@@ -21,12 +21,6 @@ ion-tabs {
21
21
  color: var(--element-low);
22
22
  }
23
23
 
24
- yu-badge {
25
- position: absolute;
26
- left: 65%;
27
- top: 10px;
28
- }
29
-
30
24
  &.tab-selected {
31
25
  ion-label {
32
26
  color: var(--element-high);
@@ -34,15 +28,6 @@ ion-tabs {
34
28
  }
35
29
  }
36
30
 
37
- .menu-button > ion-button {
38
- height: 55px;
39
- width: 55px;
40
-
41
- margin: 0 10px;
42
-
43
- --border-radius: var(--layout-radius-component-rounded) !important;
44
- --yu-icon-size: 32px;
45
- }
46
31
  }
47
32
 
48
33
  }
@@ -51,6 +51,13 @@ ion-content {
51
51
  }
52
52
 
53
53
  }
54
+
55
+ .yu-item:last-child ion-item:last-child {
56
+ &::part(native) {
57
+ border: none;
58
+ }
59
+ }
60
+
54
61
  }
55
62
 
56
63
  }
Binary file
package/yukit-0.0.2.tgz DELETED
Binary file