@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
@@ -27,21 +27,21 @@ var import_tailwind_variants = require("tailwind-variants");
27
27
 
28
28
  // src/utils/variants.ts
29
29
  var solid = {
30
- neutral: "bg-neutral text-neutral-contrastText",
31
- primary: "bg-primary text-primary-contrastText",
32
- secondary: "bg-secondary text-secondary-contrastText",
33
- success: "bg-success text-success-contrastText",
34
- warning: "bg-warning text-warning-contrastText",
35
- danger: "bg-danger text-danger-contrastText",
30
+ neutral: "bg-neutral text-neutral-foreground",
31
+ primary: "bg-primary text-primary-foreground",
32
+ secondary: "bg-secondary text-secondary-foreground",
33
+ success: "bg-success text-success-foreground",
34
+ warning: "bg-warning text-warning-foreground",
35
+ danger: "bg-danger text-danger-foreground",
36
36
  foreground: "bg-foreground text-background"
37
37
  };
38
38
  var shadow = {
39
- neutral: "shadow-lg shadow-neutral/50 bg-neutral text-neutral-contrastText",
40
- primary: "shadow-lg shadow-primary/40 bg-primary text-primary-contrastText",
41
- secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-contrastText",
42
- success: "shadow-lg shadow-success/40 bg-success text-success-contrastText",
43
- warning: "shadow-lg shadow-warning/40 bg-warning text-warning-contrastText",
44
- danger: "shadow-lg shadow-danger/40 bg-danger text-danger-contrastText",
39
+ neutral: "shadow-lg shadow-neutral/50 bg-neutral text-neutral-foreground",
40
+ primary: "shadow-lg shadow-primary/40 bg-primary text-primary-foreground",
41
+ secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",
42
+ success: "shadow-lg shadow-success/40 bg-success text-success-foreground",
43
+ warning: "shadow-lg shadow-warning/40 bg-warning text-warning-foreground",
44
+ danger: "shadow-lg shadow-danger/40 bg-danger text-danger-foreground",
45
45
  foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
46
46
  };
