@nextui-org/theme 2.2.11 → 2.3.0-beta.0

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 (165) hide show
  1. package/dist/{chunk-LSQXJEPE.mjs → chunk-2ODFPLXN.mjs} +22 -22
  2. package/dist/{chunk-TA7PDZUG.mjs → chunk-2TAKWWRG.mjs} +1 -1
  3. package/dist/chunk-3XDFZGUJ.mjs +216 -0
  4. package/dist/{chunk-3XVMTUU7.mjs → chunk-46U6G7UJ.mjs} +2 -2
  5. package/dist/{chunk-MP2JYSMR.mjs → chunk-5VB7JNVX.mjs} +2 -2
  6. package/dist/{chunk-JBKBSMXM.mjs → chunk-7IYRK3EV.mjs} +1 -1
  7. package/dist/{chunk-T2VR4T5R.mjs → chunk-AKXXHKTO.mjs} +1 -1
  8. package/dist/{chunk-EF6G67MF.mjs → chunk-AN5I7NTT.mjs} +1 -1
  9. package/dist/{chunk-KPVV2V7V.mjs → chunk-AUN4SP2F.mjs} +1 -1
  10. package/dist/{chunk-A2DU46QS.mjs → chunk-AXSF7SRE.mjs} +1 -1
  11. package/dist/{chunk-V4SD44VK.mjs → chunk-BWPOLXFL.mjs} +1 -1
  12. package/dist/{chunk-AXXUQWWC.mjs → chunk-DBPAK7QN.mjs} +1 -1
  13. package/dist/{chunk-63NMFZTF.mjs → chunk-EGGHND3C.mjs} +2 -2
  14. package/dist/chunk-EP7KPCL3.mjs +62 -0
  15. package/dist/{chunk-GQDFLFNG.mjs → chunk-EQPJSVMB.mjs} +1 -1
  16. package/dist/{chunk-KUKJUMC3.mjs → chunk-FB2NWPDB.mjs} +4 -4
  17. package/dist/{chunk-ARYJFX77.mjs → chunk-FJGKW3ZE.mjs} +10 -10
  18. package/dist/{chunk-BYWORP66.mjs → chunk-GIXI35A3.mjs} +8 -1
  19. package/dist/{chunk-BJ6IKX32.mjs → chunk-GMZHMFEU.mjs} +1 -1
  20. package/dist/{chunk-BZCSOIUI.mjs → chunk-GQT3YUX3.mjs} +5 -5
  21. package/dist/{chunk-XL6AWNU3.mjs → chunk-HHK47K4W.mjs} +2 -2
  22. package/dist/{chunk-MVG7GLBD.mjs → chunk-HIFLYEAM.mjs} +1 -1
  23. package/dist/{chunk-22SLLLIZ.mjs → chunk-HNRFZTEX.mjs} +3 -3
  24. package/dist/{chunk-M3GQ3DWZ.mjs → chunk-HZ7J23VD.mjs} +6 -3
  25. package/dist/{chunk-C3SML4G4.mjs → chunk-IAHJC7C4.mjs} +1 -1
  26. package/dist/{chunk-2KK3SUMT.mjs → chunk-IZOPFGDE.mjs} +37 -2
  27. package/dist/{chunk-PWJWH4MD.mjs → chunk-JE6SPRGQ.mjs} +2 -2
  28. package/dist/{chunk-7YPXCOW5.mjs → chunk-K6KPB2U5.mjs} +1 -1
  29. package/dist/{chunk-42JWJWWX.mjs → chunk-KTTXIYK2.mjs} +2 -2
  30. package/dist/{chunk-C43Y2OOL.mjs → chunk-KZ2I3V4D.mjs} +2 -2
  31. package/dist/{chunk-JFWA3DGK.mjs → chunk-LCMN7HGG.mjs} +19 -13
  32. package/dist/{chunk-JYFVXE5E.mjs → chunk-LVAEW6WR.mjs} +3 -3
  33. package/dist/{chunk-R27WO3A6.mjs → chunk-LWG2RR7B.mjs} +2 -2
  34. package/dist/{chunk-P73E5YV7.mjs → chunk-N67DL6BW.mjs} +2 -4
  35. package/dist/{chunk-UDSOWFZE.mjs → chunk-OAHW4NON.mjs} +1 -1
  36. package/dist/{chunk-WGH4WKVU.mjs → chunk-QFGVVQRM.mjs} +2 -2
  37. package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
  38. package/dist/{chunk-QWWVIX6M.mjs → chunk-TNFNBUPA.mjs} +5 -4
  39. package/dist/{chunk-U6G6SZ26.mjs → chunk-TOQXZATI.mjs} +1 -1
  40. package/dist/{chunk-3QYYLFUC.mjs → chunk-UQZHSMVI.mjs} +1 -1
  41. package/dist/{chunk-N2KXC5ZE.mjs → chunk-UWE6H66T.mjs} +1 -1
  42. package/dist/{chunk-KPI62GDB.mjs → chunk-VKSIQ7SR.mjs} +1 -1
  43. package/dist/{chunk-F4AOWB64.mjs → chunk-VX7HAPUO.mjs} +1 -1
  44. package/dist/{chunk-DI2L75XK.mjs → chunk-W5UU3F46.mjs} +5 -0
  45. package/dist/{chunk-QV3ALCMB.mjs → chunk-XQI5RD6S.mjs} +2 -2
  46. package/dist/{chunk-3LD7T42T.mjs → chunk-XZMJGJQX.mjs} +4 -4
  47. package/dist/{chunk-VLE2FQQR.mjs → chunk-YLHKOIZS.mjs} +1 -1
  48. package/dist/{chunk-XXQSA25O.mjs → chunk-YRDDKYYT.mjs} +6 -3
  49. package/dist/components/accordion.js +8 -1
  50. package/dist/components/accordion.mjs +5 -5
  51. package/dist/components/alert.d.ts +344 -0
  52. package/dist/components/alert.js +355 -0
  53. package/dist/components/alert.mjs +12 -0
  54. package/dist/components/autocomplete.js +8 -1
  55. package/dist/components/autocomplete.mjs +3 -3
  56. package/dist/components/avatar.js +13 -6
  57. package/dist/components/avatar.mjs +5 -5
  58. package/dist/components/badge.js +13 -6
  59. package/dist/components/badge.mjs +5 -5
  60. package/dist/components/breadcrumbs.js +9 -2
  61. package/dist/components/breadcrumbs.mjs +5 -5
  62. package/dist/components/button.js +17 -7
  63. package/dist/components/button.mjs +5 -5
  64. package/dist/components/calendar.js +8 -1
  65. package/dist/components/calendar.mjs +5 -5
  66. package/dist/components/card.js +8 -1
  67. package/dist/components/card.mjs +5 -5
  68. package/dist/components/checkbox.js +11 -4
  69. package/dist/components/checkbox.mjs +5 -5
  70. package/dist/components/chip.js +13 -6
  71. package/dist/components/chip.mjs +5 -5
  72. package/dist/components/circular-progress.js +8 -1
  73. package/dist/components/circular-progress.mjs +3 -3
  74. package/dist/components/code.js +13 -6
  75. package/dist/components/code.mjs +5 -5
  76. package/dist/components/date-input.js +10 -3
  77. package/dist/components/date-input.mjs +3 -3
  78. package/dist/components/date-picker.js +9 -2
  79. package/dist/components/date-picker.mjs +3 -3
  80. package/dist/components/divider.js +8 -1
  81. package/dist/components/divider.mjs +3 -3
  82. package/dist/components/drawer.d.ts +358 -0
  83. package/dist/components/drawer.js +130 -0
  84. package/dist/components/drawer.mjs +8 -0
  85. package/dist/components/drip.js +8 -1
  86. package/dist/components/drip.mjs +3 -3
  87. package/dist/components/dropdown.js +8 -1
  88. package/dist/components/dropdown.mjs +5 -5
  89. package/dist/components/image.js +8 -1
  90. package/dist/components/image.mjs +3 -3
  91. package/dist/components/index.d.ts +2 -1
  92. package/dist/components/index.js +367 -55
  93. package/dist/components/index.mjs +68 -60
  94. package/dist/components/input.d.ts +7 -0
  95. package/dist/components/input.js +12 -4
  96. package/dist/components/input.mjs +5 -5
  97. package/dist/components/kbd.js +8 -1
  98. package/dist/components/kbd.mjs +3 -3
  99. package/dist/components/link.js +8 -1
  100. package/dist/components/link.mjs +5 -5
  101. package/dist/components/listbox.js +8 -1
  102. package/dist/components/listbox.mjs +5 -5
  103. package/dist/components/menu.js +8 -1
  104. package/dist/components/menu.mjs +5 -5
  105. package/dist/components/modal.js +9 -4
  106. package/dist/components/modal.mjs +5 -5
  107. package/dist/components/navbar.js +8 -1
  108. package/dist/components/navbar.mjs +5 -5
  109. package/dist/components/pagination.js +13 -6
  110. package/dist/components/pagination.mjs +5 -5
  111. package/dist/components/popover.js +13 -6
  112. package/dist/components/popover.mjs +5 -5
  113. package/dist/components/progress.js +44 -2
  114. package/dist/components/progress.mjs +3 -3
  115. package/dist/components/radio.js +10 -3
  116. package/dist/components/radio.mjs +5 -5
  117. package/dist/components/scroll-shadow.js +8 -1
  118. package/dist/components/scroll-shadow.mjs +3 -3
  119. package/dist/components/select.d.ts +21 -0
  120. package/dist/components/select.js +13 -3
  121. package/dist/components/select.mjs +5 -5
  122. package/dist/components/skeleton.js +8 -1
  123. package/dist/components/skeleton.mjs +3 -3
  124. package/dist/components/slider.js +8 -1
  125. package/dist/components/slider.mjs +5 -5
  126. package/dist/components/snippet.js +13 -6
  127. package/dist/components/snippet.mjs +5 -5
  128. package/dist/components/spacer.js +8 -1
  129. package/dist/components/spacer.mjs +3 -3
  130. package/dist/components/spinner.js +8 -1
  131. package/dist/components/spinner.mjs +3 -3
  132. package/dist/components/table.js +29 -22
  133. package/dist/components/table.mjs +5 -5
  134. package/dist/components/tabs.js +13 -6
  135. package/dist/components/tabs.mjs +5 -5
  136. package/dist/components/toggle.js +17 -10
  137. package/dist/components/toggle.mjs +5 -5
  138. package/dist/components/user.d.ts +26 -27
  139. package/dist/components/user.js +8 -1
  140. package/dist/components/user.mjs +5 -5
  141. package/dist/index.d.ts +2 -1
  142. package/dist/index.js +392 -69
  143. package/dist/index.mjs +74 -66
  144. package/dist/plugin.js +24 -13
  145. package/dist/plugin.mjs +4 -4
  146. package/dist/utilities/custom.d.ts +5 -0
  147. package/dist/utilities/custom.js +5 -0
  148. package/dist/utilities/custom.mjs +1 -1
  149. package/dist/utilities/index.d.ts +5 -0
  150. package/dist/utilities/index.js +5 -0
  151. package/dist/utilities/index.mjs +3 -3
  152. package/dist/utils/cn.js +9 -2
  153. package/dist/utils/cn.mjs +2 -2
  154. package/dist/utils/index.d.ts +0 -1
  155. package/dist/utils/index.js +14 -7
  156. package/dist/utils/index.mjs +5 -5
  157. package/dist/utils/tv.js +8 -1
  158. package/dist/utils/tv.mjs +2 -2
  159. package/dist/utils/tw-merge-config.d.ts +17 -3
  160. package/dist/utils/tw-merge-config.js +8 -1
  161. package/dist/utils/tw-merge-config.mjs +1 -1
  162. package/dist/utils/variants.js +5 -5
  163. package/dist/utils/variants.mjs +1 -1
  164. package/package.json +3 -12
  165. /package/dist/{chunk-UVXYPGDZ.mjs → chunk-MA4DKK64.mjs} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/date-input.ts
