@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
package/dist/plugin.js ADDED
@@ -0,0 +1,775 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // src/plugin.ts
27
+ var plugin_exports = {};
28
+ __export(plugin_exports, {
29
+ nextui: () => nextui
30
+ });
31
+ module.exports = __toCommonJS(plugin_exports);
32
+ var import_color = __toESM(require("color"));
33
+ var import_plugin = __toESM(require("tailwindcss/plugin.js"));
34
+ var import_lodash = __toESM(require("lodash.get"));
35
+ var import_lodash2 = __toESM(require("lodash.omit"));
36
+ var import_lodash3 = __toESM(require("lodash.foreach"));
37
+ var import_lodash4 = __toESM(require("lodash.mapkeys"));
38
+ var import_lodash5 = __toESM(require("lodash.kebabcase"));
39
+ var import_deepmerge = __toESM(require("deepmerge"));
40
+
41
+ // src/colors/blue.ts
42
+ var blue = {
43
+ 50: "#e6f1fe",
44
+ 100: "#cce3fd",
45
+ 200: "#99c7fb",
46
+ 300: "#66aaf9",
47
+ 400: "#338ef7",
48
+ 500: "#006FEE",
49
+ 600: "#005bc4",
50
+ 700: "#004493",
51
+ 800: "#002e62",
52
+ 900: "#001731"
53
+ };
54
+
55
+ // src/colors/green.ts
56
+ var green = {
57
+ 50: "#e8faf0",
58
+ 100: "#d1f4e0",
59
+ 200: "#a2e9c1",
60
+ 300: "#74dfa2",
61
+ 400: "#45d483",
62
+ 500: "#17c964",
63
+ 600: "#12a150",
64
+ 700: "#0e793c",
65
+ 800: "#095028",
66
+ 900: "#052814"
67
+ };
68
+
69
+ // src/colors/pink.ts
70
+ var pink = {
71
+ 50: "#ffedfa",
72
+ 100: "#ffdcf5",
73
+ 200: "#ffb8eb",
74
+ 300: "#ff95e1",
75
+ 400: "#ff71d7",
76
+ 500: "#ff4ecd",
77
+ 600: "#cc3ea4",
78
+ 700: "#992f7b",
79
+ 800: "#661f52",
80
+ 900: "#331029"
81
+ };
82
+
83
+ // src/colors/purple.ts
84
+ var purple = {
85
+ 50: "#f2eafa",
86
+ 100: "#e4d4f4",
87
+ 200: "#c9a9e9",
88
+ 300: "#ae7ede",
89
+ 400: "#9353d3",
90
+ 500: "#7828c8",
91
+ 600: "#6020a0",
92
+ 700: "#481878",
93
+ 800: "#301050",
94
+ 900: "#180828"
95
+ };
96
+
97
+ // src/colors/red.ts
98
+ var red = {
99
+ 50: "#fee7ef",
100
+ 100: "#fdd0df",
101
+ 200: "#faa0bf",
102
+ 300: "#f871a0",
103
+ 400: "#f54180",
104
+ 500: "#f31260",
105
+ 600: "#c20e4d",
106
+ 700: "#920b3a",
107
+ 800: "#610726",
108
+ 900: "#310413"
109
+ };
110
+
111
+ // src/colors/yellow.ts
112
+ var yellow = {
113
+ 50: "#fefce8",
114
+ 100: "#fdedd3",
115
+ 200: "#fbdba7",
116
+ 300: "#f9c97c",
117
+ 400: "#f7b750",
118
+ 500: "#f5a524",
119
+ 600: "#c4841d",
120
+ 700: "#936316",
121
+ 800: "#62420e",
122
+ 900: "#312107"
123
+ };
124
+
125
+ // src/colors/cyan.ts
126
+ var cyan = {
127
+ 50: "#F0FCFF",
128
+ 100: "#E6FAFE",
129
+ 200: "#D7F8FE",
130
+ 300: "#C3F4FD",
131
+ 400: "#A5EEFD",
132
+ 500: "#7EE7FC",
133
+ 600: "#06B7DB",
134
+ 700: "#09AACD",
135
+ 800: "#0E8AAA",
136
+ 900: "#053B48"
137
+ };
138
+
139
+ // src/colors/zinc.ts
140
+ var zinc = {
141
+ "50": "#fafafa",
142
+ "100": "#f4f4f5",
143
+ "200": "#e4e4e7",
144
+ "300": "#d4d4d8",
145
+ "400": "#a1a1aa",
146
+ "500": "#71717a",
147
+ "600": "#52525b",
148
+ "700": "#3f3f46",
149
+ "800": "#27272a",
150
+ "900": "#18181b"
151
+ };
152
+
153
+ // src/colors/common.ts
154
+ var commonColors = {
155
+ white: "#ffffff",
156
+ black: "#000000",
157
+ blue,
158
+ green,
159
+ pink,
160
+ purple,
161
+ red,
162
+ yellow,
163
+ cyan,
164
+ zinc
165
+ };
166
+
167
+ // src/colors/semantic.ts
168
+ var import_color2k = require("color2k");
169
+
170
+ // src/utils/object.ts
171
+ var import_flat = __toESM(require("flat"));
172
+ function swapColorValues(colors2) {
173
+ const swappedColors = {};
174
+ const keys = Object.keys(colors2);
175
+ const length = keys.length;
176
+ for (let i = 0; i < length / 2; i++) {
177
+ const key1 = keys[i];
178
+ const key2 = keys[length - 1 - i];
179
+ swappedColors[key1] = colors2[key2];
180
+ swappedColors[key2] = colors2[key1];
181
+ }
182
+ if (length % 2 !== 0) {
183
+ const middleKey = keys[Math.floor(length / 2)];
184
+ swappedColors[middleKey] = colors2[middleKey];
185
+ }
186
+ return swappedColors;
187
+ }
188
+ function removeDefaultKeys(obj) {
189
+ const newObj = {};
190
+ for (const key in obj) {
191
+ if (key.endsWith("-DEFAULT")) {
192
+ newObj[key.replace("-DEFAULT", "")] = obj[key];
193
+ continue;
194
+ }
195
+ newObj[key] = obj[key];
196
+ }
197
+ return newObj;
198
+ }
199
+ var flattenThemeObject = (obj) => removeDefaultKeys(
200
+ (0, import_flat.default)(obj, {
201
+ safe: true,
202
+ delimiter: "-"
203
+ })
204
+ );
205
+
206
+ // src/colors/semantic.ts
207
+ var base = {
208
+ light: {
209
+ background: {
210
+ DEFAULT: "#FFFFFF"
211
+ },
212
+ foreground: {
213
+ ...commonColors.zinc,
214
+ DEFAULT: "#11181C"
215
+ },
216
+ divider: {
217
+ DEFAULT: "rgba(17, 17, 17, 0.15)"
218
+ },
219
+ focus: {
220
+ DEFAULT: commonColors.blue[500]
221
+ },
222
+ overlay: {
223
+ DEFAULT: "#000000"
224
+ },
225
+ content1: {
226
+ DEFAULT: "#FFFFFF",
227
+ foreground: "#11181C"
228
+ },
229
+ content2: {
230
+ DEFAULT: commonColors.zinc[100],
231
+ foreground: commonColors.zinc[800]
232
+ },
233
+ content3: {
234
+ DEFAULT: commonColors.zinc[200],
235
+ foreground: commonColors.zinc[700]
236
+ },
237
+ content4: {
238
+ DEFAULT: commonColors.zinc[300],
239
+ foreground: commonColors.zinc[600]
240
+ }
241
+ },
242
+ dark: {
243
+ background: {
244
+ DEFAULT: "#000000"
245
+ },
246
+ foreground: {
247
+ ...swapColorValues(commonColors.zinc),
248
+ DEFAULT: "#ECEDEE"
249
+ },
250
+ focus: {
251
+ DEFAULT: commonColors.blue[500]
252
+ },
253
+ overlay: {
254
+ DEFAULT: "#000000"
255
+ },
256
+ divider: {
257
+ DEFAULT: "rgba(255, 255, 255, 0.15)"
258
+ },
259
+ content1: {
260
+ DEFAULT: commonColors.zinc[900],
261
+ foreground: commonColors.zinc[50]
262
+ },
263
+ content2: {
264
+ DEFAULT: commonColors.zinc[800],
265
+ foreground: commonColors.zinc[100]
266
+ },
267
+ content3: {
268
+ DEFAULT: commonColors.zinc[700],
269
+ foreground: commonColors.zinc[200]
270
+ },
271
+ content4: {
272
+ DEFAULT: commonColors.zinc[600],
273
+ foreground: commonColors.zinc[300]
274
+ }
275
+ }
276
+ };
277
+ var themeColorsLight = {
278
+ ...base.light,
279
+ default: {
280
+ ...commonColors.zinc,
281
+ foreground: (0, import_color2k.readableColor)(commonColors.zinc[300]),
282
+ DEFAULT: commonColors.zinc[300]
283
+ },
284
+ primary: {
285
+ ...commonColors.blue,
286
+ foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
287
+ DEFAULT: commonColors.blue[500]
288
+ },
289
+ secondary: {
290
+ ...commonColors.purple,
291
+ foreground: (0, import_color2k.readableColor)(commonColors.purple[500]),
292
+ DEFAULT: commonColors.purple[500]
293
+ },
294
+ success: {
295
+ ...commonColors.green,
296
+ foreground: (0, import_color2k.readableColor)(commonColors.green[500]),
297
+ DEFAULT: commonColors.green[500]
298
+ },
299
+ warning: {
300
+ ...commonColors.yellow,
301
+ foreground: (0, import_color2k.readableColor)(commonColors.yellow[500]),
302
+ DEFAULT: commonColors.yellow[500]
303
+ },
304
+ danger: {
305
+ ...commonColors.red,
306
+ foreground: commonColors.white,
307
+ DEFAULT: commonColors.red[500]
308
+ }
309
+ };
310
+ var themeColorsDark = {
311
+ ...base.dark,
312
+ default: {
313
+ ...swapColorValues(commonColors.zinc),
314
+ foreground: (0, import_color2k.readableColor)(commonColors.zinc[700]),
315
+ DEFAULT: commonColors.zinc[700]
316
+ },
317
+ primary: {
318
+ ...swapColorValues(commonColors.blue),
319
+ foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
320
+ DEFAULT: commonColors.blue[500]
321
+ },
322
+ secondary: {
323
+ ...swapColorValues(commonColors.purple),
324
+ foreground: (0, import_color2k.readableColor)(commonColors.purple[400]),
325
+ DEFAULT: commonColors.purple[400]
326
+ },
327
+ success: {
328
+ ...swapColorValues(commonColors.green),
329
+ foreground: (0, import_color2k.readableColor)(commonColors.green[500]),
330
+ DEFAULT: commonColors.green[500]
331
+ },
332
+ warning: {
333
+ ...swapColorValues(commonColors.yellow),
334
+ foreground: (0, import_color2k.readableColor)(commonColors.yellow[500]),
335
+ DEFAULT: commonColors.yellow[500]
336
+ },
337
+ danger: {
338
+ ...swapColorValues(commonColors.red),
339
+ foreground: commonColors.white,
340
+ DEFAULT: commonColors.red[500]
341
+ }
342
+ };
343
+ var semanticColors = {
344
+ light: themeColorsLight,
345
+ dark: themeColorsDark
346
+ };
347
+
348
+ // src/colors/index.ts
349
+ var colors = {
350
+ ...commonColors,
351
+ ...semanticColors
352
+ };
353
+
354
+ // src/animations/index.ts
355
+ var animations = {
356
+ animation: {
357
+ "drip-expand": "drip-expand 420ms linear",
358
+ "spinner-ease-spin": "spinner-spin 0.8s ease infinite",
359
+ "spinner-linear-spin": "spinner-spin 0.8s linear infinite",
360
+ "appearance-in": "appearance-in 250ms ease-out normal both",
361
+ "appearance-out": "appearance-out 60ms ease-in normal both",
362
+ "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
363
+ },
364
+ keyframes: {
365
+ shimmer: {
366
+ "100%": {
367
+ transform: "translateX(100%)"
368
+ }
369
+ },
370
+ "spinner-spin": {
371
+ "0%": {
372
+ transform: "rotate(0deg)"
373
+ },
374
+ "100%": {
375
+ transform: "rotate(360deg)"
376
+ }
377
+ },
378
+ "drip-expand": {
379
+ "0%": {
380
+ opacity: "0.2",
381
+ transform: "scale(0)"
382
+ },
383
+ "100%": {
384
+ opacity: "0",
385
+ transform: "scale(2)"
386
+ }
387
+ },
388
+ "appearance-in": {
389
+ "0%": {
390
+ opacity: "0",
391
+ transform: "translateZ(0) scale(0.95)"
392
+ },
393
+ "60%": {
394
+ opacity: "0.75",
395
+ backfaceVisibility: "hidden",
396
+ webkitFontSmoothing: "antialiased",
397
+ transform: "translateZ(0) scale(1.05)"
398
+ },
399
+ "100%": {
400
+ opacity: "1",
401
+ transform: "translateZ(0) scale(1)"
402
+ }
403
+ },
404
+ "appearance-out": {
405
+ "0%": {
406
+ opacity: "1",
407
+ transform: "scale(1)"
408
+ },
409
+ "100%": {
410
+ opacity: "0",
411
+ transform: "scale(0.85)"
412
+ }
413
+ },
414
+ "indeterminate-bar": {
415
+ "0%": {
416
+ transform: "translateX(-50%) scaleX(0.2)"
417
+ },
418
+ "100%": {
419
+ transform: "translateX(100%) scaleX(1)"
420
+ }
421
+ }
422
+ }
423
+ };
424
+
425
+ // src/utilities/transition.ts
426
+ var DEFAULT_TRANSITION_DURATION = "250ms";
427
+ var transition_default = {
428
+ ".transition-background": {
429
+ "transition-property": "background",
430
+ "transition-timing-function": "ease",
431
+ "transition-duration": DEFAULT_TRANSITION_DURATION
432
+ },
433
+ ".transition-colors-opacity": {
434
+ "transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity",
435
+ "transition-timing-function": "ease",
436
+ "transition-duration": DEFAULT_TRANSITION_DURATION
437
+ },
438
+ ".transition-width": {
439
+ "transition-property": "width",
440
+ "transition-timing-function": "ease",
441
+ "transition-duration": DEFAULT_TRANSITION_DURATION
442
+ },
443
+ ".transition-height": {
444
+ "transition-property": "height",
445
+ "transition-timing-function": "ease",
446
+ "transition-duration": DEFAULT_TRANSITION_DURATION
447
+ },
448
+ ".transition-size": {
449
+ "transition-property": "width, height",
450
+ "transition-timing-function": "ease",
451
+ "transition-duration": DEFAULT_TRANSITION_DURATION
452
+ },
453
+ ".transition-left": {
454
+ "transition-property": "left",
455
+ "transition-timing-function": "ease",
456
+ "transition-duration": DEFAULT_TRANSITION_DURATION
457
+ },
458
+ ".transition-transform-opacity": {
459
+ "transition-property": "transform, opacity",
460
+ "transition-timing-function": "ease",
461
+ "transition-duration": DEFAULT_TRANSITION_DURATION
462
+ },
463
+ ".transition-transform-background": {
464
+ "transition-property": "transform, background",
465
+ "transition-timing-function": "ease",
466
+ "transition-duration": DEFAULT_TRANSITION_DURATION
467
+ },
468
+ ".transition-transform-colors": {
469
+ " transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke",
470
+ "transition-timing-function": "ease",
471
+ "transition-duration": DEFAULT_TRANSITION_DURATION
472
+ },
473
+ ".transition-transform-colors-opacity": {
474
+ " transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity",
475
+ "transition-timing-function": "ease",
476
+ "transition-duration": DEFAULT_TRANSITION_DURATION
477
+ }
478
+ };
479
+
480
+ // src/utilities/custom.ts
481
+ var custom_default = {
482
+ ".leading-inherit": {
483
+ "line-height": "inherit"
484
+ },
485
+ ".bg-img-inherit": {
486
+ "background-image": "inherit"
487
+ },
488
+ ".bg-clip-inherit": {
489
+ "background-clip": "inherit"
490
+ },
491
+ ".text-fill-inherit": {
492
+ "-webkit-text-fill-color": "inherit"
493
+ },
494
+ ".tap-highlight-transparent": {
495
+ "-webkit-tap-highlight-color": "transparent"
496
+ }
497
+ };
498
+
499
+ // src/utilities/scrollbar-hide.ts
500
+ var scrollbar_hide_default = {
501
+ ".scrollbar-hide": {
502
+ "-ms-overflow-style": "none",
503
+ "scrollbar-width": "none",
504
+ "&::-webkit-scrollbar": {
505
+ display: "none"
506
+ }
507
+ },
508
+ ".scrollbar-default": {
509
+ "-ms-overflow-style": "auto",
510
+ "scrollbar-width": "auto",
511
+ "&::-webkit-scrollbar": {
512
+ display: "block"
513
+ }
514
+ }
515
+ };
516
+
517
+ // src/utilities/index.ts
518
+ var utilities = {
519
+ ...custom_default,
520
+ ...transition_default,
521
+ ...scrollbar_hide_default
522
+ };
523
+
524
+ // src/utils/theme.ts
525
+ var isBaseTheme = (theme) => theme === "light" || theme === "dark";
526
+
527
+ // src/default-layout.ts
528
+ var defaultLayout = {
529
+ dividerWeight: "1px",
530
+ disabledOpacity: ".5",
531
+ fontSize: {
532
+ tiny: "0.75rem",
533
+ small: "0.875rem",
534
+ medium: "1rem",
535
+ large: "1.125rem"
536
+ },
537
+ lineHeight: {
538
+ tiny: "1rem",
539
+ small: "1.25rem",
540
+ medium: "1.5rem",
541
+ large: "1.75rem"
542
+ },
543
+ radius: {
544
+ small: "8px",
545
+ medium: "12px",
546
+ large: "14px"
547
+ },
548
+ borderWidth: {
549
+ small: "1px",
550
+ medium: "2px",
551
+ large: "3px"
552
+ },
553
+ boxShadow: {
554
+ small: "0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",
555
+ medium: "0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",
556
+ large: "0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"
557
+ }
558
+ };
559
+ var lightLayout = {
560
+ hoverOpacity: ".8"
561
+ };
562
+ var darkLayout = {
563
+ hoverOpacity: ".9",
564
+ boxShadow: {
565
+ small: "0px 0px 5px 0px rgb(0 0 0 / 0.05), 0px 2px 10px 0px rgb(0 0 0 / 0.2), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
566
+ medium: "0px 0px 15px 0px rgb(0 0 0 / 0.06), 0px 2px 30px 0px rgb(0 0 0 / 0.22), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
567
+ large: "0px 0px 30px 0px rgb(0 0 0 / 0.07), 0px 30px 60px 0px rgb(0 0 0 / 0.26), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)"
568
+ }
569
+ };
570
+
571
+ // src/utils/classes.ts
572
+ var baseStyles = (prefix) => ({
573
+ color: `hsl(var(--${prefix}-foreground))`,
574
+ backgroundColor: `hsl(var(--${prefix}-background))`
575
+ });
576
+
577
+ // src/plugin.ts
578
+ var DEFAULT_PREFIX = "nextui";
579
+ var parsedColorsCache = {};
580
+ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
581
+ const resolved = {
582
+ variants: [],
583
+ utilities: {},
584
+ colors: {}
585
+ };
586
+ for (const [themeName, { extend, layout, colors: colors2 }] of Object.entries(themes)) {
587
+ let cssSelector = `.${themeName},[data-theme="${themeName}"]`;
588
+ const scheme = themeName === "light" || themeName === "dark" ? themeName : extend;
589
+ if (themeName === defaultTheme) {
590
+ cssSelector = `:root,${cssSelector}`;
591
+ }
592
+ resolved.utilities[cssSelector] = scheme ? {
593
+ "color-scheme": scheme
594
+ } : {};
595
+ const flatColors = flattenThemeObject(colors2);
596
+ const flatLayout = layout ? (0, import_lodash4.default)(layout, (value, key) => (0, import_lodash5.default)(key)) : {};
597
+ resolved.variants.push({
598
+ name: themeName,
599
+ definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
600
+ });
601
+ for (const [colorName, colorValue] of Object.entries(flatColors)) {
602
+ if (!colorValue)
603
+ return;
604
+ try {
605
+ const parsedColor = parsedColorsCache[colorValue] || (0, import_color.default)(colorValue).hsl().round(2).array();
606
+ parsedColorsCache[colorValue] = parsedColor;
607
+ const [h, s, l, defaultAlphaValue] = parsedColor;
608
+ const nextuiColorVariable = `--${prefix}-${colorName}`;
609
+ const nextuiOpacityVariable = `--${prefix}-${colorName}-opacity`;
610
+ resolved.utilities[cssSelector][nextuiColorVariable] = `${h} ${s}% ${l}%`;
611
+ if (typeof defaultAlphaValue === "number") {
612
+ resolved.utilities[cssSelector][nextuiOpacityVariable] = defaultAlphaValue.toFixed(2);
613
+ }
614
+ resolved.colors[colorName] = ({ opacityVariable, opacityValue }) => {
615
+ if (!isNaN(+opacityValue)) {
616
+ return `hsl(var(${nextuiColorVariable}) / ${opacityValue})`;
617
+ }
618
+ if (opacityVariable) {
619
+ return `hsl(var(${nextuiColorVariable}) / var(${nextuiOpacityVariable}, var(${opacityVariable})))`;
620
+ }
621
+ return `hsl(var(${nextuiColorVariable}) / var(${nextuiOpacityVariable}, 1))`;
622
+ };
623
+ } catch (error) {
624
+ console.log("error", error == null ? void 0 : error.message);
625
+ }
626
+ }
627
+ for (const [key, value] of Object.entries(flatLayout)) {
628
+ if (!value)
629
+ return;
630
+ const layoutVariablePrefix = `--${prefix}-${key}`;
631
+ if (typeof value === "object") {
632
+ for (const [nestedKey, nestedValue] of Object.entries(value)) {
633
+ const nestedLayoutVariable = `${layoutVariablePrefix}-${nestedKey}`;
634
+ resolved.utilities[cssSelector][nestedLayoutVariable] = nestedValue;
635
+ }
636
+ } else {
637
+ const formattedValue = layoutVariablePrefix.includes("opacity") && typeof value === "number" ? value.toString().replace(/^0\./, ".") : value;
638
+ resolved.utilities[cssSelector][layoutVariablePrefix] = formattedValue;
639
+ }
640
+ }
641
+ }
642
+ return resolved;
643
+ };
644
+ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
645
+ const resolved = resolveConfig(themes, defaultTheme, prefix);
646
+ return (0, import_plugin.default)(
647
+ ({ addBase, addUtilities, addVariant }) => {
648
+ addBase({
649
+ [":root, [data-theme]"]: {
650
+ ...baseStyles(prefix)
651
+ }
652
+ });
653
+ addUtilities({ ...resolved == null ? void 0 : resolved.utilities, ...utilities });
654
+ resolved == null ? void 0 : resolved.variants.forEach((variant) => {
655
+ addVariant(variant.name, variant.definition);
656
+ });
657
+ },
658
+ {
659
+ theme: {
660
+ extend: {
661
+ colors: {
662
+ ...addCommonColors ? commonColors : {},
663
+ ...resolved == null ? void 0 : resolved.colors
664
+ },
665
+ scale: {
666
+ "80": "0.8",
667
+ "85": "0.85"
668
+ },
669
+ height: {
670
+ divider: `var(--${prefix}-divider-weight)`
671
+ },
672
+ width: {
673
+ divider: `var(--${prefix}-divider-weight)`
674
+ },
675
+ fontSize: {
676
+ tiny: [`var(--${prefix}-font-size-tiny)`, `var(--${prefix}-line-height-tiny)`],
677
+ small: [`var(--${prefix}-font-size-small)`, `var(--${prefix}-line-height-small)`],
678
+ medium: [`var(--${prefix}-font-size-medium)`, `var(--${prefix}-line-height-medium)`],
679
+ large: [`var(--${prefix}-font-size-large)`, `var(--${prefix}-line-height-large)`]
680
+ },
681
+ borderRadius: {
682
+ small: `var(--${prefix}-radius-small)`,
683
+ medium: `var(--${prefix}-radius-medium)`,
684
+ large: `var(--${prefix}-radius-large)`
685
+ },
686
+ opacity: {
687
+ hover: `var(--${prefix}-hover-opacity)`,
688
+ disabled: `var(--${prefix}-disabled-opacity)`
689
+ },
690
+ borderWidth: {
691
+ small: `var(--${prefix}-border-width-small)`,
692
+ medium: `var(--${prefix}-border-width-medium)`,
693
+ large: `var(--${prefix}-border-width-large)`,
694
+ 1: "1px",
695
+ 1.5: "1.5px",
696
+ 3: "3px",
697
+ 5: "5px"
698
+ },
699
+ boxShadow: {
700
+ small: `var(--${prefix}-box-shadow-small)`,
701
+ medium: `var(--${prefix}-box-shadow-medium)`,
702
+ large: `var(--${prefix}-box-shadow-large)`
703
+ },
704
+ backgroundImage: {
705
+ "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)"
706
+ },
707
+ transitionDuration: {
708
+ 0: "0ms",
709
+ 250: "250ms",
710
+ 400: "400ms",
711
+ DEFAULT: DEFAULT_TRANSITION_DURATION
712
+ },
713
+ transitionTimingFunction: {
714
+ "soft-spring": "cubic-bezier(0.155, 1.105, 0.295, 1.12)"
715
+ },
716
+ ...animations
717
+ }
718
+ }
719
+ }
720
+ );
721
+ };
722
+ var nextui = (config = {}) => {
723
+ const {
724
+ themes: themeObject = {},
725
+ defaultTheme = "light",
726
+ layout: userLayout,
727
+ defaultExtendTheme = "light",
728
+ prefix: defaultPrefix = DEFAULT_PREFIX,
729
+ addCommonColors = false
730
+ } = config;
731
+ const userLightColors = (0, import_lodash.default)(themeObject, "light.colors", {});
732
+ const userDarkColors = (0, import_lodash.default)(themeObject, "dark.colors", {});
733
+ const defaultLayoutObj = userLayout && typeof userLayout === "object" ? (0, import_deepmerge.default)(defaultLayout, userLayout) : defaultLayout;
734
+ const baseLayouts = {
735
+ light: {
736
+ ...defaultLayoutObj,
737
+ ...lightLayout
738
+ },
739
+ dark: {
740
+ ...defaultLayoutObj,
741
+ ...darkLayout
742
+ }
743
+ };
744
+ let otherThemes = (0, import_lodash2.default)(themeObject, ["light", "dark"]) || {};
745
+ (0, import_lodash3.default)(otherThemes, ({ extend, colors: colors2, layout }, themeName) => {
746
+ const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
747
+ if (colors2 && typeof colors2 === "object") {
748
+ otherThemes[themeName].colors = (0, import_deepmerge.default)(semanticColors[baseTheme], colors2);
749
+ }
750
+ if (layout && typeof layout === "object") {
751
+ otherThemes[themeName].layout = (0, import_deepmerge.default)(
752
+ extend ? baseLayouts[extend] : defaultLayoutObj,
753
+ layout
754
+ );
755
+ }
756
+ });
757
+ const light = {
758
+ layout: (0, import_deepmerge.default)(baseLayouts.light, (0, import_lodash.default)(themeObject, "light.layout", {})),
759
+ colors: (0, import_deepmerge.default)(semanticColors.light, userLightColors)
760
+ };
761
+ const dark = {
762
+ layout: (0, import_deepmerge.default)(baseLayouts.dark, (0, import_lodash.default)(themeObject, "dark.layout", {})),
763
+ colors: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors)
764
+ };
765
+ const themes = {
766
+ light,
767
+ dark,
768
+ ...otherThemes
769
+ };
770
+ return corePlugin(themes, defaultTheme, defaultPrefix, addCommonColors);
771
+ };
772
+ // Annotate the CommonJS export names for ESM import in node:
773
+ 0 && (module.exports = {
774
+ nextui
775
+ });