47
47
  var bordered = {
@@ -54,7 +54,7 @@ var bordered = {
54
54
  foreground: "bg-transparent border-foreground text-foreground"
55
55
  };
56
56
  var flat = {
57
- neutral: "bg-neutral-100 text-neutral-contrastText",
57
+ neutral: "bg-neutral-100 text-neutral-foreground",
58
58
  primary: "bg-primary-50 text-primary",
59
59
  secondary: "bg-secondary-100 text-secondary",
60
60
  success: "bg-success-50 text-success",
@@ -63,7 +63,7 @@ var flat = {
63
63
  foreground: "bg-foreground/10 text-foreground"
64
64
  };
65
65
  var faded = {
66
- neutral: "border-neutral bg-neutral-100 text-neutral-contrastText",
66
+ neutral: "border-neutral bg-neutral-100 text-neutral-foreground",
67
67
  primary: "border-neutral bg-neutral-100 text-primary",
68
68
  secondary: "border-neutral bg-neutral-100 text-secondary",
69
69
  success: "border-neutral bg-neutral-100 text-success",
@@ -72,7 +72,7 @@ var faded = {
72
72
  foreground: "border-neutral bg-neutral-100 text-foreground"
73
73
  };
74
74
  var light = {
75
- neutral: "bg-transparent text-neutral-contrastText",
75
+ neutral: "bg-transparent text-neutral-foreground",
76
76
  primary: "bg-transparent text-primary",
77
77
  secondary: "bg-transparent text-secondary",
78
78
  success: "bg-transparent text-success",
@@ -81,12 +81,12 @@ var light = {
81
81
  foreground: "bg-transparent text-foreground"
82
82
  };
83
83
  var ghost = {
84
- neutral: "border-neutral text-neutral-contrastText hover:!bg-neutral",
85
- primary: "border-primary text-primary hover:!text-primary-contrastText hover:!bg-primary",
86
- secondary: "border-secondary text-secondary hover:text-secondary-contrastText hover:!bg-secondary",
87
- success: "border-success text-success hover:!text-success-contrastText hover:!bg-success",
88
- warning: "border-warning text-warning hover:!text-warning-contrastText hover:!bg-warning",
89
- danger: "border-danger text-danger hover:!text-danger-contrastText hover:!bg-danger",
84
+ neutral: "border-neutral text-neutral-foreground hover:!bg-neutral",
85
+ primary: "border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",
86
+ secondary: "border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",
87
+ success: "border-success text-success hover:!text-success-foreground hover:!bg-success",
88
+ warning: "border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",
89
+ danger: "border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",
90
90
  foreground: "border-foreground text-foreground hover:!bg-foreground"
91
91
  };
92
92
  var colorVariants = {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  code
3
- } from "../chunk-B5S7HT6N.mjs";
3
+ } from "../chunk-WFCALVUC.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
- import "../chunk-LGGZKBOO.mjs";
6
+ import "../chunk-RO3WUCFF.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  code
@@ -128,84 +128,84 @@ var dropdownItem = (0, import_tailwind_variants.tv)({
128
128
  variant: "solid",
129
129
  color: "neutral",
130
130
  class: {
131
- base: "data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-contrastText"
131
+ base: "data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-foreground"
132
132
  }
133
133
  },
134
134
  {
135
135
  variant: "solid",
136
136
  color: "primary",
137
137
  class: {
138
- base: "data-[hover=true]:bg-primary data-[hover=true]:text-primary-contrastText"
138
+ base: "data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"
139
139
  }
140
140
  },
141
141
  {
142
142
  variant: "solid",
143
143
  color: "secondary",
144
144
  class: {
145
- base: "data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-contrastText"
145
+ base: "data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"
146
146
  }
147
147
  },
148
148
  {
149
149
  variant: "solid",
150
150
  color: "success",
151
151
  class: {
152
- base: "data-[hover=true]:bg-success data-[hover=true]:text-success-contrastText"
152
+ base: "data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"
153
153
  }
154
154
  },
155
155
  {
156
156
  variant: "solid",
157
157
  color: "warning",
158
158
  class: {
159
- base: "data-[hover=true]:bg-warning data-[hover=true]:text-warning-contrastText"
159
+ base: "data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"
160
160
  }
161
161
  },
162
162
  {
163
163
  variant: "solid",
164
164
  color: "danger",
165
165
  class: {
166
- base: "data-[hover=true]:bg-danger data-[hover=true]:text-danger-contrastText"
166
+ base: "data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"
167
167
  }
168
168
  },
169
169
  {
170
170
  variant: "shadow",
171
171
  color: "neutral",
172
172
  class: {
173
- base: "data-[hover=true]:shadow-neutral/50 data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-contrastText"
173
+ base: "data-[hover=true]:shadow-neutral/50 data-[hover=true]:bg-neutral data-[hover=true]:text-neutral-foreground"
174
174
  }
175
175
  },
176
176
  {
177
177
  variant: "shadow",
178
178
  color: "primary",
179
179
  class: {
180
- base: "data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-contrastText"
180
+ base: "data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"
181
181
  }
182
182
  },
183
183
  {
184
184
  variant: "shadow",
185
185
  color: "secondary",
186
186
  class: {
187
- base: "data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-contrastText"
187
+ base: "data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"
188
188
  }
189
189
  },
190
190
  {
191
191
  variant: "shadow",
192
192
  color: "success",
193
193
  class: {
194
- base: "data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-contrastText"
194
+ base: "data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"
195
195
  }
196
196
  },
197
197
  {
198
198
  variant: "shadow",
199
199
  color: "warning",
200
200
  class: {
201
- base: "data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-contrastText"
201
+ base: "data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"
202
202
  }
203
203
  },
204
204
  {
205
205
  variant: "shadow",
206
206
  color: "danger",
207
207
  class: {
208
- base: "data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-contrastText"
208
+ base: "data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"
209
209
  }
210
210
  },
211
211
  {
@@ -254,7 +254,7 @@ var dropdownItem = (0, import_tailwind_variants.tv)({
254
254
  variant: "flat",
255
255
  color: "neutral",
256
256
  class: {
257
- base: "data-[hover=true]:bg-neutral-100 data-[hover=true]:text-neutral-contrastText"
257
+ base: "data-[hover=true]:bg-neutral-100 data-[hover=true]:text-neutral-foreground"
258
258
  }
259
259
  },
260
260
  {
@@ -296,7 +296,7 @@ var dropdownItem = (0, import_tailwind_variants.tv)({
296
296
  variant: "faded",
297
297
  color: "neutral",
298
298
  class: {
299
- base: "data-[hover=true]:text-neutral-contrastText"
299
+ base: "data-[hover=true]:text-neutral-foreground"
300
300
  }
301
301
  },
302
302
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dropdownItem
3
- } from "../chunk-KVW35URF.mjs";
3
+ } from "../chunk-Z6VEZVD6.mjs";
4
4
  export {
5
5
  dropdownItem
6
6
  };
@@ -30,5 +30,7 @@ export { dropdownMenu } from './dropdown-menu.js';
30
30
  export { ImageSlots, ImageVariantProps, image } from './image.js';
31
31
  export { ModalSlots, ModalVariantProps, modal } from './modal.js';
32
32
  export { NavbarSlots, NavbarVariantProps, navbar } from './navbar.js';
33
+ export { TableReturnType, TableSlots, TableVariantProps, table } from './table.js';
34
+ export { SpacerVariantProps, spacer } from './spacer.js';
33
35
  import 'tailwind-variants';
34
36
  import 'tailwind-variants/dist/config';