@carefirst/library 1.0.3 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/esm2022/lib/components/button/button.component.mjs +26 -16
  2. package/esm2022/lib/components/icon/icon.component.mjs +7 -8
  3. package/esm2022/lib/components/page/page.component.mjs +7 -7
  4. package/esm2022/lib/components/spacer/spacer.component.mjs +8 -8
  5. package/esm2022/lib/directives/button-loader.directive.mjs +8 -8
  6. package/esm2022/lib/interfaces/icon.interface.mjs +3 -2
  7. package/esm2022/lib/interfaces/spacer.interface.mjs +2 -0
  8. package/esm2022/lib/library.module.mjs +5 -5
  9. package/esm2022/lib/utils/attribute.util.mjs +10 -4
  10. package/esm2022/public-api.mjs +1 -1
  11. package/fesm2022/carefirst-library.mjs +64 -48
  12. package/fesm2022/carefirst-library.mjs.map +1 -1
  13. package/lib/components/button/button.component.d.ts +1 -0
  14. package/lib/components/icon/icon.component.d.ts +1 -4
  15. package/lib/components/spacer/spacer.component.d.ts +1 -3
  16. package/lib/interfaces/icon.interface.d.ts +4 -2
  17. package/lib/interfaces/spacer.interface.d.ts +3 -0
  18. package/lib/utils/attribute.util.d.ts +3 -3
  19. package/package.json +4 -4
  20. package/public/styles/app.scss +7 -2
  21. package/public/styles/font.scss +30 -20
  22. package/public/styles/fonts/Mulish-200.ttf +0 -0
  23. package/public/styles/fonts/Mulish-300.ttf +0 -0
  24. package/public/styles/fonts/Mulish-400.ttf +0 -0
  25. package/public/styles/fonts/Mulish-500.ttf +0 -0
  26. package/public/styles/fonts/Mulish-600.ttf +0 -0
  27. package/public/styles/fonts/Mulish-700.ttf +0 -0
  28. package/public/styles/fonts/Mulish-800.ttf +0 -0
  29. package/public/styles/fonts/Mulish-900.ttf +0 -0
  30. package/public/styles/fonts/Roboto-100.woff2 +0 -0
  31. package/public/styles/fonts/Roboto-300.woff2 +0 -0
  32. package/public/styles/fonts/Roboto-400.woff2 +0 -0
  33. package/public/styles/fonts/Roboto-500.woff2 +0 -0
  34. package/public/styles/fonts/Roboto-700.woff2 +0 -0
  35. package/public/styles/fonts/Roboto-900.woff2 +0 -0
  36. package/public/styles/forms.scss +39 -9
@@ -1,73 +1,73 @@
1
1
  @font-face {
2
2
  font-family: 'Mulish';
3
3
  font-weight: 200;
4
- src: url(/assets/fonts/Mulish-200.ttf) format('truetype');
4
+ src: url(./fonts/Mulish-200.ttf) format('truetype');
5
5
  }
6
6
  @font-face {
7
7
  font-family: 'Mulish';
8
8
  font-weight: 300;
9
- src: url(/assets/fonts/Mulish-300.ttf) format('truetype');
9
+ src: url(./fonts/Mulish-300.ttf) format('truetype');
10
10
  }
11
11
  @font-face {
12
12
  font-family: 'Mulish';
13
13
  font-weight: 400;
14
- src: url(/assets/fonts/Mulish-400.ttf) format('truetype');
14
+ src: url(./fonts/Mulish-400.ttf) format('truetype');
15
15
  }
16
16
  @font-face {
17
17
  font-family: 'Mulish';
18
18
  font-weight: 500;
19
- src: url(/assets/fonts/Mulish-500.ttf) format('truetype');
19
+ src: url(./fonts/Mulish-500.ttf) format('truetype');
20
20
  }
21
21
  @font-face {
22
22
  font-family: 'Mulish';
23
23
  font-weight: 600;
24
- src: url(/assets/fonts/Mulish-600.ttf) format('truetype');
24
+ src: url(./fonts/Mulish-600.ttf) format('truetype');
25
25
  }
26
26
  @font-face {
27
27
  font-family: 'Mulish';
28
28
  font-weight: 700;
29
- src: url(/assets/fonts/Mulish-700.ttf) format('truetype');
29
+ src: url(./fonts/Mulish-700.ttf) format('truetype');
30
30
  }
31
31
  @font-face {
32
32
  font-family: 'Mulish';
33
33
  font-weight: 800;
34
- src: url(/assets/fonts/Mulish-800.ttf) format('truetype');
34
+ src: url(./fonts/Mulish-800.ttf) format('truetype');
35
35
  }
36
36
  @font-face {
37
37
  font-family: 'Mulish';
38
38
  font-weight: 900;
39
- src: url(/assets/fonts/Mulish-900.ttf) format('truetype');
39
+ src: url(./fonts/Mulish-900.ttf) format('truetype');
40
40
  }
41
41
  //--- Roboto
42
42
  @font-face {
43
43
  font-family: 'Roboto';
44
44
  font-weight: 100;
45
- src: url(/assets/fonts/Roboto-100.woff2) format('woff2');
45
+ src: url(./fonts/Roboto-100.woff2) format('woff2');
46
46
  }
47
47
  @font-face {
48
48
  font-family: 'Roboto';
49
49
  font-weight: 300;
50
- src: url(/assets/fonts/Roboto-300.woff2) format('woff2');
50
+ src: url(./fonts/Roboto-300.woff2) format('woff2');
51
51
  }
