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.
- package/README.md +24 -0
- package/esm2022/lib/components/avatar/avatar.component.mjs +17 -0
- package/esm2022/lib/components/badge/badge.component.mjs +24 -0
- package/esm2022/lib/components/button/button.component.mjs +27 -0
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +42 -0
- package/esm2022/lib/components/chip/chip.component.mjs +24 -0
- package/esm2022/lib/components/helper/helper.component.mjs +20 -0
- package/esm2022/lib/components/icon/icon.component.mjs +20 -0
- package/esm2022/lib/components/input/input.component.mjs +46 -0
- package/esm2022/lib/components/list-action/list-action.component.mjs +18 -0
- package/esm2022/lib/components/notice/notice.component.mjs +26 -0
- package/esm2022/lib/components/searchbar/searchbar.component.mjs +36 -0
- package/esm2022/lib/components/tag/tag.component.mjs +27 -0
- package/esm2022/lib/components/textarea/textarea.component.mjs +50 -0
- package/esm2022/lib/components/toggle/toggle.component.mjs +39 -0
- package/esm2022/lib/interface/color.interface.mjs +2 -0
- package/esm2022/lib/interface/input-mode.interface.mjs +2 -0
- package/esm2022/lib/interface/input-type.interface.mjs +2 -0
- package/esm2022/lib/interface/size.interface.mjs +2 -0
- package/esm2022/lib/yukit.module.mjs +83 -0
- package/esm2022/public-api.mjs +23 -0
- package/esm2022/yukit.mjs +5 -0
- package/fesm2022/yukit.mjs +439 -0
- package/fesm2022/yukit.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/avatar/avatar.component.d.ts +6 -0
- package/lib/components/badge/badge.component.d.ts +9 -0
- package/lib/components/button/button.component.d.ts +12 -0
- package/lib/components/checkbox/checkbox.component.d.ts +15 -0
- package/lib/components/chip/chip.component.d.ts +9 -0
- package/lib/components/helper/helper.component.d.ts +8 -0
- package/lib/components/icon/icon.component.d.ts +8 -0
- package/lib/components/input/input.component.d.ts +19 -0
- package/lib/components/list-action/list-action.component.d.ts +7 -0
- package/lib/components/notice/notice.component.d.ts +10 -0
- package/lib/components/searchbar/searchbar.component.d.ts +13 -0
- package/lib/components/tag/tag.component.d.ts +10 -0
- package/lib/components/textarea/textarea.component.d.ts +21 -0
- package/lib/components/toggle/toggle.component.d.ts +14 -0
- package/lib/interface/color.interface.d.ts +1 -0
- package/lib/interface/input-mode.interface.d.ts +1 -0
- package/lib/interface/input-type.interface.d.ts +1 -0
- package/lib/interface/size.interface.d.ts +1 -0
- package/lib/yukit.module.d.ts +23 -0
- package/package.json +30 -0
- package/public-api.d.ts +19 -0
- package/src/lib/components/avatar/avatar.component.html +4 -0
- package/src/lib/components/avatar/avatar.component.scss +0 -0
- package/src/lib/components/avatar/avatar.component.ts +9 -0
- package/src/lib/components/badge/badge.component.html +7 -0
- package/src/lib/components/badge/badge.component.scss +27 -0
- package/src/lib/components/badge/badge.component.ts +15 -0
- package/src/lib/components/button/button.component.html +9 -0
- package/src/lib/components/button/button.component.scss +99 -0
- package/src/lib/components/button/button.component.ts +16 -0
- package/src/lib/components/checkbox/checkbox.component.html +13 -0
- package/src/lib/components/checkbox/checkbox.component.scss +23 -0
- package/src/lib/components/checkbox/checkbox.component.ts +20 -0
- package/src/lib/components/chip/chip.component.html +11 -0
- package/src/lib/components/chip/chip.component.scss +34 -0
- package/src/lib/components/chip/chip.component.ts +12 -0
- package/src/lib/components/helper/helper.component.html +7 -0
- package/src/lib/components/helper/helper.component.scss +19 -0
- package/src/lib/components/helper/helper.component.ts +11 -0
- package/src/lib/components/icon/Phosphor.svg +3056 -0
- package/src/lib/components/icon/Phosphor.ttf +0 -0
- package/src/lib/components/icon/Phosphor.woff +0 -0
- package/src/lib/components/icon/Phosphor.woff2 +0 -0
- package/src/lib/components/icon/icon.component.html +6 -0
- package/src/lib/components/icon/icon.component.scss +4637 -0
- package/src/lib/components/icon/icon.component.ts +12 -0
- package/src/lib/components/input/input.component.html +26 -0
- package/src/lib/components/input/input.component.scss +39 -0
- package/src/lib/components/input/input.component.ts +26 -0
- package/src/lib/components/list-action/list-action.component.html +3 -0
- package/src/lib/components/list-action/list-action.component.scss +21 -0
- package/src/lib/components/list-action/list-action.component.ts +10 -0
- package/src/lib/components/notice/notice.component.html +8 -0
- package/src/lib/components/notice/notice.component.scss +56 -0
- package/src/lib/components/notice/notice.component.ts +13 -0
- package/src/lib/components/searchbar/searchbar.component.html +7 -0
- package/src/lib/components/searchbar/searchbar.component.scss +38 -0
- package/src/lib/components/searchbar/searchbar.component.ts +25 -0
- package/src/lib/components/tag/tag.component.html +10 -0
- package/src/lib/components/tag/tag.component.scss +38 -0
- package/src/lib/components/tag/tag.component.ts +13 -0
- package/src/lib/components/textarea/textarea.component.html +16 -0
- package/src/lib/components/textarea/textarea.component.scss +39 -0
- package/src/lib/components/textarea/textarea.component.ts +29 -0
- package/src/lib/components/toggle/toggle.component.html +12 -0
- package/src/lib/components/toggle/toggle.component.scss +26 -0
- package/src/lib/components/toggle/toggle.component.ts +19 -0
- package/src/lib/interface/color.interface.ts +1 -0
- package/src/lib/interface/input-mode.interface.ts +11 -0
- package/src/lib/interface/input-type.interface.ts +13 -0
- package/src/lib/interface/size.interface.ts +1 -0
- package/src/lib/theme/components/action-sheet.scss +113 -0
- package/src/lib/theme/components/alert.scss +83 -0
- package/src/lib/theme/components/back-button.scss +23 -0
- package/src/lib/theme/components/modal.scss +38 -0
- package/src/lib/theme/components/segment.scss +21 -0
- package/src/lib/theme/components/tabs.scss +48 -0
- package/src/lib/theme/components/toast.scss +41 -0
- package/src/lib/theme/structure/content.scss +58 -0
- package/src/lib/theme/structure/footer.scss +28 -0
- package/src/lib/theme/structure/form.scss +31 -0
- package/src/lib/theme/structure/header.scss +63 -0
- package/src/lib/theme/tokens/colors.scss +106 -0
- package/src/lib/theme/tokens/font/Geist-Variable.woff2 +0 -0
- package/src/lib/theme/tokens/icons.scss +4 -0
- package/src/lib/theme/tokens/radius.scss +14 -0
- package/src/lib/theme/tokens/shadow.scss +32 -0
- package/src/lib/theme/tokens/spacing.scss +40 -0
- package/src/lib/theme/tokens/typography.scss +175 -0
- package/src/lib/yukit.module.ts +48 -0
- package/src/lib/yukit.scss +33 -0
- package/yukit-0.0.1.tgz +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'yu-checkbox',
|
|
5
|
+
templateUrl: './checkbox.component.html',
|
|
6
|
+
})
|
|
7
|
+
export class CheckboxComponent {
|
|
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() indeterminate: boolean = false;
|
|
13
|
+
@Input() disabled: boolean = false;
|
|
14
|
+
|
|
15
|
+
@Input() helperText?: string;
|
|
16
|
+
@Input() isIncorrectValue: boolean = false;
|
|
17
|
+
|
|
18
|
+
@Input() value: any;
|
|
19
|
+
@Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
|
|
20
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.yu-chip {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
|
|
7
|
+
padding: 6px 12px;
|
|
8
|
+
gap: 4px;
|
|
9
|
+
|
|
10
|
+
border-radius: var(--layout-radius-component-medium);
|
|
11
|
+
border: 1px solid var(--element-outline);
|
|
12
|
+
|
|
13
|
+
box-shadow: var(--shadow-low-box-shadow);
|
|
14
|
+
|
|
15
|
+
color: var(--element-low);
|
|
16
|
+
|
|
17
|
+
.label {
|
|
18
|
+
height: 20px;
|
|
19
|
+
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
|
|
23
|
+
padding: 0 2px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
background: var(--overlay);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:active {
|
|
31
|
+
background: var(--gradient);
|
|
32
|
+
color: var(--surface);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {Component, Input} from '@angular/core';
|
|
2
|
+
import {YuColorDto} from '../../interface/color.interface';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'yu-chip',
|
|
6
|
+
templateUrl: './chip.component.html',
|
|
7
|
+
})
|
|
8
|
+
export class ChipComponent {
|
|
9
|
+
@Input() badge?: YuColorDto;
|
|
10
|
+
@Input() startIcon: string = '';
|
|
11
|
+
@Input() endIcon: string = '';
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.yu-helper {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
|
|
5
|
+
gap: 4px;
|
|
6
|
+
margin-top: 5px;
|
|
7
|
+
|
|
8
|
+
yu-icon {
|
|
9
|
+
--yu-icon-size: 16px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.label {
|
|
13
|
+
font-size: var(--label-large-size);
|
|
14
|
+
line-height: var(--label-large-height);
|
|
15
|
+
font-weight: var(--label-large-weight);
|
|
16
|
+
|
|
17
|
+
color: var(--yu-color);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {Component, Input} from '@angular/core';
|
|
2
|
+
import {YuColorDto} from "../../interface/color.interface";
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'yu-helper',
|
|
6
|
+
templateUrl: './helper.component.html',
|
|
7
|
+
})
|
|
8
|
+
export class HelperComponent {
|
|
9
|
+
@Input() icon: string = '';
|
|
10
|
+
@Input() color: YuColorDto = 'primary';
|
|
11
|
+
}
|