@nextui-org/theme 0.0.0-canary-20240429052129

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 (286) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +24 -0
  3. package/colors.d.ts +1 -0
  4. package/colors.js +1 -0
  5. package/dist/animations/index.d.ts +71 -0
  6. package/dist/animations/index.js +98 -0
  7. package/dist/animations/index.mjs +6 -0
  8. package/dist/chunk-2PIR7DFM.mjs +77 -0
  9. package/dist/chunk-3FZU25GR.mjs +33 -0
  10. package/dist/chunk-3LKKH4AR.mjs +17 -0
  11. package/dist/chunk-4Z22WXZX.mjs +21 -0
  12. package/dist/chunk-4ZM6AI3H.mjs +366 -0
  13. package/dist/chunk-6XJJCV76.mjs +243 -0
  14. package/dist/chunk-726LN7M3.mjs +20 -0
  15. package/dist/chunk-7ODIBITJ.mjs +172 -0
  16. package/dist/chunk-7TJINK3S.mjs +390 -0
  17. package/dist/chunk-AC6F4DT6.mjs +485 -0
  18. package/dist/chunk-AGUZRGXC.mjs +12 -0
  19. package/dist/chunk-AO2AAOEJ.mjs +56 -0
  20. package/dist/chunk-AT4OXKKK.mjs +58 -0
  21. package/dist/chunk-CMYR6AOY.mjs +0 -0
  22. package/dist/chunk-CQY2A2EX.mjs +401 -0
  23. package/dist/chunk-CTY7IP65.mjs +723 -0
  24. package/dist/chunk-CUUGEIPA.mjs +474 -0
  25. package/dist/chunk-D2XMP2NC.mjs +6 -0
  26. package/dist/chunk-DCEG5LGX.mjs +17 -0
  27. package/dist/chunk-DI2L75XK.mjs +22 -0
  28. package/dist/chunk-DMASP6FA.mjs +74 -0
  29. package/dist/chunk-ECP4S2VZ.mjs +36 -0
  30. package/dist/chunk-FRI2VDCA.mjs +306 -0
  31. package/dist/chunk-G4RCK475.mjs +155 -0
  32. package/dist/chunk-GHZ36ATJ.mjs +17 -0
  33. package/dist/chunk-GMMETTYU.mjs +30 -0
  34. package/dist/chunk-HPFX3B3F.mjs +59 -0
  35. package/dist/chunk-HUBDRSA4.mjs +49 -0
  36. package/dist/chunk-I6ESTKKY.mjs +422 -0
  37. package/dist/chunk-IAS3SFA4.mjs +42 -0
  38. package/dist/chunk-IP3D7KVB.mjs +181 -0
  39. package/dist/chunk-JQTFOIV7.mjs +108 -0
  40. package/dist/chunk-JUEOCLA3.mjs +17 -0
  41. package/dist/chunk-K7LK7NCE.mjs +0 -0
  42. package/dist/chunk-KA5SSSWD.mjs +177 -0
  43. package/dist/chunk-KCOC3H6R.mjs +98 -0
  44. package/dist/chunk-KUNVFLXJ.mjs +41 -0
  45. package/dist/chunk-KVPPQD2E.mjs +231 -0
  46. package/dist/chunk-L2OL7R23.mjs +17 -0
  47. package/dist/chunk-LDBYFTHC.mjs +134 -0
  48. package/dist/chunk-LKKSQVZ6.mjs +163 -0
  49. package/dist/chunk-M3MKSQ42.mjs +124 -0
  50. package/dist/chunk-M63AFAHO.mjs +0 -0
  51. package/dist/chunk-MUWHEIW6.mjs +831 -0
  52. package/dist/chunk-NAUU2OUH.mjs +23 -0
  53. package/dist/chunk-NYSEAAK5.mjs +214 -0
  54. package/dist/chunk-OQIS4MXV.mjs +205 -0
  55. package/dist/chunk-OR5PUD24.mjs +17 -0
  56. package/dist/chunk-PSEUPXFL.mjs +122 -0
  57. package/dist/chunk-QZTWGJ72.mjs +16 -0
  58. package/dist/chunk-RNAP5C4C.mjs +406 -0
  59. package/dist/chunk-S573WUYY.mjs +381 -0
  60. package/dist/chunk-SEKJ6A6T.mjs +396 -0
  61. package/dist/chunk-T3GWIVAM.mjs +17 -0
  62. package/dist/chunk-UODOTC2G.mjs +21 -0
  63. package/dist/chunk-UVXYPGDZ.mjs +0 -0
  64. package/dist/chunk-V5ZTBGGO.mjs +42 -0
  65. package/dist/chunk-VDRJHB4F.mjs +187 -0
  66. package/dist/chunk-VFJ7C5ZV.mjs +391 -0
  67. package/dist/chunk-VJTX4YUQ.mjs +31 -0
  68. package/dist/chunk-W6DVXJB3.mjs +21 -0
  69. package/dist/chunk-WAAJG22Y.mjs +90 -0
  70. package/dist/chunk-WBQAMGXK.mjs +0 -0
  71. package/dist/chunk-WQEDQHKX.mjs +0 -0
  72. package/dist/chunk-X7N3NQ6S.mjs +158 -0
  73. package/dist/chunk-XHQUSKIE.mjs +60 -0
  74. package/dist/chunk-YJLQTC7L.mjs +0 -0
  75. package/dist/chunk-YSA7EQBH.mjs +237 -0
  76. package/dist/chunk-YZYGFPNK.mjs +17 -0
  77. package/dist/colors/blue.d.ts +14 -0
  78. package/dist/colors/blue.js +41 -0
  79. package/dist/colors/blue.mjs +6 -0
  80. package/dist/colors/common.d.ts +103 -0
  81. package/dist/colors/common.js +155 -0
  82. package/dist/colors/common.mjs +14 -0
  83. package/dist/colors/cyan.d.ts +14 -0
  84. package/dist/colors/cyan.js +41 -0
  85. package/dist/colors/cyan.mjs +6 -0
  86. package/dist/colors/green.d.ts +14 -0
  87. package/dist/colors/green.js +41 -0
  88. package/dist/colors/green.mjs +6 -0
  89. package/dist/colors/index.d.ts +109 -0
  90. package/dist/colors/index.js +335 -0
  91. package/dist/colors/index.mjs +24 -0
  92. package/dist/colors/pink.d.ts +14 -0
  93. package/dist/colors/pink.js +41 -0
  94. package/dist/colors/pink.mjs +6 -0
  95. package/dist/colors/purple.d.ts +14 -0
  96. package/dist/colors/purple.js +41 -0
  97. package/dist/colors/purple.mjs +6 -0
  98. package/dist/colors/red.d.ts +14 -0
  99. package/dist/colors/red.js +41 -0
  100. package/dist/colors/red.mjs +6 -0
  101. package/dist/colors/semantic.d.ts +10 -0
  102. package/dist/colors/semantic.js +327 -0
  103. package/dist/colors/semantic.mjs +20 -0
  104. package/dist/colors/types.d.ts +39 -0
  105. package/dist/colors/types.js +18 -0
  106. package/dist/colors/types.mjs +1 -0
  107. package/dist/colors/yellow.d.ts +14 -0
  108. package/dist/colors/yellow.js +41 -0
  109. package/dist/colors/yellow.mjs +6 -0
  110. package/dist/colors/zinc.d.ts +14 -0
  111. package/dist/colors/zinc.js +41 -0
  112. package/dist/colors/zinc.mjs +6 -0
  113. package/dist/colors.d.ts +4 -0
  114. package/dist/colors.js +335 -0
  115. package/dist/colors.mjs +25 -0
  116. package/dist/components/accordion.d.ts +402 -0
  117. package/dist/components/accordion.js +154 -0
  118. package/dist/components/accordion.mjs +13 -0
  119. package/dist/components/autocomplete.d.ts +180 -0
  120. package/dist/components/autocomplete.js +107 -0
  121. package/dist/components/autocomplete.mjs +7 -0
  122. package/dist/components/avatar.d.ts +572 -0
  123. package/dist/components/avatar.js +320 -0
  124. package/dist/components/avatar.mjs +13 -0
  125. package/dist/components/badge.d.ts +484 -0
  126. package/dist/components/badge.js +501 -0
  127. package/dist/components/badge.mjs +11 -0
  128. package/dist/components/breadcrumbs.d.ts +816 -0
  129. package/dist/components/breadcrumbs.js +299 -0
  130. package/dist/components/breadcrumbs.mjs +13 -0
  131. package/dist/components/button.d.ts +393 -0
  132. package/dist/components/button.js +556 -0
  133. package/dist/components/button.mjs +13 -0
  134. package/dist/components/calendar.d.ts +495 -0
  135. package/dist/components/calendar.js +456 -0
  136. package/dist/components/calendar.mjs +11 -0
  137. package/dist/components/card.d.ts +550 -0
  138. package/dist/components/card.js +213 -0
  139. package/dist/components/card.mjs +11 -0
  140. package/dist/components/checkbox.d.ts +773 -0
  141. package/dist/components/checkbox.js +271 -0
  142. package/dist/components/checkbox.mjs +13 -0
  143. package/dist/components/chip.d.ts +737 -0
  144. package/dist/components/chip.js +611 -0
  145. package/dist/components/chip.mjs +11 -0
  146. package/dist/components/circular-progress.d.ts +430 -0
  147. package/dist/components/circular-progress.js +139 -0
  148. package/dist/components/circular-progress.mjs +7 -0
  149. package/dist/components/code.d.ts +165 -0
  150. package/dist/components/code.js +162 -0
  151. package/dist/components/code.mjs +11 -0
  152. package/dist/components/date-input.d.ts +815 -0
  153. package/dist/components/date-input.js +439 -0
  154. package/dist/components/date-input.mjs +7 -0
  155. package/dist/components/date-picker.d.ts +325 -0
  156. package/dist/components/date-picker.js +81 -0
  157. package/dist/components/date-picker.mjs +9 -0
  158. package/dist/components/divider.d.ts +52 -0
  159. package/dist/components/divider.js +70 -0
  160. package/dist/components/divider.mjs +7 -0
  161. package/dist/components/drip.d.ts +14 -0
  162. package/dist/components/drip.js +61 -0
  163. package/dist/components/drip.mjs +7 -0
  164. package/dist/components/dropdown.d.ts +417 -0
  165. package/dist/components/dropdown.js +424 -0
  166. package/dist/components/dropdown.mjs +17 -0
  167. package/dist/components/image.d.ts +355 -0
  168. package/dist/components/image.js +183 -0
  169. package/dist/components/image.mjs +7 -0
  170. package/dist/components/index.d.ts +41 -0
  171. package/dist/components/index.js +8804 -0
  172. package/dist/components/index.mjs +194 -0
  173. package/dist/components/input.d.ts +942 -0
  174. package/dist/components/input.js +893 -0
  175. package/dist/components/input.mjs +11 -0
  176. package/dist/components/kbd.d.ts +51 -0
  177. package/dist/components/kbd.js +82 -0
  178. package/dist/components/kbd.mjs +7 -0
  179. package/dist/components/link.d.ts +232 -0
  180. package/dist/components/link.js +164 -0
  181. package/dist/components/link.mjs +13 -0
  182. package/dist/components/listbox.d.ts +3 -0
  183. package/dist/components/listbox.js +531 -0
  184. package/dist/components/listbox.mjs +16 -0
  185. package/dist/components/menu.d.ts +512 -0
  186. package/dist/components/menu.js +531 -0
  187. package/dist/components/menu.mjs +15 -0
  188. package/dist/components/modal.d.ts +765 -0
  189. package/dist/components/modal.js +236 -0
  190. package/dist/components/modal.mjs +11 -0
  191. package/dist/components/navbar.d.ts +463 -0
  192. package/dist/components/navbar.js +260 -0
  193. package/dist/components/navbar.mjs +11 -0
  194. package/dist/components/pagination.d.ts +587 -0
  195. package/dist/components/pagination.js +532 -0
  196. package/dist/components/pagination.mjs +11 -0
  197. package/dist/components/popover.d.ts +715 -0
  198. package/dist/components/popover.js +303 -0
  199. package/dist/components/popover.mjs +11 -0
  200. package/dist/components/progress.d.ts +294 -0
  201. package/dist/components/progress.js +173 -0
  202. package/dist/components/progress.mjs +7 -0
  203. package/dist/components/radio.d.ts +708 -0
  204. package/dist/components/radio.js +220 -0
  205. package/dist/components/radio.mjs +13 -0
  206. package/dist/components/scroll-shadow.d.ts +82 -0
  207. package/dist/components/scroll-shadow.js +85 -0
  208. package/dist/components/scroll-shadow.mjs +7 -0
  209. package/dist/components/select.d.ts +901 -0
  210. package/dist/components/select.js +778 -0
  211. package/dist/components/select.mjs +11 -0
  212. package/dist/components/skeleton.d.ts +105 -0
  213. package/dist/components/skeleton.js +105 -0
  214. package/dist/components/skeleton.mjs +7 -0
  215. package/dist/components/slider.d.ts +1024 -0
  216. package/dist/components/slider.js +446 -0
  217. package/dist/components/slider.mjs +11 -0
  218. package/dist/components/snippet.d.ts +415 -0
  219. package/dist/components/snippet.js +426 -0
  220. package/dist/components/snippet.mjs +11 -0
  221. package/dist/components/spacer.d.ts +52 -0
  222. package/dist/components/spacer.js +70 -0
  223. package/dist/components/spacer.mjs +7 -0
  224. package/dist/components/spinner.d.ts +564 -0
  225. package/dist/components/spinner.js +171 -0
  226. package/dist/components/spinner.mjs +7 -0
  227. package/dist/components/table.d.ts +777 -0
  228. package/dist/components/table.js +286 -0
  229. package/dist/components/table.mjs +11 -0
  230. package/dist/components/tabs.d.ts +772 -0
  231. package/dist/components/tabs.js +522 -0
  232. package/dist/components/tabs.mjs +11 -0
  233. package/dist/components/toggle.d.ts +485 -0
  234. package/dist/components/toggle.js +228 -0
  235. package/dist/components/toggle.mjs +11 -0
  236. package/dist/components/user.d.ts +81 -0
  237. package/dist/components/user.js +78 -0
  238. package/dist/components/user.mjs +11 -0
  239. package/dist/default-layout.d.ts +8 -0
  240. package/dist/default-layout.js +75 -0
  241. package/dist/default-layout.mjs +10 -0
  242. package/dist/index.d.ts +52 -0
  243. package/dist/index.js +9585 -0
  244. package/dist/index.mjs +252 -0
  245. package/dist/plugin.d.ts +12 -0
  246. package/dist/plugin.js +775 -0
  247. package/dist/plugin.mjs +28 -0
  248. package/dist/types.d.ts +138 -0
  249. package/dist/types.js +18 -0
  250. package/dist/types.mjs +1 -0
  251. package/dist/utilities/custom.d.ts +22 -0
  252. package/dist/utilities/custom.js +44 -0
  253. package/dist/utilities/custom.mjs +6 -0
  254. package/dist/utilities/index.d.ts +83 -0
  255. package/dist/utilities/index.js +128 -0
  256. package/dist/utilities/index.mjs +9 -0
  257. package/dist/utilities/scrollbar-hide.d.ts +24 -0
  258. package/dist/utilities/scrollbar-hide.js +43 -0
  259. package/dist/utilities/scrollbar-hide.mjs +6 -0
  260. package/dist/utilities/transition.d.ts +58 -0
  261. package/dist/utilities/transition.js +83 -0
  262. package/dist/utilities/transition.mjs +8 -0
  263. package/dist/utils/classes.d.ts +34 -0
  264. package/dist/utils/classes.js +91 -0
  265. package/dist/utils/classes.mjs +20 -0
  266. package/dist/utils/index.d.ts +4 -0
  267. package/dist/utils/index.js +169 -0
  268. package/dist/utils/index.mjs +26 -0
  269. package/dist/utils/object.d.ts +12 -0
  270. package/dist/utils/object.js +73 -0
  271. package/dist/utils/object.mjs +10 -0
  272. package/dist/utils/theme.d.ts +9 -0
  273. package/dist/utils/theme.js +30 -0
  274. package/dist/utils/theme.mjs +6 -0
  275. package/dist/utils/tv.d.ts +5 -0
  276. package/dist/utils/tv.js +54 -0
  277. package/dist/utils/tv.mjs +6 -0
  278. package/dist/utils/types.d.ts +10 -0
  279. package/dist/utils/types.js +18 -0
  280. package/dist/utils/types.mjs +1 -0
  281. package/dist/utils/variants.d.ts +67 -0
  282. package/dist/utils/variants.js +101 -0
  283. package/dist/utils/variants.mjs +6 -0
  284. package/package.json +100 -0
  285. package/plugin.d.ts +1 -0
  286. package/plugin.js +1 -0
