luaniverse 4.0.40
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/README.md +710 -0
- package/dist/index.cjs +6304 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1229 -0
- package/dist/index.d.ts +1229 -0
- package/dist/index.js +6023 -0
- package/dist/index.js.map +1 -0
- package/dist/safelist.js +234 -0
- package/dist/safelist.txt +210 -0
- package/dist/styles.css +363 -0
- package/dist/tailwind.preset.js +90 -0
- package/package.json +118 -0
package/dist/styles.css
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Onest:wght@400;500;600;700&display=swap') layer(base);
|
|
2
|
+
|
|
3
|
+
@import 'tailwindcss' prefix(lua);
|
|
4
|
+
|
|
5
|
+
@theme {
|
|
6
|
+
--font-sans: Inter, sans-serif;
|
|
7
|
+
--font-heading: Onest, sans-serif;
|
|
8
|
+
--font-onest: Onest, sans-serif;
|
|
9
|
+
|
|
10
|
+
--spacing: 4px;
|
|
11
|
+
|
|
12
|
+
--text-xs: 12px;
|
|
13
|
+
--text-sm: 14px;
|
|
14
|
+
--text-base: 16px;
|
|
15
|
+
|
|
16
|
+
--radius-md: 6px;
|
|
17
|
+
--radius-lg: 8px;
|
|
18
|
+
--radius-xl: 12px;
|
|
19
|
+
--radius-2xl: 16px;
|
|
20
|
+
--radius-3xl: 24px;
|
|
21
|
+
|
|
22
|
+
--tracking-1: 0px;
|
|
23
|
+
--tracking-2: 0.025em;
|
|
24
|
+
--tracking-3: 0.05em;
|
|
25
|
+
--tracking-4: 0.1em;
|
|
26
|
+
|
|
27
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
28
|
+
|
|
29
|
+
--color-background: hsl(var(--background));
|
|
30
|
+
--color-foreground: hsl(var(--foreground));
|
|
31
|
+
--color-card: hsl(var(--card));
|
|
32
|
+
--color-card-foreground: hsl(var(--card-foreground));
|
|
33
|
+
--color-popover: hsl(var(--popover));
|
|
34
|
+
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
35
|
+
--color-primary: hsl(var(--primary));
|
|
36
|
+
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
37
|
+
--color-primary-hover: hsl(var(--primary-hover));
|
|
38
|
+
--color-primary-active: hsl(var(--primary-active));
|
|
39
|
+
--color-secondary: hsl(var(--secondary));
|
|
40
|
+
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
41
|
+
--color-secondary-hover: hsl(var(--secondary-hover));
|
|
42
|
+
--color-secondary-active: hsl(var(--secondary-active));
|
|
43
|
+
--color-muted: hsl(var(--muted));
|
|
44
|
+
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
45
|
+
--color-accent: hsl(var(--accent));
|
|
46
|
+
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
47
|
+
--color-destructive: hsl(var(--destructive));
|
|
48
|
+
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
49
|
+
--color-destructive-hover: hsl(var(--destructive-hover));
|
|
50
|
+
--color-destructive-active: hsl(var(--destructive-active));
|
|
51
|
+
--color-black: #000000;
|
|
52
|
+
--color-black-hover: #333333;
|
|
53
|
+
--color-neutral-50: #F9FAFB;
|
|
54
|
+
--color-neutral-100: #F4F4F4;
|
|
55
|
+
--color-neutral-200: #EBEBEB;
|
|
56
|
+
--color-neutral-300: #E6E6E6;
|
|
57
|
+
--color-neutral-400: #E0E0E0;
|
|
58
|
+
--color-neutral-500: #D1D5DB;
|
|
59
|
+
--color-neutral-600: #E5E7EB;
|
|
60
|
+
--color-border: hsl(var(--border));
|
|
61
|
+
--color-input: hsl(var(--input));
|
|
62
|
+
--color-ring: hsl(var(--ring));
|
|
63
|
+
--color-chart-1: hsl(var(--chart-1));
|
|
64
|
+
--color-chart-2: hsl(var(--chart-2));
|
|
65
|
+
--color-chart-3: hsl(var(--chart-3));
|
|
66
|
+
--color-chart-4: hsl(var(--chart-4));
|
|
67
|
+
--color-chart-5: hsl(var(--chart-5));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/*
|
|
71
|
+
The default border color has changed to `currentcolor` in Tailwind CSS v4,
|
|
72
|
+
so we've added these compatibility styles to make sure everything still
|
|
73
|
+
looks the same as it did with Tailwind CSS v3.
|
|
74
|
+
|
|
75
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
76
|
+
color utility to any element that depends on these defaults.
|
|
77
|
+
*/
|
|
78
|
+
@layer base {
|
|
79
|
+
*,
|
|
80
|
+
::after,
|
|
81
|
+
::before,
|
|
82
|
+
::backdrop,
|
|
83
|
+
::file-selector-button {
|
|
84
|
+
border-color: var(--color-gray-200, currentcolor);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@utility link-primary {
|
|
93
|
+
/* Responsive breakpoints */
|
|
94
|
+
|
|
95
|
+
/* Link variants */
|
|
96
|
+
@apply lua:text-primary lua:hover:text-primary/80 lua:underline-offset-4 lua:hover:underline lua:focus-visible:outline-2 lua:focus-visible:outline-ring lua:focus-visible:outline-offset-2 lua:focus-visible:rounded-sm;
|
|
97
|
+
text-decoration-thickness: 1px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@utility link-secondary {
|
|
101
|
+
@apply lua:text-muted-foreground lua:hover:text-foreground lua:underline-offset-4 lua:hover:underline lua:focus-visible:outline-2 lua:focus-visible:outline-ring lua:focus-visible:outline-offset-2 lua:focus-visible:rounded-sm;
|
|
102
|
+
text-decoration-thickness: 1px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@utility link-destructive {
|
|
106
|
+
@apply lua:text-destructive lua:hover:text-destructive/80 lua:underline-offset-4 lua:hover:underline lua:focus-visible:outline-2 lua:focus-visible:outline-ring lua:focus-visible:outline-offset-2 lua:focus-visible:rounded-sm;
|
|
107
|
+
text-decoration-thickness: 1px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@utility link-subtle {
|
|
111
|
+
@apply lua:text-foreground lua:hover:text-primary lua:no-underline lua:hover:underline lua:underline-offset-4 lua:focus-visible:outline-2 lua:focus-visible:outline-ring lua:focus-visible:outline-offset-2 lua:focus-visible:rounded-sm;
|
|
112
|
+
text-decoration-thickness: 1px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@layer base {
|
|
116
|
+
:root {
|
|
117
|
+
--background: 0 0% 100%;
|
|
118
|
+
--foreground: 240 10% 3.9%;
|
|
119
|
+
--card: 0 0% 100%;
|
|
120
|
+
--card-foreground: 240 10% 3.9%;
|
|
121
|
+
--popover: 0 0% 100%;
|
|
122
|
+
--popover-foreground: 240 10% 3.9%;
|
|
123
|
+
--primary: 218 100% 59%;
|
|
124
|
+
--primary-foreground: 0 0% 100%;
|
|
125
|
+
--primary-hover: 218 91% 56%;
|
|
126
|
+
--primary-active: 218 85% 52%;
|
|
127
|
+
--secondary: 240 4.8% 95.9%;
|
|
128
|
+
--secondary-foreground: 240 5.9% 10%;
|
|
129
|
+
--secondary-hover: 240 4.8% 90%;
|
|
130
|
+
--secondary-active: 240 4.8% 85%;
|
|
131
|
+
--muted: 240 4.8% 95.9%;
|
|
132
|
+
--muted-foreground: 240 3.8% 46.1%;
|
|
133
|
+
--accent: 240 4.8% 95.9%;
|
|
134
|
+
--accent-foreground: 240 5.9% 10%;
|
|
135
|
+
--destructive: 351 100% 45%;
|
|
136
|
+
--destructive-foreground: 0 0% 100%;
|
|
137
|
+
--destructive-hover: 351 100% 40%;
|
|
138
|
+
--destructive-active: 351 100% 37%;
|
|
139
|
+
--border: 240 5.9% 90%;
|
|
140
|
+
--input: 240 5.9% 90%;
|
|
141
|
+
--ring: 240 5.9% 10%;
|
|
142
|
+
--chart-1: 12 76% 61%;
|
|
143
|
+
--chart-2: 173 58% 39%;
|
|
144
|
+
--chart-3: 197 37% 24%;
|
|
145
|
+
--chart-4: 43 74% 66%;
|
|
146
|
+
--chart-5: 27 87% 67%;
|
|
147
|
+
--radius: 0.5rem;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.dark {
|
|
151
|
+
--background: 240 10% 3.9%;
|
|
152
|
+
--foreground: 0 0% 98%;
|
|
153
|
+
--card: 240 10% 3.9%;
|
|
154
|
+
--card-foreground: 0 0% 98%;
|
|
155
|
+
--popover: 240 10% 3.9%;
|
|
156
|
+
--popover-foreground: 0 0% 98%;
|
|
157
|
+
--primary: 218 100% 59%;
|
|
158
|
+
--primary-foreground: 0 0% 100%;
|
|
159
|
+
--primary-hover: 218 91% 56%;
|
|
160
|
+
--primary-active: 218 85% 52%;
|
|
161
|
+
--secondary: 240 3.7% 15.9%;
|
|
162
|
+
--secondary-foreground: 0 0% 98%;
|
|
163
|
+
--secondary-hover: 240 3.7% 20%;
|
|
164
|
+
--secondary-active: 240 3.7% 25%;
|
|
165
|
+
--muted: 240 3.7% 15.9%;
|
|
166
|
+
--muted-foreground: 240 5% 64.9%;
|
|
167
|
+
--accent: 240 3.7% 15.9%;
|
|
168
|
+
--accent-foreground: 0 0% 98%;
|
|
169
|
+
--destructive: 351 100% 45%;
|
|
170
|
+
--destructive-foreground: 0 0% 100%;
|
|
171
|
+
--destructive-hover: 351 100% 40%;
|
|
172
|
+
--destructive-active: 351 100% 37%;
|
|
173
|
+
--border: 240 3.7% 15.9%;
|
|
174
|
+
--input: 240 3.7% 15.9%;
|
|
175
|
+
--ring: 240 4.9% 83.9%;
|
|
176
|
+
--chart-1: 220 70% 50%;
|
|
177
|
+
--chart-2: 160 60% 45%;
|
|
178
|
+
--chart-3: 30 80% 55%;
|
|
179
|
+
--chart-4: 280 65% 60%;
|
|
180
|
+
--chart-5: 340 75% 55%;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@layer base {
|
|
185
|
+
* {
|
|
186
|
+
@apply lua:border-border;
|
|
187
|
+
}
|
|
188
|
+
body {
|
|
189
|
+
@apply lua:bg-background lua:text-foreground lua:font-sans;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Typography base styles */
|
|
193
|
+
h1, h2, h3, h4, h5, h6 {
|
|
194
|
+
@apply lua:font-heading lua:text-foreground;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
p {
|
|
198
|
+
@apply lua:text-sm lua:leading-relaxed lua:font-sans lua:text-foreground;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* Link base styles */
|
|
202
|
+
a {
|
|
203
|
+
@apply lua:text-primary lua:underline-offset-4 lua:hover:underline lua:focus-visible:outline-2 lua:focus-visible:outline-ring lua:focus-visible:outline-offset-2 lua:focus-visible:rounded-sm;
|
|
204
|
+
text-decoration-thickness: 1px;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* Sheet Animation Keyframes */
|
|
209
|
+
@keyframes slide-in-from-top {
|
|
210
|
+
0% { transform: translateY(-100%); }
|
|
211
|
+
100% { transform: translateY(0); }
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@keyframes slide-in-from-bottom {
|
|
215
|
+
0% { transform: translateY(100%); }
|
|
216
|
+
100% { transform: translateY(0); }
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@keyframes slide-in-from-left {
|
|
220
|
+
0% { transform: translateX(-100%); }
|
|
221
|
+
100% { transform: translateX(0); }
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@keyframes slide-in-from-right {
|
|
225
|
+
0% { transform: translateX(100%); }
|
|
226
|
+
100% { transform: translateX(0); }
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@keyframes slide-out-to-top {
|
|
230
|
+
0% { transform: translateY(0); }
|
|
231
|
+
100% { transform: translateY(-100%); }
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@keyframes slide-out-to-bottom {
|
|
235
|
+
0% { transform: translateY(0); }
|
|
236
|
+
100% { transform: translateY(100%); }
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@keyframes slide-out-to-left {
|
|
240
|
+
0% { transform: translateX(0); }
|
|
241
|
+
100% { transform: translateX(-100%); }
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@keyframes slide-out-to-right {
|
|
245
|
+
0% { transform: translateX(0); }
|
|
246
|
+
100% { transform: translateX(100%); }
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@keyframes fade-in {
|
|
250
|
+
0% { opacity: 0; }
|
|
251
|
+
100% { opacity: 1; }
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@keyframes fade-out {
|
|
255
|
+
0% { opacity: 1; }
|
|
256
|
+
100% { opacity: 0; }
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* Sheet Animation Classes */
|
|
260
|
+
.lua\:animate-in {
|
|
261
|
+
animation: fade-in 0.2s ease-out;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.lua\:animate-out {
|
|
265
|
+
animation: fade-out 0.2s ease-out;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.lua\:fade-in-0 {
|
|
269
|
+
animation: fade-in 0.2s ease-out;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.lua\:fade-out-0 {
|
|
273
|
+
animation: fade-out 0.2s ease-out;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.lua\:slide-in-from-top {
|
|
277
|
+
animation: slide-in-from-top 0.3s ease-out;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.lua\:slide-in-from-bottom {
|
|
281
|
+
animation: slide-in-from-bottom 0.3s ease-out;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.lua\:slide-in-from-left {
|
|
285
|
+
animation: slide-in-from-left 0.3s ease-out;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.lua\:slide-in-from-right {
|
|
289
|
+
animation: slide-in-from-right 0.3s ease-out;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.lua\:slide-out-to-top {
|
|
293
|
+
animation: slide-out-to-top 0.3s ease-out;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.lua\:slide-out-to-bottom {
|
|
297
|
+
animation: slide-out-to-bottom 0.3s ease-out;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.lua\:slide-out-to-left {
|
|
301
|
+
animation: slide-out-to-left 0.3s ease-out;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.lua\:slide-out-to-right {
|
|
305
|
+
animation: slide-out-to-right 0.3s ease-out;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/* Data attribute variants for Sheet animations */
|
|
309
|
+
.lua\:data-\[state\=open\]\:animate-in[data-state="open"] {
|
|
310
|
+
animation: fade-in 0.2s ease-out;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.lua\:data-\[state\=closed\]\:animate-out[data-state="closed"] {
|
|
314
|
+
animation: fade-out 0.2s ease-out;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.lua\:data-\[state\=open\]\:fade-in-0[data-state="open"] {
|
|
318
|
+
animation: fade-in 0.2s ease-out;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.lua\:data-\[state\=closed\]\:fade-out-0[data-state="closed"] {
|
|
322
|
+
animation: fade-out 0.2s ease-out;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.lua\:data-\[state\=open\]\:slide-in-from-top[data-state="open"] {
|
|
326
|
+
animation: slide-in-from-top 0.3s ease-out;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.lua\:data-\[state\=closed\]\:slide-out-to-top[data-state="closed"] {
|
|
330
|
+
animation: slide-out-to-top 0.3s ease-out;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.lua\:data-\[state\=open\]\:slide-in-from-bottom[data-state="open"] {
|
|
334
|
+
animation: slide-in-from-bottom 0.3s ease-out;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.lua\:data-\[state\=closed\]\:slide-out-to-bottom[data-state="closed"] {
|
|
338
|
+
animation: slide-out-to-bottom 0.3s ease-out;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.lua\:data-\[state\=open\]\:slide-in-from-left[data-state="open"] {
|
|
342
|
+
animation: slide-in-from-left 0.3s ease-out;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.lua\:data-\[state\=closed\]\:slide-out-to-left[data-state="closed"] {
|
|
346
|
+
animation: slide-out-to-left 0.3s ease-out;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.lua\:data-\[state\=open\]\:slide-in-from-right[data-state="open"] {
|
|
350
|
+
animation: slide-in-from-right 0.3s ease-out;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.lua\:data-\[state\=closed\]\:slide-out-to-right[data-state="closed"] {
|
|
354
|
+
animation: slide-out-to-right 0.3s ease-out;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.lua\:data-\[state\=open\]\:duration-500[data-state="open"] {
|
|
358
|
+
animation-duration: 500ms;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.lua\:data-\[state\=closed\]\:duration-300[data-state="closed"] {
|
|
362
|
+
animation-duration: 300ms;
|
|
363
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { luaniverseSafelist } from './safelist.js';
|
|
2
|
+
|
|
3
|
+
/** @type {import('tailwindcss').Config} */
|
|
4
|
+
export const luaniversePreset = {
|
|
5
|
+
// Dark mode disabled globally
|
|
6
|
+
darkMode: false,
|
|
7
|
+
// Safelist story-specific arbitrary values that are hard to standardize
|
|
8
|
+
safelist: luaniverseSafelist,
|
|
9
|
+
theme: {
|
|
10
|
+
extend: {
|
|
11
|
+
colors: {
|
|
12
|
+
border: 'hsl(var(--border, 214 32% 91%))', // Fallback to #E5E7EB
|
|
13
|
+
input: 'hsl(var(--input, 214 32% 91%))', // Fallback to #E5E7EB
|
|
14
|
+
ring: 'hsl(var(--ring, 220 100% 59%))', // Fallback to primary #2C7BFF
|
|
15
|
+
background: 'hsl(var(--background, 0 0% 100%))', // Fallback to white
|
|
16
|
+
foreground: 'hsl(var(--foreground, 222 84% 5%))', // Fallback to dark gray
|
|
17
|
+
primary: {
|
|
18
|
+
DEFAULT: 'hsl(var(--primary, 220 100% 59%))', // Fallback to #2C7BFF
|
|
19
|
+
foreground: 'hsl(var(--primary-foreground, 0 0% 100%))', // Fallback to white
|
|
20
|
+
hover: 'hsl(var(--primary-hover, 220 81% 54%))', // Fallback to #2F70E0
|
|
21
|
+
active: 'hsl(var(--primary-active, 220 67% 48%))', // Fallback to #2A66CC
|
|
22
|
+
},
|
|
23
|
+
secondary: {
|
|
24
|
+
DEFAULT: 'hsl(var(--secondary, 210 40% 95%))', // Fallback to light gray
|
|
25
|
+
foreground: 'hsl(var(--secondary-foreground, 222 84% 5%))', // Fallback to dark gray
|
|
26
|
+
hover: 'hsl(var(--secondary-hover, 210 40% 90%))', // Fallback to darker gray
|
|
27
|
+
active: 'hsl(var(--secondary-active, 210 40% 85%))', // Fallback to even darker gray
|
|
28
|
+
},
|
|
29
|
+
destructive: {
|
|
30
|
+
DEFAULT: 'hsl(var(--destructive, 352 100% 45%))', // Fallback to #E60022
|
|
31
|
+
foreground: 'hsl(var(--destructive-foreground, 0 0% 100%))', // Fallback to white
|
|
32
|
+
hover: 'hsl(var(--destructive-hover, 351 100% 40%))', // Fallback to #CC001E
|
|
33
|
+
active: 'hsl(var(--destructive-active, 351 100% 37%))', // Fallback to #BF001C
|
|
34
|
+
},
|
|
35
|
+
// Brand neutral colors
|
|
36
|
+
black: {
|
|
37
|
+
DEFAULT: '#000000',
|
|
38
|
+
hover: '#333333',
|
|
39
|
+
},
|
|
40
|
+
neutral: {
|
|
41
|
+
50: '#F9FAFB',
|
|
42
|
+
100: '#F4F4F4',
|
|
43
|
+
200: '#EBEBEB',
|
|
44
|
+
300: '#E6E6E6',
|
|
45
|
+
400: '#E0E0E0',
|
|
46
|
+
500: '#D1D5DB',
|
|
47
|
+
600: '#E5E7EB',
|
|
48
|
+
},
|
|
49
|
+
muted: {
|
|
50
|
+
DEFAULT: 'hsl(var(--muted, 210 40% 98%))', // Fallback to very light gray
|
|
51
|
+
foreground: 'hsl(var(--muted-foreground, 215 16% 47%))', // Fallback to medium gray
|
|
52
|
+
},
|
|
53
|
+
accent: {
|
|
54
|
+
DEFAULT: 'hsl(var(--accent, 210 40% 95%))', // Fallback to light gray
|
|
55
|
+
foreground: 'hsl(var(--accent-foreground, 222 84% 5%))', // Fallback to dark gray
|
|
56
|
+
},
|
|
57
|
+
popover: {
|
|
58
|
+
DEFAULT: 'hsl(var(--popover, 0 0% 100%))', // Fallback to white
|
|
59
|
+
foreground: 'hsl(var(--popover-foreground, 222 84% 5%))', // Fallback to dark gray
|
|
60
|
+
},
|
|
61
|
+
card: {
|
|
62
|
+
DEFAULT: 'hsl(var(--card, 0 0% 100%))', // Fallback to white
|
|
63
|
+
foreground: 'hsl(var(--card-foreground, 222 84% 5%))', // Fallback to dark gray
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
borderRadius: {
|
|
67
|
+
lg: 'var(--radius, 0.5rem)', // Fallback to 8px
|
|
68
|
+
md: 'calc(var(--radius, 0.5rem) - 2px)', // Fallback to 6px
|
|
69
|
+
sm: 'calc(var(--radius, 0.5rem) - 4px)', // Fallback to 4px
|
|
70
|
+
},
|
|
71
|
+
// Custom spacing for component consistency
|
|
72
|
+
spacing: {
|
|
73
|
+
0: '0px', // 0 spacing
|
|
74
|
+
1: '1px',
|
|
75
|
+
1.5: '6px', // IconButton small padding, Button gap
|
|
76
|
+
},
|
|
77
|
+
gap: {
|
|
78
|
+
1.5: '6px', // Button icon-text gap
|
|
79
|
+
},
|
|
80
|
+
// Custom sizes for IconButton components
|
|
81
|
+
size: {
|
|
82
|
+
7: '28px', // IconButton small
|
|
83
|
+
10: '40px', // IconButton default
|
|
84
|
+
12: '48px', // IconButton large
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export default luaniversePreset;
|
package/package.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "luaniverse",
|
|
3
|
+
"version": "4.0.40",
|
|
4
|
+
"description": "Lua Design System - A React component library for Lua applications",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.cjs"
|
|
18
|
+
},
|
|
19
|
+
"./styles": "./dist/styles.css",
|
|
20
|
+
"./tailwind": "./dist/tailwind.preset.js",
|
|
21
|
+
"./safelist": "./dist/safelist.js",
|
|
22
|
+
"./safelist.txt": "./dist/safelist.txt"
|
|
23
|
+
},
|
|
24
|
+
"sideEffects": [
|
|
25
|
+
"**/*.css"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"dev": "tsup --watch",
|
|
29
|
+
"build": "tsup",
|
|
30
|
+
"build:storybook": "storybook build",
|
|
31
|
+
"storybook": "storybook dev -p 6006",
|
|
32
|
+
"lint": "eslint . --ext .ts,.tsx --fix",
|
|
33
|
+
"format": "prettier --write .",
|
|
34
|
+
"type-check": "tsc --noEmit",
|
|
35
|
+
"clean": "rm -rf dist",
|
|
36
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"react",
|
|
40
|
+
"components",
|
|
41
|
+
"ui",
|
|
42
|
+
"design-system",
|
|
43
|
+
"tailwindcss",
|
|
44
|
+
"lua",
|
|
45
|
+
"typescript"
|
|
46
|
+
],
|
|
47
|
+
"author": "Lua Global",
|
|
48
|
+
"license": "MIT",
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "https://github.com/lua-ai-global/luaniverse.git"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"registry": "https://registry.npmjs.org/",
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"react": ">=18.0.0",
|
|
59
|
+
"react-dom": ">=18.0.0"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@radix-ui/react-checkbox": "^1.3.2",
|
|
63
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
64
|
+
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
65
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
66
|
+
"@radix-ui/react-radio-group": "^1.3.7",
|
|
67
|
+
"@radix-ui/react-select": "^2.2.5",
|
|
68
|
+
"@radix-ui/react-slot": "^1.1.0",
|
|
69
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
70
|
+
"@radix-ui/react-tabs": "^1.1.12",
|
|
71
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
72
|
+
"class-variance-authority": "^0.7.0",
|
|
73
|
+
"clsx": "^2.1.1",
|
|
74
|
+
"embla-carousel-react": "^8.6.0",
|
|
75
|
+
"input-otp": "^1.4.2",
|
|
76
|
+
"tailwind-merge": "^2.5.4"
|
|
77
|
+
},
|
|
78
|
+
"devDependencies": {
|
|
79
|
+
"@eslint/js": "^9.28.0",
|
|
80
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
81
|
+
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
82
|
+
"@semantic-release/git": "^10.0.1",
|
|
83
|
+
"@semantic-release/github": "^11.0.0",
|
|
84
|
+
"@semantic-release/npm": "^12.0.1",
|
|
85
|
+
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
86
|
+
"@storybook/addon-essentials": "^8.3.6",
|
|
87
|
+
"@storybook/addon-interactions": "^8.3.6",
|
|
88
|
+
"@storybook/addon-links": "^8.3.6",
|
|
89
|
+
"@storybook/addon-onboarding": "^8.3.6",
|
|
90
|
+
"@storybook/blocks": "^8.3.6",
|
|
91
|
+
"@storybook/react": "^8.3.6",
|
|
92
|
+
"@storybook/react-vite": "^8.3.6",
|
|
93
|
+
"@storybook/test": "^8.3.6",
|
|
94
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
95
|
+
"@types/node": "^22.15.29",
|
|
96
|
+
"@types/react": "^18.3.12",
|
|
97
|
+
"@types/react-dom": "^18.3.1",
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "^8.15.0",
|
|
99
|
+
"@typescript-eslint/parser": "^8.15.0",
|
|
100
|
+
"eslint": "^9.15.0",
|
|
101
|
+
"eslint-config-prettier": "^9.1.0",
|
|
102
|
+
"eslint-plugin-react": "^7.37.2",
|
|
103
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
104
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
105
|
+
"eslint-plugin-storybook": "^0.10.2",
|
|
106
|
+
"postcss": "^8.4.49",
|
|
107
|
+
"prettier": "^3.3.3",
|
|
108
|
+
"react": "^18.3.1",
|
|
109
|
+
"react-dom": "^18.3.1",
|
|
110
|
+
"semantic-release": "^24.2.0",
|
|
111
|
+
"storybook": "^8.3.6",
|
|
112
|
+
"tailwindcss": "^4.1.11",
|
|
113
|
+
"tailwindcss-animate": "^1.0.7",
|
|
114
|
+
"tsup": "^8.3.5",
|
|
115
|
+
"typescript": "^5.6.3",
|
|
116
|
+
"vite": "^5.4.10"
|
|
117
|
+
}
|
|
118
|
+
}
|