@code-coaching/vuetiful 0.24.9 → 0.25.0

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": "@code-coaching/vuetiful",
3
- "version": "0.24.9",
3
+ "version": "0.25.0",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "onchange 'src/**/*.vue' 'src/**/*.ts' 'src/**/*.css' -- npm run build",
@@ -53,6 +53,7 @@
53
53
  "types": "./dist/types/index.d.ts"
54
54
  },
55
55
  "./themes/*": "./src/themes/*",
56
+ "./css/*": "./src/css/*",
56
57
  "./styles/*": "./src/styles/*",
57
58
  "./tailwind/*": "./src/tailwind/*"
58
59
  }
@@ -19,5 +19,6 @@ describe('VTabs', () => {
19
19
 
20
20
  const tabPanel = wrapper.find("[data-test='tab-panel']");
21
21
  expect(tabPanel.text()).toEqual('John Duck');
22
+ expect(tabPanel.attributes('tabindex')).toEqual('-1');
22
23
  });
23
24
  });
@@ -6,4 +6,4 @@ import { TabPanel } from '@headlessui/vue';
6
6
  <TabPanel tabindex="-1" class="vuetiful-tab-panel">
7
7
  <slot />
8
8
  </TabPanel>
9
- </template>
9
+ </template>
@@ -0,0 +1,310 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5,
6
+ h6 {
7
+ @apply mb-4 md:mb-8;
8
+ }
9
+
10
+ section.section {
11
+ @apply mb-6 md:mb-14;
12
+ }
13
+ header.header {
14
+ @apply mb-4 md:mb-10;
15
+ }
16
+
17
+ summary {
18
+ cursor: pointer;
19
+ }
20
+
21
+ html,
22
+ body,
23
+ #q-app {
24
+ /*
25
+ * This is done to prevent double scrollbars
26
+ */
27
+ height: 100%;
28
+ overflow: hidden;
29
+
30
+ /*
31
+ * Reset several font properties to browser defaults
32
+ */
33
+ font-size: 16px;
34
+ font-family: var(--theme-font-family-base), sans-serif;
35
+ -moz-osx-font-smoothing: auto;
36
+ }
37
+
38
+ .flex {
39
+ /*
40
+ * Quasar has a flex utility class that also adds flex-wrap: wrap;
41
+ * This class is used to reset back to flex-wrap: nowrap; the default behavior.
42
+ */
43
+ display: flex;
44
+ flex-wrap: nowrap;
45
+ }
46
+
47
+ /*
48
+ * This makes sure the Tailwind flex utility class is not overwritten
49
+ * by the override above.
50
+ */
51
+ .flex-nowrap {
52
+ flex-wrap: nowrap;
53
+ }
54
+ .flex-wrap {
55
+ flex-wrap: wrap;
56
+ }
57
+
58
+ /* app global css */
59
+ .q-avatar,
60
+ .q-chip .q-avatar {
61
+ @apply rounded-token;
62
+ @apply transition-all;
63
+ }
64
+
65
+ .q-badge {
66
+ @apply rounded-token;
67
+
68
+ @apply transition-all;
69
+ }
70
+
71
+ .q-banner {
72
+ @apply rounded-container-token;
73
+ @apply transition-all;
74
+ }
75
+
76
+ .q-btn {
77
+ @apply rounded-token;
78
+ @apply transition-all;
79
+ }
80
+
81
+ .q-btn-group {
82
+ @apply rounded-token;
83
+ @apply transition-all;
84
+
85
+ width: fit-content;
86
+ }
87
+
88
+ .q-btn-dropdown {
89
+ @apply rounded-token;
90
+ @apply transition-all;
91
+ }
92
+
93
+ .q-menu {
94
+ @apply bg-surface-100-800-token;
95
+ @apply text-surface-900-50-token;
96
+
97
+ @apply rounded-container-token;
98
+ @apply transition-all;
99
+ }
100
+
101
+ .q-menu--dark {
102
+ box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
103
+ }
104
+
105
+ .q-card {
106
+ @apply rounded-container-token;
107
+ @apply transition-all;
108
+ }
109
+
110
+ /* Overwrite the white shadow with the normal shadow */
111
+ .q-card--dark {
112
+ box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
113
+ }
114
+
115
+ .q-chip {
116
+ @apply rounded-token;
117
+ @apply transition-all;
118
+ }
119
+
120
+ .q-color-picker {
121
+ @apply rounded-container-token;
122
+ @apply transition-all;
123
+ }
124
+
125
+ .q-color-picker--dark {
126
+ box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
127
+ }
128
+
129
+ .q-color-picker__header-bg {
130
+ @apply rounded-tl-container-token;
131
+ @apply rounded-tr-container-token;
132
+ }
133
+
134
+ .q-editor {
135
+ @apply rounded-container-token;
136
+ @apply transition-all;
137
+ }
138
+
139
+ /**
140
+ * Because of how .q-editor is styled
141
+ * the a tag needs to be styled here
142
+ * Add .light-actions or .dark-actions to the QEditor as a class
143
+ */
144
+ .light-actions a {
145
+ @apply !text-white;
146
+ }
147
+
148
+ .dark-actions a {
149
+ @apply !text-black;
150
+ }
151
+
152
+ /**
153
+ * Because of how .q-select is styled
154
+ * the dropdown icon needs to be styled here
155
+ * Add .light-actions or .dark-actions to the QSelect as a class
156
+ */
157
+ .light-actions i {
158
+ @apply !text-white;
159
+ }
160
+ .dark-actions i {
161
+ @apply !text-black;
162
+ }
163
+
164
+ /*
165
+ * Because of how .q-expansion-item__container -> .q-item is styled
166
+ * the background and text color need to be set here
167
+ */
168
+ .q-list {
169
+ @apply bg-surface-100-800-token;
170
+ @apply text-surface-900-50-token;
171
+
172
+ @apply rounded-container-token;
173
+ @apply transition-all;
174
+ }
175
+
176
+ .q-list .q-card {
177
+ @apply bg-surface-100-800-token;
178
+ @apply text-surface-900-50-token;
179
+ }
180
+
181
+ .q-list > .q-expansion-item:first-child .q-focus-helper {
182
+ @apply rounded-tl-container-token;
183
+ @apply rounded-tr-container-token;
184
+ }
185
+
186
+ .q-list > .q-expansion-item:last-child .q-focus-helper {
187
+ @apply rounded-bl-container-token;
188
+ @apply rounded-br-container-token;
189
+ }
190
+
191
+ .q-list > .q-expansion-item:last-child .q-card {
192
+ @apply rounded-bl-container-token;
193
+ @apply rounded-br-container-token;
194
+ }
195
+
196
+ .q-drawer .q-list {
197
+ border-radius: 0;
198
+ height: 100%;
199
+ }
200
+
201
+ .q-input {
202
+ @apply rounded-container-token;
203
+ @apply transition-all;
204
+ }
205
+
206
+ .q-field__control::before {
207
+ @apply rounded-container-token;
208
+ }
209
+
210
+ .q-field--outlined .q-field__control::after {
211
+ @apply rounded-container-token;
212
+ }
213
+
214
+ .q-input,
215
+ .q-select,
216
+ .q-file,
217
+ .q-time {
218
+ @apply rounded-container-token;
219
+ }
220
+
221
+ .q-item--dark {
222
+ color: currentColor;
223
+ }
224
+
225
+ .q-field__native {
226
+ color: currentColor !important;
227
+ background-color: transparent !important;
228
+ }
229
+
230
+ .q-time {
231
+ box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
232
+
233
+ @apply bg-surface-100-800-token;
234
+ @apply text-surface-900-50-token;
235
+
236
+ @apply rounded-tl-container-token;
237
+ @apply rounded-tr-container-token;
238
+ }
239
+
240
+ .q-time__header {
241
+ @apply bg-surface-300-600-token;
242
+ @apply text-surface-900-50-token;
243
+
244
+ @apply rounded-tl-container-token;
245
+ @apply rounded-tr-container-token;
246
+ }
247
+
248
+ .q-time__clock-position--active,
249
+ .q-time__clock-pointer {
250
+ @apply bg-surface-900-50-token;
251
+ @apply text-surface-50-900-token;
252
+ }
253
+
254
+ .q-date {
255
+ box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
256
+
257
+ @apply bg-surface-100-800-token;
258
+ @apply text-surface-900-50-token;
259
+
260
+ @apply rounded-container-token;
261
+ }
262
+
263
+ .q-date__calendar-item .q-btn {
264
+ @apply bg-surface-100-800-token;
265
+ @apply text-surface-900-50-token;
266
+
267
+ @apply rounded-token;
268
+ }
269
+
270
+ .q-date__calendar-item .q-btn--unelevated {
271
+ @apply !bg-surface-900;
272
+ @apply !text-surface-50;
273
+ }
274
+
275
+ .q-date__navigation .q-btn {
276
+ @apply bg-transparent;
277
+ @apply text-surface-900-50-token;
278
+
279
+ @apply rounded-token;
280
+ }
281
+
282
+ .q-date__header {
283
+ @apply bg-surface-300-600-token;
284
+ @apply text-surface-900-50-token;
285
+ }
286
+
287
+ .q-date__months {
288
+ flex-wrap: wrap;
289
+ }
290
+
291
+ /**
292
+ * Prevent the outline from showing on focus when the input is within a QInput
293
+ */
294
+ .q-field__native[type='text']:focus,
295
+ .q-field__native[type='email']:focus,
296
+ .q-field__native[type='url']:focus,
297
+ .q-field__native[type='password']:focus,
298
+ .q-field__native[type='number']:focus,
299
+ .q-field__native[type='date']:focus,
300
+ .q-field__native[type='datetime-local']:focus,
301
+ .q-field__native[type='month']:focus,
302
+ .q-field__native[type='search']:focus,
303
+ .q-field__native[type='tel']:focus,
304
+ .q-field__native[type='time']:focus,
305
+ .q-field__native[type='week']:focus,
306
+ .q-field__native[multiple]:focus,
307
+ .q-field__native textarea:focus,
308
+ .q-field__native select:focus {
309
+ --tw-ring-color: transparent;
310
+ }