@carefirst/library 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +24 -0
- package/esm2022/carefirst-library.mjs +2 -0
- package/esm2022/lib/components/button/button.component.mjs +64 -0
- package/esm2022/lib/components/icon/icon.component.mjs +30 -0
- package/esm2022/lib/components/page/page.component.mjs +31 -0
- package/esm2022/lib/components/spacer/spacer.component.mjs +30 -0
- package/esm2022/lib/directives/button-loader.directive.mjs +41 -0
- package/esm2022/lib/interfaces/icon.interface.mjs +37 -0
- package/esm2022/lib/library.module.mjs +24 -0
- package/esm2022/lib/utils/attribute.util.mjs +28 -0
- package/esm2022/public-api.mjs +7 -0
- package/fesm2022/carefirst-library.mjs +261 -0
- package/fesm2022/carefirst-library.mjs.map +1 -0
- package/index.d.ts +2 -0
- package/lib/components/button/button.component.d.ts +26 -0
- package/lib/components/icon/icon.component.d.ts +16 -0
- package/lib/components/page/page.component.d.ts +13 -0
- package/lib/components/spacer/spacer.component.d.ts +16 -0
- package/lib/directives/button-loader.directive.d.ts +12 -0
- package/lib/interfaces/icon.interface.d.ts +2 -0
- package/lib/library.module.d.ts +13 -0
- package/lib/utils/attribute.util.d.ts +4 -0
- package/package.json +28 -0
- package/public/interfaces/carefirst.shared.interfaces.ts +249 -0
- package/public/styles/app.scss +41 -0
- package/public/styles/colors.scss +20 -0
- package/public/styles/font.scss +241 -0
- package/public/styles/forms.scss +17 -0
- package/public/styles/index.scss +19 -0
- package/public/styles/scrollbar.scss +22 -0
- package/public-api.d.ts +6 -0
@@ -0,0 +1,241 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: 'Mulish';
|
3
|
+
font-weight: 200;
|
4
|
+
src: url(/assets/fonts/Mulish-200.ttf) format('truetype');
|
5
|
+
}
|
6
|
+
@font-face {
|
7
|
+
font-family: 'Mulish';
|
8
|
+
font-weight: 300;
|
9
|
+
src: url(/assets/fonts/Mulish-300.ttf) format('truetype');
|
10
|
+
}
|
11
|
+
@font-face {
|
12
|
+
font-family: 'Mulish';
|
13
|
+
font-weight: 400;
|
14
|
+
src: url(/assets/fonts/Mulish-400.ttf) format('truetype');
|
15
|
+
}
|
16
|
+
@font-face {
|
17
|
+
font-family: 'Mulish';
|
18
|
+
font-weight: 500;
|
19
|
+
src: url(/assets/fonts/Mulish-500.ttf) format('truetype');
|
20
|
+
}
|
21
|
+
@font-face {
|
22
|
+
font-family: 'Mulish';
|
23
|
+
font-weight: 600;
|
24
|
+
src: url(/assets/fonts/Mulish-600.ttf) format('truetype');
|
25
|
+
}
|
26
|
+
@font-face {
|
27
|
+
font-family: 'Mulish';
|
28
|
+
font-weight: 700;
|
29
|
+
src: url(/assets/fonts/Mulish-700.ttf) format('truetype');
|
30
|
+
}
|
31
|
+
@font-face {
|
32
|
+
font-family: 'Mulish';
|
33
|
+
font-weight: 800;
|
34
|
+
src: url(/assets/fonts/Mulish-800.ttf) format('truetype');
|
35
|
+
}
|
36
|
+
@font-face {
|
37
|
+
font-family: 'Mulish';
|
38
|
+
font-weight: 900;
|
39
|
+
src: url(/assets/fonts/Mulish-900.ttf) format('truetype');
|
40
|
+
}
|
41
|
+
//--- Roboto
|
42
|
+
@font-face {
|
43
|
+
font-family: 'Roboto';
|
44
|
+
font-weight: 100;
|
45
|
+
src: url(/assets/fonts/Roboto-100.woff2) format('woff2');
|
46
|
+
}
|
47
|
+
@font-face {
|
48
|
+
font-family: 'Roboto';
|
49
|
+
font-weight: 300;
|
50
|
+
src: url(/assets/fonts/Roboto-300.woff2) format('woff2');
|
51
|
+
}
|
52
|
+
@font-face {
|
53
|
+
font-family: 'Roboto';
|
54
|
+
font-weight: 400;
|
55
|
+
src: url(/assets/fonts/Roboto-400.woff2) format('woff2');
|
56
|
+
}
|
57
|
+
@font-face {
|
58
|
+
font-family: 'Roboto';
|
59
|
+
font-weight: 500;
|
60
|
+
src: url(/assets/fonts/Roboto-500.woff2) format('woff2');
|
61
|
+
}
|
62
|
+
@font-face {
|
63
|
+
font-family: 'Roboto';
|
64
|
+
font-weight: 700;
|
65
|
+
src: url(/assets/fonts/Roboto-700.woff2) format('woff2');
|
66
|
+
}
|
67
|
+
@font-face {
|
68
|
+
font-family: 'Roboto';
|
69
|
+
font-weight: 900;
|
70
|
+
src: url(/assets/fonts/Roboto-900.woff2) format('woff2');
|
71
|
+
}
|
72
|
+
|
73
|
+
/*===============================================
|
74
|
+
==================== Colors =====================
|
75
|
+
===============================================*/
|
76
|
+
|
77
|
+
:root {
|
78
|
+
--cf-app-text-color-default: #4a4a4a;
|
79
|
+
--cf-app-text-color-light: #fff;
|
80
|
+
--cf-app-text-color-alt1: #6b6b6b;
|
81
|
+
--cf-app-text-color-alt2: #9d9d9d;
|
82
|
+
}
|
83
|
+
|
84
|
+
/*===============================================
|
85
|
+
================== Base Text ====================
|
86
|
+
===============================================*/
|
87
|
+
|
88
|
+
//--- Normalize global font base
|
89
|
+
:root {
|
90
|
+
font-size: 62.5%; //--- 63.5% of 16px (default) = 10px
|
91
|
+
font-family: 'Mulish', 'Roboto', sans-serif;
|
92
|
+
}
|
93
|
+
|
94
|
+
/*===============================================
|
95
|
+
================== Headers ======================
|
96
|
+
===============================================*/
|
97
|
+
|
98
|
+
h1,
|
99
|
+
h2,
|
100
|
+
h3,
|
101
|
+
h4 {
|
102
|
+
line-height: auto;
|
103
|
+
font-family: 'Mulish', sans-serif;
|
104
|
+
font-style: normal;
|
105
|
+
font-weight: 900;
|
106
|
+
margin: 0;
|
107
|
+
display: inline-block;
|
108
|
+
color: var(--cf-app-color-primary);
|
109
|
+
}
|
110
|
+
|
111
|
+
h1.light,
|
112
|
+
h2.light,
|
113
|
+
h3.light,
|
114
|
+
h4.light {
|
115
|
+
color: var(--cf-app-text-color-light);
|
116
|
+
}
|
117
|
+
|
118
|
+
/*================== Mobile ==================*/
|
119
|
+
h1 {
|
120
|
+
font-size: 4.2rem;
|
121
|
+
}
|
122
|
+
|
123
|
+
h2 {
|
124
|
+
font-size: 3.6rem;
|
125
|
+
}
|
126
|
+
|
127
|
+
h3 {
|
128
|
+
font-size: 2.8rem;
|
129
|
+
}
|
130
|
+
|
131
|
+
h4 {
|
132
|
+
font-size: 1.8rem;
|
133
|
+
}
|
134
|
+
|
135
|
+
/*================== Desktop ==================*/
|
136
|
+
|
137
|
+
@media (min-width: $desktop-breakpoint) {
|
138
|
+
h1 {
|
139
|
+
font-size: 6.4rem;
|
140
|
+
}
|
141
|
+
|
142
|
+
h2 {
|
143
|
+
font-size: 4.8rem;
|
144
|
+
}
|
145
|
+
|
146
|
+
h3 {
|
147
|
+
font-size: 3.6rem;
|
148
|
+
}
|
149
|
+
|
150
|
+
h4 {
|
151
|
+
font-size: 2.8rem;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
/*===============================================
|
156
|
+
================= Paragraphs ====================
|
157
|
+
===============================================*/
|
158
|
+
|
159
|
+
p {
|
160
|
+
font-family: 'Roboto', sans-serif;
|
161
|
+
font-weight: 400;
|
162
|
+
font-style: normal;
|
163
|
+
padding: 0;
|
164
|
+
margin: 0;
|
165
|
+
width: 100%;
|
166
|
+
color: var(--cf-app-color-primary);
|
167
|
+
}
|
168
|
+
|
169
|
+
p[class^='body-'].bold {
|
170
|
+
font-weight: 500;
|
171
|
+
}
|
172
|
+
|
173
|
+
p[class^='body-'].light {
|
174
|
+
color: var(--cf-app-text-color-light);
|
175
|
+
}
|
176
|
+
|
177
|
+
/*================== Mobile ==================*/
|
178
|
+
|
179
|
+
p.body-large {
|
180
|
+
font-size: 1.8rem;
|
181
|
+
line-height: 2.4rem;
|
182
|
+
}
|
183
|
+
|
184
|
+
p.body-standard {
|
185
|
+
font-size: 1.6rem;
|
186
|
+
line-height: 2.4rem;
|
187
|
+
}
|
188
|
+
|
189
|
+
p.body-medium {
|
190
|
+
font-size: 1.4rem;
|
191
|
+
line-height: 1.6rem;
|
192
|
+
}
|
193
|
+
|
194
|
+
p.body-small {
|
195
|
+
font-size: 1.2rem;
|
196
|
+
line-height: 1.6rem;
|
197
|
+
}
|
198
|
+
|
199
|
+
p.body-extra-small {
|
200
|
+
font-size: 1rem;
|
201
|
+
line-height: 1.6rem;
|
202
|
+
}
|
203
|
+
|
204
|
+
p.body-extra-extra-small {
|
205
|
+
font-size: 0.8rem;
|
206
|
+
line-height: 1.2rem;
|
207
|
+
}
|
208
|
+
|
209
|
+
/*================== Desktop ==================*/
|
210
|
+
|
211
|
+
@media (min-width: $desktop-breakpoint) {
|
212
|
+
p.body-large {
|
213
|
+
font-size: 2.4rem;
|
214
|
+
line-height: 3.2rem;
|
215
|
+
}
|
216
|
+
|
217
|
+
p.body-standard {
|
218
|
+
font-size: 1.8rem;
|
219
|
+
line-height: 2.4rem;
|
220
|
+
}
|
221
|
+
|
222
|
+
p.body-medium {
|
223
|
+
font-size: 1.6rem;
|
224
|
+
line-height: 2.4rem;
|
225
|
+
}
|
226
|
+
|
227
|
+
p.body-small {
|
228
|
+
font-size: 1.4rem;
|
229
|
+
line-height: 1.6rem;
|
230
|
+
}
|
231
|
+
|
232
|
+
p.body-extra-small {
|
233
|
+
font-size: 1rem;
|
234
|
+
line-height: 1.6rem;
|
235
|
+
}
|
236
|
+
|
237
|
+
p.body-extra-extra-small {
|
238
|
+
font-size: 0.8rem;
|
239
|
+
line-height: 1.2rem;
|
240
|
+
}
|
241
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
//--- Design
|
2
|
+
ion-input,
|
3
|
+
ion-textarea,
|
4
|
+
ion-select {
|
5
|
+
label {
|
6
|
+
font-family: "Roboto", sans-serif;
|
7
|
+
font-weight: 400;
|
8
|
+
font-style: normal;
|
9
|
+
font-size: 1.6rem;
|
10
|
+
color: var(--app-color-primary);
|
11
|
+
}
|
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
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* CareFirst CSS Index File
|
3
|
+
*
|
4
|
+
* @file index.scss
|
5
|
+
* @description Contains all the base CSS files pertaining to the CareFirst Design theme
|
6
|
+
* @author Jacques Coetzee
|
7
|
+
* @since 2023 - 09 - 04
|
8
|
+
* @usage @import "../node_modules/@carefirst/library/styles/index.scss";
|
9
|
+
*/
|
10
|
+
|
11
|
+
//--- Screen size breakpoint
|
12
|
+
$desktop-breakpoint: 768px; //--- Same as ionic md breakpoint
|
13
|
+
|
14
|
+
//--- SCSS Imports
|
15
|
+
@import './app.scss';
|
16
|
+
@import './colors.scss';
|
17
|
+
@import './font.scss';
|
18
|
+
@import './forms.scss';
|
19
|
+
@import './scrollbar.scss';
|
@@ -0,0 +1,22 @@
|
|
1
|
+
//--- Scroll bar style (Modals, ion-content not supported yet)
|
2
|
+
/* width */
|
3
|
+
::-webkit-scrollbar {
|
4
|
+
width: 10px;
|
5
|
+
}
|
6
|
+
|
7
|
+
/* Track */
|
8
|
+
::-webkit-scrollbar-track {
|
9
|
+
background: var(--cf-app-color-secondary);
|
10
|
+
border-radius: 20px;
|
11
|
+
}
|
12
|
+
|
13
|
+
/* Handle */
|
14
|
+
::-webkit-scrollbar-thumb {
|
15
|
+
background: var(--cf-app-color-primary);
|
16
|
+
border-radius: 20px;
|
17
|
+
}
|
18
|
+
|
19
|
+
/* Handle on hover */
|
20
|
+
::-webkit-scrollbar-thumb:hover {
|
21
|
+
background: var(--cf-app-text-color-default);
|
22
|
+
}
|
package/public-api.d.ts
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
export * from './lib/library.module';
|
2
|
+
export * from './lib/directives/button-loader.directive';
|
3
|
+
export * from './lib/components/page/page.component';
|
4
|
+
export * from './lib/components/button/button.component';
|
5
|
+
export * from './lib/components/spacer/spacer.component';
|
6
|
+
export * from './lib/components/icon/icon.component';
|