@onemrvapublic/design-system-theme 0.0.0-semantically-released

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 (48) hide show
  1. package/README.md +1 -0
  2. package/assets/img/no-result.svg +124 -0
  3. package/fesm2022/onemrvapublic-design-system-theme.mjs +43 -0
  4. package/fesm2022/onemrvapublic-design-system-theme.mjs.map +1 -0
  5. package/index.d.ts +9 -0
  6. package/index.scss +212 -0
  7. package/overrides/_button-toggle.scss +14 -0
  8. package/overrides/_button.scss +128 -0
  9. package/overrides/_cards.scss +11 -0
  10. package/overrides/_carousel.scss +13 -0
  11. package/overrides/_checkbox.scss +46 -0
  12. package/overrides/_chips.scss +42 -0
  13. package/overrides/_dialogs.scss +130 -0
  14. package/overrides/_divider.scss +9 -0
  15. package/overrides/_drag-and-drop.scss +74 -0
  16. package/overrides/_expansion.scss +40 -0
  17. package/overrides/_fab.scss +45 -0
  18. package/overrides/_form-field.scss +40 -0
  19. package/overrides/_icon-button.scss +18 -0
  20. package/overrides/_icon.scss +97 -0
  21. package/overrides/_input.scss +237 -0
  22. package/overrides/_layout.scss +35 -0
  23. package/overrides/_menu.scss +25 -0
  24. package/overrides/_panel.scss +66 -0
  25. package/overrides/_progress-bar.scss +29 -0
  26. package/overrides/_radio.scss +17 -0
  27. package/overrides/_select.scss +75 -0
  28. package/overrides/_slide-toggle.scss +23 -0
  29. package/overrides/_stepper.scss +196 -0
  30. package/overrides/_stickers.scss +13 -0
  31. package/overrides/_table.scss +111 -0
  32. package/overrides/_tabs.scss +24 -0
  33. package/overrides/_toast.scss +16 -0
  34. package/overrides/_toc.scss +26 -0
  35. package/overrides/_toolbar.scss +18 -0
  36. package/overrides/_tooltip.scss +17 -0
  37. package/package.json +23 -0
  38. package/palettes/_palette.scss +188 -0
  39. package/utilities/_animations.scss +54 -0
  40. package/utilities/_container.scss +42 -0
  41. package/utilities/_fonts.scss +158 -0
  42. package/utilities/_grid.scss +75 -0
  43. package/utilities/_media.scss +33 -0
  44. package/utilities/_palettes.scss +119 -0
  45. package/utilities/_spacing.scss +86 -0
  46. package/utilities/_tokens.scss +85 -0
  47. package/utilities/_utilities.scss +333 -0
  48. package/utilities/_variables.scss +51 -0
