@nextui-org/theme 0.0.0-dev-v2-20230420134926 → 0.0.0-dev-v2-20230423211529

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.
Files changed (80) hide show
  1. package/dist/chunk-3B4SYPW2.mjs +18 -0
  2. package/dist/{chunk-ANRX4UF2.mjs → chunk-4XSCIGTZ.mjs} +1 -1
  3. package/dist/{chunk-XQ3KK6F3.mjs → chunk-7EKGN7JP.mjs} +6 -6
  4. package/dist/{chunk-DOBGL5T3.mjs → chunk-BLEVU2FW.mjs} +1 -1
  5. package/dist/{chunk-HZLJ4FYR.mjs → chunk-FDBBFTXB.mjs} +1 -1
  6. package/dist/{chunk-FGWYWKMA.mjs → chunk-FJNSTLAL.mjs} +21 -21
  7. package/dist/{chunk-MZ2ZBGLR.mjs → chunk-JWVJZEAT.mjs} +1 -1
  8. package/dist/{chunk-5Z3NCB7W.mjs → chunk-LCSLO6UV.mjs} +1 -1
  9. package/dist/{chunk-2QIDY5NZ.mjs → chunk-MW7UVOSP.mjs} +2 -2
  10. package/dist/{chunk-OS73LTIZ.mjs → chunk-NCFXYR7C.mjs} +6 -6
  11. package/dist/{chunk-QRMWQXOX.mjs → chunk-NQJBJXX3.mjs} +4 -4
  12. package/dist/{chunk-SN6PW6NR.mjs → chunk-OZPCO5UB.mjs} +7 -7
  13. package/dist/{chunk-Y63UYKP7.mjs → chunk-R47OQZR5.mjs} +2 -1
  14. package/dist/{chunk-LGGZKBOO.mjs → chunk-RO3WUCFF.mjs} +21 -21
  15. package/dist/chunk-TILCNEZM.mjs +212 -0
  16. package/dist/{chunk-FZQRP6V7.mjs → chunk-TYA6TT57.mjs} +9 -9
  17. package/dist/{chunk-64MHH33S.mjs → chunk-VS5PMCQU.mjs} +27 -8
  18. package/dist/{chunk-7GYSEREC.mjs → chunk-VZVHC65R.mjs} +1 -1
  19. package/dist/{chunk-B5S7HT6N.mjs → chunk-WFCALVUC.mjs} +1 -1
  20. package/dist/{chunk-CO6ANWRA.mjs → chunk-XUL76UJD.mjs} +1 -1
  21. package/dist/{chunk-KVW35URF.mjs → chunk-Z6VEZVD6.mjs} +14 -14
  22. package/dist/colors/index.js +21 -21
  23. package/dist/colors/index.mjs +2 -2
  24. package/dist/colors/semantic.js +21 -21
  25. package/dist/colors/semantic.mjs +1 -1
  26. package/dist/colors/types.d.ts +1 -1
  27. package/dist/colors.js +21 -21
  28. package/dist/colors.mjs +2 -2
  29. package/dist/components/avatar.js +21 -21
  30. package/dist/components/avatar.mjs +2 -2
  31. package/dist/components/badge.js +21 -21
  32. package/dist/components/badge.mjs +2 -2
  33. package/dist/components/button.js +22 -21
  34. package/dist/components/button.mjs +2 -2
  35. package/dist/components/checkbox.js +6 -6
  36. package/dist/components/checkbox.mjs +1 -1
  37. package/dist/components/chip.js +24 -24
  38. package/dist/components/chip.mjs +2 -2
  39. package/dist/components/code.js +21 -21
  40. package/dist/components/code.mjs +2 -2
  41. package/dist/components/dropdown-item.js +14 -14
  42. package/dist/components/dropdown-item.mjs +1 -1
  43. package/dist/components/index.d.ts +2 -0
  44. package/dist/components/index.js +324 -76
  45. package/dist/components/index.mjs +55 -47
  46. package/dist/components/link.mjs +1 -1
  47. package/dist/components/modal.d.ts +1 -1
  48. package/dist/components/navbar.js +27 -8
  49. package/dist/components/navbar.mjs +1 -1
  50. package/dist/components/pagination.js +29 -29
  51. package/dist/components/pagination.mjs +2 -2
  52. package/dist/components/popover.js +21 -21
  53. package/dist/components/popover.mjs +2 -2
  54. package/dist/components/radio.js +7 -7
  55. package/dist/components/radio.mjs +1 -1
  56. package/dist/components/snippet.js +21 -21
  57. package/dist/components/snippet.mjs +2 -2
  58. package/dist/components/spacer.d.ts +27 -0
  59. package/dist/components/spacer.js +42 -0
  60. package/dist/components/spacer.mjs +6 -0
  61. package/dist/components/spinner.js +1 -1
  62. package/dist/components/spinner.mjs +1 -1
  63. package/dist/components/table.d.ts +277 -0
  64. package/dist/components/table.js +236 -0
  65. package/dist/components/table.mjs +6 -0
  66. package/dist/components/toggle.js +6 -6
  67. package/dist/components/toggle.mjs +1 -1
  68. package/dist/components/user.js +2 -2
  69. package/dist/components/user.mjs +1 -1
  70. package/dist/index.d.ts +5 -2
  71. package/dist/index.js +349 -101
  72. package/dist/index.mjs +58 -50
  73. package/dist/plugin.js +21 -21
  74. package/dist/plugin.mjs +3 -3
  75. package/dist/utils/index.js +21 -21
  76. package/dist/utils/index.mjs +1 -1
  77. package/dist/utils/variants.js +21 -21
  78. package/dist/utils/variants.mjs +1 -1
  79. package/package.json +2 -2
  80. /package/dist/{chunk-NP4SOC4S.mjs → chunk-RH7YHIQY.mjs} +0 -0
