@rokkit/themes 1.0.0-next.100 → 1.0.0-next.105
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 -23
- 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/src/minimal/list.css
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
.minimal item {
|
|
1
|
+
.minimal rkt-item {
|
|
2
2
|
@apply flex items-center gap-1;
|
|
3
3
|
}
|
|
4
|
-
.minimal accordion {
|
|
4
|
+
.minimal rkt-accordion {
|
|
5
5
|
@apply flex-grow overflow-y-scroll focus-within:outline-none;
|
|
6
6
|
}
|
|
7
|
-
.minimal accordion > div,
|
|
8
|
-
.minimal accordion > details {
|
|
7
|
+
.minimal rkt-accordion > div,
|
|
8
|
+
.minimal rkt-accordion > details {
|
|
9
9
|
@apply relative;
|
|
10
10
|
}
|
|
11
|
-
.minimal list,
|
|
12
|
-
.minimal accordion summary {
|
|
11
|
+
.minimal rkt-list,
|
|
12
|
+
.minimal rkt-accordion summary {
|
|
13
13
|
@apply border-l-2px border-l-neutral-muted;
|
|
14
14
|
}
|
|
15
|
-
.minimal :not(accordion > div) list:focus-within {
|
|
16
|
-
@apply outline
|
|
15
|
+
.minimal :not(accordion > div) rkt-list:focus-within {
|
|
16
|
+
@apply outline-offset-3 outline-secondary-700 outline;
|
|
17
17
|
}
|
|
18
|
-
.minimal list > item,
|
|
19
|
-
.minimal accordion summary {
|
|
20
|
-
@apply
|
|
18
|
+
.minimal rkt-list > rkt-item,
|
|
19
|
+
.minimal rkt-accordion summary {
|
|
20
|
+
@apply bg-neutral-base items-center px-2 leading-8 text-neutral-700;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.minimal item > a {
|
|
24
|
-
@apply px-0
|
|
23
|
+
.minimal rkt-item > a {
|
|
24
|
+
@apply gap-2 px-0;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.minimal list item:hover {
|
|
27
|
+
.minimal rkt-list rkt-item:hover {
|
|
28
28
|
@apply -m-l-2px border-l-2px border-l-neutral-subtle;
|
|
29
29
|
}
|
|
30
|
-
.minimal accordion summary:hover {
|
|
30
|
+
.minimal rkt-accordion summary:hover {
|
|
31
31
|
@apply border-l-neutral-subtle;
|
|
32
32
|
}
|
|
33
|
-
.minimal list item[aria-selected='true'] {
|
|
33
|
+
.minimal rkt-list rkt-item[aria-selected='true'] {
|
|
34
34
|
@apply -m-l-2px border-l-2px border-l-secondary-600 text-secondary-600 bg-neutral-subtle;
|
|
35
35
|
}
|
|
36
|
-
.minimal accordion .is-selected summary {
|
|
36
|
+
.minimal rkt-accordion .is-selected summary {
|
|
37
37
|
@apply border-l-2px border-l-secondary-600 bg-neutral-subtle;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.minimal accordion .is-expanded summary {
|
|
41
|
-
@apply sticky top-0
|
|
40
|
+
.minimal rkt-accordion .is-expanded summary {
|
|
41
|
+
@apply z-1 sticky top-0;
|
|
42
42
|
}
|
|
43
|
-
.minimal accordion item > a {
|
|
43
|
+
.minimal rkt-accordion rkt-item > a {
|
|
44
44
|
@apply px-0;
|
|
45
45
|
}
|
|
46
|
-
.minimal item > img,
|
|
47
|
-
.minimal item > a > img {
|
|
48
|
-
@apply
|
|
46
|
+
.minimal rkt-item > img,
|
|
47
|
+
.minimal rkt-item > a > img {
|
|
48
|
+
@apply h-6 w-6;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.minimal accordion .is-selected summary,
|
|
52
|
-
.minimal accordion .is-selected summary > a,
|
|
53
|
-
.minimal accordion item[aria-selected='true'],
|
|
54
|
-
.minimal accordion item[aria-selected='true'] > a {
|
|
51
|
+
.minimal rkt-accordion .is-selected summary,
|
|
52
|
+
.minimal rkt-accordion .is-selected summary > a,
|
|
53
|
+
.minimal rkt-accordion rkt-item[aria-selected='true'],
|
|
54
|
+
.minimal rkt-accordion rkt-item[aria-selected='true'] > a {
|
|
55
55
|
@apply text-secondary-600;
|
|
56
56
|
/* @apply hover:text-secondary; */
|
|
57
57
|
}
|
|
@@ -59,78 +59,78 @@
|
|
|
59
59
|
/* .minimal nested-list {
|
|
60
60
|
@apply text-sm;
|
|
61
61
|
} */
|
|
62
|
-
.minimal node > div {
|
|
62
|
+
.minimal rkt-node > div {
|
|
63
63
|
@apply h-7 px-2 py-1;
|
|
64
64
|
}
|
|
65
|
-
.minimal node > item {
|
|
66
|
-
@apply
|
|
65
|
+
.minimal rkt-node > rkt-item {
|
|
66
|
+
@apply gap-1 px-1;
|
|
67
67
|
}
|
|
68
|
-
.minimal node > div > span > i {
|
|
69
|
-
@apply border-none
|
|
68
|
+
.minimal rkt-node > div > span > i {
|
|
69
|
+
@apply w-3 border-none;
|
|
70
70
|
}
|
|
71
|
-
.minimal node > div > icon {
|
|
71
|
+
.minimal rkt-node > div > rkt-icon {
|
|
72
72
|
@apply text-xs text-neutral-400;
|
|
73
73
|
}
|
|
74
|
-
.minimal node[aria-selected='true'] > item > p {
|
|
74
|
+
.minimal rkt-node[aria-selected='true'] > rkt-item > p {
|
|
75
75
|
@apply text-secondary-600;
|
|
76
76
|
}
|
|
77
|
-
.minimal node.is-selected icon {
|
|
77
|
+
.minimal rkt-node.is-selected rkt-icon {
|
|
78
78
|
@apply text-secondary-600;
|
|
79
79
|
@apply hover:text-secondary-600;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.minimal .small list > item,
|
|
83
|
-
.minimal .small accordion summary {
|
|
82
|
+
.minimal .small rkt-list > rkt-item,
|
|
83
|
+
.minimal .small rkt-accordion summary {
|
|
84
84
|
@apply text-sm;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.minimal .small node > div {
|
|
88
|
-
@apply
|
|
87
|
+
.minimal .small rkt-node > div {
|
|
88
|
+
@apply h-5 gap-1 text-sm;
|
|
89
89
|
}
|
|
90
|
-
.minimal .small node > div > icon {
|
|
90
|
+
.minimal .small rkt-node > div > rkt-icon {
|
|
91
91
|
@apply text-sm;
|
|
92
92
|
}
|
|
93
|
-
.minimal .small item > img,
|
|
94
|
-
.minimal .small item > a > img {
|
|
95
|
-
@apply
|
|
93
|
+
.minimal .small rkt-item > img,
|
|
94
|
+
.minimal .small rkt-item > a > img {
|
|
95
|
+
@apply h-4 w-4;
|
|
96
96
|
}
|
|
97
|
-
.minimal .small item > a > icon {
|
|
97
|
+
.minimal .small rkt-item > a > rkt-icon {
|
|
98
98
|
@apply text-sm leading-6;
|
|
99
99
|
}
|
|
100
|
-
.minimal accordion.indented list > item {
|
|
100
|
+
.minimal rkt-accordion.indented rkt-list > rkt-item {
|
|
101
101
|
@apply px-4;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.minimal .folder-tree {
|
|
105
|
-
@apply
|
|
105
|
+
@apply bg-neutral-inset h-full min-w-40;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
/* .minimal node > div > i {
|
|
108
|
+
/* .minimal rkt-node > div > i {
|
|
109
109
|
@apply border-neutral-muted;
|
|
110
110
|
} */
|
|
111
111
|
|
|
112
|
-
.minimal crumbs {
|
|
112
|
+
.minimal rkt-crumbs {
|
|
113
113
|
@apply flex-grow gap-1 text-sm;
|
|
114
114
|
}
|
|
115
|
-
.minimal crumbs crumb.is-selected {
|
|
115
|
+
.minimal rkt-crumbs rkt-crumb.is-selected {
|
|
116
116
|
@apply text-secondary;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
.minimal toggle
|
|
120
|
-
@apply
|
|
121
|
-
@apply bg-neutral-subtle border
|
|
122
|
-
@apply leading-loose
|
|
119
|
+
.minimal rkt-toggle {
|
|
120
|
+
@apply mx-auto min-h-6 min-w-12 rounded;
|
|
121
|
+
@apply bg-neutral-subtle border-neutral-muted border;
|
|
122
|
+
@apply p-2px leading-loose;
|
|
123
123
|
}
|
|
124
|
-
.minimal toggle-
|
|
125
|
-
@apply items-center justify-center px-3
|
|
126
|
-
@apply min-
|
|
124
|
+
.minimal rkt-toggle rkt-item {
|
|
125
|
+
@apply items-center justify-center gap-1 px-3;
|
|
126
|
+
@apply min-h-6 min-w-6 cursor-pointer rounded;
|
|
127
127
|
}
|
|
128
|
-
.minimal toggle
|
|
128
|
+
.minimal rkt-toggle.compact {
|
|
129
129
|
@apply rounded-full;
|
|
130
130
|
}
|
|
131
|
-
.minimal toggle
|
|
132
|
-
@apply
|
|
131
|
+
.minimal rkt-toggle.compact > rkt-item {
|
|
132
|
+
@apply gap-0 rounded-full px-0;
|
|
133
133
|
}
|
|
134
|
-
.minimal toggle-
|
|
134
|
+
.minimal rkt-toggle rkt-item[aria-selected='true'] {
|
|
135
135
|
@apply bg-secondary text-neutral-800;
|
|
136
136
|
}
|
package/src/minimal/tabs.css
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
.minimal tabs:focus {
|
|
1
|
+
.minimal rkt-tabs:focus {
|
|
2
2
|
@apply outline-none;
|
|
3
3
|
}
|
|
4
|
-
.minimal tabs {
|
|
5
|
-
@apply box-border
|
|
4
|
+
.minimal rkt-tabs {
|
|
5
|
+
@apply border-neutral-subtle box-border cursor-pointer select-none gap-2 border-b-2 px-2;
|
|
6
6
|
}
|
|
7
|
-
.minimal tabs .tab {
|
|
8
|
-
@apply
|
|
7
|
+
.minimal rkt-tabs .tab {
|
|
8
|
+
@apply px-2 text-base leading-8;
|
|
9
9
|
}
|
|
10
|
-
.minimal tabs .tab icon[role='img'] {
|
|
11
|
-
@apply
|
|
10
|
+
.minimal rkt-tabs .tab rkt-icon[role='img'] {
|
|
11
|
+
@apply h-6 w-6;
|
|
12
12
|
}
|
|
13
|
-
.minimal tabs .tab icon[role='button'] {
|
|
14
|
-
@apply
|
|
13
|
+
.minimal rkt-tabs .tab rkt-icon[role='button'] {
|
|
14
|
+
@apply h-4 w-4;
|
|
15
15
|
}
|
|
16
|
-
.minimal tabs.is-below {
|
|
16
|
+
.minimal rkt-tabs.is-below {
|
|
17
17
|
@apply border-b-none border-t-2;
|
|
18
18
|
}
|
|
19
|
-
.minimal tabs > p {
|
|
19
|
+
.minimal rkt-tabs > p {
|
|
20
20
|
@apply pr-4;
|
|
21
21
|
}
|
|
22
|
-
.minimal tabs .tab {
|
|
23
|
-
@apply flex
|
|
22
|
+
.minimal rkt-tabs .tab {
|
|
23
|
+
@apply relative flex items-center gap-1;
|
|
24
24
|
}
|
|
25
|
-
.minimal tabs .tab > img {
|
|
26
|
-
@apply
|
|
25
|
+
.minimal rkt-tabs .tab > img {
|
|
26
|
+
@apply h-5 w-5;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.minimal tabs .tab[aria-selected='true'] {
|
|
30
|
-
@apply -mb-2px border-
|
|
29
|
+
.minimal rkt-tabs .tab[aria-selected='true'] {
|
|
30
|
+
@apply -mb-2px border-secondary-600 border-b-2;
|
|
31
31
|
}
|
|
32
|
-
.minimal tabs.is-below .tab {
|
|
32
|
+
.minimal rkt-tabs.is-below .tab {
|
|
33
33
|
@apply pt-2px;
|
|
34
34
|
}
|
|
35
|
-
.minimal tabs.is-below .tab[aria-selected='true'] {
|
|
36
|
-
@apply
|
|
35
|
+
.minimal rkt-tabs.is-below .tab[aria-selected='true'] {
|
|
36
|
+
@apply -mt-2px border-b-none border-b-secondary-600 mb-0 border-t-2;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.minimal .small tabs .tab {
|
|
40
|
-
@apply text-sm leading-8
|
|
39
|
+
.minimal .small rkt-tabs .tab {
|
|
40
|
+
@apply px-2 text-sm leading-8;
|
|
41
41
|
}
|
|
42
|
-
.minimal .small tabs tab > img {
|
|
43
|
-
@apply
|
|
42
|
+
.minimal .small rkt-tabs rkt-tab > img {
|
|
43
|
+
@apply h-5 w-5;
|
|
44
44
|
}
|
package/src/rokkit/alert.css
CHANGED
package/src/rokkit/atoms.css
CHANGED
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
/* Zebra styles */
|
|
7
|
-
.rokkit .zebra item {
|
|
7
|
+
.rokkit .zebra rkt-item {
|
|
8
8
|
@apply even:bg-neutral-zebra hover:bg-neutral-50;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
/* Styles for 'icon' class */
|
|
12
|
-
.rokkit icon
|
|
13
|
-
@apply focus:outline-none
|
|
11
|
+
/* Styles for 'rkt-icon' class */
|
|
12
|
+
.rokkit rkt-icon {
|
|
13
|
+
@apply text-neutral-700 focus:outline-none;
|
|
14
14
|
}
|
|
15
|
-
.rokkit
|
|
16
|
-
@apply text-neutral-700 focus:rounded
|
|
15
|
+
.rokkit button {
|
|
16
|
+
@apply hover:text-secondary rounded-md text-neutral-700 focus:rounded;
|
|
17
17
|
}
|
|
18
|
-
.rokkit
|
|
19
|
-
@apply
|
|
18
|
+
.rokkit button:focus {
|
|
19
|
+
@apply from-primary to-secondary bg-gradient-to-r text-neutral-200 outline-none dark:text-neutral-800;
|
|
20
20
|
}
|
|
21
|
-
.rokkit
|
|
21
|
+
.rokkit button:disabled {
|
|
22
22
|
@apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
-webkit-appearance: none;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.rokkit progress-bar value-bar {
|
|
35
|
-
@apply
|
|
34
|
+
.rokkit rkt-progress-bar rkt-value-bar {
|
|
35
|
+
@apply from-primary to-secondary text-neutral-subtle bg-gradient-to-r dark:text-neutral-800;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/* Styles for 'searchable' class */
|
|
39
39
|
.searchable input {
|
|
40
|
-
@apply border
|
|
40
|
+
@apply border-neutral-subtle border;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.rokkit a {
|
package/src/rokkit/carousel.css
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
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-2xl;
|
|
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 {
|
|
13
|
+
rkt-carousel rkt-dot {
|
|
14
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
|
|
15
|
+
@apply from-neutral-subtle to-neutral-subtle bg-gradient-to-r;
|
|
16
16
|
}
|
|
17
|
-
carousel dot[aria-checked='true'] {
|
|
18
|
-
@apply bg-gradient-to-r
|
|
17
|
+
rkt-carousel rkt-dot[aria-checked='true'] {
|
|
18
|
+
@apply from-primary to-secondary bg-gradient-to-r;
|
|
19
19
|
}
|
package/src/rokkit/input.css
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
/* Styles for 'input-field' class */
|
|
2
|
-
.rokkit input-field field {
|
|
3
|
-
@apply p-2px
|
|
1
|
+
/* Styles for 'rkt-input-field' class */
|
|
2
|
+
.rokkit rkt-input-field rkt-field {
|
|
3
|
+
@apply p-2px border-neutral-muted box-border rounded border;
|
|
4
4
|
}
|
|
5
|
-
.rokkit input-field input,
|
|
6
|
-
.rokkit input-field textarea,
|
|
7
|
-
.rokkit input-field select {
|
|
8
|
-
@apply border-0
|
|
5
|
+
.rokkit rkt-input-field input,
|
|
6
|
+
.rokkit rkt-input-field textarea,
|
|
7
|
+
.rokkit rkt-input-field select {
|
|
8
|
+
@apply rounded-sm border-0;
|
|
9
9
|
}
|
|
10
|
-
.rokkit checkbox {
|
|
10
|
+
.rokkit rkt-checkbox {
|
|
11
11
|
@apply outline-none;
|
|
12
12
|
}
|
|
13
|
-
.rokkit input-field > label {
|
|
13
|
+
.rokkit rkt-input-field > label {
|
|
14
14
|
@apply text-secondary-600;
|
|
15
15
|
}
|
|
16
|
-
.rokkit input-field field > label {
|
|
17
|
-
@apply
|
|
16
|
+
.rokkit rkt-input-field rkt-field > label {
|
|
17
|
+
@apply text-secondary-600 flex h-full w-full items-center text-xs uppercase;
|
|
18
18
|
}
|
|
19
|
-
.rokkit input-field:not(.disabled) field:focus-within {
|
|
20
|
-
@apply border-neutral-base bg-gradient-to-r
|
|
19
|
+
.rokkit rkt-input-field:not(.disabled) rkt-field:focus-within {
|
|
20
|
+
@apply border-neutral-base from-primary to-secondary bg-gradient-to-r;
|
|
21
21
|
}
|
|
22
|
-
.rokkit input-field.disabled label {
|
|
22
|
+
.rokkit rkt-input-field.disabled label {
|
|
23
23
|
@apply text-neutral-500;
|
|
24
24
|
}
|
|
25
|
-
/* .rokkit input-field.disabled field:focus-within {
|
|
25
|
+
/* .rokkit rkt-input-field.disabled rkt-field:focus-within {
|
|
26
26
|
@apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle;
|
|
27
27
|
} */
|
|
28
|
-
.rokkit input-field > span {
|
|
29
|
-
@apply border-
|
|
28
|
+
.rokkit rkt-input-field > span {
|
|
29
|
+
@apply border-neutral-muted bg-neutral-base aspect-square h-full border-r px-1;
|
|
30
30
|
}
|
|
31
|
-
.rokkit input-field message {
|
|
32
|
-
@apply px-2 py-1
|
|
31
|
+
.rokkit rkt-input-field message {
|
|
32
|
+
@apply bg-neutral-base rounded px-2 py-1;
|
|
33
33
|
}
|
|
34
|
-
.rokkit input-field.fail {
|
|
34
|
+
.rokkit rkt-input-field.fail {
|
|
35
35
|
@apply bg-error rounded px-2;
|
|
36
36
|
}
|
package/src/rokkit/layout.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* Styles for 'toggle
|
|
2
|
-
.rokkit field toggle
|
|
1
|
+
/* Styles for ' rkt-toggle' */
|
|
2
|
+
.rokkit rkt-field rkt-toggle:focus-within {
|
|
3
3
|
@apply outline-none;
|
|
4
4
|
}
|
|
5
|
-
.rokkit field toggle
|
|
6
|
-
@apply min-h-10 items-center justify-center
|
|
5
|
+
.rokkit rkt-field rkt-toggle {
|
|
6
|
+
@apply min-h-10 items-center justify-center rounded-sm border-none px-1;
|
|
7
7
|
}
|
|
8
|
-
.rokkit field toggle-
|
|
9
|
-
@apply leading-loose
|
|
8
|
+
.rokkit rkt-field rkt-toggle rkt-item {
|
|
9
|
+
@apply rounded-sm leading-loose;
|
|
10
10
|
}
|
|
11
|
-
.rokkit field toggle-
|
|
11
|
+
.rokkit rkt-field rkt-toggle rkt-item p {
|
|
12
12
|
@apply justify-center;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.rokkit .horizontal > field radio-group {
|
|
15
|
+
.rokkit .horizontal > rkt-field radio-group {
|
|
16
16
|
@apply md:flex-row md:gap-4;
|
|
17
17
|
}
|
package/src/rokkit/molecules.css
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
/* Styles for 'input-range' class */
|
|
2
|
-
.rokkit input-range range-track {
|
|
3
|
-
@apply
|
|
1
|
+
/* Styles for ' rkt-input-range' class */
|
|
2
|
+
.rokkit rkt-input-range rkt-range-track {
|
|
3
|
+
@apply relative mt-2 h-2;
|
|
4
4
|
}
|
|
5
|
-
.rokkit input-range range-track range-track-bar {
|
|
6
|
-
@apply bg-neutral-muted border box-border
|
|
5
|
+
.rokkit rkt-input-range rkt-range-track rkt-range-track-bar {
|
|
6
|
+
@apply bg-neutral-muted border-neutral-muted box-border rounded-full border;
|
|
7
7
|
}
|
|
8
|
-
.rokkit input-range range-track selected-bar {
|
|
9
|
-
@apply
|
|
8
|
+
.rokkit rkt-input-range rkt-range-track selected-bar {
|
|
9
|
+
@apply top-0px bottom-0px from-primary to-secondary border-secondary rounded-full border bg-gradient-to-r;
|
|
10
10
|
}
|
|
11
|
-
.rokkit input-range range-track thumb {
|
|
11
|
+
.rokkit rkt-input-range rkt-range-track rkt-thumb {
|
|
12
12
|
@apply rounded-sm focus:outline-none;
|
|
13
13
|
}
|
|
14
|
-
/* .rokkit
|
|
14
|
+
/* .rokkit rkt-input-range rkt-tick p {
|
|
15
15
|
@apply text-neutral-800;
|
|
16
16
|
} */
|
|
17
|
-
.rokkit .bookend range-track range-track-bar::before,
|
|
18
|
-
.rokkit .bookend range-track range-track-bar::after {
|
|
17
|
+
.rokkit .bookend rkt-range-track rkt-range-track-bar::before,
|
|
18
|
+
.rokkit .bookend rkt-range-track rkt-range-track-bar::after {
|
|
19
19
|
content: '';
|
|
20
|
-
@apply
|
|
20
|
+
@apply w-1px absolute -bottom-2 -top-2 rounded-full bg-gray-300;
|
|
21
21
|
}
|
|
22
|
-
.rokkit .bookend range-track range-track-bar::before {
|
|
22
|
+
.rokkit .bookend rkt-range-track rkt-range-track-bar::before {
|
|
23
23
|
@apply -left-1px;
|
|
24
24
|
}
|
|
25
|
-
.rokkit .bookend range-track range-track-bar::after {
|
|
25
|
+
.rokkit .bookend rkt-range-track rkt-range-track-bar::after {
|
|
26
26
|
@apply -right-2px;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* Styles for 'tick' class */
|
|
30
|
-
/* .rokkit tick {
|
|
30
|
+
/* .rokkit rkt-tick {
|
|
31
31
|
@apply h-6;
|
|
32
32
|
} */
|
|
33
|
-
.rokkit tick tick-bar {
|
|
33
|
+
.rokkit rkt-tick rkt-tick-bar {
|
|
34
34
|
@apply border-neutral h-full;
|
|
35
35
|
}
|
|
36
|
-
.rokkit tick p {
|
|
36
|
+
.rokkit rkt-tick p {
|
|
37
37
|
@apply items-top text-neutral-600;
|
|
38
38
|
font-size: 8px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/* Styles for 'thumb' class */
|
|
42
|
-
.rokkit thumb {
|
|
43
|
-
@apply
|
|
42
|
+
.rokkit rkt-thumb {
|
|
43
|
+
@apply from-primary to-secondary border-secondary border bg-gradient-to-r shadow-xl;
|
|
44
44
|
}
|
|
45
|
-
.rokkit thumb.sliding::before {
|
|
45
|
+
.rokkit rkt-thumb.sliding::before {
|
|
46
46
|
content: '';
|
|
47
|
-
@apply absolute
|
|
47
|
+
@apply bg-secondary absolute bottom-0 left-0 right-0 top-0 rounded-sm opacity-30;
|
|
48
48
|
transform: scale(2, 2);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/* Styles for 'button[role='switch']' class */
|
|
52
52
|
.rokkit button[role='switch'] {
|
|
53
|
-
@apply
|
|
54
|
-
@apply bg-neutral-subtle border
|
|
53
|
+
@apply h-8 min-h-6 w-16 rounded-full p-0;
|
|
54
|
+
@apply bg-neutral-subtle border-neutral-subtle border;
|
|
55
55
|
}
|
|
56
|
-
.rokkit button[role='switch'] > mark {
|
|
57
|
-
@apply
|
|
58
|
-
@apply bg-gradient-to-r
|
|
56
|
+
.rokkit button[role='switch'] > rkt-mark {
|
|
57
|
+
@apply top-0.75 h-6 w-6 rounded-full;
|
|
58
|
+
@apply from-primary to-secondary bg-gradient-to-r;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/* Styles for 'rating' class */
|
|
62
62
|
.rokkit rating {
|
|
63
|
-
@apply
|
|
63
|
+
@apply focus:outline-secondary h-9 justify-center rounded text-xl text-neutral-600 focus:outline;
|
|
64
64
|
}
|
|
65
65
|
.rokkit rating > icon {
|
|
66
66
|
@apply w-8;
|
|
@@ -74,46 +74,46 @@
|
|
|
74
74
|
|
|
75
75
|
/* Pill styles */
|
|
76
76
|
.rokkit .pill {
|
|
77
|
-
@apply
|
|
77
|
+
@apply bg-neutral-inset border-neutral-subtle flex-grow-0 rounded-full border px-2 py-1;
|
|
78
78
|
}
|
|
79
79
|
.rokkit .pill > icon[role='button'] {
|
|
80
|
-
@apply
|
|
80
|
+
@apply hover:bg-neutral-muted h-5 w-5 rounded-full hover:text-current focus:m-0 focus:rounded-full;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.rokkit .pill > item {
|
|
84
|
-
@apply gap-2 leading-6
|
|
83
|
+
.rokkit .pill > rkt-item {
|
|
84
|
+
@apply gap-2 px-2 leading-6;
|
|
85
85
|
}
|
|
86
|
-
.rokkit .pill > item > img {
|
|
87
|
-
@apply
|
|
86
|
+
.rokkit .pill > rkt-item > img {
|
|
87
|
+
@apply h-4 w-4;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
/* Styles for 'item' class */
|
|
91
|
-
.rokkit item {
|
|
91
|
+
.rokkit rkt-item {
|
|
92
92
|
@apply flex flex-shrink items-center gap-1;
|
|
93
93
|
}
|
|
94
|
-
.rokkit item > p {
|
|
94
|
+
.rokkit rkt-item > p {
|
|
95
95
|
@apply flex-shrink text-ellipsis;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/* Image and link styles */
|
|
99
|
-
.rokkit item > img,
|
|
100
|
-
.rokkit item > a > img {
|
|
101
|
-
@apply
|
|
99
|
+
.rokkit rkt-item > img,
|
|
100
|
+
.rokkit rkt-item > a > img {
|
|
101
|
+
@apply h-6 w-6;
|
|
102
102
|
}
|
|
103
|
-
.rokkit item > a {
|
|
103
|
+
.rokkit rkt-item > a {
|
|
104
104
|
@apply gap-2;
|
|
105
105
|
}
|
|
106
|
-
.rokkit node item {
|
|
107
|
-
@apply px-1
|
|
106
|
+
.rokkit node rkt-item {
|
|
107
|
+
@apply gap-2 px-1;
|
|
108
108
|
}
|
|
109
|
-
/*
|
|
110
|
-
.rokkit crumbs {
|
|
109
|
+
/* rkt-crumbs styles */
|
|
110
|
+
.rokkit rkt-crumbs {
|
|
111
111
|
@apply flex-grow gap-1;
|
|
112
112
|
}
|
|
113
|
-
.rokkit crumbs crumb.is-selected {
|
|
113
|
+
.rokkit rkt-crumbs rkt-crumb.is-selected {
|
|
114
114
|
@apply text-secondary-700;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
.rokkit day-of-month[aria-selected='true'] {
|
|
118
|
-
@apply bg-gradient-to-r
|
|
117
|
+
.rokkit rkt-day-of-month[aria-selected='true'] {
|
|
118
|
+
@apply from-primary to-secondary bg-gradient-to-r text-neutral-200 dark:text-neutral-800;
|
|
119
119
|
}
|