@rokkit/themes 1.0.0-next.100 → 1.0.0-next.104
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 +7 -24
- package/src/base/alert.css +17 -17
- package/src/base/atoms.css +23 -22
- package/src/base/carousel.css +11 -11
- package/src/base/core.css +23 -31
- package/src/base/layout.css +5 -5
- package/src/base/molecules.css +35 -35
- package/src/base/organisms.css +13 -13
- package/src/base/scrollbar.css +1 -1
- package/src/base/table.css +8 -8
- package/src/base/tree.css +8 -8
- package/src/index.js +1 -1
- package/src/markdown.css +11 -11
- package/src/material/base.css +3 -3
- package/src/material/form.css +4 -4
- package/src/material/input.css +28 -28
- package/src/material/list.css +42 -42
- package/src/minimal/base.css +3 -3
- package/src/minimal/form.css +34 -34
- package/src/minimal/input.css +19 -19
- package/src/minimal/list.css +60 -60
- package/src/minimal/tabs.css +24 -24
- package/src/rokkit/alert.css +2 -2
- package/src/rokkit/atoms.css +12 -12
- package/src/rokkit/carousel.css +12 -12
- package/src/rokkit/input.css +20 -20
- package/src/rokkit/layout.css +8 -8
- package/src/rokkit/molecules.css +46 -46
- package/src/rokkit/organisms.css +118 -118
- package/src/rokkit/table.css +9 -9
- package/src/rokkit/toggle.css +9 -9
- package/LICENSE +0 -21
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.104",
|
|
4
4
|
"description": "Themes for use with rokkit components.",
|
|
5
5
|
"author": "Jerry Thomas <me@jerrythomas.name>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,16 +10,10 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"jsdom": "^25.0.0",
|
|
18
|
-
"svelte": "^4.2.19",
|
|
19
|
-
"typescript": "^5.6.2",
|
|
20
|
-
"vite": "^5.4.6",
|
|
21
|
-
"vitest": "~2.1.1",
|
|
22
|
-
"shared-config": "1.0.0-next.100"
|
|
13
|
+
"scripts": {
|
|
14
|
+
"prepublishOnly": "tsc --project tsconfig.build.json",
|
|
15
|
+
"clean": "rm -rf dist",
|
|
16
|
+
"build": "bun clean && bun prepublishOnly"
|
|
23
17
|
},
|
|
24
18
|
"files": [
|
|
25
19
|
"src"
|
|
@@ -38,17 +32,6 @@
|
|
|
38
32
|
}
|
|
39
33
|
},
|
|
40
34
|
"dependencies": {
|
|
41
|
-
"@rokkit/core": "1.0.0-next.
|
|
42
|
-
},
|
|
43
|
-
"scripts": {
|
|
44
|
-
"format": "prettier --write .",
|
|
45
|
-
"lint": "eslint --fix .",
|
|
46
|
-
"test:ct": "playwright test -c playwright.config.js",
|
|
47
|
-
"test:ui": "vitest --ui",
|
|
48
|
-
"test:ci": "vitest run",
|
|
49
|
-
"test": "vitest",
|
|
50
|
-
"coverage": "vitest run --coverage",
|
|
51
|
-
"latest": "pnpm upgrade --latest && pnpm test:ci",
|
|
52
|
-
"release": "pnpm publish --access public"
|
|
35
|
+
"@rokkit/core": "1.0.0-next.104"
|
|
53
36
|
}
|
|
54
|
-
}
|
|
37
|
+
}
|
package/src/base/alert.css
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/* Alert styles */
|
|
2
|
-
alert-list {
|
|
3
|
-
@apply top-12
|
|
2
|
+
rkt-alert-list {
|
|
3
|
+
@apply right-8 top-12 w-80;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
alert,
|
|
7
|
-
error,
|
|
8
|
-
info,
|
|
9
|
-
warning,
|
|
10
|
-
success {
|
|
11
|
-
@apply
|
|
6
|
+
rkt-alert,
|
|
7
|
+
rkt-error,
|
|
8
|
+
rkt-info,
|
|
9
|
+
rkt-warning,
|
|
10
|
+
rkt-success {
|
|
11
|
+
@apply cursor-pointer select-none rounded border px-4 py-2;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
alert.error,
|
|
15
|
-
alert.danger,
|
|
16
|
-
error {
|
|
14
|
+
rkt-alert.error,
|
|
15
|
+
rkt-alert.danger,
|
|
16
|
+
rkt-error {
|
|
17
17
|
@apply bg-error text-error-contrast border-error-muted;
|
|
18
18
|
}
|
|
19
|
-
alert.info,
|
|
20
|
-
info {
|
|
19
|
+
rkt-alert.info,
|
|
20
|
+
rkt-info {
|
|
21
21
|
@apply bg-info text-info-contrast border-info-muted;
|
|
22
22
|
}
|
|
23
|
-
alert.warning,
|
|
24
|
-
warning {
|
|
23
|
+
rkt-alert.warning,
|
|
24
|
+
rkt-warning {
|
|
25
25
|
@apply bg-warn text-warn-contrast border-warn-muted;
|
|
26
26
|
}
|
|
27
|
-
alert.success,
|
|
28
|
-
success {
|
|
27
|
+
rkt-alert.success,
|
|
28
|
+
rkt-success {
|
|
29
29
|
@apply bg-success text-success-contrast border-success-muted;
|
|
30
30
|
}
|
package/src/base/atoms.css
CHANGED
|
@@ -1,58 +1,59 @@
|
|
|
1
1
|
/* Icon styles */
|
|
2
|
-
icon {
|
|
3
|
-
@apply
|
|
2
|
+
rkt-icon {
|
|
3
|
+
@apply flex flex-shrink-0 flex-grow-0 items-center justify-center;
|
|
4
|
+
@apply h-4 min-h-4 w-4;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
@apply
|
|
6
|
+
button > rkt-icon {
|
|
7
|
+
@apply aspect-square cursor-pointer select-none p-2 focus:outline;
|
|
7
8
|
}
|
|
8
|
-
icon > i {
|
|
9
|
-
@apply text-2xl leading-6
|
|
9
|
+
rkt-icon > i {
|
|
10
|
+
@apply mx-auto aspect-square text-2xl leading-6 text-current;
|
|
10
11
|
}
|
|
11
|
-
icon.large > i {
|
|
12
|
+
rkt-icon.large > i {
|
|
12
13
|
@apply text-3xl;
|
|
13
14
|
}
|
|
14
|
-
icon.medium > i {
|
|
15
|
+
rkt-icon.medium > i {
|
|
15
16
|
@apply text-lg leading-5;
|
|
16
17
|
}
|
|
17
|
-
icon.small > i {
|
|
18
|
+
rkt-icon.small > i {
|
|
18
19
|
@apply leading-4;
|
|
19
20
|
font-size: 1rem;
|
|
20
21
|
}
|
|
21
|
-
icon.large
|
|
22
|
-
@apply
|
|
22
|
+
button > rkt-icon.large {
|
|
23
|
+
@apply h-12 w-12;
|
|
23
24
|
}
|
|
24
|
-
icon.medium
|
|
25
|
-
@apply
|
|
25
|
+
button > rkt-icon.medium {
|
|
26
|
+
@apply h-8 w-8;
|
|
26
27
|
}
|
|
27
|
-
icon.small
|
|
28
|
-
@apply
|
|
28
|
+
button > rkt-icon.small {
|
|
29
|
+
@apply h-6 w-6;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
/* Scroll styles */
|
|
32
|
-
scroll {
|
|
33
|
+
rkt-scroll {
|
|
33
34
|
@apply flex flex-col overflow-y-scroll;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/* Square styles */
|
|
37
38
|
square {
|
|
38
|
-
@apply flex
|
|
39
|
+
@apply flex aspect-square h-full min-h-full flex-col items-center justify-center;
|
|
39
40
|
}
|
|
40
41
|
/* Item styles */
|
|
41
|
-
item,
|
|
42
|
+
rkt-item,
|
|
42
43
|
.item {
|
|
43
44
|
@apply flex flex-shrink-0 flex-grow-0 cursor-pointer select-none items-center gap-2;
|
|
44
45
|
}
|
|
45
|
-
item p,
|
|
46
|
-
summary p {
|
|
46
|
+
rkt-item p,
|
|
47
|
+
rkt-summary p {
|
|
47
48
|
@apply flex flex-grow;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
/* Overlay styles */
|
|
51
|
-
overlay {
|
|
52
|
+
rkt-overlay {
|
|
52
53
|
@apply bg-neutral-inset bg-opacity-50;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
/* Checkbox styles */
|
|
56
|
-
checkbox {
|
|
57
|
+
rkt-checkbox {
|
|
57
58
|
@apply gap-2;
|
|
58
59
|
}
|
package/src/base/carousel.css
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
carousel slide {
|
|
2
|
-
@apply
|
|
1
|
+
rkt-carousel rkt-slide {
|
|
2
|
+
@apply min-h-100 items-center gap-3 px-12;
|
|
3
3
|
}
|
|
4
|
-
carousel slide > img {
|
|
5
|
-
@apply
|
|
4
|
+
rkt-carousel rkt-slide > img {
|
|
5
|
+
@apply h-80 w-80 object-cover;
|
|
6
6
|
}
|
|
7
|
-
carousel slide > p {
|
|
8
|
-
@apply text-
|
|
7
|
+
rkt-carousel rkt-slide > p {
|
|
8
|
+
@apply text-center text-xl;
|
|
9
9
|
}
|
|
10
|
-
carousel dot-nav {
|
|
11
|
-
@apply flex h-4 w-full gap-2
|
|
10
|
+
rkt-carousel rkt-dot-nav {
|
|
11
|
+
@apply flex h-4 w-full justify-center gap-2;
|
|
12
12
|
}
|
|
13
|
-
carousel dot {
|
|
14
|
-
@apply block h-4 w-4
|
|
13
|
+
rkt-carousel rkt-dot {
|
|
14
|
+
@apply m-0 block h-4 w-4 cursor-pointer rounded-full p-0 focus:outline-none;
|
|
15
15
|
}
|
|
16
|
-
carousel dot[aria-checked='true'] {
|
|
16
|
+
rkt-carousel rkt-dot[aria-checked='true'] {
|
|
17
17
|
@apply bg-primary;
|
|
18
18
|
}
|
package/src/base/core.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* Global styles */
|
|
2
2
|
*:focus {
|
|
3
|
-
@apply outline outline-2 outline-offset-2
|
|
3
|
+
@apply outline-secondary outline outline-2 outline-offset-2;
|
|
4
4
|
}
|
|
5
5
|
*[tabindex='-1']:focus {
|
|
6
6
|
@apply outline-none;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
/* Body styles */
|
|
10
10
|
body {
|
|
11
|
-
@apply flex flex-col
|
|
11
|
+
@apply flex w-screen flex-col overflow-hidden;
|
|
12
12
|
/* height: var(--viewport-height, 100dvh); */
|
|
13
13
|
height: 100vh;
|
|
14
14
|
height: --webkit-fill-available;
|
|
@@ -18,7 +18,7 @@ body {
|
|
|
18
18
|
|
|
19
19
|
/* Link styles */
|
|
20
20
|
a {
|
|
21
|
-
@apply
|
|
21
|
+
@apply text-primary-800 hover:text-secondary-800 visited:text-secondary-700 cursor-pointer;
|
|
22
22
|
}
|
|
23
23
|
a:focus {
|
|
24
24
|
@apply outline-none;
|
|
@@ -35,58 +35,50 @@ pre {
|
|
|
35
35
|
.disabled {
|
|
36
36
|
@apply text-disabled;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
@apply outline-disabled;
|
|
42
|
-
}
|
|
43
|
-
.disabled {
|
|
44
|
-
@apply text-disabled;
|
|
45
|
-
}
|
|
46
|
-
.disabled input,
|
|
47
|
-
.disabled textarea,
|
|
48
|
-
.disabled select {
|
|
38
|
+
input[disabled='true'],
|
|
39
|
+
textarea[disabled='true'],
|
|
40
|
+
select[disabled='true'] {
|
|
49
41
|
@apply outline-disabled;
|
|
50
42
|
}
|
|
51
43
|
|
|
52
44
|
/* plots*/
|
|
53
|
-
plot {
|
|
54
|
-
@apply
|
|
45
|
+
rkt-plot {
|
|
46
|
+
@apply bg-neutral-inset rounded-md p-4;
|
|
55
47
|
}
|
|
56
48
|
g[aria-label='tip'] {
|
|
57
49
|
--plot-background: var(--neutral-200);
|
|
58
50
|
}
|
|
59
51
|
|
|
60
|
-
input-field input,
|
|
61
|
-
input-field toggle-switch,
|
|
62
|
-
drop-down {
|
|
52
|
+
rkt-input-field input,
|
|
53
|
+
rkt-input-field toggle-switch,
|
|
54
|
+
rkt-drop-down {
|
|
63
55
|
@apply focus:outline-none;
|
|
64
56
|
}
|
|
65
57
|
|
|
66
|
-
alert,
|
|
67
|
-
error,
|
|
68
|
-
info,
|
|
69
|
-
warning,
|
|
70
|
-
success {
|
|
71
|
-
@apply
|
|
58
|
+
rkt-alert,
|
|
59
|
+
rkt-error,
|
|
60
|
+
rkt-info,
|
|
61
|
+
rkt-warning,
|
|
62
|
+
rkt-success {
|
|
63
|
+
@apply cursor-pointer select-none rounded border px-4 py-2;
|
|
72
64
|
}
|
|
73
65
|
|
|
74
|
-
checkbox {
|
|
66
|
+
rkt-checkbox {
|
|
75
67
|
@apply gap-2;
|
|
76
68
|
}
|
|
77
69
|
|
|
78
70
|
button:disabled {
|
|
79
|
-
@apply bg-neutral-muted text-neutral-500
|
|
71
|
+
@apply bg-neutral-muted cursor-not-allowed text-neutral-500;
|
|
80
72
|
}
|
|
81
73
|
|
|
82
|
-
cell.cell-type-string {
|
|
74
|
+
rkt-cell.cell-type-string {
|
|
83
75
|
@apply text-left;
|
|
84
76
|
}
|
|
85
|
-
cell.cell-type-integer
|
|
86
|
-
cell.cell-type-number
|
|
77
|
+
rkt-cell.cell-type-integer rkt-itemp,
|
|
78
|
+
rkt-cell.cell-type-number rkt-itemp {
|
|
87
79
|
@apply text-right;
|
|
88
80
|
}
|
|
89
81
|
|
|
90
|
-
cell item {
|
|
82
|
+
rkt-cell rkt-item {
|
|
91
83
|
@apply flex w-full;
|
|
92
84
|
}
|
package/src/base/layout.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
container > segment {
|
|
2
|
-
@apply overflow-hidden
|
|
1
|
+
rkt-container > rkt-segment {
|
|
2
|
+
@apply h-full overflow-hidden;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.three-col,
|
|
6
6
|
.two-col {
|
|
7
|
-
@apply grid
|
|
7
|
+
@apply grid min-h-full w-full overflow-hidden;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.three-col.md {
|
|
@@ -41,12 +41,12 @@ container > segment {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.two-col.md {
|
|
44
|
-
@apply grid-
|
|
44
|
+
@apply grid-cols-2 grid-rows-1;
|
|
45
45
|
/* grid-template-columns: repeat(2, 1fr); */
|
|
46
46
|
grid-template-areas: 'c-1 c-2';
|
|
47
47
|
}
|
|
48
48
|
.two-col.lg {
|
|
49
|
-
@apply grid-
|
|
49
|
+
@apply grid-cols-5 grid-rows-1;
|
|
50
50
|
/* grid-template-columns: repeat(5, 1fr); */
|
|
51
51
|
grid-template-areas: 'c-1 c-1 c-2 c-2 c-2';
|
|
52
52
|
}
|
package/src/base/molecules.css
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
/* Input range styles */
|
|
2
|
-
input-range range-track {
|
|
3
|
-
@apply
|
|
2
|
+
rkt-input-range rkt-range-track {
|
|
3
|
+
@apply relative mt-3 h-1;
|
|
4
4
|
}
|
|
5
|
-
input-range range-track range-track-bar {
|
|
5
|
+
rkt-input-range rkt-range-track rkt-range-track-bar {
|
|
6
6
|
@apply bg-neutral-subtle border-neutral-muted rounded-full;
|
|
7
7
|
}
|
|
8
|
-
input-range range-track selected {
|
|
8
|
+
rkt-input-range rkt-range-track selected {
|
|
9
9
|
@apply top-0px bottom-0px;
|
|
10
10
|
}
|
|
11
|
-
input-range range-track thumb {
|
|
11
|
+
rkt-input-range rkt-range-track rkt-thumb {
|
|
12
12
|
@apply rounded-full;
|
|
13
13
|
}
|
|
14
|
-
input-range thumb {
|
|
15
|
-
@apply -top-1.5
|
|
14
|
+
rkt-input-range rkt-thumb {
|
|
15
|
+
@apply bg-secondary border-secondary -top-1.5 border shadow-xl;
|
|
16
16
|
}
|
|
17
|
-
input-range thumb.sliding::before {
|
|
17
|
+
rkt-input-range rkt-thumb.sliding::before {
|
|
18
18
|
content: '';
|
|
19
|
-
@apply absolute
|
|
19
|
+
@apply bg-secondary-400 absolute bottom-0 left-0 right-0 top-0 rounded-full opacity-30;
|
|
20
20
|
transform: scale(2, 2);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
/* Bookend styles */
|
|
24
|
-
.bookend range-track range-track-bar::before,
|
|
25
|
-
.bookend range-track range-track-bar::after {
|
|
24
|
+
.bookend rkt-range-track rkt-range-track-bar::before,
|
|
25
|
+
.bookend rkt-range-track rkt-range-track-bar::after {
|
|
26
26
|
content: '';
|
|
27
|
-
@apply
|
|
27
|
+
@apply w-1px absolute -bottom-2 -top-2 rounded-full bg-gray-300;
|
|
28
28
|
}
|
|
29
|
-
.bookend range-track range-track-bar::before {
|
|
29
|
+
.bookend rkt-range-track rkt-range-track-bar::before {
|
|
30
30
|
@apply -left-1px;
|
|
31
31
|
}
|
|
32
|
-
.bookend range-track range-track-bar::after {
|
|
32
|
+
.bookend rkt-range-track rkt-range-track-bar::after {
|
|
33
33
|
@apply -right-2px;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
/* Input range tick styles */
|
|
37
|
-
input-range tick {
|
|
36
|
+
/* Input rkt-range tick styles */
|
|
37
|
+
rkt-input-range tick {
|
|
38
38
|
grid-template-rows: 7px auto;
|
|
39
39
|
}
|
|
40
|
-
input-range tick tick-bar {
|
|
41
|
-
@apply border-neutral-600
|
|
40
|
+
rkt-input-range tick tick-bar {
|
|
41
|
+
@apply h-full border-neutral-600;
|
|
42
42
|
}
|
|
43
|
-
input-range tick p {
|
|
44
|
-
@apply items-top text-neutral-600
|
|
43
|
+
rkt-input-range tick p {
|
|
44
|
+
@apply items-top leading-tight text-neutral-600;
|
|
45
45
|
font-size: 8px;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/* Calendar styles */
|
|
49
49
|
calendar {
|
|
50
|
-
@apply rounded-md
|
|
50
|
+
@apply overflow-hidden rounded-md shadow-lg;
|
|
51
51
|
}
|
|
52
52
|
calendar month-year {
|
|
53
53
|
@apply bg-secondary-400 text-white;
|
|
@@ -68,7 +68,7 @@ day-of-month {
|
|
|
68
68
|
@apply hover:bg-secondary-200 hover:rounded-full;
|
|
69
69
|
}
|
|
70
70
|
day-of-month[aria-selected='true'] {
|
|
71
|
-
@apply bg-secondary text-white
|
|
71
|
+
@apply bg-secondary rounded-full text-white;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/* Form styles */
|
|
@@ -81,35 +81,35 @@ field-layout.vertical {
|
|
|
81
81
|
field-layout.horizontal {
|
|
82
82
|
@apply flex flex-col gap-2 md:flex-row md:gap-4;
|
|
83
83
|
}
|
|
84
|
-
selected-item item {
|
|
84
|
+
selected-item rkt-item {
|
|
85
85
|
@apply flex-grow;
|
|
86
86
|
}
|
|
87
|
-
input-field {
|
|
88
|
-
@apply w-full
|
|
87
|
+
rkt-input-field {
|
|
88
|
+
@apply m-0 w-full py-1;
|
|
89
89
|
}
|
|
90
|
-
input-field input,
|
|
91
|
-
input-field textarea,
|
|
92
|
-
input-field select,
|
|
93
|
-
input-field > field > :not(icon) {
|
|
90
|
+
rkt-input-field input,
|
|
91
|
+
rkt-input-field textarea,
|
|
92
|
+
rkt-input-field select,
|
|
93
|
+
rkt-input-field > field > :not(icon) {
|
|
94
94
|
@apply px-3;
|
|
95
|
-
@apply
|
|
95
|
+
@apply min-h-9 flex-grow leading-loose outline-none;
|
|
96
96
|
@apply bg-neutral-subtle text-neutral-800;
|
|
97
97
|
}
|
|
98
|
-
input-field > label {
|
|
99
|
-
@apply
|
|
98
|
+
rkt-input-field > label {
|
|
99
|
+
@apply text-xs uppercase;
|
|
100
100
|
@apply leading-loose;
|
|
101
101
|
}
|
|
102
|
-
input-field > label.required::after {
|
|
102
|
+
rkt-input-field > label.required::after {
|
|
103
103
|
content: ' *';
|
|
104
104
|
@apply state-danger;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
radio-group label {
|
|
108
|
-
@apply
|
|
108
|
+
@apply cursor-pointer uppercase;
|
|
109
109
|
}
|
|
110
110
|
/* Progress bar styles */
|
|
111
111
|
progress-bar {
|
|
112
|
-
@apply bg-neutral-muted border
|
|
112
|
+
@apply bg-neutral-muted border-neutral-subtle border;
|
|
113
113
|
}
|
|
114
114
|
progress-bar value-bar {
|
|
115
115
|
@apply bg-primary;
|
package/src/base/organisms.css
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
input-select,
|
|
2
|
-
drop-down {
|
|
3
|
-
@apply overflow-visible
|
|
1
|
+
rkt-input-select,
|
|
2
|
+
rkt-drop-down {
|
|
3
|
+
@apply cursor-pointer overflow-visible;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
input-field field {
|
|
6
|
+
rkt-input-field rkt-field {
|
|
7
7
|
@apply gap-1px;
|
|
8
8
|
}
|
|
9
|
-
input-field field icon {
|
|
10
|
-
@apply
|
|
9
|
+
rkt-input-field rkt-field rkt-icon {
|
|
10
|
+
@apply bg-neutral-subtle h-9 w-9 text-neutral-800;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
input-field > field > input-select {
|
|
13
|
+
rkt-input-field > rkt-field > rkt-input-select {
|
|
14
14
|
@apply px-0;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
input-select selected-item > icon,
|
|
18
|
-
drop-down > button > span > icon {
|
|
19
|
-
@apply w-9
|
|
17
|
+
rkt-input-select rkt-selected-item > rkt-icon,
|
|
18
|
+
rkt-drop-down > button > span > rkt-icon {
|
|
19
|
+
@apply h-full w-9;
|
|
20
20
|
}
|
|
21
|
-
input-select > selected-item,
|
|
22
|
-
drop-down > button > span {
|
|
21
|
+
rkt-input-select > rkt-selected-item,
|
|
22
|
+
rkt-drop-down > button > span {
|
|
23
23
|
/* @apply bg-neutral-base pl-3; */
|
|
24
|
-
@apply
|
|
24
|
+
@apply min-h-9 items-center gap-2 pl-3 normal-case;
|
|
25
25
|
@apply rounded text-neutral-800;
|
|
26
26
|
}
|
package/src/base/scrollbar.css
CHANGED
package/src/base/table.css
CHANGED
|
@@ -20,19 +20,19 @@ th[data-sortable='true']:hover icon {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
table {
|
|
23
|
-
@apply w-full text-sm text-
|
|
24
|
-
@apply border-
|
|
23
|
+
@apply w-full text-left text-sm text-neutral-700 rtl:text-right;
|
|
24
|
+
@apply border-spacing-x-1px border-separate;
|
|
25
25
|
}
|
|
26
26
|
table > thead {
|
|
27
|
-
@apply
|
|
28
|
-
@apply text-xs uppercase
|
|
27
|
+
@apply sticky top-0 z-10 table-header-group;
|
|
28
|
+
@apply bg-neutral-400 text-xs uppercase;
|
|
29
29
|
}
|
|
30
30
|
table > caption {
|
|
31
|
-
@apply table-caption p-5 text-sm font-normal text-
|
|
31
|
+
@apply bg-neutral-subtle table-caption p-5 text-left text-sm font-normal text-neutral-600 rtl:text-right;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
table > tbody > tr {
|
|
35
|
-
@apply
|
|
35
|
+
@apply border-neutral-base bg-neutral-subtle table-row border-b;
|
|
36
36
|
}
|
|
37
37
|
table.striped > tbody > tr:nth-child(even) {
|
|
38
38
|
@apply bg-neutral-inset;
|
|
@@ -43,7 +43,7 @@ table > tfoot {
|
|
|
43
43
|
table > tfoot > tr {
|
|
44
44
|
@apply table-row font-semibold text-neutral-800;
|
|
45
45
|
}
|
|
46
|
-
tree-table,
|
|
47
|
-
table
|
|
46
|
+
rkt-tree-table,
|
|
47
|
+
rkt-table {
|
|
48
48
|
@apply max-h-full overflow-y-auto;
|
|
49
49
|
}
|
package/src/base/tree.css
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
tree,
|
|
2
|
-
nested-list {
|
|
3
|
-
@apply flex flex-col
|
|
1
|
+
rkt-tree,
|
|
2
|
+
rkt-nested-list {
|
|
3
|
+
@apply flex w-full flex-col text-sm;
|
|
4
4
|
}
|
|
5
|
-
nested-list node > div {
|
|
6
|
-
@apply px-2
|
|
5
|
+
rkt-nested-list rkt-node > div {
|
|
6
|
+
@apply h-8 px-2;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
nested-list node {
|
|
9
|
+
rkt-nested-list rkt-node {
|
|
10
10
|
@apply flex flex-col;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
node > div > item {
|
|
13
|
+
rkt-node > div > rkt-item {
|
|
14
14
|
@apply px-1;
|
|
15
15
|
}
|
|
16
|
-
node > div > span {
|
|
16
|
+
rkt-node > div > span {
|
|
17
17
|
@apply flex-shrink-0;
|
|
18
18
|
}
|
package/src/index.js
CHANGED
package/src/markdown.css
CHANGED
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
/* postcss-ignore */
|
|
74
74
|
.markdown-body summary {
|
|
75
|
-
display: list-item;
|
|
75
|
+
display: rkt-list-item;
|
|
76
76
|
}
|
|
77
77
|
/* postcss-ignore */
|
|
78
78
|
.markdown-body a {
|
|
@@ -223,30 +223,30 @@
|
|
|
223
223
|
margin-bottom: 0;
|
|
224
224
|
}
|
|
225
225
|
.markdown-body ul {
|
|
226
|
-
list-style-type: none;
|
|
226
|
+
rkt-list-style-type: none;
|
|
227
227
|
}
|
|
228
228
|
.markdown-body ul li {
|
|
229
229
|
@apply relative mb-2;
|
|
230
230
|
}
|
|
231
231
|
.markdown-body ul li::before {
|
|
232
232
|
content: '';
|
|
233
|
-
@apply
|
|
233
|
+
@apply bg-neutral-muted absolute -ml-5 mt-2 h-1.5 w-1.5 rounded-sm;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
.markdown-body ol {
|
|
237
|
-
list-style-type: decimal;
|
|
237
|
+
rkt-list-style-type: decimal;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
.markdown-body ol ol,
|
|
241
241
|
.markdown-body ul ol {
|
|
242
|
-
list-style-type: lower-roman;
|
|
242
|
+
rkt-list-style-type: lower-roman;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
.markdown-body ol ol ol,
|
|
246
246
|
.markdown-body ol ul ol,
|
|
247
247
|
.markdown-body ul ol ol,
|
|
248
248
|
.markdown-body ul ul ol {
|
|
249
|
-
list-style-type: lower-alpha;
|
|
249
|
+
rkt-list-style-type: lower-alpha;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.markdown-body dd {
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
.markdown-body h1,
|
|
651
651
|
.markdown-body h2 {
|
|
652
652
|
/* padding-bottom: 0.3em; */
|
|
653
|
-
@apply border-
|
|
653
|
+
@apply border-neutral-subtle mt-16 border-b;
|
|
654
654
|
/* border-bottom: 1px solid #eaecef; */
|
|
655
655
|
}
|
|
656
656
|
|
|
@@ -737,12 +737,12 @@
|
|
|
737
737
|
.markdown-body table th {
|
|
738
738
|
padding: 6px 13px;
|
|
739
739
|
/* border: 1px solid #dfe2e5; */
|
|
740
|
-
@apply border
|
|
740
|
+
@apply border-neutral-base border;
|
|
741
741
|
}
|
|
742
742
|
|
|
743
743
|
.markdown-body table tr {
|
|
744
744
|
/* background-color: #fff; */
|
|
745
|
-
@apply border-
|
|
745
|
+
@apply border-neutral-subtle border-t;
|
|
746
746
|
/* border-top: 1px solid #c6cbd1; */
|
|
747
747
|
}
|
|
748
748
|
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
|
|
774
774
|
.markdown-body pre {
|
|
775
775
|
word-wrap: normal;
|
|
776
|
-
@apply rounded-sm border
|
|
776
|
+
@apply border-neutral-subtle rounded-sm border;
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
.markdown-body pre > code {
|
|
@@ -942,7 +942,7 @@
|
|
|
942
942
|
}
|
|
943
943
|
|
|
944
944
|
.markdown-body .task-list-item {
|
|
945
|
-
list-style-type: none;
|
|
945
|
+
rkt-list-style-type: none;
|
|
946
946
|
}
|
|
947
947
|
|
|
948
948
|
.markdown-body .task-list-item + .task-list-item {
|