@rokkit/themes 1.0.0-next.105 → 1.0.0-next.107
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 +4 -7
- package/src/base/alert.css +16 -16
- package/src/base/animation.css +15 -0
- package/src/base/atoms.css +23 -24
- package/src/base/carousel.css +6 -6
- package/src/base/core.css +35 -15
- package/src/base/layout.css +1 -1
- package/src/base/molecules.css +35 -52
- package/src/base/organisms.css +49 -9
- package/src/base/progress.css +21 -0
- package/src/base/table.css +2 -2
- package/src/base/toggles.css +21 -0
- package/src/base/tree.css +6 -6
- package/src/base.css +2 -0
- package/src/markdown.css +6 -6
- package/src/material/base.css +3 -3
- package/src/material/form.css +9 -9
- package/src/material/input.css +20 -20
- package/src/material/list.css +29 -29
- package/src/minimal/base.css +2 -2
- package/src/minimal/form.css +27 -27
- package/src/minimal/input.css +36 -36
- package/src/minimal/list.css +46 -46
- package/src/minimal/tabs.css +14 -14
- package/src/palette.css +4 -4
- package/src/rokkit/alert.css +1 -1
- package/src/rokkit/atoms.css +17 -30
- package/src/rokkit/carousel.css +6 -6
- package/src/rokkit/input.css +35 -14
- package/src/rokkit/layout.css +7 -7
- package/src/rokkit/molecules.css +46 -35
- package/src/rokkit/organisms.css +122 -130
- package/src/rokkit/table.css +4 -4
- package/src/rokkit/toggle.css +21 -6
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.107",
|
|
4
4
|
"description": "Themes for use with rokkit components.",
|
|
5
5
|
"author": "Jerry Thomas <me@jerrythomas.name>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"prepublishOnly": "
|
|
14
|
+
"prepublishOnly": "tsc --project tsconfig.build.json",
|
|
15
15
|
"clean": "rm -rf dist",
|
|
16
|
-
"build": "
|
|
16
|
+
"build": "bun clean && bun prepublishOnly"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"src"
|
|
@@ -32,9 +32,6 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@rokkit/core": "
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"typescript": "^5.7.3"
|
|
35
|
+
"@rokkit/core": "latest"
|
|
39
36
|
}
|
|
40
37
|
}
|
package/src/base/alert.css
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/* Alert styles */
|
|
2
|
-
|
|
2
|
+
rk-alert-list {
|
|
3
3
|
@apply right-8 top-12 w-80;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@apply cursor-pointer
|
|
6
|
+
rk-alert,
|
|
7
|
+
rk-error,
|
|
8
|
+
rk-info,
|
|
9
|
+
rk-warning,
|
|
10
|
+
rk-success {
|
|
11
|
+
@apply cursor-pointer rounded border px-4 py-2;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
rk-alert.error,
|
|
15
|
+
rk-alert.danger,
|
|
16
|
+
rk-error {
|
|
17
17
|
@apply bg-error text-error-contrast border-error-muted;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
rk-alert.info,
|
|
20
|
+
rk-info {
|
|
21
21
|
@apply bg-info text-info-contrast border-info-muted;
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
rk-alert.warning,
|
|
24
|
+
rk-warning {
|
|
25
25
|
@apply bg-warn text-warn-contrast border-warn-muted;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
rk-alert.success,
|
|
28
|
+
rk-success {
|
|
29
29
|
@apply bg-success text-success-contrast border-success-muted;
|
|
30
30
|
}
|
package/src/base/animation.css
CHANGED
|
@@ -8,6 +8,21 @@
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
@keyframes shake {
|
|
12
|
+
0% {
|
|
13
|
+
transform: translateX(0);
|
|
14
|
+
}
|
|
15
|
+
25% {
|
|
16
|
+
transform: translateX(1px);
|
|
17
|
+
}
|
|
18
|
+
50% {
|
|
19
|
+
transform: translateX(-1px);
|
|
20
|
+
}
|
|
21
|
+
100% {
|
|
22
|
+
transform: translateX(0);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
11
26
|
/* Button and focus animation */
|
|
12
27
|
@keyframes button-pop {
|
|
13
28
|
0% {
|
package/src/base/atoms.css
CHANGED
|
@@ -1,59 +1,58 @@
|
|
|
1
1
|
/* Icon styles */
|
|
2
|
-
|
|
2
|
+
rk-icon {
|
|
3
3
|
@apply flex flex-shrink-0 flex-grow-0 items-center justify-center;
|
|
4
|
-
@apply h-
|
|
4
|
+
/* @apply h-6 min-h-6 w-6; */
|
|
5
5
|
}
|
|
6
|
-
button >
|
|
7
|
-
@apply aspect-square cursor-pointer select-none p-2 focus:outline;
|
|
6
|
+
button > rk-icon {
|
|
7
|
+
@apply text-md aspect-square cursor-pointer select-none p-2 focus:outline;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
@apply mx-auto aspect-square text-
|
|
9
|
+
rk-icon > i {
|
|
10
|
+
@apply mx-auto aspect-square text-current;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
rk-icon.large {
|
|
13
13
|
@apply text-3xl;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
rk-icon.medium {
|
|
16
16
|
@apply text-lg leading-5;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
rk-icon.small {
|
|
19
19
|
@apply leading-4;
|
|
20
20
|
font-size: 1rem;
|
|
21
21
|
}
|
|
22
|
-
button >
|
|
22
|
+
button > rk-icon.large {
|
|
23
23
|
@apply h-12 w-12;
|
|
24
24
|
}
|
|
25
|
-
button >
|
|
25
|
+
button > rk-icon.medium {
|
|
26
26
|
@apply h-8 w-8;
|
|
27
27
|
}
|
|
28
|
-
button >
|
|
28
|
+
button > rk-icon.small {
|
|
29
29
|
@apply h-6 w-6;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/* Scroll styles */
|
|
33
|
-
|
|
33
|
+
rk-scroll {
|
|
34
34
|
@apply flex flex-col overflow-y-scroll;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/* Square styles */
|
|
38
38
|
square {
|
|
39
|
-
@apply flex aspect-square
|
|
39
|
+
@apply flex aspect-square flex-col items-center justify-center;
|
|
40
|
+
/*h-full min-h-full*/
|
|
40
41
|
}
|
|
41
42
|
/* Item styles */
|
|
42
|
-
|
|
43
|
+
rk-item,
|
|
44
|
+
rk-list-item,
|
|
43
45
|
.item {
|
|
44
|
-
@apply flex flex-shrink-0 flex-grow-0 cursor-pointer
|
|
46
|
+
@apply flex flex-shrink-0 flex-grow-0 cursor-pointer items-center gap-2;
|
|
45
47
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
|
|
49
|
+
rk-item p,
|
|
50
|
+
rk-list-item p,
|
|
51
|
+
rk-summary p {
|
|
48
52
|
@apply flex flex-grow;
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
/* Overlay styles */
|
|
52
|
-
|
|
56
|
+
rk-overlay {
|
|
53
57
|
@apply bg-neutral-inset bg-opacity-50;
|
|
54
58
|
}
|
|
55
|
-
|
|
56
|
-
/* Checkbox styles */
|
|
57
|
-
rkt-checkbox {
|
|
58
|
-
@apply gap-2;
|
|
59
|
-
}
|
package/src/base/carousel.css
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
rk-carousel rk-slide {
|
|
2
2
|
@apply min-h-100 items-center gap-3 px-12;
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
rk-carousel rk-slide > img {
|
|
5
5
|
@apply h-80 w-80 object-cover;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
rk-carousel rk-slide > p {
|
|
8
8
|
@apply text-center text-xl;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
rk-carousel rk-dot-nav {
|
|
11
11
|
@apply flex h-4 w-full justify-center gap-2;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
rk-carousel rk-dot {
|
|
14
14
|
@apply m-0 block h-4 w-4 cursor-pointer rounded-full p-0 focus:outline-none;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
rk-carousel rk-dot[aria-checked='true'] {
|
|
17
17
|
@apply bg-primary;
|
|
18
18
|
}
|
package/src/base/core.css
CHANGED
|
@@ -35,6 +35,7 @@ pre {
|
|
|
35
35
|
.disabled {
|
|
36
36
|
@apply text-disabled;
|
|
37
37
|
}
|
|
38
|
+
|
|
38
39
|
input[disabled='true'],
|
|
39
40
|
textarea[disabled='true'],
|
|
40
41
|
select[disabled='true'] {
|
|
@@ -42,28 +43,29 @@ select[disabled='true'] {
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
/* plots*/
|
|
45
|
-
|
|
46
|
+
rk-plot {
|
|
46
47
|
@apply bg-neutral-inset rounded-md p-4;
|
|
47
48
|
}
|
|
49
|
+
|
|
48
50
|
g[aria-label='tip'] {
|
|
49
51
|
--plot-background: var(--neutral-200);
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
rk-input-field input,
|
|
55
|
+
rk-input-field toggle-switch,
|
|
56
|
+
rk-drop-down {
|
|
55
57
|
@apply focus:outline-none;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
@apply cursor-pointer
|
|
60
|
+
rk-alert,
|
|
61
|
+
rk-error,
|
|
62
|
+
rk-info,
|
|
63
|
+
rk-warning,
|
|
64
|
+
rk-success {
|
|
65
|
+
@apply cursor-pointer rounded border px-4 py-2;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
|
-
|
|
68
|
+
rk-checkbox {
|
|
67
69
|
@apply gap-2;
|
|
68
70
|
}
|
|
69
71
|
|
|
@@ -71,14 +73,32 @@ button:disabled {
|
|
|
71
73
|
@apply bg-neutral-muted cursor-not-allowed text-neutral-500;
|
|
72
74
|
}
|
|
73
75
|
|
|
74
|
-
|
|
76
|
+
rk-cell.cell-type-string {
|
|
75
77
|
@apply text-left;
|
|
76
78
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
rk-cell.cell-type-integer rk-item p,
|
|
80
|
+
rk-cell.cell-type-number rk-item p {
|
|
79
81
|
@apply text-right;
|
|
80
82
|
}
|
|
81
83
|
|
|
82
|
-
|
|
84
|
+
rk-cell rk-item {
|
|
83
85
|
@apply flex w-full;
|
|
84
86
|
}
|
|
87
|
+
|
|
88
|
+
.dark ::-webkit-calendar-picker-indicator {
|
|
89
|
+
filter: invert(1);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Autofill styles */
|
|
93
|
+
input:-webkit-autofill,
|
|
94
|
+
input:-webkit-autofill:hover,
|
|
95
|
+
input:-webkit-autofill:focus,
|
|
96
|
+
textarea:-webkit-autofill,
|
|
97
|
+
textarea:-webkit-autofill:hover,
|
|
98
|
+
textarea:-webkit-autofill:focus,
|
|
99
|
+
select:-webkit-autofill,
|
|
100
|
+
select:-webkit-autofill:hover,
|
|
101
|
+
select:-webkit-autofill:focus {
|
|
102
|
+
-webkit-text-fill-color: var(--neutral-200);
|
|
103
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
104
|
+
}
|
package/src/base/layout.css
CHANGED
package/src/base/molecules.css
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
/* Input range styles */
|
|
2
|
-
|
|
2
|
+
rk-input-range rk-range-track {
|
|
3
3
|
@apply relative mt-3 h-1;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
rk-input-range rk-range-track rk-range-track-bar {
|
|
6
6
|
@apply bg-neutral-subtle border-neutral-muted rounded-full;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
rk-input-range rk-range-track selected {
|
|
9
9
|
@apply top-0px bottom-0px;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
rk-input-range rk-range-track rk-thumb {
|
|
12
12
|
@apply rounded-full;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
rk-input-range rk-thumb {
|
|
15
15
|
@apply bg-secondary border-secondary -top-1.5 border shadow-xl;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
rk-input-range rk-thumb.sliding::before {
|
|
18
18
|
content: '';
|
|
19
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
|
|
25
|
-
.bookend
|
|
24
|
+
.bookend rk-range-track rk-range-track-bar::before,
|
|
25
|
+
.bookend rk-range-track rk-range-track-bar::after {
|
|
26
26
|
content: '';
|
|
27
27
|
@apply w-1px absolute -bottom-2 -top-2 rounded-full bg-gray-300;
|
|
28
28
|
}
|
|
29
|
-
.bookend
|
|
29
|
+
.bookend rk-range-track rk-range-track-bar::before {
|
|
30
30
|
@apply -left-1px;
|
|
31
31
|
}
|
|
32
|
-
.bookend
|
|
32
|
+
.bookend rk-range-track rk-range-track-bar::after {
|
|
33
33
|
@apply -right-2px;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
/* Input
|
|
37
|
-
|
|
36
|
+
/* Input rk-range tick styles */
|
|
37
|
+
rk-input-range tick {
|
|
38
38
|
grid-template-rows: 7px auto;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
rk-input-range tick tick-bar {
|
|
41
41
|
@apply h-full border-neutral-600;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
rk-input-range tick p {
|
|
44
44
|
@apply items-top leading-tight text-neutral-600;
|
|
45
45
|
font-size: 8px;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
/*
|
|
49
|
-
calendar {
|
|
48
|
+
/* rk-calendar styles */
|
|
49
|
+
rk-calendar {
|
|
50
50
|
@apply overflow-hidden rounded-md shadow-lg;
|
|
51
51
|
}
|
|
52
|
-
calendar month-year {
|
|
52
|
+
rk-calendar month-year {
|
|
53
53
|
@apply bg-secondary-400 text-white;
|
|
54
54
|
}
|
|
55
|
-
calendar cal-body days-of-week p,
|
|
56
|
-
calendar cal-body days-of-month p {
|
|
55
|
+
rk-calendar cal-body days-of-week p,
|
|
56
|
+
rk-calendar cal-body days-of-month p {
|
|
57
57
|
@apply h-8 w-8 text-xs;
|
|
58
58
|
}
|
|
59
|
-
calendar cal-body days-of-week p.weekend,
|
|
60
|
-
calendar cal-body days-of-month p.weekend,
|
|
61
|
-
calendar cal-body days-of-month p.holiday {
|
|
59
|
+
rk-calendar cal-body days-of-week p.weekend,
|
|
60
|
+
rk-calendar cal-body days-of-month p.weekend,
|
|
61
|
+
rk-calendar cal-body days-of-month p.holiday {
|
|
62
62
|
@apply text-primary-700;
|
|
63
63
|
}
|
|
64
|
-
calendar cal-body days-of-month {
|
|
64
|
+
rk-calendar cal-body days-of-month {
|
|
65
65
|
@apply gap-2px;
|
|
66
66
|
}
|
|
67
|
-
day-of-month {
|
|
67
|
+
rk-day-of-month {
|
|
68
68
|
@apply hover:bg-secondary-200 hover:rounded-full;
|
|
69
69
|
}
|
|
70
|
-
day-of-month[aria-selected='true'] {
|
|
70
|
+
rk-day-of-month[aria-selected='true'] {
|
|
71
71
|
@apply bg-secondary rounded-full text-white;
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -81,46 +81,29 @@ 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
|
|
84
|
+
selected-item rk-item {
|
|
85
85
|
@apply flex-grow;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
rk-input-field {
|
|
88
88
|
@apply m-0 w-full py-1;
|
|
89
89
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
rk-input-field input,
|
|
91
|
+
rk-input-field textarea,
|
|
92
|
+
rk-input-field select,
|
|
93
|
+
rk-input-field > field > :not(icon) {
|
|
94
94
|
@apply px-3;
|
|
95
95
|
@apply min-h-9 flex-grow leading-loose outline-none;
|
|
96
96
|
@apply bg-neutral-subtle text-neutral-800;
|
|
97
97
|
}
|
|
98
|
-
|
|
98
|
+
rk-input-field > label {
|
|
99
99
|
@apply text-xs uppercase;
|
|
100
100
|
@apply leading-loose;
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
rk-input-field > label.required::after {
|
|
103
103
|
content: ' *';
|
|
104
104
|
@apply state-danger;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
@apply
|
|
109
|
-
}
|
|
110
|
-
/* Progress bar styles */
|
|
111
|
-
progress-bar {
|
|
112
|
-
@apply bg-neutral-muted border-neutral-subtle border;
|
|
113
|
-
}
|
|
114
|
-
progress-bar value-bar {
|
|
115
|
-
@apply bg-primary;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.indeterminate value-bar {
|
|
119
|
-
position: absolute;
|
|
120
|
-
bottom: 0;
|
|
121
|
-
top: 0;
|
|
122
|
-
/* Move the bar infinitely */
|
|
123
|
-
animation-duration: 2s;
|
|
124
|
-
animation-iteration-count: infinite;
|
|
125
|
-
animation-name: pendulum;
|
|
107
|
+
rk-select > select {
|
|
108
|
+
@apply min-h-9 min-w-40 rounded px-3;
|
|
126
109
|
}
|
package/src/base/organisms.css
CHANGED
|
@@ -1,25 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/* default structure */
|
|
2
|
+
/* List styles */
|
|
3
|
+
rk-list {
|
|
4
|
+
@apply flex w-full flex-shrink-0 select-none flex-col;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/* Accordion */
|
|
8
|
+
rk-accordion {
|
|
9
|
+
@apply flex w-full select-none flex-col;
|
|
10
|
+
}
|
|
11
|
+
/* Node Styles */
|
|
12
|
+
rk-node {
|
|
13
|
+
@apply flex min-h-5 cursor-pointer select-none flex-col;
|
|
14
|
+
}
|
|
15
|
+
/* Nested List Styles */
|
|
16
|
+
rk-nested-list {
|
|
17
|
+
@apply flex w-full flex-col;
|
|
18
|
+
}
|
|
19
|
+
rk-tree {
|
|
20
|
+
@apply flex h-full w-full flex-shrink-0 flex-col scroll-auto;
|
|
21
|
+
}
|
|
22
|
+
rk-status-report {
|
|
23
|
+
@apply flex flex-col;
|
|
24
|
+
}
|
|
25
|
+
rk-status-report > rk-message {
|
|
26
|
+
@apply flex gap-2;
|
|
27
|
+
}
|
|
28
|
+
rk-input-range {
|
|
29
|
+
@apply relative grid h-10 grid-rows-2;
|
|
30
|
+
}
|
|
31
|
+
rk-checkbox {
|
|
32
|
+
@apply flex cursor-pointer select-none items-center leading-loose;
|
|
33
|
+
}
|
|
34
|
+
rk-crumbs {
|
|
35
|
+
@apply flex gap-1;
|
|
36
|
+
}
|
|
37
|
+
rk-pill {
|
|
38
|
+
@apply py-2px flex items-center gap-2 px-2;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
rk-input-select,
|
|
42
|
+
rk-drop-down {
|
|
3
43
|
@apply cursor-pointer overflow-visible;
|
|
4
44
|
}
|
|
5
45
|
|
|
6
|
-
|
|
46
|
+
rk-input-field rk-field {
|
|
7
47
|
@apply gap-1px;
|
|
8
48
|
}
|
|
9
|
-
|
|
49
|
+
rk-input-field rk-field rk-icon {
|
|
10
50
|
@apply bg-neutral-subtle h-9 w-9 text-neutral-800;
|
|
11
51
|
}
|
|
12
52
|
|
|
13
|
-
|
|
53
|
+
rk-input-field > rk-field > rk-input-select {
|
|
14
54
|
@apply px-0;
|
|
15
55
|
}
|
|
16
56
|
|
|
17
|
-
|
|
18
|
-
|
|
57
|
+
rk-input-select rk-selected-item > rk-icon,
|
|
58
|
+
rk-drop-down > button > span > rk-icon {
|
|
19
59
|
@apply h-full w-9;
|
|
20
60
|
}
|
|
21
|
-
|
|
22
|
-
|
|
61
|
+
rk-input-select > rk-selected-item,
|
|
62
|
+
rk-drop-down > button > span {
|
|
23
63
|
/* @apply bg-neutral-base pl-3; */
|
|
24
64
|
@apply min-h-9 items-center gap-2 pl-3 normal-case;
|
|
25
65
|
@apply rounded text-neutral-800;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Progress bar styles */
|
|
2
|
+
rk-progress {
|
|
3
|
+
@apply flex w-full;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
rk-progress {
|
|
7
|
+
@apply bg-neutral-muted border-neutral-subtle border;
|
|
8
|
+
}
|
|
9
|
+
rk-progress value-bar {
|
|
10
|
+
@apply bg-primary;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.indeterminate value-bar {
|
|
14
|
+
position: absolute;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
top: 0;
|
|
17
|
+
/* Move the bar infinitely */
|
|
18
|
+
animation-duration: 2s;
|
|
19
|
+
animation-iteration-count: infinite;
|
|
20
|
+
animation-name: pendulum;
|
|
21
|
+
}
|
package/src/base/table.css
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Checkbox styles */
|
|
2
|
+
rk-checkbox {
|
|
3
|
+
@apply gap-2;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
rk-switch,
|
|
7
|
+
rk-toggle {
|
|
8
|
+
@apply flex items-center gap-2;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
rk-radio-group label {
|
|
12
|
+
@apply cursor-pointer uppercase;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
rk-toggle {
|
|
16
|
+
@apply text-primary-700;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
rk-toggle button {
|
|
20
|
+
@apply flex h-8 w-8 items-center justify-center rounded-sm;
|
|
21
|
+
}
|
package/src/base/tree.css
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
rk-tree,
|
|
2
|
+
rk-nested-list {
|
|
3
3
|
@apply flex w-full flex-col text-sm;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
rk-nested-list rk-node > div {
|
|
6
6
|
@apply h-8 px-2;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
rk-nested-list rk-node {
|
|
10
10
|
@apply flex flex-col;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
rk-node > div > rk-item {
|
|
14
14
|
@apply px-1;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
rk-node > div > span {
|
|
17
17
|
@apply flex-shrink-0;
|
|
18
18
|
}
|
package/src/base.css
CHANGED
package/src/markdown.css
CHANGED
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
/* postcss-ignore */
|
|
74
74
|
.markdown-body summary {
|
|
75
|
-
display:
|
|
75
|
+
display: rk-list-item;
|
|
76
76
|
}
|
|
77
77
|
/* postcss-ignore */
|
|
78
78
|
.markdown-body a {
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
margin-bottom: 0;
|
|
224
224
|
}
|
|
225
225
|
.markdown-body ul {
|
|
226
|
-
|
|
226
|
+
rk-list-style-type: none;
|
|
227
227
|
}
|
|
228
228
|
.markdown-body ul li {
|
|
229
229
|
@apply relative mb-2;
|
|
@@ -234,19 +234,19 @@
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
.markdown-body ol {
|
|
237
|
-
|
|
237
|
+
rk-list-style-type: decimal;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
.markdown-body ol ol,
|
|
241
241
|
.markdown-body ul ol {
|
|
242
|
-
|
|
242
|
+
rk-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
|
-
|
|
249
|
+
rk-list-style-type: lower-alpha;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.markdown-body dd {
|
|
@@ -942,7 +942,7 @@
|
|
|
942
942
|
}
|
|
943
943
|
|
|
944
944
|
.markdown-body .task-list-item {
|
|
945
|
-
|
|
945
|
+
rk-list-style-type: none;
|
|
946
946
|
}
|
|
947
947
|
|
|
948
948
|
.markdown-body .task-list-item + .task-list-item {
|
package/src/material/base.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@import '../base.css';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[data-style='material'] rk-icon[role='button'] {
|
|
4
4
|
@apply text-neutral-muted hover:text-primary focus:outline-primary focus:m-1px focus:rounded;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
[data-style='material'] rk-icon.disabled[role='button'] {
|
|
7
7
|
@apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
[data-style='material'] * {
|
|
11
11
|
@apply focus:outline-primary-400;
|
|
12
12
|
}
|