@sikka/hawa 0.26.27 → 0.26.29

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 (364) hide show
  1. package/dist/tooltip/index.js +1 -0
  2. package/dist/tooltip/index.js.map +1 -0
  3. package/dist/tooltip/index.mjs +1 -0
  4. package/dist/tooltip/index.mjs.map +1 -0
  5. package/package.json +1 -1
  6. package/dist/Chip-H5BnuDdx.d.ts +0 -36
  7. package/dist/Chip-hr2gRBJ-.d.mts +0 -36
  8. package/dist/DropdownMenu-EUL-D3I3.d.mts +0 -95
  9. package/dist/DropdownMenu-SPisqCzV.d.ts +0 -95
  10. package/dist/Radio-K1WGpnGA.d.ts +0 -75
  11. package/dist/Radio-hsrLKNxE.d.mts +0 -75
  12. package/dist/Toast-VBd4UvlM.d.mts +0 -26
  13. package/dist/Toast-pOd4uGZz.d.ts +0 -26
  14. package/dist/accordion/index.d.mts +0 -51
  15. package/dist/accordion/index.d.ts +0 -51
  16. package/dist/accordion/index.js +0 -271
  17. package/dist/accordion/index.mjs +0 -227
  18. package/dist/alert/index.d.mts +0 -29
  19. package/dist/alert/index.d.ts +0 -29
  20. package/dist/alert/index.js +0 -442
  21. package/dist/alert/index.mjs +0 -402
  22. package/dist/appLayout/index.d.mts +0 -126
  23. package/dist/appLayout/index.d.ts +0 -126
  24. package/dist/appLayout/index.js +0 -1326
  25. package/dist/appLayout/index.mjs +0 -1286
  26. package/dist/appMenubar/index.d.mts +0 -33
  27. package/dist/appMenubar/index.d.ts +0 -33
  28. package/dist/appMenubar/index.js +0 -281
  29. package/dist/appMenubar/index.mjs +0 -224
  30. package/dist/appStores/index.d.mts +0 -8
  31. package/dist/appStores/index.d.ts +0 -8
  32. package/dist/appStores/index.js +0 -75
  33. package/dist/appStores/index.mjs +0 -38
  34. package/dist/appTabs/index.d.mts +0 -18
  35. package/dist/appTabs/index.d.ts +0 -18
  36. package/dist/appTabs/index.js +0 -92
  37. package/dist/appTabs/index.mjs +0 -50
  38. package/dist/appTopbar/index.d.mts +0 -44
  39. package/dist/appTopbar/index.d.ts +0 -44
  40. package/dist/appTopbar/index.js +0 -483
  41. package/dist/appTopbar/index.mjs +0 -441
  42. package/dist/avatar/index.d.mts +0 -16
  43. package/dist/avatar/index.d.ts +0 -16
  44. package/dist/avatar/index.js +0 -162
  45. package/dist/avatar/index.mjs +0 -122
  46. package/dist/backToTop/index.d.mts +0 -15
  47. package/dist/backToTop/index.d.ts +0 -15
  48. package/dist/backToTop/index.js +0 -398
  49. package/dist/backToTop/index.mjs +0 -358
  50. package/dist/badge/index.d.mts +0 -13
  51. package/dist/badge/index.d.ts +0 -13
  52. package/dist/badge/index.js +0 -127
  53. package/dist/badge/index.mjs +0 -84
  54. package/dist/blocks/auth/index.d.mts +0 -202
  55. package/dist/blocks/auth/index.d.ts +0 -202
  56. package/dist/blocks/auth/index.js +0 -4197
  57. package/dist/blocks/auth/index.mjs +0 -3389
  58. package/dist/blocks/feedback/index.d.mts +0 -74
  59. package/dist/blocks/feedback/index.d.ts +0 -74
  60. package/dist/blocks/feedback/index.js +0 -1544
  61. package/dist/blocks/feedback/index.mjs +0 -558
  62. package/dist/blocks/index.d.mts +0 -480
  63. package/dist/blocks/index.d.ts +0 -480
  64. package/dist/blocks/index.js +0 -6700
  65. package/dist/blocks/index.mjs +0 -2550
  66. package/dist/blocks/misc/index.d.mts +0 -90
  67. package/dist/blocks/misc/index.d.ts +0 -90
  68. package/dist/blocks/misc/index.js +0 -1186
  69. package/dist/blocks/misc/index.mjs +0 -387
  70. package/dist/blocks/pricing/index.d.mts +0 -93
  71. package/dist/blocks/pricing/index.d.ts +0 -93
  72. package/dist/blocks/pricing/index.js +0 -1528
  73. package/dist/blocks/pricing/index.mjs +0 -677
  74. package/dist/breadcrumb/index.d.mts +0 -14
  75. package/dist/breadcrumb/index.d.ts +0 -14
  76. package/dist/breadcrumb/index.js +0 -63
  77. package/dist/breadcrumb/index.mjs +0 -26
  78. package/dist/button/index.d.mts +0 -16
  79. package/dist/button/index.d.ts +0 -16
  80. package/dist/button/index.js +0 -301
  81. package/dist/button/index.mjs +0 -260
  82. package/dist/card/index.d.mts +0 -17
  83. package/dist/card/index.d.ts +0 -17
  84. package/dist/card/index.js +0 -139
  85. package/dist/card/index.mjs +0 -92
  86. package/dist/carousel/index.d.mts +0 -15
  87. package/dist/carousel/index.d.ts +0 -15
  88. package/dist/carousel/index.js +0 -193
  89. package/dist/carousel/index.mjs +0 -151
  90. package/dist/checkbox/index.d.mts +0 -20
  91. package/dist/checkbox/index.d.ts +0 -20
  92. package/dist/checkbox/index.js +0 -184
  93. package/dist/checkbox/index.mjs +0 -142
  94. package/dist/chip/index.d.mts +0 -36
  95. package/dist/chip/index.d.ts +0 -36
  96. package/dist/chip/index.js +0 -129
  97. package/dist/chip/index.mjs +0 -87
  98. package/dist/chunk-2R7F2GL7.mjs +0 -82
  99. package/dist/chunk-4EGKGSGY.mjs +0 -129
  100. package/dist/chunk-5YXZXYLH.mjs +0 -67
  101. package/dist/chunk-65TG6EVD.mjs +0 -264
  102. package/dist/chunk-D22AALLE.mjs +0 -22
  103. package/dist/chunk-D36MPDGE.mjs +0 -476
  104. package/dist/chunk-F3DQJHTG.mjs +0 -3113
  105. package/dist/chunk-FQ6WVEHW.mjs +0 -151
  106. package/dist/chunk-GVJYACGA.mjs +0 -189
  107. package/dist/chunk-JNUGOUYJ.mjs +0 -154
  108. package/dist/chunk-KMCIHW76.mjs +0 -150
  109. package/dist/chunk-MQUAGP7K.mjs +0 -1098
  110. package/dist/chunk-NMS5LCSQ.mjs +0 -195
  111. package/dist/chunk-OY66MBXP.mjs +0 -163
  112. package/dist/chunk-R4HAAT6R.mjs +0 -131
  113. package/dist/chunk-SJ2Z6ZOG.mjs +0 -442
  114. package/dist/chunk-TGZRVRLP.mjs +0 -107
  115. package/dist/chunk-TWNGV3RE.mjs +0 -10
  116. package/dist/chunk-WUHNPHD5.mjs +0 -0
  117. package/dist/chunk-ZFXKCRJC.mjs +0 -11
  118. package/dist/chunk-ZS3FB3PO.mjs +0 -12
  119. package/dist/codeBlock/index.d.mts +0 -24
  120. package/dist/codeBlock/index.d.ts +0 -24
  121. package/dist/codeBlock/index.js +0 -517
  122. package/dist/codeBlock/index.mjs +0 -432
  123. package/dist/collapsible/index.d.mts +0 -8
  124. package/dist/collapsible/index.d.ts +0 -8
  125. package/dist/collapsible/index.js +0 -49
  126. package/dist/collapsible/index.mjs +0 -12
  127. package/dist/colorPicker/index.d.mts +0 -34
  128. package/dist/colorPicker/index.d.ts +0 -34
  129. package/dist/colorPicker/index.js +0 -276
  130. package/dist/colorPicker/index.mjs +0 -170
  131. package/dist/combobox/index.d.mts +0 -41
  132. package/dist/combobox/index.d.ts +0 -41
  133. package/dist/combobox/index.js +0 -749
  134. package/dist/combobox/index.mjs +0 -295
  135. package/dist/command/index.d.mts +0 -48
  136. package/dist/command/index.d.ts +0 -48
  137. package/dist/command/index.js +0 -485
  138. package/dist/command/index.mjs +0 -22
  139. package/dist/commonTypes-2IGtJ5cq.d.mts +0 -3
  140. package/dist/commonTypes-2IGtJ5cq.d.ts +0 -3
  141. package/dist/commonTypes-2k6FnHw5.d.mts +0 -4
  142. package/dist/commonTypes-2k6FnHw5.d.ts +0 -4
  143. package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
  144. package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
  145. package/dist/commonTypes-CKtkuNFH.d.mts +0 -11
  146. package/dist/commonTypes-CKtkuNFH.d.ts +0 -11
  147. package/dist/commonTypes-GhKAraJw.d.mts +0 -4
  148. package/dist/commonTypes-GhKAraJw.d.ts +0 -4
  149. package/dist/commonTypes-MxCJyrHv.d.mts +0 -8
  150. package/dist/commonTypes-MxCJyrHv.d.ts +0 -8
  151. package/dist/commonTypes-PBumfOBg.d.mts +0 -3
  152. package/dist/commonTypes-PBumfOBg.d.ts +0 -3
  153. package/dist/commonTypes-WPhcN3Vr.d.mts +0 -5
  154. package/dist/commonTypes-WPhcN3Vr.d.ts +0 -5
  155. package/dist/commonTypes-_11epZYh.d.mts +0 -4
  156. package/dist/commonTypes-_11epZYh.d.ts +0 -4
  157. package/dist/commonTypes-ko_NGEoT.d.mts +0 -3
  158. package/dist/commonTypes-ko_NGEoT.d.ts +0 -3
  159. package/dist/copyrights/index.d.mts +0 -17
  160. package/dist/copyrights/index.d.ts +0 -17
  161. package/dist/copyrights/index.js +0 -45
  162. package/dist/copyrights/index.mjs +0 -8
  163. package/dist/count/index.d.mts +0 -11
  164. package/dist/count/index.d.ts +0 -11
  165. package/dist/count/index.js +0 -45
  166. package/dist/count/index.mjs +0 -8
  167. package/dist/dataTable/index.d.mts +0 -41
  168. package/dist/dataTable/index.d.ts +0 -41
  169. package/dist/dataTable/index.js +0 -1313
  170. package/dist/dataTable/index.mjs +0 -1281
  171. package/dist/destroyableCard/index.d.mts +0 -12
  172. package/dist/destroyableCard/index.d.ts +0 -12
  173. package/dist/destroyableCard/index.js +0 -203
  174. package/dist/destroyableCard/index.mjs +0 -163
  175. package/dist/dialog/index.d.mts +0 -57
  176. package/dist/dialog/index.d.ts +0 -57
  177. package/dist/dialog/index.js +0 -368
  178. package/dist/dialog/index.mjs +0 -314
  179. package/dist/docsLayout/index.d.mts +0 -37
  180. package/dist/docsLayout/index.d.ts +0 -37
  181. package/dist/docsLayout/index.js +0 -927
  182. package/dist/docsLayout/index.mjs +0 -887
  183. package/dist/docsSidebar/index.d.mts +0 -11
  184. package/dist/docsSidebar/index.d.ts +0 -11
  185. package/dist/docsSidebar/index.js +0 -111
  186. package/dist/docsSidebar/index.mjs +0 -69
  187. package/dist/dropdownMenu/index.d.mts +0 -96
  188. package/dist/dropdownMenu/index.d.ts +0 -96
  189. package/dist/dropdownMenu/index.js +0 -420
  190. package/dist/dropdownMenu/index.mjs +0 -362
  191. package/dist/elements/index.d.mts +0 -788
  192. package/dist/elements/index.d.ts +0 -788
  193. package/dist/elements/index.js +0 -7832
  194. package/dist/elements/index.mjs +0 -3415
  195. package/dist/fileDropzone/index.d.mts +0 -37
  196. package/dist/fileDropzone/index.d.ts +0 -37
  197. package/dist/fileDropzone/index.js +0 -665
  198. package/dist/fileDropzone/index.mjs +0 -625
  199. package/dist/fileUploader/index.d.mts +0 -5
  200. package/dist/fileUploader/index.d.ts +0 -5
  201. package/dist/fileUploader/index.js +0 -62
  202. package/dist/fileUploader/index.mjs +0 -25
  203. package/dist/glow/index.d.mts +0 -16
  204. package/dist/glow/index.d.ts +0 -16
  205. package/dist/glow/index.js +0 -155
  206. package/dist/glow/index.mjs +0 -117
  207. package/dist/hooks/index.d.mts +0 -108
  208. package/dist/hooks/index.d.ts +0 -108
  209. package/dist/hooks/index.js +0 -459
  210. package/dist/hooks/index.mjs +0 -255
  211. package/dist/index.d.mts +0 -1932
  212. package/dist/index.d.ts +0 -1932
  213. package/dist/index.js +0 -12123
  214. package/dist/index.mjs +0 -11908
  215. package/dist/input/index.d.mts +0 -43
  216. package/dist/input/index.d.ts +0 -43
  217. package/dist/input/index.js +0 -293
  218. package/dist/input/index.mjs +0 -158
  219. package/dist/interfaceSettings/index.d.mts +0 -18
  220. package/dist/interfaceSettings/index.d.ts +0 -18
  221. package/dist/interfaceSettings/index.js +0 -420
  222. package/dist/interfaceSettings/index.mjs +0 -283
  223. package/dist/label/index.d.mts +0 -13
  224. package/dist/label/index.d.ts +0 -13
  225. package/dist/label/index.js +0 -142
  226. package/dist/label/index.mjs +0 -102
  227. package/dist/layout/index.d.mts +0 -256
  228. package/dist/layout/index.d.ts +0 -256
  229. package/dist/layout/index.js +0 -2627
  230. package/dist/layout/index.mjs +0 -1393
  231. package/dist/loading/index.d.mts +0 -15
  232. package/dist/loading/index.d.ts +0 -15
  233. package/dist/loading/index.js +0 -225
  234. package/dist/loading/index.mjs +0 -183
  235. package/dist/logos/index.d.mts +0 -27
  236. package/dist/logos/index.d.ts +0 -27
  237. package/dist/logos/index.js +0 -244
  238. package/dist/logos/index.mjs +0 -207
  239. package/dist/navbar/index.d.mts +0 -17
  240. package/dist/navbar/index.d.ts +0 -17
  241. package/dist/navbar/index.js +0 -166
  242. package/dist/navbar/index.mjs +0 -126
  243. package/dist/navigationMenu/index.d.mts +0 -39
  244. package/dist/navigationMenu/index.d.ts +0 -39
  245. package/dist/navigationMenu/index.js +0 -221
  246. package/dist/navigationMenu/index.mjs +0 -169
  247. package/dist/pagination/index.d.mts +0 -11
  248. package/dist/pagination/index.d.ts +0 -11
  249. package/dist/pagination/index.js +0 -160
  250. package/dist/pagination/index.mjs +0 -118
  251. package/dist/passwordInput/index.d.mts +0 -13
  252. package/dist/passwordInput/index.d.ts +0 -13
  253. package/dist/passwordInput/index.js +0 -577
  254. package/dist/passwordInput/index.mjs +0 -534
  255. package/dist/phoneInput/index.d.mts +0 -23
  256. package/dist/phoneInput/index.d.ts +0 -23
  257. package/dist/phoneInput/index.js +0 -2085
  258. package/dist/phoneInput/index.mjs +0 -2045
  259. package/dist/pinInput/index.d.mts +0 -20
  260. package/dist/pinInput/index.d.ts +0 -20
  261. package/dist/pinInput/index.js +0 -131
  262. package/dist/pinInput/index.mjs +0 -89
  263. package/dist/popover/index.d.mts +0 -23
  264. package/dist/popover/index.d.ts +0 -23
  265. package/dist/popover/index.js +0 -112
  266. package/dist/popover/index.mjs +0 -68
  267. package/dist/progress/index.d.mts +0 -6
  268. package/dist/progress/index.d.ts +0 -6
  269. package/dist/progress/index.js +0 -71
  270. package/dist/progress/index.mjs +0 -29
  271. package/dist/progressCircle/index.d.mts +0 -16
  272. package/dist/progressCircle/index.d.ts +0 -16
  273. package/dist/progressCircle/index.js +0 -159
  274. package/dist/progressCircle/index.mjs +0 -117
  275. package/dist/radio/index.d.mts +0 -39
  276. package/dist/radio/index.d.ts +0 -39
  277. package/dist/radio/index.js +0 -331
  278. package/dist/radio/index.mjs +0 -291
  279. package/dist/scrollArea/index.d.mts +0 -10
  280. package/dist/scrollArea/index.d.ts +0 -10
  281. package/dist/scrollArea/index.js +0 -90
  282. package/dist/scrollArea/index.mjs +0 -47
  283. package/dist/scrollIndicator/index.d.mts +0 -9
  284. package/dist/scrollIndicator/index.d.ts +0 -9
  285. package/dist/scrollIndicator/index.js +0 -80
  286. package/dist/scrollIndicator/index.mjs +0 -43
  287. package/dist/select/index.d.mts +0 -50
  288. package/dist/select/index.d.ts +0 -50
  289. package/dist/select/index.js +0 -325
  290. package/dist/select/index.mjs +0 -285
  291. package/dist/separator/index.d.mts +0 -10
  292. package/dist/separator/index.d.ts +0 -10
  293. package/dist/separator/index.js +0 -66
  294. package/dist/separator/index.mjs +0 -24
  295. package/dist/sheet/index.d.mts +0 -30
  296. package/dist/sheet/index.d.ts +0 -30
  297. package/dist/sheet/index.js +0 -201
  298. package/dist/sheet/index.mjs +0 -150
  299. package/dist/sidebar/index.d.mts +0 -48
  300. package/dist/sidebar/index.d.ts +0 -48
  301. package/dist/sidebar/index.js +0 -341
  302. package/dist/sidebar/index.mjs +0 -298
  303. package/dist/signature/index.d.mts +0 -27
  304. package/dist/signature/index.d.ts +0 -27
  305. package/dist/signature/index.js +0 -261
  306. package/dist/signature/index.mjs +0 -219
  307. package/dist/simpleTable/index.d.mts +0 -30
  308. package/dist/simpleTable/index.d.ts +0 -30
  309. package/dist/simpleTable/index.js +0 -253
  310. package/dist/simpleTable/index.mjs +0 -217
  311. package/dist/skeleton/index.d.mts +0 -10
  312. package/dist/skeleton/index.d.ts +0 -10
  313. package/dist/skeleton/index.js +0 -75
  314. package/dist/skeleton/index.mjs +0 -33
  315. package/dist/slider/index.d.mts +0 -6
  316. package/dist/slider/index.d.ts +0 -6
  317. package/dist/slider/index.js +0 -66
  318. package/dist/slider/index.mjs +0 -24
  319. package/dist/sortButton/index.d.mts +0 -10
  320. package/dist/sortButton/index.d.ts +0 -10
  321. package/dist/sortButton/index.js +0 -336
  322. package/dist/sortButton/index.mjs +0 -42
  323. package/dist/splitButton/index.d.mts +0 -52
  324. package/dist/splitButton/index.d.ts +0 -52
  325. package/dist/splitButton/index.js +0 -692
  326. package/dist/splitButton/index.mjs +0 -400
  327. package/dist/stats/index.d.mts +0 -19
  328. package/dist/stats/index.d.ts +0 -19
  329. package/dist/stats/index.js +0 -191
  330. package/dist/stats/index.mjs +0 -154
  331. package/dist/stopPropagationWrapper/index.d.mts +0 -5
  332. package/dist/stopPropagationWrapper/index.d.ts +0 -5
  333. package/dist/stopPropagationWrapper/index.js +0 -48
  334. package/dist/stopPropagationWrapper/index.mjs +0 -11
  335. package/dist/switch/index.d.mts +0 -12
  336. package/dist/switch/index.d.ts +0 -12
  337. package/dist/switch/index.js +0 -125
  338. package/dist/switch/index.mjs +0 -83
  339. package/dist/table/index.d.mts +0 -21
  340. package/dist/table/index.d.ts +0 -21
  341. package/dist/table/index.js +0 -172
  342. package/dist/table/index.mjs +0 -123
  343. package/dist/tabs/index.d.mts +0 -33
  344. package/dist/tabs/index.d.ts +0 -33
  345. package/dist/tabs/index.js +0 -200
  346. package/dist/tabs/index.mjs +0 -157
  347. package/dist/textTypes-559CaoOV.d.mts +0 -88
  348. package/dist/textTypes-559CaoOV.d.ts +0 -88
  349. package/dist/textarea/index.d.mts +0 -27
  350. package/dist/textarea/index.d.ts +0 -27
  351. package/dist/textarea/index.js +0 -229
  352. package/dist/textarea/index.mjs +0 -189
  353. package/dist/toast/index.d.mts +0 -26
  354. package/dist/toast/index.d.ts +0 -26
  355. package/dist/toast/index.js +0 -197
  356. package/dist/toast/index.mjs +0 -19
  357. package/dist/toaster/index.d.mts +0 -9
  358. package/dist/toaster/index.d.ts +0 -9
  359. package/dist/toaster/index.js +0 -350
  360. package/dist/toaster/index.mjs +0 -181
  361. package/dist/types/index.d.mts +0 -115
  362. package/dist/types/index.d.ts +0 -115
  363. package/dist/types/index.js +0 -18
  364. package/dist/types/index.mjs +0 -0