@@ -49,7 +49,9 @@ __export(components_exports, {
49
49
  radio: () => radio,
50
50
  radioGroup: () => radioGroup,
51
51
  snippet: () => snippet,
52
+ spacer: () => spacer,
52
53
  spinner: () => spinner,
54
+ table: () => table,
53
55
  toggle: () => toggle,
54
56
  user: () => user
55
57
  });
@@ -86,21 +88,21 @@ var translateCenterClasses = [
86
88
 
87
89
  // src/utils/variants.ts
88
90
  var solid = {
89
- neutral: "bg-neutral text-neutral-contrastText",
90
- primary: "bg-primary text-primary-contrastText",
91
- secondary: "bg-secondary text-secondary-contrastText",
92
- success: "bg-success text-success-contrastText",
93
- warning: "bg-warning text-warning-contrastText",
94
- danger: "bg-danger text-danger-contrastText",
91
+ neutral: "bg-neutral text-neutral-foreground",
92
+ primary: "bg-primary text-primary-foreground",
93
+ secondary: "bg-secondary text-secondary-foreground",
94
+ success: "bg-success text-success-foreground",
95
+ warning: "bg-warning text-warning-foreground",
96
+ danger: "bg-danger text-danger-foreground",
95
97
  foreground: "bg-foreground text-background"
96
98
  };
97
99
  var shadow = {
98
- neutral: "shadow-lg shadow-neutral/50 bg-neutral text-neutral-contrastText",
99
- primary: "shadow-lg shadow-primary/40 bg-primary text-primary-contrastText",
100
- secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-contrastText",
101
- success: "shadow-lg shadow-success/40 bg-success text-success-contrastText",
102
- warning: "shadow-lg shadow-warning/40 bg-warning text-warning-contrastText",
103
- danger: "shadow-lg shadow-danger/40 bg-danger text-danger-contrastText",
100
+ neutral: "shadow-lg shadow-neutral/50 bg-neutral text-neutral-foreground",
101
+ primary: "shadow-lg shadow-primary/40 bg-primary text-primary-foreground",
102
+ secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",
103
+ success: "shadow-lg shadow-success/40 bg-success text-success-foreground",
104
+ warning: "shadow-lg shadow-warning/40 bg-warning text-warning-foreground",
105
+ danger: "shadow-lg shadow-danger/40 bg-danger text-danger-foreground",
104
106
  foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
105
107
  };
106
108
  var bordered = {
@@ -113,7 +115,7 @@ var bordered = {
113
115
  foreground: "bg-transparent border-foreground text-foreground"
114
116
  };
115
117
  var flat = {
116
- neutral: "bg-neutral-100 text-neutral-contrastText",
118
+ neutral: "bg-neutral-100 text-neutral-foreground",
117
119
  primary: "bg-primary-50 text-primary",
118
120
  secondary: "bg-secondary-100 text-secondary",
119
121
  success: "bg-success-50 text-success",
@@ -122,7 +124,7 @@ var flat = {
122
124
  foreground: "bg-foreground/10 text-foreground"
123
125
  };
124
126
  var faded = {
125
- neutral: "border-neutral bg-neutral-100 text-neutral-contrastText",
127
+ neutral: "border-neutral bg-neutral-100 text-neutral-foreground",
126
128
  primary: "border-neutral bg-neutral-100 text-primary",
127
129
  secondary: "border-neutral bg-neutral-100 text-secondary",
128
130
  success: "border-neutral bg-neutral-100 text-success",
@@ -131,7 +133,7 @@ var faded = {
131
133
  foreground: "border-neutral bg-neutral-100 text-foreground"
132
134
  };
133
135
  var light = {
134
- neutral: "bg-transparent text-neutral-contrastText",
136
+ neutral: "bg-transparent text-neutral-foreground",
135
137
  primary: "bg-transparent text-primary",
136
138
  secondary: "bg-transparent text-secondary",
137
139
  success: "bg-transparent text-success",
@@ -140,12 +142,12 @@ var light = {
140
142
  foreground: "bg-transparent text-foreground"
141
143
  };
142
144
  var ghost = {
143
- neutral: "border-neutral text-neutral-contrastText hover:!bg-neutral",
144
- primary: "border-primary text-primary hover:!text-primary-contrastText hover:!bg-primary",
145
- secondary: "border-secondary text-secondary hover:text-secondary-contrastText hover:!bg-secondary",
146
- success: "border-success text-success hover:!text-success-contrastText hover:!bg-success",
147
- warning: "border-warning text-warning hover:!text-warning-contrastText hover:!bg-warning",
148
- danger: "border-danger text-danger hover:!text-danger-contrastText hover:!bg-danger",
145
+ neutral: "border-neutral text-neutral-foreground hover:!bg-neutral",
146
+ primary: "border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",
147
+ secondary: "border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",
148
+ success: "border-success text-success hover:!text-success-foreground hover:!bg-success",
149
+ warning: "border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",
150
+ danger: "border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",
149
151
  foreground: "border-foreground text-foreground hover:!bg-foreground"
150
152
  };
151
153
  var colorVariants = {
@@ -630,8 +632,8 @@ var user = (0, import_tailwind_variants5.tv)({
630
632
  "data-[focus-visible=true]:dark:ring-offset-background-dark"
631
633
  ],
632
634
  wrapper: "inline-flex flex-col items-start",
633
- name: "text-sm text-foreground dark:text-foreground-dark",
634
- description: "text-xs text-neutral-500"
635
+ name: "text-sm text-inherit",
636
+ description: "text-xs text-neutral-400"
635
637
  }
636
638
  });
637
639
 
@@ -644,6 +646,7 @@ var button = (0, import_tailwind_variants6.tv)({
644
646
  "inline-flex",
645
647
  "items-center",
646
648
  "justify-center",
649
+ "max-w-fit",
647
650
  "box-border",
648
651
  "appearance-none",
649
652
  "outline-none",
@@ -1007,7 +1010,7 @@ var drip = (0, import_tailwind_variants8.tv)({
1007
1010
  var import_tailwind_variants9 = require("tailwind-variants");
1008
1011
  var spinner = (0, import_tailwind_variants9.tv)({
1009
1012
  slots: {
1010
- base: "flex flex-col items-center justify-center relative",
1013
+ base: "inline-flex flex-col items-center justify-center relative",
1011
1014
  circle1: [
1012
1015
  "absolute",
1013
1016
  "w-full",
@@ -1717,10 +1720,10 @@ var chip = (0, import_tailwind_variants13.tv)({
1717
1720
  variant: {
1718
1721
  solid: {},
1719
1722
  bordered: {
1720
- base: "border-1.5 !bg-transparent"
1723
+ base: "border-1.5 bg-transparent"
1721
1724
  },
1722
1725
  light: {
1723
- base: "!bg-transparent"
1726
+ base: "bg-transparent"
1724
1727
  },
1725
1728
  flat: {},
1726
1729
  faded: {
@@ -1728,7 +1731,7 @@ var chip = (0, import_tailwind_variants13.tv)({
1728
1731
  },
1729
1732
  shadow: {},
1730
1733
  dot: {
1731
- base: "border-1.5 border-neutral text-foreground !bg-transparent"
1734
+ base: "border-1.5 border-neutral text-foreground bg-transparent"
1732
1735
  }
1733
1736
  },
1734
1737
  color: {
@@ -2567,22 +2570,22 @@ var checkbox = (0, import_tailwind_variants15.tv)({
2567
2570
  variants: {
2568
2571
  color: {
2569
2572
  neutral: {
2570
- wrapper: "after:bg-neutral after:text-neutral-contrastText text-neutral-contrastText"
2573
+ wrapper: "after:bg-neutral after:text-neutral-foreground text-neutral-foreground"
2571
2574
  },
2572
2575
  primary: {
2573
- wrapper: "after:bg-primary after:text-primary-contrastText text-primary-contrastText"
2576
+ wrapper: "after:bg-primary after:text-primary-foreground text-primary-foreground"
2574
2577
  },
2575
2578
  secondary: {
2576
- wrapper: "after:bg-secondary after:text-secondary-contrastText text-secondary-contrastText"
2579
+ wrapper: "after:bg-secondary after:text-secondary-foreground text-secondary-foreground"
2577
2580
  },
2578
2581
  success: {
2579
- wrapper: "after:bg-success after:text-success-contrastText text-success-contrastText"
2582
+ wrapper: "after:bg-success after:text-success-foreground text-success-foreground"
2580
2583
  },
2581
2584
  warning: {
2582
- wrapper: "after:bg-warning after:text-warning-contrastText text-warning-contrastText"
2585
+ wrapper: "after:bg-warning after:text-warning-foreground text-warning-foreground"
2583
2586
  },
2584
2587
  danger: {
2585
- wrapper: "after:bg-danger after:text-danger-contrastText text-danger-contrastText"
2588
+ wrapper: "after:bg-danger after:text-danger-foreground text-danger-foreground"
2586
2589
  }
2587
2590
  },
2588
2591
  size: {
@@ -2730,27 +2733,27 @@ var radio = (0, import_tailwind_variants17.tv)({
2730
2733
  variants: {
2731
2734
  color: {
2732
2735
  neutral: {
2733
- control: "bg-neutral-500 text-neutral-contrastText",
2736
+ control: "bg-neutral-500 text-neutral-foreground",
2734
2737
  wrapper: "group-data-[checked=true]:border-neutral-500"
2735
2738
  },
2736
2739
  primary: {
2737
- control: "bg-primary text-primary-contrastText",
2740
+ control: "bg-primary text-primary-foreground",
2738
2741
  wrapper: "group-data-[checked=true]:border-primary"
2739
2742
  },
2740
2743
  secondary: {
2741
- control: "bg-secondary text-secondary-contrastText",
2744
+ control: "bg-secondary text-secondary-foreground",
2742
2745
  wrapper: "group-data-[checked=true]:border-secondary"
2743
2746
  },
2744
2747
  success: {
2745
- control: "bg-success text-success-contrastText",
2748
+ control: "bg-success text-success-foreground",
2746
2749
  wrapper: "group-data-[checked=true]:border-success"
2747
2750
  },
2748
2751
  warning: {
2749
- control: "bg-warning text-warning-contrastText",
2752
+ control: "bg-warning text-warning-foreground",
2750
2753
  wrapper: "group-data-[checked=true]:border-warning"
2751
2754
  },
2752
2755
  danger: {
2753
- control: "bg-danger text-danger-contrastText",
2756
+ control: "bg-danger text-danger-foreground",
2754
2757
  wrapper: "group-data-[checked=true]:border-danger"
2755
2758
  }
2756
2759
  },
@@ -2828,7 +2831,7 @@ var radio = (0, import_tailwind_variants17.tv)({
2828
2831
  },
2829
2832
  isInvalid: {
2830
2833
  true: {
2831
- control: "bg-danger text-danger-contrastText",
2834
+ control: "bg-danger text-danger-foreground",
2832
2835
  wrapper: "border-danger data-[checked=true]:border-danger",
2833
2836
  label: "text-danger",
2834
2837
  description: "text-danger-300"
@@ -3038,7 +3041,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3038
3041
  item: [
3039
3042
  "data-[active=true]:bg-neutral-400",
3040
3043
  "data-[active=true]:border-neutral-400",
3041
- "data-[active=true]:text-neutral-contrastText"
3044
+ "data-[active=true]:text-neutral-foreground"
3042
3045
  ]
3043
3046
  }
3044
3047
  },
@@ -3049,7 +3052,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3049
3052
  item: [
3050
3053
  "data-[active=true]:bg-primary",
3051
3054
  "data-[active=true]:border-primary",
3052
- "data-[active=true]:text-primary-contrastText"
3055
+ "data-[active=true]:text-primary-foreground"
3053
3056
  ]
3054
3057
  }
3055
3058
  },
@@ -3060,7 +3063,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3060
3063
  item: [
3061
3064
  "data-[active=true]:bg-secondary",
3062
3065
  "data-[active=true]:border-secondary",
3063
- "data-[active=true]:text-secondary-contrastText"
3066
+ "data-[active=true]:text-secondary-foreground"
3064
3067
  ]
3065
3068
  }
3066
3069
  },
@@ -3071,7 +3074,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3071
3074
  item: [
3072
3075
  "data-[active=true]:bg-success",
3073
3076
  "data-[active=true]:border-success",
3074
- "data-[active=true]:text-success-contrastText"
3077
+ "data-[active=true]:text-success-foreground"
3075
3078
  ]
3076
3079
  }
3077
3080
  },
@@ -3082,7 +3085,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3082
3085
  item: [
3083
3086
  "data-[active=true]:bg-warning",
3084
3087
  "data-[active=true]:border-warning",
3085
- "data-[active=true]:text-warning-contrastText"
3088
+ "data-[active=true]:text-warning-foreground"
3086
3089
  ]
3087
3090
  }
3088
3091
  },
@@ -3093,7 +3096,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3093
3096
  item: [
3094
3097
  "data-[active=true]:bg-danger",
3095
3098
  "data-[active=true]:border-danger",
3096
- "data-[active=true]:text-danger-contrastText"
3099
+ "data-[active=true]:text-danger-foreground"
3097
3100
  ]
3098
3101
  }
3099
3102
  },
@@ -3157,14 +3160,14 @@ var pagination = (0, import_tailwind_variants19.tv)({
3157
3160
  "outline-none",
3158
3161
  "items-center",
3159
3162
  "justify-center",
3160
- "text-neutral-contrastText",
3163
+ "text-neutral-foreground",
3161
3164
  "data-[focus-visible=true]:outline-none",
3162
3165
  "data-[focus-visible=true]:ring-2",
3163
3166
  "data-[focus-visible=true]:ring-primary",
3164
3167
  "data-[focus-visible=true]:ring-offset-2",
3165
3168
  "data-[focus-visible=true]:ring-offset-background",
3166
3169
  "data-[focus-visible=true]:dark:ring-offset-background-dark",
3167
- "data-[disabled=true]:opacity-50",
3170
+ "data-[disabled=true]:text-neutral-300",
3168
3171
  "data-[disabled=true]:pointer-events-none"
3169
3172
  ]
3170
3173
  },
@@ -3288,37 +3291,37 @@ var toggle = (0, import_tailwind_variants20.tv)({
3288
3291
  neutral: {
3289
3292
  wrapper: [
3290
3293
  "group-data-[checked=true]:bg-neutral-400",
3291
- "group-data-[checked=true]:text-neutral-contrastText"
3294
+ "group-data-[checked=true]:text-neutral-foreground"
3292
3295
  ]
3293
3296
  },
3294
3297
  primary: {
3295
3298
  wrapper: [
3296
3299
  "group-data-[checked=true]:bg-primary",
3297
- "group-data-[checked=true]:text-primary-contrastText"
3300
+ "group-data-[checked=true]:text-primary-foreground"
3298
3301
  ]
3299
3302
  },
3300
3303
  secondary: {
3301
3304
  wrapper: [
3302
3305
  "group-data-[checked=true]:bg-secondary",
3303
- "group-data-[checked=true]:text-secondary-contrastText"
3306
+ "group-data-[checked=true]:text-secondary-foreground"
3304
3307
  ]
3305
3308
  },
3306
3309
  success: {
3307
3310
  wrapper: [
3308
3311
  "group-data-[checked=true]:bg-success",
3309
- "group-data-[checked=true]:text-success-contrastText"
3312
+ "group-data-[checked=true]:text-success-foreground"
3310
3313
  ]
3311
3314
  },
3312
3315
  warning: {
3313
3316
  wrapper: [
3314
3317
  "group-data-[checked=true]:bg-warning",
3315
- "group-data-[checked=true]:text-warning-contrastText"
3318
+ "group-data-[checked=true]:text-warning-foreground"
3316
3319
  ]
3317
3320
  },
3318
3321
  danger: {
3319
3322
  wrapper: [
3320
3323
  "group-data-[checked=true]:bg-danger",
3321
- "data-[checked=true]:text-danger-contrastText"
3324
+ "data-[checked=true]:text-danger-foreground"
3322
3325
  ]
3323
3326
  }
3324
3327
  },
@@ -4669,84 +4672,84 @@ var dropdownItem = (0, import_tailwind_variants27.tv)({
4669
4672
  variant: "solid",
4670
4673
  color: "neutral",
4671
4674
  class: {
4672
- base: "data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-contrastText"
4675
+ base: "data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-foreground"
4673
4676
  }
4674
4677
  },
4675
4678
  {
4676
4679
  variant: "solid",
4677
4680
  color: "primary",
4678
4681
  class: {
4679
- base: "data-[hover=true]:bg-primary data-[hover=true]:text-primary-contrastText"
4682
+ base: "data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"
4680
4683
  }
4681
4684
  },
4682
4685
  {
4683
4686
  variant: "solid",
4684
4687
  color: "secondary",
4685
4688
  class: {
4686
- base: "data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-contrastText"
4689
+ base: "data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"
4687
4690
  }
4688
4691
  },
4689
4692
  {
4690
4693
  variant: "solid",
4691
4694
  color: "success",
4692
4695
  class: {
4693
- base: "data-[hover=true]:bg-success data-[hover=true]:text-success-contrastText"
4696
+ base: "data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"
4694
4697
  }
4695
4698
  },
4696
4699
  {
4697
4700
  variant: "solid",
4698
4701
  color: "warning",
4699
4702
  class: {
4700
- base: "data-[hover=true]:bg-warning data-[hover=true]:text-warning-contrastText"
4703
+ base: "data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"
4701
4704
  }
4702
4705
  },
4703
4706
  {
4704
4707
  variant: "solid",
4705
4708
  color: "danger",
4706
4709
  class: {
4707
- base: "data-[hover=true]:bg-danger data-[hover=true]:text-danger-contrastText"
4710
+ base: "data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"
4708
4711
  }
4709
4712
  },
4710
4713
  {
4711
4714
  variant: "shadow",
4712
4715
  color: "neutral",
4713
4716
  class: {
4714
- base: "data-[hover=true]:shadow-neutral/50 data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-contrastText"
4717
+ base: "data-[hover=true]:shadow-neutral/50 data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-foreground"
4715
4718
  }
4716
4719
  },
4717
4720
  {
4718
4721
  variant: "shadow",
4719
4722
  color: "primary",
4720
4723
  class: {
4721
- base: "data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-contrastText"
4724
+ base: "data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"
4722
4725
  }
4723
4726
  },
4724
4727
  {
4725
4728
  variant: "shadow",
4726
4729
  color: "secondary",
4727
4730
  class: {
4728
- base: "data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-contrastText"
4731
+ base: "data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"
4729
4732
  }
4730
4733
  },
4731
4734
  {
4732
4735
  variant: "shadow",
4733
4736
  color: "success",
4734
4737
  class: {
4735
- base: "data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-contrastText"
4738
+ base: "data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"
4736
4739
  }
4737
4740
  },
4738
4741
  {
4739
4742
  variant: "shadow",
4740
4743
  color: "warning",
4741
4744
  class: {
4742
- base: "data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-contrastText"
4745
+ base: "data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"
4743
4746
  }
4744
4747
  },
4745
4748
  {
4746
4749
  variant: "shadow",
4747
4750
  color: "danger",
4748
4751
  class: {
4749
- base: "data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-contrastText"
4752
+ base: "data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"
4750
4753
  }
4751
4754
  },
4752
4755
  {
@@ -4795,7 +4798,7 @@ var dropdownItem = (0, import_tailwind_variants27.tv)({
4795
4798
  variant: "flat",
4796
4799
  color: "neutral",
4797
4800
  class: {
4798
- base: "data-[hover=true]:bg-neutral-100 data-[hover=true]:text-neutral-contrastText"
4801
+ base: "data-[hover=true]:bg-neutral-100 data-[hover=true]:text-neutral-foreground"
4799
4802
  }
4800
4803
  },
4801
4804
  {
@@ -4837,7 +4840,7 @@ var dropdownItem = (0, import_tailwind_variants27.tv)({
4837
4840
  variant: "faded",
4838
4841
  color: "neutral",
4839
4842
  class: {
4840
- base: "data-[hover=true]:text-neutral-contrastText"
4843
+ base: "data-[hover=true]:text-neutral-foreground"
4841
4844
  }
4842
4845
  },
4843
4846
  {
@@ -5268,6 +5271,7 @@ var navbar = (0, import_tailwind_variants32.tv)({
5268
5271
  wrapper: [
5269
5272
  "flex",
5270
5273
  "flex-row",
5274
+ "relative",
5271
5275
  "flex-nowrap",
5272
5276
  "items-center",
5273
5277
  "justify-between",
@@ -5399,11 +5403,7 @@ var navbar = (0, import_tailwind_variants32.tv)({
5399
5403
  },
5400
5404
  hideOnScroll: {
5401
5405
  true: {
5402
- base: [
5403
- "sticky",
5404
- "top-0",
5405
- "inset-x-0"
5406
- ]
5406
+ base: ["sticky", "top-0", "inset-x-0"]
5407
5407
  }
5408
5408
  },
5409
5409
  isBordered: {
@@ -5432,19 +5432,265 @@ var navbar = (0, import_tailwind_variants32.tv)({
5432
5432
  isBlurred: true,
5433
5433
  position: ["static", "sticky"],
5434
5434
  class: {
5435
- base: "backdrop-blur-xl backdrop-saturate-200 bg-background/50 data-[menu-open=true]:bg-background"
5435
+ base: [
5436
+ "before:content-['']",
5437
+ "before:block",
5438
+ "before:z-[-1]",
5439
+ "before:absolute",
5440
+ "before:-top-px",
5441
+ "before:inset-0",
5442
+ "before:backdrop-blur",
5443
+ "before:backdrop-saturate-150",
5444
+ "before:bg-background/50",
5445
+ "data-[menu-open=true]:before:bg-background"
5446
+ ]
5436
5447
  }
5437
5448
  },
5438
5449
  {
5439
5450
  isBlurred: true,
5440
5451
  position: "floating",
5441
5452
  class: {
5442
- base: "bg-gradient-to-b from-background to-background/50",
5443
- wrapper: "backdrop-blur-xl backdrop-saturate-200 bg-background/50 data-[menu-open=true]:bg-background"
5453
+ base: "bg-gradient-to-b from-background to-transparent",
5454
+ wrapper: [
5455
+ "before:content-['']",
5456
+ "before:block",
5457
+ "before:z-[-1]",
5458
+ "before:absolute",
5459
+ "before:-top-px",
5460
+ "before:inset-0",
5461
+ "before:backdrop-blur",
5462
+ "before:backdrop-saturate-150",
5463
+ "before:bg-background/50",
5464
+ "data-[menu-open=true]:before:bg-background"
5465
+ ]
5444
5466
  }
5445
5467
  }
5446
5468
  ]
5447
5469
  });
5470
+
5471
+ // src/components/table.ts
5472
+ var import_tailwind_variants33 = require("tailwind-variants");
5473
+ var focusRing = [
5474
+ "data-[focus-visible=true]:outline-none",
5475
+ "data-[focus-visible=true]:ring-2",
5476
+ "data-[focus-visible=true]:ring-primary",
5477
+ "data-[focus-visible=true]:ring-offset-2",
5478
+ "data-[focus-visible=true]:ring-offset-background",
5479
+ "data-[focus-visible=true]:dark:ring-offset-background-dark"
5480
+ ];
5481
+ var table = (0, import_tailwind_variants33.tv)({
5482
+ slots: {
5483
+ base: [
5484
+ "p-4",
5485
+ "flex",
5486
+ "flex-col",
5487
+ "relative",
5488
+ "justify-between",
5489
+ "gap-4",
5490
+ "border",
5491
+ "border-neutral-100",
5492
+ "overflow-auto"
5493
+ ],
5494
+ table: "min-w-full h-auto",
5495
+ thead: "[&>tr]:first:rounded-lg",
5496
+ tbody: "",
5497
+ tr: ["group", "outline-none", ...focusRing],
5498
+ th: [
5499
+ "group",
5500
+ "px-3",
5501
+ "h-10",
5502
+ "text-left",
5503
+ "align-middle",
5504
+ "bg-neutral-100",
5505
+ "text-neutral-500",
5506
+ "text-xs",
5507
+ "font-semibold",
5508
+ "first:rounded-l-lg",
5509
+ "last:rounded-r-lg",
5510
+ "outline-none",
5511
+ "data-[sortable=true]:transition-colors",
5512
+ "data-[sortable=true]:cursor-pointer",
5513
+ "data-[hover=true]:text-neutral-400",
5514
+ ...focusRing
5515
+ ],
5516
+ td: [
5517
+ "py-2",
5518
+ "px-3",
5519
+ "relative",
5520
+ "align-middle",
5521
+ "whitespace-normal",
5522
+ "text-base",
5523
+ "font-normal",
5524
+ "outline-none",
5525
+ ...focusRing,
5526
+ "before:content-['']",
5527
+ "before:absolute",
5528
+ "before:-z-[1]",
5529
+ "before:inset-0",
5530
+ "before:opacity-0",
5531
+ "data-[selected=true]:before:opacity-100",
5532
+ "group-data-[disabled=true]:text-neutral-300"
5533
+ ],
5534
+ tfoot: "",
5535
+ sortIcon: [
5536
+ "ml-2",
5537
+ "mb-px",
5538
+ "opacity-0",
5539
+ "text-inherit",
5540
+ "inline-block",
5541
+ "transition-transform-opacity",
5542
+ "data-[visible=true]:opacity-100",
5543
+ "group-data-[hover=true]:opacity-100",
5544
+ "data-[direction=ascending]:rotate-180"
5545
+ ],
5546
+ emptyWrapper: "text-neutral-400 align-middle text-center h-40",
5547
+ loadingWrapper: "absolute inset-0 flex items-center justify-center"
5548
+ },
5549
+ variants: {
5550
+ color: {
5551
+ neutral: {
5552
+ td: "before:bg-neutral-200 dark:before:bg-neutral-100 data-[selected=true]:text-neutral-foreground"
5553
+ },
5554
+ primary: {
5555
+ td: "before:bg-primary-50 data-[selected=true]:text-primary"
5556
+ },
5557
+ secondary: {
5558
+ td: "before:bg-secondary-100 data-[selected=true]:text-secondary"
5559
+ },
5560
+ success: {
5561
+ td: "before:bg-success-50 data-[selected=true]:text-success"
5562
+ },
5563
+ warning: {
5564
+ td: "before:bg-warning-50 data-[selected=true]:text-warning"
5565
+ },
5566
+ danger: {
5567
+ td: "before:bg-danger-50 data-[selected=true]:text-danger"
5568
+ }
5569
+ },
5570
+ layout: {
5571
+ auto: {
5572
+ table: "table-auto"
5573
+ },
5574
+ fixed: {
5575
+ table: "table-fixed"
5576
+ }
5577
+ },
5578
+ radius: {
5579
+ none: {
5580
+ base: "rounded-none"
5581
+ },
5582
+ base: {
5583
+ base: "rounded"
5584
+ },
5585
+ sm: {
5586
+ base: "rounded-sm"
5587
+ },
5588
+ md: {
5589
+ base: "rounded-md"
5590
+ },
5591
+ lg: {
5592
+ base: "rounded-lg"
5593
+ },
5594
+ xl: {
5595
+ base: "rounded-xl"
5596
+ },
5597
+ "2xl": {
5598
+ base: "rounded-2xl"
5599
+ }
5600
+ },
5601
+ shadow: {
5602
+ none: {
5603
+ base: "shadow-none"
5604
+ },
5605
+ sm: {
5606
+ base: "shadow-sm"
5607
+ },
5608
+ md: {
5609
+ base: "shadow-md"
5610
+ },
5611
+ lg: {
5612
+ base: "shadow-lg"
5613
+ },
5614
+ xl: {
5615
+ base: "shadow-xl"
5616
+ },
5617
+ "2xl": {
5618
+ base: "shadow-2xl"
5619
+ },
5620
+ inner: {
5621
+ base: "shadow-inner"
5622
+ }
5623
+ },
5624
+ hideHeader: {
5625
+ true: {
5626
+ thead: "hidden"
5627
+ }
5628
+ },
5629
+ isStriped: {
5630
+ true: {
5631
+ td: [
5632
+ "group-data-[odd=true]:before:bg-neutral-100",
5633
+ "group-data-[odd=true]:before:opacity-100"
5634
+ ]
5635
+ }
5636
+ },
5637
+ isHeaderSticky: {
5638
+ true: {
5639
+ thead: "sticky top-0 z-10 [&>tr]:first:shadow"
5640
+ }
5641
+ },
5642
+ isSelectable: {
5643
+ true: {
5644
+ tr: "cursor-default",
5645
+ td: ["group-data-[hover=true]:before:opacity-70"]
5646
+ }
5647
+ },
5648
+ isMultiSelectable: {
5649
+ true: {
5650
+ td: [
5651
+ "group-data-[first=true]:first:before:rounded-tl-lg",
5652
+ "group-data-[first=true]:last:before:rounded-tr-lg",
5653
+ "group-data-[middle=true]:before:rounded-none",
5654
+ "group-data-[last=true]:first:before:rounded-bl-lg",
5655
+ "group-data-[last=true]:last:before:rounded-br-lg"
5656
+ ]
5657
+ },
5658
+ false: {
5659
+ td: ["first:before:rounded-l-lg", "last:before:rounded-r-lg"]
5660
+ }
5661
+ },
5662
+ fullWidth: {
5663
+ true: {
5664
+ base: "w-full",
5665
+ table: "w-full"
5666
+ }
5667
+ }
5668
+ },
5669
+ defaultVariants: {
5670
+ layout: "auto",
5671
+ shadow: "lg",
5672
+ radius: "xl",
5673
+ color: "neutral",
5674
+ hideHeader: false,
5675
+ isStriped: false,
5676
+ fullWidth: true
5677
+ }
5678
+ });
5679
+
5680
+ // src/components/spacer.ts
5681
+ var import_tailwind_variants34 = require("tailwind-variants");
5682
+ var spacer = (0, import_tailwind_variants34.tv)({
5683
+ base: "w-px h-px inline-block",
5684
+ variants: {
5685
+ isInline: {
5686
+ true: "inline-block",
5687
+ false: "block"
5688
+ }
5689
+ },
5690
+ defaultVariants: {
5691
+ isInline: false
5692
+ }
5693
+ });
5448
5694
  // Annotate the CommonJS export names for ESM import in node:
5449
5695
  0 && (module.exports = {
5450
5696
  accordion,
@@ -5476,7 +5722,9 @@ var navbar = (0, import_tailwind_variants32.tv)({
5476
5722
  radio,
5477
5723
  radioGroup,
5478
5724
  snippet,
5725
+ spacer,
5479
5726
  spinner,
5727
+ table,
5480
5728
  toggle,
5481
5729
  user
5482
5730
  });