luaniverse 4.2.4 → 4.2.6
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/dist/index.cjs +632 -256
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +632 -256
- package/dist/index.js.map +1 -1
- package/dist/safelist.js +469 -52
- package/dist/safelist.txt +397 -54
- package/dist/styles.css +100 -118
- package/dist/tailwind.preset.js +2 -2
- package/package.json +2 -1
package/dist/safelist.js
CHANGED
|
@@ -6,6 +6,297 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
export const luaniverseSafelist = [
|
|
9
|
+
// Semantic Color Tokens - Emphasis (black-based)
|
|
10
|
+
'lua:bg-emphasis-base',
|
|
11
|
+
'lua:bg-emphasis-hover',
|
|
12
|
+
'lua:bg-emphasis-active',
|
|
13
|
+
'lua:text-emphasis-text',
|
|
14
|
+
'lua:text-emphasis-text-inverse',
|
|
15
|
+
'lua:hover:bg-emphasis-base',
|
|
16
|
+
'lua:hover:bg-emphasis-hover',
|
|
17
|
+
'lua:hover:bg-emphasis-active',
|
|
18
|
+
'lua:active:bg-emphasis-base',
|
|
19
|
+
'lua:active:bg-emphasis-hover',
|
|
20
|
+
'lua:active:bg-emphasis-active',
|
|
21
|
+
'lua:focus-visible:bg-emphasis-base',
|
|
22
|
+
|
|
23
|
+
// Semantic Color Tokens - Brand (blue-based)
|
|
24
|
+
'lua:bg-brand-base',
|
|
25
|
+
'lua:bg-brand-hover',
|
|
26
|
+
'lua:bg-brand-active',
|
|
27
|
+
'lua:text-brand-text',
|
|
28
|
+
'lua:text-brand-text-inverse',
|
|
29
|
+
'lua:border-brand-border',
|
|
30
|
+
'lua:hover:bg-brand-base',
|
|
31
|
+
'lua:hover:bg-brand-hover',
|
|
32
|
+
'lua:hover:bg-brand-active',
|
|
33
|
+
'lua:hover:text-brand-text',
|
|
34
|
+
'lua:active:bg-brand-base',
|
|
35
|
+
'lua:active:bg-brand-hover',
|
|
36
|
+
'lua:active:bg-brand-active',
|
|
37
|
+
'lua:active:text-brand-text',
|
|
38
|
+
'lua:focus-visible:bg-brand-base',
|
|
39
|
+
'lua:focus-visible:border-brand-border',
|
|
40
|
+
|
|
41
|
+
// Semantic Color Tokens - Neutral (gray-based)
|
|
42
|
+
'lua:bg-neutral-base',
|
|
43
|
+
'lua:bg-neutral-hover',
|
|
44
|
+
'lua:bg-neutral-active',
|
|
45
|
+
'lua:text-neutral-text',
|
|
46
|
+
'lua:text-neutral-text-muted',
|
|
47
|
+
'lua:border-neutral-border',
|
|
48
|
+
'lua:border-neutral-border-strong',
|
|
49
|
+
'lua:hover:bg-neutral-base',
|
|
50
|
+
'lua:hover:bg-neutral-hover',
|
|
51
|
+
'lua:hover:bg-neutral-active',
|
|
52
|
+
'lua:hover:text-neutral-text',
|
|
53
|
+
'lua:active:bg-neutral-base',
|
|
54
|
+
'lua:active:bg-neutral-hover',
|
|
55
|
+
'lua:active:bg-neutral-active',
|
|
56
|
+
'lua:focus-visible:bg-neutral-base',
|
|
57
|
+
|
|
58
|
+
// Semantic Color Tokens - Outline
|
|
59
|
+
'lua:bg-outline-bg',
|
|
60
|
+
'lua:bg-outline-hover',
|
|
61
|
+
'lua:bg-outline-active',
|
|
62
|
+
'lua:border-outline-border',
|
|
63
|
+
'lua:border-outline-border-hover',
|
|
64
|
+
'lua:hover:bg-outline-bg',
|
|
65
|
+
'lua:hover:bg-outline-hover',
|
|
66
|
+
'lua:hover:bg-outline-active',
|
|
67
|
+
'lua:active:bg-outline-bg',
|
|
68
|
+
'lua:active:bg-outline-hover',
|
|
69
|
+
'lua:active:bg-outline-active',
|
|
70
|
+
'lua:focus-visible:bg-outline-bg',
|
|
71
|
+
'lua:focus-visible:border-outline-border-hover',
|
|
72
|
+
|
|
73
|
+
// Semantic Color Tokens - Danger (red-based)
|
|
74
|
+
'lua:bg-danger-base',
|
|
75
|
+
'lua:bg-danger-hover',
|
|
76
|
+
'lua:bg-danger-active',
|
|
77
|
+
'lua:text-danger-text',
|
|
78
|
+
'lua:text-danger-text-inverse',
|
|
79
|
+
'lua:border-danger-base',
|
|
80
|
+
'lua:hover:bg-danger-base',
|
|
81
|
+
'lua:hover:bg-danger-hover',
|
|
82
|
+
'lua:hover:bg-danger-active',
|
|
83
|
+
'lua:active:bg-danger-base',
|
|
84
|
+
'lua:active:bg-danger-hover',
|
|
85
|
+
'lua:active:bg-danger-active',
|
|
86
|
+
'lua:focus-visible:bg-danger-base',
|
|
87
|
+
|
|
88
|
+
// Semantic Color Tokens - Success (green-based)
|
|
89
|
+
'lua:bg-success-base',
|
|
90
|
+
'lua:bg-success-hover',
|
|
91
|
+
'lua:bg-success-active',
|
|
92
|
+
'lua:text-success-text',
|
|
93
|
+
'lua:text-success-text-inverse',
|
|
94
|
+
'lua:hover:bg-success-base',
|
|
95
|
+
'lua:hover:bg-success-hover',
|
|
96
|
+
'lua:hover:bg-success-active',
|
|
97
|
+
'lua:active:bg-success-base',
|
|
98
|
+
'lua:active:bg-success-hover',
|
|
99
|
+
'lua:active:bg-success-active',
|
|
100
|
+
'lua:focus-visible:bg-success-base',
|
|
101
|
+
|
|
102
|
+
// Semantic Color Tokens - Warning (yellow-based)
|
|
103
|
+
'lua:bg-warning-base',
|
|
104
|
+
'lua:bg-warning-hover',
|
|
105
|
+
'lua:bg-warning-active',
|
|
106
|
+
'lua:text-warning-text',
|
|
107
|
+
'lua:text-warning-text-inverse',
|
|
108
|
+
'lua:hover:bg-warning-base',
|
|
109
|
+
'lua:hover:bg-warning-hover',
|
|
110
|
+
'lua:hover:bg-warning-active',
|
|
111
|
+
'lua:active:bg-warning-base',
|
|
112
|
+
'lua:active:bg-warning-hover',
|
|
113
|
+
'lua:active:bg-warning-active',
|
|
114
|
+
'lua:focus-visible:bg-warning-base',
|
|
115
|
+
|
|
116
|
+
// Semantic Color Tokens - Disabled State
|
|
117
|
+
'lua:bg-disabled-bg',
|
|
118
|
+
'lua:text-disabled-text',
|
|
119
|
+
'lua:border-disabled-border',
|
|
120
|
+
'lua:disabled:bg-disabled-bg',
|
|
121
|
+
'lua:disabled:text-disabled-text',
|
|
122
|
+
'lua:disabled:border-disabled-border',
|
|
123
|
+
|
|
124
|
+
// Semantic Color Tokens - Focus Rings
|
|
125
|
+
'lua:ring-focus-ring-emphasis',
|
|
126
|
+
'lua:ring-focus-ring-brand',
|
|
127
|
+
'lua:ring-focus-ring-danger',
|
|
128
|
+
'lua:ring-offset-focus-ring-offset',
|
|
129
|
+
'lua:focus-visible:ring-focus-ring-emphasis',
|
|
130
|
+
'lua:focus-visible:ring-focus-ring-brand',
|
|
131
|
+
'lua:focus-visible:ring-focus-ring-danger',
|
|
132
|
+
'lua:focus-visible:ring-offset-focus-ring-offset',
|
|
133
|
+
|
|
134
|
+
// Dark Mode Variants - Default/Emphasis
|
|
135
|
+
'lua:dark:bg-gray-50',
|
|
136
|
+
'lua:dark:bg-gray-100',
|
|
137
|
+
'lua:dark:bg-gray-200',
|
|
138
|
+
'lua:dark:text-gray-900',
|
|
139
|
+
'lua:dark:hover:bg-gray-50',
|
|
140
|
+
'lua:dark:active:bg-gray-200',
|
|
141
|
+
'lua:dark:focus-visible:bg-gray-100',
|
|
142
|
+
'lua:dark:focus-visible:ring-gray-300',
|
|
143
|
+
'lua:[a&]:dark:hover:bg-gray-50',
|
|
144
|
+
|
|
145
|
+
// Dark Mode Variants - Primary/Brand
|
|
146
|
+
'lua:dark:bg-blue-500',
|
|
147
|
+
'lua:dark:bg-blue-600',
|
|
148
|
+
'lua:dark:bg-blue-700',
|
|
149
|
+
'lua:dark:text-blue-400',
|
|
150
|
+
'lua:dark:border-blue-400',
|
|
151
|
+
'lua:dark:border-blue-600',
|
|
152
|
+
'lua:dark:border-blue-700',
|
|
153
|
+
'lua:dark:hover:bg-blue-500',
|
|
154
|
+
'lua:dark:hover:bg-blue-600',
|
|
155
|
+
'lua:dark:hover:text-white',
|
|
156
|
+
'lua:dark:hover:border-blue-600',
|
|
157
|
+
'lua:dark:active:bg-blue-700',
|
|
158
|
+
'lua:dark:active:border-blue-700',
|
|
159
|
+
'lua:dark:focus-visible:bg-blue-600',
|
|
160
|
+
'lua:dark:focus-visible:ring-blue-400',
|
|
161
|
+
'lua:[a&]:dark:hover:bg-blue-500',
|
|
162
|
+
|
|
163
|
+
// Dark Mode Variants - Secondary/Neutral
|
|
164
|
+
'lua:dark:bg-gray-600',
|
|
165
|
+
'lua:dark:bg-gray-700',
|
|
166
|
+
'lua:dark:bg-gray-800',
|
|
167
|
+
'lua:dark:bg-gray-900',
|
|
168
|
+
'lua:dark:text-gray-100',
|
|
169
|
+
'lua:dark:text-gray-200',
|
|
170
|
+
'lua:dark:text-gray-400',
|
|
171
|
+
'lua:dark:border-gray-600',
|
|
172
|
+
'lua:dark:border-gray-700',
|
|
173
|
+
'lua:dark:hover:bg-gray-600',
|
|
174
|
+
'lua:dark:hover:bg-gray-700',
|
|
175
|
+
'lua:dark:hover:bg-gray-800',
|
|
176
|
+
'lua:dark:active:bg-gray-600',
|
|
177
|
+
'lua:dark:active:bg-gray-700',
|
|
178
|
+
'lua:dark:focus-visible:bg-gray-800',
|
|
179
|
+
'lua:dark:focus-visible:bg-gray-900',
|
|
180
|
+
'lua:dark:focus-visible:border-gray-600',
|
|
181
|
+
'lua:dark:focus-visible:ring-gray-400',
|
|
182
|
+
'lua:[a&]:dark:hover:bg-gray-700',
|
|
183
|
+
'lua:[a&]:dark:hover:bg-gray-800',
|
|
184
|
+
|
|
185
|
+
// Dark Mode Variants - Danger/Destructive
|
|
186
|
+
'lua:dark:bg-red-500',
|
|
187
|
+
'lua:dark:bg-red-600',
|
|
188
|
+
'lua:dark:bg-red-700',
|
|
189
|
+
'lua:dark:hover:bg-red-500',
|
|
190
|
+
'lua:dark:active:bg-red-700',
|
|
191
|
+
'lua:dark:focus-visible:bg-red-600',
|
|
192
|
+
'lua:dark:focus-visible:ring-red-400',
|
|
193
|
+
'lua:[a&]:dark:hover:bg-red-500',
|
|
194
|
+
|
|
195
|
+
// Dark Mode Variants - Success
|
|
196
|
+
'lua:dark:bg-green-500',
|
|
197
|
+
'lua:dark:bg-green-600',
|
|
198
|
+
'lua:dark:hover:bg-green-500',
|
|
199
|
+
'lua:[a&]:dark:hover:bg-green-500',
|
|
200
|
+
|
|
201
|
+
// Dark Mode Variants - Warning
|
|
202
|
+
'lua:dark:bg-amber-500',
|
|
203
|
+
'lua:dark:bg-amber-600',
|
|
204
|
+
'lua:dark:text-gray-900',
|
|
205
|
+
'lua:dark:hover:bg-amber-500',
|
|
206
|
+
'lua:[a&]:dark:hover:bg-amber-500',
|
|
207
|
+
|
|
208
|
+
// Dark Mode Variants - Disabled
|
|
209
|
+
'lua:dark:disabled:bg-white/5',
|
|
210
|
+
'lua:dark:disabled:text-white/30',
|
|
211
|
+
|
|
212
|
+
// Semantic Color Tokens - Base
|
|
213
|
+
'lua:bg-background',
|
|
214
|
+
'lua:text-foreground',
|
|
215
|
+
|
|
216
|
+
// Semantic Color Tokens - Card & Surface
|
|
217
|
+
'lua:bg-card',
|
|
218
|
+
'lua:text-card-foreground',
|
|
219
|
+
'lua:border-border',
|
|
220
|
+
|
|
221
|
+
// Semantic Color Tokens - Popover
|
|
222
|
+
'lua:bg-popover',
|
|
223
|
+
'lua:text-popover-foreground',
|
|
224
|
+
|
|
225
|
+
// Semantic Color Tokens - Default (Emphasis - Black/Bold)
|
|
226
|
+
'lua:bg-default',
|
|
227
|
+
'lua:text-default-foreground',
|
|
228
|
+
'lua:bg-default-hover',
|
|
229
|
+
'lua:hover:bg-default-hover',
|
|
230
|
+
'lua:bg-default-active',
|
|
231
|
+
'lua:active:bg-default-active',
|
|
232
|
+
'lua:[a&]:hover:bg-default-hover',
|
|
233
|
+
|
|
234
|
+
// Semantic Color Tokens - Primary (Brand - Blue)
|
|
235
|
+
'lua:bg-primary',
|
|
236
|
+
'lua:text-primary-foreground',
|
|
237
|
+
'lua:text-primary',
|
|
238
|
+
'lua:border-primary',
|
|
239
|
+
'lua:bg-primary-hover',
|
|
240
|
+
'lua:hover:bg-primary',
|
|
241
|
+
'lua:hover:bg-primary-hover',
|
|
242
|
+
'lua:hover:text-primary-foreground',
|
|
243
|
+
'lua:hover:border-primary',
|
|
244
|
+
'lua:bg-primary-active',
|
|
245
|
+
'lua:active:bg-primary-hover',
|
|
246
|
+
'lua:active:border-primary-hover',
|
|
247
|
+
'lua:[a&]:hover:bg-primary-hover',
|
|
248
|
+
|
|
249
|
+
// Semantic Color Tokens - Secondary (Neutral - Gray)
|
|
250
|
+
'lua:bg-secondary',
|
|
251
|
+
'lua:text-secondary-foreground',
|
|
252
|
+
'lua:bg-secondary-hover',
|
|
253
|
+
'lua:hover:bg-secondary',
|
|
254
|
+
'lua:hover:bg-secondary-hover',
|
|
255
|
+
'lua:bg-secondary-active',
|
|
256
|
+
'lua:active:bg-secondary-active',
|
|
257
|
+
'lua:[a&]:hover:bg-secondary',
|
|
258
|
+
'lua:[a&]:hover:bg-secondary-hover',
|
|
259
|
+
|
|
260
|
+
// Semantic Color Tokens - Muted
|
|
261
|
+
'lua:bg-muted',
|
|
262
|
+
'lua:text-muted-foreground',
|
|
263
|
+
|
|
264
|
+
// Semantic Color Tokens - Accent
|
|
265
|
+
'lua:bg-accent',
|
|
266
|
+
'lua:text-accent-foreground',
|
|
267
|
+
|
|
268
|
+
// Semantic Color Tokens - Destructive (Danger - Red)
|
|
269
|
+
'lua:bg-destructive',
|
|
270
|
+
'lua:text-destructive-foreground',
|
|
271
|
+
'lua:bg-destructive-hover',
|
|
272
|
+
'lua:hover:bg-destructive-hover',
|
|
273
|
+
'lua:bg-destructive-active',
|
|
274
|
+
'lua:active:bg-destructive-active',
|
|
275
|
+
'lua:[a&]:hover:bg-destructive-hover',
|
|
276
|
+
|
|
277
|
+
// Semantic Color Tokens - Success (Green)
|
|
278
|
+
'lua:bg-success',
|
|
279
|
+
'lua:text-success-foreground',
|
|
280
|
+
'lua:bg-success-hover',
|
|
281
|
+
'lua:hover:bg-success-hover',
|
|
282
|
+
'lua:[a&]:hover:bg-success-hover',
|
|
283
|
+
|
|
284
|
+
// Semantic Color Tokens - Warning (Amber)
|
|
285
|
+
'lua:bg-warning',
|
|
286
|
+
'lua:text-warning-foreground',
|
|
287
|
+
'lua:bg-warning-hover',
|
|
288
|
+
'lua:hover:bg-warning-hover',
|
|
289
|
+
'lua:[a&]:hover:bg-warning-hover',
|
|
290
|
+
|
|
291
|
+
// Semantic Color Tokens - Input & Ring
|
|
292
|
+
'lua:border-input',
|
|
293
|
+
'lua:ring-ring',
|
|
294
|
+
'lua:focus-visible:ring-ring',
|
|
295
|
+
'lua:focus-visible:ring-2',
|
|
296
|
+
'lua:focus-visible:ring-offset-2',
|
|
297
|
+
'lua:disabled:opacity-50',
|
|
298
|
+
'lua:disabled:pointer-events-none',
|
|
299
|
+
|
|
9
300
|
// Dialog positioning
|
|
10
301
|
'left-[50%]',
|
|
11
302
|
'top-[50%]',
|
|
@@ -86,8 +377,9 @@ export const luaniverseSafelist = [
|
|
|
86
377
|
'lua:min-h-0',
|
|
87
378
|
|
|
88
379
|
// Tables
|
|
89
|
-
'lua:
|
|
90
|
-
'lua:md:hover:bg-
|
|
380
|
+
'lua:relative',
|
|
381
|
+
'lua:md:hover:bg-muted',
|
|
382
|
+
'lua:md:data-[state=selected]:bg-secondary',
|
|
91
383
|
'lua:transition-colors',
|
|
92
384
|
'lua:block',
|
|
93
385
|
'lua:md:table-row',
|
|
@@ -95,60 +387,101 @@ export const luaniverseSafelist = [
|
|
|
95
387
|
'lua:md:table',
|
|
96
388
|
'lua:md:table-header-group',
|
|
97
389
|
'lua:md:table-cell',
|
|
390
|
+
'lua:md:table-footer-group',
|
|
98
391
|
'lua:[&_tr]:border-none',
|
|
392
|
+
'lua:[&_tr:last-child]:border-0',
|
|
393
|
+
'lua:[&>tr]:last:border-b-0',
|
|
99
394
|
'lua:hidden',
|
|
100
395
|
'lua:shadow-sm',
|
|
396
|
+
'lua:md:shadow-none',
|
|
101
397
|
'lua:text-sm',
|
|
102
398
|
'lua:w-full',
|
|
103
399
|
'lua:caption-bottom',
|
|
104
400
|
'lua:h-11',
|
|
105
401
|
'lua:align-middle',
|
|
402
|
+
'lua:md:align-middle',
|
|
403
|
+
'lua:px-4',
|
|
106
404
|
'lua:md:px-4',
|
|
405
|
+
'lua:py-3',
|
|
406
|
+
'lua:px-0',
|
|
407
|
+
'lua:p-4',
|
|
408
|
+
'lua:md:p-0',
|
|
409
|
+
'lua:text-left',
|
|
107
410
|
'lua:md:text-left',
|
|
108
|
-
'lua:md:border-b',
|
|
109
|
-
'lua:md:border-b-0',
|
|
110
411
|
'lua:font-medium',
|
|
111
412
|
'lua:space-y-4',
|
|
413
|
+
'lua:md:space-y-0',
|
|
112
414
|
'lua:cursor-pointer',
|
|
415
|
+
'lua:border-0',
|
|
416
|
+
'lua:md:border-0',
|
|
113
417
|
'lua:md:border-1',
|
|
114
418
|
'lua:rounded-xl',
|
|
419
|
+
'lua:rounded-lg',
|
|
420
|
+
'lua:md:rounded-none',
|
|
115
421
|
'lua:overflow-x-auto',
|
|
116
|
-
'lua:
|
|
117
|
-
'last:lua:border-b-0',
|
|
422
|
+
'lua:last:border-b-0',
|
|
118
423
|
'lua:border-b',
|
|
119
|
-
'lua:border-
|
|
120
|
-
'lua:md:border-0',
|
|
121
|
-
'lua:
|
|
424
|
+
'lua:md:border-b',
|
|
425
|
+
'lua:md:border-b-0',
|
|
426
|
+
'lua:border-t',
|
|
122
427
|
'lua:border',
|
|
123
|
-
'lua:
|
|
428
|
+
'lua:md:bg-transparent',
|
|
429
|
+
'lua:mb-4',
|
|
430
|
+
'lua:md:mb-0',
|
|
431
|
+
'lua:mt-4',
|
|
432
|
+
'lua:md:mt-0',
|
|
433
|
+
'lua:whitespace-nowrap',
|
|
434
|
+
'lua:md:whitespace-nowrap',
|
|
435
|
+
'lua:[&:has([role=checkbox])]:pr-0',
|
|
436
|
+
'lua:[&>[role=checkbox]]:translate-y-[2px]',
|
|
437
|
+
'lua:before:text-foreground',
|
|
438
|
+
'lua:before:content-[attr(data-label)]',
|
|
439
|
+
'lua:before:float-left',
|
|
440
|
+
'lua:before:font-normal',
|
|
441
|
+
'lua:before:mr-4',
|
|
442
|
+
'lua:before:min-w-[100px]',
|
|
443
|
+
'lua:md:before:content-none',
|
|
444
|
+
|
|
445
|
+
// IconButton
|
|
446
|
+
'lua:size-7',
|
|
447
|
+
'lua:size-10',
|
|
448
|
+
'lua:size-12',
|
|
449
|
+
'lua:p-2',
|
|
450
|
+
'lua:p-3',
|
|
124
451
|
|
|
125
452
|
// Checkbox
|
|
126
453
|
'lua:peer',
|
|
127
|
-
'lua:
|
|
128
|
-
'lua:
|
|
129
|
-
'lua:
|
|
130
|
-
'lua:
|
|
131
|
-
'lua:
|
|
454
|
+
'lua:h-4',
|
|
455
|
+
'lua:w-4',
|
|
456
|
+
'lua:shrink-0',
|
|
457
|
+
'lua:rounded',
|
|
458
|
+
'lua:shadow-xs',
|
|
459
|
+
'lua:transition-all',
|
|
460
|
+
'lua:outline-hidden',
|
|
461
|
+
'lua:data-[state=checked]:bg-primary',
|
|
462
|
+
'lua:data-[state=checked]:text-primary-foreground',
|
|
463
|
+
'lua:data-[state=checked]:border-primary',
|
|
464
|
+
'lua:aria-[invalid=true]:border-destructive',
|
|
132
465
|
'lua:disabled:opacity-50',
|
|
133
466
|
'lua:disabled:cursor-not-allowed',
|
|
134
|
-
'lua:focus-visible:ring-offset-white',
|
|
135
467
|
'lua:focus-visible:ring-offset-2',
|
|
136
|
-
'lua:transition-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
'lua:bg-
|
|
140
|
-
'lua
|
|
141
|
-
'lua:
|
|
142
|
-
'lua:
|
|
468
|
+
'lua:transition-none',
|
|
469
|
+
|
|
470
|
+
// Switch
|
|
471
|
+
'lua:data-[state=checked]:bg-primary',
|
|
472
|
+
'lua:data-[state=unchecked]:bg-secondary',
|
|
473
|
+
'lua:data-[state=checked]:translate-x-4',
|
|
474
|
+
'lua:data-[state=unchecked]:translate-x-0',
|
|
143
475
|
|
|
144
476
|
'lua:w-[var(--radix-dropdown-menu-trigger-width)]',
|
|
145
477
|
|
|
146
478
|
// tabs
|
|
147
|
-
'lua:data-[state=active]:
|
|
479
|
+
'lua:data-[state=active]:bg-accent-subtle',
|
|
480
|
+
'lua:data-[state=active]:text-accent-subtle-foreground',
|
|
481
|
+
'lua:data-[state=active]:hover:bg-accent-subtle-hover',
|
|
148
482
|
'lua:data-[state=active]:border-b-2',
|
|
149
|
-
'lua:data-[state=active]:border-blue-600',
|
|
150
483
|
'lua:data-[state=active]:-mb-px',
|
|
151
|
-
'lua:hover:
|
|
484
|
+
'lua:hover:bg-secondary',
|
|
152
485
|
'lua:disabled:pointer-events-none',
|
|
153
486
|
'lua:focus-visible:outline-hidden',
|
|
154
487
|
'lua:whitespace-nowrap',
|
|
@@ -157,10 +490,11 @@ export const luaniverseSafelist = [
|
|
|
157
490
|
'lua:inline-flex',
|
|
158
491
|
'lua:rounded-full',
|
|
159
492
|
'lua:py-1',
|
|
160
|
-
'lua:
|
|
161
|
-
'lua:
|
|
162
|
-
'lua:
|
|
163
|
-
'lua:
|
|
493
|
+
'lua:px-3',
|
|
494
|
+
'lua:text-sm',
|
|
495
|
+
'lua:font-medium',
|
|
496
|
+
'lua:mt-2',
|
|
497
|
+
'lua:flex-wrap',
|
|
164
498
|
|
|
165
499
|
// carousel
|
|
166
500
|
'lua:justify-center',
|
|
@@ -193,8 +527,7 @@ export const luaniverseSafelist = [
|
|
|
193
527
|
'lua:z-50',
|
|
194
528
|
'lua:backdrop-blur-sm',
|
|
195
529
|
'lua:bg-black/80',
|
|
196
|
-
'lua:data-[state=open]:bg-
|
|
197
|
-
'lua:focus:ring-blue-600',
|
|
530
|
+
'lua:data-[state=open]:bg-secondary',
|
|
198
531
|
'lua:focus:outline-hidden',
|
|
199
532
|
'lua:hover:opacity-100',
|
|
200
533
|
'lua:transition-opacity',
|
|
@@ -238,14 +571,10 @@ export const luaniverseSafelist = [
|
|
|
238
571
|
'lua:min-w-32',
|
|
239
572
|
|
|
240
573
|
// slider
|
|
241
|
-
'lua:disabled:bg-
|
|
574
|
+
'lua:disabled:bg-muted',
|
|
242
575
|
'lua:hover:shadow-xl',
|
|
243
576
|
'lua:hover:scale-105',
|
|
244
577
|
'lua:active:scale-95',
|
|
245
|
-
'lua:bg-gradient-to-r',
|
|
246
|
-
'lua:from-blue-600',
|
|
247
|
-
'lua:to-purple-600',
|
|
248
|
-
'lua:bg-purple-600',
|
|
249
578
|
|
|
250
579
|
// input
|
|
251
580
|
'lua:text-gray-600',
|
|
@@ -262,33 +591,121 @@ export const luaniverseSafelist = [
|
|
|
262
591
|
'lua:bg-transparent',
|
|
263
592
|
'lua:px-3',
|
|
264
593
|
'lua:text-base',
|
|
265
|
-
'file:
|
|
266
|
-
'file:
|
|
267
|
-
'file:
|
|
268
|
-
'file:
|
|
269
|
-
'file:
|
|
270
|
-
'placeholder:
|
|
271
|
-
'focus-visible:
|
|
272
|
-
'focus-visible:
|
|
273
|
-
'focus-visible:
|
|
274
|
-
'focus-visible:
|
|
594
|
+
'lua:file:border-0',
|
|
595
|
+
'lua:file:bg-transparent',
|
|
596
|
+
'lua:file:text-sm',
|
|
597
|
+
'lua:file:font-medium',
|
|
598
|
+
'lua:file:text-foreground',
|
|
599
|
+
'lua:placeholder:text-muted-foreground',
|
|
600
|
+
'lua:focus-visible:outline-hidden',
|
|
601
|
+
'lua:focus-visible:ring-2',
|
|
602
|
+
'lua:focus-visible:ring-offset-2',
|
|
603
|
+
'lua:focus-visible:ring-offset-white',
|
|
604
|
+
'lua:focus-visible:ring-offset-background',
|
|
275
605
|
'lua:border-gray-300',
|
|
276
|
-
'
|
|
606
|
+
'lua:border-input',
|
|
607
|
+
'lua:focus-visible:ring-ring',
|
|
277
608
|
'lua:border-red-600',
|
|
278
|
-
'
|
|
609
|
+
'lua:border-destructive',
|
|
610
|
+
'lua:focus-visible:ring-destructive',
|
|
279
611
|
'lua:border-green-500',
|
|
280
|
-
'
|
|
612
|
+
'lua:border-success',
|
|
613
|
+
'lua:focus-visible:ring-success',
|
|
281
614
|
'lua:opacity-50',
|
|
282
|
-
'placeholder:lua:text-gray-400',
|
|
283
615
|
'lua:pr-10',
|
|
284
|
-
'md:
|
|
616
|
+
'lua:md:text-sm',
|
|
285
617
|
'lua:right-3',
|
|
286
618
|
'lua:mt-2',
|
|
287
619
|
'lua:text-red-600',
|
|
288
620
|
'lua:text-green-600',
|
|
621
|
+
'lua:text-success',
|
|
622
|
+
|
|
623
|
+
// Textarea
|
|
624
|
+
'lua:min-h-16',
|
|
625
|
+
'lua:resize-none',
|
|
626
|
+
'lua:resize-y',
|
|
627
|
+
'lua:resize-x',
|
|
628
|
+
'lua:resize',
|
|
629
|
+
'lua:py-2',
|
|
630
|
+
'lua:duration-200',
|
|
289
631
|
|
|
290
632
|
// Tooltip
|
|
633
|
+
'lua:z-50',
|
|
634
|
+
'lua:overflow-hidden',
|
|
635
|
+
'lua:px-3',
|
|
636
|
+
'lua:py-2',
|
|
637
|
+
'lua:text-xs',
|
|
638
|
+
'lua:transition-all',
|
|
639
|
+
'lua:duration-200',
|
|
640
|
+
'lua:shadow-lg',
|
|
291
641
|
'lua:rounded-lg',
|
|
642
|
+
'lua:fill-popover',
|
|
643
|
+
'lua:stroke-border',
|
|
644
|
+
|
|
645
|
+
// Calendar
|
|
646
|
+
'lua:aspect-square',
|
|
647
|
+
'lua:border-collapse',
|
|
648
|
+
'lua:group/calendar',
|
|
649
|
+
'lua:group/day',
|
|
650
|
+
'lua:mt-1',
|
|
651
|
+
'lua:inset-x-0',
|
|
652
|
+
'lua:aria-selected:text-muted-foreground',
|
|
653
|
+
'lua:invisible',
|
|
654
|
+
'lua:[&>svg]:text-muted-foreground',
|
|
655
|
+
'lua:[&>svg]:size-3',
|
|
656
|
+
'lua:pl-2',
|
|
657
|
+
'lua:pr-1',
|
|
658
|
+
'lua:ring-offset-background',
|
|
659
|
+
'lua:placeholder:text-muted-foreground',
|
|
660
|
+
'lua:line-clamp-1',
|
|
661
|
+
'lua:md:grid-cols-2',
|
|
662
|
+
'lua:grid-cols-2',
|
|
663
|
+
'lua:cursor-not-allowed',
|
|
664
|
+
'lua:font-semibold',
|
|
665
|
+
|
|
666
|
+
// Dialog
|
|
667
|
+
'lua:sm:max-w-[425px]',
|
|
668
|
+
'lua:sm:max-w-[500px]',
|
|
669
|
+
'lua:grid-cols-4',
|
|
670
|
+
'lua:col-span-3',
|
|
671
|
+
'lua:space-y-3',
|
|
672
|
+
'lua:space-y-2',
|
|
673
|
+
'lua:py-0.5',
|
|
674
|
+
|
|
675
|
+
// Select
|
|
676
|
+
'lua:rotate-90',
|
|
677
|
+
'lua:rotate-270',
|
|
678
|
+
'lua:data-[state=open]:animate-in',
|
|
679
|
+
'lua:data-[state=closed]:animate-out',
|
|
680
|
+
'lua:data-[state=closed]:fade-out-0',
|
|
681
|
+
'lua:data-[state=open]:fade-in-0',
|
|
682
|
+
'lua:data-[state=closed]:zoom-out-95',
|
|
683
|
+
'lua:data-[state=open]:zoom-in-95',
|
|
684
|
+
'lua:data-disabled:pointer-events-none',
|
|
685
|
+
'lua:data-disabled:opacity-50',
|
|
686
|
+
'lua:has-disabled:opacity-50',
|
|
687
|
+
'lua:[&>span]:line-clamp-1',
|
|
688
|
+
|
|
689
|
+
// Pagination
|
|
690
|
+
'lua:no-underline',
|
|
691
|
+
'lua:w-auto',
|
|
692
|
+
'lua:sm:inline',
|
|
693
|
+
'lua:active:bg-default-active',
|
|
694
|
+
|
|
695
|
+
// MultiSelect
|
|
696
|
+
'lua:w-[var(--radix-dropdown-menu-trigger-width)]',
|
|
697
|
+
'lua:overflow-y-auto',
|
|
698
|
+
'lua:overflow-x-hidden',
|
|
699
|
+
'lua:max-h-96',
|
|
700
|
+
'lua:line-clamp-1',
|
|
701
|
+
|
|
702
|
+
// Popover
|
|
703
|
+
'lua:w-80',
|
|
704
|
+
'lua:data-[side=bottom]:slide-in-from-top-2',
|
|
705
|
+
'lua:data-[side=left]:slide-in-from-right-2',
|
|
706
|
+
'lua:data-[side=right]:slide-in-from-left-2',
|
|
707
|
+
'lua:data-[side=top]:slide-in-from-bottom-2',
|
|
708
|
+
'lua:duration-200',
|
|
292
709
|
];
|
|
293
710
|
|
|
294
711
|
export default luaniverseSafelist;
|