@@ -1,1098 +0,0 @@
1
- // elements/loading/Loading.tsx
2
- import React from "react";
3
-
4
- // util/index.ts
5
- import { clsx } from "clsx";
6
- import { twMerge } from "tailwind-merge";
7
- function cn(...inputs) {
8
- return twMerge(clsx(inputs));
9
- }
10
- var parseColor = (color) => {
11
- if (color.startsWith("#")) {
12
- let r = parseInt(color.slice(1, 3), 16);
13
- let g = parseInt(color.slice(3, 5), 16);
14
- let b = parseInt(color.slice(5, 7), 16);
15
- return [r, g, b];
16
- } else if (color.startsWith("rgb")) {
17
- return color.match(/\d+/g).map(Number);
18
- }
19
- return [255, 255, 255];
20
- };
21
- var calculateLuminance = (color) => {
22
- var _a;
23
- const [r, g, b] = (_a = parseColor(color)) == null ? void 0 : _a.map((c) => {
24
- c /= 255;
25
- return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
26
- });
27
- return 0.2126 * r + 0.7152 * g + 0.0722 * b;
28
- };
29
-
30
- // elements/loading/Loading.tsx
31
- var Loading = ({
32
- design = "spinner",
33
- size = "sm",
34
- themeMode = "light",
35
- color,
36
- ...props
37
- }) => {
38
- let sizeStyles = {
39
- button: "hawa-h-4 hawa-w-4",
40
- xs: "hawa-h-1 hawa-w-1",
41
- sm: "hawa-h-6 hawa-w-6",
42
- normal: "hawa-h-8 hawa-w-8",
43
- lg: "hawa-h-14 hawa-w-14",
44
- xl: "hawa-h-24 hawa-w-24"
45
- };
46
- let animationStyles = {
47
- pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
48
- bounce: "hawa-animate-bounce"
49
- };
50
- switch (design.split("-")[0]) {
51
- case "dots":
52
- return /* @__PURE__ */ React.createElement(
53
- "div",
54
- {
55
- className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
56
- },
57
- /* @__PURE__ */ React.createElement(
58
- "div",
59
- {
60
- className: cn(
61
- "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
62
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
63
- animationStyles[design.split("-")[1]],
64
- color ? color : "hawa-bg-primary"
65
- )
66
- }
67
- ),
68
- /* @__PURE__ */ React.createElement(
69
- "div",
70
- {
71
- className: cn(
72
- "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
73
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
74
- animationStyles[design.split("-")[1]],
75
- color ? color : "hawa-bg-primary"
76
- )
77
- }
78
- ),
79
- /* @__PURE__ */ React.createElement(
80
- "div",
81
- {
82
- className: cn(
83
- "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
84
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
85
- animationStyles[design.split("-")[1]],
86
- color ? color : "hawa-bg-primary"
87
- )
88
- }
89
- )
90
- );
91
- case "square":
92
- return /* @__PURE__ */ React.createElement(
93
- "svg",
94
- {
95
- className: cn("squircle-container", sizeStyles[size]),
96
- viewBox: "0 0 35 35",
97
- height: "35",
98
- width: "35"
99
- },
100
- /* @__PURE__ */ React.createElement(
101
- "rect",
102
- {
103
- className: "squircle-track",
104
- x: "2.5",
105
- y: "2.5",
106
- fill: "none",
107
- strokeWidth: "5px",
108
- width: "32.5",
109
- height: "32.5"
110
- }
111
- ),
112
- /* @__PURE__ */ React.createElement(
113
- "rect",
114
- {
115
- className: "square-car",
116
- x: "2.5",
117
- y: "2.5",
118
- fill: "none",
119
- strokeWidth: "5px",
120
- width: "32.5",
121
- height: "32.5",
122
- pathLength: "100"
123
- }
124
- )
125
- );
126
- case "squircle":
127
- return /* @__PURE__ */ React.createElement(
128
- "svg",
129
- {
130
- className: cn("squircle-container", sizeStyles[size]),
131
- x: "0px",
132
- y: "0px",
133
- viewBox: "0 0 37 37",
134
- height: "37",
135
- width: "37",
136
- preserveAspectRatio: "xMidYMid meet"
137
- },
138
- /* @__PURE__ */ React.createElement(
139
- "path",
140
- {
141
- className: "squircle-track",
142
- fill: "none",
143
- strokeWidth: "5",
144
- pathLength: "100",
145
- d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
146
- }
147
- ),
148
- /* @__PURE__ */ React.createElement(
149
- "path",
150
- {
151
- className: "squircle-car",
152
- fill: "none",
153
- strokeWidth: "5",
154
- pathLength: "100",
155
- d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
156
- }
157
- )
158
- );
159
- case "progress":
160
- return /* @__PURE__ */ React.createElement("div", { className: "progress-loading" });
161
- case "orbit":
162
- return /* @__PURE__ */ React.createElement("div", { className: "orbit-container" });
163
- default:
164
- return /* @__PURE__ */ React.createElement(
165
- "svg",
166
- {
167
- className: cn("circle-container", sizeStyles[size]),
168
- viewBox: "0 0 40 40",
169
- height: "40",
170
- width: "40"
171
- },
172
- /* @__PURE__ */ React.createElement(
173
- "circle",
174
- {
175
- className: cn("circle-track", {
176
- "hawa-stroke-primary-foreground": themeMode === "dark",
177
- "hawa-stroke-primary": themeMode === "light"
178
- }),
179
- cx: "20",
180
- cy: "20",
181
- r: "17.5",
182
- pathLength: "100",
183
- strokeWidth: "5px",
184
- fill: "none"
185
- }
186
- ),
187
- /* @__PURE__ */ React.createElement(
188
- "circle",
189
- {
190
- className: cn("circle-car", {
191
- "hawa-stroke-primary-foreground": themeMode === "dark",
192
- "hawa-stroke-primary": themeMode === "light"
193
- }),
194
- cx: "20",
195
- cy: "20",
196
- r: "17.5",
197
- pathLength: "100",
198
- strokeWidth: "5px",
199
- fill: "none"
200
- }
201
- )
202
- );
203
- }
204
- };
205
-
206
- // elements/button/Button.tsx
207
- import * as React2 from "react";
208
- import { cva } from "class-variance-authority";
209
- var buttonVariants = cva(
210
- "hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
211
- {
212
- variants: {
213
- variant: {
214
- default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
215
- light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
216
- destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
217
- outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
218
- secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
219
- ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
220
- link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
221
- combobox: "hawa-bg-background hawa-border",
222
- neoBrutalism: "neo-brutalism"
223
- // "hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active",
224
- },
225
- size: {
226
- default: "hawa-h-10 hawa-px-4 hawa-py-2",
227
- heightless: "hawa-px-4 hawa-py-4",
228
- xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
229
- sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
230
- lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
231
- xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
232
- icon: "hawa-h-10 hawa-w-10",
233
- smallIcon: "hawa-h-7 hawa-w-7"
234
- }
235
- },
236
- defaultVariants: {
237
- variant: "default",
238
- size: "default"
239
- }
240
- }
241
- );
242
- var Button = React2.forwardRef(
243
- ({
244
- className,
245
- variant,
246
- size,
247
- asChild = false,
248
- centered = true,
249
- isLoading,
250
- children,
251
- ...props
252
- }, ref) => {
253
- const Comp = "button";
254
- const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
255
- return /* @__PURE__ */ React2.createElement(
256
- Comp,
257
- {
258
- className: cn(
259
- buttonVariants({ variant, size, className }),
260
- centered && "hawa-justify-center"
261
- // "hawa-bg-red-500"
262
- ),
263
- ref,
264
- ...props
265
- },
266
- isLoading ? /* @__PURE__ */ React2.createElement(
267
- Loading,
268
- {
269
- design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
270
- themeMode: variant === "outline" ? "light" : "dark",
271
- color: loadingColor,
272
- size: size === "sm" || size === "xs" ? "xs" : "button"
273
- }
274
- ) : children
275
- );
276
- }
277
- );
278
- Button.displayName = "Button";
279
-
280
- // elements/card/Card.tsx
281
- import * as React3 from "react";
282
- var Card = React3.forwardRef(
283
- ({ className, variant = "default", clickable = false, ...props }, ref) => {
284
- let variantStyles = {
285
- default: cn(
286
- "hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
287
- clickable && "hawa-cursor-pointer hawa-transition-all hover:hawa-drop-shadow-md dark:hover:dark-shadow"
288
- ),
289
- neoBrutalism: cn(
290
- "neo-brutalism",
291
- // "hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms]",
292
- clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
293
- )
294
- };
295
- return /* @__PURE__ */ React3.createElement(
296
- "div",
297
- {
298
- ref,
299
- className: cn(className, variantStyles[variant]),
300
- ...props
301
- }
302
- );
303
- }
304
- );
305
- var CardHeader = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
306
- "div",
307
- {
308
- ref,
309
- className: cn(
310
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
311
- className
312
- ),
313
- ...props
314
- }
315
- ));
316
- var CardTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
317
- "h3",
318
- {
319
- ref,
320
- className: cn("hawa-text-2xl hawa-font-semibold ", className),
321
- ...props
322
- }
323
- ));
324
- var CardDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
325
- "p",
326
- {
327
- ref,
328
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
329
- ...props
330
- }
331
- ));
332
- var CardContent = React3.forwardRef(
333
- ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
334
- "div",
335
- {
336
- ref,
337
- className: cn(
338
- noPadding ? "hawa-p-0" : "hawa-p-6",
339
- headless ? "hawa-pt-6" : "hawa-pt-0",
340
- className
341
- ),
342
- ...props
343
- }
344
- )
345
- );
346
- var CardFooter = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
347
- "div",
348
- {
349
- ref,
350
- className: cn("hawa-flex hawa-items-center hawa-p-6 hawa-pt-0", className),
351
- ...props
352
- }
353
- ));
354
- CardDescription.displayName = "CardDescription";
355
- CardContent.displayName = "CardContent";
356
- CardHeader.displayName = "CardHeader";
357
- CardFooter.displayName = "CardFooter";
358
- CardTitle.displayName = "CardTitle";
359
- Card.displayName = "Card";
360
-
361
- // elements/tooltip/Tooltip.tsx
362
- import React4 from "react";
363
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
364
- var TooltipContent = React4.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React4.createElement(
365
- TooltipPrimitive.Content,
366
- {
367
- ref,
368
- sideOffset,
369
- className: cn(
370
- "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
371
- className
372
- ),
373
- ...props
374
- }
375
- ));
376
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
377
- var TooltipArrow = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React4.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
378
- TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
379
- var Tooltip = ({
380
- side,
381
- open,
382
- content,
383
- children,
384
- defaultOpen,
385
- onOpenChange,
386
- triggerProps,
387
- contentProps,
388
- providerProps,
389
- delayDuration = 300,
390
- ...props
391
- }) => {
392
- return /* @__PURE__ */ React4.createElement(
393
- TooltipPrimitive.TooltipProvider,
394
- {
395
- delayDuration,
396
- ...providerProps
397
- },
398
- /* @__PURE__ */ React4.createElement(
399
- TooltipPrimitive.Root,
400
- {
401
- open,
402
- defaultOpen,
403
- onOpenChange,
404
- ...props
405
- },
406
- /* @__PURE__ */ React4.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
407
- /* @__PURE__ */ React4.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
408
- )
409
- );
410
- };
411
-
412
- // elements/skeleton/Skeleton.tsx
413
- import React5 from "react";
414
- function Skeleton({
415
- className,
416
- content,
417
- animation = "pulse",
418
- ...props
419
- }) {
420
- const animationStyles = {
421
- none: "hawa-rounded hawa-bg-muted",
422
- pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
423
- shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
424
- };
425
- return /* @__PURE__ */ React5.createElement(
426
- "div",
427
- {
428
- className: cn(
429
- animationStyles[animation],
430
- content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
431
- className
432
- ),
433
- ...props
434
- },
435
- content && content
436
- );
437
- }
438
-
439
- // elements/logos/Logos.tsx
440
- import React6 from "react";
441
- var Logos = {
442
- hawa: (props) => /* @__PURE__ */ React6.createElement(
443
- "svg",
444
- {
445
- xmlns: "http://www.w3.org/2000/svg",
446
- xmlSpace: "preserve",
447
- viewBox: "0 0 765 765",
448
- ...props
449
- },
450
- /* @__PURE__ */ React6.createElement(
451
- "path",
452
- {
453
- d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
454
- fill: "currentColor"
455
- }
456
- )
457
- ),
458
- sikka: (props) => /* @__PURE__ */ React6.createElement(
459
- "svg",
460
- {
461
- xmlns: "http://www.w3.org/2000/svg",
462
- xmlnsXlink: "http://www.w3.org/1999/xlink",
463
- xmlSpace: "preserve",
464
- viewBox: "0 0 916.5 765",
465
- fill: "currentColor",
466
- ...props
467
- },
468
- /* @__PURE__ */ React6.createElement("defs", null, /* @__PURE__ */ React6.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
469
- /* @__PURE__ */ React6.createElement("clipPath", { id: "b" }, /* @__PURE__ */ React6.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
470
- /* @__PURE__ */ React6.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ React6.createElement("defs", null, /* @__PURE__ */ React6.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ React6.createElement("clipPath", { id: "d" }, /* @__PURE__ */ React6.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ React6.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ React6.createElement("path", { d: "M458.3 0h-31.9c-14.6 0-26.5 11.9-26.5 26.3v313.3L136.6 17.1C126 3.9 120.7 0 106.1 0H9.7C.5 0 0 7.9 0 17.1 0 21 1.3 26.3 4 29l288.7 353.6L4 736.1c-2.7 2.7-4 7.9-4 11.8 0 9.2.4 17.1 9.7 17.1h96.4c14.6 0 19.9-3.9 30.5-17.1l263.3-322.5v313.3c0 14.4 11.9 26.3 26.5 26.3h31.9M458.3 765h31.9c14.6 0 26.5-11.8 26.5-26.3V425.5L780 748c10.7 13.2 15.9 17.1 30.5 17.1h96.4c9.2 0 9.7-7.9 9.7-17.1 0-3.9-1.3-9.2-4-11.8L623.8 382.5 912.5 28.9c2.7-2.7 4-7.9 4-11.9 0-9.2-.5-17.1-9.7-17.1h-96.4c-14.6 0-19.9 3.9-30.5 17.1L516.7 339.5V26.3c0-14.4-11.9-26.3-26.5-26.3h-31.9" })))
471
- ),
472
- mail: (props) => /* @__PURE__ */ React6.createElement(
473
- "svg",
474
- {
475
- stroke: "currentColor",
476
- fill: "none",
477
- strokeWidth: "2",
478
- viewBox: "0 0 24 24",
479
- strokeLinecap: "round",
480
- strokeLinejoin: "round",
481
- xmlns: "http://www.w3.org/2000/svg",
482
- ...props
483
- },
484
- /* @__PURE__ */ React6.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
485
- /* @__PURE__ */ React6.createElement("polyline", { points: "22,6 12,13 2,6" })
486
- ),
487
- phone: (props) => /* @__PURE__ */ React6.createElement(
488
- "svg",
489
- {
490
- stroke: "currentColor",
491
- fill: "none",
492
- strokeWidth: "2",
493
- viewBox: "0 0 24 24",
494
- "aria-hidden": "true",
495
- xmlns: "http://www.w3.org/2000/svg",
496
- ...props
497
- },
498
- /* @__PURE__ */ React6.createElement(
499
- "path",
500
- {
501
- strokeLinecap: "round",
502
- strokeLinejoin: "round",
503
- d: "M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"
504
- }
505
- )
506
- ),
507
- twitter: (props) => /* @__PURE__ */ React6.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React6.createElement(
508
- "path",
509
- {
510
- fill: "currentColor",
511
- d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
512
- }
513
- )),
514
- instagram: (props) => /* @__PURE__ */ React6.createElement(
515
- "svg",
516
- {
517
- xmlns: "http://www.w3.org/2000/svg",
518
- fill: "currentColor",
519
- viewBox: "0 0 16 16",
520
- ...props
521
- },
522
- /* @__PURE__ */ React6.createElement("path", { d: "M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z" })
523
- ),
524
- microsoft: (props) => /* @__PURE__ */ React6.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ React6.createElement(
525
- "path",
526
- {
527
- fill: "currentColor",
528
- d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
529
- }
530
- )),
531
- github: (props) => /* @__PURE__ */ React6.createElement(
532
- "svg",
533
- {
534
- xmlns: "http://www.w3.org/2000/svg",
535
- viewBox: "0 0 438.549 438.549",
536
- ...props
537
- },
538
- /* @__PURE__ */ React6.createElement(
539
- "path",
540
- {
541
- fill: "currentColor",
542
- d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
543
- }
544
- )
545
- ),
546
- radix: (props) => /* @__PURE__ */ React6.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ React6.createElement(
547
- "path",
548
- {
549
- d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
550
- fill: "currentcolor"
551
- }
552
- ), /* @__PURE__ */ React6.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ React6.createElement(
553
- "path",
554
- {
555
- d: "M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",
556
- fill: "currentcolor"
557
- }
558
- )),
559
- aria: (props) => /* @__PURE__ */ React6.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ React6.createElement("path", { d: "M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z" })),
560
- npm: (props) => /* @__PURE__ */ React6.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React6.createElement(
561
- "path",
562
- {
563
- d: "M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",
564
- fill: "currentColor"
565
- }
566
- )),
567
- yarn: (props) => /* @__PURE__ */ React6.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React6.createElement(
568
- "path",
569
- {
570
- d: "M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",
571
- fill: "currentColor"
572
- }
573
- )),
574
- pnpm: (props) => /* @__PURE__ */ React6.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React6.createElement(
575
- "path",
576
- {
577
- d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",
578
- fill: "currentColor"
579
- }
580
- )),
581
- react: (props) => /* @__PURE__ */ React6.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React6.createElement(
582
- "path",
583
- {
584
- d: "M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",
585
- fill: "currentColor"
586
- }
587
- )),
588
- tailwind: (props) => /* @__PURE__ */ React6.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React6.createElement(
589
- "path",
590
- {
591
- d: "M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",
592
- fill: "currentColor"
593
- }
594
- )),
595
- google: (props) => /* @__PURE__ */ React6.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React6.createElement(
596
- "path",
597
- {
598
- fill: "currentColor",
599
- d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
600
- }
601
- )),
602
- apple: (props) => /* @__PURE__ */ React6.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React6.createElement(
603
- "path",
604
- {
605
- d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
606
- fill: "currentColor"
607
- }
608
- )),
609
- paypal: (props) => /* @__PURE__ */ React6.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React6.createElement(
610
- "path",
611
- {
612
- d: "M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",
613
- fill: "currentColor"
614
- }
615
- )),
616
- spinner: (props) => /* @__PURE__ */ React6.createElement(
617
- "svg",
618
- {
619
- xmlns: "http://www.w3.org/2000/svg",
620
- width: "24",
621
- height: "24",
622
- viewBox: "0 0 24 24",
623
- fill: "none",
624
- stroke: "currentColor",
625
- strokeWidth: "2",
626
- strokeLinecap: "round",
627
- strokeLinejoin: "round",
628
- ...props
629
- },
630
- /* @__PURE__ */ React6.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
631
- ),
632
- whatsapp: (props) => /* @__PURE__ */ React6.createElement(
633
- "svg",
634
- {
635
- xmlns: "http://www.w3.org/2000/svg",
636
- viewBox: "0 0 24 24",
637
- fill: "currentColor",
638
- ...props
639
- },
640
- /* @__PURE__ */ React6.createElement("path", { d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" })
641
- )
642
- };
643
-
644
- // elements/chip/Chip.tsx
645
- import React7 from "react";
646
- var Chip = React7.forwardRef(
647
- ({
648
- label,
649
- size = "normal",
650
- icon,
651
- color,
652
- radius = "inherit",
653
- dotType,
654
- ...rest
655
- }, ref) => {
656
- let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
657
- let radiusStyles = {
658
- inherit: " hawa-rounded",
659
- full: "hawa-rounded-full",
660
- none: "hawa-rounded-none"
661
- };
662
- let sizeStyles = {
663
- small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
664
- normal: "hawa-h-fit hawa-text-xs",
665
- large: "hawa-text-base"
666
- };
667
- let dotStyles = {
668
- small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
669
- normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
670
- large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
671
- };
672
- let dotTypeStyles = {
673
- available: "hawa-bg-green-500",
674
- unavailable: "hawa-bg-red-500"
675
- };
676
- let colorStyles = {
677
- green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
678
- blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
679
- red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
680
- yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
681
- orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
682
- purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
683
- cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
684
- hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
685
- oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
686
- };
687
- if (label) {
688
- return /* @__PURE__ */ React7.createElement(
689
- "span",
690
- {
691
- ...rest,
692
- ref,
693
- className: cn(
694
- defaultStyles,
695
- sizeStyles[size],
696
- radiusStyles[radius],
697
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
698
- )
699
- },
700
- dotType && /* @__PURE__ */ React7.createElement(
701
- "span",
702
- {
703
- className: cn(dotStyles[size], dotTypeStyles[dotType])
704
- }
705
- ),
706
- icon && icon,
707
- label
708
- );
709
- } else {
710
- return /* @__PURE__ */ React7.createElement(
711
- "span",
712
- {
713
- ...rest,
714
- ref,
715
- className: cn(
716
- "hawa-h-2 hawa-w-2 hawa-rounded-full",
717
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
718
- )
719
- }
720
- );
721
- }
722
- }
723
- );
724
-
725
- // elements/dropdownMenu/DropdownMenu.tsx
726
- import * as React8 from "react";
727
- import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
728
- var DropdownMenuRoot = DropdownMenuPrimitive.Root;
729
- var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
730
- var DropdownMenuGroup = DropdownMenuPrimitive.Group;
731
- var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
732
- var DropdownMenuSub = DropdownMenuPrimitive.Sub;
733
- var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
734
- var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(
735
- DropdownMenuPrimitive.SubTrigger,
736
- {
737
- ref,
738
- className: cn(
739
- "hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none focus:hawa-bg-accent data-[state=open]:hawa-bg-accent",
740
- inset && "hawa-pl-8",
741
- className
742
- ),
743
- ...props
744
- },
745
- /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
746
- " ",
747
- /* @__PURE__ */ React8.createElement(
748
- "svg",
749
- {
750
- "aria-label": "Chevron Right Icon",
751
- stroke: "currentColor",
752
- fill: "currentColor",
753
- strokeWidth: "0",
754
- viewBox: "0 0 16 16",
755
- height: "1em",
756
- width: "1em",
757
- className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
758
- },
759
- /* @__PURE__ */ React8.createElement(
760
- "path",
761
- {
762
- fillRule: "evenodd",
763
- d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
764
- }
765
- )
766
- )
767
- ));
768
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
769
- var DropdownMenuSubContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
770
- DropdownMenuPrimitive.SubContent,
771
- {
772
- ref,
773
- className: cn(
774
- "hawa-z-50 hawa-min-w-[8rem] hawa-gap-1 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
775
- className
776
- ),
777
- ...props
778
- }
779
- ));
780
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
781
- var DropdownMenuContent = React8.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React8.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React8.createElement(
782
- DropdownMenuPrimitive.Content,
783
- {
784
- ref,
785
- sideOffset,
786
- className: cn(
787
- "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-md data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
788
- className
789
- ),
790
- ...props
791
- }
792
- )));
793
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
794
- var DropdownMenuItem = React8.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
795
- return /* @__PURE__ */ React8.createElement("a", { href: slug }, /* @__PURE__ */ React8.createElement(
796
- DropdownMenuPrimitive.Item,
797
- {
798
- disabled: props.disabled,
799
- ref,
800
- className: cn(
801
- "hawa-relative hawa-flex hawa-cursor-pointer hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
802
- inset && "hawa-pl-8",
803
- props.end && Array.isArray(props.children) && props.children[1] && "hawa-gap-6",
804
- className
805
- ),
806
- ...props
807
- },
808
- /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
809
- props.end && props.end,
810
- !props.end && props.shortcut && /* @__PURE__ */ React8.createElement(DropdownMenuShortcut, null, props.shortcut),
811
- !props.end && badged && /* @__PURE__ */ React8.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
812
- ));
813
- });
814
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
815
- var DropdownMenuCheckboxItem = React8.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React8.createElement(
816
- DropdownMenuPrimitive.CheckboxItem,
817
- {
818
- ref,
819
- className: cn(
820
- "hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
821
- className
822
- ),
823
- checked,
824
- ...props
825
- },
826
- /* @__PURE__ */ React8.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React8.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React8.createElement(
827
- "svg",
828
- {
829
- "aria-label": "Check Mark",
830
- stroke: "currentColor",
831
- fill: "currentColor",
832
- strokeWidth: "0",
833
- viewBox: "0 0 512 512",
834
- height: "0.60em",
835
- width: "0.60em"
836
- },
837
- /* @__PURE__ */ React8.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
838
- ), " ")),
839
- children
840
- ));
841
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
842
- var DropdownMenuRadioItem = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(
843
- DropdownMenuPrimitive.RadioItem,
844
- {
845
- ref,
846
- className: cn(
847
- "hawa-relative hawa-flex hawa-cursor-pointer hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
848
- className
849
- ),
850
- ...props
851
- },
852
- /* @__PURE__ */ React8.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React8.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React8.createElement(
853
- "svg",
854
- {
855
- xmlns: "http://www.w3.org/2000/svg",
856
- width: "24",
857
- "aria-label": "Circle",
858
- height: "24",
859
- viewBox: "0 0 24 24",
860
- fill: "none",
861
- stroke: "currentColor",
862
- strokeWidth: "2",
863
- strokeLinecap: "round",
864
- strokeLinejoin: "round",
865
- className: "hawa-h-2 hawa-w-2 hawa-fill-current"
866
- },
867
- /* @__PURE__ */ React8.createElement("circle", { cx: "12", cy: "12", r: "10" })
868
- ))),
869
- children
870
- ));
871
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
872
- var DropdownMenuLabel = React8.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React8.createElement(
873
- DropdownMenuPrimitive.Label,
874
- {
875
- ref,
876
- className: cn(
877
- "hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold",
878
- inset && "hawa-pl-8",
879
- className
880
- ),
881
- ...props
882
- }
883
- ));
884
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
885
- var DropdownMenuSeparator = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
886
- DropdownMenuPrimitive.Separator,
887
- {
888
- ref,
889
- className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className),
890
- ...props
891
- }
892
- ));
893
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
894
- var DropdownMenuShortcut = ({
895
- className,
896
- ...props
897
- }) => {
898
- return /* @__PURE__ */ React8.createElement(
899
- "span",
900
- {
901
- className: cn(
902
- "hawa-text-xs hawa-tracking-widest hawa-opacity-60",
903
- className
904
- ),
905
- ...props
906
- }
907
- );
908
- };
909
- DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
910
- var DropdownMenu = ({
911
- trigger,
912
- items,
913
- direction,
914
- sideOffset,
915
- side,
916
- className,
917
- triggerClassname,
918
- align,
919
- alignOffset,
920
- onItemSelect,
921
- size = "default",
922
- width = "default",
923
- header,
924
- onOpenChange,
925
- open
926
- }) => {
927
- const widthStyles = {
928
- default: "hawa-min-w-[8rem]",
929
- sm: "hawa-w-fit",
930
- lg: "hawa-w-[200px]",
931
- parent: "ddm-w-parent"
932
- };
933
- const sizeStyles = {
934
- default: "hawa-px-2 hawa-py-3 ",
935
- sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
936
- };
937
- return /* @__PURE__ */ React8.createElement(
938
- DropdownMenuRoot,
939
- {
940
- onOpenChange,
941
- open,
942
- modal: false,
943
- dir: direction
944
- },
945
- /* @__PURE__ */ React8.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
946
- /* @__PURE__ */ React8.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React8.createElement(
947
- DropdownMenuContent,
948
- {
949
- side,
950
- sideOffset,
951
- className: cn(
952
- className,
953
- widthStyles[width],
954
- "hawa-flex hawa-flex-col hawa-gap-1"
955
- ),
956
- align,
957
- alignOffset
958
- },
959
- header && header,
960
- items && items.map((item, index) => {
961
- if (item.itemType === "separator") {
962
- return /* @__PURE__ */ React8.createElement(DropdownMenuSeparator, { key: index });
963
- } else if (item.itemType === "label") {
964
- return /* @__PURE__ */ React8.createElement(DropdownMenuLabel, { key: index }, item.label);
965
- } else if (item.itemType === "custom") {
966
- return /* @__PURE__ */ React8.createElement("div", { key: index }, item.content);
967
- } else {
968
- return item.subitems ? /* @__PURE__ */ React8.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React8.createElement(
969
- DropdownMenuSubTrigger,
970
- {
971
- className: cn(sizeStyles[size]),
972
- dir: direction
973
- },
974
- item.icon && item.icon,
975
- item.label && item.label
976
- ), /* @__PURE__ */ React8.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React8.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React8.createElement(
977
- DropdownMenuItem,
978
- {
979
- slug: subitem.slug,
980
- onMouseDown: (event) => {
981
- if (event.button === 1 || event.button === 0 && event.ctrlKey) {
982
- event.preventDefault();
983
- if (subitem.onMiddleClick) {
984
- subitem.onMiddleClick(item.value);
985
- }
986
- }
987
- },
988
- key: subIndex,
989
- className: cn(
990
- sizeStyles[size],
991
- !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
992
- ),
993
- disabled: subitem.disabled,
994
- onSelect: () => {
995
- subitem.action && subitem.action();
996
- if (onItemSelect) {
997
- onItemSelect(subitem.value);
998
- }
999
- }
1000
- },
1001
- subitem.icon && subitem.icon,
1002
- subitem.label && subitem.label
1003
- ))))) : /* @__PURE__ */ React8.createElement(
1004
- DropdownMenuItem,
1005
- {
1006
- slug: item.slug,
1007
- key: index,
1008
- disabled: item.disabled,
1009
- onMouseDown: (event) => {
1010
- if (event.button === 1 || event.button === 0 && event.ctrlKey) {
1011
- event.preventDefault();
1012
- if (item.onMiddleClick) {
1013
- item.onMiddleClick(item.value);
1014
- }
1015
- }
1016
- },
1017
- onClick: (event) => {
1018
- if (item.onClick) {
1019
- item.onClick(item.value);
1020
- }
1021
- },
1022
- onSelect: (e) => {
1023
- if (item.presist) {
1024
- e.preventDefault();
1025
- }
1026
- if (item.action) {
1027
- item.action();
1028
- if (onItemSelect) {
1029
- onItemSelect(item.value);
1030
- }
1031
- } else {
1032
- if (onItemSelect) {
1033
- onItemSelect(item.value);
1034
- }
1035
- }
1036
- },
1037
- end: item.end,
1038
- shortcut: item.shortcut,
1039
- badged: item.badged,
1040
- className: cn(
1041
- sizeStyles[size],
1042
- !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent " : "focus:hawa-bg-accent ",
1043
- item.presist && "focus:hawa-bg-transparent"
1044
- )
1045
- },
1046
- item.icon && item.icon,
1047
- item.label && item.label
1048
- );
1049
- }
1050
- })
1051
- ))
1052
- );
1053
- };
1054
- var DropdownMenuRadio = (props) => {
1055
- return /* @__PURE__ */ React8.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React8.createElement(DropdownMenuTrigger, { asChild: true }, props.trigger), /* @__PURE__ */ React8.createElement(DropdownMenuContent, { align: props.align, side: props.side }, props.label && /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(DropdownMenuLabel, null, props.label), /* @__PURE__ */ React8.createElement(DropdownMenuSeparator, null)), /* @__PURE__ */ React8.createElement(
1056
- DropdownMenuRadioGroup,
1057
- {
1058
- value: props.value,
1059
- onValueChange: props.onValueChange
1060
- },
1061
- props.options.map((opt, i) => /* @__PURE__ */ React8.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
1062
- )));
1063
- };
1064
-
1065
- export {
1066
- cn,
1067
- calculateLuminance,
1068
- Loading,
1069
- buttonVariants,
1070
- Button,
1071
- Card,
1072
- CardHeader,
1073
- CardTitle,
1074
- CardDescription,
1075
- CardContent,
1076
- CardFooter,
1077
- Tooltip,
1078
- Skeleton,
1079
- Logos,
1080
- Chip,
1081
- DropdownMenuRoot,
1082
- DropdownMenuTrigger,
1083
- DropdownMenuGroup,
1084
- DropdownMenuPortal,
1085
- DropdownMenuSub,
1086
- DropdownMenuRadioGroup,
1087
- DropdownMenuSubTrigger,
1088
- DropdownMenuSubContent,
1089
- DropdownMenuContent,
1090
- DropdownMenuItem,
1091
- DropdownMenuCheckboxItem,
1092
- DropdownMenuRadioItem,
1093
- DropdownMenuLabel,
1094
- DropdownMenuSeparator,
1095
- DropdownMenuShortcut,
1096
- DropdownMenu,
1097
- DropdownMenuRadio
1098
- };