@smitag/angular-shared-ui 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.
Files changed (44) hide show
  1. package/.eslintrc.json +43 -0
  2. package/README.md +29 -0
  3. package/jest.config.ts +22 -0
  4. package/ng-package.json +7 -0
  5. package/package.json +18 -0
  6. package/project.json +36 -0
  7. package/src/index.ts +2 -0
  8. package/src/lib/angular-material.module.ts +81 -0
  9. package/src/lib/shared-ui.module.ts +8 -0
  10. package/src/lib/styles/components/_base.scss +58 -0
  11. package/src/lib/styles/components/_card.scss +42 -0
  12. package/src/lib/styles/components/_dialog.scss +85 -0
  13. package/src/lib/styles/components/_drawer.scss +24 -0
  14. package/src/lib/styles/components/_form.scss +75 -0
  15. package/src/lib/styles/components/_header.scss +23 -0
  16. package/src/lib/styles/components/_helper.scss +90 -0
  17. package/src/lib/styles/components/_layout.scss +336 -0
  18. package/src/lib/styles/components/_tab.scss +8 -0
  19. package/src/lib/styles/components/_toolbar.scss +43 -0
  20. package/src/lib/styles/fonts/IBMPlexSans-Bold.ttf +0 -0
  21. package/src/lib/styles/fonts/IBMPlexSans-Light.ttf +0 -0
  22. package/src/lib/styles/fonts/IBMPlexSans-Medium.ttf +0 -0
  23. package/src/lib/styles/fonts/IBMPlexSans-Regular.ttf +0 -0
  24. package/src/lib/styles/fonts/IBMPlexSans-SemiBold.ttf +0 -0
  25. package/src/lib/styles/fonts/IBMPlexSansCondensed-Medium.ttf +0 -0
  26. package/src/lib/styles/fonts/IBMPlexSansCondensed-Regular.ttf +0 -0
  27. package/src/lib/styles/fonts/IBMPlexSansCondensed-SemiBold.ttf +0 -0
  28. package/src/lib/styles/fonts/MaterialIcons-Regular.ttf +0 -0
  29. package/src/lib/styles/fonts/Poppins-Bold.ttf +0 -0
  30. package/src/lib/styles/fonts/Poppins-Light.ttf +0 -0
  31. package/src/lib/styles/fonts/Poppins-Medium.ttf +0 -0
  32. package/src/lib/styles/fonts/Poppins-Regular.ttf +0 -0
  33. package/src/lib/styles/fonts/Poppins-SemiBold.ttf +0 -0
  34. package/src/lib/styles/fonts/SourceSansPro-Bold.ttf +0 -0
  35. package/src/lib/styles/fonts/SourceSansPro-Light.ttf +0 -0
  36. package/src/lib/styles/fonts/SourceSansPro-Regular.ttf +0 -0
  37. package/src/lib/styles/fonts/SourceSansPro-SemiBold.ttf +0 -0
  38. package/src/lib/styles/fonts/_typo.scss +152 -0
  39. package/src/lib/styles/styles.scss +191 -0
  40. package/src/test-setup.ts +8 -0
  41. package/tsconfig.json +29 -0
  42. package/tsconfig.lib.json +17 -0
  43. package/tsconfig.lib.prod.json +9 -0
  44. package/tsconfig.spec.json +16 -0