@@ -0,0 +1,333 @@
1
+ @use '../utilities/variables' as variables;
2
+ @use '../utilities/media' as media;
3
+ @use 'sass:map';
4
+ @use 'sass:list';
5
+
6
+ @mixin utilities() {
7
+ // text
8
+ .text-center {
9
+ text-align: center !important;
10
+ }
11
+ .text-right,
12
+ .text-end {
13
+ text-align: right !important;
14
+ }
15
+ .text-left,
16
+ .text-start {
17
+ text-align: left !important;
18
+ }
19
+ //@each $breakpoint in variables.$breakpoints {
20
+ // @include media.media(variables.$breakpoints, list.nth($breakpoint, 1)) {
21
+ // .text-center-#{list.nth($breakpoint, 1)} {
22
+ // text-align: center !important;
23
+ // }
24
+ // .text-right-#{list.nth($breakpoint, 1)},
25
+ // .text-end-#{list.nth($breakpoint, 1)} {
26
+ // text-align: right !important;
27
+ // }
28
+ // .text-left-#{list.nth($breakpoint, 1)},
29
+ // .text-start-#{list.nth($breakpoint, 1)} {
30
+ // text-align: left !important;
31
+ // }
32
+ // }
33
+ //}
34
+
35
+ .text-lowercase {
36
+ text-transform: lowercase !important;
37
+ }
38
+ .text-uppercase {
39
+ text-transform: uppercase !important;
40
+ }
41
+ .text-capitalize {
42
+ text-transform: capitalize !important;
43
+ }
44
+
45
+ .rotate-0 {
46
+ transform: rotate(0deg);
47
+ transition: transform 0.3s ease;
48
+ }
49
+ .rotate-45 {
50
+ transform: rotate(45deg);
51
+ transition: transform 0.3s ease;
52
+ }
53
+ .rotate-90 {
54
+ transform: rotate(90deg);
55
+ transition: transform 0.3s ease;
56
+ }
57
+ .rotate-135 {
58
+ transform: rotate(135deg);
59
+ transition: transform 0.3s ease;
60
+ }
61
+ .rotate-180 {
62
+ transform: rotate(180deg);
63
+ transition: transform 0.3s ease;
64
+ }
65
+ .rotate-225 {
66
+ transform: rotate(225deg);
67
+ transition: transform 0.3s ease;
68
+ }
69
+ .rotate-270 {
70
+ transform: rotate(270deg);
71
+ transition: transform 0.3s ease;
72
+ }
73
+
74
+ // align
75
+ .align-baseline {
76
+ vertical-align: baseline !important;
77
+ }
78
+ .align-top {
79
+ vertical-align: top !important;
80
+ }
81
+ .align-middle {
82
+ vertical-align: middle !important;
83
+ }
84
+ .align-bottom {
85
+ vertical-align: bottom !important;
86
+ }
87
+ .align-text-top {
88
+ vertical-align: text-top !important;
89
+ }
90
+ .align-text-bottom {
91
+ vertical-align: text-bottom !important;
92
+ }
93
+
94
+ // overflow
95
+ .overflow-auto {
96
+ overflow: auto !important;
97
+ }
98
+ .overflow-hidden {
99
+ overflow: hidden !important;
100
+ }
101
+ .overflow-visible {
102
+ overflow: visible !important;
103
+ }
104
+ .overflow-scroll {
105
+ overflow: scroll !important;
106
+ }
107
+
108
+ // float
109
+ .float-right,
110
+ .float-end {
111
+ float: right !important;
112
+ }
113
+ .float-left,
114
+ .float-start {
115
+ float: left !important;
116
+ }
117
+ //@each $breakpoint in variables.$breakpoints {
118
+ // @include media.media(variables.$breakpoints, list.nth($breakpoint, 1)) {
119
+ // .float-right-#{list.nth($breakpoint, 1)},
120
+ // .float-end-#{list.nth($breakpoint, 1)} {
121
+ // float: right !important;
122
+ // }
123
+ // .float-left-#{list.nth($breakpoint, 1)},
124
+ // .float-start-#{list.nth($breakpoint, 1)} {
125
+ // float: left !important;
126
+ // }
127
+ // }
128
+ //}
129
+
130
+ // display
131
+ .d-none {
132
+ display: none !important;
133
+ }
134
+ .d-inline {
135
+ display: inline !important;
136
+ }
137
+ .d-inline-block {
138
+ display: inline-block !important;
139
+ }
140
+ .d-block {
141
+ display: block !important;
142
+ }
143
+ .d-grid {
144
+ display: grid !important;
145
+ }
146
+ .d-table {
147
+ display: table !important;
148
+ }
149
+ .d-table-cell {
150
+ display: table-cell !important;
151
+ }
152
+ .d-table-row {
153
+ display: table-row !important;
154
+ }
155
+ .d-flex {
156
+ display: flex !important;
157
+ }
158
+ .d-inline-flex {
159
+ display: inline-flex !important;
160
+ }
161
+
162
+ @each $breakpoint in variables.$breakpoints {
163
+ @include media.media(variables.$breakpoints, list.nth($breakpoint, 1)) {
164
+ .d-none-#{list.nth($breakpoint, 1)} {
165
+ display: none !important;
166
+ }
167
+ .d-inline-#{list.nth($breakpoint, 1)} {
168
+ display: inline !important;
169
+ }
170
+ .d-inline-block-#{list.nth($breakpoint, 1)} {
171
+ display: inline-block !important;
172
+ }
173
+ .d-block-#{list.nth($breakpoint, 1)} {
174
+ display: block !important;
175
+ }
176
+ .d-grid-#{list.nth($breakpoint, 1)} {
177
+ display: grid !important;
178
+ }
179
+ .d-table-#{list.nth($breakpoint, 1)} {
180
+ display: table !important;
181
+ }
182
+ .d-table-cell-#{list.nth($breakpoint, 1)} {
183
+ display: table-cell !important;
184
+ }
185
+ .d-table-row-#{list.nth($breakpoint, 1)} {
186
+ display: table-row !important;
187
+ }
188
+ .d-flex-#{list.nth($breakpoint, 1)} {
189
+ display: flex !important;
190
+ }
191
+ .d-inline-flex-#{list.nth($breakpoint, 1)} {
192
+ display: inline-flex !important;
193
+ }
194
+ }
195
+ }
196
+
197
+ .flex-center {
198
+ display: flex;
199
+ align-items: center;
200
+ }
201
+
202
+ // positions
203
+ .position-relative {
204
+ position: relative !important;
205
+ }
206
+ .position-absolute {
207
+ position: absolute !important;
208
+ }
209
+ .position-fixed {
210
+ position: fixed !important;
211
+ }
212
+ .position-static {
213
+ position: static !important;
214
+ }
215
+ .position-sticky {
216
+ position: sticky !important;
217
+ }
218
+ .clickable {
219
+ cursor: pointer;
220
+ }
221
+ // visibility
222
+ .visible {
223
+ visibility: visible !important;
224
+ }
225
+ .invisible {
226
+ visibility: hidden !important;
227
+ }
228
+ .hidden {
229
+ display: none;
230
+ }
231
+
232
+ // Sizing
233
+ @for $i from 0 through 100 {
234
+ .w-#{$i} {
235
+ width: '#{$i}%' !important;
236
+ }
237
+ .h-#{$i} {
238
+ height: '#{$i}%' !important;
239
+ }
240
+ .vw-#{$i} {
241
+ width: '#{$i}vw' !important;
242
+ }
243
+ .vh-#{$i} {
244
+ height: '#{$i}vh' !important;
245
+ }
246
+ .mw-#{$i} {
247
+ max-width: '#{$i}%' !important;
248
+ }
249
+ .mh-#{$i} {
250
+ max-height: '#{$i}%' !important;
251
+ }
252
+ }
253
+ .w-auto {
254
+ width: auto !important;
255
+ }
256
+ .h-auto {
257
+ height: auto !important;
258
+ }
259
+
260
+ .mat-elevation-z0 {
261
+ box-shadow: var(--mat-sys-level0);
262
+ }
263
+ .mat-elevation-z1 {
264
+ box-shadow: var(--mat-sys-level1);
265
+ }
266
+ .mat-elevation-z2 {
267
+ box-shadow: var(--mat-sys-level2);
268
+ }
269
+ .mat-elevation-z3 {
270
+ box-shadow: var(--mat-sys-level3);
271
+ }
272
+ .mat-elevation-z4 {
273
+ box-shadow: var(--mat-sys-level4);
274
+ }
275
+ .mat-elevation-z5 {
276
+ box-shadow: var(--mat-sys-level5);
277
+ }
278
+
279
+ .show-icon {
280
+ &:not(.mat-grayscale):before {
281
+ font-family: var(--icon-font);
282
+ position: relative;
283
+ float: left;
284
+ //margin-left: calc(var(--spacer) * -4.25);
285
+ height: 100%;
286
+ line-height: 100%;
287
+ vertical-align: middle;
288
+ //left: var(--spacer);
289
+ font-size: 1.25rem;
290
+ font-variation-settings:
291
+ 'FILL' 1,
292
+ 'wght' 400,
293
+ 'GRAD' 0,
294
+ 'opsz' 48;
295
+ color: var(--mat-sys-primary);
296
+ }
297
+ &.small {
298
+ }
299
+ &.large {
300
+ }
301
+ }
302
+
303
+ .show-icon.mat-info,
304
+ .mat-info .show-icon {
305
+ &:before {
306
+ content: '\e88e';
307
+ }
308
+ }
309
+ .show-icon.mat-success,
310
+ .mat-success .show-icon {
311
+ &:before {
312
+ content: '\e86c';
313
+ }
314
+ }
315
+ .show-icon.mat-warn,
316
+ .mat-warn .show-icon {
317
+ &:before {
318
+ content: '\e002';
319
+ }
320
+ }
321
+ .show-icon.mat-grayscale,
322
+ .mat-grayscale .show-icon,
323
+ .show-icon.mat-neutral,
324
+ .mat-grayscale .mat-neutral {
325
+ padding: var(--spacer);
326
+ }
327
+ .show-icon.mat-error,
328
+ .mat-error .show-icon {
329
+ &:before {
330
+ content: '\e000';
331
+ }
332
+ }
333
+ }
@@ -0,0 +1,51 @@
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+ @use './palettes';
4
+
5
+ $onemrva-accent-gradient: var(--background-gradient);
6
+ $onemrva-accent-gradient-vertical: var(--background-gradient);
7
+ $onemrva-button-outline-opacity: 0.3;
8
+ $box-shadow: 0px 3px 3px #312f3a29;
9
+ $gap: 8px;
10
+
11
+ $default-font-family: 'Source Sans Pro', sans-serif;
12
+ $header-font-family: 'Poppins', sans-serif;
13
+
14
+ $spacer: 8px !default;
15
+ $spacers:
16
+ '-0' 0,
17
+ '-2xs' $spacer * 0.25,
18
+ '-xs' $spacer * 0.5,
19
+ '-s' $spacer,
20
+ '' $spacer,
21
+ '-m' $spacer * 2,
22
+ '-l' $spacer * 3,
23
+ '-xl' $spacer * 4,
24
+ '-2xl' $spacer * 5,
25
+ '-3xl' $spacer * 7,
26
+ '-auto' 'auto';
27
+
28
+ $breakpoints: (
29
+ xsmall: (
30
+ max: 599.99,
31
+ ),
32
+ small: (
33
+ min: 600,
34
+ max: 959.99,
35
+ ),
36
+ medium: (
37
+ min: 960,
38
+ max: 1279.99,
39
+ ),
40
+ large: (
41
+ min: 1280,
42
+ max: 1535.99,
43
+ ),
44
+ xlarge: (
45
+ min: 1536,
46
+ max: 1919.99,
47
+ ),
48
+ xxlarge: (
49
+ min: 1920,
50
+ ),
51
+ );