procode-vs-theme 1.0.3 → 1.0.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/index.esm.js +48 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +48 -11
- package/dist/index.js.map +1 -1
- package/dist/src/{_border.scss → base/_border.scss} +11 -8
- package/dist/src/base/_color.scss +41 -0
- package/dist/src/base/_custom-properties.scss +102 -0
- package/dist/src/base/_font.scss +37 -0
- package/dist/src/base/_size.scss +7 -0
- package/dist/src/base/_space.scss +27 -0
- package/dist/src/base/mixins/_breakpoints.scss +27 -0
- package/dist/src/baseExports.ts +35 -0
- package/dist/src/components/_buttons.scss +387 -0
- package/dist/src/components.ts +20 -0
- package/dist/src/index.scss +71 -24
- package/dist/src/index.ts +52 -0
- package/dist/src/layout.ts +23 -0
- package/dist/src/utilities/_cursor.scss +7 -0
- package/dist/src/utilities/_display.scss +20 -0
- package/dist/src/utilities/_flex.scss +82 -0
- package/dist/src/utilities/_opacity.scss +7 -0
- package/dist/src/utilities/_overflow.scss +7 -0
- package/dist/src/utilities/_position.scss +26 -0
- package/dist/src/utilities/_sizing.scss +13 -0
- package/dist/src/utilities/_text.scss +49 -0
- package/dist/src/utilities/_visibility.scss +2 -0
- package/dist/src/utilities/background-color/index.scss +37 -0
- package/dist/src/{_border-radius.scss → utilities/border/_border-radius.scss} +29 -17
- package/dist/src/utilities/box-shadow/index.scss +17 -0
- package/dist/src/utilities/size/index.scss +9 -0
- package/dist/src/utilities/spaces/_gap.scss +15 -0
- package/dist/src/utilities/spaces/_margin.scss +46 -0
- package/dist/src/utilities/spaces/_padding.scss +37 -0
- package/dist/src/utilities/typography/_color.scss +51 -0
- package/dist/src/utilities.ts +112 -0
- package/dist/src/variables.ts +36 -0
- package/dist/types/baseExports.d.ts +0 -2
- package/dist/types/utilities.d.ts +18 -0
- package/dist/types/variables.d.ts +0 -2
- package/dist/utilities.esm.js +39 -3
- package/dist/utilities.esm.js.map +1 -1
- package/dist/utilities.js +47 -2
- package/dist/utilities.js.map +1 -1
- package/dist/variables.esm.js +1 -4
- package/dist/variables.esm.js.map +1 -1
- package/dist/variables.js +0 -4
- package/dist/variables.js.map +1 -1
- package/package.json +2 -2
- package/src/base/_border.scss +11 -8
- package/src/base/_color.scss +3 -1
- package/src/base/_custom-properties.scss +102 -0
- package/src/base/_font.scss +37 -26
- package/src/base/_size.scss +7 -4
- package/src/base/_space.scss +27 -4
- package/src/base/mixins/_breakpoints.scss +27 -0
- package/src/baseExports.ts +0 -4
- package/src/components/_buttons.scss +387 -38
- package/src/index.scss +71 -24
- package/src/utilities/_cursor.scss +7 -0
- package/src/utilities/_display.scss +20 -0
- package/src/utilities/_flex.scss +82 -0
- package/src/utilities/_opacity.scss +7 -0
- package/src/utilities/_overflow.scss +7 -0
- package/src/utilities/_position.scss +26 -0
- package/src/utilities/_sizing.scss +13 -0
- package/src/utilities/_text.scss +49 -0
- package/src/utilities/_visibility.scss +2 -0
- package/src/utilities/border/_border-radius.scss +29 -17
- package/src/utilities/box-shadow/index.scss +17 -8
- package/src/utilities/spaces/_gap.scss +15 -20
- package/src/utilities/spaces/_margin.scss +46 -69
- package/src/utilities/spaces/_padding.scss +37 -69
- package/src/utilities/typography/_color.scss +51 -35
- package/src/utilities.ts +112 -67
- package/src/variables.ts +1 -5
- package/dist/src/_apply-theme.scss +0 -28
- package/dist/src/_buttons.scss +0 -38
- package/dist/src/_color.scss +0 -35
- package/dist/src/_gap.scss +0 -20
- package/dist/src/_margin.scss +0 -69
- package/dist/src/_padding.scss +0 -69
- package/dist/src/_size.scss +0 -4
- package/dist/src/_space.scss +0 -4
- package/src/base/mixins/_apply-theme.scss +0 -28
- /package/dist/src/{_font_size-mx.scss → base/mixins/_font_size-mx.scss} +0 -0
- /package/dist/src/{_media-query-mx.scss → base/mixins/_media-query-mx.scss} +0 -0
- /package/dist/src/{_cards.scss → components/_cards.scss} +0 -0
- /package/dist/src/{_input.scss → components/_input.scss} +0 -0
- /package/dist/src/{_drawer.scss → layout/_drawer.scss} +0 -0
- /package/dist/src/{_footer.scss → layout/_footer.scss} +0 -0
- /package/dist/src/{_header.scss → layout/_header.scss} +0 -0
- /package/dist/src/{_sidebar.scss → layout/_sidebar.scss} +0 -0
- /package/dist/src/{_reset.scss → utilities/_reset.scss} +0 -0
- /package/dist/src/{_border-color.scss → utilities/border/_border-color.scss} +0 -0
- /package/dist/src/{_border-size.scss → utilities/border/_border-size.scss} +0 -0
- /package/dist/src/{_font.scss → utilities/typography/_font.scss} +0 -0
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "../base/mixins/font_size-mx" as mx;
|
|
3
|
+
@use "../base/font" as ft;
|
|
4
|
+
@use "../base/color" as cl;
|
|
5
|
+
@use "../base/border" as bo;
|
|
6
|
+
|
|
7
|
+
$btn-padding-xs: 5.5px !default;
|
|
8
|
+
$btn-padding-md: 8px !default;
|
|
9
|
+
$btn-padding-xl: 16px !default;
|
|
10
|
+
|
|
11
|
+
.qo-btn {
|
|
12
|
+
display: inline-block;
|
|
13
|
+
border-radius: bo.$border-radius-sm;
|
|
14
|
+
|
|
15
|
+
&.qo-btn-full {
|
|
16
|
+
display: block;
|
|
17
|
+
border-radius: bo.$border-radius-sm;
|
|
18
|
+
width: 100%;
|
|
19
|
+
padding: $btn-padding-xl;
|
|
20
|
+
@include mx.font-size(ft.$font-size-md, ft.$line-height-md);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.qo-btn-xs {
|
|
24
|
+
padding: $btn-padding-xs;
|
|
25
|
+
@include mx.font-size(ft.$font-size-xs, ft.$line-height-xs);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.qo-btn-md {
|
|
29
|
+
padding: $btn-padding-md;
|
|
30
|
+
@include mx.font-size(ft.$font-size-md, ft.$line-height-md);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.qo-btn-primary {
|
|
34
|
+
background-color: cl.$background-primary;
|
|
35
|
+
border: bo.$border-width-sm solid cl.$border-primary;
|
|
36
|
+
color: cl.$text-light;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
background-color: color.adjust(cl.$background-primary, $lightness: -8%);
|
|
42
|
+
border-color: color.adjust(cl.$border-primary, $lightness: -8%);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:active {
|
|
46
|
+
background-color: color.adjust(cl.$background-primary, $lightness: -12%);
|
|
47
|
+
border-color: color.adjust(cl.$border-primary, $lightness: -12%);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:disabled {
|
|
51
|
+
opacity: 0.5;
|
|
52
|
+
cursor: not-allowed;
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
background-color: cl.$background-primary;
|
|
56
|
+
border-color: cl.$border-primary;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.qo-btn-default {
|
|
62
|
+
background-color: cl.$background-default;
|
|
63
|
+
border: bo.$border-width-sm solid cl.$border-default;
|
|
64
|
+
color: cl.$text-dark;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
67
|
+
|
|
68
|
+
&:hover {
|
|
69
|
+
background-color: cl.$background-secondary;
|
|
70
|
+
border-color: cl.$border-secondary;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:active {
|
|
74
|
+
background-color: color.adjust(cl.$background-secondary, $lightness: -4%);
|
|
75
|
+
border-color: cl.$border-secondary;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:disabled {
|
|
79
|
+
opacity: 0.5;
|
|
80
|
+
cursor: not-allowed;
|
|
81
|
+
|
|
82
|
+
&:hover {
|
|
83
|
+
background-color: cl.$background-default;
|
|
84
|
+
border-color: cl.$border-default;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.qo-btn-danger {
|
|
90
|
+
background-color: cl.$background-danger;
|
|
91
|
+
border: bo.$border-width-sm solid cl.$border-danger;
|
|
92
|
+
color: cl.$text-danger;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
95
|
+
|
|
96
|
+
&:hover {
|
|
97
|
+
background-color: color.change(cl.$background-danger, $alpha: 0.06);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:active {
|
|
101
|
+
background-color: color.change(cl.$background-danger, $alpha: 0.12);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:disabled {
|
|
105
|
+
opacity: 0.5;
|
|
106
|
+
cursor: not-allowed;
|
|
107
|
+
border-color: cl.$border-default;
|
|
108
|
+
color: cl.$text-default;
|
|
109
|
+
|
|
110
|
+
&:hover {
|
|
111
|
+
background-color: cl.$background-default;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.qo-btn-success {
|
|
117
|
+
background-color: cl.$background-success;
|
|
118
|
+
border: bo.$border-width-sm solid cl.$border-success;
|
|
119
|
+
color: cl.$text-light;
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
122
|
+
|
|
123
|
+
&:hover {
|
|
124
|
+
background-color: color.adjust(cl.$background-success, $lightness: -8%);
|
|
125
|
+
border-color: color.adjust(cl.$border-success, $lightness: -8%);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:active {
|
|
129
|
+
background-color: color.adjust(cl.$background-success, $lightness: -12%);
|
|
130
|
+
border-color: color.adjust(cl.$border-success, $lightness: -12%);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&:disabled {
|
|
134
|
+
opacity: 0.5;
|
|
135
|
+
cursor: not-allowed;
|
|
136
|
+
|
|
137
|
+
&:hover {
|
|
138
|
+
background-color: cl.$background-success;
|
|
139
|
+
border-color: cl.$border-success;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.qo-btn-warning {
|
|
145
|
+
background-color: cl.$background-warning;
|
|
146
|
+
border: bo.$border-width-sm solid cl.$border-warning;
|
|
147
|
+
color: cl.$text-light;
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
150
|
+
|
|
151
|
+
&:hover {
|
|
152
|
+
background-color: color.adjust(cl.$background-warning, $lightness: -8%);
|
|
153
|
+
border-color: color.adjust(cl.$border-warning, $lightness: -8%);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&:active {
|
|
157
|
+
background-color: color.adjust(cl.$background-warning, $lightness: -12%);
|
|
158
|
+
border-color: color.adjust(cl.$border-warning, $lightness: -12%);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:disabled {
|
|
162
|
+
opacity: 0.5;
|
|
163
|
+
cursor: not-allowed;
|
|
164
|
+
|
|
165
|
+
&:hover {
|
|
166
|
+
background-color: cl.$background-warning;
|
|
167
|
+
border-color: cl.$border-warning;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&.qo-btn-info {
|
|
173
|
+
background-color: cl.$background-info;
|
|
174
|
+
border: bo.$border-width-sm solid cl.$border-info;
|
|
175
|
+
color: cl.$text-light;
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
178
|
+
|
|
179
|
+
&:hover {
|
|
180
|
+
background-color: color.adjust(cl.$background-info, $lightness: -8%);
|
|
181
|
+
border-color: color.adjust(cl.$border-info, $lightness: -8%);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&:active {
|
|
185
|
+
background-color: color.adjust(cl.$background-info, $lightness: -12%);
|
|
186
|
+
border-color: color.adjust(cl.$border-info, $lightness: -12%);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&:disabled {
|
|
190
|
+
opacity: 0.5;
|
|
191
|
+
cursor: not-allowed;
|
|
192
|
+
|
|
193
|
+
&:hover {
|
|
194
|
+
background-color: cl.$background-info;
|
|
195
|
+
border-color: cl.$border-info;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Outline variants: transparent bg + colored border/text → hover fills color + white text
|
|
201
|
+
|
|
202
|
+
&.qo-btn-outline-primary {
|
|
203
|
+
background-color: transparent;
|
|
204
|
+
border: bo.$border-width-sm solid cl.$border-primary;
|
|
205
|
+
color: cl.$text-primary;
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
208
|
+
|
|
209
|
+
&:hover {
|
|
210
|
+
background-color: cl.$background-primary;
|
|
211
|
+
border-color: cl.$border-primary;
|
|
212
|
+
color: cl.$text-light;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&:active {
|
|
216
|
+
background-color: color.adjust(cl.$background-primary, $lightness: -8%);
|
|
217
|
+
border-color: color.adjust(cl.$border-primary, $lightness: -8%);
|
|
218
|
+
color: cl.$text-light;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&:disabled {
|
|
222
|
+
opacity: 0.5;
|
|
223
|
+
cursor: not-allowed;
|
|
224
|
+
|
|
225
|
+
&:hover {
|
|
226
|
+
background-color: transparent;
|
|
227
|
+
border-color: cl.$border-primary;
|
|
228
|
+
color: cl.$text-primary;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&.qo-btn-outline-default {
|
|
234
|
+
background-color: transparent;
|
|
235
|
+
border: bo.$border-width-sm solid cl.$border-default;
|
|
236
|
+
color: cl.$text-dark;
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
239
|
+
|
|
240
|
+
&:hover {
|
|
241
|
+
background-color: cl.$background-secondary;
|
|
242
|
+
border-color: cl.$border-secondary;
|
|
243
|
+
color: cl.$text-dark;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&:active {
|
|
247
|
+
background-color: color.adjust(cl.$background-secondary, $lightness: -4%);
|
|
248
|
+
border-color: cl.$border-secondary;
|
|
249
|
+
color: cl.$text-dark;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
&:disabled {
|
|
253
|
+
opacity: 0.5;
|
|
254
|
+
cursor: not-allowed;
|
|
255
|
+
|
|
256
|
+
&:hover {
|
|
257
|
+
background-color: transparent;
|
|
258
|
+
border-color: cl.$border-default;
|
|
259
|
+
color: cl.$text-dark;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&.qo-btn-outline-danger {
|
|
265
|
+
background-color: transparent;
|
|
266
|
+
border: bo.$border-width-sm solid cl.$border-danger;
|
|
267
|
+
color: cl.$text-danger;
|
|
268
|
+
cursor: pointer;
|
|
269
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
270
|
+
|
|
271
|
+
&:hover {
|
|
272
|
+
background-color: cl.$background-danger;
|
|
273
|
+
border-color: cl.$border-danger;
|
|
274
|
+
color: cl.$text-light;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&:active {
|
|
278
|
+
background-color: color.adjust(cl.$background-danger, $lightness: -8%);
|
|
279
|
+
border-color: color.adjust(cl.$border-danger, $lightness: -8%);
|
|
280
|
+
color: cl.$text-light;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
&:disabled {
|
|
284
|
+
opacity: 0.5;
|
|
285
|
+
cursor: not-allowed;
|
|
286
|
+
|
|
287
|
+
&:hover {
|
|
288
|
+
background-color: transparent;
|
|
289
|
+
border-color: cl.$border-danger;
|
|
290
|
+
color: cl.$text-danger;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
&.qo-btn-outline-success {
|
|
296
|
+
background-color: transparent;
|
|
297
|
+
border: bo.$border-width-sm solid cl.$border-success;
|
|
298
|
+
color: cl.$text-success;
|
|
299
|
+
cursor: pointer;
|
|
300
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
301
|
+
|
|
302
|
+
&:hover {
|
|
303
|
+
background-color: cl.$background-success;
|
|
304
|
+
border-color: cl.$border-success;
|
|
305
|
+
color: cl.$text-light;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
&:active {
|
|
309
|
+
background-color: color.adjust(cl.$background-success, $lightness: -8%);
|
|
310
|
+
border-color: color.adjust(cl.$border-success, $lightness: -8%);
|
|
311
|
+
color: cl.$text-light;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
&:disabled {
|
|
315
|
+
opacity: 0.5;
|
|
316
|
+
cursor: not-allowed;
|
|
317
|
+
|
|
318
|
+
&:hover {
|
|
319
|
+
background-color: transparent;
|
|
320
|
+
border-color: cl.$border-success;
|
|
321
|
+
color: cl.$text-success;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
&.qo-btn-outline-warning {
|
|
327
|
+
background-color: transparent;
|
|
328
|
+
border: bo.$border-width-sm solid cl.$border-warning;
|
|
329
|
+
color: cl.$text-warning;
|
|
330
|
+
cursor: pointer;
|
|
331
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
332
|
+
|
|
333
|
+
&:hover {
|
|
334
|
+
background-color: cl.$background-warning;
|
|
335
|
+
border-color: cl.$border-warning;
|
|
336
|
+
color: cl.$text-light;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
&:active {
|
|
340
|
+
background-color: color.adjust(cl.$background-warning, $lightness: -8%);
|
|
341
|
+
border-color: color.adjust(cl.$border-warning, $lightness: -8%);
|
|
342
|
+
color: cl.$text-light;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
&:disabled {
|
|
346
|
+
opacity: 0.5;
|
|
347
|
+
cursor: not-allowed;
|
|
348
|
+
|
|
349
|
+
&:hover {
|
|
350
|
+
background-color: transparent;
|
|
351
|
+
border-color: cl.$border-warning;
|
|
352
|
+
color: cl.$text-warning;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
&.qo-btn-outline-info {
|
|
358
|
+
background-color: transparent;
|
|
359
|
+
border: bo.$border-width-sm solid cl.$border-info;
|
|
360
|
+
color: cl.$text-info;
|
|
361
|
+
cursor: pointer;
|
|
362
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
363
|
+
|
|
364
|
+
&:hover {
|
|
365
|
+
background-color: cl.$background-info;
|
|
366
|
+
border-color: cl.$border-info;
|
|
367
|
+
color: cl.$text-light;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
&:active {
|
|
371
|
+
background-color: color.adjust(cl.$background-info, $lightness: -8%);
|
|
372
|
+
border-color: color.adjust(cl.$border-info, $lightness: -8%);
|
|
373
|
+
color: cl.$text-light;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
&:disabled {
|
|
377
|
+
opacity: 0.5;
|
|
378
|
+
cursor: not-allowed;
|
|
379
|
+
|
|
380
|
+
&:hover {
|
|
381
|
+
background-color: transparent;
|
|
382
|
+
border-color: cl.$border-info;
|
|
383
|
+
color: cl.$text-info;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// VS Theme Components Export
|
|
2
|
+
// Provides access to all component styles
|
|
3
|
+
|
|
4
|
+
export const buttons = './components/_buttons.scss';
|
|
5
|
+
export const input = './components/_input.scss';
|
|
6
|
+
export const cards = './components/_cards.scss';
|
|
7
|
+
|
|
8
|
+
// All components combined
|
|
9
|
+
export const allComponents = [
|
|
10
|
+
buttons,
|
|
11
|
+
input,
|
|
12
|
+
cards
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
buttons,
|
|
17
|
+
input,
|
|
18
|
+
cards,
|
|
19
|
+
all: allComponents
|
|
20
|
+
};
|
package/dist/src/index.scss
CHANGED
|
@@ -1,24 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
@forward "./utilities/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@forward "./
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
@forward "./utilities/
|
|
9
|
-
@forward "./utilities/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@forward "./utilities/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
@forward "./
|
|
16
|
-
@forward "./
|
|
17
|
-
@forward "./
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@forward "./
|
|
22
|
-
@forward "./
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
// Reset
|
|
2
|
+
@forward "./utilities/reset";
|
|
3
|
+
|
|
4
|
+
// CSS Custom Properties
|
|
5
|
+
@forward "./base/custom-properties";
|
|
6
|
+
|
|
7
|
+
// Typography
|
|
8
|
+
@forward "./utilities/typography/font";
|
|
9
|
+
@forward "./utilities/typography/color";
|
|
10
|
+
|
|
11
|
+
// Background
|
|
12
|
+
@forward "./utilities/background-color/index.scss";
|
|
13
|
+
|
|
14
|
+
// Border
|
|
15
|
+
@forward "./utilities/border/border-color";
|
|
16
|
+
@forward "./utilities/border/border-radius";
|
|
17
|
+
@forward "./utilities/border/border-size";
|
|
18
|
+
|
|
19
|
+
// Spacing
|
|
20
|
+
@forward "./utilities/spaces/gap";
|
|
21
|
+
@forward "./utilities/spaces/margin";
|
|
22
|
+
@forward "./utilities/spaces/padding";
|
|
23
|
+
|
|
24
|
+
// Box shadow
|
|
25
|
+
@forward "./utilities/box-shadow/index.scss";
|
|
26
|
+
|
|
27
|
+
// Size
|
|
28
|
+
@forward "./utilities/size/index.scss";
|
|
29
|
+
|
|
30
|
+
// Display
|
|
31
|
+
@forward "./utilities/display";
|
|
32
|
+
|
|
33
|
+
// Flex
|
|
34
|
+
@forward "./utilities/flex";
|
|
35
|
+
|
|
36
|
+
// Text
|
|
37
|
+
@forward "./utilities/text";
|
|
38
|
+
|
|
39
|
+
// Position
|
|
40
|
+
@forward "./utilities/position";
|
|
41
|
+
|
|
42
|
+
// Overflow
|
|
43
|
+
@forward "./utilities/overflow";
|
|
44
|
+
|
|
45
|
+
// Opacity
|
|
46
|
+
@forward "./utilities/opacity";
|
|
47
|
+
|
|
48
|
+
// Cursor
|
|
49
|
+
@forward "./utilities/cursor";
|
|
50
|
+
|
|
51
|
+
// Sizing (width/height)
|
|
52
|
+
@forward "./utilities/sizing";
|
|
53
|
+
|
|
54
|
+
// Visibility
|
|
55
|
+
@forward "./utilities/visibility";
|
|
56
|
+
|
|
57
|
+
// Base variables & mixins
|
|
58
|
+
@forward "./base/mixins/media-query-mx";
|
|
59
|
+
@forward "./base/mixins/breakpoints";
|
|
60
|
+
@forward "./base/border";
|
|
61
|
+
@forward "./base/color";
|
|
62
|
+
@forward "./base/font";
|
|
63
|
+
@forward "./base/space";
|
|
64
|
+
@forward "./base/size";
|
|
65
|
+
|
|
66
|
+
// Components
|
|
67
|
+
@forward "./components/buttons";
|
|
68
|
+
@forward "./components/input";
|
|
69
|
+
|
|
70
|
+
// Layout
|
|
71
|
+
@forward "./layout/drawer";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// VS Theme - Main Entry Point
|
|
2
|
+
// Provides comprehensive access to all theme components
|
|
3
|
+
|
|
4
|
+
// Main theme SCSS entry point
|
|
5
|
+
export const themeStylesheet = './index.scss';
|
|
6
|
+
|
|
7
|
+
// Theme Variables
|
|
8
|
+
export * as variables from './variables';
|
|
9
|
+
export * as base from './baseExports';
|
|
10
|
+
|
|
11
|
+
// Theme Components
|
|
12
|
+
export * as components from './components';
|
|
13
|
+
|
|
14
|
+
// Theme Layout
|
|
15
|
+
export * as layout from './layout';
|
|
16
|
+
|
|
17
|
+
// Theme Utilities
|
|
18
|
+
export * as utilities from './utilities';
|
|
19
|
+
|
|
20
|
+
// Default export - Main theme configuration
|
|
21
|
+
export default {
|
|
22
|
+
name: 'vs-theme',
|
|
23
|
+
version: '1.0.0',
|
|
24
|
+
stylesheet: './index.scss',
|
|
25
|
+
variables: './variables',
|
|
26
|
+
components: './components',
|
|
27
|
+
layout: './layout',
|
|
28
|
+
utilities: './utilities'
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// Type definitions for theme configuration
|
|
32
|
+
export interface ThemeConfig {
|
|
33
|
+
name: string;
|
|
34
|
+
version: string;
|
|
35
|
+
stylesheet: string;
|
|
36
|
+
variables: string;
|
|
37
|
+
components: string;
|
|
38
|
+
layout: string;
|
|
39
|
+
utilities: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Theme utility functions
|
|
43
|
+
export const getThemeStylesheet = (): string => themeStylesheet;
|
|
44
|
+
export const getThemeConfig = (): ThemeConfig => ({
|
|
45
|
+
name: 'vs-theme',
|
|
46
|
+
version: '1.0.0',
|
|
47
|
+
stylesheet: './index.scss',
|
|
48
|
+
variables: './variables',
|
|
49
|
+
components: './components',
|
|
50
|
+
layout: './layout',
|
|
51
|
+
utilities: './utilities'
|
|
52
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// VS Theme Layout Export
|
|
2
|
+
// Provides access to all layout styles
|
|
3
|
+
|
|
4
|
+
export const drawer = './layout/_drawer.scss';
|
|
5
|
+
export const header = './layout/_header.scss';
|
|
6
|
+
export const footer = './layout/_footer.scss';
|
|
7
|
+
export const sidebar = './layout/_sidebar.scss';
|
|
8
|
+
|
|
9
|
+
// All layout components combined
|
|
10
|
+
export const allLayout = [
|
|
11
|
+
drawer,
|
|
12
|
+
header,
|
|
13
|
+
footer,
|
|
14
|
+
sidebar
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
drawer,
|
|
19
|
+
header,
|
|
20
|
+
footer,
|
|
21
|
+
sidebar,
|
|
22
|
+
all: allLayout
|
|
23
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use "../base/mixins/breakpoints" as bp;
|
|
2
|
+
|
|
3
|
+
$_displays: none, inline, inline-block, block, flex, inline-flex, grid, inline-grid, table, table-row, table-cell;
|
|
4
|
+
|
|
5
|
+
@each $display in $_displays {
|
|
6
|
+
.qo-d-#{$display} {
|
|
7
|
+
display: $display;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Responsive variants
|
|
12
|
+
@each $bp-name, $bp-value in bp.$breakpoints {
|
|
13
|
+
@media (min-width: $bp-value) {
|
|
14
|
+
@each $display in $_displays {
|
|
15
|
+
.qo-d-#{$bp-name}-#{$display} {
|
|
16
|
+
display: $display;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@use "../base/mixins/breakpoints" as bp;
|
|
2
|
+
|
|
3
|
+
// Direction
|
|
4
|
+
.qo-flex-row { flex-direction: row; }
|
|
5
|
+
.qo-flex-column { flex-direction: column; }
|
|
6
|
+
.qo-flex-row-reverse { flex-direction: row-reverse; }
|
|
7
|
+
.qo-flex-column-reverse { flex-direction: column-reverse; }
|
|
8
|
+
|
|
9
|
+
// Wrap
|
|
10
|
+
.qo-flex-wrap { flex-wrap: wrap; }
|
|
11
|
+
.qo-flex-nowrap { flex-wrap: nowrap; }
|
|
12
|
+
.qo-flex-wrap-reverse { flex-wrap: wrap-reverse; }
|
|
13
|
+
|
|
14
|
+
// Justify content
|
|
15
|
+
.qo-justify-content-start { justify-content: flex-start; }
|
|
16
|
+
.qo-justify-content-end { justify-content: flex-end; }
|
|
17
|
+
.qo-justify-content-center { justify-content: center; }
|
|
18
|
+
.qo-justify-content-between { justify-content: space-between; }
|
|
19
|
+
.qo-justify-content-around { justify-content: space-around; }
|
|
20
|
+
.qo-justify-content-evenly { justify-content: space-evenly; }
|
|
21
|
+
|
|
22
|
+
// Align items
|
|
23
|
+
.qo-align-items-start { align-items: flex-start; }
|
|
24
|
+
.qo-align-items-end { align-items: flex-end; }
|
|
25
|
+
.qo-align-items-center { align-items: center; }
|
|
26
|
+
.qo-align-items-baseline { align-items: baseline; }
|
|
27
|
+
.qo-align-items-stretch { align-items: stretch; }
|
|
28
|
+
|
|
29
|
+
// Align self
|
|
30
|
+
.qo-align-self-start { align-self: flex-start; }
|
|
31
|
+
.qo-align-self-end { align-self: flex-end; }
|
|
32
|
+
.qo-align-self-center { align-self: center; }
|
|
33
|
+
.qo-align-self-baseline { align-self: baseline; }
|
|
34
|
+
.qo-align-self-stretch { align-self: stretch; }
|
|
35
|
+
|
|
36
|
+
// Align content
|
|
37
|
+
.qo-align-content-start { align-content: flex-start; }
|
|
38
|
+
.qo-align-content-end { align-content: flex-end; }
|
|
39
|
+
.qo-align-content-center { align-content: center; }
|
|
40
|
+
.qo-align-content-between { align-content: space-between; }
|
|
41
|
+
.qo-align-content-around { align-content: space-around; }
|
|
42
|
+
.qo-align-content-stretch { align-content: stretch; }
|
|
43
|
+
|
|
44
|
+
// Flex grow/shrink/fill
|
|
45
|
+
.qo-flex-fill { flex: 1 1 auto; }
|
|
46
|
+
.qo-flex-grow-0 { flex-grow: 0; }
|
|
47
|
+
.qo-flex-grow-1 { flex-grow: 1; }
|
|
48
|
+
.qo-flex-shrink-0 { flex-shrink: 0; }
|
|
49
|
+
.qo-flex-shrink-1 { flex-shrink: 1; }
|
|
50
|
+
|
|
51
|
+
// Order
|
|
52
|
+
.qo-order-first { order: -1; }
|
|
53
|
+
.qo-order-0 { order: 0; }
|
|
54
|
+
.qo-order-1 { order: 1; }
|
|
55
|
+
.qo-order-2 { order: 2; }
|
|
56
|
+
.qo-order-3 { order: 3; }
|
|
57
|
+
.qo-order-4 { order: 4; }
|
|
58
|
+
.qo-order-5 { order: 5; }
|
|
59
|
+
.qo-order-last { order: 6; }
|
|
60
|
+
|
|
61
|
+
// Responsive variants
|
|
62
|
+
@each $bp-name, $bp-value in bp.$breakpoints {
|
|
63
|
+
@media (min-width: $bp-value) {
|
|
64
|
+
.qo-flex-#{$bp-name}-row { flex-direction: row; }
|
|
65
|
+
.qo-flex-#{$bp-name}-column { flex-direction: column; }
|
|
66
|
+
.qo-flex-#{$bp-name}-row-reverse { flex-direction: row-reverse; }
|
|
67
|
+
.qo-flex-#{$bp-name}-column-reverse { flex-direction: column-reverse; }
|
|
68
|
+
.qo-flex-#{$bp-name}-wrap { flex-wrap: wrap; }
|
|
69
|
+
.qo-flex-#{$bp-name}-nowrap { flex-wrap: nowrap; }
|
|
70
|
+
.qo-justify-content-#{$bp-name}-start { justify-content: flex-start; }
|
|
71
|
+
.qo-justify-content-#{$bp-name}-end { justify-content: flex-end; }
|
|
72
|
+
.qo-justify-content-#{$bp-name}-center { justify-content: center; }
|
|
73
|
+
.qo-justify-content-#{$bp-name}-between { justify-content: space-between; }
|
|
74
|
+
.qo-justify-content-#{$bp-name}-around { justify-content: space-around; }
|
|
75
|
+
.qo-justify-content-#{$bp-name}-evenly { justify-content: space-evenly; }
|
|
76
|
+
.qo-align-items-#{$bp-name}-start { align-items: flex-start; }
|
|
77
|
+
.qo-align-items-#{$bp-name}-end { align-items: flex-end; }
|
|
78
|
+
.qo-align-items-#{$bp-name}-center { align-items: center; }
|
|
79
|
+
.qo-align-items-#{$bp-name}-baseline { align-items: baseline; }
|
|
80
|
+
.qo-align-items-#{$bp-name}-stretch { align-items: stretch; }
|
|
81
|
+
}
|
|
82
|
+
}
|