@code-coaching/vuetiful 0.4.0 → 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.
- package/dist/types/components/molecules/VDrawer.vue.d.ts +0 -18
- package/dist/types/services/drawer.service.d.ts +2 -3
- package/dist/vuetiful.es.mjs +24 -28
- package/dist/vuetiful.umd.js +9 -9
- package/package.json +2 -1
- package/src/assets/main.css +6 -6
- package/src/components/molecules/VDrawer.vue +7 -13
- package/src/components/molecules/VShell.vue +2 -2
- package/src/env.d.ts +4 -4
- package/src/services/drawer.service.ts +15 -12
- package/src/styles/core.css +49 -49
- package/src/styles/elements/alerts.css +13 -13
- package/src/styles/elements/badges.css +24 -24
- package/src/styles/elements/breadcrumbs.css +19 -19
- package/src/styles/elements/buttons.css +86 -86
- package/src/styles/elements/cards.css +22 -22
- package/src/styles/elements/chips.css +17 -17
- package/src/styles/elements/forms.css +237 -236
- package/src/styles/elements/lists.css +39 -39
- package/src/styles/elements/logo-clouds.css +21 -21
- package/src/styles/elements/modals.css +3 -3
- package/src/styles/elements/placeholders.css +10 -10
- package/src/styles/elements/popups.css +7 -7
- package/src/styles/elements/tables.css +73 -73
- package/src/styles/elements.css +13 -13
- package/src/styles/highlight-js.css +33 -33
- package/src/styles/typography.css +97 -97
- package/src/styles/variants.css +145 -145
- package/src/themes/theme-rocket.css +104 -104
- package/src/themes/theme-sahara.css +111 -111
- package/src/themes/theme-seafoam.css +110 -109
- package/src/themes/theme-seasonal.css +101 -101
- package/src/themes/theme-skeleton.css +102 -102
- package/src/themes/theme-vintage.css +109 -109
- package/src/themes/theme-vuetiful-0.0.1.css +110 -110
- package/src/types/index.ts +1 -1
- package/src/types/tailwind.ts +21 -2
- package/src/utils/code-block/highlight.service.test.ts +1 -1
- package/src/utils/index.test.ts +1 -1
- package/src/utils/platform/platform.service.ts +3 -5
- package/src/utils/theme/theme.service.test.ts +2 -3
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
/* Tailwind Elements: button.css */
|
|
2
2
|
|
|
3
3
|
@layer components {
|
|
4
|
-
|
|
4
|
+
/* === Lists (Parents) === */
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
+
/* === List Items (Children) === */
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
/* Tailwind Elements: logo-clouds.css */
|
|
2
2
|
|
|
3
3
|
@layer components {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
.logo-cloud {
|
|
5
|
+
@apply grid overflow-hidden;
|
|
6
|
+
/* Theme: Rounded */
|
|
7
|
+
@apply rounded-container-token;
|
|
8
|
+
}
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
/* === Logo Item (Child) === */
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
.logo-item {
|
|
13
|
+
@apply: flex-auto text-center space-x-4 shadow;
|
|
14
|
+
/* Center Contents */
|
|
15
|
+
@apply flex items-center justify-center space-x-4;
|
|
16
|
+
/* Background */
|
|
17
|
+
@apply bg-surface-100-800-token;
|
|
18
|
+
/* Text */
|
|
19
|
+
@apply text-base font-bold text-black dark:text-white;
|
|
20
|
+
/* Padding */
|
|
21
|
+
@apply py-4 md:py-8;
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
/* === States === */
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
a.logo-item {
|
|
27
|
+
@apply hover:brightness-110;
|
|
28
|
+
}
|
|
29
29
|
}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
/* === Modal (helpers) === */
|
|
4
4
|
|
|
5
5
|
.w-modal-slim {
|
|
6
|
-
|
|
6
|
+
@apply w-full max-w-[400px];
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.w-modal {
|
|
10
|
-
|
|
10
|
+
@apply w-full max-w-[640px];
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.w-modal-wide {
|
|
14
|
-
|
|
14
|
+
@apply w-full max-w-[80%];
|
|
15
15
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* Tailwind Elements: placeholders.css */
|
|
2
2
|
|
|
3
3
|
@layer components {
|
|
4
|
-
|
|
4
|
+
/* === Base === */
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
.placeholder {
|
|
7
|
+
@apply h-5 bg-surface-300-600-token;
|
|
8
|
+
/* Theme: Rounded */
|
|
9
|
+
@apply rounded-token;
|
|
10
|
+
}
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
/* === Shapes === */
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
.placeholder-circle {
|
|
15
|
+
@apply aspect-square rounded-full bg-surface-300-600-token;
|
|
16
|
+
}
|
|
17
17
|
}
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
/* === Popup === */
|
|
4
4
|
|
|
5
5
|
[data-popup] {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
/* https://floating-ui.com/docs/computeposition#usage */
|
|
7
|
+
@apply absolute top-0 left-0; /* max-w-max */
|
|
8
|
+
/* Set hidden on page load */
|
|
9
|
+
@apply hidden;
|
|
10
|
+
/* Transitions */
|
|
11
|
+
@apply transition-opacity duration-200;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
[data-popup] .arrow {
|
|
15
|
-
|
|
15
|
+
@apply absolute h-2 w-2 rotate-45;
|
|
16
16
|
}
|
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
/* Elements: tables.css */
|
|
2
2
|
|
|
3
3
|
@layer components {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
.table-container {
|
|
5
|
+
@apply w-full overflow-x-auto rounded-container-token;
|
|
6
|
+
}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
.table {
|
|
9
|
+
@apply w-full table-auto overflow-hidden;
|
|
10
|
+
/* background */
|
|
11
|
+
@apply bg-surface-100-800-token;
|
|
12
|
+
/* Theme: Rounded */
|
|
13
|
+
@apply rounded-container-token;
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
/* === Hover Styles ==== */
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
.table-hover tbody tr {
|
|
19
|
+
@apply hover:bg-surface-500/20 even:hover:bg-surface-500/20;
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
.table-interactive tbody tr {
|
|
23
|
+
@apply cursor-pointer hover:bg-primary-hover-token even:hover:bg-primary-hover-token;
|
|
24
|
+
}
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
/* === Sort Styles ==== */
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
[data-sort] {
|
|
29
|
+
@apply cursor-pointer hover:bg-primary-hover-token;
|
|
30
|
+
/* Sort Icon - invisible by default */
|
|
31
|
+
@apply after:!ml-2 after:opacity-0 after:!content-['↓'];
|
|
32
|
+
}
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
.table-sort-asc {
|
|
35
|
+
@apply after:opacity-50 after:!content-['↓'];
|
|
36
|
+
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
.table-sort-dsc {
|
|
39
|
+
@apply after:opacity-50 after:!content-['↑'];
|
|
40
|
+
}
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
/* === Table Head === */
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
.table thead {
|
|
45
|
+
@apply border-b border-surface-500/20 bg-surface-200-700-token;
|
|
46
|
+
}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
.table thead tr {
|
|
49
|
+
@apply text-left capitalize;
|
|
50
|
+
}
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
.table thead th {
|
|
53
|
+
@apply p-4 font-bold;
|
|
54
|
+
}
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
/* === Table Body === */
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
.table tbody tr {
|
|
59
|
+
@apply border-b border-surface-500/20 even:bg-surface-500/5;
|
|
60
|
+
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
.table tbody td {
|
|
63
|
+
/* NOTE: removed this to allow wrapping */
|
|
64
|
+
@apply whitespace-nowrap px-3 py-4 align-top text-sm lg:whitespace-normal;
|
|
65
|
+
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
.table-compact tbody td {
|
|
68
|
+
@apply !py-3;
|
|
69
|
+
}
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
.table-comfortable tbody td {
|
|
72
|
+
@apply !py-5;
|
|
73
|
+
}
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
/* === Table Foot === */
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
.table tfoot {
|
|
78
|
+
@apply bg-surface-100-800-token;
|
|
79
|
+
}
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
.table tfoot tr {
|
|
82
|
+
@apply text-left capitalize;
|
|
83
|
+
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
.table tfoot th,
|
|
86
|
+
.table tfoot td {
|
|
87
|
+
@apply p-4;
|
|
88
|
+
}
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
/* === Rows Specific === */
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
.table-row-checked {
|
|
93
|
+
@apply !bg-secondary-500/20;
|
|
94
|
+
}
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
/* === Cells Specific === */
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
/* Source: https://stackoverflow.com/questions/11267154/fit-cell-width-to-content */
|
|
99
|
+
.table-cell-fit {
|
|
100
|
+
@apply w-[1%] whitespace-nowrap;
|
|
101
|
+
}
|
|
102
102
|
}
|
package/src/styles/elements.css
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
/* Import AFTER your theme, but BEFORE your global stylesheet. */
|
|
3
3
|
/* Recommended as the LAST stylesheet in the set */
|
|
4
4
|
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
@import
|
|
9
|
-
@import
|
|
10
|
-
@import
|
|
11
|
-
@import
|
|
12
|
-
@import
|
|
13
|
-
@import
|
|
14
|
-
@import
|
|
15
|
-
@import
|
|
5
|
+
@import "elements/alerts.css";
|
|
6
|
+
@import "elements/badges.css";
|
|
7
|
+
@import "elements/breadcrumbs.css";
|
|
8
|
+
@import "elements/buttons.css";
|
|
9
|
+
@import "elements/cards.css";
|
|
10
|
+
@import "elements/chips.css";
|
|
11
|
+
@import "elements/forms.css";
|
|
12
|
+
@import "elements/lists.css";
|
|
13
|
+
@import "elements/logo-clouds.css";
|
|
14
|
+
@import "elements/placeholders.css";
|
|
15
|
+
@import "elements/tables.css";
|
|
16
16
|
|
|
17
17
|
/* Utilities */
|
|
18
|
-
@import
|
|
19
|
-
@import
|
|
18
|
+
@import "elements/modals.css";
|
|
19
|
+
@import "elements/popups.css";
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
.hljs-template-variable,
|
|
9
9
|
.hljs-type,
|
|
10
10
|
.hljs-variable.language_ {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/* color: #ff7b72; */
|
|
12
|
+
@apply text-red-400;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* Purple */
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
.hljs-title.class_,
|
|
18
18
|
.hljs-title.class_.inherited__,
|
|
19
19
|
.hljs-title.function_ {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
/* color: #d2a8ff; */
|
|
21
|
+
@apply text-purple-400;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/* Sky */
|
|
@@ -32,31 +32,31 @@
|
|
|
32
32
|
.hljs-selector-class,
|
|
33
33
|
.hljs-selector-id,
|
|
34
34
|
.hljs-variable {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
/* color: #79c0ff; */
|
|
36
|
+
@apply text-sky-300;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/* Blue */
|
|
40
40
|
.hljs-meta .hljs-string,
|
|
41
41
|
.hljs-regexp,
|
|
42
42
|
.hljs-string {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
/* color: #a5d6ff; */
|
|
44
|
+
@apply text-blue-400;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/* Amber (types) */
|
|
48
48
|
.hljs-built_in,
|
|
49
49
|
.hljs-symbol {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
/* color: #ffa657; */
|
|
51
|
+
@apply text-amber-400;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/* Gray (Medium) */
|
|
55
55
|
.hljs-code,
|
|
56
56
|
.hljs-comment,
|
|
57
57
|
.hljs-formula {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
/* color: #8b949e; */
|
|
59
|
+
@apply text-neutral-500;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/* Green (Tags) */
|
|
@@ -64,53 +64,53 @@
|
|
|
64
64
|
.hljs-quote,
|
|
65
65
|
.hljs-selector-pseudo,
|
|
66
66
|
.hljs-selector-tag {
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
/* color: #7ee787; */
|
|
68
|
+
@apply text-green-400;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/* Pink (Light) */
|
|
72
72
|
.hljs-subst {
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
/* color: #c9d1d9; */
|
|
74
|
+
@apply text-pink-300;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/* Sky */
|
|
78
78
|
.hljs-section {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
/* color: #1f6feb; */
|
|
80
|
+
/* font-weight: 700; */
|
|
81
|
+
@apply font-bold text-sky-400;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/* Yellow */
|
|
85
85
|
.hljs-bullet {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
/* color: #f2cc60; */
|
|
87
|
+
@apply text-yellow-400;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
/* Gray (Light) */
|
|
91
91
|
.hljs-emphasis {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
/* color: #c9d1d9; */
|
|
93
|
+
/* font-style: italic; */
|
|
94
|
+
@apply italic text-neutral-200;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/* Gray (Light) */
|
|
98
98
|
.hljs-strong {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
/* color: #c9d1d9; */
|
|
100
|
+
/* font-weight: 700; */
|
|
101
|
+
@apply font-bold text-neutral-200;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/* Lime / Green */
|
|
105
105
|
.hljs-addition {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
/* color: #aff5b4; */
|
|
107
|
+
/* background-color: #033a16; */
|
|
108
|
+
@apply bg-green-700 text-lime-300;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/* Pink / Red */
|
|
112
112
|
.hljs-deletion {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
/* color: #ffdcd7; */
|
|
114
|
+
/* background-color: #67060c; */
|
|
115
|
+
@apply bg-rose-700 text-rose-300;
|
|
116
116
|
}
|