@nextui-org/theme 2.2.10 → 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-BOVVTMHS.mjs → chunk-2TAKWWRG.mjs} +5 -5
  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-OUNBTYJ7.mjs → chunk-FB2NWPDB.mjs} +12 -12
  17. package/dist/{chunk-WJIRIXV4.mjs → chunk-FJGKW3ZE.mjs} +29 -38
  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-XEPPBQPJ.mjs → chunk-HNRFZTEX.mjs} +19 -19
  24. package/dist/{chunk-FE2UYWMQ.mjs → chunk-HZ7J23VD.mjs} +37 -44
  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-4MIBATA4.mjs → chunk-LVAEW6WR.mjs} +15 -15
  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-TSTU52NB.mjs → chunk-QFGVVQRM.mjs} +5 -5
  37. package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
  38. package/dist/{chunk-I33PMOA3.mjs → chunk-TNFNBUPA.mjs} +48 -47
  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 +12 -5
  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 +19 -12
  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 +26 -19
  77. package/dist/components/date-input.mjs +3 -3
  78. package/dist/components/date-picker.js +12 -5
  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 +503 -210
  93. package/dist/components/index.mjs +68 -60
  94. package/dist/components/input.d.ts +7 -0
  95. package/dist/components/input.js +55 -47
  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 +22 -15
  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 +44 -44
  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 +36 -38
  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 +528 -224
  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
 
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";
@@ -8,7 +8,7 @@ import {
8
8
  // src/components/radio.ts
9
9
  var radio = tv({
10
10
  slots: {
11
- base: "group/radio relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
11
+ base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
12
12
  wrapper: [
13
13
  "relative",
14
14
  "inline-flex",
@@ -21,7 +21,7 @@ var radio = tv({
21
21
  "box-border",
22
22
  "border-default",
23
23
  "rounded-full",
24
- "group-data-[hover-unselected=true]/radio:bg-default-100",
24
+ "group-data-[hover-unselected=true]:bg-default-100",
25
25
  ...groupDataFocusVisibleClasses
26
26
  ],
27
27
  labelWrapper: "flex flex-col ml-1",
@@ -33,8 +33,8 @@ var radio = tv({
33
33
  "scale-0",
34
34
  "origin-center",
35
35
  "rounded-full",
36
- "group-data-[selected=true]/radio:opacity-100",
37
- "group-data-[selected=true]/radio:scale-100"
36
+ "group-data-[selected=true]:opacity-100",
37
+ "group-data-[selected=true]:scale-100"
38
38
  ],
39
39
  label: "relative text-foreground select-none",
40
40
  description: "relative text-foreground-400"
@@ -43,27 +43,27 @@ var radio = tv({
43
43
  color: {
44
44
  default: {
45
45
  control: "bg-default-500 text-default-foreground",
46
- wrapper: "group-data-[selected=true]/radio:border-default-500"
46
+ wrapper: "group-data-[selected=true]:border-default-500"
47
47
  },
48
48
  primary: {
49
49
  control: "bg-primary text-primary-foreground",
50
- wrapper: "group-data-[selected=true]/radio:border-primary"
50
+ wrapper: "group-data-[selected=true]:border-primary"
51
51
  },
52
52
  secondary: {
53
53
  control: "bg-secondary text-secondary-foreground",
54
- wrapper: "group-data-[selected=true]/radio:border-secondary"
54
+ wrapper: "group-data-[selected=true]:border-secondary"
55
55
  },
56
56
  success: {
57
57
  control: "bg-success text-success-foreground",
58
- wrapper: "group-data-[selected=true]/radio:border-success"
58
+ wrapper: "group-data-[selected=true]:border-success"
59
59
  },
60
60
  warning: {
61
61
  control: "bg-warning text-warning-foreground",
62
- wrapper: "group-data-[selected=true]/radio:border-warning"
62
+ wrapper: "group-data-[selected=true]:border-warning"
63
63
  },
64
64
  danger: {
65
65
  control: "bg-danger text-danger-foreground",
66
- wrapper: "group-data-[selected=true]/radio:border-danger"
66
+ wrapper: "group-data-[selected=true]:border-danger"
67
67
  }
68
68
  },
69
69
  size: {
@@ -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
  }
@@ -97,7 +97,7 @@ var radio = tv({
97
97
  isInvalid: {
98
98
  true: {
99
99
  control: "bg-danger text-danger-foreground",
100
- wrapper: "border-danger group-data-[selected=true]/radio:border-danger",
100
+ wrapper: "border-danger group-data-[selected=true]:border-danger",
101
101
  label: "text-danger",
102
102
  description: "text-danger-300"
103
103
  }
@@ -106,7 +106,7 @@ var radio = tv({
106
106
  true: {},
107
107
  false: {
108
108
  wrapper: [
109
- "group-data-[pressed=true]/radio:scale-95",
109
+ "group-data-[pressed=true]:scale-95",
110
110
  "transition-transform-colors",
111
111
  "motion-reduce:transition-none"
112
112
  ],
@@ -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
- base: "group/datepicker w-full",
9
- selectorButton: "-mr-2 text-inherit",
8
+ base: "group w-full",
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",
@@ -18,9 +18,9 @@ var datePicker = tv({
18
18
  var dateRangePicker = tv({
19
19
  extend: datePicker,
20
20
  slots: {
21
- calendar: "group/daterangepicker",
21
+ calendar: "group",
22
22
  bottomContent: "flex flex-col gap-y-2",
23
- timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]/daterangepicker:flex-row",
23
+ timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]:flex-row",
24
24
  separator: "-mx-1 text-inherit"
25
25
  }
26
26
  });
@@ -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({