valtech-components 2.0.7 → 2.0.9

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 (49) hide show
  1. package/esm2022/lib/components/atoms/button/button.component.mjs +41 -0
  2. package/esm2022/lib/components/atoms/button/factory.mjs +217 -0
  3. package/esm2022/lib/components/atoms/button/types.mjs +2 -0
  4. package/esm2022/lib/components/types.mjs +29 -0
  5. package/esm2022/lib/services/download.service.mjs +63 -0
  6. package/esm2022/lib/services/lang-provider/components/lang-settings.mjs +13 -0
  7. package/esm2022/lib/services/lang-provider/components/theme-settings.mjs +15 -0
  8. package/esm2022/lib/services/lang-provider/content.mjs +8 -0
  9. package/esm2022/lib/services/lang-provider/lang-provider.service.mjs +39 -0
  10. package/esm2022/lib/services/lang-provider/types.mjs +14 -0
  11. package/esm2022/lib/services/local-storage.service.mjs +16 -0
  12. package/esm2022/lib/services/theme.service.mjs +97 -0
  13. package/esm2022/lib/services/types.mjs +3 -0
  14. package/esm2022/lib/shared/constants/storage.mjs +3 -0
  15. package/esm2022/lib/shared/utils/dom.mjs +17 -0
  16. package/esm2022/public-api.mjs +18 -0
  17. package/esm2022/valtech-components.mjs +5 -0
  18. package/fesm2022/valtech-components.mjs +537 -0
  19. package/fesm2022/valtech-components.mjs.map +1 -0
  20. package/index.d.ts +5 -0
  21. package/lib/components/atoms/button/button.component.d.ts +20 -0
  22. package/lib/components/atoms/button/factory.d.ts +71 -0
  23. package/lib/components/atoms/button/types.d.ts +22 -0
  24. package/lib/components/types.d.ts +78 -0
  25. package/lib/services/download.service.d.ts +8 -0
  26. package/lib/services/lang-provider/components/lang-settings.d.ts +3 -0
  27. package/lib/services/lang-provider/components/theme-settings.d.ts +3 -0
  28. package/lib/services/lang-provider/content.d.ts +6 -0
  29. package/lib/services/lang-provider/lang-provider.service.d.ts +17 -0
  30. package/lib/services/lang-provider/types.d.ts +15 -0
  31. package/lib/services/local-storage.service.d.ts +6 -0
  32. package/lib/services/theme.service.d.ts +27 -0
  33. package/lib/services/types.d.ts +6 -0
  34. package/lib/shared/constants/storage.d.ts +2 -0
  35. package/lib/shared/utils/dom.d.ts +3 -0
  36. package/package.json +14 -4
  37. package/public-api.d.ts +11 -0
  38. package/src/lib/components/styles/functions.scss +20 -0
  39. package/src/lib/components/styles/media-queries.scss +66 -0
  40. package/src/lib/components/styles/mixins.scss +66 -0
  41. package/src/lib/components/styles/overrides.scss +158 -0
  42. package/src/lib/components/styles/typography.scss +189 -0
  43. package/src/lib/components/styles/variables.scss +82 -0
  44. package/ng-package.json +0 -11
  45. package/src/lib/components/hello-world/hello-world.component.ts +0 -17
  46. package/src/public-api.ts +0 -5
  47. package/tsconfig.lib.json +0 -14
  48. package/tsconfig.lib.prod.json +0 -10
  49. package/tsconfig.spec.json +0 -14
