@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
package/dist/index.js CHANGED
@@ -65,10 +65,12 @@ __export(src_exports, {
65
65
  ringClasses: () => ringClasses,
66
66
  semanticColors: () => semanticColors,
67
67
  snippet: () => snippet,
68
+ spacer: () => spacer,
68
69
  spinner: () => spinner,
70
+ table: () => table,
69
71
  toggle: () => toggle,
70
72
  translateCenterClasses: () => translateCenterClasses,
71
- tv: () => import_tailwind_variants34.tv,
73
+ tv: () => import_tailwind_variants36.tv,
72
74
  user: () => user
73
75
  });
74
76
  module.exports = __toCommonJS(src_exports);
@@ -109,21 +111,21 @@ var absoluteFullClasses = ["absolute", "inset-0"];
109
111
 
110
112
  // src/utils/variants.ts
111
113
  var solid = {
112
- neutral: "bg-neutral text-neutral-contrastText",
113
- primary: "bg-primary text-primary-contrastText",
114
- secondary: "bg-secondary text-secondary-contrastText",
115
- success: "bg-success text-success-contrastText",
116
- warning: "bg-warning text-warning-contrastText",
117
- danger: "bg-danger text-danger-contrastText",
114
+ neutral: "bg-neutral text-neutral-foreground",
115
+ primary: "bg-primary text-primary-foreground",
116
+ secondary: "bg-secondary text-secondary-foreground",
117
+ success: "bg-success text-success-foreground",
118
+ warning: "bg-warning text-warning-foreground",
119
+ danger: "bg-danger text-danger-foreground",
118
120
  foreground: "bg-foreground text-background"
119
121
  };
120
122
  var shadow = {
121
- neutral: "shadow-lg shadow-neutral/50 bg-neutral text-neutral-contrastText",
122
- primary: "shadow-lg shadow-primary/40 bg-primary text-primary-contrastText",
123
- secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-contrastText",
124
- success: "shadow-lg shadow-success/40 bg-success text-success-contrastText",
125
- warning: "shadow-lg shadow-warning/40 bg-warning text-warning-contrastText",
126
- danger: "shadow-lg shadow-danger/40 bg-danger text-danger-contrastText",
123
+ neutral: "shadow-lg shadow-neutral/50 bg-neutral text-neutral-foreground",
124
+ primary: "shadow-lg shadow-primary/40 bg-primary text-primary-foreground",
125
+ secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",
126
+ success: "shadow-lg shadow-success/40 bg-success text-success-foreground",
127
+ warning: "shadow-lg shadow-warning/40 bg-warning text-warning-foreground",
128
+ danger: "shadow-lg shadow-danger/40 bg-danger text-danger-foreground",
127
129
  foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
128
130
  };
