@rokkit/themes 1.0.0-next.90 → 1.0.0-next.92
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/carousel.css +18 -0
- package/src/base/organisms.css +0 -18
- package/src/base/table.css +46 -0
- package/src/base.css +2 -0
- package/src/rokkit/carousel.css +19 -0
- package/src/rokkit/organisms.css +0 -48
- package/src/rokkit/table.css +47 -0
- package/src/rokkit/toggle.css +18 -0
- package/src/rokkit.css +3 -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.92",
|
|
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.92"
|
|
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.92"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"format": "prettier --write .",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
carousel slide {
|
|
2
|
+
@apply items-center min-h-100 gap-3 px-12;
|
|
3
|
+
}
|
|
4
|
+
carousel slide > img {
|
|
5
|
+
@apply w-80 h-80 object-cover;
|
|
6
|
+
}
|
|
7
|
+
carousel slide > p {
|
|
8
|
+
@apply text-xl text-center;
|
|
9
|
+
}
|
|
10
|
+
carousel dot-nav {
|
|
11
|
+
@apply flex h-4 w-full gap-2 justify-center;
|
|
12
|
+
}
|
|
13
|
+
carousel dot {
|
|
14
|
+
@apply block h-4 w-4 p-0 m-0 rounded-full cursor-pointer focus:outline-none;
|
|
15
|
+
}
|
|
16
|
+
carousel dot[aria-checked='true'] {
|
|
17
|
+
@apply bg-primary;
|
|
18
|
+
}
|
package/src/base/organisms.css
CHANGED
|
@@ -51,21 +51,3 @@ drop-down > button > span {
|
|
|
51
51
|
@apply pl-3 min-h-9 gap-2 items-center normal-case;
|
|
52
52
|
@apply rounded text-neutral-800;
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
/* Tree Table styles */
|
|
56
|
-
tree-table {
|
|
57
|
-
@apply flex flex-col h-full w-full overflow-auto;
|
|
58
|
-
}
|
|
59
|
-
tree-table > table {
|
|
60
|
-
@apply flex flex-col w-full h-full justify-start border-collapse overflow-auto;
|
|
61
|
-
}
|
|
62
|
-
tree-table > table tr {
|
|
63
|
-
@apply grid;
|
|
64
|
-
}
|
|
65
|
-
tree-table > table tr td,
|
|
66
|
-
tree-table > table tr th {
|
|
67
|
-
@apply flex flex-row items-center px-4 py-3;
|
|
68
|
-
}
|
|
69
|
-
tree-table > table > tbody {
|
|
70
|
-
@apply flex flex-col overflow-y-auto;
|
|
71
|
-
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
th,
|
|
2
|
+
td {
|
|
3
|
+
@apply px-5 py-3;
|
|
4
|
+
}
|
|
5
|
+
tr {
|
|
6
|
+
@apply gap-1px;
|
|
7
|
+
}
|
|
8
|
+
th {
|
|
9
|
+
@apply whitespace-nowrap;
|
|
10
|
+
}
|
|
11
|
+
th cell {
|
|
12
|
+
@apply flex items-center gap-2;
|
|
13
|
+
}
|
|
14
|
+
th[data-sortable='true'] {
|
|
15
|
+
@apply cursor-pointer;
|
|
16
|
+
}
|
|
17
|
+
th[data-sortable='true']:hover,
|
|
18
|
+
th[data-sortable='true']:hover icon {
|
|
19
|
+
@apply text-primary-700;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
table {
|
|
23
|
+
@apply w-full text-sm text-left rtl:text-right text-neutral-700;
|
|
24
|
+
}
|
|
25
|
+
table > thead {
|
|
26
|
+
@apply table-header-group text-xs uppercase bg-neutral-400;
|
|
27
|
+
}
|
|
28
|
+
table > caption {
|
|
29
|
+
@apply table-caption p-5 text-sm font-normal text-left rtl:text-right bg-neutral-subtle text-neutral-600;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
table > tbody > tr {
|
|
33
|
+
@apply table-row border-b border-neutral-base bg-neutral-subtle;
|
|
34
|
+
}
|
|
35
|
+
table.striped > tbody > tr:nth-child(even) {
|
|
36
|
+
@apply bg-neutral-inset;
|
|
37
|
+
}
|
|
38
|
+
table > tfoot {
|
|
39
|
+
@apply table-footer-group;
|
|
40
|
+
}
|
|
41
|
+
table > tfoot > tr {
|
|
42
|
+
@apply table-row font-semibold text-neutral-800;
|
|
43
|
+
}
|
|
44
|
+
table-wrapper {
|
|
45
|
+
@apply shadow-md sm:rounded-lg;
|
|
46
|
+
}
|
package/src/base.css
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
carousel slide {
|
|
2
|
+
@apply items-center min-h-100 gap-3 px-12;
|
|
3
|
+
}
|
|
4
|
+
carousel slide > img {
|
|
5
|
+
@apply w-80 h-80 object-cover;
|
|
6
|
+
}
|
|
7
|
+
carousel slide > p {
|
|
8
|
+
@apply text-2xl text-center;
|
|
9
|
+
}
|
|
10
|
+
carousel dot-nav {
|
|
11
|
+
@apply flex h-4 w-full gap-2 justify-center;
|
|
12
|
+
}
|
|
13
|
+
carousel dot {
|
|
14
|
+
/* @apply block h-4 w-4 p-0 m-0 text-xs rounded-full bg-neutral-subtle cursor-pointer focus:outline-none; */
|
|
15
|
+
@apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle;
|
|
16
|
+
}
|
|
17
|
+
carousel dot[aria-checked='true'] {
|
|
18
|
+
@apply bg-gradient-to-r from-primary to-secondary;
|
|
19
|
+
}
|
package/src/rokkit/organisms.css
CHANGED
|
@@ -101,17 +101,7 @@
|
|
|
101
101
|
.rokkit button-group button.active {
|
|
102
102
|
@apply bg-gradient-to-r from-primary to-secondary text-white;
|
|
103
103
|
}
|
|
104
|
-
.rokkit toggle {
|
|
105
|
-
@apply flex flex-row items-center gap-3 cursor-pointer;
|
|
106
|
-
@apply rounded-md border border-neutral-muted p-2;
|
|
107
|
-
}
|
|
108
104
|
|
|
109
|
-
.rokkit toggle:hover > icon {
|
|
110
|
-
@apply text-secondary;
|
|
111
|
-
}
|
|
112
|
-
.rokkit toggle:focus-within {
|
|
113
|
-
@apply outline-none ring-2 ring-primary-500;
|
|
114
|
-
}
|
|
115
105
|
/* Input and Drop-down styles */
|
|
116
106
|
.rokkit input-select,
|
|
117
107
|
.rokkit drop-down > button {
|
|
@@ -320,44 +310,6 @@
|
|
|
320
310
|
@apply flex-grow flex-wrap gap-2;
|
|
321
311
|
}
|
|
322
312
|
|
|
323
|
-
/* Tree Table styles */
|
|
324
|
-
.rokkit tree-table > table tr {
|
|
325
|
-
@apply gap-1px;
|
|
326
|
-
}
|
|
327
|
-
.rokkit tree-table > table {
|
|
328
|
-
@apply gap-2px;
|
|
329
|
-
}
|
|
330
|
-
.rokkit tree-table > table tr > th {
|
|
331
|
-
@apply bg-gradient-to-b from-neutral-muted to-neutral-subtle uppercase;
|
|
332
|
-
}
|
|
333
|
-
.rokkit tree-table > table > thead > tr > th {
|
|
334
|
-
@apply text-secondary-700 font-light;
|
|
335
|
-
}
|
|
336
|
-
.rokkit tree-table > table > tbody {
|
|
337
|
-
@apply gap-1px;
|
|
338
|
-
}
|
|
339
|
-
.rokkit tree-table > table > tbody > tr > td {
|
|
340
|
-
@apply bg-neutral-subtle gap-2;
|
|
341
|
-
}
|
|
342
|
-
.rokkit tree-table > table > tbody > tr.even > td {
|
|
343
|
-
@apply bg-neutral-muted;
|
|
344
|
-
}
|
|
345
|
-
.rokkit tree-table tr:hover td,
|
|
346
|
-
.rokkit tree-table tr.even:hover td {
|
|
347
|
-
@apply bg-neutral-500;
|
|
348
|
-
}
|
|
349
|
-
.rokkit tree-table tr[aria-current='true'] td,
|
|
350
|
-
.rokkit tree-table tr.even[aria-current='true'] td {
|
|
351
|
-
@apply bg-secondary-700 text-neutral-100;
|
|
352
|
-
}
|
|
353
|
-
.rokkit tree-table tr td icon {
|
|
354
|
-
@apply text-secondary-700;
|
|
355
|
-
}
|
|
356
|
-
.rokkit tree-table tr[aria-current='true'] td icon,
|
|
357
|
-
.rokkit tree-table tr.even[aria-current='true'] td icon {
|
|
358
|
-
@apply text-secondary-100;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
313
|
.rokkit container:focus-within {
|
|
362
314
|
@apply outline-none;
|
|
363
315
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
th,
|
|
2
|
+
td {
|
|
3
|
+
@apply px-5 py-3;
|
|
4
|
+
}
|
|
5
|
+
tr {
|
|
6
|
+
@apply gap-1px;
|
|
7
|
+
}
|
|
8
|
+
th {
|
|
9
|
+
@apply whitespace-nowrap;
|
|
10
|
+
}
|
|
11
|
+
th cell {
|
|
12
|
+
@apply flex items-center gap-2;
|
|
13
|
+
}
|
|
14
|
+
th[data-sortable='true'] {
|
|
15
|
+
@apply cursor-pointer;
|
|
16
|
+
}
|
|
17
|
+
th[data-sortable='true']:hover,
|
|
18
|
+
th[data-sortable='true']:hover icon {
|
|
19
|
+
@apply text-primary-700;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
table {
|
|
23
|
+
@apply w-full text-sm text-left rtl:text-right text-neutral-700;
|
|
24
|
+
}
|
|
25
|
+
table > thead {
|
|
26
|
+
@apply table-header-group text-xs uppercase bg-neutral-400;
|
|
27
|
+
}
|
|
28
|
+
table > caption {
|
|
29
|
+
@apply table-caption p-5 text-sm font-normal text-left rtl:text-right bg-neutral-subtle text-neutral-600;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
table > tbody > tr {
|
|
33
|
+
@apply table-row border-b border-neutral-base bg-neutral-subtle;
|
|
34
|
+
}
|
|
35
|
+
table.striped > tbody > tr:nth-child(even) {
|
|
36
|
+
@apply bg-neutral-inset;
|
|
37
|
+
}
|
|
38
|
+
table > tfoot {
|
|
39
|
+
@apply table-footer-group;
|
|
40
|
+
}
|
|
41
|
+
table > tfoot > tr {
|
|
42
|
+
@apply table-row font-semibold text-neutral-800;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
table-wrapper {
|
|
46
|
+
@apply shadow-md sm:rounded-lg;
|
|
47
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.rokkit toggle {
|
|
2
|
+
@apply flex flex-row items-center gap-3 cursor-pointer;
|
|
3
|
+
@apply rounded-md border border-neutral-muted p-2;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.rokkit toggle:hover > icon {
|
|
7
|
+
@apply text-secondary;
|
|
8
|
+
}
|
|
9
|
+
.rokkit toggle:focus-within {
|
|
10
|
+
@apply outline-none ring-2 ring-primary-500;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.rokkit toggle.minimal {
|
|
14
|
+
@apply py-0 border-none focus-within:ring-0;
|
|
15
|
+
}
|
|
16
|
+
.rokkit toggle.minimal icon > i {
|
|
17
|
+
@apply h-4;
|
|
18
|
+
}
|