@rokkit/themes 1.0.0-next.94 → 1.0.0-next.96
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 +11 -11
- package/src/base/alert.css +30 -0
- package/src/base/molecules.css +3 -3
- package/src/base/organisms.css +0 -27
- package/src/base/tree.css +18 -0
- package/src/base.css +2 -0
- package/src/material/list.css +1 -1
- package/src/minimal/list.css +13 -11
- package/src/rokkit/alert.css +4 -0
- package/src/rokkit/input.css +36 -0
- package/src/rokkit/molecules.css +0 -42
- package/src/rokkit.css +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokkit/themes",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.96",
|
|
4
4
|
"description": "Themes for use with rokkit components.",
|
|
5
5
|
"author": "Jerry Thomas <me@jerrythomas.name>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@sveltejs/vite-plugin-svelte": "^3.
|
|
15
|
-
"@vitest/coverage-v8": "^1.
|
|
16
|
-
"@vitest/ui": "~1.
|
|
17
|
-
"jsdom": "^24.
|
|
18
|
-
"svelte": "^4.2.
|
|
19
|
-
"typescript": "^5.4.
|
|
20
|
-
"vite": "^5.2.
|
|
21
|
-
"vitest": "~1.
|
|
22
|
-
"shared-config": "1.0.0-next.
|
|
14
|
+
"@sveltejs/vite-plugin-svelte": "^3.1.1",
|
|
15
|
+
"@vitest/coverage-v8": "^1.6.0",
|
|
16
|
+
"@vitest/ui": "~1.6.0",
|
|
17
|
+
"jsdom": "^24.1.0",
|
|
18
|
+
"svelte": "^4.2.17",
|
|
19
|
+
"typescript": "^5.4.5",
|
|
20
|
+
"vite": "^5.2.12",
|
|
21
|
+
"vitest": "~1.6.0",
|
|
22
|
+
"shared-config": "1.0.0-next.96"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"src"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@rokkit/core": "1.0.0-next.
|
|
41
|
+
"@rokkit/core": "1.0.0-next.96"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"format": "prettier --write .",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* Alert styles */
|
|
2
|
+
alert-list {
|
|
3
|
+
@apply top-12 right-8 w-80;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
alert,
|
|
7
|
+
error,
|
|
8
|
+
info,
|
|
9
|
+
warning,
|
|
10
|
+
success {
|
|
11
|
+
@apply px-4 py-2 border rounded select-none cursor-pointer;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
alert.error,
|
|
15
|
+
alert.danger,
|
|
16
|
+
error {
|
|
17
|
+
@apply bg-error text-error-contrast border-error-muted;
|
|
18
|
+
}
|
|
19
|
+
alert.info,
|
|
20
|
+
info {
|
|
21
|
+
@apply bg-info text-info-contrast border-info-muted;
|
|
22
|
+
}
|
|
23
|
+
alert.warning,
|
|
24
|
+
warning {
|
|
25
|
+
@apply bg-warn text-warn-contrast border-warn-muted;
|
|
26
|
+
}
|
|
27
|
+
alert.success,
|
|
28
|
+
success {
|
|
29
|
+
@apply bg-success text-success-contrast border-success-muted;
|
|
30
|
+
}
|
package/src/base/molecules.css
CHANGED
package/src/base/organisms.css
CHANGED
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
/* Alert styles */
|
|
2
|
-
alert-list {
|
|
3
|
-
@apply top-4 right-4 w-80;
|
|
4
|
-
}
|
|
5
|
-
alert,
|
|
6
|
-
error,
|
|
7
|
-
info,
|
|
8
|
-
warning,
|
|
9
|
-
success {
|
|
10
|
-
@apply px-4 py-2 border rounded select-none cursor-pointer;
|
|
11
|
-
}
|
|
12
|
-
alert.error {
|
|
13
|
-
@apply bg-error text-error border-error;
|
|
14
|
-
}
|
|
15
|
-
alert.info,
|
|
16
|
-
info {
|
|
17
|
-
@apply bg-info text-info border-info;
|
|
18
|
-
}
|
|
19
|
-
alert.warning,
|
|
20
|
-
warning {
|
|
21
|
-
@apply bg-warn text-warn border-warn;
|
|
22
|
-
}
|
|
23
|
-
alert.success,
|
|
24
|
-
success {
|
|
25
|
-
@apply bg-pass text-pass border-pass;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
1
|
input-select,
|
|
29
2
|
drop-down {
|
|
30
3
|
@apply overflow-visible cursor-pointer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
tree,
|
|
2
|
+
nested-list {
|
|
3
|
+
@apply flex flex-col w-full text-sm;
|
|
4
|
+
}
|
|
5
|
+
nested-list node > div {
|
|
6
|
+
@apply px-2 h-8;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
nested-list node {
|
|
10
|
+
@apply flex flex-col;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
node > div > item {
|
|
14
|
+
@apply px-1;
|
|
15
|
+
}
|
|
16
|
+
node > div > span {
|
|
17
|
+
@apply flex-shrink-0;
|
|
18
|
+
}
|
package/src/base.css
CHANGED
package/src/material/list.css
CHANGED
package/src/minimal/list.css
CHANGED
|
@@ -56,18 +56,20 @@
|
|
|
56
56
|
/* @apply hover:text-secondary; */
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.minimal
|
|
60
|
-
@apply
|
|
59
|
+
/* .minimal nested-list {
|
|
60
|
+
@apply text-sm;
|
|
61
|
+
} */
|
|
62
|
+
.minimal node > div {
|
|
63
|
+
@apply h-7 px-2 py-1;
|
|
61
64
|
}
|
|
62
65
|
.minimal node > item {
|
|
63
66
|
@apply px-1 gap-1;
|
|
64
67
|
}
|
|
65
|
-
.minimal node > span {
|
|
66
|
-
@apply w-3;
|
|
68
|
+
.minimal node > div > span > i {
|
|
69
|
+
@apply border-none w-3;
|
|
67
70
|
}
|
|
68
|
-
.minimal node >
|
|
69
|
-
|
|
70
|
-
@apply text-sm;
|
|
71
|
+
.minimal node > div > icon {
|
|
72
|
+
@apply text-xs text-neutral-400;
|
|
71
73
|
}
|
|
72
74
|
.minimal node[aria-selected='true'] > item > p {
|
|
73
75
|
@apply text-secondary-600;
|
|
@@ -82,10 +84,10 @@
|
|
|
82
84
|
@apply text-sm;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
.minimal .small node {
|
|
87
|
+
.minimal .small node > div {
|
|
86
88
|
@apply text-sm gap-1 h-5;
|
|
87
89
|
}
|
|
88
|
-
.minimal .small node >
|
|
90
|
+
.minimal .small node > div > icon {
|
|
89
91
|
@apply text-sm;
|
|
90
92
|
}
|
|
91
93
|
.minimal .small item > img,
|
|
@@ -103,9 +105,9 @@
|
|
|
103
105
|
@apply h-full bg-neutral-inset min-w-40;
|
|
104
106
|
}
|
|
105
107
|
|
|
106
|
-
.minimal node >
|
|
108
|
+
/* .minimal node > div > i {
|
|
107
109
|
@apply border-neutral-muted;
|
|
108
|
-
}
|
|
110
|
+
} */
|
|
109
111
|
|
|
110
112
|
.minimal crumbs {
|
|
111
113
|
@apply flex-grow gap-1 text-sm;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* Styles for 'input-field' class */
|
|
2
|
+
.rokkit input-field field {
|
|
3
|
+
@apply p-2px box-border border border-neutral-muted rounded;
|
|
4
|
+
}
|
|
5
|
+
.rokkit input-field input,
|
|
6
|
+
.rokkit input-field textarea,
|
|
7
|
+
.rokkit input-field select {
|
|
8
|
+
@apply border-0 rounded-sm;
|
|
9
|
+
}
|
|
10
|
+
.rokkit checkbox {
|
|
11
|
+
@apply outline-none;
|
|
12
|
+
}
|
|
13
|
+
.rokkit input-field > label {
|
|
14
|
+
@apply text-secondary-600;
|
|
15
|
+
}
|
|
16
|
+
.rokkit input-field field > label {
|
|
17
|
+
@apply w-full h-full flex items-center text-secondary-600 uppercase text-xs;
|
|
18
|
+
}
|
|
19
|
+
.rokkit input-field:not(.disabled) field:focus-within {
|
|
20
|
+
@apply border-neutral-base bg-gradient-to-r from-primary to-secondary;
|
|
21
|
+
}
|
|
22
|
+
.rokkit input-field.disabled label {
|
|
23
|
+
@apply text-neutral-500;
|
|
24
|
+
}
|
|
25
|
+
/* .rokkit input-field.disabled field:focus-within {
|
|
26
|
+
@apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle;
|
|
27
|
+
} */
|
|
28
|
+
.rokkit input-field > span {
|
|
29
|
+
@apply border-r border-neutral-muted bg-neutral-base px-1 h-full aspect-square;
|
|
30
|
+
}
|
|
31
|
+
.rokkit input-field message {
|
|
32
|
+
@apply px-2 py-1 bg-neutral-base rounded;
|
|
33
|
+
}
|
|
34
|
+
.rokkit input-field.fail {
|
|
35
|
+
@apply bg-error rounded px-2;
|
|
36
|
+
}
|
package/src/rokkit/molecules.css
CHANGED
|
@@ -1,40 +1,3 @@
|
|
|
1
|
-
/* Styles for 'input-field' class */
|
|
2
|
-
.rokkit input-field field {
|
|
3
|
-
@apply p-2px box-border border border-neutral-muted rounded;
|
|
4
|
-
}
|
|
5
|
-
.rokkit input-field input,
|
|
6
|
-
.rokkit input-field textarea,
|
|
7
|
-
.rokkit input-field select {
|
|
8
|
-
@apply border-0 rounded-sm;
|
|
9
|
-
}
|
|
10
|
-
.rokkit checkbox {
|
|
11
|
-
@apply outline-none;
|
|
12
|
-
}
|
|
13
|
-
.rokkit input-field > label {
|
|
14
|
-
@apply text-secondary-600;
|
|
15
|
-
}
|
|
16
|
-
.rokkit input-field field > label {
|
|
17
|
-
@apply w-full h-full flex items-center text-secondary-600 uppercase text-xs;
|
|
18
|
-
}
|
|
19
|
-
.rokkit input-field:not(.disabled) field:focus-within {
|
|
20
|
-
@apply border-neutral-base bg-gradient-to-r from-primary to-secondary;
|
|
21
|
-
}
|
|
22
|
-
.rokkit input-field.disabled label {
|
|
23
|
-
@apply text-neutral-500;
|
|
24
|
-
}
|
|
25
|
-
/* .rokkit input-field.disabled field:focus-within {
|
|
26
|
-
@apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle;
|
|
27
|
-
} */
|
|
28
|
-
.rokkit input-field > span {
|
|
29
|
-
@apply border-r border-neutral-muted bg-neutral-base px-1 h-full aspect-square;
|
|
30
|
-
}
|
|
31
|
-
.rokkit input-field message {
|
|
32
|
-
@apply px-2 py-1 bg-neutral-base rounded;
|
|
33
|
-
}
|
|
34
|
-
.rokkit input-field.fail {
|
|
35
|
-
@apply bg-error rounded px-2;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
1
|
/* Styles for 'input-range' class */
|
|
39
2
|
.rokkit input-range range-track {
|
|
40
3
|
@apply h-2 mt-2 relative;
|
|
@@ -109,11 +72,6 @@
|
|
|
109
72
|
@apply text-secondary;
|
|
110
73
|
}
|
|
111
74
|
|
|
112
|
-
/* Styles for 'alert-list' class */
|
|
113
|
-
.rokkit alert-list {
|
|
114
|
-
@apply top-4 right-4 w-80;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
75
|
/* Pill styles */
|
|
118
76
|
.rokkit .pill {
|
|
119
77
|
@apply rounded-full bg-neutral-inset border-neutral-subtle border px-2 py-1 flex-grow-0;
|