valtech-components 0.0.11 → 1.0.0
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/.nvmrc +1 -0
- package/ng-package.json +11 -0
- package/package.json +23 -15
- package/src/lib/components/atoms/avatar/avatar.component.html +3 -0
- package/src/lib/components/atoms/avatar/avatar.component.scss +20 -0
- package/src/lib/components/atoms/avatar/avatar.component.ts +28 -0
- package/src/lib/components/atoms/button/button.component.html +17 -0
- package/src/lib/components/atoms/button/button.component.scss +5 -0
- package/src/lib/components/atoms/button/button.component.ts +26 -0
- package/src/lib/components/atoms/button/factory.ts +378 -0
- package/src/lib/components/atoms/button/types.ts +22 -0
- package/src/lib/components/atoms/display/display.component.html +5 -0
- package/src/lib/components/atoms/display/display.component.scss +17 -0
- package/src/lib/components/atoms/display/display.component.ts +20 -0
- package/src/lib/components/atoms/divider/divider.component.html +1 -0
- package/src/lib/components/atoms/divider/divider.component.scss +54 -0
- package/src/lib/components/atoms/divider/divider.component.ts +19 -0
- package/src/lib/components/atoms/text/text.component.html +5 -0
- package/src/lib/components/atoms/text/text.component.scss +33 -0
- package/src/lib/components/atoms/text/text.component.ts +22 -0
- package/src/lib/components/atoms/title/title.component.html +5 -0
- package/src/lib/components/atoms/title/title.component.scss +13 -0
- package/src/lib/components/atoms/title/title.component.ts +20 -0
- package/src/lib/components/molecules/content-loader/content-loader.component.html +6 -0
- package/src/lib/components/molecules/content-loader/content-loader.component.scss +42 -0
- package/src/lib/components/molecules/content-loader/content-loader.component.ts +22 -0
- package/src/lib/components/molecules/link/link.component.html +12 -0
- package/src/lib/components/molecules/link/link.component.scss +5 -0
- package/src/lib/components/molecules/link/link.component.ts +27 -0
- package/src/lib/components/styles/mixins.scss +10 -16
- package/src/lib/components/styles/overrides.scss +73 -69
- package/src/lib/components/styles/typography.scss +5 -11
- package/src/lib/components/styles/variables.scss +4 -4
- package/src/lib/components/types.ts +5 -0
- package/src/lib/valtech-components.module.ts +37 -0
- package/{public-api.d.ts → src/public-api.ts} +12 -1
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/components/atoms/button/button.component.mjs +0 -27
- package/esm2022/lib/components/atoms/button/factory.mjs +0 -217
- package/esm2022/lib/components/atoms/button/types.mjs +0 -2
- package/esm2022/lib/components/atoms/display/display.component.mjs +0 -20
- package/esm2022/lib/components/atoms/text/text.component.mjs +0 -24
- package/esm2022/lib/components/atoms/title/title.component.mjs +0 -20
- package/esm2022/lib/components/types.mjs +0 -5
- package/esm2022/lib/custom-card/custom-card.component.mjs +0 -20
- package/esm2022/lib/valtech-components.module.mjs +0 -32
- package/esm2022/public-api.mjs +0 -13
- package/esm2022/valtech-components.mjs +0 -5
- package/fesm2022/valtech-components.mjs +0 -356
- package/fesm2022/valtech-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/atoms/button/button.component.d.ts +0 -17
- package/lib/components/atoms/button/factory.d.ts +0 -71
- package/lib/components/atoms/button/types.d.ts +0 -20
- package/lib/components/atoms/display/display.component.d.ts +0 -12
- package/lib/components/atoms/text/text.component.d.ts +0 -13
- package/lib/components/atoms/title/title.component.d.ts +0 -12
- package/lib/components/types.d.ts +0 -6
- package/lib/custom-card/custom-card.component.d.ts +0 -7
- package/lib/valtech-components.module.d.ts +0 -14
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'val-divider',
|
|
5
|
+
templateUrl: './divider.component.html',
|
|
6
|
+
styleUrls: ['./divider.component.scss'],
|
|
7
|
+
})
|
|
8
|
+
export class DividerComponent implements OnInit {
|
|
9
|
+
@Input()
|
|
10
|
+
size: 'small' | 'medium' | 'large';
|
|
11
|
+
@Input()
|
|
12
|
+
color: 'primary' | 'secondary' | 'dark' | 'light';
|
|
13
|
+
@Input()
|
|
14
|
+
fill: 'solid' | 'gradient';
|
|
15
|
+
|
|
16
|
+
constructor() {}
|
|
17
|
+
|
|
18
|
+
ngOnInit() {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@import '../../styles/typography.scss';
|
|
2
|
+
|
|
3
|
+
.small {
|
|
4
|
+
@include body-small;
|
|
5
|
+
|
|
6
|
+
&.bold {
|
|
7
|
+
@include body-small-bold;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.medium {
|
|
12
|
+
@include body-medium;
|
|
13
|
+
|
|
14
|
+
&.bold {
|
|
15
|
+
@include body-medium-bold;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.large {
|
|
20
|
+
@include body-large;
|
|
21
|
+
|
|
22
|
+
&.bold {
|
|
23
|
+
@include body-large-bold;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.xlarge {
|
|
28
|
+
@include body-xlarge;
|
|
29
|
+
|
|
30
|
+
&.bold {
|
|
31
|
+
@include body-xlarge-bold;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { Color } from '@ionic/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'val-text',
|
|
6
|
+
templateUrl: './text.component.html',
|
|
7
|
+
styleUrls: ['./text.component.scss'],
|
|
8
|
+
})
|
|
9
|
+
export class TextComponent implements OnInit {
|
|
10
|
+
@Input()
|
|
11
|
+
size: 'small' | 'medium' | 'large' | 'xlarge';
|
|
12
|
+
@Input()
|
|
13
|
+
color: Color;
|
|
14
|
+
@Input()
|
|
15
|
+
content: string;
|
|
16
|
+
@Input()
|
|
17
|
+
bold: boolean = false;
|
|
18
|
+
|
|
19
|
+
constructor() {}
|
|
20
|
+
|
|
21
|
+
ngOnInit() {}
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { Color } from '@ionic/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'val-title',
|
|
6
|
+
templateUrl: './title.component.html',
|
|
7
|
+
styleUrls: ['./title.component.scss'],
|
|
8
|
+
})
|
|
9
|
+
export class TitleComponent implements OnInit {
|
|
10
|
+
@Input()
|
|
11
|
+
size: 'small' | 'medium' | 'large' | 'xlarge';
|
|
12
|
+
@Input()
|
|
13
|
+
color: Color;
|
|
14
|
+
@Input()
|
|
15
|
+
content: string;
|
|
16
|
+
|
|
17
|
+
constructor() {}
|
|
18
|
+
|
|
19
|
+
ngOnInit() {}
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@import "../../styles/mixins.scss";
|
|
2
|
+
|
|
3
|
+
.small {
|
|
4
|
+
width: pxToRem(24);
|
|
5
|
+
height: pxToRem(24);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.medium {
|
|
9
|
+
width: pxToRem(38);
|
|
10
|
+
height: pxToRem(38);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.large {
|
|
14
|
+
width: pxToRem(48);
|
|
15
|
+
height: pxToRem(48);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.spinner-wrapper {
|
|
19
|
+
width: 100%;
|
|
20
|
+
text-align: center;
|
|
21
|
+
|
|
22
|
+
&.small {
|
|
23
|
+
height: pxToRem(72);
|
|
24
|
+
padding-top: pxToRem(24);
|
|
25
|
+
|
|
26
|
+
@include body-small;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.medium {
|
|
30
|
+
height: pxToRem(98);
|
|
31
|
+
padding-top: pxToRem(32);
|
|
32
|
+
|
|
33
|
+
@include body-medium;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.large {
|
|
37
|
+
height: pxToRem(108);
|
|
38
|
+
padding-top: pxToRem(42);
|
|
39
|
+
|
|
40
|
+
@include body-large;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { Color } from '@ionic/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'val-content-loader',
|
|
6
|
+
templateUrl: './content-loader.component.html',
|
|
7
|
+
styleUrls: ['./content-loader.component.scss'],
|
|
8
|
+
})
|
|
9
|
+
export class ContentLoaderComponent implements OnInit {
|
|
10
|
+
@Input()
|
|
11
|
+
color: Color = 'primary';
|
|
12
|
+
@Input()
|
|
13
|
+
size: 'small' | 'medium' | 'large' = 'small';
|
|
14
|
+
@Input()
|
|
15
|
+
name: 'circular' | 'crescent' | 'dots' | 'lines-sharp' = 'circular';
|
|
16
|
+
@Input()
|
|
17
|
+
text: string;
|
|
18
|
+
|
|
19
|
+
constructor() {}
|
|
20
|
+
|
|
21
|
+
ngOnInit() {}
|
|
22
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
|
+
import { Color } from '@ionic/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'val-link',
|
|
6
|
+
templateUrl: './link.component.html',
|
|
7
|
+
styleUrls: ['./link.component.scss'],
|
|
8
|
+
})
|
|
9
|
+
export class LinkComponent implements OnInit {
|
|
10
|
+
@Input()
|
|
11
|
+
text: string;
|
|
12
|
+
@Input()
|
|
13
|
+
size: 'small' | 'default' | 'large';
|
|
14
|
+
@Input()
|
|
15
|
+
color: Color;
|
|
16
|
+
|
|
17
|
+
@Output()
|
|
18
|
+
onClick = new EventEmitter();
|
|
19
|
+
|
|
20
|
+
constructor() {}
|
|
21
|
+
|
|
22
|
+
ngOnInit() {}
|
|
23
|
+
|
|
24
|
+
onClickHandler() {
|
|
25
|
+
this.onClick.emit();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
1
|
+
@import './media-queries.scss';
|
|
2
|
+
@import './variables.scss';
|
|
3
|
+
@import './functions.scss';
|
|
4
|
+
@import './typography.scss';
|
|
5
5
|
|
|
6
6
|
@mixin box-shadow-small {
|
|
7
|
-
box-shadow: 0 pxToRem(4) pxToRem(12)
|
|
8
|
-
addColorOpacity($color-default-shadow, 0.07);
|
|
7
|
+
box-shadow: 0 pxToRem(4) pxToRem(12) addColorOpacity($color-default-shadow, 0.07);
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
@mixin box-shadow-small-top {
|
|
12
|
-
box-shadow: 0 pxToRem(-4) pxToRem(12)
|
|
13
|
-
addColorOpacity($color-default-shadow, 0.07);
|
|
11
|
+
box-shadow: 0 pxToRem(-4) pxToRem(12) addColorOpacity($color-default-shadow, 0.07);
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
@mixin box-shadow-medium {
|
|
17
|
-
box-shadow: pxToRem(3) pxToRem(10) pxToRem(8)
|
|
18
|
-
addColorOpacity($color-default-shadow, 0.1);
|
|
15
|
+
box-shadow: pxToRem(3) pxToRem(10) pxToRem(8) addColorOpacity($color-default-shadow, 0.1);
|
|
19
16
|
}
|
|
20
17
|
|
|
21
18
|
@mixin box-shadow-medium-bottom {
|
|
22
|
-
box-shadow: pxToRem(-3) pxToRem(10) pxToRem(8)
|
|
23
|
-
addColorOpacity($color-default-shadow, 0.1);
|
|
19
|
+
box-shadow: pxToRem(-3) pxToRem(10) pxToRem(8) addColorOpacity($color-default-shadow, 0.1);
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
@mixin box-shadow-large {
|
|
27
|
-
box-shadow: 0 pxToRem(10) pxToRem(16)
|
|
28
|
-
addColorOpacity($color-default-shadow, 0.08);
|
|
23
|
+
box-shadow: 0 pxToRem(10) pxToRem(16) addColorOpacity($color-default-shadow, 0.08);
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
@mixin box-shadow-large-top {
|
|
32
|
-
box-shadow: 0 pxToRem(-10) pxToRem(16)
|
|
33
|
-
addColorOpacity($color-default-shadow, 0.07);
|
|
27
|
+
box-shadow: 0 pxToRem(-10) pxToRem(16) addColorOpacity($color-default-shadow, 0.07);
|
|
34
28
|
}
|
|
35
29
|
|
|
36
30
|
@mixin transform-translateY($value) {
|
|
@@ -9,143 +9,147 @@ h4,
|
|
|
9
9
|
h5,
|
|
10
10
|
h6,
|
|
11
11
|
p {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
form {
|
|
17
|
-
|
|
17
|
+
width: 100%;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/** ionic components **/
|
|
21
21
|
|
|
22
22
|
ion-grid,
|
|
23
23
|
ion-col {
|
|
24
|
-
|
|
24
|
+
padding: 0;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
ion-button {
|
|
28
|
-
|
|
28
|
+
font-weight: $font-weight-semi-bold;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
ion-card {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
border-radius: pxToRem(8);
|
|
33
|
+
margin: pxToRem(16) auto;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
input {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
border: pxToRem(1) solid var(--ion-color-medium) !important;
|
|
38
|
+
border-radius: pxToRem($border-radius-small) !important;
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
&:focus {
|
|
41
|
+
border: pxToRem(2) solid var(--ion-color-primary) !important;
|
|
42
|
+
}
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
padding: 10px !important;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
input,
|
|
48
48
|
ion-datetime,
|
|
49
49
|
ion-select {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
margin-top: pxToRem(8);
|
|
51
|
+
padding-left: pxToRem(10) !important;
|
|
52
|
+
border: pxToRem(1) solid var(--ion-color-medium) !important;
|
|
53
|
+
border-radius: pxToRem($border-radius-small) !important;
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
&:focus {
|
|
56
|
+
border: pxToRem(2) solid var(--ion-color-primary) !important;
|
|
57
|
+
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
ion-label {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
text-align: start;
|
|
62
|
+
font-weight: $font-weight-bold;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
ion-toolbar {
|
|
66
|
-
|
|
66
|
+
--background: transparent;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
ion-input {
|
|
70
|
-
|
|
70
|
+
margin-top: 0px;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
ion-select {
|
|
74
|
-
|
|
74
|
+
padding-right: pxToRem(10) !important;
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
&.select-expanded {
|
|
77
|
+
border: pxToRem(2) solid var(--ion-color-primary) !important;
|
|
78
|
+
}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
ion-select {
|
|
82
|
-
|
|
82
|
+
padding-right: pxToRem(10) !important;
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
&.select-expanded {
|
|
85
|
+
border: pxToRem(2) solid var(--ion-color-primary) !important;
|
|
86
|
+
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
ion-alert {
|
|
90
|
-
|
|
90
|
+
--min-width: 80% !important;
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
@include media-medium {
|
|
93
|
+
--min-width: 400px !important;
|
|
94
|
+
}
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
.alert-radio-label {
|
|
97
|
+
font-weight: $font-weight-bold;
|
|
98
|
+
}
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
::-webkit-scrollbar {
|
|
101
|
+
-webkit-appearance: none;
|
|
102
|
+
width: 7px;
|
|
103
|
+
}
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
::-webkit-scrollbar-thumb {
|
|
106
|
+
border-radius: 4px;
|
|
107
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
108
|
+
box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
|
|
109
|
+
-webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
|
|
110
|
+
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
ion-label {
|
|
114
|
-
|
|
114
|
+
text-align: start;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
ion-note {
|
|
118
|
-
|
|
118
|
+
text-align: end !important;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
ion-toolbar {
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
--background: transparent;
|
|
123
|
+
padding: pxToRem(4) pxToRem(8);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
ion-searchbar {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
--cancel-button-color: var(--ion-color-dark);
|
|
128
|
+
--background: var(--ion-color-light);
|
|
129
|
+
padding: 0 6px !important;
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
input {
|
|
132
|
+
border: none !important;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
ion-back-button {
|
|
137
|
+
font-family: var(--ion-default-font), Arial, sans-serif;
|
|
134
138
|
}
|
|
135
139
|
|
|
136
140
|
ion-modal .date-picker-custom {
|
|
137
|
-
|
|
138
|
-
|
|
141
|
+
max-width: 340px;
|
|
142
|
+
max-height: 390px;
|
|
139
143
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
.ion-page {
|
|
145
|
+
justify-content: flex-start !important;
|
|
146
|
+
}
|
|
143
147
|
}
|
|
144
148
|
|
|
145
149
|
.img-black {
|
|
146
|
-
|
|
150
|
+
filter: invert(0);
|
|
147
151
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
+
@media (prefers-color-scheme: dark) {
|
|
153
|
+
filter: invert(1);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
4
|
-
|
|
5
|
-
@mixin text(
|
|
6
|
-
$fontSize,
|
|
7
|
-
$lineHeight,
|
|
8
|
-
$fontSizeMobile,
|
|
9
|
-
$lineHeightMobile,
|
|
10
|
-
$fontWeight
|
|
11
|
-
) {
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
@import './functions.scss';
|
|
3
|
+
@import './media-queries.scss';
|
|
4
|
+
|
|
5
|
+
@mixin text($fontSize, $lineHeight, $fontSizeMobile, $lineHeightMobile, $fontWeight) {
|
|
12
6
|
font-size: pxToRem($fontSizeMobile);
|
|
13
7
|
line-height: pxToRem($lineHeightMobile);
|
|
14
8
|
font-weight: $fontWeight;
|
|
@@ -56,7 +56,7 @@ $line-height-body-large: 24;
|
|
|
56
56
|
$line-height-body-large-responsive: 24;
|
|
57
57
|
$line-height-body-medium: 24;
|
|
58
58
|
$line-height-body-medium-responsive: 24;
|
|
59
|
-
$line-height-body-small:
|
|
59
|
+
$line-height-body-small: 20;
|
|
60
60
|
|
|
61
61
|
/* SIZES */
|
|
62
62
|
|
|
@@ -74,9 +74,9 @@ $border-radius-small: 8;
|
|
|
74
74
|
$border-radius: 12;
|
|
75
75
|
|
|
76
76
|
/* COLORS */
|
|
77
|
-
$color-classic-
|
|
78
|
-
$color-alternative-
|
|
77
|
+
$color-classic-white: #ffffff;
|
|
78
|
+
$color-alternative-white: #f5f7fa;
|
|
79
79
|
$color-default-hr: #878ca0;
|
|
80
80
|
$color-default-border: #dde3ed;
|
|
81
81
|
$color-default-shadow: #121954;
|
|
82
|
-
$color-default-placeholder: #afbacc;
|
|
82
|
+
$color-default-placeholder: #afbacc;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
3
|
+
import { NgModule } from '@angular/core';
|
|
4
|
+
import { IonicModule } from '@ionic/angular';
|
|
5
|
+
import { ButtonComponent } from './components/atoms/button/button.component';
|
|
6
|
+
import { DisplayComponent } from './components/atoms/display/display.component';
|
|
7
|
+
import { TextComponent } from './components/atoms/text/text.component';
|
|
8
|
+
import { TitleComponent } from './components/atoms/title/title.component';
|
|
9
|
+
import { AvatarComponent } from './components/atoms/avatar/avatar.component';
|
|
10
|
+
import { DividerComponent } from './components/atoms/divider/divider.component';
|
|
11
|
+
import { ContentLoaderComponent } from './components/molecules/content-loader/content-loader.component';
|
|
12
|
+
import { LinkComponent } from './components/molecules/link/link.component';
|
|
13
|
+
|
|
14
|
+
@NgModule({
|
|
15
|
+
declarations: [
|
|
16
|
+
ButtonComponent,
|
|
17
|
+
DisplayComponent,
|
|
18
|
+
TextComponent,
|
|
19
|
+
TitleComponent,
|
|
20
|
+
AvatarComponent,
|
|
21
|
+
DividerComponent,
|
|
22
|
+
ContentLoaderComponent,
|
|
23
|
+
LinkComponent,
|
|
24
|
+
],
|
|
25
|
+
imports: [CommonModule, HttpClientModule, IonicModule],
|
|
26
|
+
exports: [
|
|
27
|
+
ButtonComponent,
|
|
28
|
+
DisplayComponent,
|
|
29
|
+
TextComponent,
|
|
30
|
+
TitleComponent,
|
|
31
|
+
AvatarComponent,
|
|
32
|
+
DividerComponent,
|
|
33
|
+
ContentLoaderComponent,
|
|
34
|
+
LinkComponent,
|
|
35
|
+
],
|
|
36
|
+
})
|
|
37
|
+
export class ValtechComponentsModule {}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of valtech-components
|
|
3
|
+
*/
|
|
4
|
+
|
|
2
5
|
export * from './lib/components/atoms/button/button.component';
|
|
3
6
|
export * from './lib/components/atoms/button/types';
|
|
4
7
|
export * from './lib/components/atoms/button/factory';
|
|
5
8
|
export * from './lib/components/atoms/text/text.component';
|
|
6
9
|
export * from './lib/components/atoms/title/title.component';
|
|
7
10
|
export * from './lib/components/atoms/display/display.component';
|
|
11
|
+
export * from './lib/components/atoms/avatar/avatar.component';
|
|
12
|
+
export * from './lib/components/atoms/divider/divider.component';
|
|
13
|
+
|
|
14
|
+
export * from './lib/components/molecules/content-loader/content-loader.component';
|
|
15
|
+
export * from './lib/components/molecules/link/link.component';
|
|
16
|
+
|
|
8
17
|
export * from './lib/components/types';
|
|
9
18
|
export * from './lib/valtech-components.module';
|
|
19
|
+
|
|
20
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "../../tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "../../out-tsc/lib",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationMap": true,
|
|
8
|
+
"inlineSources": true,
|
|
9
|
+
"types": []
|
|
10
|
+
},
|
|
11
|
+
"exclude": [
|
|
12
|
+
"**/*.spec.ts"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "../../tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "../../out-tsc/spec",
|
|
6
|
+
"types": [
|
|
7
|
+
"jasmine"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"**/*.spec.ts",
|
|
12
|
+
"**/*.d.ts"
|
|
13
|
+
]
|
|
14
|
+
}
|