52
52
  @font-face {
53
53
  font-family: 'Roboto';
54
54
  font-weight: 400;
55
- src: url(/assets/fonts/Roboto-400.woff2) format('woff2');
55
+ src: url(./fonts/Roboto-400.woff2) format('woff2');
56
56
  }
57
57
  @font-face {
58
58
  font-family: 'Roboto';
59
59
  font-weight: 500;
60
- src: url(/assets/fonts/Roboto-500.woff2) format('woff2');
60
+ src: url(./fonts/Roboto-500.woff2) format('woff2');
61
61
  }
62
62
  @font-face {
63
63
  font-family: 'Roboto';
64
64
  font-weight: 700;
65
- src: url(/assets/fonts/Roboto-700.woff2) format('woff2');
65
+ src: url(./fonts/Roboto-700.woff2) format('woff2');
66
66
  }
67
67
  @font-face {
68
68
  font-family: 'Roboto';
69
69
  font-weight: 900;
70
- src: url(/assets/fonts/Roboto-900.woff2) format('woff2');
70
+ src: url(./fonts/Roboto-900.woff2) format('woff2');
71
71
  }
72
72
 
73
73
  /*===============================================
@@ -75,10 +75,9 @@
75
75
  ===============================================*/
76
76
 
77
77
  :root {
78
- --cf-app-text-color-default: #4a4a4a;
78
+ --cf-app-text-color-default: #000;
79
79
  --cf-app-text-color-light: #fff;
80
- --cf-app-text-color-alt1: #6b6b6b;
81
- --cf-app-text-color-alt2: #9d9d9d;
80
+ --cf-app-text-color-grey: #6b6b6b;
82
81
  }
83
82
 
84
83
  /*===============================================
@@ -105,7 +104,7 @@ h4 {
105
104
  font-weight: 900;
106
105
  margin: 0;
107
106
  display: inline-block;
108
- color: var(--cf-app-color-primary);
107
+ color: var(--cf-app-text-color-default);
109
108
  }
110
109
 
111
110
  h1.light,
@@ -115,6 +114,13 @@ h4.light {
115
114
  color: var(--cf-app-text-color-light);
116
115
  }
117
116
 
117
+ h1.grey,
118
+ h2.grey,
119
+ h3.grey,
120
+ h4.grey {
121
+ color: var(--cf-app-text-color-grey);
122
+ }
123
+
118
124
  /*================== Mobile ==================*/
119
125
  h1 {
120
126
  font-size: 4.2rem;
@@ -166,14 +172,18 @@ p {
166
172
  color: var(--cf-app-color-primary);
167
173
  }
168
174
 
169
- p[class^='body-'].bold {
175
+ p.bold {
170
176
  font-weight: 500;
171
177
  }
172
178
 
173
- p[class^='body-'].light {
179
+ p.light {
174
180
  color: var(--cf-app-text-color-light);
175
181
  }
176
182
 
183
+ p.grey {
184
+ color: var(--cf-app-text-color-grey);
185
+ }
186
+
177
187
  /*================== Mobile ==================*/
178
188
 
179
189
  p.body-large {
@@ -1,17 +1,47 @@
1
- //--- Design
1
+ /*===============================================
2
+ ================== Form Items ===================
3
+ ===============================================*/
2
4
  ion-input,
3
5
  ion-textarea,
4
- ion-select {
6
+ ion-select,
7
+ ion-radio {
8
+ font-family: 'Roboto', sans-serif;
9
+ font-weight: 400;
10
+ font-style: normal;
11
+ font-size: 1.6rem;
12
+ color: var(--cf-app-color-primary);
13
+ text-align: start;
14
+ --border-radius: 8px !important; //--- important overrides the fill option
15
+ --highlight-color-focused: var(--cf-app-color-primary);
16
+ --highlight-color-invalid: var(--cf-app-system-color-error);
17
+ --highlight-color-valid: var(--cf-app-color-primary);
18
+
5
19
  label {
6
- font-family: "Roboto", sans-serif;
20
+ font-family: 'Roboto', sans-serif;
7
21
  font-weight: 400;
8
22
  font-style: normal;
9
23
  font-size: 1.6rem;
10
- color: var(--app-color-primary);
24
+ color: var(--cf-app-color-primary);
25
+ text-align: start;
26
+ }
27
+ }
28
+
29
+ /*===============================================
30
+ ================ Select Popovers ================
31
+ ===============================================*/
32
+
33
+ ion-popover {
34
+ ion-select-popover {
35
+ ion-list[class*='popover'] {
36
+ background: var(--cf-app-background-light);
37
+ ion-item[class*='popover'] {
38
+ --background: transparent;
39
+ --border-radius: 8px;
40
+ --background-focused: var(--cf-app-color-accent);
41
+ --background-focused-opacity: 0.5;
42
+ --background-hover: var(--cf-app-color-primary);
43
+ --background-hover-opacity: 0.1;
44
+ }
45
+ }
11
46
  }
12
- --border-radius: 8px !important; //--- important overrides the fill option
13
- --highlight-color-focused: var(--app-color-primary) !important;
14
- --highlight-color-invalid: var(app-system-color-error) !important;
15
- --highlight-color-valid: var(--app-color-primary) !important;
16
- text-align: start;
17
47
  }