@code-coaching/vuetiful 0.4.1 → 0.5.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.
Files changed (40) hide show
  1. package/dist/types/components/molecules/VDrawer.vue.d.ts +0 -18
  2. package/dist/types/services/drawer.service.d.ts +2 -3
  3. package/dist/vuetiful.es.mjs +22 -22
  4. package/dist/vuetiful.umd.js +9 -9
  5. package/package.json +2 -1
  6. package/src/assets/main.css +6 -6
  7. package/src/components/molecules/VDrawer.vue +7 -13
  8. package/src/env.d.ts +4 -4
  9. package/src/services/drawer.service.ts +15 -12
  10. package/src/styles/core.css +49 -49
  11. package/src/styles/elements/alerts.css +13 -13
  12. package/src/styles/elements/badges.css +24 -24
  13. package/src/styles/elements/breadcrumbs.css +19 -19
  14. package/src/styles/elements/buttons.css +86 -86
  15. package/src/styles/elements/cards.css +22 -22
  16. package/src/styles/elements/chips.css +17 -17
  17. package/src/styles/elements/forms.css +237 -236
  18. package/src/styles/elements/lists.css +39 -39
  19. package/src/styles/elements/logo-clouds.css +21 -21
  20. package/src/styles/elements/modals.css +3 -3
  21. package/src/styles/elements/placeholders.css +10 -10
  22. package/src/styles/elements/popups.css +7 -7
  23. package/src/styles/elements/tables.css +73 -73
  24. package/src/styles/elements.css +13 -13
  25. package/src/styles/highlight-js.css +33 -33
  26. package/src/styles/typography.css +97 -97
  27. package/src/styles/variants.css +145 -145
  28. package/src/themes/theme-rocket.css +104 -104
  29. package/src/themes/theme-sahara.css +111 -111
  30. package/src/themes/theme-seafoam.css +110 -109
  31. package/src/themes/theme-seasonal.css +101 -101
  32. package/src/themes/theme-skeleton.css +102 -102
  33. package/src/themes/theme-vintage.css +109 -109
  34. package/src/themes/theme-vuetiful-0.0.1.css +110 -110
  35. package/src/types/index.ts +1 -1
  36. package/src/types/tailwind.ts +21 -2
  37. package/src/utils/code-block/highlight.service.test.ts +1 -1
  38. package/src/utils/index.test.ts +1 -1
  39. package/src/utils/platform/platform.service.ts +3 -5
  40. package/src/utils/theme/theme.service.test.ts +2 -3
@@ -1,22 +1,22 @@
1
1
  /* Tailwind Elements: chips.css */
2
2
 
3
3
  @layer components {
4
- .chip {
5
- @apply px-3 py-1.5 whitespace-nowrap cursor-pointer;
6
- /* Text */
7
- @apply text-xs text-center;
8
- /* Rounded */
9
- @apply rounded;
10
- /* Flex Columns */
11
- @apply inline-flex justify-center items-center space-x-2;
12
- /* States */
13
- @apply hover:brightness-[1.15];
14
- /* Transitions */
15
- @apply transition-all;
16
- }
4
+ .chip {
5
+ @apply cursor-pointer whitespace-nowrap px-3 py-1.5;
6
+ /* Text */
7
+ @apply text-center text-xs;
8
+ /* Rounded */
9
+ @apply rounded;
10
+ /* Flex Columns */
11
+ @apply inline-flex items-center justify-center space-x-2;
12
+ /* States */
13
+ @apply hover:brightness-[1.15];
14
+ /* Transitions */
15
+ @apply transition-all;
16
+ }
17
17
 
18
- .chip-disabled,
19
- .chip:disabled {
20
- @apply !opacity-50 !cursor-not-allowed active:scale-100;
21
- }
18
+ .chip-disabled,
19
+ .chip:disabled {
20
+ @apply !cursor-not-allowed !opacity-50 active:scale-100;
21
+ }
22
22
  }
