@solfacil/girassol 0.2.1 → 0.2.5
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/components.d.ts +3 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +962 -708
- package/dist/girassol.umd.js +6 -5
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/miscs.d.ts +124 -0
- package/dist/theme/solfacil/spacing.d.ts +58 -44
- package/dist/types/components/forms/button/Button.vue.d.ts +8 -4
- package/dist/types/components/forms/button/ButtonDestructive.vue.d.ts +73 -0
- package/dist/types/components/forms/button/index.d.ts +2 -1
- package/dist/types/components/forms/textarea/Textarea.vue.d.ts +4 -4
- package/dist/types/components/loader/CircleLoader.vue.d.ts +86 -0
- package/dist/types/components/menu/Menu.vue.d.ts +112 -0
- package/dist/types/components/menu/index.d.ts +2 -0
- package/dist/types/components/menu/menu.spec.d.ts +1 -0
- package/dist/types/components/menu-item/MenuItemLink.vue.d.ts +87 -0
- package/dist/types/components/menu-item/index.d.ts +2 -0
- package/dist/types/composables/use-navigate/index.d.ts +20 -0
- package/dist/types/composables/use-navigate/types.d.ts +19 -0
- package/dist/types/composables/use-toast/Toast.vue.d.ts +4 -4
- package/dist/types/index.d.ts +388 -29
- package/package.json +1 -1
- package/theme/safelist.ts +2 -0
- package/theme/solfacil/miscs.ts +12 -1
- package/theme/solfacil/spacing.ts +27 -50
- package/theme/solfacil/utilities.ts +59 -97
- package/windi.config.ts +3 -1
|
@@ -1,59 +1,36 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export const sizings = {
|
|
2
|
+
'quark': '0.25rem',
|
|
3
|
+
'nano': '0.5rem',
|
|
4
|
+
'micro': '0.75rem',
|
|
5
|
+
'3xs': '1rem',
|
|
6
|
+
'2xs': '1.5rem',
|
|
7
|
+
'xs': '2rem',
|
|
8
|
+
|
|
9
|
+
'sm': '2.5rem',
|
|
10
|
+
'md': '3rem',
|
|
11
|
+
'lg': '3.5rem',
|
|
12
|
+
|
|
13
|
+
'xl': '4rem',
|
|
14
|
+
'2xl': '4.5rem',
|
|
15
|
+
'3xl': '5rem',
|
|
16
|
+
'mega': '6rem',
|
|
17
|
+
'2mega': '7.5rem',
|
|
18
|
+
'3mega': '10rem',
|
|
19
|
+
'giga': '12.5rem',
|
|
20
|
+
}
|
|
8
21
|
|
|
9
|
-
'sm': '2rem',
|
|
10
|
-
'md': '2.5rem',
|
|
11
|
-
'lg': '3rem',
|
|
12
|
-
|
|
13
|
-
'xl': '4rem',
|
|
14
|
-
'2xl': '5rem',
|
|
15
|
-
'3xl': '6rem',
|
|
16
|
-
'mega': '7.5rem',
|
|
17
|
-
'huge': '10rem',
|
|
18
|
-
'giga': '12.5rem',
|
|
19
|
-
},
|
|
20
22
|
|
|
23
|
+
export default {
|
|
21
24
|
padding: {
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
|
|
25
|
-
'2xs': '1rem',
|
|
26
|
-
'xs': '1.5rem',
|
|
27
|
-
|
|
28
|
-
'sm': '2rem',
|
|
29
|
-
'md': '2.5rem',
|
|
30
|
-
'lg': '3rem',
|
|
31
|
-
|
|
32
|
-
'xl': '4rem',
|
|
33
|
-
'2xl': '5rem',
|
|
34
|
-
'3xl': '6rem',
|
|
35
|
-
'mega': '7.5rem',
|
|
36
|
-
'huge': '10rem',
|
|
37
|
-
'giga': '12.5rem',
|
|
25
|
+
auto: 'auto',
|
|
26
|
+
'0': '0',
|
|
27
|
+
sizings,
|
|
38
28
|
},
|
|
39
29
|
|
|
40
30
|
margin: {
|
|
41
|
-
|
|
42
|
-
'
|
|
43
|
-
|
|
44
|
-
'2xs': '1rem',
|
|
45
|
-
'xs': '1.5rem',
|
|
46
|
-
|
|
47
|
-
'sm': '2rem',
|
|
48
|
-
'md': '2.5rem',
|
|
49
|
-
'lg': '3rem',
|
|
50
|
-
|
|
51
|
-
'xl': '4rem',
|
|
52
|
-
'2xl': '5rem',
|
|
53
|
-
'3xl': '6rem',
|
|
54
|
-
'mega': '7.5rem',
|
|
55
|
-
'huge': '10rem',
|
|
56
|
-
'giga': '12.5rem',
|
|
31
|
+
auto: 'auto',
|
|
32
|
+
'0': '0',
|
|
33
|
+
sizings,
|
|
57
34
|
},
|
|
58
35
|
}
|
|
59
36
|
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import plugin from 'windicss/plugin'
|
|
2
2
|
|
|
3
|
-
export const componentTypos = plugin(({
|
|
3
|
+
export const componentTypos = plugin(({ addUtilities, theme }) => {
|
|
4
4
|
const wrapperThemeType = (path: string) => `${theme(path)}`
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
const displayCommons = {
|
|
8
|
+
fontFamily: wrapperThemeType('fontFamily.highlight'),
|
|
9
|
+
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
10
|
+
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
11
|
+
fontWeight: wrapperThemeType('fontWeight.medium'),
|
|
12
|
+
}
|
|
7
13
|
const display = {
|
|
8
14
|
'.fonts-display-large': {
|
|
15
|
+
...displayCommons,
|
|
9
16
|
fontSize: wrapperThemeType('fontSize.3xl'),
|
|
10
|
-
fontFamily: wrapperThemeType('fontFamily.highlight'),
|
|
11
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
12
|
-
fontWeight: wrapperThemeType('fontWeight.medium'),
|
|
13
|
-
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
14
|
-
|
|
15
17
|
'@media (min-width: 1024px)': {
|
|
16
18
|
fontSize: wrapperThemeType('fontSize.mega'),
|
|
17
19
|
},
|
|
@@ -19,24 +21,16 @@ export const componentTypos = plugin(({ addComponents, theme }) => {
|
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
'.fonts-display-medium': {
|
|
22
|
-
|
|
24
|
+
...displayCommons,
|
|
23
25
|
fontSize: wrapperThemeType('fontSize.2xl'),
|
|
24
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
25
|
-
fontWeight: wrapperThemeType('fontWeight.medium'),
|
|
26
|
-
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
27
|
-
|
|
28
26
|
'@media (min-width: 1024px)': {
|
|
29
27
|
fontSize: wrapperThemeType('fontSize.huge'),
|
|
30
28
|
},
|
|
31
29
|
},
|
|
32
30
|
|
|
33
31
|
'.fonts-display-small': {
|
|
34
|
-
|
|
32
|
+
...displayCommons,
|
|
35
33
|
fontSize: wrapperThemeType('fontSize.xl'),
|
|
36
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
37
|
-
fontWeight: wrapperThemeType('fontWeight.medium'),
|
|
38
|
-
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
39
|
-
|
|
40
34
|
'@media (min-width: 1024px)': {
|
|
41
35
|
fontSize: wrapperThemeType('fontSize.3xl'),
|
|
42
36
|
},
|
|
@@ -44,26 +38,25 @@ export const componentTypos = plugin(({ addComponents, theme }) => {
|
|
|
44
38
|
|
|
45
39
|
}
|
|
46
40
|
|
|
41
|
+
const headingCommons = {
|
|
42
|
+
fontFamily: wrapperThemeType('fontFamily.highlight'),
|
|
43
|
+
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
44
|
+
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
45
|
+
fontWeight: wrapperThemeType('fontWeight.medium'),
|
|
46
|
+
|
|
47
|
+
}
|
|
47
48
|
const heading = {
|
|
48
49
|
'.fonts-heading-h1': {
|
|
50
|
+
...headingCommons,
|
|
49
51
|
fontSize: wrapperThemeType('fontSize.md'),
|
|
50
|
-
fontFamily: wrapperThemeType('fontFamily.highlight'),
|
|
51
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
52
|
-
fontWeight: wrapperThemeType('fontWeight.medium'),
|
|
53
|
-
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
54
|
-
|
|
55
52
|
'@media (min-width: 1024px)': {
|
|
56
53
|
fontSize: wrapperThemeType('fontSize.xl'),
|
|
57
54
|
},
|
|
58
55
|
},
|
|
59
56
|
|
|
60
|
-
|
|
61
57
|
'.fonts-heading-h2': {
|
|
62
|
-
|
|
58
|
+
...headingCommons,
|
|
63
59
|
fontSize: wrapperThemeType('fontSize.sm'),
|
|
64
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
65
|
-
fontWeight: wrapperThemeType('fontWeight.medium'),
|
|
66
|
-
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
67
60
|
|
|
68
61
|
'@media (min-width: 1024px)': {
|
|
69
62
|
fontSize: wrapperThemeType('fontSize.lg'),
|
|
@@ -71,11 +64,8 @@ export const componentTypos = plugin(({ addComponents, theme }) => {
|
|
|
71
64
|
},
|
|
72
65
|
|
|
73
66
|
'.fonts-heading-h3': {
|
|
74
|
-
|
|
67
|
+
...headingCommons,
|
|
75
68
|
fontSize: wrapperThemeType('fontSize.xs'),
|
|
76
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
77
|
-
fontWeight: wrapperThemeType('fontWeight.medium'),
|
|
78
|
-
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
79
69
|
|
|
80
70
|
'@media (min-width: 1024px)': {
|
|
81
71
|
fontSize: wrapperThemeType('fontSize.sm'),
|
|
@@ -83,134 +73,106 @@ export const componentTypos = plugin(({ addComponents, theme }) => {
|
|
|
83
73
|
},
|
|
84
74
|
|
|
85
75
|
'.fonts-heading-h4': {
|
|
86
|
-
|
|
76
|
+
...headingCommons,
|
|
87
77
|
fontSize: wrapperThemeType('fontSize.2xs'),
|
|
88
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
89
|
-
fontWeight: wrapperThemeType('fontWeight.medium'),
|
|
90
|
-
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
91
78
|
|
|
92
79
|
'@media (min-width: 1024px)': {
|
|
93
80
|
fontSize: wrapperThemeType('fontSize.2xs'),
|
|
94
81
|
},
|
|
95
82
|
},
|
|
96
|
-
|
|
97
83
|
}
|
|
98
84
|
|
|
85
|
+
const subtitleCommons = {
|
|
86
|
+
fontFamily: wrapperThemeType('fontFamily.base'),
|
|
87
|
+
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
88
|
+
color: wrapperThemeType('colors.neutral.low.light'),
|
|
89
|
+
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
90
|
+
}
|
|
99
91
|
const subtitle = {
|
|
100
92
|
'.fonts-subtitle-medium': {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
lineHeight: wrapperThemeType('lineHeight.2xs'),
|
|
104
|
-
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
105
|
-
color: wrapperThemeType('colors.neutral.low.light'),
|
|
106
|
-
|
|
93
|
+
...subtitleCommons,
|
|
94
|
+
fontSize: wrapperThemeType('fontSize.2xs'),
|
|
107
95
|
'@media (min-width: 1024px)': {
|
|
108
96
|
fontSize: wrapperThemeType('fontSize.xs'),
|
|
109
97
|
},
|
|
110
98
|
},
|
|
111
99
|
|
|
112
|
-
|
|
113
100
|
'.fonts-subtitle-small': {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
117
|
-
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
118
|
-
color: wrapperThemeType('colors.neutral.low.light'),
|
|
119
|
-
|
|
101
|
+
...subtitleCommons,
|
|
102
|
+
fontSize: wrapperThemeType('fontSize.3xs'),
|
|
120
103
|
'@media (min-width: 1024px)': {
|
|
121
|
-
fontSize: wrapperThemeType('fontSize.
|
|
104
|
+
fontSize: wrapperThemeType('fontSize.2xs'),
|
|
122
105
|
},
|
|
123
106
|
},
|
|
124
107
|
}
|
|
125
|
-
|
|
108
|
+
|
|
109
|
+
const bodyCommons = {
|
|
110
|
+
color: wrapperThemeType('colors.neutral.low.medium'),
|
|
111
|
+
fontFamily: wrapperThemeType('fontFamily.base'),
|
|
112
|
+
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
113
|
+
}
|
|
126
114
|
const body = {
|
|
127
115
|
'.fonts-body-large-regular': {
|
|
116
|
+
...bodyCommons,
|
|
128
117
|
fontSize: wrapperThemeType('fontSize.2xs'),
|
|
129
|
-
|
|
130
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
131
|
-
fontWeight: wrapperThemeType('fontWeight.bold'),
|
|
132
|
-
color: wrapperThemeType('colors.neutral.low.medium'),
|
|
118
|
+
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
133
119
|
},
|
|
134
120
|
|
|
135
121
|
'.fonts-body-larger-bold': {
|
|
122
|
+
...bodyCommons,
|
|
136
123
|
fontSize: wrapperThemeType('fontSize.2xs'),
|
|
137
|
-
fontFamily: wrapperThemeType('fontFamily.base'),
|
|
138
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
139
124
|
fontWeight: wrapperThemeType('fontWeight.bold'),
|
|
140
|
-
color: wrapperThemeType('colors.neutral.low.medium'),
|
|
141
125
|
},
|
|
142
126
|
|
|
143
127
|
'.fonts-body-medium-regular': {
|
|
128
|
+
...bodyCommons,
|
|
144
129
|
fontSize: wrapperThemeType('fontSize.3xs'),
|
|
145
|
-
fontFamily: wrapperThemeType('fontFamily.base'),
|
|
146
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
147
130
|
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
148
|
-
color: wrapperThemeType('colors.neutral.low.medium'),
|
|
149
131
|
},
|
|
150
132
|
|
|
151
133
|
'.fonts-body-medium-bold': {
|
|
134
|
+
...bodyCommons,
|
|
152
135
|
fontSize: wrapperThemeType('fontSize.3xs'),
|
|
153
|
-
fontFamily: wrapperThemeType('fontFamily.base'),
|
|
154
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
155
136
|
fontWeight: wrapperThemeType('fontWeight.bold'),
|
|
156
|
-
color: wrapperThemeType('colors.neutral.low.medium'),
|
|
157
137
|
},
|
|
158
138
|
|
|
159
139
|
'.fonts-body-small-regular': {
|
|
140
|
+
...bodyCommons,
|
|
160
141
|
fontSize: wrapperThemeType('fontSize.micro'),
|
|
161
|
-
fontFamily: wrapperThemeType('fontFamily.base'),
|
|
162
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
163
142
|
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
164
|
-
color: wrapperThemeType('colors.neutral.low.medium'),
|
|
165
143
|
},
|
|
166
144
|
|
|
167
145
|
'.fonts-body-small-bold': {
|
|
146
|
+
...bodyCommons,
|
|
168
147
|
fontSize: wrapperThemeType('fontSize.micro'),
|
|
169
|
-
fontFamily: wrapperThemeType('fontFamily.base'),
|
|
170
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
171
148
|
fontWeight: wrapperThemeType('fontWeight.bold'),
|
|
172
|
-
color: wrapperThemeType('colors.neutral.low.medium'),
|
|
173
149
|
},
|
|
174
150
|
}
|
|
175
151
|
|
|
152
|
+
const linkCommons = {
|
|
153
|
+
fontFamily: wrapperThemeType('fontFamily.base'),
|
|
154
|
+
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
155
|
+
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
156
|
+
color: wrapperThemeType('colors.neutral.low.medium'),
|
|
157
|
+
textDecoration: 'underline',
|
|
158
|
+
'&:hover': {
|
|
159
|
+
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
160
|
+
},
|
|
161
|
+
}
|
|
176
162
|
const link = {
|
|
177
163
|
'.fonts-link-inline-large': {
|
|
164
|
+
...linkCommons,
|
|
178
165
|
fontSize: wrapperThemeType('fontSize.2xs'),
|
|
179
|
-
fontFamily: wrapperThemeType('fontFamily.base'),
|
|
180
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
181
|
-
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
182
|
-
color: wrapperThemeType('colors.neutral.low.medium'),
|
|
183
|
-
textDecoration: 'underline',
|
|
184
|
-
|
|
185
|
-
'&:hover': {
|
|
186
|
-
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
187
|
-
},
|
|
188
166
|
},
|
|
189
167
|
|
|
190
168
|
'.fonts-link-inline-medium': {
|
|
169
|
+
...linkCommons,
|
|
191
170
|
fontSize: wrapperThemeType('fontSize.3xs'),
|
|
192
|
-
fontFamily: wrapperThemeType('fontFamily.base'),
|
|
193
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
194
|
-
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
195
|
-
color: wrapperThemeType('colors.neutral.low.medium'),
|
|
196
|
-
textDecoration: 'underline',
|
|
197
|
-
|
|
198
|
-
'&:hover': {
|
|
199
|
-
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
200
|
-
},
|
|
201
171
|
},
|
|
202
172
|
|
|
203
173
|
'.fonts-link-inline-small': {
|
|
174
|
+
...linkCommons,
|
|
204
175
|
fontSize: wrapperThemeType('fontSize.micro'),
|
|
205
|
-
fontFamily: wrapperThemeType('fontFamily.base'),
|
|
206
|
-
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
207
|
-
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
208
|
-
color: wrapperThemeType('colors.neutral.low.medium'),
|
|
209
|
-
textDecoration: 'underline',
|
|
210
|
-
|
|
211
|
-
'&:hover': {
|
|
212
|
-
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
213
|
-
},
|
|
214
176
|
},
|
|
215
177
|
}
|
|
216
178
|
|
|
@@ -225,7 +187,7 @@ export const componentTypos = plugin(({ addComponents, theme }) => {
|
|
|
225
187
|
},
|
|
226
188
|
}
|
|
227
189
|
|
|
228
|
-
|
|
190
|
+
addUtilities({
|
|
229
191
|
...display,
|
|
230
192
|
...heading,
|
|
231
193
|
...subtitle,
|
package/windi.config.ts
CHANGED
|
@@ -4,6 +4,8 @@ import typography from 'windicss/plugin/typography'
|
|
|
4
4
|
|
|
5
5
|
import { borders, colors, effects, misc, spacing, typography as typos, utilities } from './theme/solfacil/'
|
|
6
6
|
|
|
7
|
+
import { sizings } from './theme/solfacil/spacing'
|
|
8
|
+
|
|
7
9
|
import { safelist } from './theme/safelist'
|
|
8
10
|
|
|
9
11
|
export default defineConfig({
|
|
@@ -18,7 +20,7 @@ export default defineConfig({
|
|
|
18
20
|
activeSafeList: true,
|
|
19
21
|
data: {
|
|
20
22
|
colors,
|
|
21
|
-
spacing:
|
|
23
|
+
spacing: sizings,
|
|
22
24
|
},
|
|
23
25
|
}),
|
|
24
26
|
],
|