@nextui-org/theme 2.2.8 → 2.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.
Files changed (101) hide show
  1. package/dist/{chunk-726LN7M3.mjs → chunk-3LD7T42T.mjs} +1 -1
  2. package/dist/{chunk-GDIZAU4E.mjs → chunk-42JWJWWX.mjs} +1 -1
  3. package/dist/{chunk-A4VDWEXY.mjs → chunk-4MIBATA4.mjs} +12 -12
  4. package/dist/{chunk-DXPS72CE.mjs → chunk-63NMFZTF.mjs} +12 -7
  5. package/dist/{chunk-4YQYZDME.mjs → chunk-7YPXCOW5.mjs} +1 -1
  6. package/dist/{chunk-KKN74BUG.mjs → chunk-BOVVTMHS.mjs} +7 -3
  7. package/dist/{chunk-2PIR7DFM.mjs → chunk-BZCSOIUI.mjs} +12 -12
  8. package/dist/{chunk-DZGYN4XH.mjs → chunk-FE2UYWMQ.mjs} +57 -64
  9. package/dist/{chunk-ARFD2V3F.mjs → chunk-I33PMOA3.mjs} +52 -55
  10. package/dist/{chunk-YSA7EQBH.mjs → chunk-JFWA3DGK.mjs} +2 -2
  11. package/dist/{chunk-NPRQPDVP.mjs → chunk-KPI62GDB.mjs} +4 -4
  12. package/dist/{chunk-XT44N6I6.mjs → chunk-LSQXJEPE.mjs} +9 -27
  13. package/dist/{chunk-GFTQERGX.mjs → chunk-MP2JYSMR.mjs} +1 -1
  14. package/dist/{chunk-5AGRECY5.mjs → chunk-OUNBTYJ7.mjs} +8 -8
  15. package/dist/{chunk-N4MWCCMM.mjs → chunk-P73E5YV7.mjs} +3 -2
  16. package/dist/{chunk-BT3FGTF7.mjs → chunk-PWJWH4MD.mjs} +1 -1
  17. package/dist/{chunk-SKQWKT6K.mjs → chunk-QV3ALCMB.mjs} +1 -1
  18. package/dist/{chunk-HZX5JB5L.mjs → chunk-R27WO3A6.mjs} +1 -1
  19. package/dist/{chunk-WGH4WKVU.mjs → chunk-TSTU52NB.mjs} +3 -3
  20. package/dist/{chunk-D7H5R3VL.mjs → chunk-UDSOWFZE.mjs} +2 -2
  21. package/dist/{chunk-WUUKIKPR.mjs → chunk-WJIRIXV4.mjs} +31 -22
  22. package/dist/{chunk-HPFX3B3F.mjs → chunk-WN6AL2BX.mjs} +2 -2
  23. package/dist/{chunk-CKTE75OS.mjs → chunk-XAYP4CR3.mjs} +1 -1
  24. package/dist/{chunk-22SLLLIZ.mjs → chunk-XEPPBQPJ.mjs} +16 -16
  25. package/dist/{chunk-IISEDJRF.mjs → chunk-XL6AWNU3.mjs} +1 -1
  26. package/dist/{chunk-MERQJVXF.mjs → chunk-XXQSA25O.mjs} +19 -7
  27. package/dist/components/accordion.mjs +1 -1
  28. package/dist/components/autocomplete.js +7 -3
  29. package/dist/components/autocomplete.mjs +1 -1
  30. package/dist/components/avatar.js +12 -12
  31. package/dist/components/avatar.mjs +2 -2
  32. package/dist/components/badge.js +12 -12
  33. package/dist/components/badge.mjs +2 -2
  34. package/dist/components/breadcrumbs.mjs +1 -1
  35. package/dist/components/button.js +30 -18
  36. package/dist/components/button.mjs +2 -2
  37. package/dist/components/calendar.d.ts +6 -6
  38. package/dist/components/calendar.js +4 -4
  39. package/dist/components/calendar.mjs +2 -2
  40. package/dist/components/card.mjs +1 -1
  41. package/dist/components/checkbox.js +8 -8
  42. package/dist/components/checkbox.mjs +2 -2
  43. package/dist/components/chip.js +12 -12
  44. package/dist/components/chip.mjs +2 -2
  45. package/dist/components/code.js +12 -12
  46. package/dist/components/code.mjs +2 -2
  47. package/dist/components/date-input.js +16 -16
  48. package/dist/components/date-input.mjs +1 -1
  49. package/dist/components/date-picker.js +3 -3
  50. package/dist/components/date-picker.mjs +1 -1
  51. package/dist/components/dropdown.mjs +1 -1
  52. package/dist/components/index.js +246 -243
  53. package/dist/components/index.mjs +23 -23
  54. package/dist/components/input.js +52 -55
  55. package/dist/components/input.mjs +2 -2
  56. package/dist/components/link.mjs +1 -1
  57. package/dist/components/listbox.js +1 -1
  58. package/dist/components/listbox.mjs +2 -2
  59. package/dist/components/menu.js +1 -1
  60. package/dist/components/menu.mjs +2 -2
  61. package/dist/components/modal.js +3 -2
  62. package/dist/components/modal.mjs +2 -2
  63. package/dist/components/navbar.mjs +1 -1
  64. package/dist/components/pagination.d.ts +3 -3
  65. package/dist/components/pagination.js +23 -18
  66. package/dist/components/pagination.mjs +2 -2
  67. package/dist/components/popover.js +12 -12
  68. package/dist/components/popover.mjs +2 -2
  69. package/dist/components/radio.js +12 -12
  70. package/dist/components/radio.mjs +2 -2
  71. package/dist/components/select.d.ts +14 -7
  72. package/dist/components/select.js +57 -64
  73. package/dist/components/select.mjs +2 -2
  74. package/dist/components/skeleton.js +2 -2
  75. package/dist/components/skeleton.mjs +1 -1
  76. package/dist/components/slider.mjs +1 -1
  77. package/dist/components/snippet.js +12 -12
  78. package/dist/components/snippet.mjs +2 -2
  79. package/dist/components/table.js +9 -27
  80. package/dist/components/table.mjs +2 -2
  81. package/dist/components/tabs.js +12 -12
  82. package/dist/components/tabs.mjs +2 -2
  83. package/dist/components/toggle.js +31 -22
  84. package/dist/components/toggle.mjs +2 -2
  85. package/dist/components/user.mjs +1 -1
  86. package/dist/index.d.ts +1 -0
  87. package/dist/index.js +254 -245
  88. package/dist/index.mjs +34 -27
  89. package/dist/plugin.js +2 -2
  90. package/dist/plugin.mjs +3 -3
  91. package/dist/utilities/index.d.ts +2 -2
  92. package/dist/utilities/index.js +2 -2
  93. package/dist/utilities/index.mjs +2 -2
  94. package/dist/utilities/transition.d.ts +2 -2
  95. package/dist/utilities/transition.js +2 -2
  96. package/dist/utilities/transition.mjs +1 -1
  97. package/dist/utils/index.js +12 -12
  98. package/dist/utils/index.mjs +1 -1
  99. package/dist/utils/variants.js +12 -12
  100. package/dist/utils/variants.mjs +1 -1
  101. package/package.json +1 -1