@@ -0,0 +1,189 @@
1
+ @import './variables.scss';
2
+ @import './functions.scss';
3
+ @import './media-queries.scss';
4
+
5
+ @mixin text($fontSize, $lineHeight, $fontSizeMobile, $lineHeightMobile, $fontWeight) {
6
+ font-size: pxToRem($fontSizeMobile);
7
+ line-height: pxToRem($lineHeightMobile);
8
+ font-weight: $fontWeight;
9
+
10
+ @include media-medium {
11
+ font-size: pxToRem($fontSize);
12
+ line-height: pxToRem($lineHeight);
13
+ }
14
+ }
15
+
16
+ @mixin display-xlarge {
17
+ @include text(
18
+ $font-size-display-xlarge,
19
+ $line-height-display-xlarge,
20
+ $font-size-display-xlarge-responsive,
21
+ $line-height-display-xlarge-responsive,
22
+ $font-weight-extra-bold
23
+ );
24
+ }
25
+
26
+ @mixin display-large {
27
+ @include text(
28
+ $font-size-display-large,
29
+ $line-height-display-large,
30
+ $font-size-display-large-responsive,
31
+ $line-height-display-large-responsive,
32
+ $font-weight-extra-bold
33
+ );
34
+ }
35
+
36
+ @mixin display-medium {
37
+ @include text(
38
+ $font-size-display-medium,
39
+ $line-height-display-medium,
40
+ $font-size-display-medium-responsive,
41
+ $line-height-display-medium-responsive,
42
+ $font-weight-extra-bold
43
+ );
44
+ }
45
+
46
+ @mixin display-small {
47
+ @include text(
48
+ $font-size-display-small,
49
+ $line-height-display-small,
50
+ $font-size-display-small-responsive,
51
+ $line-height-display-small-responsive,
52
+ $font-weight-extra-bold
53
+ );
54
+ }
55
+
56
+ @mixin title-large {
57
+ @include text(
58
+ $font-size-title-large,
59
+ $line-height-title-large,
60
+ $font-size-title-large-responsive,
61
+ $line-height-title-large-responsive,
62
+ $font-weight-bold
63
+ );
64
+ }
65
+
66
+ @mixin title-medium {
67
+ @include text(
68
+ $font-size-title-medium,
69
+ $line-height-title-medium,
70
+ $font-size-title-medium-responsive,
71
+ $line-height-title-medium-responsive,
72
+ $font-weight-bold
73
+ );
74
+ }
75
+
76
+ @mixin title-small {
77
+ @include text(
78
+ $font-size-title-small,
79
+ $line-height-title-small,
80
+ $font-size-title-small-responsive,
81
+ $line-height-title-small-responsive,
82
+ $font-weight-bold
83
+ );
84
+ }
85
+
86
+ @mixin body-xlarge {
87
+ @include text(
88
+ $font-size-body-xlarge,
89
+ $line-height-body-xlarge,
90
+ $font-size-body-xlarge-responsive,
91
+ $line-height-body-xlarge-responsive,
92
+ $font-weight-regular
93
+ );
94
+ }
95
+
96
+ @mixin body-xlarge-bold {
97
+ @include text(
98
+ $font-size-body-xlarge,
99
+ $line-height-body-xlarge,
100
+ $font-size-body-xlarge-responsive,
101
+ $line-height-body-xlarge-responsive,
102
+ $font-weight-bold
103
+ );
104
+ }
105
+
106
+ @mixin body-large {
107
+ @include text(
108
+ $font-size-body-large,
109
+ $line-height-body-large,
110
+ $font-size-body-large-responsive,
111
+ $line-height-body-large-responsive,
112
+ $font-weight-regular
113
+ );
114
+ }
115
+
116
+ @mixin body-large-bold {
117
+ @include text(
118
+ $font-size-body-large,
119
+ $line-height-body-large,
120
+ $font-size-body-large-responsive,
121
+ $line-height-body-large-responsive,
122
+ $font-weight-bold
123
+ );
124
+ }
125
+
126
+ @mixin body-medium {
127
+ @include text(
128
+ $font-size-body-medium,
129
+ $line-height-body-medium,
130
+ $font-size-body-medium-responsive,
131
+ $line-height-body-medium-responsive,
132
+ $font-weight-regular
133
+ );
134
+ }
135
+
136
+ @mixin body-medium-bold {
137
+ @include text(
138
+ $font-size-body-medium,
139
+ $line-height-body-medium,
140
+ $font-size-body-medium-responsive,
141
+ $line-height-body-medium-responsive,
142
+ $font-weight-bold
143
+ );
144
+ }
145
+
146
+ @mixin body-small {
147
+ font-size: pxToRem($font-size-body-small-responsive);
148
+ line-height: pxToRem($line-height-body-small);
149
+ font-weight: $font-weight-regular;
150
+ }
151
+
152
+ @mixin body-small-bold {
153
+ font-size: pxToRem($font-size-body-small-responsive);
154
+ line-height: pxToRem($line-height-body-small);
155
+ font-weight: $font-weight-bold;
156
+ }
157
+
158
+ @mixin caption {
159
+ font-size: pxToRem($font-size-body-small-responsive);
160
+ line-height: pxToRem($line-height-body-small);
161
+ font-weight: $font-weight-regular;
162
+ }
163
+
164
+ @mixin section-title {
165
+ @include text(
166
+ $font-size-display-medium,
167
+ $line-height-display-medium,
168
+ $font-size-title-large,
169
+ $line-height-title-large,
170
+ $font-weight-extra-bold
171
+ );
172
+ color: $color-title;
173
+ }
174
+
175
+ @mixin header-subtitle-no-responsive {
176
+ font-size: pxToRem($font-size-body-large);
177
+ line-height: pxToRem($line-height-body-large);
178
+ }
179
+
180
+ @mixin header-subtitle {
181
+ font-size: pxToRem($font-size-body-large-responsive);
182
+ line-height: pxToRem($line-height-body-large-responsive);
183
+ font-weight: $font-weight-regular;
184
+ font-style: italic;
185
+
186
+ @include media-medium {
187
+ @include header-subtitle-no-responsive;
188
+ }
189
+ }
@@ -0,0 +1,82 @@
1
+ $size-base: 16;
2
+ /* FONT STYLES */
3
+
4
+ $font-size: $size-base + px;
5
+ $font-size-mobile: 14px;
6
+
7
+ $font-weight-extra-light: 200;
8
+ $font-weight-light: 300;
9
+ $font-weight-regular: 400;
10
+ $font-weight-medium: 500;
11
+ $font-weight-semi-bold: 600;
12
+ $font-weight-bold: 700;
13
+ $font-weight-extra-bold: 800;
14
+ $font-weight-black: 900;
15
+
16
+ $font-size-display-xlarge: 56;
17
+ $font-size-display-xlarge-responsive: 48;
18
+ $font-size-display-large: 48;
19
+ $font-size-display-large-responsive: 40;
20
+ $font-size-display-medium: 40;
21
+ $font-size-display-medium-responsive: 32;
22
+ $font-size-display-small: 32;
23
+ $font-size-display-small-responsive: 24;
24
+ $font-size-title-large: 24;
25
+ $font-size-title-large-responsive: 18;
26
+ $font-size-title-medium: 18;
27
+ $font-size-title-medium-responsive: 16;
28
+ $font-size-title-small: 16;
29
+ $font-size-title-small-responsive: 14;
30
+ $font-size-body-xlarge: 24;
31
+ $font-size-body-xlarge-responsive: 18;
32
+ $font-size-body-large: 18;
33
+ $font-size-body-large-responsive: 16;
34
+ $font-size-body-medium: 16;
35
+ $font-size-body-medium-responsive: 14;
36
+ $font-size-body-small: 14;
37
+ $font-size-body-small-responsive: 12;
38
+
39
+ $line-height-display-xlarge: 64;
40
+ $line-height-display-xlarge-responsive: 56;
41
+ $line-height-display-large: 56;
42
+ $line-height-display-large-responsive: 48;
43
+ $line-height-display-medium: 48;
44
+ $line-height-display-medium-responsive: 40;
45
+ $line-height-display-small: 40;
46
+ $line-height-display-small-responsive: 32;
47
+ $line-height-title-large: 32;
48
+ $line-height-title-large-responsive: 24;
49
+ $line-height-title-medium: 24;
50
+ $line-height-title-medium-responsive: 24;
51
+ $line-height-title-small: 24;
52
+ $line-height-title-small-responsive: 24;
53
+ $line-height-body-xlarge: 32;
54
+ $line-height-body-xlarge-responsive: 24;
55
+ $line-height-body-large: 24;
56
+ $line-height-body-large-responsive: 24;
57
+ $line-height-body-medium: 24;
58
+ $line-height-body-medium-responsive: 24;
59
+ $line-height-body-small: 20;
60
+
61
+ /* SIZES */
62
+
63
+ $icon-size-small: 16;
64
+ $icon-size-medium: 24;
65
+ $icon-size-large: 32;
66
+ $icon-size-xlarge: 40;
67
+
68
+ $container-max-xlarge: 1200;
69
+ $container-max-large: 960;
70
+ $container-max-medium: 720;
71
+ $container-max-small: 540;
72
+
73
+ $border-radius-small: 8;
74
+ $border-radius: 12;
75
+
76
+ /* COLORS */
77
+ $color-classic-white: #ffffff;
78
+ $color-alternative-white: #f5f7fa;
79
+ $color-default-hr: #878ca0;
80
+ $color-default-border: #dde3ed;
81
+ $color-default-shadow: #121954;
82
+ $color-default-placeholder: #afbacc;
package/ng-package.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/valtech-components",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- },
7
- "assets": [
8
- "src/lib/components/styles",
9
- "./styles"
10
- ]
11
- }
@@ -1,17 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component } from '@angular/core';
3
-
4
- @Component({
5
- selector: 'val-hello-world',
6
- standalone: true,
7
- imports: [CommonModule],
8
- template: `
9
- <p>
10
- hello-world works!
11
- </p>
12
- `,
13
- styles: ``
14
- })
15
- export class HelloWorldComponent {
16
-
17
- }
package/src/public-api.ts DELETED
@@ -1,5 +0,0 @@
1
- /*
2
- * Public API Surface of valtech-components
3
- */
4
-
5
- export * from './lib/components/hello-world/hello-world.component';
package/tsconfig.lib.json DELETED
@@ -1,14 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "./tsconfig.lib.json",
4
- "compilerOptions": {
5
- "declarationMap": false
6
- },
7
- "angularCompilerOptions": {
8
- "compilationMode": "partial"
9
- }
10
- }
@@ -1,14 +0,0 @@
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
- }