@@ -0,0 +1,60 @@
1
+ // src/utils/classes.ts
2
+ var baseStyles = (prefix) => ({
3
+ color: `hsl(var(--${prefix}-foreground))`,
4
+ backgroundColor: `hsl(var(--${prefix}-background))`
5
+ });
6
+ var focusVisibleClasses = [
7
+ "focus-visible:z-10",
8
+ "focus-visible:outline-2",
9
+ "focus-visible:outline-focus",
10
+ "focus-visible:outline-offset-2"
11
+ ];
12
+ var dataFocusVisibleClasses = [
13
+ "outline-none",
14
+ "data-[focus-visible=true]:z-10",
15
+ "data-[focus-visible=true]:outline-2",
16
+ "data-[focus-visible=true]:outline-focus",
17
+ "data-[focus-visible=true]:outline-offset-2"
18
+ ];
19
+ var groupDataFocusVisibleClasses = [
20
+ "outline-none",
21
+ "group-data-[focus-visible=true]:z-10",
22
+ "group-data-[focus-visible=true]:ring-2",
23
+ "group-data-[focus-visible=true]:ring-focus",
24
+ "group-data-[focus-visible=true]:ring-offset-2",
25
+ "group-data-[focus-visible=true]:ring-offset-background"
26
+ ];
27
+ var ringClasses = [
28
+ "outline-none",
29
+ "ring-2",
30
+ "ring-focus",
31
+ "ring-offset-2",
32
+ "ring-offset-background"
33
+ ];
34
+ var translateCenterClasses = [
35
+ "absolute",
36
+ "top-1/2",
37
+ "left-1/2",
38
+ "-translate-x-1/2",
39
+ "-translate-y-1/2"
40
+ ];
41
+ var absoluteFullClasses = ["absolute", "inset-0"];
42
+ var collapseAdjacentVariantBorders = {
43
+ default: ["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],
44
+ primary: ["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
45
+ secondary: ["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
46
+ success: ["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],
47
+ warning: ["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],
48
+ danger: ["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]
49
+ };
50
+
51
+ export {
52
+ baseStyles,
53
+ focusVisibleClasses,
54
+ dataFocusVisibleClasses,
55
+ groupDataFocusVisibleClasses,
56
+ ringClasses,
57
+ translateCenterClasses,
58
+ absoluteFullClasses,
59
+ collapseAdjacentVariantBorders
60
+ };
File without changes
@@ -0,0 +1,237 @@
1
+ import {
2
+ isBaseTheme
3
+ } from "./chunk-D2XMP2NC.mjs";
4
+ import {
5
+ utilities
6
+ } from "./chunk-726LN7M3.mjs";
7
+ import {
8
+ DEFAULT_TRANSITION_DURATION
9
+ } from "./chunk-HPFX3B3F.mjs";
10
+ import {
11
+ baseStyles
12
+ } from "./chunk-XHQUSKIE.mjs";
13
+ import {
14
+ semanticColors
15
+ } from "./chunk-G4RCK475.mjs";
16
+ import {
17
+ flattenThemeObject
18
+ } from "./chunk-KUNVFLXJ.mjs";
19
+ import {
20
+ darkLayout,
21
+ defaultLayout,
22
+ lightLayout
23
+ } from "./chunk-HUBDRSA4.mjs";
24
+ import {
25
+ animations
26
+ } from "./chunk-DMASP6FA.mjs";
27
+ import {
28
+ commonColors
29
+ } from "./chunk-IAS3SFA4.mjs";
30
+
31
+ // src/plugin.ts
32
+ import Color from "color";
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
+ import deepMerge from "deepmerge";
40
+ var DEFAULT_PREFIX = "nextui";
41
+ var parsedColorsCache = {};
42
+ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
43
+ const resolved = {
44
+ variants: [],
45
+ utilities: {},
46
+ colors: {}
47
+ };
48
+ for (const [themeName, { extend, layout, colors }] of Object.entries(themes)) {
49
+ let cssSelector = `.${themeName},[data-theme="${themeName}"]`;
50
+ const scheme = themeName === "light" || themeName === "dark" ? themeName : extend;
51
+ if (themeName === defaultTheme) {
52
+ cssSelector = `:root,${cssSelector}`;
53
+ }
54
+ resolved.utilities[cssSelector] = scheme ? {
55
+ "color-scheme": scheme
56
+ } : {};
57
+ const flatColors = flattenThemeObject(colors);
58
+ const flatLayout = layout ? mapKeys(layout, (value, key) => kebabCase(key)) : {};
59
+ resolved.variants.push({
60
+ name: themeName,
61
+ definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
62
+ });
63
+ for (const [colorName, colorValue] of Object.entries(flatColors)) {
64
+ if (!colorValue)
65
+ return;
66
+ try {
67
+ const parsedColor = parsedColorsCache[colorValue] || Color(colorValue).hsl().round(2).array();
68
+ parsedColorsCache[colorValue] = parsedColor;
69
+ const [h, s, l, defaultAlphaValue] = parsedColor;
70
+ const nextuiColorVariable = `--${prefix}-${colorName}`;
71
+ const nextuiOpacityVariable = `--${prefix}-${colorName}-opacity`;
72
+ resolved.utilities[cssSelector][nextuiColorVariable] = `${h} ${s}% ${l}%`;
73
+ if (typeof defaultAlphaValue === "number") {
74
+ resolved.utilities[cssSelector][nextuiOpacityVariable] = defaultAlphaValue.toFixed(2);
75
+ }
76
+ resolved.colors[colorName] = ({ opacityVariable, opacityValue }) => {
77
+ if (!isNaN(+opacityValue)) {
78
+ return `hsl(var(${nextuiColorVariable}) / ${opacityValue})`;
79
+ }
80
+ if (opacityVariable) {
81
+ return `hsl(var(${nextuiColorVariable}) / var(${nextuiOpacityVariable}, var(${opacityVariable})))`;
82
+ }
83
+ return `hsl(var(${nextuiColorVariable}) / var(${nextuiOpacityVariable}, 1))`;
84
+ };
85
+ } catch (error) {
86
+ console.log("error", error == null ? void 0 : error.message);
87
+ }
88
+ }
89
+ for (const [key, value] of Object.entries(flatLayout)) {
90
+ if (!value)
91
+ return;
92
+ const layoutVariablePrefix = `--${prefix}-${key}`;
93
+ if (typeof value === "object") {
94
+ for (const [nestedKey, nestedValue] of Object.entries(value)) {
95
+ const nestedLayoutVariable = `${layoutVariablePrefix}-${nestedKey}`;
96
+ resolved.utilities[cssSelector][nestedLayoutVariable] = nestedValue;
97
+ }
98
+ } else {
99
+ const formattedValue = layoutVariablePrefix.includes("opacity") && typeof value === "number" ? value.toString().replace(/^0\./, ".") : value;
100
+ resolved.utilities[cssSelector][layoutVariablePrefix] = formattedValue;
101
+ }
102
+ }
103
+ }
104
+ return resolved;
105
+ };
106
+ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
107
+ const resolved = resolveConfig(themes, defaultTheme, prefix);
108
+ return plugin(
109
+ ({ addBase, addUtilities, addVariant }) => {
110
+ addBase({
111
+ [":root, [data-theme]"]: {
112
+ ...baseStyles(prefix)
113
+ }
114
+ });
115
+ addUtilities({ ...resolved == null ? void 0 : resolved.utilities, ...utilities });
116
+ resolved == null ? void 0 : resolved.variants.forEach((variant) => {
117
+ addVariant(variant.name, variant.definition);
118
+ });
119
+ },
120
+ {
121
+ theme: {
122
+ extend: {
123
+ colors: {
124
+ ...addCommonColors ? commonColors : {},
125
+ ...resolved == null ? void 0 : resolved.colors
126
+ },
127
+ scale: {
128
+ "80": "0.8",
129
+ "85": "0.85"
130
+ },
131
+ height: {
132
+ divider: `var(--${prefix}-divider-weight)`
133
+ },
134
+ width: {
135
+ divider: `var(--${prefix}-divider-weight)`
136
+ },
137
+ fontSize: {
138
+ tiny: [`var(--${prefix}-font-size-tiny)`, `var(--${prefix}-line-height-tiny)`],
139
+ small: [`var(--${prefix}-font-size-small)`, `var(--${prefix}-line-height-small)`],
140
+ medium: [`var(--${prefix}-font-size-medium)`, `var(--${prefix}-line-height-medium)`],
141
+ large: [`var(--${prefix}-font-size-large)`, `var(--${prefix}-line-height-large)`]
142
+ },
143
+ borderRadius: {
144
+ small: `var(--${prefix}-radius-small)`,
145
+ medium: `var(--${prefix}-radius-medium)`,
146
+ large: `var(--${prefix}-radius-large)`
147
+ },
148
+ opacity: {
149
+ hover: `var(--${prefix}-hover-opacity)`,
150
+ disabled: `var(--${prefix}-disabled-opacity)`
151
+ },
152
+ borderWidth: {
153
+ small: `var(--${prefix}-border-width-small)`,
154
+ medium: `var(--${prefix}-border-width-medium)`,
155
+ large: `var(--${prefix}-border-width-large)`,
156
+ 1: "1px",
157
+ 1.5: "1.5px",
158
+ 3: "3px",
159
+ 5: "5px"
160
+ },
161
+ boxShadow: {
162
+ small: `var(--${prefix}-box-shadow-small)`,
163
+ medium: `var(--${prefix}-box-shadow-medium)`,
164
+ large: `var(--${prefix}-box-shadow-large)`
165
+ },
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)"
168
+ },
169
+ transitionDuration: {
170
+ 0: "0ms",
171
+ 250: "250ms",
172
+ 400: "400ms",
173
+ DEFAULT: DEFAULT_TRANSITION_DURATION
174
+ },
175
+ transitionTimingFunction: {
176
+ "soft-spring": "cubic-bezier(0.155, 1.105, 0.295, 1.12)"
177
+ },
178
+ ...animations
179
+ }
180
+ }
181
+ }
182
+ );
183
+ };
184
+ var nextui = (config = {}) => {
185
+ const {
186
+ themes: themeObject = {},
187
+ defaultTheme = "light",
188
+ layout: userLayout,
189
+ defaultExtendTheme = "light",
190
+ prefix: defaultPrefix = DEFAULT_PREFIX,
191
+ addCommonColors = false
192
+ } = config;
193
+ const userLightColors = get(themeObject, "light.colors", {});
194
+ const userDarkColors = get(themeObject, "dark.colors", {});
195
+ const defaultLayoutObj = userLayout && typeof userLayout === "object" ? deepMerge(defaultLayout, userLayout) : defaultLayout;
196
+ const baseLayouts = {
197
+ light: {
198
+ ...defaultLayoutObj,
199
+ ...lightLayout
200
+ },
201
+ dark: {
202
+ ...defaultLayoutObj,
203
+ ...darkLayout
204
+ }
205
+ };
206
+ let otherThemes = omit(themeObject, ["light", "dark"]) || {};
207
+ forEach(otherThemes, ({ extend, colors, layout }, themeName) => {
208
+ const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
209
+ if (colors && typeof colors === "object") {
210
+ otherThemes[themeName].colors = deepMerge(semanticColors[baseTheme], colors);
211
+ }
212
+ if (layout && typeof layout === "object") {
213
+ otherThemes[themeName].layout = deepMerge(
214
+ extend ? baseLayouts[extend] : defaultLayoutObj,
215
+ layout
216
+ );
217
+ }
218
+ });
219
+ const light = {
220
+ layout: deepMerge(baseLayouts.light, get(themeObject, "light.layout", {})),
221
+ colors: deepMerge(semanticColors.light, userLightColors)
222
+ };
223
+ const dark = {
224
+ layout: deepMerge(baseLayouts.dark, get(themeObject, "dark.layout", {})),
225
+ colors: deepMerge(semanticColors.dark, userDarkColors)
226
+ };
227
+ const themes = {
228
+ light,
229
+ dark,
230
+ ...otherThemes
231
+ };
232
+ return corePlugin(themes, defaultTheme, defaultPrefix, addCommonColors);
233
+ };
234
+
235
+ export {
236
+ nextui
237
+ };
@@ -0,0 +1,17 @@
1
+ // src/colors/red.ts
2
+ var red = {
3
+ 50: "#fee7ef",
4
+ 100: "#fdd0df",
5
+ 200: "#faa0bf",
6
+ 300: "#f871a0",
7
+ 400: "#f54180",
8
+ 500: "#f31260",
9
+ 600: "#c20e4d",
10
+ 700: "#920b3a",
11
+ 800: "#610726",
12
+ 900: "#310413"
13
+ };
14
+
15
+ export {
16
+ red
17
+ };
@@ -0,0 +1,14 @@
1
+ declare const blue: {
2
+ 50: string;
3
+ 100: string;
4
+ 200: string;
5
+ 300: string;
6
+ 400: string;
7
+ 500: string;
8
+ 600: string;
9
+ 700: string;
10
+ 800: string;
11
+ 900: string;
12
+ };
13
+
14
+ export { blue };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/colors/blue.ts
21
+ var blue_exports = {};
22
+ __export(blue_exports, {
23
+ blue: () => blue
24
+ });
25
+ module.exports = __toCommonJS(blue_exports);
26
+ var blue = {
27
+ 50: "#e6f1fe",
28
+ 100: "#cce3fd",
29
+ 200: "#99c7fb",
30
+ 300: "#66aaf9",
31
+ 400: "#338ef7",
32
+ 500: "#006FEE",
33
+ 600: "#005bc4",
34
+ 700: "#004493",
35
+ 800: "#002e62",
36
+ 900: "#001731"
37
+ };
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ blue
41
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ blue
3
+ } from "../chunk-GHZ36ATJ.mjs";
4
+ export {
5
+ blue
6
+ };
@@ -0,0 +1,103 @@
1
+ declare const commonColors: {
2
+ white: string;
3
+ black: string;
4
+ blue: {
5
+ 50: string;
6
+ 100: string;
7
+ 200: string;
8
+ 300: string;
9
+ 400: string;
10
+ 500: string;
11
+ 600: string;
12
+ 700: string;
13
+ 800: string;
14
+ 900: string;
15
+ };
16
+ green: {
17
+ 50: string;
18
+ 100: string;
19
+ 200: string;
20
+ 300: string;
21
+ 400: string;
22
+ 500: string;
23
+ 600: string;
24
+ 700: string;
25
+ 800: string;
26
+ 900: string;
27
+ };
28
+ pink: {
29
+ 50: string;
30
+ 100: string;
31
+ 200: string;
32
+ 300: string;
33
+ 400: string;
34
+ 500: string;
35
+ 600: string;
36
+ 700: string;
37
+ 800: string;
38
+ 900: string;
39
+ };
40
+ purple: {
41
+ 50: string;
42
+ 100: string;
43
+ 200: string;
44
+ 300: string;
45
+ 400: string;
46
+ 500: string;
47
+ 600: string;
48
+ 700: string;
49
+ 800: string;
50
+ 900: string;
51
+ };
52
+ red: {
53
+ 50: string;
54
+ 100: string;
55
+ 200: string;
56
+ 300: string;
57
+ 400: string;
58
+ 500: string;
59
+ 600: string;
60
+ 700: string;
61
+ 800: string;
62
+ 900: string;
63
+ };
64
+ yellow: {
65
+ 50: string;
66
+ 100: string;
67
+ 200: string;
68
+ 300: string;
69
+ 400: string;
70
+ 500: string;
71
+ 600: string;
72
+ 700: string;
73
+ 800: string;
74
+ 900: string;
75
+ };
76
+ cyan: {
77
+ 50: string;
78
+ 100: string;
79
+ 200: string;
80
+ 300: string;
81
+ 400: string;
82
+ 500: string;
83
+ 600: string;
84
+ 700: string;
85
+ 800: string;
86
+ 900: string;
87
+ };
88
+ zinc: {
89
+ "50": string;
90
+ "100": string;
91
+ "200": string;
92
+ "300": string;
93
+ "400": string;
94
+ "500": string;
95
+ "600": string;
96
+ "700": string;
97
+ "800": string;
98
+ "900": string;
99
+ };
100
+ };
101
+ type CommonColors = typeof commonColors;
102
+
103
+ export { CommonColors, commonColors };
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/colors/common.ts
21
+ var common_exports = {};
22
+ __export(common_exports, {
23
+ commonColors: () => commonColors
24
+ });
25
+ module.exports = __toCommonJS(common_exports);
26
+
27
+ // src/colors/blue.ts
28
+ var blue = {
29
+ 50: "#e6f1fe",
30
+ 100: "#cce3fd",
31
+ 200: "#99c7fb",
32
+ 300: "#66aaf9",
33
+ 400: "#338ef7",
34
+ 500: "#006FEE",
35
+ 600: "#005bc4",
36
+ 700: "#004493",
37
+ 800: "#002e62",
38
+ 900: "#001731"
39
+ };
40
+
41
+ // src/colors/green.ts
42
+ var green = {
43
+ 50: "#e8faf0",
44
+ 100: "#d1f4e0",
45
+ 200: "#a2e9c1",
46
+ 300: "#74dfa2",
47
+ 400: "#45d483",
48
+ 500: "#17c964",
49
+ 600: "#12a150",
50
+ 700: "#0e793c",
51
+ 800: "#095028",
52
+ 900: "#052814"
53
+ };
54
+
55
+ // src/colors/pink.ts
56
+ var pink = {
57
+ 50: "#ffedfa",
58
+ 100: "#ffdcf5",
59
+ 200: "#ffb8eb",
60
+ 300: "#ff95e1",
61
+ 400: "#ff71d7",
62
+ 500: "#ff4ecd",
63
+ 600: "#cc3ea4",
64
+ 700: "#992f7b",
65
+ 800: "#661f52",
66
+ 900: "#331029"
67
+ };
68
+
69
+ // src/colors/purple.ts
70
+ var purple = {
71
+ 50: "#f2eafa",
72
+ 100: "#e4d4f4",
73
+ 200: "#c9a9e9",
74
+ 300: "#ae7ede",
75
+ 400: "#9353d3",
76
+ 500: "#7828c8",
77
+ 600: "#6020a0",
78
+ 700: "#481878",
79
+ 800: "#301050",
80
+ 900: "#180828"
81
+ };
82
+
83
+ // src/colors/red.ts
84
+ var red = {
85
+ 50: "#fee7ef",
86
+ 100: "#fdd0df",
87
+ 200: "#faa0bf",
88
+ 300: "#f871a0",
89
+ 400: "#f54180",
90
+ 500: "#f31260",
91
+ 600: "#c20e4d",
92
+ 700: "#920b3a",
93
+ 800: "#610726",
94
+ 900: "#310413"
95
+ };
96
+
97
+ // src/colors/yellow.ts
98
+ var yellow = {
99
+ 50: "#fefce8",
100
+ 100: "#fdedd3",
101
+ 200: "#fbdba7",
102
+ 300: "#f9c97c",
103
+ 400: "#f7b750",
104
+ 500: "#f5a524",
105
+ 600: "#c4841d",
106
+ 700: "#936316",
107
+ 800: "#62420e",
108
+ 900: "#312107"
109
+ };
110
+
111
+ // src/colors/cyan.ts
112
+ var cyan = {
113
+ 50: "#F0FCFF",
114
+ 100: "#E6FAFE",
115
+ 200: "#D7F8FE",
116
+ 300: "#C3F4FD",
117
+ 400: "#A5EEFD",
118
+ 500: "#7EE7FC",
119
+ 600: "#06B7DB",
120
+ 700: "#09AACD",
121
+ 800: "#0E8AAA",
122
+ 900: "#053B48"
123
+ };
124
+
125
+ // src/colors/zinc.ts
126
+ var zinc = {
127
+ "50": "#fafafa",
128
+ "100": "#f4f4f5",
129
+ "200": "#e4e4e7",
130
+ "300": "#d4d4d8",
131
+ "400": "#a1a1aa",
132
+ "500": "#71717a",
133
+ "600": "#52525b",
134
+ "700": "#3f3f46",
135
+ "800": "#27272a",
136
+ "900": "#18181b"
137
+ };
138
+
139
+ // src/colors/common.ts
140
+ var commonColors = {
141
+ white: "#ffffff",
142
+ black: "#000000",
143
+ blue,
144
+ green,
145
+ pink,
146
+ purple,
147
+ red,
148
+ yellow,
149
+ cyan,
150
+ zinc
151
+ };
152
+ // Annotate the CommonJS export names for ESM import in node:
153
+ 0 && (module.exports = {
154
+ commonColors
155
+ });
@@ -0,0 +1,14 @@
1
+ import {
2
+ commonColors
3
+ } from "../chunk-IAS3SFA4.mjs";
4
+ import "../chunk-JUEOCLA3.mjs";
5
+ import "../chunk-3LKKH4AR.mjs";
6
+ import "../chunk-T3GWIVAM.mjs";
7
+ import "../chunk-OR5PUD24.mjs";
8
+ import "../chunk-DCEG5LGX.mjs";
9
+ import "../chunk-L2OL7R23.mjs";
10
+ import "../chunk-YZYGFPNK.mjs";
11
+ import "../chunk-GHZ36ATJ.mjs";
12
+ export {
13
+ commonColors
14
+ };
@@ -0,0 +1,14 @@
1
+ declare const cyan: {
2
+ 50: string;
3
+ 100: string;
4
+ 200: string;
5
+ 300: string;
6
+ 400: string;
7
+ 500: string;
8
+ 600: string;
9
+ 700: string;
10
+ 800: string;
11
+ 900: string;
12
+ };
13
+
14
+ export { cyan };