@rokkit/themes 1.0.0-next.105 → 1.0.0-next.106

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.
@@ -1,315 +1,307 @@
1
- /* rkt-list styles */
2
- .rokkit rkt-virtual-list-contents {
3
- @apply flex flex-col;
4
- @apply gap-1px bg-neutral-inset;
1
+ [data-style='rokkit'] rk-list-item {
2
+ @apply gap-2;
5
3
  }
4
+ /* rk-list styles */
6
5
 
7
- .rokkit rkt-list {
6
+ [data-style='rokkit'] rk-list {
8
7
  @apply gap-1px bg-neutral-subtle;
9
8
  }
10
9
 
11
- .rokkit rkt-list > rkt-item,
12
- .rokkit rkt-virtual-list-contents > rkt-virtual-list-item,
13
- .rokkit rkt-accordion div summary {
14
- @apply bg-neutral-base min-h-10 px-4 leading-10 text-neutral-800;
10
+ [data-style='rokkit'] rk-list > rk-list-item,
11
+ [data-style='rokkit'] rk-accordion div rk-summary {
12
+ @apply bg-neutral-base min-h-8 px-4 leading-10 text-neutral-800;
15
13
  }
16
- .rokkit rkt-accordion > div > summary {
14
+ [data-style='rokkit'] rk-accordion > div > rk-summary {
17
15
  @apply bg-gradient from-neutral-subtle to-neutral-muted rounded pr-2;
18
16
  }
19
17
 
20
18
  /* Remove default details marker from summary */
21
- .rokkit rkt-accordion > div > summary::-webkit-details-marker {
19
+ /* [data-style="rokkit"] rk-accordion > div > rk-summary::-webkit-details-marker {
22
20
  display: none;
23
- }
21
+ } */
24
22
 
25
- /* Nested rkt-list and Tree styles */
26
- .rokkit :not(accordion > div) > rkt-list {
23
+ /* Nested rk-list and Tree styles */
24
+ [data-style='rokkit'] :not(accordion > div) > rk-list {
27
25
  @apply overflow-y-scroll rounded border border-neutral-400 shadow;
28
26
  }
29
- .rokkit :not(accordion > div) > rkt-list rkt-item {
27
+ [data-style='rokkit'] :not(accordion > div) > rk-list rk-list-item {
30
28
  @apply first:rounded-t last:rounded-b;
31
29
  }
32
30
 
33
- .rokkit rkt-accordion rkt-list rkt-item {
31
+ [data-style='rokkit'] rk-accordion rk-list rk-list-item {
34
32
  @apply gap-2 last:rounded-b;
35
33
  }
36
- .rokkit rkt-accordion rkt-list rkt-item > a {
34
+ [data-style='rokkit'] rk-accordion rk-list rk-list-item > a {
37
35
  @apply gap-2;
38
36
  }
39
- .rokkit rkt-accordion rkt-list {
37
+ [data-style='rokkit'] rk-accordion rk-list {
40
38
  @apply rounded-b;
41
39
  }
42
40
 
43
- .rokkit rkt-accordion .is-expanded rkt-list {
41
+ [data-style='rokkit'] rk-accordion .is-expanded rk-list {
44
42
  @apply -mt-10 rounded-t pt-10;
45
43
  }
46
44
  /* Styles for 'tabs' class */
47
- .rokkit tabs {
45
+ [data-style='rokkit'] tabs {
48
46
  @apply border-neutral-muted gap-1 border-b-2 px-1;
49
47
  }
50
- .rokkit tabs.is-below {
48
+ [data-style='rokkit'] tabs.is-below {
51
49
  @apply border-b-0 border-t-2;
52
50
  }
53
- .rokkit tabs:focus-within {
51
+ [data-style='rokkit'] tabs:focus-within {
54
52
  @apply border-secondary outline-none;
55
53
  }
56
- .rokkit tabs .tab {
54
+ [data-style='rokkit'] tabs .tab {
57
55
  @apply bg-neutral-base flex-shrink-0 cursor-pointer items-center gap-3 rounded-t px-3 leading-9;
58
56
  }
59
- .rokkit tabs.is-below .tab {
57
+ [data-style='rokkit'] tabs.is-below .tab {
60
58
  @apply rounded-b rounded-t-none;
61
59
  }
62
- .rokkit tabs.is-centered {
60
+ [data-style='rokkit'] tabs.is-centered {
63
61
  @apply justify-center;
64
62
  }
65
- .rokkit tabs .tab[aria-selected='true'] {
63
+ [data-style='rokkit'] tabs .tab[aria-selected='true'] {
66
64
  @apply bg-neutral-muted;
67
65
  }
68
- .rokkit tabs:focus-within .tab[aria-selected='true'] {
66
+ [data-style='rokkit'] tabs:focus-within .tab[aria-selected='true'] {
69
67
  @apply from-primary to-secondary bg-gradient-to-b text-white;
70
68
  }
71
- .rokkit tabs.is-below:focus-within .tab[aria-selected='true'] {
69
+ [data-style='rokkit'] tabs.is-below:focus-within .tab[aria-selected='true'] {
72
70
  @apply bg-gradient-to-t;
73
71
  }
74
72
 
75
73
  /* Styles for 'button' and 'button-group' classes */
76
- .rokkit button,
77
- .rokkit .button {
78
- @apply bg-neutral-muted flex min-h-9 cursor-pointer items-center gap-3 rounded-full px-6 uppercase text-neutral-700;
74
+ [data-style='rokkit'] button,
75
+ [data-style='rokkit'] .button {
76
+ @apply bg-neutral-subtle text-on-neutral-subtle flex min-h-9 cursor-pointer items-center gap-3 rounded-full px-6 uppercase;
79
77
  animation: button-pop var(--animation-btn, 0.25s) ease-out;
80
78
  }
81
79
 
82
- .rokkit button.is-primary,
83
- .rokkit .button.is-primary {
80
+ [data-style='rokkit'] button.is-primary,
81
+ [data-style='rokkit'] .button.is-primary {
84
82
  @apply from-primary to-secondary bg-gradient-to-r text-white;
85
83
  }
86
-
87
- .rokkit button-group {
84
+ [data-style='rokkit'] a.square > rk-icon {
85
+ @apply text-on-neutral-subtle bg-neutral-subtle h-full w-full rounded-md;
86
+ }
87
+ [data-style='rokkit'] a.square {
88
+ @apply border-neutral-subtle p-2px flex h-10 w-10 items-center justify-center rounded-md border;
89
+ }
90
+ [data-style='rokkit'] button-group {
88
91
  @apply gap-1px m-auto flex items-center justify-center py-1;
89
92
  }
90
93
 
91
- .rokkit button-group button {
94
+ [data-style='rokkit'] button-group button {
92
95
  @apply flex rounded-none px-2 pt-0.5 uppercase focus:outline-none;
93
96
  }
94
- .rokkit button-group button:first-child {
97
+ [data-style='rokkit'] button-group button:first-child {
95
98
  @apply rounded-l-full pl-3;
96
99
  }
97
- .rokkit button-group button:last-child {
100
+ [data-style='rokkit'] button-group button:last-child {
98
101
  @apply rounded-r-full pr-3;
99
102
  }
100
103
 
101
- .rokkit button-group button.active {
104
+ [data-style='rokkit'] button-group button.active {
102
105
  @apply from-primary to-secondary bg-gradient-to-r text-white;
103
106
  }
104
107
 
105
108
  /* Input and Drop-down styles */
106
- .rokkit input-select,
107
- .rokkit drop-down > button {
109
+ [data-style="rokkit"] input-select,
110
+ /* [data-style="rokkit"] select, */
111
+ [data-style="rokkit"] drop-down > button {
108
112
  @apply rounded;
109
113
  /* @apply border border-neutral-muted; */
110
114
  }
111
115
 
112
- .rokkit drop-down > button {
116
+ [data-style='rokkit'] drop-down > button {
113
117
  @apply bg-neutral-base p-0;
114
118
  }
115
- .rokkit drop-down > button > span {
119
+ [data-style='rokkit'] drop-down > button > span {
116
120
  @apply rounded py-0;
117
121
  }
118
- .rokkit drop-down > button > span > * {
122
+ [data-style='rokkit'] drop-down > button > span > * {
119
123
  @apply h-full items-center;
120
124
  }
121
125
 
122
- .rokkit :not(field) > input-select {
126
+ [data-style='rokkit'] :not(field) > input-select {
123
127
  @apply bg-neutral-base border-neutral-muted p-2px border;
124
128
  }
125
- .rokkit :not(field) > input-select > selected-item {
129
+ [data-style='rokkit'] :not(field) > input-select > selected-item {
126
130
  @apply bg-neutral-subtle;
127
131
  }
128
- .rokkit :not(field) > input-select:focus-within,
129
- .rokkit drop-down:focus-within > button {
132
+ [data-style='rokkit'] :not(field) > input-select:focus-within,
133
+ [data-style='rokkit'] :not(field) > input-select:focus-within,
134
+ [data-style='rokkit'] drop-down:focus-within > button {
130
135
  /* @apply p-2px; */
131
136
  @apply border-none outline-none;
132
137
  @apply from-primary to-secondary bg-gradient-to-r text-white;
133
138
  }
134
- /* .rokkit :not(field) > input-select:focus-within > selected-item,
135
- .rokkit drop-down:focus-within > button > span {
139
+ /* [data-style="rokkit"] :not(field) > input-select:focus-within > selected-item,
140
+ [data-style="rokkit"] drop-down:focus-within > button > span {
136
141
  @apply bg-neutral-muted outline-none min-h-10;
137
142
  } */
138
143
 
139
- /* Hover and rkt-icon styles */
140
- /* .rokkit input-select:hover > rkt-icon,
141
- .rokkit drop-down:hover > rkt-icon {
144
+ /* Hover and rk-icon styles */
145
+ /* [data-style="rokkit"] input-select:hover > rk-icon,
146
+ [data-style="rokkit"] drop-down:hover > rk-icon {
142
147
  @apply border-neutral;
143
148
  } */
144
149
 
145
150
  /* Scroll styles */
146
- .rokkit input-select scroll,
147
- .rokkit input-select rkt-virtual-list {
151
+ [data-style='rokkit'] input-select scroll {
148
152
  @apply my-1 rounded shadow-lg;
149
153
  }
150
154
 
151
- /* .rokkit input-select > selected-item > items {
155
+ /* [data-style="rokkit"] input-select > selected-item > items {
152
156
  @apply flex-grow flex-wrap gap-2;
153
157
  } */
154
158
 
155
- /* rkt-accordion styles */
156
- .rokkit rkt-accordion {
159
+ /* rk-accordion styles */
160
+ [data-style='rokkit'] rk-accordion {
157
161
  @apply flex-grow gap-1 overflow-y-scroll;
158
162
  }
159
- .rokkit rkt-accordion > div {
163
+ [data-style='rokkit'] rk-accordion > div {
160
164
  @apply relative rounded shadow;
161
165
  }
162
166
 
163
- /* Nested rkt-list and rkt-node styles */
164
- .rokkit rkt-nested-list {
167
+ /* Nested rk-list and rk-node styles */
168
+ [data-style='rokkit'] rk-nested-list {
165
169
  @apply text-neutral-800;
166
170
  }
167
- .rokkit rkt-nested-list rkt-node > div {
171
+ [data-style='rokkit'] rk-nested-list rk-node > div {
168
172
  @apply h-8 px-2;
169
173
  }
170
174
 
171
175
  /* Tree styles */
172
- .rokkit tree {
176
+ [data-style='rokkit'] tree {
173
177
  @apply rounded;
174
178
  }
175
179
 
176
- /* Focus styles for Nested rkt-list, Tree, and rkt-accordion */
177
- .rokkit rkt-nested-list,
178
- .rokkit rkt-nested-list:focus-within,
179
- .rokkit tree:focus-within {
180
+ /* Focus styles for Nested rk-list, Tree, and rk-accordion */
181
+ [data-style='rokkit'] rk-nested-list,
182
+ [data-style='rokkit'] rk-nested-list:focus-within,
183
+ [data-style='rokkit'] rk-tree:focus-within {
180
184
  @apply rounded outline-none;
181
185
  }
182
186
 
183
- .rokkit rkt-accordion,
184
- .rokkit rkt-list,
185
- .rokkit rkt-virtual-list-viewport {
187
+ [data-style='rokkit'] rk-accordion,
188
+ [data-style='rokkit'] rk-list {
186
189
  @apply rounded;
187
190
  }
188
191
 
189
192
  /* Remove outline from focused elements */
190
- .rokkit rkt-accordion:focus-within rkt-list,
191
- .rokkit drop-down:focus-within rkt-list,
192
- .rokkit input-select:focus-within rkt-list,
193
- .rokkit input-select:focus-within rkt-virtual-list-viewport {
193
+ [data-style='rokkit'] rk-accordion:focus-within rk-list,
194
+ [data-style='rokkit'] drop-down:focus-within rk-list,
195
+ [data-style='rokkit'] input-select:focus-within rk-list {
194
196
  @apply outline-none focus:outline-none;
195
197
  }
196
198
 
197
- /* Focus and Hover styles for rkt-list and rkt-node */
198
- .rokkit rkt-list:focus {
199
+ /* Focus and Hover styles for rk-list and rk-node */
200
+ [data-style='rokkit'] rk-list:focus {
199
201
  @apply outline-secondary outline;
200
202
  }
201
- /* .rokkit rkt-list rkt-item.is-hovering, */
202
- /* .rokkit rkt-virtual-list rkt-item.is-hovering, */
203
- .rokkit rkt-list rkt-item:hover,
204
- .rokkit rkt-virtual-list-contents rkt-virtual-list-item:hover,
205
- .rokkit rkt-node > div:hover {
203
+ [data-style='rokkit'] rk-list rk-list-item:hover,
204
+ [data-style='rokkit'] rk-node > div:hover {
206
205
  @apply bg-neutral-subtle;
207
206
  }
208
207
 
209
- /* Selected and Hover styles for rkt-list and rkt-node */
210
- .rokkit rkt-list rkt-item[aria-selected='true'] > a {
211
- @apply text-white;
208
+ [data-style='rokkit'] rk-list-item[aria-current='true'],
209
+ [data-style='rokkit'] rk-node[aria-current='true'] > div {
210
+ @apply bg-neutral-subtle text-on-neutral-subtle;
212
211
  }
213
- .rokkit rkt-virtual-list-item[aria-current='true'] {
214
- @apply bg-neutral-inset text-secondary;
212
+
213
+ /* Selected and Hover styles for rk-list and rk-node */
214
+ [data-style='rokkit'] rk-list rk-list-item[aria-selected='true'] > a {
215
+ @apply text-white;
215
216
  }
216
217
 
217
- /* Expanded and Selected styles for rkt-accordion */
218
- .rokkit rkt-accordion .is-expanded summary {
218
+ /* Expanded and Selected styles for rk-accordion */
219
+ [data-style='rokkit'] rk-accordion .is-expanded rk-summary {
219
220
  @apply border-neutral-muted z-1 sticky top-0 rounded-b-none border-b;
220
221
  }
221
222
 
222
- .rokkit rkt-accordion [aria-selected='true'] summary {
223
+ [data-style='rokkit'] rk-accordion [aria-selected='true'] rk-summary {
223
224
  @apply bg-neutral-subtle;
224
225
  }
225
- .rokkit rkt-accordion:focus-within [aria-selected='true'] summary {
226
+ [data-style='rokkit'] rk-accordion:focus-within [aria-selected='true'] rk-summary {
226
227
  @apply from-primary to-secondary bg-gradient-to-r text-white outline-none;
227
228
  }
228
229
 
229
- /* Border styles for rkt-accordion */
230
- .rokkit rkt-accordion > div {
230
+ /* Border styles for rk-accordion */
231
+ [data-style='rokkit'] rk-accordion > div {
231
232
  @apply border-neutral-muted border;
232
233
  }
233
234
 
234
235
  /* Folder Tree styles */
235
- .rokkit .folder-tree {
236
+ [data-style='rokkit'] .folder-tree {
236
237
  @apply bg-neutral-inset h-full;
237
238
  }
238
- .rokkit .folder-tree rkt-nested-list {
239
+ [data-style='rokkit'] .folder-tree rk-nested-list {
239
240
  @apply bg-neutral-inset h-full;
240
241
  }
241
- .rokkit rkt-node > div > rkt-item {
242
+ [data-style='rokkit'] rk-node > div > rk-item {
242
243
  @apply px-1;
243
244
  }
244
- .rokkit rkt-node > div > span {
245
+ [data-style='rokkit'] rk-node > div > span {
245
246
  @apply flex-shrink-0;
246
247
  }
247
- .rokkit rkt-node > div > span > i {
248
+ [data-style='rokkit'] rk-node > div > span > i {
248
249
  @apply border-neutral-muted;
249
250
  }
250
- .rokkit rkt-node > div > rkt-icon > i {
251
+ [data-style='rokkit'] rk-node > div > rk-icon > i {
251
252
  @apply text-neutral-elevated;
252
253
  }
253
254
 
254
255
  /* Toggle Switch styles */
255
- .rokkit rkt-toggle {
256
+ [data-style='rokkit'] rk-switch {
256
257
  @apply mx-auto min-w-12 rounded-full;
257
258
  @apply bg-neutral-subtle border-neutral-muted border;
258
259
  @apply p-2px leading-loose;
259
260
  }
260
- .rokkit rkt-toggle:focus-within {
261
+ [data-style='rokkit'] rk-switch:focus-within {
261
262
  @apply outline-secondary outline;
262
263
  }
263
- .rokkit rkt-toggle rkt-item {
264
+ [data-style='rokkit'] rk-switch rk-item {
264
265
  @apply items-center justify-center gap-1 px-3 py-0 leading-loose;
265
266
  @apply min-h-6 min-w-6 cursor-pointer rounded-full;
266
267
  }
267
- .rokkit rkt-toggle rkt-item > rkt-icon > i {
268
+ [data-style='rokkit'] rk-switch rk-item > rk-icon > i {
268
269
  @apply text-lg;
269
270
  }
270
271
 
271
- .rokkit rkt-toggle rkt-item[aria-selected='true'] {
272
+ [data-style='rokkit'] rk-switch rk-item[aria-selected='true'] {
272
273
  @apply from-neutral-muted to-neutral-muted bg-gradient-to-r;
273
274
  }
274
275
 
275
- .rokkit rkt-toggle.compact > rkt-item {
276
+ [data-style='rokkit'] rk-switch.compact > rk-item {
276
277
  @apply gap-0 px-0;
277
278
  }
278
- .rokkit rkt-virtual-list-viewport {
279
- @apply border-neutral-inset box-content border;
280
- }
281
- .rokkit rkt-virtual-list-viewport:focus-within {
282
- @apply outline-none;
283
- }
284
- .rokkit rkt-virtual-list {
285
- @apply p-2px border-neutral-muted rounded border from-transparent to-transparent;
286
- }
287
- .rokkit rkt-virtual-list:focus-within {
288
- @apply from-primary to-secondary bg-gradient-to-r;
289
- }
290
279
 
291
- .rokkit rkt-list rkt-item[aria-selected='true'],
292
- .rokkit rkt-virtual-list-contents rkt-virtual-list-item[aria-selected='true'],
293
- .rokkit rkt-node[aria-selected='true'] > div {
294
- @apply from-neutral-subtle to-neutral-subtle bg-gradient-to-r text-neutral-800;
295
- }
296
- /* Focus and Hover styles for Toggle Switch, rkt-list, Tree, and Nested rkt-list */
297
- .rokkit rkt-toggle:focus-within rkt-item[aria-selected='true'],
298
- .rokkit rkt-list:focus-within rkt-item[aria-selected='true'],
299
- .rokkit rkt-virtual-list-viewport:focus-within rkt-virtual-list-item[aria-selected='true'],
300
- .rokkit tree:focus-within rkt-node[aria-selected='true'] > div,
301
- .rokkit rkt-nested-list:focus-within rkt-node[aria-selected='true'] > div {
280
+ [data-style='rokkit'] rk-switch:focus-within rk-item[aria-selected='true'],
281
+ [data-style='rokkit'] rk-list:focus-within rk-list-item[aria-selected='true'],
282
+ [data-style='rokkit'] rk-tree:focus-within rk-node[aria-selected='true'] > div {
302
283
  @apply from-primary to-secondary bg-gradient-to-r text-white;
303
284
  @apply hover:from-secondary hover:to-primary;
304
285
  }
305
286
 
306
- .rokkit rkt-toggle[aria-disabled='true'] {
287
+ [data-style='rokkit'] rk-switch[aria-disabled='true'] {
307
288
  @apply bg-neutral-muted cursor-not-allowed text-neutral-500;
308
289
  }
309
- .rokkit rkt-input-select > rkt-selected-item > rkt-items {
290
+ [data-style='rokkit'] rk-input-select > rk-selected-item > rk-items {
310
291
  @apply flex-grow flex-wrap gap-2;
311
292
  }
312
293
 
313
- .rokkit rkt-container:focus-within {
294
+ [data-style='rokkit'] rk-container:focus-within {
314
295
  @apply outline-none;
315
296
  }
297
+
298
+ [data-style='rokkit'] rk-pill {
299
+ @apply bg-neutral-muted border-neutral-muted rounded-full border px-4 text-neutral-800;
300
+ }
301
+ [data-style='rokkit'] rk-pill rk-icon {
302
+ @apply text-neutral-700;
303
+ }
304
+
305
+ [data-style='rokkit'] rk-pill rk-icon[role='button'] {
306
+ @apply hover:text-primary-elevated text-neutral-elevated text-sm;
307
+ }
@@ -43,15 +43,15 @@ table > tfoot > tr {
43
43
  @apply table-row font-semibold text-neutral-800;
44
44
  }
45
45
 
46
- rkt-table-wrapper {
46
+ rk-table-wrapper {
47
47
  @apply shadow-md sm:rounded-lg;
48
48
  }
49
49
 
50
- td rkt-cell.cell-type-integer p,
51
- td rkt-cell.cell-type-number p {
50
+ td rk-cell.cell-type-integer p,
51
+ td rk-cell.cell-type-number p {
52
52
  @apply w-full text-right;
53
53
  }
54
54
 
55
- td rkt-cell rkt-item {
55
+ td rk-cell rk-item {
56
56
  @apply flex w-full;
57
57
  }
@@ -1,18 +1,33 @@
1
- .rokkit rkt-toggle {
1
+ [data-style='rokkit'] rk-switch {
2
2
  @apply flex cursor-pointer flex-row items-center gap-3;
3
3
  @apply border-neutral-muted rounded-md border p-2;
4
4
  }
5
5
 
6
- .rokkit rkt-toggle:hover > rkt-icon {
6
+ [data-style='rokkit'] rk-switch:hover > rk-icon {
7
7
  @apply text-secondary;
8
8
  }
9
- .rokkit rkt-toggle:focus-within {
9
+ [data-style='rokkit'] rk-switch:focus-within,
10
+ [data-style='rokkit'] rk-toggle:focus-within {
10
11
  @apply ring-primary-500 outline-none ring-2;
11
12
  }
12
13
 
13
- .rokkit rkt-toggle.minimal {
14
+ [data-style='rokkit'] rk-switch.minimal {
14
15
  @apply border-none py-0 focus-within:ring-0;
15
16
  }
16
- .rokkit rkt-toggle.minimal rkt-icon > i {
17
- @apply h-4;
17
+ [data-style='rokkit'] rk-switch.minimal rk-icon > i {
18
+ @apply text-md h-4;
18
19
  }
20
+ [data-style='rokkit'] rk-toggle {
21
+ @apply min-h-10 min-w-10 rounded-md;
22
+ }
23
+
24
+ [data-style='rokkit'] rk-toggle button {
25
+ @apply m-0 h-full w-full p-0;
26
+ }
27
+
28
+ [data-style='rokkit'] rk-toggle.small {
29
+ @apply p-2px flex aspect-square flex-col items-center justify-center;
30
+ }
31
+ /* [data-style="rokkit"] rk-toggle:focus-within button {
32
+ @apply bg-neutral-base text-neutral hover:text-primary rounded-sm;
33
+ } */