shru-design-system 0.0.7 → 0.0.9
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.
|
@@ -257,15 +257,263 @@
|
|
|
257
257
|
* Total classes: 423
|
|
258
258
|
*/
|
|
259
259
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
260
|
+
|
|
261
|
+
/*
|
|
262
|
+
* Pre-generated utility classes for design system components
|
|
263
|
+
* These utilities are explicitly defined to ensure they work in consuming apps
|
|
264
|
+
* without requiring Tailwind configuration or scanning
|
|
265
|
+
*
|
|
266
|
+
* Generated from 98 component files
|
|
267
|
+
* Total classes: 423
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
/*
|
|
271
|
+
* COMPREHENSIVE UTILITY OVERRIDES
|
|
272
|
+
* These utilities are explicitly defined to work in consuming apps
|
|
273
|
+
* without requiring Tailwind configuration or scanning.
|
|
274
|
+
* This ensures components "just work" when imported from npm.
|
|
275
|
+
*
|
|
276
|
+
* IMPORTANT: These are OUTSIDE @layer utilities and placed at the end
|
|
277
|
+
* to ensure they override Tailwind's generated utilities.
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
/* Border Radius */
|
|
265
281
|
.rounded-none { border-radius: 0 !important; }
|
|
266
282
|
.rounded-sm { border-radius: var(--radius-sm) !important; }
|
|
283
|
+
.rounded { border-radius: var(--radius) !important; }
|
|
284
|
+
.rounded-md { border-radius: var(--radius-md) !important; }
|
|
285
|
+
.rounded-lg { border-radius: var(--radius-lg) !important; }
|
|
267
286
|
.rounded-xl { border-radius: var(--radius-xl) !important; }
|
|
268
|
-
}
|
|
287
|
+
.rounded-2xl { border-radius: calc(var(--radius) + 8px) !important; }
|
|
288
|
+
.rounded-full { border-radius: 9999px !important; }
|
|
289
|
+
|
|
290
|
+
/* Spacing - Padding */
|
|
291
|
+
.p-0 { padding: 0 !important; }
|
|
292
|
+
.p-1 { padding: calc(var(--spacing) * 1) !important; }
|
|
293
|
+
.p-2 { padding: calc(var(--spacing) * 2) !important; }
|
|
294
|
+
.p-3 { padding: calc(var(--spacing) * 3) !important; }
|
|
295
|
+
.p-4 { padding: calc(var(--spacing) * 4) !important; }
|
|
296
|
+
.p-6 { padding: calc(var(--spacing) * 6) !important; }
|
|
297
|
+
.p-8 { padding: calc(var(--spacing) * 8) !important; }
|
|
298
|
+
.px-1 { padding-left: calc(var(--spacing) * 1) !important; padding-right: calc(var(--spacing) * 1) !important; }
|
|
299
|
+
.px-2 { padding-left: calc(var(--spacing) * 2) !important; padding-right: calc(var(--spacing) * 2) !important; }
|
|
300
|
+
.px-3 { padding-left: calc(var(--spacing) * 3) !important; padding-right: calc(var(--spacing) * 3) !important; }
|
|
301
|
+
.px-4 { padding-left: calc(var(--spacing) * 4) !important; padding-right: calc(var(--spacing) * 4) !important; }
|
|
302
|
+
.px-6 { padding-left: calc(var(--spacing) * 6) !important; padding-right: calc(var(--spacing) * 6) !important; }
|
|
303
|
+
.px-8 { padding-left: calc(var(--spacing) * 8) !important; padding-right: calc(var(--spacing) * 8) !important; }
|
|
304
|
+
.py-1 { padding-top: calc(var(--spacing) * 1) !important; padding-bottom: calc(var(--spacing) * 1) !important; }
|
|
305
|
+
.py-2 { padding-top: calc(var(--spacing) * 2) !important; padding-bottom: calc(var(--spacing) * 2) !important; }
|
|
306
|
+
.py-3 { padding-top: calc(var(--spacing) * 3) !important; padding-bottom: calc(var(--spacing) * 3) !important; }
|
|
307
|
+
.py-4 { padding-top: calc(var(--spacing) * 4) !important; padding-bottom: calc(var(--spacing) * 4) !important; }
|
|
308
|
+
|
|
309
|
+
/* Spacing - Margin */
|
|
310
|
+
.m-0 { margin: 0 !important; }
|
|
311
|
+
.m-1 { margin: calc(var(--spacing) * 1) !important; }
|
|
312
|
+
.m-2 { margin: calc(var(--spacing) * 2) !important; }
|
|
313
|
+
.m-4 { margin: calc(var(--spacing) * 4) !important; }
|
|
314
|
+
.m-6 { margin: calc(var(--spacing) * 6) !important; }
|
|
315
|
+
.m-8 { margin: calc(var(--spacing) * 8) !important; }
|
|
316
|
+
.mb-1 { margin-bottom: calc(var(--spacing) * 1) !important; }
|
|
317
|
+
.mb-2 { margin-bottom: calc(var(--spacing) * 2) !important; }
|
|
318
|
+
.mb-4 { margin-bottom: calc(var(--spacing) * 4) !important; }
|
|
319
|
+
.mb-6 { margin-bottom: calc(var(--spacing) * 6) !important; }
|
|
320
|
+
.mb-8 { margin-bottom: calc(var(--spacing) * 8) !important; }
|
|
321
|
+
.mt-1 { margin-top: calc(var(--spacing) * 1) !important; }
|
|
322
|
+
.mt-2 { margin-top: calc(var(--spacing) * 2) !important; }
|
|
323
|
+
.mt-4 { margin-top: calc(var(--spacing) * 4) !important; }
|
|
324
|
+
.mt-6 { margin-top: calc(var(--spacing) * 6) !important; }
|
|
325
|
+
.mt-8 { margin-top: calc(var(--spacing) * 8) !important; }
|
|
326
|
+
.mr-1 { margin-right: calc(var(--spacing) * 1) !important; }
|
|
327
|
+
.mr-2 { margin-right: calc(var(--spacing) * 2) !important; }
|
|
328
|
+
.mr-4 { margin-right: calc(var(--spacing) * 4) !important; }
|
|
329
|
+
.ml-1 { margin-left: calc(var(--spacing) * 1) !important; }
|
|
330
|
+
.ml-2 { margin-left: calc(var(--spacing) * 2) !important; }
|
|
331
|
+
.ml-4 { margin-left: calc(var(--spacing) * 4) !important; }
|
|
332
|
+
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
|
|
333
|
+
|
|
334
|
+
/* Spacing - Gap */
|
|
335
|
+
.gap-1 { gap: calc(var(--spacing) * 1) !important; }
|
|
336
|
+
.gap-2 { gap: calc(var(--spacing) * 2) !important; }
|
|
337
|
+
.gap-3 { gap: calc(var(--spacing) * 3) !important; }
|
|
338
|
+
.gap-4 { gap: calc(var(--spacing) * 4) !important; }
|
|
339
|
+
.gap-6 { gap: calc(var(--spacing) * 6) !important; }
|
|
340
|
+
.gap-8 { gap: calc(var(--spacing) * 8) !important; }
|
|
341
|
+
|
|
342
|
+
/* Sizing - Width */
|
|
343
|
+
.w-full { width: 100% !important; }
|
|
344
|
+
.w-auto { width: auto !important; }
|
|
345
|
+
.w-fit { width: fit-content !important; }
|
|
346
|
+
.w-4 { width: calc(var(--spacing) * 4) !important; }
|
|
347
|
+
.w-5 { width: calc(var(--spacing) * 5) !important; }
|
|
348
|
+
.w-6 { width: calc(var(--spacing) * 6) !important; }
|
|
349
|
+
.w-8 { width: calc(var(--spacing) * 8) !important; }
|
|
350
|
+
.w-10 { width: calc(var(--spacing) * 10) !important; }
|
|
351
|
+
.w-12 { width: calc(var(--spacing) * 12) !important; }
|
|
352
|
+
.w-14 { width: calc(var(--spacing) * 14) !important; }
|
|
353
|
+
.w-16 { width: calc(var(--spacing) * 16) !important; }
|
|
354
|
+
.min-w-0 { min-width: 0 !important; }
|
|
355
|
+
.max-w-full { max-width: 100% !important; }
|
|
356
|
+
|
|
357
|
+
/* Sizing - Height */
|
|
358
|
+
.h-4 { height: calc(var(--spacing) * 4) !important; }
|
|
359
|
+
.h-5 { height: calc(var(--spacing) * 5) !important; }
|
|
360
|
+
.h-6 { height: calc(var(--spacing) * 6) !important; }
|
|
361
|
+
.h-8 { height: calc(var(--spacing) * 8) !important; }
|
|
362
|
+
.h-9 { height: calc(var(--spacing) * 9) !important; }
|
|
363
|
+
.h-10 { height: calc(var(--spacing) * 10) !important; }
|
|
364
|
+
.h-12 { height: calc(var(--spacing) * 12) !important; }
|
|
365
|
+
.h-14 { height: calc(var(--spacing) * 14) !important; }
|
|
366
|
+
.h-16 { height: calc(var(--spacing) * 16) !important; }
|
|
367
|
+
.h-full { height: 100% !important; }
|
|
368
|
+
.h-auto { height: auto !important; }
|
|
369
|
+
.h-fit { height: fit-content !important; }
|
|
370
|
+
.h-screen { height: 100vh !important; }
|
|
371
|
+
.min-h-screen { min-height: 100vh !important; }
|
|
372
|
+
|
|
373
|
+
/* Display */
|
|
374
|
+
.block { display: block !important; }
|
|
375
|
+
.inline-block { display: inline-block !important; }
|
|
376
|
+
.inline { display: inline !important; }
|
|
377
|
+
.flex { display: flex !important; }
|
|
378
|
+
.inline-flex { display: inline-flex !important; }
|
|
379
|
+
.grid { display: grid !important; }
|
|
380
|
+
.hidden { display: none !important; }
|
|
381
|
+
|
|
382
|
+
/* Flexbox */
|
|
383
|
+
.flex-col { flex-direction: column !important; }
|
|
384
|
+
.flex-row { flex-direction: row !important; }
|
|
385
|
+
.flex-wrap { flex-wrap: wrap !important; }
|
|
386
|
+
.flex-nowrap { flex-wrap: nowrap !important; }
|
|
387
|
+
.items-start { align-items: flex-start !important; }
|
|
388
|
+
.items-center { align-items: center !important; }
|
|
389
|
+
.items-end { align-items: flex-end !important; }
|
|
390
|
+
.justify-start { justify-content: flex-start !important; }
|
|
391
|
+
.justify-center { justify-content: center !important; }
|
|
392
|
+
.justify-end { justify-content: flex-end !important; }
|
|
393
|
+
.justify-between { justify-content: space-between !important; }
|
|
394
|
+
.shrink-0 { flex-shrink: 0 !important; }
|
|
395
|
+
|
|
396
|
+
/* Typography */
|
|
397
|
+
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
|
|
398
|
+
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
|
|
399
|
+
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
|
|
400
|
+
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
|
|
401
|
+
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
|
|
402
|
+
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
|
|
403
|
+
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
|
|
404
|
+
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
|
|
405
|
+
.font-thin { font-weight: 100 !important; }
|
|
406
|
+
.font-light { font-weight: 300 !important; }
|
|
407
|
+
.font-normal { font-weight: 400 !important; }
|
|
408
|
+
.font-medium { font-weight: 500 !important; }
|
|
409
|
+
.font-semibold { font-weight: 600 !important; }
|
|
410
|
+
.font-bold { font-weight: 700 !important; }
|
|
411
|
+
.font-extrabold { font-weight: 800 !important; }
|
|
412
|
+
.text-left { text-align: left !important; }
|
|
413
|
+
.text-center { text-align: center !important; }
|
|
414
|
+
.text-right { text-align: right !important; }
|
|
415
|
+
.whitespace-normal { white-space: normal !important; }
|
|
416
|
+
.whitespace-nowrap { white-space: nowrap !important; }
|
|
417
|
+
.whitespace-pre { white-space: pre !important; }
|
|
418
|
+
|
|
419
|
+
/* Position */
|
|
420
|
+
.static { position: static !important; }
|
|
421
|
+
.relative { position: relative !important; }
|
|
422
|
+
.absolute { position: absolute !important; }
|
|
423
|
+
.fixed { position: fixed !important; }
|
|
424
|
+
.sticky { position: sticky !important; }
|
|
425
|
+
.inset-0 { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }
|
|
426
|
+
.top-0 { top: 0 !important; }
|
|
427
|
+
.right-0 { right: 0 !important; }
|
|
428
|
+
.bottom-0 { bottom: 0 !important; }
|
|
429
|
+
.left-0 { left: 0 !important; }
|
|
430
|
+
.z-0 { z-index: 0 !important; }
|
|
431
|
+
.z-10 { z-index: 10 !important; }
|
|
432
|
+
.z-20 { z-index: 20 !important; }
|
|
433
|
+
.z-30 { z-index: 30 !important; }
|
|
434
|
+
.z-40 { z-index: 40 !important; }
|
|
435
|
+
.z-50 { z-index: 50 !important; }
|
|
436
|
+
|
|
437
|
+
/* Effects */
|
|
438
|
+
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important; }
|
|
439
|
+
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1) !important; }
|
|
440
|
+
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important; }
|
|
441
|
+
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important; }
|
|
442
|
+
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important; }
|
|
443
|
+
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25) !important; }
|
|
444
|
+
.shadow-none { box-shadow: none !important; }
|
|
445
|
+
.opacity-0 { opacity: 0 !important; }
|
|
446
|
+
.opacity-25 { opacity: 0.25 !important; }
|
|
447
|
+
.opacity-50 { opacity: 0.5 !important; }
|
|
448
|
+
.opacity-75 { opacity: 0.75 !important; }
|
|
449
|
+
.opacity-100 { opacity: 1 !important; }
|
|
450
|
+
|
|
451
|
+
/* Transitions */
|
|
452
|
+
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
|
|
453
|
+
.transition-all { transition-property: all !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
|
|
454
|
+
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
|
|
455
|
+
.transition-opacity { transition-property: opacity !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
|
|
456
|
+
.transition-transform { transition-property: transform !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
|
|
457
|
+
.duration-75 { transition-duration: 75ms !important; }
|
|
458
|
+
.duration-100 { transition-duration: 100ms !important; }
|
|
459
|
+
.duration-150 { transition-duration: 150ms !important; }
|
|
460
|
+
.duration-200 { transition-duration: 200ms !important; }
|
|
461
|
+
.duration-300 { transition-duration: 300ms !important; }
|
|
462
|
+
.duration-500 { transition-duration: 500ms !important; }
|
|
463
|
+
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1) !important; }
|
|
464
|
+
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1) !important; }
|
|
465
|
+
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }
|
|
466
|
+
|
|
467
|
+
/* Transforms */
|
|
468
|
+
.scale-95 { transform: scale(0.95) !important; }
|
|
469
|
+
.scale-100 { transform: scale(1) !important; }
|
|
470
|
+
.scale-105 { transform: scale(1.05) !important; }
|
|
471
|
+
.scale-110 { transform: scale(1.1) !important; }
|
|
472
|
+
.rotate-0 { transform: rotate(0deg) !important; }
|
|
473
|
+
.rotate-90 { transform: rotate(90deg) !important; }
|
|
474
|
+
.rotate-180 { transform: rotate(180deg) !important; }
|
|
475
|
+
|
|
476
|
+
/* Interactive */
|
|
477
|
+
.cursor-pointer { cursor: pointer !important; }
|
|
478
|
+
.cursor-not-allowed { cursor: not-allowed !important; }
|
|
479
|
+
.cursor-default { cursor: default !important; }
|
|
480
|
+
.select-none { user-select: none !important; }
|
|
481
|
+
.select-text { user-select: text !important; }
|
|
482
|
+
.select-all { user-select: all !important; }
|
|
483
|
+
.pointer-events-none { pointer-events: none !important; }
|
|
484
|
+
.pointer-events-auto { pointer-events: auto !important; }
|
|
485
|
+
|
|
486
|
+
/* Overflow */
|
|
487
|
+
.overflow-hidden { overflow: hidden !important; }
|
|
488
|
+
.overflow-auto { overflow: auto !important; }
|
|
489
|
+
.overflow-scroll { overflow: scroll !important; }
|
|
490
|
+
.overflow-visible { overflow: visible !important; }
|
|
491
|
+
.overflow-x-hidden { overflow-x: hidden !important; }
|
|
492
|
+
.overflow-y-hidden { overflow-y: hidden !important; }
|
|
493
|
+
|
|
494
|
+
/* Outline */
|
|
495
|
+
.outline-none { outline: 2px solid transparent !important; outline-offset: 2px !important; }
|
|
496
|
+
|
|
497
|
+
/* Hover States */
|
|
498
|
+
.hover\:opacity-80:hover { opacity: 0.8 !important; }
|
|
499
|
+
.hover\:opacity-90:hover { opacity: 0.9 !important; }
|
|
500
|
+
.hover\:scale-105:hover { transform: scale(1.05) !important; }
|
|
501
|
+
.hover\:scale-110:hover { transform: scale(1.1) !important; }
|
|
502
|
+
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important; }
|
|
503
|
+
|
|
504
|
+
/* Active States */
|
|
505
|
+
.active\:scale-95:active { transform: scale(0.95) !important; }
|
|
506
|
+
.active\:opacity-80:active { opacity: 0.8 !important; }
|
|
507
|
+
|
|
508
|
+
/* Focus States */
|
|
509
|
+
.focus\:outline-none:focus { outline: 2px solid transparent !important; outline-offset: 2px !important; }
|
|
510
|
+
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--ring) !important; }
|
|
511
|
+
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px transparent, 0 0 0 4px var(--ring) !important; }
|
|
512
|
+
|
|
513
|
+
/* Disabled States */
|
|
514
|
+
.disabled\:opacity-50:disabled { opacity: 0.5 !important; }
|
|
515
|
+
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed !important; }
|
|
516
|
+
.disabled\:pointer-events-none:disabled { pointer-events: none !important; }
|
|
269
517
|
|
|
270
518
|
@layer components {
|
|
271
519
|
.steps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shru-design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "A comprehensive design system with theme toggle, components, and token-based theming",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -35,10 +35,9 @@
|
|
|
35
35
|
"apps/*"
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
|
-
"build": "
|
|
39
|
-
"build:lib": "
|
|
38
|
+
"build": "tsup src/index.ts --dts --format esm,cjs",
|
|
39
|
+
"build:lib": "tsup src/index.ts --dts --format esm,cjs",
|
|
40
40
|
"build:css": "node scripts/build-css.js",
|
|
41
|
-
"postinstall": "npm run build:lib",
|
|
42
41
|
"copy:tokens": "node scripts/copy-tokens.js",
|
|
43
42
|
"copy:globals": "node scripts/copy-globals.js",
|
|
44
43
|
"dev": "turbo run dev --parallel",
|