129
131
  var bordered = {
@@ -136,7 +138,7 @@ var bordered = {
136
138
  foreground: "bg-transparent border-foreground text-foreground"
137
139
  };
138
140
  var flat = {
139
- neutral: "bg-neutral-100 text-neutral-contrastText",
141
+ neutral: "bg-neutral-100 text-neutral-foreground",
140
142
  primary: "bg-primary-50 text-primary",
141
143
  secondary: "bg-secondary-100 text-secondary",
142
144
  success: "bg-success-50 text-success",
@@ -145,7 +147,7 @@ var flat = {
145
147
  foreground: "bg-foreground/10 text-foreground"
146
148
  };
147
149
  var faded = {
148
- neutral: "border-neutral bg-neutral-100 text-neutral-contrastText",
150
+ neutral: "border-neutral bg-neutral-100 text-neutral-foreground",
149
151
  primary: "border-neutral bg-neutral-100 text-primary",
150
152
  secondary: "border-neutral bg-neutral-100 text-secondary",
151
153
  success: "border-neutral bg-neutral-100 text-success",
@@ -154,7 +156,7 @@ var faded = {
154
156
  foreground: "border-neutral bg-neutral-100 text-foreground"
155
157
  };
156
158
  var light = {
157
- neutral: "bg-transparent text-neutral-contrastText",
159
+ neutral: "bg-transparent text-neutral-foreground",
158
160
  primary: "bg-transparent text-primary",
159
161
  secondary: "bg-transparent text-secondary",
160
162
  success: "bg-transparent text-success",
@@ -163,12 +165,12 @@ var light = {
163
165
  foreground: "bg-transparent text-foreground"
164
166
  };
165
167
  var ghost = {
166
- neutral: "border-neutral text-neutral-contrastText hover:!bg-neutral",
167
- primary: "border-primary text-primary hover:!text-primary-contrastText hover:!bg-primary",
168
- secondary: "border-secondary text-secondary hover:text-secondary-contrastText hover:!bg-secondary",
169
- success: "border-success text-success hover:!text-success-contrastText hover:!bg-success",
170
- warning: "border-warning text-warning hover:!text-warning-contrastText hover:!bg-warning",
171
- danger: "border-danger text-danger hover:!text-danger-contrastText hover:!bg-danger",
168
+ neutral: "border-neutral text-neutral-foreground hover:!bg-neutral",
169
+ primary: "border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",
170
+ secondary: "border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",
171
+ success: "border-success text-success hover:!text-success-foreground hover:!bg-success",
172
+ warning: "border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",
173
+ danger: "border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",
172
174
  foreground: "border-foreground text-foreground hover:!bg-foreground"
173
175
  };
174
176
  var colorVariants = {
@@ -653,8 +655,8 @@ var user = (0, import_tailwind_variants5.tv)({
653
655
  "data-[focus-visible=true]:dark:ring-offset-background-dark"
654
656
  ],
655
657
  wrapper: "inline-flex flex-col items-start",
656
- name: "text-sm text-foreground dark:text-foreground-dark",
657
- description: "text-xs text-neutral-500"
658
+ name: "text-sm text-inherit",
659
+ description: "text-xs text-neutral-400"
658
660
  }
659
661
  });
660
662
 
@@ -667,6 +669,7 @@ var button = (0, import_tailwind_variants6.tv)({
667
669
  "inline-flex",
668
670
  "items-center",
669
671
  "justify-center",
672
+ "max-w-fit",
670
673
  "box-border",
671
674
  "appearance-none",
672
675
  "outline-none",
@@ -1030,7 +1033,7 @@ var drip = (0, import_tailwind_variants8.tv)({
1030
1033
  var import_tailwind_variants9 = require("tailwind-variants");
1031
1034
  var spinner = (0, import_tailwind_variants9.tv)({
1032
1035
  slots: {
1033
- base: "flex flex-col items-center justify-center relative",
1036
+ base: "inline-flex flex-col items-center justify-center relative",
1034
1037
  circle1: [
1035
1038
  "absolute",
1036
1039
  "w-full",
@@ -1740,10 +1743,10 @@ var chip = (0, import_tailwind_variants13.tv)({
1740
1743
  variant: {
1741
1744
  solid: {},
1742
1745
  bordered: {
1743
- base: "border-1.5 !bg-transparent"
1746
+ base: "border-1.5 bg-transparent"
1744
1747
  },
1745
1748
  light: {
1746
- base: "!bg-transparent"
1749
+ base: "bg-transparent"
1747
1750
  },
1748
1751
  flat: {},
1749
1752
  faded: {
@@ -1751,7 +1754,7 @@ var chip = (0, import_tailwind_variants13.tv)({
1751
1754
  },
1752
1755
  shadow: {},
1753
1756
  dot: {
1754
- base: "border-1.5 border-neutral text-foreground !bg-transparent"
1757
+ base: "border-1.5 border-neutral text-foreground bg-transparent"
1755
1758
  }
1756
1759
  },
1757
1760
  color: {
@@ -2590,22 +2593,22 @@ var checkbox = (0, import_tailwind_variants15.tv)({
2590
2593
  variants: {
2591
2594
  color: {
2592
2595
  neutral: {
2593
- wrapper: "after:bg-neutral after:text-neutral-contrastText text-neutral-contrastText"
2596
+ wrapper: "after:bg-neutral after:text-neutral-foreground text-neutral-foreground"
2594
2597
  },
2595
2598
  primary: {
2596
- wrapper: "after:bg-primary after:text-primary-contrastText text-primary-contrastText"
2599
+ wrapper: "after:bg-primary after:text-primary-foreground text-primary-foreground"
2597
2600
  },
2598
2601
  secondary: {
2599
- wrapper: "after:bg-secondary after:text-secondary-contrastText text-secondary-contrastText"
2602
+ wrapper: "after:bg-secondary after:text-secondary-foreground text-secondary-foreground"
2600
2603
  },
2601
2604
  success: {
2602
- wrapper: "after:bg-success after:text-success-contrastText text-success-contrastText"
2605
+ wrapper: "after:bg-success after:text-success-foreground text-success-foreground"
2603
2606
  },
2604
2607
  warning: {
2605
- wrapper: "after:bg-warning after:text-warning-contrastText text-warning-contrastText"
2608
+ wrapper: "after:bg-warning after:text-warning-foreground text-warning-foreground"
2606
2609
  },
2607
2610
  danger: {
2608
- wrapper: "after:bg-danger after:text-danger-contrastText text-danger-contrastText"
2611
+ wrapper: "after:bg-danger after:text-danger-foreground text-danger-foreground"
2609
2612
  }
2610
2613
  },
2611
2614
  size: {
@@ -2753,27 +2756,27 @@ var radio = (0, import_tailwind_variants17.tv)({
2753
2756
  variants: {
2754
2757
  color: {
2755
2758
  neutral: {
2756
- control: "bg-neutral-500 text-neutral-contrastText",
2759
+ control: "bg-neutral-500 text-neutral-foreground",
2757
2760
  wrapper: "group-data-[checked=true]:border-neutral-500"
2758
2761
  },
2759
2762
  primary: {
2760
- control: "bg-primary text-primary-contrastText",
2763
+ control: "bg-primary text-primary-foreground",
2761
2764
  wrapper: "group-data-[checked=true]:border-primary"
2762
2765
  },
2763
2766
  secondary: {
2764
- control: "bg-secondary text-secondary-contrastText",
2767
+ control: "bg-secondary text-secondary-foreground",
2765
2768
  wrapper: "group-data-[checked=true]:border-secondary"
2766
2769
  },
2767
2770
  success: {
2768
- control: "bg-success text-success-contrastText",
2771
+ control: "bg-success text-success-foreground",
2769
2772
  wrapper: "group-data-[checked=true]:border-success"
2770
2773
  },
2771
2774
  warning: {
2772
- control: "bg-warning text-warning-contrastText",
2775
+ control: "bg-warning text-warning-foreground",
2773
2776
  wrapper: "group-data-[checked=true]:border-warning"
2774
2777
  },
2775
2778
  danger: {
2776
- control: "bg-danger text-danger-contrastText",
2779
+ control: "bg-danger text-danger-foreground",
2777
2780
  wrapper: "group-data-[checked=true]:border-danger"
2778
2781
  }
2779
2782
  },
@@ -2851,7 +2854,7 @@ var radio = (0, import_tailwind_variants17.tv)({
2851
2854
  },
2852
2855
  isInvalid: {
2853
2856
  true: {
2854
- control: "bg-danger text-danger-contrastText",
2857
+ control: "bg-danger text-danger-foreground",
2855
2858
  wrapper: "border-danger data-[checked=true]:border-danger",
2856
2859
  label: "text-danger",
2857
2860
  description: "text-danger-300"
@@ -3061,7 +3064,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3061
3064
  item: [
3062
3065
  "data-[active=true]:bg-neutral-400",
3063
3066
  "data-[active=true]:border-neutral-400",
3064
- "data-[active=true]:text-neutral-contrastText"
3067
+ "data-[active=true]:text-neutral-foreground"
3065
3068
  ]
3066
3069
  }
3067
3070
  },
@@ -3072,7 +3075,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3072
3075
  item: [
3073
3076
  "data-[active=true]:bg-primary",
3074
3077
  "data-[active=true]:border-primary",
3075
- "data-[active=true]:text-primary-contrastText"
3078
+ "data-[active=true]:text-primary-foreground"
3076
3079
  ]
3077
3080
  }
3078
3081
  },
@@ -3083,7 +3086,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3083
3086
  item: [
3084
3087
  "data-[active=true]:bg-secondary",
3085
3088
  "data-[active=true]:border-secondary",
3086
- "data-[active=true]:text-secondary-contrastText"
3089
+ "data-[active=true]:text-secondary-foreground"
3087
3090
  ]
3088
3091
  }
3089
3092
  },
@@ -3094,7 +3097,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3094
3097
  item: [
3095
3098
  "data-[active=true]:bg-success",
3096
3099
  "data-[active=true]:border-success",
3097
- "data-[active=true]:text-success-contrastText"
3100
+ "data-[active=true]:text-success-foreground"
3098
3101
  ]
3099
3102
  }
3100
3103
  },
@@ -3105,7 +3108,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3105
3108
  item: [
3106
3109
  "data-[active=true]:bg-warning",
3107
3110
  "data-[active=true]:border-warning",
3108
- "data-[active=true]:text-warning-contrastText"
3111
+ "data-[active=true]:text-warning-foreground"
3109
3112
  ]
3110
3113
  }
3111
3114
  },
@@ -3116,7 +3119,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3116
3119
  item: [
3117
3120
  "data-[active=true]:bg-danger",
3118
3121
  "data-[active=true]:border-danger",
3119
- "data-[active=true]:text-danger-contrastText"
3122
+ "data-[active=true]:text-danger-foreground"
3120
3123
  ]
3121
3124
  }
3122
3125
  },
@@ -3180,14 +3183,14 @@ var pagination = (0, import_tailwind_variants19.tv)({
3180
3183
  "outline-none",
3181
3184
  "items-center",
3182
3185
  "justify-center",
3183
- "text-neutral-contrastText",
3186
+ "text-neutral-foreground",
3184
3187
  "data-[focus-visible=true]:outline-none",
3185
3188
  "data-[focus-visible=true]:ring-2",
3186
3189
  "data-[focus-visible=true]:ring-primary",
3187
3190
  "data-[focus-visible=true]:ring-offset-2",
3188
3191
  "data-[focus-visible=true]:ring-offset-background",
3189
3192
  "data-[focus-visible=true]:dark:ring-offset-background-dark",
3190
- "data-[disabled=true]:opacity-50",
3193
+ "data-[disabled=true]:text-neutral-300",
3191
3194
  "data-[disabled=true]:pointer-events-none"
3192
3195
  ]
3193
3196
  },
@@ -3311,37 +3314,37 @@ var toggle = (0, import_tailwind_variants20.tv)({
3311
3314
  neutral: {
3312
3315
  wrapper: [
3313
3316
  "group-data-[checked=true]:bg-neutral-400",
3314
- "group-data-[checked=true]:text-neutral-contrastText"
3317
+ "group-data-[checked=true]:text-neutral-foreground"
3315
3318
  ]
3316
3319
  },
3317
3320
  primary: {
3318
3321
  wrapper: [
3319
3322
  "group-data-[checked=true]:bg-primary",
3320
- "group-data-[checked=true]:text-primary-contrastText"
3323
+ "group-data-[checked=true]:text-primary-foreground"
3321
3324
  ]
3322
3325
  },
3323
3326
  secondary: {
3324
3327
  wrapper: [
3325
3328
  "group-data-[checked=true]:bg-secondary",
3326
- "group-data-[checked=true]:text-secondary-contrastText"
3329
+ "group-data-[checked=true]:text-secondary-foreground"
3327
3330
  ]
3328
3331
  },
3329
3332
  success: {
3330
3333
  wrapper: [
3331
3334
  "group-data-[checked=true]:bg-success",
3332
- "group-data-[checked=true]:text-success-contrastText"
3335
+ "group-data-[checked=true]:text-success-foreground"
3333
3336
  ]
3334
3337
  },
3335
3338
  warning: {
3336
3339
  wrapper: [
3337
3340
  "group-data-[checked=true]:bg-warning",
3338
- "group-data-[checked=true]:text-warning-contrastText"
3341
+ "group-data-[checked=true]:text-warning-foreground"
3339
3342
  ]
3340
3343
  },
3341
3344
  danger: {
3342
3345
  wrapper: [
3343
3346
  "group-data-[checked=true]:bg-danger",
3344
- "data-[checked=true]:text-danger-contrastText"
3347
+ "data-[checked=true]:text-danger-foreground"
3345
3348
  ]
3346
3349
  }
3347
3350
  },
@@ -4692,84 +4695,84 @@ var dropdownItem = (0, import_tailwind_variants27.tv)({
4692
4695
  variant: "solid",
4693
4696
  color: "neutral",
4694
4697
  class: {
4695
- base: "data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-contrastText"
4698
+ base: "data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-foreground"
4696
4699
  }
4697
4700
  },
4698
4701
  {
4699
4702
  variant: "solid",
4700
4703
  color: "primary",
4701
4704
  class: {
4702
- base: "data-[hover=true]:bg-primary data-[hover=true]:text-primary-contrastText"
4705
+ base: "data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"
4703
4706
  }
4704
4707
  },
4705
4708
  {
4706
4709
  variant: "solid",
4707
4710
  color: "secondary",
4708
4711
  class: {
4709
- base: "data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-contrastText"
4712
+ base: "data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"
4710
4713
  }
4711
4714
  },
4712
4715
  {
4713
4716
  variant: "solid",
4714
4717
  color: "success",
4715
4718
  class: {
4716
- base: "data-[hover=true]:bg-success data-[hover=true]:text-success-contrastText"
4719
+ base: "data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"
4717
4720
  }
4718
4721
  },
4719
4722
  {
4720
4723
  variant: "solid",
4721
4724
  color: "warning",
4722
4725
  class: {
4723
- base: "data-[hover=true]:bg-warning data-[hover=true]:text-warning-contrastText"
4726
+ base: "data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"
4724
4727
  }
4725
4728
  },
4726
4729
  {
4727
4730
  variant: "solid",
4728
4731
  color: "danger",
4729
4732
  class: {
4730
- base: "data-[hover=true]:bg-danger data-[hover=true]:text-danger-contrastText"
4733
+ base: "data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"
4731
4734
  }
4732
4735
  },
4733
4736
  {
4734
4737
  variant: "shadow",
4735
4738
  color: "neutral",
4736
4739
  class: {
4737
- base: "data-[hover=true]:shadow-neutral/50 data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-contrastText"
4740
+ base: "data-[hover=true]:shadow-neutral/50 data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-foreground"
4738
4741
  }
4739
4742
  },
4740
4743
  {
4741
4744
  variant: "shadow",
4742
4745
  color: "primary",
4743
4746
  class: {
4744
- base: "data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-contrastText"
4747
+ base: "data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"
4745
4748
  }
4746
4749
  },
4747
4750
  {
4748
4751
  variant: "shadow",
4749
4752
  color: "secondary",
4750
4753
  class: {
4751
- base: "data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-contrastText"
4754
+ base: "data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"
4752
4755
  }
4753
4756
  },
4754
4757
  {
4755
4758
  variant: "shadow",
4756
4759
  color: "success",
4757
4760
  class: {
4758
- base: "data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-contrastText"
4761
+ base: "data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"
4759
4762
  }
4760
4763
  },
4761
4764
  {
4762
4765
  variant: "shadow",
4763
4766
  color: "warning",
4764
4767
  class: {
4765
- base: "data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-contrastText"
4768
+ base: "data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"
4766
4769
  }
4767
4770
  },
4768
4771
  {
4769
4772
  variant: "shadow",
4770
4773
  color: "danger",
4771
4774
  class: {
4772
- base: "data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-contrastText"
4775
+ base: "data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"
4773
4776
  }
4774
4777
  },
4775
4778
  {
@@ -4818,7 +4821,7 @@ var dropdownItem = (0, import_tailwind_variants27.tv)({
4818
4821
  variant: "flat",
4819
4822
  color: "neutral",
4820
4823
  class: {
4821
- base: "data-[hover=true]:bg-neutral-100 data-[hover=true]:text-neutral-contrastText"
4824
+ base: "data-[hover=true]:bg-neutral-100 data-[hover=true]:text-neutral-foreground"
4822
4825
  }
4823
4826
  },
4824
4827
  {
@@ -4860,7 +4863,7 @@ var dropdownItem = (0, import_tailwind_variants27.tv)({
4860
4863
  variant: "faded",
4861
4864
  color: "neutral",
4862
4865
  class: {
4863
- base: "data-[hover=true]:text-neutral-contrastText"
4866
+ base: "data-[hover=true]:text-neutral-foreground"
4864
4867
  }
4865
4868
  },
4866
4869
  {
@@ -5291,6 +5294,7 @@ var navbar = (0, import_tailwind_variants32.tv)({
5291
5294
  wrapper: [
5292
5295
  "flex",
5293
5296
  "flex-row",
5297
+ "relative",
5294
5298
  "flex-nowrap",
5295
5299
  "items-center",
5296
5300
  "justify-between",
@@ -5422,11 +5426,7 @@ var navbar = (0, import_tailwind_variants32.tv)({
5422
5426
  },
5423
5427
  hideOnScroll: {
5424
5428
  true: {
5425
- base: [
5426
- "sticky",
5427
- "top-0",
5428
- "inset-x-0"
5429
- ]
5429
+ base: ["sticky", "top-0", "inset-x-0"]
5430
5430
  }
5431
5431
  },
5432
5432
  isBordered: {
@@ -5455,20 +5455,266 @@ var navbar = (0, import_tailwind_variants32.tv)({
5455
5455
  isBlurred: true,
5456
5456
  position: ["static", "sticky"],
5457
5457
  class: {
5458
- base: "backdrop-blur-xl backdrop-saturate-200 bg-background/50 data-[menu-open=true]:bg-background"
5458
+ base: [
5459
+ "before:content-['']",
5460
+ "before:block",
5461
+ "before:z-[-1]",
5462
+ "before:absolute",
5463
+ "before:-top-px",
5464
+ "before:inset-0",
5465
+ "before:backdrop-blur",
5466
+ "before:backdrop-saturate-150",
5467
+ "before:bg-background/50",
5468
+ "data-[menu-open=true]:before:bg-background"
5469
+ ]
5459
5470
  }
5460
5471
  },
5461
5472
  {
5462
5473
  isBlurred: true,
5463
5474
  position: "floating",
5464
5475
  class: {
5465
- base: "bg-gradient-to-b from-background to-background/50",
5466
- wrapper: "backdrop-blur-xl backdrop-saturate-200 bg-background/50 data-[menu-open=true]:bg-background"
5476
+ base: "bg-gradient-to-b from-background to-transparent",
5477
+ wrapper: [
5478
+ "before:content-['']",
5479
+ "before:block",
5480
+ "before:z-[-1]",
5481
+ "before:absolute",
5482
+ "before:-top-px",
5483
+ "before:inset-0",
5484
+ "before:backdrop-blur",
5485
+ "before:backdrop-saturate-150",
5486
+ "before:bg-background/50",
5487
+ "data-[menu-open=true]:before:bg-background"
5488
+ ]
5467
5489
  }
5468
5490
  }
5469
5491
  ]
5470
5492
  });
5471
5493
 
5494
+ // src/components/table.ts
5495
+ var import_tailwind_variants33 = require("tailwind-variants");
5496
+ var focusRing = [
5497
+ "data-[focus-visible=true]:outline-none",
5498
+ "data-[focus-visible=true]:ring-2",
5499
+ "data-[focus-visible=true]:ring-primary",
5500
+ "data-[focus-visible=true]:ring-offset-2",
5501
+ "data-[focus-visible=true]:ring-offset-background",
5502
+ "data-[focus-visible=true]:dark:ring-offset-background-dark"
5503
+ ];
5504
+ var table = (0, import_tailwind_variants33.tv)({
5505
+ slots: {
5506
+ base: [
5507
+ "p-4",
5508
+ "flex",
5509
+ "flex-col",
5510
+ "relative",
5511
+ "justify-between",
5512
+ "gap-4",
5513
+ "border",
5514
+ "border-neutral-100",
5515
+ "overflow-auto"
5516
+ ],
5517
+ table: "min-w-full h-auto",
5518
+ thead: "[&>tr]:first:rounded-lg",
5519
+ tbody: "",
5520
+ tr: ["group", "outline-none", ...focusRing],
5521
+ th: [
5522
+ "group",
5523
+ "px-3",
5524
+ "h-10",
5525
+ "text-left",
5526
+ "align-middle",
5527
+ "bg-neutral-100",
5528
+ "text-neutral-500",
5529
+ "text-xs",
5530
+ "font-semibold",
5531
+ "first:rounded-l-lg",
5532
+ "last:rounded-r-lg",
5533
+ "outline-none",
5534
+ "data-[sortable=true]:transition-colors",
5535
+ "data-[sortable=true]:cursor-pointer",
5536
+ "data-[hover=true]:text-neutral-400",
5537
+ ...focusRing
5538
+ ],
5539
+ td: [
5540
+ "py-2",
5541
+ "px-3",
5542
+ "relative",
5543
+ "align-middle",
5544
+ "whitespace-normal",
5545
+ "text-base",
5546
+ "font-normal",
5547
+ "outline-none",
5548
+ ...focusRing,
5549
+ "before:content-['']",
5550
+ "before:absolute",
5551
+ "before:-z-[1]",
5552
+ "before:inset-0",
5553
+ "before:opacity-0",
5554
+ "data-[selected=true]:before:opacity-100",
5555
+ "group-data-[disabled=true]:text-neutral-300"
5556
+ ],
5557
+ tfoot: "",
5558
+ sortIcon: [
5559
+ "ml-2",
5560
+ "mb-px",
5561
+ "opacity-0",
5562
+ "text-inherit",
5563
+ "inline-block",
5564
+ "transition-transform-opacity",
5565
+ "data-[visible=true]:opacity-100",
5566
+ "group-data-[hover=true]:opacity-100",
5567
+ "data-[direction=ascending]:rotate-180"
5568
+ ],
5569
+ emptyWrapper: "text-neutral-400 align-middle text-center h-40",
5570
+ loadingWrapper: "absolute inset-0 flex items-center justify-center"
5571
+ },
5572
+ variants: {
5573
+ color: {
5574
+ neutral: {
5575
+ td: "before:bg-neutral-200 dark:before:bg-neutral-100 data-[selected=true]:text-neutral-foreground"
5576
+ },
5577
+ primary: {
5578
+ td: "before:bg-primary-50 data-[selected=true]:text-primary"
5579
+ },
5580
+ secondary: {
5581
+ td: "before:bg-secondary-100 data-[selected=true]:text-secondary"
5582
+ },
5583
+ success: {
5584
+ td: "before:bg-success-50 data-[selected=true]:text-success"
5585
+ },
5586
+ warning: {
5587
+ td: "before:bg-warning-50 data-[selected=true]:text-warning"
5588
+ },
5589
+ danger: {
5590
+ td: "before:bg-danger-50 data-[selected=true]:text-danger"
5591
+ }
5592
+ },
5593
+ layout: {
5594
+ auto: {
5595
+ table: "table-auto"
5596
+ },
5597
+ fixed: {
5598
+ table: "table-fixed"
5599
+ }
5600
+ },
5601
+ radius: {
5602
+ none: {
5603
+ base: "rounded-none"
5604
+ },
5605
+ base: {
5606
+ base: "rounded"
5607
+ },
5608
+ sm: {
5609
+ base: "rounded-sm"
5610
+ },
5611
+ md: {
5612
+ base: "rounded-md"
5613
+ },
5614
+ lg: {
5615
+ base: "rounded-lg"
5616
+ },
5617
+ xl: {
5618
+ base: "rounded-xl"
5619
+ },
5620
+ "2xl": {
5621
+ base: "rounded-2xl"
5622
+ }
5623
+ },
5624
+ shadow: {
5625
+ none: {
5626
+ base: "shadow-none"
5627
+ },
5628
+ sm: {
5629
+ base: "shadow-sm"
5630
+ },
5631
+ md: {
5632
+ base: "shadow-md"
5633
+ },
5634
+ lg: {
5635
+ base: "shadow-lg"
5636
+ },
5637
+ xl: {
5638
+ base: "shadow-xl"
5639
+ },
5640
+ "2xl": {
5641
+ base: "shadow-2xl"
5642
+ },
5643
+ inner: {
5644
+ base: "shadow-inner"
5645
+ }
5646
+ },
5647
+ hideHeader: {
5648
+ true: {
5649
+ thead: "hidden"
5650
+ }
5651
+ },
5652
+ isStriped: {
5653
+ true: {
5654
+ td: [
5655
+ "group-data-[odd=true]:before:bg-neutral-100",
5656
+ "group-data-[odd=true]:before:opacity-100"
5657
+ ]
5658
+ }
5659
+ },
5660
+ isHeaderSticky: {
5661
+ true: {
5662
+ thead: "sticky top-0 z-10 [&>tr]:first:shadow"
5663
+ }
5664
+ },
5665
+ isSelectable: {
5666
+ true: {
5667
+ tr: "cursor-default",
5668
+ td: ["group-data-[hover=true]:before:opacity-70"]
5669
+ }
5670
+ },
5671
+ isMultiSelectable: {
5672
+ true: {
5673
+ td: [
5674
+ "group-data-[first=true]:first:before:rounded-tl-lg",
5675
+ "group-data-[first=true]:last:before:rounded-tr-lg",
5676
+ "group-data-[middle=true]:before:rounded-none",
5677
+ "group-data-[last=true]:first:before:rounded-bl-lg",
5678
+ "group-data-[last=true]:last:before:rounded-br-lg"
5679
+ ]
5680
+ },
5681
+ false: {
5682
+ td: ["first:before:rounded-l-lg", "last:before:rounded-r-lg"]
5683
+ }
5684
+ },
5685
+ fullWidth: {
5686
+ true: {
5687
+ base: "w-full",
5688
+ table: "w-full"
5689
+ }
5690
+ }
5691
+ },
5692
+ defaultVariants: {
5693
+ layout: "auto",
5694
+ shadow: "lg",
5695
+ radius: "xl",
5696
+ color: "neutral",
5697
+ hideHeader: false,
5698
+ isStriped: false,
5699
+ fullWidth: true
5700
+ }
5701
+ });
5702
+
5703
+ // src/components/spacer.ts
5704
+ var import_tailwind_variants34 = require("tailwind-variants");
5705
+ var spacer = (0, import_tailwind_variants34.tv)({
5706
+ base: "w-px h-px inline-block",
5707
+ variants: {
5708
+ isInline: {
5709
+ true: "inline-block",
5710
+ false: "block"
5711
+ }
5712
+ },
5713
+ defaultVariants: {
5714
+ isInline: false
5715
+ }
5716
+ });
5717
+
5472
5718
  // src/colors/blue.ts
5473
5719
  var blue = {
5474
5720
  50: "#e6f1fe",
@@ -5627,24 +5873,24 @@ var base = {
5627
5873
  },
5628
5874
  content1: {
5629
5875
  DEFAULT: import_colors.default.zinc[50],
5630
- contrastText: import_colors.default.zinc[900]
5876
+ foreground: import_colors.default.zinc[900]
5631
5877
  },
5632
5878
  content2: {
5633
5879
  DEFAULT: import_colors.default.zinc[100],
5634
- contrastText: import_colors.default.zinc[800]
5880
+ foreground: import_colors.default.zinc[800]
5635
5881
  },
5636
5882
  content3: {
5637
5883
  DEFAULT: import_colors.default.zinc[200],
5638
- contrastText: import_colors.default.zinc[700]
5884
+ foreground: import_colors.default.zinc[700]
5639
5885
  },
5640
5886
  content4: {
5641
5887
  DEFAULT: import_colors.default.zinc[300],
5642
- contrastText: import_colors.default.zinc[600]
5888
+ foreground: import_colors.default.zinc[600]
5643
5889
  }
5644
5890
  },
5645
5891
  dark: {
5646
5892
  background: {
5647
- DEFAULT: "#0B0B0C"
5893
+ DEFAULT: "#000000"
5648
5894
  },
5649
5895
  foreground: {
5650
5896
  DEFAULT: "#ECEDEE"
@@ -5654,19 +5900,19 @@ var base = {
5654
5900
  },
5655
5901
  content1: {
5656
5902
  DEFAULT: import_colors.default.zinc[900],
5657
- contrastText: import_colors.default.zinc[50]
5903
+ foreground: import_colors.default.zinc[50]
5658
5904
  },
5659
5905
  content2: {
5660
5906
  DEFAULT: import_colors.default.zinc[800],
5661
- contrastText: import_colors.default.zinc[100]
5907
+ foreground: import_colors.default.zinc[100]
5662
5908
  },
5663
5909
  content3: {
5664
5910
  DEFAULT: import_colors.default.zinc[700],
5665
- contrastText: import_colors.default.zinc[200]
5911
+ foreground: import_colors.default.zinc[200]
5666
5912
  },
5667
5913
  content4: {
5668
5914
  DEFAULT: import_colors.default.zinc[600],
5669
- contrastText: import_colors.default.zinc[300]
5915
+ foreground: import_colors.default.zinc[300]
5670
5916
  }
5671
5917
  }
5672
5918
  };
@@ -5674,32 +5920,32 @@ var semanticColorsLight = {
5674
5920
  ...base.light,
5675
5921
  neutral: {
5676
5922
  ...import_colors.default.zinc,
5677
- contrastText: (0, import_color2k.readableColor)(import_colors.default.zinc[300]),
5923
+ foreground: (0, import_color2k.readableColor)(import_colors.default.zinc[300]),
5678
5924
  DEFAULT: import_colors.default.zinc[300]
5679
5925
  },
5680
5926
  primary: {
5681
5927
  ...commonColors.blue,
5682
- contrastText: commonColors.white,
5928
+ foreground: commonColors.white,
5683
5929
  DEFAULT: commonColors.blue[500]
5684
5930
  },
5685
5931
  secondary: {
5686
5932
  ...commonColors.purple,
5687
- contrastText: commonColors.white,
5933
+ foreground: commonColors.white,
5688
5934
  DEFAULT: commonColors.purple[500]
5689
5935
  },
5690
5936
  success: {
5691
5937
  ...commonColors.green,
5692
- contrastText: commonColors.white,
5938
+ foreground: commonColors.white,
5693
5939
  DEFAULT: commonColors.green[500]
5694
5940
  },
5695
5941
  warning: {
5696
5942
  ...commonColors.yellow,
5697
- contrastText: commonColors.white,
5943
+ foreground: commonColors.white,
5698
5944
  DEFAULT: commonColors.yellow[500]
5699
5945
  },
5700
5946
  danger: {
5701
5947
  ...commonColors.red,
5702
- contrastText: commonColors.white,
5948
+ foreground: commonColors.white,
5703
5949
  DEFAULT: commonColors.red[500]
5704
5950
  }
5705
5951
  };
@@ -5707,32 +5953,32 @@ var semanticColorsDark = {
5707
5953
  ...base.dark,
5708
5954
  neutral: {
5709
5955
  ...swapColorValues(import_colors.default.zinc),
5710
- contrastText: (0, import_color2k.readableColor)(import_colors.default.zinc[700]),
5956
+ foreground: (0, import_color2k.readableColor)(import_colors.default.zinc[700]),
5711
5957
  DEFAULT: import_colors.default.zinc[700]
5712
5958
  },
5713
5959
  primary: {
5714
5960
  ...swapColorValues(commonColors.blue),
5715
5961
  DEFAULT: commonColors.blue[500],
5716
- contrastText: commonColors.white
5962
+ foreground: commonColors.white
5717
5963
  },
5718
5964
  secondary: {
5719
5965
  ...swapColorValues(commonColors.purple),
5720
- contrastText: commonColors.white,
5966
+ foreground: commonColors.white,
5721
5967
  DEFAULT: commonColors.purple[400]
5722
5968
  },
5723
5969
  success: {
5724
5970
  ...swapColorValues(commonColors.green),
5725
- contrastText: (0, import_color2k.readableColor)(commonColors.green[500]),
5971
+ foreground: (0, import_color2k.readableColor)(commonColors.green[500]),
5726
5972
  DEFAULT: commonColors.green[500]
5727
5973
  },
5728
5974
  warning: {
5729
5975
  ...swapColorValues(commonColors.yellow),
5730
- contrastText: (0, import_color2k.readableColor)(commonColors.yellow[500]),
5976
+ foreground: (0, import_color2k.readableColor)(commonColors.yellow[500]),
5731
5977
  DEFAULT: commonColors.yellow[500]
5732
5978
  },
5733
5979
  danger: {
5734
5980
  ...swapColorValues(commonColors.red),
5735
- contrastText: commonColors.white,
5981
+ foreground: commonColors.white,
5736
5982
  DEFAULT: commonColors.red[500]
5737
5983
  }
5738
5984
  };
@@ -6026,9 +6272,9 @@ var nextui = (config = {}) => {
6026
6272
  };
6027
6273
 
6028
6274
  // src/index.ts
6029
- var import_tailwind_variants33 = require("tailwind-variants");
6030
- var import_tailwind_variants34 = require("tailwind-variants");
6031
- var cn = (...classes) => (0, import_tailwind_variants33.cn)(classes)();
6275
+ var import_tailwind_variants35 = require("tailwind-variants");
6276
+ var import_tailwind_variants36 = require("tailwind-variants");
6277
+ var cn = (...classes) => (0, import_tailwind_variants35.cn)(classes)();
6032
6278
  // Annotate the CommonJS export names for ESM import in node:
6033
6279
  0 && (module.exports = {
6034
6280
  absoluteFullClasses,
@@ -6070,7 +6316,9 @@ var cn = (...classes) => (0, import_tailwind_variants33.cn)(classes)();
6070
6316
  ringClasses,
6071
6317
  semanticColors,
6072
6318
  snippet,
6319
+ spacer,
6073
6320
  spinner,
6321
+ table,
6074
6322
  toggle,
6075
6323
  translateCenterClasses,
6076
6324
  tv,