6
6
  var dateInput = tv({
@@ -151,13 +151,13 @@ var dateInput = tv({
151
151
  outside: {
152
152
  base: "flex flex-col data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+8px)] gap-y-1.5",
153
153
  label: "w-full text-foreground",
154
- helperWrapper: "absolute top-[calc(100%_+_2px)] left-0 rtl:right-0"
154
+ helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
155
155
  },
156
156
  "outside-left": {
157
157
  base: "flex-row items-center data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+_8px)] gap-x-2 flex-nowrap",
158
158
  label: "relative text-foreground",
159
159
  inputWrapper: "relative flex-1",
160
- helperWrapper: "absolute top-[calc(100%_+_2px)] left-0 rtl:right-0"
160
+ helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
161
161
  },
162
162
  inside: {
163
163
  label: "w-full text-tiny cursor-text",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -8,7 +8,7 @@ import {
8
8
  // src/components/select.ts
9
9
  var select = tv({
10
10
  slots: {
11
- base: ["group inline-flex flex-col relative w-full"],
11
+ base: ["group inline-flex flex-col relative"],
12
12
  label: [
13
13
  "block",
14
14
  "absolute",
@@ -25,7 +25,7 @@ var select = tv({
25
25
  innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",
26
26
  selectorIcon: "absolute end-3 w-4 h-4",
27
27
  spinner: "absolute end-3",
28
- value: ["text-foreground-500", "font-normal", "w-full", "text-left", "rtl:text-right"],
28
+ value: ["text-foreground-500", "font-normal", "w-full", "text-start"],
29
29
  listboxWrapper: "scroll-py-6 max-h-64 w-full",
30
30
  listbox: "",
31
31
  popoverContent: "w-full p-1 overflow-hidden",
@@ -146,6 +146,9 @@ var select = tv({
146
146
  fullWidth: {
147
147
  true: {
148
148
  base: "w-full"
149
+ },
150
+ false: {
151
+ base: "min-w-40"
149
152
  }
150
153
  },
151
154
  isDisabled: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/progress.ts
6
6
  var progress = tv(
@@ -75,7 +75,7 @@ var progress = tv(
75
75
  },
76
76
  isStriped: {
77
77
  true: {
78
- indicator: "bg-stripe-gradient bg-[length:1.25rem_1.25rem]"
78
+ indicator: "bg-stripe-gradient-default bg-stripe-size"
79
79
  }
80
80
  },
81
81
  isIndeterminate: {
@@ -110,6 +110,41 @@ var progress = tv(
110
110
  class: {
111
111
  indicator: "!transition-none motion-reduce:transition-none"
112
112
  }
113
+ },
114
+ {
115
+ color: "primary",
116
+ isStriped: true,
117
+ class: {
118
+ indicator: "bg-stripe-gradient-primary bg-stripe-size"
119
+ }
120
+ },
121
+ {
122
+ color: "secondary",
123
+ isStriped: true,
124
+ class: {
125
+ indicator: "bg-stripe-gradient-secondary bg-stripe-size"
126
+ }
127
+ },
128
+ {
129
+ color: "success",
130
+ isStriped: true,
131
+ class: {
132
+ indicator: "bg-stripe-gradient-success bg-stripe-size"
133
+ }
134
+ },
135
+ {
136
+ color: "warning",
137
+ isStriped: true,
138
+ class: {
139
+ indicator: "bg-stripe-gradient-warning bg-stripe-size"
140
+ }
141
+ },
142
+ {
143
+ color: "danger",
144
+ isStriped: true,
145
+ class: {
146
+ indicator: "bg-stripe-gradient-danger bg-stripe-size"
147
+ }
113
148
  }
114
149
  ]
115
150
  },
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-BZCSOIUI.mjs";
3
+ } from "./chunk-GQT3YUX3.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-N2KXC5ZE.mjs";
6
+ } from "./chunk-UWE6H66T.mjs";
7
7
 
8
8
  // src/components/code.ts
9
9
  var code = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-BZCSOIUI.mjs";
3
+ } from "./chunk-GQT3YUX3.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-N2KXC5ZE.mjs";
6
+ } from "./chunk-UWE6H66T.mjs";
7
7
  import {
8
8
  dataFocusVisibleClasses
9
9
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -18,7 +18,7 @@ var breadcrumbItem = tv({
18
18
  "tap-highlight-transparent",
19
19
  ...dataFocusVisibleClasses
20
20
  ],
21
- separator: "text-default-400 px-1"
21
+ separator: "text-default-400 px-1 rtl:rotate-180"
22
22
  },
23
23
  variants: {
24
24
  color: {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-D2XMP2NC.mjs";
4
4
  import {
5
5
  utilities
6
- } from "./chunk-3LD7T42T.mjs";
6
+ } from "./chunk-XZMJGJQX.mjs";
7
7
  import {
8
8
  DEFAULT_TRANSITION_DURATION
9
9
  } from "./chunk-WN6AL2BX.mjs";
@@ -31,12 +31,8 @@ import {
31
31
  // src/plugin.ts
32
32
  import Color from "color";
33
33
  import plugin from "tailwindcss/plugin.js";
34
- import get from "lodash.get";
35
- import omit from "lodash.omit";
36
- import forEach from "lodash.foreach";
37
- import mapKeys from "lodash.mapkeys";
38
- import kebabCase from "lodash.kebabcase";
39
34
  import deepMerge from "deepmerge";
35
+ import { omit, kebabCase, mapKeys } from "@nextui-org/shared-utils";
40
36
  var DEFAULT_PREFIX = "nextui";
41
37
  var parsedColorsCache = {};
42
38
  var resolveConfig = (themes = {}, defaultTheme, prefix) => {
@@ -55,7 +51,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
55
51
  "color-scheme": scheme
56
52
  } : {};
57
53
  const flatColors = flattenThemeObject(colors);
58
- const flatLayout = layout ? mapKeys(layout, (value, key) => kebabCase(key)) : {};
54
+ const flatLayout = layout ? mapKeys(layout, (_, key) => kebabCase(key)) : {};
59
55
  resolved.variants.push({
60
56
  name: themeName,
61
57
  definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
@@ -105,6 +101,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
105
101
  };
106
102
  var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
107
103
  const resolved = resolveConfig(themes, defaultTheme, prefix);
104
+ const createStripeGradient = (stripeColor, backgroundColor) => `linear-gradient(45deg, hsl(var(--${prefix}-${stripeColor})) 25%, hsl(var(--${prefix}-${backgroundColor})) 25%, hsl(var(--${prefix}-${backgroundColor})) 50%, hsl(var(--${prefix}-${stripeColor})) 50%, hsl(var(--${prefix}-${stripeColor})) 75%, hsl(var(--${prefix}-${backgroundColor})) 75%, hsl(var(--${prefix}-${backgroundColor})))`;
108
105
  return plugin(
109
106
  ({ addBase, addUtilities, addVariant }) => {
110
107
  addBase({
@@ -163,8 +160,16 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
163
160
  medium: `var(--${prefix}-box-shadow-medium)`,
164
161
  large: `var(--${prefix}-box-shadow-large)`
165
162
  },
163
+ backgroundSize: {
164
+ "stripe-size": "1.25rem 1.25rem"
165
+ },
166
166
  backgroundImage: {
167
- "stripe-gradient": "linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent)"
167
+ "stripe-gradient-default": createStripeGradient("default-200", "default-400"),
168
+ "stripe-gradient-primary": createStripeGradient("primary-200", "primary"),
169
+ "stripe-gradient-secondary": createStripeGradient("secondary-200", "secondary"),
170
+ "stripe-gradient-success": createStripeGradient("success-200", "success"),
171
+ "stripe-gradient-warning": createStripeGradient("warning-200", "warning"),
172
+ "stripe-gradient-danger": createStripeGradient("danger-200", "danger")
168
173
  },
169
174
  transitionDuration: {
170
175
  0: "0ms",
@@ -182,6 +187,7 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
182
187
  );
183
188
  };
184
189
  var nextui = (config = {}) => {
190
+ var _a, _b, _c, _d;
185
191
  const {
186
192
  themes: themeObject = {},
187
193
  defaultTheme = "light",
@@ -190,8 +196,8 @@ var nextui = (config = {}) => {
190
196
  prefix: defaultPrefix = DEFAULT_PREFIX,
191
197
  addCommonColors = false
192
198
  } = config;
193
- const userLightColors = get(themeObject, "light.colors", {});
194
- const userDarkColors = get(themeObject, "dark.colors", {});
199
+ const userLightColors = ((_a = themeObject == null ? void 0 : themeObject.light) == null ? void 0 : _a.colors) || {};
200
+ const userDarkColors = ((_b = themeObject == null ? void 0 : themeObject.dark) == null ? void 0 : _b.colors) || {};
195
201
  const defaultLayoutObj = userLayout && typeof userLayout === "object" ? deepMerge(defaultLayout, userLayout) : defaultLayout;
196
202
  const baseLayouts = {
197
203
  light: {
@@ -204,7 +210,7 @@ var nextui = (config = {}) => {
204
210
  }
205
211
  };
206
212
  let otherThemes = omit(themeObject, ["light", "dark"]) || {};
207
- forEach(otherThemes, ({ extend, colors, layout }, themeName) => {
213
+ Object.entries(otherThemes).forEach(([themeName, { extend, colors, layout }]) => {
208
214
  const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
209
215
  if (colors && typeof colors === "object") {
210
216
  otherThemes[themeName].colors = deepMerge(semanticColors[baseTheme], colors);
@@ -217,11 +223,11 @@ var nextui = (config = {}) => {
217
223
  }
218
224
  });
219
225
  const light = {
220
- layout: deepMerge(baseLayouts.light, get(themeObject, "light.layout", {})),
226
+ layout: deepMerge(baseLayouts.light, ((_c = themeObject == null ? void 0 : themeObject.light) == null ? void 0 : _c.layout) || {}),
221
227
  colors: deepMerge(semanticColors.light, userLightColors)
222
228
  };
223
229
  const dark = {
224
- layout: deepMerge(baseLayouts.dark, get(themeObject, "dark.layout", {})),
230
+ layout: deepMerge(baseLayouts.dark, ((_d = themeObject == null ? void 0 : themeObject.dark) == null ? void 0 : _d.layout) || {}),
225
231
  colors: deepMerge(semanticColors.dark, userDarkColors)
226
232
  };
227
233
  const themes = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  groupDataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -77,14 +77,14 @@ var radio = tv({
77
77
  md: {
78
78
  wrapper: "w-5 h-5",
79
79
  control: "w-2 h-2",
80
- labelWrapper: "ml-2 rtl:mr-2 rtl:ml-[unset]",
80
+ labelWrapper: "ms-2",
81
81
  label: "text-medium",
82
82
  description: "text-small"
83
83
  },
84
84
  lg: {
85
85
  wrapper: "w-6 h-6",
86
86
  control: "w-2.5 h-2.5",
87
- labelWrapper: "ml-2 rtl:mr-2 rtl:ml-[unset]",
87
+ labelWrapper: "ms-2",
88
88
  label: "text-large",
89
89
  description: "text-medium"
90
90
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-BZCSOIUI.mjs";
3
+ } from "./chunk-GQT3YUX3.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-N2KXC5ZE.mjs";
6
+ } from "./chunk-UWE6H66T.mjs";
7
7
  import {
8
8
  dataFocusVisibleClasses,
9
9
  translateCenterClasses
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -44,9 +44,7 @@ var modal = tv({
44
44
  "outline-none",
45
45
  "select-none",
46
46
  "top-1",
47
- "right-1",
48
- "rtl:left-1",
49
- "rtl:right-[unset]",
47
+ "end-1",
50
48
  "p-2",
51
49
  "text-foreground-500",
52
50
  "rounded-full",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/skeleton.ts
6
6
  var skeleton = tv({
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/date-picker.ts
6
6
  var datePicker = tv({
7
7
  slots: {
8
8
  base: "group w-full",
9
- selectorButton: "-mr-2 text-inherit",
9
+ selectorButton: "-mx-2 text-inherit",
10
10
  selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
11
11
  popoverContent: "p-0 w-full",
12
12
  calendar: "w-[calc(var(--visible-months)_*_var(--calendar-width))] shadow-none",
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-BZCSOIUI.mjs";
3
+ } from "./chunk-GQT3YUX3.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-N2KXC5ZE.mjs";
6
+ } from "./chunk-UWE6H66T.mjs";
7
7
 
8
8
  // src/components/snippet.ts
9
9
  var snippet = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses,
6
6
  groupDataFocusVisibleClasses
@@ -168,11 +168,12 @@ var input = tv({
168
168
  fullWidth: {
169
169
  true: {
170
170
  base: "w-full"
171
- }
171
+ },
172
+ false: {}
172
173
  },
173
174
  isClearable: {
174
175
  true: {
175
- input: "peer pr-6 rtl:pr-0 rtl:pl-6",
176
+ input: "peer pe-6 input-search-cancel-button-none",
176
177
  clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
177
178
  }
178
179
  },
@@ -191,7 +192,7 @@ var input = tv({
191
192
  },
192
193
  isRequired: {
193
194
  true: {
194
- label: "after:content-['*'] after:text-danger after:ml-0.5 rtl:after:ml-[unset] rtl:after:mr-0.5"
195
+ label: "after:content-['*'] after:text-danger after:ms-0.5"
195
196
  }
196
197
  },
197
198
  isMultiline: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/image.ts
6
6
  var image = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  twMergeConfig
3
- } from "./chunk-BYWORP66.mjs";
3
+ } from "./chunk-GIXI35A3.mjs";
4
4
 
5
5
  // src/utils/tv.ts
6
6
  import { tv as tvBase } from "tailwind-variants";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/kbd.ts
6
6
  var kbd = tv({
@@ -14,6 +14,11 @@ var custom_default = {
14
14
  },
15
15
  ".tap-highlight-transparent": {
16
16
  "-webkit-tap-highlight-color": "transparent"
17
+ },
18
+ ".input-search-cancel-button-none": {
19
+ "&::-webkit-search-cancel-button": {
20
+ "-webkit-appearance": "none"
21
+ }
17
22
  }
18
23
  };
19
24
 
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-BZCSOIUI.mjs";
3
+ } from "./chunk-GQT3YUX3.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-N2KXC5ZE.mjs";
6
+ } from "./chunk-UWE6H66T.mjs";
7
7
 
8
8
  // src/components/badge.ts
9
9
  var badge = tv({
@@ -1,12 +1,12 @@
1
+ import {
2
+ transition_default
3
+ } from "./chunk-WN6AL2BX.mjs";
1
4
  import {
2
5
  custom_default
3
- } from "./chunk-DI2L75XK.mjs";
6
+ } from "./chunk-W5UU3F46.mjs";
4
7
  import {
5
8
  scrollbar_hide_default
6
9
  } from "./chunk-4Z22WXZX.mjs";
7
- import {
8
- transition_default
9
- } from "./chunk-WN6AL2BX.mjs";
10
10
 
11
11
  // src/utilities/index.ts
12
12
  var utilities = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-BZCSOIUI.mjs";
3
+ } from "./chunk-GQT3YUX3.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-N2KXC5ZE.mjs";
6
+ } from "./chunk-UWE6H66T.mjs";
7
7
  import {
8
8
  collapseAdjacentVariantBorders,
9
9
  dataFocusVisibleClasses
@@ -308,7 +308,10 @@ var button = tv({
308
308
  {
309
309
  variant: "ghost",
310
310
  color: "danger",
311
- class: [colorVariants.ghost.danger, "data-[hover=true]:!bg-danger !text-danger-foreground"]
311
+ class: [
312
+ colorVariants.ghost.danger,
313
+ "data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"
314
+ ]
312
315
  },
313
316
  {
314
317
  isInGroup: true,
@@ -40,7 +40,14 @@ var twMergeConfig = {
40
40
  classGroups: {
41
41
  shadow: [{ shadow: COMMON_UNITS }],
42
42
  "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
43
- "bg-image": ["bg-stripe-gradient"]
43
+ "bg-image": [
44
+ "bg-stripe-gradient-default",
45
+ "bg-stripe-gradient-primary",
46
+ "bg-stripe-gradient-secondary",
47
+ "bg-stripe-gradient-success",
48
+ "bg-stripe-gradient-warning",
49
+ "bg-stripe-gradient-danger"
50
+ ]
44
51
  }
45
52
  };
46
53
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  accordion,
3
3
  accordionItem
4
- } from "../chunk-MVG7GLBD.mjs";
4
+ } from "../chunk-HIFLYEAM.mjs";
5
5
  import "../chunk-IV3K5WDK.mjs";
6
- import "../chunk-3XVMTUU7.mjs";
7
- import "../chunk-BZCSOIUI.mjs";
8
- import "../chunk-N2KXC5ZE.mjs";
9
- import "../chunk-BYWORP66.mjs";
6
+ import "../chunk-GQT3YUX3.mjs";
7
+ import "../chunk-46U6G7UJ.mjs";
8
+ import "../chunk-UWE6H66T.mjs";
9
+ import "../chunk-GIXI35A3.mjs";
10
10
  import "../chunk-XHQUSKIE.mjs";
11
11
  export {
12
12
  accordion,