valtech-components 2.0.8 → 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 (43) 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 +15 -2
  17. package/fesm2022/valtech-components.mjs +514 -8
  18. package/fesm2022/valtech-components.mjs.map +1 -1
  19. package/lib/components/atoms/button/button.component.d.ts +20 -0
  20. package/lib/components/atoms/button/factory.d.ts +71 -0
  21. package/lib/components/atoms/button/types.d.ts +22 -0
  22. package/lib/components/types.d.ts +78 -0
  23. package/lib/services/download.service.d.ts +8 -0
  24. package/lib/services/lang-provider/components/lang-settings.d.ts +3 -0
  25. package/lib/services/lang-provider/components/theme-settings.d.ts +3 -0
  26. package/lib/services/lang-provider/content.d.ts +6 -0
  27. package/lib/services/lang-provider/lang-provider.service.d.ts +17 -0
  28. package/lib/services/lang-provider/types.d.ts +15 -0
  29. package/lib/services/local-storage.service.d.ts +6 -0
  30. package/lib/services/theme.service.d.ts +27 -0
  31. package/lib/services/types.d.ts +6 -0
  32. package/lib/shared/constants/storage.d.ts +2 -0
  33. package/lib/shared/utils/dom.d.ts +3 -0
  34. package/package.json +1 -1
  35. package/public-api.d.ts +11 -1
  36. package/src/lib/components/styles/functions.scss +20 -0
  37. package/src/lib/components/styles/media-queries.scss +66 -0
  38. package/src/lib/components/styles/mixins.scss +66 -0
  39. package/src/lib/components/styles/overrides.scss +158 -0
  40. package/src/lib/components/styles/typography.scss +189 -0
  41. package/src/lib/components/styles/variables.scss +82 -0
  42. package/esm2022/lib/components/hello-world/hello-world.component.mjs +0 -20
  43. package/lib/components/hello-world/hello-world.component.d.ts +0 -5
@@ -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;
@@ -1,20 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export class HelloWorldComponent {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HelloWorldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: HelloWorldComponent, isStandalone: true, selector: "val-hello-world", ngImport: i0, template: `
7
- <p>
8
- hello-world works!
9
- </p>
10
- `, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HelloWorldComponent, decorators: [{
13
- type: Component,
14
- args: [{ selector: 'val-hello-world', standalone: true, imports: [CommonModule], template: `
15
- <p>
16
- hello-world works!
17
- </p>
18
- ` }]
19
- }] });
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVsbG8td29ybGQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGVjaC1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9oZWxsby13b3JsZC9oZWxsby13b3JsZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBYTFDLE1BQU0sT0FBTyxtQkFBbUI7K0dBQW5CLG1CQUFtQjttR0FBbkIsbUJBQW1CLDJFQVBwQjs7OztHQUlULHlFQUxTLFlBQVk7OzRGQVFYLG1CQUFtQjtrQkFYL0IsU0FBUzsrQkFDRSxpQkFBaUIsY0FDZixJQUFJLFdBQ1AsQ0FBQyxZQUFZLENBQUMsWUFDYjs7OztHQUlUIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICd2YWwtaGVsbG8td29ybGQnLFxuICBzdGFuZGFsb25lOiB0cnVlLFxuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbiAgdGVtcGxhdGU6IGBcbiAgICA8cD5cbiAgICAgIGhlbGxvLXdvcmxkIHdvcmtzIVxuICAgIDwvcD5cbiAgYCxcbiAgc3R5bGVzOiBgYFxufSlcbmV4cG9ydCBjbGFzcyBIZWxsb1dvcmxkQ29tcG9uZW50IHtcblxufVxuIl19
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class HelloWorldComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<HelloWorldComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<HelloWorldComponent, "val-hello-world", never, {}, {}, never, never, true, never>;
5
- }