@@ -1,268 +1,269 @@
1
1
  /* Stylesheet: forms.css */
2
2
 
3
3
  @layer base {
4
- /* === Resets === */
4
+ /* === Resets === */
5
5
 
6
- fieldset,
7
- legend,
8
- label {
9
- @apply block;
10
- }
6
+ fieldset,
7
+ legend,
8
+ label {
9
+ @apply block;
10
+ }
11
11
 
12
- /* Placeholders */
13
- ::-moz-placeholder {
14
- @apply text-surface-500-400-token;
15
- }
16
- :-ms-input-placeholder {
17
- @apply text-surface-500-400-token;
18
- }
19
- ::placeholder {
20
- @apply text-surface-500-400-token;
21
- }
12
+ /* Placeholders */
13
+ ::-moz-placeholder {
14
+ @apply text-surface-500-400-token;
15
+ }
16
+ :-ms-input-placeholder {
17
+ @apply text-surface-500-400-token;
18
+ }
19
+ ::placeholder {
20
+ @apply text-surface-500-400-token;
21
+ }
22
22
 
23
- /* Date Calendar Picker (Webkit) */
24
- ::-webkit-calendar-picker-indicator {
25
- @apply dark:invert;
26
- }
23
+ /* Date Calendar Picker (Webkit) */
24
+ ::-webkit-calendar-picker-indicator {
25
+ @apply dark:invert;
26
+ }
27
27
 
28
- /* Progress Bar */
29
- progress {
30
- webkit-appearance: none;
31
- -moz-appearance: none;
32
- appearance: none;
33
- @apply w-full h-2 overflow-hidden rounded-token;
34
- @apply bg-surface-400-500-token;
35
- }
36
- progress::-webkit-progress-bar {
37
- @apply bg-surface-400-500-token;
38
- }
39
- progress::-webkit-progress-value {
40
- @apply bg-surface-900-50-token;
41
- }
42
- ::-moz-progress-bar {
43
- @apply bg-surface-900-50-token;
44
- }
45
- :indeterminate::-moz-progress-bar {
46
- width: 0;
47
- }
28
+ /* Progress Bar */
29
+ progress {
30
+ webkit-appearance: none;
31
+ -moz-appearance: none;
32
+ appearance: none;
33
+ @apply h-2 w-full overflow-hidden rounded-token;
34
+ @apply bg-surface-400-500-token;
35
+ }
36
+ progress::-webkit-progress-bar {
37
+ @apply bg-surface-400-500-token;
38
+ }
39
+ progress::-webkit-progress-value {
40
+ @apply bg-surface-900-50-token;
41
+ }
42
+ ::-moz-progress-bar {
43
+ @apply bg-surface-900-50-token;
44
+ }
45
+ :indeterminate::-moz-progress-bar {
46
+ width: 0;
47
+ }
48
48
 
49
- /* Range Input */
50
- /* https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
51
- [type='range'] {
52
- @apply w-full accent-surface-900 dark:accent-surface-50;
53
- }
49
+ /* Range Input */
50
+ /* https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
51
+ [type="range"] {
52
+ @apply w-full accent-surface-900 dark:accent-surface-50;
53
+ }
54
54
 
55
- /* === Text Labeling === */
55
+ /* === Text Labeling === */
56
56
 
57
- .legend {
58
- @apply font-heading-token text-xl md:text-2xl;
59
- }
57
+ .legend {
58
+ @apply text-xl font-heading-token md:text-2xl;
59
+ }
60
60
 
61
- .label {
62
- @apply space-y-1;
63
- }
61
+ .label {
62
+ @apply space-y-1;
63
+ }
64
64
 
65
- /* === Core Styles === */
65
+ /* === Core Styles === */
66
66
 
67
- .input,
68
- .textarea,
69
- .select,
70
- .input-group {
71
- @apply w-full transition duration-200;
72
- /* Background */
73
- @apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105;
74
- /* Ring */
75
- @apply !ring-0;
76
- /* Border */
77
- @apply border-token border-surface-400-500-token focus-within:border-primary-500;
78
- }
67
+ .input,
68
+ .textarea,
69
+ .select,
70
+ .input-group {
71
+ @apply w-full transition duration-200;
72
+ /* Background */
73
+ @apply bg-surface-200-700-token hover:brightness-105 focus:brightness-105;
74
+ /* Ring */
75
+ @apply !ring-0;
76
+ /* Border */
77
+ @apply border-token border-surface-400-500-token focus-within:border-primary-500;
78
+ }
79
79
 
80
- /* Base Inputs */
81
- .input,
82
- .input-group {
83
- @apply rounded-token;
84
- }
80
+ /* Base Inputs */
81
+ .input,
82
+ .input-group {
83
+ @apply rounded-token;
84
+ }
85
85
 
86
- /* Container Inputs */
87
- .textarea,
88
- .select {
89
- @apply rounded-container-token;
90
- }
86
+ /* Container Inputs */
87
+ .textarea,
88
+ .select {
89
+ @apply rounded-container-token;
90
+ }
91
91
 
92
- /* Select (size/multiple) */
93
- .select {
94
- @apply p-2 pr-8 space-y-1;
95
- }
96
- .select[size] {
97
- @apply bg-none;
98
- }
99
- .select optgroup {
100
- @apply space-y-1 font-bold;
101
- }
102
- .select optgroup option {
103
- @apply ml-0 pl-0;
104
- }
105
- .select optgroup option:first-of-type {
106
- @apply mt-3;
107
- }
108
- .select optgroup option:last-child {
109
- @apply !mb-3;
110
- }
111
- .select option {
112
- @apply bg-surface-200-700-token px-4 py-2 rounded-token cursor-pointer;
113
- }
114
- .select option:checked {
115
- /* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
116
- background: rgb(var(--color-primary-500)) linear-gradient(0deg, rgb(var(--color-primary-500)) 0%, rgb(var(--color-primary-500)) 100%);
117
- @apply text-on-primary-token;
118
- }
92
+ /* Select (size/multiple) */
93
+ .select {
94
+ @apply space-y-1 p-2 pr-8;
95
+ }
96
+ .select[size] {
97
+ @apply bg-none;
98
+ }
99
+ .select optgroup {
100
+ @apply space-y-1 font-bold;
101
+ }
102
+ .select optgroup option {
103
+ @apply ml-0 pl-0;
104
+ }
105
+ .select optgroup option:first-of-type {
106
+ @apply mt-3;
107
+ }
108
+ .select optgroup option:last-child {
109
+ @apply !mb-3;
110
+ }
111
+ .select option {
112
+ @apply cursor-pointer px-4 py-2 bg-surface-200-700-token rounded-token;
113
+ }
114
+ .select option:checked {
115
+ /* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
116
+ background: rgb(var(--color-primary-500))
117
+ linear-gradient(0deg, rgb(var(--color-primary-500)) 0%, rgb(var(--color-primary-500)) 100%);
118
+ @apply text-on-primary-token;
119
+ }
119
120
 
120
- /* Checkbox & Radio */
121
- .checkbox,
122
- .radio {
123
- @apply w-5 h-5 !ring-0 rounded cursor-pointer;
124
- /* Background */
125
- @apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105;
126
- /* Border */
127
- @apply border-token border-surface-400-500-token focus:border-primary-500;
128
- }
129
- .checkbox:checked,
130
- .radio:checked {
131
- @apply bg-primary-500 hover:bg-primary-500 focus:bg-primary-500 focus:ring-0;
132
- }
133
- .radio {
134
- @apply rounded-token;
135
- }
121
+ /* Checkbox & Radio */
122
+ .checkbox,
123
+ .radio {
124
+ @apply h-5 w-5 cursor-pointer rounded !ring-0;
125
+ /* Background */
126
+ @apply bg-surface-200-700-token hover:brightness-105 focus:brightness-105;
127
+ /* Border */
128
+ @apply border-token border-surface-400-500-token focus:border-primary-500;
129
+ }
130
+ .checkbox:checked,
131
+ .radio:checked {
132
+ @apply bg-primary-500 hover:bg-primary-500 focus:bg-primary-500 focus:ring-0;
133
+ }
134
+ .radio {
135
+ @apply rounded-token;
136
+ }
136
137
 
137
- /* === Specialized === */
138
+ /* === Specialized === */
138
139
 
139
- /* File Inputs */
140
- .input[type='file'] {
141
- @apply p-1;
142
- }
140
+ /* File Inputs */
141
+ .input[type="file"] {
142
+ @apply p-1;
143
+ }
143
144
 
144
- /* Color Picker */
145
- /* https://stackoverflow.com/questions/11167281/webkit-css-to-control-the-box-around-the-color-in-an-inputtype-color */
146
- .input[type='color'] {
147
- @apply border-none w-10 h-10 overflow-hidden rounded-token cursor-pointer;
148
- -webkit-appearance: none; /* WebKit Only */
149
- }
150
- .input[type='color']::-webkit-color-swatch-wrapper {
151
- @apply p-0;
152
- }
153
- .input[type='color']::-webkit-color-swatch {
154
- @apply border-none hover:brightness-110;
155
- }
156
- .input[type='color']::-moz-color-swatch {
157
- @apply border-none;
158
- }
145
+ /* Color Picker */
146
+ /* https://stackoverflow.com/questions/11167281/webkit-css-to-control-the-box-around-the-color-in-an-inputtype-color */
147
+ .input[type="color"] {
148
+ @apply h-10 w-10 cursor-pointer overflow-hidden border-none rounded-token;
149
+ -webkit-appearance: none; /* WebKit Only */
150
+ }
151
+ .input[type="color"]::-webkit-color-swatch-wrapper {
152
+ @apply p-0;
153
+ }
154
+ .input[type="color"]::-webkit-color-swatch {
155
+ @apply border-none hover:brightness-110;
156
+ }
157
+ .input[type="color"]::-moz-color-swatch {
158
+ @apply border-none;
159
+ }
159
160
 
160
- /* === States === */
161
+ /* === States === */
161
162
 
162
- .input:disabled,
163
- .textarea:disabled,
164
- .select:disabled {
165
- @apply !opacity-50 !cursor-not-allowed hover:!brightness-100;
166
- }
163
+ .input:disabled,
164
+ .textarea:disabled,
165
+ .select:disabled {
166
+ @apply !cursor-not-allowed !opacity-50 hover:!brightness-100;
167
+ }
167
168
 
168
- .input[readonly],
169
- .textarea[readonly],
170
- .select[readonly] {
171
- @apply !border-0 !cursor-not-allowed hover:!brightness-100;
172
- }
169
+ .input[readonly],
170
+ .textarea[readonly],
171
+ .select[readonly] {
172
+ @apply !cursor-not-allowed !border-0 hover:!brightness-100;
173
+ }
173
174
 
174
- /* === Input Groups === */
175
+ /* === Input Groups === */
175
176
 
176
- .input-group {
177
- @apply grid overflow-hidden;
178
- }
179
- .input-group input,
180
- .input-group select {
181
- @apply border-0 ring-0 bg-transparent;
182
- }
183
- .input-group select option {
184
- @apply bg-surface-200-700-token;
185
- }
186
- .input-group div,
187
- .input-group a,
188
- .input-group button {
189
- @apply px-4 flex justify-between items-center;
190
- }
191
- .input-group-divider input,
192
- .input-group-divider select,
193
- .input-group-divider div,
194
- .input-group-divider a {
195
- @apply border-l border-surface-400-500-token focus:border-surface-400-500-token;
196
- /* Disable Ring */
197
- @apply !ring-0;
198
- /* Prevent buttons from being squished */
199
- @apply !min-w-fit;
200
- }
201
- .input-group-divider *:first-child {
202
- @apply !border-l-0;
203
- }
204
- .input-group-shim {
205
- @apply bg-surface-400/10 text-surface-600-300-token;
206
- }
177
+ .input-group {
178
+ @apply grid overflow-hidden;
179
+ }
180
+ .input-group input,
181
+ .input-group select {
182
+ @apply border-0 bg-transparent ring-0;
183
+ }
184
+ .input-group select option {
185
+ @apply bg-surface-200-700-token;
186
+ }
187
+ .input-group div,
188
+ .input-group a,
189
+ .input-group button {
190
+ @apply flex items-center justify-between px-4;
191
+ }
192
+ .input-group-divider input,
193
+ .input-group-divider select,
194
+ .input-group-divider div,
195
+ .input-group-divider a {
196
+ @apply border-l border-surface-400-500-token focus:border-surface-400-500-token;
197
+ /* Disable Ring */
198
+ @apply !ring-0;
199
+ /* Prevent buttons from being squished */
200
+ @apply !min-w-fit;
201
+ }
202
+ .input-group-divider *:first-child {
203
+ @apply !border-l-0;
204
+ }
205
+ .input-group-shim {
206
+ @apply bg-surface-400/10 text-surface-600-300-token;
207
+ }
207
208
 
208
- /* === Variants === */
209
+ /* === Variants === */
209
210
 
210
- /* success */
211
- .input-success {
212
- @apply !bg-success-200 !border-success-500 !text-success-700;
213
- }
214
- .input-success::-moz-placeholder {
215
- @apply text-success-700;
216
- }
217
- .input-success:-ms-input-placeholder {
218
- @apply text-success-700;
219
- }
220
- .input-success::placeholder {
221
- @apply text-success-700;
222
- }
211
+ /* success */
212
+ .input-success {
213
+ @apply !border-success-500 !bg-success-200 !text-success-700;
214
+ }
215
+ .input-success::-moz-placeholder {
216
+ @apply text-success-700;
217
+ }
218
+ .input-success:-ms-input-placeholder {
219
+ @apply text-success-700;
220
+ }
221
+ .input-success::placeholder {
222
+ @apply text-success-700;
223
+ }
223
224
 
224
- /* warning */
225
- .input-warning {
226
- @apply !bg-warning-200 !border-warning-500 !text-warning-700;
227
- }
228
- .input-warning::-moz-placeholder {
229
- @apply text-warning-700;
230
- }
231
- .input-warning:-ms-input-placeholder {
232
- @apply text-warning-700;
233
- }
234
- .input-warning::placeholder {
235
- @apply text-warning-700;
236
- }
225
+ /* warning */
226
+ .input-warning {
227
+ @apply !border-warning-500 !bg-warning-200 !text-warning-700;
228
+ }
229
+ .input-warning::-moz-placeholder {
230
+ @apply text-warning-700;
231
+ }
232
+ .input-warning:-ms-input-placeholder {
233
+ @apply text-warning-700;
234
+ }
235
+ .input-warning::placeholder {
236
+ @apply text-warning-700;
237
+ }
237
238
 
238
- /* error */
239
- .input-error {
240
- @apply !bg-error-200 !border-error-500 !text-error-500;
241
- }
242
- .input-error::-moz-placeholder {
243
- @apply text-error-500;
244
- }
245
- .input-error:-ms-input-placeholder {
246
- @apply text-error-500;
247
- }
248
- .input-error::placeholder {
249
- @apply text-error-500;
250
- }
239
+ /* error */
240
+ .input-error {
241
+ @apply !border-error-500 !bg-error-200 !text-error-500;
242
+ }
243
+ .input-error::-moz-placeholder {
244
+ @apply text-error-500;
245
+ }
246
+ .input-error:-ms-input-placeholder {
247
+ @apply text-error-500;
248
+ }
249
+ .input-error::placeholder {
250
+ @apply text-error-500;
251
+ }
251
252
 
252
- /* === Variants === */
253
+ /* === Variants === */
253
254
 
254
- /* Material */
255
- .variant-form-material {
256
- /* Border Radius */
257
- @apply !rounded-tl !rounded-tr !rounded-bl-none !rounded-br-none;
258
- /* Background */
259
- @apply bg-surface-500/10 dark:bg-surface-500/20;
260
- /* Border */
261
- @apply border-0 border-b-2;
262
- /* Blur */
263
- @apply backdrop-blur;
264
- }
265
- .variant-form-material[type='file'] {
266
- @apply !py-1.5;
267
- }
255
+ /* Material */
256
+ .variant-form-material {
257
+ /* Border Radius */
258
+ @apply !rounded-tl !rounded-tr !rounded-bl-none !rounded-br-none;
259
+ /* Background */
260
+ @apply bg-surface-500/10 dark:bg-surface-500/20;
261
+ /* Border */
262
+ @apply border-0 border-b-2;
263
+ /* Blur */
264
+ @apply backdrop-blur;
265
+ }
266
+ .variant-form-material[type="file"] {
267
+ @apply !py-1.5;
268
+ }
268
269
  }
@@ -1,48 +1,48 @@
1
1
  /* Tailwind Elements: button.css */
2
2
 
3
3
  @layer components {
4
- /* === Lists (Parents) === */
4
+ /* === Lists (Parents) === */
5
5
 
6
- .list,
7
- .list-dl,
8
- .list-nav ul {
9
- /* List Style */
10
- @apply list-none;
11
- /* Spacing */
12
- @apply space-y-1;
13
- }
6
+ .list,
7
+ .list-dl,
8
+ .list-nav ul {
9
+ /* List Style */
10
+ @apply list-none;
11
+ /* Spacing */
12
+ @apply space-y-1;
13
+ }
14
14
 
15
- /* === List Items (Children) === */
15
+ /* === List Items (Children) === */
16
16
 
17
- .list li {
18
- /* @apply bg-red-500; */
19
- @apply flex items-center space-x-4 whitespace-nowrap;
20
- /* Padding */
21
- @apply p-2;
22
- /* Theme: Rounded */
23
- @apply rounded-token;
24
- }
17
+ .list li {
18
+ /* @apply bg-red-500; */
19
+ @apply flex items-center space-x-4 whitespace-nowrap;
20
+ /* Padding */
21
+ @apply p-2;
22
+ /* Theme: Rounded */
23
+ @apply rounded-token;
24
+ }
25
25
 
26
- .list-dl div {
27
- /* @apply bg-blue-500; */
28
- @apply flex items-center space-x-4 whitespace-nowrap;
29
- /* Padding */
30
- @apply p-2;
31
- /* Theme: Rounded */
32
- @apply rounded-token;
33
- }
26
+ .list-dl div {
27
+ /* @apply bg-blue-500; */
28
+ @apply flex items-center space-x-4 whitespace-nowrap;
29
+ /* Padding */
30
+ @apply p-2;
31
+ /* Theme: Rounded */
32
+ @apply rounded-token;
33
+ }
34
34
 
35
- .list-nav a,
36
- .list-nav button,
37
- .list-option {
38
- @apply flex items-center space-x-4 whitespace-nowrap;
39
- /* Padding */
40
- @apply px-4 py-2;
41
- /* Hover */
42
- @apply bg-primary-hover-token;
43
- /* Cursor */
44
- @apply cursor-pointer;
45
- /* Theme: Rounded */
46
- @apply rounded-token;
47
- }
35
+ .list-nav a,
36
+ .list-nav button,
37
+ .list-option {
38
+ @apply flex items-center space-x-4 whitespace-nowrap;
39
+ /* Padding */
40
+ @apply px-4 py-2;
41
+ /* Hover */
42
+ @apply bg-primary-hover-token;
43
+ /* Cursor */
44
+ @apply cursor-pointer;
45
+ /* Theme: Rounded */
46
+ @apply rounded-token;
47
+ }
48
48
  }