@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.
- 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/src/rokkit/organisms.css
CHANGED
|
@@ -1,315 +1,307 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
6
|
+
[data-style='rokkit'] rk-list {
|
|
8
7
|
@apply gap-1px bg-neutral-subtle;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
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
|
-
|
|
19
|
+
/* [data-style="rokkit"] rk-accordion > div > rk-summary::-webkit-details-marker {
|
|
22
20
|
display: none;
|
|
23
|
-
}
|
|
21
|
+
} */
|
|
24
22
|
|
|
25
|
-
/* Nested
|
|
26
|
-
|
|
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
|
-
|
|
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
|
-
|
|
31
|
+
[data-style='rokkit'] rk-accordion rk-list rk-list-item {
|
|
34
32
|
@apply gap-2 last:rounded-b;
|
|
35
33
|
}
|
|
36
|
-
|
|
34
|
+
[data-style='rokkit'] rk-accordion rk-list rk-list-item > a {
|
|
37
35
|
@apply gap-2;
|
|
38
36
|
}
|
|
39
|
-
|
|
37
|
+
[data-style='rokkit'] rk-accordion rk-list {
|
|
40
38
|
@apply rounded-b;
|
|
41
39
|
}
|
|
42
40
|
|
|
43
|
-
|
|
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
|
-
|
|
45
|
+
[data-style='rokkit'] tabs {
|
|
48
46
|
@apply border-neutral-muted gap-1 border-b-2 px-1;
|
|
49
47
|
}
|
|
50
|
-
|
|
48
|
+
[data-style='rokkit'] tabs.is-below {
|
|
51
49
|
@apply border-b-0 border-t-2;
|
|
52
50
|
}
|
|
53
|
-
|
|
51
|
+
[data-style='rokkit'] tabs:focus-within {
|
|
54
52
|
@apply border-secondary outline-none;
|
|
55
53
|
}
|
|
56
|
-
|
|
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
|
-
|
|
57
|
+
[data-style='rokkit'] tabs.is-below .tab {
|
|
60
58
|
@apply rounded-b rounded-t-none;
|
|
61
59
|
}
|
|
62
|
-
|
|
60
|
+
[data-style='rokkit'] tabs.is-centered {
|
|
63
61
|
@apply justify-center;
|
|
64
62
|
}
|
|
65
|
-
|
|
63
|
+
[data-style='rokkit'] tabs .tab[aria-selected='true'] {
|
|
66
64
|
@apply bg-neutral-muted;
|
|
67
65
|
}
|
|
68
|
-
|
|
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
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
@apply bg-neutral-
|
|
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
|
-
|
|
83
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
97
|
+
[data-style='rokkit'] button-group button:first-child {
|
|
95
98
|
@apply rounded-l-full pl-3;
|
|
96
99
|
}
|
|
97
|
-
|
|
100
|
+
[data-style='rokkit'] button-group button:last-child {
|
|
98
101
|
@apply rounded-r-full pr-3;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
|
-
|
|
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
|
-
|
|
107
|
-
|
|
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
|
-
|
|
116
|
+
[data-style='rokkit'] drop-down > button {
|
|
113
117
|
@apply bg-neutral-base p-0;
|
|
114
118
|
}
|
|
115
|
-
|
|
119
|
+
[data-style='rokkit'] drop-down > button > span {
|
|
116
120
|
@apply rounded py-0;
|
|
117
121
|
}
|
|
118
|
-
|
|
122
|
+
[data-style='rokkit'] drop-down > button > span > * {
|
|
119
123
|
@apply h-full items-center;
|
|
120
124
|
}
|
|
121
125
|
|
|
122
|
-
|
|
126
|
+
[data-style='rokkit'] :not(field) > input-select {
|
|
123
127
|
@apply bg-neutral-base border-neutral-muted p-2px border;
|
|
124
128
|
}
|
|
125
|
-
|
|
129
|
+
[data-style='rokkit'] :not(field) > input-select > selected-item {
|
|
126
130
|
@apply bg-neutral-subtle;
|
|
127
131
|
}
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
/*
|
|
135
|
-
|
|
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
|
|
140
|
-
/*
|
|
141
|
-
|
|
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
|
-
|
|
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
|
-
/*
|
|
155
|
+
/* [data-style="rokkit"] input-select > selected-item > items {
|
|
152
156
|
@apply flex-grow flex-wrap gap-2;
|
|
153
157
|
} */
|
|
154
158
|
|
|
155
|
-
/*
|
|
156
|
-
|
|
159
|
+
/* rk-accordion styles */
|
|
160
|
+
[data-style='rokkit'] rk-accordion {
|
|
157
161
|
@apply flex-grow gap-1 overflow-y-scroll;
|
|
158
162
|
}
|
|
159
|
-
|
|
163
|
+
[data-style='rokkit'] rk-accordion > div {
|
|
160
164
|
@apply relative rounded shadow;
|
|
161
165
|
}
|
|
162
166
|
|
|
163
|
-
/* Nested
|
|
164
|
-
|
|
167
|
+
/* Nested rk-list and rk-node styles */
|
|
168
|
+
[data-style='rokkit'] rk-nested-list {
|
|
165
169
|
@apply text-neutral-800;
|
|
166
170
|
}
|
|
167
|
-
|
|
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
|
-
|
|
176
|
+
[data-style='rokkit'] tree {
|
|
173
177
|
@apply rounded;
|
|
174
178
|
}
|
|
175
179
|
|
|
176
|
-
/* Focus styles for Nested
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
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
|
-
|
|
184
|
-
|
|
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
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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
|
|
198
|
-
|
|
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
|
-
|
|
202
|
-
|
|
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
|
-
|
|
210
|
-
|
|
211
|
-
@apply text-
|
|
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
|
-
|
|
214
|
-
|
|
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
|
|
218
|
-
|
|
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
|
-
|
|
223
|
+
[data-style='rokkit'] rk-accordion [aria-selected='true'] rk-summary {
|
|
223
224
|
@apply bg-neutral-subtle;
|
|
224
225
|
}
|
|
225
|
-
|
|
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
|
|
230
|
-
|
|
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
|
-
|
|
236
|
+
[data-style='rokkit'] .folder-tree {
|
|
236
237
|
@apply bg-neutral-inset h-full;
|
|
237
238
|
}
|
|
238
|
-
|
|
239
|
+
[data-style='rokkit'] .folder-tree rk-nested-list {
|
|
239
240
|
@apply bg-neutral-inset h-full;
|
|
240
241
|
}
|
|
241
|
-
|
|
242
|
+
[data-style='rokkit'] rk-node > div > rk-item {
|
|
242
243
|
@apply px-1;
|
|
243
244
|
}
|
|
244
|
-
|
|
245
|
+
[data-style='rokkit'] rk-node > div > span {
|
|
245
246
|
@apply flex-shrink-0;
|
|
246
247
|
}
|
|
247
|
-
|
|
248
|
+
[data-style='rokkit'] rk-node > div > span > i {
|
|
248
249
|
@apply border-neutral-muted;
|
|
249
250
|
}
|
|
250
|
-
|
|
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
|
-
|
|
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
|
-
|
|
261
|
+
[data-style='rokkit'] rk-switch:focus-within {
|
|
261
262
|
@apply outline-secondary outline;
|
|
262
263
|
}
|
|
263
|
-
|
|
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
|
-
|
|
268
|
+
[data-style='rokkit'] rk-switch rk-item > rk-icon > i {
|
|
268
269
|
@apply text-lg;
|
|
269
270
|
}
|
|
270
271
|
|
|
271
|
-
|
|
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
|
-
|
|
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
|
-
|
|
292
|
-
|
|
293
|
-
|
|
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
|
-
|
|
287
|
+
[data-style='rokkit'] rk-switch[aria-disabled='true'] {
|
|
307
288
|
@apply bg-neutral-muted cursor-not-allowed text-neutral-500;
|
|
308
289
|
}
|
|
309
|
-
|
|
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
|
-
|
|
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
|
+
}
|
package/src/rokkit/table.css
CHANGED
|
@@ -43,15 +43,15 @@ table > tfoot > tr {
|
|
|
43
43
|
@apply table-row font-semibold text-neutral-800;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
rk-table-wrapper {
|
|
47
47
|
@apply shadow-md sm:rounded-lg;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
td
|
|
51
|
-
td
|
|
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
|
|
55
|
+
td rk-cell rk-item {
|
|
56
56
|
@apply flex w-full;
|
|
57
57
|
}
|
package/src/rokkit/toggle.css
CHANGED
|
@@ -1,18 +1,33 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
6
|
+
[data-style='rokkit'] rk-switch:hover > rk-icon {
|
|
7
7
|
@apply text-secondary;
|
|
8
8
|
}
|
|
9
|
-
|
|
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
|
-
|
|
14
|
+
[data-style='rokkit'] rk-switch.minimal {
|
|
14
15
|
@apply border-none py-0 focus-within:ring-0;
|
|
15
16
|
}
|
|
16
|
-
|
|
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
|
+
} */
|