valtech-components 0.0.7 → 0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/solucionesvaltech/valtech-workspace/tree/main/projects/valtech-components"
@@ -0,0 +1,20 @@
1
+ @import './variables.scss';
2
+
3
+ $base-size: $size-base;
4
+
5
+ @function pxToRem($target, $context: $base-size) {
6
+ @return calc($target / $context) * 1rem;
7
+ }
8
+
9
+ @function pxToRemGroup($top, $right, $bottom, $left, $context: $base-size) {
10
+ $top: calc($top / $context) * 1rem;
11
+ $right: calc($right / $context) * 1rem;
12
+ $bottom: calc($bottom / $context) * 1rem;
13
+ $left: calc($left / $context) * 1rem;
14
+
15
+ @return ($top $right $bottom $left);
16
+ }
17
+
18
+ @function addColorOpacity($hex, $opacity: 1) {
19
+ @return rgba($hex, $opacity);
20
+ }
@@ -0,0 +1,66 @@
1
+ @mixin media-xsmall {
2
+ @media (min-width: 425px) {
3
+ @content;
4
+ }
5
+ }
6
+
7
+ @mixin media-small {
8
+ @media (min-width: 576px) {
9
+ @content;
10
+ }
11
+ }
12
+
13
+ @mixin media-medium {
14
+ @media (min-width: 768px) {
15
+ @content;
16
+ }
17
+ }
18
+
19
+ @mixin media-large {
20
+ @media (min-width: 992px) {
21
+ @content;
22
+ }
23
+ }
24
+
25
+ @mixin media-xlarge {
26
+ @media (min-width: 1200px) {
27
+ @content;
28
+ }
29
+ }
30
+
31
+ /* Max */
32
+ @mixin max-media-xsmall {
33
+ @media (max-width: 425px) {
34
+ @content;
35
+ }
36
+ }
37
+
38
+ @mixin max-media-small {
39
+ @media (max-width: 576px) {
40
+ @content;
41
+ }
42
+ }
43
+
44
+ @mixin max-media-medium {
45
+ @media (max-width: 768px) {
46
+ @content;
47
+ }
48
+ }
49
+
50
+ @mixin max-media-large {
51
+ @media (max-width: 992px) {
52
+ @content;
53
+ }
54
+ }
55
+
56
+ @mixin max-media-xlarge {
57
+ @media (max-width: 1200px) {
58
+ @content;
59
+ }
60
+ }
61
+
62
+ @mixin dark {
63
+ @media (prefers-color-scheme: dark) {
64
+ @content;
65
+ }
66
+ }
@@ -0,0 +1,72 @@
1
+ @import "./media-queries.scss";
2
+ @import "./variables.scss";
3
+ @import "./functions.scss";
4
+ @import "./typography.scss";
5
+
6
+ @mixin box-shadow-small {
7
+ box-shadow: 0 pxToRem(4) pxToRem(12)
8
+ addColorOpacity($color-default-shadow, 0.07);
9
+ }
10
+
11
+ @mixin box-shadow-small-top {
12
+ box-shadow: 0 pxToRem(-4) pxToRem(12)
13
+ addColorOpacity($color-default-shadow, 0.07);
14
+ }
15
+
16
+ @mixin box-shadow-medium {
17
+ box-shadow: pxToRem(3) pxToRem(10) pxToRem(8)
18
+ addColorOpacity($color-default-shadow, 0.1);
19
+ }
20
+
21
+ @mixin box-shadow-medium-bottom {
22
+ box-shadow: pxToRem(-3) pxToRem(10) pxToRem(8)
23
+ addColorOpacity($color-default-shadow, 0.1);
24
+ }
25
+
26
+ @mixin box-shadow-large {
27
+ box-shadow: 0 pxToRem(10) pxToRem(16)
28
+ addColorOpacity($color-default-shadow, 0.08);
29
+ }
30
+
31
+ @mixin box-shadow-large-top {
32
+ box-shadow: 0 pxToRem(-10) pxToRem(16)
33
+ addColorOpacity($color-default-shadow, 0.07);
34
+ }
35
+
36
+ @mixin transform-translateY($value) {
37
+ transform: translateY($value);
38
+ -webkit-transform: translateY($value);
39
+ -moz-transform: translateY($value);
40
+ -ms-transform: translateY($value);
41
+ -o-transform: translateY($value);
42
+ }
43
+
44
+ @mixin transform-translate-y-3d($value) {
45
+ -webkit-transform: translate3d(0, $value, 0);
46
+ -moz-transform: translate3d(0, $value, 0);
47
+ -o-transform: translate3d(0, $value, 0);
48
+ -ms-transform: translate3d(0, $value, 0);
49
+ transform: translate3d(0, $value, 0);
50
+ }
51
+
52
+ @mixin fade-in-translateY {
53
+ @keyframes fadeInTranslateY {
54
+ @content;
55
+ }
56
+
57
+ @-moz-keyframes fadeInTranslateY {
58
+ @content;
59
+ }
60
+
61
+ @-webkit-keyframes fadeInTranslateY {
62
+ @content;
63
+ }
64
+
65
+ @-o-keyframes fadeInTranslateY {
66
+ @content;
67
+ }
68
+
69
+ @-ms-keyframes fadeInTranslateY {
70
+ @content;
71
+ }
72
+ }
@@ -0,0 +1,156 @@
1
+ @import './variables.scss';
2
+ @import './functions.scss';
3
+ @import './mixins.scss';
4
+
5
+ h1,
6
+ h2,
7
+ h3,
8
+ h4,
9
+ h5,
10
+ h6,
11
+ p {
12
+ margin: 0;
13
+ padding: 0;
14
+ }
15
+
16
+ form {
17
+ width: 100%;
18
+ }
19
+
20
+ /** ionic components **/
21
+
22
+ ion-grid,
23
+ ion-col {
24
+ padding: 0;
25
+ }
26
+
27
+ ion-button {
28
+ margin: 0;
29
+ font-weight: $font-weight-bold;
30
+ }
31
+
32
+ ion-card {
33
+ border-radius: pxToRem(8);
34
+ margin: pxToRem(16) auto;
35
+ }
36
+
37
+ input {
38
+ border: pxToRem(1) solid var(--ion-color-medium) !important;
39
+ border-radius: pxToRem($border-radius-small) !important;
40
+
41
+ &:focus {
42
+ border: pxToRem(2) solid var(--ion-color-primary) !important;
43
+ }
44
+
45
+ padding: 10px !important;
46
+ }
47
+
48
+ input,
49
+ ion-datetime,
50
+ ion-select {
51
+ margin-top: pxToRem(8);
52
+ padding-left: pxToRem(10) !important;
53
+ border: pxToRem(1) solid var(--ion-color-medium) !important;
54
+ border-radius: pxToRem($border-radius-small) !important;
55
+
56
+ &:focus {
57
+ border: pxToRem(2) solid var(--ion-color-primary) !important;
58
+ }
59
+ }
60
+
61
+ ion-label {
62
+ text-align: start;
63
+ font-weight: $font-weight-bold;
64
+ }
65
+
66
+ ion-toolbar {
67
+ --background: transparent;
68
+ }
69
+
70
+ ion-input {
71
+ margin-top: 0px;
72
+ }
73
+
74
+ ion-select {
75
+ padding-right: pxToRem(10) !important;
76
+
77
+ &.select-expanded {
78
+ border: pxToRem(2) solid var(--ion-color-primary) !important;
79
+ }
80
+ }
81
+
82
+ ion-select {
83
+ padding-right: pxToRem(10) !important;
84
+
85
+ &.select-expanded {
86
+ border: pxToRem(2) solid var(--ion-color-primary) !important;
87
+ }
88
+ }
89
+
90
+ ion-alert {
91
+ --min-width: 80% !important;
92
+
93
+ @include media-medium {
94
+ --min-width: 400px !important;
95
+ }
96
+
97
+ .alert-radio-label {
98
+ font-weight: $font-weight-bold;
99
+ }
100
+
101
+ ::-webkit-scrollbar {
102
+ -webkit-appearance: none;
103
+ width: 7px;
104
+ }
105
+
106
+ ::-webkit-scrollbar-thumb {
107
+ border-radius: 4px;
108
+ background-color: rgba(0, 0, 0, 0.5);
109
+ box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
110
+ -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
111
+ }
112
+ }
113
+
114
+ ion-list {
115
+ width: 98% !important;
116
+ }
117
+
118
+ ion-label {
119
+ text-align: start;
120
+ }
121
+
122
+ ion-note {
123
+ text-align: end !important;
124
+ }
125
+
126
+ ion-toolbar {
127
+ --background: transparent;
128
+ padding: pxToRem(4) pxToRem(8);
129
+ }
130
+
131
+ ion-searchbar {
132
+ --cancel-button-color: var(--ion-color-dark);
133
+ --background: var(--ion-color-light);
134
+ padding: 0 6px !important;
135
+
136
+ input {
137
+ border: none !important;
138
+ }
139
+ }
140
+
141
+ ion-modal .date-picker-custom {
142
+ max-width: 340px;
143
+ max-height: 390px;
144
+
145
+ .ion-page {
146
+ justify-content: flex-start !important;
147
+ }
148
+ }
149
+
150
+ .img-black {
151
+ filter: invert(0);
152
+
153
+ @media (prefers-color-scheme: dark) {
154
+ filter: invert(1);
155
+ }
156
+ }
@@ -0,0 +1,195 @@
1
+ @import "./variables.scss";
2
+ @import "./functions.scss";
3
+ @import "./media-queries.scss";
4
+
5
+ @mixin text(
6
+ $fontSize,
7
+ $lineHeight,
8
+ $fontSizeMobile,
9
+ $lineHeightMobile,
10
+ $fontWeight
11
+ ) {
12
+ font-size: pxToRem($fontSizeMobile);
13
+ line-height: pxToRem($lineHeightMobile);
14
+ font-weight: $fontWeight;
15
+
16
+ @include media-medium {
17
+ font-size: pxToRem($fontSize);
18
+ line-height: pxToRem($lineHeight);
19
+ }
20
+ }
21
+
22
+ @mixin display-xlarge {
23
+ @include text(
24
+ $font-size-display-xlarge,
25
+ $line-height-display-xlarge,
26
+ $font-size-display-xlarge-responsive,
27
+ $line-height-display-xlarge-responsive,
28
+ $font-weight-extra-bold
29
+ );
30
+ }
31
+
32
+ @mixin display-large {
33
+ @include text(
34
+ $font-size-display-large,
35
+ $line-height-display-large,
36
+ $font-size-display-large-responsive,
37
+ $line-height-display-large-responsive,
38
+ $font-weight-extra-bold
39
+ );
40
+ }
41
+
42
+ @mixin display-medium {
43
+ @include text(
44
+ $font-size-display-medium,
45
+ $line-height-display-medium,
46
+ $font-size-display-medium-responsive,
47
+ $line-height-display-medium-responsive,
48
+ $font-weight-extra-bold
49
+ );
50
+ }
51
+
52
+ @mixin display-small {
53
+ @include text(
54
+ $font-size-display-small,
55
+ $line-height-display-small,
56
+ $font-size-display-small-responsive,
57
+ $line-height-display-small-responsive,
58
+ $font-weight-extra-bold
59
+ );
60
+ }
61
+
62
+ @mixin title-large {
63
+ @include text(
64
+ $font-size-title-large,
65
+ $line-height-title-large,
66
+ $font-size-title-large-responsive,
67
+ $line-height-title-large-responsive,
68
+ $font-weight-bold
69
+ );
70
+ }
71
+
72
+ @mixin title-medium {
73
+ @include text(
74
+ $font-size-title-medium,
75
+ $line-height-title-medium,
76
+ $font-size-title-medium-responsive,
77
+ $line-height-title-medium-responsive,
78
+ $font-weight-bold
79
+ );
80
+ }
81
+
82
+ @mixin title-small {
83
+ @include text(
84
+ $font-size-title-small,
85
+ $line-height-title-small,
86
+ $font-size-title-small-responsive,
87
+ $line-height-title-small-responsive,
88
+ $font-weight-bold
89
+ );
90
+ }
91
+
92
+ @mixin body-xlarge {
93
+ @include text(
94
+ $font-size-body-xlarge,
95
+ $line-height-body-xlarge,
96
+ $font-size-body-xlarge-responsive,
97
+ $line-height-body-xlarge-responsive,
98
+ $font-weight-regular
99
+ );
100
+ }
101
+
102
+ @mixin body-xlarge-bold {
103
+ @include text(
104
+ $font-size-body-xlarge,
105
+ $line-height-body-xlarge,
106
+ $font-size-body-xlarge-responsive,
107
+ $line-height-body-xlarge-responsive,
108
+ $font-weight-bold
109
+ );
110
+ }
111
+
112
+ @mixin body-large {
113
+ @include text(
114
+ $font-size-body-large,
115
+ $line-height-body-large,
116
+ $font-size-body-large-responsive,
117
+ $line-height-body-large-responsive,
118
+ $font-weight-regular
119
+ );
120
+ }
121
+
122
+ @mixin body-large-bold {
123
+ @include text(
124
+ $font-size-body-large,
125
+ $line-height-body-large,
126
+ $font-size-body-large-responsive,
127
+ $line-height-body-large-responsive,
128
+ $font-weight-bold
129
+ );
130
+ }
131
+
132
+ @mixin body-medium {
133
+ @include text(
134
+ $font-size-body-medium,
135
+ $line-height-body-medium,
136
+ $font-size-body-medium-responsive,
137
+ $line-height-body-medium-responsive,
138
+ $font-weight-regular
139
+ );
140
+ }
141
+
142
+ @mixin body-medium-bold {
143
+ @include text(
144
+ $font-size-body-medium,
145
+ $line-height-body-medium,
146
+ $font-size-body-medium-responsive,
147
+ $line-height-body-medium-responsive,
148
+ $font-weight-bold
149
+ );
150
+ }
151
+
152
+ @mixin body-small {
153
+ font-size: pxToRem($font-size-body-small-responsive);
154
+ line-height: pxToRem($line-height-body-small);
155
+ font-weight: $font-weight-regular;
156
+ }
157
+
158
+ @mixin body-small-bold {
159
+ font-size: pxToRem($font-size-body-small-responsive);
160
+ line-height: pxToRem($line-height-body-small);
161
+ font-weight: $font-weight-bold;
162
+ }
163
+
164
+ @mixin caption {
165
+ font-size: pxToRem($font-size-body-small-responsive);
166
+ line-height: pxToRem($line-height-body-small);
167
+ font-weight: $font-weight-regular;
168
+ }
169
+
170
+ @mixin section-title {
171
+ @include text(
172
+ $font-size-display-medium,
173
+ $line-height-display-medium,
174
+ $font-size-title-large,
175
+ $line-height-title-large,
176
+ $font-weight-extra-bold
177
+ );
178
+ color: $color-title;
179
+ }
180
+
181
+ @mixin header-subtitle-no-responsive {
182
+ font-size: pxToRem($font-size-body-large);
183
+ line-height: pxToRem($line-height-body-large);
184
+ }
185
+
186
+ @mixin header-subtitle {
187
+ font-size: pxToRem($font-size-body-large-responsive);
188
+ line-height: pxToRem($line-height-body-large-responsive);
189
+ font-weight: $font-weight-regular;
190
+ font-style: italic;
191
+
192
+ @include media-medium {
193
+ @include header-subtitle-no-responsive;
194
+ }
195
+ }
@@ -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: 16;
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-bg: #ffffff;
78
+ $color-alternative-bg: #f5f7fa;
79
+ $color-default-hr: #878ca0;
80
+ $color-default-border: #dde3ed;
81
+ $color-default-shadow: #121954;
82
+ $color-default-placeholder: #afbacc;
@@ -0,0 +1 @@
1
+ @import '../src/lib/components/styles/overrides.scss';
@@ -0,0 +1,5 @@
1
+ @import '../src/lib/components/styles/media-queries.scss';
2
+ @import '../src/lib/components/styles/variables.scss';
3
+ @import '../src/lib/components/styles/functions.scss';
4
+ @import '../src/lib/components/styles/typography.scss';
5
+ @import '../src/lib/components/styles/mixins.scss';