@@ -0,0 +1,336 @@
1
+ // Flex display
2
+
3
+ .flex {
4
+ display: flex !important;
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ .inline-flex {
9
+ display: inline-flex;
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ .grid {
14
+ display: grid;
15
+ }
16
+
17
+ // Flex direction
18
+ .flex-row {
19
+ display: flex !important;
20
+ flex-direction: row;
21
+ box-sizing: border-box;
22
+ }
23
+
24
+ .flex-col {
25
+ display: flex !important;
26
+ flex-direction: column;
27
+ }
28
+
29
+ .flex-wrap {
30
+ flex-wrap: wrap;
31
+ }
32
+
33
+ .fill {
34
+ height: 100%;
35
+ min-height: 100%;
36
+ }
37
+
38
+ .gap-4 {
39
+ gap: 4px;
40
+ }
41
+
42
+ .gap-8 {
43
+ gap: 8px;
44
+ }
45
+
46
+ .gap-16 {
47
+ gap: 16px;
48
+ }
49
+
50
+ .gap-24 {
51
+ gap: 24px;
52
+ }
53
+
54
+ .gap-32 {
55
+ gap: 32px;
56
+ }
57
+
58
+ .gap-64 {
59
+ gap: 64px;
60
+ }
61
+
62
+ .justify-start {
63
+ justify-content: flex-start;
64
+ }
65
+
66
+ .justify-end {
67
+ justify-content: flex-end;
68
+ }
69
+
70
+ .justify-center {
71
+ justify-content: center;
72
+ }
73
+
74
+ .justify-between {
75
+ justify-content: space-between;
76
+ }
77
+
78
+ .justify-around {
79
+ justify-content: space-around;
80
+ }
81
+
82
+ .justify-evenly {
83
+ justify-content: space-evenly;
84
+ }
85
+
86
+ .justify-start-xs {
87
+ @media screen and (max-width: 599px) {
88
+ display: flex;
89
+ justify-content: flex-start;
90
+ }
91
+ }
92
+
93
+ .justify-end-xs {
94
+ @media screen and (max-width: 599px) {
95
+ display: flex;
96
+ justify-content: flex-end;
97
+ }
98
+ }
99
+
100
+ .center {
101
+ display: block;
102
+ margin-left: auto;
103
+ margin-right: auto;
104
+ }
105
+
106
+ .align-center {
107
+ align-items: center;
108
+ }
109
+
110
+ .align-end {
111
+ align-items: end;
112
+ }
113
+
114
+ .align-stretch {
115
+ align-items: stretch;
116
+ }
117
+
118
+ .flex-auto {
119
+ flex: 1 1 auto;
120
+ }
121
+
122
+ .flex-1 {
123
+ flex: 1;
124
+ }
125
+
126
+ .flex-grow {
127
+ flex: 1 1 100%;
128
+ }
129
+
130
+ .flex-grow-20 {
131
+ flex: 0 1 20%;
132
+ max-width: 20%;
133
+ }
134
+
135
+ .flex-grow-25 {
136
+ flex: 0 1 25%;
137
+ max-width: 25%;
138
+ }
139
+
140
+ .flex-grow-30 {
141
+ flex: 0 1 30%;
142
+ max-width: 30%;
143
+ }
144
+
145
+ .flex-grow-50 {
146
+ flex: 0 1 50%;
147
+ max-width: 50%;
148
+ }
149
+
150
+ .flex-grow-70 {
151
+ flex: 0 1 70%;
152
+ max-width: 70%;
153
+ }
154
+
155
+ .flex-grow-75 {
156
+ flex: 0 1 75%;
157
+ max-width: 75%;
158
+ }
159
+
160
+ .flex-grow-0 {
161
+ flex: 0 1 0%;
162
+ }
163
+
164
+ .flex-shrink {
165
+ flex-shrink: 1;
166
+ }
167
+
168
+ .hidden {
169
+ visibility: hidden;
170
+ }
171
+
172
+ .none {
173
+ display: none;
174
+ }
175
+
176
+ // Hide on mobile.
177
+ .hide-xs {
178
+ @media screen and (max-width: 599px) {
179
+ display: none !important;
180
+ }
181
+ }
182
+
183
+ // Show only on mobile. Hide on desktop.
184
+ .hide-gt-xs {
185
+ @media screen and (min-width: 600px) {
186
+ display: none !important;
187
+ }
188
+ }
189
+
190
+ .hide-sm {
191
+ @media screen and (max-width: 959px) {
192
+ display: none !important;
193
+ }
194
+ }
195
+
196
+ .hide-lg {
197
+ @media screen and (max-width: 1919px) {
198
+ display: none !important;
199
+ }
200
+ }
201
+
202
+ .hide-gt-sm {
203
+ @media screen and (min-width: 960px) {
204
+ display: none !important;
205
+ }
206
+ }
207
+
208
+ .hide-gt-lg {
209
+ @media screen and (min-width: 1920px) {
210
+ display: none !important;
211
+ }
212
+ }
213
+
214
+ .flex-col-lg-md {
215
+ @media screen and (max-width: 1919px) and (min-width: 1280px) {
216
+ flex-direction: column !important;
217
+ }
218
+ }
219
+
220
+ .flex-col-md-sm {
221
+ @media screen and (max-width: 1279px) and (min-width: 960px) {
222
+ flex-direction: column !important;
223
+ }
224
+ }
225
+
226
+ .flex-col-sm-xs {
227
+ @media screen and (max-width: 959px) and (min-width: 600px) {
228
+ flex-direction: column !important;
229
+ }
230
+ }
231
+
232
+ .flex-col-lg {
233
+ @media screen and (max-width: 1919px) {
234
+ flex-direction: column !important;
235
+ }
236
+ }
237
+
238
+ .flex-col-md {
239
+ @media screen and (max-width: 1279px) {
240
+ flex-direction: column !important;
241
+ }
242
+ }
243
+
244
+ .flex-col-sm {
245
+ @media screen and (max-width: 959px) {
246
+ flex-direction: column !important;
247
+ }
248
+ }
249
+
250
+ .flex-col-xs {
251
+ @media screen and (max-width: 599px) {
252
+ flex-direction: column !important;
253
+ }
254
+ }
255
+
256
+ .gap-0-lg-md {
257
+ @media screen and (max-width: 1919px) and (min-width: 1280px) {
258
+ gap: 0 !important;
259
+ }
260
+ }
261
+
262
+ .gap-0-md-sm {
263
+ @media screen and (max-width: 1279px) and (min-width: 960px) {
264
+ gap: 0 !important;
265
+ }
266
+ }
267
+
268
+ .gap-0-sm-xs {
269
+ @media screen and (max-width: 959px) and (min-width: 600px) {
270
+ gap: 0 !important;
271
+ }
272
+ }
273
+
274
+ .gap-0-lg {
275
+ @media screen and (max-width: 1919px) {
276
+ gap: 0 !important;
277
+ }
278
+ }
279
+
280
+ .gap-0-md {
281
+ @media screen and (max-width: 1279px) {
282
+ gap: 0 !important;
283
+ }
284
+ }
285
+
286
+ .gap-0-sm {
287
+ @media screen and (max-width: 959px) {
288
+ gap: 0 !important;
289
+ }
290
+ }
291
+
292
+ .gap-0-xs {
293
+ @media screen and (max-width: 599px) {
294
+ gap: 0 !important;
295
+ }
296
+ }
297
+
298
+ .flex-row .flex-grow-25.lg,
299
+ .flex-row .flex-grow-30.lg,
300
+ .flex-row .flex-grow-50.lg,
301
+ .flex-row .flex-grow-70.lg,
302
+ .flex-row .flex-grow-75.lg {
303
+ @media screen and (max-width: 1919px) {
304
+ max-width: 100%;
305
+ }
306
+ }
307
+
308
+ .flex-row .flex-grow-25.md,
309
+ .flex-row .flex-grow-30.md,
310
+ .flex-row .flex-grow-50.md,
311
+ .flex-row .flex-grow-70.md,
312
+ .flex-row .flex-grow-75.md {
313
+ @media screen and (max-width: 1279px) {
314
+ max-width: 100%;
315
+ }
316
+ }
317
+
318
+ .flex-row .flex-grow-25.sm,
319
+ .flex-row .flex-grow-30.sm,
320
+ .flex-row .flex-grow-50.sm,
321
+ .flex-row .flex-grow-70.sm,
322
+ .flex-row .flex-grow-75.sm {
323
+ @media screen and (max-width: 959px) {
324
+ max-width: 100%;
325
+ }
326
+ }
327
+
328
+ .flex-row .flex-grow-25.xs,
329
+ .flex-row .flex-grow-30.xs,
330
+ .flex-row .flex-grow-50.xs,
331
+ .flex-row .flex-grow-70.xs,
332
+ .flex-row .flex-grow-75.xs {
333
+ @media screen and (max-width: 599px) {
334
+ max-width: 100%;
335
+ }
336
+ }
@@ -0,0 +1,8 @@
1
+ .mat-tab-body-wrapper {
2
+ margin-right: -16px;
3
+ margin-left: -16px;
4
+ }
5
+
6
+ .mat-tab-action {
7
+ justify-content: end;
8
+ }
@@ -0,0 +1,43 @@
1
+ mat-toolbar {
2
+ a {
3
+ height: 100%;
4
+ }
5
+
6
+ img {
7
+ height: inherit;
8
+ }
9
+
10
+ .bars-icon {
11
+ font-size: 24px;
12
+ color: #fff;
13
+ }
14
+
15
+ &.mat-toolbar-single-row {
16
+ padding: 0 8px;
17
+ }
18
+
19
+ .mat-icon {
20
+ font-size: 24px;
21
+ }
22
+ }
23
+
24
+ .second-toolbar {
25
+ border: none;
26
+ box-shadow: 0 1px 1px 0 rgba(60, 64, 67, 0.08),
27
+ 0 1px 3px 0 rgba(60, 64, 67, 0.16);
28
+ }
29
+
30
+ @media (max-width: 599px) {
31
+ .mat-toolbar-row,
32
+ .mat-toolbar-single-row {
33
+ height: 48px;
34
+ }
35
+ .toolbar-title {
36
+ margin-left: 16px;
37
+ font-size: 16px;
38
+ }
39
+ }
40
+
41
+ .mat-toolbar.second-toolbar.mat-toolbar-multiple-rows .mat-toolbar-row {
42
+ padding-left: 8px;
43
+ }
@@ -0,0 +1,152 @@
1
+ @font-face {
2
+ font-family: 'Material Icons';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ src: url('MaterialIcons-Regular.ttf'); /* For IE6-8 */
6
+ src: local('Material Icons'), local('MaterialIcons-Regular'),
7
+ url('MaterialIcons-Regular.ttf') format('truetype');
8
+ }
9
+
10
+ // IBM Plex Sans
11
+
12
+ @font-face {
13
+ font-family: 'IBM Plex Sans';
14
+ font-style: normal;
15
+ font-weight: 300;
16
+ font-display: 'swap';
17
+ src: url('IBMPlexSans-Light.ttf') format('truetype');
18
+ }
19
+
20
+ @font-face {
21
+ font-family: 'IBM Plex Sans';
22
+ font-style: normal;
23
+ font-weight: 400;
24
+ font-display: 'swap';
25
+ src: url('IBMPlexSans-Regular.ttf') format('truetype');
26
+ }
27
+
28
+ @font-face {
29
+ font-family: 'IBM Plex Sans';
30
+ font-style: normal;
31
+ font-weight: 500;
32
+ font-display: 'swap';
33
+ src: url('IBMPlexSans-Medium.ttf') format('truetype');
34
+ }
35
+
36
+ @font-face {
37
+ font-family: 'IBM Plex Sans';
38
+ font-style: normal;
39
+ font-weight: 600;
40
+ font-display: 'swap';
41
+ src: url('IBMPlexSans-SemiBold.ttf') format('truetype');
42
+ }
43
+
44
+ @font-face {
45
+ font-family: 'IBM Plex Sans';
46
+ font-style: normal;
47
+ font-weight: 700;
48
+ font-display: 'swap';
49
+ src: url('IBMPlexSans-Bold.ttf') format('truetype');
50
+ }
51
+
52
+ // Poppins
53
+
54
+ @font-face {
55
+ font-family: 'Poppins';
56
+ font-style: normal;
57
+ font-weight: 300;
58
+ font-display: swap;
59
+ src: url('Poppins-Light.ttf') format('truetype');
60
+ }
61
+
62
+ @font-face {
63
+ font-family: 'Poppins';
64
+ font-style: normal;
65
+ font-weight: 400;
66
+ font-display: swap;
67
+ src: url('Poppins-Regular.ttf') format('truetype');
68
+ }
69
+
70
+ @font-face {
71
+ font-family: 'Poppins';
72
+ font-style: normal;
73
+ font-weight: 500;
74
+ font-display: swap;
75
+ src: url('Poppins-Medium.ttf') format('truetype');
76
+ }
77
+
78
+ @font-face {
79
+ font-family: 'Poppins';
80
+ font-style: normal;
81
+ font-weight: 600;
82
+ font-display: swap;
83
+ src: url('Poppins-SemiBold.ttf') format('truetype');
84
+ }
85
+
86
+ @font-face {
87
+ font-family: 'Poppins';
88
+ font-style: normal;
89
+ font-weight: 700;
90
+ font-display: swap;
91
+ src: url('Poppins-Bold.ttf') format('truetype');
92
+ }
93
+
94
+ // Source Sans Pro
95
+
96
+ @font-face {
97
+ font-family: 'Source Sans Pro';
98
+ font-style: normal;
99
+ font-weight: 300;
100
+ font-display: 'swap';
101
+ src: url('SourceSansPro-Light.ttf') format('truetype');
102
+ }
103
+
104
+ @font-face {
105
+ font-family: 'Source Sans Pro';
106
+ font-style: normal;
107
+ font-weight: 400;
108
+ font-display: 'swap';
109
+ src: url('SourceSansPro-Regular.ttf') format('truetype');
110
+ }
111
+
112
+ @font-face {
113
+ font-family: 'Source Sans Pro';
114
+ font-style: normal;
115
+ font-weight: 600;
116
+ font-display: 'swap';
117
+ src: url('SourceSansPro-SemiBold.ttf') format('truetype');
118
+ }
119
+
120
+ @font-face {
121
+ font-family: 'Source Sans Pro';
122
+ font-style: normal;
123
+ font-weight: 700;
124
+ font-display: 'swap';
125
+ src: url('SourceSansPro-Bold.ttf') format('truetype');
126
+ }
127
+
128
+ // IBM Plex Sans Condensed
129
+
130
+ @font-face {
131
+ font-family: 'IBM Plex Sans Condensed';
132
+ font-style: normal;
133
+ font-weight: 400;
134
+ font-display: 'swap';
135
+ src: url('IBMPlexSansCondensed-Regular.ttf') format('truetype');
136
+ }
137
+
138
+ @font-face {
139
+ font-family: 'IBM Plex Sans Condensed';
140
+ font-style: normal;
141
+ font-weight: 500;
142
+ font-display: 'swap';
143
+ src: url('IBMPlexSansCondensed-Medium.ttf') format('truetype');
144
+ }
145
+
146
+ @font-face {
147
+ font-family: 'IBM Plex Sans Condensed';
148
+ font-style: normal;
149
+ font-weight: 600;
150
+ font-display: 'swap';
151
+ src: url('IBMPlexSansCondensed-SemiBold.ttf') format('truetype');
152
+ }