@rokkit/themes 1.0.0-next.81 → 1.0.0-next.82
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 +3 -3
- package/src/base/atoms.css +1 -1
- package/src/material/list.css +7 -7
- package/src/minimal/list.css +10 -10
- package/src/rokkit/atoms.css +3 -3
- package/src/rokkit/molecules.css +2 -2
- package/src/rokkit/organisms.css +27 -22
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.82",
|
|
4
4
|
"description": "Themes for use with rokkit components.",
|
|
5
5
|
"author": "Jerry Thomas <me@jerrythomas.name>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"typescript": "^5.3.3",
|
|
20
20
|
"vite": "^5.1.4",
|
|
21
21
|
"vitest": "~1.3.1",
|
|
22
|
-
"shared-config": "1.0.0-next.
|
|
22
|
+
"shared-config": "1.0.0-next.82"
|
|
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.82"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"format": "prettier --write .",
|
package/src/base/atoms.css
CHANGED
|
@@ -3,7 +3,7 @@ icon {
|
|
|
3
3
|
@apply min-h-4 h-content;
|
|
4
4
|
}
|
|
5
5
|
icon[role='button'] {
|
|
6
|
-
@apply
|
|
6
|
+
@apply p-2 cursor-pointer aspect-square select-none focus:outline;
|
|
7
7
|
}
|
|
8
8
|
icon > i {
|
|
9
9
|
@apply text-2xl leading-6 aspect-square text-current;
|
package/src/material/list.css
CHANGED
|
@@ -26,25 +26,25 @@
|
|
|
26
26
|
@apply border-b-0 border-t-3;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.material node {
|
|
29
|
+
.material .node {
|
|
30
30
|
@apply h-7 px-2;
|
|
31
31
|
}
|
|
32
|
-
.material node > item {
|
|
32
|
+
.material .node > item {
|
|
33
33
|
@apply px-1 gap-1 bg-transparent;
|
|
34
34
|
}
|
|
35
|
-
.material node > span {
|
|
35
|
+
.material .node > span {
|
|
36
36
|
@apply w-3;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.material node > span > icon {
|
|
39
|
+
.material .node > span > icon {
|
|
40
40
|
@apply text-sm;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.material nested-list:focus-within {
|
|
43
|
+
.material .nested-list:focus-within {
|
|
44
44
|
@apply outline-none;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.material node > span > i {
|
|
47
|
+
.material .node > span > i {
|
|
48
48
|
@apply border-transparent;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
/* .material list item[aria-selected='true'] {
|
|
60
60
|
@apply bg-primary text-primary-800;
|
|
61
61
|
} */
|
|
62
|
-
.material node[aria-selected='true'],
|
|
62
|
+
.material .node[aria-selected='true'],
|
|
63
63
|
.material list item[aria-selected='true'] {
|
|
64
64
|
@apply bg-primary text-neutral-base;
|
|
65
65
|
}
|
package/src/minimal/list.css
CHANGED
|
@@ -56,23 +56,23 @@
|
|
|
56
56
|
/* @apply hover:text-secondary; */
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.minimal node {
|
|
59
|
+
.minimal .node {
|
|
60
60
|
@apply h-7 px-2;
|
|
61
61
|
}
|
|
62
|
-
.minimal node > item {
|
|
62
|
+
.minimal .node > item {
|
|
63
63
|
@apply px-1 gap-1;
|
|
64
64
|
}
|
|
65
|
-
.minimal node > span {
|
|
65
|
+
.minimal .node > span {
|
|
66
66
|
@apply w-3;
|
|
67
67
|
}
|
|
68
|
-
.minimal node > span > icon {
|
|
69
|
-
/* .minimal node > icon { */
|
|
68
|
+
.minimal .node > span > icon {
|
|
69
|
+
/* .minimal .node > icon { */
|
|
70
70
|
@apply text-sm;
|
|
71
71
|
}
|
|
72
|
-
.minimal node[aria-selected='true'] > item > p {
|
|
72
|
+
.minimal .node[aria-selected='true'] > item > p {
|
|
73
73
|
@apply text-secondary-600;
|
|
74
74
|
}
|
|
75
|
-
.minimal node.is-selected icon {
|
|
75
|
+
.minimal .node.is-selected icon {
|
|
76
76
|
@apply text-secondary-600;
|
|
77
77
|
@apply hover:text-secondary-600;
|
|
78
78
|
}
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
@apply text-sm;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.minimal .small node {
|
|
85
|
+
.minimal .small .node {
|
|
86
86
|
@apply text-sm gap-1 h-5;
|
|
87
87
|
}
|
|
88
|
-
.minimal .small node > span > icon {
|
|
88
|
+
.minimal .small .node > span > icon {
|
|
89
89
|
@apply text-sm;
|
|
90
90
|
}
|
|
91
91
|
.minimal .small item > img,
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
@apply h-full bg-neutral-inset min-w-40;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.minimal node > span > i {
|
|
106
|
+
.minimal .node > span > i {
|
|
107
107
|
@apply border-neutral-muted;
|
|
108
108
|
}
|
|
109
109
|
|
package/src/rokkit/atoms.css
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
/* Styles for 'icon' class */
|
|
12
12
|
.rokkit icon:not([role='button']) {
|
|
13
|
-
@apply focus:outline-none;
|
|
13
|
+
@apply focus:outline-none text-neutral-700;
|
|
14
14
|
}
|
|
15
15
|
.rokkit icon[role='button'] {
|
|
16
|
-
@apply text-neutral focus:rounded hover:text-secondary;
|
|
16
|
+
@apply text-neutral-700 focus:rounded hover:text-secondary rounded-md;
|
|
17
17
|
}
|
|
18
18
|
.rokkit icon[role='button']:focus {
|
|
19
19
|
@apply outline-none bg-gradient-to-r from-primary to-secondary text-neutral-200 dark:text-neutral-800;
|
|
@@ -65,4 +65,4 @@
|
|
|
65
65
|
|
|
66
66
|
.rokkit.dark ::-webkit-calendar-picker-indicator {
|
|
67
67
|
filter: invert(1);
|
|
68
|
-
}
|
|
68
|
+
}
|
package/src/rokkit/molecules.css
CHANGED
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
.rokkit item > a {
|
|
146
146
|
@apply gap-2;
|
|
147
147
|
}
|
|
148
|
-
.rokkit node item {
|
|
148
|
+
.rokkit .node item {
|
|
149
149
|
@apply px-1 gap-2;
|
|
150
150
|
}
|
|
151
151
|
/* Crumbs styles */
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
@apply flex-grow gap-1 text-sm;
|
|
154
154
|
}
|
|
155
155
|
.rokkit crumbs crumb.is-selected {
|
|
156
|
-
@apply text-secondary;
|
|
156
|
+
@apply text-secondary-700;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.rokkit day-of-month[aria-selected='true'] {
|
package/src/rokkit/organisms.css
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
@apply bg-neutral-muted;
|
|
67
67
|
}
|
|
68
68
|
.rokkit tabs:focus-within .tab[aria-selected='true'] {
|
|
69
|
-
@apply bg-gradient-to-b from-primary to-secondary text-
|
|
69
|
+
@apply bg-gradient-to-b from-primary to-secondary text-white;
|
|
70
70
|
}
|
|
71
71
|
.rokkit tabs.is-below:focus-within .tab[aria-selected='true'] {
|
|
72
72
|
@apply bg-gradient-to-t;
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
|
|
82
82
|
.rokkit button.is-primary,
|
|
83
83
|
.rokkit .button.is-primary {
|
|
84
|
-
@apply bg-gradient-to-r from-primary to-secondary text-
|
|
84
|
+
@apply bg-gradient-to-r from-primary to-secondary text-white;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.rokkit button-group {
|
|
@@ -99,10 +99,15 @@
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.rokkit button-group button.active {
|
|
102
|
-
@apply bg-gradient-to-r from-primary to-secondary text-
|
|
102
|
+
@apply bg-gradient-to-r from-primary to-secondary text-white;
|
|
103
103
|
}
|
|
104
104
|
.rokkit toggle {
|
|
105
|
-
@apply flex flex-row items-center
|
|
105
|
+
@apply flex flex-row items-center gap-3 cursor-pointer;
|
|
106
|
+
@apply rounded-md border border-neutral-muted p-2;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.rokkit toggle:hover > icon {
|
|
110
|
+
@apply text-secondary;
|
|
106
111
|
}
|
|
107
112
|
.rokkit toggle:focus-within {
|
|
108
113
|
@apply outline-none ring-2 ring-primary-500;
|
|
@@ -134,7 +139,7 @@
|
|
|
134
139
|
.rokkit drop-down:focus-within > button {
|
|
135
140
|
/* @apply p-2px; */
|
|
136
141
|
@apply outline-none border-none;
|
|
137
|
-
@apply bg-gradient-to-r from-primary to-secondary text-
|
|
142
|
+
@apply bg-gradient-to-r from-primary to-secondary text-white;
|
|
138
143
|
}
|
|
139
144
|
/* .rokkit :not(field) > input-select:focus-within > selected-item,
|
|
140
145
|
.rokkit drop-down:focus-within > button > span {
|
|
@@ -166,10 +171,10 @@
|
|
|
166
171
|
}
|
|
167
172
|
|
|
168
173
|
/* Nested List and Node styles */
|
|
169
|
-
.rokkit nested-list {
|
|
174
|
+
.rokkit .nested-list {
|
|
170
175
|
@apply text-neutral-800;
|
|
171
176
|
}
|
|
172
|
-
.rokkit nested-list node {
|
|
177
|
+
.rokkit .nested-list .node {
|
|
173
178
|
@apply px-2 h-8;
|
|
174
179
|
}
|
|
175
180
|
|
|
@@ -179,8 +184,8 @@
|
|
|
179
184
|
}
|
|
180
185
|
|
|
181
186
|
/* Focus styles for Nested List, Tree, and Accordion */
|
|
182
|
-
.rokkit nested-list,
|
|
183
|
-
.rokkit nested-list:focus-within,
|
|
187
|
+
.rokkit .nested-list,
|
|
188
|
+
.rokkit .nested-list:focus-within,
|
|
184
189
|
.rokkit tree:focus-within {
|
|
185
190
|
@apply outline-none rounded;
|
|
186
191
|
}
|
|
@@ -207,13 +212,13 @@
|
|
|
207
212
|
/* .rokkit virtual-list item.is-hovering, */
|
|
208
213
|
.rokkit list item:hover,
|
|
209
214
|
.rokkit virtual-list-contents virtual-list-item:hover,
|
|
210
|
-
.rokkit node:hover {
|
|
215
|
+
.rokkit .node:hover {
|
|
211
216
|
@apply bg-neutral-inset;
|
|
212
217
|
}
|
|
213
218
|
|
|
214
219
|
/* Selected and Hover styles for List and Node */
|
|
215
220
|
.rokkit list item[aria-selected='true'] > a {
|
|
216
|
-
@apply text-
|
|
221
|
+
@apply text-white;
|
|
217
222
|
}
|
|
218
223
|
.rokkit virtual-list-item[aria-current='true'] {
|
|
219
224
|
@apply bg-neutral-inset text-secondary;
|
|
@@ -228,7 +233,7 @@
|
|
|
228
233
|
@apply bg-neutral-subtle;
|
|
229
234
|
}
|
|
230
235
|
.rokkit accordion:focus-within [aria-selected='true'] summary {
|
|
231
|
-
@apply outline-none bg-gradient-to-r from-primary to-secondary text-
|
|
236
|
+
@apply outline-none bg-gradient-to-r from-primary to-secondary text-white;
|
|
232
237
|
}
|
|
233
238
|
|
|
234
239
|
/* Border styles for Accordion */
|
|
@@ -240,19 +245,19 @@
|
|
|
240
245
|
.rokkit .folder-tree {
|
|
241
246
|
@apply bg-neutral-inset h-full;
|
|
242
247
|
}
|
|
243
|
-
.rokkit .folder-tree nested-list
|
|
248
|
+
.rokkit .folder-tree .nested-list{
|
|
244
249
|
@apply bg-neutral-inset h-full;
|
|
245
250
|
}
|
|
246
|
-
.rokkit node > item {
|
|
251
|
+
.rokkit .node > item {
|
|
247
252
|
@apply px-1;
|
|
248
253
|
}
|
|
249
|
-
.rokkit node > span {
|
|
254
|
+
.rokkit .node > span {
|
|
250
255
|
@apply flex-shrink-0;
|
|
251
256
|
}
|
|
252
|
-
.rokkit node > span > i {
|
|
257
|
+
.rokkit .node > span > i {
|
|
253
258
|
@apply border-neutral-muted;
|
|
254
259
|
}
|
|
255
|
-
.rokkit node > icon {
|
|
260
|
+
.rokkit .node > icon {
|
|
256
261
|
@apply text-neutral-muted;
|
|
257
262
|
}
|
|
258
263
|
|
|
@@ -295,17 +300,17 @@
|
|
|
295
300
|
|
|
296
301
|
.rokkit list item[aria-selected='true'],
|
|
297
302
|
.rokkit virtual-list-contents virtual-list-item[aria-selected='true'],
|
|
298
|
-
.rokkit node[aria-selected='true'] {
|
|
303
|
+
.rokkit .node[aria-selected='true'] {
|
|
299
304
|
@apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle text-neutral-800;
|
|
300
305
|
}
|
|
301
306
|
/* Focus and Hover styles for Toggle Switch, List, Tree, and Nested List */
|
|
302
307
|
.rokkit toggle-switch:focus-within item[aria-selected='true'],
|
|
303
308
|
.rokkit list:focus-within item[aria-selected='true'],
|
|
304
309
|
.rokkit virtual-list-viewport:focus-within virtual-list-item[aria-selected='true'],
|
|
305
|
-
.rokkit tree:focus-within node[aria-selected='true'],
|
|
306
|
-
.rokkit nested-list:focus-within node[aria-selected='true'] {
|
|
307
|
-
@apply bg-gradient-to-r from-primary to-secondary text-
|
|
308
|
-
@apply hover:from-secondary hover:to-primary
|
|
310
|
+
.rokkit tree:focus-within .node[aria-selected='true'],
|
|
311
|
+
.rokkit .nested-list:focus-within .node[aria-selected='true'] {
|
|
312
|
+
@apply bg-gradient-to-r from-primary to-secondary text-white;
|
|
313
|
+
@apply hover:from-secondary hover:to-primary;
|
|
309
314
|
}
|
|
310
315
|
|
|
311
316
|
.rokkit toggle-switch[aria-disabled='true'] {
|