@bildvitta/quasar-ui-asteroid 3.0.0-beta.3 → 3.0.0-beta.4
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/dist/asteroid.cjs.css +1 -1
- package/dist/asteroid.cjs.js +2 -2
- package/dist/asteroid.cjs.min.js +2 -2
- package/dist/asteroid.esm.css +1 -1
- package/dist/asteroid.esm.js +2 -2
- package/dist/asteroid.esm.min.js +2 -2
- package/dist/asteroid.umd.css +1 -1
- package/dist/asteroid.umd.js +2 -2
- package/dist/asteroid.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/css/components/base.scss +3 -0
- package/src/css/components/field.scss +4 -0
- package/src/css/components/index.scss +4 -0
- package/src/css/components/radio.scss +3 -0
- package/src/css/components/tabs.scss +3 -0
- package/src/css/mixins/index.scss +1 -0
- package/src/css/{set-brand.scss → mixins/set-brand.scss} +0 -0
- package/src/css/{background.scss → utils/background.scss} +0 -0
- package/src/css/{border-radius.scss → utils/border-radius.scss} +0 -0
- package/src/css/{border.scss → utils/border.scss} +0 -0
- package/src/css/{container.scss → utils/container.scss} +0 -0
- package/src/css/{fonts.scss → utils/fonts.scss} +0 -0
- package/src/css/utils/index.scss +10 -0
- package/src/css/{line-height.scss → utils/line-height.scss} +0 -0
- package/src/css/{opacity.scss → utils/opacity.scss} +0 -0
- package/src/css/{shadow.scss → utils/shadow.scss} +0 -0
- package/src/css/{text.scss → utils/text.scss} +0 -0
- package/src/css/{unset.scss → utils/unset.scss} +0 -0
- package/src/css/variables/button.scss +3 -0
- package/src/css/variables/index.scss +2 -0
- package/src/css/variables/typography.scss +139 -0
- package/src/index.scss +10 -13
- package/src/css/design-system/button.scss +0 -6
- package/src/css/design-system/index.scss +0 -2
- package/src/css/design-system/typography.scss +0 -91
- package/src/css/design-system.scss +0 -18
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './set-brand';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// Definições seguindo:
|
|
2
|
+
// https://www.figma.com/file/JfDthOZoULYMlRJM2IQ8Oi/Design-System?node-id=665%3A163
|
|
3
|
+
|
|
4
|
+
// Quasar:
|
|
5
|
+
// https://github.com/quasarframework/quasar/blob/dev/ui/src/css/variables.sass
|
|
6
|
+
// https://github.com/quasarframework/quasar/blob/dev/ui/src/css/core/typography.sass
|
|
7
|
+
|
|
8
|
+
@use 'sass:map';
|
|
9
|
+
|
|
10
|
+
// headings
|
|
11
|
+
$h1: (
|
|
12
|
+
size: 6rem,
|
|
13
|
+
line-height: 6rem,
|
|
14
|
+
letter-spacing: 0,
|
|
15
|
+
weight: 800,
|
|
16
|
+
margin: 0
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
$h2: (
|
|
20
|
+
size: 3.75rem,
|
|
21
|
+
line-height: 3.75rem,
|
|
22
|
+
letter-spacing: 0,
|
|
23
|
+
weight: 700,
|
|
24
|
+
margin: 0
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
$h3: (
|
|
28
|
+
size: 3rem,
|
|
29
|
+
line-height: 2.5rem,
|
|
30
|
+
letter-spacing: 0,
|
|
31
|
+
weight: 600,
|
|
32
|
+
margin: 0
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
$h4: (
|
|
36
|
+
size: 2.125rem,
|
|
37
|
+
line-height: 2.5rem,
|
|
38
|
+
letter-spacing: 0,
|
|
39
|
+
weight: 800,
|
|
40
|
+
margin: 0
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
$h5: (
|
|
44
|
+
size: 1.5rem,
|
|
45
|
+
line-height: 2rem,
|
|
46
|
+
letter-spacing: 0,
|
|
47
|
+
weight: 700,
|
|
48
|
+
margin: 0
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
$h6: (
|
|
52
|
+
size: 1.25rem,
|
|
53
|
+
line-height: 2rem,
|
|
54
|
+
letter-spacing: 0,
|
|
55
|
+
weight: 600,
|
|
56
|
+
margin: 0
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
// subtitles
|
|
60
|
+
$subtitle1: (
|
|
61
|
+
size: 1rem,
|
|
62
|
+
line-height: 1.75rem,
|
|
63
|
+
letter-spacing: 0,
|
|
64
|
+
weight: 700
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
$subtitle2: (
|
|
68
|
+
size: 0.875rem,
|
|
69
|
+
line-height: 1.375rem,
|
|
70
|
+
letter-spacing: 0,
|
|
71
|
+
weight: 600
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
// body
|
|
75
|
+
$body1: (
|
|
76
|
+
size: 1rem,
|
|
77
|
+
line-height: 1.5rem,
|
|
78
|
+
letter-spacing: 0,
|
|
79
|
+
weight: 500
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
$body2: (
|
|
83
|
+
size: 0.875rem,
|
|
84
|
+
line-height: 1.25rem,
|
|
85
|
+
letter-spacing: 0,
|
|
86
|
+
weight: 400
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
// overline
|
|
90
|
+
$overline: (
|
|
91
|
+
size: 0.75rem,
|
|
92
|
+
line-height: 2rem,
|
|
93
|
+
letter-spacing: 0.25rem,
|
|
94
|
+
weight: 600
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
// caption
|
|
98
|
+
$caption: (
|
|
99
|
+
size: 0.75rem,
|
|
100
|
+
line-height: 1.25rem,
|
|
101
|
+
letter-spacing: 0,
|
|
102
|
+
weight: 700
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
$headings: (
|
|
106
|
+
'h1': $h1,
|
|
107
|
+
'h2': $h2,
|
|
108
|
+
'h3': $h3,
|
|
109
|
+
'h4': $h4,
|
|
110
|
+
'h5': $h5,
|
|
111
|
+
'h6': $h6,
|
|
112
|
+
'subtitle1': $subtitle1,
|
|
113
|
+
'subtitle2': $subtitle2,
|
|
114
|
+
'body1': $body1,
|
|
115
|
+
'body2': $body2,
|
|
116
|
+
'overline': $overline,
|
|
117
|
+
'caption': $caption
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
// adiciona tags com mesmo estilo do css
|
|
121
|
+
$h-tags: (
|
|
122
|
+
h1: map.get($headings, 'h1'),
|
|
123
|
+
h2: map.get($headings, 'h2'),
|
|
124
|
+
h3: map.get($headings, 'h3'),
|
|
125
|
+
h4: map.get($headings, 'h4'),
|
|
126
|
+
h5: map.get($headings, 'h5'),
|
|
127
|
+
h6: map.get($headings, 'h6')
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
// sobrescreve as tags do css para adicionar "margin"
|
|
131
|
+
@each $heading, $value in $h-tags {
|
|
132
|
+
#{$heading} {
|
|
133
|
+
font-size: map.get($value, 'size');
|
|
134
|
+
font-weight: map.get($value, 'weight');
|
|
135
|
+
letter-spacing: map.get($value, 'letter-spacing');
|
|
136
|
+
line-height: map.get($value, 'line-height');
|
|
137
|
+
margin: map.get($value, 'margin');
|
|
138
|
+
}
|
|
139
|
+
}
|
package/src/index.scss
CHANGED
|
@@ -15,17 +15,14 @@ $secondary-contrast: var(--q-secondary-contrast);
|
|
|
15
15
|
$background-color: var(--qas-background-color);
|
|
16
16
|
$generic-border-radius: var(--qas-generic-border-radius);
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
@import './css/
|
|
20
|
-
@import './css/border-radius';
|
|
21
|
-
@import './css/container';
|
|
22
|
-
@import './css/fonts';
|
|
23
|
-
@import './css/line-height';
|
|
24
|
-
@import './css/opacity';
|
|
25
|
-
@import './css/shadow';
|
|
26
|
-
@import './css/text';
|
|
27
|
-
@import './css/unset';
|
|
18
|
+
// variables
|
|
19
|
+
@import './css/variables/index';
|
|
28
20
|
|
|
29
|
-
//
|
|
30
|
-
@import './css/
|
|
31
|
-
|
|
21
|
+
// components
|
|
22
|
+
@import './css/components/index';
|
|
23
|
+
|
|
24
|
+
// utils
|
|
25
|
+
@import './css/utils/index';
|
|
26
|
+
|
|
27
|
+
// mixins
|
|
28
|
+
@import './css/mixins/index'
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
// Definições seguindo:
|
|
2
|
-
// https://www.figma.com/file/JfDthOZoULYMlRJM2IQ8Oi/Design-System?node-id=665%3A163
|
|
3
|
-
|
|
4
|
-
// headings
|
|
5
|
-
$h1: (
|
|
6
|
-
size: 6rem,
|
|
7
|
-
line-height: 6rem,
|
|
8
|
-
letter-spacing: 0,
|
|
9
|
-
weight: 800
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
$h2: (
|
|
13
|
-
size: 3.75rem,
|
|
14
|
-
line-height: 3.75rem,
|
|
15
|
-
letter-spacing: 0,
|
|
16
|
-
weight: 700
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
$h3: (
|
|
20
|
-
size: 3rem,
|
|
21
|
-
line-height: 3.125rem,
|
|
22
|
-
letter-spacing: 0,
|
|
23
|
-
weight: 600
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
$h4: (
|
|
27
|
-
size: 2.125rem,
|
|
28
|
-
line-height: 2.5rem,
|
|
29
|
-
letter-spacing: 0,
|
|
30
|
-
weight: 800
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
$h5: (
|
|
34
|
-
size: 2rem,
|
|
35
|
-
line-height: 2.5rem,
|
|
36
|
-
letter-spacing: 0,
|
|
37
|
-
weight: 700
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
$h6: (
|
|
41
|
-
size: 1.25rem,
|
|
42
|
-
line-height: 2rem,
|
|
43
|
-
letter-spacing: 0,
|
|
44
|
-
weight: 600
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
// subtitles
|
|
48
|
-
$subtitle1: (
|
|
49
|
-
size: 1rem,
|
|
50
|
-
line-height: 1.75rem,
|
|
51
|
-
letter-spacing: 0,
|
|
52
|
-
weight: 700
|
|
53
|
-
);
|
|
54
|
-
|
|
55
|
-
$subtitle2: (
|
|
56
|
-
size: 0.875rem,
|
|
57
|
-
line-height: 1.375rem,
|
|
58
|
-
letter-spacing: 0,
|
|
59
|
-
weight: 600
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
// body
|
|
63
|
-
$body1: (
|
|
64
|
-
size: 1rem,
|
|
65
|
-
line-height: 1.5rem,
|
|
66
|
-
letter-spacing: 0,
|
|
67
|
-
weight: 500
|
|
68
|
-
);
|
|
69
|
-
|
|
70
|
-
$body2: (
|
|
71
|
-
size: 0.875rem,
|
|
72
|
-
line-height: 1.25rem,
|
|
73
|
-
letter-spacing: 0,
|
|
74
|
-
weight: 400
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
// overline
|
|
78
|
-
$overline: (
|
|
79
|
-
size: 0.75rem,
|
|
80
|
-
line-height: 2rem,
|
|
81
|
-
letter-spacing: 0.25rem,
|
|
82
|
-
weight: 600
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
// caption
|
|
86
|
-
$caption: (
|
|
87
|
-
size: 0.75rem,
|
|
88
|
-
line-height: 1.25rem,
|
|
89
|
-
letter-spacing: 0,
|
|
90
|
-
weight: 700
|
|
91
|
-
);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
background-color: $background-color;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
// Fields
|
|
6
|
-
.q-field--outlined .q-field__inner {
|
|
7
|
-
background-color: white;
|
|
8
|
-
border-radius: $generic-border-radius;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.q-radio__inner::before {
|
|
12
|
-
color: $primary;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Tabs
|
|
16
|
-
.q-tabs__arrow {
|
|
17
|
-
color: $primary;
|
|
18
|
-
}
|