@@ -76,7 +76,7 @@ var groupDataFocusVisibleClasses = [
76
76
  // src/components/toggle.ts
77
77
  var toggle = tv({
78
78
  slots: {
79
- base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent",
79
+ base: "group/toggle relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent select-none",
80
80
  wrapper: [
81
81
  "px-1",
82
82
  "relative",
@@ -108,37 +108,37 @@ var toggle = tv({
108
108
  color: {
109
109
  default: {
110
110
  wrapper: [
111
- "group-data-[selected=true]:bg-default-400",
112
- "group-data-[selected=true]:text-default-foreground"
111
+ "group-data-[selected=true]/toggle:bg-default-400",
112
+ "group-data-[selected=true]/toggle:text-default-foreground"
113
113
  ]
114
114
  },
115
115
  primary: {
116
116
  wrapper: [
117
- "group-data-[selected=true]:bg-primary",
118
- "group-data-[selected=true]:text-primary-foreground"
117
+ "group-data-[selected=true]/toggle:bg-primary",
118
+ "group-data-[selected=true]/toggle:text-primary-foreground"
119
119
  ]
120
120
  },
121
121
  secondary: {
122
122
  wrapper: [
123
- "group-data-[selected=true]:bg-secondary",
124
- "group-data-[selected=true]:text-secondary-foreground"
123
+ "group-data-[selected=true]/toggle:bg-secondary",
124
+ "group-data-[selected=true]/toggle:text-secondary-foreground"
125
125
  ]
126
126
  },
127
127
  success: {
128
128
  wrapper: [
129
- "group-data-[selected=true]:bg-success",
130
- "group-data-[selected=true]:text-success-foreground"
129
+ "group-data-[selected=true]/toggle:bg-success",
130
+ "group-data-[selected=true]/toggle:text-success-foreground"
131
131
  ]
132
132
  },
133
133
  warning: {
134
134
  wrapper: [
135
- "group-data-[selected=true]:bg-warning",
136
- "group-data-[selected=true]:text-warning-foreground"
135
+ "group-data-[selected=true]/toggle:bg-warning",
136
+ "group-data-[selected=true]/toggle:text-warning-foreground"
137
137
  ]
138
138
  },
139
139
  danger: {
140
140
  wrapper: [
141
- "group-data-[selected=true]:bg-danger",
141
+ "group-data-[selected=true]/toggle:bg-danger",
142
142
  "data-[selected=true]:text-danger-foreground"
143
143
  ]
144
144
  }
@@ -148,7 +148,7 @@ var toggle = tv({
148
148
  wrapper: "w-10 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]",
149
149
  thumb: [
150
150
  "w-4 h-4 text-tiny",
151
- "group-data-[selected=true]:ml-4 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-4"
151
+ "group-data-[selected=true]/toggle:ml-4 rtl:group-data-[selected=true]/toggle:ml-0 rtl:group-data-[selected=true]/toggle:mr-4"
152
152
  ],
153
153
  endContent: "text-tiny",
154
154
  startContent: "text-tiny",
@@ -158,7 +158,7 @@ var toggle = tv({
158
158
  wrapper: "w-12 h-7 mr-2 rtl:ml-2 rtl:mr-[unset]",
159
159
  thumb: [
160
160
  "w-5 h-5 text-small",
161
- "group-data-[selected=true]:ml-5 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-5"
161
+ "group-data-[selected=true]/toggle:ml-5 rtl:group-data-[selected=true]/toggle:ml-0 rtl:group-data-[selected=true]/toggle:mr-5"
162
162
  ],
163
163
  endContent: "text-small",
164
164
  startContent: "text-small",
@@ -168,7 +168,7 @@ var toggle = tv({
168
168
  wrapper: "w-14 h-8 mr-2 rtl:ml-2 rtl:mr-[unset]",
169
169
  thumb: [
170
170
  "w-6 h-6 text-medium",
171
- "group-data-[selected=true]:ml-6 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-6"
171
+ "group-data-[selected=true]/toggle:ml-6 rtl:group-data-[selected=true]/toggle:ml-0 rtl:group-data-[selected=true]/toggle:mr-6"
172
172
  ],
173
173
  endContent: "text-medium",
174
174
  startContent: "text-medium",
@@ -192,14 +192,14 @@ var toggle = tv({
192
192
  "opacity-0",
193
193
  "scale-50",
194
194
  "transition-transform-opacity",
195
- "group-data-[selected=true]:scale-100",
196
- "group-data-[selected=true]:opacity-100"
195
+ "group-data-[selected=true]/toggle:scale-100",
196
+ "group-data-[selected=true]/toggle:opacity-100"
197
197
  ],
198
198
  endContent: [
199
199
  "opacity-100",
200
200
  "transition-transform-opacity",
201
- "group-data-[selected=true]:translate-x-3",
202
- "group-data-[selected=true]:opacity-0"
201
+ "group-data-[selected=true]/toggle:translate-x-3",
202
+ "group-data-[selected=true]/toggle:opacity-0"
203
203
  ]
204
204
  }
205
205
  }
@@ -214,21 +214,30 @@ var toggle = tv({
214
214
  disableAnimation: false,
215
215
  size: "sm",
216
216
  class: {
217
- thumb: ["group-data-[pressed=true]:w-5", "group-data-[selected]:group-data-[pressed]:ml-3"]
217
+ thumb: [
218
+ "group-data-[pressed=true]/toggle:w-5",
219
+ "group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-3"
220
+ ]
218
221
  }
219
222
  },
220
223
  {
221
224
  disableAnimation: false,
222
225
  size: "md",
223
226
  class: {
224
- thumb: ["group-data-[pressed=true]:w-6", "group-data-[selected]:group-data-[pressed]:ml-4"]
227
+ thumb: [
228
+ "group-data-[pressed=true]/toggle:w-6",
229
+ "group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-4"
230
+ ]
225
231
  }
226
232
  },
227
233
  {
228
234
  disableAnimation: false,
229
235
  size: "lg",
230
236
  class: {
231
- thumb: ["group-data-[pressed=true]:w-7", "group-data-[selected]:group-data-[pressed]:ml-5"]
237
+ thumb: [
238
+ "group-data-[pressed=true]/toggle:w-7",
239
+ "group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-5"
240
+ ]
232
241
  }
233
242
  }
234
243
  ]
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toggle
3
- } from "../chunk-WUUKIKPR.mjs";
3
+ } from "../chunk-WJIRIXV4.mjs";
4
4
  import "../chunk-IV3K5WDK.mjs";
5
5
  import "../chunk-3XVMTUU7.mjs";
6
- import "../chunk-2PIR7DFM.mjs";
6
+ import "../chunk-BZCSOIUI.mjs";
7
7
  import "../chunk-N2KXC5ZE.mjs";
8
8
  import "../chunk-BYWORP66.mjs";
9
9
  import "../chunk-XHQUSKIE.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-BJ6IKX32.mjs";
4
4
  import "../chunk-IV3K5WDK.mjs";
5
5
  import "../chunk-3XVMTUU7.mjs";
6
- import "../chunk-2PIR7DFM.mjs";
6
+ import "../chunk-BZCSOIUI.mjs";
7
7
  import "../chunk-N2KXC5ZE.mjs";
8
8
  import "../chunk-BYWORP66.mjs";
9
9
  import "../chunk-XHQUSKIE.mjs";
package/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export { cn } from './utils/cn.js';
45
45
  export { colors } from './colors/index.js';
46
46
  export { nextui } from './plugin.js';
47
47
  export { BaseThemeUnit, ConfigTheme, ConfigThemes, DefaultThemeType, FontThemeUnit, LayoutTheme, NextUIPluginConfig } from './types.js';
48
+ export { darkLayout, defaultLayout, lightLayout } from './default-layout.js';
48
49
  export { tv } from './utils/tv.js';
49
50
  export { TV, VariantProps } from 'tailwind-variants';
50
51
  export { BaseColors, ColorScale, SemanticBaseColors, ThemeColors } from './colors/types.js';