@rokkit/themes 1.0.0-next.12 → 1.0.0-next.120
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 +9 -31
- package/src/base/alert.css +30 -0
- package/src/base/animation.css +37 -0
- package/src/base/atoms.css +58 -0
- package/src/base/carousel.css +18 -0
- package/src/base/core.css +107 -0
- package/src/base/layout.css +65 -0
- package/src/base/molecules.css +109 -0
- package/src/base/organisms.css +66 -0
- package/src/base/progress.css +21 -0
- package/src/base/scrollbar.css +16 -0
- package/src/base/table.css +49 -0
- package/src/base/toggles.css +17 -0
- package/src/base/tree.css +18 -0
- package/src/base.css +13 -0
- package/src/constants.js +7 -3
- package/src/index.js +3 -2
- package/src/markdown.css +955 -0
- package/src/material/base.css +12 -0
- package/src/material/form.css +30 -0
- package/src/material/input.css +65 -0
- package/src/material/list.css +96 -0
- package/src/material.css +9 -0
- package/src/minimal/base.css +8 -0
- package/src/minimal/form.css +87 -0
- package/src/minimal/input.css +154 -0
- package/src/minimal/list.css +136 -0
- package/src/minimal/tabs.css +44 -0
- package/src/minimal.css +11 -0
- package/src/mixins/mixins.scss +66 -0
- package/src/mixins/palette.scss +48 -0
- package/src/palette.css +25 -0
- package/src/prism.css +102 -0
- package/src/rokkit/alert.css +4 -0
- package/src/rokkit/atoms.css +52 -0
- package/src/rokkit/carousel.css +19 -0
- package/src/rokkit/input.css +52 -0
- package/src/rokkit/layout.css +17 -0
- package/src/rokkit/molecules.css +124 -0
- package/src/rokkit/organisms.css +307 -0
- package/src/rokkit/table.css +57 -0
- package/src/rokkit/toggle.css +64 -0
- package/src/rokkit.css +11 -0
- package/LICENSE +0 -21
- package/src/utils.js +0 -88
package/package.json
CHANGED
|
@@ -1,37 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokkit/themes",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.120",
|
|
4
4
|
"description": "Themes for use with rokkit components.",
|
|
5
5
|
"author": "Jerry Thomas <me@jerrythomas.name>",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"svelte": "src/index.js",
|
|
8
7
|
"module": "src/index.js",
|
|
9
8
|
"types": "dist/index.d.ts",
|
|
10
9
|
"type": "module",
|
|
11
|
-
"prettier": "@jerrythomas/prettier-config",
|
|
12
10
|
"publishConfig": {
|
|
13
11
|
"access": "public"
|
|
14
12
|
},
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"@vitest/ui": "~0.12.10",
|
|
20
|
-
"c8": "^7.12.0",
|
|
21
|
-
"eslint": "^7.32.0",
|
|
22
|
-
"jsdom": "^19.0.0",
|
|
23
|
-
"svelte": "^3.55.1",
|
|
24
|
-
"typescript": "^4.9.5",
|
|
25
|
-
"vite": "^3.2.5",
|
|
26
|
-
"vitest": "~0.19.1",
|
|
27
|
-
"@rokkit/core": "1.0.0-next.12",
|
|
28
|
-
"shared-config": "1.0.0"
|
|
13
|
+
"scripts": {
|
|
14
|
+
"prepublishOnly": "tsc --project tsconfig.build.json",
|
|
15
|
+
"clean": "rm -rf dist",
|
|
16
|
+
"build": "bun clean && bun prepublishOnly"
|
|
29
17
|
},
|
|
30
18
|
"files": [
|
|
31
|
-
"src
|
|
32
|
-
"src/**/*.svelte",
|
|
33
|
-
"!src/fixtures",
|
|
34
|
-
"!src/**/*.spec.js"
|
|
19
|
+
"src"
|
|
35
20
|
],
|
|
36
21
|
"exports": {
|
|
37
22
|
"./modern.css": "./src/modern.css",
|
|
@@ -46,14 +31,7 @@
|
|
|
46
31
|
"import": "./src/index.js"
|
|
47
32
|
}
|
|
48
33
|
},
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"format": "prettier --write --plugin-search-dir=. .",
|
|
52
|
-
"test:ct": "playwright test -c playwright.config.js",
|
|
53
|
-
"test:ui": "vitest --ui",
|
|
54
|
-
"test:ci": "vitest run",
|
|
55
|
-
"test": "vitest",
|
|
56
|
-
"coverage": "vitest run --coverage",
|
|
57
|
-
"upgrade": "pnpm upgrade"
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@rokkit/core": "latest"
|
|
58
36
|
}
|
|
59
|
-
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* Alert styles */
|
|
2
|
+
rk-alert-list {
|
|
3
|
+
@apply right-8 top-12 w-80;
|
|
4
|
+
}
|
|
5
|
+
|
|
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
|
+
}
|
|
13
|
+
|
|
14
|
+
rk-alert.error,
|
|
15
|
+
rk-alert.danger,
|
|
16
|
+
rk-error {
|
|
17
|
+
@apply bg-error text-error-contrast border-error-muted;
|
|
18
|
+
}
|
|
19
|
+
rk-alert.info,
|
|
20
|
+
rk-info {
|
|
21
|
+
@apply bg-info text-info-contrast border-info-muted;
|
|
22
|
+
}
|
|
23
|
+
rk-alert.warning,
|
|
24
|
+
rk-warning {
|
|
25
|
+
@apply bg-warn text-warn-contrast border-warn-muted;
|
|
26
|
+
}
|
|
27
|
+
rk-alert.success,
|
|
28
|
+
rk-success {
|
|
29
|
+
@apply bg-success text-success-contrast border-success-muted;
|
|
30
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* progress animation */
|
|
2
|
+
@keyframes pendulum {
|
|
3
|
+
from {
|
|
4
|
+
left: -50%;
|
|
5
|
+
}
|
|
6
|
+
to {
|
|
7
|
+
left: 100%;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
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
|
+
|
|
26
|
+
/* Button and focus animation */
|
|
27
|
+
@keyframes button-pop {
|
|
28
|
+
0% {
|
|
29
|
+
transform: scale(var(--btn-focus-scale, 0.95));
|
|
30
|
+
}
|
|
31
|
+
40% {
|
|
32
|
+
transform: scale(1.02);
|
|
33
|
+
}
|
|
34
|
+
100% {
|
|
35
|
+
transform: scale(1);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* Icon styles */
|
|
2
|
+
rk-icon {
|
|
3
|
+
@apply flex flex-shrink-0 flex-grow-0 items-center justify-center;
|
|
4
|
+
/* @apply h-6 min-h-6 w-6; */
|
|
5
|
+
}
|
|
6
|
+
button > rk-icon {
|
|
7
|
+
@apply text-md aspect-square cursor-pointer select-none;
|
|
8
|
+
}
|
|
9
|
+
rk-icon > i {
|
|
10
|
+
@apply mx-auto aspect-square text-current;
|
|
11
|
+
}
|
|
12
|
+
rk-icon.large {
|
|
13
|
+
@apply text-3xl;
|
|
14
|
+
}
|
|
15
|
+
rk-icon.medium {
|
|
16
|
+
@apply text-lg leading-5;
|
|
17
|
+
}
|
|
18
|
+
rk-icon.small {
|
|
19
|
+
@apply leading-4;
|
|
20
|
+
font-size: 1rem;
|
|
21
|
+
}
|
|
22
|
+
button > rk-icon.large {
|
|
23
|
+
@apply h-12 w-12;
|
|
24
|
+
}
|
|
25
|
+
button > rk-icon.medium {
|
|
26
|
+
@apply h-8 w-8;
|
|
27
|
+
}
|
|
28
|
+
button > rk-icon.small {
|
|
29
|
+
@apply h-6 w-6;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Scroll styles */
|
|
33
|
+
rk-scroll {
|
|
34
|
+
@apply flex flex-col overflow-y-scroll;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Square styles */
|
|
38
|
+
square {
|
|
39
|
+
@apply flex aspect-square flex-col items-center justify-center;
|
|
40
|
+
/*h-full min-h-full*/
|
|
41
|
+
}
|
|
42
|
+
/* Item styles */
|
|
43
|
+
rk-item,
|
|
44
|
+
rk-list-item,
|
|
45
|
+
.item {
|
|
46
|
+
@apply flex flex-shrink-0 flex-grow-0 cursor-pointer items-center gap-2;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
rk-item p,
|
|
50
|
+
rk-list-item p,
|
|
51
|
+
rk-summary p {
|
|
52
|
+
@apply flex flex-grow;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Overlay styles */
|
|
56
|
+
rk-overlay {
|
|
57
|
+
@apply bg-neutral-inset bg-opacity-50;
|
|
58
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
rk-carousel rk-slide {
|
|
2
|
+
@apply min-h-100 items-center gap-3 px-12;
|
|
3
|
+
}
|
|
4
|
+
rk-carousel rk-slide > img {
|
|
5
|
+
@apply h-80 w-80 object-cover;
|
|
6
|
+
}
|
|
7
|
+
rk-carousel rk-slide > p {
|
|
8
|
+
@apply text-center text-xl;
|
|
9
|
+
}
|
|
10
|
+
rk-carousel rk-dot-nav {
|
|
11
|
+
@apply flex h-4 w-full justify-center gap-2;
|
|
12
|
+
}
|
|
13
|
+
rk-carousel rk-dot {
|
|
14
|
+
@apply m-0 block h-4 w-4 cursor-pointer rounded-full p-0 focus:outline-none;
|
|
15
|
+
}
|
|
16
|
+
rk-carousel rk-dot[aria-checked='true'] {
|
|
17
|
+
@apply bg-primary;
|
|
18
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* Global styles */
|
|
2
|
+
*:focus {
|
|
3
|
+
@apply outline-secondary outline outline-2 outline-offset-2;
|
|
4
|
+
}
|
|
5
|
+
*[tabindex='-1']:focus {
|
|
6
|
+
@apply outline-none;
|
|
7
|
+
}
|
|
8
|
+
* {
|
|
9
|
+
@apply box-border;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Body styles */
|
|
13
|
+
body {
|
|
14
|
+
@apply flex w-screen flex-col overflow-hidden;
|
|
15
|
+
/* height: var(--viewport-height, 100dvh); */
|
|
16
|
+
height: 100vh;
|
|
17
|
+
height: --webkit-fill-available;
|
|
18
|
+
height: 100dvh;
|
|
19
|
+
max-height: 100dvh;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Link styles */
|
|
23
|
+
a {
|
|
24
|
+
@apply text-primary-800 hover:text-secondary-800 visited:text-secondary-700 cursor-pointer;
|
|
25
|
+
}
|
|
26
|
+
a:focus {
|
|
27
|
+
@apply outline-none;
|
|
28
|
+
}
|
|
29
|
+
/* Code styles */
|
|
30
|
+
code,
|
|
31
|
+
kbd,
|
|
32
|
+
samp,
|
|
33
|
+
pre {
|
|
34
|
+
@apply font-mono font-medium;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Disabled styles */
|
|
38
|
+
.disabled {
|
|
39
|
+
@apply text-disabled;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
input[disabled='true'],
|
|
43
|
+
textarea[disabled='true'],
|
|
44
|
+
select[disabled='true'] {
|
|
45
|
+
@apply outline-disabled;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* plots*/
|
|
49
|
+
rk-plot {
|
|
50
|
+
@apply bg-neutral-inset rounded-md p-4;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
g[aria-label='tip'] {
|
|
54
|
+
--plot-background: var(--neutral-200);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
rk-input-field input,
|
|
58
|
+
rk-input-field toggle-switch,
|
|
59
|
+
rk-drop-down {
|
|
60
|
+
@apply focus:outline-none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
rk-alert,
|
|
64
|
+
rk-error,
|
|
65
|
+
rk-info,
|
|
66
|
+
rk-warning,
|
|
67
|
+
rk-success {
|
|
68
|
+
@apply cursor-pointer rounded border px-4 py-2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
rk-checkbox {
|
|
72
|
+
@apply gap-2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
button:disabled {
|
|
76
|
+
@apply bg-neutral-muted cursor-not-allowed text-neutral-500;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
rk-cell.cell-type-string {
|
|
80
|
+
@apply text-left;
|
|
81
|
+
}
|
|
82
|
+
rk-cell.cell-type-integer rk-item p,
|
|
83
|
+
rk-cell.cell-type-number rk-item p {
|
|
84
|
+
@apply text-right;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
rk-cell rk-item {
|
|
88
|
+
@apply flex w-full;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.dark ::-webkit-calendar-picker-indicator {
|
|
92
|
+
filter: invert(1);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Autofill styles */
|
|
96
|
+
input:-webkit-autofill,
|
|
97
|
+
input:-webkit-autofill:hover,
|
|
98
|
+
input:-webkit-autofill:focus,
|
|
99
|
+
textarea:-webkit-autofill,
|
|
100
|
+
textarea:-webkit-autofill:hover,
|
|
101
|
+
textarea:-webkit-autofill:focus,
|
|
102
|
+
select:-webkit-autofill,
|
|
103
|
+
select:-webkit-autofill:hover,
|
|
104
|
+
select:-webkit-autofill:focus {
|
|
105
|
+
-webkit-text-fill-color: var(--neutral-200);
|
|
106
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
107
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
rk-container > rk-segment {
|
|
2
|
+
@apply h-full overflow-hidden;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.three-col,
|
|
6
|
+
.two-col {
|
|
7
|
+
@apply grid min-h-full w-full overflow-hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.three-col.md {
|
|
11
|
+
@apply grid-cols-2 grid-rows-2;
|
|
12
|
+
/* grid-template-columns: repeat(2, 1fr); */
|
|
13
|
+
/* grid-template-rows: repeat(2, 1fr); */
|
|
14
|
+
grid-template-areas:
|
|
15
|
+
'c-1 c-2'
|
|
16
|
+
'c-1 c-3';
|
|
17
|
+
}
|
|
18
|
+
.three-col.md > .col-1,
|
|
19
|
+
.three-col.lg > .col-1 {
|
|
20
|
+
grid-area: c-1;
|
|
21
|
+
}
|
|
22
|
+
.three-col.md > .col-2,
|
|
23
|
+
.three-col.lg > .col-2 {
|
|
24
|
+
grid-area: c-2;
|
|
25
|
+
}
|
|
26
|
+
.three-col.md > .col-3,
|
|
27
|
+
.three-col.lg > .col-3 {
|
|
28
|
+
grid-area: c-3;
|
|
29
|
+
}
|
|
30
|
+
.three-col.lg {
|
|
31
|
+
@apply grid-cols-5 grid-rows-2;
|
|
32
|
+
/* grid-template-columns: repeat(5, 1fr); */
|
|
33
|
+
/* grid-template-rows: repeat(2, 1fr); */
|
|
34
|
+
grid-template-areas:
|
|
35
|
+
'c-1 c-1 c-2 c-2 c-2'
|
|
36
|
+
'c-1 c-1 c-3 c-3 c-3';
|
|
37
|
+
}
|
|
38
|
+
.three-col.sm,
|
|
39
|
+
.two-col.sm {
|
|
40
|
+
@apply grid-cols-1 grid-rows-1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.two-col.md {
|
|
44
|
+
@apply grid-cols-2 grid-rows-1;
|
|
45
|
+
/* grid-template-columns: repeat(2, 1fr); */
|
|
46
|
+
grid-template-areas: 'c-1 c-2';
|
|
47
|
+
}
|
|
48
|
+
.two-col.lg {
|
|
49
|
+
@apply grid-cols-5 grid-rows-1;
|
|
50
|
+
/* grid-template-columns: repeat(5, 1fr); */
|
|
51
|
+
grid-template-areas: 'c-1 c-1 c-2 c-2 c-2';
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.two-col.md > .col-1,
|
|
55
|
+
.two-col.lg > .col-1 {
|
|
56
|
+
grid-area: c-1;
|
|
57
|
+
}
|
|
58
|
+
.two-col.md > .col-2,
|
|
59
|
+
.two-col.lg > .col-2 {
|
|
60
|
+
grid-area: c-2;
|
|
61
|
+
}
|
|
62
|
+
.two-col.md > .col-3,
|
|
63
|
+
.two-col.lg > .col-3 {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* Input range styles */
|
|
2
|
+
rk-input-range rk-range-track {
|
|
3
|
+
@apply relative mt-3 h-1;
|
|
4
|
+
}
|
|
5
|
+
rk-input-range rk-range-track rk-range-track-bar {
|
|
6
|
+
@apply bg-neutral-subtle border-neutral-muted rounded-full;
|
|
7
|
+
}
|
|
8
|
+
rk-input-range rk-range-track selected {
|
|
9
|
+
@apply top-0px bottom-0px;
|
|
10
|
+
}
|
|
11
|
+
rk-input-range rk-range-track rk-thumb {
|
|
12
|
+
@apply rounded-full;
|
|
13
|
+
}
|
|
14
|
+
rk-input-range rk-thumb {
|
|
15
|
+
@apply bg-secondary border-secondary -top-1.5 border shadow-xl;
|
|
16
|
+
}
|
|
17
|
+
rk-input-range rk-thumb.sliding::before {
|
|
18
|
+
content: '';
|
|
19
|
+
@apply bg-secondary-400 absolute bottom-0 left-0 right-0 top-0 rounded-full opacity-30;
|
|
20
|
+
transform: scale(2, 2);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Bookend styles */
|
|
24
|
+
.bookend rk-range-track rk-range-track-bar::before,
|
|
25
|
+
.bookend rk-range-track rk-range-track-bar::after {
|
|
26
|
+
content: '';
|
|
27
|
+
@apply w-1px absolute -bottom-2 -top-2 rounded-full bg-gray-300;
|
|
28
|
+
}
|
|
29
|
+
.bookend rk-range-track rk-range-track-bar::before {
|
|
30
|
+
@apply -left-1px;
|
|
31
|
+
}
|
|
32
|
+
.bookend rk-range-track rk-range-track-bar::after {
|
|
33
|
+
@apply -right-2px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Input rk-range tick styles */
|
|
37
|
+
rk-input-range tick {
|
|
38
|
+
grid-template-rows: 7px auto;
|
|
39
|
+
}
|
|
40
|
+
rk-input-range tick tick-bar {
|
|
41
|
+
@apply h-full border-neutral-600;
|
|
42
|
+
}
|
|
43
|
+
rk-input-range tick p {
|
|
44
|
+
@apply items-top leading-tight text-neutral-600;
|
|
45
|
+
font-size: 8px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* rk-calendar styles */
|
|
49
|
+
rk-calendar {
|
|
50
|
+
@apply overflow-hidden rounded-md shadow-lg;
|
|
51
|
+
}
|
|
52
|
+
rk-calendar month-year {
|
|
53
|
+
@apply bg-secondary-400 text-white;
|
|
54
|
+
}
|
|
55
|
+
rk-calendar cal-body days-of-week p,
|
|
56
|
+
rk-calendar cal-body days-of-month p {
|
|
57
|
+
@apply h-8 w-8 text-xs;
|
|
58
|
+
}
|
|
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
|
+
@apply text-primary-700;
|
|
63
|
+
}
|
|
64
|
+
rk-calendar cal-body days-of-month {
|
|
65
|
+
@apply gap-2px;
|
|
66
|
+
}
|
|
67
|
+
rk-day-of-month {
|
|
68
|
+
@apply hover:bg-secondary-200 hover:rounded-full;
|
|
69
|
+
}
|
|
70
|
+
rk-day-of-month[aria-selected='true'] {
|
|
71
|
+
@apply bg-secondary rounded-full text-white;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Form styles */
|
|
75
|
+
form {
|
|
76
|
+
@apply flex flex-col gap-4;
|
|
77
|
+
}
|
|
78
|
+
field-layout.vertical {
|
|
79
|
+
@apply flex flex-col gap-2;
|
|
80
|
+
}
|
|
81
|
+
field-layout.horizontal {
|
|
82
|
+
@apply flex flex-col gap-2 md:flex-row md:gap-4;
|
|
83
|
+
}
|
|
84
|
+
selected-item rk-item {
|
|
85
|
+
@apply flex-grow;
|
|
86
|
+
}
|
|
87
|
+
rk-input-field {
|
|
88
|
+
@apply m-0 w-full py-1;
|
|
89
|
+
}
|
|
90
|
+
rk-input-field input,
|
|
91
|
+
rk-input-field textarea,
|
|
92
|
+
rk-input-field select,
|
|
93
|
+
rk-input-field > field > :not(icon) {
|
|
94
|
+
@apply px-3;
|
|
95
|
+
@apply min-h-9 flex-grow leading-loose outline-none;
|
|
96
|
+
@apply bg-neutral-subtle text-neutral-800;
|
|
97
|
+
}
|
|
98
|
+
rk-input-field > label {
|
|
99
|
+
@apply text-xs uppercase;
|
|
100
|
+
@apply leading-loose;
|
|
101
|
+
}
|
|
102
|
+
rk-input-field > label.required::after {
|
|
103
|
+
content: ' *';
|
|
104
|
+
@apply state-danger;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
rk-select > select {
|
|
108
|
+
@apply min-w-40 rounded px-3 leading-loose;
|
|
109
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 {
|
|
43
|
+
@apply cursor-pointer overflow-visible;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
rk-input-field rk-field {
|
|
47
|
+
@apply gap-1px;
|
|
48
|
+
}
|
|
49
|
+
rk-input-field rk-field rk-icon {
|
|
50
|
+
@apply bg-neutral-subtle h-9 w-9 text-neutral-800;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
rk-input-field > rk-field > rk-input-select {
|
|
54
|
+
@apply px-0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
rk-input-select rk-selected-item > rk-icon,
|
|
58
|
+
rk-drop-down > button > span > rk-icon {
|
|
59
|
+
@apply h-full w-9;
|
|
60
|
+
}
|
|
61
|
+
rk-input-select > rk-selected-item,
|
|
62
|
+
rk-drop-down > button > span {
|
|
63
|
+
/* @apply bg-neutral-base pl-3; */
|
|
64
|
+
@apply min-h-9 items-center gap-2 pl-3 normal-case;
|
|
65
|
+
@apply rounded text-neutral-800;
|
|
66
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* Scrollbar styles */
|
|
2
|
+
/* Firefox */
|
|
3
|
+
* {
|
|
4
|
+
scrollbar-width: thin;
|
|
5
|
+
scrollbar-color: rgba(0, 0, 0, 0.5) transparent;
|
|
6
|
+
}
|
|
7
|
+
/* For Webkit browsers */
|
|
8
|
+
::-webkit-scrollbar:horizontal {
|
|
9
|
+
@apply max-h-2;
|
|
10
|
+
}
|
|
11
|
+
::-webkit-scrollbar:vertical {
|
|
12
|
+
@apply max-w-2;
|
|
13
|
+
}
|
|
14
|
+
::-webkit-scrollbar-thumb {
|
|
15
|
+
@apply rgba(0,0,0,0.5) rounded-full;
|
|
16
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
table 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-left text-sm text-neutral-700 rtl:text-right;
|
|
24
|
+
@apply border-spacing-x-1px border-separate;
|
|
25
|
+
}
|
|
26
|
+
table > thead {
|
|
27
|
+
@apply sticky top-0 z-10 table-header-group;
|
|
28
|
+
@apply bg-neutral-400 text-xs uppercase;
|
|
29
|
+
}
|
|
30
|
+
table > caption {
|
|
31
|
+
@apply bg-neutral-subtle table-caption p-5 text-left text-sm font-normal text-neutral-600 rtl:text-right;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
table > tbody > tr {
|
|
35
|
+
@apply border-neutral-base bg-neutral-subtle table-row border-b;
|
|
36
|
+
}
|
|
37
|
+
table.striped > tbody > tr:nth-child(even) {
|
|
38
|
+
@apply bg-neutral-inset;
|
|
39
|
+
}
|
|
40
|
+
table > tfoot {
|
|
41
|
+
@apply table-footer-group;
|
|
42
|
+
}
|
|
43
|
+
table > tfoot > tr {
|
|
44
|
+
@apply table-row font-semibold text-neutral-800;
|
|
45
|
+
}
|
|
46
|
+
rk-tree-table,
|
|
47
|
+
rk-table {
|
|
48
|
+
@apply max-h-full overflow-y-auto;
|
|
49
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* Checkbox styles */
|
|
2
|
+
rk-checkbox {
|
|
3
|
+
@apply gap-2;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
rk-switch,
|
|
7
|
+
rk-toggle {
|
|
8
|
+
@apply flex items-center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
rk-radio-group label {
|
|
12
|
+
@apply cursor-pointer uppercase;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
rk-toggle {
|
|
16
|
+
@apply text-primary-700 flex items-center justify-center rounded-sm;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
rk-tree,
|
|
2
|
+
rk-nested-list {
|
|
3
|
+
@apply flex w-full flex-col text-sm;
|
|
4
|
+
}
|
|
5
|
+
rk-nested-list rk-node > div {
|
|
6
|
+
@apply h-8 px-2;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
rk-nested-list rk-node {
|
|
10
|
+
@apply flex flex-col;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
rk-node > div > rk-item {
|
|
14
|
+
@apply px-1;
|
|
15
|
+
}
|
|
16
|
+
rk-node > div > span {
|
|
17
|
+
@apply flex-shrink-0;
|
|
18
|
+
}
|
package/src/base.css
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@import './base/core.css';
|
|
2
|
+
@import './base/scrollbar.css';
|
|
3
|
+
@import './base/atoms.css';
|
|
4
|
+
@import './base/molecules.css';
|
|
5
|
+
@import './base/organisms.css';
|
|
6
|
+
@import './base/layout.css';
|
|
7
|
+
@import './base/table.css';
|
|
8
|
+
@import './base/tree.css';
|
|
9
|
+
@import './base/carousel.css';
|
|
10
|
+
@import './base/animation.css';
|
|
11
|
+
@import './base/alert.css';
|
|
12
|
+
@import './base/progress.css';
|
|
13
|
+
@import './base/toggles.css';
|