luaniverse 4.2.7 → 4.2.10

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 CHANGED
@@ -403,36 +403,29 @@ var Input = React121__namespace.forwardRef(
403
403
  type,
404
404
  id: inputId,
405
405
  className: cn(
406
- // Base styles
407
406
  "lua:flex lua:h-10 lua:w-full lua:rounded-md lua:border lua:bg-card lua:px-3 lua:py-2 lua:text-base lua:transition-all lua:duration-200",
408
407
  "lua:file:border-0 lua:file:bg-transparent lua:file:text-sm lua:file:font-medium lua:file:text-foreground",
409
408
  "lua:placeholder:text-muted-foreground",
410
409
  "lua:focus-visible:outline-hidden lua:focus-visible:ring-2 lua:focus-visible:ring-offset-2 lua:focus-visible:ring-offset-background",
411
- // Default state
412
410
  "lua:border-input lua:text-foreground",
413
411
  "lua:focus-visible:ring-ring",
414
- // Error state
415
412
  hasError && [
416
413
  "lua:border-destructive",
417
414
  "lua:focus-visible:ring-destructive",
418
415
  "lua:text-foreground"
419
416
  ],
420
- // Success state
421
417
  hasSuccess && [
422
418
  "lua:border-success",
423
419
  "lua:focus-visible:ring-success"
424
420
  ],
425
- // Disabled state
426
421
  disabled && [
427
422
  "lua:cursor-not-allowed lua:opacity-50",
428
423
  "lua:bg-muted",
429
424
  "lua:text-muted-foreground",
430
425
  "lua:placeholder:text-muted-foreground"
431
426
  ],
432
- // Padding adjustments for adornments
433
427
  hasStartAdornment && "lua:pl-10",
434
428
  hasEndAdornment && "lua:pr-10",
435
- // Responsive text size
436
429
  "lua:md:text-sm",
437
430
  className
438
431
  ),
@@ -571,34 +564,27 @@ var Textarea = React121__namespace.forwardRef(
571
564
  id: textareaId,
572
565
  "data-slot": "textarea",
573
566
  className: cn(
574
- // Base styles
575
567
  "lua:flex lua:min-h-16 lua:w-full lua:rounded-md lua:border lua:bg-card lua:px-3 lua:py-2 lua:text-base lua:transition-all lua:duration-200",
576
568
  "lua:placeholder:text-muted-foreground",
577
569
  "lua:focus-visible:outline-hidden lua:focus-visible:ring-2 lua:focus-visible:ring-offset-2 lua:focus-visible:ring-offset-background",
578
- // Default state
579
570
  "lua:border-input lua:text-foreground",
580
571
  "lua:focus-visible:ring-ring",
581
- // Error state
582
572
  hasError && [
583
573
  "lua:border-destructive",
584
574
  "lua:focus-visible:ring-destructive",
585
575
  "lua:text-foreground"
586
576
  ],
587
- // Success state
588
577
  hasSuccess && [
589
578
  "lua:border-success",
590
579
  "lua:focus-visible:ring-success"
591
580
  ],
592
- // Disabled state
593
581
  disabled && [
594
582
  "lua:cursor-not-allowed lua:opacity-50",
595
583
  "lua:bg-muted",
596
584
  "lua:text-muted-foreground",
597
585
  "lua:placeholder:text-muted-foreground"
598
586
  ],
599
- // Resize behavior
600
587
  resizeClasses[resize],
601
- // Responsive text size
602
588
  "lua:md:text-sm",
603
589
  className
604
590
  ),
@@ -5689,9 +5675,7 @@ var TableRow = React121__namespace.forwardRef(({ className, ...props }, ref) =>
5689
5675
  "data-slot": "table-row",
5690
5676
  className: cn(
5691
5677
  "lua:transition-colors lua:block lua:md:table-row",
5692
- // Mobile card styles (default)
5693
5678
  "lua:bg-card lua:border lua:border-border lua:rounded-lg lua:p-4 lua:shadow-sm lua:mb-4",
5694
- // Desktop table styles (md and up)
5695
5679
  "lua:md:bg-transparent lua:md:border-0 lua:md:border-b lua:md:border-border lua:md:rounded-none lua:md:p-0 lua:md:shadow-none lua:md:mb-0",
5696
5680
  "lua:md:hover:bg-muted lua:md:data-[state=selected]:bg-secondary",
5697
5681
  className
@@ -5721,10 +5705,8 @@ var TableCell = React121__namespace.forwardRef(({ className, label, ...props },
5721
5705
  "data-label": label,
5722
5706
  className: cn(
5723
5707
  "lua:[&:has([role=checkbox])]:pr-0 lua:[&>[role=checkbox]]:translate-y-[2px] lua:block lua:md:table-cell",
5724
- // Mobile card cell styles (default)
5725
5708
  "lua:py-3 lua:px-0 lua:border-b lua:border-border lua:last:border-b-0 lua:text-left",
5726
5709
  "lua:before:content-[attr(data-label)] lua:before:float-left lua:before:font-normal lua:before:text-foreground lua:before:mr-4 lua:before:min-w-[100px]",
5727
- // Desktop table cell styles (md and up)
5728
5710
  "lua:md:px-4 lua:md:align-middle lua:md:whitespace-nowrap lua:md:text-left lua:md:border-b-0",
5729
5711
  "lua:md:before:content-none",
5730
5712
  className
@@ -6258,14 +6240,11 @@ var PopoverContent = React121__namespace.forwardRef(({ className, align = "cente
6258
6240
  align,
6259
6241
  sideOffset,
6260
6242
  className: cn(
6261
- // Base styles - Luaniverse design with semantic tokens
6262
6243
  "lua:z-50 lua:rounded-md lua:border lua:border-border lua:bg-popover lua:text-popover-foreground lua:shadow-lg lua:font-onest",
6263
- // Animation
6264
6244
  "lua:transition-all lua:duration-200",
6265
6245
  "lua:data-[state=open]:animate-in lua:data-[state=open]:fade-in-0 lua:data-[state=open]:zoom-in-95",
6266
6246
  "lua:data-[state=closed]:animate-out lua:data-[state=closed]:fade-out-0 lua:data-[state=closed]:zoom-out-95",
6267
6247
  "lua:data-[side=bottom]:slide-in-from-top-2 lua:data-[side=left]:slide-in-from-right-2 lua:data-[side=right]:slide-in-from-left-2 lua:data-[side=top]:slide-in-from-bottom-2",
6268
- // Focus
6269
6248
  "lua:focus-visible:outline-none lua:focus-visible:ring-2 lua:focus-visible:ring-ring lua:focus-visible:ring-offset-2",
6270
6249
  className
6271
6250
  ),
@@ -6930,9 +6909,7 @@ var luaniverseSafelist = [
6930
6909
 
6931
6910
  // src/tailwind.preset.js
6932
6911
  var luaniversePreset = {
6933
- // Dark mode enabled using class strategy
6934
6912
  darkMode: "class",
6935
- // Safelist story-specific arbitrary values that are hard to standardize
6936
6913
  safelist: luaniverseSafelist,
6937
6914
  theme: {
6938
6915
  extend: {
@@ -6977,7 +6954,12 @@ var luaniversePreset = {
6977
6954
  active: "hsl(var(--destructive-active, 351 100% 37%))"
6978
6955
  // Fallback to #BF001C
6979
6956
  },
6980
- // Brand neutral colors
6957
+ info: {
6958
+ DEFAULT: "hsl(var(--info, 217 91% 60%))",
6959
+ // Fallback to blue-500
6960
+ foreground: "hsl(var(--info-foreground, 222 47% 11%))"
6961
+ // Fallback to dark
6962
+ },
6981
6963
  black: {
6982
6964
  DEFAULT: "#000000",
6983
6965
  hover: "#333333"
@@ -7024,19 +7006,15 @@ var luaniversePreset = {
7024
7006
  sm: "calc(var(--radius, 0.5rem) - 4px)"
7025
7007
  // Fallback to 4px
7026
7008
  },
7027
- // Custom spacing for component consistency
7028
7009
  spacing: {
7029
7010
  0: "0px",
7030
7011
  // 0 spacing
7031
7012
  1: "1px",
7032
7013
  1.5: "6px"
7033
- // IconButton small padding, Button gap
7034
7014
  },
7035
7015
  gap: {
7036
7016
  1.5: "6px"
7037
- // Button icon-text gap
7038
7017
  },
7039
- // Custom sizes for IconButton components
7040
7018
  size: {
7041
7019
  7: "28px",
7042
7020
  // IconButton small